]>
Commit | Line | Data |
---|---|---|
10f2d63a VZ |
1 | #! /bin/sh |
2 | ||
698dcdb6 | 3 | # From configure.in Id: configure.in |
703e0a69 VZ |
4 | |
5 | ||
6 | ||
7 | ||
8 | ||
703e0a69 VZ |
9 | |
10 | ||
1e487827 | 11 | |
1e487827 | 12 | |
698dcdb6 VZ |
13 | |
14 | ||
15 | ||
16 | ||
17 | ||
18 | ||
19 | ||
20 | ||
21 | ||
22 | ||
23 | ||
24 | ||
25 | ||
26 | ||
27 | ||
28 | ||
29 | ||
30 | ||
31 | ||
32 | ||
33 | ||
34 | ||
35 | ||
36 | ||
37 | ||
38 | ||
39 | ||
40 | ||
b040e242 VS |
41 | |
42 | ||
43 | ||
b040e242 VS |
44 | |
45 | ||
46 | ||
47 | ||
48 | ||
49 | ||
50 | ||
51 | ||
52 | # Configure paths for GTK+ | |
53 | # Owen Taylor 97-11-3 | |
698dcdb6 | 54 | |
698dcdb6 VZ |
55 | |
56 | ||
57 | # Guess values for system-dependent variables and create Makefiles. | |
58 | # Generated automatically using autoconf version 2.13 | |
59 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. | |
60 | # | |
61 | # This configure script is free software; the Free Software Foundation | |
62 | # gives unlimited permission to copy, distribute and modify it. | |
63 | ||
64 | # Defaults: | |
65 | ac_help= | |
66 | ac_default_prefix=/usr/local | |
67 | # Any additions from configure.in: | |
68 | ac_help="$ac_help | |
8168de4c | 69 | --enable-gui use GUI classes" |
1e6feb95 | 70 | ac_help="$ac_help |
8168de4c | 71 | --enable-universal use wxWindows GUI controls instead of native ones" |
698dcdb6 VZ |
72 | ac_help="$ac_help |
73 | --with-gtk use GTK+" | |
74 | ac_help="$ac_help | |
75 | --with-motif use Motif/Lesstif" | |
76 | ac_help="$ac_help | |
77 | --with-mac use Mac OS X" | |
78 | ac_help="$ac_help | |
79 | --with-wine use WINE" | |
80 | ac_help="$ac_help | |
77e13408 | 81 | --with-msw use MS-Windows" |
698dcdb6 VZ |
82 | ac_help="$ac_help |
83 | --with-pm use OS/2 Presentation Manager" | |
1e6feb95 | 84 | ac_help="$ac_help |
b3e8d00a | 85 | --with-mgl use SciTech MGL" |
1725144d RR |
86 | ac_help="$ac_help |
87 | --with-microwin use MicroWindows" | |
f79bd02d JS |
88 | ac_help="$ac_help |
89 | --with-x11 use X11" | |
698dcdb6 | 90 | ac_help="$ac_help |
8168de4c | 91 | --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)" |
698dcdb6 | 92 | ac_help="$ac_help |
8168de4c | 93 | --with-libpng use libpng (PNG image format)" |
698dcdb6 | 94 | ac_help="$ac_help |
8168de4c | 95 | --with-libjpeg use libjpeg (JPEG file format)" |
698dcdb6 | 96 | ac_help="$ac_help |
8168de4c | 97 | --with-libtiff use libtiff (TIFF file format)" |
698dcdb6 | 98 | ac_help="$ac_help |
8168de4c | 99 | --with-opengl use OpenGL (or Mesa)" |
698dcdb6 | 100 | ac_help="$ac_help |
d0e9b150 | 101 | --with-dmalloc use dmalloc library (http://dmalloc.com/)" |
3e44f09d VZ |
102 | ac_help="$ac_help |
103 | --with-regex enable support for wxRegEx class" | |
698dcdb6 | 104 | ac_help="$ac_help |
8168de4c | 105 | --with-zlib use zlib for LZW compression" |
698dcdb6 | 106 | ac_help="$ac_help |
8168de4c | 107 | --with-odbc use the IODBC and wxODBC classes" |
698dcdb6 | 108 | ac_help="$ac_help |
8168de4c | 109 | --enable-shared create shared library code" |
698dcdb6 | 110 | ac_help="$ac_help |
3a922bb4 | 111 | --enable-soname set the DT_SONAME field in ELF shared libraries" |
698dcdb6 | 112 | ac_help="$ac_help |
8168de4c | 113 | --enable-optimise create optimised code" |
698dcdb6 | 114 | ac_help="$ac_help |
8168de4c | 115 | --enable-debug same as debug_flag and debug_info" |
683dccda GD |
116 | ac_help="$ac_help |
117 | --enable-precomp enable use of precompiled headers (Mac OS X)" | |
698dcdb6 | 118 | ac_help="$ac_help |
8168de4c | 119 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)" |
698dcdb6 | 120 | ac_help="$ac_help |
8168de4c | 121 | --enable-debug_info create code with debugging information" |
698dcdb6 | 122 | ac_help="$ac_help |
8168de4c | 123 | --enable-debug_gdb create code with extra GDB debugging information" |
698dcdb6 | 124 | ac_help="$ac_help |
8168de4c | 125 | --enable-debug_cntxt use wxDebugContext" |
698dcdb6 | 126 | ac_help="$ac_help |
8168de4c | 127 | --enable-mem_tracing create code with memory tracing" |
698dcdb6 | 128 | ac_help="$ac_help |
8168de4c | 129 | --enable-profile create code with profiling information" |
698dcdb6 | 130 | ac_help="$ac_help |
8168de4c | 131 | --enable-no_rtti create code without RTTI information" |
698dcdb6 | 132 | ac_help="$ac_help |
b3e8d00a | 133 | --enable-no_exceptions create code without C++ exceptions handling" |
698dcdb6 | 134 | ac_help="$ac_help |
8168de4c | 135 | --enable-permissive compile code disregarding strict ANSI" |
698dcdb6 | 136 | ac_help="$ac_help |
8168de4c | 137 | --enable-no_deps create code without dependency information" |
54276ccf | 138 | ac_help="$ac_help |
b3e8d00a | 139 | --enable-compat20 enable wxWindows 2.0 compatibility" |
54276ccf | 140 | ac_help="$ac_help |
b3e8d00a | 141 | --enable-compat22 enable wxWindows 2.2 compatibility" |
698dcdb6 | 142 | ac_help="$ac_help |
8168de4c | 143 | --enable-intl use internationalization system" |
698dcdb6 | 144 | ac_help="$ac_help |
8168de4c | 145 | --enable-config use wxConfig (and derived) classes" |
a1622950 VZ |
146 | ac_help="$ac_help |
147 | --enable-protocols use wxProtocol and derived classes" | |
148 | ac_help="$ac_help | |
149 | --enable-ftp use wxFTP (requires wxProtocol" | |
150 | ac_help="$ac_help | |
151 | --enable-http use wxHTTP (requires wxProtocol" | |
152 | ac_help="$ac_help | |
153 | --enable-fileproto use wxFileProto class (requires wxProtocol" | |
698dcdb6 | 154 | ac_help="$ac_help |
8168de4c | 155 | --enable-sockets use socket/network classes" |
698dcdb6 | 156 | ac_help="$ac_help |
8168de4c | 157 | --enable-ipc use interprocess communication (wxSocket etc.)" |
698dcdb6 | 158 | ac_help="$ac_help |
8168de4c | 159 | --enable-cmdline use wxCmdLineParser class" |
1e6feb95 | 160 | ac_help="$ac_help |
8168de4c | 161 | --enable-datetime use wxDateTime class" |
1e6feb95 | 162 | ac_help="$ac_help |
8168de4c | 163 | --enable-timedate use obsolete wxDate/wxTime classes" |
1e6feb95 | 164 | ac_help="$ac_help |
8168de4c | 165 | --enable-stopwatch use wxStopWatch class" |
1e6feb95 | 166 | ac_help="$ac_help |
8168de4c | 167 | --enable-dialupman use dialup network classes" |
698dcdb6 | 168 | ac_help="$ac_help |
8168de4c | 169 | --enable-apple_ieee use the Apple IEEE codec" |
698dcdb6 | 170 | ac_help="$ac_help |
8168de4c | 171 | --enable-timer use wxTimer class" |
698dcdb6 | 172 | ac_help="$ac_help |
8168de4c | 173 | --enable-wave use wxWave class" |
698dcdb6 | 174 | ac_help="$ac_help |
8168de4c | 175 | --enable-fraction use wxFraction class" |
698dcdb6 | 176 | ac_help="$ac_help |
8168de4c | 177 | --enable-dynlib use wxLibrary class for DLL loading" |
0b9ab0bd RL |
178 | ac_help="$ac_help |
179 | --enable-dynamicloader use (new) wxDynamicLibrary class" | |
698dcdb6 | 180 | ac_help="$ac_help |
8168de4c | 181 | --enable-longlong use wxLongLong class" |
698dcdb6 | 182 | ac_help="$ac_help |
8168de4c | 183 | --enable-geometry use geometry class" |
698dcdb6 | 184 | ac_help="$ac_help |
8168de4c | 185 | --enable-log use logging system" |
698dcdb6 | 186 | ac_help="$ac_help |
8168de4c | 187 | --enable-streams use wxStream etc classes" |
698dcdb6 | 188 | ac_help="$ac_help |
8168de4c | 189 | --enable-file use wxFile classes" |
698dcdb6 | 190 | ac_help="$ac_help |
8168de4c | 191 | --enable-ffile use wxFFile classes" |
1e6feb95 | 192 | ac_help="$ac_help |
a3a584a7 VZ |
193 | --enable-textbuf use wxTextBuffer class" |
194 | ac_help="$ac_help | |
195 | --enable-textfile use wxTextFile class" | |
698dcdb6 | 196 | ac_help="$ac_help |
8168de4c | 197 | --enable-fontmap use font encodings conversion classes" |
1e6feb95 | 198 | ac_help="$ac_help |
8168de4c | 199 | --enable-unicode compile wxString with Unicode support" |
a72a4bfa VS |
200 | ac_help="$ac_help |
201 | --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)" | |
698dcdb6 | 202 | ac_help="$ac_help |
8168de4c | 203 | --enable-wxprintfv use wxWindows implementation of vprintf()" |
698dcdb6 | 204 | ac_help="$ac_help |
8168de4c | 205 | --enable-std_iostreams use standard C++ stream classes" |
698dcdb6 | 206 | ac_help="$ac_help |
8168de4c | 207 | --enable-filesystem use virtual file systems classes" |
698dcdb6 | 208 | ac_help="$ac_help |
8168de4c | 209 | --enable-fs_inet use virtual HTTP/FTP filesystems" |
698dcdb6 | 210 | ac_help="$ac_help |
8168de4c | 211 | --enable-fs_zip use virtual ZIP filesystems" |
698dcdb6 | 212 | ac_help="$ac_help |
8168de4c | 213 | --enable-zipstream use wxZipInputStream" |
698dcdb6 | 214 | ac_help="$ac_help |
8168de4c | 215 | --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException" |
698dcdb6 | 216 | ac_help="$ac_help |
8168de4c | 217 | --enable-snglinst use wxSingleInstanceChecker class" |
698dcdb6 | 218 | ac_help="$ac_help |
69d27ff7 | 219 | --enable-mimetype use wxMimeTypesManager" |
3e44f09d | 220 | ac_help="$ac_help |
b3e8d00a | 221 | --enable-sysoptions use wxSystemOptions" |
4cdb0ab0 VS |
222 | ac_help="$ac_help |
223 | --enable-url use wxURL class" | |
224 | ac_help="$ac_help | |
225 | --enable-protocol use wxProtocol class" | |
226 | ac_help="$ac_help | |
227 | --enable-protocol-http HTTP support in wxProtocol" | |
228 | ac_help="$ac_help | |
229 | --enable-protocol-ftp FTP support in wxProtocol" | |
230 | ac_help="$ac_help | |
231 | --enable-protocol-file FILE support in wxProtocol" | |
1e6feb95 | 232 | ac_help="$ac_help |
8168de4c | 233 | --enable-threads use threads" |
698dcdb6 | 234 | ac_help="$ac_help |
8168de4c | 235 | --enable-docview use document view architecture" |
698dcdb6 | 236 | ac_help="$ac_help |
3379ed37 | 237 | --enable-help use help subsystem" |
29fd3c0c VS |
238 | ac_help="$ac_help |
239 | --enable-mshtmlhelp use MS HTML Help (win32)" | |
3379ed37 VZ |
240 | ac_help="$ac_help |
241 | --enable-html use wxHTML sub-library" | |
242 | ac_help="$ac_help | |
243 | --enable-htmlhelp use wxHTML-based help" | |
698dcdb6 | 244 | ac_help="$ac_help |
8168de4c | 245 | --enable-constraints use layout-constraints system" |
698dcdb6 | 246 | ac_help="$ac_help |
8168de4c | 247 | --enable-printarch use printing architecture" |
698dcdb6 | 248 | ac_help="$ac_help |
8168de4c | 249 | --enable-mdi use multiple document interface architecture" |
698dcdb6 | 250 | ac_help="$ac_help |
8168de4c | 251 | --enable-loggui use standard GUI logger" |
1e6feb95 | 252 | ac_help="$ac_help |
8168de4c | 253 | --enable-logwin use wxLogWindow" |
69d27ff7 MB |
254 | ac_help="$ac_help |
255 | --enable-logdialog use wxLogDialog" | |
1e6feb95 | 256 | ac_help="$ac_help |
8168de4c | 257 | --enable-postscript use wxPostscriptDC device context (default for gtk+)" |
698dcdb6 | 258 | ac_help="$ac_help |
8168de4c | 259 | --enable-prologio use Prolog IO library" |
698dcdb6 | 260 | ac_help="$ac_help |
8168de4c | 261 | --enable-resources use wxWindows resources" |
698dcdb6 | 262 | ac_help="$ac_help |
8168de4c | 263 | --enable-xresources use X resources for save (default for gtk+)" |
698dcdb6 | 264 | ac_help="$ac_help |
8168de4c | 265 | --enable-clipboard use wxClipboard classes" |
698dcdb6 | 266 | ac_help="$ac_help |
8168de4c | 267 | --enable-dnd use Drag'n'Drop classes" |
698dcdb6 | 268 | ac_help="$ac_help |
8168de4c | 269 | --enable-metafile use win32 metafiles" |
698dcdb6 | 270 | ac_help="$ac_help |
24176f2c | 271 | --enable-treelayout use wxTreeLayout classes" |
698dcdb6 | 272 | ac_help="$ac_help |
8168de4c | 273 | --enable-controls use all usual controls" |
698dcdb6 | 274 | ac_help="$ac_help |
8168de4c | 275 | --enable-accel use accelerators" |
698dcdb6 | 276 | ac_help="$ac_help |
8168de4c | 277 | --enable-button use wxButton class" |
698dcdb6 | 278 | ac_help="$ac_help |
8168de4c | 279 | --enable-bmpbutton use wxBitmapButton class" |
698dcdb6 | 280 | ac_help="$ac_help |
8168de4c | 281 | --enable-calendar use wxCalendarCtrl class" |
1e6feb95 | 282 | ac_help="$ac_help |
8168de4c | 283 | --enable-caret use wxCaret class" |
1e6feb95 | 284 | ac_help="$ac_help |
8168de4c | 285 | --enable-checkbox use wxCheckBox class" |
698dcdb6 | 286 | ac_help="$ac_help |
8168de4c | 287 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class" |
698dcdb6 | 288 | ac_help="$ac_help |
8168de4c | 289 | --enable-choice use wxChoice class" |
698dcdb6 | 290 | ac_help="$ac_help |
8168de4c | 291 | --enable-combobox use wxComboBox classes" |
698dcdb6 | 292 | ac_help="$ac_help |
8168de4c | 293 | --enable-gauge use wxGauge class" |
698dcdb6 | 294 | ac_help="$ac_help |
8168de4c | 295 | --enable-grid use wxGrid class" |
698dcdb6 | 296 | ac_help="$ac_help |
8168de4c | 297 | --enable-newgrid use new wxGrid class" |
698dcdb6 | 298 | ac_help="$ac_help |
8168de4c | 299 | --enable-imaglist use wxImageList class" |
698dcdb6 | 300 | ac_help="$ac_help |
8168de4c | 301 | --enable-listbox use wxListBox class" |
698dcdb6 | 302 | ac_help="$ac_help |
8168de4c | 303 | --enable-listctrl use wxListCtrl class" |
698dcdb6 | 304 | ac_help="$ac_help |
8168de4c | 305 | --enable-notebook use wxNotebook class" |
24176f2c GD |
306 | ac_help="$ac_help |
307 | --enable-propsheet use wxPropertySheet class" | |
698dcdb6 | 308 | ac_help="$ac_help |
8168de4c | 309 | --enable-radiobox use wxRadioBox class" |
698dcdb6 | 310 | ac_help="$ac_help |
8168de4c | 311 | --enable-radiobtn use wxRadioButton class" |
698dcdb6 | 312 | ac_help="$ac_help |
8168de4c | 313 | --enable-sash use wxSashWindow class" |
698dcdb6 | 314 | ac_help="$ac_help |
8168de4c | 315 | --enable-scrollbar use wxScrollBar class and scrollable windows" |
698dcdb6 | 316 | ac_help="$ac_help |
8168de4c | 317 | --enable-slider use wxSlider class" |
698dcdb6 | 318 | ac_help="$ac_help |
8168de4c | 319 | --enable-spinbtn use wxSpinButton class" |
698dcdb6 | 320 | ac_help="$ac_help |
8168de4c | 321 | --enable-spinctrl use wxSpinCtrl class" |
698dcdb6 | 322 | ac_help="$ac_help |
8168de4c | 323 | --enable-splitter use wxSplitterWindow class" |
698dcdb6 | 324 | ac_help="$ac_help |
8168de4c | 325 | --enable-statbmp use wxStaticBitmap class" |
698dcdb6 | 326 | ac_help="$ac_help |
8168de4c | 327 | --enable-statbox use wxStaticBox class" |
698dcdb6 | 328 | ac_help="$ac_help |
8168de4c | 329 | --enable-statline use wxStaticLine class" |
698dcdb6 | 330 | ac_help="$ac_help |
8168de4c | 331 | --enable-stattext use wxStaticText class" |
1e6feb95 | 332 | ac_help="$ac_help |
8168de4c | 333 | --enable-statusbar use wxStatusBar class" |
698dcdb6 | 334 | ac_help="$ac_help |
8168de4c | 335 | --enable-tabdialog use wxTabControl class" |
698dcdb6 | 336 | ac_help="$ac_help |
8168de4c | 337 | --enable-textctrl use wxTextCtrl class" |
1e6feb95 | 338 | ac_help="$ac_help |
8168de4c | 339 | --enable-togglebtn use wxToggleButton class" |
698dcdb6 | 340 | ac_help="$ac_help |
8168de4c | 341 | --enable-toolbar use wxToolBar class" |
698dcdb6 | 342 | ac_help="$ac_help |
8168de4c | 343 | --enable-tbarnative use native wxToolBar class" |
698dcdb6 | 344 | ac_help="$ac_help |
8168de4c | 345 | --enable-tbarsmpl use wxToolBarSimple class" |
698dcdb6 | 346 | ac_help="$ac_help |
8168de4c | 347 | --enable-treectrl use wxTreeCtrl class" |
9926e4a4 VZ |
348 | ac_help="$ac_help |
349 | --enable-tipwindow use wxTipWindow class" | |
9f41d601 RR |
350 | ac_help="$ac_help |
351 | --enable-popupwin use wxPopUpWindow class" | |
698dcdb6 | 352 | ac_help="$ac_help |
b3e8d00a | 353 | --enable-commondlg use all common dialogs" |
698dcdb6 | 354 | ac_help="$ac_help |
8168de4c | 355 | --enable-choicedlg use wxChoiceDialog" |
1e6feb95 | 356 | ac_help="$ac_help |
8168de4c | 357 | --enable-coldlg use wxColourDialog" |
1e6feb95 | 358 | ac_help="$ac_help |
8168de4c | 359 | --enable-filedlg use wxFileDialog" |
8db37e06 VZ |
360 | ac_help="$ac_help |
361 | --enable-finddlg use wxFindReplaceDialog" | |
1e6feb95 | 362 | ac_help="$ac_help |
8168de4c | 363 | --enable-fontdlg use wxFontDialog" |
1e6feb95 | 364 | ac_help="$ac_help |
8168de4c | 365 | --enable-dirdlg use wxDirDialog" |
698dcdb6 | 366 | ac_help="$ac_help |
8168de4c | 367 | --enable-msgdlg use wxMessageDialog" |
1e6feb95 | 368 | ac_help="$ac_help |
8168de4c | 369 | --enable-numberdlg use wxNumberEntryDialog" |
cbca9943 VZ |
370 | ac_help="$ac_help |
371 | --enable-splash use wxSplashScreen" | |
1e6feb95 | 372 | ac_help="$ac_help |
8168de4c | 373 | --enable-textdlg use wxTextDialog" |
698dcdb6 | 374 | ac_help="$ac_help |
8168de4c | 375 | --enable-tipdlg use startup tips" |
698dcdb6 | 376 | ac_help="$ac_help |
8168de4c | 377 | --enable-progressdlg use wxProgressDialog" |
b1f5d087 VZ |
378 | ac_help="$ac_help |
379 | --enable-wizarddlg use wxWizard" | |
698dcdb6 | 380 | ac_help="$ac_help |
8168de4c | 381 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes" |
1e6feb95 | 382 | ac_help="$ac_help |
8168de4c | 383 | --enable-miniframe use wxMiniFrame class" |
698dcdb6 | 384 | ac_help="$ac_help |
8168de4c | 385 | --enable-tooltips use wxToolTip class" |
698dcdb6 | 386 | ac_help="$ac_help |
8168de4c | 387 | --enable-splines use spline drawing code" |
698dcdb6 | 388 | ac_help="$ac_help |
8168de4c | 389 | --enable-validators use wxValidator and derived classes" |
698dcdb6 | 390 | ac_help="$ac_help |
8168de4c | 391 | --enable-busyinfo use wxBusyInfo" |
698dcdb6 | 392 | ac_help="$ac_help |
b3e8d00a | 393 | --enable-joystick use wxJoystick (Linux only)" |
698dcdb6 | 394 | ac_help="$ac_help |
8168de4c | 395 | --enable-metafiles use wxMetaFile (Windows only)" |
24fd6d87 VZ |
396 | ac_help="$ac_help |
397 | --enable-dragimage use wxDragImage" | |
edae8572 VZ |
398 | ac_help="$ac_help |
399 | --enable-palette use wxPalette class" | |
1e6feb95 | 400 | ac_help="$ac_help |
8168de4c | 401 | --enable-image use wxImage class" |
698dcdb6 | 402 | ac_help="$ac_help |
8168de4c | 403 | --enable-gif use gif images (GIF file format)" |
698dcdb6 | 404 | ac_help="$ac_help |
8168de4c | 405 | --enable-pcx use pcx images (PCX file format)" |
4b6b4dfc RR |
406 | ac_help="$ac_help |
407 | --enable-iff use iff images (IFF file format)" | |
698dcdb6 | 408 | ac_help="$ac_help |
8168de4c | 409 | --enable-pnm use pnm images (PNM file format)" |
698dcdb6 | 410 | ac_help="$ac_help |
8168de4c | 411 | --enable-xpm use xpm images (XPM file format)" |
658974ae VS |
412 | ac_help="$ac_help |
413 | --enable-icocur use Windows ICO and CUR formats" | |
698dcdb6 VZ |
414 | ac_help="$ac_help |
415 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
416 | ac_help="$ac_help | |
417 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
418 | ac_help="$ac_help | |
419 | --disable-gtktest Do not try to compile and run a test GTK program" | |
3f345b47 VZ |
420 | ac_help="$ac_help |
421 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
422 | ac_help="$ac_help | |
423 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
424 | ac_help="$ac_help | |
425 | --disable-gtktest Do not try to compile and run a test GTK program" | |
426 | ac_help="$ac_help | |
427 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
428 | ac_help="$ac_help | |
429 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
430 | ac_help="$ac_help | |
431 | --disable-gtktest Do not try to compile and run a test GTK program" | |
698dcdb6 VZ |
432 | ac_help="$ac_help |
433 | --with-x use the X Window System" | |
b040e242 VS |
434 | ac_help="$ac_help |
435 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib" | |
10f2d63a VZ |
436 | |
437 | # Initialize some variables set by options. | |
438 | # The variables have the same names as the options, with | |
439 | # dashes changed to underlines. | |
698dcdb6 VZ |
440 | build=NONE |
441 | cache_file=./config.cache | |
10f2d63a | 442 | exec_prefix=NONE |
698dcdb6 | 443 | host=NONE |
10f2d63a | 444 | no_create= |
698dcdb6 | 445 | nonopt=NONE |
10f2d63a VZ |
446 | no_recursion= |
447 | prefix=NONE | |
448 | program_prefix=NONE | |
449 | program_suffix=NONE | |
450 | program_transform_name=s,x,x, | |
451 | silent= | |
452 | site= | |
453 | srcdir= | |
698dcdb6 | 454 | target=NONE |
10f2d63a VZ |
455 | verbose= |
456 | x_includes=NONE | |
457 | x_libraries=NONE | |
458 | bindir='${exec_prefix}/bin' | |
459 | sbindir='${exec_prefix}/sbin' | |
460 | libexecdir='${exec_prefix}/libexec' | |
461 | datadir='${prefix}/share' | |
462 | sysconfdir='${prefix}/etc' | |
463 | sharedstatedir='${prefix}/com' | |
464 | localstatedir='${prefix}/var' | |
465 | libdir='${exec_prefix}/lib' | |
466 | includedir='${prefix}/include' | |
467 | oldincludedir='/usr/include' | |
468 | infodir='${prefix}/info' | |
469 | mandir='${prefix}/man' | |
470 | ||
698dcdb6 VZ |
471 | # Initialize some other variables. |
472 | subdirs= | |
473 | MFLAGS= MAKEFLAGS= | |
474 | SHELL=${CONFIG_SHELL-/bin/sh} | |
475 | # Maximum number of lines to put in a shell here document. | |
476 | ac_max_here_lines=12 | |
10f2d63a VZ |
477 | |
478 | ac_prev= | |
479 | for ac_option | |
480 | do | |
698dcdb6 | 481 | |
10f2d63a VZ |
482 | # If the previous option needs an argument, assign it. |
483 | if test -n "$ac_prev"; then | |
484 | eval "$ac_prev=\$ac_option" | |
485 | ac_prev= | |
486 | continue | |
487 | fi | |
488 | ||
698dcdb6 VZ |
489 | case "$ac_option" in |
490 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
491 | *) ac_optarg= ;; | |
492 | esac | |
10f2d63a VZ |
493 | |
494 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
495 | ||
698dcdb6 | 496 | case "$ac_option" in |
10f2d63a VZ |
497 | |
498 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
499 | ac_prev=bindir ;; | |
500 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
698dcdb6 | 501 | bindir="$ac_optarg" ;; |
10f2d63a VZ |
502 | |
503 | -build | --build | --buil | --bui | --bu) | |
698dcdb6 | 504 | ac_prev=build ;; |
10f2d63a | 505 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
698dcdb6 | 506 | build="$ac_optarg" ;; |
10f2d63a VZ |
507 | |
508 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
509 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
510 | ac_prev=cache_file ;; | |
511 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
512 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
698dcdb6 | 513 | cache_file="$ac_optarg" ;; |
10f2d63a VZ |
514 | |
515 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
516 | ac_prev=datadir ;; | |
517 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
518 | | --da=*) | |
698dcdb6 | 519 | datadir="$ac_optarg" ;; |
10f2d63a VZ |
520 | |
521 | -disable-* | --disable-*) | |
698dcdb6 | 522 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
10f2d63a | 523 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
524 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
525 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
526 | fi | |
527 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
528 | eval "enable_${ac_feature}=no" ;; | |
10f2d63a VZ |
529 | |
530 | -enable-* | --enable-*) | |
698dcdb6 | 531 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
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 | case "$ac_option" in | |
538 | *=*) ;; | |
10f2d63a VZ |
539 | *) ac_optarg=yes ;; |
540 | esac | |
698dcdb6 | 541 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
10f2d63a VZ |
542 | |
543 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
544 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
545 | | --exec | --exe | --ex) | |
546 | ac_prev=exec_prefix ;; | |
547 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
548 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
549 | | --exec=* | --exe=* | --ex=*) | |
698dcdb6 | 550 | exec_prefix="$ac_optarg" ;; |
10f2d63a VZ |
551 | |
552 | -gas | --gas | --ga | --g) | |
553 | # Obsolete; use --with-gas. | |
554 | with_gas=yes ;; | |
555 | ||
698dcdb6 VZ |
556 | -help | --help | --hel | --he) |
557 | # Omit some internal or obsolete options to make the list less imposing. | |
558 | # This message is too long to be a string in the A/UX 3.1 sh. | |
559 | cat << EOF | |
560 | Usage: configure [options] [host] | |
561 | Options: [defaults in brackets after descriptions] | |
562 | Configuration: | |
563 | --cache-file=FILE cache test results in FILE | |
564 | --help print this message | |
565 | --no-create do not create output files | |
566 | --quiet, --silent do not print \`checking...' messages | |
567 | --version print the version of autoconf that created configure | |
568 | Directory and file names: | |
569 | --prefix=PREFIX install architecture-independent files in PREFIX | |
570 | [$ac_default_prefix] | |
571 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
572 | [same as prefix] | |
573 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
574 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
575 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
576 | --datadir=DIR read-only architecture-independent data in DIR | |
577 | [PREFIX/share] | |
578 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
579 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
580 | [PREFIX/com] | |
581 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
582 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
583 | --includedir=DIR C header files in DIR [PREFIX/include] | |
584 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
585 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
586 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
587 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
588 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
589 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
590 | --program-transform-name=PROGRAM | |
591 | run sed PROGRAM on installed program names | |
592 | EOF | |
593 | cat << EOF | |
594 | Host type: | |
595 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
596 | --host=HOST configure for HOST [guessed] | |
597 | --target=TARGET configure for TARGET [TARGET=HOST] | |
598 | Features and packages: | |
599 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
600 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
601 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
602 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
603 | --x-includes=DIR X include files are in DIR | |
604 | --x-libraries=DIR X library files are in DIR | |
605 | EOF | |
606 | if test -n "$ac_help"; then | |
607 | echo "--enable and --with options recognized:$ac_help" | |
608 | fi | |
609 | exit 0 ;; | |
10f2d63a VZ |
610 | |
611 | -host | --host | --hos | --ho) | |
698dcdb6 | 612 | ac_prev=host ;; |
10f2d63a | 613 | -host=* | --host=* | --hos=* | --ho=*) |
698dcdb6 | 614 | host="$ac_optarg" ;; |
10f2d63a VZ |
615 | |
616 | -includedir | --includedir | --includedi | --included | --include \ | |
617 | | --includ | --inclu | --incl | --inc) | |
618 | ac_prev=includedir ;; | |
619 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
620 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
698dcdb6 | 621 | includedir="$ac_optarg" ;; |
10f2d63a VZ |
622 | |
623 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
624 | ac_prev=infodir ;; | |
625 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
698dcdb6 | 626 | infodir="$ac_optarg" ;; |
10f2d63a VZ |
627 | |
628 | -libdir | --libdir | --libdi | --libd) | |
629 | ac_prev=libdir ;; | |
630 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
698dcdb6 | 631 | libdir="$ac_optarg" ;; |
10f2d63a VZ |
632 | |
633 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
634 | | --libexe | --libex | --libe) | |
635 | ac_prev=libexecdir ;; | |
636 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
637 | | --libexe=* | --libex=* | --libe=*) | |
698dcdb6 | 638 | libexecdir="$ac_optarg" ;; |
10f2d63a VZ |
639 | |
640 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
641 | | --localstate | --localstat | --localsta | --localst \ | |
642 | | --locals | --local | --loca | --loc | --lo) | |
643 | ac_prev=localstatedir ;; | |
644 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
645 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
646 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
698dcdb6 | 647 | localstatedir="$ac_optarg" ;; |
10f2d63a VZ |
648 | |
649 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
650 | ac_prev=mandir ;; | |
651 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
698dcdb6 | 652 | mandir="$ac_optarg" ;; |
10f2d63a VZ |
653 | |
654 | -nfp | --nfp | --nf) | |
655 | # Obsolete; use --without-fp. | |
656 | with_fp=no ;; | |
657 | ||
658 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
659 | | --no-cr | --no-c) | |
660 | no_create=yes ;; | |
661 | ||
662 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
663 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
664 | no_recursion=yes ;; | |
665 | ||
666 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
667 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
668 | | --oldin | --oldi | --old | --ol | --o) | |
669 | ac_prev=oldincludedir ;; | |
670 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
671 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
672 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
698dcdb6 | 673 | oldincludedir="$ac_optarg" ;; |
10f2d63a VZ |
674 | |
675 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
676 | ac_prev=prefix ;; | |
677 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
698dcdb6 | 678 | prefix="$ac_optarg" ;; |
10f2d63a VZ |
679 | |
680 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
681 | | --program-pre | --program-pr | --program-p) | |
682 | ac_prev=program_prefix ;; | |
683 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
684 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
698dcdb6 | 685 | program_prefix="$ac_optarg" ;; |
10f2d63a VZ |
686 | |
687 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
688 | | --program-suf | --program-su | --program-s) | |
689 | ac_prev=program_suffix ;; | |
690 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
691 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
698dcdb6 | 692 | program_suffix="$ac_optarg" ;; |
10f2d63a VZ |
693 | |
694 | -program-transform-name | --program-transform-name \ | |
695 | | --program-transform-nam | --program-transform-na \ | |
696 | | --program-transform-n | --program-transform- \ | |
697 | | --program-transform | --program-transfor \ | |
698 | | --program-transfo | --program-transf \ | |
699 | | --program-trans | --program-tran \ | |
700 | | --progr-tra | --program-tr | --program-t) | |
701 | ac_prev=program_transform_name ;; | |
702 | -program-transform-name=* | --program-transform-name=* \ | |
703 | | --program-transform-nam=* | --program-transform-na=* \ | |
704 | | --program-transform-n=* | --program-transform-=* \ | |
705 | | --program-transform=* | --program-transfor=* \ | |
706 | | --program-transfo=* | --program-transf=* \ | |
707 | | --program-trans=* | --program-tran=* \ | |
708 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
698dcdb6 | 709 | program_transform_name="$ac_optarg" ;; |
10f2d63a VZ |
710 | |
711 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
712 | | -silent | --silent | --silen | --sile | --sil) | |
713 | silent=yes ;; | |
714 | ||
715 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
716 | ac_prev=sbindir ;; | |
717 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
718 | | --sbi=* | --sb=*) | |
698dcdb6 | 719 | sbindir="$ac_optarg" ;; |
10f2d63a VZ |
720 | |
721 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
722 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
723 | | --sharedst | --shareds | --shared | --share | --shar \ | |
724 | | --sha | --sh) | |
725 | ac_prev=sharedstatedir ;; | |
726 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
727 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
728 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
729 | | --sha=* | --sh=*) | |
698dcdb6 | 730 | sharedstatedir="$ac_optarg" ;; |
10f2d63a VZ |
731 | |
732 | -site | --site | --sit) | |
733 | ac_prev=site ;; | |
734 | -site=* | --site=* | --sit=*) | |
698dcdb6 | 735 | site="$ac_optarg" ;; |
10f2d63a VZ |
736 | |
737 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
738 | ac_prev=srcdir ;; | |
739 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
698dcdb6 | 740 | srcdir="$ac_optarg" ;; |
10f2d63a VZ |
741 | |
742 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
743 | | --syscon | --sysco | --sysc | --sys | --sy) | |
744 | ac_prev=sysconfdir ;; | |
745 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
746 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
698dcdb6 | 747 | sysconfdir="$ac_optarg" ;; |
10f2d63a VZ |
748 | |
749 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
698dcdb6 | 750 | ac_prev=target ;; |
10f2d63a | 751 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
698dcdb6 | 752 | target="$ac_optarg" ;; |
10f2d63a VZ |
753 | |
754 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
755 | verbose=yes ;; | |
756 | ||
698dcdb6 VZ |
757 | -version | --version | --versio | --versi | --vers) |
758 | echo "configure generated by autoconf version 2.13" | |
759 | exit 0 ;; | |
10f2d63a VZ |
760 | |
761 | -with-* | --with-*) | |
698dcdb6 | 762 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
10f2d63a | 763 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
764 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
765 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
766 | fi | |
10f2d63a | 767 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
698dcdb6 VZ |
768 | case "$ac_option" in |
769 | *=*) ;; | |
10f2d63a VZ |
770 | *) ac_optarg=yes ;; |
771 | esac | |
698dcdb6 | 772 | eval "with_${ac_package}='$ac_optarg'" ;; |
10f2d63a VZ |
773 | |
774 | -without-* | --without-*) | |
698dcdb6 | 775 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
10f2d63a | 776 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
777 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
778 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
779 | fi | |
780 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
781 | eval "with_${ac_package}=no" ;; | |
10f2d63a VZ |
782 | |
783 | --x) | |
784 | # Obsolete; use --with-x. | |
785 | with_x=yes ;; | |
786 | ||
787 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
788 | | --x-incl | --x-inc | --x-in | --x-i) | |
789 | ac_prev=x_includes ;; | |
790 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
791 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
698dcdb6 | 792 | x_includes="$ac_optarg" ;; |
10f2d63a VZ |
793 | |
794 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
795 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
796 | ac_prev=x_libraries ;; | |
797 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
798 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
698dcdb6 | 799 | x_libraries="$ac_optarg" ;; |
10f2d63a | 800 | |
698dcdb6 | 801 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
10f2d63a VZ |
802 | ;; |
803 | ||
804 | *) | |
698dcdb6 VZ |
805 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
806 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
807 | fi | |
808 | if test "x$nonopt" != xNONE; then | |
809 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
810 | fi | |
811 | nonopt="$ac_option" | |
10f2d63a VZ |
812 | ;; |
813 | ||
814 | esac | |
815 | done | |
816 | ||
817 | if test -n "$ac_prev"; then | |
698dcdb6 VZ |
818 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
819 | fi | |
820 | ||
821 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
822 | ||
823 | # File descriptor usage: | |
824 | # 0 standard input | |
825 | # 1 file creation | |
826 | # 2 errors and warnings | |
827 | # 3 some systems may open it to /dev/tty | |
828 | # 4 used on the Kubota Titan | |
829 | # 6 checking for... messages and results | |
830 | # 5 compiler messages saved in config.log | |
831 | if test "$silent" = yes; then | |
832 | exec 6>/dev/null | |
833 | else | |
834 | exec 6>&1 | |
10f2d63a | 835 | fi |
698dcdb6 VZ |
836 | exec 5>./config.log |
837 | ||
838 | echo "\ | |
839 | This file contains any messages produced by compilers while | |
840 | running configure, to aid debugging if configure makes a mistake. | |
841 | " 1>&5 | |
10f2d63a | 842 | |
698dcdb6 VZ |
843 | # Strip out --no-create and --no-recursion so they do not pile up. |
844 | # Also quote any args containing shell metacharacters. | |
845 | ac_configure_args= | |
846 | for ac_arg | |
10f2d63a | 847 | do |
698dcdb6 VZ |
848 | case "$ac_arg" in |
849 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
850 | | --no-cr | --no-c) ;; | |
851 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
852 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
853 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
854 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
855 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
10f2d63a VZ |
856 | esac |
857 | done | |
858 | ||
698dcdb6 VZ |
859 | # NLS nuisances. |
860 | # Only set these to C if already set. These must not be set unconditionally | |
861 | # because not all systems understand e.g. LANG=C (notably SCO). | |
862 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
863 | # Non-C LC_CTYPE values break the ctype check. | |
864 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
865 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
866 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
867 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
10f2d63a | 868 | |
698dcdb6 VZ |
869 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
870 | rm -rf conftest* confdefs.h | |
871 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
872 | echo > confdefs.h | |
10f2d63a | 873 | |
698dcdb6 VZ |
874 | # A filename unique to this package, relative to the directory that |
875 | # configure is in, which we can look for to find out if srcdir is correct. | |
876 | ac_unique_file=wx-config.in | |
10f2d63a VZ |
877 | |
878 | # Find the source files, if location was not specified. | |
879 | if test -z "$srcdir"; then | |
880 | ac_srcdir_defaulted=yes | |
881 | # Try the directory containing this script, then its parent. | |
882 | ac_prog=$0 | |
698dcdb6 | 883 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
10f2d63a VZ |
884 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
885 | srcdir=$ac_confdir | |
886 | if test ! -r $srcdir/$ac_unique_file; then | |
887 | srcdir=.. | |
888 | fi | |
889 | else | |
890 | ac_srcdir_defaulted=no | |
891 | fi | |
892 | if test ! -r $srcdir/$ac_unique_file; then | |
893 | if test "$ac_srcdir_defaulted" = yes; then | |
698dcdb6 | 894 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
10f2d63a | 895 | else |
698dcdb6 | 896 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
10f2d63a VZ |
897 | fi |
898 | fi | |
698dcdb6 | 899 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
10f2d63a VZ |
900 | |
901 | # Prefer explicitly selected file to automatically selected ones. | |
902 | if test -z "$CONFIG_SITE"; then | |
903 | if test "x$prefix" != xNONE; then | |
904 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
905 | else | |
906 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
907 | fi | |
908 | fi | |
909 | for ac_site_file in $CONFIG_SITE; do | |
910 | if test -r "$ac_site_file"; then | |
698dcdb6 | 911 | echo "loading site script $ac_site_file" |
10f2d63a VZ |
912 | . "$ac_site_file" |
913 | fi | |
914 | done | |
915 | ||
916 | if test -r "$cache_file"; then | |
698dcdb6 VZ |
917 | echo "loading cache $cache_file" |
918 | . $cache_file | |
10f2d63a | 919 | else |
698dcdb6 VZ |
920 | echo "creating cache $cache_file" |
921 | > $cache_file | |
10f2d63a VZ |
922 | fi |
923 | ||
924 | ac_ext=c | |
698dcdb6 | 925 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 926 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
927 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
928 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
929 | cross_compiling=$ac_cv_prog_cc_cross | |
930 | ||
931 | ac_exeext= | |
932 | ac_objext=o | |
933 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
934 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
935 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
936 | ac_n= ac_c=' | |
937 | ' ac_t=' ' | |
938 | else | |
939 | ac_n=-n ac_c= ac_t= | |
940 | fi | |
10f2d63a | 941 | else |
698dcdb6 | 942 | ac_n= ac_c='\c' ac_t= |
10f2d63a | 943 | fi |
698dcdb6 VZ |
944 | |
945 | ||
10f2d63a | 946 | |
7c66a493 VZ |
947 | ac_aux_dir= |
948 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
949 | if test -f $ac_dir/install-sh; then | |
950 | ac_aux_dir=$ac_dir | |
951 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
952 | break | |
953 | elif test -f $ac_dir/install.sh; then | |
954 | ac_aux_dir=$ac_dir | |
955 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
956 | break | |
957 | fi | |
958 | done | |
959 | if test -z "$ac_aux_dir"; then | |
698dcdb6 | 960 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
7c66a493 | 961 | fi |
698dcdb6 VZ |
962 | ac_config_guess=$ac_aux_dir/config.guess |
963 | ac_config_sub=$ac_aux_dir/config.sub | |
964 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
703e0a69 | 965 | |
698dcdb6 VZ |
966 | |
967 | # Do some error checking and defaulting for the host and target type. | |
968 | # The inputs are: | |
969 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
970 | # | |
971 | # The rules are: | |
972 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
973 | # same time. | |
974 | # 2. Host defaults to nonopt. | |
975 | # 3. If nonopt is not specified, then host defaults to the current host, | |
976 | # as determined by config.guess. | |
977 | # 4. Target and build default to nonopt. | |
978 | # 5. If nonopt is not specified, then target and build default to host. | |
7c66a493 VZ |
979 | |
980 | # The aliases save the names the user supplied, while $host etc. | |
981 | # will get canonicalized. | |
698dcdb6 VZ |
982 | case $host---$target---$nonopt in |
983 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
984 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
985 | esac | |
986 | ||
987 | ||
988 | # Make sure we can run config.sub. | |
989 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
990 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
991 | fi | |
992 | ||
993 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
cb61c62d | 994 | echo "configure:995: checking host system type" >&5 |
698dcdb6 VZ |
995 | |
996 | host_alias=$host | |
997 | case "$host_alias" in | |
998 | NONE) | |
999 | case $nonopt in | |
1000 | NONE) | |
1001 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
1002 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
1003 | fi ;; | |
1004 | *) host_alias=$nonopt ;; | |
1005 | esac ;; | |
1006 | esac | |
1007 | ||
1008 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
1009 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1010 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1011 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1012 | echo "$ac_t""$host" 1>&6 | |
1013 | ||
1014 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
cb61c62d | 1015 | echo "configure:1016: checking target system type" >&5 |
698dcdb6 VZ |
1016 | |
1017 | target_alias=$target | |
1018 | case "$target_alias" in | |
1019 | NONE) | |
1020 | case $nonopt in | |
1021 | NONE) target_alias=$host_alias ;; | |
1022 | *) target_alias=$nonopt ;; | |
1023 | esac ;; | |
1024 | esac | |
1025 | ||
1026 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
1027 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1028 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1029 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1030 | echo "$ac_t""$target" 1>&6 | |
1031 | ||
1032 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
cb61c62d | 1033 | echo "configure:1034: checking build system type" >&5 |
698dcdb6 VZ |
1034 | |
1035 | build_alias=$build | |
1036 | case "$build_alias" in | |
1037 | NONE) | |
1038 | case $nonopt in | |
1039 | NONE) build_alias=$host_alias ;; | |
1040 | *) build_alias=$nonopt ;; | |
1041 | esac ;; | |
1042 | esac | |
1043 | ||
1044 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
1045 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1046 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1047 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1048 | echo "$ac_t""$build" 1>&6 | |
1049 | ||
1050 | test "$host_alias" != "$target_alias" && | |
7c66a493 VZ |
1051 | test "$program_prefix$program_suffix$program_transform_name" = \ |
1052 | NONENONEs,x,x, && | |
1053 | program_prefix=${target_alias}- | |
1054 | ||
698dcdb6 VZ |
1055 | |
1056 | ||
10f2d63a | 1057 | WX_MAJOR_VERSION_NUMBER=2 |
37d403aa | 1058 | WX_MINOR_VERSION_NUMBER=3 |
a0d927d1 | 1059 | WX_RELEASE_NUMBER=3 |
10f2d63a | 1060 | |
10f2d63a | 1061 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER |
10f2d63a | 1062 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER |
6426998c | 1063 | |
978f1259 RL |
1064 | WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER |
1065 | ||
a0d927d1 | 1066 | WX_CURRENT=2 |
6426998c RL |
1067 | WX_REVISION=0 |
1068 | WX_AGE=0 | |
1069 | ||
698dcdb6 VZ |
1070 | |
1071 | ||
10f2d63a VZ |
1072 | USE_UNIX=1 |
1073 | USE_WIN32=0 | |
f9bc1684 | 1074 | USE_DOS=0 |
b12915c1 | 1075 | USE_BEOS=0 |
1216f52d | 1076 | USE_MAC=0 |
b12915c1 | 1077 | |
10f2d63a VZ |
1078 | USE_LINUX= |
1079 | USE_SGI= | |
1080 | USE_HPUX= | |
1081 | USE_SYSV= | |
1082 | USE_SVR4= | |
1083 | USE_AIX= | |
1084 | USE_SUN= | |
1085 | USE_SOLARIS= | |
1086 | USE_SUNOS= | |
1087 | USE_ALPHA= | |
1088 | USE_OSF= | |
1089 | USE_BSD= | |
f11bdd03 | 1090 | USE_DARWIN= |
10f2d63a | 1091 | USE_FREEBSD= |
95c8801c | 1092 | USE_OPENBSD= |
f6bcfd97 | 1093 | USE_NETBSD= |
10f2d63a VZ |
1094 | USE_VMS= |
1095 | USE_ULTRIX= | |
10f2d63a VZ |
1096 | USE_DATA_GENERAL= |
1097 | ||
ab9b9eab VZ |
1098 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 |
1099 | ||
3f345b47 VZ |
1100 | CPP_MT_FLAG=-D_REENTRANT |
1101 | ||
f79bd02d | 1102 | ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM WINE X11" |
10f2d63a VZ |
1103 | |
1104 | DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1105 | DEFAULT_wxUSE_MAC=0 |
1106 | DEFAULT_wxUSE_MGL=0 | |
1725144d | 1107 | DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1108 | DEFAULT_wxUSE_MOTIF=0 |
1109 | DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1110 | DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1111 | DEFAULT_wxUSE_WINE=0 |
f79bd02d | 1112 | DEFAULT_wxUSE_X11=0 |
10f2d63a VZ |
1113 | |
1114 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1115 | DEFAULT_DEFAULT_wxUSE_MAC=0 |
1116 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1725144d | 1117 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1118 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 |
1119 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1120 | DEFAULT_DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1121 | DEFAULT_DEFAULT_wxUSE_WINE=0 |
f79bd02d | 1122 | DEFAULT_DEFAULT_wxUSE_X11=0 |
10f2d63a | 1123 | |
d6a55c4b | 1124 | PROGRAM_EXT= |
3a922bb4 | 1125 | SO_SUFFIX=so |
d6a55c4b | 1126 | |
10f2d63a VZ |
1127 | case "${host}" in |
1128 | *-hp-hpux* ) | |
1129 | USE_HPUX=1 | |
1130 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1131 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
3a922bb4 | 1132 | SO_SUFFIX=sl |
698dcdb6 | 1133 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1134 | #define __HPUX__ 1 |
1135 | EOF | |
1136 | ||
1137 | ;; | |
1138 | *-*-linux* ) | |
1139 | USE_LINUX=1 | |
698dcdb6 | 1140 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1141 | #define __LINUX__ 1 |
1142 | EOF | |
1143 | ||
1144 | TMP=`uname -m` | |
1145 | if test "x$TMP" = "xalpha"; then | |
1146 | USE_ALPHA=1 | |
698dcdb6 | 1147 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1148 | #define __ALPHA__ 1 |
1149 | EOF | |
1150 | ||
1151 | fi | |
1152 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1153 | ;; | |
1154 | *-*-irix5* | *-*-irix6* ) | |
1155 | USE_SGI=1 | |
1156 | USE_SVR4=1 | |
698dcdb6 | 1157 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1158 | #define __SGI__ 1 |
1159 | EOF | |
1160 | ||
698dcdb6 | 1161 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1162 | #define __SVR4__ 1 |
1163 | EOF | |
1164 | ||
1165 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1166 | ;; | |
1167 | *-*-solaris2* ) | |
1168 | USE_SUN=1 | |
1169 | USE_SOLARIS=1 | |
1170 | USE_SVR4=1 | |
698dcdb6 | 1171 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1172 | #define __SUN__ 1 |
1173 | EOF | |
1174 | ||
698dcdb6 | 1175 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1176 | #define __SOLARIS__ 1 |
1177 | EOF | |
1178 | ||
698dcdb6 | 1179 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1180 | #define __SVR4__ 1 |
1181 | EOF | |
1182 | ||
1183 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1184 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1185 | ;; |
1186 | *-*-sunos4* ) | |
1187 | USE_SUN=1 | |
1188 | USE_SUNOS=1 | |
1189 | USE_BSD=1 | |
698dcdb6 | 1190 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1191 | #define __SUN__ 1 |
1192 | EOF | |
1193 | ||
698dcdb6 | 1194 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1195 | #define __SUNOS__ 1 |
1196 | EOF | |
1197 | ||
698dcdb6 | 1198 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1199 | #define __BSD__ 1 |
1200 | EOF | |
1201 | ||
1202 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1203 | ;; | |
f6bcfd97 | 1204 | *-*-freebsd*) |
10f2d63a VZ |
1205 | USE_BSD=1 |
1206 | USE_FREEBSD=1 | |
3f345b47 | 1207 | CPP_MT_FLAG=-D_THREAD_SAFE |
698dcdb6 | 1208 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1209 | #define __FREEBSD__ 1 |
1210 | EOF | |
1211 | ||
698dcdb6 | 1212 | cat >> confdefs.h <<\EOF |
10f2d63a | 1213 | #define __BSD__ 1 |
95c8801c VS |
1214 | EOF |
1215 | ||
1216 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1217 | ;; | |
1218 | *-*-openbsd*) | |
1219 | USE_BSD=1 | |
1220 | USE_OPENBSD=1 | |
698dcdb6 | 1221 | cat >> confdefs.h <<\EOF |
95c8801c VS |
1222 | #define __FREEBSD__ 1 |
1223 | EOF | |
1224 | ||
698dcdb6 | 1225 | cat >> confdefs.h <<\EOF |
95c8801c | 1226 | #define __OPENBSD__ 1 |
f6bcfd97 BP |
1227 | EOF |
1228 | ||
1229 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1230 | ;; | |
1231 | *-*-netbsd*) | |
1232 | USE_BSD=1 | |
1233 | USE_NETBSD=1 | |
698dcdb6 | 1234 | cat >> confdefs.h <<\EOF |
f6bcfd97 BP |
1235 | #define __FREEBSD__ 1 |
1236 | EOF | |
1237 | ||
698dcdb6 | 1238 | cat >> confdefs.h <<\EOF |
f6bcfd97 | 1239 | #define __NETBSD__ 1 |
10f2d63a VZ |
1240 | EOF |
1241 | ||
1242 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1243 | ;; | |
1244 | *-*-osf* ) | |
1245 | USE_ALPHA=1 | |
1246 | USE_OSF=1 | |
698dcdb6 | 1247 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1248 | #define __ALPHA__ 1 |
1249 | EOF | |
1250 | ||
698dcdb6 | 1251 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1252 | #define __OSF__ 1 |
1253 | EOF | |
1254 | ||
1255 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
f6bcfd97 | 1256 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1257 | ;; |
1258 | *-*-dgux5* ) | |
1259 | USE_ALPHA=1 | |
1260 | USE_SVR4=1 | |
698dcdb6 | 1261 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1262 | #define __ALPHA__ 1 |
1263 | EOF | |
1264 | ||
698dcdb6 | 1265 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1266 | #define __SVR4__ 1 |
1267 | EOF | |
1268 | ||
1269 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1270 | ;; | |
1271 | *-*-sysv5* ) | |
1272 | USE_SYSV=1 | |
1273 | USE_SVR4=1 | |
698dcdb6 | 1274 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1275 | #define __SYSV__ 1 |
1276 | EOF | |
1277 | ||
698dcdb6 | 1278 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1279 | #define __SVR4__ 1 |
1280 | EOF | |
1281 | ||
1282 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1283 | ;; | |
1284 | *-*-aix* ) | |
1285 | USE_AIX=1 | |
1286 | USE_SYSV=1 | |
1287 | USE_SVR4=1 | |
698dcdb6 | 1288 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1289 | #define __AIX__ 1 |
1290 | EOF | |
1291 | ||
698dcdb6 | 1292 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1293 | #define __SYSV__ 1 |
1294 | EOF | |
1295 | ||
698dcdb6 | 1296 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1297 | #define __SVR4__ 1 |
1298 | EOF | |
1299 | ||
1300 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1301 | ;; | |
1302 | ||
1c8183e2 | 1303 | *-*-cygwin* | *-*-mingw32* ) |
10f2d63a VZ |
1304 | USE_UNIX=0 |
1305 | USE_WIN32=1 | |
3a922bb4 | 1306 | SO_SUFFIX=dll |
698dcdb6 | 1307 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1308 | #define __WIN32__ 1 |
1309 | EOF | |
1310 | ||
698dcdb6 | 1311 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1312 | #define __WIN95__ 1 |
1313 | EOF | |
1314 | ||
698dcdb6 | 1315 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1316 | #define __WINDOWS__ 1 |
1317 | EOF | |
1318 | ||
698dcdb6 | 1319 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1320 | #define __GNUWIN32__ 1 |
1321 | EOF | |
1322 | ||
698dcdb6 | 1323 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1324 | #define STRICT 1 |
1325 | EOF | |
1326 | ||
698dcdb6 | 1327 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1328 | #define WINVER 0x0400 |
1329 | EOF | |
1330 | ||
cf27ef00 | 1331 | PROGRAM_EXT=".exe" |
7b7a7637 | 1332 | RESCOMP=windres |
10f2d63a VZ |
1333 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
1334 | ;; | |
1335 | ||
f9bc1684 VS |
1336 | *-pc-msdosdjgpp ) |
1337 | USE_UNIX=0 | |
1338 | USE_DOS=1 | |
1339 | cat >> confdefs.h <<\EOF | |
1340 | #define __DOS__ 1 | |
1341 | EOF | |
1342 | ||
1343 | PROGRAM_EXT=".exe" | |
1344 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
f9bc1684 VS |
1345 | ;; |
1346 | ||
6fa882bd | 1347 | *-pc-os2_emx | *-pc-os2-emx ) |
698dcdb6 | 1348 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1349 | #define __EMX__ 1 |
1350 | EOF | |
1351 | ||
cf27ef00 | 1352 | PROGRAM_EXT=".exe" |
e07802fc | 1353 | DEFAULT_DEFAULT_wxUSE_PM=1 |
10f2d63a VZ |
1354 | ;; |
1355 | ||
d08b457b GD |
1356 | powerpc-*-darwin* ) |
1357 | USE_BSD=1 | |
f11bdd03 | 1358 | USE_DARWIN=1 |
3f345b47 | 1359 | CPP_MT_FLAG= |
3a922bb4 | 1360 | SO_SUFFIX=dylib |
698dcdb6 | 1361 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1362 | #define __BSD__ 1 |
b4085ce6 GD |
1363 | EOF |
1364 | ||
698dcdb6 | 1365 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1366 | #define __DARWIN__ 1 |
d08b457b GD |
1367 | EOF |
1368 | ||
1369 | cat >> confdefs.h <<\EOF | |
1370 | #define __POWERPC__ 1 | |
b4085ce6 GD |
1371 | EOF |
1372 | ||
1373 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1374 | ;; | |
1375 | ||
b12915c1 VZ |
1376 | *-*-beos* ) |
1377 | USE_BEOS=1 | |
698dcdb6 | 1378 | cat >> confdefs.h <<\EOF |
b12915c1 VZ |
1379 | #define __BEOS__ 1 |
1380 | EOF | |
1381 | ||
1382 | ;; | |
1383 | ||
10f2d63a | 1384 | *) |
698dcdb6 | 1385 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } |
10f2d63a VZ |
1386 | esac |
1387 | ||
1388 | if test "$USE_UNIX" = 1 ; then | |
b12915c1 | 1389 | wxUSE_UNIX=yes |
698dcdb6 | 1390 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1391 | #define __UNIX__ 1 |
1392 | EOF | |
1393 | ||
10f2d63a VZ |
1394 | fi |
1395 | ||
2389f33b VZ |
1396 | if test "$USE_LINUX" = 1; then |
1397 | echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6 | |
4222829b | 1398 | echo "configure:1399: checking for glibc 2.1 or later" >&5 |
2389f33b VZ |
1399 | if eval "test \"`echo '$''{'wx_lib_glibc21'+set}'`\" = set"; then |
1400 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1401 | else | |
a72a4bfa VS |
1402 | |
1403 | cat > conftest.$ac_ext <<EOF | |
4222829b | 1404 | #line 1405 "configure" |
2389f33b VZ |
1405 | #include "confdefs.h" |
1406 | #include <features.h> | |
1407 | int main() { | |
1408 | ||
1409 | #if !__GLIBC_PREREQ(2, 1) | |
1410 | #error not glibc2.1 | |
1411 | #endif | |
1412 | ||
1413 | ; return 0; } | |
1414 | EOF | |
4222829b | 1415 | if { (eval echo configure:1416: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2389f33b VZ |
1416 | rm -rf conftest* |
1417 | ||
1418 | wx_lib_glibc21=yes | |
1419 | ||
1420 | else | |
1421 | echo "configure: failed program was:" >&5 | |
1422 | cat conftest.$ac_ext >&5 | |
1423 | rm -rf conftest* | |
1424 | ||
1425 | wx_lib_glibc21=no | |
1426 | ||
1427 | ||
1428 | fi | |
1429 | rm -f conftest* | |
1430 | ||
1431 | fi | |
1432 | ||
1433 | echo "$ac_t""$wx_lib_glibc21" 1>&6 | |
2389f33b VZ |
1434 | if test "$wx_lib_glibc21" = "yes"; then |
1435 | cat >> confdefs.h <<\EOF | |
1436 | #define wxHAVE_GLIBC2 1 | |
1437 | EOF | |
1438 | ||
1439 | fi | |
1440 | fi | |
10f2d63a | 1441 | |
1e487827 | 1442 | |
1e487827 | 1443 | |
6232543b | 1444 | |
10f2d63a VZ |
1445 | wx_arg_cache_file="configarg.cache" |
1446 | echo "loading argument cache $wx_arg_cache_file" | |
1447 | rm -f ${wx_arg_cache_file}.tmp | |
1448 | touch ${wx_arg_cache_file}.tmp | |
1449 | touch ${wx_arg_cache_file} | |
698dcdb6 | 1450 | |
10f2d63a VZ |
1451 | |
1452 | DEBUG_CONFIGURE=0 | |
1453 | if test $DEBUG_CONFIGURE = 1; then | |
1e6feb95 VZ |
1454 | DEFAULT_wxUSE_UNIVERSAL=no |
1455 | ||
10f2d63a VZ |
1456 | DEFAULT_wxUSE_THREADS=yes |
1457 | ||
1458 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1459 | DEFAULT_wxUSE_SONAME=no |
1e6feb95 | 1460 | DEFAULT_wxUSE_OPTIMISE=no |
10f2d63a VZ |
1461 | DEFAULT_wxUSE_PROFILE=no |
1462 | DEFAULT_wxUSE_NO_DEPS=no | |
f676c7ff MB |
1463 | DEFAULT_wxUSE_NO_RTTI=yes |
1464 | DEFAULT_wxUSE_NO_EXCEPTIONS=yes | |
10f2d63a VZ |
1465 | DEFAULT_wxUSE_PERMISSIVE=no |
1466 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1467 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1468 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1469 | DEFAULT_wxUSE_MEM_TRACING=no | |
1470 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1471 | DEFAULT_wxUSE_DMALLOC=no | |
a7ae7112 | 1472 | DEFAULT_wxUSE_PRECOMP=no |
10f2d63a VZ |
1473 | DEFAULT_wxUSE_APPLE_IEEE=no |
1474 | ||
1475 | DEFAULT_wxUSE_LOG=yes | |
1e6feb95 VZ |
1476 | DEFAULT_wxUSE_LOGWINDOW=no |
1477 | DEFAULT_wxUSE_LOGGUI=no | |
69d27ff7 | 1478 | DEFAULT_wxUSE_LOGDIALOG=no |
10f2d63a VZ |
1479 | |
1480 | DEFAULT_wxUSE_GUI=yes | |
1e6feb95 | 1481 | DEFAULT_wxUSE_CONTROLS=no |
10f2d63a | 1482 | |
3e44f09d | 1483 | DEFAULT_wxUSE_REGEX=no |
10f2d63a VZ |
1484 | DEFAULT_wxUSE_ZLIB=no |
1485 | DEFAULT_wxUSE_LIBPNG=no | |
1486 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 1487 | DEFAULT_wxUSE_LIBTIFF=no |
10f2d63a | 1488 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 1489 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1490 | |
eb4efbdc | 1491 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no |
4f3c5f06 | 1492 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
10f2d63a | 1493 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1494 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
1495 | DEFAULT_wxUSE_DATETIME=no | |
1496 | DEFAULT_wxUSE_TIMEDATE=no | |
1497 | DEFAULT_wxUSE_TIMER=no | |
1498 | DEFAULT_wxUSE_STOPWATCH=no | |
10f2d63a | 1499 | DEFAULT_wxUSE_FILE=no |
1e6feb95 | 1500 | DEFAULT_wxUSE_FFILE=no |
a3a584a7 | 1501 | DEFAULT_wxUSE_TEXTBUFFER=no |
10f2d63a | 1502 | DEFAULT_wxUSE_TEXTFILE=no |
10f2d63a VZ |
1503 | DEFAULT_wxUSE_WAVE=no |
1504 | DEFAULT_wxUSE_INTL=no | |
1505 | DEFAULT_wxUSE_CONFIG=no | |
1e6feb95 | 1506 | DEFAULT_wxUSE_FONTMAP=no |
10f2d63a VZ |
1507 | DEFAULT_wxUSE_STREAMS=no |
1508 | DEFAULT_wxUSE_SOCKETS=no | |
1509 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
10f2d63a | 1510 | DEFAULT_wxUSE_JOYSTICK=no |
6bff71f8 | 1511 | DEFAULT_wxUSE_DYNLIB_CLASS=no |
0b9ab0bd | 1512 | DEFAULT_wxUSE_DYNAMIC_LOADER=no |
10f2d63a | 1513 | DEFAULT_wxUSE_LONGLONG=no |
e8f65ba6 | 1514 | DEFAULT_wxUSE_GEOMETRY=no |
10f2d63a VZ |
1515 | |
1516 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1517 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1518 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1519 | ||
1520 | DEFAULT_wxUSE_X_RESOURCES=no | |
1521 | DEFAULT_wxUSE_CLIPBOARD=no | |
1522 | DEFAULT_wxUSE_TOOLTIPS=no | |
1523 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
24fd6d87 | 1524 | DEFAULT_wxUSE_DRAGIMAGE=no |
10f2d63a VZ |
1525 | DEFAULT_wxUSE_SPLINES=no |
1526 | ||
1527 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1528 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1529 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1530 | ||
1531 | DEFAULT_wxUSE_PROLOGIO=no | |
1532 | DEFAULT_wxUSE_RESOURCES=no | |
1533 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1534 | DEFAULT_wxUSE_IPC=no | |
1535 | DEFAULT_wxUSE_HELP=no | |
29fd3c0c | 1536 | DEFAULT_wxUSE_MS_HTML_HELP=no |
3379ed37 | 1537 | DEFAULT_wxUSE_WXHTML_HELP=no |
24176f2c | 1538 | DEFAULT_wxUSE_TREELAYOUT=no |
10f2d63a | 1539 | DEFAULT_wxUSE_METAFILE=no |
1e6feb95 | 1540 | DEFAULT_wxUSE_MIMETYPE=no |
4cdb0ab0 VS |
1541 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no |
1542 | DEFAULT_wxUSE_PROTOCOL=no | |
1543 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
1544 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
1545 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
1546 | DEFAULT_wxUSE_URL=no | |
1547 | ||
10f2d63a | 1548 | DEFAULT_wxUSE_COMMONDLGS=no |
1e6feb95 VZ |
1549 | DEFAULT_wxUSE_CHOICEDLG=no |
1550 | DEFAULT_wxUSE_COLOURDLG=no | |
10f2d63a | 1551 | DEFAULT_wxUSE_DIRDLG=no |
1e6feb95 | 1552 | DEFAULT_wxUSE_FILEDLG=no |
8db37e06 | 1553 | DEFAULT_wxUSE_FINDREPLDLG=no |
1e6feb95 VZ |
1554 | DEFAULT_wxUSE_FONTDLG=no |
1555 | DEFAULT_wxUSE_MSGDLG=no | |
1556 | DEFAULT_wxUSE_NUMBERDLG=no | |
10f2d63a | 1557 | DEFAULT_wxUSE_TEXTDLG=no |
cbca9943 | 1558 | DEFAULT_wxUSE_SPLASH=no |
10f2d63a VZ |
1559 | DEFAULT_wxUSE_STARTUP_TIPS=no |
1560 | DEFAULT_wxUSE_PROGRESSDLG=no | |
b1f5d087 VZ |
1561 | DEFAULT_wxUSE_WIZARDDLG=no |
1562 | ||
1e6feb95 | 1563 | DEFAULT_wxUSE_MENUS=no |
10f2d63a VZ |
1564 | DEFAULT_wxUSE_MINIFRAME=no |
1565 | DEFAULT_wxUSE_HTML=no | |
24528b0c | 1566 | DEFAULT_wxUSE_FILESYSTEM=no |
10f2d63a VZ |
1567 | DEFAULT_wxUSE_FS_INET=no |
1568 | DEFAULT_wxUSE_FS_ZIP=no | |
1569 | DEFAULT_wxUSE_BUSYINFO=no | |
1570 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1e6feb95 | 1571 | DEFAULT_wxUSE_VALIDATORS=no |
10f2d63a VZ |
1572 | |
1573 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 | 1574 | DEFAULT_wxUSE_BUTTON=no |
10f2d63a | 1575 | DEFAULT_wxUSE_BMPBUTTON=no |
1e6feb95 VZ |
1576 | DEFAULT_wxUSE_CALCTRL=no |
1577 | DEFAULT_wxUSE_CARET=no | |
10f2d63a VZ |
1578 | DEFAULT_wxUSE_CHECKBOX=no |
1579 | DEFAULT_wxUSE_CHECKLST=no | |
1e6feb95 | 1580 | DEFAULT_wxUSE_CHOICE=no |
10f2d63a VZ |
1581 | DEFAULT_wxUSE_COMBOBOX=no |
1582 | DEFAULT_wxUSE_GAUGE=no | |
1583 | DEFAULT_wxUSE_GRID=no | |
1584 | DEFAULT_wxUSE_NEW_GRID=no | |
1585 | DEFAULT_wxUSE_IMAGLIST=no | |
1586 | DEFAULT_wxUSE_LISTBOX=no | |
1587 | DEFAULT_wxUSE_LISTCTRL=no | |
1588 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 1589 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
1590 | DEFAULT_wxUSE_RADIOBOX=no |
1591 | DEFAULT_wxUSE_RADIOBTN=no | |
1592 | DEFAULT_wxUSE_SASH=no | |
1593 | DEFAULT_wxUSE_SCROLLBAR=no | |
1594 | DEFAULT_wxUSE_SLIDER=no | |
1595 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 1596 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
1597 | DEFAULT_wxUSE_SPLITTER=no |
1598 | DEFAULT_wxUSE_STATBMP=no | |
1599 | DEFAULT_wxUSE_STATBOX=no | |
1600 | DEFAULT_wxUSE_STATLINE=no | |
1e6feb95 | 1601 | DEFAULT_wxUSE_STATTEXT=no |
10f2d63a VZ |
1602 | DEFAULT_wxUSE_STATUSBAR=yes |
1603 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1604 | DEFAULT_wxUSE_TEXTCTRL=no |
1db8dc4a | 1605 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 1606 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
1607 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
1608 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a | 1609 | DEFAULT_wxUSE_TREECTRL=no |
9f41d601 | 1610 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 1611 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
1612 | |
1613 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 1614 | DEFAULT_wxUSE_UNICODE_MSLU=no |
10f2d63a VZ |
1615 | DEFAULT_wxUSE_WCSRTOMBS=no |
1616 | ||
edae8572 | 1617 | DEFAULT_wxUSE_PALETTE=no |
0046ff7c | 1618 | DEFAULT_wxUSE_IMAGE=no |
10f2d63a VZ |
1619 | DEFAULT_wxUSE_GIF=no |
1620 | DEFAULT_wxUSE_PCX=no | |
1621 | DEFAULT_wxUSE_PNM=no | |
4b6b4dfc | 1622 | DEFAULT_wxUSE_IFF=no |
0046ff7c | 1623 | DEFAULT_wxUSE_XPM=no |
658974ae | 1624 | DEFAULT_wxUSE_ICO_CUR=no |
10f2d63a | 1625 | else |
1e6feb95 VZ |
1626 | DEFAULT_wxUSE_UNIVERSAL=no |
1627 | ||
10f2d63a VZ |
1628 | DEFAULT_wxUSE_THREADS=yes |
1629 | ||
1630 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1631 | DEFAULT_wxUSE_SONAME=no |
10f2d63a VZ |
1632 | DEFAULT_wxUSE_OPTIMISE=yes |
1633 | DEFAULT_wxUSE_PROFILE=no | |
1634 | DEFAULT_wxUSE_NO_DEPS=no | |
f676c7ff MB |
1635 | DEFAULT_wxUSE_NO_RTTI=yes |
1636 | DEFAULT_wxUSE_NO_EXCEPTIONS=yes | |
10f2d63a VZ |
1637 | DEFAULT_wxUSE_PERMISSIVE=no |
1638 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1639 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1640 | DEFAULT_wxUSE_DEBUG_GDB=no | |
1641 | DEFAULT_wxUSE_MEM_TRACING=no | |
1642 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1643 | DEFAULT_wxUSE_DMALLOC=no | |
a7ae7112 | 1644 | DEFAULT_wxUSE_PRECOMP=no |
10f2d63a VZ |
1645 | DEFAULT_wxUSE_APPLE_IEEE=yes |
1646 | ||
1647 | DEFAULT_wxUSE_LOG=yes | |
d73be714 VZ |
1648 | DEFAULT_wxUSE_LOGWINDOW=yes |
1649 | DEFAULT_wxUSE_LOGGUI=yes | |
69d27ff7 | 1650 | DEFAULT_wxUSE_LOGDIALOG=yes |
10f2d63a VZ |
1651 | |
1652 | DEFAULT_wxUSE_GUI=yes | |
1653 | ||
831b3152 | 1654 | DEFAULT_wxUSE_REGEX=yes |
10f2d63a VZ |
1655 | DEFAULT_wxUSE_ZLIB=yes |
1656 | DEFAULT_wxUSE_LIBPNG=yes | |
1657 | DEFAULT_wxUSE_LIBJPEG=yes | |
b47c832e | 1658 | DEFAULT_wxUSE_LIBTIFF=yes |
16b52fa1 | 1659 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 1660 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1661 | |
eb4efbdc | 1662 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes |
4f3c5f06 | 1663 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
10f2d63a | 1664 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1665 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
1666 | DEFAULT_wxUSE_DATETIME=yes | |
1667 | DEFAULT_wxUSE_TIMEDATE=no | |
1668 | DEFAULT_wxUSE_TIMER=yes | |
1669 | DEFAULT_wxUSE_STOPWATCH=yes | |
10f2d63a | 1670 | DEFAULT_wxUSE_FILE=yes |
1e6feb95 | 1671 | DEFAULT_wxUSE_FFILE=yes |
a3a584a7 | 1672 | DEFAULT_wxUSE_TEXTBUFFER=yes |
10f2d63a | 1673 | DEFAULT_wxUSE_TEXTFILE=yes |
10f2d63a VZ |
1674 | DEFAULT_wxUSE_WAVE=no |
1675 | DEFAULT_wxUSE_INTL=yes | |
1676 | DEFAULT_wxUSE_CONFIG=yes | |
1e6feb95 | 1677 | DEFAULT_wxUSE_FONTMAP=yes |
10f2d63a VZ |
1678 | DEFAULT_wxUSE_STREAMS=yes |
1679 | DEFAULT_wxUSE_SOCKETS=yes | |
1680 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
10f2d63a | 1681 | DEFAULT_wxUSE_JOYSTICK=yes |
6bff71f8 | 1682 | DEFAULT_wxUSE_DYNLIB_CLASS=yes |
466367be | 1683 | DEFAULT_wxUSE_DYNAMIC_LOADER=no |
b685cd9b | 1684 | DEFAULT_wxUSE_LONGLONG=yes |
e8f65ba6 | 1685 | DEFAULT_wxUSE_GEOMETRY=yes |
10f2d63a VZ |
1686 | |
1687 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
1688 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
1689 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
1690 | ||
1691 | DEFAULT_wxUSE_X_RESOURCES=no | |
1692 | DEFAULT_wxUSE_CLIPBOARD=yes | |
1693 | DEFAULT_wxUSE_TOOLTIPS=yes | |
1694 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
24fd6d87 | 1695 | DEFAULT_wxUSE_DRAGIMAGE=yes |
10f2d63a VZ |
1696 | DEFAULT_wxUSE_SPLINES=yes |
1697 | ||
1698 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
1699 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
1700 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
1701 | ||
1702 | DEFAULT_wxUSE_PROLOGIO=yes | |
1703 | DEFAULT_wxUSE_RESOURCES=yes | |
1704 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
1705 | DEFAULT_wxUSE_IPC=yes | |
1706 | DEFAULT_wxUSE_HELP=yes | |
29fd3c0c | 1707 | DEFAULT_wxUSE_MS_HTML_HELP=yes |
3379ed37 | 1708 | DEFAULT_wxUSE_WXHTML_HELP=yes |
24176f2c | 1709 | DEFAULT_wxUSE_TREELAYOUT=yes |
10f2d63a | 1710 | DEFAULT_wxUSE_METAFILE=yes |
1e6feb95 | 1711 | DEFAULT_wxUSE_MIMETYPE=yes |
3e44f09d | 1712 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes |
4cdb0ab0 VS |
1713 | DEFAULT_wxUSE_PROTOCOL=yes |
1714 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
1715 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
1716 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
1717 | DEFAULT_wxUSE_URL=yes | |
10f2d63a VZ |
1718 | |
1719 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1e6feb95 VZ |
1720 | DEFAULT_wxUSE_CHOICEDLG=yes |
1721 | DEFAULT_wxUSE_COLOURDLG=yes | |
10f2d63a | 1722 | DEFAULT_wxUSE_DIRDLG=yes |
1e6feb95 | 1723 | DEFAULT_wxUSE_FILEDLG=yes |
8db37e06 | 1724 | DEFAULT_wxUSE_FINDREPLDLG=yes |
1e6feb95 VZ |
1725 | DEFAULT_wxUSE_FONTDLG=yes |
1726 | DEFAULT_wxUSE_MSGDLG=yes | |
1727 | DEFAULT_wxUSE_NUMBERDLG=yes | |
10f2d63a | 1728 | DEFAULT_wxUSE_TEXTDLG=yes |
cbca9943 | 1729 | DEFAULT_wxUSE_SPLASH=yes |
10f2d63a VZ |
1730 | DEFAULT_wxUSE_STARTUP_TIPS=yes |
1731 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
f33f19dd VZ |
1732 | DEFAULT_wxUSE_WIZARDDLG=yes |
1733 | ||
1e6feb95 | 1734 | DEFAULT_wxUSE_MENUS=yes |
10f2d63a VZ |
1735 | DEFAULT_wxUSE_MINIFRAME=yes |
1736 | DEFAULT_wxUSE_HTML=yes | |
24528b0c | 1737 | DEFAULT_wxUSE_FILESYSTEM=yes |
10f2d63a VZ |
1738 | DEFAULT_wxUSE_FS_INET=yes |
1739 | DEFAULT_wxUSE_FS_ZIP=yes | |
1740 | DEFAULT_wxUSE_BUSYINFO=yes | |
1741 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
1742 | DEFAULT_wxUSE_VALIDATORS=yes | |
1743 | ||
1744 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 | 1745 | DEFAULT_wxUSE_BUTTON=yes |
10f2d63a | 1746 | DEFAULT_wxUSE_BMPBUTTON=yes |
1e6feb95 VZ |
1747 | DEFAULT_wxUSE_CALCTRL=yes |
1748 | DEFAULT_wxUSE_CARET=yes | |
10f2d63a VZ |
1749 | DEFAULT_wxUSE_CHECKBOX=yes |
1750 | DEFAULT_wxUSE_CHECKLST=yes | |
1751 | DEFAULT_wxUSE_CHOICE=yes | |
1752 | DEFAULT_wxUSE_COMBOBOX=yes | |
1753 | DEFAULT_wxUSE_GAUGE=yes | |
1754 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 1755 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
1756 | DEFAULT_wxUSE_IMAGLIST=yes |
1757 | DEFAULT_wxUSE_LISTBOX=yes | |
1758 | DEFAULT_wxUSE_LISTCTRL=yes | |
1759 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 1760 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
1761 | DEFAULT_wxUSE_RADIOBOX=yes |
1762 | DEFAULT_wxUSE_RADIOBTN=yes | |
1763 | DEFAULT_wxUSE_SASH=yes | |
1764 | DEFAULT_wxUSE_SCROLLBAR=yes | |
1765 | DEFAULT_wxUSE_SLIDER=yes | |
1766 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 1767 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
1768 | DEFAULT_wxUSE_SPLITTER=yes |
1769 | DEFAULT_wxUSE_STATBMP=yes | |
1770 | DEFAULT_wxUSE_STATBOX=yes | |
1771 | DEFAULT_wxUSE_STATLINE=yes | |
1e6feb95 | 1772 | DEFAULT_wxUSE_STATTEXT=yes |
10f2d63a VZ |
1773 | DEFAULT_wxUSE_STATUSBAR=yes |
1774 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1775 | DEFAULT_wxUSE_TEXTCTRL=yes |
1db8dc4a | 1776 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 1777 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
1778 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
1779 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a | 1780 | DEFAULT_wxUSE_TREECTRL=yes |
9f41d601 | 1781 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 1782 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
1783 | |
1784 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 1785 | DEFAULT_wxUSE_UNICODE_MSLU=yes |
10f2d63a VZ |
1786 | DEFAULT_wxUSE_WCSRTOMBS=no |
1787 | ||
edae8572 | 1788 | DEFAULT_wxUSE_PALETTE=yes |
0046ff7c | 1789 | DEFAULT_wxUSE_IMAGE=yes |
10f2d63a VZ |
1790 | DEFAULT_wxUSE_GIF=yes |
1791 | DEFAULT_wxUSE_PCX=yes | |
cc0e8480 | 1792 | DEFAULT_wxUSE_IFF=no |
10f2d63a | 1793 | DEFAULT_wxUSE_PNM=yes |
0046ff7c | 1794 | DEFAULT_wxUSE_XPM=yes |
658974ae | 1795 | DEFAULT_wxUSE_ICO_CUR=yes |
10f2d63a VZ |
1796 | fi |
1797 | ||
698dcdb6 VZ |
1798 | |
1799 | ||
10f2d63a VZ |
1800 | for toolkit in `echo $ALL_TOOLKITS`; do |
1801 | LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}` | |
1802 | if test "x$LINE" != x ; then | |
1803 | has_toolkit_in_cache=1 | |
1804 | eval "DEFAULT_$LINE" | |
1805 | eval "CACHE_$toolkit=1" | |
1806 | fi | |
1807 | done | |
1808 | ||
698dcdb6 VZ |
1809 | |
1810 | ||
1811 | echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6 | |
4222829b | 1812 | echo "configure:1813: checking for --enable-gui" >&5 |
10f2d63a VZ |
1813 | no_cache=0 |
1814 | # Check whether --enable-gui or --disable-gui was given. | |
1815 | if test "${enable_gui+set}" = set; then | |
1816 | enableval="$enable_gui" | |
698dcdb6 | 1817 | |
10f2d63a VZ |
1818 | if test "$enableval" = yes; then |
1819 | ac_cv_use_gui='wxUSE_GUI=yes' | |
1820 | else | |
1821 | ac_cv_use_gui='wxUSE_GUI=no' | |
1822 | fi | |
698dcdb6 | 1823 | |
10f2d63a | 1824 | else |
698dcdb6 | 1825 | |
10f2d63a VZ |
1826 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` |
1827 | if test "x$LINE" != x ; then | |
1828 | eval "DEFAULT_$LINE" | |
1829 | else | |
1830 | no_cache=1 | |
1831 | fi | |
1832 | ||
1833 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
698dcdb6 VZ |
1834 | |
1835 | fi | |
10f2d63a VZ |
1836 | |
1837 | ||
1838 | eval "$ac_cv_use_gui" | |
1839 | if test "$no_cache" != 1; then | |
1840 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
1841 | fi | |
1842 | ||
1843 | if test "$wxUSE_GUI" = yes; then | |
698dcdb6 | 1844 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 1845 | else |
698dcdb6 | 1846 | echo "$ac_t""no" 1>&6 |
10f2d63a | 1847 | fi |
698dcdb6 | 1848 | |
10f2d63a | 1849 | |
b12915c1 | 1850 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a | 1851 | |
1e6feb95 VZ |
1852 | |
1853 | echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6 | |
4222829b | 1854 | echo "configure:1855: checking for --enable-universal" >&5 |
1e6feb95 VZ |
1855 | no_cache=0 |
1856 | # Check whether --enable-universal or --disable-universal was given. | |
1857 | if test "${enable_universal+set}" = set; then | |
1858 | enableval="$enable_universal" | |
1859 | ||
1860 | if test "$enableval" = yes; then | |
1861 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
1862 | else | |
1863 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
1864 | fi | |
1865 | ||
1866 | else | |
1867 | ||
1868 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
1869 | if test "x$LINE" != x ; then | |
1870 | eval "DEFAULT_$LINE" | |
1871 | else | |
1872 | no_cache=1 | |
1873 | fi | |
1874 | ||
1875 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
1876 | ||
1877 | fi | |
1878 | ||
1879 | ||
1880 | eval "$ac_cv_use_universal" | |
1881 | if test "$no_cache" != 1; then | |
1882 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
1883 | fi | |
1884 | ||
1885 | if test "$wxUSE_UNIVERSAL" = yes; then | |
1886 | echo "$ac_t""yes" 1>&6 | |
1887 | else | |
1888 | echo "$ac_t""no" 1>&6 | |
1889 | fi | |
1890 | ||
10f2d63a VZ |
1891 | # Check whether --with-gtk or --without-gtk was given. |
1892 | if test "${with_gtk+set}" = set; then | |
1893 | withval="$with_gtk" | |
1894 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1895 | fi |
10f2d63a VZ |
1896 | |
1897 | # Check whether --with-motif or --without-motif was given. | |
1898 | if test "${with_motif+set}" = set; then | |
1899 | withval="$with_motif" | |
1900 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1901 | fi |
10f2d63a | 1902 | |
b4085ce6 GD |
1903 | # Check whether --with-mac or --without-mac was given. |
1904 | if test "${with_mac+set}" = set; then | |
1905 | withval="$with_mac" | |
1906 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
698dcdb6 | 1907 | fi |
b4085ce6 | 1908 | |
10f2d63a VZ |
1909 | # Check whether --with-wine or --without-wine was given. |
1910 | if test "${with_wine+set}" = set; then | |
1911 | withval="$with_wine" | |
1912 | wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1913 | fi |
10f2d63a | 1914 | |
77e13408 RL |
1915 | # Check whether --with-msw or --without-msw was given. |
1916 | if test "${with_msw+set}" = set; then | |
1917 | withval="$with_msw" | |
1918 | wxUSE_MSW="$withval" CACHE_MSW TOOLKIT_GIVEN=1 | |
698dcdb6 | 1919 | fi |
10f2d63a | 1920 | |
e07802fc VZ |
1921 | # Check whether --with-pm or --without-pm was given. |
1922 | if test "${with_pm+set}" = set; then | |
1923 | withval="$with_pm" | |
1924 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
698dcdb6 VZ |
1925 | fi |
1926 | ||
1e6feb95 VZ |
1927 | # Check whether --with-mgl or --without-mgl was given. |
1928 | if test "${with_mgl+set}" = set; then | |
1929 | withval="$with_mgl" | |
1930 | wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1 | |
1931 | fi | |
1932 | ||
1725144d RR |
1933 | # Check whether --with-microwin or --without-microwin was given. |
1934 | if test "${with_microwin+set}" = set; then | |
1935 | withval="$with_microwin" | |
1936 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
1937 | fi | |
1938 | ||
f79bd02d JS |
1939 | # Check whether --with-x11 or --without-x11 was given. |
1940 | if test "${with_x11+set}" = set; then | |
1941 | withval="$with_x11" | |
1942 | wxUSE_X11="$withval" CACHE_X11=1 TOOLKIT_GIVEN=1 | |
1943 | fi | |
1944 | ||
10f2d63a | 1945 | |
8168de4c VZ |
1946 | # Check whether --enable-gtk2 or --disable-gtk2 was given. |
1947 | if test "${enable_gtk2+set}" = set; then | |
1948 | enableval="$enable_gtk2" | |
1949 | wxUSE_GTK2=1 | |
10f2d63a | 1950 | else |
8168de4c | 1951 | wxUSE_GTK2=0 |
698dcdb6 VZ |
1952 | fi |
1953 | ||
703e0a69 | 1954 | |
1e487827 | 1955 | |
698dcdb6 | 1956 | echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6 |
4222829b | 1957 | echo "configure:1958: checking for --with-libpng" >&5 |
698dcdb6 VZ |
1958 | no_cache=0 |
1959 | # Check whether --with-libpng or --without-libpng was given. | |
b12915c1 VZ |
1960 | if test "${with_libpng+set}" = set; then |
1961 | withval="$with_libpng" | |
698dcdb6 | 1962 | |
10f2d63a | 1963 | if test "$withval" = yes; then |
b12915c1 | 1964 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
422107f9 | 1965 | elif test "$withval" = no; then |
b12915c1 | 1966 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
422107f9 VZ |
1967 | elif test "$withval" = sys; then |
1968 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
4f14bcd8 GD |
1969 | elif test "$withval" = builtin; then |
1970 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
422107f9 | 1971 | else |
4f14bcd8 | 1972 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 1973 | fi |
698dcdb6 | 1974 | |
10f2d63a | 1975 | else |
698dcdb6 | 1976 | |
b12915c1 | 1977 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
1978 | if test "x$LINE" != x ; then |
1979 | eval "DEFAULT_$LINE" | |
1980 | else | |
1981 | no_cache=1 | |
1982 | fi | |
1983 | ||
b12915c1 | 1984 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
698dcdb6 VZ |
1985 | |
1986 | fi | |
10f2d63a VZ |
1987 | |
1988 | ||
b12915c1 | 1989 | eval "$ac_cv_use_libpng" |
10f2d63a | 1990 | if test "$no_cache" != 1; then |
b12915c1 | 1991 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1992 | fi |
1993 | ||
b12915c1 | 1994 | if test "$wxUSE_LIBPNG" = yes; then |
698dcdb6 | 1995 | echo "$ac_t""yes" 1>&6 |
422107f9 | 1996 | elif test "$wxUSE_LIBPNG" = no; then |
698dcdb6 | 1997 | echo "$ac_t""no" 1>&6 |
422107f9 | 1998 | elif test "$wxUSE_LIBPNG" = sys; then |
698dcdb6 | 1999 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
2000 | elif test "$wxUSE_LIBPNG" = builtin; then |
2001 | echo "$ac_t""builtin version" 1>&6 | |
422107f9 | 2002 | else |
4f14bcd8 | 2003 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2004 | fi |
698dcdb6 | 2005 | |
10f2d63a | 2006 | |
698dcdb6 | 2007 | echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6 |
4222829b | 2008 | echo "configure:2009: checking for --with-libjpeg" >&5 |
10f2d63a | 2009 | no_cache=0 |
698dcdb6 | 2010 | # Check whether --with-libjpeg or --without-libjpeg was given. |
b12915c1 VZ |
2011 | if test "${with_libjpeg+set}" = set; then |
2012 | withval="$with_libjpeg" | |
698dcdb6 | 2013 | |
10f2d63a | 2014 | if test "$withval" = yes; then |
b12915c1 | 2015 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
422107f9 | 2016 | elif test "$withval" = no; then |
b12915c1 | 2017 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
422107f9 VZ |
2018 | elif test "$withval" = sys; then |
2019 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
4f14bcd8 GD |
2020 | elif test "$withval" = builtin; then |
2021 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
422107f9 | 2022 | else |
4f14bcd8 | 2023 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2024 | fi |
698dcdb6 | 2025 | |
10f2d63a | 2026 | else |
698dcdb6 | 2027 | |
b12915c1 | 2028 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2029 | if test "x$LINE" != x ; then |
2030 | eval "DEFAULT_$LINE" | |
2031 | else | |
2032 | no_cache=1 | |
2033 | fi | |
2034 | ||
b12915c1 | 2035 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
698dcdb6 VZ |
2036 | |
2037 | fi | |
10f2d63a VZ |
2038 | |
2039 | ||
b12915c1 | 2040 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 2041 | if test "$no_cache" != 1; then |
b12915c1 | 2042 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2043 | fi |
2044 | ||
b12915c1 | 2045 | if test "$wxUSE_LIBJPEG" = yes; then |
698dcdb6 | 2046 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2047 | elif test "$wxUSE_LIBJPEG" = no; then |
698dcdb6 | 2048 | echo "$ac_t""no" 1>&6 |
422107f9 | 2049 | elif test "$wxUSE_LIBJPEG" = sys; then |
698dcdb6 | 2050 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
2051 | elif test "$wxUSE_LIBJPEG" = builtin; then |
2052 | echo "$ac_t""builtin version" 1>&6 | |
422107f9 | 2053 | else |
4f14bcd8 | 2054 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2055 | fi |
698dcdb6 | 2056 | |
10f2d63a | 2057 | |
698dcdb6 | 2058 | echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6 |
4222829b | 2059 | echo "configure:2060: checking for --with-libtiff" >&5 |
10f2d63a | 2060 | no_cache=0 |
698dcdb6 | 2061 | # Check whether --with-libtiff or --without-libtiff was given. |
b12915c1 VZ |
2062 | if test "${with_libtiff+set}" = set; then |
2063 | withval="$with_libtiff" | |
698dcdb6 | 2064 | |
10f2d63a | 2065 | if test "$withval" = yes; then |
b12915c1 | 2066 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
0dcf9893 | 2067 | elif test "$withval" = no; then |
b12915c1 | 2068 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
0dcf9893 VZ |
2069 | elif test "$withval" = sys; then |
2070 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
4f14bcd8 GD |
2071 | elif test "$withval" = builtin; then |
2072 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
0dcf9893 | 2073 | else |
4f14bcd8 | 2074 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2075 | fi |
698dcdb6 | 2076 | |
10f2d63a | 2077 | else |
698dcdb6 | 2078 | |
b12915c1 | 2079 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
2080 | if test "x$LINE" != x ; then |
2081 | eval "DEFAULT_$LINE" | |
2082 | else | |
2083 | no_cache=1 | |
2084 | fi | |
2085 | ||
b12915c1 | 2086 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
698dcdb6 VZ |
2087 | |
2088 | fi | |
10f2d63a VZ |
2089 | |
2090 | ||
b12915c1 | 2091 | eval "$ac_cv_use_libtiff" |
10f2d63a | 2092 | if test "$no_cache" != 1; then |
b12915c1 | 2093 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2094 | fi |
2095 | ||
b12915c1 | 2096 | if test "$wxUSE_LIBTIFF" = yes; then |
698dcdb6 | 2097 | echo "$ac_t""yes" 1>&6 |
0dcf9893 | 2098 | elif test "$wxUSE_LIBTIFF" = no; then |
698dcdb6 | 2099 | echo "$ac_t""no" 1>&6 |
0dcf9893 | 2100 | elif test "$wxUSE_LIBTIFF" = sys; then |
698dcdb6 | 2101 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
2102 | elif test "$wxUSE_LIBTIFF" = builtin; then |
2103 | echo "$ac_t""builtin version" 1>&6 | |
0dcf9893 | 2104 | else |
4f14bcd8 | 2105 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2106 | fi |
698dcdb6 | 2107 | |
10f2d63a | 2108 | |
698dcdb6 | 2109 | echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6 |
4222829b | 2110 | echo "configure:2111: checking for --with-opengl" >&5 |
10f2d63a | 2111 | no_cache=0 |
698dcdb6 | 2112 | # Check whether --with-opengl or --without-opengl was given. |
b12915c1 VZ |
2113 | if test "${with_opengl+set}" = set; then |
2114 | withval="$with_opengl" | |
698dcdb6 | 2115 | |
10f2d63a | 2116 | if test "$withval" = yes; then |
b12915c1 | 2117 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 2118 | else |
b12915c1 | 2119 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a | 2120 | fi |
698dcdb6 | 2121 | |
10f2d63a | 2122 | else |
698dcdb6 | 2123 | |
b12915c1 | 2124 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` |
10f2d63a VZ |
2125 | if test "x$LINE" != x ; then |
2126 | eval "DEFAULT_$LINE" | |
2127 | else | |
2128 | no_cache=1 | |
2129 | fi | |
2130 | ||
b12915c1 | 2131 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
698dcdb6 VZ |
2132 | |
2133 | fi | |
10f2d63a VZ |
2134 | |
2135 | ||
b12915c1 | 2136 | eval "$ac_cv_use_opengl" |
10f2d63a | 2137 | if test "$no_cache" != 1; then |
b12915c1 | 2138 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2139 | fi |
2140 | ||
b12915c1 | 2141 | if test "$wxUSE_OPENGL" = yes; then |
698dcdb6 | 2142 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2143 | else |
698dcdb6 | 2144 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2145 | fi |
698dcdb6 | 2146 | |
10f2d63a | 2147 | |
b12915c1 VZ |
2148 | fi |
2149 | ||
1e487827 | 2150 | |
698dcdb6 | 2151 | echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6 |
4222829b | 2152 | echo "configure:2153: checking for --with-dmalloc" >&5 |
698dcdb6 VZ |
2153 | no_cache=0 |
2154 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
b12915c1 VZ |
2155 | if test "${with_dmalloc+set}" = set; then |
2156 | withval="$with_dmalloc" | |
698dcdb6 | 2157 | |
c7a2bf27 | 2158 | if test "$withval" = yes; then |
b12915c1 | 2159 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 2160 | else |
b12915c1 | 2161 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 | 2162 | fi |
698dcdb6 | 2163 | |
c7a2bf27 | 2164 | else |
698dcdb6 | 2165 | |
b12915c1 | 2166 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
2167 | if test "x$LINE" != x ; then |
2168 | eval "DEFAULT_$LINE" | |
2169 | else | |
2170 | no_cache=1 | |
2171 | fi | |
2172 | ||
b12915c1 | 2173 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
698dcdb6 VZ |
2174 | |
2175 | fi | |
c7a2bf27 RR |
2176 | |
2177 | ||
b12915c1 | 2178 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 2179 | if test "$no_cache" != 1; then |
b12915c1 | 2180 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
2181 | fi |
2182 | ||
b12915c1 | 2183 | if test "$wxUSE_DMALLOC" = yes; then |
698dcdb6 | 2184 | echo "$ac_t""yes" 1>&6 |
c7a2bf27 | 2185 | else |
698dcdb6 | 2186 | echo "$ac_t""no" 1>&6 |
c7a2bf27 | 2187 | fi |
698dcdb6 | 2188 | |
c7a2bf27 | 2189 | |
3e44f09d | 2190 | echo $ac_n "checking for --with-regex""... $ac_c" 1>&6 |
4222829b | 2191 | echo "configure:2192: checking for --with-regex" >&5 |
3e44f09d VZ |
2192 | no_cache=0 |
2193 | # Check whether --with-regex or --without-regex was given. | |
2194 | if test "${with_regex+set}" = set; then | |
2195 | withval="$with_regex" | |
2196 | ||
2197 | if test "$withval" = yes; then | |
2198 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
2199 | elif test "$withval" = no; then | |
2200 | ac_cv_use_regex='wxUSE_REGEX=no' | |
2201 | elif test "$withval" = sys; then | |
2202 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
4f14bcd8 GD |
2203 | elif test "$withval" = builtin; then |
2204 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3e44f09d | 2205 | else |
4f14bcd8 | 2206 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3e44f09d VZ |
2207 | fi |
2208 | ||
2209 | else | |
2210 | ||
2211 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` | |
2212 | if test "x$LINE" != x ; then | |
2213 | eval "DEFAULT_$LINE" | |
2214 | else | |
2215 | no_cache=1 | |
2216 | fi | |
2217 | ||
2218 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
2219 | ||
2220 | fi | |
2221 | ||
2222 | ||
2223 | eval "$ac_cv_use_regex" | |
2224 | if test "$no_cache" != 1; then | |
2225 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
2226 | fi | |
2227 | ||
2228 | if test "$wxUSE_REGEX" = yes; then | |
2229 | echo "$ac_t""yes" 1>&6 | |
2230 | elif test "$wxUSE_REGEX" = no; then | |
2231 | echo "$ac_t""no" 1>&6 | |
2232 | elif test "$wxUSE_REGEX" = sys; then | |
2233 | echo "$ac_t""system version" 1>&6 | |
4f14bcd8 GD |
2234 | elif test "$wxUSE_REGEX" = builtin; then |
2235 | echo "$ac_t""builtin version" 1>&6 | |
3e44f09d | 2236 | else |
4f14bcd8 | 2237 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3e44f09d VZ |
2238 | fi |
2239 | ||
2240 | ||
698dcdb6 | 2241 | echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6 |
4222829b | 2242 | echo "configure:2243: checking for --with-zlib" >&5 |
10f2d63a | 2243 | no_cache=0 |
698dcdb6 | 2244 | # Check whether --with-zlib or --without-zlib was given. |
b12915c1 VZ |
2245 | if test "${with_zlib+set}" = set; then |
2246 | withval="$with_zlib" | |
698dcdb6 | 2247 | |
10f2d63a | 2248 | if test "$withval" = yes; then |
b12915c1 | 2249 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
422107f9 | 2250 | elif test "$withval" = no; then |
b12915c1 | 2251 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
422107f9 VZ |
2252 | elif test "$withval" = sys; then |
2253 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
4f14bcd8 GD |
2254 | elif test "$withval" = builtin; then |
2255 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
422107f9 | 2256 | else |
4f14bcd8 | 2257 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2258 | fi |
698dcdb6 | 2259 | |
10f2d63a | 2260 | else |
698dcdb6 | 2261 | |
b12915c1 | 2262 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
2263 | if test "x$LINE" != x ; then |
2264 | eval "DEFAULT_$LINE" | |
2265 | else | |
2266 | no_cache=1 | |
2267 | fi | |
2268 | ||
b12915c1 | 2269 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
698dcdb6 VZ |
2270 | |
2271 | fi | |
10f2d63a VZ |
2272 | |
2273 | ||
b12915c1 | 2274 | eval "$ac_cv_use_zlib" |
10f2d63a | 2275 | if test "$no_cache" != 1; then |
b12915c1 | 2276 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2277 | fi |
2278 | ||
b12915c1 | 2279 | if test "$wxUSE_ZLIB" = yes; then |
698dcdb6 | 2280 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2281 | elif test "$wxUSE_ZLIB" = no; then |
698dcdb6 | 2282 | echo "$ac_t""no" 1>&6 |
422107f9 | 2283 | elif test "$wxUSE_ZLIB" = sys; then |
698dcdb6 | 2284 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
2285 | elif test "$wxUSE_ZLIB" = builtin; then |
2286 | echo "$ac_t""builtin version" 1>&6 | |
422107f9 | 2287 | else |
4f14bcd8 | 2288 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2289 | fi |
698dcdb6 | 2290 | |
10f2d63a | 2291 | |
698dcdb6 | 2292 | echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6 |
4222829b | 2293 | echo "configure:2294: checking for --with-odbc" >&5 |
10f2d63a | 2294 | no_cache=0 |
698dcdb6 | 2295 | # Check whether --with-odbc or --without-odbc was given. |
10f2d63a VZ |
2296 | if test "${with_odbc+set}" = set; then |
2297 | withval="$with_odbc" | |
698dcdb6 | 2298 | |
10f2d63a VZ |
2299 | if test "$withval" = yes; then |
2300 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
2301 | else | |
2302 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
2303 | fi | |
698dcdb6 | 2304 | |
10f2d63a | 2305 | else |
698dcdb6 | 2306 | |
10f2d63a VZ |
2307 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` |
2308 | if test "x$LINE" != x ; then | |
2309 | eval "DEFAULT_$LINE" | |
2310 | else | |
2311 | no_cache=1 | |
2312 | fi | |
2313 | ||
2314 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
698dcdb6 VZ |
2315 | |
2316 | fi | |
10f2d63a VZ |
2317 | |
2318 | ||
2319 | eval "$ac_cv_use_odbc" | |
2320 | if test "$no_cache" != 1; then | |
2321 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
2322 | fi | |
2323 | ||
2324 | if test "$wxUSE_ODBC" = yes; then | |
698dcdb6 | 2325 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2326 | else |
698dcdb6 | 2327 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2328 | fi |
698dcdb6 VZ |
2329 | |
2330 | ||
10f2d63a | 2331 | |
698dcdb6 | 2332 | |
698dcdb6 | 2333 | echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6 |
4222829b | 2334 | echo "configure:2335: checking for --enable-shared" >&5 |
10f2d63a VZ |
2335 | no_cache=0 |
2336 | # Check whether --enable-shared or --disable-shared was given. | |
2337 | if test "${enable_shared+set}" = set; then | |
2338 | enableval="$enable_shared" | |
698dcdb6 | 2339 | |
10f2d63a VZ |
2340 | if test "$enableval" = yes; then |
2341 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
2342 | else | |
2343 | ac_cv_use_shared='wxUSE_SHARED=no' | |
2344 | fi | |
698dcdb6 | 2345 | |
10f2d63a | 2346 | else |
698dcdb6 | 2347 | |
10f2d63a VZ |
2348 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` |
2349 | if test "x$LINE" != x ; then | |
2350 | eval "DEFAULT_$LINE" | |
2351 | else | |
2352 | no_cache=1 | |
2353 | fi | |
2354 | ||
2355 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
698dcdb6 VZ |
2356 | |
2357 | fi | |
10f2d63a VZ |
2358 | |
2359 | ||
2360 | eval "$ac_cv_use_shared" | |
2361 | if test "$no_cache" != 1; then | |
2362 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
2363 | fi | |
2364 | ||
2365 | if test "$wxUSE_SHARED" = yes; then | |
698dcdb6 | 2366 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2367 | else |
698dcdb6 | 2368 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2369 | fi |
698dcdb6 | 2370 | |
10f2d63a | 2371 | |
3a922bb4 | 2372 | echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6 |
4222829b | 2373 | echo "configure:2374: checking for --enable-soname" >&5 |
00cf1208 | 2374 | no_cache=0 |
3a922bb4 RL |
2375 | # Check whether --enable-soname or --disable-soname was given. |
2376 | if test "${enable_soname+set}" = set; then | |
2377 | enableval="$enable_soname" | |
698dcdb6 | 2378 | |
00cf1208 | 2379 | if test "$enableval" = yes; then |
3a922bb4 | 2380 | ac_cv_use_soname='wxUSE_SONAME=yes' |
00cf1208 | 2381 | else |
3a922bb4 | 2382 | ac_cv_use_soname='wxUSE_SONAME=no' |
00cf1208 | 2383 | fi |
698dcdb6 | 2384 | |
00cf1208 | 2385 | else |
698dcdb6 | 2386 | |
3a922bb4 | 2387 | LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}` |
00cf1208 RR |
2388 | if test "x$LINE" != x ; then |
2389 | eval "DEFAULT_$LINE" | |
2390 | else | |
2391 | no_cache=1 | |
2392 | fi | |
2393 | ||
3a922bb4 | 2394 | ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME |
698dcdb6 VZ |
2395 | |
2396 | fi | |
00cf1208 RR |
2397 | |
2398 | ||
3a922bb4 | 2399 | eval "$ac_cv_use_soname" |
00cf1208 | 2400 | if test "$no_cache" != 1; then |
3a922bb4 | 2401 | echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp |
00cf1208 RR |
2402 | fi |
2403 | ||
3a922bb4 | 2404 | if test "$wxUSE_SONAME" = yes; then |
698dcdb6 | 2405 | echo "$ac_t""yes" 1>&6 |
00cf1208 | 2406 | else |
698dcdb6 | 2407 | echo "$ac_t""no" 1>&6 |
00cf1208 | 2408 | fi |
698dcdb6 | 2409 | |
00cf1208 | 2410 | |
698dcdb6 | 2411 | echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6 |
4222829b | 2412 | echo "configure:2413: checking for --enable-optimise" >&5 |
10f2d63a VZ |
2413 | no_cache=0 |
2414 | # Check whether --enable-optimise or --disable-optimise was given. | |
2415 | if test "${enable_optimise+set}" = set; then | |
2416 | enableval="$enable_optimise" | |
698dcdb6 | 2417 | |
10f2d63a VZ |
2418 | if test "$enableval" = yes; then |
2419 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
2420 | else | |
2421 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
2422 | fi | |
698dcdb6 | 2423 | |
10f2d63a | 2424 | else |
698dcdb6 | 2425 | |
10f2d63a VZ |
2426 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` |
2427 | if test "x$LINE" != x ; then | |
2428 | eval "DEFAULT_$LINE" | |
2429 | else | |
2430 | no_cache=1 | |
2431 | fi | |
2432 | ||
2433 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
698dcdb6 VZ |
2434 | |
2435 | fi | |
10f2d63a VZ |
2436 | |
2437 | ||
2438 | eval "$ac_cv_use_optimise" | |
2439 | if test "$no_cache" != 1; then | |
2440 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
2441 | fi | |
2442 | ||
2443 | if test "$wxUSE_OPTIMISE" = yes; then | |
698dcdb6 | 2444 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2445 | else |
698dcdb6 | 2446 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2447 | fi |
698dcdb6 | 2448 | |
10f2d63a | 2449 | |
698dcdb6 | 2450 | echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6 |
4222829b | 2451 | echo "configure:2452: checking for --enable-debug" >&5 |
10f2d63a VZ |
2452 | no_cache=0 |
2453 | # Check whether --enable-debug or --disable-debug was given. | |
2454 | if test "${enable_debug+set}" = set; then | |
2455 | enableval="$enable_debug" | |
698dcdb6 | 2456 | |
10f2d63a VZ |
2457 | if test "$enableval" = yes; then |
2458 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
2459 | else | |
2460 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
2461 | fi | |
698dcdb6 | 2462 | |
10f2d63a | 2463 | else |
698dcdb6 | 2464 | |
10f2d63a VZ |
2465 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` |
2466 | if test "x$LINE" != x ; then | |
2467 | eval "DEFAULT_$LINE" | |
2468 | else | |
2469 | no_cache=1 | |
2470 | fi | |
2471 | ||
2472 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
698dcdb6 VZ |
2473 | |
2474 | fi | |
10f2d63a VZ |
2475 | |
2476 | ||
2477 | eval "$ac_cv_use_debug" | |
2478 | if test "$no_cache" != 1; then | |
2479 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
2480 | fi | |
2481 | ||
2482 | if test "$wxUSE_DEBUG" = yes; then | |
698dcdb6 | 2483 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2484 | else |
698dcdb6 | 2485 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2486 | fi |
698dcdb6 | 2487 | |
10f2d63a | 2488 | |
683dccda GD |
2489 | |
2490 | echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6 | |
4222829b | 2491 | echo "configure:2492: checking for --enable-precomp" >&5 |
683dccda GD |
2492 | no_cache=0 |
2493 | # Check whether --enable-precomp or --disable-precomp was given. | |
2494 | if test "${enable_precomp+set}" = set; then | |
2495 | enableval="$enable_precomp" | |
2496 | ||
2497 | if test "$enableval" = yes; then | |
2498 | ac_cv_use_precomp='wxUSE_PRECOMP=yes' | |
2499 | else | |
2500 | ac_cv_use_precomp='wxUSE_PRECOMP=no' | |
2501 | fi | |
2502 | ||
2503 | else | |
2504 | ||
2505 | LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}` | |
2506 | if test "x$LINE" != x ; then | |
2507 | eval "DEFAULT_$LINE" | |
2508 | else | |
2509 | no_cache=1 | |
2510 | fi | |
2511 | ||
2512 | ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP | |
2513 | ||
2514 | fi | |
2515 | ||
2516 | ||
2517 | eval "$ac_cv_use_precomp" | |
2518 | if test "$no_cache" != 1; then | |
2519 | echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp | |
2520 | fi | |
2521 | ||
2522 | if test "$wxUSE_PRECOMP" = yes; then | |
2523 | echo "$ac_t""yes" 1>&6 | |
2524 | else | |
2525 | echo "$ac_t""no" 1>&6 | |
2526 | fi | |
2527 | ||
2528 | ||
10f2d63a VZ |
2529 | if test "$wxUSE_DEBUG" = "yes"; then |
2530 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2531 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2532 | elif test "$wxUSE_DEBUG" = "no"; then | |
2533 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2534 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2535 | fi | |
2536 | ||
698dcdb6 VZ |
2537 | |
2538 | echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6 | |
4222829b | 2539 | echo "configure:2540: checking for --enable-debug_flag" >&5 |
10f2d63a VZ |
2540 | no_cache=0 |
2541 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
2542 | if test "${enable_debug_flag+set}" = set; then | |
2543 | enableval="$enable_debug_flag" | |
698dcdb6 | 2544 | |
10f2d63a VZ |
2545 | if test "$enableval" = yes; then |
2546 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
2547 | else | |
2548 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
2549 | fi | |
698dcdb6 | 2550 | |
10f2d63a | 2551 | else |
698dcdb6 | 2552 | |
10f2d63a VZ |
2553 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` |
2554 | if test "x$LINE" != x ; then | |
2555 | eval "DEFAULT_$LINE" | |
2556 | else | |
2557 | no_cache=1 | |
2558 | fi | |
2559 | ||
2560 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
698dcdb6 VZ |
2561 | |
2562 | fi | |
10f2d63a VZ |
2563 | |
2564 | ||
2565 | eval "$ac_cv_use_debug_flag" | |
2566 | if test "$no_cache" != 1; then | |
2567 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
2568 | fi | |
2569 | ||
2570 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
698dcdb6 | 2571 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2572 | else |
698dcdb6 | 2573 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2574 | fi |
698dcdb6 | 2575 | |
10f2d63a | 2576 | |
698dcdb6 | 2577 | echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6 |
4222829b | 2578 | echo "configure:2579: checking for --enable-debug_info" >&5 |
10f2d63a VZ |
2579 | no_cache=0 |
2580 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
2581 | if test "${enable_debug_info+set}" = set; then | |
2582 | enableval="$enable_debug_info" | |
698dcdb6 | 2583 | |
10f2d63a VZ |
2584 | if test "$enableval" = yes; then |
2585 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
2586 | else | |
2587 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
2588 | fi | |
698dcdb6 | 2589 | |
10f2d63a | 2590 | else |
698dcdb6 | 2591 | |
10f2d63a VZ |
2592 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` |
2593 | if test "x$LINE" != x ; then | |
2594 | eval "DEFAULT_$LINE" | |
2595 | else | |
2596 | no_cache=1 | |
2597 | fi | |
2598 | ||
2599 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
698dcdb6 VZ |
2600 | |
2601 | fi | |
10f2d63a VZ |
2602 | |
2603 | ||
2604 | eval "$ac_cv_use_debug_info" | |
2605 | if test "$no_cache" != 1; then | |
2606 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
2607 | fi | |
2608 | ||
2609 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
698dcdb6 | 2610 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2611 | else |
698dcdb6 | 2612 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2613 | fi |
698dcdb6 | 2614 | |
10f2d63a | 2615 | |
698dcdb6 | 2616 | echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6 |
4222829b | 2617 | echo "configure:2618: checking for --enable-debug_gdb" >&5 |
10f2d63a VZ |
2618 | no_cache=0 |
2619 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
2620 | if test "${enable_debug_gdb+set}" = set; then | |
2621 | enableval="$enable_debug_gdb" | |
698dcdb6 | 2622 | |
10f2d63a VZ |
2623 | if test "$enableval" = yes; then |
2624 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
2625 | else | |
2626 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
2627 | fi | |
698dcdb6 | 2628 | |
10f2d63a | 2629 | else |
698dcdb6 | 2630 | |
10f2d63a VZ |
2631 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` |
2632 | if test "x$LINE" != x ; then | |
2633 | eval "DEFAULT_$LINE" | |
2634 | else | |
2635 | no_cache=1 | |
2636 | fi | |
2637 | ||
2638 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
698dcdb6 VZ |
2639 | |
2640 | fi | |
10f2d63a VZ |
2641 | |
2642 | ||
2643 | eval "$ac_cv_use_debug_gdb" | |
2644 | if test "$no_cache" != 1; then | |
2645 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
2646 | fi | |
2647 | ||
2648 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
698dcdb6 | 2649 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2650 | else |
698dcdb6 | 2651 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2652 | fi |
698dcdb6 | 2653 | |
10f2d63a | 2654 | |
698dcdb6 | 2655 | echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6 |
4222829b | 2656 | echo "configure:2657: checking for --enable-debug_cntxt" >&5 |
10f2d63a VZ |
2657 | no_cache=0 |
2658 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
2659 | if test "${enable_debug_cntxt+set}" = set; then | |
2660 | enableval="$enable_debug_cntxt" | |
698dcdb6 | 2661 | |
10f2d63a VZ |
2662 | if test "$enableval" = yes; then |
2663 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
2664 | else | |
2665 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
2666 | fi | |
698dcdb6 | 2667 | |
10f2d63a | 2668 | else |
698dcdb6 | 2669 | |
10f2d63a VZ |
2670 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` |
2671 | if test "x$LINE" != x ; then | |
2672 | eval "DEFAULT_$LINE" | |
2673 | else | |
2674 | no_cache=1 | |
2675 | fi | |
2676 | ||
2677 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
698dcdb6 VZ |
2678 | |
2679 | fi | |
10f2d63a VZ |
2680 | |
2681 | ||
2682 | eval "$ac_cv_use_debug_cntxt" | |
2683 | if test "$no_cache" != 1; then | |
2684 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
2685 | fi | |
2686 | ||
2687 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
698dcdb6 | 2688 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2689 | else |
698dcdb6 | 2690 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2691 | fi |
698dcdb6 | 2692 | |
10f2d63a | 2693 | |
698dcdb6 | 2694 | echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6 |
4222829b | 2695 | echo "configure:2696: checking for --enable-mem_tracing" >&5 |
10f2d63a VZ |
2696 | no_cache=0 |
2697 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
2698 | if test "${enable_mem_tracing+set}" = set; then | |
2699 | enableval="$enable_mem_tracing" | |
698dcdb6 | 2700 | |
10f2d63a VZ |
2701 | if test "$enableval" = yes; then |
2702 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
2703 | else | |
2704 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
2705 | fi | |
698dcdb6 | 2706 | |
10f2d63a | 2707 | else |
698dcdb6 | 2708 | |
10f2d63a VZ |
2709 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` |
2710 | if test "x$LINE" != x ; then | |
2711 | eval "DEFAULT_$LINE" | |
2712 | else | |
2713 | no_cache=1 | |
2714 | fi | |
2715 | ||
2716 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
698dcdb6 VZ |
2717 | |
2718 | fi | |
10f2d63a VZ |
2719 | |
2720 | ||
2721 | eval "$ac_cv_use_mem_tracing" | |
2722 | if test "$no_cache" != 1; then | |
2723 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
2724 | fi | |
2725 | ||
2726 | if test "$wxUSE_MEM_TRACING" = yes; then | |
698dcdb6 | 2727 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2728 | else |
698dcdb6 | 2729 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2730 | fi |
698dcdb6 | 2731 | |
10f2d63a | 2732 | |
698dcdb6 | 2733 | echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6 |
4222829b | 2734 | echo "configure:2735: checking for --enable-profile" >&5 |
10f2d63a VZ |
2735 | no_cache=0 |
2736 | # Check whether --enable-profile or --disable-profile was given. | |
2737 | if test "${enable_profile+set}" = set; then | |
2738 | enableval="$enable_profile" | |
698dcdb6 | 2739 | |
10f2d63a VZ |
2740 | if test "$enableval" = yes; then |
2741 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
2742 | else | |
2743 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
2744 | fi | |
698dcdb6 | 2745 | |
10f2d63a | 2746 | else |
698dcdb6 | 2747 | |
10f2d63a VZ |
2748 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` |
2749 | if test "x$LINE" != x ; then | |
2750 | eval "DEFAULT_$LINE" | |
2751 | else | |
2752 | no_cache=1 | |
2753 | fi | |
2754 | ||
2755 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
698dcdb6 VZ |
2756 | |
2757 | fi | |
10f2d63a VZ |
2758 | |
2759 | ||
2760 | eval "$ac_cv_use_profile" | |
2761 | if test "$no_cache" != 1; then | |
2762 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
2763 | fi | |
2764 | ||
2765 | if test "$wxUSE_PROFILE" = yes; then | |
698dcdb6 | 2766 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2767 | else |
698dcdb6 | 2768 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2769 | fi |
698dcdb6 | 2770 | |
10f2d63a | 2771 | |
698dcdb6 | 2772 | echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6 |
4222829b | 2773 | echo "configure:2774: checking for --enable-no_rtti" >&5 |
10f2d63a VZ |
2774 | no_cache=0 |
2775 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
2776 | if test "${enable_no_rtti+set}" = set; then | |
2777 | enableval="$enable_no_rtti" | |
698dcdb6 | 2778 | |
10f2d63a VZ |
2779 | if test "$enableval" = yes; then |
2780 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
2781 | else | |
2782 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
2783 | fi | |
698dcdb6 | 2784 | |
10f2d63a | 2785 | else |
698dcdb6 | 2786 | |
10f2d63a VZ |
2787 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` |
2788 | if test "x$LINE" != x ; then | |
2789 | eval "DEFAULT_$LINE" | |
2790 | else | |
2791 | no_cache=1 | |
2792 | fi | |
2793 | ||
2794 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
698dcdb6 VZ |
2795 | |
2796 | fi | |
10f2d63a VZ |
2797 | |
2798 | ||
2799 | eval "$ac_cv_use_no_rtti" | |
2800 | if test "$no_cache" != 1; then | |
2801 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
2802 | fi | |
2803 | ||
2804 | if test "$wxUSE_NO_RTTI" = yes; then | |
698dcdb6 | 2805 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2806 | else |
698dcdb6 | 2807 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2808 | fi |
698dcdb6 | 2809 | |
10f2d63a | 2810 | |
698dcdb6 | 2811 | echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6 |
4222829b | 2812 | echo "configure:2813: checking for --enable-no_exceptions" >&5 |
10f2d63a VZ |
2813 | no_cache=0 |
2814 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
2815 | if test "${enable_no_exceptions+set}" = set; then | |
2816 | enableval="$enable_no_exceptions" | |
698dcdb6 | 2817 | |
10f2d63a VZ |
2818 | if test "$enableval" = yes; then |
2819 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
2820 | else | |
2821 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
2822 | fi | |
698dcdb6 | 2823 | |
10f2d63a | 2824 | else |
698dcdb6 | 2825 | |
10f2d63a VZ |
2826 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` |
2827 | if test "x$LINE" != x ; then | |
2828 | eval "DEFAULT_$LINE" | |
2829 | else | |
2830 | no_cache=1 | |
2831 | fi | |
2832 | ||
2833 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
698dcdb6 VZ |
2834 | |
2835 | fi | |
10f2d63a VZ |
2836 | |
2837 | ||
2838 | eval "$ac_cv_use_no_exceptions" | |
2839 | if test "$no_cache" != 1; then | |
2840 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
2841 | fi | |
2842 | ||
2843 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
698dcdb6 | 2844 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2845 | else |
698dcdb6 | 2846 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2847 | fi |
698dcdb6 | 2848 | |
10f2d63a | 2849 | |
698dcdb6 | 2850 | echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6 |
4222829b | 2851 | echo "configure:2852: checking for --enable-permissive" >&5 |
10f2d63a VZ |
2852 | no_cache=0 |
2853 | # Check whether --enable-permissive or --disable-permissive was given. | |
2854 | if test "${enable_permissive+set}" = set; then | |
2855 | enableval="$enable_permissive" | |
698dcdb6 | 2856 | |
10f2d63a VZ |
2857 | if test "$enableval" = yes; then |
2858 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
2859 | else | |
2860 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
2861 | fi | |
698dcdb6 | 2862 | |
10f2d63a | 2863 | else |
698dcdb6 | 2864 | |
10f2d63a VZ |
2865 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` |
2866 | if test "x$LINE" != x ; then | |
2867 | eval "DEFAULT_$LINE" | |
2868 | else | |
2869 | no_cache=1 | |
2870 | fi | |
2871 | ||
2872 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
698dcdb6 VZ |
2873 | |
2874 | fi | |
10f2d63a VZ |
2875 | |
2876 | ||
2877 | eval "$ac_cv_use_permissive" | |
2878 | if test "$no_cache" != 1; then | |
2879 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
2880 | fi | |
2881 | ||
2882 | if test "$wxUSE_PERMISSIVE" = yes; then | |
698dcdb6 | 2883 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2884 | else |
698dcdb6 | 2885 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2886 | fi |
698dcdb6 | 2887 | |
10f2d63a | 2888 | |
698dcdb6 | 2889 | echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6 |
4222829b | 2890 | echo "configure:2891: checking for --enable-no_deps" >&5 |
10f2d63a VZ |
2891 | no_cache=0 |
2892 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
2893 | if test "${enable_no_deps+set}" = set; then | |
2894 | enableval="$enable_no_deps" | |
698dcdb6 | 2895 | |
10f2d63a VZ |
2896 | if test "$enableval" = yes; then |
2897 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
2898 | else | |
2899 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
2900 | fi | |
698dcdb6 | 2901 | |
10f2d63a | 2902 | else |
698dcdb6 | 2903 | |
10f2d63a VZ |
2904 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` |
2905 | if test "x$LINE" != x ; then | |
2906 | eval "DEFAULT_$LINE" | |
2907 | else | |
2908 | no_cache=1 | |
2909 | fi | |
2910 | ||
2911 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
698dcdb6 VZ |
2912 | |
2913 | fi | |
10f2d63a VZ |
2914 | |
2915 | ||
2916 | eval "$ac_cv_use_no_deps" | |
2917 | if test "$no_cache" != 1; then | |
2918 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
2919 | fi | |
2920 | ||
2921 | if test "$wxUSE_NO_DEPS" = yes; then | |
698dcdb6 | 2922 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2923 | else |
698dcdb6 | 2924 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2925 | fi |
698dcdb6 VZ |
2926 | |
2927 | ||
10f2d63a | 2928 | |
54276ccf | 2929 | echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6 |
4222829b | 2930 | echo "configure:2931: checking for --enable-compat20" >&5 |
54276ccf VZ |
2931 | no_cache=0 |
2932 | # Check whether --enable-compat20 or --disable-compat20 was given. | |
2933 | if test "${enable_compat20+set}" = set; then | |
2934 | enableval="$enable_compat20" | |
2935 | ||
2936 | if test "$enableval" = yes; then | |
2937 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes' | |
2938 | else | |
2939 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no' | |
2940 | fi | |
2941 | ||
2942 | else | |
2943 | ||
2944 | LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}` | |
2945 | if test "x$LINE" != x ; then | |
2946 | eval "DEFAULT_$LINE" | |
2947 | else | |
2948 | no_cache=1 | |
2949 | fi | |
2950 | ||
2951 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2 | |
2952 | ||
2953 | fi | |
2954 | ||
2955 | ||
2956 | eval "$ac_cv_use_compat20" | |
2957 | if test "$no_cache" != 1; then | |
2958 | echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp | |
2959 | fi | |
2960 | ||
2961 | if test "$WXWIN_COMPATIBILITY_2" = yes; then | |
2962 | echo "$ac_t""yes" 1>&6 | |
2963 | else | |
2964 | echo "$ac_t""no" 1>&6 | |
2965 | fi | |
2966 | ||
2967 | ||
2968 | echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6 | |
4222829b | 2969 | echo "configure:2970: checking for --enable-compat22" >&5 |
54276ccf VZ |
2970 | no_cache=0 |
2971 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
2972 | if test "${enable_compat22+set}" = set; then | |
2973 | enableval="$enable_compat22" | |
2974 | ||
2975 | if test "$enableval" = yes; then | |
2976 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
2977 | else | |
2978 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
2979 | fi | |
2980 | ||
2981 | else | |
2982 | ||
2983 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` | |
2984 | if test "x$LINE" != x ; then | |
2985 | eval "DEFAULT_$LINE" | |
2986 | else | |
2987 | no_cache=1 | |
2988 | fi | |
2989 | ||
2990 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
2991 | ||
2992 | fi | |
2993 | ||
2994 | ||
2995 | eval "$ac_cv_use_compat22" | |
2996 | if test "$no_cache" != 1; then | |
2997 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
2998 | fi | |
2999 | ||
3000 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
3001 | echo "$ac_t""yes" 1>&6 | |
3002 | else | |
3003 | echo "$ac_t""no" 1>&6 | |
3004 | fi | |
3005 | ||
3006 | ||
3007 | ||
698dcdb6 VZ |
3008 | |
3009 | echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6 | |
4222829b | 3010 | echo "configure:3011: checking for --enable-intl" >&5 |
10f2d63a VZ |
3011 | no_cache=0 |
3012 | # Check whether --enable-intl or --disable-intl was given. | |
3013 | if test "${enable_intl+set}" = set; then | |
3014 | enableval="$enable_intl" | |
698dcdb6 | 3015 | |
10f2d63a VZ |
3016 | if test "$enableval" = yes; then |
3017 | ac_cv_use_intl='wxUSE_INTL=yes' | |
3018 | else | |
3019 | ac_cv_use_intl='wxUSE_INTL=no' | |
3020 | fi | |
698dcdb6 | 3021 | |
10f2d63a | 3022 | else |
698dcdb6 | 3023 | |
10f2d63a VZ |
3024 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` |
3025 | if test "x$LINE" != x ; then | |
3026 | eval "DEFAULT_$LINE" | |
3027 | else | |
3028 | no_cache=1 | |
3029 | fi | |
3030 | ||
3031 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
698dcdb6 VZ |
3032 | |
3033 | fi | |
10f2d63a VZ |
3034 | |
3035 | ||
3036 | eval "$ac_cv_use_intl" | |
3037 | if test "$no_cache" != 1; then | |
3038 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
3039 | fi | |
3040 | ||
3041 | if test "$wxUSE_INTL" = yes; then | |
698dcdb6 | 3042 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3043 | else |
698dcdb6 | 3044 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3045 | fi |
698dcdb6 | 3046 | |
10f2d63a | 3047 | |
698dcdb6 | 3048 | echo $ac_n "checking for --enable-config""... $ac_c" 1>&6 |
4222829b | 3049 | echo "configure:3050: checking for --enable-config" >&5 |
10f2d63a VZ |
3050 | no_cache=0 |
3051 | # Check whether --enable-config or --disable-config was given. | |
3052 | if test "${enable_config+set}" = set; then | |
3053 | enableval="$enable_config" | |
698dcdb6 | 3054 | |
10f2d63a VZ |
3055 | if test "$enableval" = yes; then |
3056 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
3057 | else | |
3058 | ac_cv_use_config='wxUSE_CONFIG=no' | |
3059 | fi | |
698dcdb6 | 3060 | |
10f2d63a | 3061 | else |
698dcdb6 | 3062 | |
10f2d63a VZ |
3063 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` |
3064 | if test "x$LINE" != x ; then | |
3065 | eval "DEFAULT_$LINE" | |
3066 | else | |
3067 | no_cache=1 | |
3068 | fi | |
3069 | ||
3070 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
698dcdb6 VZ |
3071 | |
3072 | fi | |
10f2d63a VZ |
3073 | |
3074 | ||
3075 | eval "$ac_cv_use_config" | |
3076 | if test "$no_cache" != 1; then | |
3077 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
3078 | fi | |
3079 | ||
3080 | if test "$wxUSE_CONFIG" = yes; then | |
698dcdb6 | 3081 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3082 | else |
698dcdb6 | 3083 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3084 | fi |
698dcdb6 VZ |
3085 | |
3086 | ||
b12915c1 | 3087 | |
a1622950 | 3088 | echo $ac_n "checking for --enable-protocols""... $ac_c" 1>&6 |
4222829b | 3089 | echo "configure:3090: checking for --enable-protocols" >&5 |
a1622950 VZ |
3090 | no_cache=0 |
3091 | # Check whether --enable-protocols or --disable-protocols was given. | |
3092 | if test "${enable_protocols+set}" = set; then | |
3093 | enableval="$enable_protocols" | |
3094 | ||
3095 | if test "$enableval" = yes; then | |
3096 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
3097 | else | |
3098 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
3099 | fi | |
3100 | ||
3101 | else | |
3102 | ||
3103 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
3104 | if test "x$LINE" != x ; then | |
3105 | eval "DEFAULT_$LINE" | |
3106 | else | |
3107 | no_cache=1 | |
3108 | fi | |
3109 | ||
3110 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
3111 | ||
3112 | fi | |
3113 | ||
3114 | ||
3115 | eval "$ac_cv_use_protocols" | |
3116 | if test "$no_cache" != 1; then | |
3117 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
3118 | fi | |
3119 | ||
3120 | if test "$wxUSE_PROTOCOL" = yes; then | |
3121 | echo "$ac_t""yes" 1>&6 | |
3122 | else | |
3123 | echo "$ac_t""no" 1>&6 | |
3124 | fi | |
3125 | ||
3126 | ||
3127 | echo $ac_n "checking for --enable-ftp""... $ac_c" 1>&6 | |
4222829b | 3128 | echo "configure:3129: checking for --enable-ftp" >&5 |
a1622950 VZ |
3129 | no_cache=0 |
3130 | # Check whether --enable-ftp or --disable-ftp was given. | |
3131 | if test "${enable_ftp+set}" = set; then | |
3132 | enableval="$enable_ftp" | |
3133 | ||
3134 | if test "$enableval" = yes; then | |
3135 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
3136 | else | |
3137 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
3138 | fi | |
3139 | ||
3140 | else | |
3141 | ||
3142 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
3143 | if test "x$LINE" != x ; then | |
3144 | eval "DEFAULT_$LINE" | |
3145 | else | |
3146 | no_cache=1 | |
3147 | fi | |
3148 | ||
3149 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
3150 | ||
3151 | fi | |
3152 | ||
3153 | ||
3154 | eval "$ac_cv_use_ftp" | |
3155 | if test "$no_cache" != 1; then | |
3156 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
3157 | fi | |
3158 | ||
3159 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
3160 | echo "$ac_t""yes" 1>&6 | |
3161 | else | |
3162 | echo "$ac_t""no" 1>&6 | |
3163 | fi | |
3164 | ||
3165 | ||
3166 | echo $ac_n "checking for --enable-http""... $ac_c" 1>&6 | |
4222829b | 3167 | echo "configure:3168: checking for --enable-http" >&5 |
a1622950 VZ |
3168 | no_cache=0 |
3169 | # Check whether --enable-http or --disable-http was given. | |
3170 | if test "${enable_http+set}" = set; then | |
3171 | enableval="$enable_http" | |
3172 | ||
3173 | if test "$enableval" = yes; then | |
3174 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
3175 | else | |
3176 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
3177 | fi | |
3178 | ||
3179 | else | |
3180 | ||
3181 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
3182 | if test "x$LINE" != x ; then | |
3183 | eval "DEFAULT_$LINE" | |
3184 | else | |
3185 | no_cache=1 | |
3186 | fi | |
3187 | ||
3188 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
3189 | ||
3190 | fi | |
3191 | ||
3192 | ||
3193 | eval "$ac_cv_use_http" | |
3194 | if test "$no_cache" != 1; then | |
3195 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
3196 | fi | |
3197 | ||
3198 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
3199 | echo "$ac_t""yes" 1>&6 | |
3200 | else | |
3201 | echo "$ac_t""no" 1>&6 | |
3202 | fi | |
3203 | ||
3204 | ||
3205 | echo $ac_n "checking for --enable-fileproto""... $ac_c" 1>&6 | |
4222829b | 3206 | echo "configure:3207: checking for --enable-fileproto" >&5 |
a1622950 VZ |
3207 | no_cache=0 |
3208 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
3209 | if test "${enable_fileproto+set}" = set; then | |
3210 | enableval="$enable_fileproto" | |
3211 | ||
3212 | if test "$enableval" = yes; then | |
3213 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
3214 | else | |
3215 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
3216 | fi | |
3217 | ||
3218 | else | |
3219 | ||
3220 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
3221 | if test "x$LINE" != x ; then | |
3222 | eval "DEFAULT_$LINE" | |
3223 | else | |
3224 | no_cache=1 | |
3225 | fi | |
3226 | ||
3227 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
3228 | ||
3229 | fi | |
3230 | ||
3231 | ||
3232 | eval "$ac_cv_use_fileproto" | |
3233 | if test "$no_cache" != 1; then | |
3234 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
3235 | fi | |
3236 | ||
3237 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
3238 | echo "$ac_t""yes" 1>&6 | |
3239 | else | |
3240 | echo "$ac_t""no" 1>&6 | |
3241 | fi | |
3242 | ||
3243 | ||
698dcdb6 | 3244 | echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6 |
4222829b | 3245 | echo "configure:3246: checking for --enable-sockets" >&5 |
10f2d63a VZ |
3246 | no_cache=0 |
3247 | # Check whether --enable-sockets or --disable-sockets was given. | |
3248 | if test "${enable_sockets+set}" = set; then | |
3249 | enableval="$enable_sockets" | |
698dcdb6 | 3250 | |
10f2d63a VZ |
3251 | if test "$enableval" = yes; then |
3252 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
3253 | else | |
3254 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
3255 | fi | |
698dcdb6 | 3256 | |
10f2d63a | 3257 | else |
698dcdb6 | 3258 | |
10f2d63a VZ |
3259 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` |
3260 | if test "x$LINE" != x ; then | |
3261 | eval "DEFAULT_$LINE" | |
3262 | else | |
3263 | no_cache=1 | |
3264 | fi | |
3265 | ||
3266 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
698dcdb6 VZ |
3267 | |
3268 | fi | |
10f2d63a VZ |
3269 | |
3270 | ||
3271 | eval "$ac_cv_use_sockets" | |
3272 | if test "$no_cache" != 1; then | |
3273 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
3274 | fi | |
3275 | ||
3276 | if test "$wxUSE_SOCKETS" = yes; then | |
698dcdb6 | 3277 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3278 | else |
698dcdb6 | 3279 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3280 | fi |
698dcdb6 | 3281 | |
b12915c1 | 3282 | |
698dcdb6 VZ |
3283 | |
3284 | echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6 | |
4222829b | 3285 | echo "configure:3286: checking for --enable-ipc" >&5 |
10f2d63a | 3286 | no_cache=0 |
eb4efbdc VZ |
3287 | # Check whether --enable-ipc or --disable-ipc was given. |
3288 | if test "${enable_ipc+set}" = set; then | |
3289 | enableval="$enable_ipc" | |
698dcdb6 | 3290 | |
10f2d63a | 3291 | if test "$enableval" = yes; then |
eb4efbdc | 3292 | ac_cv_use_ipc='wxUSE_IPC=yes' |
10f2d63a | 3293 | else |
eb4efbdc | 3294 | ac_cv_use_ipc='wxUSE_IPC=no' |
10f2d63a | 3295 | fi |
698dcdb6 | 3296 | |
10f2d63a | 3297 | else |
698dcdb6 | 3298 | |
eb4efbdc | 3299 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` |
10f2d63a VZ |
3300 | if test "x$LINE" != x ; then |
3301 | eval "DEFAULT_$LINE" | |
3302 | else | |
3303 | no_cache=1 | |
3304 | fi | |
3305 | ||
eb4efbdc | 3306 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC |
698dcdb6 VZ |
3307 | |
3308 | fi | |
10f2d63a VZ |
3309 | |
3310 | ||
eb4efbdc | 3311 | eval "$ac_cv_use_ipc" |
10f2d63a | 3312 | if test "$no_cache" != 1; then |
eb4efbdc | 3313 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3314 | fi |
3315 | ||
eb4efbdc | 3316 | if test "$wxUSE_IPC" = yes; then |
698dcdb6 | 3317 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3318 | else |
698dcdb6 | 3319 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3320 | fi |
698dcdb6 VZ |
3321 | |
3322 | ||
eb4efbdc | 3323 | |
1e6feb95 | 3324 | echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6 |
4222829b | 3325 | echo "configure:3326: checking for --enable-cmdline" >&5 |
1e6feb95 VZ |
3326 | no_cache=0 |
3327 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
3328 | if test "${enable_cmdline+set}" = set; then | |
3329 | enableval="$enable_cmdline" | |
3330 | ||
3331 | if test "$enableval" = yes; then | |
3332 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
3333 | else | |
3334 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
3335 | fi | |
3336 | ||
3337 | else | |
3338 | ||
3339 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
3340 | if test "x$LINE" != x ; then | |
3341 | eval "DEFAULT_$LINE" | |
3342 | else | |
3343 | no_cache=1 | |
3344 | fi | |
3345 | ||
3346 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
3347 | ||
3348 | fi | |
3349 | ||
3350 | ||
3351 | eval "$ac_cv_use_cmdline" | |
3352 | if test "$no_cache" != 1; then | |
3353 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
3354 | fi | |
3355 | ||
3356 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
3357 | echo "$ac_t""yes" 1>&6 | |
3358 | else | |
3359 | echo "$ac_t""no" 1>&6 | |
3360 | fi | |
3361 | ||
3362 | ||
3363 | echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6 | |
4222829b | 3364 | echo "configure:3365: checking for --enable-datetime" >&5 |
1e6feb95 VZ |
3365 | no_cache=0 |
3366 | # Check whether --enable-datetime or --disable-datetime was given. | |
3367 | if test "${enable_datetime+set}" = set; then | |
3368 | enableval="$enable_datetime" | |
3369 | ||
3370 | if test "$enableval" = yes; then | |
3371 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
3372 | else | |
3373 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
3374 | fi | |
3375 | ||
3376 | else | |
3377 | ||
3378 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
3379 | if test "x$LINE" != x ; then | |
3380 | eval "DEFAULT_$LINE" | |
3381 | else | |
3382 | no_cache=1 | |
3383 | fi | |
3384 | ||
3385 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
3386 | ||
3387 | fi | |
3388 | ||
3389 | ||
3390 | eval "$ac_cv_use_datetime" | |
3391 | if test "$no_cache" != 1; then | |
3392 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
3393 | fi | |
3394 | ||
3395 | if test "$wxUSE_DATETIME" = yes; then | |
3396 | echo "$ac_t""yes" 1>&6 | |
3397 | else | |
3398 | echo "$ac_t""no" 1>&6 | |
3399 | fi | |
3400 | ||
3401 | ||
3402 | echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6 | |
4222829b | 3403 | echo "configure:3404: checking for --enable-timedate" >&5 |
1e6feb95 VZ |
3404 | no_cache=0 |
3405 | # Check whether --enable-timedate or --disable-timedate was given. | |
3406 | if test "${enable_timedate+set}" = set; then | |
3407 | enableval="$enable_timedate" | |
3408 | ||
3409 | if test "$enableval" = yes; then | |
3410 | ac_cv_use_timedate='wxUSE_TIMEDATE=yes' | |
3411 | else | |
3412 | ac_cv_use_timedate='wxUSE_TIMEDATE=no' | |
3413 | fi | |
3414 | ||
3415 | else | |
3416 | ||
3417 | LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}` | |
3418 | if test "x$LINE" != x ; then | |
3419 | eval "DEFAULT_$LINE" | |
3420 | else | |
3421 | no_cache=1 | |
3422 | fi | |
3423 | ||
3424 | ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE | |
3425 | ||
3426 | fi | |
3427 | ||
3428 | ||
3429 | eval "$ac_cv_use_timedate" | |
3430 | if test "$no_cache" != 1; then | |
3431 | echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp | |
3432 | fi | |
3433 | ||
3434 | if test "$wxUSE_TIMEDATE" = yes; then | |
3435 | echo "$ac_t""yes" 1>&6 | |
3436 | else | |
3437 | echo "$ac_t""no" 1>&6 | |
3438 | fi | |
3439 | ||
3440 | ||
3441 | echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6 | |
4222829b | 3442 | echo "configure:3443: checking for --enable-stopwatch" >&5 |
1e6feb95 VZ |
3443 | no_cache=0 |
3444 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
3445 | if test "${enable_stopwatch+set}" = set; then | |
3446 | enableval="$enable_stopwatch" | |
3447 | ||
3448 | if test "$enableval" = yes; then | |
3449 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
3450 | else | |
3451 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
3452 | fi | |
3453 | ||
3454 | else | |
3455 | ||
3456 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` | |
3457 | if test "x$LINE" != x ; then | |
3458 | eval "DEFAULT_$LINE" | |
3459 | else | |
3460 | no_cache=1 | |
3461 | fi | |
3462 | ||
3463 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
3464 | ||
3465 | fi | |
3466 | ||
3467 | ||
3468 | eval "$ac_cv_use_stopwatch" | |
3469 | if test "$no_cache" != 1; then | |
3470 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
3471 | fi | |
3472 | ||
3473 | if test "$wxUSE_STOPWATCH" = yes; then | |
3474 | echo "$ac_t""yes" 1>&6 | |
3475 | else | |
3476 | echo "$ac_t""no" 1>&6 | |
3477 | fi | |
3478 | ||
3479 | ||
698dcdb6 | 3480 | echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6 |
4222829b | 3481 | echo "configure:3482: checking for --enable-dialupman" >&5 |
10f2d63a | 3482 | no_cache=0 |
eb4efbdc VZ |
3483 | # Check whether --enable-dialupman or --disable-dialupman was given. |
3484 | if test "${enable_dialupman+set}" = set; then | |
3485 | enableval="$enable_dialupman" | |
698dcdb6 | 3486 | |
10f2d63a | 3487 | if test "$enableval" = yes; then |
eb4efbdc | 3488 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' |
10f2d63a | 3489 | else |
eb4efbdc | 3490 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' |
10f2d63a | 3491 | fi |
698dcdb6 | 3492 | |
10f2d63a | 3493 | else |
698dcdb6 | 3494 | |
eb4efbdc | 3495 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3496 | if test "x$LINE" != x ; then |
3497 | eval "DEFAULT_$LINE" | |
3498 | else | |
3499 | no_cache=1 | |
3500 | fi | |
3501 | ||
eb4efbdc | 3502 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER |
698dcdb6 VZ |
3503 | |
3504 | fi | |
10f2d63a VZ |
3505 | |
3506 | ||
eb4efbdc | 3507 | eval "$ac_cv_use_dialupman" |
10f2d63a | 3508 | if test "$no_cache" != 1; then |
eb4efbdc | 3509 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3510 | fi |
3511 | ||
eb4efbdc | 3512 | if test "$wxUSE_DIALUP_MANAGER" = yes; then |
698dcdb6 | 3513 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3514 | else |
698dcdb6 | 3515 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3516 | fi |
698dcdb6 | 3517 | |
10f2d63a | 3518 | |
698dcdb6 | 3519 | echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6 |
4222829b | 3520 | echo "configure:3521: checking for --enable-apple_ieee" >&5 |
10f2d63a VZ |
3521 | no_cache=0 |
3522 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
3523 | if test "${enable_apple_ieee+set}" = set; then | |
3524 | enableval="$enable_apple_ieee" | |
698dcdb6 | 3525 | |
10f2d63a VZ |
3526 | if test "$enableval" = yes; then |
3527 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
3528 | else | |
3529 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
3530 | fi | |
698dcdb6 | 3531 | |
10f2d63a | 3532 | else |
698dcdb6 | 3533 | |
10f2d63a VZ |
3534 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` |
3535 | if test "x$LINE" != x ; then | |
3536 | eval "DEFAULT_$LINE" | |
3537 | else | |
3538 | no_cache=1 | |
3539 | fi | |
3540 | ||
3541 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
698dcdb6 VZ |
3542 | |
3543 | fi | |
10f2d63a VZ |
3544 | |
3545 | ||
3546 | eval "$ac_cv_use_apple_ieee" | |
3547 | if test "$no_cache" != 1; then | |
3548 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
3549 | fi | |
3550 | ||
3551 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
698dcdb6 | 3552 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3553 | else |
698dcdb6 | 3554 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3555 | fi |
698dcdb6 | 3556 | |
10f2d63a | 3557 | |
1e6feb95 | 3558 | echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6 |
4222829b | 3559 | echo "configure:3560: checking for --enable-timer" >&5 |
10f2d63a | 3560 | no_cache=0 |
1e6feb95 VZ |
3561 | # Check whether --enable-timer or --disable-timer was given. |
3562 | if test "${enable_timer+set}" = set; then | |
3563 | enableval="$enable_timer" | |
698dcdb6 | 3564 | |
10f2d63a | 3565 | if test "$enableval" = yes; then |
1e6feb95 | 3566 | ac_cv_use_timer='wxUSE_TIMER=yes' |
10f2d63a | 3567 | else |
1e6feb95 | 3568 | ac_cv_use_timer='wxUSE_TIMER=no' |
10f2d63a | 3569 | fi |
698dcdb6 | 3570 | |
10f2d63a | 3571 | else |
698dcdb6 | 3572 | |
1e6feb95 | 3573 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3574 | if test "x$LINE" != x ; then |
3575 | eval "DEFAULT_$LINE" | |
3576 | else | |
3577 | no_cache=1 | |
3578 | fi | |
3579 | ||
1e6feb95 | 3580 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER |
698dcdb6 VZ |
3581 | |
3582 | fi | |
10f2d63a VZ |
3583 | |
3584 | ||
1e6feb95 | 3585 | eval "$ac_cv_use_timer" |
10f2d63a | 3586 | if test "$no_cache" != 1; then |
1e6feb95 | 3587 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3588 | fi |
3589 | ||
1e6feb95 | 3590 | if test "$wxUSE_TIMER" = yes; then |
698dcdb6 | 3591 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3592 | else |
698dcdb6 | 3593 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3594 | fi |
698dcdb6 | 3595 | |
10f2d63a | 3596 | |
698dcdb6 | 3597 | echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6 |
4222829b | 3598 | echo "configure:3599: checking for --enable-wave" >&5 |
10f2d63a VZ |
3599 | no_cache=0 |
3600 | # Check whether --enable-wave or --disable-wave was given. | |
3601 | if test "${enable_wave+set}" = set; then | |
3602 | enableval="$enable_wave" | |
698dcdb6 | 3603 | |
10f2d63a VZ |
3604 | if test "$enableval" = yes; then |
3605 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
3606 | else | |
3607 | ac_cv_use_wave='wxUSE_WAVE=no' | |
3608 | fi | |
698dcdb6 | 3609 | |
10f2d63a | 3610 | else |
698dcdb6 | 3611 | |
10f2d63a VZ |
3612 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` |
3613 | if test "x$LINE" != x ; then | |
3614 | eval "DEFAULT_$LINE" | |
3615 | else | |
3616 | no_cache=1 | |
3617 | fi | |
3618 | ||
3619 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
698dcdb6 VZ |
3620 | |
3621 | fi | |
10f2d63a VZ |
3622 | |
3623 | ||
3624 | eval "$ac_cv_use_wave" | |
3625 | if test "$no_cache" != 1; then | |
3626 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
3627 | fi | |
3628 | ||
3629 | if test "$wxUSE_WAVE" = yes; then | |
698dcdb6 | 3630 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3631 | else |
698dcdb6 | 3632 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3633 | fi |
698dcdb6 | 3634 | |
10f2d63a | 3635 | |
698dcdb6 | 3636 | echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6 |
4222829b | 3637 | echo "configure:3638: checking for --enable-fraction" >&5 |
10f2d63a VZ |
3638 | no_cache=0 |
3639 | # Check whether --enable-fraction or --disable-fraction was given. | |
3640 | if test "${enable_fraction+set}" = set; then | |
3641 | enableval="$enable_fraction" | |
698dcdb6 | 3642 | |
10f2d63a VZ |
3643 | if test "$enableval" = yes; then |
3644 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
3645 | else | |
3646 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
3647 | fi | |
698dcdb6 | 3648 | |
10f2d63a | 3649 | else |
698dcdb6 | 3650 | |
10f2d63a VZ |
3651 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` |
3652 | if test "x$LINE" != x ; then | |
3653 | eval "DEFAULT_$LINE" | |
3654 | else | |
3655 | no_cache=1 | |
3656 | fi | |
3657 | ||
3658 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
698dcdb6 VZ |
3659 | |
3660 | fi | |
10f2d63a VZ |
3661 | |
3662 | ||
3663 | eval "$ac_cv_use_fraction" | |
3664 | if test "$no_cache" != 1; then | |
3665 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
3666 | fi | |
3667 | ||
3668 | if test "$wxUSE_FRACTION" = yes; then | |
698dcdb6 | 3669 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3670 | else |
698dcdb6 | 3671 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3672 | fi |
698dcdb6 | 3673 | |
10f2d63a | 3674 | |
698dcdb6 | 3675 | echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6 |
4222829b | 3676 | echo "configure:3677: checking for --enable-dynlib" >&5 |
10f2d63a VZ |
3677 | no_cache=0 |
3678 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
3679 | if test "${enable_dynlib+set}" = set; then | |
3680 | enableval="$enable_dynlib" | |
698dcdb6 | 3681 | |
10f2d63a VZ |
3682 | if test "$enableval" = yes; then |
3683 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
3684 | else | |
3685 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
3686 | fi | |
698dcdb6 | 3687 | |
10f2d63a | 3688 | else |
698dcdb6 | 3689 | |
10f2d63a VZ |
3690 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` |
3691 | if test "x$LINE" != x ; then | |
3692 | eval "DEFAULT_$LINE" | |
3693 | else | |
3694 | no_cache=1 | |
3695 | fi | |
3696 | ||
3697 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
698dcdb6 VZ |
3698 | |
3699 | fi | |
10f2d63a VZ |
3700 | |
3701 | ||
3702 | eval "$ac_cv_use_dynlib" | |
3703 | if test "$no_cache" != 1; then | |
3704 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
3705 | fi | |
3706 | ||
3707 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
698dcdb6 | 3708 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3709 | else |
698dcdb6 | 3710 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3711 | fi |
698dcdb6 | 3712 | |
10f2d63a | 3713 | |
0b9ab0bd | 3714 | echo $ac_n "checking for --enable-dynamicloader""... $ac_c" 1>&6 |
4222829b | 3715 | echo "configure:3716: checking for --enable-dynamicloader" >&5 |
0b9ab0bd RL |
3716 | no_cache=0 |
3717 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
3718 | if test "${enable_dynamicloader+set}" = set; then | |
3719 | enableval="$enable_dynamicloader" | |
3720 | ||
3721 | if test "$enableval" = yes; then | |
3722 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
3723 | else | |
3724 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
3725 | fi | |
3726 | ||
3727 | else | |
3728 | ||
3729 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` | |
3730 | if test "x$LINE" != x ; then | |
3731 | eval "DEFAULT_$LINE" | |
3732 | else | |
3733 | no_cache=1 | |
3734 | fi | |
3735 | ||
3736 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
3737 | ||
3738 | fi | |
3739 | ||
3740 | ||
3741 | eval "$ac_cv_use_dynamicloader" | |
3742 | if test "$no_cache" != 1; then | |
3743 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
3744 | fi | |
3745 | ||
3746 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
3747 | echo "$ac_t""yes" 1>&6 | |
3748 | else | |
3749 | echo "$ac_t""no" 1>&6 | |
3750 | fi | |
3751 | ||
3752 | ||
698dcdb6 | 3753 | echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6 |
4222829b | 3754 | echo "configure:3755: checking for --enable-longlong" >&5 |
10f2d63a VZ |
3755 | no_cache=0 |
3756 | # Check whether --enable-longlong or --disable-longlong was given. | |
3757 | if test "${enable_longlong+set}" = set; then | |
3758 | enableval="$enable_longlong" | |
698dcdb6 | 3759 | |
10f2d63a VZ |
3760 | if test "$enableval" = yes; then |
3761 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
3762 | else | |
3763 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
3764 | fi | |
698dcdb6 | 3765 | |
10f2d63a | 3766 | else |
698dcdb6 | 3767 | |
10f2d63a VZ |
3768 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` |
3769 | if test "x$LINE" != x ; then | |
3770 | eval "DEFAULT_$LINE" | |
3771 | else | |
3772 | no_cache=1 | |
3773 | fi | |
3774 | ||
3775 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
698dcdb6 VZ |
3776 | |
3777 | fi | |
10f2d63a VZ |
3778 | |
3779 | ||
3780 | eval "$ac_cv_use_longlong" | |
3781 | if test "$no_cache" != 1; then | |
3782 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
3783 | fi | |
3784 | ||
3785 | if test "$wxUSE_LONGLONG" = yes; then | |
698dcdb6 | 3786 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3787 | else |
698dcdb6 | 3788 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3789 | fi |
698dcdb6 | 3790 | |
10f2d63a | 3791 | |
698dcdb6 | 3792 | echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6 |
4222829b | 3793 | echo "configure:3794: checking for --enable-geometry" >&5 |
e8f65ba6 RR |
3794 | no_cache=0 |
3795 | # Check whether --enable-geometry or --disable-geometry was given. | |
3796 | if test "${enable_geometry+set}" = set; then | |
3797 | enableval="$enable_geometry" | |
698dcdb6 | 3798 | |
e8f65ba6 RR |
3799 | if test "$enableval" = yes; then |
3800 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
3801 | else | |
3802 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
3803 | fi | |
698dcdb6 | 3804 | |
e8f65ba6 | 3805 | else |
698dcdb6 | 3806 | |
e8f65ba6 RR |
3807 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` |
3808 | if test "x$LINE" != x ; then | |
3809 | eval "DEFAULT_$LINE" | |
3810 | else | |
3811 | no_cache=1 | |
3812 | fi | |
3813 | ||
3814 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
698dcdb6 VZ |
3815 | |
3816 | fi | |
e8f65ba6 RR |
3817 | |
3818 | ||
3819 | eval "$ac_cv_use_geometry" | |
3820 | if test "$no_cache" != 1; then | |
3821 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
3822 | fi | |
3823 | ||
3824 | if test "$wxUSE_GEOMETRY" = yes; then | |
698dcdb6 | 3825 | echo "$ac_t""yes" 1>&6 |
e8f65ba6 | 3826 | else |
698dcdb6 | 3827 | echo "$ac_t""no" 1>&6 |
e8f65ba6 | 3828 | fi |
698dcdb6 | 3829 | |
e8f65ba6 | 3830 | |
698dcdb6 | 3831 | echo $ac_n "checking for --enable-log""... $ac_c" 1>&6 |
4222829b | 3832 | echo "configure:3833: checking for --enable-log" >&5 |
10f2d63a VZ |
3833 | no_cache=0 |
3834 | # Check whether --enable-log or --disable-log was given. | |
3835 | if test "${enable_log+set}" = set; then | |
3836 | enableval="$enable_log" | |
698dcdb6 | 3837 | |
10f2d63a VZ |
3838 | if test "$enableval" = yes; then |
3839 | ac_cv_use_log='wxUSE_LOG=yes' | |
3840 | else | |
3841 | ac_cv_use_log='wxUSE_LOG=no' | |
3842 | fi | |
698dcdb6 | 3843 | |
10f2d63a | 3844 | else |
698dcdb6 | 3845 | |
10f2d63a VZ |
3846 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` |
3847 | if test "x$LINE" != x ; then | |
3848 | eval "DEFAULT_$LINE" | |
3849 | else | |
3850 | no_cache=1 | |
3851 | fi | |
3852 | ||
3853 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
698dcdb6 VZ |
3854 | |
3855 | fi | |
10f2d63a VZ |
3856 | |
3857 | ||
3858 | eval "$ac_cv_use_log" | |
3859 | if test "$no_cache" != 1; then | |
3860 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
3861 | fi | |
3862 | ||
3863 | if test "$wxUSE_LOG" = yes; then | |
698dcdb6 | 3864 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3865 | else |
698dcdb6 | 3866 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3867 | fi |
698dcdb6 | 3868 | |
10f2d63a | 3869 | |
698dcdb6 | 3870 | echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6 |
4222829b | 3871 | echo "configure:3872: checking for --enable-streams" >&5 |
10f2d63a VZ |
3872 | no_cache=0 |
3873 | # Check whether --enable-streams or --disable-streams was given. | |
3874 | if test "${enable_streams+set}" = set; then | |
3875 | enableval="$enable_streams" | |
698dcdb6 | 3876 | |
10f2d63a VZ |
3877 | if test "$enableval" = yes; then |
3878 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
3879 | else | |
3880 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
3881 | fi | |
698dcdb6 | 3882 | |
10f2d63a | 3883 | else |
698dcdb6 | 3884 | |
10f2d63a VZ |
3885 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` |
3886 | if test "x$LINE" != x ; then | |
3887 | eval "DEFAULT_$LINE" | |
3888 | else | |
3889 | no_cache=1 | |
3890 | fi | |
3891 | ||
3892 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
698dcdb6 VZ |
3893 | |
3894 | fi | |
10f2d63a VZ |
3895 | |
3896 | ||
3897 | eval "$ac_cv_use_streams" | |
3898 | if test "$no_cache" != 1; then | |
3899 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
3900 | fi | |
3901 | ||
3902 | if test "$wxUSE_STREAMS" = yes; then | |
698dcdb6 | 3903 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3904 | else |
698dcdb6 | 3905 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3906 | fi |
698dcdb6 | 3907 | |
10f2d63a | 3908 | |
698dcdb6 | 3909 | echo $ac_n "checking for --enable-file""... $ac_c" 1>&6 |
4222829b | 3910 | echo "configure:3911: checking for --enable-file" >&5 |
10f2d63a VZ |
3911 | no_cache=0 |
3912 | # Check whether --enable-file or --disable-file was given. | |
3913 | if test "${enable_file+set}" = set; then | |
3914 | enableval="$enable_file" | |
698dcdb6 | 3915 | |
10f2d63a VZ |
3916 | if test "$enableval" = yes; then |
3917 | ac_cv_use_file='wxUSE_FILE=yes' | |
3918 | else | |
3919 | ac_cv_use_file='wxUSE_FILE=no' | |
3920 | fi | |
698dcdb6 | 3921 | |
10f2d63a | 3922 | else |
698dcdb6 | 3923 | |
10f2d63a VZ |
3924 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` |
3925 | if test "x$LINE" != x ; then | |
3926 | eval "DEFAULT_$LINE" | |
3927 | else | |
3928 | no_cache=1 | |
3929 | fi | |
3930 | ||
3931 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
698dcdb6 VZ |
3932 | |
3933 | fi | |
10f2d63a VZ |
3934 | |
3935 | ||
3936 | eval "$ac_cv_use_file" | |
3937 | if test "$no_cache" != 1; then | |
3938 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
3939 | fi | |
3940 | ||
3941 | if test "$wxUSE_FILE" = yes; then | |
698dcdb6 | 3942 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3943 | else |
698dcdb6 | 3944 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3945 | fi |
698dcdb6 | 3946 | |
10f2d63a | 3947 | |
1e6feb95 | 3948 | echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6 |
4222829b | 3949 | echo "configure:3950: checking for --enable-ffile" >&5 |
10f2d63a | 3950 | no_cache=0 |
1e6feb95 VZ |
3951 | # Check whether --enable-ffile or --disable-ffile was given. |
3952 | if test "${enable_ffile+set}" = set; then | |
3953 | enableval="$enable_ffile" | |
698dcdb6 | 3954 | |
10f2d63a | 3955 | if test "$enableval" = yes; then |
1e6feb95 | 3956 | ac_cv_use_ffile='wxUSE_FFILE=yes' |
10f2d63a | 3957 | else |
1e6feb95 | 3958 | ac_cv_use_ffile='wxUSE_FFILE=no' |
10f2d63a | 3959 | fi |
698dcdb6 | 3960 | |
10f2d63a | 3961 | else |
698dcdb6 | 3962 | |
1e6feb95 | 3963 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
3964 | if test "x$LINE" != x ; then |
3965 | eval "DEFAULT_$LINE" | |
3966 | else | |
3967 | no_cache=1 | |
3968 | fi | |
3969 | ||
1e6feb95 | 3970 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE |
698dcdb6 VZ |
3971 | |
3972 | fi | |
10f2d63a VZ |
3973 | |
3974 | ||
1e6feb95 | 3975 | eval "$ac_cv_use_ffile" |
10f2d63a | 3976 | if test "$no_cache" != 1; then |
1e6feb95 | 3977 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3978 | fi |
3979 | ||
1e6feb95 | 3980 | if test "$wxUSE_FFILE" = yes; then |
698dcdb6 | 3981 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3982 | else |
698dcdb6 | 3983 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3984 | fi |
698dcdb6 | 3985 | |
10f2d63a | 3986 | |
a3a584a7 | 3987 | echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6 |
4222829b | 3988 | echo "configure:3989: checking for --enable-textbuf" >&5 |
a3a584a7 VZ |
3989 | no_cache=0 |
3990 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
3991 | if test "${enable_textbuf+set}" = set; then | |
3992 | enableval="$enable_textbuf" | |
3993 | ||
3994 | if test "$enableval" = yes; then | |
3995 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
3996 | else | |
3997 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
3998 | fi | |
3999 | ||
4000 | else | |
4001 | ||
4002 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` | |
4003 | if test "x$LINE" != x ; then | |
4004 | eval "DEFAULT_$LINE" | |
4005 | else | |
4006 | no_cache=1 | |
4007 | fi | |
4008 | ||
4009 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
4010 | ||
4011 | fi | |
4012 | ||
4013 | ||
4014 | eval "$ac_cv_use_textbuf" | |
4015 | if test "$no_cache" != 1; then | |
4016 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
4017 | fi | |
4018 | ||
4019 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
4020 | echo "$ac_t""yes" 1>&6 | |
4021 | else | |
4022 | echo "$ac_t""no" 1>&6 | |
4023 | fi | |
4024 | ||
4025 | ||
1e6feb95 | 4026 | echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6 |
4222829b | 4027 | echo "configure:4028: checking for --enable-textfile" >&5 |
10f2d63a | 4028 | no_cache=0 |
1e6feb95 VZ |
4029 | # Check whether --enable-textfile or --disable-textfile was given. |
4030 | if test "${enable_textfile+set}" = set; then | |
4031 | enableval="$enable_textfile" | |
698dcdb6 | 4032 | |
10f2d63a | 4033 | if test "$enableval" = yes; then |
1e6feb95 | 4034 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' |
10f2d63a | 4035 | else |
1e6feb95 | 4036 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' |
10f2d63a | 4037 | fi |
698dcdb6 | 4038 | |
10f2d63a | 4039 | else |
698dcdb6 | 4040 | |
1e6feb95 | 4041 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4042 | if test "x$LINE" != x ; then |
4043 | eval "DEFAULT_$LINE" | |
4044 | else | |
4045 | no_cache=1 | |
4046 | fi | |
4047 | ||
1e6feb95 | 4048 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE |
698dcdb6 VZ |
4049 | |
4050 | fi | |
10f2d63a VZ |
4051 | |
4052 | ||
1e6feb95 | 4053 | eval "$ac_cv_use_textfile" |
10f2d63a | 4054 | if test "$no_cache" != 1; then |
1e6feb95 | 4055 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4056 | fi |
4057 | ||
1e6feb95 | 4058 | if test "$wxUSE_TEXTFILE" = yes; then |
698dcdb6 | 4059 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4060 | else |
698dcdb6 | 4061 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4062 | fi |
698dcdb6 | 4063 | |
10f2d63a | 4064 | |
1e6feb95 | 4065 | echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6 |
4222829b | 4066 | echo "configure:4067: checking for --enable-fontmap" >&5 |
10f2d63a | 4067 | no_cache=0 |
1e6feb95 VZ |
4068 | # Check whether --enable-fontmap or --disable-fontmap was given. |
4069 | if test "${enable_fontmap+set}" = set; then | |
4070 | enableval="$enable_fontmap" | |
698dcdb6 | 4071 | |
10f2d63a | 4072 | if test "$enableval" = yes; then |
1e6feb95 | 4073 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' |
10f2d63a | 4074 | else |
1e6feb95 | 4075 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' |
10f2d63a | 4076 | fi |
698dcdb6 | 4077 | |
10f2d63a | 4078 | else |
698dcdb6 | 4079 | |
1e6feb95 | 4080 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` |
10f2d63a VZ |
4081 | if test "x$LINE" != x ; then |
4082 | eval "DEFAULT_$LINE" | |
4083 | else | |
4084 | no_cache=1 | |
4085 | fi | |
4086 | ||
1e6feb95 | 4087 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP |
698dcdb6 VZ |
4088 | |
4089 | fi | |
10f2d63a VZ |
4090 | |
4091 | ||
1e6feb95 | 4092 | eval "$ac_cv_use_fontmap" |
10f2d63a | 4093 | if test "$no_cache" != 1; then |
1e6feb95 | 4094 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4095 | fi |
4096 | ||
1e6feb95 | 4097 | if test "$wxUSE_FONTMAP" = yes; then |
698dcdb6 | 4098 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4099 | else |
698dcdb6 | 4100 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4101 | fi |
698dcdb6 | 4102 | |
10f2d63a | 4103 | |
1e6feb95 | 4104 | echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6 |
4222829b | 4105 | echo "configure:4106: checking for --enable-unicode" >&5 |
10f2d63a | 4106 | no_cache=0 |
1e6feb95 VZ |
4107 | # Check whether --enable-unicode or --disable-unicode was given. |
4108 | if test "${enable_unicode+set}" = set; then | |
4109 | enableval="$enable_unicode" | |
4110 | ||
4111 | if test "$enableval" = yes; then | |
4112 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
4113 | else | |
4114 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
4115 | fi | |
4116 | ||
4117 | else | |
4118 | ||
4119 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
4120 | if test "x$LINE" != x ; then | |
4121 | eval "DEFAULT_$LINE" | |
4122 | else | |
4123 | no_cache=1 | |
4124 | fi | |
4125 | ||
4126 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
4127 | ||
4128 | fi | |
4129 | ||
4130 | ||
4131 | eval "$ac_cv_use_unicode" | |
4132 | if test "$no_cache" != 1; then | |
4133 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
4134 | fi | |
4135 | ||
4136 | if test "$wxUSE_UNICODE" = yes; then | |
4137 | echo "$ac_t""yes" 1>&6 | |
4138 | else | |
4139 | echo "$ac_t""no" 1>&6 | |
4140 | fi | |
4141 | ||
4142 | ||
a72a4bfa | 4143 | echo $ac_n "checking for --enable-mslu""... $ac_c" 1>&6 |
4222829b | 4144 | echo "configure:4145: checking for --enable-mslu" >&5 |
a72a4bfa VS |
4145 | no_cache=0 |
4146 | # Check whether --enable-mslu or --disable-mslu was given. | |
4147 | if test "${enable_mslu+set}" = set; then | |
4148 | enableval="$enable_mslu" | |
4149 | ||
4150 | if test "$enableval" = yes; then | |
4151 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
4152 | else | |
4153 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
4154 | fi | |
4155 | ||
4156 | else | |
4157 | ||
4158 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` | |
4159 | if test "x$LINE" != x ; then | |
4160 | eval "DEFAULT_$LINE" | |
4161 | else | |
4162 | no_cache=1 | |
4163 | fi | |
4164 | ||
4165 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
4166 | ||
4167 | fi | |
4168 | ||
4169 | ||
4170 | eval "$ac_cv_use_mslu" | |
4171 | if test "$no_cache" != 1; then | |
4172 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
4173 | fi | |
4174 | ||
4175 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
4176 | echo "$ac_t""yes" 1>&6 | |
4177 | else | |
4178 | echo "$ac_t""no" 1>&6 | |
4179 | fi | |
4180 | ||
4181 | ||
1e6feb95 | 4182 | echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6 |
4222829b | 4183 | echo "configure:4184: checking for --enable-wxprintfv" >&5 |
1e6feb95 VZ |
4184 | no_cache=0 |
4185 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
4186 | if test "${enable_wxprintfv+set}" = set; then | |
4187 | enableval="$enable_wxprintfv" | |
4188 | ||
4189 | if test "$enableval" = yes; then | |
10f2d63a VZ |
4190 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' |
4191 | else | |
4192 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
4193 | fi | |
698dcdb6 | 4194 | |
10f2d63a | 4195 | else |
698dcdb6 | 4196 | |
10f2d63a VZ |
4197 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` |
4198 | if test "x$LINE" != x ; then | |
4199 | eval "DEFAULT_$LINE" | |
4200 | else | |
4201 | no_cache=1 | |
4202 | fi | |
4203 | ||
4204 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
698dcdb6 VZ |
4205 | |
4206 | fi | |
10f2d63a VZ |
4207 | |
4208 | ||
4209 | eval "$ac_cv_use_wxprintfv" | |
4210 | if test "$no_cache" != 1; then | |
4211 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
4212 | fi | |
4213 | ||
4214 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
698dcdb6 | 4215 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4216 | else |
698dcdb6 | 4217 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4218 | fi |
698dcdb6 | 4219 | |
10f2d63a | 4220 | |
698dcdb6 | 4221 | echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6 |
4222829b | 4222 | echo "configure:4223: checking for --enable-std_iostreams" >&5 |
10f2d63a VZ |
4223 | no_cache=0 |
4224 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
4225 | if test "${enable_std_iostreams+set}" = set; then | |
4226 | enableval="$enable_std_iostreams" | |
698dcdb6 | 4227 | |
10f2d63a VZ |
4228 | if test "$enableval" = yes; then |
4229 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
4230 | else | |
4231 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
4232 | fi | |
698dcdb6 | 4233 | |
10f2d63a | 4234 | else |
698dcdb6 | 4235 | |
10f2d63a VZ |
4236 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
4237 | if test "x$LINE" != x ; then | |
4238 | eval "DEFAULT_$LINE" | |
4239 | else | |
4240 | no_cache=1 | |
4241 | fi | |
4242 | ||
4243 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
698dcdb6 VZ |
4244 | |
4245 | fi | |
10f2d63a VZ |
4246 | |
4247 | ||
4248 | eval "$ac_cv_use_std_iostreams" | |
4249 | if test "$no_cache" != 1; then | |
4250 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
4251 | fi | |
4252 | ||
4253 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
698dcdb6 | 4254 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4255 | else |
698dcdb6 | 4256 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4257 | fi |
698dcdb6 | 4258 | |
10f2d63a | 4259 | |
698dcdb6 | 4260 | echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6 |
4222829b | 4261 | echo "configure:4262: checking for --enable-filesystem" >&5 |
24528b0c VS |
4262 | no_cache=0 |
4263 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
4264 | if test "${enable_filesystem+set}" = set; then | |
4265 | enableval="$enable_filesystem" | |
698dcdb6 | 4266 | |
24528b0c VS |
4267 | if test "$enableval" = yes; then |
4268 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
4269 | else | |
4270 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
4271 | fi | |
698dcdb6 | 4272 | |
24528b0c | 4273 | else |
698dcdb6 | 4274 | |
24528b0c VS |
4275 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` |
4276 | if test "x$LINE" != x ; then | |
4277 | eval "DEFAULT_$LINE" | |
4278 | else | |
4279 | no_cache=1 | |
4280 | fi | |
4281 | ||
4282 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
698dcdb6 VZ |
4283 | |
4284 | fi | |
24528b0c VS |
4285 | |
4286 | ||
4287 | eval "$ac_cv_use_filesystem" | |
4288 | if test "$no_cache" != 1; then | |
4289 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
4290 | fi | |
4291 | ||
4292 | if test "$wxUSE_FILESYSTEM" = yes; then | |
698dcdb6 | 4293 | echo "$ac_t""yes" 1>&6 |
24528b0c | 4294 | else |
698dcdb6 | 4295 | echo "$ac_t""no" 1>&6 |
24528b0c | 4296 | fi |
698dcdb6 | 4297 | |
24528b0c | 4298 | |
698dcdb6 | 4299 | echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6 |
4222829b | 4300 | echo "configure:4301: checking for --enable-fs_inet" >&5 |
10f2d63a VZ |
4301 | no_cache=0 |
4302 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
4303 | if test "${enable_fs_inet+set}" = set; then | |
4304 | enableval="$enable_fs_inet" | |
698dcdb6 | 4305 | |
10f2d63a VZ |
4306 | if test "$enableval" = yes; then |
4307 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
4308 | else | |
4309 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
4310 | fi | |
698dcdb6 | 4311 | |
10f2d63a | 4312 | else |
698dcdb6 | 4313 | |
10f2d63a VZ |
4314 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` |
4315 | if test "x$LINE" != x ; then | |
4316 | eval "DEFAULT_$LINE" | |
4317 | else | |
4318 | no_cache=1 | |
4319 | fi | |
4320 | ||
4321 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
698dcdb6 VZ |
4322 | |
4323 | fi | |
10f2d63a VZ |
4324 | |
4325 | ||
4326 | eval "$ac_cv_use_fs_inet" | |
4327 | if test "$no_cache" != 1; then | |
4328 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
4329 | fi | |
4330 | ||
4331 | if test "$wxUSE_FS_INET" = yes; then | |
698dcdb6 | 4332 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4333 | else |
698dcdb6 | 4334 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4335 | fi |
698dcdb6 | 4336 | |
10f2d63a | 4337 | |
698dcdb6 | 4338 | echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6 |
4222829b | 4339 | echo "configure:4340: checking for --enable-fs_zip" >&5 |
10f2d63a VZ |
4340 | no_cache=0 |
4341 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
4342 | if test "${enable_fs_zip+set}" = set; then | |
4343 | enableval="$enable_fs_zip" | |
698dcdb6 | 4344 | |
10f2d63a VZ |
4345 | if test "$enableval" = yes; then |
4346 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
4347 | else | |
4348 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
4349 | fi | |
698dcdb6 | 4350 | |
10f2d63a | 4351 | else |
698dcdb6 | 4352 | |
10f2d63a VZ |
4353 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` |
4354 | if test "x$LINE" != x ; then | |
4355 | eval "DEFAULT_$LINE" | |
4356 | else | |
4357 | no_cache=1 | |
4358 | fi | |
4359 | ||
4360 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
698dcdb6 VZ |
4361 | |
4362 | fi | |
10f2d63a VZ |
4363 | |
4364 | ||
4365 | eval "$ac_cv_use_fs_zip" | |
4366 | if test "$no_cache" != 1; then | |
4367 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
4368 | fi | |
4369 | ||
4370 | if test "$wxUSE_FS_ZIP" = yes; then | |
698dcdb6 | 4371 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4372 | else |
698dcdb6 | 4373 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4374 | fi |
698dcdb6 | 4375 | |
10f2d63a | 4376 | |
698dcdb6 | 4377 | echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6 |
4222829b | 4378 | echo "configure:4379: checking for --enable-zipstream" >&5 |
10f2d63a VZ |
4379 | no_cache=0 |
4380 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
4381 | if test "${enable_zipstream+set}" = set; then | |
4382 | enableval="$enable_zipstream" | |
698dcdb6 | 4383 | |
10f2d63a VZ |
4384 | if test "$enableval" = yes; then |
4385 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
4386 | else | |
4387 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
4388 | fi | |
698dcdb6 | 4389 | |
10f2d63a | 4390 | else |
698dcdb6 | 4391 | |
10f2d63a VZ |
4392 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` |
4393 | if test "x$LINE" != x ; then | |
4394 | eval "DEFAULT_$LINE" | |
4395 | else | |
4396 | no_cache=1 | |
4397 | fi | |
4398 | ||
4399 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
698dcdb6 VZ |
4400 | |
4401 | fi | |
10f2d63a VZ |
4402 | |
4403 | ||
4404 | eval "$ac_cv_use_zipstream" | |
4405 | if test "$no_cache" != 1; then | |
4406 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
4407 | fi | |
4408 | ||
4409 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
698dcdb6 | 4410 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4411 | else |
698dcdb6 | 4412 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4413 | fi |
698dcdb6 | 4414 | |
10f2d63a | 4415 | |
698dcdb6 VZ |
4416 | |
4417 | echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6 | |
4222829b | 4418 | echo "configure:4419: checking for --enable-catch_segvs" >&5 |
eb4efbdc VZ |
4419 | no_cache=0 |
4420 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
4421 | if test "${enable_catch_segvs+set}" = set; then | |
4422 | enableval="$enable_catch_segvs" | |
698dcdb6 | 4423 | |
eb4efbdc VZ |
4424 | if test "$enableval" = yes; then |
4425 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
4426 | else | |
4427 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
4428 | fi | |
698dcdb6 | 4429 | |
eb4efbdc | 4430 | else |
698dcdb6 | 4431 | |
eb4efbdc VZ |
4432 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
4433 | if test "x$LINE" != x ; then | |
4434 | eval "DEFAULT_$LINE" | |
4435 | else | |
4436 | no_cache=1 | |
4437 | fi | |
4438 | ||
4439 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
698dcdb6 VZ |
4440 | |
4441 | fi | |
eb4efbdc VZ |
4442 | |
4443 | ||
4444 | eval "$ac_cv_use_catch_segvs" | |
4445 | if test "$no_cache" != 1; then | |
4446 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
4447 | fi | |
4448 | ||
4449 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
698dcdb6 | 4450 | echo "$ac_t""yes" 1>&6 |
eb4efbdc | 4451 | else |
698dcdb6 | 4452 | echo "$ac_t""no" 1>&6 |
eb4efbdc | 4453 | fi |
698dcdb6 | 4454 | |
eb4efbdc | 4455 | |
698dcdb6 | 4456 | echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6 |
4222829b | 4457 | echo "configure:4458: checking for --enable-snglinst" >&5 |
4f3c5f06 VZ |
4458 | no_cache=0 |
4459 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
4460 | if test "${enable_snglinst+set}" = set; then | |
4461 | enableval="$enable_snglinst" | |
698dcdb6 | 4462 | |
4f3c5f06 VZ |
4463 | if test "$enableval" = yes; then |
4464 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
4465 | else | |
4466 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
4467 | fi | |
698dcdb6 | 4468 | |
4f3c5f06 | 4469 | else |
698dcdb6 | 4470 | |
4f3c5f06 VZ |
4471 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` |
4472 | if test "x$LINE" != x ; then | |
4473 | eval "DEFAULT_$LINE" | |
4474 | else | |
4475 | no_cache=1 | |
4476 | fi | |
4477 | ||
4478 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
698dcdb6 VZ |
4479 | |
4480 | fi | |
4f3c5f06 VZ |
4481 | |
4482 | ||
4483 | eval "$ac_cv_use_snglinst" | |
4484 | if test "$no_cache" != 1; then | |
4485 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
4486 | fi | |
4487 | ||
4488 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
698dcdb6 | 4489 | echo "$ac_t""yes" 1>&6 |
4f3c5f06 | 4490 | else |
698dcdb6 | 4491 | echo "$ac_t""no" 1>&6 |
4f3c5f06 | 4492 | fi |
698dcdb6 VZ |
4493 | |
4494 | ||
eb4efbdc | 4495 | |
1e6feb95 | 4496 | echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6 |
4222829b | 4497 | echo "configure:4498: checking for --enable-mimetype" >&5 |
1e6feb95 VZ |
4498 | no_cache=0 |
4499 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
4500 | if test "${enable_mimetype+set}" = set; then | |
4501 | enableval="$enable_mimetype" | |
4502 | ||
4503 | if test "$enableval" = yes; then | |
4504 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
4505 | else | |
4506 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
4507 | fi | |
4508 | ||
4509 | else | |
4510 | ||
4511 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
4512 | if test "x$LINE" != x ; then | |
4513 | eval "DEFAULT_$LINE" | |
4514 | else | |
4515 | no_cache=1 | |
4516 | fi | |
4517 | ||
4518 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
4519 | ||
4520 | fi | |
4521 | ||
4522 | ||
4523 | eval "$ac_cv_use_mimetype" | |
4524 | if test "$no_cache" != 1; then | |
4525 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
4526 | fi | |
4527 | ||
4528 | if test "$wxUSE_MIMETYPE" = yes; then | |
4529 | echo "$ac_t""yes" 1>&6 | |
4530 | else | |
4531 | echo "$ac_t""no" 1>&6 | |
4532 | fi | |
4533 | ||
4534 | ||
3e44f09d | 4535 | echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6 |
4222829b | 4536 | echo "configure:4537: checking for --enable-system_options" >&5 |
3e44f09d VZ |
4537 | no_cache=0 |
4538 | # Check whether --enable-system_options or --disable-system_options was given. | |
4539 | if test "${enable_system_options+set}" = set; then | |
4540 | enableval="$enable_system_options" | |
4541 | ||
4542 | if test "$enableval" = yes; then | |
4543 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
4544 | else | |
4545 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
4546 | fi | |
4547 | ||
4548 | else | |
4549 | ||
4550 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` | |
4551 | if test "x$LINE" != x ; then | |
4552 | eval "DEFAULT_$LINE" | |
4553 | else | |
4554 | no_cache=1 | |
4555 | fi | |
4556 | ||
4557 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
4558 | ||
4559 | fi | |
4560 | ||
4561 | ||
4562 | eval "$ac_cv_use_system_options" | |
4563 | if test "$no_cache" != 1; then | |
4564 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
4565 | fi | |
4566 | ||
4567 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
4568 | echo "$ac_t""yes" 1>&6 | |
4569 | else | |
4570 | echo "$ac_t""no" 1>&6 | |
4571 | fi | |
4572 | ||
4573 | ||
1e6feb95 | 4574 | |
4cdb0ab0 | 4575 | echo $ac_n "checking for --enable-url""... $ac_c" 1>&6 |
4222829b | 4576 | echo "configure:4577: checking for --enable-url" >&5 |
4cdb0ab0 VS |
4577 | no_cache=0 |
4578 | # Check whether --enable-url or --disable-url was given. | |
4579 | if test "${enable_url+set}" = set; then | |
4580 | enableval="$enable_url" | |
4581 | ||
4582 | if test "$enableval" = yes; then | |
4583 | ac_cv_use_url='wxUSE_URL=yes' | |
4584 | else | |
4585 | ac_cv_use_url='wxUSE_URL=no' | |
4586 | fi | |
4587 | ||
4588 | else | |
4589 | ||
4590 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` | |
4591 | if test "x$LINE" != x ; then | |
4592 | eval "DEFAULT_$LINE" | |
4593 | else | |
4594 | no_cache=1 | |
4595 | fi | |
4596 | ||
4597 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
4598 | ||
4599 | fi | |
4600 | ||
4601 | ||
4602 | eval "$ac_cv_use_url" | |
4603 | if test "$no_cache" != 1; then | |
4604 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
4605 | fi | |
4606 | ||
4607 | if test "$wxUSE_URL" = yes; then | |
4608 | echo "$ac_t""yes" 1>&6 | |
4609 | else | |
4610 | echo "$ac_t""no" 1>&6 | |
4611 | fi | |
4612 | ||
4613 | ||
4614 | echo $ac_n "checking for --enable-protocol""... $ac_c" 1>&6 | |
4222829b | 4615 | echo "configure:4616: checking for --enable-protocol" >&5 |
4cdb0ab0 VS |
4616 | no_cache=0 |
4617 | # Check whether --enable-protocol or --disable-protocol was given. | |
4618 | if test "${enable_protocol+set}" = set; then | |
4619 | enableval="$enable_protocol" | |
4620 | ||
4621 | if test "$enableval" = yes; then | |
4622 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
4623 | else | |
4624 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
4625 | fi | |
4626 | ||
4627 | else | |
4628 | ||
4629 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
4630 | if test "x$LINE" != x ; then | |
4631 | eval "DEFAULT_$LINE" | |
4632 | else | |
4633 | no_cache=1 | |
4634 | fi | |
4635 | ||
4636 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
4637 | ||
4638 | fi | |
4639 | ||
4640 | ||
4641 | eval "$ac_cv_use_protocol" | |
4642 | if test "$no_cache" != 1; then | |
4643 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
4644 | fi | |
4645 | ||
4646 | if test "$wxUSE_PROTOCOL" = yes; then | |
4647 | echo "$ac_t""yes" 1>&6 | |
4648 | else | |
4649 | echo "$ac_t""no" 1>&6 | |
4650 | fi | |
4651 | ||
4652 | ||
4653 | echo $ac_n "checking for --enable-protocol_http""... $ac_c" 1>&6 | |
4222829b | 4654 | echo "configure:4655: checking for --enable-protocol_http" >&5 |
4cdb0ab0 VS |
4655 | no_cache=0 |
4656 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
4657 | if test "${enable_protocol_http+set}" = set; then | |
4658 | enableval="$enable_protocol_http" | |
4659 | ||
4660 | if test "$enableval" = yes; then | |
4661 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
4662 | else | |
4663 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
4664 | fi | |
4665 | ||
4666 | else | |
4667 | ||
4668 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
4669 | if test "x$LINE" != x ; then | |
4670 | eval "DEFAULT_$LINE" | |
4671 | else | |
4672 | no_cache=1 | |
4673 | fi | |
4674 | ||
4675 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
4676 | ||
4677 | fi | |
4678 | ||
4679 | ||
4680 | eval "$ac_cv_use_protocol_http" | |
4681 | if test "$no_cache" != 1; then | |
4682 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
4683 | fi | |
4684 | ||
4685 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
4686 | echo "$ac_t""yes" 1>&6 | |
4687 | else | |
4688 | echo "$ac_t""no" 1>&6 | |
4689 | fi | |
4690 | ||
4691 | ||
4692 | echo $ac_n "checking for --enable-protocol_ftp""... $ac_c" 1>&6 | |
4222829b | 4693 | echo "configure:4694: checking for --enable-protocol_ftp" >&5 |
4cdb0ab0 VS |
4694 | no_cache=0 |
4695 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
4696 | if test "${enable_protocol_ftp+set}" = set; then | |
4697 | enableval="$enable_protocol_ftp" | |
4698 | ||
4699 | if test "$enableval" = yes; then | |
4700 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4701 | else | |
4702 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
4703 | fi | |
4704 | ||
4705 | else | |
4706 | ||
4707 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
4708 | if test "x$LINE" != x ; then | |
4709 | eval "DEFAULT_$LINE" | |
4710 | else | |
4711 | no_cache=1 | |
4712 | fi | |
4713 | ||
4714 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
4715 | ||
4716 | fi | |
4717 | ||
4718 | ||
4719 | eval "$ac_cv_use_protocol_ftp" | |
4720 | if test "$no_cache" != 1; then | |
4721 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
4722 | fi | |
4723 | ||
4724 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
4725 | echo "$ac_t""yes" 1>&6 | |
4726 | else | |
4727 | echo "$ac_t""no" 1>&6 | |
4728 | fi | |
4729 | ||
4730 | ||
4731 | echo $ac_n "checking for --enable-protocol_file""... $ac_c" 1>&6 | |
4222829b | 4732 | echo "configure:4733: checking for --enable-protocol_file" >&5 |
4cdb0ab0 VS |
4733 | no_cache=0 |
4734 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
4735 | if test "${enable_protocol_file+set}" = set; then | |
4736 | enableval="$enable_protocol_file" | |
4737 | ||
4738 | if test "$enableval" = yes; then | |
4739 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
4740 | else | |
4741 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
4742 | fi | |
4743 | ||
4744 | else | |
4745 | ||
4746 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
4747 | if test "x$LINE" != x ; then | |
4748 | eval "DEFAULT_$LINE" | |
4749 | else | |
4750 | no_cache=1 | |
4751 | fi | |
4752 | ||
4753 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
4754 | ||
4755 | fi | |
4756 | ||
4757 | ||
4758 | eval "$ac_cv_use_protocol_file" | |
4759 | if test "$no_cache" != 1; then | |
4760 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
4761 | fi | |
4762 | ||
4763 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
4764 | echo "$ac_t""yes" 1>&6 | |
4765 | else | |
4766 | echo "$ac_t""no" 1>&6 | |
4767 | fi | |
4768 | ||
4769 | ||
4770 | ||
4771 | ||
698dcdb6 VZ |
4772 | |
4773 | echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6 | |
4222829b | 4774 | echo "configure:4775: checking for --enable-threads" >&5 |
10f2d63a VZ |
4775 | no_cache=0 |
4776 | # Check whether --enable-threads or --disable-threads was given. | |
4777 | if test "${enable_threads+set}" = set; then | |
4778 | enableval="$enable_threads" | |
698dcdb6 | 4779 | |
10f2d63a VZ |
4780 | if test "$enableval" = yes; then |
4781 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
4782 | else | |
4783 | ac_cv_use_threads='wxUSE_THREADS=no' | |
4784 | fi | |
698dcdb6 | 4785 | |
10f2d63a | 4786 | else |
698dcdb6 | 4787 | |
10f2d63a VZ |
4788 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` |
4789 | if test "x$LINE" != x ; then | |
4790 | eval "DEFAULT_$LINE" | |
4791 | else | |
4792 | no_cache=1 | |
4793 | fi | |
4794 | ||
4795 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
698dcdb6 VZ |
4796 | |
4797 | fi | |
10f2d63a VZ |
4798 | |
4799 | ||
4800 | eval "$ac_cv_use_threads" | |
4801 | if test "$no_cache" != 1; then | |
4802 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
4803 | fi | |
4804 | ||
4805 | if test "$wxUSE_THREADS" = yes; then | |
698dcdb6 | 4806 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4807 | else |
698dcdb6 | 4808 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4809 | fi |
698dcdb6 | 4810 | |
10f2d63a | 4811 | |
b12915c1 VZ |
4812 | if test "$wxUSE_GUI" = "yes"; then |
4813 | ||
698dcdb6 VZ |
4814 | |
4815 | ||
4816 | echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6 | |
4222829b | 4817 | echo "configure:4818: checking for --enable-docview" >&5 |
10f2d63a VZ |
4818 | no_cache=0 |
4819 | # Check whether --enable-docview or --disable-docview was given. | |
4820 | if test "${enable_docview+set}" = set; then | |
4821 | enableval="$enable_docview" | |
698dcdb6 | 4822 | |
10f2d63a VZ |
4823 | if test "$enableval" = yes; then |
4824 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
4825 | else | |
4826 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
4827 | fi | |
698dcdb6 | 4828 | |
10f2d63a | 4829 | else |
698dcdb6 | 4830 | |
10f2d63a VZ |
4831 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` |
4832 | if test "x$LINE" != x ; then | |
4833 | eval "DEFAULT_$LINE" | |
4834 | else | |
4835 | no_cache=1 | |
4836 | fi | |
4837 | ||
4838 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
698dcdb6 VZ |
4839 | |
4840 | fi | |
10f2d63a VZ |
4841 | |
4842 | ||
4843 | eval "$ac_cv_use_docview" | |
4844 | if test "$no_cache" != 1; then | |
4845 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
4846 | fi | |
4847 | ||
4848 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
698dcdb6 | 4849 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4850 | else |
698dcdb6 | 4851 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4852 | fi |
698dcdb6 | 4853 | |
10f2d63a | 4854 | |
698dcdb6 | 4855 | echo $ac_n "checking for --enable-help""... $ac_c" 1>&6 |
4222829b | 4856 | echo "configure:4857: checking for --enable-help" >&5 |
10f2d63a VZ |
4857 | no_cache=0 |
4858 | # Check whether --enable-help or --disable-help was given. | |
4859 | if test "${enable_help+set}" = set; then | |
4860 | enableval="$enable_help" | |
698dcdb6 | 4861 | |
10f2d63a VZ |
4862 | if test "$enableval" = yes; then |
4863 | ac_cv_use_help='wxUSE_HELP=yes' | |
4864 | else | |
4865 | ac_cv_use_help='wxUSE_HELP=no' | |
4866 | fi | |
698dcdb6 | 4867 | |
10f2d63a | 4868 | else |
698dcdb6 | 4869 | |
10f2d63a VZ |
4870 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` |
4871 | if test "x$LINE" != x ; then | |
4872 | eval "DEFAULT_$LINE" | |
4873 | else | |
4874 | no_cache=1 | |
4875 | fi | |
4876 | ||
4877 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
698dcdb6 VZ |
4878 | |
4879 | fi | |
10f2d63a VZ |
4880 | |
4881 | ||
4882 | eval "$ac_cv_use_help" | |
4883 | if test "$no_cache" != 1; then | |
4884 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
4885 | fi | |
4886 | ||
4887 | if test "$wxUSE_HELP" = yes; then | |
698dcdb6 | 4888 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4889 | else |
698dcdb6 | 4890 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4891 | fi |
698dcdb6 | 4892 | |
10f2d63a | 4893 | |
29fd3c0c | 4894 | echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6 |
4222829b | 4895 | echo "configure:4896: checking for --enable-mshtmlhelp" >&5 |
29fd3c0c VS |
4896 | no_cache=0 |
4897 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
4898 | if test "${enable_mshtmlhelp+set}" = set; then | |
4899 | enableval="$enable_mshtmlhelp" | |
4900 | ||
4901 | if test "$enableval" = yes; then | |
4902 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
4903 | else | |
4904 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
4905 | fi | |
4906 | ||
4907 | else | |
4908 | ||
4909 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` | |
4910 | if test "x$LINE" != x ; then | |
4911 | eval "DEFAULT_$LINE" | |
4912 | else | |
4913 | no_cache=1 | |
4914 | fi | |
4915 | ||
4916 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
4917 | ||
4918 | fi | |
4919 | ||
4920 | ||
4921 | eval "$ac_cv_use_mshtmlhelp" | |
4922 | if test "$no_cache" != 1; then | |
4923 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
4924 | fi | |
4925 | ||
4926 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
4927 | echo "$ac_t""yes" 1>&6 | |
4928 | else | |
4929 | echo "$ac_t""no" 1>&6 | |
4930 | fi | |
4931 | ||
4932 | ||
3379ed37 | 4933 | echo $ac_n "checking for --enable-html""... $ac_c" 1>&6 |
4222829b | 4934 | echo "configure:4935: checking for --enable-html" >&5 |
3379ed37 VZ |
4935 | no_cache=0 |
4936 | # Check whether --enable-html or --disable-html was given. | |
4937 | if test "${enable_html+set}" = set; then | |
4938 | enableval="$enable_html" | |
4939 | ||
4940 | if test "$enableval" = yes; then | |
4941 | ac_cv_use_html='wxUSE_HTML=yes' | |
4942 | else | |
4943 | ac_cv_use_html='wxUSE_HTML=no' | |
4944 | fi | |
4945 | ||
4946 | else | |
4947 | ||
4948 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
4949 | if test "x$LINE" != x ; then | |
4950 | eval "DEFAULT_$LINE" | |
4951 | else | |
4952 | no_cache=1 | |
4953 | fi | |
4954 | ||
4955 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
4956 | ||
4957 | fi | |
4958 | ||
4959 | ||
4960 | eval "$ac_cv_use_html" | |
4961 | if test "$no_cache" != 1; then | |
4962 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
4963 | fi | |
4964 | ||
4965 | if test "$wxUSE_HTML" = yes; then | |
4966 | echo "$ac_t""yes" 1>&6 | |
4967 | else | |
4968 | echo "$ac_t""no" 1>&6 | |
4969 | fi | |
4970 | ||
4971 | ||
4972 | echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6 | |
4222829b | 4973 | echo "configure:4974: checking for --enable-htmlhelp" >&5 |
3379ed37 VZ |
4974 | no_cache=0 |
4975 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
4976 | if test "${enable_htmlhelp+set}" = set; then | |
4977 | enableval="$enable_htmlhelp" | |
4978 | ||
4979 | if test "$enableval" = yes; then | |
4980 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
4981 | else | |
4982 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
4983 | fi | |
4984 | ||
4985 | else | |
4986 | ||
4987 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` | |
4988 | if test "x$LINE" != x ; then | |
4989 | eval "DEFAULT_$LINE" | |
4990 | else | |
4991 | no_cache=1 | |
4992 | fi | |
4993 | ||
4994 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
4995 | ||
4996 | fi | |
4997 | ||
4998 | ||
4999 | eval "$ac_cv_use_htmlhelp" | |
5000 | if test "$no_cache" != 1; then | |
5001 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
5002 | fi | |
5003 | ||
5004 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
5005 | echo "$ac_t""yes" 1>&6 | |
5006 | else | |
5007 | echo "$ac_t""no" 1>&6 | |
5008 | fi | |
5009 | ||
5010 | ||
698dcdb6 | 5011 | echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6 |
4222829b | 5012 | echo "configure:5013: checking for --enable-constraints" >&5 |
10f2d63a VZ |
5013 | no_cache=0 |
5014 | # Check whether --enable-constraints or --disable-constraints was given. | |
5015 | if test "${enable_constraints+set}" = set; then | |
5016 | enableval="$enable_constraints" | |
698dcdb6 | 5017 | |
10f2d63a VZ |
5018 | if test "$enableval" = yes; then |
5019 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
5020 | else | |
5021 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
5022 | fi | |
698dcdb6 | 5023 | |
10f2d63a | 5024 | else |
698dcdb6 | 5025 | |
10f2d63a VZ |
5026 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` |
5027 | if test "x$LINE" != x ; then | |
5028 | eval "DEFAULT_$LINE" | |
5029 | else | |
5030 | no_cache=1 | |
5031 | fi | |
5032 | ||
5033 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
698dcdb6 VZ |
5034 | |
5035 | fi | |
10f2d63a VZ |
5036 | |
5037 | ||
5038 | eval "$ac_cv_use_constraints" | |
5039 | if test "$no_cache" != 1; then | |
5040 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
5041 | fi | |
5042 | ||
5043 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
698dcdb6 | 5044 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5045 | else |
698dcdb6 | 5046 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5047 | fi |
698dcdb6 | 5048 | |
10f2d63a | 5049 | |
698dcdb6 | 5050 | echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6 |
4222829b | 5051 | echo "configure:5052: checking for --enable-printarch" >&5 |
10f2d63a VZ |
5052 | no_cache=0 |
5053 | # Check whether --enable-printarch or --disable-printarch was given. | |
5054 | if test "${enable_printarch+set}" = set; then | |
5055 | enableval="$enable_printarch" | |
698dcdb6 | 5056 | |
10f2d63a VZ |
5057 | if test "$enableval" = yes; then |
5058 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
5059 | else | |
5060 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
5061 | fi | |
698dcdb6 | 5062 | |
10f2d63a | 5063 | else |
698dcdb6 | 5064 | |
10f2d63a VZ |
5065 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` |
5066 | if test "x$LINE" != x ; then | |
5067 | eval "DEFAULT_$LINE" | |
5068 | else | |
5069 | no_cache=1 | |
5070 | fi | |
5071 | ||
5072 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
698dcdb6 VZ |
5073 | |
5074 | fi | |
10f2d63a VZ |
5075 | |
5076 | ||
5077 | eval "$ac_cv_use_printarch" | |
5078 | if test "$no_cache" != 1; then | |
5079 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
5080 | fi | |
5081 | ||
5082 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
698dcdb6 | 5083 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5084 | else |
698dcdb6 | 5085 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5086 | fi |
698dcdb6 | 5087 | |
10f2d63a | 5088 | |
698dcdb6 | 5089 | echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6 |
4222829b | 5090 | echo "configure:5091: checking for --enable-mdi" >&5 |
10f2d63a VZ |
5091 | no_cache=0 |
5092 | # Check whether --enable-mdi or --disable-mdi was given. | |
5093 | if test "${enable_mdi+set}" = set; then | |
5094 | enableval="$enable_mdi" | |
698dcdb6 | 5095 | |
10f2d63a VZ |
5096 | if test "$enableval" = yes; then |
5097 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
5098 | else | |
5099 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
5100 | fi | |
698dcdb6 | 5101 | |
10f2d63a | 5102 | else |
698dcdb6 | 5103 | |
10f2d63a VZ |
5104 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` |
5105 | if test "x$LINE" != x ; then | |
5106 | eval "DEFAULT_$LINE" | |
5107 | else | |
5108 | no_cache=1 | |
5109 | fi | |
5110 | ||
5111 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
698dcdb6 VZ |
5112 | |
5113 | fi | |
10f2d63a VZ |
5114 | |
5115 | ||
5116 | eval "$ac_cv_use_mdi" | |
5117 | if test "$no_cache" != 1; then | |
5118 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
5119 | fi | |
5120 | ||
5121 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
698dcdb6 | 5122 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5123 | else |
698dcdb6 | 5124 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5125 | fi |
698dcdb6 VZ |
5126 | |
5127 | ||
1e6feb95 | 5128 | echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6 |
4222829b | 5129 | echo "configure:5130: checking for --enable-loggui" >&5 |
1e6feb95 VZ |
5130 | no_cache=0 |
5131 | # Check whether --enable-loggui or --disable-loggui was given. | |
5132 | if test "${enable_loggui+set}" = set; then | |
5133 | enableval="$enable_loggui" | |
5134 | ||
5135 | if test "$enableval" = yes; then | |
5136 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
5137 | else | |
5138 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
5139 | fi | |
5140 | ||
5141 | else | |
5142 | ||
5143 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
5144 | if test "x$LINE" != x ; then | |
5145 | eval "DEFAULT_$LINE" | |
5146 | else | |
5147 | no_cache=1 | |
5148 | fi | |
5149 | ||
5150 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
5151 | ||
5152 | fi | |
5153 | ||
5154 | ||
5155 | eval "$ac_cv_use_loggui" | |
5156 | if test "$no_cache" != 1; then | |
5157 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
5158 | fi | |
5159 | ||
5160 | if test "$wxUSE_LOGGUI" = yes; then | |
5161 | echo "$ac_t""yes" 1>&6 | |
5162 | else | |
5163 | echo "$ac_t""no" 1>&6 | |
5164 | fi | |
5165 | ||
5166 | ||
5167 | echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6 | |
4222829b | 5168 | echo "configure:5169: checking for --enable-logwin" >&5 |
1e6feb95 VZ |
5169 | no_cache=0 |
5170 | # Check whether --enable-logwin or --disable-logwin was given. | |
5171 | if test "${enable_logwin+set}" = set; then | |
5172 | enableval="$enable_logwin" | |
5173 | ||
5174 | if test "$enableval" = yes; then | |
5175 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
5176 | else | |
5177 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
5178 | fi | |
5179 | ||
5180 | else | |
5181 | ||
5182 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` | |
5183 | if test "x$LINE" != x ; then | |
5184 | eval "DEFAULT_$LINE" | |
5185 | else | |
5186 | no_cache=1 | |
5187 | fi | |
5188 | ||
5189 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
5190 | ||
5191 | fi | |
5192 | ||
5193 | ||
5194 | eval "$ac_cv_use_logwin" | |
5195 | if test "$no_cache" != 1; then | |
5196 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
5197 | fi | |
5198 | ||
5199 | if test "$wxUSE_LOGWINDOW" = yes; then | |
5200 | echo "$ac_t""yes" 1>&6 | |
5201 | else | |
5202 | echo "$ac_t""no" 1>&6 | |
5203 | fi | |
5204 | ||
5205 | ||
69d27ff7 | 5206 | echo $ac_n "checking for --enable-logdialog""... $ac_c" 1>&6 |
4222829b | 5207 | echo "configure:5208: checking for --enable-logdialog" >&5 |
69d27ff7 MB |
5208 | no_cache=0 |
5209 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
5210 | if test "${enable_logdialog+set}" = set; then | |
5211 | enableval="$enable_logdialog" | |
5212 | ||
5213 | if test "$enableval" = yes; then | |
5214 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
5215 | else | |
5216 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
5217 | fi | |
5218 | ||
5219 | else | |
5220 | ||
5221 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` | |
5222 | if test "x$LINE" != x ; then | |
5223 | eval "DEFAULT_$LINE" | |
5224 | else | |
5225 | no_cache=1 | |
5226 | fi | |
5227 | ||
5228 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
5229 | ||
5230 | fi | |
5231 | ||
5232 | ||
5233 | eval "$ac_cv_use_logdialog" | |
5234 | if test "$no_cache" != 1; then | |
5235 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
5236 | fi | |
5237 | ||
5238 | if test "$wxUSE_LOGDIALOG" = yes; then | |
5239 | echo "$ac_t""yes" 1>&6 | |
5240 | else | |
5241 | echo "$ac_t""no" 1>&6 | |
5242 | fi | |
5243 | ||
5244 | ||
10f2d63a | 5245 | |
698dcdb6 | 5246 | echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6 |
4222829b | 5247 | echo "configure:5248: checking for --enable-postscript" >&5 |
10f2d63a VZ |
5248 | no_cache=0 |
5249 | # Check whether --enable-postscript or --disable-postscript was given. | |
5250 | if test "${enable_postscript+set}" = set; then | |
5251 | enableval="$enable_postscript" | |
698dcdb6 | 5252 | |
10f2d63a VZ |
5253 | if test "$enableval" = yes; then |
5254 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
5255 | else | |
5256 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
5257 | fi | |
698dcdb6 | 5258 | |
10f2d63a | 5259 | else |
698dcdb6 | 5260 | |
10f2d63a VZ |
5261 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` |
5262 | if test "x$LINE" != x ; then | |
5263 | eval "DEFAULT_$LINE" | |
5264 | else | |
5265 | no_cache=1 | |
5266 | fi | |
5267 | ||
5268 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
698dcdb6 VZ |
5269 | |
5270 | fi | |
10f2d63a VZ |
5271 | |
5272 | ||
5273 | eval "$ac_cv_use_postscript" | |
5274 | if test "$no_cache" != 1; then | |
5275 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
5276 | fi | |
5277 | ||
5278 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
698dcdb6 | 5279 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5280 | else |
698dcdb6 | 5281 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5282 | fi |
698dcdb6 VZ |
5283 | |
5284 | ||
5285 | ||
10f2d63a | 5286 | |
1e6feb95 | 5287 | |
698dcdb6 | 5288 | echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6 |
4222829b | 5289 | echo "configure:5290: checking for --enable-prologio" >&5 |
10f2d63a VZ |
5290 | no_cache=0 |
5291 | # Check whether --enable-prologio or --disable-prologio was given. | |
5292 | if test "${enable_prologio+set}" = set; then | |
5293 | enableval="$enable_prologio" | |
698dcdb6 | 5294 | |
10f2d63a VZ |
5295 | if test "$enableval" = yes; then |
5296 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
5297 | else | |
5298 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
5299 | fi | |
698dcdb6 | 5300 | |
10f2d63a | 5301 | else |
698dcdb6 | 5302 | |
10f2d63a VZ |
5303 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` |
5304 | if test "x$LINE" != x ; then | |
5305 | eval "DEFAULT_$LINE" | |
5306 | else | |
5307 | no_cache=1 | |
5308 | fi | |
5309 | ||
5310 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
698dcdb6 VZ |
5311 | |
5312 | fi | |
10f2d63a VZ |
5313 | |
5314 | ||
5315 | eval "$ac_cv_use_prologio" | |
5316 | if test "$no_cache" != 1; then | |
5317 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
5318 | fi | |
5319 | ||
5320 | if test "$wxUSE_PROLOGIO" = yes; then | |
698dcdb6 | 5321 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5322 | else |
698dcdb6 | 5323 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5324 | fi |
698dcdb6 | 5325 | |
10f2d63a | 5326 | |
698dcdb6 | 5327 | echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6 |
4222829b | 5328 | echo "configure:5329: checking for --enable-resources" >&5 |
10f2d63a VZ |
5329 | no_cache=0 |
5330 | # Check whether --enable-resources or --disable-resources was given. | |
5331 | if test "${enable_resources+set}" = set; then | |
5332 | enableval="$enable_resources" | |
698dcdb6 | 5333 | |
10f2d63a VZ |
5334 | if test "$enableval" = yes; then |
5335 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
5336 | else | |
5337 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
5338 | fi | |
698dcdb6 | 5339 | |
10f2d63a | 5340 | else |
698dcdb6 | 5341 | |
10f2d63a VZ |
5342 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` |
5343 | if test "x$LINE" != x ; then | |
5344 | eval "DEFAULT_$LINE" | |
5345 | else | |
5346 | no_cache=1 | |
5347 | fi | |
5348 | ||
5349 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
698dcdb6 VZ |
5350 | |
5351 | fi | |
10f2d63a VZ |
5352 | |
5353 | ||
5354 | eval "$ac_cv_use_resources" | |
5355 | if test "$no_cache" != 1; then | |
5356 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
5357 | fi | |
5358 | ||
5359 | if test "$wxUSE_RESOURCES" = yes; then | |
698dcdb6 | 5360 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5361 | else |
698dcdb6 | 5362 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5363 | fi |
698dcdb6 | 5364 | |
10f2d63a | 5365 | |
698dcdb6 VZ |
5366 | |
5367 | echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6 | |
4222829b | 5368 | echo "configure:5369: checking for --enable-xresources" >&5 |
10f2d63a VZ |
5369 | no_cache=0 |
5370 | # Check whether --enable-xresources or --disable-xresources was given. | |
5371 | if test "${enable_xresources+set}" = set; then | |
5372 | enableval="$enable_xresources" | |
698dcdb6 | 5373 | |
10f2d63a VZ |
5374 | if test "$enableval" = yes; then |
5375 | ac_cv_use_xresources='wxUSE_X_RESOURCES=yes' | |
5376 | else | |
5377 | ac_cv_use_xresources='wxUSE_X_RESOURCES=no' | |
5378 | fi | |
698dcdb6 | 5379 | |
10f2d63a | 5380 | else |
698dcdb6 | 5381 | |
10f2d63a VZ |
5382 | LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}` |
5383 | if test "x$LINE" != x ; then | |
5384 | eval "DEFAULT_$LINE" | |
5385 | else | |
5386 | no_cache=1 | |
5387 | fi | |
5388 | ||
5389 | ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES | |
698dcdb6 VZ |
5390 | |
5391 | fi | |
10f2d63a VZ |
5392 | |
5393 | ||
5394 | eval "$ac_cv_use_xresources" | |
5395 | if test "$no_cache" != 1; then | |
5396 | echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp | |
5397 | fi | |
5398 | ||
5399 | if test "$wxUSE_X_RESOURCES" = yes; then | |
698dcdb6 | 5400 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5401 | else |
698dcdb6 | 5402 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5403 | fi |
698dcdb6 VZ |
5404 | |
5405 | ||
10f2d63a | 5406 | |
698dcdb6 VZ |
5407 | |
5408 | echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6 | |
4222829b | 5409 | echo "configure:5410: checking for --enable-clipboard" >&5 |
10f2d63a VZ |
5410 | no_cache=0 |
5411 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
5412 | if test "${enable_clipboard+set}" = set; then | |
5413 | enableval="$enable_clipboard" | |
698dcdb6 | 5414 | |
10f2d63a VZ |
5415 | if test "$enableval" = yes; then |
5416 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
5417 | else | |
5418 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
5419 | fi | |
698dcdb6 | 5420 | |
10f2d63a | 5421 | else |
698dcdb6 | 5422 | |
10f2d63a VZ |
5423 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` |
5424 | if test "x$LINE" != x ; then | |
5425 | eval "DEFAULT_$LINE" | |
5426 | else | |
5427 | no_cache=1 | |
5428 | fi | |
5429 | ||
5430 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
698dcdb6 VZ |
5431 | |
5432 | fi | |
10f2d63a VZ |
5433 | |
5434 | ||
5435 | eval "$ac_cv_use_clipboard" | |
5436 | if test "$no_cache" != 1; then | |
5437 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
5438 | fi | |
5439 | ||
5440 | if test "$wxUSE_CLIPBOARD" = yes; then | |
698dcdb6 | 5441 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5442 | else |
698dcdb6 | 5443 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5444 | fi |
698dcdb6 | 5445 | |
10f2d63a | 5446 | |
698dcdb6 | 5447 | echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6 |
4222829b | 5448 | echo "configure:5449: checking for --enable-dnd" >&5 |
10f2d63a VZ |
5449 | no_cache=0 |
5450 | # Check whether --enable-dnd or --disable-dnd was given. | |
5451 | if test "${enable_dnd+set}" = set; then | |
5452 | enableval="$enable_dnd" | |
698dcdb6 | 5453 | |
10f2d63a VZ |
5454 | if test "$enableval" = yes; then |
5455 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
5456 | else | |
5457 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
5458 | fi | |
698dcdb6 | 5459 | |
10f2d63a | 5460 | else |
698dcdb6 | 5461 | |
10f2d63a VZ |
5462 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` |
5463 | if test "x$LINE" != x ; then | |
5464 | eval "DEFAULT_$LINE" | |
5465 | else | |
5466 | no_cache=1 | |
5467 | fi | |
5468 | ||
5469 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
698dcdb6 VZ |
5470 | |
5471 | fi | |
10f2d63a VZ |
5472 | |
5473 | ||
5474 | eval "$ac_cv_use_dnd" | |
5475 | if test "$no_cache" != 1; then | |
5476 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
5477 | fi | |
5478 | ||
5479 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
698dcdb6 | 5480 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5481 | else |
698dcdb6 | 5482 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5483 | fi |
698dcdb6 | 5484 | |
10f2d63a | 5485 | |
698dcdb6 | 5486 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
4222829b | 5487 | echo "configure:5488: checking for --enable-metafile" >&5 |
b64f0a5f RL |
5488 | no_cache=0 |
5489 | # Check whether --enable-metafile or --disable-metafile was given. | |
5490 | if test "${enable_metafile+set}" = set; then | |
5491 | enableval="$enable_metafile" | |
698dcdb6 | 5492 | |
b64f0a5f RL |
5493 | if test "$enableval" = yes; then |
5494 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
5495 | else | |
5496 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
5497 | fi | |
698dcdb6 | 5498 | |
b64f0a5f | 5499 | else |
698dcdb6 | 5500 | |
b64f0a5f RL |
5501 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
5502 | if test "x$LINE" != x ; then | |
5503 | eval "DEFAULT_$LINE" | |
5504 | else | |
5505 | no_cache=1 | |
5506 | fi | |
5507 | ||
5508 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
698dcdb6 VZ |
5509 | |
5510 | fi | |
b64f0a5f RL |
5511 | |
5512 | ||
5513 | eval "$ac_cv_use_metafile" | |
5514 | if test "$no_cache" != 1; then | |
5515 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
5516 | fi | |
5517 | ||
5518 | if test "$wxUSE_METAFILE" = yes; then | |
698dcdb6 | 5519 | echo "$ac_t""yes" 1>&6 |
b64f0a5f | 5520 | else |
698dcdb6 | 5521 | echo "$ac_t""no" 1>&6 |
b64f0a5f | 5522 | fi |
698dcdb6 VZ |
5523 | |
5524 | ||
10f2d63a | 5525 | |
24176f2c | 5526 | echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6 |
4222829b | 5527 | echo "configure:5528: checking for --enable-treelayout" >&5 |
10f2d63a | 5528 | no_cache=0 |
24176f2c GD |
5529 | # Check whether --enable-treelayout or --disable-treelayout was given. |
5530 | if test "${enable_treelayout+set}" = set; then | |
5531 | enableval="$enable_treelayout" | |
698dcdb6 | 5532 | |
10f2d63a | 5533 | if test "$enableval" = yes; then |
24176f2c | 5534 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes' |
10f2d63a | 5535 | else |
24176f2c | 5536 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=no' |
10f2d63a | 5537 | fi |
698dcdb6 | 5538 | |
10f2d63a | 5539 | else |
698dcdb6 | 5540 | |
24176f2c | 5541 | LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}` |
10f2d63a VZ |
5542 | if test "x$LINE" != x ; then |
5543 | eval "DEFAULT_$LINE" | |
5544 | else | |
5545 | no_cache=1 | |
5546 | fi | |
5547 | ||
24176f2c | 5548 | ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT |
698dcdb6 VZ |
5549 | |
5550 | fi | |
10f2d63a VZ |
5551 | |
5552 | ||
24176f2c | 5553 | eval "$ac_cv_use_treelayout" |
10f2d63a | 5554 | if test "$no_cache" != 1; then |
24176f2c | 5555 | echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5556 | fi |
5557 | ||
24176f2c | 5558 | if test "$wxUSE_TREELAYOUT" = yes; then |
698dcdb6 | 5559 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5560 | else |
698dcdb6 | 5561 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5562 | fi |
698dcdb6 | 5563 | |
10f2d63a | 5564 | |
698dcdb6 VZ |
5565 | |
5566 | ||
5567 | echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6 | |
4222829b | 5568 | echo "configure:5569: checking for --enable-controls" >&5 |
10f2d63a VZ |
5569 | no_cache=0 |
5570 | # Check whether --enable-controls or --disable-controls was given. | |
5571 | if test "${enable_controls+set}" = set; then | |
5572 | enableval="$enable_controls" | |
698dcdb6 | 5573 | |
10f2d63a VZ |
5574 | if test "$enableval" = yes; then |
5575 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
5576 | else | |
5577 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
5578 | fi | |
698dcdb6 | 5579 | |
10f2d63a | 5580 | else |
698dcdb6 | 5581 | |
10f2d63a VZ |
5582 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` |
5583 | if test "x$LINE" != x ; then | |
5584 | eval "DEFAULT_$LINE" | |
5585 | else | |
5586 | no_cache=1 | |
5587 | fi | |
5588 | ||
5589 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
698dcdb6 VZ |
5590 | |
5591 | fi | |
10f2d63a VZ |
5592 | |
5593 | ||
5594 | eval "$ac_cv_use_controls" | |
5595 | if test "$no_cache" != 1; then | |
5596 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
5597 | fi | |
5598 | ||
5599 | if test "$wxUSE_CONTROLS" = yes; then | |
698dcdb6 | 5600 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5601 | else |
698dcdb6 | 5602 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5603 | fi |
698dcdb6 | 5604 | |
10f2d63a VZ |
5605 | |
5606 | if test "$wxUSE_CONTROLS" = "yes"; then | |
5607 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 VZ |
5608 | DEFAULT_wxUSE_BMPBUTTON=yes |
5609 | DEFAULT_wxUSE_BUTTON=yes | |
5610 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5611 | DEFAULT_wxUSE_CARET=yes |
5612 | DEFAULT_wxUSE_COMBOBOX=yes | |
10f2d63a VZ |
5613 | DEFAULT_wxUSE_CHECKBOX=yes |
5614 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
5615 | DEFAULT_wxUSE_CHOICE=yes | |
5616 | DEFAULT_wxUSE_GAUGE=yes | |
5617 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 5618 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
5619 | DEFAULT_wxUSE_IMAGLIST=yes |
5620 | DEFAULT_wxUSE_LISTBOX=yes | |
5621 | DEFAULT_wxUSE_LISTCTRL=yes | |
5622 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 5623 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
5624 | DEFAULT_wxUSE_RADIOBOX=yes |
5625 | DEFAULT_wxUSE_RADIOBTN=yes | |
5626 | DEFAULT_wxUSE_SASH=yes | |
5627 | DEFAULT_wxUSE_SCROLLBAR=yes | |
5628 | DEFAULT_wxUSE_SLIDER=yes | |
5629 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 5630 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
5631 | DEFAULT_wxUSE_SPLITTER=yes |
5632 | DEFAULT_wxUSE_STATBMP=yes | |
5633 | DEFAULT_wxUSE_STATBOX=yes | |
5634 | DEFAULT_wxUSE_STATLINE=yes | |
5635 | DEFAULT_wxUSE_STATUSBAR=yes | |
5636 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
1db8dc4a | 5637 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 5638 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
5639 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
5640 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
5641 | DEFAULT_wxUSE_TOOLTIPS=yes |
5642 | DEFAULT_wxUSE_TREECTRL=yes | |
9f41d601 | 5643 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 5644 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
5645 | elif test "$wxUSE_CONTROLS" = "no"; then |
5646 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 VZ |
5647 | DEFAULT_wxUSE_BMPBUTTON=no |
5648 | DEFAULT_wxUSE_BUTTON=no | |
5649 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5650 | DEFAULT_wxUSE_CARET=no |
5651 | DEFAULT_wxUSE_COMBOBOX=no | |
10f2d63a VZ |
5652 | DEFAULT_wxUSE_CHECKBOX=no |
5653 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
5654 | DEFAULT_wxUSE_CHOICE=no | |
5655 | DEFAULT_wxUSE_GAUGE=no | |
5656 | DEFAULT_wxUSE_GRID=no | |
5657 | DEFAULT_wxUSE_NEW_GRID=no | |
5658 | DEFAULT_wxUSE_IMAGLIST=no | |
5659 | DEFAULT_wxUSE_LISTBOX=no | |
5660 | DEFAULT_wxUSE_LISTCTRL=no | |
5661 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 5662 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
5663 | DEFAULT_wxUSE_RADIOBOX=no |
5664 | DEFAULT_wxUSE_RADIOBTN=no | |
5665 | DEFAULT_wxUSE_SASH=no | |
5666 | DEFAULT_wxUSE_SCROLLBAR=no | |
5667 | DEFAULT_wxUSE_SLIDER=no | |
5668 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 5669 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
5670 | DEFAULT_wxUSE_SPLITTER=no |
5671 | DEFAULT_wxUSE_STATBMP=no | |
5672 | DEFAULT_wxUSE_STATBOX=no | |
5673 | DEFAULT_wxUSE_STATLINE=no | |
5674 | DEFAULT_wxUSE_STATUSBAR=no | |
5675 | DEFAULT_wxUSE_TAB_DIALOG=no | |
1db8dc4a | 5676 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 5677 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
5678 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
5679 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
5680 | DEFAULT_wxUSE_TOOLTIPS=no |
5681 | DEFAULT_wxUSE_TREECTRL=no | |
9f41d601 | 5682 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 5683 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
5684 | fi |
5685 | ||
698dcdb6 VZ |
5686 | |
5687 | echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6 | |
4222829b | 5688 | echo "configure:5689: checking for --enable-accel" >&5 |
10f2d63a VZ |
5689 | no_cache=0 |
5690 | # Check whether --enable-accel or --disable-accel was given. | |
5691 | if test "${enable_accel+set}" = set; then | |
5692 | enableval="$enable_accel" | |
698dcdb6 | 5693 | |
10f2d63a VZ |
5694 | if test "$enableval" = yes; then |
5695 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
5696 | else | |
5697 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
5698 | fi | |
698dcdb6 | 5699 | |
10f2d63a | 5700 | else |
698dcdb6 | 5701 | |
10f2d63a VZ |
5702 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` |
5703 | if test "x$LINE" != x ; then | |
5704 | eval "DEFAULT_$LINE" | |
5705 | else | |
5706 | no_cache=1 | |
5707 | fi | |
5708 | ||
5709 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
698dcdb6 VZ |
5710 | |
5711 | fi | |
10f2d63a VZ |
5712 | |
5713 | ||
5714 | eval "$ac_cv_use_accel" | |
5715 | if test "$no_cache" != 1; then | |
5716 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
5717 | fi | |
5718 | ||
5719 | if test "$wxUSE_ACCEL" = yes; then | |
698dcdb6 | 5720 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5721 | else |
698dcdb6 | 5722 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5723 | fi |
698dcdb6 | 5724 | |
10f2d63a | 5725 | |
1e6feb95 | 5726 | echo $ac_n "checking for --enable-button""... $ac_c" 1>&6 |
4222829b | 5727 | echo "configure:5728: checking for --enable-button" >&5 |
10f2d63a | 5728 | no_cache=0 |
1e6feb95 VZ |
5729 | # Check whether --enable-button or --disable-button was given. |
5730 | if test "${enable_button+set}" = set; then | |
5731 | enableval="$enable_button" | |
698dcdb6 | 5732 | |
10f2d63a | 5733 | if test "$enableval" = yes; then |
1e6feb95 | 5734 | ac_cv_use_button='wxUSE_BUTTON=yes' |
10f2d63a | 5735 | else |
1e6feb95 | 5736 | ac_cv_use_button='wxUSE_BUTTON=no' |
10f2d63a | 5737 | fi |
698dcdb6 | 5738 | |
10f2d63a | 5739 | else |
698dcdb6 | 5740 | |
1e6feb95 | 5741 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` |
10f2d63a VZ |
5742 | if test "x$LINE" != x ; then |
5743 | eval "DEFAULT_$LINE" | |
5744 | else | |
5745 | no_cache=1 | |
5746 | fi | |
5747 | ||
1e6feb95 | 5748 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON |
698dcdb6 VZ |
5749 | |
5750 | fi | |
10f2d63a VZ |
5751 | |
5752 | ||
1e6feb95 | 5753 | eval "$ac_cv_use_button" |
10f2d63a | 5754 | if test "$no_cache" != 1; then |
1e6feb95 | 5755 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5756 | fi |
5757 | ||
1e6feb95 | 5758 | if test "$wxUSE_BUTTON" = yes; then |
698dcdb6 | 5759 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5760 | else |
698dcdb6 | 5761 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5762 | fi |
698dcdb6 | 5763 | |
10f2d63a | 5764 | |
698dcdb6 | 5765 | echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6 |
4222829b | 5766 | echo "configure:5767: checking for --enable-bmpbutton" >&5 |
10f2d63a VZ |
5767 | no_cache=0 |
5768 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
5769 | if test "${enable_bmpbutton+set}" = set; then | |
5770 | enableval="$enable_bmpbutton" | |
698dcdb6 | 5771 | |
10f2d63a VZ |
5772 | if test "$enableval" = yes; then |
5773 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
5774 | else | |
5775 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
5776 | fi | |
698dcdb6 | 5777 | |
10f2d63a | 5778 | else |
698dcdb6 | 5779 | |
10f2d63a VZ |
5780 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` |
5781 | if test "x$LINE" != x ; then | |
5782 | eval "DEFAULT_$LINE" | |
5783 | else | |
5784 | no_cache=1 | |
5785 | fi | |
5786 | ||
5787 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
698dcdb6 VZ |
5788 | |
5789 | fi | |
10f2d63a VZ |
5790 | |
5791 | ||
5792 | eval "$ac_cv_use_bmpbutton" | |
5793 | if test "$no_cache" != 1; then | |
5794 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
5795 | fi | |
5796 | ||
5797 | if test "$wxUSE_BMPBUTTON" = yes; then | |
698dcdb6 | 5798 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5799 | else |
698dcdb6 | 5800 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5801 | fi |
698dcdb6 | 5802 | |
10f2d63a | 5803 | |
1e6feb95 | 5804 | echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6 |
4222829b | 5805 | echo "configure:5806: checking for --enable-calendar" >&5 |
1e6feb95 VZ |
5806 | no_cache=0 |
5807 | # Check whether --enable-calendar or --disable-calendar was given. | |
5808 | if test "${enable_calendar+set}" = set; then | |
5809 | enableval="$enable_calendar" | |
5810 | ||
5811 | if test "$enableval" = yes; then | |
5812 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
5813 | else | |
5814 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
5815 | fi | |
5816 | ||
5817 | else | |
5818 | ||
5819 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
5820 | if test "x$LINE" != x ; then | |
5821 | eval "DEFAULT_$LINE" | |
5822 | else | |
5823 | no_cache=1 | |
5824 | fi | |
5825 | ||
5826 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
5827 | ||
5828 | fi | |
5829 | ||
5830 | ||
5831 | eval "$ac_cv_use_calendar" | |
5832 | if test "$no_cache" != 1; then | |
5833 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
5834 | fi | |
5835 | ||
5836 | if test "$wxUSE_CALCTRL" = yes; then | |
5837 | echo "$ac_t""yes" 1>&6 | |
5838 | else | |
5839 | echo "$ac_t""no" 1>&6 | |
5840 | fi | |
5841 | ||
5842 | ||
5843 | echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6 | |
4222829b | 5844 | echo "configure:5845: checking for --enable-caret" >&5 |
1e6feb95 VZ |
5845 | no_cache=0 |
5846 | # Check whether --enable-caret or --disable-caret was given. | |
5847 | if test "${enable_caret+set}" = set; then | |
5848 | enableval="$enable_caret" | |
5849 | ||
5850 | if test "$enableval" = yes; then | |
5851 | ac_cv_use_caret='wxUSE_CARET=yes' | |
5852 | else | |
5853 | ac_cv_use_caret='wxUSE_CARET=no' | |
5854 | fi | |
5855 | ||
5856 | else | |
5857 | ||
5858 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
5859 | if test "x$LINE" != x ; then | |
5860 | eval "DEFAULT_$LINE" | |
5861 | else | |
5862 | no_cache=1 | |
5863 | fi | |
5864 | ||
5865 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
5866 | ||
5867 | fi | |
5868 | ||
5869 | ||
5870 | eval "$ac_cv_use_caret" | |
5871 | if test "$no_cache" != 1; then | |
5872 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
5873 | fi | |
5874 | ||
5875 | if test "$wxUSE_CARET" = yes; then | |
5876 | echo "$ac_t""yes" 1>&6 | |
5877 | else | |
5878 | echo "$ac_t""no" 1>&6 | |
5879 | fi | |
5880 | ||
5881 | ||
698dcdb6 | 5882 | echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6 |
4222829b | 5883 | echo "configure:5884: checking for --enable-checkbox" >&5 |
10f2d63a VZ |
5884 | no_cache=0 |
5885 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
5886 | if test "${enable_checkbox+set}" = set; then | |
5887 | enableval="$enable_checkbox" | |
698dcdb6 | 5888 | |
10f2d63a VZ |
5889 | if test "$enableval" = yes; then |
5890 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
5891 | else | |
5892 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
5893 | fi | |
698dcdb6 | 5894 | |
10f2d63a | 5895 | else |
698dcdb6 | 5896 | |
10f2d63a VZ |
5897 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` |
5898 | if test "x$LINE" != x ; then | |
5899 | eval "DEFAULT_$LINE" | |
5900 | else | |
5901 | no_cache=1 | |
5902 | fi | |
5903 | ||
5904 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
698dcdb6 VZ |
5905 | |
5906 | fi | |
10f2d63a VZ |
5907 | |
5908 | ||
5909 | eval "$ac_cv_use_checkbox" | |
5910 | if test "$no_cache" != 1; then | |
5911 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
5912 | fi | |
5913 | ||
5914 | if test "$wxUSE_CHECKBOX" = yes; then | |
698dcdb6 | 5915 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5916 | else |
698dcdb6 | 5917 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5918 | fi |
698dcdb6 | 5919 | |
10f2d63a | 5920 | |
698dcdb6 | 5921 | echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6 |
4222829b | 5922 | echo "configure:5923: checking for --enable-checklst" >&5 |
10f2d63a VZ |
5923 | no_cache=0 |
5924 | # Check whether --enable-checklst or --disable-checklst was given. | |
5925 | if test "${enable_checklst+set}" = set; then | |
5926 | enableval="$enable_checklst" | |
698dcdb6 | 5927 | |
10f2d63a VZ |
5928 | if test "$enableval" = yes; then |
5929 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
5930 | else | |
5931 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
5932 | fi | |
698dcdb6 | 5933 | |
10f2d63a | 5934 | else |
698dcdb6 | 5935 | |
10f2d63a VZ |
5936 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` |
5937 | if test "x$LINE" != x ; then | |
5938 | eval "DEFAULT_$LINE" | |
5939 | else | |
5940 | no_cache=1 | |
5941 | fi | |
5942 | ||
5943 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
698dcdb6 VZ |
5944 | |
5945 | fi | |
10f2d63a VZ |
5946 | |
5947 | ||
5948 | eval "$ac_cv_use_checklst" | |
5949 | if test "$no_cache" != 1; then | |
5950 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
5951 | fi | |
5952 | ||
5953 | if test "$wxUSE_CHECKLST" = yes; then | |
698dcdb6 | 5954 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5955 | else |
698dcdb6 | 5956 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5957 | fi |
698dcdb6 | 5958 | |
10f2d63a | 5959 | |
698dcdb6 | 5960 | echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6 |
4222829b | 5961 | echo "configure:5962: checking for --enable-choice" >&5 |
10f2d63a VZ |
5962 | no_cache=0 |
5963 | # Check whether --enable-choice or --disable-choice was given. | |
5964 | if test "${enable_choice+set}" = set; then | |
5965 | enableval="$enable_choice" | |
698dcdb6 | 5966 | |
10f2d63a VZ |
5967 | if test "$enableval" = yes; then |
5968 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
5969 | else | |
5970 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
5971 | fi | |
698dcdb6 | 5972 | |
10f2d63a | 5973 | else |
698dcdb6 | 5974 | |
10f2d63a VZ |
5975 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` |
5976 | if test "x$LINE" != x ; then | |
5977 | eval "DEFAULT_$LINE" | |
5978 | else | |
5979 | no_cache=1 | |
5980 | fi | |
5981 | ||
5982 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
698dcdb6 VZ |
5983 | |
5984 | fi | |
10f2d63a VZ |
5985 | |
5986 | ||
5987 | eval "$ac_cv_use_choice" | |
5988 | if test "$no_cache" != 1; then | |
5989 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
5990 | fi | |
5991 | ||
5992 | if test "$wxUSE_CHOICE" = yes; then | |
698dcdb6 | 5993 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5994 | else |
698dcdb6 | 5995 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5996 | fi |
698dcdb6 | 5997 | |
10f2d63a | 5998 | |
698dcdb6 | 5999 | echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6 |
4222829b | 6000 | echo "configure:6001: checking for --enable-combobox" >&5 |
10f2d63a VZ |
6001 | no_cache=0 |
6002 | # Check whether --enable-combobox or --disable-combobox was given. | |
6003 | if test "${enable_combobox+set}" = set; then | |
6004 | enableval="$enable_combobox" | |
698dcdb6 | 6005 | |
10f2d63a VZ |
6006 | if test "$enableval" = yes; then |
6007 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
6008 | else | |
6009 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
6010 | fi | |
698dcdb6 | 6011 | |
10f2d63a | 6012 | else |
698dcdb6 | 6013 | |
10f2d63a VZ |
6014 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` |
6015 | if test "x$LINE" != x ; then | |
6016 | eval "DEFAULT_$LINE" | |
6017 | else | |
6018 | no_cache=1 | |
6019 | fi | |
6020 | ||
6021 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
698dcdb6 VZ |
6022 | |
6023 | fi | |
10f2d63a VZ |
6024 | |
6025 | ||
6026 | eval "$ac_cv_use_combobox" | |
6027 | if test "$no_cache" != 1; then | |
6028 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
6029 | fi | |
6030 | ||
6031 | if test "$wxUSE_COMBOBOX" = yes; then | |
698dcdb6 | 6032 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6033 | else |
698dcdb6 | 6034 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6035 | fi |
698dcdb6 | 6036 | |
10f2d63a | 6037 | |
698dcdb6 | 6038 | echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6 |
4222829b | 6039 | echo "configure:6040: checking for --enable-gauge" >&5 |
10f2d63a VZ |
6040 | no_cache=0 |
6041 | # Check whether --enable-gauge or --disable-gauge was given. | |
6042 | if test "${enable_gauge+set}" = set; then | |
6043 | enableval="$enable_gauge" | |
698dcdb6 | 6044 | |
10f2d63a VZ |
6045 | if test "$enableval" = yes; then |
6046 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
6047 | else | |
6048 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
6049 | fi | |
698dcdb6 | 6050 | |
10f2d63a | 6051 | else |
698dcdb6 | 6052 | |
10f2d63a VZ |
6053 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` |
6054 | if test "x$LINE" != x ; then | |
6055 | eval "DEFAULT_$LINE" | |
6056 | else | |
6057 | no_cache=1 | |
6058 | fi | |
6059 | ||
6060 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
698dcdb6 VZ |
6061 | |
6062 | fi | |
10f2d63a VZ |
6063 | |
6064 | ||
6065 | eval "$ac_cv_use_gauge" | |
6066 | if test "$no_cache" != 1; then | |
6067 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
6068 | fi | |
6069 | ||
6070 | if test "$wxUSE_GAUGE" = yes; then | |
698dcdb6 | 6071 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6072 | else |
698dcdb6 | 6073 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6074 | fi |
698dcdb6 | 6075 | |
10f2d63a | 6076 | |
698dcdb6 | 6077 | echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6 |
4222829b | 6078 | echo "configure:6079: checking for --enable-grid" >&5 |
10f2d63a VZ |
6079 | no_cache=0 |
6080 | # Check whether --enable-grid or --disable-grid was given. | |
6081 | if test "${enable_grid+set}" = set; then | |
6082 | enableval="$enable_grid" | |
698dcdb6 | 6083 | |
10f2d63a VZ |
6084 | if test "$enableval" = yes; then |
6085 | ac_cv_use_grid='wxUSE_GRID=yes' | |
6086 | else | |
6087 | ac_cv_use_grid='wxUSE_GRID=no' | |
6088 | fi | |
698dcdb6 | 6089 | |
10f2d63a | 6090 | else |
698dcdb6 | 6091 | |
10f2d63a VZ |
6092 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` |
6093 | if test "x$LINE" != x ; then | |
6094 | eval "DEFAULT_$LINE" | |
6095 | else | |
6096 | no_cache=1 | |
6097 | fi | |
6098 | ||
6099 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
698dcdb6 VZ |
6100 | |
6101 | fi | |
10f2d63a VZ |
6102 | |
6103 | ||
6104 | eval "$ac_cv_use_grid" | |
6105 | if test "$no_cache" != 1; then | |
6106 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
6107 | fi | |
6108 | ||
6109 | if test "$wxUSE_GRID" = yes; then | |
698dcdb6 | 6110 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6111 | else |
698dcdb6 | 6112 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6113 | fi |
698dcdb6 | 6114 | |
10f2d63a | 6115 | |
698dcdb6 | 6116 | echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6 |
4222829b | 6117 | echo "configure:6118: checking for --enable-newgrid" >&5 |
10f2d63a VZ |
6118 | no_cache=0 |
6119 | # Check whether --enable-newgrid or --disable-newgrid was given. | |
6120 | if test "${enable_newgrid+set}" = set; then | |
6121 | enableval="$enable_newgrid" | |
698dcdb6 | 6122 | |
10f2d63a VZ |
6123 | if test "$enableval" = yes; then |
6124 | ac_cv_use_newgrid='wxUSE_NEW_GRID=yes' | |
6125 | else | |
6126 | ac_cv_use_newgrid='wxUSE_NEW_GRID=no' | |
6127 | fi | |
698dcdb6 | 6128 | |
10f2d63a | 6129 | else |
698dcdb6 | 6130 | |
10f2d63a VZ |
6131 | LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}` |
6132 | if test "x$LINE" != x ; then | |
6133 | eval "DEFAULT_$LINE" | |
6134 | else | |
6135 | no_cache=1 | |
6136 | fi | |
6137 | ||
6138 | ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID | |
698dcdb6 VZ |
6139 | |
6140 | fi | |
10f2d63a VZ |
6141 | |
6142 | ||
6143 | eval "$ac_cv_use_newgrid" | |
6144 | if test "$no_cache" != 1; then | |
6145 | echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp | |
6146 | fi | |
6147 | ||
6148 | if test "$wxUSE_NEW_GRID" = yes; then | |
698dcdb6 | 6149 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6150 | else |
698dcdb6 | 6151 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6152 | fi |
698dcdb6 | 6153 | |
10f2d63a | 6154 | |
698dcdb6 | 6155 | echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6 |
4222829b | 6156 | echo "configure:6157: checking for --enable-imaglist" >&5 |
10f2d63a VZ |
6157 | no_cache=0 |
6158 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
6159 | if test "${enable_imaglist+set}" = set; then | |
6160 | enableval="$enable_imaglist" | |
698dcdb6 | 6161 | |
10f2d63a VZ |
6162 | if test "$enableval" = yes; then |
6163 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
6164 | else | |
6165 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
6166 | fi | |
698dcdb6 | 6167 | |
10f2d63a | 6168 | else |
698dcdb6 | 6169 | |
10f2d63a VZ |
6170 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` |
6171 | if test "x$LINE" != x ; then | |
6172 | eval "DEFAULT_$LINE" | |
6173 | else | |
6174 | no_cache=1 | |
6175 | fi | |
6176 | ||
6177 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
698dcdb6 VZ |
6178 | |
6179 | fi | |
10f2d63a VZ |
6180 | |
6181 | ||
6182 | eval "$ac_cv_use_imaglist" | |
6183 | if test "$no_cache" != 1; then | |
6184 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
6185 | fi | |
6186 | ||
6187 | if test "$wxUSE_IMAGLIST" = yes; then | |
698dcdb6 | 6188 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6189 | else |
698dcdb6 | 6190 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6191 | fi |
698dcdb6 | 6192 | |
10f2d63a | 6193 | |
698dcdb6 | 6194 | echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6 |
4222829b | 6195 | echo "configure:6196: checking for --enable-listbox" >&5 |
10f2d63a VZ |
6196 | no_cache=0 |
6197 | # Check whether --enable-listbox or --disable-listbox was given. | |
6198 | if test "${enable_listbox+set}" = set; then | |
6199 | enableval="$enable_listbox" | |
698dcdb6 | 6200 | |
10f2d63a VZ |
6201 | if test "$enableval" = yes; then |
6202 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
6203 | else | |
6204 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
6205 | fi | |
698dcdb6 | 6206 | |
10f2d63a | 6207 | else |
698dcdb6 | 6208 | |
10f2d63a VZ |
6209 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` |
6210 | if test "x$LINE" != x ; then | |
6211 | eval "DEFAULT_$LINE" | |
6212 | else | |
6213 | no_cache=1 | |
6214 | fi | |
6215 | ||
6216 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
698dcdb6 VZ |
6217 | |
6218 | fi | |
10f2d63a VZ |
6219 | |
6220 | ||
6221 | eval "$ac_cv_use_listbox" | |
6222 | if test "$no_cache" != 1; then | |
6223 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
6224 | fi | |
6225 | ||
6226 | if test "$wxUSE_LISTBOX" = yes; then | |
698dcdb6 | 6227 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6228 | else |
698dcdb6 | 6229 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6230 | fi |
698dcdb6 | 6231 | |
10f2d63a | 6232 | |
698dcdb6 | 6233 | echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6 |
4222829b | 6234 | echo "configure:6235: checking for --enable-listctrl" >&5 |
10f2d63a VZ |
6235 | no_cache=0 |
6236 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
6237 | if test "${enable_listctrl+set}" = set; then | |
6238 | enableval="$enable_listctrl" | |
698dcdb6 | 6239 | |
10f2d63a VZ |
6240 | if test "$enableval" = yes; then |
6241 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
6242 | else | |
6243 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
6244 | fi | |
698dcdb6 | 6245 | |
10f2d63a | 6246 | else |
698dcdb6 | 6247 | |
10f2d63a VZ |
6248 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` |
6249 | if test "x$LINE" != x ; then | |
6250 | eval "DEFAULT_$LINE" | |
6251 | else | |
6252 | no_cache=1 | |
6253 | fi | |
6254 | ||
6255 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
698dcdb6 VZ |
6256 | |
6257 | fi | |
10f2d63a VZ |
6258 | |
6259 | ||
6260 | eval "$ac_cv_use_listctrl" | |
6261 | if test "$no_cache" != 1; then | |
6262 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
6263 | fi | |
6264 | ||
6265 | if test "$wxUSE_LISTCTRL" = yes; then | |
698dcdb6 | 6266 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6267 | else |
698dcdb6 | 6268 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6269 | fi |
698dcdb6 | 6270 | |
10f2d63a | 6271 | |
698dcdb6 | 6272 | echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6 |
4222829b | 6273 | echo "configure:6274: checking for --enable-notebook" >&5 |
10f2d63a VZ |
6274 | no_cache=0 |
6275 | # Check whether --enable-notebook or --disable-notebook was given. | |
6276 | if test "${enable_notebook+set}" = set; then | |
6277 | enableval="$enable_notebook" | |
698dcdb6 | 6278 | |
10f2d63a VZ |
6279 | if test "$enableval" = yes; then |
6280 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
6281 | else | |
6282 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
6283 | fi | |
698dcdb6 | 6284 | |
10f2d63a | 6285 | else |
698dcdb6 | 6286 | |
10f2d63a VZ |
6287 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` |
6288 | if test "x$LINE" != x ; then | |
6289 | eval "DEFAULT_$LINE" | |
6290 | else | |
6291 | no_cache=1 | |
6292 | fi | |
6293 | ||
6294 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
698dcdb6 VZ |
6295 | |
6296 | fi | |
10f2d63a VZ |
6297 | |
6298 | ||
6299 | eval "$ac_cv_use_notebook" | |
6300 | if test "$no_cache" != 1; then | |
6301 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
6302 | fi | |
6303 | ||
6304 | if test "$wxUSE_NOTEBOOK" = yes; then | |
698dcdb6 | 6305 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6306 | else |
698dcdb6 | 6307 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6308 | fi |
698dcdb6 | 6309 | |
10f2d63a | 6310 | |
24176f2c | 6311 | echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6 |
4222829b | 6312 | echo "configure:6313: checking for --enable-propsheet" >&5 |
24176f2c GD |
6313 | no_cache=0 |
6314 | # Check whether --enable-propsheet or --disable-propsheet was given. | |
6315 | if test "${enable_propsheet+set}" = set; then | |
6316 | enableval="$enable_propsheet" | |
6317 | ||
6318 | if test "$enableval" = yes; then | |
6319 | ac_cv_use_propsheet='wxUSE_PROPSHEET=yes' | |
6320 | else | |
6321 | ac_cv_use_propsheet='wxUSE_PROPSHEET=no' | |
6322 | fi | |
6323 | ||
6324 | else | |
6325 | ||
6326 | LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}` | |
6327 | if test "x$LINE" != x ; then | |
6328 | eval "DEFAULT_$LINE" | |
6329 | else | |
6330 | no_cache=1 | |
6331 | fi | |
6332 | ||
6333 | ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET | |
6334 | ||
6335 | fi | |
6336 | ||
6337 | ||
6338 | eval "$ac_cv_use_propsheet" | |
6339 | if test "$no_cache" != 1; then | |
6340 | echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp | |
6341 | fi | |
6342 | ||
6343 | if test "$wxUSE_PROPSHEET" = yes; then | |
6344 | echo "$ac_t""yes" 1>&6 | |
6345 | else | |
6346 | echo "$ac_t""no" 1>&6 | |
6347 | fi | |
6348 | ||
6349 | ||
698dcdb6 | 6350 | echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6 |
4222829b | 6351 | echo "configure:6352: checking for --enable-radiobox" >&5 |
10f2d63a VZ |
6352 | no_cache=0 |
6353 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
6354 | if test "${enable_radiobox+set}" = set; then | |
6355 | enableval="$enable_radiobox" | |
698dcdb6 | 6356 | |
10f2d63a VZ |
6357 | if test "$enableval" = yes; then |
6358 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
6359 | else | |
6360 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
6361 | fi | |
698dcdb6 | 6362 | |
10f2d63a | 6363 | else |
698dcdb6 | 6364 | |
10f2d63a VZ |
6365 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` |
6366 | if test "x$LINE" != x ; then | |
6367 | eval "DEFAULT_$LINE" | |
6368 | else | |
6369 | no_cache=1 | |
6370 | fi | |
6371 | ||
6372 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
698dcdb6 VZ |
6373 | |
6374 | fi | |
10f2d63a VZ |
6375 | |
6376 | ||
6377 | eval "$ac_cv_use_radiobox" | |
6378 | if test "$no_cache" != 1; then | |
6379 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
6380 | fi | |
6381 | ||
6382 | if test "$wxUSE_RADIOBOX" = yes; then | |
698dcdb6 | 6383 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6384 | else |
698dcdb6 | 6385 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6386 | fi |
698dcdb6 | 6387 | |
10f2d63a | 6388 | |
698dcdb6 | 6389 | echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6 |
4222829b | 6390 | echo "configure:6391: checking for --enable-radiobtn" >&5 |
10f2d63a VZ |
6391 | no_cache=0 |
6392 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
6393 | if test "${enable_radiobtn+set}" = set; then | |
6394 | enableval="$enable_radiobtn" | |
698dcdb6 | 6395 | |
10f2d63a VZ |
6396 | if test "$enableval" = yes; then |
6397 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
6398 | else | |
6399 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
6400 | fi | |
698dcdb6 | 6401 | |
10f2d63a | 6402 | else |
698dcdb6 | 6403 | |
10f2d63a VZ |
6404 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` |
6405 | if test "x$LINE" != x ; then | |
6406 | eval "DEFAULT_$LINE" | |
6407 | else | |
6408 | no_cache=1 | |
6409 | fi | |
6410 | ||
6411 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
698dcdb6 VZ |
6412 | |
6413 | fi | |
10f2d63a VZ |
6414 | |
6415 | ||
6416 | eval "$ac_cv_use_radiobtn" | |
6417 | if test "$no_cache" != 1; then | |
6418 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
6419 | fi | |
6420 | ||
6421 | if test "$wxUSE_RADIOBTN" = yes; then | |
698dcdb6 | 6422 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6423 | else |
698dcdb6 | 6424 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6425 | fi |
698dcdb6 | 6426 | |
10f2d63a | 6427 | |
698dcdb6 | 6428 | echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6 |
4222829b | 6429 | echo "configure:6430: checking for --enable-sash" >&5 |
10f2d63a VZ |
6430 | no_cache=0 |
6431 | # Check whether --enable-sash or --disable-sash was given. | |
6432 | if test "${enable_sash+set}" = set; then | |
6433 | enableval="$enable_sash" | |
698dcdb6 | 6434 | |
10f2d63a VZ |
6435 | if test "$enableval" = yes; then |
6436 | ac_cv_use_sash='wxUSE_SASH=yes' | |
6437 | else | |
6438 | ac_cv_use_sash='wxUSE_SASH=no' | |
6439 | fi | |
698dcdb6 | 6440 | |
10f2d63a | 6441 | else |
698dcdb6 | 6442 | |
10f2d63a VZ |
6443 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` |
6444 | if test "x$LINE" != x ; then | |
6445 | eval "DEFAULT_$LINE" | |
6446 | else | |
6447 | no_cache=1 | |
6448 | fi | |
6449 | ||
6450 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
698dcdb6 VZ |
6451 | |
6452 | fi | |
10f2d63a VZ |
6453 | |
6454 | ||
6455 | eval "$ac_cv_use_sash" | |
6456 | if test "$no_cache" != 1; then | |
6457 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
6458 | fi | |
6459 | ||
6460 | if test "$wxUSE_SASH" = yes; then | |
698dcdb6 | 6461 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6462 | else |
698dcdb6 | 6463 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6464 | fi |
698dcdb6 | 6465 | |
10f2d63a | 6466 | |
698dcdb6 | 6467 | echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6 |
4222829b | 6468 | echo "configure:6469: checking for --enable-scrollbar" >&5 |
10f2d63a VZ |
6469 | no_cache=0 |
6470 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
6471 | if test "${enable_scrollbar+set}" = set; then | |
6472 | enableval="$enable_scrollbar" | |
698dcdb6 | 6473 | |
10f2d63a VZ |
6474 | if test "$enableval" = yes; then |
6475 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
6476 | else | |
6477 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
6478 | fi | |
698dcdb6 | 6479 | |
10f2d63a | 6480 | else |
698dcdb6 | 6481 | |
10f2d63a VZ |
6482 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` |
6483 | if test "x$LINE" != x ; then | |
6484 | eval "DEFAULT_$LINE" | |
6485 | else | |
6486 | no_cache=1 | |
6487 | fi | |
6488 | ||
6489 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
698dcdb6 VZ |
6490 | |
6491 | fi | |
10f2d63a VZ |
6492 | |
6493 | ||
6494 | eval "$ac_cv_use_scrollbar" | |
6495 | if test "$no_cache" != 1; then | |
6496 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
6497 | fi | |
6498 | ||
6499 | if test "$wxUSE_SCROLLBAR" = yes; then | |
698dcdb6 | 6500 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6501 | else |
698dcdb6 | 6502 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6503 | fi |
698dcdb6 | 6504 | |
10f2d63a | 6505 | |
698dcdb6 | 6506 | echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6 |
4222829b | 6507 | echo "configure:6508: checking for --enable-slider" >&5 |
10f2d63a VZ |
6508 | no_cache=0 |
6509 | # Check whether --enable-slider or --disable-slider was given. | |
6510 | if test "${enable_slider+set}" = set; then | |
6511 | enableval="$enable_slider" | |
698dcdb6 | 6512 | |
10f2d63a VZ |
6513 | if test "$enableval" = yes; then |
6514 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
6515 | else | |
6516 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
6517 | fi | |
698dcdb6 | 6518 | |
10f2d63a | 6519 | else |
698dcdb6 | 6520 | |
10f2d63a VZ |
6521 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` |
6522 | if test "x$LINE" != x ; then | |
6523 | eval "DEFAULT_$LINE" | |
6524 | else | |
6525 | no_cache=1 | |
6526 | fi | |
6527 | ||
6528 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
698dcdb6 VZ |
6529 | |
6530 | fi | |
10f2d63a VZ |
6531 | |
6532 | ||
6533 | eval "$ac_cv_use_slider" | |
6534 | if test "$no_cache" != 1; then | |
6535 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
6536 | fi | |
6537 | ||
6538 | if test "$wxUSE_SLIDER" = yes; then | |
698dcdb6 | 6539 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6540 | else |
698dcdb6 | 6541 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6542 | fi |
698dcdb6 | 6543 | |
10f2d63a | 6544 | |
698dcdb6 | 6545 | echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6 |
4222829b | 6546 | echo "configure:6547: checking for --enable-spinbtn" >&5 |
10f2d63a VZ |
6547 | no_cache=0 |
6548 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
6549 | if test "${enable_spinbtn+set}" = set; then | |
6550 | enableval="$enable_spinbtn" | |
698dcdb6 | 6551 | |
10f2d63a VZ |
6552 | if test "$enableval" = yes; then |
6553 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
6554 | else | |
6555 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
6556 | fi | |
698dcdb6 | 6557 | |
10f2d63a | 6558 | else |
698dcdb6 | 6559 | |
10f2d63a VZ |
6560 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` |
6561 | if test "x$LINE" != x ; then | |
6562 | eval "DEFAULT_$LINE" | |
6563 | else | |
6564 | no_cache=1 | |
6565 | fi | |
6566 | ||
6567 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
698dcdb6 VZ |
6568 | |
6569 | fi | |
10f2d63a VZ |
6570 | |
6571 | ||
6572 | eval "$ac_cv_use_spinbtn" | |
6573 | if test "$no_cache" != 1; then | |
6574 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
6575 | fi | |
6576 | ||
6577 | if test "$wxUSE_SPINBTN" = yes; then | |
698dcdb6 | 6578 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6579 | else |
698dcdb6 | 6580 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6581 | fi |
698dcdb6 | 6582 | |
10f2d63a | 6583 | |
698dcdb6 | 6584 | echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6 |
4222829b | 6585 | echo "configure:6586: checking for --enable-spinctrl" >&5 |
56cfaa52 RR |
6586 | no_cache=0 |
6587 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
6588 | if test "${enable_spinctrl+set}" = set; then | |
6589 | enableval="$enable_spinctrl" | |
698dcdb6 | 6590 | |
56cfaa52 RR |
6591 | if test "$enableval" = yes; then |
6592 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
6593 | else | |
6594 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
6595 | fi | |
698dcdb6 | 6596 | |
56cfaa52 | 6597 | else |
698dcdb6 | 6598 | |
56cfaa52 RR |
6599 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` |
6600 | if test "x$LINE" != x ; then | |
6601 | eval "DEFAULT_$LINE" | |
6602 | else | |
6603 | no_cache=1 | |
6604 | fi | |
6605 | ||
6606 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
698dcdb6 VZ |
6607 | |
6608 | fi | |
56cfaa52 RR |
6609 | |
6610 | ||
6611 | eval "$ac_cv_use_spinctrl" | |
6612 | if test "$no_cache" != 1; then | |
6613 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
6614 | fi | |
6615 | ||
6616 | if test "$wxUSE_SPINCTRL" = yes; then | |
698dcdb6 | 6617 | echo "$ac_t""yes" 1>&6 |
56cfaa52 | 6618 | else |
698dcdb6 | 6619 | echo "$ac_t""no" 1>&6 |
56cfaa52 | 6620 | fi |
698dcdb6 | 6621 | |
56cfaa52 | 6622 | |
698dcdb6 | 6623 | echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6 |
4222829b | 6624 | echo "configure:6625: checking for --enable-splitter" >&5 |
10f2d63a VZ |
6625 | no_cache=0 |
6626 | # Check whether --enable-splitter or --disable-splitter was given. | |
6627 | if test "${enable_splitter+set}" = set; then | |
6628 | enableval="$enable_splitter" | |
698dcdb6 | 6629 | |
10f2d63a VZ |
6630 | if test "$enableval" = yes; then |
6631 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
6632 | else | |
6633 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
6634 | fi | |
698dcdb6 | 6635 | |
10f2d63a | 6636 | else |
698dcdb6 | 6637 | |
10f2d63a VZ |
6638 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` |
6639 | if test "x$LINE" != x ; then | |
6640 | eval "DEFAULT_$LINE" | |
6641 | else | |
6642 | no_cache=1 | |
6643 | fi | |
6644 | ||
6645 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
698dcdb6 VZ |
6646 | |
6647 | fi | |
10f2d63a VZ |
6648 | |
6649 | ||
6650 | eval "$ac_cv_use_splitter" | |
6651 | if test "$no_cache" != 1; then | |
6652 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
6653 | fi | |
6654 | ||
6655 | if test "$wxUSE_SPLITTER" = yes; then | |
698dcdb6 | 6656 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6657 | else |
698dcdb6 | 6658 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6659 | fi |
698dcdb6 | 6660 | |
10f2d63a | 6661 | |
698dcdb6 | 6662 | echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6 |
4222829b | 6663 | echo "configure:6664: checking for --enable-statbmp" >&5 |
10f2d63a VZ |
6664 | no_cache=0 |
6665 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
6666 | if test "${enable_statbmp+set}" = set; then | |
6667 | enableval="$enable_statbmp" | |
698dcdb6 | 6668 | |
10f2d63a VZ |
6669 | if test "$enableval" = yes; then |
6670 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
6671 | else | |
6672 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
6673 | fi | |
698dcdb6 | 6674 | |
10f2d63a | 6675 | else |
698dcdb6 | 6676 | |
10f2d63a VZ |
6677 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` |
6678 | if test "x$LINE" != x ; then | |
6679 | eval "DEFAULT_$LINE" | |
6680 | else | |
6681 | no_cache=1 | |
6682 | fi | |
6683 | ||
6684 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
698dcdb6 VZ |
6685 | |
6686 | fi | |
10f2d63a VZ |
6687 | |
6688 | ||
6689 | eval "$ac_cv_use_statbmp" | |
6690 | if test "$no_cache" != 1; then | |
6691 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
6692 | fi | |
6693 | ||
6694 | if test "$wxUSE_STATBMP" = yes; then | |
698dcdb6 | 6695 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6696 | else |
698dcdb6 | 6697 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6698 | fi |
698dcdb6 | 6699 | |
10f2d63a | 6700 | |
698dcdb6 | 6701 | echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6 |
4222829b | 6702 | echo "configure:6703: checking for --enable-statbox" >&5 |
10f2d63a VZ |
6703 | no_cache=0 |
6704 | # Check whether --enable-statbox or --disable-statbox was given. | |
6705 | if test "${enable_statbox+set}" = set; then | |
6706 | enableval="$enable_statbox" | |
698dcdb6 | 6707 | |
10f2d63a VZ |
6708 | if test "$enableval" = yes; then |
6709 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
6710 | else | |
6711 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
6712 | fi | |
698dcdb6 | 6713 | |
10f2d63a | 6714 | else |
698dcdb6 | 6715 | |
10f2d63a VZ |
6716 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` |
6717 | if test "x$LINE" != x ; then | |
6718 | eval "DEFAULT_$LINE" | |
6719 | else | |
6720 | no_cache=1 | |
6721 | fi | |
6722 | ||
6723 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
698dcdb6 VZ |
6724 | |
6725 | fi | |
10f2d63a VZ |
6726 | |
6727 | ||
6728 | eval "$ac_cv_use_statbox" | |
6729 | if test "$no_cache" != 1; then | |
6730 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
6731 | fi | |
6732 | ||
6733 | if test "$wxUSE_STATBOX" = yes; then | |
698dcdb6 | 6734 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6735 | else |
698dcdb6 | 6736 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6737 | fi |
698dcdb6 | 6738 | |
10f2d63a | 6739 | |
698dcdb6 | 6740 | echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6 |
4222829b | 6741 | echo "configure:6742: checking for --enable-statline" >&5 |
10f2d63a VZ |
6742 | no_cache=0 |
6743 | # Check whether --enable-statline or --disable-statline was given. | |
6744 | if test "${enable_statline+set}" = set; then | |
6745 | enableval="$enable_statline" | |
698dcdb6 | 6746 | |
10f2d63a VZ |
6747 | if test "$enableval" = yes; then |
6748 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
6749 | else | |
6750 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
6751 | fi | |
698dcdb6 | 6752 | |
10f2d63a | 6753 | else |
698dcdb6 | 6754 | |
10f2d63a VZ |
6755 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` |
6756 | if test "x$LINE" != x ; then | |
6757 | eval "DEFAULT_$LINE" | |
6758 | else | |
6759 | no_cache=1 | |
6760 | fi | |
6761 | ||
6762 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
698dcdb6 VZ |
6763 | |
6764 | fi | |
10f2d63a VZ |
6765 | |
6766 | ||
6767 | eval "$ac_cv_use_statline" | |
6768 | if test "$no_cache" != 1; then | |
6769 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
6770 | fi | |
6771 | ||
6772 | if test "$wxUSE_STATLINE" = yes; then | |
698dcdb6 | 6773 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6774 | else |
698dcdb6 | 6775 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6776 | fi |
698dcdb6 | 6777 | |
10f2d63a | 6778 | |
1e6feb95 | 6779 | echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6 |
4222829b | 6780 | echo "configure:6781: checking for --enable-stattext" >&5 |
1e6feb95 VZ |
6781 | no_cache=0 |
6782 | # Check whether --enable-stattext or --disable-stattext was given. | |
6783 | if test "${enable_stattext+set}" = set; then | |
6784 | enableval="$enable_stattext" | |
6785 | ||
6786 | if test "$enableval" = yes; then | |
6787 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
6788 | else | |
6789 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
6790 | fi | |
6791 | ||
6792 | else | |
6793 | ||
6794 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
6795 | if test "x$LINE" != x ; then | |
6796 | eval "DEFAULT_$LINE" | |
6797 | else | |
6798 | no_cache=1 | |
6799 | fi | |
6800 | ||
6801 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
6802 | ||
6803 | fi | |
6804 | ||
6805 | ||
6806 | eval "$ac_cv_use_stattext" | |
6807 | if test "$no_cache" != 1; then | |
6808 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
6809 | fi | |
6810 | ||
6811 | if test "$wxUSE_STATTEXT" = yes; then | |
6812 | echo "$ac_t""yes" 1>&6 | |
6813 | else | |
6814 | echo "$ac_t""no" 1>&6 | |
6815 | fi | |
6816 | ||
6817 | ||
698dcdb6 | 6818 | echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6 |
4222829b | 6819 | echo "configure:6820: checking for --enable-statusbar" >&5 |
10f2d63a VZ |
6820 | no_cache=0 |
6821 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
6822 | if test "${enable_statusbar+set}" = set; then | |
6823 | enableval="$enable_statusbar" | |
698dcdb6 | 6824 | |
10f2d63a VZ |
6825 | if test "$enableval" = yes; then |
6826 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
6827 | else | |
6828 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
6829 | fi | |
698dcdb6 | 6830 | |
10f2d63a | 6831 | else |
698dcdb6 | 6832 | |
10f2d63a VZ |
6833 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` |
6834 | if test "x$LINE" != x ; then | |
6835 | eval "DEFAULT_$LINE" | |
6836 | else | |
6837 | no_cache=1 | |
6838 | fi | |
6839 | ||
6840 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
698dcdb6 VZ |
6841 | |
6842 | fi | |
10f2d63a VZ |
6843 | |
6844 | ||
6845 | eval "$ac_cv_use_statusbar" | |
6846 | if test "$no_cache" != 1; then | |
6847 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
6848 | fi | |
6849 | ||
6850 | if test "$wxUSE_STATUSBAR" = yes; then | |
698dcdb6 | 6851 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6852 | else |
698dcdb6 | 6853 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6854 | fi |
698dcdb6 | 6855 | |
10f2d63a | 6856 | |
698dcdb6 | 6857 | echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6 |
4222829b | 6858 | echo "configure:6859: checking for --enable-tabdialog" >&5 |
10f2d63a VZ |
6859 | no_cache=0 |
6860 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
6861 | if test "${enable_tabdialog+set}" = set; then | |
6862 | enableval="$enable_tabdialog" | |
698dcdb6 | 6863 | |
10f2d63a VZ |
6864 | if test "$enableval" = yes; then |
6865 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
6866 | else | |
6867 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
6868 | fi | |
698dcdb6 | 6869 | |
10f2d63a | 6870 | else |
698dcdb6 | 6871 | |
10f2d63a VZ |
6872 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` |
6873 | if test "x$LINE" != x ; then | |
6874 | eval "DEFAULT_$LINE" | |
6875 | else | |
6876 | no_cache=1 | |
6877 | fi | |
6878 | ||
6879 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
698dcdb6 VZ |
6880 | |
6881 | fi | |
10f2d63a VZ |
6882 | |
6883 | ||
6884 | eval "$ac_cv_use_tabdialog" | |
6885 | if test "$no_cache" != 1; then | |
6886 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
6887 | fi | |
6888 | ||
6889 | if test "$wxUSE_TABDIALOG" = yes; then | |
698dcdb6 | 6890 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6891 | else |
698dcdb6 | 6892 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6893 | fi |
698dcdb6 | 6894 | |
10f2d63a | 6895 | |
1e6feb95 | 6896 | echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6 |
4222829b | 6897 | echo "configure:6898: checking for --enable-textctrl" >&5 |
1e6feb95 VZ |
6898 | no_cache=0 |
6899 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
6900 | if test "${enable_textctrl+set}" = set; then | |
6901 | enableval="$enable_textctrl" | |
6902 | ||
6903 | if test "$enableval" = yes; then | |
6904 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
6905 | else | |
6906 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
6907 | fi | |
6908 | ||
6909 | else | |
6910 | ||
6911 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
6912 | if test "x$LINE" != x ; then | |
6913 | eval "DEFAULT_$LINE" | |
6914 | else | |
6915 | no_cache=1 | |
6916 | fi | |
6917 | ||
6918 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
6919 | ||
6920 | fi | |
6921 | ||
6922 | ||
6923 | eval "$ac_cv_use_textctrl" | |
6924 | if test "$no_cache" != 1; then | |
6925 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
6926 | fi | |
6927 | ||
6928 | if test "$wxUSE_TEXTCTRL" = yes; then | |
6929 | echo "$ac_t""yes" 1>&6 | |
6930 | else | |
6931 | echo "$ac_t""no" 1>&6 | |
6932 | fi | |
6933 | ||
6934 | ||
698dcdb6 | 6935 | echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6 |
4222829b | 6936 | echo "configure:6937: checking for --enable-togglebtn" >&5 |
1db8dc4a VZ |
6937 | no_cache=0 |
6938 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
6939 | if test "${enable_togglebtn+set}" = set; then | |
6940 | enableval="$enable_togglebtn" | |
698dcdb6 | 6941 | |
1db8dc4a VZ |
6942 | if test "$enableval" = yes; then |
6943 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
6944 | else | |
6945 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
6946 | fi | |
698dcdb6 | 6947 | |
1db8dc4a | 6948 | else |
698dcdb6 | 6949 | |
1db8dc4a VZ |
6950 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` |
6951 | if test "x$LINE" != x ; then | |
6952 | eval "DEFAULT_$LINE" | |
6953 | else | |
6954 | no_cache=1 | |
6955 | fi | |
6956 | ||
6957 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
698dcdb6 VZ |
6958 | |
6959 | fi | |
1db8dc4a VZ |
6960 | |
6961 | ||
6962 | eval "$ac_cv_use_togglebtn" | |
6963 | if test "$no_cache" != 1; then | |
6964 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
6965 | fi | |
6966 | ||
6967 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
698dcdb6 | 6968 | echo "$ac_t""yes" 1>&6 |
1db8dc4a | 6969 | else |
698dcdb6 | 6970 | echo "$ac_t""no" 1>&6 |
1db8dc4a | 6971 | fi |
698dcdb6 | 6972 | |
1db8dc4a | 6973 | |
698dcdb6 | 6974 | echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6 |
4222829b | 6975 | echo "configure:6976: checking for --enable-toolbar" >&5 |
10f2d63a VZ |
6976 | no_cache=0 |
6977 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
6978 | if test "${enable_toolbar+set}" = set; then | |
6979 | enableval="$enable_toolbar" | |
698dcdb6 | 6980 | |
10f2d63a VZ |
6981 | if test "$enableval" = yes; then |
6982 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
6983 | else | |
6984 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
6985 | fi | |
698dcdb6 | 6986 | |
10f2d63a | 6987 | else |
698dcdb6 | 6988 | |
10f2d63a VZ |
6989 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` |
6990 | if test "x$LINE" != x ; then | |
6991 | eval "DEFAULT_$LINE" | |
6992 | else | |
6993 | no_cache=1 | |
6994 | fi | |
6995 | ||
6996 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
698dcdb6 VZ |
6997 | |
6998 | fi | |
10f2d63a VZ |
6999 | |
7000 | ||
7001 | eval "$ac_cv_use_toolbar" | |
7002 | if test "$no_cache" != 1; then | |
7003 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
7004 | fi | |
7005 | ||
7006 | if test "$wxUSE_TOOLBAR" = yes; then | |
698dcdb6 | 7007 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7008 | else |
698dcdb6 | 7009 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7010 | fi |
698dcdb6 | 7011 | |
10f2d63a | 7012 | |
698dcdb6 | 7013 | echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6 |
4222829b | 7014 | echo "configure:7015: checking for --enable-tbarnative" >&5 |
360d6699 VZ |
7015 | no_cache=0 |
7016 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
7017 | if test "${enable_tbarnative+set}" = set; then | |
7018 | enableval="$enable_tbarnative" | |
698dcdb6 | 7019 | |
360d6699 VZ |
7020 | if test "$enableval" = yes; then |
7021 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
7022 | else | |
7023 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
7024 | fi | |
698dcdb6 | 7025 | |
360d6699 | 7026 | else |
698dcdb6 | 7027 | |
360d6699 VZ |
7028 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` |
7029 | if test "x$LINE" != x ; then | |
7030 | eval "DEFAULT_$LINE" | |
7031 | else | |
7032 | no_cache=1 | |
7033 | fi | |
7034 | ||
7035 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
698dcdb6 VZ |
7036 | |
7037 | fi | |
360d6699 VZ |
7038 | |
7039 | ||
7040 | eval "$ac_cv_use_tbarnative" | |
7041 | if test "$no_cache" != 1; then | |
7042 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
7043 | fi | |
7044 | ||
7045 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
698dcdb6 | 7046 | echo "$ac_t""yes" 1>&6 |
360d6699 | 7047 | else |
698dcdb6 | 7048 | echo "$ac_t""no" 1>&6 |
360d6699 | 7049 | fi |
698dcdb6 | 7050 | |
360d6699 | 7051 | |
698dcdb6 | 7052 | echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6 |
4222829b | 7053 | echo "configure:7054: checking for --enable-tbarsmpl" >&5 |
360d6699 VZ |
7054 | no_cache=0 |
7055 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
7056 | if test "${enable_tbarsmpl+set}" = set; then | |
7057 | enableval="$enable_tbarsmpl" | |
698dcdb6 | 7058 | |
360d6699 VZ |
7059 | if test "$enableval" = yes; then |
7060 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
7061 | else | |
7062 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
7063 | fi | |
698dcdb6 | 7064 | |
360d6699 | 7065 | else |
698dcdb6 | 7066 | |
360d6699 VZ |
7067 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` |
7068 | if test "x$LINE" != x ; then | |
7069 | eval "DEFAULT_$LINE" | |
7070 | else | |
7071 | no_cache=1 | |
7072 | fi | |
7073 | ||
7074 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
698dcdb6 VZ |
7075 | |
7076 | fi | |
360d6699 VZ |
7077 | |
7078 | ||
7079 | eval "$ac_cv_use_tbarsmpl" | |
7080 | if test "$no_cache" != 1; then | |
7081 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
7082 | fi | |
7083 | ||
7084 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
698dcdb6 | 7085 | echo "$ac_t""yes" 1>&6 |
360d6699 | 7086 | else |
698dcdb6 | 7087 | echo "$ac_t""no" 1>&6 |
360d6699 | 7088 | fi |
698dcdb6 | 7089 | |
360d6699 | 7090 | |
698dcdb6 | 7091 | echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6 |
4222829b | 7092 | echo "configure:7093: checking for --enable-treectrl" >&5 |
10f2d63a VZ |
7093 | no_cache=0 |
7094 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
7095 | if test "${enable_treectrl+set}" = set; then | |
7096 | enableval="$enable_treectrl" | |
698dcdb6 | 7097 | |
10f2d63a VZ |
7098 | if test "$enableval" = yes; then |
7099 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
7100 | else | |
7101 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
7102 | fi | |
698dcdb6 | 7103 | |
10f2d63a | 7104 | else |
698dcdb6 | 7105 | |
10f2d63a VZ |
7106 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` |
7107 | if test "x$LINE" != x ; then | |
7108 | eval "DEFAULT_$LINE" | |
7109 | else | |
7110 | no_cache=1 | |
7111 | fi | |
7112 | ||
7113 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
698dcdb6 VZ |
7114 | |
7115 | fi | |
10f2d63a VZ |
7116 | |
7117 | ||
1e6feb95 VZ |
7118 | eval "$ac_cv_use_treectrl" |
7119 | if test "$no_cache" != 1; then | |
7120 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
7121 | fi | |
7122 | ||
7123 | if test "$wxUSE_TREECTRL" = yes; then | |
7124 | echo "$ac_t""yes" 1>&6 | |
7125 | else | |
7126 | echo "$ac_t""no" 1>&6 | |
7127 | fi | |
7128 | ||
7129 | ||
9926e4a4 | 7130 | echo $ac_n "checking for --enable-tipwindow""... $ac_c" 1>&6 |
4222829b | 7131 | echo "configure:7132: checking for --enable-tipwindow" >&5 |
9926e4a4 VZ |
7132 | no_cache=0 |
7133 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
7134 | if test "${enable_tipwindow+set}" = set; then | |
7135 | enableval="$enable_tipwindow" | |
7136 | ||
7137 | if test "$enableval" = yes; then | |
7138 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
7139 | else | |
7140 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
7141 | fi | |
7142 | ||
7143 | else | |
7144 | ||
7145 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` | |
7146 | if test "x$LINE" != x ; then | |
7147 | eval "DEFAULT_$LINE" | |
7148 | else | |
7149 | no_cache=1 | |
7150 | fi | |
7151 | ||
7152 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
7153 | ||
7154 | fi | |
7155 | ||
7156 | ||
7157 | eval "$ac_cv_use_tipwindow" | |
7158 | if test "$no_cache" != 1; then | |
7159 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
7160 | fi | |
7161 | ||
7162 | if test "$wxUSE_TIPWINDOW" = yes; then | |
7163 | echo "$ac_t""yes" 1>&6 | |
7164 | else | |
7165 | echo "$ac_t""no" 1>&6 | |
7166 | fi | |
7167 | ||
7168 | ||
9f41d601 | 7169 | echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6 |
4222829b | 7170 | echo "configure:7171: checking for --enable-popupwin" >&5 |
9f41d601 RR |
7171 | no_cache=0 |
7172 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
7173 | if test "${enable_popupwin+set}" = set; then | |
7174 | enableval="$enable_popupwin" | |
7175 | ||
7176 | if test "$enableval" = yes; then | |
7177 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
7178 | else | |
7179 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
7180 | fi | |
7181 | ||
7182 | else | |
7183 | ||
7184 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` | |
7185 | if test "x$LINE" != x ; then | |
7186 | eval "DEFAULT_$LINE" | |
7187 | else | |
7188 | no_cache=1 | |
7189 | fi | |
7190 | ||
7191 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
7192 | ||
7193 | fi | |
7194 | ||
7195 | ||
7196 | eval "$ac_cv_use_popupwin" | |
7197 | if test "$no_cache" != 1; then | |
7198 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
7199 | fi | |
7200 | ||
7201 | if test "$wxUSE_POPUPWIN" = yes; then | |
7202 | echo "$ac_t""yes" 1>&6 | |
7203 | else | |
7204 | echo "$ac_t""no" 1>&6 | |
7205 | fi | |
7206 | ||
7207 | ||
1e6feb95 VZ |
7208 | |
7209 | ||
7210 | echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6 | |
4222829b | 7211 | echo "configure:7212: checking for --enable-commondlg" >&5 |
1e6feb95 VZ |
7212 | no_cache=0 |
7213 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
7214 | if test "${enable_commondlg+set}" = set; then | |
7215 | enableval="$enable_commondlg" | |
7216 | ||
7217 | if test "$enableval" = yes; then | |
7218 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
7219 | else | |
7220 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
7221 | fi | |
7222 | ||
7223 | else | |
7224 | ||
7225 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
7226 | if test "x$LINE" != x ; then | |
7227 | eval "DEFAULT_$LINE" | |
7228 | else | |
7229 | no_cache=1 | |
7230 | fi | |
7231 | ||
7232 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
7233 | ||
7234 | fi | |
7235 | ||
7236 | ||
7237 | eval "$ac_cv_use_commondlg" | |
7238 | if test "$no_cache" != 1; then | |
7239 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
7240 | fi | |
7241 | ||
7242 | if test "$wxUSE_COMMONDLGS" = yes; then | |
7243 | echo "$ac_t""yes" 1>&6 | |
7244 | else | |
7245 | echo "$ac_t""no" 1>&6 | |
7246 | fi | |
7247 | ||
7248 | ||
7249 | echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6 | |
4222829b | 7250 | echo "configure:7251: checking for --enable-choicedlg" >&5 |
1e6feb95 VZ |
7251 | no_cache=0 |
7252 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
7253 | if test "${enable_choicedlg+set}" = set; then | |
7254 | enableval="$enable_choicedlg" | |
7255 | ||
7256 | if test "$enableval" = yes; then | |
7257 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
7258 | else | |
7259 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
7260 | fi | |
7261 | ||
7262 | else | |
7263 | ||
7264 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
7265 | if test "x$LINE" != x ; then | |
7266 | eval "DEFAULT_$LINE" | |
7267 | else | |
7268 | no_cache=1 | |
7269 | fi | |
7270 | ||
7271 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
7272 | ||
7273 | fi | |
7274 | ||
7275 | ||
7276 | eval "$ac_cv_use_choicedlg" | |
7277 | if test "$no_cache" != 1; then | |
7278 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
7279 | fi | |
7280 | ||
7281 | if test "$wxUSE_CHOICEDLG" = yes; then | |
7282 | echo "$ac_t""yes" 1>&6 | |
7283 | else | |
7284 | echo "$ac_t""no" 1>&6 | |
7285 | fi | |
7286 | ||
7287 | ||
7288 | echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6 | |
4222829b | 7289 | echo "configure:7290: checking for --enable-coldlg" >&5 |
1e6feb95 VZ |
7290 | no_cache=0 |
7291 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
7292 | if test "${enable_coldlg+set}" = set; then | |
7293 | enableval="$enable_coldlg" | |
7294 | ||
7295 | if test "$enableval" = yes; then | |
7296 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
7297 | else | |
7298 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
7299 | fi | |
7300 | ||
7301 | else | |
7302 | ||
7303 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
7304 | if test "x$LINE" != x ; then | |
7305 | eval "DEFAULT_$LINE" | |
7306 | else | |
7307 | no_cache=1 | |
7308 | fi | |
7309 | ||
7310 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
7311 | ||
7312 | fi | |
7313 | ||
7314 | ||
7315 | eval "$ac_cv_use_coldlg" | |
7316 | if test "$no_cache" != 1; then | |
7317 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
7318 | fi | |
7319 | ||
7320 | if test "$wxUSE_COLOURDLG" = yes; then | |
7321 | echo "$ac_t""yes" 1>&6 | |
7322 | else | |
7323 | echo "$ac_t""no" 1>&6 | |
7324 | fi | |
7325 | ||
7326 | ||
7327 | echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6 | |
4222829b | 7328 | echo "configure:7329: checking for --enable-filedlg" >&5 |
1e6feb95 VZ |
7329 | no_cache=0 |
7330 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
7331 | if test "${enable_filedlg+set}" = set; then | |
7332 | enableval="$enable_filedlg" | |
7333 | ||
7334 | if test "$enableval" = yes; then | |
7335 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
7336 | else | |
7337 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
7338 | fi | |
7339 | ||
7340 | else | |
7341 | ||
7342 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
7343 | if test "x$LINE" != x ; then | |
7344 | eval "DEFAULT_$LINE" | |
7345 | else | |
7346 | no_cache=1 | |
7347 | fi | |
7348 | ||
7349 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
7350 | ||
7351 | fi | |
7352 | ||
7353 | ||
7354 | eval "$ac_cv_use_filedlg" | |
7355 | if test "$no_cache" != 1; then | |
7356 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
7357 | fi | |
7358 | ||
7359 | if test "$wxUSE_FILEDLG" = yes; then | |
7360 | echo "$ac_t""yes" 1>&6 | |
7361 | else | |
7362 | echo "$ac_t""no" 1>&6 | |
7363 | fi | |
7364 | ||
7365 | ||
69d27ff7 | 7366 | echo $ac_n "checking for --enable-finddlg""... $ac_c" 1>&6 |
4222829b | 7367 | echo "configure:7368: checking for --enable-finddlg" >&5 |
8db37e06 | 7368 | no_cache=0 |
69d27ff7 MB |
7369 | # Check whether --enable-finddlg or --disable-finddlg was given. |
7370 | if test "${enable_finddlg+set}" = set; then | |
7371 | enableval="$enable_finddlg" | |
8db37e06 VZ |
7372 | |
7373 | if test "$enableval" = yes; then | |
69d27ff7 | 7374 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' |
8db37e06 | 7375 | else |
69d27ff7 | 7376 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' |
8db37e06 VZ |
7377 | fi |
7378 | ||
7379 | else | |
7380 | ||
7381 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` | |
7382 | if test "x$LINE" != x ; then | |
7383 | eval "DEFAULT_$LINE" | |
7384 | else | |
7385 | no_cache=1 | |
7386 | fi | |
7387 | ||
69d27ff7 | 7388 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG |
8db37e06 VZ |
7389 | |
7390 | fi | |
7391 | ||
7392 | ||
69d27ff7 | 7393 | eval "$ac_cv_use_finddlg" |
8db37e06 | 7394 | if test "$no_cache" != 1; then |
69d27ff7 | 7395 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp |
8db37e06 VZ |
7396 | fi |
7397 | ||
7398 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
7399 | echo "$ac_t""yes" 1>&6 | |
7400 | else | |
7401 | echo "$ac_t""no" 1>&6 | |
7402 | fi | |
7403 | ||
7404 | ||
1e6feb95 | 7405 | echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6 |
4222829b | 7406 | echo "configure:7407: checking for --enable-fontdlg" >&5 |
1e6feb95 VZ |
7407 | no_cache=0 |
7408 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
7409 | if test "${enable_fontdlg+set}" = set; then | |
7410 | enableval="$enable_fontdlg" | |
7411 | ||
7412 | if test "$enableval" = yes; then | |
7413 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
7414 | else | |
7415 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
7416 | fi | |
7417 | ||
7418 | else | |
7419 | ||
7420 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
7421 | if test "x$LINE" != x ; then | |
7422 | eval "DEFAULT_$LINE" | |
7423 | else | |
7424 | no_cache=1 | |
7425 | fi | |
7426 | ||
7427 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
7428 | ||
7429 | fi | |
7430 | ||
7431 | ||
7432 | eval "$ac_cv_use_fontdlg" | |
7433 | if test "$no_cache" != 1; then | |
7434 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
7435 | fi | |
7436 | ||
7437 | if test "$wxUSE_FONTDLG" = yes; then | |
7438 | echo "$ac_t""yes" 1>&6 | |
7439 | else | |
7440 | echo "$ac_t""no" 1>&6 | |
7441 | fi | |
7442 | ||
7443 | ||
7444 | echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6 | |
4222829b | 7445 | echo "configure:7446: checking for --enable-dirdlg" >&5 |
1e6feb95 VZ |
7446 | no_cache=0 |
7447 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
7448 | if test "${enable_dirdlg+set}" = set; then | |
7449 | enableval="$enable_dirdlg" | |
7450 | ||
7451 | if test "$enableval" = yes; then | |
7452 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
7453 | else | |
7454 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
7455 | fi | |
7456 | ||
7457 | else | |
7458 | ||
7459 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
7460 | if test "x$LINE" != x ; then | |
7461 | eval "DEFAULT_$LINE" | |
7462 | else | |
7463 | no_cache=1 | |
7464 | fi | |
7465 | ||
7466 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
7467 | ||
7468 | fi | |
7469 | ||
7470 | ||
7471 | eval "$ac_cv_use_dirdlg" | |
10f2d63a | 7472 | if test "$no_cache" != 1; then |
1e6feb95 | 7473 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7474 | fi |
7475 | ||
1e6feb95 | 7476 | if test "$wxUSE_DIRDLG" = yes; then |
698dcdb6 | 7477 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7478 | else |
698dcdb6 | 7479 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7480 | fi |
698dcdb6 VZ |
7481 | |
7482 | ||
1e6feb95 | 7483 | echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6 |
4222829b | 7484 | echo "configure:7485: checking for --enable-msgdlg" >&5 |
10f2d63a | 7485 | no_cache=0 |
1e6feb95 VZ |
7486 | # Check whether --enable-msgdlg or --disable-msgdlg was given. |
7487 | if test "${enable_msgdlg+set}" = set; then | |
7488 | enableval="$enable_msgdlg" | |
698dcdb6 | 7489 | |
10f2d63a | 7490 | if test "$enableval" = yes; then |
1e6feb95 | 7491 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' |
10f2d63a | 7492 | else |
1e6feb95 | 7493 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' |
10f2d63a | 7494 | fi |
698dcdb6 | 7495 | |
10f2d63a | 7496 | else |
698dcdb6 | 7497 | |
1e6feb95 | 7498 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
7499 | if test "x$LINE" != x ; then |
7500 | eval "DEFAULT_$LINE" | |
7501 | else | |
7502 | no_cache=1 | |
7503 | fi | |
7504 | ||
1e6feb95 | 7505 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG |
698dcdb6 VZ |
7506 | |
7507 | fi | |
10f2d63a VZ |
7508 | |
7509 | ||
1e6feb95 | 7510 | eval "$ac_cv_use_msgdlg" |
10f2d63a | 7511 | if test "$no_cache" != 1; then |
1e6feb95 | 7512 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7513 | fi |
7514 | ||
1e6feb95 | 7515 | if test "$wxUSE_MSGDLG" = yes; then |
698dcdb6 | 7516 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7517 | else |
698dcdb6 | 7518 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7519 | fi |
698dcdb6 | 7520 | |
10f2d63a | 7521 | |
1e6feb95 | 7522 | echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6 |
4222829b | 7523 | echo "configure:7524: checking for --enable-numberdlg" >&5 |
10f2d63a | 7524 | no_cache=0 |
1e6feb95 VZ |
7525 | # Check whether --enable-numberdlg or --disable-numberdlg was given. |
7526 | if test "${enable_numberdlg+set}" = set; then | |
7527 | enableval="$enable_numberdlg" | |
698dcdb6 | 7528 | |
10f2d63a | 7529 | if test "$enableval" = yes; then |
1e6feb95 | 7530 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' |
10f2d63a | 7531 | else |
1e6feb95 | 7532 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' |
10f2d63a | 7533 | fi |
698dcdb6 | 7534 | |
10f2d63a | 7535 | else |
698dcdb6 | 7536 | |
1e6feb95 | 7537 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
7538 | if test "x$LINE" != x ; then |
7539 | eval "DEFAULT_$LINE" | |
7540 | else | |
7541 | no_cache=1 | |
7542 | fi | |
7543 | ||
1e6feb95 | 7544 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG |
698dcdb6 VZ |
7545 | |
7546 | fi | |
10f2d63a VZ |
7547 | |
7548 | ||
1e6feb95 | 7549 | eval "$ac_cv_use_numberdlg" |
10f2d63a | 7550 | if test "$no_cache" != 1; then |
1e6feb95 | 7551 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7552 | fi |
7553 | ||
1e6feb95 | 7554 | if test "$wxUSE_NUMBERDLG" = yes; then |
698dcdb6 | 7555 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7556 | else |
698dcdb6 | 7557 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7558 | fi |
698dcdb6 | 7559 | |
10f2d63a | 7560 | |
cbca9943 | 7561 | echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6 |
4222829b | 7562 | echo "configure:7563: checking for --enable-splash" >&5 |
cbca9943 VZ |
7563 | no_cache=0 |
7564 | # Check whether --enable-splash or --disable-splash was given. | |
7565 | if test "${enable_splash+set}" = set; then | |
7566 | enableval="$enable_splash" | |
7567 | ||
7568 | if test "$enableval" = yes; then | |
7569 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
7570 | else | |
7571 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
7572 | fi | |
7573 | ||
7574 | else | |
7575 | ||
7576 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` | |
7577 | if test "x$LINE" != x ; then | |
7578 | eval "DEFAULT_$LINE" | |
7579 | else | |
7580 | no_cache=1 | |
7581 | fi | |
7582 | ||
7583 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
7584 | ||
7585 | fi | |
7586 | ||
7587 | ||
7588 | eval "$ac_cv_use_splash" | |
7589 | if test "$no_cache" != 1; then | |
7590 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
7591 | fi | |
7592 | ||
7593 | if test "$wxUSE_SPLASH" = yes; then | |
7594 | echo "$ac_t""yes" 1>&6 | |
7595 | else | |
7596 | echo "$ac_t""no" 1>&6 | |
7597 | fi | |
7598 | ||
7599 | ||
698dcdb6 | 7600 | echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6 |
4222829b | 7601 | echo "configure:7602: checking for --enable-textdlg" >&5 |
10f2d63a VZ |
7602 | no_cache=0 |
7603 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
7604 | if test "${enable_textdlg+set}" = set; then | |
7605 | enableval="$enable_textdlg" | |
698dcdb6 | 7606 | |
10f2d63a VZ |
7607 | if test "$enableval" = yes; then |
7608 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
7609 | else | |
7610 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
7611 | fi | |
698dcdb6 | 7612 | |
10f2d63a | 7613 | else |
698dcdb6 | 7614 | |
10f2d63a VZ |
7615 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` |
7616 | if test "x$LINE" != x ; then | |
7617 | eval "DEFAULT_$LINE" | |
7618 | else | |
7619 | no_cache=1 | |
7620 | fi | |
7621 | ||
7622 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
698dcdb6 VZ |
7623 | |
7624 | fi | |
10f2d63a VZ |
7625 | |
7626 | ||
7627 | eval "$ac_cv_use_textdlg" | |
7628 | if test "$no_cache" != 1; then | |
7629 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
7630 | fi | |
7631 | ||
7632 | if test "$wxUSE_TEXTDLG" = yes; then | |
698dcdb6 | 7633 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7634 | else |
698dcdb6 | 7635 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7636 | fi |
698dcdb6 | 7637 | |
10f2d63a | 7638 | |
698dcdb6 | 7639 | echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6 |
4222829b | 7640 | echo "configure:7641: checking for --enable-tipdlg" >&5 |
10f2d63a VZ |
7641 | no_cache=0 |
7642 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
7643 | if test "${enable_tipdlg+set}" = set; then | |
7644 | enableval="$enable_tipdlg" | |
698dcdb6 | 7645 | |
10f2d63a VZ |
7646 | if test "$enableval" = yes; then |
7647 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
7648 | else | |
7649 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
7650 | fi | |
698dcdb6 | 7651 | |
10f2d63a | 7652 | else |
698dcdb6 | 7653 | |
10f2d63a VZ |
7654 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` |
7655 | if test "x$LINE" != x ; then | |
7656 | eval "DEFAULT_$LINE" | |
7657 | else | |
7658 | no_cache=1 | |
7659 | fi | |
7660 | ||
7661 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
698dcdb6 VZ |
7662 | |
7663 | fi | |
10f2d63a VZ |
7664 | |
7665 | ||
7666 | eval "$ac_cv_use_tipdlg" | |
7667 | if test "$no_cache" != 1; then | |
7668 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
7669 | fi | |
7670 | ||
7671 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
698dcdb6 | 7672 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7673 | else |
698dcdb6 | 7674 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7675 | fi |
698dcdb6 | 7676 | |
10f2d63a | 7677 | |
698dcdb6 | 7678 | echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6 |
4222829b | 7679 | echo "configure:7680: checking for --enable-progressdlg" >&5 |
10f2d63a VZ |
7680 | no_cache=0 |
7681 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
7682 | if test "${enable_progressdlg+set}" = set; then | |
7683 | enableval="$enable_progressdlg" | |
698dcdb6 | 7684 | |
10f2d63a VZ |
7685 | if test "$enableval" = yes; then |
7686 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
7687 | else | |
7688 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
7689 | fi | |
698dcdb6 | 7690 | |
10f2d63a | 7691 | else |
698dcdb6 | 7692 | |
10f2d63a VZ |
7693 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` |
7694 | if test "x$LINE" != x ; then | |
7695 | eval "DEFAULT_$LINE" | |
7696 | else | |
7697 | no_cache=1 | |
7698 | fi | |
7699 | ||
7700 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
698dcdb6 VZ |
7701 | |
7702 | fi | |
10f2d63a VZ |
7703 | |
7704 | ||
7705 | eval "$ac_cv_use_progressdlg" | |
7706 | if test "$no_cache" != 1; then | |
7707 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
7708 | fi | |
7709 | ||
7710 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
698dcdb6 | 7711 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7712 | else |
698dcdb6 | 7713 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7714 | fi |
698dcdb6 | 7715 | |
10f2d63a | 7716 | |
b1f5d087 | 7717 | echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6 |
4222829b | 7718 | echo "configure:7719: checking for --enable-wizarddlg" >&5 |
b1f5d087 VZ |
7719 | no_cache=0 |
7720 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
7721 | if test "${enable_wizarddlg+set}" = set; then | |
7722 | enableval="$enable_wizarddlg" | |
7723 | ||
7724 | if test "$enableval" = yes; then | |
7725 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
7726 | else | |
7727 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
7728 | fi | |
7729 | ||
7730 | else | |
7731 | ||
7732 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` | |
7733 | if test "x$LINE" != x ; then | |
7734 | eval "DEFAULT_$LINE" | |
7735 | else | |
7736 | no_cache=1 | |
7737 | fi | |
7738 | ||
7739 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
7740 | ||
7741 | fi | |
7742 | ||
7743 | ||
7744 | eval "$ac_cv_use_wizarddlg" | |
7745 | if test "$no_cache" != 1; then | |
7746 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
7747 | fi | |
7748 | ||
7749 | if test "$wxUSE_WIZARDDLG" = yes; then | |
7750 | echo "$ac_t""yes" 1>&6 | |
7751 | else | |
7752 | echo "$ac_t""no" 1>&6 | |
7753 | fi | |
7754 | ||
7755 | ||
7756 | ||
7757 | ||
1e6feb95 | 7758 | echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6 |
4222829b | 7759 | echo "configure:7760: checking for --enable-menus" >&5 |
1e6feb95 VZ |
7760 | no_cache=0 |
7761 | # Check whether --enable-menus or --disable-menus was given. | |
7762 | if test "${enable_menus+set}" = set; then | |
7763 | enableval="$enable_menus" | |
7764 | ||
7765 | if test "$enableval" = yes; then | |
7766 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
7767 | else | |
7768 | ac_cv_use_menus='wxUSE_MENUS=no' | |
7769 | fi | |
7770 | ||
7771 | else | |
7772 | ||
7773 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
7774 | if test "x$LINE" != x ; then | |
7775 | eval "DEFAULT_$LINE" | |
7776 | else | |
7777 | no_cache=1 | |
7778 | fi | |
7779 | ||
7780 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
7781 | ||
7782 | fi | |
7783 | ||
7784 | ||
7785 | eval "$ac_cv_use_menus" | |
7786 | if test "$no_cache" != 1; then | |
7787 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
7788 | fi | |
7789 | ||
7790 | if test "$wxUSE_MENUS" = yes; then | |
7791 | echo "$ac_t""yes" 1>&6 | |
7792 | else | |
7793 | echo "$ac_t""no" 1>&6 | |
7794 | fi | |
7795 | ||
7796 | ||
698dcdb6 | 7797 | echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6 |
4222829b | 7798 | echo "configure:7799: checking for --enable-miniframe" >&5 |
10f2d63a VZ |
7799 | no_cache=0 |
7800 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
7801 | if test "${enable_miniframe+set}" = set; then | |
7802 | enableval="$enable_miniframe" | |
698dcdb6 | 7803 | |
10f2d63a VZ |
7804 | if test "$enableval" = yes; then |
7805 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
7806 | else | |
7807 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
7808 | fi | |
698dcdb6 | 7809 | |
10f2d63a | 7810 | else |
698dcdb6 | 7811 | |
10f2d63a VZ |
7812 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` |
7813 | if test "x$LINE" != x ; then | |
7814 | eval "DEFAULT_$LINE" | |
7815 | else | |
7816 | no_cache=1 | |
7817 | fi | |
7818 | ||
7819 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
698dcdb6 VZ |
7820 | |
7821 | fi | |
10f2d63a VZ |
7822 | |
7823 | ||
7824 | eval "$ac_cv_use_miniframe" | |
7825 | if test "$no_cache" != 1; then | |
7826 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
7827 | fi | |
7828 | ||
7829 | if test "$wxUSE_MINIFRAME" = yes; then | |
698dcdb6 | 7830 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7831 | else |
698dcdb6 | 7832 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7833 | fi |
698dcdb6 | 7834 | |
10f2d63a | 7835 | |
698dcdb6 | 7836 | echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6 |
4222829b | 7837 | echo "configure:7838: checking for --enable-tooltips" >&5 |
10f2d63a VZ |
7838 | no_cache=0 |
7839 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
7840 | if test "${enable_tooltips+set}" = set; then | |
7841 | enableval="$enable_tooltips" | |
698dcdb6 | 7842 | |
10f2d63a VZ |
7843 | if test "$enableval" = yes; then |
7844 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
7845 | else | |
7846 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
7847 | fi | |
698dcdb6 | 7848 | |
10f2d63a | 7849 | else |
698dcdb6 | 7850 | |
10f2d63a VZ |
7851 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` |
7852 | if test "x$LINE" != x ; then | |
7853 | eval "DEFAULT_$LINE" | |
7854 | else | |
7855 | no_cache=1 | |
7856 | fi | |
7857 | ||
7858 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
698dcdb6 VZ |
7859 | |
7860 | fi | |
10f2d63a VZ |
7861 | |
7862 | ||
7863 | eval "$ac_cv_use_tooltips" | |
7864 | if test "$no_cache" != 1; then | |
7865 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
7866 | fi | |
7867 | ||
7868 | if test "$wxUSE_TOOLTIPS" = yes; then | |
698dcdb6 | 7869 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7870 | else |
698dcdb6 | 7871 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7872 | fi |
698dcdb6 | 7873 | |
10f2d63a | 7874 | |
698dcdb6 | 7875 | echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6 |
4222829b | 7876 | echo "configure:7877: checking for --enable-splines" >&5 |
10f2d63a VZ |
7877 | no_cache=0 |
7878 | # Check whether --enable-splines or --disable-splines was given. | |
7879 | if test "${enable_splines+set}" = set; then | |
7880 | enableval="$enable_splines" | |
698dcdb6 | 7881 | |
10f2d63a VZ |
7882 | if test "$enableval" = yes; then |
7883 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
7884 | else | |
7885 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
7886 | fi | |
698dcdb6 | 7887 | |
10f2d63a | 7888 | else |
698dcdb6 | 7889 | |
10f2d63a VZ |
7890 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` |
7891 | if test "x$LINE" != x ; then | |
7892 | eval "DEFAULT_$LINE" | |
7893 | else | |
7894 | no_cache=1 | |
7895 | fi | |
7896 | ||
7897 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
698dcdb6 VZ |
7898 | |
7899 | fi | |
10f2d63a VZ |
7900 | |
7901 | ||
7902 | eval "$ac_cv_use_splines" | |
7903 | if test "$no_cache" != 1; then | |
7904 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
7905 | fi | |
7906 | ||
7907 | if test "$wxUSE_SPLINES" = yes; then | |
698dcdb6 | 7908 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7909 | else |
698dcdb6 | 7910 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7911 | fi |
698dcdb6 | 7912 | |
10f2d63a | 7913 | |
698dcdb6 | 7914 | echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6 |
4222829b | 7915 | echo "configure:7916: checking for --enable-validators" >&5 |
10f2d63a VZ |
7916 | no_cache=0 |
7917 | # Check whether --enable-validators or --disable-validators was given. | |
7918 | if test "${enable_validators+set}" = set; then | |
7919 | enableval="$enable_validators" | |
698dcdb6 | 7920 | |
10f2d63a VZ |
7921 | if test "$enableval" = yes; then |
7922 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
7923 | else | |
7924 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
7925 | fi | |
698dcdb6 | 7926 | |
10f2d63a | 7927 | else |
698dcdb6 | 7928 | |
10f2d63a VZ |
7929 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` |
7930 | if test "x$LINE" != x ; then | |
7931 | eval "DEFAULT_$LINE" | |
7932 | else | |
7933 | no_cache=1 | |
7934 | fi | |
7935 | ||
7936 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
698dcdb6 VZ |
7937 | |
7938 | fi | |
10f2d63a VZ |
7939 | |
7940 | ||
7941 | eval "$ac_cv_use_validators" | |
7942 | if test "$no_cache" != 1; then | |
7943 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
7944 | fi | |
7945 | ||
7946 | if test "$wxUSE_VALIDATORS" = yes; then | |
698dcdb6 | 7947 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7948 | else |
698dcdb6 | 7949 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7950 | fi |
698dcdb6 | 7951 | |
10f2d63a | 7952 | |
698dcdb6 | 7953 | echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6 |
4222829b | 7954 | echo "configure:7955: checking for --enable-busyinfo" >&5 |
10f2d63a VZ |
7955 | no_cache=0 |
7956 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
7957 | if test "${enable_busyinfo+set}" = set; then | |
7958 | enableval="$enable_busyinfo" | |
698dcdb6 | 7959 | |
10f2d63a VZ |
7960 | if test "$enableval" = yes; then |
7961 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
7962 | else | |
7963 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
7964 | fi | |
698dcdb6 | 7965 | |
10f2d63a | 7966 | else |
698dcdb6 | 7967 | |
10f2d63a VZ |
7968 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` |
7969 | if test "x$LINE" != x ; then | |
7970 | eval "DEFAULT_$LINE" | |
7971 | else | |
7972 | no_cache=1 | |
7973 | fi | |
7974 | ||
7975 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
698dcdb6 VZ |
7976 | |
7977 | fi | |
10f2d63a VZ |
7978 | |
7979 | ||
7980 | eval "$ac_cv_use_busyinfo" | |
7981 | if test "$no_cache" != 1; then | |
7982 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
7983 | fi | |
7984 | ||
7985 | if test "$wxUSE_BUSYINFO" = yes; then | |
698dcdb6 | 7986 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7987 | else |
698dcdb6 | 7988 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7989 | fi |
698dcdb6 | 7990 | |
10f2d63a | 7991 | |
698dcdb6 | 7992 | echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6 |
4222829b | 7993 | echo "configure:7994: checking for --enable-joystick" >&5 |
f6bcfd97 BP |
7994 | no_cache=0 |
7995 | # Check whether --enable-joystick or --disable-joystick was given. | |
7996 | if test "${enable_joystick+set}" = set; then | |
7997 | enableval="$enable_joystick" | |
698dcdb6 | 7998 | |
f6bcfd97 BP |
7999 | if test "$enableval" = yes; then |
8000 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
8001 | else | |
8002 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
8003 | fi | |
698dcdb6 | 8004 | |
f6bcfd97 | 8005 | else |
698dcdb6 | 8006 | |
f6bcfd97 BP |
8007 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` |
8008 | if test "x$LINE" != x ; then | |
8009 | eval "DEFAULT_$LINE" | |
8010 | else | |
8011 | no_cache=1 | |
8012 | fi | |
8013 | ||
8014 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
698dcdb6 VZ |
8015 | |
8016 | fi | |
f6bcfd97 BP |
8017 | |
8018 | ||
8019 | eval "$ac_cv_use_joystick" | |
8020 | if test "$no_cache" != 1; then | |
8021 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
8022 | fi | |
8023 | ||
8024 | if test "$wxUSE_JOYSTICK" = yes; then | |
698dcdb6 | 8025 | echo "$ac_t""yes" 1>&6 |
f6bcfd97 | 8026 | else |
698dcdb6 | 8027 | echo "$ac_t""no" 1>&6 |
f6bcfd97 | 8028 | fi |
698dcdb6 VZ |
8029 | |
8030 | ||
1e6feb95 | 8031 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
4222829b | 8032 | echo "configure:8033: checking for --enable-metafile" >&5 |
1e6feb95 VZ |
8033 | no_cache=0 |
8034 | # Check whether --enable-metafile or --disable-metafile was given. | |
8035 | if test "${enable_metafile+set}" = set; then | |
8036 | enableval="$enable_metafile" | |
8037 | ||
8038 | if test "$enableval" = yes; then | |
8039 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
8040 | else | |
8041 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
8042 | fi | |
8043 | ||
8044 | else | |
8045 | ||
8046 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
8047 | if test "x$LINE" != x ; then | |
8048 | eval "DEFAULT_$LINE" | |
8049 | else | |
8050 | no_cache=1 | |
8051 | fi | |
8052 | ||
8053 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
8054 | ||
8055 | fi | |
8056 | ||
8057 | ||
8058 | eval "$ac_cv_use_metafile" | |
8059 | if test "$no_cache" != 1; then | |
8060 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
8061 | fi | |
8062 | ||
8063 | if test "$wxUSE_METAFILE" = yes; then | |
8064 | echo "$ac_t""yes" 1>&6 | |
8065 | else | |
8066 | echo "$ac_t""no" 1>&6 | |
8067 | fi | |
8068 | ||
8069 | ||
24fd6d87 | 8070 | echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6 |
4222829b | 8071 | echo "configure:8072: checking for --enable-dragimage" >&5 |
24fd6d87 VZ |
8072 | no_cache=0 |
8073 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
8074 | if test "${enable_dragimage+set}" = set; then | |
8075 | enableval="$enable_dragimage" | |
8076 | ||
8077 | if test "$enableval" = yes; then | |
8078 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
8079 | else | |
8080 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
8081 | fi | |
8082 | ||
8083 | else | |
8084 | ||
8085 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` | |
8086 | if test "x$LINE" != x ; then | |
8087 | eval "DEFAULT_$LINE" | |
8088 | else | |
8089 | no_cache=1 | |
8090 | fi | |
8091 | ||
8092 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
8093 | ||
8094 | fi | |
8095 | ||
8096 | ||
8097 | eval "$ac_cv_use_dragimage" | |
8098 | if test "$no_cache" != 1; then | |
8099 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
8100 | fi | |
8101 | ||
8102 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
8103 | echo "$ac_t""yes" 1>&6 | |
8104 | else | |
8105 | echo "$ac_t""no" 1>&6 | |
8106 | fi | |
8107 | ||
8108 | ||
10f2d63a | 8109 | |
698dcdb6 | 8110 | |
edae8572 | 8111 | echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6 |
4222829b | 8112 | echo "configure:8113: checking for --enable-palette" >&5 |
edae8572 VZ |
8113 | no_cache=0 |
8114 | # Check whether --enable-palette or --disable-palette was given. | |
8115 | if test "${enable_palette+set}" = set; then | |
8116 | enableval="$enable_palette" | |
8117 | ||
8118 | if test "$enableval" = yes; then | |
8119 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
8120 | else | |
8121 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
8122 | fi | |
8123 | ||
8124 | else | |
8125 | ||
8126 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` | |
8127 | if test "x$LINE" != x ; then | |
8128 | eval "DEFAULT_$LINE" | |
8129 | else | |
8130 | no_cache=1 | |
8131 | fi | |
8132 | ||
8133 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
8134 | ||
8135 | fi | |
8136 | ||
8137 | ||
8138 | eval "$ac_cv_use_palette" | |
8139 | if test "$no_cache" != 1; then | |
8140 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
8141 | fi | |
8142 | ||
8143 | if test "$wxUSE_PALETTE" = yes; then | |
8144 | echo "$ac_t""yes" 1>&6 | |
8145 | else | |
8146 | echo "$ac_t""no" 1>&6 | |
8147 | fi | |
8148 | ||
8149 | ||
698dcdb6 | 8150 | echo $ac_n "checking for --enable-image""... $ac_c" 1>&6 |
4222829b | 8151 | echo "configure:8152: checking for --enable-image" >&5 |
0046ff7c VS |
8152 | no_cache=0 |
8153 | # Check whether --enable-image or --disable-image was given. | |
8154 | if test "${enable_image+set}" = set; then | |
8155 | enableval="$enable_image" | |
698dcdb6 | 8156 | |
0046ff7c VS |
8157 | if test "$enableval" = yes; then |
8158 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
8159 | else | |
8160 | ac_cv_use_image='wxUSE_IMAGE=no' | |
8161 | fi | |
698dcdb6 | 8162 | |
0046ff7c | 8163 | else |
698dcdb6 | 8164 | |
0046ff7c VS |
8165 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` |
8166 | if test "x$LINE" != x ; then | |
8167 | eval "DEFAULT_$LINE" | |
8168 | else | |
8169 | no_cache=1 | |
8170 | fi | |
8171 | ||
8172 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
698dcdb6 VZ |
8173 | |
8174 | fi | |
0046ff7c VS |
8175 | |
8176 | ||
8177 | eval "$ac_cv_use_image" | |
8178 | if test "$no_cache" != 1; then | |
8179 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
8180 | fi | |
8181 | ||
8182 | if test "$wxUSE_IMAGE" = yes; then | |
698dcdb6 | 8183 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 8184 | else |
698dcdb6 | 8185 | echo "$ac_t""no" 1>&6 |
0046ff7c | 8186 | fi |
698dcdb6 | 8187 | |
0046ff7c | 8188 | |
698dcdb6 | 8189 | echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6 |
4222829b | 8190 | echo "configure:8191: checking for --enable-gif" >&5 |
10f2d63a VZ |
8191 | no_cache=0 |
8192 | # Check whether --enable-gif or --disable-gif was given. | |
8193 | if test "${enable_gif+set}" = set; then | |
8194 | enableval="$enable_gif" | |
698dcdb6 | 8195 | |
10f2d63a VZ |
8196 | if test "$enableval" = yes; then |
8197 | ac_cv_use_gif='wxUSE_GIF=yes' | |
8198 | else | |
8199 | ac_cv_use_gif='wxUSE_GIF=no' | |
8200 | fi | |
698dcdb6 | 8201 | |
10f2d63a | 8202 | else |
698dcdb6 | 8203 | |
10f2d63a VZ |
8204 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` |
8205 | if test "x$LINE" != x ; then | |
8206 | eval "DEFAULT_$LINE" | |
8207 | else | |
8208 | no_cache=1 | |
8209 | fi | |
8210 | ||
8211 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
698dcdb6 VZ |
8212 | |
8213 | fi | |
10f2d63a VZ |
8214 | |
8215 | ||
8216 | eval "$ac_cv_use_gif" | |
8217 | if test "$no_cache" != 1; then | |
8218 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
8219 | fi | |
8220 | ||
8221 | if test "$wxUSE_GIF" = yes; then | |
698dcdb6 | 8222 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8223 | else |
698dcdb6 | 8224 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8225 | fi |
698dcdb6 | 8226 | |
10f2d63a | 8227 | |
698dcdb6 | 8228 | echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6 |
4222829b | 8229 | echo "configure:8230: checking for --enable-pcx" >&5 |
10f2d63a VZ |
8230 | no_cache=0 |
8231 | # Check whether --enable-pcx or --disable-pcx was given. | |
8232 | if test "${enable_pcx+set}" = set; then | |
8233 | enableval="$enable_pcx" | |
698dcdb6 | 8234 | |
10f2d63a VZ |
8235 | if test "$enableval" = yes; then |
8236 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
8237 | else | |
8238 | ac_cv_use_pcx='wxUSE_PCX=no' | |
8239 | fi | |
698dcdb6 | 8240 | |
10f2d63a | 8241 | else |
698dcdb6 | 8242 | |
10f2d63a VZ |
8243 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` |
8244 | if test "x$LINE" != x ; then | |
8245 | eval "DEFAULT_$LINE" | |
8246 | else | |
8247 | no_cache=1 | |
8248 | fi | |
8249 | ||
8250 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
698dcdb6 VZ |
8251 | |
8252 | fi | |
10f2d63a VZ |
8253 | |
8254 | ||
8255 | eval "$ac_cv_use_pcx" | |
8256 | if test "$no_cache" != 1; then | |
8257 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
8258 | fi | |
8259 | ||
8260 | if test "$wxUSE_PCX" = yes; then | |
698dcdb6 | 8261 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8262 | else |
698dcdb6 | 8263 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8264 | fi |
698dcdb6 | 8265 | |
10f2d63a | 8266 | |
4b6b4dfc | 8267 | echo $ac_n "checking for --enable-iff""... $ac_c" 1>&6 |
4222829b | 8268 | echo "configure:8269: checking for --enable-iff" >&5 |
4b6b4dfc RR |
8269 | no_cache=0 |
8270 | # Check whether --enable-iff or --disable-iff was given. | |
8271 | if test "${enable_iff+set}" = set; then | |
8272 | enableval="$enable_iff" | |
8273 | ||
8274 | if test "$enableval" = yes; then | |
8275 | ac_cv_use_iff='wxUSE_IFF=yes' | |
8276 | else | |
8277 | ac_cv_use_iff='wxUSE_IFF=no' | |
8278 | fi | |
8279 | ||
8280 | else | |
8281 | ||
8282 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` | |
8283 | if test "x$LINE" != x ; then | |
8284 | eval "DEFAULT_$LINE" | |
8285 | else | |
8286 | no_cache=1 | |
8287 | fi | |
8288 | ||
8289 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
8290 | ||
8291 | fi | |
8292 | ||
8293 | ||
8294 | eval "$ac_cv_use_iff" | |
8295 | if test "$no_cache" != 1; then | |
8296 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
8297 | fi | |
8298 | ||
8299 | if test "$wxUSE_IFF" = yes; then | |
8300 | echo "$ac_t""yes" 1>&6 | |
8301 | else | |
8302 | echo "$ac_t""no" 1>&6 | |
8303 | fi | |
8304 | ||
8305 | ||
698dcdb6 | 8306 | echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6 |
4222829b | 8307 | echo "configure:8308: checking for --enable-pnm" >&5 |
10f2d63a VZ |
8308 | no_cache=0 |
8309 | # Check whether --enable-pnm or --disable-pnm was given. | |
8310 | if test "${enable_pnm+set}" = set; then | |
8311 | enableval="$enable_pnm" | |
698dcdb6 | 8312 | |
10f2d63a VZ |
8313 | if test "$enableval" = yes; then |
8314 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
8315 | else | |
8316 | ac_cv_use_pnm='wxUSE_PNM=no' | |
8317 | fi | |
698dcdb6 | 8318 | |
10f2d63a | 8319 | else |
698dcdb6 | 8320 | |
10f2d63a VZ |
8321 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` |
8322 | if test "x$LINE" != x ; then | |
8323 | eval "DEFAULT_$LINE" | |
8324 | else | |
8325 | no_cache=1 | |
8326 | fi | |
8327 | ||
8328 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
698dcdb6 VZ |
8329 | |
8330 | fi | |
10f2d63a VZ |
8331 | |
8332 | ||
8333 | eval "$ac_cv_use_pnm" | |
8334 | if test "$no_cache" != 1; then | |
8335 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
8336 | fi | |
8337 | ||
8338 | if test "$wxUSE_PNM" = yes; then | |
698dcdb6 | 8339 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8340 | else |
698dcdb6 | 8341 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8342 | fi |
698dcdb6 | 8343 | |
10f2d63a | 8344 | |
69d27ff7 | 8345 | echo $ac_n "checking for --enable-xpm""... $ac_c" 1>&6 |
4222829b | 8346 | echo "configure:8347: checking for --enable-xpm" >&5 |
0046ff7c | 8347 | no_cache=0 |
69d27ff7 MB |
8348 | # Check whether --enable-xpm or --disable-xpm was given. |
8349 | if test "${enable_xpm+set}" = set; then | |
8350 | enableval="$enable_xpm" | |
698dcdb6 | 8351 | |
0046ff7c | 8352 | if test "$enableval" = yes; then |
69d27ff7 | 8353 | ac_cv_use_xpm='wxUSE_XPM=yes' |
0046ff7c | 8354 | else |
69d27ff7 | 8355 | ac_cv_use_xpm='wxUSE_XPM=no' |
0046ff7c | 8356 | fi |
698dcdb6 | 8357 | |
0046ff7c | 8358 | else |
698dcdb6 | 8359 | |
0046ff7c VS |
8360 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` |
8361 | if test "x$LINE" != x ; then | |
8362 | eval "DEFAULT_$LINE" | |
8363 | else | |
8364 | no_cache=1 | |
8365 | fi | |
8366 | ||
69d27ff7 | 8367 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM |
698dcdb6 VZ |
8368 | |
8369 | fi | |
0046ff7c VS |
8370 | |
8371 | ||
69d27ff7 | 8372 | eval "$ac_cv_use_xpm" |
0046ff7c | 8373 | if test "$no_cache" != 1; then |
69d27ff7 | 8374 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp |
0046ff7c VS |
8375 | fi |
8376 | ||
8377 | if test "$wxUSE_XPM" = yes; then | |
698dcdb6 | 8378 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 8379 | else |
698dcdb6 | 8380 | echo "$ac_t""no" 1>&6 |
0046ff7c | 8381 | fi |
698dcdb6 | 8382 | |
0046ff7c | 8383 | |
c7206e64 | 8384 | echo $ac_n "checking for --enable-ico_cur""... $ac_c" 1>&6 |
4222829b | 8385 | echo "configure:8386: checking for --enable-ico_cur" >&5 |
658974ae | 8386 | no_cache=0 |
c7206e64 VS |
8387 | # Check whether --enable-ico_cur or --disable-ico_cur was given. |
8388 | if test "${enable_ico_cur+set}" = set; then | |
8389 | enableval="$enable_ico_cur" | |
658974ae VS |
8390 | |
8391 | if test "$enableval" = yes; then | |
c7206e64 | 8392 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' |
658974ae | 8393 | else |
c7206e64 | 8394 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' |
658974ae VS |
8395 | fi |
8396 | ||
8397 | else | |
8398 | ||
8399 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` | |
8400 | if test "x$LINE" != x ; then | |
8401 | eval "DEFAULT_$LINE" | |
8402 | else | |
8403 | no_cache=1 | |
8404 | fi | |
8405 | ||
c7206e64 | 8406 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR |
658974ae VS |
8407 | |
8408 | fi | |
8409 | ||
8410 | ||
c7206e64 | 8411 | eval "$ac_cv_use_ico_cur" |
658974ae | 8412 | if test "$no_cache" != 1; then |
c7206e64 | 8413 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp |
658974ae VS |
8414 | fi |
8415 | ||
8416 | if test "$wxUSE_ICO_CUR" = yes; then | |
8417 | echo "$ac_t""yes" 1>&6 | |
8418 | else | |
8419 | echo "$ac_t""no" 1>&6 | |
8420 | fi | |
8421 | ||
8422 | ||
b12915c1 VZ |
8423 | fi |
8424 | ||
698dcdb6 | 8425 | |
10f2d63a VZ |
8426 | echo "saving argument cache $wx_arg_cache_file" |
8427 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
698dcdb6 | 8428 | |
10f2d63a | 8429 | |
698dcdb6 VZ |
8430 | |
8431 | echo $ac_n "checking for toolkit""... $ac_c" 1>&6 | |
4222829b | 8432 | echo "configure:8433: checking for toolkit" >&5 |
10f2d63a VZ |
8433 | |
8434 | if test "$wxUSE_GUI" = "yes"; then | |
8435 | ||
3a922bb4 RL |
8436 | if test "$USE_BEOS" = 1; then |
8437 | { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; } | |
8438 | fi | |
b12915c1 | 8439 | |
3a922bb4 RL |
8440 | if test "$TOOLKIT_GIVEN" = 1; then |
8441 | for toolkit in `echo $ALL_TOOLKITS`; do | |
8442 | var=wxUSE_$toolkit | |
8443 | eval "value=\$${var}" | |
8444 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
8445 | done | |
10f2d63a | 8446 | else |
3a922bb4 RL |
8447 | for toolkit in `echo $ALL_TOOLKITS`; do |
8448 | if test "$has_toolkit_in_cache" != 1; then | |
8449 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
8450 | else | |
8451 | var=DEFAULT_wxUSE_$toolkit | |
8452 | fi | |
8453 | eval "wxUSE_$toolkit=\$${var}" | |
8454 | done | |
10f2d63a | 8455 | fi |
10f2d63a | 8456 | |
3a922bb4 | 8457 | NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \ |
f79bd02d | 8458 | + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}` |
10f2d63a | 8459 | |
3a922bb4 | 8460 | case "${host}" in |
6fa882bd | 8461 | *-pc-os2_emx | *-pc-os2-emx ) |
3a922bb4 RL |
8462 | # PATH_IFS is autodetected by OS/2's configure (usually ';') |
8463 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
8464 | LEX_STEM="lexyy" | |
8465 | ;; | |
8466 | *) | |
8467 | PATH_IFS=':' | |
8468 | LEX_STEM="lex.yy" | |
8469 | ;; | |
8470 | esac | |
10f2d63a | 8471 | |
3a922bb4 RL |
8472 | case "$NUM_TOOLKITS" in |
8473 | 1) | |
8474 | ;; | |
8475 | 0) | |
8476 | { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; } | |
8477 | ;; | |
8478 | *) | |
8479 | { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; } | |
8480 | esac | |
10f2d63a | 8481 | |
3a922bb4 RL |
8482 | for toolkit in `echo $ALL_TOOLKITS`; do |
8483 | var=wxUSE_$toolkit | |
8484 | eval "value=\$${var}" | |
8485 | if test "x$value" != x; then | |
8486 | cache_var=CACHE_$toolkit | |
8487 | eval "cache=\$${cache_var}" | |
8488 | if test "$cache" = 1; then | |
8489 | echo "$var=$value" >> ${wx_arg_cache_file} | |
8490 | fi | |
8491 | if test "$value" = 1; then | |
8492 | toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]` | |
8493 | echo "$ac_t""$toolkit_echo" 1>&6 | |
8494 | fi | |
8495 | fi | |
8496 | done | |
10f2d63a | 8497 | else |
cf27ef00 | 8498 | PATH_IFS=':' |
3a922bb4 | 8499 | echo "$ac_t""base ($host_alias hosted) only" 1>&6 |
10f2d63a VZ |
8500 | fi |
8501 | ||
698dcdb6 VZ |
8502 | |
8503 | cat > confcache <<\EOF | |
10f2d63a VZ |
8504 | # This file is a shell script that caches the results of configure |
8505 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
8506 | # scripts and configure runs. It is not useful on other systems. |
8507 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 8508 | # |
698dcdb6 VZ |
8509 | # By default, configure uses ./config.cache as the cache file, |
8510 | # creating it if it does not exist already. You can give configure | |
8511 | # the --cache-file=FILE option to use a different cache file; that is | |
8512 | # what configure does when it calls configure scripts in | |
8513 | # subdirectories, so they share the cache. | |
8514 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
8515 | # config.status only pays attention to the cache file if you give it the | |
8516 | # --recheck option to rerun configure. | |
10f2d63a | 8517 | # |
698dcdb6 | 8518 | EOF |
10f2d63a VZ |
8519 | # The following way of writing the cache mishandles newlines in values, |
8520 | # but we know of no workaround that is simple, portable, and efficient. | |
8521 | # So, don't put newlines in cache variables' values. | |
8522 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
8523 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
8524 | (set) 2>&1 | |
8525 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
8526 | *ac_space=\ *) | |
8527 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
8528 | # turns \\\\ into \\, and sed turns \\ into \). | |
8529 | sed -n \ | |
8530 | -e "s/'/'\\\\''/g" \ | |
8531 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
8532 | ;; | |
8533 | *) | |
8534 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
8535 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
8536 | ;; | |
8537 | esac >> confcache | |
8538 | if cmp -s $cache_file confcache; then | |
8539 | : | |
8540 | else | |
10f2d63a | 8541 | if test -w $cache_file; then |
698dcdb6 VZ |
8542 | echo "updating cache $cache_file" |
8543 | cat confcache > $cache_file | |
10f2d63a VZ |
8544 | else |
8545 | echo "not updating unwritable cache $cache_file" | |
8546 | fi | |
8547 | fi | |
8548 | rm -f confcache | |
8549 | ||
698dcdb6 | 8550 | |
e59890c3 | 8551 | if test "$build" != "$host" ; then |
f9bc1684 | 8552 | if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 ; then |
3a922bb4 RL |
8553 | CC=$host_alias-gcc |
8554 | CXX=$host_alias-c++ | |
8555 | AR=$host_alias-ar | |
8556 | RANLIB=$host_alias-ranlib | |
8557 | DLLTOOL=$host_alias-dlltool | |
8558 | RESCOMP=$host_alias-windres | |
8559 | LD=$host_alias-ld | |
8560 | NM=$host_alias-nm | |
8561 | STRIP=$host_alias-strip | |
8562 | else | |
8563 | { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; } | |
8564 | fi | |
10f2d63a VZ |
8565 | fi |
8566 | ||
698dcdb6 | 8567 | # Extract the first word of "gcc", so it can be a program name with args. |
1e487827 | 8568 | set dummy gcc; ac_word=$2 |
698dcdb6 | 8569 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
4222829b | 8570 | echo "configure:8571: checking for $ac_word" >&5 |
698dcdb6 VZ |
8571 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8572 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6232543b VS |
8573 | else |
8574 | if test -n "$CC"; then | |
8575 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10f2d63a | 8576 | else |
698dcdb6 VZ |
8577 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8578 | ac_dummy="$PATH" | |
8579 | for ac_dir in $ac_dummy; do | |
8580 | test -z "$ac_dir" && ac_dir=. | |
8581 | if test -f $ac_dir/$ac_word; then | |
8582 | ac_cv_prog_CC="gcc" | |
8583 | break | |
8584 | fi | |
8585 | done | |
8586 | IFS="$ac_save_ifs" | |
10f2d63a | 8587 | fi |
6232543b | 8588 | fi |
698dcdb6 | 8589 | CC="$ac_cv_prog_CC" |
6232543b | 8590 | if test -n "$CC"; then |
698dcdb6 | 8591 | echo "$ac_t""$CC" 1>&6 |
1e487827 | 8592 | else |
698dcdb6 | 8593 | echo "$ac_t""no" 1>&6 |
1e487827 | 8594 | fi |
6232543b | 8595 | |
1e487827 VS |
8596 | if test -z "$CC"; then |
8597 | # Extract the first word of "cc", so it can be a program name with args. | |
8598 | set dummy cc; ac_word=$2 | |
698dcdb6 | 8599 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
4222829b | 8600 | echo "configure:8601: checking for $ac_word" >&5 |
698dcdb6 VZ |
8601 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8602 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 VS |
8603 | else |
8604 | if test -n "$CC"; then | |
8605 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
8606 | else | |
698dcdb6 | 8607 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1e487827 | 8608 | ac_prog_rejected=no |
698dcdb6 VZ |
8609 | ac_dummy="$PATH" |
8610 | for ac_dir in $ac_dummy; do | |
8611 | test -z "$ac_dir" && ac_dir=. | |
8612 | if test -f $ac_dir/$ac_word; then | |
8613 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
8614 | ac_prog_rejected=yes | |
8615 | continue | |
8616 | fi | |
8617 | ac_cv_prog_CC="cc" | |
8618 | break | |
8619 | fi | |
8620 | done | |
8621 | IFS="$ac_save_ifs" | |
1e487827 VS |
8622 | if test $ac_prog_rejected = yes; then |
8623 | # We found a bogon in the path, so make sure we never use it. | |
8624 | set dummy $ac_cv_prog_CC | |
8625 | shift | |
698dcdb6 | 8626 | if test $# -gt 0; then |
1e487827 VS |
8627 | # We chose a different compiler from the bogus one. |
8628 | # However, it has the same basename, so the bogon will be chosen | |
8629 | # first if we set CC to just the basename; use the full file name. | |
8630 | shift | |
698dcdb6 | 8631 | set dummy "$ac_dir/$ac_word" "$@" |
1e487827 VS |
8632 | shift |
8633 | ac_cv_prog_CC="$@" | |
703e0a69 | 8634 | fi |
1e487827 VS |
8635 | fi |
8636 | fi | |
8637 | fi | |
698dcdb6 | 8638 | CC="$ac_cv_prog_CC" |
1e487827 | 8639 | if test -n "$CC"; then |
698dcdb6 | 8640 | echo "$ac_t""$CC" 1>&6 |
703e0a69 | 8641 | else |
698dcdb6 | 8642 | echo "$ac_t""no" 1>&6 |
703e0a69 | 8643 | fi |
1e487827 | 8644 | |
698dcdb6 VZ |
8645 | if test -z "$CC"; then |
8646 | case "`uname -s`" in | |
8647 | *win32* | *WIN32*) | |
8648 | # Extract the first word of "cl", so it can be a program name with args. | |
8649 | set dummy cl; ac_word=$2 | |
8650 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
4222829b | 8651 | echo "configure:8652: checking for $ac_word" >&5 |
698dcdb6 VZ |
8652 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8653 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 VS |
8654 | else |
8655 | if test -n "$CC"; then | |
8656 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
703e0a69 | 8657 | else |
698dcdb6 VZ |
8658 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8659 | ac_dummy="$PATH" | |
8660 | for ac_dir in $ac_dummy; do | |
8661 | test -z "$ac_dir" && ac_dir=. | |
8662 | if test -f $ac_dir/$ac_word; then | |
8663 | ac_cv_prog_CC="cl" | |
8664 | break | |
8665 | fi | |
8666 | done | |
8667 | IFS="$ac_save_ifs" | |
703e0a69 | 8668 | fi |
1e487827 | 8669 | fi |
698dcdb6 | 8670 | CC="$ac_cv_prog_CC" |
1e487827 | 8671 | if test -n "$CC"; then |
698dcdb6 | 8672 | echo "$ac_t""$CC" 1>&6 |
1e487827 | 8673 | else |
698dcdb6 | 8674 | echo "$ac_t""no" 1>&6 |
1e487827 | 8675 | fi |
698dcdb6 VZ |
8676 | ;; |
8677 | esac | |
8678 | fi | |
8679 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
1e487827 VS |
8680 | fi |
8681 | ||
698dcdb6 | 8682 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
4222829b | 8683 | echo "configure:8684: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
1e487827 | 8684 | |
698dcdb6 VZ |
8685 | ac_ext=c |
8686 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8687 | ac_cpp='$CPP $CPPFLAGS' | |
8688 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8689 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8690 | cross_compiling=$ac_cv_prog_cc_cross | |
6232543b | 8691 | |
698dcdb6 | 8692 | cat > conftest.$ac_ext << EOF |
1e487827 | 8693 | |
4222829b | 8694 | #line 8695 "configure" |
1e487827 VS |
8695 | #include "confdefs.h" |
8696 | ||
698dcdb6 VZ |
8697 | main(){return(0);} |
8698 | EOF | |
4222829b | 8699 | if { (eval echo configure:8700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
8700 | ac_cv_prog_cc_works=yes |
8701 | # If we can't run a trivial program, we are probably using a cross compiler. | |
8702 | if (./conftest; exit) 2>/dev/null; then | |
8703 | ac_cv_prog_cc_cross=no | |
8704 | else | |
8705 | ac_cv_prog_cc_cross=yes | |
8706 | fi | |
8707 | else | |
8708 | echo "configure: failed program was:" >&5 | |
8709 | cat conftest.$ac_ext >&5 | |
8710 | ac_cv_prog_cc_works=no | |
8711 | fi | |
8712 | rm -fr conftest* | |
8713 | ac_ext=c | |
8714 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8715 | ac_cpp='$CPP $CPPFLAGS' | |
8716 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8717 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8718 | cross_compiling=$ac_cv_prog_cc_cross | |
8719 | ||
8720 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
8721 | if test $ac_cv_prog_cc_works = no; then | |
8722 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
8723 | fi | |
8724 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
4222829b | 8725 | echo "configure:8726: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
698dcdb6 VZ |
8726 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
8727 | cross_compiling=$ac_cv_prog_cc_cross | |
8728 | ||
8729 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
4222829b | 8730 | echo "configure:8731: checking whether we are using GNU C" >&5 |
698dcdb6 VZ |
8731 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
8732 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8733 | else | |
8734 | cat > conftest.c <<EOF | |
8735 | #ifdef __GNUC__ | |
8736 | yes; | |
1e487827 | 8737 | #endif |
698dcdb6 | 8738 | EOF |
4222829b | 8739 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8740: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
698dcdb6 VZ |
8740 | ac_cv_prog_gcc=yes |
8741 | else | |
8742 | ac_cv_prog_gcc=no | |
8743 | fi | |
8744 | fi | |
1e487827 | 8745 | |
698dcdb6 | 8746 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
1e487827 | 8747 | |
698dcdb6 VZ |
8748 | if test $ac_cv_prog_gcc = yes; then |
8749 | GCC=yes | |
8750 | else | |
8751 | GCC= | |
8752 | fi | |
1e487827 | 8753 | |
698dcdb6 VZ |
8754 | ac_test_CFLAGS="${CFLAGS+set}" |
8755 | ac_save_CFLAGS="$CFLAGS" | |
8756 | CFLAGS= | |
8757 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
4222829b | 8758 | echo "configure:8759: checking whether ${CC-cc} accepts -g" >&5 |
698dcdb6 VZ |
8759 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
8760 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8761 | else | |
8762 | echo 'void f(){}' > conftest.c | |
8763 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
10f2d63a VZ |
8764 | ac_cv_prog_cc_g=yes |
8765 | else | |
698dcdb6 | 8766 | ac_cv_prog_cc_g=no |
10f2d63a | 8767 | fi |
698dcdb6 VZ |
8768 | rm -f conftest* |
8769 | ||
10f2d63a | 8770 | fi |
698dcdb6 VZ |
8771 | |
8772 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
10f2d63a | 8773 | if test "$ac_test_CFLAGS" = set; then |
698dcdb6 | 8774 | CFLAGS="$ac_save_CFLAGS" |
10f2d63a VZ |
8775 | elif test $ac_cv_prog_cc_g = yes; then |
8776 | if test "$GCC" = yes; then | |
8777 | CFLAGS="-g -O2" | |
8778 | else | |
8779 | CFLAGS="-g" | |
8780 | fi | |
8781 | else | |
8782 | if test "$GCC" = yes; then | |
8783 | CFLAGS="-O2" | |
8784 | else | |
8785 | CFLAGS= | |
8786 | fi | |
8787 | fi | |
8788 | ||
8789 | ||
8790 | CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'` | |
8791 | ||
698dcdb6 | 8792 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
4222829b | 8793 | echo "configure:8794: checking how to run the C preprocessor" >&5 |
10f2d63a VZ |
8794 | # On Suns, sometimes $CPP names a directory. |
8795 | if test -n "$CPP" && test -d "$CPP"; then | |
8796 | CPP= | |
8797 | fi | |
8798 | if test -z "$CPP"; then | |
698dcdb6 VZ |
8799 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
8800 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8801 | else | |
8802 | # This must be in double quotes, not single quotes, because CPP may get | |
8803 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
8804 | CPP="${CC-cc} -E" | |
10f2d63a | 8805 | # On the NeXT, cc -E runs the code through the compiler's parser, |
698dcdb6 VZ |
8806 | # not just through cpp. |
8807 | cat > conftest.$ac_ext <<EOF | |
4222829b | 8808 | #line 8809 "configure" |
10f2d63a VZ |
8809 | #include "confdefs.h" |
8810 | #include <assert.h> | |
698dcdb6 VZ |
8811 | Syntax Error |
8812 | EOF | |
8813 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4222829b | 8814 | { (eval echo configure:8815: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8815 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8816 | if test -z "$ac_err"; then | |
10f2d63a VZ |
8817 | : |
8818 | else | |
698dcdb6 VZ |
8819 | echo "$ac_err" >&5 |
8820 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8821 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8822 | rm -rf conftest* |
8823 | CPP="${CC-cc} -E -traditional-cpp" | |
8824 | cat > conftest.$ac_ext <<EOF | |
4222829b | 8825 | #line 8826 "configure" |
10f2d63a | 8826 | #include "confdefs.h" |
698dcdb6 VZ |
8827 | #include <assert.h> |
8828 | Syntax Error | |
8829 | EOF | |
8830 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4222829b | 8831 | { (eval echo configure:8832: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8832 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8833 | if test -z "$ac_err"; then | |
8834 | : | |
10f2d63a | 8835 | else |
698dcdb6 VZ |
8836 | echo "$ac_err" >&5 |
8837 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8838 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8839 | rm -rf conftest* |
8840 | CPP="${CC-cc} -nologo -E" | |
8841 | cat > conftest.$ac_ext <<EOF | |
4222829b | 8842 | #line 8843 "configure" |
10f2d63a VZ |
8843 | #include "confdefs.h" |
8844 | #include <assert.h> | |
698dcdb6 VZ |
8845 | Syntax Error |
8846 | EOF | |
8847 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4222829b | 8848 | { (eval echo configure:8849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8849 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8850 | if test -z "$ac_err"; then | |
10f2d63a VZ |
8851 | : |
8852 | else | |
698dcdb6 VZ |
8853 | echo "$ac_err" >&5 |
8854 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8855 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8856 | rm -rf conftest* |
8857 | CPP=/lib/cpp | |
10f2d63a | 8858 | fi |
698dcdb6 | 8859 | rm -f conftest* |
10f2d63a | 8860 | fi |
698dcdb6 | 8861 | rm -f conftest* |
703e0a69 | 8862 | fi |
698dcdb6 VZ |
8863 | rm -f conftest* |
8864 | ac_cv_prog_CPP="$CPP" | |
8865 | fi | |
8866 | CPP="$ac_cv_prog_CPP" | |
10f2d63a | 8867 | else |
698dcdb6 | 8868 | ac_cv_prog_CPP="$CPP" |
10f2d63a | 8869 | fi |
698dcdb6 | 8870 | echo "$ac_t""$CPP" 1>&6 |
10f2d63a | 8871 | |
698dcdb6 VZ |
8872 | if test $ac_cv_prog_gcc = yes; then |
8873 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
4222829b | 8874 | echo "configure:8875: checking whether ${CC-cc} needs -traditional" >&5 |
698dcdb6 VZ |
8875 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
8876 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8877 | else |
8878 | ac_pattern="Autoconf.*'x'" | |
698dcdb6 | 8879 | cat > conftest.$ac_ext <<EOF |
4222829b | 8880 | #line 8881 "configure" |
10f2d63a VZ |
8881 | #include "confdefs.h" |
8882 | #include <sgtty.h> | |
8883 | Autoconf TIOCGETP | |
698dcdb6 | 8884 | EOF |
10f2d63a VZ |
8885 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8886 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
698dcdb6 | 8887 | rm -rf conftest* |
10f2d63a VZ |
8888 | ac_cv_prog_gcc_traditional=yes |
8889 | else | |
698dcdb6 | 8890 | rm -rf conftest* |
10f2d63a VZ |
8891 | ac_cv_prog_gcc_traditional=no |
8892 | fi | |
8893 | rm -f conftest* | |
8894 | ||
698dcdb6 | 8895 | |
10f2d63a | 8896 | if test $ac_cv_prog_gcc_traditional = no; then |
698dcdb6 | 8897 | cat > conftest.$ac_ext <<EOF |
4222829b | 8898 | #line 8899 "configure" |
10f2d63a VZ |
8899 | #include "confdefs.h" |
8900 | #include <termio.h> | |
8901 | Autoconf TCGETA | |
698dcdb6 | 8902 | EOF |
10f2d63a VZ |
8903 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8904 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
698dcdb6 | 8905 | rm -rf conftest* |
10f2d63a VZ |
8906 | ac_cv_prog_gcc_traditional=yes |
8907 | fi | |
8908 | rm -f conftest* | |
8909 | ||
8910 | fi | |
8911 | fi | |
698dcdb6 VZ |
8912 | |
8913 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
10f2d63a VZ |
8914 | if test $ac_cv_prog_gcc_traditional = yes; then |
8915 | CC="$CC -traditional" | |
8916 | fi | |
8917 | fi | |
8918 | ||
703e0a69 | 8919 | |
698dcdb6 VZ |
8920 | |
8921 | ac_ext=C | |
8922 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 8923 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
8924 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
8925 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8926 | cross_compiling=$ac_cv_prog_cxx_cross | |
8927 | ||
8928 | ||
8929 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | |
8930 | do | |
8931 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
8932 | set dummy $ac_prog; ac_word=$2 | |
8933 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
4222829b | 8934 | echo "configure:8935: checking for $ac_word" >&5 |
698dcdb6 VZ |
8935 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
8936 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8937 | else |
8938 | if test -n "$CXX"; then | |
8939 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
8940 | else | |
698dcdb6 VZ |
8941 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8942 | ac_dummy="$PATH" | |
8943 | for ac_dir in $ac_dummy; do | |
8944 | test -z "$ac_dir" && ac_dir=. | |
8945 | if test -f $ac_dir/$ac_word; then | |
8946 | ac_cv_prog_CXX="$ac_prog" | |
8947 | break | |
8948 | fi | |
8949 | done | |
8950 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8951 | fi |
8952 | fi | |
698dcdb6 | 8953 | CXX="$ac_cv_prog_CXX" |
10f2d63a | 8954 | if test -n "$CXX"; then |
698dcdb6 | 8955 | echo "$ac_t""$CXX" 1>&6 |
10f2d63a | 8956 | else |
698dcdb6 | 8957 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8958 | fi |
8959 | ||
698dcdb6 | 8960 | test -n "$CXX" && break |
10f2d63a | 8961 | done |
698dcdb6 | 8962 | test -n "$CXX" || CXX="gcc" |
10f2d63a VZ |
8963 | |
8964 | ||
698dcdb6 | 8965 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
4222829b | 8966 | echo "configure:8967: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
10f2d63a | 8967 | |
698dcdb6 VZ |
8968 | ac_ext=C |
8969 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8970 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8971 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8972 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8973 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 8974 | |
698dcdb6 VZ |
8975 | cat > conftest.$ac_ext << EOF |
8976 | ||
4222829b | 8977 | #line 8978 "configure" |
10f2d63a VZ |
8978 | #include "confdefs.h" |
8979 | ||
698dcdb6 VZ |
8980 | int main(){return(0);} |
8981 | EOF | |
4222829b | 8982 | if { (eval echo configure:8983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
8983 | ac_cv_prog_cxx_works=yes |
8984 | # If we can't run a trivial program, we are probably using a cross compiler. | |
8985 | if (./conftest; exit) 2>/dev/null; then | |
8986 | ac_cv_prog_cxx_cross=no | |
8987 | else | |
8988 | ac_cv_prog_cxx_cross=yes | |
8989 | fi | |
8990 | else | |
8991 | echo "configure: failed program was:" >&5 | |
8992 | cat conftest.$ac_ext >&5 | |
8993 | ac_cv_prog_cxx_works=no | |
8994 | fi | |
8995 | rm -fr conftest* | |
8996 | ac_ext=C | |
8997 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8998 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8999 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9000 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9001 | cross_compiling=$ac_cv_prog_cxx_cross | |
9002 | ||
9003 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 | |
9004 | if test $ac_cv_prog_cxx_works = no; then | |
9005 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
9006 | fi | |
9007 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
4222829b | 9008 | echo "configure:9009: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
698dcdb6 VZ |
9009 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
9010 | cross_compiling=$ac_cv_prog_cxx_cross | |
9011 | ||
9012 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 | |
4222829b | 9013 | echo "configure:9014: checking whether we are using GNU C++" >&5 |
698dcdb6 VZ |
9014 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
9015 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9016 | else | |
9017 | cat > conftest.C <<EOF | |
9018 | #ifdef __GNUC__ | |
9019 | yes; | |
10f2d63a | 9020 | #endif |
698dcdb6 | 9021 | EOF |
4222829b | 9022 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9023: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
698dcdb6 VZ |
9023 | ac_cv_prog_gxx=yes |
9024 | else | |
9025 | ac_cv_prog_gxx=no | |
9026 | fi | |
9027 | fi | |
10f2d63a | 9028 | |
698dcdb6 | 9029 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
10f2d63a | 9030 | |
698dcdb6 VZ |
9031 | if test $ac_cv_prog_gxx = yes; then |
9032 | GXX=yes | |
9033 | else | |
9034 | GXX= | |
9035 | fi | |
10f2d63a | 9036 | |
698dcdb6 VZ |
9037 | ac_test_CXXFLAGS="${CXXFLAGS+set}" |
9038 | ac_save_CXXFLAGS="$CXXFLAGS" | |
9039 | CXXFLAGS= | |
9040 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
4222829b | 9041 | echo "configure:9042: checking whether ${CXX-g++} accepts -g" >&5 |
698dcdb6 VZ |
9042 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
9043 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9044 | else | |
9045 | echo 'void f(){}' > conftest.cc | |
9046 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
10f2d63a VZ |
9047 | ac_cv_prog_cxx_g=yes |
9048 | else | |
698dcdb6 | 9049 | ac_cv_prog_cxx_g=no |
10f2d63a | 9050 | fi |
698dcdb6 VZ |
9051 | rm -f conftest* |
9052 | ||
10f2d63a | 9053 | fi |
698dcdb6 VZ |
9054 | |
9055 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
10f2d63a | 9056 | if test "$ac_test_CXXFLAGS" = set; then |
698dcdb6 | 9057 | CXXFLAGS="$ac_save_CXXFLAGS" |
10f2d63a VZ |
9058 | elif test $ac_cv_prog_cxx_g = yes; then |
9059 | if test "$GXX" = yes; then | |
9060 | CXXFLAGS="-g -O2" | |
9061 | else | |
9062 | CXXFLAGS="-g" | |
9063 | fi | |
9064 | else | |
9065 | if test "$GXX" = yes; then | |
9066 | CXXFLAGS="-O2" | |
9067 | else | |
9068 | CXXFLAGS= | |
9069 | fi | |
9070 | fi | |
9071 | ||
9072 | ||
10f2d63a VZ |
9073 | CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'` |
9074 | ||
9075 | ac_ext=c | |
698dcdb6 | 9076 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 9077 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
9078 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
9079 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9080 | cross_compiling=$ac_cv_prog_cc_cross | |
9081 | ||
9082 | ||
9083 | # Extract the first word of "ranlib", so it can be a program name with args. | |
9084 | set dummy ranlib; ac_word=$2 | |
9085 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
4222829b | 9086 | echo "configure:9087: checking for $ac_word" >&5 |
698dcdb6 VZ |
9087 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
9088 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9089 | else |
9090 | if test -n "$RANLIB"; then | |
9091 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
9092 | else | |
698dcdb6 VZ |
9093 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9094 | ac_dummy="$PATH" | |
9095 | for ac_dir in $ac_dummy; do | |
9096 | test -z "$ac_dir" && ac_dir=. | |
9097 | if test -f $ac_dir/$ac_word; then | |
9098 | ac_cv_prog_RANLIB="ranlib" | |
9099 | break | |
9100 | fi | |
9101 | done | |
9102 | IFS="$ac_save_ifs" | |
9103 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
10f2d63a VZ |
9104 | fi |
9105 | fi | |
698dcdb6 | 9106 | RANLIB="$ac_cv_prog_RANLIB" |
10f2d63a | 9107 | if test -n "$RANLIB"; then |
698dcdb6 | 9108 | echo "$ac_t""$RANLIB" 1>&6 |
10f2d63a | 9109 | else |
698dcdb6 | 9110 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9111 | fi |
9112 | ||
9113 | ||
9114 | # Extract the first word of "ar", so it can be a program name with args. | |
9115 | set dummy ar; ac_word=$2 | |
698dcdb6 | 9116 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
4222829b | 9117 | echo "configure:9118: checking for $ac_word" >&5 |
698dcdb6 VZ |
9118 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
9119 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9120 | else |
9121 | if test -n "$AR"; then | |
9122 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
9123 | else | |
698dcdb6 VZ |
9124 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9125 | ac_dummy="$PATH" | |
9126 | for ac_dir in $ac_dummy; do | |
9127 | test -z "$ac_dir" && ac_dir=. | |
9128 | if test -f $ac_dir/$ac_word; then | |
9129 | ac_cv_prog_AR="ar" | |
9130 | break | |
9131 | fi | |
9132 | done | |
9133 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9134 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
9135 | fi | |
9136 | fi | |
698dcdb6 | 9137 | AR="$ac_cv_prog_AR" |
10f2d63a | 9138 | if test -n "$AR"; then |
698dcdb6 | 9139 | echo "$ac_t""$AR" 1>&6 |
10f2d63a | 9140 | else |
698dcdb6 | 9141 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9142 | fi |
9143 | ||
698dcdb6 | 9144 | |
6054113a | 9145 | # Find a good install program. We prefer a C program (faster), |
10f2d63a VZ |
9146 | # so one script is as good as another. But avoid the broken or |
9147 | # incompatible versions: | |
9148 | # SysV /etc/install, /usr/sbin/install | |
9149 | # SunOS /usr/etc/install | |
9150 | # IRIX /sbin/install | |
9151 | # AIX /bin/install | |
9152 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
9153 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
9154 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
9155 | # ./install, which can be erroneously created by make from ./install.sh. | |
698dcdb6 | 9156 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
4222829b | 9157 | echo "configure:9158: checking for a BSD compatible install" >&5 |
10f2d63a | 9158 | if test -z "$INSTALL"; then |
698dcdb6 VZ |
9159 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
9160 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 9161 | else |
698dcdb6 | 9162 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
10f2d63a VZ |
9163 | for ac_dir in $PATH; do |
9164 | # Account for people who put trailing slashes in PATH elements. | |
698dcdb6 VZ |
9165 | case "$ac_dir/" in |
9166 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
10f2d63a VZ |
9167 | *) |
9168 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
9169 | # Don't use installbsd from OSF since it installs stuff as root | |
9170 | # by default. | |
9171 | for ac_prog in ginstall scoinst install; do | |
698dcdb6 | 9172 | if test -f $ac_dir/$ac_prog; then |
10f2d63a | 9173 | if test $ac_prog = install && |
698dcdb6 | 9174 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
10f2d63a VZ |
9175 | # AIX install. It has an incompatible calling convention. |
9176 | : | |
9177 | else | |
9178 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
9179 | break 2 | |
9180 | fi | |
9181 | fi | |
9182 | done | |
9183 | ;; | |
9184 | esac | |
9185 | done | |
698dcdb6 | 9186 | IFS="$ac_save_IFS" |
10f2d63a VZ |
9187 | |
9188 | fi | |
9189 | if test "${ac_cv_path_install+set}" = set; then | |
698dcdb6 | 9190 | INSTALL="$ac_cv_path_install" |
10f2d63a VZ |
9191 | else |
9192 | # As a last resort, use the slow shell script. We don't cache a | |
9193 | # path for INSTALL within a source directory, because that will | |
9194 | # break other packages using the cache if that directory is | |
9195 | # removed, or if the path is relative. | |
698dcdb6 | 9196 | INSTALL="$ac_install_sh" |
10f2d63a VZ |
9197 | fi |
9198 | fi | |
698dcdb6 | 9199 | echo "$ac_t""$INSTALL" 1>&6 |
10f2d63a VZ |
9200 | |
9201 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
9202 | # It thinks the first close brace ends the variable substitution. | |
9203 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
9204 | ||
698dcdb6 | 9205 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
10f2d63a VZ |
9206 | |
9207 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
9208 | ||
6054113a GD |
9209 | case "${host}" in |
9210 | ||
b5853384 | 9211 | powerpc-*-darwin* ) |
eb99ae0b GD |
9212 | INSTALL_PROGRAM="cp -fp" |
9213 | INSTALL_DATA="cp -fp" | |
6054113a GD |
9214 | ;; |
9215 | *) | |
9216 | ;; | |
d6853540 | 9217 | esac |
698dcdb6 | 9218 | |
10f2d63a VZ |
9219 | # Extract the first word of "strip", so it can be a program name with args. |
9220 | set dummy strip; ac_word=$2 | |
698dcdb6 | 9221 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
4222829b | 9222 | echo "configure:9223: checking for $ac_word" >&5 |
698dcdb6 VZ |
9223 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
9224 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9225 | else |
9226 | if test -n "$STRIP"; then | |
9227 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9228 | else | |
698dcdb6 VZ |
9229 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9230 | ac_dummy="$PATH" | |
9231 | for ac_dir in $ac_dummy; do | |
9232 | test -z "$ac_dir" && ac_dir=. | |
9233 | if test -f $ac_dir/$ac_word; then | |
9234 | ac_cv_prog_STRIP="strip" | |
9235 | break | |
9236 | fi | |
9237 | done | |
9238 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9239 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
9240 | fi | |
9241 | fi | |
698dcdb6 | 9242 | STRIP="$ac_cv_prog_STRIP" |
10f2d63a | 9243 | if test -n "$STRIP"; then |
698dcdb6 | 9244 | echo "$ac_t""$STRIP" 1>&6 |
10f2d63a | 9245 | else |
698dcdb6 | 9246 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9247 | fi |
9248 | ||
698dcdb6 | 9249 | |
414eab6d | 9250 | echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6 |
4222829b | 9251 | echo "configure:9252: checking if make is GNU make" >&5 |
414eab6d VZ |
9252 | if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then |
9253 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9254 | else | |
9255 | ||
9256 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
9257 | egrep -s GNU); then | |
9258 | wx_cv_prog_makeisgnu="yes" | |
9259 | else | |
9260 | wx_cv_prog_makeisgnu="no" | |
9261 | fi | |
9262 | ||
9263 | fi | |
9264 | ||
9265 | echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6 | |
9266 | ||
9267 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
9268 | IF_GNU_MAKE="" | |
9269 | else | |
9270 | IF_GNU_MAKE="#" | |
9271 | fi | |
9272 | ||
9273 | ||
9274 | ||
9275 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then | |
04e7a216 | 9276 | echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6 |
4222829b | 9277 | echo "configure:9278: checking if make supports VPATH" >&5 |
04e7a216 VZ |
9278 | if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then |
9279 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9280 | else | |
9281 | ||
10f2d63a VZ |
9282 | cat - << EOF > confMake |
9283 | check : file | |
9284 | cp \$? \$@ | |
9285 | cp \$? final_file | |
9286 | EOF | |
9287 | ||
9288 | if test ! -d sub ; then | |
9289 | mkdir sub | |
9290 | fi | |
9291 | echo dummy > sub/file | |
f6bcfd97 | 9292 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null |
10f2d63a VZ |
9293 | RESULT=$? |
9294 | rm -f sub/file check final_file confMake | |
9295 | rmdir sub | |
9296 | if test "$RESULT" = 0; then | |
04e7a216 | 9297 | wx_cv_prog_makevpath="yes" |
10f2d63a | 9298 | else |
04e7a216 VZ |
9299 | wx_cv_prog_makevpath="no" |
9300 | fi | |
9301 | ||
9302 | fi | |
9303 | ||
9304 | echo "$ac_t""$wx_cv_prog_makevpath" 1>&6 | |
9305 | ||
9306 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
9307 | { echo "configure: error: | |
1e487827 VS |
9308 | You need a make-utility that is able to use the variable |
9309 | VPATH correctly. | |
9310 | If your version of make does not support VPATH correctly, | |
9311 | please install GNU-make (possibly as gmake), and start | |
9312 | configure with the following command: | |
9313 | export MAKE=gmake; ./configure for sh-type shells | |
9314 | setenv MAKE gmake; ./configure for csh-type shells | |
9315 | Also please do remember to use gmake in this case every time | |
9316 | you are trying to compile. | |
698dcdb6 | 9317 | " 1>&2; exit 1; } |
414eab6d | 9318 | fi fi |
10f2d63a VZ |
9319 | for ac_prog in 'bison -y' byacc |
9320 | do | |
698dcdb6 | 9321 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
10f2d63a | 9322 | set dummy $ac_prog; ac_word=$2 |
698dcdb6 | 9323 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
4222829b | 9324 | echo "configure:9325: checking for $ac_word" >&5 |
698dcdb6 VZ |
9325 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
9326 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9327 | else |
9328 | if test -n "$YACC"; then | |
9329 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
9330 | else | |
698dcdb6 VZ |
9331 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9332 | ac_dummy="$PATH" | |
9333 | for ac_dir in $ac_dummy; do | |
9334 | test -z "$ac_dir" && ac_dir=. | |
9335 | if test -f $ac_dir/$ac_word; then | |
9336 | ac_cv_prog_YACC="$ac_prog" | |
9337 | break | |
9338 | fi | |
9339 | done | |
9340 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9341 | fi |
9342 | fi | |
698dcdb6 | 9343 | YACC="$ac_cv_prog_YACC" |
10f2d63a | 9344 | if test -n "$YACC"; then |
698dcdb6 | 9345 | echo "$ac_t""$YACC" 1>&6 |
10f2d63a | 9346 | else |
698dcdb6 | 9347 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9348 | fi |
9349 | ||
698dcdb6 | 9350 | test -n "$YACC" && break |
10f2d63a VZ |
9351 | done |
9352 | test -n "$YACC" || YACC="yacc" | |
9353 | ||
698dcdb6 VZ |
9354 | |
9355 | # Extract the first word of "flex", so it can be a program name with args. | |
9356 | set dummy flex; ac_word=$2 | |
9357 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
4222829b | 9358 | echo "configure:9359: checking for $ac_word" >&5 |
698dcdb6 VZ |
9359 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
9360 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9361 | else |
9362 | if test -n "$LEX"; then | |
9363 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
9364 | else | |
698dcdb6 VZ |
9365 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9366 | ac_dummy="$PATH" | |
9367 | for ac_dir in $ac_dummy; do | |
9368 | test -z "$ac_dir" && ac_dir=. | |
9369 | if test -f $ac_dir/$ac_word; then | |
9370 | ac_cv_prog_LEX="flex" | |
9371 | break | |
9372 | fi | |
9373 | done | |
9374 | IFS="$ac_save_ifs" | |
9375 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
10f2d63a VZ |
9376 | fi |
9377 | fi | |
698dcdb6 | 9378 | LEX="$ac_cv_prog_LEX" |
10f2d63a | 9379 | if test -n "$LEX"; then |
698dcdb6 | 9380 | echo "$ac_t""$LEX" 1>&6 |
10f2d63a | 9381 | else |
698dcdb6 | 9382 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9383 | fi |
9384 | ||
9385 | if test -z "$LEXLIB" | |
9386 | then | |
698dcdb6 VZ |
9387 | case "$LEX" in |
9388 | flex*) ac_lib=fl ;; | |
9389 | *) ac_lib=l ;; | |
9390 | esac | |
9391 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
4222829b | 9392 | echo "configure:9393: checking for yywrap in -l$ac_lib" >&5 |
698dcdb6 VZ |
9393 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
9394 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9395 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9396 | else | |
9397 | ac_save_LIBS="$LIBS" | |
9398 | LIBS="-l$ac_lib $LIBS" | |
9399 | cat > conftest.$ac_ext <<EOF | |
4222829b | 9400 | #line 9401 "configure" |
10f2d63a VZ |
9401 | #include "confdefs.h" |
9402 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9403 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9404 | builtin and then its argument prototype would still apply. */ |
9405 | char yywrap(); | |
10f2d63a | 9406 | |
698dcdb6 VZ |
9407 | int main() { |
9408 | yywrap() | |
9409 | ; return 0; } | |
9410 | EOF | |
4222829b | 9411 | if { (eval echo configure:9412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9412 | rm -rf conftest* |
9413 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 9414 | else |
698dcdb6 VZ |
9415 | echo "configure: failed program was:" >&5 |
9416 | cat conftest.$ac_ext >&5 | |
9417 | rm -rf conftest* | |
9418 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 9419 | fi |
698dcdb6 VZ |
9420 | rm -f conftest* |
9421 | LIBS="$ac_save_LIBS" | |
9422 | ||
10f2d63a | 9423 | fi |
698dcdb6 VZ |
9424 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
9425 | echo "$ac_t""yes" 1>&6 | |
9426 | LEXLIB="-l$ac_lib" | |
9427 | else | |
9428 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
9429 | fi |
9430 | ||
9431 | fi | |
9432 | ||
9433 | ||
698dcdb6 | 9434 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
4222829b | 9435 | echo "configure:9436: checking whether ln -s works" >&5 |
698dcdb6 VZ |
9436 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
9437 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 9438 | else |
698dcdb6 VZ |
9439 | rm -f conftestdata |
9440 | if ln -s X conftestdata 2>/dev/null | |
9441 | then | |
9442 | rm -f conftestdata | |
9443 | ac_cv_prog_LN_S="ln -s" | |
10f2d63a | 9444 | else |
698dcdb6 | 9445 | ac_cv_prog_LN_S=ln |
10f2d63a VZ |
9446 | fi |
9447 | fi | |
698dcdb6 VZ |
9448 | LN_S="$ac_cv_prog_LN_S" |
9449 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
9450 | echo "$ac_t""yes" 1>&6 | |
10f2d63a | 9451 | else |
698dcdb6 | 9452 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9453 | fi |
9454 | ||
9455 | ||
9456 | ||
9457 | SEARCH_INCLUDE="\ | |
9458 | /usr/local/include \ | |
9459 | \ | |
9460 | /usr/Motif-1.2/include \ | |
9461 | /usr/Motif-2.1/include \ | |
9462 | \ | |
9463 | /usr/include/Motif1.2 \ | |
9464 | /opt/xpm/include/X11 \ | |
9465 | /opt/GBxpm/include/ \ | |
9466 | /opt/GBxpm/X11/include/ \ | |
9467 | \ | |
9468 | /usr/Motif1.2/include \ | |
9469 | /usr/dt/include \ | |
afc31813 VZ |
9470 | /usr/openwin/include \ |
9471 | \ | |
10f2d63a VZ |
9472 | /usr/include/Xm \ |
9473 | \ | |
9474 | /usr/X11R6/include \ | |
afc31813 | 9475 | /usr/X11R6.4/include \ |
10f2d63a VZ |
9476 | /usr/X11R5/include \ |
9477 | /usr/X11R4/include \ | |
9478 | \ | |
10f2d63a VZ |
9479 | /usr/include/X11R6 \ |
9480 | /usr/include/X11R5 \ | |
9481 | /usr/include/X11R4 \ | |
9482 | \ | |
9483 | /usr/local/X11R6/include \ | |
9484 | /usr/local/X11R5/include \ | |
9485 | /usr/local/X11R4/include \ | |
9486 | \ | |
9487 | /usr/local/include/X11R6 \ | |
9488 | /usr/local/include/X11R5 \ | |
9489 | /usr/local/include/X11R4 \ | |
9490 | \ | |
9491 | /usr/X11/include \ | |
9492 | /usr/include/X11 \ | |
9493 | /usr/local/X11/include \ | |
9494 | /usr/local/include/X11 \ | |
9495 | \ | |
9496 | /usr/X386/include \ | |
9497 | /usr/x386/include \ | |
9498 | /usr/XFree86/include/X11 \ | |
9499 | \ | |
cf27ef00 | 9500 | X:/XFree86/include \ |
ec14dd32 VZ |
9501 | X:/XFree86/include/X11 \ |
9502 | \ | |
10f2d63a VZ |
9503 | /usr/include/gtk \ |
9504 | /usr/local/include/gtk \ | |
9505 | /usr/include/glib \ | |
9506 | /usr/local/include/glib \ | |
9507 | \ | |
9508 | /usr/include/qt \ | |
9509 | /usr/local/include/qt \ | |
9510 | \ | |
9511 | /usr/include/windows \ | |
9512 | /usr/include/wine \ | |
9513 | /usr/local/include/wine \ | |
9514 | \ | |
9515 | /usr/unsupported/include \ | |
9516 | /usr/athena/include \ | |
9517 | /usr/local/x11r5/include \ | |
9518 | /usr/lpp/Xamples/include \ | |
9519 | \ | |
10f2d63a | 9520 | /usr/openwin/share/include \ |
928b5c08 VZ |
9521 | \ |
9522 | /usr/include" | |
10f2d63a VZ |
9523 | |
9524 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
9525 | ||
698dcdb6 VZ |
9526 | |
9527 | cat > confcache <<\EOF | |
10f2d63a VZ |
9528 | # This file is a shell script that caches the results of configure |
9529 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
9530 | # scripts and configure runs. It is not useful on other systems. |
9531 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 9532 | # |
698dcdb6 VZ |
9533 | # By default, configure uses ./config.cache as the cache file, |
9534 | # creating it if it does not exist already. You can give configure | |
9535 | # the --cache-file=FILE option to use a different cache file; that is | |
9536 | # what configure does when it calls configure scripts in | |
9537 | # subdirectories, so they share the cache. | |
9538 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
9539 | # config.status only pays attention to the cache file if you give it the | |
9540 | # --recheck option to rerun configure. | |
10f2d63a | 9541 | # |
698dcdb6 | 9542 | EOF |
10f2d63a VZ |
9543 | # The following way of writing the cache mishandles newlines in values, |
9544 | # but we know of no workaround that is simple, portable, and efficient. | |
9545 | # So, don't put newlines in cache variables' values. | |
9546 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
9547 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
9548 | (set) 2>&1 | |
9549 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
9550 | *ac_space=\ *) | |
9551 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
9552 | # turns \\\\ into \\, and sed turns \\ into \). | |
9553 | sed -n \ | |
9554 | -e "s/'/'\\\\''/g" \ | |
9555 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
9556 | ;; | |
9557 | *) | |
9558 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
9559 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
9560 | ;; | |
9561 | esac >> confcache | |
9562 | if cmp -s $cache_file confcache; then | |
9563 | : | |
9564 | else | |
10f2d63a | 9565 | if test -w $cache_file; then |
698dcdb6 VZ |
9566 | echo "updating cache $cache_file" |
9567 | cat confcache > $cache_file | |
10f2d63a VZ |
9568 | else |
9569 | echo "not updating unwritable cache $cache_file" | |
9570 | fi | |
9571 | fi | |
9572 | rm -f confcache | |
9573 | ||
698dcdb6 VZ |
9574 | |
9575 | ||
4f14bcd8 | 9576 | |
18dbb1f6 VZ |
9577 | REGEX_INCLUDE= |
9578 | if test "$wxUSE_REGEX" != "no"; then | |
4f14bcd8 GD |
9579 | cat >> confdefs.h <<\EOF |
9580 | #define wxUSE_REGEX 1 | |
9581 | EOF | |
9582 | ||
9583 | ||
9584 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then | |
9585 | ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'` | |
18dbb1f6 | 9586 | echo $ac_n "checking for regex.h""... $ac_c" 1>&6 |
4222829b | 9587 | echo "configure:9588: checking for regex.h" >&5 |
18dbb1f6 VZ |
9588 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9589 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9590 | else | |
9591 | cat > conftest.$ac_ext <<EOF | |
4222829b | 9592 | #line 9593 "configure" |
18dbb1f6 VZ |
9593 | #include "confdefs.h" |
9594 | #include <regex.h> | |
9595 | EOF | |
9596 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4222829b | 9597 | { (eval echo configure:9598: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
18dbb1f6 VZ |
9598 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9599 | if test -z "$ac_err"; then | |
9600 | rm -rf conftest* | |
9601 | eval "ac_cv_header_$ac_safe=yes" | |
9602 | else | |
9603 | echo "$ac_err" >&5 | |
9604 | echo "configure: failed program was:" >&5 | |
9605 | cat conftest.$ac_ext >&5 | |
9606 | rm -rf conftest* | |
9607 | eval "ac_cv_header_$ac_safe=no" | |
9608 | fi | |
9609 | rm -f conftest* | |
9610 | fi | |
9611 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9612 | echo "$ac_t""yes" 1>&6 | |
9613 | for ac_func in regcomp | |
9614 | do | |
9615 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
4222829b | 9616 | echo "configure:9617: checking for $ac_func" >&5 |
18dbb1f6 VZ |
9617 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9618 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9619 | else | |
9620 | cat > conftest.$ac_ext <<EOF | |
4222829b | 9621 | #line 9622 "configure" |
18dbb1f6 VZ |
9622 | #include "confdefs.h" |
9623 | /* System header to define __stub macros and hopefully few prototypes, | |
9624 | which can conflict with char $ac_func(); below. */ | |
9625 | #include <assert.h> | |
9626 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9627 | /* We use char because int might match the return type of a gcc2 | |
9628 | builtin and then its argument prototype would still apply. */ | |
9629 | char $ac_func(); | |
9630 | ||
9631 | int main() { | |
9632 | ||
9633 | /* The GNU C library defines this for functions which it implements | |
9634 | to always fail with ENOSYS. Some functions are actually named | |
9635 | something starting with __ and the normal name is an alias. */ | |
9636 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9637 | choke me | |
9638 | #else | |
9639 | $ac_func(); | |
9640 | #endif | |
9641 | ||
9642 | ; return 0; } | |
9643 | EOF | |
4222829b | 9644 | if { (eval echo configure:9645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
18dbb1f6 VZ |
9645 | rm -rf conftest* |
9646 | eval "ac_cv_func_$ac_func=yes" | |
9647 | else | |
9648 | echo "configure: failed program was:" >&5 | |
9649 | cat conftest.$ac_ext >&5 | |
9650 | rm -rf conftest* | |
9651 | eval "ac_cv_func_$ac_func=no" | |
9652 | fi | |
9653 | rm -f conftest* | |
9654 | fi | |
9655 | ||
9656 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
9657 | echo "$ac_t""yes" 1>&6 | |
9658 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9659 | cat >> confdefs.h <<EOF | |
9660 | #define $ac_tr_func 1 | |
9661 | EOF | |
9662 | ||
9663 | else | |
9664 | echo "$ac_t""no" 1>&6 | |
9665 | fi | |
9666 | done | |
9667 | ||
9668 | else | |
9669 | echo "$ac_t""no" 1>&6 | |
9670 | fi | |
9671 | ||
9672 | ||
4f14bcd8 GD |
9673 | if test "x$ac_cv_func_regcomp" != "xyes"; then |
9674 | if test "$wxUSE_REGEX" = "sys" ; then | |
9675 | { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; } | |
9676 | else | |
a3df447d | 9677 | echo "configure: warning: system regex library not found, will use built-in instead" 1>&2 |
4f14bcd8 GD |
9678 | wxUSE_REGEX=builtin |
9679 | fi | |
9680 | else | |
9681 | wxUSE_REGEX=sys | |
18dbb1f6 | 9682 | fi |
18dbb1f6 VZ |
9683 | fi |
9684 | ||
4f14bcd8 GD |
9685 | if test "$wxUSE_REGEX" = "builtin" ; then |
9686 | REGEX_INCLUDE="-I\${top_srcdir}/src/regex" | |
9687 | fi | |
18dbb1f6 VZ |
9688 | fi |
9689 | ||
9690 | ||
4f14bcd8 GD |
9691 | ZLIB_INCLUDE= |
9692 | ZLIB_LINK= | |
9693 | if test "$wxUSE_ZLIB" != "no" ; then | |
9694 | cat >> confdefs.h <<\EOF | |
9695 | #define wxUSE_ZLIB 1 | |
9696 | EOF | |
dad6c0ea | 9697 | |
10f2d63a | 9698 | |
4f14bcd8 GD |
9699 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then |
9700 | ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'` | |
9701 | echo $ac_n "checking for zlib.h""... $ac_c" 1>&6 | |
4222829b | 9702 | echo "configure:9703: checking for zlib.h" >&5 |
3a922bb4 RL |
9703 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9704 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9705 | else | |
9706 | cat > conftest.$ac_ext <<EOF | |
4222829b | 9707 | #line 9708 "configure" |
3a922bb4 | 9708 | #include "confdefs.h" |
4f14bcd8 | 9709 | #include <zlib.h> |
3a922bb4 RL |
9710 | EOF |
9711 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4222829b | 9712 | { (eval echo configure:9713: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3a922bb4 RL |
9713 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9714 | if test -z "$ac_err"; then | |
9715 | rm -rf conftest* | |
9716 | eval "ac_cv_header_$ac_safe=yes" | |
9717 | else | |
9718 | echo "$ac_err" >&5 | |
9719 | echo "configure: failed program was:" >&5 | |
9720 | cat conftest.$ac_ext >&5 | |
9721 | rm -rf conftest* | |
9722 | eval "ac_cv_header_$ac_safe=no" | |
9723 | fi | |
9724 | rm -f conftest* | |
9725 | fi | |
9726 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9727 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 9728 | echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6 |
4222829b | 9729 | echo "configure:9730: checking for deflate in -lz" >&5 |
4f14bcd8 GD |
9730 | ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'` |
9731 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9732 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9733 | else | |
9734 | ac_save_LIBS="$LIBS" | |
9735 | LIBS="-lz $LIBS" | |
9736 | cat > conftest.$ac_ext <<EOF | |
4222829b | 9737 | #line 9738 "configure" |
4f14bcd8 GD |
9738 | #include "confdefs.h" |
9739 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9740 | /* We use char because int might match the return type of a gcc2 | |
9741 | builtin and then its argument prototype would still apply. */ | |
9742 | char deflate(); | |
9743 | ||
9744 | int main() { | |
9745 | deflate() | |
9746 | ; return 0; } | |
3a922bb4 | 9747 | EOF |
4222829b | 9748 | if { (eval echo configure:9749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
9749 | rm -rf conftest* |
9750 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9751 | else | |
9752 | echo "configure: failed program was:" >&5 | |
9753 | cat conftest.$ac_ext >&5 | |
9754 | rm -rf conftest* | |
9755 | eval "ac_cv_lib_$ac_lib_var=no" | |
9756 | fi | |
9757 | rm -f conftest* | |
9758 | LIBS="$ac_save_LIBS" | |
9759 | ||
9760 | fi | |
9761 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9762 | echo "$ac_t""yes" 1>&6 | |
3d63bc3a | 9763 | ZLIB_LINK=" -lz" |
3a922bb4 RL |
9764 | else |
9765 | echo "$ac_t""no" 1>&6 | |
9766 | fi | |
10f2d63a | 9767 | |
4f14bcd8 GD |
9768 | else |
9769 | echo "$ac_t""no" 1>&6 | |
9770 | fi | |
9771 | ||
9772 | ||
9773 | if test "x$ZLIB_LINK" = "x" ; then | |
9774 | if test "$wxUSE_ZLIB" = "sys" ; then | |
9775 | { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; } | |
9776 | else | |
a3df447d | 9777 | echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2 |
4f14bcd8 GD |
9778 | wxUSE_ZLIB=builtin |
9779 | fi | |
9780 | else | |
9781 | wxUSE_ZLIB=sys | |
9782 | fi | |
9783 | fi | |
9784 | ||
9785 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
9786 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
9787 | fi | |
9788 | fi | |
9789 | ||
9790 | ||
9791 | PNG_INCLUDE= | |
9792 | PNG_LINK= | |
9793 | if test "$wxUSE_LIBPNG" != "no" ; then | |
9794 | cat >> confdefs.h <<\EOF | |
9795 | #define wxUSE_LIBPNG 1 | |
9796 | EOF | |
9797 | ||
81809c07 VS |
9798 | |
9799 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then | |
9800 | echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2 | |
9801 | wxUSE_LIBPNG=sys | |
9802 | fi | |
4f14bcd8 | 9803 | |
81809c07 | 9804 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then |
a3df447d | 9805 | echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2 |
4f14bcd8 GD |
9806 | wxUSE_LIBPNG=builtin |
9807 | fi | |
9808 | ||
81809c07 VS |
9809 | if test "$wxUSE_MGL" != 1 ; then |
9810 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
9811 | ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` | |
4f14bcd8 | 9812 | echo $ac_n "checking for png.h""... $ac_c" 1>&6 |
4222829b | 9813 | echo "configure:9814: checking for png.h" >&5 |
d4158b5d VS |
9814 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9815 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9816 | else | |
9817 | cat > conftest.$ac_ext <<EOF | |
4222829b | 9818 | #line 9819 "configure" |
d4158b5d | 9819 | #include "confdefs.h" |
4f14bcd8 | 9820 | #include <png.h> |
d4158b5d VS |
9821 | EOF |
9822 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4222829b | 9823 | { (eval echo configure:9824: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
d4158b5d VS |
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" | |
9828 | else | |
9829 | echo "$ac_err" >&5 | |
9830 | echo "configure: failed program was:" >&5 | |
9831 | cat conftest.$ac_ext >&5 | |
9832 | rm -rf conftest* | |
9833 | eval "ac_cv_header_$ac_safe=no" | |
9834 | fi | |
9835 | rm -f conftest* | |
9836 | fi | |
9837 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9838 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 9839 | echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6 |
4222829b | 9840 | echo "configure:9841: checking for png_check_sig in -lpng" >&5 |
4f14bcd8 GD |
9841 | ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'` |
9842 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
3a922bb4 RL |
9843 | echo $ac_n "(cached) $ac_c" 1>&6 |
9844 | else | |
4f14bcd8 GD |
9845 | ac_save_LIBS="$LIBS" |
9846 | LIBS="-lpng -lz -lm $LIBS" | |
9847 | cat > conftest.$ac_ext <<EOF | |
4222829b | 9848 | #line 9849 "configure" |
3a922bb4 | 9849 | #include "confdefs.h" |
4f14bcd8 GD |
9850 | /* Override any gcc2 internal prototype to avoid an error. */ |
9851 | /* We use char because int might match the return type of a gcc2 | |
9852 | builtin and then its argument prototype would still apply. */ | |
9853 | char png_check_sig(); | |
f6bcfd97 | 9854 | |
4f14bcd8 GD |
9855 | int main() { |
9856 | png_check_sig() | |
3a922bb4 RL |
9857 | ; return 0; } |
9858 | EOF | |
4222829b | 9859 | if { (eval echo configure:9860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3a922bb4 | 9860 | rm -rf conftest* |
4f14bcd8 | 9861 | eval "ac_cv_lib_$ac_lib_var=yes" |
3a922bb4 RL |
9862 | else |
9863 | echo "configure: failed program was:" >&5 | |
9864 | cat conftest.$ac_ext >&5 | |
9865 | rm -rf conftest* | |
4f14bcd8 | 9866 | eval "ac_cv_lib_$ac_lib_var=no" |
3a922bb4 RL |
9867 | fi |
9868 | rm -f conftest* | |
4f14bcd8 | 9869 | LIBS="$ac_save_LIBS" |
10f2d63a | 9870 | |
4f14bcd8 GD |
9871 | fi |
9872 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9873 | echo "$ac_t""yes" 1>&6 | |
3d63bc3a | 9874 | PNG_LINK=" -lpng" |
4f14bcd8 GD |
9875 | else |
9876 | echo "$ac_t""no" 1>&6 | |
9877 | fi | |
32832908 | 9878 | |
81809c07 | 9879 | |
4f14bcd8 GD |
9880 | else |
9881 | echo "$ac_t""no" 1>&6 | |
9882 | fi | |
3a922bb4 | 9883 | |
7b7a7637 | 9884 | |
81809c07 VS |
9885 | if test "x$PNG_LINK" = "x" ; then |
9886 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
9887 | { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; } | |
9888 | else | |
9889 | echo "configure: warning: system png library not found, will use built-in instead" 1>&2 | |
9890 | wxUSE_LIBPNG=builtin | |
9891 | fi | |
4f14bcd8 | 9892 | else |
81809c07 | 9893 | wxUSE_LIBPNG=yes |
4f14bcd8 | 9894 | fi |
4f14bcd8 | 9895 | fi |
3a922bb4 RL |
9896 | fi |
9897 | ||
4f14bcd8 GD |
9898 | if test "$wxUSE_LIBPNG" = "builtin" ; then |
9899 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
3a922bb4 RL |
9900 | fi |
9901 | ||
4f14bcd8 | 9902 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" |
3a922bb4 RL |
9903 | fi |
9904 | ||
32832908 | 9905 | |
4f14bcd8 GD |
9906 | JPEG_INCLUDE= |
9907 | JPEG_LINK= | |
9908 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
9909 | cat >> confdefs.h <<\EOF | |
9910 | #define wxUSE_LIBJPEG 1 | |
9911 | EOF | |
10f2d63a | 9912 | |
8168de4c | 9913 | |
81809c07 VS |
9914 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then |
9915 | echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2 | |
9916 | wxUSE_LIBJPEG=sys | |
9917 | fi | |
9918 | ||
9919 | if test "$wxUSE_MGL" != 1 ; then | |
9920 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
9921 | echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 | |
4222829b | 9922 | echo "configure:9923: checking for jpeglib.h" >&5 |
81809c07 | 9923 | if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then |
8168de4c VZ |
9924 | echo $ac_n "(cached) $ac_c" 1>&6 |
9925 | else | |
4f14bcd8 | 9926 | cat > conftest.$ac_ext <<EOF |
4222829b | 9927 | #line 9928 "configure" |
4f14bcd8 | 9928 | #include "confdefs.h" |
8168de4c | 9929 | |
81809c07 VS |
9930 | #undef HAVE_STDLIB_H |
9931 | #include <stdio.h> | |
9932 | #include <jpeglib.h> | |
9933 | ||
4f14bcd8 GD |
9934 | int main() { |
9935 | ||
81809c07 | 9936 | |
4f14bcd8 GD |
9937 | ; return 0; } |
9938 | EOF | |
4222829b | 9939 | if { (eval echo configure:9940: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
9940 | rm -rf conftest* |
9941 | ac_cv_header_jpeglib_h=yes | |
6f72b082 | 9942 | else |
4f14bcd8 GD |
9943 | echo "configure: failed program was:" >&5 |
9944 | cat conftest.$ac_ext >&5 | |
9945 | rm -rf conftest* | |
9946 | ac_cv_header_jpeglib_h=no | |
81809c07 | 9947 | |
4f14bcd8 GD |
9948 | fi |
9949 | rm -f conftest* | |
81809c07 | 9950 | |
698dcdb6 | 9951 | fi |
6f72b082 | 9952 | |
81809c07 | 9953 | echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6 |
4f14bcd8 | 9954 | |
81809c07 VS |
9955 | if test "$ac_cv_header_jpeglib_h" = "yes"; then |
9956 | echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6 | |
4222829b | 9957 | echo "configure:9958: checking for jpeg_read_header in -ljpeg" >&5 |
4f14bcd8 GD |
9958 | ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'` |
9959 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9960 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6f72b082 | 9961 | else |
4f14bcd8 GD |
9962 | ac_save_LIBS="$LIBS" |
9963 | LIBS="-ljpeg $LIBS" | |
9964 | cat > conftest.$ac_ext <<EOF | |
4222829b | 9965 | #line 9966 "configure" |
4f14bcd8 GD |
9966 | #include "confdefs.h" |
9967 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9968 | /* We use char because int might match the return type of a gcc2 | |
9969 | builtin and then its argument prototype would still apply. */ | |
9970 | char jpeg_read_header(); | |
698dcdb6 | 9971 | |
4f14bcd8 GD |
9972 | int main() { |
9973 | jpeg_read_header() | |
9974 | ; return 0; } | |
9975 | EOF | |
4222829b | 9976 | if { (eval echo configure:9977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
9977 | rm -rf conftest* |
9978 | eval "ac_cv_lib_$ac_lib_var=yes" | |
6f72b082 | 9979 | else |
4f14bcd8 GD |
9980 | echo "configure: failed program was:" >&5 |
9981 | cat conftest.$ac_ext >&5 | |
9982 | rm -rf conftest* | |
9983 | eval "ac_cv_lib_$ac_lib_var=no" | |
698dcdb6 | 9984 | fi |
4f14bcd8 GD |
9985 | rm -f conftest* |
9986 | LIBS="$ac_save_LIBS" | |
698dcdb6 | 9987 | |
4f14bcd8 GD |
9988 | fi |
9989 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9990 | echo "$ac_t""yes" 1>&6 | |
3d63bc3a | 9991 | JPEG_LINK=" -ljpeg" |
4f14bcd8 GD |
9992 | else |
9993 | echo "$ac_t""no" 1>&6 | |
9994 | fi | |
9995 | ||
81809c07 | 9996 | fi |
4f14bcd8 | 9997 | |
81809c07 VS |
9998 | if test "x$JPEG_LINK" = "x" ; then |
9999 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
10000 | { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; } | |
10001 | else | |
10002 | echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2 | |
10003 | wxUSE_LIBJPEG=builtin | |
10004 | fi | |
4f14bcd8 | 10005 | else |
81809c07 | 10006 | wxUSE_LIBJPEG=sys |
4f14bcd8 | 10007 | fi |
4f14bcd8 GD |
10008 | fi |
10009 | fi | |
10010 | ||
10011 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
10012 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
10013 | fi | |
10014 | fi | |
10015 | ||
10016 | ||
10017 | TIFF_INCLUDE= | |
10018 | TIFF_LINK= | |
10019 | if test "$wxUSE_LIBTIFF" != "no" ; then | |
10020 | cat >> confdefs.h <<\EOF | |
10021 | #define wxUSE_LIBTIFF 1 | |
10022 | EOF | |
10023 | ||
10024 | ||
10025 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then | |
10026 | ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` | |
10027 | echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | |
4222829b | 10028 | echo "configure:10029: checking for tiffio.h" >&5 |
4f14bcd8 GD |
10029 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10030 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10031 | else | |
10032 | cat > conftest.$ac_ext <<EOF | |
4222829b | 10033 | #line 10034 "configure" |
4f14bcd8 GD |
10034 | #include "confdefs.h" |
10035 | #include <tiffio.h> | |
10036 | EOF | |
10037 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4222829b | 10038 | { (eval echo configure:10039: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
10039 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10040 | if test -z "$ac_err"; then | |
10041 | rm -rf conftest* | |
10042 | eval "ac_cv_header_$ac_safe=yes" | |
10043 | else | |
10044 | echo "$ac_err" >&5 | |
10045 | echo "configure: failed program was:" >&5 | |
10046 | cat conftest.$ac_ext >&5 | |
10047 | rm -rf conftest* | |
10048 | eval "ac_cv_header_$ac_safe=no" | |
10049 | fi | |
10050 | rm -f conftest* | |
10051 | fi | |
10052 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10053 | echo "$ac_t""yes" 1>&6 | |
10054 | echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6 | |
4222829b | 10055 | echo "configure:10056: checking for TIFFError in -ltiff" >&5 |
4f14bcd8 GD |
10056 | ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'` |
10057 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10058 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10059 | else | |
10060 | ac_save_LIBS="$LIBS" | |
10061 | LIBS="-ltiff -lm $LIBS" | |
10062 | cat > conftest.$ac_ext <<EOF | |
4222829b | 10063 | #line 10064 "configure" |
4f14bcd8 GD |
10064 | #include "confdefs.h" |
10065 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10066 | /* We use char because int might match the return type of a gcc2 | |
10067 | builtin and then its argument prototype would still apply. */ | |
10068 | char TIFFError(); | |
10069 | ||
10070 | int main() { | |
10071 | TIFFError() | |
10072 | ; return 0; } | |
10073 | EOF | |
4222829b | 10074 | if { (eval echo configure:10075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
10075 | rm -rf conftest* |
10076 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10077 | else | |
10078 | echo "configure: failed program was:" >&5 | |
10079 | cat conftest.$ac_ext >&5 | |
10080 | rm -rf conftest* | |
10081 | eval "ac_cv_lib_$ac_lib_var=no" | |
10082 | fi | |
10083 | rm -f conftest* | |
10084 | LIBS="$ac_save_LIBS" | |
10085 | ||
10086 | fi | |
10087 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10088 | echo "$ac_t""yes" 1>&6 | |
3d63bc3a | 10089 | TIFF_LINK=" -ltiff" |
4f14bcd8 GD |
10090 | else |
10091 | echo "$ac_t""no" 1>&6 | |
10092 | fi | |
10093 | ||
10094 | ||
10095 | else | |
10096 | echo "$ac_t""no" 1>&6 | |
10097 | fi | |
10098 | ||
10099 | ||
10100 | if test "x$TIFF_LINK" = "x" ; then | |
10101 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
10102 | { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; } | |
10103 | else | |
a3df447d | 10104 | echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2 |
4f14bcd8 GD |
10105 | wxUSE_LIBTIFF=builtin |
10106 | fi | |
10107 | else | |
10108 | wxUSE_LIBTIFF=sys | |
10109 | fi | |
10110 | fi | |
10111 | ||
10112 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
10113 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" | |
10114 | fi | |
10115 | fi | |
10116 | ||
10117 | ||
4f14bcd8 GD |
10118 | AFMINSTALL= |
10119 | ||
10120 | TOOLKIT= | |
10121 | TOOLKIT_INCLUDE= | |
10122 | WIDGET_SET= | |
10123 | ||
10124 | if test "$USE_WIN32" = 1 ; then | |
10125 | for ac_hdr in w32api.h | |
10126 | do | |
10127 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
10128 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
4222829b | 10129 | echo "configure:10130: checking for $ac_hdr" >&5 |
4f14bcd8 GD |
10130 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10131 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10132 | else | |
10133 | cat > conftest.$ac_ext <<EOF | |
4222829b | 10134 | #line 10135 "configure" |
4f14bcd8 GD |
10135 | #include "confdefs.h" |
10136 | #include <$ac_hdr> | |
10137 | EOF | |
10138 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4222829b | 10139 | { (eval echo configure:10140: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
10140 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10141 | if test -z "$ac_err"; then | |
10142 | rm -rf conftest* | |
10143 | eval "ac_cv_header_$ac_safe=yes" | |
10144 | else | |
10145 | echo "$ac_err" >&5 | |
10146 | echo "configure: failed program was:" >&5 | |
10147 | cat conftest.$ac_ext >&5 | |
10148 | rm -rf conftest* | |
10149 | eval "ac_cv_header_$ac_safe=no" | |
10150 | fi | |
10151 | rm -f conftest* | |
10152 | fi | |
10153 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10154 | echo "$ac_t""yes" 1>&6 | |
10155 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10156 | cat >> confdefs.h <<EOF | |
10157 | #define $ac_tr_hdr 1 | |
10158 | EOF | |
10159 | ||
10160 | else | |
10161 | echo "$ac_t""no" 1>&6 | |
10162 | fi | |
10163 | done | |
10164 | ||
10165 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` | |
10166 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
4222829b | 10167 | echo "configure:10168: checking for windows.h" >&5 |
4f14bcd8 GD |
10168 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10169 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10170 | else | |
10171 | cat > conftest.$ac_ext <<EOF | |
4222829b | 10172 | #line 10173 "configure" |
4f14bcd8 GD |
10173 | #include "confdefs.h" |
10174 | #include <windows.h> | |
10175 | EOF | |
10176 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4222829b | 10177 | { (eval echo configure:10178: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
10178 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10179 | if test -z "$ac_err"; then | |
10180 | rm -rf conftest* | |
10181 | eval "ac_cv_header_$ac_safe=yes" | |
10182 | else | |
10183 | echo "$ac_err" >&5 | |
10184 | echo "configure: failed program was:" >&5 | |
10185 | cat conftest.$ac_ext >&5 | |
10186 | rm -rf conftest* | |
10187 | eval "ac_cv_header_$ac_safe=no" | |
10188 | fi | |
10189 | rm -f conftest* | |
10190 | fi | |
10191 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10192 | echo "$ac_t""yes" 1>&6 | |
10193 | : | |
10194 | else | |
10195 | echo "$ac_t""no" 1>&6 | |
10196 | ||
10197 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
10198 | ||
10199 | fi | |
10200 | ||
10201 | ||
10202 | echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6 | |
4222829b | 10203 | echo "configure:10204: checking if w32api has good enough MSIE support" >&5 |
ea7682f0 | 10204 | if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then |
4f14bcd8 GD |
10205 | echo $ac_n "(cached) $ac_c" 1>&6 |
10206 | else | |
10207 | ||
10208 | cat > conftest.$ac_ext <<EOF | |
4222829b | 10209 | #line 10210 "configure" |
4f14bcd8 GD |
10210 | #include "confdefs.h" |
10211 | #include <w32api.h> | |
10212 | int main() { | |
10213 | ||
10214 | #define wxCHECK_W32API_VERSION( major, minor ) \ | |
10215 | ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \ | |
10216 | && ( ( __W32API_MAJOR_VERSION > (major) ) \ | |
10217 | || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor)))) | |
10218 | ||
10219 | #if !wxCHECK_W32API_VERSION(1,1) | |
10220 | #error You need w32api 1.1 or newer | |
10221 | #endif | |
10222 | ||
10223 | ; return 0; } | |
10224 | EOF | |
4222829b | 10225 | if { (eval echo configure:10226: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
10226 | rm -rf conftest* |
10227 | ||
ea7682f0 | 10228 | wx_cv_w32api_win32_ie=yes |
4f14bcd8 GD |
10229 | |
10230 | else | |
10231 | echo "configure: failed program was:" >&5 | |
10232 | cat conftest.$ac_ext >&5 | |
10233 | rm -rf conftest* | |
10234 | ||
ea7682f0 | 10235 | wx_cv_w32api_win32_ie=no |
4f14bcd8 GD |
10236 | |
10237 | fi | |
10238 | rm -f conftest* | |
10239 | ||
10240 | fi | |
10241 | ||
ea7682f0 VS |
10242 | echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6 |
10243 | if test "$wx_cv_w32api_win32_ie" = "yes" ; then | |
10244 | CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400" | |
10245 | fi | |
4f14bcd8 GD |
10246 | |
10247 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32" | |
10248 | ||
77e13408 RL |
10249 | case "${host}" in |
10250 | *-*-cygwin* ) | |
10251 | LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32" | |
10252 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" | |
10253 | esac | |
4f14bcd8 GD |
10254 | |
10255 | if test "$wxUSE_ODBC" = "yes" ; then | |
a72a4bfa | 10256 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" |
4f14bcd8 GD |
10257 | fi |
10258 | ||
4f14bcd8 GD |
10259 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
10260 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
10261 | fi | |
10262 | ||
10263 | if test "$wxUSE_GUI" = "yes"; then | |
10264 | USE_GUI=1 | |
10265 | ||
10266 | GUI_TK_LIBRARY= | |
10267 | ||
10268 | WXGTK12= | |
10269 | WXGTK127= | |
10270 | WXGTK20= | |
10271 | ||
77e13408 | 10272 | if test "$wxUSE_MSW" = 1 ; then |
4f14bcd8 GD |
10273 | TOOLKIT=MSW |
10274 | GUIDIST=MSW_DIST | |
77e13408 RL |
10275 | |
10276 | case "${host}" in | |
10277 | *-*-mingw32* ) | |
3d63bc3a | 10278 | LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows" |
77e13408 | 10279 | esac |
4f14bcd8 GD |
10280 | fi |
10281 | ||
10282 | if test "$wxUSE_GTK" = 1; then | |
10283 | echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6 | |
4222829b | 10284 | echo "configure:10285: checking for GTK+ version" >&5 |
4f14bcd8 GD |
10285 | |
10286 | gtk_version_cached=1 | |
10287 | if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then | |
10288 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10289 | else | |
10290 | ||
10291 | gtk_version_cached=0 | |
d48ad9bd | 10292 | echo "$ac_t""" 1>&6 |
4f14bcd8 | 10293 | |
3f345b47 VZ |
10294 | GTK_MODULES= |
10295 | if test "$wxUSE_THREADS" = "yes"; then | |
10296 | GTK_MODULES=gthread | |
10297 | fi | |
10298 | ||
4f14bcd8 GD |
10299 | wx_cv_lib_gtk= |
10300 | if test "x$wxUSE_GTK2" = "xyes"; then | |
10301 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
10302 | if test "${with_gtk_prefix+set}" = set; then | |
10303 | withval="$with_gtk_prefix" | |
10304 | gtk_config_prefix="$withval" | |
10305 | else | |
10306 | gtk_config_prefix="" | |
10307 | fi | |
10308 | ||
10309 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
10310 | if test "${with_gtk_exec_prefix+set}" = set; then | |
10311 | withval="$with_gtk_exec_prefix" | |
10312 | gtk_config_exec_prefix="$withval" | |
10313 | else | |
10314 | gtk_config_exec_prefix="" | |
10315 | fi | |
10316 | ||
10317 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
10318 | if test "${enable_gtktest+set}" = set; then | |
10319 | enableval="$enable_gtktest" | |
10320 | : | |
10321 | else | |
10322 | enable_gtktest=yes | |
10323 | fi | |
10324 | ||
10325 | ||
3f345b47 | 10326 | for module in . $GTK_MODULES |
4f14bcd8 | 10327 | do |
6f72b082 | 10328 | case "$module" in |
8168de4c | 10329 | gthread) |
6f72b082 OK |
10330 | gtk_config_args="$gtk_config_args gthread" |
10331 | ;; | |
10332 | esac | |
10333 | done | |
10334 | ||
10335 | if test x$gtk_config_exec_prefix != x ; then | |
10336 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
10337 | if test x${GTK_CONFIG_2_0+set} != xset ; then | |
10338 | GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0 | |
10339 | fi | |
10340 | fi | |
10341 | if test x$gtk_config_prefix != x ; then | |
10342 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
10343 | if test x${GTK_CONFIG_2_0+set} != xset ; then | |
10344 | GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0 | |
10345 | fi | |
10346 | fi | |
10347 | ||
10348 | # Extract the first word of "gtk-config-2.0", so it can be a program name with args. | |
10349 | set dummy gtk-config-2.0; ac_word=$2 | |
698dcdb6 | 10350 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
4222829b | 10351 | echo "configure:10352: checking for $ac_word" >&5 |
698dcdb6 VZ |
10352 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then |
10353 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6f72b082 | 10354 | else |
698dcdb6 VZ |
10355 | case "$GTK_CONFIG_2_0" in |
10356 | /*) | |
6f72b082 OK |
10357 | ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path. |
10358 | ;; | |
698dcdb6 VZ |
10359 | ?:/*) |
10360 | ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path. | |
10361 | ;; | |
6f72b082 | 10362 | *) |
698dcdb6 VZ |
10363 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
10364 | ac_dummy="$PATH" | |
10365 | for ac_dir in $ac_dummy; do | |
10366 | test -z "$ac_dir" && ac_dir=. | |
10367 | if test -f $ac_dir/$ac_word; then | |
10368 | ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word" | |
10369 | break | |
10370 | fi | |
10371 | done | |
10372 | IFS="$ac_save_ifs" | |
6f72b082 OK |
10373 | test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no" |
10374 | ;; | |
10375 | esac | |
10376 | fi | |
698dcdb6 | 10377 | GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0" |
6f72b082 | 10378 | if test -n "$GTK_CONFIG_2_0"; then |
698dcdb6 | 10379 | echo "$ac_t""$GTK_CONFIG_2_0" 1>&6 |
6f72b082 | 10380 | else |
698dcdb6 | 10381 | echo "$ac_t""no" 1>&6 |
6f72b082 OK |
10382 | fi |
10383 | ||
10384 | min_gtk_version=1.3.1 | |
698dcdb6 | 10385 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
4222829b | 10386 | echo "configure:10387: checking for GTK - version >= $min_gtk_version" >&5 |
6f72b082 OK |
10387 | no_gtk="" |
10388 | if test "$GTK_CONFIG_2_0" = "no" ; then | |
10389 | no_gtk=yes | |
10390 | else | |
10391 | GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags` | |
10392 | GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs` | |
10393 | gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
10394 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
10395 | gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
10396 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
10397 | gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
10398 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
10399 | if test "x$enable_gtktest" = "xyes" ; then | |
10400 | ac_save_CFLAGS="$CFLAGS" | |
10401 | ac_save_LIBS="$LIBS" | |
10402 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
10403 | LIBS="$GTK_LIBS $LIBS" | |
10404 | rm -f conf.gtktest | |
10405 | if test "$cross_compiling" = yes; then | |
10406 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
10407 | else | |
698dcdb6 | 10408 | cat > conftest.$ac_ext <<EOF |
4222829b | 10409 | #line 10410 "configure" |
6f72b082 OK |
10410 | #include "confdefs.h" |
10411 | ||
10412 | #include <gtk/gtk.h> | |
10413 | #include <stdio.h> | |
10414 | #include <stdlib.h> | |
10415 | ||
8168de4c | 10416 | int |
6f72b082 OK |
10417 | main () |
10418 | { | |
10419 | int major, minor, micro; | |
10420 | char *tmp_version; | |
10421 | ||
10422 | system ("touch conf.gtktest"); | |
10423 | ||
10424 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
10425 | tmp_version = g_strdup("$min_gtk_version"); | |
10426 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
10427 | printf("%s, bad version string\n", "$min_gtk_version"); | |
10428 | exit(1); | |
10429 | } | |
10430 | ||
10431 | if ((gtk_major_version != $gtk_config_major_version) || | |
10432 | (gtk_minor_version != $gtk_config_minor_version) || | |
10433 | (gtk_micro_version != $gtk_config_micro_version)) | |
10434 | { | |
8168de4c | 10435 | printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
6f72b082 OK |
10436 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
10437 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
10438 | printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n"); | |
10439 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
10440 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
10441 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
10442 | printf("*** required on your system.\n"); | |
10443 | printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n"); | |
10444 | printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n"); | |
10445 | printf("*** before re-running configure\n"); | |
8168de4c | 10446 | } |
6f72b082 OK |
10447 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
10448 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
8168de4c | 10449 | (gtk_minor_version != GTK_MINOR_VERSION) || |
6f72b082 OK |
10450 | (gtk_micro_version != GTK_MICRO_VERSION)) |
10451 | { | |
10452 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
8168de4c | 10453 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); |
6f72b082 | 10454 | printf("*** library (version %d.%d.%d)\n", |
8168de4c | 10455 | gtk_major_version, gtk_minor_version, gtk_micro_version); |
6f72b082 OK |
10456 | } |
10457 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
10458 | else | |
10459 | { | |
10460 | if ((gtk_major_version > major) || | |
10461 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
10462 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
10463 | { | |
10464 | return 0; | |
10465 | } | |
10466 | else | |
10467 | { | |
10468 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
10469 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
10470 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
8168de4c | 10471 | major, minor, micro); |
6f72b082 OK |
10472 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); |
10473 | printf("***\n"); | |
10474 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
10475 | printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n"); | |
10476 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
10477 | printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n"); | |
10478 | printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n"); | |
10479 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
10480 | printf("*** so that the correct libraries are found at run-time))\n"); | |
10481 | } | |
10482 | } | |
10483 | return 1; | |
10484 | } | |
10485 | ||
698dcdb6 | 10486 | EOF |
4222829b | 10487 | if { (eval echo configure:10488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 10488 | then |
6f72b082 OK |
10489 | : |
10490 | else | |
698dcdb6 VZ |
10491 | echo "configure: failed program was:" >&5 |
10492 | cat conftest.$ac_ext >&5 | |
10493 | rm -fr conftest* | |
10494 | no_gtk=yes | |
6f72b082 | 10495 | fi |
698dcdb6 | 10496 | rm -fr conftest* |
6f72b082 | 10497 | fi |
698dcdb6 | 10498 | |
6f72b082 OK |
10499 | CFLAGS="$ac_save_CFLAGS" |
10500 | LIBS="$ac_save_LIBS" | |
10501 | fi | |
10502 | fi | |
10503 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 10504 | echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6 |
8168de4c | 10505 | wx_cv_lib_gtk=2.0 |
6f72b082 | 10506 | else |
698dcdb6 | 10507 | echo "$ac_t""no" 1>&6 |
6f72b082 OK |
10508 | if test "$GTK_CONFIG_2_0" = "no" ; then |
10509 | echo "*** The gtk-config-2.0 script installed by GTK could not be found" | |
10510 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
10511 | echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the" | |
10512 | echo "*** full path to gtk-config-2.0." | |
10513 | else | |
10514 | if test -f conf.gtktest ; then | |
10515 | : | |
10516 | else | |
10517 | echo "*** Could not run GTK test program, checking why..." | |
10518 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
10519 | LIBS="$LIBS $GTK_LIBS" | |
698dcdb6 | 10520 | cat > conftest.$ac_ext <<EOF |
4222829b | 10521 | #line 10522 "configure" |
6f72b082 OK |
10522 | #include "confdefs.h" |
10523 | ||
10524 | #include <gtk/gtk.h> | |
10525 | #include <stdio.h> | |
10526 | ||
698dcdb6 VZ |
10527 | int main() { |
10528 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
10529 | ; return 0; } | |
10530 | EOF | |
4222829b | 10531 | if { (eval echo configure:10532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 10532 | rm -rf conftest* |
6f72b082 OK |
10533 | echo "*** The test program compiled, but did not run. This usually means" |
10534 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
10535 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
10536 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
10537 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
10538 | echo "*** is required on your system" | |
8168de4c | 10539 | echo "***" |
6f72b082 OK |
10540 | echo "*** If you have an old version installed, it is best to remove it, although" |
10541 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
10542 | echo "***" | |
10543 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
10544 | echo "*** came with the system with the command" | |
10545 | echo "***" | |
698dcdb6 | 10546 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
6f72b082 | 10547 | else |
698dcdb6 VZ |
10548 | echo "configure: failed program was:" >&5 |
10549 | cat conftest.$ac_ext >&5 | |
10550 | rm -rf conftest* | |
10551 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
6f72b082 OK |
10552 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
10553 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
698dcdb6 | 10554 | echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0" |
6f72b082 | 10555 | fi |
698dcdb6 | 10556 | rm -f conftest* |
6f72b082 OK |
10557 | CFLAGS="$ac_save_CFLAGS" |
10558 | LIBS="$ac_save_LIBS" | |
10559 | fi | |
10560 | fi | |
10561 | GTK_CFLAGS="" | |
10562 | GTK_LIBS="" | |
3f345b47 | 10563 | : |
8168de4c VZ |
10564 | fi |
10565 | ||
10566 | ||
10567 | rm -f conf.gtktest | |
10568 | ||
10569 | fi | |
10570 | ||
10571 | if test -z "$wx_cv_lib_gtk"; then | |
3f345b47 VZ |
10572 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. |
10573 | if test "${with_gtk_prefix+set}" = set; then | |
10574 | withval="$with_gtk_prefix" | |
10575 | gtk_config_prefix="$withval" | |
10576 | else | |
10577 | gtk_config_prefix="" | |
10578 | fi | |
10579 | ||
10580 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
10581 | if test "${with_gtk_exec_prefix+set}" = set; then | |
10582 | withval="$with_gtk_exec_prefix" | |
10583 | gtk_config_exec_prefix="$withval" | |
10584 | else | |
10585 | gtk_config_exec_prefix="" | |
10586 | fi | |
10587 | ||
10588 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
10589 | if test "${enable_gtktest+set}" = set; then | |
10590 | enableval="$enable_gtktest" | |
10591 | : | |
10592 | else | |
10593 | enable_gtktest=yes | |
10594 | fi | |
10595 | ||
10596 | ||
10597 | for module in . $GTK_MODULES | |
10598 | do | |
10599 | case "$module" in | |
10600 | gthread) | |
10601 | gtk_config_args="$gtk_config_args gthread" | |
10602 | ;; | |
10603 | esac | |
10604 | done | |
10605 | ||
10f2d63a VZ |
10606 | if test x$gtk_config_exec_prefix != x ; then |
10607 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
10608 | if test x${GTK_CONFIG+set} != xset ; then | |
10609 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
10610 | fi | |
10611 | fi | |
10612 | if test x$gtk_config_prefix != x ; then | |
10613 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
10614 | if test x${GTK_CONFIG+set} != xset ; then | |
10615 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
10616 | fi | |
10617 | fi | |
10618 | ||
10619 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
10620 | set dummy gtk-config; ac_word=$2 | |
698dcdb6 | 10621 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
4222829b | 10622 | echo "configure:10623: checking for $ac_word" >&5 |
698dcdb6 VZ |
10623 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
10624 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 10625 | else |
698dcdb6 VZ |
10626 | case "$GTK_CONFIG" in |
10627 | /*) | |
f6bcfd97 BP |
10628 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
10629 | ;; | |
698dcdb6 VZ |
10630 | ?:/*) |
10631 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
10632 | ;; | |
f6bcfd97 | 10633 | *) |
698dcdb6 VZ |
10634 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
10635 | ac_dummy="$PATH" | |
10636 | for ac_dir in $ac_dummy; do | |
10637 | test -z "$ac_dir" && ac_dir=. | |
10638 | if test -f $ac_dir/$ac_word; then | |
10639 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
10640 | break | |
10641 | fi | |
10642 | done | |
10643 | IFS="$ac_save_ifs" | |
f6bcfd97 BP |
10644 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
10645 | ;; | |
10646 | esac | |
10647 | fi | |
698dcdb6 | 10648 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
f6bcfd97 | 10649 | if test -n "$GTK_CONFIG"; then |
698dcdb6 | 10650 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
f6bcfd97 | 10651 | else |
698dcdb6 | 10652 | echo "$ac_t""no" 1>&6 |
f6bcfd97 BP |
10653 | fi |
10654 | ||
10655 | min_gtk_version=1.2.7 | |
698dcdb6 | 10656 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
4222829b | 10657 | echo "configure:10658: checking for GTK - version >= $min_gtk_version" >&5 |
f6bcfd97 | 10658 | no_gtk="" |
3f345b47 VZ |
10659 | if test "$GTK_CONFIG" = "no" ; then |
10660 | no_gtk=yes | |
10661 | else | |
10662 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
10663 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
10664 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
10665 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
10666 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
10667 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
10668 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
10669 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
10670 | if test "x$enable_gtktest" = "xyes" ; then | |
10671 | ac_save_CFLAGS="$CFLAGS" | |
10672 | ac_save_LIBS="$LIBS" | |
10673 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
10674 | LIBS="$GTK_LIBS $LIBS" | |
10675 | rm -f conf.gtktest | |
10676 | if test "$cross_compiling" = yes; then | |
f6bcfd97 BP |
10677 | echo $ac_n "cross compiling; assumed OK... $ac_c" |
10678 | else | |
698dcdb6 | 10679 | cat > conftest.$ac_ext <<EOF |
4222829b | 10680 | #line 10681 "configure" |
f6bcfd97 BP |
10681 | #include "confdefs.h" |
10682 | ||
10683 | #include <gtk/gtk.h> | |
f6bcfd97 BP |
10684 | #include <stdio.h> |
10685 | #include <stdlib.h> | |
10686 | ||
3f345b47 | 10687 | int |
f6bcfd97 BP |
10688 | main () |
10689 | { | |
10690 | int major, minor, micro; | |
3f345b47 | 10691 | char *tmp_version; |
f6bcfd97 | 10692 | |
3f345b47 | 10693 | system ("touch conf.gtktest"); |
f6bcfd97 | 10694 | |
3f345b47 VZ |
10695 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
10696 | tmp_version = g_strdup("$min_gtk_version"); | |
10697 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
10698 | printf("%s, bad version string\n", "$min_gtk_version"); | |
f6bcfd97 BP |
10699 | exit(1); |
10700 | } | |
10701 | ||
3f345b47 VZ |
10702 | if ((gtk_major_version != $gtk_config_major_version) || |
10703 | (gtk_minor_version != $gtk_config_minor_version) || | |
10704 | (gtk_micro_version != $gtk_config_micro_version)) | |
10705 | { | |
10706 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
10707 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
10708 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
10709 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
10710 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
10711 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
10712 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
10713 | printf("*** required on your system.\n"); | |
10714 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
10715 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
10716 | printf("*** before re-running configure\n"); | |
10717 | } | |
10718 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
10719 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
10720 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
10721 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
10722 | { | |
10723 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
10724 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
10725 | printf("*** library (version %d.%d.%d)\n", | |
10726 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
10727 | } | |
10728 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
10729 | else | |
10730 | { | |
10731 | if ((gtk_major_version > major) || | |
10732 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
10733 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
10734 | { | |
10735 | return 0; | |
10736 | } | |
10737 | else | |
10738 | { | |
10739 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
10740 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
10741 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
10742 | major, minor, micro); | |
10743 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
10744 | printf("***\n"); | |
10745 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
10746 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
10747 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
10748 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
10749 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
10750 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
10751 | printf("*** so that the correct libraries are found at run-time))\n"); | |
10752 | } | |
10753 | } | |
10754 | return 1; | |
f6bcfd97 BP |
10755 | } |
10756 | ||
698dcdb6 | 10757 | EOF |
4222829b | 10758 | if { (eval echo configure:10759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 10759 | then |
f6bcfd97 BP |
10760 | : |
10761 | else | |
698dcdb6 VZ |
10762 | echo "configure: failed program was:" >&5 |
10763 | cat conftest.$ac_ext >&5 | |
10764 | rm -fr conftest* | |
10765 | no_gtk=yes | |
f6bcfd97 | 10766 | fi |
698dcdb6 | 10767 | rm -fr conftest* |
f6bcfd97 | 10768 | fi |
698dcdb6 | 10769 | |
3f345b47 VZ |
10770 | CFLAGS="$ac_save_CFLAGS" |
10771 | LIBS="$ac_save_LIBS" | |
10772 | fi | |
f6bcfd97 BP |
10773 | fi |
10774 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 10775 | echo "$ac_t""yes" 1>&6 |
3f345b47 | 10776 | wx_cv_lib_gtk=1.2.7 |
f6bcfd97 | 10777 | else |
698dcdb6 | 10778 | echo "$ac_t""no" 1>&6 |
3f345b47 VZ |
10779 | if test "$GTK_CONFIG" = "no" ; then |
10780 | echo "*** The gtk-config script installed by GTK could not be found" | |
10781 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
10782 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
10783 | echo "*** full path to gtk-config." | |
10784 | else | |
10785 | if test -f conf.gtktest ; then | |
10786 | : | |
10787 | else | |
10788 | echo "*** Could not run GTK test program, checking why..." | |
10789 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
10790 | LIBS="$LIBS $GTK_LIBS" | |
10791 | cat > conftest.$ac_ext <<EOF | |
4222829b | 10792 | #line 10793 "configure" |
3f345b47 VZ |
10793 | #include "confdefs.h" |
10794 | ||
10795 | #include <gtk/gtk.h> | |
10796 | #include <stdio.h> | |
10797 | ||
10798 | int main() { | |
10799 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
10800 | ; return 0; } | |
10801 | EOF | |
4222829b | 10802 | if { (eval echo configure:10803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3f345b47 VZ |
10803 | rm -rf conftest* |
10804 | echo "*** The test program compiled, but did not run. This usually means" | |
10805 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
10806 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
10807 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
10808 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
10809 | echo "*** is required on your system" | |
10810 | echo "***" | |
10811 | echo "*** If you have an old version installed, it is best to remove it, although" | |
10812 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
10813 | echo "***" | |
10814 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
10815 | echo "*** came with the system with the command" | |
10816 | echo "***" | |
10817 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
10818 | else | |
10819 | echo "configure: failed program was:" >&5 | |
10820 | cat conftest.$ac_ext >&5 | |
10821 | rm -rf conftest* | |
10822 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
10823 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
10824 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
10825 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
10826 | fi | |
10827 | rm -f conftest* | |
10828 | CFLAGS="$ac_save_CFLAGS" | |
10829 | LIBS="$ac_save_LIBS" | |
10830 | fi | |
10831 | fi | |
f6bcfd97 BP |
10832 | GTK_CFLAGS="" |
10833 | GTK_LIBS="" | |
10834 | : | |
10835 | fi | |
698dcdb6 VZ |
10836 | |
10837 | ||
3f345b47 | 10838 | rm -f conf.gtktest |
f6bcfd97 | 10839 | |
8168de4c VZ |
10840 | fi |
10841 | ||
10842 | if test -z "$wx_cv_lib_gtk"; then | |
3f345b47 VZ |
10843 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. |
10844 | if test "${with_gtk_prefix+set}" = set; then | |
10845 | withval="$with_gtk_prefix" | |
10846 | gtk_config_prefix="$withval" | |
10847 | else | |
10848 | gtk_config_prefix="" | |
10849 | fi | |
10850 | ||
10851 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
10852 | if test "${with_gtk_exec_prefix+set}" = set; then | |
10853 | withval="$with_gtk_exec_prefix" | |
10854 | gtk_config_exec_prefix="$withval" | |
10855 | else | |
10856 | gtk_config_exec_prefix="" | |
10857 | fi | |
10858 | ||
10859 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
10860 | if test "${enable_gtktest+set}" = set; then | |
10861 | enableval="$enable_gtktest" | |
10862 | : | |
10863 | else | |
10864 | enable_gtktest=yes | |
10865 | fi | |
10866 | ||
10867 | ||
10868 | for module in . $GTK_MODULES | |
10869 | do | |
10870 | case "$module" in | |
10871 | gthread) | |
10872 | gtk_config_args="$gtk_config_args gthread" | |
10873 | ;; | |
10874 | esac | |
10875 | done | |
10876 | ||
f6bcfd97 BP |
10877 | if test x$gtk_config_exec_prefix != x ; then |
10878 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
10879 | if test x${GTK_CONFIG+set} != xset ; then | |
10880 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
10881 | fi | |
10882 | fi | |
10883 | if test x$gtk_config_prefix != x ; then | |
10884 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
10885 | if test x${GTK_CONFIG+set} != xset ; then | |
10886 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
10887 | fi | |
10888 | fi | |
10889 | ||
10890 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
10891 | set dummy gtk-config; ac_word=$2 | |
698dcdb6 | 10892 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
4222829b | 10893 | echo "configure:10894: checking for $ac_word" >&5 |
698dcdb6 VZ |
10894 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
10895 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 10896 | else |
698dcdb6 VZ |
10897 | case "$GTK_CONFIG" in |
10898 | /*) | |
10f2d63a VZ |
10899 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
10900 | ;; | |
698dcdb6 VZ |
10901 | ?:/*) |
10902 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
10903 | ;; | |
10f2d63a | 10904 | *) |
698dcdb6 VZ |
10905 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
10906 | ac_dummy="$PATH" | |
10907 | for ac_dir in $ac_dummy; do | |
10908 | test -z "$ac_dir" && ac_dir=. | |
10909 | if test -f $ac_dir/$ac_word; then | |
10910 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
10911 | break | |
10912 | fi | |
10913 | done | |
10914 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
10915 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
10916 | ;; | |
10917 | esac | |
10918 | fi | |
698dcdb6 | 10919 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
10f2d63a | 10920 | if test -n "$GTK_CONFIG"; then |
698dcdb6 | 10921 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
10f2d63a | 10922 | else |
698dcdb6 | 10923 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
10924 | fi |
10925 | ||
04165bec | 10926 | min_gtk_version=1.2.3 |
698dcdb6 | 10927 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
4222829b | 10928 | echo "configure:10929: checking for GTK - version >= $min_gtk_version" >&5 |
10f2d63a | 10929 | no_gtk="" |
3f345b47 VZ |
10930 | if test "$GTK_CONFIG" = "no" ; then |
10931 | no_gtk=yes | |
10932 | else | |
10933 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
10934 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
10935 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
10936 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
10937 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
10938 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
10939 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
10940 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
10941 | if test "x$enable_gtktest" = "xyes" ; then | |
10942 | ac_save_CFLAGS="$CFLAGS" | |
10943 | ac_save_LIBS="$LIBS" | |
10944 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
10945 | LIBS="$GTK_LIBS $LIBS" | |
10946 | rm -f conf.gtktest | |
10947 | if test "$cross_compiling" = yes; then | |
10f2d63a VZ |
10948 | echo $ac_n "cross compiling; assumed OK... $ac_c" |
10949 | else | |
698dcdb6 | 10950 | cat > conftest.$ac_ext <<EOF |
4222829b | 10951 | #line 10952 "configure" |
10f2d63a VZ |
10952 | #include "confdefs.h" |
10953 | ||
10954 | #include <gtk/gtk.h> | |
10955 | #include <stdio.h> | |
32832908 | 10956 | #include <stdlib.h> |
10f2d63a | 10957 | |
3f345b47 | 10958 | int |
10f2d63a VZ |
10959 | main () |
10960 | { | |
10961 | int major, minor, micro; | |
3f345b47 | 10962 | char *tmp_version; |
10f2d63a | 10963 | |
3f345b47 | 10964 | system ("touch conf.gtktest"); |
10f2d63a | 10965 | |
3f345b47 VZ |
10966 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
10967 | tmp_version = g_strdup("$min_gtk_version"); | |
10968 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
10969 | printf("%s, bad version string\n", "$min_gtk_version"); | |
f49f2b0c RR |
10970 | exit(1); |
10971 | } | |
10972 | ||
3f345b47 VZ |
10973 | if ((gtk_major_version != $gtk_config_major_version) || |
10974 | (gtk_minor_version != $gtk_config_minor_version) || | |
10975 | (gtk_micro_version != $gtk_config_micro_version)) | |
10976 | { | |
10977 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
10978 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
10979 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
10980 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
10981 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
10982 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
10983 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
10984 | printf("*** required on your system.\n"); | |
10985 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
10986 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
10987 | printf("*** before re-running configure\n"); | |
10988 | } | |
10989 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
10990 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
10991 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
10992 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
10993 | { | |
10994 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
10995 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
10996 | printf("*** library (version %d.%d.%d)\n", | |
10997 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
10998 | } | |
10999 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
11000 | else | |
11001 | { | |
11002 | if ((gtk_major_version > major) || | |
11003 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
11004 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
11005 | { | |
11006 | return 0; | |
11007 | } | |
11008 | else | |
11009 | { | |
11010 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
11011 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
11012 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
11013 | major, minor, micro); | |
11014 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
11015 | printf("***\n"); | |
11016 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
11017 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
11018 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
11019 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
11020 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
11021 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
11022 | printf("*** so that the correct libraries are found at run-time))\n"); | |
11023 | } | |
11024 | } | |
11025 | return 1; | |
10f2d63a VZ |
11026 | } |
11027 | ||
698dcdb6 | 11028 | EOF |
4222829b | 11029 | if { (eval echo configure:11030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 11030 | then |
10f2d63a VZ |
11031 | : |
11032 | else | |
698dcdb6 VZ |
11033 | echo "configure: failed program was:" >&5 |
11034 | cat conftest.$ac_ext >&5 | |
11035 | rm -fr conftest* | |
11036 | no_gtk=yes | |
10f2d63a | 11037 | fi |
698dcdb6 | 11038 | rm -fr conftest* |
10f2d63a | 11039 | fi |
698dcdb6 | 11040 | |
3f345b47 VZ |
11041 | CFLAGS="$ac_save_CFLAGS" |
11042 | LIBS="$ac_save_LIBS" | |
11043 | fi | |
10f2d63a VZ |
11044 | fi |
11045 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 11046 | echo "$ac_t""yes" 1>&6 |
3f345b47 | 11047 | wx_cv_lib_gtk=1.2.3 |
10f2d63a | 11048 | else |
698dcdb6 | 11049 | echo "$ac_t""no" 1>&6 |
3f345b47 VZ |
11050 | if test "$GTK_CONFIG" = "no" ; then |
11051 | echo "*** The gtk-config script installed by GTK could not be found" | |
11052 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
11053 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
11054 | echo "*** full path to gtk-config." | |
11055 | else | |
11056 | if test -f conf.gtktest ; then | |
11057 | : | |
11058 | else | |
11059 | echo "*** Could not run GTK test program, checking why..." | |
11060 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
11061 | LIBS="$LIBS $GTK_LIBS" | |
11062 | cat > conftest.$ac_ext <<EOF | |
4222829b | 11063 | #line 11064 "configure" |
3f345b47 VZ |
11064 | #include "confdefs.h" |
11065 | ||
11066 | #include <gtk/gtk.h> | |
11067 | #include <stdio.h> | |
11068 | ||
11069 | int main() { | |
11070 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
11071 | ; return 0; } | |
11072 | EOF | |
4222829b | 11073 | if { (eval echo configure:11074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3f345b47 VZ |
11074 | rm -rf conftest* |
11075 | echo "*** The test program compiled, but did not run. This usually means" | |
11076 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
11077 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
11078 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
11079 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
11080 | echo "*** is required on your system" | |
11081 | echo "***" | |
11082 | echo "*** If you have an old version installed, it is best to remove it, although" | |
11083 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
11084 | echo "***" | |
11085 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
11086 | echo "*** came with the system with the command" | |
11087 | echo "***" | |
11088 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
11089 | else | |
11090 | echo "configure: failed program was:" >&5 | |
11091 | cat conftest.$ac_ext >&5 | |
11092 | rm -rf conftest* | |
11093 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
11094 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
11095 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
11096 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
11097 | fi | |
11098 | rm -f conftest* | |
11099 | CFLAGS="$ac_save_CFLAGS" | |
11100 | LIBS="$ac_save_LIBS" | |
11101 | fi | |
11102 | fi | |
10f2d63a VZ |
11103 | GTK_CFLAGS="" |
11104 | GTK_LIBS="" | |
7e99ad86 | 11105 | : |
10f2d63a | 11106 | fi |
698dcdb6 VZ |
11107 | |
11108 | ||
3f345b47 | 11109 | rm -f conf.gtktest |
10f2d63a | 11110 | |
8168de4c VZ |
11111 | fi |
11112 | ||
11113 | if test -z "$wx_cv_lib_gtk"; then | |
11114 | wx_cv_lib_gtk=none | |
138be253 VZ |
11115 | else |
11116 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
11117 | wx_cv_libs_gtk=$GTK_LIBS | |
8168de4c VZ |
11118 | fi |
11119 | ||
1e6feb95 | 11120 | |
8168de4c | 11121 | fi |
703e0a69 | 11122 | |
698dcdb6 | 11123 | |
8168de4c VZ |
11124 | if test "$gtk_version_cached" = 1; then |
11125 | echo "$ac_t""$wx_cv_lib_gtk" 1>&6 | |
1e6feb95 | 11126 | fi |
698dcdb6 | 11127 | |
8168de4c VZ |
11128 | case "$wx_cv_lib_gtk" in |
11129 | 2.0) WXGTK20=1 | |
11130 | ;; | |
11131 | 1.2.7) WXGTK127=1 | |
d1a8d972 | 11132 | WXGTK12=1 |
8168de4c VZ |
11133 | ;; |
11134 | 1.2.3) WXGTK12=1 | |
11135 | ;; | |
11136 | *) { echo "configure: error: | |
11137 | Please check that gtk-config is in path, the directory | |
11138 | where GTK+ libraries are installed (returned by | |
11139 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
11140 | equivalent variable and GTK+ is version 1.2.3 or above. | |
11141 | " 1>&2; exit 1; } | |
11142 | ;; | |
11143 | esac | |
2224580a | 11144 | |
138be253 | 11145 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" |
11dfaa5f | 11146 | GUI_TK_LIBRARY="$wx_cv_libs_gtk" |
698dcdb6 | 11147 | |
1e6feb95 VZ |
11148 | AFMINSTALL=afminstall |
11149 | TOOLKIT=GTK | |
11150 | GUIDIST=GTK_DIST | |
7ec2881a | 11151 | |
1e6feb95 | 11152 | echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6 |
4222829b | 11153 | echo "configure:11154: checking for gdk_im_open in -lgdk" >&5 |
698dcdb6 VZ |
11154 | ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'` |
11155 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11156 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7ec2881a | 11157 | else |
698dcdb6 | 11158 | ac_save_LIBS="$LIBS" |
7ec2881a | 11159 | LIBS="-lgdk $LIBS" |
698dcdb6 | 11160 | cat > conftest.$ac_ext <<EOF |
4222829b | 11161 | #line 11162 "configure" |
7ec2881a RR |
11162 | #include "confdefs.h" |
11163 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11164 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11165 | builtin and then its argument prototype would still apply. */ |
11166 | char gdk_im_open(); | |
11167 | ||
11168 | int main() { | |
11169 | gdk_im_open() | |
11170 | ; return 0; } | |
11171 | EOF | |
4222829b | 11172 | if { (eval echo configure:11173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11173 | rm -rf conftest* |
11174 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11175 | else | |
11176 | echo "configure: failed program was:" >&5 | |
11177 | cat conftest.$ac_ext >&5 | |
11178 | rm -rf conftest* | |
11179 | eval "ac_cv_lib_$ac_lib_var=no" | |
11180 | fi | |
11181 | rm -f conftest* | |
11182 | LIBS="$ac_save_LIBS" | |
11183 | ||
11184 | fi | |
11185 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11186 | echo "$ac_t""yes" 1>&6 | |
11187 | cat >> confdefs.h <<\EOF | |
7ec2881a RR |
11188 | #define HAVE_XIM 1 |
11189 | EOF | |
11190 | ||
698dcdb6 VZ |
11191 | else |
11192 | echo "$ac_t""no" 1>&6 | |
7ec2881a RR |
11193 | fi |
11194 | ||
1e6feb95 | 11195 | fi |
10f2d63a | 11196 | |
1e6feb95 | 11197 | if test "$wxUSE_MGL" = 1; then |
1e6feb95 | 11198 | echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6 |
4222829b | 11199 | echo "configure:11200: checking for SciTech MGL library" >&5 |
1e6feb95 VZ |
11200 | if test "x$MGL_ROOT" = x ; then |
11201 | echo "$ac_t""not found" 1>&6 | |
11202 | { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; } | |
11203 | else | |
11204 | echo "$ac_t""$MGL_ROOT" 1>&6 | |
11205 | fi | |
11206 | ||
f9bc1684 VS |
11207 | case "${host}" in |
11208 | *-*-linux* ) | |
11209 | mgl_os=linux/gcc/glibc | |
11210 | ;; | |
11211 | *-pc-msdosdjgpp ) | |
11212 | mgl_os=dos32/dj2 | |
11213 | ;; | |
11214 | *) | |
11215 | { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; } | |
11216 | esac | |
11217 | ||
3a922bb4 | 11218 | mgl_lib_type="" |
1e6feb95 VZ |
11219 | |
11220 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
223e7fbf VS |
11221 | if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \ |
11222 | -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then | |
3a922bb4 | 11223 | mgl_lib_type=debug |
1e6feb95 VZ |
11224 | fi |
11225 | fi | |
3a922bb4 | 11226 | if test "x$mgl_lib_type" = x ; then |
223e7fbf VS |
11227 | if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \ |
11228 | -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then | |
3a922bb4 | 11229 | mgl_lib_type=release |
1e6feb95 VZ |
11230 | else |
11231 | { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; } | |
11232 | fi | |
11233 | fi | |
11234 | ||
11235 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" | |
3a922bb4 | 11236 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" |
1e6feb95 VZ |
11237 | |
11238 | AFMINSTALL=afminstall | |
11239 | TOOLKIT=MGL | |
11240 | GUIDIST=MGL_DIST | |
11241 | fi | |
11242 | ||
1725144d RR |
11243 | if test "$wxUSE_MICROWIN" = 1; then |
11244 | echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6 | |
4222829b | 11245 | echo "configure:11246: checking for MicroWindows" >&5 |
1725144d RR |
11246 | if test "x$MICROWINDOWS" = x ; then |
11247 | echo "$ac_t""not found" 1>&6 | |
11248 | { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; } | |
11249 | else | |
11250 | echo "$ac_t""$MICROWINDOWS" 1>&6 | |
11251 | fi | |
11252 | ||
11253 | if test -f $MICROWINDOWS/lib/libmwin.a; then | |
11254 | echo "$ac_t""MicroWindows' libraries found." 1>&6 | |
11255 | else | |
11256 | { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; } | |
11257 | fi | |
11258 | ||
11259 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" | |
11260 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
11261 | ||
11262 | AFMINSTALL=afminstall | |
11263 | TOOLKIT=MICROWIN | |
11264 | GUIDIST=MICROWIN_DIST | |
11265 | ||
11266 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__ -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
11267 | fi | |
11268 | ||
f79bd02d | 11269 | if test "$wxUSE_X11" = 1; then |
d714471b | 11270 | # If we find X, set shell vars x_includes and x_libraries to the |
698dcdb6 VZ |
11271 | # paths, otherwise set no_x=yes. |
11272 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
11273 | # --without-x overrides everything else, but does not touch the cache. | |
11274 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
4222829b | 11275 | echo "configure:11276: checking for X" >&5 |
ab9b9eab VZ |
11276 | |
11277 | # Check whether --with-x or --without-x was given. | |
11278 | if test "${with_x+set}" = set; then | |
11279 | withval="$with_x" | |
698dcdb6 VZ |
11280 | : |
11281 | fi | |
ba337fe7 | 11282 | |
ab9b9eab VZ |
11283 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
11284 | if test "x$with_x" = xno; then | |
11285 | # The user explicitly disabled X. | |
11286 | have_x=disabled | |
11287 | else | |
11288 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
11289 | # Both variables are already set. | |
11290 | have_x=yes | |
11291 | else | |
698dcdb6 VZ |
11292 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then |
11293 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab VZ |
11294 | else |
11295 | # One or both of the vars are not set, and there is no cached value. | |
698dcdb6 VZ |
11296 | ac_x_includes=NO ac_x_libraries=NO |
11297 | rm -fr conftestdir | |
11298 | if mkdir conftestdir; then | |
11299 | cd conftestdir | |
ab9b9eab | 11300 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
698dcdb6 | 11301 | cat > Imakefile <<'EOF' |
ab9b9eab VZ |
11302 | acfindx: |
11303 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
11304 | EOF | |
11305 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
11306 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
11307 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
11308 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
10f2d63a | 11309 | for ac_extension in a so sl; do |
ab9b9eab | 11310 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
698dcdb6 | 11311 | test -f $ac_im_libdir/libX11.$ac_extension; then |
ab9b9eab | 11312 | ac_im_usrlibdir=$ac_im_libdir; break |
10f2d63a VZ |
11313 | fi |
11314 | done | |
ab9b9eab VZ |
11315 | # Screen out bogus values from the imake configuration. They are |
11316 | # bogus both because they are the default anyway, and because | |
11317 | # using them would break gcc on systems where it needs fixed includes. | |
698dcdb6 | 11318 | case "$ac_im_incroot" in |
ab9b9eab | 11319 | /usr/include) ;; |
698dcdb6 | 11320 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; |
ab9b9eab | 11321 | esac |
698dcdb6 | 11322 | case "$ac_im_usrlibdir" in |
ab9b9eab | 11323 | /usr/lib | /lib) ;; |
698dcdb6 | 11324 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; |
ab9b9eab | 11325 | esac |
ba337fe7 | 11326 | fi |
ab9b9eab | 11327 | cd .. |
698dcdb6 | 11328 | rm -fr conftestdir |
ab9b9eab | 11329 | fi |
10f2d63a | 11330 | |
698dcdb6 VZ |
11331 | if test "$ac_x_includes" = NO; then |
11332 | # Guess where to find include files, by looking for this one X11 .h file. | |
11333 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
11334 | ||
ab9b9eab | 11335 | # First, try using that file with no special directory specified. |
698dcdb6 | 11336 | cat > conftest.$ac_ext <<EOF |
4222829b | 11337 | #line 11338 "configure" |
ab9b9eab | 11338 | #include "confdefs.h" |
698dcdb6 VZ |
11339 | #include <$x_direct_test_include> |
11340 | EOF | |
11341 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4222829b | 11342 | { (eval echo configure:11343: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11343 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11344 | if test -z "$ac_err"; then | |
11345 | rm -rf conftest* | |
ab9b9eab VZ |
11346 | # We can compile using X headers with no special include directory. |
11347 | ac_x_includes= | |
11348 | else | |
698dcdb6 VZ |
11349 | echo "$ac_err" >&5 |
11350 | echo "configure: failed program was:" >&5 | |
ab9b9eab | 11351 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11352 | rm -rf conftest* |
11353 | # Look for the header file in a standard set of common directories. | |
11354 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
11355 | for ac_dir in \ | |
11356 | /usr/X11/include \ | |
11357 | /usr/X11R6/include \ | |
11358 | /usr/X11R5/include \ | |
11359 | /usr/X11R4/include \ | |
11360 | \ | |
11361 | /usr/include/X11 \ | |
11362 | /usr/include/X11R6 \ | |
11363 | /usr/include/X11R5 \ | |
11364 | /usr/include/X11R4 \ | |
11365 | \ | |
11366 | /usr/local/X11/include \ | |
11367 | /usr/local/X11R6/include \ | |
11368 | /usr/local/X11R5/include \ | |
11369 | /usr/local/X11R4/include \ | |
11370 | \ | |
11371 | /usr/local/include/X11 \ | |
11372 | /usr/local/include/X11R6 \ | |
11373 | /usr/local/include/X11R5 \ | |
11374 | /usr/local/include/X11R4 \ | |
11375 | \ | |
11376 | /usr/X386/include \ | |
11377 | /usr/x386/include \ | |
11378 | /usr/XFree86/include/X11 \ | |
11379 | \ | |
11380 | /usr/include \ | |
11381 | /usr/local/include \ | |
11382 | /usr/unsupported/include \ | |
11383 | /usr/athena/include \ | |
11384 | /usr/local/x11r5/include \ | |
11385 | /usr/lpp/Xamples/include \ | |
11386 | \ | |
11387 | /usr/openwin/include \ | |
11388 | /usr/openwin/share/include \ | |
11389 | ; \ | |
11390 | do | |
11391 | if test -r "$ac_dir/$x_direct_test_include"; then | |
11392 | ac_x_includes=$ac_dir | |
11393 | break | |
11394 | fi | |
11395 | done | |
ab9b9eab | 11396 | fi |
698dcdb6 VZ |
11397 | rm -f conftest* |
11398 | fi # $ac_x_includes = NO | |
10f2d63a | 11399 | |
698dcdb6 | 11400 | if test "$ac_x_libraries" = NO; then |
ab9b9eab | 11401 | # Check for the libraries. |
698dcdb6 VZ |
11402 | |
11403 | test -z "$x_direct_test_library" && x_direct_test_library=Xt | |
11404 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
11405 | ||
ab9b9eab VZ |
11406 | # See if we find them without any special options. |
11407 | # Don't add to $LIBS permanently. | |
698dcdb6 VZ |
11408 | ac_save_LIBS="$LIBS" |
11409 | LIBS="-l$x_direct_test_library $LIBS" | |
11410 | cat > conftest.$ac_ext <<EOF | |
4222829b | 11411 | #line 11412 "configure" |
ab9b9eab | 11412 | #include "confdefs.h" |
698dcdb6 VZ |
11413 | |
11414 | int main() { | |
11415 | ${x_direct_test_function}() | |
11416 | ; return 0; } | |
11417 | EOF | |
4222829b | 11418 | if { (eval echo configure:11419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11419 | rm -rf conftest* |
11420 | LIBS="$ac_save_LIBS" | |
ab9b9eab VZ |
11421 | # We can link X programs with no special library path. |
11422 | ac_x_libraries= | |
11423 | else | |
698dcdb6 VZ |
11424 | echo "configure: failed program was:" >&5 |
11425 | cat conftest.$ac_ext >&5 | |
11426 | rm -rf conftest* | |
11427 | LIBS="$ac_save_LIBS" | |
11428 | # First see if replacing the include by lib works. | |
11429 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
11430 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
11431 | /usr/X11/lib \ | |
11432 | /usr/X11R6/lib \ | |
11433 | /usr/X11R5/lib \ | |
11434 | /usr/X11R4/lib \ | |
11435 | \ | |
11436 | /usr/lib/X11 \ | |
11437 | /usr/lib/X11R6 \ | |
11438 | /usr/lib/X11R5 \ | |
11439 | /usr/lib/X11R4 \ | |
11440 | \ | |
11441 | /usr/local/X11/lib \ | |
11442 | /usr/local/X11R6/lib \ | |
11443 | /usr/local/X11R5/lib \ | |
11444 | /usr/local/X11R4/lib \ | |
11445 | \ | |
11446 | /usr/local/lib/X11 \ | |
11447 | /usr/local/lib/X11R6 \ | |
11448 | /usr/local/lib/X11R5 \ | |
11449 | /usr/local/lib/X11R4 \ | |
11450 | \ | |
11451 | /usr/X386/lib \ | |
11452 | /usr/x386/lib \ | |
11453 | /usr/XFree86/lib/X11 \ | |
11454 | \ | |
11455 | /usr/lib \ | |
11456 | /usr/local/lib \ | |
11457 | /usr/unsupported/lib \ | |
11458 | /usr/athena/lib \ | |
11459 | /usr/local/x11r5/lib \ | |
11460 | /usr/lpp/Xamples/lib \ | |
11461 | /lib/usr/lib/X11 \ | |
11462 | \ | |
11463 | /usr/openwin/lib \ | |
11464 | /usr/openwin/share/lib \ | |
11465 | ; \ | |
ab9b9eab VZ |
11466 | do |
11467 | for ac_extension in a so sl; do | |
698dcdb6 | 11468 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then |
ab9b9eab VZ |
11469 | ac_x_libraries=$ac_dir |
11470 | break 2 | |
10f2d63a | 11471 | fi |
10f2d63a | 11472 | done |
ab9b9eab VZ |
11473 | done |
11474 | fi | |
698dcdb6 VZ |
11475 | rm -f conftest* |
11476 | fi # $ac_x_libraries = NO | |
10f2d63a | 11477 | |
698dcdb6 | 11478 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
ab9b9eab VZ |
11479 | # Didn't find X anywhere. Cache the known absence of X. |
11480 | ac_cv_have_x="have_x=no" | |
11481 | else | |
11482 | # Record where we found X for the cache. | |
11483 | ac_cv_have_x="have_x=yes \ | |
11484 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
11485 | fi | |
11486 | fi | |
10f2d63a | 11487 | fi |
ab9b9eab VZ |
11488 | eval "$ac_cv_have_x" |
11489 | fi # $with_x != no | |
10f2d63a | 11490 | |
ab9b9eab | 11491 | if test "$have_x" != yes; then |
698dcdb6 | 11492 | echo "$ac_t""$have_x" 1>&6 |
ab9b9eab VZ |
11493 | no_x=yes |
11494 | else | |
11495 | # If each of the values was on the command line, it overrides each guess. | |
11496 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
11497 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
11498 | # Update the cache value to reflect the command line values. | |
11499 | ac_cv_have_x="have_x=yes \ | |
11500 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
698dcdb6 | 11501 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 |
ab9b9eab | 11502 | fi |
10f2d63a | 11503 | |
ab9b9eab VZ |
11504 | if test "$no_x" = yes; then |
11505 | # Not all programs may use this symbol, but it does not hurt to define it. | |
698dcdb6 | 11506 | cat >> confdefs.h <<\EOF |
ab9b9eab VZ |
11507 | #define X_DISPLAY_MISSING 1 |
11508 | EOF | |
10f2d63a | 11509 | |
ab9b9eab VZ |
11510 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
11511 | else | |
11512 | if test -n "$x_includes"; then | |
11513 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
10f2d63a VZ |
11514 | fi |
11515 | ||
ab9b9eab VZ |
11516 | # It would also be nice to do this for all -L options, not just this one. |
11517 | if test -n "$x_libraries"; then | |
11518 | X_LIBS="$X_LIBS -L$x_libraries" | |
11519 | # For Solaris; some versions of Sun CC require a space after -R and | |
11520 | # others require no space. Words are not sufficient . . . . | |
698dcdb6 | 11521 | case "`(uname -sr) 2>/dev/null`" in |
ab9b9eab | 11522 | "SunOS 5"*) |
698dcdb6 | 11523 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 |
4222829b | 11524 | echo "configure:11525: checking whether -R must be followed by a space" >&5 |
698dcdb6 VZ |
11525 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
11526 | cat > conftest.$ac_ext <<EOF | |
4222829b | 11527 | #line 11528 "configure" |
ab9b9eab | 11528 | #include "confdefs.h" |
10f2d63a | 11529 | |
698dcdb6 | 11530 | int main() { |
788deba1 | 11531 | |
698dcdb6 VZ |
11532 | ; return 0; } |
11533 | EOF | |
4222829b | 11534 | if { (eval echo configure:11535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 11535 | rm -rf conftest* |
ab9b9eab VZ |
11536 | ac_R_nospace=yes |
11537 | else | |
698dcdb6 VZ |
11538 | echo "configure: failed program was:" >&5 |
11539 | cat conftest.$ac_ext >&5 | |
11540 | rm -rf conftest* | |
11541 | ac_R_nospace=no | |
ab9b9eab | 11542 | fi |
698dcdb6 | 11543 | rm -f conftest* |
ab9b9eab | 11544 | if test $ac_R_nospace = yes; then |
698dcdb6 | 11545 | echo "$ac_t""no" 1>&6 |
ab9b9eab VZ |
11546 | X_LIBS="$X_LIBS -R$x_libraries" |
11547 | else | |
11548 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
698dcdb6 | 11549 | cat > conftest.$ac_ext <<EOF |
4222829b | 11550 | #line 11551 "configure" |
ab9b9eab | 11551 | #include "confdefs.h" |
788deba1 | 11552 | |
698dcdb6 | 11553 | int main() { |
ab9b9eab | 11554 | |
698dcdb6 VZ |
11555 | ; return 0; } |
11556 | EOF | |
4222829b | 11557 | if { (eval echo configure:11558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 11558 | rm -rf conftest* |
ab9b9eab VZ |
11559 | ac_R_space=yes |
11560 | else | |
698dcdb6 VZ |
11561 | echo "configure: failed program was:" >&5 |
11562 | cat conftest.$ac_ext >&5 | |
11563 | rm -rf conftest* | |
11564 | ac_R_space=no | |
ab9b9eab | 11565 | fi |
698dcdb6 | 11566 | rm -f conftest* |
ab9b9eab | 11567 | if test $ac_R_space = yes; then |
698dcdb6 | 11568 | echo "$ac_t""yes" 1>&6 |
ab9b9eab VZ |
11569 | X_LIBS="$X_LIBS -R $x_libraries" |
11570 | else | |
698dcdb6 | 11571 | echo "$ac_t""neither works" 1>&6 |
ab9b9eab VZ |
11572 | fi |
11573 | fi | |
698dcdb6 | 11574 | LIBS="$ac_xsave_LIBS" |
ab9b9eab VZ |
11575 | esac |
11576 | fi | |
11577 | ||
11578 | # Check for system-dependent libraries X programs must link with. | |
11579 | # Do this before checking for the system-independent R6 libraries | |
11580 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
11581 | ||
11582 | if test "$ISC" = yes; then | |
11583 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
11584 | else | |
698dcdb6 VZ |
11585 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X |
11586 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
ab9b9eab | 11587 | # the Alpha needs dnet_stub (dnet does not exist). |
698dcdb6 | 11588 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
4222829b | 11589 | echo "configure:11590: checking for dnet_ntoa in -ldnet" >&5 |
698dcdb6 VZ |
11590 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
11591 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11592 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11593 | else |
698dcdb6 | 11594 | ac_save_LIBS="$LIBS" |
ab9b9eab | 11595 | LIBS="-ldnet $LIBS" |
698dcdb6 | 11596 | cat > conftest.$ac_ext <<EOF |
4222829b | 11597 | #line 11598 "configure" |
ab9b9eab VZ |
11598 | #include "confdefs.h" |
11599 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11600 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11601 | builtin and then its argument prototype would still apply. */ |
11602 | char dnet_ntoa(); | |
11603 | ||
11604 | int main() { | |
11605 | dnet_ntoa() | |
11606 | ; return 0; } | |
11607 | EOF | |
4222829b | 11608 | if { (eval echo configure:11609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11609 | rm -rf conftest* |
11610 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11611 | else | |
11612 | echo "configure: failed program was:" >&5 | |
11613 | cat conftest.$ac_ext >&5 | |
11614 | rm -rf conftest* | |
11615 | eval "ac_cv_lib_$ac_lib_var=no" | |
11616 | fi | |
11617 | rm -f conftest* | |
11618 | LIBS="$ac_save_LIBS" | |
11619 | ||
11620 | fi | |
11621 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11622 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 11623 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
698dcdb6 VZ |
11624 | else |
11625 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11626 | fi |
11627 | ||
11628 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
698dcdb6 | 11629 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
4222829b | 11630 | echo "configure:11631: checking for dnet_ntoa in -ldnet_stub" >&5 |
698dcdb6 VZ |
11631 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
11632 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11633 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11634 | else |
698dcdb6 | 11635 | ac_save_LIBS="$LIBS" |
ab9b9eab | 11636 | LIBS="-ldnet_stub $LIBS" |
698dcdb6 | 11637 | cat > conftest.$ac_ext <<EOF |
4222829b | 11638 | #line 11639 "configure" |
ab9b9eab VZ |
11639 | #include "confdefs.h" |
11640 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11641 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11642 | builtin and then its argument prototype would still apply. */ |
11643 | char dnet_ntoa(); | |
11644 | ||
11645 | int main() { | |
11646 | dnet_ntoa() | |
11647 | ; return 0; } | |
11648 | EOF | |
4222829b | 11649 | if { (eval echo configure:11650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11650 | rm -rf conftest* |
11651 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11652 | else | |
11653 | echo "configure: failed program was:" >&5 | |
11654 | cat conftest.$ac_ext >&5 | |
11655 | rm -rf conftest* | |
11656 | eval "ac_cv_lib_$ac_lib_var=no" | |
11657 | fi | |
11658 | rm -f conftest* | |
11659 | LIBS="$ac_save_LIBS" | |
11660 | ||
11661 | fi | |
11662 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11663 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 11664 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
698dcdb6 VZ |
11665 | else |
11666 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11667 | fi |
11668 | ||
11669 | fi | |
11670 | ||
11671 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
11672 | # to get the SysV transport functions. | |
698dcdb6 | 11673 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
ab9b9eab VZ |
11674 | # needs -lnsl. |
11675 | # The nsl library prevents programs from opening the X display | |
698dcdb6 VZ |
11676 | # on Irix 5.2, according to dickey@clark.net. |
11677 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
4222829b | 11678 | echo "configure:11679: checking for gethostbyname" >&5 |
698dcdb6 VZ |
11679 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
11680 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11681 | else | |
11682 | cat > conftest.$ac_ext <<EOF | |
4222829b | 11683 | #line 11684 "configure" |
ab9b9eab VZ |
11684 | #include "confdefs.h" |
11685 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 11686 | which can conflict with char gethostbyname(); below. */ |
ab9b9eab VZ |
11687 | #include <assert.h> |
11688 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11689 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11690 | builtin and then its argument prototype would still apply. */ |
11691 | char gethostbyname(); | |
11692 | ||
11693 | int main() { | |
ab9b9eab VZ |
11694 | |
11695 | /* The GNU C library defines this for functions which it implements | |
11696 | to always fail with ENOSYS. Some functions are actually named | |
11697 | something starting with __ and the normal name is an alias. */ | |
11698 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
11699 | choke me | |
11700 | #else | |
698dcdb6 | 11701 | gethostbyname(); |
ab9b9eab VZ |
11702 | #endif |
11703 | ||
698dcdb6 VZ |
11704 | ; return 0; } |
11705 | EOF | |
4222829b | 11706 | if { (eval echo configure:11707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11707 | rm -rf conftest* |
11708 | eval "ac_cv_func_gethostbyname=yes" | |
11709 | else | |
11710 | echo "configure: failed program was:" >&5 | |
11711 | cat conftest.$ac_ext >&5 | |
11712 | rm -rf conftest* | |
11713 | eval "ac_cv_func_gethostbyname=no" | |
11714 | fi | |
11715 | rm -f conftest* | |
11716 | fi | |
11717 | ||
11718 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
11719 | echo "$ac_t""yes" 1>&6 | |
11720 | : | |
11721 | else | |
11722 | echo "$ac_t""no" 1>&6 | |
11723 | fi | |
ab9b9eab VZ |
11724 | |
11725 | if test $ac_cv_func_gethostbyname = no; then | |
698dcdb6 | 11726 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
4222829b | 11727 | echo "configure:11728: checking for gethostbyname in -lnsl" >&5 |
698dcdb6 VZ |
11728 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
11729 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11730 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11731 | else |
698dcdb6 | 11732 | ac_save_LIBS="$LIBS" |
ab9b9eab | 11733 | LIBS="-lnsl $LIBS" |
698dcdb6 | 11734 | cat > conftest.$ac_ext <<EOF |
4222829b | 11735 | #line 11736 "configure" |
ab9b9eab VZ |
11736 | #include "confdefs.h" |
11737 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11738 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11739 | builtin and then its argument prototype would still apply. */ |
11740 | char gethostbyname(); | |
6232543b | 11741 | |
698dcdb6 VZ |
11742 | int main() { |
11743 | gethostbyname() | |
11744 | ; return 0; } | |
11745 | EOF | |
4222829b | 11746 | if { (eval echo configure:11747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11747 | rm -rf conftest* |
11748 | eval "ac_cv_lib_$ac_lib_var=yes" | |
703e0a69 | 11749 | else |
698dcdb6 VZ |
11750 | echo "configure: failed program was:" >&5 |
11751 | cat conftest.$ac_ext >&5 | |
11752 | rm -rf conftest* | |
11753 | eval "ac_cv_lib_$ac_lib_var=no" | |
11754 | fi | |
11755 | rm -f conftest* | |
11756 | LIBS="$ac_save_LIBS" | |
1e487827 | 11757 | |
698dcdb6 VZ |
11758 | fi |
11759 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11760 | echo "$ac_t""yes" 1>&6 | |
11761 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
11762 | else | |
11763 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11764 | fi |
11765 | ||
11766 | fi | |
11767 | ||
11768 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
11769 | # socket/setsockopt and other routines are undefined under SCO ODT | |
11770 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
698dcdb6 VZ |
11771 | # on later versions), says simon@lia.di.epfl.ch: it contains |
11772 | # gethostby* variants that don't use the nameserver (or something). | |
11773 | # -lsocket must be given before -lnsl if both are needed. | |
11774 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
11775 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
4222829b | 11776 | echo "configure:11777: checking for connect" >&5 |
698dcdb6 VZ |
11777 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
11778 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11779 | else | |
11780 | cat > conftest.$ac_ext <<EOF | |
4222829b | 11781 | #line 11782 "configure" |
ab9b9eab VZ |
11782 | #include "confdefs.h" |
11783 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 11784 | which can conflict with char connect(); below. */ |
ab9b9eab VZ |
11785 | #include <assert.h> |
11786 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11787 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11788 | builtin and then its argument prototype would still apply. */ |
11789 | char connect(); | |
11790 | ||
11791 | int main() { | |
ab9b9eab VZ |
11792 | |
11793 | /* The GNU C library defines this for functions which it implements | |
11794 | to always fail with ENOSYS. Some functions are actually named | |
11795 | something starting with __ and the normal name is an alias. */ | |
11796 | #if defined (__stub_connect) || defined (__stub___connect) | |
11797 | choke me | |
11798 | #else | |
698dcdb6 | 11799 | connect(); |
ab9b9eab VZ |
11800 | #endif |
11801 | ||
698dcdb6 VZ |
11802 | ; return 0; } |
11803 | EOF | |
4222829b | 11804 | if { (eval echo configure:11805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11805 | rm -rf conftest* |
11806 | eval "ac_cv_func_connect=yes" | |
11807 | else | |
11808 | echo "configure: failed program was:" >&5 | |
11809 | cat conftest.$ac_ext >&5 | |
11810 | rm -rf conftest* | |
11811 | eval "ac_cv_func_connect=no" | |
11812 | fi | |
11813 | rm -f conftest* | |
11814 | fi | |
11815 | ||
11816 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
11817 | echo "$ac_t""yes" 1>&6 | |
11818 | : | |
11819 | else | |
11820 | echo "$ac_t""no" 1>&6 | |
11821 | fi | |
ab9b9eab VZ |
11822 | |
11823 | if test $ac_cv_func_connect = no; then | |
698dcdb6 | 11824 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
4222829b | 11825 | echo "configure:11826: checking for connect in -lsocket" >&5 |
698dcdb6 VZ |
11826 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
11827 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11828 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11829 | else |
698dcdb6 | 11830 | ac_save_LIBS="$LIBS" |
ab9b9eab | 11831 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
698dcdb6 | 11832 | cat > conftest.$ac_ext <<EOF |
4222829b | 11833 | #line 11834 "configure" |
ab9b9eab VZ |
11834 | #include "confdefs.h" |
11835 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11836 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11837 | builtin and then its argument prototype would still apply. */ |
11838 | char connect(); | |
11839 | ||
11840 | int main() { | |
11841 | connect() | |
11842 | ; return 0; } | |
11843 | EOF | |
4222829b | 11844 | if { (eval echo configure:11845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11845 | rm -rf conftest* |
11846 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11847 | else | |
11848 | echo "configure: failed program was:" >&5 | |
11849 | cat conftest.$ac_ext >&5 | |
11850 | rm -rf conftest* | |
11851 | eval "ac_cv_lib_$ac_lib_var=no" | |
11852 | fi | |
11853 | rm -f conftest* | |
11854 | LIBS="$ac_save_LIBS" | |
11855 | ||
11856 | fi | |
11857 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11858 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 11859 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
698dcdb6 VZ |
11860 | else |
11861 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11862 | fi |
11863 | ||
11864 | fi | |
11865 | ||
698dcdb6 VZ |
11866 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
11867 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
4222829b | 11868 | echo "configure:11869: checking for remove" >&5 |
698dcdb6 VZ |
11869 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
11870 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11871 | else |
698dcdb6 | 11872 | cat > conftest.$ac_ext <<EOF |
4222829b | 11873 | #line 11874 "configure" |
ab9b9eab VZ |
11874 | #include "confdefs.h" |
11875 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 11876 | which can conflict with char remove(); below. */ |
ab9b9eab VZ |
11877 | #include <assert.h> |
11878 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11879 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11880 | builtin and then its argument prototype would still apply. */ |
11881 | char remove(); | |
11882 | ||
11883 | int main() { | |
ab9b9eab VZ |
11884 | |
11885 | /* The GNU C library defines this for functions which it implements | |
11886 | to always fail with ENOSYS. Some functions are actually named | |
11887 | something starting with __ and the normal name is an alias. */ | |
11888 | #if defined (__stub_remove) || defined (__stub___remove) | |
11889 | choke me | |
11890 | #else | |
698dcdb6 | 11891 | remove(); |
ab9b9eab VZ |
11892 | #endif |
11893 | ||
698dcdb6 VZ |
11894 | ; return 0; } |
11895 | EOF | |
4222829b | 11896 | if { (eval echo configure:11897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11897 | rm -rf conftest* |
11898 | eval "ac_cv_func_remove=yes" | |
11899 | else | |
11900 | echo "configure: failed program was:" >&5 | |
11901 | cat conftest.$ac_ext >&5 | |
11902 | rm -rf conftest* | |
11903 | eval "ac_cv_func_remove=no" | |
11904 | fi | |
11905 | rm -f conftest* | |
11906 | fi | |
11907 | ||
11908 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
11909 | echo "$ac_t""yes" 1>&6 | |
11910 | : | |
11911 | else | |
11912 | echo "$ac_t""no" 1>&6 | |
11913 | fi | |
ab9b9eab VZ |
11914 | |
11915 | if test $ac_cv_func_remove = no; then | |
698dcdb6 | 11916 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
4222829b | 11917 | echo "configure:11918: checking for remove in -lposix" >&5 |
698dcdb6 VZ |
11918 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
11919 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11920 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11921 | else |
698dcdb6 | 11922 | ac_save_LIBS="$LIBS" |
ab9b9eab | 11923 | LIBS="-lposix $LIBS" |
698dcdb6 | 11924 | cat > conftest.$ac_ext <<EOF |
4222829b | 11925 | #line 11926 "configure" |
ab9b9eab VZ |
11926 | #include "confdefs.h" |
11927 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11928 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11929 | builtin and then its argument prototype would still apply. */ |
11930 | char remove(); | |
11931 | ||
11932 | int main() { | |
11933 | remove() | |
11934 | ; return 0; } | |
11935 | EOF | |
4222829b | 11936 | if { (eval echo configure:11937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11937 | rm -rf conftest* |
11938 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11939 | else | |
11940 | echo "configure: failed program was:" >&5 | |
11941 | cat conftest.$ac_ext >&5 | |
11942 | rm -rf conftest* | |
11943 | eval "ac_cv_lib_$ac_lib_var=no" | |
11944 | fi | |
11945 | rm -f conftest* | |
11946 | LIBS="$ac_save_LIBS" | |
11947 | ||
11948 | fi | |
11949 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11950 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 11951 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
698dcdb6 VZ |
11952 | else |
11953 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11954 | fi |
11955 | ||
11956 | fi | |
11957 | ||
11958 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
698dcdb6 | 11959 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
4222829b | 11960 | echo "configure:11961: checking for shmat" >&5 |
698dcdb6 VZ |
11961 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
11962 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11963 | else |
698dcdb6 | 11964 | cat > conftest.$ac_ext <<EOF |
4222829b | 11965 | #line 11966 "configure" |
ab9b9eab VZ |
11966 | #include "confdefs.h" |
11967 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 11968 | which can conflict with char shmat(); below. */ |
ab9b9eab VZ |
11969 | #include <assert.h> |
11970 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11971 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11972 | builtin and then its argument prototype would still apply. */ |
11973 | char shmat(); | |
11974 | ||
11975 | int main() { | |
ab9b9eab VZ |
11976 | |
11977 | /* The GNU C library defines this for functions which it implements | |
11978 | to always fail with ENOSYS. Some functions are actually named | |
11979 | something starting with __ and the normal name is an alias. */ | |
11980 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
11981 | choke me | |
11982 | #else | |
698dcdb6 | 11983 | shmat(); |
ab9b9eab VZ |
11984 | #endif |
11985 | ||
698dcdb6 VZ |
11986 | ; return 0; } |
11987 | EOF | |
4222829b | 11988 | if { (eval echo configure:11989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11989 | rm -rf conftest* |
11990 | eval "ac_cv_func_shmat=yes" | |
11991 | else | |
11992 | echo "configure: failed program was:" >&5 | |
11993 | cat conftest.$ac_ext >&5 | |
11994 | rm -rf conftest* | |
11995 | eval "ac_cv_func_shmat=no" | |
11996 | fi | |
11997 | rm -f conftest* | |
11998 | fi | |
11999 | ||
12000 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
12001 | echo "$ac_t""yes" 1>&6 | |
12002 | : | |
12003 | else | |
12004 | echo "$ac_t""no" 1>&6 | |
12005 | fi | |
ab9b9eab VZ |
12006 | |
12007 | if test $ac_cv_func_shmat = no; then | |
698dcdb6 | 12008 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
4222829b | 12009 | echo "configure:12010: checking for shmat in -lipc" >&5 |
698dcdb6 VZ |
12010 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
12011 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12012 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 12013 | else |
698dcdb6 | 12014 | ac_save_LIBS="$LIBS" |
ab9b9eab | 12015 | LIBS="-lipc $LIBS" |
698dcdb6 | 12016 | cat > conftest.$ac_ext <<EOF |
4222829b | 12017 | #line 12018 "configure" |
ab9b9eab VZ |
12018 | #include "confdefs.h" |
12019 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12020 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12021 | builtin and then its argument prototype would still apply. */ |
12022 | char shmat(); | |
12023 | ||
12024 | int main() { | |
12025 | shmat() | |
12026 | ; return 0; } | |
12027 | EOF | |
4222829b | 12028 | if { (eval echo configure:12029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12029 | rm -rf conftest* |
12030 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12031 | else | |
12032 | echo "configure: failed program was:" >&5 | |
12033 | cat conftest.$ac_ext >&5 | |
12034 | rm -rf conftest* | |
12035 | eval "ac_cv_lib_$ac_lib_var=no" | |
12036 | fi | |
12037 | rm -f conftest* | |
12038 | LIBS="$ac_save_LIBS" | |
12039 | ||
12040 | fi | |
12041 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12042 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 12043 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
698dcdb6 VZ |
12044 | else |
12045 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
12046 | fi |
12047 | ||
12048 | fi | |
12049 | fi | |
12050 | ||
12051 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
698dcdb6 | 12052 | ac_save_LDFLAGS="$LDFLAGS" |
ab9b9eab VZ |
12053 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
12054 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
12055 | # check for ICE first), but we must link in the order -lSM -lICE or | |
12056 | # we get undefined symbols. So assume we have SM if we have ICE. | |
12057 | # These have to be linked with before -lX11, unlike the other | |
12058 | # libraries we check for below, so use a different variable. | |
698dcdb6 VZ |
12059 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
12060 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
4222829b | 12061 | echo "configure:12062: checking for IceConnectionNumber in -lICE" >&5 |
698dcdb6 VZ |
12062 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
12063 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12064 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12065 | else | |
12066 | ac_save_LIBS="$LIBS" | |
ab9b9eab | 12067 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
698dcdb6 | 12068 | cat > conftest.$ac_ext <<EOF |
4222829b | 12069 | #line 12070 "configure" |
ab9b9eab VZ |
12070 | #include "confdefs.h" |
12071 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12072 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12073 | builtin and then its argument prototype would still apply. */ |
12074 | char IceConnectionNumber(); | |
12075 | ||
12076 | int main() { | |
12077 | IceConnectionNumber() | |
12078 | ; return 0; } | |
12079 | EOF | |
4222829b | 12080 | if { (eval echo configure:12081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12081 | rm -rf conftest* |
12082 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12083 | else | |
12084 | echo "configure: failed program was:" >&5 | |
12085 | cat conftest.$ac_ext >&5 | |
12086 | rm -rf conftest* | |
12087 | eval "ac_cv_lib_$ac_lib_var=no" | |
12088 | fi | |
12089 | rm -f conftest* | |
12090 | LIBS="$ac_save_LIBS" | |
12091 | ||
12092 | fi | |
12093 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12094 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 12095 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
698dcdb6 VZ |
12096 | else |
12097 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
12098 | fi |
12099 | ||
698dcdb6 | 12100 | LDFLAGS="$ac_save_LDFLAGS" |
ab9b9eab VZ |
12101 | |
12102 | fi | |
12103 | ||
12104 | ||
1e6feb95 VZ |
12105 | if test "$no_x" = "yes"; then |
12106 | { echo "configure: error: X11 not found" 1>&2; exit 1; } | |
12107 | fi | |
ab9b9eab | 12108 | |
1e6feb95 VZ |
12109 | GUI_TK_LIBRARY="$X_LIBS" |
12110 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
1e6feb95 | 12111 | AFMINSTALL=afminstall |
1e6feb95 | 12112 | COMPILED_X_PROGRAM=0 |
cd6d6d5b | 12113 | |
3d63bc3a | 12114 | xpm_link= |
1e6feb95 | 12115 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 |
4222829b | 12116 | echo "configure:12117: checking for Xpm library" >&5 |
1e6feb95 | 12117 | |
ab9b9eab VZ |
12118 | ac_find_libraries= |
12119 | for ac_dir in $SEARCH_LIB; | |
12120 | do | |
f11bdd03 | 12121 | for ac_extension in a so sl dylib; do |
ab9b9eab VZ |
12122 | if test -f "$ac_dir/libXpm.$ac_extension"; then |
12123 | ac_find_libraries=$ac_dir | |
12124 | break 2 | |
12125 | fi | |
12126 | done | |
12127 | done | |
12128 | ||
1e6feb95 VZ |
12129 | if test "$ac_find_libraries" != "" ; then |
12130 | ||
ab9b9eab VZ |
12131 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
12132 | result=$? | |
12133 | if test $result = 0; then | |
12134 | ac_path_to_link="" | |
12135 | else | |
62d0491b | 12136 | ac_path_to_link=" -L$ac_find_libraries" |
ab9b9eab VZ |
12137 | fi |
12138 | ||
62d0491b | 12139 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
3d63bc3a | 12140 | xpm_link=" -lXpm" |
1e6feb95 | 12141 | cat >> confdefs.h <<\EOF |
ab9b9eab VZ |
12142 | #define wxHAVE_LIB_XPM 1 |
12143 | EOF | |
12144 | ||
1e6feb95 VZ |
12145 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
12146 | else | |
12147 | cat > conftest.$ac_ext <<EOF | |
4222829b | 12148 | #line 12149 "configure" |
cd6d6d5b VZ |
12149 | #include "confdefs.h" |
12150 | ||
1e6feb95 VZ |
12151 | #include <X11/xpm.h> |
12152 | ||
698dcdb6 | 12153 | int main() { |
cd6d6d5b | 12154 | |
1e6feb95 | 12155 | int version; |
1e6feb95 VZ |
12156 | version = XpmLibraryVersion(); |
12157 | ||
698dcdb6 VZ |
12158 | ; return 0; } |
12159 | EOF | |
4222829b | 12160 | if { (eval echo configure:12161: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
12161 | rm -rf conftest* |
12162 | ||
3d63bc3a | 12163 | xpm_link=" -lXpm" |
3a922bb4 | 12164 | cat >> confdefs.h <<\EOF |
3ace2e6d SN |
12165 | #define wxHAVE_LIB_XPM 1 |
12166 | EOF | |
12167 | ||
1e6feb95 VZ |
12168 | echo "$ac_t""found in default search path" 1>&6 |
12169 | COMPILED_X_PROGRAM=0 | |
12170 | ||
cd6d6d5b | 12171 | else |
698dcdb6 VZ |
12172 | echo "configure: failed program was:" >&5 |
12173 | cat conftest.$ac_ext >&5 | |
12174 | rm -rf conftest* | |
12175 | ||
1e6feb95 VZ |
12176 | echo "$ac_t""no" 1>&6 |
12177 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
12178 | ||
698dcdb6 | 12179 | |
cd6d6d5b | 12180 | fi |
698dcdb6 | 12181 | rm -f conftest* |
1e6feb95 VZ |
12182 | fi |
12183 | ||
f79bd02d | 12184 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext -lXt -lX11" |
4d7289e6 | 12185 | TOOLKIT_VPATH="\${top_srcdir}/src/x11 \${top_srcdir}/src/univ \${top_srcdir}/src/univ/themes" |
f79bd02d JS |
12186 | TOOLKIT=X11 |
12187 | GUIDIST=X11_DIST | |
68e42278 | 12188 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" |
1e6feb95 | 12189 | fi |
10f2d63a | 12190 | |
f79bd02d JS |
12191 | if test "$wxUSE_WINE" = 1; then |
12192 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` | |
12193 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
4222829b | 12194 | echo "configure:12195: checking for windows.h" >&5 |
f79bd02d JS |
12195 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12196 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12197 | else | |
12198 | cat > conftest.$ac_ext <<EOF | |
4222829b | 12199 | #line 12200 "configure" |
f79bd02d JS |
12200 | #include "confdefs.h" |
12201 | #include <windows.h> | |
12202 | EOF | |
12203 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4222829b | 12204 | { (eval echo configure:12205: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
f79bd02d JS |
12205 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12206 | if test -z "$ac_err"; then | |
12207 | rm -rf conftest* | |
12208 | eval "ac_cv_header_$ac_safe=yes" | |
12209 | else | |
12210 | echo "$ac_err" >&5 | |
12211 | echo "configure: failed program was:" >&5 | |
12212 | cat conftest.$ac_ext >&5 | |
12213 | rm -rf conftest* | |
12214 | eval "ac_cv_header_$ac_safe=no" | |
12215 | fi | |
12216 | rm -f conftest* | |
12217 | fi | |
12218 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
12219 | echo "$ac_t""yes" 1>&6 | |
12220 | : | |
12221 | else | |
12222 | echo "$ac_t""no" 1>&6 | |
12223 | ||
12224 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
12225 | ||
12226 | fi | |
12227 | ||
12228 | ||
12229 | xpm_link= | |
12230 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
4222829b | 12231 | echo "configure:12232: checking for Xpm library" >&5 |
f79bd02d JS |
12232 | |
12233 | ac_find_libraries= | |
12234 | for ac_dir in $SEARCH_LIB; | |
12235 | do | |
12236 | for ac_extension in a so sl dylib; do | |
12237 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
12238 | ac_find_libraries=$ac_dir | |
12239 | break 2 | |
12240 | fi | |
12241 | done | |
12242 | done | |
12243 | ||
12244 | if test "$ac_find_libraries" != "" ; then | |
12245 | GUI_TK_LIBRARY="-L$ac_find_libraries" | |
12246 | xpm_link=" -lXpm" | |
12247 | cat >> confdefs.h <<\EOF | |
12248 | #define wxHAVE_LIB_XPM 1 | |
12249 | EOF | |
12250 | ||
12251 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
12252 | else | |
12253 | echo "$ac_t""no" 1>&6 | |
12254 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
12255 | fi | |
12256 | ||
12257 | mesa_link= | |
12258 | echo $ac_n "checking for Mesa library""... $ac_c" 1>&6 | |
4222829b | 12259 | echo "configure:12260: checking for Mesa library" >&5 |
f79bd02d JS |
12260 | |
12261 | ac_find_libraries= | |
12262 | for ac_dir in $SEARCH_LIB; | |
12263 | do | |
12264 | for ac_extension in a so sl dylib; do | |
12265 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
12266 | ac_find_libraries=$ac_dir | |
12267 | break 2 | |
12268 | fi | |
12269 | done | |
12270 | done | |
12271 | ||
12272 | if test "$ac_find_libraries" != "" ; then | |
12273 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries" | |
12274 | mesa_link=" -lMesaGL" | |
12275 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
12276 | else | |
12277 | { echo "configure: error: no" 1>&2; exit 1; } | |
12278 | fi | |
12279 | ||
12280 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses" | |
12281 | TOOLKIT=MSW | |
12282 | GUIDIST=MSW_DIST | |
12283 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__" | |
12284 | fi | |
12285 | ||
12286 | if test "$wxUSE_MOTIF" = 1; then | |
12287 | if test "$no_x" = yes; then | |
12288 | # Not all programs may use this symbol, but it does not hurt to define it. | |
12289 | cat >> confdefs.h <<\EOF | |
12290 | #define X_DISPLAY_MISSING 1 | |
12291 | EOF | |
12292 | ||
12293 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
12294 | else | |
12295 | if test -n "$x_includes"; then | |
12296 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
12297 | fi | |
12298 | ||
12299 | # It would also be nice to do this for all -L options, not just this one. | |
12300 | if test -n "$x_libraries"; then | |
12301 | X_LIBS="$X_LIBS -L$x_libraries" | |
12302 | # For Solaris; some versions of Sun CC require a space after -R and | |
12303 | # others require no space. Words are not sufficient . . . . | |
12304 | case "`(uname -sr) 2>/dev/null`" in | |
12305 | "SunOS 5"*) | |
12306 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 | |
4222829b | 12307 | echo "configure:12308: checking whether -R must be followed by a space" >&5 |
f79bd02d JS |
12308 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
12309 | cat > conftest.$ac_ext <<EOF | |
4222829b | 12310 | #line 12311 "configure" |
f79bd02d JS |
12311 | #include "confdefs.h" |
12312 | ||
12313 | int main() { | |
12314 | ||
12315 | ; return 0; } | |
12316 | EOF | |
4222829b | 12317 | if { (eval echo configure:12318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12318 | rm -rf conftest* |
12319 | ac_R_nospace=yes | |
12320 | else | |
12321 | echo "configure: failed program was:" >&5 | |
12322 | cat conftest.$ac_ext >&5 | |
12323 | rm -rf conftest* | |
12324 | ac_R_nospace=no | |
12325 | fi | |
12326 | rm -f conftest* | |
12327 | if test $ac_R_nospace = yes; then | |
12328 | echo "$ac_t""no" 1>&6 | |
12329 | X_LIBS="$X_LIBS -R$x_libraries" | |
12330 | else | |
12331 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
12332 | cat > conftest.$ac_ext <<EOF | |
4222829b | 12333 | #line 12334 "configure" |
f79bd02d JS |
12334 | #include "confdefs.h" |
12335 | ||
12336 | int main() { | |
12337 | ||
12338 | ; return 0; } | |
12339 | EOF | |
4222829b | 12340 | if { (eval echo configure:12341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12341 | rm -rf conftest* |
12342 | ac_R_space=yes | |
12343 | else | |
12344 | echo "configure: failed program was:" >&5 | |
12345 | cat conftest.$ac_ext >&5 | |
12346 | rm -rf conftest* | |
12347 | ac_R_space=no | |
12348 | fi | |
12349 | rm -f conftest* | |
12350 | if test $ac_R_space = yes; then | |
12351 | echo "$ac_t""yes" 1>&6 | |
12352 | X_LIBS="$X_LIBS -R $x_libraries" | |
12353 | else | |
12354 | echo "$ac_t""neither works" 1>&6 | |
12355 | fi | |
12356 | fi | |
12357 | LIBS="$ac_xsave_LIBS" | |
12358 | esac | |
12359 | fi | |
12360 | ||
12361 | # Check for system-dependent libraries X programs must link with. | |
12362 | # Do this before checking for the system-independent R6 libraries | |
12363 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
12364 | ||
12365 | if test "$ISC" = yes; then | |
12366 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
12367 | else | |
12368 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X | |
12369 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
12370 | # the Alpha needs dnet_stub (dnet does not exist). | |
12371 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 | |
4222829b | 12372 | echo "configure:12373: checking for dnet_ntoa in -ldnet" >&5 |
f79bd02d JS |
12373 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
12374 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12375 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12376 | else | |
12377 | ac_save_LIBS="$LIBS" | |
12378 | LIBS="-ldnet $LIBS" | |
12379 | cat > conftest.$ac_ext <<EOF | |
4222829b | 12380 | #line 12381 "configure" |
f79bd02d JS |
12381 | #include "confdefs.h" |
12382 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12383 | /* We use char because int might match the return type of a gcc2 | |
12384 | builtin and then its argument prototype would still apply. */ | |
12385 | char dnet_ntoa(); | |
12386 | ||
12387 | int main() { | |
12388 | dnet_ntoa() | |
12389 | ; return 0; } | |
12390 | EOF | |
4222829b | 12391 | if { (eval echo configure:12392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12392 | rm -rf conftest* |
12393 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12394 | else | |
12395 | echo "configure: failed program was:" >&5 | |
12396 | cat conftest.$ac_ext >&5 | |
12397 | rm -rf conftest* | |
12398 | eval "ac_cv_lib_$ac_lib_var=no" | |
12399 | fi | |
12400 | rm -f conftest* | |
12401 | LIBS="$ac_save_LIBS" | |
12402 | ||
12403 | fi | |
12404 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12405 | echo "$ac_t""yes" 1>&6 | |
12406 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
12407 | else | |
12408 | echo "$ac_t""no" 1>&6 | |
12409 | fi | |
12410 | ||
12411 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
12412 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 | |
4222829b | 12413 | echo "configure:12414: checking for dnet_ntoa in -ldnet_stub" >&5 |
f79bd02d JS |
12414 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
12415 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12416 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12417 | else | |
12418 | ac_save_LIBS="$LIBS" | |
12419 | LIBS="-ldnet_stub $LIBS" | |
12420 | cat > conftest.$ac_ext <<EOF | |
4222829b | 12421 | #line 12422 "configure" |
f79bd02d JS |
12422 | #include "confdefs.h" |
12423 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12424 | /* We use char because int might match the return type of a gcc2 | |
12425 | builtin and then its argument prototype would still apply. */ | |
12426 | char dnet_ntoa(); | |
12427 | ||
12428 | int main() { | |
12429 | dnet_ntoa() | |
12430 | ; return 0; } | |
12431 | EOF | |
4222829b | 12432 | if { (eval echo configure:12433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12433 | rm -rf conftest* |
12434 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12435 | else | |
12436 | echo "configure: failed program was:" >&5 | |
12437 | cat conftest.$ac_ext >&5 | |
12438 | rm -rf conftest* | |
12439 | eval "ac_cv_lib_$ac_lib_var=no" | |
12440 | fi | |
12441 | rm -f conftest* | |
12442 | LIBS="$ac_save_LIBS" | |
12443 | ||
12444 | fi | |
12445 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12446 | echo "$ac_t""yes" 1>&6 | |
12447 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
12448 | else | |
12449 | echo "$ac_t""no" 1>&6 | |
12450 | fi | |
12451 | ||
12452 | fi | |
12453 | ||
12454 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
12455 | # to get the SysV transport functions. | |
12456 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) | |
12457 | # needs -lnsl. | |
12458 | # The nsl library prevents programs from opening the X display | |
12459 | # on Irix 5.2, according to dickey@clark.net. | |
12460 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
4222829b | 12461 | echo "configure:12462: checking for gethostbyname" >&5 |
f79bd02d JS |
12462 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
12463 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12464 | else | |
12465 | cat > conftest.$ac_ext <<EOF | |
4222829b | 12466 | #line 12467 "configure" |
f79bd02d JS |
12467 | #include "confdefs.h" |
12468 | /* System header to define __stub macros and hopefully few prototypes, | |
12469 | which can conflict with char gethostbyname(); below. */ | |
12470 | #include <assert.h> | |
12471 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12472 | /* We use char because int might match the return type of a gcc2 | |
12473 | builtin and then its argument prototype would still apply. */ | |
12474 | char gethostbyname(); | |
12475 | ||
12476 | int main() { | |
12477 | ||
12478 | /* The GNU C library defines this for functions which it implements | |
12479 | to always fail with ENOSYS. Some functions are actually named | |
12480 | something starting with __ and the normal name is an alias. */ | |
12481 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
12482 | choke me | |
12483 | #else | |
12484 | gethostbyname(); | |
12485 | #endif | |
12486 | ||
12487 | ; return 0; } | |
12488 | EOF | |
4222829b | 12489 | if { (eval echo configure:12490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12490 | rm -rf conftest* |
12491 | eval "ac_cv_func_gethostbyname=yes" | |
12492 | else | |
12493 | echo "configure: failed program was:" >&5 | |
12494 | cat conftest.$ac_ext >&5 | |
12495 | rm -rf conftest* | |
12496 | eval "ac_cv_func_gethostbyname=no" | |
12497 | fi | |
12498 | rm -f conftest* | |
12499 | fi | |
12500 | ||
12501 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
12502 | echo "$ac_t""yes" 1>&6 | |
12503 | : | |
12504 | else | |
12505 | echo "$ac_t""no" 1>&6 | |
12506 | fi | |
12507 | ||
12508 | if test $ac_cv_func_gethostbyname = no; then | |
12509 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 | |
4222829b | 12510 | echo "configure:12511: checking for gethostbyname in -lnsl" >&5 |
f79bd02d JS |
12511 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
12512 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12513 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12514 | else | |
12515 | ac_save_LIBS="$LIBS" | |
12516 | LIBS="-lnsl $LIBS" | |
12517 | cat > conftest.$ac_ext <<EOF | |
4222829b | 12518 | #line 12519 "configure" |
f79bd02d JS |
12519 | #include "confdefs.h" |
12520 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12521 | /* We use char because int might match the return type of a gcc2 | |
12522 | builtin and then its argument prototype would still apply. */ | |
12523 | char gethostbyname(); | |
12524 | ||
12525 | int main() { | |
12526 | gethostbyname() | |
12527 | ; return 0; } | |
12528 | EOF | |
4222829b | 12529 | if { (eval echo configure:12530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12530 | rm -rf conftest* |
12531 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12532 | else | |
12533 | echo "configure: failed program was:" >&5 | |
12534 | cat conftest.$ac_ext >&5 | |
12535 | rm -rf conftest* | |
12536 | eval "ac_cv_lib_$ac_lib_var=no" | |
12537 | fi | |
12538 | rm -f conftest* | |
12539 | LIBS="$ac_save_LIBS" | |
12540 | ||
12541 | fi | |
12542 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12543 | echo "$ac_t""yes" 1>&6 | |
12544 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
12545 | else | |
12546 | echo "$ac_t""no" 1>&6 | |
12547 | fi | |
12548 | ||
12549 | fi | |
12550 | ||
12551 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
12552 | # socket/setsockopt and other routines are undefined under SCO ODT | |
12553 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
12554 | # on later versions), says simon@lia.di.epfl.ch: it contains | |
12555 | # gethostby* variants that don't use the nameserver (or something). | |
12556 | # -lsocket must be given before -lnsl if both are needed. | |
12557 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
12558 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
4222829b | 12559 | echo "configure:12560: checking for connect" >&5 |
f79bd02d JS |
12560 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
12561 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12562 | else | |
12563 | cat > conftest.$ac_ext <<EOF | |
4222829b | 12564 | #line 12565 "configure" |
f79bd02d JS |
12565 | #include "confdefs.h" |
12566 | /* System header to define __stub macros and hopefully few prototypes, | |
12567 | which can conflict with char connect(); below. */ | |
12568 | #include <assert.h> | |
12569 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12570 | /* We use char because int might match the return type of a gcc2 | |
12571 | builtin and then its argument prototype would still apply. */ | |
12572 | char connect(); | |
12573 | ||
12574 | int main() { | |
12575 | ||
12576 | /* The GNU C library defines this for functions which it implements | |
12577 | to always fail with ENOSYS. Some functions are actually named | |
12578 | something starting with __ and the normal name is an alias. */ | |
12579 | #if defined (__stub_connect) || defined (__stub___connect) | |
12580 | choke me | |
12581 | #else | |
12582 | connect(); | |
12583 | #endif | |
12584 | ||
12585 | ; return 0; } | |
12586 | EOF | |
4222829b | 12587 | if { (eval echo configure:12588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12588 | rm -rf conftest* |
12589 | eval "ac_cv_func_connect=yes" | |
12590 | else | |
12591 | echo "configure: failed program was:" >&5 | |
12592 | cat conftest.$ac_ext >&5 | |
12593 | rm -rf conftest* | |
12594 | eval "ac_cv_func_connect=no" | |
12595 | fi | |
12596 | rm -f conftest* | |
12597 | fi | |
12598 | ||
12599 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
12600 | echo "$ac_t""yes" 1>&6 | |
12601 | : | |
12602 | else | |
12603 | echo "$ac_t""no" 1>&6 | |
12604 | fi | |
12605 | ||
12606 | if test $ac_cv_func_connect = no; then | |
12607 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 | |
4222829b | 12608 | echo "configure:12609: checking for connect in -lsocket" >&5 |
f79bd02d JS |
12609 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
12610 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12611 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12612 | else | |
12613 | ac_save_LIBS="$LIBS" | |
12614 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
12615 | cat > conftest.$ac_ext <<EOF | |
4222829b | 12616 | #line 12617 "configure" |
f79bd02d JS |
12617 | #include "confdefs.h" |
12618 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12619 | /* We use char because int might match the return type of a gcc2 | |
12620 | builtin and then its argument prototype would still apply. */ | |
12621 | char connect(); | |
12622 | ||
12623 | int main() { | |
12624 | connect() | |
12625 | ; return 0; } | |
12626 | EOF | |
4222829b | 12627 | if { (eval echo configure:12628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12628 | rm -rf conftest* |
12629 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12630 | else | |
12631 | echo "configure: failed program was:" >&5 | |
12632 | cat conftest.$ac_ext >&5 | |
12633 | rm -rf conftest* | |
12634 | eval "ac_cv_lib_$ac_lib_var=no" | |
12635 | fi | |
12636 | rm -f conftest* | |
12637 | LIBS="$ac_save_LIBS" | |
12638 | ||
12639 | fi | |
12640 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12641 | echo "$ac_t""yes" 1>&6 | |
12642 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
12643 | else | |
12644 | echo "$ac_t""no" 1>&6 | |
12645 | fi | |
12646 | ||
12647 | fi | |
12648 | ||
12649 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. | |
12650 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
4222829b | 12651 | echo "configure:12652: checking for remove" >&5 |
f79bd02d JS |
12652 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
12653 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12654 | else | |
12655 | cat > conftest.$ac_ext <<EOF | |
4222829b | 12656 | #line 12657 "configure" |
f79bd02d JS |
12657 | #include "confdefs.h" |
12658 | /* System header to define __stub macros and hopefully few prototypes, | |
12659 | which can conflict with char remove(); below. */ | |
12660 | #include <assert.h> | |
12661 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12662 | /* We use char because int might match the return type of a gcc2 | |
12663 | builtin and then its argument prototype would still apply. */ | |
12664 | char remove(); | |
12665 | ||
12666 | int main() { | |
12667 | ||
12668 | /* The GNU C library defines this for functions which it implements | |
12669 | to always fail with ENOSYS. Some functions are actually named | |
12670 | something starting with __ and the normal name is an alias. */ | |
12671 | #if defined (__stub_remove) || defined (__stub___remove) | |
12672 | choke me | |
12673 | #else | |
12674 | remove(); | |
12675 | #endif | |
12676 | ||
12677 | ; return 0; } | |
12678 | EOF | |
4222829b | 12679 | if { (eval echo configure:12680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12680 | rm -rf conftest* |
12681 | eval "ac_cv_func_remove=yes" | |
12682 | else | |
12683 | echo "configure: failed program was:" >&5 | |
12684 | cat conftest.$ac_ext >&5 | |
12685 | rm -rf conftest* | |
12686 | eval "ac_cv_func_remove=no" | |
12687 | fi | |
12688 | rm -f conftest* | |
12689 | fi | |
12690 | ||
12691 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
12692 | echo "$ac_t""yes" 1>&6 | |
12693 | : | |
12694 | else | |
12695 | echo "$ac_t""no" 1>&6 | |
12696 | fi | |
12697 | ||
12698 | if test $ac_cv_func_remove = no; then | |
12699 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 | |
4222829b | 12700 | echo "configure:12701: checking for remove in -lposix" >&5 |
f79bd02d JS |
12701 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
12702 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12703 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12704 | else | |
12705 | ac_save_LIBS="$LIBS" | |
12706 | LIBS="-lposix $LIBS" | |
12707 | cat > conftest.$ac_ext <<EOF | |
4222829b | 12708 | #line 12709 "configure" |
f79bd02d JS |
12709 | #include "confdefs.h" |
12710 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12711 | /* We use char because int might match the return type of a gcc2 | |
12712 | builtin and then its argument prototype would still apply. */ | |
12713 | char remove(); | |
12714 | ||
12715 | int main() { | |
12716 | remove() | |
12717 | ; return 0; } | |
12718 | EOF | |
4222829b | 12719 | if { (eval echo configure:12720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12720 | rm -rf conftest* |
12721 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12722 | else | |
12723 | echo "configure: failed program was:" >&5 | |
12724 | cat conftest.$ac_ext >&5 | |
12725 | rm -rf conftest* | |
12726 | eval "ac_cv_lib_$ac_lib_var=no" | |
12727 | fi | |
12728 | rm -f conftest* | |
12729 | LIBS="$ac_save_LIBS" | |
12730 | ||
12731 | fi | |
12732 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12733 | echo "$ac_t""yes" 1>&6 | |
12734 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
12735 | else | |
12736 | echo "$ac_t""no" 1>&6 | |
12737 | fi | |
12738 | ||
12739 | fi | |
12740 | ||
12741 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
12742 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 | |
4222829b | 12743 | echo "configure:12744: checking for shmat" >&5 |
f79bd02d JS |
12744 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
12745 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12746 | else | |
12747 | cat > conftest.$ac_ext <<EOF | |
4222829b | 12748 | #line 12749 "configure" |
f79bd02d JS |
12749 | #include "confdefs.h" |
12750 | /* System header to define __stub macros and hopefully few prototypes, | |
12751 | which can conflict with char shmat(); below. */ | |
12752 | #include <assert.h> | |
12753 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12754 | /* We use char because int might match the return type of a gcc2 | |
12755 | builtin and then its argument prototype would still apply. */ | |
12756 | char shmat(); | |
12757 | ||
12758 | int main() { | |
12759 | ||
12760 | /* The GNU C library defines this for functions which it implements | |
12761 | to always fail with ENOSYS. Some functions are actually named | |
12762 | something starting with __ and the normal name is an alias. */ | |
12763 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
12764 | choke me | |
12765 | #else | |
12766 | shmat(); | |
12767 | #endif | |
12768 | ||
12769 | ; return 0; } | |
12770 | EOF | |
4222829b | 12771 | if { (eval echo configure:12772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12772 | rm -rf conftest* |
12773 | eval "ac_cv_func_shmat=yes" | |
12774 | else | |
12775 | echo "configure: failed program was:" >&5 | |
12776 | cat conftest.$ac_ext >&5 | |
12777 | rm -rf conftest* | |
12778 | eval "ac_cv_func_shmat=no" | |
12779 | fi | |
12780 | rm -f conftest* | |
12781 | fi | |
12782 | ||
12783 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
12784 | echo "$ac_t""yes" 1>&6 | |
12785 | : | |
12786 | else | |
12787 | echo "$ac_t""no" 1>&6 | |
12788 | fi | |
12789 | ||
12790 | if test $ac_cv_func_shmat = no; then | |
12791 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 | |
4222829b | 12792 | echo "configure:12793: checking for shmat in -lipc" >&5 |
f79bd02d JS |
12793 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
12794 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12795 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12796 | else | |
12797 | ac_save_LIBS="$LIBS" | |
12798 | LIBS="-lipc $LIBS" | |
12799 | cat > conftest.$ac_ext <<EOF | |
4222829b | 12800 | #line 12801 "configure" |
f79bd02d JS |
12801 | #include "confdefs.h" |
12802 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12803 | /* We use char because int might match the return type of a gcc2 | |
12804 | builtin and then its argument prototype would still apply. */ | |
12805 | char shmat(); | |
12806 | ||
12807 | int main() { | |
12808 | shmat() | |
12809 | ; return 0; } | |
12810 | EOF | |
4222829b | 12811 | if { (eval echo configure:12812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12812 | rm -rf conftest* |
12813 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12814 | else | |
12815 | echo "configure: failed program was:" >&5 | |
12816 | cat conftest.$ac_ext >&5 | |
12817 | rm -rf conftest* | |
12818 | eval "ac_cv_lib_$ac_lib_var=no" | |
12819 | fi | |
12820 | rm -f conftest* | |
12821 | LIBS="$ac_save_LIBS" | |
12822 | ||
12823 | fi | |
12824 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12825 | echo "$ac_t""yes" 1>&6 | |
12826 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
12827 | else | |
12828 | echo "$ac_t""no" 1>&6 | |
12829 | fi | |
12830 | ||
12831 | fi | |
12832 | fi | |
12833 | ||
12834 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
12835 | ac_save_LDFLAGS="$LDFLAGS" | |
12836 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
12837 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
12838 | # check for ICE first), but we must link in the order -lSM -lICE or | |
12839 | # we get undefined symbols. So assume we have SM if we have ICE. | |
12840 | # These have to be linked with before -lX11, unlike the other | |
12841 | # libraries we check for below, so use a different variable. | |
12842 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. | |
12843 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
4222829b | 12844 | echo "configure:12845: checking for IceConnectionNumber in -lICE" >&5 |
f79bd02d JS |
12845 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
12846 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12847 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12848 | else | |
12849 | ac_save_LIBS="$LIBS" | |
12850 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
12851 | cat > conftest.$ac_ext <<EOF | |
4222829b | 12852 | #line 12853 "configure" |
f79bd02d JS |
12853 | #include "confdefs.h" |
12854 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12855 | /* We use char because int might match the return type of a gcc2 | |
12856 | builtin and then its argument prototype would still apply. */ | |
12857 | char IceConnectionNumber(); | |
12858 | ||
12859 | int main() { | |
12860 | IceConnectionNumber() | |
12861 | ; return 0; } | |
12862 | EOF | |
4222829b | 12863 | if { (eval echo configure:12864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12864 | rm -rf conftest* |
12865 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12866 | else | |
12867 | echo "configure: failed program was:" >&5 | |
12868 | cat conftest.$ac_ext >&5 | |
12869 | rm -rf conftest* | |
12870 | eval "ac_cv_lib_$ac_lib_var=no" | |
12871 | fi | |
12872 | rm -f conftest* | |
12873 | LIBS="$ac_save_LIBS" | |
12874 | ||
12875 | fi | |
12876 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12877 | echo "$ac_t""yes" 1>&6 | |
12878 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
12879 | else | |
12880 | echo "$ac_t""no" 1>&6 | |
12881 | fi | |
12882 | ||
12883 | LDFLAGS="$ac_save_LDFLAGS" | |
12884 | ||
12885 | fi | |
12886 | ||
12887 | ||
12888 | if test "$no_x" = "yes"; then | |
12889 | { echo "configure: error: X11 not found" 1>&2; exit 1; } | |
12890 | fi | |
12891 | ||
12892 | GUI_TK_LIBRARY="$X_LIBS" | |
12893 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
12894 | AFMINSTALL=afminstall | |
12895 | COMPILED_X_PROGRAM=0 | |
12896 | ||
12897 | echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6 | |
4222829b | 12898 | echo "configure:12899: checking for Motif/Lesstif headers" >&5 |
f79bd02d JS |
12899 | |
12900 | ac_find_includes= | |
12901 | for ac_dir in $SEARCH_INCLUDE; | |
12902 | do | |
12903 | if test -f "$ac_dir/Xm/Xm.h"; then | |
12904 | ac_find_includes=$ac_dir | |
12905 | break | |
12906 | fi | |
12907 | done | |
12908 | ||
12909 | if test "$ac_find_includes" != "" ; then | |
12910 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
12911 | else | |
12912 | cat > conftest.$ac_ext <<EOF | |
4222829b | 12913 | #line 12914 "configure" |
f79bd02d JS |
12914 | #include "confdefs.h" |
12915 | ||
12916 | #include <Xm/Xm.h> | |
12917 | ||
12918 | int main() { | |
12919 | ||
12920 | int version; | |
12921 | version = xmUseVersion; | |
12922 | ||
12923 | ; return 0; } | |
12924 | EOF | |
4222829b | 12925 | if { (eval echo configure:12926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
f79bd02d JS |
12926 | rm -rf conftest* |
12927 | ||
12928 | echo "$ac_t""found in default search path" 1>&6 | |
12929 | COMPILED_X_PROGRAM=1 | |
12930 | ||
12931 | else | |
12932 | echo "configure: failed program was:" >&5 | |
12933 | cat conftest.$ac_ext >&5 | |
12934 | rm -rf conftest* | |
12935 | ||
12936 | echo "$ac_t""no" 1>&6 | |
12937 | { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; } | |
12938 | ||
12939 | ||
12940 | fi | |
12941 | rm -f conftest* | |
12942 | fi | |
12943 | ||
12944 | if test "$COMPILED_X_PROGRAM" = 0; then | |
12945 | echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6 | |
4222829b | 12946 | echo "configure:12947: checking for Motif/Lesstif library" >&5 |
f79bd02d JS |
12947 | |
12948 | ac_find_libraries= | |
12949 | for ac_dir in $SEARCH_LIB; | |
12950 | do | |
12951 | for ac_extension in a so sl dylib; do | |
12952 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
12953 | ac_find_libraries=$ac_dir | |
12954 | break 2 | |
12955 | fi | |
12956 | done | |
12957 | done | |
12958 | ||
12959 | if test "$ac_find_libraries" != "" ; then | |
12960 | ||
12961 | ac_path_to_include=$ac_find_includes | |
12962 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
12963 | result=$? | |
12964 | if test $result = 0; then | |
12965 | ac_path_to_include="" | |
12966 | else | |
12967 | ac_path_to_include=" -I$ac_find_includes" | |
12968 | fi | |
12969 | ||
12970 | ||
12971 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
12972 | result=$? | |
12973 | if test $result = 0; then | |
12974 | ac_path_to_link="" | |
12975 | else | |
12976 | ac_path_to_link=" -L$ac_find_libraries" | |
12977 | fi | |
12978 | ||
12979 | ||
12980 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
12981 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" | |
12982 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
12983 | else | |
12984 | cat > conftest.$ac_ext <<EOF | |
4222829b | 12985 | #line 12986 "configure" |
f79bd02d JS |
12986 | #include "confdefs.h" |
12987 | ||
12988 | #include <Xm/Xm.h> | |
12989 | ||
12990 | int main() { | |
12991 | ||
12992 | int version; | |
12993 | version = xmUseVersion; | |
12994 | ||
12995 | ; return 0; } | |
12996 | EOF | |
4222829b | 12997 | if { (eval echo configure:12998: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
f79bd02d JS |
12998 | rm -rf conftest* |
12999 | ||
13000 | echo "$ac_t""found in default search path" 1>&6 | |
13001 | COMPILED_X_PROGRAM=1 | |
13002 | ||
13003 | else | |
13004 | echo "configure: failed program was:" >&5 | |
13005 | cat conftest.$ac_ext >&5 | |
13006 | rm -rf conftest* | |
13007 | ||
13008 | echo "$ac_t""no" 1>&6 | |
13009 | { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; } | |
13010 | ||
13011 | ||
13012 | fi | |
13013 | rm -f conftest* | |
13014 | fi | |
13015 | fi | |
13016 | ||
13017 | xpm_link= | |
13018 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
4222829b | 13019 | echo "configure:13020: checking for Xpm library" >&5 |
f79bd02d JS |
13020 | |
13021 | ac_find_libraries= | |
13022 | for ac_dir in $SEARCH_LIB; | |
13023 | do | |
13024 | for ac_extension in a so sl dylib; do | |
13025 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
13026 | ac_find_libraries=$ac_dir | |
13027 | break 2 | |
13028 | fi | |
13029 | done | |
13030 | done | |
13031 | ||
13032 | if test "$ac_find_libraries" != "" ; then | |
13033 | ||
13034 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
13035 | result=$? | |
13036 | if test $result = 0; then | |
13037 | ac_path_to_link="" | |
13038 | else | |
13039 | ac_path_to_link=" -L$ac_find_libraries" | |
13040 | fi | |
13041 | ||
13042 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
13043 | xpm_link=" -lXpm" | |
13044 | cat >> confdefs.h <<\EOF | |
13045 | #define wxHAVE_LIB_XPM 1 | |
13046 | EOF | |
13047 | ||
13048 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
13049 | else | |
13050 | cat > conftest.$ac_ext <<EOF | |
4222829b | 13051 | #line 13052 "configure" |
f79bd02d JS |
13052 | #include "confdefs.h" |
13053 | ||
13054 | #include <X11/xpm.h> | |
13055 | ||
13056 | int main() { | |
13057 | ||
13058 | int version; | |
13059 | version = XpmLibraryVersion(); | |
13060 | ||
13061 | ; return 0; } | |
13062 | EOF | |
4222829b | 13063 | if { (eval echo configure:13064: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
f79bd02d JS |
13064 | rm -rf conftest* |
13065 | ||
13066 | xpm_link=" -lXpm" | |
13067 | cat >> confdefs.h <<\EOF | |
13068 | #define wxHAVE_LIB_XPM 1 | |
13069 | EOF | |
13070 | ||
13071 | echo "$ac_t""found in default search path" 1>&6 | |
13072 | COMPILED_X_PROGRAM=0 | |
13073 | ||
13074 | else | |
13075 | echo "configure: failed program was:" >&5 | |
13076 | cat conftest.$ac_ext >&5 | |
13077 | rm -rf conftest* | |
13078 | ||
13079 | echo "$ac_t""no" 1>&6 | |
13080 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
13081 | ||
13082 | ||
13083 | fi | |
13084 | rm -f conftest* | |
13085 | fi | |
13086 | ||
13087 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link -lXmu -lXext -lXt -lX11" | |
13088 | TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo" | |
13089 | TOOLKIT=MOTIF | |
13090 | GUIDIST=MOTIF_DIST | |
13091 | fi | |
13092 | ||
13093 | if test "$wxUSE_MAC" = 1; then | |
13094 | if test "$wxUSE_PRECOMP" = "yes"; then | |
13095 | CPPFLAGS="$CPPFLAGS -cpp-precomp" | |
13096 | fi | |
13097 | CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile" | |
13098 | CFLAGS="$CFLAGS -fpascal-strings" | |
13099 | CXXFLAGS="$CXXFLAGS -fpascal-strings" | |
13100 | ||
13101 | TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile" | |
13102 | TOOLKIT=MAC | |
13103 | GUIDIST=MACX_DIST | |
13104 | fi | |
13105 | ||
13106 | if test "$wxUSE_PM" = 1; then | |
13107 | TOOLKIT=PM | |
1e6feb95 VZ |
13108 | GUIDIST=GTK_DIST |
13109 | fi | |
b4085ce6 | 13110 | |
3a922bb4 | 13111 | if test "$TOOLKIT" = "PM" ; then |
1e6feb95 | 13112 | TOOLKIT_DIR="os2" |
3a922bb4 RL |
13113 | else |
13114 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
1e6feb95 | 13115 | fi |
e07802fc | 13116 | |
3a922bb4 | 13117 | PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst" |
1e6feb95 | 13118 | |
3a922bb4 RL |
13119 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
13120 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
9b695262 VZ |
13121 | |
13122 | ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}" | |
13123 | ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}" | |
13124 | ||
3a922bb4 RL |
13125 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" |
13126 | TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}" | |
13127 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" | |
13128 | WIDGET_SET=univ | |
f6bcfd97 | 13129 | else |
3a922bb4 | 13130 | ALL_OBJECTS="\$(GUIOBJS)" |
9b695262 VZ |
13131 | ALL_SOURCES="\$(ALL_SOURCES)" |
13132 | ALL_HEADERS="\$(ALL_HEADERS)" | |
1e6feb95 VZ |
13133 | fi |
13134 | ||
ba0e650c | 13135 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" |
1e6feb95 | 13136 | |
f9bc1684 | 13137 | if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then |
1e6feb95 VZ |
13138 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" |
13139 | fi | |
13140 | ||
13141 | if test "$wxUSE_HTML" = "yes"; then | |
13142 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
13143 | fi | |
3fcdd07b | 13144 | |
4f14bcd8 | 13145 | if test "$wxUSE_LIBJPEG" = "builtin" ; then |
2224580a | 13146 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" |
d9d8273d | 13147 | fi |
4f14bcd8 | 13148 | if test "$wxUSE_LIBTIFF" = "builtin" ; then |
d9d8273d RR |
13149 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" |
13150 | fi | |
4f14bcd8 | 13151 | if test "$wxUSE_LIBPNG" = "builtin" ; then |
d9d8273d RR |
13152 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" |
13153 | fi | |
2224580a | 13154 | |
2224580a VZ |
13155 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" |
13156 | DISTDIR="wx\$(TOOLKIT)" | |
10f2d63a | 13157 | else |
dad6c0ea VZ |
13158 | USE_GUI=0 |
13159 | ||
3a922bb4 | 13160 | TOOLKIT_DIR="base" |
f6bcfd97 | 13161 | |
3a922bb4 RL |
13162 | if test "$USE_WIN32" = 1 ; then |
13163 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}" | |
13164 | TOOLKIT_VPATH="\${top_srcdir}/src/msw" | |
0b2effe9 | 13165 | |
3a922bb4 | 13166 | TOOLKIT="MSW" |
f6bcfd97 | 13167 | else |
3a922bb4 RL |
13168 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}" |
13169 | TOOLKIT_VPATH="\${top_srcdir}/src/unix" | |
f6bcfd97 BP |
13170 | fi |
13171 | ||
831b3152 | 13172 | PORT_FILES="\${top_srcdir}/src/files.lst" |
2224580a VZ |
13173 | |
13174 | GUIDIST="BASE_DIST" | |
13175 | DISTDIR="wxBase" | |
10f2d63a VZ |
13176 | fi |
13177 | ||
e45387bf VZ |
13178 | |
13179 | if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then | |
13180 | ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)" | |
13181 | fi | |
13182 | ||
4f14bcd8 | 13183 | if test "$wxUSE_REGEX" = "builtin" ; then |
3a922bb4 RL |
13184 | ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)" |
13185 | fi | |
4f14bcd8 | 13186 | if test "$wxUSE_ZLIB" = "builtin" ; then |
3a922bb4 RL |
13187 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" |
13188 | fi | |
10f2d63a | 13189 | |
3a922bb4 | 13190 | if test "$wxUSE_OPENGL" = "yes"; then |
62d0491b RL |
13191 | if test "$wxUSE_MAC" = 1; then |
13192 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
13193 | else | |
570cb8cb | 13194 | |
62d0491b | 13195 | ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'` |
3a922bb4 | 13196 | echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6 |
4222829b | 13197 | echo "configure:13198: checking for GL/gl.h" >&5 |
3a922bb4 RL |
13198 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13199 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13200 | else | |
13201 | cat > conftest.$ac_ext <<EOF | |
4222829b | 13202 | #line 13203 "configure" |
3a922bb4 RL |
13203 | #include "confdefs.h" |
13204 | #include <GL/gl.h> | |
13205 | EOF | |
13206 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4222829b | 13207 | { (eval echo configure:13208: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3a922bb4 RL |
13208 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13209 | if test -z "$ac_err"; then | |
13210 | rm -rf conftest* | |
13211 | eval "ac_cv_header_$ac_safe=yes" | |
13212 | else | |
13213 | echo "$ac_err" >&5 | |
13214 | echo "configure: failed program was:" >&5 | |
13215 | cat conftest.$ac_ext >&5 | |
13216 | rm -rf conftest* | |
13217 | eval "ac_cv_header_$ac_safe=no" | |
13218 | fi | |
13219 | rm -f conftest* | |
13220 | fi | |
13221 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
13222 | echo "$ac_t""yes" 1>&6 | |
13223 | ||
1352efdf | 13224 | echo $ac_n "checking for -lGL""... $ac_c" 1>&6 |
4222829b | 13225 | echo "configure:13226: checking for -lGL" >&5 |
57964555 | 13226 | |
62d0491b RL |
13227 | ac_find_libraries= |
13228 | for ac_dir in $SEARCH_LIB; | |
13229 | do | |
13230 | for ac_extension in a so sl dylib; do | |
13231 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
13232 | ac_find_libraries=$ac_dir | |
13233 | break 2 | |
13234 | fi | |
13235 | done | |
13236 | done | |
3a922bb4 | 13237 | |
62d0491b RL |
13238 | if test "$ac_find_libraries" != "" ; then |
13239 | ||
13240 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
13241 | result=$? | |
13242 | if test $result = 0; then | |
13243 | ac_path_to_link="" | |
13244 | else | |
13245 | ac_path_to_link=" -L$ac_find_libraries" | |
13246 | fi | |
3a922bb4 | 13247 | |
4b6b4dfc RR |
13248 | if test "$ac_path_to_link" = " -L/usr/lib" ; then |
13249 | LDFLAGS_GL="$LDFLAGS" | |
13250 | else | |
13251 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
13252 | fi | |
62d0491b | 13253 | OPENGL_LIBS="-lGL -lGLU" |
1352efdf | 13254 | echo "$ac_t""yes" 1>&6 |
62d0491b | 13255 | else |
1352efdf RL |
13256 | echo "$ac_t""no" 1>&6 |
13257 | echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6 | |
4222829b | 13258 | echo "configure:13259: checking for -lMesaGL" >&5 |
62d0491b RL |
13259 | |
13260 | ac_find_libraries= | |
13261 | for ac_dir in $SEARCH_LIB; | |
13262 | do | |
13263 | for ac_extension in a so sl dylib; do | |
13264 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
13265 | ac_find_libraries=$ac_dir | |
13266 | break 2 | |
13267 | fi | |
13268 | done | |
13269 | done | |
3a922bb4 | 13270 | |
62d0491b | 13271 | if test "$ac_find_libraries" != "" ; then |
57964555 | 13272 | |
62d0491b RL |
13273 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
13274 | result=$? | |
13275 | if test $result = 0; then | |
13276 | ac_path_to_link="" | |
13277 | else | |
13278 | ac_path_to_link=" -L$ac_find_libraries" | |
13279 | fi | |
3a922bb4 | 13280 | |
62d0491b RL |
13281 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" |
13282 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
1352efdf RL |
13283 | echo "$ac_t""yes" 1>&6 |
13284 | else | |
13285 | echo "$ac_t""no" 1>&6 | |
62d0491b RL |
13286 | fi |
13287 | fi | |
13288 | ||
3a922bb4 RL |
13289 | else |
13290 | echo "$ac_t""no" 1>&6 | |
3a922bb4 RL |
13291 | fi |
13292 | ||
6f754473 | 13293 | |
62d0491b RL |
13294 | |
13295 | # AC_CHECK_HEADER(GL/gl.h, | |
13296 | # [ | |
13297 | # AC_CHECK_LIB(GL, glFlush, | |
13298 | # [ | |
13299 | # OPENGL_LIBS="-lGL -lGLU" | |
13300 | # ], | |
13301 | # [ | |
13302 | # AC_CHECK_LIB(MesaGL, glFlush, | |
13303 | # [ | |
13304 | # OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
13305 | # ], | |
13306 | # [], | |
13307 | # [-lm]) | |
13308 | # ], | |
13309 | # [-lm]) | |
13310 | # ]) | |
13311 | ||
13312 | if test "x$OPENGL_LIBS" = "x"; then | |
13313 | { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; } | |
13314 | fi | |
6f754473 | 13315 | fi |
6f754473 | 13316 | |
62d0491b RL |
13317 | if test "$wxUSE_OPENGL" = "yes"; then |
13318 | cat >> confdefs.h <<\EOF | |
6f754473 VZ |
13319 | #define wxUSE_OPENGL 1 |
13320 | EOF | |
13321 | ||
62d0491b | 13322 | cat >> confdefs.h <<\EOF |
6f754473 VZ |
13323 | #define wxUSE_GLCANVAS 1 |
13324 | EOF | |
13325 | ||
62d0491b RL |
13326 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl" |
13327 | fi | |
3a922bb4 RL |
13328 | fi |
13329 | ||
13330 | if test -z "$TOOLKIT_VPATH" ; then | |
13331 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" | |
13332 | fi | |
13333 | ||
13334 | if test -n "$TOOLKIT" ; then | |
13335 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
13336 | fi | |
13337 | ||
f676c7ff MB |
13338 | lib_unicode_suffix= |
13339 | if test "$wxUSE_UNICODE" = "yes"; then | |
13340 | lib_unicode_suffix=u | |
13341 | fi | |
13342 | ||
3a922bb4 RL |
13343 | lib_debug_suffix= |
13344 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
13345 | lib_debug_suffix=d | |
3a922bb4 RL |
13346 | fi |
13347 | ||
f676c7ff MB |
13348 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}" |
13349 | TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}" | |
3a922bb4 RL |
13350 | |
13351 | if test "$cross_compiling" = "yes"; then | |
13352 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}" | |
13353 | TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}" | |
13354 | fi | |
13355 | ||
13356 | WX_LIBRARY="wx_${TOOLCHAIN_NAME}" | |
13357 | WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}" | |
13358 | ||
3a922bb4 RL |
13359 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" |
13360 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
13361 | ||
13362 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}" | |
13363 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
13364 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}" | |
13365 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
13366 | ||
d08b457b | 13367 | WX_RESOURCES_MACOSX="lib${WX_LIBRARY}.rsrc" |
e23081de | 13368 | WX_RESOURCES_MACOSX_COMPILED="lib${WX_LIBRARY}.r" |
3a922bb4 | 13369 | |
978f1259 RL |
13370 | case "${host}" in |
13371 | *-*-cygwin* | *-*-mingw32* ) | |
13372 | ||
2da4f892 | 13373 | |
978f1259 RL |
13374 | |
13375 | if test "$cross_compiling" != "yes"; then | |
13376 | WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" | |
13377 | WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" | |
13378 | WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}" | |
13379 | WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
2da4f892 RL |
13380 | else |
13381 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
13382 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
978f1259 RL |
13383 | fi |
13384 | ||
13385 | esac | |
13386 | ||
13387 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
13388 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a" | |
13389 | ||
13390 | WXCONFIG_LIBS="-l${WX_LIBRARY}" | |
885d4bf5 | 13391 | WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a" |
978f1259 RL |
13392 | |
13393 | if test "$wxUSE_OPENGL" = "yes"; then | |
885d4bf5 VS |
13394 | WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}" |
13395 | WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}" | |
978f1259 RL |
13396 | fi |
13397 | ||
13398 | ||
3a922bb4 | 13399 | |
4222829b VS |
13400 | if test "$wxUSE_SHARED" = "yes"; then |
13401 | case "${host}" in | |
13402 | *-pc-os2_emx | *-pc-os2-emx | \ | |
13403 | *-pc-msdosdjgpp ) | |
13404 | wxUSE_SHARED=no | |
13405 | echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2 | |
13406 | ;; | |
13407 | esac | |
13408 | fi | |
13409 | ||
3a922bb4 | 13410 | if test "$wxUSE_SHARED" = "yes"; then |
55e80573 VZ |
13411 | |
13412 | if test "$wxUSE_OPENGL" = "yes"; then | |
13413 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
3a922bb4 | 13414 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}" |
55e80573 VZ |
13415 | else |
13416 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
3a922bb4 | 13417 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}" |
55e80573 VZ |
13418 | fi |
13419 | ||
dd4f7467 | 13420 | if test "$GCC" = "yes"; then |
55e80573 | 13421 | PIC_FLAG="-fPIC" |
dd4f7467 | 13422 | fi |
55e80573 VZ |
13423 | |
13424 | SHARED_LD="${CXX} -shared -o" | |
698dcdb6 | 13425 | |
10f2d63a VZ |
13426 | case "${host}" in |
13427 | *-hp-hpux* ) | |
d569ea8d GD |
13428 | if test "$GCC" == "yes"; then |
13429 | SHARED_LD="${SHARED_LD} ${PIC_FLAG}" | |
13430 | else | |
3d63bc3a | 13431 | LDFLAGS="$LDFLAGS -L/usr/lib" |
f6bcfd97 | 13432 | |
10f2d63a VZ |
13433 | SHARED_LD="${CXX} -b -o" |
13434 | PIC_FLAG="+Z" | |
13435 | fi | |
55e80573 | 13436 | |
7b7a7637 RL |
13437 | if test "$wxUSE_OPENGL" = "yes"; then |
13438 | WX_ALL_INSTALLED="preinstall_gl" | |
13439 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" | |
13440 | else | |
13441 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" | |
13442 | fi | |
10f2d63a | 13443 | ;; |
b12915c1 | 13444 | |
55e80573 VZ |
13445 | *-*-linux* ) |
13446 | if test "$GCC" != "yes"; then | |
13447 | echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6 | |
4222829b | 13448 | echo "configure:13449: checking for Intel compiler" >&5 |
55e80573 VZ |
13449 | if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then |
13450 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13451 | else | |
13452 | ||
13453 | cat > conftest.$ac_ext <<EOF | |
4222829b | 13454 | #line 13455 "configure" |
55e80573 VZ |
13455 | #include "confdefs.h" |
13456 | ||
13457 | int main() { | |
13458 | ||
13459 | #ifndef __INTEL_COMPILER | |
dd4f7467 | 13460 | #error Not icc |
55e80573 VZ |
13461 | #endif |
13462 | ||
13463 | ; return 0; } | |
13464 | EOF | |
4222829b | 13465 | if { (eval echo configure:13466: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
55e80573 VZ |
13466 | rm -rf conftest* |
13467 | wx_cv_prog_icc=yes | |
13468 | else | |
13469 | echo "configure: failed program was:" >&5 | |
13470 | cat conftest.$ac_ext >&5 | |
13471 | rm -rf conftest* | |
13472 | wx_cv_prog_icc=no | |
13473 | ||
13474 | fi | |
13475 | rm -f conftest* | |
13476 | ||
13477 | fi | |
13478 | ||
13479 | echo "$ac_t""$wx_cv_prog_icc" 1>&6 | |
55e80573 VZ |
13480 | if test "$wx_cv_prog_icc" = "yes"; then |
13481 | PIC_FLAG="-KPIC" | |
13482 | fi | |
13483 | fi | |
13484 | ||
3a922bb4 RL |
13485 | if test "$wxUSE_SONAME" = "yes" ; then |
13486 | SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}" | |
13487 | SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}" | |
f6bcfd97 | 13488 | WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)" |
00cf1208 | 13489 | fi |
10f2d63a | 13490 | ;; |
55e80573 | 13491 | |
10f2d63a VZ |
13492 | *-*-solaris2* ) |
13493 | if test "$GCC" = yes ; then | |
f6bcfd97 | 13494 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" |
10f2d63a VZ |
13495 | else |
13496 | SHARED_LD="${CXX} -G -o" | |
13497 | PIC_FLAG="-KPIC" | |
7b7a7637 | 13498 | SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}" |
471944dc | 13499 | SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}" |
10f2d63a | 13500 | fi |
10f2d63a | 13501 | ;; |
55e80573 | 13502 | |
b4085ce6 | 13503 | *-*-darwin* ) |
156b2523 GD |
13504 | CFLAGS="$CFLAGS -fno-common -DDYLIB_INIT" |
13505 | CXXFLAGS="$CXXFLAGS -fno-common -DDYLIB_INIT" | |
13506 | SHARED_LD="$CXX -dynamiclib -init _wxWindowsDylibInit -o" | |
ea5999b9 | 13507 | PIC_FLAG="-dynamic -fPIC" |
10f2d63a | 13508 | ;; |
55e80573 | 13509 | |
10f2d63a VZ |
13510 | *-*-aix* ) |
13511 | SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o" | |
10f2d63a | 13512 | ;; |
55e80573 | 13513 | |
7b7a7637 | 13514 | *-*-cygwin* | *-*-mingw32* ) |
77e13408 | 13515 | |
2da4f892 | 13516 | WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a" |
77e13408 | 13517 | |
77e13408 | 13518 | SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o" |
00c81359 | 13519 | TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1" |
25d0687a RL |
13520 | |
13521 | PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1" | |
7b7a7637 RL |
13522 | |
13523 | if test "$wxUSE_OPENGL" = "yes"; then | |
f6bcfd97 | 13524 | WX_ALL_INSTALLED="preinstall_gl" |
978f1259 | 13525 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" |
f6bcfd97 | 13526 | else |
978f1259 | 13527 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" |
f6bcfd97 | 13528 | fi |
10f2d63a | 13529 | ;; |
55e80573 | 13530 | |
b12915c1 | 13531 | *-*-beos* ) |
e2b8b066 | 13532 | SHARED_LD="${LD} -shared -o" |
b12915c1 | 13533 | ;; |
55e80573 VZ |
13534 | |
13535 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ | |
13536 | *-*-sunos4* | \ | |
13537 | *-*-irix5* | *-*-irix6* | \ | |
13538 | *-*-osf* | \ | |
13539 | *-*-dgux5* | \ | |
13540 | *-*-sysv5* ) | |
13541 | ;; | |
13542 | ||
10f2d63a | 13543 | *) |
7b7a7637 | 13544 | { echo "configure: error: unknown system type $host." 1>&2; exit 1; } |
10f2d63a VZ |
13545 | esac |
13546 | ||
13547 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
13548 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
bdad4e7e | 13549 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" |
10f2d63a | 13550 | fi |
55e80573 | 13551 | |
3711412e | 13552 | WX_TARGET_LIBRARY_TYPE="so" |
885d4bf5 | 13553 | INSTALL_LIBRARY='$(INSTALL_PROGRAM)' |
3a922bb4 | 13554 | fi |
f6bcfd97 | 13555 | |
3a922bb4 | 13556 | if test "$wxUSE_SHARED" = "no"; then |
f6bcfd97 | 13557 | |
3a922bb4 | 13558 | if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then |
f6bcfd97 BP |
13559 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" |
13560 | fi | |
13561 | ||
6fa882bd RR |
13562 | if test "$wxUSE_MAC" = 1; then |
13563 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
13564 | fi | |
13565 | ||
3a922bb4 RL |
13566 | if test "$wxUSE_OPENGL" = "yes"; then |
13567 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl" | |
13568 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}" | |
13569 | else | |
13570 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}" | |
13571 | fi | |
698dcdb6 | 13572 | |
3a922bb4 RL |
13573 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" |
13574 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" | |
13575 | ||
13576 | WX_TARGET_LIBRARY_TYPE="a" | |
885d4bf5 | 13577 | INSTALL_LIBRARY='$(INSTALL_DATA)' |
10f2d63a | 13578 | fi |
10f2d63a | 13579 | |
d08b457b GD |
13580 | if test "$wxUSE_MAC" = 1; then |
13581 | WX_ALL="${WX_ALL} \$(build_libdir)/lib${WX_LIBRARY}.r" | |
e23081de | 13582 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res" |
d08b457b GD |
13583 | # Extract the first word of "Rez", so it can be a program name with args. |
13584 | set dummy Rez; ac_word=$2 | |
13585 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
4222829b | 13586 | echo "configure:13587: checking for $ac_word" >&5 |
d08b457b GD |
13587 | if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then |
13588 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13589 | else | |
13590 | if test -n "$RESCOMP"; then | |
13591 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
13592 | else | |
13593 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
13594 | ac_dummy="$PATH" | |
13595 | for ac_dir in $ac_dummy; do | |
13596 | test -z "$ac_dir" && ac_dir=. | |
13597 | if test -f $ac_dir/$ac_word; then | |
13598 | ac_cv_prog_RESCOMP="Rez" | |
13599 | break | |
13600 | fi | |
13601 | done | |
13602 | IFS="$ac_save_ifs" | |
13603 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
13604 | fi | |
13605 | fi | |
13606 | RESCOMP="$ac_cv_prog_RESCOMP" | |
13607 | if test -n "$RESCOMP"; then | |
13608 | echo "$ac_t""$RESCOMP" 1>&6 | |
13609 | else | |
13610 | echo "$ac_t""no" 1>&6 | |
13611 | fi | |
13612 | ||
9f8148b1 GD |
13613 | # Extract the first word of "DeRez", so it can be a program name with args. |
13614 | set dummy DeRez; ac_word=$2 | |
d08b457b | 13615 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
4222829b | 13616 | echo "configure:13617: checking for $ac_word" >&5 |
d08b457b GD |
13617 | if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then |
13618 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13619 | else | |
13620 | if test -n "$DEREZ"; then | |
13621 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
13622 | else | |
13623 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
13624 | ac_dummy="$PATH" | |
13625 | for ac_dir in $ac_dummy; do | |
13626 | test -z "$ac_dir" && ac_dir=. | |
13627 | if test -f $ac_dir/$ac_word; then | |
9f8148b1 | 13628 | ac_cv_prog_DEREZ="DeRez" |
d08b457b GD |
13629 | break |
13630 | fi | |
13631 | done | |
13632 | IFS="$ac_save_ifs" | |
9f8148b1 | 13633 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" |
d08b457b GD |
13634 | fi |
13635 | fi | |
13636 | DEREZ="$ac_cv_prog_DEREZ" | |
13637 | if test -n "$DEREZ"; then | |
13638 | echo "$ac_t""$DEREZ" 1>&6 | |
13639 | else | |
13640 | echo "$ac_t""no" 1>&6 | |
13641 | fi | |
13642 | ||
13643 | LIBWXMACRES="\$(top_builddir)/lib/lib${WX_LIBRARY}.r" | |
13644 | LIBWXMACRESCOMP="\$(RESCOMP) Carbon.r -t APPL ${LIBWXMACRES} -o \$(BIN_PROGRAM)" | |
e23081de | 13645 | LIBWXMACRESWXCONFIG="${RESCOMP} Carbon.r -t APPL \${prefix}/lib/${WX_RESOURCES_MACOSX_COMPILED} -o" |
d08b457b GD |
13646 | fi |
13647 | ||
3a922bb4 | 13648 | |
13c0541d GD |
13649 | if test "$wxUSE_MAC" != 1; then |
13650 | for ac_hdr in strings.h | |
9cfadba2 | 13651 | do |
698dcdb6 VZ |
13652 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
13653 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
4222829b | 13654 | echo "configure:13655: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
13655 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13656 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13657 | else | |
13658 | cat > conftest.$ac_ext <<EOF | |
4222829b | 13659 | #line 13660 "configure" |
9cfadba2 | 13660 | #include "confdefs.h" |
698dcdb6 VZ |
13661 | #include <$ac_hdr> |
13662 | EOF | |
13663 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4222829b | 13664 | { (eval echo configure:13665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13665 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13666 | if test -z "$ac_err"; then | |
13667 | rm -rf conftest* | |
13668 | eval "ac_cv_header_$ac_safe=yes" | |
6232543b | 13669 | else |
698dcdb6 VZ |
13670 | echo "$ac_err" >&5 |
13671 | echo "configure: failed program was:" >&5 | |
9cfadba2 | 13672 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13673 | rm -rf conftest* |
13674 | eval "ac_cv_header_$ac_safe=no" | |
9cfadba2 | 13675 | fi |
698dcdb6 | 13676 | rm -f conftest* |
9cfadba2 | 13677 | fi |
698dcdb6 VZ |
13678 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13679 | echo "$ac_t""yes" 1>&6 | |
13680 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13681 | cat >> confdefs.h <<EOF | |
13682 | #define $ac_tr_hdr 1 | |
9cfadba2 | 13683 | EOF |
698dcdb6 VZ |
13684 | |
13685 | else | |
13686 | echo "$ac_t""no" 1>&6 | |
9cfadba2 VZ |
13687 | fi |
13688 | done | |
10f2d63a | 13689 | |
13c0541d GD |
13690 | fi |
13691 | ||
3a922bb4 | 13692 | for ac_hdr in stdlib.h |
10f2d63a | 13693 | do |
698dcdb6 VZ |
13694 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
13695 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
4222829b | 13696 | echo "configure:13697: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
13697 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13698 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13699 | else | |
13700 | cat > conftest.$ac_ext <<EOF | |
4222829b | 13701 | #line 13702 "configure" |
10f2d63a | 13702 | #include "confdefs.h" |
698dcdb6 VZ |
13703 | #include <$ac_hdr> |
13704 | EOF | |
13705 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4222829b | 13706 | { (eval echo configure:13707: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13707 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13708 | if test -z "$ac_err"; then | |
13709 | rm -rf conftest* | |
13710 | eval "ac_cv_header_$ac_safe=yes" | |
6232543b | 13711 | else |
698dcdb6 VZ |
13712 | echo "$ac_err" >&5 |
13713 | echo "configure: failed program was:" >&5 | |
10f2d63a | 13714 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13715 | rm -rf conftest* |
13716 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 13717 | fi |
698dcdb6 | 13718 | rm -f conftest* |
10f2d63a | 13719 | fi |
698dcdb6 VZ |
13720 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13721 | echo "$ac_t""yes" 1>&6 | |
13722 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13723 | cat >> confdefs.h <<EOF | |
13724 | #define $ac_tr_hdr 1 | |
10f2d63a | 13725 | EOF |
698dcdb6 VZ |
13726 | |
13727 | else | |
13728 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13729 | fi |
13730 | done | |
13731 | ||
9f8148b1 | 13732 | for ac_hdr in malloc.h |
10f2d63a | 13733 | do |
698dcdb6 VZ |
13734 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
13735 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
4222829b | 13736 | echo "configure:13737: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
13737 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13738 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13739 | else | |
13740 | cat > conftest.$ac_ext <<EOF | |
4222829b | 13741 | #line 13742 "configure" |
10f2d63a | 13742 | #include "confdefs.h" |
698dcdb6 VZ |
13743 | #include <$ac_hdr> |
13744 | EOF | |
13745 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4222829b | 13746 | { (eval echo configure:13747: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13747 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13748 | if test -z "$ac_err"; then | |
13749 | rm -rf conftest* | |
13750 | eval "ac_cv_header_$ac_safe=yes" | |
6f72b082 | 13751 | else |
698dcdb6 VZ |
13752 | echo "$ac_err" >&5 |
13753 | echo "configure: failed program was:" >&5 | |
6f72b082 | 13754 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13755 | rm -rf conftest* |
13756 | eval "ac_cv_header_$ac_safe=no" | |
6f72b082 | 13757 | fi |
698dcdb6 | 13758 | rm -f conftest* |
6f72b082 | 13759 | fi |
698dcdb6 VZ |
13760 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13761 | echo "$ac_t""yes" 1>&6 | |
13762 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13763 | cat >> confdefs.h <<EOF | |
13764 | #define $ac_tr_hdr 1 | |
6f72b082 | 13765 | EOF |
698dcdb6 VZ |
13766 | |
13767 | else | |
13768 | echo "$ac_t""no" 1>&6 | |
6f72b082 OK |
13769 | fi |
13770 | done | |
13771 | ||
9f8148b1 | 13772 | for ac_hdr in unistd.h |
6f72b082 | 13773 | do |
698dcdb6 VZ |
13774 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
13775 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
4222829b | 13776 | echo "configure:13777: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
13777 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13778 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13779 | else | |
13780 | cat > conftest.$ac_ext <<EOF | |
4222829b | 13781 | #line 13782 "configure" |
6f72b082 | 13782 | #include "confdefs.h" |
698dcdb6 VZ |
13783 | #include <$ac_hdr> |
13784 | EOF | |
13785 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4222829b | 13786 | { (eval echo configure:13787: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13787 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13788 | if test -z "$ac_err"; then | |
13789 | rm -rf conftest* | |
13790 | eval "ac_cv_header_$ac_safe=yes" | |
6f72b082 | 13791 | else |
698dcdb6 VZ |
13792 | echo "$ac_err" >&5 |
13793 | echo "configure: failed program was:" >&5 | |
6f72b082 | 13794 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13795 | rm -rf conftest* |
13796 | eval "ac_cv_header_$ac_safe=no" | |
6f72b082 | 13797 | fi |
698dcdb6 | 13798 | rm -f conftest* |
6f72b082 | 13799 | fi |
698dcdb6 VZ |
13800 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13801 | echo "$ac_t""yes" 1>&6 | |
13802 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13803 | cat >> confdefs.h <<EOF | |
13804 | #define $ac_tr_hdr 1 | |
6f72b082 | 13805 | EOF |
698dcdb6 VZ |
13806 | |
13807 | else | |
13808 | echo "$ac_t""no" 1>&6 | |
6f72b082 OK |
13809 | fi |
13810 | done | |
13811 | ||
9f8148b1 | 13812 | for ac_hdr in wchar.h |
6f72b082 | 13813 | do |
698dcdb6 VZ |
13814 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
13815 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
4222829b | 13816 | echo "configure:13817: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
13817 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13818 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13819 | else | |
13820 | cat > conftest.$ac_ext <<EOF | |
4222829b | 13821 | #line 13822 "configure" |
6f72b082 | 13822 | #include "confdefs.h" |
698dcdb6 VZ |
13823 | #include <$ac_hdr> |
13824 | EOF | |
13825 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4222829b | 13826 | { (eval echo configure:13827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13827 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13828 | if test -z "$ac_err"; then | |
13829 | rm -rf conftest* | |
13830 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 13831 | else |
698dcdb6 VZ |
13832 | echo "$ac_err" >&5 |
13833 | echo "configure: failed program was:" >&5 | |
10f2d63a | 13834 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13835 | rm -rf conftest* |
13836 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 13837 | fi |
698dcdb6 | 13838 | rm -f conftest* |
10f2d63a | 13839 | fi |
698dcdb6 VZ |
13840 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13841 | echo "$ac_t""yes" 1>&6 | |
13842 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13843 | cat >> confdefs.h <<EOF | |
13844 | #define $ac_tr_hdr 1 | |
10f2d63a | 13845 | EOF |
698dcdb6 VZ |
13846 | |
13847 | else | |
13848 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13849 | fi |
13850 | done | |
13851 | ||
9f8148b1 | 13852 | for ac_hdr in wcstr.h |
0fb0dd83 | 13853 | do |
698dcdb6 VZ |
13854 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
13855 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
4222829b | 13856 | echo "configure:13857: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
13857 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13858 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13859 | else | |
13860 | cat > conftest.$ac_ext <<EOF | |
4222829b | 13861 | #line 13862 "configure" |
0fb0dd83 | 13862 | #include "confdefs.h" |
698dcdb6 VZ |
13863 | #include <$ac_hdr> |
13864 | EOF | |
13865 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4222829b | 13866 | { (eval echo configure:13867: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13867 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13868 | if test -z "$ac_err"; then | |
13869 | rm -rf conftest* | |
13870 | eval "ac_cv_header_$ac_safe=yes" | |
0fb0dd83 | 13871 | else |
698dcdb6 VZ |
13872 | echo "$ac_err" >&5 |
13873 | echo "configure: failed program was:" >&5 | |
0fb0dd83 | 13874 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13875 | rm -rf conftest* |
13876 | eval "ac_cv_header_$ac_safe=no" | |
0fb0dd83 | 13877 | fi |
698dcdb6 | 13878 | rm -f conftest* |
0fb0dd83 | 13879 | fi |
698dcdb6 VZ |
13880 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13881 | echo "$ac_t""yes" 1>&6 | |
13882 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13883 | cat >> confdefs.h <<EOF | |
13884 | #define $ac_tr_hdr 1 | |
0fb0dd83 | 13885 | EOF |
698dcdb6 VZ |
13886 | |
13887 | else | |
13888 | echo "$ac_t""no" 1>&6 | |
0fb0dd83 RR |
13889 | fi |
13890 | done | |
13891 | ||
9f8148b1 | 13892 | for ac_hdr in wctype.h |
1f8ae82f | 13893 | do |
698dcdb6 VZ |
13894 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
13895 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
4222829b | 13896 | echo "configure:13897: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
13897 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13898 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13899 | else | |
13900 | cat > conftest.$ac_ext <<EOF | |
4222829b | 13901 | #line 13902 "configure" |
1f8ae82f | 13902 | #include "confdefs.h" |
698dcdb6 VZ |
13903 | #include <$ac_hdr> |
13904 | EOF | |
13905 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4222829b | 13906 | { (eval echo configure:13907: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13907 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13908 | if test -z "$ac_err"; then | |
13909 | rm -rf conftest* | |
13910 | eval "ac_cv_header_$ac_safe=yes" | |
1f8ae82f | 13911 | else |
698dcdb6 VZ |
13912 | echo "$ac_err" >&5 |
13913 | echo "configure: failed program was:" >&5 | |
1f8ae82f | 13914 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13915 | rm -rf conftest* |
13916 | eval "ac_cv_header_$ac_safe=no" | |
1f8ae82f | 13917 | fi |
698dcdb6 | 13918 | rm -f conftest* |
1f8ae82f | 13919 | fi |
698dcdb6 VZ |
13920 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13921 | echo "$ac_t""yes" 1>&6 | |
13922 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13923 | cat >> confdefs.h <<EOF | |
13924 | #define $ac_tr_hdr 1 | |
1f8ae82f | 13925 | EOF |
698dcdb6 VZ |
13926 | |
13927 | else | |
13928 | echo "$ac_t""no" 1>&6 | |
1f8ae82f GD |
13929 | fi |
13930 | done | |
13931 | ||
9f8148b1 | 13932 | for ac_hdr in fnmatch.h |
10f2d63a | 13933 | do |
698dcdb6 VZ |
13934 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
13935 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
4222829b | 13936 | echo "configure:13937: checking for $ac_hdr" >&5 |
0fbb762e MB |
13937 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13938 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13939 | else | |
13940 | cat > conftest.$ac_ext <<EOF | |
4222829b | 13941 | #line 13942 "configure" |
0fbb762e MB |
13942 | #include "confdefs.h" |
13943 | #include <$ac_hdr> | |
13944 | EOF | |
13945 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4222829b | 13946 | { (eval echo configure:13947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
0fbb762e MB |
13947 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13948 | if test -z "$ac_err"; then | |
13949 | rm -rf conftest* | |
13950 | eval "ac_cv_header_$ac_safe=yes" | |
13951 | else | |
13952 | echo "$ac_err" >&5 | |
13953 | echo "configure: failed program was:" >&5 | |
13954 | cat conftest.$ac_ext >&5 | |
13955 | rm -rf conftest* | |
13956 | eval "ac_cv_header_$ac_safe=no" | |
13957 | fi | |
13958 | rm -f conftest* | |
13959 | fi | |
13960 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
13961 | echo "$ac_t""yes" 1>&6 | |
13962 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13963 | cat >> confdefs.h <<EOF | |
13964 | #define $ac_tr_hdr 1 | |
13965 | EOF | |
13966 | ||
13967 | else | |
13968 | echo "$ac_t""no" 1>&6 | |
13969 | fi | |
13970 | done | |
13971 | ||
9f8148b1 GD |
13972 | for ac_hdr in langinfo.h |
13973 | do | |
13974 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
13975 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
4222829b | 13976 | echo "configure:13977: checking for $ac_hdr" >&5 |
9f8148b1 GD |
13977 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13978 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13979 | else | |
13980 | cat > conftest.$ac_ext <<EOF | |
4222829b | 13981 | #line 13982 "configure" |
9f8148b1 GD |
13982 | #include "confdefs.h" |
13983 | #include <$ac_hdr> | |
13984 | EOF | |
13985 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4222829b | 13986 | { (eval echo configure:13987: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
9f8148b1 GD |
13987 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13988 | if test -z "$ac_err"; then | |
13989 | rm -rf conftest* | |
13990 | eval "ac_cv_header_$ac_safe=yes" | |
13991 | else | |
13992 | echo "$ac_err" >&5 | |
13993 | echo "configure: failed program was:" >&5 | |
13994 | cat conftest.$ac_ext >&5 | |
13995 | rm -rf conftest* | |
13996 | eval "ac_cv_header_$ac_safe=no" | |
13997 | fi | |
13998 | rm -f conftest* | |
13999 | fi | |
14000 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
14001 | echo "$ac_t""yes" 1>&6 | |
14002 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
14003 | cat >> confdefs.h <<EOF | |
14004 | #define $ac_tr_hdr 1 | |
14005 | EOF | |
14006 | ||
14007 | else | |
14008 | echo "$ac_t""no" 1>&6 | |
14009 | fi | |
14010 | done | |
14011 | ||
10f2d63a | 14012 | |
3a922bb4 RL |
14013 | if test "$wxUSE_GUI" = "yes"; then |
14014 | if test "$wxUSE_UNIX" = "yes"; then | |
14015 | for ac_hdr in X11/XKBlib.h | |
29fd3c0c VS |
14016 | do |
14017 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
14018 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
4222829b | 14019 | echo "configure:14020: checking for $ac_hdr" >&5 |
29fd3c0c VS |
14020 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
14021 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14022 | else | |
14023 | cat > conftest.$ac_ext <<EOF | |
4222829b | 14024 | #line 14025 "configure" |
29fd3c0c VS |
14025 | #include "confdefs.h" |
14026 | #include <$ac_hdr> | |
14027 | EOF | |
14028 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4222829b | 14029 | { (eval echo configure:14030: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
29fd3c0c VS |
14030 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14031 | if test -z "$ac_err"; then | |
14032 | rm -rf conftest* | |
14033 | eval "ac_cv_header_$ac_safe=yes" | |
14034 | else | |
14035 | echo "$ac_err" >&5 | |
14036 | echo "configure: failed program was:" >&5 | |
14037 | cat conftest.$ac_ext >&5 | |
14038 | rm -rf conftest* | |
14039 | eval "ac_cv_header_$ac_safe=no" | |
14040 | fi | |
14041 | rm -f conftest* | |
14042 | fi | |
14043 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
14044 | echo "$ac_t""yes" 1>&6 | |
14045 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
14046 | cat >> confdefs.h <<EOF | |
14047 | #define $ac_tr_hdr 1 | |
14048 | EOF | |
14049 | ||
14050 | else | |
14051 | echo "$ac_t""no" 1>&6 | |
14052 | fi | |
14053 | done | |
14054 | ||
3a922bb4 | 14055 | fi |
29fd3c0c VS |
14056 | fi |
14057 | ||
698dcdb6 VZ |
14058 | |
14059 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | |
4222829b | 14060 | echo "configure:14061: checking for ANSI C header files" >&5 |
698dcdb6 VZ |
14061 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
14062 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14063 | else |
698dcdb6 | 14064 | cat > conftest.$ac_ext <<EOF |
4222829b | 14065 | #line 14066 "configure" |
10f2d63a VZ |
14066 | #include "confdefs.h" |
14067 | #include <stdlib.h> | |
14068 | #include <stdarg.h> | |
14069 | #include <string.h> | |
14070 | #include <float.h> | |
698dcdb6 VZ |
14071 | EOF |
14072 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4222829b | 14073 | { (eval echo configure:14074: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
14074 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14075 | if test -z "$ac_err"; then | |
14076 | rm -rf conftest* | |
10f2d63a VZ |
14077 | ac_cv_header_stdc=yes |
14078 | else | |
698dcdb6 VZ |
14079 | echo "$ac_err" >&5 |
14080 | echo "configure: failed program was:" >&5 | |
10f2d63a | 14081 | cat conftest.$ac_ext >&5 |
698dcdb6 | 14082 | rm -rf conftest* |
10f2d63a VZ |
14083 | ac_cv_header_stdc=no |
14084 | fi | |
698dcdb6 | 14085 | rm -f conftest* |
10f2d63a VZ |
14086 | |
14087 | if test $ac_cv_header_stdc = yes; then | |
14088 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
698dcdb6 | 14089 | cat > conftest.$ac_ext <<EOF |
4222829b | 14090 | #line 14091 "configure" |
10f2d63a VZ |
14091 | #include "confdefs.h" |
14092 | #include <string.h> | |
698dcdb6 | 14093 | EOF |
10f2d63a VZ |
14094 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
14095 | egrep "memchr" >/dev/null 2>&1; then | |
14096 | : | |
14097 | else | |
698dcdb6 | 14098 | rm -rf conftest* |
10f2d63a VZ |
14099 | ac_cv_header_stdc=no |
14100 | fi | |
14101 | rm -f conftest* | |
14102 | ||
14103 | fi | |
14104 | ||
14105 | if test $ac_cv_header_stdc = yes; then | |
14106 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
698dcdb6 | 14107 | cat > conftest.$ac_ext <<EOF |
4222829b | 14108 | #line 14109 "configure" |
10f2d63a VZ |
14109 | #include "confdefs.h" |
14110 | #include <stdlib.h> | |
698dcdb6 | 14111 | EOF |
10f2d63a VZ |
14112 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
14113 | egrep "free" >/dev/null 2>&1; then | |
14114 | : | |
14115 | else | |
698dcdb6 | 14116 | rm -rf conftest* |
10f2d63a VZ |
14117 | ac_cv_header_stdc=no |
14118 | fi | |
14119 | rm -f conftest* | |
14120 | ||
14121 | fi | |
14122 | ||
14123 | if test $ac_cv_header_stdc = yes; then | |
14124 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
698dcdb6 | 14125 | if test "$cross_compiling" = yes; then |
10f2d63a VZ |
14126 | : |
14127 | else | |
698dcdb6 | 14128 | cat > conftest.$ac_ext <<EOF |
4222829b | 14129 | #line 14130 "configure" |
10f2d63a VZ |
14130 | #include "confdefs.h" |
14131 | #include <ctype.h> | |
698dcdb6 VZ |
14132 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
14133 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
1e487827 | 14134 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
698dcdb6 VZ |
14135 | int main () { int i; for (i = 0; i < 256; i++) |
14136 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
14137 | exit (0); } | |
14138 | ||
14139 | EOF | |
4222829b | 14140 | if { (eval echo configure:14141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 14141 | then |
10f2d63a VZ |
14142 | : |
14143 | else | |
698dcdb6 VZ |
14144 | echo "configure: failed program was:" >&5 |
14145 | cat conftest.$ac_ext >&5 | |
14146 | rm -fr conftest* | |
14147 | ac_cv_header_stdc=no | |
10f2d63a | 14148 | fi |
698dcdb6 | 14149 | rm -fr conftest* |
10f2d63a | 14150 | fi |
698dcdb6 | 14151 | |
10f2d63a VZ |
14152 | fi |
14153 | fi | |
1e487827 | 14154 | |
698dcdb6 VZ |
14155 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
14156 | if test $ac_cv_header_stdc = yes; then | |
14157 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
14158 | #define STDC_HEADERS 1 |
14159 | EOF | |
14160 | ||
14161 | fi | |
14162 | ||
698dcdb6 | 14163 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
4222829b | 14164 | echo "configure:14165: checking for mode_t" >&5 |
698dcdb6 VZ |
14165 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
14166 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 14167 | else |
698dcdb6 | 14168 | cat > conftest.$ac_ext <<EOF |
4222829b | 14169 | #line 14170 "configure" |
1e487827 | 14170 | #include "confdefs.h" |
698dcdb6 VZ |
14171 | #include <sys/types.h> |
14172 | #if STDC_HEADERS | |
14173 | #include <stdlib.h> | |
14174 | #include <stddef.h> | |
14175 | #endif | |
14176 | EOF | |
14177 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
14178 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
14179 | rm -rf conftest* | |
10f2d63a VZ |
14180 | ac_cv_type_mode_t=yes |
14181 | else | |
698dcdb6 VZ |
14182 | rm -rf conftest* |
14183 | ac_cv_type_mode_t=no | |
703e0a69 | 14184 | fi |
698dcdb6 | 14185 | rm -f conftest* |
1e487827 | 14186 | |
698dcdb6 VZ |
14187 | fi |
14188 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 | |
14189 | if test $ac_cv_type_mode_t = no; then | |
14190 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
14191 | #define mode_t int |
14192 | EOF | |
14193 | ||
14194 | fi | |
14195 | ||
698dcdb6 | 14196 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 |
4222829b | 14197 | echo "configure:14198: checking for off_t" >&5 |
698dcdb6 VZ |
14198 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
14199 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14200 | else |
698dcdb6 | 14201 | cat > conftest.$ac_ext <<EOF |
4222829b | 14202 | #line 14203 "configure" |
10f2d63a | 14203 | #include "confdefs.h" |
698dcdb6 VZ |
14204 | #include <sys/types.h> |
14205 | #if STDC_HEADERS | |
14206 | #include <stdlib.h> | |
14207 | #include <stddef.h> | |
14208 | #endif | |
14209 | EOF | |
14210 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
14211 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
14212 | rm -rf conftest* | |
10f2d63a VZ |
14213 | ac_cv_type_off_t=yes |
14214 | else | |
698dcdb6 VZ |
14215 | rm -rf conftest* |
14216 | ac_cv_type_off_t=no | |
703e0a69 | 14217 | fi |
698dcdb6 | 14218 | rm -f conftest* |
1e487827 | 14219 | |
698dcdb6 VZ |
14220 | fi |
14221 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
14222 | if test $ac_cv_type_off_t = no; then | |
14223 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
14224 | #define off_t long |
14225 | EOF | |
14226 | ||
14227 | fi | |
14228 | ||
698dcdb6 | 14229 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
4222829b | 14230 | echo "configure:14231: checking for pid_t" >&5 |
698dcdb6 VZ |
14231 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
14232 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14233 | else |
698dcdb6 | 14234 | cat > conftest.$ac_ext <<EOF |
4222829b | 14235 | #line 14236 "configure" |
10f2d63a | 14236 | #include "confdefs.h" |
698dcdb6 VZ |
14237 | #include <sys/types.h> |
14238 | #if STDC_HEADERS | |
14239 | #include <stdlib.h> | |
14240 | #include <stddef.h> | |
14241 | #endif | |
14242 | EOF | |
14243 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
14244 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
14245 | rm -rf conftest* | |
10f2d63a VZ |
14246 | ac_cv_type_pid_t=yes |
14247 | else | |
698dcdb6 VZ |
14248 | rm -rf conftest* |
14249 | ac_cv_type_pid_t=no | |
703e0a69 | 14250 | fi |
698dcdb6 | 14251 | rm -f conftest* |
1e487827 | 14252 | |
698dcdb6 VZ |
14253 | fi |
14254 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
14255 | if test $ac_cv_type_pid_t = no; then | |
14256 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
14257 | #define pid_t int |
14258 | EOF | |
14259 | ||
14260 | fi | |
14261 | ||
698dcdb6 | 14262 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
4222829b | 14263 | echo "configure:14264: checking for size_t" >&5 |
698dcdb6 VZ |
14264 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
14265 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14266 | else |
698dcdb6 | 14267 | cat > conftest.$ac_ext <<EOF |
4222829b | 14268 | #line 14269 "configure" |
10f2d63a | 14269 | #include "confdefs.h" |
698dcdb6 VZ |
14270 | #include <sys/types.h> |
14271 | #if STDC_HEADERS | |
14272 | #include <stdlib.h> | |
14273 | #include <stddef.h> | |
14274 | #endif | |
14275 | EOF | |
14276 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
14277 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
14278 | rm -rf conftest* | |
10f2d63a VZ |
14279 | ac_cv_type_size_t=yes |
14280 | else | |
698dcdb6 VZ |
14281 | rm -rf conftest* |
14282 | ac_cv_type_size_t=no | |
703e0a69 | 14283 | fi |
698dcdb6 | 14284 | rm -f conftest* |
1e487827 | 14285 | |
698dcdb6 VZ |
14286 | fi |
14287 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
14288 | if test $ac_cv_type_size_t = no; then | |
14289 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
14290 | #define size_t unsigned |
14291 | EOF | |
14292 | ||
14293 | fi | |
14294 | ||
698dcdb6 | 14295 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
4222829b | 14296 | echo "configure:14297: checking for uid_t in sys/types.h" >&5 |
698dcdb6 VZ |
14297 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
14298 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14299 | else |
698dcdb6 | 14300 | cat > conftest.$ac_ext <<EOF |
4222829b | 14301 | #line 14302 "configure" |
10f2d63a VZ |
14302 | #include "confdefs.h" |
14303 | #include <sys/types.h> | |
698dcdb6 | 14304 | EOF |
10f2d63a VZ |
14305 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
14306 | egrep "uid_t" >/dev/null 2>&1; then | |
698dcdb6 | 14307 | rm -rf conftest* |
10f2d63a VZ |
14308 | ac_cv_type_uid_t=yes |
14309 | else | |
698dcdb6 | 14310 | rm -rf conftest* |
10f2d63a VZ |
14311 | ac_cv_type_uid_t=no |
14312 | fi | |
14313 | rm -f conftest* | |
14314 | ||
14315 | fi | |
1e487827 | 14316 | |
698dcdb6 VZ |
14317 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
14318 | if test $ac_cv_type_uid_t = no; then | |
14319 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
14320 | #define uid_t int |
14321 | EOF | |
14322 | ||
698dcdb6 | 14323 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
14324 | #define gid_t int |
14325 | EOF | |
14326 | ||
14327 | fi | |
14328 | ||
1e487827 | 14329 | |
698dcdb6 | 14330 | echo $ac_n "checking for wchar_t""... $ac_c" 1>&6 |
4222829b | 14331 | echo "configure:14332: checking for wchar_t" >&5 |
698dcdb6 VZ |
14332 | if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then |
14333 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14334 | else | |
14335 | ||
14336 | cat > conftest.$ac_ext <<EOF | |
4222829b | 14337 | #line 14338 "configure" |
0046ff7c | 14338 | #include "confdefs.h" |
4b42290e GD |
14339 | |
14340 | #ifdef HAVE_WCHAR_H | |
0fbb762e MB |
14341 | # ifdef __CYGWIN__ |
14342 | # include <stddef.h> | |
14343 | # endif | |
4b42290e GD |
14344 | # include <wchar.h> |
14345 | #endif | |
14346 | #ifdef HAVE_STDLIB_H | |
14347 | # include <stdlib.h> | |
14348 | #endif | |
14349 | ||
698dcdb6 | 14350 | int main() { |
0046ff7c | 14351 | |
d836ee96 VZ |
14352 | wchar_t wc, *ws; |
14353 | wc = L'a'; | |
14354 | ws = L"Hello, world!"; | |
698dcdb6 VZ |
14355 | |
14356 | ; return 0; } | |
14357 | EOF | |
4222829b | 14358 | if { (eval echo configure:14359: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 14359 | rm -rf conftest* |
1f8ae82f | 14360 | wx_cv_type_wchar_t=yes |
0046ff7c | 14361 | else |
698dcdb6 VZ |
14362 | echo "configure: failed program was:" >&5 |
14363 | cat conftest.$ac_ext >&5 | |
14364 | rm -rf conftest* | |
14365 | wx_cv_type_wchar_t=no | |
d836ee96 | 14366 | |
6232543b | 14367 | fi |
698dcdb6 | 14368 | rm -f conftest* |
703e0a69 | 14369 | |
1e487827 | 14370 | fi |
698dcdb6 VZ |
14371 | |
14372 | echo "$ac_t""$wx_cv_type_wchar_t" 1>&6 | |
d836ee96 VZ |
14373 | |
14374 | if test "$wx_cv_type_wchar_t" = "yes"; then | |
698dcdb6 | 14375 | cat >> confdefs.h <<\EOF |
0046ff7c VS |
14376 | #define wxUSE_WCHAR_T 1 |
14377 | EOF | |
14378 | ||
14379 | fi | |
14380 | ||
19af3b06 VZ |
14381 | |
14382 | ac_ext=C | |
14383 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14384 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14385 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14386 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14387 | cross_compiling=$ac_cv_prog_cxx_cross | |
14388 | ||
d836ee96 | 14389 | echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6 |
4222829b | 14390 | echo "configure:14391: checking if size_t is unsigned int" >&5 |
d836ee96 VZ |
14391 | if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then |
14392 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14393 | else | |
dd2c8b7c | 14394 | cat > conftest.$ac_ext <<EOF |
4222829b | 14395 | #line 14396 "configure" |
d836ee96 VZ |
14396 | #include "confdefs.h" |
14397 | #include <stddef.h> | |
14398 | int main() { | |
14399 | ||
dd2c8b7c VZ |
14400 | return 0; } |
14401 | ||
d836ee96 | 14402 | struct Foo { void foo(size_t); void foo(unsigned int); }; |
dd2c8b7c VZ |
14403 | |
14404 | int bar() { | |
d836ee96 VZ |
14405 | |
14406 | ; return 0; } | |
14407 | EOF | |
4222829b | 14408 | if { (eval echo configure:14409: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
d836ee96 VZ |
14409 | rm -rf conftest* |
14410 | wx_cv_size_t_is_uint=no | |
14411 | else | |
14412 | echo "configure: failed program was:" >&5 | |
14413 | cat conftest.$ac_ext >&5 | |
14414 | rm -rf conftest* | |
14415 | wx_cv_size_t_is_uint=yes | |
14416 | ||
14417 | fi | |
14418 | rm -f conftest* | |
14419 | ||
14420 | fi | |
14421 | ||
14422 | echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6 | |
14423 | ||
14424 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
14425 | cat >> confdefs.h <<\EOF | |
14426 | #define wxSIZE_T_IS_UINT 1 | |
14427 | EOF | |
14428 | ||
14429 | else | |
14430 | echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6 | |
4222829b | 14431 | echo "configure:14432: checking if size_t is unsigned long" >&5 |
d836ee96 VZ |
14432 | if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then |
14433 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14434 | else | |
14435 | cat > conftest.$ac_ext <<EOF | |
4222829b | 14436 | #line 14437 "configure" |
d836ee96 VZ |
14437 | #include "confdefs.h" |
14438 | #include <stddef.h> | |
14439 | int main() { | |
14440 | ||
dd2c8b7c VZ |
14441 | return 0; } |
14442 | ||
d836ee96 | 14443 | struct Foo { void foo(size_t); void foo(unsigned long); }; |
dd2c8b7c VZ |
14444 | |
14445 | int bar() { | |
d836ee96 VZ |
14446 | |
14447 | ; return 0; } | |
14448 | EOF | |
4222829b | 14449 | if { (eval echo configure:14450: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
d836ee96 VZ |
14450 | rm -rf conftest* |
14451 | wx_cv_size_t_is_ulong=no | |
14452 | else | |
14453 | echo "configure: failed program was:" >&5 | |
14454 | cat conftest.$ac_ext >&5 | |
14455 | rm -rf conftest* | |
14456 | wx_cv_size_t_is_ulong=yes | |
14457 | ||
14458 | fi | |
14459 | rm -f conftest* | |
14460 | ||
14461 | fi | |
14462 | ||
14463 | echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6 | |
14464 | ||
14465 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
14466 | cat >> confdefs.h <<\EOF | |
14467 | #define wxSIZE_T_IS_ULONG 1 | |
14468 | EOF | |
14469 | ||
14470 | fi | |
14471 | fi | |
14472 | ||
19af3b06 VZ |
14473 | ac_ext=c |
14474 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14475 | ac_cpp='$CPP $CPPFLAGS' | |
14476 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14477 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14478 | cross_compiling=$ac_cv_prog_cc_cross | |
14479 | ||
14480 | ||
1e487827 | 14481 | |
698dcdb6 | 14482 | echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6 |
4222829b | 14483 | echo "configure:14484: checking for pw_gecos in struct passwd" >&5 |
698dcdb6 VZ |
14484 | if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then |
14485 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14486 | else | |
14487 | ||
14488 | cat > conftest.$ac_ext <<EOF | |
4222829b | 14489 | #line 14490 "configure" |
b12915c1 VZ |
14490 | #include "confdefs.h" |
14491 | #include <pwd.h> | |
698dcdb6 | 14492 | int main() { |
b12915c1 VZ |
14493 | |
14494 | char *p; | |
14495 | struct passwd *pw; | |
14496 | p = pw->pw_gecos; | |
698dcdb6 VZ |
14497 | |
14498 | ; return 0; } | |
14499 | EOF | |
4222829b | 14500 | if { (eval echo configure:14501: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
14501 | rm -rf conftest* |
14502 | ||
b12915c1 | 14503 | wx_cv_struct_pw_gecos=yes |
698dcdb6 | 14504 | |
b12915c1 | 14505 | else |
698dcdb6 VZ |
14506 | echo "configure: failed program was:" >&5 |
14507 | cat conftest.$ac_ext >&5 | |
14508 | rm -rf conftest* | |
14509 | ||
b12915c1 | 14510 | wx_cv_struct_pw_gecos=no |
698dcdb6 VZ |
14511 | |
14512 | ||
6232543b | 14513 | fi |
698dcdb6 VZ |
14514 | rm -f conftest* |
14515 | ||
703e0a69 | 14516 | |
1e487827 | 14517 | fi |
698dcdb6 VZ |
14518 | |
14519 | echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6 | |
b12915c1 | 14520 | |
bd3277fe | 14521 | if test "$wx_cv_struct_pw_gecos" = "yes"; then |
698dcdb6 | 14522 | cat >> confdefs.h <<\EOF |
bd3277fe VZ |
14523 | #define HAVE_PW_GECOS 1 |
14524 | EOF | |
14525 | ||
14526 | fi | |
14527 | ||
698dcdb6 VZ |
14528 | |
14529 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
4222829b | 14530 | echo "configure:14531: checking for working const" >&5 |
698dcdb6 VZ |
14531 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
14532 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14533 | else |
698dcdb6 | 14534 | cat > conftest.$ac_ext <<EOF |
4222829b | 14535 | #line 14536 "configure" |
10f2d63a | 14536 | #include "confdefs.h" |
698dcdb6 VZ |
14537 | |
14538 | int main() { | |
14539 | ||
14540 | /* Ultrix mips cc rejects this. */ | |
4cdb0ab0 | 14541 | typedef int charset[2]; const charset x; |
698dcdb6 VZ |
14542 | /* SunOS 4.1.1 cc rejects this. */ |
14543 | char const *const *ccp; | |
14544 | char **p; | |
14545 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
14546 | struct point {int x, y;}; | |
14547 | static struct point const zero = {0,0}; | |
14548 | /* AIX XL C 1.02.0.0 rejects this. | |
14549 | It does not let you subtract one const X* pointer from another in an arm | |
14550 | of an if-expression whose if-part is not a constant expression */ | |
14551 | const char *g = "string"; | |
14552 | ccp = &g + (g ? g-g : 0); | |
14553 | /* HPUX 7.0 cc rejects these. */ | |
14554 | ++ccp; | |
14555 | p = (char**) ccp; | |
14556 | ccp = (char const *const *) p; | |
14557 | { /* SCO 3.2v4 cc rejects this. */ | |
14558 | char *t; | |
14559 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
14560 | ||
14561 | *t++ = 0; | |
10f2d63a | 14562 | } |
698dcdb6 VZ |
14563 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
14564 | int x[] = {25, 17}; | |
14565 | const int *foo = &x[0]; | |
14566 | ++foo; | |
703e0a69 | 14567 | } |
698dcdb6 VZ |
14568 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
14569 | typedef const int *iptr; | |
14570 | iptr p = 0; | |
14571 | ++p; | |
6232543b | 14572 | } |
698dcdb6 VZ |
14573 | { /* AIX XL C 1.02.0.0 rejects this saying |
14574 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
14575 | struct s { int j; const int *ap[3]; }; | |
14576 | struct s *b; b->j = 5; | |
1e487827 | 14577 | } |
698dcdb6 VZ |
14578 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
14579 | const int foo = 10; | |
14580 | } | |
4f14bcd8 GD |
14581 | |
14582 | ; return 0; } | |
698dcdb6 | 14583 | EOF |
4222829b | 14584 | if { (eval echo configure:14585: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
14585 | rm -rf conftest* |
14586 | ac_cv_c_const=yes | |
698dcdb6 VZ |
14587 | else |
14588 | echo "configure: failed program was:" >&5 | |
14589 | cat conftest.$ac_ext >&5 | |
4f14bcd8 GD |
14590 | rm -rf conftest* |
14591 | ac_cv_c_const=no | |
703e0a69 | 14592 | fi |
4f14bcd8 | 14593 | rm -f conftest* |
698dcdb6 VZ |
14594 | fi |
14595 | ||
4f14bcd8 GD |
14596 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
14597 | if test $ac_cv_c_const = no; then | |
14598 | cat >> confdefs.h <<\EOF | |
14599 | #define const | |
698dcdb6 VZ |
14600 | EOF |
14601 | ||
4f14bcd8 | 14602 | fi |
698dcdb6 | 14603 | |
4f14bcd8 | 14604 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
4222829b | 14605 | echo "configure:14606: checking for inline" >&5 |
4f14bcd8 | 14606 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
698dcdb6 | 14607 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 14608 | else |
4f14bcd8 GD |
14609 | ac_cv_c_inline=no |
14610 | for ac_kw in inline __inline__ __inline; do | |
698dcdb6 | 14611 | cat > conftest.$ac_ext <<EOF |
4222829b | 14612 | #line 14613 "configure" |
10f2d63a | 14613 | #include "confdefs.h" |
4f14bcd8 GD |
14614 | |
14615 | int main() { | |
4cdb0ab0 | 14616 | } $ac_kw foo() { |
4f14bcd8 | 14617 | ; return 0; } |
698dcdb6 | 14618 | EOF |
4222829b | 14619 | if { (eval echo configure:14620: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
14620 | rm -rf conftest* |
14621 | ac_cv_c_inline=$ac_kw; break | |
10f2d63a | 14622 | else |
698dcdb6 VZ |
14623 | echo "configure: failed program was:" >&5 |
14624 | cat conftest.$ac_ext >&5 | |
10f2d63a | 14625 | fi |
4f14bcd8 GD |
14626 | rm -f conftest* |
14627 | done | |
698dcdb6 | 14628 | |
10f2d63a | 14629 | fi |
4f14bcd8 GD |
14630 | |
14631 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | |
14632 | case "$ac_cv_c_inline" in | |
14633 | inline | yes) ;; | |
14634 | no) cat >> confdefs.h <<\EOF | |
14635 | #define inline | |
14636 | EOF | |
14637 | ;; | |
14638 | *) cat >> confdefs.h <<EOF | |
14639 | #define inline $ac_cv_c_inline | |
698dcdb6 | 14640 | EOF |
4f14bcd8 GD |
14641 | ;; |
14642 | esac | |
698dcdb6 VZ |
14643 | |
14644 | ||
4f14bcd8 | 14645 | echo $ac_n "checking size of char""... $ac_c" 1>&6 |
4222829b | 14646 | echo "configure:14647: checking size of char" >&5 |
4f14bcd8 | 14647 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
698dcdb6 VZ |
14648 | echo $ac_n "(cached) $ac_c" 1>&6 |
14649 | else | |
14650 | if test "$cross_compiling" = yes; then | |
4f14bcd8 | 14651 | ac_cv_sizeof_char=1 |
698dcdb6 VZ |
14652 | else |
14653 | cat > conftest.$ac_ext <<EOF | |
4222829b | 14654 | #line 14655 "configure" |
698dcdb6 VZ |
14655 | #include "confdefs.h" |
14656 | #include <stdio.h> | |
cb61c62d | 14657 | main() |
698dcdb6 VZ |
14658 | { |
14659 | FILE *f=fopen("conftestval", "w"); | |
cb61c62d | 14660 | if (!f) exit(1); |
4f14bcd8 | 14661 | fprintf(f, "%d\n", sizeof(char)); |
cb61c62d | 14662 | exit(0); |
698dcdb6 VZ |
14663 | } |
14664 | EOF | |
4222829b | 14665 | if { (eval echo configure:14666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 14666 | then |
4f14bcd8 | 14667 | ac_cv_sizeof_char=`cat conftestval` |
6232543b | 14668 | else |
698dcdb6 VZ |
14669 | echo "configure: failed program was:" >&5 |
14670 | cat conftest.$ac_ext >&5 | |
14671 | rm -fr conftest* | |
4f14bcd8 | 14672 | ac_cv_sizeof_char=0 |
6232543b | 14673 | fi |
698dcdb6 VZ |
14674 | rm -fr conftest* |
14675 | fi | |
14676 | ||
703e0a69 | 14677 | fi |
4f14bcd8 | 14678 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 |
698dcdb6 | 14679 | cat >> confdefs.h <<EOF |
4f14bcd8 | 14680 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
10f2d63a VZ |
14681 | EOF |
14682 | ||
1e487827 | 14683 | |
4f14bcd8 | 14684 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
4222829b | 14685 | echo "configure:14686: checking size of short" >&5 |
4f14bcd8 | 14686 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
698dcdb6 VZ |
14687 | echo $ac_n "(cached) $ac_c" 1>&6 |
14688 | else | |
4f14bcd8 GD |
14689 | if test "$cross_compiling" = yes; then |
14690 | ac_cv_sizeof_short=2 | |
b93d0d08 | 14691 | else |
698dcdb6 | 14692 | cat > conftest.$ac_ext <<EOF |
4222829b | 14693 | #line 14694 "configure" |
b93d0d08 | 14694 | #include "confdefs.h" |
4f14bcd8 | 14695 | #include <stdio.h> |
cb61c62d | 14696 | main() |
4f14bcd8 GD |
14697 | { |
14698 | FILE *f=fopen("conftestval", "w"); | |
cb61c62d | 14699 | if (!f) exit(1); |
4f14bcd8 | 14700 | fprintf(f, "%d\n", sizeof(short)); |
cb61c62d | 14701 | exit(0); |
4f14bcd8 | 14702 | } |
698dcdb6 | 14703 | EOF |
4222829b | 14704 | if { (eval echo configure:14705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 14705 | then |
4f14bcd8 | 14706 | ac_cv_sizeof_short=`cat conftestval` |
b93d0d08 | 14707 | else |
698dcdb6 VZ |
14708 | echo "configure: failed program was:" >&5 |
14709 | cat conftest.$ac_ext >&5 | |
14710 | rm -fr conftest* | |
4f14bcd8 | 14711 | ac_cv_sizeof_short=0 |
b93d0d08 | 14712 | fi |
698dcdb6 | 14713 | rm -fr conftest* |
b93d0d08 VS |
14714 | fi |
14715 | ||
b93d0d08 | 14716 | fi |
4f14bcd8 | 14717 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
698dcdb6 | 14718 | cat >> confdefs.h <<EOF |
4f14bcd8 | 14719 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
b93d0d08 VS |
14720 | EOF |
14721 | ||
698dcdb6 | 14722 | |
4f14bcd8 | 14723 | echo $ac_n "checking size of int *""... $ac_c" 1>&6 |
4222829b | 14724 | echo "configure:14725: checking size of int *" >&5 |
4f14bcd8 | 14725 | if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then |
698dcdb6 | 14726 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 14727 | else |
4f14bcd8 GD |
14728 | if test "$cross_compiling" = yes; then |
14729 | ac_cv_sizeof_int_p=4 | |
3a922bb4 | 14730 | else |
3a922bb4 | 14731 | cat > conftest.$ac_ext <<EOF |
4222829b | 14732 | #line 14733 "configure" |
3a922bb4 | 14733 | #include "confdefs.h" |
4f14bcd8 | 14734 | #include <stdio.h> |
cb61c62d | 14735 | main() |
4f14bcd8 GD |
14736 | { |
14737 | FILE *f=fopen("conftestval", "w"); | |
cb61c62d | 14738 | if (!f) exit(1); |
4f14bcd8 | 14739 | fprintf(f, "%d\n", sizeof(int *)); |
cb61c62d | 14740 | exit(0); |
4f14bcd8 GD |
14741 | } |
14742 | EOF | |
4222829b | 14743 | if { (eval echo configure:14744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
14744 | then |
14745 | ac_cv_sizeof_int_p=`cat conftestval` | |
14746 | else | |
14747 | echo "configure: failed program was:" >&5 | |
14748 | cat conftest.$ac_ext >&5 | |
14749 | rm -fr conftest* | |
14750 | ac_cv_sizeof_int_p=0 | |
3a922bb4 | 14751 | fi |
4f14bcd8 | 14752 | rm -fr conftest* |
3a922bb4 | 14753 | fi |
698dcdb6 | 14754 | |
4f14bcd8 GD |
14755 | fi |
14756 | echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6 | |
14757 | cat >> confdefs.h <<EOF | |
14758 | #define SIZEOF_INT_P $ac_cv_sizeof_int_p | |
10f2d63a VZ |
14759 | EOF |
14760 | ||
703e0a69 | 14761 | |
4f14bcd8 | 14762 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
4222829b | 14763 | echo "configure:14764: checking size of int" >&5 |
4f14bcd8 | 14764 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
698dcdb6 | 14765 | echo $ac_n "(cached) $ac_c" 1>&6 |
4f14bcd8 GD |
14766 | else |
14767 | if test "$cross_compiling" = yes; then | |
14768 | ac_cv_sizeof_int=4 | |
698dcdb6 VZ |
14769 | else |
14770 | cat > conftest.$ac_ext <<EOF | |
4222829b | 14771 | #line 14772 "configure" |
10f2d63a | 14772 | #include "confdefs.h" |
4f14bcd8 | 14773 | #include <stdio.h> |
cb61c62d | 14774 | main() |
4f14bcd8 GD |
14775 | { |
14776 | FILE *f=fopen("conftestval", "w"); | |
cb61c62d | 14777 | if (!f) exit(1); |
4f14bcd8 | 14778 | fprintf(f, "%d\n", sizeof(int)); |
cb61c62d | 14779 | exit(0); |
4f14bcd8 | 14780 | } |
698dcdb6 | 14781 | EOF |
4222829b | 14782 | if { (eval echo configure:14783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
14783 | then |
14784 | ac_cv_sizeof_int=`cat conftestval` | |
10f2d63a | 14785 | else |
698dcdb6 | 14786 | echo "configure: failed program was:" >&5 |
10f2d63a | 14787 | cat conftest.$ac_ext >&5 |
4f14bcd8 GD |
14788 | rm -fr conftest* |
14789 | ac_cv_sizeof_int=0 | |
10f2d63a | 14790 | fi |
4f14bcd8 | 14791 | rm -fr conftest* |
10f2d63a | 14792 | fi |
10f2d63a | 14793 | |
4f14bcd8 GD |
14794 | fi |
14795 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | |
14796 | cat >> confdefs.h <<EOF | |
14797 | #define SIZEOF_INT $ac_cv_sizeof_int | |
10f2d63a VZ |
14798 | EOF |
14799 | ||
698dcdb6 | 14800 | |
4f14bcd8 | 14801 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
4222829b | 14802 | echo "configure:14803: checking size of long" >&5 |
4f14bcd8 | 14803 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
698dcdb6 VZ |
14804 | echo $ac_n "(cached) $ac_c" 1>&6 |
14805 | else | |
4f14bcd8 GD |
14806 | if test "$cross_compiling" = yes; then |
14807 | ac_cv_sizeof_long=4 | |
14808 | else | |
14809 | cat > conftest.$ac_ext <<EOF | |
4222829b | 14810 | #line 14811 "configure" |
10f2d63a | 14811 | #include "confdefs.h" |
4f14bcd8 | 14812 | #include <stdio.h> |
cb61c62d | 14813 | main() |
4f14bcd8 GD |
14814 | { |
14815 | FILE *f=fopen("conftestval", "w"); | |
cb61c62d | 14816 | if (!f) exit(1); |
4f14bcd8 | 14817 | fprintf(f, "%d\n", sizeof(long)); |
cb61c62d | 14818 | exit(0); |
4f14bcd8 | 14819 | } |
698dcdb6 | 14820 | EOF |
4222829b | 14821 | if { (eval echo configure:14822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
14822 | then |
14823 | ac_cv_sizeof_long=`cat conftestval` | |
10f2d63a | 14824 | else |
698dcdb6 VZ |
14825 | echo "configure: failed program was:" >&5 |
14826 | cat conftest.$ac_ext >&5 | |
4f14bcd8 GD |
14827 | rm -fr conftest* |
14828 | ac_cv_sizeof_long=0 | |
10f2d63a | 14829 | fi |
4f14bcd8 | 14830 | rm -fr conftest* |
10f2d63a | 14831 | fi |
698dcdb6 | 14832 | |
4f14bcd8 GD |
14833 | fi |
14834 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 | |
14835 | cat >> confdefs.h <<EOF | |
14836 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
10f2d63a VZ |
14837 | EOF |
14838 | ||
698dcdb6 | 14839 | |
4f14bcd8 | 14840 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 |
4222829b | 14841 | echo "configure:14842: checking size of long long" >&5 |
4f14bcd8 | 14842 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
698dcdb6 | 14843 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 14844 | else |
4f14bcd8 GD |
14845 | if test "$cross_compiling" = yes; then |
14846 | ac_cv_sizeof_long_long=0 | |
14847 | else | |
14848 | cat > conftest.$ac_ext <<EOF | |
4222829b | 14849 | #line 14850 "configure" |
10f2d63a | 14850 | #include "confdefs.h" |
4f14bcd8 | 14851 | #include <stdio.h> |
cb61c62d | 14852 | main() |
4f14bcd8 GD |
14853 | { |
14854 | FILE *f=fopen("conftestval", "w"); | |
cb61c62d | 14855 | if (!f) exit(1); |
4f14bcd8 | 14856 | fprintf(f, "%d\n", sizeof(long long)); |
cb61c62d | 14857 | exit(0); |
4f14bcd8 | 14858 | } |
698dcdb6 | 14859 | EOF |
4222829b | 14860 | if { (eval echo configure:14861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
14861 | then |
14862 | ac_cv_sizeof_long_long=`cat conftestval` | |
698dcdb6 VZ |
14863 | else |
14864 | echo "configure: failed program was:" >&5 | |
14865 | cat conftest.$ac_ext >&5 | |
4f14bcd8 GD |
14866 | rm -fr conftest* |
14867 | ac_cv_sizeof_long_long=0 | |
14868 | fi | |
14869 | rm -fr conftest* | |
698dcdb6 | 14870 | fi |
698dcdb6 VZ |
14871 | |
14872 | fi | |
4f14bcd8 GD |
14873 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
14874 | cat >> confdefs.h <<EOF | |
14875 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
10f2d63a VZ |
14876 | EOF |
14877 | ||
10f2d63a | 14878 | |
4f14bcd8 GD |
14879 | |
14880 | echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6 | |
4222829b | 14881 | echo "configure:14882: checking size of wchar_t" >&5 |
4f14bcd8 | 14882 | if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then |
698dcdb6 | 14883 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 14884 | else |
4f14bcd8 GD |
14885 | |
14886 | if test "$cross_compiling" = yes; then | |
14887 | wx_cv_sizeof_wchar_t=4 | |
14888 | ||
14889 | else | |
14890 | cat > conftest.$ac_ext <<EOF | |
4222829b | 14891 | #line 14892 "configure" |
10f2d63a | 14892 | #include "confdefs.h" |
698dcdb6 | 14893 | |
4f14bcd8 | 14894 | #ifdef HAVE_WCHAR_H |
0fbb762e MB |
14895 | # ifdef __CYGWIN__ |
14896 | # include <stddef.h> | |
14897 | # endif | |
4f14bcd8 GD |
14898 | # include <wchar.h> |
14899 | #endif | |
14900 | #ifdef HAVE_STDLIB_H | |
14901 | # include <stdlib.h> | |
14902 | #endif | |
14903 | #include <stdio.h> | |
14904 | int main() | |
14905 | { | |
14906 | FILE *f=fopen("conftestval", "w"); | |
14907 | if (!f) exit(1); | |
14908 | fprintf(f, "%i", sizeof(wchar_t)); | |
14909 | exit(0); | |
14910 | } | |
14911 | ||
698dcdb6 | 14912 | EOF |
4222829b | 14913 | if { (eval echo configure:14914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
14914 | then |
14915 | wx_cv_sizeof_wchar_t=`cat conftestval` | |
698dcdb6 VZ |
14916 | else |
14917 | echo "configure: failed program was:" >&5 | |
14918 | cat conftest.$ac_ext >&5 | |
4f14bcd8 GD |
14919 | rm -fr conftest* |
14920 | wx_cv_sizeof_wchar_t=0 | |
698dcdb6 | 14921 | fi |
4f14bcd8 GD |
14922 | rm -fr conftest* |
14923 | fi | |
14924 | ||
698dcdb6 VZ |
14925 | |
14926 | fi | |
4f14bcd8 GD |
14927 | |
14928 | echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6 | |
14929 | ||
14930 | cat >> confdefs.h <<EOF | |
14931 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t | |
10f2d63a VZ |
14932 | EOF |
14933 | ||
18dbb1f6 | 14934 | |
4f14bcd8 | 14935 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
4222829b | 14936 | echo "configure:14937: checking whether byte ordering is bigendian" >&5 |
4f14bcd8 | 14937 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
18dbb1f6 VZ |
14938 | echo $ac_n "(cached) $ac_c" 1>&6 |
14939 | else | |
4f14bcd8 GD |
14940 | ac_cv_c_bigendian=unknown |
14941 | # See if sys/param.h defines the BYTE_ORDER macro. | |
18dbb1f6 | 14942 | cat > conftest.$ac_ext <<EOF |
4222829b | 14943 | #line 14944 "configure" |
18dbb1f6 | 14944 | #include "confdefs.h" |
4f14bcd8 GD |
14945 | #include <sys/types.h> |
14946 | #include <sys/param.h> | |
14947 | int main() { | |
18dbb1f6 | 14948 | |
4f14bcd8 GD |
14949 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
14950 | bogus endian macros | |
14951 | #endif | |
14952 | ; return 0; } | |
14953 | EOF | |
4222829b | 14954 | if { (eval echo configure:14955: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
14955 | rm -rf conftest* |
14956 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
14957 | cat > conftest.$ac_ext <<EOF | |
4222829b | 14958 | #line 14959 "configure" |
4f14bcd8 GD |
14959 | #include "confdefs.h" |
14960 | #include <sys/types.h> | |
14961 | #include <sys/param.h> | |
18dbb1f6 | 14962 | int main() { |
4f14bcd8 GD |
14963 | |
14964 | #if BYTE_ORDER != BIG_ENDIAN | |
14965 | not big endian | |
14966 | #endif | |
18dbb1f6 VZ |
14967 | ; return 0; } |
14968 | EOF | |
4222829b | 14969 | if { (eval echo configure:14970: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
18dbb1f6 | 14970 | rm -rf conftest* |
4f14bcd8 | 14971 | ac_cv_c_bigendian=yes |
18dbb1f6 VZ |
14972 | else |
14973 | echo "configure: failed program was:" >&5 | |
14974 | cat conftest.$ac_ext >&5 | |
14975 | rm -rf conftest* | |
4f14bcd8 | 14976 | ac_cv_c_bigendian=no |
18dbb1f6 VZ |
14977 | fi |
14978 | rm -f conftest* | |
698dcdb6 | 14979 | else |
4f14bcd8 GD |
14980 | echo "configure: failed program was:" >&5 |
14981 | cat conftest.$ac_ext >&5 | |
1e487827 | 14982 | fi |
4f14bcd8 GD |
14983 | rm -f conftest* |
14984 | if test $ac_cv_c_bigendian = unknown; then | |
14985 | if test "$cross_compiling" = yes; then | |
14986 | ac_cv_c_bigendian=unknown | |
b3e8d00a VZ |
14987 | else |
14988 | cat > conftest.$ac_ext <<EOF | |
4222829b | 14989 | #line 14990 "configure" |
b3e8d00a | 14990 | #include "confdefs.h" |
4f14bcd8 GD |
14991 | main () { |
14992 | /* Are we little or big endian? From Harbison&Steele. */ | |
14993 | union | |
14994 | { | |
14995 | long l; | |
14996 | char c[sizeof (long)]; | |
14997 | } u; | |
14998 | u.l = 1; | |
14999 | exit (u.c[sizeof (long) - 1] == 1); | |
15000 | } | |
b3e8d00a | 15001 | EOF |
4222829b | 15002 | if { (eval echo configure:15003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
15003 | then |
15004 | ac_cv_c_bigendian=no | |
b3e8d00a VZ |
15005 | else |
15006 | echo "configure: failed program was:" >&5 | |
15007 | cat conftest.$ac_ext >&5 | |
4f14bcd8 GD |
15008 | rm -fr conftest* |
15009 | ac_cv_c_bigendian=yes | |
b3e8d00a | 15010 | fi |
4f14bcd8 | 15011 | rm -fr conftest* |
b3e8d00a VZ |
15012 | fi |
15013 | ||
4f14bcd8 GD |
15014 | fi |
15015 | fi | |
15016 | ||
15017 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | |
15018 | if test $ac_cv_c_bigendian = unknown; then | |
15019 | 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 | |
15020 | fi | |
15021 | if test $ac_cv_c_bigendian = yes; then | |
15022 | cat >> confdefs.h <<\EOF | |
15023 | #define WORDS_BIGENDIAN 1 | |
b3e8d00a | 15024 | EOF |
4f14bcd8 | 15025 | |
b3e8d00a | 15026 | fi |
b3e8d00a VZ |
15027 | |
15028 | ||
4f14bcd8 | 15029 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 |
4222829b | 15030 | echo "configure:15031: checking how to run the C++ preprocessor" >&5 |
4f14bcd8 GD |
15031 | if test -z "$CXXCPP"; then |
15032 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then | |
698dcdb6 VZ |
15033 | echo $ac_n "(cached) $ac_c" 1>&6 |
15034 | else | |
4f14bcd8 GD |
15035 | ac_ext=C |
15036 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15037 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15038 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15039 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15040 | cross_compiling=$ac_cv_prog_cxx_cross | |
15041 | CXXCPP="${CXX-g++} -E" | |
698dcdb6 | 15042 | cat > conftest.$ac_ext <<EOF |
4222829b | 15043 | #line 15044 "configure" |
10f2d63a | 15044 | #include "confdefs.h" |
4f14bcd8 | 15045 | #include <stdlib.h> |
698dcdb6 | 15046 | EOF |
4f14bcd8 | 15047 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
4222829b | 15048 | { (eval echo configure:15049: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
15049 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15050 | if test -z "$ac_err"; then | |
15051 | : | |
698dcdb6 | 15052 | else |
4f14bcd8 | 15053 | echo "$ac_err" >&5 |
698dcdb6 VZ |
15054 | echo "configure: failed program was:" >&5 |
15055 | cat conftest.$ac_ext >&5 | |
15056 | rm -rf conftest* | |
4f14bcd8 | 15057 | CXXCPP=/lib/cpp |
698dcdb6 VZ |
15058 | fi |
15059 | rm -f conftest* | |
4f14bcd8 GD |
15060 | ac_cv_prog_CXXCPP="$CXXCPP" |
15061 | ac_ext=C | |
15062 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15063 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15064 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15065 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15066 | cross_compiling=$ac_cv_prog_cxx_cross | |
15067 | fi | |
698dcdb6 | 15068 | fi |
4f14bcd8 GD |
15069 | CXXCPP="$ac_cv_prog_CXXCPP" |
15070 | echo "$ac_t""$CXXCPP" 1>&6 | |
698dcdb6 | 15071 | |
4f14bcd8 GD |
15072 | |
15073 | if test "$cross_compiling" = "yes"; then | |
15074 | cat >> confdefs.h <<\EOF | |
15075 | #define wxUSE_IOSTREAMH 1 | |
698dcdb6 VZ |
15076 | EOF |
15077 | ||
4f14bcd8 GD |
15078 | else |
15079 | ||
15080 | ac_ext=C | |
15081 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15082 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15083 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15084 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15085 | cross_compiling=$ac_cv_prog_cxx_cross | |
698dcdb6 | 15086 | |
4f14bcd8 GD |
15087 | |
15088 | for ac_hdr in iostream | |
15089 | do | |
15090 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
15091 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
4222829b | 15092 | echo "configure:15093: checking for $ac_hdr" >&5 |
4f14bcd8 | 15093 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
698dcdb6 VZ |
15094 | echo $ac_n "(cached) $ac_c" 1>&6 |
15095 | else | |
15096 | cat > conftest.$ac_ext <<EOF | |
4222829b | 15097 | #line 15098 "configure" |
10f2d63a | 15098 | #include "confdefs.h" |
4f14bcd8 | 15099 | #include <$ac_hdr> |
698dcdb6 | 15100 | EOF |
4f14bcd8 | 15101 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
4222829b | 15102 | { (eval echo configure:15103: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
15103 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15104 | if test -z "$ac_err"; then | |
698dcdb6 | 15105 | rm -rf conftest* |
4f14bcd8 | 15106 | eval "ac_cv_header_$ac_safe=yes" |
698dcdb6 | 15107 | else |
4f14bcd8 | 15108 | echo "$ac_err" >&5 |
698dcdb6 VZ |
15109 | echo "configure: failed program was:" >&5 |
15110 | cat conftest.$ac_ext >&5 | |
15111 | rm -rf conftest* | |
4f14bcd8 | 15112 | eval "ac_cv_header_$ac_safe=no" |
698dcdb6 VZ |
15113 | fi |
15114 | rm -f conftest* | |
15115 | fi | |
4f14bcd8 | 15116 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
698dcdb6 | 15117 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
15118 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
15119 | cat >> confdefs.h <<EOF | |
15120 | #define $ac_tr_hdr 1 | |
10f2d63a | 15121 | EOF |
4f14bcd8 | 15122 | |
698dcdb6 VZ |
15123 | else |
15124 | echo "$ac_t""no" 1>&6 | |
10f2d63a | 15125 | fi |
4f14bcd8 | 15126 | done |
10f2d63a | 15127 | |
10f2d63a | 15128 | |
4f14bcd8 GD |
15129 | if test "$ac_cv_header_iostream" = "yes" ; then |
15130 | : | |
15131 | else | |
15132 | cat >> confdefs.h <<\EOF | |
15133 | #define wxUSE_IOSTREAMH 1 | |
15134 | EOF | |
15135 | ||
15136 | fi | |
1e487827 | 15137 | |
4f14bcd8 GD |
15138 | ac_ext=c |
15139 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15140 | ac_cpp='$CPP $CPPFLAGS' | |
15141 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15142 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15143 | cross_compiling=$ac_cv_prog_cc_cross | |
698dcdb6 | 15144 | |
4f14bcd8 | 15145 | fi |
698dcdb6 VZ |
15146 | |
15147 | ||
15148 | ||
4f14bcd8 | 15149 | echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6 |
4222829b | 15150 | echo "configure:15151: checking if C++ compiler supports bool" >&5 |
4f14bcd8 | 15151 | if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then |
698dcdb6 VZ |
15152 | echo $ac_n "(cached) $ac_c" 1>&6 |
15153 | else | |
15154 | ||
4f14bcd8 GD |
15155 | |
15156 | ac_ext=C | |
15157 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15158 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15159 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15160 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15161 | cross_compiling=$ac_cv_prog_cxx_cross | |
f6bcfd97 | 15162 | |
10f2d63a | 15163 | |
4f14bcd8 | 15164 | cat > conftest.$ac_ext <<EOF |
4222829b | 15165 | #line 15166 "configure" |
4f14bcd8 | 15166 | #include "confdefs.h" |
10f2d63a | 15167 | |
4f14bcd8 GD |
15168 | |
15169 | int main() { | |
f6bcfd97 | 15170 | |
4f14bcd8 | 15171 | bool b = true; |
f6bcfd97 | 15172 | |
4f14bcd8 GD |
15173 | return 0; |
15174 | ||
698dcdb6 VZ |
15175 | ; return 0; } |
15176 | EOF | |
4222829b | 15177 | if { (eval echo configure:15178: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
15178 | rm -rf conftest* |
15179 | ||
4f14bcd8 GD |
15180 | wx_cv_cpp_bool=yes |
15181 | ||
10f2d63a | 15182 | else |
698dcdb6 VZ |
15183 | echo "configure: failed program was:" >&5 |
15184 | cat conftest.$ac_ext >&5 | |
15185 | rm -rf conftest* | |
15186 | ||
4f14bcd8 GD |
15187 | wx_cv_cpp_bool=no |
15188 | ||
15189 | ||
15190 | fi | |
15191 | rm -f conftest* | |
c521c494 | 15192 | |
4f14bcd8 GD |
15193 | ac_ext=c |
15194 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15195 | ac_cpp='$CPP $CPPFLAGS' | |
15196 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15197 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15198 | cross_compiling=$ac_cv_prog_cc_cross | |
c521c494 | 15199 | |
4f14bcd8 GD |
15200 | |
15201 | fi | |
c521c494 | 15202 | |
4f14bcd8 | 15203 | echo "$ac_t""$wx_cv_cpp_bool" 1>&6 |
c521c494 | 15204 | |
4f14bcd8 GD |
15205 | if test "$wx_cv_cpp_bool" = "yes"; then |
15206 | cat >> confdefs.h <<\EOF | |
15207 | #define HAVE_BOOL 1 | |
15208 | EOF | |
c521c494 | 15209 | |
4f14bcd8 GD |
15210 | fi |
15211 | ||
15212 | ||
15213 | ||
15214 | echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6 | |
4222829b | 15215 | echo "configure:15216: checking for wcslen in -lc" >&5 |
4f14bcd8 GD |
15216 | ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'` |
15217 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15218 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15219 | else | |
15220 | ac_save_LIBS="$LIBS" | |
15221 | LIBS="-lc $LIBS" | |
15222 | cat > conftest.$ac_ext <<EOF | |
4222829b | 15223 | #line 15224 "configure" |
4f14bcd8 GD |
15224 | #include "confdefs.h" |
15225 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15226 | /* We use char because int might match the return type of a gcc2 | |
15227 | builtin and then its argument prototype would still apply. */ | |
15228 | char wcslen(); | |
15229 | ||
15230 | int main() { | |
15231 | wcslen() | |
698dcdb6 VZ |
15232 | ; return 0; } |
15233 | EOF | |
4222829b | 15234 | if { (eval echo configure:15235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15235 | rm -rf conftest* |
4f14bcd8 | 15236 | eval "ac_cv_lib_$ac_lib_var=yes" |
c521c494 | 15237 | else |
698dcdb6 VZ |
15238 | echo "configure: failed program was:" >&5 |
15239 | cat conftest.$ac_ext >&5 | |
15240 | rm -rf conftest* | |
4f14bcd8 | 15241 | eval "ac_cv_lib_$ac_lib_var=no" |
6232543b | 15242 | fi |
698dcdb6 | 15243 | rm -f conftest* |
4f14bcd8 | 15244 | LIBS="$ac_save_LIBS" |
703e0a69 | 15245 | |
1e487827 | 15246 | fi |
4f14bcd8 GD |
15247 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
15248 | echo "$ac_t""yes" 1>&6 | |
15249 | ||
15250 | cat >> confdefs.h <<\EOF | |
15251 | #define HAVE_WCSLEN 1 | |
9d8deca0 VZ |
15252 | EOF |
15253 | ||
3d63bc3a | 15254 | WCHAR_LINK= |
4f14bcd8 | 15255 | |
9d8deca0 | 15256 | else |
4f14bcd8 | 15257 | echo "$ac_t""no" 1>&6 |
9d8deca0 | 15258 | |
4f14bcd8 | 15259 | echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6 |
4222829b | 15260 | echo "configure:15261: checking for wcslen in -lw" >&5 |
4f14bcd8 GD |
15261 | ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'` |
15262 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 | 15263 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 15264 | else |
4f14bcd8 GD |
15265 | ac_save_LIBS="$LIBS" |
15266 | LIBS="-lw $LIBS" | |
15267 | cat > conftest.$ac_ext <<EOF | |
4222829b | 15268 | #line 15269 "configure" |
10f2d63a | 15269 | #include "confdefs.h" |
4f14bcd8 GD |
15270 | /* Override any gcc2 internal prototype to avoid an error. */ |
15271 | /* We use char because int might match the return type of a gcc2 | |
15272 | builtin and then its argument prototype would still apply. */ | |
15273 | char wcslen(); | |
10f2d63a | 15274 | |
698dcdb6 | 15275 | int main() { |
4f14bcd8 | 15276 | wcslen() |
698dcdb6 VZ |
15277 | ; return 0; } |
15278 | EOF | |
4222829b | 15279 | if { (eval echo configure:15280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15280 | rm -rf conftest* |
4f14bcd8 | 15281 | eval "ac_cv_lib_$ac_lib_var=yes" |
10f2d63a | 15282 | else |
698dcdb6 VZ |
15283 | echo "configure: failed program was:" >&5 |
15284 | cat conftest.$ac_ext >&5 | |
15285 | rm -rf conftest* | |
4f14bcd8 | 15286 | eval "ac_cv_lib_$ac_lib_var=no" |
6232543b | 15287 | fi |
698dcdb6 | 15288 | rm -f conftest* |
4f14bcd8 | 15289 | LIBS="$ac_save_LIBS" |
703e0a69 | 15290 | |
1e487827 | 15291 | fi |
4f14bcd8 GD |
15292 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
15293 | echo "$ac_t""yes" 1>&6 | |
15294 | ||
15295 | cat >> confdefs.h <<\EOF | |
15296 | #define HAVE_WCSLEN 1 | |
9d8deca0 VZ |
15297 | EOF |
15298 | ||
3d63bc3a | 15299 | WCHAR_LINK=" -lw" |
4f14bcd8 GD |
15300 | |
15301 | else | |
15302 | echo "$ac_t""no" 1>&6 | |
698dcdb6 | 15303 | |
4f14bcd8 | 15304 | echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6 |
4222829b | 15305 | echo "configure:15306: checking for wcslen in -lmsvcrt" >&5 |
4f14bcd8 GD |
15306 | ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'` |
15307 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 VZ |
15308 | echo $ac_n "(cached) $ac_c" 1>&6 |
15309 | else | |
4f14bcd8 GD |
15310 | ac_save_LIBS="$LIBS" |
15311 | LIBS="-lmsvcrt $LIBS" | |
15312 | cat > conftest.$ac_ext <<EOF | |
4222829b | 15313 | #line 15314 "configure" |
95c8801c | 15314 | #include "confdefs.h" |
4f14bcd8 GD |
15315 | /* Override any gcc2 internal prototype to avoid an error. */ |
15316 | /* We use char because int might match the return type of a gcc2 | |
15317 | builtin and then its argument prototype would still apply. */ | |
15318 | char wcslen(); | |
95c8801c | 15319 | |
4f14bcd8 GD |
15320 | int main() { |
15321 | wcslen() | |
698dcdb6 VZ |
15322 | ; return 0; } |
15323 | EOF | |
4222829b | 15324 | if { (eval echo configure:15325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15325 | rm -rf conftest* |
4f14bcd8 | 15326 | eval "ac_cv_lib_$ac_lib_var=yes" |
95c8801c | 15327 | else |
698dcdb6 VZ |
15328 | echo "configure: failed program was:" >&5 |
15329 | cat conftest.$ac_ext >&5 | |
15330 | rm -rf conftest* | |
4f14bcd8 | 15331 | eval "ac_cv_lib_$ac_lib_var=no" |
95c8801c | 15332 | fi |
698dcdb6 | 15333 | rm -f conftest* |
4f14bcd8 | 15334 | LIBS="$ac_save_LIBS" |
95c8801c VS |
15335 | |
15336 | fi | |
4f14bcd8 GD |
15337 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
15338 | echo "$ac_t""yes" 1>&6 | |
15339 | ||
15340 | cat >> confdefs.h <<\EOF | |
15341 | #define HAVE_WCSLEN 1 | |
15342 | EOF | |
698dcdb6 | 15343 | |
3d63bc3a | 15344 | WCHAR_LINK= |
4f14bcd8 GD |
15345 | |
15346 | else | |
15347 | echo "$ac_t""no" 1>&6 | |
15348 | fi | |
10f2d63a | 15349 | |
4f14bcd8 GD |
15350 | |
15351 | fi | |
95c8801c | 15352 | |
4f14bcd8 | 15353 | |
95c8801c | 15354 | fi |
10f2d63a | 15355 | |
1e487827 | 15356 | |
4f14bcd8 | 15357 | for ac_func in wcsrtombs |
eb4efbdc | 15358 | do |
698dcdb6 | 15359 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
4222829b | 15360 | echo "configure:15361: checking for $ac_func" >&5 |
698dcdb6 VZ |
15361 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15362 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15363 | else | |
15364 | cat > conftest.$ac_ext <<EOF | |
4222829b | 15365 | #line 15366 "configure" |
eb4efbdc VZ |
15366 | #include "confdefs.h" |
15367 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 15368 | which can conflict with char $ac_func(); below. */ |
eb4efbdc VZ |
15369 | #include <assert.h> |
15370 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15371 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15372 | builtin and then its argument prototype would still apply. */ |
15373 | char $ac_func(); | |
15374 | ||
15375 | int main() { | |
eb4efbdc VZ |
15376 | |
15377 | /* The GNU C library defines this for functions which it implements | |
15378 | to always fail with ENOSYS. Some functions are actually named | |
15379 | something starting with __ and the normal name is an alias. */ | |
15380 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15381 | choke me | |
15382 | #else | |
698dcdb6 | 15383 | $ac_func(); |
eb4efbdc VZ |
15384 | #endif |
15385 | ||
698dcdb6 | 15386 | ; return 0; } |
eb4efbdc | 15387 | EOF |
4222829b | 15388 | if { (eval echo configure:15389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15389 | rm -rf conftest* |
15390 | eval "ac_cv_func_$ac_func=yes" | |
15391 | else | |
15392 | echo "configure: failed program was:" >&5 | |
15393 | cat conftest.$ac_ext >&5 | |
15394 | rm -rf conftest* | |
15395 | eval "ac_cv_func_$ac_func=no" | |
15396 | fi | |
15397 | rm -f conftest* | |
15398 | fi | |
eb4efbdc | 15399 | |
698dcdb6 VZ |
15400 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
15401 | echo "$ac_t""yes" 1>&6 | |
15402 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15403 | cat >> confdefs.h <<EOF | |
15404 | #define $ac_tr_func 1 | |
15405 | EOF | |
15406 | ||
15407 | else | |
15408 | echo "$ac_t""no" 1>&6 | |
eb4efbdc VZ |
15409 | fi |
15410 | done | |
15411 | ||
698dcdb6 | 15412 | |
4f14bcd8 | 15413 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 |
4222829b | 15414 | echo "configure:15415: checking for vprintf" >&5 |
4f14bcd8 | 15415 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
698dcdb6 VZ |
15416 | echo $ac_n "(cached) $ac_c" 1>&6 |
15417 | else | |
4f14bcd8 | 15418 | cat > conftest.$ac_ext <<EOF |
4222829b | 15419 | #line 15420 "configure" |
f6bcfd97 | 15420 | #include "confdefs.h" |
4f14bcd8 GD |
15421 | /* System header to define __stub macros and hopefully few prototypes, |
15422 | which can conflict with char vprintf(); below. */ | |
15423 | #include <assert.h> | |
15424 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15425 | /* We use char because int might match the return type of a gcc2 | |
15426 | builtin and then its argument prototype would still apply. */ | |
15427 | char vprintf(); | |
15428 | ||
698dcdb6 | 15429 | int main() { |
f6bcfd97 | 15430 | |
4f14bcd8 GD |
15431 | /* The GNU C library defines this for functions which it implements |
15432 | to always fail with ENOSYS. Some functions are actually named | |
15433 | something starting with __ and the normal name is an alias. */ | |
15434 | #if defined (__stub_vprintf) || defined (__stub___vprintf) | |
15435 | choke me | |
15436 | #else | |
15437 | vprintf(); | |
15438 | #endif | |
f6bcfd97 | 15439 | |
698dcdb6 VZ |
15440 | ; return 0; } |
15441 | EOF | |
4222829b | 15442 | if { (eval echo configure:15443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15443 | rm -rf conftest* |
4f14bcd8 | 15444 | eval "ac_cv_func_vprintf=yes" |
f6bcfd97 | 15445 | else |
698dcdb6 VZ |
15446 | echo "configure: failed program was:" >&5 |
15447 | cat conftest.$ac_ext >&5 | |
15448 | rm -rf conftest* | |
4f14bcd8 | 15449 | eval "ac_cv_func_vprintf=no" |
6232543b | 15450 | fi |
698dcdb6 | 15451 | rm -f conftest* |
1e487827 | 15452 | fi |
698dcdb6 | 15453 | |
4f14bcd8 GD |
15454 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then |
15455 | echo "$ac_t""yes" 1>&6 | |
15456 | cat >> confdefs.h <<\EOF | |
15457 | #define HAVE_VPRINTF 1 | |
f6bcfd97 BP |
15458 | EOF |
15459 | ||
4f14bcd8 GD |
15460 | else |
15461 | echo "$ac_t""no" 1>&6 | |
eb4efbdc VZ |
15462 | fi |
15463 | ||
4f14bcd8 GD |
15464 | if test "$ac_cv_func_vprintf" != yes; then |
15465 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | |
4222829b | 15466 | echo "configure:15467: checking for _doprnt" >&5 |
4f14bcd8 | 15467 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
698dcdb6 VZ |
15468 | echo $ac_n "(cached) $ac_c" 1>&6 |
15469 | else | |
15470 | cat > conftest.$ac_ext <<EOF | |
4222829b | 15471 | #line 15472 "configure" |
10f2d63a VZ |
15472 | #include "confdefs.h" |
15473 | /* System header to define __stub macros and hopefully few prototypes, | |
4f14bcd8 | 15474 | which can conflict with char _doprnt(); below. */ |
10f2d63a VZ |
15475 | #include <assert.h> |
15476 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15477 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 15478 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 15479 | char _doprnt(); |
698dcdb6 VZ |
15480 | |
15481 | int main() { | |
10f2d63a VZ |
15482 | |
15483 | /* The GNU C library defines this for functions which it implements | |
15484 | to always fail with ENOSYS. Some functions are actually named | |
15485 | something starting with __ and the normal name is an alias. */ | |
4f14bcd8 | 15486 | #if defined (__stub__doprnt) || defined (__stub____doprnt) |
10f2d63a VZ |
15487 | choke me |
15488 | #else | |
4f14bcd8 | 15489 | _doprnt(); |
10f2d63a VZ |
15490 | #endif |
15491 | ||
698dcdb6 | 15492 | ; return 0; } |
10f2d63a | 15493 | EOF |
4222829b | 15494 | if { (eval echo configure:15495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15495 | rm -rf conftest* |
4f14bcd8 | 15496 | eval "ac_cv_func__doprnt=yes" |
698dcdb6 VZ |
15497 | else |
15498 | echo "configure: failed program was:" >&5 | |
15499 | cat conftest.$ac_ext >&5 | |
15500 | rm -rf conftest* | |
4f14bcd8 | 15501 | eval "ac_cv_func__doprnt=no" |
698dcdb6 VZ |
15502 | fi |
15503 | rm -f conftest* | |
15504 | fi | |
270a909e | 15505 | |
4f14bcd8 | 15506 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then |
698dcdb6 | 15507 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
15508 | cat >> confdefs.h <<\EOF |
15509 | #define HAVE_DOPRNT 1 | |
698dcdb6 | 15510 | EOF |
4f14bcd8 | 15511 | |
698dcdb6 VZ |
15512 | else |
15513 | echo "$ac_t""no" 1>&6 | |
270a909e | 15514 | fi |
270a909e | 15515 | |
4f14bcd8 | 15516 | fi |
1e487827 | 15517 | |
52e8b690 | 15518 | |
52e8b690 | 15519 | |
52e8b690 | 15520 | |
52e8b690 | 15521 | |
52e8b690 | 15522 | |
4f14bcd8 | 15523 | echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6 |
4222829b | 15524 | echo "configure:15525: checking for vsnprintf" >&5 |
4f14bcd8 | 15525 | if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then |
698dcdb6 | 15526 | echo $ac_n "(cached) $ac_c" 1>&6 |
c63c7106 | 15527 | else |
4f14bcd8 | 15528 | |
af15babd | 15529 | cat > conftest.$ac_ext <<EOF |
4222829b | 15530 | #line 15531 "configure" |
c63c7106 | 15531 | #include "confdefs.h" |
698dcdb6 | 15532 | |
4f14bcd8 GD |
15533 | #include <stdio.h> |
15534 | #include <stdarg.h> | |
15535 | ||
af15babd VZ |
15536 | int main() { |
15537 | ||
4f14bcd8 GD |
15538 | int wx_test_vsnprintf(const char *, ...); |
15539 | ||
15540 | wx_test_vsnprintf("%s"); | |
15541 | return 0; | |
15542 | } | |
15543 | ||
15544 | int wx_test_vsnprintf(const char *fmt, ...) | |
15545 | { | |
15546 | char *s; | |
15547 | ||
15548 | va_list argp; | |
15549 | va_start(argp, fmt); | |
15550 | vsnprintf(s, 42, fmt, argp); | |
15551 | va_end(argp); | |
15552 | ||
af15babd VZ |
15553 | ; return 0; } |
15554 | EOF | |
4222829b | 15555 | if { (eval echo configure:15556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
15556 | rm -rf conftest* |
15557 | ||
4f14bcd8 GD |
15558 | wx_cv_func_vsnprintf=yes |
15559 | ||
af15babd VZ |
15560 | else |
15561 | echo "configure: failed program was:" >&5 | |
15562 | cat conftest.$ac_ext >&5 | |
15563 | rm -rf conftest* | |
15564 | ||
4f14bcd8 | 15565 | cat > conftest.$ac_ext <<EOF |
4222829b | 15566 | #line 15567 "configure" |
af15babd | 15567 | #include "confdefs.h" |
af15babd | 15568 | |
4f14bcd8 GD |
15569 | #include <stdio.h> |
15570 | #include <stdarg.h> | |
15571 | ||
af15babd VZ |
15572 | int main() { |
15573 | ||
4f14bcd8 GD |
15574 | int wx_test_vsnprintf(const char *, ...); |
15575 | ||
15576 | wx_test_vsnprintf("%s"); | |
15577 | return 0; | |
15578 | } | |
15579 | ||
15580 | int wx_test_vsnprintf(const char *fmt, ...) | |
15581 | { | |
15582 | char *s; | |
af15babd | 15583 | |
4f14bcd8 GD |
15584 | va_list argp; |
15585 | va_start(argp, fmt); | |
15586 | _vsnprintf(s, 42, fmt, argp); | |
15587 | va_end(argp); | |
15588 | ||
af15babd VZ |
15589 | ; return 0; } |
15590 | EOF | |
4222829b | 15591 | if { (eval echo configure:15592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd | 15592 | rm -rf conftest* |
4f14bcd8 GD |
15593 | |
15594 | wx_cv_func_vsnprintf=yes | |
15595 | ||
af15babd VZ |
15596 | else |
15597 | echo "configure: failed program was:" >&5 | |
15598 | cat conftest.$ac_ext >&5 | |
15599 | rm -rf conftest* | |
4f14bcd8 GD |
15600 | |
15601 | wx_cv_func_vsnprintf=no | |
15602 | ||
af15babd VZ |
15603 | fi |
15604 | rm -f conftest* | |
4f14bcd8 | 15605 | |
af15babd | 15606 | fi |
4f14bcd8 | 15607 | rm -f conftest* |
af15babd | 15608 | |
af15babd | 15609 | fi |
af15babd | 15610 | |
4f14bcd8 | 15611 | echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6 |
af15babd | 15612 | |
4f14bcd8 GD |
15613 | if test "$wx_cv_func_vsnprintf" = yes; then |
15614 | cat >> confdefs.h <<\EOF | |
15615 | #define HAVE_VSNPRINTF 1 | |
15616 | EOF | |
15617 | ||
15618 | else | |
f9bc1684 | 15619 | echo "configure: warning: unsafe function vsprintf will be used instead of vsnprintf" 1>&2 |
af15babd VZ |
15620 | fi |
15621 | ||
4f14bcd8 | 15622 | echo $ac_n "checking for vsscanf""... $ac_c" 1>&6 |
4222829b | 15623 | echo "configure:15624: checking for vsscanf" >&5 |
4f14bcd8 | 15624 | if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then |
af15babd VZ |
15625 | echo $ac_n "(cached) $ac_c" 1>&6 |
15626 | else | |
4f14bcd8 | 15627 | |
af15babd | 15628 | cat > conftest.$ac_ext <<EOF |
4222829b | 15629 | #line 15630 "configure" |
af15babd | 15630 | #include "confdefs.h" |
af15babd | 15631 | |
4f14bcd8 GD |
15632 | #include <stdio.h> |
15633 | #include <stdarg.h> | |
15634 | ||
af15babd VZ |
15635 | int main() { |
15636 | ||
4f14bcd8 GD |
15637 | int wx_test_vsscanf(const char *, ...); |
15638 | ||
15639 | wx_test_vsscanf("%d"); | |
15640 | return 0; | |
15641 | } | |
af15babd | 15642 | |
4f14bcd8 GD |
15643 | int wx_test_vsscanf(const char *fmt, ...) |
15644 | { | |
15645 | va_list argp; | |
15646 | va_start(argp, fmt); | |
15647 | vsscanf("42", fmt, argp); | |
15648 | va_end(argp); | |
15649 | ||
af15babd VZ |
15650 | ; return 0; } |
15651 | EOF | |
4222829b | 15652 | if { (eval echo configure:15653: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd | 15653 | rm -rf conftest* |
4f14bcd8 GD |
15654 | |
15655 | wx_cv_func_vsscanf=yes | |
15656 | ||
af15babd VZ |
15657 | else |
15658 | echo "configure: failed program was:" >&5 | |
15659 | cat conftest.$ac_ext >&5 | |
15660 | rm -rf conftest* | |
4f14bcd8 GD |
15661 | |
15662 | wx_cv_func_vsscanf=no | |
15663 | ||
af15babd VZ |
15664 | fi |
15665 | rm -f conftest* | |
4f14bcd8 | 15666 | |
af15babd VZ |
15667 | fi |
15668 | ||
4f14bcd8 GD |
15669 | echo "$ac_t""$wx_cv_func_vsscanf" 1>&6 |
15670 | ||
15671 | if test "$wx_cv_func_vsscanf" = yes; then | |
15672 | cat >> confdefs.h <<\EOF | |
15673 | #define HAVE_VSSCANF 1 | |
af15babd | 15674 | EOF |
4f14bcd8 | 15675 | |
af15babd | 15676 | fi |
af15babd | 15677 | |
4f14bcd8 | 15678 | if test "$TOOLKIT" != "MSW"; then |
af15babd | 15679 | |
4f14bcd8 GD |
15680 | |
15681 | ||
15682 | ac_ext=C | |
15683 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15684 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15685 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15686 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15687 | cross_compiling=$ac_cv_prog_cxx_cross | |
15688 | ||
b040e242 VS |
15689 | |
15690 | ||
15691 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
15692 | if test "${with_libiconv_prefix+set}" = set; then | |
15693 | withval="$with_libiconv_prefix" | |
15694 | ||
15695 | for dir in `echo "$withval" | tr : ' '`; do | |
15696 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
15697 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
15698 | done | |
15699 | ||
15700 | fi | |
15701 | ||
15702 | ||
15703 | echo $ac_n "checking for iconv""... $ac_c" 1>&6 | |
4222829b | 15704 | echo "configure:15705: checking for iconv" >&5 |
b040e242 | 15705 | if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then |
af15babd VZ |
15706 | echo $ac_n "(cached) $ac_c" 1>&6 |
15707 | else | |
4f14bcd8 | 15708 | |
b040e242 VS |
15709 | am_cv_func_iconv="no, consider installing GNU libiconv" |
15710 | am_cv_lib_iconv=no | |
4f14bcd8 | 15711 | cat > conftest.$ac_ext <<EOF |
4222829b | 15712 | #line 15713 "configure" |
af15babd | 15713 | #include "confdefs.h" |
b040e242 | 15714 | #include <stdlib.h> |
4f14bcd8 | 15715 | #include <iconv.h> |
af15babd | 15716 | int main() { |
b040e242 VS |
15717 | iconv_t cd = iconv_open("",""); |
15718 | iconv(cd,NULL,NULL,NULL,NULL); | |
15719 | iconv_close(cd); | |
af15babd VZ |
15720 | ; return 0; } |
15721 | EOF | |
4222829b | 15722 | if { (eval echo configure:15723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd | 15723 | rm -rf conftest* |
b040e242 | 15724 | am_cv_func_iconv=yes |
af15babd VZ |
15725 | else |
15726 | echo "configure: failed program was:" >&5 | |
15727 | cat conftest.$ac_ext >&5 | |
b040e242 VS |
15728 | fi |
15729 | rm -f conftest* | |
15730 | if test "$am_cv_func_iconv" != yes; then | |
15731 | am_save_LIBS="$LIBS" | |
15732 | LIBS="$LIBS -liconv" | |
15733 | cat > conftest.$ac_ext <<EOF | |
4222829b | 15734 | #line 15735 "configure" |
b040e242 VS |
15735 | #include "confdefs.h" |
15736 | #include <stdlib.h> | |
15737 | #include <iconv.h> | |
15738 | int main() { | |
15739 | iconv_t cd = iconv_open("",""); | |
15740 | iconv(cd,NULL,NULL,NULL,NULL); | |
15741 | iconv_close(cd); | |
15742 | ; return 0; } | |
15743 | EOF | |
4222829b | 15744 | if { (eval echo configure:15745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd | 15745 | rm -rf conftest* |
b040e242 VS |
15746 | am_cv_lib_iconv=yes |
15747 | am_cv_func_iconv=yes | |
15748 | else | |
15749 | echo "configure: failed program was:" >&5 | |
15750 | cat conftest.$ac_ext >&5 | |
af15babd VZ |
15751 | fi |
15752 | rm -f conftest* | |
b040e242 VS |
15753 | LIBS="$am_save_LIBS" |
15754 | fi | |
15755 | ||
15756 | fi | |
15757 | ||
15758 | echo "$ac_t""$am_cv_func_iconv" 1>&6 | |
15759 | if test "$am_cv_func_iconv" = yes; then | |
15760 | cat >> confdefs.h <<\EOF | |
15761 | #define HAVE_ICONV 1 | |
15762 | EOF | |
15763 | ||
b7043674 | 15764 | echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6 |
4222829b | 15765 | echo "configure:15766: checking if iconv needs const" >&5 |
b7043674 | 15766 | if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then |
b040e242 VS |
15767 | echo $ac_n "(cached) $ac_c" 1>&6 |
15768 | else | |
b7043674 | 15769 | cat > conftest.$ac_ext <<EOF |
4222829b | 15770 | #line 15771 "configure" |
b040e242 VS |
15771 | #include "confdefs.h" |
15772 | ||
15773 | #include <stdlib.h> | |
15774 | #include <iconv.h> | |
15775 | extern | |
15776 | #ifdef __cplusplus | |
15777 | "C" | |
15778 | #endif | |
15779 | #if defined(__STDC__) || defined(__cplusplus) | |
15780 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
15781 | #else | |
15782 | size_t iconv(); | |
15783 | #endif | |
b7043674 | 15784 | |
b040e242 | 15785 | int main() { |
af15babd | 15786 | |
b040e242 VS |
15787 | ; return 0; } |
15788 | EOF | |
4222829b | 15789 | if { (eval echo configure:15790: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
b040e242 | 15790 | rm -rf conftest* |
b7043674 | 15791 | wx_cv_func_iconv_const="no" |
b040e242 VS |
15792 | else |
15793 | echo "configure: failed program was:" >&5 | |
15794 | cat conftest.$ac_ext >&5 | |
15795 | rm -rf conftest* | |
b7043674 VZ |
15796 | wx_cv_func_iconv_const="yes" |
15797 | ||
b040e242 VS |
15798 | fi |
15799 | rm -f conftest* | |
b7043674 | 15800 | |
af15babd | 15801 | fi |
af15babd | 15802 | |
b7043674 VZ |
15803 | echo "$ac_t""$wx_cv_func_iconv_const" 1>&6 |
15804 | ||
15805 | iconv_const= | |
1c405bb5 | 15806 | if test "x$wx_cv_func_iconv_const" = "xyes"; then |
b7043674 VZ |
15807 | iconv_const="const" |
15808 | fi | |
15809 | ||
b040e242 | 15810 | cat >> confdefs.h <<EOF |
b7043674 | 15811 | #define ICONV_CONST $iconv_const |
b040e242 VS |
15812 | EOF |
15813 | ||
15814 | fi | |
15815 | LIBICONV= | |
15816 | if test "$am_cv_lib_iconv" = yes; then | |
15817 | LIBICONV="-liconv" | |
15818 | fi | |
15819 | ||
15820 | ||
15821 | LIBS="$LIBICONV $LIBS" | |
4f14bcd8 GD |
15822 | ac_ext=c |
15823 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15824 | ac_cpp='$CPP $CPPFLAGS' | |
15825 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15826 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15827 | cross_compiling=$ac_cv_prog_cc_cross | |
af15babd | 15828 | |
af15babd | 15829 | |
4f14bcd8 GD |
15830 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
15831 | for ac_func in sigaction | |
af15babd VZ |
15832 | do |
15833 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
4222829b | 15834 | echo "configure:15835: checking for $ac_func" >&5 |
af15babd VZ |
15835 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15836 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15837 | else | |
15838 | cat > conftest.$ac_ext <<EOF | |
4222829b | 15839 | #line 15840 "configure" |
af15babd VZ |
15840 | #include "confdefs.h" |
15841 | /* System header to define __stub macros and hopefully few prototypes, | |
15842 | which can conflict with char $ac_func(); below. */ | |
15843 | #include <assert.h> | |
15844 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15845 | /* We use char because int might match the return type of a gcc2 | |
15846 | builtin and then its argument prototype would still apply. */ | |
15847 | char $ac_func(); | |
15848 | ||
15849 | int main() { | |
15850 | ||
15851 | /* The GNU C library defines this for functions which it implements | |
15852 | to always fail with ENOSYS. Some functions are actually named | |
15853 | something starting with __ and the normal name is an alias. */ | |
15854 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15855 | choke me | |
15856 | #else | |
15857 | $ac_func(); | |
15858 | #endif | |
15859 | ||
15860 | ; return 0; } | |
15861 | EOF | |
4222829b | 15862 | if { (eval echo configure:15863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
15863 | rm -rf conftest* |
15864 | eval "ac_cv_func_$ac_func=yes" | |
15865 | else | |
15866 | echo "configure: failed program was:" >&5 | |
15867 | cat conftest.$ac_ext >&5 | |
15868 | rm -rf conftest* | |
15869 | eval "ac_cv_func_$ac_func=no" | |
15870 | fi | |
15871 | rm -f conftest* | |
15872 | fi | |
15873 | ||
15874 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
15875 | echo "$ac_t""yes" 1>&6 | |
15876 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15877 | cat >> confdefs.h <<EOF | |
15878 | #define $ac_tr_func 1 | |
15879 | EOF | |
4f14bcd8 | 15880 | |
af15babd VZ |
15881 | else |
15882 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 GD |
15883 | fi |
15884 | done | |
15885 | ||
15886 | ||
15887 | if test "$ac_cv_func_sigaction" = "no"; then | |
15888 | echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2 | |
15889 | wxUSE_ON_FATAL_EXCEPTION=no | |
15890 | fi | |
15891 | ||
15892 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
15893 | ||
15894 | ac_ext=C | |
15895 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15896 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15897 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15898 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15899 | cross_compiling=$ac_cv_prog_cxx_cross | |
15900 | ||
15901 | ||
15902 | echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6 | |
4222829b | 15903 | echo "configure:15904: checking for sa_handler type" >&5 |
4f14bcd8 | 15904 | if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then |
af15babd VZ |
15905 | echo $ac_n "(cached) $ac_c" 1>&6 |
15906 | else | |
4f14bcd8 GD |
15907 | |
15908 | cat > conftest.$ac_ext <<EOF | |
4222829b | 15909 | #line 15910 "configure" |
af15babd | 15910 | #include "confdefs.h" |
4f14bcd8 | 15911 | #include <signal.h> |
af15babd | 15912 | int main() { |
4f14bcd8 GD |
15913 | |
15914 | extern void testSigHandler(int); | |
15915 | ||
15916 | struct sigaction sa; | |
15917 | sa.sa_handler = testSigHandler; | |
15918 | ||
af15babd VZ |
15919 | ; return 0; } |
15920 | EOF | |
4222829b | 15921 | if { (eval echo configure:15922: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd | 15922 | rm -rf conftest* |
4f14bcd8 GD |
15923 | |
15924 | wx_cv_type_sa_handler=int | |
15925 | ||
af15babd VZ |
15926 | else |
15927 | echo "configure: failed program was:" >&5 | |
15928 | cat conftest.$ac_ext >&5 | |
15929 | rm -rf conftest* | |
4f14bcd8 GD |
15930 | |
15931 | wx_cv_type_sa_handler=void | |
15932 | ||
af15babd VZ |
15933 | fi |
15934 | rm -f conftest* | |
4f14bcd8 GD |
15935 | |
15936 | fi | |
15937 | ||
15938 | echo "$ac_t""$wx_cv_type_sa_handler" 1>&6 | |
15939 | ||
15940 | ac_ext=c | |
15941 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15942 | ac_cpp='$CPP $CPPFLAGS' | |
15943 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15944 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15945 | cross_compiling=$ac_cv_prog_cc_cross | |
af15babd | 15946 | |
4f14bcd8 GD |
15947 | |
15948 | cat >> confdefs.h <<EOF | |
15949 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler | |
af15babd VZ |
15950 | EOF |
15951 | ||
4f14bcd8 GD |
15952 | fi |
15953 | fi | |
af15babd | 15954 | |
4f14bcd8 | 15955 | for ac_func in vfork |
af15babd VZ |
15956 | do |
15957 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
4222829b | 15958 | echo "configure:15959: checking for $ac_func" >&5 |
af15babd VZ |
15959 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15960 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15961 | else | |
15962 | cat > conftest.$ac_ext <<EOF | |
4222829b | 15963 | #line 15964 "configure" |
af15babd VZ |
15964 | #include "confdefs.h" |
15965 | /* System header to define __stub macros and hopefully few prototypes, | |
15966 | which can conflict with char $ac_func(); below. */ | |
15967 | #include <assert.h> | |
15968 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15969 | /* We use char because int might match the return type of a gcc2 | |
15970 | builtin and then its argument prototype would still apply. */ | |
15971 | char $ac_func(); | |
15972 | ||
15973 | int main() { | |
15974 | ||
15975 | /* The GNU C library defines this for functions which it implements | |
15976 | to always fail with ENOSYS. Some functions are actually named | |
15977 | something starting with __ and the normal name is an alias. */ | |
15978 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15979 | choke me | |
15980 | #else | |
15981 | $ac_func(); | |
15982 | #endif | |
15983 | ||
15984 | ; return 0; } | |
15985 | EOF | |
4222829b | 15986 | if { (eval echo configure:15987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
15987 | rm -rf conftest* |
15988 | eval "ac_cv_func_$ac_func=yes" | |
15989 | else | |
15990 | echo "configure: failed program was:" >&5 | |
15991 | cat conftest.$ac_ext >&5 | |
15992 | rm -rf conftest* | |
15993 | eval "ac_cv_func_$ac_func=no" | |
15994 | fi | |
15995 | rm -f conftest* | |
15996 | fi | |
15997 | ||
15998 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
15999 | echo "$ac_t""yes" 1>&6 | |
16000 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16001 | cat >> confdefs.h <<EOF | |
16002 | #define $ac_tr_func 1 | |
16003 | EOF | |
4f14bcd8 | 16004 | |
af15babd VZ |
16005 | else |
16006 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
16007 | fi |
16008 | done | |
16009 | ||
af15babd | 16010 | |
ade35f11 VZ |
16011 | for ac_func in mkstemp mktemp |
16012 | do | |
16013 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
4222829b | 16014 | echo "configure:16015: checking for $ac_func" >&5 |
ade35f11 VZ |
16015 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16016 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16017 | else | |
16018 | cat > conftest.$ac_ext <<EOF | |
4222829b | 16019 | #line 16020 "configure" |
ade35f11 VZ |
16020 | #include "confdefs.h" |
16021 | /* System header to define __stub macros and hopefully few prototypes, | |
16022 | which can conflict with char $ac_func(); below. */ | |
16023 | #include <assert.h> | |
16024 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16025 | /* We use char because int might match the return type of a gcc2 | |
16026 | builtin and then its argument prototype would still apply. */ | |
16027 | char $ac_func(); | |
16028 | ||
16029 | int main() { | |
16030 | ||
16031 | /* The GNU C library defines this for functions which it implements | |
16032 | to always fail with ENOSYS. Some functions are actually named | |
16033 | something starting with __ and the normal name is an alias. */ | |
16034 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16035 | choke me | |
16036 | #else | |
16037 | $ac_func(); | |
16038 | #endif | |
16039 | ||
16040 | ; return 0; } | |
16041 | EOF | |
4222829b | 16042 | if { (eval echo configure:16043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ade35f11 VZ |
16043 | rm -rf conftest* |
16044 | eval "ac_cv_func_$ac_func=yes" | |
16045 | else | |
16046 | echo "configure: failed program was:" >&5 | |
16047 | cat conftest.$ac_ext >&5 | |
16048 | rm -rf conftest* | |
16049 | eval "ac_cv_func_$ac_func=no" | |
16050 | fi | |
16051 | rm -f conftest* | |
16052 | fi | |
16053 | ||
16054 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16055 | echo "$ac_t""yes" 1>&6 | |
16056 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16057 | cat >> confdefs.h <<EOF | |
16058 | #define $ac_tr_func 1 | |
16059 | EOF | |
16060 | break | |
16061 | else | |
16062 | echo "$ac_t""no" 1>&6 | |
16063 | fi | |
16064 | done | |
16065 | ||
16066 | ||
4f14bcd8 | 16067 | echo $ac_n "checking for statfs""... $ac_c" 1>&6 |
4222829b | 16068 | echo "configure:16069: checking for statfs" >&5 |
4f14bcd8 GD |
16069 | if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then |
16070 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16071 | else | |
16072 | cat > conftest.$ac_ext <<EOF | |
4222829b | 16073 | #line 16074 "configure" |
4f14bcd8 GD |
16074 | #include "confdefs.h" |
16075 | ||
16076 | #if defined(__BSD__) | |
16077 | #include <sys/param.h> | |
16078 | #include <sys/mount.h> | |
16079 | #else | |
16080 | #include <sys/vfs.h> | |
16081 | #endif | |
16082 | ||
16083 | int main() { | |
16084 | ||
16085 | long l; | |
16086 | struct statfs fs; | |
16087 | statfs("/", &fs); | |
16088 | l = fs.f_bsize; | |
16089 | l += fs.f_blocks; | |
16090 | l += fs.f_bavail; | |
16091 | ||
16092 | ; return 0; } | |
16093 | EOF | |
4222829b | 16094 | if { (eval echo configure:16095: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
16095 | rm -rf conftest* |
16096 | ||
16097 | wx_cv_func_statfs=yes | |
16098 | ||
16099 | else | |
16100 | echo "configure: failed program was:" >&5 | |
16101 | cat conftest.$ac_ext >&5 | |
16102 | rm -rf conftest* | |
16103 | ||
16104 | wx_cv_func_statfs=no | |
af15babd VZ |
16105 | |
16106 | ||
16107 | fi | |
4f14bcd8 | 16108 | rm -f conftest* |
af15babd VZ |
16109 | |
16110 | fi | |
16111 | ||
4f14bcd8 GD |
16112 | echo "$ac_t""$wx_cv_func_statfs" 1>&6 |
16113 | ||
16114 | if test "$wx_cv_func_statfs" = "yes"; then | |
16115 | cat >> confdefs.h <<\EOF | |
16116 | #define HAVE_STATFS 1 | |
16117 | EOF | |
16118 | ||
16119 | else | |
16120 | echo $ac_n "checking for statvfs""... $ac_c" 1>&6 | |
4222829b | 16121 | echo "configure:16122: checking for statvfs" >&5 |
4f14bcd8 | 16122 | if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then |
af15babd VZ |
16123 | echo $ac_n "(cached) $ac_c" 1>&6 |
16124 | else | |
16125 | cat > conftest.$ac_ext <<EOF | |
4222829b | 16126 | #line 16127 "configure" |
af15babd | 16127 | #include "confdefs.h" |
af15babd | 16128 | |
4f14bcd8 GD |
16129 | #include <sys/statvfs.h> |
16130 | ||
af15babd VZ |
16131 | int main() { |
16132 | ||
4f14bcd8 GD |
16133 | long l; |
16134 | struct statvfs fs; | |
16135 | statvfs("/", &fs); | |
16136 | l = fs.f_bsize; | |
16137 | l += fs.f_blocks; | |
16138 | l += fs.f_bavail; | |
16139 | ||
af15babd VZ |
16140 | ; return 0; } |
16141 | EOF | |
4222829b | 16142 | if { (eval echo configure:16143: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd | 16143 | rm -rf conftest* |
4f14bcd8 GD |
16144 | |
16145 | wx_cv_func_statvfs=yes | |
16146 | ||
af15babd VZ |
16147 | else |
16148 | echo "configure: failed program was:" >&5 | |
16149 | cat conftest.$ac_ext >&5 | |
16150 | rm -rf conftest* | |
4f14bcd8 GD |
16151 | |
16152 | wx_cv_func_statvfs=no | |
16153 | ||
16154 | ||
af15babd VZ |
16155 | fi |
16156 | rm -f conftest* | |
4f14bcd8 | 16157 | |
af15babd VZ |
16158 | fi |
16159 | ||
4f14bcd8 | 16160 | echo "$ac_t""$wx_cv_func_statvfs" 1>&6 |
af15babd | 16161 | |
4f14bcd8 GD |
16162 | if test "$wx_cv_func_statvfs" = "yes"; then |
16163 | cat >> confdefs.h <<\EOF | |
16164 | #define HAVE_STATVFS 1 | |
16165 | EOF | |
af15babd | 16166 | |
4f14bcd8 GD |
16167 | else |
16168 | echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2 | |
16169 | fi | |
16170 | fi | |
af15babd | 16171 | |
4f14bcd8 GD |
16172 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
16173 | for ac_func in fcntl flock | |
af15babd VZ |
16174 | do |
16175 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
4222829b | 16176 | echo "configure:16177: checking for $ac_func" >&5 |
af15babd VZ |
16177 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16178 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16179 | else | |
16180 | cat > conftest.$ac_ext <<EOF | |
4222829b | 16181 | #line 16182 "configure" |
af15babd VZ |
16182 | #include "confdefs.h" |
16183 | /* System header to define __stub macros and hopefully few prototypes, | |
16184 | which can conflict with char $ac_func(); below. */ | |
16185 | #include <assert.h> | |
16186 | /* Override any gcc2 internal prototype to avoid an error. */ | |
af15babd VZ |
16187 | /* We use char because int might match the return type of a gcc2 |
16188 | builtin and then its argument prototype would still apply. */ | |
16189 | char $ac_func(); | |
16190 | ||
16191 | int main() { | |
16192 | ||
16193 | /* The GNU C library defines this for functions which it implements | |
16194 | to always fail with ENOSYS. Some functions are actually named | |
16195 | something starting with __ and the normal name is an alias. */ | |
16196 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16197 | choke me | |
16198 | #else | |
16199 | $ac_func(); | |
16200 | #endif | |
16201 | ||
16202 | ; return 0; } | |
16203 | EOF | |
4222829b | 16204 | if { (eval echo configure:16205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
16205 | rm -rf conftest* |
16206 | eval "ac_cv_func_$ac_func=yes" | |
16207 | else | |
16208 | echo "configure: failed program was:" >&5 | |
16209 | cat conftest.$ac_ext >&5 | |
16210 | rm -rf conftest* | |
16211 | eval "ac_cv_func_$ac_func=no" | |
16212 | fi | |
16213 | rm -f conftest* | |
16214 | fi | |
16215 | ||
16216 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16217 | echo "$ac_t""yes" 1>&6 | |
16218 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16219 | cat >> confdefs.h <<EOF | |
16220 | #define $ac_tr_func 1 | |
16221 | EOF | |
4f14bcd8 | 16222 | break |
af15babd VZ |
16223 | else |
16224 | echo "$ac_t""no" 1>&6 | |
16225 | fi | |
16226 | done | |
16227 | ||
16228 | ||
4f14bcd8 GD |
16229 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then |
16230 | echo "configure: warning: wxSingleInstanceChecker not available" 1>&2 | |
16231 | wxUSE_SNGLINST_CHECKER=no | |
16232 | fi | |
16233 | fi | |
af15babd | 16234 | |
4f14bcd8 | 16235 | for ac_func in timegm |
af15babd VZ |
16236 | do |
16237 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
4222829b | 16238 | echo "configure:16239: checking for $ac_func" >&5 |
af15babd VZ |
16239 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16240 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16241 | else | |
16242 | cat > conftest.$ac_ext <<EOF | |
4222829b | 16243 | #line 16244 "configure" |
af15babd VZ |
16244 | #include "confdefs.h" |
16245 | /* System header to define __stub macros and hopefully few prototypes, | |
16246 | which can conflict with char $ac_func(); below. */ | |
16247 | #include <assert.h> | |
16248 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16249 | /* We use char because int might match the return type of a gcc2 | |
16250 | builtin and then its argument prototype would still apply. */ | |
16251 | char $ac_func(); | |
16252 | ||
698dcdb6 | 16253 | int main() { |
698dcdb6 | 16254 | |
af15babd VZ |
16255 | /* The GNU C library defines this for functions which it implements |
16256 | to always fail with ENOSYS. Some functions are actually named | |
16257 | something starting with __ and the normal name is an alias. */ | |
16258 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16259 | choke me | |
16260 | #else | |
16261 | $ac_func(); | |
16262 | #endif | |
16263 | ||
698dcdb6 VZ |
16264 | ; return 0; } |
16265 | EOF | |
4222829b | 16266 | if { (eval echo configure:16267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16267 | rm -rf conftest* |
af15babd | 16268 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
16269 | else |
16270 | echo "configure: failed program was:" >&5 | |
16271 | cat conftest.$ac_ext >&5 | |
16272 | rm -rf conftest* | |
af15babd | 16273 | eval "ac_cv_func_$ac_func=no" |
1e487827 | 16274 | fi |
9952adac | 16275 | rm -f conftest* |
af15babd | 16276 | fi |
703e0a69 | 16277 | |
af15babd VZ |
16278 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16279 | echo "$ac_t""yes" 1>&6 | |
16280 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
4f14bcd8 GD |
16281 | cat >> confdefs.h <<EOF |
16282 | #define $ac_tr_func 1 | |
16283 | EOF | |
16284 | ||
16285 | else | |
16286 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
16287 | fi |
16288 | done | |
16289 | ||
16290 | ||
4f14bcd8 | 16291 | for ac_func in putenv setenv |
10f2d63a | 16292 | do |
698dcdb6 | 16293 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
4222829b | 16294 | echo "configure:16295: checking for $ac_func" >&5 |
698dcdb6 VZ |
16295 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16296 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16297 | else | |
16298 | cat > conftest.$ac_ext <<EOF | |
4222829b | 16299 | #line 16300 "configure" |
af15babd VZ |
16300 | #include "confdefs.h" |
16301 | /* System header to define __stub macros and hopefully few prototypes, | |
16302 | which can conflict with char $ac_func(); below. */ | |
16303 | #include <assert.h> | |
16304 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16305 | /* We use char because int might match the return type of a gcc2 | |
16306 | builtin and then its argument prototype would still apply. */ | |
16307 | char $ac_func(); | |
16308 | ||
16309 | int main() { | |
16310 | ||
16311 | /* The GNU C library defines this for functions which it implements | |
16312 | to always fail with ENOSYS. Some functions are actually named | |
16313 | something starting with __ and the normal name is an alias. */ | |
16314 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16315 | choke me | |
16316 | #else | |
16317 | $ac_func(); | |
16318 | #endif | |
16319 | ||
16320 | ; return 0; } | |
16321 | EOF | |
4222829b | 16322 | if { (eval echo configure:16323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
16323 | rm -rf conftest* |
16324 | eval "ac_cv_func_$ac_func=yes" | |
16325 | else | |
16326 | echo "configure: failed program was:" >&5 | |
16327 | cat conftest.$ac_ext >&5 | |
16328 | rm -rf conftest* | |
16329 | eval "ac_cv_func_$ac_func=no" | |
16330 | fi | |
16331 | rm -f conftest* | |
16332 | fi | |
16333 | ||
16334 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16335 | echo "$ac_t""yes" 1>&6 | |
16336 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16337 | cat >> confdefs.h <<EOF | |
16338 | #define $ac_tr_func 1 | |
16339 | EOF | |
4f14bcd8 | 16340 | break |
af15babd VZ |
16341 | else |
16342 | echo "$ac_t""no" 1>&6 | |
16343 | fi | |
af15babd VZ |
16344 | done |
16345 | ||
16346 | ||
4f14bcd8 GD |
16347 | HAVE_SOME_SLEEP_FUNC=0 |
16348 | if test "$USE_BEOS" = 1; then | |
16349 | cat >> confdefs.h <<\EOF | |
16350 | #define HAVE_SLEEP 1 | |
af15babd VZ |
16351 | EOF |
16352 | ||
4f14bcd8 | 16353 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
16354 | fi |
16355 | ||
4f14bcd8 GD |
16356 | if test "$USE_DARWIN" = 1; then |
16357 | cat >> confdefs.h <<\EOF | |
16358 | #define HAVE_USLEEP 1 | |
af15babd | 16359 | EOF |
10f2d63a | 16360 | |
4f14bcd8 | 16361 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
16362 | fi |
16363 | ||
4f14bcd8 GD |
16364 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then |
16365 | POSIX4_LINK= | |
16366 | for ac_func in nanosleep | |
16367 | do | |
16368 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
4222829b | 16369 | echo "configure:16370: checking for $ac_func" >&5 |
4f14bcd8 | 16370 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 | 16371 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 16372 | else |
4f14bcd8 | 16373 | cat > conftest.$ac_ext <<EOF |
4222829b | 16374 | #line 16375 "configure" |
10f2d63a | 16375 | #include "confdefs.h" |
4f14bcd8 GD |
16376 | /* System header to define __stub macros and hopefully few prototypes, |
16377 | which can conflict with char $ac_func(); below. */ | |
16378 | #include <assert.h> | |
10f2d63a VZ |
16379 | /* Override any gcc2 internal prototype to avoid an error. */ |
16380 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 16381 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16382 | char $ac_func(); |
698dcdb6 VZ |
16383 | |
16384 | int main() { | |
4f14bcd8 GD |
16385 | |
16386 | /* The GNU C library defines this for functions which it implements | |
16387 | to always fail with ENOSYS. Some functions are actually named | |
16388 | something starting with __ and the normal name is an alias. */ | |
16389 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16390 | choke me | |
16391 | #else | |
16392 | $ac_func(); | |
16393 | #endif | |
16394 | ||
698dcdb6 VZ |
16395 | ; return 0; } |
16396 | EOF | |
4222829b | 16397 | if { (eval echo configure:16398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16398 | rm -rf conftest* |
4f14bcd8 | 16399 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
16400 | else |
16401 | echo "configure: failed program was:" >&5 | |
16402 | cat conftest.$ac_ext >&5 | |
16403 | rm -rf conftest* | |
4f14bcd8 | 16404 | eval "ac_cv_func_$ac_func=no" |
698dcdb6 VZ |
16405 | fi |
16406 | rm -f conftest* | |
698dcdb6 | 16407 | fi |
4f14bcd8 GD |
16408 | |
16409 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 16410 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
16411 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
16412 | cat >> confdefs.h <<EOF | |
16413 | #define $ac_tr_func 1 | |
16414 | EOF | |
16415 | cat >> confdefs.h <<\EOF | |
16416 | #define HAVE_NANOSLEEP 1 | |
16417 | EOF | |
16418 | ||
10f2d63a | 16419 | else |
698dcdb6 | 16420 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 16421 | echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 |
4222829b | 16422 | echo "configure:16423: checking for nanosleep in -lposix4" >&5 |
4f14bcd8 | 16423 | ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
16424 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
16425 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 16426 | else |
698dcdb6 | 16427 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 16428 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 16429 | cat > conftest.$ac_ext <<EOF |
4222829b | 16430 | #line 16431 "configure" |
10f2d63a VZ |
16431 | #include "confdefs.h" |
16432 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16433 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 16434 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16435 | char nanosleep(); |
698dcdb6 VZ |
16436 | |
16437 | int main() { | |
4f14bcd8 | 16438 | nanosleep() |
698dcdb6 VZ |
16439 | ; return 0; } |
16440 | EOF | |
4222829b | 16441 | if { (eval echo configure:16442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16442 | rm -rf conftest* |
16443 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16444 | else | |
16445 | echo "configure: failed program was:" >&5 | |
16446 | cat conftest.$ac_ext >&5 | |
16447 | rm -rf conftest* | |
16448 | eval "ac_cv_lib_$ac_lib_var=no" | |
16449 | fi | |
16450 | rm -f conftest* | |
16451 | LIBS="$ac_save_LIBS" | |
10f2d63a | 16452 | |
698dcdb6 VZ |
16453 | fi |
16454 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16455 | echo "$ac_t""yes" 1>&6 | |
16456 | ||
4f14bcd8 GD |
16457 | cat >> confdefs.h <<\EOF |
16458 | #define HAVE_NANOSLEEP 1 | |
16459 | EOF | |
16460 | ||
3d63bc3a | 16461 | POSIX4_LINK=" -lposix4" |
4f14bcd8 | 16462 | |
10f2d63a | 16463 | else |
698dcdb6 | 16464 | echo "$ac_t""no" 1>&6 |
10f2d63a | 16465 | |
4f14bcd8 GD |
16466 | for ac_func in usleep |
16467 | do | |
16468 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
4222829b | 16469 | echo "configure:16470: checking for $ac_func" >&5 |
4f14bcd8 | 16470 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 | 16471 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 16472 | else |
698dcdb6 | 16473 | cat > conftest.$ac_ext <<EOF |
4222829b | 16474 | #line 16475 "configure" |
10f2d63a | 16475 | #include "confdefs.h" |
4f14bcd8 GD |
16476 | /* System header to define __stub macros and hopefully few prototypes, |
16477 | which can conflict with char $ac_func(); below. */ | |
16478 | #include <assert.h> | |
16479 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16480 | /* We use char because int might match the return type of a gcc2 | |
16481 | builtin and then its argument prototype would still apply. */ | |
16482 | char $ac_func(); | |
16483 | ||
16484 | int main() { | |
16485 | ||
16486 | /* The GNU C library defines this for functions which it implements | |
16487 | to always fail with ENOSYS. Some functions are actually named | |
16488 | something starting with __ and the normal name is an alias. */ | |
16489 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16490 | choke me | |
16491 | #else | |
16492 | $ac_func(); | |
16493 | #endif | |
16494 | ||
16495 | ; return 0; } | |
698dcdb6 | 16496 | EOF |
4222829b | 16497 | if { (eval echo configure:16498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16498 | rm -rf conftest* |
4f14bcd8 | 16499 | eval "ac_cv_func_$ac_func=yes" |
1e487827 | 16500 | else |
698dcdb6 | 16501 | echo "configure: failed program was:" >&5 |
10f2d63a | 16502 | cat conftest.$ac_ext >&5 |
698dcdb6 | 16503 | rm -rf conftest* |
4f14bcd8 | 16504 | eval "ac_cv_func_$ac_func=no" |
10f2d63a | 16505 | fi |
698dcdb6 | 16506 | rm -f conftest* |
10f2d63a | 16507 | fi |
4f14bcd8 GD |
16508 | |
16509 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 16510 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
16511 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
16512 | cat >> confdefs.h <<EOF | |
16513 | #define $ac_tr_func 1 | |
16514 | EOF | |
16515 | cat >> confdefs.h <<\EOF | |
16516 | #define HAVE_USLEEP 1 | |
16517 | EOF | |
16518 | ||
698dcdb6 VZ |
16519 | else |
16520 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 GD |
16521 | echo "configure: warning: wxSleep() function will not work" 1>&2 |
16522 | ||
10f2d63a | 16523 | fi |
4f14bcd8 | 16524 | done |
10f2d63a | 16525 | |
4f14bcd8 | 16526 | |
698dcdb6 | 16527 | |
6232543b | 16528 | fi |
10f2d63a | 16529 | |
698dcdb6 | 16530 | |
4f14bcd8 | 16531 | |
1e487827 | 16532 | fi |
4f14bcd8 | 16533 | done |
703e0a69 | 16534 | |
10f2d63a VZ |
16535 | fi |
16536 | ||
4f14bcd8 | 16537 | for ac_func in uname gethostname |
70846f0a | 16538 | do |
698dcdb6 | 16539 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
4222829b | 16540 | echo "configure:16541: checking for $ac_func" >&5 |
698dcdb6 VZ |
16541 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16542 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16543 | else | |
16544 | cat > conftest.$ac_ext <<EOF | |
4222829b | 16545 | #line 16546 "configure" |
70846f0a VZ |
16546 | #include "confdefs.h" |
16547 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16548 | which can conflict with char $ac_func(); below. */ |
70846f0a VZ |
16549 | #include <assert.h> |
16550 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16551 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16552 | builtin and then its argument prototype would still apply. */ |
16553 | char $ac_func(); | |
16554 | ||
16555 | int main() { | |
70846f0a VZ |
16556 | |
16557 | /* The GNU C library defines this for functions which it implements | |
16558 | to always fail with ENOSYS. Some functions are actually named | |
16559 | something starting with __ and the normal name is an alias. */ | |
16560 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16561 | choke me | |
16562 | #else | |
698dcdb6 | 16563 | $ac_func(); |
70846f0a VZ |
16564 | #endif |
16565 | ||
698dcdb6 | 16566 | ; return 0; } |
70846f0a | 16567 | EOF |
4222829b | 16568 | if { (eval echo configure:16569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16569 | rm -rf conftest* |
16570 | eval "ac_cv_func_$ac_func=yes" | |
16571 | else | |
16572 | echo "configure: failed program was:" >&5 | |
16573 | cat conftest.$ac_ext >&5 | |
16574 | rm -rf conftest* | |
16575 | eval "ac_cv_func_$ac_func=no" | |
16576 | fi | |
16577 | rm -f conftest* | |
16578 | fi | |
70846f0a | 16579 | |
698dcdb6 VZ |
16580 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16581 | echo "$ac_t""yes" 1>&6 | |
16582 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16583 | cat >> confdefs.h <<EOF | |
16584 | #define $ac_tr_func 1 | |
16585 | EOF | |
4f14bcd8 | 16586 | break |
698dcdb6 VZ |
16587 | else |
16588 | echo "$ac_t""no" 1>&6 | |
70846f0a VZ |
16589 | fi |
16590 | done | |
16591 | ||
698dcdb6 | 16592 | |
4f14bcd8 GD |
16593 | |
16594 | ac_ext=C | |
16595 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
16596 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16597 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
16598 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16599 | cross_compiling=$ac_cv_prog_cxx_cross | |
16600 | ||
16601 | ||
16602 | for ac_func in strtok_r | |
10f2d63a | 16603 | do |
4f14bcd8 | 16604 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
4222829b | 16605 | echo "configure:16606: checking for $ac_func" >&5 |
4f14bcd8 | 16606 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 VZ |
16607 | echo $ac_n "(cached) $ac_c" 1>&6 |
16608 | else | |
16609 | cat > conftest.$ac_ext <<EOF | |
4222829b | 16610 | #line 16611 "configure" |
10f2d63a | 16611 | #include "confdefs.h" |
4f14bcd8 GD |
16612 | /* System header to define __stub macros and hopefully few prototypes, |
16613 | which can conflict with char $ac_func(); below. */ | |
16614 | #include <assert.h> | |
16615 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16616 | #ifdef __cplusplus | |
16617 | extern "C" | |
16618 | #endif | |
16619 | /* We use char because int might match the return type of a gcc2 | |
16620 | builtin and then its argument prototype would still apply. */ | |
16621 | char $ac_func(); | |
16622 | ||
16623 | int main() { | |
16624 | ||
16625 | /* The GNU C library defines this for functions which it implements | |
16626 | to always fail with ENOSYS. Some functions are actually named | |
16627 | something starting with __ and the normal name is an alias. */ | |
16628 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16629 | choke me | |
16630 | #else | |
16631 | $ac_func(); | |
16632 | #endif | |
16633 | ||
16634 | ; return 0; } | |
698dcdb6 | 16635 | EOF |
4222829b | 16636 | if { (eval echo configure:16637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16637 | rm -rf conftest* |
4f14bcd8 | 16638 | eval "ac_cv_func_$ac_func=yes" |
1e487827 | 16639 | else |
698dcdb6 | 16640 | echo "configure: failed program was:" >&5 |
10f2d63a | 16641 | cat conftest.$ac_ext >&5 |
698dcdb6 | 16642 | rm -rf conftest* |
4f14bcd8 | 16643 | eval "ac_cv_func_$ac_func=no" |
10f2d63a | 16644 | fi |
698dcdb6 | 16645 | rm -f conftest* |
10f2d63a | 16646 | fi |
4f14bcd8 GD |
16647 | |
16648 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 16649 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 | 16650 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
698dcdb6 | 16651 | cat >> confdefs.h <<EOF |
4f14bcd8 | 16652 | #define $ac_tr_func 1 |
10f2d63a | 16653 | EOF |
698dcdb6 VZ |
16654 | |
16655 | else | |
16656 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
16657 | fi |
16658 | done | |
16659 | ||
698dcdb6 | 16660 | |
4f14bcd8 GD |
16661 | ac_ext=c |
16662 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
16663 | ac_cpp='$CPP $CPPFLAGS' | |
16664 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
16665 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16666 | cross_compiling=$ac_cv_prog_cc_cross | |
16667 | ||
16668 | ||
16669 | INET_LINK= | |
16670 | for ac_func in inet_addr | |
16671 | do | |
16672 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
4222829b | 16673 | echo "configure:16674: checking for $ac_func" >&5 |
4f14bcd8 | 16674 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 | 16675 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 16676 | else |
4f14bcd8 | 16677 | cat > conftest.$ac_ext <<EOF |
4222829b | 16678 | #line 16679 "configure" |
10f2d63a | 16679 | #include "confdefs.h" |
4f14bcd8 GD |
16680 | /* System header to define __stub macros and hopefully few prototypes, |
16681 | which can conflict with char $ac_func(); below. */ | |
16682 | #include <assert.h> | |
10f2d63a VZ |
16683 | /* Override any gcc2 internal prototype to avoid an error. */ |
16684 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 16685 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16686 | char $ac_func(); |
698dcdb6 VZ |
16687 | |
16688 | int main() { | |
4f14bcd8 GD |
16689 | |
16690 | /* The GNU C library defines this for functions which it implements | |
16691 | to always fail with ENOSYS. Some functions are actually named | |
16692 | something starting with __ and the normal name is an alias. */ | |
16693 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16694 | choke me | |
16695 | #else | |
16696 | $ac_func(); | |
16697 | #endif | |
16698 | ||
698dcdb6 VZ |
16699 | ; return 0; } |
16700 | EOF | |
4222829b | 16701 | if { (eval echo configure:16702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16702 | rm -rf conftest* |
4f14bcd8 | 16703 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
16704 | else |
16705 | echo "configure: failed program was:" >&5 | |
16706 | cat conftest.$ac_ext >&5 | |
16707 | rm -rf conftest* | |
4f14bcd8 | 16708 | eval "ac_cv_func_$ac_func=no" |
698dcdb6 VZ |
16709 | fi |
16710 | rm -f conftest* | |
698dcdb6 | 16711 | fi |
4f14bcd8 GD |
16712 | |
16713 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 16714 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
16715 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
16716 | cat >> confdefs.h <<EOF | |
16717 | #define $ac_tr_func 1 | |
16718 | EOF | |
16719 | cat >> confdefs.h <<\EOF | |
16720 | #define HAVE_INET_ADDR 1 | |
10f2d63a VZ |
16721 | EOF |
16722 | ||
16723 | else | |
698dcdb6 | 16724 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 16725 | echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6 |
4222829b | 16726 | echo "configure:16727: checking for inet_addr in -lnsl" >&5 |
4f14bcd8 | 16727 | ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
16728 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
16729 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 16730 | else |
698dcdb6 | 16731 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 16732 | LIBS="-lnsl $LIBS" |
698dcdb6 | 16733 | cat > conftest.$ac_ext <<EOF |
4222829b | 16734 | #line 16735 "configure" |
10f2d63a VZ |
16735 | #include "confdefs.h" |
16736 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16737 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 16738 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16739 | char inet_addr(); |
698dcdb6 VZ |
16740 | |
16741 | int main() { | |
4f14bcd8 | 16742 | inet_addr() |
698dcdb6 VZ |
16743 | ; return 0; } |
16744 | EOF | |
4222829b | 16745 | if { (eval echo configure:16746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16746 | rm -rf conftest* |
16747 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16748 | else | |
16749 | echo "configure: failed program was:" >&5 | |
16750 | cat conftest.$ac_ext >&5 | |
16751 | rm -rf conftest* | |
16752 | eval "ac_cv_lib_$ac_lib_var=no" | |
16753 | fi | |
16754 | rm -f conftest* | |
16755 | LIBS="$ac_save_LIBS" | |
16756 | ||
16757 | fi | |
16758 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16759 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 16760 | INET_LINK="nsl" |
10f2d63a | 16761 | else |
698dcdb6 | 16762 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 16763 | echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6 |
4222829b | 16764 | echo "configure:16765: checking for inet_addr in -lresolv" >&5 |
4f14bcd8 | 16765 | ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
16766 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
16767 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 16768 | else |
698dcdb6 | 16769 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 16770 | LIBS="-lresolv $LIBS" |
698dcdb6 | 16771 | cat > conftest.$ac_ext <<EOF |
4222829b | 16772 | #line 16773 "configure" |
10f2d63a VZ |
16773 | #include "confdefs.h" |
16774 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16775 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 16776 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16777 | char inet_addr(); |
698dcdb6 VZ |
16778 | |
16779 | int main() { | |
4f14bcd8 | 16780 | inet_addr() |
698dcdb6 VZ |
16781 | ; return 0; } |
16782 | EOF | |
4222829b | 16783 | if { (eval echo configure:16784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16784 | rm -rf conftest* |
16785 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16786 | else | |
16787 | echo "configure: failed program was:" >&5 | |
16788 | cat conftest.$ac_ext >&5 | |
16789 | rm -rf conftest* | |
16790 | eval "ac_cv_lib_$ac_lib_var=no" | |
16791 | fi | |
16792 | rm -f conftest* | |
16793 | LIBS="$ac_save_LIBS" | |
16794 | ||
16795 | fi | |
16796 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16797 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 GD |
16798 | INET_LINK="resolv" |
16799 | ||
698dcdb6 | 16800 | else |
4f14bcd8 GD |
16801 | echo "$ac_t""no" 1>&6 |
16802 | fi | |
698dcdb6 | 16803 | |
4f14bcd8 | 16804 | |
698dcdb6 | 16805 | fi |
4f14bcd8 GD |
16806 | |
16807 | ||
698dcdb6 VZ |
16808 | |
16809 | fi | |
4f14bcd8 GD |
16810 | done |
16811 | ||
16812 | ||
16813 | for ac_func in inet_aton | |
16814 | do | |
16815 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
4222829b | 16816 | echo "configure:16817: checking for $ac_func" >&5 |
4f14bcd8 | 16817 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 VZ |
16818 | echo $ac_n "(cached) $ac_c" 1>&6 |
16819 | else | |
4f14bcd8 | 16820 | cat > conftest.$ac_ext <<EOF |
4222829b | 16821 | #line 16822 "configure" |
f6bcfd97 | 16822 | #include "confdefs.h" |
4f14bcd8 GD |
16823 | /* System header to define __stub macros and hopefully few prototypes, |
16824 | which can conflict with char $ac_func(); below. */ | |
16825 | #include <assert.h> | |
f6bcfd97 BP |
16826 | /* Override any gcc2 internal prototype to avoid an error. */ |
16827 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 16828 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16829 | char $ac_func(); |
698dcdb6 VZ |
16830 | |
16831 | int main() { | |
4f14bcd8 GD |
16832 | |
16833 | /* The GNU C library defines this for functions which it implements | |
16834 | to always fail with ENOSYS. Some functions are actually named | |
16835 | something starting with __ and the normal name is an alias. */ | |
16836 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16837 | choke me | |
16838 | #else | |
16839 | $ac_func(); | |
16840 | #endif | |
16841 | ||
698dcdb6 VZ |
16842 | ; return 0; } |
16843 | EOF | |
4222829b | 16844 | if { (eval echo configure:16845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16845 | rm -rf conftest* |
4f14bcd8 | 16846 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
16847 | else |
16848 | echo "configure: failed program was:" >&5 | |
16849 | cat conftest.$ac_ext >&5 | |
16850 | rm -rf conftest* | |
4f14bcd8 | 16851 | eval "ac_cv_func_$ac_func=no" |
698dcdb6 VZ |
16852 | fi |
16853 | rm -f conftest* | |
698dcdb6 | 16854 | fi |
4f14bcd8 GD |
16855 | |
16856 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 16857 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
16858 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
16859 | cat >> confdefs.h <<EOF | |
16860 | #define $ac_tr_func 1 | |
16861 | EOF | |
16862 | cat >> confdefs.h <<\EOF | |
16863 | #define HAVE_INET_ATON 1 | |
16864 | EOF | |
16865 | ||
10f2d63a | 16866 | else |
698dcdb6 | 16867 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 16868 | echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6 |
4222829b | 16869 | echo "configure:16870: checking for inet_aton in -l$INET_LINK" >&5 |
4f14bcd8 | 16870 | ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
16871 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
16872 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 16873 | else |
698dcdb6 | 16874 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 16875 | LIBS="-l$INET_LINK $LIBS" |
698dcdb6 | 16876 | cat > conftest.$ac_ext <<EOF |
4222829b | 16877 | #line 16878 "configure" |
10f2d63a | 16878 | #include "confdefs.h" |
6232543b | 16879 | /* Override any gcc2 internal prototype to avoid an error. */ |
6232543b | 16880 | /* We use char because int might match the return type of a gcc2 |
698dcdb6 | 16881 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16882 | char inet_aton(); |
698dcdb6 VZ |
16883 | |
16884 | int main() { | |
4f14bcd8 | 16885 | inet_aton() |
698dcdb6 VZ |
16886 | ; return 0; } |
16887 | EOF | |
4222829b | 16888 | if { (eval echo configure:16889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16889 | rm -rf conftest* |
16890 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16891 | else | |
16892 | echo "configure: failed program was:" >&5 | |
16893 | cat conftest.$ac_ext >&5 | |
16894 | rm -rf conftest* | |
16895 | eval "ac_cv_lib_$ac_lib_var=no" | |
16896 | fi | |
16897 | rm -f conftest* | |
16898 | LIBS="$ac_save_LIBS" | |
10f2d63a | 16899 | |
698dcdb6 VZ |
16900 | fi |
16901 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16902 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 GD |
16903 | cat >> confdefs.h <<\EOF |
16904 | #define HAVE_INET_ATON 1 | |
16905 | EOF | |
16906 | ||
698dcdb6 VZ |
16907 | else |
16908 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
16909 | fi |
16910 | ||
4f14bcd8 | 16911 | |
10f2d63a | 16912 | fi |
4f14bcd8 | 16913 | done |
10f2d63a | 16914 | |
4f14bcd8 GD |
16915 | |
16916 | if test "x$INET_LINK" != "x"; then | |
16917 | cat >> confdefs.h <<\EOF | |
16918 | #define HAVE_INET_ADDR 1 | |
16919 | EOF | |
16920 | ||
3d63bc3a | 16921 | INET_LINK=" -l$INET_LINK" |
6232543b | 16922 | fi |
10f2d63a | 16923 | |
1e487827 | 16924 | fi |
703e0a69 | 16925 | |
698dcdb6 | 16926 | |
4f14bcd8 GD |
16927 | cat > confcache <<\EOF |
16928 | # This file is a shell script that caches the results of configure | |
16929 | # tests run on this system so they can be shared between configure | |
16930 | # scripts and configure runs. It is not useful on other systems. | |
16931 | # If it contains results you don't want to keep, you may remove or edit it. | |
16932 | # | |
16933 | # By default, configure uses ./config.cache as the cache file, | |
16934 | # creating it if it does not exist already. You can give configure | |
16935 | # the --cache-file=FILE option to use a different cache file; that is | |
16936 | # what configure does when it calls configure scripts in | |
16937 | # subdirectories, so they share the cache. | |
16938 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
16939 | # config.status only pays attention to the cache file if you give it the | |
16940 | # --recheck option to rerun configure. | |
16941 | # | |
f6bcfd97 | 16942 | EOF |
4f14bcd8 GD |
16943 | # The following way of writing the cache mishandles newlines in values, |
16944 | # but we know of no workaround that is simple, portable, and efficient. | |
16945 | # So, don't put newlines in cache variables' values. | |
16946 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
16947 | # and sets the high bit in the cache file unless we assign to the vars. | |
16948 | (set) 2>&1 | | |
16949 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
16950 | *ac_space=\ *) | |
16951 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
16952 | # turns \\\\ into \\, and sed turns \\ into \). | |
16953 | sed -n \ | |
16954 | -e "s/'/'\\\\''/g" \ | |
16955 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
16956 | ;; | |
16957 | *) | |
16958 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
16959 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
16960 | ;; | |
16961 | esac >> confcache | |
16962 | if cmp -s $cache_file confcache; then | |
16963 | : | |
16964 | else | |
16965 | if test -w $cache_file; then | |
16966 | echo "updating cache $cache_file" | |
16967 | cat confcache > $cache_file | |
f6bcfd97 | 16968 | else |
4f14bcd8 | 16969 | echo "not updating unwritable cache $cache_file" |
f6bcfd97 | 16970 | fi |
4f14bcd8 GD |
16971 | fi |
16972 | rm -f confcache | |
f6bcfd97 | 16973 | |
4f14bcd8 GD |
16974 | |
16975 | ||
16976 | if test "$TOOLKIT" != "MSW"; then | |
16977 | ||
7274f1c7 RL |
16978 | |
16979 | THREADS_LINK= | |
16980 | THREADS_OBJ= | |
16981 | CODE_GEN_FLAGS= | |
16982 | CODE_GEN_FLAGS_CXX= | |
16983 | ||
16984 | if test "$wxUSE_THREADS" = "yes" ; then | |
16985 | if test "$wxUSE_WINE" = 1 ; then | |
156b2523 | 16986 | echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2 |
7274f1c7 RL |
16987 | wxUSE_THREADS="no" |
16988 | elif test "$USE_BEOS" = 1; then | |
156b2523 | 16989 | echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2 |
7274f1c7 RL |
16990 | wxUSE_THREADS="no" |
16991 | fi | |
4f14bcd8 | 16992 | fi |
4f14bcd8 | 16993 | |
7274f1c7 RL |
16994 | if test "$wxUSE_THREADS" = "yes" ; then |
16995 | ||
16996 | if test "$USE_AIX" = 1; then | |
16997 | THREADS_LIB=pthreads | |
16998 | else | |
16999 | THREADS_LIB=pthread | |
17000 | fi | |
4f14bcd8 | 17001 | |
7274f1c7 | 17002 | echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6 |
4222829b | 17003 | echo "configure:17004: checking for pthread_create in -l$THREADS_LIB" >&5 |
4f14bcd8 | 17004 | ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
17005 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
17006 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 17007 | else |
698dcdb6 | 17008 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 17009 | LIBS="-l$THREADS_LIB $LIBS" |
698dcdb6 | 17010 | cat > conftest.$ac_ext <<EOF |
4222829b | 17011 | #line 17012 "configure" |
10f2d63a VZ |
17012 | #include "confdefs.h" |
17013 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17014 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 17015 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 17016 | char pthread_create(); |
698dcdb6 VZ |
17017 | |
17018 | int main() { | |
4f14bcd8 | 17019 | pthread_create() |
698dcdb6 VZ |
17020 | ; return 0; } |
17021 | EOF | |
4222829b | 17022 | if { (eval echo configure:17023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17023 | rm -rf conftest* |
17024 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17025 | else | |
17026 | echo "configure: failed program was:" >&5 | |
17027 | cat conftest.$ac_ext >&5 | |
17028 | rm -rf conftest* | |
17029 | eval "ac_cv_lib_$ac_lib_var=no" | |
17030 | fi | |
17031 | rm -f conftest* | |
17032 | LIBS="$ac_save_LIBS" | |
17033 | ||
17034 | fi | |
17035 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17036 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 17037 | |
7274f1c7 RL |
17038 | THREADS_OBJ="threadpsx.lo" |
17039 | THREADS_LINK=$THREADS_LIB | |
17040 | ||
10f2d63a | 17041 | else |
698dcdb6 | 17042 | echo "$ac_t""no" 1>&6 |
10f2d63a | 17043 | |
7274f1c7 | 17044 | echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 |
4222829b | 17045 | echo "configure:17046: checking for pthread_create in -lc_r" >&5 |
4f14bcd8 GD |
17046 | ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` |
17047 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 VZ |
17048 | echo $ac_n "(cached) $ac_c" 1>&6 |
17049 | else | |
4f14bcd8 GD |
17050 | ac_save_LIBS="$LIBS" |
17051 | LIBS="-lc_r $LIBS" | |
17052 | cat > conftest.$ac_ext <<EOF | |
4222829b | 17053 | #line 17054 "configure" |
10f2d63a | 17054 | #include "confdefs.h" |
4f14bcd8 GD |
17055 | /* Override any gcc2 internal prototype to avoid an error. */ |
17056 | /* We use char because int might match the return type of a gcc2 | |
17057 | builtin and then its argument prototype would still apply. */ | |
17058 | char pthread_create(); | |
10f2d63a | 17059 | |
4f14bcd8 GD |
17060 | int main() { |
17061 | pthread_create() | |
698dcdb6 VZ |
17062 | ; return 0; } |
17063 | EOF | |
4222829b | 17064 | if { (eval echo configure:17065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 17065 | rm -rf conftest* |
4f14bcd8 | 17066 | eval "ac_cv_lib_$ac_lib_var=yes" |
10f2d63a | 17067 | else |
698dcdb6 VZ |
17068 | echo "configure: failed program was:" >&5 |
17069 | cat conftest.$ac_ext >&5 | |
17070 | rm -rf conftest* | |
4f14bcd8 | 17071 | eval "ac_cv_lib_$ac_lib_var=no" |
6232543b | 17072 | fi |
698dcdb6 | 17073 | rm -f conftest* |
4f14bcd8 | 17074 | LIBS="$ac_save_LIBS" |
d9b9876f | 17075 | |
4f14bcd8 GD |
17076 | fi |
17077 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17078 | echo "$ac_t""yes" 1>&6 | |
17079 | ||
7274f1c7 RL |
17080 | THREADS_OBJ="threadpsx.lo" |
17081 | THREADS_LINK="c_r" | |
17082 | ||
4f14bcd8 GD |
17083 | else |
17084 | echo "$ac_t""no" 1>&6 | |
ab252f7b | 17085 | |
7274f1c7 | 17086 | ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'` |
4f14bcd8 | 17087 | echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6 |
4222829b | 17088 | echo "configure:17089: checking for sys/prctl.h" >&5 |
4f14bcd8 | 17089 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
698dcdb6 | 17090 | echo $ac_n "(cached) $ac_c" 1>&6 |
d9b9876f | 17091 | else |
4f14bcd8 | 17092 | cat > conftest.$ac_ext <<EOF |
4222829b | 17093 | #line 17094 "configure" |
d9b9876f | 17094 | #include "confdefs.h" |
4f14bcd8 | 17095 | #include <sys/prctl.h> |
698dcdb6 | 17096 | EOF |
4f14bcd8 | 17097 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
4222829b | 17098 | { (eval echo configure:17099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
17099 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
17100 | if test -z "$ac_err"; then | |
698dcdb6 | 17101 | rm -rf conftest* |
4f14bcd8 | 17102 | eval "ac_cv_header_$ac_safe=yes" |
d9b9876f | 17103 | else |
4f14bcd8 | 17104 | echo "$ac_err" >&5 |
698dcdb6 VZ |
17105 | echo "configure: failed program was:" >&5 |
17106 | cat conftest.$ac_ext >&5 | |
17107 | rm -rf conftest* | |
4f14bcd8 | 17108 | eval "ac_cv_header_$ac_safe=no" |
6232543b | 17109 | fi |
698dcdb6 | 17110 | rm -f conftest* |
4f14bcd8 GD |
17111 | fi |
17112 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
17113 | echo "$ac_t""yes" 1>&6 | |
698dcdb6 | 17114 | |
7274f1c7 RL |
17115 | THREADS_OBJ="threadsgi.lo" |
17116 | ||
4f14bcd8 GD |
17117 | else |
17118 | echo "$ac_t""no" 1>&6 | |
1e487827 | 17119 | fi |
698dcdb6 | 17120 | |
7274f1c7 | 17121 | |
4f14bcd8 | 17122 | fi |
d9b9876f | 17123 | |
7274f1c7 | 17124 | |
4f14bcd8 | 17125 | fi |
d9b9876f | 17126 | |
4f14bcd8 | 17127 | |
7274f1c7 RL |
17128 | if test -z "$THREADS_OBJ" ; then |
17129 | wxUSE_THREADS=no | |
156b2523 | 17130 | echo "configure: warning: No thread support on this system... disabled" 1>&2 |
7274f1c7 | 17131 | fi |
4f14bcd8 | 17132 | fi |
4f14bcd8 | 17133 | |
7274f1c7 RL |
17134 | if test "$wxUSE_THREADS" = "yes" ; then |
17135 | for ac_func in thr_setconcurrency | |
4f14bcd8 GD |
17136 | do |
17137 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
4222829b | 17138 | echo "configure:17139: checking for $ac_func" >&5 |
4f14bcd8 | 17139 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 VZ |
17140 | echo $ac_n "(cached) $ac_c" 1>&6 |
17141 | else | |
4f14bcd8 | 17142 | cat > conftest.$ac_ext <<EOF |
4222829b | 17143 | #line 17144 "configure" |
d9b9876f | 17144 | #include "confdefs.h" |
4f14bcd8 GD |
17145 | /* System header to define __stub macros and hopefully few prototypes, |
17146 | which can conflict with char $ac_func(); below. */ | |
17147 | #include <assert.h> | |
17148 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17149 | /* We use char because int might match the return type of a gcc2 | |
17150 | builtin and then its argument prototype would still apply. */ | |
17151 | char $ac_func(); | |
17152 | ||
698dcdb6 | 17153 | int main() { |
d9b9876f | 17154 | |
4f14bcd8 GD |
17155 | /* The GNU C library defines this for functions which it implements |
17156 | to always fail with ENOSYS. Some functions are actually named | |
17157 | something starting with __ and the normal name is an alias. */ | |
17158 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17159 | choke me | |
17160 | #else | |
17161 | $ac_func(); | |
17162 | #endif | |
17163 | ||
698dcdb6 VZ |
17164 | ; return 0; } |
17165 | EOF | |
4222829b | 17166 | if { (eval echo configure:17167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 17167 | rm -rf conftest* |
4f14bcd8 | 17168 | eval "ac_cv_func_$ac_func=yes" |
d9b9876f | 17169 | else |
698dcdb6 VZ |
17170 | echo "configure: failed program was:" >&5 |
17171 | cat conftest.$ac_ext >&5 | |
17172 | rm -rf conftest* | |
4f14bcd8 | 17173 | eval "ac_cv_func_$ac_func=no" |
6232543b | 17174 | fi |
698dcdb6 | 17175 | rm -f conftest* |
1e487827 | 17176 | fi |
698dcdb6 | 17177 | |
4f14bcd8 GD |
17178 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17179 | echo "$ac_t""yes" 1>&6 | |
17180 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17181 | cat >> confdefs.h <<EOF | |
17182 | #define $ac_tr_func 1 | |
d9b9876f | 17183 | EOF |
4f14bcd8 GD |
17184 | |
17185 | else | |
17186 | echo "$ac_t""no" 1>&6 | |
10f2d63a | 17187 | fi |
4f14bcd8 | 17188 | done |
10f2d63a | 17189 | |
10f2d63a | 17190 | |
7274f1c7 RL |
17191 | |
17192 | for ac_hdr in sched.h | |
4f14bcd8 GD |
17193 | do |
17194 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
17195 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
4222829b | 17196 | echo "configure:17197: checking for $ac_hdr" >&5 |
4f14bcd8 GD |
17197 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
17198 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 17199 | else |
4f14bcd8 | 17200 | cat > conftest.$ac_ext <<EOF |
4222829b | 17201 | #line 17202 "configure" |
4f14bcd8 GD |
17202 | #include "confdefs.h" |
17203 | #include <$ac_hdr> | |
13111b2a | 17204 | EOF |
4f14bcd8 | 17205 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
4222829b | 17206 | { (eval echo configure:17207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
17207 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
17208 | if test -z "$ac_err"; then | |
17209 | rm -rf conftest* | |
17210 | eval "ac_cv_header_$ac_safe=yes" | |
17211 | else | |
17212 | echo "$ac_err" >&5 | |
17213 | echo "configure: failed program was:" >&5 | |
17214 | cat conftest.$ac_ext >&5 | |
17215 | rm -rf conftest* | |
17216 | eval "ac_cv_header_$ac_safe=no" | |
13111b2a | 17217 | fi |
4f14bcd8 | 17218 | rm -f conftest* |
10f2d63a | 17219 | fi |
4f14bcd8 GD |
17220 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
17221 | echo "$ac_t""yes" 1>&6 | |
17222 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
698dcdb6 | 17223 | cat >> confdefs.h <<EOF |
4f14bcd8 | 17224 | #define $ac_tr_hdr 1 |
f6bcfd97 | 17225 | EOF |
4f14bcd8 GD |
17226 | |
17227 | else | |
17228 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 | 17229 | fi |
4f14bcd8 | 17230 | done |
f6bcfd97 | 17231 | |
10f2d63a | 17232 | |
7274f1c7 | 17233 | echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6 |
4222829b | 17234 | echo "configure:17235: checking for sched_yield in -l$THREADS_LINK" >&5 |
4f14bcd8 GD |
17235 | ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'` |
17236 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17237 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17238 | else | |
17239 | ac_save_LIBS="$LIBS" | |
17240 | LIBS="-l$THREADS_LINK $LIBS" | |
17241 | cat > conftest.$ac_ext <<EOF | |
4222829b | 17242 | #line 17243 "configure" |
4f14bcd8 GD |
17243 | #include "confdefs.h" |
17244 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17245 | /* We use char because int might match the return type of a gcc2 | |
17246 | builtin and then its argument prototype would still apply. */ | |
17247 | char sched_yield(); | |
10f2d63a | 17248 | |
4f14bcd8 GD |
17249 | int main() { |
17250 | sched_yield() | |
17251 | ; return 0; } | |
10f2d63a | 17252 | EOF |
4222829b | 17253 | if { (eval echo configure:17254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
17254 | rm -rf conftest* |
17255 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 17256 | else |
4f14bcd8 GD |
17257 | echo "configure: failed program was:" >&5 |
17258 | cat conftest.$ac_ext >&5 | |
17259 | rm -rf conftest* | |
17260 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 17261 | fi |
4f14bcd8 GD |
17262 | rm -f conftest* |
17263 | LIBS="$ac_save_LIBS" | |
10f2d63a | 17264 | |
4f14bcd8 GD |
17265 | fi |
17266 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17267 | echo "$ac_t""yes" 1>&6 | |
17268 | cat >> confdefs.h <<\EOF | |
17269 | #define HAVE_SCHED_YIELD 1 | |
10f2d63a VZ |
17270 | EOF |
17271 | ||
4f14bcd8 GD |
17272 | else |
17273 | echo "$ac_t""no" 1>&6 | |
17274 | echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6 | |
4222829b | 17275 | echo "configure:17276: checking for sched_yield in -lposix4" >&5 |
4f14bcd8 GD |
17276 | ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'` |
17277 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17278 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17279 | else | |
17280 | ac_save_LIBS="$LIBS" | |
17281 | LIBS="-lposix4 $LIBS" | |
17282 | cat > conftest.$ac_ext <<EOF | |
4222829b | 17283 | #line 17284 "configure" |
4f14bcd8 GD |
17284 | #include "confdefs.h" |
17285 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17286 | /* We use char because int might match the return type of a gcc2 | |
17287 | builtin and then its argument prototype would still apply. */ | |
17288 | char sched_yield(); | |
47c13eb7 | 17289 | |
4f14bcd8 GD |
17290 | int main() { |
17291 | sched_yield() | |
17292 | ; return 0; } | |
10f2d63a | 17293 | EOF |
4222829b | 17294 | if { (eval echo configure:17295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
17295 | rm -rf conftest* |
17296 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 17297 | else |
4f14bcd8 GD |
17298 | echo "configure: failed program was:" >&5 |
17299 | cat conftest.$ac_ext >&5 | |
17300 | rm -rf conftest* | |
17301 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 17302 | fi |
4f14bcd8 GD |
17303 | rm -f conftest* |
17304 | LIBS="$ac_save_LIBS" | |
10f2d63a | 17305 | |
54276ccf | 17306 | fi |
4f14bcd8 GD |
17307 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
17308 | echo "$ac_t""yes" 1>&6 | |
17309 | cat >> confdefs.h <<\EOF | |
17310 | #define HAVE_SCHED_YIELD 1 | |
54276ccf | 17311 | EOF |
3d63bc3a | 17312 | POSIX4_LINK=" -lposix4" |
4f14bcd8 GD |
17313 | else |
17314 | echo "$ac_t""no" 1>&6 | |
17315 | echo "configure: warning: wxThread::Yield will not work properly" 1>&2 | |
7274f1c7 | 17316 | |
54276ccf VZ |
17317 | fi |
17318 | ||
7274f1c7 | 17319 | |
4f14bcd8 | 17320 | fi |
698dcdb6 | 17321 | |
10f2d63a | 17322 | |
7274f1c7 RL |
17323 | HAVE_PRIOR_FUNCS=0 |
17324 | echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6 | |
4222829b | 17325 | echo "configure:17326: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5 |
4f14bcd8 GD |
17326 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'` |
17327 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 VZ |
17328 | echo $ac_n "(cached) $ac_c" 1>&6 |
17329 | else | |
4f14bcd8 GD |
17330 | ac_save_LIBS="$LIBS" |
17331 | LIBS="-l$THREADS_LINK $LIBS" | |
17332 | cat > conftest.$ac_ext <<EOF | |
4222829b | 17333 | #line 17334 "configure" |
422107f9 | 17334 | #include "confdefs.h" |
4f14bcd8 GD |
17335 | /* Override any gcc2 internal prototype to avoid an error. */ |
17336 | /* We use char because int might match the return type of a gcc2 | |
17337 | builtin and then its argument prototype would still apply. */ | |
17338 | char pthread_attr_getschedpolicy(); | |
17339 | ||
17340 | int main() { | |
17341 | pthread_attr_getschedpolicy() | |
17342 | ; return 0; } | |
698dcdb6 | 17343 | EOF |
4222829b | 17344 | if { (eval echo configure:17345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 17345 | rm -rf conftest* |
4f14bcd8 | 17346 | eval "ac_cv_lib_$ac_lib_var=yes" |
422107f9 | 17347 | else |
698dcdb6 | 17348 | echo "configure: failed program was:" >&5 |
422107f9 | 17349 | cat conftest.$ac_ext >&5 |
698dcdb6 | 17350 | rm -rf conftest* |
4f14bcd8 | 17351 | eval "ac_cv_lib_$ac_lib_var=no" |
422107f9 | 17352 | fi |
698dcdb6 | 17353 | rm -f conftest* |
4f14bcd8 GD |
17354 | LIBS="$ac_save_LIBS" |
17355 | ||
422107f9 | 17356 | fi |
4f14bcd8 | 17357 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
698dcdb6 | 17358 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 | 17359 | echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6 |
4222829b | 17360 | echo "configure:17361: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5 |
4f14bcd8 | 17361 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
17362 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
17363 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 17364 | else |
698dcdb6 | 17365 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 17366 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 17367 | cat > conftest.$ac_ext <<EOF |
4222829b | 17368 | #line 17369 "configure" |
422107f9 VZ |
17369 | #include "confdefs.h" |
17370 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17371 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 17372 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 17373 | char pthread_attr_setschedparam(); |
698dcdb6 VZ |
17374 | |
17375 | int main() { | |
4f14bcd8 | 17376 | pthread_attr_setschedparam() |
698dcdb6 VZ |
17377 | ; return 0; } |
17378 | EOF | |
4222829b | 17379 | if { (eval echo configure:17380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17380 | rm -rf conftest* |
17381 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17382 | else | |
17383 | echo "configure: failed program was:" >&5 | |
17384 | cat conftest.$ac_ext >&5 | |
17385 | rm -rf conftest* | |
17386 | eval "ac_cv_lib_$ac_lib_var=no" | |
17387 | fi | |
17388 | rm -f conftest* | |
17389 | LIBS="$ac_save_LIBS" | |
17390 | ||
17391 | fi | |
17392 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17393 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 17394 | echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6 |
4222829b | 17395 | echo "configure:17396: checking for sched_get_priority_max in -l$THREADS_LINK" >&5 |
4f14bcd8 GD |
17396 | ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
17397 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 VZ |
17398 | echo $ac_n "(cached) $ac_c" 1>&6 |
17399 | else | |
4f14bcd8 GD |
17400 | ac_save_LIBS="$LIBS" |
17401 | LIBS="-l$THREADS_LINK $LIBS" | |
17402 | cat > conftest.$ac_ext <<EOF | |
4222829b | 17403 | #line 17404 "configure" |
422107f9 | 17404 | #include "confdefs.h" |
4f14bcd8 GD |
17405 | /* Override any gcc2 internal prototype to avoid an error. */ |
17406 | /* We use char because int might match the return type of a gcc2 | |
17407 | builtin and then its argument prototype would still apply. */ | |
17408 | char sched_get_priority_max(); | |
17409 | ||
17410 | int main() { | |
17411 | sched_get_priority_max() | |
17412 | ; return 0; } | |
698dcdb6 | 17413 | EOF |
4222829b | 17414 | if { (eval echo configure:17415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 17415 | rm -rf conftest* |
4f14bcd8 | 17416 | eval "ac_cv_lib_$ac_lib_var=yes" |
422107f9 | 17417 | else |
698dcdb6 | 17418 | echo "configure: failed program was:" >&5 |
422107f9 | 17419 | cat conftest.$ac_ext >&5 |
698dcdb6 | 17420 | rm -rf conftest* |
4f14bcd8 | 17421 | eval "ac_cv_lib_$ac_lib_var=no" |
422107f9 | 17422 | fi |
698dcdb6 | 17423 | rm -f conftest* |
4f14bcd8 GD |
17424 | LIBS="$ac_save_LIBS" |
17425 | ||
422107f9 | 17426 | fi |
4f14bcd8 | 17427 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
698dcdb6 | 17428 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
17429 | HAVE_PRIOR_FUNCS=1 |
17430 | else | |
17431 | echo "$ac_t""no" 1>&6 | |
17432 | echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6 | |
4222829b | 17433 | echo "configure:17434: checking for sched_get_priority_max in -lposix4" >&5 |
4f14bcd8 | 17434 | ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
17435 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
17436 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 17437 | else |
698dcdb6 | 17438 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 17439 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 17440 | cat > conftest.$ac_ext <<EOF |
4222829b | 17441 | #line 17442 "configure" |
422107f9 VZ |
17442 | #include "confdefs.h" |
17443 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17444 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 17445 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 17446 | char sched_get_priority_max(); |
698dcdb6 VZ |
17447 | |
17448 | int main() { | |
4f14bcd8 | 17449 | sched_get_priority_max() |
698dcdb6 VZ |
17450 | ; return 0; } |
17451 | EOF | |
4222829b | 17452 | if { (eval echo configure:17453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17453 | rm -rf conftest* |
17454 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17455 | else | |
17456 | echo "configure: failed program was:" >&5 | |
17457 | cat conftest.$ac_ext >&5 | |
17458 | rm -rf conftest* | |
17459 | eval "ac_cv_lib_$ac_lib_var=no" | |
17460 | fi | |
17461 | rm -f conftest* | |
17462 | LIBS="$ac_save_LIBS" | |
17463 | ||
17464 | fi | |
17465 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17466 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 17467 | |
7274f1c7 RL |
17468 | HAVE_PRIOR_FUNCS=1 |
17469 | POSIX4_LINK=" -lposix4" | |
17470 | ||
698dcdb6 VZ |
17471 | else |
17472 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
17473 | fi |
17474 | ||
7274f1c7 | 17475 | |
422107f9 VZ |
17476 | fi |
17477 | ||
7274f1c7 | 17478 | |
4f14bcd8 GD |
17479 | else |
17480 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
17481 | fi |
17482 | ||
7274f1c7 | 17483 | |
698dcdb6 | 17484 | else |
4f14bcd8 GD |
17485 | echo "$ac_t""no" 1>&6 |
17486 | fi | |
463abc64 | 17487 | |
463abc64 | 17488 | |
7274f1c7 RL |
17489 | if test "$HAVE_PRIOR_FUNCS" = 1; then |
17490 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 17491 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 |
698dcdb6 | 17492 | EOF |
463abc64 | 17493 | |
7274f1c7 RL |
17494 | else |
17495 | echo "configure: warning: Setting thread priority will not work" 1>&2 | |
17496 | fi | |
463abc64 | 17497 | |
7274f1c7 | 17498 | echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6 |
4222829b | 17499 | echo "configure:17500: checking for pthread_cancel in -l$THREADS_LINK" >&5 |
4f14bcd8 | 17500 | ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
17501 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
17502 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 17503 | else |
698dcdb6 | 17504 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 17505 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 17506 | cat > conftest.$ac_ext <<EOF |
4222829b | 17507 | #line 17508 "configure" |
422107f9 VZ |
17508 | #include "confdefs.h" |
17509 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17510 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 17511 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 17512 | char pthread_cancel(); |
698dcdb6 VZ |
17513 | |
17514 | int main() { | |
4f14bcd8 | 17515 | pthread_cancel() |
698dcdb6 VZ |
17516 | ; return 0; } |
17517 | EOF | |
4222829b | 17518 | if { (eval echo configure:17519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17519 | rm -rf conftest* |
17520 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17521 | else | |
17522 | echo "configure: failed program was:" >&5 | |
17523 | cat conftest.$ac_ext >&5 | |
17524 | rm -rf conftest* | |
17525 | eval "ac_cv_lib_$ac_lib_var=no" | |
17526 | fi | |
17527 | rm -f conftest* | |
17528 | LIBS="$ac_save_LIBS" | |
17529 | ||
17530 | fi | |
17531 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17532 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 GD |
17533 | cat >> confdefs.h <<\EOF |
17534 | #define HAVE_PTHREAD_CANCEL 1 | |
17535 | EOF | |
17536 | ||
698dcdb6 VZ |
17537 | else |
17538 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 | 17539 | echo "configure: warning: wxThread::Kill() will not work properly" 1>&2 |
422107f9 VZ |
17540 | fi |
17541 | ||
422107f9 | 17542 | |
7274f1c7 | 17543 | echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6 |
4222829b | 17544 | echo "configure:17545: checking for pthread_cleanup_push/pop" >&5 |
4f14bcd8 GD |
17545 | if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then |
17546 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17547 | else | |
17548 | ||
7274f1c7 | 17549 | cat > conftest.$ac_ext <<EOF |
4222829b | 17550 | #line 17551 "configure" |
4f14bcd8 GD |
17551 | #include "confdefs.h" |
17552 | #include <pthread.h> | |
17553 | int main() { | |
17554 | ||
7274f1c7 RL |
17555 | pthread_cleanup_push(NULL, NULL); |
17556 | pthread_cleanup_pop(0); | |
17557 | ||
4f14bcd8 GD |
17558 | ; return 0; } |
17559 | EOF | |
4222829b | 17560 | if { (eval echo configure:17561: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
17561 | rm -rf conftest* |
17562 | ||
7274f1c7 RL |
17563 | wx_cv_func_pthread_cleanup_push=yes |
17564 | ||
4f14bcd8 GD |
17565 | else |
17566 | echo "configure: failed program was:" >&5 | |
17567 | cat conftest.$ac_ext >&5 | |
17568 | rm -rf conftest* | |
17569 | ||
7274f1c7 RL |
17570 | wx_cv_func_pthread_cleanup_push=no |
17571 | ||
4f14bcd8 GD |
17572 | fi |
17573 | rm -f conftest* | |
7274f1c7 | 17574 | |
10f2d63a VZ |
17575 | fi |
17576 | ||
4f14bcd8 GD |
17577 | echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6 |
17578 | ||
7274f1c7 RL |
17579 | if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then |
17580 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 17581 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 |
c7a2bf27 RR |
17582 | EOF |
17583 | ||
7274f1c7 | 17584 | fi |
4f14bcd8 | 17585 | |
7274f1c7 RL |
17586 | |
17587 | if test "x$wx_lib_glibc21" = "xyes"; then | |
17588 | CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" | |
17589 | fi | |
4f14bcd8 | 17590 | |
7274f1c7 | 17591 | echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6 |
4222829b | 17592 | echo "configure:17593: checking for pthread_mutexattr_t" >&5 |
4f14bcd8 | 17593 | if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then |
698dcdb6 VZ |
17594 | echo $ac_n "(cached) $ac_c" 1>&6 |
17595 | else | |
4f14bcd8 | 17596 | |
7274f1c7 | 17597 | cat > conftest.$ac_ext <<EOF |
4222829b | 17598 | #line 17599 "configure" |
0dcf9893 | 17599 | #include "confdefs.h" |
4f14bcd8 GD |
17600 | #include <pthread.h> |
17601 | int main() { | |
17602 | ||
7274f1c7 RL |
17603 | pthread_mutexattr_t attr; |
17604 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
17605 | ||
4f14bcd8 | 17606 | ; return 0; } |
698dcdb6 | 17607 | EOF |
4222829b | 17608 | if { (eval echo configure:17609: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 17609 | rm -rf conftest* |
4f14bcd8 | 17610 | |
7274f1c7 RL |
17611 | wx_cv_type_pthread_mutexattr_t=yes |
17612 | ||
3fed1840 | 17613 | else |
698dcdb6 | 17614 | echo "configure: failed program was:" >&5 |
3fed1840 | 17615 | cat conftest.$ac_ext >&5 |
698dcdb6 | 17616 | rm -rf conftest* |
4f14bcd8 | 17617 | |
7274f1c7 RL |
17618 | wx_cv_type_pthread_mutexattr_t=no |
17619 | ||
4f14bcd8 | 17620 | |
3fed1840 | 17621 | fi |
698dcdb6 | 17622 | rm -f conftest* |
7274f1c7 | 17623 | |
3fed1840 | 17624 | fi |
4f14bcd8 GD |
17625 | |
17626 | echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6 | |
17627 | ||
7274f1c7 RL |
17628 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then |
17629 | cat >> confdefs.h <<\EOF | |
4f14bcd8 GD |
17630 | #define HAVE_PTHREAD_MUTEXATTR_T 1 |
17631 | EOF | |
17632 | ||
7274f1c7 RL |
17633 | else |
17634 | echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6 | |
4222829b | 17635 | echo "configure:17636: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 |
4f14bcd8 | 17636 | if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then |
698dcdb6 | 17637 | echo $ac_n "(cached) $ac_c" 1>&6 |
3fed1840 | 17638 | else |
4f14bcd8 | 17639 | |
7274f1c7 | 17640 | cat > conftest.$ac_ext <<EOF |
4222829b | 17641 | #line 17642 "configure" |
3fed1840 | 17642 | #include "confdefs.h" |
4f14bcd8 | 17643 | #include <pthread.h> |
698dcdb6 | 17644 | int main() { |
4f14bcd8 | 17645 | |
7274f1c7 RL |
17646 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; |
17647 | ||
698dcdb6 VZ |
17648 | ; return 0; } |
17649 | EOF | |
4222829b | 17650 | if { (eval echo configure:17651: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 17651 | rm -rf conftest* |
4f14bcd8 | 17652 | |
7274f1c7 RL |
17653 | wx_cv_type_pthread_rec_mutex_init=yes |
17654 | ||
698dcdb6 VZ |
17655 | else |
17656 | echo "configure: failed program was:" >&5 | |
17657 | cat conftest.$ac_ext >&5 | |
17658 | rm -rf conftest* | |
4f14bcd8 | 17659 | |
7274f1c7 RL |
17660 | wx_cv_type_pthread_rec_mutex_init=no |
17661 | ||
4f14bcd8 | 17662 | |
698dcdb6 VZ |
17663 | fi |
17664 | rm -f conftest* | |
7274f1c7 | 17665 | |
3fed1840 RR |
17666 | fi |
17667 | ||
4f14bcd8 | 17668 | echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6 |
7274f1c7 RL |
17669 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then |
17670 | cat >> confdefs.h <<\EOF | |
4f14bcd8 GD |
17671 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 |
17672 | EOF | |
3fed1840 | 17673 | |
7274f1c7 RL |
17674 | else |
17675 | echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2 | |
17676 | fi | |
17677 | fi | |
4f14bcd8 | 17678 | |
7274f1c7 | 17679 | THREADS_LINK=" -l$THREADS_LINK" |
4f14bcd8 | 17680 | |
7274f1c7 RL |
17681 | if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then |
17682 | CPPFLAGS="$CFLAGS -mt" | |
17683 | CXXFLAGS="$CXXFLAGS -mt" | |
17684 | LDFLAGS="$LDFLAGS -mt" | |
17685 | fi | |
17686 | fi | |
3fed1840 | 17687 | |
4f14bcd8 GD |
17688 | fi |
17689 | ||
17690 | if test "$wxUSE_THREADS" = "yes"; then | |
3a922bb4 | 17691 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 17692 | #define wxUSE_THREADS 1 |
7b6058cd GD |
17693 | EOF |
17694 | ||
4f14bcd8 | 17695 | |
3f345b47 | 17696 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS $CPP_MT_FLAG" |
4f14bcd8 GD |
17697 | |
17698 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
698dcdb6 | 17699 | else |
4f14bcd8 GD |
17700 | if test "$ac_cv_func_strtok_r" = "yes"; then |
17701 | echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6 | |
4222829b | 17702 | echo "configure:17703: checking if -D_REENTRANT is needed" >&5 |
4f14bcd8 GD |
17703 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
17704 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
17705 | echo "$ac_t""yes" 1>&6 | |
17706 | else | |
17707 | echo "$ac_t""no" 1>&6 | |
17708 | fi | |
17709 | fi | |
17710 | fi | |
17711 | ||
17712 | if test "$WXGTK20" = 1 ; then | |
17713 | cat >> confdefs.h <<EOF | |
17714 | #define __WXGTK20__ $WXGTK20 | |
698dcdb6 | 17715 | EOF |
4f14bcd8 GD |
17716 | |
17717 | WXGTK12=1 | |
10f2d63a | 17718 | fi |
4f14bcd8 GD |
17719 | |
17720 | if test "$WXGTK12" = 1 ; then | |
17721 | cat >> confdefs.h <<EOF | |
17722 | #define __WXGTK12__ $WXGTK12 | |
17723 | EOF | |
17724 | ||
10f2d63a | 17725 | fi |
698dcdb6 | 17726 | |
4f14bcd8 GD |
17727 | if test "$WXGTK127" = 1 ; then |
17728 | cat >> confdefs.h <<EOF | |
17729 | #define __WXGTK127__ $WXGTK127 | |
698dcdb6 | 17730 | EOF |
4f14bcd8 | 17731 | |
698dcdb6 | 17732 | fi |
10f2d63a | 17733 | |
4f14bcd8 GD |
17734 | WXDEBUG= |
17735 | ||
17736 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
17737 | WXDEBUG="-g" | |
17738 | wxUSE_OPTIMISE=no | |
698dcdb6 | 17739 | fi |
4f14bcd8 GD |
17740 | |
17741 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
17742 | wxUSE_DEBUG_INFO=yes | |
17743 | WXDEBUG="-ggdb" | |
10f2d63a VZ |
17744 | fi |
17745 | ||
4f14bcd8 GD |
17746 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then |
17747 | cat >> confdefs.h <<\EOF | |
17748 | #define WXDEBUG 1 | |
17749 | EOF | |
17750 | ||
17751 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
10f2d63a | 17752 | else |
4f14bcd8 GD |
17753 | if test "$wxUSE_GTK" = 1 ; then |
17754 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
17755 | fi | |
17756 | fi | |
17757 | ||
17758 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
17759 | cat >> confdefs.h <<\EOF | |
17760 | #define wxUSE_MEMORY_TRACING 1 | |
17761 | EOF | |
17762 | ||
17763 | cat >> confdefs.h <<\EOF | |
17764 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
17765 | EOF | |
17766 | ||
17767 | cat >> confdefs.h <<\EOF | |
17768 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
17769 | EOF | |
17770 | ||
17771 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
17772 | fi | |
17773 | ||
17774 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
3d63bc3a | 17775 | DMALLOC_LIBS="-ldmalloc" |
4f14bcd8 GD |
17776 | fi |
17777 | ||
17778 | PROFILE= | |
17779 | if test "$wxUSE_PROFILE" = "yes" ; then | |
3d63bc3a | 17780 | PROFILE=" -pg" |
10f2d63a VZ |
17781 | fi |
17782 | ||
88e30f2b | 17783 | if test "$GCC" = "yes" ; then |
4f14bcd8 GD |
17784 | if test "$wxUSE_NO_RTTI" = "yes" ; then |
17785 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
3a922bb4 | 17786 | fi |
4f14bcd8 GD |
17787 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
17788 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
17789 | fi | |
17790 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
17791 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
17792 | fi | |
4f14bcd8 GD |
17793 | if test "$USE_WIN32" = 1 ; then |
17794 | # I'm not even really sure what this was ever added to solve, | |
17795 | # but someone added it for mingw native builds, so I guess | |
17796 | # they had a reason, right?? | |
17797 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return" | |
17798 | fi | |
17799 | fi | |
17800 | ||
17801 | ||
17802 | CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" ` | |
17803 | CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" ` | |
17804 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
17805 | OPTIMISE= | |
17806 | else | |
17807 | if test "$GCC" = yes ; then | |
17808 | OPTIMISE="-O2" | |
17809 | case "${host}" in | |
17810 | i586-*-*|i686-*-* ) | |
17811 | OPTIMISE="${OPTIMISE} " | |
17812 | ;; | |
17813 | esac | |
17814 | else | |
17815 | OPTIMISE="-O" | |
17816 | fi | |
17817 | fi | |
17818 | ||
17819 | if test "$WXWIN_COMPATIBILITY_2" = "yes"; then | |
17820 | cat >> confdefs.h <<\EOF | |
17821 | #define WXWIN_COMPATIBILITY_2 1 | |
17822 | EOF | |
17823 | ||
17824 | ||
17825 | WXWIN_COMPATIBILITY_2_2="yes" | |
17826 | fi | |
17827 | ||
17828 | if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then | |
17829 | cat >> confdefs.h <<\EOF | |
17830 | #define WXWIN_COMPATIBILITY_2_2 1 | |
17831 | EOF | |
17832 | ||
10f2d63a VZ |
17833 | fi |
17834 | ||
698dcdb6 | 17835 | |
10f2d63a | 17836 | if test "$wxUSE_GUI" = "yes"; then |
698dcdb6 | 17837 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17838 | #define wxUSE_GUI 1 |
17839 | EOF | |
17840 | ||
698dcdb6 | 17841 | |
10f2d63a | 17842 | else |
698dcdb6 | 17843 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17844 | #define wxUSE_NOGUI 1 |
17845 | EOF | |
17846 | ||
17847 | fi | |
17848 | ||
698dcdb6 | 17849 | |
10f2d63a | 17850 | if test "$wxUSE_UNIX" = "yes"; then |
698dcdb6 | 17851 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17852 | #define wxUSE_UNIX 1 |
17853 | EOF | |
17854 | ||
17855 | fi | |
17856 | ||
698dcdb6 | 17857 | |
10f2d63a | 17858 | if test "$wxUSE_APPLE_IEEE" = "yes"; then |
698dcdb6 | 17859 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17860 | #define wxUSE_APPLE_IEEE 1 |
17861 | EOF | |
17862 | ||
17863 | fi | |
17864 | ||
1e6feb95 VZ |
17865 | if test "$wxUSE_TIMER" = "yes"; then |
17866 | cat >> confdefs.h <<\EOF | |
17867 | #define wxUSE_TIMER 1 | |
17868 | EOF | |
17869 | ||
17870 | fi | |
17871 | ||
10f2d63a | 17872 | if test "$wxUSE_WAVE" = "yes"; then |
698dcdb6 | 17873 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17874 | #define wxUSE_WAVE 1 |
17875 | EOF | |
17876 | ||
17877 | fi | |
17878 | ||
1e6feb95 VZ |
17879 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
17880 | cat >> confdefs.h <<\EOF | |
17881 | #define wxUSE_CMDLINE_PARSER 1 | |
17882 | EOF | |
17883 | ||
17884 | fi | |
17885 | ||
17886 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
17887 | cat >> confdefs.h <<\EOF | |
17888 | #define wxUSE_STOPWATCH 1 | |
17889 | EOF | |
17890 | ||
17891 | fi | |
17892 | ||
17893 | if test "$wxUSE_DATETIME" = "yes"; then | |
17894 | cat >> confdefs.h <<\EOF | |
17895 | #define wxUSE_DATETIME 1 | |
17896 | EOF | |
17897 | ||
17898 | fi | |
17899 | ||
17900 | if test "$wxUSE_TIMEDATE" = "yes"; then | |
17901 | cat >> confdefs.h <<\EOF | |
17902 | #define wxUSE_TIMEDATE 1 | |
17903 | EOF | |
17904 | ||
17905 | fi | |
17906 | ||
10f2d63a | 17907 | if test "$wxUSE_FILE" = "yes"; then |
698dcdb6 | 17908 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17909 | #define wxUSE_FILE 1 |
17910 | EOF | |
17911 | ||
17912 | fi | |
17913 | ||
1e6feb95 VZ |
17914 | if test "$wxUSE_FFILE" = "yes"; then |
17915 | cat >> confdefs.h <<\EOF | |
17916 | #define wxUSE_FFILE 1 | |
17917 | EOF | |
17918 | ||
17919 | fi | |
17920 | ||
24528b0c | 17921 | if test "$wxUSE_FILESYSTEM" = "yes"; then |
698dcdb6 | 17922 | cat >> confdefs.h <<\EOF |
24528b0c VS |
17923 | #define wxUSE_FILESYSTEM 1 |
17924 | EOF | |
17925 | ||
17926 | fi | |
17927 | ||
10f2d63a | 17928 | if test "$wxUSE_FS_INET" = "yes"; then |
698dcdb6 | 17929 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17930 | #define wxUSE_FS_INET 1 |
17931 | EOF | |
17932 | ||
17933 | fi | |
17934 | ||
17935 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
698dcdb6 | 17936 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17937 | #define wxUSE_FS_ZIP 1 |
17938 | EOF | |
17939 | ||
17940 | fi | |
17941 | ||
17942 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
698dcdb6 | 17943 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17944 | #define wxUSE_ZIPSTREAM 1 |
17945 | EOF | |
17946 | ||
17947 | fi | |
17948 | ||
eb4efbdc | 17949 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
698dcdb6 | 17950 | cat >> confdefs.h <<\EOF |
eb4efbdc VZ |
17951 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
17952 | EOF | |
17953 | ||
17954 | fi | |
17955 | ||
4f3c5f06 | 17956 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
698dcdb6 | 17957 | cat >> confdefs.h <<\EOF |
4f3c5f06 VZ |
17958 | #define wxUSE_SNGLINST_CHECKER 1 |
17959 | EOF | |
17960 | ||
17961 | fi | |
17962 | ||
10f2d63a | 17963 | if test "$wxUSE_BUSYINFO" = "yes"; then |
698dcdb6 | 17964 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17965 | #define wxUSE_BUSYINFO 1 |
17966 | EOF | |
17967 | ||
17968 | fi | |
17969 | ||
17970 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
698dcdb6 | 17971 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17972 | #define wxUSE_STD_IOSTREAM 1 |
17973 | EOF | |
17974 | ||
17975 | fi | |
17976 | ||
a3a584a7 VZ |
17977 | if test "$wxUSE_TEXTBUFFER" = "yes"; then |
17978 | cat >> confdefs.h <<\EOF | |
17979 | #define wxUSE_TEXTBUFFER 1 | |
17980 | EOF | |
17981 | ||
17982 | fi | |
17983 | ||
10f2d63a | 17984 | if test "$wxUSE_TEXTFILE" = "yes"; then |
a3a584a7 | 17985 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then |
156b2523 | 17986 | echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2 |
10f2d63a | 17987 | else |
698dcdb6 | 17988 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17989 | #define wxUSE_TEXTFILE 1 |
17990 | EOF | |
17991 | ||
17992 | fi | |
17993 | fi | |
17994 | ||
17995 | if test "$wxUSE_CONFIG" = "yes" ; then | |
17996 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
156b2523 | 17997 | echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2 |
10f2d63a | 17998 | else |
698dcdb6 | 17999 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18000 | #define wxUSE_CONFIG 1 |
18001 | EOF | |
18002 | ||
18003 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
18004 | fi | |
18005 | fi | |
18006 | ||
18007 | if test "$wxUSE_INTL" = "yes" ; then | |
18008 | if test "$wxUSE_FILE" != "yes"; then | |
156b2523 | 18009 | echo "configure: warning: I18n code requires wxFile... disabled" 1>&2 |
10f2d63a | 18010 | else |
698dcdb6 | 18011 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18012 | #define wxUSE_INTL 1 |
18013 | EOF | |
18014 | ||
18015 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
f6bcfd97 | 18016 | GUIDIST="$GUIDIST INTL_DIST" |
10f2d63a VZ |
18017 | fi |
18018 | fi | |
18019 | ||
18020 | if test "$wxUSE_LOG" = "yes"; then | |
698dcdb6 | 18021 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18022 | #define wxUSE_LOG 1 |
18023 | EOF | |
18024 | ||
d73be714 VZ |
18025 | |
18026 | if test "$wxUSE_LOGGUI" = "yes"; then | |
18027 | cat >> confdefs.h <<\EOF | |
18028 | #define wxUSE_LOGGUI 1 | |
18029 | EOF | |
18030 | ||
18031 | fi | |
18032 | ||
18033 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
18034 | cat >> confdefs.h <<\EOF | |
18035 | #define wxUSE_LOGWINDOW 1 | |
69d27ff7 MB |
18036 | EOF |
18037 | ||
18038 | fi | |
18039 | ||
18040 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
18041 | cat >> confdefs.h <<\EOF | |
18042 | #define wxUSE_LOG_DIALOG 1 | |
d73be714 VZ |
18043 | EOF |
18044 | ||
18045 | fi | |
10f2d63a VZ |
18046 | fi |
18047 | ||
18048 | if test "$wxUSE_LONGLONG" = "yes"; then | |
698dcdb6 | 18049 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18050 | #define wxUSE_LONGLONG 1 |
18051 | EOF | |
18052 | ||
18053 | fi | |
18054 | ||
e8f65ba6 | 18055 | if test "$wxUSE_GEOMETRY" = "yes"; then |
698dcdb6 | 18056 | cat >> confdefs.h <<\EOF |
e8f65ba6 RR |
18057 | #define wxUSE_GEOMETRY 1 |
18058 | EOF | |
18059 | ||
18060 | fi | |
18061 | ||
10f2d63a | 18062 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
698dcdb6 | 18063 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18064 | #define wxUSE_DIALUP_MANAGER 1 |
18065 | EOF | |
18066 | ||
70f7a477 | 18067 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" |
10f2d63a VZ |
18068 | fi |
18069 | ||
18070 | if test "$wxUSE_STREAMS" = "yes" ; then | |
698dcdb6 | 18071 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18072 | #define wxUSE_STREAMS 1 |
18073 | EOF | |
18074 | ||
18075 | fi | |
18076 | ||
1e487827 | 18077 | |
1e6feb95 | 18078 | if test "$wxUSE_DATETIME" = "yes"; then |
698dcdb6 | 18079 | for ac_func in strptime |
83307f33 | 18080 | do |
698dcdb6 | 18081 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
4222829b | 18082 | echo "configure:18083: checking for $ac_func" >&5 |
698dcdb6 VZ |
18083 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18084 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18085 | else | |
18086 | cat > conftest.$ac_ext <<EOF | |
4222829b | 18087 | #line 18088 "configure" |
83307f33 VZ |
18088 | #include "confdefs.h" |
18089 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 18090 | which can conflict with char $ac_func(); below. */ |
83307f33 VZ |
18091 | #include <assert.h> |
18092 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18093 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18094 | builtin and then its argument prototype would still apply. */ |
18095 | char $ac_func(); | |
18096 | ||
18097 | int main() { | |
83307f33 VZ |
18098 | |
18099 | /* The GNU C library defines this for functions which it implements | |
18100 | to always fail with ENOSYS. Some functions are actually named | |
18101 | something starting with __ and the normal name is an alias. */ | |
18102 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18103 | choke me | |
18104 | #else | |
698dcdb6 | 18105 | $ac_func(); |
83307f33 VZ |
18106 | #endif |
18107 | ||
698dcdb6 | 18108 | ; return 0; } |
83307f33 | 18109 | EOF |
4222829b | 18110 | if { (eval echo configure:18111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18111 | rm -rf conftest* |
18112 | eval "ac_cv_func_$ac_func=yes" | |
18113 | else | |
18114 | echo "configure: failed program was:" >&5 | |
18115 | cat conftest.$ac_ext >&5 | |
18116 | rm -rf conftest* | |
18117 | eval "ac_cv_func_$ac_func=no" | |
18118 | fi | |
18119 | rm -f conftest* | |
18120 | fi | |
83307f33 | 18121 | |
698dcdb6 VZ |
18122 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
18123 | echo "$ac_t""yes" 1>&6 | |
18124 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18125 | cat >> confdefs.h <<EOF | |
18126 | #define $ac_tr_func 1 | |
18127 | EOF | |
18128 | ||
18129 | else | |
18130 | echo "$ac_t""no" 1>&6 | |
83307f33 VZ |
18131 | fi |
18132 | done | |
18133 | ||
1e487827 | 18134 | |
698dcdb6 | 18135 | echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6 |
4222829b | 18136 | echo "configure:18137: checking for timezone variable in <time.h>" >&5 |
698dcdb6 VZ |
18137 | if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then |
18138 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18139 | else | |
18140 | ||
18141 | cat > conftest.$ac_ext <<EOF | |
4222829b | 18142 | #line 18143 "configure" |
360d6699 VZ |
18143 | #include "confdefs.h" |
18144 | ||
b4085ce6 | 18145 | #include <time.h> |
698dcdb6 VZ |
18146 | |
18147 | int main() { | |
360d6699 VZ |
18148 | |
18149 | int tz; | |
4f11a343 | 18150 | tz = timezone; |
698dcdb6 VZ |
18151 | |
18152 | ; return 0; } | |
18153 | EOF | |
4222829b | 18154 | if { (eval echo configure:18155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
18155 | rm -rf conftest* |
18156 | ||
4f11a343 | 18157 | wx_cv_var_timezone=timezone |
698dcdb6 | 18158 | |
360d6699 | 18159 | else |
698dcdb6 VZ |
18160 | echo "configure: failed program was:" >&5 |
18161 | cat conftest.$ac_ext >&5 | |
18162 | rm -rf conftest* | |
18163 | ||
18164 | cat > conftest.$ac_ext <<EOF | |
4222829b | 18165 | #line 18166 "configure" |
360d6699 VZ |
18166 | #include "confdefs.h" |
18167 | ||
b4085ce6 | 18168 | #include <time.h> |
698dcdb6 VZ |
18169 | |
18170 | int main() { | |
360d6699 VZ |
18171 | |
18172 | int tz; | |
18173 | tz = _timezone; | |
698dcdb6 VZ |
18174 | |
18175 | ; return 0; } | |
18176 | EOF | |
4222829b | 18177 | if { (eval echo configure:18178: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
18178 | rm -rf conftest* |
18179 | ||
360d6699 | 18180 | wx_cv_var_timezone=_timezone |
698dcdb6 | 18181 | |
5357c8e8 | 18182 | else |
698dcdb6 VZ |
18183 | echo "configure: failed program was:" >&5 |
18184 | cat conftest.$ac_ext >&5 | |
18185 | rm -rf conftest* | |
18186 | ||
18187 | cat > conftest.$ac_ext <<EOF | |
4222829b | 18188 | #line 18189 "configure" |
5357c8e8 VZ |
18189 | #include "confdefs.h" |
18190 | ||
b4085ce6 | 18191 | #include <time.h> |
698dcdb6 VZ |
18192 | |
18193 | int main() { | |
5357c8e8 VZ |
18194 | |
18195 | int tz; | |
4f11a343 | 18196 | tz = __timezone; |
698dcdb6 VZ |
18197 | |
18198 | ; return 0; } | |
18199 | EOF | |
4222829b | 18200 | if { (eval echo configure:18201: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
18201 | rm -rf conftest* |
18202 | ||
4f11a343 | 18203 | wx_cv_var_timezone=__timezone |
698dcdb6 | 18204 | |
360d6699 | 18205 | else |
698dcdb6 VZ |
18206 | echo "configure: failed program was:" >&5 |
18207 | cat conftest.$ac_ext >&5 | |
18208 | rm -rf conftest* | |
f9bc1684 VS |
18209 | |
18210 | if test "$USE_DOS" = 0 ; then | |
18211 | { echo "configure: error: no timezone variable" 1>&2; exit 1; } | |
18212 | fi | |
18213 | ||
698dcdb6 | 18214 | |
360d6699 | 18215 | fi |
698dcdb6 VZ |
18216 | rm -f conftest* |
18217 | ||
18218 | ||
360d6699 | 18219 | fi |
698dcdb6 VZ |
18220 | rm -f conftest* |
18221 | ||
18222 | ||
6232543b | 18223 | fi |
698dcdb6 VZ |
18224 | rm -f conftest* |
18225 | ||
18226 | ||
1e487827 | 18227 | fi |
703e0a69 | 18228 | |
698dcdb6 VZ |
18229 | echo "$ac_t""$wx_cv_var_timezone" 1>&6 |
18230 | ||
f9bc1684 | 18231 | if test "x$wx_cv_var_timezone" != x ; then |
698dcdb6 | 18232 | cat >> confdefs.h <<EOF |
360d6699 VZ |
18233 | #define WX_TIMEZONE $wx_cv_var_timezone |
18234 | EOF | |
18235 | ||
f9bc1684 | 18236 | fi |
698dcdb6 VZ |
18237 | |
18238 | for ac_func in localtime | |
afc31813 | 18239 | do |
698dcdb6 | 18240 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
4222829b | 18241 | echo "configure:18242: checking for $ac_func" >&5 |
698dcdb6 VZ |
18242 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18243 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18244 | else | |
18245 | cat > conftest.$ac_ext <<EOF | |
4222829b | 18246 | #line 18247 "configure" |
10f2d63a | 18247 | #include "confdefs.h" |
afc31813 | 18248 | /* System header to define __stub macros and hopefully few prototypes, |
698dcdb6 | 18249 | which can conflict with char $ac_func(); below. */ |
afc31813 VZ |
18250 | #include <assert.h> |
18251 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18252 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18253 | builtin and then its argument prototype would still apply. */ |
18254 | char $ac_func(); | |
18255 | ||
18256 | int main() { | |
afc31813 VZ |
18257 | |
18258 | /* The GNU C library defines this for functions which it implements | |
18259 | to always fail with ENOSYS. Some functions are actually named | |
18260 | something starting with __ and the normal name is an alias. */ | |
18261 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18262 | choke me | |
18263 | #else | |
698dcdb6 | 18264 | $ac_func(); |
afc31813 VZ |
18265 | #endif |
18266 | ||
698dcdb6 | 18267 | ; return 0; } |
10f2d63a | 18268 | EOF |
4222829b | 18269 | if { (eval echo configure:18270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18270 | rm -rf conftest* |
18271 | eval "ac_cv_func_$ac_func=yes" | |
18272 | else | |
18273 | echo "configure: failed program was:" >&5 | |
18274 | cat conftest.$ac_ext >&5 | |
18275 | rm -rf conftest* | |
18276 | eval "ac_cv_func_$ac_func=no" | |
18277 | fi | |
18278 | rm -f conftest* | |
18279 | fi | |
afc31813 | 18280 | |
698dcdb6 VZ |
18281 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
18282 | echo "$ac_t""yes" 1>&6 | |
18283 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18284 | cat >> confdefs.h <<EOF | |
18285 | #define $ac_tr_func 1 | |
18286 | EOF | |
18287 | ||
18288 | else | |
18289 | echo "$ac_t""no" 1>&6 | |
afc31813 VZ |
18290 | fi |
18291 | done | |
18292 | ||
1e487827 | 18293 | |
698dcdb6 VZ |
18294 | if test "$ac_cv_func_localtime" = "yes"; then |
18295 | echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 | |
4222829b | 18296 | echo "configure:18297: checking for tm_gmtoff in struct tm" >&5 |
698dcdb6 VZ |
18297 | if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then |
18298 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18299 | else | |
18300 | ||
18301 | cat > conftest.$ac_ext <<EOF | |
4222829b | 18302 | #line 18303 "configure" |
0470b1e6 VZ |
18303 | #include "confdefs.h" |
18304 | ||
b4085ce6 | 18305 | #include <time.h> |
698dcdb6 VZ |
18306 | |
18307 | int main() { | |
0470b1e6 VZ |
18308 | |
18309 | struct tm tm; | |
18310 | tm.tm_gmtoff++; | |
698dcdb6 VZ |
18311 | |
18312 | ; return 0; } | |
18313 | EOF | |
4222829b | 18314 | if { (eval echo configure:18315: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
18315 | rm -rf conftest* |
18316 | ||
f03a98d8 | 18317 | wx_cv_struct_tm_has_gmtoff=yes |
698dcdb6 | 18318 | |
0470b1e6 | 18319 | else |
698dcdb6 VZ |
18320 | echo "configure: failed program was:" >&5 |
18321 | cat conftest.$ac_ext >&5 | |
18322 | rm -rf conftest* | |
18323 | wx_cv_struct_tm_has_gmtoff=no | |
18324 | ||
0470b1e6 | 18325 | fi |
698dcdb6 VZ |
18326 | rm -f conftest* |
18327 | ||
1e487827 | 18328 | fi |
698dcdb6 VZ |
18329 | |
18330 | echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6 | |
6232543b VS |
18331 | fi |
18332 | ||
18333 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
698dcdb6 | 18334 | cat >> confdefs.h <<\EOF |
6232543b VS |
18335 | #define WX_GMTOFF_IN_TM 1 |
18336 | EOF | |
0470b1e6 | 18337 | |
3fcdd07b VZ |
18338 | fi |
18339 | ||
698dcdb6 | 18340 | for ac_func in gettimeofday ftime |
3fcdd07b | 18341 | do |
698dcdb6 | 18342 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
4222829b | 18343 | echo "configure:18344: checking for $ac_func" >&5 |
698dcdb6 VZ |
18344 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18345 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18346 | else | |
18347 | cat > conftest.$ac_ext <<EOF | |
4222829b | 18348 | #line 18349 "configure" |
3fcdd07b VZ |
18349 | #include "confdefs.h" |
18350 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 18351 | which can conflict with char $ac_func(); below. */ |
3fcdd07b VZ |
18352 | #include <assert.h> |
18353 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18354 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18355 | builtin and then its argument prototype would still apply. */ |
18356 | char $ac_func(); | |
18357 | ||
18358 | int main() { | |
3fcdd07b VZ |
18359 | |
18360 | /* The GNU C library defines this for functions which it implements | |
18361 | to always fail with ENOSYS. Some functions are actually named | |
18362 | something starting with __ and the normal name is an alias. */ | |
18363 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18364 | choke me | |
18365 | #else | |
698dcdb6 | 18366 | $ac_func(); |
3fcdd07b VZ |
18367 | #endif |
18368 | ||
698dcdb6 VZ |
18369 | ; return 0; } |
18370 | EOF | |
4222829b | 18371 | if { (eval echo configure:18372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18372 | rm -rf conftest* |
18373 | eval "ac_cv_func_$ac_func=yes" | |
18374 | else | |
18375 | echo "configure: failed program was:" >&5 | |
18376 | cat conftest.$ac_ext >&5 | |
18377 | rm -rf conftest* | |
18378 | eval "ac_cv_func_$ac_func=no" | |
18379 | fi | |
18380 | rm -f conftest* | |
18381 | fi | |
18382 | ||
18383 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18384 | echo "$ac_t""yes" 1>&6 | |
18385 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18386 | cat >> confdefs.h <<EOF | |
18387 | #define $ac_tr_func 1 | |
3fcdd07b VZ |
18388 | EOF |
18389 | break | |
698dcdb6 VZ |
18390 | else |
18391 | echo "$ac_t""no" 1>&6 | |
3fcdd07b VZ |
18392 | fi |
18393 | done | |
18394 | ||
afc31813 | 18395 | |
698dcdb6 VZ |
18396 | if test "$ac_cv_func_gettimeofday" = "yes"; then |
18397 | echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6 | |
4222829b | 18398 | echo "configure:18399: checking whether gettimeofday takes two arguments" >&5 |
698dcdb6 VZ |
18399 | if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then |
18400 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18401 | else | |
18402 | ||
18403 | ||
18404 | ac_ext=C | |
18405 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 18406 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
18407 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
18408 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
18409 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 18410 | |
698dcdb6 VZ |
18411 | |
18412 | cat > conftest.$ac_ext <<EOF | |
4222829b | 18413 | #line 18414 "configure" |
10f2d63a | 18414 | #include "confdefs.h" |
afc31813 VZ |
18415 | |
18416 | #include <sys/time.h> | |
18417 | #include <unistd.h> | |
698dcdb6 VZ |
18418 | |
18419 | int main() { | |
afc31813 VZ |
18420 | |
18421 | struct timeval tv; | |
776862b4 | 18422 | gettimeofday(&tv, NULL); |
698dcdb6 VZ |
18423 | |
18424 | ; return 0; } | |
18425 | EOF | |
4222829b | 18426 | if { (eval echo configure:18427: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 18427 | rm -rf conftest* |
afc31813 | 18428 | wx_cv_func_gettimeofday_has_2_args=yes |
10f2d63a | 18429 | else |
698dcdb6 VZ |
18430 | echo "configure: failed program was:" >&5 |
18431 | cat conftest.$ac_ext >&5 | |
18432 | rm -rf conftest* | |
18433 | cat > conftest.$ac_ext <<EOF | |
4222829b | 18434 | #line 18435 "configure" |
10f2d63a | 18435 | #include "confdefs.h" |
afc31813 VZ |
18436 | |
18437 | #include <sys/time.h> | |
18438 | #include <unistd.h> | |
698dcdb6 VZ |
18439 | |
18440 | int main() { | |
afc31813 VZ |
18441 | |
18442 | struct timeval tv; | |
18443 | gettimeofday(&tv); | |
698dcdb6 VZ |
18444 | |
18445 | ; return 0; } | |
18446 | EOF | |
4222829b | 18447 | if { (eval echo configure:18448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 18448 | rm -rf conftest* |
afc31813 | 18449 | wx_cv_func_gettimeofday_has_2_args=no |
10f2d63a | 18450 | else |
698dcdb6 VZ |
18451 | echo "configure: failed program was:" >&5 |
18452 | cat conftest.$ac_ext >&5 | |
18453 | rm -rf conftest* | |
776862b4 VZ |
18454 | |
18455 | echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2 | |
18456 | wx_cv_func_gettimeofday_has_2_args=unknown | |
18457 | ||
698dcdb6 | 18458 | |
10f2d63a | 18459 | fi |
698dcdb6 VZ |
18460 | rm -f conftest* |
18461 | ||
10f2d63a | 18462 | fi |
698dcdb6 | 18463 | rm -f conftest* |
afc31813 | 18464 | ac_ext=c |
698dcdb6 | 18465 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 18466 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
18467 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
18468 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
18469 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a | 18470 | |
698dcdb6 | 18471 | |
afc31813 | 18472 | fi |
698dcdb6 VZ |
18473 | |
18474 | echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6 | |
c63c7106 | 18475 | |
afc31813 | 18476 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then |
698dcdb6 | 18477 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
18478 | #define WX_GETTIMEOFDAY_NO_TZ 1 |
18479 | EOF | |
18480 | ||
18481 | fi | |
18482 | fi | |
18483 | ||
698dcdb6 | 18484 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
18485 | #define wxUSE_TIMEDATE 1 |
18486 | EOF | |
18487 | ||
18488 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
18489 | fi | |
18490 | ||
698dcdb6 | 18491 | |
b089607b VZ |
18492 | if test "$TOOLKIT" != "MSW"; then |
18493 | ||
3a922bb4 RL |
18494 | if test "$wxUSE_SOCKETS" = "yes"; then |
18495 | echo $ac_n "checking for socket""... $ac_c" 1>&6 | |
4222829b | 18496 | echo "configure:18497: checking for socket" >&5 |
698dcdb6 VZ |
18497 | if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
18498 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 18499 | else |
698dcdb6 | 18500 | cat > conftest.$ac_ext <<EOF |
4222829b | 18501 | #line 18502 "configure" |
c63c7106 VZ |
18502 | #include "confdefs.h" |
18503 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 18504 | which can conflict with char socket(); below. */ |
c63c7106 VZ |
18505 | #include <assert.h> |
18506 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18507 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18508 | builtin and then its argument prototype would still apply. */ |
18509 | char socket(); | |
18510 | ||
18511 | int main() { | |
c63c7106 VZ |
18512 | |
18513 | /* The GNU C library defines this for functions which it implements | |
18514 | to always fail with ENOSYS. Some functions are actually named | |
18515 | something starting with __ and the normal name is an alias. */ | |
18516 | #if defined (__stub_socket) || defined (__stub___socket) | |
18517 | choke me | |
18518 | #else | |
698dcdb6 | 18519 | socket(); |
c63c7106 VZ |
18520 | #endif |
18521 | ||
698dcdb6 VZ |
18522 | ; return 0; } |
18523 | EOF | |
4222829b | 18524 | if { (eval echo configure:18525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18525 | rm -rf conftest* |
18526 | eval "ac_cv_func_socket=yes" | |
18527 | else | |
18528 | echo "configure: failed program was:" >&5 | |
18529 | cat conftest.$ac_ext >&5 | |
18530 | rm -rf conftest* | |
18531 | eval "ac_cv_func_socket=no" | |
18532 | fi | |
18533 | rm -f conftest* | |
18534 | fi | |
18535 | ||
18536 | if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
18537 | echo "$ac_t""yes" 1>&6 | |
c63c7106 VZ |
18538 | : |
18539 | else | |
698dcdb6 VZ |
18540 | echo "$ac_t""no" 1>&6 |
18541 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | |
4222829b | 18542 | echo "configure:18543: checking for socket in -lsocket" >&5 |
698dcdb6 VZ |
18543 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
18544 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18545 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 18546 | else |
698dcdb6 | 18547 | ac_save_LIBS="$LIBS" |
c63c7106 | 18548 | LIBS="-lsocket $LIBS" |
698dcdb6 | 18549 | cat > conftest.$ac_ext <<EOF |
4222829b | 18550 | #line 18551 "configure" |
c63c7106 VZ |
18551 | #include "confdefs.h" |
18552 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18553 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18554 | builtin and then its argument prototype would still apply. */ |
18555 | char socket(); | |
18556 | ||
18557 | int main() { | |
18558 | socket() | |
18559 | ; return 0; } | |
18560 | EOF | |
4222829b | 18561 | if { (eval echo configure:18562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18562 | rm -rf conftest* |
18563 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18564 | else | |
18565 | echo "configure: failed program was:" >&5 | |
18566 | cat conftest.$ac_ext >&5 | |
18567 | rm -rf conftest* | |
18568 | eval "ac_cv_lib_$ac_lib_var=no" | |
18569 | fi | |
18570 | rm -f conftest* | |
18571 | LIBS="$ac_save_LIBS" | |
18572 | ||
18573 | fi | |
18574 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
18575 | echo "$ac_t""yes" 1>&6 | |
c63c7106 | 18576 | INET_LINK="$INET_LINK -lsocket" |
c63c7106 | 18577 | else |
698dcdb6 | 18578 | echo "$ac_t""no" 1>&6 |
afc31813 | 18579 | |
3a922bb4 RL |
18580 | echo "configure: warning: socket library not found - sockets will be disabled" 1>&2 |
18581 | wxUSE_SOCKETS=no | |
18582 | ||
698dcdb6 | 18583 | |
6232543b | 18584 | fi |
b089607b | 18585 | |
3a922bb4 | 18586 | |
1e487827 | 18587 | fi |
afc31813 | 18588 | |
3a922bb4 | 18589 | fi |
51a9faba | 18590 | |
3a922bb4 RL |
18591 | |
18592 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
18593 | echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6 | |
4222829b | 18594 | echo "configure:18595: checking what is the type of the third argument of getsockname" >&5 |
698dcdb6 VZ |
18595 | if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then |
18596 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18597 | else | |
18598 | ||
3a922bb4 RL |
18599 | |
18600 | ac_ext=C | |
698dcdb6 | 18601 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
1e487827 | 18602 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
18603 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
18604 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
18605 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 18606 | |
698dcdb6 | 18607 | |
3a922bb4 | 18608 | cat > conftest.$ac_ext <<EOF |
4222829b | 18609 | #line 18610 "configure" |
afc31813 | 18610 | #include "confdefs.h" |
51a9faba | 18611 | |
3a922bb4 RL |
18612 | #include <sys/types.h> |
18613 | #include <sys/socket.h> | |
18614 | ||
698dcdb6 | 18615 | int main() { |
51a9faba | 18616 | |
3a922bb4 RL |
18617 | socklen_t len; |
18618 | getsockname(0, 0, &len); | |
18619 | ||
698dcdb6 VZ |
18620 | ; return 0; } |
18621 | EOF | |
4222829b | 18622 | if { (eval echo configure:18623: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 18623 | rm -rf conftest* |
51a9faba | 18624 | wx_cv_type_getsockname3=socklen_t |
afc31813 | 18625 | else |
698dcdb6 VZ |
18626 | echo "configure: failed program was:" >&5 |
18627 | cat conftest.$ac_ext >&5 | |
18628 | rm -rf conftest* | |
18629 | cat > conftest.$ac_ext <<EOF | |
4222829b | 18630 | #line 18631 "configure" |
afc31813 | 18631 | #include "confdefs.h" |
51a9faba | 18632 | |
3a922bb4 RL |
18633 | #include <sys/types.h> |
18634 | #include <sys/socket.h> | |
18635 | ||
698dcdb6 | 18636 | int main() { |
51a9faba | 18637 | |
3a922bb4 RL |
18638 | size_t len; |
18639 | getsockname(0, 0, &len); | |
18640 | ||
698dcdb6 VZ |
18641 | ; return 0; } |
18642 | EOF | |
4222829b | 18643 | if { (eval echo configure:18644: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 18644 | rm -rf conftest* |
51a9faba | 18645 | wx_cv_type_getsockname3=size_t |
afc31813 | 18646 | else |
698dcdb6 VZ |
18647 | echo "configure: failed program was:" >&5 |
18648 | cat conftest.$ac_ext >&5 | |
18649 | rm -rf conftest* | |
18650 | cat > conftest.$ac_ext <<EOF | |
4222829b | 18651 | #line 18652 "configure" |
afc31813 | 18652 | #include "confdefs.h" |
51a9faba | 18653 | |
3a922bb4 RL |
18654 | #include <sys/types.h> |
18655 | #include <sys/socket.h> | |
18656 | ||
698dcdb6 | 18657 | int main() { |
51a9faba | 18658 | |
3a922bb4 RL |
18659 | int len; |
18660 | getsockname(0, 0, &len); | |
18661 | ||
698dcdb6 VZ |
18662 | ; return 0; } |
18663 | EOF | |
4222829b | 18664 | if { (eval echo configure:18665: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 18665 | rm -rf conftest* |
51a9faba | 18666 | wx_cv_type_getsockname3=int |
afc31813 | 18667 | else |
698dcdb6 VZ |
18668 | echo "configure: failed program was:" >&5 |
18669 | cat conftest.$ac_ext >&5 | |
18670 | rm -rf conftest* | |
18671 | wx_cv_type_getsockname3=unknown | |
3a922bb4 | 18672 | |
afc31813 | 18673 | fi |
698dcdb6 | 18674 | rm -f conftest* |
3a922bb4 | 18675 | |
afc31813 | 18676 | fi |
698dcdb6 | 18677 | rm -f conftest* |
3a922bb4 | 18678 | |
afc31813 | 18679 | fi |
698dcdb6 | 18680 | rm -f conftest* |
51a9faba | 18681 | |
3a922bb4 | 18682 | ac_ext=c |
698dcdb6 | 18683 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
afc31813 | 18684 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
18685 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
18686 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
18687 | cross_compiling=$ac_cv_prog_cc_cross | |
afc31813 | 18688 | |
3a922bb4 | 18689 | |
51a9faba | 18690 | fi |
698dcdb6 VZ |
18691 | |
18692 | echo "$ac_t""$wx_cv_type_getsockname3" 1>&6 | |
51a9faba | 18693 | |
3a922bb4 RL |
18694 | if test "$wx_cv_type_getsockname3" = "unknown"; then |
18695 | wxUSE_SOCKETS=no | |
18696 | echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2 | |
18697 | else | |
18698 | cat >> confdefs.h <<EOF | |
51a9faba VZ |
18699 | #define SOCKLEN_T $wx_cv_type_getsockname3 |
18700 | EOF | |
18701 | ||
3a922bb4 | 18702 | fi |
51a9faba VZ |
18703 | fi |
18704 | fi | |
afc31813 | 18705 | |
51a9faba | 18706 | if test "$wxUSE_SOCKETS" = "yes" ; then |
698dcdb6 | 18707 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
18708 | #define wxUSE_SOCKETS 1 |
18709 | EOF | |
18710 | ||
70f7a477 | 18711 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" |
afc31813 VZ |
18712 | fi |
18713 | ||
698dcdb6 | 18714 | |
dc3d889d VZ |
18715 | if test "$wxUSE_GUI" = "yes"; then |
18716 | ||
156b2523 GD |
18717 | if test "$TOOLKIT" = "MAC"; then |
18718 | echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2 | |
18719 | wxUSE_JOYSTICK=no | |
18720 | fi | |
18721 | if test "$TOOLKIT" = "MOTIF"; then | |
18722 | echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2 | |
18723 | wxUSE_JOYSTICK=no | |
f79bd02d JS |
18724 | fi |
18725 | if test "$TOOLKIT" = "X11"; then | |
18726 | echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2 | |
18727 | wxUSE_JOYSTICK=no | |
156b2523 GD |
18728 | fi |
18729 | ||
3a922bb4 RL |
18730 | if test "$TOOLKIT" != "MSW"; then |
18731 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
18732 | for ac_hdr in linux/joystick.h | |
10f2d63a | 18733 | do |
698dcdb6 VZ |
18734 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
18735 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
4222829b | 18736 | echo "configure:18737: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
18737 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
18738 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18739 | else | |
18740 | cat > conftest.$ac_ext <<EOF | |
4222829b | 18741 | #line 18742 "configure" |
10f2d63a | 18742 | #include "confdefs.h" |
698dcdb6 VZ |
18743 | #include <$ac_hdr> |
18744 | EOF | |
18745 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4222829b | 18746 | { (eval echo configure:18747: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
18747 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
18748 | if test -z "$ac_err"; then | |
18749 | rm -rf conftest* | |
18750 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 18751 | else |
698dcdb6 VZ |
18752 | echo "$ac_err" >&5 |
18753 | echo "configure: failed program was:" >&5 | |
10f2d63a | 18754 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
18755 | rm -rf conftest* |
18756 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 18757 | fi |
698dcdb6 | 18758 | rm -f conftest* |
10f2d63a | 18759 | fi |
698dcdb6 VZ |
18760 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
18761 | echo "$ac_t""yes" 1>&6 | |
18762 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
18763 | cat >> confdefs.h <<EOF | |
18764 | #define $ac_tr_hdr 1 | |
10f2d63a | 18765 | EOF |
698dcdb6 VZ |
18766 | |
18767 | else | |
18768 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
18769 | fi |
18770 | done | |
18771 | ||
3a922bb4 RL |
18772 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then |
18773 | wxUSE_JOYSTICK=no | |
156b2523 | 18774 | echo "configure: warning: Joystick not supported by this system... disabled" 1>&2 |
3a922bb4 RL |
18775 | fi |
18776 | fi | |
18777 | fi | |
b089607b | 18778 | |
3a922bb4 RL |
18779 | if test "$wxUSE_JOYSTICK" = "yes"; then |
18780 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
18781 | #define wxUSE_JOYSTICK 1 |
18782 | EOF | |
18783 | ||
3a922bb4 RL |
18784 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
18785 | fi | |
dc3d889d VZ |
18786 | fi |
18787 | ||
698dcdb6 | 18788 | |
b089607b VZ |
18789 | if test "$TOOLKIT" != "MSW"; then |
18790 | ||
3a922bb4 RL |
18791 | HAVE_DL_FUNCS=0 |
18792 | HAVE_SHL_FUNCS=0 | |
0b9ab0bd | 18793 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then |
3a922bb4 RL |
18794 | if test "$USE_DARWIN" = 1; then |
18795 | HAVE_DL_FUNCS=1 | |
18796 | else | |
18797 | for ac_func in dlopen | |
10f2d63a | 18798 | do |
698dcdb6 | 18799 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
4222829b | 18800 | echo "configure:18801: checking for $ac_func" >&5 |
698dcdb6 VZ |
18801 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18802 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18803 | else | |
18804 | cat > conftest.$ac_ext <<EOF | |
4222829b | 18805 | #line 18806 "configure" |
10f2d63a VZ |
18806 | #include "confdefs.h" |
18807 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 18808 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
18809 | #include <assert.h> |
18810 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18811 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18812 | builtin and then its argument prototype would still apply. */ |
18813 | char $ac_func(); | |
18814 | ||
18815 | int main() { | |
10f2d63a VZ |
18816 | |
18817 | /* The GNU C library defines this for functions which it implements | |
18818 | to always fail with ENOSYS. Some functions are actually named | |
18819 | something starting with __ and the normal name is an alias. */ | |
18820 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18821 | choke me | |
18822 | #else | |
698dcdb6 | 18823 | $ac_func(); |
10f2d63a VZ |
18824 | #endif |
18825 | ||
698dcdb6 VZ |
18826 | ; return 0; } |
18827 | EOF | |
4222829b | 18828 | if { (eval echo configure:18829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18829 | rm -rf conftest* |
18830 | eval "ac_cv_func_$ac_func=yes" | |
18831 | else | |
18832 | echo "configure: failed program was:" >&5 | |
18833 | cat conftest.$ac_ext >&5 | |
18834 | rm -rf conftest* | |
18835 | eval "ac_cv_func_$ac_func=no" | |
18836 | fi | |
18837 | rm -f conftest* | |
18838 | fi | |
18839 | ||
18840 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18841 | echo "$ac_t""yes" 1>&6 | |
18842 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18843 | cat >> confdefs.h <<EOF | |
18844 | #define $ac_tr_func 1 | |
18845 | EOF | |
18846 | ||
3a922bb4 | 18847 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18848 | #define HAVE_DLOPEN 1 |
18849 | EOF | |
18850 | ||
3a922bb4 RL |
18851 | HAVE_DL_FUNCS=1 |
18852 | ||
10f2d63a | 18853 | else |
698dcdb6 VZ |
18854 | echo "$ac_t""no" 1>&6 |
18855 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
4222829b | 18856 | echo "configure:18857: checking for dlopen in -ldl" >&5 |
698dcdb6 VZ |
18857 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
18858 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18859 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 18860 | else |
698dcdb6 | 18861 | ac_save_LIBS="$LIBS" |
10f2d63a | 18862 | LIBS="-ldl $LIBS" |
698dcdb6 | 18863 | cat > conftest.$ac_ext <<EOF |
4222829b | 18864 | #line 18865 "configure" |
10f2d63a VZ |
18865 | #include "confdefs.h" |
18866 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18867 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18868 | builtin and then its argument prototype would still apply. */ |
18869 | char dlopen(); | |
18870 | ||
18871 | int main() { | |
18872 | dlopen() | |
18873 | ; return 0; } | |
18874 | EOF | |
4222829b | 18875 | if { (eval echo configure:18876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18876 | rm -rf conftest* |
18877 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18878 | else | |
18879 | echo "configure: failed program was:" >&5 | |
18880 | cat conftest.$ac_ext >&5 | |
18881 | rm -rf conftest* | |
18882 | eval "ac_cv_lib_$ac_lib_var=no" | |
18883 | fi | |
18884 | rm -f conftest* | |
18885 | LIBS="$ac_save_LIBS" | |
18886 | ||
18887 | fi | |
18888 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
18889 | echo "$ac_t""yes" 1>&6 | |
18890 | ||
3a922bb4 | 18891 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18892 | #define HAVE_DLOPEN 1 |
18893 | EOF | |
18894 | ||
3a922bb4 | 18895 | HAVE_DL_FUNCS=1 |
3d63bc3a | 18896 | DL_LINK=" -ldl$DL_LINK" |
3a922bb4 | 18897 | |
10f2d63a | 18898 | else |
698dcdb6 | 18899 | echo "$ac_t""no" 1>&6 |
10f2d63a | 18900 | |
3a922bb4 | 18901 | for ac_func in shl_load |
10f2d63a | 18902 | do |
698dcdb6 | 18903 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
4222829b | 18904 | echo "configure:18905: checking for $ac_func" >&5 |
698dcdb6 VZ |
18905 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18906 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18907 | else | |
18908 | cat > conftest.$ac_ext <<EOF | |
4222829b | 18909 | #line 18910 "configure" |
10f2d63a VZ |
18910 | #include "confdefs.h" |
18911 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 18912 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
18913 | #include <assert.h> |
18914 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18915 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18916 | builtin and then its argument prototype would still apply. */ |
18917 | char $ac_func(); | |
18918 | ||
18919 | int main() { | |
10f2d63a VZ |
18920 | |
18921 | /* The GNU C library defines this for functions which it implements | |
18922 | to always fail with ENOSYS. Some functions are actually named | |
18923 | something starting with __ and the normal name is an alias. */ | |
18924 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18925 | choke me | |
18926 | #else | |
698dcdb6 | 18927 | $ac_func(); |
10f2d63a VZ |
18928 | #endif |
18929 | ||
698dcdb6 VZ |
18930 | ; return 0; } |
18931 | EOF | |
4222829b | 18932 | if { (eval echo configure:18933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18933 | rm -rf conftest* |
18934 | eval "ac_cv_func_$ac_func=yes" | |
18935 | else | |
18936 | echo "configure: failed program was:" >&5 | |
18937 | cat conftest.$ac_ext >&5 | |
18938 | rm -rf conftest* | |
18939 | eval "ac_cv_func_$ac_func=no" | |
18940 | fi | |
18941 | rm -f conftest* | |
18942 | fi | |
18943 | ||
18944 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18945 | echo "$ac_t""yes" 1>&6 | |
18946 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18947 | cat >> confdefs.h <<EOF | |
18948 | #define $ac_tr_func 1 | |
18949 | EOF | |
18950 | ||
3a922bb4 | 18951 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18952 | #define HAVE_SHL_LOAD 1 |
18953 | EOF | |
18954 | ||
3a922bb4 RL |
18955 | HAVE_SHL_FUNCS=1 |
18956 | ||
10f2d63a | 18957 | else |
698dcdb6 VZ |
18958 | echo "$ac_t""no" 1>&6 |
18959 | echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6 | |
4222829b | 18960 | echo "configure:18961: checking for dld in -lshl_load" >&5 |
698dcdb6 VZ |
18961 | ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'` |
18962 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18963 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 18964 | else |
698dcdb6 | 18965 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 18966 | LIBS="-lshl_load $LIBS" |
698dcdb6 | 18967 | cat > conftest.$ac_ext <<EOF |
4222829b | 18968 | #line 18969 "configure" |
f6bcfd97 BP |
18969 | #include "confdefs.h" |
18970 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18971 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18972 | builtin and then its argument prototype would still apply. */ |
18973 | char dld(); | |
18974 | ||
18975 | int main() { | |
18976 | dld() | |
18977 | ; return 0; } | |
18978 | EOF | |
4222829b | 18979 | if { (eval echo configure:18980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18980 | rm -rf conftest* |
18981 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18982 | else | |
18983 | echo "configure: failed program was:" >&5 | |
18984 | cat conftest.$ac_ext >&5 | |
18985 | rm -rf conftest* | |
18986 | eval "ac_cv_lib_$ac_lib_var=no" | |
18987 | fi | |
18988 | rm -f conftest* | |
18989 | LIBS="$ac_save_LIBS" | |
f6bcfd97 | 18990 | |
698dcdb6 VZ |
18991 | fi |
18992 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
18993 | echo "$ac_t""yes" 1>&6 | |
18994 | ||
3a922bb4 | 18995 | HAVE_SHL_FUNCS=1 |
3d63bc3a | 18996 | DL_LINK=" -ldld$DL_LINK" |
3a922bb4 | 18997 | |
698dcdb6 VZ |
18998 | else |
18999 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
19000 | fi |
19001 | ||
3a922bb4 | 19002 | |
10f2d63a VZ |
19003 | fi |
19004 | done | |
19005 | ||
3a922bb4 | 19006 | |
10f2d63a VZ |
19007 | fi |
19008 | ||
3a922bb4 | 19009 | |
10f2d63a VZ |
19010 | fi |
19011 | done | |
19012 | ||
1e487827 | 19013 | |
3a922bb4 RL |
19014 | if test "$HAVE_DL_FUNCS" = 1; then |
19015 | for ac_func in dlerror | |
f6bcfd97 | 19016 | do |
698dcdb6 | 19017 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
4222829b | 19018 | echo "configure:19019: checking for $ac_func" >&5 |
698dcdb6 VZ |
19019 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
19020 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19021 | else | |
19022 | cat > conftest.$ac_ext <<EOF | |
4222829b | 19023 | #line 19024 "configure" |
f6bcfd97 BP |
19024 | #include "confdefs.h" |
19025 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 19026 | which can conflict with char $ac_func(); below. */ |
f6bcfd97 BP |
19027 | #include <assert.h> |
19028 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19029 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
19030 | builtin and then its argument prototype would still apply. */ |
19031 | char $ac_func(); | |
19032 | ||
19033 | int main() { | |
f6bcfd97 BP |
19034 | |
19035 | /* The GNU C library defines this for functions which it implements | |
19036 | to always fail with ENOSYS. Some functions are actually named | |
19037 | something starting with __ and the normal name is an alias. */ | |
19038 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19039 | choke me | |
19040 | #else | |
698dcdb6 | 19041 | $ac_func(); |
f6bcfd97 BP |
19042 | #endif |
19043 | ||
698dcdb6 VZ |
19044 | ; return 0; } |
19045 | EOF | |
4222829b | 19046 | if { (eval echo configure:19047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
19047 | rm -rf conftest* |
19048 | eval "ac_cv_func_$ac_func=yes" | |
19049 | else | |
19050 | echo "configure: failed program was:" >&5 | |
19051 | cat conftest.$ac_ext >&5 | |
19052 | rm -rf conftest* | |
19053 | eval "ac_cv_func_$ac_func=no" | |
19054 | fi | |
19055 | rm -f conftest* | |
19056 | fi | |
19057 | ||
19058 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
19059 | echo "$ac_t""yes" 1>&6 | |
19060 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
19061 | cat >> confdefs.h <<EOF | |
19062 | #define $ac_tr_func 1 | |
19063 | EOF | |
19064 | cat >> confdefs.h <<\EOF | |
f6bcfd97 BP |
19065 | #define HAVE_DLERROR 1 |
19066 | EOF | |
19067 | ||
19068 | else | |
698dcdb6 VZ |
19069 | echo "$ac_t""no" 1>&6 |
19070 | echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6 | |
4222829b | 19071 | echo "configure:19072: checking for dlerror in -ldl" >&5 |
698dcdb6 VZ |
19072 | ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'` |
19073 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19074 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 19075 | else |
698dcdb6 | 19076 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 19077 | LIBS="-ldl $LIBS" |
698dcdb6 | 19078 | cat > conftest.$ac_ext <<EOF |
4222829b | 19079 | #line 19080 "configure" |
f6bcfd97 BP |
19080 | #include "confdefs.h" |
19081 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19082 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
19083 | builtin and then its argument prototype would still apply. */ |
19084 | char dlerror(); | |
19085 | ||
19086 | int main() { | |
19087 | dlerror() | |
19088 | ; return 0; } | |
19089 | EOF | |
4222829b | 19090 | if { (eval echo configure:19091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
19091 | rm -rf conftest* |
19092 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19093 | else | |
19094 | echo "configure: failed program was:" >&5 | |
19095 | cat conftest.$ac_ext >&5 | |
19096 | rm -rf conftest* | |
19097 | eval "ac_cv_lib_$ac_lib_var=no" | |
19098 | fi | |
19099 | rm -f conftest* | |
19100 | LIBS="$ac_save_LIBS" | |
19101 | ||
19102 | fi | |
19103 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19104 | echo "$ac_t""yes" 1>&6 | |
19105 | cat >> confdefs.h <<\EOF | |
f6bcfd97 BP |
19106 | #define HAVE_DLERROR 1 |
19107 | EOF | |
19108 | ||
698dcdb6 VZ |
19109 | else |
19110 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
19111 | fi |
19112 | ||
19113 | fi | |
19114 | done | |
19115 | ||
3a922bb4 RL |
19116 | fi |
19117 | fi | |
f6bcfd97 | 19118 | |
3a922bb4 RL |
19119 | if test "$HAVE_DL_FUNCS" = 0; then |
19120 | if test "$HAVE_SHL_FUNCS" = 0; then | |
19121 | if test "$USE_UNIX" = 1; then | |
19122 | echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2 | |
0b9ab0bd | 19123 | wxUSE_DYNAMIC_LOADER=no |
3a922bb4 RL |
19124 | wxUSE_DYNLIB_CLASS=no |
19125 | else | |
19126 | echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2 | |
19127 | fi | |
19128 | fi | |
10f2d63a VZ |
19129 | fi |
19130 | fi | |
19131 | fi | |
19132 | ||
0b9ab0bd RL |
19133 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then |
19134 | cat >> confdefs.h <<\EOF | |
19135 | #define wxUSE_DYNAMIC_LOADER 1 | |
19136 | EOF | |
19137 | ||
19138 | elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
698dcdb6 | 19139 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19140 | #define wxUSE_DYNLIB_CLASS 1 |
19141 | EOF | |
19142 | ||
19143 | fi | |
19144 | ||
698dcdb6 | 19145 | |
1e6feb95 VZ |
19146 | if test "$wxUSE_FONTMAP" = "yes" ; then |
19147 | cat >> confdefs.h <<\EOF | |
19148 | #define wxUSE_FONTMAP 1 | |
19149 | EOF | |
19150 | ||
19151 | fi | |
19152 | ||
10f2d63a | 19153 | if test "$wxUSE_UNICODE" = "yes" ; then |
698dcdb6 | 19154 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19155 | #define wxUSE_UNICODE 1 |
19156 | EOF | |
19157 | ||
a72a4bfa VS |
19158 | |
19159 | if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
19160 | echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6 | |
4222829b | 19161 | echo "configure:19162: checking for main in -lunicows" >&5 |
a72a4bfa VS |
19162 | ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'` |
19163 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19164 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19165 | else | |
19166 | ac_save_LIBS="$LIBS" | |
19167 | LIBS="-lunicows $LIBS" | |
19168 | cat > conftest.$ac_ext <<EOF | |
4222829b | 19169 | #line 19170 "configure" |
a72a4bfa VS |
19170 | #include "confdefs.h" |
19171 | ||
19172 | int main() { | |
19173 | main() | |
19174 | ; return 0; } | |
19175 | EOF | |
4222829b | 19176 | if { (eval echo configure:19177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a72a4bfa VS |
19177 | rm -rf conftest* |
19178 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19179 | else | |
19180 | echo "configure: failed program was:" >&5 | |
19181 | cat conftest.$ac_ext >&5 | |
19182 | rm -rf conftest* | |
19183 | eval "ac_cv_lib_$ac_lib_var=no" | |
19184 | fi | |
19185 | rm -f conftest* | |
19186 | LIBS="$ac_save_LIBS" | |
19187 | ||
19188 | fi | |
19189 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19190 | echo "$ac_t""yes" 1>&6 | |
19191 | ||
19192 | cat >> confdefs.h <<\EOF | |
19193 | #define wxUSE_UNICODE_MSLU 1 | |
19194 | EOF | |
19195 | ||
19196 | ||
19197 | else | |
19198 | echo "$ac_t""no" 1>&6 | |
19199 | ||
19200 | echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled. | |
19201 | Applications will only run on Windows NT/2000/XP!" 1>&2 | |
19202 | wxUSE_UNICODE_MSLU=no | |
19203 | ||
19204 | fi | |
19205 | ||
19206 | fi | |
10f2d63a VZ |
19207 | fi |
19208 | ||
10f2d63a | 19209 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then |
698dcdb6 | 19210 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19211 | #define wxUSE_EXPERIMENTAL_PRINTF 1 |
19212 | EOF | |
19213 | ||
19214 | fi | |
19215 | ||
698dcdb6 | 19216 | |
698dcdb6 | 19217 | |
10f2d63a VZ |
19218 | IODBC_C_SRC="" |
19219 | if test "$wxUSE_ODBC" = "yes" ; then | |
698dcdb6 | 19220 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19221 | #define wxUSE_ODBC 1 |
19222 | EOF | |
19223 | ||
19224 | WXODBCFLAG="-D_IODBC_" | |
19225 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
10f2d63a VZ |
19226 | fi |
19227 | ||
698dcdb6 | 19228 | |
10f2d63a | 19229 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then |
698dcdb6 | 19230 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19231 | #define wxUSE_POSTSCRIPT 1 |
19232 | EOF | |
19233 | ||
19234 | fi | |
19235 | ||
698dcdb6 | 19236 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19237 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 |
19238 | EOF | |
19239 | ||
698dcdb6 VZ |
19240 | |
19241 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
19242 | #define wxUSE_NORMALIZED_PS_FONTS 1 |
19243 | EOF | |
19244 | ||
698dcdb6 VZ |
19245 | |
19246 | ||
10f2d63a | 19247 | if test "$wxUSE_CONSTRAINTS" = "yes"; then |
698dcdb6 | 19248 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19249 | #define wxUSE_CONSTRAINTS 1 |
19250 | EOF | |
19251 | ||
19252 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
19253 | fi | |
19254 | ||
19255 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
fc26f4ab | 19256 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
156b2523 | 19257 | echo "configure: warning: MDI not yet supported for wxUNIVERSAL... disabled" 1>&2 |
fc26f4ab RL |
19258 | wxUSE_MDI_ARCHITECTURE=no |
19259 | fi | |
19260 | ||
19261 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
19262 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
19263 | #define wxUSE_MDI_ARCHITECTURE 1 |
19264 | EOF | |
19265 | ||
fc26f4ab RL |
19266 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
19267 | fi | |
10f2d63a VZ |
19268 | fi |
19269 | ||
19270 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
698dcdb6 | 19271 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19272 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 |
19273 | EOF | |
19274 | ||
19275 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
19276 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
19277 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
19278 | fi | |
19279 | fi | |
19280 | ||
19281 | if test "$wxUSE_HELP" = "yes"; then | |
698dcdb6 | 19282 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19283 | #define wxUSE_HELP 1 |
19284 | EOF | |
19285 | ||
19286 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
3379ed37 | 19287 | |
77e13408 | 19288 | if test "$wxUSE_MSW" = 1; then |
031d8228 | 19289 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then |
29fd3c0c VS |
19290 | ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'` |
19291 | echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6 | |
4222829b | 19292 | echo "configure:19293: checking for htmlhelp.h" >&5 |
29fd3c0c VS |
19293 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
19294 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19295 | else | |
19296 | cat > conftest.$ac_ext <<EOF | |
4222829b | 19297 | #line 19298 "configure" |
29fd3c0c VS |
19298 | #include "confdefs.h" |
19299 | #include <htmlhelp.h> | |
19300 | EOF | |
19301 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4222829b | 19302 | { (eval echo configure:19303: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
29fd3c0c VS |
19303 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
19304 | if test -z "$ac_err"; then | |
19305 | rm -rf conftest* | |
19306 | eval "ac_cv_header_$ac_safe=yes" | |
19307 | else | |
19308 | echo "$ac_err" >&5 | |
19309 | echo "configure: failed program was:" >&5 | |
19310 | cat conftest.$ac_ext >&5 | |
19311 | rm -rf conftest* | |
19312 | eval "ac_cv_header_$ac_safe=no" | |
19313 | fi | |
19314 | rm -f conftest* | |
19315 | fi | |
19316 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
19317 | echo "$ac_t""yes" 1>&6 | |
19318 | ||
19319 | cat >> confdefs.h <<\EOF | |
19320 | #define wxUSE_MS_HTML_HELP 1 | |
19321 | EOF | |
19322 | ||
19323 | ||
19324 | else | |
19325 | echo "$ac_t""no" 1>&6 | |
19326 | ||
fc26f4ab | 19327 | echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h... disabled" 1>&2 |
29fd3c0c VS |
19328 | wxUSE_MS_HTML_HELP=no |
19329 | ||
19330 | fi | |
19331 | ||
3e44f09d | 19332 | fi |
3379ed37 | 19333 | fi |
031d8228 VS |
19334 | |
19335 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
19336 | if test "$wxUSE_HTML" = "yes"; then | |
19337 | cat >> confdefs.h <<\EOF | |
19338 | #define wxUSE_WXHTML_HELP 1 | |
19339 | EOF | |
19340 | ||
19341 | else | |
19342 | echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2 | |
19343 | wxUSE_WXHTML_HELP=no | |
19344 | fi | |
19345 | fi | |
10f2d63a VZ |
19346 | fi |
19347 | ||
19348 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
19349 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
698dcdb6 | 19350 | echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2 |
10f2d63a | 19351 | else |
698dcdb6 | 19352 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19353 | #define wxUSE_PRINTING_ARCHITECTURE 1 |
19354 | EOF | |
19355 | ||
19356 | fi | |
19357 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
19358 | fi | |
19359 | ||
19360 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
698dcdb6 | 19361 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19362 | #define wxUSE_PROLOGIO 1 |
19363 | EOF | |
19364 | ||
19365 | fi | |
19366 | ||
19367 | if test "$wxUSE_RESOURCES" = "yes" ; then | |
3379ed37 | 19368 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19369 | #define wxUSE_RESOURCES 1 |
19370 | EOF | |
19371 | ||
3379ed37 | 19372 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource" |
10f2d63a VZ |
19373 | fi |
19374 | ||
19375 | if test "$wxUSE_X_RESOURCES" = "yes"; then | |
698dcdb6 | 19376 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19377 | #define wxUSE_X_RESOURCES 1 |
19378 | EOF | |
19379 | ||
19380 | fi | |
19381 | ||
698dcdb6 | 19382 | |
77e13408 RL |
19383 | if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ |
19384 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
19385 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
2b9bdf71 | 19386 | for ac_hdr in ole2.h |
10f2d63a | 19387 | do |
698dcdb6 VZ |
19388 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
19389 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
4222829b | 19390 | echo "configure:19391: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
19391 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
19392 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19393 | else | |
19394 | cat > conftest.$ac_ext <<EOF | |
4222829b | 19395 | #line 19396 "configure" |
10f2d63a | 19396 | #include "confdefs.h" |
698dcdb6 VZ |
19397 | #include <$ac_hdr> |
19398 | EOF | |
19399 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4222829b | 19400 | { (eval echo configure:19401: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
19401 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
19402 | if test -z "$ac_err"; then | |
19403 | rm -rf conftest* | |
19404 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 19405 | else |
698dcdb6 VZ |
19406 | echo "$ac_err" >&5 |
19407 | echo "configure: failed program was:" >&5 | |
10f2d63a | 19408 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
19409 | rm -rf conftest* |
19410 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 19411 | fi |
698dcdb6 | 19412 | rm -f conftest* |
10f2d63a | 19413 | fi |
698dcdb6 VZ |
19414 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
19415 | echo "$ac_t""yes" 1>&6 | |
19416 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
19417 | cat >> confdefs.h <<EOF | |
19418 | #define $ac_tr_hdr 1 | |
10f2d63a | 19419 | EOF |
698dcdb6 VZ |
19420 | |
19421 | else | |
19422 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
19423 | fi |
19424 | done | |
19425 | ||
698dcdb6 | 19426 | |
2b9bdf71 VZ |
19427 | if test "$ac_cv_header_ole2_h" = "yes" ; then |
19428 | if test "$GCC" = yes ; then | |
19429 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" | |
2b9bdf71 | 19430 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" |
3d63bc3a | 19431 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
2b9bdf71 | 19432 | cat >> confdefs.h <<\EOF |
4f11a343 VS |
19433 | #define wxUSE_OLE 1 |
19434 | EOF | |
19435 | ||
b64f0a5f | 19436 | |
2b9bdf71 VZ |
19437 | fi |
19438 | ||
19439 | cat >> confdefs.h <<\EOF | |
19440 | #define wxUSE_DATAOBJ 1 | |
19441 | EOF | |
19442 | ||
19443 | else | |
19444 | echo "configure: warning: Some features disabled because OLE headers not found" 1>&2 | |
19445 | ||
19446 | wxUSE_CLIPBOARD=no | |
19447 | wxUSE_DRAG_AND_DROP=no | |
19448 | wxUSE_DATAOBJ=no | |
19449 | fi | |
19450 | ||
77e13408 | 19451 | if test "$wxUSE_METAFILE" = "yes"; then |
2b9bdf71 | 19452 | cat >> confdefs.h <<\EOF |
b64f0a5f RL |
19453 | #define wxUSE_METAFILE 1 |
19454 | EOF | |
19455 | ||
2b9bdf71 VZ |
19456 | |
19457 | cat >> confdefs.h <<\EOF | |
b64f0a5f RL |
19458 | #define wxUSE_ENH_METAFILE 1 |
19459 | EOF | |
19460 | ||
2b9bdf71 VZ |
19461 | fi |
19462 | fi | |
19463 | ||
19464 | if test "$wxUSE_IPC" = "yes"; then | |
19465 | if test "$wxUSE_SOCKETS" != "yes"; then | |
156b2523 | 19466 | echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2 |
2b9bdf71 VZ |
19467 | fi |
19468 | ||
19469 | cat >> confdefs.h <<\EOF | |
19470 | #define wxUSE_IPC 1 | |
19471 | EOF | |
19472 | ||
19473 | fi | |
19474 | ||
19475 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
178572bb RR |
19476 | if test "$wxUSE_X11" = 1; then |
19477 | echo "configure: warning: Clipboard not yet supported under X11... disabled" 1>&2 | |
19478 | wxUSE_CLIPBOARD=no | |
19479 | fi | |
19480 | ||
19481 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
19482 | cat >> confdefs.h <<\EOF | |
2b9bdf71 VZ |
19483 | #define wxUSE_CLIPBOARD 1 |
19484 | EOF | |
19485 | ||
673f4220 | 19486 | |
178572bb | 19487 | cat >> confdefs.h <<\EOF |
673f4220 VZ |
19488 | #define wxUSE_DATAOBJ 1 |
19489 | EOF | |
19490 | ||
178572bb | 19491 | fi |
2b9bdf71 VZ |
19492 | fi |
19493 | ||
19494 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
19495 | if test "$wxUSE_GTK" = 1; then | |
19496 | if test "$WXGTK12" != 1; then | |
156b2523 | 19497 | echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2 |
10f2d63a VZ |
19498 | wxUSE_DRAG_AND_DROP=no |
19499 | fi | |
19500 | fi | |
19501 | ||
2b9bdf71 | 19502 | if test "$wxUSE_MOTIF" = 1; then |
156b2523 | 19503 | echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2 |
2b9bdf71 VZ |
19504 | wxUSE_DRAG_AND_DROP=no |
19505 | fi | |
19506 | ||
f79bd02d JS |
19507 | if test "$wxUSE_X11" = 1; then |
19508 | echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2 | |
19509 | wxUSE_DRAG_AND_DROP=no | |
19510 | fi | |
19511 | ||
10f2d63a | 19512 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then |
698dcdb6 | 19513 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19514 | #define wxUSE_DRAG_AND_DROP 1 |
19515 | EOF | |
19516 | ||
19517 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
19518 | fi | |
19519 | ||
19520 | fi | |
19521 | ||
19522 | if test "$wxUSE_SPLINES" = "yes" ; then | |
698dcdb6 | 19523 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19524 | #define wxUSE_SPLINES 1 |
19525 | EOF | |
19526 | ||
19527 | fi | |
19528 | ||
698dcdb6 | 19529 | |
1e6feb95 VZ |
19530 | USES_CONTROLS=0 |
19531 | if test "$wxUSE_CONTROLS" = "yes"; then | |
19532 | USES_CONTROLS=1 | |
19533 | fi | |
19534 | ||
10f2d63a | 19535 | if test "$wxUSE_ACCEL" = "yes"; then |
698dcdb6 | 19536 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19537 | #define wxUSE_ACCEL 1 |
19538 | EOF | |
19539 | ||
1e6feb95 VZ |
19540 | USES_CONTROLS=1 |
19541 | fi | |
19542 | ||
19543 | if test "$wxUSE_BUTTON" = "yes"; then | |
19544 | cat >> confdefs.h <<\EOF | |
19545 | #define wxUSE_BUTTON 1 | |
19546 | EOF | |
19547 | ||
19548 | USES_CONTROLS=1 | |
19549 | fi | |
19550 | ||
19551 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
19552 | cat >> confdefs.h <<\EOF | |
19553 | #define wxUSE_BMPBUTTON 1 | |
19554 | EOF | |
19555 | ||
19556 | USES_CONTROLS=1 | |
19557 | fi | |
19558 | ||
19559 | if test "$wxUSE_CALCTRL" = "yes"; then | |
19560 | cat >> confdefs.h <<\EOF | |
19561 | #define wxUSE_CALENDARCTRL 1 | |
19562 | EOF | |
19563 | ||
19564 | USES_CONTROLS=1 | |
19565 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
10f2d63a VZ |
19566 | fi |
19567 | ||
19568 | if test "$wxUSE_CARET" = "yes"; then | |
698dcdb6 | 19569 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19570 | #define wxUSE_CARET 1 |
19571 | EOF | |
19572 | ||
1e6feb95 | 19573 | USES_CONTROLS=1 |
10f2d63a VZ |
19574 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" |
19575 | fi | |
19576 | ||
19577 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
698dcdb6 | 19578 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19579 | #define wxUSE_COMBOBOX 1 |
19580 | EOF | |
19581 | ||
1e6feb95 | 19582 | USES_CONTROLS=1 |
10f2d63a VZ |
19583 | fi |
19584 | ||
19585 | if test "$wxUSE_CHOICE" = "yes"; then | |
698dcdb6 | 19586 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19587 | #define wxUSE_CHOICE 1 |
19588 | EOF | |
19589 | ||
1e6feb95 | 19590 | USES_CONTROLS=1 |
10f2d63a VZ |
19591 | fi |
19592 | ||
19593 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
698dcdb6 | 19594 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19595 | #define wxUSE_CHECKBOX 1 |
19596 | EOF | |
19597 | ||
1e6feb95 | 19598 | USES_CONTROLS=1 |
10f2d63a VZ |
19599 | fi |
19600 | ||
19601 | if test "$wxUSE_CHECKLST" = "yes"; then | |
698dcdb6 | 19602 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19603 | #define wxUSE_CHECKLISTBOX 1 |
19604 | EOF | |
19605 | ||
1e6feb95 | 19606 | USES_CONTROLS=1 |
10f2d63a VZ |
19607 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" |
19608 | fi | |
19609 | ||
19610 | if test "$wxUSE_GAUGE" = "yes"; then | |
698dcdb6 | 19611 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19612 | #define wxUSE_GAUGE 1 |
19613 | EOF | |
19614 | ||
1e6feb95 | 19615 | USES_CONTROLS=1 |
10f2d63a VZ |
19616 | fi |
19617 | ||
d6a55c4b VZ |
19618 | if test "$wxUSE_NEW_GRID" = "yes"; then |
19619 | wxUSE_GRID="yes" | |
698dcdb6 | 19620 | cat >> confdefs.h <<\EOF |
d6a55c4b | 19621 | #define wxUSE_NEW_GRID 1 |
10f2d63a VZ |
19622 | EOF |
19623 | ||
1e6feb95 | 19624 | USES_CONTROLS=1 |
d6a55c4b | 19625 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid" |
10f2d63a VZ |
19626 | fi |
19627 | ||
d6a55c4b | 19628 | if test "$wxUSE_GRID" = "yes"; then |
698dcdb6 | 19629 | cat >> confdefs.h <<\EOF |
d6a55c4b | 19630 | #define wxUSE_GRID 1 |
10f2d63a VZ |
19631 | EOF |
19632 | ||
1e6feb95 | 19633 | USES_CONTROLS=1 |
d6a55c4b | 19634 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" |
10f2d63a VZ |
19635 | fi |
19636 | ||
19637 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 19638 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19639 | #define wxUSE_IMAGLIST 1 |
19640 | EOF | |
19641 | ||
19642 | fi | |
19643 | ||
19644 | if test "$wxUSE_LISTBOX" = "yes"; then | |
698dcdb6 | 19645 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19646 | #define wxUSE_LISTBOX 1 |
19647 | EOF | |
19648 | ||
1e6feb95 | 19649 | USES_CONTROLS=1 |
10f2d63a VZ |
19650 | fi |
19651 | ||
19652 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
19653 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 19654 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19655 | #define wxUSE_LISTCTRL 1 |
19656 | EOF | |
19657 | ||
1e6feb95 | 19658 | USES_CONTROLS=1 |
10f2d63a VZ |
19659 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" |
19660 | else | |
698dcdb6 | 19661 | echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
19662 | fi |
19663 | fi | |
19664 | ||
19665 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
698dcdb6 | 19666 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19667 | #define wxUSE_NOTEBOOK 1 |
19668 | EOF | |
19669 | ||
1e6feb95 | 19670 | USES_CONTROLS=1 |
10f2d63a VZ |
19671 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" |
19672 | fi | |
19673 | ||
24176f2c GD |
19674 | if test "$wxUSE_PROPSHEET" = "yes"; then |
19675 | cat >> confdefs.h <<\EOF | |
19676 | #define wxUSE_PROPSHEET 1 | |
19677 | EOF | |
19678 | ||
19679 | USES_CONTROLS=1 | |
19680 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist" | |
19681 | fi | |
19682 | ||
10f2d63a | 19683 | if test "$wxUSE_RADIOBOX" = "yes"; then |
698dcdb6 | 19684 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19685 | #define wxUSE_RADIOBOX 1 |
19686 | EOF | |
19687 | ||
1e6feb95 | 19688 | USES_CONTROLS=1 |
10f2d63a VZ |
19689 | fi |
19690 | ||
19691 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
698dcdb6 | 19692 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19693 | #define wxUSE_RADIOBTN 1 |
19694 | EOF | |
19695 | ||
1e6feb95 | 19696 | USES_CONTROLS=1 |
10f2d63a VZ |
19697 | fi |
19698 | ||
19699 | if test "$wxUSE_SASH" = "yes"; then | |
698dcdb6 | 19700 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19701 | #define wxUSE_SASH 1 |
19702 | EOF | |
19703 | ||
19704 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
19705 | fi | |
19706 | ||
19707 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
698dcdb6 | 19708 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19709 | #define wxUSE_SCROLLBAR 1 |
19710 | EOF | |
19711 | ||
1e6feb95 | 19712 | USES_CONTROLS=1 |
741a9306 | 19713 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
19714 | fi |
19715 | ||
19716 | if test "$wxUSE_SLIDER" = "yes"; then | |
698dcdb6 | 19717 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19718 | #define wxUSE_SLIDER 1 |
19719 | EOF | |
19720 | ||
1e6feb95 | 19721 | USES_CONTROLS=1 |
10f2d63a VZ |
19722 | fi |
19723 | ||
19724 | if test "$wxUSE_SPINBTN" = "yes"; then | |
698dcdb6 | 19725 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19726 | #define wxUSE_SPINBTN 1 |
19727 | EOF | |
19728 | ||
1e6feb95 | 19729 | USES_CONTROLS=1 |
10f2d63a VZ |
19730 | fi |
19731 | ||
56cfaa52 | 19732 | if test "$wxUSE_SPINCTRL" = "yes"; then |
698dcdb6 | 19733 | cat >> confdefs.h <<\EOF |
56cfaa52 RR |
19734 | #define wxUSE_SPINCTRL 1 |
19735 | EOF | |
19736 | ||
1e6feb95 | 19737 | USES_CONTROLS=1 |
56cfaa52 RR |
19738 | fi |
19739 | ||
10f2d63a | 19740 | if test "$wxUSE_SPLITTER" = "yes"; then |
698dcdb6 | 19741 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19742 | #define wxUSE_SPLITTER 1 |
19743 | EOF | |
19744 | ||
19745 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
19746 | fi | |
19747 | ||
19748 | if test "$wxUSE_STATBMP" = "yes"; then | |
698dcdb6 | 19749 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19750 | #define wxUSE_STATBMP 1 |
19751 | EOF | |
19752 | ||
1e6feb95 | 19753 | USES_CONTROLS=1 |
10f2d63a VZ |
19754 | fi |
19755 | ||
19756 | if test "$wxUSE_STATBOX" = "yes"; then | |
698dcdb6 | 19757 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19758 | #define wxUSE_STATBOX 1 |
19759 | EOF | |
19760 | ||
1e6feb95 VZ |
19761 | USES_CONTROLS=1 |
19762 | fi | |
19763 | ||
19764 | if test "$wxUSE_STATTEXT" = "yes"; then | |
19765 | cat >> confdefs.h <<\EOF | |
19766 | #define wxUSE_STATTEXT 1 | |
19767 | EOF | |
19768 | ||
19769 | USES_CONTROLS=1 | |
10f2d63a VZ |
19770 | fi |
19771 | ||
19772 | if test "$wxUSE_STATLINE" = "yes"; then | |
19773 | if test "$wxUSE_WINE" = 1 ; then | |
698dcdb6 | 19774 | echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2 |
10f2d63a | 19775 | else |
698dcdb6 | 19776 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19777 | #define wxUSE_STATLINE 1 |
19778 | EOF | |
19779 | ||
1e6feb95 | 19780 | USES_CONTROLS=1 |
10f2d63a VZ |
19781 | fi |
19782 | fi | |
19783 | ||
19784 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
698dcdb6 | 19785 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19786 | #define wxUSE_STATUSBAR 1 |
19787 | EOF | |
19788 | ||
1e6feb95 | 19789 | USES_CONTROLS=1 |
698dcdb6 | 19790 | |
2286341c | 19791 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" |
10f2d63a VZ |
19792 | fi |
19793 | ||
19794 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
698dcdb6 | 19795 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19796 | #define wxUSE_TAB_DIALOG 1 |
19797 | EOF | |
19798 | ||
19799 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
19800 | fi | |
19801 | ||
1e6feb95 VZ |
19802 | if test "$wxUSE_TEXTCTRL" = "yes"; then |
19803 | cat >> confdefs.h <<\EOF | |
19804 | #define wxUSE_TEXTCTRL 1 | |
19805 | EOF | |
19806 | ||
19807 | USES_CONTROLS=1 | |
19808 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
19809 | fi | |
19810 | ||
1db8dc4a | 19811 | if test "$wxUSE_TOGGLEBTN" = "yes"; then |
156b2523 GD |
19812 | if test "$wxUSE_MAC" = 1; then |
19813 | echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2 | |
19814 | wxUSE_TOGGLEBTN=no | |
19815 | fi | |
19816 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
19817 | echo "configure: warning: Toggle button not yet supported under wxUNIVERSAL... disabled" 1>&2 | |
a45d7ab7 GD |
19818 | wxUSE_TOGGLEBTN=no |
19819 | fi | |
19820 | ||
19821 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
19822 | cat >> confdefs.h <<\EOF | |
1db8dc4a VZ |
19823 | #define wxUSE_TOGGLEBTN 1 |
19824 | EOF | |
19825 | ||
1e6feb95 | 19826 | USES_CONTROLS=1 |
a45d7ab7 | 19827 | fi |
1db8dc4a VZ |
19828 | fi |
19829 | ||
360d6699 | 19830 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
698dcdb6 | 19831 | cat >> confdefs.h <<\EOF |
360d6699 VZ |
19832 | #define wxUSE_TOOLBAR_SIMPLE 1 |
19833 | EOF | |
19834 | ||
19835 | wxUSE_TOOLBAR="yes" | |
1e6feb95 | 19836 | USES_CONTROLS=1 |
360d6699 VZ |
19837 | fi |
19838 | ||
10f2d63a | 19839 | if test "$wxUSE_TOOLBAR" = "yes"; then |
698dcdb6 | 19840 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19841 | #define wxUSE_TOOLBAR 1 |
19842 | EOF | |
19843 | ||
1e6feb95 | 19844 | USES_CONTROLS=1 |
698dcdb6 | 19845 | |
360d6699 VZ |
19846 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then |
19847 | wxUSE_TOOLBAR_NATIVE="yes" | |
19848 | fi | |
19849 | ||
1e6feb95 VZ |
19850 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
19851 | cat >> confdefs.h <<\EOF | |
360d6699 VZ |
19852 | #define wxUSE_TOOLBAR_NATIVE 1 |
19853 | EOF | |
19854 | ||
1e6feb95 VZ |
19855 | USES_CONTROLS=1 |
19856 | fi | |
19857 | ||
19858 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
360d6699 VZ |
19859 | fi |
19860 | ||
10f2d63a VZ |
19861 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
19862 | if test "$wxUSE_MOTIF" = 1; then | |
156b2523 | 19863 | echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2 |
10f2d63a VZ |
19864 | else |
19865 | if test "$wxUSE_WINE" = 1; then | |
156b2523 | 19866 | echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2 |
10f2d63a | 19867 | else |
69d27ff7 | 19868 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
156b2523 | 19869 | echo "configure: warning: wxTooltip not supported yet in wxUNIVERSAL... disabled" 1>&2 |
69d27ff7 | 19870 | else |
178572bb RR |
19871 | if test "$wxUSE_X11" = "1"; then |
19872 | echo "configure: warning: wxTooltip not supported yet under X11... disabled" 1>&2 | |
19873 | else | |
19874 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
19875 | #define wxUSE_TOOLTIPS 1 |
19876 | EOF | |
19877 | ||
178572bb | 19878 | fi |
69d27ff7 | 19879 | fi |
10f2d63a VZ |
19880 | fi |
19881 | fi | |
19882 | fi | |
19883 | ||
19884 | if test "$wxUSE_TREECTRL" = "yes"; then | |
19885 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 19886 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19887 | #define wxUSE_TREECTRL 1 |
19888 | EOF | |
19889 | ||
1e6feb95 | 19890 | USES_CONTROLS=1 |
10f2d63a VZ |
19891 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" |
19892 | else | |
698dcdb6 | 19893 | echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
19894 | fi |
19895 | fi | |
19896 | ||
9f41d601 | 19897 | if test "$wxUSE_POPUPWIN" = "yes"; then |
6abe4b65 | 19898 | if test "$wxUSE_MAC" = 1; then |
156b2523 | 19899 | echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2 |
6abe4b65 | 19900 | else |
485cf710 VZ |
19901 | if test "$wxUSE_MOTIF" = 1; then |
19902 | echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2 | |
19903 | else | |
19904 | cat >> confdefs.h <<\EOF | |
9f41d601 RR |
19905 | #define wxUSE_POPUPWIN 1 |
19906 | EOF | |
19907 | ||
9926e4a4 | 19908 | |
485cf710 VZ |
19909 | USES_CONTROLS=1 |
19910 | fi | |
6abe4b65 | 19911 | fi |
9f41d601 RR |
19912 | fi |
19913 | ||
dd964dcc VZ |
19914 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
19915 | cat >> confdefs.h <<\EOF | |
19916 | #define wxUSE_TIPWINDOW 1 | |
19917 | EOF | |
19918 | ||
19919 | fi | |
19920 | ||
1e6feb95 VZ |
19921 | if test "$USES_CONTROLS" = 1; then |
19922 | cat >> confdefs.h <<\EOF | |
19923 | #define wxUSE_CONTROLS 1 | |
10f2d63a VZ |
19924 | EOF |
19925 | ||
10f2d63a VZ |
19926 | fi |
19927 | ||
1e6feb95 | 19928 | |
24176f2c GD |
19929 | if test "$wxUSE_TREELAYOUT" = "yes"; then |
19930 | cat >> confdefs.h <<\EOF | |
19931 | #define wxUSE_TREELAYOUT 1 | |
19932 | EOF | |
19933 | ||
19934 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay" | |
19935 | fi | |
1e6feb95 | 19936 | |
24fd6d87 VZ |
19937 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
19938 | cat >> confdefs.h <<\EOF | |
19939 | #define wxUSE_DRAGIMAGE 1 | |
19940 | EOF | |
19941 | ||
19942 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
19943 | fi | |
19944 | ||
1e6feb95 | 19945 | if test "$wxUSE_MENUS" = "yes"; then |
698dcdb6 | 19946 | cat >> confdefs.h <<\EOF |
1e6feb95 | 19947 | #define wxUSE_MENUS 1 |
10f2d63a VZ |
19948 | EOF |
19949 | ||
1e6feb95 | 19950 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" |
10f2d63a VZ |
19951 | fi |
19952 | ||
1e6feb95 VZ |
19953 | if test "$wxUSE_METAFILE" = "yes"; then |
19954 | cat >> confdefs.h <<\EOF | |
19955 | #define wxUSE_METAFILE 1 | |
10f2d63a VZ |
19956 | EOF |
19957 | ||
10f2d63a VZ |
19958 | fi |
19959 | ||
1e6feb95 VZ |
19960 | if test "$wxUSE_MIMETYPE" = "yes"; then |
19961 | cat >> confdefs.h <<\EOF | |
19962 | #define wxUSE_MIMETYPE 1 | |
10f2d63a VZ |
19963 | EOF |
19964 | ||
10f2d63a VZ |
19965 | fi |
19966 | ||
3e44f09d VZ |
19967 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then |
19968 | cat >> confdefs.h <<\EOF | |
19969 | #define wxUSE_SYSTEM_OPTIONS 1 | |
19970 | EOF | |
19971 | ||
19972 | fi | |
19973 | ||
4cdb0ab0 | 19974 | if test "$wxUSE_PROTOCOL" = "yes"; then |
3954f9ca VS |
19975 | if test "$wxUSE_SOCKETS" != "yes"; then |
19976 | echo "configure: warning: Protocol classes require sockets... disabled" 1>&2 | |
19977 | wxUSE_PROTOCOL=no | |
19978 | fi | |
19979 | ||
19980 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
19981 | cat >> confdefs.h <<\EOF | |
4cdb0ab0 VS |
19982 | #define wxUSE_PROTOCOL 1 |
19983 | EOF | |
19984 | ||
19985 | ||
3954f9ca VS |
19986 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then |
19987 | cat >> confdefs.h <<\EOF | |
4cdb0ab0 VS |
19988 | #define wxUSE_PROTOCOL_HTTP 1 |
19989 | EOF | |
19990 | ||
3954f9ca VS |
19991 | fi |
19992 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
19993 | cat >> confdefs.h <<\EOF | |
4cdb0ab0 VS |
19994 | #define wxUSE_PROTOCOL_FTP 1 |
19995 | EOF | |
19996 | ||
3954f9ca VS |
19997 | fi |
19998 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
19999 | cat >> confdefs.h <<\EOF | |
20000 | #define wxUSE_PROTOCOL_FILE 1 | |
20001 | EOF | |
20002 | ||
20003 | fi | |
4cdb0ab0 | 20004 | fi |
3954f9ca VS |
20005 | fi |
20006 | ||
20007 | if test "$wxUSE_URL" = "yes"; then | |
20008 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
20009 | echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2 | |
20010 | wxUSE_URL=no | |
20011 | fi | |
20012 | if test "$wxUSE_URL" = "yes"; then | |
4cdb0ab0 | 20013 | cat >> confdefs.h <<\EOF |
3954f9ca | 20014 | #define wxUSE_URL 1 |
4cdb0ab0 VS |
20015 | EOF |
20016 | ||
20017 | fi | |
20018 | fi | |
20019 | ||
10f2d63a | 20020 | if test "$wxUSE_MINIFRAME" = "yes"; then |
698dcdb6 | 20021 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20022 | #define wxUSE_MINIFRAME 1 |
20023 | EOF | |
20024 | ||
20025 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
20026 | fi | |
20027 | ||
20028 | if test "$wxUSE_HTML" = "yes"; then | |
698dcdb6 | 20029 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20030 | #define wxUSE_HTML 1 |
20031 | EOF | |
20032 | ||
20033 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html" | |
10f2d63a VZ |
20034 | fi |
20035 | ||
20036 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
698dcdb6 | 20037 | cat >> confdefs.h <<\EOF |
1e487827 VS |
20038 | #define wxUSE_VALIDATORS 1 |
20039 | EOF | |
703e0a69 | 20040 | |
698dcdb6 VZ |
20041 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" |
20042 | fi | |
20043 | ||
edae8572 VZ |
20044 | if test "$wxUSE_PALETTE" = "yes" ; then |
20045 | cat >> confdefs.h <<\EOF | |
20046 | #define wxUSE_PALETTE 1 | |
20047 | EOF | |
20048 | ||
20049 | fi | |
20050 | ||
698dcdb6 VZ |
20051 | if test "$wxUSE_IMAGE" = "yes" ; then |
20052 | cat >> confdefs.h <<\EOF | |
20053 | #define wxUSE_IMAGE 1 | |
20054 | EOF | |
20055 | ||
20056 | fi | |
20057 | ||
20058 | if test "$wxUSE_GIF" = "yes" ; then | |
20059 | cat >> confdefs.h <<\EOF | |
20060 | #define wxUSE_GIF 1 | |
20061 | EOF | |
20062 | ||
20063 | fi | |
20064 | ||
20065 | if test "$wxUSE_PCX" = "yes" ; then | |
20066 | cat >> confdefs.h <<\EOF | |
20067 | #define wxUSE_PCX 1 | |
20068 | EOF | |
20069 | ||
20070 | fi | |
20071 | ||
4b6b4dfc RR |
20072 | if test "$wxUSE_IFF" = "yes" ; then |
20073 | cat >> confdefs.h <<\EOF | |
20074 | #define wxUSE_IFF 1 | |
20075 | EOF | |
20076 | ||
20077 | fi | |
20078 | ||
698dcdb6 VZ |
20079 | if test "$wxUSE_PNM" = "yes" ; then |
20080 | cat >> confdefs.h <<\EOF | |
20081 | #define wxUSE_PNM 1 | |
20082 | EOF | |
20083 | ||
20084 | fi | |
20085 | ||
20086 | if test "$wxUSE_XPM" = "yes" ; then | |
20087 | cat >> confdefs.h <<\EOF | |
20088 | #define wxUSE_XPM 1 | |
20089 | EOF | |
20090 | ||
20091 | fi | |
20092 | ||
658974ae VS |
20093 | if test "$wxUSE_ICO_CUR" = "yes" ; then |
20094 | cat >> confdefs.h <<\EOF | |
20095 | #define wxUSE_ICO_CUR 1 | |
20096 | EOF | |
20097 | ||
20098 | fi | |
20099 | ||
a72a4bfa VS |
20100 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then |
20101 | LIBS=" -lunicows $LIBS" | |
20102 | fi | |
20103 | ||
698dcdb6 | 20104 | |
1e6feb95 VZ |
20105 | if test "$wxUSE_CHOICEDLG" = "yes"; then |
20106 | cat >> confdefs.h <<\EOF | |
20107 | #define wxUSE_CHOICEDLG 1 | |
20108 | EOF | |
20109 | ||
20110 | fi | |
20111 | ||
20112 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
20113 | cat >> confdefs.h <<\EOF | |
20114 | #define wxUSE_COLOURDLG 1 | |
20115 | EOF | |
20116 | ||
20117 | fi | |
20118 | ||
20119 | if test "$wxUSE_FILEDLG" = "yes"; then | |
20120 | cat >> confdefs.h <<\EOF | |
20121 | #define wxUSE_FILEDLG 1 | |
20122 | EOF | |
20123 | ||
20124 | fi | |
20125 | ||
8db37e06 VZ |
20126 | if test "$wxUSE_FINDREPLDLG" = "yes"; then |
20127 | cat >> confdefs.h <<\EOF | |
20128 | #define wxUSE_FINDREPLDLG 1 | |
20129 | EOF | |
20130 | ||
20131 | fi | |
20132 | ||
1e6feb95 VZ |
20133 | if test "$wxUSE_FONTDLG" = "yes"; then |
20134 | cat >> confdefs.h <<\EOF | |
20135 | #define wxUSE_FONTDLG 1 | |
20136 | EOF | |
20137 | ||
20138 | fi | |
20139 | ||
20140 | if test "$wxUSE_DIRDLG" = "yes"; then | |
20141 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
20142 | echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2 | |
20143 | else | |
20144 | if test "$wxUSE_TREECTRL" != "yes"; then | |
20145 | echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2 | |
20146 | else | |
20147 | cat >> confdefs.h <<\EOF | |
20148 | #define wxUSE_DIRDLG 1 | |
20149 | EOF | |
20150 | ||
20151 | fi | |
20152 | fi | |
20153 | fi | |
20154 | ||
20155 | if test "$wxUSE_MSGDLG" = "yes"; then | |
20156 | cat >> confdefs.h <<\EOF | |
20157 | #define wxUSE_MSGDLG 1 | |
20158 | EOF | |
20159 | ||
20160 | fi | |
20161 | ||
20162 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
20163 | cat >> confdefs.h <<\EOF | |
20164 | #define wxUSE_NUMBERDLG 1 | |
20165 | EOF | |
20166 | ||
20167 | fi | |
20168 | ||
20169 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
20170 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
20171 | echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2 | |
20172 | else | |
20173 | cat >> confdefs.h <<\EOF | |
20174 | #define wxUSE_PROGRESSDLG 1 | |
20175 | EOF | |
20176 | ||
20177 | fi | |
20178 | fi | |
20179 | ||
cbca9943 VZ |
20180 | if test "$wxUSE_SPLASH" = "yes"; then |
20181 | cat >> confdefs.h <<\EOF | |
20182 | #define wxUSE_SPLASH 1 | |
20183 | EOF | |
20184 | ||
20185 | fi | |
20186 | ||
1e6feb95 VZ |
20187 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then |
20188 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
20189 | echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2 | |
20190 | else | |
20191 | cat >> confdefs.h <<\EOF | |
20192 | #define wxUSE_STARTUP_TIPS 1 | |
20193 | EOF | |
20194 | ||
20195 | fi | |
20196 | fi | |
20197 | ||
20198 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
20199 | cat >> confdefs.h <<\EOF | |
20200 | #define wxUSE_TEXTDLG 1 | |
20201 | EOF | |
20202 | ||
20203 | fi | |
20204 | ||
b1f5d087 VZ |
20205 | if test "$wxUSE_WIZARDDLG" = "yes"; then |
20206 | cat >> confdefs.h <<\EOF | |
20207 | #define wxUSE_WIZARDDLG 1 | |
20208 | EOF | |
20209 | ||
20210 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
20211 | fi | |
20212 | ||
1e6feb95 | 20213 | |
698dcdb6 VZ |
20214 | if test "$cross_compiling" = "yes"; then |
20215 | OSINFO="\"$host\"" | |
20216 | else | |
20217 | OSINFO=`uname -s -r -m` | |
20218 | OSINFO="\"$OSINFO\"" | |
20219 | fi | |
20220 | ||
20221 | cat >> confdefs.h <<EOF | |
20222 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
20223 | EOF | |
20224 | ||
20225 | ||
20226 | ||
06dda230 VZ |
20227 | if test "x$prefix" != "xNONE"; then |
20228 | wxPREFIX=$prefix | |
20229 | else | |
20230 | wxPREFIX=$ac_default_prefix | |
20231 | fi | |
20232 | ||
7e67ed0d | 20233 | cat >> confdefs.h <<EOF |
06dda230 | 20234 | #define wxINSTALL_PREFIX "$wxPREFIX" |
7e67ed0d VZ |
20235 | EOF |
20236 | ||
20237 | ||
20238 | ||
698dcdb6 | 20239 | |
3a922bb4 | 20240 | |
f11bdd03 | 20241 | if test "$wxUSE_MAC" = 1 ; then |
3d63bc3a | 20242 | LDFLAGS="$LDFLAGS -framework Carbon -framework System" |
698dcdb6 | 20243 | fi |
3a922bb4 | 20244 | |
3d63bc3a | 20245 | |
cb61c62d | 20246 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DL_LINK -lm $LIBS" |
3d63bc3a | 20247 | |
698dcdb6 | 20248 | if test "$wxUSE_GUI" = "yes"; then |
3d63bc3a | 20249 | |
cb61c62d | 20250 | LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS" |
3a922bb4 RL |
20251 | |
20252 | ||
20253 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \ | |
20254 | drawing dynamic erase event exec font image \ | |
20255 | minimal richedit rotate widgets" | |
20256 | ||
3a922bb4 RL |
20257 | CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)" |
20258 | else | |
20259 | SAMPLES_SUBDIRS="console" | |
698dcdb6 VZ |
20260 | fi |
20261 | ||
698dcdb6 | 20262 | |
d714471b | 20263 | INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} -I\${top_srcdir}/include \ |
cb61c62d | 20264 | $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $TOOLKIT_INCLUDE" |
698dcdb6 | 20265 | |
63e7762e | 20266 | if test "$wxUSE_GTK" = 1; then |
3d63bc3a | 20267 | WXCONFIG_INCLUDE= |
698dcdb6 VZ |
20268 | else |
20269 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
20270 | fi | |
20271 | ||
20272 | if test "$GXX" = yes ; then | |
20273 | CXXWARNINGS="-Wall" | |
88e30f2b RL |
20274 | |
20275 | if test "$wxUSE_NO_DEPS" = "no" ; then | |
20276 | CFLAGS="-MMD $CFLAGS" | |
20277 | CXXFLAGS="-MMD $CXXFLAGS" | |
20278 | fi | |
20279 | fi | |
20280 | ||
1725144d | 20281 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES" |
698dcdb6 VZ |
20282 | |
20283 | CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` | |
20284 | CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
20285 | ||
3d63bc3a | 20286 | LDFLAGS="$LDFLAGS$PROFILE" |
698dcdb6 | 20287 | |
698dcdb6 VZ |
20288 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" |
20289 | ||
20290 | ||
20291 | ||
20292 | ||
20293 | ||
20294 | ||
20295 | ||
20296 | ||
20297 | ||
20298 | ||
20299 | ||
20300 | ||
20301 | ||
20302 | ||
20303 | ||
20304 | ||
20305 | ||
20306 | ||
20307 | ||
20308 | ||
20309 | ||
20310 | ||
20311 | ||
20312 | ||
20313 | ||
20314 | ||
20315 | ||
20316 | ||
20317 | ||
20318 | ||
20319 | ||
20320 | ||
20321 | ||
20322 | ||
20323 | ||
20324 | ||
20325 | ||
20326 | ||
20327 | ||
20328 | ||
20329 | ||
20330 | ||
20331 | ||
20332 | ||
20333 | ||
20334 | ||
20335 | ||
20336 | ||
20337 | ||
20338 | ||
20339 | ||
20340 | ||
20341 | ||
20342 | ||
20343 | ||
20344 | ||
20345 | ||
20346 | ||
20347 | ||
20348 | ||
20349 | ||
20350 | ||
20351 | ||
20352 | ||
20353 | ||
20354 | ||
20355 | ||
32832908 | 20356 | |
2f51a9ec GD |
20357 | |
20358 | ||
20359 | ||
20360 | ||
f6bcfd97 | 20361 | |
dad6c0ea | 20362 | |
caa2c79b | 20363 | |
3711412e | 20364 | |
1e6feb95 VZ |
20365 | |
20366 | ||
885d4bf5 VS |
20367 | |
20368 | ||
20369 | ||
20370 | ||
9b695262 VZ |
20371 | |
20372 | ||
62d0491b | 20373 | |
10f2d63a VZ |
20374 | |
20375 | ||
698dcdb6 | 20376 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
4222829b | 20377 | echo "configure:20378: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
698dcdb6 VZ |
20378 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
20379 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
20380 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 20381 | else |
698dcdb6 | 20382 | cat > conftestmake <<\EOF |
10f2d63a VZ |
20383 | all: |
20384 | @echo 'ac_maketemp="${MAKE}"' | |
20385 | EOF | |
20386 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
698dcdb6 | 20387 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
10f2d63a VZ |
20388 | if test -n "$ac_maketemp"; then |
20389 | eval ac_cv_prog_make_${ac_make}_set=yes | |
20390 | else | |
20391 | eval ac_cv_prog_make_${ac_make}_set=no | |
20392 | fi | |
698dcdb6 | 20393 | rm -f conftestmake |
10f2d63a VZ |
20394 | fi |
20395 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
698dcdb6 | 20396 | echo "$ac_t""yes" 1>&6 |
10f2d63a VZ |
20397 | SET_MAKE= |
20398 | else | |
698dcdb6 | 20399 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
20400 | SET_MAKE="MAKE=${MAKE-make}" |
20401 | fi | |
20402 | ||
698dcdb6 | 20403 | |
3a922bb4 RL |
20404 | if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then |
20405 | mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h | |
00cf1208 | 20406 | fi |
665bbe97 | 20407 | |
698dcdb6 | 20408 | |
10f2d63a | 20409 | |
2224580a | 20410 | if test "$wxUSE_GUI" = "yes"; then |
ec90f5e5 | 20411 | wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS |
22c3fb2b | 20412 | wx_cv_if_gnu_make=$IF_GNU_MAKE |
e8482f24 GL |
20413 | wx_cv_path_ifs=$PATH_IFS |
20414 | wx_cv_program_ext=$PROGRAM_EXT | |
20415 | wx_cv_target_library=$WX_TARGET_LIBRARY | |
7b6058cd | 20416 | wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL |
3711412e | 20417 | wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE |
22c3fb2b VZ |
20418 | export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \ |
20419 | wx_cv_path_ifs wx_cv_program_ext \ | |
7b6058cd | 20420 | wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype |
698dcdb6 | 20421 | subdirs="demos samples utils contrib" |
2224580a VZ |
20422 | |
20423 | fi | |
10f2d63a | 20424 | |
698dcdb6 VZ |
20425 | trap '' 1 2 15 |
20426 | cat > confcache <<\EOF | |
10f2d63a VZ |
20427 | # This file is a shell script that caches the results of configure |
20428 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
20429 | # scripts and configure runs. It is not useful on other systems. |
20430 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 20431 | # |
698dcdb6 VZ |
20432 | # By default, configure uses ./config.cache as the cache file, |
20433 | # creating it if it does not exist already. You can give configure | |
20434 | # the --cache-file=FILE option to use a different cache file; that is | |
20435 | # what configure does when it calls configure scripts in | |
20436 | # subdirectories, so they share the cache. | |
20437 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
20438 | # config.status only pays attention to the cache file if you give it the | |
20439 | # --recheck option to rerun configure. | |
10f2d63a | 20440 | # |
698dcdb6 | 20441 | EOF |
10f2d63a VZ |
20442 | # The following way of writing the cache mishandles newlines in values, |
20443 | # but we know of no workaround that is simple, portable, and efficient. | |
20444 | # So, don't put newlines in cache variables' values. | |
20445 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
20446 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
20447 | (set) 2>&1 | |
20448 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
20449 | *ac_space=\ *) | |
20450 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
20451 | # turns \\\\ into \\, and sed turns \\ into \). | |
20452 | sed -n \ | |
20453 | -e "s/'/'\\\\''/g" \ | |
20454 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
20455 | ;; | |
20456 | *) | |
20457 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
20458 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
20459 | ;; | |
20460 | esac >> confcache | |
20461 | if cmp -s $cache_file confcache; then | |
20462 | : | |
20463 | else | |
10f2d63a | 20464 | if test -w $cache_file; then |
698dcdb6 VZ |
20465 | echo "updating cache $cache_file" |
20466 | cat confcache > $cache_file | |
10f2d63a VZ |
20467 | else |
20468 | echo "not updating unwritable cache $cache_file" | |
20469 | fi | |
20470 | fi | |
20471 | rm -f confcache | |
20472 | ||
698dcdb6 VZ |
20473 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
20474 | ||
10f2d63a VZ |
20475 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
20476 | # Let make expand exec_prefix. | |
20477 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
20478 | ||
698dcdb6 VZ |
20479 | # Any assignment to VPATH causes Sun make to only execute |
20480 | # the first set of double-colon rules, so remove it if not needed. | |
20481 | # If there is a colon in the path, we need to keep it. | |
10f2d63a | 20482 | if test "x$srcdir" = x.; then |
698dcdb6 | 20483 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
10f2d63a VZ |
20484 | fi |
20485 | ||
698dcdb6 VZ |
20486 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
20487 | ||
10f2d63a VZ |
20488 | DEFS=-DHAVE_CONFIG_H |
20489 | ||
698dcdb6 | 20490 | # Without the "./", some shells look in PATH for config.status. |
10f2d63a | 20491 | : ${CONFIG_STATUS=./config.status} |
698dcdb6 VZ |
20492 | |
20493 | echo creating $CONFIG_STATUS | |
20494 | rm -f $CONFIG_STATUS | |
20495 | cat > $CONFIG_STATUS <<EOF | |
20496 | #! /bin/sh | |
10f2d63a VZ |
20497 | # Generated automatically by configure. |
20498 | # Run this file to recreate the current configuration. | |
698dcdb6 VZ |
20499 | # This directory was configured as follows, |
20500 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
20501 | # | |
20502 | # $0 $ac_configure_args | |
20503 | # | |
10f2d63a | 20504 | # Compiler output produced by configure, useful for debugging |
698dcdb6 | 20505 | # configure, is in ./config.log if it exists. |
1e487827 | 20506 | |
698dcdb6 VZ |
20507 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
20508 | for ac_option | |
10f2d63a | 20509 | do |
698dcdb6 | 20510 | case "\$ac_option" in |
10f2d63a | 20511 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
698dcdb6 VZ |
20512 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
20513 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
20514 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
20515 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | |
20516 | exit 0 ;; | |
20517 | -help | --help | --hel | --he | --h) | |
20518 | echo "\$ac_cs_usage"; exit 0 ;; | |
20519 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
10f2d63a VZ |
20520 | esac |
20521 | done | |
20522 | ||
698dcdb6 VZ |
20523 | ac_given_srcdir=$srcdir |
20524 | ac_given_INSTALL="$INSTALL" | |
703e0a69 | 20525 | |
698dcdb6 VZ |
20526 | trap 'rm -fr `echo " |
20527 | wx-config | |
20528 | src/make.env | |
20529 | src/makeprog.env | |
20530 | src/makelib.env | |
20531 | Makefile | |
20532 | setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
1e487827 | 20533 | EOF |
698dcdb6 | 20534 | cat >> $CONFIG_STATUS <<EOF |
1e487827 | 20535 | |
698dcdb6 VZ |
20536 | # Protect against being on the right side of a sed subst in config.status. |
20537 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
20538 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
20539 | $ac_vpsub | |
20540 | $extrasub | |
20541 | s%@SHELL@%$SHELL%g | |
20542 | s%@CFLAGS@%$CFLAGS%g | |
20543 | s%@CPPFLAGS@%$CPPFLAGS%g | |
20544 | s%@CXXFLAGS@%$CXXFLAGS%g | |
20545 | s%@FFLAGS@%$FFLAGS%g | |
20546 | s%@DEFS@%$DEFS%g | |
20547 | s%@LDFLAGS@%$LDFLAGS%g | |
20548 | s%@LIBS@%$LIBS%g | |
20549 | s%@exec_prefix@%$exec_prefix%g | |
20550 | s%@prefix@%$prefix%g | |
20551 | s%@program_transform_name@%$program_transform_name%g | |
20552 | s%@bindir@%$bindir%g | |
20553 | s%@sbindir@%$sbindir%g | |
20554 | s%@libexecdir@%$libexecdir%g | |
20555 | s%@datadir@%$datadir%g | |
20556 | s%@sysconfdir@%$sysconfdir%g | |
20557 | s%@sharedstatedir@%$sharedstatedir%g | |
20558 | s%@localstatedir@%$localstatedir%g | |
20559 | s%@libdir@%$libdir%g | |
20560 | s%@includedir@%$includedir%g | |
20561 | s%@oldincludedir@%$oldincludedir%g | |
20562 | s%@infodir@%$infodir%g | |
20563 | s%@mandir@%$mandir%g | |
20564 | s%@host@%$host%g | |
20565 | s%@host_alias@%$host_alias%g | |
20566 | s%@host_cpu@%$host_cpu%g | |
20567 | s%@host_vendor@%$host_vendor%g | |
20568 | s%@host_os@%$host_os%g | |
20569 | s%@target@%$target%g | |
20570 | s%@target_alias@%$target_alias%g | |
20571 | s%@target_cpu@%$target_cpu%g | |
20572 | s%@target_vendor@%$target_vendor%g | |
20573 | s%@target_os@%$target_os%g | |
20574 | s%@build@%$build%g | |
20575 | s%@build_alias@%$build_alias%g | |
20576 | s%@build_cpu@%$build_cpu%g | |
20577 | s%@build_vendor@%$build_vendor%g | |
20578 | s%@build_os@%$build_os%g | |
20579 | s%@CC@%$CC%g | |
20580 | s%@CPP@%$CPP%g | |
20581 | s%@CXX@%$CXX%g | |
698dcdb6 VZ |
20582 | s%@RANLIB@%$RANLIB%g |
20583 | s%@AR@%$AR%g | |
20584 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
d6853540 | 20585 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
6054113a | 20586 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
698dcdb6 | 20587 | s%@STRIP@%$STRIP%g |
613d0995 | 20588 | s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g |
698dcdb6 VZ |
20589 | s%@YACC@%$YACC%g |
20590 | s%@LEX@%$LEX%g | |
20591 | s%@LEXLIB@%$LEXLIB%g | |
20592 | s%@LN_S@%$LN_S%g | |
20593 | s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g | |
698dcdb6 VZ |
20594 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g |
20595 | s%@GTK_LIBS@%$GTK_LIBS%g | |
8168de4c | 20596 | s%@GTK_CONFIG@%$GTK_CONFIG%g |
698dcdb6 VZ |
20597 | s%@X_CFLAGS@%$X_CFLAGS%g |
20598 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
20599 | s%@X_LIBS@%$X_LIBS%g | |
20600 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
3a922bb4 | 20601 | s%@RESCOMP@%$RESCOMP%g |
698dcdb6 | 20602 | s%@DEREZ@%$DEREZ%g |
3a922bb4 | 20603 | s%@CXXCPP@%$CXXCPP%g |
b040e242 | 20604 | s%@LIBICONV@%$LIBICONV%g |
698dcdb6 VZ |
20605 | s%@LEX_STEM@%$LEX_STEM%g |
20606 | s%@PATH_IFS@%$PATH_IFS%g | |
20607 | s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g | |
20608 | s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g | |
20609 | s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g | |
698dcdb6 VZ |
20610 | s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g |
20611 | s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g | |
77e13408 | 20612 | s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g |
698dcdb6 VZ |
20613 | s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g |
20614 | s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g | |
20615 | s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g | |
698dcdb6 | 20616 | s%@PROGRAM_EXT@%$PROGRAM_EXT%g |
698dcdb6 VZ |
20617 | s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g |
20618 | s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g | |
698dcdb6 VZ |
20619 | s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g |
20620 | s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g | |
20621 | s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g | |
698dcdb6 VZ |
20622 | s%@WX_ALL@%$WX_ALL%g |
20623 | s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g | |
20624 | s%@SHARED_LD@%$SHARED_LD%g | |
20625 | s%@PIC_FLAG@%$PIC_FLAG%g | |
698dcdb6 VZ |
20626 | s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g |
20627 | s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g | |
3a922bb4 RL |
20628 | s%@SONAME_FLAGS@%$SONAME_FLAGS%g |
20629 | s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g | |
698dcdb6 VZ |
20630 | s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g |
20631 | s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g | |
20632 | s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g | |
20633 | s%@USE_GUI@%$USE_GUI%g | |
20634 | s%@AFMINSTALL@%$AFMINSTALL%g | |
20635 | s%@TOOLKIT@%$TOOLKIT%g | |
698dcdb6 | 20636 | s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g |
1e6feb95 | 20637 | s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g |
3a922bb4 RL |
20638 | s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g |
20639 | s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g | |
00c81359 | 20640 | s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g |
3a922bb4 RL |
20641 | s%@cross_compiling@%$cross_compiling%g |
20642 | s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g | |
20643 | s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g | |
885d4bf5 VS |
20644 | s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g |
20645 | s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g | |
698dcdb6 VZ |
20646 | s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g |
20647 | s%@ALL_OBJECTS@%$ALL_OBJECTS%g | |
9b695262 VZ |
20648 | s%@ALL_HEADERS@%$ALL_HEADERS%g |
20649 | s%@ALL_SOURCES@%$ALL_SOURCES%g | |
698dcdb6 VZ |
20650 | s%@GUIDIST@%$GUIDIST%g |
20651 | s%@PORT_FILES@%$PORT_FILES%g | |
20652 | s%@DISTDIR@%$DISTDIR%g | |
698dcdb6 | 20653 | s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g |
62d0491b | 20654 | s%@LDFLAGS_GL@%$LDFLAGS_GL%g |
698dcdb6 | 20655 | s%@OPENGL_LIBS@%$OPENGL_LIBS%g |
3d63bc3a | 20656 | s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g |
698dcdb6 | 20657 | s%@EXTRADEFS@%$EXTRADEFS%g |
698dcdb6 | 20658 | s%@RESFLAGS@%$RESFLAGS%g |
3a922bb4 | 20659 | s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g |
d08b457b | 20660 | s%@WX_RESOURCES_MACOSX@%$WX_RESOURCES_MACOSX%g |
e23081de | 20661 | s%@WX_RESOURCES_MACOSX_COMPILED@%$WX_RESOURCES_MACOSX_COMPILED%g |
698dcdb6 VZ |
20662 | s%@LIBWXMACRES@%$LIBWXMACRES%g |
20663 | s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g | |
2baaf735 | 20664 | s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g |
698dcdb6 VZ |
20665 | s%@DLLTOOL@%$DLLTOOL%g |
20666 | s%@AS@%$AS%g | |
20667 | s%@NM@%$NM%g | |
20668 | s%@LD@%$LD%g | |
20669 | s%@MAKEINFO@%$MAKEINFO%g | |
885d4bf5 | 20670 | s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g |
698dcdb6 VZ |
20671 | s%@SET_MAKE@%$SET_MAKE%g |
20672 | s%@subdirs@%$subdirs%g | |
1e487827 | 20673 | |
1e487827 | 20674 | CEOF |
1e487827 VS |
20675 | EOF |
20676 | ||
698dcdb6 VZ |
20677 | cat >> $CONFIG_STATUS <<\EOF |
20678 | ||
20679 | # Split the substitutions into bite-sized pieces for seds with | |
20680 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
20681 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
20682 | ac_file=1 # Number of current file. | |
20683 | ac_beg=1 # First line for current file. | |
20684 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
20685 | ac_more_lines=: | |
20686 | ac_sed_cmds="" | |
20687 | while $ac_more_lines; do | |
20688 | if test $ac_beg -gt 1; then | |
20689 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
20690 | else | |
20691 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
20692 | fi | |
20693 | if test ! -s conftest.s$ac_file; then | |
20694 | ac_more_lines=false | |
20695 | rm -f conftest.s$ac_file | |
20696 | else | |
20697 | if test -z "$ac_sed_cmds"; then | |
20698 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
10f2d63a | 20699 | else |
698dcdb6 | 20700 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
10f2d63a | 20701 | fi |
698dcdb6 VZ |
20702 | ac_file=`expr $ac_file + 1` |
20703 | ac_beg=$ac_end | |
20704 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
10f2d63a | 20705 | fi |
698dcdb6 VZ |
20706 | done |
20707 | if test -z "$ac_sed_cmds"; then | |
20708 | ac_sed_cmds=cat | |
20709 | fi | |
20710 | EOF | |
10f2d63a | 20711 | |
698dcdb6 VZ |
20712 | cat >> $CONFIG_STATUS <<EOF |
20713 | ||
20714 | CONFIG_FILES=\${CONFIG_FILES-"wx-config | |
20715 | src/make.env | |
20716 | src/makeprog.env | |
20717 | src/makelib.env | |
20718 | Makefile | |
20719 | "} | |
10f2d63a | 20720 | EOF |
698dcdb6 VZ |
20721 | cat >> $CONFIG_STATUS <<\EOF |
20722 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
10f2d63a | 20723 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
698dcdb6 VZ |
20724 | case "$ac_file" in |
20725 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
20726 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
20727 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
20728 | esac |
20729 | ||
698dcdb6 | 20730 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
1e487827 | 20731 | |
698dcdb6 VZ |
20732 | # Remove last slash and all that follows it. Not all systems have dirname. |
20733 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
20734 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
20735 | # The file is in a subdirectory. | |
20736 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
20737 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
10f2d63a | 20738 | # A "../" for each directory in $ac_dir_suffix. |
698dcdb6 | 20739 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
10f2d63a VZ |
20740 | else |
20741 | ac_dir_suffix= ac_dots= | |
20742 | fi | |
20743 | ||
698dcdb6 VZ |
20744 | case "$ac_given_srcdir" in |
20745 | .) srcdir=. | |
20746 | if test -z "$ac_dots"; then top_srcdir=. | |
20747 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
20748 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
10f2d63a | 20749 | *) # Relative path. |
698dcdb6 VZ |
20750 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
20751 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
10f2d63a VZ |
20752 | esac |
20753 | ||
698dcdb6 VZ |
20754 | case "$ac_given_INSTALL" in |
20755 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
20756 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
10f2d63a VZ |
20757 | esac |
20758 | ||
698dcdb6 VZ |
20759 | echo creating "$ac_file" |
20760 | rm -f "$ac_file" | |
20761 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
20762 | case "$ac_file" in | |
20763 | *Makefile*) ac_comsub="1i\\ | |
20764 | # $configure_input" ;; | |
20765 | *) ac_comsub= ;; | |
20766 | esac | |
10f2d63a | 20767 | |
698dcdb6 VZ |
20768 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
20769 | sed -e "$ac_comsub | |
20770 | s%@configure_input@%$configure_input%g | |
20771 | s%@srcdir@%$srcdir%g | |
20772 | s%@top_srcdir@%$top_srcdir%g | |
20773 | s%@INSTALL@%$INSTALL%g | |
20774 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
20775 | fi; done | |
20776 | rm -f conftest.s* | |
10f2d63a VZ |
20777 | |
20778 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
20779 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
20780 | # | |
20781 | # ac_d sets the value in "#define NAME VALUE" lines. | |
698dcdb6 VZ |
20782 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
20783 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
20784 | ac_dC='\3' | |
20785 | ac_dD='%g' | |
20786 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
20787 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
20788 | ac_uB='\([ ]\)%\1#\2define\3' | |
10f2d63a | 20789 | ac_uC=' ' |
698dcdb6 VZ |
20790 | ac_uD='\4%g' |
20791 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
20792 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
20793 | ac_eB='$%\1#\2define\3' | |
20794 | ac_eC=' ' | |
20795 | ac_eD='%g' | |
10f2d63a | 20796 | |
698dcdb6 VZ |
20797 | if test "${CONFIG_HEADERS+set}" != set; then |
20798 | EOF | |
20799 | cat >> $CONFIG_STATUS <<EOF | |
20800 | CONFIG_HEADERS="setup.h:setup.h.in" | |
20801 | EOF | |
20802 | cat >> $CONFIG_STATUS <<\EOF | |
20803 | fi | |
20804 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
10f2d63a | 20805 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
698dcdb6 VZ |
20806 | case "$ac_file" in |
20807 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
20808 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
20809 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
20810 | esac |
20811 | ||
698dcdb6 VZ |
20812 | echo creating $ac_file |
20813 | ||
20814 | rm -f conftest.frag conftest.in conftest.out | |
20815 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
20816 | cat $ac_file_inputs > conftest.in | |
20817 | ||
20818 | EOF | |
20819 | ||
20820 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
20821 | # the proper values into config.h.in to produce config.h. And first: | |
20822 | # Protect against being on the right side of a sed subst in config.status. | |
20823 | # Protect against being in an unquoted here document in config.status. | |
20824 | rm -f conftest.vals | |
20825 | cat > conftest.hdr <<\EOF | |
20826 | s/[\\&%]/\\&/g | |
20827 | s%[\\$`]%\\&%g | |
20828 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
20829 | s%ac_d%ac_u%gp | |
20830 | s%ac_u%ac_e%gp | |
20831 | EOF | |
20832 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
20833 | rm -f conftest.hdr | |
10f2d63a VZ |
20834 | |
20835 | # This sed command replaces #undef with comments. This is necessary, for | |
20836 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
20837 | # on some systems where configure will not decide to define it. | |
698dcdb6 VZ |
20838 | cat >> conftest.vals <<\EOF |
20839 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
10f2d63a VZ |
20840 | EOF |
20841 | ||
698dcdb6 VZ |
20842 | # Break up conftest.vals because some shells have a limit on |
20843 | # the size of here documents, and old seds have small limits too. | |
10f2d63a VZ |
20844 | |
20845 | rm -f conftest.tail | |
698dcdb6 | 20846 | while : |
10f2d63a | 20847 | do |
698dcdb6 VZ |
20848 | ac_lines=`grep -c . conftest.vals` |
20849 | # grep -c gives empty output for an empty file on some AIX systems. | |
20850 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
20851 | # Write a limited-size here document to conftest.frag. | |
20852 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
20853 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
10f2d63a | 20854 | echo 'CEOF |
698dcdb6 VZ |
20855 | sed -f conftest.frag conftest.in > conftest.out |
20856 | rm -f conftest.in | |
20857 | mv conftest.out conftest.in | |
20858 | ' >> $CONFIG_STATUS | |
20859 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
20860 | rm -f conftest.vals | |
20861 | mv conftest.tail conftest.vals | |
10f2d63a | 20862 | done |
698dcdb6 VZ |
20863 | rm -f conftest.vals |
20864 | ||
20865 | cat >> $CONFIG_STATUS <<\EOF | |
20866 | rm -f conftest.frag conftest.h | |
20867 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
20868 | cat conftest.in >> conftest.h | |
20869 | rm -f conftest.in | |
20870 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
20871 | echo "$ac_file is unchanged" | |
20872 | rm -f conftest.h | |
10f2d63a | 20873 | else |
698dcdb6 VZ |
20874 | # Remove last slash and all that follows it. Not all systems have dirname. |
20875 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
10f2d63a | 20876 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
698dcdb6 VZ |
20877 | # The file is in a subdirectory. |
20878 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
10f2d63a | 20879 | fi |
698dcdb6 VZ |
20880 | rm -f $ac_file |
20881 | mv conftest.h $ac_file | |
10f2d63a | 20882 | fi |
698dcdb6 VZ |
20883 | fi; done |
20884 | ||
10f2d63a | 20885 | EOF |
698dcdb6 | 20886 | cat >> $CONFIG_STATUS <<EOF |
10f2d63a | 20887 | |
3a922bb4 | 20888 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}" |
698dcdb6 VZ |
20889 | LN_S="${LN_S}" |
20890 | ||
20891 | ||
20892 | EOF | |
20893 | cat >> $CONFIG_STATUS <<\EOF | |
10f2d63a | 20894 | |
652d930d | 20895 | if test ! -h wx-config; then |
991a5759 | 20896 | chmod +x wx-config |
3a922bb4 RL |
20897 | mv wx-config wx${TOOLCHAIN_NAME}-config |
20898 | ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config | |
991a5759 | 20899 | fi |
665bbe97 | 20900 | |
00cf1208 RR |
20901 | if test ! -d lib; then |
20902 | mkdir lib | |
20903 | fi | |
20904 | if test ! -d lib/wx; then | |
20905 | mkdir lib/wx | |
20906 | fi | |
20907 | if test ! -d lib/wx/include; then | |
20908 | mkdir lib/wx/include | |
20909 | fi | |
3a922bb4 RL |
20910 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then |
20911 | mkdir lib/wx/include/${TOOLCHAIN_NAME} | |
00cf1208 | 20912 | fi |
3a922bb4 RL |
20913 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then |
20914 | mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx | |
00cf1208 RR |
20915 | fi |
20916 | if test -f setup.h; then | |
3a922bb4 | 20917 | mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h |
00cf1208 | 20918 | fi |
698dcdb6 VZ |
20919 | |
20920 | exit 0 | |
10f2d63a VZ |
20921 | EOF |
20922 | chmod +x $CONFIG_STATUS | |
698dcdb6 VZ |
20923 | rm -fr confdefs* $ac_clean_files |
20924 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
10f2d63a | 20925 | |
2224580a VZ |
20926 | if test "$no_recursion" != yes; then |
20927 | ||
20928 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
20929 | ac_sub_configure_args= | |
20930 | ac_prev= | |
20931 | for ac_arg in $ac_configure_args; do | |
20932 | if test -n "$ac_prev"; then | |
20933 | ac_prev= | |
20934 | continue | |
20935 | fi | |
698dcdb6 | 20936 | case "$ac_arg" in |
2224580a VZ |
20937 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
20938 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
20939 | ac_prev=cache_file ;; | |
20940 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
698dcdb6 | 20941 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
2224580a VZ |
20942 | ;; |
20943 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
20944 | ac_prev=srcdir ;; | |
20945 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
20946 | ;; | |
20947 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
20948 | esac | |
20949 | done | |
20950 | ||
698dcdb6 | 20951 | for ac_config_dir in demos samples utils contrib; do |
2224580a VZ |
20952 | |
20953 | # Do not complain, so a configure script can configure whichever | |
20954 | # parts of a large source tree are present. | |
698dcdb6 VZ |
20955 | if test ! -d $srcdir/$ac_config_dir; then |
20956 | continue | |
20957 | fi | |
20958 | ||
20959 | echo configuring in $ac_config_dir | |
2224580a | 20960 | |
698dcdb6 | 20961 | case "$srcdir" in |
2224580a VZ |
20962 | .) ;; |
20963 | *) | |
698dcdb6 VZ |
20964 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; |
20965 | else | |
20966 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
20967 | fi | |
20968 | ;; | |
2224580a VZ |
20969 | esac |
20970 | ||
20971 | ac_popdir=`pwd` | |
698dcdb6 | 20972 | cd $ac_config_dir |
2224580a | 20973 | |
698dcdb6 VZ |
20974 | # A "../" for each directory in /$ac_config_dir. |
20975 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
2224580a | 20976 | |
698dcdb6 | 20977 | case "$srcdir" in |
2224580a VZ |
20978 | .) # No --srcdir option. We are building in place. |
20979 | ac_sub_srcdir=$srcdir ;; | |
698dcdb6 VZ |
20980 | /*) # Absolute path. |
20981 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
2224580a | 20982 | *) # Relative path. |
698dcdb6 | 20983 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; |
2224580a VZ |
20984 | esac |
20985 | ||
20986 | # Check for guested configure; otherwise get Cygnus style configure. | |
698dcdb6 VZ |
20987 | if test -f $ac_sub_srcdir/configure; then |
20988 | ac_sub_configure=$ac_sub_srcdir/configure | |
2224580a VZ |
20989 | elif test -f $ac_sub_srcdir/configure.in; then |
20990 | ac_sub_configure=$ac_configure | |
20991 | else | |
698dcdb6 | 20992 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 |
2224580a VZ |
20993 | ac_sub_configure= |
20994 | fi | |
20995 | ||
20996 | # The recursion is here. | |
20997 | if test -n "$ac_sub_configure"; then | |
698dcdb6 | 20998 | |
2224580a | 20999 | # Make the cache file name correct relative to the subdirectory. |
698dcdb6 VZ |
21000 | case "$cache_file" in |
21001 | /*) ac_sub_cache_file=$cache_file ;; | |
2224580a | 21002 | *) # Relative path. |
698dcdb6 | 21003 | ac_sub_cache_file="$ac_dots$cache_file" ;; |
2224580a | 21004 | esac |
698dcdb6 VZ |
21005 | case "$ac_given_INSTALL" in |
21006 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
21007 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
21008 | esac | |
2224580a | 21009 | |
698dcdb6 | 21010 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" |
2224580a | 21011 | # The eval makes quoting arguments work. |
698dcdb6 VZ |
21012 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir |
21013 | then : | |
21014 | else | |
21015 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
21016 | fi | |
2224580a VZ |
21017 | fi |
21018 | ||
21019 | cd $ac_popdir | |
21020 | done | |
21021 | fi | |
21022 | ||
698dcdb6 | 21023 |