]>
Commit | Line | Data |
---|---|---|
10f2d63a VZ |
1 | #! /bin/sh |
2 | ||
698dcdb6 | 3 | # From configure.in Id: configure.in |
703e0a69 VZ |
4 | |
5 | ||
6 | ||
7 | ||
90dd450c VZ |
8 | |
9 | ||
10 | ||
11 | ||
12 | ||
13 | ||
14 | ||
15 | ||
703e0a69 | 16 | |
703e0a69 VZ |
17 | |
18 | ||
1e487827 | 19 | |
1e487827 | 20 | |
698dcdb6 VZ |
21 | |
22 | ||
23 | ||
24 | ||
25 | ||
26 | ||
27 | ||
28 | ||
29 | ||
30 | ||
31 | ||
32 | ||
33 | ||
34 | ||
35 | ||
36 | ||
37 | ||
38 | ||
39 | ||
40 | ||
41 | ||
42 | ||
43 | ||
44 | ||
45 | ||
46 | ||
47 | ||
48 | ||
b040e242 VS |
49 | |
50 | ||
51 | ||
b040e242 VS |
52 | |
53 | ||
54 | ||
55 | ||
9e691f46 VZ |
56 | # Configure paths for GTK+ |
57 | # Owen Taylor 1997-2001 | |
b040e242 VS |
58 | |
59 | ||
60 | ||
61 | # Configure paths for GTK+ | |
62 | # Owen Taylor 97-11-3 | |
698dcdb6 | 63 | |
698dcdb6 VZ |
64 | |
65 | ||
66 | # Guess values for system-dependent variables and create Makefiles. | |
67 | # Generated automatically using autoconf version 2.13 | |
68 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. | |
69 | # | |
70 | # This configure script is free software; the Free Software Foundation | |
71 | # gives unlimited permission to copy, distribute and modify it. | |
72 | ||
73 | # Defaults: | |
74 | ac_help= | |
75 | ac_default_prefix=/usr/local | |
76 | # Any additions from configure.in: | |
77 | ac_help="$ac_help | |
8168de4c | 78 | --enable-gui use GUI classes" |
1e6feb95 | 79 | ac_help="$ac_help |
8168de4c | 80 | --enable-universal use wxWindows GUI controls instead of native ones" |
698dcdb6 VZ |
81 | ac_help="$ac_help |
82 | --with-gtk use GTK+" | |
83 | ac_help="$ac_help | |
84 | --with-motif use Motif/Lesstif" | |
85 | ac_help="$ac_help | |
86 | --with-mac use Mac OS X" | |
87 | ac_help="$ac_help | |
88 | --with-wine use WINE" | |
89 | ac_help="$ac_help | |
77e13408 | 90 | --with-msw use MS-Windows" |
698dcdb6 VZ |
91 | ac_help="$ac_help |
92 | --with-pm use OS/2 Presentation Manager" | |
1e6feb95 | 93 | ac_help="$ac_help |
b3e8d00a | 94 | --with-mgl use SciTech MGL" |
1725144d RR |
95 | ac_help="$ac_help |
96 | --with-microwin use MicroWindows" | |
f79bd02d JS |
97 | ac_help="$ac_help |
98 | --with-x11 use X11" | |
d8356fa3 VZ |
99 | ac_help="$ac_help |
100 | --enable-nanox use NanoX" | |
698dcdb6 | 101 | ac_help="$ac_help |
8168de4c | 102 | --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)" |
698dcdb6 | 103 | ac_help="$ac_help |
8168de4c | 104 | --with-libpng use libpng (PNG image format)" |
698dcdb6 | 105 | ac_help="$ac_help |
8168de4c | 106 | --with-libjpeg use libjpeg (JPEG file format)" |
698dcdb6 | 107 | ac_help="$ac_help |
8168de4c | 108 | --with-libtiff use libtiff (TIFF file format)" |
698dcdb6 | 109 | ac_help="$ac_help |
8168de4c | 110 | --with-opengl use OpenGL (or Mesa)" |
698dcdb6 | 111 | ac_help="$ac_help |
d0e9b150 | 112 | --with-dmalloc use dmalloc library (http://dmalloc.com/)" |
3e44f09d VZ |
113 | ac_help="$ac_help |
114 | --with-regex enable support for wxRegEx class" | |
698dcdb6 | 115 | ac_help="$ac_help |
8168de4c | 116 | --with-zlib use zlib for LZW compression" |
698dcdb6 | 117 | ac_help="$ac_help |
8168de4c | 118 | --with-odbc use the IODBC and wxODBC classes" |
698dcdb6 | 119 | ac_help="$ac_help |
8168de4c | 120 | --enable-shared create shared library code" |
698dcdb6 | 121 | ac_help="$ac_help |
3a922bb4 | 122 | --enable-soname set the DT_SONAME field in ELF shared libraries" |
698dcdb6 | 123 | ac_help="$ac_help |
8168de4c | 124 | --enable-optimise create optimised code" |
698dcdb6 | 125 | ac_help="$ac_help |
8168de4c | 126 | --enable-debug same as debug_flag and debug_info" |
683dccda GD |
127 | ac_help="$ac_help |
128 | --enable-precomp enable use of precompiled headers (Mac OS X)" | |
698dcdb6 | 129 | ac_help="$ac_help |
8168de4c | 130 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)" |
698dcdb6 | 131 | ac_help="$ac_help |
8168de4c | 132 | --enable-debug_info create code with debugging information" |
698dcdb6 | 133 | ac_help="$ac_help |
8168de4c | 134 | --enable-debug_gdb create code with extra GDB debugging information" |
698dcdb6 | 135 | ac_help="$ac_help |
8168de4c | 136 | --enable-debug_cntxt use wxDebugContext" |
698dcdb6 | 137 | ac_help="$ac_help |
8168de4c | 138 | --enable-mem_tracing create code with memory tracing" |
698dcdb6 | 139 | ac_help="$ac_help |
8168de4c | 140 | --enable-profile create code with profiling information" |
698dcdb6 | 141 | ac_help="$ac_help |
8168de4c | 142 | --enable-no_rtti create code without RTTI information" |
698dcdb6 | 143 | ac_help="$ac_help |
b3e8d00a | 144 | --enable-no_exceptions create code without C++ exceptions handling" |
698dcdb6 | 145 | ac_help="$ac_help |
8168de4c | 146 | --enable-permissive compile code disregarding strict ANSI" |
698dcdb6 | 147 | ac_help="$ac_help |
8168de4c | 148 | --enable-no_deps create code without dependency information" |
54276ccf | 149 | ac_help="$ac_help |
b3e8d00a | 150 | --enable-compat20 enable wxWindows 2.0 compatibility" |
54276ccf | 151 | ac_help="$ac_help |
0c9a1c32 | 152 | --disable-compat22 disable wxWindows 2.2 compatibility" |
698dcdb6 | 153 | ac_help="$ac_help |
8168de4c | 154 | --enable-intl use internationalization system" |
698dcdb6 | 155 | ac_help="$ac_help |
8168de4c | 156 | --enable-config use wxConfig (and derived) classes" |
a1622950 VZ |
157 | ac_help="$ac_help |
158 | --enable-protocols use wxProtocol and derived classes" | |
159 | ac_help="$ac_help | |
160 | --enable-ftp use wxFTP (requires wxProtocol" | |
161 | ac_help="$ac_help | |
162 | --enable-http use wxHTTP (requires wxProtocol" | |
163 | ac_help="$ac_help | |
164 | --enable-fileproto use wxFileProto class (requires wxProtocol" | |
698dcdb6 | 165 | ac_help="$ac_help |
8168de4c | 166 | --enable-sockets use socket/network classes" |
698dcdb6 | 167 | ac_help="$ac_help |
8168de4c | 168 | --enable-ipc use interprocess communication (wxSocket etc.)" |
698dcdb6 | 169 | ac_help="$ac_help |
8168de4c | 170 | --enable-cmdline use wxCmdLineParser class" |
1e6feb95 | 171 | ac_help="$ac_help |
8168de4c | 172 | --enable-datetime use wxDateTime class" |
1e6feb95 | 173 | ac_help="$ac_help |
8168de4c | 174 | --enable-timedate use obsolete wxDate/wxTime classes" |
1e6feb95 | 175 | ac_help="$ac_help |
8168de4c | 176 | --enable-stopwatch use wxStopWatch class" |
1e6feb95 | 177 | ac_help="$ac_help |
8168de4c | 178 | --enable-dialupman use dialup network classes" |
698dcdb6 | 179 | ac_help="$ac_help |
8168de4c | 180 | --enable-apple_ieee use the Apple IEEE codec" |
698dcdb6 | 181 | ac_help="$ac_help |
8168de4c | 182 | --enable-timer use wxTimer class" |
698dcdb6 | 183 | ac_help="$ac_help |
8168de4c | 184 | --enable-wave use wxWave class" |
698dcdb6 | 185 | ac_help="$ac_help |
8168de4c | 186 | --enable-fraction use wxFraction class" |
698dcdb6 | 187 | ac_help="$ac_help |
8168de4c | 188 | --enable-dynlib use wxLibrary class for DLL loading" |
0b9ab0bd RL |
189 | ac_help="$ac_help |
190 | --enable-dynamicloader use (new) wxDynamicLibrary class" | |
698dcdb6 | 191 | ac_help="$ac_help |
8168de4c | 192 | --enable-longlong use wxLongLong class" |
698dcdb6 | 193 | ac_help="$ac_help |
8168de4c | 194 | --enable-geometry use geometry class" |
698dcdb6 | 195 | ac_help="$ac_help |
8168de4c | 196 | --enable-log use logging system" |
698dcdb6 | 197 | ac_help="$ac_help |
8168de4c | 198 | --enable-streams use wxStream etc classes" |
698dcdb6 | 199 | ac_help="$ac_help |
8168de4c | 200 | --enable-file use wxFile classes" |
698dcdb6 | 201 | ac_help="$ac_help |
8168de4c | 202 | --enable-ffile use wxFFile classes" |
1e6feb95 | 203 | ac_help="$ac_help |
a3a584a7 VZ |
204 | --enable-textbuf use wxTextBuffer class" |
205 | ac_help="$ac_help | |
206 | --enable-textfile use wxTextFile class" | |
698dcdb6 | 207 | ac_help="$ac_help |
8168de4c | 208 | --enable-fontmap use font encodings conversion classes" |
1e6feb95 | 209 | ac_help="$ac_help |
8168de4c | 210 | --enable-unicode compile wxString with Unicode support" |
a72a4bfa VS |
211 | ac_help="$ac_help |
212 | --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)" | |
698dcdb6 | 213 | ac_help="$ac_help |
8168de4c | 214 | --enable-wxprintfv use wxWindows implementation of vprintf()" |
698dcdb6 | 215 | ac_help="$ac_help |
8168de4c | 216 | --enable-std_iostreams use standard C++ stream classes" |
698dcdb6 | 217 | ac_help="$ac_help |
8168de4c | 218 | --enable-filesystem use virtual file systems classes" |
698dcdb6 | 219 | ac_help="$ac_help |
8168de4c | 220 | --enable-fs_inet use virtual HTTP/FTP filesystems" |
698dcdb6 | 221 | ac_help="$ac_help |
8168de4c | 222 | --enable-fs_zip use virtual ZIP filesystems" |
698dcdb6 | 223 | ac_help="$ac_help |
8168de4c | 224 | --enable-zipstream use wxZipInputStream" |
698dcdb6 | 225 | ac_help="$ac_help |
8168de4c | 226 | --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException" |
698dcdb6 | 227 | ac_help="$ac_help |
8168de4c | 228 | --enable-snglinst use wxSingleInstanceChecker class" |
698dcdb6 | 229 | ac_help="$ac_help |
69d27ff7 | 230 | --enable-mimetype use wxMimeTypesManager" |
3e44f09d | 231 | ac_help="$ac_help |
b3e8d00a | 232 | --enable-sysoptions use wxSystemOptions" |
4cdb0ab0 VS |
233 | ac_help="$ac_help |
234 | --enable-url use wxURL class" | |
235 | ac_help="$ac_help | |
236 | --enable-protocol use wxProtocol class" | |
237 | ac_help="$ac_help | |
238 | --enable-protocol-http HTTP support in wxProtocol" | |
239 | ac_help="$ac_help | |
240 | --enable-protocol-ftp FTP support in wxProtocol" | |
241 | ac_help="$ac_help | |
242 | --enable-protocol-file FILE support in wxProtocol" | |
1e6feb95 | 243 | ac_help="$ac_help |
8168de4c | 244 | --enable-threads use threads" |
698dcdb6 | 245 | ac_help="$ac_help |
8168de4c | 246 | --enable-docview use document view architecture" |
698dcdb6 | 247 | ac_help="$ac_help |
3379ed37 | 248 | --enable-help use help subsystem" |
29fd3c0c VS |
249 | ac_help="$ac_help |
250 | --enable-mshtmlhelp use MS HTML Help (win32)" | |
3379ed37 VZ |
251 | ac_help="$ac_help |
252 | --enable-html use wxHTML sub-library" | |
253 | ac_help="$ac_help | |
254 | --enable-htmlhelp use wxHTML-based help" | |
698dcdb6 | 255 | ac_help="$ac_help |
8168de4c | 256 | --enable-constraints use layout-constraints system" |
698dcdb6 | 257 | ac_help="$ac_help |
8168de4c | 258 | --enable-printarch use printing architecture" |
698dcdb6 | 259 | ac_help="$ac_help |
8168de4c | 260 | --enable-mdi use multiple document interface architecture" |
698dcdb6 | 261 | ac_help="$ac_help |
8168de4c | 262 | --enable-loggui use standard GUI logger" |
1e6feb95 | 263 | ac_help="$ac_help |
8168de4c | 264 | --enable-logwin use wxLogWindow" |
69d27ff7 MB |
265 | ac_help="$ac_help |
266 | --enable-logdialog use wxLogDialog" | |
1e6feb95 | 267 | ac_help="$ac_help |
8168de4c | 268 | --enable-postscript use wxPostscriptDC device context (default for gtk+)" |
698dcdb6 | 269 | ac_help="$ac_help |
8168de4c | 270 | --enable-prologio use Prolog IO library" |
698dcdb6 | 271 | ac_help="$ac_help |
8168de4c | 272 | --enable-resources use wxWindows resources" |
698dcdb6 | 273 | ac_help="$ac_help |
8168de4c | 274 | --enable-xresources use X resources for save (default for gtk+)" |
698dcdb6 | 275 | ac_help="$ac_help |
8168de4c | 276 | --enable-clipboard use wxClipboard classes" |
698dcdb6 | 277 | ac_help="$ac_help |
8168de4c | 278 | --enable-dnd use Drag'n'Drop classes" |
698dcdb6 | 279 | ac_help="$ac_help |
8168de4c | 280 | --enable-metafile use win32 metafiles" |
698dcdb6 | 281 | ac_help="$ac_help |
24176f2c | 282 | --enable-treelayout use wxTreeLayout classes" |
698dcdb6 | 283 | ac_help="$ac_help |
8168de4c | 284 | --enable-controls use all usual controls" |
698dcdb6 | 285 | ac_help="$ac_help |
8168de4c | 286 | --enable-accel use accelerators" |
698dcdb6 | 287 | ac_help="$ac_help |
8168de4c | 288 | --enable-button use wxButton class" |
698dcdb6 | 289 | ac_help="$ac_help |
8168de4c | 290 | --enable-bmpbutton use wxBitmapButton class" |
698dcdb6 | 291 | ac_help="$ac_help |
8168de4c | 292 | --enable-calendar use wxCalendarCtrl class" |
1e6feb95 | 293 | ac_help="$ac_help |
8168de4c | 294 | --enable-caret use wxCaret class" |
1e6feb95 | 295 | ac_help="$ac_help |
8168de4c | 296 | --enable-checkbox use wxCheckBox class" |
698dcdb6 | 297 | ac_help="$ac_help |
8168de4c | 298 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class" |
698dcdb6 | 299 | ac_help="$ac_help |
8168de4c | 300 | --enable-choice use wxChoice class" |
698dcdb6 | 301 | ac_help="$ac_help |
8168de4c | 302 | --enable-combobox use wxComboBox classes" |
698dcdb6 | 303 | ac_help="$ac_help |
8168de4c | 304 | --enable-gauge use wxGauge class" |
698dcdb6 | 305 | ac_help="$ac_help |
8168de4c | 306 | --enable-grid use wxGrid class" |
698dcdb6 | 307 | ac_help="$ac_help |
8168de4c | 308 | --enable-newgrid use new wxGrid class" |
698dcdb6 | 309 | ac_help="$ac_help |
8168de4c | 310 | --enable-imaglist use wxImageList class" |
698dcdb6 | 311 | ac_help="$ac_help |
8168de4c | 312 | --enable-listbox use wxListBox class" |
698dcdb6 | 313 | ac_help="$ac_help |
8168de4c | 314 | --enable-listctrl use wxListCtrl class" |
698dcdb6 | 315 | ac_help="$ac_help |
8168de4c | 316 | --enable-notebook use wxNotebook class" |
24176f2c GD |
317 | ac_help="$ac_help |
318 | --enable-propsheet use wxPropertySheet class" | |
698dcdb6 | 319 | ac_help="$ac_help |
8168de4c | 320 | --enable-radiobox use wxRadioBox class" |
698dcdb6 | 321 | ac_help="$ac_help |
8168de4c | 322 | --enable-radiobtn use wxRadioButton class" |
698dcdb6 | 323 | ac_help="$ac_help |
8168de4c | 324 | --enable-sash use wxSashWindow class" |
698dcdb6 | 325 | ac_help="$ac_help |
8168de4c | 326 | --enable-scrollbar use wxScrollBar class and scrollable windows" |
698dcdb6 | 327 | ac_help="$ac_help |
8168de4c | 328 | --enable-slider use wxSlider class" |
698dcdb6 | 329 | ac_help="$ac_help |
8168de4c | 330 | --enable-spinbtn use wxSpinButton class" |
698dcdb6 | 331 | ac_help="$ac_help |
8168de4c | 332 | --enable-spinctrl use wxSpinCtrl class" |
698dcdb6 | 333 | ac_help="$ac_help |
8168de4c | 334 | --enable-splitter use wxSplitterWindow class" |
698dcdb6 | 335 | ac_help="$ac_help |
8168de4c | 336 | --enable-statbmp use wxStaticBitmap class" |
698dcdb6 | 337 | ac_help="$ac_help |
8168de4c | 338 | --enable-statbox use wxStaticBox class" |
698dcdb6 | 339 | ac_help="$ac_help |
8168de4c | 340 | --enable-statline use wxStaticLine class" |
698dcdb6 | 341 | ac_help="$ac_help |
8168de4c | 342 | --enable-stattext use wxStaticText class" |
1e6feb95 | 343 | ac_help="$ac_help |
8168de4c | 344 | --enable-statusbar use wxStatusBar class" |
698dcdb6 | 345 | ac_help="$ac_help |
8168de4c | 346 | --enable-tabdialog use wxTabControl class" |
698dcdb6 | 347 | ac_help="$ac_help |
8168de4c | 348 | --enable-textctrl use wxTextCtrl class" |
1e6feb95 | 349 | ac_help="$ac_help |
8168de4c | 350 | --enable-togglebtn use wxToggleButton class" |
698dcdb6 | 351 | ac_help="$ac_help |
8168de4c | 352 | --enable-toolbar use wxToolBar class" |
698dcdb6 | 353 | ac_help="$ac_help |
8168de4c | 354 | --enable-tbarnative use native wxToolBar class" |
698dcdb6 | 355 | ac_help="$ac_help |
8168de4c | 356 | --enable-tbarsmpl use wxToolBarSimple class" |
698dcdb6 | 357 | ac_help="$ac_help |
8168de4c | 358 | --enable-treectrl use wxTreeCtrl class" |
9926e4a4 VZ |
359 | ac_help="$ac_help |
360 | --enable-tipwindow use wxTipWindow class" | |
9f41d601 RR |
361 | ac_help="$ac_help |
362 | --enable-popupwin use wxPopUpWindow class" | |
698dcdb6 | 363 | ac_help="$ac_help |
b3e8d00a | 364 | --enable-commondlg use all common dialogs" |
698dcdb6 | 365 | ac_help="$ac_help |
8168de4c | 366 | --enable-choicedlg use wxChoiceDialog" |
1e6feb95 | 367 | ac_help="$ac_help |
8168de4c | 368 | --enable-coldlg use wxColourDialog" |
1e6feb95 | 369 | ac_help="$ac_help |
8168de4c | 370 | --enable-filedlg use wxFileDialog" |
8db37e06 VZ |
371 | ac_help="$ac_help |
372 | --enable-finddlg use wxFindReplaceDialog" | |
1e6feb95 | 373 | ac_help="$ac_help |
8168de4c | 374 | --enable-fontdlg use wxFontDialog" |
1e6feb95 | 375 | ac_help="$ac_help |
8168de4c | 376 | --enable-dirdlg use wxDirDialog" |
698dcdb6 | 377 | ac_help="$ac_help |
8168de4c | 378 | --enable-msgdlg use wxMessageDialog" |
1e6feb95 | 379 | ac_help="$ac_help |
8168de4c | 380 | --enable-numberdlg use wxNumberEntryDialog" |
cbca9943 VZ |
381 | ac_help="$ac_help |
382 | --enable-splash use wxSplashScreen" | |
1e6feb95 | 383 | ac_help="$ac_help |
8168de4c | 384 | --enable-textdlg use wxTextDialog" |
698dcdb6 | 385 | ac_help="$ac_help |
8168de4c | 386 | --enable-tipdlg use startup tips" |
698dcdb6 | 387 | ac_help="$ac_help |
8168de4c | 388 | --enable-progressdlg use wxProgressDialog" |
b1f5d087 VZ |
389 | ac_help="$ac_help |
390 | --enable-wizarddlg use wxWizard" | |
698dcdb6 | 391 | ac_help="$ac_help |
8168de4c | 392 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes" |
1e6feb95 | 393 | ac_help="$ac_help |
8168de4c | 394 | --enable-miniframe use wxMiniFrame class" |
698dcdb6 | 395 | ac_help="$ac_help |
8168de4c | 396 | --enable-tooltips use wxToolTip class" |
698dcdb6 | 397 | ac_help="$ac_help |
8168de4c | 398 | --enable-splines use spline drawing code" |
698dcdb6 | 399 | ac_help="$ac_help |
8168de4c | 400 | --enable-validators use wxValidator and derived classes" |
698dcdb6 | 401 | ac_help="$ac_help |
8168de4c | 402 | --enable-busyinfo use wxBusyInfo" |
698dcdb6 | 403 | ac_help="$ac_help |
b3e8d00a | 404 | --enable-joystick use wxJoystick (Linux only)" |
698dcdb6 | 405 | ac_help="$ac_help |
8168de4c | 406 | --enable-metafiles use wxMetaFile (Windows only)" |
24fd6d87 VZ |
407 | ac_help="$ac_help |
408 | --enable-dragimage use wxDragImage" | |
edae8572 VZ |
409 | ac_help="$ac_help |
410 | --enable-palette use wxPalette class" | |
1e6feb95 | 411 | ac_help="$ac_help |
8168de4c | 412 | --enable-image use wxImage class" |
698dcdb6 | 413 | ac_help="$ac_help |
8168de4c | 414 | --enable-gif use gif images (GIF file format)" |
698dcdb6 | 415 | ac_help="$ac_help |
8168de4c | 416 | --enable-pcx use pcx images (PCX file format)" |
4b6b4dfc RR |
417 | ac_help="$ac_help |
418 | --enable-iff use iff images (IFF file format)" | |
698dcdb6 | 419 | ac_help="$ac_help |
8168de4c | 420 | --enable-pnm use pnm images (PNM file format)" |
698dcdb6 | 421 | ac_help="$ac_help |
8168de4c | 422 | --enable-xpm use xpm images (XPM file format)" |
658974ae VS |
423 | ac_help="$ac_help |
424 | --enable-icocur use Windows ICO and CUR formats" | |
90dd450c VZ |
425 | ac_help="$ac_help |
426 | --disable-largefile omit support for large files" | |
698dcdb6 | 427 | ac_help="$ac_help |
9e691f46 | 428 | --disable-gtktest do not try to compile and run a test GTK+ program" |
3f345b47 VZ |
429 | ac_help="$ac_help |
430 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
431 | ac_help="$ac_help | |
432 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
433 | ac_help="$ac_help | |
434 | --disable-gtktest Do not try to compile and run a test GTK program" | |
435 | ac_help="$ac_help | |
436 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
437 | ac_help="$ac_help | |
438 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
439 | ac_help="$ac_help | |
440 | --disable-gtktest Do not try to compile and run a test GTK program" | |
698dcdb6 VZ |
441 | ac_help="$ac_help |
442 | --with-x use the X Window System" | |
b040e242 VS |
443 | ac_help="$ac_help |
444 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib" | |
10f2d63a VZ |
445 | |
446 | # Initialize some variables set by options. | |
447 | # The variables have the same names as the options, with | |
448 | # dashes changed to underlines. | |
698dcdb6 VZ |
449 | build=NONE |
450 | cache_file=./config.cache | |
10f2d63a | 451 | exec_prefix=NONE |
698dcdb6 | 452 | host=NONE |
10f2d63a | 453 | no_create= |
698dcdb6 | 454 | nonopt=NONE |
10f2d63a VZ |
455 | no_recursion= |
456 | prefix=NONE | |
457 | program_prefix=NONE | |
458 | program_suffix=NONE | |
459 | program_transform_name=s,x,x, | |
460 | silent= | |
461 | site= | |
462 | srcdir= | |
698dcdb6 | 463 | target=NONE |
10f2d63a VZ |
464 | verbose= |
465 | x_includes=NONE | |
466 | x_libraries=NONE | |
467 | bindir='${exec_prefix}/bin' | |
468 | sbindir='${exec_prefix}/sbin' | |
469 | libexecdir='${exec_prefix}/libexec' | |
470 | datadir='${prefix}/share' | |
471 | sysconfdir='${prefix}/etc' | |
472 | sharedstatedir='${prefix}/com' | |
473 | localstatedir='${prefix}/var' | |
474 | libdir='${exec_prefix}/lib' | |
475 | includedir='${prefix}/include' | |
476 | oldincludedir='/usr/include' | |
477 | infodir='${prefix}/info' | |
478 | mandir='${prefix}/man' | |
479 | ||
698dcdb6 VZ |
480 | # Initialize some other variables. |
481 | subdirs= | |
482 | MFLAGS= MAKEFLAGS= | |
483 | SHELL=${CONFIG_SHELL-/bin/sh} | |
484 | # Maximum number of lines to put in a shell here document. | |
485 | ac_max_here_lines=12 | |
10f2d63a VZ |
486 | |
487 | ac_prev= | |
488 | for ac_option | |
489 | do | |
698dcdb6 | 490 | |
10f2d63a VZ |
491 | # If the previous option needs an argument, assign it. |
492 | if test -n "$ac_prev"; then | |
493 | eval "$ac_prev=\$ac_option" | |
494 | ac_prev= | |
495 | continue | |
496 | fi | |
497 | ||
698dcdb6 VZ |
498 | case "$ac_option" in |
499 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
500 | *) ac_optarg= ;; | |
501 | esac | |
10f2d63a VZ |
502 | |
503 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
504 | ||
698dcdb6 | 505 | case "$ac_option" in |
10f2d63a VZ |
506 | |
507 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
508 | ac_prev=bindir ;; | |
509 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
698dcdb6 | 510 | bindir="$ac_optarg" ;; |
10f2d63a VZ |
511 | |
512 | -build | --build | --buil | --bui | --bu) | |
698dcdb6 | 513 | ac_prev=build ;; |
10f2d63a | 514 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
698dcdb6 | 515 | build="$ac_optarg" ;; |
10f2d63a VZ |
516 | |
517 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
518 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
519 | ac_prev=cache_file ;; | |
520 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
521 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
698dcdb6 | 522 | cache_file="$ac_optarg" ;; |
10f2d63a VZ |
523 | |
524 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
525 | ac_prev=datadir ;; | |
526 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
527 | | --da=*) | |
698dcdb6 | 528 | datadir="$ac_optarg" ;; |
10f2d63a VZ |
529 | |
530 | -disable-* | --disable-*) | |
698dcdb6 | 531 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
10f2d63a | 532 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
533 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
534 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
535 | fi | |
536 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
537 | eval "enable_${ac_feature}=no" ;; | |
10f2d63a VZ |
538 | |
539 | -enable-* | --enable-*) | |
698dcdb6 | 540 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
10f2d63a | 541 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
542 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
543 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
544 | fi | |
545 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
546 | case "$ac_option" in | |
547 | *=*) ;; | |
10f2d63a VZ |
548 | *) ac_optarg=yes ;; |
549 | esac | |
698dcdb6 | 550 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
10f2d63a VZ |
551 | |
552 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
553 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
554 | | --exec | --exe | --ex) | |
555 | ac_prev=exec_prefix ;; | |
556 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
557 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
558 | | --exec=* | --exe=* | --ex=*) | |
698dcdb6 | 559 | exec_prefix="$ac_optarg" ;; |
10f2d63a VZ |
560 | |
561 | -gas | --gas | --ga | --g) | |
562 | # Obsolete; use --with-gas. | |
563 | with_gas=yes ;; | |
564 | ||
698dcdb6 VZ |
565 | -help | --help | --hel | --he) |
566 | # Omit some internal or obsolete options to make the list less imposing. | |
567 | # This message is too long to be a string in the A/UX 3.1 sh. | |
568 | cat << EOF | |
569 | Usage: configure [options] [host] | |
570 | Options: [defaults in brackets after descriptions] | |
571 | Configuration: | |
572 | --cache-file=FILE cache test results in FILE | |
573 | --help print this message | |
574 | --no-create do not create output files | |
575 | --quiet, --silent do not print \`checking...' messages | |
576 | --version print the version of autoconf that created configure | |
577 | Directory and file names: | |
578 | --prefix=PREFIX install architecture-independent files in PREFIX | |
579 | [$ac_default_prefix] | |
580 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
581 | [same as prefix] | |
582 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
583 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
584 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
585 | --datadir=DIR read-only architecture-independent data in DIR | |
586 | [PREFIX/share] | |
587 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
588 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
589 | [PREFIX/com] | |
590 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
591 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
592 | --includedir=DIR C header files in DIR [PREFIX/include] | |
593 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
594 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
595 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
596 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
597 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
598 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
599 | --program-transform-name=PROGRAM | |
600 | run sed PROGRAM on installed program names | |
601 | EOF | |
602 | cat << EOF | |
603 | Host type: | |
604 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
605 | --host=HOST configure for HOST [guessed] | |
606 | --target=TARGET configure for TARGET [TARGET=HOST] | |
607 | Features and packages: | |
608 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
609 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
610 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
611 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
612 | --x-includes=DIR X include files are in DIR | |
613 | --x-libraries=DIR X library files are in DIR | |
614 | EOF | |
615 | if test -n "$ac_help"; then | |
616 | echo "--enable and --with options recognized:$ac_help" | |
617 | fi | |
618 | exit 0 ;; | |
10f2d63a VZ |
619 | |
620 | -host | --host | --hos | --ho) | |
698dcdb6 | 621 | ac_prev=host ;; |
10f2d63a | 622 | -host=* | --host=* | --hos=* | --ho=*) |
698dcdb6 | 623 | host="$ac_optarg" ;; |
10f2d63a VZ |
624 | |
625 | -includedir | --includedir | --includedi | --included | --include \ | |
626 | | --includ | --inclu | --incl | --inc) | |
627 | ac_prev=includedir ;; | |
628 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
629 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
698dcdb6 | 630 | includedir="$ac_optarg" ;; |
10f2d63a VZ |
631 | |
632 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
633 | ac_prev=infodir ;; | |
634 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
698dcdb6 | 635 | infodir="$ac_optarg" ;; |
10f2d63a VZ |
636 | |
637 | -libdir | --libdir | --libdi | --libd) | |
638 | ac_prev=libdir ;; | |
639 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
698dcdb6 | 640 | libdir="$ac_optarg" ;; |
10f2d63a VZ |
641 | |
642 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
643 | | --libexe | --libex | --libe) | |
644 | ac_prev=libexecdir ;; | |
645 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
646 | | --libexe=* | --libex=* | --libe=*) | |
698dcdb6 | 647 | libexecdir="$ac_optarg" ;; |
10f2d63a VZ |
648 | |
649 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
650 | | --localstate | --localstat | --localsta | --localst \ | |
651 | | --locals | --local | --loca | --loc | --lo) | |
652 | ac_prev=localstatedir ;; | |
653 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
654 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
655 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
698dcdb6 | 656 | localstatedir="$ac_optarg" ;; |
10f2d63a VZ |
657 | |
658 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
659 | ac_prev=mandir ;; | |
660 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
698dcdb6 | 661 | mandir="$ac_optarg" ;; |
10f2d63a VZ |
662 | |
663 | -nfp | --nfp | --nf) | |
664 | # Obsolete; use --without-fp. | |
665 | with_fp=no ;; | |
666 | ||
667 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
668 | | --no-cr | --no-c) | |
669 | no_create=yes ;; | |
670 | ||
671 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
672 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
673 | no_recursion=yes ;; | |
674 | ||
675 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
676 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
677 | | --oldin | --oldi | --old | --ol | --o) | |
678 | ac_prev=oldincludedir ;; | |
679 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
680 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
681 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
698dcdb6 | 682 | oldincludedir="$ac_optarg" ;; |
10f2d63a VZ |
683 | |
684 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
685 | ac_prev=prefix ;; | |
686 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
698dcdb6 | 687 | prefix="$ac_optarg" ;; |
10f2d63a VZ |
688 | |
689 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
690 | | --program-pre | --program-pr | --program-p) | |
691 | ac_prev=program_prefix ;; | |
692 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
693 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
698dcdb6 | 694 | program_prefix="$ac_optarg" ;; |
10f2d63a VZ |
695 | |
696 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
697 | | --program-suf | --program-su | --program-s) | |
698 | ac_prev=program_suffix ;; | |
699 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
700 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
698dcdb6 | 701 | program_suffix="$ac_optarg" ;; |
10f2d63a VZ |
702 | |
703 | -program-transform-name | --program-transform-name \ | |
704 | | --program-transform-nam | --program-transform-na \ | |
705 | | --program-transform-n | --program-transform- \ | |
706 | | --program-transform | --program-transfor \ | |
707 | | --program-transfo | --program-transf \ | |
708 | | --program-trans | --program-tran \ | |
709 | | --progr-tra | --program-tr | --program-t) | |
710 | ac_prev=program_transform_name ;; | |
711 | -program-transform-name=* | --program-transform-name=* \ | |
712 | | --program-transform-nam=* | --program-transform-na=* \ | |
713 | | --program-transform-n=* | --program-transform-=* \ | |
714 | | --program-transform=* | --program-transfor=* \ | |
715 | | --program-transfo=* | --program-transf=* \ | |
716 | | --program-trans=* | --program-tran=* \ | |
717 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
698dcdb6 | 718 | program_transform_name="$ac_optarg" ;; |
10f2d63a VZ |
719 | |
720 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
721 | | -silent | --silent | --silen | --sile | --sil) | |
722 | silent=yes ;; | |
723 | ||
724 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
725 | ac_prev=sbindir ;; | |
726 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
727 | | --sbi=* | --sb=*) | |
698dcdb6 | 728 | sbindir="$ac_optarg" ;; |
10f2d63a VZ |
729 | |
730 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
731 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
732 | | --sharedst | --shareds | --shared | --share | --shar \ | |
733 | | --sha | --sh) | |
734 | ac_prev=sharedstatedir ;; | |
735 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
736 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
737 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
738 | | --sha=* | --sh=*) | |
698dcdb6 | 739 | sharedstatedir="$ac_optarg" ;; |
10f2d63a VZ |
740 | |
741 | -site | --site | --sit) | |
742 | ac_prev=site ;; | |
743 | -site=* | --site=* | --sit=*) | |
698dcdb6 | 744 | site="$ac_optarg" ;; |
10f2d63a VZ |
745 | |
746 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
747 | ac_prev=srcdir ;; | |
748 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
698dcdb6 | 749 | srcdir="$ac_optarg" ;; |
10f2d63a VZ |
750 | |
751 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
752 | | --syscon | --sysco | --sysc | --sys | --sy) | |
753 | ac_prev=sysconfdir ;; | |
754 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
755 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
698dcdb6 | 756 | sysconfdir="$ac_optarg" ;; |
10f2d63a VZ |
757 | |
758 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
698dcdb6 | 759 | ac_prev=target ;; |
10f2d63a | 760 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
698dcdb6 | 761 | target="$ac_optarg" ;; |
10f2d63a VZ |
762 | |
763 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
764 | verbose=yes ;; | |
765 | ||
698dcdb6 VZ |
766 | -version | --version | --versio | --versi | --vers) |
767 | echo "configure generated by autoconf version 2.13" | |
768 | exit 0 ;; | |
10f2d63a VZ |
769 | |
770 | -with-* | --with-*) | |
698dcdb6 | 771 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
10f2d63a | 772 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
773 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
774 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
775 | fi | |
10f2d63a | 776 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
698dcdb6 VZ |
777 | case "$ac_option" in |
778 | *=*) ;; | |
10f2d63a VZ |
779 | *) ac_optarg=yes ;; |
780 | esac | |
698dcdb6 | 781 | eval "with_${ac_package}='$ac_optarg'" ;; |
10f2d63a VZ |
782 | |
783 | -without-* | --without-*) | |
698dcdb6 | 784 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
10f2d63a | 785 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
786 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
787 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
788 | fi | |
789 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
790 | eval "with_${ac_package}=no" ;; | |
10f2d63a VZ |
791 | |
792 | --x) | |
793 | # Obsolete; use --with-x. | |
794 | with_x=yes ;; | |
795 | ||
796 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
797 | | --x-incl | --x-inc | --x-in | --x-i) | |
798 | ac_prev=x_includes ;; | |
799 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
800 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
698dcdb6 | 801 | x_includes="$ac_optarg" ;; |
10f2d63a VZ |
802 | |
803 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
804 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
805 | ac_prev=x_libraries ;; | |
806 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
807 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
698dcdb6 | 808 | x_libraries="$ac_optarg" ;; |
10f2d63a | 809 | |
698dcdb6 | 810 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
10f2d63a VZ |
811 | ;; |
812 | ||
813 | *) | |
698dcdb6 VZ |
814 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
815 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
816 | fi | |
817 | if test "x$nonopt" != xNONE; then | |
818 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
819 | fi | |
820 | nonopt="$ac_option" | |
10f2d63a VZ |
821 | ;; |
822 | ||
823 | esac | |
824 | done | |
825 | ||
826 | if test -n "$ac_prev"; then | |
698dcdb6 VZ |
827 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
828 | fi | |
829 | ||
830 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
831 | ||
832 | # File descriptor usage: | |
833 | # 0 standard input | |
834 | # 1 file creation | |
835 | # 2 errors and warnings | |
836 | # 3 some systems may open it to /dev/tty | |
837 | # 4 used on the Kubota Titan | |
838 | # 6 checking for... messages and results | |
839 | # 5 compiler messages saved in config.log | |
840 | if test "$silent" = yes; then | |
841 | exec 6>/dev/null | |
842 | else | |
843 | exec 6>&1 | |
10f2d63a | 844 | fi |
698dcdb6 VZ |
845 | exec 5>./config.log |
846 | ||
847 | echo "\ | |
848 | This file contains any messages produced by compilers while | |
849 | running configure, to aid debugging if configure makes a mistake. | |
850 | " 1>&5 | |
10f2d63a | 851 | |
698dcdb6 VZ |
852 | # Strip out --no-create and --no-recursion so they do not pile up. |
853 | # Also quote any args containing shell metacharacters. | |
854 | ac_configure_args= | |
855 | for ac_arg | |
10f2d63a | 856 | do |
698dcdb6 VZ |
857 | case "$ac_arg" in |
858 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
859 | | --no-cr | --no-c) ;; | |
860 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
861 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
862 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
863 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
864 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
10f2d63a VZ |
865 | esac |
866 | done | |
867 | ||
698dcdb6 VZ |
868 | # NLS nuisances. |
869 | # Only set these to C if already set. These must not be set unconditionally | |
870 | # because not all systems understand e.g. LANG=C (notably SCO). | |
871 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
872 | # Non-C LC_CTYPE values break the ctype check. | |
873 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
874 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
875 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
876 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
10f2d63a | 877 | |
698dcdb6 VZ |
878 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
879 | rm -rf conftest* confdefs.h | |
880 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
881 | echo > confdefs.h | |
10f2d63a | 882 | |
698dcdb6 VZ |
883 | # A filename unique to this package, relative to the directory that |
884 | # configure is in, which we can look for to find out if srcdir is correct. | |
885 | ac_unique_file=wx-config.in | |
10f2d63a VZ |
886 | |
887 | # Find the source files, if location was not specified. | |
888 | if test -z "$srcdir"; then | |
889 | ac_srcdir_defaulted=yes | |
890 | # Try the directory containing this script, then its parent. | |
891 | ac_prog=$0 | |
698dcdb6 | 892 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
10f2d63a VZ |
893 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
894 | srcdir=$ac_confdir | |
895 | if test ! -r $srcdir/$ac_unique_file; then | |
896 | srcdir=.. | |
897 | fi | |
898 | else | |
899 | ac_srcdir_defaulted=no | |
900 | fi | |
901 | if test ! -r $srcdir/$ac_unique_file; then | |
902 | if test "$ac_srcdir_defaulted" = yes; then | |
698dcdb6 | 903 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
10f2d63a | 904 | else |
698dcdb6 | 905 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
10f2d63a VZ |
906 | fi |
907 | fi | |
698dcdb6 | 908 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
10f2d63a VZ |
909 | |
910 | # Prefer explicitly selected file to automatically selected ones. | |
911 | if test -z "$CONFIG_SITE"; then | |
912 | if test "x$prefix" != xNONE; then | |
913 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
914 | else | |
915 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
916 | fi | |
917 | fi | |
918 | for ac_site_file in $CONFIG_SITE; do | |
919 | if test -r "$ac_site_file"; then | |
698dcdb6 | 920 | echo "loading site script $ac_site_file" |
10f2d63a VZ |
921 | . "$ac_site_file" |
922 | fi | |
923 | done | |
924 | ||
925 | if test -r "$cache_file"; then | |
698dcdb6 VZ |
926 | echo "loading cache $cache_file" |
927 | . $cache_file | |
10f2d63a | 928 | else |
698dcdb6 VZ |
929 | echo "creating cache $cache_file" |
930 | > $cache_file | |
10f2d63a VZ |
931 | fi |
932 | ||
933 | ac_ext=c | |
698dcdb6 | 934 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 935 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
936 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
937 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
938 | cross_compiling=$ac_cv_prog_cc_cross | |
939 | ||
940 | ac_exeext= | |
941 | ac_objext=o | |
942 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
943 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
944 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
945 | ac_n= ac_c=' | |
946 | ' ac_t=' ' | |
947 | else | |
948 | ac_n=-n ac_c= ac_t= | |
949 | fi | |
10f2d63a | 950 | else |
698dcdb6 | 951 | ac_n= ac_c='\c' ac_t= |
10f2d63a | 952 | fi |
698dcdb6 VZ |
953 | |
954 | ||
10f2d63a | 955 | |
7c66a493 VZ |
956 | ac_aux_dir= |
957 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
958 | if test -f $ac_dir/install-sh; then | |
959 | ac_aux_dir=$ac_dir | |
960 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
961 | break | |
962 | elif test -f $ac_dir/install.sh; then | |
963 | ac_aux_dir=$ac_dir | |
964 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
965 | break | |
966 | fi | |
967 | done | |
968 | if test -z "$ac_aux_dir"; then | |
698dcdb6 | 969 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
7c66a493 | 970 | fi |
698dcdb6 VZ |
971 | ac_config_guess=$ac_aux_dir/config.guess |
972 | ac_config_sub=$ac_aux_dir/config.sub | |
973 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
703e0a69 | 974 | |
698dcdb6 VZ |
975 | |
976 | # Do some error checking and defaulting for the host and target type. | |
977 | # The inputs are: | |
978 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
979 | # | |
980 | # The rules are: | |
981 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
982 | # same time. | |
983 | # 2. Host defaults to nonopt. | |
984 | # 3. If nonopt is not specified, then host defaults to the current host, | |
985 | # as determined by config.guess. | |
986 | # 4. Target and build default to nonopt. | |
987 | # 5. If nonopt is not specified, then target and build default to host. | |
7c66a493 VZ |
988 | |
989 | # The aliases save the names the user supplied, while $host etc. | |
990 | # will get canonicalized. | |
698dcdb6 VZ |
991 | case $host---$target---$nonopt in |
992 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
993 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
994 | esac | |
995 | ||
996 | ||
997 | # Make sure we can run config.sub. | |
998 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
999 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
1000 | fi | |
1001 | ||
1002 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
9e691f46 | 1003 | echo "configure:1004: checking host system type" >&5 |
698dcdb6 VZ |
1004 | |
1005 | host_alias=$host | |
1006 | case "$host_alias" in | |
1007 | NONE) | |
1008 | case $nonopt in | |
1009 | NONE) | |
1010 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
1011 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
1012 | fi ;; | |
1013 | *) host_alias=$nonopt ;; | |
1014 | esac ;; | |
1015 | esac | |
1016 | ||
1017 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
1018 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1019 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1020 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1021 | echo "$ac_t""$host" 1>&6 | |
1022 | ||
1023 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
9e691f46 | 1024 | echo "configure:1025: checking target system type" >&5 |
698dcdb6 VZ |
1025 | |
1026 | target_alias=$target | |
1027 | case "$target_alias" in | |
1028 | NONE) | |
1029 | case $nonopt in | |
1030 | NONE) target_alias=$host_alias ;; | |
1031 | *) target_alias=$nonopt ;; | |
1032 | esac ;; | |
1033 | esac | |
1034 | ||
1035 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
1036 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1037 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1038 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1039 | echo "$ac_t""$target" 1>&6 | |
1040 | ||
1041 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
9e691f46 | 1042 | echo "configure:1043: checking build system type" >&5 |
698dcdb6 VZ |
1043 | |
1044 | build_alias=$build | |
1045 | case "$build_alias" in | |
1046 | NONE) | |
1047 | case $nonopt in | |
1048 | NONE) build_alias=$host_alias ;; | |
1049 | *) build_alias=$nonopt ;; | |
1050 | esac ;; | |
1051 | esac | |
1052 | ||
1053 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
1054 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1055 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1056 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1057 | echo "$ac_t""$build" 1>&6 | |
1058 | ||
1059 | test "$host_alias" != "$target_alias" && | |
7c66a493 VZ |
1060 | test "$program_prefix$program_suffix$program_transform_name" = \ |
1061 | NONENONEs,x,x, && | |
1062 | program_prefix=${target_alias}- | |
1063 | ||
698dcdb6 VZ |
1064 | |
1065 | ||
10f2d63a | 1066 | WX_MAJOR_VERSION_NUMBER=2 |
37d403aa | 1067 | WX_MINOR_VERSION_NUMBER=3 |
a0d927d1 | 1068 | WX_RELEASE_NUMBER=3 |
10f2d63a | 1069 | |
10f2d63a | 1070 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER |
10f2d63a | 1071 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER |
6426998c | 1072 | |
978f1259 RL |
1073 | WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER |
1074 | ||
a0d927d1 | 1075 | WX_CURRENT=2 |
6426998c RL |
1076 | WX_REVISION=0 |
1077 | WX_AGE=0 | |
1078 | ||
698dcdb6 VZ |
1079 | |
1080 | ||
10f2d63a VZ |
1081 | USE_UNIX=1 |
1082 | USE_WIN32=0 | |
f9bc1684 | 1083 | USE_DOS=0 |
b12915c1 | 1084 | USE_BEOS=0 |
1216f52d | 1085 | USE_MAC=0 |
b12915c1 | 1086 | |
10f2d63a VZ |
1087 | USE_LINUX= |
1088 | USE_SGI= | |
1089 | USE_HPUX= | |
1090 | USE_SYSV= | |
1091 | USE_SVR4= | |
1092 | USE_AIX= | |
1093 | USE_SUN= | |
1094 | USE_SOLARIS= | |
1095 | USE_SUNOS= | |
1096 | USE_ALPHA= | |
1097 | USE_OSF= | |
1098 | USE_BSD= | |
f11bdd03 | 1099 | USE_DARWIN= |
10f2d63a | 1100 | USE_FREEBSD= |
95c8801c | 1101 | USE_OPENBSD= |
f6bcfd97 | 1102 | USE_NETBSD= |
10f2d63a VZ |
1103 | USE_VMS= |
1104 | USE_ULTRIX= | |
10f2d63a VZ |
1105 | USE_DATA_GENERAL= |
1106 | ||
ab9b9eab VZ |
1107 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 |
1108 | ||
f79bd02d | 1109 | ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM WINE X11" |
10f2d63a VZ |
1110 | |
1111 | DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1112 | DEFAULT_wxUSE_MAC=0 |
1113 | DEFAULT_wxUSE_MGL=0 | |
1725144d | 1114 | DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1115 | DEFAULT_wxUSE_MOTIF=0 |
1116 | DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1117 | DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1118 | DEFAULT_wxUSE_WINE=0 |
f79bd02d | 1119 | DEFAULT_wxUSE_X11=0 |
10f2d63a VZ |
1120 | |
1121 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1122 | DEFAULT_DEFAULT_wxUSE_MAC=0 |
1123 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1725144d | 1124 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1125 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 |
1126 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1127 | DEFAULT_DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1128 | DEFAULT_DEFAULT_wxUSE_WINE=0 |
f79bd02d | 1129 | DEFAULT_DEFAULT_wxUSE_X11=0 |
10f2d63a | 1130 | |
d6a55c4b | 1131 | PROGRAM_EXT= |
3a922bb4 | 1132 | SO_SUFFIX=so |
d6a55c4b | 1133 | |
10f2d63a VZ |
1134 | case "${host}" in |
1135 | *-hp-hpux* ) | |
1136 | USE_HPUX=1 | |
1137 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1138 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
3a922bb4 | 1139 | SO_SUFFIX=sl |
698dcdb6 | 1140 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1141 | #define __HPUX__ 1 |
1142 | EOF | |
1143 | ||
1144 | ;; | |
1145 | *-*-linux* ) | |
1146 | USE_LINUX=1 | |
698dcdb6 | 1147 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1148 | #define __LINUX__ 1 |
1149 | EOF | |
1150 | ||
1151 | TMP=`uname -m` | |
1152 | if test "x$TMP" = "xalpha"; then | |
1153 | USE_ALPHA=1 | |
698dcdb6 | 1154 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1155 | #define __ALPHA__ 1 |
1156 | EOF | |
1157 | ||
1158 | fi | |
1159 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1160 | ;; | |
1161 | *-*-irix5* | *-*-irix6* ) | |
1162 | USE_SGI=1 | |
1163 | USE_SVR4=1 | |
698dcdb6 | 1164 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1165 | #define __SGI__ 1 |
1166 | EOF | |
1167 | ||
698dcdb6 | 1168 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1169 | #define __SVR4__ 1 |
1170 | EOF | |
1171 | ||
1172 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1173 | ;; | |
1174 | *-*-solaris2* ) | |
1175 | USE_SUN=1 | |
1176 | USE_SOLARIS=1 | |
1177 | USE_SVR4=1 | |
698dcdb6 | 1178 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1179 | #define __SUN__ 1 |
1180 | EOF | |
1181 | ||
698dcdb6 | 1182 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1183 | #define __SOLARIS__ 1 |
1184 | EOF | |
1185 | ||
698dcdb6 | 1186 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1187 | #define __SVR4__ 1 |
1188 | EOF | |
1189 | ||
1190 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1191 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1192 | ;; |
1193 | *-*-sunos4* ) | |
1194 | USE_SUN=1 | |
1195 | USE_SUNOS=1 | |
1196 | USE_BSD=1 | |
698dcdb6 | 1197 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1198 | #define __SUN__ 1 |
1199 | EOF | |
1200 | ||
698dcdb6 | 1201 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1202 | #define __SUNOS__ 1 |
1203 | EOF | |
1204 | ||
698dcdb6 | 1205 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1206 | #define __BSD__ 1 |
1207 | EOF | |
1208 | ||
1209 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1210 | ;; | |
f6bcfd97 | 1211 | *-*-freebsd*) |
10f2d63a VZ |
1212 | USE_BSD=1 |
1213 | USE_FREEBSD=1 | |
698dcdb6 | 1214 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1215 | #define __FREEBSD__ 1 |
1216 | EOF | |
1217 | ||
698dcdb6 | 1218 | cat >> confdefs.h <<\EOF |
10f2d63a | 1219 | #define __BSD__ 1 |
95c8801c VS |
1220 | EOF |
1221 | ||
1222 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1223 | ;; | |
1224 | *-*-openbsd*) | |
1225 | USE_BSD=1 | |
1226 | USE_OPENBSD=1 | |
698dcdb6 | 1227 | cat >> confdefs.h <<\EOF |
95c8801c VS |
1228 | #define __FREEBSD__ 1 |
1229 | EOF | |
1230 | ||
698dcdb6 | 1231 | cat >> confdefs.h <<\EOF |
95c8801c | 1232 | #define __OPENBSD__ 1 |
f6bcfd97 BP |
1233 | EOF |
1234 | ||
1235 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1236 | ;; | |
1237 | *-*-netbsd*) | |
1238 | USE_BSD=1 | |
1239 | USE_NETBSD=1 | |
698dcdb6 | 1240 | cat >> confdefs.h <<\EOF |
f6bcfd97 BP |
1241 | #define __FREEBSD__ 1 |
1242 | EOF | |
1243 | ||
698dcdb6 | 1244 | cat >> confdefs.h <<\EOF |
f6bcfd97 | 1245 | #define __NETBSD__ 1 |
10f2d63a VZ |
1246 | EOF |
1247 | ||
1248 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1249 | ;; | |
1250 | *-*-osf* ) | |
1251 | USE_ALPHA=1 | |
1252 | USE_OSF=1 | |
698dcdb6 | 1253 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1254 | #define __ALPHA__ 1 |
1255 | EOF | |
1256 | ||
698dcdb6 | 1257 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1258 | #define __OSF__ 1 |
1259 | EOF | |
1260 | ||
1261 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
f6bcfd97 | 1262 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1263 | ;; |
1264 | *-*-dgux5* ) | |
1265 | USE_ALPHA=1 | |
1266 | USE_SVR4=1 | |
698dcdb6 | 1267 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1268 | #define __ALPHA__ 1 |
1269 | EOF | |
1270 | ||
698dcdb6 | 1271 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1272 | #define __SVR4__ 1 |
1273 | EOF | |
1274 | ||
1275 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1276 | ;; | |
1277 | *-*-sysv5* ) | |
1278 | USE_SYSV=1 | |
1279 | USE_SVR4=1 | |
698dcdb6 | 1280 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1281 | #define __SYSV__ 1 |
1282 | EOF | |
1283 | ||
698dcdb6 | 1284 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1285 | #define __SVR4__ 1 |
1286 | EOF | |
1287 | ||
1288 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1289 | ;; | |
1290 | *-*-aix* ) | |
1291 | USE_AIX=1 | |
1292 | USE_SYSV=1 | |
1293 | USE_SVR4=1 | |
321d2b14 | 1294 | SO_SUFFIX=a |
698dcdb6 | 1295 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1296 | #define __AIX__ 1 |
1297 | EOF | |
1298 | ||
698dcdb6 | 1299 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1300 | #define __SYSV__ 1 |
1301 | EOF | |
1302 | ||
698dcdb6 | 1303 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1304 | #define __SVR4__ 1 |
1305 | EOF | |
1306 | ||
1307 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1308 | ;; | |
1309 | ||
1c8183e2 | 1310 | *-*-cygwin* | *-*-mingw32* ) |
10f2d63a VZ |
1311 | USE_UNIX=0 |
1312 | USE_WIN32=1 | |
3a922bb4 | 1313 | SO_SUFFIX=dll |
698dcdb6 | 1314 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1315 | #define __WIN32__ 1 |
1316 | EOF | |
1317 | ||
698dcdb6 | 1318 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1319 | #define __WIN95__ 1 |
1320 | EOF | |
1321 | ||
698dcdb6 | 1322 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1323 | #define __WINDOWS__ 1 |
1324 | EOF | |
1325 | ||
698dcdb6 | 1326 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1327 | #define __GNUWIN32__ 1 |
1328 | EOF | |
1329 | ||
698dcdb6 | 1330 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1331 | #define STRICT 1 |
1332 | EOF | |
1333 | ||
698dcdb6 | 1334 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1335 | #define WINVER 0x0400 |
1336 | EOF | |
1337 | ||
cf27ef00 | 1338 | PROGRAM_EXT=".exe" |
7b7a7637 | 1339 | RESCOMP=windres |
10f2d63a VZ |
1340 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
1341 | ;; | |
1342 | ||
f9bc1684 VS |
1343 | *-pc-msdosdjgpp ) |
1344 | USE_UNIX=0 | |
1345 | USE_DOS=1 | |
1346 | cat >> confdefs.h <<\EOF | |
1347 | #define __DOS__ 1 | |
1348 | EOF | |
1349 | ||
1350 | PROGRAM_EXT=".exe" | |
1351 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
f9bc1684 VS |
1352 | ;; |
1353 | ||
6fa882bd | 1354 | *-pc-os2_emx | *-pc-os2-emx ) |
698dcdb6 | 1355 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1356 | #define __EMX__ 1 |
1357 | EOF | |
1358 | ||
cf27ef00 | 1359 | PROGRAM_EXT=".exe" |
e07802fc | 1360 | DEFAULT_DEFAULT_wxUSE_PM=1 |
d558c907 | 1361 | LIBS="$LIBS -lstdcpp" |
10f2d63a VZ |
1362 | ;; |
1363 | ||
d08b457b GD |
1364 | powerpc-*-darwin* ) |
1365 | USE_BSD=1 | |
f11bdd03 | 1366 | USE_DARWIN=1 |
3a922bb4 | 1367 | SO_SUFFIX=dylib |
698dcdb6 | 1368 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1369 | #define __BSD__ 1 |
b4085ce6 GD |
1370 | EOF |
1371 | ||
698dcdb6 | 1372 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1373 | #define __DARWIN__ 1 |
d08b457b GD |
1374 | EOF |
1375 | ||
1376 | cat >> confdefs.h <<\EOF | |
1377 | #define __POWERPC__ 1 | |
b4085ce6 GD |
1378 | EOF |
1379 | ||
1380 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1381 | ;; | |
1382 | ||
b12915c1 VZ |
1383 | *-*-beos* ) |
1384 | USE_BEOS=1 | |
698dcdb6 | 1385 | cat >> confdefs.h <<\EOF |
b12915c1 VZ |
1386 | #define __BEOS__ 1 |
1387 | EOF | |
1388 | ||
1389 | ;; | |
1390 | ||
10f2d63a | 1391 | *) |
698dcdb6 | 1392 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } |
10f2d63a VZ |
1393 | esac |
1394 | ||
1395 | if test "$USE_UNIX" = 1 ; then | |
b12915c1 | 1396 | wxUSE_UNIX=yes |
698dcdb6 | 1397 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1398 | #define __UNIX__ 1 |
1399 | EOF | |
1400 | ||
10f2d63a VZ |
1401 | fi |
1402 | ||
1e487827 | 1403 | |
1e487827 | 1404 | |
6232543b | 1405 | |
10f2d63a VZ |
1406 | wx_arg_cache_file="configarg.cache" |
1407 | echo "loading argument cache $wx_arg_cache_file" | |
1408 | rm -f ${wx_arg_cache_file}.tmp | |
1409 | touch ${wx_arg_cache_file}.tmp | |
1410 | touch ${wx_arg_cache_file} | |
698dcdb6 | 1411 | |
10f2d63a VZ |
1412 | |
1413 | DEBUG_CONFIGURE=0 | |
1414 | if test $DEBUG_CONFIGURE = 1; then | |
1e6feb95 VZ |
1415 | DEFAULT_wxUSE_UNIVERSAL=no |
1416 | ||
d8356fa3 VZ |
1417 | DEFAULT_wxUSE_NANOX=no |
1418 | ||
10f2d63a VZ |
1419 | DEFAULT_wxUSE_THREADS=yes |
1420 | ||
1421 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1422 | DEFAULT_wxUSE_SONAME=no |
1e6feb95 | 1423 | DEFAULT_wxUSE_OPTIMISE=no |
10f2d63a VZ |
1424 | DEFAULT_wxUSE_PROFILE=no |
1425 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
1426 | DEFAULT_wxUSE_NO_RTTI=no |
1427 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
1428 | DEFAULT_wxUSE_PERMISSIVE=no |
1429 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1430 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1431 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1432 | DEFAULT_wxUSE_MEM_TRACING=no | |
1433 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1434 | DEFAULT_wxUSE_DMALLOC=no | |
a7ae7112 | 1435 | DEFAULT_wxUSE_PRECOMP=no |
10f2d63a VZ |
1436 | DEFAULT_wxUSE_APPLE_IEEE=no |
1437 | ||
1438 | DEFAULT_wxUSE_LOG=yes | |
1e6feb95 VZ |
1439 | DEFAULT_wxUSE_LOGWINDOW=no |
1440 | DEFAULT_wxUSE_LOGGUI=no | |
69d27ff7 | 1441 | DEFAULT_wxUSE_LOGDIALOG=no |
10f2d63a VZ |
1442 | |
1443 | DEFAULT_wxUSE_GUI=yes | |
1e6feb95 | 1444 | DEFAULT_wxUSE_CONTROLS=no |
10f2d63a | 1445 | |
3e44f09d | 1446 | DEFAULT_wxUSE_REGEX=no |
10f2d63a VZ |
1447 | DEFAULT_wxUSE_ZLIB=no |
1448 | DEFAULT_wxUSE_LIBPNG=no | |
1449 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 1450 | DEFAULT_wxUSE_LIBTIFF=no |
10f2d63a | 1451 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 1452 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1453 | |
eb4efbdc | 1454 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no |
4f3c5f06 | 1455 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
10f2d63a | 1456 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1457 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
1458 | DEFAULT_wxUSE_DATETIME=no | |
1459 | DEFAULT_wxUSE_TIMEDATE=no | |
1460 | DEFAULT_wxUSE_TIMER=no | |
1461 | DEFAULT_wxUSE_STOPWATCH=no | |
10f2d63a | 1462 | DEFAULT_wxUSE_FILE=no |
1e6feb95 | 1463 | DEFAULT_wxUSE_FFILE=no |
a3a584a7 | 1464 | DEFAULT_wxUSE_TEXTBUFFER=no |
10f2d63a | 1465 | DEFAULT_wxUSE_TEXTFILE=no |
10f2d63a VZ |
1466 | DEFAULT_wxUSE_WAVE=no |
1467 | DEFAULT_wxUSE_INTL=no | |
1468 | DEFAULT_wxUSE_CONFIG=no | |
1e6feb95 | 1469 | DEFAULT_wxUSE_FONTMAP=no |
10f2d63a VZ |
1470 | DEFAULT_wxUSE_STREAMS=no |
1471 | DEFAULT_wxUSE_SOCKETS=no | |
1472 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
10f2d63a | 1473 | DEFAULT_wxUSE_JOYSTICK=no |
6bff71f8 | 1474 | DEFAULT_wxUSE_DYNLIB_CLASS=no |
0b9ab0bd | 1475 | DEFAULT_wxUSE_DYNAMIC_LOADER=no |
10f2d63a | 1476 | DEFAULT_wxUSE_LONGLONG=no |
e8f65ba6 | 1477 | DEFAULT_wxUSE_GEOMETRY=no |
10f2d63a VZ |
1478 | |
1479 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1480 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1481 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1482 | ||
1483 | DEFAULT_wxUSE_X_RESOURCES=no | |
1484 | DEFAULT_wxUSE_CLIPBOARD=no | |
1485 | DEFAULT_wxUSE_TOOLTIPS=no | |
1486 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
24fd6d87 | 1487 | DEFAULT_wxUSE_DRAGIMAGE=no |
10f2d63a VZ |
1488 | DEFAULT_wxUSE_SPLINES=no |
1489 | ||
1490 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1491 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1492 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1493 | ||
1494 | DEFAULT_wxUSE_PROLOGIO=no | |
1495 | DEFAULT_wxUSE_RESOURCES=no | |
1496 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1497 | DEFAULT_wxUSE_IPC=no | |
1498 | DEFAULT_wxUSE_HELP=no | |
29fd3c0c | 1499 | DEFAULT_wxUSE_MS_HTML_HELP=no |
3379ed37 | 1500 | DEFAULT_wxUSE_WXHTML_HELP=no |
24176f2c | 1501 | DEFAULT_wxUSE_TREELAYOUT=no |
10f2d63a | 1502 | DEFAULT_wxUSE_METAFILE=no |
1e6feb95 | 1503 | DEFAULT_wxUSE_MIMETYPE=no |
4cdb0ab0 VS |
1504 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no |
1505 | DEFAULT_wxUSE_PROTOCOL=no | |
1506 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
1507 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
1508 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
1509 | DEFAULT_wxUSE_URL=no | |
1510 | ||
10f2d63a | 1511 | DEFAULT_wxUSE_COMMONDLGS=no |
1e6feb95 VZ |
1512 | DEFAULT_wxUSE_CHOICEDLG=no |
1513 | DEFAULT_wxUSE_COLOURDLG=no | |
10f2d63a | 1514 | DEFAULT_wxUSE_DIRDLG=no |
1e6feb95 | 1515 | DEFAULT_wxUSE_FILEDLG=no |
8db37e06 | 1516 | DEFAULT_wxUSE_FINDREPLDLG=no |
1e6feb95 VZ |
1517 | DEFAULT_wxUSE_FONTDLG=no |
1518 | DEFAULT_wxUSE_MSGDLG=no | |
1519 | DEFAULT_wxUSE_NUMBERDLG=no | |
10f2d63a | 1520 | DEFAULT_wxUSE_TEXTDLG=no |
cbca9943 | 1521 | DEFAULT_wxUSE_SPLASH=no |
10f2d63a VZ |
1522 | DEFAULT_wxUSE_STARTUP_TIPS=no |
1523 | DEFAULT_wxUSE_PROGRESSDLG=no | |
b1f5d087 VZ |
1524 | DEFAULT_wxUSE_WIZARDDLG=no |
1525 | ||
1e6feb95 | 1526 | DEFAULT_wxUSE_MENUS=no |
10f2d63a VZ |
1527 | DEFAULT_wxUSE_MINIFRAME=no |
1528 | DEFAULT_wxUSE_HTML=no | |
24528b0c | 1529 | DEFAULT_wxUSE_FILESYSTEM=no |
10f2d63a VZ |
1530 | DEFAULT_wxUSE_FS_INET=no |
1531 | DEFAULT_wxUSE_FS_ZIP=no | |
1532 | DEFAULT_wxUSE_BUSYINFO=no | |
1533 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1e6feb95 | 1534 | DEFAULT_wxUSE_VALIDATORS=no |
10f2d63a VZ |
1535 | |
1536 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 | 1537 | DEFAULT_wxUSE_BUTTON=no |
10f2d63a | 1538 | DEFAULT_wxUSE_BMPBUTTON=no |
1e6feb95 VZ |
1539 | DEFAULT_wxUSE_CALCTRL=no |
1540 | DEFAULT_wxUSE_CARET=no | |
10f2d63a VZ |
1541 | DEFAULT_wxUSE_CHECKBOX=no |
1542 | DEFAULT_wxUSE_CHECKLST=no | |
1e6feb95 | 1543 | DEFAULT_wxUSE_CHOICE=no |
10f2d63a VZ |
1544 | DEFAULT_wxUSE_COMBOBOX=no |
1545 | DEFAULT_wxUSE_GAUGE=no | |
1546 | DEFAULT_wxUSE_GRID=no | |
1547 | DEFAULT_wxUSE_NEW_GRID=no | |
1548 | DEFAULT_wxUSE_IMAGLIST=no | |
1549 | DEFAULT_wxUSE_LISTBOX=no | |
1550 | DEFAULT_wxUSE_LISTCTRL=no | |
1551 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 1552 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
1553 | DEFAULT_wxUSE_RADIOBOX=no |
1554 | DEFAULT_wxUSE_RADIOBTN=no | |
1555 | DEFAULT_wxUSE_SASH=no | |
1556 | DEFAULT_wxUSE_SCROLLBAR=no | |
1557 | DEFAULT_wxUSE_SLIDER=no | |
1558 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 1559 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
1560 | DEFAULT_wxUSE_SPLITTER=no |
1561 | DEFAULT_wxUSE_STATBMP=no | |
1562 | DEFAULT_wxUSE_STATBOX=no | |
1563 | DEFAULT_wxUSE_STATLINE=no | |
1e6feb95 | 1564 | DEFAULT_wxUSE_STATTEXT=no |
10f2d63a VZ |
1565 | DEFAULT_wxUSE_STATUSBAR=yes |
1566 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1567 | DEFAULT_wxUSE_TEXTCTRL=no |
1db8dc4a | 1568 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 1569 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
1570 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
1571 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a | 1572 | DEFAULT_wxUSE_TREECTRL=no |
9f41d601 | 1573 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 1574 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
1575 | |
1576 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 1577 | DEFAULT_wxUSE_UNICODE_MSLU=no |
10f2d63a VZ |
1578 | DEFAULT_wxUSE_WCSRTOMBS=no |
1579 | ||
edae8572 | 1580 | DEFAULT_wxUSE_PALETTE=no |
0046ff7c | 1581 | DEFAULT_wxUSE_IMAGE=no |
10f2d63a VZ |
1582 | DEFAULT_wxUSE_GIF=no |
1583 | DEFAULT_wxUSE_PCX=no | |
1584 | DEFAULT_wxUSE_PNM=no | |
4b6b4dfc | 1585 | DEFAULT_wxUSE_IFF=no |
0046ff7c | 1586 | DEFAULT_wxUSE_XPM=no |
658974ae | 1587 | DEFAULT_wxUSE_ICO_CUR=no |
10f2d63a | 1588 | else |
1e6feb95 VZ |
1589 | DEFAULT_wxUSE_UNIVERSAL=no |
1590 | ||
d8356fa3 VZ |
1591 | DEFAULT_wxUSE_NANOX=no |
1592 | ||
10f2d63a VZ |
1593 | DEFAULT_wxUSE_THREADS=yes |
1594 | ||
1595 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1596 | DEFAULT_wxUSE_SONAME=no |
10f2d63a VZ |
1597 | DEFAULT_wxUSE_OPTIMISE=yes |
1598 | DEFAULT_wxUSE_PROFILE=no | |
1599 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
1600 | DEFAULT_wxUSE_NO_RTTI=no |
1601 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
1602 | DEFAULT_wxUSE_PERMISSIVE=no |
1603 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1604 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1605 | DEFAULT_wxUSE_DEBUG_GDB=no | |
1606 | DEFAULT_wxUSE_MEM_TRACING=no | |
1607 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1608 | DEFAULT_wxUSE_DMALLOC=no | |
a7ae7112 | 1609 | DEFAULT_wxUSE_PRECOMP=no |
10f2d63a VZ |
1610 | DEFAULT_wxUSE_APPLE_IEEE=yes |
1611 | ||
1612 | DEFAULT_wxUSE_LOG=yes | |
d73be714 VZ |
1613 | DEFAULT_wxUSE_LOGWINDOW=yes |
1614 | DEFAULT_wxUSE_LOGGUI=yes | |
69d27ff7 | 1615 | DEFAULT_wxUSE_LOGDIALOG=yes |
10f2d63a VZ |
1616 | |
1617 | DEFAULT_wxUSE_GUI=yes | |
1618 | ||
831b3152 | 1619 | DEFAULT_wxUSE_REGEX=yes |
10f2d63a VZ |
1620 | DEFAULT_wxUSE_ZLIB=yes |
1621 | DEFAULT_wxUSE_LIBPNG=yes | |
1622 | DEFAULT_wxUSE_LIBJPEG=yes | |
b47c832e | 1623 | DEFAULT_wxUSE_LIBTIFF=yes |
16b52fa1 | 1624 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 1625 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1626 | |
eb4efbdc | 1627 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes |
4f3c5f06 | 1628 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
10f2d63a | 1629 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1630 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
1631 | DEFAULT_wxUSE_DATETIME=yes | |
1632 | DEFAULT_wxUSE_TIMEDATE=no | |
1633 | DEFAULT_wxUSE_TIMER=yes | |
1634 | DEFAULT_wxUSE_STOPWATCH=yes | |
10f2d63a | 1635 | DEFAULT_wxUSE_FILE=yes |
1e6feb95 | 1636 | DEFAULT_wxUSE_FFILE=yes |
a3a584a7 | 1637 | DEFAULT_wxUSE_TEXTBUFFER=yes |
10f2d63a | 1638 | DEFAULT_wxUSE_TEXTFILE=yes |
10f2d63a VZ |
1639 | DEFAULT_wxUSE_WAVE=no |
1640 | DEFAULT_wxUSE_INTL=yes | |
1641 | DEFAULT_wxUSE_CONFIG=yes | |
1e6feb95 | 1642 | DEFAULT_wxUSE_FONTMAP=yes |
10f2d63a VZ |
1643 | DEFAULT_wxUSE_STREAMS=yes |
1644 | DEFAULT_wxUSE_SOCKETS=yes | |
1645 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
10f2d63a | 1646 | DEFAULT_wxUSE_JOYSTICK=yes |
6bff71f8 | 1647 | DEFAULT_wxUSE_DYNLIB_CLASS=yes |
9337b578 | 1648 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes |
b685cd9b | 1649 | DEFAULT_wxUSE_LONGLONG=yes |
e8f65ba6 | 1650 | DEFAULT_wxUSE_GEOMETRY=yes |
10f2d63a VZ |
1651 | |
1652 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
1653 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
1654 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
1655 | ||
1656 | DEFAULT_wxUSE_X_RESOURCES=no | |
1657 | DEFAULT_wxUSE_CLIPBOARD=yes | |
1658 | DEFAULT_wxUSE_TOOLTIPS=yes | |
1659 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
24fd6d87 | 1660 | DEFAULT_wxUSE_DRAGIMAGE=yes |
10f2d63a VZ |
1661 | DEFAULT_wxUSE_SPLINES=yes |
1662 | ||
1663 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
1664 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
1665 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
1666 | ||
1667 | DEFAULT_wxUSE_PROLOGIO=yes | |
1668 | DEFAULT_wxUSE_RESOURCES=yes | |
1669 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
1670 | DEFAULT_wxUSE_IPC=yes | |
1671 | DEFAULT_wxUSE_HELP=yes | |
29fd3c0c | 1672 | DEFAULT_wxUSE_MS_HTML_HELP=yes |
3379ed37 | 1673 | DEFAULT_wxUSE_WXHTML_HELP=yes |
24176f2c | 1674 | DEFAULT_wxUSE_TREELAYOUT=yes |
10f2d63a | 1675 | DEFAULT_wxUSE_METAFILE=yes |
1e6feb95 | 1676 | DEFAULT_wxUSE_MIMETYPE=yes |
3e44f09d | 1677 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes |
4cdb0ab0 VS |
1678 | DEFAULT_wxUSE_PROTOCOL=yes |
1679 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
1680 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
1681 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
1682 | DEFAULT_wxUSE_URL=yes | |
10f2d63a VZ |
1683 | |
1684 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1e6feb95 VZ |
1685 | DEFAULT_wxUSE_CHOICEDLG=yes |
1686 | DEFAULT_wxUSE_COLOURDLG=yes | |
10f2d63a | 1687 | DEFAULT_wxUSE_DIRDLG=yes |
1e6feb95 | 1688 | DEFAULT_wxUSE_FILEDLG=yes |
8db37e06 | 1689 | DEFAULT_wxUSE_FINDREPLDLG=yes |
1e6feb95 VZ |
1690 | DEFAULT_wxUSE_FONTDLG=yes |
1691 | DEFAULT_wxUSE_MSGDLG=yes | |
1692 | DEFAULT_wxUSE_NUMBERDLG=yes | |
10f2d63a | 1693 | DEFAULT_wxUSE_TEXTDLG=yes |
cbca9943 | 1694 | DEFAULT_wxUSE_SPLASH=yes |
10f2d63a VZ |
1695 | DEFAULT_wxUSE_STARTUP_TIPS=yes |
1696 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
f33f19dd VZ |
1697 | DEFAULT_wxUSE_WIZARDDLG=yes |
1698 | ||
1e6feb95 | 1699 | DEFAULT_wxUSE_MENUS=yes |
10f2d63a VZ |
1700 | DEFAULT_wxUSE_MINIFRAME=yes |
1701 | DEFAULT_wxUSE_HTML=yes | |
24528b0c | 1702 | DEFAULT_wxUSE_FILESYSTEM=yes |
10f2d63a VZ |
1703 | DEFAULT_wxUSE_FS_INET=yes |
1704 | DEFAULT_wxUSE_FS_ZIP=yes | |
1705 | DEFAULT_wxUSE_BUSYINFO=yes | |
1706 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
1707 | DEFAULT_wxUSE_VALIDATORS=yes | |
1708 | ||
1709 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 | 1710 | DEFAULT_wxUSE_BUTTON=yes |
10f2d63a | 1711 | DEFAULT_wxUSE_BMPBUTTON=yes |
1e6feb95 VZ |
1712 | DEFAULT_wxUSE_CALCTRL=yes |
1713 | DEFAULT_wxUSE_CARET=yes | |
10f2d63a VZ |
1714 | DEFAULT_wxUSE_CHECKBOX=yes |
1715 | DEFAULT_wxUSE_CHECKLST=yes | |
1716 | DEFAULT_wxUSE_CHOICE=yes | |
1717 | DEFAULT_wxUSE_COMBOBOX=yes | |
1718 | DEFAULT_wxUSE_GAUGE=yes | |
1719 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 1720 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
1721 | DEFAULT_wxUSE_IMAGLIST=yes |
1722 | DEFAULT_wxUSE_LISTBOX=yes | |
1723 | DEFAULT_wxUSE_LISTCTRL=yes | |
1724 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 1725 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
1726 | DEFAULT_wxUSE_RADIOBOX=yes |
1727 | DEFAULT_wxUSE_RADIOBTN=yes | |
1728 | DEFAULT_wxUSE_SASH=yes | |
1729 | DEFAULT_wxUSE_SCROLLBAR=yes | |
1730 | DEFAULT_wxUSE_SLIDER=yes | |
1731 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 1732 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
1733 | DEFAULT_wxUSE_SPLITTER=yes |
1734 | DEFAULT_wxUSE_STATBMP=yes | |
1735 | DEFAULT_wxUSE_STATBOX=yes | |
1736 | DEFAULT_wxUSE_STATLINE=yes | |
1e6feb95 | 1737 | DEFAULT_wxUSE_STATTEXT=yes |
10f2d63a VZ |
1738 | DEFAULT_wxUSE_STATUSBAR=yes |
1739 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1740 | DEFAULT_wxUSE_TEXTCTRL=yes |
1db8dc4a | 1741 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 1742 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
1743 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
1744 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a | 1745 | DEFAULT_wxUSE_TREECTRL=yes |
9f41d601 | 1746 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 1747 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
1748 | |
1749 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 1750 | DEFAULT_wxUSE_UNICODE_MSLU=yes |
10f2d63a VZ |
1751 | DEFAULT_wxUSE_WCSRTOMBS=no |
1752 | ||
edae8572 | 1753 | DEFAULT_wxUSE_PALETTE=yes |
0046ff7c | 1754 | DEFAULT_wxUSE_IMAGE=yes |
10f2d63a VZ |
1755 | DEFAULT_wxUSE_GIF=yes |
1756 | DEFAULT_wxUSE_PCX=yes | |
cc0e8480 | 1757 | DEFAULT_wxUSE_IFF=no |
10f2d63a | 1758 | DEFAULT_wxUSE_PNM=yes |
0046ff7c | 1759 | DEFAULT_wxUSE_XPM=yes |
658974ae | 1760 | DEFAULT_wxUSE_ICO_CUR=yes |
10f2d63a VZ |
1761 | fi |
1762 | ||
698dcdb6 VZ |
1763 | |
1764 | ||
10f2d63a VZ |
1765 | for toolkit in `echo $ALL_TOOLKITS`; do |
1766 | LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}` | |
1767 | if test "x$LINE" != x ; then | |
1768 | has_toolkit_in_cache=1 | |
1769 | eval "DEFAULT_$LINE" | |
1770 | eval "CACHE_$toolkit=1" | |
1771 | fi | |
1772 | done | |
1773 | ||
698dcdb6 VZ |
1774 | |
1775 | ||
1776 | echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6 | |
321d2b14 | 1777 | echo "configure:1778: checking for --enable-gui" >&5 |
10f2d63a VZ |
1778 | no_cache=0 |
1779 | # Check whether --enable-gui or --disable-gui was given. | |
1780 | if test "${enable_gui+set}" = set; then | |
1781 | enableval="$enable_gui" | |
698dcdb6 | 1782 | |
10f2d63a VZ |
1783 | if test "$enableval" = yes; then |
1784 | ac_cv_use_gui='wxUSE_GUI=yes' | |
1785 | else | |
1786 | ac_cv_use_gui='wxUSE_GUI=no' | |
1787 | fi | |
698dcdb6 | 1788 | |
10f2d63a | 1789 | else |
698dcdb6 | 1790 | |
10f2d63a VZ |
1791 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` |
1792 | if test "x$LINE" != x ; then | |
1793 | eval "DEFAULT_$LINE" | |
1794 | else | |
1795 | no_cache=1 | |
1796 | fi | |
1797 | ||
1798 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
698dcdb6 VZ |
1799 | |
1800 | fi | |
10f2d63a VZ |
1801 | |
1802 | ||
1803 | eval "$ac_cv_use_gui" | |
1804 | if test "$no_cache" != 1; then | |
1805 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
1806 | fi | |
1807 | ||
1808 | if test "$wxUSE_GUI" = yes; then | |
698dcdb6 | 1809 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 1810 | else |
698dcdb6 | 1811 | echo "$ac_t""no" 1>&6 |
10f2d63a | 1812 | fi |
698dcdb6 | 1813 | |
10f2d63a | 1814 | |
b12915c1 | 1815 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a | 1816 | |
1e6feb95 VZ |
1817 | |
1818 | echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6 | |
321d2b14 | 1819 | echo "configure:1820: checking for --enable-universal" >&5 |
1e6feb95 VZ |
1820 | no_cache=0 |
1821 | # Check whether --enable-universal or --disable-universal was given. | |
1822 | if test "${enable_universal+set}" = set; then | |
1823 | enableval="$enable_universal" | |
1824 | ||
1825 | if test "$enableval" = yes; then | |
1826 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
1827 | else | |
1828 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
1829 | fi | |
1830 | ||
1831 | else | |
1832 | ||
1833 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
1834 | if test "x$LINE" != x ; then | |
1835 | eval "DEFAULT_$LINE" | |
1836 | else | |
1837 | no_cache=1 | |
1838 | fi | |
1839 | ||
1840 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
1841 | ||
1842 | fi | |
1843 | ||
1844 | ||
1845 | eval "$ac_cv_use_universal" | |
1846 | if test "$no_cache" != 1; then | |
1847 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
1848 | fi | |
1849 | ||
1850 | if test "$wxUSE_UNIVERSAL" = yes; then | |
1851 | echo "$ac_t""yes" 1>&6 | |
1852 | else | |
1853 | echo "$ac_t""no" 1>&6 | |
1854 | fi | |
1855 | ||
10f2d63a VZ |
1856 | # Check whether --with-gtk or --without-gtk was given. |
1857 | if test "${with_gtk+set}" = set; then | |
1858 | withval="$with_gtk" | |
1859 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1860 | fi |
10f2d63a VZ |
1861 | |
1862 | # Check whether --with-motif or --without-motif was given. | |
1863 | if test "${with_motif+set}" = set; then | |
1864 | withval="$with_motif" | |
1865 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1866 | fi |
10f2d63a | 1867 | |
b4085ce6 GD |
1868 | # Check whether --with-mac or --without-mac was given. |
1869 | if test "${with_mac+set}" = set; then | |
1870 | withval="$with_mac" | |
1871 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
698dcdb6 | 1872 | fi |
b4085ce6 | 1873 | |
10f2d63a VZ |
1874 | # Check whether --with-wine or --without-wine was given. |
1875 | if test "${with_wine+set}" = set; then | |
1876 | withval="$with_wine" | |
1877 | wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1878 | fi |
10f2d63a | 1879 | |
77e13408 RL |
1880 | # Check whether --with-msw or --without-msw was given. |
1881 | if test "${with_msw+set}" = set; then | |
1882 | withval="$with_msw" | |
b4efce5e | 1883 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 |
698dcdb6 | 1884 | fi |
10f2d63a | 1885 | |
e07802fc VZ |
1886 | # Check whether --with-pm or --without-pm was given. |
1887 | if test "${with_pm+set}" = set; then | |
1888 | withval="$with_pm" | |
1889 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
698dcdb6 VZ |
1890 | fi |
1891 | ||
1e6feb95 VZ |
1892 | # Check whether --with-mgl or --without-mgl was given. |
1893 | if test "${with_mgl+set}" = set; then | |
1894 | withval="$with_mgl" | |
1895 | wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1 | |
1896 | fi | |
1897 | ||
1725144d RR |
1898 | # Check whether --with-microwin or --without-microwin was given. |
1899 | if test "${with_microwin+set}" = set; then | |
1900 | withval="$with_microwin" | |
1901 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
1902 | fi | |
1903 | ||
f79bd02d JS |
1904 | # Check whether --with-x11 or --without-x11 was given. |
1905 | if test "${with_x11+set}" = set; then | |
1906 | withval="$with_x11" | |
3c011993 | 1907 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 |
f79bd02d JS |
1908 | fi |
1909 | ||
10f2d63a | 1910 | |
ba875e66 | 1911 | echo $ac_n "checking for --enable-nanox""... $ac_c" 1>&6 |
321d2b14 | 1912 | echo "configure:1913: checking for --enable-nanox" >&5 |
d8356fa3 | 1913 | no_cache=0 |
ba875e66 VZ |
1914 | # Check whether --enable-nanox or --disable-nanox was given. |
1915 | if test "${enable_nanox+set}" = set; then | |
1916 | enableval="$enable_nanox" | |
d8356fa3 VZ |
1917 | |
1918 | if test "$enableval" = yes; then | |
ba875e66 | 1919 | ac_cv_use_nanox='wxUSE_NANOX=yes' |
d8356fa3 | 1920 | else |
ba875e66 | 1921 | ac_cv_use_nanox='wxUSE_NANOX=no' |
d8356fa3 VZ |
1922 | fi |
1923 | ||
1924 | else | |
1925 | ||
1926 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` | |
1927 | if test "x$LINE" != x ; then | |
1928 | eval "DEFAULT_$LINE" | |
1929 | else | |
1930 | no_cache=1 | |
1931 | fi | |
1932 | ||
ba875e66 | 1933 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX |
d8356fa3 VZ |
1934 | |
1935 | fi | |
1936 | ||
1937 | ||
ba875e66 | 1938 | eval "$ac_cv_use_nanox" |
d8356fa3 | 1939 | if test "$no_cache" != 1; then |
ba875e66 | 1940 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp |
d8356fa3 VZ |
1941 | fi |
1942 | ||
1943 | if test "$wxUSE_NANOX" = yes; then | |
1944 | echo "$ac_t""yes" 1>&6 | |
1945 | else | |
1946 | echo "$ac_t""no" 1>&6 | |
1947 | fi | |
1948 | ||
1949 | ||
8168de4c VZ |
1950 | # Check whether --enable-gtk2 or --disable-gtk2 was given. |
1951 | if test "${enable_gtk2+set}" = set; then | |
1952 | enableval="$enable_gtk2" | |
9e691f46 | 1953 | wxUSE_GTK2="yes" |
10f2d63a | 1954 | else |
9e691f46 | 1955 | wxUSE_GTK2="no" |
698dcdb6 VZ |
1956 | fi |
1957 | ||
703e0a69 | 1958 | |
1e487827 | 1959 | |
698dcdb6 | 1960 | echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6 |
321d2b14 | 1961 | echo "configure:1962: checking for --with-libpng" >&5 |
698dcdb6 VZ |
1962 | no_cache=0 |
1963 | # Check whether --with-libpng or --without-libpng was given. | |
b12915c1 VZ |
1964 | if test "${with_libpng+set}" = set; then |
1965 | withval="$with_libpng" | |
698dcdb6 | 1966 | |
10f2d63a | 1967 | if test "$withval" = yes; then |
b12915c1 | 1968 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
422107f9 | 1969 | elif test "$withval" = no; then |
b12915c1 | 1970 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
422107f9 VZ |
1971 | elif test "$withval" = sys; then |
1972 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
4f14bcd8 GD |
1973 | elif test "$withval" = builtin; then |
1974 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
422107f9 | 1975 | else |
4f14bcd8 | 1976 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 1977 | fi |
698dcdb6 | 1978 | |
10f2d63a | 1979 | else |
698dcdb6 | 1980 | |
b12915c1 | 1981 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
1982 | if test "x$LINE" != x ; then |
1983 | eval "DEFAULT_$LINE" | |
1984 | else | |
1985 | no_cache=1 | |
1986 | fi | |
1987 | ||
b12915c1 | 1988 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
698dcdb6 VZ |
1989 | |
1990 | fi | |
10f2d63a VZ |
1991 | |
1992 | ||
b12915c1 | 1993 | eval "$ac_cv_use_libpng" |
10f2d63a | 1994 | if test "$no_cache" != 1; then |
b12915c1 | 1995 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1996 | fi |
1997 | ||
b12915c1 | 1998 | if test "$wxUSE_LIBPNG" = yes; then |
698dcdb6 | 1999 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2000 | elif test "$wxUSE_LIBPNG" = no; then |
698dcdb6 | 2001 | echo "$ac_t""no" 1>&6 |
422107f9 | 2002 | elif test "$wxUSE_LIBPNG" = sys; then |
698dcdb6 | 2003 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
2004 | elif test "$wxUSE_LIBPNG" = builtin; then |
2005 | echo "$ac_t""builtin version" 1>&6 | |
422107f9 | 2006 | else |
4f14bcd8 | 2007 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2008 | fi |
698dcdb6 | 2009 | |
10f2d63a | 2010 | |
698dcdb6 | 2011 | echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6 |
321d2b14 | 2012 | echo "configure:2013: checking for --with-libjpeg" >&5 |
10f2d63a | 2013 | no_cache=0 |
698dcdb6 | 2014 | # Check whether --with-libjpeg or --without-libjpeg was given. |
b12915c1 VZ |
2015 | if test "${with_libjpeg+set}" = set; then |
2016 | withval="$with_libjpeg" | |
698dcdb6 | 2017 | |
10f2d63a | 2018 | if test "$withval" = yes; then |
b12915c1 | 2019 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
422107f9 | 2020 | elif test "$withval" = no; then |
b12915c1 | 2021 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
422107f9 VZ |
2022 | elif test "$withval" = sys; then |
2023 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
4f14bcd8 GD |
2024 | elif test "$withval" = builtin; then |
2025 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
422107f9 | 2026 | else |
4f14bcd8 | 2027 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2028 | fi |
698dcdb6 | 2029 | |
10f2d63a | 2030 | else |
698dcdb6 | 2031 | |
b12915c1 | 2032 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2033 | if test "x$LINE" != x ; then |
2034 | eval "DEFAULT_$LINE" | |
2035 | else | |
2036 | no_cache=1 | |
2037 | fi | |
2038 | ||
b12915c1 | 2039 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
698dcdb6 VZ |
2040 | |
2041 | fi | |
10f2d63a VZ |
2042 | |
2043 | ||
b12915c1 | 2044 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 2045 | if test "$no_cache" != 1; then |
b12915c1 | 2046 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2047 | fi |
2048 | ||
b12915c1 | 2049 | if test "$wxUSE_LIBJPEG" = yes; then |
698dcdb6 | 2050 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2051 | elif test "$wxUSE_LIBJPEG" = no; then |
698dcdb6 | 2052 | echo "$ac_t""no" 1>&6 |
422107f9 | 2053 | elif test "$wxUSE_LIBJPEG" = sys; then |
698dcdb6 | 2054 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
2055 | elif test "$wxUSE_LIBJPEG" = builtin; then |
2056 | echo "$ac_t""builtin version" 1>&6 | |
422107f9 | 2057 | else |
4f14bcd8 | 2058 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2059 | fi |
698dcdb6 | 2060 | |
10f2d63a | 2061 | |
698dcdb6 | 2062 | echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6 |
321d2b14 | 2063 | echo "configure:2064: checking for --with-libtiff" >&5 |
10f2d63a | 2064 | no_cache=0 |
698dcdb6 | 2065 | # Check whether --with-libtiff or --without-libtiff was given. |
b12915c1 VZ |
2066 | if test "${with_libtiff+set}" = set; then |
2067 | withval="$with_libtiff" | |
698dcdb6 | 2068 | |
10f2d63a | 2069 | if test "$withval" = yes; then |
b12915c1 | 2070 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
0dcf9893 | 2071 | elif test "$withval" = no; then |
b12915c1 | 2072 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
0dcf9893 VZ |
2073 | elif test "$withval" = sys; then |
2074 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
4f14bcd8 GD |
2075 | elif test "$withval" = builtin; then |
2076 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
0dcf9893 | 2077 | else |
4f14bcd8 | 2078 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2079 | fi |
698dcdb6 | 2080 | |
10f2d63a | 2081 | else |
698dcdb6 | 2082 | |
b12915c1 | 2083 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
2084 | if test "x$LINE" != x ; then |
2085 | eval "DEFAULT_$LINE" | |
2086 | else | |
2087 | no_cache=1 | |
2088 | fi | |
2089 | ||
b12915c1 | 2090 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
698dcdb6 VZ |
2091 | |
2092 | fi | |
10f2d63a VZ |
2093 | |
2094 | ||
b12915c1 | 2095 | eval "$ac_cv_use_libtiff" |
10f2d63a | 2096 | if test "$no_cache" != 1; then |
b12915c1 | 2097 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2098 | fi |
2099 | ||
b12915c1 | 2100 | if test "$wxUSE_LIBTIFF" = yes; then |
698dcdb6 | 2101 | echo "$ac_t""yes" 1>&6 |
0dcf9893 | 2102 | elif test "$wxUSE_LIBTIFF" = no; then |
698dcdb6 | 2103 | echo "$ac_t""no" 1>&6 |
0dcf9893 | 2104 | elif test "$wxUSE_LIBTIFF" = sys; then |
698dcdb6 | 2105 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
2106 | elif test "$wxUSE_LIBTIFF" = builtin; then |
2107 | echo "$ac_t""builtin version" 1>&6 | |
0dcf9893 | 2108 | else |
4f14bcd8 | 2109 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2110 | fi |
698dcdb6 | 2111 | |
10f2d63a | 2112 | |
698dcdb6 | 2113 | echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6 |
321d2b14 | 2114 | echo "configure:2115: checking for --with-opengl" >&5 |
10f2d63a | 2115 | no_cache=0 |
698dcdb6 | 2116 | # Check whether --with-opengl or --without-opengl was given. |
b12915c1 VZ |
2117 | if test "${with_opengl+set}" = set; then |
2118 | withval="$with_opengl" | |
698dcdb6 | 2119 | |
10f2d63a | 2120 | if test "$withval" = yes; then |
b12915c1 | 2121 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 2122 | else |
b12915c1 | 2123 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a | 2124 | fi |
698dcdb6 | 2125 | |
10f2d63a | 2126 | else |
698dcdb6 | 2127 | |
b12915c1 | 2128 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` |
10f2d63a VZ |
2129 | if test "x$LINE" != x ; then |
2130 | eval "DEFAULT_$LINE" | |
2131 | else | |
2132 | no_cache=1 | |
2133 | fi | |
2134 | ||
b12915c1 | 2135 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
698dcdb6 VZ |
2136 | |
2137 | fi | |
10f2d63a VZ |
2138 | |
2139 | ||
b12915c1 | 2140 | eval "$ac_cv_use_opengl" |
10f2d63a | 2141 | if test "$no_cache" != 1; then |
b12915c1 | 2142 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2143 | fi |
2144 | ||
b12915c1 | 2145 | if test "$wxUSE_OPENGL" = 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 | |
b12915c1 VZ |
2152 | fi |
2153 | ||
1e487827 | 2154 | |
698dcdb6 | 2155 | echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6 |
321d2b14 | 2156 | echo "configure:2157: checking for --with-dmalloc" >&5 |
698dcdb6 VZ |
2157 | no_cache=0 |
2158 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
b12915c1 VZ |
2159 | if test "${with_dmalloc+set}" = set; then |
2160 | withval="$with_dmalloc" | |
698dcdb6 | 2161 | |
c7a2bf27 | 2162 | if test "$withval" = yes; then |
b12915c1 | 2163 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 2164 | else |
b12915c1 | 2165 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 | 2166 | fi |
698dcdb6 | 2167 | |
c7a2bf27 | 2168 | else |
698dcdb6 | 2169 | |
b12915c1 | 2170 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
2171 | if test "x$LINE" != x ; then |
2172 | eval "DEFAULT_$LINE" | |
2173 | else | |
2174 | no_cache=1 | |
2175 | fi | |
2176 | ||
b12915c1 | 2177 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
698dcdb6 VZ |
2178 | |
2179 | fi | |
c7a2bf27 RR |
2180 | |
2181 | ||
b12915c1 | 2182 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 2183 | if test "$no_cache" != 1; then |
b12915c1 | 2184 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
2185 | fi |
2186 | ||
b12915c1 | 2187 | if test "$wxUSE_DMALLOC" = yes; then |
698dcdb6 | 2188 | echo "$ac_t""yes" 1>&6 |
c7a2bf27 | 2189 | else |
698dcdb6 | 2190 | echo "$ac_t""no" 1>&6 |
c7a2bf27 | 2191 | fi |
698dcdb6 | 2192 | |
c7a2bf27 | 2193 | |
3e44f09d | 2194 | echo $ac_n "checking for --with-regex""... $ac_c" 1>&6 |
321d2b14 | 2195 | echo "configure:2196: checking for --with-regex" >&5 |
3e44f09d VZ |
2196 | no_cache=0 |
2197 | # Check whether --with-regex or --without-regex was given. | |
2198 | if test "${with_regex+set}" = set; then | |
2199 | withval="$with_regex" | |
2200 | ||
2201 | if test "$withval" = yes; then | |
2202 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
2203 | elif test "$withval" = no; then | |
2204 | ac_cv_use_regex='wxUSE_REGEX=no' | |
2205 | elif test "$withval" = sys; then | |
2206 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
4f14bcd8 GD |
2207 | elif test "$withval" = builtin; then |
2208 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3e44f09d | 2209 | else |
4f14bcd8 | 2210 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3e44f09d VZ |
2211 | fi |
2212 | ||
2213 | else | |
2214 | ||
2215 | LINE=`grep "wxUSE_REGEX" ${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_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
2223 | ||
2224 | fi | |
2225 | ||
2226 | ||
2227 | eval "$ac_cv_use_regex" | |
2228 | if test "$no_cache" != 1; then | |
2229 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
2230 | fi | |
2231 | ||
2232 | if test "$wxUSE_REGEX" = yes; then | |
2233 | echo "$ac_t""yes" 1>&6 | |
2234 | elif test "$wxUSE_REGEX" = no; then | |
2235 | echo "$ac_t""no" 1>&6 | |
2236 | elif test "$wxUSE_REGEX" = sys; then | |
2237 | echo "$ac_t""system version" 1>&6 | |
4f14bcd8 GD |
2238 | elif test "$wxUSE_REGEX" = builtin; then |
2239 | echo "$ac_t""builtin version" 1>&6 | |
3e44f09d | 2240 | else |
4f14bcd8 | 2241 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3e44f09d VZ |
2242 | fi |
2243 | ||
2244 | ||
698dcdb6 | 2245 | echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6 |
321d2b14 | 2246 | echo "configure:2247: checking for --with-zlib" >&5 |
10f2d63a | 2247 | no_cache=0 |
698dcdb6 | 2248 | # Check whether --with-zlib or --without-zlib was given. |
b12915c1 VZ |
2249 | if test "${with_zlib+set}" = set; then |
2250 | withval="$with_zlib" | |
698dcdb6 | 2251 | |
10f2d63a | 2252 | if test "$withval" = yes; then |
b12915c1 | 2253 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
422107f9 | 2254 | elif test "$withval" = no; then |
b12915c1 | 2255 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
422107f9 VZ |
2256 | elif test "$withval" = sys; then |
2257 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
4f14bcd8 GD |
2258 | elif test "$withval" = builtin; then |
2259 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
422107f9 | 2260 | else |
4f14bcd8 | 2261 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2262 | fi |
698dcdb6 | 2263 | |
10f2d63a | 2264 | else |
698dcdb6 | 2265 | |
b12915c1 | 2266 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
2267 | if test "x$LINE" != x ; then |
2268 | eval "DEFAULT_$LINE" | |
2269 | else | |
2270 | no_cache=1 | |
2271 | fi | |
2272 | ||
b12915c1 | 2273 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
698dcdb6 VZ |
2274 | |
2275 | fi | |
10f2d63a VZ |
2276 | |
2277 | ||
b12915c1 | 2278 | eval "$ac_cv_use_zlib" |
10f2d63a | 2279 | if test "$no_cache" != 1; then |
b12915c1 | 2280 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2281 | fi |
2282 | ||
b12915c1 | 2283 | if test "$wxUSE_ZLIB" = yes; then |
698dcdb6 | 2284 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2285 | elif test "$wxUSE_ZLIB" = no; then |
698dcdb6 | 2286 | echo "$ac_t""no" 1>&6 |
422107f9 | 2287 | elif test "$wxUSE_ZLIB" = sys; then |
698dcdb6 | 2288 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
2289 | elif test "$wxUSE_ZLIB" = builtin; then |
2290 | echo "$ac_t""builtin version" 1>&6 | |
422107f9 | 2291 | else |
4f14bcd8 | 2292 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2293 | fi |
698dcdb6 | 2294 | |
10f2d63a | 2295 | |
698dcdb6 | 2296 | echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6 |
321d2b14 | 2297 | echo "configure:2298: checking for --with-odbc" >&5 |
10f2d63a | 2298 | no_cache=0 |
698dcdb6 | 2299 | # Check whether --with-odbc or --without-odbc was given. |
10f2d63a VZ |
2300 | if test "${with_odbc+set}" = set; then |
2301 | withval="$with_odbc" | |
698dcdb6 | 2302 | |
10f2d63a VZ |
2303 | if test "$withval" = yes; then |
2304 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
2305 | else | |
2306 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
2307 | fi | |
698dcdb6 | 2308 | |
10f2d63a | 2309 | else |
698dcdb6 | 2310 | |
10f2d63a VZ |
2311 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` |
2312 | if test "x$LINE" != x ; then | |
2313 | eval "DEFAULT_$LINE" | |
2314 | else | |
2315 | no_cache=1 | |
2316 | fi | |
2317 | ||
2318 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
698dcdb6 VZ |
2319 | |
2320 | fi | |
10f2d63a VZ |
2321 | |
2322 | ||
2323 | eval "$ac_cv_use_odbc" | |
2324 | if test "$no_cache" != 1; then | |
2325 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
2326 | fi | |
2327 | ||
2328 | if test "$wxUSE_ODBC" = yes; then | |
698dcdb6 | 2329 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2330 | else |
698dcdb6 | 2331 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2332 | fi |
698dcdb6 VZ |
2333 | |
2334 | ||
10f2d63a | 2335 | |
698dcdb6 | 2336 | |
698dcdb6 | 2337 | echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6 |
321d2b14 | 2338 | echo "configure:2339: checking for --enable-shared" >&5 |
10f2d63a VZ |
2339 | no_cache=0 |
2340 | # Check whether --enable-shared or --disable-shared was given. | |
2341 | if test "${enable_shared+set}" = set; then | |
2342 | enableval="$enable_shared" | |
698dcdb6 | 2343 | |
10f2d63a VZ |
2344 | if test "$enableval" = yes; then |
2345 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
2346 | else | |
2347 | ac_cv_use_shared='wxUSE_SHARED=no' | |
2348 | fi | |
698dcdb6 | 2349 | |
10f2d63a | 2350 | else |
698dcdb6 | 2351 | |
10f2d63a VZ |
2352 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` |
2353 | if test "x$LINE" != x ; then | |
2354 | eval "DEFAULT_$LINE" | |
2355 | else | |
2356 | no_cache=1 | |
2357 | fi | |
2358 | ||
2359 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
698dcdb6 VZ |
2360 | |
2361 | fi | |
10f2d63a VZ |
2362 | |
2363 | ||
2364 | eval "$ac_cv_use_shared" | |
2365 | if test "$no_cache" != 1; then | |
2366 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
2367 | fi | |
2368 | ||
2369 | if test "$wxUSE_SHARED" = yes; then | |
698dcdb6 | 2370 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2371 | else |
698dcdb6 | 2372 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2373 | fi |
698dcdb6 | 2374 | |
10f2d63a | 2375 | |
3a922bb4 | 2376 | echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6 |
321d2b14 | 2377 | echo "configure:2378: checking for --enable-soname" >&5 |
00cf1208 | 2378 | no_cache=0 |
3a922bb4 RL |
2379 | # Check whether --enable-soname or --disable-soname was given. |
2380 | if test "${enable_soname+set}" = set; then | |
2381 | enableval="$enable_soname" | |
698dcdb6 | 2382 | |
00cf1208 | 2383 | if test "$enableval" = yes; then |
3a922bb4 | 2384 | ac_cv_use_soname='wxUSE_SONAME=yes' |
00cf1208 | 2385 | else |
3a922bb4 | 2386 | ac_cv_use_soname='wxUSE_SONAME=no' |
00cf1208 | 2387 | fi |
698dcdb6 | 2388 | |
00cf1208 | 2389 | else |
698dcdb6 | 2390 | |
3a922bb4 | 2391 | LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}` |
00cf1208 RR |
2392 | if test "x$LINE" != x ; then |
2393 | eval "DEFAULT_$LINE" | |
2394 | else | |
2395 | no_cache=1 | |
2396 | fi | |
2397 | ||
3a922bb4 | 2398 | ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME |
698dcdb6 VZ |
2399 | |
2400 | fi | |
00cf1208 RR |
2401 | |
2402 | ||
3a922bb4 | 2403 | eval "$ac_cv_use_soname" |
00cf1208 | 2404 | if test "$no_cache" != 1; then |
3a922bb4 | 2405 | echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp |
00cf1208 RR |
2406 | fi |
2407 | ||
3a922bb4 | 2408 | if test "$wxUSE_SONAME" = yes; then |
698dcdb6 | 2409 | echo "$ac_t""yes" 1>&6 |
00cf1208 | 2410 | else |
698dcdb6 | 2411 | echo "$ac_t""no" 1>&6 |
00cf1208 | 2412 | fi |
698dcdb6 | 2413 | |
00cf1208 | 2414 | |
698dcdb6 | 2415 | echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6 |
321d2b14 | 2416 | echo "configure:2417: checking for --enable-optimise" >&5 |
10f2d63a VZ |
2417 | no_cache=0 |
2418 | # Check whether --enable-optimise or --disable-optimise was given. | |
2419 | if test "${enable_optimise+set}" = set; then | |
2420 | enableval="$enable_optimise" | |
698dcdb6 | 2421 | |
10f2d63a VZ |
2422 | if test "$enableval" = yes; then |
2423 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
2424 | else | |
2425 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
2426 | fi | |
698dcdb6 | 2427 | |
10f2d63a | 2428 | else |
698dcdb6 | 2429 | |
10f2d63a VZ |
2430 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` |
2431 | if test "x$LINE" != x ; then | |
2432 | eval "DEFAULT_$LINE" | |
2433 | else | |
2434 | no_cache=1 | |
2435 | fi | |
2436 | ||
2437 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
698dcdb6 VZ |
2438 | |
2439 | fi | |
10f2d63a VZ |
2440 | |
2441 | ||
2442 | eval "$ac_cv_use_optimise" | |
2443 | if test "$no_cache" != 1; then | |
2444 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
2445 | fi | |
2446 | ||
2447 | if test "$wxUSE_OPTIMISE" = yes; then | |
698dcdb6 | 2448 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2449 | else |
698dcdb6 | 2450 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2451 | fi |
698dcdb6 | 2452 | |
10f2d63a | 2453 | |
698dcdb6 | 2454 | echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6 |
321d2b14 | 2455 | echo "configure:2456: checking for --enable-debug" >&5 |
10f2d63a VZ |
2456 | no_cache=0 |
2457 | # Check whether --enable-debug or --disable-debug was given. | |
2458 | if test "${enable_debug+set}" = set; then | |
2459 | enableval="$enable_debug" | |
698dcdb6 | 2460 | |
10f2d63a VZ |
2461 | if test "$enableval" = yes; then |
2462 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
2463 | else | |
2464 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
2465 | fi | |
698dcdb6 | 2466 | |
10f2d63a | 2467 | else |
698dcdb6 | 2468 | |
10f2d63a VZ |
2469 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` |
2470 | if test "x$LINE" != x ; then | |
2471 | eval "DEFAULT_$LINE" | |
2472 | else | |
2473 | no_cache=1 | |
2474 | fi | |
2475 | ||
2476 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
698dcdb6 VZ |
2477 | |
2478 | fi | |
10f2d63a VZ |
2479 | |
2480 | ||
2481 | eval "$ac_cv_use_debug" | |
2482 | if test "$no_cache" != 1; then | |
2483 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
2484 | fi | |
2485 | ||
2486 | if test "$wxUSE_DEBUG" = yes; then | |
698dcdb6 | 2487 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2488 | else |
698dcdb6 | 2489 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2490 | fi |
698dcdb6 | 2491 | |
10f2d63a | 2492 | |
683dccda GD |
2493 | |
2494 | echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6 | |
321d2b14 | 2495 | echo "configure:2496: checking for --enable-precomp" >&5 |
683dccda GD |
2496 | no_cache=0 |
2497 | # Check whether --enable-precomp or --disable-precomp was given. | |
2498 | if test "${enable_precomp+set}" = set; then | |
2499 | enableval="$enable_precomp" | |
2500 | ||
2501 | if test "$enableval" = yes; then | |
2502 | ac_cv_use_precomp='wxUSE_PRECOMP=yes' | |
2503 | else | |
2504 | ac_cv_use_precomp='wxUSE_PRECOMP=no' | |
2505 | fi | |
2506 | ||
2507 | else | |
2508 | ||
2509 | LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}` | |
2510 | if test "x$LINE" != x ; then | |
2511 | eval "DEFAULT_$LINE" | |
2512 | else | |
2513 | no_cache=1 | |
2514 | fi | |
2515 | ||
2516 | ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP | |
2517 | ||
2518 | fi | |
2519 | ||
2520 | ||
2521 | eval "$ac_cv_use_precomp" | |
2522 | if test "$no_cache" != 1; then | |
2523 | echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp | |
2524 | fi | |
2525 | ||
2526 | if test "$wxUSE_PRECOMP" = yes; then | |
2527 | echo "$ac_t""yes" 1>&6 | |
2528 | else | |
2529 | echo "$ac_t""no" 1>&6 | |
2530 | fi | |
2531 | ||
2532 | ||
10f2d63a VZ |
2533 | if test "$wxUSE_DEBUG" = "yes"; then |
2534 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2535 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2536 | elif test "$wxUSE_DEBUG" = "no"; then | |
2537 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2538 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2539 | fi | |
2540 | ||
698dcdb6 VZ |
2541 | |
2542 | echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6 | |
321d2b14 | 2543 | echo "configure:2544: checking for --enable-debug_flag" >&5 |
10f2d63a VZ |
2544 | no_cache=0 |
2545 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
2546 | if test "${enable_debug_flag+set}" = set; then | |
2547 | enableval="$enable_debug_flag" | |
698dcdb6 | 2548 | |
10f2d63a VZ |
2549 | if test "$enableval" = yes; then |
2550 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
2551 | else | |
2552 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
2553 | fi | |
698dcdb6 | 2554 | |
10f2d63a | 2555 | else |
698dcdb6 | 2556 | |
10f2d63a VZ |
2557 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` |
2558 | if test "x$LINE" != x ; then | |
2559 | eval "DEFAULT_$LINE" | |
2560 | else | |
2561 | no_cache=1 | |
2562 | fi | |
2563 | ||
2564 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
698dcdb6 VZ |
2565 | |
2566 | fi | |
10f2d63a VZ |
2567 | |
2568 | ||
2569 | eval "$ac_cv_use_debug_flag" | |
2570 | if test "$no_cache" != 1; then | |
2571 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
2572 | fi | |
2573 | ||
2574 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
698dcdb6 | 2575 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2576 | else |
698dcdb6 | 2577 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2578 | fi |
698dcdb6 | 2579 | |
10f2d63a | 2580 | |
698dcdb6 | 2581 | echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6 |
321d2b14 | 2582 | echo "configure:2583: checking for --enable-debug_info" >&5 |
10f2d63a VZ |
2583 | no_cache=0 |
2584 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
2585 | if test "${enable_debug_info+set}" = set; then | |
2586 | enableval="$enable_debug_info" | |
698dcdb6 | 2587 | |
10f2d63a VZ |
2588 | if test "$enableval" = yes; then |
2589 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
2590 | else | |
2591 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
2592 | fi | |
698dcdb6 | 2593 | |
10f2d63a | 2594 | else |
698dcdb6 | 2595 | |
10f2d63a VZ |
2596 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` |
2597 | if test "x$LINE" != x ; then | |
2598 | eval "DEFAULT_$LINE" | |
2599 | else | |
2600 | no_cache=1 | |
2601 | fi | |
2602 | ||
2603 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
698dcdb6 VZ |
2604 | |
2605 | fi | |
10f2d63a VZ |
2606 | |
2607 | ||
2608 | eval "$ac_cv_use_debug_info" | |
2609 | if test "$no_cache" != 1; then | |
2610 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
2611 | fi | |
2612 | ||
2613 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
698dcdb6 | 2614 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2615 | else |
698dcdb6 | 2616 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2617 | fi |
698dcdb6 | 2618 | |
10f2d63a | 2619 | |
698dcdb6 | 2620 | echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6 |
321d2b14 | 2621 | echo "configure:2622: checking for --enable-debug_gdb" >&5 |
10f2d63a VZ |
2622 | no_cache=0 |
2623 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
2624 | if test "${enable_debug_gdb+set}" = set; then | |
2625 | enableval="$enable_debug_gdb" | |
698dcdb6 | 2626 | |
10f2d63a VZ |
2627 | if test "$enableval" = yes; then |
2628 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
2629 | else | |
2630 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
2631 | fi | |
698dcdb6 | 2632 | |
10f2d63a | 2633 | else |
698dcdb6 | 2634 | |
10f2d63a VZ |
2635 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` |
2636 | if test "x$LINE" != x ; then | |
2637 | eval "DEFAULT_$LINE" | |
2638 | else | |
2639 | no_cache=1 | |
2640 | fi | |
2641 | ||
2642 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
698dcdb6 VZ |
2643 | |
2644 | fi | |
10f2d63a VZ |
2645 | |
2646 | ||
2647 | eval "$ac_cv_use_debug_gdb" | |
2648 | if test "$no_cache" != 1; then | |
2649 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
2650 | fi | |
2651 | ||
2652 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
698dcdb6 | 2653 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2654 | else |
698dcdb6 | 2655 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2656 | fi |
698dcdb6 | 2657 | |
10f2d63a | 2658 | |
698dcdb6 | 2659 | echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6 |
321d2b14 | 2660 | echo "configure:2661: checking for --enable-debug_cntxt" >&5 |
10f2d63a VZ |
2661 | no_cache=0 |
2662 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
2663 | if test "${enable_debug_cntxt+set}" = set; then | |
2664 | enableval="$enable_debug_cntxt" | |
698dcdb6 | 2665 | |
10f2d63a VZ |
2666 | if test "$enableval" = yes; then |
2667 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
2668 | else | |
2669 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
2670 | fi | |
698dcdb6 | 2671 | |
10f2d63a | 2672 | else |
698dcdb6 | 2673 | |
10f2d63a VZ |
2674 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` |
2675 | if test "x$LINE" != x ; then | |
2676 | eval "DEFAULT_$LINE" | |
2677 | else | |
2678 | no_cache=1 | |
2679 | fi | |
2680 | ||
2681 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
698dcdb6 VZ |
2682 | |
2683 | fi | |
10f2d63a VZ |
2684 | |
2685 | ||
2686 | eval "$ac_cv_use_debug_cntxt" | |
2687 | if test "$no_cache" != 1; then | |
2688 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
2689 | fi | |
2690 | ||
2691 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
698dcdb6 | 2692 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2693 | else |
698dcdb6 | 2694 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2695 | fi |
698dcdb6 | 2696 | |
10f2d63a | 2697 | |
698dcdb6 | 2698 | echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6 |
321d2b14 | 2699 | echo "configure:2700: checking for --enable-mem_tracing" >&5 |
10f2d63a VZ |
2700 | no_cache=0 |
2701 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
2702 | if test "${enable_mem_tracing+set}" = set; then | |
2703 | enableval="$enable_mem_tracing" | |
698dcdb6 | 2704 | |
10f2d63a VZ |
2705 | if test "$enableval" = yes; then |
2706 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
2707 | else | |
2708 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
2709 | fi | |
698dcdb6 | 2710 | |
10f2d63a | 2711 | else |
698dcdb6 | 2712 | |
10f2d63a VZ |
2713 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` |
2714 | if test "x$LINE" != x ; then | |
2715 | eval "DEFAULT_$LINE" | |
2716 | else | |
2717 | no_cache=1 | |
2718 | fi | |
2719 | ||
2720 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
698dcdb6 VZ |
2721 | |
2722 | fi | |
10f2d63a VZ |
2723 | |
2724 | ||
2725 | eval "$ac_cv_use_mem_tracing" | |
2726 | if test "$no_cache" != 1; then | |
2727 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
2728 | fi | |
2729 | ||
2730 | if test "$wxUSE_MEM_TRACING" = yes; then | |
698dcdb6 | 2731 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2732 | else |
698dcdb6 | 2733 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2734 | fi |
698dcdb6 | 2735 | |
10f2d63a | 2736 | |
698dcdb6 | 2737 | echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6 |
321d2b14 | 2738 | echo "configure:2739: checking for --enable-profile" >&5 |
10f2d63a VZ |
2739 | no_cache=0 |
2740 | # Check whether --enable-profile or --disable-profile was given. | |
2741 | if test "${enable_profile+set}" = set; then | |
2742 | enableval="$enable_profile" | |
698dcdb6 | 2743 | |
10f2d63a VZ |
2744 | if test "$enableval" = yes; then |
2745 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
2746 | else | |
2747 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
2748 | fi | |
698dcdb6 | 2749 | |
10f2d63a | 2750 | else |
698dcdb6 | 2751 | |
10f2d63a VZ |
2752 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` |
2753 | if test "x$LINE" != x ; then | |
2754 | eval "DEFAULT_$LINE" | |
2755 | else | |
2756 | no_cache=1 | |
2757 | fi | |
2758 | ||
2759 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
698dcdb6 VZ |
2760 | |
2761 | fi | |
10f2d63a VZ |
2762 | |
2763 | ||
2764 | eval "$ac_cv_use_profile" | |
2765 | if test "$no_cache" != 1; then | |
2766 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
2767 | fi | |
2768 | ||
2769 | if test "$wxUSE_PROFILE" = yes; then | |
698dcdb6 | 2770 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2771 | else |
698dcdb6 | 2772 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2773 | fi |
698dcdb6 | 2774 | |
10f2d63a | 2775 | |
698dcdb6 | 2776 | echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6 |
321d2b14 | 2777 | echo "configure:2778: checking for --enable-no_rtti" >&5 |
10f2d63a VZ |
2778 | no_cache=0 |
2779 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
2780 | if test "${enable_no_rtti+set}" = set; then | |
2781 | enableval="$enable_no_rtti" | |
698dcdb6 | 2782 | |
10f2d63a VZ |
2783 | if test "$enableval" = yes; then |
2784 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
2785 | else | |
2786 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
2787 | fi | |
698dcdb6 | 2788 | |
10f2d63a | 2789 | else |
698dcdb6 | 2790 | |
10f2d63a VZ |
2791 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` |
2792 | if test "x$LINE" != x ; then | |
2793 | eval "DEFAULT_$LINE" | |
2794 | else | |
2795 | no_cache=1 | |
2796 | fi | |
2797 | ||
2798 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
698dcdb6 VZ |
2799 | |
2800 | fi | |
10f2d63a VZ |
2801 | |
2802 | ||
2803 | eval "$ac_cv_use_no_rtti" | |
2804 | if test "$no_cache" != 1; then | |
2805 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
2806 | fi | |
2807 | ||
2808 | if test "$wxUSE_NO_RTTI" = yes; then | |
698dcdb6 | 2809 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2810 | else |
698dcdb6 | 2811 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2812 | fi |
698dcdb6 | 2813 | |
10f2d63a | 2814 | |
698dcdb6 | 2815 | echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6 |
321d2b14 | 2816 | echo "configure:2817: checking for --enable-no_exceptions" >&5 |
10f2d63a VZ |
2817 | no_cache=0 |
2818 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
2819 | if test "${enable_no_exceptions+set}" = set; then | |
2820 | enableval="$enable_no_exceptions" | |
698dcdb6 | 2821 | |
10f2d63a VZ |
2822 | if test "$enableval" = yes; then |
2823 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
2824 | else | |
2825 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
2826 | fi | |
698dcdb6 | 2827 | |
10f2d63a | 2828 | else |
698dcdb6 | 2829 | |
10f2d63a VZ |
2830 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` |
2831 | if test "x$LINE" != x ; then | |
2832 | eval "DEFAULT_$LINE" | |
2833 | else | |
2834 | no_cache=1 | |
2835 | fi | |
2836 | ||
2837 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
698dcdb6 VZ |
2838 | |
2839 | fi | |
10f2d63a VZ |
2840 | |
2841 | ||
2842 | eval "$ac_cv_use_no_exceptions" | |
2843 | if test "$no_cache" != 1; then | |
2844 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
2845 | fi | |
2846 | ||
2847 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
698dcdb6 | 2848 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2849 | else |
698dcdb6 | 2850 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2851 | fi |
698dcdb6 | 2852 | |
10f2d63a | 2853 | |
698dcdb6 | 2854 | echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6 |
321d2b14 | 2855 | echo "configure:2856: checking for --enable-permissive" >&5 |
10f2d63a VZ |
2856 | no_cache=0 |
2857 | # Check whether --enable-permissive or --disable-permissive was given. | |
2858 | if test "${enable_permissive+set}" = set; then | |
2859 | enableval="$enable_permissive" | |
698dcdb6 | 2860 | |
10f2d63a VZ |
2861 | if test "$enableval" = yes; then |
2862 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
2863 | else | |
2864 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
2865 | fi | |
698dcdb6 | 2866 | |
10f2d63a | 2867 | else |
698dcdb6 | 2868 | |
10f2d63a VZ |
2869 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` |
2870 | if test "x$LINE" != x ; then | |
2871 | eval "DEFAULT_$LINE" | |
2872 | else | |
2873 | no_cache=1 | |
2874 | fi | |
2875 | ||
2876 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
698dcdb6 VZ |
2877 | |
2878 | fi | |
10f2d63a VZ |
2879 | |
2880 | ||
2881 | eval "$ac_cv_use_permissive" | |
2882 | if test "$no_cache" != 1; then | |
2883 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
2884 | fi | |
2885 | ||
2886 | if test "$wxUSE_PERMISSIVE" = yes; then | |
698dcdb6 | 2887 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2888 | else |
698dcdb6 | 2889 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2890 | fi |
698dcdb6 | 2891 | |
10f2d63a | 2892 | |
698dcdb6 | 2893 | echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6 |
321d2b14 | 2894 | echo "configure:2895: checking for --enable-no_deps" >&5 |
10f2d63a VZ |
2895 | no_cache=0 |
2896 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
2897 | if test "${enable_no_deps+set}" = set; then | |
2898 | enableval="$enable_no_deps" | |
698dcdb6 | 2899 | |
10f2d63a VZ |
2900 | if test "$enableval" = yes; then |
2901 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
2902 | else | |
2903 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
2904 | fi | |
698dcdb6 | 2905 | |
10f2d63a | 2906 | else |
698dcdb6 | 2907 | |
10f2d63a VZ |
2908 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` |
2909 | if test "x$LINE" != x ; then | |
2910 | eval "DEFAULT_$LINE" | |
2911 | else | |
2912 | no_cache=1 | |
2913 | fi | |
2914 | ||
2915 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
698dcdb6 VZ |
2916 | |
2917 | fi | |
10f2d63a VZ |
2918 | |
2919 | ||
2920 | eval "$ac_cv_use_no_deps" | |
2921 | if test "$no_cache" != 1; then | |
2922 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
2923 | fi | |
2924 | ||
2925 | if test "$wxUSE_NO_DEPS" = yes; then | |
698dcdb6 | 2926 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2927 | else |
698dcdb6 | 2928 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2929 | fi |
698dcdb6 VZ |
2930 | |
2931 | ||
10f2d63a | 2932 | |
54276ccf | 2933 | echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6 |
321d2b14 | 2934 | echo "configure:2935: checking for --enable-compat20" >&5 |
54276ccf VZ |
2935 | no_cache=0 |
2936 | # Check whether --enable-compat20 or --disable-compat20 was given. | |
2937 | if test "${enable_compat20+set}" = set; then | |
2938 | enableval="$enable_compat20" | |
2939 | ||
2940 | if test "$enableval" = yes; then | |
2941 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes' | |
2942 | else | |
2943 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no' | |
2944 | fi | |
2945 | ||
2946 | else | |
2947 | ||
2948 | LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}` | |
2949 | if test "x$LINE" != x ; then | |
2950 | eval "DEFAULT_$LINE" | |
2951 | else | |
2952 | no_cache=1 | |
2953 | fi | |
2954 | ||
2955 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2 | |
2956 | ||
2957 | fi | |
2958 | ||
2959 | ||
2960 | eval "$ac_cv_use_compat20" | |
2961 | if test "$no_cache" != 1; then | |
2962 | echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp | |
2963 | fi | |
2964 | ||
2965 | if test "$WXWIN_COMPATIBILITY_2" = yes; then | |
2966 | echo "$ac_t""yes" 1>&6 | |
2967 | else | |
2968 | echo "$ac_t""no" 1>&6 | |
2969 | fi | |
2970 | ||
2971 | ||
2972 | echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6 | |
321d2b14 | 2973 | echo "configure:2974: checking for --enable-compat22" >&5 |
54276ccf VZ |
2974 | no_cache=0 |
2975 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
2976 | if test "${enable_compat22+set}" = set; then | |
2977 | enableval="$enable_compat22" | |
2978 | ||
2979 | if test "$enableval" = yes; then | |
2980 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
2981 | else | |
2982 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
2983 | fi | |
2984 | ||
2985 | else | |
2986 | ||
2987 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` | |
2988 | if test "x$LINE" != x ; then | |
2989 | eval "DEFAULT_$LINE" | |
2990 | else | |
2991 | no_cache=1 | |
2992 | fi | |
2993 | ||
2994 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
2995 | ||
2996 | fi | |
2997 | ||
2998 | ||
2999 | eval "$ac_cv_use_compat22" | |
3000 | if test "$no_cache" != 1; then | |
3001 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
3002 | fi | |
3003 | ||
3004 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
3005 | echo "$ac_t""yes" 1>&6 | |
3006 | else | |
3007 | echo "$ac_t""no" 1>&6 | |
3008 | fi | |
3009 | ||
3010 | ||
3011 | ||
698dcdb6 VZ |
3012 | |
3013 | echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6 | |
321d2b14 | 3014 | echo "configure:3015: checking for --enable-intl" >&5 |
10f2d63a VZ |
3015 | no_cache=0 |
3016 | # Check whether --enable-intl or --disable-intl was given. | |
3017 | if test "${enable_intl+set}" = set; then | |
3018 | enableval="$enable_intl" | |
698dcdb6 | 3019 | |
10f2d63a VZ |
3020 | if test "$enableval" = yes; then |
3021 | ac_cv_use_intl='wxUSE_INTL=yes' | |
3022 | else | |
3023 | ac_cv_use_intl='wxUSE_INTL=no' | |
3024 | fi | |
698dcdb6 | 3025 | |
10f2d63a | 3026 | else |
698dcdb6 | 3027 | |
10f2d63a VZ |
3028 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` |
3029 | if test "x$LINE" != x ; then | |
3030 | eval "DEFAULT_$LINE" | |
3031 | else | |
3032 | no_cache=1 | |
3033 | fi | |
3034 | ||
3035 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
698dcdb6 VZ |
3036 | |
3037 | fi | |
10f2d63a VZ |
3038 | |
3039 | ||
3040 | eval "$ac_cv_use_intl" | |
3041 | if test "$no_cache" != 1; then | |
3042 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
3043 | fi | |
3044 | ||
3045 | if test "$wxUSE_INTL" = yes; then | |
698dcdb6 | 3046 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3047 | else |
698dcdb6 | 3048 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3049 | fi |
698dcdb6 | 3050 | |
10f2d63a | 3051 | |
698dcdb6 | 3052 | echo $ac_n "checking for --enable-config""... $ac_c" 1>&6 |
321d2b14 | 3053 | echo "configure:3054: checking for --enable-config" >&5 |
10f2d63a VZ |
3054 | no_cache=0 |
3055 | # Check whether --enable-config or --disable-config was given. | |
3056 | if test "${enable_config+set}" = set; then | |
3057 | enableval="$enable_config" | |
698dcdb6 | 3058 | |
10f2d63a VZ |
3059 | if test "$enableval" = yes; then |
3060 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
3061 | else | |
3062 | ac_cv_use_config='wxUSE_CONFIG=no' | |
3063 | fi | |
698dcdb6 | 3064 | |
10f2d63a | 3065 | else |
698dcdb6 | 3066 | |
10f2d63a VZ |
3067 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` |
3068 | if test "x$LINE" != x ; then | |
3069 | eval "DEFAULT_$LINE" | |
3070 | else | |
3071 | no_cache=1 | |
3072 | fi | |
3073 | ||
3074 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
698dcdb6 VZ |
3075 | |
3076 | fi | |
10f2d63a VZ |
3077 | |
3078 | ||
3079 | eval "$ac_cv_use_config" | |
3080 | if test "$no_cache" != 1; then | |
3081 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
3082 | fi | |
3083 | ||
3084 | if test "$wxUSE_CONFIG" = yes; then | |
698dcdb6 | 3085 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3086 | else |
698dcdb6 | 3087 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3088 | fi |
698dcdb6 VZ |
3089 | |
3090 | ||
b12915c1 | 3091 | |
a1622950 | 3092 | echo $ac_n "checking for --enable-protocols""... $ac_c" 1>&6 |
321d2b14 | 3093 | echo "configure:3094: checking for --enable-protocols" >&5 |
a1622950 VZ |
3094 | no_cache=0 |
3095 | # Check whether --enable-protocols or --disable-protocols was given. | |
3096 | if test "${enable_protocols+set}" = set; then | |
3097 | enableval="$enable_protocols" | |
3098 | ||
3099 | if test "$enableval" = yes; then | |
3100 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
3101 | else | |
3102 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
3103 | fi | |
3104 | ||
3105 | else | |
3106 | ||
3107 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
3108 | if test "x$LINE" != x ; then | |
3109 | eval "DEFAULT_$LINE" | |
3110 | else | |
3111 | no_cache=1 | |
3112 | fi | |
3113 | ||
3114 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
3115 | ||
3116 | fi | |
3117 | ||
3118 | ||
3119 | eval "$ac_cv_use_protocols" | |
3120 | if test "$no_cache" != 1; then | |
3121 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
3122 | fi | |
3123 | ||
3124 | if test "$wxUSE_PROTOCOL" = yes; then | |
3125 | echo "$ac_t""yes" 1>&6 | |
3126 | else | |
3127 | echo "$ac_t""no" 1>&6 | |
3128 | fi | |
3129 | ||
3130 | ||
3131 | echo $ac_n "checking for --enable-ftp""... $ac_c" 1>&6 | |
321d2b14 | 3132 | echo "configure:3133: checking for --enable-ftp" >&5 |
a1622950 VZ |
3133 | no_cache=0 |
3134 | # Check whether --enable-ftp or --disable-ftp was given. | |
3135 | if test "${enable_ftp+set}" = set; then | |
3136 | enableval="$enable_ftp" | |
3137 | ||
3138 | if test "$enableval" = yes; then | |
3139 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
3140 | else | |
3141 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
3142 | fi | |
3143 | ||
3144 | else | |
3145 | ||
3146 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
3147 | if test "x$LINE" != x ; then | |
3148 | eval "DEFAULT_$LINE" | |
3149 | else | |
3150 | no_cache=1 | |
3151 | fi | |
3152 | ||
3153 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
3154 | ||
3155 | fi | |
3156 | ||
3157 | ||
3158 | eval "$ac_cv_use_ftp" | |
3159 | if test "$no_cache" != 1; then | |
3160 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
3161 | fi | |
3162 | ||
3163 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
3164 | echo "$ac_t""yes" 1>&6 | |
3165 | else | |
3166 | echo "$ac_t""no" 1>&6 | |
3167 | fi | |
3168 | ||
3169 | ||
3170 | echo $ac_n "checking for --enable-http""... $ac_c" 1>&6 | |
321d2b14 | 3171 | echo "configure:3172: checking for --enable-http" >&5 |
a1622950 VZ |
3172 | no_cache=0 |
3173 | # Check whether --enable-http or --disable-http was given. | |
3174 | if test "${enable_http+set}" = set; then | |
3175 | enableval="$enable_http" | |
3176 | ||
3177 | if test "$enableval" = yes; then | |
3178 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
3179 | else | |
3180 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
3181 | fi | |
3182 | ||
3183 | else | |
3184 | ||
3185 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
3186 | if test "x$LINE" != x ; then | |
3187 | eval "DEFAULT_$LINE" | |
3188 | else | |
3189 | no_cache=1 | |
3190 | fi | |
3191 | ||
3192 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
3193 | ||
3194 | fi | |
3195 | ||
3196 | ||
3197 | eval "$ac_cv_use_http" | |
3198 | if test "$no_cache" != 1; then | |
3199 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
3200 | fi | |
3201 | ||
3202 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
3203 | echo "$ac_t""yes" 1>&6 | |
3204 | else | |
3205 | echo "$ac_t""no" 1>&6 | |
3206 | fi | |
3207 | ||
3208 | ||
3209 | echo $ac_n "checking for --enable-fileproto""... $ac_c" 1>&6 | |
321d2b14 | 3210 | echo "configure:3211: checking for --enable-fileproto" >&5 |
a1622950 VZ |
3211 | no_cache=0 |
3212 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
3213 | if test "${enable_fileproto+set}" = set; then | |
3214 | enableval="$enable_fileproto" | |
3215 | ||
3216 | if test "$enableval" = yes; then | |
3217 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
3218 | else | |
3219 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
3220 | fi | |
3221 | ||
3222 | else | |
3223 | ||
3224 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
3225 | if test "x$LINE" != x ; then | |
3226 | eval "DEFAULT_$LINE" | |
3227 | else | |
3228 | no_cache=1 | |
3229 | fi | |
3230 | ||
3231 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
3232 | ||
3233 | fi | |
3234 | ||
3235 | ||
3236 | eval "$ac_cv_use_fileproto" | |
3237 | if test "$no_cache" != 1; then | |
3238 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
3239 | fi | |
3240 | ||
3241 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
3242 | echo "$ac_t""yes" 1>&6 | |
3243 | else | |
3244 | echo "$ac_t""no" 1>&6 | |
3245 | fi | |
3246 | ||
3247 | ||
698dcdb6 | 3248 | echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6 |
321d2b14 | 3249 | echo "configure:3250: checking for --enable-sockets" >&5 |
10f2d63a VZ |
3250 | no_cache=0 |
3251 | # Check whether --enable-sockets or --disable-sockets was given. | |
3252 | if test "${enable_sockets+set}" = set; then | |
3253 | enableval="$enable_sockets" | |
698dcdb6 | 3254 | |
10f2d63a VZ |
3255 | if test "$enableval" = yes; then |
3256 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
3257 | else | |
3258 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
3259 | fi | |
698dcdb6 | 3260 | |
10f2d63a | 3261 | else |
698dcdb6 | 3262 | |
10f2d63a VZ |
3263 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` |
3264 | if test "x$LINE" != x ; then | |
3265 | eval "DEFAULT_$LINE" | |
3266 | else | |
3267 | no_cache=1 | |
3268 | fi | |
3269 | ||
3270 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
698dcdb6 VZ |
3271 | |
3272 | fi | |
10f2d63a VZ |
3273 | |
3274 | ||
3275 | eval "$ac_cv_use_sockets" | |
3276 | if test "$no_cache" != 1; then | |
3277 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
3278 | fi | |
3279 | ||
3280 | if test "$wxUSE_SOCKETS" = yes; then | |
698dcdb6 | 3281 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3282 | else |
698dcdb6 | 3283 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3284 | fi |
698dcdb6 | 3285 | |
b12915c1 | 3286 | |
698dcdb6 VZ |
3287 | |
3288 | echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6 | |
321d2b14 | 3289 | echo "configure:3290: checking for --enable-ipc" >&5 |
10f2d63a | 3290 | no_cache=0 |
eb4efbdc VZ |
3291 | # Check whether --enable-ipc or --disable-ipc was given. |
3292 | if test "${enable_ipc+set}" = set; then | |
3293 | enableval="$enable_ipc" | |
698dcdb6 | 3294 | |
10f2d63a | 3295 | if test "$enableval" = yes; then |
eb4efbdc | 3296 | ac_cv_use_ipc='wxUSE_IPC=yes' |
10f2d63a | 3297 | else |
eb4efbdc | 3298 | ac_cv_use_ipc='wxUSE_IPC=no' |
10f2d63a | 3299 | fi |
698dcdb6 | 3300 | |
10f2d63a | 3301 | else |
698dcdb6 | 3302 | |
eb4efbdc | 3303 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` |
10f2d63a VZ |
3304 | if test "x$LINE" != x ; then |
3305 | eval "DEFAULT_$LINE" | |
3306 | else | |
3307 | no_cache=1 | |
3308 | fi | |
3309 | ||
eb4efbdc | 3310 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC |
698dcdb6 VZ |
3311 | |
3312 | fi | |
10f2d63a VZ |
3313 | |
3314 | ||
eb4efbdc | 3315 | eval "$ac_cv_use_ipc" |
10f2d63a | 3316 | if test "$no_cache" != 1; then |
eb4efbdc | 3317 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3318 | fi |
3319 | ||
eb4efbdc | 3320 | if test "$wxUSE_IPC" = yes; then |
698dcdb6 | 3321 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3322 | else |
698dcdb6 | 3323 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3324 | fi |
698dcdb6 VZ |
3325 | |
3326 | ||
eb4efbdc | 3327 | |
1e6feb95 | 3328 | echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6 |
321d2b14 | 3329 | echo "configure:3330: checking for --enable-cmdline" >&5 |
1e6feb95 VZ |
3330 | no_cache=0 |
3331 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
3332 | if test "${enable_cmdline+set}" = set; then | |
3333 | enableval="$enable_cmdline" | |
3334 | ||
3335 | if test "$enableval" = yes; then | |
3336 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
3337 | else | |
3338 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
3339 | fi | |
3340 | ||
3341 | else | |
3342 | ||
3343 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
3344 | if test "x$LINE" != x ; then | |
3345 | eval "DEFAULT_$LINE" | |
3346 | else | |
3347 | no_cache=1 | |
3348 | fi | |
3349 | ||
3350 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
3351 | ||
3352 | fi | |
3353 | ||
3354 | ||
3355 | eval "$ac_cv_use_cmdline" | |
3356 | if test "$no_cache" != 1; then | |
3357 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
3358 | fi | |
3359 | ||
3360 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
3361 | echo "$ac_t""yes" 1>&6 | |
3362 | else | |
3363 | echo "$ac_t""no" 1>&6 | |
3364 | fi | |
3365 | ||
3366 | ||
3367 | echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6 | |
321d2b14 | 3368 | echo "configure:3369: checking for --enable-datetime" >&5 |
1e6feb95 VZ |
3369 | no_cache=0 |
3370 | # Check whether --enable-datetime or --disable-datetime was given. | |
3371 | if test "${enable_datetime+set}" = set; then | |
3372 | enableval="$enable_datetime" | |
3373 | ||
3374 | if test "$enableval" = yes; then | |
3375 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
3376 | else | |
3377 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
3378 | fi | |
3379 | ||
3380 | else | |
3381 | ||
3382 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
3383 | if test "x$LINE" != x ; then | |
3384 | eval "DEFAULT_$LINE" | |
3385 | else | |
3386 | no_cache=1 | |
3387 | fi | |
3388 | ||
3389 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
3390 | ||
3391 | fi | |
3392 | ||
3393 | ||
3394 | eval "$ac_cv_use_datetime" | |
3395 | if test "$no_cache" != 1; then | |
3396 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
3397 | fi | |
3398 | ||
3399 | if test "$wxUSE_DATETIME" = yes; then | |
3400 | echo "$ac_t""yes" 1>&6 | |
3401 | else | |
3402 | echo "$ac_t""no" 1>&6 | |
3403 | fi | |
3404 | ||
3405 | ||
3406 | echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6 | |
321d2b14 | 3407 | echo "configure:3408: checking for --enable-timedate" >&5 |
1e6feb95 VZ |
3408 | no_cache=0 |
3409 | # Check whether --enable-timedate or --disable-timedate was given. | |
3410 | if test "${enable_timedate+set}" = set; then | |
3411 | enableval="$enable_timedate" | |
3412 | ||
3413 | if test "$enableval" = yes; then | |
3414 | ac_cv_use_timedate='wxUSE_TIMEDATE=yes' | |
3415 | else | |
3416 | ac_cv_use_timedate='wxUSE_TIMEDATE=no' | |
3417 | fi | |
3418 | ||
3419 | else | |
3420 | ||
3421 | LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}` | |
3422 | if test "x$LINE" != x ; then | |
3423 | eval "DEFAULT_$LINE" | |
3424 | else | |
3425 | no_cache=1 | |
3426 | fi | |
3427 | ||
3428 | ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE | |
3429 | ||
3430 | fi | |
3431 | ||
3432 | ||
3433 | eval "$ac_cv_use_timedate" | |
3434 | if test "$no_cache" != 1; then | |
3435 | echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp | |
3436 | fi | |
3437 | ||
3438 | if test "$wxUSE_TIMEDATE" = yes; then | |
3439 | echo "$ac_t""yes" 1>&6 | |
3440 | else | |
3441 | echo "$ac_t""no" 1>&6 | |
3442 | fi | |
3443 | ||
3444 | ||
3445 | echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6 | |
321d2b14 | 3446 | echo "configure:3447: checking for --enable-stopwatch" >&5 |
1e6feb95 VZ |
3447 | no_cache=0 |
3448 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
3449 | if test "${enable_stopwatch+set}" = set; then | |
3450 | enableval="$enable_stopwatch" | |
3451 | ||
3452 | if test "$enableval" = yes; then | |
3453 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
3454 | else | |
3455 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
3456 | fi | |
3457 | ||
3458 | else | |
3459 | ||
3460 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` | |
3461 | if test "x$LINE" != x ; then | |
3462 | eval "DEFAULT_$LINE" | |
3463 | else | |
3464 | no_cache=1 | |
3465 | fi | |
3466 | ||
3467 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
3468 | ||
3469 | fi | |
3470 | ||
3471 | ||
3472 | eval "$ac_cv_use_stopwatch" | |
3473 | if test "$no_cache" != 1; then | |
3474 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
3475 | fi | |
3476 | ||
3477 | if test "$wxUSE_STOPWATCH" = yes; then | |
3478 | echo "$ac_t""yes" 1>&6 | |
3479 | else | |
3480 | echo "$ac_t""no" 1>&6 | |
3481 | fi | |
3482 | ||
3483 | ||
698dcdb6 | 3484 | echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6 |
321d2b14 | 3485 | echo "configure:3486: checking for --enable-dialupman" >&5 |
10f2d63a | 3486 | no_cache=0 |
eb4efbdc VZ |
3487 | # Check whether --enable-dialupman or --disable-dialupman was given. |
3488 | if test "${enable_dialupman+set}" = set; then | |
3489 | enableval="$enable_dialupman" | |
698dcdb6 | 3490 | |
10f2d63a | 3491 | if test "$enableval" = yes; then |
eb4efbdc | 3492 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' |
10f2d63a | 3493 | else |
eb4efbdc | 3494 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' |
10f2d63a | 3495 | fi |
698dcdb6 | 3496 | |
10f2d63a | 3497 | else |
698dcdb6 | 3498 | |
eb4efbdc | 3499 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3500 | if test "x$LINE" != x ; then |
3501 | eval "DEFAULT_$LINE" | |
3502 | else | |
3503 | no_cache=1 | |
3504 | fi | |
3505 | ||
eb4efbdc | 3506 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER |
698dcdb6 VZ |
3507 | |
3508 | fi | |
10f2d63a VZ |
3509 | |
3510 | ||
eb4efbdc | 3511 | eval "$ac_cv_use_dialupman" |
10f2d63a | 3512 | if test "$no_cache" != 1; then |
eb4efbdc | 3513 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3514 | fi |
3515 | ||
eb4efbdc | 3516 | if test "$wxUSE_DIALUP_MANAGER" = yes; then |
698dcdb6 | 3517 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3518 | else |
698dcdb6 | 3519 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3520 | fi |
698dcdb6 | 3521 | |
10f2d63a | 3522 | |
698dcdb6 | 3523 | echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6 |
321d2b14 | 3524 | echo "configure:3525: checking for --enable-apple_ieee" >&5 |
10f2d63a VZ |
3525 | no_cache=0 |
3526 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
3527 | if test "${enable_apple_ieee+set}" = set; then | |
3528 | enableval="$enable_apple_ieee" | |
698dcdb6 | 3529 | |
10f2d63a VZ |
3530 | if test "$enableval" = yes; then |
3531 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
3532 | else | |
3533 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
3534 | fi | |
698dcdb6 | 3535 | |
10f2d63a | 3536 | else |
698dcdb6 | 3537 | |
10f2d63a VZ |
3538 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` |
3539 | if test "x$LINE" != x ; then | |
3540 | eval "DEFAULT_$LINE" | |
3541 | else | |
3542 | no_cache=1 | |
3543 | fi | |
3544 | ||
3545 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
698dcdb6 VZ |
3546 | |
3547 | fi | |
10f2d63a VZ |
3548 | |
3549 | ||
3550 | eval "$ac_cv_use_apple_ieee" | |
3551 | if test "$no_cache" != 1; then | |
3552 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
3553 | fi | |
3554 | ||
3555 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
698dcdb6 | 3556 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3557 | else |
698dcdb6 | 3558 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3559 | fi |
698dcdb6 | 3560 | |
10f2d63a | 3561 | |
1e6feb95 | 3562 | echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6 |
321d2b14 | 3563 | echo "configure:3564: checking for --enable-timer" >&5 |
10f2d63a | 3564 | no_cache=0 |
1e6feb95 VZ |
3565 | # Check whether --enable-timer or --disable-timer was given. |
3566 | if test "${enable_timer+set}" = set; then | |
3567 | enableval="$enable_timer" | |
698dcdb6 | 3568 | |
10f2d63a | 3569 | if test "$enableval" = yes; then |
1e6feb95 | 3570 | ac_cv_use_timer='wxUSE_TIMER=yes' |
10f2d63a | 3571 | else |
1e6feb95 | 3572 | ac_cv_use_timer='wxUSE_TIMER=no' |
10f2d63a | 3573 | fi |
698dcdb6 | 3574 | |
10f2d63a | 3575 | else |
698dcdb6 | 3576 | |
1e6feb95 | 3577 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3578 | if test "x$LINE" != x ; then |
3579 | eval "DEFAULT_$LINE" | |
3580 | else | |
3581 | no_cache=1 | |
3582 | fi | |
3583 | ||
1e6feb95 | 3584 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER |
698dcdb6 VZ |
3585 | |
3586 | fi | |
10f2d63a VZ |
3587 | |
3588 | ||
1e6feb95 | 3589 | eval "$ac_cv_use_timer" |
10f2d63a | 3590 | if test "$no_cache" != 1; then |
1e6feb95 | 3591 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3592 | fi |
3593 | ||
1e6feb95 | 3594 | if test "$wxUSE_TIMER" = yes; then |
698dcdb6 | 3595 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3596 | else |
698dcdb6 | 3597 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3598 | fi |
698dcdb6 | 3599 | |
10f2d63a | 3600 | |
698dcdb6 | 3601 | echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6 |
321d2b14 | 3602 | echo "configure:3603: checking for --enable-wave" >&5 |
10f2d63a VZ |
3603 | no_cache=0 |
3604 | # Check whether --enable-wave or --disable-wave was given. | |
3605 | if test "${enable_wave+set}" = set; then | |
3606 | enableval="$enable_wave" | |
698dcdb6 | 3607 | |
10f2d63a VZ |
3608 | if test "$enableval" = yes; then |
3609 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
3610 | else | |
3611 | ac_cv_use_wave='wxUSE_WAVE=no' | |
3612 | fi | |
698dcdb6 | 3613 | |
10f2d63a | 3614 | else |
698dcdb6 | 3615 | |
10f2d63a VZ |
3616 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` |
3617 | if test "x$LINE" != x ; then | |
3618 | eval "DEFAULT_$LINE" | |
3619 | else | |
3620 | no_cache=1 | |
3621 | fi | |
3622 | ||
3623 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
698dcdb6 VZ |
3624 | |
3625 | fi | |
10f2d63a VZ |
3626 | |
3627 | ||
3628 | eval "$ac_cv_use_wave" | |
3629 | if test "$no_cache" != 1; then | |
3630 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
3631 | fi | |
3632 | ||
3633 | if test "$wxUSE_WAVE" = yes; then | |
698dcdb6 | 3634 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3635 | else |
698dcdb6 | 3636 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3637 | fi |
698dcdb6 | 3638 | |
10f2d63a | 3639 | |
698dcdb6 | 3640 | echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6 |
321d2b14 | 3641 | echo "configure:3642: checking for --enable-fraction" >&5 |
10f2d63a VZ |
3642 | no_cache=0 |
3643 | # Check whether --enable-fraction or --disable-fraction was given. | |
3644 | if test "${enable_fraction+set}" = set; then | |
3645 | enableval="$enable_fraction" | |
698dcdb6 | 3646 | |
10f2d63a VZ |
3647 | if test "$enableval" = yes; then |
3648 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
3649 | else | |
3650 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
3651 | fi | |
698dcdb6 | 3652 | |
10f2d63a | 3653 | else |
698dcdb6 | 3654 | |
10f2d63a VZ |
3655 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` |
3656 | if test "x$LINE" != x ; then | |
3657 | eval "DEFAULT_$LINE" | |
3658 | else | |
3659 | no_cache=1 | |
3660 | fi | |
3661 | ||
3662 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
698dcdb6 VZ |
3663 | |
3664 | fi | |
10f2d63a VZ |
3665 | |
3666 | ||
3667 | eval "$ac_cv_use_fraction" | |
3668 | if test "$no_cache" != 1; then | |
3669 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
3670 | fi | |
3671 | ||
3672 | if test "$wxUSE_FRACTION" = yes; then | |
698dcdb6 | 3673 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3674 | else |
698dcdb6 | 3675 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3676 | fi |
698dcdb6 | 3677 | |
10f2d63a | 3678 | |
698dcdb6 | 3679 | echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6 |
321d2b14 | 3680 | echo "configure:3681: checking for --enable-dynlib" >&5 |
10f2d63a VZ |
3681 | no_cache=0 |
3682 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
3683 | if test "${enable_dynlib+set}" = set; then | |
3684 | enableval="$enable_dynlib" | |
698dcdb6 | 3685 | |
10f2d63a VZ |
3686 | if test "$enableval" = yes; then |
3687 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
3688 | else | |
3689 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
3690 | fi | |
698dcdb6 | 3691 | |
10f2d63a | 3692 | else |
698dcdb6 | 3693 | |
10f2d63a VZ |
3694 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` |
3695 | if test "x$LINE" != x ; then | |
3696 | eval "DEFAULT_$LINE" | |
3697 | else | |
3698 | no_cache=1 | |
3699 | fi | |
3700 | ||
3701 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
698dcdb6 VZ |
3702 | |
3703 | fi | |
10f2d63a VZ |
3704 | |
3705 | ||
3706 | eval "$ac_cv_use_dynlib" | |
3707 | if test "$no_cache" != 1; then | |
3708 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
3709 | fi | |
3710 | ||
3711 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
698dcdb6 | 3712 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3713 | else |
698dcdb6 | 3714 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3715 | fi |
698dcdb6 | 3716 | |
10f2d63a | 3717 | |
0b9ab0bd | 3718 | echo $ac_n "checking for --enable-dynamicloader""... $ac_c" 1>&6 |
321d2b14 | 3719 | echo "configure:3720: checking for --enable-dynamicloader" >&5 |
0b9ab0bd RL |
3720 | no_cache=0 |
3721 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
3722 | if test "${enable_dynamicloader+set}" = set; then | |
3723 | enableval="$enable_dynamicloader" | |
3724 | ||
3725 | if test "$enableval" = yes; then | |
3726 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
3727 | else | |
3728 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
3729 | fi | |
3730 | ||
3731 | else | |
3732 | ||
3733 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` | |
3734 | if test "x$LINE" != x ; then | |
3735 | eval "DEFAULT_$LINE" | |
3736 | else | |
3737 | no_cache=1 | |
3738 | fi | |
3739 | ||
3740 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
3741 | ||
3742 | fi | |
3743 | ||
3744 | ||
3745 | eval "$ac_cv_use_dynamicloader" | |
3746 | if test "$no_cache" != 1; then | |
3747 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
3748 | fi | |
3749 | ||
3750 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
3751 | echo "$ac_t""yes" 1>&6 | |
3752 | else | |
3753 | echo "$ac_t""no" 1>&6 | |
3754 | fi | |
3755 | ||
3756 | ||
698dcdb6 | 3757 | echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6 |
321d2b14 | 3758 | echo "configure:3759: checking for --enable-longlong" >&5 |
10f2d63a VZ |
3759 | no_cache=0 |
3760 | # Check whether --enable-longlong or --disable-longlong was given. | |
3761 | if test "${enable_longlong+set}" = set; then | |
3762 | enableval="$enable_longlong" | |
698dcdb6 | 3763 | |
10f2d63a VZ |
3764 | if test "$enableval" = yes; then |
3765 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
3766 | else | |
3767 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
3768 | fi | |
698dcdb6 | 3769 | |
10f2d63a | 3770 | else |
698dcdb6 | 3771 | |
10f2d63a VZ |
3772 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` |
3773 | if test "x$LINE" != x ; then | |
3774 | eval "DEFAULT_$LINE" | |
3775 | else | |
3776 | no_cache=1 | |
3777 | fi | |
3778 | ||
3779 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
698dcdb6 VZ |
3780 | |
3781 | fi | |
10f2d63a VZ |
3782 | |
3783 | ||
3784 | eval "$ac_cv_use_longlong" | |
3785 | if test "$no_cache" != 1; then | |
3786 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
3787 | fi | |
3788 | ||
3789 | if test "$wxUSE_LONGLONG" = yes; then | |
698dcdb6 | 3790 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3791 | else |
698dcdb6 | 3792 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3793 | fi |
698dcdb6 | 3794 | |
10f2d63a | 3795 | |
698dcdb6 | 3796 | echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6 |
321d2b14 | 3797 | echo "configure:3798: checking for --enable-geometry" >&5 |
e8f65ba6 RR |
3798 | no_cache=0 |
3799 | # Check whether --enable-geometry or --disable-geometry was given. | |
3800 | if test "${enable_geometry+set}" = set; then | |
3801 | enableval="$enable_geometry" | |
698dcdb6 | 3802 | |
e8f65ba6 RR |
3803 | if test "$enableval" = yes; then |
3804 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
3805 | else | |
3806 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
3807 | fi | |
698dcdb6 | 3808 | |
e8f65ba6 | 3809 | else |
698dcdb6 | 3810 | |
e8f65ba6 RR |
3811 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` |
3812 | if test "x$LINE" != x ; then | |
3813 | eval "DEFAULT_$LINE" | |
3814 | else | |
3815 | no_cache=1 | |
3816 | fi | |
3817 | ||
3818 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
698dcdb6 VZ |
3819 | |
3820 | fi | |
e8f65ba6 RR |
3821 | |
3822 | ||
3823 | eval "$ac_cv_use_geometry" | |
3824 | if test "$no_cache" != 1; then | |
3825 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
3826 | fi | |
3827 | ||
3828 | if test "$wxUSE_GEOMETRY" = yes; then | |
698dcdb6 | 3829 | echo "$ac_t""yes" 1>&6 |
e8f65ba6 | 3830 | else |
698dcdb6 | 3831 | echo "$ac_t""no" 1>&6 |
e8f65ba6 | 3832 | fi |
698dcdb6 | 3833 | |
e8f65ba6 | 3834 | |
698dcdb6 | 3835 | echo $ac_n "checking for --enable-log""... $ac_c" 1>&6 |
321d2b14 | 3836 | echo "configure:3837: checking for --enable-log" >&5 |
10f2d63a VZ |
3837 | no_cache=0 |
3838 | # Check whether --enable-log or --disable-log was given. | |
3839 | if test "${enable_log+set}" = set; then | |
3840 | enableval="$enable_log" | |
698dcdb6 | 3841 | |
10f2d63a VZ |
3842 | if test "$enableval" = yes; then |
3843 | ac_cv_use_log='wxUSE_LOG=yes' | |
3844 | else | |
3845 | ac_cv_use_log='wxUSE_LOG=no' | |
3846 | fi | |
698dcdb6 | 3847 | |
10f2d63a | 3848 | else |
698dcdb6 | 3849 | |
10f2d63a VZ |
3850 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` |
3851 | if test "x$LINE" != x ; then | |
3852 | eval "DEFAULT_$LINE" | |
3853 | else | |
3854 | no_cache=1 | |
3855 | fi | |
3856 | ||
3857 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
698dcdb6 VZ |
3858 | |
3859 | fi | |
10f2d63a VZ |
3860 | |
3861 | ||
3862 | eval "$ac_cv_use_log" | |
3863 | if test "$no_cache" != 1; then | |
3864 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
3865 | fi | |
3866 | ||
3867 | if test "$wxUSE_LOG" = yes; then | |
698dcdb6 | 3868 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3869 | else |
698dcdb6 | 3870 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3871 | fi |
698dcdb6 | 3872 | |
10f2d63a | 3873 | |
698dcdb6 | 3874 | echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6 |
321d2b14 | 3875 | echo "configure:3876: checking for --enable-streams" >&5 |
10f2d63a VZ |
3876 | no_cache=0 |
3877 | # Check whether --enable-streams or --disable-streams was given. | |
3878 | if test "${enable_streams+set}" = set; then | |
3879 | enableval="$enable_streams" | |
698dcdb6 | 3880 | |
10f2d63a VZ |
3881 | if test "$enableval" = yes; then |
3882 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
3883 | else | |
3884 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
3885 | fi | |
698dcdb6 | 3886 | |
10f2d63a | 3887 | else |
698dcdb6 | 3888 | |
10f2d63a VZ |
3889 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` |
3890 | if test "x$LINE" != x ; then | |
3891 | eval "DEFAULT_$LINE" | |
3892 | else | |
3893 | no_cache=1 | |
3894 | fi | |
3895 | ||
3896 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
698dcdb6 VZ |
3897 | |
3898 | fi | |
10f2d63a VZ |
3899 | |
3900 | ||
3901 | eval "$ac_cv_use_streams" | |
3902 | if test "$no_cache" != 1; then | |
3903 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
3904 | fi | |
3905 | ||
3906 | if test "$wxUSE_STREAMS" = yes; then | |
698dcdb6 | 3907 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3908 | else |
698dcdb6 | 3909 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3910 | fi |
698dcdb6 | 3911 | |
10f2d63a | 3912 | |
698dcdb6 | 3913 | echo $ac_n "checking for --enable-file""... $ac_c" 1>&6 |
321d2b14 | 3914 | echo "configure:3915: checking for --enable-file" >&5 |
10f2d63a VZ |
3915 | no_cache=0 |
3916 | # Check whether --enable-file or --disable-file was given. | |
3917 | if test "${enable_file+set}" = set; then | |
3918 | enableval="$enable_file" | |
698dcdb6 | 3919 | |
10f2d63a VZ |
3920 | if test "$enableval" = yes; then |
3921 | ac_cv_use_file='wxUSE_FILE=yes' | |
3922 | else | |
3923 | ac_cv_use_file='wxUSE_FILE=no' | |
3924 | fi | |
698dcdb6 | 3925 | |
10f2d63a | 3926 | else |
698dcdb6 | 3927 | |
10f2d63a VZ |
3928 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` |
3929 | if test "x$LINE" != x ; then | |
3930 | eval "DEFAULT_$LINE" | |
3931 | else | |
3932 | no_cache=1 | |
3933 | fi | |
3934 | ||
3935 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
698dcdb6 VZ |
3936 | |
3937 | fi | |
10f2d63a VZ |
3938 | |
3939 | ||
3940 | eval "$ac_cv_use_file" | |
3941 | if test "$no_cache" != 1; then | |
3942 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
3943 | fi | |
3944 | ||
3945 | if test "$wxUSE_FILE" = yes; then | |
698dcdb6 | 3946 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3947 | else |
698dcdb6 | 3948 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3949 | fi |
698dcdb6 | 3950 | |
10f2d63a | 3951 | |
1e6feb95 | 3952 | echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6 |
321d2b14 | 3953 | echo "configure:3954: checking for --enable-ffile" >&5 |
10f2d63a | 3954 | no_cache=0 |
1e6feb95 VZ |
3955 | # Check whether --enable-ffile or --disable-ffile was given. |
3956 | if test "${enable_ffile+set}" = set; then | |
3957 | enableval="$enable_ffile" | |
698dcdb6 | 3958 | |
10f2d63a | 3959 | if test "$enableval" = yes; then |
1e6feb95 | 3960 | ac_cv_use_ffile='wxUSE_FFILE=yes' |
10f2d63a | 3961 | else |
1e6feb95 | 3962 | ac_cv_use_ffile='wxUSE_FFILE=no' |
10f2d63a | 3963 | fi |
698dcdb6 | 3964 | |
10f2d63a | 3965 | else |
698dcdb6 | 3966 | |
1e6feb95 | 3967 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
3968 | if test "x$LINE" != x ; then |
3969 | eval "DEFAULT_$LINE" | |
3970 | else | |
3971 | no_cache=1 | |
3972 | fi | |
3973 | ||
1e6feb95 | 3974 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE |
698dcdb6 VZ |
3975 | |
3976 | fi | |
10f2d63a VZ |
3977 | |
3978 | ||
1e6feb95 | 3979 | eval "$ac_cv_use_ffile" |
10f2d63a | 3980 | if test "$no_cache" != 1; then |
1e6feb95 | 3981 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3982 | fi |
3983 | ||
1e6feb95 | 3984 | if test "$wxUSE_FFILE" = yes; then |
698dcdb6 | 3985 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3986 | else |
698dcdb6 | 3987 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3988 | fi |
698dcdb6 | 3989 | |
10f2d63a | 3990 | |
a3a584a7 | 3991 | echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6 |
321d2b14 | 3992 | echo "configure:3993: checking for --enable-textbuf" >&5 |
a3a584a7 VZ |
3993 | no_cache=0 |
3994 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
3995 | if test "${enable_textbuf+set}" = set; then | |
3996 | enableval="$enable_textbuf" | |
3997 | ||
3998 | if test "$enableval" = yes; then | |
3999 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
4000 | else | |
4001 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
4002 | fi | |
4003 | ||
4004 | else | |
4005 | ||
4006 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` | |
4007 | if test "x$LINE" != x ; then | |
4008 | eval "DEFAULT_$LINE" | |
4009 | else | |
4010 | no_cache=1 | |
4011 | fi | |
4012 | ||
4013 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
4014 | ||
4015 | fi | |
4016 | ||
4017 | ||
4018 | eval "$ac_cv_use_textbuf" | |
4019 | if test "$no_cache" != 1; then | |
4020 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
4021 | fi | |
4022 | ||
4023 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
4024 | echo "$ac_t""yes" 1>&6 | |
4025 | else | |
4026 | echo "$ac_t""no" 1>&6 | |
4027 | fi | |
4028 | ||
4029 | ||
1e6feb95 | 4030 | echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6 |
321d2b14 | 4031 | echo "configure:4032: checking for --enable-textfile" >&5 |
10f2d63a | 4032 | no_cache=0 |
1e6feb95 VZ |
4033 | # Check whether --enable-textfile or --disable-textfile was given. |
4034 | if test "${enable_textfile+set}" = set; then | |
4035 | enableval="$enable_textfile" | |
698dcdb6 | 4036 | |
10f2d63a | 4037 | if test "$enableval" = yes; then |
1e6feb95 | 4038 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' |
10f2d63a | 4039 | else |
1e6feb95 | 4040 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' |
10f2d63a | 4041 | fi |
698dcdb6 | 4042 | |
10f2d63a | 4043 | else |
698dcdb6 | 4044 | |
1e6feb95 | 4045 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4046 | if test "x$LINE" != x ; then |
4047 | eval "DEFAULT_$LINE" | |
4048 | else | |
4049 | no_cache=1 | |
4050 | fi | |
4051 | ||
1e6feb95 | 4052 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE |
698dcdb6 VZ |
4053 | |
4054 | fi | |
10f2d63a VZ |
4055 | |
4056 | ||
1e6feb95 | 4057 | eval "$ac_cv_use_textfile" |
10f2d63a | 4058 | if test "$no_cache" != 1; then |
1e6feb95 | 4059 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4060 | fi |
4061 | ||
1e6feb95 | 4062 | if test "$wxUSE_TEXTFILE" = yes; then |
698dcdb6 | 4063 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4064 | else |
698dcdb6 | 4065 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4066 | fi |
698dcdb6 | 4067 | |
10f2d63a | 4068 | |
1e6feb95 | 4069 | echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6 |
321d2b14 | 4070 | echo "configure:4071: checking for --enable-fontmap" >&5 |
10f2d63a | 4071 | no_cache=0 |
1e6feb95 VZ |
4072 | # Check whether --enable-fontmap or --disable-fontmap was given. |
4073 | if test "${enable_fontmap+set}" = set; then | |
4074 | enableval="$enable_fontmap" | |
698dcdb6 | 4075 | |
10f2d63a | 4076 | if test "$enableval" = yes; then |
1e6feb95 | 4077 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' |
10f2d63a | 4078 | else |
1e6feb95 | 4079 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' |
10f2d63a | 4080 | fi |
698dcdb6 | 4081 | |
10f2d63a | 4082 | else |
698dcdb6 | 4083 | |
1e6feb95 | 4084 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` |
10f2d63a VZ |
4085 | if test "x$LINE" != x ; then |
4086 | eval "DEFAULT_$LINE" | |
4087 | else | |
4088 | no_cache=1 | |
4089 | fi | |
4090 | ||
1e6feb95 | 4091 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP |
698dcdb6 VZ |
4092 | |
4093 | fi | |
10f2d63a VZ |
4094 | |
4095 | ||
1e6feb95 | 4096 | eval "$ac_cv_use_fontmap" |
10f2d63a | 4097 | if test "$no_cache" != 1; then |
1e6feb95 | 4098 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4099 | fi |
4100 | ||
1e6feb95 | 4101 | if test "$wxUSE_FONTMAP" = yes; then |
698dcdb6 | 4102 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4103 | else |
698dcdb6 | 4104 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4105 | fi |
698dcdb6 | 4106 | |
10f2d63a | 4107 | |
1e6feb95 | 4108 | echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6 |
321d2b14 | 4109 | echo "configure:4110: checking for --enable-unicode" >&5 |
10f2d63a | 4110 | no_cache=0 |
1e6feb95 VZ |
4111 | # Check whether --enable-unicode or --disable-unicode was given. |
4112 | if test "${enable_unicode+set}" = set; then | |
4113 | enableval="$enable_unicode" | |
4114 | ||
4115 | if test "$enableval" = yes; then | |
4116 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
4117 | else | |
4118 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
4119 | fi | |
4120 | ||
4121 | else | |
4122 | ||
4123 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
4124 | if test "x$LINE" != x ; then | |
4125 | eval "DEFAULT_$LINE" | |
4126 | else | |
4127 | no_cache=1 | |
4128 | fi | |
4129 | ||
4130 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
4131 | ||
4132 | fi | |
4133 | ||
4134 | ||
4135 | eval "$ac_cv_use_unicode" | |
4136 | if test "$no_cache" != 1; then | |
4137 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
4138 | fi | |
4139 | ||
4140 | if test "$wxUSE_UNICODE" = yes; then | |
4141 | echo "$ac_t""yes" 1>&6 | |
4142 | else | |
4143 | echo "$ac_t""no" 1>&6 | |
4144 | fi | |
4145 | ||
4146 | ||
a72a4bfa | 4147 | echo $ac_n "checking for --enable-mslu""... $ac_c" 1>&6 |
321d2b14 | 4148 | echo "configure:4149: checking for --enable-mslu" >&5 |
a72a4bfa VS |
4149 | no_cache=0 |
4150 | # Check whether --enable-mslu or --disable-mslu was given. | |
4151 | if test "${enable_mslu+set}" = set; then | |
4152 | enableval="$enable_mslu" | |
4153 | ||
4154 | if test "$enableval" = yes; then | |
4155 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
4156 | else | |
4157 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
4158 | fi | |
4159 | ||
4160 | else | |
4161 | ||
4162 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` | |
4163 | if test "x$LINE" != x ; then | |
4164 | eval "DEFAULT_$LINE" | |
4165 | else | |
4166 | no_cache=1 | |
4167 | fi | |
4168 | ||
4169 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
4170 | ||
4171 | fi | |
4172 | ||
4173 | ||
4174 | eval "$ac_cv_use_mslu" | |
4175 | if test "$no_cache" != 1; then | |
4176 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
4177 | fi | |
4178 | ||
4179 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
4180 | echo "$ac_t""yes" 1>&6 | |
4181 | else | |
4182 | echo "$ac_t""no" 1>&6 | |
4183 | fi | |
4184 | ||
4185 | ||
1e6feb95 | 4186 | echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6 |
321d2b14 | 4187 | echo "configure:4188: checking for --enable-wxprintfv" >&5 |
1e6feb95 VZ |
4188 | no_cache=0 |
4189 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
4190 | if test "${enable_wxprintfv+set}" = set; then | |
4191 | enableval="$enable_wxprintfv" | |
4192 | ||
4193 | if test "$enableval" = yes; then | |
10f2d63a VZ |
4194 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' |
4195 | else | |
4196 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
4197 | fi | |
698dcdb6 | 4198 | |
10f2d63a | 4199 | else |
698dcdb6 | 4200 | |
10f2d63a VZ |
4201 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` |
4202 | if test "x$LINE" != x ; then | |
4203 | eval "DEFAULT_$LINE" | |
4204 | else | |
4205 | no_cache=1 | |
4206 | fi | |
4207 | ||
4208 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
698dcdb6 VZ |
4209 | |
4210 | fi | |
10f2d63a VZ |
4211 | |
4212 | ||
4213 | eval "$ac_cv_use_wxprintfv" | |
4214 | if test "$no_cache" != 1; then | |
4215 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
4216 | fi | |
4217 | ||
4218 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
698dcdb6 | 4219 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4220 | else |
698dcdb6 | 4221 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4222 | fi |
698dcdb6 | 4223 | |
10f2d63a | 4224 | |
698dcdb6 | 4225 | echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6 |
321d2b14 | 4226 | echo "configure:4227: checking for --enable-std_iostreams" >&5 |
10f2d63a VZ |
4227 | no_cache=0 |
4228 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
4229 | if test "${enable_std_iostreams+set}" = set; then | |
4230 | enableval="$enable_std_iostreams" | |
698dcdb6 | 4231 | |
10f2d63a VZ |
4232 | if test "$enableval" = yes; then |
4233 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
4234 | else | |
4235 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
4236 | fi | |
698dcdb6 | 4237 | |
10f2d63a | 4238 | else |
698dcdb6 | 4239 | |
10f2d63a VZ |
4240 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
4241 | if test "x$LINE" != x ; then | |
4242 | eval "DEFAULT_$LINE" | |
4243 | else | |
4244 | no_cache=1 | |
4245 | fi | |
4246 | ||
4247 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
698dcdb6 VZ |
4248 | |
4249 | fi | |
10f2d63a VZ |
4250 | |
4251 | ||
4252 | eval "$ac_cv_use_std_iostreams" | |
4253 | if test "$no_cache" != 1; then | |
4254 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
4255 | fi | |
4256 | ||
4257 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
698dcdb6 | 4258 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4259 | else |
698dcdb6 | 4260 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4261 | fi |
698dcdb6 | 4262 | |
10f2d63a | 4263 | |
698dcdb6 | 4264 | echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6 |
321d2b14 | 4265 | echo "configure:4266: checking for --enable-filesystem" >&5 |
24528b0c VS |
4266 | no_cache=0 |
4267 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
4268 | if test "${enable_filesystem+set}" = set; then | |
4269 | enableval="$enable_filesystem" | |
698dcdb6 | 4270 | |
24528b0c VS |
4271 | if test "$enableval" = yes; then |
4272 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
4273 | else | |
4274 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
4275 | fi | |
698dcdb6 | 4276 | |
24528b0c | 4277 | else |
698dcdb6 | 4278 | |
24528b0c VS |
4279 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` |
4280 | if test "x$LINE" != x ; then | |
4281 | eval "DEFAULT_$LINE" | |
4282 | else | |
4283 | no_cache=1 | |
4284 | fi | |
4285 | ||
4286 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
698dcdb6 VZ |
4287 | |
4288 | fi | |
24528b0c VS |
4289 | |
4290 | ||
4291 | eval "$ac_cv_use_filesystem" | |
4292 | if test "$no_cache" != 1; then | |
4293 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
4294 | fi | |
4295 | ||
4296 | if test "$wxUSE_FILESYSTEM" = yes; then | |
698dcdb6 | 4297 | echo "$ac_t""yes" 1>&6 |
24528b0c | 4298 | else |
698dcdb6 | 4299 | echo "$ac_t""no" 1>&6 |
24528b0c | 4300 | fi |
698dcdb6 | 4301 | |
24528b0c | 4302 | |
698dcdb6 | 4303 | echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6 |
321d2b14 | 4304 | echo "configure:4305: checking for --enable-fs_inet" >&5 |
10f2d63a VZ |
4305 | no_cache=0 |
4306 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
4307 | if test "${enable_fs_inet+set}" = set; then | |
4308 | enableval="$enable_fs_inet" | |
698dcdb6 | 4309 | |
10f2d63a VZ |
4310 | if test "$enableval" = yes; then |
4311 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
4312 | else | |
4313 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
4314 | fi | |
698dcdb6 | 4315 | |
10f2d63a | 4316 | else |
698dcdb6 | 4317 | |
10f2d63a VZ |
4318 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` |
4319 | if test "x$LINE" != x ; then | |
4320 | eval "DEFAULT_$LINE" | |
4321 | else | |
4322 | no_cache=1 | |
4323 | fi | |
4324 | ||
4325 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
698dcdb6 VZ |
4326 | |
4327 | fi | |
10f2d63a VZ |
4328 | |
4329 | ||
4330 | eval "$ac_cv_use_fs_inet" | |
4331 | if test "$no_cache" != 1; then | |
4332 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
4333 | fi | |
4334 | ||
4335 | if test "$wxUSE_FS_INET" = yes; then | |
698dcdb6 | 4336 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4337 | else |
698dcdb6 | 4338 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4339 | fi |
698dcdb6 | 4340 | |
10f2d63a | 4341 | |
698dcdb6 | 4342 | echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6 |
321d2b14 | 4343 | echo "configure:4344: checking for --enable-fs_zip" >&5 |
10f2d63a VZ |
4344 | no_cache=0 |
4345 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
4346 | if test "${enable_fs_zip+set}" = set; then | |
4347 | enableval="$enable_fs_zip" | |
698dcdb6 | 4348 | |
10f2d63a VZ |
4349 | if test "$enableval" = yes; then |
4350 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
4351 | else | |
4352 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
4353 | fi | |
698dcdb6 | 4354 | |
10f2d63a | 4355 | else |
698dcdb6 | 4356 | |
10f2d63a VZ |
4357 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` |
4358 | if test "x$LINE" != x ; then | |
4359 | eval "DEFAULT_$LINE" | |
4360 | else | |
4361 | no_cache=1 | |
4362 | fi | |
4363 | ||
4364 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
698dcdb6 VZ |
4365 | |
4366 | fi | |
10f2d63a VZ |
4367 | |
4368 | ||
4369 | eval "$ac_cv_use_fs_zip" | |
4370 | if test "$no_cache" != 1; then | |
4371 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
4372 | fi | |
4373 | ||
4374 | if test "$wxUSE_FS_ZIP" = yes; then | |
698dcdb6 | 4375 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4376 | else |
698dcdb6 | 4377 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4378 | fi |
698dcdb6 | 4379 | |
10f2d63a | 4380 | |
698dcdb6 | 4381 | echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6 |
321d2b14 | 4382 | echo "configure:4383: checking for --enable-zipstream" >&5 |
10f2d63a VZ |
4383 | no_cache=0 |
4384 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
4385 | if test "${enable_zipstream+set}" = set; then | |
4386 | enableval="$enable_zipstream" | |
698dcdb6 | 4387 | |
10f2d63a VZ |
4388 | if test "$enableval" = yes; then |
4389 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
4390 | else | |
4391 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
4392 | fi | |
698dcdb6 | 4393 | |
10f2d63a | 4394 | else |
698dcdb6 | 4395 | |
10f2d63a VZ |
4396 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` |
4397 | if test "x$LINE" != x ; then | |
4398 | eval "DEFAULT_$LINE" | |
4399 | else | |
4400 | no_cache=1 | |
4401 | fi | |
4402 | ||
4403 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
698dcdb6 VZ |
4404 | |
4405 | fi | |
10f2d63a VZ |
4406 | |
4407 | ||
4408 | eval "$ac_cv_use_zipstream" | |
4409 | if test "$no_cache" != 1; then | |
4410 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
4411 | fi | |
4412 | ||
4413 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
698dcdb6 | 4414 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4415 | else |
698dcdb6 | 4416 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4417 | fi |
698dcdb6 | 4418 | |
10f2d63a | 4419 | |
698dcdb6 VZ |
4420 | |
4421 | echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6 | |
321d2b14 | 4422 | echo "configure:4423: checking for --enable-catch_segvs" >&5 |
eb4efbdc VZ |
4423 | no_cache=0 |
4424 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
4425 | if test "${enable_catch_segvs+set}" = set; then | |
4426 | enableval="$enable_catch_segvs" | |
698dcdb6 | 4427 | |
eb4efbdc VZ |
4428 | if test "$enableval" = yes; then |
4429 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
4430 | else | |
4431 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
4432 | fi | |
698dcdb6 | 4433 | |
eb4efbdc | 4434 | else |
698dcdb6 | 4435 | |
eb4efbdc VZ |
4436 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
4437 | if test "x$LINE" != x ; then | |
4438 | eval "DEFAULT_$LINE" | |
4439 | else | |
4440 | no_cache=1 | |
4441 | fi | |
4442 | ||
4443 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
698dcdb6 VZ |
4444 | |
4445 | fi | |
eb4efbdc VZ |
4446 | |
4447 | ||
4448 | eval "$ac_cv_use_catch_segvs" | |
4449 | if test "$no_cache" != 1; then | |
4450 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
4451 | fi | |
4452 | ||
4453 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
698dcdb6 | 4454 | echo "$ac_t""yes" 1>&6 |
eb4efbdc | 4455 | else |
698dcdb6 | 4456 | echo "$ac_t""no" 1>&6 |
eb4efbdc | 4457 | fi |
698dcdb6 | 4458 | |
eb4efbdc | 4459 | |
698dcdb6 | 4460 | echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6 |
321d2b14 | 4461 | echo "configure:4462: checking for --enable-snglinst" >&5 |
4f3c5f06 VZ |
4462 | no_cache=0 |
4463 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
4464 | if test "${enable_snglinst+set}" = set; then | |
4465 | enableval="$enable_snglinst" | |
698dcdb6 | 4466 | |
4f3c5f06 VZ |
4467 | if test "$enableval" = yes; then |
4468 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
4469 | else | |
4470 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
4471 | fi | |
698dcdb6 | 4472 | |
4f3c5f06 | 4473 | else |
698dcdb6 | 4474 | |
4f3c5f06 VZ |
4475 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` |
4476 | if test "x$LINE" != x ; then | |
4477 | eval "DEFAULT_$LINE" | |
4478 | else | |
4479 | no_cache=1 | |
4480 | fi | |
4481 | ||
4482 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
698dcdb6 VZ |
4483 | |
4484 | fi | |
4f3c5f06 VZ |
4485 | |
4486 | ||
4487 | eval "$ac_cv_use_snglinst" | |
4488 | if test "$no_cache" != 1; then | |
4489 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
4490 | fi | |
4491 | ||
4492 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
698dcdb6 | 4493 | echo "$ac_t""yes" 1>&6 |
4f3c5f06 | 4494 | else |
698dcdb6 | 4495 | echo "$ac_t""no" 1>&6 |
4f3c5f06 | 4496 | fi |
698dcdb6 VZ |
4497 | |
4498 | ||
eb4efbdc | 4499 | |
1e6feb95 | 4500 | echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6 |
321d2b14 | 4501 | echo "configure:4502: checking for --enable-mimetype" >&5 |
1e6feb95 VZ |
4502 | no_cache=0 |
4503 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
4504 | if test "${enable_mimetype+set}" = set; then | |
4505 | enableval="$enable_mimetype" | |
4506 | ||
4507 | if test "$enableval" = yes; then | |
4508 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
4509 | else | |
4510 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
4511 | fi | |
4512 | ||
4513 | else | |
4514 | ||
4515 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
4516 | if test "x$LINE" != x ; then | |
4517 | eval "DEFAULT_$LINE" | |
4518 | else | |
4519 | no_cache=1 | |
4520 | fi | |
4521 | ||
4522 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
4523 | ||
4524 | fi | |
4525 | ||
4526 | ||
4527 | eval "$ac_cv_use_mimetype" | |
4528 | if test "$no_cache" != 1; then | |
4529 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
4530 | fi | |
4531 | ||
4532 | if test "$wxUSE_MIMETYPE" = yes; then | |
4533 | echo "$ac_t""yes" 1>&6 | |
4534 | else | |
4535 | echo "$ac_t""no" 1>&6 | |
4536 | fi | |
4537 | ||
4538 | ||
3e44f09d | 4539 | echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6 |
321d2b14 | 4540 | echo "configure:4541: checking for --enable-system_options" >&5 |
3e44f09d VZ |
4541 | no_cache=0 |
4542 | # Check whether --enable-system_options or --disable-system_options was given. | |
4543 | if test "${enable_system_options+set}" = set; then | |
4544 | enableval="$enable_system_options" | |
4545 | ||
4546 | if test "$enableval" = yes; then | |
4547 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
4548 | else | |
4549 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
4550 | fi | |
4551 | ||
4552 | else | |
4553 | ||
4554 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` | |
4555 | if test "x$LINE" != x ; then | |
4556 | eval "DEFAULT_$LINE" | |
4557 | else | |
4558 | no_cache=1 | |
4559 | fi | |
4560 | ||
4561 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
4562 | ||
4563 | fi | |
4564 | ||
4565 | ||
4566 | eval "$ac_cv_use_system_options" | |
4567 | if test "$no_cache" != 1; then | |
4568 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
4569 | fi | |
4570 | ||
4571 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
4572 | echo "$ac_t""yes" 1>&6 | |
4573 | else | |
4574 | echo "$ac_t""no" 1>&6 | |
4575 | fi | |
4576 | ||
4577 | ||
1e6feb95 | 4578 | |
4cdb0ab0 | 4579 | echo $ac_n "checking for --enable-url""... $ac_c" 1>&6 |
321d2b14 | 4580 | echo "configure:4581: checking for --enable-url" >&5 |
4cdb0ab0 VS |
4581 | no_cache=0 |
4582 | # Check whether --enable-url or --disable-url was given. | |
4583 | if test "${enable_url+set}" = set; then | |
4584 | enableval="$enable_url" | |
4585 | ||
4586 | if test "$enableval" = yes; then | |
4587 | ac_cv_use_url='wxUSE_URL=yes' | |
4588 | else | |
4589 | ac_cv_use_url='wxUSE_URL=no' | |
4590 | fi | |
4591 | ||
4592 | else | |
4593 | ||
4594 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` | |
4595 | if test "x$LINE" != x ; then | |
4596 | eval "DEFAULT_$LINE" | |
4597 | else | |
4598 | no_cache=1 | |
4599 | fi | |
4600 | ||
4601 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
4602 | ||
4603 | fi | |
4604 | ||
4605 | ||
4606 | eval "$ac_cv_use_url" | |
4607 | if test "$no_cache" != 1; then | |
4608 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
4609 | fi | |
4610 | ||
4611 | if test "$wxUSE_URL" = yes; then | |
4612 | echo "$ac_t""yes" 1>&6 | |
4613 | else | |
4614 | echo "$ac_t""no" 1>&6 | |
4615 | fi | |
4616 | ||
4617 | ||
4618 | echo $ac_n "checking for --enable-protocol""... $ac_c" 1>&6 | |
321d2b14 | 4619 | echo "configure:4620: checking for --enable-protocol" >&5 |
4cdb0ab0 VS |
4620 | no_cache=0 |
4621 | # Check whether --enable-protocol or --disable-protocol was given. | |
4622 | if test "${enable_protocol+set}" = set; then | |
4623 | enableval="$enable_protocol" | |
4624 | ||
4625 | if test "$enableval" = yes; then | |
4626 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
4627 | else | |
4628 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
4629 | fi | |
4630 | ||
4631 | else | |
4632 | ||
4633 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
4634 | if test "x$LINE" != x ; then | |
4635 | eval "DEFAULT_$LINE" | |
4636 | else | |
4637 | no_cache=1 | |
4638 | fi | |
4639 | ||
4640 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
4641 | ||
4642 | fi | |
4643 | ||
4644 | ||
4645 | eval "$ac_cv_use_protocol" | |
4646 | if test "$no_cache" != 1; then | |
4647 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
4648 | fi | |
4649 | ||
4650 | if test "$wxUSE_PROTOCOL" = yes; then | |
4651 | echo "$ac_t""yes" 1>&6 | |
4652 | else | |
4653 | echo "$ac_t""no" 1>&6 | |
4654 | fi | |
4655 | ||
4656 | ||
4657 | echo $ac_n "checking for --enable-protocol_http""... $ac_c" 1>&6 | |
321d2b14 | 4658 | echo "configure:4659: checking for --enable-protocol_http" >&5 |
4cdb0ab0 VS |
4659 | no_cache=0 |
4660 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
4661 | if test "${enable_protocol_http+set}" = set; then | |
4662 | enableval="$enable_protocol_http" | |
4663 | ||
4664 | if test "$enableval" = yes; then | |
4665 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
4666 | else | |
4667 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
4668 | fi | |
4669 | ||
4670 | else | |
4671 | ||
4672 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
4673 | if test "x$LINE" != x ; then | |
4674 | eval "DEFAULT_$LINE" | |
4675 | else | |
4676 | no_cache=1 | |
4677 | fi | |
4678 | ||
4679 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
4680 | ||
4681 | fi | |
4682 | ||
4683 | ||
4684 | eval "$ac_cv_use_protocol_http" | |
4685 | if test "$no_cache" != 1; then | |
4686 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
4687 | fi | |
4688 | ||
4689 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
4690 | echo "$ac_t""yes" 1>&6 | |
4691 | else | |
4692 | echo "$ac_t""no" 1>&6 | |
4693 | fi | |
4694 | ||
4695 | ||
4696 | echo $ac_n "checking for --enable-protocol_ftp""... $ac_c" 1>&6 | |
321d2b14 | 4697 | echo "configure:4698: checking for --enable-protocol_ftp" >&5 |
4cdb0ab0 VS |
4698 | no_cache=0 |
4699 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
4700 | if test "${enable_protocol_ftp+set}" = set; then | |
4701 | enableval="$enable_protocol_ftp" | |
4702 | ||
4703 | if test "$enableval" = yes; then | |
4704 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4705 | else | |
4706 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
4707 | fi | |
4708 | ||
4709 | else | |
4710 | ||
4711 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
4712 | if test "x$LINE" != x ; then | |
4713 | eval "DEFAULT_$LINE" | |
4714 | else | |
4715 | no_cache=1 | |
4716 | fi | |
4717 | ||
4718 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
4719 | ||
4720 | fi | |
4721 | ||
4722 | ||
4723 | eval "$ac_cv_use_protocol_ftp" | |
4724 | if test "$no_cache" != 1; then | |
4725 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
4726 | fi | |
4727 | ||
4728 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
4729 | echo "$ac_t""yes" 1>&6 | |
4730 | else | |
4731 | echo "$ac_t""no" 1>&6 | |
4732 | fi | |
4733 | ||
4734 | ||
4735 | echo $ac_n "checking for --enable-protocol_file""... $ac_c" 1>&6 | |
321d2b14 | 4736 | echo "configure:4737: checking for --enable-protocol_file" >&5 |
4cdb0ab0 VS |
4737 | no_cache=0 |
4738 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
4739 | if test "${enable_protocol_file+set}" = set; then | |
4740 | enableval="$enable_protocol_file" | |
4741 | ||
4742 | if test "$enableval" = yes; then | |
4743 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
4744 | else | |
4745 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
4746 | fi | |
4747 | ||
4748 | else | |
4749 | ||
4750 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
4751 | if test "x$LINE" != x ; then | |
4752 | eval "DEFAULT_$LINE" | |
4753 | else | |
4754 | no_cache=1 | |
4755 | fi | |
4756 | ||
4757 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
4758 | ||
4759 | fi | |
4760 | ||
4761 | ||
4762 | eval "$ac_cv_use_protocol_file" | |
4763 | if test "$no_cache" != 1; then | |
4764 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
4765 | fi | |
4766 | ||
4767 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
4768 | echo "$ac_t""yes" 1>&6 | |
4769 | else | |
4770 | echo "$ac_t""no" 1>&6 | |
4771 | fi | |
4772 | ||
4773 | ||
4774 | ||
4775 | ||
698dcdb6 VZ |
4776 | |
4777 | echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6 | |
321d2b14 | 4778 | echo "configure:4779: checking for --enable-threads" >&5 |
10f2d63a VZ |
4779 | no_cache=0 |
4780 | # Check whether --enable-threads or --disable-threads was given. | |
4781 | if test "${enable_threads+set}" = set; then | |
4782 | enableval="$enable_threads" | |
698dcdb6 | 4783 | |
10f2d63a VZ |
4784 | if test "$enableval" = yes; then |
4785 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
4786 | else | |
4787 | ac_cv_use_threads='wxUSE_THREADS=no' | |
4788 | fi | |
698dcdb6 | 4789 | |
10f2d63a | 4790 | else |
698dcdb6 | 4791 | |
10f2d63a VZ |
4792 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` |
4793 | if test "x$LINE" != x ; then | |
4794 | eval "DEFAULT_$LINE" | |
4795 | else | |
4796 | no_cache=1 | |
4797 | fi | |
4798 | ||
4799 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
698dcdb6 VZ |
4800 | |
4801 | fi | |
10f2d63a VZ |
4802 | |
4803 | ||
4804 | eval "$ac_cv_use_threads" | |
4805 | if test "$no_cache" != 1; then | |
4806 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
4807 | fi | |
4808 | ||
4809 | if test "$wxUSE_THREADS" = yes; then | |
698dcdb6 | 4810 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4811 | else |
698dcdb6 | 4812 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4813 | fi |
698dcdb6 | 4814 | |
10f2d63a | 4815 | |
b12915c1 VZ |
4816 | if test "$wxUSE_GUI" = "yes"; then |
4817 | ||
698dcdb6 VZ |
4818 | |
4819 | ||
4820 | echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6 | |
321d2b14 | 4821 | echo "configure:4822: checking for --enable-docview" >&5 |
10f2d63a VZ |
4822 | no_cache=0 |
4823 | # Check whether --enable-docview or --disable-docview was given. | |
4824 | if test "${enable_docview+set}" = set; then | |
4825 | enableval="$enable_docview" | |
698dcdb6 | 4826 | |
10f2d63a VZ |
4827 | if test "$enableval" = yes; then |
4828 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
4829 | else | |
4830 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
4831 | fi | |
698dcdb6 | 4832 | |
10f2d63a | 4833 | else |
698dcdb6 | 4834 | |
10f2d63a VZ |
4835 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` |
4836 | if test "x$LINE" != x ; then | |
4837 | eval "DEFAULT_$LINE" | |
4838 | else | |
4839 | no_cache=1 | |
4840 | fi | |
4841 | ||
4842 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
698dcdb6 VZ |
4843 | |
4844 | fi | |
10f2d63a VZ |
4845 | |
4846 | ||
4847 | eval "$ac_cv_use_docview" | |
4848 | if test "$no_cache" != 1; then | |
4849 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
4850 | fi | |
4851 | ||
4852 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
698dcdb6 | 4853 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4854 | else |
698dcdb6 | 4855 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4856 | fi |
698dcdb6 | 4857 | |
10f2d63a | 4858 | |
698dcdb6 | 4859 | echo $ac_n "checking for --enable-help""... $ac_c" 1>&6 |
321d2b14 | 4860 | echo "configure:4861: checking for --enable-help" >&5 |
10f2d63a VZ |
4861 | no_cache=0 |
4862 | # Check whether --enable-help or --disable-help was given. | |
4863 | if test "${enable_help+set}" = set; then | |
4864 | enableval="$enable_help" | |
698dcdb6 | 4865 | |
10f2d63a VZ |
4866 | if test "$enableval" = yes; then |
4867 | ac_cv_use_help='wxUSE_HELP=yes' | |
4868 | else | |
4869 | ac_cv_use_help='wxUSE_HELP=no' | |
4870 | fi | |
698dcdb6 | 4871 | |
10f2d63a | 4872 | else |
698dcdb6 | 4873 | |
10f2d63a VZ |
4874 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` |
4875 | if test "x$LINE" != x ; then | |
4876 | eval "DEFAULT_$LINE" | |
4877 | else | |
4878 | no_cache=1 | |
4879 | fi | |
4880 | ||
4881 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
698dcdb6 VZ |
4882 | |
4883 | fi | |
10f2d63a VZ |
4884 | |
4885 | ||
4886 | eval "$ac_cv_use_help" | |
4887 | if test "$no_cache" != 1; then | |
4888 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
4889 | fi | |
4890 | ||
4891 | if test "$wxUSE_HELP" = yes; then | |
698dcdb6 | 4892 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4893 | else |
698dcdb6 | 4894 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4895 | fi |
698dcdb6 | 4896 | |
10f2d63a | 4897 | |
29fd3c0c | 4898 | echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6 |
321d2b14 | 4899 | echo "configure:4900: checking for --enable-mshtmlhelp" >&5 |
29fd3c0c VS |
4900 | no_cache=0 |
4901 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
4902 | if test "${enable_mshtmlhelp+set}" = set; then | |
4903 | enableval="$enable_mshtmlhelp" | |
4904 | ||
4905 | if test "$enableval" = yes; then | |
4906 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
4907 | else | |
4908 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
4909 | fi | |
4910 | ||
4911 | else | |
4912 | ||
4913 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` | |
4914 | if test "x$LINE" != x ; then | |
4915 | eval "DEFAULT_$LINE" | |
4916 | else | |
4917 | no_cache=1 | |
4918 | fi | |
4919 | ||
4920 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
4921 | ||
4922 | fi | |
4923 | ||
4924 | ||
4925 | eval "$ac_cv_use_mshtmlhelp" | |
4926 | if test "$no_cache" != 1; then | |
4927 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
4928 | fi | |
4929 | ||
4930 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
4931 | echo "$ac_t""yes" 1>&6 | |
4932 | else | |
4933 | echo "$ac_t""no" 1>&6 | |
4934 | fi | |
4935 | ||
4936 | ||
3379ed37 | 4937 | echo $ac_n "checking for --enable-html""... $ac_c" 1>&6 |
321d2b14 | 4938 | echo "configure:4939: checking for --enable-html" >&5 |
3379ed37 VZ |
4939 | no_cache=0 |
4940 | # Check whether --enable-html or --disable-html was given. | |
4941 | if test "${enable_html+set}" = set; then | |
4942 | enableval="$enable_html" | |
4943 | ||
4944 | if test "$enableval" = yes; then | |
4945 | ac_cv_use_html='wxUSE_HTML=yes' | |
4946 | else | |
4947 | ac_cv_use_html='wxUSE_HTML=no' | |
4948 | fi | |
4949 | ||
4950 | else | |
4951 | ||
4952 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
4953 | if test "x$LINE" != x ; then | |
4954 | eval "DEFAULT_$LINE" | |
4955 | else | |
4956 | no_cache=1 | |
4957 | fi | |
4958 | ||
4959 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
4960 | ||
4961 | fi | |
4962 | ||
4963 | ||
4964 | eval "$ac_cv_use_html" | |
4965 | if test "$no_cache" != 1; then | |
4966 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
4967 | fi | |
4968 | ||
4969 | if test "$wxUSE_HTML" = yes; then | |
4970 | echo "$ac_t""yes" 1>&6 | |
4971 | else | |
4972 | echo "$ac_t""no" 1>&6 | |
4973 | fi | |
4974 | ||
4975 | ||
4976 | echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6 | |
321d2b14 | 4977 | echo "configure:4978: checking for --enable-htmlhelp" >&5 |
3379ed37 VZ |
4978 | no_cache=0 |
4979 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
4980 | if test "${enable_htmlhelp+set}" = set; then | |
4981 | enableval="$enable_htmlhelp" | |
4982 | ||
4983 | if test "$enableval" = yes; then | |
4984 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
4985 | else | |
4986 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
4987 | fi | |
4988 | ||
4989 | else | |
4990 | ||
4991 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` | |
4992 | if test "x$LINE" != x ; then | |
4993 | eval "DEFAULT_$LINE" | |
4994 | else | |
4995 | no_cache=1 | |
4996 | fi | |
4997 | ||
4998 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
4999 | ||
5000 | fi | |
5001 | ||
5002 | ||
5003 | eval "$ac_cv_use_htmlhelp" | |
5004 | if test "$no_cache" != 1; then | |
5005 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
5006 | fi | |
5007 | ||
5008 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
5009 | echo "$ac_t""yes" 1>&6 | |
5010 | else | |
5011 | echo "$ac_t""no" 1>&6 | |
5012 | fi | |
5013 | ||
5014 | ||
698dcdb6 | 5015 | echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6 |
321d2b14 | 5016 | echo "configure:5017: checking for --enable-constraints" >&5 |
10f2d63a VZ |
5017 | no_cache=0 |
5018 | # Check whether --enable-constraints or --disable-constraints was given. | |
5019 | if test "${enable_constraints+set}" = set; then | |
5020 | enableval="$enable_constraints" | |
698dcdb6 | 5021 | |
10f2d63a VZ |
5022 | if test "$enableval" = yes; then |
5023 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
5024 | else | |
5025 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
5026 | fi | |
698dcdb6 | 5027 | |
10f2d63a | 5028 | else |
698dcdb6 | 5029 | |
10f2d63a VZ |
5030 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` |
5031 | if test "x$LINE" != x ; then | |
5032 | eval "DEFAULT_$LINE" | |
5033 | else | |
5034 | no_cache=1 | |
5035 | fi | |
5036 | ||
5037 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
698dcdb6 VZ |
5038 | |
5039 | fi | |
10f2d63a VZ |
5040 | |
5041 | ||
5042 | eval "$ac_cv_use_constraints" | |
5043 | if test "$no_cache" != 1; then | |
5044 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
5045 | fi | |
5046 | ||
5047 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
698dcdb6 | 5048 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5049 | else |
698dcdb6 | 5050 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5051 | fi |
698dcdb6 | 5052 | |
10f2d63a | 5053 | |
698dcdb6 | 5054 | echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6 |
321d2b14 | 5055 | echo "configure:5056: checking for --enable-printarch" >&5 |
10f2d63a VZ |
5056 | no_cache=0 |
5057 | # Check whether --enable-printarch or --disable-printarch was given. | |
5058 | if test "${enable_printarch+set}" = set; then | |
5059 | enableval="$enable_printarch" | |
698dcdb6 | 5060 | |
10f2d63a VZ |
5061 | if test "$enableval" = yes; then |
5062 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
5063 | else | |
5064 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
5065 | fi | |
698dcdb6 | 5066 | |
10f2d63a | 5067 | else |
698dcdb6 | 5068 | |
10f2d63a VZ |
5069 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` |
5070 | if test "x$LINE" != x ; then | |
5071 | eval "DEFAULT_$LINE" | |
5072 | else | |
5073 | no_cache=1 | |
5074 | fi | |
5075 | ||
5076 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
698dcdb6 VZ |
5077 | |
5078 | fi | |
10f2d63a VZ |
5079 | |
5080 | ||
5081 | eval "$ac_cv_use_printarch" | |
5082 | if test "$no_cache" != 1; then | |
5083 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
5084 | fi | |
5085 | ||
5086 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
698dcdb6 | 5087 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5088 | else |
698dcdb6 | 5089 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5090 | fi |
698dcdb6 | 5091 | |
10f2d63a | 5092 | |
698dcdb6 | 5093 | echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6 |
321d2b14 | 5094 | echo "configure:5095: checking for --enable-mdi" >&5 |
10f2d63a VZ |
5095 | no_cache=0 |
5096 | # Check whether --enable-mdi or --disable-mdi was given. | |
5097 | if test "${enable_mdi+set}" = set; then | |
5098 | enableval="$enable_mdi" | |
698dcdb6 | 5099 | |
10f2d63a VZ |
5100 | if test "$enableval" = yes; then |
5101 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
5102 | else | |
5103 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
5104 | fi | |
698dcdb6 | 5105 | |
10f2d63a | 5106 | else |
698dcdb6 | 5107 | |
10f2d63a VZ |
5108 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` |
5109 | if test "x$LINE" != x ; then | |
5110 | eval "DEFAULT_$LINE" | |
5111 | else | |
5112 | no_cache=1 | |
5113 | fi | |
5114 | ||
5115 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
698dcdb6 VZ |
5116 | |
5117 | fi | |
10f2d63a VZ |
5118 | |
5119 | ||
5120 | eval "$ac_cv_use_mdi" | |
5121 | if test "$no_cache" != 1; then | |
5122 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
5123 | fi | |
5124 | ||
5125 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
698dcdb6 | 5126 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5127 | else |
698dcdb6 | 5128 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5129 | fi |
698dcdb6 VZ |
5130 | |
5131 | ||
1e6feb95 | 5132 | echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6 |
321d2b14 | 5133 | echo "configure:5134: checking for --enable-loggui" >&5 |
1e6feb95 VZ |
5134 | no_cache=0 |
5135 | # Check whether --enable-loggui or --disable-loggui was given. | |
5136 | if test "${enable_loggui+set}" = set; then | |
5137 | enableval="$enable_loggui" | |
5138 | ||
5139 | if test "$enableval" = yes; then | |
5140 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
5141 | else | |
5142 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
5143 | fi | |
5144 | ||
5145 | else | |
5146 | ||
5147 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
5148 | if test "x$LINE" != x ; then | |
5149 | eval "DEFAULT_$LINE" | |
5150 | else | |
5151 | no_cache=1 | |
5152 | fi | |
5153 | ||
5154 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
5155 | ||
5156 | fi | |
5157 | ||
5158 | ||
5159 | eval "$ac_cv_use_loggui" | |
5160 | if test "$no_cache" != 1; then | |
5161 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
5162 | fi | |
5163 | ||
5164 | if test "$wxUSE_LOGGUI" = yes; then | |
5165 | echo "$ac_t""yes" 1>&6 | |
5166 | else | |
5167 | echo "$ac_t""no" 1>&6 | |
5168 | fi | |
5169 | ||
5170 | ||
5171 | echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6 | |
321d2b14 | 5172 | echo "configure:5173: checking for --enable-logwin" >&5 |
1e6feb95 VZ |
5173 | no_cache=0 |
5174 | # Check whether --enable-logwin or --disable-logwin was given. | |
5175 | if test "${enable_logwin+set}" = set; then | |
5176 | enableval="$enable_logwin" | |
5177 | ||
5178 | if test "$enableval" = yes; then | |
5179 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
5180 | else | |
5181 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
5182 | fi | |
5183 | ||
5184 | else | |
5185 | ||
5186 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` | |
5187 | if test "x$LINE" != x ; then | |
5188 | eval "DEFAULT_$LINE" | |
5189 | else | |
5190 | no_cache=1 | |
5191 | fi | |
5192 | ||
5193 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
5194 | ||
5195 | fi | |
5196 | ||
5197 | ||
5198 | eval "$ac_cv_use_logwin" | |
5199 | if test "$no_cache" != 1; then | |
5200 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
5201 | fi | |
5202 | ||
5203 | if test "$wxUSE_LOGWINDOW" = yes; then | |
5204 | echo "$ac_t""yes" 1>&6 | |
5205 | else | |
5206 | echo "$ac_t""no" 1>&6 | |
5207 | fi | |
5208 | ||
5209 | ||
69d27ff7 | 5210 | echo $ac_n "checking for --enable-logdialog""... $ac_c" 1>&6 |
321d2b14 | 5211 | echo "configure:5212: checking for --enable-logdialog" >&5 |
69d27ff7 MB |
5212 | no_cache=0 |
5213 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
5214 | if test "${enable_logdialog+set}" = set; then | |
5215 | enableval="$enable_logdialog" | |
5216 | ||
5217 | if test "$enableval" = yes; then | |
5218 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
5219 | else | |
5220 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
5221 | fi | |
5222 | ||
5223 | else | |
5224 | ||
5225 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` | |
5226 | if test "x$LINE" != x ; then | |
5227 | eval "DEFAULT_$LINE" | |
5228 | else | |
5229 | no_cache=1 | |
5230 | fi | |
5231 | ||
5232 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
5233 | ||
5234 | fi | |
5235 | ||
5236 | ||
5237 | eval "$ac_cv_use_logdialog" | |
5238 | if test "$no_cache" != 1; then | |
5239 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
5240 | fi | |
5241 | ||
5242 | if test "$wxUSE_LOGDIALOG" = yes; then | |
5243 | echo "$ac_t""yes" 1>&6 | |
5244 | else | |
5245 | echo "$ac_t""no" 1>&6 | |
5246 | fi | |
5247 | ||
5248 | ||
10f2d63a | 5249 | |
698dcdb6 | 5250 | echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6 |
321d2b14 | 5251 | echo "configure:5252: checking for --enable-postscript" >&5 |
10f2d63a VZ |
5252 | no_cache=0 |
5253 | # Check whether --enable-postscript or --disable-postscript was given. | |
5254 | if test "${enable_postscript+set}" = set; then | |
5255 | enableval="$enable_postscript" | |
698dcdb6 | 5256 | |
10f2d63a VZ |
5257 | if test "$enableval" = yes; then |
5258 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
5259 | else | |
5260 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
5261 | fi | |
698dcdb6 | 5262 | |
10f2d63a | 5263 | else |
698dcdb6 | 5264 | |
10f2d63a VZ |
5265 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` |
5266 | if test "x$LINE" != x ; then | |
5267 | eval "DEFAULT_$LINE" | |
5268 | else | |
5269 | no_cache=1 | |
5270 | fi | |
5271 | ||
5272 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
698dcdb6 VZ |
5273 | |
5274 | fi | |
10f2d63a VZ |
5275 | |
5276 | ||
5277 | eval "$ac_cv_use_postscript" | |
5278 | if test "$no_cache" != 1; then | |
5279 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
5280 | fi | |
5281 | ||
5282 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
698dcdb6 | 5283 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5284 | else |
698dcdb6 | 5285 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5286 | fi |
698dcdb6 VZ |
5287 | |
5288 | ||
5289 | ||
10f2d63a | 5290 | |
1e6feb95 | 5291 | |
698dcdb6 | 5292 | echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6 |
321d2b14 | 5293 | echo "configure:5294: checking for --enable-prologio" >&5 |
10f2d63a VZ |
5294 | no_cache=0 |
5295 | # Check whether --enable-prologio or --disable-prologio was given. | |
5296 | if test "${enable_prologio+set}" = set; then | |
5297 | enableval="$enable_prologio" | |
698dcdb6 | 5298 | |
10f2d63a VZ |
5299 | if test "$enableval" = yes; then |
5300 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
5301 | else | |
5302 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
5303 | fi | |
698dcdb6 | 5304 | |
10f2d63a | 5305 | else |
698dcdb6 | 5306 | |
10f2d63a VZ |
5307 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` |
5308 | if test "x$LINE" != x ; then | |
5309 | eval "DEFAULT_$LINE" | |
5310 | else | |
5311 | no_cache=1 | |
5312 | fi | |
5313 | ||
5314 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
698dcdb6 VZ |
5315 | |
5316 | fi | |
10f2d63a VZ |
5317 | |
5318 | ||
5319 | eval "$ac_cv_use_prologio" | |
5320 | if test "$no_cache" != 1; then | |
5321 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
5322 | fi | |
5323 | ||
5324 | if test "$wxUSE_PROLOGIO" = yes; then | |
698dcdb6 | 5325 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5326 | else |
698dcdb6 | 5327 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5328 | fi |
698dcdb6 | 5329 | |
10f2d63a | 5330 | |
698dcdb6 | 5331 | echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6 |
321d2b14 | 5332 | echo "configure:5333: checking for --enable-resources" >&5 |
10f2d63a VZ |
5333 | no_cache=0 |
5334 | # Check whether --enable-resources or --disable-resources was given. | |
5335 | if test "${enable_resources+set}" = set; then | |
5336 | enableval="$enable_resources" | |
698dcdb6 | 5337 | |
10f2d63a VZ |
5338 | if test "$enableval" = yes; then |
5339 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
5340 | else | |
5341 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
5342 | fi | |
698dcdb6 | 5343 | |
10f2d63a | 5344 | else |
698dcdb6 | 5345 | |
10f2d63a VZ |
5346 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` |
5347 | if test "x$LINE" != x ; then | |
5348 | eval "DEFAULT_$LINE" | |
5349 | else | |
5350 | no_cache=1 | |
5351 | fi | |
5352 | ||
5353 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
698dcdb6 VZ |
5354 | |
5355 | fi | |
10f2d63a VZ |
5356 | |
5357 | ||
5358 | eval "$ac_cv_use_resources" | |
5359 | if test "$no_cache" != 1; then | |
5360 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
5361 | fi | |
5362 | ||
5363 | if test "$wxUSE_RESOURCES" = yes; then | |
698dcdb6 | 5364 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5365 | else |
698dcdb6 | 5366 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5367 | fi |
698dcdb6 | 5368 | |
10f2d63a | 5369 | |
698dcdb6 VZ |
5370 | |
5371 | echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6 | |
321d2b14 | 5372 | echo "configure:5373: checking for --enable-xresources" >&5 |
10f2d63a VZ |
5373 | no_cache=0 |
5374 | # Check whether --enable-xresources or --disable-xresources was given. | |
5375 | if test "${enable_xresources+set}" = set; then | |
5376 | enableval="$enable_xresources" | |
698dcdb6 | 5377 | |
10f2d63a VZ |
5378 | if test "$enableval" = yes; then |
5379 | ac_cv_use_xresources='wxUSE_X_RESOURCES=yes' | |
5380 | else | |
5381 | ac_cv_use_xresources='wxUSE_X_RESOURCES=no' | |
5382 | fi | |
698dcdb6 | 5383 | |
10f2d63a | 5384 | else |
698dcdb6 | 5385 | |
10f2d63a VZ |
5386 | LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}` |
5387 | if test "x$LINE" != x ; then | |
5388 | eval "DEFAULT_$LINE" | |
5389 | else | |
5390 | no_cache=1 | |
5391 | fi | |
5392 | ||
5393 | ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES | |
698dcdb6 VZ |
5394 | |
5395 | fi | |
10f2d63a VZ |
5396 | |
5397 | ||
5398 | eval "$ac_cv_use_xresources" | |
5399 | if test "$no_cache" != 1; then | |
5400 | echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp | |
5401 | fi | |
5402 | ||
5403 | if test "$wxUSE_X_RESOURCES" = yes; then | |
698dcdb6 | 5404 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5405 | else |
698dcdb6 | 5406 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5407 | fi |
698dcdb6 VZ |
5408 | |
5409 | ||
10f2d63a | 5410 | |
698dcdb6 VZ |
5411 | |
5412 | echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6 | |
321d2b14 | 5413 | echo "configure:5414: checking for --enable-clipboard" >&5 |
10f2d63a VZ |
5414 | no_cache=0 |
5415 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
5416 | if test "${enable_clipboard+set}" = set; then | |
5417 | enableval="$enable_clipboard" | |
698dcdb6 | 5418 | |
10f2d63a VZ |
5419 | if test "$enableval" = yes; then |
5420 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
5421 | else | |
5422 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
5423 | fi | |
698dcdb6 | 5424 | |
10f2d63a | 5425 | else |
698dcdb6 | 5426 | |
10f2d63a VZ |
5427 | LINE=`grep "wxUSE_CLIPBOARD" ${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_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
698dcdb6 VZ |
5435 | |
5436 | fi | |
10f2d63a VZ |
5437 | |
5438 | ||
5439 | eval "$ac_cv_use_clipboard" | |
5440 | if test "$no_cache" != 1; then | |
5441 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
5442 | fi | |
5443 | ||
5444 | if test "$wxUSE_CLIPBOARD" = 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 | 5451 | echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6 |
321d2b14 | 5452 | echo "configure:5453: checking for --enable-dnd" >&5 |
10f2d63a VZ |
5453 | no_cache=0 |
5454 | # Check whether --enable-dnd or --disable-dnd was given. | |
5455 | if test "${enable_dnd+set}" = set; then | |
5456 | enableval="$enable_dnd" | |
698dcdb6 | 5457 | |
10f2d63a VZ |
5458 | if test "$enableval" = yes; then |
5459 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
5460 | else | |
5461 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
5462 | fi | |
698dcdb6 | 5463 | |
10f2d63a | 5464 | else |
698dcdb6 | 5465 | |
10f2d63a VZ |
5466 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${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_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
698dcdb6 VZ |
5474 | |
5475 | fi | |
10f2d63a VZ |
5476 | |
5477 | ||
5478 | eval "$ac_cv_use_dnd" | |
5479 | if test "$no_cache" != 1; then | |
5480 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
5481 | fi | |
5482 | ||
5483 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
698dcdb6 | 5484 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5485 | else |
698dcdb6 | 5486 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5487 | fi |
698dcdb6 | 5488 | |
10f2d63a | 5489 | |
698dcdb6 | 5490 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
321d2b14 | 5491 | echo "configure:5492: checking for --enable-metafile" >&5 |
b64f0a5f RL |
5492 | no_cache=0 |
5493 | # Check whether --enable-metafile or --disable-metafile was given. | |
5494 | if test "${enable_metafile+set}" = set; then | |
5495 | enableval="$enable_metafile" | |
698dcdb6 | 5496 | |
b64f0a5f RL |
5497 | if test "$enableval" = yes; then |
5498 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
5499 | else | |
5500 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
5501 | fi | |
698dcdb6 | 5502 | |
b64f0a5f | 5503 | else |
698dcdb6 | 5504 | |
b64f0a5f RL |
5505 | LINE=`grep "wxUSE_METAFILE" ${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_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
698dcdb6 VZ |
5513 | |
5514 | fi | |
b64f0a5f RL |
5515 | |
5516 | ||
5517 | eval "$ac_cv_use_metafile" | |
5518 | if test "$no_cache" != 1; then | |
5519 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
5520 | fi | |
5521 | ||
5522 | if test "$wxUSE_METAFILE" = yes; then | |
698dcdb6 | 5523 | echo "$ac_t""yes" 1>&6 |
b64f0a5f | 5524 | else |
698dcdb6 | 5525 | echo "$ac_t""no" 1>&6 |
b64f0a5f | 5526 | fi |
698dcdb6 VZ |
5527 | |
5528 | ||
10f2d63a | 5529 | |
24176f2c | 5530 | echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6 |
321d2b14 | 5531 | echo "configure:5532: checking for --enable-treelayout" >&5 |
10f2d63a | 5532 | no_cache=0 |
24176f2c GD |
5533 | # Check whether --enable-treelayout or --disable-treelayout was given. |
5534 | if test "${enable_treelayout+set}" = set; then | |
5535 | enableval="$enable_treelayout" | |
698dcdb6 | 5536 | |
10f2d63a | 5537 | if test "$enableval" = yes; then |
24176f2c | 5538 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes' |
10f2d63a | 5539 | else |
24176f2c | 5540 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=no' |
10f2d63a | 5541 | fi |
698dcdb6 | 5542 | |
10f2d63a | 5543 | else |
698dcdb6 | 5544 | |
24176f2c | 5545 | LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}` |
10f2d63a VZ |
5546 | if test "x$LINE" != x ; then |
5547 | eval "DEFAULT_$LINE" | |
5548 | else | |
5549 | no_cache=1 | |
5550 | fi | |
5551 | ||
24176f2c | 5552 | ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT |
698dcdb6 VZ |
5553 | |
5554 | fi | |
10f2d63a VZ |
5555 | |
5556 | ||
24176f2c | 5557 | eval "$ac_cv_use_treelayout" |
10f2d63a | 5558 | if test "$no_cache" != 1; then |
24176f2c | 5559 | echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5560 | fi |
5561 | ||
24176f2c | 5562 | if test "$wxUSE_TREELAYOUT" = yes; then |
698dcdb6 | 5563 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5564 | else |
698dcdb6 | 5565 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5566 | fi |
698dcdb6 | 5567 | |
10f2d63a | 5568 | |
698dcdb6 VZ |
5569 | |
5570 | ||
5571 | echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6 | |
321d2b14 | 5572 | echo "configure:5573: checking for --enable-controls" >&5 |
10f2d63a VZ |
5573 | no_cache=0 |
5574 | # Check whether --enable-controls or --disable-controls was given. | |
5575 | if test "${enable_controls+set}" = set; then | |
5576 | enableval="$enable_controls" | |
698dcdb6 | 5577 | |
10f2d63a VZ |
5578 | if test "$enableval" = yes; then |
5579 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
5580 | else | |
5581 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
5582 | fi | |
698dcdb6 | 5583 | |
10f2d63a | 5584 | else |
698dcdb6 | 5585 | |
10f2d63a VZ |
5586 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` |
5587 | if test "x$LINE" != x ; then | |
5588 | eval "DEFAULT_$LINE" | |
5589 | else | |
5590 | no_cache=1 | |
5591 | fi | |
5592 | ||
5593 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
698dcdb6 VZ |
5594 | |
5595 | fi | |
10f2d63a VZ |
5596 | |
5597 | ||
5598 | eval "$ac_cv_use_controls" | |
5599 | if test "$no_cache" != 1; then | |
5600 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
5601 | fi | |
5602 | ||
5603 | if test "$wxUSE_CONTROLS" = yes; then | |
698dcdb6 | 5604 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5605 | else |
698dcdb6 | 5606 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5607 | fi |
698dcdb6 | 5608 | |
10f2d63a VZ |
5609 | |
5610 | if test "$wxUSE_CONTROLS" = "yes"; then | |
5611 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 VZ |
5612 | DEFAULT_wxUSE_BMPBUTTON=yes |
5613 | DEFAULT_wxUSE_BUTTON=yes | |
5614 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5615 | DEFAULT_wxUSE_CARET=yes |
5616 | DEFAULT_wxUSE_COMBOBOX=yes | |
10f2d63a VZ |
5617 | DEFAULT_wxUSE_CHECKBOX=yes |
5618 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
5619 | DEFAULT_wxUSE_CHOICE=yes | |
5620 | DEFAULT_wxUSE_GAUGE=yes | |
5621 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 5622 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
5623 | DEFAULT_wxUSE_IMAGLIST=yes |
5624 | DEFAULT_wxUSE_LISTBOX=yes | |
5625 | DEFAULT_wxUSE_LISTCTRL=yes | |
5626 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 5627 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
5628 | DEFAULT_wxUSE_RADIOBOX=yes |
5629 | DEFAULT_wxUSE_RADIOBTN=yes | |
5630 | DEFAULT_wxUSE_SASH=yes | |
5631 | DEFAULT_wxUSE_SCROLLBAR=yes | |
5632 | DEFAULT_wxUSE_SLIDER=yes | |
5633 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 5634 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
5635 | DEFAULT_wxUSE_SPLITTER=yes |
5636 | DEFAULT_wxUSE_STATBMP=yes | |
5637 | DEFAULT_wxUSE_STATBOX=yes | |
5638 | DEFAULT_wxUSE_STATLINE=yes | |
5639 | DEFAULT_wxUSE_STATUSBAR=yes | |
5640 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
1db8dc4a | 5641 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 5642 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
5643 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
5644 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
5645 | DEFAULT_wxUSE_TOOLTIPS=yes |
5646 | DEFAULT_wxUSE_TREECTRL=yes | |
9f41d601 | 5647 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 5648 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
5649 | elif test "$wxUSE_CONTROLS" = "no"; then |
5650 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 VZ |
5651 | DEFAULT_wxUSE_BMPBUTTON=no |
5652 | DEFAULT_wxUSE_BUTTON=no | |
5653 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5654 | DEFAULT_wxUSE_CARET=no |
5655 | DEFAULT_wxUSE_COMBOBOX=no | |
10f2d63a VZ |
5656 | DEFAULT_wxUSE_CHECKBOX=no |
5657 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
5658 | DEFAULT_wxUSE_CHOICE=no | |
5659 | DEFAULT_wxUSE_GAUGE=no | |
5660 | DEFAULT_wxUSE_GRID=no | |
5661 | DEFAULT_wxUSE_NEW_GRID=no | |
5662 | DEFAULT_wxUSE_IMAGLIST=no | |
5663 | DEFAULT_wxUSE_LISTBOX=no | |
5664 | DEFAULT_wxUSE_LISTCTRL=no | |
5665 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 5666 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
5667 | DEFAULT_wxUSE_RADIOBOX=no |
5668 | DEFAULT_wxUSE_RADIOBTN=no | |
5669 | DEFAULT_wxUSE_SASH=no | |
5670 | DEFAULT_wxUSE_SCROLLBAR=no | |
5671 | DEFAULT_wxUSE_SLIDER=no | |
5672 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 5673 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
5674 | DEFAULT_wxUSE_SPLITTER=no |
5675 | DEFAULT_wxUSE_STATBMP=no | |
5676 | DEFAULT_wxUSE_STATBOX=no | |
5677 | DEFAULT_wxUSE_STATLINE=no | |
5678 | DEFAULT_wxUSE_STATUSBAR=no | |
5679 | DEFAULT_wxUSE_TAB_DIALOG=no | |
1db8dc4a | 5680 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 5681 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
5682 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
5683 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
5684 | DEFAULT_wxUSE_TOOLTIPS=no |
5685 | DEFAULT_wxUSE_TREECTRL=no | |
9f41d601 | 5686 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 5687 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
5688 | fi |
5689 | ||
698dcdb6 VZ |
5690 | |
5691 | echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6 | |
321d2b14 | 5692 | echo "configure:5693: checking for --enable-accel" >&5 |
10f2d63a VZ |
5693 | no_cache=0 |
5694 | # Check whether --enable-accel or --disable-accel was given. | |
5695 | if test "${enable_accel+set}" = set; then | |
5696 | enableval="$enable_accel" | |
698dcdb6 | 5697 | |
10f2d63a VZ |
5698 | if test "$enableval" = yes; then |
5699 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
5700 | else | |
5701 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
5702 | fi | |
698dcdb6 | 5703 | |
10f2d63a | 5704 | else |
698dcdb6 | 5705 | |
10f2d63a VZ |
5706 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` |
5707 | if test "x$LINE" != x ; then | |
5708 | eval "DEFAULT_$LINE" | |
5709 | else | |
5710 | no_cache=1 | |
5711 | fi | |
5712 | ||
5713 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
698dcdb6 VZ |
5714 | |
5715 | fi | |
10f2d63a VZ |
5716 | |
5717 | ||
5718 | eval "$ac_cv_use_accel" | |
5719 | if test "$no_cache" != 1; then | |
5720 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
5721 | fi | |
5722 | ||
5723 | if test "$wxUSE_ACCEL" = yes; then | |
698dcdb6 | 5724 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5725 | else |
698dcdb6 | 5726 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5727 | fi |
698dcdb6 | 5728 | |
10f2d63a | 5729 | |
1e6feb95 | 5730 | echo $ac_n "checking for --enable-button""... $ac_c" 1>&6 |
321d2b14 | 5731 | echo "configure:5732: checking for --enable-button" >&5 |
10f2d63a | 5732 | no_cache=0 |
1e6feb95 VZ |
5733 | # Check whether --enable-button or --disable-button was given. |
5734 | if test "${enable_button+set}" = set; then | |
5735 | enableval="$enable_button" | |
698dcdb6 | 5736 | |
10f2d63a | 5737 | if test "$enableval" = yes; then |
1e6feb95 | 5738 | ac_cv_use_button='wxUSE_BUTTON=yes' |
10f2d63a | 5739 | else |
1e6feb95 | 5740 | ac_cv_use_button='wxUSE_BUTTON=no' |
10f2d63a | 5741 | fi |
698dcdb6 | 5742 | |
10f2d63a | 5743 | else |
698dcdb6 | 5744 | |
1e6feb95 | 5745 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` |
10f2d63a VZ |
5746 | if test "x$LINE" != x ; then |
5747 | eval "DEFAULT_$LINE" | |
5748 | else | |
5749 | no_cache=1 | |
5750 | fi | |
5751 | ||
1e6feb95 | 5752 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON |
698dcdb6 VZ |
5753 | |
5754 | fi | |
10f2d63a VZ |
5755 | |
5756 | ||
1e6feb95 | 5757 | eval "$ac_cv_use_button" |
10f2d63a | 5758 | if test "$no_cache" != 1; then |
1e6feb95 | 5759 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5760 | fi |
5761 | ||
1e6feb95 | 5762 | if test "$wxUSE_BUTTON" = yes; then |
698dcdb6 | 5763 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5764 | else |
698dcdb6 | 5765 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5766 | fi |
698dcdb6 | 5767 | |
10f2d63a | 5768 | |
698dcdb6 | 5769 | echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6 |
321d2b14 | 5770 | echo "configure:5771: checking for --enable-bmpbutton" >&5 |
10f2d63a VZ |
5771 | no_cache=0 |
5772 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
5773 | if test "${enable_bmpbutton+set}" = set; then | |
5774 | enableval="$enable_bmpbutton" | |
698dcdb6 | 5775 | |
10f2d63a VZ |
5776 | if test "$enableval" = yes; then |
5777 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
5778 | else | |
5779 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
5780 | fi | |
698dcdb6 | 5781 | |
10f2d63a | 5782 | else |
698dcdb6 | 5783 | |
10f2d63a VZ |
5784 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` |
5785 | if test "x$LINE" != x ; then | |
5786 | eval "DEFAULT_$LINE" | |
5787 | else | |
5788 | no_cache=1 | |
5789 | fi | |
5790 | ||
5791 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
698dcdb6 VZ |
5792 | |
5793 | fi | |
10f2d63a VZ |
5794 | |
5795 | ||
5796 | eval "$ac_cv_use_bmpbutton" | |
5797 | if test "$no_cache" != 1; then | |
5798 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
5799 | fi | |
5800 | ||
5801 | if test "$wxUSE_BMPBUTTON" = yes; then | |
698dcdb6 | 5802 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5803 | else |
698dcdb6 | 5804 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5805 | fi |
698dcdb6 | 5806 | |
10f2d63a | 5807 | |
1e6feb95 | 5808 | echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6 |
321d2b14 | 5809 | echo "configure:5810: checking for --enable-calendar" >&5 |
1e6feb95 VZ |
5810 | no_cache=0 |
5811 | # Check whether --enable-calendar or --disable-calendar was given. | |
5812 | if test "${enable_calendar+set}" = set; then | |
5813 | enableval="$enable_calendar" | |
5814 | ||
5815 | if test "$enableval" = yes; then | |
5816 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
5817 | else | |
5818 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
5819 | fi | |
5820 | ||
5821 | else | |
5822 | ||
5823 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
5824 | if test "x$LINE" != x ; then | |
5825 | eval "DEFAULT_$LINE" | |
5826 | else | |
5827 | no_cache=1 | |
5828 | fi | |
5829 | ||
5830 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
5831 | ||
5832 | fi | |
5833 | ||
5834 | ||
5835 | eval "$ac_cv_use_calendar" | |
5836 | if test "$no_cache" != 1; then | |
5837 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
5838 | fi | |
5839 | ||
5840 | if test "$wxUSE_CALCTRL" = yes; then | |
5841 | echo "$ac_t""yes" 1>&6 | |
5842 | else | |
5843 | echo "$ac_t""no" 1>&6 | |
5844 | fi | |
5845 | ||
5846 | ||
5847 | echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6 | |
321d2b14 | 5848 | echo "configure:5849: checking for --enable-caret" >&5 |
1e6feb95 VZ |
5849 | no_cache=0 |
5850 | # Check whether --enable-caret or --disable-caret was given. | |
5851 | if test "${enable_caret+set}" = set; then | |
5852 | enableval="$enable_caret" | |
5853 | ||
5854 | if test "$enableval" = yes; then | |
5855 | ac_cv_use_caret='wxUSE_CARET=yes' | |
5856 | else | |
5857 | ac_cv_use_caret='wxUSE_CARET=no' | |
5858 | fi | |
5859 | ||
5860 | else | |
5861 | ||
5862 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
5863 | if test "x$LINE" != x ; then | |
5864 | eval "DEFAULT_$LINE" | |
5865 | else | |
5866 | no_cache=1 | |
5867 | fi | |
5868 | ||
5869 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
5870 | ||
5871 | fi | |
5872 | ||
5873 | ||
5874 | eval "$ac_cv_use_caret" | |
5875 | if test "$no_cache" != 1; then | |
5876 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
5877 | fi | |
5878 | ||
5879 | if test "$wxUSE_CARET" = yes; then | |
5880 | echo "$ac_t""yes" 1>&6 | |
5881 | else | |
5882 | echo "$ac_t""no" 1>&6 | |
5883 | fi | |
5884 | ||
5885 | ||
698dcdb6 | 5886 | echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6 |
321d2b14 | 5887 | echo "configure:5888: checking for --enable-checkbox" >&5 |
10f2d63a VZ |
5888 | no_cache=0 |
5889 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
5890 | if test "${enable_checkbox+set}" = set; then | |
5891 | enableval="$enable_checkbox" | |
698dcdb6 | 5892 | |
10f2d63a VZ |
5893 | if test "$enableval" = yes; then |
5894 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
5895 | else | |
5896 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
5897 | fi | |
698dcdb6 | 5898 | |
10f2d63a | 5899 | else |
698dcdb6 | 5900 | |
10f2d63a VZ |
5901 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` |
5902 | if test "x$LINE" != x ; then | |
5903 | eval "DEFAULT_$LINE" | |
5904 | else | |
5905 | no_cache=1 | |
5906 | fi | |
5907 | ||
5908 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
698dcdb6 VZ |
5909 | |
5910 | fi | |
10f2d63a VZ |
5911 | |
5912 | ||
5913 | eval "$ac_cv_use_checkbox" | |
5914 | if test "$no_cache" != 1; then | |
5915 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
5916 | fi | |
5917 | ||
5918 | if test "$wxUSE_CHECKBOX" = yes; then | |
698dcdb6 | 5919 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5920 | else |
698dcdb6 | 5921 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5922 | fi |
698dcdb6 | 5923 | |
10f2d63a | 5924 | |
698dcdb6 | 5925 | echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6 |
321d2b14 | 5926 | echo "configure:5927: checking for --enable-checklst" >&5 |
10f2d63a VZ |
5927 | no_cache=0 |
5928 | # Check whether --enable-checklst or --disable-checklst was given. | |
5929 | if test "${enable_checklst+set}" = set; then | |
5930 | enableval="$enable_checklst" | |
698dcdb6 | 5931 | |
10f2d63a VZ |
5932 | if test "$enableval" = yes; then |
5933 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
5934 | else | |
5935 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
5936 | fi | |
698dcdb6 | 5937 | |
10f2d63a | 5938 | else |
698dcdb6 | 5939 | |
10f2d63a VZ |
5940 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` |
5941 | if test "x$LINE" != x ; then | |
5942 | eval "DEFAULT_$LINE" | |
5943 | else | |
5944 | no_cache=1 | |
5945 | fi | |
5946 | ||
5947 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
698dcdb6 VZ |
5948 | |
5949 | fi | |
10f2d63a VZ |
5950 | |
5951 | ||
5952 | eval "$ac_cv_use_checklst" | |
5953 | if test "$no_cache" != 1; then | |
5954 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
5955 | fi | |
5956 | ||
5957 | if test "$wxUSE_CHECKLST" = yes; then | |
698dcdb6 | 5958 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5959 | else |
698dcdb6 | 5960 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5961 | fi |
698dcdb6 | 5962 | |
10f2d63a | 5963 | |
698dcdb6 | 5964 | echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6 |
321d2b14 | 5965 | echo "configure:5966: checking for --enable-choice" >&5 |
10f2d63a VZ |
5966 | no_cache=0 |
5967 | # Check whether --enable-choice or --disable-choice was given. | |
5968 | if test "${enable_choice+set}" = set; then | |
5969 | enableval="$enable_choice" | |
698dcdb6 | 5970 | |
10f2d63a VZ |
5971 | if test "$enableval" = yes; then |
5972 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
5973 | else | |
5974 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
5975 | fi | |
698dcdb6 | 5976 | |
10f2d63a | 5977 | else |
698dcdb6 | 5978 | |
10f2d63a VZ |
5979 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` |
5980 | if test "x$LINE" != x ; then | |
5981 | eval "DEFAULT_$LINE" | |
5982 | else | |
5983 | no_cache=1 | |
5984 | fi | |
5985 | ||
5986 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
698dcdb6 VZ |
5987 | |
5988 | fi | |
10f2d63a VZ |
5989 | |
5990 | ||
5991 | eval "$ac_cv_use_choice" | |
5992 | if test "$no_cache" != 1; then | |
5993 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
5994 | fi | |
5995 | ||
5996 | if test "$wxUSE_CHOICE" = yes; then | |
698dcdb6 | 5997 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5998 | else |
698dcdb6 | 5999 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6000 | fi |
698dcdb6 | 6001 | |
10f2d63a | 6002 | |
698dcdb6 | 6003 | echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6 |
321d2b14 | 6004 | echo "configure:6005: checking for --enable-combobox" >&5 |
10f2d63a VZ |
6005 | no_cache=0 |
6006 | # Check whether --enable-combobox or --disable-combobox was given. | |
6007 | if test "${enable_combobox+set}" = set; then | |
6008 | enableval="$enable_combobox" | |
698dcdb6 | 6009 | |
10f2d63a VZ |
6010 | if test "$enableval" = yes; then |
6011 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
6012 | else | |
6013 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
6014 | fi | |
698dcdb6 | 6015 | |
10f2d63a | 6016 | else |
698dcdb6 | 6017 | |
10f2d63a VZ |
6018 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` |
6019 | if test "x$LINE" != x ; then | |
6020 | eval "DEFAULT_$LINE" | |
6021 | else | |
6022 | no_cache=1 | |
6023 | fi | |
6024 | ||
6025 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
698dcdb6 VZ |
6026 | |
6027 | fi | |
10f2d63a VZ |
6028 | |
6029 | ||
6030 | eval "$ac_cv_use_combobox" | |
6031 | if test "$no_cache" != 1; then | |
6032 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
6033 | fi | |
6034 | ||
6035 | if test "$wxUSE_COMBOBOX" = yes; then | |
698dcdb6 | 6036 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6037 | else |
698dcdb6 | 6038 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6039 | fi |
698dcdb6 | 6040 | |
10f2d63a | 6041 | |
698dcdb6 | 6042 | echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6 |
321d2b14 | 6043 | echo "configure:6044: checking for --enable-gauge" >&5 |
10f2d63a VZ |
6044 | no_cache=0 |
6045 | # Check whether --enable-gauge or --disable-gauge was given. | |
6046 | if test "${enable_gauge+set}" = set; then | |
6047 | enableval="$enable_gauge" | |
698dcdb6 | 6048 | |
10f2d63a VZ |
6049 | if test "$enableval" = yes; then |
6050 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
6051 | else | |
6052 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
6053 | fi | |
698dcdb6 | 6054 | |
10f2d63a | 6055 | else |
698dcdb6 | 6056 | |
10f2d63a VZ |
6057 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` |
6058 | if test "x$LINE" != x ; then | |
6059 | eval "DEFAULT_$LINE" | |
6060 | else | |
6061 | no_cache=1 | |
6062 | fi | |
6063 | ||
6064 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
698dcdb6 VZ |
6065 | |
6066 | fi | |
10f2d63a VZ |
6067 | |
6068 | ||
6069 | eval "$ac_cv_use_gauge" | |
6070 | if test "$no_cache" != 1; then | |
6071 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
6072 | fi | |
6073 | ||
6074 | if test "$wxUSE_GAUGE" = yes; then | |
698dcdb6 | 6075 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6076 | else |
698dcdb6 | 6077 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6078 | fi |
698dcdb6 | 6079 | |
10f2d63a | 6080 | |
698dcdb6 | 6081 | echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6 |
321d2b14 | 6082 | echo "configure:6083: checking for --enable-grid" >&5 |
10f2d63a VZ |
6083 | no_cache=0 |
6084 | # Check whether --enable-grid or --disable-grid was given. | |
6085 | if test "${enable_grid+set}" = set; then | |
6086 | enableval="$enable_grid" | |
698dcdb6 | 6087 | |
10f2d63a VZ |
6088 | if test "$enableval" = yes; then |
6089 | ac_cv_use_grid='wxUSE_GRID=yes' | |
6090 | else | |
6091 | ac_cv_use_grid='wxUSE_GRID=no' | |
6092 | fi | |
698dcdb6 | 6093 | |
10f2d63a | 6094 | else |
698dcdb6 | 6095 | |
10f2d63a VZ |
6096 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` |
6097 | if test "x$LINE" != x ; then | |
6098 | eval "DEFAULT_$LINE" | |
6099 | else | |
6100 | no_cache=1 | |
6101 | fi | |
6102 | ||
6103 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
698dcdb6 VZ |
6104 | |
6105 | fi | |
10f2d63a VZ |
6106 | |
6107 | ||
6108 | eval "$ac_cv_use_grid" | |
6109 | if test "$no_cache" != 1; then | |
6110 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
6111 | fi | |
6112 | ||
6113 | if test "$wxUSE_GRID" = yes; then | |
698dcdb6 | 6114 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6115 | else |
698dcdb6 | 6116 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6117 | fi |
698dcdb6 | 6118 | |
10f2d63a | 6119 | |
698dcdb6 | 6120 | echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6 |
321d2b14 | 6121 | echo "configure:6122: checking for --enable-newgrid" >&5 |
10f2d63a VZ |
6122 | no_cache=0 |
6123 | # Check whether --enable-newgrid or --disable-newgrid was given. | |
6124 | if test "${enable_newgrid+set}" = set; then | |
6125 | enableval="$enable_newgrid" | |
698dcdb6 | 6126 | |
10f2d63a VZ |
6127 | if test "$enableval" = yes; then |
6128 | ac_cv_use_newgrid='wxUSE_NEW_GRID=yes' | |
6129 | else | |
6130 | ac_cv_use_newgrid='wxUSE_NEW_GRID=no' | |
6131 | fi | |
698dcdb6 | 6132 | |
10f2d63a | 6133 | else |
698dcdb6 | 6134 | |
10f2d63a VZ |
6135 | LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}` |
6136 | if test "x$LINE" != x ; then | |
6137 | eval "DEFAULT_$LINE" | |
6138 | else | |
6139 | no_cache=1 | |
6140 | fi | |
6141 | ||
6142 | ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID | |
698dcdb6 VZ |
6143 | |
6144 | fi | |
10f2d63a VZ |
6145 | |
6146 | ||
6147 | eval "$ac_cv_use_newgrid" | |
6148 | if test "$no_cache" != 1; then | |
6149 | echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp | |
6150 | fi | |
6151 | ||
6152 | if test "$wxUSE_NEW_GRID" = yes; then | |
698dcdb6 | 6153 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6154 | else |
698dcdb6 | 6155 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6156 | fi |
698dcdb6 | 6157 | |
10f2d63a | 6158 | |
698dcdb6 | 6159 | echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6 |
321d2b14 | 6160 | echo "configure:6161: checking for --enable-imaglist" >&5 |
10f2d63a VZ |
6161 | no_cache=0 |
6162 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
6163 | if test "${enable_imaglist+set}" = set; then | |
6164 | enableval="$enable_imaglist" | |
698dcdb6 | 6165 | |
10f2d63a VZ |
6166 | if test "$enableval" = yes; then |
6167 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
6168 | else | |
6169 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
6170 | fi | |
698dcdb6 | 6171 | |
10f2d63a | 6172 | else |
698dcdb6 | 6173 | |
10f2d63a VZ |
6174 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` |
6175 | if test "x$LINE" != x ; then | |
6176 | eval "DEFAULT_$LINE" | |
6177 | else | |
6178 | no_cache=1 | |
6179 | fi | |
6180 | ||
6181 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
698dcdb6 VZ |
6182 | |
6183 | fi | |
10f2d63a VZ |
6184 | |
6185 | ||
6186 | eval "$ac_cv_use_imaglist" | |
6187 | if test "$no_cache" != 1; then | |
6188 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
6189 | fi | |
6190 | ||
6191 | if test "$wxUSE_IMAGLIST" = yes; then | |
698dcdb6 | 6192 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6193 | else |
698dcdb6 | 6194 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6195 | fi |
698dcdb6 | 6196 | |
10f2d63a | 6197 | |
698dcdb6 | 6198 | echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6 |
321d2b14 | 6199 | echo "configure:6200: checking for --enable-listbox" >&5 |
10f2d63a VZ |
6200 | no_cache=0 |
6201 | # Check whether --enable-listbox or --disable-listbox was given. | |
6202 | if test "${enable_listbox+set}" = set; then | |
6203 | enableval="$enable_listbox" | |
698dcdb6 | 6204 | |
10f2d63a VZ |
6205 | if test "$enableval" = yes; then |
6206 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
6207 | else | |
6208 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
6209 | fi | |
698dcdb6 | 6210 | |
10f2d63a | 6211 | else |
698dcdb6 | 6212 | |
10f2d63a VZ |
6213 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` |
6214 | if test "x$LINE" != x ; then | |
6215 | eval "DEFAULT_$LINE" | |
6216 | else | |
6217 | no_cache=1 | |
6218 | fi | |
6219 | ||
6220 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
698dcdb6 VZ |
6221 | |
6222 | fi | |
10f2d63a VZ |
6223 | |
6224 | ||
6225 | eval "$ac_cv_use_listbox" | |
6226 | if test "$no_cache" != 1; then | |
6227 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
6228 | fi | |
6229 | ||
6230 | if test "$wxUSE_LISTBOX" = yes; then | |
698dcdb6 | 6231 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6232 | else |
698dcdb6 | 6233 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6234 | fi |
698dcdb6 | 6235 | |
10f2d63a | 6236 | |
698dcdb6 | 6237 | echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6 |
321d2b14 | 6238 | echo "configure:6239: checking for --enable-listctrl" >&5 |
10f2d63a VZ |
6239 | no_cache=0 |
6240 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
6241 | if test "${enable_listctrl+set}" = set; then | |
6242 | enableval="$enable_listctrl" | |
698dcdb6 | 6243 | |
10f2d63a VZ |
6244 | if test "$enableval" = yes; then |
6245 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
6246 | else | |
6247 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
6248 | fi | |
698dcdb6 | 6249 | |
10f2d63a | 6250 | else |
698dcdb6 | 6251 | |
10f2d63a VZ |
6252 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` |
6253 | if test "x$LINE" != x ; then | |
6254 | eval "DEFAULT_$LINE" | |
6255 | else | |
6256 | no_cache=1 | |
6257 | fi | |
6258 | ||
6259 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
698dcdb6 VZ |
6260 | |
6261 | fi | |
10f2d63a VZ |
6262 | |
6263 | ||
6264 | eval "$ac_cv_use_listctrl" | |
6265 | if test "$no_cache" != 1; then | |
6266 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
6267 | fi | |
6268 | ||
6269 | if test "$wxUSE_LISTCTRL" = yes; then | |
698dcdb6 | 6270 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6271 | else |
698dcdb6 | 6272 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6273 | fi |
698dcdb6 | 6274 | |
10f2d63a | 6275 | |
698dcdb6 | 6276 | echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6 |
321d2b14 | 6277 | echo "configure:6278: checking for --enable-notebook" >&5 |
10f2d63a VZ |
6278 | no_cache=0 |
6279 | # Check whether --enable-notebook or --disable-notebook was given. | |
6280 | if test "${enable_notebook+set}" = set; then | |
6281 | enableval="$enable_notebook" | |
698dcdb6 | 6282 | |
10f2d63a VZ |
6283 | if test "$enableval" = yes; then |
6284 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
6285 | else | |
6286 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
6287 | fi | |
698dcdb6 | 6288 | |
10f2d63a | 6289 | else |
698dcdb6 | 6290 | |
10f2d63a VZ |
6291 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` |
6292 | if test "x$LINE" != x ; then | |
6293 | eval "DEFAULT_$LINE" | |
6294 | else | |
6295 | no_cache=1 | |
6296 | fi | |
6297 | ||
6298 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
698dcdb6 VZ |
6299 | |
6300 | fi | |
10f2d63a VZ |
6301 | |
6302 | ||
6303 | eval "$ac_cv_use_notebook" | |
6304 | if test "$no_cache" != 1; then | |
6305 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
6306 | fi | |
6307 | ||
6308 | if test "$wxUSE_NOTEBOOK" = yes; then | |
698dcdb6 | 6309 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6310 | else |
698dcdb6 | 6311 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6312 | fi |
698dcdb6 | 6313 | |
10f2d63a | 6314 | |
24176f2c | 6315 | echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6 |
321d2b14 | 6316 | echo "configure:6317: checking for --enable-propsheet" >&5 |
24176f2c GD |
6317 | no_cache=0 |
6318 | # Check whether --enable-propsheet or --disable-propsheet was given. | |
6319 | if test "${enable_propsheet+set}" = set; then | |
6320 | enableval="$enable_propsheet" | |
6321 | ||
6322 | if test "$enableval" = yes; then | |
6323 | ac_cv_use_propsheet='wxUSE_PROPSHEET=yes' | |
6324 | else | |
6325 | ac_cv_use_propsheet='wxUSE_PROPSHEET=no' | |
6326 | fi | |
6327 | ||
6328 | else | |
6329 | ||
6330 | LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}` | |
6331 | if test "x$LINE" != x ; then | |
6332 | eval "DEFAULT_$LINE" | |
6333 | else | |
6334 | no_cache=1 | |
6335 | fi | |
6336 | ||
6337 | ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET | |
6338 | ||
6339 | fi | |
6340 | ||
6341 | ||
6342 | eval "$ac_cv_use_propsheet" | |
6343 | if test "$no_cache" != 1; then | |
6344 | echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp | |
6345 | fi | |
6346 | ||
6347 | if test "$wxUSE_PROPSHEET" = yes; then | |
6348 | echo "$ac_t""yes" 1>&6 | |
6349 | else | |
6350 | echo "$ac_t""no" 1>&6 | |
6351 | fi | |
6352 | ||
6353 | ||
698dcdb6 | 6354 | echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6 |
321d2b14 | 6355 | echo "configure:6356: checking for --enable-radiobox" >&5 |
10f2d63a VZ |
6356 | no_cache=0 |
6357 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
6358 | if test "${enable_radiobox+set}" = set; then | |
6359 | enableval="$enable_radiobox" | |
698dcdb6 | 6360 | |
10f2d63a VZ |
6361 | if test "$enableval" = yes; then |
6362 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
6363 | else | |
6364 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
6365 | fi | |
698dcdb6 | 6366 | |
10f2d63a | 6367 | else |
698dcdb6 | 6368 | |
10f2d63a VZ |
6369 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` |
6370 | if test "x$LINE" != x ; then | |
6371 | eval "DEFAULT_$LINE" | |
6372 | else | |
6373 | no_cache=1 | |
6374 | fi | |
6375 | ||
6376 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
698dcdb6 VZ |
6377 | |
6378 | fi | |
10f2d63a VZ |
6379 | |
6380 | ||
6381 | eval "$ac_cv_use_radiobox" | |
6382 | if test "$no_cache" != 1; then | |
6383 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
6384 | fi | |
6385 | ||
6386 | if test "$wxUSE_RADIOBOX" = yes; then | |
698dcdb6 | 6387 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6388 | else |
698dcdb6 | 6389 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6390 | fi |
698dcdb6 | 6391 | |
10f2d63a | 6392 | |
698dcdb6 | 6393 | echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6 |
321d2b14 | 6394 | echo "configure:6395: checking for --enable-radiobtn" >&5 |
10f2d63a VZ |
6395 | no_cache=0 |
6396 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
6397 | if test "${enable_radiobtn+set}" = set; then | |
6398 | enableval="$enable_radiobtn" | |
698dcdb6 | 6399 | |
10f2d63a VZ |
6400 | if test "$enableval" = yes; then |
6401 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
6402 | else | |
6403 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
6404 | fi | |
698dcdb6 | 6405 | |
10f2d63a | 6406 | else |
698dcdb6 | 6407 | |
10f2d63a VZ |
6408 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` |
6409 | if test "x$LINE" != x ; then | |
6410 | eval "DEFAULT_$LINE" | |
6411 | else | |
6412 | no_cache=1 | |
6413 | fi | |
6414 | ||
6415 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
698dcdb6 VZ |
6416 | |
6417 | fi | |
10f2d63a VZ |
6418 | |
6419 | ||
6420 | eval "$ac_cv_use_radiobtn" | |
6421 | if test "$no_cache" != 1; then | |
6422 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
6423 | fi | |
6424 | ||
6425 | if test "$wxUSE_RADIOBTN" = yes; then | |
698dcdb6 | 6426 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6427 | else |
698dcdb6 | 6428 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6429 | fi |
698dcdb6 | 6430 | |
10f2d63a | 6431 | |
698dcdb6 | 6432 | echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6 |
321d2b14 | 6433 | echo "configure:6434: checking for --enable-sash" >&5 |
10f2d63a VZ |
6434 | no_cache=0 |
6435 | # Check whether --enable-sash or --disable-sash was given. | |
6436 | if test "${enable_sash+set}" = set; then | |
6437 | enableval="$enable_sash" | |
698dcdb6 | 6438 | |
10f2d63a VZ |
6439 | if test "$enableval" = yes; then |
6440 | ac_cv_use_sash='wxUSE_SASH=yes' | |
6441 | else | |
6442 | ac_cv_use_sash='wxUSE_SASH=no' | |
6443 | fi | |
698dcdb6 | 6444 | |
10f2d63a | 6445 | else |
698dcdb6 | 6446 | |
10f2d63a VZ |
6447 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` |
6448 | if test "x$LINE" != x ; then | |
6449 | eval "DEFAULT_$LINE" | |
6450 | else | |
6451 | no_cache=1 | |
6452 | fi | |
6453 | ||
6454 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
698dcdb6 VZ |
6455 | |
6456 | fi | |
10f2d63a VZ |
6457 | |
6458 | ||
6459 | eval "$ac_cv_use_sash" | |
6460 | if test "$no_cache" != 1; then | |
6461 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
6462 | fi | |
6463 | ||
6464 | if test "$wxUSE_SASH" = yes; then | |
698dcdb6 | 6465 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6466 | else |
698dcdb6 | 6467 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6468 | fi |
698dcdb6 | 6469 | |
10f2d63a | 6470 | |
698dcdb6 | 6471 | echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6 |
321d2b14 | 6472 | echo "configure:6473: checking for --enable-scrollbar" >&5 |
10f2d63a VZ |
6473 | no_cache=0 |
6474 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
6475 | if test "${enable_scrollbar+set}" = set; then | |
6476 | enableval="$enable_scrollbar" | |
698dcdb6 | 6477 | |
10f2d63a VZ |
6478 | if test "$enableval" = yes; then |
6479 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
6480 | else | |
6481 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
6482 | fi | |
698dcdb6 | 6483 | |
10f2d63a | 6484 | else |
698dcdb6 | 6485 | |
10f2d63a VZ |
6486 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` |
6487 | if test "x$LINE" != x ; then | |
6488 | eval "DEFAULT_$LINE" | |
6489 | else | |
6490 | no_cache=1 | |
6491 | fi | |
6492 | ||
6493 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
698dcdb6 VZ |
6494 | |
6495 | fi | |
10f2d63a VZ |
6496 | |
6497 | ||
6498 | eval "$ac_cv_use_scrollbar" | |
6499 | if test "$no_cache" != 1; then | |
6500 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
6501 | fi | |
6502 | ||
6503 | if test "$wxUSE_SCROLLBAR" = yes; then | |
698dcdb6 | 6504 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6505 | else |
698dcdb6 | 6506 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6507 | fi |
698dcdb6 | 6508 | |
10f2d63a | 6509 | |
698dcdb6 | 6510 | echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6 |
321d2b14 | 6511 | echo "configure:6512: checking for --enable-slider" >&5 |
10f2d63a VZ |
6512 | no_cache=0 |
6513 | # Check whether --enable-slider or --disable-slider was given. | |
6514 | if test "${enable_slider+set}" = set; then | |
6515 | enableval="$enable_slider" | |
698dcdb6 | 6516 | |
10f2d63a VZ |
6517 | if test "$enableval" = yes; then |
6518 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
6519 | else | |
6520 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
6521 | fi | |
698dcdb6 | 6522 | |
10f2d63a | 6523 | else |
698dcdb6 | 6524 | |
10f2d63a VZ |
6525 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` |
6526 | if test "x$LINE" != x ; then | |
6527 | eval "DEFAULT_$LINE" | |
6528 | else | |
6529 | no_cache=1 | |
6530 | fi | |
6531 | ||
6532 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
698dcdb6 VZ |
6533 | |
6534 | fi | |
10f2d63a VZ |
6535 | |
6536 | ||
6537 | eval "$ac_cv_use_slider" | |
6538 | if test "$no_cache" != 1; then | |
6539 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
6540 | fi | |
6541 | ||
6542 | if test "$wxUSE_SLIDER" = yes; then | |
698dcdb6 | 6543 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6544 | else |
698dcdb6 | 6545 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6546 | fi |
698dcdb6 | 6547 | |
10f2d63a | 6548 | |
698dcdb6 | 6549 | echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6 |
321d2b14 | 6550 | echo "configure:6551: checking for --enable-spinbtn" >&5 |
10f2d63a VZ |
6551 | no_cache=0 |
6552 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
6553 | if test "${enable_spinbtn+set}" = set; then | |
6554 | enableval="$enable_spinbtn" | |
698dcdb6 | 6555 | |
10f2d63a VZ |
6556 | if test "$enableval" = yes; then |
6557 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
6558 | else | |
6559 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
6560 | fi | |
698dcdb6 | 6561 | |
10f2d63a | 6562 | else |
698dcdb6 | 6563 | |
10f2d63a VZ |
6564 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` |
6565 | if test "x$LINE" != x ; then | |
6566 | eval "DEFAULT_$LINE" | |
6567 | else | |
6568 | no_cache=1 | |
6569 | fi | |
6570 | ||
6571 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
698dcdb6 VZ |
6572 | |
6573 | fi | |
10f2d63a VZ |
6574 | |
6575 | ||
6576 | eval "$ac_cv_use_spinbtn" | |
6577 | if test "$no_cache" != 1; then | |
6578 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
6579 | fi | |
6580 | ||
6581 | if test "$wxUSE_SPINBTN" = yes; then | |
698dcdb6 | 6582 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6583 | else |
698dcdb6 | 6584 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6585 | fi |
698dcdb6 | 6586 | |
10f2d63a | 6587 | |
698dcdb6 | 6588 | echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6 |
321d2b14 | 6589 | echo "configure:6590: checking for --enable-spinctrl" >&5 |
56cfaa52 RR |
6590 | no_cache=0 |
6591 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
6592 | if test "${enable_spinctrl+set}" = set; then | |
6593 | enableval="$enable_spinctrl" | |
698dcdb6 | 6594 | |
56cfaa52 RR |
6595 | if test "$enableval" = yes; then |
6596 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
6597 | else | |
6598 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
6599 | fi | |
698dcdb6 | 6600 | |
56cfaa52 | 6601 | else |
698dcdb6 | 6602 | |
56cfaa52 RR |
6603 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` |
6604 | if test "x$LINE" != x ; then | |
6605 | eval "DEFAULT_$LINE" | |
6606 | else | |
6607 | no_cache=1 | |
6608 | fi | |
6609 | ||
6610 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
698dcdb6 VZ |
6611 | |
6612 | fi | |
56cfaa52 RR |
6613 | |
6614 | ||
6615 | eval "$ac_cv_use_spinctrl" | |
6616 | if test "$no_cache" != 1; then | |
6617 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
6618 | fi | |
6619 | ||
6620 | if test "$wxUSE_SPINCTRL" = yes; then | |
698dcdb6 | 6621 | echo "$ac_t""yes" 1>&6 |
56cfaa52 | 6622 | else |
698dcdb6 | 6623 | echo "$ac_t""no" 1>&6 |
56cfaa52 | 6624 | fi |
698dcdb6 | 6625 | |
56cfaa52 | 6626 | |
698dcdb6 | 6627 | echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6 |
321d2b14 | 6628 | echo "configure:6629: checking for --enable-splitter" >&5 |
10f2d63a VZ |
6629 | no_cache=0 |
6630 | # Check whether --enable-splitter or --disable-splitter was given. | |
6631 | if test "${enable_splitter+set}" = set; then | |
6632 | enableval="$enable_splitter" | |
698dcdb6 | 6633 | |
10f2d63a VZ |
6634 | if test "$enableval" = yes; then |
6635 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
6636 | else | |
6637 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
6638 | fi | |
698dcdb6 | 6639 | |
10f2d63a | 6640 | else |
698dcdb6 | 6641 | |
10f2d63a VZ |
6642 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` |
6643 | if test "x$LINE" != x ; then | |
6644 | eval "DEFAULT_$LINE" | |
6645 | else | |
6646 | no_cache=1 | |
6647 | fi | |
6648 | ||
6649 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
698dcdb6 VZ |
6650 | |
6651 | fi | |
10f2d63a VZ |
6652 | |
6653 | ||
6654 | eval "$ac_cv_use_splitter" | |
6655 | if test "$no_cache" != 1; then | |
6656 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
6657 | fi | |
6658 | ||
6659 | if test "$wxUSE_SPLITTER" = yes; then | |
698dcdb6 | 6660 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6661 | else |
698dcdb6 | 6662 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6663 | fi |
698dcdb6 | 6664 | |
10f2d63a | 6665 | |
698dcdb6 | 6666 | echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6 |
321d2b14 | 6667 | echo "configure:6668: checking for --enable-statbmp" >&5 |
10f2d63a VZ |
6668 | no_cache=0 |
6669 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
6670 | if test "${enable_statbmp+set}" = set; then | |
6671 | enableval="$enable_statbmp" | |
698dcdb6 | 6672 | |
10f2d63a VZ |
6673 | if test "$enableval" = yes; then |
6674 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
6675 | else | |
6676 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
6677 | fi | |
698dcdb6 | 6678 | |
10f2d63a | 6679 | else |
698dcdb6 | 6680 | |
10f2d63a VZ |
6681 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` |
6682 | if test "x$LINE" != x ; then | |
6683 | eval "DEFAULT_$LINE" | |
6684 | else | |
6685 | no_cache=1 | |
6686 | fi | |
6687 | ||
6688 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
698dcdb6 VZ |
6689 | |
6690 | fi | |
10f2d63a VZ |
6691 | |
6692 | ||
6693 | eval "$ac_cv_use_statbmp" | |
6694 | if test "$no_cache" != 1; then | |
6695 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
6696 | fi | |
6697 | ||
6698 | if test "$wxUSE_STATBMP" = yes; then | |
698dcdb6 | 6699 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6700 | else |
698dcdb6 | 6701 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6702 | fi |
698dcdb6 | 6703 | |
10f2d63a | 6704 | |
698dcdb6 | 6705 | echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6 |
321d2b14 | 6706 | echo "configure:6707: checking for --enable-statbox" >&5 |
10f2d63a VZ |
6707 | no_cache=0 |
6708 | # Check whether --enable-statbox or --disable-statbox was given. | |
6709 | if test "${enable_statbox+set}" = set; then | |
6710 | enableval="$enable_statbox" | |
698dcdb6 | 6711 | |
10f2d63a VZ |
6712 | if test "$enableval" = yes; then |
6713 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
6714 | else | |
6715 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
6716 | fi | |
698dcdb6 | 6717 | |
10f2d63a | 6718 | else |
698dcdb6 | 6719 | |
10f2d63a VZ |
6720 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` |
6721 | if test "x$LINE" != x ; then | |
6722 | eval "DEFAULT_$LINE" | |
6723 | else | |
6724 | no_cache=1 | |
6725 | fi | |
6726 | ||
6727 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
698dcdb6 VZ |
6728 | |
6729 | fi | |
10f2d63a VZ |
6730 | |
6731 | ||
6732 | eval "$ac_cv_use_statbox" | |
6733 | if test "$no_cache" != 1; then | |
6734 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
6735 | fi | |
6736 | ||
6737 | if test "$wxUSE_STATBOX" = yes; then | |
698dcdb6 | 6738 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6739 | else |
698dcdb6 | 6740 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6741 | fi |
698dcdb6 | 6742 | |
10f2d63a | 6743 | |
698dcdb6 | 6744 | echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6 |
321d2b14 | 6745 | echo "configure:6746: checking for --enable-statline" >&5 |
10f2d63a VZ |
6746 | no_cache=0 |
6747 | # Check whether --enable-statline or --disable-statline was given. | |
6748 | if test "${enable_statline+set}" = set; then | |
6749 | enableval="$enable_statline" | |
698dcdb6 | 6750 | |
10f2d63a VZ |
6751 | if test "$enableval" = yes; then |
6752 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
6753 | else | |
6754 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
6755 | fi | |
698dcdb6 | 6756 | |
10f2d63a | 6757 | else |
698dcdb6 | 6758 | |
10f2d63a VZ |
6759 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` |
6760 | if test "x$LINE" != x ; then | |
6761 | eval "DEFAULT_$LINE" | |
6762 | else | |
6763 | no_cache=1 | |
6764 | fi | |
6765 | ||
6766 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
698dcdb6 VZ |
6767 | |
6768 | fi | |
10f2d63a VZ |
6769 | |
6770 | ||
6771 | eval "$ac_cv_use_statline" | |
6772 | if test "$no_cache" != 1; then | |
6773 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
6774 | fi | |
6775 | ||
6776 | if test "$wxUSE_STATLINE" = yes; then | |
698dcdb6 | 6777 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6778 | else |
698dcdb6 | 6779 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6780 | fi |
698dcdb6 | 6781 | |
10f2d63a | 6782 | |
1e6feb95 | 6783 | echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6 |
321d2b14 | 6784 | echo "configure:6785: checking for --enable-stattext" >&5 |
1e6feb95 VZ |
6785 | no_cache=0 |
6786 | # Check whether --enable-stattext or --disable-stattext was given. | |
6787 | if test "${enable_stattext+set}" = set; then | |
6788 | enableval="$enable_stattext" | |
6789 | ||
6790 | if test "$enableval" = yes; then | |
6791 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
6792 | else | |
6793 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
6794 | fi | |
6795 | ||
6796 | else | |
6797 | ||
6798 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
6799 | if test "x$LINE" != x ; then | |
6800 | eval "DEFAULT_$LINE" | |
6801 | else | |
6802 | no_cache=1 | |
6803 | fi | |
6804 | ||
6805 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
6806 | ||
6807 | fi | |
6808 | ||
6809 | ||
6810 | eval "$ac_cv_use_stattext" | |
6811 | if test "$no_cache" != 1; then | |
6812 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
6813 | fi | |
6814 | ||
6815 | if test "$wxUSE_STATTEXT" = yes; then | |
6816 | echo "$ac_t""yes" 1>&6 | |
6817 | else | |
6818 | echo "$ac_t""no" 1>&6 | |
6819 | fi | |
6820 | ||
6821 | ||
698dcdb6 | 6822 | echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6 |
321d2b14 | 6823 | echo "configure:6824: checking for --enable-statusbar" >&5 |
10f2d63a VZ |
6824 | no_cache=0 |
6825 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
6826 | if test "${enable_statusbar+set}" = set; then | |
6827 | enableval="$enable_statusbar" | |
698dcdb6 | 6828 | |
10f2d63a VZ |
6829 | if test "$enableval" = yes; then |
6830 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
6831 | else | |
6832 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
6833 | fi | |
698dcdb6 | 6834 | |
10f2d63a | 6835 | else |
698dcdb6 | 6836 | |
10f2d63a VZ |
6837 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` |
6838 | if test "x$LINE" != x ; then | |
6839 | eval "DEFAULT_$LINE" | |
6840 | else | |
6841 | no_cache=1 | |
6842 | fi | |
6843 | ||
6844 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
698dcdb6 VZ |
6845 | |
6846 | fi | |
10f2d63a VZ |
6847 | |
6848 | ||
6849 | eval "$ac_cv_use_statusbar" | |
6850 | if test "$no_cache" != 1; then | |
6851 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
6852 | fi | |
6853 | ||
6854 | if test "$wxUSE_STATUSBAR" = yes; then | |
698dcdb6 | 6855 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6856 | else |
698dcdb6 | 6857 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6858 | fi |
698dcdb6 | 6859 | |
10f2d63a | 6860 | |
698dcdb6 | 6861 | echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6 |
321d2b14 | 6862 | echo "configure:6863: checking for --enable-tabdialog" >&5 |
10f2d63a VZ |
6863 | no_cache=0 |
6864 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
6865 | if test "${enable_tabdialog+set}" = set; then | |
6866 | enableval="$enable_tabdialog" | |
698dcdb6 | 6867 | |
10f2d63a VZ |
6868 | if test "$enableval" = yes; then |
6869 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
6870 | else | |
6871 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
6872 | fi | |
698dcdb6 | 6873 | |
10f2d63a | 6874 | else |
698dcdb6 | 6875 | |
10f2d63a VZ |
6876 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` |
6877 | if test "x$LINE" != x ; then | |
6878 | eval "DEFAULT_$LINE" | |
6879 | else | |
6880 | no_cache=1 | |
6881 | fi | |
6882 | ||
6883 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
698dcdb6 VZ |
6884 | |
6885 | fi | |
10f2d63a VZ |
6886 | |
6887 | ||
6888 | eval "$ac_cv_use_tabdialog" | |
6889 | if test "$no_cache" != 1; then | |
6890 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
6891 | fi | |
6892 | ||
6893 | if test "$wxUSE_TABDIALOG" = yes; then | |
698dcdb6 | 6894 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6895 | else |
698dcdb6 | 6896 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6897 | fi |
698dcdb6 | 6898 | |
10f2d63a | 6899 | |
1e6feb95 | 6900 | echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6 |
321d2b14 | 6901 | echo "configure:6902: checking for --enable-textctrl" >&5 |
1e6feb95 VZ |
6902 | no_cache=0 |
6903 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
6904 | if test "${enable_textctrl+set}" = set; then | |
6905 | enableval="$enable_textctrl" | |
6906 | ||
6907 | if test "$enableval" = yes; then | |
6908 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
6909 | else | |
6910 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
6911 | fi | |
6912 | ||
6913 | else | |
6914 | ||
6915 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
6916 | if test "x$LINE" != x ; then | |
6917 | eval "DEFAULT_$LINE" | |
6918 | else | |
6919 | no_cache=1 | |
6920 | fi | |
6921 | ||
6922 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
6923 | ||
6924 | fi | |
6925 | ||
6926 | ||
6927 | eval "$ac_cv_use_textctrl" | |
6928 | if test "$no_cache" != 1; then | |
6929 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
6930 | fi | |
6931 | ||
6932 | if test "$wxUSE_TEXTCTRL" = yes; then | |
6933 | echo "$ac_t""yes" 1>&6 | |
6934 | else | |
6935 | echo "$ac_t""no" 1>&6 | |
6936 | fi | |
6937 | ||
6938 | ||
698dcdb6 | 6939 | echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6 |
321d2b14 | 6940 | echo "configure:6941: checking for --enable-togglebtn" >&5 |
1db8dc4a VZ |
6941 | no_cache=0 |
6942 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
6943 | if test "${enable_togglebtn+set}" = set; then | |
6944 | enableval="$enable_togglebtn" | |
698dcdb6 | 6945 | |
1db8dc4a VZ |
6946 | if test "$enableval" = yes; then |
6947 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
6948 | else | |
6949 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
6950 | fi | |
698dcdb6 | 6951 | |
1db8dc4a | 6952 | else |
698dcdb6 | 6953 | |
1db8dc4a VZ |
6954 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` |
6955 | if test "x$LINE" != x ; then | |
6956 | eval "DEFAULT_$LINE" | |
6957 | else | |
6958 | no_cache=1 | |
6959 | fi | |
6960 | ||
6961 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
698dcdb6 VZ |
6962 | |
6963 | fi | |
1db8dc4a VZ |
6964 | |
6965 | ||
6966 | eval "$ac_cv_use_togglebtn" | |
6967 | if test "$no_cache" != 1; then | |
6968 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
6969 | fi | |
6970 | ||
6971 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
698dcdb6 | 6972 | echo "$ac_t""yes" 1>&6 |
1db8dc4a | 6973 | else |
698dcdb6 | 6974 | echo "$ac_t""no" 1>&6 |
1db8dc4a | 6975 | fi |
698dcdb6 | 6976 | |
1db8dc4a | 6977 | |
698dcdb6 | 6978 | echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6 |
321d2b14 | 6979 | echo "configure:6980: checking for --enable-toolbar" >&5 |
10f2d63a VZ |
6980 | no_cache=0 |
6981 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
6982 | if test "${enable_toolbar+set}" = set; then | |
6983 | enableval="$enable_toolbar" | |
698dcdb6 | 6984 | |
10f2d63a VZ |
6985 | if test "$enableval" = yes; then |
6986 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
6987 | else | |
6988 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
6989 | fi | |
698dcdb6 | 6990 | |
10f2d63a | 6991 | else |
698dcdb6 | 6992 | |
10f2d63a VZ |
6993 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` |
6994 | if test "x$LINE" != x ; then | |
6995 | eval "DEFAULT_$LINE" | |
6996 | else | |
6997 | no_cache=1 | |
6998 | fi | |
6999 | ||
7000 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
698dcdb6 VZ |
7001 | |
7002 | fi | |
10f2d63a VZ |
7003 | |
7004 | ||
7005 | eval "$ac_cv_use_toolbar" | |
7006 | if test "$no_cache" != 1; then | |
7007 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
7008 | fi | |
7009 | ||
7010 | if test "$wxUSE_TOOLBAR" = yes; then | |
698dcdb6 | 7011 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7012 | else |
698dcdb6 | 7013 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7014 | fi |
698dcdb6 | 7015 | |
10f2d63a | 7016 | |
698dcdb6 | 7017 | echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6 |
321d2b14 | 7018 | echo "configure:7019: checking for --enable-tbarnative" >&5 |
360d6699 VZ |
7019 | no_cache=0 |
7020 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
7021 | if test "${enable_tbarnative+set}" = set; then | |
7022 | enableval="$enable_tbarnative" | |
698dcdb6 | 7023 | |
360d6699 VZ |
7024 | if test "$enableval" = yes; then |
7025 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
7026 | else | |
7027 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
7028 | fi | |
698dcdb6 | 7029 | |
360d6699 | 7030 | else |
698dcdb6 | 7031 | |
360d6699 VZ |
7032 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` |
7033 | if test "x$LINE" != x ; then | |
7034 | eval "DEFAULT_$LINE" | |
7035 | else | |
7036 | no_cache=1 | |
7037 | fi | |
7038 | ||
7039 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
698dcdb6 VZ |
7040 | |
7041 | fi | |
360d6699 VZ |
7042 | |
7043 | ||
7044 | eval "$ac_cv_use_tbarnative" | |
7045 | if test "$no_cache" != 1; then | |
7046 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
7047 | fi | |
7048 | ||
7049 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
698dcdb6 | 7050 | echo "$ac_t""yes" 1>&6 |
360d6699 | 7051 | else |
698dcdb6 | 7052 | echo "$ac_t""no" 1>&6 |
360d6699 | 7053 | fi |
698dcdb6 | 7054 | |
360d6699 | 7055 | |
698dcdb6 | 7056 | echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6 |
321d2b14 | 7057 | echo "configure:7058: checking for --enable-tbarsmpl" >&5 |
360d6699 VZ |
7058 | no_cache=0 |
7059 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
7060 | if test "${enable_tbarsmpl+set}" = set; then | |
7061 | enableval="$enable_tbarsmpl" | |
698dcdb6 | 7062 | |
360d6699 VZ |
7063 | if test "$enableval" = yes; then |
7064 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
7065 | else | |
7066 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
7067 | fi | |
698dcdb6 | 7068 | |
360d6699 | 7069 | else |
698dcdb6 | 7070 | |
360d6699 VZ |
7071 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` |
7072 | if test "x$LINE" != x ; then | |
7073 | eval "DEFAULT_$LINE" | |
7074 | else | |
7075 | no_cache=1 | |
7076 | fi | |
7077 | ||
7078 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
698dcdb6 VZ |
7079 | |
7080 | fi | |
360d6699 VZ |
7081 | |
7082 | ||
7083 | eval "$ac_cv_use_tbarsmpl" | |
7084 | if test "$no_cache" != 1; then | |
7085 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
7086 | fi | |
7087 | ||
7088 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
698dcdb6 | 7089 | echo "$ac_t""yes" 1>&6 |
360d6699 | 7090 | else |
698dcdb6 | 7091 | echo "$ac_t""no" 1>&6 |
360d6699 | 7092 | fi |
698dcdb6 | 7093 | |
360d6699 | 7094 | |
698dcdb6 | 7095 | echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6 |
321d2b14 | 7096 | echo "configure:7097: checking for --enable-treectrl" >&5 |
10f2d63a VZ |
7097 | no_cache=0 |
7098 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
7099 | if test "${enable_treectrl+set}" = set; then | |
7100 | enableval="$enable_treectrl" | |
698dcdb6 | 7101 | |
10f2d63a VZ |
7102 | if test "$enableval" = yes; then |
7103 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
7104 | else | |
7105 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
7106 | fi | |
698dcdb6 | 7107 | |
10f2d63a | 7108 | else |
698dcdb6 | 7109 | |
10f2d63a VZ |
7110 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` |
7111 | if test "x$LINE" != x ; then | |
7112 | eval "DEFAULT_$LINE" | |
7113 | else | |
7114 | no_cache=1 | |
7115 | fi | |
7116 | ||
7117 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
698dcdb6 VZ |
7118 | |
7119 | fi | |
10f2d63a VZ |
7120 | |
7121 | ||
1e6feb95 VZ |
7122 | eval "$ac_cv_use_treectrl" |
7123 | if test "$no_cache" != 1; then | |
7124 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
7125 | fi | |
7126 | ||
7127 | if test "$wxUSE_TREECTRL" = yes; then | |
7128 | echo "$ac_t""yes" 1>&6 | |
7129 | else | |
7130 | echo "$ac_t""no" 1>&6 | |
7131 | fi | |
7132 | ||
7133 | ||
9926e4a4 | 7134 | echo $ac_n "checking for --enable-tipwindow""... $ac_c" 1>&6 |
321d2b14 | 7135 | echo "configure:7136: checking for --enable-tipwindow" >&5 |
9926e4a4 VZ |
7136 | no_cache=0 |
7137 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
7138 | if test "${enable_tipwindow+set}" = set; then | |
7139 | enableval="$enable_tipwindow" | |
7140 | ||
7141 | if test "$enableval" = yes; then | |
7142 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
7143 | else | |
7144 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
7145 | fi | |
7146 | ||
7147 | else | |
7148 | ||
7149 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` | |
7150 | if test "x$LINE" != x ; then | |
7151 | eval "DEFAULT_$LINE" | |
7152 | else | |
7153 | no_cache=1 | |
7154 | fi | |
7155 | ||
7156 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
7157 | ||
7158 | fi | |
7159 | ||
7160 | ||
7161 | eval "$ac_cv_use_tipwindow" | |
7162 | if test "$no_cache" != 1; then | |
7163 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
7164 | fi | |
7165 | ||
7166 | if test "$wxUSE_TIPWINDOW" = yes; then | |
7167 | echo "$ac_t""yes" 1>&6 | |
7168 | else | |
7169 | echo "$ac_t""no" 1>&6 | |
7170 | fi | |
7171 | ||
7172 | ||
9f41d601 | 7173 | echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6 |
321d2b14 | 7174 | echo "configure:7175: checking for --enable-popupwin" >&5 |
9f41d601 RR |
7175 | no_cache=0 |
7176 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
7177 | if test "${enable_popupwin+set}" = set; then | |
7178 | enableval="$enable_popupwin" | |
7179 | ||
7180 | if test "$enableval" = yes; then | |
7181 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
7182 | else | |
7183 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
7184 | fi | |
7185 | ||
7186 | else | |
7187 | ||
7188 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` | |
7189 | if test "x$LINE" != x ; then | |
7190 | eval "DEFAULT_$LINE" | |
7191 | else | |
7192 | no_cache=1 | |
7193 | fi | |
7194 | ||
7195 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
7196 | ||
7197 | fi | |
7198 | ||
7199 | ||
7200 | eval "$ac_cv_use_popupwin" | |
7201 | if test "$no_cache" != 1; then | |
7202 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
7203 | fi | |
7204 | ||
7205 | if test "$wxUSE_POPUPWIN" = yes; then | |
7206 | echo "$ac_t""yes" 1>&6 | |
7207 | else | |
7208 | echo "$ac_t""no" 1>&6 | |
7209 | fi | |
7210 | ||
7211 | ||
1e6feb95 VZ |
7212 | |
7213 | ||
7214 | echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6 | |
321d2b14 | 7215 | echo "configure:7216: checking for --enable-commondlg" >&5 |
1e6feb95 VZ |
7216 | no_cache=0 |
7217 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
7218 | if test "${enable_commondlg+set}" = set; then | |
7219 | enableval="$enable_commondlg" | |
7220 | ||
7221 | if test "$enableval" = yes; then | |
7222 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
7223 | else | |
7224 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
7225 | fi | |
7226 | ||
7227 | else | |
7228 | ||
7229 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
7230 | if test "x$LINE" != x ; then | |
7231 | eval "DEFAULT_$LINE" | |
7232 | else | |
7233 | no_cache=1 | |
7234 | fi | |
7235 | ||
7236 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
7237 | ||
7238 | fi | |
7239 | ||
7240 | ||
7241 | eval "$ac_cv_use_commondlg" | |
7242 | if test "$no_cache" != 1; then | |
7243 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
7244 | fi | |
7245 | ||
7246 | if test "$wxUSE_COMMONDLGS" = yes; then | |
7247 | echo "$ac_t""yes" 1>&6 | |
7248 | else | |
7249 | echo "$ac_t""no" 1>&6 | |
7250 | fi | |
7251 | ||
7252 | ||
7253 | echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6 | |
321d2b14 | 7254 | echo "configure:7255: checking for --enable-choicedlg" >&5 |
1e6feb95 VZ |
7255 | no_cache=0 |
7256 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
7257 | if test "${enable_choicedlg+set}" = set; then | |
7258 | enableval="$enable_choicedlg" | |
7259 | ||
7260 | if test "$enableval" = yes; then | |
7261 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
7262 | else | |
7263 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
7264 | fi | |
7265 | ||
7266 | else | |
7267 | ||
7268 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
7269 | if test "x$LINE" != x ; then | |
7270 | eval "DEFAULT_$LINE" | |
7271 | else | |
7272 | no_cache=1 | |
7273 | fi | |
7274 | ||
7275 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
7276 | ||
7277 | fi | |
7278 | ||
7279 | ||
7280 | eval "$ac_cv_use_choicedlg" | |
7281 | if test "$no_cache" != 1; then | |
7282 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
7283 | fi | |
7284 | ||
7285 | if test "$wxUSE_CHOICEDLG" = yes; then | |
7286 | echo "$ac_t""yes" 1>&6 | |
7287 | else | |
7288 | echo "$ac_t""no" 1>&6 | |
7289 | fi | |
7290 | ||
7291 | ||
7292 | echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6 | |
321d2b14 | 7293 | echo "configure:7294: checking for --enable-coldlg" >&5 |
1e6feb95 VZ |
7294 | no_cache=0 |
7295 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
7296 | if test "${enable_coldlg+set}" = set; then | |
7297 | enableval="$enable_coldlg" | |
7298 | ||
7299 | if test "$enableval" = yes; then | |
7300 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
7301 | else | |
7302 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
7303 | fi | |
7304 | ||
7305 | else | |
7306 | ||
7307 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
7308 | if test "x$LINE" != x ; then | |
7309 | eval "DEFAULT_$LINE" | |
7310 | else | |
7311 | no_cache=1 | |
7312 | fi | |
7313 | ||
7314 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
7315 | ||
7316 | fi | |
7317 | ||
7318 | ||
7319 | eval "$ac_cv_use_coldlg" | |
7320 | if test "$no_cache" != 1; then | |
7321 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
7322 | fi | |
7323 | ||
7324 | if test "$wxUSE_COLOURDLG" = yes; then | |
7325 | echo "$ac_t""yes" 1>&6 | |
7326 | else | |
7327 | echo "$ac_t""no" 1>&6 | |
7328 | fi | |
7329 | ||
7330 | ||
7331 | echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6 | |
321d2b14 | 7332 | echo "configure:7333: checking for --enable-filedlg" >&5 |
1e6feb95 VZ |
7333 | no_cache=0 |
7334 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
7335 | if test "${enable_filedlg+set}" = set; then | |
7336 | enableval="$enable_filedlg" | |
7337 | ||
7338 | if test "$enableval" = yes; then | |
7339 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
7340 | else | |
7341 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
7342 | fi | |
7343 | ||
7344 | else | |
7345 | ||
7346 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
7347 | if test "x$LINE" != x ; then | |
7348 | eval "DEFAULT_$LINE" | |
7349 | else | |
7350 | no_cache=1 | |
7351 | fi | |
7352 | ||
7353 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
7354 | ||
7355 | fi | |
7356 | ||
7357 | ||
7358 | eval "$ac_cv_use_filedlg" | |
7359 | if test "$no_cache" != 1; then | |
7360 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
7361 | fi | |
7362 | ||
7363 | if test "$wxUSE_FILEDLG" = yes; then | |
7364 | echo "$ac_t""yes" 1>&6 | |
7365 | else | |
7366 | echo "$ac_t""no" 1>&6 | |
7367 | fi | |
7368 | ||
7369 | ||
69d27ff7 | 7370 | echo $ac_n "checking for --enable-finddlg""... $ac_c" 1>&6 |
321d2b14 | 7371 | echo "configure:7372: checking for --enable-finddlg" >&5 |
8db37e06 | 7372 | no_cache=0 |
69d27ff7 MB |
7373 | # Check whether --enable-finddlg or --disable-finddlg was given. |
7374 | if test "${enable_finddlg+set}" = set; then | |
7375 | enableval="$enable_finddlg" | |
8db37e06 VZ |
7376 | |
7377 | if test "$enableval" = yes; then | |
69d27ff7 | 7378 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' |
8db37e06 | 7379 | else |
69d27ff7 | 7380 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' |
8db37e06 VZ |
7381 | fi |
7382 | ||
7383 | else | |
7384 | ||
7385 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` | |
7386 | if test "x$LINE" != x ; then | |
7387 | eval "DEFAULT_$LINE" | |
7388 | else | |
7389 | no_cache=1 | |
7390 | fi | |
7391 | ||
69d27ff7 | 7392 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG |
8db37e06 VZ |
7393 | |
7394 | fi | |
7395 | ||
7396 | ||
69d27ff7 | 7397 | eval "$ac_cv_use_finddlg" |
8db37e06 | 7398 | if test "$no_cache" != 1; then |
69d27ff7 | 7399 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp |
8db37e06 VZ |
7400 | fi |
7401 | ||
7402 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
7403 | echo "$ac_t""yes" 1>&6 | |
7404 | else | |
7405 | echo "$ac_t""no" 1>&6 | |
7406 | fi | |
7407 | ||
7408 | ||
1e6feb95 | 7409 | echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6 |
321d2b14 | 7410 | echo "configure:7411: checking for --enable-fontdlg" >&5 |
1e6feb95 VZ |
7411 | no_cache=0 |
7412 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
7413 | if test "${enable_fontdlg+set}" = set; then | |
7414 | enableval="$enable_fontdlg" | |
7415 | ||
7416 | if test "$enableval" = yes; then | |
7417 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
7418 | else | |
7419 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
7420 | fi | |
7421 | ||
7422 | else | |
7423 | ||
7424 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
7425 | if test "x$LINE" != x ; then | |
7426 | eval "DEFAULT_$LINE" | |
7427 | else | |
7428 | no_cache=1 | |
7429 | fi | |
7430 | ||
7431 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
7432 | ||
7433 | fi | |
7434 | ||
7435 | ||
7436 | eval "$ac_cv_use_fontdlg" | |
7437 | if test "$no_cache" != 1; then | |
7438 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
7439 | fi | |
7440 | ||
7441 | if test "$wxUSE_FONTDLG" = yes; then | |
7442 | echo "$ac_t""yes" 1>&6 | |
7443 | else | |
7444 | echo "$ac_t""no" 1>&6 | |
7445 | fi | |
7446 | ||
7447 | ||
7448 | echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6 | |
321d2b14 | 7449 | echo "configure:7450: checking for --enable-dirdlg" >&5 |
1e6feb95 VZ |
7450 | no_cache=0 |
7451 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
7452 | if test "${enable_dirdlg+set}" = set; then | |
7453 | enableval="$enable_dirdlg" | |
7454 | ||
7455 | if test "$enableval" = yes; then | |
7456 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
7457 | else | |
7458 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
7459 | fi | |
7460 | ||
7461 | else | |
7462 | ||
7463 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
7464 | if test "x$LINE" != x ; then | |
7465 | eval "DEFAULT_$LINE" | |
7466 | else | |
7467 | no_cache=1 | |
7468 | fi | |
7469 | ||
7470 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
7471 | ||
7472 | fi | |
7473 | ||
7474 | ||
7475 | eval "$ac_cv_use_dirdlg" | |
10f2d63a | 7476 | if test "$no_cache" != 1; then |
1e6feb95 | 7477 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7478 | fi |
7479 | ||
1e6feb95 | 7480 | if test "$wxUSE_DIRDLG" = yes; then |
698dcdb6 | 7481 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7482 | else |
698dcdb6 | 7483 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7484 | fi |
698dcdb6 VZ |
7485 | |
7486 | ||
1e6feb95 | 7487 | echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6 |
321d2b14 | 7488 | echo "configure:7489: checking for --enable-msgdlg" >&5 |
10f2d63a | 7489 | no_cache=0 |
1e6feb95 VZ |
7490 | # Check whether --enable-msgdlg or --disable-msgdlg was given. |
7491 | if test "${enable_msgdlg+set}" = set; then | |
7492 | enableval="$enable_msgdlg" | |
698dcdb6 | 7493 | |
10f2d63a | 7494 | if test "$enableval" = yes; then |
1e6feb95 | 7495 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' |
10f2d63a | 7496 | else |
1e6feb95 | 7497 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' |
10f2d63a | 7498 | fi |
698dcdb6 | 7499 | |
10f2d63a | 7500 | else |
698dcdb6 | 7501 | |
1e6feb95 | 7502 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
7503 | if test "x$LINE" != x ; then |
7504 | eval "DEFAULT_$LINE" | |
7505 | else | |
7506 | no_cache=1 | |
7507 | fi | |
7508 | ||
1e6feb95 | 7509 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG |
698dcdb6 VZ |
7510 | |
7511 | fi | |
10f2d63a VZ |
7512 | |
7513 | ||
1e6feb95 | 7514 | eval "$ac_cv_use_msgdlg" |
10f2d63a | 7515 | if test "$no_cache" != 1; then |
1e6feb95 | 7516 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7517 | fi |
7518 | ||
1e6feb95 | 7519 | if test "$wxUSE_MSGDLG" = yes; then |
698dcdb6 | 7520 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7521 | else |
698dcdb6 | 7522 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7523 | fi |
698dcdb6 | 7524 | |
10f2d63a | 7525 | |
1e6feb95 | 7526 | echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6 |
321d2b14 | 7527 | echo "configure:7528: checking for --enable-numberdlg" >&5 |
10f2d63a | 7528 | no_cache=0 |
1e6feb95 VZ |
7529 | # Check whether --enable-numberdlg or --disable-numberdlg was given. |
7530 | if test "${enable_numberdlg+set}" = set; then | |
7531 | enableval="$enable_numberdlg" | |
698dcdb6 | 7532 | |
10f2d63a | 7533 | if test "$enableval" = yes; then |
1e6feb95 | 7534 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' |
10f2d63a | 7535 | else |
1e6feb95 | 7536 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' |
10f2d63a | 7537 | fi |
698dcdb6 | 7538 | |
10f2d63a | 7539 | else |
698dcdb6 | 7540 | |
1e6feb95 | 7541 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
7542 | if test "x$LINE" != x ; then |
7543 | eval "DEFAULT_$LINE" | |
7544 | else | |
7545 | no_cache=1 | |
7546 | fi | |
7547 | ||
1e6feb95 | 7548 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG |
698dcdb6 VZ |
7549 | |
7550 | fi | |
10f2d63a VZ |
7551 | |
7552 | ||
1e6feb95 | 7553 | eval "$ac_cv_use_numberdlg" |
10f2d63a | 7554 | if test "$no_cache" != 1; then |
1e6feb95 | 7555 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7556 | fi |
7557 | ||
1e6feb95 | 7558 | if test "$wxUSE_NUMBERDLG" = yes; then |
698dcdb6 | 7559 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7560 | else |
698dcdb6 | 7561 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7562 | fi |
698dcdb6 | 7563 | |
10f2d63a | 7564 | |
cbca9943 | 7565 | echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6 |
321d2b14 | 7566 | echo "configure:7567: checking for --enable-splash" >&5 |
cbca9943 VZ |
7567 | no_cache=0 |
7568 | # Check whether --enable-splash or --disable-splash was given. | |
7569 | if test "${enable_splash+set}" = set; then | |
7570 | enableval="$enable_splash" | |
7571 | ||
7572 | if test "$enableval" = yes; then | |
7573 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
7574 | else | |
7575 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
7576 | fi | |
7577 | ||
7578 | else | |
7579 | ||
7580 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` | |
7581 | if test "x$LINE" != x ; then | |
7582 | eval "DEFAULT_$LINE" | |
7583 | else | |
7584 | no_cache=1 | |
7585 | fi | |
7586 | ||
7587 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
7588 | ||
7589 | fi | |
7590 | ||
7591 | ||
7592 | eval "$ac_cv_use_splash" | |
7593 | if test "$no_cache" != 1; then | |
7594 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
7595 | fi | |
7596 | ||
7597 | if test "$wxUSE_SPLASH" = yes; then | |
7598 | echo "$ac_t""yes" 1>&6 | |
7599 | else | |
7600 | echo "$ac_t""no" 1>&6 | |
7601 | fi | |
7602 | ||
7603 | ||
698dcdb6 | 7604 | echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6 |
321d2b14 | 7605 | echo "configure:7606: checking for --enable-textdlg" >&5 |
10f2d63a VZ |
7606 | no_cache=0 |
7607 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
7608 | if test "${enable_textdlg+set}" = set; then | |
7609 | enableval="$enable_textdlg" | |
698dcdb6 | 7610 | |
10f2d63a VZ |
7611 | if test "$enableval" = yes; then |
7612 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
7613 | else | |
7614 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
7615 | fi | |
698dcdb6 | 7616 | |
10f2d63a | 7617 | else |
698dcdb6 | 7618 | |
10f2d63a VZ |
7619 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` |
7620 | if test "x$LINE" != x ; then | |
7621 | eval "DEFAULT_$LINE" | |
7622 | else | |
7623 | no_cache=1 | |
7624 | fi | |
7625 | ||
7626 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
698dcdb6 VZ |
7627 | |
7628 | fi | |
10f2d63a VZ |
7629 | |
7630 | ||
7631 | eval "$ac_cv_use_textdlg" | |
7632 | if test "$no_cache" != 1; then | |
7633 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
7634 | fi | |
7635 | ||
7636 | if test "$wxUSE_TEXTDLG" = yes; then | |
698dcdb6 | 7637 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7638 | else |
698dcdb6 | 7639 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7640 | fi |
698dcdb6 | 7641 | |
10f2d63a | 7642 | |
698dcdb6 | 7643 | echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6 |
321d2b14 | 7644 | echo "configure:7645: checking for --enable-tipdlg" >&5 |
10f2d63a VZ |
7645 | no_cache=0 |
7646 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
7647 | if test "${enable_tipdlg+set}" = set; then | |
7648 | enableval="$enable_tipdlg" | |
698dcdb6 | 7649 | |
10f2d63a VZ |
7650 | if test "$enableval" = yes; then |
7651 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
7652 | else | |
7653 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
7654 | fi | |
698dcdb6 | 7655 | |
10f2d63a | 7656 | else |
698dcdb6 | 7657 | |
10f2d63a VZ |
7658 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` |
7659 | if test "x$LINE" != x ; then | |
7660 | eval "DEFAULT_$LINE" | |
7661 | else | |
7662 | no_cache=1 | |
7663 | fi | |
7664 | ||
7665 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
698dcdb6 VZ |
7666 | |
7667 | fi | |
10f2d63a VZ |
7668 | |
7669 | ||
7670 | eval "$ac_cv_use_tipdlg" | |
7671 | if test "$no_cache" != 1; then | |
7672 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
7673 | fi | |
7674 | ||
7675 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
698dcdb6 | 7676 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7677 | else |
698dcdb6 | 7678 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7679 | fi |
698dcdb6 | 7680 | |
10f2d63a | 7681 | |
698dcdb6 | 7682 | echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6 |
321d2b14 | 7683 | echo "configure:7684: checking for --enable-progressdlg" >&5 |
10f2d63a VZ |
7684 | no_cache=0 |
7685 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
7686 | if test "${enable_progressdlg+set}" = set; then | |
7687 | enableval="$enable_progressdlg" | |
698dcdb6 | 7688 | |
10f2d63a VZ |
7689 | if test "$enableval" = yes; then |
7690 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
7691 | else | |
7692 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
7693 | fi | |
698dcdb6 | 7694 | |
10f2d63a | 7695 | else |
698dcdb6 | 7696 | |
10f2d63a VZ |
7697 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` |
7698 | if test "x$LINE" != x ; then | |
7699 | eval "DEFAULT_$LINE" | |
7700 | else | |
7701 | no_cache=1 | |
7702 | fi | |
7703 | ||
7704 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
698dcdb6 VZ |
7705 | |
7706 | fi | |
10f2d63a VZ |
7707 | |
7708 | ||
7709 | eval "$ac_cv_use_progressdlg" | |
7710 | if test "$no_cache" != 1; then | |
7711 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
7712 | fi | |
7713 | ||
7714 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
698dcdb6 | 7715 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7716 | else |
698dcdb6 | 7717 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7718 | fi |
698dcdb6 | 7719 | |
10f2d63a | 7720 | |
b1f5d087 | 7721 | echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6 |
321d2b14 | 7722 | echo "configure:7723: checking for --enable-wizarddlg" >&5 |
b1f5d087 VZ |
7723 | no_cache=0 |
7724 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
7725 | if test "${enable_wizarddlg+set}" = set; then | |
7726 | enableval="$enable_wizarddlg" | |
7727 | ||
7728 | if test "$enableval" = yes; then | |
7729 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
7730 | else | |
7731 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
7732 | fi | |
7733 | ||
7734 | else | |
7735 | ||
7736 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` | |
7737 | if test "x$LINE" != x ; then | |
7738 | eval "DEFAULT_$LINE" | |
7739 | else | |
7740 | no_cache=1 | |
7741 | fi | |
7742 | ||
7743 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
7744 | ||
7745 | fi | |
7746 | ||
7747 | ||
7748 | eval "$ac_cv_use_wizarddlg" | |
7749 | if test "$no_cache" != 1; then | |
7750 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
7751 | fi | |
7752 | ||
7753 | if test "$wxUSE_WIZARDDLG" = yes; then | |
7754 | echo "$ac_t""yes" 1>&6 | |
7755 | else | |
7756 | echo "$ac_t""no" 1>&6 | |
7757 | fi | |
7758 | ||
7759 | ||
7760 | ||
7761 | ||
1e6feb95 | 7762 | echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6 |
321d2b14 | 7763 | echo "configure:7764: checking for --enable-menus" >&5 |
1e6feb95 VZ |
7764 | no_cache=0 |
7765 | # Check whether --enable-menus or --disable-menus was given. | |
7766 | if test "${enable_menus+set}" = set; then | |
7767 | enableval="$enable_menus" | |
7768 | ||
7769 | if test "$enableval" = yes; then | |
7770 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
7771 | else | |
7772 | ac_cv_use_menus='wxUSE_MENUS=no' | |
7773 | fi | |
7774 | ||
7775 | else | |
7776 | ||
7777 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
7778 | if test "x$LINE" != x ; then | |
7779 | eval "DEFAULT_$LINE" | |
7780 | else | |
7781 | no_cache=1 | |
7782 | fi | |
7783 | ||
7784 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
7785 | ||
7786 | fi | |
7787 | ||
7788 | ||
7789 | eval "$ac_cv_use_menus" | |
7790 | if test "$no_cache" != 1; then | |
7791 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
7792 | fi | |
7793 | ||
7794 | if test "$wxUSE_MENUS" = yes; then | |
7795 | echo "$ac_t""yes" 1>&6 | |
7796 | else | |
7797 | echo "$ac_t""no" 1>&6 | |
7798 | fi | |
7799 | ||
7800 | ||
698dcdb6 | 7801 | echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6 |
321d2b14 | 7802 | echo "configure:7803: checking for --enable-miniframe" >&5 |
10f2d63a VZ |
7803 | no_cache=0 |
7804 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
7805 | if test "${enable_miniframe+set}" = set; then | |
7806 | enableval="$enable_miniframe" | |
698dcdb6 | 7807 | |
10f2d63a VZ |
7808 | if test "$enableval" = yes; then |
7809 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
7810 | else | |
7811 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
7812 | fi | |
698dcdb6 | 7813 | |
10f2d63a | 7814 | else |
698dcdb6 | 7815 | |
10f2d63a VZ |
7816 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` |
7817 | if test "x$LINE" != x ; then | |
7818 | eval "DEFAULT_$LINE" | |
7819 | else | |
7820 | no_cache=1 | |
7821 | fi | |
7822 | ||
7823 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
698dcdb6 VZ |
7824 | |
7825 | fi | |
10f2d63a VZ |
7826 | |
7827 | ||
7828 | eval "$ac_cv_use_miniframe" | |
7829 | if test "$no_cache" != 1; then | |
7830 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
7831 | fi | |
7832 | ||
7833 | if test "$wxUSE_MINIFRAME" = yes; then | |
698dcdb6 | 7834 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7835 | else |
698dcdb6 | 7836 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7837 | fi |
698dcdb6 | 7838 | |
10f2d63a | 7839 | |
698dcdb6 | 7840 | echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6 |
321d2b14 | 7841 | echo "configure:7842: checking for --enable-tooltips" >&5 |
10f2d63a VZ |
7842 | no_cache=0 |
7843 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
7844 | if test "${enable_tooltips+set}" = set; then | |
7845 | enableval="$enable_tooltips" | |
698dcdb6 | 7846 | |
10f2d63a VZ |
7847 | if test "$enableval" = yes; then |
7848 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
7849 | else | |
7850 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
7851 | fi | |
698dcdb6 | 7852 | |
10f2d63a | 7853 | else |
698dcdb6 | 7854 | |
10f2d63a VZ |
7855 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` |
7856 | if test "x$LINE" != x ; then | |
7857 | eval "DEFAULT_$LINE" | |
7858 | else | |
7859 | no_cache=1 | |
7860 | fi | |
7861 | ||
7862 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
698dcdb6 VZ |
7863 | |
7864 | fi | |
10f2d63a VZ |
7865 | |
7866 | ||
7867 | eval "$ac_cv_use_tooltips" | |
7868 | if test "$no_cache" != 1; then | |
7869 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
7870 | fi | |
7871 | ||
7872 | if test "$wxUSE_TOOLTIPS" = yes; then | |
698dcdb6 | 7873 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7874 | else |
698dcdb6 | 7875 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7876 | fi |
698dcdb6 | 7877 | |
10f2d63a | 7878 | |
698dcdb6 | 7879 | echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6 |
321d2b14 | 7880 | echo "configure:7881: checking for --enable-splines" >&5 |
10f2d63a VZ |
7881 | no_cache=0 |
7882 | # Check whether --enable-splines or --disable-splines was given. | |
7883 | if test "${enable_splines+set}" = set; then | |
7884 | enableval="$enable_splines" | |
698dcdb6 | 7885 | |
10f2d63a VZ |
7886 | if test "$enableval" = yes; then |
7887 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
7888 | else | |
7889 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
7890 | fi | |
698dcdb6 | 7891 | |
10f2d63a | 7892 | else |
698dcdb6 | 7893 | |
10f2d63a VZ |
7894 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` |
7895 | if test "x$LINE" != x ; then | |
7896 | eval "DEFAULT_$LINE" | |
7897 | else | |
7898 | no_cache=1 | |
7899 | fi | |
7900 | ||
7901 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
698dcdb6 VZ |
7902 | |
7903 | fi | |
10f2d63a VZ |
7904 | |
7905 | ||
7906 | eval "$ac_cv_use_splines" | |
7907 | if test "$no_cache" != 1; then | |
7908 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
7909 | fi | |
7910 | ||
7911 | if test "$wxUSE_SPLINES" = yes; then | |
698dcdb6 | 7912 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7913 | else |
698dcdb6 | 7914 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7915 | fi |
698dcdb6 | 7916 | |
10f2d63a | 7917 | |
698dcdb6 | 7918 | echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6 |
321d2b14 | 7919 | echo "configure:7920: checking for --enable-validators" >&5 |
10f2d63a VZ |
7920 | no_cache=0 |
7921 | # Check whether --enable-validators or --disable-validators was given. | |
7922 | if test "${enable_validators+set}" = set; then | |
7923 | enableval="$enable_validators" | |
698dcdb6 | 7924 | |
10f2d63a VZ |
7925 | if test "$enableval" = yes; then |
7926 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
7927 | else | |
7928 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
7929 | fi | |
698dcdb6 | 7930 | |
10f2d63a | 7931 | else |
698dcdb6 | 7932 | |
10f2d63a VZ |
7933 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` |
7934 | if test "x$LINE" != x ; then | |
7935 | eval "DEFAULT_$LINE" | |
7936 | else | |
7937 | no_cache=1 | |
7938 | fi | |
7939 | ||
7940 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
698dcdb6 VZ |
7941 | |
7942 | fi | |
10f2d63a VZ |
7943 | |
7944 | ||
7945 | eval "$ac_cv_use_validators" | |
7946 | if test "$no_cache" != 1; then | |
7947 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
7948 | fi | |
7949 | ||
7950 | if test "$wxUSE_VALIDATORS" = yes; then | |
698dcdb6 | 7951 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7952 | else |
698dcdb6 | 7953 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7954 | fi |
698dcdb6 | 7955 | |
10f2d63a | 7956 | |
698dcdb6 | 7957 | echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6 |
321d2b14 | 7958 | echo "configure:7959: checking for --enable-busyinfo" >&5 |
10f2d63a VZ |
7959 | no_cache=0 |
7960 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
7961 | if test "${enable_busyinfo+set}" = set; then | |
7962 | enableval="$enable_busyinfo" | |
698dcdb6 | 7963 | |
10f2d63a VZ |
7964 | if test "$enableval" = yes; then |
7965 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
7966 | else | |
7967 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
7968 | fi | |
698dcdb6 | 7969 | |
10f2d63a | 7970 | else |
698dcdb6 | 7971 | |
10f2d63a VZ |
7972 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` |
7973 | if test "x$LINE" != x ; then | |
7974 | eval "DEFAULT_$LINE" | |
7975 | else | |
7976 | no_cache=1 | |
7977 | fi | |
7978 | ||
7979 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
698dcdb6 VZ |
7980 | |
7981 | fi | |
10f2d63a VZ |
7982 | |
7983 | ||
7984 | eval "$ac_cv_use_busyinfo" | |
7985 | if test "$no_cache" != 1; then | |
7986 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
7987 | fi | |
7988 | ||
7989 | if test "$wxUSE_BUSYINFO" = yes; then | |
698dcdb6 | 7990 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7991 | else |
698dcdb6 | 7992 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7993 | fi |
698dcdb6 | 7994 | |
10f2d63a | 7995 | |
698dcdb6 | 7996 | echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6 |
321d2b14 | 7997 | echo "configure:7998: checking for --enable-joystick" >&5 |
f6bcfd97 BP |
7998 | no_cache=0 |
7999 | # Check whether --enable-joystick or --disable-joystick was given. | |
8000 | if test "${enable_joystick+set}" = set; then | |
8001 | enableval="$enable_joystick" | |
698dcdb6 | 8002 | |
f6bcfd97 BP |
8003 | if test "$enableval" = yes; then |
8004 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
8005 | else | |
8006 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
8007 | fi | |
698dcdb6 | 8008 | |
f6bcfd97 | 8009 | else |
698dcdb6 | 8010 | |
f6bcfd97 BP |
8011 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` |
8012 | if test "x$LINE" != x ; then | |
8013 | eval "DEFAULT_$LINE" | |
8014 | else | |
8015 | no_cache=1 | |
8016 | fi | |
8017 | ||
8018 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
698dcdb6 VZ |
8019 | |
8020 | fi | |
f6bcfd97 BP |
8021 | |
8022 | ||
8023 | eval "$ac_cv_use_joystick" | |
8024 | if test "$no_cache" != 1; then | |
8025 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
8026 | fi | |
8027 | ||
8028 | if test "$wxUSE_JOYSTICK" = yes; then | |
698dcdb6 | 8029 | echo "$ac_t""yes" 1>&6 |
f6bcfd97 | 8030 | else |
698dcdb6 | 8031 | echo "$ac_t""no" 1>&6 |
f6bcfd97 | 8032 | fi |
698dcdb6 VZ |
8033 | |
8034 | ||
1e6feb95 | 8035 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
321d2b14 | 8036 | echo "configure:8037: checking for --enable-metafile" >&5 |
1e6feb95 VZ |
8037 | no_cache=0 |
8038 | # Check whether --enable-metafile or --disable-metafile was given. | |
8039 | if test "${enable_metafile+set}" = set; then | |
8040 | enableval="$enable_metafile" | |
8041 | ||
8042 | if test "$enableval" = yes; then | |
8043 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
8044 | else | |
8045 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
8046 | fi | |
8047 | ||
8048 | else | |
8049 | ||
8050 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
8051 | if test "x$LINE" != x ; then | |
8052 | eval "DEFAULT_$LINE" | |
8053 | else | |
8054 | no_cache=1 | |
8055 | fi | |
8056 | ||
8057 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
8058 | ||
8059 | fi | |
8060 | ||
8061 | ||
8062 | eval "$ac_cv_use_metafile" | |
8063 | if test "$no_cache" != 1; then | |
8064 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
8065 | fi | |
8066 | ||
8067 | if test "$wxUSE_METAFILE" = yes; then | |
8068 | echo "$ac_t""yes" 1>&6 | |
8069 | else | |
8070 | echo "$ac_t""no" 1>&6 | |
8071 | fi | |
8072 | ||
8073 | ||
24fd6d87 | 8074 | echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6 |
321d2b14 | 8075 | echo "configure:8076: checking for --enable-dragimage" >&5 |
24fd6d87 VZ |
8076 | no_cache=0 |
8077 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
8078 | if test "${enable_dragimage+set}" = set; then | |
8079 | enableval="$enable_dragimage" | |
8080 | ||
8081 | if test "$enableval" = yes; then | |
8082 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
8083 | else | |
8084 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
8085 | fi | |
8086 | ||
8087 | else | |
8088 | ||
8089 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` | |
8090 | if test "x$LINE" != x ; then | |
8091 | eval "DEFAULT_$LINE" | |
8092 | else | |
8093 | no_cache=1 | |
8094 | fi | |
8095 | ||
8096 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
8097 | ||
8098 | fi | |
8099 | ||
8100 | ||
8101 | eval "$ac_cv_use_dragimage" | |
8102 | if test "$no_cache" != 1; then | |
8103 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
8104 | fi | |
8105 | ||
8106 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
8107 | echo "$ac_t""yes" 1>&6 | |
8108 | else | |
8109 | echo "$ac_t""no" 1>&6 | |
8110 | fi | |
8111 | ||
8112 | ||
10f2d63a | 8113 | |
698dcdb6 | 8114 | |
edae8572 | 8115 | echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6 |
321d2b14 | 8116 | echo "configure:8117: checking for --enable-palette" >&5 |
edae8572 VZ |
8117 | no_cache=0 |
8118 | # Check whether --enable-palette or --disable-palette was given. | |
8119 | if test "${enable_palette+set}" = set; then | |
8120 | enableval="$enable_palette" | |
8121 | ||
8122 | if test "$enableval" = yes; then | |
8123 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
8124 | else | |
8125 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
8126 | fi | |
8127 | ||
8128 | else | |
8129 | ||
8130 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` | |
8131 | if test "x$LINE" != x ; then | |
8132 | eval "DEFAULT_$LINE" | |
8133 | else | |
8134 | no_cache=1 | |
8135 | fi | |
8136 | ||
8137 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
8138 | ||
8139 | fi | |
8140 | ||
8141 | ||
8142 | eval "$ac_cv_use_palette" | |
8143 | if test "$no_cache" != 1; then | |
8144 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
8145 | fi | |
8146 | ||
8147 | if test "$wxUSE_PALETTE" = yes; then | |
8148 | echo "$ac_t""yes" 1>&6 | |
8149 | else | |
8150 | echo "$ac_t""no" 1>&6 | |
8151 | fi | |
8152 | ||
8153 | ||
698dcdb6 | 8154 | echo $ac_n "checking for --enable-image""... $ac_c" 1>&6 |
321d2b14 | 8155 | echo "configure:8156: checking for --enable-image" >&5 |
0046ff7c VS |
8156 | no_cache=0 |
8157 | # Check whether --enable-image or --disable-image was given. | |
8158 | if test "${enable_image+set}" = set; then | |
8159 | enableval="$enable_image" | |
698dcdb6 | 8160 | |
0046ff7c VS |
8161 | if test "$enableval" = yes; then |
8162 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
8163 | else | |
8164 | ac_cv_use_image='wxUSE_IMAGE=no' | |
8165 | fi | |
698dcdb6 | 8166 | |
0046ff7c | 8167 | else |
698dcdb6 | 8168 | |
0046ff7c VS |
8169 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` |
8170 | if test "x$LINE" != x ; then | |
8171 | eval "DEFAULT_$LINE" | |
8172 | else | |
8173 | no_cache=1 | |
8174 | fi | |
8175 | ||
8176 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
698dcdb6 VZ |
8177 | |
8178 | fi | |
0046ff7c VS |
8179 | |
8180 | ||
8181 | eval "$ac_cv_use_image" | |
8182 | if test "$no_cache" != 1; then | |
8183 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
8184 | fi | |
8185 | ||
8186 | if test "$wxUSE_IMAGE" = yes; then | |
698dcdb6 | 8187 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 8188 | else |
698dcdb6 | 8189 | echo "$ac_t""no" 1>&6 |
0046ff7c | 8190 | fi |
698dcdb6 | 8191 | |
0046ff7c | 8192 | |
698dcdb6 | 8193 | echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6 |
321d2b14 | 8194 | echo "configure:8195: checking for --enable-gif" >&5 |
10f2d63a VZ |
8195 | no_cache=0 |
8196 | # Check whether --enable-gif or --disable-gif was given. | |
8197 | if test "${enable_gif+set}" = set; then | |
8198 | enableval="$enable_gif" | |
698dcdb6 | 8199 | |
10f2d63a VZ |
8200 | if test "$enableval" = yes; then |
8201 | ac_cv_use_gif='wxUSE_GIF=yes' | |
8202 | else | |
8203 | ac_cv_use_gif='wxUSE_GIF=no' | |
8204 | fi | |
698dcdb6 | 8205 | |
10f2d63a | 8206 | else |
698dcdb6 | 8207 | |
10f2d63a VZ |
8208 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` |
8209 | if test "x$LINE" != x ; then | |
8210 | eval "DEFAULT_$LINE" | |
8211 | else | |
8212 | no_cache=1 | |
8213 | fi | |
8214 | ||
8215 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
698dcdb6 VZ |
8216 | |
8217 | fi | |
10f2d63a VZ |
8218 | |
8219 | ||
8220 | eval "$ac_cv_use_gif" | |
8221 | if test "$no_cache" != 1; then | |
8222 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
8223 | fi | |
8224 | ||
8225 | if test "$wxUSE_GIF" = yes; then | |
698dcdb6 | 8226 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8227 | else |
698dcdb6 | 8228 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8229 | fi |
698dcdb6 | 8230 | |
10f2d63a | 8231 | |
698dcdb6 | 8232 | echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6 |
321d2b14 | 8233 | echo "configure:8234: checking for --enable-pcx" >&5 |
10f2d63a VZ |
8234 | no_cache=0 |
8235 | # Check whether --enable-pcx or --disable-pcx was given. | |
8236 | if test "${enable_pcx+set}" = set; then | |
8237 | enableval="$enable_pcx" | |
698dcdb6 | 8238 | |
10f2d63a VZ |
8239 | if test "$enableval" = yes; then |
8240 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
8241 | else | |
8242 | ac_cv_use_pcx='wxUSE_PCX=no' | |
8243 | fi | |
698dcdb6 | 8244 | |
10f2d63a | 8245 | else |
698dcdb6 | 8246 | |
10f2d63a VZ |
8247 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` |
8248 | if test "x$LINE" != x ; then | |
8249 | eval "DEFAULT_$LINE" | |
8250 | else | |
8251 | no_cache=1 | |
8252 | fi | |
8253 | ||
8254 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
698dcdb6 VZ |
8255 | |
8256 | fi | |
10f2d63a VZ |
8257 | |
8258 | ||
8259 | eval "$ac_cv_use_pcx" | |
8260 | if test "$no_cache" != 1; then | |
8261 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
8262 | fi | |
8263 | ||
8264 | if test "$wxUSE_PCX" = yes; then | |
698dcdb6 | 8265 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8266 | else |
698dcdb6 | 8267 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8268 | fi |
698dcdb6 | 8269 | |
10f2d63a | 8270 | |
4b6b4dfc | 8271 | echo $ac_n "checking for --enable-iff""... $ac_c" 1>&6 |
321d2b14 | 8272 | echo "configure:8273: checking for --enable-iff" >&5 |
4b6b4dfc RR |
8273 | no_cache=0 |
8274 | # Check whether --enable-iff or --disable-iff was given. | |
8275 | if test "${enable_iff+set}" = set; then | |
8276 | enableval="$enable_iff" | |
8277 | ||
8278 | if test "$enableval" = yes; then | |
8279 | ac_cv_use_iff='wxUSE_IFF=yes' | |
8280 | else | |
8281 | ac_cv_use_iff='wxUSE_IFF=no' | |
8282 | fi | |
8283 | ||
8284 | else | |
8285 | ||
8286 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` | |
8287 | if test "x$LINE" != x ; then | |
8288 | eval "DEFAULT_$LINE" | |
8289 | else | |
8290 | no_cache=1 | |
8291 | fi | |
8292 | ||
8293 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
8294 | ||
8295 | fi | |
8296 | ||
8297 | ||
8298 | eval "$ac_cv_use_iff" | |
8299 | if test "$no_cache" != 1; then | |
8300 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
8301 | fi | |
8302 | ||
8303 | if test "$wxUSE_IFF" = yes; then | |
8304 | echo "$ac_t""yes" 1>&6 | |
8305 | else | |
8306 | echo "$ac_t""no" 1>&6 | |
8307 | fi | |
8308 | ||
8309 | ||
698dcdb6 | 8310 | echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6 |
321d2b14 | 8311 | echo "configure:8312: checking for --enable-pnm" >&5 |
10f2d63a VZ |
8312 | no_cache=0 |
8313 | # Check whether --enable-pnm or --disable-pnm was given. | |
8314 | if test "${enable_pnm+set}" = set; then | |
8315 | enableval="$enable_pnm" | |
698dcdb6 | 8316 | |
10f2d63a VZ |
8317 | if test "$enableval" = yes; then |
8318 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
8319 | else | |
8320 | ac_cv_use_pnm='wxUSE_PNM=no' | |
8321 | fi | |
698dcdb6 | 8322 | |
10f2d63a | 8323 | else |
698dcdb6 | 8324 | |
10f2d63a VZ |
8325 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` |
8326 | if test "x$LINE" != x ; then | |
8327 | eval "DEFAULT_$LINE" | |
8328 | else | |
8329 | no_cache=1 | |
8330 | fi | |
8331 | ||
8332 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
698dcdb6 VZ |
8333 | |
8334 | fi | |
10f2d63a VZ |
8335 | |
8336 | ||
8337 | eval "$ac_cv_use_pnm" | |
8338 | if test "$no_cache" != 1; then | |
8339 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
8340 | fi | |
8341 | ||
8342 | if test "$wxUSE_PNM" = yes; then | |
698dcdb6 | 8343 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8344 | else |
698dcdb6 | 8345 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8346 | fi |
698dcdb6 | 8347 | |
10f2d63a | 8348 | |
69d27ff7 | 8349 | echo $ac_n "checking for --enable-xpm""... $ac_c" 1>&6 |
321d2b14 | 8350 | echo "configure:8351: checking for --enable-xpm" >&5 |
0046ff7c | 8351 | no_cache=0 |
69d27ff7 MB |
8352 | # Check whether --enable-xpm or --disable-xpm was given. |
8353 | if test "${enable_xpm+set}" = set; then | |
8354 | enableval="$enable_xpm" | |
698dcdb6 | 8355 | |
0046ff7c | 8356 | if test "$enableval" = yes; then |
69d27ff7 | 8357 | ac_cv_use_xpm='wxUSE_XPM=yes' |
0046ff7c | 8358 | else |
69d27ff7 | 8359 | ac_cv_use_xpm='wxUSE_XPM=no' |
0046ff7c | 8360 | fi |
698dcdb6 | 8361 | |
0046ff7c | 8362 | else |
698dcdb6 | 8363 | |
0046ff7c VS |
8364 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` |
8365 | if test "x$LINE" != x ; then | |
8366 | eval "DEFAULT_$LINE" | |
8367 | else | |
8368 | no_cache=1 | |
8369 | fi | |
8370 | ||
69d27ff7 | 8371 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM |
698dcdb6 VZ |
8372 | |
8373 | fi | |
0046ff7c VS |
8374 | |
8375 | ||
69d27ff7 | 8376 | eval "$ac_cv_use_xpm" |
0046ff7c | 8377 | if test "$no_cache" != 1; then |
69d27ff7 | 8378 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp |
0046ff7c VS |
8379 | fi |
8380 | ||
8381 | if test "$wxUSE_XPM" = yes; then | |
698dcdb6 | 8382 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 8383 | else |
698dcdb6 | 8384 | echo "$ac_t""no" 1>&6 |
0046ff7c | 8385 | fi |
698dcdb6 | 8386 | |
0046ff7c | 8387 | |
c7206e64 | 8388 | echo $ac_n "checking for --enable-ico_cur""... $ac_c" 1>&6 |
321d2b14 | 8389 | echo "configure:8390: checking for --enable-ico_cur" >&5 |
658974ae | 8390 | no_cache=0 |
c7206e64 VS |
8391 | # Check whether --enable-ico_cur or --disable-ico_cur was given. |
8392 | if test "${enable_ico_cur+set}" = set; then | |
8393 | enableval="$enable_ico_cur" | |
658974ae VS |
8394 | |
8395 | if test "$enableval" = yes; then | |
c7206e64 | 8396 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' |
658974ae | 8397 | else |
c7206e64 | 8398 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' |
658974ae VS |
8399 | fi |
8400 | ||
8401 | else | |
8402 | ||
8403 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` | |
8404 | if test "x$LINE" != x ; then | |
8405 | eval "DEFAULT_$LINE" | |
8406 | else | |
8407 | no_cache=1 | |
8408 | fi | |
8409 | ||
c7206e64 | 8410 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR |
658974ae VS |
8411 | |
8412 | fi | |
8413 | ||
8414 | ||
c7206e64 | 8415 | eval "$ac_cv_use_ico_cur" |
658974ae | 8416 | if test "$no_cache" != 1; then |
c7206e64 | 8417 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp |
658974ae VS |
8418 | fi |
8419 | ||
8420 | if test "$wxUSE_ICO_CUR" = yes; then | |
8421 | echo "$ac_t""yes" 1>&6 | |
8422 | else | |
8423 | echo "$ac_t""no" 1>&6 | |
8424 | fi | |
8425 | ||
8426 | ||
b12915c1 VZ |
8427 | fi |
8428 | ||
d558c907 VS |
8429 | case "${host}" in |
8430 | *-pc-os2_emx | *-pc-os2-emx ) | |
8431 | LEX_STEM="lexyy" | |
8432 | ;; | |
8433 | *) | |
8434 | PATH_IFS=':' | |
8435 | LEX_STEM="lex.yy" | |
8436 | ;; | |
8437 | esac | |
8438 | ||
8439 | ||
698dcdb6 | 8440 | |
10f2d63a VZ |
8441 | echo "saving argument cache $wx_arg_cache_file" |
8442 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
698dcdb6 | 8443 | |
10f2d63a | 8444 | |
698dcdb6 VZ |
8445 | |
8446 | echo $ac_n "checking for toolkit""... $ac_c" 1>&6 | |
321d2b14 | 8447 | echo "configure:8448: checking for toolkit" >&5 |
10f2d63a VZ |
8448 | |
8449 | if test "$wxUSE_GUI" = "yes"; then | |
8450 | ||
3a922bb4 RL |
8451 | if test "$USE_BEOS" = 1; then |
8452 | { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; } | |
8453 | fi | |
b12915c1 | 8454 | |
3a922bb4 RL |
8455 | if test "$TOOLKIT_GIVEN" = 1; then |
8456 | for toolkit in `echo $ALL_TOOLKITS`; do | |
8457 | var=wxUSE_$toolkit | |
8458 | eval "value=\$${var}" | |
8459 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
8460 | done | |
10f2d63a | 8461 | else |
3a922bb4 RL |
8462 | for toolkit in `echo $ALL_TOOLKITS`; do |
8463 | if test "$has_toolkit_in_cache" != 1; then | |
8464 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
8465 | else | |
8466 | var=DEFAULT_wxUSE_$toolkit | |
8467 | fi | |
8468 | eval "wxUSE_$toolkit=\$${var}" | |
8469 | done | |
10f2d63a | 8470 | fi |
10f2d63a | 8471 | |
3a922bb4 | 8472 | NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \ |
f79bd02d | 8473 | + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}` |
10f2d63a | 8474 | |
d558c907 | 8475 | case "${host}" in |
6fa882bd | 8476 | *-pc-os2_emx | *-pc-os2-emx ) |
3a922bb4 | 8477 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` |
3a922bb4 | 8478 | esac |
10f2d63a | 8479 | |
3a922bb4 RL |
8480 | case "$NUM_TOOLKITS" in |
8481 | 1) | |
8482 | ;; | |
8483 | 0) | |
8484 | { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; } | |
8485 | ;; | |
8486 | *) | |
8487 | { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; } | |
8488 | esac | |
10f2d63a | 8489 | |
3a922bb4 RL |
8490 | for toolkit in `echo $ALL_TOOLKITS`; do |
8491 | var=wxUSE_$toolkit | |
8492 | eval "value=\$${var}" | |
8493 | if test "x$value" != x; then | |
8494 | cache_var=CACHE_$toolkit | |
8495 | eval "cache=\$${cache_var}" | |
8496 | if test "$cache" = 1; then | |
8497 | echo "$var=$value" >> ${wx_arg_cache_file} | |
8498 | fi | |
8499 | if test "$value" = 1; then | |
8500 | toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]` | |
8501 | echo "$ac_t""$toolkit_echo" 1>&6 | |
8502 | fi | |
8503 | fi | |
8504 | done | |
10f2d63a | 8505 | else |
3a922bb4 | 8506 | echo "$ac_t""base ($host_alias hosted) only" 1>&6 |
10f2d63a VZ |
8507 | fi |
8508 | ||
698dcdb6 VZ |
8509 | |
8510 | cat > confcache <<\EOF | |
10f2d63a VZ |
8511 | # This file is a shell script that caches the results of configure |
8512 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
8513 | # scripts and configure runs. It is not useful on other systems. |
8514 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 8515 | # |
698dcdb6 VZ |
8516 | # By default, configure uses ./config.cache as the cache file, |
8517 | # creating it if it does not exist already. You can give configure | |
8518 | # the --cache-file=FILE option to use a different cache file; that is | |
8519 | # what configure does when it calls configure scripts in | |
8520 | # subdirectories, so they share the cache. | |
8521 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
8522 | # config.status only pays attention to the cache file if you give it the | |
8523 | # --recheck option to rerun configure. | |
10f2d63a | 8524 | # |
698dcdb6 | 8525 | EOF |
10f2d63a VZ |
8526 | # The following way of writing the cache mishandles newlines in values, |
8527 | # but we know of no workaround that is simple, portable, and efficient. | |
8528 | # So, don't put newlines in cache variables' values. | |
8529 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
8530 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
8531 | (set) 2>&1 | |
8532 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
8533 | *ac_space=\ *) | |
8534 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
8535 | # turns \\\\ into \\, and sed turns \\ into \). | |
8536 | sed -n \ | |
8537 | -e "s/'/'\\\\''/g" \ | |
8538 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
8539 | ;; | |
8540 | *) | |
8541 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
8542 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
8543 | ;; | |
8544 | esac >> confcache | |
8545 | if cmp -s $cache_file confcache; then | |
8546 | : | |
8547 | else | |
10f2d63a | 8548 | if test -w $cache_file; then |
698dcdb6 VZ |
8549 | echo "updating cache $cache_file" |
8550 | cat confcache > $cache_file | |
10f2d63a VZ |
8551 | else |
8552 | echo "not updating unwritable cache $cache_file" | |
8553 | fi | |
8554 | fi | |
8555 | rm -f confcache | |
8556 | ||
698dcdb6 | 8557 | |
e59890c3 | 8558 | if test "$build" != "$host" ; then |
9d353d4a | 8559 | if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then |
3a922bb4 RL |
8560 | CC=$host_alias-gcc |
8561 | CXX=$host_alias-c++ | |
8562 | AR=$host_alias-ar | |
8563 | RANLIB=$host_alias-ranlib | |
8564 | DLLTOOL=$host_alias-dlltool | |
8565 | RESCOMP=$host_alias-windres | |
8566 | LD=$host_alias-ld | |
8567 | NM=$host_alias-nm | |
8568 | STRIP=$host_alias-strip | |
8569 | else | |
8570 | { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; } | |
8571 | fi | |
10f2d63a VZ |
8572 | fi |
8573 | ||
ec603395 | 8574 | CFLAGS=${CFLAGS:=} |
698dcdb6 | 8575 | # Extract the first word of "gcc", so it can be a program name with args. |
1e487827 | 8576 | set dummy gcc; ac_word=$2 |
698dcdb6 | 8577 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
321d2b14 | 8578 | echo "configure:8579: checking for $ac_word" >&5 |
698dcdb6 VZ |
8579 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8580 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6232543b VS |
8581 | else |
8582 | if test -n "$CC"; then | |
8583 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10f2d63a | 8584 | else |
698dcdb6 VZ |
8585 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8586 | ac_dummy="$PATH" | |
8587 | for ac_dir in $ac_dummy; do | |
8588 | test -z "$ac_dir" && ac_dir=. | |
8589 | if test -f $ac_dir/$ac_word; then | |
8590 | ac_cv_prog_CC="gcc" | |
8591 | break | |
8592 | fi | |
8593 | done | |
8594 | IFS="$ac_save_ifs" | |
10f2d63a | 8595 | fi |
6232543b | 8596 | fi |
698dcdb6 | 8597 | CC="$ac_cv_prog_CC" |
6232543b | 8598 | if test -n "$CC"; then |
698dcdb6 | 8599 | echo "$ac_t""$CC" 1>&6 |
1e487827 | 8600 | else |
698dcdb6 | 8601 | echo "$ac_t""no" 1>&6 |
1e487827 | 8602 | fi |
6232543b | 8603 | |
1e487827 VS |
8604 | if test -z "$CC"; then |
8605 | # Extract the first word of "cc", so it can be a program name with args. | |
8606 | set dummy cc; ac_word=$2 | |
698dcdb6 | 8607 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
321d2b14 | 8608 | echo "configure:8609: checking for $ac_word" >&5 |
698dcdb6 VZ |
8609 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8610 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 VS |
8611 | else |
8612 | if test -n "$CC"; then | |
8613 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
8614 | else | |
698dcdb6 | 8615 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1e487827 | 8616 | ac_prog_rejected=no |
698dcdb6 VZ |
8617 | ac_dummy="$PATH" |
8618 | for ac_dir in $ac_dummy; do | |
8619 | test -z "$ac_dir" && ac_dir=. | |
8620 | if test -f $ac_dir/$ac_word; then | |
8621 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
8622 | ac_prog_rejected=yes | |
8623 | continue | |
8624 | fi | |
8625 | ac_cv_prog_CC="cc" | |
8626 | break | |
8627 | fi | |
8628 | done | |
8629 | IFS="$ac_save_ifs" | |
1e487827 VS |
8630 | if test $ac_prog_rejected = yes; then |
8631 | # We found a bogon in the path, so make sure we never use it. | |
8632 | set dummy $ac_cv_prog_CC | |
8633 | shift | |
698dcdb6 | 8634 | if test $# -gt 0; then |
1e487827 VS |
8635 | # We chose a different compiler from the bogus one. |
8636 | # However, it has the same basename, so the bogon will be chosen | |
8637 | # first if we set CC to just the basename; use the full file name. | |
8638 | shift | |
698dcdb6 | 8639 | set dummy "$ac_dir/$ac_word" "$@" |
1e487827 VS |
8640 | shift |
8641 | ac_cv_prog_CC="$@" | |
703e0a69 | 8642 | fi |
1e487827 VS |
8643 | fi |
8644 | fi | |
8645 | fi | |
698dcdb6 | 8646 | CC="$ac_cv_prog_CC" |
1e487827 | 8647 | if test -n "$CC"; then |
698dcdb6 | 8648 | echo "$ac_t""$CC" 1>&6 |
703e0a69 | 8649 | else |
698dcdb6 | 8650 | echo "$ac_t""no" 1>&6 |
703e0a69 | 8651 | fi |
1e487827 | 8652 | |
698dcdb6 VZ |
8653 | if test -z "$CC"; then |
8654 | case "`uname -s`" in | |
8655 | *win32* | *WIN32*) | |
8656 | # Extract the first word of "cl", so it can be a program name with args. | |
8657 | set dummy cl; ac_word=$2 | |
8658 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
321d2b14 | 8659 | echo "configure:8660: checking for $ac_word" >&5 |
698dcdb6 VZ |
8660 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8661 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 VS |
8662 | else |
8663 | if test -n "$CC"; then | |
8664 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
703e0a69 | 8665 | else |
698dcdb6 VZ |
8666 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8667 | ac_dummy="$PATH" | |
8668 | for ac_dir in $ac_dummy; do | |
8669 | test -z "$ac_dir" && ac_dir=. | |
8670 | if test -f $ac_dir/$ac_word; then | |
8671 | ac_cv_prog_CC="cl" | |
8672 | break | |
8673 | fi | |
8674 | done | |
8675 | IFS="$ac_save_ifs" | |
703e0a69 | 8676 | fi |
1e487827 | 8677 | fi |
698dcdb6 | 8678 | CC="$ac_cv_prog_CC" |
1e487827 | 8679 | if test -n "$CC"; then |
698dcdb6 | 8680 | echo "$ac_t""$CC" 1>&6 |
1e487827 | 8681 | else |
698dcdb6 | 8682 | echo "$ac_t""no" 1>&6 |
1e487827 | 8683 | fi |
698dcdb6 VZ |
8684 | ;; |
8685 | esac | |
8686 | fi | |
8687 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
1e487827 VS |
8688 | fi |
8689 | ||
698dcdb6 | 8690 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
321d2b14 | 8691 | echo "configure:8692: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
1e487827 | 8692 | |
698dcdb6 VZ |
8693 | ac_ext=c |
8694 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8695 | ac_cpp='$CPP $CPPFLAGS' | |
8696 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8697 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8698 | cross_compiling=$ac_cv_prog_cc_cross | |
6232543b | 8699 | |
698dcdb6 | 8700 | cat > conftest.$ac_ext << EOF |
1e487827 | 8701 | |
321d2b14 | 8702 | #line 8703 "configure" |
1e487827 VS |
8703 | #include "confdefs.h" |
8704 | ||
698dcdb6 VZ |
8705 | main(){return(0);} |
8706 | EOF | |
321d2b14 | 8707 | if { (eval echo configure:8708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
8708 | ac_cv_prog_cc_works=yes |
8709 | # If we can't run a trivial program, we are probably using a cross compiler. | |
8710 | if (./conftest; exit) 2>/dev/null; then | |
8711 | ac_cv_prog_cc_cross=no | |
8712 | else | |
8713 | ac_cv_prog_cc_cross=yes | |
8714 | fi | |
8715 | else | |
8716 | echo "configure: failed program was:" >&5 | |
8717 | cat conftest.$ac_ext >&5 | |
8718 | ac_cv_prog_cc_works=no | |
8719 | fi | |
8720 | rm -fr conftest* | |
8721 | ac_ext=c | |
8722 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8723 | ac_cpp='$CPP $CPPFLAGS' | |
8724 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8725 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8726 | cross_compiling=$ac_cv_prog_cc_cross | |
8727 | ||
8728 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
8729 | if test $ac_cv_prog_cc_works = no; then | |
8730 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
8731 | fi | |
8732 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
321d2b14 | 8733 | echo "configure:8734: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
698dcdb6 VZ |
8734 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
8735 | cross_compiling=$ac_cv_prog_cc_cross | |
8736 | ||
8737 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
321d2b14 | 8738 | echo "configure:8739: checking whether we are using GNU C" >&5 |
698dcdb6 VZ |
8739 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
8740 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8741 | else | |
8742 | cat > conftest.c <<EOF | |
8743 | #ifdef __GNUC__ | |
8744 | yes; | |
1e487827 | 8745 | #endif |
698dcdb6 | 8746 | EOF |
321d2b14 | 8747 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
698dcdb6 VZ |
8748 | ac_cv_prog_gcc=yes |
8749 | else | |
8750 | ac_cv_prog_gcc=no | |
8751 | fi | |
8752 | fi | |
1e487827 | 8753 | |
698dcdb6 | 8754 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
1e487827 | 8755 | |
698dcdb6 VZ |
8756 | if test $ac_cv_prog_gcc = yes; then |
8757 | GCC=yes | |
8758 | else | |
8759 | GCC= | |
8760 | fi | |
1e487827 | 8761 | |
698dcdb6 VZ |
8762 | ac_test_CFLAGS="${CFLAGS+set}" |
8763 | ac_save_CFLAGS="$CFLAGS" | |
8764 | CFLAGS= | |
8765 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
321d2b14 | 8766 | echo "configure:8767: checking whether ${CC-cc} accepts -g" >&5 |
698dcdb6 VZ |
8767 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
8768 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8769 | else | |
8770 | echo 'void f(){}' > conftest.c | |
8771 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
10f2d63a VZ |
8772 | ac_cv_prog_cc_g=yes |
8773 | else | |
698dcdb6 | 8774 | ac_cv_prog_cc_g=no |
10f2d63a | 8775 | fi |
698dcdb6 VZ |
8776 | rm -f conftest* |
8777 | ||
10f2d63a | 8778 | fi |
698dcdb6 VZ |
8779 | |
8780 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
10f2d63a | 8781 | if test "$ac_test_CFLAGS" = set; then |
698dcdb6 | 8782 | CFLAGS="$ac_save_CFLAGS" |
10f2d63a VZ |
8783 | elif test $ac_cv_prog_cc_g = yes; then |
8784 | if test "$GCC" = yes; then | |
8785 | CFLAGS="-g -O2" | |
8786 | else | |
8787 | CFLAGS="-g" | |
8788 | fi | |
8789 | else | |
8790 | if test "$GCC" = yes; then | |
8791 | CFLAGS="-O2" | |
8792 | else | |
8793 | CFLAGS= | |
8794 | fi | |
8795 | fi | |
8796 | ||
8797 | ||
698dcdb6 | 8798 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
321d2b14 | 8799 | echo "configure:8800: checking how to run the C preprocessor" >&5 |
10f2d63a VZ |
8800 | # On Suns, sometimes $CPP names a directory. |
8801 | if test -n "$CPP" && test -d "$CPP"; then | |
8802 | CPP= | |
8803 | fi | |
8804 | if test -z "$CPP"; then | |
698dcdb6 VZ |
8805 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
8806 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8807 | else | |
8808 | # This must be in double quotes, not single quotes, because CPP may get | |
8809 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
8810 | CPP="${CC-cc} -E" | |
10f2d63a | 8811 | # On the NeXT, cc -E runs the code through the compiler's parser, |
698dcdb6 VZ |
8812 | # not just through cpp. |
8813 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 8814 | #line 8815 "configure" |
10f2d63a VZ |
8815 | #include "confdefs.h" |
8816 | #include <assert.h> | |
698dcdb6 VZ |
8817 | Syntax Error |
8818 | EOF | |
8819 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
321d2b14 | 8820 | { (eval echo configure:8821: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8821 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8822 | if test -z "$ac_err"; then | |
10f2d63a VZ |
8823 | : |
8824 | else | |
698dcdb6 VZ |
8825 | echo "$ac_err" >&5 |
8826 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8827 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8828 | rm -rf conftest* |
8829 | CPP="${CC-cc} -E -traditional-cpp" | |
8830 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 8831 | #line 8832 "configure" |
10f2d63a | 8832 | #include "confdefs.h" |
698dcdb6 VZ |
8833 | #include <assert.h> |
8834 | Syntax Error | |
8835 | EOF | |
8836 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
321d2b14 | 8837 | { (eval echo configure:8838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8838 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8839 | if test -z "$ac_err"; then | |
8840 | : | |
10f2d63a | 8841 | else |
698dcdb6 VZ |
8842 | echo "$ac_err" >&5 |
8843 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8844 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8845 | rm -rf conftest* |
8846 | CPP="${CC-cc} -nologo -E" | |
8847 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 8848 | #line 8849 "configure" |
10f2d63a VZ |
8849 | #include "confdefs.h" |
8850 | #include <assert.h> | |
698dcdb6 VZ |
8851 | Syntax Error |
8852 | EOF | |
8853 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
321d2b14 | 8854 | { (eval echo configure:8855: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8855 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8856 | if test -z "$ac_err"; then | |
10f2d63a VZ |
8857 | : |
8858 | else | |
698dcdb6 VZ |
8859 | echo "$ac_err" >&5 |
8860 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8861 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8862 | rm -rf conftest* |
8863 | CPP=/lib/cpp | |
10f2d63a | 8864 | fi |
698dcdb6 | 8865 | rm -f conftest* |
10f2d63a | 8866 | fi |
698dcdb6 | 8867 | rm -f conftest* |
703e0a69 | 8868 | fi |
698dcdb6 VZ |
8869 | rm -f conftest* |
8870 | ac_cv_prog_CPP="$CPP" | |
8871 | fi | |
8872 | CPP="$ac_cv_prog_CPP" | |
10f2d63a | 8873 | else |
698dcdb6 | 8874 | ac_cv_prog_CPP="$CPP" |
10f2d63a | 8875 | fi |
698dcdb6 | 8876 | echo "$ac_t""$CPP" 1>&6 |
10f2d63a | 8877 | |
698dcdb6 VZ |
8878 | if test $ac_cv_prog_gcc = yes; then |
8879 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
321d2b14 | 8880 | echo "configure:8881: checking whether ${CC-cc} needs -traditional" >&5 |
698dcdb6 VZ |
8881 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
8882 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8883 | else |
8884 | ac_pattern="Autoconf.*'x'" | |
698dcdb6 | 8885 | cat > conftest.$ac_ext <<EOF |
321d2b14 | 8886 | #line 8887 "configure" |
10f2d63a VZ |
8887 | #include "confdefs.h" |
8888 | #include <sgtty.h> | |
8889 | Autoconf TIOCGETP | |
698dcdb6 | 8890 | EOF |
10f2d63a VZ |
8891 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8892 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
698dcdb6 | 8893 | rm -rf conftest* |
10f2d63a VZ |
8894 | ac_cv_prog_gcc_traditional=yes |
8895 | else | |
698dcdb6 | 8896 | rm -rf conftest* |
10f2d63a VZ |
8897 | ac_cv_prog_gcc_traditional=no |
8898 | fi | |
8899 | rm -f conftest* | |
8900 | ||
698dcdb6 | 8901 | |
10f2d63a | 8902 | if test $ac_cv_prog_gcc_traditional = no; then |
698dcdb6 | 8903 | cat > conftest.$ac_ext <<EOF |
321d2b14 | 8904 | #line 8905 "configure" |
10f2d63a VZ |
8905 | #include "confdefs.h" |
8906 | #include <termio.h> | |
8907 | Autoconf TCGETA | |
698dcdb6 | 8908 | EOF |
10f2d63a VZ |
8909 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8910 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
698dcdb6 | 8911 | rm -rf conftest* |
10f2d63a VZ |
8912 | ac_cv_prog_gcc_traditional=yes |
8913 | fi | |
8914 | rm -f conftest* | |
8915 | ||
8916 | fi | |
8917 | fi | |
698dcdb6 VZ |
8918 | |
8919 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
10f2d63a VZ |
8920 | if test $ac_cv_prog_gcc_traditional = yes; then |
8921 | CC="$CC -traditional" | |
8922 | fi | |
8923 | fi | |
8924 | ||
703e0a69 | 8925 | |
698dcdb6 VZ |
8926 | |
8927 | ac_ext=C | |
8928 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 8929 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
8930 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
8931 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8932 | cross_compiling=$ac_cv_prog_cxx_cross | |
8933 | ||
8934 | ||
ec603395 | 8935 | CXXFLAGS=${CXXFLAGS:=} |
698dcdb6 VZ |
8936 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
8937 | do | |
8938 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
8939 | set dummy $ac_prog; ac_word=$2 | |
8940 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
321d2b14 | 8941 | echo "configure:8942: checking for $ac_word" >&5 |
698dcdb6 VZ |
8942 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
8943 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8944 | else |
8945 | if test -n "$CXX"; then | |
8946 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
8947 | else | |
698dcdb6 VZ |
8948 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8949 | ac_dummy="$PATH" | |
8950 | for ac_dir in $ac_dummy; do | |
8951 | test -z "$ac_dir" && ac_dir=. | |
8952 | if test -f $ac_dir/$ac_word; then | |
8953 | ac_cv_prog_CXX="$ac_prog" | |
8954 | break | |
8955 | fi | |
8956 | done | |
8957 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8958 | fi |
8959 | fi | |
698dcdb6 | 8960 | CXX="$ac_cv_prog_CXX" |
10f2d63a | 8961 | if test -n "$CXX"; then |
698dcdb6 | 8962 | echo "$ac_t""$CXX" 1>&6 |
10f2d63a | 8963 | else |
698dcdb6 | 8964 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8965 | fi |
8966 | ||
698dcdb6 | 8967 | test -n "$CXX" && break |
10f2d63a | 8968 | done |
698dcdb6 | 8969 | test -n "$CXX" || CXX="gcc" |
10f2d63a VZ |
8970 | |
8971 | ||
698dcdb6 | 8972 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
321d2b14 | 8973 | echo "configure:8974: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
10f2d63a | 8974 | |
698dcdb6 VZ |
8975 | ac_ext=C |
8976 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8977 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8978 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8979 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8980 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 8981 | |
698dcdb6 VZ |
8982 | cat > conftest.$ac_ext << EOF |
8983 | ||
321d2b14 | 8984 | #line 8985 "configure" |
10f2d63a VZ |
8985 | #include "confdefs.h" |
8986 | ||
698dcdb6 VZ |
8987 | int main(){return(0);} |
8988 | EOF | |
321d2b14 | 8989 | if { (eval echo configure:8990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
8990 | ac_cv_prog_cxx_works=yes |
8991 | # If we can't run a trivial program, we are probably using a cross compiler. | |
8992 | if (./conftest; exit) 2>/dev/null; then | |
8993 | ac_cv_prog_cxx_cross=no | |
8994 | else | |
8995 | ac_cv_prog_cxx_cross=yes | |
8996 | fi | |
8997 | else | |
8998 | echo "configure: failed program was:" >&5 | |
8999 | cat conftest.$ac_ext >&5 | |
9000 | ac_cv_prog_cxx_works=no | |
9001 | fi | |
9002 | rm -fr conftest* | |
9003 | ac_ext=C | |
9004 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9005 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9006 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9007 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9008 | cross_compiling=$ac_cv_prog_cxx_cross | |
9009 | ||
9010 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 | |
9011 | if test $ac_cv_prog_cxx_works = no; then | |
9012 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
9013 | fi | |
9014 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
321d2b14 | 9015 | echo "configure:9016: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
698dcdb6 VZ |
9016 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
9017 | cross_compiling=$ac_cv_prog_cxx_cross | |
9018 | ||
9019 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 | |
321d2b14 | 9020 | echo "configure:9021: checking whether we are using GNU C++" >&5 |
698dcdb6 VZ |
9021 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
9022 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9023 | else | |
9024 | cat > conftest.C <<EOF | |
9025 | #ifdef __GNUC__ | |
9026 | yes; | |
10f2d63a | 9027 | #endif |
698dcdb6 | 9028 | EOF |
321d2b14 | 9029 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9030: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
698dcdb6 VZ |
9030 | ac_cv_prog_gxx=yes |
9031 | else | |
9032 | ac_cv_prog_gxx=no | |
9033 | fi | |
9034 | fi | |
10f2d63a | 9035 | |
698dcdb6 | 9036 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
10f2d63a | 9037 | |
698dcdb6 VZ |
9038 | if test $ac_cv_prog_gxx = yes; then |
9039 | GXX=yes | |
9040 | else | |
9041 | GXX= | |
9042 | fi | |
10f2d63a | 9043 | |
698dcdb6 VZ |
9044 | ac_test_CXXFLAGS="${CXXFLAGS+set}" |
9045 | ac_save_CXXFLAGS="$CXXFLAGS" | |
9046 | CXXFLAGS= | |
9047 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
321d2b14 | 9048 | echo "configure:9049: checking whether ${CXX-g++} accepts -g" >&5 |
698dcdb6 VZ |
9049 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
9050 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9051 | else | |
9052 | echo 'void f(){}' > conftest.cc | |
9053 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
10f2d63a VZ |
9054 | ac_cv_prog_cxx_g=yes |
9055 | else | |
698dcdb6 | 9056 | ac_cv_prog_cxx_g=no |
10f2d63a | 9057 | fi |
698dcdb6 VZ |
9058 | rm -f conftest* |
9059 | ||
10f2d63a | 9060 | fi |
698dcdb6 VZ |
9061 | |
9062 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
10f2d63a | 9063 | if test "$ac_test_CXXFLAGS" = set; then |
698dcdb6 | 9064 | CXXFLAGS="$ac_save_CXXFLAGS" |
10f2d63a VZ |
9065 | elif test $ac_cv_prog_cxx_g = yes; then |
9066 | if test "$GXX" = yes; then | |
9067 | CXXFLAGS="-g -O2" | |
9068 | else | |
9069 | CXXFLAGS="-g" | |
9070 | fi | |
9071 | else | |
9072 | if test "$GXX" = yes; then | |
9073 | CXXFLAGS="-O2" | |
9074 | else | |
9075 | CXXFLAGS= | |
9076 | fi | |
9077 | fi | |
9078 | ||
9079 | ||
10f2d63a | 9080 | ac_ext=c |
698dcdb6 | 9081 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 9082 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
9083 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
9084 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9085 | cross_compiling=$ac_cv_prog_cc_cross | |
9086 | ||
9087 | ||
9088 | # Extract the first word of "ranlib", so it can be a program name with args. | |
9089 | set dummy ranlib; ac_word=$2 | |
9090 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
321d2b14 | 9091 | echo "configure:9092: checking for $ac_word" >&5 |
698dcdb6 VZ |
9092 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
9093 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9094 | else |
9095 | if test -n "$RANLIB"; then | |
9096 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
9097 | else | |
698dcdb6 VZ |
9098 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9099 | ac_dummy="$PATH" | |
9100 | for ac_dir in $ac_dummy; do | |
9101 | test -z "$ac_dir" && ac_dir=. | |
9102 | if test -f $ac_dir/$ac_word; then | |
9103 | ac_cv_prog_RANLIB="ranlib" | |
9104 | break | |
9105 | fi | |
9106 | done | |
9107 | IFS="$ac_save_ifs" | |
9108 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
10f2d63a VZ |
9109 | fi |
9110 | fi | |
698dcdb6 | 9111 | RANLIB="$ac_cv_prog_RANLIB" |
10f2d63a | 9112 | if test -n "$RANLIB"; then |
698dcdb6 | 9113 | echo "$ac_t""$RANLIB" 1>&6 |
10f2d63a | 9114 | else |
698dcdb6 | 9115 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9116 | fi |
9117 | ||
9118 | ||
9119 | # Extract the first word of "ar", so it can be a program name with args. | |
9120 | set dummy ar; ac_word=$2 | |
698dcdb6 | 9121 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
321d2b14 | 9122 | echo "configure:9123: checking for $ac_word" >&5 |
698dcdb6 VZ |
9123 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
9124 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9125 | else |
9126 | if test -n "$AR"; then | |
9127 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
9128 | else | |
698dcdb6 VZ |
9129 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9130 | ac_dummy="$PATH" | |
9131 | for ac_dir in $ac_dummy; do | |
9132 | test -z "$ac_dir" && ac_dir=. | |
9133 | if test -f $ac_dir/$ac_word; then | |
9134 | ac_cv_prog_AR="ar" | |
9135 | break | |
9136 | fi | |
9137 | done | |
9138 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9139 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
9140 | fi | |
9141 | fi | |
698dcdb6 | 9142 | AR="$ac_cv_prog_AR" |
10f2d63a | 9143 | if test -n "$AR"; then |
698dcdb6 | 9144 | echo "$ac_t""$AR" 1>&6 |
10f2d63a | 9145 | else |
698dcdb6 | 9146 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9147 | fi |
9148 | ||
698dcdb6 | 9149 | |
6054113a | 9150 | # Find a good install program. We prefer a C program (faster), |
10f2d63a VZ |
9151 | # so one script is as good as another. But avoid the broken or |
9152 | # incompatible versions: | |
9153 | # SysV /etc/install, /usr/sbin/install | |
9154 | # SunOS /usr/etc/install | |
9155 | # IRIX /sbin/install | |
9156 | # AIX /bin/install | |
9157 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
9158 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
9159 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
9160 | # ./install, which can be erroneously created by make from ./install.sh. | |
698dcdb6 | 9161 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
321d2b14 | 9162 | echo "configure:9163: checking for a BSD compatible install" >&5 |
10f2d63a | 9163 | if test -z "$INSTALL"; then |
698dcdb6 VZ |
9164 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
9165 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 9166 | else |
698dcdb6 | 9167 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
10f2d63a VZ |
9168 | for ac_dir in $PATH; do |
9169 | # Account for people who put trailing slashes in PATH elements. | |
698dcdb6 VZ |
9170 | case "$ac_dir/" in |
9171 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
10f2d63a VZ |
9172 | *) |
9173 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
9174 | # Don't use installbsd from OSF since it installs stuff as root | |
9175 | # by default. | |
9176 | for ac_prog in ginstall scoinst install; do | |
698dcdb6 | 9177 | if test -f $ac_dir/$ac_prog; then |
10f2d63a | 9178 | if test $ac_prog = install && |
698dcdb6 | 9179 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
10f2d63a VZ |
9180 | # AIX install. It has an incompatible calling convention. |
9181 | : | |
9182 | else | |
9183 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
9184 | break 2 | |
9185 | fi | |
9186 | fi | |
9187 | done | |
9188 | ;; | |
9189 | esac | |
9190 | done | |
698dcdb6 | 9191 | IFS="$ac_save_IFS" |
10f2d63a VZ |
9192 | |
9193 | fi | |
9194 | if test "${ac_cv_path_install+set}" = set; then | |
698dcdb6 | 9195 | INSTALL="$ac_cv_path_install" |
10f2d63a VZ |
9196 | else |
9197 | # As a last resort, use the slow shell script. We don't cache a | |
9198 | # path for INSTALL within a source directory, because that will | |
9199 | # break other packages using the cache if that directory is | |
9200 | # removed, or if the path is relative. | |
698dcdb6 | 9201 | INSTALL="$ac_install_sh" |
10f2d63a VZ |
9202 | fi |
9203 | fi | |
698dcdb6 | 9204 | echo "$ac_t""$INSTALL" 1>&6 |
10f2d63a VZ |
9205 | |
9206 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
9207 | # It thinks the first close brace ends the variable substitution. | |
9208 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
9209 | ||
698dcdb6 | 9210 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
10f2d63a VZ |
9211 | |
9212 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
9213 | ||
6054113a GD |
9214 | case "${host}" in |
9215 | ||
b5853384 | 9216 | powerpc-*-darwin* ) |
eb99ae0b GD |
9217 | INSTALL_PROGRAM="cp -fp" |
9218 | INSTALL_DATA="cp -fp" | |
6054113a GD |
9219 | ;; |
9220 | *) | |
9221 | ;; | |
d6853540 | 9222 | esac |
698dcdb6 | 9223 | |
10f2d63a VZ |
9224 | # Extract the first word of "strip", so it can be a program name with args. |
9225 | set dummy strip; ac_word=$2 | |
698dcdb6 | 9226 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
321d2b14 | 9227 | echo "configure:9228: checking for $ac_word" >&5 |
698dcdb6 VZ |
9228 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
9229 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9230 | else |
9231 | if test -n "$STRIP"; then | |
9232 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9233 | else | |
698dcdb6 VZ |
9234 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9235 | ac_dummy="$PATH" | |
9236 | for ac_dir in $ac_dummy; do | |
9237 | test -z "$ac_dir" && ac_dir=. | |
9238 | if test -f $ac_dir/$ac_word; then | |
9239 | ac_cv_prog_STRIP="strip" | |
9240 | break | |
9241 | fi | |
9242 | done | |
9243 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9244 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
9245 | fi | |
9246 | fi | |
698dcdb6 | 9247 | STRIP="$ac_cv_prog_STRIP" |
10f2d63a | 9248 | if test -n "$STRIP"; then |
698dcdb6 | 9249 | echo "$ac_t""$STRIP" 1>&6 |
10f2d63a | 9250 | else |
698dcdb6 | 9251 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9252 | fi |
9253 | ||
698dcdb6 | 9254 | |
414eab6d | 9255 | echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6 |
321d2b14 | 9256 | echo "configure:9257: checking if make is GNU make" >&5 |
414eab6d VZ |
9257 | if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then |
9258 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9259 | else | |
9260 | ||
9261 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
d558c907 | 9262 | egrep -s GNU > /dev/null); then |
414eab6d VZ |
9263 | wx_cv_prog_makeisgnu="yes" |
9264 | else | |
9265 | wx_cv_prog_makeisgnu="no" | |
9266 | fi | |
9267 | ||
9268 | fi | |
9269 | ||
9270 | echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6 | |
9271 | ||
9272 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
9273 | IF_GNU_MAKE="" | |
9274 | else | |
9275 | IF_GNU_MAKE="#" | |
9276 | fi | |
9277 | ||
9278 | ||
9279 | ||
9280 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then | |
04e7a216 | 9281 | echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6 |
321d2b14 | 9282 | echo "configure:9283: checking if make supports VPATH" >&5 |
04e7a216 VZ |
9283 | if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then |
9284 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9285 | else | |
9286 | ||
10f2d63a VZ |
9287 | cat - << EOF > confMake |
9288 | check : file | |
9289 | cp \$? \$@ | |
9290 | cp \$? final_file | |
9291 | EOF | |
9292 | ||
9293 | if test ! -d sub ; then | |
9294 | mkdir sub | |
9295 | fi | |
9296 | echo dummy > sub/file | |
f6bcfd97 | 9297 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null |
10f2d63a VZ |
9298 | RESULT=$? |
9299 | rm -f sub/file check final_file confMake | |
9300 | rmdir sub | |
9301 | if test "$RESULT" = 0; then | |
04e7a216 | 9302 | wx_cv_prog_makevpath="yes" |
10f2d63a | 9303 | else |
04e7a216 VZ |
9304 | wx_cv_prog_makevpath="no" |
9305 | fi | |
9306 | ||
9307 | fi | |
9308 | ||
9309 | echo "$ac_t""$wx_cv_prog_makevpath" 1>&6 | |
9310 | ||
9311 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
9312 | { echo "configure: error: | |
1e487827 VS |
9313 | You need a make-utility that is able to use the variable |
9314 | VPATH correctly. | |
9315 | If your version of make does not support VPATH correctly, | |
9316 | please install GNU-make (possibly as gmake), and start | |
9317 | configure with the following command: | |
9318 | export MAKE=gmake; ./configure for sh-type shells | |
9319 | setenv MAKE gmake; ./configure for csh-type shells | |
9320 | Also please do remember to use gmake in this case every time | |
9321 | you are trying to compile. | |
698dcdb6 | 9322 | " 1>&2; exit 1; } |
414eab6d | 9323 | fi fi |
10f2d63a VZ |
9324 | for ac_prog in 'bison -y' byacc |
9325 | do | |
698dcdb6 | 9326 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
10f2d63a | 9327 | set dummy $ac_prog; ac_word=$2 |
698dcdb6 | 9328 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
321d2b14 | 9329 | echo "configure:9330: checking for $ac_word" >&5 |
698dcdb6 VZ |
9330 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
9331 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9332 | else |
9333 | if test -n "$YACC"; then | |
9334 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
9335 | else | |
698dcdb6 VZ |
9336 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9337 | ac_dummy="$PATH" | |
9338 | for ac_dir in $ac_dummy; do | |
9339 | test -z "$ac_dir" && ac_dir=. | |
9340 | if test -f $ac_dir/$ac_word; then | |
9341 | ac_cv_prog_YACC="$ac_prog" | |
9342 | break | |
9343 | fi | |
9344 | done | |
9345 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9346 | fi |
9347 | fi | |
698dcdb6 | 9348 | YACC="$ac_cv_prog_YACC" |
10f2d63a | 9349 | if test -n "$YACC"; then |
698dcdb6 | 9350 | echo "$ac_t""$YACC" 1>&6 |
10f2d63a | 9351 | else |
698dcdb6 | 9352 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9353 | fi |
9354 | ||
698dcdb6 | 9355 | test -n "$YACC" && break |
10f2d63a VZ |
9356 | done |
9357 | test -n "$YACC" || YACC="yacc" | |
9358 | ||
698dcdb6 VZ |
9359 | |
9360 | # Extract the first word of "flex", so it can be a program name with args. | |
9361 | set dummy flex; ac_word=$2 | |
9362 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
321d2b14 | 9363 | echo "configure:9364: checking for $ac_word" >&5 |
698dcdb6 VZ |
9364 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
9365 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9366 | else |
9367 | if test -n "$LEX"; then | |
9368 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
9369 | else | |
698dcdb6 VZ |
9370 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9371 | ac_dummy="$PATH" | |
9372 | for ac_dir in $ac_dummy; do | |
9373 | test -z "$ac_dir" && ac_dir=. | |
9374 | if test -f $ac_dir/$ac_word; then | |
9375 | ac_cv_prog_LEX="flex" | |
9376 | break | |
9377 | fi | |
9378 | done | |
9379 | IFS="$ac_save_ifs" | |
9380 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
10f2d63a VZ |
9381 | fi |
9382 | fi | |
698dcdb6 | 9383 | LEX="$ac_cv_prog_LEX" |
10f2d63a | 9384 | if test -n "$LEX"; then |
698dcdb6 | 9385 | echo "$ac_t""$LEX" 1>&6 |
10f2d63a | 9386 | else |
698dcdb6 | 9387 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9388 | fi |
9389 | ||
9390 | if test -z "$LEXLIB" | |
9391 | then | |
698dcdb6 VZ |
9392 | case "$LEX" in |
9393 | flex*) ac_lib=fl ;; | |
9394 | *) ac_lib=l ;; | |
9395 | esac | |
9396 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
321d2b14 | 9397 | echo "configure:9398: checking for yywrap in -l$ac_lib" >&5 |
698dcdb6 VZ |
9398 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
9399 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9400 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9401 | else | |
9402 | ac_save_LIBS="$LIBS" | |
9403 | LIBS="-l$ac_lib $LIBS" | |
9404 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 9405 | #line 9406 "configure" |
10f2d63a VZ |
9406 | #include "confdefs.h" |
9407 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9408 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9409 | builtin and then its argument prototype would still apply. */ |
9410 | char yywrap(); | |
10f2d63a | 9411 | |
698dcdb6 VZ |
9412 | int main() { |
9413 | yywrap() | |
9414 | ; return 0; } | |
9415 | EOF | |
321d2b14 | 9416 | if { (eval echo configure:9417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9417 | rm -rf conftest* |
9418 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 9419 | else |
698dcdb6 VZ |
9420 | echo "configure: failed program was:" >&5 |
9421 | cat conftest.$ac_ext >&5 | |
9422 | rm -rf conftest* | |
9423 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 9424 | fi |
698dcdb6 VZ |
9425 | rm -f conftest* |
9426 | LIBS="$ac_save_LIBS" | |
9427 | ||
10f2d63a | 9428 | fi |
698dcdb6 VZ |
9429 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
9430 | echo "$ac_t""yes" 1>&6 | |
9431 | LEXLIB="-l$ac_lib" | |
9432 | else | |
9433 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
9434 | fi |
9435 | ||
9436 | fi | |
9437 | ||
9438 | ||
698dcdb6 | 9439 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
321d2b14 | 9440 | echo "configure:9441: checking whether ln -s works" >&5 |
698dcdb6 VZ |
9441 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
9442 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 9443 | else |
698dcdb6 VZ |
9444 | rm -f conftestdata |
9445 | if ln -s X conftestdata 2>/dev/null | |
9446 | then | |
9447 | rm -f conftestdata | |
9448 | ac_cv_prog_LN_S="ln -s" | |
10f2d63a | 9449 | else |
698dcdb6 | 9450 | ac_cv_prog_LN_S=ln |
10f2d63a VZ |
9451 | fi |
9452 | fi | |
698dcdb6 VZ |
9453 | LN_S="$ac_cv_prog_LN_S" |
9454 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
9455 | echo "$ac_t""yes" 1>&6 | |
10f2d63a | 9456 | else |
698dcdb6 | 9457 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9458 | fi |
9459 | ||
9460 | ||
9461 | ||
21d1c967 GD |
9462 | if test "$wxUSE_MAC" != 1; then |
9463 | for ac_hdr in strings.h | |
9464 | do | |
9465 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9466 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
321d2b14 | 9467 | echo "configure:9468: checking for $ac_hdr" >&5 |
21d1c967 | 9468 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
19bc6aad VZ |
9469 | echo $ac_n "(cached) $ac_c" 1>&6 |
9470 | else | |
90dd450c | 9471 | cat > conftest.$ac_ext <<EOF |
321d2b14 | 9472 | #line 9473 "configure" |
19bc6aad | 9473 | #include "confdefs.h" |
21d1c967 | 9474 | #include <$ac_hdr> |
19bc6aad | 9475 | EOF |
21d1c967 | 9476 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
321d2b14 | 9477 | { (eval echo configure:9478: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
9478 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9479 | if test -z "$ac_err"; then | |
19bc6aad | 9480 | rm -rf conftest* |
21d1c967 | 9481 | eval "ac_cv_header_$ac_safe=yes" |
19bc6aad | 9482 | else |
21d1c967 | 9483 | echo "$ac_err" >&5 |
19bc6aad VZ |
9484 | echo "configure: failed program was:" >&5 |
9485 | cat conftest.$ac_ext >&5 | |
9486 | rm -rf conftest* | |
21d1c967 | 9487 | eval "ac_cv_header_$ac_safe=no" |
19bc6aad VZ |
9488 | fi |
9489 | rm -f conftest* | |
19bc6aad | 9490 | fi |
21d1c967 GD |
9491 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9492 | echo "$ac_t""yes" 1>&6 | |
9493 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9494 | cat >> confdefs.h <<EOF | |
9495 | #define $ac_tr_hdr 1 | |
19bc6aad | 9496 | EOF |
21d1c967 GD |
9497 | |
9498 | else | |
9499 | echo "$ac_t""no" 1>&6 | |
9500 | fi | |
9501 | done | |
19bc6aad | 9502 | |
19bc6aad VZ |
9503 | fi |
9504 | ||
21d1c967 GD |
9505 | for ac_hdr in stdlib.h |
9506 | do | |
9507 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9508 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
321d2b14 | 9509 | echo "configure:9510: checking for $ac_hdr" >&5 |
21d1c967 | 9510 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
18dbb1f6 VZ |
9511 | echo $ac_n "(cached) $ac_c" 1>&6 |
9512 | else | |
9513 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 9514 | #line 9515 "configure" |
18dbb1f6 | 9515 | #include "confdefs.h" |
21d1c967 | 9516 | #include <$ac_hdr> |
18dbb1f6 | 9517 | EOF |
21d1c967 | 9518 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
321d2b14 | 9519 | { (eval echo configure:9520: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
9520 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9521 | if test -z "$ac_err"; then | |
18dbb1f6 | 9522 | rm -rf conftest* |
21d1c967 | 9523 | eval "ac_cv_header_$ac_safe=yes" |
18dbb1f6 | 9524 | else |
21d1c967 | 9525 | echo "$ac_err" >&5 |
18dbb1f6 VZ |
9526 | echo "configure: failed program was:" >&5 |
9527 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
9528 | rm -rf conftest* |
9529 | eval "ac_cv_header_$ac_safe=no" | |
18dbb1f6 VZ |
9530 | fi |
9531 | rm -f conftest* | |
90dd450c | 9532 | fi |
21d1c967 GD |
9533 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9534 | echo "$ac_t""yes" 1>&6 | |
9535 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9536 | cat >> confdefs.h <<EOF | |
9537 | #define $ac_tr_hdr 1 | |
90dd450c | 9538 | EOF |
21d1c967 GD |
9539 | |
9540 | else | |
9541 | echo "$ac_t""no" 1>&6 | |
9542 | fi | |
9543 | done | |
90dd450c | 9544 | |
21d1c967 GD |
9545 | for ac_hdr in malloc.h |
9546 | do | |
9547 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9548 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
321d2b14 | 9549 | echo "configure:9550: checking for $ac_hdr" >&5 |
21d1c967 | 9550 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
90dd450c | 9551 | echo $ac_n "(cached) $ac_c" 1>&6 |
90dd450c VZ |
9552 | else |
9553 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 9554 | #line 9555 "configure" |
90dd450c | 9555 | #include "confdefs.h" |
21d1c967 | 9556 | #include <$ac_hdr> |
18dbb1f6 | 9557 | EOF |
21d1c967 | 9558 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
321d2b14 | 9559 | { (eval echo configure:9560: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
9560 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9561 | if test -z "$ac_err"; then | |
9562 | rm -rf conftest* | |
9563 | eval "ac_cv_header_$ac_safe=yes" | |
18dbb1f6 | 9564 | else |
21d1c967 | 9565 | echo "$ac_err" >&5 |
18dbb1f6 VZ |
9566 | echo "configure: failed program was:" >&5 |
9567 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
9568 | rm -rf conftest* |
9569 | eval "ac_cv_header_$ac_safe=no" | |
18dbb1f6 | 9570 | fi |
21d1c967 | 9571 | rm -f conftest* |
18dbb1f6 | 9572 | fi |
21d1c967 GD |
9573 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9574 | echo "$ac_t""yes" 1>&6 | |
9575 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9576 | cat >> confdefs.h <<EOF | |
9577 | #define $ac_tr_hdr 1 | |
4f14bcd8 | 9578 | EOF |
21d1c967 GD |
9579 | |
9580 | else | |
9581 | echo "$ac_t""no" 1>&6 | |
9582 | fi | |
9583 | done | |
dad6c0ea | 9584 | |
21d1c967 GD |
9585 | for ac_hdr in unistd.h |
9586 | do | |
9587 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9588 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
321d2b14 | 9589 | echo "configure:9590: checking for $ac_hdr" >&5 |
21d1c967 | 9590 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
3a922bb4 RL |
9591 | echo $ac_n "(cached) $ac_c" 1>&6 |
9592 | else | |
9593 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 9594 | #line 9595 "configure" |
3a922bb4 | 9595 | #include "confdefs.h" |
21d1c967 | 9596 | #include <$ac_hdr> |
3a922bb4 | 9597 | EOF |
21d1c967 | 9598 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
321d2b14 | 9599 | { (eval echo configure:9600: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
9600 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9601 | if test -z "$ac_err"; then | |
9602 | rm -rf conftest* | |
9603 | eval "ac_cv_header_$ac_safe=yes" | |
3a922bb4 | 9604 | else |
21d1c967 | 9605 | echo "$ac_err" >&5 |
3a922bb4 RL |
9606 | echo "configure: failed program was:" >&5 |
9607 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
9608 | rm -rf conftest* |
9609 | eval "ac_cv_header_$ac_safe=no" | |
3a922bb4 | 9610 | fi |
21d1c967 | 9611 | rm -f conftest* |
90dd450c | 9612 | fi |
21d1c967 GD |
9613 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9614 | echo "$ac_t""yes" 1>&6 | |
9615 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9616 | cat >> confdefs.h <<EOF | |
9617 | #define $ac_tr_hdr 1 | |
90dd450c | 9618 | EOF |
21d1c967 GD |
9619 | |
9620 | else | |
9621 | echo "$ac_t""no" 1>&6 | |
9622 | fi | |
9623 | done | |
90dd450c | 9624 | |
21d1c967 GD |
9625 | for ac_hdr in wchar.h |
9626 | do | |
9627 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9628 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
321d2b14 | 9629 | echo "configure:9630: checking for $ac_hdr" >&5 |
21d1c967 | 9630 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4f14bcd8 | 9631 | echo $ac_n "(cached) $ac_c" 1>&6 |
90dd450c VZ |
9632 | else |
9633 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 9634 | #line 9635 "configure" |
4f14bcd8 | 9635 | #include "confdefs.h" |
21d1c967 | 9636 | #include <$ac_hdr> |
3a922bb4 | 9637 | EOF |
21d1c967 | 9638 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
321d2b14 | 9639 | { (eval echo configure:9640: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
9640 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9641 | if test -z "$ac_err"; then | |
9642 | rm -rf conftest* | |
9643 | eval "ac_cv_header_$ac_safe=yes" | |
4f14bcd8 | 9644 | else |
21d1c967 | 9645 | echo "$ac_err" >&5 |
4f14bcd8 GD |
9646 | echo "configure: failed program was:" >&5 |
9647 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
9648 | rm -rf conftest* |
9649 | eval "ac_cv_header_$ac_safe=no" | |
3a922bb4 | 9650 | fi |
21d1c967 | 9651 | rm -f conftest* |
4f14bcd8 | 9652 | fi |
21d1c967 GD |
9653 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9654 | echo "$ac_t""yes" 1>&6 | |
9655 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9656 | cat >> confdefs.h <<EOF | |
9657 | #define $ac_tr_hdr 1 | |
4f14bcd8 | 9658 | EOF |
21d1c967 GD |
9659 | |
9660 | else | |
9661 | echo "$ac_t""no" 1>&6 | |
9662 | fi | |
9663 | done | |
4f14bcd8 | 9664 | |
4f14bcd8 | 9665 | |
21d1c967 GD |
9666 | if test "$ac_cv_header_wchar_h" != "yes"; then |
9667 | for ac_hdr in wcstr.h | |
9668 | do | |
9669 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9670 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
321d2b14 | 9671 | echo "configure:9672: checking for $ac_hdr" >&5 |
21d1c967 | 9672 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
d4158b5d VS |
9673 | echo $ac_n "(cached) $ac_c" 1>&6 |
9674 | else | |
9675 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 9676 | #line 9677 "configure" |
d4158b5d | 9677 | #include "confdefs.h" |
21d1c967 | 9678 | #include <$ac_hdr> |
d4158b5d | 9679 | EOF |
21d1c967 | 9680 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
321d2b14 | 9681 | { (eval echo configure:9682: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
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" | |
d4158b5d | 9686 | else |
21d1c967 | 9687 | echo "$ac_err" >&5 |
d4158b5d VS |
9688 | echo "configure: failed program was:" >&5 |
9689 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
9690 | rm -rf conftest* |
9691 | eval "ac_cv_header_$ac_safe=no" | |
d4158b5d | 9692 | fi |
21d1c967 GD |
9693 | rm -f conftest* |
9694 | fi | |
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 | |
9700 | EOF | |
9701 | ||
9702 | else | |
9703 | echo "$ac_t""no" 1>&6 | |
d4158b5d | 9704 | fi |
21d1c967 | 9705 | done |
f6bcfd97 | 9706 | |
90dd450c | 9707 | fi |
90dd450c VZ |
9708 | |
9709 | ||
21d1c967 GD |
9710 | for ac_hdr in fnmatch.h |
9711 | do | |
9712 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9713 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
321d2b14 | 9714 | echo "configure:9715: checking for $ac_hdr" >&5 |
21d1c967 | 9715 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
90dd450c | 9716 | echo $ac_n "(cached) $ac_c" 1>&6 |
90dd450c VZ |
9717 | else |
9718 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 9719 | #line 9720 "configure" |
90dd450c | 9720 | #include "confdefs.h" |
21d1c967 | 9721 | #include <$ac_hdr> |
90dd450c | 9722 | EOF |
21d1c967 | 9723 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
321d2b14 | 9724 | { (eval echo configure:9725: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
9725 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9726 | if test -z "$ac_err"; then | |
9727 | rm -rf conftest* | |
9728 | eval "ac_cv_header_$ac_safe=yes" | |
3a922bb4 | 9729 | else |
21d1c967 | 9730 | echo "$ac_err" >&5 |
3a922bb4 RL |
9731 | echo "configure: failed program was:" >&5 |
9732 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
9733 | rm -rf conftest* |
9734 | eval "ac_cv_header_$ac_safe=no" | |
3a922bb4 | 9735 | fi |
21d1c967 | 9736 | rm -f conftest* |
4f14bcd8 | 9737 | fi |
21d1c967 GD |
9738 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9739 | echo "$ac_t""yes" 1>&6 | |
9740 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9741 | cat >> confdefs.h <<EOF | |
9742 | #define $ac_tr_hdr 1 | |
90dd450c | 9743 | EOF |
21d1c967 GD |
9744 | |
9745 | else | |
9746 | echo "$ac_t""no" 1>&6 | |
9747 | fi | |
9748 | done | |
90dd450c VZ |
9749 | |
9750 | ||
21d1c967 GD |
9751 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then |
9752 | for ac_func in fnmatch | |
9753 | do | |
9754 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
321d2b14 | 9755 | echo "configure:9756: checking for $ac_func" >&5 |
21d1c967 | 9756 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
90dd450c | 9757 | echo $ac_n "(cached) $ac_c" 1>&6 |
90dd450c VZ |
9758 | else |
9759 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 9760 | #line 9761 "configure" |
90dd450c | 9761 | #include "confdefs.h" |
21d1c967 GD |
9762 | /* System header to define __stub macros and hopefully few prototypes, |
9763 | which can conflict with char $ac_func(); below. */ | |
9764 | #include <assert.h> | |
9765 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9766 | /* We use char because int might match the return type of a gcc2 | |
9767 | builtin and then its argument prototype would still apply. */ | |
9768 | char $ac_func(); | |
9769 | ||
9770 | int main() { | |
9771 | ||
9772 | /* The GNU C library defines this for functions which it implements | |
9773 | to always fail with ENOSYS. Some functions are actually named | |
9774 | something starting with __ and the normal name is an alias. */ | |
9775 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9776 | choke me | |
9777 | #else | |
9778 | $ac_func(); | |
9779 | #endif | |
9780 | ||
9781 | ; return 0; } | |
90dd450c | 9782 | EOF |
321d2b14 | 9783 | if { (eval echo configure:9784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
21d1c967 GD |
9784 | rm -rf conftest* |
9785 | eval "ac_cv_func_$ac_func=yes" | |
90dd450c VZ |
9786 | else |
9787 | echo "configure: failed program was:" >&5 | |
9788 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
9789 | rm -rf conftest* |
9790 | eval "ac_cv_func_$ac_func=no" | |
90dd450c | 9791 | fi |
21d1c967 | 9792 | rm -f conftest* |
4f14bcd8 | 9793 | fi |
32832908 | 9794 | |
21d1c967 GD |
9795 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
9796 | echo "$ac_t""yes" 1>&6 | |
9797 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9798 | cat >> confdefs.h <<EOF | |
9799 | #define $ac_tr_func 1 | |
90dd450c | 9800 | EOF |
21d1c967 GD |
9801 | |
9802 | else | |
9803 | echo "$ac_t""no" 1>&6 | |
9804 | fi | |
9805 | done | |
90dd450c | 9806 | |
21d1c967 | 9807 | fi |
90dd450c | 9808 | |
21d1c967 GD |
9809 | for ac_hdr in langinfo.h |
9810 | do | |
9811 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9812 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
321d2b14 | 9813 | echo "configure:9814: checking for $ac_hdr" >&5 |
21d1c967 | 9814 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
90dd450c | 9815 | echo $ac_n "(cached) $ac_c" 1>&6 |
90dd450c VZ |
9816 | else |
9817 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 9818 | #line 9819 "configure" |
90dd450c | 9819 | #include "confdefs.h" |
21d1c967 | 9820 | #include <$ac_hdr> |
90dd450c | 9821 | EOF |
21d1c967 | 9822 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
321d2b14 | 9823 | { (eval echo configure:9824: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
9824 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9825 | if test -z "$ac_err"; then | |
9826 | rm -rf conftest* | |
9827 | eval "ac_cv_header_$ac_safe=yes" | |
90dd450c | 9828 | else |
21d1c967 | 9829 | echo "$ac_err" >&5 |
90dd450c VZ |
9830 | echo "configure: failed program was:" >&5 |
9831 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
9832 | rm -rf conftest* |
9833 | eval "ac_cv_header_$ac_safe=no" | |
90dd450c | 9834 | fi |
21d1c967 | 9835 | rm -f conftest* |
4f14bcd8 | 9836 | fi |
21d1c967 GD |
9837 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9838 | echo "$ac_t""yes" 1>&6 | |
9839 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9840 | cat >> confdefs.h <<EOF | |
9841 | #define $ac_tr_hdr 1 | |
90dd450c | 9842 | EOF |
21d1c967 GD |
9843 | |
9844 | else | |
9845 | echo "$ac_t""no" 1>&6 | |
9846 | fi | |
9847 | done | |
3a922bb4 | 9848 | |
7b7a7637 | 9849 | |
21d1c967 GD |
9850 | if test "$wxUSE_GUI" = "yes"; then |
9851 | if test "$wxUSE_UNIX" = "yes"; then | |
9852 | for ac_hdr in X11/XKBlib.h | |
9853 | do | |
9854 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9855 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
321d2b14 | 9856 | echo "configure:9857: checking for $ac_hdr" >&5 |
21d1c967 | 9857 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
90dd450c | 9858 | echo $ac_n "(cached) $ac_c" 1>&6 |
90dd450c VZ |
9859 | else |
9860 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 9861 | #line 9862 "configure" |
90dd450c | 9862 | #include "confdefs.h" |
21d1c967 | 9863 | #include <$ac_hdr> |
90dd450c | 9864 | EOF |
21d1c967 | 9865 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
321d2b14 | 9866 | { (eval echo configure:9867: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
9867 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9868 | if test -z "$ac_err"; then | |
9869 | rm -rf conftest* | |
9870 | eval "ac_cv_header_$ac_safe=yes" | |
90dd450c | 9871 | else |
21d1c967 | 9872 | echo "$ac_err" >&5 |
90dd450c VZ |
9873 | echo "configure: failed program was:" >&5 |
9874 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
9875 | rm -rf conftest* |
9876 | eval "ac_cv_header_$ac_safe=no" | |
3a922bb4 | 9877 | fi |
21d1c967 | 9878 | rm -f conftest* |
90dd450c | 9879 | fi |
21d1c967 GD |
9880 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9881 | echo "$ac_t""yes" 1>&6 | |
9882 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9883 | cat >> confdefs.h <<EOF | |
9884 | #define $ac_tr_hdr 1 | |
4f14bcd8 | 9885 | EOF |
21d1c967 GD |
9886 | |
9887 | else | |
9888 | echo "$ac_t""no" 1>&6 | |
9889 | fi | |
9890 | done | |
10f2d63a | 9891 | |
21d1c967 | 9892 | fi |
90dd450c | 9893 | fi |
81809c07 | 9894 | |
21d1c967 GD |
9895 | |
9896 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
321d2b14 | 9897 | echo "configure:9898: checking for working const" >&5 |
21d1c967 | 9898 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
8168de4c VZ |
9899 | echo $ac_n "(cached) $ac_c" 1>&6 |
9900 | else | |
21d1c967 | 9901 | cat > conftest.$ac_ext <<EOF |
321d2b14 | 9902 | #line 9903 "configure" |
4f14bcd8 | 9903 | #include "confdefs.h" |
21d1c967 | 9904 | |
4f14bcd8 | 9905 | int main() { |
21d1c967 GD |
9906 | |
9907 | /* Ultrix mips cc rejects this. */ | |
9908 | typedef int charset[2]; const charset x; | |
9909 | /* SunOS 4.1.1 cc rejects this. */ | |
9910 | char const *const *ccp; | |
9911 | char **p; | |
9912 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
9913 | struct point {int x, y;}; | |
9914 | static struct point const zero = {0,0}; | |
9915 | /* AIX XL C 1.02.0.0 rejects this. | |
9916 | It does not let you subtract one const X* pointer from another in an arm | |
9917 | of an if-expression whose if-part is not a constant expression */ | |
9918 | const char *g = "string"; | |
9919 | ccp = &g + (g ? g-g : 0); | |
9920 | /* HPUX 7.0 cc rejects these. */ | |
9921 | ++ccp; | |
9922 | p = (char**) ccp; | |
9923 | ccp = (char const *const *) p; | |
9924 | { /* SCO 3.2v4 cc rejects this. */ | |
9925 | char *t; | |
9926 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
9927 | ||
9928 | *t++ = 0; | |
9929 | } | |
9930 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
9931 | int x[] = {25, 17}; | |
9932 | const int *foo = &x[0]; | |
9933 | ++foo; | |
9934 | } | |
9935 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
9936 | typedef const int *iptr; | |
9937 | iptr p = 0; | |
9938 | ++p; | |
9939 | } | |
9940 | { /* AIX XL C 1.02.0.0 rejects this saying | |
9941 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
9942 | struct s { int j; const int *ap[3]; }; | |
9943 | struct s *b; b->j = 5; | |
9944 | } | |
9945 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
9946 | const int foo = 10; | |
9947 | } | |
4f14bcd8 | 9948 | |
4f14bcd8 GD |
9949 | ; return 0; } |
9950 | EOF | |
321d2b14 | 9951 | if { (eval echo configure:9952: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 | 9952 | rm -rf conftest* |
21d1c967 | 9953 | ac_cv_c_const=yes |
6f72b082 | 9954 | else |
4f14bcd8 GD |
9955 | echo "configure: failed program was:" >&5 |
9956 | cat conftest.$ac_ext >&5 | |
9957 | rm -rf conftest* | |
21d1c967 | 9958 | ac_cv_c_const=no |
4f14bcd8 GD |
9959 | fi |
9960 | rm -f conftest* | |
698dcdb6 | 9961 | fi |
6f72b082 | 9962 | |
21d1c967 GD |
9963 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
9964 | if test $ac_cv_c_const = no; then | |
9965 | cat >> confdefs.h <<\EOF | |
9966 | #define const | |
90dd450c VZ |
9967 | EOF |
9968 | ||
21d1c967 | 9969 | fi |
90dd450c | 9970 | |
21d1c967 | 9971 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
321d2b14 | 9972 | echo "configure:9973: checking for inline" >&5 |
21d1c967 | 9973 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
4f14bcd8 | 9974 | echo $ac_n "(cached) $ac_c" 1>&6 |
6f72b082 | 9975 | else |
21d1c967 GD |
9976 | ac_cv_c_inline=no |
9977 | for ac_kw in inline __inline__ __inline; do | |
9978 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 9979 | #line 9980 "configure" |
4f14bcd8 | 9980 | #include "confdefs.h" |
90dd450c | 9981 | |
21d1c967 GD |
9982 | int main() { |
9983 | } $ac_kw foo() { | |
4f14bcd8 GD |
9984 | ; return 0; } |
9985 | EOF | |
321d2b14 | 9986 | if { (eval echo configure:9987: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 | 9987 | rm -rf conftest* |
21d1c967 | 9988 | ac_cv_c_inline=$ac_kw; break |
6f72b082 | 9989 | else |
4f14bcd8 GD |
9990 | echo "configure: failed program was:" >&5 |
9991 | cat conftest.$ac_ext >&5 | |
698dcdb6 | 9992 | fi |
4f14bcd8 | 9993 | rm -f conftest* |
21d1c967 | 9994 | done |
4f14bcd8 | 9995 | |
21d1c967 | 9996 | fi |
4f14bcd8 | 9997 | |
21d1c967 GD |
9998 | echo "$ac_t""$ac_cv_c_inline" 1>&6 |
9999 | case "$ac_cv_c_inline" in | |
10000 | inline | yes) ;; | |
10001 | no) cat >> confdefs.h <<\EOF | |
10002 | #define inline | |
90dd450c | 10003 | EOF |
21d1c967 GD |
10004 | ;; |
10005 | *) cat >> confdefs.h <<EOF | |
10006 | #define inline $ac_cv_c_inline | |
4f14bcd8 | 10007 | EOF |
21d1c967 GD |
10008 | ;; |
10009 | esac | |
4f14bcd8 | 10010 | |
90dd450c | 10011 | |
21d1c967 | 10012 | echo $ac_n "checking size of char""... $ac_c" 1>&6 |
321d2b14 | 10013 | echo "configure:10014: checking size of char" >&5 |
21d1c967 | 10014 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
4f14bcd8 GD |
10015 | echo $ac_n "(cached) $ac_c" 1>&6 |
10016 | else | |
21d1c967 GD |
10017 | if test "$cross_compiling" = yes; then |
10018 | ac_cv_sizeof_char=1 | |
4f14bcd8 | 10019 | else |
90dd450c | 10020 | cat > conftest.$ac_ext <<EOF |
321d2b14 | 10021 | #line 10022 "configure" |
4f14bcd8 | 10022 | #include "confdefs.h" |
21d1c967 GD |
10023 | #include <stdio.h> |
10024 | main() | |
10025 | { | |
10026 | FILE *f=fopen("conftestval", "w"); | |
10027 | if (!f) exit(1); | |
10028 | fprintf(f, "%d\n", sizeof(char)); | |
10029 | exit(0); | |
90dd450c | 10030 | } |
4f14bcd8 | 10031 | EOF |
321d2b14 | 10032 | if { (eval echo configure:10033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
90dd450c | 10033 | then |
21d1c967 | 10034 | ac_cv_sizeof_char=`cat conftestval` |
4f14bcd8 GD |
10035 | else |
10036 | echo "configure: failed program was:" >&5 | |
10037 | cat conftest.$ac_ext >&5 | |
90dd450c | 10038 | rm -fr conftest* |
21d1c967 | 10039 | ac_cv_sizeof_char=0 |
90dd450c VZ |
10040 | fi |
10041 | rm -fr conftest* | |
4f14bcd8 | 10042 | fi |
4f14bcd8 GD |
10043 | |
10044 | fi | |
21d1c967 GD |
10045 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 |
10046 | cat >> confdefs.h <<EOF | |
10047 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
10048 | EOF | |
4f14bcd8 | 10049 | |
21d1c967 GD |
10050 | |
10051 | echo $ac_n "checking size of short""... $ac_c" 1>&6 | |
321d2b14 | 10052 | echo "configure:10053: checking size of short" >&5 |
21d1c967 GD |
10053 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
10054 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10055 | else | |
10056 | if test "$cross_compiling" = yes; then | |
10057 | ac_cv_sizeof_short=2 | |
10058 | else | |
10059 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 10060 | #line 10061 "configure" |
21d1c967 GD |
10061 | #include "confdefs.h" |
10062 | #include <stdio.h> | |
10063 | main() | |
10064 | { | |
10065 | FILE *f=fopen("conftestval", "w"); | |
10066 | if (!f) exit(1); | |
10067 | fprintf(f, "%d\n", sizeof(short)); | |
10068 | exit(0); | |
10069 | } | |
90dd450c | 10070 | EOF |
321d2b14 | 10071 | if { (eval echo configure:10072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
21d1c967 GD |
10072 | then |
10073 | ac_cv_sizeof_short=`cat conftestval` | |
10074 | else | |
10075 | echo "configure: failed program was:" >&5 | |
10076 | cat conftest.$ac_ext >&5 | |
10077 | rm -fr conftest* | |
10078 | ac_cv_sizeof_short=0 | |
10079 | fi | |
10080 | rm -fr conftest* | |
10081 | fi | |
4f14bcd8 | 10082 | |
4f14bcd8 | 10083 | fi |
21d1c967 GD |
10084 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
10085 | cat >> confdefs.h <<EOF | |
10086 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
10087 | EOF | |
4f14bcd8 GD |
10088 | |
10089 | ||
21d1c967 | 10090 | echo $ac_n "checking size of void *""... $ac_c" 1>&6 |
321d2b14 | 10091 | echo "configure:10092: checking size of void *" >&5 |
21d1c967 | 10092 | if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then |
4f14bcd8 GD |
10093 | echo $ac_n "(cached) $ac_c" 1>&6 |
10094 | else | |
21d1c967 GD |
10095 | if test "$cross_compiling" = yes; then |
10096 | ac_cv_sizeof_void_p=4 | |
10097 | else | |
4f14bcd8 | 10098 | cat > conftest.$ac_ext <<EOF |
321d2b14 | 10099 | #line 10100 "configure" |
4f14bcd8 | 10100 | #include "confdefs.h" |
21d1c967 GD |
10101 | #include <stdio.h> |
10102 | main() | |
10103 | { | |
10104 | FILE *f=fopen("conftestval", "w"); | |
10105 | if (!f) exit(1); | |
10106 | fprintf(f, "%d\n", sizeof(void *)); | |
10107 | exit(0); | |
10108 | } | |
4f14bcd8 | 10109 | EOF |
321d2b14 | 10110 | if { (eval echo configure:10111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
21d1c967 GD |
10111 | then |
10112 | ac_cv_sizeof_void_p=`cat conftestval` | |
4f14bcd8 | 10113 | else |
4f14bcd8 GD |
10114 | echo "configure: failed program was:" >&5 |
10115 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
10116 | rm -fr conftest* |
10117 | ac_cv_sizeof_void_p=0 | |
4f14bcd8 | 10118 | fi |
21d1c967 | 10119 | rm -fr conftest* |
4f14bcd8 | 10120 | fi |
4f14bcd8 | 10121 | |
21d1c967 GD |
10122 | fi |
10123 | echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6 | |
10124 | cat >> confdefs.h <<EOF | |
10125 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
90dd450c VZ |
10126 | EOF |
10127 | ||
90dd450c | 10128 | |
21d1c967 | 10129 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
321d2b14 | 10130 | echo "configure:10131: checking size of int" >&5 |
21d1c967 | 10131 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
4f14bcd8 | 10132 | echo $ac_n "(cached) $ac_c" 1>&6 |
21d1c967 GD |
10133 | else |
10134 | if test "$cross_compiling" = yes; then | |
10135 | ac_cv_sizeof_int=4 | |
4f14bcd8 GD |
10136 | else |
10137 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 10138 | #line 10139 "configure" |
4f14bcd8 | 10139 | #include "confdefs.h" |
21d1c967 GD |
10140 | #include <stdio.h> |
10141 | main() | |
10142 | { | |
10143 | FILE *f=fopen("conftestval", "w"); | |
10144 | if (!f) exit(1); | |
10145 | fprintf(f, "%d\n", sizeof(int)); | |
10146 | exit(0); | |
10147 | } | |
4f14bcd8 | 10148 | EOF |
321d2b14 | 10149 | if { (eval echo configure:10150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
21d1c967 GD |
10150 | then |
10151 | ac_cv_sizeof_int=`cat conftestval` | |
4f14bcd8 | 10152 | else |
4f14bcd8 GD |
10153 | echo "configure: failed program was:" >&5 |
10154 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
10155 | rm -fr conftest* |
10156 | ac_cv_sizeof_int=0 | |
4f14bcd8 | 10157 | fi |
21d1c967 | 10158 | rm -fr conftest* |
4f14bcd8 | 10159 | fi |
4f14bcd8 | 10160 | |
21d1c967 GD |
10161 | fi |
10162 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | |
10163 | cat >> confdefs.h <<EOF | |
10164 | #define SIZEOF_INT $ac_cv_sizeof_int | |
90dd450c VZ |
10165 | EOF |
10166 | ||
90dd450c | 10167 | |
21d1c967 | 10168 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
321d2b14 | 10169 | echo "configure:10170: checking size of long" >&5 |
21d1c967 | 10170 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
4f14bcd8 GD |
10171 | echo $ac_n "(cached) $ac_c" 1>&6 |
10172 | else | |
21d1c967 GD |
10173 | if test "$cross_compiling" = yes; then |
10174 | ac_cv_sizeof_long=4 | |
10175 | else | |
10176 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 10177 | #line 10178 "configure" |
90dd450c | 10178 | #include "confdefs.h" |
21d1c967 GD |
10179 | #include <stdio.h> |
10180 | main() | |
10181 | { | |
10182 | FILE *f=fopen("conftestval", "w"); | |
10183 | if (!f) exit(1); | |
10184 | fprintf(f, "%d\n", sizeof(long)); | |
10185 | exit(0); | |
10186 | } | |
4f14bcd8 | 10187 | EOF |
321d2b14 | 10188 | if { (eval echo configure:10189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
21d1c967 GD |
10189 | then |
10190 | ac_cv_sizeof_long=`cat conftestval` | |
4f14bcd8 GD |
10191 | else |
10192 | echo "configure: failed program was:" >&5 | |
10193 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
10194 | rm -fr conftest* |
10195 | ac_cv_sizeof_long=0 | |
4f14bcd8 | 10196 | fi |
21d1c967 | 10197 | rm -fr conftest* |
90dd450c | 10198 | fi |
4f14bcd8 | 10199 | |
21d1c967 GD |
10200 | fi |
10201 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 | |
10202 | cat >> confdefs.h <<EOF | |
10203 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
90dd450c | 10204 | EOF |
4f14bcd8 | 10205 | |
4f14bcd8 | 10206 | |
4f14bcd8 | 10207 | |
21d1c967 GD |
10208 | case "${host}" in |
10209 | arm-*-linux* ) | |
10210 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
321d2b14 | 10211 | echo "configure:10212: checking size of long long" >&5 |
21d1c967 GD |
10212 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
10213 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10214 | else | |
10215 | if test "$cross_compiling" = yes; then | |
10216 | ac_cv_sizeof_long_long=8 | |
10217 | else | |
10218 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 10219 | #line 10220 "configure" |
21d1c967 GD |
10220 | #include "confdefs.h" |
10221 | #include <stdio.h> | |
10222 | main() | |
10223 | { | |
10224 | FILE *f=fopen("conftestval", "w"); | |
10225 | if (!f) exit(1); | |
10226 | fprintf(f, "%d\n", sizeof(long long)); | |
10227 | exit(0); | |
10228 | } | |
90dd450c | 10229 | EOF |
321d2b14 | 10230 | if { (eval echo configure:10231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
21d1c967 GD |
10231 | then |
10232 | ac_cv_sizeof_long_long=`cat conftestval` | |
90dd450c | 10233 | else |
21d1c967 GD |
10234 | echo "configure: failed program was:" >&5 |
10235 | cat conftest.$ac_ext >&5 | |
10236 | rm -fr conftest* | |
10237 | ac_cv_sizeof_long_long=0 | |
10238 | fi | |
10239 | rm -fr conftest* | |
90dd450c | 10240 | fi |
4f14bcd8 | 10241 | |
21d1c967 GD |
10242 | fi |
10243 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 | |
10244 | cat >> confdefs.h <<EOF | |
10245 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
10246 | EOF | |
90dd450c | 10247 | |
21d1c967 GD |
10248 | |
10249 | ;; | |
10250 | * ) | |
10251 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
321d2b14 | 10252 | echo "configure:10253: checking size of long long" >&5 |
21d1c967 | 10253 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
4f14bcd8 GD |
10254 | echo $ac_n "(cached) $ac_c" 1>&6 |
10255 | else | |
21d1c967 GD |
10256 | if test "$cross_compiling" = yes; then |
10257 | ac_cv_sizeof_long_long=0 | |
10258 | else | |
10259 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 10260 | #line 10261 "configure" |
90dd450c | 10261 | #include "confdefs.h" |
21d1c967 GD |
10262 | #include <stdio.h> |
10263 | main() | |
10264 | { | |
10265 | FILE *f=fopen("conftestval", "w"); | |
10266 | if (!f) exit(1); | |
10267 | fprintf(f, "%d\n", sizeof(long long)); | |
10268 | exit(0); | |
10269 | } | |
90dd450c | 10270 | EOF |
321d2b14 | 10271 | if { (eval echo configure:10272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
21d1c967 GD |
10272 | then |
10273 | ac_cv_sizeof_long_long=`cat conftestval` | |
4f14bcd8 | 10274 | else |
90dd450c VZ |
10275 | echo "configure: failed program was:" >&5 |
10276 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
10277 | rm -fr conftest* |
10278 | ac_cv_sizeof_long_long=0 | |
90dd450c | 10279 | fi |
21d1c967 | 10280 | rm -fr conftest* |
4f14bcd8 GD |
10281 | fi |
10282 | ||
90dd450c | 10283 | fi |
21d1c967 GD |
10284 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
10285 | cat >> confdefs.h <<EOF | |
10286 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
90dd450c | 10287 | EOF |
9e691f46 | 10288 | |
9e691f46 | 10289 | |
21d1c967 GD |
10290 | esac |
10291 | ||
10292 | echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6 | |
321d2b14 | 10293 | echo "configure:10294: checking size of wchar_t" >&5 |
21d1c967 | 10294 | if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then |
90dd450c | 10295 | echo $ac_n "(cached) $ac_c" 1>&6 |
21d1c967 GD |
10296 | else |
10297 | ||
10298 | if test "$cross_compiling" = yes; then | |
10299 | wx_cv_sizeof_wchar_t=4 | |
10300 | ||
6f72b082 | 10301 | else |
698dcdb6 | 10302 | cat > conftest.$ac_ext <<EOF |
321d2b14 | 10303 | #line 10304 "configure" |
6f72b082 | 10304 | #include "confdefs.h" |
21d1c967 GD |
10305 | |
10306 | #ifdef HAVE_WCHAR_H | |
10307 | # ifdef __CYGWIN__ | |
10308 | # include <stddef.h> | |
10309 | # endif | |
10310 | # include <wchar.h> | |
10311 | #endif | |
10312 | #ifdef HAVE_STDLIB_H | |
10313 | # include <stdlib.h> | |
10314 | #endif | |
10315 | #include <stdio.h> | |
10316 | int main() | |
10317 | { | |
10318 | FILE *f=fopen("conftestval", "w"); | |
10319 | if (!f) exit(1); | |
10320 | fprintf(f, "%i", sizeof(wchar_t)); | |
10321 | exit(0); | |
10322 | } | |
10323 | ||
698dcdb6 | 10324 | EOF |
321d2b14 | 10325 | if { (eval echo configure:10326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
21d1c967 GD |
10326 | then |
10327 | wx_cv_sizeof_wchar_t=`cat conftestval` | |
6f72b082 | 10328 | else |
698dcdb6 VZ |
10329 | echo "configure: failed program was:" >&5 |
10330 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
10331 | rm -fr conftest* |
10332 | wx_cv_sizeof_wchar_t=0 | |
6f72b082 | 10333 | fi |
21d1c967 | 10334 | rm -fr conftest* |
6f72b082 | 10335 | fi |
6f72b082 | 10336 | |
90dd450c | 10337 | |
3f345b47 VZ |
10338 | fi |
10339 | ||
21d1c967 | 10340 | echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6 |
3f345b47 | 10341 | |
21d1c967 GD |
10342 | cat >> confdefs.h <<EOF |
10343 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t | |
10344 | EOF | |
90dd450c | 10345 | |
90dd450c | 10346 | |
21d1c967 GD |
10347 | # Check whether --enable-largefile or --disable-largefile was given. |
10348 | if test "${enable_largefile+set}" = set; then | |
10349 | enableval="$enable_largefile" | |
10350 | : | |
3f345b47 VZ |
10351 | fi |
10352 | ||
21d1c967 GD |
10353 | if test "$enable_largefile" != no; then |
10354 | wx_largefile=no | |
10355 | ||
10356 | echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6 | |
321d2b14 | 10357 | echo "configure:10358: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
21d1c967 | 10358 | if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then |
698dcdb6 | 10359 | echo $ac_n "(cached) $ac_c" 1>&6 |
f6bcfd97 | 10360 | else |
21d1c967 GD |
10361 | |
10362 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 10363 | #line 10364 "configure" |
90dd450c | 10364 | #include "confdefs.h" |
21d1c967 GD |
10365 | #define _FILE_OFFSET_BITS 64 |
10366 | #include <sys/types.h> | |
10367 | int main() { | |
10368 | typedef struct { | |
10369 | unsigned int field: sizeof(off_t) == 8; | |
10370 | } wxlf; | |
10371 | ||
10372 | ; return 0; } | |
90dd450c | 10373 | EOF |
321d2b14 | 10374 | if { (eval echo configure:10375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
90dd450c | 10375 | rm -rf conftest* |
21d1c967 | 10376 | ac_cv_sys_file_offset_bits=64 |
f6bcfd97 | 10377 | else |
90dd450c VZ |
10378 | echo "configure: failed program was:" >&5 |
10379 | cat conftest.$ac_ext >&5 | |
10380 | rm -rf conftest* | |
21d1c967 | 10381 | ac_cv_sys_file_offset_bits=no |
f6bcfd97 | 10382 | fi |
90dd450c | 10383 | rm -f conftest* |
21d1c967 GD |
10384 | |
10385 | ||
90dd450c | 10386 | fi |
21d1c967 GD |
10387 | |
10388 | echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6 | |
10389 | ||
10390 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
10391 | wx_largefile=yes | |
10392 | cat >> confdefs.h <<EOF | |
10393 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
10394 | EOF | |
10395 | ||
10396 | fi | |
10397 | ||
10398 | if test "x$wx_largefile" != "xyes"; then | |
10399 | ||
10400 | echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6 | |
321d2b14 | 10401 | echo "configure:10402: checking for _LARGE_FILES value needed for large files" >&5 |
21d1c967 | 10402 | if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then |
90dd450c | 10403 | echo $ac_n "(cached) $ac_c" 1>&6 |
f6bcfd97 | 10404 | else |
21d1c967 GD |
10405 | |
10406 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 10407 | #line 10408 "configure" |
f6bcfd97 | 10408 | #include "confdefs.h" |
21d1c967 GD |
10409 | #define _LARGE_FILES 1 |
10410 | #include <sys/types.h> | |
90dd450c | 10411 | int main() { |
21d1c967 GD |
10412 | typedef struct { |
10413 | unsigned int field: sizeof(off_t) == 8; | |
10414 | } wxlf; | |
10415 | ||
90dd450c | 10416 | ; return 0; } |
698dcdb6 | 10417 | EOF |
321d2b14 | 10418 | if { (eval echo configure:10419: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
90dd450c | 10419 | rm -rf conftest* |
21d1c967 | 10420 | ac_cv_sys_large_files=1 |
f6bcfd97 | 10421 | else |
698dcdb6 VZ |
10422 | echo "configure: failed program was:" >&5 |
10423 | cat conftest.$ac_ext >&5 | |
90dd450c | 10424 | rm -rf conftest* |
21d1c967 | 10425 | ac_cv_sys_large_files=no |
f6bcfd97 | 10426 | fi |
90dd450c | 10427 | rm -f conftest* |
21d1c967 GD |
10428 | |
10429 | ||
f6bcfd97 | 10430 | fi |
698dcdb6 | 10431 | |
21d1c967 | 10432 | echo "$ac_t""$ac_cv_sys_large_files" 1>&6 |
3f345b47 | 10433 | |
21d1c967 GD |
10434 | if test "$ac_cv_sys_large_files" != no; then |
10435 | wx_largefile=yes | |
10436 | cat >> confdefs.h <<EOF | |
10437 | #define _LARGE_FILES $ac_cv_sys_large_files | |
10438 | EOF | |
90dd450c | 10439 | |
90dd450c VZ |
10440 | fi |
10441 | ||
90dd450c | 10442 | fi |
90dd450c | 10443 | |
21d1c967 | 10444 | echo $ac_n "checking if large file support is available""... $ac_c" 1>&6 |
321d2b14 | 10445 | echo "configure:10446: checking if large file support is available" >&5 |
21d1c967 GD |
10446 | if test "x$wx_largefile" = "xyes"; then |
10447 | cat >> confdefs.h <<\EOF | |
10448 | #define HAVE_LARGEFILE_SUPPORT 1 | |
90dd450c VZ |
10449 | EOF |
10450 | ||
90dd450c | 10451 | fi |
21d1c967 GD |
10452 | echo "$ac_t""$wx_largefile" 1>&6 |
10453 | fi | |
90dd450c | 10454 | |
90dd450c | 10455 | |
21d1c967 | 10456 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
321d2b14 | 10457 | echo "configure:10458: checking whether byte ordering is bigendian" >&5 |
21d1c967 | 10458 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
90dd450c VZ |
10459 | echo $ac_n "(cached) $ac_c" 1>&6 |
10460 | else | |
21d1c967 GD |
10461 | ac_cv_c_bigendian=unknown |
10462 | # See if sys/param.h defines the BYTE_ORDER macro. | |
10463 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 10464 | #line 10465 "configure" |
90dd450c | 10465 | #include "confdefs.h" |
21d1c967 GD |
10466 | #include <sys/types.h> |
10467 | #include <sys/param.h> | |
10468 | int main() { | |
10469 | ||
10470 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
10471 | bogus endian macros | |
10472 | #endif | |
10473 | ; return 0; } | |
90dd450c | 10474 | EOF |
321d2b14 | 10475 | if { (eval echo configure:10476: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
90dd450c | 10476 | rm -rf conftest* |
21d1c967 | 10477 | # It does; now see whether it defined to BIG_ENDIAN or not. |
90dd450c | 10478 | cat > conftest.$ac_ext <<EOF |
321d2b14 | 10479 | #line 10480 "configure" |
90dd450c | 10480 | #include "confdefs.h" |
21d1c967 GD |
10481 | #include <sys/types.h> |
10482 | #include <sys/param.h> | |
3f345b47 | 10483 | int main() { |
21d1c967 GD |
10484 | |
10485 | #if BYTE_ORDER != BIG_ENDIAN | |
10486 | not big endian | |
10487 | #endif | |
3f345b47 VZ |
10488 | ; return 0; } |
10489 | EOF | |
321d2b14 | 10490 | if { (eval echo configure:10491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
3f345b47 | 10491 | rm -rf conftest* |
21d1c967 | 10492 | ac_cv_c_bigendian=yes |
3f345b47 VZ |
10493 | else |
10494 | echo "configure: failed program was:" >&5 | |
10495 | cat conftest.$ac_ext >&5 | |
10496 | rm -rf conftest* | |
21d1c967 | 10497 | ac_cv_c_bigendian=no |
3f345b47 VZ |
10498 | fi |
10499 | rm -f conftest* | |
3f345b47 | 10500 | else |
21d1c967 GD |
10501 | echo "configure: failed program was:" >&5 |
10502 | cat conftest.$ac_ext >&5 | |
3f345b47 | 10503 | fi |
21d1c967 GD |
10504 | rm -f conftest* |
10505 | if test $ac_cv_c_bigendian = unknown; then | |
10506 | if test "$cross_compiling" = yes; then | |
10507 | ac_cv_c_bigendian=unknown | |
10f2d63a | 10508 | else |
90dd450c | 10509 | cat > conftest.$ac_ext <<EOF |
321d2b14 | 10510 | #line 10511 "configure" |
90dd450c | 10511 | #include "confdefs.h" |
21d1c967 GD |
10512 | main () { |
10513 | /* Are we little or big endian? From Harbison&Steele. */ | |
10514 | union | |
10515 | { | |
10516 | long l; | |
10517 | char c[sizeof (long)]; | |
10518 | } u; | |
10519 | u.l = 1; | |
10520 | exit (u.c[sizeof (long) - 1] == 1); | |
10521 | } | |
3f345b47 | 10522 | EOF |
321d2b14 | 10523 | if { (eval echo configure:10524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
21d1c967 GD |
10524 | then |
10525 | ac_cv_c_bigendian=no | |
3f345b47 VZ |
10526 | else |
10527 | echo "configure: failed program was:" >&5 | |
10528 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
10529 | rm -fr conftest* |
10530 | ac_cv_c_bigendian=yes | |
3f345b47 | 10531 | fi |
21d1c967 | 10532 | rm -fr conftest* |
8168de4c | 10533 | fi |
703e0a69 | 10534 | |
21d1c967 GD |
10535 | fi |
10536 | fi | |
698dcdb6 | 10537 | |
21d1c967 GD |
10538 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 |
10539 | if test $ac_cv_c_bigendian = unknown; then | |
10540 | 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 | |
10541 | fi | |
10542 | if test $ac_cv_c_bigendian = yes; then | |
10543 | cat >> confdefs.h <<\EOF | |
10544 | #define WORDS_BIGENDIAN 1 | |
10545 | EOF | |
10546 | ||
10547 | fi | |
10548 | ||
10549 | ||
10550 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 | |
321d2b14 | 10551 | echo "configure:10552: checking how to run the C++ preprocessor" >&5 |
21d1c967 GD |
10552 | if test -z "$CXXCPP"; then |
10553 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then | |
698dcdb6 | 10554 | echo $ac_n "(cached) $ac_c" 1>&6 |
7ec2881a | 10555 | else |
21d1c967 GD |
10556 | ac_ext=C |
10557 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10558 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10559 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10560 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10561 | cross_compiling=$ac_cv_prog_cxx_cross | |
10562 | CXXCPP="${CXX-g++} -E" | |
10563 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 10564 | #line 10565 "configure" |
7ec2881a | 10565 | #include "confdefs.h" |
21d1c967 | 10566 | #include <stdlib.h> |
698dcdb6 | 10567 | EOF |
21d1c967 | 10568 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
321d2b14 | 10569 | { (eval echo configure:10570: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
10570 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10571 | if test -z "$ac_err"; then | |
10572 | : | |
698dcdb6 | 10573 | else |
21d1c967 | 10574 | echo "$ac_err" >&5 |
698dcdb6 VZ |
10575 | echo "configure: failed program was:" >&5 |
10576 | cat conftest.$ac_ext >&5 | |
10577 | rm -rf conftest* | |
21d1c967 | 10578 | CXXCPP=/lib/cpp |
698dcdb6 VZ |
10579 | fi |
10580 | rm -f conftest* | |
21d1c967 GD |
10581 | ac_cv_prog_CXXCPP="$CXXCPP" |
10582 | ac_ext=C | |
10583 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10584 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10585 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10586 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10587 | cross_compiling=$ac_cv_prog_cxx_cross | |
7ec2881a | 10588 | fi |
90dd450c | 10589 | fi |
21d1c967 GD |
10590 | CXXCPP="$ac_cv_prog_CXXCPP" |
10591 | echo "$ac_t""$CXXCPP" 1>&6 | |
1e6feb95 | 10592 | |
1725144d | 10593 | |
21d1c967 | 10594 | if test "$cross_compiling" = "yes"; then |
90dd450c | 10595 | cat >> confdefs.h <<\EOF |
21d1c967 | 10596 | #define wxUSE_IOSTREAMH 1 |
90dd450c | 10597 | EOF |
ab9b9eab | 10598 | |
21d1c967 GD |
10599 | else |
10600 | ||
10601 | ac_ext=C | |
10602 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10603 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10604 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10605 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10606 | cross_compiling=$ac_cv_prog_cxx_cross | |
10607 | ||
ba337fe7 | 10608 | |
21d1c967 GD |
10609 | for ac_hdr in iostream |
10610 | do | |
10611 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
10612 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
321d2b14 | 10613 | echo "configure:10614: checking for $ac_hdr" >&5 |
90dd450c | 10614 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
698dcdb6 | 10615 | echo $ac_n "(cached) $ac_c" 1>&6 |
ab9b9eab | 10616 | else |
90dd450c | 10617 | cat > conftest.$ac_ext <<EOF |
321d2b14 | 10618 | #line 10619 "configure" |
ab9b9eab | 10619 | #include "confdefs.h" |
21d1c967 | 10620 | #include <$ac_hdr> |
698dcdb6 VZ |
10621 | EOF |
10622 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
321d2b14 | 10623 | { (eval echo configure:10624: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
10624 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10625 | if test -z "$ac_err"; then | |
10626 | rm -rf conftest* | |
90dd450c | 10627 | eval "ac_cv_header_$ac_safe=yes" |
ab9b9eab | 10628 | else |
698dcdb6 VZ |
10629 | echo "$ac_err" >&5 |
10630 | echo "configure: failed program was:" >&5 | |
ab9b9eab | 10631 | cat conftest.$ac_ext >&5 |
698dcdb6 | 10632 | rm -rf conftest* |
90dd450c | 10633 | eval "ac_cv_header_$ac_safe=no" |
ab9b9eab | 10634 | fi |
698dcdb6 | 10635 | rm -f conftest* |
90dd450c VZ |
10636 | fi |
10637 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10638 | echo "$ac_t""yes" 1>&6 | |
21d1c967 GD |
10639 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
10640 | cat >> confdefs.h <<EOF | |
10641 | #define $ac_tr_hdr 1 | |
698dcdb6 | 10642 | EOF |
21d1c967 | 10643 | |
ab9b9eab | 10644 | else |
90dd450c VZ |
10645 | echo "$ac_t""no" 1>&6 |
10646 | fi | |
21d1c967 | 10647 | done |
10f2d63a | 10648 | |
10f2d63a | 10649 | |
21d1c967 GD |
10650 | if test "$ac_cv_header_iostream" = "yes" ; then |
10651 | : | |
10652 | else | |
10653 | cat >> confdefs.h <<\EOF | |
10654 | #define wxUSE_IOSTREAMH 1 | |
10655 | EOF | |
788deba1 | 10656 | |
90dd450c | 10657 | fi |
ab9b9eab | 10658 | |
21d1c967 GD |
10659 | ac_ext=c |
10660 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10661 | ac_cpp='$CPP $CPPFLAGS' | |
10662 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10663 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10664 | cross_compiling=$ac_cv_prog_cc_cross | |
ab9b9eab | 10665 | |
21d1c967 | 10666 | fi |
ab9b9eab | 10667 | |
21d1c967 GD |
10668 | |
10669 | ||
10670 | echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6 | |
321d2b14 | 10671 | echo "configure:10672: checking if C++ compiler supports bool" >&5 |
21d1c967 | 10672 | if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then |
698dcdb6 | 10673 | echo $ac_n "(cached) $ac_c" 1>&6 |
ab9b9eab | 10674 | else |
21d1c967 GD |
10675 | |
10676 | ||
10677 | ac_ext=C | |
10678 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10679 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10680 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10681 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10682 | cross_compiling=$ac_cv_prog_cxx_cross | |
10683 | ||
10684 | ||
10685 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 10686 | #line 10687 "configure" |
ab9b9eab | 10687 | #include "confdefs.h" |
21d1c967 GD |
10688 | |
10689 | ||
10690 | int main() { | |
10691 | ||
10692 | bool b = true; | |
10693 | ||
10694 | return 0; | |
10695 | ||
10696 | ; return 0; } | |
698dcdb6 | 10697 | EOF |
321d2b14 | 10698 | if { (eval echo configure:10699: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 10699 | rm -rf conftest* |
21d1c967 GD |
10700 | |
10701 | wx_cv_cpp_bool=yes | |
10702 | ||
698dcdb6 VZ |
10703 | else |
10704 | echo "configure: failed program was:" >&5 | |
10705 | cat conftest.$ac_ext >&5 | |
10706 | rm -rf conftest* | |
21d1c967 GD |
10707 | |
10708 | wx_cv_cpp_bool=no | |
10709 | ||
10710 | ||
698dcdb6 VZ |
10711 | fi |
10712 | rm -f conftest* | |
21d1c967 GD |
10713 | |
10714 | ac_ext=c | |
10715 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10716 | ac_cpp='$CPP $CPPFLAGS' | |
10717 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10718 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10719 | cross_compiling=$ac_cv_prog_cc_cross | |
10720 | ||
10721 | ||
698dcdb6 | 10722 | fi |
21d1c967 GD |
10723 | |
10724 | echo "$ac_t""$wx_cv_cpp_bool" 1>&6 | |
10725 | ||
10726 | if test "$wx_cv_cpp_bool" = "yes"; then | |
10727 | cat >> confdefs.h <<\EOF | |
10728 | #define HAVE_BOOL 1 | |
90dd450c | 10729 | EOF |
ab9b9eab | 10730 | |
21d1c967 GD |
10731 | fi |
10732 | ||
10733 | ||
10734 | ||
10735 | SEARCH_INCLUDE="\ | |
10736 | /usr/local/include \ | |
10737 | \ | |
10738 | /usr/Motif-1.2/include \ | |
10739 | /usr/Motif-2.1/include \ | |
10740 | \ | |
10741 | /usr/include/Motif1.2 \ | |
10742 | /opt/xpm/include/X11 \ | |
10743 | /opt/GBxpm/include/ \ | |
10744 | /opt/GBxpm/X11/include/ \ | |
10745 | \ | |
10746 | /usr/Motif1.2/include \ | |
10747 | /usr/dt/include \ | |
10748 | /usr/openwin/include \ | |
10749 | \ | |
10750 | /usr/include/Xm \ | |
10751 | \ | |
10752 | /usr/X11R6/include \ | |
10753 | /usr/X11R6.4/include \ | |
10754 | /usr/X11R5/include \ | |
10755 | /usr/X11R4/include \ | |
10756 | \ | |
10757 | /usr/include/X11R6 \ | |
10758 | /usr/include/X11R5 \ | |
10759 | /usr/include/X11R4 \ | |
10760 | \ | |
10761 | /usr/local/X11R6/include \ | |
10762 | /usr/local/X11R5/include \ | |
10763 | /usr/local/X11R4/include \ | |
10764 | \ | |
10765 | /usr/local/include/X11R6 \ | |
10766 | /usr/local/include/X11R5 \ | |
10767 | /usr/local/include/X11R4 \ | |
10768 | \ | |
10769 | /usr/X11/include \ | |
10770 | /usr/include/X11 \ | |
10771 | /usr/local/X11/include \ | |
10772 | /usr/local/include/X11 \ | |
10773 | \ | |
10774 | /usr/X386/include \ | |
10775 | /usr/x386/include \ | |
10776 | /usr/XFree86/include/X11 \ | |
10777 | \ | |
10778 | X:/XFree86/include \ | |
10779 | X:/XFree86/include/X11 \ | |
10780 | \ | |
10781 | /usr/include/gtk \ | |
10782 | /usr/local/include/gtk \ | |
10783 | /usr/include/glib \ | |
10784 | /usr/local/include/glib \ | |
10785 | \ | |
10786 | /usr/include/qt \ | |
10787 | /usr/local/include/qt \ | |
10788 | \ | |
10789 | /usr/include/windows \ | |
10790 | /usr/include/wine \ | |
10791 | /usr/local/include/wine \ | |
10792 | \ | |
10793 | /usr/unsupported/include \ | |
10794 | /usr/athena/include \ | |
10795 | /usr/local/x11r5/include \ | |
10796 | /usr/lpp/Xamples/include \ | |
10797 | \ | |
10798 | /usr/openwin/share/include \ | |
10799 | \ | |
10800 | /usr/include" | |
10801 | ||
10802 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
10803 | ||
10804 | ||
10805 | cat > confcache <<\EOF | |
10806 | # This file is a shell script that caches the results of configure | |
10807 | # tests run on this system so they can be shared between configure | |
10808 | # scripts and configure runs. It is not useful on other systems. | |
10809 | # If it contains results you don't want to keep, you may remove or edit it. | |
10810 | # | |
10811 | # By default, configure uses ./config.cache as the cache file, | |
10812 | # creating it if it does not exist already. You can give configure | |
10813 | # the --cache-file=FILE option to use a different cache file; that is | |
10814 | # what configure does when it calls configure scripts in | |
10815 | # subdirectories, so they share the cache. | |
10816 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
10817 | # config.status only pays attention to the cache file if you give it the | |
10818 | # --recheck option to rerun configure. | |
10819 | # | |
698dcdb6 | 10820 | EOF |
21d1c967 GD |
10821 | # The following way of writing the cache mishandles newlines in values, |
10822 | # but we know of no workaround that is simple, portable, and efficient. | |
10823 | # So, don't put newlines in cache variables' values. | |
10824 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
10825 | # and sets the high bit in the cache file unless we assign to the vars. | |
10826 | (set) 2>&1 | | |
10827 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
10828 | *ac_space=\ *) | |
10829 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
10830 | # turns \\\\ into \\, and sed turns \\ into \). | |
10831 | sed -n \ | |
10832 | -e "s/'/'\\\\''/g" \ | |
10833 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
10834 | ;; | |
10835 | *) | |
10836 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
10837 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
10838 | ;; | |
10839 | esac >> confcache | |
10840 | if cmp -s $cache_file confcache; then | |
90dd450c | 10841 | : |
698dcdb6 | 10842 | else |
21d1c967 GD |
10843 | if test -w $cache_file; then |
10844 | echo "updating cache $cache_file" | |
10845 | cat confcache > $cache_file | |
10846 | else | |
10847 | echo "not updating unwritable cache $cache_file" | |
10848 | fi | |
ab9b9eab | 10849 | fi |
21d1c967 | 10850 | rm -f confcache |
ab9b9eab | 10851 | |
ab9b9eab | 10852 | |
21d1c967 GD |
10853 | if test "$USE_LINUX" = 1; then |
10854 | echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6 | |
321d2b14 | 10855 | echo "configure:10856: checking for glibc 2.1 or later" >&5 |
21d1c967 | 10856 | if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then |
698dcdb6 VZ |
10857 | echo $ac_n "(cached) $ac_c" 1>&6 |
10858 | else | |
90dd450c | 10859 | |
21d1c967 | 10860 | cat > conftest.$ac_ext <<EOF |
321d2b14 | 10861 | #line 10862 "configure" |
ab9b9eab | 10862 | #include "confdefs.h" |
21d1c967 | 10863 | #include <features.h> |
698dcdb6 | 10864 | int main() { |
ab9b9eab | 10865 | |
21d1c967 GD |
10866 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) |
10867 | #error not glibc2.1 | |
10868 | #endif | |
10869 | ||
698dcdb6 VZ |
10870 | ; return 0; } |
10871 | EOF | |
321d2b14 | 10872 | if { (eval echo configure:10873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 10873 | rm -rf conftest* |
90dd450c | 10874 | |
21d1c967 GD |
10875 | wx_cv_lib_glibc21=yes |
10876 | ||
698dcdb6 VZ |
10877 | else |
10878 | echo "configure: failed program was:" >&5 | |
10879 | cat conftest.$ac_ext >&5 | |
10880 | rm -rf conftest* | |
90dd450c | 10881 | |
21d1c967 GD |
10882 | wx_cv_lib_glibc21=no |
10883 | ||
10884 | ||
698dcdb6 VZ |
10885 | fi |
10886 | rm -f conftest* | |
90dd450c | 10887 | |
698dcdb6 VZ |
10888 | fi |
10889 | ||
21d1c967 GD |
10890 | echo "$ac_t""$wx_cv_lib_glibc21" 1>&6 |
10891 | if test "$wx_cv_lib_glibc21" = "yes"; then | |
10892 | cat >> confdefs.h <<\EOF | |
10893 | #define wxHAVE_GLIBC2 1 | |
10894 | EOF | |
1e487827 | 10895 | |
90dd450c | 10896 | fi |
ab9b9eab VZ |
10897 | fi |
10898 | ||
ab9b9eab | 10899 | |
ab9b9eab | 10900 | |
21d1c967 GD |
10901 | REGEX_INCLUDE= |
10902 | if test "$wxUSE_REGEX" != "no"; then | |
10903 | cat >> confdefs.h <<\EOF | |
10904 | #define wxUSE_REGEX 1 | |
10905 | EOF | |
698dcdb6 | 10906 | |
ab9b9eab | 10907 | |
21d1c967 GD |
10908 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then |
10909 | ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'` | |
10910 | echo $ac_n "checking for regex.h""... $ac_c" 1>&6 | |
321d2b14 | 10911 | echo "configure:10912: checking for regex.h" >&5 |
21d1c967 | 10912 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
698dcdb6 | 10913 | echo $ac_n "(cached) $ac_c" 1>&6 |
ab9b9eab | 10914 | else |
21d1c967 | 10915 | cat > conftest.$ac_ext <<EOF |
321d2b14 | 10916 | #line 10917 "configure" |
21d1c967 GD |
10917 | #include "confdefs.h" |
10918 | #include <regex.h> | |
10919 | EOF | |
10920 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
321d2b14 | 10921 | { (eval echo configure:10922: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
10922 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10923 | if test -z "$ac_err"; then | |
10924 | rm -rf conftest* | |
10925 | eval "ac_cv_header_$ac_safe=yes" | |
698dcdb6 | 10926 | else |
21d1c967 GD |
10927 | echo "$ac_err" >&5 |
10928 | echo "configure: failed program was:" >&5 | |
10929 | cat conftest.$ac_ext >&5 | |
10930 | rm -rf conftest* | |
10931 | eval "ac_cv_header_$ac_safe=no" | |
10932 | fi | |
10933 | rm -f conftest* | |
698dcdb6 | 10934 | fi |
21d1c967 GD |
10935 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10936 | echo "$ac_t""yes" 1>&6 | |
10937 | for ac_func in regcomp | |
10938 | do | |
10939 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
321d2b14 | 10940 | echo "configure:10941: checking for $ac_func" >&5 |
21d1c967 GD |
10941 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10942 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10943 | else | |
10944 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 10945 | #line 10946 "configure" |
21d1c967 GD |
10946 | #include "confdefs.h" |
10947 | /* System header to define __stub macros and hopefully few prototypes, | |
10948 | which can conflict with char $ac_func(); below. */ | |
10949 | #include <assert.h> | |
10950 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10951 | /* We use char because int might match the return type of a gcc2 | |
10952 | builtin and then its argument prototype would still apply. */ | |
10953 | char $ac_func(); | |
698dcdb6 | 10954 | |
21d1c967 | 10955 | int main() { |
90dd450c | 10956 | |
21d1c967 GD |
10957 | /* The GNU C library defines this for functions which it implements |
10958 | to always fail with ENOSYS. Some functions are actually named | |
10959 | something starting with __ and the normal name is an alias. */ | |
10960 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10961 | choke me | |
10962 | #else | |
10963 | $ac_func(); | |
10964 | #endif | |
90dd450c | 10965 | |
21d1c967 GD |
10966 | ; return 0; } |
10967 | EOF | |
321d2b14 | 10968 | if { (eval echo configure:10969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
21d1c967 GD |
10969 | rm -rf conftest* |
10970 | eval "ac_cv_func_$ac_func=yes" | |
10971 | else | |
10972 | echo "configure: failed program was:" >&5 | |
10973 | cat conftest.$ac_ext >&5 | |
10974 | rm -rf conftest* | |
10975 | eval "ac_cv_func_$ac_func=no" | |
10976 | fi | |
10977 | rm -f conftest* | |
10978 | fi | |
90dd450c | 10979 | |
21d1c967 GD |
10980 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
10981 | echo "$ac_t""yes" 1>&6 | |
10982 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10983 | cat >> confdefs.h <<EOF | |
10984 | #define $ac_tr_func 1 | |
10985 | EOF | |
10986 | ||
90dd450c | 10987 | else |
21d1c967 | 10988 | echo "$ac_t""no" 1>&6 |
698dcdb6 | 10989 | fi |
21d1c967 GD |
10990 | done |
10991 | ||
698dcdb6 VZ |
10992 | else |
10993 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
10994 | fi |
10995 | ||
90dd450c | 10996 | |
21d1c967 GD |
10997 | if test "x$ac_cv_func_regcomp" != "xyes"; then |
10998 | if test "$wxUSE_REGEX" = "sys" ; then | |
10999 | { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; } | |
11000 | else | |
11001 | echo "configure: warning: system regex library not found, will use built-in instead" 1>&2 | |
11002 | wxUSE_REGEX=builtin | |
11003 | fi | |
11004 | else | |
11005 | wxUSE_REGEX=sys | |
11006 | fi | |
ab9b9eab | 11007 | fi |
90dd450c | 11008 | |
21d1c967 GD |
11009 | if test "$wxUSE_REGEX" = "builtin" ; then |
11010 | REGEX_INCLUDE="-I\${top_srcdir}/src/regex" | |
90dd450c | 11011 | fi |
21d1c967 | 11012 | fi |
90dd450c | 11013 | |
90dd450c | 11014 | |
21d1c967 GD |
11015 | ZLIB_INCLUDE= |
11016 | ZLIB_LINK= | |
11017 | if test "$wxUSE_ZLIB" != "no" ; then | |
11018 | cat >> confdefs.h <<\EOF | |
11019 | #define wxUSE_ZLIB 1 | |
11020 | EOF | |
11021 | ||
11022 | ||
11023 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then | |
11024 | ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'` | |
11025 | echo $ac_n "checking for zlib.h""... $ac_c" 1>&6 | |
321d2b14 | 11026 | echo "configure:11027: checking for zlib.h" >&5 |
21d1c967 GD |
11027 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11028 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11029 | else |
698dcdb6 | 11030 | cat > conftest.$ac_ext <<EOF |
321d2b14 | 11031 | #line 11032 "configure" |
ab9b9eab | 11032 | #include "confdefs.h" |
21d1c967 | 11033 | #include <zlib.h> |
698dcdb6 | 11034 | EOF |
21d1c967 | 11035 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
321d2b14 | 11036 | { (eval echo configure:11037: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
11037 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11038 | if test -z "$ac_err"; then | |
11039 | rm -rf conftest* | |
11040 | eval "ac_cv_header_$ac_safe=yes" | |
698dcdb6 | 11041 | else |
21d1c967 | 11042 | echo "$ac_err" >&5 |
698dcdb6 VZ |
11043 | echo "configure: failed program was:" >&5 |
11044 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
11045 | rm -rf conftest* |
11046 | eval "ac_cv_header_$ac_safe=no" | |
698dcdb6 | 11047 | fi |
21d1c967 | 11048 | rm -f conftest* |
ab9b9eab | 11049 | fi |
21d1c967 GD |
11050 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11051 | echo "$ac_t""yes" 1>&6 | |
11052 | echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6 | |
321d2b14 | 11053 | echo "configure:11054: checking for deflate in -lz" >&5 |
21d1c967 GD |
11054 | ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'` |
11055 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11056 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11057 | else | |
11058 | ac_save_LIBS="$LIBS" | |
11059 | LIBS="-lz $LIBS" | |
11060 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 11061 | #line 11062 "configure" |
ab9b9eab | 11062 | #include "confdefs.h" |
21d1c967 GD |
11063 | /* Override any gcc2 internal prototype to avoid an error. */ |
11064 | /* We use char because int might match the return type of a gcc2 | |
11065 | builtin and then its argument prototype would still apply. */ | |
11066 | char deflate(); | |
ab9b9eab | 11067 | |
90dd450c | 11068 | int main() { |
21d1c967 | 11069 | deflate() |
698dcdb6 VZ |
11070 | ; return 0; } |
11071 | EOF | |
321d2b14 | 11072 | if { (eval echo configure:11073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 11073 | rm -rf conftest* |
21d1c967 | 11074 | eval "ac_cv_lib_$ac_lib_var=yes" |
698dcdb6 VZ |
11075 | else |
11076 | echo "configure: failed program was:" >&5 | |
11077 | cat conftest.$ac_ext >&5 | |
11078 | rm -rf conftest* | |
21d1c967 | 11079 | eval "ac_cv_lib_$ac_lib_var=no" |
698dcdb6 VZ |
11080 | fi |
11081 | rm -f conftest* | |
21d1c967 | 11082 | LIBS="$ac_save_LIBS" |
ab9b9eab | 11083 | |
21d1c967 GD |
11084 | fi |
11085 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11086 | echo "$ac_t""yes" 1>&6 | |
11087 | ZLIB_LINK=" -lz" | |
ab9b9eab | 11088 | else |
21d1c967 | 11089 | echo "$ac_t""no" 1>&6 |
90dd450c | 11090 | fi |
698dcdb6 | 11091 | |
698dcdb6 | 11092 | else |
21d1c967 | 11093 | echo "$ac_t""no" 1>&6 |
698dcdb6 | 11094 | fi |
698dcdb6 | 11095 | |
21d1c967 GD |
11096 | |
11097 | if test "x$ZLIB_LINK" = "x" ; then | |
11098 | if test "$wxUSE_ZLIB" = "sys" ; then | |
11099 | { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; } | |
11100 | else | |
11101 | echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2 | |
11102 | wxUSE_ZLIB=builtin | |
11103 | fi | |
11104 | else | |
11105 | wxUSE_ZLIB=sys | |
11106 | fi | |
11107 | fi | |
11108 | ||
11109 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
11110 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
11111 | fi | |
ab9b9eab VZ |
11112 | fi |
11113 | ||
ab9b9eab | 11114 | |
21d1c967 GD |
11115 | PNG_INCLUDE= |
11116 | PNG_LINK= | |
11117 | if test "$wxUSE_LIBPNG" != "no" ; then | |
11118 | cat >> confdefs.h <<\EOF | |
11119 | #define wxUSE_LIBPNG 1 | |
11120 | EOF | |
90dd450c | 11121 | |
21d1c967 GD |
11122 | |
11123 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then | |
11124 | echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2 | |
11125 | wxUSE_LIBPNG=sys | |
11126 | fi | |
90dd450c | 11127 | |
21d1c967 GD |
11128 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then |
11129 | echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2 | |
11130 | wxUSE_LIBPNG=builtin | |
11131 | fi | |
11132 | ||
11133 | if test "$wxUSE_MGL" != 1 ; then | |
11134 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
11135 | ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` | |
11136 | echo $ac_n "checking for png.h""... $ac_c" 1>&6 | |
321d2b14 | 11137 | echo "configure:11138: checking for png.h" >&5 |
21d1c967 | 11138 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
90dd450c VZ |
11139 | echo $ac_n "(cached) $ac_c" 1>&6 |
11140 | else | |
21d1c967 | 11141 | cat > conftest.$ac_ext <<EOF |
321d2b14 | 11142 | #line 11143 "configure" |
21d1c967 GD |
11143 | #include "confdefs.h" |
11144 | #include <png.h> | |
11145 | EOF | |
11146 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
321d2b14 | 11147 | { (eval echo configure:11148: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
11148 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11149 | if test -z "$ac_err"; then | |
11150 | rm -rf conftest* | |
11151 | eval "ac_cv_header_$ac_safe=yes" | |
90dd450c | 11152 | else |
21d1c967 | 11153 | echo "$ac_err" >&5 |
90dd450c VZ |
11154 | echo "configure: failed program was:" >&5 |
11155 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
11156 | rm -rf conftest* |
11157 | eval "ac_cv_header_$ac_safe=no" | |
90dd450c | 11158 | fi |
21d1c967 | 11159 | rm -f conftest* |
90dd450c | 11160 | fi |
21d1c967 GD |
11161 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11162 | echo "$ac_t""yes" 1>&6 | |
11163 | echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6 | |
321d2b14 | 11164 | echo "configure:11165: checking for png_check_sig in -lpng" >&5 |
21d1c967 GD |
11165 | ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'` |
11166 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11167 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11168 | else | |
11169 | ac_save_LIBS="$LIBS" | |
11170 | LIBS="-lpng -lz -lm $LIBS" | |
11171 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 11172 | #line 11173 "configure" |
90dd450c | 11173 | #include "confdefs.h" |
21d1c967 GD |
11174 | /* Override any gcc2 internal prototype to avoid an error. */ |
11175 | /* We use char because int might match the return type of a gcc2 | |
11176 | builtin and then its argument prototype would still apply. */ | |
11177 | char png_check_sig(); | |
90dd450c VZ |
11178 | |
11179 | int main() { | |
21d1c967 | 11180 | png_check_sig() |
90dd450c VZ |
11181 | ; return 0; } |
11182 | EOF | |
321d2b14 | 11183 | if { (eval echo configure:11184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c | 11184 | rm -rf conftest* |
21d1c967 | 11185 | eval "ac_cv_lib_$ac_lib_var=yes" |
90dd450c VZ |
11186 | else |
11187 | echo "configure: failed program was:" >&5 | |
11188 | cat conftest.$ac_ext >&5 | |
11189 | rm -rf conftest* | |
21d1c967 | 11190 | eval "ac_cv_lib_$ac_lib_var=no" |
90dd450c VZ |
11191 | fi |
11192 | rm -f conftest* | |
21d1c967 | 11193 | LIBS="$ac_save_LIBS" |
90dd450c | 11194 | |
90dd450c | 11195 | fi |
21d1c967 GD |
11196 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
11197 | echo "$ac_t""yes" 1>&6 | |
11198 | PNG_LINK=" -lpng" | |
90dd450c | 11199 | else |
21d1c967 | 11200 | echo "$ac_t""no" 1>&6 |
90dd450c VZ |
11201 | fi |
11202 | ||
21d1c967 | 11203 | |
90dd450c | 11204 | else |
21d1c967 | 11205 | echo "$ac_t""no" 1>&6 |
90dd450c VZ |
11206 | fi |
11207 | ||
11208 | ||
21d1c967 GD |
11209 | if test "x$PNG_LINK" = "x" ; then |
11210 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
11211 | { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; } | |
11212 | else | |
11213 | echo "configure: warning: system png library not found, will use built-in instead" 1>&2 | |
11214 | wxUSE_LIBPNG=builtin | |
11215 | fi | |
11216 | else | |
11217 | wxUSE_LIBPNG=yes | |
11218 | fi | |
11219 | fi | |
11220 | fi | |
90dd450c | 11221 | |
21d1c967 GD |
11222 | if test "$wxUSE_LIBPNG" = "builtin" ; then |
11223 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
11224 | fi | |
90dd450c | 11225 | |
21d1c967 | 11226 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" |
90dd450c VZ |
11227 | fi |
11228 | ||
90dd450c | 11229 | |
21d1c967 GD |
11230 | JPEG_INCLUDE= |
11231 | JPEG_LINK= | |
11232 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
11233 | cat >> confdefs.h <<\EOF | |
11234 | #define wxUSE_LIBJPEG 1 | |
11235 | EOF | |
90dd450c | 11236 | |
90dd450c | 11237 | |
21d1c967 GD |
11238 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then |
11239 | echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2 | |
11240 | wxUSE_LIBJPEG=sys | |
11241 | fi | |
90dd450c | 11242 | |
21d1c967 GD |
11243 | if test "$wxUSE_MGL" != 1 ; then |
11244 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
11245 | echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 | |
321d2b14 | 11246 | echo "configure:11247: checking for jpeglib.h" >&5 |
21d1c967 GD |
11247 | if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then |
11248 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11249 | else | |
11250 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 11251 | #line 11252 "configure" |
21d1c967 | 11252 | #include "confdefs.h" |
90dd450c | 11253 | |
21d1c967 GD |
11254 | #undef HAVE_STDLIB_H |
11255 | #include <stdio.h> | |
11256 | #include <jpeglib.h> | |
11257 | ||
11258 | int main() { | |
90dd450c | 11259 | |
21d1c967 GD |
11260 | |
11261 | ; return 0; } | |
90dd450c | 11262 | EOF |
321d2b14 | 11263 | if { (eval echo configure:11264: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
21d1c967 GD |
11264 | rm -rf conftest* |
11265 | ac_cv_header_jpeglib_h=yes | |
90dd450c VZ |
11266 | else |
11267 | echo "configure: failed program was:" >&5 | |
11268 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
11269 | rm -rf conftest* |
11270 | ac_cv_header_jpeglib_h=no | |
11271 | ||
90dd450c | 11272 | fi |
21d1c967 GD |
11273 | rm -f conftest* |
11274 | ||
90dd450c VZ |
11275 | fi |
11276 | ||
21d1c967 | 11277 | echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6 |
90dd450c | 11278 | |
21d1c967 GD |
11279 | if test "$ac_cv_header_jpeglib_h" = "yes"; then |
11280 | echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6 | |
321d2b14 | 11281 | echo "configure:11282: checking for jpeg_read_header in -ljpeg" >&5 |
21d1c967 GD |
11282 | ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'` |
11283 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11284 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11285 | else | |
11286 | ac_save_LIBS="$LIBS" | |
11287 | LIBS="-ljpeg $LIBS" | |
11288 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 11289 | #line 11290 "configure" |
21d1c967 GD |
11290 | #include "confdefs.h" |
11291 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11292 | /* We use char because int might match the return type of a gcc2 | |
11293 | builtin and then its argument prototype would still apply. */ | |
11294 | char jpeg_read_header(); | |
90dd450c VZ |
11295 | |
11296 | int main() { | |
21d1c967 | 11297 | jpeg_read_header() |
90dd450c VZ |
11298 | ; return 0; } |
11299 | EOF | |
321d2b14 | 11300 | if { (eval echo configure:11301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c | 11301 | rm -rf conftest* |
21d1c967 | 11302 | eval "ac_cv_lib_$ac_lib_var=yes" |
90dd450c VZ |
11303 | else |
11304 | echo "configure: failed program was:" >&5 | |
11305 | cat conftest.$ac_ext >&5 | |
11306 | rm -rf conftest* | |
21d1c967 | 11307 | eval "ac_cv_lib_$ac_lib_var=no" |
90dd450c VZ |
11308 | fi |
11309 | rm -f conftest* | |
21d1c967 | 11310 | LIBS="$ac_save_LIBS" |
90dd450c | 11311 | |
21d1c967 GD |
11312 | fi |
11313 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11314 | echo "$ac_t""yes" 1>&6 | |
11315 | JPEG_LINK=" -ljpeg" | |
11316 | else | |
11317 | echo "$ac_t""no" 1>&6 | |
90dd450c VZ |
11318 | fi |
11319 | ||
21d1c967 | 11320 | fi |
90dd450c | 11321 | |
21d1c967 GD |
11322 | if test "x$JPEG_LINK" = "x" ; then |
11323 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
11324 | { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; } | |
11325 | else | |
11326 | echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2 | |
11327 | wxUSE_LIBJPEG=builtin | |
11328 | fi | |
11329 | else | |
11330 | wxUSE_LIBJPEG=sys | |
11331 | fi | |
11332 | fi | |
11333 | fi | |
90dd450c | 11334 | |
21d1c967 GD |
11335 | if test "$wxUSE_LIBJPEG" = "builtin" ; then |
11336 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
11337 | fi | |
11338 | fi | |
90dd450c | 11339 | |
90dd450c | 11340 | |
21d1c967 GD |
11341 | TIFF_INCLUDE= |
11342 | TIFF_LINK= | |
11343 | if test "$wxUSE_LIBTIFF" != "no" ; then | |
11344 | cat >> confdefs.h <<\EOF | |
11345 | #define wxUSE_LIBTIFF 1 | |
11346 | EOF | |
11347 | ||
11348 | ||
11349 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then | |
11350 | ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` | |
11351 | echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | |
321d2b14 | 11352 | echo "configure:11353: checking for tiffio.h" >&5 |
21d1c967 GD |
11353 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11354 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11355 | else | |
11356 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 11357 | #line 11358 "configure" |
21d1c967 GD |
11358 | #include "confdefs.h" |
11359 | #include <tiffio.h> | |
11360 | EOF | |
11361 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
321d2b14 | 11362 | { (eval echo configure:11363: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
11363 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11364 | if test -z "$ac_err"; then | |
11365 | rm -rf conftest* | |
11366 | eval "ac_cv_header_$ac_safe=yes" | |
11367 | else | |
11368 | echo "$ac_err" >&5 | |
11369 | echo "configure: failed program was:" >&5 | |
11370 | cat conftest.$ac_ext >&5 | |
11371 | rm -rf conftest* | |
11372 | eval "ac_cv_header_$ac_safe=no" | |
11373 | fi | |
11374 | rm -f conftest* | |
11375 | fi | |
11376 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11377 | echo "$ac_t""yes" 1>&6 | |
11378 | echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6 | |
321d2b14 | 11379 | echo "configure:11380: checking for TIFFError in -ltiff" >&5 |
21d1c967 | 11380 | ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
11381 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
11382 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11383 | else | |
11384 | ac_save_LIBS="$LIBS" | |
21d1c967 | 11385 | LIBS="-ltiff -lm $LIBS" |
698dcdb6 | 11386 | cat > conftest.$ac_ext <<EOF |
321d2b14 | 11387 | #line 11388 "configure" |
ab9b9eab VZ |
11388 | #include "confdefs.h" |
11389 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11390 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 11391 | builtin and then its argument prototype would still apply. */ |
21d1c967 | 11392 | char TIFFError(); |
698dcdb6 VZ |
11393 | |
11394 | int main() { | |
21d1c967 | 11395 | TIFFError() |
698dcdb6 VZ |
11396 | ; return 0; } |
11397 | EOF | |
321d2b14 | 11398 | if { (eval echo configure:11399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11399 | rm -rf conftest* |
11400 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11401 | else | |
11402 | echo "configure: failed program was:" >&5 | |
11403 | cat conftest.$ac_ext >&5 | |
11404 | rm -rf conftest* | |
11405 | eval "ac_cv_lib_$ac_lib_var=no" | |
11406 | fi | |
11407 | rm -f conftest* | |
11408 | LIBS="$ac_save_LIBS" | |
11409 | ||
11410 | fi | |
11411 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11412 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 11413 | TIFF_LINK=" -ltiff" |
698dcdb6 VZ |
11414 | else |
11415 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11416 | fi |
11417 | ||
21d1c967 GD |
11418 | |
11419 | else | |
11420 | echo "$ac_t""no" 1>&6 | |
11421 | fi | |
cd6d6d5b | 11422 | |
c79a329d | 11423 | |
21d1c967 GD |
11424 | if test "x$TIFF_LINK" = "x" ; then |
11425 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
11426 | { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; } | |
90dd450c | 11427 | else |
21d1c967 GD |
11428 | echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2 |
11429 | wxUSE_LIBTIFF=builtin | |
d8356fa3 | 11430 | fi |
d8356fa3 | 11431 | else |
21d1c967 | 11432 | wxUSE_LIBTIFF=sys |
d8356fa3 | 11433 | fi |
21d1c967 | 11434 | fi |
d8356fa3 | 11435 | |
21d1c967 GD |
11436 | if test "$wxUSE_LIBTIFF" = "builtin" ; then |
11437 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" | |
1e6feb95 | 11438 | fi |
21d1c967 | 11439 | fi |
10f2d63a | 11440 | |
90dd450c | 11441 | |
21d1c967 | 11442 | AFMINSTALL= |
90dd450c | 11443 | |
21d1c967 GD |
11444 | TOOLKIT= |
11445 | TOOLKIT_INCLUDE= | |
11446 | WIDGET_SET= | |
11447 | ||
11448 | if test "$USE_WIN32" = 1 ; then | |
11449 | for ac_hdr in w32api.h | |
11450 | do | |
11451 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
11452 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
321d2b14 | 11453 | echo "configure:11454: checking for $ac_hdr" >&5 |
21d1c967 | 11454 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
f79bd02d JS |
11455 | echo $ac_n "(cached) $ac_c" 1>&6 |
11456 | else | |
21d1c967 | 11457 | cat > conftest.$ac_ext <<EOF |
321d2b14 | 11458 | #line 11459 "configure" |
f79bd02d | 11459 | #include "confdefs.h" |
21d1c967 | 11460 | #include <$ac_hdr> |
f79bd02d JS |
11461 | EOF |
11462 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
321d2b14 | 11463 | { (eval echo configure:11464: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
f79bd02d JS |
11464 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11465 | if test -z "$ac_err"; then | |
11466 | rm -rf conftest* | |
21d1c967 | 11467 | eval "ac_cv_header_$ac_safe=yes" |
f79bd02d JS |
11468 | else |
11469 | echo "$ac_err" >&5 | |
11470 | echo "configure: failed program was:" >&5 | |
11471 | cat conftest.$ac_ext >&5 | |
11472 | rm -rf conftest* | |
21d1c967 | 11473 | eval "ac_cv_header_$ac_safe=no" |
f79bd02d JS |
11474 | fi |
11475 | rm -f conftest* | |
21d1c967 GD |
11476 | fi |
11477 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11478 | echo "$ac_t""yes" 1>&6 | |
11479 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11480 | cat >> confdefs.h <<EOF | |
11481 | #define $ac_tr_hdr 1 | |
11482 | EOF | |
11483 | ||
11484 | else | |
11485 | echo "$ac_t""no" 1>&6 | |
11486 | fi | |
11487 | done | |
f79bd02d | 11488 | |
21d1c967 GD |
11489 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` |
11490 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
321d2b14 | 11491 | echo "configure:11492: checking for windows.h" >&5 |
21d1c967 GD |
11492 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11493 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11494 | else | |
11495 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 11496 | #line 11497 "configure" |
90dd450c | 11497 | #include "confdefs.h" |
21d1c967 | 11498 | #include <windows.h> |
f79bd02d | 11499 | EOF |
21d1c967 | 11500 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
321d2b14 | 11501 | { (eval echo configure:11502: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
11502 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11503 | if test -z "$ac_err"; then | |
90dd450c | 11504 | rm -rf conftest* |
21d1c967 | 11505 | eval "ac_cv_header_$ac_safe=yes" |
90dd450c | 11506 | else |
21d1c967 | 11507 | echo "$ac_err" >&5 |
90dd450c VZ |
11508 | echo "configure: failed program was:" >&5 |
11509 | cat conftest.$ac_ext >&5 | |
11510 | rm -rf conftest* | |
21d1c967 | 11511 | eval "ac_cv_header_$ac_safe=no" |
90dd450c VZ |
11512 | fi |
11513 | rm -f conftest* | |
90dd450c | 11514 | fi |
21d1c967 GD |
11515 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11516 | echo "$ac_t""yes" 1>&6 | |
11517 | : | |
90dd450c | 11518 | else |
21d1c967 GD |
11519 | echo "$ac_t""no" 1>&6 |
11520 | ||
11521 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
11522 | ||
90dd450c | 11523 | fi |
f79bd02d | 11524 | |
f79bd02d | 11525 | |
21d1c967 | 11526 | echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6 |
321d2b14 | 11527 | echo "configure:11528: checking if w32api has good enough MSIE support" >&5 |
21d1c967 GD |
11528 | if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then |
11529 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f79bd02d | 11530 | else |
21d1c967 | 11531 | |
f79bd02d | 11532 | cat > conftest.$ac_ext <<EOF |
321d2b14 | 11533 | #line 11534 "configure" |
f79bd02d | 11534 | #include "confdefs.h" |
21d1c967 | 11535 | #include <w32api.h> |
f79bd02d JS |
11536 | int main() { |
11537 | ||
21d1c967 GD |
11538 | #define wxCHECK_W32API_VERSION( major, minor ) \ |
11539 | ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \ | |
11540 | && ( ( __W32API_MAJOR_VERSION > (major) ) \ | |
11541 | || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor)))) | |
11542 | ||
11543 | #if !wxCHECK_W32API_VERSION(1,1) | |
11544 | #error You need w32api 1.1 or newer | |
11545 | #endif | |
11546 | ||
f79bd02d JS |
11547 | ; return 0; } |
11548 | EOF | |
321d2b14 | 11549 | if { (eval echo configure:11550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
f79bd02d | 11550 | rm -rf conftest* |
21d1c967 GD |
11551 | |
11552 | wx_cv_w32api_win32_ie=yes | |
11553 | ||
f79bd02d JS |
11554 | else |
11555 | echo "configure: failed program was:" >&5 | |
11556 | cat conftest.$ac_ext >&5 | |
11557 | rm -rf conftest* | |
21d1c967 GD |
11558 | |
11559 | wx_cv_w32api_win32_ie=no | |
11560 | ||
f79bd02d JS |
11561 | fi |
11562 | rm -f conftest* | |
21d1c967 GD |
11563 | |
11564 | fi | |
f79bd02d | 11565 | |
21d1c967 GD |
11566 | echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6 |
11567 | if test "$wx_cv_w32api_win32_ie" = "yes" ; then | |
11568 | CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400" | |
11569 | fi | |
f79bd02d | 11570 | |
21d1c967 GD |
11571 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32" |
11572 | ||
11573 | case "${host}" in | |
11574 | *-*-cygwin* ) | |
11575 | LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32" | |
11576 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" | |
f79bd02d | 11577 | esac |
f79bd02d | 11578 | |
21d1c967 GD |
11579 | if test "$wxUSE_ODBC" = "yes" ; then |
11580 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
11581 | fi | |
f79bd02d | 11582 | |
21d1c967 GD |
11583 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
11584 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
f79bd02d | 11585 | fi |
f79bd02d | 11586 | |
21d1c967 GD |
11587 | if test "$wxUSE_GUI" = "yes"; then |
11588 | USE_GUI=1 | |
f79bd02d | 11589 | |
21d1c967 | 11590 | GUI_TK_LIBRARY= |
f79bd02d | 11591 | |
21d1c967 GD |
11592 | WXGTK12= |
11593 | WXGTK127= | |
11594 | WXGTK20= | |
f79bd02d | 11595 | |
21d1c967 GD |
11596 | if test "$wxUSE_MSW" = 1 ; then |
11597 | TOOLKIT=MSW | |
11598 | GUIDIST=MSW_DIST | |
f79bd02d | 11599 | |
21d1c967 GD |
11600 | case "${host}" in |
11601 | *-*-mingw32* ) | |
11602 | LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows" | |
11603 | esac | |
f79bd02d JS |
11604 | fi |
11605 | ||
21d1c967 GD |
11606 | if test "$wxUSE_GTK" = 1; then |
11607 | echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6 | |
321d2b14 | 11608 | echo "configure:11609: checking for GTK+ version" >&5 |
21d1c967 GD |
11609 | |
11610 | gtk_version_cached=1 | |
11611 | if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then | |
f79bd02d JS |
11612 | echo $ac_n "(cached) $ac_c" 1>&6 |
11613 | else | |
21d1c967 GD |
11614 | |
11615 | gtk_version_cached=0 | |
11616 | echo "$ac_t""" 1>&6 | |
f79bd02d | 11617 | |
21d1c967 GD |
11618 | GTK_MODULES= |
11619 | if test "$wxUSE_THREADS" = "yes"; then | |
11620 | GTK_MODULES=gthread | |
11621 | fi | |
f79bd02d | 11622 | |
21d1c967 GD |
11623 | wx_cv_lib_gtk= |
11624 | if test "x$wxUSE_GTK2" = "xyes"; then | |
11625 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
11626 | if test "${enable_gtktest+set}" = set; then | |
11627 | enableval="$enable_gtktest" | |
f79bd02d JS |
11628 | : |
11629 | else | |
21d1c967 | 11630 | enable_gtktest=yes |
f79bd02d JS |
11631 | fi |
11632 | ||
f79bd02d | 11633 | |
21d1c967 GD |
11634 | pkg_config_args=gtk+-2.0 |
11635 | for module in . $GTK_MODULES | |
11636 | do | |
11637 | case "$module" in | |
11638 | gthread) | |
11639 | pkg_config_args="$pkg_config_args gthread-2.0" | |
11640 | ;; | |
11641 | esac | |
11642 | done | |
11643 | ||
11644 | no_gtk="" | |
f79bd02d | 11645 | |
21d1c967 GD |
11646 | # Extract the first word of "pkg-config", so it can be a program name with args. |
11647 | set dummy pkg-config; ac_word=$2 | |
11648 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
321d2b14 | 11649 | echo "configure:11650: checking for $ac_word" >&5 |
21d1c967 GD |
11650 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
11651 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11652 | else | |
11653 | case "$PKG_CONFIG" in | |
11654 | /*) | |
11655 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
11656 | ;; | |
11657 | ?:/*) | |
11658 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
11659 | ;; | |
11660 | *) | |
11661 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
11662 | ac_dummy="$PATH" | |
11663 | for ac_dir in $ac_dummy; do | |
11664 | test -z "$ac_dir" && ac_dir=. | |
11665 | if test -f $ac_dir/$ac_word; then | |
11666 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
11667 | break | |
11668 | fi | |
11669 | done | |
11670 | IFS="$ac_save_ifs" | |
11671 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
11672 | ;; | |
11673 | esac | |
f79bd02d | 11674 | fi |
21d1c967 GD |
11675 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
11676 | if test -n "$PKG_CONFIG"; then | |
11677 | echo "$ac_t""$PKG_CONFIG" 1>&6 | |
f79bd02d JS |
11678 | else |
11679 | echo "$ac_t""no" 1>&6 | |
11680 | fi | |
11681 | ||
f79bd02d | 11682 | |
21d1c967 GD |
11683 | if test x$PKG_CONFIG != xno ; then |
11684 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
11685 | : | |
11686 | else | |
11687 | echo *** pkg-config too old; version 0.7 or better required. | |
11688 | no_gtk=yes | |
11689 | PKG_CONFIG=no | |
11690 | fi | |
11691 | else | |
11692 | no_gtk=yes | |
11693 | fi | |
f79bd02d | 11694 | |
21d1c967 GD |
11695 | min_gtk_version=2.0.0 |
11696 | echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6 | |
321d2b14 | 11697 | echo "configure:11698: checking for GTK+ - version >= $min_gtk_version" >&5 |
f79bd02d | 11698 | |
21d1c967 GD |
11699 | if test x$PKG_CONFIG != xno ; then |
11700 | ## don't try to run the test against uninstalled libtool libs | |
11701 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
11702 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
11703 | enable_gtktest=no | |
11704 | fi | |
f79bd02d | 11705 | |
21d1c967 GD |
11706 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then |
11707 | : | |
11708 | else | |
11709 | no_gtk=yes | |
11710 | fi | |
11711 | fi | |
f79bd02d | 11712 | |
21d1c967 GD |
11713 | if test x"$no_gtk" = x ; then |
11714 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
11715 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
11716 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
11717 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
11718 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
11719 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
11720 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
11721 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
11722 | if test "x$enable_gtktest" = "xyes" ; then | |
11723 | ac_save_CFLAGS="$CFLAGS" | |
11724 | ac_save_LIBS="$LIBS" | |
11725 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
11726 | LIBS="$GTK_LIBS $LIBS" | |
11727 | rm -f conf.gtktest | |
11728 | if test "$cross_compiling" = yes; then | |
11729 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
f79bd02d | 11730 | else |
21d1c967 | 11731 | cat > conftest.$ac_ext <<EOF |
321d2b14 | 11732 | #line 11733 "configure" |
f79bd02d | 11733 | #include "confdefs.h" |
f79bd02d | 11734 | |
21d1c967 GD |
11735 | #include <gtk/gtk.h> |
11736 | #include <stdio.h> | |
11737 | #include <stdlib.h> | |
f79bd02d | 11738 | |
21d1c967 GD |
11739 | int |
11740 | main () | |
11741 | { | |
11742 | int major, minor, micro; | |
11743 | char *tmp_version; | |
f79bd02d | 11744 | |
21d1c967 | 11745 | system ("touch conf.gtktest"); |
f79bd02d | 11746 | |
21d1c967 GD |
11747 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
11748 | tmp_version = g_strdup("$min_gtk_version"); | |
11749 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
11750 | printf("%s, bad version string\n", "$min_gtk_version"); | |
11751 | exit(1); | |
11752 | } | |
f79bd02d | 11753 | |
21d1c967 GD |
11754 | if ((gtk_major_version != $gtk_config_major_version) || |
11755 | (gtk_minor_version != $gtk_config_minor_version) || | |
11756 | (gtk_micro_version != $gtk_config_micro_version)) | |
11757 | { | |
11758 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
11759 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
11760 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
11761 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
11762 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
11763 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
11764 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
11765 | printf("*** required on your system.\n"); | |
11766 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
11767 | printf("*** to point to the correct configuration files\n"); | |
11768 | } | |
11769 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
11770 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
11771 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
11772 | { | |
11773 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
11774 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
11775 | printf("*** library (version %d.%d.%d)\n", | |
11776 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
11777 | } | |
11778 | else | |
11779 | { | |
11780 | if ((gtk_major_version > major) || | |
11781 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
11782 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
11783 | { | |
11784 | return 0; | |
11785 | } | |
11786 | else | |
11787 | { | |
11788 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
11789 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
11790 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
11791 | major, minor, micro); | |
11792 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
11793 | printf("***\n"); | |
11794 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
11795 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
11796 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
11797 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
11798 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
11799 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
11800 | printf("*** so that the correct libraries are found at run-time))\n"); | |
11801 | } | |
11802 | } | |
11803 | return 1; | |
11804 | } | |
f79bd02d | 11805 | |
f79bd02d | 11806 | EOF |
321d2b14 | 11807 | if { (eval echo configure:11808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
21d1c967 GD |
11808 | then |
11809 | : | |
f79bd02d JS |
11810 | else |
11811 | echo "configure: failed program was:" >&5 | |
11812 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
11813 | rm -fr conftest* |
11814 | no_gtk=yes | |
f79bd02d | 11815 | fi |
21d1c967 | 11816 | rm -fr conftest* |
f79bd02d JS |
11817 | fi |
11818 | ||
21d1c967 GD |
11819 | CFLAGS="$ac_save_CFLAGS" |
11820 | LIBS="$ac_save_LIBS" | |
11821 | fi | |
11822 | fi | |
11823 | if test "x$no_gtk" = x ; then | |
11824 | echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6 | |
11825 | wx_cv_lib_gtk=2.0 | |
11826 | else | |
11827 | echo "$ac_t""no" 1>&6 | |
11828 | if test "$PKG_CONFIG" = "no" ; then | |
11829 | echo "*** A new enough version of pkg-config was not found." | |
11830 | echo "*** See http://pkgconfig.sourceforge.net" | |
11831 | else | |
11832 | if test -f conf.gtktest ; then | |
11833 | : | |
11834 | else | |
11835 | echo "*** Could not run GTK+ test program, checking why..." | |
11836 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
11837 | LIBS="$LIBS $GTK_LIBS" | |
11838 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 11839 | #line 11840 "configure" |
f79bd02d | 11840 | #include "confdefs.h" |
21d1c967 GD |
11841 | |
11842 | #include <gtk/gtk.h> | |
11843 | #include <stdio.h> | |
f79bd02d JS |
11844 | |
11845 | int main() { | |
21d1c967 | 11846 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); |
f79bd02d JS |
11847 | ; return 0; } |
11848 | EOF | |
321d2b14 | 11849 | if { (eval echo configure:11850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d | 11850 | rm -rf conftest* |
21d1c967 GD |
11851 | echo "*** The test program compiled, but did not run. This usually means" |
11852 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
11853 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
11854 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
11855 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
11856 | echo "*** is required on your system" | |
11857 | echo "***" | |
11858 | echo "*** If you have an old version installed, it is best to remove it, although" | |
11859 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
f79bd02d JS |
11860 | else |
11861 | echo "configure: failed program was:" >&5 | |
11862 | cat conftest.$ac_ext >&5 | |
11863 | rm -rf conftest* | |
21d1c967 GD |
11864 | echo "*** The test program failed to compile or link. See the file config.log for the" |
11865 | echo "*** exact error that occured. This usually means GTK+ was incorrectly installed" | |
11866 | echo "*** or that you have moved GTK+ since it was installed. In the latter case, you" | |
11867 | echo "*** may want to edit the pkg-config script: $PKG_CONFIG" | |
f79bd02d JS |
11868 | fi |
11869 | rm -f conftest* | |
21d1c967 GD |
11870 | CFLAGS="$ac_save_CFLAGS" |
11871 | LIBS="$ac_save_LIBS" | |
11872 | fi | |
11873 | fi | |
11874 | GTK_CFLAGS="" | |
11875 | GTK_LIBS="" | |
11876 | : | |
11877 | fi | |
11878 | ||
11879 | ||
11880 | rm -f conf.gtktest | |
f79bd02d | 11881 | |
21d1c967 | 11882 | fi |
f79bd02d | 11883 | |
21d1c967 GD |
11884 | if test -z "$wx_cv_lib_gtk"; then |
11885 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
11886 | if test "${with_gtk_prefix+set}" = set; then | |
11887 | withval="$with_gtk_prefix" | |
11888 | gtk_config_prefix="$withval" | |
11889 | else | |
11890 | gtk_config_prefix="" | |
11891 | fi | |
f79bd02d | 11892 | |
21d1c967 GD |
11893 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
11894 | if test "${with_gtk_exec_prefix+set}" = set; then | |
11895 | withval="$with_gtk_exec_prefix" | |
11896 | gtk_config_exec_prefix="$withval" | |
11897 | else | |
11898 | gtk_config_exec_prefix="" | |
11899 | fi | |
11900 | ||
11901 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
11902 | if test "${enable_gtktest+set}" = set; then | |
11903 | enableval="$enable_gtktest" | |
11904 | : | |
11905 | else | |
11906 | enable_gtktest=yes | |
11907 | fi | |
11908 | ||
11909 | ||
11910 | for module in . $GTK_MODULES | |
11911 | do | |
11912 | case "$module" in | |
11913 | gthread) | |
11914 | gtk_config_args="$gtk_config_args gthread" | |
11915 | ;; | |
11916 | esac | |
11917 | done | |
11918 | ||
11919 | if test x$gtk_config_exec_prefix != x ; then | |
11920 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
11921 | if test x${GTK_CONFIG+set} != xset ; then | |
11922 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
11923 | fi | |
11924 | fi | |
11925 | if test x$gtk_config_prefix != x ; then | |
11926 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
11927 | if test x${GTK_CONFIG+set} != xset ; then | |
11928 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
11929 | fi | |
11930 | fi | |
11931 | ||
11932 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
11933 | set dummy gtk-config; ac_word=$2 | |
11934 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
321d2b14 | 11935 | echo "configure:11936: checking for $ac_word" >&5 |
21d1c967 | 11936 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
f79bd02d | 11937 | echo $ac_n "(cached) $ac_c" 1>&6 |
21d1c967 GD |
11938 | else |
11939 | case "$GTK_CONFIG" in | |
11940 | /*) | |
11941 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
11942 | ;; | |
11943 | ?:/*) | |
11944 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
11945 | ;; | |
11946 | *) | |
11947 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
11948 | ac_dummy="$PATH" | |
11949 | for ac_dir in $ac_dummy; do | |
11950 | test -z "$ac_dir" && ac_dir=. | |
11951 | if test -f $ac_dir/$ac_word; then | |
11952 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
11953 | break | |
11954 | fi | |
11955 | done | |
11956 | IFS="$ac_save_ifs" | |
11957 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
11958 | ;; | |
11959 | esac | |
11960 | fi | |
11961 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" | |
11962 | if test -n "$GTK_CONFIG"; then | |
11963 | echo "$ac_t""$GTK_CONFIG" 1>&6 | |
11964 | else | |
11965 | echo "$ac_t""no" 1>&6 | |
11966 | fi | |
11967 | ||
11968 | min_gtk_version=1.2.7 | |
11969 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 | |
321d2b14 | 11970 | echo "configure:11971: checking for GTK - version >= $min_gtk_version" >&5 |
21d1c967 GD |
11971 | no_gtk="" |
11972 | if test "$GTK_CONFIG" = "no" ; then | |
11973 | no_gtk=yes | |
11974 | else | |
11975 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
11976 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
11977 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
11978 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
11979 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
11980 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
11981 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
11982 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
11983 | if test "x$enable_gtktest" = "xyes" ; then | |
11984 | ac_save_CFLAGS="$CFLAGS" | |
11985 | ac_save_LIBS="$LIBS" | |
11986 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
11987 | LIBS="$GTK_LIBS $LIBS" | |
11988 | rm -f conf.gtktest | |
11989 | if test "$cross_compiling" = yes; then | |
11990 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
f79bd02d | 11991 | else |
90dd450c | 11992 | cat > conftest.$ac_ext <<EOF |
321d2b14 | 11993 | #line 11994 "configure" |
f79bd02d JS |
11994 | #include "confdefs.h" |
11995 | ||
21d1c967 GD |
11996 | #include <gtk/gtk.h> |
11997 | #include <stdio.h> | |
11998 | #include <stdlib.h> | |
f79bd02d | 11999 | |
21d1c967 GD |
12000 | int |
12001 | main () | |
12002 | { | |
12003 | int major, minor, micro; | |
12004 | char *tmp_version; | |
12005 | ||
12006 | system ("touch conf.gtktest"); | |
12007 | ||
12008 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
12009 | tmp_version = g_strdup("$min_gtk_version"); | |
12010 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
12011 | printf("%s, bad version string\n", "$min_gtk_version"); | |
12012 | exit(1); | |
12013 | } | |
90dd450c | 12014 | |
21d1c967 GD |
12015 | if ((gtk_major_version != $gtk_config_major_version) || |
12016 | (gtk_minor_version != $gtk_config_minor_version) || | |
12017 | (gtk_micro_version != $gtk_config_micro_version)) | |
12018 | { | |
12019 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
12020 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
12021 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12022 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
12023 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
12024 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
12025 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
12026 | printf("*** required on your system.\n"); | |
12027 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
12028 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
12029 | printf("*** before re-running configure\n"); | |
12030 | } | |
12031 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
12032 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
12033 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
12034 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
12035 | { | |
12036 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
12037 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
12038 | printf("*** library (version %d.%d.%d)\n", | |
12039 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12040 | } | |
12041 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
12042 | else | |
12043 | { | |
12044 | if ((gtk_major_version > major) || | |
12045 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
12046 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
12047 | { | |
12048 | return 0; | |
12049 | } | |
12050 | else | |
12051 | { | |
12052 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
12053 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12054 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
12055 | major, minor, micro); | |
12056 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
12057 | printf("***\n"); | |
12058 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
12059 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
12060 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
12061 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
12062 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
12063 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
12064 | printf("*** so that the correct libraries are found at run-time))\n"); | |
12065 | } | |
12066 | } | |
12067 | return 1; | |
12068 | } | |
12069 | ||
12070 | EOF | |
321d2b14 | 12071 | if { (eval echo configure:12072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
21d1c967 GD |
12072 | then |
12073 | : | |
12074 | else | |
12075 | echo "configure: failed program was:" >&5 | |
12076 | cat conftest.$ac_ext >&5 | |
12077 | rm -fr conftest* | |
12078 | no_gtk=yes | |
12079 | fi | |
12080 | rm -fr conftest* | |
12081 | fi | |
12082 | ||
12083 | CFLAGS="$ac_save_CFLAGS" | |
12084 | LIBS="$ac_save_LIBS" | |
12085 | fi | |
12086 | fi | |
12087 | if test "x$no_gtk" = x ; then | |
12088 | echo "$ac_t""yes" 1>&6 | |
12089 | wx_cv_lib_gtk=1.2.7 | |
12090 | else | |
12091 | echo "$ac_t""no" 1>&6 | |
12092 | if test "$GTK_CONFIG" = "no" ; then | |
12093 | echo "*** The gtk-config script installed by GTK could not be found" | |
12094 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
12095 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
12096 | echo "*** full path to gtk-config." | |
12097 | else | |
12098 | if test -f conf.gtktest ; then | |
12099 | : | |
12100 | else | |
12101 | echo "*** Could not run GTK test program, checking why..." | |
12102 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12103 | LIBS="$LIBS $GTK_LIBS" | |
12104 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 12105 | #line 12106 "configure" |
21d1c967 GD |
12106 | #include "confdefs.h" |
12107 | ||
12108 | #include <gtk/gtk.h> | |
12109 | #include <stdio.h> | |
12110 | ||
12111 | int main() { | |
12112 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
f79bd02d JS |
12113 | ; return 0; } |
12114 | EOF | |
321d2b14 | 12115 | if { (eval echo configure:12116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d | 12116 | rm -rf conftest* |
21d1c967 GD |
12117 | echo "*** The test program compiled, but did not run. This usually means" |
12118 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
12119 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
12120 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
12121 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
12122 | echo "*** is required on your system" | |
12123 | echo "***" | |
12124 | echo "*** If you have an old version installed, it is best to remove it, although" | |
12125 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
12126 | echo "***" | |
12127 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
12128 | echo "*** came with the system with the command" | |
12129 | echo "***" | |
12130 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
f79bd02d JS |
12131 | else |
12132 | echo "configure: failed program was:" >&5 | |
12133 | cat conftest.$ac_ext >&5 | |
12134 | rm -rf conftest* | |
21d1c967 GD |
12135 | echo "*** The test program failed to compile or link. See the file config.log for the" |
12136 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
12137 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
12138 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
f79bd02d JS |
12139 | fi |
12140 | rm -f conftest* | |
21d1c967 GD |
12141 | CFLAGS="$ac_save_CFLAGS" |
12142 | LIBS="$ac_save_LIBS" | |
12143 | fi | |
12144 | fi | |
12145 | GTK_CFLAGS="" | |
12146 | GTK_LIBS="" | |
12147 | : | |
12148 | fi | |
12149 | ||
12150 | ||
12151 | rm -f conf.gtktest | |
12152 | ||
12153 | fi | |
12154 | ||
12155 | if test -z "$wx_cv_lib_gtk"; then | |
12156 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
12157 | if test "${with_gtk_prefix+set}" = set; then | |
12158 | withval="$with_gtk_prefix" | |
12159 | gtk_config_prefix="$withval" | |
12160 | else | |
12161 | gtk_config_prefix="" | |
90dd450c | 12162 | fi |
f79bd02d | 12163 | |
21d1c967 GD |
12164 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
12165 | if test "${with_gtk_exec_prefix+set}" = set; then | |
12166 | withval="$with_gtk_exec_prefix" | |
12167 | gtk_config_exec_prefix="$withval" | |
12168 | else | |
12169 | gtk_config_exec_prefix="" | |
12170 | fi | |
12171 | ||
12172 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
12173 | if test "${enable_gtktest+set}" = set; then | |
12174 | enableval="$enable_gtktest" | |
90dd450c VZ |
12175 | : |
12176 | else | |
21d1c967 | 12177 | enable_gtktest=yes |
90dd450c | 12178 | fi |
f79bd02d | 12179 | |
21d1c967 GD |
12180 | |
12181 | for module in . $GTK_MODULES | |
12182 | do | |
12183 | case "$module" in | |
12184 | gthread) | |
12185 | gtk_config_args="$gtk_config_args gthread" | |
12186 | ;; | |
12187 | esac | |
12188 | done | |
12189 | ||
12190 | if test x$gtk_config_exec_prefix != x ; then | |
12191 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
12192 | if test x${GTK_CONFIG+set} != xset ; then | |
12193 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
12194 | fi | |
12195 | fi | |
12196 | if test x$gtk_config_prefix != x ; then | |
12197 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
12198 | if test x${GTK_CONFIG+set} != xset ; then | |
12199 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
12200 | fi | |
12201 | fi | |
12202 | ||
12203 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
12204 | set dummy gtk-config; ac_word=$2 | |
12205 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
321d2b14 | 12206 | echo "configure:12207: checking for $ac_word" >&5 |
21d1c967 | 12207 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
90dd450c VZ |
12208 | echo $ac_n "(cached) $ac_c" 1>&6 |
12209 | else | |
21d1c967 GD |
12210 | case "$GTK_CONFIG" in |
12211 | /*) | |
12212 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
12213 | ;; | |
12214 | ?:/*) | |
12215 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
12216 | ;; | |
12217 | *) | |
12218 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
12219 | ac_dummy="$PATH" | |
12220 | for ac_dir in $ac_dummy; do | |
12221 | test -z "$ac_dir" && ac_dir=. | |
12222 | if test -f $ac_dir/$ac_word; then | |
12223 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
12224 | break | |
12225 | fi | |
12226 | done | |
12227 | IFS="$ac_save_ifs" | |
12228 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
12229 | ;; | |
12230 | esac | |
12231 | fi | |
12232 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" | |
12233 | if test -n "$GTK_CONFIG"; then | |
12234 | echo "$ac_t""$GTK_CONFIG" 1>&6 | |
12235 | else | |
12236 | echo "$ac_t""no" 1>&6 | |
12237 | fi | |
12238 | ||
12239 | min_gtk_version=1.2.3 | |
12240 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 | |
321d2b14 | 12241 | echo "configure:12242: checking for GTK - version >= $min_gtk_version" >&5 |
21d1c967 GD |
12242 | no_gtk="" |
12243 | if test "$GTK_CONFIG" = "no" ; then | |
12244 | no_gtk=yes | |
12245 | else | |
12246 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
12247 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
12248 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12249 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
12250 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12251 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
12252 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12253 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
12254 | if test "x$enable_gtktest" = "xyes" ; then | |
12255 | ac_save_CFLAGS="$CFLAGS" | |
12256 | ac_save_LIBS="$LIBS" | |
12257 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12258 | LIBS="$GTK_LIBS $LIBS" | |
12259 | rm -f conf.gtktest | |
12260 | if test "$cross_compiling" = yes; then | |
12261 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
12262 | else | |
12263 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 12264 | #line 12265 "configure" |
f79bd02d | 12265 | #include "confdefs.h" |
21d1c967 GD |
12266 | |
12267 | #include <gtk/gtk.h> | |
12268 | #include <stdio.h> | |
12269 | #include <stdlib.h> | |
12270 | ||
12271 | int | |
12272 | main () | |
12273 | { | |
12274 | int major, minor, micro; | |
12275 | char *tmp_version; | |
12276 | ||
12277 | system ("touch conf.gtktest"); | |
12278 | ||
12279 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
12280 | tmp_version = g_strdup("$min_gtk_version"); | |
12281 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
12282 | printf("%s, bad version string\n", "$min_gtk_version"); | |
12283 | exit(1); | |
12284 | } | |
12285 | ||
12286 | if ((gtk_major_version != $gtk_config_major_version) || | |
12287 | (gtk_minor_version != $gtk_config_minor_version) || | |
12288 | (gtk_micro_version != $gtk_config_micro_version)) | |
12289 | { | |
12290 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
12291 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
12292 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12293 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
12294 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
12295 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
12296 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
12297 | printf("*** required on your system.\n"); | |
12298 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
12299 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
12300 | printf("*** before re-running configure\n"); | |
12301 | } | |
12302 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
12303 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
12304 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
12305 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
12306 | { | |
12307 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
12308 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
12309 | printf("*** library (version %d.%d.%d)\n", | |
12310 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12311 | } | |
12312 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
12313 | else | |
12314 | { | |
12315 | if ((gtk_major_version > major) || | |
12316 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
12317 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
12318 | { | |
12319 | return 0; | |
12320 | } | |
12321 | else | |
12322 | { | |
12323 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
12324 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12325 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
12326 | major, minor, micro); | |
12327 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
12328 | printf("***\n"); | |
12329 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
12330 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
12331 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
12332 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
12333 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
12334 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
12335 | printf("*** so that the correct libraries are found at run-time))\n"); | |
12336 | } | |
12337 | } | |
12338 | return 1; | |
12339 | } | |
12340 | ||
12341 | EOF | |
321d2b14 | 12342 | if { (eval echo configure:12343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
21d1c967 GD |
12343 | then |
12344 | : | |
12345 | else | |
12346 | echo "configure: failed program was:" >&5 | |
12347 | cat conftest.$ac_ext >&5 | |
12348 | rm -fr conftest* | |
12349 | no_gtk=yes | |
12350 | fi | |
12351 | rm -fr conftest* | |
12352 | fi | |
12353 | ||
12354 | CFLAGS="$ac_save_CFLAGS" | |
12355 | LIBS="$ac_save_LIBS" | |
12356 | fi | |
12357 | fi | |
12358 | if test "x$no_gtk" = x ; then | |
12359 | echo "$ac_t""yes" 1>&6 | |
12360 | wx_cv_lib_gtk=1.2.3 | |
12361 | else | |
12362 | echo "$ac_t""no" 1>&6 | |
12363 | if test "$GTK_CONFIG" = "no" ; then | |
12364 | echo "*** The gtk-config script installed by GTK could not be found" | |
12365 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
12366 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
12367 | echo "*** full path to gtk-config." | |
12368 | else | |
12369 | if test -f conf.gtktest ; then | |
12370 | : | |
12371 | else | |
12372 | echo "*** Could not run GTK test program, checking why..." | |
12373 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12374 | LIBS="$LIBS $GTK_LIBS" | |
12375 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 12376 | #line 12377 "configure" |
21d1c967 GD |
12377 | #include "confdefs.h" |
12378 | ||
12379 | #include <gtk/gtk.h> | |
12380 | #include <stdio.h> | |
f79bd02d | 12381 | |
f79bd02d | 12382 | int main() { |
21d1c967 | 12383 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); |
f79bd02d JS |
12384 | ; return 0; } |
12385 | EOF | |
321d2b14 | 12386 | if { (eval echo configure:12387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d | 12387 | rm -rf conftest* |
21d1c967 GD |
12388 | echo "*** The test program compiled, but did not run. This usually means" |
12389 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
12390 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
12391 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
12392 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
12393 | echo "*** is required on your system" | |
12394 | echo "***" | |
12395 | echo "*** If you have an old version installed, it is best to remove it, although" | |
12396 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
12397 | echo "***" | |
12398 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
12399 | echo "*** came with the system with the command" | |
12400 | echo "***" | |
12401 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
f79bd02d JS |
12402 | else |
12403 | echo "configure: failed program was:" >&5 | |
12404 | cat conftest.$ac_ext >&5 | |
12405 | rm -rf conftest* | |
21d1c967 GD |
12406 | echo "*** The test program failed to compile or link. See the file config.log for the" |
12407 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
12408 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
12409 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
f79bd02d JS |
12410 | fi |
12411 | rm -f conftest* | |
21d1c967 GD |
12412 | CFLAGS="$ac_save_CFLAGS" |
12413 | LIBS="$ac_save_LIBS" | |
12414 | fi | |
12415 | fi | |
12416 | GTK_CFLAGS="" | |
12417 | GTK_LIBS="" | |
12418 | : | |
12419 | fi | |
12420 | ||
12421 | ||
12422 | rm -f conf.gtktest | |
f79bd02d | 12423 | |
21d1c967 GD |
12424 | fi |
12425 | ||
12426 | if test -z "$wx_cv_lib_gtk"; then | |
12427 | wx_cv_lib_gtk=none | |
12428 | else | |
12429 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
12430 | wx_cv_libs_gtk=$GTK_LIBS | |
12431 | fi | |
12432 | ||
12433 | ||
90dd450c | 12434 | fi |
b4085ce6 | 12435 | |
e07802fc | 12436 | |
21d1c967 GD |
12437 | if test "$gtk_version_cached" = 1; then |
12438 | echo "$ac_t""$wx_cv_lib_gtk" 1>&6 | |
12439 | fi | |
12440 | ||
12441 | case "$wx_cv_lib_gtk" in | |
12442 | 2.0) WXGTK20=1 | |
12443 | ;; | |
12444 | 1.2.7) WXGTK127=1 | |
12445 | WXGTK12=1 | |
12446 | ;; | |
12447 | 1.2.3) WXGTK12=1 | |
12448 | ;; | |
12449 | *) { echo "configure: error: | |
12450 | Please check that gtk-config is in path, the directory | |
12451 | where GTK+ libraries are installed (returned by | |
12452 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
12453 | equivalent variable and GTK+ is version 1.2.3 or above. | |
12454 | " 1>&2; exit 1; } | |
12455 | ;; | |
12456 | esac | |
12457 | ||
12458 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" | |
12459 | GUI_TK_LIBRARY="$wx_cv_libs_gtk" | |
12460 | ||
12461 | AFMINSTALL=afminstall | |
12462 | TOOLKIT=GTK | |
12463 | GUIDIST=GTK_DIST | |
12464 | ||
12465 | echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6 | |
321d2b14 | 12466 | echo "configure:12467: checking for gdk_im_open in -lgdk" >&5 |
21d1c967 | 12467 | ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'` |
90dd450c VZ |
12468 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
12469 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12470 | else | |
12471 | ac_save_LIBS="$LIBS" | |
21d1c967 | 12472 | LIBS="-lgdk $LIBS" |
90dd450c | 12473 | cat > conftest.$ac_ext <<EOF |
321d2b14 | 12474 | #line 12475 "configure" |
90dd450c VZ |
12475 | #include "confdefs.h" |
12476 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12477 | /* We use char because int might match the return type of a gcc2 | |
12478 | builtin and then its argument prototype would still apply. */ | |
21d1c967 | 12479 | char gdk_im_open(); |
9b695262 | 12480 | |
90dd450c | 12481 | int main() { |
21d1c967 | 12482 | gdk_im_open() |
90dd450c VZ |
12483 | ; return 0; } |
12484 | EOF | |
321d2b14 | 12485 | if { (eval echo configure:12486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c VZ |
12486 | rm -rf conftest* |
12487 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12488 | else | |
12489 | echo "configure: failed program was:" >&5 | |
12490 | cat conftest.$ac_ext >&5 | |
12491 | rm -rf conftest* | |
12492 | eval "ac_cv_lib_$ac_lib_var=no" | |
12493 | fi | |
12494 | rm -f conftest* | |
12495 | LIBS="$ac_save_LIBS" | |
9b695262 | 12496 | |
90dd450c VZ |
12497 | fi |
12498 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12499 | echo "$ac_t""yes" 1>&6 | |
21d1c967 GD |
12500 | cat >> confdefs.h <<\EOF |
12501 | #define HAVE_XIM 1 | |
12502 | EOF | |
12503 | ||
90dd450c VZ |
12504 | else |
12505 | echo "$ac_t""no" 1>&6 | |
12506 | fi | |
1e6feb95 | 12507 | |
21d1c967 | 12508 | fi |
1e6feb95 | 12509 | |
21d1c967 GD |
12510 | if test "$wxUSE_MGL" = 1; then |
12511 | echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6 | |
321d2b14 | 12512 | echo "configure:12513: checking for SciTech MGL library" >&5 |
21d1c967 GD |
12513 | if test "x$MGL_ROOT" = x ; then |
12514 | echo "$ac_t""not found" 1>&6 | |
12515 | { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; } | |
12516 | else | |
12517 | echo "$ac_t""$MGL_ROOT" 1>&6 | |
12518 | fi | |
12519 | ||
12520 | case "${host}" in | |
12521 | *-*-linux* ) | |
12522 | mgl_os=linux/gcc/glibc | |
12523 | ;; | |
12524 | *-pc-msdosdjgpp ) | |
12525 | mgl_os=dos32/dj2 | |
12526 | ;; | |
12527 | *) | |
12528 | { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; } | |
12529 | esac | |
1e6feb95 | 12530 | |
21d1c967 | 12531 | mgl_lib_type="" |
3fcdd07b | 12532 | |
21d1c967 GD |
12533 | if test "$wxUSE_DEBUG_FLAG" = yes ; then |
12534 | if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \ | |
12535 | -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then | |
12536 | mgl_lib_type=debug | |
12537 | fi | |
12538 | fi | |
12539 | if test "x$mgl_lib_type" = x ; then | |
12540 | if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \ | |
12541 | -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then | |
12542 | mgl_lib_type=release | |
12543 | else | |
12544 | { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; } | |
12545 | fi | |
90dd450c | 12546 | fi |
2224580a | 12547 | |
21d1c967 GD |
12548 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" |
12549 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
12550 | ||
90dd450c | 12551 | AFMINSTALL=afminstall |
21d1c967 GD |
12552 | TOOLKIT=MGL |
12553 | GUIDIST=MGL_DIST | |
12554 | fi | |
dad6c0ea | 12555 | |
21d1c967 GD |
12556 | if test "$wxUSE_MICROWIN" = 1; then |
12557 | echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6 | |
321d2b14 | 12558 | echo "configure:12559: checking for MicroWindows" >&5 |
21d1c967 GD |
12559 | if test "x$MICROWINDOWS" = x ; then |
12560 | echo "$ac_t""not found" 1>&6 | |
12561 | { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; } | |
12562 | else | |
12563 | echo "$ac_t""$MICROWINDOWS" 1>&6 | |
12564 | fi | |
f6bcfd97 | 12565 | |
21d1c967 GD |
12566 | if test -f $MICROWINDOWS/lib/libmwin.a; then |
12567 | echo "$ac_t""MicroWindows' libraries found." 1>&6 | |
12568 | else | |
12569 | { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; } | |
90dd450c | 12570 | fi |
0b2effe9 | 12571 | |
21d1c967 GD |
12572 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" |
12573 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
12574 | ||
12575 | AFMINSTALL=afminstall | |
12576 | TOOLKIT=MICROWIN | |
12577 | GUIDIST=MICROWIN_DIST | |
90dd450c | 12578 | |
21d1c967 GD |
12579 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__ -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" |
12580 | fi | |
f6bcfd97 | 12581 | |
21d1c967 GD |
12582 | if test "$wxUSE_X11" = 1; then |
12583 | # If we find X, set shell vars x_includes and x_libraries to the | |
12584 | # paths, otherwise set no_x=yes. | |
12585 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
12586 | # --without-x overrides everything else, but does not touch the cache. | |
12587 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
321d2b14 | 12588 | echo "configure:12589: checking for X" >&5 |
d8356fa3 | 12589 | |
21d1c967 GD |
12590 | # Check whether --with-x or --without-x was given. |
12591 | if test "${with_x+set}" = set; then | |
12592 | withval="$with_x" | |
12593 | : | |
12594 | fi | |
2224580a | 12595 | |
21d1c967 GD |
12596 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
12597 | if test "x$with_x" = xno; then | |
12598 | # The user explicitly disabled X. | |
12599 | have_x=disabled | |
12600 | else | |
12601 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
12602 | # Both variables are already set. | |
12603 | have_x=yes | |
12604 | else | |
12605 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then | |
12606 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12607 | else | |
12608 | # One or both of the vars are not set, and there is no cached value. | |
12609 | ac_x_includes=NO ac_x_libraries=NO | |
12610 | rm -fr conftestdir | |
12611 | if mkdir conftestdir; then | |
12612 | cd conftestdir | |
12613 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
12614 | cat > Imakefile <<'EOF' | |
12615 | acfindx: | |
12616 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
12617 | EOF | |
12618 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
12619 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
12620 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
12621 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
12622 | for ac_extension in a so sl; do | |
12623 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
12624 | test -f $ac_im_libdir/libX11.$ac_extension; then | |
12625 | ac_im_usrlibdir=$ac_im_libdir; break | |
12626 | fi | |
12627 | done | |
12628 | # Screen out bogus values from the imake configuration. They are | |
12629 | # bogus both because they are the default anyway, and because | |
12630 | # using them would break gcc on systems where it needs fixed includes. | |
12631 | case "$ac_im_incroot" in | |
12632 | /usr/include) ;; | |
12633 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; | |
12634 | esac | |
12635 | case "$ac_im_usrlibdir" in | |
12636 | /usr/lib | /lib) ;; | |
12637 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; | |
12638 | esac | |
12639 | fi | |
12640 | cd .. | |
12641 | rm -fr conftestdir | |
12642 | fi | |
10f2d63a | 12643 | |
21d1c967 GD |
12644 | if test "$ac_x_includes" = NO; then |
12645 | # Guess where to find include files, by looking for this one X11 .h file. | |
12646 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
e45387bf | 12647 | |
21d1c967 GD |
12648 | # First, try using that file with no special directory specified. |
12649 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 12650 | #line 12651 "configure" |
21d1c967 GD |
12651 | #include "confdefs.h" |
12652 | #include <$x_direct_test_include> | |
90dd450c | 12653 | EOF |
21d1c967 | 12654 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
321d2b14 | 12655 | { (eval echo configure:12656: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
12656 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12657 | if test -z "$ac_err"; then | |
90dd450c | 12658 | rm -rf conftest* |
21d1c967 GD |
12659 | # We can compile using X headers with no special include directory. |
12660 | ac_x_includes= | |
90dd450c | 12661 | else |
21d1c967 | 12662 | echo "$ac_err" >&5 |
90dd450c VZ |
12663 | echo "configure: failed program was:" >&5 |
12664 | cat conftest.$ac_ext >&5 | |
12665 | rm -rf conftest* | |
21d1c967 GD |
12666 | # Look for the header file in a standard set of common directories. |
12667 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
12668 | for ac_dir in \ | |
12669 | /usr/X11/include \ | |
12670 | /usr/X11R6/include \ | |
12671 | /usr/X11R5/include \ | |
12672 | /usr/X11R4/include \ | |
12673 | \ | |
12674 | /usr/include/X11 \ | |
12675 | /usr/include/X11R6 \ | |
12676 | /usr/include/X11R5 \ | |
12677 | /usr/include/X11R4 \ | |
12678 | \ | |
12679 | /usr/local/X11/include \ | |
12680 | /usr/local/X11R6/include \ | |
12681 | /usr/local/X11R5/include \ | |
12682 | /usr/local/X11R4/include \ | |
12683 | \ | |
12684 | /usr/local/include/X11 \ | |
12685 | /usr/local/include/X11R6 \ | |
12686 | /usr/local/include/X11R5 \ | |
12687 | /usr/local/include/X11R4 \ | |
12688 | \ | |
12689 | /usr/X386/include \ | |
12690 | /usr/x386/include \ | |
12691 | /usr/XFree86/include/X11 \ | |
12692 | \ | |
12693 | /usr/include \ | |
12694 | /usr/local/include \ | |
12695 | /usr/unsupported/include \ | |
12696 | /usr/athena/include \ | |
12697 | /usr/local/x11r5/include \ | |
12698 | /usr/lpp/Xamples/include \ | |
12699 | \ | |
12700 | /usr/openwin/include \ | |
12701 | /usr/openwin/share/include \ | |
12702 | ; \ | |
12703 | do | |
12704 | if test -r "$ac_dir/$x_direct_test_include"; then | |
12705 | ac_x_includes=$ac_dir | |
12706 | break | |
12707 | fi | |
12708 | done | |
3a922bb4 | 12709 | fi |
90dd450c | 12710 | rm -f conftest* |
21d1c967 | 12711 | fi # $ac_x_includes = NO |
10f2d63a | 12712 | |
21d1c967 GD |
12713 | if test "$ac_x_libraries" = NO; then |
12714 | # Check for the libraries. | |
be505a65 | 12715 | |
21d1c967 GD |
12716 | test -z "$x_direct_test_library" && x_direct_test_library=Xt |
12717 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
90dd450c | 12718 | |
21d1c967 GD |
12719 | # See if we find them without any special options. |
12720 | # Don't add to $LIBS permanently. | |
12721 | ac_save_LIBS="$LIBS" | |
12722 | LIBS="-l$x_direct_test_library $LIBS" | |
12723 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 12724 | #line 12725 "configure" |
3a922bb4 | 12725 | #include "confdefs.h" |
21d1c967 GD |
12726 | |
12727 | int main() { | |
12728 | ${x_direct_test_function}() | |
12729 | ; return 0; } | |
3a922bb4 | 12730 | EOF |
321d2b14 | 12731 | if { (eval echo configure:12732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3a922bb4 | 12732 | rm -rf conftest* |
21d1c967 GD |
12733 | LIBS="$ac_save_LIBS" |
12734 | # We can link X programs with no special library path. | |
12735 | ac_x_libraries= | |
3a922bb4 | 12736 | else |
3a922bb4 RL |
12737 | echo "configure: failed program was:" >&5 |
12738 | cat conftest.$ac_ext >&5 | |
12739 | rm -rf conftest* | |
21d1c967 GD |
12740 | LIBS="$ac_save_LIBS" |
12741 | # First see if replacing the include by lib works. | |
12742 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
12743 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
12744 | /usr/X11/lib \ | |
12745 | /usr/X11R6/lib \ | |
12746 | /usr/X11R5/lib \ | |
12747 | /usr/X11R4/lib \ | |
12748 | \ | |
12749 | /usr/lib/X11 \ | |
12750 | /usr/lib/X11R6 \ | |
12751 | /usr/lib/X11R5 \ | |
12752 | /usr/lib/X11R4 \ | |
12753 | \ | |
12754 | /usr/local/X11/lib \ | |
12755 | /usr/local/X11R6/lib \ | |
12756 | /usr/local/X11R5/lib \ | |
12757 | /usr/local/X11R4/lib \ | |
12758 | \ | |
12759 | /usr/local/lib/X11 \ | |
12760 | /usr/local/lib/X11R6 \ | |
12761 | /usr/local/lib/X11R5 \ | |
12762 | /usr/local/lib/X11R4 \ | |
12763 | \ | |
12764 | /usr/X386/lib \ | |
12765 | /usr/x386/lib \ | |
12766 | /usr/XFree86/lib/X11 \ | |
12767 | \ | |
12768 | /usr/lib \ | |
12769 | /usr/local/lib \ | |
12770 | /usr/unsupported/lib \ | |
12771 | /usr/athena/lib \ | |
12772 | /usr/local/x11r5/lib \ | |
12773 | /usr/lpp/Xamples/lib \ | |
12774 | /lib/usr/lib/X11 \ | |
12775 | \ | |
12776 | /usr/openwin/lib \ | |
12777 | /usr/openwin/share/lib \ | |
12778 | ; \ | |
12779 | do | |
12780 | for ac_extension in a so sl; do | |
12781 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then | |
12782 | ac_x_libraries=$ac_dir | |
12783 | break 2 | |
12784 | fi | |
12785 | done | |
12786 | done | |
3a922bb4 RL |
12787 | fi |
12788 | rm -f conftest* | |
21d1c967 | 12789 | fi # $ac_x_libraries = NO |
90dd450c | 12790 | |
21d1c967 GD |
12791 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
12792 | # Didn't find X anywhere. Cache the known absence of X. | |
12793 | ac_cv_have_x="have_x=no" | |
12794 | else | |
12795 | # Record where we found X for the cache. | |
12796 | ac_cv_have_x="have_x=yes \ | |
12797 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
90dd450c | 12798 | fi |
21d1c967 GD |
12799 | fi |
12800 | fi | |
12801 | eval "$ac_cv_have_x" | |
12802 | fi # $with_x != no | |
90dd450c | 12803 | |
21d1c967 GD |
12804 | if test "$have_x" != yes; then |
12805 | echo "$ac_t""$have_x" 1>&6 | |
12806 | no_x=yes | |
12807 | else | |
12808 | # If each of the values was on the command line, it overrides each guess. | |
12809 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
12810 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
12811 | # Update the cache value to reflect the command line values. | |
12812 | ac_cv_have_x="have_x=yes \ | |
12813 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
12814 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 | |
12815 | fi | |
90dd450c | 12816 | |
21d1c967 | 12817 | if test "$no_x" = yes; then |
90dd450c VZ |
12818 | # Not all programs may use this symbol, but it does not hurt to define it. |
12819 | cat >> confdefs.h <<\EOF | |
12820 | #define X_DISPLAY_MISSING 1 | |
12821 | EOF | |
12822 | ||
12823 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
12824 | else | |
12825 | if test -n "$x_includes"; then | |
12826 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
62d0491b | 12827 | fi |
3a922bb4 | 12828 | |
90dd450c VZ |
12829 | # It would also be nice to do this for all -L options, not just this one. |
12830 | if test -n "$x_libraries"; then | |
12831 | X_LIBS="$X_LIBS -L$x_libraries" | |
12832 | # For Solaris; some versions of Sun CC require a space after -R and | |
12833 | # others require no space. Words are not sufficient . . . . | |
12834 | case "`(uname -sr) 2>/dev/null`" in | |
12835 | "SunOS 5"*) | |
12836 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 | |
321d2b14 | 12837 | echo "configure:12838: checking whether -R must be followed by a space" >&5 |
90dd450c VZ |
12838 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
12839 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 12840 | #line 12841 "configure" |
90dd450c VZ |
12841 | #include "confdefs.h" |
12842 | ||
12843 | int main() { | |
12844 | ||
12845 | ; return 0; } | |
12846 | EOF | |
321d2b14 | 12847 | if { (eval echo configure:12848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c VZ |
12848 | rm -rf conftest* |
12849 | ac_R_nospace=yes | |
3a922bb4 | 12850 | else |
90dd450c VZ |
12851 | echo "configure: failed program was:" >&5 |
12852 | cat conftest.$ac_ext >&5 | |
12853 | rm -rf conftest* | |
12854 | ac_R_nospace=no | |
3a922bb4 | 12855 | fi |
90dd450c VZ |
12856 | rm -f conftest* |
12857 | if test $ac_R_nospace = yes; then | |
12858 | echo "$ac_t""no" 1>&6 | |
12859 | X_LIBS="$X_LIBS -R$x_libraries" | |
12860 | else | |
12861 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
12862 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 12863 | #line 12864 "configure" |
90dd450c | 12864 | #include "confdefs.h" |
3a922bb4 | 12865 | |
90dd450c | 12866 | int main() { |
6f754473 | 12867 | |
90dd450c VZ |
12868 | ; return 0; } |
12869 | EOF | |
321d2b14 | 12870 | if { (eval echo configure:12871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c VZ |
12871 | rm -rf conftest* |
12872 | ac_R_space=yes | |
12873 | else | |
12874 | echo "configure: failed program was:" >&5 | |
12875 | cat conftest.$ac_ext >&5 | |
12876 | rm -rf conftest* | |
12877 | ac_R_space=no | |
12878 | fi | |
12879 | rm -f conftest* | |
12880 | if test $ac_R_space = yes; then | |
12881 | echo "$ac_t""yes" 1>&6 | |
12882 | X_LIBS="$X_LIBS -R $x_libraries" | |
12883 | else | |
12884 | echo "$ac_t""neither works" 1>&6 | |
12885 | fi | |
12886 | fi | |
12887 | LIBS="$ac_xsave_LIBS" | |
12888 | esac | |
12889 | fi | |
12890 | ||
12891 | # Check for system-dependent libraries X programs must link with. | |
12892 | # Do this before checking for the system-independent R6 libraries | |
12893 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
6f754473 | 12894 | |
90dd450c VZ |
12895 | if test "$ISC" = yes; then |
12896 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
12897 | else | |
12898 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X | |
12899 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
12900 | # the Alpha needs dnet_stub (dnet does not exist). | |
12901 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 | |
321d2b14 | 12902 | echo "configure:12903: checking for dnet_ntoa in -ldnet" >&5 |
90dd450c VZ |
12903 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
12904 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12905 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12906 | else | |
12907 | ac_save_LIBS="$LIBS" | |
12908 | LIBS="-ldnet $LIBS" | |
12909 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 12910 | #line 12911 "configure" |
90dd450c VZ |
12911 | #include "confdefs.h" |
12912 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12913 | /* We use char because int might match the return type of a gcc2 | |
12914 | builtin and then its argument prototype would still apply. */ | |
12915 | char dnet_ntoa(); | |
6f754473 | 12916 | |
90dd450c VZ |
12917 | int main() { |
12918 | dnet_ntoa() | |
12919 | ; return 0; } | |
6f754473 | 12920 | EOF |
321d2b14 | 12921 | if { (eval echo configure:12922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c VZ |
12922 | rm -rf conftest* |
12923 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12924 | else | |
12925 | echo "configure: failed program was:" >&5 | |
12926 | cat conftest.$ac_ext >&5 | |
12927 | rm -rf conftest* | |
12928 | eval "ac_cv_lib_$ac_lib_var=no" | |
3a922bb4 | 12929 | fi |
90dd450c VZ |
12930 | rm -f conftest* |
12931 | LIBS="$ac_save_LIBS" | |
3a922bb4 | 12932 | |
3a922bb4 | 12933 | fi |
90dd450c VZ |
12934 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
12935 | echo "$ac_t""yes" 1>&6 | |
12936 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
12937 | else | |
12938 | echo "$ac_t""no" 1>&6 | |
3a922bb4 RL |
12939 | fi |
12940 | ||
90dd450c VZ |
12941 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
12942 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 | |
321d2b14 | 12943 | echo "configure:12944: checking for dnet_ntoa in -ldnet_stub" >&5 |
90dd450c VZ |
12944 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
12945 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12946 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12947 | else | |
12948 | ac_save_LIBS="$LIBS" | |
12949 | LIBS="-ldnet_stub $LIBS" | |
12950 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 12951 | #line 12952 "configure" |
90dd450c VZ |
12952 | #include "confdefs.h" |
12953 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12954 | /* We use char because int might match the return type of a gcc2 | |
12955 | builtin and then its argument prototype would still apply. */ | |
12956 | char dnet_ntoa(); | |
f676c7ff | 12957 | |
90dd450c VZ |
12958 | int main() { |
12959 | dnet_ntoa() | |
12960 | ; return 0; } | |
12961 | EOF | |
321d2b14 | 12962 | if { (eval echo configure:12963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c VZ |
12963 | rm -rf conftest* |
12964 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12965 | else | |
12966 | echo "configure: failed program was:" >&5 | |
12967 | cat conftest.$ac_ext >&5 | |
12968 | rm -rf conftest* | |
12969 | eval "ac_cv_lib_$ac_lib_var=no" | |
3a922bb4 | 12970 | fi |
90dd450c VZ |
12971 | rm -f conftest* |
12972 | LIBS="$ac_save_LIBS" | |
3a922bb4 | 12973 | |
90dd450c VZ |
12974 | fi |
12975 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12976 | echo "$ac_t""yes" 1>&6 | |
12977 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
12978 | else | |
12979 | echo "$ac_t""no" 1>&6 | |
3a922bb4 RL |
12980 | fi |
12981 | ||
90dd450c | 12982 | fi |
978f1259 | 12983 | |
90dd450c VZ |
12984 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
12985 | # to get the SysV transport functions. | |
12986 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) | |
12987 | # needs -lnsl. | |
12988 | # The nsl library prevents programs from opening the X display | |
12989 | # on Irix 5.2, according to dickey@clark.net. | |
12990 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
321d2b14 | 12991 | echo "configure:12992: checking for gethostbyname" >&5 |
90dd450c VZ |
12992 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
12993 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12994 | else | |
12995 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 12996 | #line 12997 "configure" |
90dd450c VZ |
12997 | #include "confdefs.h" |
12998 | /* System header to define __stub macros and hopefully few prototypes, | |
12999 | which can conflict with char gethostbyname(); below. */ | |
13000 | #include <assert.h> | |
13001 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13002 | /* We use char because int might match the return type of a gcc2 | |
13003 | builtin and then its argument prototype would still apply. */ | |
13004 | char gethostbyname(); | |
978f1259 | 13005 | |
90dd450c | 13006 | int main() { |
978f1259 | 13007 | |
90dd450c VZ |
13008 | /* The GNU C library defines this for functions which it implements |
13009 | to always fail with ENOSYS. Some functions are actually named | |
13010 | something starting with __ and the normal name is an alias. */ | |
13011 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
13012 | choke me | |
13013 | #else | |
13014 | gethostbyname(); | |
13015 | #endif | |
978f1259 | 13016 | |
90dd450c VZ |
13017 | ; return 0; } |
13018 | EOF | |
321d2b14 | 13019 | if { (eval echo configure:13020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c VZ |
13020 | rm -rf conftest* |
13021 | eval "ac_cv_func_gethostbyname=yes" | |
13022 | else | |
13023 | echo "configure: failed program was:" >&5 | |
13024 | cat conftest.$ac_ext >&5 | |
13025 | rm -rf conftest* | |
13026 | eval "ac_cv_func_gethostbyname=no" | |
978f1259 | 13027 | fi |
90dd450c | 13028 | rm -f conftest* |
4222829b VS |
13029 | fi |
13030 | ||
90dd450c VZ |
13031 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then |
13032 | echo "$ac_t""yes" 1>&6 | |
13033 | : | |
13034 | else | |
13035 | echo "$ac_t""no" 1>&6 | |
13036 | fi | |
698dcdb6 | 13037 | |
90dd450c VZ |
13038 | if test $ac_cv_func_gethostbyname = no; then |
13039 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 | |
321d2b14 | 13040 | echo "configure:13041: checking for gethostbyname in -lnsl" >&5 |
90dd450c VZ |
13041 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
13042 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13043 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13044 | else | |
13045 | ac_save_LIBS="$LIBS" | |
13046 | LIBS="-lnsl $LIBS" | |
13047 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 13048 | #line 13049 "configure" |
90dd450c VZ |
13049 | #include "confdefs.h" |
13050 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13051 | /* We use char because int might match the return type of a gcc2 | |
13052 | builtin and then its argument prototype would still apply. */ | |
13053 | char gethostbyname(); | |
f6bcfd97 | 13054 | |
90dd450c VZ |
13055 | int main() { |
13056 | gethostbyname() | |
13057 | ; return 0; } | |
13058 | EOF | |
321d2b14 | 13059 | if { (eval echo configure:13060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c VZ |
13060 | rm -rf conftest* |
13061 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13062 | else | |
13063 | echo "configure: failed program was:" >&5 | |
13064 | cat conftest.$ac_ext >&5 | |
13065 | rm -rf conftest* | |
13066 | eval "ac_cv_lib_$ac_lib_var=no" | |
13067 | fi | |
13068 | rm -f conftest* | |
13069 | LIBS="$ac_save_LIBS" | |
55e80573 | 13070 | |
90dd450c VZ |
13071 | fi |
13072 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13073 | echo "$ac_t""yes" 1>&6 | |
13074 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
13075 | else | |
13076 | echo "$ac_t""no" 1>&6 | |
13077 | fi | |
b12915c1 | 13078 | |
90dd450c VZ |
13079 | fi |
13080 | ||
13081 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
13082 | # socket/setsockopt and other routines are undefined under SCO ODT | |
13083 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
13084 | # on later versions), says simon@lia.di.epfl.ch: it contains | |
13085 | # gethostby* variants that don't use the nameserver (or something). | |
13086 | # -lsocket must be given before -lnsl if both are needed. | |
13087 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
13088 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
321d2b14 | 13089 | echo "configure:13090: checking for connect" >&5 |
90dd450c | 13090 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
55e80573 VZ |
13091 | echo $ac_n "(cached) $ac_c" 1>&6 |
13092 | else | |
90dd450c | 13093 | cat > conftest.$ac_ext <<EOF |
321d2b14 | 13094 | #line 13095 "configure" |
55e80573 | 13095 | #include "confdefs.h" |
90dd450c VZ |
13096 | /* System header to define __stub macros and hopefully few prototypes, |
13097 | which can conflict with char connect(); below. */ | |
13098 | #include <assert.h> | |
13099 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13100 | /* We use char because int might match the return type of a gcc2 | |
13101 | builtin and then its argument prototype would still apply. */ | |
13102 | char connect(); | |
55e80573 VZ |
13103 | |
13104 | int main() { | |
13105 | ||
90dd450c VZ |
13106 | /* The GNU C library defines this for functions which it implements |
13107 | to always fail with ENOSYS. Some functions are actually named | |
13108 | something starting with __ and the normal name is an alias. */ | |
13109 | #if defined (__stub_connect) || defined (__stub___connect) | |
13110 | choke me | |
13111 | #else | |
13112 | connect(); | |
13113 | #endif | |
13114 | ||
55e80573 VZ |
13115 | ; return 0; } |
13116 | EOF | |
321d2b14 | 13117 | if { (eval echo configure:13118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
55e80573 | 13118 | rm -rf conftest* |
90dd450c | 13119 | eval "ac_cv_func_connect=yes" |
55e80573 VZ |
13120 | else |
13121 | echo "configure: failed program was:" >&5 | |
13122 | cat conftest.$ac_ext >&5 | |
13123 | rm -rf conftest* | |
90dd450c | 13124 | eval "ac_cv_func_connect=no" |
55e80573 VZ |
13125 | fi |
13126 | rm -f conftest* | |
55e80573 VZ |
13127 | fi |
13128 | ||
90dd450c VZ |
13129 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then |
13130 | echo "$ac_t""yes" 1>&6 | |
13131 | : | |
13132 | else | |
13133 | echo "$ac_t""no" 1>&6 | |
13134 | fi | |
55e80573 | 13135 | |
90dd450c VZ |
13136 | if test $ac_cv_func_connect = no; then |
13137 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 | |
321d2b14 | 13138 | echo "configure:13139: checking for connect in -lsocket" >&5 |
90dd450c VZ |
13139 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
13140 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13141 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13142 | else | |
13143 | ac_save_LIBS="$LIBS" | |
13144 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
13145 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 13146 | #line 13147 "configure" |
90dd450c VZ |
13147 | #include "confdefs.h" |
13148 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13149 | /* We use char because int might match the return type of a gcc2 | |
13150 | builtin and then its argument prototype would still apply. */ | |
13151 | char connect(); | |
55e80573 | 13152 | |
90dd450c VZ |
13153 | int main() { |
13154 | connect() | |
13155 | ; return 0; } | |
13156 | EOF | |
321d2b14 | 13157 | if { (eval echo configure:13158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c VZ |
13158 | rm -rf conftest* |
13159 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13160 | else | |
13161 | echo "configure: failed program was:" >&5 | |
13162 | cat conftest.$ac_ext >&5 | |
13163 | rm -rf conftest* | |
13164 | eval "ac_cv_lib_$ac_lib_var=no" | |
13165 | fi | |
13166 | rm -f conftest* | |
13167 | LIBS="$ac_save_LIBS" | |
77e13408 | 13168 | |
90dd450c VZ |
13169 | fi |
13170 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13171 | echo "$ac_t""yes" 1>&6 | |
13172 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
13173 | else | |
13174 | echo "$ac_t""no" 1>&6 | |
13175 | fi | |
77e13408 | 13176 | |
90dd450c | 13177 | fi |
25d0687a | 13178 | |
90dd450c VZ |
13179 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
13180 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
321d2b14 | 13181 | echo "configure:13182: checking for remove" >&5 |
90dd450c VZ |
13182 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
13183 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13184 | else | |
13185 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 13186 | #line 13187 "configure" |
90dd450c VZ |
13187 | #include "confdefs.h" |
13188 | /* System header to define __stub macros and hopefully few prototypes, | |
13189 | which can conflict with char remove(); below. */ | |
13190 | #include <assert.h> | |
13191 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13192 | /* We use char because int might match the return type of a gcc2 | |
13193 | builtin and then its argument prototype would still apply. */ | |
13194 | char remove(); | |
7b7a7637 | 13195 | |
90dd450c | 13196 | int main() { |
55e80573 | 13197 | |
90dd450c VZ |
13198 | /* The GNU C library defines this for functions which it implements |
13199 | to always fail with ENOSYS. Some functions are actually named | |
13200 | something starting with __ and the normal name is an alias. */ | |
13201 | #if defined (__stub_remove) || defined (__stub___remove) | |
13202 | choke me | |
13203 | #else | |
13204 | remove(); | |
13205 | #endif | |
55e80573 | 13206 | |
90dd450c VZ |
13207 | ; return 0; } |
13208 | EOF | |
321d2b14 | 13209 | if { (eval echo configure:13210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c VZ |
13210 | rm -rf conftest* |
13211 | eval "ac_cv_func_remove=yes" | |
13212 | else | |
13213 | echo "configure: failed program was:" >&5 | |
13214 | cat conftest.$ac_ext >&5 | |
13215 | rm -rf conftest* | |
13216 | eval "ac_cv_func_remove=no" | |
13217 | fi | |
13218 | rm -f conftest* | |
13219 | fi | |
55e80573 | 13220 | |
90dd450c VZ |
13221 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then |
13222 | echo "$ac_t""yes" 1>&6 | |
13223 | : | |
13224 | else | |
13225 | echo "$ac_t""no" 1>&6 | |
13226 | fi | |
10f2d63a | 13227 | |
90dd450c VZ |
13228 | if test $ac_cv_func_remove = no; then |
13229 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 | |
321d2b14 | 13230 | echo "configure:13231: checking for remove in -lposix" >&5 |
90dd450c VZ |
13231 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
13232 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13233 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13234 | else | |
13235 | ac_save_LIBS="$LIBS" | |
13236 | LIBS="-lposix $LIBS" | |
13237 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 13238 | #line 13239 "configure" |
90dd450c VZ |
13239 | #include "confdefs.h" |
13240 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13241 | /* We use char because int might match the return type of a gcc2 | |
13242 | builtin and then its argument prototype would still apply. */ | |
13243 | char remove(); | |
55e80573 | 13244 | |
90dd450c VZ |
13245 | int main() { |
13246 | remove() | |
13247 | ; return 0; } | |
13248 | EOF | |
321d2b14 | 13249 | if { (eval echo configure:13250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c VZ |
13250 | rm -rf conftest* |
13251 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13252 | else | |
13253 | echo "configure: failed program was:" >&5 | |
13254 | cat conftest.$ac_ext >&5 | |
13255 | rm -rf conftest* | |
13256 | eval "ac_cv_lib_$ac_lib_var=no" | |
3a922bb4 | 13257 | fi |
90dd450c VZ |
13258 | rm -f conftest* |
13259 | LIBS="$ac_save_LIBS" | |
f6bcfd97 | 13260 | |
90dd450c VZ |
13261 | fi |
13262 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13263 | echo "$ac_t""yes" 1>&6 | |
13264 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
13265 | else | |
13266 | echo "$ac_t""no" 1>&6 | |
13267 | fi | |
f6bcfd97 | 13268 | |
6fa882bd RR |
13269 | fi |
13270 | ||
90dd450c VZ |
13271 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
13272 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 | |
321d2b14 | 13273 | echo "configure:13274: checking for shmat" >&5 |
90dd450c VZ |
13274 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
13275 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13276 | else | |
13277 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 13278 | #line 13279 "configure" |
90dd450c VZ |
13279 | #include "confdefs.h" |
13280 | /* System header to define __stub macros and hopefully few prototypes, | |
13281 | which can conflict with char shmat(); below. */ | |
13282 | #include <assert.h> | |
13283 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13284 | /* We use char because int might match the return type of a gcc2 | |
13285 | builtin and then its argument prototype would still apply. */ | |
13286 | char shmat(); | |
698dcdb6 | 13287 | |
90dd450c | 13288 | int main() { |
3a922bb4 | 13289 | |
90dd450c VZ |
13290 | /* The GNU C library defines this for functions which it implements |
13291 | to always fail with ENOSYS. Some functions are actually named | |
13292 | something starting with __ and the normal name is an alias. */ | |
13293 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
13294 | choke me | |
13295 | #else | |
13296 | shmat(); | |
13297 | #endif | |
10f2d63a | 13298 | |
90dd450c VZ |
13299 | ; return 0; } |
13300 | EOF | |
321d2b14 | 13301 | if { (eval echo configure:13302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c VZ |
13302 | rm -rf conftest* |
13303 | eval "ac_cv_func_shmat=yes" | |
d08b457b | 13304 | else |
90dd450c VZ |
13305 | echo "configure: failed program was:" >&5 |
13306 | cat conftest.$ac_ext >&5 | |
13307 | rm -rf conftest* | |
13308 | eval "ac_cv_func_shmat=no" | |
d08b457b | 13309 | fi |
90dd450c | 13310 | rm -f conftest* |
d08b457b | 13311 | fi |
90dd450c VZ |
13312 | |
13313 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
13314 | echo "$ac_t""yes" 1>&6 | |
13315 | : | |
d08b457b GD |
13316 | else |
13317 | echo "$ac_t""no" 1>&6 | |
13318 | fi | |
13319 | ||
90dd450c VZ |
13320 | if test $ac_cv_func_shmat = no; then |
13321 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 | |
321d2b14 | 13322 | echo "configure:13323: checking for shmat in -lipc" >&5 |
90dd450c VZ |
13323 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
13324 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
d08b457b GD |
13325 | echo $ac_n "(cached) $ac_c" 1>&6 |
13326 | else | |
90dd450c VZ |
13327 | ac_save_LIBS="$LIBS" |
13328 | LIBS="-lipc $LIBS" | |
13329 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 13330 | #line 13331 "configure" |
90dd450c VZ |
13331 | #include "confdefs.h" |
13332 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13333 | /* We use char because int might match the return type of a gcc2 | |
13334 | builtin and then its argument prototype would still apply. */ | |
13335 | char shmat(); | |
13336 | ||
13337 | int main() { | |
13338 | shmat() | |
13339 | ; return 0; } | |
13340 | EOF | |
321d2b14 | 13341 | if { (eval echo configure:13342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c VZ |
13342 | rm -rf conftest* |
13343 | eval "ac_cv_lib_$ac_lib_var=yes" | |
d08b457b | 13344 | else |
90dd450c VZ |
13345 | echo "configure: failed program was:" >&5 |
13346 | cat conftest.$ac_ext >&5 | |
13347 | rm -rf conftest* | |
13348 | eval "ac_cv_lib_$ac_lib_var=no" | |
d08b457b | 13349 | fi |
90dd450c VZ |
13350 | rm -f conftest* |
13351 | LIBS="$ac_save_LIBS" | |
13352 | ||
d08b457b | 13353 | fi |
90dd450c VZ |
13354 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
13355 | echo "$ac_t""yes" 1>&6 | |
13356 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
d08b457b GD |
13357 | else |
13358 | echo "$ac_t""no" 1>&6 | |
13359 | fi | |
13360 | ||
d558c907 | 13361 | fi |
90dd450c | 13362 | fi |
3a922bb4 | 13363 | |
90dd450c VZ |
13364 | # Check for libraries that X11R6 Xt/Xaw programs need. |
13365 | ac_save_LDFLAGS="$LDFLAGS" | |
13366 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
13367 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
13368 | # check for ICE first), but we must link in the order -lSM -lICE or | |
13369 | # we get undefined symbols. So assume we have SM if we have ICE. | |
13370 | # These have to be linked with before -lX11, unlike the other | |
13371 | # libraries we check for below, so use a different variable. | |
13372 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. | |
13373 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
321d2b14 | 13374 | echo "configure:13375: checking for IceConnectionNumber in -lICE" >&5 |
90dd450c VZ |
13375 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
13376 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 VZ |
13377 | echo $ac_n "(cached) $ac_c" 1>&6 |
13378 | else | |
90dd450c VZ |
13379 | ac_save_LIBS="$LIBS" |
13380 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
13381 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 13382 | #line 13383 "configure" |
9cfadba2 | 13383 | #include "confdefs.h" |
90dd450c VZ |
13384 | /* Override any gcc2 internal prototype to avoid an error. */ |
13385 | /* We use char because int might match the return type of a gcc2 | |
13386 | builtin and then its argument prototype would still apply. */ | |
13387 | char IceConnectionNumber(); | |
13388 | ||
13389 | int main() { | |
13390 | IceConnectionNumber() | |
13391 | ; return 0; } | |
698dcdb6 | 13392 | EOF |
321d2b14 | 13393 | if { (eval echo configure:13394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 13394 | rm -rf conftest* |
90dd450c | 13395 | eval "ac_cv_lib_$ac_lib_var=yes" |
6232543b | 13396 | else |
698dcdb6 | 13397 | echo "configure: failed program was:" >&5 |
9cfadba2 | 13398 | cat conftest.$ac_ext >&5 |
698dcdb6 | 13399 | rm -rf conftest* |
90dd450c | 13400 | eval "ac_cv_lib_$ac_lib_var=no" |
9cfadba2 | 13401 | fi |
698dcdb6 | 13402 | rm -f conftest* |
90dd450c VZ |
13403 | LIBS="$ac_save_LIBS" |
13404 | ||
9cfadba2 | 13405 | fi |
90dd450c | 13406 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
698dcdb6 | 13407 | echo "$ac_t""yes" 1>&6 |
90dd450c | 13408 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
698dcdb6 VZ |
13409 | else |
13410 | echo "$ac_t""no" 1>&6 | |
9cfadba2 | 13411 | fi |
10f2d63a | 13412 | |
90dd450c VZ |
13413 | LDFLAGS="$ac_save_LDFLAGS" |
13414 | ||
13415 | fi | |
13416 | ||
13417 | ||
13418 | if test "$no_x" = "yes"; then | |
13419 | { echo "configure: error: X11 not found" 1>&2; exit 1; } | |
13420 | fi | |
13421 | ||
13422 | GUI_TK_LIBRARY="$X_LIBS" | |
13423 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
13424 | AFMINSTALL=afminstall | |
13425 | COMPILED_X_PROGRAM=0 | |
13426 | ||
21d1c967 GD |
13427 | if test "$wxUSE_NANOX" = "yes"; then |
13428 | echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6 | |
321d2b14 | 13429 | echo "configure:13430: checking for MicroWindows/NanoX distribution" >&5 |
21d1c967 GD |
13430 | if test "x$MICROWIN" = x ; then |
13431 | echo "$ac_t""not found" 1>&6 | |
13432 | { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; } | |
90dd450c | 13433 | else |
21d1c967 GD |
13434 | echo "$ac_t""$MICROWIN" 1>&6 |
13435 | cat >> confdefs.h <<\EOF | |
13436 | #define wxUSE_NANOX 1 | |
698dcdb6 | 13437 | EOF |
21d1c967 | 13438 | |
90dd450c VZ |
13439 | fi |
13440 | fi | |
13441 | ||
13442 | xpm_link= | |
13443 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
321d2b14 | 13444 | echo "configure:13445: checking for Xpm library" >&5 |
90dd450c VZ |
13445 | |
13446 | ac_find_libraries= | |
13447 | for ac_dir in $SEARCH_LIB; | |
13448 | do | |
13449 | for ac_extension in a so sl dylib; do | |
13450 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
13451 | ac_find_libraries=$ac_dir | |
13452 | break 2 | |
13453 | fi | |
13454 | done | |
13455 | done | |
13456 | ||
13457 | if test "$ac_find_libraries" != "" ; then | |
13458 | ||
13459 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
13460 | result=$? | |
13461 | if test $result = 0; then | |
13462 | ac_path_to_link="" | |
13463 | else | |
13464 | ac_path_to_link=" -L$ac_find_libraries" | |
21d1c967 | 13465 | fi |
90dd450c | 13466 | |
21d1c967 GD |
13467 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
13468 | xpm_link=" -lXpm" | |
13469 | cat >> confdefs.h <<\EOF | |
13470 | #define wxHAVE_LIB_XPM 1 | |
13471 | EOF | |
90dd450c | 13472 | |
21d1c967 GD |
13473 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
13474 | else | |
13475 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 13476 | #line 13477 "configure" |
21d1c967 | 13477 | #include "confdefs.h" |
90dd450c | 13478 | |
21d1c967 GD |
13479 | #include <X11/xpm.h> |
13480 | ||
13481 | int main() { | |
6f72b082 | 13482 | |
21d1c967 GD |
13483 | int version; |
13484 | version = XpmLibraryVersion(); | |
13485 | ||
13486 | ; return 0; } | |
13487 | EOF | |
321d2b14 | 13488 | if { (eval echo configure:13489: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
21d1c967 GD |
13489 | rm -rf conftest* |
13490 | ||
13491 | xpm_link=" -lXpm" | |
13492 | cat >> confdefs.h <<\EOF | |
13493 | #define wxHAVE_LIB_XPM 1 | |
13494 | EOF | |
90dd450c | 13495 | |
21d1c967 GD |
13496 | echo "$ac_t""found in default search path" 1>&6 |
13497 | COMPILED_X_PROGRAM=0 | |
13498 | ||
13499 | else | |
13500 | echo "configure: failed program was:" >&5 | |
13501 | cat conftest.$ac_ext >&5 | |
13502 | rm -rf conftest* | |
13503 | ||
13504 | echo "$ac_t""no" 1>&6 | |
13505 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
13506 | ||
13507 | ||
6f72b082 | 13508 | fi |
21d1c967 GD |
13509 | rm -f conftest* |
13510 | fi | |
90dd450c | 13511 | |
21d1c967 GD |
13512 | if test "$wxUSE_NANOX" = "yes"; then |
13513 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
13514 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__NANOX__ -DMWPIXEL_FORMAT=MWPF_TRUECOLOR0888 -DHAVE_FILEIO -DHAVE_BMP_SUPPORT=1 -DHAVE_GIF_SUPPORT=1 -DHAVE_PNM_SUPPORT=1 -DHAVE_XPM_SUPPORT=1 -DLINUX=1 -DUNIX=1 -DUSE_EXPOSURE -DSCREEN_HEIGHT=480 -DSCREEN_WIDTH=640 -DSCREEN_DEPTH=4 -DX11=1" | |
13515 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" | |
13516 | else | |
13517 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link" | |
13518 | fi | |
6f72b082 | 13519 | |
21d1c967 GD |
13520 | TOOLKIT_VPATH="\${top_srcdir}/src/x11" |
13521 | TOOLKIT=X11 | |
13522 | GUIDIST=X11_DIST | |
13523 | fi | |
90dd450c | 13524 | |
21d1c967 GD |
13525 | if test "$wxUSE_WINE" = 1; then |
13526 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` | |
13527 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
321d2b14 | 13528 | echo "configure:13529: checking for windows.h" >&5 |
698dcdb6 VZ |
13529 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13530 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13531 | else | |
13532 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 13533 | #line 13534 "configure" |
6f72b082 | 13534 | #include "confdefs.h" |
21d1c967 | 13535 | #include <windows.h> |
698dcdb6 VZ |
13536 | EOF |
13537 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
321d2b14 | 13538 | { (eval echo configure:13539: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13539 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13540 | if test -z "$ac_err"; then | |
13541 | rm -rf conftest* | |
13542 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 13543 | else |
698dcdb6 VZ |
13544 | echo "$ac_err" >&5 |
13545 | echo "configure: failed program was:" >&5 | |
10f2d63a | 13546 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13547 | rm -rf conftest* |
13548 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 13549 | fi |
698dcdb6 | 13550 | rm -f conftest* |
10f2d63a | 13551 | fi |
698dcdb6 VZ |
13552 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13553 | echo "$ac_t""yes" 1>&6 | |
21d1c967 GD |
13554 | : |
13555 | else | |
13556 | echo "$ac_t""no" 1>&6 | |
13557 | ||
13558 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
13559 | ||
13560 | fi | |
13561 | ||
13562 | ||
13563 | xpm_link= | |
13564 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
321d2b14 | 13565 | echo "configure:13566: checking for Xpm library" >&5 |
21d1c967 | 13566 | |
90dd450c VZ |
13567 | ac_find_libraries= |
13568 | for ac_dir in $SEARCH_LIB; | |
13569 | do | |
13570 | for ac_extension in a so sl dylib; do | |
21d1c967 | 13571 | if test -f "$ac_dir/libXpm.$ac_extension"; then |
90dd450c VZ |
13572 | ac_find_libraries=$ac_dir |
13573 | break 2 | |
13574 | fi | |
13575 | done | |
13576 | done | |
13577 | ||
21d1c967 GD |
13578 | if test "$ac_find_libraries" != "" ; then |
13579 | GUI_TK_LIBRARY="-L$ac_find_libraries" | |
13580 | xpm_link=" -lXpm" | |
13581 | cat >> confdefs.h <<\EOF | |
13582 | #define wxHAVE_LIB_XPM 1 | |
13583 | EOF | |
90dd450c | 13584 | |
21d1c967 GD |
13585 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
13586 | else | |
13587 | echo "$ac_t""no" 1>&6 | |
13588 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
13589 | fi | |
13590 | ||
13591 | mesa_link= | |
13592 | echo $ac_n "checking for Mesa library""... $ac_c" 1>&6 | |
321d2b14 | 13593 | echo "configure:13594: checking for Mesa library" >&5 |
21d1c967 | 13594 | |
90dd450c VZ |
13595 | ac_find_libraries= |
13596 | for ac_dir in $SEARCH_LIB; | |
13597 | do | |
13598 | for ac_extension in a so sl dylib; do | |
13599 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
13600 | ac_find_libraries=$ac_dir | |
13601 | break 2 | |
13602 | fi | |
13603 | done | |
13604 | done | |
13605 | ||
21d1c967 GD |
13606 | if test "$ac_find_libraries" != "" ; then |
13607 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries" | |
13608 | mesa_link=" -lMesaGL" | |
13609 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
13610 | else | |
13611 | { echo "configure: error: no" 1>&2; exit 1; } | |
13612 | fi | |
13613 | ||
13614 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses" | |
13615 | TOOLKIT=MSW | |
13616 | GUIDIST=MSW_DIST | |
13617 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__" | |
13618 | fi | |
13619 | ||
13620 | if test "$wxUSE_MOTIF" = 1; then | |
13621 | if test "$no_x" = yes; then | |
13622 | # Not all programs may use this symbol, but it does not hurt to define it. | |
13623 | cat >> confdefs.h <<\EOF | |
13624 | #define X_DISPLAY_MISSING 1 | |
13625 | EOF | |
13626 | ||
13627 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
13628 | else | |
13629 | if test -n "$x_includes"; then | |
13630 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
90dd450c VZ |
13631 | fi |
13632 | ||
21d1c967 GD |
13633 | # It would also be nice to do this for all -L options, not just this one. |
13634 | if test -n "$x_libraries"; then | |
13635 | X_LIBS="$X_LIBS -L$x_libraries" | |
13636 | # For Solaris; some versions of Sun CC require a space after -R and | |
13637 | # others require no space. Words are not sufficient . . . . | |
13638 | case "`(uname -sr) 2>/dev/null`" in | |
13639 | "SunOS 5"*) | |
13640 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 | |
321d2b14 | 13641 | echo "configure:13642: checking whether -R must be followed by a space" >&5 |
21d1c967 GD |
13642 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
13643 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 13644 | #line 13645 "configure" |
21d1c967 GD |
13645 | #include "confdefs.h" |
13646 | ||
13647 | int main() { | |
13648 | ||
13649 | ; return 0; } | |
13650 | EOF | |
321d2b14 | 13651 | if { (eval echo configure:13652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
21d1c967 GD |
13652 | rm -rf conftest* |
13653 | ac_R_nospace=yes | |
698dcdb6 | 13654 | else |
21d1c967 GD |
13655 | echo "configure: failed program was:" >&5 |
13656 | cat conftest.$ac_ext >&5 | |
13657 | rm -rf conftest* | |
13658 | ac_R_nospace=no | |
10f2d63a | 13659 | fi |
21d1c967 GD |
13660 | rm -f conftest* |
13661 | if test $ac_R_nospace = yes; then | |
13662 | echo "$ac_t""no" 1>&6 | |
13663 | X_LIBS="$X_LIBS -R$x_libraries" | |
13664 | else | |
13665 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
13666 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 13667 | #line 13668 "configure" |
21d1c967 | 13668 | #include "confdefs.h" |
10f2d63a | 13669 | |
21d1c967 | 13670 | int main() { |
f0c87536 | 13671 | |
21d1c967 | 13672 | ; return 0; } |
698dcdb6 | 13673 | EOF |
321d2b14 | 13674 | if { (eval echo configure:13675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
21d1c967 GD |
13675 | rm -rf conftest* |
13676 | ac_R_space=yes | |
13677 | else | |
13678 | echo "configure: failed program was:" >&5 | |
13679 | cat conftest.$ac_ext >&5 | |
13680 | rm -rf conftest* | |
13681 | ac_R_space=no | |
13682 | fi | |
13683 | rm -f conftest* | |
13684 | if test $ac_R_space = yes; then | |
13685 | echo "$ac_t""yes" 1>&6 | |
13686 | X_LIBS="$X_LIBS -R $x_libraries" | |
13687 | else | |
13688 | echo "$ac_t""neither works" 1>&6 | |
13689 | fi | |
13690 | fi | |
13691 | LIBS="$ac_xsave_LIBS" | |
13692 | esac | |
13693 | fi | |
90dd450c | 13694 | |
21d1c967 GD |
13695 | # Check for system-dependent libraries X programs must link with. |
13696 | # Do this before checking for the system-independent R6 libraries | |
13697 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
13698 | ||
13699 | if test "$ISC" = yes; then | |
13700 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
13701 | else | |
13702 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X | |
13703 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
13704 | # the Alpha needs dnet_stub (dnet does not exist). | |
13705 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 | |
321d2b14 | 13706 | echo "configure:13707: checking for dnet_ntoa in -ldnet" >&5 |
21d1c967 GD |
13707 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
13708 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13709 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13710 | else | |
13711 | ac_save_LIBS="$LIBS" | |
13712 | LIBS="-ldnet $LIBS" | |
13713 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 13714 | #line 13715 "configure" |
21d1c967 GD |
13715 | #include "confdefs.h" |
13716 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13717 | /* We use char because int might match the return type of a gcc2 | |
13718 | builtin and then its argument prototype would still apply. */ | |
13719 | char dnet_ntoa(); | |
13720 | ||
13721 | int main() { | |
13722 | dnet_ntoa() | |
13723 | ; return 0; } | |
90dd450c | 13724 | EOF |
321d2b14 | 13725 | if { (eval echo configure:13726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
21d1c967 GD |
13726 | rm -rf conftest* |
13727 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13728 | else | |
13729 | echo "configure: failed program was:" >&5 | |
13730 | cat conftest.$ac_ext >&5 | |
13731 | rm -rf conftest* | |
13732 | eval "ac_cv_lib_$ac_lib_var=no" | |
0fb0dd83 | 13733 | fi |
21d1c967 GD |
13734 | rm -f conftest* |
13735 | LIBS="$ac_save_LIBS" | |
90dd450c | 13736 | |
0fb0dd83 | 13737 | fi |
21d1c967 GD |
13738 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
13739 | echo "$ac_t""yes" 1>&6 | |
13740 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
13741 | else | |
13742 | echo "$ac_t""no" 1>&6 | |
0fb0dd83 | 13743 | fi |
0fb0dd83 | 13744 | |
21d1c967 GD |
13745 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
13746 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 | |
321d2b14 | 13747 | echo "configure:13748: checking for dnet_ntoa in -ldnet_stub" >&5 |
21d1c967 GD |
13748 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
13749 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13750 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13751 | else | |
13752 | ac_save_LIBS="$LIBS" | |
13753 | LIBS="-ldnet_stub $LIBS" | |
13754 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 13755 | #line 13756 "configure" |
21d1c967 GD |
13756 | #include "confdefs.h" |
13757 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13758 | /* We use char because int might match the return type of a gcc2 | |
13759 | builtin and then its argument prototype would still apply. */ | |
13760 | char dnet_ntoa(); | |
90dd450c | 13761 | |
21d1c967 GD |
13762 | int main() { |
13763 | dnet_ntoa() | |
13764 | ; return 0; } | |
13765 | EOF | |
321d2b14 | 13766 | if { (eval echo configure:13767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
21d1c967 GD |
13767 | rm -rf conftest* |
13768 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13769 | else | |
13770 | echo "configure: failed program was:" >&5 | |
13771 | cat conftest.$ac_ext >&5 | |
13772 | rm -rf conftest* | |
13773 | eval "ac_cv_lib_$ac_lib_var=no" | |
90dd450c | 13774 | fi |
21d1c967 GD |
13775 | rm -f conftest* |
13776 | LIBS="$ac_save_LIBS" | |
90dd450c | 13777 | |
21d1c967 GD |
13778 | fi |
13779 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13780 | echo "$ac_t""yes" 1>&6 | |
13781 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
13782 | else | |
13783 | echo "$ac_t""no" 1>&6 | |
90dd450c VZ |
13784 | fi |
13785 | ||
21d1c967 | 13786 | fi |
90dd450c | 13787 | |
21d1c967 GD |
13788 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
13789 | # to get the SysV transport functions. | |
13790 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) | |
13791 | # needs -lnsl. | |
13792 | # The nsl library prevents programs from opening the X display | |
13793 | # on Irix 5.2, according to dickey@clark.net. | |
13794 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
321d2b14 | 13795 | echo "configure:13796: checking for gethostbyname" >&5 |
21d1c967 GD |
13796 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
13797 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13798 | else | |
13799 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 13800 | #line 13801 "configure" |
21d1c967 GD |
13801 | #include "confdefs.h" |
13802 | /* System header to define __stub macros and hopefully few prototypes, | |
13803 | which can conflict with char gethostbyname(); below. */ | |
13804 | #include <assert.h> | |
13805 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13806 | /* We use char because int might match the return type of a gcc2 | |
13807 | builtin and then its argument prototype would still apply. */ | |
13808 | char gethostbyname(); | |
90dd450c | 13809 | |
21d1c967 | 13810 | int main() { |
90dd450c | 13811 | |
21d1c967 GD |
13812 | /* The GNU C library defines this for functions which it implements |
13813 | to always fail with ENOSYS. Some functions are actually named | |
13814 | something starting with __ and the normal name is an alias. */ | |
13815 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
13816 | choke me | |
13817 | #else | |
13818 | gethostbyname(); | |
13819 | #endif | |
90dd450c | 13820 | |
21d1c967 GD |
13821 | ; return 0; } |
13822 | EOF | |
321d2b14 | 13823 | if { (eval echo configure:13824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
21d1c967 GD |
13824 | rm -rf conftest* |
13825 | eval "ac_cv_func_gethostbyname=yes" | |
13826 | else | |
13827 | echo "configure: failed program was:" >&5 | |
13828 | cat conftest.$ac_ext >&5 | |
13829 | rm -rf conftest* | |
13830 | eval "ac_cv_func_gethostbyname=no" | |
13831 | fi | |
13832 | rm -f conftest* | |
90dd450c VZ |
13833 | fi |
13834 | ||
21d1c967 GD |
13835 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then |
13836 | echo "$ac_t""yes" 1>&6 | |
13837 | : | |
13838 | else | |
13839 | echo "$ac_t""no" 1>&6 | |
13840 | fi | |
90dd450c | 13841 | |
21d1c967 GD |
13842 | if test $ac_cv_func_gethostbyname = no; then |
13843 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 | |
321d2b14 | 13844 | echo "configure:13845: checking for gethostbyname in -lnsl" >&5 |
21d1c967 GD |
13845 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
13846 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13847 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13848 | else | |
13849 | ac_save_LIBS="$LIBS" | |
13850 | LIBS="-lnsl $LIBS" | |
13851 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 13852 | #line 13853 "configure" |
21d1c967 GD |
13853 | #include "confdefs.h" |
13854 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13855 | /* We use char because int might match the return type of a gcc2 | |
13856 | builtin and then its argument prototype would still apply. */ | |
13857 | char gethostbyname(); | |
90dd450c | 13858 | |
21d1c967 GD |
13859 | int main() { |
13860 | gethostbyname() | |
13861 | ; return 0; } | |
13862 | EOF | |
321d2b14 | 13863 | if { (eval echo configure:13864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
21d1c967 GD |
13864 | rm -rf conftest* |
13865 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13866 | else | |
13867 | echo "configure: failed program was:" >&5 | |
13868 | cat conftest.$ac_ext >&5 | |
13869 | rm -rf conftest* | |
13870 | eval "ac_cv_lib_$ac_lib_var=no" | |
1f8ae82f | 13871 | fi |
21d1c967 GD |
13872 | rm -f conftest* |
13873 | LIBS="$ac_save_LIBS" | |
f0c87536 | 13874 | |
21d1c967 GD |
13875 | fi |
13876 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13877 | echo "$ac_t""yes" 1>&6 | |
13878 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
13879 | else | |
13880 | echo "$ac_t""no" 1>&6 | |
13881 | fi | |
90dd450c | 13882 | |
90dd450c VZ |
13883 | fi |
13884 | ||
21d1c967 GD |
13885 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
13886 | # socket/setsockopt and other routines are undefined under SCO ODT | |
13887 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
13888 | # on later versions), says simon@lia.di.epfl.ch: it contains | |
13889 | # gethostby* variants that don't use the nameserver (or something). | |
13890 | # -lsocket must be given before -lnsl if both are needed. | |
13891 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
13892 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
321d2b14 | 13893 | echo "configure:13894: checking for connect" >&5 |
21d1c967 GD |
13894 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
13895 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13896 | else | |
13897 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 13898 | #line 13899 "configure" |
21d1c967 GD |
13899 | #include "confdefs.h" |
13900 | /* System header to define __stub macros and hopefully few prototypes, | |
13901 | which can conflict with char connect(); below. */ | |
13902 | #include <assert.h> | |
13903 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13904 | /* We use char because int might match the return type of a gcc2 | |
13905 | builtin and then its argument prototype would still apply. */ | |
13906 | char connect(); | |
90dd450c | 13907 | |
21d1c967 | 13908 | int main() { |
90dd450c | 13909 | |
21d1c967 GD |
13910 | /* The GNU C library defines this for functions which it implements |
13911 | to always fail with ENOSYS. Some functions are actually named | |
13912 | something starting with __ and the normal name is an alias. */ | |
13913 | #if defined (__stub_connect) || defined (__stub___connect) | |
13914 | choke me | |
13915 | #else | |
13916 | connect(); | |
13917 | #endif | |
90dd450c | 13918 | |
21d1c967 GD |
13919 | ; return 0; } |
13920 | EOF | |
321d2b14 | 13921 | if { (eval echo configure:13922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
21d1c967 GD |
13922 | rm -rf conftest* |
13923 | eval "ac_cv_func_connect=yes" | |
13924 | else | |
13925 | echo "configure: failed program was:" >&5 | |
13926 | cat conftest.$ac_ext >&5 | |
13927 | rm -rf conftest* | |
13928 | eval "ac_cv_func_connect=no" | |
13929 | fi | |
13930 | rm -f conftest* | |
13931 | fi | |
90dd450c | 13932 | |
21d1c967 GD |
13933 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then |
13934 | echo "$ac_t""yes" 1>&6 | |
13935 | : | |
13936 | else | |
13937 | echo "$ac_t""no" 1>&6 | |
13938 | fi | |
1f8ae82f | 13939 | |
21d1c967 GD |
13940 | if test $ac_cv_func_connect = no; then |
13941 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 | |
321d2b14 | 13942 | echo "configure:13943: checking for connect in -lsocket" >&5 |
21d1c967 GD |
13943 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
13944 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
0fbb762e MB |
13945 | echo $ac_n "(cached) $ac_c" 1>&6 |
13946 | else | |
21d1c967 GD |
13947 | ac_save_LIBS="$LIBS" |
13948 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
13949 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 13950 | #line 13951 "configure" |
0fbb762e | 13951 | #include "confdefs.h" |
21d1c967 GD |
13952 | /* Override any gcc2 internal prototype to avoid an error. */ |
13953 | /* We use char because int might match the return type of a gcc2 | |
13954 | builtin and then its argument prototype would still apply. */ | |
13955 | char connect(); | |
90dd450c VZ |
13956 | |
13957 | int main() { | |
21d1c967 | 13958 | connect() |
90dd450c | 13959 | ; return 0; } |
0fbb762e | 13960 | EOF |
321d2b14 | 13961 | if { (eval echo configure:13962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
0fbb762e | 13962 | rm -rf conftest* |
21d1c967 | 13963 | eval "ac_cv_lib_$ac_lib_var=yes" |
0fbb762e | 13964 | else |
0fbb762e MB |
13965 | echo "configure: failed program was:" >&5 |
13966 | cat conftest.$ac_ext >&5 | |
13967 | rm -rf conftest* | |
21d1c967 | 13968 | eval "ac_cv_lib_$ac_lib_var=no" |
0fbb762e MB |
13969 | fi |
13970 | rm -f conftest* | |
21d1c967 | 13971 | LIBS="$ac_save_LIBS" |
90dd450c | 13972 | |
21d1c967 GD |
13973 | fi |
13974 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13975 | echo "$ac_t""yes" 1>&6 | |
13976 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
13977 | else | |
13978 | echo "$ac_t""no" 1>&6 | |
13979 | fi | |
90dd450c | 13980 | |
21d1c967 | 13981 | fi |
90dd450c | 13982 | |
21d1c967 GD |
13983 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
13984 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
321d2b14 | 13985 | echo "configure:13986: checking for remove" >&5 |
21d1c967 GD |
13986 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
13987 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13988 | else | |
13989 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 13990 | #line 13991 "configure" |
21d1c967 GD |
13991 | #include "confdefs.h" |
13992 | /* System header to define __stub macros and hopefully few prototypes, | |
13993 | which can conflict with char remove(); below. */ | |
13994 | #include <assert.h> | |
13995 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13996 | /* We use char because int might match the return type of a gcc2 | |
13997 | builtin and then its argument prototype would still apply. */ | |
13998 | char remove(); | |
90dd450c | 13999 | |
21d1c967 | 14000 | int main() { |
90dd450c | 14001 | |
21d1c967 GD |
14002 | /* The GNU C library defines this for functions which it implements |
14003 | to always fail with ENOSYS. Some functions are actually named | |
14004 | something starting with __ and the normal name is an alias. */ | |
14005 | #if defined (__stub_remove) || defined (__stub___remove) | |
14006 | choke me | |
14007 | #else | |
14008 | remove(); | |
14009 | #endif | |
90dd450c | 14010 | |
21d1c967 GD |
14011 | ; return 0; } |
14012 | EOF | |
321d2b14 | 14013 | if { (eval echo configure:14014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
21d1c967 GD |
14014 | rm -rf conftest* |
14015 | eval "ac_cv_func_remove=yes" | |
14016 | else | |
14017 | echo "configure: failed program was:" >&5 | |
14018 | cat conftest.$ac_ext >&5 | |
14019 | rm -rf conftest* | |
14020 | eval "ac_cv_func_remove=no" | |
14021 | fi | |
14022 | rm -f conftest* | |
14023 | fi | |
90dd450c | 14024 | |
21d1c967 GD |
14025 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then |
14026 | echo "$ac_t""yes" 1>&6 | |
14027 | : | |
14028 | else | |
14029 | echo "$ac_t""no" 1>&6 | |
14030 | fi | |
90dd450c | 14031 | |
21d1c967 GD |
14032 | if test $ac_cv_func_remove = no; then |
14033 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 | |
321d2b14 | 14034 | echo "configure:14035: checking for remove in -lposix" >&5 |
21d1c967 GD |
14035 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
14036 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14037 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14038 | else | |
14039 | ac_save_LIBS="$LIBS" | |
14040 | LIBS="-lposix $LIBS" | |
14041 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 14042 | #line 14043 "configure" |
21d1c967 GD |
14043 | #include "confdefs.h" |
14044 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14045 | /* We use char because int might match the return type of a gcc2 | |
14046 | builtin and then its argument prototype would still apply. */ | |
14047 | char remove(); | |
90dd450c | 14048 | |
21d1c967 GD |
14049 | int main() { |
14050 | remove() | |
14051 | ; return 0; } | |
14052 | EOF | |
321d2b14 | 14053 | if { (eval echo configure:14054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
21d1c967 GD |
14054 | rm -rf conftest* |
14055 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14056 | else | |
14057 | echo "configure: failed program was:" >&5 | |
14058 | cat conftest.$ac_ext >&5 | |
14059 | rm -rf conftest* | |
14060 | eval "ac_cv_lib_$ac_lib_var=no" | |
0fbb762e | 14061 | fi |
21d1c967 GD |
14062 | rm -f conftest* |
14063 | LIBS="$ac_save_LIBS" | |
0fbb762e | 14064 | |
21d1c967 GD |
14065 | fi |
14066 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14067 | echo "$ac_t""yes" 1>&6 | |
14068 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
14069 | else | |
14070 | echo "$ac_t""no" 1>&6 | |
14071 | fi | |
19bc6aad | 14072 | |
90dd450c | 14073 | fi |
19bc6aad | 14074 | |
21d1c967 GD |
14075 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
14076 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 | |
321d2b14 | 14077 | echo "configure:14078: checking for shmat" >&5 |
21d1c967 GD |
14078 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
14079 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14080 | else | |
14081 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 14082 | #line 14083 "configure" |
21d1c967 GD |
14083 | #include "confdefs.h" |
14084 | /* System header to define __stub macros and hopefully few prototypes, | |
14085 | which can conflict with char shmat(); below. */ | |
14086 | #include <assert.h> | |
14087 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14088 | /* We use char because int might match the return type of a gcc2 | |
14089 | builtin and then its argument prototype would still apply. */ | |
14090 | char shmat(); | |
19bc6aad | 14091 | |
21d1c967 | 14092 | int main() { |
90dd450c | 14093 | |
21d1c967 GD |
14094 | /* The GNU C library defines this for functions which it implements |
14095 | to always fail with ENOSYS. Some functions are actually named | |
14096 | something starting with __ and the normal name is an alias. */ | |
14097 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
14098 | choke me | |
14099 | #else | |
14100 | shmat(); | |
14101 | #endif | |
90dd450c | 14102 | |
21d1c967 GD |
14103 | ; return 0; } |
14104 | EOF | |
321d2b14 | 14105 | if { (eval echo configure:14106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
21d1c967 GD |
14106 | rm -rf conftest* |
14107 | eval "ac_cv_func_shmat=yes" | |
90dd450c | 14108 | else |
21d1c967 GD |
14109 | echo "configure: failed program was:" >&5 |
14110 | cat conftest.$ac_ext >&5 | |
14111 | rm -rf conftest* | |
14112 | eval "ac_cv_func_shmat=no" | |
19bc6aad | 14113 | fi |
21d1c967 | 14114 | rm -f conftest* |
19bc6aad | 14115 | fi |
21d1c967 GD |
14116 | |
14117 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
14118 | echo "$ac_t""yes" 1>&6 | |
14119 | : | |
19bc6aad VZ |
14120 | else |
14121 | echo "$ac_t""no" 1>&6 | |
14122 | fi | |
19bc6aad | 14123 | |
21d1c967 GD |
14124 | if test $ac_cv_func_shmat = no; then |
14125 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 | |
321d2b14 | 14126 | echo "configure:14127: checking for shmat in -lipc" >&5 |
21d1c967 GD |
14127 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
14128 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9f8148b1 GD |
14129 | echo $ac_n "(cached) $ac_c" 1>&6 |
14130 | else | |
21d1c967 GD |
14131 | ac_save_LIBS="$LIBS" |
14132 | LIBS="-lipc $LIBS" | |
14133 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 14134 | #line 14135 "configure" |
21d1c967 GD |
14135 | #include "confdefs.h" |
14136 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14137 | /* We use char because int might match the return type of a gcc2 | |
14138 | builtin and then its argument prototype would still apply. */ | |
14139 | char shmat(); | |
14140 | ||
14141 | int main() { | |
14142 | shmat() | |
14143 | ; return 0; } | |
14144 | EOF | |
321d2b14 | 14145 | if { (eval echo configure:14146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
21d1c967 GD |
14146 | rm -rf conftest* |
14147 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9f8148b1 | 14148 | else |
21d1c967 GD |
14149 | echo "configure: failed program was:" >&5 |
14150 | cat conftest.$ac_ext >&5 | |
14151 | rm -rf conftest* | |
14152 | eval "ac_cv_lib_$ac_lib_var=no" | |
9f8148b1 | 14153 | fi |
21d1c967 GD |
14154 | rm -f conftest* |
14155 | LIBS="$ac_save_LIBS" | |
14156 | ||
9f8148b1 | 14157 | fi |
21d1c967 GD |
14158 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
14159 | echo "$ac_t""yes" 1>&6 | |
14160 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
9f8148b1 GD |
14161 | else |
14162 | echo "$ac_t""no" 1>&6 | |
14163 | fi | |
90dd450c | 14164 | |
90dd450c | 14165 | fi |
21d1c967 | 14166 | fi |
10f2d63a | 14167 | |
21d1c967 GD |
14168 | # Check for libraries that X11R6 Xt/Xaw programs need. |
14169 | ac_save_LDFLAGS="$LDFLAGS" | |
14170 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
14171 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
14172 | # check for ICE first), but we must link in the order -lSM -lICE or | |
14173 | # we get undefined symbols. So assume we have SM if we have ICE. | |
14174 | # These have to be linked with before -lX11, unlike the other | |
14175 | # libraries we check for below, so use a different variable. | |
14176 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. | |
14177 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
321d2b14 | 14178 | echo "configure:14179: checking for IceConnectionNumber in -lICE" >&5 |
21d1c967 GD |
14179 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
14180 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
29fd3c0c VS |
14181 | echo $ac_n "(cached) $ac_c" 1>&6 |
14182 | else | |
21d1c967 GD |
14183 | ac_save_LIBS="$LIBS" |
14184 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
14185 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 14186 | #line 14187 "configure" |
29fd3c0c | 14187 | #include "confdefs.h" |
21d1c967 GD |
14188 | /* Override any gcc2 internal prototype to avoid an error. */ |
14189 | /* We use char because int might match the return type of a gcc2 | |
14190 | builtin and then its argument prototype would still apply. */ | |
14191 | char IceConnectionNumber(); | |
14192 | ||
14193 | int main() { | |
14194 | IceConnectionNumber() | |
14195 | ; return 0; } | |
29fd3c0c | 14196 | EOF |
321d2b14 | 14197 | if { (eval echo configure:14198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
29fd3c0c | 14198 | rm -rf conftest* |
21d1c967 | 14199 | eval "ac_cv_lib_$ac_lib_var=yes" |
29fd3c0c | 14200 | else |
29fd3c0c VS |
14201 | echo "configure: failed program was:" >&5 |
14202 | cat conftest.$ac_ext >&5 | |
14203 | rm -rf conftest* | |
21d1c967 | 14204 | eval "ac_cv_lib_$ac_lib_var=no" |
29fd3c0c VS |
14205 | fi |
14206 | rm -f conftest* | |
21d1c967 GD |
14207 | LIBS="$ac_save_LIBS" |
14208 | ||
29fd3c0c | 14209 | fi |
21d1c967 | 14210 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
29fd3c0c | 14211 | echo "$ac_t""yes" 1>&6 |
21d1c967 | 14212 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
29fd3c0c VS |
14213 | else |
14214 | echo "$ac_t""no" 1>&6 | |
14215 | fi | |
21d1c967 GD |
14216 | |
14217 | LDFLAGS="$ac_save_LDFLAGS" | |
29fd3c0c | 14218 | |
10f2d63a VZ |
14219 | fi |
14220 | ||
21d1c967 GD |
14221 | |
14222 | if test "$no_x" = "yes"; then | |
14223 | { echo "configure: error: X11 not found" 1>&2; exit 1; } | |
14224 | fi | |
14225 | ||
14226 | GUI_TK_LIBRARY="$X_LIBS" | |
14227 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
14228 | AFMINSTALL=afminstall | |
14229 | COMPILED_X_PROGRAM=0 | |
14230 | ||
14231 | echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6 | |
321d2b14 | 14232 | echo "configure:14233: checking for Motif/Lesstif headers" >&5 |
21d1c967 GD |
14233 | |
14234 | ac_find_includes= | |
14235 | for ac_dir in $SEARCH_INCLUDE; | |
14236 | do | |
14237 | if test -f "$ac_dir/Xm/Xm.h"; then | |
14238 | ac_find_includes=$ac_dir | |
14239 | break | |
14240 | fi | |
14241 | done | |
14242 | ||
14243 | if test "$ac_find_includes" != "" ; then | |
14244 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
14245 | else | |
14246 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 14247 | #line 14248 "configure" |
10f2d63a | 14248 | #include "confdefs.h" |
21d1c967 GD |
14249 | |
14250 | #include <Xm/Xm.h> | |
14251 | ||
14252 | int main() { | |
14253 | ||
14254 | int version; | |
14255 | version = xmUseVersion; | |
14256 | ||
14257 | ; return 0; } | |
698dcdb6 | 14258 | EOF |
321d2b14 | 14259 | if { (eval echo configure:14260: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 14260 | rm -rf conftest* |
21d1c967 GD |
14261 | |
14262 | echo "$ac_t""found in default search path" 1>&6 | |
14263 | COMPILED_X_PROGRAM=1 | |
14264 | ||
10f2d63a | 14265 | else |
90dd450c VZ |
14266 | echo "configure: failed program was:" >&5 |
14267 | cat conftest.$ac_ext >&5 | |
698dcdb6 | 14268 | rm -rf conftest* |
21d1c967 GD |
14269 | |
14270 | echo "$ac_t""no" 1>&6 | |
14271 | { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; } | |
14272 | ||
14273 | ||
10f2d63a VZ |
14274 | fi |
14275 | rm -f conftest* | |
21d1c967 | 14276 | fi |
10f2d63a | 14277 | |
21d1c967 GD |
14278 | if test "$COMPILED_X_PROGRAM" = 0; then |
14279 | echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6 | |
321d2b14 | 14280 | echo "configure:14281: checking for Motif/Lesstif library" >&5 |
21d1c967 GD |
14281 | |
14282 | ac_find_libraries= | |
14283 | for ac_dir in $SEARCH_LIB; | |
14284 | do | |
14285 | for ac_extension in a so sl dylib; do | |
14286 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
14287 | ac_find_libraries=$ac_dir | |
14288 | break 2 | |
14289 | fi | |
14290 | done | |
14291 | done | |
14292 | ||
14293 | if test "$ac_find_libraries" != "" ; then | |
14294 | ||
14295 | ac_path_to_include=$ac_find_includes | |
14296 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
14297 | result=$? | |
14298 | if test $result = 0; then | |
14299 | ac_path_to_include="" | |
14300 | else | |
14301 | ac_path_to_include=" -I$ac_find_includes" | |
14302 | fi | |
14303 | ||
14304 | ||
14305 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
14306 | result=$? | |
14307 | if test $result = 0; then | |
14308 | ac_path_to_link="" | |
14309 | else | |
14310 | ac_path_to_link=" -L$ac_find_libraries" | |
14311 | fi | |
14312 | ||
14313 | ||
14314 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
14315 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" | |
14316 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
14317 | else | |
14318 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 14319 | #line 14320 "configure" |
d836ee96 | 14320 | #include "confdefs.h" |
21d1c967 GD |
14321 | |
14322 | #include <Xm/Xm.h> | |
14323 | ||
14324 | int main() { | |
14325 | ||
14326 | int version; | |
14327 | version = xmUseVersion; | |
14328 | ||
14329 | ; return 0; } | |
d836ee96 | 14330 | EOF |
321d2b14 | 14331 | if { (eval echo configure:14332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
d836ee96 | 14332 | rm -rf conftest* |
21d1c967 GD |
14333 | |
14334 | echo "$ac_t""found in default search path" 1>&6 | |
14335 | COMPILED_X_PROGRAM=1 | |
14336 | ||
d836ee96 VZ |
14337 | else |
14338 | echo "configure: failed program was:" >&5 | |
14339 | cat conftest.$ac_ext >&5 | |
14340 | rm -rf conftest* | |
21d1c967 GD |
14341 | |
14342 | echo "$ac_t""no" 1>&6 | |
14343 | { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; } | |
14344 | ||
14345 | ||
d836ee96 VZ |
14346 | fi |
14347 | rm -f conftest* | |
21d1c967 GD |
14348 | fi |
14349 | fi | |
14350 | ||
14351 | xpm_link= | |
14352 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
321d2b14 | 14353 | echo "configure:14354: checking for Xpm library" >&5 |
21d1c967 GD |
14354 | |
14355 | ac_find_libraries= | |
14356 | for ac_dir in $SEARCH_LIB; | |
14357 | do | |
14358 | for ac_extension in a so sl dylib; do | |
14359 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
14360 | ac_find_libraries=$ac_dir | |
14361 | break 2 | |
14362 | fi | |
14363 | done | |
14364 | done | |
14365 | ||
14366 | if test "$ac_find_libraries" != "" ; then | |
14367 | ||
14368 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
14369 | result=$? | |
14370 | if test $result = 0; then | |
14371 | ac_path_to_link="" | |
14372 | else | |
14373 | ac_path_to_link=" -L$ac_find_libraries" | |
14374 | fi | |
14375 | ||
14376 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
14377 | xpm_link=" -lXpm" | |
14378 | cat >> confdefs.h <<\EOF | |
14379 | #define wxHAVE_LIB_XPM 1 | |
d836ee96 | 14380 | EOF |
90dd450c | 14381 | |
21d1c967 GD |
14382 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
14383 | else | |
14384 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 14385 | #line 14386 "configure" |
d836ee96 | 14386 | #include "confdefs.h" |
21d1c967 GD |
14387 | |
14388 | #include <X11/xpm.h> | |
14389 | ||
14390 | int main() { | |
14391 | ||
14392 | int version; | |
14393 | version = XpmLibraryVersion(); | |
14394 | ||
14395 | ; return 0; } | |
d836ee96 | 14396 | EOF |
321d2b14 | 14397 | if { (eval echo configure:14398: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
d836ee96 | 14398 | rm -rf conftest* |
21d1c967 GD |
14399 | |
14400 | xpm_link=" -lXpm" | |
14401 | cat >> confdefs.h <<\EOF | |
14402 | #define wxHAVE_LIB_XPM 1 | |
14403 | EOF | |
14404 | ||
14405 | echo "$ac_t""found in default search path" 1>&6 | |
14406 | COMPILED_X_PROGRAM=0 | |
14407 | ||
d836ee96 VZ |
14408 | else |
14409 | echo "configure: failed program was:" >&5 | |
14410 | cat conftest.$ac_ext >&5 | |
14411 | rm -rf conftest* | |
21d1c967 GD |
14412 | |
14413 | echo "$ac_t""no" 1>&6 | |
14414 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
14415 | ||
14416 | ||
d836ee96 VZ |
14417 | fi |
14418 | rm -f conftest* | |
21d1c967 GD |
14419 | fi |
14420 | ||
14421 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link -lXmu -lXext -lXt -lX11" | |
14422 | TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo" | |
14423 | TOOLKIT=MOTIF | |
14424 | GUIDIST=MOTIF_DIST | |
14425 | fi | |
14426 | ||
14427 | if test "$wxUSE_MAC" = 1; then | |
14428 | if test "$wxUSE_PRECOMP" = "yes"; then | |
14429 | CPPFLAGS="$CPPFLAGS -cpp-precomp" | |
14430 | else | |
14431 | CPPFLAGS="$CPPFLAGS -no-cpp-precomp" | |
14432 | fi | |
14433 | CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile" | |
14434 | CFLAGS="$CFLAGS -fpascal-strings" | |
14435 | CXXFLAGS="$CXXFLAGS -fpascal-strings" | |
14436 | ||
14437 | TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile" | |
14438 | TOOLKIT=MAC | |
14439 | GUIDIST=MACX_DIST | |
14440 | fi | |
14441 | ||
14442 | if test "$wxUSE_PM" = 1; then | |
14443 | TOOLKIT=PM | |
14444 | GUIDIST=GTK_DIST | |
14445 | fi | |
14446 | ||
14447 | if test "$TOOLKIT" = "PM" ; then | |
14448 | TOOLKIT_DIR="os2" | |
14449 | else | |
14450 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
14451 | fi | |
14452 | ||
14453 | PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst" | |
14454 | ||
14455 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
14456 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
14457 | ||
14458 | ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}" | |
14459 | ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}" | |
14460 | ||
14461 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" | |
14462 | if test "$wxUSE_X11" = 1; then | |
14463 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes" | |
14464 | else | |
14465 | TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}" | |
14466 | fi | |
14467 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" | |
14468 | WIDGET_SET=univ | |
14469 | else | |
14470 | ALL_OBJECTS="\$(GUIOBJS)" | |
14471 | ALL_SOURCES="\$(ALL_SOURCES)" | |
14472 | ALL_HEADERS="\$(ALL_HEADERS)" | |
14473 | fi | |
14474 | ||
14475 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" | |
14476 | ||
14477 | if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then | |
14478 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" | |
14479 | fi | |
14480 | ||
14481 | if test "$wxUSE_HTML" = "yes"; then | |
14482 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
14483 | fi | |
14484 | ||
14485 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
14486 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" | |
14487 | fi | |
14488 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
14489 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
14490 | fi | |
14491 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
14492 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
14493 | fi | |
14494 | ||
14495 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
14496 | DISTDIR="wx\$(TOOLKIT)" | |
90dd450c | 14497 | else |
21d1c967 GD |
14498 | USE_GUI=0 |
14499 | ||
14500 | TOOLKIT_DIR="base" | |
14501 | ||
14502 | if test "$USE_WIN32" = 1 ; then | |
14503 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}" | |
14504 | TOOLKIT_VPATH="\${top_srcdir}/src/msw" | |
14505 | ||
14506 | TOOLKIT="MSW" | |
14507 | else | |
14508 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}" | |
14509 | TOOLKIT_VPATH="\${top_srcdir}/src/unix" | |
14510 | fi | |
14511 | ||
14512 | ALL_SOURCES="\$(ALL_SOURCES)" | |
14513 | ALL_HEADERS="\$(ALL_HEADERS)" | |
14514 | ||
14515 | PORT_FILES="\${top_srcdir}/src/files.lst" | |
14516 | ||
14517 | GUIDIST="BASE_DIST" | |
14518 | DISTDIR="wxBase" | |
d836ee96 VZ |
14519 | fi |
14520 | ||
21d1c967 GD |
14521 | |
14522 | if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then | |
14523 | ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)" | |
6232543b | 14524 | fi |
21d1c967 GD |
14525 | |
14526 | if test "$wxUSE_REGEX" = "builtin" ; then | |
14527 | ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)" | |
1e487827 | 14528 | fi |
21d1c967 GD |
14529 | if test "$wxUSE_ZLIB" = "builtin" ; then |
14530 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
bd3277fe VZ |
14531 | fi |
14532 | ||
698dcdb6 | 14533 | |
21d1c967 GD |
14534 | if test "$wxUSE_OPENGL" = "yes"; then |
14535 | if test "$wxUSE_MAC" = 1; then | |
14536 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
14537 | elif test "$wxUSE_MSW" = 1; then | |
14538 | OPENGL_LIBS="-lopengl32 -lglu32" | |
14539 | else | |
14540 | ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'` | |
14541 | echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6 | |
321d2b14 | 14542 | echo "configure:14543: checking for GL/gl.h" >&5 |
90dd450c | 14543 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
698dcdb6 | 14544 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 14545 | else |
698dcdb6 | 14546 | cat > conftest.$ac_ext <<EOF |
321d2b14 | 14547 | #line 14548 "configure" |
10f2d63a | 14548 | #include "confdefs.h" |
21d1c967 | 14549 | #include <GL/gl.h> |
698dcdb6 | 14550 | EOF |
90dd450c | 14551 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
321d2b14 | 14552 | { (eval echo configure:14553: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
90dd450c VZ |
14553 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14554 | if test -z "$ac_err"; then | |
4f14bcd8 | 14555 | rm -rf conftest* |
90dd450c | 14556 | eval "ac_cv_header_$ac_safe=yes" |
698dcdb6 | 14557 | else |
90dd450c | 14558 | echo "$ac_err" >&5 |
698dcdb6 VZ |
14559 | echo "configure: failed program was:" >&5 |
14560 | cat conftest.$ac_ext >&5 | |
4f14bcd8 | 14561 | rm -rf conftest* |
90dd450c | 14562 | eval "ac_cv_header_$ac_safe=no" |
703e0a69 | 14563 | fi |
4f14bcd8 | 14564 | rm -f conftest* |
698dcdb6 | 14565 | fi |
90dd450c VZ |
14566 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
14567 | echo "$ac_t""yes" 1>&6 | |
21d1c967 GD |
14568 | |
14569 | echo $ac_n "checking for -lGL""... $ac_c" 1>&6 | |
321d2b14 | 14570 | echo "configure:14571: checking for -lGL" >&5 |
21d1c967 GD |
14571 | |
14572 | ac_find_libraries= | |
14573 | for ac_dir in $SEARCH_LIB; | |
14574 | do | |
14575 | for ac_extension in a so sl dylib; do | |
14576 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
14577 | ac_find_libraries=$ac_dir | |
14578 | break 2 | |
14579 | fi | |
14580 | done | |
14581 | done | |
14582 | ||
14583 | if test "$ac_find_libraries" != "" ; then | |
14584 | ||
14585 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
14586 | result=$? | |
14587 | if test $result = 0; then | |
14588 | ac_path_to_link="" | |
14589 | else | |
14590 | ac_path_to_link=" -L$ac_find_libraries" | |
14591 | fi | |
14592 | ||
14593 | if test "$ac_path_to_link" = " -L/usr/lib" ; then | |
14594 | LDFLAGS_GL="$LDFLAGS" | |
14595 | else | |
14596 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
14597 | fi | |
14598 | OPENGL_LIBS="-lGL -lGLU" | |
14599 | echo "$ac_t""yes" 1>&6 | |
14600 | else | |
14601 | echo "$ac_t""no" 1>&6 | |
14602 | echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6 | |
321d2b14 | 14603 | echo "configure:14604: checking for -lMesaGL" >&5 |
21d1c967 GD |
14604 | |
14605 | ac_find_libraries= | |
14606 | for ac_dir in $SEARCH_LIB; | |
14607 | do | |
14608 | for ac_extension in a so sl dylib; do | |
14609 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
14610 | ac_find_libraries=$ac_dir | |
14611 | break 2 | |
14612 | fi | |
14613 | done | |
14614 | done | |
14615 | ||
14616 | if test "$ac_find_libraries" != "" ; then | |
14617 | ||
14618 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
14619 | result=$? | |
14620 | if test $result = 0; then | |
14621 | ac_path_to_link="" | |
14622 | else | |
14623 | ac_path_to_link=" -L$ac_find_libraries" | |
14624 | fi | |
14625 | ||
14626 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
14627 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
14628 | echo "$ac_t""yes" 1>&6 | |
14629 | else | |
14630 | echo "$ac_t""no" 1>&6 | |
14631 | fi | |
14632 | fi | |
14633 | ||
90dd450c VZ |
14634 | else |
14635 | echo "$ac_t""no" 1>&6 | |
14636 | fi | |
698dcdb6 VZ |
14637 | |
14638 | ||
21d1c967 GD |
14639 | if test "x$OPENGL_LIBS" = "x"; then |
14640 | { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; } | |
14641 | fi | |
14642 | fi | |
90dd450c | 14643 | |
21d1c967 GD |
14644 | if test "$wxUSE_OPENGL" = "yes"; then |
14645 | cat >> confdefs.h <<\EOF | |
14646 | #define wxUSE_OPENGL 1 | |
698dcdb6 | 14647 | EOF |
21d1c967 GD |
14648 | |
14649 | cat >> confdefs.h <<\EOF | |
14650 | #define wxUSE_GLCANVAS 1 | |
14651 | EOF | |
14652 | ||
14653 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl" | |
14654 | fi | |
10f2d63a | 14655 | fi |
21d1c967 GD |
14656 | |
14657 | if test -z "$TOOLKIT_VPATH" ; then | |
14658 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" | |
10f2d63a | 14659 | fi |
21d1c967 GD |
14660 | |
14661 | if test -n "$TOOLKIT" ; then | |
14662 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
14663 | fi | |
14664 | ||
14665 | lib_unicode_suffix= | |
14666 | if test "$wxUSE_UNICODE" = "yes"; then | |
14667 | lib_unicode_suffix=u | |
90dd450c | 14668 | fi |
698dcdb6 | 14669 | |
21d1c967 GD |
14670 | lib_debug_suffix= |
14671 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
14672 | lib_debug_suffix=d | |
14673 | fi | |
698dcdb6 | 14674 | |
21d1c967 GD |
14675 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}" |
14676 | TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}" | |
14677 | ||
14678 | if test "$cross_compiling" = "yes"; then | |
14679 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}" | |
14680 | TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}" | |
14681 | fi | |
14682 | ||
14683 | WX_LIBRARY="wx_${TOOLCHAIN_NAME}" | |
14684 | WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}" | |
14685 | ||
14686 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
14687 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
14688 | ||
14689 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}" | |
14690 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
14691 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}" | |
14692 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
14693 | ||
14694 | case "${host}" in | |
14695 | *-*-cygwin* | *-*-mingw32* ) | |
14696 | ||
14697 | ||
14698 | ||
14699 | if test "$cross_compiling" != "yes"; then | |
14700 | WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" | |
14701 | WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" | |
14702 | WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}" | |
14703 | WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
14704 | else | |
14705 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
14706 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
14707 | fi | |
14708 | ;; | |
14709 | ||
14710 | *-*-darwin* ) | |
14711 | if test "$wxUSE_MAC" = 1; then | |
14712 | WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.r" | |
14713 | WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.rsrc" | |
14714 | fi | |
14715 | ;; | |
14716 | esac | |
14717 | ||
14718 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
14719 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a" | |
14720 | ||
14721 | WXCONFIG_LIBS="-l${WX_LIBRARY}" | |
14722 | WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a" | |
14723 | ||
14724 | if test "$wxUSE_OPENGL" = "yes"; then | |
14725 | WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}" | |
14726 | WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}" | |
14727 | fi | |
14728 | ||
14729 | ||
14730 | ||
14731 | if test "$wxUSE_SHARED" = "yes"; then | |
14732 | case "${host}" in | |
14733 | *-pc-os2_emx | *-pc-os2-emx | \ | |
14734 | *-pc-msdosdjgpp ) | |
14735 | wxUSE_SHARED=no | |
14736 | echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2 | |
14737 | ;; | |
14738 | esac | |
14739 | fi | |
14740 | ||
14741 | if test "$wxUSE_SHARED" = "yes"; then | |
14742 | ||
14743 | if test "$wxUSE_OPENGL" = "yes"; then | |
14744 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
14745 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}" | |
14746 | else | |
14747 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
14748 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}" | |
14749 | fi | |
14750 | ||
14751 | if test "$GCC" = "yes"; then | |
14752 | PIC_FLAG="-fPIC" | |
14753 | fi | |
14754 | ||
14755 | SHARED_LD="${CXX} -shared -o" | |
14756 | ||
14757 | case "${host}" in | |
14758 | *-hp-hpux* ) | |
14759 | if test "$GCC" == "yes"; then | |
14760 | SHARED_LD="${SHARED_LD} ${PIC_FLAG}" | |
14761 | else | |
14762 | LDFLAGS="$LDFLAGS -L/usr/lib" | |
14763 | ||
14764 | SHARED_LD="${CXX} -b -o" | |
14765 | PIC_FLAG="+Z" | |
14766 | fi | |
14767 | ||
14768 | if test "$wxUSE_OPENGL" = "yes"; then | |
14769 | WX_ALL_INSTALLED="preinstall_gl" | |
14770 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" | |
14771 | else | |
14772 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" | |
14773 | fi | |
14774 | ;; | |
14775 | ||
14776 | *-*-linux* ) | |
14777 | if test "$GCC" != "yes"; then | |
14778 | echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6 | |
321d2b14 | 14779 | echo "configure:14780: checking for Intel compiler" >&5 |
21d1c967 | 14780 | if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then |
698dcdb6 | 14781 | echo $ac_n "(cached) $ac_c" 1>&6 |
698dcdb6 | 14782 | else |
21d1c967 GD |
14783 | |
14784 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 14785 | #line 14786 "configure" |
698dcdb6 | 14786 | #include "confdefs.h" |
90dd450c VZ |
14787 | |
14788 | int main() { | |
14789 | ||
21d1c967 GD |
14790 | #ifndef __INTEL_COMPILER |
14791 | #error Not icc | |
14792 | #endif | |
14793 | ||
90dd450c | 14794 | ; return 0; } |
698dcdb6 | 14795 | EOF |
321d2b14 | 14796 | if { (eval echo configure:14797: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
90dd450c | 14797 | rm -rf conftest* |
21d1c967 | 14798 | wx_cv_prog_icc=yes |
6232543b | 14799 | else |
698dcdb6 VZ |
14800 | echo "configure: failed program was:" >&5 |
14801 | cat conftest.$ac_ext >&5 | |
90dd450c | 14802 | rm -rf conftest* |
21d1c967 GD |
14803 | wx_cv_prog_icc=no |
14804 | ||
6232543b | 14805 | fi |
90dd450c | 14806 | rm -f conftest* |
21d1c967 | 14807 | |
698dcdb6 VZ |
14808 | fi |
14809 | ||
21d1c967 GD |
14810 | echo "$ac_t""$wx_cv_prog_icc" 1>&6 |
14811 | if test "$wx_cv_prog_icc" = "yes"; then | |
14812 | PIC_FLAG="-KPIC" | |
14813 | fi | |
14814 | fi | |
14815 | ||
14816 | if test "$wxUSE_SONAME" = "yes" ; then | |
14817 | SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}" | |
14818 | SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}" | |
14819 | WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)" | |
14820 | fi | |
14821 | ;; | |
14822 | ||
14823 | *-*-solaris2* ) | |
14824 | if test "$GCC" = yes ; then | |
14825 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
14826 | else | |
14827 | SHARED_LD="${CXX} -G -o" | |
14828 | PIC_FLAG="-KPIC" | |
14829 | SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}" | |
14830 | SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}" | |
14831 | fi | |
14832 | ;; | |
14833 | ||
14834 | *-*-darwin* ) | |
14835 | CFLAGS="$CFLAGS -fno-common -DWXMAKINGDLL" | |
14836 | CXXFLAGS="$CXXFLAGS -fno-common -DWXMAKINGDLL" | |
14837 | SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o" | |
14838 | PIC_FLAG="-dynamic -fPIC" | |
14839 | SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION}" | |
14840 | SONAME_FLAGS_GL=${SONAME_FLAGS} | |
14841 | ;; | |
14842 | ||
14843 | *-*-aix* ) | |
321d2b14 VZ |
14844 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. |
14845 | set dummy makeC++SharedLib; ac_word=$2 | |
14846 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
14847 | echo "configure:14848: checking for $ac_word" >&5 | |
14848 | if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then | |
14849 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14850 | else | |
14851 | if test -n "$AIX_CXX_LD"; then | |
14852 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
14853 | else | |
14854 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
14855 | ac_dummy="$PATH" | |
14856 | for ac_dir in $ac_dummy; do | |
14857 | test -z "$ac_dir" && ac_dir=. | |
14858 | if test -f $ac_dir/$ac_word; then | |
14859 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
14860 | break | |
14861 | fi | |
14862 | done | |
14863 | IFS="$ac_save_ifs" | |
14864 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" | |
14865 | fi | |
14866 | fi | |
14867 | AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD" | |
14868 | if test -n "$AIX_CXX_LD"; then | |
14869 | echo "$ac_t""$AIX_CXX_LD" 1>&6 | |
14870 | else | |
14871 | echo "$ac_t""no" 1>&6 | |
14872 | fi | |
14873 | ||
14874 | ||
14875 | SHARED_LD="$(AIX_CXX_LD) -p 0 -o" | |
21d1c967 GD |
14876 | ;; |
14877 | ||
14878 | *-*-cygwin* | *-*-mingw32* ) | |
14879 | ||
14880 | WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a" | |
14881 | ||
14882 | SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o" | |
14883 | TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1" | |
14884 | ||
14885 | PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1" | |
14886 | ||
14887 | if test "$wxUSE_OPENGL" = "yes"; then | |
14888 | WX_ALL_INSTALLED="preinstall_gl" | |
14889 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" | |
14890 | else | |
14891 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" | |
14892 | fi | |
14893 | ;; | |
14894 | ||
14895 | *-*-beos* ) | |
14896 | SHARED_LD="${LD} -shared -o" | |
14897 | ;; | |
14898 | ||
14899 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ | |
14900 | *-*-sunos4* | \ | |
14901 | *-*-irix5* | *-*-irix6* | \ | |
14902 | *-*-osf* | \ | |
14903 | *-*-dgux5* | \ | |
14904 | *-*-sysv5* ) | |
14905 | ;; | |
14906 | ||
14907 | *) | |
14908 | { echo "configure: error: unknown system type $host." 1>&2; exit 1; } | |
14909 | esac | |
14910 | ||
14911 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
14912 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
14913 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" | |
14914 | fi | |
14915 | ||
14916 | WX_TARGET_LIBRARY_TYPE="so" | |
14917 | INSTALL_LIBRARY='$(INSTALL_PROGRAM)' | |
90dd450c | 14918 | fi |
10f2d63a | 14919 | |
21d1c967 GD |
14920 | if test "$wxUSE_SHARED" = "no"; then |
14921 | ||
14922 | if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then | |
14923 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
14924 | fi | |
14925 | ||
14926 | if test "$wxUSE_MAC" = 1; then | |
14927 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
14928 | fi | |
14929 | ||
14930 | if test "$wxUSE_OPENGL" = "yes"; then | |
14931 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl" | |
14932 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}" | |
14933 | else | |
14934 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}" | |
14935 | fi | |
14936 | ||
14937 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
14938 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" | |
14939 | ||
14940 | WX_TARGET_LIBRARY_TYPE="a" | |
14941 | INSTALL_LIBRARY='$(INSTALL_DATA)' | |
90dd450c | 14942 | fi |
1e487827 | 14943 | |
21d1c967 GD |
14944 | if test "$wxUSE_MAC" = 1; then |
14945 | LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}" | |
14946 | WX_ALL="${WX_ALL} ${LIBWXMACRES}" | |
14947 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res" | |
14948 | # Extract the first word of "Rez", so it can be a program name with args. | |
14949 | set dummy Rez; ac_word=$2 | |
14950 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
321d2b14 | 14951 | echo "configure:14952: checking for $ac_word" >&5 |
21d1c967 | 14952 | if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then |
698dcdb6 | 14953 | echo $ac_n "(cached) $ac_c" 1>&6 |
b93d0d08 | 14954 | else |
21d1c967 GD |
14955 | if test -n "$RESCOMP"; then |
14956 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
b93d0d08 | 14957 | else |
21d1c967 GD |
14958 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
14959 | ac_dummy="$PATH" | |
14960 | for ac_dir in $ac_dummy; do | |
14961 | test -z "$ac_dir" && ac_dir=. | |
14962 | if test -f $ac_dir/$ac_word; then | |
14963 | ac_cv_prog_RESCOMP="Rez" | |
14964 | break | |
14965 | fi | |
14966 | done | |
14967 | IFS="$ac_save_ifs" | |
14968 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
b93d0d08 | 14969 | fi |
b93d0d08 | 14970 | fi |
21d1c967 GD |
14971 | RESCOMP="$ac_cv_prog_RESCOMP" |
14972 | if test -n "$RESCOMP"; then | |
14973 | echo "$ac_t""$RESCOMP" 1>&6 | |
90dd450c VZ |
14974 | else |
14975 | echo "$ac_t""no" 1>&6 | |
14976 | fi | |
b93d0d08 | 14977 | |
21d1c967 GD |
14978 | # Extract the first word of "DeRez", so it can be a program name with args. |
14979 | set dummy DeRez; ac_word=$2 | |
14980 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
321d2b14 | 14981 | echo "configure:14982: checking for $ac_word" >&5 |
21d1c967 | 14982 | if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then |
698dcdb6 | 14983 | echo $ac_n "(cached) $ac_c" 1>&6 |
3a922bb4 | 14984 | else |
21d1c967 GD |
14985 | if test -n "$DEREZ"; then |
14986 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
4f14bcd8 | 14987 | else |
21d1c967 GD |
14988 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
14989 | ac_dummy="$PATH" | |
14990 | for ac_dir in $ac_dummy; do | |
14991 | test -z "$ac_dir" && ac_dir=. | |
14992 | if test -f $ac_dir/$ac_word; then | |
14993 | ac_cv_prog_DEREZ="DeRez" | |
14994 | break | |
14995 | fi | |
14996 | done | |
14997 | IFS="$ac_save_ifs" | |
14998 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" | |
3a922bb4 | 14999 | fi |
90dd450c | 15000 | fi |
21d1c967 GD |
15001 | DEREZ="$ac_cv_prog_DEREZ" |
15002 | if test -n "$DEREZ"; then | |
15003 | echo "$ac_t""$DEREZ" 1>&6 | |
90dd450c VZ |
15004 | else |
15005 | echo "$ac_t""no" 1>&6 | |
3a922bb4 | 15006 | fi |
698dcdb6 | 15007 | |
21d1c967 GD |
15008 | MACOSX_BUNDLE="bundle" |
15009 | if test "$wxUSE_SHARED" = "yes"; then | |
15010 | LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r -o \$(BIN_PROGRAM)" | |
15011 | LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r -o" | |
15012 | else | |
15013 | LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r ${LIBWXMACRES} -o \$(BIN_PROGRAM)" | |
15014 | LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r \${prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" | |
15015 | fi | |
15016 | else | |
15017 | if test "$wxUSE_PM" = 1; then | |
15018 | LIBWXMACRESCOMP="emxbind -ep \$(BIN_PROGRAM)" | |
90dd450c | 15019 | fi |
4f14bcd8 | 15020 | fi |
10f2d63a | 15021 | |
703e0a69 | 15022 | |
90dd450c | 15023 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
321d2b14 | 15024 | echo "configure:15025: checking for ANSI C header files" >&5 |
90dd450c | 15025 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
698dcdb6 VZ |
15026 | echo $ac_n "(cached) $ac_c" 1>&6 |
15027 | else | |
15028 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 15029 | #line 15030 "configure" |
10f2d63a | 15030 | #include "confdefs.h" |
90dd450c VZ |
15031 | #include <stdlib.h> |
15032 | #include <stdarg.h> | |
15033 | #include <string.h> | |
15034 | #include <float.h> | |
698dcdb6 | 15035 | EOF |
90dd450c | 15036 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
321d2b14 | 15037 | { (eval echo configure:15038: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
90dd450c VZ |
15038 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15039 | if test -z "$ac_err"; then | |
15040 | rm -rf conftest* | |
15041 | ac_cv_header_stdc=yes | |
10f2d63a | 15042 | else |
90dd450c | 15043 | echo "$ac_err" >&5 |
698dcdb6 | 15044 | echo "configure: failed program was:" >&5 |
10f2d63a | 15045 | cat conftest.$ac_ext >&5 |
90dd450c VZ |
15046 | rm -rf conftest* |
15047 | ac_cv_header_stdc=no | |
10f2d63a | 15048 | fi |
90dd450c VZ |
15049 | rm -f conftest* |
15050 | ||
15051 | if test $ac_cv_header_stdc = yes; then | |
15052 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
15053 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 15054 | #line 15055 "configure" |
90dd450c VZ |
15055 | #include "confdefs.h" |
15056 | #include <string.h> | |
15057 | EOF | |
15058 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15059 | egrep "memchr" >/dev/null 2>&1; then | |
15060 | : | |
15061 | else | |
15062 | rm -rf conftest* | |
15063 | ac_cv_header_stdc=no | |
10f2d63a | 15064 | fi |
90dd450c | 15065 | rm -f conftest* |
10f2d63a | 15066 | |
4f14bcd8 | 15067 | fi |
90dd450c VZ |
15068 | |
15069 | if test $ac_cv_header_stdc = yes; then | |
15070 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
15071 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 15072 | #line 15073 "configure" |
90dd450c VZ |
15073 | #include "confdefs.h" |
15074 | #include <stdlib.h> | |
10f2d63a | 15075 | EOF |
90dd450c VZ |
15076 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
15077 | egrep "free" >/dev/null 2>&1; then | |
15078 | : | |
15079 | else | |
15080 | rm -rf conftest* | |
15081 | ac_cv_header_stdc=no | |
15082 | fi | |
15083 | rm -f conftest* | |
10f2d63a | 15084 | |
90dd450c | 15085 | fi |
698dcdb6 | 15086 | |
90dd450c VZ |
15087 | if test $ac_cv_header_stdc = yes; then |
15088 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
15089 | if test "$cross_compiling" = yes; then | |
15090 | : | |
4f14bcd8 GD |
15091 | else |
15092 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 15093 | #line 15094 "configure" |
10f2d63a | 15094 | #include "confdefs.h" |
90dd450c VZ |
15095 | #include <ctype.h> |
15096 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
15097 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
15098 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
15099 | int main () { int i; for (i = 0; i < 256; i++) | |
15100 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
15101 | exit (0); } | |
15102 | ||
698dcdb6 | 15103 | EOF |
321d2b14 | 15104 | if { (eval echo configure:15105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 | 15105 | then |
90dd450c | 15106 | : |
10f2d63a | 15107 | else |
698dcdb6 VZ |
15108 | echo "configure: failed program was:" >&5 |
15109 | cat conftest.$ac_ext >&5 | |
4f14bcd8 | 15110 | rm -fr conftest* |
90dd450c | 15111 | ac_cv_header_stdc=no |
10f2d63a | 15112 | fi |
4f14bcd8 | 15113 | rm -fr conftest* |
10f2d63a | 15114 | fi |
698dcdb6 | 15115 | |
4f14bcd8 | 15116 | fi |
90dd450c | 15117 | fi |
10f2d63a | 15118 | |
90dd450c VZ |
15119 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
15120 | if test $ac_cv_header_stdc = yes; then | |
15121 | cat >> confdefs.h <<\EOF | |
15122 | #define STDC_HEADERS 1 | |
15123 | EOF | |
698dcdb6 | 15124 | |
90dd450c | 15125 | fi |
9d353d4a | 15126 | |
90dd450c | 15127 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
321d2b14 | 15128 | echo "configure:15129: checking for mode_t" >&5 |
90dd450c | 15129 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
9d353d4a | 15130 | echo $ac_n "(cached) $ac_c" 1>&6 |
9d353d4a RR |
15131 | else |
15132 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 15133 | #line 15134 "configure" |
9d353d4a | 15134 | #include "confdefs.h" |
90dd450c VZ |
15135 | #include <sys/types.h> |
15136 | #if STDC_HEADERS | |
15137 | #include <stdlib.h> | |
15138 | #include <stddef.h> | |
15139 | #endif | |
9d353d4a | 15140 | EOF |
90dd450c VZ |
15141 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
15142 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
15143 | rm -rf conftest* | |
15144 | ac_cv_type_mode_t=yes | |
9d353d4a | 15145 | else |
90dd450c VZ |
15146 | rm -rf conftest* |
15147 | ac_cv_type_mode_t=no | |
9d353d4a | 15148 | fi |
90dd450c | 15149 | rm -f conftest* |
9d353d4a RR |
15150 | |
15151 | fi | |
90dd450c VZ |
15152 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 |
15153 | if test $ac_cv_type_mode_t = no; then | |
15154 | cat >> confdefs.h <<\EOF | |
15155 | #define mode_t int | |
9d353d4a RR |
15156 | EOF |
15157 | ||
90dd450c | 15158 | fi |
9d353d4a | 15159 | |
90dd450c | 15160 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 |
321d2b14 | 15161 | echo "configure:15162: checking for off_t" >&5 |
90dd450c | 15162 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
698dcdb6 | 15163 | echo $ac_n "(cached) $ac_c" 1>&6 |
4f14bcd8 GD |
15164 | else |
15165 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 15166 | #line 15167 "configure" |
10f2d63a | 15167 | #include "confdefs.h" |
90dd450c VZ |
15168 | #include <sys/types.h> |
15169 | #if STDC_HEADERS | |
15170 | #include <stdlib.h> | |
15171 | #include <stddef.h> | |
15172 | #endif | |
698dcdb6 | 15173 | EOF |
90dd450c VZ |
15174 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
15175 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
15176 | rm -rf conftest* | |
15177 | ac_cv_type_off_t=yes | |
698dcdb6 | 15178 | else |
90dd450c VZ |
15179 | rm -rf conftest* |
15180 | ac_cv_type_off_t=no | |
698dcdb6 | 15181 | fi |
90dd450c | 15182 | rm -f conftest* |
698dcdb6 VZ |
15183 | |
15184 | fi | |
90dd450c VZ |
15185 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 |
15186 | if test $ac_cv_type_off_t = no; then | |
15187 | cat >> confdefs.h <<\EOF | |
15188 | #define off_t long | |
10f2d63a VZ |
15189 | EOF |
15190 | ||
90dd450c | 15191 | fi |
10f2d63a | 15192 | |
90dd450c | 15193 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
321d2b14 | 15194 | echo "configure:15195: checking for pid_t" >&5 |
90dd450c | 15195 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
698dcdb6 | 15196 | echo $ac_n "(cached) $ac_c" 1>&6 |
4f14bcd8 GD |
15197 | else |
15198 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 15199 | #line 15200 "configure" |
10f2d63a | 15200 | #include "confdefs.h" |
90dd450c VZ |
15201 | #include <sys/types.h> |
15202 | #if STDC_HEADERS | |
15203 | #include <stdlib.h> | |
15204 | #include <stddef.h> | |
15205 | #endif | |
698dcdb6 | 15206 | EOF |
90dd450c VZ |
15207 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
15208 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
15209 | rm -rf conftest* | |
15210 | ac_cv_type_pid_t=yes | |
698dcdb6 | 15211 | else |
90dd450c VZ |
15212 | rm -rf conftest* |
15213 | ac_cv_type_pid_t=no | |
4f14bcd8 | 15214 | fi |
90dd450c | 15215 | rm -f conftest* |
698dcdb6 VZ |
15216 | |
15217 | fi | |
90dd450c VZ |
15218 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 |
15219 | if test $ac_cv_type_pid_t = no; then | |
15220 | cat >> confdefs.h <<\EOF | |
15221 | #define pid_t int | |
10f2d63a VZ |
15222 | EOF |
15223 | ||
90dd450c | 15224 | fi |
18dbb1f6 | 15225 | |
90dd450c | 15226 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
321d2b14 | 15227 | echo "configure:15228: checking for size_t" >&5 |
90dd450c | 15228 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
18dbb1f6 | 15229 | echo $ac_n "(cached) $ac_c" 1>&6 |
90dd450c VZ |
15230 | else |
15231 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 15232 | #line 15233 "configure" |
4f14bcd8 GD |
15233 | #include "confdefs.h" |
15234 | #include <sys/types.h> | |
90dd450c VZ |
15235 | #if STDC_HEADERS |
15236 | #include <stdlib.h> | |
15237 | #include <stddef.h> | |
4f14bcd8 | 15238 | #endif |
18dbb1f6 | 15239 | EOF |
90dd450c VZ |
15240 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
15241 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
18dbb1f6 | 15242 | rm -rf conftest* |
90dd450c | 15243 | ac_cv_type_size_t=yes |
18dbb1f6 | 15244 | else |
18dbb1f6 | 15245 | rm -rf conftest* |
90dd450c | 15246 | ac_cv_type_size_t=no |
18dbb1f6 VZ |
15247 | fi |
15248 | rm -f conftest* | |
90dd450c | 15249 | |
1e487827 | 15250 | fi |
90dd450c VZ |
15251 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 |
15252 | if test $ac_cv_type_size_t = no; then | |
15253 | cat >> confdefs.h <<\EOF | |
15254 | #define size_t unsigned | |
15255 | EOF | |
15256 | ||
15257 | fi | |
15258 | ||
15259 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 | |
321d2b14 | 15260 | echo "configure:15261: checking for uid_t in sys/types.h" >&5 |
90dd450c VZ |
15261 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
15262 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b3e8d00a VZ |
15263 | else |
15264 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 15265 | #line 15266 "configure" |
b3e8d00a | 15266 | #include "confdefs.h" |
90dd450c | 15267 | #include <sys/types.h> |
b3e8d00a | 15268 | EOF |
90dd450c VZ |
15269 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
15270 | egrep "uid_t" >/dev/null 2>&1; then | |
15271 | rm -rf conftest* | |
15272 | ac_cv_type_uid_t=yes | |
b3e8d00a | 15273 | else |
90dd450c VZ |
15274 | rm -rf conftest* |
15275 | ac_cv_type_uid_t=no | |
b3e8d00a | 15276 | fi |
90dd450c | 15277 | rm -f conftest* |
b3e8d00a | 15278 | |
4f14bcd8 GD |
15279 | fi |
15280 | ||
90dd450c VZ |
15281 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
15282 | if test $ac_cv_type_uid_t = no; then | |
4f14bcd8 | 15283 | cat >> confdefs.h <<\EOF |
90dd450c VZ |
15284 | #define uid_t int |
15285 | EOF | |
15286 | ||
15287 | cat >> confdefs.h <<\EOF | |
15288 | #define gid_t int | |
b3e8d00a | 15289 | EOF |
4f14bcd8 | 15290 | |
b3e8d00a | 15291 | fi |
b3e8d00a VZ |
15292 | |
15293 | ||
90dd450c VZ |
15294 | |
15295 | ac_ext=C | |
4f14bcd8 GD |
15296 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
15297 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15298 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15299 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15300 | cross_compiling=$ac_cv_prog_cxx_cross | |
90dd450c VZ |
15301 | |
15302 | echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6 | |
321d2b14 | 15303 | echo "configure:15304: checking if size_t is unsigned int" >&5 |
90dd450c VZ |
15304 | if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then |
15305 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15306 | else | |
15307 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 15308 | #line 15309 "configure" |
10f2d63a | 15309 | #include "confdefs.h" |
90dd450c VZ |
15310 | #include <stddef.h> |
15311 | int main() { | |
15312 | ||
15313 | return 0; } | |
15314 | ||
15315 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
15316 | ||
15317 | int bar() { | |
15318 | ||
15319 | ; return 0; } | |
698dcdb6 | 15320 | EOF |
321d2b14 | 15321 | if { (eval echo configure:15322: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
90dd450c VZ |
15322 | rm -rf conftest* |
15323 | wx_cv_size_t_is_uint=no | |
698dcdb6 VZ |
15324 | else |
15325 | echo "configure: failed program was:" >&5 | |
15326 | cat conftest.$ac_ext >&5 | |
15327 | rm -rf conftest* | |
90dd450c VZ |
15328 | wx_cv_size_t_is_uint=yes |
15329 | ||
698dcdb6 VZ |
15330 | fi |
15331 | rm -f conftest* | |
90dd450c | 15332 | |
698dcdb6 VZ |
15333 | fi |
15334 | ||
90dd450c | 15335 | echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6 |
4f14bcd8 | 15336 | |
90dd450c | 15337 | if test "$wx_cv_size_t_is_uint" = "yes"; then |
4f14bcd8 | 15338 | cat >> confdefs.h <<\EOF |
90dd450c | 15339 | #define wxSIZE_T_IS_UINT 1 |
698dcdb6 VZ |
15340 | EOF |
15341 | ||
90dd450c VZ |
15342 | else |
15343 | echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6 | |
321d2b14 | 15344 | echo "configure:15345: checking if size_t is unsigned long" >&5 |
90dd450c | 15345 | if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then |
698dcdb6 VZ |
15346 | echo $ac_n "(cached) $ac_c" 1>&6 |
15347 | else | |
15348 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 15349 | #line 15350 "configure" |
10f2d63a | 15350 | #include "confdefs.h" |
90dd450c VZ |
15351 | #include <stddef.h> |
15352 | int main() { | |
15353 | ||
15354 | return 0; } | |
15355 | ||
15356 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
15357 | ||
15358 | int bar() { | |
15359 | ||
15360 | ; return 0; } | |
698dcdb6 | 15361 | EOF |
321d2b14 | 15362 | if { (eval echo configure:15363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 15363 | rm -rf conftest* |
90dd450c | 15364 | wx_cv_size_t_is_ulong=no |
698dcdb6 VZ |
15365 | else |
15366 | echo "configure: failed program was:" >&5 | |
15367 | cat conftest.$ac_ext >&5 | |
15368 | rm -rf conftest* | |
90dd450c VZ |
15369 | wx_cv_size_t_is_ulong=yes |
15370 | ||
698dcdb6 VZ |
15371 | fi |
15372 | rm -f conftest* | |
90dd450c | 15373 | |
698dcdb6 | 15374 | fi |
10f2d63a | 15375 | |
90dd450c | 15376 | echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6 |
10f2d63a | 15377 | |
90dd450c VZ |
15378 | if test "$wx_cv_size_t_is_ulong" = "yes"; then |
15379 | cat >> confdefs.h <<\EOF | |
15380 | #define wxSIZE_T_IS_ULONG 1 | |
4f14bcd8 GD |
15381 | EOF |
15382 | ||
15383 | fi | |
90dd450c | 15384 | fi |
1e487827 | 15385 | |
90dd450c | 15386 | ac_ext=c |
4f14bcd8 GD |
15387 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
15388 | ac_cpp='$CPP $CPPFLAGS' | |
15389 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15390 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15391 | cross_compiling=$ac_cv_prog_cc_cross | |
698dcdb6 | 15392 | |
698dcdb6 VZ |
15393 | |
15394 | ||
90dd450c | 15395 | echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6 |
321d2b14 | 15396 | echo "configure:15397: checking for pw_gecos in struct passwd" >&5 |
90dd450c | 15397 | if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then |
698dcdb6 VZ |
15398 | echo $ac_n "(cached) $ac_c" 1>&6 |
15399 | else | |
15400 | ||
90dd450c | 15401 | cat > conftest.$ac_ext <<EOF |
321d2b14 | 15402 | #line 15403 "configure" |
4f14bcd8 | 15403 | #include "confdefs.h" |
90dd450c | 15404 | #include <pwd.h> |
4f14bcd8 | 15405 | int main() { |
f6bcfd97 | 15406 | |
90dd450c VZ |
15407 | char *p; |
15408 | struct passwd *pw; | |
15409 | p = pw->pw_gecos; | |
15410 | ||
698dcdb6 VZ |
15411 | ; return 0; } |
15412 | EOF | |
321d2b14 | 15413 | if { (eval echo configure:15414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
15414 | rm -rf conftest* |
15415 | ||
90dd450c VZ |
15416 | wx_cv_struct_pw_gecos=yes |
15417 | ||
10f2d63a | 15418 | else |
698dcdb6 VZ |
15419 | echo "configure: failed program was:" >&5 |
15420 | cat conftest.$ac_ext >&5 | |
15421 | rm -rf conftest* | |
15422 | ||
90dd450c VZ |
15423 | wx_cv_struct_pw_gecos=no |
15424 | ||
15425 | ||
4f14bcd8 GD |
15426 | fi |
15427 | rm -f conftest* | |
90dd450c | 15428 | |
c521c494 | 15429 | |
4f14bcd8 | 15430 | fi |
c521c494 | 15431 | |
90dd450c | 15432 | echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6 |
c521c494 | 15433 | |
90dd450c | 15434 | if test "$wx_cv_struct_pw_gecos" = "yes"; then |
4f14bcd8 | 15435 | cat >> confdefs.h <<\EOF |
90dd450c | 15436 | #define HAVE_PW_GECOS 1 |
4f14bcd8 | 15437 | EOF |
c521c494 | 15438 | |
90dd450c | 15439 | fi |
4f14bcd8 GD |
15440 | |
15441 | ||
d29b553b VZ |
15442 | WCHAR_OK=0 |
15443 | if test "$wx_cv_sizeof_wchar_t" != "0"; then | |
15444 | WCHAR_LINK= | |
7a30264c VZ |
15445 | for ac_func in wcslen |
15446 | do | |
15447 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
321d2b14 | 15448 | echo "configure:15449: checking for $ac_func" >&5 |
7a30264c | 15449 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
4f14bcd8 GD |
15450 | echo $ac_n "(cached) $ac_c" 1>&6 |
15451 | else | |
7a30264c | 15452 | cat > conftest.$ac_ext <<EOF |
321d2b14 | 15453 | #line 15454 "configure" |
4f14bcd8 | 15454 | #include "confdefs.h" |
7a30264c VZ |
15455 | /* System header to define __stub macros and hopefully few prototypes, |
15456 | which can conflict with char $ac_func(); below. */ | |
15457 | #include <assert.h> | |
4f14bcd8 GD |
15458 | /* Override any gcc2 internal prototype to avoid an error. */ |
15459 | /* We use char because int might match the return type of a gcc2 | |
15460 | builtin and then its argument prototype would still apply. */ | |
7a30264c | 15461 | char $ac_func(); |
4f14bcd8 GD |
15462 | |
15463 | int main() { | |
7a30264c VZ |
15464 | |
15465 | /* The GNU C library defines this for functions which it implements | |
15466 | to always fail with ENOSYS. Some functions are actually named | |
15467 | something starting with __ and the normal name is an alias. */ | |
15468 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15469 | choke me | |
15470 | #else | |
15471 | $ac_func(); | |
15472 | #endif | |
15473 | ||
698dcdb6 VZ |
15474 | ; return 0; } |
15475 | EOF | |
321d2b14 | 15476 | if { (eval echo configure:15477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15477 | rm -rf conftest* |
7a30264c | 15478 | eval "ac_cv_func_$ac_func=yes" |
c521c494 | 15479 | else |
698dcdb6 VZ |
15480 | echo "configure: failed program was:" >&5 |
15481 | cat conftest.$ac_ext >&5 | |
15482 | rm -rf conftest* | |
7a30264c | 15483 | eval "ac_cv_func_$ac_func=no" |
6232543b | 15484 | fi |
698dcdb6 | 15485 | rm -f conftest* |
1e487827 | 15486 | fi |
7a30264c VZ |
15487 | |
15488 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
4f14bcd8 | 15489 | echo "$ac_t""yes" 1>&6 |
7a30264c VZ |
15490 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
15491 | cat >> confdefs.h <<EOF | |
15492 | #define $ac_tr_func 1 | |
15493 | EOF | |
15494 | ||
15495 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 15496 | #define HAVE_WCSLEN 1 |
9d8deca0 VZ |
15497 | EOF |
15498 | ||
7a30264c VZ |
15499 | WCHAR_OK=1 |
15500 | ||
9d8deca0 | 15501 | else |
4f14bcd8 | 15502 | echo "$ac_t""no" 1>&6 |
7a30264c VZ |
15503 | fi |
15504 | done | |
9d8deca0 | 15505 | |
7a30264c VZ |
15506 | |
15507 | if test "$WCHAR_OK" = 0; then | |
15508 | if test "$TOOLKIT" = "MSW"; then | |
15509 | echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6 | |
321d2b14 | 15510 | echo "configure:15511: checking for wcslen in -lmsvcrt" >&5 |
7a30264c | 15511 | ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'` |
4f14bcd8 | 15512 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
698dcdb6 | 15513 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 15514 | else |
4f14bcd8 | 15515 | ac_save_LIBS="$LIBS" |
7a30264c | 15516 | LIBS="-lmsvcrt $LIBS" |
4f14bcd8 | 15517 | cat > conftest.$ac_ext <<EOF |
321d2b14 | 15518 | #line 15519 "configure" |
10f2d63a | 15519 | #include "confdefs.h" |
4f14bcd8 GD |
15520 | /* Override any gcc2 internal prototype to avoid an error. */ |
15521 | /* We use char because int might match the return type of a gcc2 | |
15522 | builtin and then its argument prototype would still apply. */ | |
15523 | char wcslen(); | |
10f2d63a | 15524 | |
698dcdb6 | 15525 | int main() { |
4f14bcd8 | 15526 | wcslen() |
698dcdb6 VZ |
15527 | ; return 0; } |
15528 | EOF | |
321d2b14 | 15529 | if { (eval echo configure:15530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15530 | rm -rf conftest* |
4f14bcd8 | 15531 | eval "ac_cv_lib_$ac_lib_var=yes" |
10f2d63a | 15532 | else |
698dcdb6 VZ |
15533 | echo "configure: failed program was:" >&5 |
15534 | cat conftest.$ac_ext >&5 | |
15535 | rm -rf conftest* | |
4f14bcd8 | 15536 | eval "ac_cv_lib_$ac_lib_var=no" |
6232543b | 15537 | fi |
698dcdb6 | 15538 | rm -f conftest* |
4f14bcd8 | 15539 | LIBS="$ac_save_LIBS" |
703e0a69 | 15540 | |
1e487827 | 15541 | fi |
4f14bcd8 GD |
15542 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
15543 | echo "$ac_t""yes" 1>&6 | |
15544 | ||
7a30264c | 15545 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 15546 | #define HAVE_WCSLEN 1 |
9d8deca0 VZ |
15547 | EOF |
15548 | ||
7a30264c VZ |
15549 | WCHAR_OK=1 |
15550 | ||
4f14bcd8 GD |
15551 | else |
15552 | echo "$ac_t""no" 1>&6 | |
d29b553b | 15553 | fi |
698dcdb6 | 15554 | |
7a30264c VZ |
15555 | else |
15556 | echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6 | |
321d2b14 | 15557 | echo "configure:15558: checking for wcslen in -lw" >&5 |
7a30264c | 15558 | ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'` |
4f14bcd8 | 15559 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
698dcdb6 VZ |
15560 | echo $ac_n "(cached) $ac_c" 1>&6 |
15561 | else | |
4f14bcd8 | 15562 | ac_save_LIBS="$LIBS" |
7a30264c | 15563 | LIBS="-lw $LIBS" |
4f14bcd8 | 15564 | cat > conftest.$ac_ext <<EOF |
321d2b14 | 15565 | #line 15566 "configure" |
95c8801c | 15566 | #include "confdefs.h" |
4f14bcd8 GD |
15567 | /* Override any gcc2 internal prototype to avoid an error. */ |
15568 | /* We use char because int might match the return type of a gcc2 | |
15569 | builtin and then its argument prototype would still apply. */ | |
15570 | char wcslen(); | |
95c8801c | 15571 | |
4f14bcd8 GD |
15572 | int main() { |
15573 | wcslen() | |
698dcdb6 VZ |
15574 | ; return 0; } |
15575 | EOF | |
321d2b14 | 15576 | if { (eval echo configure:15577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15577 | rm -rf conftest* |
4f14bcd8 | 15578 | eval "ac_cv_lib_$ac_lib_var=yes" |
95c8801c | 15579 | else |
698dcdb6 VZ |
15580 | echo "configure: failed program was:" >&5 |
15581 | cat conftest.$ac_ext >&5 | |
15582 | rm -rf conftest* | |
4f14bcd8 | 15583 | eval "ac_cv_lib_$ac_lib_var=no" |
95c8801c | 15584 | fi |
698dcdb6 | 15585 | rm -f conftest* |
4f14bcd8 | 15586 | LIBS="$ac_save_LIBS" |
95c8801c VS |
15587 | |
15588 | fi | |
4f14bcd8 GD |
15589 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
15590 | echo "$ac_t""yes" 1>&6 | |
15591 | ||
7a30264c | 15592 | cat >> confdefs.h <<\EOF |
4f14bcd8 GD |
15593 | #define HAVE_WCSLEN 1 |
15594 | EOF | |
698dcdb6 | 15595 | |
7a30264c VZ |
15596 | WCHAR_LINK=" -lw" |
15597 | WCHAR_OK=1 | |
15598 | ||
4f14bcd8 GD |
15599 | else |
15600 | echo "$ac_t""no" 1>&6 | |
15601 | fi | |
10f2d63a | 15602 | |
7a30264c | 15603 | fi |
d29b553b | 15604 | fi |
4f14bcd8 | 15605 | fi |
95c8801c | 15606 | |
d29b553b VZ |
15607 | if test "$WCHAR_OK" = 1; then |
15608 | cat >> confdefs.h <<\EOF | |
15609 | #define wxUSE_WCHAR_T 1 | |
15610 | EOF | |
10f2d63a | 15611 | |
1e487827 | 15612 | |
d29b553b | 15613 | for ac_func in wcsrtombs |
eb4efbdc | 15614 | do |
698dcdb6 | 15615 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
321d2b14 | 15616 | echo "configure:15617: checking for $ac_func" >&5 |
698dcdb6 VZ |
15617 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15618 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15619 | else | |
15620 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 15621 | #line 15622 "configure" |
eb4efbdc VZ |
15622 | #include "confdefs.h" |
15623 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 15624 | which can conflict with char $ac_func(); below. */ |
eb4efbdc VZ |
15625 | #include <assert.h> |
15626 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15627 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15628 | builtin and then its argument prototype would still apply. */ |
15629 | char $ac_func(); | |
15630 | ||
15631 | int main() { | |
eb4efbdc VZ |
15632 | |
15633 | /* The GNU C library defines this for functions which it implements | |
15634 | to always fail with ENOSYS. Some functions are actually named | |
15635 | something starting with __ and the normal name is an alias. */ | |
15636 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15637 | choke me | |
15638 | #else | |
698dcdb6 | 15639 | $ac_func(); |
eb4efbdc VZ |
15640 | #endif |
15641 | ||
698dcdb6 | 15642 | ; return 0; } |
eb4efbdc | 15643 | EOF |
321d2b14 | 15644 | if { (eval echo configure:15645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15645 | rm -rf conftest* |
15646 | eval "ac_cv_func_$ac_func=yes" | |
15647 | else | |
15648 | echo "configure: failed program was:" >&5 | |
15649 | cat conftest.$ac_ext >&5 | |
15650 | rm -rf conftest* | |
15651 | eval "ac_cv_func_$ac_func=no" | |
15652 | fi | |
15653 | rm -f conftest* | |
15654 | fi | |
eb4efbdc | 15655 | |
698dcdb6 VZ |
15656 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
15657 | echo "$ac_t""yes" 1>&6 | |
15658 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15659 | cat >> confdefs.h <<EOF | |
15660 | #define $ac_tr_func 1 | |
15661 | EOF | |
15662 | ||
15663 | else | |
15664 | echo "$ac_t""no" 1>&6 | |
eb4efbdc VZ |
15665 | fi |
15666 | done | |
15667 | ||
d29b553b | 15668 | else |
a1ea5055 GD |
15669 | if test "$USE_DARWIN" = 1; then |
15670 | cat >> confdefs.h <<\EOF | |
15671 | #define wxUSE_WCHAR_T 1 | |
15672 | EOF | |
15673 | ||
15674 | else | |
15675 | echo "configure: warning: Wide character support is unavailable" 1>&2 | |
15676 | fi | |
d29b553b | 15677 | fi |
698dcdb6 | 15678 | |
4f14bcd8 | 15679 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 |
321d2b14 | 15680 | echo "configure:15681: checking for vprintf" >&5 |
4f14bcd8 | 15681 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
698dcdb6 VZ |
15682 | echo $ac_n "(cached) $ac_c" 1>&6 |
15683 | else | |
4f14bcd8 | 15684 | cat > conftest.$ac_ext <<EOF |
321d2b14 | 15685 | #line 15686 "configure" |
f6bcfd97 | 15686 | #include "confdefs.h" |
4f14bcd8 GD |
15687 | /* System header to define __stub macros and hopefully few prototypes, |
15688 | which can conflict with char vprintf(); below. */ | |
15689 | #include <assert.h> | |
15690 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15691 | /* We use char because int might match the return type of a gcc2 | |
15692 | builtin and then its argument prototype would still apply. */ | |
15693 | char vprintf(); | |
15694 | ||
698dcdb6 | 15695 | int main() { |
f6bcfd97 | 15696 | |
4f14bcd8 GD |
15697 | /* The GNU C library defines this for functions which it implements |
15698 | to always fail with ENOSYS. Some functions are actually named | |
15699 | something starting with __ and the normal name is an alias. */ | |
15700 | #if defined (__stub_vprintf) || defined (__stub___vprintf) | |
15701 | choke me | |
15702 | #else | |
15703 | vprintf(); | |
15704 | #endif | |
f6bcfd97 | 15705 | |
698dcdb6 VZ |
15706 | ; return 0; } |
15707 | EOF | |
321d2b14 | 15708 | if { (eval echo configure:15709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15709 | rm -rf conftest* |
4f14bcd8 | 15710 | eval "ac_cv_func_vprintf=yes" |
f6bcfd97 | 15711 | else |
698dcdb6 VZ |
15712 | echo "configure: failed program was:" >&5 |
15713 | cat conftest.$ac_ext >&5 | |
15714 | rm -rf conftest* | |
4f14bcd8 | 15715 | eval "ac_cv_func_vprintf=no" |
6232543b | 15716 | fi |
698dcdb6 | 15717 | rm -f conftest* |
1e487827 | 15718 | fi |
698dcdb6 | 15719 | |
4f14bcd8 GD |
15720 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then |
15721 | echo "$ac_t""yes" 1>&6 | |
15722 | cat >> confdefs.h <<\EOF | |
15723 | #define HAVE_VPRINTF 1 | |
f6bcfd97 BP |
15724 | EOF |
15725 | ||
4f14bcd8 GD |
15726 | else |
15727 | echo "$ac_t""no" 1>&6 | |
eb4efbdc VZ |
15728 | fi |
15729 | ||
4f14bcd8 GD |
15730 | if test "$ac_cv_func_vprintf" != yes; then |
15731 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | |
321d2b14 | 15732 | echo "configure:15733: checking for _doprnt" >&5 |
4f14bcd8 | 15733 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
698dcdb6 VZ |
15734 | echo $ac_n "(cached) $ac_c" 1>&6 |
15735 | else | |
15736 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 15737 | #line 15738 "configure" |
10f2d63a VZ |
15738 | #include "confdefs.h" |
15739 | /* System header to define __stub macros and hopefully few prototypes, | |
4f14bcd8 | 15740 | which can conflict with char _doprnt(); below. */ |
10f2d63a VZ |
15741 | #include <assert.h> |
15742 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15743 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 15744 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 15745 | char _doprnt(); |
698dcdb6 VZ |
15746 | |
15747 | int main() { | |
10f2d63a VZ |
15748 | |
15749 | /* The GNU C library defines this for functions which it implements | |
15750 | to always fail with ENOSYS. Some functions are actually named | |
15751 | something starting with __ and the normal name is an alias. */ | |
4f14bcd8 | 15752 | #if defined (__stub__doprnt) || defined (__stub____doprnt) |
10f2d63a VZ |
15753 | choke me |
15754 | #else | |
4f14bcd8 | 15755 | _doprnt(); |
10f2d63a VZ |
15756 | #endif |
15757 | ||
698dcdb6 | 15758 | ; return 0; } |
10f2d63a | 15759 | EOF |
321d2b14 | 15760 | if { (eval echo configure:15761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15761 | rm -rf conftest* |
4f14bcd8 | 15762 | eval "ac_cv_func__doprnt=yes" |
698dcdb6 VZ |
15763 | else |
15764 | echo "configure: failed program was:" >&5 | |
15765 | cat conftest.$ac_ext >&5 | |
15766 | rm -rf conftest* | |
4f14bcd8 | 15767 | eval "ac_cv_func__doprnt=no" |
698dcdb6 VZ |
15768 | fi |
15769 | rm -f conftest* | |
15770 | fi | |
270a909e | 15771 | |
4f14bcd8 | 15772 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then |
698dcdb6 | 15773 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
15774 | cat >> confdefs.h <<\EOF |
15775 | #define HAVE_DOPRNT 1 | |
698dcdb6 | 15776 | EOF |
4f14bcd8 | 15777 | |
698dcdb6 VZ |
15778 | else |
15779 | echo "$ac_t""no" 1>&6 | |
270a909e | 15780 | fi |
270a909e | 15781 | |
4f14bcd8 | 15782 | fi |
1e487827 | 15783 | |
52e8b690 | 15784 | |
52e8b690 | 15785 | |
52e8b690 | 15786 | |
52e8b690 | 15787 | |
52e8b690 | 15788 | |
4f14bcd8 | 15789 | echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6 |
321d2b14 | 15790 | echo "configure:15791: checking for vsnprintf" >&5 |
4f14bcd8 | 15791 | if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then |
698dcdb6 | 15792 | echo $ac_n "(cached) $ac_c" 1>&6 |
c63c7106 | 15793 | else |
4f14bcd8 | 15794 | |
af15babd | 15795 | cat > conftest.$ac_ext <<EOF |
321d2b14 | 15796 | #line 15797 "configure" |
c63c7106 | 15797 | #include "confdefs.h" |
698dcdb6 | 15798 | |
4f14bcd8 GD |
15799 | #include <stdio.h> |
15800 | #include <stdarg.h> | |
15801 | ||
af15babd VZ |
15802 | int main() { |
15803 | ||
4f14bcd8 GD |
15804 | int wx_test_vsnprintf(const char *, ...); |
15805 | ||
15806 | wx_test_vsnprintf("%s"); | |
15807 | return 0; | |
15808 | } | |
15809 | ||
15810 | int wx_test_vsnprintf(const char *fmt, ...) | |
15811 | { | |
15812 | char *s; | |
15813 | ||
15814 | va_list argp; | |
15815 | va_start(argp, fmt); | |
15816 | vsnprintf(s, 42, fmt, argp); | |
15817 | va_end(argp); | |
15818 | ||
af15babd VZ |
15819 | ; return 0; } |
15820 | EOF | |
321d2b14 | 15821 | if { (eval echo configure:15822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
15822 | rm -rf conftest* |
15823 | ||
4f14bcd8 GD |
15824 | wx_cv_func_vsnprintf=yes |
15825 | ||
af15babd VZ |
15826 | else |
15827 | echo "configure: failed program was:" >&5 | |
15828 | cat conftest.$ac_ext >&5 | |
15829 | rm -rf conftest* | |
15830 | ||
4f14bcd8 | 15831 | cat > conftest.$ac_ext <<EOF |
321d2b14 | 15832 | #line 15833 "configure" |
af15babd | 15833 | #include "confdefs.h" |
af15babd | 15834 | |
4f14bcd8 GD |
15835 | #include <stdio.h> |
15836 | #include <stdarg.h> | |
15837 | ||
af15babd VZ |
15838 | int main() { |
15839 | ||
4f14bcd8 GD |
15840 | int wx_test_vsnprintf(const char *, ...); |
15841 | ||
15842 | wx_test_vsnprintf("%s"); | |
15843 | return 0; | |
15844 | } | |
15845 | ||
15846 | int wx_test_vsnprintf(const char *fmt, ...) | |
15847 | { | |
15848 | char *s; | |
af15babd | 15849 | |
4f14bcd8 GD |
15850 | va_list argp; |
15851 | va_start(argp, fmt); | |
15852 | _vsnprintf(s, 42, fmt, argp); | |
15853 | va_end(argp); | |
15854 | ||
af15babd VZ |
15855 | ; return 0; } |
15856 | EOF | |
321d2b14 | 15857 | if { (eval echo configure:15858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd | 15858 | rm -rf conftest* |
4f14bcd8 GD |
15859 | |
15860 | wx_cv_func_vsnprintf=yes | |
15861 | ||
af15babd VZ |
15862 | else |
15863 | echo "configure: failed program was:" >&5 | |
15864 | cat conftest.$ac_ext >&5 | |
15865 | rm -rf conftest* | |
4f14bcd8 GD |
15866 | |
15867 | wx_cv_func_vsnprintf=no | |
15868 | ||
af15babd VZ |
15869 | fi |
15870 | rm -f conftest* | |
4f14bcd8 | 15871 | |
af15babd | 15872 | fi |
4f14bcd8 | 15873 | rm -f conftest* |
af15babd | 15874 | |
af15babd | 15875 | fi |
af15babd | 15876 | |
4f14bcd8 | 15877 | echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6 |
af15babd | 15878 | |
4f14bcd8 GD |
15879 | if test "$wx_cv_func_vsnprintf" = yes; then |
15880 | cat >> confdefs.h <<\EOF | |
15881 | #define HAVE_VSNPRINTF 1 | |
15882 | EOF | |
15883 | ||
15884 | else | |
f9bc1684 | 15885 | echo "configure: warning: unsafe function vsprintf will be used instead of vsnprintf" 1>&2 |
af15babd VZ |
15886 | fi |
15887 | ||
4f14bcd8 | 15888 | echo $ac_n "checking for vsscanf""... $ac_c" 1>&6 |
321d2b14 | 15889 | echo "configure:15890: checking for vsscanf" >&5 |
4f14bcd8 | 15890 | if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then |
af15babd VZ |
15891 | echo $ac_n "(cached) $ac_c" 1>&6 |
15892 | else | |
4f14bcd8 | 15893 | |
af15babd | 15894 | cat > conftest.$ac_ext <<EOF |
321d2b14 | 15895 | #line 15896 "configure" |
af15babd | 15896 | #include "confdefs.h" |
af15babd | 15897 | |
4f14bcd8 GD |
15898 | #include <stdio.h> |
15899 | #include <stdarg.h> | |
15900 | ||
af15babd VZ |
15901 | int main() { |
15902 | ||
4f14bcd8 GD |
15903 | int wx_test_vsscanf(const char *, ...); |
15904 | ||
15905 | wx_test_vsscanf("%d"); | |
15906 | return 0; | |
15907 | } | |
af15babd | 15908 | |
4f14bcd8 GD |
15909 | int wx_test_vsscanf(const char *fmt, ...) |
15910 | { | |
15911 | va_list argp; | |
15912 | va_start(argp, fmt); | |
15913 | vsscanf("42", fmt, argp); | |
15914 | va_end(argp); | |
15915 | ||
af15babd VZ |
15916 | ; return 0; } |
15917 | EOF | |
321d2b14 | 15918 | if { (eval echo configure:15919: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd | 15919 | rm -rf conftest* |
4f14bcd8 GD |
15920 | |
15921 | wx_cv_func_vsscanf=yes | |
15922 | ||
af15babd VZ |
15923 | else |
15924 | echo "configure: failed program was:" >&5 | |
15925 | cat conftest.$ac_ext >&5 | |
15926 | rm -rf conftest* | |
4f14bcd8 GD |
15927 | |
15928 | wx_cv_func_vsscanf=no | |
15929 | ||
af15babd VZ |
15930 | fi |
15931 | rm -f conftest* | |
4f14bcd8 | 15932 | |
af15babd VZ |
15933 | fi |
15934 | ||
4f14bcd8 GD |
15935 | echo "$ac_t""$wx_cv_func_vsscanf" 1>&6 |
15936 | ||
15937 | if test "$wx_cv_func_vsscanf" = yes; then | |
15938 | cat >> confdefs.h <<\EOF | |
15939 | #define HAVE_VSSCANF 1 | |
af15babd | 15940 | EOF |
4f14bcd8 | 15941 | |
af15babd | 15942 | fi |
af15babd | 15943 | |
4f14bcd8 | 15944 | if test "$TOOLKIT" != "MSW"; then |
af15babd | 15945 | |
4f14bcd8 GD |
15946 | |
15947 | ||
15948 | ac_ext=C | |
15949 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15950 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15951 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15952 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15953 | cross_compiling=$ac_cv_prog_cxx_cross | |
15954 | ||
b040e242 VS |
15955 | |
15956 | ||
15957 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
15958 | if test "${with_libiconv_prefix+set}" = set; then | |
15959 | withval="$with_libiconv_prefix" | |
15960 | ||
15961 | for dir in `echo "$withval" | tr : ' '`; do | |
15962 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
15963 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
15964 | done | |
15965 | ||
15966 | fi | |
15967 | ||
15968 | ||
15969 | echo $ac_n "checking for iconv""... $ac_c" 1>&6 | |
321d2b14 | 15970 | echo "configure:15971: checking for iconv" >&5 |
b040e242 | 15971 | if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then |
af15babd VZ |
15972 | echo $ac_n "(cached) $ac_c" 1>&6 |
15973 | else | |
4f14bcd8 | 15974 | |
b040e242 VS |
15975 | am_cv_func_iconv="no, consider installing GNU libiconv" |
15976 | am_cv_lib_iconv=no | |
4f14bcd8 | 15977 | cat > conftest.$ac_ext <<EOF |
321d2b14 | 15978 | #line 15979 "configure" |
af15babd | 15979 | #include "confdefs.h" |
b040e242 | 15980 | #include <stdlib.h> |
4f14bcd8 | 15981 | #include <iconv.h> |
af15babd | 15982 | int main() { |
b040e242 VS |
15983 | iconv_t cd = iconv_open("",""); |
15984 | iconv(cd,NULL,NULL,NULL,NULL); | |
15985 | iconv_close(cd); | |
af15babd VZ |
15986 | ; return 0; } |
15987 | EOF | |
321d2b14 | 15988 | if { (eval echo configure:15989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd | 15989 | rm -rf conftest* |
b040e242 | 15990 | am_cv_func_iconv=yes |
af15babd VZ |
15991 | else |
15992 | echo "configure: failed program was:" >&5 | |
15993 | cat conftest.$ac_ext >&5 | |
b040e242 VS |
15994 | fi |
15995 | rm -f conftest* | |
15996 | if test "$am_cv_func_iconv" != yes; then | |
15997 | am_save_LIBS="$LIBS" | |
15998 | LIBS="$LIBS -liconv" | |
15999 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 16000 | #line 16001 "configure" |
b040e242 VS |
16001 | #include "confdefs.h" |
16002 | #include <stdlib.h> | |
16003 | #include <iconv.h> | |
16004 | int main() { | |
16005 | iconv_t cd = iconv_open("",""); | |
16006 | iconv(cd,NULL,NULL,NULL,NULL); | |
16007 | iconv_close(cd); | |
16008 | ; return 0; } | |
16009 | EOF | |
321d2b14 | 16010 | if { (eval echo configure:16011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd | 16011 | rm -rf conftest* |
b040e242 VS |
16012 | am_cv_lib_iconv=yes |
16013 | am_cv_func_iconv=yes | |
16014 | else | |
16015 | echo "configure: failed program was:" >&5 | |
16016 | cat conftest.$ac_ext >&5 | |
af15babd VZ |
16017 | fi |
16018 | rm -f conftest* | |
b040e242 VS |
16019 | LIBS="$am_save_LIBS" |
16020 | fi | |
16021 | ||
16022 | fi | |
16023 | ||
16024 | echo "$ac_t""$am_cv_func_iconv" 1>&6 | |
16025 | if test "$am_cv_func_iconv" = yes; then | |
16026 | cat >> confdefs.h <<\EOF | |
16027 | #define HAVE_ICONV 1 | |
16028 | EOF | |
16029 | ||
b7043674 | 16030 | echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6 |
321d2b14 | 16031 | echo "configure:16032: checking if iconv needs const" >&5 |
b7043674 | 16032 | if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then |
b040e242 VS |
16033 | echo $ac_n "(cached) $ac_c" 1>&6 |
16034 | else | |
b7043674 | 16035 | cat > conftest.$ac_ext <<EOF |
321d2b14 | 16036 | #line 16037 "configure" |
b040e242 VS |
16037 | #include "confdefs.h" |
16038 | ||
16039 | #include <stdlib.h> | |
16040 | #include <iconv.h> | |
16041 | extern | |
16042 | #ifdef __cplusplus | |
16043 | "C" | |
16044 | #endif | |
16045 | #if defined(__STDC__) || defined(__cplusplus) | |
16046 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
16047 | #else | |
16048 | size_t iconv(); | |
16049 | #endif | |
b7043674 | 16050 | |
b040e242 | 16051 | int main() { |
af15babd | 16052 | |
b040e242 VS |
16053 | ; return 0; } |
16054 | EOF | |
321d2b14 | 16055 | if { (eval echo configure:16056: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
b040e242 | 16056 | rm -rf conftest* |
b7043674 | 16057 | wx_cv_func_iconv_const="no" |
b040e242 VS |
16058 | else |
16059 | echo "configure: failed program was:" >&5 | |
16060 | cat conftest.$ac_ext >&5 | |
16061 | rm -rf conftest* | |
b7043674 VZ |
16062 | wx_cv_func_iconv_const="yes" |
16063 | ||
b040e242 VS |
16064 | fi |
16065 | rm -f conftest* | |
b7043674 | 16066 | |
af15babd | 16067 | fi |
af15babd | 16068 | |
b7043674 VZ |
16069 | echo "$ac_t""$wx_cv_func_iconv_const" 1>&6 |
16070 | ||
16071 | iconv_const= | |
1c405bb5 | 16072 | if test "x$wx_cv_func_iconv_const" = "xyes"; then |
b7043674 VZ |
16073 | iconv_const="const" |
16074 | fi | |
16075 | ||
b040e242 | 16076 | cat >> confdefs.h <<EOF |
b7043674 | 16077 | #define ICONV_CONST $iconv_const |
b040e242 VS |
16078 | EOF |
16079 | ||
16080 | fi | |
16081 | LIBICONV= | |
16082 | if test "$am_cv_lib_iconv" = yes; then | |
16083 | LIBICONV="-liconv" | |
16084 | fi | |
16085 | ||
16086 | ||
16087 | LIBS="$LIBICONV $LIBS" | |
4f14bcd8 GD |
16088 | ac_ext=c |
16089 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
16090 | ac_cpp='$CPP $CPPFLAGS' | |
16091 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
16092 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16093 | cross_compiling=$ac_cv_prog_cc_cross | |
af15babd | 16094 | |
af15babd | 16095 | |
4f14bcd8 GD |
16096 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
16097 | for ac_func in sigaction | |
af15babd VZ |
16098 | do |
16099 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
321d2b14 | 16100 | echo "configure:16101: checking for $ac_func" >&5 |
af15babd VZ |
16101 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16102 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16103 | else | |
16104 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 16105 | #line 16106 "configure" |
af15babd VZ |
16106 | #include "confdefs.h" |
16107 | /* System header to define __stub macros and hopefully few prototypes, | |
16108 | which can conflict with char $ac_func(); below. */ | |
16109 | #include <assert.h> | |
16110 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16111 | /* We use char because int might match the return type of a gcc2 | |
16112 | builtin and then its argument prototype would still apply. */ | |
16113 | char $ac_func(); | |
16114 | ||
16115 | int main() { | |
16116 | ||
16117 | /* The GNU C library defines this for functions which it implements | |
16118 | to always fail with ENOSYS. Some functions are actually named | |
16119 | something starting with __ and the normal name is an alias. */ | |
16120 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16121 | choke me | |
16122 | #else | |
16123 | $ac_func(); | |
16124 | #endif | |
16125 | ||
16126 | ; return 0; } | |
16127 | EOF | |
321d2b14 | 16128 | if { (eval echo configure:16129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
16129 | rm -rf conftest* |
16130 | eval "ac_cv_func_$ac_func=yes" | |
16131 | else | |
16132 | echo "configure: failed program was:" >&5 | |
16133 | cat conftest.$ac_ext >&5 | |
16134 | rm -rf conftest* | |
16135 | eval "ac_cv_func_$ac_func=no" | |
16136 | fi | |
16137 | rm -f conftest* | |
16138 | fi | |
16139 | ||
16140 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16141 | echo "$ac_t""yes" 1>&6 | |
16142 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16143 | cat >> confdefs.h <<EOF | |
16144 | #define $ac_tr_func 1 | |
16145 | EOF | |
4f14bcd8 | 16146 | |
af15babd VZ |
16147 | else |
16148 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 GD |
16149 | fi |
16150 | done | |
16151 | ||
16152 | ||
16153 | if test "$ac_cv_func_sigaction" = "no"; then | |
16154 | echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2 | |
16155 | wxUSE_ON_FATAL_EXCEPTION=no | |
16156 | fi | |
16157 | ||
16158 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
16159 | ||
16160 | ac_ext=C | |
16161 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
16162 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16163 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
16164 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16165 | cross_compiling=$ac_cv_prog_cxx_cross | |
16166 | ||
16167 | ||
16168 | echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6 | |
321d2b14 | 16169 | echo "configure:16170: checking for sa_handler type" >&5 |
4f14bcd8 | 16170 | if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then |
af15babd VZ |
16171 | echo $ac_n "(cached) $ac_c" 1>&6 |
16172 | else | |
4f14bcd8 GD |
16173 | |
16174 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 16175 | #line 16176 "configure" |
af15babd | 16176 | #include "confdefs.h" |
4f14bcd8 | 16177 | #include <signal.h> |
af15babd | 16178 | int main() { |
4f14bcd8 GD |
16179 | |
16180 | extern void testSigHandler(int); | |
16181 | ||
16182 | struct sigaction sa; | |
16183 | sa.sa_handler = testSigHandler; | |
16184 | ||
af15babd VZ |
16185 | ; return 0; } |
16186 | EOF | |
321d2b14 | 16187 | if { (eval echo configure:16188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd | 16188 | rm -rf conftest* |
4f14bcd8 GD |
16189 | |
16190 | wx_cv_type_sa_handler=int | |
16191 | ||
af15babd VZ |
16192 | else |
16193 | echo "configure: failed program was:" >&5 | |
16194 | cat conftest.$ac_ext >&5 | |
16195 | rm -rf conftest* | |
4f14bcd8 GD |
16196 | |
16197 | wx_cv_type_sa_handler=void | |
16198 | ||
af15babd VZ |
16199 | fi |
16200 | rm -f conftest* | |
4f14bcd8 GD |
16201 | |
16202 | fi | |
16203 | ||
16204 | echo "$ac_t""$wx_cv_type_sa_handler" 1>&6 | |
16205 | ||
16206 | ac_ext=c | |
16207 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
16208 | ac_cpp='$CPP $CPPFLAGS' | |
16209 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
16210 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16211 | cross_compiling=$ac_cv_prog_cc_cross | |
af15babd | 16212 | |
4f14bcd8 GD |
16213 | |
16214 | cat >> confdefs.h <<EOF | |
16215 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler | |
af15babd VZ |
16216 | EOF |
16217 | ||
4f14bcd8 GD |
16218 | fi |
16219 | fi | |
af15babd | 16220 | |
4f14bcd8 | 16221 | for ac_func in vfork |
af15babd VZ |
16222 | do |
16223 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
321d2b14 | 16224 | echo "configure:16225: checking for $ac_func" >&5 |
af15babd VZ |
16225 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16226 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16227 | else | |
16228 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 16229 | #line 16230 "configure" |
af15babd VZ |
16230 | #include "confdefs.h" |
16231 | /* System header to define __stub macros and hopefully few prototypes, | |
16232 | which can conflict with char $ac_func(); below. */ | |
16233 | #include <assert.h> | |
16234 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16235 | /* We use char because int might match the return type of a gcc2 | |
16236 | builtin and then its argument prototype would still apply. */ | |
16237 | char $ac_func(); | |
16238 | ||
16239 | int main() { | |
16240 | ||
16241 | /* The GNU C library defines this for functions which it implements | |
16242 | to always fail with ENOSYS. Some functions are actually named | |
16243 | something starting with __ and the normal name is an alias. */ | |
16244 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16245 | choke me | |
16246 | #else | |
16247 | $ac_func(); | |
16248 | #endif | |
16249 | ||
16250 | ; return 0; } | |
16251 | EOF | |
321d2b14 | 16252 | if { (eval echo configure:16253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
16253 | rm -rf conftest* |
16254 | eval "ac_cv_func_$ac_func=yes" | |
16255 | else | |
16256 | echo "configure: failed program was:" >&5 | |
16257 | cat conftest.$ac_ext >&5 | |
16258 | rm -rf conftest* | |
16259 | eval "ac_cv_func_$ac_func=no" | |
16260 | fi | |
16261 | rm -f conftest* | |
16262 | fi | |
16263 | ||
16264 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16265 | echo "$ac_t""yes" 1>&6 | |
16266 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16267 | cat >> confdefs.h <<EOF | |
16268 | #define $ac_tr_func 1 | |
16269 | EOF | |
4f14bcd8 | 16270 | |
af15babd VZ |
16271 | else |
16272 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
16273 | fi |
16274 | done | |
16275 | ||
af15babd | 16276 | |
ade35f11 VZ |
16277 | for ac_func in mkstemp mktemp |
16278 | do | |
16279 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
321d2b14 | 16280 | echo "configure:16281: checking for $ac_func" >&5 |
ade35f11 VZ |
16281 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16282 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16283 | else | |
16284 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 16285 | #line 16286 "configure" |
ade35f11 VZ |
16286 | #include "confdefs.h" |
16287 | /* System header to define __stub macros and hopefully few prototypes, | |
16288 | which can conflict with char $ac_func(); below. */ | |
16289 | #include <assert.h> | |
16290 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16291 | /* We use char because int might match the return type of a gcc2 | |
16292 | builtin and then its argument prototype would still apply. */ | |
16293 | char $ac_func(); | |
16294 | ||
16295 | int main() { | |
16296 | ||
16297 | /* The GNU C library defines this for functions which it implements | |
16298 | to always fail with ENOSYS. Some functions are actually named | |
16299 | something starting with __ and the normal name is an alias. */ | |
16300 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16301 | choke me | |
16302 | #else | |
16303 | $ac_func(); | |
16304 | #endif | |
16305 | ||
16306 | ; return 0; } | |
16307 | EOF | |
321d2b14 | 16308 | if { (eval echo configure:16309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ade35f11 VZ |
16309 | rm -rf conftest* |
16310 | eval "ac_cv_func_$ac_func=yes" | |
16311 | else | |
16312 | echo "configure: failed program was:" >&5 | |
16313 | cat conftest.$ac_ext >&5 | |
16314 | rm -rf conftest* | |
16315 | eval "ac_cv_func_$ac_func=no" | |
16316 | fi | |
16317 | rm -f conftest* | |
16318 | fi | |
16319 | ||
16320 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16321 | echo "$ac_t""yes" 1>&6 | |
16322 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16323 | cat >> confdefs.h <<EOF | |
16324 | #define $ac_tr_func 1 | |
16325 | EOF | |
16326 | break | |
16327 | else | |
16328 | echo "$ac_t""no" 1>&6 | |
16329 | fi | |
16330 | done | |
16331 | ||
16332 | ||
4f14bcd8 | 16333 | echo $ac_n "checking for statfs""... $ac_c" 1>&6 |
321d2b14 | 16334 | echo "configure:16335: checking for statfs" >&5 |
4f14bcd8 GD |
16335 | if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then |
16336 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16337 | else | |
16338 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 16339 | #line 16340 "configure" |
4f14bcd8 GD |
16340 | #include "confdefs.h" |
16341 | ||
16342 | #if defined(__BSD__) | |
16343 | #include <sys/param.h> | |
16344 | #include <sys/mount.h> | |
16345 | #else | |
16346 | #include <sys/vfs.h> | |
16347 | #endif | |
16348 | ||
16349 | int main() { | |
16350 | ||
16351 | long l; | |
16352 | struct statfs fs; | |
16353 | statfs("/", &fs); | |
16354 | l = fs.f_bsize; | |
16355 | l += fs.f_blocks; | |
16356 | l += fs.f_bavail; | |
16357 | ||
16358 | ; return 0; } | |
16359 | EOF | |
321d2b14 | 16360 | if { (eval echo configure:16361: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
16361 | rm -rf conftest* |
16362 | ||
16363 | wx_cv_func_statfs=yes | |
16364 | ||
16365 | else | |
16366 | echo "configure: failed program was:" >&5 | |
16367 | cat conftest.$ac_ext >&5 | |
16368 | rm -rf conftest* | |
16369 | ||
16370 | wx_cv_func_statfs=no | |
af15babd VZ |
16371 | |
16372 | ||
16373 | fi | |
4f14bcd8 | 16374 | rm -f conftest* |
af15babd VZ |
16375 | |
16376 | fi | |
16377 | ||
4f14bcd8 GD |
16378 | echo "$ac_t""$wx_cv_func_statfs" 1>&6 |
16379 | ||
16380 | if test "$wx_cv_func_statfs" = "yes"; then | |
16381 | cat >> confdefs.h <<\EOF | |
16382 | #define HAVE_STATFS 1 | |
16383 | EOF | |
16384 | ||
16385 | else | |
16386 | echo $ac_n "checking for statvfs""... $ac_c" 1>&6 | |
321d2b14 | 16387 | echo "configure:16388: checking for statvfs" >&5 |
4f14bcd8 | 16388 | if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then |
af15babd VZ |
16389 | echo $ac_n "(cached) $ac_c" 1>&6 |
16390 | else | |
16391 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 16392 | #line 16393 "configure" |
af15babd | 16393 | #include "confdefs.h" |
af15babd | 16394 | |
4f14bcd8 GD |
16395 | #include <sys/statvfs.h> |
16396 | ||
af15babd VZ |
16397 | int main() { |
16398 | ||
4f14bcd8 GD |
16399 | long l; |
16400 | struct statvfs fs; | |
16401 | statvfs("/", &fs); | |
16402 | l = fs.f_bsize; | |
16403 | l += fs.f_blocks; | |
16404 | l += fs.f_bavail; | |
16405 | ||
af15babd VZ |
16406 | ; return 0; } |
16407 | EOF | |
321d2b14 | 16408 | if { (eval echo configure:16409: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd | 16409 | rm -rf conftest* |
4f14bcd8 GD |
16410 | |
16411 | wx_cv_func_statvfs=yes | |
16412 | ||
af15babd VZ |
16413 | else |
16414 | echo "configure: failed program was:" >&5 | |
16415 | cat conftest.$ac_ext >&5 | |
16416 | rm -rf conftest* | |
4f14bcd8 GD |
16417 | |
16418 | wx_cv_func_statvfs=no | |
16419 | ||
16420 | ||
af15babd VZ |
16421 | fi |
16422 | rm -f conftest* | |
4f14bcd8 | 16423 | |
af15babd VZ |
16424 | fi |
16425 | ||
4f14bcd8 | 16426 | echo "$ac_t""$wx_cv_func_statvfs" 1>&6 |
af15babd | 16427 | |
4f14bcd8 GD |
16428 | if test "$wx_cv_func_statvfs" = "yes"; then |
16429 | cat >> confdefs.h <<\EOF | |
16430 | #define HAVE_STATVFS 1 | |
16431 | EOF | |
af15babd | 16432 | |
4f14bcd8 GD |
16433 | else |
16434 | echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2 | |
16435 | fi | |
16436 | fi | |
af15babd | 16437 | |
4f14bcd8 GD |
16438 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
16439 | for ac_func in fcntl flock | |
af15babd VZ |
16440 | do |
16441 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
321d2b14 | 16442 | echo "configure:16443: checking for $ac_func" >&5 |
af15babd VZ |
16443 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16444 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16445 | else | |
16446 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 16447 | #line 16448 "configure" |
af15babd VZ |
16448 | #include "confdefs.h" |
16449 | /* System header to define __stub macros and hopefully few prototypes, | |
16450 | which can conflict with char $ac_func(); below. */ | |
16451 | #include <assert.h> | |
16452 | /* Override any gcc2 internal prototype to avoid an error. */ | |
af15babd VZ |
16453 | /* We use char because int might match the return type of a gcc2 |
16454 | builtin and then its argument prototype would still apply. */ | |
16455 | char $ac_func(); | |
16456 | ||
16457 | int main() { | |
16458 | ||
16459 | /* The GNU C library defines this for functions which it implements | |
16460 | to always fail with ENOSYS. Some functions are actually named | |
16461 | something starting with __ and the normal name is an alias. */ | |
16462 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16463 | choke me | |
16464 | #else | |
16465 | $ac_func(); | |
16466 | #endif | |
16467 | ||
16468 | ; return 0; } | |
16469 | EOF | |
321d2b14 | 16470 | if { (eval echo configure:16471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
16471 | rm -rf conftest* |
16472 | eval "ac_cv_func_$ac_func=yes" | |
16473 | else | |
16474 | echo "configure: failed program was:" >&5 | |
16475 | cat conftest.$ac_ext >&5 | |
16476 | rm -rf conftest* | |
16477 | eval "ac_cv_func_$ac_func=no" | |
16478 | fi | |
16479 | rm -f conftest* | |
16480 | fi | |
16481 | ||
16482 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16483 | echo "$ac_t""yes" 1>&6 | |
16484 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16485 | cat >> confdefs.h <<EOF | |
16486 | #define $ac_tr_func 1 | |
16487 | EOF | |
4f14bcd8 | 16488 | break |
af15babd VZ |
16489 | else |
16490 | echo "$ac_t""no" 1>&6 | |
16491 | fi | |
16492 | done | |
16493 | ||
16494 | ||
4f14bcd8 GD |
16495 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then |
16496 | echo "configure: warning: wxSingleInstanceChecker not available" 1>&2 | |
16497 | wxUSE_SNGLINST_CHECKER=no | |
16498 | fi | |
16499 | fi | |
af15babd | 16500 | |
4f14bcd8 | 16501 | for ac_func in timegm |
af15babd VZ |
16502 | do |
16503 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
321d2b14 | 16504 | echo "configure:16505: checking for $ac_func" >&5 |
af15babd VZ |
16505 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16506 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16507 | else | |
16508 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 16509 | #line 16510 "configure" |
af15babd VZ |
16510 | #include "confdefs.h" |
16511 | /* System header to define __stub macros and hopefully few prototypes, | |
16512 | which can conflict with char $ac_func(); below. */ | |
16513 | #include <assert.h> | |
16514 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16515 | /* We use char because int might match the return type of a gcc2 | |
16516 | builtin and then its argument prototype would still apply. */ | |
16517 | char $ac_func(); | |
16518 | ||
698dcdb6 | 16519 | int main() { |
698dcdb6 | 16520 | |
af15babd VZ |
16521 | /* The GNU C library defines this for functions which it implements |
16522 | to always fail with ENOSYS. Some functions are actually named | |
16523 | something starting with __ and the normal name is an alias. */ | |
16524 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16525 | choke me | |
16526 | #else | |
16527 | $ac_func(); | |
16528 | #endif | |
16529 | ||
698dcdb6 VZ |
16530 | ; return 0; } |
16531 | EOF | |
321d2b14 | 16532 | if { (eval echo configure:16533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16533 | rm -rf conftest* |
af15babd | 16534 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
16535 | else |
16536 | echo "configure: failed program was:" >&5 | |
16537 | cat conftest.$ac_ext >&5 | |
16538 | rm -rf conftest* | |
af15babd | 16539 | eval "ac_cv_func_$ac_func=no" |
1e487827 | 16540 | fi |
9952adac | 16541 | rm -f conftest* |
af15babd | 16542 | fi |
703e0a69 | 16543 | |
af15babd VZ |
16544 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16545 | echo "$ac_t""yes" 1>&6 | |
16546 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
4f14bcd8 GD |
16547 | cat >> confdefs.h <<EOF |
16548 | #define $ac_tr_func 1 | |
16549 | EOF | |
16550 | ||
16551 | else | |
16552 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
16553 | fi |
16554 | done | |
16555 | ||
16556 | ||
4f14bcd8 | 16557 | for ac_func in putenv setenv |
10f2d63a | 16558 | do |
698dcdb6 | 16559 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
321d2b14 | 16560 | echo "configure:16561: checking for $ac_func" >&5 |
698dcdb6 VZ |
16561 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16562 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16563 | else | |
16564 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 16565 | #line 16566 "configure" |
af15babd VZ |
16566 | #include "confdefs.h" |
16567 | /* System header to define __stub macros and hopefully few prototypes, | |
16568 | which can conflict with char $ac_func(); below. */ | |
16569 | #include <assert.h> | |
16570 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16571 | /* We use char because int might match the return type of a gcc2 | |
16572 | builtin and then its argument prototype would still apply. */ | |
16573 | char $ac_func(); | |
16574 | ||
16575 | int main() { | |
16576 | ||
16577 | /* The GNU C library defines this for functions which it implements | |
16578 | to always fail with ENOSYS. Some functions are actually named | |
16579 | something starting with __ and the normal name is an alias. */ | |
16580 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16581 | choke me | |
16582 | #else | |
16583 | $ac_func(); | |
16584 | #endif | |
16585 | ||
16586 | ; return 0; } | |
16587 | EOF | |
321d2b14 | 16588 | if { (eval echo configure:16589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
16589 | rm -rf conftest* |
16590 | eval "ac_cv_func_$ac_func=yes" | |
16591 | else | |
16592 | echo "configure: failed program was:" >&5 | |
16593 | cat conftest.$ac_ext >&5 | |
16594 | rm -rf conftest* | |
16595 | eval "ac_cv_func_$ac_func=no" | |
16596 | fi | |
16597 | rm -f conftest* | |
16598 | fi | |
16599 | ||
16600 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16601 | echo "$ac_t""yes" 1>&6 | |
16602 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16603 | cat >> confdefs.h <<EOF | |
16604 | #define $ac_tr_func 1 | |
16605 | EOF | |
4f14bcd8 | 16606 | break |
af15babd VZ |
16607 | else |
16608 | echo "$ac_t""no" 1>&6 | |
16609 | fi | |
af15babd VZ |
16610 | done |
16611 | ||
16612 | ||
4f14bcd8 GD |
16613 | HAVE_SOME_SLEEP_FUNC=0 |
16614 | if test "$USE_BEOS" = 1; then | |
16615 | cat >> confdefs.h <<\EOF | |
16616 | #define HAVE_SLEEP 1 | |
af15babd VZ |
16617 | EOF |
16618 | ||
4f14bcd8 | 16619 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
16620 | fi |
16621 | ||
4f14bcd8 GD |
16622 | if test "$USE_DARWIN" = 1; then |
16623 | cat >> confdefs.h <<\EOF | |
16624 | #define HAVE_USLEEP 1 | |
af15babd | 16625 | EOF |
10f2d63a | 16626 | |
4f14bcd8 | 16627 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
16628 | fi |
16629 | ||
4f14bcd8 GD |
16630 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then |
16631 | POSIX4_LINK= | |
16632 | for ac_func in nanosleep | |
16633 | do | |
16634 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
321d2b14 | 16635 | echo "configure:16636: checking for $ac_func" >&5 |
4f14bcd8 | 16636 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 | 16637 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 16638 | else |
4f14bcd8 | 16639 | cat > conftest.$ac_ext <<EOF |
321d2b14 | 16640 | #line 16641 "configure" |
10f2d63a | 16641 | #include "confdefs.h" |
4f14bcd8 GD |
16642 | /* System header to define __stub macros and hopefully few prototypes, |
16643 | which can conflict with char $ac_func(); below. */ | |
16644 | #include <assert.h> | |
10f2d63a VZ |
16645 | /* Override any gcc2 internal prototype to avoid an error. */ |
16646 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 16647 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16648 | char $ac_func(); |
698dcdb6 VZ |
16649 | |
16650 | int main() { | |
4f14bcd8 GD |
16651 | |
16652 | /* The GNU C library defines this for functions which it implements | |
16653 | to always fail with ENOSYS. Some functions are actually named | |
16654 | something starting with __ and the normal name is an alias. */ | |
16655 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16656 | choke me | |
16657 | #else | |
16658 | $ac_func(); | |
16659 | #endif | |
16660 | ||
698dcdb6 VZ |
16661 | ; return 0; } |
16662 | EOF | |
321d2b14 | 16663 | if { (eval echo configure:16664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16664 | rm -rf conftest* |
4f14bcd8 | 16665 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
16666 | else |
16667 | echo "configure: failed program was:" >&5 | |
16668 | cat conftest.$ac_ext >&5 | |
16669 | rm -rf conftest* | |
4f14bcd8 | 16670 | eval "ac_cv_func_$ac_func=no" |
698dcdb6 VZ |
16671 | fi |
16672 | rm -f conftest* | |
698dcdb6 | 16673 | fi |
4f14bcd8 GD |
16674 | |
16675 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 16676 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
16677 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
16678 | cat >> confdefs.h <<EOF | |
16679 | #define $ac_tr_func 1 | |
16680 | EOF | |
16681 | cat >> confdefs.h <<\EOF | |
16682 | #define HAVE_NANOSLEEP 1 | |
16683 | EOF | |
16684 | ||
10f2d63a | 16685 | else |
698dcdb6 | 16686 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 16687 | echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 |
321d2b14 | 16688 | echo "configure:16689: checking for nanosleep in -lposix4" >&5 |
4f14bcd8 | 16689 | ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
16690 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
16691 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 16692 | else |
698dcdb6 | 16693 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 16694 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 16695 | cat > conftest.$ac_ext <<EOF |
321d2b14 | 16696 | #line 16697 "configure" |
10f2d63a VZ |
16697 | #include "confdefs.h" |
16698 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16699 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 16700 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16701 | char nanosleep(); |
698dcdb6 VZ |
16702 | |
16703 | int main() { | |
4f14bcd8 | 16704 | nanosleep() |
698dcdb6 VZ |
16705 | ; return 0; } |
16706 | EOF | |
321d2b14 | 16707 | if { (eval echo configure:16708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16708 | rm -rf conftest* |
16709 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16710 | else | |
16711 | echo "configure: failed program was:" >&5 | |
16712 | cat conftest.$ac_ext >&5 | |
16713 | rm -rf conftest* | |
16714 | eval "ac_cv_lib_$ac_lib_var=no" | |
16715 | fi | |
16716 | rm -f conftest* | |
16717 | LIBS="$ac_save_LIBS" | |
10f2d63a | 16718 | |
698dcdb6 VZ |
16719 | fi |
16720 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16721 | echo "$ac_t""yes" 1>&6 | |
16722 | ||
4f14bcd8 GD |
16723 | cat >> confdefs.h <<\EOF |
16724 | #define HAVE_NANOSLEEP 1 | |
16725 | EOF | |
16726 | ||
3d63bc3a | 16727 | POSIX4_LINK=" -lposix4" |
4f14bcd8 | 16728 | |
10f2d63a | 16729 | else |
698dcdb6 | 16730 | echo "$ac_t""no" 1>&6 |
10f2d63a | 16731 | |
4f14bcd8 GD |
16732 | for ac_func in usleep |
16733 | do | |
16734 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
321d2b14 | 16735 | echo "configure:16736: checking for $ac_func" >&5 |
4f14bcd8 | 16736 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 | 16737 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 16738 | else |
698dcdb6 | 16739 | cat > conftest.$ac_ext <<EOF |
321d2b14 | 16740 | #line 16741 "configure" |
10f2d63a | 16741 | #include "confdefs.h" |
4f14bcd8 GD |
16742 | /* System header to define __stub macros and hopefully few prototypes, |
16743 | which can conflict with char $ac_func(); below. */ | |
16744 | #include <assert.h> | |
16745 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16746 | /* We use char because int might match the return type of a gcc2 | |
16747 | builtin and then its argument prototype would still apply. */ | |
16748 | char $ac_func(); | |
16749 | ||
16750 | int main() { | |
16751 | ||
16752 | /* The GNU C library defines this for functions which it implements | |
16753 | to always fail with ENOSYS. Some functions are actually named | |
16754 | something starting with __ and the normal name is an alias. */ | |
16755 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16756 | choke me | |
16757 | #else | |
16758 | $ac_func(); | |
16759 | #endif | |
16760 | ||
16761 | ; return 0; } | |
698dcdb6 | 16762 | EOF |
321d2b14 | 16763 | if { (eval echo configure:16764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16764 | rm -rf conftest* |
4f14bcd8 | 16765 | eval "ac_cv_func_$ac_func=yes" |
1e487827 | 16766 | else |
698dcdb6 | 16767 | echo "configure: failed program was:" >&5 |
10f2d63a | 16768 | cat conftest.$ac_ext >&5 |
698dcdb6 | 16769 | rm -rf conftest* |
4f14bcd8 | 16770 | eval "ac_cv_func_$ac_func=no" |
10f2d63a | 16771 | fi |
698dcdb6 | 16772 | rm -f conftest* |
10f2d63a | 16773 | fi |
4f14bcd8 GD |
16774 | |
16775 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 16776 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
16777 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
16778 | cat >> confdefs.h <<EOF | |
16779 | #define $ac_tr_func 1 | |
16780 | EOF | |
16781 | cat >> confdefs.h <<\EOF | |
16782 | #define HAVE_USLEEP 1 | |
16783 | EOF | |
16784 | ||
698dcdb6 VZ |
16785 | else |
16786 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 GD |
16787 | echo "configure: warning: wxSleep() function will not work" 1>&2 |
16788 | ||
10f2d63a | 16789 | fi |
4f14bcd8 | 16790 | done |
10f2d63a | 16791 | |
4f14bcd8 | 16792 | |
698dcdb6 | 16793 | |
6232543b | 16794 | fi |
10f2d63a | 16795 | |
698dcdb6 | 16796 | |
4f14bcd8 | 16797 | |
1e487827 | 16798 | fi |
4f14bcd8 | 16799 | done |
703e0a69 | 16800 | |
10f2d63a VZ |
16801 | fi |
16802 | ||
4f14bcd8 | 16803 | for ac_func in uname gethostname |
70846f0a | 16804 | do |
698dcdb6 | 16805 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
321d2b14 | 16806 | echo "configure:16807: checking for $ac_func" >&5 |
698dcdb6 VZ |
16807 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16808 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16809 | else | |
16810 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 16811 | #line 16812 "configure" |
70846f0a VZ |
16812 | #include "confdefs.h" |
16813 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16814 | which can conflict with char $ac_func(); below. */ |
70846f0a VZ |
16815 | #include <assert.h> |
16816 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16817 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16818 | builtin and then its argument prototype would still apply. */ |
16819 | char $ac_func(); | |
16820 | ||
16821 | int main() { | |
70846f0a VZ |
16822 | |
16823 | /* The GNU C library defines this for functions which it implements | |
16824 | to always fail with ENOSYS. Some functions are actually named | |
16825 | something starting with __ and the normal name is an alias. */ | |
16826 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16827 | choke me | |
16828 | #else | |
698dcdb6 | 16829 | $ac_func(); |
70846f0a VZ |
16830 | #endif |
16831 | ||
698dcdb6 | 16832 | ; return 0; } |
70846f0a | 16833 | EOF |
321d2b14 | 16834 | if { (eval echo configure:16835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16835 | rm -rf conftest* |
16836 | eval "ac_cv_func_$ac_func=yes" | |
16837 | else | |
16838 | echo "configure: failed program was:" >&5 | |
16839 | cat conftest.$ac_ext >&5 | |
16840 | rm -rf conftest* | |
16841 | eval "ac_cv_func_$ac_func=no" | |
16842 | fi | |
16843 | rm -f conftest* | |
16844 | fi | |
70846f0a | 16845 | |
698dcdb6 VZ |
16846 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16847 | echo "$ac_t""yes" 1>&6 | |
16848 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16849 | cat >> confdefs.h <<EOF | |
16850 | #define $ac_tr_func 1 | |
16851 | EOF | |
4f14bcd8 | 16852 | break |
698dcdb6 VZ |
16853 | else |
16854 | echo "$ac_t""no" 1>&6 | |
70846f0a VZ |
16855 | fi |
16856 | done | |
16857 | ||
698dcdb6 | 16858 | |
4f14bcd8 GD |
16859 | |
16860 | ac_ext=C | |
16861 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
16862 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16863 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
16864 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16865 | cross_compiling=$ac_cv_prog_cxx_cross | |
16866 | ||
16867 | ||
16868 | for ac_func in strtok_r | |
10f2d63a | 16869 | do |
4f14bcd8 | 16870 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
321d2b14 | 16871 | echo "configure:16872: checking for $ac_func" >&5 |
4f14bcd8 | 16872 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 VZ |
16873 | echo $ac_n "(cached) $ac_c" 1>&6 |
16874 | else | |
16875 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 16876 | #line 16877 "configure" |
10f2d63a | 16877 | #include "confdefs.h" |
4f14bcd8 GD |
16878 | /* System header to define __stub macros and hopefully few prototypes, |
16879 | which can conflict with char $ac_func(); below. */ | |
16880 | #include <assert.h> | |
16881 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16882 | #ifdef __cplusplus | |
16883 | extern "C" | |
16884 | #endif | |
16885 | /* We use char because int might match the return type of a gcc2 | |
16886 | builtin and then its argument prototype would still apply. */ | |
16887 | char $ac_func(); | |
16888 | ||
16889 | int main() { | |
16890 | ||
16891 | /* The GNU C library defines this for functions which it implements | |
16892 | to always fail with ENOSYS. Some functions are actually named | |
16893 | something starting with __ and the normal name is an alias. */ | |
16894 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16895 | choke me | |
16896 | #else | |
16897 | $ac_func(); | |
16898 | #endif | |
16899 | ||
16900 | ; return 0; } | |
698dcdb6 | 16901 | EOF |
321d2b14 | 16902 | if { (eval echo configure:16903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16903 | rm -rf conftest* |
4f14bcd8 | 16904 | eval "ac_cv_func_$ac_func=yes" |
1e487827 | 16905 | else |
698dcdb6 | 16906 | echo "configure: failed program was:" >&5 |
10f2d63a | 16907 | cat conftest.$ac_ext >&5 |
698dcdb6 | 16908 | rm -rf conftest* |
4f14bcd8 | 16909 | eval "ac_cv_func_$ac_func=no" |
10f2d63a | 16910 | fi |
698dcdb6 | 16911 | rm -f conftest* |
10f2d63a | 16912 | fi |
4f14bcd8 GD |
16913 | |
16914 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 16915 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 | 16916 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
698dcdb6 | 16917 | cat >> confdefs.h <<EOF |
4f14bcd8 | 16918 | #define $ac_tr_func 1 |
10f2d63a | 16919 | EOF |
698dcdb6 VZ |
16920 | |
16921 | else | |
16922 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
16923 | fi |
16924 | done | |
16925 | ||
698dcdb6 | 16926 | |
4f14bcd8 GD |
16927 | ac_ext=c |
16928 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
16929 | ac_cpp='$CPP $CPPFLAGS' | |
16930 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
16931 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16932 | cross_compiling=$ac_cv_prog_cc_cross | |
16933 | ||
16934 | ||
16935 | INET_LINK= | |
16936 | for ac_func in inet_addr | |
16937 | do | |
16938 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
321d2b14 | 16939 | echo "configure:16940: checking for $ac_func" >&5 |
4f14bcd8 | 16940 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 | 16941 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 16942 | else |
4f14bcd8 | 16943 | cat > conftest.$ac_ext <<EOF |
321d2b14 | 16944 | #line 16945 "configure" |
10f2d63a | 16945 | #include "confdefs.h" |
4f14bcd8 GD |
16946 | /* System header to define __stub macros and hopefully few prototypes, |
16947 | which can conflict with char $ac_func(); below. */ | |
16948 | #include <assert.h> | |
10f2d63a VZ |
16949 | /* Override any gcc2 internal prototype to avoid an error. */ |
16950 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 16951 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16952 | char $ac_func(); |
698dcdb6 VZ |
16953 | |
16954 | int main() { | |
4f14bcd8 GD |
16955 | |
16956 | /* The GNU C library defines this for functions which it implements | |
16957 | to always fail with ENOSYS. Some functions are actually named | |
16958 | something starting with __ and the normal name is an alias. */ | |
16959 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16960 | choke me | |
16961 | #else | |
16962 | $ac_func(); | |
16963 | #endif | |
16964 | ||
698dcdb6 VZ |
16965 | ; return 0; } |
16966 | EOF | |
321d2b14 | 16967 | if { (eval echo configure:16968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16968 | rm -rf conftest* |
4f14bcd8 | 16969 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
16970 | else |
16971 | echo "configure: failed program was:" >&5 | |
16972 | cat conftest.$ac_ext >&5 | |
16973 | rm -rf conftest* | |
4f14bcd8 | 16974 | eval "ac_cv_func_$ac_func=no" |
698dcdb6 VZ |
16975 | fi |
16976 | rm -f conftest* | |
698dcdb6 | 16977 | fi |
4f14bcd8 GD |
16978 | |
16979 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 16980 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
16981 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
16982 | cat >> confdefs.h <<EOF | |
16983 | #define $ac_tr_func 1 | |
16984 | EOF | |
16985 | cat >> confdefs.h <<\EOF | |
16986 | #define HAVE_INET_ADDR 1 | |
10f2d63a VZ |
16987 | EOF |
16988 | ||
16989 | else | |
698dcdb6 | 16990 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 16991 | echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6 |
321d2b14 | 16992 | echo "configure:16993: checking for inet_addr in -lnsl" >&5 |
4f14bcd8 | 16993 | ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
16994 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
16995 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 16996 | else |
698dcdb6 | 16997 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 16998 | LIBS="-lnsl $LIBS" |
698dcdb6 | 16999 | cat > conftest.$ac_ext <<EOF |
321d2b14 | 17000 | #line 17001 "configure" |
10f2d63a VZ |
17001 | #include "confdefs.h" |
17002 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17003 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 17004 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 17005 | char inet_addr(); |
698dcdb6 VZ |
17006 | |
17007 | int main() { | |
4f14bcd8 | 17008 | inet_addr() |
698dcdb6 VZ |
17009 | ; return 0; } |
17010 | EOF | |
321d2b14 | 17011 | if { (eval echo configure:17012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17012 | rm -rf conftest* |
17013 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17014 | else | |
17015 | echo "configure: failed program was:" >&5 | |
17016 | cat conftest.$ac_ext >&5 | |
17017 | rm -rf conftest* | |
17018 | eval "ac_cv_lib_$ac_lib_var=no" | |
17019 | fi | |
17020 | rm -f conftest* | |
17021 | LIBS="$ac_save_LIBS" | |
17022 | ||
17023 | fi | |
17024 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17025 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 17026 | INET_LINK="nsl" |
10f2d63a | 17027 | else |
698dcdb6 | 17028 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 17029 | echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6 |
321d2b14 | 17030 | echo "configure:17031: checking for inet_addr in -lresolv" >&5 |
4f14bcd8 | 17031 | ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
17032 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
17033 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 17034 | else |
698dcdb6 | 17035 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 17036 | LIBS="-lresolv $LIBS" |
698dcdb6 | 17037 | cat > conftest.$ac_ext <<EOF |
321d2b14 | 17038 | #line 17039 "configure" |
10f2d63a VZ |
17039 | #include "confdefs.h" |
17040 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17041 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 17042 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 17043 | char inet_addr(); |
698dcdb6 VZ |
17044 | |
17045 | int main() { | |
4f14bcd8 | 17046 | inet_addr() |
698dcdb6 VZ |
17047 | ; return 0; } |
17048 | EOF | |
321d2b14 | 17049 | if { (eval echo configure:17050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17050 | rm -rf conftest* |
17051 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17052 | else | |
17053 | echo "configure: failed program was:" >&5 | |
17054 | cat conftest.$ac_ext >&5 | |
17055 | rm -rf conftest* | |
17056 | eval "ac_cv_lib_$ac_lib_var=no" | |
17057 | fi | |
17058 | rm -f conftest* | |
17059 | LIBS="$ac_save_LIBS" | |
17060 | ||
17061 | fi | |
17062 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17063 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 17064 | INET_LINK="resolv" |
698dcdb6 | 17065 | else |
4f14bcd8 | 17066 | echo "$ac_t""no" 1>&6 |
3c011993 | 17067 | echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6 |
321d2b14 | 17068 | echo "configure:17069: checking for inet_addr in -lsocket" >&5 |
3c011993 VZ |
17069 | ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'` |
17070 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17071 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17072 | else | |
17073 | ac_save_LIBS="$LIBS" | |
17074 | LIBS="-lsocket $LIBS" | |
17075 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 17076 | #line 17077 "configure" |
3c011993 VZ |
17077 | #include "confdefs.h" |
17078 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17079 | /* We use char because int might match the return type of a gcc2 | |
17080 | builtin and then its argument prototype would still apply. */ | |
17081 | char inet_addr(); | |
17082 | ||
17083 | int main() { | |
17084 | inet_addr() | |
17085 | ; return 0; } | |
17086 | EOF | |
321d2b14 | 17087 | if { (eval echo configure:17088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3c011993 VZ |
17088 | rm -rf conftest* |
17089 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17090 | else | |
17091 | echo "configure: failed program was:" >&5 | |
17092 | cat conftest.$ac_ext >&5 | |
17093 | rm -rf conftest* | |
17094 | eval "ac_cv_lib_$ac_lib_var=no" | |
17095 | fi | |
17096 | rm -f conftest* | |
17097 | LIBS="$ac_save_LIBS" | |
17098 | ||
17099 | fi | |
17100 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17101 | echo "$ac_t""yes" 1>&6 | |
17102 | INET_LINK="socket" | |
17103 | ||
17104 | else | |
17105 | echo "$ac_t""no" 1>&6 | |
17106 | fi | |
17107 | ||
17108 | ||
4f14bcd8 | 17109 | fi |
698dcdb6 | 17110 | |
4f14bcd8 | 17111 | |
698dcdb6 | 17112 | fi |
4f14bcd8 GD |
17113 | |
17114 | ||
698dcdb6 VZ |
17115 | |
17116 | fi | |
4f14bcd8 GD |
17117 | done |
17118 | ||
17119 | ||
17120 | for ac_func in inet_aton | |
17121 | do | |
17122 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
321d2b14 | 17123 | echo "configure:17124: checking for $ac_func" >&5 |
4f14bcd8 | 17124 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 VZ |
17125 | echo $ac_n "(cached) $ac_c" 1>&6 |
17126 | else | |
4f14bcd8 | 17127 | cat > conftest.$ac_ext <<EOF |
321d2b14 | 17128 | #line 17129 "configure" |
f6bcfd97 | 17129 | #include "confdefs.h" |
4f14bcd8 GD |
17130 | /* System header to define __stub macros and hopefully few prototypes, |
17131 | which can conflict with char $ac_func(); below. */ | |
17132 | #include <assert.h> | |
f6bcfd97 BP |
17133 | /* Override any gcc2 internal prototype to avoid an error. */ |
17134 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 17135 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 17136 | char $ac_func(); |
698dcdb6 VZ |
17137 | |
17138 | int main() { | |
4f14bcd8 GD |
17139 | |
17140 | /* The GNU C library defines this for functions which it implements | |
17141 | to always fail with ENOSYS. Some functions are actually named | |
17142 | something starting with __ and the normal name is an alias. */ | |
17143 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17144 | choke me | |
17145 | #else | |
17146 | $ac_func(); | |
17147 | #endif | |
17148 | ||
698dcdb6 VZ |
17149 | ; return 0; } |
17150 | EOF | |
321d2b14 | 17151 | if { (eval echo configure:17152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 17152 | rm -rf conftest* |
4f14bcd8 | 17153 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
17154 | else |
17155 | echo "configure: failed program was:" >&5 | |
17156 | cat conftest.$ac_ext >&5 | |
17157 | rm -rf conftest* | |
4f14bcd8 | 17158 | eval "ac_cv_func_$ac_func=no" |
698dcdb6 VZ |
17159 | fi |
17160 | rm -f conftest* | |
698dcdb6 | 17161 | fi |
4f14bcd8 GD |
17162 | |
17163 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 17164 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
17165 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
17166 | cat >> confdefs.h <<EOF | |
17167 | #define $ac_tr_func 1 | |
17168 | EOF | |
17169 | cat >> confdefs.h <<\EOF | |
17170 | #define HAVE_INET_ATON 1 | |
17171 | EOF | |
17172 | ||
10f2d63a | 17173 | else |
698dcdb6 | 17174 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 17175 | echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6 |
321d2b14 | 17176 | echo "configure:17177: checking for inet_aton in -l$INET_LINK" >&5 |
4f14bcd8 | 17177 | ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
17178 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
17179 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 17180 | else |
698dcdb6 | 17181 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 17182 | LIBS="-l$INET_LINK $LIBS" |
698dcdb6 | 17183 | cat > conftest.$ac_ext <<EOF |
321d2b14 | 17184 | #line 17185 "configure" |
10f2d63a | 17185 | #include "confdefs.h" |
6232543b | 17186 | /* Override any gcc2 internal prototype to avoid an error. */ |
6232543b | 17187 | /* We use char because int might match the return type of a gcc2 |
698dcdb6 | 17188 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 17189 | char inet_aton(); |
698dcdb6 VZ |
17190 | |
17191 | int main() { | |
4f14bcd8 | 17192 | inet_aton() |
698dcdb6 VZ |
17193 | ; return 0; } |
17194 | EOF | |
321d2b14 | 17195 | if { (eval echo configure:17196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17196 | rm -rf conftest* |
17197 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17198 | else | |
17199 | echo "configure: failed program was:" >&5 | |
17200 | cat conftest.$ac_ext >&5 | |
17201 | rm -rf conftest* | |
17202 | eval "ac_cv_lib_$ac_lib_var=no" | |
17203 | fi | |
17204 | rm -f conftest* | |
17205 | LIBS="$ac_save_LIBS" | |
10f2d63a | 17206 | |
698dcdb6 VZ |
17207 | fi |
17208 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17209 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 GD |
17210 | cat >> confdefs.h <<\EOF |
17211 | #define HAVE_INET_ATON 1 | |
17212 | EOF | |
17213 | ||
698dcdb6 VZ |
17214 | else |
17215 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
17216 | fi |
17217 | ||
4f14bcd8 | 17218 | |
10f2d63a | 17219 | fi |
4f14bcd8 | 17220 | done |
10f2d63a | 17221 | |
4f14bcd8 GD |
17222 | |
17223 | if test "x$INET_LINK" != "x"; then | |
17224 | cat >> confdefs.h <<\EOF | |
17225 | #define HAVE_INET_ADDR 1 | |
17226 | EOF | |
17227 | ||
3d63bc3a | 17228 | INET_LINK=" -l$INET_LINK" |
6232543b | 17229 | fi |
10f2d63a | 17230 | |
1e487827 | 17231 | fi |
703e0a69 | 17232 | |
698dcdb6 | 17233 | |
4f14bcd8 GD |
17234 | cat > confcache <<\EOF |
17235 | # This file is a shell script that caches the results of configure | |
17236 | # tests run on this system so they can be shared between configure | |
17237 | # scripts and configure runs. It is not useful on other systems. | |
17238 | # If it contains results you don't want to keep, you may remove or edit it. | |
17239 | # | |
17240 | # By default, configure uses ./config.cache as the cache file, | |
17241 | # creating it if it does not exist already. You can give configure | |
17242 | # the --cache-file=FILE option to use a different cache file; that is | |
17243 | # what configure does when it calls configure scripts in | |
17244 | # subdirectories, so they share the cache. | |
17245 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
17246 | # config.status only pays attention to the cache file if you give it the | |
17247 | # --recheck option to rerun configure. | |
17248 | # | |
f6bcfd97 | 17249 | EOF |
4f14bcd8 GD |
17250 | # The following way of writing the cache mishandles newlines in values, |
17251 | # but we know of no workaround that is simple, portable, and efficient. | |
17252 | # So, don't put newlines in cache variables' values. | |
17253 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
17254 | # and sets the high bit in the cache file unless we assign to the vars. | |
17255 | (set) 2>&1 | | |
17256 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
17257 | *ac_space=\ *) | |
17258 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
17259 | # turns \\\\ into \\, and sed turns \\ into \). | |
17260 | sed -n \ | |
17261 | -e "s/'/'\\\\''/g" \ | |
17262 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
17263 | ;; | |
17264 | *) | |
17265 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
17266 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
17267 | ;; | |
17268 | esac >> confcache | |
17269 | if cmp -s $cache_file confcache; then | |
17270 | : | |
17271 | else | |
17272 | if test -w $cache_file; then | |
17273 | echo "updating cache $cache_file" | |
17274 | cat confcache > $cache_file | |
f6bcfd97 | 17275 | else |
4f14bcd8 | 17276 | echo "not updating unwritable cache $cache_file" |
f6bcfd97 | 17277 | fi |
4f14bcd8 GD |
17278 | fi |
17279 | rm -f confcache | |
f6bcfd97 | 17280 | |
4f14bcd8 GD |
17281 | |
17282 | ||
009fead0 | 17283 | CPP_MT_FLAG= |
4f14bcd8 GD |
17284 | if test "$TOOLKIT" != "MSW"; then |
17285 | ||
009fead0 | 17286 | |
7274f1c7 | 17287 | THREADS_LINK= |
009fead0 | 17288 | THREADS_CFLAGS= |
7274f1c7 RL |
17289 | |
17290 | if test "$wxUSE_THREADS" = "yes" ; then | |
17291 | if test "$wxUSE_WINE" = 1 ; then | |
156b2523 | 17292 | echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2 |
7274f1c7 RL |
17293 | wxUSE_THREADS="no" |
17294 | elif test "$USE_BEOS" = 1; then | |
156b2523 | 17295 | echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2 |
7274f1c7 RL |
17296 | wxUSE_THREADS="no" |
17297 | fi | |
4f14bcd8 | 17298 | fi |
4f14bcd8 | 17299 | |
7274f1c7 | 17300 | if test "$wxUSE_THREADS" = "yes" ; then |
009fead0 | 17301 | |
3010d50a | 17302 | |
009fead0 VZ |
17303 | THREAD_OPTS="-pthread" |
17304 | case "${host}" in | |
17305 | *-*-solaris2* | *-*-sunos4* ) | |
17306 | if test "x$GCC" = "xyes"; then | |
126be6b4 | 17307 | THREAD_OPTS="-pthreads $THREAD_OPTS" |
009fead0 VZ |
17308 | else |
17309 | THREAD_OPTS="-mt $THREAD_OPTS" | |
17310 | fi | |
17311 | ;; | |
17312 | *-*-freebsd*) | |
17313 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
17314 | ;; | |
4101db81 | 17315 | *-*-darwin*) |
8f4a9a10 | 17316 | THREAD_OPTS="" |
4101db81 | 17317 | ;; |
8f4a9a10 | 17318 | *-*-aix*) |
009fead0 VZ |
17319 | THREAD_OPTS="pthreads" |
17320 | ;; | |
009fead0 | 17321 | esac |
4f14bcd8 | 17322 | |
02a1dfba | 17323 | THREAD_OPTS="$THREAD_OPTS pthread none" |
595e0e44 | 17324 | |
009fead0 VZ |
17325 | THREADS_OK=no |
17326 | for flag in $THREAD_OPTS; do | |
17327 | case $flag in | |
17328 | none) | |
17329 | echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6 | |
321d2b14 | 17330 | echo "configure:17331: checking whether pthreads work without any flags" >&5 |
009fead0 | 17331 | ;; |
698dcdb6 | 17332 | |
009fead0 VZ |
17333 | -*) |
17334 | echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6 | |
321d2b14 | 17335 | echo "configure:17336: checking whether pthreads work with $flag" >&5 |
009fead0 VZ |
17336 | THREADS_CFLAGS="$flag" |
17337 | ;; | |
698dcdb6 | 17338 | |
009fead0 VZ |
17339 | *) |
17340 | echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6 | |
321d2b14 | 17341 | echo "configure:17342: checking for the pthreads library -l$flag" >&5 |
009fead0 VZ |
17342 | THREADS_LINK="-l$flag" |
17343 | ;; | |
17344 | esac | |
10f2d63a | 17345 | |
009fead0 VZ |
17346 | save_LIBS="$LIBS" |
17347 | save_CFLAGS="$CFLAGS" | |
17348 | LIBS="$THREADS_LINK $LIBS" | |
04727afd | 17349 | CFLAGS="$THREADS_CFLAGS $CFLAGS" |
10f2d63a | 17350 | |
009fead0 | 17351 | cat > conftest.$ac_ext <<EOF |
321d2b14 | 17352 | #line 17353 "configure" |
009fead0 VZ |
17353 | #include "confdefs.h" |
17354 | #include <pthread.h> | |
4f14bcd8 | 17355 | int main() { |
009fead0 | 17356 | pthread_create(0,0,0,0); |
698dcdb6 VZ |
17357 | ; return 0; } |
17358 | EOF | |
321d2b14 | 17359 | if { (eval echo configure:17360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 17360 | rm -rf conftest* |
009fead0 | 17361 | THREADS_OK=yes |
10f2d63a | 17362 | else |
698dcdb6 VZ |
17363 | echo "configure: failed program was:" >&5 |
17364 | cat conftest.$ac_ext >&5 | |
6232543b | 17365 | fi |
698dcdb6 | 17366 | rm -f conftest* |
698dcdb6 | 17367 | |
009fead0 VZ |
17368 | LIBS="$save_LIBS" |
17369 | CFLAGS="$save_CFLAGS" | |
d9b9876f | 17370 | |
009fead0 VZ |
17371 | echo "$ac_t""$THREADS_OK" 1>&6 |
17372 | if test "x$THREADS_OK" = "xyes"; then | |
17373 | break; | |
17374 | fi | |
d9b9876f | 17375 | |
009fead0 VZ |
17376 | THREADS_LINK="" |
17377 | THREADS_CFLAGS="" | |
17378 | done | |
4f14bcd8 | 17379 | |
009fead0 VZ |
17380 | if test "x$THREADS_OK" != "xyes"; then |
17381 | wxUSE_THREADS=no | |
17382 | echo "configure: warning: No thread support on this system... disabled" 1>&2 | |
17383 | else | |
fe5a9cab VZ |
17384 | LIBS="$THREADS_LINK $THREADS_CFLAGS $LIBS" |
17385 | ||
009fead0 | 17386 | echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6 |
321d2b14 | 17387 | echo "configure:17388: checking if more special flags are required for pthreads" >&5 |
009fead0 VZ |
17388 | flag=no |
17389 | case "${host}" in | |
17390 | *-aix* | *-freebsd*) | |
17391 | flag="-D_THREAD_SAFE" | |
17392 | ;; | |
17393 | *solaris* | alpha*-osf*) | |
17394 | flag="-D_REENTRANT" | |
17395 | ;; | |
17396 | esac | |
17397 | echo "$ac_t""${flag}" 1>&6 | |
17398 | if test "x$flag" != xno; then | |
04727afd | 17399 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" |
009fead0 VZ |
17400 | fi |
17401 | ||
009fead0 | 17402 | if test "x$THREADS_CFLAGS" != "x"; then |
04727afd | 17403 | CFLAGS="$CFLAGS $THREADS_CFLAGS" |
009fead0 VZ |
17404 | CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS" |
17405 | fi | |
17406 | fi | |
4f14bcd8 | 17407 | fi |
4f14bcd8 | 17408 | |
7274f1c7 RL |
17409 | if test "$wxUSE_THREADS" = "yes" ; then |
17410 | for ac_func in thr_setconcurrency | |
4f14bcd8 GD |
17411 | do |
17412 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
321d2b14 | 17413 | echo "configure:17414: checking for $ac_func" >&5 |
4f14bcd8 | 17414 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 VZ |
17415 | echo $ac_n "(cached) $ac_c" 1>&6 |
17416 | else | |
4f14bcd8 | 17417 | cat > conftest.$ac_ext <<EOF |
321d2b14 | 17418 | #line 17419 "configure" |
d9b9876f | 17419 | #include "confdefs.h" |
4f14bcd8 GD |
17420 | /* System header to define __stub macros and hopefully few prototypes, |
17421 | which can conflict with char $ac_func(); below. */ | |
17422 | #include <assert.h> | |
17423 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17424 | /* We use char because int might match the return type of a gcc2 | |
17425 | builtin and then its argument prototype would still apply. */ | |
17426 | char $ac_func(); | |
17427 | ||
698dcdb6 | 17428 | int main() { |
d9b9876f | 17429 | |
4f14bcd8 GD |
17430 | /* The GNU C library defines this for functions which it implements |
17431 | to always fail with ENOSYS. Some functions are actually named | |
17432 | something starting with __ and the normal name is an alias. */ | |
17433 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17434 | choke me | |
17435 | #else | |
17436 | $ac_func(); | |
17437 | #endif | |
17438 | ||
698dcdb6 VZ |
17439 | ; return 0; } |
17440 | EOF | |
321d2b14 | 17441 | if { (eval echo configure:17442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 17442 | rm -rf conftest* |
4f14bcd8 | 17443 | eval "ac_cv_func_$ac_func=yes" |
d9b9876f | 17444 | else |
698dcdb6 VZ |
17445 | echo "configure: failed program was:" >&5 |
17446 | cat conftest.$ac_ext >&5 | |
17447 | rm -rf conftest* | |
4f14bcd8 | 17448 | eval "ac_cv_func_$ac_func=no" |
6232543b | 17449 | fi |
698dcdb6 | 17450 | rm -f conftest* |
1e487827 | 17451 | fi |
698dcdb6 | 17452 | |
4f14bcd8 GD |
17453 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17454 | echo "$ac_t""yes" 1>&6 | |
17455 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17456 | cat >> confdefs.h <<EOF | |
17457 | #define $ac_tr_func 1 | |
d9b9876f | 17458 | EOF |
4f14bcd8 GD |
17459 | |
17460 | else | |
17461 | echo "$ac_t""no" 1>&6 | |
10f2d63a | 17462 | fi |
4f14bcd8 | 17463 | done |
10f2d63a | 17464 | |
10f2d63a | 17465 | |
7274f1c7 | 17466 | for ac_hdr in sched.h |
4f14bcd8 GD |
17467 | do |
17468 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
17469 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
321d2b14 | 17470 | echo "configure:17471: checking for $ac_hdr" >&5 |
4f14bcd8 GD |
17471 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
17472 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 17473 | else |
4f14bcd8 | 17474 | cat > conftest.$ac_ext <<EOF |
321d2b14 | 17475 | #line 17476 "configure" |
4f14bcd8 GD |
17476 | #include "confdefs.h" |
17477 | #include <$ac_hdr> | |
13111b2a | 17478 | EOF |
4f14bcd8 | 17479 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
321d2b14 | 17480 | { (eval echo configure:17481: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
17481 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
17482 | if test -z "$ac_err"; then | |
17483 | rm -rf conftest* | |
17484 | eval "ac_cv_header_$ac_safe=yes" | |
17485 | else | |
17486 | echo "$ac_err" >&5 | |
17487 | echo "configure: failed program was:" >&5 | |
17488 | cat conftest.$ac_ext >&5 | |
17489 | rm -rf conftest* | |
17490 | eval "ac_cv_header_$ac_safe=no" | |
13111b2a | 17491 | fi |
4f14bcd8 | 17492 | rm -f conftest* |
10f2d63a | 17493 | fi |
4f14bcd8 GD |
17494 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
17495 | echo "$ac_t""yes" 1>&6 | |
17496 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
698dcdb6 | 17497 | cat >> confdefs.h <<EOF |
4f14bcd8 | 17498 | #define $ac_tr_hdr 1 |
f6bcfd97 | 17499 | EOF |
4f14bcd8 GD |
17500 | |
17501 | else | |
17502 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 | 17503 | fi |
4f14bcd8 | 17504 | done |
f6bcfd97 | 17505 | |
009fead0 VZ |
17506 | if test "$ac_cv_header_sched_h" = "yes"; then |
17507 | echo $ac_n "checking for sched_yield""... $ac_c" 1>&6 | |
321d2b14 | 17508 | echo "configure:17509: checking for sched_yield" >&5 |
009fead0 | 17509 | if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then |
4f14bcd8 GD |
17510 | echo $ac_n "(cached) $ac_c" 1>&6 |
17511 | else | |
009fead0 | 17512 | cat > conftest.$ac_ext <<EOF |
321d2b14 | 17513 | #line 17514 "configure" |
4f14bcd8 | 17514 | #include "confdefs.h" |
009fead0 VZ |
17515 | /* System header to define __stub macros and hopefully few prototypes, |
17516 | which can conflict with char sched_yield(); below. */ | |
17517 | #include <assert.h> | |
4f14bcd8 GD |
17518 | /* Override any gcc2 internal prototype to avoid an error. */ |
17519 | /* We use char because int might match the return type of a gcc2 | |
17520 | builtin and then its argument prototype would still apply. */ | |
17521 | char sched_yield(); | |
10f2d63a | 17522 | |
4f14bcd8 | 17523 | int main() { |
009fead0 VZ |
17524 | |
17525 | /* The GNU C library defines this for functions which it implements | |
17526 | to always fail with ENOSYS. Some functions are actually named | |
17527 | something starting with __ and the normal name is an alias. */ | |
17528 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
17529 | choke me | |
17530 | #else | |
17531 | sched_yield(); | |
17532 | #endif | |
17533 | ||
4f14bcd8 | 17534 | ; return 0; } |
10f2d63a | 17535 | EOF |
321d2b14 | 17536 | if { (eval echo configure:17537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 | 17537 | rm -rf conftest* |
009fead0 | 17538 | eval "ac_cv_func_sched_yield=yes" |
10f2d63a | 17539 | else |
4f14bcd8 GD |
17540 | echo "configure: failed program was:" >&5 |
17541 | cat conftest.$ac_ext >&5 | |
17542 | rm -rf conftest* | |
009fead0 | 17543 | eval "ac_cv_func_sched_yield=no" |
10f2d63a | 17544 | fi |
4f14bcd8 | 17545 | rm -f conftest* |
4f14bcd8 | 17546 | fi |
009fead0 VZ |
17547 | |
17548 | if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then | |
4f14bcd8 GD |
17549 | echo "$ac_t""yes" 1>&6 |
17550 | cat >> confdefs.h <<\EOF | |
17551 | #define HAVE_SCHED_YIELD 1 | |
10f2d63a VZ |
17552 | EOF |
17553 | ||
4f14bcd8 GD |
17554 | else |
17555 | echo "$ac_t""no" 1>&6 | |
009fead0 VZ |
17556 | |
17557 | echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6 | |
321d2b14 | 17558 | echo "configure:17559: checking for sched_yield in -lposix4" >&5 |
4f14bcd8 GD |
17559 | ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'` |
17560 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17561 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17562 | else | |
17563 | ac_save_LIBS="$LIBS" | |
17564 | LIBS="-lposix4 $LIBS" | |
17565 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 17566 | #line 17567 "configure" |
4f14bcd8 GD |
17567 | #include "confdefs.h" |
17568 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17569 | /* We use char because int might match the return type of a gcc2 | |
17570 | builtin and then its argument prototype would still apply. */ | |
17571 | char sched_yield(); | |
47c13eb7 | 17572 | |
4f14bcd8 GD |
17573 | int main() { |
17574 | sched_yield() | |
17575 | ; return 0; } | |
10f2d63a | 17576 | EOF |
321d2b14 | 17577 | if { (eval echo configure:17578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
17578 | rm -rf conftest* |
17579 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 17580 | else |
4f14bcd8 GD |
17581 | echo "configure: failed program was:" >&5 |
17582 | cat conftest.$ac_ext >&5 | |
17583 | rm -rf conftest* | |
17584 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 17585 | fi |
4f14bcd8 GD |
17586 | rm -f conftest* |
17587 | LIBS="$ac_save_LIBS" | |
10f2d63a | 17588 | |
54276ccf | 17589 | fi |
4f14bcd8 GD |
17590 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
17591 | echo "$ac_t""yes" 1>&6 | |
17592 | cat >> confdefs.h <<\EOF | |
17593 | #define HAVE_SCHED_YIELD 1 | |
54276ccf | 17594 | EOF |
3d63bc3a | 17595 | POSIX4_LINK=" -lposix4" |
4f14bcd8 GD |
17596 | else |
17597 | echo "$ac_t""no" 1>&6 | |
17598 | echo "configure: warning: wxThread::Yield will not work properly" 1>&2 | |
009fead0 | 17599 | |
54276ccf VZ |
17600 | fi |
17601 | ||
009fead0 VZ |
17602 | |
17603 | ||
4f14bcd8 | 17604 | fi |
698dcdb6 | 17605 | |
009fead0 | 17606 | fi |
10f2d63a | 17607 | |
7274f1c7 | 17608 | HAVE_PRIOR_FUNCS=0 |
009fead0 | 17609 | echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6 |
321d2b14 | 17610 | echo "configure:17611: checking for pthread_attr_getschedpolicy" >&5 |
009fead0 | 17611 | if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then |
698dcdb6 VZ |
17612 | echo $ac_n "(cached) $ac_c" 1>&6 |
17613 | else | |
009fead0 | 17614 | cat > conftest.$ac_ext <<EOF |
321d2b14 | 17615 | #line 17616 "configure" |
422107f9 | 17616 | #include "confdefs.h" |
009fead0 VZ |
17617 | /* System header to define __stub macros and hopefully few prototypes, |
17618 | which can conflict with char pthread_attr_getschedpolicy(); below. */ | |
17619 | #include <assert.h> | |
4f14bcd8 GD |
17620 | /* Override any gcc2 internal prototype to avoid an error. */ |
17621 | /* We use char because int might match the return type of a gcc2 | |
17622 | builtin and then its argument prototype would still apply. */ | |
17623 | char pthread_attr_getschedpolicy(); | |
17624 | ||
17625 | int main() { | |
009fead0 VZ |
17626 | |
17627 | /* The GNU C library defines this for functions which it implements | |
17628 | to always fail with ENOSYS. Some functions are actually named | |
17629 | something starting with __ and the normal name is an alias. */ | |
17630 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
17631 | choke me | |
17632 | #else | |
17633 | pthread_attr_getschedpolicy(); | |
17634 | #endif | |
17635 | ||
4f14bcd8 | 17636 | ; return 0; } |
698dcdb6 | 17637 | EOF |
321d2b14 | 17638 | if { (eval echo configure:17639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 17639 | rm -rf conftest* |
009fead0 | 17640 | eval "ac_cv_func_pthread_attr_getschedpolicy=yes" |
422107f9 | 17641 | else |
698dcdb6 | 17642 | echo "configure: failed program was:" >&5 |
422107f9 | 17643 | cat conftest.$ac_ext >&5 |
698dcdb6 | 17644 | rm -rf conftest* |
009fead0 | 17645 | eval "ac_cv_func_pthread_attr_getschedpolicy=no" |
422107f9 | 17646 | fi |
698dcdb6 | 17647 | rm -f conftest* |
422107f9 | 17648 | fi |
009fead0 VZ |
17649 | |
17650 | if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then | |
698dcdb6 | 17651 | echo "$ac_t""yes" 1>&6 |
009fead0 | 17652 | echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6 |
321d2b14 | 17653 | echo "configure:17654: checking for pthread_attr_setschedparam" >&5 |
009fead0 | 17654 | if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then |
698dcdb6 | 17655 | echo $ac_n "(cached) $ac_c" 1>&6 |
422107f9 | 17656 | else |
009fead0 | 17657 | cat > conftest.$ac_ext <<EOF |
321d2b14 | 17658 | #line 17659 "configure" |
422107f9 | 17659 | #include "confdefs.h" |
009fead0 VZ |
17660 | /* System header to define __stub macros and hopefully few prototypes, |
17661 | which can conflict with char pthread_attr_setschedparam(); below. */ | |
17662 | #include <assert.h> | |
422107f9 VZ |
17663 | /* Override any gcc2 internal prototype to avoid an error. */ |
17664 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 17665 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 17666 | char pthread_attr_setschedparam(); |
698dcdb6 VZ |
17667 | |
17668 | int main() { | |
009fead0 VZ |
17669 | |
17670 | /* The GNU C library defines this for functions which it implements | |
17671 | to always fail with ENOSYS. Some functions are actually named | |
17672 | something starting with __ and the normal name is an alias. */ | |
17673 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
17674 | choke me | |
17675 | #else | |
17676 | pthread_attr_setschedparam(); | |
17677 | #endif | |
17678 | ||
698dcdb6 VZ |
17679 | ; return 0; } |
17680 | EOF | |
321d2b14 | 17681 | if { (eval echo configure:17682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 17682 | rm -rf conftest* |
009fead0 | 17683 | eval "ac_cv_func_pthread_attr_setschedparam=yes" |
698dcdb6 VZ |
17684 | else |
17685 | echo "configure: failed program was:" >&5 | |
17686 | cat conftest.$ac_ext >&5 | |
17687 | rm -rf conftest* | |
009fead0 | 17688 | eval "ac_cv_func_pthread_attr_setschedparam=no" |
698dcdb6 VZ |
17689 | fi |
17690 | rm -f conftest* | |
698dcdb6 | 17691 | fi |
009fead0 VZ |
17692 | |
17693 | if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then | |
698dcdb6 | 17694 | echo "$ac_t""yes" 1>&6 |
009fead0 | 17695 | echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6 |
321d2b14 | 17696 | echo "configure:17697: checking for sched_get_priority_max" >&5 |
009fead0 | 17697 | if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then |
698dcdb6 VZ |
17698 | echo $ac_n "(cached) $ac_c" 1>&6 |
17699 | else | |
009fead0 | 17700 | cat > conftest.$ac_ext <<EOF |
321d2b14 | 17701 | #line 17702 "configure" |
422107f9 | 17702 | #include "confdefs.h" |
009fead0 VZ |
17703 | /* System header to define __stub macros and hopefully few prototypes |
17704 | else | |
17705 | echo "$ac_t""no" 1>&6 | |
17706 | which can conflict with char sched_get_priority_max(); below. */ | |
17707 | #include <assert.h> | |
4f14bcd8 GD |
17708 | /* Override any gcc2 internal prototype to avoid an error. */ |
17709 | /* We use char because int might match the return type of a gcc2 | |
17710 | builtin and then its argument prototype would still apply. */ | |
17711 | char sched_get_priority_max(); | |
17712 | ||
17713 | int main() { | |
009fead0 VZ |
17714 | |
17715 | /* The GNU C library defines this for functions which it implements | |
17716 | to always fail with ENOSYS. Some functions are actually named | |
17717 | something starting with __ and the normal name is an alias. */ | |
17718 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
17719 | choke me | |
17720 | #else | |
17721 | sched_get_priority_max(); | |
17722 | #endif | |
17723 | ||
4f14bcd8 | 17724 | ; return 0; } |
698dcdb6 | 17725 | EOF |
321d2b14 | 17726 | if { (eval echo configure:17727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 17727 | rm -rf conftest* |
009fead0 | 17728 | eval "ac_cv_func_sched_get_priority_max=yes" |
422107f9 | 17729 | else |
698dcdb6 | 17730 | echo "configure: failed program was:" >&5 |
422107f9 | 17731 | cat conftest.$ac_ext >&5 |
698dcdb6 | 17732 | rm -rf conftest* |
009fead0 | 17733 | eval "ac_cv_func_sched_get_priority_max=no" |
422107f9 | 17734 | fi |
698dcdb6 | 17735 | rm -f conftest* |
422107f9 | 17736 | fi |
009fead0 VZ |
17737 | |
17738 | if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then | |
698dcdb6 | 17739 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
17740 | HAVE_PRIOR_FUNCS=1 |
17741 | else | |
17742 | echo "$ac_t""no" 1>&6 | |
17743 | echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6 | |
321d2b14 | 17744 | echo "configure:17745: checking for sched_get_priority_max in -lposix4" >&5 |
4f14bcd8 | 17745 | ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
17746 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
17747 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 17748 | else |
698dcdb6 | 17749 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 17750 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 17751 | cat > conftest.$ac_ext <<EOF |
321d2b14 | 17752 | #line 17753 "configure" |
422107f9 VZ |
17753 | #include "confdefs.h" |
17754 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17755 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 17756 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 17757 | char sched_get_priority_max(); |
698dcdb6 VZ |
17758 | |
17759 | int main() { | |
4f14bcd8 | 17760 | sched_get_priority_max() |
698dcdb6 VZ |
17761 | ; return 0; } |
17762 | EOF | |
321d2b14 | 17763 | if { (eval echo configure:17764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17764 | rm -rf conftest* |
17765 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17766 | else | |
17767 | echo "configure: failed program was:" >&5 | |
17768 | cat conftest.$ac_ext >&5 | |
17769 | rm -rf conftest* | |
17770 | eval "ac_cv_lib_$ac_lib_var=no" | |
17771 | fi | |
17772 | rm -f conftest* | |
17773 | LIBS="$ac_save_LIBS" | |
17774 | ||
17775 | fi | |
17776 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17777 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 17778 | |
7274f1c7 RL |
17779 | HAVE_PRIOR_FUNCS=1 |
17780 | POSIX4_LINK=" -lposix4" | |
17781 | ||
698dcdb6 VZ |
17782 | else |
17783 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
17784 | fi |
17785 | ||
7274f1c7 | 17786 | |
422107f9 VZ |
17787 | fi |
17788 | ||
7274f1c7 | 17789 | |
4f14bcd8 GD |
17790 | else |
17791 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
17792 | fi |
17793 | ||
7274f1c7 | 17794 | |
4f14bcd8 | 17795 | fi |
463abc64 | 17796 | |
463abc64 | 17797 | |
7274f1c7 RL |
17798 | if test "$HAVE_PRIOR_FUNCS" = 1; then |
17799 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 17800 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 |
698dcdb6 | 17801 | EOF |
463abc64 | 17802 | |
7274f1c7 RL |
17803 | else |
17804 | echo "configure: warning: Setting thread priority will not work" 1>&2 | |
17805 | fi | |
463abc64 | 17806 | |
009fead0 | 17807 | echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6 |
321d2b14 | 17808 | echo "configure:17809: checking for pthread_cancel" >&5 |
009fead0 | 17809 | if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then |
698dcdb6 | 17810 | echo $ac_n "(cached) $ac_c" 1>&6 |
422107f9 | 17811 | else |
009fead0 | 17812 | cat > conftest.$ac_ext <<EOF |
321d2b14 | 17813 | #line 17814 "configure" |
422107f9 | 17814 | #include "confdefs.h" |
009fead0 VZ |
17815 | /* System header to define __stub macros and hopefully few prototypes, |
17816 | which can conflict with char pthread_cancel(); below. */ | |
17817 | #include <assert.h> | |
422107f9 VZ |
17818 | /* Override any gcc2 internal prototype to avoid an error. */ |
17819 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 17820 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 17821 | char pthread_cancel(); |
698dcdb6 VZ |
17822 | |
17823 | int main() { | |
009fead0 VZ |
17824 | |
17825 | /* The GNU C library defines this for functions which it implements | |
17826 | to always fail with ENOSYS. Some functions are actually named | |
17827 | something starting with __ and the normal name is an alias. */ | |
17828 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
17829 | choke me | |
17830 | #else | |
17831 | pthread_cancel(); | |
17832 | #endif | |
17833 | ||
698dcdb6 VZ |
17834 | ; return 0; } |
17835 | EOF | |
321d2b14 | 17836 | if { (eval echo configure:17837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 17837 | rm -rf conftest* |
009fead0 | 17838 | eval "ac_cv_func_pthread_cancel=yes" |
698dcdb6 VZ |
17839 | else |
17840 | echo "configure: failed program was:" >&5 | |
17841 | cat conftest.$ac_ext >&5 | |
17842 | rm -rf conftest* | |
009fead0 | 17843 | eval "ac_cv_func_pthread_cancel=no" |
698dcdb6 VZ |
17844 | fi |
17845 | rm -f conftest* | |
698dcdb6 | 17846 | fi |
009fead0 VZ |
17847 | |
17848 | if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then | |
698dcdb6 | 17849 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
17850 | cat >> confdefs.h <<\EOF |
17851 | #define HAVE_PTHREAD_CANCEL 1 | |
17852 | EOF | |
17853 | ||
698dcdb6 VZ |
17854 | else |
17855 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 | 17856 | echo "configure: warning: wxThread::Kill() will not work properly" 1>&2 |
422107f9 VZ |
17857 | fi |
17858 | ||
422107f9 | 17859 | |
7274f1c7 | 17860 | echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6 |
321d2b14 | 17861 | echo "configure:17862: checking for pthread_cleanup_push/pop" >&5 |
4f14bcd8 GD |
17862 | if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then |
17863 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17864 | else | |
17865 | ||
7274f1c7 | 17866 | cat > conftest.$ac_ext <<EOF |
321d2b14 | 17867 | #line 17868 "configure" |
4f14bcd8 GD |
17868 | #include "confdefs.h" |
17869 | #include <pthread.h> | |
17870 | int main() { | |
17871 | ||
7274f1c7 RL |
17872 | pthread_cleanup_push(NULL, NULL); |
17873 | pthread_cleanup_pop(0); | |
17874 | ||
4f14bcd8 GD |
17875 | ; return 0; } |
17876 | EOF | |
321d2b14 | 17877 | if { (eval echo configure:17878: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
17878 | rm -rf conftest* |
17879 | ||
7274f1c7 RL |
17880 | wx_cv_func_pthread_cleanup_push=yes |
17881 | ||
4f14bcd8 GD |
17882 | else |
17883 | echo "configure: failed program was:" >&5 | |
17884 | cat conftest.$ac_ext >&5 | |
17885 | rm -rf conftest* | |
17886 | ||
7274f1c7 RL |
17887 | wx_cv_func_pthread_cleanup_push=no |
17888 | ||
4f14bcd8 GD |
17889 | fi |
17890 | rm -f conftest* | |
7274f1c7 | 17891 | |
10f2d63a VZ |
17892 | fi |
17893 | ||
4f14bcd8 GD |
17894 | echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6 |
17895 | ||
7274f1c7 RL |
17896 | if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then |
17897 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 17898 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 |
c7a2bf27 RR |
17899 | EOF |
17900 | ||
7274f1c7 | 17901 | fi |
4f14bcd8 | 17902 | |
7274f1c7 | 17903 | |
19bc6aad | 17904 | if test "x$wx_cv_lib_glibc21" = "xyes"; then |
7274f1c7 RL |
17905 | CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" |
17906 | fi | |
4f14bcd8 | 17907 | |
7274f1c7 | 17908 | echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6 |
321d2b14 | 17909 | echo "configure:17910: checking for pthread_mutexattr_t" >&5 |
4f14bcd8 | 17910 | if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then |
698dcdb6 VZ |
17911 | echo $ac_n "(cached) $ac_c" 1>&6 |
17912 | else | |
4f14bcd8 | 17913 | |
7274f1c7 | 17914 | cat > conftest.$ac_ext <<EOF |
321d2b14 | 17915 | #line 17916 "configure" |
0dcf9893 | 17916 | #include "confdefs.h" |
4f14bcd8 GD |
17917 | #include <pthread.h> |
17918 | int main() { | |
17919 | ||
7274f1c7 RL |
17920 | pthread_mutexattr_t attr; |
17921 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
17922 | ||
4f14bcd8 | 17923 | ; return 0; } |
698dcdb6 | 17924 | EOF |
321d2b14 | 17925 | if { (eval echo configure:17926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 17926 | rm -rf conftest* |
4f14bcd8 | 17927 | |
7274f1c7 RL |
17928 | wx_cv_type_pthread_mutexattr_t=yes |
17929 | ||
3fed1840 | 17930 | else |
698dcdb6 | 17931 | echo "configure: failed program was:" >&5 |
3fed1840 | 17932 | cat conftest.$ac_ext >&5 |
698dcdb6 | 17933 | rm -rf conftest* |
4f14bcd8 | 17934 | |
7274f1c7 RL |
17935 | wx_cv_type_pthread_mutexattr_t=no |
17936 | ||
4f14bcd8 | 17937 | |
3fed1840 | 17938 | fi |
698dcdb6 | 17939 | rm -f conftest* |
7274f1c7 | 17940 | |
3fed1840 | 17941 | fi |
4f14bcd8 GD |
17942 | |
17943 | echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6 | |
17944 | ||
7274f1c7 RL |
17945 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then |
17946 | cat >> confdefs.h <<\EOF | |
4f14bcd8 GD |
17947 | #define HAVE_PTHREAD_MUTEXATTR_T 1 |
17948 | EOF | |
17949 | ||
7274f1c7 RL |
17950 | else |
17951 | echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6 | |
321d2b14 | 17952 | echo "configure:17953: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 |
4f14bcd8 | 17953 | if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then |
698dcdb6 | 17954 | echo $ac_n "(cached) $ac_c" 1>&6 |
3fed1840 | 17955 | else |
4f14bcd8 | 17956 | |
7274f1c7 | 17957 | cat > conftest.$ac_ext <<EOF |
321d2b14 | 17958 | #line 17959 "configure" |
3fed1840 | 17959 | #include "confdefs.h" |
4f14bcd8 | 17960 | #include <pthread.h> |
698dcdb6 | 17961 | int main() { |
4f14bcd8 | 17962 | |
7274f1c7 RL |
17963 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; |
17964 | ||
698dcdb6 VZ |
17965 | ; return 0; } |
17966 | EOF | |
321d2b14 | 17967 | if { (eval echo configure:17968: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 17968 | rm -rf conftest* |
4f14bcd8 | 17969 | |
7274f1c7 RL |
17970 | wx_cv_type_pthread_rec_mutex_init=yes |
17971 | ||
698dcdb6 VZ |
17972 | else |
17973 | echo "configure: failed program was:" >&5 | |
17974 | cat conftest.$ac_ext >&5 | |
17975 | rm -rf conftest* | |
4f14bcd8 | 17976 | |
7274f1c7 RL |
17977 | wx_cv_type_pthread_rec_mutex_init=no |
17978 | ||
4f14bcd8 | 17979 | |
698dcdb6 VZ |
17980 | fi |
17981 | rm -f conftest* | |
7274f1c7 | 17982 | |
3fed1840 RR |
17983 | fi |
17984 | ||
4f14bcd8 | 17985 | echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6 |
7274f1c7 RL |
17986 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then |
17987 | cat >> confdefs.h <<\EOF | |
4f14bcd8 GD |
17988 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 |
17989 | EOF | |
3fed1840 | 17990 | |
7274f1c7 RL |
17991 | else |
17992 | echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2 | |
17993 | fi | |
17994 | fi | |
7274f1c7 | 17995 | fi |
3fed1840 | 17996 | |
4f14bcd8 GD |
17997 | fi |
17998 | ||
17999 | if test "$wxUSE_THREADS" = "yes"; then | |
3a922bb4 | 18000 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 18001 | #define wxUSE_THREADS 1 |
7b6058cd GD |
18002 | EOF |
18003 | ||
4f14bcd8 | 18004 | |
4f14bcd8 | 18005 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" |
698dcdb6 | 18006 | else |
4f14bcd8 GD |
18007 | if test "$ac_cv_func_strtok_r" = "yes"; then |
18008 | echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6 | |
321d2b14 | 18009 | echo "configure:18010: checking if -D_REENTRANT is needed" >&5 |
4f14bcd8 GD |
18010 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
18011 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
18012 | echo "$ac_t""yes" 1>&6 | |
18013 | else | |
18014 | echo "$ac_t""no" 1>&6 | |
18015 | fi | |
18016 | fi | |
18017 | fi | |
18018 | ||
18019 | if test "$WXGTK20" = 1 ; then | |
18020 | cat >> confdefs.h <<EOF | |
18021 | #define __WXGTK20__ $WXGTK20 | |
698dcdb6 | 18022 | EOF |
4f14bcd8 GD |
18023 | |
18024 | WXGTK12=1 | |
10f2d63a | 18025 | fi |
4f14bcd8 GD |
18026 | |
18027 | if test "$WXGTK12" = 1 ; then | |
18028 | cat >> confdefs.h <<EOF | |
18029 | #define __WXGTK12__ $WXGTK12 | |
18030 | EOF | |
18031 | ||
10f2d63a | 18032 | fi |
698dcdb6 | 18033 | |
4f14bcd8 GD |
18034 | if test "$WXGTK127" = 1 ; then |
18035 | cat >> confdefs.h <<EOF | |
18036 | #define __WXGTK127__ $WXGTK127 | |
698dcdb6 | 18037 | EOF |
4f14bcd8 | 18038 | |
698dcdb6 | 18039 | fi |
10f2d63a | 18040 | |
4f14bcd8 GD |
18041 | WXDEBUG= |
18042 | ||
18043 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
18044 | WXDEBUG="-g" | |
18045 | wxUSE_OPTIMISE=no | |
698dcdb6 | 18046 | fi |
4f14bcd8 GD |
18047 | |
18048 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
18049 | wxUSE_DEBUG_INFO=yes | |
18050 | WXDEBUG="-ggdb" | |
10f2d63a VZ |
18051 | fi |
18052 | ||
4f14bcd8 GD |
18053 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then |
18054 | cat >> confdefs.h <<\EOF | |
18055 | #define WXDEBUG 1 | |
18056 | EOF | |
18057 | ||
18058 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
10f2d63a | 18059 | else |
4f14bcd8 GD |
18060 | if test "$wxUSE_GTK" = 1 ; then |
18061 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
18062 | fi | |
18063 | fi | |
18064 | ||
18065 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
18066 | cat >> confdefs.h <<\EOF | |
18067 | #define wxUSE_MEMORY_TRACING 1 | |
18068 | EOF | |
18069 | ||
18070 | cat >> confdefs.h <<\EOF | |
18071 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
18072 | EOF | |
18073 | ||
18074 | cat >> confdefs.h <<\EOF | |
18075 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
18076 | EOF | |
18077 | ||
18078 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
18079 | fi | |
18080 | ||
18081 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
3d63bc3a | 18082 | DMALLOC_LIBS="-ldmalloc" |
4f14bcd8 GD |
18083 | fi |
18084 | ||
18085 | PROFILE= | |
18086 | if test "$wxUSE_PROFILE" = "yes" ; then | |
3d63bc3a | 18087 | PROFILE=" -pg" |
10f2d63a VZ |
18088 | fi |
18089 | ||
009fead0 VZ |
18090 | CODE_GEN_FLAGS= |
18091 | CODE_GEN_FLAGS_CXX= | |
88e30f2b | 18092 | if test "$GCC" = "yes" ; then |
4f14bcd8 GD |
18093 | if test "$wxUSE_NO_RTTI" = "yes" ; then |
18094 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
3a922bb4 | 18095 | fi |
4f14bcd8 GD |
18096 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
18097 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
18098 | fi | |
18099 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
18100 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
18101 | fi | |
4f14bcd8 GD |
18102 | if test "$USE_WIN32" = 1 ; then |
18103 | # I'm not even really sure what this was ever added to solve, | |
18104 | # but someone added it for mingw native builds, so I guess | |
18105 | # they had a reason, right?? | |
18106 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return" | |
18107 | fi | |
18108 | fi | |
18109 | ||
4f14bcd8 GD |
18110 | if test "$wxUSE_OPTIMISE" = "no" ; then |
18111 | OPTIMISE= | |
18112 | else | |
18113 | if test "$GCC" = yes ; then | |
18114 | OPTIMISE="-O2" | |
18115 | case "${host}" in | |
18116 | i586-*-*|i686-*-* ) | |
18117 | OPTIMISE="${OPTIMISE} " | |
18118 | ;; | |
18119 | esac | |
18120 | else | |
18121 | OPTIMISE="-O" | |
18122 | fi | |
18123 | fi | |
18124 | ||
18125 | if test "$WXWIN_COMPATIBILITY_2" = "yes"; then | |
18126 | cat >> confdefs.h <<\EOF | |
18127 | #define WXWIN_COMPATIBILITY_2 1 | |
18128 | EOF | |
18129 | ||
18130 | ||
18131 | WXWIN_COMPATIBILITY_2_2="yes" | |
18132 | fi | |
18133 | ||
0c9a1c32 | 18134 | if test "x$WXWIN_COMPATIBILITY_2_2" != "xno"; then |
4f14bcd8 GD |
18135 | cat >> confdefs.h <<\EOF |
18136 | #define WXWIN_COMPATIBILITY_2_2 1 | |
18137 | EOF | |
18138 | ||
10f2d63a VZ |
18139 | fi |
18140 | ||
698dcdb6 | 18141 | |
10f2d63a | 18142 | if test "$wxUSE_GUI" = "yes"; then |
698dcdb6 | 18143 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18144 | #define wxUSE_GUI 1 |
18145 | EOF | |
18146 | ||
698dcdb6 | 18147 | |
10f2d63a | 18148 | else |
698dcdb6 | 18149 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18150 | #define wxUSE_NOGUI 1 |
18151 | EOF | |
18152 | ||
18153 | fi | |
18154 | ||
698dcdb6 | 18155 | |
10f2d63a | 18156 | if test "$wxUSE_UNIX" = "yes"; then |
698dcdb6 | 18157 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18158 | #define wxUSE_UNIX 1 |
18159 | EOF | |
18160 | ||
18161 | fi | |
18162 | ||
698dcdb6 | 18163 | |
10f2d63a | 18164 | if test "$wxUSE_APPLE_IEEE" = "yes"; then |
698dcdb6 | 18165 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18166 | #define wxUSE_APPLE_IEEE 1 |
18167 | EOF | |
18168 | ||
18169 | fi | |
18170 | ||
1e6feb95 VZ |
18171 | if test "$wxUSE_TIMER" = "yes"; then |
18172 | cat >> confdefs.h <<\EOF | |
18173 | #define wxUSE_TIMER 1 | |
18174 | EOF | |
18175 | ||
18176 | fi | |
18177 | ||
10f2d63a | 18178 | if test "$wxUSE_WAVE" = "yes"; then |
698dcdb6 | 18179 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18180 | #define wxUSE_WAVE 1 |
18181 | EOF | |
18182 | ||
18183 | fi | |
18184 | ||
1e6feb95 VZ |
18185 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
18186 | cat >> confdefs.h <<\EOF | |
18187 | #define wxUSE_CMDLINE_PARSER 1 | |
18188 | EOF | |
18189 | ||
18190 | fi | |
18191 | ||
18192 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
18193 | cat >> confdefs.h <<\EOF | |
18194 | #define wxUSE_STOPWATCH 1 | |
18195 | EOF | |
18196 | ||
18197 | fi | |
18198 | ||
18199 | if test "$wxUSE_DATETIME" = "yes"; then | |
18200 | cat >> confdefs.h <<\EOF | |
18201 | #define wxUSE_DATETIME 1 | |
18202 | EOF | |
18203 | ||
18204 | fi | |
18205 | ||
18206 | if test "$wxUSE_TIMEDATE" = "yes"; then | |
18207 | cat >> confdefs.h <<\EOF | |
18208 | #define wxUSE_TIMEDATE 1 | |
18209 | EOF | |
18210 | ||
18211 | fi | |
18212 | ||
10f2d63a | 18213 | if test "$wxUSE_FILE" = "yes"; then |
698dcdb6 | 18214 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18215 | #define wxUSE_FILE 1 |
18216 | EOF | |
18217 | ||
18218 | fi | |
18219 | ||
1e6feb95 VZ |
18220 | if test "$wxUSE_FFILE" = "yes"; then |
18221 | cat >> confdefs.h <<\EOF | |
18222 | #define wxUSE_FFILE 1 | |
18223 | EOF | |
18224 | ||
18225 | fi | |
18226 | ||
24528b0c | 18227 | if test "$wxUSE_FILESYSTEM" = "yes"; then |
698dcdb6 | 18228 | cat >> confdefs.h <<\EOF |
24528b0c VS |
18229 | #define wxUSE_FILESYSTEM 1 |
18230 | EOF | |
18231 | ||
18232 | fi | |
18233 | ||
10f2d63a | 18234 | if test "$wxUSE_FS_INET" = "yes"; then |
698dcdb6 | 18235 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18236 | #define wxUSE_FS_INET 1 |
18237 | EOF | |
18238 | ||
18239 | fi | |
18240 | ||
18241 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
698dcdb6 | 18242 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18243 | #define wxUSE_FS_ZIP 1 |
18244 | EOF | |
18245 | ||
18246 | fi | |
18247 | ||
18248 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
698dcdb6 | 18249 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18250 | #define wxUSE_ZIPSTREAM 1 |
18251 | EOF | |
18252 | ||
18253 | fi | |
18254 | ||
eb4efbdc | 18255 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
698dcdb6 | 18256 | cat >> confdefs.h <<\EOF |
eb4efbdc VZ |
18257 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
18258 | EOF | |
18259 | ||
18260 | fi | |
18261 | ||
4f3c5f06 | 18262 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
698dcdb6 | 18263 | cat >> confdefs.h <<\EOF |
4f3c5f06 VZ |
18264 | #define wxUSE_SNGLINST_CHECKER 1 |
18265 | EOF | |
18266 | ||
18267 | fi | |
18268 | ||
10f2d63a | 18269 | if test "$wxUSE_BUSYINFO" = "yes"; then |
698dcdb6 | 18270 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18271 | #define wxUSE_BUSYINFO 1 |
18272 | EOF | |
18273 | ||
18274 | fi | |
18275 | ||
18276 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
698dcdb6 | 18277 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18278 | #define wxUSE_STD_IOSTREAM 1 |
18279 | EOF | |
18280 | ||
18281 | fi | |
18282 | ||
a3a584a7 VZ |
18283 | if test "$wxUSE_TEXTBUFFER" = "yes"; then |
18284 | cat >> confdefs.h <<\EOF | |
18285 | #define wxUSE_TEXTBUFFER 1 | |
18286 | EOF | |
18287 | ||
18288 | fi | |
18289 | ||
10f2d63a | 18290 | if test "$wxUSE_TEXTFILE" = "yes"; then |
a3a584a7 | 18291 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then |
156b2523 | 18292 | echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2 |
10f2d63a | 18293 | else |
698dcdb6 | 18294 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18295 | #define wxUSE_TEXTFILE 1 |
18296 | EOF | |
18297 | ||
18298 | fi | |
18299 | fi | |
18300 | ||
18301 | if test "$wxUSE_CONFIG" = "yes" ; then | |
18302 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
156b2523 | 18303 | echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2 |
10f2d63a | 18304 | else |
698dcdb6 | 18305 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18306 | #define wxUSE_CONFIG 1 |
18307 | EOF | |
18308 | ||
18309 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
18310 | fi | |
18311 | fi | |
18312 | ||
18313 | if test "$wxUSE_INTL" = "yes" ; then | |
18314 | if test "$wxUSE_FILE" != "yes"; then | |
156b2523 | 18315 | echo "configure: warning: I18n code requires wxFile... disabled" 1>&2 |
10f2d63a | 18316 | else |
698dcdb6 | 18317 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18318 | #define wxUSE_INTL 1 |
18319 | EOF | |
18320 | ||
18321 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
f6bcfd97 | 18322 | GUIDIST="$GUIDIST INTL_DIST" |
10f2d63a VZ |
18323 | fi |
18324 | fi | |
18325 | ||
18326 | if test "$wxUSE_LOG" = "yes"; then | |
698dcdb6 | 18327 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18328 | #define wxUSE_LOG 1 |
18329 | EOF | |
18330 | ||
d73be714 VZ |
18331 | |
18332 | if test "$wxUSE_LOGGUI" = "yes"; then | |
18333 | cat >> confdefs.h <<\EOF | |
18334 | #define wxUSE_LOGGUI 1 | |
18335 | EOF | |
18336 | ||
18337 | fi | |
18338 | ||
18339 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
18340 | cat >> confdefs.h <<\EOF | |
18341 | #define wxUSE_LOGWINDOW 1 | |
69d27ff7 MB |
18342 | EOF |
18343 | ||
18344 | fi | |
18345 | ||
18346 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
18347 | cat >> confdefs.h <<\EOF | |
18348 | #define wxUSE_LOG_DIALOG 1 | |
d73be714 VZ |
18349 | EOF |
18350 | ||
18351 | fi | |
10f2d63a VZ |
18352 | fi |
18353 | ||
18354 | if test "$wxUSE_LONGLONG" = "yes"; then | |
698dcdb6 | 18355 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18356 | #define wxUSE_LONGLONG 1 |
18357 | EOF | |
18358 | ||
18359 | fi | |
18360 | ||
e8f65ba6 | 18361 | if test "$wxUSE_GEOMETRY" = "yes"; then |
698dcdb6 | 18362 | cat >> confdefs.h <<\EOF |
e8f65ba6 RR |
18363 | #define wxUSE_GEOMETRY 1 |
18364 | EOF | |
18365 | ||
18366 | fi | |
18367 | ||
10f2d63a | 18368 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
698dcdb6 | 18369 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18370 | #define wxUSE_DIALUP_MANAGER 1 |
18371 | EOF | |
18372 | ||
70f7a477 | 18373 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" |
10f2d63a VZ |
18374 | fi |
18375 | ||
18376 | if test "$wxUSE_STREAMS" = "yes" ; then | |
698dcdb6 | 18377 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18378 | #define wxUSE_STREAMS 1 |
18379 | EOF | |
18380 | ||
18381 | fi | |
18382 | ||
1e487827 | 18383 | |
1e6feb95 | 18384 | if test "$wxUSE_DATETIME" = "yes"; then |
698dcdb6 | 18385 | for ac_func in strptime |
83307f33 | 18386 | do |
698dcdb6 | 18387 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
321d2b14 | 18388 | echo "configure:18389: checking for $ac_func" >&5 |
698dcdb6 VZ |
18389 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18390 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18391 | else | |
18392 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 18393 | #line 18394 "configure" |
83307f33 VZ |
18394 | #include "confdefs.h" |
18395 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 18396 | which can conflict with char $ac_func(); below. */ |
83307f33 VZ |
18397 | #include <assert.h> |
18398 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18399 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18400 | builtin and then its argument prototype would still apply. */ |
18401 | char $ac_func(); | |
18402 | ||
18403 | int main() { | |
83307f33 VZ |
18404 | |
18405 | /* The GNU C library defines this for functions which it implements | |
18406 | to always fail with ENOSYS. Some functions are actually named | |
18407 | something starting with __ and the normal name is an alias. */ | |
18408 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18409 | choke me | |
18410 | #else | |
698dcdb6 | 18411 | $ac_func(); |
83307f33 VZ |
18412 | #endif |
18413 | ||
698dcdb6 | 18414 | ; return 0; } |
83307f33 | 18415 | EOF |
321d2b14 | 18416 | if { (eval echo configure:18417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18417 | rm -rf conftest* |
18418 | eval "ac_cv_func_$ac_func=yes" | |
18419 | else | |
18420 | echo "configure: failed program was:" >&5 | |
18421 | cat conftest.$ac_ext >&5 | |
18422 | rm -rf conftest* | |
18423 | eval "ac_cv_func_$ac_func=no" | |
18424 | fi | |
18425 | rm -f conftest* | |
18426 | fi | |
83307f33 | 18427 | |
698dcdb6 VZ |
18428 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
18429 | echo "$ac_t""yes" 1>&6 | |
18430 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18431 | cat >> confdefs.h <<EOF | |
18432 | #define $ac_tr_func 1 | |
18433 | EOF | |
18434 | ||
18435 | else | |
18436 | echo "$ac_t""no" 1>&6 | |
83307f33 VZ |
18437 | fi |
18438 | done | |
18439 | ||
1e487827 | 18440 | |
62cc730f | 18441 | echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6 |
321d2b14 | 18442 | echo "configure:18443: checking for timezone variable in <time.h>" >&5 |
698dcdb6 VZ |
18443 | if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then |
18444 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18445 | else | |
18446 | ||
18447 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 18448 | #line 18449 "configure" |
360d6699 VZ |
18449 | #include "confdefs.h" |
18450 | ||
b4085ce6 | 18451 | #include <time.h> |
698dcdb6 VZ |
18452 | |
18453 | int main() { | |
360d6699 VZ |
18454 | |
18455 | int tz; | |
4f11a343 | 18456 | tz = timezone; |
698dcdb6 VZ |
18457 | |
18458 | ; return 0; } | |
18459 | EOF | |
321d2b14 | 18460 | if { (eval echo configure:18461: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
18461 | rm -rf conftest* |
18462 | ||
4f11a343 | 18463 | wx_cv_var_timezone=timezone |
698dcdb6 | 18464 | |
360d6699 | 18465 | else |
698dcdb6 VZ |
18466 | echo "configure: failed program was:" >&5 |
18467 | cat conftest.$ac_ext >&5 | |
18468 | rm -rf conftest* | |
18469 | ||
18470 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 18471 | #line 18472 "configure" |
360d6699 VZ |
18472 | #include "confdefs.h" |
18473 | ||
b4085ce6 | 18474 | #include <time.h> |
698dcdb6 VZ |
18475 | |
18476 | int main() { | |
360d6699 VZ |
18477 | |
18478 | int tz; | |
18479 | tz = _timezone; | |
698dcdb6 VZ |
18480 | |
18481 | ; return 0; } | |
18482 | EOF | |
321d2b14 | 18483 | if { (eval echo configure:18484: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
18484 | rm -rf conftest* |
18485 | ||
360d6699 | 18486 | wx_cv_var_timezone=_timezone |
698dcdb6 | 18487 | |
5357c8e8 | 18488 | else |
698dcdb6 VZ |
18489 | echo "configure: failed program was:" >&5 |
18490 | cat conftest.$ac_ext >&5 | |
18491 | rm -rf conftest* | |
18492 | ||
18493 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 18494 | #line 18495 "configure" |
5357c8e8 VZ |
18495 | #include "confdefs.h" |
18496 | ||
b4085ce6 | 18497 | #include <time.h> |
698dcdb6 VZ |
18498 | |
18499 | int main() { | |
5357c8e8 VZ |
18500 | |
18501 | int tz; | |
4f11a343 | 18502 | tz = __timezone; |
698dcdb6 VZ |
18503 | |
18504 | ; return 0; } | |
18505 | EOF | |
321d2b14 | 18506 | if { (eval echo configure:18507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
18507 | rm -rf conftest* |
18508 | ||
4f11a343 | 18509 | wx_cv_var_timezone=__timezone |
698dcdb6 | 18510 | |
360d6699 | 18511 | else |
698dcdb6 VZ |
18512 | echo "configure: failed program was:" >&5 |
18513 | cat conftest.$ac_ext >&5 | |
18514 | rm -rf conftest* | |
f9bc1684 VS |
18515 | |
18516 | if test "$USE_DOS" = 0 ; then | |
62cc730f | 18517 | echo "configure: warning: no timezone variable" 1>&2 |
f9bc1684 VS |
18518 | fi |
18519 | ||
698dcdb6 | 18520 | |
360d6699 | 18521 | fi |
698dcdb6 VZ |
18522 | rm -f conftest* |
18523 | ||
18524 | ||
360d6699 | 18525 | fi |
698dcdb6 VZ |
18526 | rm -f conftest* |
18527 | ||
18528 | ||
6232543b | 18529 | fi |
698dcdb6 VZ |
18530 | rm -f conftest* |
18531 | ||
18532 | ||
1e487827 | 18533 | fi |
703e0a69 | 18534 | |
698dcdb6 VZ |
18535 | echo "$ac_t""$wx_cv_var_timezone" 1>&6 |
18536 | ||
f9bc1684 | 18537 | if test "x$wx_cv_var_timezone" != x ; then |
698dcdb6 | 18538 | cat >> confdefs.h <<EOF |
360d6699 VZ |
18539 | #define WX_TIMEZONE $wx_cv_var_timezone |
18540 | EOF | |
18541 | ||
f9bc1684 | 18542 | fi |
698dcdb6 VZ |
18543 | |
18544 | for ac_func in localtime | |
afc31813 | 18545 | do |
698dcdb6 | 18546 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
321d2b14 | 18547 | echo "configure:18548: checking for $ac_func" >&5 |
698dcdb6 VZ |
18548 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18549 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18550 | else | |
18551 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 18552 | #line 18553 "configure" |
10f2d63a | 18553 | #include "confdefs.h" |
afc31813 | 18554 | /* System header to define __stub macros and hopefully few prototypes, |
698dcdb6 | 18555 | which can conflict with char $ac_func(); below. */ |
afc31813 VZ |
18556 | #include <assert.h> |
18557 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18558 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18559 | builtin and then its argument prototype would still apply. */ |
18560 | char $ac_func(); | |
18561 | ||
18562 | int main() { | |
afc31813 VZ |
18563 | |
18564 | /* The GNU C library defines this for functions which it implements | |
18565 | to always fail with ENOSYS. Some functions are actually named | |
18566 | something starting with __ and the normal name is an alias. */ | |
18567 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18568 | choke me | |
18569 | #else | |
698dcdb6 | 18570 | $ac_func(); |
afc31813 VZ |
18571 | #endif |
18572 | ||
698dcdb6 | 18573 | ; return 0; } |
10f2d63a | 18574 | EOF |
321d2b14 | 18575 | if { (eval echo configure:18576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18576 | rm -rf conftest* |
18577 | eval "ac_cv_func_$ac_func=yes" | |
18578 | else | |
18579 | echo "configure: failed program was:" >&5 | |
18580 | cat conftest.$ac_ext >&5 | |
18581 | rm -rf conftest* | |
18582 | eval "ac_cv_func_$ac_func=no" | |
18583 | fi | |
18584 | rm -f conftest* | |
18585 | fi | |
afc31813 | 18586 | |
698dcdb6 VZ |
18587 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
18588 | echo "$ac_t""yes" 1>&6 | |
18589 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18590 | cat >> confdefs.h <<EOF | |
18591 | #define $ac_tr_func 1 | |
18592 | EOF | |
18593 | ||
18594 | else | |
18595 | echo "$ac_t""no" 1>&6 | |
afc31813 VZ |
18596 | fi |
18597 | done | |
18598 | ||
1e487827 | 18599 | |
698dcdb6 VZ |
18600 | if test "$ac_cv_func_localtime" = "yes"; then |
18601 | echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 | |
321d2b14 | 18602 | echo "configure:18603: checking for tm_gmtoff in struct tm" >&5 |
698dcdb6 VZ |
18603 | if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then |
18604 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18605 | else | |
18606 | ||
18607 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 18608 | #line 18609 "configure" |
0470b1e6 VZ |
18609 | #include "confdefs.h" |
18610 | ||
b4085ce6 | 18611 | #include <time.h> |
698dcdb6 VZ |
18612 | |
18613 | int main() { | |
0470b1e6 VZ |
18614 | |
18615 | struct tm tm; | |
18616 | tm.tm_gmtoff++; | |
698dcdb6 VZ |
18617 | |
18618 | ; return 0; } | |
18619 | EOF | |
321d2b14 | 18620 | if { (eval echo configure:18621: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
18621 | rm -rf conftest* |
18622 | ||
f03a98d8 | 18623 | wx_cv_struct_tm_has_gmtoff=yes |
698dcdb6 | 18624 | |
0470b1e6 | 18625 | else |
698dcdb6 VZ |
18626 | echo "configure: failed program was:" >&5 |
18627 | cat conftest.$ac_ext >&5 | |
18628 | rm -rf conftest* | |
18629 | wx_cv_struct_tm_has_gmtoff=no | |
18630 | ||
0470b1e6 | 18631 | fi |
698dcdb6 VZ |
18632 | rm -f conftest* |
18633 | ||
1e487827 | 18634 | fi |
698dcdb6 VZ |
18635 | |
18636 | echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6 | |
6232543b VS |
18637 | fi |
18638 | ||
18639 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
698dcdb6 | 18640 | cat >> confdefs.h <<\EOF |
6232543b VS |
18641 | #define WX_GMTOFF_IN_TM 1 |
18642 | EOF | |
0470b1e6 | 18643 | |
3fcdd07b VZ |
18644 | fi |
18645 | ||
698dcdb6 | 18646 | for ac_func in gettimeofday ftime |
3fcdd07b | 18647 | do |
698dcdb6 | 18648 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
321d2b14 | 18649 | echo "configure:18650: checking for $ac_func" >&5 |
698dcdb6 VZ |
18650 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18651 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18652 | else | |
18653 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 18654 | #line 18655 "configure" |
3fcdd07b VZ |
18655 | #include "confdefs.h" |
18656 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 18657 | which can conflict with char $ac_func(); below. */ |
3fcdd07b VZ |
18658 | #include <assert.h> |
18659 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18660 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18661 | builtin and then its argument prototype would still apply. */ |
18662 | char $ac_func(); | |
18663 | ||
18664 | int main() { | |
3fcdd07b VZ |
18665 | |
18666 | /* The GNU C library defines this for functions which it implements | |
18667 | to always fail with ENOSYS. Some functions are actually named | |
18668 | something starting with __ and the normal name is an alias. */ | |
18669 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18670 | choke me | |
18671 | #else | |
698dcdb6 | 18672 | $ac_func(); |
3fcdd07b VZ |
18673 | #endif |
18674 | ||
698dcdb6 VZ |
18675 | ; return 0; } |
18676 | EOF | |
321d2b14 | 18677 | if { (eval echo configure:18678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18678 | rm -rf conftest* |
18679 | eval "ac_cv_func_$ac_func=yes" | |
18680 | else | |
18681 | echo "configure: failed program was:" >&5 | |
18682 | cat conftest.$ac_ext >&5 | |
18683 | rm -rf conftest* | |
18684 | eval "ac_cv_func_$ac_func=no" | |
18685 | fi | |
18686 | rm -f conftest* | |
18687 | fi | |
18688 | ||
18689 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18690 | echo "$ac_t""yes" 1>&6 | |
18691 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18692 | cat >> confdefs.h <<EOF | |
18693 | #define $ac_tr_func 1 | |
3fcdd07b VZ |
18694 | EOF |
18695 | break | |
698dcdb6 VZ |
18696 | else |
18697 | echo "$ac_t""no" 1>&6 | |
3fcdd07b VZ |
18698 | fi |
18699 | done | |
18700 | ||
afc31813 | 18701 | |
698dcdb6 VZ |
18702 | if test "$ac_cv_func_gettimeofday" = "yes"; then |
18703 | echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6 | |
321d2b14 | 18704 | echo "configure:18705: checking whether gettimeofday takes two arguments" >&5 |
698dcdb6 VZ |
18705 | if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then |
18706 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18707 | else | |
18708 | ||
18709 | ||
18710 | ac_ext=C | |
18711 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 18712 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
18713 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
18714 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
18715 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 18716 | |
698dcdb6 VZ |
18717 | |
18718 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 18719 | #line 18720 "configure" |
10f2d63a | 18720 | #include "confdefs.h" |
afc31813 VZ |
18721 | |
18722 | #include <sys/time.h> | |
18723 | #include <unistd.h> | |
698dcdb6 VZ |
18724 | |
18725 | int main() { | |
afc31813 VZ |
18726 | |
18727 | struct timeval tv; | |
776862b4 | 18728 | gettimeofday(&tv, NULL); |
698dcdb6 VZ |
18729 | |
18730 | ; return 0; } | |
18731 | EOF | |
321d2b14 | 18732 | if { (eval echo configure:18733: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 18733 | rm -rf conftest* |
afc31813 | 18734 | wx_cv_func_gettimeofday_has_2_args=yes |
10f2d63a | 18735 | else |
698dcdb6 VZ |
18736 | echo "configure: failed program was:" >&5 |
18737 | cat conftest.$ac_ext >&5 | |
18738 | rm -rf conftest* | |
18739 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 18740 | #line 18741 "configure" |
10f2d63a | 18741 | #include "confdefs.h" |
afc31813 VZ |
18742 | |
18743 | #include <sys/time.h> | |
18744 | #include <unistd.h> | |
698dcdb6 VZ |
18745 | |
18746 | int main() { | |
afc31813 VZ |
18747 | |
18748 | struct timeval tv; | |
18749 | gettimeofday(&tv); | |
698dcdb6 VZ |
18750 | |
18751 | ; return 0; } | |
18752 | EOF | |
321d2b14 | 18753 | if { (eval echo configure:18754: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 18754 | rm -rf conftest* |
afc31813 | 18755 | wx_cv_func_gettimeofday_has_2_args=no |
10f2d63a | 18756 | else |
698dcdb6 VZ |
18757 | echo "configure: failed program was:" >&5 |
18758 | cat conftest.$ac_ext >&5 | |
18759 | rm -rf conftest* | |
776862b4 VZ |
18760 | |
18761 | echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2 | |
18762 | wx_cv_func_gettimeofday_has_2_args=unknown | |
18763 | ||
698dcdb6 | 18764 | |
10f2d63a | 18765 | fi |
698dcdb6 VZ |
18766 | rm -f conftest* |
18767 | ||
10f2d63a | 18768 | fi |
698dcdb6 | 18769 | rm -f conftest* |
afc31813 | 18770 | ac_ext=c |
698dcdb6 | 18771 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 18772 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
18773 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
18774 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
18775 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a | 18776 | |
698dcdb6 | 18777 | |
afc31813 | 18778 | fi |
698dcdb6 VZ |
18779 | |
18780 | echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6 | |
c63c7106 | 18781 | |
afc31813 | 18782 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then |
698dcdb6 | 18783 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
18784 | #define WX_GETTIMEOFDAY_NO_TZ 1 |
18785 | EOF | |
18786 | ||
18787 | fi | |
18788 | fi | |
18789 | ||
698dcdb6 | 18790 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
18791 | #define wxUSE_TIMEDATE 1 |
18792 | EOF | |
18793 | ||
18794 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
18795 | fi | |
18796 | ||
698dcdb6 | 18797 | |
0feee163 VZ |
18798 | if test "$wxUSE_SOCKETS" = "yes"; then |
18799 | if test "$TOOLKIT" = "X11"; then | |
18800 | echo "configure: warning: wxSocket not yet supported under X11... disabled" 1>&2 | |
18801 | wxUSE_SOCKETS="no" | |
18802 | fi | |
18803 | fi | |
b089607b | 18804 | |
0feee163 VZ |
18805 | if test "$wxUSE_SOCKETS" = "yes"; then |
18806 | if test "$TOOLKIT" != "MSW"; then | |
3a922bb4 | 18807 | echo $ac_n "checking for socket""... $ac_c" 1>&6 |
321d2b14 | 18808 | echo "configure:18809: checking for socket" >&5 |
698dcdb6 VZ |
18809 | if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
18810 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 18811 | else |
698dcdb6 | 18812 | cat > conftest.$ac_ext <<EOF |
321d2b14 | 18813 | #line 18814 "configure" |
c63c7106 VZ |
18814 | #include "confdefs.h" |
18815 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 18816 | which can conflict with char socket(); below. */ |
c63c7106 VZ |
18817 | #include <assert.h> |
18818 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18819 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18820 | builtin and then its argument prototype would still apply. */ |
18821 | char socket(); | |
18822 | ||
18823 | int main() { | |
c63c7106 VZ |
18824 | |
18825 | /* The GNU C library defines this for functions which it implements | |
18826 | to always fail with ENOSYS. Some functions are actually named | |
18827 | something starting with __ and the normal name is an alias. */ | |
18828 | #if defined (__stub_socket) || defined (__stub___socket) | |
18829 | choke me | |
18830 | #else | |
698dcdb6 | 18831 | socket(); |
c63c7106 VZ |
18832 | #endif |
18833 | ||
698dcdb6 VZ |
18834 | ; return 0; } |
18835 | EOF | |
321d2b14 | 18836 | if { (eval echo configure:18837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18837 | rm -rf conftest* |
18838 | eval "ac_cv_func_socket=yes" | |
18839 | else | |
18840 | echo "configure: failed program was:" >&5 | |
18841 | cat conftest.$ac_ext >&5 | |
18842 | rm -rf conftest* | |
18843 | eval "ac_cv_func_socket=no" | |
18844 | fi | |
18845 | rm -f conftest* | |
18846 | fi | |
18847 | ||
18848 | if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
18849 | echo "$ac_t""yes" 1>&6 | |
c63c7106 VZ |
18850 | : |
18851 | else | |
698dcdb6 VZ |
18852 | echo "$ac_t""no" 1>&6 |
18853 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | |
321d2b14 | 18854 | echo "configure:18855: checking for socket in -lsocket" >&5 |
698dcdb6 VZ |
18855 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
18856 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18857 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 18858 | else |
698dcdb6 | 18859 | ac_save_LIBS="$LIBS" |
c63c7106 | 18860 | LIBS="-lsocket $LIBS" |
698dcdb6 | 18861 | cat > conftest.$ac_ext <<EOF |
321d2b14 | 18862 | #line 18863 "configure" |
c63c7106 VZ |
18863 | #include "confdefs.h" |
18864 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18865 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18866 | builtin and then its argument prototype would still apply. */ |
18867 | char socket(); | |
18868 | ||
18869 | int main() { | |
18870 | socket() | |
18871 | ; return 0; } | |
18872 | EOF | |
321d2b14 | 18873 | if { (eval echo configure:18874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18874 | rm -rf conftest* |
18875 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18876 | else | |
18877 | echo "configure: failed program was:" >&5 | |
18878 | cat conftest.$ac_ext >&5 | |
18879 | rm -rf conftest* | |
18880 | eval "ac_cv_lib_$ac_lib_var=no" | |
18881 | fi | |
18882 | rm -f conftest* | |
18883 | LIBS="$ac_save_LIBS" | |
18884 | ||
18885 | fi | |
18886 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
18887 | echo "$ac_t""yes" 1>&6 | |
d558c907 VS |
18888 | if test "$INET_LINK" != " -lsocket"; then |
18889 | INET_LINK="$INET_LINK -lsocket" | |
18890 | fi | |
c63c7106 | 18891 | else |
698dcdb6 | 18892 | echo "$ac_t""no" 1>&6 |
afc31813 | 18893 | |
3a922bb4 RL |
18894 | echo "configure: warning: socket library not found - sockets will be disabled" 1>&2 |
18895 | wxUSE_SOCKETS=no | |
18896 | ||
698dcdb6 | 18897 | |
6232543b | 18898 | fi |
b089607b | 18899 | |
3a922bb4 | 18900 | |
1e487827 | 18901 | fi |
afc31813 | 18902 | |
3a922bb4 | 18903 | fi |
0feee163 | 18904 | fi |
51a9faba | 18905 | |
0feee163 VZ |
18906 | if test "$wxUSE_SOCKETS" = "yes" ; then |
18907 | if test "$TOOLKIT" != "MSW"; then | |
3a922bb4 | 18908 | echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6 |
321d2b14 | 18909 | echo "configure:18910: checking what is the type of the third argument of getsockname" >&5 |
698dcdb6 VZ |
18910 | if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then |
18911 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18912 | else | |
18913 | ||
3a922bb4 RL |
18914 | |
18915 | ac_ext=C | |
698dcdb6 | 18916 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
1e487827 | 18917 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
18918 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
18919 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
18920 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 18921 | |
698dcdb6 | 18922 | |
3a922bb4 | 18923 | cat > conftest.$ac_ext <<EOF |
321d2b14 | 18924 | #line 18925 "configure" |
afc31813 | 18925 | #include "confdefs.h" |
51a9faba | 18926 | |
3a922bb4 RL |
18927 | #include <sys/types.h> |
18928 | #include <sys/socket.h> | |
18929 | ||
698dcdb6 | 18930 | int main() { |
51a9faba | 18931 | |
3a922bb4 RL |
18932 | socklen_t len; |
18933 | getsockname(0, 0, &len); | |
18934 | ||
698dcdb6 VZ |
18935 | ; return 0; } |
18936 | EOF | |
321d2b14 | 18937 | if { (eval echo configure:18938: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 18938 | rm -rf conftest* |
51a9faba | 18939 | wx_cv_type_getsockname3=socklen_t |
afc31813 | 18940 | else |
698dcdb6 VZ |
18941 | echo "configure: failed program was:" >&5 |
18942 | cat conftest.$ac_ext >&5 | |
18943 | rm -rf conftest* | |
18944 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 18945 | #line 18946 "configure" |
afc31813 | 18946 | #include "confdefs.h" |
51a9faba | 18947 | |
3a922bb4 RL |
18948 | #include <sys/types.h> |
18949 | #include <sys/socket.h> | |
18950 | ||
698dcdb6 | 18951 | int main() { |
51a9faba | 18952 | |
3a922bb4 RL |
18953 | size_t len; |
18954 | getsockname(0, 0, &len); | |
18955 | ||
698dcdb6 VZ |
18956 | ; return 0; } |
18957 | EOF | |
321d2b14 | 18958 | if { (eval echo configure:18959: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 18959 | rm -rf conftest* |
51a9faba | 18960 | wx_cv_type_getsockname3=size_t |
afc31813 | 18961 | else |
698dcdb6 VZ |
18962 | echo "configure: failed program was:" >&5 |
18963 | cat conftest.$ac_ext >&5 | |
18964 | rm -rf conftest* | |
18965 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 18966 | #line 18967 "configure" |
afc31813 | 18967 | #include "confdefs.h" |
51a9faba | 18968 | |
3a922bb4 RL |
18969 | #include <sys/types.h> |
18970 | #include <sys/socket.h> | |
18971 | ||
698dcdb6 | 18972 | int main() { |
51a9faba | 18973 | |
3a922bb4 RL |
18974 | int len; |
18975 | getsockname(0, 0, &len); | |
18976 | ||
698dcdb6 VZ |
18977 | ; return 0; } |
18978 | EOF | |
321d2b14 | 18979 | if { (eval echo configure:18980: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 18980 | rm -rf conftest* |
51a9faba | 18981 | wx_cv_type_getsockname3=int |
afc31813 | 18982 | else |
698dcdb6 VZ |
18983 | echo "configure: failed program was:" >&5 |
18984 | cat conftest.$ac_ext >&5 | |
18985 | rm -rf conftest* | |
18986 | wx_cv_type_getsockname3=unknown | |
3a922bb4 | 18987 | |
afc31813 | 18988 | fi |
698dcdb6 | 18989 | rm -f conftest* |
3a922bb4 | 18990 | |
afc31813 | 18991 | fi |
698dcdb6 | 18992 | rm -f conftest* |
3a922bb4 | 18993 | |
afc31813 | 18994 | fi |
698dcdb6 | 18995 | rm -f conftest* |
51a9faba | 18996 | |
3a922bb4 | 18997 | ac_ext=c |
698dcdb6 | 18998 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
afc31813 | 18999 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
19000 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
19001 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
19002 | cross_compiling=$ac_cv_prog_cc_cross | |
afc31813 | 19003 | |
3a922bb4 | 19004 | |
51a9faba | 19005 | fi |
698dcdb6 VZ |
19006 | |
19007 | echo "$ac_t""$wx_cv_type_getsockname3" 1>&6 | |
51a9faba | 19008 | |
3a922bb4 RL |
19009 | if test "$wx_cv_type_getsockname3" = "unknown"; then |
19010 | wxUSE_SOCKETS=no | |
19011 | echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2 | |
19012 | else | |
19013 | cat >> confdefs.h <<EOF | |
51a9faba VZ |
19014 | #define SOCKLEN_T $wx_cv_type_getsockname3 |
19015 | EOF | |
19016 | ||
3a922bb4 | 19017 | fi |
51a9faba VZ |
19018 | fi |
19019 | fi | |
afc31813 | 19020 | |
51a9faba | 19021 | if test "$wxUSE_SOCKETS" = "yes" ; then |
698dcdb6 | 19022 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
19023 | #define wxUSE_SOCKETS 1 |
19024 | EOF | |
19025 | ||
70f7a477 | 19026 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" |
afc31813 VZ |
19027 | fi |
19028 | ||
698dcdb6 | 19029 | |
dc3d889d VZ |
19030 | if test "$wxUSE_GUI" = "yes"; then |
19031 | ||
156b2523 GD |
19032 | if test "$TOOLKIT" = "MAC"; then |
19033 | echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2 | |
19034 | wxUSE_JOYSTICK=no | |
19035 | fi | |
19036 | if test "$TOOLKIT" = "MOTIF"; then | |
19037 | echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2 | |
19038 | wxUSE_JOYSTICK=no | |
f79bd02d JS |
19039 | fi |
19040 | if test "$TOOLKIT" = "X11"; then | |
19041 | echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2 | |
19042 | wxUSE_JOYSTICK=no | |
156b2523 GD |
19043 | fi |
19044 | ||
3a922bb4 RL |
19045 | if test "$TOOLKIT" != "MSW"; then |
19046 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
19047 | for ac_hdr in linux/joystick.h | |
10f2d63a | 19048 | do |
698dcdb6 VZ |
19049 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
19050 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
321d2b14 | 19051 | echo "configure:19052: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
19052 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
19053 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19054 | else | |
19055 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 19056 | #line 19057 "configure" |
10f2d63a | 19057 | #include "confdefs.h" |
698dcdb6 VZ |
19058 | #include <$ac_hdr> |
19059 | EOF | |
19060 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
321d2b14 | 19061 | { (eval echo configure:19062: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
19062 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
19063 | if test -z "$ac_err"; then | |
19064 | rm -rf conftest* | |
19065 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 19066 | else |
698dcdb6 VZ |
19067 | echo "$ac_err" >&5 |
19068 | echo "configure: failed program was:" >&5 | |
10f2d63a | 19069 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
19070 | rm -rf conftest* |
19071 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 19072 | fi |
698dcdb6 | 19073 | rm -f conftest* |
10f2d63a | 19074 | fi |
698dcdb6 VZ |
19075 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
19076 | echo "$ac_t""yes" 1>&6 | |
19077 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
19078 | cat >> confdefs.h <<EOF | |
19079 | #define $ac_tr_hdr 1 | |
10f2d63a | 19080 | EOF |
698dcdb6 VZ |
19081 | |
19082 | else | |
19083 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
19084 | fi |
19085 | done | |
19086 | ||
3a922bb4 RL |
19087 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then |
19088 | wxUSE_JOYSTICK=no | |
156b2523 | 19089 | echo "configure: warning: Joystick not supported by this system... disabled" 1>&2 |
3a922bb4 RL |
19090 | fi |
19091 | fi | |
19092 | fi | |
b089607b | 19093 | |
3a922bb4 RL |
19094 | if test "$wxUSE_JOYSTICK" = "yes"; then |
19095 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
19096 | #define wxUSE_JOYSTICK 1 |
19097 | EOF | |
19098 | ||
3a922bb4 RL |
19099 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
19100 | fi | |
dc3d889d VZ |
19101 | fi |
19102 | ||
698dcdb6 | 19103 | |
b089607b VZ |
19104 | if test "$TOOLKIT" != "MSW"; then |
19105 | ||
3a922bb4 RL |
19106 | HAVE_DL_FUNCS=0 |
19107 | HAVE_SHL_FUNCS=0 | |
0b9ab0bd | 19108 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then |
3a922bb4 RL |
19109 | if test "$USE_DARWIN" = 1; then |
19110 | HAVE_DL_FUNCS=1 | |
19111 | else | |
19112 | for ac_func in dlopen | |
10f2d63a | 19113 | do |
698dcdb6 | 19114 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
321d2b14 | 19115 | echo "configure:19116: checking for $ac_func" >&5 |
698dcdb6 VZ |
19116 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
19117 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19118 | else | |
19119 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 19120 | #line 19121 "configure" |
10f2d63a VZ |
19121 | #include "confdefs.h" |
19122 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 19123 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
19124 | #include <assert.h> |
19125 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19126 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
19127 | builtin and then its argument prototype would still apply. */ |
19128 | char $ac_func(); | |
19129 | ||
19130 | int main() { | |
10f2d63a VZ |
19131 | |
19132 | /* The GNU C library defines this for functions which it implements | |
19133 | to always fail with ENOSYS. Some functions are actually named | |
19134 | something starting with __ and the normal name is an alias. */ | |
19135 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19136 | choke me | |
19137 | #else | |
698dcdb6 | 19138 | $ac_func(); |
10f2d63a VZ |
19139 | #endif |
19140 | ||
698dcdb6 VZ |
19141 | ; return 0; } |
19142 | EOF | |
321d2b14 | 19143 | if { (eval echo configure:19144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
19144 | rm -rf conftest* |
19145 | eval "ac_cv_func_$ac_func=yes" | |
19146 | else | |
19147 | echo "configure: failed program was:" >&5 | |
19148 | cat conftest.$ac_ext >&5 | |
19149 | rm -rf conftest* | |
19150 | eval "ac_cv_func_$ac_func=no" | |
19151 | fi | |
19152 | rm -f conftest* | |
19153 | fi | |
19154 | ||
19155 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
19156 | echo "$ac_t""yes" 1>&6 | |
19157 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
19158 | cat >> confdefs.h <<EOF | |
19159 | #define $ac_tr_func 1 | |
19160 | EOF | |
19161 | ||
3a922bb4 | 19162 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19163 | #define HAVE_DLOPEN 1 |
19164 | EOF | |
19165 | ||
3a922bb4 RL |
19166 | HAVE_DL_FUNCS=1 |
19167 | ||
10f2d63a | 19168 | else |
698dcdb6 VZ |
19169 | echo "$ac_t""no" 1>&6 |
19170 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
321d2b14 | 19171 | echo "configure:19172: checking for dlopen in -ldl" >&5 |
698dcdb6 VZ |
19172 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
19173 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19174 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 19175 | else |
698dcdb6 | 19176 | ac_save_LIBS="$LIBS" |
10f2d63a | 19177 | LIBS="-ldl $LIBS" |
698dcdb6 | 19178 | cat > conftest.$ac_ext <<EOF |
321d2b14 | 19179 | #line 19180 "configure" |
10f2d63a VZ |
19180 | #include "confdefs.h" |
19181 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19182 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
19183 | builtin and then its argument prototype would still apply. */ |
19184 | char dlopen(); | |
19185 | ||
19186 | int main() { | |
19187 | dlopen() | |
19188 | ; return 0; } | |
19189 | EOF | |
321d2b14 | 19190 | if { (eval echo configure:19191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
19191 | rm -rf conftest* |
19192 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19193 | else | |
19194 | echo "configure: failed program was:" >&5 | |
19195 | cat conftest.$ac_ext >&5 | |
19196 | rm -rf conftest* | |
19197 | eval "ac_cv_lib_$ac_lib_var=no" | |
19198 | fi | |
19199 | rm -f conftest* | |
19200 | LIBS="$ac_save_LIBS" | |
19201 | ||
19202 | fi | |
19203 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19204 | echo "$ac_t""yes" 1>&6 | |
19205 | ||
3a922bb4 | 19206 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19207 | #define HAVE_DLOPEN 1 |
19208 | EOF | |
19209 | ||
3a922bb4 | 19210 | HAVE_DL_FUNCS=1 |
3d63bc3a | 19211 | DL_LINK=" -ldl$DL_LINK" |
3a922bb4 | 19212 | |
10f2d63a | 19213 | else |
698dcdb6 | 19214 | echo "$ac_t""no" 1>&6 |
10f2d63a | 19215 | |
3a922bb4 | 19216 | for ac_func in shl_load |
10f2d63a | 19217 | do |
698dcdb6 | 19218 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
321d2b14 | 19219 | echo "configure:19220: checking for $ac_func" >&5 |
698dcdb6 VZ |
19220 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
19221 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19222 | else | |
19223 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 19224 | #line 19225 "configure" |
10f2d63a VZ |
19225 | #include "confdefs.h" |
19226 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 19227 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
19228 | #include <assert.h> |
19229 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19230 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
19231 | builtin and then its argument prototype would still apply. */ |
19232 | char $ac_func(); | |
19233 | ||
19234 | int main() { | |
10f2d63a VZ |
19235 | |
19236 | /* The GNU C library defines this for functions which it implements | |
19237 | to always fail with ENOSYS. Some functions are actually named | |
19238 | something starting with __ and the normal name is an alias. */ | |
19239 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19240 | choke me | |
19241 | #else | |
698dcdb6 | 19242 | $ac_func(); |
10f2d63a VZ |
19243 | #endif |
19244 | ||
698dcdb6 VZ |
19245 | ; return 0; } |
19246 | EOF | |
321d2b14 | 19247 | if { (eval echo configure:19248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
19248 | rm -rf conftest* |
19249 | eval "ac_cv_func_$ac_func=yes" | |
19250 | else | |
19251 | echo "configure: failed program was:" >&5 | |
19252 | cat conftest.$ac_ext >&5 | |
19253 | rm -rf conftest* | |
19254 | eval "ac_cv_func_$ac_func=no" | |
19255 | fi | |
19256 | rm -f conftest* | |
19257 | fi | |
19258 | ||
19259 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
19260 | echo "$ac_t""yes" 1>&6 | |
19261 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
19262 | cat >> confdefs.h <<EOF | |
19263 | #define $ac_tr_func 1 | |
19264 | EOF | |
19265 | ||
3a922bb4 | 19266 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19267 | #define HAVE_SHL_LOAD 1 |
19268 | EOF | |
19269 | ||
3a922bb4 RL |
19270 | HAVE_SHL_FUNCS=1 |
19271 | ||
10f2d63a | 19272 | else |
698dcdb6 VZ |
19273 | echo "$ac_t""no" 1>&6 |
19274 | echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6 | |
321d2b14 | 19275 | echo "configure:19276: checking for dld in -lshl_load" >&5 |
698dcdb6 VZ |
19276 | ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'` |
19277 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19278 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 19279 | else |
698dcdb6 | 19280 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 19281 | LIBS="-lshl_load $LIBS" |
698dcdb6 | 19282 | cat > conftest.$ac_ext <<EOF |
321d2b14 | 19283 | #line 19284 "configure" |
f6bcfd97 BP |
19284 | #include "confdefs.h" |
19285 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19286 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
19287 | builtin and then its argument prototype would still apply. */ |
19288 | char dld(); | |
19289 | ||
19290 | int main() { | |
19291 | dld() | |
19292 | ; return 0; } | |
19293 | EOF | |
321d2b14 | 19294 | if { (eval echo configure:19295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
19295 | rm -rf conftest* |
19296 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19297 | else | |
19298 | echo "configure: failed program was:" >&5 | |
19299 | cat conftest.$ac_ext >&5 | |
19300 | rm -rf conftest* | |
19301 | eval "ac_cv_lib_$ac_lib_var=no" | |
19302 | fi | |
19303 | rm -f conftest* | |
19304 | LIBS="$ac_save_LIBS" | |
f6bcfd97 | 19305 | |
698dcdb6 VZ |
19306 | fi |
19307 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19308 | echo "$ac_t""yes" 1>&6 | |
19309 | ||
3a922bb4 | 19310 | HAVE_SHL_FUNCS=1 |
3d63bc3a | 19311 | DL_LINK=" -ldld$DL_LINK" |
3a922bb4 | 19312 | |
698dcdb6 VZ |
19313 | else |
19314 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
19315 | fi |
19316 | ||
3a922bb4 | 19317 | |
10f2d63a VZ |
19318 | fi |
19319 | done | |
19320 | ||
3a922bb4 | 19321 | |
10f2d63a VZ |
19322 | fi |
19323 | ||
3a922bb4 | 19324 | |
10f2d63a VZ |
19325 | fi |
19326 | done | |
19327 | ||
1e487827 | 19328 | |
3a922bb4 RL |
19329 | if test "$HAVE_DL_FUNCS" = 1; then |
19330 | for ac_func in dlerror | |
f6bcfd97 | 19331 | do |
698dcdb6 | 19332 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
321d2b14 | 19333 | echo "configure:19334: checking for $ac_func" >&5 |
698dcdb6 VZ |
19334 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
19335 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19336 | else | |
19337 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 19338 | #line 19339 "configure" |
f6bcfd97 BP |
19339 | #include "confdefs.h" |
19340 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 19341 | which can conflict with char $ac_func(); below. */ |
f6bcfd97 BP |
19342 | #include <assert.h> |
19343 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19344 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
19345 | builtin and then its argument prototype would still apply. */ |
19346 | char $ac_func(); | |
19347 | ||
19348 | int main() { | |
f6bcfd97 BP |
19349 | |
19350 | /* The GNU C library defines this for functions which it implements | |
19351 | to always fail with ENOSYS. Some functions are actually named | |
19352 | something starting with __ and the normal name is an alias. */ | |
19353 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19354 | choke me | |
19355 | #else | |
698dcdb6 | 19356 | $ac_func(); |
f6bcfd97 BP |
19357 | #endif |
19358 | ||
698dcdb6 VZ |
19359 | ; return 0; } |
19360 | EOF | |
321d2b14 | 19361 | if { (eval echo configure:19362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
19362 | rm -rf conftest* |
19363 | eval "ac_cv_func_$ac_func=yes" | |
19364 | else | |
19365 | echo "configure: failed program was:" >&5 | |
19366 | cat conftest.$ac_ext >&5 | |
19367 | rm -rf conftest* | |
19368 | eval "ac_cv_func_$ac_func=no" | |
19369 | fi | |
19370 | rm -f conftest* | |
19371 | fi | |
19372 | ||
19373 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
19374 | echo "$ac_t""yes" 1>&6 | |
19375 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
19376 | cat >> confdefs.h <<EOF | |
19377 | #define $ac_tr_func 1 | |
19378 | EOF | |
19379 | cat >> confdefs.h <<\EOF | |
f6bcfd97 BP |
19380 | #define HAVE_DLERROR 1 |
19381 | EOF | |
19382 | ||
19383 | else | |
698dcdb6 VZ |
19384 | echo "$ac_t""no" 1>&6 |
19385 | echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6 | |
321d2b14 | 19386 | echo "configure:19387: checking for dlerror in -ldl" >&5 |
698dcdb6 VZ |
19387 | ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'` |
19388 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19389 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 19390 | else |
698dcdb6 | 19391 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 19392 | LIBS="-ldl $LIBS" |
698dcdb6 | 19393 | cat > conftest.$ac_ext <<EOF |
321d2b14 | 19394 | #line 19395 "configure" |
f6bcfd97 BP |
19395 | #include "confdefs.h" |
19396 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19397 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
19398 | builtin and then its argument prototype would still apply. */ |
19399 | char dlerror(); | |
19400 | ||
19401 | int main() { | |
19402 | dlerror() | |
19403 | ; return 0; } | |
19404 | EOF | |
321d2b14 | 19405 | if { (eval echo configure:19406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
19406 | rm -rf conftest* |
19407 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19408 | else | |
19409 | echo "configure: failed program was:" >&5 | |
19410 | cat conftest.$ac_ext >&5 | |
19411 | rm -rf conftest* | |
19412 | eval "ac_cv_lib_$ac_lib_var=no" | |
19413 | fi | |
19414 | rm -f conftest* | |
19415 | LIBS="$ac_save_LIBS" | |
19416 | ||
19417 | fi | |
19418 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19419 | echo "$ac_t""yes" 1>&6 | |
19420 | cat >> confdefs.h <<\EOF | |
f6bcfd97 BP |
19421 | #define HAVE_DLERROR 1 |
19422 | EOF | |
19423 | ||
698dcdb6 VZ |
19424 | else |
19425 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
19426 | fi |
19427 | ||
19428 | fi | |
19429 | done | |
19430 | ||
3a922bb4 RL |
19431 | fi |
19432 | fi | |
f6bcfd97 | 19433 | |
3a922bb4 RL |
19434 | if test "$HAVE_DL_FUNCS" = 0; then |
19435 | if test "$HAVE_SHL_FUNCS" = 0; then | |
19436 | if test "$USE_UNIX" = 1; then | |
19437 | echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2 | |
0b9ab0bd | 19438 | wxUSE_DYNAMIC_LOADER=no |
3a922bb4 RL |
19439 | wxUSE_DYNLIB_CLASS=no |
19440 | else | |
19441 | echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2 | |
19442 | fi | |
19443 | fi | |
10f2d63a VZ |
19444 | fi |
19445 | fi | |
19446 | fi | |
19447 | ||
0b9ab0bd RL |
19448 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then |
19449 | cat >> confdefs.h <<\EOF | |
19450 | #define wxUSE_DYNAMIC_LOADER 1 | |
19451 | EOF | |
19452 | ||
19453 | elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
698dcdb6 | 19454 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19455 | #define wxUSE_DYNLIB_CLASS 1 |
19456 | EOF | |
19457 | ||
19458 | fi | |
19459 | ||
698dcdb6 | 19460 | |
1e6feb95 VZ |
19461 | if test "$wxUSE_FONTMAP" = "yes" ; then |
19462 | cat >> confdefs.h <<\EOF | |
19463 | #define wxUSE_FONTMAP 1 | |
19464 | EOF | |
19465 | ||
19466 | fi | |
19467 | ||
10f2d63a | 19468 | if test "$wxUSE_UNICODE" = "yes" ; then |
698dcdb6 | 19469 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19470 | #define wxUSE_UNICODE 1 |
19471 | EOF | |
19472 | ||
bbc3925a VS |
19473 | |
19474 | if test "$wxUSE_MSW" != 1; then | |
19475 | wxUSE_UNICODE_MSLU=no | |
19476 | fi | |
a72a4bfa VS |
19477 | |
19478 | if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
19479 | echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6 | |
321d2b14 | 19480 | echo "configure:19481: checking for main in -lunicows" >&5 |
a72a4bfa VS |
19481 | ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'` |
19482 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19483 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19484 | else | |
19485 | ac_save_LIBS="$LIBS" | |
19486 | LIBS="-lunicows $LIBS" | |
19487 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 19488 | #line 19489 "configure" |
a72a4bfa VS |
19489 | #include "confdefs.h" |
19490 | ||
19491 | int main() { | |
19492 | main() | |
19493 | ; return 0; } | |
19494 | EOF | |
321d2b14 | 19495 | if { (eval echo configure:19496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a72a4bfa VS |
19496 | rm -rf conftest* |
19497 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19498 | else | |
19499 | echo "configure: failed program was:" >&5 | |
19500 | cat conftest.$ac_ext >&5 | |
19501 | rm -rf conftest* | |
19502 | eval "ac_cv_lib_$ac_lib_var=no" | |
19503 | fi | |
19504 | rm -f conftest* | |
19505 | LIBS="$ac_save_LIBS" | |
19506 | ||
19507 | fi | |
19508 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19509 | echo "$ac_t""yes" 1>&6 | |
19510 | ||
19511 | cat >> confdefs.h <<\EOF | |
19512 | #define wxUSE_UNICODE_MSLU 1 | |
19513 | EOF | |
19514 | ||
19515 | ||
19516 | else | |
19517 | echo "$ac_t""no" 1>&6 | |
19518 | ||
19519 | echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled. | |
19520 | Applications will only run on Windows NT/2000/XP!" 1>&2 | |
19521 | wxUSE_UNICODE_MSLU=no | |
19522 | ||
19523 | fi | |
19524 | ||
19525 | fi | |
10f2d63a VZ |
19526 | fi |
19527 | ||
10f2d63a | 19528 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then |
698dcdb6 | 19529 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19530 | #define wxUSE_EXPERIMENTAL_PRINTF 1 |
19531 | EOF | |
19532 | ||
19533 | fi | |
19534 | ||
698dcdb6 | 19535 | |
698dcdb6 | 19536 | |
10f2d63a VZ |
19537 | IODBC_C_SRC="" |
19538 | if test "$wxUSE_ODBC" = "yes" ; then | |
698dcdb6 | 19539 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19540 | #define wxUSE_ODBC 1 |
19541 | EOF | |
19542 | ||
19543 | WXODBCFLAG="-D_IODBC_" | |
19544 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
10f2d63a VZ |
19545 | fi |
19546 | ||
698dcdb6 | 19547 | |
10f2d63a | 19548 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then |
698dcdb6 | 19549 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19550 | #define wxUSE_POSTSCRIPT 1 |
19551 | EOF | |
19552 | ||
19553 | fi | |
19554 | ||
698dcdb6 | 19555 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19556 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 |
19557 | EOF | |
19558 | ||
698dcdb6 VZ |
19559 | |
19560 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
19561 | #define wxUSE_NORMALIZED_PS_FONTS 1 |
19562 | EOF | |
19563 | ||
698dcdb6 VZ |
19564 | |
19565 | ||
10f2d63a | 19566 | if test "$wxUSE_CONSTRAINTS" = "yes"; then |
698dcdb6 | 19567 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19568 | #define wxUSE_CONSTRAINTS 1 |
19569 | EOF | |
19570 | ||
19571 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
19572 | fi | |
19573 | ||
19574 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
fc26f4ab | 19575 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
0feee163 | 19576 | echo "configure: warning: MDI not yet supported for wxUniversal... disabled" 1>&2 |
fc26f4ab RL |
19577 | wxUSE_MDI_ARCHITECTURE=no |
19578 | fi | |
19579 | ||
19580 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
19581 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
19582 | #define wxUSE_MDI_ARCHITECTURE 1 |
19583 | EOF | |
19584 | ||
fc26f4ab RL |
19585 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
19586 | fi | |
10f2d63a VZ |
19587 | fi |
19588 | ||
19589 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
698dcdb6 | 19590 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19591 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 |
19592 | EOF | |
19593 | ||
19594 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
19595 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
19596 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
19597 | fi | |
19598 | fi | |
19599 | ||
19600 | if test "$wxUSE_HELP" = "yes"; then | |
698dcdb6 | 19601 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19602 | #define wxUSE_HELP 1 |
19603 | EOF | |
19604 | ||
19605 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
3379ed37 | 19606 | |
77e13408 | 19607 | if test "$wxUSE_MSW" = 1; then |
031d8228 | 19608 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then |
3b7bc64a | 19609 | cat >> confdefs.h <<\EOF |
29fd3c0c VS |
19610 | #define wxUSE_MS_HTML_HELP 1 |
19611 | EOF | |
19612 | ||
3e44f09d | 19613 | fi |
3379ed37 | 19614 | fi |
031d8228 VS |
19615 | |
19616 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
19617 | if test "$wxUSE_HTML" = "yes"; then | |
19618 | cat >> confdefs.h <<\EOF | |
19619 | #define wxUSE_WXHTML_HELP 1 | |
19620 | EOF | |
19621 | ||
19622 | else | |
19623 | echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2 | |
19624 | wxUSE_WXHTML_HELP=no | |
19625 | fi | |
19626 | fi | |
10f2d63a VZ |
19627 | fi |
19628 | ||
19629 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
19630 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
698dcdb6 | 19631 | echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2 |
10f2d63a | 19632 | else |
698dcdb6 | 19633 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19634 | #define wxUSE_PRINTING_ARCHITECTURE 1 |
19635 | EOF | |
19636 | ||
19637 | fi | |
19638 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
19639 | fi | |
19640 | ||
19641 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
698dcdb6 | 19642 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19643 | #define wxUSE_PROLOGIO 1 |
19644 | EOF | |
19645 | ||
19646 | fi | |
19647 | ||
19648 | if test "$wxUSE_RESOURCES" = "yes" ; then | |
e334d0ea JS |
19649 | if test "$wxUSE_NANOX" = "yes"; then |
19650 | echo "configure: warning: Cannot use resource database functions in NanoX" 1>&2 | |
19651 | else | |
19652 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
19653 | #define wxUSE_RESOURCES 1 |
19654 | EOF | |
19655 | ||
e334d0ea JS |
19656 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource" |
19657 | fi | |
10f2d63a VZ |
19658 | fi |
19659 | ||
19660 | if test "$wxUSE_X_RESOURCES" = "yes"; then | |
698dcdb6 | 19661 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19662 | #define wxUSE_X_RESOURCES 1 |
19663 | EOF | |
19664 | ||
19665 | fi | |
19666 | ||
698dcdb6 | 19667 | |
77e13408 RL |
19668 | if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ |
19669 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
19670 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
2b9bdf71 | 19671 | for ac_hdr in ole2.h |
10f2d63a | 19672 | do |
698dcdb6 VZ |
19673 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
19674 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
321d2b14 | 19675 | echo "configure:19676: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
19676 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
19677 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19678 | else | |
19679 | cat > conftest.$ac_ext <<EOF | |
321d2b14 | 19680 | #line 19681 "configure" |
10f2d63a | 19681 | #include "confdefs.h" |
698dcdb6 VZ |
19682 | #include <$ac_hdr> |
19683 | EOF | |
19684 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
321d2b14 | 19685 | { (eval echo configure:19686: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
19686 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
19687 | if test -z "$ac_err"; then | |
19688 | rm -rf conftest* | |
19689 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 19690 | else |
698dcdb6 VZ |
19691 | echo "$ac_err" >&5 |
19692 | echo "configure: failed program was:" >&5 | |
10f2d63a | 19693 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
19694 | rm -rf conftest* |
19695 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 19696 | fi |
698dcdb6 | 19697 | rm -f conftest* |
10f2d63a | 19698 | fi |
698dcdb6 VZ |
19699 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
19700 | echo "$ac_t""yes" 1>&6 | |
19701 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
19702 | cat >> confdefs.h <<EOF | |
19703 | #define $ac_tr_hdr 1 | |
10f2d63a | 19704 | EOF |
698dcdb6 VZ |
19705 | |
19706 | else | |
19707 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
19708 | fi |
19709 | done | |
19710 | ||
698dcdb6 | 19711 | |
2b9bdf71 VZ |
19712 | if test "$ac_cv_header_ole2_h" = "yes" ; then |
19713 | if test "$GCC" = yes ; then | |
19714 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" | |
2b9bdf71 | 19715 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" |
3d63bc3a | 19716 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
2b9bdf71 | 19717 | cat >> confdefs.h <<\EOF |
4f11a343 VS |
19718 | #define wxUSE_OLE 1 |
19719 | EOF | |
19720 | ||
b64f0a5f | 19721 | |
2b9bdf71 VZ |
19722 | fi |
19723 | ||
19724 | cat >> confdefs.h <<\EOF | |
19725 | #define wxUSE_DATAOBJ 1 | |
19726 | EOF | |
19727 | ||
19728 | else | |
19729 | echo "configure: warning: Some features disabled because OLE headers not found" 1>&2 | |
19730 | ||
19731 | wxUSE_CLIPBOARD=no | |
19732 | wxUSE_DRAG_AND_DROP=no | |
19733 | wxUSE_DATAOBJ=no | |
19734 | fi | |
19735 | ||
77e13408 | 19736 | if test "$wxUSE_METAFILE" = "yes"; then |
2b9bdf71 | 19737 | cat >> confdefs.h <<\EOF |
b64f0a5f RL |
19738 | #define wxUSE_METAFILE 1 |
19739 | EOF | |
19740 | ||
2b9bdf71 VZ |
19741 | |
19742 | cat >> confdefs.h <<\EOF | |
b64f0a5f RL |
19743 | #define wxUSE_ENH_METAFILE 1 |
19744 | EOF | |
19745 | ||
2b9bdf71 VZ |
19746 | fi |
19747 | fi | |
19748 | ||
19749 | if test "$wxUSE_IPC" = "yes"; then | |
19750 | if test "$wxUSE_SOCKETS" != "yes"; then | |
156b2523 | 19751 | echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2 |
2b9bdf71 VZ |
19752 | fi |
19753 | ||
19754 | cat >> confdefs.h <<\EOF | |
19755 | #define wxUSE_IPC 1 | |
19756 | EOF | |
19757 | ||
19758 | fi | |
19759 | ||
19760 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
9691c806 | 19761 | cat >> confdefs.h <<\EOF |
2b9bdf71 VZ |
19762 | #define wxUSE_CLIPBOARD 1 |
19763 | EOF | |
19764 | ||
673f4220 | 19765 | |
9691c806 | 19766 | cat >> confdefs.h <<\EOF |
673f4220 VZ |
19767 | #define wxUSE_DATAOBJ 1 |
19768 | EOF | |
19769 | ||
2b9bdf71 VZ |
19770 | fi |
19771 | ||
19772 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
19773 | if test "$wxUSE_GTK" = 1; then | |
19774 | if test "$WXGTK12" != 1; then | |
156b2523 | 19775 | echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2 |
10f2d63a VZ |
19776 | wxUSE_DRAG_AND_DROP=no |
19777 | fi | |
19778 | fi | |
19779 | ||
2b9bdf71 | 19780 | if test "$wxUSE_MOTIF" = 1; then |
156b2523 | 19781 | echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2 |
2b9bdf71 VZ |
19782 | wxUSE_DRAG_AND_DROP=no |
19783 | fi | |
19784 | ||
f79bd02d JS |
19785 | if test "$wxUSE_X11" = 1; then |
19786 | echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2 | |
19787 | wxUSE_DRAG_AND_DROP=no | |
19788 | fi | |
19789 | ||
10f2d63a | 19790 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then |
698dcdb6 | 19791 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19792 | #define wxUSE_DRAG_AND_DROP 1 |
19793 | EOF | |
19794 | ||
19795 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
19796 | fi | |
19797 | ||
19798 | fi | |
19799 | ||
19800 | if test "$wxUSE_SPLINES" = "yes" ; then | |
698dcdb6 | 19801 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19802 | #define wxUSE_SPLINES 1 |
19803 | EOF | |
19804 | ||
19805 | fi | |
19806 | ||
698dcdb6 | 19807 | |
1e6feb95 VZ |
19808 | USES_CONTROLS=0 |
19809 | if test "$wxUSE_CONTROLS" = "yes"; then | |
19810 | USES_CONTROLS=1 | |
19811 | fi | |
19812 | ||
10f2d63a | 19813 | if test "$wxUSE_ACCEL" = "yes"; then |
698dcdb6 | 19814 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19815 | #define wxUSE_ACCEL 1 |
19816 | EOF | |
19817 | ||
1e6feb95 VZ |
19818 | USES_CONTROLS=1 |
19819 | fi | |
19820 | ||
19821 | if test "$wxUSE_BUTTON" = "yes"; then | |
19822 | cat >> confdefs.h <<\EOF | |
19823 | #define wxUSE_BUTTON 1 | |
19824 | EOF | |
19825 | ||
19826 | USES_CONTROLS=1 | |
19827 | fi | |
19828 | ||
19829 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
19830 | cat >> confdefs.h <<\EOF | |
19831 | #define wxUSE_BMPBUTTON 1 | |
19832 | EOF | |
19833 | ||
19834 | USES_CONTROLS=1 | |
19835 | fi | |
19836 | ||
19837 | if test "$wxUSE_CALCTRL" = "yes"; then | |
19838 | cat >> confdefs.h <<\EOF | |
19839 | #define wxUSE_CALENDARCTRL 1 | |
19840 | EOF | |
19841 | ||
19842 | USES_CONTROLS=1 | |
19843 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
10f2d63a VZ |
19844 | fi |
19845 | ||
19846 | if test "$wxUSE_CARET" = "yes"; then | |
698dcdb6 | 19847 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19848 | #define wxUSE_CARET 1 |
19849 | EOF | |
19850 | ||
1e6feb95 | 19851 | USES_CONTROLS=1 |
10f2d63a VZ |
19852 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" |
19853 | fi | |
19854 | ||
19855 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
698dcdb6 | 19856 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19857 | #define wxUSE_COMBOBOX 1 |
19858 | EOF | |
19859 | ||
1e6feb95 | 19860 | USES_CONTROLS=1 |
10f2d63a VZ |
19861 | fi |
19862 | ||
19863 | if test "$wxUSE_CHOICE" = "yes"; then | |
698dcdb6 | 19864 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19865 | #define wxUSE_CHOICE 1 |
19866 | EOF | |
19867 | ||
1e6feb95 | 19868 | USES_CONTROLS=1 |
10f2d63a VZ |
19869 | fi |
19870 | ||
19871 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
698dcdb6 | 19872 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19873 | #define wxUSE_CHECKBOX 1 |
19874 | EOF | |
19875 | ||
1e6feb95 | 19876 | USES_CONTROLS=1 |
10f2d63a VZ |
19877 | fi |
19878 | ||
19879 | if test "$wxUSE_CHECKLST" = "yes"; then | |
698dcdb6 | 19880 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19881 | #define wxUSE_CHECKLISTBOX 1 |
19882 | EOF | |
19883 | ||
1e6feb95 | 19884 | USES_CONTROLS=1 |
10f2d63a VZ |
19885 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" |
19886 | fi | |
19887 | ||
19888 | if test "$wxUSE_GAUGE" = "yes"; then | |
698dcdb6 | 19889 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19890 | #define wxUSE_GAUGE 1 |
19891 | EOF | |
19892 | ||
1e6feb95 | 19893 | USES_CONTROLS=1 |
10f2d63a VZ |
19894 | fi |
19895 | ||
d6a55c4b VZ |
19896 | if test "$wxUSE_NEW_GRID" = "yes"; then |
19897 | wxUSE_GRID="yes" | |
698dcdb6 | 19898 | cat >> confdefs.h <<\EOF |
d6a55c4b | 19899 | #define wxUSE_NEW_GRID 1 |
10f2d63a VZ |
19900 | EOF |
19901 | ||
1e6feb95 | 19902 | USES_CONTROLS=1 |
d6a55c4b | 19903 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid" |
10f2d63a VZ |
19904 | fi |
19905 | ||
d6a55c4b | 19906 | if test "$wxUSE_GRID" = "yes"; then |
698dcdb6 | 19907 | cat >> confdefs.h <<\EOF |
d6a55c4b | 19908 | #define wxUSE_GRID 1 |
10f2d63a VZ |
19909 | EOF |
19910 | ||
1e6feb95 | 19911 | USES_CONTROLS=1 |
d6a55c4b | 19912 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" |
10f2d63a VZ |
19913 | fi |
19914 | ||
19915 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 19916 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19917 | #define wxUSE_IMAGLIST 1 |
19918 | EOF | |
19919 | ||
19920 | fi | |
19921 | ||
19922 | if test "$wxUSE_LISTBOX" = "yes"; then | |
698dcdb6 | 19923 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19924 | #define wxUSE_LISTBOX 1 |
19925 | EOF | |
19926 | ||
1e6feb95 | 19927 | USES_CONTROLS=1 |
10f2d63a VZ |
19928 | fi |
19929 | ||
19930 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
19931 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 19932 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19933 | #define wxUSE_LISTCTRL 1 |
19934 | EOF | |
19935 | ||
1e6feb95 | 19936 | USES_CONTROLS=1 |
10f2d63a VZ |
19937 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" |
19938 | else | |
698dcdb6 | 19939 | echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
19940 | fi |
19941 | fi | |
19942 | ||
19943 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
698dcdb6 | 19944 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19945 | #define wxUSE_NOTEBOOK 1 |
19946 | EOF | |
19947 | ||
1e6feb95 | 19948 | USES_CONTROLS=1 |
10f2d63a VZ |
19949 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" |
19950 | fi | |
19951 | ||
24176f2c GD |
19952 | if test "$wxUSE_PROPSHEET" = "yes"; then |
19953 | cat >> confdefs.h <<\EOF | |
19954 | #define wxUSE_PROPSHEET 1 | |
19955 | EOF | |
19956 | ||
19957 | USES_CONTROLS=1 | |
19958 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist" | |
19959 | fi | |
19960 | ||
10f2d63a | 19961 | if test "$wxUSE_RADIOBOX" = "yes"; then |
698dcdb6 | 19962 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19963 | #define wxUSE_RADIOBOX 1 |
19964 | EOF | |
19965 | ||
1e6feb95 | 19966 | USES_CONTROLS=1 |
10f2d63a VZ |
19967 | fi |
19968 | ||
19969 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
698dcdb6 | 19970 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19971 | #define wxUSE_RADIOBTN 1 |
19972 | EOF | |
19973 | ||
1e6feb95 | 19974 | USES_CONTROLS=1 |
10f2d63a VZ |
19975 | fi |
19976 | ||
19977 | if test "$wxUSE_SASH" = "yes"; then | |
698dcdb6 | 19978 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19979 | #define wxUSE_SASH 1 |
19980 | EOF | |
19981 | ||
19982 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
19983 | fi | |
19984 | ||
19985 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
698dcdb6 | 19986 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19987 | #define wxUSE_SCROLLBAR 1 |
19988 | EOF | |
19989 | ||
1e6feb95 | 19990 | USES_CONTROLS=1 |
741a9306 | 19991 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
19992 | fi |
19993 | ||
19994 | if test "$wxUSE_SLIDER" = "yes"; then | |
698dcdb6 | 19995 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19996 | #define wxUSE_SLIDER 1 |
19997 | EOF | |
19998 | ||
1e6feb95 | 19999 | USES_CONTROLS=1 |
10f2d63a VZ |
20000 | fi |
20001 | ||
20002 | if test "$wxUSE_SPINBTN" = "yes"; then | |
698dcdb6 | 20003 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20004 | #define wxUSE_SPINBTN 1 |
20005 | EOF | |
20006 | ||
1e6feb95 | 20007 | USES_CONTROLS=1 |
10f2d63a VZ |
20008 | fi |
20009 | ||
56cfaa52 | 20010 | if test "$wxUSE_SPINCTRL" = "yes"; then |
698dcdb6 | 20011 | cat >> confdefs.h <<\EOF |
56cfaa52 RR |
20012 | #define wxUSE_SPINCTRL 1 |
20013 | EOF | |
20014 | ||
1e6feb95 | 20015 | USES_CONTROLS=1 |
56cfaa52 RR |
20016 | fi |
20017 | ||
10f2d63a | 20018 | if test "$wxUSE_SPLITTER" = "yes"; then |
698dcdb6 | 20019 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20020 | #define wxUSE_SPLITTER 1 |
20021 | EOF | |
20022 | ||
20023 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
20024 | fi | |
20025 | ||
20026 | if test "$wxUSE_STATBMP" = "yes"; then | |
698dcdb6 | 20027 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20028 | #define wxUSE_STATBMP 1 |
20029 | EOF | |
20030 | ||
1e6feb95 | 20031 | USES_CONTROLS=1 |
10f2d63a VZ |
20032 | fi |
20033 | ||
20034 | if test "$wxUSE_STATBOX" = "yes"; then | |
698dcdb6 | 20035 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20036 | #define wxUSE_STATBOX 1 |
20037 | EOF | |
20038 | ||
1e6feb95 VZ |
20039 | USES_CONTROLS=1 |
20040 | fi | |
20041 | ||
20042 | if test "$wxUSE_STATTEXT" = "yes"; then | |
20043 | cat >> confdefs.h <<\EOF | |
20044 | #define wxUSE_STATTEXT 1 | |
20045 | EOF | |
20046 | ||
20047 | USES_CONTROLS=1 | |
10f2d63a VZ |
20048 | fi |
20049 | ||
20050 | if test "$wxUSE_STATLINE" = "yes"; then | |
20051 | if test "$wxUSE_WINE" = 1 ; then | |
698dcdb6 | 20052 | echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2 |
10f2d63a | 20053 | else |
698dcdb6 | 20054 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20055 | #define wxUSE_STATLINE 1 |
20056 | EOF | |
20057 | ||
1e6feb95 | 20058 | USES_CONTROLS=1 |
10f2d63a VZ |
20059 | fi |
20060 | fi | |
20061 | ||
20062 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
698dcdb6 | 20063 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20064 | #define wxUSE_STATUSBAR 1 |
20065 | EOF | |
20066 | ||
1e6feb95 | 20067 | USES_CONTROLS=1 |
698dcdb6 | 20068 | |
2286341c | 20069 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" |
10f2d63a VZ |
20070 | fi |
20071 | ||
20072 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
698dcdb6 | 20073 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20074 | #define wxUSE_TAB_DIALOG 1 |
20075 | EOF | |
20076 | ||
20077 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
20078 | fi | |
20079 | ||
1e6feb95 VZ |
20080 | if test "$wxUSE_TEXTCTRL" = "yes"; then |
20081 | cat >> confdefs.h <<\EOF | |
20082 | #define wxUSE_TEXTCTRL 1 | |
20083 | EOF | |
20084 | ||
20085 | USES_CONTROLS=1 | |
20086 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
20087 | fi | |
20088 | ||
1db8dc4a | 20089 | if test "$wxUSE_TOGGLEBTN" = "yes"; then |
156b2523 GD |
20090 | if test "$wxUSE_MAC" = 1; then |
20091 | echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2 | |
20092 | wxUSE_TOGGLEBTN=no | |
20093 | fi | |
20094 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
0feee163 | 20095 | echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2 |
a45d7ab7 GD |
20096 | wxUSE_TOGGLEBTN=no |
20097 | fi | |
20098 | ||
20099 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
20100 | cat >> confdefs.h <<\EOF | |
1db8dc4a VZ |
20101 | #define wxUSE_TOGGLEBTN 1 |
20102 | EOF | |
20103 | ||
1e6feb95 | 20104 | USES_CONTROLS=1 |
a45d7ab7 | 20105 | fi |
1db8dc4a VZ |
20106 | fi |
20107 | ||
360d6699 | 20108 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
698dcdb6 | 20109 | cat >> confdefs.h <<\EOF |
360d6699 VZ |
20110 | #define wxUSE_TOOLBAR_SIMPLE 1 |
20111 | EOF | |
20112 | ||
20113 | wxUSE_TOOLBAR="yes" | |
1e6feb95 | 20114 | USES_CONTROLS=1 |
360d6699 VZ |
20115 | fi |
20116 | ||
10f2d63a | 20117 | if test "$wxUSE_TOOLBAR" = "yes"; then |
698dcdb6 | 20118 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20119 | #define wxUSE_TOOLBAR 1 |
20120 | EOF | |
20121 | ||
1e6feb95 | 20122 | USES_CONTROLS=1 |
698dcdb6 | 20123 | |
360d6699 VZ |
20124 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then |
20125 | wxUSE_TOOLBAR_NATIVE="yes" | |
20126 | fi | |
20127 | ||
1e6feb95 VZ |
20128 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
20129 | cat >> confdefs.h <<\EOF | |
360d6699 VZ |
20130 | #define wxUSE_TOOLBAR_NATIVE 1 |
20131 | EOF | |
20132 | ||
1e6feb95 VZ |
20133 | USES_CONTROLS=1 |
20134 | fi | |
20135 | ||
20136 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
360d6699 VZ |
20137 | fi |
20138 | ||
10f2d63a VZ |
20139 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
20140 | if test "$wxUSE_MOTIF" = 1; then | |
156b2523 | 20141 | echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2 |
10f2d63a VZ |
20142 | else |
20143 | if test "$wxUSE_WINE" = 1; then | |
156b2523 | 20144 | echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2 |
10f2d63a | 20145 | else |
69d27ff7 | 20146 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
0feee163 | 20147 | echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2 |
69d27ff7 | 20148 | else |
3c011993 | 20149 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20150 | #define wxUSE_TOOLTIPS 1 |
20151 | EOF | |
20152 | ||
69d27ff7 | 20153 | fi |
10f2d63a VZ |
20154 | fi |
20155 | fi | |
20156 | fi | |
20157 | ||
20158 | if test "$wxUSE_TREECTRL" = "yes"; then | |
20159 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 20160 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20161 | #define wxUSE_TREECTRL 1 |
20162 | EOF | |
20163 | ||
1e6feb95 | 20164 | USES_CONTROLS=1 |
10f2d63a VZ |
20165 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" |
20166 | else | |
698dcdb6 | 20167 | echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
20168 | fi |
20169 | fi | |
20170 | ||
9f41d601 | 20171 | if test "$wxUSE_POPUPWIN" = "yes"; then |
6abe4b65 | 20172 | if test "$wxUSE_MAC" = 1; then |
156b2523 | 20173 | echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2 |
6abe4b65 | 20174 | else |
485cf710 VZ |
20175 | if test "$wxUSE_MOTIF" = 1; then |
20176 | echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2 | |
20177 | else | |
3c011993 VZ |
20178 | if test "$wxUSE_PM" = 1; then |
20179 | echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2 | |
20180 | else | |
20181 | cat >> confdefs.h <<\EOF | |
9f41d601 RR |
20182 | #define wxUSE_POPUPWIN 1 |
20183 | EOF | |
20184 | ||
9926e4a4 | 20185 | |
3c011993 VZ |
20186 | USES_CONTROLS=1 |
20187 | fi | |
485cf710 | 20188 | fi |
6abe4b65 | 20189 | fi |
9f41d601 RR |
20190 | fi |
20191 | ||
dd964dcc | 20192 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
3c011993 VZ |
20193 | if test "$wxUSE_PM" = 1; then |
20194 | echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2 | |
20195 | else | |
20196 | cat >> confdefs.h <<\EOF | |
dd964dcc VZ |
20197 | #define wxUSE_TIPWINDOW 1 |
20198 | EOF | |
20199 | ||
3c011993 | 20200 | fi |
dd964dcc VZ |
20201 | fi |
20202 | ||
1e6feb95 VZ |
20203 | if test "$USES_CONTROLS" = 1; then |
20204 | cat >> confdefs.h <<\EOF | |
20205 | #define wxUSE_CONTROLS 1 | |
10f2d63a VZ |
20206 | EOF |
20207 | ||
10f2d63a VZ |
20208 | fi |
20209 | ||
1e6feb95 | 20210 | |
24176f2c GD |
20211 | if test "$wxUSE_TREELAYOUT" = "yes"; then |
20212 | cat >> confdefs.h <<\EOF | |
20213 | #define wxUSE_TREELAYOUT 1 | |
20214 | EOF | |
20215 | ||
20216 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay" | |
20217 | fi | |
1e6feb95 | 20218 | |
24fd6d87 VZ |
20219 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
20220 | cat >> confdefs.h <<\EOF | |
20221 | #define wxUSE_DRAGIMAGE 1 | |
20222 | EOF | |
20223 | ||
20224 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
20225 | fi | |
20226 | ||
1e6feb95 | 20227 | if test "$wxUSE_MENUS" = "yes"; then |
698dcdb6 | 20228 | cat >> confdefs.h <<\EOF |
1e6feb95 | 20229 | #define wxUSE_MENUS 1 |
10f2d63a VZ |
20230 | EOF |
20231 | ||
1e6feb95 | 20232 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" |
10f2d63a VZ |
20233 | fi |
20234 | ||
1e6feb95 VZ |
20235 | if test "$wxUSE_METAFILE" = "yes"; then |
20236 | cat >> confdefs.h <<\EOF | |
20237 | #define wxUSE_METAFILE 1 | |
10f2d63a VZ |
20238 | EOF |
20239 | ||
10f2d63a VZ |
20240 | fi |
20241 | ||
1e6feb95 VZ |
20242 | if test "$wxUSE_MIMETYPE" = "yes"; then |
20243 | cat >> confdefs.h <<\EOF | |
20244 | #define wxUSE_MIMETYPE 1 | |
10f2d63a VZ |
20245 | EOF |
20246 | ||
10f2d63a VZ |
20247 | fi |
20248 | ||
3e44f09d VZ |
20249 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then |
20250 | cat >> confdefs.h <<\EOF | |
20251 | #define wxUSE_SYSTEM_OPTIONS 1 | |
20252 | EOF | |
20253 | ||
321d2b14 VZ |
20254 | if test "$TOOLKIT" = "MSW"; then |
20255 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" | |
20256 | fi | |
20257 | ||
3e44f09d VZ |
20258 | fi |
20259 | ||
4cdb0ab0 | 20260 | if test "$wxUSE_PROTOCOL" = "yes"; then |
3954f9ca VS |
20261 | if test "$wxUSE_SOCKETS" != "yes"; then |
20262 | echo "configure: warning: Protocol classes require sockets... disabled" 1>&2 | |
20263 | wxUSE_PROTOCOL=no | |
20264 | fi | |
20265 | ||
20266 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
20267 | cat >> confdefs.h <<\EOF | |
4cdb0ab0 VS |
20268 | #define wxUSE_PROTOCOL 1 |
20269 | EOF | |
20270 | ||
20271 | ||
3954f9ca VS |
20272 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then |
20273 | cat >> confdefs.h <<\EOF | |
4cdb0ab0 VS |
20274 | #define wxUSE_PROTOCOL_HTTP 1 |
20275 | EOF | |
20276 | ||
3954f9ca VS |
20277 | fi |
20278 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
20279 | cat >> confdefs.h <<\EOF | |
4cdb0ab0 VS |
20280 | #define wxUSE_PROTOCOL_FTP 1 |
20281 | EOF | |
20282 | ||
3954f9ca VS |
20283 | fi |
20284 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
20285 | cat >> confdefs.h <<\EOF | |
20286 | #define wxUSE_PROTOCOL_FILE 1 | |
20287 | EOF | |
20288 | ||
20289 | fi | |
4cdb0ab0 | 20290 | fi |
3954f9ca VS |
20291 | fi |
20292 | ||
20293 | if test "$wxUSE_URL" = "yes"; then | |
20294 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
20295 | echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2 | |
20296 | wxUSE_URL=no | |
20297 | fi | |
20298 | if test "$wxUSE_URL" = "yes"; then | |
4cdb0ab0 | 20299 | cat >> confdefs.h <<\EOF |
3954f9ca | 20300 | #define wxUSE_URL 1 |
4cdb0ab0 VS |
20301 | EOF |
20302 | ||
20303 | fi | |
20304 | fi | |
20305 | ||
10f2d63a | 20306 | if test "$wxUSE_MINIFRAME" = "yes"; then |
698dcdb6 | 20307 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20308 | #define wxUSE_MINIFRAME 1 |
20309 | EOF | |
20310 | ||
20311 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
20312 | fi | |
20313 | ||
20314 | if test "$wxUSE_HTML" = "yes"; then | |
698dcdb6 | 20315 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20316 | #define wxUSE_HTML 1 |
20317 | EOF | |
20318 | ||
20319 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html" | |
10f2d63a VZ |
20320 | fi |
20321 | ||
20322 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
698dcdb6 | 20323 | cat >> confdefs.h <<\EOF |
1e487827 VS |
20324 | #define wxUSE_VALIDATORS 1 |
20325 | EOF | |
703e0a69 | 20326 | |
698dcdb6 VZ |
20327 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" |
20328 | fi | |
20329 | ||
edae8572 VZ |
20330 | if test "$wxUSE_PALETTE" = "yes" ; then |
20331 | cat >> confdefs.h <<\EOF | |
20332 | #define wxUSE_PALETTE 1 | |
20333 | EOF | |
20334 | ||
20335 | fi | |
20336 | ||
698dcdb6 VZ |
20337 | if test "$wxUSE_IMAGE" = "yes" ; then |
20338 | cat >> confdefs.h <<\EOF | |
20339 | #define wxUSE_IMAGE 1 | |
20340 | EOF | |
20341 | ||
20342 | fi | |
20343 | ||
20344 | if test "$wxUSE_GIF" = "yes" ; then | |
20345 | cat >> confdefs.h <<\EOF | |
20346 | #define wxUSE_GIF 1 | |
20347 | EOF | |
20348 | ||
20349 | fi | |
20350 | ||
20351 | if test "$wxUSE_PCX" = "yes" ; then | |
20352 | cat >> confdefs.h <<\EOF | |
20353 | #define wxUSE_PCX 1 | |
20354 | EOF | |
20355 | ||
20356 | fi | |
20357 | ||
4b6b4dfc RR |
20358 | if test "$wxUSE_IFF" = "yes" ; then |
20359 | cat >> confdefs.h <<\EOF | |
20360 | #define wxUSE_IFF 1 | |
20361 | EOF | |
20362 | ||
20363 | fi | |
20364 | ||
698dcdb6 VZ |
20365 | if test "$wxUSE_PNM" = "yes" ; then |
20366 | cat >> confdefs.h <<\EOF | |
20367 | #define wxUSE_PNM 1 | |
20368 | EOF | |
20369 | ||
20370 | fi | |
20371 | ||
20372 | if test "$wxUSE_XPM" = "yes" ; then | |
20373 | cat >> confdefs.h <<\EOF | |
20374 | #define wxUSE_XPM 1 | |
20375 | EOF | |
20376 | ||
20377 | fi | |
20378 | ||
658974ae VS |
20379 | if test "$wxUSE_ICO_CUR" = "yes" ; then |
20380 | cat >> confdefs.h <<\EOF | |
20381 | #define wxUSE_ICO_CUR 1 | |
20382 | EOF | |
20383 | ||
20384 | fi | |
20385 | ||
a72a4bfa VS |
20386 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then |
20387 | LIBS=" -lunicows $LIBS" | |
20388 | fi | |
20389 | ||
698dcdb6 | 20390 | |
1e6feb95 VZ |
20391 | if test "$wxUSE_CHOICEDLG" = "yes"; then |
20392 | cat >> confdefs.h <<\EOF | |
20393 | #define wxUSE_CHOICEDLG 1 | |
20394 | EOF | |
20395 | ||
20396 | fi | |
20397 | ||
20398 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
20399 | cat >> confdefs.h <<\EOF | |
20400 | #define wxUSE_COLOURDLG 1 | |
20401 | EOF | |
20402 | ||
20403 | fi | |
20404 | ||
20405 | if test "$wxUSE_FILEDLG" = "yes"; then | |
20406 | cat >> confdefs.h <<\EOF | |
20407 | #define wxUSE_FILEDLG 1 | |
20408 | EOF | |
20409 | ||
20410 | fi | |
20411 | ||
8db37e06 VZ |
20412 | if test "$wxUSE_FINDREPLDLG" = "yes"; then |
20413 | cat >> confdefs.h <<\EOF | |
20414 | #define wxUSE_FINDREPLDLG 1 | |
20415 | EOF | |
20416 | ||
20417 | fi | |
20418 | ||
1e6feb95 VZ |
20419 | if test "$wxUSE_FONTDLG" = "yes"; then |
20420 | cat >> confdefs.h <<\EOF | |
20421 | #define wxUSE_FONTDLG 1 | |
20422 | EOF | |
20423 | ||
20424 | fi | |
20425 | ||
20426 | if test "$wxUSE_DIRDLG" = "yes"; then | |
ae1daed0 JS |
20427 | if test "$wxUSE_TREECTRL" != "yes"; then |
20428 | echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2 | |
1e6feb95 | 20429 | else |
ae1daed0 | 20430 | cat >> confdefs.h <<\EOF |
1e6feb95 VZ |
20431 | #define wxUSE_DIRDLG 1 |
20432 | EOF | |
20433 | ||
1e6feb95 VZ |
20434 | fi |
20435 | fi | |
20436 | ||
20437 | if test "$wxUSE_MSGDLG" = "yes"; then | |
20438 | cat >> confdefs.h <<\EOF | |
20439 | #define wxUSE_MSGDLG 1 | |
20440 | EOF | |
20441 | ||
20442 | fi | |
20443 | ||
20444 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
20445 | cat >> confdefs.h <<\EOF | |
20446 | #define wxUSE_NUMBERDLG 1 | |
20447 | EOF | |
20448 | ||
20449 | fi | |
20450 | ||
20451 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
20452 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
20453 | echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2 | |
20454 | else | |
20455 | cat >> confdefs.h <<\EOF | |
20456 | #define wxUSE_PROGRESSDLG 1 | |
20457 | EOF | |
20458 | ||
20459 | fi | |
20460 | fi | |
20461 | ||
cbca9943 VZ |
20462 | if test "$wxUSE_SPLASH" = "yes"; then |
20463 | cat >> confdefs.h <<\EOF | |
20464 | #define wxUSE_SPLASH 1 | |
20465 | EOF | |
20466 | ||
20467 | fi | |
20468 | ||
1e6feb95 VZ |
20469 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then |
20470 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
20471 | echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2 | |
20472 | else | |
20473 | cat >> confdefs.h <<\EOF | |
20474 | #define wxUSE_STARTUP_TIPS 1 | |
20475 | EOF | |
20476 | ||
20477 | fi | |
20478 | fi | |
20479 | ||
20480 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
20481 | cat >> confdefs.h <<\EOF | |
20482 | #define wxUSE_TEXTDLG 1 | |
20483 | EOF | |
20484 | ||
20485 | fi | |
20486 | ||
b1f5d087 VZ |
20487 | if test "$wxUSE_WIZARDDLG" = "yes"; then |
20488 | cat >> confdefs.h <<\EOF | |
20489 | #define wxUSE_WIZARDDLG 1 | |
20490 | EOF | |
20491 | ||
20492 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
20493 | fi | |
20494 | ||
1e6feb95 | 20495 | |
698dcdb6 VZ |
20496 | if test "$cross_compiling" = "yes"; then |
20497 | OSINFO="\"$host\"" | |
20498 | else | |
20499 | OSINFO=`uname -s -r -m` | |
20500 | OSINFO="\"$OSINFO\"" | |
20501 | fi | |
20502 | ||
20503 | cat >> confdefs.h <<EOF | |
20504 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
20505 | EOF | |
20506 | ||
20507 | ||
20508 | ||
06dda230 VZ |
20509 | if test "x$prefix" != "xNONE"; then |
20510 | wxPREFIX=$prefix | |
20511 | else | |
20512 | wxPREFIX=$ac_default_prefix | |
20513 | fi | |
20514 | ||
7e67ed0d | 20515 | cat >> confdefs.h <<EOF |
06dda230 | 20516 | #define wxINSTALL_PREFIX "$wxPREFIX" |
7e67ed0d VZ |
20517 | EOF |
20518 | ||
20519 | ||
20520 | ||
698dcdb6 | 20521 | |
3a922bb4 | 20522 | |
f11bdd03 | 20523 | if test "$wxUSE_MAC" = 1 ; then |
3d63bc3a | 20524 | LDFLAGS="$LDFLAGS -framework Carbon -framework System" |
698dcdb6 | 20525 | fi |
3a922bb4 | 20526 | |
3d63bc3a | 20527 | |
009fead0 | 20528 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK -lm $LIBS" |
3d63bc3a | 20529 | |
698dcdb6 | 20530 | if test "$wxUSE_GUI" = "yes"; then |
3d63bc3a | 20531 | |
cb61c62d | 20532 | LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS" |
3a922bb4 RL |
20533 | |
20534 | ||
867a54b6 | 20535 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \ |
3a922bb4 RL |
20536 | drawing dynamic erase event exec font image \ |
20537 | minimal richedit rotate widgets" | |
20538 | ||
3a922bb4 RL |
20539 | CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)" |
20540 | else | |
20541 | SAMPLES_SUBDIRS="console" | |
698dcdb6 VZ |
20542 | fi |
20543 | ||
698dcdb6 | 20544 | |
57973b9c VZ |
20545 | INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \ |
20546 | -I\${top_srcdir}/include \ | |
20547 | $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \ | |
20548 | $TOOLKIT_INCLUDE" | |
698dcdb6 | 20549 | |
63e7762e | 20550 | if test "$wxUSE_GTK" = 1; then |
3d63bc3a | 20551 | WXCONFIG_INCLUDE= |
698dcdb6 VZ |
20552 | else |
20553 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
20554 | fi | |
20555 | ||
20556 | if test "$GXX" = yes ; then | |
20557 | CXXWARNINGS="-Wall" | |
88e30f2b RL |
20558 | |
20559 | if test "$wxUSE_NO_DEPS" = "no" ; then | |
20560 | CFLAGS="-MMD $CFLAGS" | |
20561 | CXXFLAGS="-MMD $CXXFLAGS" | |
20562 | fi | |
20563 | fi | |
20564 | ||
1725144d | 20565 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES" |
698dcdb6 VZ |
20566 | |
20567 | CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` | |
20568 | CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
fe5a9cab | 20569 | LIBS=`echo $LIBS | sed 's/ \+/ /g'` |
698dcdb6 | 20570 | |
fe5a9cab | 20571 | LDFLAGS="$LDFLAGS $PROFILE" |
698dcdb6 | 20572 | |
698dcdb6 VZ |
20573 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" |
20574 | ||
20575 | ||
20576 | ||
20577 | ||
20578 | ||
20579 | ||
20580 | ||
20581 | ||
20582 | ||
20583 | ||
20584 | ||
20585 | ||
20586 | ||
20587 | ||
20588 | ||
20589 | ||
20590 | ||
20591 | ||
20592 | ||
20593 | ||
20594 | ||
20595 | ||
20596 | ||
20597 | ||
20598 | ||
20599 | ||
20600 | ||
20601 | ||
20602 | ||
20603 | ||
20604 | ||
20605 | ||
20606 | ||
20607 | ||
20608 | ||
20609 | ||
20610 | ||
20611 | ||
20612 | ||
20613 | ||
20614 | ||
20615 | ||
20616 | ||
20617 | ||
20618 | ||
20619 | ||
20620 | ||
20621 | ||
20622 | ||
20623 | ||
20624 | ||
20625 | ||
20626 | ||
20627 | ||
20628 | ||
20629 | ||
20630 | ||
20631 | ||
20632 | ||
20633 | ||
20634 | ||
20635 | ||
20636 | ||
20637 | ||
20638 | ||
20639 | ||
20640 | ||
32832908 | 20641 | |
2f51a9ec GD |
20642 | |
20643 | ||
20644 | ||
20645 | ||
f6bcfd97 | 20646 | |
dad6c0ea | 20647 | |
caa2c79b | 20648 | |
3711412e | 20649 | |
1e6feb95 VZ |
20650 | |
20651 | ||
885d4bf5 VS |
20652 | |
20653 | ||
20654 | ||
20655 | ||
9b695262 VZ |
20656 | |
20657 | ||
62d0491b | 20658 | |
ef7f2189 | 20659 | |
40f7145c | 20660 | |
10f2d63a VZ |
20661 | |
20662 | ||
698dcdb6 | 20663 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
321d2b14 | 20664 | echo "configure:20665: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
698dcdb6 VZ |
20665 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
20666 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
20667 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 20668 | else |
698dcdb6 | 20669 | cat > conftestmake <<\EOF |
10f2d63a VZ |
20670 | all: |
20671 | @echo 'ac_maketemp="${MAKE}"' | |
20672 | EOF | |
20673 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
698dcdb6 | 20674 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
10f2d63a VZ |
20675 | if test -n "$ac_maketemp"; then |
20676 | eval ac_cv_prog_make_${ac_make}_set=yes | |
20677 | else | |
20678 | eval ac_cv_prog_make_${ac_make}_set=no | |
20679 | fi | |
698dcdb6 | 20680 | rm -f conftestmake |
10f2d63a VZ |
20681 | fi |
20682 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
698dcdb6 | 20683 | echo "$ac_t""yes" 1>&6 |
10f2d63a VZ |
20684 | SET_MAKE= |
20685 | else | |
698dcdb6 | 20686 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
20687 | SET_MAKE="MAKE=${MAKE-make}" |
20688 | fi | |
20689 | ||
698dcdb6 | 20690 | |
3a922bb4 RL |
20691 | if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then |
20692 | mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h | |
00cf1208 | 20693 | fi |
665bbe97 | 20694 | |
698dcdb6 | 20695 | |
10f2d63a | 20696 | |
57973b9c VZ |
20697 | wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS |
20698 | wx_cv_if_gnu_make=$IF_GNU_MAKE | |
20699 | wx_cv_path_ifs=$PATH_IFS | |
20700 | wx_cv_program_ext=$PROGRAM_EXT | |
20701 | wx_cv_target_library=$WX_TARGET_LIBRARY | |
20702 | wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL | |
20703 | wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE | |
20704 | export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \ | |
20705 | wx_cv_path_ifs wx_cv_program_ext \ | |
20706 | wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype | |
20707 | ||
20708 | subdirs="demos samples utils contrib" | |
2224580a | 20709 | |
10f2d63a | 20710 | |
698dcdb6 VZ |
20711 | trap '' 1 2 15 |
20712 | cat > confcache <<\EOF | |
10f2d63a VZ |
20713 | # This file is a shell script that caches the results of configure |
20714 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
20715 | # scripts and configure runs. It is not useful on other systems. |
20716 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 20717 | # |
698dcdb6 VZ |
20718 | # By default, configure uses ./config.cache as the cache file, |
20719 | # creating it if it does not exist already. You can give configure | |
20720 | # the --cache-file=FILE option to use a different cache file; that is | |
20721 | # what configure does when it calls configure scripts in | |
20722 | # subdirectories, so they share the cache. | |
20723 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
20724 | # config.status only pays attention to the cache file if you give it the | |
20725 | # --recheck option to rerun configure. | |
10f2d63a | 20726 | # |
698dcdb6 | 20727 | EOF |
10f2d63a VZ |
20728 | # The following way of writing the cache mishandles newlines in values, |
20729 | # but we know of no workaround that is simple, portable, and efficient. | |
20730 | # So, don't put newlines in cache variables' values. | |
20731 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
20732 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
20733 | (set) 2>&1 | |
20734 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
20735 | *ac_space=\ *) | |
20736 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
20737 | # turns \\\\ into \\, and sed turns \\ into \). | |
20738 | sed -n \ | |
20739 | -e "s/'/'\\\\''/g" \ | |
20740 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
20741 | ;; | |
20742 | *) | |
20743 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
20744 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
20745 | ;; | |
20746 | esac >> confcache | |
20747 | if cmp -s $cache_file confcache; then | |
20748 | : | |
20749 | else | |
10f2d63a | 20750 | if test -w $cache_file; then |
698dcdb6 VZ |
20751 | echo "updating cache $cache_file" |
20752 | cat confcache > $cache_file | |
10f2d63a VZ |
20753 | else |
20754 | echo "not updating unwritable cache $cache_file" | |
20755 | fi | |
20756 | fi | |
20757 | rm -f confcache | |
20758 | ||
698dcdb6 VZ |
20759 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
20760 | ||
10f2d63a VZ |
20761 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
20762 | # Let make expand exec_prefix. | |
20763 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
20764 | ||
698dcdb6 VZ |
20765 | # Any assignment to VPATH causes Sun make to only execute |
20766 | # the first set of double-colon rules, so remove it if not needed. | |
20767 | # If there is a colon in the path, we need to keep it. | |
10f2d63a | 20768 | if test "x$srcdir" = x.; then |
698dcdb6 | 20769 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
10f2d63a VZ |
20770 | fi |
20771 | ||
698dcdb6 VZ |
20772 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
20773 | ||
10f2d63a VZ |
20774 | DEFS=-DHAVE_CONFIG_H |
20775 | ||
698dcdb6 | 20776 | # Without the "./", some shells look in PATH for config.status. |
10f2d63a | 20777 | : ${CONFIG_STATUS=./config.status} |
698dcdb6 VZ |
20778 | |
20779 | echo creating $CONFIG_STATUS | |
20780 | rm -f $CONFIG_STATUS | |
20781 | cat > $CONFIG_STATUS <<EOF | |
20782 | #! /bin/sh | |
10f2d63a VZ |
20783 | # Generated automatically by configure. |
20784 | # Run this file to recreate the current configuration. | |
698dcdb6 VZ |
20785 | # This directory was configured as follows, |
20786 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
20787 | # | |
20788 | # $0 $ac_configure_args | |
20789 | # | |
10f2d63a | 20790 | # Compiler output produced by configure, useful for debugging |
698dcdb6 | 20791 | # configure, is in ./config.log if it exists. |
1e487827 | 20792 | |
698dcdb6 VZ |
20793 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
20794 | for ac_option | |
10f2d63a | 20795 | do |
698dcdb6 | 20796 | case "\$ac_option" in |
10f2d63a | 20797 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
698dcdb6 VZ |
20798 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
20799 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
20800 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
20801 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | |
20802 | exit 0 ;; | |
20803 | -help | --help | --hel | --he | --h) | |
20804 | echo "\$ac_cs_usage"; exit 0 ;; | |
20805 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
10f2d63a VZ |
20806 | esac |
20807 | done | |
20808 | ||
698dcdb6 VZ |
20809 | ac_given_srcdir=$srcdir |
20810 | ac_given_INSTALL="$INSTALL" | |
703e0a69 | 20811 | |
698dcdb6 VZ |
20812 | trap 'rm -fr `echo " |
20813 | wx-config | |
20814 | src/make.env | |
20815 | src/makeprog.env | |
20816 | src/makelib.env | |
20817 | Makefile | |
20818 | setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
1e487827 | 20819 | EOF |
698dcdb6 | 20820 | cat >> $CONFIG_STATUS <<EOF |
1e487827 | 20821 | |
698dcdb6 VZ |
20822 | # Protect against being on the right side of a sed subst in config.status. |
20823 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
20824 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
20825 | $ac_vpsub | |
20826 | $extrasub | |
20827 | s%@SHELL@%$SHELL%g | |
20828 | s%@CFLAGS@%$CFLAGS%g | |
20829 | s%@CPPFLAGS@%$CPPFLAGS%g | |
20830 | s%@CXXFLAGS@%$CXXFLAGS%g | |
20831 | s%@FFLAGS@%$FFLAGS%g | |
20832 | s%@DEFS@%$DEFS%g | |
20833 | s%@LDFLAGS@%$LDFLAGS%g | |
20834 | s%@LIBS@%$LIBS%g | |
20835 | s%@exec_prefix@%$exec_prefix%g | |
20836 | s%@prefix@%$prefix%g | |
20837 | s%@program_transform_name@%$program_transform_name%g | |
20838 | s%@bindir@%$bindir%g | |
20839 | s%@sbindir@%$sbindir%g | |
20840 | s%@libexecdir@%$libexecdir%g | |
20841 | s%@datadir@%$datadir%g | |
20842 | s%@sysconfdir@%$sysconfdir%g | |
20843 | s%@sharedstatedir@%$sharedstatedir%g | |
20844 | s%@localstatedir@%$localstatedir%g | |
20845 | s%@libdir@%$libdir%g | |
20846 | s%@includedir@%$includedir%g | |
20847 | s%@oldincludedir@%$oldincludedir%g | |
20848 | s%@infodir@%$infodir%g | |
20849 | s%@mandir@%$mandir%g | |
20850 | s%@host@%$host%g | |
20851 | s%@host_alias@%$host_alias%g | |
20852 | s%@host_cpu@%$host_cpu%g | |
20853 | s%@host_vendor@%$host_vendor%g | |
20854 | s%@host_os@%$host_os%g | |
20855 | s%@target@%$target%g | |
20856 | s%@target_alias@%$target_alias%g | |
20857 | s%@target_cpu@%$target_cpu%g | |
20858 | s%@target_vendor@%$target_vendor%g | |
20859 | s%@target_os@%$target_os%g | |
20860 | s%@build@%$build%g | |
20861 | s%@build_alias@%$build_alias%g | |
20862 | s%@build_cpu@%$build_cpu%g | |
20863 | s%@build_vendor@%$build_vendor%g | |
20864 | s%@build_os@%$build_os%g | |
20865 | s%@CC@%$CC%g | |
20866 | s%@CPP@%$CPP%g | |
20867 | s%@CXX@%$CXX%g | |
698dcdb6 VZ |
20868 | s%@RANLIB@%$RANLIB%g |
20869 | s%@AR@%$AR%g | |
20870 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
d6853540 | 20871 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
6054113a | 20872 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
698dcdb6 | 20873 | s%@STRIP@%$STRIP%g |
613d0995 | 20874 | s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g |
698dcdb6 VZ |
20875 | s%@YACC@%$YACC%g |
20876 | s%@LEX@%$LEX%g | |
20877 | s%@LEXLIB@%$LEXLIB%g | |
20878 | s%@LN_S@%$LN_S%g | |
90dd450c | 20879 | s%@CXXCPP@%$CXXCPP%g |
9e691f46 | 20880 | s%@PKG_CONFIG@%$PKG_CONFIG%g |
698dcdb6 VZ |
20881 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g |
20882 | s%@GTK_LIBS@%$GTK_LIBS%g | |
8168de4c | 20883 | s%@GTK_CONFIG@%$GTK_CONFIG%g |
698dcdb6 VZ |
20884 | s%@X_CFLAGS@%$X_CFLAGS%g |
20885 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
20886 | s%@X_LIBS@%$X_LIBS%g | |
20887 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
321d2b14 | 20888 | s%@AIX_CXX_LD@%$AIX_CXX_LD%g |
3a922bb4 | 20889 | s%@RESCOMP@%$RESCOMP%g |
698dcdb6 | 20890 | s%@DEREZ@%$DEREZ%g |
b040e242 | 20891 | s%@LIBICONV@%$LIBICONV%g |
698dcdb6 VZ |
20892 | s%@LEX_STEM@%$LEX_STEM%g |
20893 | s%@PATH_IFS@%$PATH_IFS%g | |
20894 | s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g | |
20895 | s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g | |
20896 | s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g | |
698dcdb6 VZ |
20897 | s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g |
20898 | s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g | |
77e13408 | 20899 | s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g |
698dcdb6 VZ |
20900 | s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g |
20901 | s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g | |
20902 | s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g | |
698dcdb6 | 20903 | s%@PROGRAM_EXT@%$PROGRAM_EXT%g |
698dcdb6 VZ |
20904 | s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g |
20905 | s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g | |
698dcdb6 VZ |
20906 | s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g |
20907 | s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g | |
20908 | s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g | |
698dcdb6 VZ |
20909 | s%@WX_ALL@%$WX_ALL%g |
20910 | s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g | |
20911 | s%@SHARED_LD@%$SHARED_LD%g | |
20912 | s%@PIC_FLAG@%$PIC_FLAG%g | |
698dcdb6 VZ |
20913 | s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g |
20914 | s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g | |
3a922bb4 RL |
20915 | s%@SONAME_FLAGS@%$SONAME_FLAGS%g |
20916 | s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g | |
698dcdb6 VZ |
20917 | s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g |
20918 | s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g | |
20919 | s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g | |
20920 | s%@USE_GUI@%$USE_GUI%g | |
20921 | s%@AFMINSTALL@%$AFMINSTALL%g | |
20922 | s%@TOOLKIT@%$TOOLKIT%g | |
698dcdb6 | 20923 | s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g |
1e6feb95 | 20924 | s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g |
3a922bb4 RL |
20925 | s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g |
20926 | s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g | |
00c81359 | 20927 | s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g |
3a922bb4 RL |
20928 | s%@cross_compiling@%$cross_compiling%g |
20929 | s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g | |
20930 | s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g | |
885d4bf5 VS |
20931 | s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g |
20932 | s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g | |
698dcdb6 VZ |
20933 | s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g |
20934 | s%@ALL_OBJECTS@%$ALL_OBJECTS%g | |
9b695262 VZ |
20935 | s%@ALL_HEADERS@%$ALL_HEADERS%g |
20936 | s%@ALL_SOURCES@%$ALL_SOURCES%g | |
698dcdb6 VZ |
20937 | s%@GUIDIST@%$GUIDIST%g |
20938 | s%@PORT_FILES@%$PORT_FILES%g | |
20939 | s%@DISTDIR@%$DISTDIR%g | |
698dcdb6 | 20940 | s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g |
62d0491b | 20941 | s%@LDFLAGS_GL@%$LDFLAGS_GL%g |
40f7145c | 20942 | s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g |
698dcdb6 | 20943 | s%@OPENGL_LIBS@%$OPENGL_LIBS%g |
3d63bc3a | 20944 | s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g |
698dcdb6 | 20945 | s%@EXTRADEFS@%$EXTRADEFS%g |
698dcdb6 | 20946 | s%@RESFLAGS@%$RESFLAGS%g |
3a922bb4 | 20947 | s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g |
e95edd8d GD |
20948 | s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g |
20949 | s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g | |
ef7f2189 | 20950 | s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g |
698dcdb6 VZ |
20951 | s%@LIBWXMACRES@%$LIBWXMACRES%g |
20952 | s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g | |
2baaf735 | 20953 | s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g |
698dcdb6 VZ |
20954 | s%@DLLTOOL@%$DLLTOOL%g |
20955 | s%@AS@%$AS%g | |
20956 | s%@NM@%$NM%g | |
20957 | s%@LD@%$LD%g | |
20958 | s%@MAKEINFO@%$MAKEINFO%g | |
885d4bf5 | 20959 | s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g |
698dcdb6 VZ |
20960 | s%@SET_MAKE@%$SET_MAKE%g |
20961 | s%@subdirs@%$subdirs%g | |
1e487827 | 20962 | |
1e487827 | 20963 | CEOF |
1e487827 VS |
20964 | EOF |
20965 | ||
698dcdb6 VZ |
20966 | cat >> $CONFIG_STATUS <<\EOF |
20967 | ||
20968 | # Split the substitutions into bite-sized pieces for seds with | |
20969 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
20970 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
20971 | ac_file=1 # Number of current file. | |
20972 | ac_beg=1 # First line for current file. | |
20973 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
20974 | ac_more_lines=: | |
20975 | ac_sed_cmds="" | |
20976 | while $ac_more_lines; do | |
20977 | if test $ac_beg -gt 1; then | |
20978 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
20979 | else | |
20980 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
20981 | fi | |
20982 | if test ! -s conftest.s$ac_file; then | |
20983 | ac_more_lines=false | |
20984 | rm -f conftest.s$ac_file | |
20985 | else | |
20986 | if test -z "$ac_sed_cmds"; then | |
20987 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
10f2d63a | 20988 | else |
698dcdb6 | 20989 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
10f2d63a | 20990 | fi |
698dcdb6 VZ |
20991 | ac_file=`expr $ac_file + 1` |
20992 | ac_beg=$ac_end | |
20993 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
10f2d63a | 20994 | fi |
698dcdb6 VZ |
20995 | done |
20996 | if test -z "$ac_sed_cmds"; then | |
20997 | ac_sed_cmds=cat | |
20998 | fi | |
20999 | EOF | |
10f2d63a | 21000 | |
698dcdb6 VZ |
21001 | cat >> $CONFIG_STATUS <<EOF |
21002 | ||
21003 | CONFIG_FILES=\${CONFIG_FILES-"wx-config | |
21004 | src/make.env | |
21005 | src/makeprog.env | |
21006 | src/makelib.env | |
21007 | Makefile | |
21008 | "} | |
10f2d63a | 21009 | EOF |
698dcdb6 VZ |
21010 | cat >> $CONFIG_STATUS <<\EOF |
21011 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
10f2d63a | 21012 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
698dcdb6 VZ |
21013 | case "$ac_file" in |
21014 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
21015 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
21016 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
21017 | esac |
21018 | ||
698dcdb6 | 21019 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
1e487827 | 21020 | |
698dcdb6 VZ |
21021 | # Remove last slash and all that follows it. Not all systems have dirname. |
21022 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
21023 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
21024 | # The file is in a subdirectory. | |
21025 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
21026 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
10f2d63a | 21027 | # A "../" for each directory in $ac_dir_suffix. |
698dcdb6 | 21028 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
10f2d63a VZ |
21029 | else |
21030 | ac_dir_suffix= ac_dots= | |
21031 | fi | |
21032 | ||
698dcdb6 VZ |
21033 | case "$ac_given_srcdir" in |
21034 | .) srcdir=. | |
21035 | if test -z "$ac_dots"; then top_srcdir=. | |
21036 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
21037 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
10f2d63a | 21038 | *) # Relative path. |
698dcdb6 VZ |
21039 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
21040 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
10f2d63a VZ |
21041 | esac |
21042 | ||
698dcdb6 VZ |
21043 | case "$ac_given_INSTALL" in |
21044 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
21045 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
10f2d63a VZ |
21046 | esac |
21047 | ||
698dcdb6 VZ |
21048 | echo creating "$ac_file" |
21049 | rm -f "$ac_file" | |
21050 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
21051 | case "$ac_file" in | |
21052 | *Makefile*) ac_comsub="1i\\ | |
21053 | # $configure_input" ;; | |
21054 | *) ac_comsub= ;; | |
21055 | esac | |
10f2d63a | 21056 | |
698dcdb6 VZ |
21057 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
21058 | sed -e "$ac_comsub | |
21059 | s%@configure_input@%$configure_input%g | |
21060 | s%@srcdir@%$srcdir%g | |
21061 | s%@top_srcdir@%$top_srcdir%g | |
21062 | s%@INSTALL@%$INSTALL%g | |
21063 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
21064 | fi; done | |
21065 | rm -f conftest.s* | |
10f2d63a VZ |
21066 | |
21067 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
21068 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
21069 | # | |
21070 | # ac_d sets the value in "#define NAME VALUE" lines. | |
698dcdb6 VZ |
21071 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
21072 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
21073 | ac_dC='\3' | |
21074 | ac_dD='%g' | |
21075 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
21076 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
21077 | ac_uB='\([ ]\)%\1#\2define\3' | |
10f2d63a | 21078 | ac_uC=' ' |
698dcdb6 VZ |
21079 | ac_uD='\4%g' |
21080 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
21081 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
21082 | ac_eB='$%\1#\2define\3' | |
21083 | ac_eC=' ' | |
21084 | ac_eD='%g' | |
10f2d63a | 21085 | |
698dcdb6 VZ |
21086 | if test "${CONFIG_HEADERS+set}" != set; then |
21087 | EOF | |
21088 | cat >> $CONFIG_STATUS <<EOF | |
21089 | CONFIG_HEADERS="setup.h:setup.h.in" | |
21090 | EOF | |
21091 | cat >> $CONFIG_STATUS <<\EOF | |
21092 | fi | |
21093 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
10f2d63a | 21094 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
698dcdb6 VZ |
21095 | case "$ac_file" in |
21096 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
21097 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
21098 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
21099 | esac |
21100 | ||
698dcdb6 VZ |
21101 | echo creating $ac_file |
21102 | ||
21103 | rm -f conftest.frag conftest.in conftest.out | |
21104 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
21105 | cat $ac_file_inputs > conftest.in | |
21106 | ||
21107 | EOF | |
21108 | ||
21109 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
21110 | # the proper values into config.h.in to produce config.h. And first: | |
21111 | # Protect against being on the right side of a sed subst in config.status. | |
21112 | # Protect against being in an unquoted here document in config.status. | |
21113 | rm -f conftest.vals | |
21114 | cat > conftest.hdr <<\EOF | |
21115 | s/[\\&%]/\\&/g | |
21116 | s%[\\$`]%\\&%g | |
21117 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
21118 | s%ac_d%ac_u%gp | |
21119 | s%ac_u%ac_e%gp | |
21120 | EOF | |
21121 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
21122 | rm -f conftest.hdr | |
10f2d63a VZ |
21123 | |
21124 | # This sed command replaces #undef with comments. This is necessary, for | |
21125 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
21126 | # on some systems where configure will not decide to define it. | |
698dcdb6 VZ |
21127 | cat >> conftest.vals <<\EOF |
21128 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
10f2d63a VZ |
21129 | EOF |
21130 | ||
698dcdb6 VZ |
21131 | # Break up conftest.vals because some shells have a limit on |
21132 | # the size of here documents, and old seds have small limits too. | |
10f2d63a VZ |
21133 | |
21134 | rm -f conftest.tail | |
698dcdb6 | 21135 | while : |
10f2d63a | 21136 | do |
698dcdb6 VZ |
21137 | ac_lines=`grep -c . conftest.vals` |
21138 | # grep -c gives empty output for an empty file on some AIX systems. | |
21139 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
21140 | # Write a limited-size here document to conftest.frag. | |
21141 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
21142 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
10f2d63a | 21143 | echo 'CEOF |
698dcdb6 VZ |
21144 | sed -f conftest.frag conftest.in > conftest.out |
21145 | rm -f conftest.in | |
21146 | mv conftest.out conftest.in | |
21147 | ' >> $CONFIG_STATUS | |
21148 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
21149 | rm -f conftest.vals | |
21150 | mv conftest.tail conftest.vals | |
10f2d63a | 21151 | done |
698dcdb6 VZ |
21152 | rm -f conftest.vals |
21153 | ||
21154 | cat >> $CONFIG_STATUS <<\EOF | |
21155 | rm -f conftest.frag conftest.h | |
21156 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
21157 | cat conftest.in >> conftest.h | |
21158 | rm -f conftest.in | |
21159 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
21160 | echo "$ac_file is unchanged" | |
21161 | rm -f conftest.h | |
10f2d63a | 21162 | else |
698dcdb6 VZ |
21163 | # Remove last slash and all that follows it. Not all systems have dirname. |
21164 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
10f2d63a | 21165 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
698dcdb6 VZ |
21166 | # The file is in a subdirectory. |
21167 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
10f2d63a | 21168 | fi |
698dcdb6 VZ |
21169 | rm -f $ac_file |
21170 | mv conftest.h $ac_file | |
10f2d63a | 21171 | fi |
698dcdb6 VZ |
21172 | fi; done |
21173 | ||
10f2d63a | 21174 | EOF |
698dcdb6 | 21175 | cat >> $CONFIG_STATUS <<EOF |
10f2d63a | 21176 | |
3a922bb4 | 21177 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}" |
698dcdb6 VZ |
21178 | LN_S="${LN_S}" |
21179 | ||
21180 | ||
21181 | EOF | |
21182 | cat >> $CONFIG_STATUS <<\EOF | |
10f2d63a | 21183 | |
652d930d | 21184 | if test ! -h wx-config; then |
991a5759 | 21185 | chmod +x wx-config |
3a922bb4 RL |
21186 | mv wx-config wx${TOOLCHAIN_NAME}-config |
21187 | ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config | |
991a5759 | 21188 | fi |
665bbe97 | 21189 | |
00cf1208 RR |
21190 | if test ! -d lib; then |
21191 | mkdir lib | |
21192 | fi | |
21193 | if test ! -d lib/wx; then | |
21194 | mkdir lib/wx | |
21195 | fi | |
21196 | if test ! -d lib/wx/include; then | |
21197 | mkdir lib/wx/include | |
21198 | fi | |
3a922bb4 RL |
21199 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then |
21200 | mkdir lib/wx/include/${TOOLCHAIN_NAME} | |
00cf1208 | 21201 | fi |
3a922bb4 RL |
21202 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then |
21203 | mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx | |
00cf1208 RR |
21204 | fi |
21205 | if test -f setup.h; then | |
3a922bb4 | 21206 | mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h |
00cf1208 | 21207 | fi |
698dcdb6 VZ |
21208 | |
21209 | exit 0 | |
10f2d63a VZ |
21210 | EOF |
21211 | chmod +x $CONFIG_STATUS | |
698dcdb6 VZ |
21212 | rm -fr confdefs* $ac_clean_files |
21213 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
10f2d63a | 21214 | |
2224580a VZ |
21215 | if test "$no_recursion" != yes; then |
21216 | ||
21217 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
21218 | ac_sub_configure_args= | |
21219 | ac_prev= | |
21220 | for ac_arg in $ac_configure_args; do | |
21221 | if test -n "$ac_prev"; then | |
21222 | ac_prev= | |
21223 | continue | |
21224 | fi | |
698dcdb6 | 21225 | case "$ac_arg" in |
2224580a VZ |
21226 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
21227 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
21228 | ac_prev=cache_file ;; | |
21229 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
698dcdb6 | 21230 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
2224580a VZ |
21231 | ;; |
21232 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
21233 | ac_prev=srcdir ;; | |
21234 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
21235 | ;; | |
21236 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
21237 | esac | |
21238 | done | |
21239 | ||
8f4a9a10 | 21240 | for ac_config_dir in demos samples utils contrib; do |
2224580a VZ |
21241 | |
21242 | # Do not complain, so a configure script can configure whichever | |
21243 | # parts of a large source tree are present. | |
698dcdb6 VZ |
21244 | if test ! -d $srcdir/$ac_config_dir; then |
21245 | continue | |
21246 | fi | |
21247 | ||
21248 | echo configuring in $ac_config_dir | |
2224580a | 21249 | |
698dcdb6 | 21250 | case "$srcdir" in |
2224580a VZ |
21251 | .) ;; |
21252 | *) | |
698dcdb6 VZ |
21253 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; |
21254 | else | |
21255 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
21256 | fi | |
21257 | ;; | |
2224580a VZ |
21258 | esac |
21259 | ||
21260 | ac_popdir=`pwd` | |
698dcdb6 | 21261 | cd $ac_config_dir |
2224580a | 21262 | |
698dcdb6 VZ |
21263 | # A "../" for each directory in /$ac_config_dir. |
21264 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
2224580a | 21265 | |
698dcdb6 | 21266 | case "$srcdir" in |
2224580a VZ |
21267 | .) # No --srcdir option. We are building in place. |
21268 | ac_sub_srcdir=$srcdir ;; | |
698dcdb6 VZ |
21269 | /*) # Absolute path. |
21270 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
2224580a | 21271 | *) # Relative path. |
698dcdb6 | 21272 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; |
2224580a VZ |
21273 | esac |
21274 | ||
21275 | # Check for guested configure; otherwise get Cygnus style configure. | |
698dcdb6 VZ |
21276 | if test -f $ac_sub_srcdir/configure; then |
21277 | ac_sub_configure=$ac_sub_srcdir/configure | |
2224580a VZ |
21278 | elif test -f $ac_sub_srcdir/configure.in; then |
21279 | ac_sub_configure=$ac_configure | |
21280 | else | |
698dcdb6 | 21281 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 |
2224580a VZ |
21282 | ac_sub_configure= |
21283 | fi | |
21284 | ||
21285 | # The recursion is here. | |
21286 | if test -n "$ac_sub_configure"; then | |
698dcdb6 | 21287 | |
2224580a | 21288 | # Make the cache file name correct relative to the subdirectory. |
698dcdb6 VZ |
21289 | case "$cache_file" in |
21290 | /*) ac_sub_cache_file=$cache_file ;; | |
2224580a | 21291 | *) # Relative path. |
698dcdb6 | 21292 | ac_sub_cache_file="$ac_dots$cache_file" ;; |
2224580a | 21293 | esac |
698dcdb6 VZ |
21294 | case "$ac_given_INSTALL" in |
21295 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
21296 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
21297 | esac | |
2224580a | 21298 | |
698dcdb6 | 21299 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" |
2224580a | 21300 | # The eval makes quoting arguments work. |
698dcdb6 VZ |
21301 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir |
21302 | then : | |
21303 | else | |
21304 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
21305 | fi | |
2224580a VZ |
21306 | fi |
21307 | ||
21308 | cd $ac_popdir | |
21309 | done | |
21310 | fi | |
21311 | ||
698dcdb6 | 21312 |