]>
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 | ||
8168de4c VZ |
38 | |
39 | # Configure paths for GTK+ | |
40 | # Owen Taylor 97-11-3 | |
698dcdb6 VZ |
41 | |
42 | ||
43 | ||
44 | ||
698dcdb6 VZ |
45 | |
46 | ||
47 | # Guess values for system-dependent variables and create Makefiles. | |
48 | # Generated automatically using autoconf version 2.13 | |
49 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. | |
50 | # | |
51 | # This configure script is free software; the Free Software Foundation | |
52 | # gives unlimited permission to copy, distribute and modify it. | |
53 | ||
54 | # Defaults: | |
55 | ac_help= | |
56 | ac_default_prefix=/usr/local | |
57 | # Any additions from configure.in: | |
58 | ac_help="$ac_help | |
8168de4c | 59 | --enable-gui use GUI classes" |
1e6feb95 | 60 | ac_help="$ac_help |
8168de4c | 61 | --enable-universal use wxWindows GUI controls instead of native ones" |
698dcdb6 VZ |
62 | ac_help="$ac_help |
63 | --with-gtk use GTK+" | |
64 | ac_help="$ac_help | |
65 | --with-motif use Motif/Lesstif" | |
66 | ac_help="$ac_help | |
67 | --with-mac use Mac OS X" | |
68 | ac_help="$ac_help | |
69 | --with-wine use WINE" | |
70 | ac_help="$ac_help | |
71 | --with-cygwin use Cygwin for MS-Windows" | |
72 | ac_help="$ac_help | |
73 | --with-mingw use GCC Minimal MS-Windows" | |
74 | ac_help="$ac_help | |
75 | --with-pm use OS/2 Presentation Manager" | |
1e6feb95 | 76 | ac_help="$ac_help |
b3e8d00a | 77 | --with-mgl use SciTech MGL" |
698dcdb6 | 78 | ac_help="$ac_help |
8168de4c | 79 | --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)" |
698dcdb6 | 80 | ac_help="$ac_help |
8168de4c | 81 | --with-libpng use libpng (PNG image format)" |
698dcdb6 | 82 | ac_help="$ac_help |
8168de4c | 83 | --with-libjpeg use libjpeg (JPEG file format)" |
698dcdb6 | 84 | ac_help="$ac_help |
8168de4c | 85 | --with-libtiff use libtiff (TIFF file format)" |
698dcdb6 | 86 | ac_help="$ac_help |
8168de4c | 87 | --with-freetype use freetype (font rasterizer)" |
698dcdb6 | 88 | ac_help="$ac_help |
8168de4c | 89 | --with-opengl use OpenGL (or Mesa)" |
698dcdb6 | 90 | ac_help="$ac_help |
8168de4c | 91 | --with-dmalloc use dmalloc library (www.letters.com/dmalloc)" |
3e44f09d VZ |
92 | ac_help="$ac_help |
93 | --with-regex enable support for wxRegEx class" | |
698dcdb6 | 94 | ac_help="$ac_help |
8168de4c | 95 | --with-zlib use zlib for LZW compression" |
698dcdb6 | 96 | ac_help="$ac_help |
8168de4c | 97 | --with-odbc use the IODBC and wxODBC classes" |
698dcdb6 | 98 | ac_help="$ac_help |
8168de4c | 99 | --enable-shared create shared library code" |
698dcdb6 | 100 | ac_help="$ac_help |
3a922bb4 | 101 | --enable-soname set the DT_SONAME field in ELF shared libraries" |
698dcdb6 | 102 | ac_help="$ac_help |
8168de4c | 103 | --enable-optimise create optimised code" |
698dcdb6 | 104 | ac_help="$ac_help |
8168de4c | 105 | --enable-debug same as debug_flag and debug_info" |
698dcdb6 | 106 | ac_help="$ac_help |
8168de4c | 107 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)" |
698dcdb6 | 108 | ac_help="$ac_help |
8168de4c | 109 | --enable-debug_info create code with debugging information" |
698dcdb6 | 110 | ac_help="$ac_help |
8168de4c | 111 | --enable-debug_gdb create code with extra GDB debugging information" |
698dcdb6 | 112 | ac_help="$ac_help |
8168de4c | 113 | --enable-debug_cntxt use wxDebugContext" |
698dcdb6 | 114 | ac_help="$ac_help |
8168de4c | 115 | --enable-mem_tracing create code with memory tracing" |
698dcdb6 | 116 | ac_help="$ac_help |
8168de4c | 117 | --enable-profile create code with profiling information" |
698dcdb6 | 118 | ac_help="$ac_help |
8168de4c | 119 | --enable-no_rtti create code without RTTI information" |
698dcdb6 | 120 | ac_help="$ac_help |
b3e8d00a | 121 | --enable-no_exceptions create code without C++ exceptions handling" |
698dcdb6 | 122 | ac_help="$ac_help |
8168de4c | 123 | --enable-permissive compile code disregarding strict ANSI" |
698dcdb6 | 124 | ac_help="$ac_help |
8168de4c | 125 | --enable-no_deps create code without dependency information" |
54276ccf | 126 | ac_help="$ac_help |
b3e8d00a | 127 | --enable-compat20 enable wxWindows 2.0 compatibility" |
54276ccf | 128 | ac_help="$ac_help |
b3e8d00a | 129 | --enable-compat22 enable wxWindows 2.2 compatibility" |
698dcdb6 | 130 | ac_help="$ac_help |
8168de4c | 131 | --enable-intl use internationalization system" |
698dcdb6 | 132 | ac_help="$ac_help |
8168de4c | 133 | --enable-config use wxConfig (and derived) classes" |
698dcdb6 | 134 | ac_help="$ac_help |
8168de4c | 135 | --enable-sockets use socket/network classes" |
698dcdb6 | 136 | ac_help="$ac_help |
8168de4c | 137 | --enable-ipc use interprocess communication (wxSocket etc.)" |
698dcdb6 | 138 | ac_help="$ac_help |
8168de4c | 139 | --enable-cmdline use wxCmdLineParser class" |
1e6feb95 | 140 | ac_help="$ac_help |
8168de4c | 141 | --enable-datetime use wxDateTime class" |
1e6feb95 | 142 | ac_help="$ac_help |
8168de4c | 143 | --enable-timedate use obsolete wxDate/wxTime classes" |
1e6feb95 | 144 | ac_help="$ac_help |
8168de4c | 145 | --enable-stopwatch use wxStopWatch class" |
1e6feb95 | 146 | ac_help="$ac_help |
8168de4c | 147 | --enable-dialupman use dialup network classes" |
698dcdb6 | 148 | ac_help="$ac_help |
8168de4c | 149 | --enable-apple_ieee use the Apple IEEE codec" |
698dcdb6 | 150 | ac_help="$ac_help |
8168de4c | 151 | --enable-timer use wxTimer class" |
698dcdb6 | 152 | ac_help="$ac_help |
8168de4c | 153 | --enable-wave use wxWave class" |
698dcdb6 | 154 | ac_help="$ac_help |
8168de4c | 155 | --enable-fraction use wxFraction class" |
698dcdb6 | 156 | ac_help="$ac_help |
8168de4c | 157 | --enable-dynlib use wxLibrary class for DLL loading" |
698dcdb6 | 158 | ac_help="$ac_help |
8168de4c | 159 | --enable-longlong use wxLongLong class" |
698dcdb6 | 160 | ac_help="$ac_help |
8168de4c | 161 | --enable-geometry use geometry class" |
698dcdb6 | 162 | ac_help="$ac_help |
8168de4c | 163 | --enable-log use logging system" |
698dcdb6 | 164 | ac_help="$ac_help |
8168de4c | 165 | --enable-streams use wxStream etc classes" |
698dcdb6 | 166 | ac_help="$ac_help |
8168de4c | 167 | --enable-file use wxFile classes" |
698dcdb6 | 168 | ac_help="$ac_help |
8168de4c | 169 | --enable-ffile use wxFFile classes" |
1e6feb95 | 170 | ac_help="$ac_help |
8168de4c | 171 | --enable-textfile use wxTextFile classes" |
698dcdb6 | 172 | ac_help="$ac_help |
8168de4c | 173 | --enable-fontmap use font encodings conversion classes" |
1e6feb95 | 174 | ac_help="$ac_help |
8168de4c | 175 | --enable-unicode compile wxString with Unicode support" |
698dcdb6 | 176 | ac_help="$ac_help |
8168de4c | 177 | --enable-wxprintfv use wxWindows implementation of vprintf()" |
698dcdb6 | 178 | ac_help="$ac_help |
8168de4c | 179 | --enable-std_iostreams use standard C++ stream classes" |
698dcdb6 | 180 | ac_help="$ac_help |
8168de4c | 181 | --enable-filesystem use virtual file systems classes" |
698dcdb6 | 182 | ac_help="$ac_help |
8168de4c | 183 | --enable-fs_inet use virtual HTTP/FTP filesystems" |
698dcdb6 | 184 | ac_help="$ac_help |
8168de4c | 185 | --enable-fs_zip use virtual ZIP filesystems" |
698dcdb6 | 186 | ac_help="$ac_help |
8168de4c | 187 | --enable-zipstream use wxZipInputStream" |
698dcdb6 | 188 | ac_help="$ac_help |
8168de4c | 189 | --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException" |
698dcdb6 | 190 | ac_help="$ac_help |
8168de4c | 191 | --enable-snglinst use wxSingleInstanceChecker class" |
698dcdb6 | 192 | ac_help="$ac_help |
8168de4c | 193 | --enable-mimetypes use wxMimeTypesManager" |
3e44f09d | 194 | ac_help="$ac_help |
b3e8d00a | 195 | --enable-sysoptions use wxSystemOptions" |
1e6feb95 | 196 | ac_help="$ac_help |
8168de4c | 197 | --enable-threads use threads" |
698dcdb6 | 198 | ac_help="$ac_help |
8168de4c | 199 | --enable-serial use class serialization" |
698dcdb6 | 200 | ac_help="$ac_help |
8168de4c | 201 | --enable-docview use document view architecture" |
698dcdb6 | 202 | ac_help="$ac_help |
3379ed37 | 203 | --enable-help use help subsystem" |
29fd3c0c VS |
204 | ac_help="$ac_help |
205 | --enable-mshtmlhelp use MS HTML Help (win32)" | |
3379ed37 VZ |
206 | ac_help="$ac_help |
207 | --enable-html use wxHTML sub-library" | |
208 | ac_help="$ac_help | |
209 | --enable-htmlhelp use wxHTML-based help" | |
698dcdb6 | 210 | ac_help="$ac_help |
8168de4c | 211 | --enable-constraints use layout-constraints system" |
698dcdb6 | 212 | ac_help="$ac_help |
8168de4c | 213 | --enable-printarch use printing architecture" |
698dcdb6 | 214 | ac_help="$ac_help |
8168de4c | 215 | --enable-mdi use multiple document interface architecture" |
698dcdb6 | 216 | ac_help="$ac_help |
8168de4c | 217 | --enable-loggui use standard GUI logger" |
1e6feb95 | 218 | ac_help="$ac_help |
8168de4c | 219 | --enable-logwin use wxLogWindow" |
1e6feb95 | 220 | ac_help="$ac_help |
8168de4c | 221 | --enable-postscript use wxPostscriptDC device context (default for gtk+)" |
698dcdb6 | 222 | ac_help="$ac_help |
8168de4c | 223 | --enable-prologio use Prolog IO library" |
698dcdb6 | 224 | ac_help="$ac_help |
8168de4c | 225 | --enable-resources use wxWindows resources" |
698dcdb6 | 226 | ac_help="$ac_help |
8168de4c | 227 | --enable-xresources use X resources for save (default for gtk+)" |
698dcdb6 | 228 | ac_help="$ac_help |
8168de4c | 229 | --enable-clipboard use wxClipboard classes" |
698dcdb6 | 230 | ac_help="$ac_help |
8168de4c | 231 | --enable-dnd use Drag'n'Drop classes" |
698dcdb6 | 232 | ac_help="$ac_help |
8168de4c | 233 | --enable-metafile use win32 metafiles" |
698dcdb6 | 234 | ac_help="$ac_help |
24176f2c | 235 | --enable-treelayout use wxTreeLayout classes" |
698dcdb6 | 236 | ac_help="$ac_help |
8168de4c | 237 | --enable-controls use all usual controls" |
698dcdb6 | 238 | ac_help="$ac_help |
8168de4c | 239 | --enable-accel use accelerators" |
698dcdb6 | 240 | ac_help="$ac_help |
8168de4c | 241 | --enable-button use wxButton class" |
698dcdb6 | 242 | ac_help="$ac_help |
8168de4c | 243 | --enable-bmpbutton use wxBitmapButton class" |
698dcdb6 | 244 | ac_help="$ac_help |
8168de4c | 245 | --enable-calendar use wxCalendarCtrl class" |
1e6feb95 | 246 | ac_help="$ac_help |
8168de4c | 247 | --enable-caret use wxCaret class" |
1e6feb95 | 248 | ac_help="$ac_help |
8168de4c | 249 | --enable-checkbox use wxCheckBox class" |
698dcdb6 | 250 | ac_help="$ac_help |
8168de4c | 251 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class" |
698dcdb6 | 252 | ac_help="$ac_help |
8168de4c | 253 | --enable-choice use wxChoice class" |
698dcdb6 | 254 | ac_help="$ac_help |
8168de4c | 255 | --enable-combobox use wxComboBox classes" |
698dcdb6 | 256 | ac_help="$ac_help |
8168de4c | 257 | --enable-gauge use wxGauge class" |
698dcdb6 | 258 | ac_help="$ac_help |
8168de4c | 259 | --enable-grid use wxGrid class" |
698dcdb6 | 260 | ac_help="$ac_help |
8168de4c | 261 | --enable-newgrid use new wxGrid class" |
698dcdb6 | 262 | ac_help="$ac_help |
8168de4c | 263 | --enable-imaglist use wxImageList class" |
698dcdb6 | 264 | ac_help="$ac_help |
8168de4c | 265 | --enable-listbox use wxListBox class" |
698dcdb6 | 266 | ac_help="$ac_help |
8168de4c | 267 | --enable-listctrl use wxListCtrl class" |
698dcdb6 | 268 | ac_help="$ac_help |
8168de4c | 269 | --enable-notebook use wxNotebook class" |
24176f2c GD |
270 | ac_help="$ac_help |
271 | --enable-propsheet use wxPropertySheet class" | |
698dcdb6 | 272 | ac_help="$ac_help |
8168de4c | 273 | --enable-radiobox use wxRadioBox class" |
698dcdb6 | 274 | ac_help="$ac_help |
8168de4c | 275 | --enable-radiobtn use wxRadioButton class" |
698dcdb6 | 276 | ac_help="$ac_help |
8168de4c | 277 | --enable-sash use wxSashWindow class" |
698dcdb6 | 278 | ac_help="$ac_help |
8168de4c | 279 | --enable-scrollbar use wxScrollBar class and scrollable windows" |
698dcdb6 | 280 | ac_help="$ac_help |
8168de4c | 281 | --enable-slider use wxSlider class" |
698dcdb6 | 282 | ac_help="$ac_help |
8168de4c | 283 | --enable-spinbtn use wxSpinButton class" |
698dcdb6 | 284 | ac_help="$ac_help |
8168de4c | 285 | --enable-spinctrl use wxSpinCtrl class" |
698dcdb6 | 286 | ac_help="$ac_help |
8168de4c | 287 | --enable-splitter use wxSplitterWindow class" |
698dcdb6 | 288 | ac_help="$ac_help |
8168de4c | 289 | --enable-statbmp use wxStaticBitmap class" |
698dcdb6 | 290 | ac_help="$ac_help |
8168de4c | 291 | --enable-statbox use wxStaticBox class" |
698dcdb6 | 292 | ac_help="$ac_help |
8168de4c | 293 | --enable-statline use wxStaticLine class" |
698dcdb6 | 294 | ac_help="$ac_help |
8168de4c | 295 | --enable-stattext use wxStaticText class" |
1e6feb95 | 296 | ac_help="$ac_help |
8168de4c | 297 | --enable-statusbar use wxStatusBar class" |
698dcdb6 | 298 | ac_help="$ac_help |
8168de4c | 299 | --enable-tabdialog use wxTabControl class" |
698dcdb6 | 300 | ac_help="$ac_help |
8168de4c | 301 | --enable-textctrl use wxTextCtrl class" |
1e6feb95 | 302 | ac_help="$ac_help |
8168de4c | 303 | --enable-togglebtn use wxToggleButton class" |
698dcdb6 | 304 | ac_help="$ac_help |
8168de4c | 305 | --enable-toolbar use wxToolBar class" |
698dcdb6 | 306 | ac_help="$ac_help |
8168de4c | 307 | --enable-tbarnative use native wxToolBar class" |
698dcdb6 | 308 | ac_help="$ac_help |
8168de4c | 309 | --enable-tbarsmpl use wxToolBarSimple class" |
698dcdb6 | 310 | ac_help="$ac_help |
8168de4c | 311 | --enable-treectrl use wxTreeCtrl class" |
9f41d601 RR |
312 | ac_help="$ac_help |
313 | --enable-popupwin use wxPopUpWindow class" | |
698dcdb6 | 314 | ac_help="$ac_help |
b3e8d00a | 315 | --enable-commondlg use all common dialogs" |
698dcdb6 | 316 | ac_help="$ac_help |
8168de4c | 317 | --enable-choicedlg use wxChoiceDialog" |
1e6feb95 | 318 | ac_help="$ac_help |
8168de4c | 319 | --enable-coldlg use wxColourDialog" |
1e6feb95 | 320 | ac_help="$ac_help |
8168de4c | 321 | --enable-filedlg use wxFileDialog" |
8db37e06 VZ |
322 | ac_help="$ac_help |
323 | --enable-finddlg use wxFindReplaceDialog" | |
1e6feb95 | 324 | ac_help="$ac_help |
8168de4c | 325 | --enable-fontdlg use wxFontDialog" |
1e6feb95 | 326 | ac_help="$ac_help |
8168de4c | 327 | --enable-dirdlg use wxDirDialog" |
698dcdb6 | 328 | ac_help="$ac_help |
8168de4c | 329 | --enable-msgdlg use wxMessageDialog" |
1e6feb95 | 330 | ac_help="$ac_help |
8168de4c | 331 | --enable-numberdlg use wxNumberEntryDialog" |
cbca9943 VZ |
332 | ac_help="$ac_help |
333 | --enable-splash use wxSplashScreen" | |
1e6feb95 | 334 | ac_help="$ac_help |
8168de4c | 335 | --enable-textdlg use wxTextDialog" |
698dcdb6 | 336 | ac_help="$ac_help |
8168de4c | 337 | --enable-tipdlg use startup tips" |
698dcdb6 | 338 | ac_help="$ac_help |
8168de4c | 339 | --enable-progressdlg use wxProgressDialog" |
b1f5d087 VZ |
340 | ac_help="$ac_help |
341 | --enable-wizarddlg use wxWizard" | |
698dcdb6 | 342 | ac_help="$ac_help |
8168de4c | 343 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes" |
1e6feb95 | 344 | ac_help="$ac_help |
8168de4c | 345 | --enable-miniframe use wxMiniFrame class" |
698dcdb6 | 346 | ac_help="$ac_help |
8168de4c | 347 | --enable-tooltips use wxToolTip class" |
698dcdb6 | 348 | ac_help="$ac_help |
8168de4c | 349 | --enable-splines use spline drawing code" |
698dcdb6 | 350 | ac_help="$ac_help |
8168de4c | 351 | --enable-validators use wxValidator and derived classes" |
698dcdb6 | 352 | ac_help="$ac_help |
8168de4c | 353 | --enable-busyinfo use wxBusyInfo" |
698dcdb6 | 354 | ac_help="$ac_help |
b3e8d00a | 355 | --enable-joystick use wxJoystick (Linux only)" |
698dcdb6 | 356 | ac_help="$ac_help |
8168de4c | 357 | --enable-metafiles use wxMetaFile (Windows only)" |
24fd6d87 VZ |
358 | ac_help="$ac_help |
359 | --enable-dragimage use wxDragImage" | |
edae8572 VZ |
360 | ac_help="$ac_help |
361 | --enable-palette use wxPalette class" | |
1e6feb95 | 362 | ac_help="$ac_help |
8168de4c | 363 | --enable-image use wxImage class" |
698dcdb6 | 364 | ac_help="$ac_help |
8168de4c | 365 | --enable-gif use gif images (GIF file format)" |
698dcdb6 | 366 | ac_help="$ac_help |
8168de4c | 367 | --enable-pcx use pcx images (PCX file format)" |
698dcdb6 | 368 | ac_help="$ac_help |
8168de4c | 369 | --enable-pnm use pnm images (PNM file format)" |
698dcdb6 | 370 | ac_help="$ac_help |
8168de4c | 371 | --enable-xpm use xpm images (XPM file format)" |
698dcdb6 VZ |
372 | ac_help="$ac_help |
373 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
374 | ac_help="$ac_help | |
375 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
376 | ac_help="$ac_help | |
377 | --disable-gtktest Do not try to compile and run a test GTK program" | |
378 | ac_help="$ac_help | |
379 | --with-x use the X Window System" | |
10f2d63a VZ |
380 | |
381 | # Initialize some variables set by options. | |
382 | # The variables have the same names as the options, with | |
383 | # dashes changed to underlines. | |
698dcdb6 VZ |
384 | build=NONE |
385 | cache_file=./config.cache | |
10f2d63a | 386 | exec_prefix=NONE |
698dcdb6 | 387 | host=NONE |
10f2d63a | 388 | no_create= |
698dcdb6 | 389 | nonopt=NONE |
10f2d63a VZ |
390 | no_recursion= |
391 | prefix=NONE | |
392 | program_prefix=NONE | |
393 | program_suffix=NONE | |
394 | program_transform_name=s,x,x, | |
395 | silent= | |
396 | site= | |
397 | srcdir= | |
698dcdb6 | 398 | target=NONE |
10f2d63a VZ |
399 | verbose= |
400 | x_includes=NONE | |
401 | x_libraries=NONE | |
402 | bindir='${exec_prefix}/bin' | |
403 | sbindir='${exec_prefix}/sbin' | |
404 | libexecdir='${exec_prefix}/libexec' | |
405 | datadir='${prefix}/share' | |
406 | sysconfdir='${prefix}/etc' | |
407 | sharedstatedir='${prefix}/com' | |
408 | localstatedir='${prefix}/var' | |
409 | libdir='${exec_prefix}/lib' | |
410 | includedir='${prefix}/include' | |
411 | oldincludedir='/usr/include' | |
412 | infodir='${prefix}/info' | |
413 | mandir='${prefix}/man' | |
414 | ||
698dcdb6 VZ |
415 | # Initialize some other variables. |
416 | subdirs= | |
417 | MFLAGS= MAKEFLAGS= | |
418 | SHELL=${CONFIG_SHELL-/bin/sh} | |
419 | # Maximum number of lines to put in a shell here document. | |
420 | ac_max_here_lines=12 | |
10f2d63a VZ |
421 | |
422 | ac_prev= | |
423 | for ac_option | |
424 | do | |
698dcdb6 | 425 | |
10f2d63a VZ |
426 | # If the previous option needs an argument, assign it. |
427 | if test -n "$ac_prev"; then | |
428 | eval "$ac_prev=\$ac_option" | |
429 | ac_prev= | |
430 | continue | |
431 | fi | |
432 | ||
698dcdb6 VZ |
433 | case "$ac_option" in |
434 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
435 | *) ac_optarg= ;; | |
436 | esac | |
10f2d63a VZ |
437 | |
438 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
439 | ||
698dcdb6 | 440 | case "$ac_option" in |
10f2d63a VZ |
441 | |
442 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
443 | ac_prev=bindir ;; | |
444 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
698dcdb6 | 445 | bindir="$ac_optarg" ;; |
10f2d63a VZ |
446 | |
447 | -build | --build | --buil | --bui | --bu) | |
698dcdb6 | 448 | ac_prev=build ;; |
10f2d63a | 449 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
698dcdb6 | 450 | build="$ac_optarg" ;; |
10f2d63a VZ |
451 | |
452 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
453 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
454 | ac_prev=cache_file ;; | |
455 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
456 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
698dcdb6 | 457 | cache_file="$ac_optarg" ;; |
10f2d63a VZ |
458 | |
459 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
460 | ac_prev=datadir ;; | |
461 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
462 | | --da=*) | |
698dcdb6 | 463 | datadir="$ac_optarg" ;; |
10f2d63a VZ |
464 | |
465 | -disable-* | --disable-*) | |
698dcdb6 | 466 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
10f2d63a | 467 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
468 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
469 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
470 | fi | |
471 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
472 | eval "enable_${ac_feature}=no" ;; | |
10f2d63a VZ |
473 | |
474 | -enable-* | --enable-*) | |
698dcdb6 | 475 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
10f2d63a | 476 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
477 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
478 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
479 | fi | |
480 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
481 | case "$ac_option" in | |
482 | *=*) ;; | |
10f2d63a VZ |
483 | *) ac_optarg=yes ;; |
484 | esac | |
698dcdb6 | 485 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
10f2d63a VZ |
486 | |
487 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
488 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
489 | | --exec | --exe | --ex) | |
490 | ac_prev=exec_prefix ;; | |
491 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
492 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
493 | | --exec=* | --exe=* | --ex=*) | |
698dcdb6 | 494 | exec_prefix="$ac_optarg" ;; |
10f2d63a VZ |
495 | |
496 | -gas | --gas | --ga | --g) | |
497 | # Obsolete; use --with-gas. | |
498 | with_gas=yes ;; | |
499 | ||
698dcdb6 VZ |
500 | -help | --help | --hel | --he) |
501 | # Omit some internal or obsolete options to make the list less imposing. | |
502 | # This message is too long to be a string in the A/UX 3.1 sh. | |
503 | cat << EOF | |
504 | Usage: configure [options] [host] | |
505 | Options: [defaults in brackets after descriptions] | |
506 | Configuration: | |
507 | --cache-file=FILE cache test results in FILE | |
508 | --help print this message | |
509 | --no-create do not create output files | |
510 | --quiet, --silent do not print \`checking...' messages | |
511 | --version print the version of autoconf that created configure | |
512 | Directory and file names: | |
513 | --prefix=PREFIX install architecture-independent files in PREFIX | |
514 | [$ac_default_prefix] | |
515 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
516 | [same as prefix] | |
517 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
518 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
519 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
520 | --datadir=DIR read-only architecture-independent data in DIR | |
521 | [PREFIX/share] | |
522 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
523 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
524 | [PREFIX/com] | |
525 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
526 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
527 | --includedir=DIR C header files in DIR [PREFIX/include] | |
528 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
529 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
530 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
531 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
532 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
533 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
534 | --program-transform-name=PROGRAM | |
535 | run sed PROGRAM on installed program names | |
536 | EOF | |
537 | cat << EOF | |
538 | Host type: | |
539 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
540 | --host=HOST configure for HOST [guessed] | |
541 | --target=TARGET configure for TARGET [TARGET=HOST] | |
542 | Features and packages: | |
543 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
544 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
545 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
546 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
547 | --x-includes=DIR X include files are in DIR | |
548 | --x-libraries=DIR X library files are in DIR | |
549 | EOF | |
550 | if test -n "$ac_help"; then | |
551 | echo "--enable and --with options recognized:$ac_help" | |
552 | fi | |
553 | exit 0 ;; | |
10f2d63a VZ |
554 | |
555 | -host | --host | --hos | --ho) | |
698dcdb6 | 556 | ac_prev=host ;; |
10f2d63a | 557 | -host=* | --host=* | --hos=* | --ho=*) |
698dcdb6 | 558 | host="$ac_optarg" ;; |
10f2d63a VZ |
559 | |
560 | -includedir | --includedir | --includedi | --included | --include \ | |
561 | | --includ | --inclu | --incl | --inc) | |
562 | ac_prev=includedir ;; | |
563 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
564 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
698dcdb6 | 565 | includedir="$ac_optarg" ;; |
10f2d63a VZ |
566 | |
567 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
568 | ac_prev=infodir ;; | |
569 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
698dcdb6 | 570 | infodir="$ac_optarg" ;; |
10f2d63a VZ |
571 | |
572 | -libdir | --libdir | --libdi | --libd) | |
573 | ac_prev=libdir ;; | |
574 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
698dcdb6 | 575 | libdir="$ac_optarg" ;; |
10f2d63a VZ |
576 | |
577 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
578 | | --libexe | --libex | --libe) | |
579 | ac_prev=libexecdir ;; | |
580 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
581 | | --libexe=* | --libex=* | --libe=*) | |
698dcdb6 | 582 | libexecdir="$ac_optarg" ;; |
10f2d63a VZ |
583 | |
584 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
585 | | --localstate | --localstat | --localsta | --localst \ | |
586 | | --locals | --local | --loca | --loc | --lo) | |
587 | ac_prev=localstatedir ;; | |
588 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
589 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
590 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
698dcdb6 | 591 | localstatedir="$ac_optarg" ;; |
10f2d63a VZ |
592 | |
593 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
594 | ac_prev=mandir ;; | |
595 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
698dcdb6 | 596 | mandir="$ac_optarg" ;; |
10f2d63a VZ |
597 | |
598 | -nfp | --nfp | --nf) | |
599 | # Obsolete; use --without-fp. | |
600 | with_fp=no ;; | |
601 | ||
602 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
603 | | --no-cr | --no-c) | |
604 | no_create=yes ;; | |
605 | ||
606 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
607 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
608 | no_recursion=yes ;; | |
609 | ||
610 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
611 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
612 | | --oldin | --oldi | --old | --ol | --o) | |
613 | ac_prev=oldincludedir ;; | |
614 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
615 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
616 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
698dcdb6 | 617 | oldincludedir="$ac_optarg" ;; |
10f2d63a VZ |
618 | |
619 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
620 | ac_prev=prefix ;; | |
621 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
698dcdb6 | 622 | prefix="$ac_optarg" ;; |
10f2d63a VZ |
623 | |
624 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
625 | | --program-pre | --program-pr | --program-p) | |
626 | ac_prev=program_prefix ;; | |
627 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
628 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
698dcdb6 | 629 | program_prefix="$ac_optarg" ;; |
10f2d63a VZ |
630 | |
631 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
632 | | --program-suf | --program-su | --program-s) | |
633 | ac_prev=program_suffix ;; | |
634 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
635 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
698dcdb6 | 636 | program_suffix="$ac_optarg" ;; |
10f2d63a VZ |
637 | |
638 | -program-transform-name | --program-transform-name \ | |
639 | | --program-transform-nam | --program-transform-na \ | |
640 | | --program-transform-n | --program-transform- \ | |
641 | | --program-transform | --program-transfor \ | |
642 | | --program-transfo | --program-transf \ | |
643 | | --program-trans | --program-tran \ | |
644 | | --progr-tra | --program-tr | --program-t) | |
645 | ac_prev=program_transform_name ;; | |
646 | -program-transform-name=* | --program-transform-name=* \ | |
647 | | --program-transform-nam=* | --program-transform-na=* \ | |
648 | | --program-transform-n=* | --program-transform-=* \ | |
649 | | --program-transform=* | --program-transfor=* \ | |
650 | | --program-transfo=* | --program-transf=* \ | |
651 | | --program-trans=* | --program-tran=* \ | |
652 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
698dcdb6 | 653 | program_transform_name="$ac_optarg" ;; |
10f2d63a VZ |
654 | |
655 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
656 | | -silent | --silent | --silen | --sile | --sil) | |
657 | silent=yes ;; | |
658 | ||
659 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
660 | ac_prev=sbindir ;; | |
661 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
662 | | --sbi=* | --sb=*) | |
698dcdb6 | 663 | sbindir="$ac_optarg" ;; |
10f2d63a VZ |
664 | |
665 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
666 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
667 | | --sharedst | --shareds | --shared | --share | --shar \ | |
668 | | --sha | --sh) | |
669 | ac_prev=sharedstatedir ;; | |
670 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
671 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
672 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
673 | | --sha=* | --sh=*) | |
698dcdb6 | 674 | sharedstatedir="$ac_optarg" ;; |
10f2d63a VZ |
675 | |
676 | -site | --site | --sit) | |
677 | ac_prev=site ;; | |
678 | -site=* | --site=* | --sit=*) | |
698dcdb6 | 679 | site="$ac_optarg" ;; |
10f2d63a VZ |
680 | |
681 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
682 | ac_prev=srcdir ;; | |
683 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
698dcdb6 | 684 | srcdir="$ac_optarg" ;; |
10f2d63a VZ |
685 | |
686 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
687 | | --syscon | --sysco | --sysc | --sys | --sy) | |
688 | ac_prev=sysconfdir ;; | |
689 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
690 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
698dcdb6 | 691 | sysconfdir="$ac_optarg" ;; |
10f2d63a VZ |
692 | |
693 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
698dcdb6 | 694 | ac_prev=target ;; |
10f2d63a | 695 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
698dcdb6 | 696 | target="$ac_optarg" ;; |
10f2d63a VZ |
697 | |
698 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
699 | verbose=yes ;; | |
700 | ||
698dcdb6 VZ |
701 | -version | --version | --versio | --versi | --vers) |
702 | echo "configure generated by autoconf version 2.13" | |
703 | exit 0 ;; | |
10f2d63a VZ |
704 | |
705 | -with-* | --with-*) | |
698dcdb6 | 706 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
10f2d63a | 707 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
708 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
709 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
710 | fi | |
10f2d63a | 711 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
698dcdb6 VZ |
712 | case "$ac_option" in |
713 | *=*) ;; | |
10f2d63a VZ |
714 | *) ac_optarg=yes ;; |
715 | esac | |
698dcdb6 | 716 | eval "with_${ac_package}='$ac_optarg'" ;; |
10f2d63a VZ |
717 | |
718 | -without-* | --without-*) | |
698dcdb6 | 719 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
10f2d63a | 720 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
721 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
722 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
723 | fi | |
724 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
725 | eval "with_${ac_package}=no" ;; | |
10f2d63a VZ |
726 | |
727 | --x) | |
728 | # Obsolete; use --with-x. | |
729 | with_x=yes ;; | |
730 | ||
731 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
732 | | --x-incl | --x-inc | --x-in | --x-i) | |
733 | ac_prev=x_includes ;; | |
734 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
735 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
698dcdb6 | 736 | x_includes="$ac_optarg" ;; |
10f2d63a VZ |
737 | |
738 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
739 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
740 | ac_prev=x_libraries ;; | |
741 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
742 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
698dcdb6 | 743 | x_libraries="$ac_optarg" ;; |
10f2d63a | 744 | |
698dcdb6 | 745 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
10f2d63a VZ |
746 | ;; |
747 | ||
748 | *) | |
698dcdb6 VZ |
749 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
750 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
751 | fi | |
752 | if test "x$nonopt" != xNONE; then | |
753 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
754 | fi | |
755 | nonopt="$ac_option" | |
10f2d63a VZ |
756 | ;; |
757 | ||
758 | esac | |
759 | done | |
760 | ||
761 | if test -n "$ac_prev"; then | |
698dcdb6 VZ |
762 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
763 | fi | |
764 | ||
765 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
766 | ||
767 | # File descriptor usage: | |
768 | # 0 standard input | |
769 | # 1 file creation | |
770 | # 2 errors and warnings | |
771 | # 3 some systems may open it to /dev/tty | |
772 | # 4 used on the Kubota Titan | |
773 | # 6 checking for... messages and results | |
774 | # 5 compiler messages saved in config.log | |
775 | if test "$silent" = yes; then | |
776 | exec 6>/dev/null | |
777 | else | |
778 | exec 6>&1 | |
10f2d63a | 779 | fi |
698dcdb6 VZ |
780 | exec 5>./config.log |
781 | ||
782 | echo "\ | |
783 | This file contains any messages produced by compilers while | |
784 | running configure, to aid debugging if configure makes a mistake. | |
785 | " 1>&5 | |
10f2d63a | 786 | |
698dcdb6 VZ |
787 | # Strip out --no-create and --no-recursion so they do not pile up. |
788 | # Also quote any args containing shell metacharacters. | |
789 | ac_configure_args= | |
790 | for ac_arg | |
10f2d63a | 791 | do |
698dcdb6 VZ |
792 | case "$ac_arg" in |
793 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
794 | | --no-cr | --no-c) ;; | |
795 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
796 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
797 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
798 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
799 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
10f2d63a VZ |
800 | esac |
801 | done | |
802 | ||
698dcdb6 VZ |
803 | # NLS nuisances. |
804 | # Only set these to C if already set. These must not be set unconditionally | |
805 | # because not all systems understand e.g. LANG=C (notably SCO). | |
806 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
807 | # Non-C LC_CTYPE values break the ctype check. | |
808 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
809 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
810 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
811 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
10f2d63a | 812 | |
698dcdb6 VZ |
813 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
814 | rm -rf conftest* confdefs.h | |
815 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
816 | echo > confdefs.h | |
10f2d63a | 817 | |
698dcdb6 VZ |
818 | # A filename unique to this package, relative to the directory that |
819 | # configure is in, which we can look for to find out if srcdir is correct. | |
820 | ac_unique_file=wx-config.in | |
10f2d63a VZ |
821 | |
822 | # Find the source files, if location was not specified. | |
823 | if test -z "$srcdir"; then | |
824 | ac_srcdir_defaulted=yes | |
825 | # Try the directory containing this script, then its parent. | |
826 | ac_prog=$0 | |
698dcdb6 | 827 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
10f2d63a VZ |
828 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
829 | srcdir=$ac_confdir | |
830 | if test ! -r $srcdir/$ac_unique_file; then | |
831 | srcdir=.. | |
832 | fi | |
833 | else | |
834 | ac_srcdir_defaulted=no | |
835 | fi | |
836 | if test ! -r $srcdir/$ac_unique_file; then | |
837 | if test "$ac_srcdir_defaulted" = yes; then | |
698dcdb6 | 838 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
10f2d63a | 839 | else |
698dcdb6 | 840 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
10f2d63a VZ |
841 | fi |
842 | fi | |
698dcdb6 | 843 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
10f2d63a VZ |
844 | |
845 | # Prefer explicitly selected file to automatically selected ones. | |
846 | if test -z "$CONFIG_SITE"; then | |
847 | if test "x$prefix" != xNONE; then | |
848 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
849 | else | |
850 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
851 | fi | |
852 | fi | |
853 | for ac_site_file in $CONFIG_SITE; do | |
854 | if test -r "$ac_site_file"; then | |
698dcdb6 | 855 | echo "loading site script $ac_site_file" |
10f2d63a VZ |
856 | . "$ac_site_file" |
857 | fi | |
858 | done | |
859 | ||
860 | if test -r "$cache_file"; then | |
698dcdb6 VZ |
861 | echo "loading cache $cache_file" |
862 | . $cache_file | |
10f2d63a | 863 | else |
698dcdb6 VZ |
864 | echo "creating cache $cache_file" |
865 | > $cache_file | |
10f2d63a VZ |
866 | fi |
867 | ||
868 | ac_ext=c | |
698dcdb6 | 869 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 870 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
871 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
872 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
873 | cross_compiling=$ac_cv_prog_cc_cross | |
874 | ||
875 | ac_exeext= | |
876 | ac_objext=o | |
877 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
878 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
879 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
880 | ac_n= ac_c=' | |
881 | ' ac_t=' ' | |
882 | else | |
883 | ac_n=-n ac_c= ac_t= | |
884 | fi | |
10f2d63a | 885 | else |
698dcdb6 | 886 | ac_n= ac_c='\c' ac_t= |
10f2d63a | 887 | fi |
698dcdb6 VZ |
888 | |
889 | ||
10f2d63a | 890 | |
7c66a493 VZ |
891 | ac_aux_dir= |
892 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
893 | if test -f $ac_dir/install-sh; then | |
894 | ac_aux_dir=$ac_dir | |
895 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
896 | break | |
897 | elif test -f $ac_dir/install.sh; then | |
898 | ac_aux_dir=$ac_dir | |
899 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
900 | break | |
901 | fi | |
902 | done | |
903 | if test -z "$ac_aux_dir"; then | |
698dcdb6 | 904 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
7c66a493 | 905 | fi |
698dcdb6 VZ |
906 | ac_config_guess=$ac_aux_dir/config.guess |
907 | ac_config_sub=$ac_aux_dir/config.sub | |
908 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
703e0a69 | 909 | |
698dcdb6 VZ |
910 | |
911 | # Do some error checking and defaulting for the host and target type. | |
912 | # The inputs are: | |
913 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
914 | # | |
915 | # The rules are: | |
916 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
917 | # same time. | |
918 | # 2. Host defaults to nonopt. | |
919 | # 3. If nonopt is not specified, then host defaults to the current host, | |
920 | # as determined by config.guess. | |
921 | # 4. Target and build default to nonopt. | |
922 | # 5. If nonopt is not specified, then target and build default to host. | |
7c66a493 VZ |
923 | |
924 | # The aliases save the names the user supplied, while $host etc. | |
925 | # will get canonicalized. | |
698dcdb6 VZ |
926 | case $host---$target---$nonopt in |
927 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
928 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
929 | esac | |
930 | ||
931 | ||
932 | # Make sure we can run config.sub. | |
933 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
934 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
935 | fi | |
936 | ||
937 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
edae8572 | 938 | echo "configure:939: checking host system type" >&5 |
698dcdb6 VZ |
939 | |
940 | host_alias=$host | |
941 | case "$host_alias" in | |
942 | NONE) | |
943 | case $nonopt in | |
944 | NONE) | |
945 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
946 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
947 | fi ;; | |
948 | *) host_alias=$nonopt ;; | |
949 | esac ;; | |
950 | esac | |
951 | ||
952 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
953 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
954 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
955 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
956 | echo "$ac_t""$host" 1>&6 | |
957 | ||
958 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
edae8572 | 959 | echo "configure:960: checking target system type" >&5 |
698dcdb6 VZ |
960 | |
961 | target_alias=$target | |
962 | case "$target_alias" in | |
963 | NONE) | |
964 | case $nonopt in | |
965 | NONE) target_alias=$host_alias ;; | |
966 | *) target_alias=$nonopt ;; | |
967 | esac ;; | |
968 | esac | |
969 | ||
970 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
971 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
972 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
973 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
974 | echo "$ac_t""$target" 1>&6 | |
975 | ||
976 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
edae8572 | 977 | echo "configure:978: checking build system type" >&5 |
698dcdb6 VZ |
978 | |
979 | build_alias=$build | |
980 | case "$build_alias" in | |
981 | NONE) | |
982 | case $nonopt in | |
983 | NONE) build_alias=$host_alias ;; | |
984 | *) build_alias=$nonopt ;; | |
985 | esac ;; | |
986 | esac | |
987 | ||
988 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
989 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
990 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
991 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
992 | echo "$ac_t""$build" 1>&6 | |
993 | ||
994 | test "$host_alias" != "$target_alias" && | |
7c66a493 VZ |
995 | test "$program_prefix$program_suffix$program_transform_name" = \ |
996 | NONENONEs,x,x, && | |
997 | program_prefix=${target_alias}- | |
998 | ||
698dcdb6 VZ |
999 | |
1000 | ||
10f2d63a | 1001 | WX_MAJOR_VERSION_NUMBER=2 |
37d403aa | 1002 | WX_MINOR_VERSION_NUMBER=3 |
6c01ec02 | 1003 | WX_RELEASE_NUMBER=2 |
10f2d63a | 1004 | |
10f2d63a | 1005 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER |
10f2d63a | 1006 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER |
6426998c | 1007 | |
6c01ec02 | 1008 | WX_CURRENT=1 |
6426998c RL |
1009 | WX_REVISION=0 |
1010 | WX_AGE=0 | |
1011 | ||
698dcdb6 VZ |
1012 | |
1013 | ||
10f2d63a VZ |
1014 | USE_UNIX=1 |
1015 | USE_WIN32=0 | |
b12915c1 | 1016 | USE_BEOS=0 |
1216f52d | 1017 | USE_MAC=0 |
b12915c1 | 1018 | |
10f2d63a VZ |
1019 | USE_LINUX= |
1020 | USE_SGI= | |
1021 | USE_HPUX= | |
1022 | USE_SYSV= | |
1023 | USE_SVR4= | |
1024 | USE_AIX= | |
1025 | USE_SUN= | |
1026 | USE_SOLARIS= | |
1027 | USE_SUNOS= | |
1028 | USE_ALPHA= | |
1029 | USE_OSF= | |
1030 | USE_BSD= | |
f11bdd03 | 1031 | USE_DARWIN= |
10f2d63a | 1032 | USE_FREEBSD= |
95c8801c | 1033 | USE_OPENBSD= |
f6bcfd97 | 1034 | USE_NETBSD= |
10f2d63a VZ |
1035 | USE_VMS= |
1036 | USE_ULTRIX= | |
1037 | USE_CYGWIN= | |
1038 | USE_MINGW= | |
1039 | USE_DATA_GENERAL= | |
1040 | ||
ab9b9eab VZ |
1041 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 |
1042 | ||
1e6feb95 | 1043 | ALL_TOOLKITS="CYGWIN GTK MAC MGL MINGW MOTIF PM WINE" |
10f2d63a VZ |
1044 | |
1045 | DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1046 | DEFAULT_wxUSE_MAC=0 |
1047 | DEFAULT_wxUSE_MGL=0 | |
10f2d63a VZ |
1048 | DEFAULT_wxUSE_MOTIF=0 |
1049 | DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1050 | DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1051 | DEFAULT_wxUSE_WINE=0 |
10f2d63a VZ |
1052 | |
1053 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1054 | DEFAULT_DEFAULT_wxUSE_MAC=0 |
1055 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
10f2d63a VZ |
1056 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 |
1057 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1058 | DEFAULT_DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1059 | DEFAULT_DEFAULT_wxUSE_WINE=0 |
10f2d63a | 1060 | |
d6a55c4b | 1061 | PROGRAM_EXT= |
3a922bb4 | 1062 | SO_SUFFIX=so |
d6a55c4b | 1063 | |
10f2d63a VZ |
1064 | case "${host}" in |
1065 | *-hp-hpux* ) | |
1066 | USE_HPUX=1 | |
1067 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1068 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
3a922bb4 | 1069 | SO_SUFFIX=sl |
698dcdb6 | 1070 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1071 | #define __HPUX__ 1 |
1072 | EOF | |
1073 | ||
1074 | ;; | |
1075 | *-*-linux* ) | |
1076 | USE_LINUX=1 | |
698dcdb6 | 1077 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1078 | #define __LINUX__ 1 |
1079 | EOF | |
1080 | ||
1081 | TMP=`uname -m` | |
1082 | if test "x$TMP" = "xalpha"; then | |
1083 | USE_ALPHA=1 | |
698dcdb6 | 1084 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1085 | #define __ALPHA__ 1 |
1086 | EOF | |
1087 | ||
1088 | fi | |
1089 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1090 | ;; | |
1091 | *-*-irix5* | *-*-irix6* ) | |
1092 | USE_SGI=1 | |
1093 | USE_SVR4=1 | |
698dcdb6 | 1094 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1095 | #define __SGI__ 1 |
1096 | EOF | |
1097 | ||
698dcdb6 | 1098 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1099 | #define __SVR4__ 1 |
1100 | EOF | |
1101 | ||
1102 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1103 | ;; | |
1104 | *-*-solaris2* ) | |
1105 | USE_SUN=1 | |
1106 | USE_SOLARIS=1 | |
1107 | USE_SVR4=1 | |
698dcdb6 | 1108 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1109 | #define __SUN__ 1 |
1110 | EOF | |
1111 | ||
698dcdb6 | 1112 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1113 | #define __SOLARIS__ 1 |
1114 | EOF | |
1115 | ||
698dcdb6 | 1116 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1117 | #define __SVR4__ 1 |
1118 | EOF | |
1119 | ||
1120 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1121 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1122 | ;; |
1123 | *-*-sunos4* ) | |
1124 | USE_SUN=1 | |
1125 | USE_SUNOS=1 | |
1126 | USE_BSD=1 | |
698dcdb6 | 1127 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1128 | #define __SUN__ 1 |
1129 | EOF | |
1130 | ||
698dcdb6 | 1131 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1132 | #define __SUNOS__ 1 |
1133 | EOF | |
1134 | ||
698dcdb6 | 1135 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1136 | #define __BSD__ 1 |
1137 | EOF | |
1138 | ||
1139 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1140 | ;; | |
f6bcfd97 | 1141 | *-*-freebsd*) |
10f2d63a VZ |
1142 | USE_BSD=1 |
1143 | USE_FREEBSD=1 | |
698dcdb6 | 1144 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1145 | #define __FREEBSD__ 1 |
1146 | EOF | |
1147 | ||
698dcdb6 | 1148 | cat >> confdefs.h <<\EOF |
10f2d63a | 1149 | #define __BSD__ 1 |
95c8801c VS |
1150 | EOF |
1151 | ||
1152 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1153 | ;; | |
1154 | *-*-openbsd*) | |
1155 | USE_BSD=1 | |
1156 | USE_OPENBSD=1 | |
698dcdb6 | 1157 | cat >> confdefs.h <<\EOF |
95c8801c VS |
1158 | #define __FREEBSD__ 1 |
1159 | EOF | |
1160 | ||
698dcdb6 | 1161 | cat >> confdefs.h <<\EOF |
95c8801c | 1162 | #define __OPENBSD__ 1 |
f6bcfd97 BP |
1163 | EOF |
1164 | ||
1165 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1166 | ;; | |
1167 | *-*-netbsd*) | |
1168 | USE_BSD=1 | |
1169 | USE_NETBSD=1 | |
698dcdb6 | 1170 | cat >> confdefs.h <<\EOF |
f6bcfd97 BP |
1171 | #define __FREEBSD__ 1 |
1172 | EOF | |
1173 | ||
698dcdb6 | 1174 | cat >> confdefs.h <<\EOF |
f6bcfd97 | 1175 | #define __NETBSD__ 1 |
10f2d63a VZ |
1176 | EOF |
1177 | ||
1178 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1179 | ;; | |
1180 | *-*-osf* ) | |
1181 | USE_ALPHA=1 | |
1182 | USE_OSF=1 | |
698dcdb6 | 1183 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1184 | #define __ALPHA__ 1 |
1185 | EOF | |
1186 | ||
698dcdb6 | 1187 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1188 | #define __OSF__ 1 |
1189 | EOF | |
1190 | ||
1191 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
f6bcfd97 | 1192 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1193 | ;; |
1194 | *-*-dgux5* ) | |
1195 | USE_ALPHA=1 | |
1196 | USE_SVR4=1 | |
698dcdb6 | 1197 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1198 | #define __ALPHA__ 1 |
1199 | EOF | |
1200 | ||
698dcdb6 | 1201 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1202 | #define __SVR4__ 1 |
1203 | EOF | |
1204 | ||
1205 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1206 | ;; | |
1207 | *-*-sysv5* ) | |
1208 | USE_SYSV=1 | |
1209 | USE_SVR4=1 | |
698dcdb6 | 1210 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1211 | #define __SYSV__ 1 |
1212 | EOF | |
1213 | ||
698dcdb6 | 1214 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1215 | #define __SVR4__ 1 |
1216 | EOF | |
1217 | ||
1218 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1219 | ;; | |
1220 | *-*-aix* ) | |
1221 | USE_AIX=1 | |
1222 | USE_SYSV=1 | |
1223 | USE_SVR4=1 | |
698dcdb6 | 1224 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1225 | #define __AIX__ 1 |
1226 | EOF | |
1227 | ||
698dcdb6 | 1228 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1229 | #define __SYSV__ 1 |
1230 | EOF | |
1231 | ||
698dcdb6 | 1232 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1233 | #define __SVR4__ 1 |
1234 | EOF | |
1235 | ||
1236 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1237 | ;; | |
1238 | ||
1c8183e2 | 1239 | *-*-cygwin* | *-*-mingw32* ) |
10f2d63a VZ |
1240 | USE_UNIX=0 |
1241 | USE_WIN32=1 | |
3a922bb4 | 1242 | SO_SUFFIX=dll |
698dcdb6 | 1243 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1244 | #define __WIN32__ 1 |
1245 | EOF | |
1246 | ||
698dcdb6 | 1247 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1248 | #define __WIN95__ 1 |
1249 | EOF | |
1250 | ||
698dcdb6 | 1251 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1252 | #define __WINDOWS__ 1 |
1253 | EOF | |
1254 | ||
698dcdb6 | 1255 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1256 | #define __GNUWIN32__ 1 |
1257 | EOF | |
1258 | ||
698dcdb6 | 1259 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1260 | #define STRICT 1 |
1261 | EOF | |
1262 | ||
698dcdb6 | 1263 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1264 | #define WINVER 0x0400 |
1265 | EOF | |
1266 | ||
cf27ef00 | 1267 | PROGRAM_EXT=".exe" |
10f2d63a VZ |
1268 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
1269 | ;; | |
1270 | ||
1271 | *-pc-os2_emx ) | |
698dcdb6 | 1272 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1273 | #define __EMX__ 1 |
1274 | EOF | |
1275 | ||
cf27ef00 | 1276 | PROGRAM_EXT=".exe" |
e07802fc | 1277 | DEFAULT_DEFAULT_wxUSE_PM=1 |
10f2d63a VZ |
1278 | ;; |
1279 | ||
d08b457b GD |
1280 | powerpc-*-darwin* ) |
1281 | USE_BSD=1 | |
f11bdd03 | 1282 | USE_DARWIN=1 |
3a922bb4 | 1283 | SO_SUFFIX=dylib |
698dcdb6 | 1284 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1285 | #define __BSD__ 1 |
b4085ce6 GD |
1286 | EOF |
1287 | ||
698dcdb6 | 1288 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1289 | #define __DARWIN__ 1 |
d08b457b GD |
1290 | EOF |
1291 | ||
1292 | cat >> confdefs.h <<\EOF | |
1293 | #define __POWERPC__ 1 | |
b4085ce6 GD |
1294 | EOF |
1295 | ||
1296 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1297 | ;; | |
1298 | ||
b12915c1 VZ |
1299 | *-*-beos* ) |
1300 | USE_BEOS=1 | |
698dcdb6 | 1301 | cat >> confdefs.h <<\EOF |
b12915c1 VZ |
1302 | #define __BEOS__ 1 |
1303 | EOF | |
1304 | ||
1305 | ;; | |
1306 | ||
10f2d63a | 1307 | *) |
698dcdb6 | 1308 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } |
10f2d63a VZ |
1309 | esac |
1310 | ||
1311 | if test "$USE_UNIX" = 1 ; then | |
b12915c1 | 1312 | wxUSE_UNIX=yes |
698dcdb6 | 1313 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1314 | #define __UNIX__ 1 |
1315 | EOF | |
1316 | ||
10f2d63a VZ |
1317 | fi |
1318 | ||
2389f33b VZ |
1319 | if test "$USE_LINUX" = 1; then |
1320 | echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6 | |
d08b457b | 1321 | echo "configure:1322: checking for glibc 2.1 or later" >&5 |
2389f33b VZ |
1322 | if eval "test \"`echo '$''{'wx_lib_glibc21'+set}'`\" = set"; then |
1323 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1324 | else | |
1325 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 1326 | #line 1327 "configure" |
2389f33b VZ |
1327 | #include "confdefs.h" |
1328 | #include <features.h> | |
1329 | int main() { | |
1330 | ||
1331 | #if !__GLIBC_PREREQ(2, 1) | |
1332 | #error not glibc2.1 | |
1333 | #endif | |
1334 | ||
1335 | ; return 0; } | |
1336 | EOF | |
d08b457b | 1337 | if { (eval echo configure:1338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2389f33b VZ |
1338 | rm -rf conftest* |
1339 | ||
1340 | wx_lib_glibc21=yes | |
1341 | ||
1342 | else | |
1343 | echo "configure: failed program was:" >&5 | |
1344 | cat conftest.$ac_ext >&5 | |
1345 | rm -rf conftest* | |
1346 | ||
1347 | wx_lib_glibc21=no | |
1348 | ||
1349 | ||
1350 | fi | |
1351 | rm -f conftest* | |
1352 | ||
1353 | fi | |
1354 | ||
1355 | echo "$ac_t""$wx_lib_glibc21" 1>&6 | |
2389f33b VZ |
1356 | if test "$wx_lib_glibc21" = "yes"; then |
1357 | cat >> confdefs.h <<\EOF | |
1358 | #define wxHAVE_GLIBC2 1 | |
1359 | EOF | |
1360 | ||
1361 | fi | |
1362 | fi | |
10f2d63a | 1363 | |
1e487827 | 1364 | |
1e487827 | 1365 | |
6232543b | 1366 | |
10f2d63a VZ |
1367 | wx_arg_cache_file="configarg.cache" |
1368 | echo "loading argument cache $wx_arg_cache_file" | |
1369 | rm -f ${wx_arg_cache_file}.tmp | |
1370 | touch ${wx_arg_cache_file}.tmp | |
1371 | touch ${wx_arg_cache_file} | |
698dcdb6 | 1372 | |
10f2d63a VZ |
1373 | |
1374 | DEBUG_CONFIGURE=0 | |
1375 | if test $DEBUG_CONFIGURE = 1; then | |
1e6feb95 VZ |
1376 | DEFAULT_wxUSE_UNIVERSAL=no |
1377 | ||
10f2d63a VZ |
1378 | DEFAULT_wxUSE_THREADS=yes |
1379 | ||
1380 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1381 | DEFAULT_wxUSE_SONAME=no |
1e6feb95 | 1382 | DEFAULT_wxUSE_OPTIMISE=no |
10f2d63a VZ |
1383 | DEFAULT_wxUSE_PROFILE=no |
1384 | DEFAULT_wxUSE_NO_DEPS=no | |
1385 | DEFAULT_wxUSE_NO_RTTI=no | |
1386 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
1387 | DEFAULT_wxUSE_PERMISSIVE=no | |
1388 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1389 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1390 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1391 | DEFAULT_wxUSE_MEM_TRACING=no | |
1392 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1393 | DEFAULT_wxUSE_DMALLOC=no | |
1394 | DEFAULT_wxUSE_APPLE_IEEE=no | |
1395 | ||
1396 | DEFAULT_wxUSE_LOG=yes | |
1e6feb95 VZ |
1397 | DEFAULT_wxUSE_LOGWINDOW=no |
1398 | DEFAULT_wxUSE_LOGGUI=no | |
10f2d63a VZ |
1399 | |
1400 | DEFAULT_wxUSE_GUI=yes | |
1e6feb95 | 1401 | DEFAULT_wxUSE_CONTROLS=no |
10f2d63a | 1402 | |
3e44f09d | 1403 | DEFAULT_wxUSE_REGEX=no |
10f2d63a VZ |
1404 | DEFAULT_wxUSE_ZLIB=no |
1405 | DEFAULT_wxUSE_LIBPNG=no | |
1406 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 1407 | DEFAULT_wxUSE_LIBTIFF=no |
10f2d63a | 1408 | DEFAULT_wxUSE_ODBC=no |
3fed1840 | 1409 | DEFAULT_wxUSE_FREETYPE=no |
bdad4e7e | 1410 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1411 | |
eb4efbdc | 1412 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no |
4f3c5f06 | 1413 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
10f2d63a | 1414 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1415 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
1416 | DEFAULT_wxUSE_DATETIME=no | |
1417 | DEFAULT_wxUSE_TIMEDATE=no | |
1418 | DEFAULT_wxUSE_TIMER=no | |
1419 | DEFAULT_wxUSE_STOPWATCH=no | |
10f2d63a | 1420 | DEFAULT_wxUSE_FILE=no |
1e6feb95 | 1421 | DEFAULT_wxUSE_FFILE=no |
10f2d63a | 1422 | DEFAULT_wxUSE_TEXTFILE=no |
10f2d63a VZ |
1423 | DEFAULT_wxUSE_WAVE=no |
1424 | DEFAULT_wxUSE_INTL=no | |
1425 | DEFAULT_wxUSE_CONFIG=no | |
1e6feb95 | 1426 | DEFAULT_wxUSE_FONTMAP=no |
10f2d63a VZ |
1427 | DEFAULT_wxUSE_STREAMS=no |
1428 | DEFAULT_wxUSE_SOCKETS=no | |
1429 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
1430 | DEFAULT_wxUSE_SERIAL=no | |
1431 | DEFAULT_wxUSE_JOYSTICK=no | |
1432 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
1433 | DEFAULT_wxUSE_LONGLONG=no | |
e8f65ba6 | 1434 | DEFAULT_wxUSE_GEOMETRY=no |
10f2d63a VZ |
1435 | |
1436 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1437 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1438 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1439 | ||
1440 | DEFAULT_wxUSE_X_RESOURCES=no | |
1441 | DEFAULT_wxUSE_CLIPBOARD=no | |
1442 | DEFAULT_wxUSE_TOOLTIPS=no | |
1443 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
24fd6d87 | 1444 | DEFAULT_wxUSE_DRAGIMAGE=no |
10f2d63a VZ |
1445 | DEFAULT_wxUSE_SPLINES=no |
1446 | ||
1447 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1448 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1449 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1450 | ||
1451 | DEFAULT_wxUSE_PROLOGIO=no | |
1452 | DEFAULT_wxUSE_RESOURCES=no | |
1453 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1454 | DEFAULT_wxUSE_IPC=no | |
1455 | DEFAULT_wxUSE_HELP=no | |
29fd3c0c | 1456 | DEFAULT_wxUSE_MS_HTML_HELP=no |
3379ed37 | 1457 | DEFAULT_wxUSE_WXHTML_HELP=no |
24176f2c | 1458 | DEFAULT_wxUSE_TREELAYOUT=no |
10f2d63a | 1459 | DEFAULT_wxUSE_METAFILE=no |
1e6feb95 | 1460 | DEFAULT_wxUSE_MIMETYPE=no |
3e44f09d | 1461 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes |
10f2d63a VZ |
1462 | |
1463 | DEFAULT_wxUSE_COMMONDLGS=no | |
1e6feb95 VZ |
1464 | DEFAULT_wxUSE_CHOICEDLG=no |
1465 | DEFAULT_wxUSE_COLOURDLG=no | |
10f2d63a | 1466 | DEFAULT_wxUSE_DIRDLG=no |
1e6feb95 | 1467 | DEFAULT_wxUSE_FILEDLG=no |
8db37e06 | 1468 | DEFAULT_wxUSE_FINDREPLDLG=no |
1e6feb95 VZ |
1469 | DEFAULT_wxUSE_FONTDLG=no |
1470 | DEFAULT_wxUSE_MSGDLG=no | |
1471 | DEFAULT_wxUSE_NUMBERDLG=no | |
10f2d63a | 1472 | DEFAULT_wxUSE_TEXTDLG=no |
cbca9943 | 1473 | DEFAULT_wxUSE_SPLASH=no |
10f2d63a VZ |
1474 | DEFAULT_wxUSE_STARTUP_TIPS=no |
1475 | DEFAULT_wxUSE_PROGRESSDLG=no | |
b1f5d087 VZ |
1476 | DEFAULT_wxUSE_WIZARDDLG=no |
1477 | ||
1e6feb95 | 1478 | DEFAULT_wxUSE_MENUS=no |
10f2d63a VZ |
1479 | DEFAULT_wxUSE_MINIFRAME=no |
1480 | DEFAULT_wxUSE_HTML=no | |
24528b0c | 1481 | DEFAULT_wxUSE_FILESYSTEM=no |
10f2d63a VZ |
1482 | DEFAULT_wxUSE_FS_INET=no |
1483 | DEFAULT_wxUSE_FS_ZIP=no | |
1484 | DEFAULT_wxUSE_BUSYINFO=no | |
1485 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1e6feb95 | 1486 | DEFAULT_wxUSE_VALIDATORS=no |
10f2d63a VZ |
1487 | |
1488 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 | 1489 | DEFAULT_wxUSE_BUTTON=no |
10f2d63a | 1490 | DEFAULT_wxUSE_BMPBUTTON=no |
1e6feb95 VZ |
1491 | DEFAULT_wxUSE_CALCTRL=no |
1492 | DEFAULT_wxUSE_CARET=no | |
10f2d63a VZ |
1493 | DEFAULT_wxUSE_CHECKBOX=no |
1494 | DEFAULT_wxUSE_CHECKLST=no | |
1e6feb95 | 1495 | DEFAULT_wxUSE_CHOICE=no |
10f2d63a VZ |
1496 | DEFAULT_wxUSE_COMBOBOX=no |
1497 | DEFAULT_wxUSE_GAUGE=no | |
1498 | DEFAULT_wxUSE_GRID=no | |
1499 | DEFAULT_wxUSE_NEW_GRID=no | |
1500 | DEFAULT_wxUSE_IMAGLIST=no | |
1501 | DEFAULT_wxUSE_LISTBOX=no | |
1502 | DEFAULT_wxUSE_LISTCTRL=no | |
1503 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 1504 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
1505 | DEFAULT_wxUSE_RADIOBOX=no |
1506 | DEFAULT_wxUSE_RADIOBTN=no | |
1507 | DEFAULT_wxUSE_SASH=no | |
1508 | DEFAULT_wxUSE_SCROLLBAR=no | |
1509 | DEFAULT_wxUSE_SLIDER=no | |
1510 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 1511 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
1512 | DEFAULT_wxUSE_SPLITTER=no |
1513 | DEFAULT_wxUSE_STATBMP=no | |
1514 | DEFAULT_wxUSE_STATBOX=no | |
1515 | DEFAULT_wxUSE_STATLINE=no | |
1e6feb95 | 1516 | DEFAULT_wxUSE_STATTEXT=no |
10f2d63a VZ |
1517 | DEFAULT_wxUSE_STATUSBAR=yes |
1518 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1519 | DEFAULT_wxUSE_TEXTCTRL=no |
1db8dc4a | 1520 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 1521 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
1522 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
1523 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a | 1524 | DEFAULT_wxUSE_TREECTRL=no |
9f41d601 | 1525 | DEFAULT_wxUSE_POPUPWIN=no |
10f2d63a VZ |
1526 | |
1527 | DEFAULT_wxUSE_UNICODE=no | |
1528 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1529 | ||
edae8572 | 1530 | DEFAULT_wxUSE_PALETTE=no |
0046ff7c | 1531 | DEFAULT_wxUSE_IMAGE=no |
10f2d63a VZ |
1532 | DEFAULT_wxUSE_GIF=no |
1533 | DEFAULT_wxUSE_PCX=no | |
1534 | DEFAULT_wxUSE_PNM=no | |
0046ff7c | 1535 | DEFAULT_wxUSE_XPM=no |
10f2d63a | 1536 | else |
1e6feb95 VZ |
1537 | DEFAULT_wxUSE_UNIVERSAL=no |
1538 | ||
10f2d63a VZ |
1539 | DEFAULT_wxUSE_THREADS=yes |
1540 | ||
1541 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1542 | DEFAULT_wxUSE_SONAME=no |
10f2d63a VZ |
1543 | DEFAULT_wxUSE_OPTIMISE=yes |
1544 | DEFAULT_wxUSE_PROFILE=no | |
1545 | DEFAULT_wxUSE_NO_DEPS=no | |
1546 | DEFAULT_wxUSE_NO_RTTI=no | |
1547 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
1548 | DEFAULT_wxUSE_PERMISSIVE=no | |
1549 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1550 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1551 | DEFAULT_wxUSE_DEBUG_GDB=no | |
1552 | DEFAULT_wxUSE_MEM_TRACING=no | |
1553 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1554 | DEFAULT_wxUSE_DMALLOC=no | |
1555 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
1556 | ||
1557 | DEFAULT_wxUSE_LOG=yes | |
d73be714 VZ |
1558 | DEFAULT_wxUSE_LOGWINDOW=yes |
1559 | DEFAULT_wxUSE_LOGGUI=yes | |
10f2d63a VZ |
1560 | |
1561 | DEFAULT_wxUSE_GUI=yes | |
1562 | ||
831b3152 | 1563 | DEFAULT_wxUSE_REGEX=yes |
10f2d63a VZ |
1564 | DEFAULT_wxUSE_ZLIB=yes |
1565 | DEFAULT_wxUSE_LIBPNG=yes | |
1566 | DEFAULT_wxUSE_LIBJPEG=yes | |
b47c832e | 1567 | DEFAULT_wxUSE_LIBTIFF=yes |
16b52fa1 | 1568 | DEFAULT_wxUSE_ODBC=no |
3fed1840 | 1569 | DEFAULT_wxUSE_FREETYPE=no |
bdad4e7e | 1570 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1571 | |
eb4efbdc | 1572 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes |
4f3c5f06 | 1573 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
10f2d63a | 1574 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1575 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
1576 | DEFAULT_wxUSE_DATETIME=yes | |
1577 | DEFAULT_wxUSE_TIMEDATE=no | |
1578 | DEFAULT_wxUSE_TIMER=yes | |
1579 | DEFAULT_wxUSE_STOPWATCH=yes | |
10f2d63a | 1580 | DEFAULT_wxUSE_FILE=yes |
1e6feb95 | 1581 | DEFAULT_wxUSE_FFILE=yes |
10f2d63a | 1582 | DEFAULT_wxUSE_TEXTFILE=yes |
10f2d63a VZ |
1583 | DEFAULT_wxUSE_WAVE=no |
1584 | DEFAULT_wxUSE_INTL=yes | |
1585 | DEFAULT_wxUSE_CONFIG=yes | |
1e6feb95 | 1586 | DEFAULT_wxUSE_FONTMAP=yes |
10f2d63a VZ |
1587 | DEFAULT_wxUSE_STREAMS=yes |
1588 | DEFAULT_wxUSE_SOCKETS=yes | |
1589 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
1590 | DEFAULT_wxUSE_SERIAL=yes | |
1591 | DEFAULT_wxUSE_JOYSTICK=yes | |
1592 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
b685cd9b | 1593 | DEFAULT_wxUSE_LONGLONG=yes |
e8f65ba6 | 1594 | DEFAULT_wxUSE_GEOMETRY=yes |
10f2d63a VZ |
1595 | |
1596 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
1597 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
1598 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
1599 | ||
1600 | DEFAULT_wxUSE_X_RESOURCES=no | |
1601 | DEFAULT_wxUSE_CLIPBOARD=yes | |
1602 | DEFAULT_wxUSE_TOOLTIPS=yes | |
1603 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
24fd6d87 | 1604 | DEFAULT_wxUSE_DRAGIMAGE=yes |
10f2d63a VZ |
1605 | DEFAULT_wxUSE_SPLINES=yes |
1606 | ||
1607 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
1608 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
1609 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
1610 | ||
1611 | DEFAULT_wxUSE_PROLOGIO=yes | |
1612 | DEFAULT_wxUSE_RESOURCES=yes | |
1613 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
1614 | DEFAULT_wxUSE_IPC=yes | |
1615 | DEFAULT_wxUSE_HELP=yes | |
29fd3c0c | 1616 | DEFAULT_wxUSE_MS_HTML_HELP=yes |
3379ed37 | 1617 | DEFAULT_wxUSE_WXHTML_HELP=yes |
24176f2c | 1618 | DEFAULT_wxUSE_TREELAYOUT=yes |
10f2d63a | 1619 | DEFAULT_wxUSE_METAFILE=yes |
1e6feb95 | 1620 | DEFAULT_wxUSE_MIMETYPE=yes |
3e44f09d | 1621 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes |
10f2d63a VZ |
1622 | |
1623 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1e6feb95 VZ |
1624 | DEFAULT_wxUSE_CHOICEDLG=yes |
1625 | DEFAULT_wxUSE_COLOURDLG=yes | |
10f2d63a | 1626 | DEFAULT_wxUSE_DIRDLG=yes |
1e6feb95 | 1627 | DEFAULT_wxUSE_FILEDLG=yes |
8db37e06 | 1628 | DEFAULT_wxUSE_FINDREPLDLG=yes |
1e6feb95 VZ |
1629 | DEFAULT_wxUSE_FONTDLG=yes |
1630 | DEFAULT_wxUSE_MSGDLG=yes | |
1631 | DEFAULT_wxUSE_NUMBERDLG=yes | |
10f2d63a | 1632 | DEFAULT_wxUSE_TEXTDLG=yes |
cbca9943 | 1633 | DEFAULT_wxUSE_SPLASH=yes |
10f2d63a VZ |
1634 | DEFAULT_wxUSE_STARTUP_TIPS=yes |
1635 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
f33f19dd VZ |
1636 | DEFAULT_wxUSE_WIZARDDLG=yes |
1637 | ||
1e6feb95 | 1638 | DEFAULT_wxUSE_MENUS=yes |
10f2d63a VZ |
1639 | DEFAULT_wxUSE_MINIFRAME=yes |
1640 | DEFAULT_wxUSE_HTML=yes | |
24528b0c | 1641 | DEFAULT_wxUSE_FILESYSTEM=yes |
10f2d63a VZ |
1642 | DEFAULT_wxUSE_FS_INET=yes |
1643 | DEFAULT_wxUSE_FS_ZIP=yes | |
1644 | DEFAULT_wxUSE_BUSYINFO=yes | |
1645 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
1646 | DEFAULT_wxUSE_VALIDATORS=yes | |
1647 | ||
1648 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 | 1649 | DEFAULT_wxUSE_BUTTON=yes |
10f2d63a | 1650 | DEFAULT_wxUSE_BMPBUTTON=yes |
1e6feb95 VZ |
1651 | DEFAULT_wxUSE_CALCTRL=yes |
1652 | DEFAULT_wxUSE_CARET=yes | |
10f2d63a VZ |
1653 | DEFAULT_wxUSE_CHECKBOX=yes |
1654 | DEFAULT_wxUSE_CHECKLST=yes | |
1655 | DEFAULT_wxUSE_CHOICE=yes | |
1656 | DEFAULT_wxUSE_COMBOBOX=yes | |
1657 | DEFAULT_wxUSE_GAUGE=yes | |
1658 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 1659 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
1660 | DEFAULT_wxUSE_IMAGLIST=yes |
1661 | DEFAULT_wxUSE_LISTBOX=yes | |
1662 | DEFAULT_wxUSE_LISTCTRL=yes | |
1663 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 1664 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
1665 | DEFAULT_wxUSE_RADIOBOX=yes |
1666 | DEFAULT_wxUSE_RADIOBTN=yes | |
1667 | DEFAULT_wxUSE_SASH=yes | |
1668 | DEFAULT_wxUSE_SCROLLBAR=yes | |
1669 | DEFAULT_wxUSE_SLIDER=yes | |
1670 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 1671 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
1672 | DEFAULT_wxUSE_SPLITTER=yes |
1673 | DEFAULT_wxUSE_STATBMP=yes | |
1674 | DEFAULT_wxUSE_STATBOX=yes | |
1675 | DEFAULT_wxUSE_STATLINE=yes | |
1e6feb95 | 1676 | DEFAULT_wxUSE_STATTEXT=yes |
10f2d63a VZ |
1677 | DEFAULT_wxUSE_STATUSBAR=yes |
1678 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1679 | DEFAULT_wxUSE_TEXTCTRL=yes |
1db8dc4a | 1680 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 1681 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
1682 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
1683 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a | 1684 | DEFAULT_wxUSE_TREECTRL=yes |
9f41d601 | 1685 | DEFAULT_wxUSE_POPUPWIN=yes |
10f2d63a VZ |
1686 | |
1687 | DEFAULT_wxUSE_UNICODE=no | |
1688 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1689 | ||
edae8572 | 1690 | DEFAULT_wxUSE_PALETTE=yes |
0046ff7c | 1691 | DEFAULT_wxUSE_IMAGE=yes |
10f2d63a VZ |
1692 | DEFAULT_wxUSE_GIF=yes |
1693 | DEFAULT_wxUSE_PCX=yes | |
1694 | DEFAULT_wxUSE_PNM=yes | |
0046ff7c | 1695 | DEFAULT_wxUSE_XPM=yes |
10f2d63a VZ |
1696 | fi |
1697 | ||
698dcdb6 VZ |
1698 | |
1699 | ||
10f2d63a VZ |
1700 | for toolkit in `echo $ALL_TOOLKITS`; do |
1701 | LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}` | |
1702 | if test "x$LINE" != x ; then | |
1703 | has_toolkit_in_cache=1 | |
1704 | eval "DEFAULT_$LINE" | |
1705 | eval "CACHE_$toolkit=1" | |
1706 | fi | |
1707 | done | |
1708 | ||
698dcdb6 VZ |
1709 | |
1710 | ||
1711 | echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6 | |
d08b457b | 1712 | echo "configure:1713: checking for --enable-gui" >&5 |
10f2d63a VZ |
1713 | no_cache=0 |
1714 | # Check whether --enable-gui or --disable-gui was given. | |
1715 | if test "${enable_gui+set}" = set; then | |
1716 | enableval="$enable_gui" | |
698dcdb6 | 1717 | |
10f2d63a VZ |
1718 | if test "$enableval" = yes; then |
1719 | ac_cv_use_gui='wxUSE_GUI=yes' | |
1720 | else | |
1721 | ac_cv_use_gui='wxUSE_GUI=no' | |
1722 | fi | |
698dcdb6 | 1723 | |
10f2d63a | 1724 | else |
698dcdb6 | 1725 | |
10f2d63a VZ |
1726 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` |
1727 | if test "x$LINE" != x ; then | |
1728 | eval "DEFAULT_$LINE" | |
1729 | else | |
1730 | no_cache=1 | |
1731 | fi | |
1732 | ||
1733 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
698dcdb6 VZ |
1734 | |
1735 | fi | |
10f2d63a VZ |
1736 | |
1737 | ||
1738 | eval "$ac_cv_use_gui" | |
1739 | if test "$no_cache" != 1; then | |
1740 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
1741 | fi | |
1742 | ||
1743 | if test "$wxUSE_GUI" = yes; then | |
698dcdb6 | 1744 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 1745 | else |
698dcdb6 | 1746 | echo "$ac_t""no" 1>&6 |
10f2d63a | 1747 | fi |
698dcdb6 | 1748 | |
10f2d63a | 1749 | |
b12915c1 | 1750 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a | 1751 | |
1e6feb95 VZ |
1752 | |
1753 | echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6 | |
d08b457b | 1754 | echo "configure:1755: checking for --enable-universal" >&5 |
1e6feb95 VZ |
1755 | no_cache=0 |
1756 | # Check whether --enable-universal or --disable-universal was given. | |
1757 | if test "${enable_universal+set}" = set; then | |
1758 | enableval="$enable_universal" | |
1759 | ||
1760 | if test "$enableval" = yes; then | |
1761 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
1762 | else | |
1763 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
1764 | fi | |
1765 | ||
1766 | else | |
1767 | ||
1768 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
1769 | if test "x$LINE" != x ; then | |
1770 | eval "DEFAULT_$LINE" | |
1771 | else | |
1772 | no_cache=1 | |
1773 | fi | |
1774 | ||
1775 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
1776 | ||
1777 | fi | |
1778 | ||
1779 | ||
1780 | eval "$ac_cv_use_universal" | |
1781 | if test "$no_cache" != 1; then | |
1782 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
1783 | fi | |
1784 | ||
1785 | if test "$wxUSE_UNIVERSAL" = yes; then | |
1786 | echo "$ac_t""yes" 1>&6 | |
1787 | else | |
1788 | echo "$ac_t""no" 1>&6 | |
1789 | fi | |
1790 | ||
10f2d63a VZ |
1791 | # Check whether --with-gtk or --without-gtk was given. |
1792 | if test "${with_gtk+set}" = set; then | |
1793 | withval="$with_gtk" | |
1794 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1795 | fi |
10f2d63a VZ |
1796 | |
1797 | # Check whether --with-motif or --without-motif was given. | |
1798 | if test "${with_motif+set}" = set; then | |
1799 | withval="$with_motif" | |
1800 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1801 | fi |
10f2d63a | 1802 | |
b4085ce6 GD |
1803 | # Check whether --with-mac or --without-mac was given. |
1804 | if test "${with_mac+set}" = set; then | |
1805 | withval="$with_mac" | |
1806 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
698dcdb6 | 1807 | fi |
b4085ce6 | 1808 | |
10f2d63a VZ |
1809 | # Check whether --with-wine or --without-wine was given. |
1810 | if test "${with_wine+set}" = set; then | |
1811 | withval="$with_wine" | |
1812 | wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1813 | fi |
10f2d63a VZ |
1814 | |
1815 | # Check whether --with-cygwin or --without-cygwin was given. | |
1816 | if test "${with_cygwin+set}" = set; then | |
1817 | withval="$with_cygwin" | |
1818 | wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1819 | fi |
10f2d63a VZ |
1820 | |
1821 | # Check whether --with-mingw or --without-mingw was given. | |
1822 | if test "${with_mingw+set}" = set; then | |
1823 | withval="$with_mingw" | |
1824 | wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1825 | fi |
10f2d63a | 1826 | |
e07802fc VZ |
1827 | # Check whether --with-pm or --without-pm was given. |
1828 | if test "${with_pm+set}" = set; then | |
1829 | withval="$with_pm" | |
1830 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
698dcdb6 VZ |
1831 | fi |
1832 | ||
1e6feb95 VZ |
1833 | # Check whether --with-mgl or --without-mgl was given. |
1834 | if test "${with_mgl+set}" = set; then | |
1835 | withval="$with_mgl" | |
1836 | wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1 | |
1837 | fi | |
1838 | ||
10f2d63a | 1839 | |
8168de4c VZ |
1840 | # Check whether --enable-gtk2 or --disable-gtk2 was given. |
1841 | if test "${enable_gtk2+set}" = set; then | |
1842 | enableval="$enable_gtk2" | |
1843 | wxUSE_GTK2=1 | |
10f2d63a | 1844 | else |
8168de4c | 1845 | wxUSE_GTK2=0 |
698dcdb6 VZ |
1846 | fi |
1847 | ||
703e0a69 | 1848 | |
1e487827 | 1849 | |
698dcdb6 | 1850 | echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6 |
d08b457b | 1851 | echo "configure:1852: checking for --with-libpng" >&5 |
698dcdb6 VZ |
1852 | no_cache=0 |
1853 | # Check whether --with-libpng or --without-libpng was given. | |
b12915c1 VZ |
1854 | if test "${with_libpng+set}" = set; then |
1855 | withval="$with_libpng" | |
698dcdb6 | 1856 | |
10f2d63a | 1857 | if test "$withval" = yes; then |
b12915c1 | 1858 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
422107f9 | 1859 | elif test "$withval" = no; then |
b12915c1 | 1860 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
422107f9 VZ |
1861 | elif test "$withval" = sys; then |
1862 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
1863 | else | |
698dcdb6 | 1864 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1865 | fi |
698dcdb6 | 1866 | |
10f2d63a | 1867 | else |
698dcdb6 | 1868 | |
b12915c1 | 1869 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
1870 | if test "x$LINE" != x ; then |
1871 | eval "DEFAULT_$LINE" | |
1872 | else | |
1873 | no_cache=1 | |
1874 | fi | |
1875 | ||
b12915c1 | 1876 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
698dcdb6 VZ |
1877 | |
1878 | fi | |
10f2d63a VZ |
1879 | |
1880 | ||
b12915c1 | 1881 | eval "$ac_cv_use_libpng" |
10f2d63a | 1882 | if test "$no_cache" != 1; then |
b12915c1 | 1883 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1884 | fi |
1885 | ||
b12915c1 | 1886 | if test "$wxUSE_LIBPNG" = yes; then |
698dcdb6 | 1887 | echo "$ac_t""yes" 1>&6 |
422107f9 | 1888 | elif test "$wxUSE_LIBPNG" = no; then |
698dcdb6 | 1889 | echo "$ac_t""no" 1>&6 |
422107f9 | 1890 | elif test "$wxUSE_LIBPNG" = sys; then |
698dcdb6 | 1891 | echo "$ac_t""system version" 1>&6 |
422107f9 | 1892 | else |
698dcdb6 | 1893 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1894 | fi |
698dcdb6 | 1895 | |
10f2d63a | 1896 | |
698dcdb6 | 1897 | echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6 |
d08b457b | 1898 | echo "configure:1899: checking for --with-libjpeg" >&5 |
10f2d63a | 1899 | no_cache=0 |
698dcdb6 | 1900 | # Check whether --with-libjpeg or --without-libjpeg was given. |
b12915c1 VZ |
1901 | if test "${with_libjpeg+set}" = set; then |
1902 | withval="$with_libjpeg" | |
698dcdb6 | 1903 | |
10f2d63a | 1904 | if test "$withval" = yes; then |
b12915c1 | 1905 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
422107f9 | 1906 | elif test "$withval" = no; then |
b12915c1 | 1907 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
422107f9 VZ |
1908 | elif test "$withval" = sys; then |
1909 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
1910 | else | |
698dcdb6 | 1911 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1912 | fi |
698dcdb6 | 1913 | |
10f2d63a | 1914 | else |
698dcdb6 | 1915 | |
b12915c1 | 1916 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
1917 | if test "x$LINE" != x ; then |
1918 | eval "DEFAULT_$LINE" | |
1919 | else | |
1920 | no_cache=1 | |
1921 | fi | |
1922 | ||
b12915c1 | 1923 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
698dcdb6 VZ |
1924 | |
1925 | fi | |
10f2d63a VZ |
1926 | |
1927 | ||
b12915c1 | 1928 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 1929 | if test "$no_cache" != 1; then |
b12915c1 | 1930 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1931 | fi |
1932 | ||
b12915c1 | 1933 | if test "$wxUSE_LIBJPEG" = yes; then |
698dcdb6 | 1934 | echo "$ac_t""yes" 1>&6 |
422107f9 | 1935 | elif test "$wxUSE_LIBJPEG" = no; then |
698dcdb6 | 1936 | echo "$ac_t""no" 1>&6 |
422107f9 | 1937 | elif test "$wxUSE_LIBJPEG" = sys; then |
698dcdb6 | 1938 | echo "$ac_t""system version" 1>&6 |
422107f9 | 1939 | else |
698dcdb6 | 1940 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1941 | fi |
698dcdb6 | 1942 | |
10f2d63a | 1943 | |
698dcdb6 | 1944 | echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6 |
d08b457b | 1945 | echo "configure:1946: checking for --with-libtiff" >&5 |
10f2d63a | 1946 | no_cache=0 |
698dcdb6 | 1947 | # Check whether --with-libtiff or --without-libtiff was given. |
b12915c1 VZ |
1948 | if test "${with_libtiff+set}" = set; then |
1949 | withval="$with_libtiff" | |
698dcdb6 | 1950 | |
10f2d63a | 1951 | if test "$withval" = yes; then |
b12915c1 | 1952 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
0dcf9893 | 1953 | elif test "$withval" = no; then |
b12915c1 | 1954 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
0dcf9893 VZ |
1955 | elif test "$withval" = sys; then |
1956 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
1957 | else | |
698dcdb6 | 1958 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1959 | fi |
698dcdb6 | 1960 | |
10f2d63a | 1961 | else |
698dcdb6 | 1962 | |
b12915c1 | 1963 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
1964 | if test "x$LINE" != x ; then |
1965 | eval "DEFAULT_$LINE" | |
1966 | else | |
1967 | no_cache=1 | |
1968 | fi | |
1969 | ||
b12915c1 | 1970 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
698dcdb6 VZ |
1971 | |
1972 | fi | |
10f2d63a VZ |
1973 | |
1974 | ||
b12915c1 | 1975 | eval "$ac_cv_use_libtiff" |
10f2d63a | 1976 | if test "$no_cache" != 1; then |
b12915c1 | 1977 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1978 | fi |
1979 | ||
b12915c1 | 1980 | if test "$wxUSE_LIBTIFF" = yes; then |
698dcdb6 | 1981 | echo "$ac_t""yes" 1>&6 |
0dcf9893 | 1982 | elif test "$wxUSE_LIBTIFF" = no; then |
698dcdb6 | 1983 | echo "$ac_t""no" 1>&6 |
0dcf9893 | 1984 | elif test "$wxUSE_LIBTIFF" = sys; then |
698dcdb6 | 1985 | echo "$ac_t""system version" 1>&6 |
0dcf9893 | 1986 | else |
698dcdb6 | 1987 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1988 | fi |
698dcdb6 | 1989 | |
10f2d63a | 1990 | |
698dcdb6 | 1991 | echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6 |
d08b457b | 1992 | echo "configure:1993: checking for --with-freetype" >&5 |
3fed1840 | 1993 | no_cache=0 |
698dcdb6 | 1994 | # Check whether --with-freetype or --without-freetype was given. |
3fed1840 RR |
1995 | if test "${with_freetype+set}" = set; then |
1996 | withval="$with_freetype" | |
698dcdb6 | 1997 | |
3fed1840 RR |
1998 | if test "$withval" = yes; then |
1999 | ac_cv_use_freetype='wxUSE_FREETYPE=yes' | |
2000 | elif test "$withval" = no; then | |
2001 | ac_cv_use_freetype='wxUSE_FREETYPE=no' | |
2002 | elif test "$withval" = sys; then | |
2003 | ac_cv_use_freetype='wxUSE_FREETYPE=sys' | |
2004 | else | |
698dcdb6 | 2005 | { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; } |
3fed1840 | 2006 | fi |
698dcdb6 | 2007 | |
3fed1840 | 2008 | else |
698dcdb6 | 2009 | |
3fed1840 RR |
2010 | LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}` |
2011 | if test "x$LINE" != x ; then | |
2012 | eval "DEFAULT_$LINE" | |
2013 | else | |
2014 | no_cache=1 | |
2015 | fi | |
2016 | ||
2017 | ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE | |
698dcdb6 VZ |
2018 | |
2019 | fi | |
3fed1840 RR |
2020 | |
2021 | ||
2022 | eval "$ac_cv_use_freetype" | |
2023 | if test "$no_cache" != 1; then | |
2024 | echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp | |
2025 | fi | |
2026 | ||
2027 | if test "$wxUSE_FREETYPE" = yes; then | |
698dcdb6 | 2028 | echo "$ac_t""yes" 1>&6 |
3fed1840 | 2029 | elif test "$wxUSE_FREETYPE" = no; then |
698dcdb6 | 2030 | echo "$ac_t""no" 1>&6 |
3fed1840 | 2031 | elif test "$wxUSE_FREETYPE" = sys; then |
698dcdb6 | 2032 | echo "$ac_t""system version" 1>&6 |
3fed1840 | 2033 | else |
698dcdb6 | 2034 | { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; } |
3fed1840 | 2035 | fi |
698dcdb6 | 2036 | |
3fed1840 | 2037 | |
698dcdb6 | 2038 | echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6 |
d08b457b | 2039 | echo "configure:2040: checking for --with-opengl" >&5 |
10f2d63a | 2040 | no_cache=0 |
698dcdb6 | 2041 | # Check whether --with-opengl or --without-opengl was given. |
b12915c1 VZ |
2042 | if test "${with_opengl+set}" = set; then |
2043 | withval="$with_opengl" | |
698dcdb6 | 2044 | |
10f2d63a | 2045 | if test "$withval" = yes; then |
b12915c1 | 2046 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 2047 | else |
b12915c1 | 2048 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a | 2049 | fi |
698dcdb6 | 2050 | |
10f2d63a | 2051 | else |
698dcdb6 | 2052 | |
b12915c1 | 2053 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` |
10f2d63a VZ |
2054 | if test "x$LINE" != x ; then |
2055 | eval "DEFAULT_$LINE" | |
2056 | else | |
2057 | no_cache=1 | |
2058 | fi | |
2059 | ||
b12915c1 | 2060 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
698dcdb6 VZ |
2061 | |
2062 | fi | |
10f2d63a VZ |
2063 | |
2064 | ||
b12915c1 | 2065 | eval "$ac_cv_use_opengl" |
10f2d63a | 2066 | if test "$no_cache" != 1; then |
b12915c1 | 2067 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2068 | fi |
2069 | ||
b12915c1 | 2070 | if test "$wxUSE_OPENGL" = yes; then |
698dcdb6 | 2071 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2072 | else |
698dcdb6 | 2073 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2074 | fi |
698dcdb6 | 2075 | |
10f2d63a | 2076 | |
b12915c1 VZ |
2077 | fi |
2078 | ||
1e487827 | 2079 | |
698dcdb6 | 2080 | echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6 |
d08b457b | 2081 | echo "configure:2082: checking for --with-dmalloc" >&5 |
698dcdb6 VZ |
2082 | no_cache=0 |
2083 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
b12915c1 VZ |
2084 | if test "${with_dmalloc+set}" = set; then |
2085 | withval="$with_dmalloc" | |
698dcdb6 | 2086 | |
c7a2bf27 | 2087 | if test "$withval" = yes; then |
b12915c1 | 2088 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 2089 | else |
b12915c1 | 2090 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 | 2091 | fi |
698dcdb6 | 2092 | |
c7a2bf27 | 2093 | else |
698dcdb6 | 2094 | |
b12915c1 | 2095 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
2096 | if test "x$LINE" != x ; then |
2097 | eval "DEFAULT_$LINE" | |
2098 | else | |
2099 | no_cache=1 | |
2100 | fi | |
2101 | ||
b12915c1 | 2102 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
698dcdb6 VZ |
2103 | |
2104 | fi | |
c7a2bf27 RR |
2105 | |
2106 | ||
b12915c1 | 2107 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 2108 | if test "$no_cache" != 1; then |
b12915c1 | 2109 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
2110 | fi |
2111 | ||
b12915c1 | 2112 | if test "$wxUSE_DMALLOC" = yes; then |
698dcdb6 | 2113 | echo "$ac_t""yes" 1>&6 |
c7a2bf27 | 2114 | else |
698dcdb6 | 2115 | echo "$ac_t""no" 1>&6 |
c7a2bf27 | 2116 | fi |
698dcdb6 | 2117 | |
c7a2bf27 | 2118 | |
3e44f09d | 2119 | echo $ac_n "checking for --with-regex""... $ac_c" 1>&6 |
d08b457b | 2120 | echo "configure:2121: checking for --with-regex" >&5 |
3e44f09d VZ |
2121 | no_cache=0 |
2122 | # Check whether --with-regex or --without-regex was given. | |
2123 | if test "${with_regex+set}" = set; then | |
2124 | withval="$with_regex" | |
2125 | ||
2126 | if test "$withval" = yes; then | |
2127 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
2128 | elif test "$withval" = no; then | |
2129 | ac_cv_use_regex='wxUSE_REGEX=no' | |
2130 | elif test "$withval" = sys; then | |
2131 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
2132 | else | |
2133 | { echo "configure: error: Invalid value for --with-regex: should be yes, no or sys" 1>&2; exit 1; } | |
2134 | fi | |
2135 | ||
2136 | else | |
2137 | ||
2138 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` | |
2139 | if test "x$LINE" != x ; then | |
2140 | eval "DEFAULT_$LINE" | |
2141 | else | |
2142 | no_cache=1 | |
2143 | fi | |
2144 | ||
2145 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
2146 | ||
2147 | fi | |
2148 | ||
2149 | ||
2150 | eval "$ac_cv_use_regex" | |
2151 | if test "$no_cache" != 1; then | |
2152 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
2153 | fi | |
2154 | ||
2155 | if test "$wxUSE_REGEX" = yes; then | |
2156 | echo "$ac_t""yes" 1>&6 | |
2157 | elif test "$wxUSE_REGEX" = no; then | |
2158 | echo "$ac_t""no" 1>&6 | |
2159 | elif test "$wxUSE_REGEX" = sys; then | |
2160 | echo "$ac_t""system version" 1>&6 | |
2161 | else | |
2162 | { echo "configure: error: Invalid value for --with-regex: should be yes, no or sys" 1>&2; exit 1; } | |
2163 | fi | |
2164 | ||
2165 | ||
698dcdb6 | 2166 | echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6 |
d08b457b | 2167 | echo "configure:2168: checking for --with-zlib" >&5 |
10f2d63a | 2168 | no_cache=0 |
698dcdb6 | 2169 | # Check whether --with-zlib or --without-zlib was given. |
b12915c1 VZ |
2170 | if test "${with_zlib+set}" = set; then |
2171 | withval="$with_zlib" | |
698dcdb6 | 2172 | |
10f2d63a | 2173 | if test "$withval" = yes; then |
b12915c1 | 2174 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
422107f9 | 2175 | elif test "$withval" = no; then |
b12915c1 | 2176 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
422107f9 VZ |
2177 | elif test "$withval" = sys; then |
2178 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
2179 | else | |
698dcdb6 | 2180 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 2181 | fi |
698dcdb6 | 2182 | |
10f2d63a | 2183 | else |
698dcdb6 | 2184 | |
b12915c1 | 2185 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
2186 | if test "x$LINE" != x ; then |
2187 | eval "DEFAULT_$LINE" | |
2188 | else | |
2189 | no_cache=1 | |
2190 | fi | |
2191 | ||
b12915c1 | 2192 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
698dcdb6 VZ |
2193 | |
2194 | fi | |
10f2d63a VZ |
2195 | |
2196 | ||
b12915c1 | 2197 | eval "$ac_cv_use_zlib" |
10f2d63a | 2198 | if test "$no_cache" != 1; then |
b12915c1 | 2199 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2200 | fi |
2201 | ||
b12915c1 | 2202 | if test "$wxUSE_ZLIB" = yes; then |
698dcdb6 | 2203 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2204 | elif test "$wxUSE_ZLIB" = no; then |
698dcdb6 | 2205 | echo "$ac_t""no" 1>&6 |
422107f9 | 2206 | elif test "$wxUSE_ZLIB" = sys; then |
698dcdb6 | 2207 | echo "$ac_t""system version" 1>&6 |
422107f9 | 2208 | else |
698dcdb6 | 2209 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 2210 | fi |
698dcdb6 | 2211 | |
10f2d63a | 2212 | |
698dcdb6 | 2213 | echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6 |
d08b457b | 2214 | echo "configure:2215: checking for --with-odbc" >&5 |
10f2d63a | 2215 | no_cache=0 |
698dcdb6 | 2216 | # Check whether --with-odbc or --without-odbc was given. |
10f2d63a VZ |
2217 | if test "${with_odbc+set}" = set; then |
2218 | withval="$with_odbc" | |
698dcdb6 | 2219 | |
10f2d63a VZ |
2220 | if test "$withval" = yes; then |
2221 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
2222 | else | |
2223 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
2224 | fi | |
698dcdb6 | 2225 | |
10f2d63a | 2226 | else |
698dcdb6 | 2227 | |
10f2d63a VZ |
2228 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` |
2229 | if test "x$LINE" != x ; then | |
2230 | eval "DEFAULT_$LINE" | |
2231 | else | |
2232 | no_cache=1 | |
2233 | fi | |
2234 | ||
2235 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
698dcdb6 VZ |
2236 | |
2237 | fi | |
10f2d63a VZ |
2238 | |
2239 | ||
2240 | eval "$ac_cv_use_odbc" | |
2241 | if test "$no_cache" != 1; then | |
2242 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
2243 | fi | |
2244 | ||
2245 | if test "$wxUSE_ODBC" = yes; then | |
698dcdb6 | 2246 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2247 | else |
698dcdb6 | 2248 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2249 | fi |
698dcdb6 VZ |
2250 | |
2251 | ||
10f2d63a | 2252 | |
698dcdb6 VZ |
2253 | |
2254 | ||
2255 | echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6 | |
d08b457b | 2256 | echo "configure:2257: checking for --enable-shared" >&5 |
10f2d63a VZ |
2257 | no_cache=0 |
2258 | # Check whether --enable-shared or --disable-shared was given. | |
2259 | if test "${enable_shared+set}" = set; then | |
2260 | enableval="$enable_shared" | |
698dcdb6 | 2261 | |
10f2d63a VZ |
2262 | if test "$enableval" = yes; then |
2263 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
2264 | else | |
2265 | ac_cv_use_shared='wxUSE_SHARED=no' | |
2266 | fi | |
698dcdb6 | 2267 | |
10f2d63a | 2268 | else |
698dcdb6 | 2269 | |
10f2d63a VZ |
2270 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` |
2271 | if test "x$LINE" != x ; then | |
2272 | eval "DEFAULT_$LINE" | |
2273 | else | |
2274 | no_cache=1 | |
2275 | fi | |
2276 | ||
2277 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
698dcdb6 VZ |
2278 | |
2279 | fi | |
10f2d63a VZ |
2280 | |
2281 | ||
2282 | eval "$ac_cv_use_shared" | |
2283 | if test "$no_cache" != 1; then | |
2284 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
2285 | fi | |
2286 | ||
2287 | if test "$wxUSE_SHARED" = yes; then | |
698dcdb6 | 2288 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2289 | else |
698dcdb6 | 2290 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2291 | fi |
698dcdb6 | 2292 | |
10f2d63a | 2293 | |
3a922bb4 | 2294 | echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6 |
d08b457b | 2295 | echo "configure:2296: checking for --enable-soname" >&5 |
00cf1208 | 2296 | no_cache=0 |
3a922bb4 RL |
2297 | # Check whether --enable-soname or --disable-soname was given. |
2298 | if test "${enable_soname+set}" = set; then | |
2299 | enableval="$enable_soname" | |
698dcdb6 | 2300 | |
00cf1208 | 2301 | if test "$enableval" = yes; then |
3a922bb4 | 2302 | ac_cv_use_soname='wxUSE_SONAME=yes' |
00cf1208 | 2303 | else |
3a922bb4 | 2304 | ac_cv_use_soname='wxUSE_SONAME=no' |
00cf1208 | 2305 | fi |
698dcdb6 | 2306 | |
00cf1208 | 2307 | else |
698dcdb6 | 2308 | |
3a922bb4 | 2309 | LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}` |
00cf1208 RR |
2310 | if test "x$LINE" != x ; then |
2311 | eval "DEFAULT_$LINE" | |
2312 | else | |
2313 | no_cache=1 | |
2314 | fi | |
2315 | ||
3a922bb4 | 2316 | ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME |
698dcdb6 VZ |
2317 | |
2318 | fi | |
00cf1208 RR |
2319 | |
2320 | ||
3a922bb4 | 2321 | eval "$ac_cv_use_soname" |
00cf1208 | 2322 | if test "$no_cache" != 1; then |
3a922bb4 | 2323 | echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp |
00cf1208 RR |
2324 | fi |
2325 | ||
3a922bb4 | 2326 | if test "$wxUSE_SONAME" = yes; then |
698dcdb6 | 2327 | echo "$ac_t""yes" 1>&6 |
00cf1208 | 2328 | else |
698dcdb6 | 2329 | echo "$ac_t""no" 1>&6 |
00cf1208 | 2330 | fi |
698dcdb6 | 2331 | |
00cf1208 | 2332 | |
698dcdb6 | 2333 | echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6 |
d08b457b | 2334 | echo "configure:2335: checking for --enable-optimise" >&5 |
10f2d63a VZ |
2335 | no_cache=0 |
2336 | # Check whether --enable-optimise or --disable-optimise was given. | |
2337 | if test "${enable_optimise+set}" = set; then | |
2338 | enableval="$enable_optimise" | |
698dcdb6 | 2339 | |
10f2d63a VZ |
2340 | if test "$enableval" = yes; then |
2341 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
2342 | else | |
2343 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
2344 | fi | |
698dcdb6 | 2345 | |
10f2d63a | 2346 | else |
698dcdb6 | 2347 | |
10f2d63a VZ |
2348 | LINE=`grep "wxUSE_OPTIMISE" ${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_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
698dcdb6 VZ |
2356 | |
2357 | fi | |
10f2d63a VZ |
2358 | |
2359 | ||
2360 | eval "$ac_cv_use_optimise" | |
2361 | if test "$no_cache" != 1; then | |
2362 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
2363 | fi | |
2364 | ||
2365 | if test "$wxUSE_OPTIMISE" = 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 | |
698dcdb6 | 2372 | echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6 |
d08b457b | 2373 | echo "configure:2374: checking for --enable-debug" >&5 |
10f2d63a VZ |
2374 | no_cache=0 |
2375 | # Check whether --enable-debug or --disable-debug was given. | |
2376 | if test "${enable_debug+set}" = set; then | |
2377 | enableval="$enable_debug" | |
698dcdb6 | 2378 | |
10f2d63a VZ |
2379 | if test "$enableval" = yes; then |
2380 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
2381 | else | |
2382 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
2383 | fi | |
698dcdb6 | 2384 | |
10f2d63a | 2385 | else |
698dcdb6 | 2386 | |
10f2d63a VZ |
2387 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` |
2388 | if test "x$LINE" != x ; then | |
2389 | eval "DEFAULT_$LINE" | |
2390 | else | |
2391 | no_cache=1 | |
2392 | fi | |
2393 | ||
2394 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
698dcdb6 VZ |
2395 | |
2396 | fi | |
10f2d63a VZ |
2397 | |
2398 | ||
2399 | eval "$ac_cv_use_debug" | |
2400 | if test "$no_cache" != 1; then | |
2401 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
2402 | fi | |
2403 | ||
2404 | if test "$wxUSE_DEBUG" = yes; then | |
698dcdb6 | 2405 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2406 | else |
698dcdb6 | 2407 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2408 | fi |
698dcdb6 | 2409 | |
10f2d63a VZ |
2410 | |
2411 | if test "$wxUSE_DEBUG" = "yes"; then | |
2412 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2413 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2414 | elif test "$wxUSE_DEBUG" = "no"; then | |
2415 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2416 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2417 | fi | |
2418 | ||
698dcdb6 VZ |
2419 | |
2420 | echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6 | |
d08b457b | 2421 | echo "configure:2422: checking for --enable-debug_flag" >&5 |
10f2d63a VZ |
2422 | no_cache=0 |
2423 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
2424 | if test "${enable_debug_flag+set}" = set; then | |
2425 | enableval="$enable_debug_flag" | |
698dcdb6 | 2426 | |
10f2d63a VZ |
2427 | if test "$enableval" = yes; then |
2428 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
2429 | else | |
2430 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
2431 | fi | |
698dcdb6 | 2432 | |
10f2d63a | 2433 | else |
698dcdb6 | 2434 | |
10f2d63a VZ |
2435 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` |
2436 | if test "x$LINE" != x ; then | |
2437 | eval "DEFAULT_$LINE" | |
2438 | else | |
2439 | no_cache=1 | |
2440 | fi | |
2441 | ||
2442 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
698dcdb6 VZ |
2443 | |
2444 | fi | |
10f2d63a VZ |
2445 | |
2446 | ||
2447 | eval "$ac_cv_use_debug_flag" | |
2448 | if test "$no_cache" != 1; then | |
2449 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
2450 | fi | |
2451 | ||
2452 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
698dcdb6 | 2453 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2454 | else |
698dcdb6 | 2455 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2456 | fi |
698dcdb6 | 2457 | |
10f2d63a | 2458 | |
698dcdb6 | 2459 | echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6 |
d08b457b | 2460 | echo "configure:2461: checking for --enable-debug_info" >&5 |
10f2d63a VZ |
2461 | no_cache=0 |
2462 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
2463 | if test "${enable_debug_info+set}" = set; then | |
2464 | enableval="$enable_debug_info" | |
698dcdb6 | 2465 | |
10f2d63a VZ |
2466 | if test "$enableval" = yes; then |
2467 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
2468 | else | |
2469 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
2470 | fi | |
698dcdb6 | 2471 | |
10f2d63a | 2472 | else |
698dcdb6 | 2473 | |
10f2d63a VZ |
2474 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` |
2475 | if test "x$LINE" != x ; then | |
2476 | eval "DEFAULT_$LINE" | |
2477 | else | |
2478 | no_cache=1 | |
2479 | fi | |
2480 | ||
2481 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
698dcdb6 VZ |
2482 | |
2483 | fi | |
10f2d63a VZ |
2484 | |
2485 | ||
2486 | eval "$ac_cv_use_debug_info" | |
2487 | if test "$no_cache" != 1; then | |
2488 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
2489 | fi | |
2490 | ||
2491 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
698dcdb6 | 2492 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2493 | else |
698dcdb6 | 2494 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2495 | fi |
698dcdb6 | 2496 | |
10f2d63a | 2497 | |
698dcdb6 | 2498 | echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6 |
d08b457b | 2499 | echo "configure:2500: checking for --enable-debug_gdb" >&5 |
10f2d63a VZ |
2500 | no_cache=0 |
2501 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
2502 | if test "${enable_debug_gdb+set}" = set; then | |
2503 | enableval="$enable_debug_gdb" | |
698dcdb6 | 2504 | |
10f2d63a VZ |
2505 | if test "$enableval" = yes; then |
2506 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
2507 | else | |
2508 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
2509 | fi | |
698dcdb6 | 2510 | |
10f2d63a | 2511 | else |
698dcdb6 | 2512 | |
10f2d63a VZ |
2513 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` |
2514 | if test "x$LINE" != x ; then | |
2515 | eval "DEFAULT_$LINE" | |
2516 | else | |
2517 | no_cache=1 | |
2518 | fi | |
2519 | ||
2520 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
698dcdb6 VZ |
2521 | |
2522 | fi | |
10f2d63a VZ |
2523 | |
2524 | ||
2525 | eval "$ac_cv_use_debug_gdb" | |
2526 | if test "$no_cache" != 1; then | |
2527 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
2528 | fi | |
2529 | ||
2530 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
698dcdb6 | 2531 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2532 | else |
698dcdb6 | 2533 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2534 | fi |
698dcdb6 | 2535 | |
10f2d63a | 2536 | |
698dcdb6 | 2537 | echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6 |
d08b457b | 2538 | echo "configure:2539: checking for --enable-debug_cntxt" >&5 |
10f2d63a VZ |
2539 | no_cache=0 |
2540 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
2541 | if test "${enable_debug_cntxt+set}" = set; then | |
2542 | enableval="$enable_debug_cntxt" | |
698dcdb6 | 2543 | |
10f2d63a VZ |
2544 | if test "$enableval" = yes; then |
2545 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
2546 | else | |
2547 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
2548 | fi | |
698dcdb6 | 2549 | |
10f2d63a | 2550 | else |
698dcdb6 | 2551 | |
10f2d63a VZ |
2552 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` |
2553 | if test "x$LINE" != x ; then | |
2554 | eval "DEFAULT_$LINE" | |
2555 | else | |
2556 | no_cache=1 | |
2557 | fi | |
2558 | ||
2559 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
698dcdb6 VZ |
2560 | |
2561 | fi | |
10f2d63a VZ |
2562 | |
2563 | ||
2564 | eval "$ac_cv_use_debug_cntxt" | |
2565 | if test "$no_cache" != 1; then | |
2566 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
2567 | fi | |
2568 | ||
2569 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
698dcdb6 | 2570 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2571 | else |
698dcdb6 | 2572 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2573 | fi |
698dcdb6 | 2574 | |
10f2d63a | 2575 | |
698dcdb6 | 2576 | echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6 |
d08b457b | 2577 | echo "configure:2578: checking for --enable-mem_tracing" >&5 |
10f2d63a VZ |
2578 | no_cache=0 |
2579 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
2580 | if test "${enable_mem_tracing+set}" = set; then | |
2581 | enableval="$enable_mem_tracing" | |
698dcdb6 | 2582 | |
10f2d63a VZ |
2583 | if test "$enableval" = yes; then |
2584 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
2585 | else | |
2586 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
2587 | fi | |
698dcdb6 | 2588 | |
10f2d63a | 2589 | else |
698dcdb6 | 2590 | |
10f2d63a VZ |
2591 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` |
2592 | if test "x$LINE" != x ; then | |
2593 | eval "DEFAULT_$LINE" | |
2594 | else | |
2595 | no_cache=1 | |
2596 | fi | |
2597 | ||
2598 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
698dcdb6 VZ |
2599 | |
2600 | fi | |
10f2d63a VZ |
2601 | |
2602 | ||
2603 | eval "$ac_cv_use_mem_tracing" | |
2604 | if test "$no_cache" != 1; then | |
2605 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
2606 | fi | |
2607 | ||
2608 | if test "$wxUSE_MEM_TRACING" = yes; then | |
698dcdb6 | 2609 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2610 | else |
698dcdb6 | 2611 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2612 | fi |
698dcdb6 | 2613 | |
10f2d63a | 2614 | |
698dcdb6 | 2615 | echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6 |
d08b457b | 2616 | echo "configure:2617: checking for --enable-profile" >&5 |
10f2d63a VZ |
2617 | no_cache=0 |
2618 | # Check whether --enable-profile or --disable-profile was given. | |
2619 | if test "${enable_profile+set}" = set; then | |
2620 | enableval="$enable_profile" | |
698dcdb6 | 2621 | |
10f2d63a VZ |
2622 | if test "$enableval" = yes; then |
2623 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
2624 | else | |
2625 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
2626 | fi | |
698dcdb6 | 2627 | |
10f2d63a | 2628 | else |
698dcdb6 | 2629 | |
10f2d63a VZ |
2630 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` |
2631 | if test "x$LINE" != x ; then | |
2632 | eval "DEFAULT_$LINE" | |
2633 | else | |
2634 | no_cache=1 | |
2635 | fi | |
2636 | ||
2637 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
698dcdb6 VZ |
2638 | |
2639 | fi | |
10f2d63a VZ |
2640 | |
2641 | ||
2642 | eval "$ac_cv_use_profile" | |
2643 | if test "$no_cache" != 1; then | |
2644 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
2645 | fi | |
2646 | ||
2647 | if test "$wxUSE_PROFILE" = yes; then | |
698dcdb6 | 2648 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2649 | else |
698dcdb6 | 2650 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2651 | fi |
698dcdb6 | 2652 | |
10f2d63a | 2653 | |
698dcdb6 | 2654 | echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6 |
d08b457b | 2655 | echo "configure:2656: checking for --enable-no_rtti" >&5 |
10f2d63a VZ |
2656 | no_cache=0 |
2657 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
2658 | if test "${enable_no_rtti+set}" = set; then | |
2659 | enableval="$enable_no_rtti" | |
698dcdb6 | 2660 | |
10f2d63a VZ |
2661 | if test "$enableval" = yes; then |
2662 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
2663 | else | |
2664 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
2665 | fi | |
698dcdb6 | 2666 | |
10f2d63a | 2667 | else |
698dcdb6 | 2668 | |
10f2d63a VZ |
2669 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` |
2670 | if test "x$LINE" != x ; then | |
2671 | eval "DEFAULT_$LINE" | |
2672 | else | |
2673 | no_cache=1 | |
2674 | fi | |
2675 | ||
2676 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
698dcdb6 VZ |
2677 | |
2678 | fi | |
10f2d63a VZ |
2679 | |
2680 | ||
2681 | eval "$ac_cv_use_no_rtti" | |
2682 | if test "$no_cache" != 1; then | |
2683 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
2684 | fi | |
2685 | ||
2686 | if test "$wxUSE_NO_RTTI" = yes; then | |
698dcdb6 | 2687 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2688 | else |
698dcdb6 | 2689 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2690 | fi |
698dcdb6 | 2691 | |
10f2d63a | 2692 | |
698dcdb6 | 2693 | echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6 |
d08b457b | 2694 | echo "configure:2695: checking for --enable-no_exceptions" >&5 |
10f2d63a VZ |
2695 | no_cache=0 |
2696 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
2697 | if test "${enable_no_exceptions+set}" = set; then | |
2698 | enableval="$enable_no_exceptions" | |
698dcdb6 | 2699 | |
10f2d63a VZ |
2700 | if test "$enableval" = yes; then |
2701 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
2702 | else | |
2703 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
2704 | fi | |
698dcdb6 | 2705 | |
10f2d63a | 2706 | else |
698dcdb6 | 2707 | |
10f2d63a VZ |
2708 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` |
2709 | if test "x$LINE" != x ; then | |
2710 | eval "DEFAULT_$LINE" | |
2711 | else | |
2712 | no_cache=1 | |
2713 | fi | |
2714 | ||
2715 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
698dcdb6 VZ |
2716 | |
2717 | fi | |
10f2d63a VZ |
2718 | |
2719 | ||
2720 | eval "$ac_cv_use_no_exceptions" | |
2721 | if test "$no_cache" != 1; then | |
2722 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
2723 | fi | |
2724 | ||
2725 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
698dcdb6 | 2726 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2727 | else |
698dcdb6 | 2728 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2729 | fi |
698dcdb6 | 2730 | |
10f2d63a | 2731 | |
698dcdb6 | 2732 | echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6 |
d08b457b | 2733 | echo "configure:2734: checking for --enable-permissive" >&5 |
10f2d63a VZ |
2734 | no_cache=0 |
2735 | # Check whether --enable-permissive or --disable-permissive was given. | |
2736 | if test "${enable_permissive+set}" = set; then | |
2737 | enableval="$enable_permissive" | |
698dcdb6 | 2738 | |
10f2d63a VZ |
2739 | if test "$enableval" = yes; then |
2740 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
2741 | else | |
2742 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
2743 | fi | |
698dcdb6 | 2744 | |
10f2d63a | 2745 | else |
698dcdb6 | 2746 | |
10f2d63a VZ |
2747 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` |
2748 | if test "x$LINE" != x ; then | |
2749 | eval "DEFAULT_$LINE" | |
2750 | else | |
2751 | no_cache=1 | |
2752 | fi | |
2753 | ||
2754 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
698dcdb6 VZ |
2755 | |
2756 | fi | |
10f2d63a VZ |
2757 | |
2758 | ||
2759 | eval "$ac_cv_use_permissive" | |
2760 | if test "$no_cache" != 1; then | |
2761 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
2762 | fi | |
2763 | ||
2764 | if test "$wxUSE_PERMISSIVE" = yes; then | |
698dcdb6 | 2765 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2766 | else |
698dcdb6 | 2767 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2768 | fi |
698dcdb6 | 2769 | |
10f2d63a | 2770 | |
698dcdb6 | 2771 | echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6 |
d08b457b | 2772 | echo "configure:2773: checking for --enable-no_deps" >&5 |
10f2d63a VZ |
2773 | no_cache=0 |
2774 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
2775 | if test "${enable_no_deps+set}" = set; then | |
2776 | enableval="$enable_no_deps" | |
698dcdb6 | 2777 | |
10f2d63a VZ |
2778 | if test "$enableval" = yes; then |
2779 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
2780 | else | |
2781 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
2782 | fi | |
698dcdb6 | 2783 | |
10f2d63a | 2784 | else |
698dcdb6 | 2785 | |
10f2d63a VZ |
2786 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` |
2787 | if test "x$LINE" != x ; then | |
2788 | eval "DEFAULT_$LINE" | |
2789 | else | |
2790 | no_cache=1 | |
2791 | fi | |
2792 | ||
2793 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
698dcdb6 VZ |
2794 | |
2795 | fi | |
10f2d63a VZ |
2796 | |
2797 | ||
2798 | eval "$ac_cv_use_no_deps" | |
2799 | if test "$no_cache" != 1; then | |
2800 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
2801 | fi | |
2802 | ||
2803 | if test "$wxUSE_NO_DEPS" = yes; then | |
698dcdb6 | 2804 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2805 | else |
698dcdb6 | 2806 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2807 | fi |
698dcdb6 VZ |
2808 | |
2809 | ||
10f2d63a | 2810 | |
54276ccf | 2811 | echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6 |
d08b457b | 2812 | echo "configure:2813: checking for --enable-compat20" >&5 |
54276ccf VZ |
2813 | no_cache=0 |
2814 | # Check whether --enable-compat20 or --disable-compat20 was given. | |
2815 | if test "${enable_compat20+set}" = set; then | |
2816 | enableval="$enable_compat20" | |
2817 | ||
2818 | if test "$enableval" = yes; then | |
2819 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes' | |
2820 | else | |
2821 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no' | |
2822 | fi | |
2823 | ||
2824 | else | |
2825 | ||
2826 | LINE=`grep "WXWIN_COMPATIBILITY_2" ${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_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2 | |
2834 | ||
2835 | fi | |
2836 | ||
2837 | ||
2838 | eval "$ac_cv_use_compat20" | |
2839 | if test "$no_cache" != 1; then | |
2840 | echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp | |
2841 | fi | |
2842 | ||
2843 | if test "$WXWIN_COMPATIBILITY_2" = yes; then | |
2844 | echo "$ac_t""yes" 1>&6 | |
2845 | else | |
2846 | echo "$ac_t""no" 1>&6 | |
2847 | fi | |
2848 | ||
2849 | ||
2850 | echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6 | |
d08b457b | 2851 | echo "configure:2852: checking for --enable-compat22" >&5 |
54276ccf VZ |
2852 | no_cache=0 |
2853 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
2854 | if test "${enable_compat22+set}" = set; then | |
2855 | enableval="$enable_compat22" | |
2856 | ||
2857 | if test "$enableval" = yes; then | |
2858 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
2859 | else | |
2860 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
2861 | fi | |
2862 | ||
2863 | else | |
2864 | ||
2865 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${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_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
2873 | ||
2874 | fi | |
2875 | ||
2876 | ||
2877 | eval "$ac_cv_use_compat22" | |
2878 | if test "$no_cache" != 1; then | |
2879 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
2880 | fi | |
2881 | ||
2882 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
2883 | echo "$ac_t""yes" 1>&6 | |
2884 | else | |
2885 | echo "$ac_t""no" 1>&6 | |
2886 | fi | |
2887 | ||
2888 | ||
2889 | ||
698dcdb6 VZ |
2890 | |
2891 | echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6 | |
d08b457b | 2892 | echo "configure:2893: checking for --enable-intl" >&5 |
10f2d63a VZ |
2893 | no_cache=0 |
2894 | # Check whether --enable-intl or --disable-intl was given. | |
2895 | if test "${enable_intl+set}" = set; then | |
2896 | enableval="$enable_intl" | |
698dcdb6 | 2897 | |
10f2d63a VZ |
2898 | if test "$enableval" = yes; then |
2899 | ac_cv_use_intl='wxUSE_INTL=yes' | |
2900 | else | |
2901 | ac_cv_use_intl='wxUSE_INTL=no' | |
2902 | fi | |
698dcdb6 | 2903 | |
10f2d63a | 2904 | else |
698dcdb6 | 2905 | |
10f2d63a VZ |
2906 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` |
2907 | if test "x$LINE" != x ; then | |
2908 | eval "DEFAULT_$LINE" | |
2909 | else | |
2910 | no_cache=1 | |
2911 | fi | |
2912 | ||
2913 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
698dcdb6 VZ |
2914 | |
2915 | fi | |
10f2d63a VZ |
2916 | |
2917 | ||
2918 | eval "$ac_cv_use_intl" | |
2919 | if test "$no_cache" != 1; then | |
2920 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
2921 | fi | |
2922 | ||
2923 | if test "$wxUSE_INTL" = yes; then | |
698dcdb6 | 2924 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2925 | else |
698dcdb6 | 2926 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2927 | fi |
698dcdb6 | 2928 | |
10f2d63a | 2929 | |
698dcdb6 | 2930 | echo $ac_n "checking for --enable-config""... $ac_c" 1>&6 |
d08b457b | 2931 | echo "configure:2932: checking for --enable-config" >&5 |
10f2d63a VZ |
2932 | no_cache=0 |
2933 | # Check whether --enable-config or --disable-config was given. | |
2934 | if test "${enable_config+set}" = set; then | |
2935 | enableval="$enable_config" | |
698dcdb6 | 2936 | |
10f2d63a VZ |
2937 | if test "$enableval" = yes; then |
2938 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
2939 | else | |
2940 | ac_cv_use_config='wxUSE_CONFIG=no' | |
2941 | fi | |
698dcdb6 | 2942 | |
10f2d63a | 2943 | else |
698dcdb6 | 2944 | |
10f2d63a VZ |
2945 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` |
2946 | if test "x$LINE" != x ; then | |
2947 | eval "DEFAULT_$LINE" | |
2948 | else | |
2949 | no_cache=1 | |
2950 | fi | |
2951 | ||
2952 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
698dcdb6 VZ |
2953 | |
2954 | fi | |
10f2d63a VZ |
2955 | |
2956 | ||
2957 | eval "$ac_cv_use_config" | |
2958 | if test "$no_cache" != 1; then | |
2959 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
2960 | fi | |
2961 | ||
2962 | if test "$wxUSE_CONFIG" = yes; then | |
698dcdb6 | 2963 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2964 | else |
698dcdb6 | 2965 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2966 | fi |
698dcdb6 VZ |
2967 | |
2968 | ||
b12915c1 | 2969 | |
698dcdb6 | 2970 | echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6 |
d08b457b | 2971 | echo "configure:2972: checking for --enable-sockets" >&5 |
10f2d63a VZ |
2972 | no_cache=0 |
2973 | # Check whether --enable-sockets or --disable-sockets was given. | |
2974 | if test "${enable_sockets+set}" = set; then | |
2975 | enableval="$enable_sockets" | |
698dcdb6 | 2976 | |
10f2d63a VZ |
2977 | if test "$enableval" = yes; then |
2978 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
2979 | else | |
2980 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
2981 | fi | |
698dcdb6 | 2982 | |
10f2d63a | 2983 | else |
698dcdb6 | 2984 | |
10f2d63a VZ |
2985 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` |
2986 | if test "x$LINE" != x ; then | |
2987 | eval "DEFAULT_$LINE" | |
2988 | else | |
2989 | no_cache=1 | |
2990 | fi | |
2991 | ||
2992 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
698dcdb6 VZ |
2993 | |
2994 | fi | |
10f2d63a VZ |
2995 | |
2996 | ||
2997 | eval "$ac_cv_use_sockets" | |
2998 | if test "$no_cache" != 1; then | |
2999 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
3000 | fi | |
3001 | ||
3002 | if test "$wxUSE_SOCKETS" = yes; then | |
698dcdb6 | 3003 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3004 | else |
698dcdb6 | 3005 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3006 | fi |
698dcdb6 | 3007 | |
b12915c1 | 3008 | |
698dcdb6 VZ |
3009 | |
3010 | echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6 | |
d08b457b | 3011 | echo "configure:3012: checking for --enable-ipc" >&5 |
10f2d63a | 3012 | no_cache=0 |
eb4efbdc VZ |
3013 | # Check whether --enable-ipc or --disable-ipc was given. |
3014 | if test "${enable_ipc+set}" = set; then | |
3015 | enableval="$enable_ipc" | |
698dcdb6 | 3016 | |
10f2d63a | 3017 | if test "$enableval" = yes; then |
eb4efbdc | 3018 | ac_cv_use_ipc='wxUSE_IPC=yes' |
10f2d63a | 3019 | else |
eb4efbdc | 3020 | ac_cv_use_ipc='wxUSE_IPC=no' |
10f2d63a | 3021 | fi |
698dcdb6 | 3022 | |
10f2d63a | 3023 | else |
698dcdb6 | 3024 | |
eb4efbdc | 3025 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` |
10f2d63a VZ |
3026 | if test "x$LINE" != x ; then |
3027 | eval "DEFAULT_$LINE" | |
3028 | else | |
3029 | no_cache=1 | |
3030 | fi | |
3031 | ||
eb4efbdc | 3032 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC |
698dcdb6 VZ |
3033 | |
3034 | fi | |
10f2d63a VZ |
3035 | |
3036 | ||
eb4efbdc | 3037 | eval "$ac_cv_use_ipc" |
10f2d63a | 3038 | if test "$no_cache" != 1; then |
eb4efbdc | 3039 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3040 | fi |
3041 | ||
eb4efbdc | 3042 | if test "$wxUSE_IPC" = yes; then |
698dcdb6 | 3043 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3044 | else |
698dcdb6 | 3045 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3046 | fi |
698dcdb6 VZ |
3047 | |
3048 | ||
eb4efbdc | 3049 | |
1e6feb95 | 3050 | echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6 |
d08b457b | 3051 | echo "configure:3052: checking for --enable-cmdline" >&5 |
1e6feb95 VZ |
3052 | no_cache=0 |
3053 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
3054 | if test "${enable_cmdline+set}" = set; then | |
3055 | enableval="$enable_cmdline" | |
3056 | ||
3057 | if test "$enableval" = yes; then | |
3058 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
3059 | else | |
3060 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
3061 | fi | |
3062 | ||
3063 | else | |
3064 | ||
3065 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
3066 | if test "x$LINE" != x ; then | |
3067 | eval "DEFAULT_$LINE" | |
3068 | else | |
3069 | no_cache=1 | |
3070 | fi | |
3071 | ||
3072 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
3073 | ||
3074 | fi | |
3075 | ||
3076 | ||
3077 | eval "$ac_cv_use_cmdline" | |
3078 | if test "$no_cache" != 1; then | |
3079 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
3080 | fi | |
3081 | ||
3082 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
3083 | echo "$ac_t""yes" 1>&6 | |
3084 | else | |
3085 | echo "$ac_t""no" 1>&6 | |
3086 | fi | |
3087 | ||
3088 | ||
3089 | echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6 | |
d08b457b | 3090 | echo "configure:3091: checking for --enable-datetime" >&5 |
1e6feb95 VZ |
3091 | no_cache=0 |
3092 | # Check whether --enable-datetime or --disable-datetime was given. | |
3093 | if test "${enable_datetime+set}" = set; then | |
3094 | enableval="$enable_datetime" | |
3095 | ||
3096 | if test "$enableval" = yes; then | |
3097 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
3098 | else | |
3099 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
3100 | fi | |
3101 | ||
3102 | else | |
3103 | ||
3104 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
3105 | if test "x$LINE" != x ; then | |
3106 | eval "DEFAULT_$LINE" | |
3107 | else | |
3108 | no_cache=1 | |
3109 | fi | |
3110 | ||
3111 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
3112 | ||
3113 | fi | |
3114 | ||
3115 | ||
3116 | eval "$ac_cv_use_datetime" | |
3117 | if test "$no_cache" != 1; then | |
3118 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
3119 | fi | |
3120 | ||
3121 | if test "$wxUSE_DATETIME" = yes; then | |
3122 | echo "$ac_t""yes" 1>&6 | |
3123 | else | |
3124 | echo "$ac_t""no" 1>&6 | |
3125 | fi | |
3126 | ||
3127 | ||
3128 | echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6 | |
d08b457b | 3129 | echo "configure:3130: checking for --enable-timedate" >&5 |
1e6feb95 VZ |
3130 | no_cache=0 |
3131 | # Check whether --enable-timedate or --disable-timedate was given. | |
3132 | if test "${enable_timedate+set}" = set; then | |
3133 | enableval="$enable_timedate" | |
3134 | ||
3135 | if test "$enableval" = yes; then | |
3136 | ac_cv_use_timedate='wxUSE_TIMEDATE=yes' | |
3137 | else | |
3138 | ac_cv_use_timedate='wxUSE_TIMEDATE=no' | |
3139 | fi | |
3140 | ||
3141 | else | |
3142 | ||
3143 | LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}` | |
3144 | if test "x$LINE" != x ; then | |
3145 | eval "DEFAULT_$LINE" | |
3146 | else | |
3147 | no_cache=1 | |
3148 | fi | |
3149 | ||
3150 | ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE | |
3151 | ||
3152 | fi | |
3153 | ||
3154 | ||
3155 | eval "$ac_cv_use_timedate" | |
3156 | if test "$no_cache" != 1; then | |
3157 | echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp | |
3158 | fi | |
3159 | ||
3160 | if test "$wxUSE_TIMEDATE" = yes; then | |
3161 | echo "$ac_t""yes" 1>&6 | |
3162 | else | |
3163 | echo "$ac_t""no" 1>&6 | |
3164 | fi | |
3165 | ||
3166 | ||
3167 | echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6 | |
d08b457b | 3168 | echo "configure:3169: checking for --enable-stopwatch" >&5 |
1e6feb95 VZ |
3169 | no_cache=0 |
3170 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
3171 | if test "${enable_stopwatch+set}" = set; then | |
3172 | enableval="$enable_stopwatch" | |
3173 | ||
3174 | if test "$enableval" = yes; then | |
3175 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
3176 | else | |
3177 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
3178 | fi | |
3179 | ||
3180 | else | |
3181 | ||
3182 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` | |
3183 | if test "x$LINE" != x ; then | |
3184 | eval "DEFAULT_$LINE" | |
3185 | else | |
3186 | no_cache=1 | |
3187 | fi | |
3188 | ||
3189 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
3190 | ||
3191 | fi | |
3192 | ||
3193 | ||
3194 | eval "$ac_cv_use_stopwatch" | |
3195 | if test "$no_cache" != 1; then | |
3196 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
3197 | fi | |
3198 | ||
3199 | if test "$wxUSE_STOPWATCH" = yes; then | |
3200 | echo "$ac_t""yes" 1>&6 | |
3201 | else | |
3202 | echo "$ac_t""no" 1>&6 | |
3203 | fi | |
3204 | ||
3205 | ||
698dcdb6 | 3206 | echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6 |
d08b457b | 3207 | echo "configure:3208: checking for --enable-dialupman" >&5 |
10f2d63a | 3208 | no_cache=0 |
eb4efbdc VZ |
3209 | # Check whether --enable-dialupman or --disable-dialupman was given. |
3210 | if test "${enable_dialupman+set}" = set; then | |
3211 | enableval="$enable_dialupman" | |
698dcdb6 | 3212 | |
10f2d63a | 3213 | if test "$enableval" = yes; then |
eb4efbdc | 3214 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' |
10f2d63a | 3215 | else |
eb4efbdc | 3216 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' |
10f2d63a | 3217 | fi |
698dcdb6 | 3218 | |
10f2d63a | 3219 | else |
698dcdb6 | 3220 | |
eb4efbdc | 3221 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3222 | if test "x$LINE" != x ; then |
3223 | eval "DEFAULT_$LINE" | |
3224 | else | |
3225 | no_cache=1 | |
3226 | fi | |
3227 | ||
eb4efbdc | 3228 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER |
698dcdb6 VZ |
3229 | |
3230 | fi | |
10f2d63a VZ |
3231 | |
3232 | ||
eb4efbdc | 3233 | eval "$ac_cv_use_dialupman" |
10f2d63a | 3234 | if test "$no_cache" != 1; then |
eb4efbdc | 3235 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3236 | fi |
3237 | ||
eb4efbdc | 3238 | if test "$wxUSE_DIALUP_MANAGER" = yes; then |
698dcdb6 | 3239 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3240 | else |
698dcdb6 | 3241 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3242 | fi |
698dcdb6 | 3243 | |
10f2d63a | 3244 | |
698dcdb6 | 3245 | echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6 |
d08b457b | 3246 | echo "configure:3247: checking for --enable-apple_ieee" >&5 |
10f2d63a VZ |
3247 | no_cache=0 |
3248 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
3249 | if test "${enable_apple_ieee+set}" = set; then | |
3250 | enableval="$enable_apple_ieee" | |
698dcdb6 | 3251 | |
10f2d63a VZ |
3252 | if test "$enableval" = yes; then |
3253 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
3254 | else | |
3255 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
3256 | fi | |
698dcdb6 | 3257 | |
10f2d63a | 3258 | else |
698dcdb6 | 3259 | |
10f2d63a VZ |
3260 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` |
3261 | if test "x$LINE" != x ; then | |
3262 | eval "DEFAULT_$LINE" | |
3263 | else | |
3264 | no_cache=1 | |
3265 | fi | |
3266 | ||
3267 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
698dcdb6 VZ |
3268 | |
3269 | fi | |
10f2d63a VZ |
3270 | |
3271 | ||
3272 | eval "$ac_cv_use_apple_ieee" | |
3273 | if test "$no_cache" != 1; then | |
3274 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
3275 | fi | |
3276 | ||
3277 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
698dcdb6 | 3278 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3279 | else |
698dcdb6 | 3280 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3281 | fi |
698dcdb6 | 3282 | |
10f2d63a | 3283 | |
1e6feb95 | 3284 | echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6 |
d08b457b | 3285 | echo "configure:3286: checking for --enable-timer" >&5 |
10f2d63a | 3286 | no_cache=0 |
1e6feb95 VZ |
3287 | # Check whether --enable-timer or --disable-timer was given. |
3288 | if test "${enable_timer+set}" = set; then | |
3289 | enableval="$enable_timer" | |
698dcdb6 | 3290 | |
10f2d63a | 3291 | if test "$enableval" = yes; then |
1e6feb95 | 3292 | ac_cv_use_timer='wxUSE_TIMER=yes' |
10f2d63a | 3293 | else |
1e6feb95 | 3294 | ac_cv_use_timer='wxUSE_TIMER=no' |
10f2d63a | 3295 | fi |
698dcdb6 | 3296 | |
10f2d63a | 3297 | else |
698dcdb6 | 3298 | |
1e6feb95 | 3299 | LINE=`grep "wxUSE_TIMER" ${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 | ||
1e6feb95 | 3306 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER |
698dcdb6 VZ |
3307 | |
3308 | fi | |
10f2d63a VZ |
3309 | |
3310 | ||
1e6feb95 | 3311 | eval "$ac_cv_use_timer" |
10f2d63a | 3312 | if test "$no_cache" != 1; then |
1e6feb95 | 3313 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3314 | fi |
3315 | ||
1e6feb95 | 3316 | if test "$wxUSE_TIMER" = 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 | 3321 | |
10f2d63a | 3322 | |
698dcdb6 | 3323 | echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6 |
d08b457b | 3324 | echo "configure:3325: checking for --enable-wave" >&5 |
10f2d63a VZ |
3325 | no_cache=0 |
3326 | # Check whether --enable-wave or --disable-wave was given. | |
3327 | if test "${enable_wave+set}" = set; then | |
3328 | enableval="$enable_wave" | |
698dcdb6 | 3329 | |
10f2d63a VZ |
3330 | if test "$enableval" = yes; then |
3331 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
3332 | else | |
3333 | ac_cv_use_wave='wxUSE_WAVE=no' | |
3334 | fi | |
698dcdb6 | 3335 | |
10f2d63a | 3336 | else |
698dcdb6 | 3337 | |
10f2d63a VZ |
3338 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` |
3339 | if test "x$LINE" != x ; then | |
3340 | eval "DEFAULT_$LINE" | |
3341 | else | |
3342 | no_cache=1 | |
3343 | fi | |
3344 | ||
3345 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
698dcdb6 VZ |
3346 | |
3347 | fi | |
10f2d63a VZ |
3348 | |
3349 | ||
3350 | eval "$ac_cv_use_wave" | |
3351 | if test "$no_cache" != 1; then | |
3352 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
3353 | fi | |
3354 | ||
3355 | if test "$wxUSE_WAVE" = yes; then | |
698dcdb6 | 3356 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3357 | else |
698dcdb6 | 3358 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3359 | fi |
698dcdb6 | 3360 | |
10f2d63a | 3361 | |
698dcdb6 | 3362 | echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6 |
d08b457b | 3363 | echo "configure:3364: checking for --enable-fraction" >&5 |
10f2d63a VZ |
3364 | no_cache=0 |
3365 | # Check whether --enable-fraction or --disable-fraction was given. | |
3366 | if test "${enable_fraction+set}" = set; then | |
3367 | enableval="$enable_fraction" | |
698dcdb6 | 3368 | |
10f2d63a VZ |
3369 | if test "$enableval" = yes; then |
3370 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
3371 | else | |
3372 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
3373 | fi | |
698dcdb6 | 3374 | |
10f2d63a | 3375 | else |
698dcdb6 | 3376 | |
10f2d63a VZ |
3377 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` |
3378 | if test "x$LINE" != x ; then | |
3379 | eval "DEFAULT_$LINE" | |
3380 | else | |
3381 | no_cache=1 | |
3382 | fi | |
3383 | ||
3384 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
698dcdb6 VZ |
3385 | |
3386 | fi | |
10f2d63a VZ |
3387 | |
3388 | ||
3389 | eval "$ac_cv_use_fraction" | |
3390 | if test "$no_cache" != 1; then | |
3391 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
3392 | fi | |
3393 | ||
3394 | if test "$wxUSE_FRACTION" = yes; then | |
698dcdb6 | 3395 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3396 | else |
698dcdb6 | 3397 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3398 | fi |
698dcdb6 | 3399 | |
10f2d63a | 3400 | |
698dcdb6 | 3401 | echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6 |
d08b457b | 3402 | echo "configure:3403: checking for --enable-dynlib" >&5 |
10f2d63a VZ |
3403 | no_cache=0 |
3404 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
3405 | if test "${enable_dynlib+set}" = set; then | |
3406 | enableval="$enable_dynlib" | |
698dcdb6 | 3407 | |
10f2d63a VZ |
3408 | if test "$enableval" = yes; then |
3409 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
3410 | else | |
3411 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
3412 | fi | |
698dcdb6 | 3413 | |
10f2d63a | 3414 | else |
698dcdb6 | 3415 | |
10f2d63a VZ |
3416 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` |
3417 | if test "x$LINE" != x ; then | |
3418 | eval "DEFAULT_$LINE" | |
3419 | else | |
3420 | no_cache=1 | |
3421 | fi | |
3422 | ||
3423 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
698dcdb6 VZ |
3424 | |
3425 | fi | |
10f2d63a VZ |
3426 | |
3427 | ||
3428 | eval "$ac_cv_use_dynlib" | |
3429 | if test "$no_cache" != 1; then | |
3430 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
3431 | fi | |
3432 | ||
3433 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
698dcdb6 | 3434 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3435 | else |
698dcdb6 | 3436 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3437 | fi |
698dcdb6 | 3438 | |
10f2d63a | 3439 | |
698dcdb6 | 3440 | echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6 |
d08b457b | 3441 | echo "configure:3442: checking for --enable-longlong" >&5 |
10f2d63a VZ |
3442 | no_cache=0 |
3443 | # Check whether --enable-longlong or --disable-longlong was given. | |
3444 | if test "${enable_longlong+set}" = set; then | |
3445 | enableval="$enable_longlong" | |
698dcdb6 | 3446 | |
10f2d63a VZ |
3447 | if test "$enableval" = yes; then |
3448 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
3449 | else | |
3450 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
3451 | fi | |
698dcdb6 | 3452 | |
10f2d63a | 3453 | else |
698dcdb6 | 3454 | |
10f2d63a VZ |
3455 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` |
3456 | if test "x$LINE" != x ; then | |
3457 | eval "DEFAULT_$LINE" | |
3458 | else | |
3459 | no_cache=1 | |
3460 | fi | |
3461 | ||
3462 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
698dcdb6 VZ |
3463 | |
3464 | fi | |
10f2d63a VZ |
3465 | |
3466 | ||
3467 | eval "$ac_cv_use_longlong" | |
3468 | if test "$no_cache" != 1; then | |
3469 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
3470 | fi | |
3471 | ||
3472 | if test "$wxUSE_LONGLONG" = yes; then | |
698dcdb6 | 3473 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3474 | else |
698dcdb6 | 3475 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3476 | fi |
698dcdb6 | 3477 | |
10f2d63a | 3478 | |
698dcdb6 | 3479 | echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6 |
d08b457b | 3480 | echo "configure:3481: checking for --enable-geometry" >&5 |
e8f65ba6 RR |
3481 | no_cache=0 |
3482 | # Check whether --enable-geometry or --disable-geometry was given. | |
3483 | if test "${enable_geometry+set}" = set; then | |
3484 | enableval="$enable_geometry" | |
698dcdb6 | 3485 | |
e8f65ba6 RR |
3486 | if test "$enableval" = yes; then |
3487 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
3488 | else | |
3489 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
3490 | fi | |
698dcdb6 | 3491 | |
e8f65ba6 | 3492 | else |
698dcdb6 | 3493 | |
e8f65ba6 RR |
3494 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` |
3495 | if test "x$LINE" != x ; then | |
3496 | eval "DEFAULT_$LINE" | |
3497 | else | |
3498 | no_cache=1 | |
3499 | fi | |
3500 | ||
3501 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
698dcdb6 VZ |
3502 | |
3503 | fi | |
e8f65ba6 RR |
3504 | |
3505 | ||
3506 | eval "$ac_cv_use_geometry" | |
3507 | if test "$no_cache" != 1; then | |
3508 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
3509 | fi | |
3510 | ||
3511 | if test "$wxUSE_GEOMETRY" = yes; then | |
698dcdb6 | 3512 | echo "$ac_t""yes" 1>&6 |
e8f65ba6 | 3513 | else |
698dcdb6 | 3514 | echo "$ac_t""no" 1>&6 |
e8f65ba6 | 3515 | fi |
698dcdb6 | 3516 | |
e8f65ba6 | 3517 | |
698dcdb6 | 3518 | echo $ac_n "checking for --enable-log""... $ac_c" 1>&6 |
d08b457b | 3519 | echo "configure:3520: checking for --enable-log" >&5 |
10f2d63a VZ |
3520 | no_cache=0 |
3521 | # Check whether --enable-log or --disable-log was given. | |
3522 | if test "${enable_log+set}" = set; then | |
3523 | enableval="$enable_log" | |
698dcdb6 | 3524 | |
10f2d63a VZ |
3525 | if test "$enableval" = yes; then |
3526 | ac_cv_use_log='wxUSE_LOG=yes' | |
3527 | else | |
3528 | ac_cv_use_log='wxUSE_LOG=no' | |
3529 | fi | |
698dcdb6 | 3530 | |
10f2d63a | 3531 | else |
698dcdb6 | 3532 | |
10f2d63a VZ |
3533 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` |
3534 | if test "x$LINE" != x ; then | |
3535 | eval "DEFAULT_$LINE" | |
3536 | else | |
3537 | no_cache=1 | |
3538 | fi | |
3539 | ||
3540 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
698dcdb6 VZ |
3541 | |
3542 | fi | |
10f2d63a VZ |
3543 | |
3544 | ||
3545 | eval "$ac_cv_use_log" | |
3546 | if test "$no_cache" != 1; then | |
3547 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
3548 | fi | |
3549 | ||
3550 | if test "$wxUSE_LOG" = yes; then | |
698dcdb6 | 3551 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3552 | else |
698dcdb6 | 3553 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3554 | fi |
698dcdb6 | 3555 | |
10f2d63a | 3556 | |
698dcdb6 | 3557 | echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6 |
d08b457b | 3558 | echo "configure:3559: checking for --enable-streams" >&5 |
10f2d63a VZ |
3559 | no_cache=0 |
3560 | # Check whether --enable-streams or --disable-streams was given. | |
3561 | if test "${enable_streams+set}" = set; then | |
3562 | enableval="$enable_streams" | |
698dcdb6 | 3563 | |
10f2d63a VZ |
3564 | if test "$enableval" = yes; then |
3565 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
3566 | else | |
3567 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
3568 | fi | |
698dcdb6 | 3569 | |
10f2d63a | 3570 | else |
698dcdb6 | 3571 | |
10f2d63a VZ |
3572 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` |
3573 | if test "x$LINE" != x ; then | |
3574 | eval "DEFAULT_$LINE" | |
3575 | else | |
3576 | no_cache=1 | |
3577 | fi | |
3578 | ||
3579 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
698dcdb6 VZ |
3580 | |
3581 | fi | |
10f2d63a VZ |
3582 | |
3583 | ||
3584 | eval "$ac_cv_use_streams" | |
3585 | if test "$no_cache" != 1; then | |
3586 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
3587 | fi | |
3588 | ||
3589 | if test "$wxUSE_STREAMS" = yes; then | |
698dcdb6 | 3590 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3591 | else |
698dcdb6 | 3592 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3593 | fi |
698dcdb6 | 3594 | |
10f2d63a | 3595 | |
698dcdb6 | 3596 | echo $ac_n "checking for --enable-file""... $ac_c" 1>&6 |
d08b457b | 3597 | echo "configure:3598: checking for --enable-file" >&5 |
10f2d63a VZ |
3598 | no_cache=0 |
3599 | # Check whether --enable-file or --disable-file was given. | |
3600 | if test "${enable_file+set}" = set; then | |
3601 | enableval="$enable_file" | |
698dcdb6 | 3602 | |
10f2d63a VZ |
3603 | if test "$enableval" = yes; then |
3604 | ac_cv_use_file='wxUSE_FILE=yes' | |
3605 | else | |
3606 | ac_cv_use_file='wxUSE_FILE=no' | |
3607 | fi | |
698dcdb6 | 3608 | |
10f2d63a | 3609 | else |
698dcdb6 | 3610 | |
10f2d63a VZ |
3611 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` |
3612 | if test "x$LINE" != x ; then | |
3613 | eval "DEFAULT_$LINE" | |
3614 | else | |
3615 | no_cache=1 | |
3616 | fi | |
3617 | ||
3618 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
698dcdb6 VZ |
3619 | |
3620 | fi | |
10f2d63a VZ |
3621 | |
3622 | ||
3623 | eval "$ac_cv_use_file" | |
3624 | if test "$no_cache" != 1; then | |
3625 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
3626 | fi | |
3627 | ||
3628 | if test "$wxUSE_FILE" = yes; then | |
698dcdb6 | 3629 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3630 | else |
698dcdb6 | 3631 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3632 | fi |
698dcdb6 | 3633 | |
10f2d63a | 3634 | |
1e6feb95 | 3635 | echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6 |
d08b457b | 3636 | echo "configure:3637: checking for --enable-ffile" >&5 |
10f2d63a | 3637 | no_cache=0 |
1e6feb95 VZ |
3638 | # Check whether --enable-ffile or --disable-ffile was given. |
3639 | if test "${enable_ffile+set}" = set; then | |
3640 | enableval="$enable_ffile" | |
698dcdb6 | 3641 | |
10f2d63a | 3642 | if test "$enableval" = yes; then |
1e6feb95 | 3643 | ac_cv_use_ffile='wxUSE_FFILE=yes' |
10f2d63a | 3644 | else |
1e6feb95 | 3645 | ac_cv_use_ffile='wxUSE_FFILE=no' |
10f2d63a | 3646 | fi |
698dcdb6 | 3647 | |
10f2d63a | 3648 | else |
698dcdb6 | 3649 | |
1e6feb95 | 3650 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
3651 | if test "x$LINE" != x ; then |
3652 | eval "DEFAULT_$LINE" | |
3653 | else | |
3654 | no_cache=1 | |
3655 | fi | |
3656 | ||
1e6feb95 | 3657 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE |
698dcdb6 VZ |
3658 | |
3659 | fi | |
10f2d63a VZ |
3660 | |
3661 | ||
1e6feb95 | 3662 | eval "$ac_cv_use_ffile" |
10f2d63a | 3663 | if test "$no_cache" != 1; then |
1e6feb95 | 3664 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3665 | fi |
3666 | ||
1e6feb95 | 3667 | if test "$wxUSE_FFILE" = yes; then |
698dcdb6 | 3668 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3669 | else |
698dcdb6 | 3670 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3671 | fi |
698dcdb6 | 3672 | |
10f2d63a | 3673 | |
1e6feb95 | 3674 | echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6 |
d08b457b | 3675 | echo "configure:3676: checking for --enable-textfile" >&5 |
10f2d63a | 3676 | no_cache=0 |
1e6feb95 VZ |
3677 | # Check whether --enable-textfile or --disable-textfile was given. |
3678 | if test "${enable_textfile+set}" = set; then | |
3679 | enableval="$enable_textfile" | |
698dcdb6 | 3680 | |
10f2d63a | 3681 | if test "$enableval" = yes; then |
1e6feb95 | 3682 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' |
10f2d63a | 3683 | else |
1e6feb95 | 3684 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' |
10f2d63a | 3685 | fi |
698dcdb6 | 3686 | |
10f2d63a | 3687 | else |
698dcdb6 | 3688 | |
1e6feb95 | 3689 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
3690 | if test "x$LINE" != x ; then |
3691 | eval "DEFAULT_$LINE" | |
3692 | else | |
3693 | no_cache=1 | |
3694 | fi | |
3695 | ||
1e6feb95 | 3696 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE |
698dcdb6 VZ |
3697 | |
3698 | fi | |
10f2d63a VZ |
3699 | |
3700 | ||
1e6feb95 | 3701 | eval "$ac_cv_use_textfile" |
10f2d63a | 3702 | if test "$no_cache" != 1; then |
1e6feb95 | 3703 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3704 | fi |
3705 | ||
1e6feb95 | 3706 | if test "$wxUSE_TEXTFILE" = yes; then |
698dcdb6 | 3707 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3708 | else |
698dcdb6 | 3709 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3710 | fi |
698dcdb6 | 3711 | |
10f2d63a | 3712 | |
1e6feb95 | 3713 | echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6 |
d08b457b | 3714 | echo "configure:3715: checking for --enable-fontmap" >&5 |
10f2d63a | 3715 | no_cache=0 |
1e6feb95 VZ |
3716 | # Check whether --enable-fontmap or --disable-fontmap was given. |
3717 | if test "${enable_fontmap+set}" = set; then | |
3718 | enableval="$enable_fontmap" | |
698dcdb6 | 3719 | |
10f2d63a | 3720 | if test "$enableval" = yes; then |
1e6feb95 | 3721 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' |
10f2d63a | 3722 | else |
1e6feb95 | 3723 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' |
10f2d63a | 3724 | fi |
698dcdb6 | 3725 | |
10f2d63a | 3726 | else |
698dcdb6 | 3727 | |
1e6feb95 | 3728 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` |
10f2d63a VZ |
3729 | if test "x$LINE" != x ; then |
3730 | eval "DEFAULT_$LINE" | |
3731 | else | |
3732 | no_cache=1 | |
3733 | fi | |
3734 | ||
1e6feb95 | 3735 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP |
698dcdb6 VZ |
3736 | |
3737 | fi | |
10f2d63a VZ |
3738 | |
3739 | ||
1e6feb95 | 3740 | eval "$ac_cv_use_fontmap" |
10f2d63a | 3741 | if test "$no_cache" != 1; then |
1e6feb95 | 3742 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3743 | fi |
3744 | ||
1e6feb95 | 3745 | if test "$wxUSE_FONTMAP" = yes; then |
698dcdb6 | 3746 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3747 | else |
698dcdb6 | 3748 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3749 | fi |
698dcdb6 | 3750 | |
10f2d63a | 3751 | |
1e6feb95 | 3752 | echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6 |
d08b457b | 3753 | echo "configure:3754: checking for --enable-unicode" >&5 |
10f2d63a | 3754 | no_cache=0 |
1e6feb95 VZ |
3755 | # Check whether --enable-unicode or --disable-unicode was given. |
3756 | if test "${enable_unicode+set}" = set; then | |
3757 | enableval="$enable_unicode" | |
3758 | ||
3759 | if test "$enableval" = yes; then | |
3760 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
3761 | else | |
3762 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
3763 | fi | |
3764 | ||
3765 | else | |
3766 | ||
3767 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
3768 | if test "x$LINE" != x ; then | |
3769 | eval "DEFAULT_$LINE" | |
3770 | else | |
3771 | no_cache=1 | |
3772 | fi | |
3773 | ||
3774 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
3775 | ||
3776 | fi | |
3777 | ||
3778 | ||
3779 | eval "$ac_cv_use_unicode" | |
3780 | if test "$no_cache" != 1; then | |
3781 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
3782 | fi | |
3783 | ||
3784 | if test "$wxUSE_UNICODE" = yes; then | |
3785 | echo "$ac_t""yes" 1>&6 | |
3786 | else | |
3787 | echo "$ac_t""no" 1>&6 | |
3788 | fi | |
3789 | ||
3790 | ||
1e6feb95 | 3791 | echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6 |
d08b457b | 3792 | echo "configure:3793: checking for --enable-wxprintfv" >&5 |
1e6feb95 VZ |
3793 | no_cache=0 |
3794 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
3795 | if test "${enable_wxprintfv+set}" = set; then | |
3796 | enableval="$enable_wxprintfv" | |
3797 | ||
3798 | if test "$enableval" = yes; then | |
10f2d63a VZ |
3799 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' |
3800 | else | |
3801 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
3802 | fi | |
698dcdb6 | 3803 | |
10f2d63a | 3804 | else |
698dcdb6 | 3805 | |
10f2d63a VZ |
3806 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` |
3807 | if test "x$LINE" != x ; then | |
3808 | eval "DEFAULT_$LINE" | |
3809 | else | |
3810 | no_cache=1 | |
3811 | fi | |
3812 | ||
3813 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
698dcdb6 VZ |
3814 | |
3815 | fi | |
10f2d63a VZ |
3816 | |
3817 | ||
3818 | eval "$ac_cv_use_wxprintfv" | |
3819 | if test "$no_cache" != 1; then | |
3820 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
3821 | fi | |
3822 | ||
3823 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
698dcdb6 | 3824 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3825 | else |
698dcdb6 | 3826 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3827 | fi |
698dcdb6 | 3828 | |
10f2d63a | 3829 | |
698dcdb6 | 3830 | echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6 |
d08b457b | 3831 | echo "configure:3832: checking for --enable-std_iostreams" >&5 |
10f2d63a VZ |
3832 | no_cache=0 |
3833 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
3834 | if test "${enable_std_iostreams+set}" = set; then | |
3835 | enableval="$enable_std_iostreams" | |
698dcdb6 | 3836 | |
10f2d63a VZ |
3837 | if test "$enableval" = yes; then |
3838 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
3839 | else | |
3840 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
3841 | fi | |
698dcdb6 | 3842 | |
10f2d63a | 3843 | else |
698dcdb6 | 3844 | |
10f2d63a VZ |
3845 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
3846 | if test "x$LINE" != x ; then | |
3847 | eval "DEFAULT_$LINE" | |
3848 | else | |
3849 | no_cache=1 | |
3850 | fi | |
3851 | ||
3852 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
698dcdb6 VZ |
3853 | |
3854 | fi | |
10f2d63a VZ |
3855 | |
3856 | ||
3857 | eval "$ac_cv_use_std_iostreams" | |
3858 | if test "$no_cache" != 1; then | |
3859 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
3860 | fi | |
3861 | ||
3862 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
698dcdb6 | 3863 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3864 | else |
698dcdb6 | 3865 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3866 | fi |
698dcdb6 | 3867 | |
10f2d63a | 3868 | |
698dcdb6 | 3869 | echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6 |
d08b457b | 3870 | echo "configure:3871: checking for --enable-filesystem" >&5 |
24528b0c VS |
3871 | no_cache=0 |
3872 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
3873 | if test "${enable_filesystem+set}" = set; then | |
3874 | enableval="$enable_filesystem" | |
698dcdb6 | 3875 | |
24528b0c VS |
3876 | if test "$enableval" = yes; then |
3877 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
3878 | else | |
3879 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
3880 | fi | |
698dcdb6 | 3881 | |
24528b0c | 3882 | else |
698dcdb6 | 3883 | |
24528b0c VS |
3884 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` |
3885 | if test "x$LINE" != x ; then | |
3886 | eval "DEFAULT_$LINE" | |
3887 | else | |
3888 | no_cache=1 | |
3889 | fi | |
3890 | ||
3891 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
698dcdb6 VZ |
3892 | |
3893 | fi | |
24528b0c VS |
3894 | |
3895 | ||
3896 | eval "$ac_cv_use_filesystem" | |
3897 | if test "$no_cache" != 1; then | |
3898 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
3899 | fi | |
3900 | ||
3901 | if test "$wxUSE_FILESYSTEM" = yes; then | |
698dcdb6 | 3902 | echo "$ac_t""yes" 1>&6 |
24528b0c | 3903 | else |
698dcdb6 | 3904 | echo "$ac_t""no" 1>&6 |
24528b0c | 3905 | fi |
698dcdb6 | 3906 | |
24528b0c | 3907 | |
698dcdb6 | 3908 | echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6 |
d08b457b | 3909 | echo "configure:3910: checking for --enable-fs_inet" >&5 |
10f2d63a VZ |
3910 | no_cache=0 |
3911 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
3912 | if test "${enable_fs_inet+set}" = set; then | |
3913 | enableval="$enable_fs_inet" | |
698dcdb6 | 3914 | |
10f2d63a VZ |
3915 | if test "$enableval" = yes; then |
3916 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
3917 | else | |
3918 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
3919 | fi | |
698dcdb6 | 3920 | |
10f2d63a | 3921 | else |
698dcdb6 | 3922 | |
10f2d63a VZ |
3923 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` |
3924 | if test "x$LINE" != x ; then | |
3925 | eval "DEFAULT_$LINE" | |
3926 | else | |
3927 | no_cache=1 | |
3928 | fi | |
3929 | ||
3930 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
698dcdb6 VZ |
3931 | |
3932 | fi | |
10f2d63a VZ |
3933 | |
3934 | ||
3935 | eval "$ac_cv_use_fs_inet" | |
3936 | if test "$no_cache" != 1; then | |
3937 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
3938 | fi | |
3939 | ||
3940 | if test "$wxUSE_FS_INET" = yes; then | |
698dcdb6 | 3941 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3942 | else |
698dcdb6 | 3943 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3944 | fi |
698dcdb6 | 3945 | |
10f2d63a | 3946 | |
698dcdb6 | 3947 | echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6 |
d08b457b | 3948 | echo "configure:3949: checking for --enable-fs_zip" >&5 |
10f2d63a VZ |
3949 | no_cache=0 |
3950 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
3951 | if test "${enable_fs_zip+set}" = set; then | |
3952 | enableval="$enable_fs_zip" | |
698dcdb6 | 3953 | |
10f2d63a VZ |
3954 | if test "$enableval" = yes; then |
3955 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
3956 | else | |
3957 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
3958 | fi | |
698dcdb6 | 3959 | |
10f2d63a | 3960 | else |
698dcdb6 | 3961 | |
10f2d63a VZ |
3962 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` |
3963 | if test "x$LINE" != x ; then | |
3964 | eval "DEFAULT_$LINE" | |
3965 | else | |
3966 | no_cache=1 | |
3967 | fi | |
3968 | ||
3969 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
698dcdb6 VZ |
3970 | |
3971 | fi | |
10f2d63a VZ |
3972 | |
3973 | ||
3974 | eval "$ac_cv_use_fs_zip" | |
3975 | if test "$no_cache" != 1; then | |
3976 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
3977 | fi | |
3978 | ||
3979 | if test "$wxUSE_FS_ZIP" = yes; then | |
698dcdb6 | 3980 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3981 | else |
698dcdb6 | 3982 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3983 | fi |
698dcdb6 | 3984 | |
10f2d63a | 3985 | |
698dcdb6 | 3986 | echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6 |
d08b457b | 3987 | echo "configure:3988: checking for --enable-zipstream" >&5 |
10f2d63a VZ |
3988 | no_cache=0 |
3989 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
3990 | if test "${enable_zipstream+set}" = set; then | |
3991 | enableval="$enable_zipstream" | |
698dcdb6 | 3992 | |
10f2d63a VZ |
3993 | if test "$enableval" = yes; then |
3994 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
3995 | else | |
3996 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
3997 | fi | |
698dcdb6 | 3998 | |
10f2d63a | 3999 | else |
698dcdb6 | 4000 | |
10f2d63a VZ |
4001 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` |
4002 | if test "x$LINE" != x ; then | |
4003 | eval "DEFAULT_$LINE" | |
4004 | else | |
4005 | no_cache=1 | |
4006 | fi | |
4007 | ||
4008 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
698dcdb6 VZ |
4009 | |
4010 | fi | |
10f2d63a VZ |
4011 | |
4012 | ||
4013 | eval "$ac_cv_use_zipstream" | |
4014 | if test "$no_cache" != 1; then | |
4015 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
4016 | fi | |
4017 | ||
4018 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
698dcdb6 | 4019 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4020 | else |
698dcdb6 | 4021 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4022 | fi |
698dcdb6 | 4023 | |
10f2d63a | 4024 | |
698dcdb6 VZ |
4025 | |
4026 | echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6 | |
d08b457b | 4027 | echo "configure:4028: checking for --enable-catch_segvs" >&5 |
eb4efbdc VZ |
4028 | no_cache=0 |
4029 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
4030 | if test "${enable_catch_segvs+set}" = set; then | |
4031 | enableval="$enable_catch_segvs" | |
698dcdb6 | 4032 | |
eb4efbdc VZ |
4033 | if test "$enableval" = yes; then |
4034 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
4035 | else | |
4036 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
4037 | fi | |
698dcdb6 | 4038 | |
eb4efbdc | 4039 | else |
698dcdb6 | 4040 | |
eb4efbdc VZ |
4041 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
4042 | if test "x$LINE" != x ; then | |
4043 | eval "DEFAULT_$LINE" | |
4044 | else | |
4045 | no_cache=1 | |
4046 | fi | |
4047 | ||
4048 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
698dcdb6 VZ |
4049 | |
4050 | fi | |
eb4efbdc VZ |
4051 | |
4052 | ||
4053 | eval "$ac_cv_use_catch_segvs" | |
4054 | if test "$no_cache" != 1; then | |
4055 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
4056 | fi | |
4057 | ||
4058 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
698dcdb6 | 4059 | echo "$ac_t""yes" 1>&6 |
eb4efbdc | 4060 | else |
698dcdb6 | 4061 | echo "$ac_t""no" 1>&6 |
eb4efbdc | 4062 | fi |
698dcdb6 | 4063 | |
eb4efbdc | 4064 | |
698dcdb6 | 4065 | echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6 |
d08b457b | 4066 | echo "configure:4067: checking for --enable-snglinst" >&5 |
4f3c5f06 VZ |
4067 | no_cache=0 |
4068 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
4069 | if test "${enable_snglinst+set}" = set; then | |
4070 | enableval="$enable_snglinst" | |
698dcdb6 | 4071 | |
4f3c5f06 VZ |
4072 | if test "$enableval" = yes; then |
4073 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
4074 | else | |
4075 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
4076 | fi | |
698dcdb6 | 4077 | |
4f3c5f06 | 4078 | else |
698dcdb6 | 4079 | |
4f3c5f06 VZ |
4080 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` |
4081 | if test "x$LINE" != x ; then | |
4082 | eval "DEFAULT_$LINE" | |
4083 | else | |
4084 | no_cache=1 | |
4085 | fi | |
4086 | ||
4087 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
698dcdb6 VZ |
4088 | |
4089 | fi | |
4f3c5f06 VZ |
4090 | |
4091 | ||
4092 | eval "$ac_cv_use_snglinst" | |
4093 | if test "$no_cache" != 1; then | |
4094 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
4095 | fi | |
4096 | ||
4097 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
698dcdb6 | 4098 | echo "$ac_t""yes" 1>&6 |
4f3c5f06 | 4099 | else |
698dcdb6 | 4100 | echo "$ac_t""no" 1>&6 |
4f3c5f06 | 4101 | fi |
698dcdb6 VZ |
4102 | |
4103 | ||
eb4efbdc | 4104 | |
1e6feb95 | 4105 | echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6 |
d08b457b | 4106 | echo "configure:4107: checking for --enable-mimetype" >&5 |
1e6feb95 VZ |
4107 | no_cache=0 |
4108 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
4109 | if test "${enable_mimetype+set}" = set; then | |
4110 | enableval="$enable_mimetype" | |
4111 | ||
4112 | if test "$enableval" = yes; then | |
4113 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
4114 | else | |
4115 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
4116 | fi | |
4117 | ||
4118 | else | |
4119 | ||
4120 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
4121 | if test "x$LINE" != x ; then | |
4122 | eval "DEFAULT_$LINE" | |
4123 | else | |
4124 | no_cache=1 | |
4125 | fi | |
4126 | ||
4127 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
4128 | ||
4129 | fi | |
4130 | ||
4131 | ||
4132 | eval "$ac_cv_use_mimetype" | |
4133 | if test "$no_cache" != 1; then | |
4134 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
4135 | fi | |
4136 | ||
4137 | if test "$wxUSE_MIMETYPE" = yes; then | |
4138 | echo "$ac_t""yes" 1>&6 | |
4139 | else | |
4140 | echo "$ac_t""no" 1>&6 | |
4141 | fi | |
4142 | ||
4143 | ||
3e44f09d | 4144 | echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6 |
d08b457b | 4145 | echo "configure:4146: checking for --enable-system_options" >&5 |
3e44f09d VZ |
4146 | no_cache=0 |
4147 | # Check whether --enable-system_options or --disable-system_options was given. | |
4148 | if test "${enable_system_options+set}" = set; then | |
4149 | enableval="$enable_system_options" | |
4150 | ||
4151 | if test "$enableval" = yes; then | |
4152 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
4153 | else | |
4154 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
4155 | fi | |
4156 | ||
4157 | else | |
4158 | ||
4159 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` | |
4160 | if test "x$LINE" != x ; then | |
4161 | eval "DEFAULT_$LINE" | |
4162 | else | |
4163 | no_cache=1 | |
4164 | fi | |
4165 | ||
4166 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
4167 | ||
4168 | fi | |
4169 | ||
4170 | ||
4171 | eval "$ac_cv_use_system_options" | |
4172 | if test "$no_cache" != 1; then | |
4173 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
4174 | fi | |
4175 | ||
4176 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
4177 | echo "$ac_t""yes" 1>&6 | |
4178 | else | |
4179 | echo "$ac_t""no" 1>&6 | |
4180 | fi | |
4181 | ||
4182 | ||
1e6feb95 | 4183 | |
698dcdb6 VZ |
4184 | |
4185 | echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6 | |
d08b457b | 4186 | echo "configure:4187: checking for --enable-threads" >&5 |
10f2d63a VZ |
4187 | no_cache=0 |
4188 | # Check whether --enable-threads or --disable-threads was given. | |
4189 | if test "${enable_threads+set}" = set; then | |
4190 | enableval="$enable_threads" | |
698dcdb6 | 4191 | |
10f2d63a VZ |
4192 | if test "$enableval" = yes; then |
4193 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
4194 | else | |
4195 | ac_cv_use_threads='wxUSE_THREADS=no' | |
4196 | fi | |
698dcdb6 | 4197 | |
10f2d63a | 4198 | else |
698dcdb6 | 4199 | |
10f2d63a VZ |
4200 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` |
4201 | if test "x$LINE" != x ; then | |
4202 | eval "DEFAULT_$LINE" | |
4203 | else | |
4204 | no_cache=1 | |
4205 | fi | |
4206 | ||
4207 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
698dcdb6 VZ |
4208 | |
4209 | fi | |
10f2d63a VZ |
4210 | |
4211 | ||
4212 | eval "$ac_cv_use_threads" | |
4213 | if test "$no_cache" != 1; then | |
4214 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
4215 | fi | |
4216 | ||
4217 | if test "$wxUSE_THREADS" = yes; then | |
698dcdb6 | 4218 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4219 | else |
698dcdb6 | 4220 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4221 | fi |
698dcdb6 | 4222 | |
10f2d63a | 4223 | |
698dcdb6 | 4224 | echo $ac_n "checking for --enable-serial""... $ac_c" 1>&6 |
d08b457b | 4225 | echo "configure:4226: checking for --enable-serial" >&5 |
10f2d63a VZ |
4226 | no_cache=0 |
4227 | # Check whether --enable-serial or --disable-serial was given. | |
4228 | if test "${enable_serial+set}" = set; then | |
4229 | enableval="$enable_serial" | |
698dcdb6 | 4230 | |
10f2d63a VZ |
4231 | if test "$enableval" = yes; then |
4232 | ac_cv_use_serial='wxUSE_SERIAL=yes' | |
4233 | else | |
4234 | ac_cv_use_serial='wxUSE_SERIAL=no' | |
4235 | fi | |
698dcdb6 | 4236 | |
10f2d63a | 4237 | else |
698dcdb6 | 4238 | |
10f2d63a VZ |
4239 | LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}` |
4240 | if test "x$LINE" != x ; then | |
4241 | eval "DEFAULT_$LINE" | |
4242 | else | |
4243 | no_cache=1 | |
4244 | fi | |
4245 | ||
4246 | ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL | |
698dcdb6 VZ |
4247 | |
4248 | fi | |
10f2d63a VZ |
4249 | |
4250 | ||
4251 | eval "$ac_cv_use_serial" | |
4252 | if test "$no_cache" != 1; then | |
4253 | echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp | |
4254 | fi | |
4255 | ||
4256 | if test "$wxUSE_SERIAL" = yes; then | |
698dcdb6 | 4257 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4258 | else |
698dcdb6 | 4259 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4260 | fi |
698dcdb6 | 4261 | |
10f2d63a | 4262 | |
b12915c1 VZ |
4263 | if test "$wxUSE_GUI" = "yes"; then |
4264 | ||
698dcdb6 VZ |
4265 | |
4266 | ||
4267 | echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6 | |
d08b457b | 4268 | echo "configure:4269: checking for --enable-docview" >&5 |
10f2d63a VZ |
4269 | no_cache=0 |
4270 | # Check whether --enable-docview or --disable-docview was given. | |
4271 | if test "${enable_docview+set}" = set; then | |
4272 | enableval="$enable_docview" | |
698dcdb6 | 4273 | |
10f2d63a VZ |
4274 | if test "$enableval" = yes; then |
4275 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
4276 | else | |
4277 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
4278 | fi | |
698dcdb6 | 4279 | |
10f2d63a | 4280 | else |
698dcdb6 | 4281 | |
10f2d63a VZ |
4282 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` |
4283 | if test "x$LINE" != x ; then | |
4284 | eval "DEFAULT_$LINE" | |
4285 | else | |
4286 | no_cache=1 | |
4287 | fi | |
4288 | ||
4289 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
698dcdb6 VZ |
4290 | |
4291 | fi | |
10f2d63a VZ |
4292 | |
4293 | ||
4294 | eval "$ac_cv_use_docview" | |
4295 | if test "$no_cache" != 1; then | |
4296 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
4297 | fi | |
4298 | ||
4299 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
698dcdb6 | 4300 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4301 | else |
698dcdb6 | 4302 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4303 | fi |
698dcdb6 | 4304 | |
10f2d63a | 4305 | |
698dcdb6 | 4306 | echo $ac_n "checking for --enable-help""... $ac_c" 1>&6 |
d08b457b | 4307 | echo "configure:4308: checking for --enable-help" >&5 |
10f2d63a VZ |
4308 | no_cache=0 |
4309 | # Check whether --enable-help or --disable-help was given. | |
4310 | if test "${enable_help+set}" = set; then | |
4311 | enableval="$enable_help" | |
698dcdb6 | 4312 | |
10f2d63a VZ |
4313 | if test "$enableval" = yes; then |
4314 | ac_cv_use_help='wxUSE_HELP=yes' | |
4315 | else | |
4316 | ac_cv_use_help='wxUSE_HELP=no' | |
4317 | fi | |
698dcdb6 | 4318 | |
10f2d63a | 4319 | else |
698dcdb6 | 4320 | |
10f2d63a VZ |
4321 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` |
4322 | if test "x$LINE" != x ; then | |
4323 | eval "DEFAULT_$LINE" | |
4324 | else | |
4325 | no_cache=1 | |
4326 | fi | |
4327 | ||
4328 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
698dcdb6 VZ |
4329 | |
4330 | fi | |
10f2d63a VZ |
4331 | |
4332 | ||
4333 | eval "$ac_cv_use_help" | |
4334 | if test "$no_cache" != 1; then | |
4335 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
4336 | fi | |
4337 | ||
4338 | if test "$wxUSE_HELP" = yes; then | |
698dcdb6 | 4339 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4340 | else |
698dcdb6 | 4341 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4342 | fi |
698dcdb6 | 4343 | |
10f2d63a | 4344 | |
29fd3c0c | 4345 | echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6 |
d08b457b | 4346 | echo "configure:4347: checking for --enable-mshtmlhelp" >&5 |
29fd3c0c VS |
4347 | no_cache=0 |
4348 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
4349 | if test "${enable_mshtmlhelp+set}" = set; then | |
4350 | enableval="$enable_mshtmlhelp" | |
4351 | ||
4352 | if test "$enableval" = yes; then | |
4353 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
4354 | else | |
4355 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
4356 | fi | |
4357 | ||
4358 | else | |
4359 | ||
4360 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` | |
4361 | if test "x$LINE" != x ; then | |
4362 | eval "DEFAULT_$LINE" | |
4363 | else | |
4364 | no_cache=1 | |
4365 | fi | |
4366 | ||
4367 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
4368 | ||
4369 | fi | |
4370 | ||
4371 | ||
4372 | eval "$ac_cv_use_mshtmlhelp" | |
4373 | if test "$no_cache" != 1; then | |
4374 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
4375 | fi | |
4376 | ||
4377 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
4378 | echo "$ac_t""yes" 1>&6 | |
4379 | else | |
4380 | echo "$ac_t""no" 1>&6 | |
4381 | fi | |
4382 | ||
4383 | ||
3379ed37 | 4384 | echo $ac_n "checking for --enable-html""... $ac_c" 1>&6 |
d08b457b | 4385 | echo "configure:4386: checking for --enable-html" >&5 |
3379ed37 VZ |
4386 | no_cache=0 |
4387 | # Check whether --enable-html or --disable-html was given. | |
4388 | if test "${enable_html+set}" = set; then | |
4389 | enableval="$enable_html" | |
4390 | ||
4391 | if test "$enableval" = yes; then | |
4392 | ac_cv_use_html='wxUSE_HTML=yes' | |
4393 | else | |
4394 | ac_cv_use_html='wxUSE_HTML=no' | |
4395 | fi | |
4396 | ||
4397 | else | |
4398 | ||
4399 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
4400 | if test "x$LINE" != x ; then | |
4401 | eval "DEFAULT_$LINE" | |
4402 | else | |
4403 | no_cache=1 | |
4404 | fi | |
4405 | ||
4406 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
4407 | ||
4408 | fi | |
4409 | ||
4410 | ||
4411 | eval "$ac_cv_use_html" | |
4412 | if test "$no_cache" != 1; then | |
4413 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
4414 | fi | |
4415 | ||
4416 | if test "$wxUSE_HTML" = yes; then | |
4417 | echo "$ac_t""yes" 1>&6 | |
4418 | else | |
4419 | echo "$ac_t""no" 1>&6 | |
4420 | fi | |
4421 | ||
4422 | ||
4423 | echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6 | |
d08b457b | 4424 | echo "configure:4425: checking for --enable-htmlhelp" >&5 |
3379ed37 VZ |
4425 | no_cache=0 |
4426 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
4427 | if test "${enable_htmlhelp+set}" = set; then | |
4428 | enableval="$enable_htmlhelp" | |
4429 | ||
4430 | if test "$enableval" = yes; then | |
4431 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
4432 | else | |
4433 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
4434 | fi | |
4435 | ||
4436 | else | |
4437 | ||
4438 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` | |
4439 | if test "x$LINE" != x ; then | |
4440 | eval "DEFAULT_$LINE" | |
4441 | else | |
4442 | no_cache=1 | |
4443 | fi | |
4444 | ||
4445 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
4446 | ||
4447 | fi | |
4448 | ||
4449 | ||
4450 | eval "$ac_cv_use_htmlhelp" | |
4451 | if test "$no_cache" != 1; then | |
4452 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
4453 | fi | |
4454 | ||
4455 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
4456 | echo "$ac_t""yes" 1>&6 | |
4457 | else | |
4458 | echo "$ac_t""no" 1>&6 | |
4459 | fi | |
4460 | ||
4461 | ||
698dcdb6 | 4462 | echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6 |
d08b457b | 4463 | echo "configure:4464: checking for --enable-constraints" >&5 |
10f2d63a VZ |
4464 | no_cache=0 |
4465 | # Check whether --enable-constraints or --disable-constraints was given. | |
4466 | if test "${enable_constraints+set}" = set; then | |
4467 | enableval="$enable_constraints" | |
698dcdb6 | 4468 | |
10f2d63a VZ |
4469 | if test "$enableval" = yes; then |
4470 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
4471 | else | |
4472 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
4473 | fi | |
698dcdb6 | 4474 | |
10f2d63a | 4475 | else |
698dcdb6 | 4476 | |
10f2d63a VZ |
4477 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` |
4478 | if test "x$LINE" != x ; then | |
4479 | eval "DEFAULT_$LINE" | |
4480 | else | |
4481 | no_cache=1 | |
4482 | fi | |
4483 | ||
4484 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
698dcdb6 VZ |
4485 | |
4486 | fi | |
10f2d63a VZ |
4487 | |
4488 | ||
4489 | eval "$ac_cv_use_constraints" | |
4490 | if test "$no_cache" != 1; then | |
4491 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
4492 | fi | |
4493 | ||
4494 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
698dcdb6 | 4495 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4496 | else |
698dcdb6 | 4497 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4498 | fi |
698dcdb6 | 4499 | |
10f2d63a | 4500 | |
698dcdb6 | 4501 | echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6 |
d08b457b | 4502 | echo "configure:4503: checking for --enable-printarch" >&5 |
10f2d63a VZ |
4503 | no_cache=0 |
4504 | # Check whether --enable-printarch or --disable-printarch was given. | |
4505 | if test "${enable_printarch+set}" = set; then | |
4506 | enableval="$enable_printarch" | |
698dcdb6 | 4507 | |
10f2d63a VZ |
4508 | if test "$enableval" = yes; then |
4509 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
4510 | else | |
4511 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
4512 | fi | |
698dcdb6 | 4513 | |
10f2d63a | 4514 | else |
698dcdb6 | 4515 | |
10f2d63a VZ |
4516 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` |
4517 | if test "x$LINE" != x ; then | |
4518 | eval "DEFAULT_$LINE" | |
4519 | else | |
4520 | no_cache=1 | |
4521 | fi | |
4522 | ||
4523 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
698dcdb6 VZ |
4524 | |
4525 | fi | |
10f2d63a VZ |
4526 | |
4527 | ||
4528 | eval "$ac_cv_use_printarch" | |
4529 | if test "$no_cache" != 1; then | |
4530 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
4531 | fi | |
4532 | ||
4533 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
698dcdb6 | 4534 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4535 | else |
698dcdb6 | 4536 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4537 | fi |
698dcdb6 | 4538 | |
10f2d63a | 4539 | |
698dcdb6 | 4540 | echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6 |
d08b457b | 4541 | echo "configure:4542: checking for --enable-mdi" >&5 |
10f2d63a VZ |
4542 | no_cache=0 |
4543 | # Check whether --enable-mdi or --disable-mdi was given. | |
4544 | if test "${enable_mdi+set}" = set; then | |
4545 | enableval="$enable_mdi" | |
698dcdb6 | 4546 | |
10f2d63a VZ |
4547 | if test "$enableval" = yes; then |
4548 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
4549 | else | |
4550 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
4551 | fi | |
698dcdb6 | 4552 | |
10f2d63a | 4553 | else |
698dcdb6 | 4554 | |
10f2d63a VZ |
4555 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` |
4556 | if test "x$LINE" != x ; then | |
4557 | eval "DEFAULT_$LINE" | |
4558 | else | |
4559 | no_cache=1 | |
4560 | fi | |
4561 | ||
4562 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
698dcdb6 VZ |
4563 | |
4564 | fi | |
10f2d63a VZ |
4565 | |
4566 | ||
4567 | eval "$ac_cv_use_mdi" | |
4568 | if test "$no_cache" != 1; then | |
4569 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
4570 | fi | |
4571 | ||
4572 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
698dcdb6 | 4573 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4574 | else |
698dcdb6 | 4575 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4576 | fi |
698dcdb6 VZ |
4577 | |
4578 | ||
1e6feb95 | 4579 | echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6 |
d08b457b | 4580 | echo "configure:4581: checking for --enable-loggui" >&5 |
1e6feb95 VZ |
4581 | no_cache=0 |
4582 | # Check whether --enable-loggui or --disable-loggui was given. | |
4583 | if test "${enable_loggui+set}" = set; then | |
4584 | enableval="$enable_loggui" | |
4585 | ||
4586 | if test "$enableval" = yes; then | |
4587 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
4588 | else | |
4589 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
4590 | fi | |
4591 | ||
4592 | else | |
4593 | ||
4594 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
4595 | if test "x$LINE" != x ; then | |
4596 | eval "DEFAULT_$LINE" | |
4597 | else | |
4598 | no_cache=1 | |
4599 | fi | |
4600 | ||
4601 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
4602 | ||
4603 | fi | |
4604 | ||
4605 | ||
4606 | eval "$ac_cv_use_loggui" | |
4607 | if test "$no_cache" != 1; then | |
4608 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
4609 | fi | |
4610 | ||
4611 | if test "$wxUSE_LOGGUI" = yes; then | |
4612 | echo "$ac_t""yes" 1>&6 | |
4613 | else | |
4614 | echo "$ac_t""no" 1>&6 | |
4615 | fi | |
4616 | ||
4617 | ||
4618 | echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6 | |
d08b457b | 4619 | echo "configure:4620: checking for --enable-logwin" >&5 |
1e6feb95 VZ |
4620 | no_cache=0 |
4621 | # Check whether --enable-logwin or --disable-logwin was given. | |
4622 | if test "${enable_logwin+set}" = set; then | |
4623 | enableval="$enable_logwin" | |
4624 | ||
4625 | if test "$enableval" = yes; then | |
4626 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
4627 | else | |
4628 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
4629 | fi | |
4630 | ||
4631 | else | |
4632 | ||
4633 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` | |
4634 | if test "x$LINE" != x ; then | |
4635 | eval "DEFAULT_$LINE" | |
4636 | else | |
4637 | no_cache=1 | |
4638 | fi | |
4639 | ||
4640 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
4641 | ||
4642 | fi | |
4643 | ||
4644 | ||
4645 | eval "$ac_cv_use_logwin" | |
4646 | if test "$no_cache" != 1; then | |
4647 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
4648 | fi | |
4649 | ||
4650 | if test "$wxUSE_LOGWINDOW" = yes; then | |
4651 | echo "$ac_t""yes" 1>&6 | |
4652 | else | |
4653 | echo "$ac_t""no" 1>&6 | |
4654 | fi | |
4655 | ||
4656 | ||
10f2d63a | 4657 | |
698dcdb6 | 4658 | echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6 |
d08b457b | 4659 | echo "configure:4660: checking for --enable-postscript" >&5 |
10f2d63a VZ |
4660 | no_cache=0 |
4661 | # Check whether --enable-postscript or --disable-postscript was given. | |
4662 | if test "${enable_postscript+set}" = set; then | |
4663 | enableval="$enable_postscript" | |
698dcdb6 | 4664 | |
10f2d63a VZ |
4665 | if test "$enableval" = yes; then |
4666 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
4667 | else | |
4668 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
4669 | fi | |
698dcdb6 | 4670 | |
10f2d63a | 4671 | else |
698dcdb6 | 4672 | |
10f2d63a VZ |
4673 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` |
4674 | if test "x$LINE" != x ; then | |
4675 | eval "DEFAULT_$LINE" | |
4676 | else | |
4677 | no_cache=1 | |
4678 | fi | |
4679 | ||
4680 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
698dcdb6 VZ |
4681 | |
4682 | fi | |
10f2d63a VZ |
4683 | |
4684 | ||
4685 | eval "$ac_cv_use_postscript" | |
4686 | if test "$no_cache" != 1; then | |
4687 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
4688 | fi | |
4689 | ||
4690 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
698dcdb6 | 4691 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4692 | else |
698dcdb6 | 4693 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4694 | fi |
698dcdb6 VZ |
4695 | |
4696 | ||
4697 | ||
10f2d63a | 4698 | |
1e6feb95 | 4699 | |
698dcdb6 | 4700 | echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6 |
d08b457b | 4701 | echo "configure:4702: checking for --enable-prologio" >&5 |
10f2d63a VZ |
4702 | no_cache=0 |
4703 | # Check whether --enable-prologio or --disable-prologio was given. | |
4704 | if test "${enable_prologio+set}" = set; then | |
4705 | enableval="$enable_prologio" | |
698dcdb6 | 4706 | |
10f2d63a VZ |
4707 | if test "$enableval" = yes; then |
4708 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
4709 | else | |
4710 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
4711 | fi | |
698dcdb6 | 4712 | |
10f2d63a | 4713 | else |
698dcdb6 | 4714 | |
10f2d63a VZ |
4715 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` |
4716 | if test "x$LINE" != x ; then | |
4717 | eval "DEFAULT_$LINE" | |
4718 | else | |
4719 | no_cache=1 | |
4720 | fi | |
4721 | ||
4722 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
698dcdb6 VZ |
4723 | |
4724 | fi | |
10f2d63a VZ |
4725 | |
4726 | ||
4727 | eval "$ac_cv_use_prologio" | |
4728 | if test "$no_cache" != 1; then | |
4729 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
4730 | fi | |
4731 | ||
4732 | if test "$wxUSE_PROLOGIO" = yes; then | |
698dcdb6 | 4733 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4734 | else |
698dcdb6 | 4735 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4736 | fi |
698dcdb6 | 4737 | |
10f2d63a | 4738 | |
698dcdb6 | 4739 | echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6 |
d08b457b | 4740 | echo "configure:4741: checking for --enable-resources" >&5 |
10f2d63a VZ |
4741 | no_cache=0 |
4742 | # Check whether --enable-resources or --disable-resources was given. | |
4743 | if test "${enable_resources+set}" = set; then | |
4744 | enableval="$enable_resources" | |
698dcdb6 | 4745 | |
10f2d63a VZ |
4746 | if test "$enableval" = yes; then |
4747 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
4748 | else | |
4749 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
4750 | fi | |
698dcdb6 | 4751 | |
10f2d63a | 4752 | else |
698dcdb6 | 4753 | |
10f2d63a VZ |
4754 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` |
4755 | if test "x$LINE" != x ; then | |
4756 | eval "DEFAULT_$LINE" | |
4757 | else | |
4758 | no_cache=1 | |
4759 | fi | |
4760 | ||
4761 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
698dcdb6 VZ |
4762 | |
4763 | fi | |
10f2d63a VZ |
4764 | |
4765 | ||
4766 | eval "$ac_cv_use_resources" | |
4767 | if test "$no_cache" != 1; then | |
4768 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
4769 | fi | |
4770 | ||
4771 | if test "$wxUSE_RESOURCES" = yes; then | |
698dcdb6 | 4772 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4773 | else |
698dcdb6 | 4774 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4775 | fi |
698dcdb6 | 4776 | |
10f2d63a | 4777 | |
698dcdb6 VZ |
4778 | |
4779 | echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6 | |
d08b457b | 4780 | echo "configure:4781: checking for --enable-xresources" >&5 |
10f2d63a VZ |
4781 | no_cache=0 |
4782 | # Check whether --enable-xresources or --disable-xresources was given. | |
4783 | if test "${enable_xresources+set}" = set; then | |
4784 | enableval="$enable_xresources" | |
698dcdb6 | 4785 | |
10f2d63a VZ |
4786 | if test "$enableval" = yes; then |
4787 | ac_cv_use_xresources='wxUSE_X_RESOURCES=yes' | |
4788 | else | |
4789 | ac_cv_use_xresources='wxUSE_X_RESOURCES=no' | |
4790 | fi | |
698dcdb6 | 4791 | |
10f2d63a | 4792 | else |
698dcdb6 | 4793 | |
10f2d63a VZ |
4794 | LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}` |
4795 | if test "x$LINE" != x ; then | |
4796 | eval "DEFAULT_$LINE" | |
4797 | else | |
4798 | no_cache=1 | |
4799 | fi | |
4800 | ||
4801 | ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES | |
698dcdb6 VZ |
4802 | |
4803 | fi | |
10f2d63a VZ |
4804 | |
4805 | ||
4806 | eval "$ac_cv_use_xresources" | |
4807 | if test "$no_cache" != 1; then | |
4808 | echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp | |
4809 | fi | |
4810 | ||
4811 | if test "$wxUSE_X_RESOURCES" = yes; then | |
698dcdb6 | 4812 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4813 | else |
698dcdb6 | 4814 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4815 | fi |
698dcdb6 VZ |
4816 | |
4817 | ||
10f2d63a | 4818 | |
698dcdb6 VZ |
4819 | |
4820 | echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6 | |
d08b457b | 4821 | echo "configure:4822: checking for --enable-clipboard" >&5 |
10f2d63a VZ |
4822 | no_cache=0 |
4823 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
4824 | if test "${enable_clipboard+set}" = set; then | |
4825 | enableval="$enable_clipboard" | |
698dcdb6 | 4826 | |
10f2d63a VZ |
4827 | if test "$enableval" = yes; then |
4828 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
4829 | else | |
4830 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
4831 | fi | |
698dcdb6 | 4832 | |
10f2d63a | 4833 | else |
698dcdb6 | 4834 | |
10f2d63a VZ |
4835 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` |
4836 | if test "x$LINE" != x ; then | |
4837 | eval "DEFAULT_$LINE" | |
4838 | else | |
4839 | no_cache=1 | |
4840 | fi | |
4841 | ||
4842 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
698dcdb6 VZ |
4843 | |
4844 | fi | |
10f2d63a VZ |
4845 | |
4846 | ||
4847 | eval "$ac_cv_use_clipboard" | |
4848 | if test "$no_cache" != 1; then | |
4849 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
4850 | fi | |
4851 | ||
4852 | if test "$wxUSE_CLIPBOARD" = yes; then | |
698dcdb6 | 4853 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4854 | else |
698dcdb6 | 4855 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4856 | fi |
698dcdb6 | 4857 | |
10f2d63a | 4858 | |
698dcdb6 | 4859 | echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6 |
d08b457b | 4860 | echo "configure:4861: checking for --enable-dnd" >&5 |
10f2d63a VZ |
4861 | no_cache=0 |
4862 | # Check whether --enable-dnd or --disable-dnd was given. | |
4863 | if test "${enable_dnd+set}" = set; then | |
4864 | enableval="$enable_dnd" | |
698dcdb6 | 4865 | |
10f2d63a VZ |
4866 | if test "$enableval" = yes; then |
4867 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
4868 | else | |
4869 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
4870 | fi | |
698dcdb6 | 4871 | |
10f2d63a | 4872 | else |
698dcdb6 | 4873 | |
10f2d63a VZ |
4874 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` |
4875 | if test "x$LINE" != x ; then | |
4876 | eval "DEFAULT_$LINE" | |
4877 | else | |
4878 | no_cache=1 | |
4879 | fi | |
4880 | ||
4881 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
698dcdb6 VZ |
4882 | |
4883 | fi | |
10f2d63a VZ |
4884 | |
4885 | ||
4886 | eval "$ac_cv_use_dnd" | |
4887 | if test "$no_cache" != 1; then | |
4888 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
4889 | fi | |
4890 | ||
4891 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
698dcdb6 | 4892 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4893 | else |
698dcdb6 | 4894 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4895 | fi |
698dcdb6 | 4896 | |
10f2d63a | 4897 | |
698dcdb6 | 4898 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
d08b457b | 4899 | echo "configure:4900: checking for --enable-metafile" >&5 |
b64f0a5f RL |
4900 | no_cache=0 |
4901 | # Check whether --enable-metafile or --disable-metafile was given. | |
4902 | if test "${enable_metafile+set}" = set; then | |
4903 | enableval="$enable_metafile" | |
698dcdb6 | 4904 | |
b64f0a5f RL |
4905 | if test "$enableval" = yes; then |
4906 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
4907 | else | |
4908 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
4909 | fi | |
698dcdb6 | 4910 | |
b64f0a5f | 4911 | else |
698dcdb6 | 4912 | |
b64f0a5f RL |
4913 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
4914 | if test "x$LINE" != x ; then | |
4915 | eval "DEFAULT_$LINE" | |
4916 | else | |
4917 | no_cache=1 | |
4918 | fi | |
4919 | ||
4920 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
698dcdb6 VZ |
4921 | |
4922 | fi | |
b64f0a5f RL |
4923 | |
4924 | ||
4925 | eval "$ac_cv_use_metafile" | |
4926 | if test "$no_cache" != 1; then | |
4927 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
4928 | fi | |
4929 | ||
4930 | if test "$wxUSE_METAFILE" = yes; then | |
698dcdb6 | 4931 | echo "$ac_t""yes" 1>&6 |
b64f0a5f | 4932 | else |
698dcdb6 | 4933 | echo "$ac_t""no" 1>&6 |
b64f0a5f | 4934 | fi |
698dcdb6 VZ |
4935 | |
4936 | ||
10f2d63a | 4937 | |
24176f2c | 4938 | echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6 |
d08b457b | 4939 | echo "configure:4940: checking for --enable-treelayout" >&5 |
10f2d63a | 4940 | no_cache=0 |
24176f2c GD |
4941 | # Check whether --enable-treelayout or --disable-treelayout was given. |
4942 | if test "${enable_treelayout+set}" = set; then | |
4943 | enableval="$enable_treelayout" | |
698dcdb6 | 4944 | |
10f2d63a | 4945 | if test "$enableval" = yes; then |
24176f2c | 4946 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes' |
10f2d63a | 4947 | else |
24176f2c | 4948 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=no' |
10f2d63a | 4949 | fi |
698dcdb6 | 4950 | |
10f2d63a | 4951 | else |
698dcdb6 | 4952 | |
24176f2c | 4953 | LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}` |
10f2d63a VZ |
4954 | if test "x$LINE" != x ; then |
4955 | eval "DEFAULT_$LINE" | |
4956 | else | |
4957 | no_cache=1 | |
4958 | fi | |
4959 | ||
24176f2c | 4960 | ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT |
698dcdb6 VZ |
4961 | |
4962 | fi | |
10f2d63a VZ |
4963 | |
4964 | ||
24176f2c | 4965 | eval "$ac_cv_use_treelayout" |
10f2d63a | 4966 | if test "$no_cache" != 1; then |
24176f2c | 4967 | echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4968 | fi |
4969 | ||
24176f2c | 4970 | if test "$wxUSE_TREELAYOUT" = yes; then |
698dcdb6 | 4971 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4972 | else |
698dcdb6 | 4973 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4974 | fi |
698dcdb6 | 4975 | |
10f2d63a | 4976 | |
698dcdb6 VZ |
4977 | |
4978 | ||
4979 | echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6 | |
d08b457b | 4980 | echo "configure:4981: checking for --enable-controls" >&5 |
10f2d63a VZ |
4981 | no_cache=0 |
4982 | # Check whether --enable-controls or --disable-controls was given. | |
4983 | if test "${enable_controls+set}" = set; then | |
4984 | enableval="$enable_controls" | |
698dcdb6 | 4985 | |
10f2d63a VZ |
4986 | if test "$enableval" = yes; then |
4987 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
4988 | else | |
4989 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
4990 | fi | |
698dcdb6 | 4991 | |
10f2d63a | 4992 | else |
698dcdb6 | 4993 | |
10f2d63a VZ |
4994 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` |
4995 | if test "x$LINE" != x ; then | |
4996 | eval "DEFAULT_$LINE" | |
4997 | else | |
4998 | no_cache=1 | |
4999 | fi | |
5000 | ||
5001 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
698dcdb6 VZ |
5002 | |
5003 | fi | |
10f2d63a VZ |
5004 | |
5005 | ||
5006 | eval "$ac_cv_use_controls" | |
5007 | if test "$no_cache" != 1; then | |
5008 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
5009 | fi | |
5010 | ||
5011 | if test "$wxUSE_CONTROLS" = yes; then | |
698dcdb6 | 5012 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5013 | else |
698dcdb6 | 5014 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5015 | fi |
698dcdb6 | 5016 | |
10f2d63a VZ |
5017 | |
5018 | if test "$wxUSE_CONTROLS" = "yes"; then | |
5019 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 VZ |
5020 | DEFAULT_wxUSE_BMPBUTTON=yes |
5021 | DEFAULT_wxUSE_BUTTON=yes | |
5022 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5023 | DEFAULT_wxUSE_CARET=yes |
5024 | DEFAULT_wxUSE_COMBOBOX=yes | |
10f2d63a VZ |
5025 | DEFAULT_wxUSE_CHECKBOX=yes |
5026 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
5027 | DEFAULT_wxUSE_CHOICE=yes | |
5028 | DEFAULT_wxUSE_GAUGE=yes | |
5029 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 5030 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
5031 | DEFAULT_wxUSE_IMAGLIST=yes |
5032 | DEFAULT_wxUSE_LISTBOX=yes | |
5033 | DEFAULT_wxUSE_LISTCTRL=yes | |
5034 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 5035 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
5036 | DEFAULT_wxUSE_RADIOBOX=yes |
5037 | DEFAULT_wxUSE_RADIOBTN=yes | |
5038 | DEFAULT_wxUSE_SASH=yes | |
5039 | DEFAULT_wxUSE_SCROLLBAR=yes | |
5040 | DEFAULT_wxUSE_SLIDER=yes | |
5041 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 5042 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
5043 | DEFAULT_wxUSE_SPLITTER=yes |
5044 | DEFAULT_wxUSE_STATBMP=yes | |
5045 | DEFAULT_wxUSE_STATBOX=yes | |
5046 | DEFAULT_wxUSE_STATLINE=yes | |
5047 | DEFAULT_wxUSE_STATUSBAR=yes | |
5048 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
1db8dc4a | 5049 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 5050 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
5051 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
5052 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
5053 | DEFAULT_wxUSE_TOOLTIPS=yes |
5054 | DEFAULT_wxUSE_TREECTRL=yes | |
9f41d601 | 5055 | DEFAULT_wxUSE_POPUPWIN=yes |
10f2d63a VZ |
5056 | elif test "$wxUSE_CONTROLS" = "no"; then |
5057 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 VZ |
5058 | DEFAULT_wxUSE_BMPBUTTON=no |
5059 | DEFAULT_wxUSE_BUTTON=no | |
5060 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5061 | DEFAULT_wxUSE_CARET=no |
5062 | DEFAULT_wxUSE_COMBOBOX=no | |
10f2d63a VZ |
5063 | DEFAULT_wxUSE_CHECKBOX=no |
5064 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
5065 | DEFAULT_wxUSE_CHOICE=no | |
5066 | DEFAULT_wxUSE_GAUGE=no | |
5067 | DEFAULT_wxUSE_GRID=no | |
5068 | DEFAULT_wxUSE_NEW_GRID=no | |
5069 | DEFAULT_wxUSE_IMAGLIST=no | |
5070 | DEFAULT_wxUSE_LISTBOX=no | |
5071 | DEFAULT_wxUSE_LISTCTRL=no | |
5072 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 5073 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
5074 | DEFAULT_wxUSE_RADIOBOX=no |
5075 | DEFAULT_wxUSE_RADIOBTN=no | |
5076 | DEFAULT_wxUSE_SASH=no | |
5077 | DEFAULT_wxUSE_SCROLLBAR=no | |
5078 | DEFAULT_wxUSE_SLIDER=no | |
5079 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 5080 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
5081 | DEFAULT_wxUSE_SPLITTER=no |
5082 | DEFAULT_wxUSE_STATBMP=no | |
5083 | DEFAULT_wxUSE_STATBOX=no | |
5084 | DEFAULT_wxUSE_STATLINE=no | |
5085 | DEFAULT_wxUSE_STATUSBAR=no | |
5086 | DEFAULT_wxUSE_TAB_DIALOG=no | |
1db8dc4a | 5087 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 5088 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
5089 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
5090 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
5091 | DEFAULT_wxUSE_TOOLTIPS=no |
5092 | DEFAULT_wxUSE_TREECTRL=no | |
9f41d601 | 5093 | DEFAULT_wxUSE_POPUPWIN=no |
10f2d63a VZ |
5094 | fi |
5095 | ||
698dcdb6 VZ |
5096 | |
5097 | echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6 | |
d08b457b | 5098 | echo "configure:5099: checking for --enable-accel" >&5 |
10f2d63a VZ |
5099 | no_cache=0 |
5100 | # Check whether --enable-accel or --disable-accel was given. | |
5101 | if test "${enable_accel+set}" = set; then | |
5102 | enableval="$enable_accel" | |
698dcdb6 | 5103 | |
10f2d63a VZ |
5104 | if test "$enableval" = yes; then |
5105 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
5106 | else | |
5107 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
5108 | fi | |
698dcdb6 | 5109 | |
10f2d63a | 5110 | else |
698dcdb6 | 5111 | |
10f2d63a VZ |
5112 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` |
5113 | if test "x$LINE" != x ; then | |
5114 | eval "DEFAULT_$LINE" | |
5115 | else | |
5116 | no_cache=1 | |
5117 | fi | |
5118 | ||
5119 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
698dcdb6 VZ |
5120 | |
5121 | fi | |
10f2d63a VZ |
5122 | |
5123 | ||
5124 | eval "$ac_cv_use_accel" | |
5125 | if test "$no_cache" != 1; then | |
5126 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
5127 | fi | |
5128 | ||
5129 | if test "$wxUSE_ACCEL" = yes; then | |
698dcdb6 | 5130 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5131 | else |
698dcdb6 | 5132 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5133 | fi |
698dcdb6 | 5134 | |
10f2d63a | 5135 | |
1e6feb95 | 5136 | echo $ac_n "checking for --enable-button""... $ac_c" 1>&6 |
d08b457b | 5137 | echo "configure:5138: checking for --enable-button" >&5 |
10f2d63a | 5138 | no_cache=0 |
1e6feb95 VZ |
5139 | # Check whether --enable-button or --disable-button was given. |
5140 | if test "${enable_button+set}" = set; then | |
5141 | enableval="$enable_button" | |
698dcdb6 | 5142 | |
10f2d63a | 5143 | if test "$enableval" = yes; then |
1e6feb95 | 5144 | ac_cv_use_button='wxUSE_BUTTON=yes' |
10f2d63a | 5145 | else |
1e6feb95 | 5146 | ac_cv_use_button='wxUSE_BUTTON=no' |
10f2d63a | 5147 | fi |
698dcdb6 | 5148 | |
10f2d63a | 5149 | else |
698dcdb6 | 5150 | |
1e6feb95 | 5151 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` |
10f2d63a VZ |
5152 | if test "x$LINE" != x ; then |
5153 | eval "DEFAULT_$LINE" | |
5154 | else | |
5155 | no_cache=1 | |
5156 | fi | |
5157 | ||
1e6feb95 | 5158 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON |
698dcdb6 VZ |
5159 | |
5160 | fi | |
10f2d63a VZ |
5161 | |
5162 | ||
1e6feb95 | 5163 | eval "$ac_cv_use_button" |
10f2d63a | 5164 | if test "$no_cache" != 1; then |
1e6feb95 | 5165 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5166 | fi |
5167 | ||
1e6feb95 | 5168 | if test "$wxUSE_BUTTON" = yes; then |
698dcdb6 | 5169 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5170 | else |
698dcdb6 | 5171 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5172 | fi |
698dcdb6 | 5173 | |
10f2d63a | 5174 | |
698dcdb6 | 5175 | echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6 |
d08b457b | 5176 | echo "configure:5177: checking for --enable-bmpbutton" >&5 |
10f2d63a VZ |
5177 | no_cache=0 |
5178 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
5179 | if test "${enable_bmpbutton+set}" = set; then | |
5180 | enableval="$enable_bmpbutton" | |
698dcdb6 | 5181 | |
10f2d63a VZ |
5182 | if test "$enableval" = yes; then |
5183 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
5184 | else | |
5185 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
5186 | fi | |
698dcdb6 | 5187 | |
10f2d63a | 5188 | else |
698dcdb6 | 5189 | |
10f2d63a VZ |
5190 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` |
5191 | if test "x$LINE" != x ; then | |
5192 | eval "DEFAULT_$LINE" | |
5193 | else | |
5194 | no_cache=1 | |
5195 | fi | |
5196 | ||
5197 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
698dcdb6 VZ |
5198 | |
5199 | fi | |
10f2d63a VZ |
5200 | |
5201 | ||
5202 | eval "$ac_cv_use_bmpbutton" | |
5203 | if test "$no_cache" != 1; then | |
5204 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
5205 | fi | |
5206 | ||
5207 | if test "$wxUSE_BMPBUTTON" = yes; then | |
698dcdb6 | 5208 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5209 | else |
698dcdb6 | 5210 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5211 | fi |
698dcdb6 | 5212 | |
10f2d63a | 5213 | |
1e6feb95 | 5214 | echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6 |
d08b457b | 5215 | echo "configure:5216: checking for --enable-calendar" >&5 |
1e6feb95 VZ |
5216 | no_cache=0 |
5217 | # Check whether --enable-calendar or --disable-calendar was given. | |
5218 | if test "${enable_calendar+set}" = set; then | |
5219 | enableval="$enable_calendar" | |
5220 | ||
5221 | if test "$enableval" = yes; then | |
5222 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
5223 | else | |
5224 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
5225 | fi | |
5226 | ||
5227 | else | |
5228 | ||
5229 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
5230 | if test "x$LINE" != x ; then | |
5231 | eval "DEFAULT_$LINE" | |
5232 | else | |
5233 | no_cache=1 | |
5234 | fi | |
5235 | ||
5236 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
5237 | ||
5238 | fi | |
5239 | ||
5240 | ||
5241 | eval "$ac_cv_use_calendar" | |
5242 | if test "$no_cache" != 1; then | |
5243 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
5244 | fi | |
5245 | ||
5246 | if test "$wxUSE_CALCTRL" = yes; then | |
5247 | echo "$ac_t""yes" 1>&6 | |
5248 | else | |
5249 | echo "$ac_t""no" 1>&6 | |
5250 | fi | |
5251 | ||
5252 | ||
5253 | echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6 | |
d08b457b | 5254 | echo "configure:5255: checking for --enable-caret" >&5 |
1e6feb95 VZ |
5255 | no_cache=0 |
5256 | # Check whether --enable-caret or --disable-caret was given. | |
5257 | if test "${enable_caret+set}" = set; then | |
5258 | enableval="$enable_caret" | |
5259 | ||
5260 | if test "$enableval" = yes; then | |
5261 | ac_cv_use_caret='wxUSE_CARET=yes' | |
5262 | else | |
5263 | ac_cv_use_caret='wxUSE_CARET=no' | |
5264 | fi | |
5265 | ||
5266 | else | |
5267 | ||
5268 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
5269 | if test "x$LINE" != x ; then | |
5270 | eval "DEFAULT_$LINE" | |
5271 | else | |
5272 | no_cache=1 | |
5273 | fi | |
5274 | ||
5275 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
5276 | ||
5277 | fi | |
5278 | ||
5279 | ||
5280 | eval "$ac_cv_use_caret" | |
5281 | if test "$no_cache" != 1; then | |
5282 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
5283 | fi | |
5284 | ||
5285 | if test "$wxUSE_CARET" = yes; then | |
5286 | echo "$ac_t""yes" 1>&6 | |
5287 | else | |
5288 | echo "$ac_t""no" 1>&6 | |
5289 | fi | |
5290 | ||
5291 | ||
698dcdb6 | 5292 | echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6 |
d08b457b | 5293 | echo "configure:5294: checking for --enable-checkbox" >&5 |
10f2d63a VZ |
5294 | no_cache=0 |
5295 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
5296 | if test "${enable_checkbox+set}" = set; then | |
5297 | enableval="$enable_checkbox" | |
698dcdb6 | 5298 | |
10f2d63a VZ |
5299 | if test "$enableval" = yes; then |
5300 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
5301 | else | |
5302 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
5303 | fi | |
698dcdb6 | 5304 | |
10f2d63a | 5305 | else |
698dcdb6 | 5306 | |
10f2d63a VZ |
5307 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` |
5308 | if test "x$LINE" != x ; then | |
5309 | eval "DEFAULT_$LINE" | |
5310 | else | |
5311 | no_cache=1 | |
5312 | fi | |
5313 | ||
5314 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
698dcdb6 VZ |
5315 | |
5316 | fi | |
10f2d63a VZ |
5317 | |
5318 | ||
5319 | eval "$ac_cv_use_checkbox" | |
5320 | if test "$no_cache" != 1; then | |
5321 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
5322 | fi | |
5323 | ||
5324 | if test "$wxUSE_CHECKBOX" = yes; then | |
698dcdb6 | 5325 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5326 | else |
698dcdb6 | 5327 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5328 | fi |
698dcdb6 | 5329 | |
10f2d63a | 5330 | |
698dcdb6 | 5331 | echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6 |
d08b457b | 5332 | echo "configure:5333: checking for --enable-checklst" >&5 |
10f2d63a VZ |
5333 | no_cache=0 |
5334 | # Check whether --enable-checklst or --disable-checklst was given. | |
5335 | if test "${enable_checklst+set}" = set; then | |
5336 | enableval="$enable_checklst" | |
698dcdb6 | 5337 | |
10f2d63a VZ |
5338 | if test "$enableval" = yes; then |
5339 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
5340 | else | |
5341 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
5342 | fi | |
698dcdb6 | 5343 | |
10f2d63a | 5344 | else |
698dcdb6 | 5345 | |
10f2d63a VZ |
5346 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` |
5347 | if test "x$LINE" != x ; then | |
5348 | eval "DEFAULT_$LINE" | |
5349 | else | |
5350 | no_cache=1 | |
5351 | fi | |
5352 | ||
5353 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
698dcdb6 VZ |
5354 | |
5355 | fi | |
10f2d63a VZ |
5356 | |
5357 | ||
5358 | eval "$ac_cv_use_checklst" | |
5359 | if test "$no_cache" != 1; then | |
5360 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
5361 | fi | |
5362 | ||
5363 | if test "$wxUSE_CHECKLST" = yes; then | |
698dcdb6 | 5364 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5365 | else |
698dcdb6 | 5366 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5367 | fi |
698dcdb6 | 5368 | |
10f2d63a | 5369 | |
698dcdb6 | 5370 | echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6 |
d08b457b | 5371 | echo "configure:5372: checking for --enable-choice" >&5 |
10f2d63a VZ |
5372 | no_cache=0 |
5373 | # Check whether --enable-choice or --disable-choice was given. | |
5374 | if test "${enable_choice+set}" = set; then | |
5375 | enableval="$enable_choice" | |
698dcdb6 | 5376 | |
10f2d63a VZ |
5377 | if test "$enableval" = yes; then |
5378 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
5379 | else | |
5380 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
5381 | fi | |
698dcdb6 | 5382 | |
10f2d63a | 5383 | else |
698dcdb6 | 5384 | |
10f2d63a VZ |
5385 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` |
5386 | if test "x$LINE" != x ; then | |
5387 | eval "DEFAULT_$LINE" | |
5388 | else | |
5389 | no_cache=1 | |
5390 | fi | |
5391 | ||
5392 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
698dcdb6 VZ |
5393 | |
5394 | fi | |
10f2d63a VZ |
5395 | |
5396 | ||
5397 | eval "$ac_cv_use_choice" | |
5398 | if test "$no_cache" != 1; then | |
5399 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
5400 | fi | |
5401 | ||
5402 | if test "$wxUSE_CHOICE" = yes; then | |
698dcdb6 | 5403 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5404 | else |
698dcdb6 | 5405 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5406 | fi |
698dcdb6 | 5407 | |
10f2d63a | 5408 | |
698dcdb6 | 5409 | echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6 |
d08b457b | 5410 | echo "configure:5411: checking for --enable-combobox" >&5 |
10f2d63a VZ |
5411 | no_cache=0 |
5412 | # Check whether --enable-combobox or --disable-combobox was given. | |
5413 | if test "${enable_combobox+set}" = set; then | |
5414 | enableval="$enable_combobox" | |
698dcdb6 | 5415 | |
10f2d63a VZ |
5416 | if test "$enableval" = yes; then |
5417 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
5418 | else | |
5419 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
5420 | fi | |
698dcdb6 | 5421 | |
10f2d63a | 5422 | else |
698dcdb6 | 5423 | |
10f2d63a VZ |
5424 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` |
5425 | if test "x$LINE" != x ; then | |
5426 | eval "DEFAULT_$LINE" | |
5427 | else | |
5428 | no_cache=1 | |
5429 | fi | |
5430 | ||
5431 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
698dcdb6 VZ |
5432 | |
5433 | fi | |
10f2d63a VZ |
5434 | |
5435 | ||
5436 | eval "$ac_cv_use_combobox" | |
5437 | if test "$no_cache" != 1; then | |
5438 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
5439 | fi | |
5440 | ||
5441 | if test "$wxUSE_COMBOBOX" = yes; then | |
698dcdb6 | 5442 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5443 | else |
698dcdb6 | 5444 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5445 | fi |
698dcdb6 | 5446 | |
10f2d63a | 5447 | |
698dcdb6 | 5448 | echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6 |
d08b457b | 5449 | echo "configure:5450: checking for --enable-gauge" >&5 |
10f2d63a VZ |
5450 | no_cache=0 |
5451 | # Check whether --enable-gauge or --disable-gauge was given. | |
5452 | if test "${enable_gauge+set}" = set; then | |
5453 | enableval="$enable_gauge" | |
698dcdb6 | 5454 | |
10f2d63a VZ |
5455 | if test "$enableval" = yes; then |
5456 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
5457 | else | |
5458 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
5459 | fi | |
698dcdb6 | 5460 | |
10f2d63a | 5461 | else |
698dcdb6 | 5462 | |
10f2d63a VZ |
5463 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` |
5464 | if test "x$LINE" != x ; then | |
5465 | eval "DEFAULT_$LINE" | |
5466 | else | |
5467 | no_cache=1 | |
5468 | fi | |
5469 | ||
5470 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
698dcdb6 VZ |
5471 | |
5472 | fi | |
10f2d63a VZ |
5473 | |
5474 | ||
5475 | eval "$ac_cv_use_gauge" | |
5476 | if test "$no_cache" != 1; then | |
5477 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
5478 | fi | |
5479 | ||
5480 | if test "$wxUSE_GAUGE" = yes; then | |
698dcdb6 | 5481 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5482 | else |
698dcdb6 | 5483 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5484 | fi |
698dcdb6 | 5485 | |
10f2d63a | 5486 | |
698dcdb6 | 5487 | echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6 |
d08b457b | 5488 | echo "configure:5489: checking for --enable-grid" >&5 |
10f2d63a VZ |
5489 | no_cache=0 |
5490 | # Check whether --enable-grid or --disable-grid was given. | |
5491 | if test "${enable_grid+set}" = set; then | |
5492 | enableval="$enable_grid" | |
698dcdb6 | 5493 | |
10f2d63a VZ |
5494 | if test "$enableval" = yes; then |
5495 | ac_cv_use_grid='wxUSE_GRID=yes' | |
5496 | else | |
5497 | ac_cv_use_grid='wxUSE_GRID=no' | |
5498 | fi | |
698dcdb6 | 5499 | |
10f2d63a | 5500 | else |
698dcdb6 | 5501 | |
10f2d63a VZ |
5502 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` |
5503 | if test "x$LINE" != x ; then | |
5504 | eval "DEFAULT_$LINE" | |
5505 | else | |
5506 | no_cache=1 | |
5507 | fi | |
5508 | ||
5509 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
698dcdb6 VZ |
5510 | |
5511 | fi | |
10f2d63a VZ |
5512 | |
5513 | ||
5514 | eval "$ac_cv_use_grid" | |
5515 | if test "$no_cache" != 1; then | |
5516 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
5517 | fi | |
5518 | ||
5519 | if test "$wxUSE_GRID" = yes; then | |
698dcdb6 | 5520 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5521 | else |
698dcdb6 | 5522 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5523 | fi |
698dcdb6 | 5524 | |
10f2d63a | 5525 | |
698dcdb6 | 5526 | echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6 |
d08b457b | 5527 | echo "configure:5528: checking for --enable-newgrid" >&5 |
10f2d63a VZ |
5528 | no_cache=0 |
5529 | # Check whether --enable-newgrid or --disable-newgrid was given. | |
5530 | if test "${enable_newgrid+set}" = set; then | |
5531 | enableval="$enable_newgrid" | |
698dcdb6 | 5532 | |
10f2d63a VZ |
5533 | if test "$enableval" = yes; then |
5534 | ac_cv_use_newgrid='wxUSE_NEW_GRID=yes' | |
5535 | else | |
5536 | ac_cv_use_newgrid='wxUSE_NEW_GRID=no' | |
5537 | fi | |
698dcdb6 | 5538 | |
10f2d63a | 5539 | else |
698dcdb6 | 5540 | |
10f2d63a VZ |
5541 | LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}` |
5542 | if test "x$LINE" != x ; then | |
5543 | eval "DEFAULT_$LINE" | |
5544 | else | |
5545 | no_cache=1 | |
5546 | fi | |
5547 | ||
5548 | ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID | |
698dcdb6 VZ |
5549 | |
5550 | fi | |
10f2d63a VZ |
5551 | |
5552 | ||
5553 | eval "$ac_cv_use_newgrid" | |
5554 | if test "$no_cache" != 1; then | |
5555 | echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp | |
5556 | fi | |
5557 | ||
5558 | if test "$wxUSE_NEW_GRID" = 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 | 5565 | echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6 |
d08b457b | 5566 | echo "configure:5567: checking for --enable-imaglist" >&5 |
10f2d63a VZ |
5567 | no_cache=0 |
5568 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
5569 | if test "${enable_imaglist+set}" = set; then | |
5570 | enableval="$enable_imaglist" | |
698dcdb6 | 5571 | |
10f2d63a VZ |
5572 | if test "$enableval" = yes; then |
5573 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
5574 | else | |
5575 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
5576 | fi | |
698dcdb6 | 5577 | |
10f2d63a | 5578 | else |
698dcdb6 | 5579 | |
10f2d63a VZ |
5580 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` |
5581 | if test "x$LINE" != x ; then | |
5582 | eval "DEFAULT_$LINE" | |
5583 | else | |
5584 | no_cache=1 | |
5585 | fi | |
5586 | ||
5587 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
698dcdb6 VZ |
5588 | |
5589 | fi | |
10f2d63a VZ |
5590 | |
5591 | ||
5592 | eval "$ac_cv_use_imaglist" | |
5593 | if test "$no_cache" != 1; then | |
5594 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
5595 | fi | |
5596 | ||
5597 | if test "$wxUSE_IMAGLIST" = yes; then | |
698dcdb6 | 5598 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5599 | else |
698dcdb6 | 5600 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5601 | fi |
698dcdb6 | 5602 | |
10f2d63a | 5603 | |
698dcdb6 | 5604 | echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6 |
d08b457b | 5605 | echo "configure:5606: checking for --enable-listbox" >&5 |
10f2d63a VZ |
5606 | no_cache=0 |
5607 | # Check whether --enable-listbox or --disable-listbox was given. | |
5608 | if test "${enable_listbox+set}" = set; then | |
5609 | enableval="$enable_listbox" | |
698dcdb6 | 5610 | |
10f2d63a VZ |
5611 | if test "$enableval" = yes; then |
5612 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
5613 | else | |
5614 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
5615 | fi | |
698dcdb6 | 5616 | |
10f2d63a | 5617 | else |
698dcdb6 | 5618 | |
10f2d63a VZ |
5619 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` |
5620 | if test "x$LINE" != x ; then | |
5621 | eval "DEFAULT_$LINE" | |
5622 | else | |
5623 | no_cache=1 | |
5624 | fi | |
5625 | ||
5626 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
698dcdb6 VZ |
5627 | |
5628 | fi | |
10f2d63a VZ |
5629 | |
5630 | ||
5631 | eval "$ac_cv_use_listbox" | |
5632 | if test "$no_cache" != 1; then | |
5633 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
5634 | fi | |
5635 | ||
5636 | if test "$wxUSE_LISTBOX" = yes; then | |
698dcdb6 | 5637 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5638 | else |
698dcdb6 | 5639 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5640 | fi |
698dcdb6 | 5641 | |
10f2d63a | 5642 | |
698dcdb6 | 5643 | echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6 |
d08b457b | 5644 | echo "configure:5645: checking for --enable-listctrl" >&5 |
10f2d63a VZ |
5645 | no_cache=0 |
5646 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
5647 | if test "${enable_listctrl+set}" = set; then | |
5648 | enableval="$enable_listctrl" | |
698dcdb6 | 5649 | |
10f2d63a VZ |
5650 | if test "$enableval" = yes; then |
5651 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
5652 | else | |
5653 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
5654 | fi | |
698dcdb6 | 5655 | |
10f2d63a | 5656 | else |
698dcdb6 | 5657 | |
10f2d63a VZ |
5658 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` |
5659 | if test "x$LINE" != x ; then | |
5660 | eval "DEFAULT_$LINE" | |
5661 | else | |
5662 | no_cache=1 | |
5663 | fi | |
5664 | ||
5665 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
698dcdb6 VZ |
5666 | |
5667 | fi | |
10f2d63a VZ |
5668 | |
5669 | ||
5670 | eval "$ac_cv_use_listctrl" | |
5671 | if test "$no_cache" != 1; then | |
5672 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
5673 | fi | |
5674 | ||
5675 | if test "$wxUSE_LISTCTRL" = yes; then | |
698dcdb6 | 5676 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5677 | else |
698dcdb6 | 5678 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5679 | fi |
698dcdb6 | 5680 | |
10f2d63a | 5681 | |
698dcdb6 | 5682 | echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6 |
d08b457b | 5683 | echo "configure:5684: checking for --enable-notebook" >&5 |
10f2d63a VZ |
5684 | no_cache=0 |
5685 | # Check whether --enable-notebook or --disable-notebook was given. | |
5686 | if test "${enable_notebook+set}" = set; then | |
5687 | enableval="$enable_notebook" | |
698dcdb6 | 5688 | |
10f2d63a VZ |
5689 | if test "$enableval" = yes; then |
5690 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
5691 | else | |
5692 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
5693 | fi | |
698dcdb6 | 5694 | |
10f2d63a | 5695 | else |
698dcdb6 | 5696 | |
10f2d63a VZ |
5697 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` |
5698 | if test "x$LINE" != x ; then | |
5699 | eval "DEFAULT_$LINE" | |
5700 | else | |
5701 | no_cache=1 | |
5702 | fi | |
5703 | ||
5704 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
698dcdb6 VZ |
5705 | |
5706 | fi | |
10f2d63a VZ |
5707 | |
5708 | ||
5709 | eval "$ac_cv_use_notebook" | |
5710 | if test "$no_cache" != 1; then | |
5711 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
5712 | fi | |
5713 | ||
5714 | if test "$wxUSE_NOTEBOOK" = yes; then | |
698dcdb6 | 5715 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5716 | else |
698dcdb6 | 5717 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5718 | fi |
698dcdb6 | 5719 | |
10f2d63a | 5720 | |
24176f2c | 5721 | echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6 |
d08b457b | 5722 | echo "configure:5723: checking for --enable-propsheet" >&5 |
24176f2c GD |
5723 | no_cache=0 |
5724 | # Check whether --enable-propsheet or --disable-propsheet was given. | |
5725 | if test "${enable_propsheet+set}" = set; then | |
5726 | enableval="$enable_propsheet" | |
5727 | ||
5728 | if test "$enableval" = yes; then | |
5729 | ac_cv_use_propsheet='wxUSE_PROPSHEET=yes' | |
5730 | else | |
5731 | ac_cv_use_propsheet='wxUSE_PROPSHEET=no' | |
5732 | fi | |
5733 | ||
5734 | else | |
5735 | ||
5736 | LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}` | |
5737 | if test "x$LINE" != x ; then | |
5738 | eval "DEFAULT_$LINE" | |
5739 | else | |
5740 | no_cache=1 | |
5741 | fi | |
5742 | ||
5743 | ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET | |
5744 | ||
5745 | fi | |
5746 | ||
5747 | ||
5748 | eval "$ac_cv_use_propsheet" | |
5749 | if test "$no_cache" != 1; then | |
5750 | echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp | |
5751 | fi | |
5752 | ||
5753 | if test "$wxUSE_PROPSHEET" = yes; then | |
5754 | echo "$ac_t""yes" 1>&6 | |
5755 | else | |
5756 | echo "$ac_t""no" 1>&6 | |
5757 | fi | |
5758 | ||
5759 | ||
698dcdb6 | 5760 | echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6 |
d08b457b | 5761 | echo "configure:5762: checking for --enable-radiobox" >&5 |
10f2d63a VZ |
5762 | no_cache=0 |
5763 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
5764 | if test "${enable_radiobox+set}" = set; then | |
5765 | enableval="$enable_radiobox" | |
698dcdb6 | 5766 | |
10f2d63a VZ |
5767 | if test "$enableval" = yes; then |
5768 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
5769 | else | |
5770 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
5771 | fi | |
698dcdb6 | 5772 | |
10f2d63a | 5773 | else |
698dcdb6 | 5774 | |
10f2d63a VZ |
5775 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` |
5776 | if test "x$LINE" != x ; then | |
5777 | eval "DEFAULT_$LINE" | |
5778 | else | |
5779 | no_cache=1 | |
5780 | fi | |
5781 | ||
5782 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
698dcdb6 VZ |
5783 | |
5784 | fi | |
10f2d63a VZ |
5785 | |
5786 | ||
5787 | eval "$ac_cv_use_radiobox" | |
5788 | if test "$no_cache" != 1; then | |
5789 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
5790 | fi | |
5791 | ||
5792 | if test "$wxUSE_RADIOBOX" = yes; then | |
698dcdb6 | 5793 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5794 | else |
698dcdb6 | 5795 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5796 | fi |
698dcdb6 | 5797 | |
10f2d63a | 5798 | |
698dcdb6 | 5799 | echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6 |
d08b457b | 5800 | echo "configure:5801: checking for --enable-radiobtn" >&5 |
10f2d63a VZ |
5801 | no_cache=0 |
5802 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
5803 | if test "${enable_radiobtn+set}" = set; then | |
5804 | enableval="$enable_radiobtn" | |
698dcdb6 | 5805 | |
10f2d63a VZ |
5806 | if test "$enableval" = yes; then |
5807 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
5808 | else | |
5809 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
5810 | fi | |
698dcdb6 | 5811 | |
10f2d63a | 5812 | else |
698dcdb6 | 5813 | |
10f2d63a VZ |
5814 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` |
5815 | if test "x$LINE" != x ; then | |
5816 | eval "DEFAULT_$LINE" | |
5817 | else | |
5818 | no_cache=1 | |
5819 | fi | |
5820 | ||
5821 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
698dcdb6 VZ |
5822 | |
5823 | fi | |
10f2d63a VZ |
5824 | |
5825 | ||
5826 | eval "$ac_cv_use_radiobtn" | |
5827 | if test "$no_cache" != 1; then | |
5828 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
5829 | fi | |
5830 | ||
5831 | if test "$wxUSE_RADIOBTN" = yes; then | |
698dcdb6 | 5832 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5833 | else |
698dcdb6 | 5834 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5835 | fi |
698dcdb6 | 5836 | |
10f2d63a | 5837 | |
698dcdb6 | 5838 | echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6 |
d08b457b | 5839 | echo "configure:5840: checking for --enable-sash" >&5 |
10f2d63a VZ |
5840 | no_cache=0 |
5841 | # Check whether --enable-sash or --disable-sash was given. | |
5842 | if test "${enable_sash+set}" = set; then | |
5843 | enableval="$enable_sash" | |
698dcdb6 | 5844 | |
10f2d63a VZ |
5845 | if test "$enableval" = yes; then |
5846 | ac_cv_use_sash='wxUSE_SASH=yes' | |
5847 | else | |
5848 | ac_cv_use_sash='wxUSE_SASH=no' | |
5849 | fi | |
698dcdb6 | 5850 | |
10f2d63a | 5851 | else |
698dcdb6 | 5852 | |
10f2d63a VZ |
5853 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` |
5854 | if test "x$LINE" != x ; then | |
5855 | eval "DEFAULT_$LINE" | |
5856 | else | |
5857 | no_cache=1 | |
5858 | fi | |
5859 | ||
5860 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
698dcdb6 VZ |
5861 | |
5862 | fi | |
10f2d63a VZ |
5863 | |
5864 | ||
5865 | eval "$ac_cv_use_sash" | |
5866 | if test "$no_cache" != 1; then | |
5867 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
5868 | fi | |
5869 | ||
5870 | if test "$wxUSE_SASH" = yes; then | |
698dcdb6 | 5871 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5872 | else |
698dcdb6 | 5873 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5874 | fi |
698dcdb6 | 5875 | |
10f2d63a | 5876 | |
698dcdb6 | 5877 | echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6 |
d08b457b | 5878 | echo "configure:5879: checking for --enable-scrollbar" >&5 |
10f2d63a VZ |
5879 | no_cache=0 |
5880 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
5881 | if test "${enable_scrollbar+set}" = set; then | |
5882 | enableval="$enable_scrollbar" | |
698dcdb6 | 5883 | |
10f2d63a VZ |
5884 | if test "$enableval" = yes; then |
5885 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
5886 | else | |
5887 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
5888 | fi | |
698dcdb6 | 5889 | |
10f2d63a | 5890 | else |
698dcdb6 | 5891 | |
10f2d63a VZ |
5892 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` |
5893 | if test "x$LINE" != x ; then | |
5894 | eval "DEFAULT_$LINE" | |
5895 | else | |
5896 | no_cache=1 | |
5897 | fi | |
5898 | ||
5899 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
698dcdb6 VZ |
5900 | |
5901 | fi | |
10f2d63a VZ |
5902 | |
5903 | ||
5904 | eval "$ac_cv_use_scrollbar" | |
5905 | if test "$no_cache" != 1; then | |
5906 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
5907 | fi | |
5908 | ||
5909 | if test "$wxUSE_SCROLLBAR" = yes; then | |
698dcdb6 | 5910 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5911 | else |
698dcdb6 | 5912 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5913 | fi |
698dcdb6 | 5914 | |
10f2d63a | 5915 | |
698dcdb6 | 5916 | echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6 |
d08b457b | 5917 | echo "configure:5918: checking for --enable-slider" >&5 |
10f2d63a VZ |
5918 | no_cache=0 |
5919 | # Check whether --enable-slider or --disable-slider was given. | |
5920 | if test "${enable_slider+set}" = set; then | |
5921 | enableval="$enable_slider" | |
698dcdb6 | 5922 | |
10f2d63a VZ |
5923 | if test "$enableval" = yes; then |
5924 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
5925 | else | |
5926 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
5927 | fi | |
698dcdb6 | 5928 | |
10f2d63a | 5929 | else |
698dcdb6 | 5930 | |
10f2d63a VZ |
5931 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` |
5932 | if test "x$LINE" != x ; then | |
5933 | eval "DEFAULT_$LINE" | |
5934 | else | |
5935 | no_cache=1 | |
5936 | fi | |
5937 | ||
5938 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
698dcdb6 VZ |
5939 | |
5940 | fi | |
10f2d63a VZ |
5941 | |
5942 | ||
5943 | eval "$ac_cv_use_slider" | |
5944 | if test "$no_cache" != 1; then | |
5945 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
5946 | fi | |
5947 | ||
5948 | if test "$wxUSE_SLIDER" = yes; then | |
698dcdb6 | 5949 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5950 | else |
698dcdb6 | 5951 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5952 | fi |
698dcdb6 | 5953 | |
10f2d63a | 5954 | |
698dcdb6 | 5955 | echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6 |
d08b457b | 5956 | echo "configure:5957: checking for --enable-spinbtn" >&5 |
10f2d63a VZ |
5957 | no_cache=0 |
5958 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
5959 | if test "${enable_spinbtn+set}" = set; then | |
5960 | enableval="$enable_spinbtn" | |
698dcdb6 | 5961 | |
10f2d63a VZ |
5962 | if test "$enableval" = yes; then |
5963 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
5964 | else | |
5965 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
5966 | fi | |
698dcdb6 | 5967 | |
10f2d63a | 5968 | else |
698dcdb6 | 5969 | |
10f2d63a VZ |
5970 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` |
5971 | if test "x$LINE" != x ; then | |
5972 | eval "DEFAULT_$LINE" | |
5973 | else | |
5974 | no_cache=1 | |
5975 | fi | |
5976 | ||
5977 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
698dcdb6 VZ |
5978 | |
5979 | fi | |
10f2d63a VZ |
5980 | |
5981 | ||
5982 | eval "$ac_cv_use_spinbtn" | |
5983 | if test "$no_cache" != 1; then | |
5984 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
5985 | fi | |
5986 | ||
5987 | if test "$wxUSE_SPINBTN" = yes; then | |
698dcdb6 | 5988 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5989 | else |
698dcdb6 | 5990 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5991 | fi |
698dcdb6 | 5992 | |
10f2d63a | 5993 | |
698dcdb6 | 5994 | echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6 |
d08b457b | 5995 | echo "configure:5996: checking for --enable-spinctrl" >&5 |
56cfaa52 RR |
5996 | no_cache=0 |
5997 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
5998 | if test "${enable_spinctrl+set}" = set; then | |
5999 | enableval="$enable_spinctrl" | |
698dcdb6 | 6000 | |
56cfaa52 RR |
6001 | if test "$enableval" = yes; then |
6002 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
6003 | else | |
6004 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
6005 | fi | |
698dcdb6 | 6006 | |
56cfaa52 | 6007 | else |
698dcdb6 | 6008 | |
56cfaa52 RR |
6009 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` |
6010 | if test "x$LINE" != x ; then | |
6011 | eval "DEFAULT_$LINE" | |
6012 | else | |
6013 | no_cache=1 | |
6014 | fi | |
6015 | ||
6016 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
698dcdb6 VZ |
6017 | |
6018 | fi | |
56cfaa52 RR |
6019 | |
6020 | ||
6021 | eval "$ac_cv_use_spinctrl" | |
6022 | if test "$no_cache" != 1; then | |
6023 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
6024 | fi | |
6025 | ||
6026 | if test "$wxUSE_SPINCTRL" = yes; then | |
698dcdb6 | 6027 | echo "$ac_t""yes" 1>&6 |
56cfaa52 | 6028 | else |
698dcdb6 | 6029 | echo "$ac_t""no" 1>&6 |
56cfaa52 | 6030 | fi |
698dcdb6 | 6031 | |
56cfaa52 | 6032 | |
698dcdb6 | 6033 | echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6 |
d08b457b | 6034 | echo "configure:6035: checking for --enable-splitter" >&5 |
10f2d63a VZ |
6035 | no_cache=0 |
6036 | # Check whether --enable-splitter or --disable-splitter was given. | |
6037 | if test "${enable_splitter+set}" = set; then | |
6038 | enableval="$enable_splitter" | |
698dcdb6 | 6039 | |
10f2d63a VZ |
6040 | if test "$enableval" = yes; then |
6041 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
6042 | else | |
6043 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
6044 | fi | |
698dcdb6 | 6045 | |
10f2d63a | 6046 | else |
698dcdb6 | 6047 | |
10f2d63a VZ |
6048 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` |
6049 | if test "x$LINE" != x ; then | |
6050 | eval "DEFAULT_$LINE" | |
6051 | else | |
6052 | no_cache=1 | |
6053 | fi | |
6054 | ||
6055 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
698dcdb6 VZ |
6056 | |
6057 | fi | |
10f2d63a VZ |
6058 | |
6059 | ||
6060 | eval "$ac_cv_use_splitter" | |
6061 | if test "$no_cache" != 1; then | |
6062 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
6063 | fi | |
6064 | ||
6065 | if test "$wxUSE_SPLITTER" = yes; then | |
698dcdb6 | 6066 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6067 | else |
698dcdb6 | 6068 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6069 | fi |
698dcdb6 | 6070 | |
10f2d63a | 6071 | |
698dcdb6 | 6072 | echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6 |
d08b457b | 6073 | echo "configure:6074: checking for --enable-statbmp" >&5 |
10f2d63a VZ |
6074 | no_cache=0 |
6075 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
6076 | if test "${enable_statbmp+set}" = set; then | |
6077 | enableval="$enable_statbmp" | |
698dcdb6 | 6078 | |
10f2d63a VZ |
6079 | if test "$enableval" = yes; then |
6080 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
6081 | else | |
6082 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
6083 | fi | |
698dcdb6 | 6084 | |
10f2d63a | 6085 | else |
698dcdb6 | 6086 | |
10f2d63a VZ |
6087 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` |
6088 | if test "x$LINE" != x ; then | |
6089 | eval "DEFAULT_$LINE" | |
6090 | else | |
6091 | no_cache=1 | |
6092 | fi | |
6093 | ||
6094 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
698dcdb6 VZ |
6095 | |
6096 | fi | |
10f2d63a VZ |
6097 | |
6098 | ||
6099 | eval "$ac_cv_use_statbmp" | |
6100 | if test "$no_cache" != 1; then | |
6101 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
6102 | fi | |
6103 | ||
6104 | if test "$wxUSE_STATBMP" = yes; then | |
698dcdb6 | 6105 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6106 | else |
698dcdb6 | 6107 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6108 | fi |
698dcdb6 | 6109 | |
10f2d63a | 6110 | |
698dcdb6 | 6111 | echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6 |
d08b457b | 6112 | echo "configure:6113: checking for --enable-statbox" >&5 |
10f2d63a VZ |
6113 | no_cache=0 |
6114 | # Check whether --enable-statbox or --disable-statbox was given. | |
6115 | if test "${enable_statbox+set}" = set; then | |
6116 | enableval="$enable_statbox" | |
698dcdb6 | 6117 | |
10f2d63a VZ |
6118 | if test "$enableval" = yes; then |
6119 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
6120 | else | |
6121 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
6122 | fi | |
698dcdb6 | 6123 | |
10f2d63a | 6124 | else |
698dcdb6 | 6125 | |
10f2d63a VZ |
6126 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` |
6127 | if test "x$LINE" != x ; then | |
6128 | eval "DEFAULT_$LINE" | |
6129 | else | |
6130 | no_cache=1 | |
6131 | fi | |
6132 | ||
6133 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
698dcdb6 VZ |
6134 | |
6135 | fi | |
10f2d63a VZ |
6136 | |
6137 | ||
6138 | eval "$ac_cv_use_statbox" | |
6139 | if test "$no_cache" != 1; then | |
6140 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
6141 | fi | |
6142 | ||
6143 | if test "$wxUSE_STATBOX" = yes; then | |
698dcdb6 | 6144 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6145 | else |
698dcdb6 | 6146 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6147 | fi |
698dcdb6 | 6148 | |
10f2d63a | 6149 | |
698dcdb6 | 6150 | echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6 |
d08b457b | 6151 | echo "configure:6152: checking for --enable-statline" >&5 |
10f2d63a VZ |
6152 | no_cache=0 |
6153 | # Check whether --enable-statline or --disable-statline was given. | |
6154 | if test "${enable_statline+set}" = set; then | |
6155 | enableval="$enable_statline" | |
698dcdb6 | 6156 | |
10f2d63a VZ |
6157 | if test "$enableval" = yes; then |
6158 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
6159 | else | |
6160 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
6161 | fi | |
698dcdb6 | 6162 | |
10f2d63a | 6163 | else |
698dcdb6 | 6164 | |
10f2d63a VZ |
6165 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` |
6166 | if test "x$LINE" != x ; then | |
6167 | eval "DEFAULT_$LINE" | |
6168 | else | |
6169 | no_cache=1 | |
6170 | fi | |
6171 | ||
6172 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
698dcdb6 VZ |
6173 | |
6174 | fi | |
10f2d63a VZ |
6175 | |
6176 | ||
6177 | eval "$ac_cv_use_statline" | |
6178 | if test "$no_cache" != 1; then | |
6179 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
6180 | fi | |
6181 | ||
6182 | if test "$wxUSE_STATLINE" = yes; then | |
698dcdb6 | 6183 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6184 | else |
698dcdb6 | 6185 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6186 | fi |
698dcdb6 | 6187 | |
10f2d63a | 6188 | |
1e6feb95 | 6189 | echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6 |
d08b457b | 6190 | echo "configure:6191: checking for --enable-stattext" >&5 |
1e6feb95 VZ |
6191 | no_cache=0 |
6192 | # Check whether --enable-stattext or --disable-stattext was given. | |
6193 | if test "${enable_stattext+set}" = set; then | |
6194 | enableval="$enable_stattext" | |
6195 | ||
6196 | if test "$enableval" = yes; then | |
6197 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
6198 | else | |
6199 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
6200 | fi | |
6201 | ||
6202 | else | |
6203 | ||
6204 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
6205 | if test "x$LINE" != x ; then | |
6206 | eval "DEFAULT_$LINE" | |
6207 | else | |
6208 | no_cache=1 | |
6209 | fi | |
6210 | ||
6211 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
6212 | ||
6213 | fi | |
6214 | ||
6215 | ||
6216 | eval "$ac_cv_use_stattext" | |
6217 | if test "$no_cache" != 1; then | |
6218 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
6219 | fi | |
6220 | ||
6221 | if test "$wxUSE_STATTEXT" = yes; then | |
6222 | echo "$ac_t""yes" 1>&6 | |
6223 | else | |
6224 | echo "$ac_t""no" 1>&6 | |
6225 | fi | |
6226 | ||
6227 | ||
698dcdb6 | 6228 | echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6 |
d08b457b | 6229 | echo "configure:6230: checking for --enable-statusbar" >&5 |
10f2d63a VZ |
6230 | no_cache=0 |
6231 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
6232 | if test "${enable_statusbar+set}" = set; then | |
6233 | enableval="$enable_statusbar" | |
698dcdb6 | 6234 | |
10f2d63a VZ |
6235 | if test "$enableval" = yes; then |
6236 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
6237 | else | |
6238 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
6239 | fi | |
698dcdb6 | 6240 | |
10f2d63a | 6241 | else |
698dcdb6 | 6242 | |
10f2d63a VZ |
6243 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` |
6244 | if test "x$LINE" != x ; then | |
6245 | eval "DEFAULT_$LINE" | |
6246 | else | |
6247 | no_cache=1 | |
6248 | fi | |
6249 | ||
6250 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
698dcdb6 VZ |
6251 | |
6252 | fi | |
10f2d63a VZ |
6253 | |
6254 | ||
6255 | eval "$ac_cv_use_statusbar" | |
6256 | if test "$no_cache" != 1; then | |
6257 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
6258 | fi | |
6259 | ||
6260 | if test "$wxUSE_STATUSBAR" = yes; then | |
698dcdb6 | 6261 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6262 | else |
698dcdb6 | 6263 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6264 | fi |
698dcdb6 | 6265 | |
10f2d63a | 6266 | |
698dcdb6 | 6267 | echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6 |
d08b457b | 6268 | echo "configure:6269: checking for --enable-tabdialog" >&5 |
10f2d63a VZ |
6269 | no_cache=0 |
6270 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
6271 | if test "${enable_tabdialog+set}" = set; then | |
6272 | enableval="$enable_tabdialog" | |
698dcdb6 | 6273 | |
10f2d63a VZ |
6274 | if test "$enableval" = yes; then |
6275 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
6276 | else | |
6277 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
6278 | fi | |
698dcdb6 | 6279 | |
10f2d63a | 6280 | else |
698dcdb6 | 6281 | |
10f2d63a VZ |
6282 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` |
6283 | if test "x$LINE" != x ; then | |
6284 | eval "DEFAULT_$LINE" | |
6285 | else | |
6286 | no_cache=1 | |
6287 | fi | |
6288 | ||
6289 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
698dcdb6 VZ |
6290 | |
6291 | fi | |
10f2d63a VZ |
6292 | |
6293 | ||
6294 | eval "$ac_cv_use_tabdialog" | |
6295 | if test "$no_cache" != 1; then | |
6296 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
6297 | fi | |
6298 | ||
6299 | if test "$wxUSE_TABDIALOG" = yes; then | |
698dcdb6 | 6300 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6301 | else |
698dcdb6 | 6302 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6303 | fi |
698dcdb6 | 6304 | |
10f2d63a | 6305 | |
1e6feb95 | 6306 | echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6 |
d08b457b | 6307 | echo "configure:6308: checking for --enable-textctrl" >&5 |
1e6feb95 VZ |
6308 | no_cache=0 |
6309 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
6310 | if test "${enable_textctrl+set}" = set; then | |
6311 | enableval="$enable_textctrl" | |
6312 | ||
6313 | if test "$enableval" = yes; then | |
6314 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
6315 | else | |
6316 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
6317 | fi | |
6318 | ||
6319 | else | |
6320 | ||
6321 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
6322 | if test "x$LINE" != x ; then | |
6323 | eval "DEFAULT_$LINE" | |
6324 | else | |
6325 | no_cache=1 | |
6326 | fi | |
6327 | ||
6328 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
6329 | ||
6330 | fi | |
6331 | ||
6332 | ||
6333 | eval "$ac_cv_use_textctrl" | |
6334 | if test "$no_cache" != 1; then | |
6335 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
6336 | fi | |
6337 | ||
6338 | if test "$wxUSE_TEXTCTRL" = yes; then | |
6339 | echo "$ac_t""yes" 1>&6 | |
6340 | else | |
6341 | echo "$ac_t""no" 1>&6 | |
6342 | fi | |
6343 | ||
6344 | ||
698dcdb6 | 6345 | echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6 |
d08b457b | 6346 | echo "configure:6347: checking for --enable-togglebtn" >&5 |
1db8dc4a VZ |
6347 | no_cache=0 |
6348 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
6349 | if test "${enable_togglebtn+set}" = set; then | |
6350 | enableval="$enable_togglebtn" | |
698dcdb6 | 6351 | |
1db8dc4a VZ |
6352 | if test "$enableval" = yes; then |
6353 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
6354 | else | |
6355 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
6356 | fi | |
698dcdb6 | 6357 | |
1db8dc4a | 6358 | else |
698dcdb6 | 6359 | |
1db8dc4a VZ |
6360 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` |
6361 | if test "x$LINE" != x ; then | |
6362 | eval "DEFAULT_$LINE" | |
6363 | else | |
6364 | no_cache=1 | |
6365 | fi | |
6366 | ||
6367 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
698dcdb6 VZ |
6368 | |
6369 | fi | |
1db8dc4a VZ |
6370 | |
6371 | ||
6372 | eval "$ac_cv_use_togglebtn" | |
6373 | if test "$no_cache" != 1; then | |
6374 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
6375 | fi | |
6376 | ||
6377 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
698dcdb6 | 6378 | echo "$ac_t""yes" 1>&6 |
1db8dc4a | 6379 | else |
698dcdb6 | 6380 | echo "$ac_t""no" 1>&6 |
1db8dc4a | 6381 | fi |
698dcdb6 | 6382 | |
1db8dc4a | 6383 | |
698dcdb6 | 6384 | echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6 |
d08b457b | 6385 | echo "configure:6386: checking for --enable-toolbar" >&5 |
10f2d63a VZ |
6386 | no_cache=0 |
6387 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
6388 | if test "${enable_toolbar+set}" = set; then | |
6389 | enableval="$enable_toolbar" | |
698dcdb6 | 6390 | |
10f2d63a VZ |
6391 | if test "$enableval" = yes; then |
6392 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
6393 | else | |
6394 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
6395 | fi | |
698dcdb6 | 6396 | |
10f2d63a | 6397 | else |
698dcdb6 | 6398 | |
10f2d63a VZ |
6399 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` |
6400 | if test "x$LINE" != x ; then | |
6401 | eval "DEFAULT_$LINE" | |
6402 | else | |
6403 | no_cache=1 | |
6404 | fi | |
6405 | ||
6406 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
698dcdb6 VZ |
6407 | |
6408 | fi | |
10f2d63a VZ |
6409 | |
6410 | ||
6411 | eval "$ac_cv_use_toolbar" | |
6412 | if test "$no_cache" != 1; then | |
6413 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
6414 | fi | |
6415 | ||
6416 | if test "$wxUSE_TOOLBAR" = yes; then | |
698dcdb6 | 6417 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6418 | else |
698dcdb6 | 6419 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6420 | fi |
698dcdb6 | 6421 | |
10f2d63a | 6422 | |
698dcdb6 | 6423 | echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6 |
d08b457b | 6424 | echo "configure:6425: checking for --enable-tbarnative" >&5 |
360d6699 VZ |
6425 | no_cache=0 |
6426 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
6427 | if test "${enable_tbarnative+set}" = set; then | |
6428 | enableval="$enable_tbarnative" | |
698dcdb6 | 6429 | |
360d6699 VZ |
6430 | if test "$enableval" = yes; then |
6431 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
6432 | else | |
6433 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
6434 | fi | |
698dcdb6 | 6435 | |
360d6699 | 6436 | else |
698dcdb6 | 6437 | |
360d6699 VZ |
6438 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` |
6439 | if test "x$LINE" != x ; then | |
6440 | eval "DEFAULT_$LINE" | |
6441 | else | |
6442 | no_cache=1 | |
6443 | fi | |
6444 | ||
6445 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
698dcdb6 VZ |
6446 | |
6447 | fi | |
360d6699 VZ |
6448 | |
6449 | ||
6450 | eval "$ac_cv_use_tbarnative" | |
6451 | if test "$no_cache" != 1; then | |
6452 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
6453 | fi | |
6454 | ||
6455 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
698dcdb6 | 6456 | echo "$ac_t""yes" 1>&6 |
360d6699 | 6457 | else |
698dcdb6 | 6458 | echo "$ac_t""no" 1>&6 |
360d6699 | 6459 | fi |
698dcdb6 | 6460 | |
360d6699 | 6461 | |
698dcdb6 | 6462 | echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6 |
d08b457b | 6463 | echo "configure:6464: checking for --enable-tbarsmpl" >&5 |
360d6699 VZ |
6464 | no_cache=0 |
6465 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
6466 | if test "${enable_tbarsmpl+set}" = set; then | |
6467 | enableval="$enable_tbarsmpl" | |
698dcdb6 | 6468 | |
360d6699 VZ |
6469 | if test "$enableval" = yes; then |
6470 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
6471 | else | |
6472 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
6473 | fi | |
698dcdb6 | 6474 | |
360d6699 | 6475 | else |
698dcdb6 | 6476 | |
360d6699 VZ |
6477 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` |
6478 | if test "x$LINE" != x ; then | |
6479 | eval "DEFAULT_$LINE" | |
6480 | else | |
6481 | no_cache=1 | |
6482 | fi | |
6483 | ||
6484 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
698dcdb6 VZ |
6485 | |
6486 | fi | |
360d6699 VZ |
6487 | |
6488 | ||
6489 | eval "$ac_cv_use_tbarsmpl" | |
6490 | if test "$no_cache" != 1; then | |
6491 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
6492 | fi | |
6493 | ||
6494 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
698dcdb6 | 6495 | echo "$ac_t""yes" 1>&6 |
360d6699 | 6496 | else |
698dcdb6 | 6497 | echo "$ac_t""no" 1>&6 |
360d6699 | 6498 | fi |
698dcdb6 | 6499 | |
360d6699 | 6500 | |
698dcdb6 | 6501 | echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6 |
d08b457b | 6502 | echo "configure:6503: checking for --enable-treectrl" >&5 |
10f2d63a VZ |
6503 | no_cache=0 |
6504 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
6505 | if test "${enable_treectrl+set}" = set; then | |
6506 | enableval="$enable_treectrl" | |
698dcdb6 | 6507 | |
10f2d63a VZ |
6508 | if test "$enableval" = yes; then |
6509 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
6510 | else | |
6511 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
6512 | fi | |
698dcdb6 | 6513 | |
10f2d63a | 6514 | else |
698dcdb6 | 6515 | |
10f2d63a VZ |
6516 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` |
6517 | if test "x$LINE" != x ; then | |
6518 | eval "DEFAULT_$LINE" | |
6519 | else | |
6520 | no_cache=1 | |
6521 | fi | |
6522 | ||
6523 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
698dcdb6 VZ |
6524 | |
6525 | fi | |
10f2d63a VZ |
6526 | |
6527 | ||
1e6feb95 VZ |
6528 | eval "$ac_cv_use_treectrl" |
6529 | if test "$no_cache" != 1; then | |
6530 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
6531 | fi | |
6532 | ||
6533 | if test "$wxUSE_TREECTRL" = yes; then | |
6534 | echo "$ac_t""yes" 1>&6 | |
6535 | else | |
6536 | echo "$ac_t""no" 1>&6 | |
6537 | fi | |
6538 | ||
6539 | ||
9f41d601 | 6540 | echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6 |
d08b457b | 6541 | echo "configure:6542: checking for --enable-popupwin" >&5 |
9f41d601 RR |
6542 | no_cache=0 |
6543 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
6544 | if test "${enable_popupwin+set}" = set; then | |
6545 | enableval="$enable_popupwin" | |
6546 | ||
6547 | if test "$enableval" = yes; then | |
6548 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
6549 | else | |
6550 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
6551 | fi | |
6552 | ||
6553 | else | |
6554 | ||
6555 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` | |
6556 | if test "x$LINE" != x ; then | |
6557 | eval "DEFAULT_$LINE" | |
6558 | else | |
6559 | no_cache=1 | |
6560 | fi | |
6561 | ||
6562 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
6563 | ||
6564 | fi | |
6565 | ||
6566 | ||
6567 | eval "$ac_cv_use_popupwin" | |
6568 | if test "$no_cache" != 1; then | |
6569 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
6570 | fi | |
6571 | ||
6572 | if test "$wxUSE_POPUPWIN" = yes; then | |
6573 | echo "$ac_t""yes" 1>&6 | |
6574 | else | |
6575 | echo "$ac_t""no" 1>&6 | |
6576 | fi | |
6577 | ||
6578 | ||
1e6feb95 VZ |
6579 | |
6580 | ||
6581 | echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6 | |
d08b457b | 6582 | echo "configure:6583: checking for --enable-commondlg" >&5 |
1e6feb95 VZ |
6583 | no_cache=0 |
6584 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
6585 | if test "${enable_commondlg+set}" = set; then | |
6586 | enableval="$enable_commondlg" | |
6587 | ||
6588 | if test "$enableval" = yes; then | |
6589 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
6590 | else | |
6591 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
6592 | fi | |
6593 | ||
6594 | else | |
6595 | ||
6596 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
6597 | if test "x$LINE" != x ; then | |
6598 | eval "DEFAULT_$LINE" | |
6599 | else | |
6600 | no_cache=1 | |
6601 | fi | |
6602 | ||
6603 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
6604 | ||
6605 | fi | |
6606 | ||
6607 | ||
6608 | eval "$ac_cv_use_commondlg" | |
6609 | if test "$no_cache" != 1; then | |
6610 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
6611 | fi | |
6612 | ||
6613 | if test "$wxUSE_COMMONDLGS" = yes; then | |
6614 | echo "$ac_t""yes" 1>&6 | |
6615 | else | |
6616 | echo "$ac_t""no" 1>&6 | |
6617 | fi | |
6618 | ||
6619 | ||
6620 | echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6 | |
d08b457b | 6621 | echo "configure:6622: checking for --enable-choicedlg" >&5 |
1e6feb95 VZ |
6622 | no_cache=0 |
6623 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
6624 | if test "${enable_choicedlg+set}" = set; then | |
6625 | enableval="$enable_choicedlg" | |
6626 | ||
6627 | if test "$enableval" = yes; then | |
6628 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
6629 | else | |
6630 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
6631 | fi | |
6632 | ||
6633 | else | |
6634 | ||
6635 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
6636 | if test "x$LINE" != x ; then | |
6637 | eval "DEFAULT_$LINE" | |
6638 | else | |
6639 | no_cache=1 | |
6640 | fi | |
6641 | ||
6642 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
6643 | ||
6644 | fi | |
6645 | ||
6646 | ||
6647 | eval "$ac_cv_use_choicedlg" | |
6648 | if test "$no_cache" != 1; then | |
6649 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
6650 | fi | |
6651 | ||
6652 | if test "$wxUSE_CHOICEDLG" = yes; then | |
6653 | echo "$ac_t""yes" 1>&6 | |
6654 | else | |
6655 | echo "$ac_t""no" 1>&6 | |
6656 | fi | |
6657 | ||
6658 | ||
6659 | echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6 | |
d08b457b | 6660 | echo "configure:6661: checking for --enable-coldlg" >&5 |
1e6feb95 VZ |
6661 | no_cache=0 |
6662 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
6663 | if test "${enable_coldlg+set}" = set; then | |
6664 | enableval="$enable_coldlg" | |
6665 | ||
6666 | if test "$enableval" = yes; then | |
6667 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
6668 | else | |
6669 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
6670 | fi | |
6671 | ||
6672 | else | |
6673 | ||
6674 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
6675 | if test "x$LINE" != x ; then | |
6676 | eval "DEFAULT_$LINE" | |
6677 | else | |
6678 | no_cache=1 | |
6679 | fi | |
6680 | ||
6681 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
6682 | ||
6683 | fi | |
6684 | ||
6685 | ||
6686 | eval "$ac_cv_use_coldlg" | |
6687 | if test "$no_cache" != 1; then | |
6688 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
6689 | fi | |
6690 | ||
6691 | if test "$wxUSE_COLOURDLG" = yes; then | |
6692 | echo "$ac_t""yes" 1>&6 | |
6693 | else | |
6694 | echo "$ac_t""no" 1>&6 | |
6695 | fi | |
6696 | ||
6697 | ||
6698 | echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6 | |
d08b457b | 6699 | echo "configure:6700: checking for --enable-filedlg" >&5 |
1e6feb95 VZ |
6700 | no_cache=0 |
6701 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
6702 | if test "${enable_filedlg+set}" = set; then | |
6703 | enableval="$enable_filedlg" | |
6704 | ||
6705 | if test "$enableval" = yes; then | |
6706 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
6707 | else | |
6708 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
6709 | fi | |
6710 | ||
6711 | else | |
6712 | ||
6713 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
6714 | if test "x$LINE" != x ; then | |
6715 | eval "DEFAULT_$LINE" | |
6716 | else | |
6717 | no_cache=1 | |
6718 | fi | |
6719 | ||
6720 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
6721 | ||
6722 | fi | |
6723 | ||
6724 | ||
6725 | eval "$ac_cv_use_filedlg" | |
6726 | if test "$no_cache" != 1; then | |
6727 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
6728 | fi | |
6729 | ||
6730 | if test "$wxUSE_FILEDLG" = yes; then | |
6731 | echo "$ac_t""yes" 1>&6 | |
6732 | else | |
6733 | echo "$ac_t""no" 1>&6 | |
6734 | fi | |
6735 | ||
6736 | ||
8db37e06 | 6737 | echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6 |
d08b457b | 6738 | echo "configure:6739: checking for --enable-filedlg" >&5 |
8db37e06 VZ |
6739 | no_cache=0 |
6740 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
6741 | if test "${enable_filedlg+set}" = set; then | |
6742 | enableval="$enable_filedlg" | |
6743 | ||
6744 | if test "$enableval" = yes; then | |
6745 | ac_cv_use_filedlg='wxUSE_FINDREPLDLG=yes' | |
6746 | else | |
6747 | ac_cv_use_filedlg='wxUSE_FINDREPLDLG=no' | |
6748 | fi | |
6749 | ||
6750 | else | |
6751 | ||
6752 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` | |
6753 | if test "x$LINE" != x ; then | |
6754 | eval "DEFAULT_$LINE" | |
6755 | else | |
6756 | no_cache=1 | |
6757 | fi | |
6758 | ||
6759 | ac_cv_use_filedlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG | |
6760 | ||
6761 | fi | |
6762 | ||
6763 | ||
6764 | eval "$ac_cv_use_filedlg" | |
6765 | if test "$no_cache" != 1; then | |
6766 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
6767 | fi | |
6768 | ||
6769 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
6770 | echo "$ac_t""yes" 1>&6 | |
6771 | else | |
6772 | echo "$ac_t""no" 1>&6 | |
6773 | fi | |
6774 | ||
6775 | ||
1e6feb95 | 6776 | echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6 |
d08b457b | 6777 | echo "configure:6778: checking for --enable-fontdlg" >&5 |
1e6feb95 VZ |
6778 | no_cache=0 |
6779 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
6780 | if test "${enable_fontdlg+set}" = set; then | |
6781 | enableval="$enable_fontdlg" | |
6782 | ||
6783 | if test "$enableval" = yes; then | |
6784 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
6785 | else | |
6786 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
6787 | fi | |
6788 | ||
6789 | else | |
6790 | ||
6791 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
6792 | if test "x$LINE" != x ; then | |
6793 | eval "DEFAULT_$LINE" | |
6794 | else | |
6795 | no_cache=1 | |
6796 | fi | |
6797 | ||
6798 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
6799 | ||
6800 | fi | |
6801 | ||
6802 | ||
6803 | eval "$ac_cv_use_fontdlg" | |
6804 | if test "$no_cache" != 1; then | |
6805 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
6806 | fi | |
6807 | ||
6808 | if test "$wxUSE_FONTDLG" = yes; then | |
6809 | echo "$ac_t""yes" 1>&6 | |
6810 | else | |
6811 | echo "$ac_t""no" 1>&6 | |
6812 | fi | |
6813 | ||
6814 | ||
6815 | echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6 | |
d08b457b | 6816 | echo "configure:6817: checking for --enable-dirdlg" >&5 |
1e6feb95 VZ |
6817 | no_cache=0 |
6818 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
6819 | if test "${enable_dirdlg+set}" = set; then | |
6820 | enableval="$enable_dirdlg" | |
6821 | ||
6822 | if test "$enableval" = yes; then | |
6823 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
6824 | else | |
6825 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
6826 | fi | |
6827 | ||
6828 | else | |
6829 | ||
6830 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
6831 | if test "x$LINE" != x ; then | |
6832 | eval "DEFAULT_$LINE" | |
6833 | else | |
6834 | no_cache=1 | |
6835 | fi | |
6836 | ||
6837 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
6838 | ||
6839 | fi | |
6840 | ||
6841 | ||
6842 | eval "$ac_cv_use_dirdlg" | |
10f2d63a | 6843 | if test "$no_cache" != 1; then |
1e6feb95 | 6844 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6845 | fi |
6846 | ||
1e6feb95 | 6847 | if test "$wxUSE_DIRDLG" = yes; then |
698dcdb6 | 6848 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6849 | else |
698dcdb6 | 6850 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6851 | fi |
698dcdb6 VZ |
6852 | |
6853 | ||
1e6feb95 | 6854 | echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6 |
d08b457b | 6855 | echo "configure:6856: checking for --enable-msgdlg" >&5 |
10f2d63a | 6856 | no_cache=0 |
1e6feb95 VZ |
6857 | # Check whether --enable-msgdlg or --disable-msgdlg was given. |
6858 | if test "${enable_msgdlg+set}" = set; then | |
6859 | enableval="$enable_msgdlg" | |
698dcdb6 | 6860 | |
10f2d63a | 6861 | if test "$enableval" = yes; then |
1e6feb95 | 6862 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' |
10f2d63a | 6863 | else |
1e6feb95 | 6864 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' |
10f2d63a | 6865 | fi |
698dcdb6 | 6866 | |
10f2d63a | 6867 | else |
698dcdb6 | 6868 | |
1e6feb95 | 6869 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
6870 | if test "x$LINE" != x ; then |
6871 | eval "DEFAULT_$LINE" | |
6872 | else | |
6873 | no_cache=1 | |
6874 | fi | |
6875 | ||
1e6feb95 | 6876 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG |
698dcdb6 VZ |
6877 | |
6878 | fi | |
10f2d63a VZ |
6879 | |
6880 | ||
1e6feb95 | 6881 | eval "$ac_cv_use_msgdlg" |
10f2d63a | 6882 | if test "$no_cache" != 1; then |
1e6feb95 | 6883 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6884 | fi |
6885 | ||
1e6feb95 | 6886 | if test "$wxUSE_MSGDLG" = yes; then |
698dcdb6 | 6887 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6888 | else |
698dcdb6 | 6889 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6890 | fi |
698dcdb6 | 6891 | |
10f2d63a | 6892 | |
1e6feb95 | 6893 | echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6 |
d08b457b | 6894 | echo "configure:6895: checking for --enable-numberdlg" >&5 |
10f2d63a | 6895 | no_cache=0 |
1e6feb95 VZ |
6896 | # Check whether --enable-numberdlg or --disable-numberdlg was given. |
6897 | if test "${enable_numberdlg+set}" = set; then | |
6898 | enableval="$enable_numberdlg" | |
698dcdb6 | 6899 | |
10f2d63a | 6900 | if test "$enableval" = yes; then |
1e6feb95 | 6901 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' |
10f2d63a | 6902 | else |
1e6feb95 | 6903 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' |
10f2d63a | 6904 | fi |
698dcdb6 | 6905 | |
10f2d63a | 6906 | else |
698dcdb6 | 6907 | |
1e6feb95 | 6908 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
6909 | if test "x$LINE" != x ; then |
6910 | eval "DEFAULT_$LINE" | |
6911 | else | |
6912 | no_cache=1 | |
6913 | fi | |
6914 | ||
1e6feb95 | 6915 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG |
698dcdb6 VZ |
6916 | |
6917 | fi | |
10f2d63a VZ |
6918 | |
6919 | ||
1e6feb95 | 6920 | eval "$ac_cv_use_numberdlg" |
10f2d63a | 6921 | if test "$no_cache" != 1; then |
1e6feb95 | 6922 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6923 | fi |
6924 | ||
1e6feb95 | 6925 | if test "$wxUSE_NUMBERDLG" = yes; then |
698dcdb6 | 6926 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6927 | else |
698dcdb6 | 6928 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6929 | fi |
698dcdb6 | 6930 | |
10f2d63a | 6931 | |
cbca9943 | 6932 | echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6 |
d08b457b | 6933 | echo "configure:6934: checking for --enable-splash" >&5 |
cbca9943 VZ |
6934 | no_cache=0 |
6935 | # Check whether --enable-splash or --disable-splash was given. | |
6936 | if test "${enable_splash+set}" = set; then | |
6937 | enableval="$enable_splash" | |
6938 | ||
6939 | if test "$enableval" = yes; then | |
6940 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
6941 | else | |
6942 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
6943 | fi | |
6944 | ||
6945 | else | |
6946 | ||
6947 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` | |
6948 | if test "x$LINE" != x ; then | |
6949 | eval "DEFAULT_$LINE" | |
6950 | else | |
6951 | no_cache=1 | |
6952 | fi | |
6953 | ||
6954 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
6955 | ||
6956 | fi | |
6957 | ||
6958 | ||
6959 | eval "$ac_cv_use_splash" | |
6960 | if test "$no_cache" != 1; then | |
6961 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
6962 | fi | |
6963 | ||
6964 | if test "$wxUSE_SPLASH" = yes; then | |
6965 | echo "$ac_t""yes" 1>&6 | |
6966 | else | |
6967 | echo "$ac_t""no" 1>&6 | |
6968 | fi | |
6969 | ||
6970 | ||
698dcdb6 | 6971 | echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6 |
d08b457b | 6972 | echo "configure:6973: checking for --enable-textdlg" >&5 |
10f2d63a VZ |
6973 | no_cache=0 |
6974 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
6975 | if test "${enable_textdlg+set}" = set; then | |
6976 | enableval="$enable_textdlg" | |
698dcdb6 | 6977 | |
10f2d63a VZ |
6978 | if test "$enableval" = yes; then |
6979 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
6980 | else | |
6981 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
6982 | fi | |
698dcdb6 | 6983 | |
10f2d63a | 6984 | else |
698dcdb6 | 6985 | |
10f2d63a VZ |
6986 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` |
6987 | if test "x$LINE" != x ; then | |
6988 | eval "DEFAULT_$LINE" | |
6989 | else | |
6990 | no_cache=1 | |
6991 | fi | |
6992 | ||
6993 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
698dcdb6 VZ |
6994 | |
6995 | fi | |
10f2d63a VZ |
6996 | |
6997 | ||
6998 | eval "$ac_cv_use_textdlg" | |
6999 | if test "$no_cache" != 1; then | |
7000 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
7001 | fi | |
7002 | ||
7003 | if test "$wxUSE_TEXTDLG" = yes; then | |
698dcdb6 | 7004 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7005 | else |
698dcdb6 | 7006 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7007 | fi |
698dcdb6 | 7008 | |
10f2d63a | 7009 | |
698dcdb6 | 7010 | echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6 |
d08b457b | 7011 | echo "configure:7012: checking for --enable-tipdlg" >&5 |
10f2d63a VZ |
7012 | no_cache=0 |
7013 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
7014 | if test "${enable_tipdlg+set}" = set; then | |
7015 | enableval="$enable_tipdlg" | |
698dcdb6 | 7016 | |
10f2d63a VZ |
7017 | if test "$enableval" = yes; then |
7018 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
7019 | else | |
7020 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
7021 | fi | |
698dcdb6 | 7022 | |
10f2d63a | 7023 | else |
698dcdb6 | 7024 | |
10f2d63a VZ |
7025 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` |
7026 | if test "x$LINE" != x ; then | |
7027 | eval "DEFAULT_$LINE" | |
7028 | else | |
7029 | no_cache=1 | |
7030 | fi | |
7031 | ||
7032 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
698dcdb6 VZ |
7033 | |
7034 | fi | |
10f2d63a VZ |
7035 | |
7036 | ||
7037 | eval "$ac_cv_use_tipdlg" | |
7038 | if test "$no_cache" != 1; then | |
7039 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
7040 | fi | |
7041 | ||
7042 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
698dcdb6 | 7043 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7044 | else |
698dcdb6 | 7045 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7046 | fi |
698dcdb6 | 7047 | |
10f2d63a | 7048 | |
698dcdb6 | 7049 | echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6 |
d08b457b | 7050 | echo "configure:7051: checking for --enable-progressdlg" >&5 |
10f2d63a VZ |
7051 | no_cache=0 |
7052 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
7053 | if test "${enable_progressdlg+set}" = set; then | |
7054 | enableval="$enable_progressdlg" | |
698dcdb6 | 7055 | |
10f2d63a VZ |
7056 | if test "$enableval" = yes; then |
7057 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
7058 | else | |
7059 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
7060 | fi | |
698dcdb6 | 7061 | |
10f2d63a | 7062 | else |
698dcdb6 | 7063 | |
10f2d63a VZ |
7064 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` |
7065 | if test "x$LINE" != x ; then | |
7066 | eval "DEFAULT_$LINE" | |
7067 | else | |
7068 | no_cache=1 | |
7069 | fi | |
7070 | ||
7071 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
698dcdb6 VZ |
7072 | |
7073 | fi | |
10f2d63a VZ |
7074 | |
7075 | ||
7076 | eval "$ac_cv_use_progressdlg" | |
7077 | if test "$no_cache" != 1; then | |
7078 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
7079 | fi | |
7080 | ||
7081 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
698dcdb6 | 7082 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7083 | else |
698dcdb6 | 7084 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7085 | fi |
698dcdb6 | 7086 | |
10f2d63a | 7087 | |
b1f5d087 | 7088 | echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6 |
d08b457b | 7089 | echo "configure:7090: checking for --enable-wizarddlg" >&5 |
b1f5d087 VZ |
7090 | no_cache=0 |
7091 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
7092 | if test "${enable_wizarddlg+set}" = set; then | |
7093 | enableval="$enable_wizarddlg" | |
7094 | ||
7095 | if test "$enableval" = yes; then | |
7096 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
7097 | else | |
7098 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
7099 | fi | |
7100 | ||
7101 | else | |
7102 | ||
7103 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` | |
7104 | if test "x$LINE" != x ; then | |
7105 | eval "DEFAULT_$LINE" | |
7106 | else | |
7107 | no_cache=1 | |
7108 | fi | |
7109 | ||
7110 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
7111 | ||
7112 | fi | |
7113 | ||
7114 | ||
7115 | eval "$ac_cv_use_wizarddlg" | |
7116 | if test "$no_cache" != 1; then | |
7117 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
7118 | fi | |
7119 | ||
7120 | if test "$wxUSE_WIZARDDLG" = yes; then | |
7121 | echo "$ac_t""yes" 1>&6 | |
7122 | else | |
7123 | echo "$ac_t""no" 1>&6 | |
7124 | fi | |
7125 | ||
7126 | ||
7127 | ||
7128 | ||
1e6feb95 | 7129 | echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6 |
d08b457b | 7130 | echo "configure:7131: checking for --enable-menus" >&5 |
1e6feb95 VZ |
7131 | no_cache=0 |
7132 | # Check whether --enable-menus or --disable-menus was given. | |
7133 | if test "${enable_menus+set}" = set; then | |
7134 | enableval="$enable_menus" | |
7135 | ||
7136 | if test "$enableval" = yes; then | |
7137 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
7138 | else | |
7139 | ac_cv_use_menus='wxUSE_MENUS=no' | |
7140 | fi | |
7141 | ||
7142 | else | |
7143 | ||
7144 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
7145 | if test "x$LINE" != x ; then | |
7146 | eval "DEFAULT_$LINE" | |
7147 | else | |
7148 | no_cache=1 | |
7149 | fi | |
7150 | ||
7151 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
7152 | ||
7153 | fi | |
7154 | ||
7155 | ||
7156 | eval "$ac_cv_use_menus" | |
7157 | if test "$no_cache" != 1; then | |
7158 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
7159 | fi | |
7160 | ||
7161 | if test "$wxUSE_MENUS" = yes; then | |
7162 | echo "$ac_t""yes" 1>&6 | |
7163 | else | |
7164 | echo "$ac_t""no" 1>&6 | |
7165 | fi | |
7166 | ||
7167 | ||
698dcdb6 | 7168 | echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6 |
d08b457b | 7169 | echo "configure:7170: checking for --enable-miniframe" >&5 |
10f2d63a VZ |
7170 | no_cache=0 |
7171 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
7172 | if test "${enable_miniframe+set}" = set; then | |
7173 | enableval="$enable_miniframe" | |
698dcdb6 | 7174 | |
10f2d63a VZ |
7175 | if test "$enableval" = yes; then |
7176 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
7177 | else | |
7178 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
7179 | fi | |
698dcdb6 | 7180 | |
10f2d63a | 7181 | else |
698dcdb6 | 7182 | |
10f2d63a VZ |
7183 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` |
7184 | if test "x$LINE" != x ; then | |
7185 | eval "DEFAULT_$LINE" | |
7186 | else | |
7187 | no_cache=1 | |
7188 | fi | |
7189 | ||
7190 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
698dcdb6 VZ |
7191 | |
7192 | fi | |
10f2d63a VZ |
7193 | |
7194 | ||
7195 | eval "$ac_cv_use_miniframe" | |
7196 | if test "$no_cache" != 1; then | |
7197 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
7198 | fi | |
7199 | ||
7200 | if test "$wxUSE_MINIFRAME" = yes; then | |
698dcdb6 | 7201 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7202 | else |
698dcdb6 | 7203 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7204 | fi |
698dcdb6 | 7205 | |
10f2d63a | 7206 | |
698dcdb6 | 7207 | echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6 |
d08b457b | 7208 | echo "configure:7209: checking for --enable-tooltips" >&5 |
10f2d63a VZ |
7209 | no_cache=0 |
7210 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
7211 | if test "${enable_tooltips+set}" = set; then | |
7212 | enableval="$enable_tooltips" | |
698dcdb6 | 7213 | |
10f2d63a VZ |
7214 | if test "$enableval" = yes; then |
7215 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
7216 | else | |
7217 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
7218 | fi | |
698dcdb6 | 7219 | |
10f2d63a | 7220 | else |
698dcdb6 | 7221 | |
10f2d63a VZ |
7222 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` |
7223 | if test "x$LINE" != x ; then | |
7224 | eval "DEFAULT_$LINE" | |
7225 | else | |
7226 | no_cache=1 | |
7227 | fi | |
7228 | ||
7229 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
698dcdb6 VZ |
7230 | |
7231 | fi | |
10f2d63a VZ |
7232 | |
7233 | ||
7234 | eval "$ac_cv_use_tooltips" | |
7235 | if test "$no_cache" != 1; then | |
7236 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
7237 | fi | |
7238 | ||
7239 | if test "$wxUSE_TOOLTIPS" = yes; then | |
698dcdb6 | 7240 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7241 | else |
698dcdb6 | 7242 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7243 | fi |
698dcdb6 | 7244 | |
10f2d63a | 7245 | |
698dcdb6 | 7246 | echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6 |
d08b457b | 7247 | echo "configure:7248: checking for --enable-splines" >&5 |
10f2d63a VZ |
7248 | no_cache=0 |
7249 | # Check whether --enable-splines or --disable-splines was given. | |
7250 | if test "${enable_splines+set}" = set; then | |
7251 | enableval="$enable_splines" | |
698dcdb6 | 7252 | |
10f2d63a VZ |
7253 | if test "$enableval" = yes; then |
7254 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
7255 | else | |
7256 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
7257 | fi | |
698dcdb6 | 7258 | |
10f2d63a | 7259 | else |
698dcdb6 | 7260 | |
10f2d63a VZ |
7261 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` |
7262 | if test "x$LINE" != x ; then | |
7263 | eval "DEFAULT_$LINE" | |
7264 | else | |
7265 | no_cache=1 | |
7266 | fi | |
7267 | ||
7268 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
698dcdb6 VZ |
7269 | |
7270 | fi | |
10f2d63a VZ |
7271 | |
7272 | ||
7273 | eval "$ac_cv_use_splines" | |
7274 | if test "$no_cache" != 1; then | |
7275 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
7276 | fi | |
7277 | ||
7278 | if test "$wxUSE_SPLINES" = yes; then | |
698dcdb6 | 7279 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7280 | else |
698dcdb6 | 7281 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7282 | fi |
698dcdb6 | 7283 | |
10f2d63a | 7284 | |
698dcdb6 | 7285 | echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6 |
d08b457b | 7286 | echo "configure:7287: checking for --enable-validators" >&5 |
10f2d63a VZ |
7287 | no_cache=0 |
7288 | # Check whether --enable-validators or --disable-validators was given. | |
7289 | if test "${enable_validators+set}" = set; then | |
7290 | enableval="$enable_validators" | |
698dcdb6 | 7291 | |
10f2d63a VZ |
7292 | if test "$enableval" = yes; then |
7293 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
7294 | else | |
7295 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
7296 | fi | |
698dcdb6 | 7297 | |
10f2d63a | 7298 | else |
698dcdb6 | 7299 | |
10f2d63a VZ |
7300 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` |
7301 | if test "x$LINE" != x ; then | |
7302 | eval "DEFAULT_$LINE" | |
7303 | else | |
7304 | no_cache=1 | |
7305 | fi | |
7306 | ||
7307 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
698dcdb6 VZ |
7308 | |
7309 | fi | |
10f2d63a VZ |
7310 | |
7311 | ||
7312 | eval "$ac_cv_use_validators" | |
7313 | if test "$no_cache" != 1; then | |
7314 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
7315 | fi | |
7316 | ||
7317 | if test "$wxUSE_VALIDATORS" = yes; then | |
698dcdb6 | 7318 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7319 | else |
698dcdb6 | 7320 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7321 | fi |
698dcdb6 | 7322 | |
10f2d63a | 7323 | |
698dcdb6 | 7324 | echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6 |
d08b457b | 7325 | echo "configure:7326: checking for --enable-busyinfo" >&5 |
10f2d63a VZ |
7326 | no_cache=0 |
7327 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
7328 | if test "${enable_busyinfo+set}" = set; then | |
7329 | enableval="$enable_busyinfo" | |
698dcdb6 | 7330 | |
10f2d63a VZ |
7331 | if test "$enableval" = yes; then |
7332 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
7333 | else | |
7334 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
7335 | fi | |
698dcdb6 | 7336 | |
10f2d63a | 7337 | else |
698dcdb6 | 7338 | |
10f2d63a VZ |
7339 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` |
7340 | if test "x$LINE" != x ; then | |
7341 | eval "DEFAULT_$LINE" | |
7342 | else | |
7343 | no_cache=1 | |
7344 | fi | |
7345 | ||
7346 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
698dcdb6 VZ |
7347 | |
7348 | fi | |
10f2d63a VZ |
7349 | |
7350 | ||
7351 | eval "$ac_cv_use_busyinfo" | |
7352 | if test "$no_cache" != 1; then | |
7353 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
7354 | fi | |
7355 | ||
7356 | if test "$wxUSE_BUSYINFO" = yes; then | |
698dcdb6 | 7357 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7358 | else |
698dcdb6 | 7359 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7360 | fi |
698dcdb6 | 7361 | |
10f2d63a | 7362 | |
698dcdb6 | 7363 | echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6 |
d08b457b | 7364 | echo "configure:7365: checking for --enable-joystick" >&5 |
f6bcfd97 BP |
7365 | no_cache=0 |
7366 | # Check whether --enable-joystick or --disable-joystick was given. | |
7367 | if test "${enable_joystick+set}" = set; then | |
7368 | enableval="$enable_joystick" | |
698dcdb6 | 7369 | |
f6bcfd97 BP |
7370 | if test "$enableval" = yes; then |
7371 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
7372 | else | |
7373 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
7374 | fi | |
698dcdb6 | 7375 | |
f6bcfd97 | 7376 | else |
698dcdb6 | 7377 | |
f6bcfd97 BP |
7378 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` |
7379 | if test "x$LINE" != x ; then | |
7380 | eval "DEFAULT_$LINE" | |
7381 | else | |
7382 | no_cache=1 | |
7383 | fi | |
7384 | ||
7385 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
698dcdb6 VZ |
7386 | |
7387 | fi | |
f6bcfd97 BP |
7388 | |
7389 | ||
7390 | eval "$ac_cv_use_joystick" | |
7391 | if test "$no_cache" != 1; then | |
7392 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
7393 | fi | |
7394 | ||
7395 | if test "$wxUSE_JOYSTICK" = yes; then | |
698dcdb6 | 7396 | echo "$ac_t""yes" 1>&6 |
f6bcfd97 | 7397 | else |
698dcdb6 | 7398 | echo "$ac_t""no" 1>&6 |
f6bcfd97 | 7399 | fi |
698dcdb6 VZ |
7400 | |
7401 | ||
1e6feb95 | 7402 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
d08b457b | 7403 | echo "configure:7404: checking for --enable-metafile" >&5 |
1e6feb95 VZ |
7404 | no_cache=0 |
7405 | # Check whether --enable-metafile or --disable-metafile was given. | |
7406 | if test "${enable_metafile+set}" = set; then | |
7407 | enableval="$enable_metafile" | |
7408 | ||
7409 | if test "$enableval" = yes; then | |
7410 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
7411 | else | |
7412 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
7413 | fi | |
7414 | ||
7415 | else | |
7416 | ||
7417 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
7418 | if test "x$LINE" != x ; then | |
7419 | eval "DEFAULT_$LINE" | |
7420 | else | |
7421 | no_cache=1 | |
7422 | fi | |
7423 | ||
7424 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
7425 | ||
7426 | fi | |
7427 | ||
7428 | ||
7429 | eval "$ac_cv_use_metafile" | |
7430 | if test "$no_cache" != 1; then | |
7431 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
7432 | fi | |
7433 | ||
7434 | if test "$wxUSE_METAFILE" = yes; then | |
7435 | echo "$ac_t""yes" 1>&6 | |
7436 | else | |
7437 | echo "$ac_t""no" 1>&6 | |
7438 | fi | |
7439 | ||
7440 | ||
24fd6d87 | 7441 | echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6 |
d08b457b | 7442 | echo "configure:7443: checking for --enable-dragimage" >&5 |
24fd6d87 VZ |
7443 | no_cache=0 |
7444 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
7445 | if test "${enable_dragimage+set}" = set; then | |
7446 | enableval="$enable_dragimage" | |
7447 | ||
7448 | if test "$enableval" = yes; then | |
7449 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
7450 | else | |
7451 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
7452 | fi | |
7453 | ||
7454 | else | |
7455 | ||
7456 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` | |
7457 | if test "x$LINE" != x ; then | |
7458 | eval "DEFAULT_$LINE" | |
7459 | else | |
7460 | no_cache=1 | |
7461 | fi | |
7462 | ||
7463 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
7464 | ||
7465 | fi | |
7466 | ||
7467 | ||
7468 | eval "$ac_cv_use_dragimage" | |
7469 | if test "$no_cache" != 1; then | |
7470 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
7471 | fi | |
7472 | ||
7473 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
7474 | echo "$ac_t""yes" 1>&6 | |
7475 | else | |
7476 | echo "$ac_t""no" 1>&6 | |
7477 | fi | |
7478 | ||
7479 | ||
10f2d63a | 7480 | |
698dcdb6 | 7481 | |
edae8572 | 7482 | echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6 |
d08b457b | 7483 | echo "configure:7484: checking for --enable-palette" >&5 |
edae8572 VZ |
7484 | no_cache=0 |
7485 | # Check whether --enable-palette or --disable-palette was given. | |
7486 | if test "${enable_palette+set}" = set; then | |
7487 | enableval="$enable_palette" | |
7488 | ||
7489 | if test "$enableval" = yes; then | |
7490 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
7491 | else | |
7492 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
7493 | fi | |
7494 | ||
7495 | else | |
7496 | ||
7497 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` | |
7498 | if test "x$LINE" != x ; then | |
7499 | eval "DEFAULT_$LINE" | |
7500 | else | |
7501 | no_cache=1 | |
7502 | fi | |
7503 | ||
7504 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
7505 | ||
7506 | fi | |
7507 | ||
7508 | ||
7509 | eval "$ac_cv_use_palette" | |
7510 | if test "$no_cache" != 1; then | |
7511 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
7512 | fi | |
7513 | ||
7514 | if test "$wxUSE_PALETTE" = yes; then | |
7515 | echo "$ac_t""yes" 1>&6 | |
7516 | else | |
7517 | echo "$ac_t""no" 1>&6 | |
7518 | fi | |
7519 | ||
7520 | ||
698dcdb6 | 7521 | echo $ac_n "checking for --enable-image""... $ac_c" 1>&6 |
d08b457b | 7522 | echo "configure:7523: checking for --enable-image" >&5 |
0046ff7c VS |
7523 | no_cache=0 |
7524 | # Check whether --enable-image or --disable-image was given. | |
7525 | if test "${enable_image+set}" = set; then | |
7526 | enableval="$enable_image" | |
698dcdb6 | 7527 | |
0046ff7c VS |
7528 | if test "$enableval" = yes; then |
7529 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
7530 | else | |
7531 | ac_cv_use_image='wxUSE_IMAGE=no' | |
7532 | fi | |
698dcdb6 | 7533 | |
0046ff7c | 7534 | else |
698dcdb6 | 7535 | |
0046ff7c VS |
7536 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` |
7537 | if test "x$LINE" != x ; then | |
7538 | eval "DEFAULT_$LINE" | |
7539 | else | |
7540 | no_cache=1 | |
7541 | fi | |
7542 | ||
7543 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
698dcdb6 VZ |
7544 | |
7545 | fi | |
0046ff7c VS |
7546 | |
7547 | ||
7548 | eval "$ac_cv_use_image" | |
7549 | if test "$no_cache" != 1; then | |
7550 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
7551 | fi | |
7552 | ||
7553 | if test "$wxUSE_IMAGE" = yes; then | |
698dcdb6 | 7554 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 7555 | else |
698dcdb6 | 7556 | echo "$ac_t""no" 1>&6 |
0046ff7c | 7557 | fi |
698dcdb6 | 7558 | |
0046ff7c | 7559 | |
698dcdb6 | 7560 | echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6 |
d08b457b | 7561 | echo "configure:7562: checking for --enable-gif" >&5 |
10f2d63a VZ |
7562 | no_cache=0 |
7563 | # Check whether --enable-gif or --disable-gif was given. | |
7564 | if test "${enable_gif+set}" = set; then | |
7565 | enableval="$enable_gif" | |
698dcdb6 | 7566 | |
10f2d63a VZ |
7567 | if test "$enableval" = yes; then |
7568 | ac_cv_use_gif='wxUSE_GIF=yes' | |
7569 | else | |
7570 | ac_cv_use_gif='wxUSE_GIF=no' | |
7571 | fi | |
698dcdb6 | 7572 | |
10f2d63a | 7573 | else |
698dcdb6 | 7574 | |
10f2d63a VZ |
7575 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` |
7576 | if test "x$LINE" != x ; then | |
7577 | eval "DEFAULT_$LINE" | |
7578 | else | |
7579 | no_cache=1 | |
7580 | fi | |
7581 | ||
7582 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
698dcdb6 VZ |
7583 | |
7584 | fi | |
10f2d63a VZ |
7585 | |
7586 | ||
7587 | eval "$ac_cv_use_gif" | |
7588 | if test "$no_cache" != 1; then | |
7589 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
7590 | fi | |
7591 | ||
7592 | if test "$wxUSE_GIF" = yes; then | |
698dcdb6 | 7593 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7594 | else |
698dcdb6 | 7595 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7596 | fi |
698dcdb6 | 7597 | |
10f2d63a | 7598 | |
698dcdb6 | 7599 | echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6 |
d08b457b | 7600 | echo "configure:7601: checking for --enable-pcx" >&5 |
10f2d63a VZ |
7601 | no_cache=0 |
7602 | # Check whether --enable-pcx or --disable-pcx was given. | |
7603 | if test "${enable_pcx+set}" = set; then | |
7604 | enableval="$enable_pcx" | |
698dcdb6 | 7605 | |
10f2d63a VZ |
7606 | if test "$enableval" = yes; then |
7607 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
7608 | else | |
7609 | ac_cv_use_pcx='wxUSE_PCX=no' | |
7610 | fi | |
698dcdb6 | 7611 | |
10f2d63a | 7612 | else |
698dcdb6 | 7613 | |
10f2d63a VZ |
7614 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` |
7615 | if test "x$LINE" != x ; then | |
7616 | eval "DEFAULT_$LINE" | |
7617 | else | |
7618 | no_cache=1 | |
7619 | fi | |
7620 | ||
7621 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
698dcdb6 VZ |
7622 | |
7623 | fi | |
10f2d63a VZ |
7624 | |
7625 | ||
7626 | eval "$ac_cv_use_pcx" | |
7627 | if test "$no_cache" != 1; then | |
7628 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
7629 | fi | |
7630 | ||
7631 | if test "$wxUSE_PCX" = yes; then | |
698dcdb6 | 7632 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7633 | else |
698dcdb6 | 7634 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7635 | fi |
698dcdb6 | 7636 | |
10f2d63a | 7637 | |
698dcdb6 | 7638 | echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6 |
d08b457b | 7639 | echo "configure:7640: checking for --enable-pnm" >&5 |
10f2d63a VZ |
7640 | no_cache=0 |
7641 | # Check whether --enable-pnm or --disable-pnm was given. | |
7642 | if test "${enable_pnm+set}" = set; then | |
7643 | enableval="$enable_pnm" | |
698dcdb6 | 7644 | |
10f2d63a VZ |
7645 | if test "$enableval" = yes; then |
7646 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
7647 | else | |
7648 | ac_cv_use_pnm='wxUSE_PNM=no' | |
7649 | fi | |
698dcdb6 | 7650 | |
10f2d63a | 7651 | else |
698dcdb6 | 7652 | |
10f2d63a VZ |
7653 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` |
7654 | if test "x$LINE" != x ; then | |
7655 | eval "DEFAULT_$LINE" | |
7656 | else | |
7657 | no_cache=1 | |
7658 | fi | |
7659 | ||
7660 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
698dcdb6 VZ |
7661 | |
7662 | fi | |
10f2d63a VZ |
7663 | |
7664 | ||
7665 | eval "$ac_cv_use_pnm" | |
7666 | if test "$no_cache" != 1; then | |
7667 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
7668 | fi | |
7669 | ||
7670 | if test "$wxUSE_PNM" = yes; then | |
698dcdb6 | 7671 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7672 | else |
698dcdb6 | 7673 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7674 | fi |
698dcdb6 | 7675 | |
10f2d63a | 7676 | |
698dcdb6 | 7677 | echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6 |
d08b457b | 7678 | echo "configure:7679: checking for --enable-pnm" >&5 |
0046ff7c VS |
7679 | no_cache=0 |
7680 | # Check whether --enable-pnm or --disable-pnm was given. | |
7681 | if test "${enable_pnm+set}" = set; then | |
7682 | enableval="$enable_pnm" | |
698dcdb6 | 7683 | |
0046ff7c VS |
7684 | if test "$enableval" = yes; then |
7685 | ac_cv_use_pnm='wxUSE_XPM=yes' | |
7686 | else | |
7687 | ac_cv_use_pnm='wxUSE_XPM=no' | |
7688 | fi | |
698dcdb6 | 7689 | |
0046ff7c | 7690 | else |
698dcdb6 | 7691 | |
0046ff7c VS |
7692 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` |
7693 | if test "x$LINE" != x ; then | |
7694 | eval "DEFAULT_$LINE" | |
7695 | else | |
7696 | no_cache=1 | |
7697 | fi | |
7698 | ||
7699 | ac_cv_use_pnm='wxUSE_XPM='$DEFAULT_wxUSE_XPM | |
698dcdb6 VZ |
7700 | |
7701 | fi | |
0046ff7c VS |
7702 | |
7703 | ||
7704 | eval "$ac_cv_use_pnm" | |
7705 | if test "$no_cache" != 1; then | |
7706 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
7707 | fi | |
7708 | ||
7709 | if test "$wxUSE_XPM" = yes; then | |
698dcdb6 | 7710 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 7711 | else |
698dcdb6 | 7712 | echo "$ac_t""no" 1>&6 |
0046ff7c | 7713 | fi |
698dcdb6 | 7714 | |
0046ff7c | 7715 | |
b12915c1 VZ |
7716 | fi |
7717 | ||
698dcdb6 | 7718 | |
10f2d63a VZ |
7719 | echo "saving argument cache $wx_arg_cache_file" |
7720 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
698dcdb6 | 7721 | |
10f2d63a | 7722 | |
698dcdb6 VZ |
7723 | |
7724 | echo $ac_n "checking for toolkit""... $ac_c" 1>&6 | |
d08b457b | 7725 | echo "configure:7726: checking for toolkit" >&5 |
10f2d63a VZ |
7726 | |
7727 | if test "$wxUSE_GUI" = "yes"; then | |
7728 | ||
3a922bb4 RL |
7729 | if test "$USE_BEOS" = 1; then |
7730 | { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; } | |
7731 | fi | |
b12915c1 | 7732 | |
3a922bb4 RL |
7733 | if test "$TOOLKIT_GIVEN" = 1; then |
7734 | for toolkit in `echo $ALL_TOOLKITS`; do | |
7735 | var=wxUSE_$toolkit | |
7736 | eval "value=\$${var}" | |
7737 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
7738 | done | |
10f2d63a | 7739 | else |
3a922bb4 RL |
7740 | for toolkit in `echo $ALL_TOOLKITS`; do |
7741 | if test "$has_toolkit_in_cache" != 1; then | |
7742 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
7743 | else | |
7744 | var=DEFAULT_wxUSE_$toolkit | |
7745 | fi | |
7746 | eval "wxUSE_$toolkit=\$${var}" | |
7747 | done | |
10f2d63a | 7748 | fi |
10f2d63a | 7749 | |
3a922bb4 RL |
7750 | NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \ |
7751 | + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0} \ | |
7752 | + ${wxUSE_MGL:-0}` | |
10f2d63a | 7753 | |
3a922bb4 RL |
7754 | case "${host}" in |
7755 | *-pc-os2_emx ) | |
7756 | # PATH_IFS is autodetected by OS/2's configure (usually ';') | |
7757 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
7758 | LEX_STEM="lexyy" | |
7759 | ;; | |
7760 | *) | |
7761 | PATH_IFS=':' | |
7762 | LEX_STEM="lex.yy" | |
7763 | ;; | |
7764 | esac | |
10f2d63a | 7765 | |
3a922bb4 RL |
7766 | case "$NUM_TOOLKITS" in |
7767 | 1) | |
7768 | ;; | |
7769 | 0) | |
7770 | { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; } | |
7771 | ;; | |
7772 | *) | |
7773 | { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; } | |
7774 | esac | |
10f2d63a | 7775 | |
3a922bb4 RL |
7776 | for toolkit in `echo $ALL_TOOLKITS`; do |
7777 | var=wxUSE_$toolkit | |
7778 | eval "value=\$${var}" | |
7779 | if test "x$value" != x; then | |
7780 | cache_var=CACHE_$toolkit | |
7781 | eval "cache=\$${cache_var}" | |
7782 | if test "$cache" = 1; then | |
7783 | echo "$var=$value" >> ${wx_arg_cache_file} | |
7784 | fi | |
7785 | if test "$value" = 1; then | |
7786 | toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]` | |
7787 | echo "$ac_t""$toolkit_echo" 1>&6 | |
7788 | fi | |
7789 | fi | |
7790 | done | |
10f2d63a | 7791 | else |
cf27ef00 | 7792 | PATH_IFS=':' |
3a922bb4 | 7793 | echo "$ac_t""base ($host_alias hosted) only" 1>&6 |
10f2d63a VZ |
7794 | fi |
7795 | ||
698dcdb6 VZ |
7796 | |
7797 | cat > confcache <<\EOF | |
10f2d63a VZ |
7798 | # This file is a shell script that caches the results of configure |
7799 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
7800 | # scripts and configure runs. It is not useful on other systems. |
7801 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 7802 | # |
698dcdb6 VZ |
7803 | # By default, configure uses ./config.cache as the cache file, |
7804 | # creating it if it does not exist already. You can give configure | |
7805 | # the --cache-file=FILE option to use a different cache file; that is | |
7806 | # what configure does when it calls configure scripts in | |
7807 | # subdirectories, so they share the cache. | |
7808 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
7809 | # config.status only pays attention to the cache file if you give it the | |
7810 | # --recheck option to rerun configure. | |
10f2d63a | 7811 | # |
698dcdb6 | 7812 | EOF |
10f2d63a VZ |
7813 | # The following way of writing the cache mishandles newlines in values, |
7814 | # but we know of no workaround that is simple, portable, and efficient. | |
7815 | # So, don't put newlines in cache variables' values. | |
7816 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
7817 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
7818 | (set) 2>&1 | |
7819 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
7820 | *ac_space=\ *) | |
7821 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
7822 | # turns \\\\ into \\, and sed turns \\ into \). | |
7823 | sed -n \ | |
7824 | -e "s/'/'\\\\''/g" \ | |
7825 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
7826 | ;; | |
7827 | *) | |
7828 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7829 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
7830 | ;; | |
7831 | esac >> confcache | |
7832 | if cmp -s $cache_file confcache; then | |
7833 | : | |
7834 | else | |
10f2d63a | 7835 | if test -w $cache_file; then |
698dcdb6 VZ |
7836 | echo "updating cache $cache_file" |
7837 | cat confcache > $cache_file | |
10f2d63a VZ |
7838 | else |
7839 | echo "not updating unwritable cache $cache_file" | |
7840 | fi | |
7841 | fi | |
7842 | rm -f confcache | |
7843 | ||
698dcdb6 | 7844 | |
e59890c3 | 7845 | if test "$build" != "$host" ; then |
3a922bb4 RL |
7846 | if test "$USE_WIN32" = 1 ; then |
7847 | CC=$host_alias-gcc | |
7848 | CXX=$host_alias-c++ | |
7849 | AR=$host_alias-ar | |
7850 | RANLIB=$host_alias-ranlib | |
7851 | DLLTOOL=$host_alias-dlltool | |
7852 | RESCOMP=$host_alias-windres | |
7853 | LD=$host_alias-ld | |
7854 | NM=$host_alias-nm | |
7855 | STRIP=$host_alias-strip | |
7856 | else | |
7857 | { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; } | |
7858 | fi | |
10f2d63a VZ |
7859 | fi |
7860 | ||
698dcdb6 | 7861 | # Extract the first word of "gcc", so it can be a program name with args. |
1e487827 | 7862 | set dummy gcc; ac_word=$2 |
698dcdb6 | 7863 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
d08b457b | 7864 | echo "configure:7865: checking for $ac_word" >&5 |
698dcdb6 VZ |
7865 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
7866 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6232543b VS |
7867 | else |
7868 | if test -n "$CC"; then | |
7869 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10f2d63a | 7870 | else |
698dcdb6 VZ |
7871 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
7872 | ac_dummy="$PATH" | |
7873 | for ac_dir in $ac_dummy; do | |
7874 | test -z "$ac_dir" && ac_dir=. | |
7875 | if test -f $ac_dir/$ac_word; then | |
7876 | ac_cv_prog_CC="gcc" | |
7877 | break | |
7878 | fi | |
7879 | done | |
7880 | IFS="$ac_save_ifs" | |
10f2d63a | 7881 | fi |
6232543b | 7882 | fi |
698dcdb6 | 7883 | CC="$ac_cv_prog_CC" |
6232543b | 7884 | if test -n "$CC"; then |
698dcdb6 | 7885 | echo "$ac_t""$CC" 1>&6 |
1e487827 | 7886 | else |
698dcdb6 | 7887 | echo "$ac_t""no" 1>&6 |
1e487827 | 7888 | fi |
6232543b | 7889 | |
1e487827 VS |
7890 | if test -z "$CC"; then |
7891 | # Extract the first word of "cc", so it can be a program name with args. | |
7892 | set dummy cc; ac_word=$2 | |
698dcdb6 | 7893 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
d08b457b | 7894 | echo "configure:7895: checking for $ac_word" >&5 |
698dcdb6 VZ |
7895 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
7896 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 VS |
7897 | else |
7898 | if test -n "$CC"; then | |
7899 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
7900 | else | |
698dcdb6 | 7901 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1e487827 | 7902 | ac_prog_rejected=no |
698dcdb6 VZ |
7903 | ac_dummy="$PATH" |
7904 | for ac_dir in $ac_dummy; do | |
7905 | test -z "$ac_dir" && ac_dir=. | |
7906 | if test -f $ac_dir/$ac_word; then | |
7907 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
7908 | ac_prog_rejected=yes | |
7909 | continue | |
7910 | fi | |
7911 | ac_cv_prog_CC="cc" | |
7912 | break | |
7913 | fi | |
7914 | done | |
7915 | IFS="$ac_save_ifs" | |
1e487827 VS |
7916 | if test $ac_prog_rejected = yes; then |
7917 | # We found a bogon in the path, so make sure we never use it. | |
7918 | set dummy $ac_cv_prog_CC | |
7919 | shift | |
698dcdb6 | 7920 | if test $# -gt 0; then |
1e487827 VS |
7921 | # We chose a different compiler from the bogus one. |
7922 | # However, it has the same basename, so the bogon will be chosen | |
7923 | # first if we set CC to just the basename; use the full file name. | |
7924 | shift | |
698dcdb6 | 7925 | set dummy "$ac_dir/$ac_word" "$@" |
1e487827 VS |
7926 | shift |
7927 | ac_cv_prog_CC="$@" | |
703e0a69 | 7928 | fi |
1e487827 VS |
7929 | fi |
7930 | fi | |
7931 | fi | |
698dcdb6 | 7932 | CC="$ac_cv_prog_CC" |
1e487827 | 7933 | if test -n "$CC"; then |
698dcdb6 | 7934 | echo "$ac_t""$CC" 1>&6 |
703e0a69 | 7935 | else |
698dcdb6 | 7936 | echo "$ac_t""no" 1>&6 |
703e0a69 | 7937 | fi |
1e487827 | 7938 | |
698dcdb6 VZ |
7939 | if test -z "$CC"; then |
7940 | case "`uname -s`" in | |
7941 | *win32* | *WIN32*) | |
7942 | # Extract the first word of "cl", so it can be a program name with args. | |
7943 | set dummy cl; ac_word=$2 | |
7944 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
d08b457b | 7945 | echo "configure:7946: checking for $ac_word" >&5 |
698dcdb6 VZ |
7946 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
7947 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 VS |
7948 | else |
7949 | if test -n "$CC"; then | |
7950 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
703e0a69 | 7951 | else |
698dcdb6 VZ |
7952 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
7953 | ac_dummy="$PATH" | |
7954 | for ac_dir in $ac_dummy; do | |
7955 | test -z "$ac_dir" && ac_dir=. | |
7956 | if test -f $ac_dir/$ac_word; then | |
7957 | ac_cv_prog_CC="cl" | |
7958 | break | |
7959 | fi | |
7960 | done | |
7961 | IFS="$ac_save_ifs" | |
703e0a69 | 7962 | fi |
1e487827 | 7963 | fi |
698dcdb6 | 7964 | CC="$ac_cv_prog_CC" |
1e487827 | 7965 | if test -n "$CC"; then |
698dcdb6 | 7966 | echo "$ac_t""$CC" 1>&6 |
1e487827 | 7967 | else |
698dcdb6 | 7968 | echo "$ac_t""no" 1>&6 |
1e487827 | 7969 | fi |
698dcdb6 VZ |
7970 | ;; |
7971 | esac | |
7972 | fi | |
7973 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
1e487827 VS |
7974 | fi |
7975 | ||
698dcdb6 | 7976 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
d08b457b | 7977 | echo "configure:7978: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
1e487827 | 7978 | |
698dcdb6 VZ |
7979 | ac_ext=c |
7980 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
7981 | ac_cpp='$CPP $CPPFLAGS' | |
7982 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
7983 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7984 | cross_compiling=$ac_cv_prog_cc_cross | |
6232543b | 7985 | |
698dcdb6 | 7986 | cat > conftest.$ac_ext << EOF |
1e487827 | 7987 | |
d08b457b | 7988 | #line 7989 "configure" |
1e487827 VS |
7989 | #include "confdefs.h" |
7990 | ||
698dcdb6 VZ |
7991 | main(){return(0);} |
7992 | EOF | |
d08b457b | 7993 | if { (eval echo configure:7994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
7994 | ac_cv_prog_cc_works=yes |
7995 | # If we can't run a trivial program, we are probably using a cross compiler. | |
7996 | if (./conftest; exit) 2>/dev/null; then | |
7997 | ac_cv_prog_cc_cross=no | |
7998 | else | |
7999 | ac_cv_prog_cc_cross=yes | |
8000 | fi | |
8001 | else | |
8002 | echo "configure: failed program was:" >&5 | |
8003 | cat conftest.$ac_ext >&5 | |
8004 | ac_cv_prog_cc_works=no | |
8005 | fi | |
8006 | rm -fr conftest* | |
8007 | ac_ext=c | |
8008 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8009 | ac_cpp='$CPP $CPPFLAGS' | |
8010 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8011 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8012 | cross_compiling=$ac_cv_prog_cc_cross | |
8013 | ||
8014 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
8015 | if test $ac_cv_prog_cc_works = no; then | |
8016 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
8017 | fi | |
8018 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
d08b457b | 8019 | echo "configure:8020: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
698dcdb6 VZ |
8020 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
8021 | cross_compiling=$ac_cv_prog_cc_cross | |
8022 | ||
8023 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
d08b457b | 8024 | echo "configure:8025: checking whether we are using GNU C" >&5 |
698dcdb6 VZ |
8025 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
8026 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8027 | else | |
8028 | cat > conftest.c <<EOF | |
8029 | #ifdef __GNUC__ | |
8030 | yes; | |
1e487827 | 8031 | #endif |
698dcdb6 | 8032 | EOF |
d08b457b | 8033 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8034: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
698dcdb6 VZ |
8034 | ac_cv_prog_gcc=yes |
8035 | else | |
8036 | ac_cv_prog_gcc=no | |
8037 | fi | |
8038 | fi | |
1e487827 | 8039 | |
698dcdb6 | 8040 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
1e487827 | 8041 | |
698dcdb6 VZ |
8042 | if test $ac_cv_prog_gcc = yes; then |
8043 | GCC=yes | |
8044 | else | |
8045 | GCC= | |
8046 | fi | |
1e487827 | 8047 | |
698dcdb6 VZ |
8048 | ac_test_CFLAGS="${CFLAGS+set}" |
8049 | ac_save_CFLAGS="$CFLAGS" | |
8050 | CFLAGS= | |
8051 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
d08b457b | 8052 | echo "configure:8053: checking whether ${CC-cc} accepts -g" >&5 |
698dcdb6 VZ |
8053 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
8054 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8055 | else | |
8056 | echo 'void f(){}' > conftest.c | |
8057 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
10f2d63a VZ |
8058 | ac_cv_prog_cc_g=yes |
8059 | else | |
698dcdb6 | 8060 | ac_cv_prog_cc_g=no |
10f2d63a | 8061 | fi |
698dcdb6 VZ |
8062 | rm -f conftest* |
8063 | ||
10f2d63a | 8064 | fi |
698dcdb6 VZ |
8065 | |
8066 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
10f2d63a | 8067 | if test "$ac_test_CFLAGS" = set; then |
698dcdb6 | 8068 | CFLAGS="$ac_save_CFLAGS" |
10f2d63a VZ |
8069 | elif test $ac_cv_prog_cc_g = yes; then |
8070 | if test "$GCC" = yes; then | |
8071 | CFLAGS="-g -O2" | |
8072 | else | |
8073 | CFLAGS="-g" | |
8074 | fi | |
8075 | else | |
8076 | if test "$GCC" = yes; then | |
8077 | CFLAGS="-O2" | |
8078 | else | |
8079 | CFLAGS= | |
8080 | fi | |
8081 | fi | |
8082 | ||
8083 | ||
8084 | CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'` | |
8085 | ||
698dcdb6 | 8086 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
d08b457b | 8087 | echo "configure:8088: checking how to run the C preprocessor" >&5 |
10f2d63a VZ |
8088 | # On Suns, sometimes $CPP names a directory. |
8089 | if test -n "$CPP" && test -d "$CPP"; then | |
8090 | CPP= | |
8091 | fi | |
8092 | if test -z "$CPP"; then | |
698dcdb6 VZ |
8093 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
8094 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8095 | else | |
8096 | # This must be in double quotes, not single quotes, because CPP may get | |
8097 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
8098 | CPP="${CC-cc} -E" | |
10f2d63a | 8099 | # On the NeXT, cc -E runs the code through the compiler's parser, |
698dcdb6 VZ |
8100 | # not just through cpp. |
8101 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 8102 | #line 8103 "configure" |
10f2d63a VZ |
8103 | #include "confdefs.h" |
8104 | #include <assert.h> | |
698dcdb6 VZ |
8105 | Syntax Error |
8106 | EOF | |
8107 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d08b457b | 8108 | { (eval echo configure:8109: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8109 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8110 | if test -z "$ac_err"; then | |
10f2d63a VZ |
8111 | : |
8112 | else | |
698dcdb6 VZ |
8113 | echo "$ac_err" >&5 |
8114 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8115 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8116 | rm -rf conftest* |
8117 | CPP="${CC-cc} -E -traditional-cpp" | |
8118 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 8119 | #line 8120 "configure" |
10f2d63a | 8120 | #include "confdefs.h" |
698dcdb6 VZ |
8121 | #include <assert.h> |
8122 | Syntax Error | |
8123 | EOF | |
8124 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d08b457b | 8125 | { (eval echo configure:8126: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8126 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8127 | if test -z "$ac_err"; then | |
8128 | : | |
10f2d63a | 8129 | else |
698dcdb6 VZ |
8130 | echo "$ac_err" >&5 |
8131 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8132 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8133 | rm -rf conftest* |
8134 | CPP="${CC-cc} -nologo -E" | |
8135 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 8136 | #line 8137 "configure" |
10f2d63a VZ |
8137 | #include "confdefs.h" |
8138 | #include <assert.h> | |
698dcdb6 VZ |
8139 | Syntax Error |
8140 | EOF | |
8141 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d08b457b | 8142 | { (eval echo configure:8143: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8143 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8144 | if test -z "$ac_err"; then | |
10f2d63a VZ |
8145 | : |
8146 | else | |
698dcdb6 VZ |
8147 | echo "$ac_err" >&5 |
8148 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8149 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8150 | rm -rf conftest* |
8151 | CPP=/lib/cpp | |
10f2d63a | 8152 | fi |
698dcdb6 | 8153 | rm -f conftest* |
10f2d63a | 8154 | fi |
698dcdb6 | 8155 | rm -f conftest* |
703e0a69 | 8156 | fi |
698dcdb6 VZ |
8157 | rm -f conftest* |
8158 | ac_cv_prog_CPP="$CPP" | |
8159 | fi | |
8160 | CPP="$ac_cv_prog_CPP" | |
10f2d63a | 8161 | else |
698dcdb6 | 8162 | ac_cv_prog_CPP="$CPP" |
10f2d63a | 8163 | fi |
698dcdb6 | 8164 | echo "$ac_t""$CPP" 1>&6 |
10f2d63a | 8165 | |
698dcdb6 VZ |
8166 | if test $ac_cv_prog_gcc = yes; then |
8167 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
d08b457b | 8168 | echo "configure:8169: checking whether ${CC-cc} needs -traditional" >&5 |
698dcdb6 VZ |
8169 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
8170 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8171 | else |
8172 | ac_pattern="Autoconf.*'x'" | |
698dcdb6 | 8173 | cat > conftest.$ac_ext <<EOF |
d08b457b | 8174 | #line 8175 "configure" |
10f2d63a VZ |
8175 | #include "confdefs.h" |
8176 | #include <sgtty.h> | |
8177 | Autoconf TIOCGETP | |
698dcdb6 | 8178 | EOF |
10f2d63a VZ |
8179 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8180 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
698dcdb6 | 8181 | rm -rf conftest* |
10f2d63a VZ |
8182 | ac_cv_prog_gcc_traditional=yes |
8183 | else | |
698dcdb6 | 8184 | rm -rf conftest* |
10f2d63a VZ |
8185 | ac_cv_prog_gcc_traditional=no |
8186 | fi | |
8187 | rm -f conftest* | |
8188 | ||
698dcdb6 | 8189 | |
10f2d63a | 8190 | if test $ac_cv_prog_gcc_traditional = no; then |
698dcdb6 | 8191 | cat > conftest.$ac_ext <<EOF |
d08b457b | 8192 | #line 8193 "configure" |
10f2d63a VZ |
8193 | #include "confdefs.h" |
8194 | #include <termio.h> | |
8195 | Autoconf TCGETA | |
698dcdb6 | 8196 | EOF |
10f2d63a VZ |
8197 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8198 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
698dcdb6 | 8199 | rm -rf conftest* |
10f2d63a VZ |
8200 | ac_cv_prog_gcc_traditional=yes |
8201 | fi | |
8202 | rm -f conftest* | |
8203 | ||
8204 | fi | |
8205 | fi | |
698dcdb6 VZ |
8206 | |
8207 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
10f2d63a VZ |
8208 | if test $ac_cv_prog_gcc_traditional = yes; then |
8209 | CC="$CC -traditional" | |
8210 | fi | |
8211 | fi | |
8212 | ||
703e0a69 | 8213 | |
698dcdb6 VZ |
8214 | |
8215 | ac_ext=C | |
8216 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 8217 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
8218 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
8219 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8220 | cross_compiling=$ac_cv_prog_cxx_cross | |
8221 | ||
8222 | ||
8223 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | |
8224 | do | |
8225 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
8226 | set dummy $ac_prog; ac_word=$2 | |
8227 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
d08b457b | 8228 | echo "configure:8229: checking for $ac_word" >&5 |
698dcdb6 VZ |
8229 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
8230 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8231 | else |
8232 | if test -n "$CXX"; then | |
8233 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
8234 | else | |
698dcdb6 VZ |
8235 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8236 | ac_dummy="$PATH" | |
8237 | for ac_dir in $ac_dummy; do | |
8238 | test -z "$ac_dir" && ac_dir=. | |
8239 | if test -f $ac_dir/$ac_word; then | |
8240 | ac_cv_prog_CXX="$ac_prog" | |
8241 | break | |
8242 | fi | |
8243 | done | |
8244 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8245 | fi |
8246 | fi | |
698dcdb6 | 8247 | CXX="$ac_cv_prog_CXX" |
10f2d63a | 8248 | if test -n "$CXX"; then |
698dcdb6 | 8249 | echo "$ac_t""$CXX" 1>&6 |
10f2d63a | 8250 | else |
698dcdb6 | 8251 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8252 | fi |
8253 | ||
698dcdb6 | 8254 | test -n "$CXX" && break |
10f2d63a | 8255 | done |
698dcdb6 | 8256 | test -n "$CXX" || CXX="gcc" |
10f2d63a VZ |
8257 | |
8258 | ||
698dcdb6 | 8259 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
d08b457b | 8260 | echo "configure:8261: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
10f2d63a | 8261 | |
698dcdb6 VZ |
8262 | ac_ext=C |
8263 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8264 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8265 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8266 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8267 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 8268 | |
698dcdb6 VZ |
8269 | cat > conftest.$ac_ext << EOF |
8270 | ||
d08b457b | 8271 | #line 8272 "configure" |
10f2d63a VZ |
8272 | #include "confdefs.h" |
8273 | ||
698dcdb6 VZ |
8274 | int main(){return(0);} |
8275 | EOF | |
d08b457b | 8276 | if { (eval echo configure:8277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
8277 | ac_cv_prog_cxx_works=yes |
8278 | # If we can't run a trivial program, we are probably using a cross compiler. | |
8279 | if (./conftest; exit) 2>/dev/null; then | |
8280 | ac_cv_prog_cxx_cross=no | |
8281 | else | |
8282 | ac_cv_prog_cxx_cross=yes | |
8283 | fi | |
8284 | else | |
8285 | echo "configure: failed program was:" >&5 | |
8286 | cat conftest.$ac_ext >&5 | |
8287 | ac_cv_prog_cxx_works=no | |
8288 | fi | |
8289 | rm -fr conftest* | |
8290 | ac_ext=C | |
8291 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8292 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8293 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8294 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8295 | cross_compiling=$ac_cv_prog_cxx_cross | |
8296 | ||
8297 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 | |
8298 | if test $ac_cv_prog_cxx_works = no; then | |
8299 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
8300 | fi | |
8301 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
d08b457b | 8302 | echo "configure:8303: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
698dcdb6 VZ |
8303 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
8304 | cross_compiling=$ac_cv_prog_cxx_cross | |
8305 | ||
8306 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 | |
d08b457b | 8307 | echo "configure:8308: checking whether we are using GNU C++" >&5 |
698dcdb6 VZ |
8308 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
8309 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8310 | else | |
8311 | cat > conftest.C <<EOF | |
8312 | #ifdef __GNUC__ | |
8313 | yes; | |
10f2d63a | 8314 | #endif |
698dcdb6 | 8315 | EOF |
d08b457b | 8316 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:8317: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
698dcdb6 VZ |
8317 | ac_cv_prog_gxx=yes |
8318 | else | |
8319 | ac_cv_prog_gxx=no | |
8320 | fi | |
8321 | fi | |
10f2d63a | 8322 | |
698dcdb6 | 8323 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
10f2d63a | 8324 | |
698dcdb6 VZ |
8325 | if test $ac_cv_prog_gxx = yes; then |
8326 | GXX=yes | |
8327 | else | |
8328 | GXX= | |
8329 | fi | |
10f2d63a | 8330 | |
698dcdb6 VZ |
8331 | ac_test_CXXFLAGS="${CXXFLAGS+set}" |
8332 | ac_save_CXXFLAGS="$CXXFLAGS" | |
8333 | CXXFLAGS= | |
8334 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
d08b457b | 8335 | echo "configure:8336: checking whether ${CXX-g++} accepts -g" >&5 |
698dcdb6 VZ |
8336 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
8337 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8338 | else | |
8339 | echo 'void f(){}' > conftest.cc | |
8340 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
10f2d63a VZ |
8341 | ac_cv_prog_cxx_g=yes |
8342 | else | |
698dcdb6 | 8343 | ac_cv_prog_cxx_g=no |
10f2d63a | 8344 | fi |
698dcdb6 VZ |
8345 | rm -f conftest* |
8346 | ||
10f2d63a | 8347 | fi |
698dcdb6 VZ |
8348 | |
8349 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
10f2d63a | 8350 | if test "$ac_test_CXXFLAGS" = set; then |
698dcdb6 | 8351 | CXXFLAGS="$ac_save_CXXFLAGS" |
10f2d63a VZ |
8352 | elif test $ac_cv_prog_cxx_g = yes; then |
8353 | if test "$GXX" = yes; then | |
8354 | CXXFLAGS="-g -O2" | |
8355 | else | |
8356 | CXXFLAGS="-g" | |
8357 | fi | |
8358 | else | |
8359 | if test "$GXX" = yes; then | |
8360 | CXXFLAGS="-O2" | |
8361 | else | |
8362 | CXXFLAGS= | |
8363 | fi | |
8364 | fi | |
8365 | ||
8366 | ||
10f2d63a VZ |
8367 | CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'` |
8368 | ||
8369 | ac_ext=c | |
698dcdb6 | 8370 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 8371 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
8372 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
8373 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8374 | cross_compiling=$ac_cv_prog_cc_cross | |
8375 | ||
8376 | ||
8377 | # Extract the first word of "ranlib", so it can be a program name with args. | |
8378 | set dummy ranlib; ac_word=$2 | |
8379 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
d08b457b | 8380 | echo "configure:8381: checking for $ac_word" >&5 |
698dcdb6 VZ |
8381 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
8382 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8383 | else |
8384 | if test -n "$RANLIB"; then | |
8385 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8386 | else | |
698dcdb6 VZ |
8387 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8388 | ac_dummy="$PATH" | |
8389 | for ac_dir in $ac_dummy; do | |
8390 | test -z "$ac_dir" && ac_dir=. | |
8391 | if test -f $ac_dir/$ac_word; then | |
8392 | ac_cv_prog_RANLIB="ranlib" | |
8393 | break | |
8394 | fi | |
8395 | done | |
8396 | IFS="$ac_save_ifs" | |
8397 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
10f2d63a VZ |
8398 | fi |
8399 | fi | |
698dcdb6 | 8400 | RANLIB="$ac_cv_prog_RANLIB" |
10f2d63a | 8401 | if test -n "$RANLIB"; then |
698dcdb6 | 8402 | echo "$ac_t""$RANLIB" 1>&6 |
10f2d63a | 8403 | else |
698dcdb6 | 8404 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8405 | fi |
8406 | ||
8407 | ||
8408 | # Extract the first word of "ar", so it can be a program name with args. | |
8409 | set dummy ar; ac_word=$2 | |
698dcdb6 | 8410 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
d08b457b | 8411 | echo "configure:8412: checking for $ac_word" >&5 |
698dcdb6 VZ |
8412 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
8413 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8414 | else |
8415 | if test -n "$AR"; then | |
8416 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8417 | else | |
698dcdb6 VZ |
8418 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8419 | ac_dummy="$PATH" | |
8420 | for ac_dir in $ac_dummy; do | |
8421 | test -z "$ac_dir" && ac_dir=. | |
8422 | if test -f $ac_dir/$ac_word; then | |
8423 | ac_cv_prog_AR="ar" | |
8424 | break | |
8425 | fi | |
8426 | done | |
8427 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8428 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
8429 | fi | |
8430 | fi | |
698dcdb6 | 8431 | AR="$ac_cv_prog_AR" |
10f2d63a | 8432 | if test -n "$AR"; then |
698dcdb6 | 8433 | echo "$ac_t""$AR" 1>&6 |
10f2d63a | 8434 | else |
698dcdb6 | 8435 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8436 | fi |
8437 | ||
698dcdb6 | 8438 | |
10f2d63a VZ |
8439 | # Find a good install program. We prefer a C program (faster), |
8440 | # so one script is as good as another. But avoid the broken or | |
8441 | # incompatible versions: | |
8442 | # SysV /etc/install, /usr/sbin/install | |
8443 | # SunOS /usr/etc/install | |
8444 | # IRIX /sbin/install | |
8445 | # AIX /bin/install | |
8446 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
8447 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
8448 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
8449 | # ./install, which can be erroneously created by make from ./install.sh. | |
698dcdb6 | 8450 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
d08b457b | 8451 | echo "configure:8452: checking for a BSD compatible install" >&5 |
10f2d63a | 8452 | if test -z "$INSTALL"; then |
698dcdb6 VZ |
8453 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
8454 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 8455 | else |
698dcdb6 | 8456 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
10f2d63a VZ |
8457 | for ac_dir in $PATH; do |
8458 | # Account for people who put trailing slashes in PATH elements. | |
698dcdb6 VZ |
8459 | case "$ac_dir/" in |
8460 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
10f2d63a VZ |
8461 | *) |
8462 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
8463 | # Don't use installbsd from OSF since it installs stuff as root | |
8464 | # by default. | |
8465 | for ac_prog in ginstall scoinst install; do | |
698dcdb6 | 8466 | if test -f $ac_dir/$ac_prog; then |
10f2d63a | 8467 | if test $ac_prog = install && |
698dcdb6 | 8468 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
10f2d63a VZ |
8469 | # AIX install. It has an incompatible calling convention. |
8470 | : | |
8471 | else | |
8472 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
8473 | break 2 | |
8474 | fi | |
8475 | fi | |
8476 | done | |
8477 | ;; | |
8478 | esac | |
8479 | done | |
698dcdb6 | 8480 | IFS="$ac_save_IFS" |
10f2d63a VZ |
8481 | |
8482 | fi | |
8483 | if test "${ac_cv_path_install+set}" = set; then | |
698dcdb6 | 8484 | INSTALL="$ac_cv_path_install" |
10f2d63a VZ |
8485 | else |
8486 | # As a last resort, use the slow shell script. We don't cache a | |
8487 | # path for INSTALL within a source directory, because that will | |
8488 | # break other packages using the cache if that directory is | |
8489 | # removed, or if the path is relative. | |
698dcdb6 | 8490 | INSTALL="$ac_install_sh" |
10f2d63a VZ |
8491 | fi |
8492 | fi | |
698dcdb6 | 8493 | echo "$ac_t""$INSTALL" 1>&6 |
10f2d63a VZ |
8494 | |
8495 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
8496 | # It thinks the first close brace ends the variable substitution. | |
8497 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
8498 | ||
698dcdb6 | 8499 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
10f2d63a VZ |
8500 | |
8501 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
8502 | ||
698dcdb6 | 8503 | |
10f2d63a VZ |
8504 | # Extract the first word of "strip", so it can be a program name with args. |
8505 | set dummy strip; ac_word=$2 | |
698dcdb6 | 8506 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
d08b457b | 8507 | echo "configure:8508: checking for $ac_word" >&5 |
698dcdb6 VZ |
8508 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
8509 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8510 | else |
8511 | if test -n "$STRIP"; then | |
8512 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
8513 | else | |
698dcdb6 VZ |
8514 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8515 | ac_dummy="$PATH" | |
8516 | for ac_dir in $ac_dummy; do | |
8517 | test -z "$ac_dir" && ac_dir=. | |
8518 | if test -f $ac_dir/$ac_word; then | |
8519 | ac_cv_prog_STRIP="strip" | |
8520 | break | |
8521 | fi | |
8522 | done | |
8523 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8524 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
8525 | fi | |
8526 | fi | |
698dcdb6 | 8527 | STRIP="$ac_cv_prog_STRIP" |
10f2d63a | 8528 | if test -n "$STRIP"; then |
698dcdb6 | 8529 | echo "$ac_t""$STRIP" 1>&6 |
10f2d63a | 8530 | else |
698dcdb6 | 8531 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8532 | fi |
8533 | ||
698dcdb6 VZ |
8534 | |
8535 | echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6 | |
d08b457b | 8536 | echo "configure:8537: checking make for VPATH support" >&5 |
10f2d63a VZ |
8537 | cat - << EOF > confMake |
8538 | check : file | |
8539 | cp \$? \$@ | |
8540 | cp \$? final_file | |
8541 | EOF | |
8542 | ||
8543 | if test ! -d sub ; then | |
8544 | mkdir sub | |
8545 | fi | |
8546 | echo dummy > sub/file | |
f6bcfd97 | 8547 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null |
10f2d63a VZ |
8548 | RESULT=$? |
8549 | rm -f sub/file check final_file confMake | |
8550 | rmdir sub | |
8551 | if test "$RESULT" = 0; then | |
698dcdb6 | 8552 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8553 | else |
698dcdb6 VZ |
8554 | echo "$ac_t""no" 1>&6 |
8555 | { echo "configure: error: | |
1e487827 VS |
8556 | You need a make-utility that is able to use the variable |
8557 | VPATH correctly. | |
8558 | If your version of make does not support VPATH correctly, | |
8559 | please install GNU-make (possibly as gmake), and start | |
8560 | configure with the following command: | |
8561 | export MAKE=gmake; ./configure for sh-type shells | |
8562 | setenv MAKE gmake; ./configure for csh-type shells | |
8563 | Also please do remember to use gmake in this case every time | |
8564 | you are trying to compile. | |
698dcdb6 | 8565 | " 1>&2; exit 1; } |
10f2d63a VZ |
8566 | fi |
8567 | ||
8568 | for ac_prog in 'bison -y' byacc | |
8569 | do | |
698dcdb6 | 8570 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
10f2d63a | 8571 | set dummy $ac_prog; ac_word=$2 |
698dcdb6 | 8572 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
d08b457b | 8573 | echo "configure:8574: checking for $ac_word" >&5 |
698dcdb6 VZ |
8574 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
8575 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8576 | else |
8577 | if test -n "$YACC"; then | |
8578 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
8579 | else | |
698dcdb6 VZ |
8580 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8581 | ac_dummy="$PATH" | |
8582 | for ac_dir in $ac_dummy; do | |
8583 | test -z "$ac_dir" && ac_dir=. | |
8584 | if test -f $ac_dir/$ac_word; then | |
8585 | ac_cv_prog_YACC="$ac_prog" | |
8586 | break | |
8587 | fi | |
8588 | done | |
8589 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8590 | fi |
8591 | fi | |
698dcdb6 | 8592 | YACC="$ac_cv_prog_YACC" |
10f2d63a | 8593 | if test -n "$YACC"; then |
698dcdb6 | 8594 | echo "$ac_t""$YACC" 1>&6 |
10f2d63a | 8595 | else |
698dcdb6 | 8596 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8597 | fi |
8598 | ||
698dcdb6 | 8599 | test -n "$YACC" && break |
10f2d63a VZ |
8600 | done |
8601 | test -n "$YACC" || YACC="yacc" | |
8602 | ||
698dcdb6 VZ |
8603 | |
8604 | # Extract the first word of "flex", so it can be a program name with args. | |
8605 | set dummy flex; ac_word=$2 | |
8606 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
d08b457b | 8607 | echo "configure:8608: checking for $ac_word" >&5 |
698dcdb6 VZ |
8608 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
8609 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8610 | else |
8611 | if test -n "$LEX"; then | |
8612 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
8613 | else | |
698dcdb6 VZ |
8614 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8615 | ac_dummy="$PATH" | |
8616 | for ac_dir in $ac_dummy; do | |
8617 | test -z "$ac_dir" && ac_dir=. | |
8618 | if test -f $ac_dir/$ac_word; then | |
8619 | ac_cv_prog_LEX="flex" | |
8620 | break | |
8621 | fi | |
8622 | done | |
8623 | IFS="$ac_save_ifs" | |
8624 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
10f2d63a VZ |
8625 | fi |
8626 | fi | |
698dcdb6 | 8627 | LEX="$ac_cv_prog_LEX" |
10f2d63a | 8628 | if test -n "$LEX"; then |
698dcdb6 | 8629 | echo "$ac_t""$LEX" 1>&6 |
10f2d63a | 8630 | else |
698dcdb6 | 8631 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8632 | fi |
8633 | ||
8634 | if test -z "$LEXLIB" | |
8635 | then | |
698dcdb6 VZ |
8636 | case "$LEX" in |
8637 | flex*) ac_lib=fl ;; | |
8638 | *) ac_lib=l ;; | |
8639 | esac | |
8640 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
d08b457b | 8641 | echo "configure:8642: checking for yywrap in -l$ac_lib" >&5 |
698dcdb6 VZ |
8642 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
8643 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
8644 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8645 | else | |
8646 | ac_save_LIBS="$LIBS" | |
8647 | LIBS="-l$ac_lib $LIBS" | |
8648 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 8649 | #line 8650 "configure" |
10f2d63a VZ |
8650 | #include "confdefs.h" |
8651 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8652 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
8653 | builtin and then its argument prototype would still apply. */ |
8654 | char yywrap(); | |
10f2d63a | 8655 | |
698dcdb6 VZ |
8656 | int main() { |
8657 | yywrap() | |
8658 | ; return 0; } | |
8659 | EOF | |
d08b457b | 8660 | if { (eval echo configure:8661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
8661 | rm -rf conftest* |
8662 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 8663 | else |
698dcdb6 VZ |
8664 | echo "configure: failed program was:" >&5 |
8665 | cat conftest.$ac_ext >&5 | |
8666 | rm -rf conftest* | |
8667 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 8668 | fi |
698dcdb6 VZ |
8669 | rm -f conftest* |
8670 | LIBS="$ac_save_LIBS" | |
8671 | ||
10f2d63a | 8672 | fi |
698dcdb6 VZ |
8673 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
8674 | echo "$ac_t""yes" 1>&6 | |
8675 | LEXLIB="-l$ac_lib" | |
8676 | else | |
8677 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
8678 | fi |
8679 | ||
8680 | fi | |
8681 | ||
8682 | ||
698dcdb6 | 8683 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
d08b457b | 8684 | echo "configure:8685: checking whether ln -s works" >&5 |
698dcdb6 VZ |
8685 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
8686 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 8687 | else |
698dcdb6 VZ |
8688 | rm -f conftestdata |
8689 | if ln -s X conftestdata 2>/dev/null | |
8690 | then | |
8691 | rm -f conftestdata | |
8692 | ac_cv_prog_LN_S="ln -s" | |
10f2d63a | 8693 | else |
698dcdb6 | 8694 | ac_cv_prog_LN_S=ln |
10f2d63a VZ |
8695 | fi |
8696 | fi | |
698dcdb6 VZ |
8697 | LN_S="$ac_cv_prog_LN_S" |
8698 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
8699 | echo "$ac_t""yes" 1>&6 | |
10f2d63a | 8700 | else |
698dcdb6 | 8701 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8702 | fi |
8703 | ||
8704 | ||
8705 | ||
8706 | SEARCH_INCLUDE="\ | |
8707 | /usr/local/include \ | |
8708 | \ | |
8709 | /usr/Motif-1.2/include \ | |
8710 | /usr/Motif-2.1/include \ | |
8711 | \ | |
8712 | /usr/include/Motif1.2 \ | |
8713 | /opt/xpm/include/X11 \ | |
8714 | /opt/GBxpm/include/ \ | |
8715 | /opt/GBxpm/X11/include/ \ | |
8716 | \ | |
8717 | /usr/Motif1.2/include \ | |
8718 | /usr/dt/include \ | |
afc31813 VZ |
8719 | /usr/openwin/include \ |
8720 | \ | |
10f2d63a VZ |
8721 | /usr/include/Xm \ |
8722 | \ | |
8723 | /usr/X11R6/include \ | |
afc31813 | 8724 | /usr/X11R6.4/include \ |
10f2d63a VZ |
8725 | /usr/X11R5/include \ |
8726 | /usr/X11R4/include \ | |
8727 | \ | |
10f2d63a VZ |
8728 | /usr/include/X11R6 \ |
8729 | /usr/include/X11R5 \ | |
8730 | /usr/include/X11R4 \ | |
8731 | \ | |
8732 | /usr/local/X11R6/include \ | |
8733 | /usr/local/X11R5/include \ | |
8734 | /usr/local/X11R4/include \ | |
8735 | \ | |
8736 | /usr/local/include/X11R6 \ | |
8737 | /usr/local/include/X11R5 \ | |
8738 | /usr/local/include/X11R4 \ | |
8739 | \ | |
8740 | /usr/X11/include \ | |
8741 | /usr/include/X11 \ | |
8742 | /usr/local/X11/include \ | |
8743 | /usr/local/include/X11 \ | |
8744 | \ | |
8745 | /usr/X386/include \ | |
8746 | /usr/x386/include \ | |
8747 | /usr/XFree86/include/X11 \ | |
8748 | \ | |
cf27ef00 | 8749 | X:/XFree86/include \ |
ec14dd32 VZ |
8750 | X:/XFree86/include/X11 \ |
8751 | \ | |
10f2d63a VZ |
8752 | /usr/include/gtk \ |
8753 | /usr/local/include/gtk \ | |
8754 | /usr/include/glib \ | |
8755 | /usr/local/include/glib \ | |
8756 | \ | |
8757 | /usr/include/qt \ | |
8758 | /usr/local/include/qt \ | |
8759 | \ | |
8760 | /usr/include/windows \ | |
8761 | /usr/include/wine \ | |
8762 | /usr/local/include/wine \ | |
8763 | \ | |
8764 | /usr/unsupported/include \ | |
8765 | /usr/athena/include \ | |
8766 | /usr/local/x11r5/include \ | |
8767 | /usr/lpp/Xamples/include \ | |
8768 | \ | |
10f2d63a | 8769 | /usr/openwin/share/include \ |
928b5c08 VZ |
8770 | \ |
8771 | /usr/include" | |
10f2d63a VZ |
8772 | |
8773 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
8774 | ||
698dcdb6 VZ |
8775 | |
8776 | cat > confcache <<\EOF | |
10f2d63a VZ |
8777 | # This file is a shell script that caches the results of configure |
8778 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
8779 | # scripts and configure runs. It is not useful on other systems. |
8780 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 8781 | # |
698dcdb6 VZ |
8782 | # By default, configure uses ./config.cache as the cache file, |
8783 | # creating it if it does not exist already. You can give configure | |
8784 | # the --cache-file=FILE option to use a different cache file; that is | |
8785 | # what configure does when it calls configure scripts in | |
8786 | # subdirectories, so they share the cache. | |
8787 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
8788 | # config.status only pays attention to the cache file if you give it the | |
8789 | # --recheck option to rerun configure. | |
10f2d63a | 8790 | # |
698dcdb6 | 8791 | EOF |
10f2d63a VZ |
8792 | # The following way of writing the cache mishandles newlines in values, |
8793 | # but we know of no workaround that is simple, portable, and efficient. | |
8794 | # So, don't put newlines in cache variables' values. | |
8795 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
8796 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
8797 | (set) 2>&1 | |
8798 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
8799 | *ac_space=\ *) | |
8800 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
8801 | # turns \\\\ into \\, and sed turns \\ into \). | |
8802 | sed -n \ | |
8803 | -e "s/'/'\\\\''/g" \ | |
8804 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
8805 | ;; | |
8806 | *) | |
8807 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
8808 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
8809 | ;; | |
8810 | esac >> confcache | |
8811 | if cmp -s $cache_file confcache; then | |
8812 | : | |
8813 | else | |
10f2d63a | 8814 | if test -w $cache_file; then |
698dcdb6 VZ |
8815 | echo "updating cache $cache_file" |
8816 | cat confcache > $cache_file | |
10f2d63a VZ |
8817 | else |
8818 | echo "not updating unwritable cache $cache_file" | |
8819 | fi | |
8820 | fi | |
8821 | rm -f confcache | |
8822 | ||
698dcdb6 VZ |
8823 | |
8824 | ||
18dbb1f6 VZ |
8825 | REGEX_INCLUDE= |
8826 | if test "$wxUSE_REGEX" != "no"; then | |
8827 | ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'` | |
8828 | echo $ac_n "checking for regex.h""... $ac_c" 1>&6 | |
d08b457b | 8829 | echo "configure:8830: checking for regex.h" >&5 |
18dbb1f6 VZ |
8830 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8831 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8832 | else | |
8833 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 8834 | #line 8835 "configure" |
18dbb1f6 VZ |
8835 | #include "confdefs.h" |
8836 | #include <regex.h> | |
8837 | EOF | |
8838 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d08b457b | 8839 | { (eval echo configure:8840: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
18dbb1f6 VZ |
8840 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8841 | if test -z "$ac_err"; then | |
8842 | rm -rf conftest* | |
8843 | eval "ac_cv_header_$ac_safe=yes" | |
8844 | else | |
8845 | echo "$ac_err" >&5 | |
8846 | echo "configure: failed program was:" >&5 | |
8847 | cat conftest.$ac_ext >&5 | |
8848 | rm -rf conftest* | |
8849 | eval "ac_cv_header_$ac_safe=no" | |
8850 | fi | |
8851 | rm -f conftest* | |
8852 | fi | |
8853 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8854 | echo "$ac_t""yes" 1>&6 | |
8855 | for ac_func in regcomp | |
8856 | do | |
8857 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
d08b457b | 8858 | echo "configure:8859: checking for $ac_func" >&5 |
18dbb1f6 VZ |
8859 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
8860 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8861 | else | |
8862 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 8863 | #line 8864 "configure" |
18dbb1f6 VZ |
8864 | #include "confdefs.h" |
8865 | /* System header to define __stub macros and hopefully few prototypes, | |
8866 | which can conflict with char $ac_func(); below. */ | |
8867 | #include <assert.h> | |
8868 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8869 | /* We use char because int might match the return type of a gcc2 | |
8870 | builtin and then its argument prototype would still apply. */ | |
8871 | char $ac_func(); | |
8872 | ||
8873 | int main() { | |
8874 | ||
8875 | /* The GNU C library defines this for functions which it implements | |
8876 | to always fail with ENOSYS. Some functions are actually named | |
8877 | something starting with __ and the normal name is an alias. */ | |
8878 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
8879 | choke me | |
8880 | #else | |
8881 | $ac_func(); | |
8882 | #endif | |
8883 | ||
8884 | ; return 0; } | |
8885 | EOF | |
d08b457b | 8886 | if { (eval echo configure:8887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
18dbb1f6 VZ |
8887 | rm -rf conftest* |
8888 | eval "ac_cv_func_$ac_func=yes" | |
8889 | else | |
8890 | echo "configure: failed program was:" >&5 | |
8891 | cat conftest.$ac_ext >&5 | |
8892 | rm -rf conftest* | |
8893 | eval "ac_cv_func_$ac_func=no" | |
8894 | fi | |
8895 | rm -f conftest* | |
8896 | fi | |
8897 | ||
8898 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
8899 | echo "$ac_t""yes" 1>&6 | |
8900 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
8901 | cat >> confdefs.h <<EOF | |
8902 | #define $ac_tr_func 1 | |
8903 | EOF | |
8904 | ||
8905 | else | |
8906 | echo "$ac_t""no" 1>&6 | |
8907 | fi | |
8908 | done | |
8909 | ||
8910 | else | |
8911 | echo "$ac_t""no" 1>&6 | |
8912 | fi | |
8913 | ||
8914 | ||
8915 | if test "x$ac_cv_func_regcomp" != "xyes"; then | |
8916 | if test "$wxUSE_REGEX" = "sys"; then | |
8917 | { echo "configure: error: system regex library not found! Use --with-regex to use the built-in regex library." 1>&2; exit 1; } | |
8918 | fi | |
8919 | ||
8920 | REGEX_INCLUDE="-I\${top_srcdir}/src/regex" | |
8921 | fi | |
8922 | ||
8923 | cat >> confdefs.h <<\EOF | |
8924 | #define wxUSE_REGEX 1 | |
8925 | EOF | |
8926 | ||
8927 | fi | |
8928 | ||
8929 | ||
dad6c0ea VZ |
8930 | AFMINSTALL= |
8931 | ||
3a922bb4 RL |
8932 | TOOLKIT= |
8933 | TOOLKIT_INCLUDE= | |
8934 | WIDGET_SET= | |
10f2d63a | 8935 | |
3a922bb4 RL |
8936 | if test "$USE_WIN32" = 1 ; then |
8937 | for ac_hdr in w32api.h | |
8938 | do | |
8939 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
8940 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d08b457b | 8941 | echo "configure:8942: checking for $ac_hdr" >&5 |
3a922bb4 RL |
8942 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8943 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8944 | else | |
8945 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 8946 | #line 8947 "configure" |
3a922bb4 RL |
8947 | #include "confdefs.h" |
8948 | #include <$ac_hdr> | |
8949 | EOF | |
8950 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d08b457b | 8951 | { (eval echo configure:8952: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3a922bb4 RL |
8952 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8953 | if test -z "$ac_err"; then | |
8954 | rm -rf conftest* | |
8955 | eval "ac_cv_header_$ac_safe=yes" | |
8956 | else | |
8957 | echo "$ac_err" >&5 | |
8958 | echo "configure: failed program was:" >&5 | |
8959 | cat conftest.$ac_ext >&5 | |
8960 | rm -rf conftest* | |
8961 | eval "ac_cv_header_$ac_safe=no" | |
8962 | fi | |
8963 | rm -f conftest* | |
8964 | fi | |
8965 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8966 | echo "$ac_t""yes" 1>&6 | |
8967 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
8968 | cat >> confdefs.h <<EOF | |
8969 | #define $ac_tr_hdr 1 | |
8970 | EOF | |
8971 | ||
8972 | else | |
8973 | echo "$ac_t""no" 1>&6 | |
8974 | fi | |
8975 | done | |
10f2d63a | 8976 | |
3a922bb4 | 8977 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` |
29fd3c0c | 8978 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 |
d08b457b | 8979 | echo "configure:8980: checking for windows.h" >&5 |
d4158b5d VS |
8980 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8981 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8982 | else | |
8983 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 8984 | #line 8985 "configure" |
d4158b5d | 8985 | #include "confdefs.h" |
29fd3c0c | 8986 | #include <windows.h> |
d4158b5d VS |
8987 | EOF |
8988 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d08b457b | 8989 | { (eval echo configure:8990: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
d4158b5d VS |
8990 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8991 | if test -z "$ac_err"; then | |
8992 | rm -rf conftest* | |
8993 | eval "ac_cv_header_$ac_safe=yes" | |
8994 | else | |
8995 | echo "$ac_err" >&5 | |
8996 | echo "configure: failed program was:" >&5 | |
8997 | cat conftest.$ac_ext >&5 | |
8998 | rm -rf conftest* | |
8999 | eval "ac_cv_header_$ac_safe=no" | |
9000 | fi | |
9001 | rm -f conftest* | |
9002 | fi | |
9003 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9004 | echo "$ac_t""yes" 1>&6 | |
29fd3c0c | 9005 | : |
d4158b5d VS |
9006 | else |
9007 | echo "$ac_t""no" 1>&6 | |
d4158b5d | 9008 | |
3a922bb4 RL |
9009 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } |
9010 | ||
29fd3c0c | 9011 | fi |
10f2d63a | 9012 | |
3f0f0161 | 9013 | |
3a922bb4 | 9014 | echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6 |
d08b457b | 9015 | echo "configure:9016: checking if w32api has good enough MSIE support" >&5 |
3a922bb4 RL |
9016 | if eval "test \"`echo '$''{'wx_cv_w32api_win_ie'+set}'`\" = set"; then |
9017 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9018 | else | |
9019 | ||
9020 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 9021 | #line 9022 "configure" |
3a922bb4 RL |
9022 | #include "confdefs.h" |
9023 | #include <w32api.h> | |
9024 | int main() { | |
3f0f0161 | 9025 | |
3a922bb4 RL |
9026 | #define wxCHECK_W32API_VERSION( major, minor ) \ |
9027 | ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \ | |
9028 | && ( ( __W32API_MAJOR_VERSION > (major) ) \ | |
9029 | || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor)))) | |
f6bcfd97 | 9030 | |
3a922bb4 RL |
9031 | #if !wxCHECK_W32API_VERSION(1,1) |
9032 | #error You need w32api 1.1 or newer | |
9033 | #endif | |
9034 | ||
9035 | ; return 0; } | |
9036 | EOF | |
d08b457b | 9037 | if { (eval echo configure:9038: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
3a922bb4 RL |
9038 | rm -rf conftest* |
9039 | ||
9040 | wx_cv_w32api_win_ie=yes | |
9041 | CPPFLAGS="$CPPFLAGS -D_WIN_IE=0x400" | |
9042 | ||
9043 | else | |
9044 | echo "configure: failed program was:" >&5 | |
9045 | cat conftest.$ac_ext >&5 | |
9046 | rm -rf conftest* | |
9047 | ||
9048 | wx_cv_w32api_win_ie=no | |
9049 | ||
9050 | fi | |
9051 | rm -f conftest* | |
9052 | ||
9053 | fi | |
10f2d63a | 9054 | |
3a922bb4 | 9055 | echo "$ac_t""$wx_cv_w32api_win_ie" 1>&6 |
32832908 | 9056 | |
3a922bb4 RL |
9057 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32" |
9058 | ||
9059 | if test "$wxUSE_ODBC" = "yes" ; then | |
9060 | LIBS="$LIBS -lodbc32 -lole32 -loleaut32" | |
9061 | fi | |
9062 | ||
9063 | if test "$wxUSE_MINGW" = 1; then | |
9064 | LDFLAGS="$LDFLAGS -mwindows" | |
9065 | fi | |
9066 | ||
9067 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" | |
9068 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
9069 | fi | |
9070 | ||
9071 | if test "$wxUSE_GUI" = "yes"; then | |
9072 | USE_GUI=1 | |
32832908 | 9073 | |
3a922bb4 RL |
9074 | GUI_TK_LIBRARY= |
9075 | ||
9076 | WXGTK12= | |
9077 | WXGTK127= | |
9078 | WXGTK20= | |
32832908 | 9079 | |
3a922bb4 RL |
9080 | if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then |
9081 | TOOLKIT=MSW | |
9082 | GUIDIST=MSW_DIST | |
1e6feb95 | 9083 | fi |
10f2d63a | 9084 | |
1e6feb95 | 9085 | if test "$wxUSE_GTK" = 1; then |
8168de4c | 9086 | echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6 |
d08b457b | 9087 | echo "configure:9088: checking for GTK+ version" >&5 |
8168de4c VZ |
9088 | |
9089 | gtk_version_cached=1 | |
9090 | if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then | |
9091 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9092 | else | |
9093 | ||
9094 | gtk_version_cached=0 | |
9095 | echo "$ac_t""""" 1>&6 | |
9096 | ||
9097 | wx_cv_lib_gtk= | |
9098 | if test "x$wxUSE_GTK2" = "xyes"; then | |
9099 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
6f72b082 OK |
9100 | if test "${with_gtk_prefix+set}" = set; then |
9101 | withval="$with_gtk_prefix" | |
9102 | gtk_config_prefix="$withval" | |
9103 | else | |
9104 | gtk_config_prefix="" | |
698dcdb6 | 9105 | fi |
6f72b082 OK |
9106 | |
9107 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
9108 | if test "${with_gtk_exec_prefix+set}" = set; then | |
9109 | withval="$with_gtk_exec_prefix" | |
9110 | gtk_config_exec_prefix="$withval" | |
9111 | else | |
9112 | gtk_config_exec_prefix="" | |
698dcdb6 VZ |
9113 | fi |
9114 | ||
6f72b082 OK |
9115 | # Check whether --enable-gtktest or --disable-gtktest was given. |
9116 | if test "${enable_gtktest+set}" = set; then | |
9117 | enableval="$enable_gtktest" | |
698dcdb6 | 9118 | : |
6f72b082 OK |
9119 | else |
9120 | enable_gtktest=yes | |
698dcdb6 VZ |
9121 | fi |
9122 | ||
6f72b082 | 9123 | |
8168de4c | 9124 | for module in . |
6f72b082 OK |
9125 | do |
9126 | case "$module" in | |
8168de4c | 9127 | gthread) |
6f72b082 OK |
9128 | gtk_config_args="$gtk_config_args gthread" |
9129 | ;; | |
9130 | esac | |
9131 | done | |
9132 | ||
9133 | if test x$gtk_config_exec_prefix != x ; then | |
9134 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
9135 | if test x${GTK_CONFIG_2_0+set} != xset ; then | |
9136 | GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0 | |
9137 | fi | |
9138 | fi | |
9139 | if test x$gtk_config_prefix != x ; then | |
9140 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
9141 | if test x${GTK_CONFIG_2_0+set} != xset ; then | |
9142 | GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0 | |
9143 | fi | |
9144 | fi | |
9145 | ||
9146 | # Extract the first word of "gtk-config-2.0", so it can be a program name with args. | |
9147 | set dummy gtk-config-2.0; ac_word=$2 | |
698dcdb6 | 9148 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
d08b457b | 9149 | echo "configure:9150: checking for $ac_word" >&5 |
698dcdb6 VZ |
9150 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then |
9151 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6f72b082 | 9152 | else |
698dcdb6 VZ |
9153 | case "$GTK_CONFIG_2_0" in |
9154 | /*) | |
6f72b082 OK |
9155 | ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path. |
9156 | ;; | |
698dcdb6 VZ |
9157 | ?:/*) |
9158 | ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path. | |
9159 | ;; | |
6f72b082 | 9160 | *) |
698dcdb6 VZ |
9161 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9162 | ac_dummy="$PATH" | |
9163 | for ac_dir in $ac_dummy; do | |
9164 | test -z "$ac_dir" && ac_dir=. | |
9165 | if test -f $ac_dir/$ac_word; then | |
9166 | ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word" | |
9167 | break | |
9168 | fi | |
9169 | done | |
9170 | IFS="$ac_save_ifs" | |
6f72b082 OK |
9171 | test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no" |
9172 | ;; | |
9173 | esac | |
9174 | fi | |
698dcdb6 | 9175 | GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0" |
6f72b082 | 9176 | if test -n "$GTK_CONFIG_2_0"; then |
698dcdb6 | 9177 | echo "$ac_t""$GTK_CONFIG_2_0" 1>&6 |
6f72b082 | 9178 | else |
698dcdb6 | 9179 | echo "$ac_t""no" 1>&6 |
6f72b082 OK |
9180 | fi |
9181 | ||
9182 | min_gtk_version=1.3.1 | |
698dcdb6 | 9183 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
d08b457b | 9184 | echo "configure:9185: checking for GTK - version >= $min_gtk_version" >&5 |
6f72b082 OK |
9185 | no_gtk="" |
9186 | if test "$GTK_CONFIG_2_0" = "no" ; then | |
9187 | no_gtk=yes | |
9188 | else | |
9189 | GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags` | |
9190 | GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs` | |
9191 | gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
9192 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
9193 | gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
9194 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
9195 | gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
9196 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
9197 | if test "x$enable_gtktest" = "xyes" ; then | |
9198 | ac_save_CFLAGS="$CFLAGS" | |
9199 | ac_save_LIBS="$LIBS" | |
9200 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
9201 | LIBS="$GTK_LIBS $LIBS" | |
9202 | rm -f conf.gtktest | |
9203 | if test "$cross_compiling" = yes; then | |
9204 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
9205 | else | |
698dcdb6 | 9206 | cat > conftest.$ac_ext <<EOF |
d08b457b | 9207 | #line 9208 "configure" |
6f72b082 OK |
9208 | #include "confdefs.h" |
9209 | ||
9210 | #include <gtk/gtk.h> | |
9211 | #include <stdio.h> | |
9212 | #include <stdlib.h> | |
9213 | ||
8168de4c | 9214 | int |
6f72b082 OK |
9215 | main () |
9216 | { | |
9217 | int major, minor, micro; | |
9218 | char *tmp_version; | |
9219 | ||
9220 | system ("touch conf.gtktest"); | |
9221 | ||
9222 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
9223 | tmp_version = g_strdup("$min_gtk_version"); | |
9224 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
9225 | printf("%s, bad version string\n", "$min_gtk_version"); | |
9226 | exit(1); | |
9227 | } | |
9228 | ||
9229 | if ((gtk_major_version != $gtk_config_major_version) || | |
9230 | (gtk_minor_version != $gtk_config_minor_version) || | |
9231 | (gtk_micro_version != $gtk_config_micro_version)) | |
9232 | { | |
8168de4c | 9233 | printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
6f72b082 OK |
9234 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
9235 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
9236 | printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n"); | |
9237 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
9238 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
9239 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
9240 | printf("*** required on your system.\n"); | |
9241 | printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n"); | |
9242 | printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n"); | |
9243 | printf("*** before re-running configure\n"); | |
8168de4c | 9244 | } |
6f72b082 OK |
9245 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
9246 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
8168de4c | 9247 | (gtk_minor_version != GTK_MINOR_VERSION) || |
6f72b082 OK |
9248 | (gtk_micro_version != GTK_MICRO_VERSION)) |
9249 | { | |
9250 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
8168de4c | 9251 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); |
6f72b082 | 9252 | printf("*** library (version %d.%d.%d)\n", |
8168de4c | 9253 | gtk_major_version, gtk_minor_version, gtk_micro_version); |
6f72b082 OK |
9254 | } |
9255 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
9256 | else | |
9257 | { | |
9258 | if ((gtk_major_version > major) || | |
9259 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
9260 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
9261 | { | |
9262 | return 0; | |
9263 | } | |
9264 | else | |
9265 | { | |
9266 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
9267 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
9268 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
8168de4c | 9269 | major, minor, micro); |
6f72b082 OK |
9270 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); |
9271 | printf("***\n"); | |
9272 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
9273 | printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n"); | |
9274 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
9275 | printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n"); | |
9276 | printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n"); | |
9277 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
9278 | printf("*** so that the correct libraries are found at run-time))\n"); | |
9279 | } | |
9280 | } | |
9281 | return 1; | |
9282 | } | |
9283 | ||
698dcdb6 | 9284 | EOF |
d08b457b | 9285 | if { (eval echo configure:9286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 9286 | then |
6f72b082 OK |
9287 | : |
9288 | else | |
698dcdb6 VZ |
9289 | echo "configure: failed program was:" >&5 |
9290 | cat conftest.$ac_ext >&5 | |
9291 | rm -fr conftest* | |
9292 | no_gtk=yes | |
6f72b082 | 9293 | fi |
698dcdb6 | 9294 | rm -fr conftest* |
6f72b082 | 9295 | fi |
698dcdb6 | 9296 | |
6f72b082 OK |
9297 | CFLAGS="$ac_save_CFLAGS" |
9298 | LIBS="$ac_save_LIBS" | |
9299 | fi | |
9300 | fi | |
9301 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 9302 | echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6 |
8168de4c | 9303 | wx_cv_lib_gtk=2.0 |
6f72b082 | 9304 | else |
698dcdb6 | 9305 | echo "$ac_t""no" 1>&6 |
6f72b082 OK |
9306 | if test "$GTK_CONFIG_2_0" = "no" ; then |
9307 | echo "*** The gtk-config-2.0 script installed by GTK could not be found" | |
9308 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
9309 | echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the" | |
9310 | echo "*** full path to gtk-config-2.0." | |
9311 | else | |
9312 | if test -f conf.gtktest ; then | |
9313 | : | |
9314 | else | |
9315 | echo "*** Could not run GTK test program, checking why..." | |
9316 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
9317 | LIBS="$LIBS $GTK_LIBS" | |
698dcdb6 | 9318 | cat > conftest.$ac_ext <<EOF |
d08b457b | 9319 | #line 9320 "configure" |
6f72b082 OK |
9320 | #include "confdefs.h" |
9321 | ||
9322 | #include <gtk/gtk.h> | |
9323 | #include <stdio.h> | |
9324 | ||
698dcdb6 VZ |
9325 | int main() { |
9326 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
9327 | ; return 0; } | |
9328 | EOF | |
d08b457b | 9329 | if { (eval echo configure:9330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 9330 | rm -rf conftest* |
6f72b082 OK |
9331 | echo "*** The test program compiled, but did not run. This usually means" |
9332 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
9333 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
9334 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
9335 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
9336 | echo "*** is required on your system" | |
8168de4c | 9337 | echo "***" |
6f72b082 OK |
9338 | echo "*** If you have an old version installed, it is best to remove it, although" |
9339 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
9340 | echo "***" | |
9341 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
9342 | echo "*** came with the system with the command" | |
9343 | echo "***" | |
698dcdb6 | 9344 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
6f72b082 | 9345 | else |
698dcdb6 VZ |
9346 | echo "configure: failed program was:" >&5 |
9347 | cat conftest.$ac_ext >&5 | |
9348 | rm -rf conftest* | |
9349 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
6f72b082 OK |
9350 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
9351 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
698dcdb6 | 9352 | echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0" |
6f72b082 | 9353 | fi |
698dcdb6 | 9354 | rm -f conftest* |
6f72b082 OK |
9355 | CFLAGS="$ac_save_CFLAGS" |
9356 | LIBS="$ac_save_LIBS" | |
9357 | fi | |
9358 | fi | |
9359 | GTK_CFLAGS="" | |
9360 | GTK_LIBS="" | |
8168de4c VZ |
9361 | gthread |
9362 | fi | |
9363 | ||
9364 | ||
9365 | rm -f conf.gtktest | |
9366 | ||
9367 | fi | |
9368 | ||
9369 | if test -z "$wx_cv_lib_gtk"; then | |
9370 | ||
10f2d63a VZ |
9371 | if test x$gtk_config_exec_prefix != x ; then |
9372 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
9373 | if test x${GTK_CONFIG+set} != xset ; then | |
9374 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
9375 | fi | |
9376 | fi | |
9377 | if test x$gtk_config_prefix != x ; then | |
9378 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
9379 | if test x${GTK_CONFIG+set} != xset ; then | |
9380 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
9381 | fi | |
9382 | fi | |
9383 | ||
9384 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
9385 | set dummy gtk-config; ac_word=$2 | |
698dcdb6 | 9386 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
d08b457b | 9387 | echo "configure:9388: checking for $ac_word" >&5 |
698dcdb6 VZ |
9388 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
9389 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 9390 | else |
698dcdb6 VZ |
9391 | case "$GTK_CONFIG" in |
9392 | /*) | |
f6bcfd97 BP |
9393 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
9394 | ;; | |
698dcdb6 VZ |
9395 | ?:/*) |
9396 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
9397 | ;; | |
f6bcfd97 | 9398 | *) |
698dcdb6 VZ |
9399 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9400 | ac_dummy="$PATH" | |
9401 | for ac_dir in $ac_dummy; do | |
9402 | test -z "$ac_dir" && ac_dir=. | |
9403 | if test -f $ac_dir/$ac_word; then | |
9404 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
9405 | break | |
9406 | fi | |
9407 | done | |
9408 | IFS="$ac_save_ifs" | |
f6bcfd97 BP |
9409 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
9410 | ;; | |
9411 | esac | |
9412 | fi | |
698dcdb6 | 9413 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
f6bcfd97 | 9414 | if test -n "$GTK_CONFIG"; then |
698dcdb6 | 9415 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
f6bcfd97 | 9416 | else |
698dcdb6 | 9417 | echo "$ac_t""no" 1>&6 |
f6bcfd97 BP |
9418 | fi |
9419 | ||
9420 | min_gtk_version=1.2.7 | |
698dcdb6 | 9421 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
d08b457b | 9422 | echo "configure:9423: checking for GTK - version >= $min_gtk_version" >&5 |
f6bcfd97 BP |
9423 | no_gtk="" |
9424 | if test "$GTK_CONFIG" != "no" ; then | |
9425 | GTK_CFLAGS=`$GTK_CONFIG --cflags` | |
9426 | GTK_LIBS=`$GTK_CONFIG --libs gthread` | |
9427 | ac_save_CFLAGS="$CFLAGS" | |
9428 | ac_save_LIBS="$LIBS" | |
9429 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
9430 | LIBS="$LIBS $GTK_LIBS" | |
9431 | if test "$cross_compiling" = yes; then | |
9432 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
9433 | else | |
698dcdb6 | 9434 | cat > conftest.$ac_ext <<EOF |
d08b457b | 9435 | #line 9436 "configure" |
f6bcfd97 BP |
9436 | #include "confdefs.h" |
9437 | ||
9438 | #include <gtk/gtk.h> | |
9439 | #include <gtk/gtkfeatures.h> | |
9440 | #include <stdio.h> | |
9441 | #include <stdlib.h> | |
9442 | ||
9443 | int | |
9444 | main () | |
9445 | { | |
9446 | int major, minor, micro; | |
9447 | ||
9448 | if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) { | |
9449 | printf("%s, bad version string\n", "$min_gtk_version"); | |
9450 | exit(1); | |
9451 | } | |
9452 | ||
9453 | if ((GTK_MAJOR_VERSION != gtk_major_version) || | |
9454 | (GTK_MINOR_VERSION != gtk_minor_version) || | |
9455 | (GTK_MICRO_VERSION != gtk_micro_version)) { | |
9456 | printf("Headers vs. library version mismatch!\n"); | |
9457 | exit(1); | |
9458 | } | |
9459 | ||
9460 | if (gtk_minor_version == 1) return FALSE; | |
9461 | ||
9462 | return !((gtk_major_version > major) || | |
9463 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
9464 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))); | |
9465 | } | |
9466 | ||
698dcdb6 | 9467 | EOF |
d08b457b | 9468 | if { (eval echo configure:9469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 9469 | then |
f6bcfd97 BP |
9470 | : |
9471 | else | |
698dcdb6 VZ |
9472 | echo "configure: failed program was:" >&5 |
9473 | cat conftest.$ac_ext >&5 | |
9474 | rm -fr conftest* | |
9475 | no_gtk=yes | |
f6bcfd97 | 9476 | fi |
698dcdb6 | 9477 | rm -fr conftest* |
f6bcfd97 | 9478 | fi |
698dcdb6 | 9479 | |
f6bcfd97 BP |
9480 | CFLAGS="$ac_save_CFLAGS" |
9481 | LIBS="$ac_save_LIBS" | |
9482 | else | |
9483 | no_gtk=yes | |
9484 | fi | |
9485 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 9486 | echo "$ac_t""yes" 1>&6 |
8168de4c | 9487 | wx_cv_lib_gtk=1.2.7 |
f6bcfd97 | 9488 | else |
698dcdb6 | 9489 | echo "$ac_t""no" 1>&6 |
f6bcfd97 BP |
9490 | GTK_CFLAGS="" |
9491 | GTK_LIBS="" | |
9492 | : | |
9493 | fi | |
698dcdb6 VZ |
9494 | |
9495 | ||
f6bcfd97 | 9496 | |
8168de4c VZ |
9497 | fi |
9498 | ||
9499 | if test -z "$wx_cv_lib_gtk"; then | |
9500 | ||
f6bcfd97 BP |
9501 | if test x$gtk_config_exec_prefix != x ; then |
9502 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
9503 | if test x${GTK_CONFIG+set} != xset ; then | |
9504 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
9505 | fi | |
9506 | fi | |
9507 | if test x$gtk_config_prefix != x ; then | |
9508 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
9509 | if test x${GTK_CONFIG+set} != xset ; then | |
9510 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
9511 | fi | |
9512 | fi | |
9513 | ||
9514 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
9515 | set dummy gtk-config; ac_word=$2 | |
698dcdb6 | 9516 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
d08b457b | 9517 | echo "configure:9518: checking for $ac_word" >&5 |
698dcdb6 VZ |
9518 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
9519 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 9520 | else |
698dcdb6 VZ |
9521 | case "$GTK_CONFIG" in |
9522 | /*) | |
10f2d63a VZ |
9523 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
9524 | ;; | |
698dcdb6 VZ |
9525 | ?:/*) |
9526 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
9527 | ;; | |
10f2d63a | 9528 | *) |
698dcdb6 VZ |
9529 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9530 | ac_dummy="$PATH" | |
9531 | for ac_dir in $ac_dummy; do | |
9532 | test -z "$ac_dir" && ac_dir=. | |
9533 | if test -f $ac_dir/$ac_word; then | |
9534 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
9535 | break | |
9536 | fi | |
9537 | done | |
9538 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9539 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
9540 | ;; | |
9541 | esac | |
9542 | fi | |
698dcdb6 | 9543 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
10f2d63a | 9544 | if test -n "$GTK_CONFIG"; then |
698dcdb6 | 9545 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
10f2d63a | 9546 | else |
698dcdb6 | 9547 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9548 | fi |
9549 | ||
04165bec | 9550 | min_gtk_version=1.2.3 |
698dcdb6 | 9551 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
d08b457b | 9552 | echo "configure:9553: checking for GTK - version >= $min_gtk_version" >&5 |
10f2d63a VZ |
9553 | no_gtk="" |
9554 | if test "$GTK_CONFIG" != "no" ; then | |
9555 | GTK_CFLAGS=`$GTK_CONFIG --cflags` | |
2224580a | 9556 | GTK_LIBS=`$GTK_CONFIG --libs gthread` |
10f2d63a VZ |
9557 | ac_save_CFLAGS="$CFLAGS" |
9558 | ac_save_LIBS="$LIBS" | |
9559 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
9560 | LIBS="$LIBS $GTK_LIBS" | |
9561 | if test "$cross_compiling" = yes; then | |
9562 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
9563 | else | |
698dcdb6 | 9564 | cat > conftest.$ac_ext <<EOF |
d08b457b | 9565 | #line 9566 "configure" |
10f2d63a VZ |
9566 | #include "confdefs.h" |
9567 | ||
9568 | #include <gtk/gtk.h> | |
f49f2b0c | 9569 | #include <gtk/gtkfeatures.h> |
10f2d63a | 9570 | #include <stdio.h> |
32832908 | 9571 | #include <stdlib.h> |
10f2d63a VZ |
9572 | |
9573 | int | |
9574 | main () | |
9575 | { | |
9576 | int major, minor, micro; | |
9577 | ||
9578 | if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) { | |
9579 | printf("%s, bad version string\n", "$min_gtk_version"); | |
9580 | exit(1); | |
9581 | } | |
9582 | ||
f49f2b0c RR |
9583 | if ((GTK_MAJOR_VERSION != gtk_major_version) || |
9584 | (GTK_MINOR_VERSION != gtk_minor_version) || | |
9585 | (GTK_MICRO_VERSION != gtk_micro_version)) { | |
9586 | printf("Headers vs. library version mismatch!\n"); | |
9587 | exit(1); | |
9588 | } | |
9589 | ||
10f2d63a VZ |
9590 | if (gtk_minor_version == 1) return FALSE; |
9591 | ||
9592 | return !((gtk_major_version > major) || | |
9593 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
9594 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))); | |
9595 | } | |
9596 | ||
698dcdb6 | 9597 | EOF |
d08b457b | 9598 | if { (eval echo configure:9599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 9599 | then |
10f2d63a VZ |
9600 | : |
9601 | else | |
698dcdb6 VZ |
9602 | echo "configure: failed program was:" >&5 |
9603 | cat conftest.$ac_ext >&5 | |
9604 | rm -fr conftest* | |
9605 | no_gtk=yes | |
10f2d63a | 9606 | fi |
698dcdb6 | 9607 | rm -fr conftest* |
10f2d63a | 9608 | fi |
698dcdb6 | 9609 | |
10f2d63a VZ |
9610 | CFLAGS="$ac_save_CFLAGS" |
9611 | LIBS="$ac_save_LIBS" | |
9612 | else | |
9613 | no_gtk=yes | |
9614 | fi | |
9615 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 9616 | echo "$ac_t""yes" 1>&6 |
8168de4c | 9617 | wx_cv_lib_gtk=1.2.3 |
10f2d63a | 9618 | else |
698dcdb6 | 9619 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9620 | GTK_CFLAGS="" |
9621 | GTK_LIBS="" | |
7e99ad86 | 9622 | : |
10f2d63a | 9623 | fi |
698dcdb6 VZ |
9624 | |
9625 | ||
10f2d63a | 9626 | |
8168de4c VZ |
9627 | fi |
9628 | ||
9629 | if test -z "$wx_cv_lib_gtk"; then | |
9630 | wx_cv_lib_gtk=none | |
138be253 VZ |
9631 | else |
9632 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
9633 | wx_cv_libs_gtk=$GTK_LIBS | |
8168de4c VZ |
9634 | fi |
9635 | ||
1e6feb95 | 9636 | |
8168de4c | 9637 | fi |
703e0a69 | 9638 | |
698dcdb6 | 9639 | |
8168de4c VZ |
9640 | if test "$gtk_version_cached" = 1; then |
9641 | echo "$ac_t""$wx_cv_lib_gtk" 1>&6 | |
1e6feb95 | 9642 | fi |
698dcdb6 | 9643 | |
8168de4c VZ |
9644 | case "$wx_cv_lib_gtk" in |
9645 | 2.0) WXGTK20=1 | |
9646 | ;; | |
9647 | 1.2.7) WXGTK127=1 | |
d1a8d972 | 9648 | WXGTK12=1 |
8168de4c VZ |
9649 | ;; |
9650 | 1.2.3) WXGTK12=1 | |
9651 | ;; | |
9652 | *) { echo "configure: error: | |
9653 | Please check that gtk-config is in path, the directory | |
9654 | where GTK+ libraries are installed (returned by | |
9655 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
9656 | equivalent variable and GTK+ is version 1.2.3 or above. | |
9657 | " 1>&2; exit 1; } | |
9658 | ;; | |
9659 | esac | |
2224580a | 9660 | |
138be253 | 9661 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" |
11dfaa5f | 9662 | GUI_TK_LIBRARY="$wx_cv_libs_gtk" |
698dcdb6 | 9663 | |
1e6feb95 VZ |
9664 | AFMINSTALL=afminstall |
9665 | TOOLKIT=GTK | |
9666 | GUIDIST=GTK_DIST | |
7ec2881a | 9667 | |
1e6feb95 | 9668 | echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6 |
d08b457b | 9669 | echo "configure:9670: checking for gdk_im_open in -lgdk" >&5 |
698dcdb6 VZ |
9670 | ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'` |
9671 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9672 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7ec2881a | 9673 | else |
698dcdb6 | 9674 | ac_save_LIBS="$LIBS" |
7ec2881a | 9675 | LIBS="-lgdk $LIBS" |
698dcdb6 | 9676 | cat > conftest.$ac_ext <<EOF |
d08b457b | 9677 | #line 9678 "configure" |
7ec2881a RR |
9678 | #include "confdefs.h" |
9679 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9680 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9681 | builtin and then its argument prototype would still apply. */ |
9682 | char gdk_im_open(); | |
9683 | ||
9684 | int main() { | |
9685 | gdk_im_open() | |
9686 | ; return 0; } | |
9687 | EOF | |
d08b457b | 9688 | if { (eval echo configure:9689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9689 | rm -rf conftest* |
9690 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9691 | else | |
9692 | echo "configure: failed program was:" >&5 | |
9693 | cat conftest.$ac_ext >&5 | |
9694 | rm -rf conftest* | |
9695 | eval "ac_cv_lib_$ac_lib_var=no" | |
9696 | fi | |
9697 | rm -f conftest* | |
9698 | LIBS="$ac_save_LIBS" | |
9699 | ||
9700 | fi | |
9701 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9702 | echo "$ac_t""yes" 1>&6 | |
9703 | cat >> confdefs.h <<\EOF | |
7ec2881a RR |
9704 | #define HAVE_XIM 1 |
9705 | EOF | |
9706 | ||
698dcdb6 VZ |
9707 | else |
9708 | echo "$ac_t""no" 1>&6 | |
7ec2881a RR |
9709 | fi |
9710 | ||
1e6feb95 | 9711 | fi |
10f2d63a | 9712 | |
1e6feb95 VZ |
9713 | if test "$wxUSE_MGL" = 1; then |
9714 | ||
9715 | echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6 | |
d08b457b | 9716 | echo "configure:9717: checking for SciTech MGL library" >&5 |
1e6feb95 VZ |
9717 | if test "x$MGL_ROOT" = x ; then |
9718 | echo "$ac_t""not found" 1>&6 | |
9719 | { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; } | |
9720 | else | |
9721 | echo "$ac_t""$MGL_ROOT" 1>&6 | |
9722 | fi | |
9723 | ||
3a922bb4 RL |
9724 | mgl_os=linux/gcc/glibc |
9725 | mgl_lib_type="" | |
1e6feb95 VZ |
9726 | |
9727 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
3a922bb4 RL |
9728 | if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a ; then |
9729 | mgl_lib_type=debug | |
1e6feb95 VZ |
9730 | fi |
9731 | fi | |
3a922bb4 RL |
9732 | if test "x$mgl_lib_type" = x ; then |
9733 | if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a ; then | |
9734 | mgl_lib_type=release | |
1e6feb95 VZ |
9735 | else |
9736 | { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; } | |
9737 | fi | |
9738 | fi | |
9739 | ||
9740 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" | |
3a922bb4 | 9741 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" |
1e6feb95 VZ |
9742 | |
9743 | AFMINSTALL=afminstall | |
9744 | TOOLKIT=MGL | |
9745 | GUIDIST=MGL_DIST | |
9746 | fi | |
9747 | ||
9748 | if test "$wxUSE_WINE" = 1; then | |
3a922bb4 RL |
9749 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` |
9750 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
d08b457b | 9751 | echo "configure:9752: checking for windows.h" >&5 |
3a922bb4 RL |
9752 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9753 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9754 | else | |
9755 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 9756 | #line 9757 "configure" |
3a922bb4 RL |
9757 | #include "confdefs.h" |
9758 | #include <windows.h> | |
9759 | EOF | |
9760 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d08b457b | 9761 | { (eval echo configure:9762: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3a922bb4 RL |
9762 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9763 | if test -z "$ac_err"; then | |
9764 | rm -rf conftest* | |
9765 | eval "ac_cv_header_$ac_safe=yes" | |
9766 | else | |
9767 | echo "$ac_err" >&5 | |
9768 | echo "configure: failed program was:" >&5 | |
9769 | cat conftest.$ac_ext >&5 | |
9770 | rm -rf conftest* | |
9771 | eval "ac_cv_header_$ac_safe=no" | |
9772 | fi | |
9773 | rm -f conftest* | |
9774 | fi | |
9775 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9776 | echo "$ac_t""yes" 1>&6 | |
9777 | : | |
9778 | else | |
9779 | echo "$ac_t""no" 1>&6 | |
10f2d63a | 9780 | |
1e6feb95 | 9781 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } |
3a922bb4 RL |
9782 | |
9783 | fi | |
9784 | ||
10f2d63a | 9785 | |
3a922bb4 | 9786 | xpm_link="" |
1e6feb95 | 9787 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 |
d08b457b | 9788 | echo "configure:9789: checking for Xpm library" >&5 |
1e6feb95 | 9789 | |
10f2d63a VZ |
9790 | ac_find_libraries= |
9791 | for ac_dir in $SEARCH_LIB; | |
9792 | do | |
f11bdd03 | 9793 | for ac_extension in a so sl dylib; do |
10f2d63a VZ |
9794 | if test -f "$ac_dir/libXpm.$ac_extension"; then |
9795 | ac_find_libraries=$ac_dir | |
9796 | break 2 | |
9797 | fi | |
9798 | done | |
9799 | done | |
9800 | ||
1e6feb95 VZ |
9801 | if test "$ac_find_libraries" != "" ; then |
9802 | GUI_TK_LIBRARY="-L$ac_find_libraries" | |
3a922bb4 | 9803 | xpm_link="-lXpm" |
1e6feb95 | 9804 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
9805 | #define wxHAVE_LIB_XPM 1 |
9806 | EOF | |
9807 | ||
1e6feb95 VZ |
9808 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
9809 | else | |
9810 | echo "$ac_t""no" 1>&6 | |
9811 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
9812 | fi | |
10f2d63a | 9813 | |
3a922bb4 | 9814 | mesa_link="" |
1e6feb95 | 9815 | echo $ac_n "checking for Mesa library""... $ac_c" 1>&6 |
d08b457b | 9816 | echo "configure:9817: checking for Mesa library" >&5 |
1e6feb95 | 9817 | |
10f2d63a VZ |
9818 | ac_find_libraries= |
9819 | for ac_dir in $SEARCH_LIB; | |
9820 | do | |
f11bdd03 | 9821 | for ac_extension in a so sl dylib; do |
10f2d63a VZ |
9822 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then |
9823 | ac_find_libraries=$ac_dir | |
9824 | break 2 | |
9825 | fi | |
9826 | done | |
9827 | done | |
9828 | ||
1e6feb95 VZ |
9829 | if test "$ac_find_libraries" != "" ; then |
9830 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries" | |
3a922bb4 | 9831 | mesa_link="-lMesaGL" |
1e6feb95 VZ |
9832 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
9833 | else | |
9834 | { echo "configure: error: no" 1>&2; exit 1; } | |
9835 | fi | |
10f2d63a | 9836 | |
3a922bb4 | 9837 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine $mesa_link $xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses" |
1e6feb95 VZ |
9838 | TOOLKIT=MSW |
9839 | GUIDIST=MSW_DIST | |
3a922bb4 | 9840 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__" |
1e6feb95 | 9841 | fi |
698dcdb6 | 9842 | |
1e6feb95 VZ |
9843 | |
9844 | # If we find X, set shell vars x_includes and x_libraries to the | |
698dcdb6 VZ |
9845 | # paths, otherwise set no_x=yes. |
9846 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
9847 | # --without-x overrides everything else, but does not touch the cache. | |
9848 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
d08b457b | 9849 | echo "configure:9850: checking for X" >&5 |
ab9b9eab VZ |
9850 | |
9851 | # Check whether --with-x or --without-x was given. | |
9852 | if test "${with_x+set}" = set; then | |
9853 | withval="$with_x" | |
698dcdb6 VZ |
9854 | : |
9855 | fi | |
ba337fe7 | 9856 | |
ab9b9eab VZ |
9857 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
9858 | if test "x$with_x" = xno; then | |
9859 | # The user explicitly disabled X. | |
9860 | have_x=disabled | |
9861 | else | |
9862 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
9863 | # Both variables are already set. | |
9864 | have_x=yes | |
9865 | else | |
698dcdb6 VZ |
9866 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then |
9867 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab VZ |
9868 | else |
9869 | # One or both of the vars are not set, and there is no cached value. | |
698dcdb6 VZ |
9870 | ac_x_includes=NO ac_x_libraries=NO |
9871 | rm -fr conftestdir | |
9872 | if mkdir conftestdir; then | |
9873 | cd conftestdir | |
ab9b9eab | 9874 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
698dcdb6 | 9875 | cat > Imakefile <<'EOF' |
ab9b9eab VZ |
9876 | acfindx: |
9877 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
9878 | EOF | |
9879 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
9880 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
9881 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
9882 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
10f2d63a | 9883 | for ac_extension in a so sl; do |
ab9b9eab | 9884 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
698dcdb6 | 9885 | test -f $ac_im_libdir/libX11.$ac_extension; then |
ab9b9eab | 9886 | ac_im_usrlibdir=$ac_im_libdir; break |
10f2d63a VZ |
9887 | fi |
9888 | done | |
ab9b9eab VZ |
9889 | # Screen out bogus values from the imake configuration. They are |
9890 | # bogus both because they are the default anyway, and because | |
9891 | # using them would break gcc on systems where it needs fixed includes. | |
698dcdb6 | 9892 | case "$ac_im_incroot" in |
ab9b9eab | 9893 | /usr/include) ;; |
698dcdb6 | 9894 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; |
ab9b9eab | 9895 | esac |
698dcdb6 | 9896 | case "$ac_im_usrlibdir" in |
ab9b9eab | 9897 | /usr/lib | /lib) ;; |
698dcdb6 | 9898 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; |
ab9b9eab | 9899 | esac |
ba337fe7 | 9900 | fi |
ab9b9eab | 9901 | cd .. |
698dcdb6 | 9902 | rm -fr conftestdir |
ab9b9eab | 9903 | fi |
10f2d63a | 9904 | |
698dcdb6 VZ |
9905 | if test "$ac_x_includes" = NO; then |
9906 | # Guess where to find include files, by looking for this one X11 .h file. | |
9907 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
9908 | ||
ab9b9eab | 9909 | # First, try using that file with no special directory specified. |
698dcdb6 | 9910 | cat > conftest.$ac_ext <<EOF |
d08b457b | 9911 | #line 9912 "configure" |
ab9b9eab | 9912 | #include "confdefs.h" |
698dcdb6 VZ |
9913 | #include <$x_direct_test_include> |
9914 | EOF | |
9915 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d08b457b | 9916 | { (eval echo configure:9917: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
9917 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9918 | if test -z "$ac_err"; then | |
9919 | rm -rf conftest* | |
ab9b9eab VZ |
9920 | # We can compile using X headers with no special include directory. |
9921 | ac_x_includes= | |
9922 | else | |
698dcdb6 VZ |
9923 | echo "$ac_err" >&5 |
9924 | echo "configure: failed program was:" >&5 | |
ab9b9eab | 9925 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
9926 | rm -rf conftest* |
9927 | # Look for the header file in a standard set of common directories. | |
9928 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
9929 | for ac_dir in \ | |
9930 | /usr/X11/include \ | |
9931 | /usr/X11R6/include \ | |
9932 | /usr/X11R5/include \ | |
9933 | /usr/X11R4/include \ | |
9934 | \ | |
9935 | /usr/include/X11 \ | |
9936 | /usr/include/X11R6 \ | |
9937 | /usr/include/X11R5 \ | |
9938 | /usr/include/X11R4 \ | |
9939 | \ | |
9940 | /usr/local/X11/include \ | |
9941 | /usr/local/X11R6/include \ | |
9942 | /usr/local/X11R5/include \ | |
9943 | /usr/local/X11R4/include \ | |
9944 | \ | |
9945 | /usr/local/include/X11 \ | |
9946 | /usr/local/include/X11R6 \ | |
9947 | /usr/local/include/X11R5 \ | |
9948 | /usr/local/include/X11R4 \ | |
9949 | \ | |
9950 | /usr/X386/include \ | |
9951 | /usr/x386/include \ | |
9952 | /usr/XFree86/include/X11 \ | |
9953 | \ | |
9954 | /usr/include \ | |
9955 | /usr/local/include \ | |
9956 | /usr/unsupported/include \ | |
9957 | /usr/athena/include \ | |
9958 | /usr/local/x11r5/include \ | |
9959 | /usr/lpp/Xamples/include \ | |
9960 | \ | |
9961 | /usr/openwin/include \ | |
9962 | /usr/openwin/share/include \ | |
9963 | ; \ | |
9964 | do | |
9965 | if test -r "$ac_dir/$x_direct_test_include"; then | |
9966 | ac_x_includes=$ac_dir | |
9967 | break | |
9968 | fi | |
9969 | done | |
ab9b9eab | 9970 | fi |
698dcdb6 VZ |
9971 | rm -f conftest* |
9972 | fi # $ac_x_includes = NO | |
10f2d63a | 9973 | |
698dcdb6 | 9974 | if test "$ac_x_libraries" = NO; then |
ab9b9eab | 9975 | # Check for the libraries. |
698dcdb6 VZ |
9976 | |
9977 | test -z "$x_direct_test_library" && x_direct_test_library=Xt | |
9978 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
9979 | ||
ab9b9eab VZ |
9980 | # See if we find them without any special options. |
9981 | # Don't add to $LIBS permanently. | |
698dcdb6 VZ |
9982 | ac_save_LIBS="$LIBS" |
9983 | LIBS="-l$x_direct_test_library $LIBS" | |
9984 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 9985 | #line 9986 "configure" |
ab9b9eab | 9986 | #include "confdefs.h" |
698dcdb6 VZ |
9987 | |
9988 | int main() { | |
9989 | ${x_direct_test_function}() | |
9990 | ; return 0; } | |
9991 | EOF | |
d08b457b | 9992 | if { (eval echo configure:9993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9993 | rm -rf conftest* |
9994 | LIBS="$ac_save_LIBS" | |
ab9b9eab VZ |
9995 | # We can link X programs with no special library path. |
9996 | ac_x_libraries= | |
9997 | else | |
698dcdb6 VZ |
9998 | echo "configure: failed program was:" >&5 |
9999 | cat conftest.$ac_ext >&5 | |
10000 | rm -rf conftest* | |
10001 | LIBS="$ac_save_LIBS" | |
10002 | # First see if replacing the include by lib works. | |
10003 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
10004 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
10005 | /usr/X11/lib \ | |
10006 | /usr/X11R6/lib \ | |
10007 | /usr/X11R5/lib \ | |
10008 | /usr/X11R4/lib \ | |
10009 | \ | |
10010 | /usr/lib/X11 \ | |
10011 | /usr/lib/X11R6 \ | |
10012 | /usr/lib/X11R5 \ | |
10013 | /usr/lib/X11R4 \ | |
10014 | \ | |
10015 | /usr/local/X11/lib \ | |
10016 | /usr/local/X11R6/lib \ | |
10017 | /usr/local/X11R5/lib \ | |
10018 | /usr/local/X11R4/lib \ | |
10019 | \ | |
10020 | /usr/local/lib/X11 \ | |
10021 | /usr/local/lib/X11R6 \ | |
10022 | /usr/local/lib/X11R5 \ | |
10023 | /usr/local/lib/X11R4 \ | |
10024 | \ | |
10025 | /usr/X386/lib \ | |
10026 | /usr/x386/lib \ | |
10027 | /usr/XFree86/lib/X11 \ | |
10028 | \ | |
10029 | /usr/lib \ | |
10030 | /usr/local/lib \ | |
10031 | /usr/unsupported/lib \ | |
10032 | /usr/athena/lib \ | |
10033 | /usr/local/x11r5/lib \ | |
10034 | /usr/lpp/Xamples/lib \ | |
10035 | /lib/usr/lib/X11 \ | |
10036 | \ | |
10037 | /usr/openwin/lib \ | |
10038 | /usr/openwin/share/lib \ | |
10039 | ; \ | |
ab9b9eab VZ |
10040 | do |
10041 | for ac_extension in a so sl; do | |
698dcdb6 | 10042 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then |
ab9b9eab VZ |
10043 | ac_x_libraries=$ac_dir |
10044 | break 2 | |
10f2d63a | 10045 | fi |
10f2d63a | 10046 | done |
ab9b9eab VZ |
10047 | done |
10048 | fi | |
698dcdb6 VZ |
10049 | rm -f conftest* |
10050 | fi # $ac_x_libraries = NO | |
10f2d63a | 10051 | |
698dcdb6 | 10052 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
ab9b9eab VZ |
10053 | # Didn't find X anywhere. Cache the known absence of X. |
10054 | ac_cv_have_x="have_x=no" | |
10055 | else | |
10056 | # Record where we found X for the cache. | |
10057 | ac_cv_have_x="have_x=yes \ | |
10058 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
10059 | fi | |
10060 | fi | |
10f2d63a | 10061 | fi |
ab9b9eab VZ |
10062 | eval "$ac_cv_have_x" |
10063 | fi # $with_x != no | |
10f2d63a | 10064 | |
ab9b9eab | 10065 | if test "$have_x" != yes; then |
698dcdb6 | 10066 | echo "$ac_t""$have_x" 1>&6 |
ab9b9eab VZ |
10067 | no_x=yes |
10068 | else | |
10069 | # If each of the values was on the command line, it overrides each guess. | |
10070 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
10071 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
10072 | # Update the cache value to reflect the command line values. | |
10073 | ac_cv_have_x="have_x=yes \ | |
10074 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
698dcdb6 | 10075 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 |
ab9b9eab | 10076 | fi |
10f2d63a | 10077 | |
ab9b9eab VZ |
10078 | if test "$no_x" = yes; then |
10079 | # Not all programs may use this symbol, but it does not hurt to define it. | |
698dcdb6 | 10080 | cat >> confdefs.h <<\EOF |
ab9b9eab VZ |
10081 | #define X_DISPLAY_MISSING 1 |
10082 | EOF | |
10f2d63a | 10083 | |
ab9b9eab VZ |
10084 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
10085 | else | |
10086 | if test -n "$x_includes"; then | |
10087 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
10f2d63a VZ |
10088 | fi |
10089 | ||
ab9b9eab VZ |
10090 | # It would also be nice to do this for all -L options, not just this one. |
10091 | if test -n "$x_libraries"; then | |
10092 | X_LIBS="$X_LIBS -L$x_libraries" | |
10093 | # For Solaris; some versions of Sun CC require a space after -R and | |
10094 | # others require no space. Words are not sufficient . . . . | |
698dcdb6 | 10095 | case "`(uname -sr) 2>/dev/null`" in |
ab9b9eab | 10096 | "SunOS 5"*) |
698dcdb6 | 10097 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 |
d08b457b | 10098 | echo "configure:10099: checking whether -R must be followed by a space" >&5 |
698dcdb6 VZ |
10099 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
10100 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 10101 | #line 10102 "configure" |
ab9b9eab | 10102 | #include "confdefs.h" |
10f2d63a | 10103 | |
698dcdb6 | 10104 | int main() { |
788deba1 | 10105 | |
698dcdb6 VZ |
10106 | ; return 0; } |
10107 | EOF | |
d08b457b | 10108 | if { (eval echo configure:10109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 10109 | rm -rf conftest* |
ab9b9eab VZ |
10110 | ac_R_nospace=yes |
10111 | else | |
698dcdb6 VZ |
10112 | echo "configure: failed program was:" >&5 |
10113 | cat conftest.$ac_ext >&5 | |
10114 | rm -rf conftest* | |
10115 | ac_R_nospace=no | |
ab9b9eab | 10116 | fi |
698dcdb6 | 10117 | rm -f conftest* |
ab9b9eab | 10118 | if test $ac_R_nospace = yes; then |
698dcdb6 | 10119 | echo "$ac_t""no" 1>&6 |
ab9b9eab VZ |
10120 | X_LIBS="$X_LIBS -R$x_libraries" |
10121 | else | |
10122 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
698dcdb6 | 10123 | cat > conftest.$ac_ext <<EOF |
d08b457b | 10124 | #line 10125 "configure" |
ab9b9eab | 10125 | #include "confdefs.h" |
788deba1 | 10126 | |
698dcdb6 | 10127 | int main() { |
ab9b9eab | 10128 | |
698dcdb6 VZ |
10129 | ; return 0; } |
10130 | EOF | |
d08b457b | 10131 | if { (eval echo configure:10132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 10132 | rm -rf conftest* |
ab9b9eab VZ |
10133 | ac_R_space=yes |
10134 | else | |
698dcdb6 VZ |
10135 | echo "configure: failed program was:" >&5 |
10136 | cat conftest.$ac_ext >&5 | |
10137 | rm -rf conftest* | |
10138 | ac_R_space=no | |
ab9b9eab | 10139 | fi |
698dcdb6 | 10140 | rm -f conftest* |
ab9b9eab | 10141 | if test $ac_R_space = yes; then |
698dcdb6 | 10142 | echo "$ac_t""yes" 1>&6 |
ab9b9eab VZ |
10143 | X_LIBS="$X_LIBS -R $x_libraries" |
10144 | else | |
698dcdb6 | 10145 | echo "$ac_t""neither works" 1>&6 |
ab9b9eab VZ |
10146 | fi |
10147 | fi | |
698dcdb6 | 10148 | LIBS="$ac_xsave_LIBS" |
ab9b9eab VZ |
10149 | esac |
10150 | fi | |
10151 | ||
10152 | # Check for system-dependent libraries X programs must link with. | |
10153 | # Do this before checking for the system-independent R6 libraries | |
10154 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
10155 | ||
10156 | if test "$ISC" = yes; then | |
10157 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
10158 | else | |
698dcdb6 VZ |
10159 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X |
10160 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
ab9b9eab | 10161 | # the Alpha needs dnet_stub (dnet does not exist). |
698dcdb6 | 10162 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
d08b457b | 10163 | echo "configure:10164: checking for dnet_ntoa in -ldnet" >&5 |
698dcdb6 VZ |
10164 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
10165 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10166 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 10167 | else |
698dcdb6 | 10168 | ac_save_LIBS="$LIBS" |
ab9b9eab | 10169 | LIBS="-ldnet $LIBS" |
698dcdb6 | 10170 | cat > conftest.$ac_ext <<EOF |
d08b457b | 10171 | #line 10172 "configure" |
ab9b9eab VZ |
10172 | #include "confdefs.h" |
10173 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10174 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10175 | builtin and then its argument prototype would still apply. */ |
10176 | char dnet_ntoa(); | |
10177 | ||
10178 | int main() { | |
10179 | dnet_ntoa() | |
10180 | ; return 0; } | |
10181 | EOF | |
d08b457b | 10182 | if { (eval echo configure:10183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10183 | rm -rf conftest* |
10184 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10185 | else | |
10186 | echo "configure: failed program was:" >&5 | |
10187 | cat conftest.$ac_ext >&5 | |
10188 | rm -rf conftest* | |
10189 | eval "ac_cv_lib_$ac_lib_var=no" | |
10190 | fi | |
10191 | rm -f conftest* | |
10192 | LIBS="$ac_save_LIBS" | |
10193 | ||
10194 | fi | |
10195 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10196 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 10197 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
698dcdb6 VZ |
10198 | else |
10199 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
10200 | fi |
10201 | ||
10202 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
698dcdb6 | 10203 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
d08b457b | 10204 | echo "configure:10205: checking for dnet_ntoa in -ldnet_stub" >&5 |
698dcdb6 VZ |
10205 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
10206 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10207 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 10208 | else |
698dcdb6 | 10209 | ac_save_LIBS="$LIBS" |
ab9b9eab | 10210 | LIBS="-ldnet_stub $LIBS" |
698dcdb6 | 10211 | cat > conftest.$ac_ext <<EOF |
d08b457b | 10212 | #line 10213 "configure" |
ab9b9eab VZ |
10213 | #include "confdefs.h" |
10214 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10215 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10216 | builtin and then its argument prototype would still apply. */ |
10217 | char dnet_ntoa(); | |
10218 | ||
10219 | int main() { | |
10220 | dnet_ntoa() | |
10221 | ; return 0; } | |
10222 | EOF | |
d08b457b | 10223 | if { (eval echo configure:10224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10224 | rm -rf conftest* |
10225 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10226 | else | |
10227 | echo "configure: failed program was:" >&5 | |
10228 | cat conftest.$ac_ext >&5 | |
10229 | rm -rf conftest* | |
10230 | eval "ac_cv_lib_$ac_lib_var=no" | |
10231 | fi | |
10232 | rm -f conftest* | |
10233 | LIBS="$ac_save_LIBS" | |
10234 | ||
10235 | fi | |
10236 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10237 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 10238 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
698dcdb6 VZ |
10239 | else |
10240 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
10241 | fi |
10242 | ||
10243 | fi | |
10244 | ||
10245 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
10246 | # to get the SysV transport functions. | |
698dcdb6 | 10247 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
ab9b9eab VZ |
10248 | # needs -lnsl. |
10249 | # The nsl library prevents programs from opening the X display | |
698dcdb6 VZ |
10250 | # on Irix 5.2, according to dickey@clark.net. |
10251 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
d08b457b | 10252 | echo "configure:10253: checking for gethostbyname" >&5 |
698dcdb6 VZ |
10253 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
10254 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10255 | else | |
10256 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 10257 | #line 10258 "configure" |
ab9b9eab VZ |
10258 | #include "confdefs.h" |
10259 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 10260 | which can conflict with char gethostbyname(); below. */ |
ab9b9eab VZ |
10261 | #include <assert.h> |
10262 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10263 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10264 | builtin and then its argument prototype would still apply. */ |
10265 | char gethostbyname(); | |
10266 | ||
10267 | int main() { | |
ab9b9eab VZ |
10268 | |
10269 | /* The GNU C library defines this for functions which it implements | |
10270 | to always fail with ENOSYS. Some functions are actually named | |
10271 | something starting with __ and the normal name is an alias. */ | |
10272 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
10273 | choke me | |
10274 | #else | |
698dcdb6 | 10275 | gethostbyname(); |
ab9b9eab VZ |
10276 | #endif |
10277 | ||
698dcdb6 VZ |
10278 | ; return 0; } |
10279 | EOF | |
d08b457b | 10280 | if { (eval echo configure:10281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10281 | rm -rf conftest* |
10282 | eval "ac_cv_func_gethostbyname=yes" | |
10283 | else | |
10284 | echo "configure: failed program was:" >&5 | |
10285 | cat conftest.$ac_ext >&5 | |
10286 | rm -rf conftest* | |
10287 | eval "ac_cv_func_gethostbyname=no" | |
10288 | fi | |
10289 | rm -f conftest* | |
10290 | fi | |
10291 | ||
10292 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
10293 | echo "$ac_t""yes" 1>&6 | |
10294 | : | |
10295 | else | |
10296 | echo "$ac_t""no" 1>&6 | |
10297 | fi | |
ab9b9eab VZ |
10298 | |
10299 | if test $ac_cv_func_gethostbyname = no; then | |
698dcdb6 | 10300 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
d08b457b | 10301 | echo "configure:10302: checking for gethostbyname in -lnsl" >&5 |
698dcdb6 VZ |
10302 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
10303 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10304 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 10305 | else |
698dcdb6 | 10306 | ac_save_LIBS="$LIBS" |
ab9b9eab | 10307 | LIBS="-lnsl $LIBS" |
698dcdb6 | 10308 | cat > conftest.$ac_ext <<EOF |
d08b457b | 10309 | #line 10310 "configure" |
ab9b9eab VZ |
10310 | #include "confdefs.h" |
10311 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10312 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10313 | builtin and then its argument prototype would still apply. */ |
10314 | char gethostbyname(); | |
6232543b | 10315 | |
698dcdb6 VZ |
10316 | int main() { |
10317 | gethostbyname() | |
10318 | ; return 0; } | |
10319 | EOF | |
d08b457b | 10320 | if { (eval echo configure:10321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10321 | rm -rf conftest* |
10322 | eval "ac_cv_lib_$ac_lib_var=yes" | |
703e0a69 | 10323 | else |
698dcdb6 VZ |
10324 | echo "configure: failed program was:" >&5 |
10325 | cat conftest.$ac_ext >&5 | |
10326 | rm -rf conftest* | |
10327 | eval "ac_cv_lib_$ac_lib_var=no" | |
10328 | fi | |
10329 | rm -f conftest* | |
10330 | LIBS="$ac_save_LIBS" | |
1e487827 | 10331 | |
698dcdb6 VZ |
10332 | fi |
10333 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10334 | echo "$ac_t""yes" 1>&6 | |
10335 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
10336 | else | |
10337 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
10338 | fi |
10339 | ||
10340 | fi | |
10341 | ||
10342 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
10343 | # socket/setsockopt and other routines are undefined under SCO ODT | |
10344 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
698dcdb6 VZ |
10345 | # on later versions), says simon@lia.di.epfl.ch: it contains |
10346 | # gethostby* variants that don't use the nameserver (or something). | |
10347 | # -lsocket must be given before -lnsl if both are needed. | |
10348 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
10349 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
d08b457b | 10350 | echo "configure:10351: checking for connect" >&5 |
698dcdb6 VZ |
10351 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
10352 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10353 | else | |
10354 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 10355 | #line 10356 "configure" |
ab9b9eab VZ |
10356 | #include "confdefs.h" |
10357 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 10358 | which can conflict with char connect(); below. */ |
ab9b9eab VZ |
10359 | #include <assert.h> |
10360 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10361 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10362 | builtin and then its argument prototype would still apply. */ |
10363 | char connect(); | |
10364 | ||
10365 | int main() { | |
ab9b9eab VZ |
10366 | |
10367 | /* The GNU C library defines this for functions which it implements | |
10368 | to always fail with ENOSYS. Some functions are actually named | |
10369 | something starting with __ and the normal name is an alias. */ | |
10370 | #if defined (__stub_connect) || defined (__stub___connect) | |
10371 | choke me | |
10372 | #else | |
698dcdb6 | 10373 | connect(); |
ab9b9eab VZ |
10374 | #endif |
10375 | ||
698dcdb6 VZ |
10376 | ; return 0; } |
10377 | EOF | |
d08b457b | 10378 | if { (eval echo configure:10379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10379 | rm -rf conftest* |
10380 | eval "ac_cv_func_connect=yes" | |
10381 | else | |
10382 | echo "configure: failed program was:" >&5 | |
10383 | cat conftest.$ac_ext >&5 | |
10384 | rm -rf conftest* | |
10385 | eval "ac_cv_func_connect=no" | |
10386 | fi | |
10387 | rm -f conftest* | |
10388 | fi | |
10389 | ||
10390 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
10391 | echo "$ac_t""yes" 1>&6 | |
10392 | : | |
10393 | else | |
10394 | echo "$ac_t""no" 1>&6 | |
10395 | fi | |
ab9b9eab VZ |
10396 | |
10397 | if test $ac_cv_func_connect = no; then | |
698dcdb6 | 10398 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
d08b457b | 10399 | echo "configure:10400: checking for connect in -lsocket" >&5 |
698dcdb6 VZ |
10400 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
10401 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10402 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 10403 | else |
698dcdb6 | 10404 | ac_save_LIBS="$LIBS" |
ab9b9eab | 10405 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
698dcdb6 | 10406 | cat > conftest.$ac_ext <<EOF |
d08b457b | 10407 | #line 10408 "configure" |
ab9b9eab VZ |
10408 | #include "confdefs.h" |
10409 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10410 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10411 | builtin and then its argument prototype would still apply. */ |
10412 | char connect(); | |
10413 | ||
10414 | int main() { | |
10415 | connect() | |
10416 | ; return 0; } | |
10417 | EOF | |
d08b457b | 10418 | if { (eval echo configure:10419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10419 | rm -rf conftest* |
10420 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10421 | else | |
10422 | echo "configure: failed program was:" >&5 | |
10423 | cat conftest.$ac_ext >&5 | |
10424 | rm -rf conftest* | |
10425 | eval "ac_cv_lib_$ac_lib_var=no" | |
10426 | fi | |
10427 | rm -f conftest* | |
10428 | LIBS="$ac_save_LIBS" | |
10429 | ||
10430 | fi | |
10431 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10432 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 10433 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
698dcdb6 VZ |
10434 | else |
10435 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
10436 | fi |
10437 | ||
10438 | fi | |
10439 | ||
698dcdb6 VZ |
10440 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
10441 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
d08b457b | 10442 | echo "configure:10443: checking for remove" >&5 |
698dcdb6 VZ |
10443 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
10444 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 10445 | else |
698dcdb6 | 10446 | cat > conftest.$ac_ext <<EOF |
d08b457b | 10447 | #line 10448 "configure" |
ab9b9eab VZ |
10448 | #include "confdefs.h" |
10449 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 10450 | which can conflict with char remove(); below. */ |
ab9b9eab VZ |
10451 | #include <assert.h> |
10452 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10453 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10454 | builtin and then its argument prototype would still apply. */ |
10455 | char remove(); | |
10456 | ||
10457 | int main() { | |
ab9b9eab VZ |
10458 | |
10459 | /* The GNU C library defines this for functions which it implements | |
10460 | to always fail with ENOSYS. Some functions are actually named | |
10461 | something starting with __ and the normal name is an alias. */ | |
10462 | #if defined (__stub_remove) || defined (__stub___remove) | |
10463 | choke me | |
10464 | #else | |
698dcdb6 | 10465 | remove(); |
ab9b9eab VZ |
10466 | #endif |
10467 | ||
698dcdb6 VZ |
10468 | ; return 0; } |
10469 | EOF | |
d08b457b | 10470 | if { (eval echo configure:10471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10471 | rm -rf conftest* |
10472 | eval "ac_cv_func_remove=yes" | |
10473 | else | |
10474 | echo "configure: failed program was:" >&5 | |
10475 | cat conftest.$ac_ext >&5 | |
10476 | rm -rf conftest* | |
10477 | eval "ac_cv_func_remove=no" | |
10478 | fi | |
10479 | rm -f conftest* | |
10480 | fi | |
10481 | ||
10482 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
10483 | echo "$ac_t""yes" 1>&6 | |
10484 | : | |
10485 | else | |
10486 | echo "$ac_t""no" 1>&6 | |
10487 | fi | |
ab9b9eab VZ |
10488 | |
10489 | if test $ac_cv_func_remove = no; then | |
698dcdb6 | 10490 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
d08b457b | 10491 | echo "configure:10492: checking for remove in -lposix" >&5 |
698dcdb6 VZ |
10492 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
10493 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10494 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 10495 | else |
698dcdb6 | 10496 | ac_save_LIBS="$LIBS" |
ab9b9eab | 10497 | LIBS="-lposix $LIBS" |
698dcdb6 | 10498 | cat > conftest.$ac_ext <<EOF |
d08b457b | 10499 | #line 10500 "configure" |
ab9b9eab VZ |
10500 | #include "confdefs.h" |
10501 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10502 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10503 | builtin and then its argument prototype would still apply. */ |
10504 | char remove(); | |
10505 | ||
10506 | int main() { | |
10507 | remove() | |
10508 | ; return 0; } | |
10509 | EOF | |
d08b457b | 10510 | if { (eval echo configure:10511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10511 | rm -rf conftest* |
10512 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10513 | else | |
10514 | echo "configure: failed program was:" >&5 | |
10515 | cat conftest.$ac_ext >&5 | |
10516 | rm -rf conftest* | |
10517 | eval "ac_cv_lib_$ac_lib_var=no" | |
10518 | fi | |
10519 | rm -f conftest* | |
10520 | LIBS="$ac_save_LIBS" | |
10521 | ||
10522 | fi | |
10523 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10524 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 10525 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
698dcdb6 VZ |
10526 | else |
10527 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
10528 | fi |
10529 | ||
10530 | fi | |
10531 | ||
10532 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
698dcdb6 | 10533 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
d08b457b | 10534 | echo "configure:10535: checking for shmat" >&5 |
698dcdb6 VZ |
10535 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
10536 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 10537 | else |
698dcdb6 | 10538 | cat > conftest.$ac_ext <<EOF |
d08b457b | 10539 | #line 10540 "configure" |
ab9b9eab VZ |
10540 | #include "confdefs.h" |
10541 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 10542 | which can conflict with char shmat(); below. */ |
ab9b9eab VZ |
10543 | #include <assert.h> |
10544 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10545 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10546 | builtin and then its argument prototype would still apply. */ |
10547 | char shmat(); | |
10548 | ||
10549 | int main() { | |
ab9b9eab VZ |
10550 | |
10551 | /* The GNU C library defines this for functions which it implements | |
10552 | to always fail with ENOSYS. Some functions are actually named | |
10553 | something starting with __ and the normal name is an alias. */ | |
10554 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
10555 | choke me | |
10556 | #else | |
698dcdb6 | 10557 | shmat(); |
ab9b9eab VZ |
10558 | #endif |
10559 | ||
698dcdb6 VZ |
10560 | ; return 0; } |
10561 | EOF | |
d08b457b | 10562 | if { (eval echo configure:10563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10563 | rm -rf conftest* |
10564 | eval "ac_cv_func_shmat=yes" | |
10565 | else | |
10566 | echo "configure: failed program was:" >&5 | |
10567 | cat conftest.$ac_ext >&5 | |
10568 | rm -rf conftest* | |
10569 | eval "ac_cv_func_shmat=no" | |
10570 | fi | |
10571 | rm -f conftest* | |
10572 | fi | |
10573 | ||
10574 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
10575 | echo "$ac_t""yes" 1>&6 | |
10576 | : | |
10577 | else | |
10578 | echo "$ac_t""no" 1>&6 | |
10579 | fi | |
ab9b9eab VZ |
10580 | |
10581 | if test $ac_cv_func_shmat = no; then | |
698dcdb6 | 10582 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
d08b457b | 10583 | echo "configure:10584: checking for shmat in -lipc" >&5 |
698dcdb6 VZ |
10584 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
10585 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10586 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 10587 | else |
698dcdb6 | 10588 | ac_save_LIBS="$LIBS" |
ab9b9eab | 10589 | LIBS="-lipc $LIBS" |
698dcdb6 | 10590 | cat > conftest.$ac_ext <<EOF |
d08b457b | 10591 | #line 10592 "configure" |
ab9b9eab VZ |
10592 | #include "confdefs.h" |
10593 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10594 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10595 | builtin and then its argument prototype would still apply. */ |
10596 | char shmat(); | |
10597 | ||
10598 | int main() { | |
10599 | shmat() | |
10600 | ; return 0; } | |
10601 | EOF | |
d08b457b | 10602 | if { (eval echo configure:10603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10603 | rm -rf conftest* |
10604 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10605 | else | |
10606 | echo "configure: failed program was:" >&5 | |
10607 | cat conftest.$ac_ext >&5 | |
10608 | rm -rf conftest* | |
10609 | eval "ac_cv_lib_$ac_lib_var=no" | |
10610 | fi | |
10611 | rm -f conftest* | |
10612 | LIBS="$ac_save_LIBS" | |
10613 | ||
10614 | fi | |
10615 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10616 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 10617 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
698dcdb6 VZ |
10618 | else |
10619 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
10620 | fi |
10621 | ||
10622 | fi | |
10623 | fi | |
10624 | ||
10625 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
698dcdb6 | 10626 | ac_save_LDFLAGS="$LDFLAGS" |
ab9b9eab VZ |
10627 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
10628 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
10629 | # check for ICE first), but we must link in the order -lSM -lICE or | |
10630 | # we get undefined symbols. So assume we have SM if we have ICE. | |
10631 | # These have to be linked with before -lX11, unlike the other | |
10632 | # libraries we check for below, so use a different variable. | |
698dcdb6 VZ |
10633 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
10634 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
d08b457b | 10635 | echo "configure:10636: checking for IceConnectionNumber in -lICE" >&5 |
698dcdb6 VZ |
10636 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
10637 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10638 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10639 | else | |
10640 | ac_save_LIBS="$LIBS" | |
ab9b9eab | 10641 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
698dcdb6 | 10642 | cat > conftest.$ac_ext <<EOF |
d08b457b | 10643 | #line 10644 "configure" |
ab9b9eab VZ |
10644 | #include "confdefs.h" |
10645 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10646 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10647 | builtin and then its argument prototype would still apply. */ |
10648 | char IceConnectionNumber(); | |
10649 | ||
10650 | int main() { | |
10651 | IceConnectionNumber() | |
10652 | ; return 0; } | |
10653 | EOF | |
d08b457b | 10654 | if { (eval echo configure:10655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10655 | rm -rf conftest* |
10656 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10657 | else | |
10658 | echo "configure: failed program was:" >&5 | |
10659 | cat conftest.$ac_ext >&5 | |
10660 | rm -rf conftest* | |
10661 | eval "ac_cv_lib_$ac_lib_var=no" | |
10662 | fi | |
10663 | rm -f conftest* | |
10664 | LIBS="$ac_save_LIBS" | |
10665 | ||
10666 | fi | |
10667 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10668 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 10669 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
698dcdb6 VZ |
10670 | else |
10671 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
10672 | fi |
10673 | ||
698dcdb6 | 10674 | LDFLAGS="$ac_save_LDFLAGS" |
ab9b9eab VZ |
10675 | |
10676 | fi | |
10677 | ||
1e6feb95 VZ |
10678 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
10679 | LDFLAGS="$LDFLAGS $X_LIBS" | |
ab9b9eab | 10680 | |
1e6feb95 VZ |
10681 | if test "$wxUSE_MOTIF" = 1; then |
10682 | if test "$no_x" = "yes"; then | |
10683 | { echo "configure: error: X11 not found" 1>&2; exit 1; } | |
10684 | fi | |
ab9b9eab | 10685 | |
1e6feb95 VZ |
10686 | GUI_TK_LIBRARY="$X_LIBS" |
10687 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
1e6feb95 | 10688 | AFMINSTALL=afminstall |
1e6feb95 | 10689 | COMPILED_X_PROGRAM=0 |
cd6d6d5b | 10690 | |
1e6feb95 | 10691 | echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6 |
d08b457b | 10692 | echo "configure:10693: checking for Motif/Lesstif headers" >&5 |
1e6feb95 | 10693 | |
ab9b9eab VZ |
10694 | ac_find_includes= |
10695 | for ac_dir in $SEARCH_INCLUDE; | |
10696 | do | |
10697 | if test -f "$ac_dir/Xm/Xm.h"; then | |
10698 | ac_find_includes=$ac_dir | |
10699 | break | |
10700 | fi | |
10701 | done | |
10702 | ||
1e6feb95 VZ |
10703 | if test "$ac_find_includes" != "" ; then |
10704 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
10705 | else | |
10706 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 10707 | #line 10708 "configure" |
cd6d6d5b VZ |
10708 | #include "confdefs.h" |
10709 | ||
1e6feb95 VZ |
10710 | #include <Xm/Xm.h> |
10711 | ||
698dcdb6 | 10712 | int main() { |
cd6d6d5b | 10713 | |
1e6feb95 | 10714 | int version; |
1e6feb95 VZ |
10715 | version = xmUseVersion; |
10716 | ||
698dcdb6 VZ |
10717 | ; return 0; } |
10718 | EOF | |
d08b457b | 10719 | if { (eval echo configure:10720: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
10720 | rm -rf conftest* |
10721 | ||
1e6feb95 VZ |
10722 | echo "$ac_t""found in default search path" 1>&6 |
10723 | COMPILED_X_PROGRAM=1 | |
10724 | ||
cd6d6d5b | 10725 | else |
698dcdb6 VZ |
10726 | echo "configure: failed program was:" >&5 |
10727 | cat conftest.$ac_ext >&5 | |
10728 | rm -rf conftest* | |
10729 | ||
1e6feb95 VZ |
10730 | echo "$ac_t""no" 1>&6 |
10731 | { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; } | |
10732 | ||
698dcdb6 | 10733 | |
cd6d6d5b | 10734 | fi |
698dcdb6 | 10735 | rm -f conftest* |
1e6feb95 | 10736 | fi |
ab9b9eab | 10737 | |
1e6feb95 VZ |
10738 | if test "$COMPILED_X_PROGRAM" = 0; then |
10739 | echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6 | |
d08b457b | 10740 | echo "configure:10741: checking for Motif/Lesstif library" >&5 |
1e6feb95 | 10741 | |
ab9b9eab VZ |
10742 | ac_find_libraries= |
10743 | for ac_dir in $SEARCH_LIB; | |
10744 | do | |
f11bdd03 | 10745 | for ac_extension in a so sl dylib; do |
ab9b9eab VZ |
10746 | if test -f "$ac_dir/libXm.$ac_extension"; then |
10747 | ac_find_libraries=$ac_dir | |
10748 | break 2 | |
10749 | fi | |
10750 | done | |
10751 | done | |
10752 | ||
1e6feb95 VZ |
10753 | if test "$ac_find_libraries" != "" ; then |
10754 | ||
ab9b9eab VZ |
10755 | ac_path_to_include=$ac_find_includes |
10756 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
10757 | result=$? | |
10758 | if test $result = 0; then | |
10759 | ac_path_to_include="" | |
10760 | else | |
10761 | ac_path_to_include="-I$ac_find_includes" | |
10762 | fi | |
10763 | ||
1e6feb95 | 10764 | |
ab9b9eab VZ |
10765 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
10766 | result=$? | |
10767 | if test $result = 0; then | |
10768 | ac_path_to_link="" | |
10769 | else | |
10770 | ac_path_to_link="-L$ac_find_libraries" | |
10771 | fi | |
10772 | ||
698dcdb6 | 10773 | |
1e6feb95 VZ |
10774 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" |
10775 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include" | |
10776 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
10777 | else | |
10778 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 10779 | #line 10780 "configure" |
cd6d6d5b | 10780 | #include "confdefs.h" |
ab9b9eab | 10781 | |
1e6feb95 VZ |
10782 | #include <Xm/Xm.h> |
10783 | ||
698dcdb6 | 10784 | int main() { |
ab9b9eab | 10785 | |
1e6feb95 | 10786 | int version; |
1e6feb95 VZ |
10787 | version = xmUseVersion; |
10788 | ||
698dcdb6 VZ |
10789 | ; return 0; } |
10790 | EOF | |
d08b457b | 10791 | if { (eval echo configure:10792: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
10792 | rm -rf conftest* |
10793 | ||
1e6feb95 VZ |
10794 | echo "$ac_t""found in default search path" 1>&6 |
10795 | COMPILED_X_PROGRAM=1 | |
10796 | ||
cd6d6d5b | 10797 | else |
698dcdb6 VZ |
10798 | echo "configure: failed program was:" >&5 |
10799 | cat conftest.$ac_ext >&5 | |
10800 | rm -rf conftest* | |
10801 | ||
1e6feb95 VZ |
10802 | echo "$ac_t""no" 1>&6 |
10803 | { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; } | |
10804 | ||
698dcdb6 | 10805 | |
cd6d6d5b | 10806 | fi |
698dcdb6 | 10807 | rm -f conftest* |
1e6feb95 | 10808 | fi |
cd6d6d5b | 10809 | fi |
ab9b9eab | 10810 | |
3a922bb4 | 10811 | xpm_link="" |
1e6feb95 | 10812 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 |
d08b457b | 10813 | echo "configure:10814: checking for Xpm library" >&5 |
1e6feb95 | 10814 | |
ab9b9eab VZ |
10815 | ac_find_libraries= |
10816 | for ac_dir in $SEARCH_LIB; | |
10817 | do | |
f11bdd03 | 10818 | for ac_extension in a so sl dylib; do |
ab9b9eab VZ |
10819 | if test -f "$ac_dir/libXpm.$ac_extension"; then |
10820 | ac_find_libraries=$ac_dir | |
10821 | break 2 | |
10822 | fi | |
10823 | done | |
10824 | done | |
10825 | ||
1e6feb95 VZ |
10826 | if test "$ac_find_libraries" != "" ; then |
10827 | ||
ab9b9eab VZ |
10828 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
10829 | result=$? | |
10830 | if test $result = 0; then | |
10831 | ac_path_to_link="" | |
10832 | else | |
10833 | ac_path_to_link="-L$ac_find_libraries" | |
10834 | fi | |
10835 | ||
1e6feb95 | 10836 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" |
3a922bb4 | 10837 | xpm_link="-lXpm " |
1e6feb95 | 10838 | cat >> confdefs.h <<\EOF |
ab9b9eab VZ |
10839 | #define wxHAVE_LIB_XPM 1 |
10840 | EOF | |
10841 | ||
1e6feb95 VZ |
10842 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
10843 | else | |
10844 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 10845 | #line 10846 "configure" |
cd6d6d5b VZ |
10846 | #include "confdefs.h" |
10847 | ||
1e6feb95 VZ |
10848 | #include <X11/xpm.h> |
10849 | ||
698dcdb6 | 10850 | int main() { |
cd6d6d5b | 10851 | |
1e6feb95 | 10852 | int version; |
1e6feb95 VZ |
10853 | version = XpmLibraryVersion(); |
10854 | ||
698dcdb6 VZ |
10855 | ; return 0; } |
10856 | EOF | |
d08b457b | 10857 | if { (eval echo configure:10858: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
10858 | rm -rf conftest* |
10859 | ||
3a922bb4 RL |
10860 | xpm_link="-lXpm " |
10861 | cat >> confdefs.h <<\EOF | |
3ace2e6d SN |
10862 | #define wxHAVE_LIB_XPM 1 |
10863 | EOF | |
10864 | ||
1e6feb95 VZ |
10865 | echo "$ac_t""found in default search path" 1>&6 |
10866 | COMPILED_X_PROGRAM=0 | |
10867 | ||
cd6d6d5b | 10868 | else |
698dcdb6 VZ |
10869 | echo "configure: failed program was:" >&5 |
10870 | cat conftest.$ac_ext >&5 | |
10871 | rm -rf conftest* | |
10872 | ||
1e6feb95 VZ |
10873 | echo "$ac_t""no" 1>&6 |
10874 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
10875 | ||
698dcdb6 | 10876 | |
cd6d6d5b | 10877 | fi |
698dcdb6 | 10878 | rm -f conftest* |
1e6feb95 VZ |
10879 | fi |
10880 | ||
3a922bb4 RL |
10881 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm $xpm_link -lXmu -lXext -lXt -lX11" |
10882 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/motif/xmcombo" | |
1e6feb95 VZ |
10883 | TOOLKIT=MOTIF |
10884 | GUIDIST=MOTIF_DIST | |
ab9b9eab VZ |
10885 | fi |
10886 | ||
3a922bb4 | 10887 | if test "$wxUSE_MAC" = 1; then |
d08b457b GD |
10888 | CPPFLAGS="${CPPFLAGS} -cpp-precomp" |
10889 | CFLAGS="${CFLAGS} -fpascal-strings" | |
10890 | CXXFLAGS="${CXXFLAGS} -fpascal-strings" | |
10891 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DTARGET_CARBON" | |
10892 | ||
1e6feb95 | 10893 | TOOLKIT=MAC |
3a922bb4 | 10894 | GUIDIST=MACX_DIST |
1e6feb95 | 10895 | fi |
10f2d63a | 10896 | |
1e6feb95 VZ |
10897 | if test "$wxUSE_PM" = 1; then |
10898 | TOOLKIT=PM | |
10899 | GUIDIST=GTK_DIST | |
10900 | fi | |
b4085ce6 | 10901 | |
3a922bb4 | 10902 | if test "$TOOLKIT" = "PM" ; then |
1e6feb95 | 10903 | TOOLKIT_DIR="os2" |
3a922bb4 RL |
10904 | else |
10905 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
1e6feb95 | 10906 | fi |
e07802fc | 10907 | |
3a922bb4 | 10908 | PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst" |
1e6feb95 | 10909 | |
3a922bb4 RL |
10910 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
10911 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
10912 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" | |
10913 | TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}" | |
10914 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" | |
10915 | WIDGET_SET=univ | |
f6bcfd97 | 10916 | else |
3a922bb4 | 10917 | ALL_OBJECTS="\$(GUIOBJS)" |
1e6feb95 VZ |
10918 | fi |
10919 | ||
10920 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" | |
10921 | ||
10922 | if test "$TOOLKIT" != "MSW"; then | |
10923 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" | |
10924 | fi | |
10925 | ||
10926 | if test "$wxUSE_HTML" = "yes"; then | |
10927 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
10928 | fi | |
3fcdd07b | 10929 | |
3a922bb4 RL |
10930 | if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then |
10931 | ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)" | |
831b3152 | 10932 | fi |
d9d8273d | 10933 | if test "$wxUSE_LIBJPEG" = "yes" ; then |
2224580a | 10934 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" |
d9d8273d RR |
10935 | fi |
10936 | if test "$wxUSE_LIBTIFF" = "yes" ; then | |
10937 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
10938 | fi | |
10939 | if test "$wxUSE_LIBPNG" = "yes" ; then | |
10940 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
10941 | fi | |
3fed1840 RR |
10942 | if test "$wxUSE_FREETYPE" = "yes" ; then |
10943 | ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)" | |
10944 | fi | |
2224580a | 10945 | |
2224580a VZ |
10946 | RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst" |
10947 | RPM_SPEC="wx\$(TOOLKIT).spec" | |
10948 | ||
10949 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
10950 | DISTDIR="wx\$(TOOLKIT)" | |
10f2d63a | 10951 | else |
dad6c0ea VZ |
10952 | USE_GUI=0 |
10953 | ||
3a922bb4 | 10954 | TOOLKIT_DIR="base" |
f6bcfd97 | 10955 | |
3a922bb4 RL |
10956 | if test "$USE_WIN32" = 1 ; then |
10957 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}" | |
10958 | TOOLKIT_VPATH="\${top_srcdir}/src/msw" | |
0b2effe9 | 10959 | |
3a922bb4 | 10960 | TOOLKIT="MSW" |
f6bcfd97 | 10961 | else |
3a922bb4 RL |
10962 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}" |
10963 | TOOLKIT_VPATH="\${top_srcdir}/src/unix" | |
f6bcfd97 BP |
10964 | fi |
10965 | ||
831b3152 | 10966 | PORT_FILES="\${top_srcdir}/src/files.lst" |
2224580a VZ |
10967 | RPM_FILES="src/rpmfiles.lst" |
10968 | RPM_SPEC="wxBase.spec" | |
10969 | ||
10970 | GUIDIST="BASE_DIST" | |
10971 | DISTDIR="wxBase" | |
10f2d63a VZ |
10972 | fi |
10973 | ||
3a922bb4 RL |
10974 | if test "x$REGEX_INCLUDE" != "x" ; then |
10975 | ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)" | |
10976 | fi | |
10977 | if test "$wxUSE_ZLIB" = "yes" ; then | |
10978 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
10979 | fi | |
10f2d63a | 10980 | |
3a922bb4 RL |
10981 | if test "$wxUSE_OPENGL" = "yes"; then |
10982 | if test "$wxUSE_MAC" = 1; then | |
10983 | cat >> confdefs.h <<\EOF | |
10984 | #define wxUSE_OPENGL 1 | |
10985 | EOF | |
10f2d63a | 10986 | |
3a922bb4 RL |
10987 | cat >> confdefs.h <<\EOF |
10988 | #define wxUSE_GLCANVAS 1 | |
10989 | EOF | |
10f2d63a | 10990 | |
3a922bb4 RL |
10991 | OPENGL_LIBS="-framework OpenGL -framework AGL" |
10992 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl" | |
10993 | else | |
10994 | ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'` | |
10995 | echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6 | |
d08b457b | 10996 | echo "configure:10997: checking for GL/gl.h" >&5 |
3a922bb4 RL |
10997 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10998 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10999 | else | |
11000 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 11001 | #line 11002 "configure" |
3a922bb4 RL |
11002 | #include "confdefs.h" |
11003 | #include <GL/gl.h> | |
11004 | EOF | |
11005 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d08b457b | 11006 | { (eval echo configure:11007: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3a922bb4 RL |
11007 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11008 | if test -z "$ac_err"; then | |
11009 | rm -rf conftest* | |
11010 | eval "ac_cv_header_$ac_safe=yes" | |
11011 | else | |
11012 | echo "$ac_err" >&5 | |
11013 | echo "configure: failed program was:" >&5 | |
11014 | cat conftest.$ac_ext >&5 | |
11015 | rm -rf conftest* | |
11016 | eval "ac_cv_header_$ac_safe=no" | |
11017 | fi | |
11018 | rm -f conftest* | |
11019 | fi | |
11020 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11021 | echo "$ac_t""yes" 1>&6 | |
11022 | ||
11023 | cat >> confdefs.h <<\EOF | |
11024 | #define wxUSE_OPENGL 1 | |
11025 | EOF | |
10f2d63a | 11026 | |
3a922bb4 RL |
11027 | cat >> confdefs.h <<\EOF |
11028 | #define wxUSE_GLCANVAS 1 | |
11029 | EOF | |
10f2d63a | 11030 | |
3a922bb4 RL |
11031 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl" |
11032 | echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6 | |
d08b457b | 11033 | echo "configure:11034: checking for glFlush in -lGL" >&5 |
3a922bb4 RL |
11034 | ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'` |
11035 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11036 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11037 | else | |
11038 | ac_save_LIBS="$LIBS" | |
11039 | LIBS="-lGL $LIBS" | |
11040 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 11041 | #line 11042 "configure" |
3a922bb4 RL |
11042 | #include "confdefs.h" |
11043 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11044 | /* We use char because int might match the return type of a gcc2 | |
11045 | builtin and then its argument prototype would still apply. */ | |
11046 | char glFlush(); | |
55e80573 | 11047 | |
3a922bb4 RL |
11048 | int main() { |
11049 | glFlush() | |
11050 | ; return 0; } | |
11051 | EOF | |
d08b457b | 11052 | if { (eval echo configure:11053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3a922bb4 RL |
11053 | rm -rf conftest* |
11054 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11055 | else | |
11056 | echo "configure: failed program was:" >&5 | |
11057 | cat conftest.$ac_ext >&5 | |
11058 | rm -rf conftest* | |
11059 | eval "ac_cv_lib_$ac_lib_var=no" | |
11060 | fi | |
11061 | rm -f conftest* | |
11062 | LIBS="$ac_save_LIBS" | |
55e80573 | 11063 | |
3a922bb4 RL |
11064 | fi |
11065 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11066 | echo "$ac_t""yes" 1>&6 | |
11067 | ||
11068 | OPENGL_LIBS="-lGL -lGLU" | |
11069 | ||
11070 | else | |
11071 | echo "$ac_t""no" 1>&6 | |
11072 | ||
11073 | echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6 | |
d08b457b | 11074 | echo "configure:11075: checking for glFlush in -lMesaGL" >&5 |
3a922bb4 RL |
11075 | ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'` |
11076 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11077 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11078 | else | |
11079 | ac_save_LIBS="$LIBS" | |
11080 | LIBS="-lMesaGL $LIBS" | |
11081 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 11082 | #line 11083 "configure" |
3a922bb4 RL |
11083 | #include "confdefs.h" |
11084 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11085 | /* We use char because int might match the return type of a gcc2 | |
11086 | builtin and then its argument prototype would still apply. */ | |
11087 | char glFlush(); | |
11088 | ||
11089 | int main() { | |
11090 | glFlush() | |
11091 | ; return 0; } | |
11092 | EOF | |
d08b457b | 11093 | if { (eval echo configure:11094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3a922bb4 RL |
11094 | rm -rf conftest* |
11095 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11096 | else | |
11097 | echo "configure: failed program was:" >&5 | |
11098 | cat conftest.$ac_ext >&5 | |
11099 | rm -rf conftest* | |
11100 | eval "ac_cv_lib_$ac_lib_var=no" | |
11101 | fi | |
11102 | rm -f conftest* | |
11103 | LIBS="$ac_save_LIBS" | |
11104 | ||
11105 | fi | |
11106 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11107 | echo "$ac_t""yes" 1>&6 | |
11108 | ||
11109 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
11110 | ||
11111 | else | |
11112 | echo "$ac_t""no" 1>&6 | |
11113 | fi | |
55e80573 | 11114 | |
3a922bb4 RL |
11115 | |
11116 | fi | |
11117 | ||
11118 | ||
11119 | else | |
11120 | echo "$ac_t""no" 1>&6 | |
11121 | wxUSE_OPENGL=0 | |
11122 | fi | |
11123 | ||
11124 | fi | |
11125 | fi | |
11126 | ||
11127 | if test -z "$TOOLKIT_VPATH" ; then | |
11128 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" | |
11129 | fi | |
11130 | ||
11131 | if test -n "$TOOLKIT" ; then | |
11132 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
11133 | fi | |
11134 | ||
11135 | if test "$wxUSE_CYGWIN" = 1 ; then | |
11136 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" | |
11137 | fi | |
11138 | ||
11139 | lib_debug_suffix= | |
11140 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
11141 | lib_debug_suffix=d | |
11142 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}d" | |
11143 | fi | |
11144 | ||
11145 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_debug_suffix}-${WX_RELEASE}" | |
11146 | TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_debug_suffix}_gl-${WX_RELEASE}" | |
11147 | ||
11148 | if test "$cross_compiling" = "yes"; then | |
11149 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}" | |
11150 | TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}" | |
11151 | fi | |
11152 | ||
11153 | WX_LIBRARY="wx_${TOOLCHAIN_NAME}" | |
11154 | WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}" | |
11155 | ||
11156 | WXCONFIG_LIBS="-l${WX_LIBRARY}" | |
11157 | ||
11158 | if test "$wxUSE_OPENGL" = "yes"; then | |
11159 | WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} $OPENGL_LIBS" | |
11160 | fi | |
11161 | ||
11162 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
11163 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a" | |
11164 | ||
11165 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
11166 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
11167 | ||
11168 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}" | |
11169 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
11170 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}" | |
11171 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
11172 | ||
d08b457b | 11173 | WX_RESOURCES_MACOSX="lib${WX_LIBRARY}.rsrc" |
3a922bb4 RL |
11174 | |
11175 | ||
11176 | ||
11177 | if test "$wxUSE_SHARED" = "yes"; then | |
55e80573 VZ |
11178 | |
11179 | if test "$wxUSE_OPENGL" = "yes"; then | |
11180 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
3a922bb4 | 11181 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}" |
55e80573 VZ |
11182 | else |
11183 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
3a922bb4 | 11184 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}" |
55e80573 VZ |
11185 | fi |
11186 | ||
dd4f7467 | 11187 | if test "$GCC" = "yes"; then |
55e80573 | 11188 | PIC_FLAG="-fPIC" |
dd4f7467 | 11189 | fi |
55e80573 VZ |
11190 | |
11191 | SHARED_LD="${CXX} -shared -o" | |
698dcdb6 | 11192 | |
10f2d63a VZ |
11193 | case "${host}" in |
11194 | *-hp-hpux* ) | |
55e80573 | 11195 | if test "$GCC" != "yes"; then |
f6bcfd97 BP |
11196 | LDFLAGS="-L/usr/lib" |
11197 | ||
10f2d63a VZ |
11198 | SHARED_LD="${CXX} -b -o" |
11199 | PIC_FLAG="+Z" | |
11200 | fi | |
55e80573 | 11201 | |
10f2d63a | 11202 | ;; |
b12915c1 | 11203 | |
55e80573 VZ |
11204 | *-*-linux* ) |
11205 | if test "$GCC" != "yes"; then | |
11206 | echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6 | |
d08b457b | 11207 | echo "configure:11208: checking for Intel compiler" >&5 |
55e80573 VZ |
11208 | if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then |
11209 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11210 | else | |
11211 | ||
11212 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 11213 | #line 11214 "configure" |
55e80573 VZ |
11214 | #include "confdefs.h" |
11215 | ||
11216 | int main() { | |
11217 | ||
11218 | #ifndef __INTEL_COMPILER | |
dd4f7467 | 11219 | #error Not icc |
55e80573 VZ |
11220 | #endif |
11221 | ||
11222 | ; return 0; } | |
11223 | EOF | |
d08b457b | 11224 | if { (eval echo configure:11225: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
55e80573 VZ |
11225 | rm -rf conftest* |
11226 | wx_cv_prog_icc=yes | |
11227 | else | |
11228 | echo "configure: failed program was:" >&5 | |
11229 | cat conftest.$ac_ext >&5 | |
11230 | rm -rf conftest* | |
11231 | wx_cv_prog_icc=no | |
11232 | ||
11233 | fi | |
11234 | rm -f conftest* | |
11235 | ||
11236 | fi | |
11237 | ||
11238 | echo "$ac_t""$wx_cv_prog_icc" 1>&6 | |
55e80573 VZ |
11239 | if test "$wx_cv_prog_icc" = "yes"; then |
11240 | PIC_FLAG="-KPIC" | |
11241 | fi | |
11242 | fi | |
11243 | ||
3a922bb4 RL |
11244 | if test "$wxUSE_SONAME" = "yes" ; then |
11245 | SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}" | |
11246 | SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}" | |
f6bcfd97 | 11247 | WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)" |
00cf1208 | 11248 | fi |
10f2d63a | 11249 | ;; |
55e80573 | 11250 | |
10f2d63a VZ |
11251 | *-*-solaris2* ) |
11252 | if test "$GCC" = yes ; then | |
f6bcfd97 | 11253 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" |
10f2d63a VZ |
11254 | else |
11255 | SHARED_LD="${CXX} -G -o" | |
11256 | PIC_FLAG="-KPIC" | |
11257 | fi | |
10f2d63a | 11258 | ;; |
55e80573 | 11259 | |
b4085ce6 | 11260 | *-*-darwin* ) |
d08b457b GD |
11261 | CFLAGS="${CFLAGS} -fno-common" |
11262 | CXXFLAGS="${CXXFLAGS} -fno-common" | |
ea5999b9 GD |
11263 | SHARED_LD="${CXX} -dynamiclib -o" |
11264 | PIC_FLAG="-dynamic -fPIC" | |
10f2d63a | 11265 | ;; |
55e80573 | 11266 | |
10f2d63a VZ |
11267 | *-*-aix* ) |
11268 | SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o" | |
10f2d63a | 11269 | ;; |
55e80573 | 11270 | |
1c8183e2 | 11271 | *-*-cygwin* ) |
3a922bb4 RL |
11272 | echo "configure: warning: Shared libs unsupported for $host_alias -- forcing static build." 1>&2 |
11273 | wxUSE_SHARED=no | |
10f2d63a | 11274 | ;; |
55e80573 | 11275 | |
b12915c1 | 11276 | *-*-mingw32* ) |
3a922bb4 RL |
11277 | SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_NAME_STATIC} -o" |
11278 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXUSINGDLL=1" | |
18dbb1f6 VZ |
11279 | WXMSW_DLL_DEFINES="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1" |
11280 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
11281 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" | |
f6bcfd97 BP |
11282 | if test "$wxUSE_OPENGL" = "yes"; then |
11283 | WX_ALL_INSTALLED="preinstall_gl" | |
3a922bb4 | 11284 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" |
f6bcfd97 | 11285 | else |
3a922bb4 | 11286 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" |
f6bcfd97 | 11287 | fi |
10f2d63a | 11288 | ;; |
55e80573 | 11289 | |
10f2d63a | 11290 | *-pc-os2_emx ) |
e07802fc | 11291 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" |
3a922bb4 | 11292 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}" |
10f2d63a | 11293 | ;; |
55e80573 | 11294 | |
b12915c1 | 11295 | *-*-beos* ) |
e2b8b066 | 11296 | SHARED_LD="${LD} -shared -o" |
b12915c1 | 11297 | ;; |
55e80573 VZ |
11298 | |
11299 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ | |
11300 | *-*-sunos4* | \ | |
11301 | *-*-irix5* | *-*-irix6* | \ | |
11302 | *-*-osf* | \ | |
11303 | *-*-dgux5* | \ | |
11304 | *-*-sysv5* ) | |
11305 | ;; | |
11306 | ||
10f2d63a | 11307 | *) |
698dcdb6 | 11308 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } |
10f2d63a VZ |
11309 | esac |
11310 | ||
11311 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
11312 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
bdad4e7e | 11313 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" |
10f2d63a | 11314 | fi |
55e80573 | 11315 | |
3711412e | 11316 | WX_TARGET_LIBRARY_TYPE="so" |
3a922bb4 | 11317 | fi |
f6bcfd97 | 11318 | |
3a922bb4 | 11319 | if test "$wxUSE_SHARED" = "no"; then |
f6bcfd97 | 11320 | |
3a922bb4 | 11321 | if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then |
f6bcfd97 BP |
11322 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" |
11323 | fi | |
11324 | ||
3a922bb4 RL |
11325 | if test "$wxUSE_OPENGL" = "yes"; then |
11326 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl" | |
11327 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}" | |
11328 | else | |
11329 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}" | |
11330 | fi | |
698dcdb6 | 11331 | |
3a922bb4 RL |
11332 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" |
11333 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" | |
11334 | ||
11335 | WX_TARGET_LIBRARY_TYPE="a" | |
10f2d63a | 11336 | fi |
10f2d63a | 11337 | |
d08b457b GD |
11338 | if test "$wxUSE_MAC" = 1; then |
11339 | WX_ALL="${WX_ALL} \$(build_libdir)/lib${WX_LIBRARY}.r" | |
11340 | # Extract the first word of "Rez", so it can be a program name with args. | |
11341 | set dummy Rez; ac_word=$2 | |
11342 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
11343 | echo "configure:11344: checking for $ac_word" >&5 | |
11344 | if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then | |
11345 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11346 | else | |
11347 | if test -n "$RESCOMP"; then | |
11348 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
11349 | else | |
11350 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
11351 | ac_dummy="$PATH" | |
11352 | for ac_dir in $ac_dummy; do | |
11353 | test -z "$ac_dir" && ac_dir=. | |
11354 | if test -f $ac_dir/$ac_word; then | |
11355 | ac_cv_prog_RESCOMP="Rez" | |
11356 | break | |
11357 | fi | |
11358 | done | |
11359 | IFS="$ac_save_ifs" | |
11360 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
11361 | fi | |
11362 | fi | |
11363 | RESCOMP="$ac_cv_prog_RESCOMP" | |
11364 | if test -n "$RESCOMP"; then | |
11365 | echo "$ac_t""$RESCOMP" 1>&6 | |
11366 | else | |
11367 | echo "$ac_t""no" 1>&6 | |
11368 | fi | |
11369 | ||
11370 | # Extract the first word of "Derez", so it can be a program name with args. | |
11371 | set dummy Derez; ac_word=$2 | |
11372 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
11373 | echo "configure:11374: checking for $ac_word" >&5 | |
11374 | if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then | |
11375 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11376 | else | |
11377 | if test -n "$DEREZ"; then | |
11378 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
11379 | else | |
11380 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
11381 | ac_dummy="$PATH" | |
11382 | for ac_dir in $ac_dummy; do | |
11383 | test -z "$ac_dir" && ac_dir=. | |
11384 | if test -f $ac_dir/$ac_word; then | |
11385 | ac_cv_prog_DEREZ="Derez" | |
11386 | break | |
11387 | fi | |
11388 | done | |
11389 | IFS="$ac_save_ifs" | |
11390 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/Derez" | |
11391 | fi | |
11392 | fi | |
11393 | DEREZ="$ac_cv_prog_DEREZ" | |
11394 | if test -n "$DEREZ"; then | |
11395 | echo "$ac_t""$DEREZ" 1>&6 | |
11396 | else | |
11397 | echo "$ac_t""no" 1>&6 | |
11398 | fi | |
11399 | ||
11400 | LIBWXMACRES="\$(top_builddir)/lib/lib${WX_LIBRARY}.r" | |
11401 | LIBWXMACRESCOMP="\$(RESCOMP) Carbon.r -t APPL ${LIBWXMACRES} -o \$(BIN_PROGRAM)" | |
11402 | fi | |
11403 | ||
3a922bb4 RL |
11404 | |
11405 | for ac_hdr in strings.h | |
9cfadba2 | 11406 | do |
698dcdb6 VZ |
11407 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11408 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d08b457b | 11409 | echo "configure:11410: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
11410 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11411 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11412 | else | |
11413 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 11414 | #line 11415 "configure" |
9cfadba2 | 11415 | #include "confdefs.h" |
698dcdb6 VZ |
11416 | #include <$ac_hdr> |
11417 | EOF | |
11418 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d08b457b | 11419 | { (eval echo configure:11420: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11420 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11421 | if test -z "$ac_err"; then | |
11422 | rm -rf conftest* | |
11423 | eval "ac_cv_header_$ac_safe=yes" | |
6232543b | 11424 | else |
698dcdb6 VZ |
11425 | echo "$ac_err" >&5 |
11426 | echo "configure: failed program was:" >&5 | |
9cfadba2 | 11427 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11428 | rm -rf conftest* |
11429 | eval "ac_cv_header_$ac_safe=no" | |
9cfadba2 | 11430 | fi |
698dcdb6 | 11431 | rm -f conftest* |
9cfadba2 | 11432 | fi |
698dcdb6 VZ |
11433 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11434 | echo "$ac_t""yes" 1>&6 | |
11435 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11436 | cat >> confdefs.h <<EOF | |
11437 | #define $ac_tr_hdr 1 | |
9cfadba2 | 11438 | EOF |
698dcdb6 VZ |
11439 | |
11440 | else | |
11441 | echo "$ac_t""no" 1>&6 | |
9cfadba2 VZ |
11442 | fi |
11443 | done | |
10f2d63a | 11444 | |
3a922bb4 | 11445 | for ac_hdr in stdlib.h |
10f2d63a | 11446 | do |
698dcdb6 VZ |
11447 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11448 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d08b457b | 11449 | echo "configure:11450: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
11450 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11451 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11452 | else | |
11453 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 11454 | #line 11455 "configure" |
10f2d63a | 11455 | #include "confdefs.h" |
698dcdb6 VZ |
11456 | #include <$ac_hdr> |
11457 | EOF | |
11458 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d08b457b | 11459 | { (eval echo configure:11460: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11460 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11461 | if test -z "$ac_err"; then | |
11462 | rm -rf conftest* | |
11463 | eval "ac_cv_header_$ac_safe=yes" | |
6232543b | 11464 | else |
698dcdb6 VZ |
11465 | echo "$ac_err" >&5 |
11466 | echo "configure: failed program was:" >&5 | |
10f2d63a | 11467 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11468 | rm -rf conftest* |
11469 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 11470 | fi |
698dcdb6 | 11471 | rm -f conftest* |
10f2d63a | 11472 | fi |
698dcdb6 VZ |
11473 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11474 | echo "$ac_t""yes" 1>&6 | |
11475 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11476 | cat >> confdefs.h <<EOF | |
11477 | #define $ac_tr_hdr 1 | |
10f2d63a | 11478 | EOF |
698dcdb6 VZ |
11479 | |
11480 | else | |
11481 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
11482 | fi |
11483 | done | |
11484 | ||
3a922bb4 | 11485 | for ac_hdr in unistd.h |
10f2d63a | 11486 | do |
698dcdb6 VZ |
11487 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11488 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d08b457b | 11489 | echo "configure:11490: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
11490 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11491 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11492 | else | |
11493 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 11494 | #line 11495 "configure" |
10f2d63a | 11495 | #include "confdefs.h" |
698dcdb6 VZ |
11496 | #include <$ac_hdr> |
11497 | EOF | |
11498 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d08b457b | 11499 | { (eval echo configure:11500: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11500 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11501 | if test -z "$ac_err"; then | |
11502 | rm -rf conftest* | |
11503 | eval "ac_cv_header_$ac_safe=yes" | |
6f72b082 | 11504 | else |
698dcdb6 VZ |
11505 | echo "$ac_err" >&5 |
11506 | echo "configure: failed program was:" >&5 | |
6f72b082 | 11507 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11508 | rm -rf conftest* |
11509 | eval "ac_cv_header_$ac_safe=no" | |
6f72b082 | 11510 | fi |
698dcdb6 | 11511 | rm -f conftest* |
6f72b082 | 11512 | fi |
698dcdb6 VZ |
11513 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11514 | echo "$ac_t""yes" 1>&6 | |
11515 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11516 | cat >> confdefs.h <<EOF | |
11517 | #define $ac_tr_hdr 1 | |
6f72b082 | 11518 | EOF |
698dcdb6 VZ |
11519 | |
11520 | else | |
11521 | echo "$ac_t""no" 1>&6 | |
6f72b082 OK |
11522 | fi |
11523 | done | |
11524 | ||
3a922bb4 | 11525 | for ac_hdr in wchar.h |
6f72b082 | 11526 | do |
698dcdb6 VZ |
11527 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11528 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d08b457b | 11529 | echo "configure:11530: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
11530 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11531 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11532 | else | |
11533 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 11534 | #line 11535 "configure" |
6f72b082 | 11535 | #include "confdefs.h" |
698dcdb6 VZ |
11536 | #include <$ac_hdr> |
11537 | EOF | |
11538 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d08b457b | 11539 | { (eval echo configure:11540: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11540 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11541 | if test -z "$ac_err"; then | |
11542 | rm -rf conftest* | |
11543 | eval "ac_cv_header_$ac_safe=yes" | |
6f72b082 | 11544 | else |
698dcdb6 VZ |
11545 | echo "$ac_err" >&5 |
11546 | echo "configure: failed program was:" >&5 | |
6f72b082 | 11547 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11548 | rm -rf conftest* |
11549 | eval "ac_cv_header_$ac_safe=no" | |
6f72b082 | 11550 | fi |
698dcdb6 | 11551 | rm -f conftest* |
6f72b082 | 11552 | fi |
698dcdb6 VZ |
11553 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11554 | echo "$ac_t""yes" 1>&6 | |
11555 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11556 | cat >> confdefs.h <<EOF | |
11557 | #define $ac_tr_hdr 1 | |
6f72b082 | 11558 | EOF |
698dcdb6 VZ |
11559 | |
11560 | else | |
11561 | echo "$ac_t""no" 1>&6 | |
6f72b082 OK |
11562 | fi |
11563 | done | |
11564 | ||
3a922bb4 | 11565 | for ac_hdr in wcstr.h |
6f72b082 | 11566 | do |
698dcdb6 VZ |
11567 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11568 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d08b457b | 11569 | echo "configure:11570: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
11570 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11571 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11572 | else | |
11573 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 11574 | #line 11575 "configure" |
6f72b082 | 11575 | #include "confdefs.h" |
698dcdb6 VZ |
11576 | #include <$ac_hdr> |
11577 | EOF | |
11578 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d08b457b | 11579 | { (eval echo configure:11580: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11580 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11581 | if test -z "$ac_err"; then | |
11582 | rm -rf conftest* | |
11583 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 11584 | else |
698dcdb6 VZ |
11585 | echo "$ac_err" >&5 |
11586 | echo "configure: failed program was:" >&5 | |
10f2d63a | 11587 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11588 | rm -rf conftest* |
11589 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 11590 | fi |
698dcdb6 | 11591 | rm -f conftest* |
10f2d63a | 11592 | fi |
698dcdb6 VZ |
11593 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11594 | echo "$ac_t""yes" 1>&6 | |
11595 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11596 | cat >> confdefs.h <<EOF | |
11597 | #define $ac_tr_hdr 1 | |
10f2d63a | 11598 | EOF |
698dcdb6 VZ |
11599 | |
11600 | else | |
11601 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
11602 | fi |
11603 | done | |
11604 | ||
3a922bb4 | 11605 | for ac_hdr in fnmatch.h |
0fb0dd83 | 11606 | do |
698dcdb6 VZ |
11607 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11608 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d08b457b | 11609 | echo "configure:11610: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
11610 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11611 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11612 | else | |
11613 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 11614 | #line 11615 "configure" |
0fb0dd83 | 11615 | #include "confdefs.h" |
698dcdb6 VZ |
11616 | #include <$ac_hdr> |
11617 | EOF | |
11618 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d08b457b | 11619 | { (eval echo configure:11620: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11620 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11621 | if test -z "$ac_err"; then | |
11622 | rm -rf conftest* | |
11623 | eval "ac_cv_header_$ac_safe=yes" | |
0fb0dd83 | 11624 | else |
698dcdb6 VZ |
11625 | echo "$ac_err" >&5 |
11626 | echo "configure: failed program was:" >&5 | |
0fb0dd83 | 11627 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11628 | rm -rf conftest* |
11629 | eval "ac_cv_header_$ac_safe=no" | |
0fb0dd83 | 11630 | fi |
698dcdb6 | 11631 | rm -f conftest* |
0fb0dd83 | 11632 | fi |
698dcdb6 VZ |
11633 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11634 | echo "$ac_t""yes" 1>&6 | |
11635 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11636 | cat >> confdefs.h <<EOF | |
11637 | #define $ac_tr_hdr 1 | |
0fb0dd83 | 11638 | EOF |
698dcdb6 VZ |
11639 | |
11640 | else | |
11641 | echo "$ac_t""no" 1>&6 | |
0fb0dd83 RR |
11642 | fi |
11643 | done | |
11644 | ||
3a922bb4 | 11645 | for ac_hdr in iconv.h |
1f8ae82f | 11646 | do |
698dcdb6 VZ |
11647 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11648 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d08b457b | 11649 | echo "configure:11650: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
11650 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11651 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11652 | else | |
11653 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 11654 | #line 11655 "configure" |
1f8ae82f | 11655 | #include "confdefs.h" |
698dcdb6 VZ |
11656 | #include <$ac_hdr> |
11657 | EOF | |
11658 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d08b457b | 11659 | { (eval echo configure:11660: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11660 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11661 | if test -z "$ac_err"; then | |
11662 | rm -rf conftest* | |
11663 | eval "ac_cv_header_$ac_safe=yes" | |
1f8ae82f | 11664 | else |
698dcdb6 VZ |
11665 | echo "$ac_err" >&5 |
11666 | echo "configure: failed program was:" >&5 | |
1f8ae82f | 11667 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11668 | rm -rf conftest* |
11669 | eval "ac_cv_header_$ac_safe=no" | |
1f8ae82f | 11670 | fi |
698dcdb6 | 11671 | rm -f conftest* |
1f8ae82f | 11672 | fi |
698dcdb6 VZ |
11673 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11674 | echo "$ac_t""yes" 1>&6 | |
11675 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11676 | cat >> confdefs.h <<EOF | |
11677 | #define $ac_tr_hdr 1 | |
1f8ae82f | 11678 | EOF |
698dcdb6 VZ |
11679 | |
11680 | else | |
11681 | echo "$ac_t""no" 1>&6 | |
1f8ae82f GD |
11682 | fi |
11683 | done | |
11684 | ||
3a922bb4 | 11685 | for ac_hdr in langinfo.h |
10f2d63a | 11686 | do |
698dcdb6 VZ |
11687 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11688 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d08b457b | 11689 | echo "configure:11690: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
11690 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11691 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11692 | else | |
11693 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 11694 | #line 11695 "configure" |
10f2d63a | 11695 | #include "confdefs.h" |
698dcdb6 VZ |
11696 | #include <$ac_hdr> |
11697 | EOF | |
11698 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d08b457b | 11699 | { (eval echo configure:11700: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11700 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11701 | if test -z "$ac_err"; then | |
11702 | rm -rf conftest* | |
11703 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 11704 | else |
698dcdb6 VZ |
11705 | echo "$ac_err" >&5 |
11706 | echo "configure: failed program was:" >&5 | |
10f2d63a | 11707 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11708 | rm -rf conftest* |
11709 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 11710 | fi |
698dcdb6 | 11711 | rm -f conftest* |
10f2d63a | 11712 | fi |
698dcdb6 VZ |
11713 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11714 | echo "$ac_t""yes" 1>&6 | |
11715 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11716 | cat >> confdefs.h <<EOF | |
11717 | #define $ac_tr_hdr 1 | |
10f2d63a | 11718 | EOF |
698dcdb6 VZ |
11719 | |
11720 | else | |
11721 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
11722 | fi |
11723 | done | |
11724 | ||
10f2d63a | 11725 | |
3a922bb4 RL |
11726 | if test "$wxUSE_GUI" = "yes"; then |
11727 | if test "$wxUSE_UNIX" = "yes"; then | |
11728 | for ac_hdr in X11/XKBlib.h | |
29fd3c0c VS |
11729 | do |
11730 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
11731 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d08b457b | 11732 | echo "configure:11733: checking for $ac_hdr" >&5 |
29fd3c0c VS |
11733 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11734 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11735 | else | |
11736 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 11737 | #line 11738 "configure" |
29fd3c0c VS |
11738 | #include "confdefs.h" |
11739 | #include <$ac_hdr> | |
11740 | EOF | |
11741 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d08b457b | 11742 | { (eval echo configure:11743: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
29fd3c0c VS |
11743 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11744 | if test -z "$ac_err"; then | |
11745 | rm -rf conftest* | |
11746 | eval "ac_cv_header_$ac_safe=yes" | |
11747 | else | |
11748 | echo "$ac_err" >&5 | |
11749 | echo "configure: failed program was:" >&5 | |
11750 | cat conftest.$ac_ext >&5 | |
11751 | rm -rf conftest* | |
11752 | eval "ac_cv_header_$ac_safe=no" | |
11753 | fi | |
11754 | rm -f conftest* | |
11755 | fi | |
11756 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11757 | echo "$ac_t""yes" 1>&6 | |
11758 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11759 | cat >> confdefs.h <<EOF | |
11760 | #define $ac_tr_hdr 1 | |
11761 | EOF | |
11762 | ||
11763 | else | |
11764 | echo "$ac_t""no" 1>&6 | |
11765 | fi | |
11766 | done | |
11767 | ||
3a922bb4 | 11768 | fi |
29fd3c0c VS |
11769 | fi |
11770 | ||
698dcdb6 VZ |
11771 | |
11772 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | |
d08b457b | 11773 | echo "configure:11774: checking for ANSI C header files" >&5 |
698dcdb6 VZ |
11774 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
11775 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11776 | else |
698dcdb6 | 11777 | cat > conftest.$ac_ext <<EOF |
d08b457b | 11778 | #line 11779 "configure" |
10f2d63a VZ |
11779 | #include "confdefs.h" |
11780 | #include <stdlib.h> | |
11781 | #include <stdarg.h> | |
11782 | #include <string.h> | |
11783 | #include <float.h> | |
698dcdb6 VZ |
11784 | EOF |
11785 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d08b457b | 11786 | { (eval echo configure:11787: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11787 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11788 | if test -z "$ac_err"; then | |
11789 | rm -rf conftest* | |
10f2d63a VZ |
11790 | ac_cv_header_stdc=yes |
11791 | else | |
698dcdb6 VZ |
11792 | echo "$ac_err" >&5 |
11793 | echo "configure: failed program was:" >&5 | |
10f2d63a | 11794 | cat conftest.$ac_ext >&5 |
698dcdb6 | 11795 | rm -rf conftest* |
10f2d63a VZ |
11796 | ac_cv_header_stdc=no |
11797 | fi | |
698dcdb6 | 11798 | rm -f conftest* |
10f2d63a VZ |
11799 | |
11800 | if test $ac_cv_header_stdc = yes; then | |
11801 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
698dcdb6 | 11802 | cat > conftest.$ac_ext <<EOF |
d08b457b | 11803 | #line 11804 "configure" |
10f2d63a VZ |
11804 | #include "confdefs.h" |
11805 | #include <string.h> | |
698dcdb6 | 11806 | EOF |
10f2d63a VZ |
11807 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
11808 | egrep "memchr" >/dev/null 2>&1; then | |
11809 | : | |
11810 | else | |
698dcdb6 | 11811 | rm -rf conftest* |
10f2d63a VZ |
11812 | ac_cv_header_stdc=no |
11813 | fi | |
11814 | rm -f conftest* | |
11815 | ||
11816 | fi | |
11817 | ||
11818 | if test $ac_cv_header_stdc = yes; then | |
11819 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
698dcdb6 | 11820 | cat > conftest.$ac_ext <<EOF |
d08b457b | 11821 | #line 11822 "configure" |
10f2d63a VZ |
11822 | #include "confdefs.h" |
11823 | #include <stdlib.h> | |
698dcdb6 | 11824 | EOF |
10f2d63a VZ |
11825 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
11826 | egrep "free" >/dev/null 2>&1; then | |
11827 | : | |
11828 | else | |
698dcdb6 | 11829 | rm -rf conftest* |
10f2d63a VZ |
11830 | ac_cv_header_stdc=no |
11831 | fi | |
11832 | rm -f conftest* | |
11833 | ||
11834 | fi | |
11835 | ||
11836 | if test $ac_cv_header_stdc = yes; then | |
11837 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
698dcdb6 | 11838 | if test "$cross_compiling" = yes; then |
10f2d63a VZ |
11839 | : |
11840 | else | |
698dcdb6 | 11841 | cat > conftest.$ac_ext <<EOF |
d08b457b | 11842 | #line 11843 "configure" |
10f2d63a VZ |
11843 | #include "confdefs.h" |
11844 | #include <ctype.h> | |
698dcdb6 VZ |
11845 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
11846 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
1e487827 | 11847 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
698dcdb6 VZ |
11848 | int main () { int i; for (i = 0; i < 256; i++) |
11849 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
11850 | exit (0); } | |
11851 | ||
11852 | EOF | |
d08b457b | 11853 | if { (eval echo configure:11854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 11854 | then |
10f2d63a VZ |
11855 | : |
11856 | else | |
698dcdb6 VZ |
11857 | echo "configure: failed program was:" >&5 |
11858 | cat conftest.$ac_ext >&5 | |
11859 | rm -fr conftest* | |
11860 | ac_cv_header_stdc=no | |
10f2d63a | 11861 | fi |
698dcdb6 | 11862 | rm -fr conftest* |
10f2d63a | 11863 | fi |
698dcdb6 | 11864 | |
10f2d63a VZ |
11865 | fi |
11866 | fi | |
1e487827 | 11867 | |
698dcdb6 VZ |
11868 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
11869 | if test $ac_cv_header_stdc = yes; then | |
11870 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11871 | #define STDC_HEADERS 1 |
11872 | EOF | |
11873 | ||
11874 | fi | |
11875 | ||
698dcdb6 | 11876 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
d08b457b | 11877 | echo "configure:11878: checking for mode_t" >&5 |
698dcdb6 VZ |
11878 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
11879 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 11880 | else |
698dcdb6 | 11881 | cat > conftest.$ac_ext <<EOF |
d08b457b | 11882 | #line 11883 "configure" |
1e487827 | 11883 | #include "confdefs.h" |
698dcdb6 VZ |
11884 | #include <sys/types.h> |
11885 | #if STDC_HEADERS | |
11886 | #include <stdlib.h> | |
11887 | #include <stddef.h> | |
11888 | #endif | |
11889 | EOF | |
11890 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11891 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
11892 | rm -rf conftest* | |
10f2d63a VZ |
11893 | ac_cv_type_mode_t=yes |
11894 | else | |
698dcdb6 VZ |
11895 | rm -rf conftest* |
11896 | ac_cv_type_mode_t=no | |
703e0a69 | 11897 | fi |
698dcdb6 | 11898 | rm -f conftest* |
1e487827 | 11899 | |
698dcdb6 VZ |
11900 | fi |
11901 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 | |
11902 | if test $ac_cv_type_mode_t = no; then | |
11903 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11904 | #define mode_t int |
11905 | EOF | |
11906 | ||
11907 | fi | |
11908 | ||
698dcdb6 | 11909 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 |
d08b457b | 11910 | echo "configure:11911: checking for off_t" >&5 |
698dcdb6 VZ |
11911 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
11912 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11913 | else |
698dcdb6 | 11914 | cat > conftest.$ac_ext <<EOF |
d08b457b | 11915 | #line 11916 "configure" |
10f2d63a | 11916 | #include "confdefs.h" |
698dcdb6 VZ |
11917 | #include <sys/types.h> |
11918 | #if STDC_HEADERS | |
11919 | #include <stdlib.h> | |
11920 | #include <stddef.h> | |
11921 | #endif | |
11922 | EOF | |
11923 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11924 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
11925 | rm -rf conftest* | |
10f2d63a VZ |
11926 | ac_cv_type_off_t=yes |
11927 | else | |
698dcdb6 VZ |
11928 | rm -rf conftest* |
11929 | ac_cv_type_off_t=no | |
703e0a69 | 11930 | fi |
698dcdb6 | 11931 | rm -f conftest* |
1e487827 | 11932 | |
698dcdb6 VZ |
11933 | fi |
11934 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
11935 | if test $ac_cv_type_off_t = no; then | |
11936 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11937 | #define off_t long |
11938 | EOF | |
11939 | ||
11940 | fi | |
11941 | ||
698dcdb6 | 11942 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
d08b457b | 11943 | echo "configure:11944: checking for pid_t" >&5 |
698dcdb6 VZ |
11944 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
11945 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11946 | else |
698dcdb6 | 11947 | cat > conftest.$ac_ext <<EOF |
d08b457b | 11948 | #line 11949 "configure" |
10f2d63a | 11949 | #include "confdefs.h" |
698dcdb6 VZ |
11950 | #include <sys/types.h> |
11951 | #if STDC_HEADERS | |
11952 | #include <stdlib.h> | |
11953 | #include <stddef.h> | |
11954 | #endif | |
11955 | EOF | |
11956 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11957 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
11958 | rm -rf conftest* | |
10f2d63a VZ |
11959 | ac_cv_type_pid_t=yes |
11960 | else | |
698dcdb6 VZ |
11961 | rm -rf conftest* |
11962 | ac_cv_type_pid_t=no | |
703e0a69 | 11963 | fi |
698dcdb6 | 11964 | rm -f conftest* |
1e487827 | 11965 | |
698dcdb6 VZ |
11966 | fi |
11967 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
11968 | if test $ac_cv_type_pid_t = no; then | |
11969 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11970 | #define pid_t int |
11971 | EOF | |
11972 | ||
11973 | fi | |
11974 | ||
698dcdb6 | 11975 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
d08b457b | 11976 | echo "configure:11977: checking for size_t" >&5 |
698dcdb6 VZ |
11977 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
11978 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11979 | else |
698dcdb6 | 11980 | cat > conftest.$ac_ext <<EOF |
d08b457b | 11981 | #line 11982 "configure" |
10f2d63a | 11982 | #include "confdefs.h" |
698dcdb6 VZ |
11983 | #include <sys/types.h> |
11984 | #if STDC_HEADERS | |
11985 | #include <stdlib.h> | |
11986 | #include <stddef.h> | |
11987 | #endif | |
11988 | EOF | |
11989 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11990 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
11991 | rm -rf conftest* | |
10f2d63a VZ |
11992 | ac_cv_type_size_t=yes |
11993 | else | |
698dcdb6 VZ |
11994 | rm -rf conftest* |
11995 | ac_cv_type_size_t=no | |
703e0a69 | 11996 | fi |
698dcdb6 | 11997 | rm -f conftest* |
1e487827 | 11998 | |
698dcdb6 VZ |
11999 | fi |
12000 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
12001 | if test $ac_cv_type_size_t = no; then | |
12002 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
12003 | #define size_t unsigned |
12004 | EOF | |
12005 | ||
12006 | fi | |
12007 | ||
698dcdb6 | 12008 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
d08b457b | 12009 | echo "configure:12010: checking for uid_t in sys/types.h" >&5 |
698dcdb6 VZ |
12010 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
12011 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12012 | else |
698dcdb6 | 12013 | cat > conftest.$ac_ext <<EOF |
d08b457b | 12014 | #line 12015 "configure" |
10f2d63a VZ |
12015 | #include "confdefs.h" |
12016 | #include <sys/types.h> | |
698dcdb6 | 12017 | EOF |
10f2d63a VZ |
12018 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
12019 | egrep "uid_t" >/dev/null 2>&1; then | |
698dcdb6 | 12020 | rm -rf conftest* |
10f2d63a VZ |
12021 | ac_cv_type_uid_t=yes |
12022 | else | |
698dcdb6 | 12023 | rm -rf conftest* |
10f2d63a VZ |
12024 | ac_cv_type_uid_t=no |
12025 | fi | |
12026 | rm -f conftest* | |
12027 | ||
12028 | fi | |
1e487827 | 12029 | |
698dcdb6 VZ |
12030 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
12031 | if test $ac_cv_type_uid_t = no; then | |
12032 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
12033 | #define uid_t int |
12034 | EOF | |
12035 | ||
698dcdb6 | 12036 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
12037 | #define gid_t int |
12038 | EOF | |
12039 | ||
12040 | fi | |
12041 | ||
1e487827 | 12042 | |
698dcdb6 | 12043 | echo $ac_n "checking for wchar_t""... $ac_c" 1>&6 |
d08b457b | 12044 | echo "configure:12045: checking for wchar_t" >&5 |
698dcdb6 VZ |
12045 | if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then |
12046 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12047 | else | |
12048 | ||
12049 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 12050 | #line 12051 "configure" |
0046ff7c VS |
12051 | #include "confdefs.h" |
12052 | #include <wchar.h> | |
698dcdb6 | 12053 | int main() { |
0046ff7c | 12054 | |
d836ee96 VZ |
12055 | wchar_t wc, *ws; |
12056 | wc = L'a'; | |
12057 | ws = L"Hello, world!"; | |
698dcdb6 VZ |
12058 | |
12059 | ; return 0; } | |
12060 | EOF | |
d08b457b | 12061 | if { (eval echo configure:12062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 12062 | rm -rf conftest* |
1f8ae82f GD |
12063 | wx_cv_type_wchar_t=yes |
12064 | else | |
698dcdb6 VZ |
12065 | echo "configure: failed program was:" >&5 |
12066 | cat conftest.$ac_ext >&5 | |
12067 | rm -rf conftest* | |
12068 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 12069 | #line 12070 "configure" |
1f8ae82f GD |
12070 | #include "confdefs.h" |
12071 | #include <stdlib.h> | |
698dcdb6 | 12072 | int main() { |
1f8ae82f | 12073 | |
d836ee96 VZ |
12074 | wchar_t wc, *ws; |
12075 | wc = L'a'; | |
12076 | ws = L"Hello, world!"; | |
698dcdb6 VZ |
12077 | |
12078 | ; return 0; } | |
12079 | EOF | |
d08b457b | 12080 | if { (eval echo configure:12081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 12081 | rm -rf conftest* |
0046ff7c VS |
12082 | wx_cv_type_wchar_t=yes |
12083 | else | |
698dcdb6 VZ |
12084 | echo "configure: failed program was:" >&5 |
12085 | cat conftest.$ac_ext >&5 | |
12086 | rm -rf conftest* | |
12087 | wx_cv_type_wchar_t=no | |
0046ff7c | 12088 | fi |
698dcdb6 | 12089 | rm -f conftest* |
d836ee96 | 12090 | |
6232543b | 12091 | fi |
698dcdb6 | 12092 | rm -f conftest* |
703e0a69 | 12093 | |
1e487827 | 12094 | fi |
698dcdb6 VZ |
12095 | |
12096 | echo "$ac_t""$wx_cv_type_wchar_t" 1>&6 | |
d836ee96 VZ |
12097 | |
12098 | if test "$wx_cv_type_wchar_t" = "yes"; then | |
698dcdb6 | 12099 | cat >> confdefs.h <<\EOF |
0046ff7c VS |
12100 | #define wxUSE_WCHAR_T 1 |
12101 | EOF | |
12102 | ||
12103 | fi | |
12104 | ||
19af3b06 VZ |
12105 | |
12106 | ac_ext=C | |
12107 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
12108 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12109 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
12110 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12111 | cross_compiling=$ac_cv_prog_cxx_cross | |
12112 | ||
d836ee96 | 12113 | echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6 |
d08b457b | 12114 | echo "configure:12115: checking if size_t is unsigned int" >&5 |
d836ee96 VZ |
12115 | if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then |
12116 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12117 | else | |
dd2c8b7c | 12118 | cat > conftest.$ac_ext <<EOF |
d08b457b | 12119 | #line 12120 "configure" |
d836ee96 VZ |
12120 | #include "confdefs.h" |
12121 | #include <stddef.h> | |
12122 | int main() { | |
12123 | ||
dd2c8b7c VZ |
12124 | return 0; } |
12125 | ||
d836ee96 | 12126 | struct Foo { void foo(size_t); void foo(unsigned int); }; |
dd2c8b7c VZ |
12127 | |
12128 | int bar() { | |
d836ee96 VZ |
12129 | |
12130 | ; return 0; } | |
12131 | EOF | |
d08b457b | 12132 | if { (eval echo configure:12133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
d836ee96 VZ |
12133 | rm -rf conftest* |
12134 | wx_cv_size_t_is_uint=no | |
12135 | else | |
12136 | echo "configure: failed program was:" >&5 | |
12137 | cat conftest.$ac_ext >&5 | |
12138 | rm -rf conftest* | |
12139 | wx_cv_size_t_is_uint=yes | |
12140 | ||
12141 | fi | |
12142 | rm -f conftest* | |
12143 | ||
12144 | fi | |
12145 | ||
12146 | echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6 | |
12147 | ||
12148 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
12149 | cat >> confdefs.h <<\EOF | |
12150 | #define wxSIZE_T_IS_UINT 1 | |
12151 | EOF | |
12152 | ||
12153 | else | |
12154 | echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6 | |
d08b457b | 12155 | echo "configure:12156: checking if size_t is unsigned long" >&5 |
d836ee96 VZ |
12156 | if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then |
12157 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12158 | else | |
12159 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 12160 | #line 12161 "configure" |
d836ee96 VZ |
12161 | #include "confdefs.h" |
12162 | #include <stddef.h> | |
12163 | int main() { | |
12164 | ||
dd2c8b7c VZ |
12165 | return 0; } |
12166 | ||
d836ee96 | 12167 | struct Foo { void foo(size_t); void foo(unsigned long); }; |
dd2c8b7c VZ |
12168 | |
12169 | int bar() { | |
d836ee96 VZ |
12170 | |
12171 | ; return 0; } | |
12172 | EOF | |
d08b457b | 12173 | if { (eval echo configure:12174: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
d836ee96 VZ |
12174 | rm -rf conftest* |
12175 | wx_cv_size_t_is_ulong=no | |
12176 | else | |
12177 | echo "configure: failed program was:" >&5 | |
12178 | cat conftest.$ac_ext >&5 | |
12179 | rm -rf conftest* | |
12180 | wx_cv_size_t_is_ulong=yes | |
12181 | ||
12182 | fi | |
12183 | rm -f conftest* | |
12184 | ||
12185 | fi | |
12186 | ||
12187 | echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6 | |
12188 | ||
12189 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
12190 | cat >> confdefs.h <<\EOF | |
12191 | #define wxSIZE_T_IS_ULONG 1 | |
12192 | EOF | |
12193 | ||
12194 | fi | |
12195 | fi | |
12196 | ||
19af3b06 VZ |
12197 | ac_ext=c |
12198 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
12199 | ac_cpp='$CPP $CPPFLAGS' | |
12200 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
12201 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12202 | cross_compiling=$ac_cv_prog_cc_cross | |
12203 | ||
12204 | ||
1e487827 | 12205 | |
698dcdb6 | 12206 | echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6 |
d08b457b | 12207 | echo "configure:12208: checking for pw_gecos in struct passwd" >&5 |
698dcdb6 VZ |
12208 | if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then |
12209 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12210 | else | |
12211 | ||
12212 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 12213 | #line 12214 "configure" |
b12915c1 VZ |
12214 | #include "confdefs.h" |
12215 | #include <pwd.h> | |
698dcdb6 | 12216 | int main() { |
b12915c1 VZ |
12217 | |
12218 | char *p; | |
12219 | struct passwd *pw; | |
12220 | p = pw->pw_gecos; | |
698dcdb6 VZ |
12221 | |
12222 | ; return 0; } | |
12223 | EOF | |
d08b457b | 12224 | if { (eval echo configure:12225: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
12225 | rm -rf conftest* |
12226 | ||
b12915c1 | 12227 | wx_cv_struct_pw_gecos=yes |
698dcdb6 | 12228 | |
b12915c1 | 12229 | else |
698dcdb6 VZ |
12230 | echo "configure: failed program was:" >&5 |
12231 | cat conftest.$ac_ext >&5 | |
12232 | rm -rf conftest* | |
12233 | ||
b12915c1 | 12234 | wx_cv_struct_pw_gecos=no |
698dcdb6 VZ |
12235 | |
12236 | ||
6232543b | 12237 | fi |
698dcdb6 VZ |
12238 | rm -f conftest* |
12239 | ||
703e0a69 | 12240 | |
1e487827 | 12241 | fi |
698dcdb6 VZ |
12242 | |
12243 | echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6 | |
b12915c1 | 12244 | |
bd3277fe | 12245 | if test "$wx_cv_struct_pw_gecos" = "yes"; then |
698dcdb6 | 12246 | cat >> confdefs.h <<\EOF |
bd3277fe VZ |
12247 | #define HAVE_PW_GECOS 1 |
12248 | EOF | |
12249 | ||
12250 | fi | |
12251 | ||
698dcdb6 VZ |
12252 | |
12253 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
d08b457b | 12254 | echo "configure:12255: checking for working const" >&5 |
698dcdb6 VZ |
12255 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
12256 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12257 | else |
698dcdb6 | 12258 | cat > conftest.$ac_ext <<EOF |
d08b457b | 12259 | #line 12260 "configure" |
10f2d63a | 12260 | #include "confdefs.h" |
698dcdb6 VZ |
12261 | |
12262 | int main() { | |
12263 | ||
12264 | /* Ultrix mips cc rejects this. */ | |
12265 | typedef int charset[2]; const charset x; | |
12266 | /* SunOS 4.1.1 cc rejects this. */ | |
12267 | char const *const *ccp; | |
12268 | char **p; | |
12269 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
12270 | struct point {int x, y;}; | |
12271 | static struct point const zero = {0,0}; | |
12272 | /* AIX XL C 1.02.0.0 rejects this. | |
12273 | It does not let you subtract one const X* pointer from another in an arm | |
12274 | of an if-expression whose if-part is not a constant expression */ | |
12275 | const char *g = "string"; | |
12276 | ccp = &g + (g ? g-g : 0); | |
12277 | /* HPUX 7.0 cc rejects these. */ | |
12278 | ++ccp; | |
12279 | p = (char**) ccp; | |
12280 | ccp = (char const *const *) p; | |
12281 | { /* SCO 3.2v4 cc rejects this. */ | |
12282 | char *t; | |
12283 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
12284 | ||
12285 | *t++ = 0; | |
10f2d63a | 12286 | } |
698dcdb6 VZ |
12287 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
12288 | int x[] = {25, 17}; | |
12289 | const int *foo = &x[0]; | |
12290 | ++foo; | |
703e0a69 | 12291 | } |
698dcdb6 VZ |
12292 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
12293 | typedef const int *iptr; | |
12294 | iptr p = 0; | |
12295 | ++p; | |
6232543b | 12296 | } |
698dcdb6 VZ |
12297 | { /* AIX XL C 1.02.0.0 rejects this saying |
12298 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
12299 | struct s { int j; const int *ap[3]; }; | |
12300 | struct s *b; b->j = 5; | |
1e487827 | 12301 | } |
698dcdb6 VZ |
12302 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
12303 | const int foo = 10; | |
12304 | } | |
12305 | ||
12306 | ; return 0; } | |
12307 | EOF | |
d08b457b | 12308 | if { (eval echo configure:12309: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 12309 | rm -rf conftest* |
10f2d63a VZ |
12310 | ac_cv_c_const=yes |
12311 | else | |
698dcdb6 VZ |
12312 | echo "configure: failed program was:" >&5 |
12313 | cat conftest.$ac_ext >&5 | |
12314 | rm -rf conftest* | |
12315 | ac_cv_c_const=no | |
10f2d63a | 12316 | fi |
698dcdb6 | 12317 | rm -f conftest* |
10f2d63a | 12318 | fi |
1e487827 | 12319 | |
698dcdb6 VZ |
12320 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
12321 | if test $ac_cv_c_const = no; then | |
12322 | cat >> confdefs.h <<\EOF | |
12323 | #define const | |
10f2d63a VZ |
12324 | EOF |
12325 | ||
12326 | fi | |
12327 | ||
698dcdb6 | 12328 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
d08b457b | 12329 | echo "configure:12330: checking for inline" >&5 |
698dcdb6 VZ |
12330 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
12331 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
12332 | else |
12333 | ac_cv_c_inline=no | |
12334 | for ac_kw in inline __inline__ __inline; do | |
698dcdb6 | 12335 | cat > conftest.$ac_ext <<EOF |
d08b457b | 12336 | #line 12337 "configure" |
10f2d63a VZ |
12337 | #include "confdefs.h" |
12338 | ||
698dcdb6 VZ |
12339 | int main() { |
12340 | } $ac_kw foo() { | |
12341 | ; return 0; } | |
12342 | EOF | |
d08b457b | 12343 | if { (eval echo configure:12344: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 12344 | rm -rf conftest* |
10f2d63a VZ |
12345 | ac_cv_c_inline=$ac_kw; break |
12346 | else | |
698dcdb6 VZ |
12347 | echo "configure: failed program was:" >&5 |
12348 | cat conftest.$ac_ext >&5 | |
10f2d63a | 12349 | fi |
698dcdb6 | 12350 | rm -f conftest* |
10f2d63a VZ |
12351 | done |
12352 | ||
12353 | fi | |
698dcdb6 VZ |
12354 | |
12355 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | |
12356 | case "$ac_cv_c_inline" in | |
10f2d63a | 12357 | inline | yes) ;; |
698dcdb6 VZ |
12358 | no) cat >> confdefs.h <<\EOF |
12359 | #define inline | |
10f2d63a VZ |
12360 | EOF |
12361 | ;; | |
698dcdb6 | 12362 | *) cat >> confdefs.h <<EOF |
10f2d63a VZ |
12363 | #define inline $ac_cv_c_inline |
12364 | EOF | |
12365 | ;; | |
12366 | esac | |
12367 | ||
698dcdb6 VZ |
12368 | |
12369 | echo $ac_n "checking size of char""... $ac_c" 1>&6 | |
d08b457b | 12370 | echo "configure:12371: checking size of char" >&5 |
698dcdb6 VZ |
12371 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
12372 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6232543b | 12373 | else |
1e487827 | 12374 | if test "$cross_compiling" = yes; then |
698dcdb6 | 12375 | ac_cv_sizeof_char=1 |
1e487827 | 12376 | else |
698dcdb6 | 12377 | cat > conftest.$ac_ext <<EOF |
d08b457b | 12378 | #line 12379 "configure" |
1e487827 | 12379 | #include "confdefs.h" |
698dcdb6 VZ |
12380 | #include <stdio.h> |
12381 | main() | |
1e487827 | 12382 | { |
698dcdb6 VZ |
12383 | FILE *f=fopen("conftestval", "w"); |
12384 | if (!f) exit(1); | |
12385 | fprintf(f, "%d\n", sizeof(char)); | |
12386 | exit(0); | |
1e487827 | 12387 | } |
698dcdb6 | 12388 | EOF |
d08b457b | 12389 | if { (eval echo configure:12390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
12390 | then |
12391 | ac_cv_sizeof_char=`cat conftestval` | |
1e487827 | 12392 | else |
698dcdb6 VZ |
12393 | echo "configure: failed program was:" >&5 |
12394 | cat conftest.$ac_ext >&5 | |
12395 | rm -fr conftest* | |
1e487827 VS |
12396 | ac_cv_sizeof_char=0 |
12397 | fi | |
698dcdb6 | 12398 | rm -fr conftest* |
1e487827 | 12399 | fi |
10f2d63a | 12400 | |
1e487827 | 12401 | fi |
698dcdb6 VZ |
12402 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 |
12403 | cat >> confdefs.h <<EOF | |
12404 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
1e487827 | 12405 | EOF |
6232543b | 12406 | |
703e0a69 | 12407 | |
698dcdb6 | 12408 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
d08b457b | 12409 | echo "configure:12410: checking size of short" >&5 |
698dcdb6 VZ |
12410 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
12411 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 12412 | else |
1e487827 | 12413 | if test "$cross_compiling" = yes; then |
698dcdb6 | 12414 | ac_cv_sizeof_short=2 |
1e487827 | 12415 | else |
698dcdb6 | 12416 | cat > conftest.$ac_ext <<EOF |
d08b457b | 12417 | #line 12418 "configure" |
1e487827 | 12418 | #include "confdefs.h" |
698dcdb6 VZ |
12419 | #include <stdio.h> |
12420 | main() | |
1e487827 | 12421 | { |
698dcdb6 VZ |
12422 | FILE *f=fopen("conftestval", "w"); |
12423 | if (!f) exit(1); | |
12424 | fprintf(f, "%d\n", sizeof(short)); | |
12425 | exit(0); | |
1e487827 | 12426 | } |
698dcdb6 | 12427 | EOF |
d08b457b | 12428 | if { (eval echo configure:12429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
12429 | then |
12430 | ac_cv_sizeof_short=`cat conftestval` | |
1e487827 | 12431 | else |
698dcdb6 VZ |
12432 | echo "configure: failed program was:" >&5 |
12433 | cat conftest.$ac_ext >&5 | |
12434 | rm -fr conftest* | |
12435 | ac_cv_sizeof_short=0 | |
1e487827 | 12436 | fi |
698dcdb6 | 12437 | rm -fr conftest* |
1e487827 | 12438 | fi |
698dcdb6 | 12439 | |
1e487827 | 12440 | fi |
698dcdb6 VZ |
12441 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
12442 | cat >> confdefs.h <<EOF | |
12443 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
12444 | EOF | |
12445 | ||
12446 | ||
12447 | echo $ac_n "checking size of int *""... $ac_c" 1>&6 | |
d08b457b | 12448 | echo "configure:12449: checking size of int *" >&5 |
698dcdb6 VZ |
12449 | if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then |
12450 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
12451 | else |
12452 | if test "$cross_compiling" = yes; then | |
698dcdb6 | 12453 | ac_cv_sizeof_int_p=4 |
10f2d63a | 12454 | else |
698dcdb6 | 12455 | cat > conftest.$ac_ext <<EOF |
d08b457b | 12456 | #line 12457 "configure" |
10f2d63a | 12457 | #include "confdefs.h" |
698dcdb6 VZ |
12458 | #include <stdio.h> |
12459 | main() | |
10f2d63a | 12460 | { |
698dcdb6 VZ |
12461 | FILE *f=fopen("conftestval", "w"); |
12462 | if (!f) exit(1); | |
12463 | fprintf(f, "%d\n", sizeof(int *)); | |
12464 | exit(0); | |
10f2d63a | 12465 | } |
698dcdb6 | 12466 | EOF |
d08b457b | 12467 | if { (eval echo configure:12468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
12468 | then |
12469 | ac_cv_sizeof_int_p=`cat conftestval` | |
10f2d63a | 12470 | else |
698dcdb6 VZ |
12471 | echo "configure: failed program was:" >&5 |
12472 | cat conftest.$ac_ext >&5 | |
12473 | rm -fr conftest* | |
12474 | ac_cv_sizeof_int_p=0 | |
6232543b | 12475 | fi |
698dcdb6 | 12476 | rm -fr conftest* |
1e487827 | 12477 | fi |
698dcdb6 | 12478 | |
1e487827 | 12479 | fi |
698dcdb6 VZ |
12480 | echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6 |
12481 | cat >> confdefs.h <<EOF | |
12482 | #define SIZEOF_INT_P $ac_cv_sizeof_int_p | |
10f2d63a VZ |
12483 | EOF |
12484 | ||
698dcdb6 VZ |
12485 | |
12486 | echo $ac_n "checking size of int""... $ac_c" 1>&6 | |
d08b457b | 12487 | echo "configure:12488: checking size of int" >&5 |
698dcdb6 VZ |
12488 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
12489 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
12490 | else |
12491 | if test "$cross_compiling" = yes; then | |
698dcdb6 | 12492 | ac_cv_sizeof_int=4 |
703e0a69 | 12493 | else |
698dcdb6 | 12494 | cat > conftest.$ac_ext <<EOF |
d08b457b | 12495 | #line 12496 "configure" |
1e487827 | 12496 | #include "confdefs.h" |
698dcdb6 VZ |
12497 | #include <stdio.h> |
12498 | main() | |
1e487827 | 12499 | { |
698dcdb6 VZ |
12500 | FILE *f=fopen("conftestval", "w"); |
12501 | if (!f) exit(1); | |
12502 | fprintf(f, "%d\n", sizeof(int)); | |
12503 | exit(0); | |
1e487827 | 12504 | } |
698dcdb6 | 12505 | EOF |
d08b457b | 12506 | if { (eval echo configure:12507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
12507 | then |
12508 | ac_cv_sizeof_int=`cat conftestval` | |
12509 | else | |
12510 | echo "configure: failed program was:" >&5 | |
12511 | cat conftest.$ac_ext >&5 | |
12512 | rm -fr conftest* | |
12513 | ac_cv_sizeof_int=0 | |
703e0a69 | 12514 | fi |
698dcdb6 VZ |
12515 | rm -fr conftest* |
12516 | fi | |
12517 | ||
12518 | fi | |
12519 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | |
12520 | cat >> confdefs.h <<EOF | |
12521 | #define SIZEOF_INT $ac_cv_sizeof_int | |
12522 | EOF | |
12523 | ||
12524 | ||
12525 | echo $ac_n "checking size of long""... $ac_c" 1>&6 | |
d08b457b | 12526 | echo "configure:12527: checking size of long" >&5 |
698dcdb6 VZ |
12527 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
12528 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
12529 | else |
12530 | if test "$cross_compiling" = yes; then | |
698dcdb6 | 12531 | ac_cv_sizeof_long=4 |
10f2d63a | 12532 | else |
698dcdb6 | 12533 | cat > conftest.$ac_ext <<EOF |
d08b457b | 12534 | #line 12535 "configure" |
10f2d63a | 12535 | #include "confdefs.h" |
698dcdb6 VZ |
12536 | #include <stdio.h> |
12537 | main() | |
10f2d63a | 12538 | { |
698dcdb6 VZ |
12539 | FILE *f=fopen("conftestval", "w"); |
12540 | if (!f) exit(1); | |
12541 | fprintf(f, "%d\n", sizeof(long)); | |
12542 | exit(0); | |
10f2d63a | 12543 | } |
698dcdb6 | 12544 | EOF |
d08b457b | 12545 | if { (eval echo configure:12546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
12546 | then |
12547 | ac_cv_sizeof_long=`cat conftestval` | |
10f2d63a | 12548 | else |
698dcdb6 VZ |
12549 | echo "configure: failed program was:" >&5 |
12550 | cat conftest.$ac_ext >&5 | |
12551 | rm -fr conftest* | |
12552 | ac_cv_sizeof_long=0 | |
10f2d63a | 12553 | fi |
698dcdb6 | 12554 | rm -fr conftest* |
10f2d63a | 12555 | fi |
698dcdb6 | 12556 | |
10f2d63a | 12557 | fi |
698dcdb6 VZ |
12558 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 |
12559 | cat >> confdefs.h <<EOF | |
12560 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
12561 | EOF | |
12562 | ||
12563 | ||
12564 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
d08b457b | 12565 | echo "configure:12566: checking size of long long" >&5 |
698dcdb6 VZ |
12566 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
12567 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12568 | else | |
12569 | if test "$cross_compiling" = yes; then | |
12570 | ac_cv_sizeof_long_long=0 | |
12571 | else | |
12572 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 12573 | #line 12574 "configure" |
698dcdb6 VZ |
12574 | #include "confdefs.h" |
12575 | #include <stdio.h> | |
12576 | main() | |
12577 | { | |
12578 | FILE *f=fopen("conftestval", "w"); | |
12579 | if (!f) exit(1); | |
12580 | fprintf(f, "%d\n", sizeof(long long)); | |
12581 | exit(0); | |
12582 | } | |
12583 | EOF | |
d08b457b | 12584 | if { (eval echo configure:12585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
12585 | then |
12586 | ac_cv_sizeof_long_long=`cat conftestval` | |
6232543b | 12587 | else |
698dcdb6 VZ |
12588 | echo "configure: failed program was:" >&5 |
12589 | cat conftest.$ac_ext >&5 | |
12590 | rm -fr conftest* | |
6232543b VS |
12591 | ac_cv_sizeof_long_long=0 |
12592 | fi | |
698dcdb6 VZ |
12593 | rm -fr conftest* |
12594 | fi | |
12595 | ||
703e0a69 | 12596 | fi |
698dcdb6 VZ |
12597 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
12598 | cat >> confdefs.h <<EOF | |
10f2d63a VZ |
12599 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
12600 | EOF | |
12601 | ||
1e487827 | 12602 | |
698dcdb6 VZ |
12603 | |
12604 | echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6 | |
d08b457b | 12605 | echo "configure:12606: checking size of wchar_t" >&5 |
698dcdb6 VZ |
12606 | if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then |
12607 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12608 | else | |
12609 | ||
b93d0d08 VS |
12610 | if test "$cross_compiling" = yes; then |
12611 | wx_cv_sizeof_wchar_t=4 | |
1e6feb95 | 12612 | |
b93d0d08 | 12613 | else |
698dcdb6 | 12614 | cat > conftest.$ac_ext <<EOF |
d08b457b | 12615 | #line 12616 "configure" |
b93d0d08 VS |
12616 | #include "confdefs.h" |
12617 | ||
1e6feb95 VZ |
12618 | #ifdef HAVE_WCHAR_H |
12619 | # include <wchar.h> | |
12620 | #endif | |
12621 | #ifdef HAVE_STDLIB_H | |
12622 | # include <stdlib.h> | |
12623 | #endif | |
12624 | #include <stdio.h> | |
12625 | int main() | |
12626 | { | |
12627 | FILE *f=fopen("conftestval", "w"); | |
12628 | if (!f) exit(1); | |
12629 | fprintf(f, "%i", sizeof(wchar_t)); | |
12630 | exit(0); | |
12631 | } | |
698dcdb6 VZ |
12632 | |
12633 | EOF | |
d08b457b | 12634 | if { (eval echo configure:12635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 12635 | then |
b93d0d08 VS |
12636 | wx_cv_sizeof_wchar_t=`cat conftestval` |
12637 | else | |
698dcdb6 VZ |
12638 | echo "configure: failed program was:" >&5 |
12639 | cat conftest.$ac_ext >&5 | |
12640 | rm -fr conftest* | |
12641 | wx_cv_sizeof_wchar_t=0 | |
b93d0d08 | 12642 | fi |
698dcdb6 | 12643 | rm -fr conftest* |
b93d0d08 VS |
12644 | fi |
12645 | ||
698dcdb6 | 12646 | |
b93d0d08 VS |
12647 | fi |
12648 | ||
698dcdb6 VZ |
12649 | echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6 |
12650 | ||
12651 | cat >> confdefs.h <<EOF | |
28c6addc | 12652 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t |
b93d0d08 VS |
12653 | EOF |
12654 | ||
698dcdb6 | 12655 | |
698dcdb6 | 12656 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
d08b457b | 12657 | echo "configure:12658: checking whether byte ordering is bigendian" >&5 |
698dcdb6 VZ |
12658 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
12659 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
12660 | else |
12661 | ac_cv_c_bigendian=unknown | |
12662 | # See if sys/param.h defines the BYTE_ORDER macro. | |
698dcdb6 | 12663 | cat > conftest.$ac_ext <<EOF |
d08b457b | 12664 | #line 12665 "configure" |
10f2d63a VZ |
12665 | #include "confdefs.h" |
12666 | #include <sys/types.h> | |
12667 | #include <sys/param.h> | |
698dcdb6 | 12668 | int main() { |
10f2d63a VZ |
12669 | |
12670 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
12671 | bogus endian macros | |
12672 | #endif | |
698dcdb6 VZ |
12673 | ; return 0; } |
12674 | EOF | |
d08b457b | 12675 | if { (eval echo configure:12676: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 12676 | rm -rf conftest* |
10f2d63a | 12677 | # It does; now see whether it defined to BIG_ENDIAN or not. |
698dcdb6 | 12678 | cat > conftest.$ac_ext <<EOF |
d08b457b | 12679 | #line 12680 "configure" |
10f2d63a VZ |
12680 | #include "confdefs.h" |
12681 | #include <sys/types.h> | |
12682 | #include <sys/param.h> | |
698dcdb6 | 12683 | int main() { |
10f2d63a VZ |
12684 | |
12685 | #if BYTE_ORDER != BIG_ENDIAN | |
12686 | not big endian | |
12687 | #endif | |
698dcdb6 VZ |
12688 | ; return 0; } |
12689 | EOF | |
d08b457b | 12690 | if { (eval echo configure:12691: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 12691 | rm -rf conftest* |
10f2d63a VZ |
12692 | ac_cv_c_bigendian=yes |
12693 | else | |
698dcdb6 VZ |
12694 | echo "configure: failed program was:" >&5 |
12695 | cat conftest.$ac_ext >&5 | |
12696 | rm -rf conftest* | |
12697 | ac_cv_c_bigendian=no | |
10f2d63a | 12698 | fi |
698dcdb6 | 12699 | rm -f conftest* |
10f2d63a | 12700 | else |
698dcdb6 VZ |
12701 | echo "configure: failed program was:" >&5 |
12702 | cat conftest.$ac_ext >&5 | |
10f2d63a | 12703 | fi |
698dcdb6 | 12704 | rm -f conftest* |
10f2d63a VZ |
12705 | if test $ac_cv_c_bigendian = unknown; then |
12706 | if test "$cross_compiling" = yes; then | |
12707 | ac_cv_c_bigendian=unknown | |
12708 | else | |
698dcdb6 | 12709 | cat > conftest.$ac_ext <<EOF |
d08b457b | 12710 | #line 12711 "configure" |
10f2d63a VZ |
12711 | #include "confdefs.h" |
12712 | main () { | |
12713 | /* Are we little or big endian? From Harbison&Steele. */ | |
12714 | union | |
12715 | { | |
12716 | long l; | |
12717 | char c[sizeof (long)]; | |
12718 | } u; | |
12719 | u.l = 1; | |
12720 | exit (u.c[sizeof (long) - 1] == 1); | |
12721 | } | |
698dcdb6 | 12722 | EOF |
d08b457b | 12723 | if { (eval echo configure:12724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 12724 | then |
10f2d63a VZ |
12725 | ac_cv_c_bigendian=no |
12726 | else | |
698dcdb6 VZ |
12727 | echo "configure: failed program was:" >&5 |
12728 | cat conftest.$ac_ext >&5 | |
12729 | rm -fr conftest* | |
12730 | ac_cv_c_bigendian=yes | |
10f2d63a | 12731 | fi |
698dcdb6 | 12732 | rm -fr conftest* |
10f2d63a | 12733 | fi |
698dcdb6 | 12734 | |
10f2d63a VZ |
12735 | fi |
12736 | fi | |
698dcdb6 VZ |
12737 | |
12738 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | |
10f2d63a | 12739 | if test $ac_cv_c_bigendian = unknown; then |
698dcdb6 | 12740 | echo "configure: warning: Assuming little-endian target machine - this may be overriden by adding the line "ac_cv_c_bigendian=${ac_cv_c_bigendian='yes'}" to config.cache file" 1>&2 |
10f2d63a VZ |
12741 | fi |
12742 | if test $ac_cv_c_bigendian = yes; then | |
698dcdb6 | 12743 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
12744 | #define WORDS_BIGENDIAN 1 |
12745 | EOF | |
12746 | ||
12747 | fi | |
12748 | ||
698dcdb6 | 12749 | |
3a922bb4 | 12750 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 |
d08b457b | 12751 | echo "configure:12752: checking how to run the C++ preprocessor" >&5 |
3a922bb4 RL |
12752 | if test -z "$CXXCPP"; then |
12753 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then | |
12754 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12755 | else | |
12756 | ac_ext=C | |
12757 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
12758 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12759 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
12760 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12761 | cross_compiling=$ac_cv_prog_cxx_cross | |
12762 | CXXCPP="${CXX-g++} -E" | |
12763 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 12764 | #line 12765 "configure" |
3a922bb4 RL |
12765 | #include "confdefs.h" |
12766 | #include <stdlib.h> | |
12767 | EOF | |
12768 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d08b457b | 12769 | { (eval echo configure:12770: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3a922bb4 RL |
12770 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12771 | if test -z "$ac_err"; then | |
12772 | : | |
12773 | else | |
12774 | echo "$ac_err" >&5 | |
12775 | echo "configure: failed program was:" >&5 | |
12776 | cat conftest.$ac_ext >&5 | |
12777 | rm -rf conftest* | |
12778 | CXXCPP=/lib/cpp | |
12779 | fi | |
12780 | rm -f conftest* | |
12781 | ac_cv_prog_CXXCPP="$CXXCPP" | |
12782 | ac_ext=C | |
12783 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
12784 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12785 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
12786 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12787 | cross_compiling=$ac_cv_prog_cxx_cross | |
12788 | fi | |
12789 | fi | |
12790 | CXXCPP="$ac_cv_prog_CXXCPP" | |
12791 | echo "$ac_t""$CXXCPP" 1>&6 | |
12792 | ||
698dcdb6 | 12793 | |
10f2d63a | 12794 | if test "$cross_compiling" = "yes"; then |
698dcdb6 | 12795 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
12796 | #define wxUSE_IOSTREAMH 1 |
12797 | EOF | |
12798 | ||
12799 | else | |
698dcdb6 VZ |
12800 | |
12801 | ac_ext=C | |
12802 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 12803 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
12804 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12805 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12806 | cross_compiling=$ac_cv_prog_cxx_cross | |
12807 | ||
703e0a69 | 12808 | |
698dcdb6 | 12809 | for ac_hdr in iostream |
10f2d63a | 12810 | do |
698dcdb6 VZ |
12811 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12812 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d08b457b | 12813 | echo "configure:12814: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
12814 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12815 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12816 | else | |
12817 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 12818 | #line 12819 "configure" |
10f2d63a | 12819 | #include "confdefs.h" |
698dcdb6 VZ |
12820 | #include <$ac_hdr> |
12821 | EOF | |
12822 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d08b457b | 12823 | { (eval echo configure:12824: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
12824 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12825 | if test -z "$ac_err"; then | |
12826 | rm -rf conftest* | |
12827 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 12828 | else |
698dcdb6 VZ |
12829 | echo "$ac_err" >&5 |
12830 | echo "configure: failed program was:" >&5 | |
10f2d63a | 12831 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
12832 | rm -rf conftest* |
12833 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 12834 | fi |
698dcdb6 | 12835 | rm -f conftest* |
10f2d63a | 12836 | fi |
698dcdb6 VZ |
12837 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12838 | echo "$ac_t""yes" 1>&6 | |
12839 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12840 | cat >> confdefs.h <<EOF | |
12841 | #define $ac_tr_hdr 1 | |
10f2d63a | 12842 | EOF |
698dcdb6 VZ |
12843 | |
12844 | else | |
12845 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
12846 | fi |
12847 | done | |
12848 | ||
698dcdb6 | 12849 | |
57fe5ed0 VZ |
12850 | if test "$ac_cv_header_iostream" = "yes" ; then |
12851 | : | |
12852 | else | |
698dcdb6 | 12853 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
12854 | #define wxUSE_IOSTREAMH 1 |
12855 | EOF | |
12856 | ||
10f2d63a VZ |
12857 | fi |
12858 | ||
12859 | ac_ext=c | |
698dcdb6 | 12860 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 12861 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
12862 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12863 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12864 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a VZ |
12865 | |
12866 | fi | |
12867 | ||
703e0a69 | 12868 | |
698dcdb6 VZ |
12869 | |
12870 | echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6 | |
d08b457b | 12871 | echo "configure:12872: checking if C++ compiler supports bool" >&5 |
698dcdb6 VZ |
12872 | if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then |
12873 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12874 | else | |
12875 | ||
12876 | ||
12877 | ac_ext=C | |
12878 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 12879 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
12880 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12881 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12882 | cross_compiling=$ac_cv_prog_cxx_cross | |
10f2d63a | 12883 | |
698dcdb6 VZ |
12884 | |
12885 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 12886 | #line 12887 "configure" |
10f2d63a VZ |
12887 | #include "confdefs.h" |
12888 | ||
698dcdb6 VZ |
12889 | |
12890 | int main() { | |
10f2d63a VZ |
12891 | |
12892 | bool b = true; | |
12893 | ||
12894 | return 0; | |
698dcdb6 VZ |
12895 | |
12896 | ; return 0; } | |
12897 | EOF | |
d08b457b | 12898 | if { (eval echo configure:12899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
12899 | rm -rf conftest* |
12900 | ||
10f2d63a | 12901 | wx_cv_cpp_bool=yes |
698dcdb6 | 12902 | |
10f2d63a | 12903 | else |
698dcdb6 VZ |
12904 | echo "configure: failed program was:" >&5 |
12905 | cat conftest.$ac_ext >&5 | |
12906 | rm -rf conftest* | |
12907 | ||
10f2d63a | 12908 | wx_cv_cpp_bool=no |
698dcdb6 VZ |
12909 | |
12910 | ||
10f2d63a | 12911 | fi |
698dcdb6 | 12912 | rm -f conftest* |
10f2d63a VZ |
12913 | |
12914 | ac_ext=c | |
698dcdb6 | 12915 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 12916 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
12917 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12918 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12919 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a | 12920 | |
698dcdb6 | 12921 | |
10f2d63a | 12922 | fi |
698dcdb6 VZ |
12923 | |
12924 | echo "$ac_t""$wx_cv_cpp_bool" 1>&6 | |
10f2d63a VZ |
12925 | |
12926 | if test "$wx_cv_cpp_bool" = "yes"; then | |
698dcdb6 | 12927 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
12928 | #define HAVE_BOOL 1 |
12929 | EOF | |
12930 | ||
12931 | fi | |
12932 | ||
1e487827 | 12933 | |
698dcdb6 | 12934 | |
698dcdb6 | 12935 | echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6 |
d08b457b | 12936 | echo "configure:12937: checking for wcslen in -lc" >&5 |
698dcdb6 VZ |
12937 | ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'` |
12938 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12939 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12940 | else |
698dcdb6 | 12941 | ac_save_LIBS="$LIBS" |
10f2d63a | 12942 | LIBS="-lc $LIBS" |
698dcdb6 | 12943 | cat > conftest.$ac_ext <<EOF |
d08b457b | 12944 | #line 12945 "configure" |
10f2d63a VZ |
12945 | #include "confdefs.h" |
12946 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12947 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12948 | builtin and then its argument prototype would still apply. */ |
12949 | char wcslen(); | |
12950 | ||
12951 | int main() { | |
12952 | wcslen() | |
12953 | ; return 0; } | |
12954 | EOF | |
d08b457b | 12955 | if { (eval echo configure:12956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12956 | rm -rf conftest* |
12957 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12958 | else | |
12959 | echo "configure: failed program was:" >&5 | |
12960 | cat conftest.$ac_ext >&5 | |
12961 | rm -rf conftest* | |
12962 | eval "ac_cv_lib_$ac_lib_var=no" | |
12963 | fi | |
12964 | rm -f conftest* | |
12965 | LIBS="$ac_save_LIBS" | |
12966 | ||
12967 | fi | |
12968 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12969 | echo "$ac_t""yes" 1>&6 | |
12970 | ||
12971 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
12972 | #define HAVE_WCSLEN 1 |
12973 | EOF | |
12974 | ||
12975 | WCHAR_LINK="" | |
698dcdb6 | 12976 | |
10f2d63a | 12977 | else |
698dcdb6 | 12978 | echo "$ac_t""no" 1>&6 |
10f2d63a | 12979 | |
698dcdb6 | 12980 | echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6 |
d08b457b | 12981 | echo "configure:12982: checking for wcslen in -lw" >&5 |
698dcdb6 VZ |
12982 | ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'` |
12983 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12984 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12985 | else |
698dcdb6 | 12986 | ac_save_LIBS="$LIBS" |
10f2d63a | 12987 | LIBS="-lw $LIBS" |
698dcdb6 | 12988 | cat > conftest.$ac_ext <<EOF |
d08b457b | 12989 | #line 12990 "configure" |
10f2d63a VZ |
12990 | #include "confdefs.h" |
12991 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12992 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12993 | builtin and then its argument prototype would still apply. */ |
12994 | char wcslen(); | |
12995 | ||
12996 | int main() { | |
12997 | wcslen() | |
12998 | ; return 0; } | |
12999 | EOF | |
d08b457b | 13000 | if { (eval echo configure:13001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13001 | rm -rf conftest* |
13002 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13003 | else | |
13004 | echo "configure: failed program was:" >&5 | |
13005 | cat conftest.$ac_ext >&5 | |
13006 | rm -rf conftest* | |
13007 | eval "ac_cv_lib_$ac_lib_var=no" | |
13008 | fi | |
13009 | rm -f conftest* | |
13010 | LIBS="$ac_save_LIBS" | |
13011 | ||
13012 | fi | |
13013 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13014 | echo "$ac_t""yes" 1>&6 | |
13015 | ||
13016 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
13017 | #define HAVE_WCSLEN 1 |
13018 | EOF | |
13019 | ||
13020 | WCHAR_LINK="-lw" | |
698dcdb6 | 13021 | |
18dbb1f6 VZ |
13022 | else |
13023 | echo "$ac_t""no" 1>&6 | |
13024 | ||
13025 | echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6 | |
d08b457b | 13026 | echo "configure:13027: checking for wcslen in -lmsvcrt" >&5 |
18dbb1f6 VZ |
13027 | ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'` |
13028 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13029 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13030 | else | |
13031 | ac_save_LIBS="$LIBS" | |
13032 | LIBS="-lmsvcrt $LIBS" | |
13033 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 13034 | #line 13035 "configure" |
18dbb1f6 VZ |
13035 | #include "confdefs.h" |
13036 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13037 | /* We use char because int might match the return type of a gcc2 | |
13038 | builtin and then its argument prototype would still apply. */ | |
13039 | char wcslen(); | |
13040 | ||
13041 | int main() { | |
13042 | wcslen() | |
13043 | ; return 0; } | |
13044 | EOF | |
d08b457b | 13045 | if { (eval echo configure:13046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
18dbb1f6 VZ |
13046 | rm -rf conftest* |
13047 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13048 | else | |
13049 | echo "configure: failed program was:" >&5 | |
13050 | cat conftest.$ac_ext >&5 | |
13051 | rm -rf conftest* | |
13052 | eval "ac_cv_lib_$ac_lib_var=no" | |
13053 | fi | |
13054 | rm -f conftest* | |
13055 | LIBS="$ac_save_LIBS" | |
13056 | ||
13057 | fi | |
13058 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13059 | echo "$ac_t""yes" 1>&6 | |
13060 | ||
13061 | cat >> confdefs.h <<\EOF | |
13062 | #define HAVE_WCSLEN 1 | |
13063 | EOF | |
13064 | ||
13065 | WCHAR_LINK="" | |
13066 | ||
698dcdb6 VZ |
13067 | else |
13068 | echo "$ac_t""no" 1>&6 | |
6232543b | 13069 | fi |
10f2d63a | 13070 | |
18dbb1f6 VZ |
13071 | |
13072 | fi | |
13073 | ||
698dcdb6 | 13074 | |
1e487827 | 13075 | fi |
703e0a69 | 13076 | |
698dcdb6 | 13077 | |
b3e8d00a VZ |
13078 | for ac_func in wcsrtombs |
13079 | do | |
13080 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
d08b457b | 13081 | echo "configure:13082: checking for $ac_func" >&5 |
b3e8d00a VZ |
13082 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13083 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13084 | else | |
13085 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 13086 | #line 13087 "configure" |
b3e8d00a VZ |
13087 | #include "confdefs.h" |
13088 | /* System header to define __stub macros and hopefully few prototypes, | |
13089 | which can conflict with char $ac_func(); below. */ | |
13090 | #include <assert.h> | |
13091 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13092 | /* We use char because int might match the return type of a gcc2 | |
13093 | builtin and then its argument prototype would still apply. */ | |
13094 | char $ac_func(); | |
13095 | ||
13096 | int main() { | |
13097 | ||
13098 | /* The GNU C library defines this for functions which it implements | |
13099 | to always fail with ENOSYS. Some functions are actually named | |
13100 | something starting with __ and the normal name is an alias. */ | |
13101 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13102 | choke me | |
13103 | #else | |
13104 | $ac_func(); | |
13105 | #endif | |
13106 | ||
13107 | ; return 0; } | |
13108 | EOF | |
d08b457b | 13109 | if { (eval echo configure:13110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
b3e8d00a VZ |
13110 | rm -rf conftest* |
13111 | eval "ac_cv_func_$ac_func=yes" | |
13112 | else | |
13113 | echo "configure: failed program was:" >&5 | |
13114 | cat conftest.$ac_ext >&5 | |
13115 | rm -rf conftest* | |
13116 | eval "ac_cv_func_$ac_func=no" | |
13117 | fi | |
13118 | rm -f conftest* | |
13119 | fi | |
13120 | ||
13121 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13122 | echo "$ac_t""yes" 1>&6 | |
13123 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13124 | cat >> confdefs.h <<EOF | |
13125 | #define $ac_tr_func 1 | |
13126 | EOF | |
13127 | ||
13128 | else | |
13129 | echo "$ac_t""no" 1>&6 | |
13130 | fi | |
13131 | done | |
13132 | ||
13133 | ||
698dcdb6 | 13134 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 |
d08b457b | 13135 | echo "configure:13136: checking for vprintf" >&5 |
698dcdb6 VZ |
13136 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
13137 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13138 | else | |
13139 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 13140 | #line 13141 "configure" |
10f2d63a VZ |
13141 | #include "confdefs.h" |
13142 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13143 | which can conflict with char vprintf(); below. */ |
10f2d63a VZ |
13144 | #include <assert.h> |
13145 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13146 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13147 | builtin and then its argument prototype would still apply. */ |
13148 | char vprintf(); | |
13149 | ||
13150 | int main() { | |
10f2d63a VZ |
13151 | |
13152 | /* The GNU C library defines this for functions which it implements | |
13153 | to always fail with ENOSYS. Some functions are actually named | |
13154 | something starting with __ and the normal name is an alias. */ | |
698dcdb6 | 13155 | #if defined (__stub_vprintf) || defined (__stub___vprintf) |
10f2d63a VZ |
13156 | choke me |
13157 | #else | |
698dcdb6 | 13158 | vprintf(); |
10f2d63a VZ |
13159 | #endif |
13160 | ||
698dcdb6 VZ |
13161 | ; return 0; } |
13162 | EOF | |
d08b457b | 13163 | if { (eval echo configure:13164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13164 | rm -rf conftest* |
13165 | eval "ac_cv_func_vprintf=yes" | |
13166 | else | |
13167 | echo "configure: failed program was:" >&5 | |
13168 | cat conftest.$ac_ext >&5 | |
13169 | rm -rf conftest* | |
13170 | eval "ac_cv_func_vprintf=no" | |
13171 | fi | |
13172 | rm -f conftest* | |
13173 | fi | |
13174 | ||
13175 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then | |
13176 | echo "$ac_t""yes" 1>&6 | |
13177 | cat >> confdefs.h <<\EOF | |
13178 | #define HAVE_VPRINTF 1 | |
13179 | EOF | |
13180 | ||
13181 | else | |
13182 | echo "$ac_t""no" 1>&6 | |
13183 | fi | |
13184 | ||
13185 | if test "$ac_cv_func_vprintf" != yes; then | |
13186 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | |
d08b457b | 13187 | echo "configure:13188: checking for _doprnt" >&5 |
698dcdb6 VZ |
13188 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
13189 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13190 | else | |
13191 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 13192 | #line 13193 "configure" |
10f2d63a VZ |
13193 | #include "confdefs.h" |
13194 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13195 | which can conflict with char _doprnt(); below. */ |
10f2d63a VZ |
13196 | #include <assert.h> |
13197 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13198 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13199 | builtin and then its argument prototype would still apply. */ |
13200 | char _doprnt(); | |
13201 | ||
13202 | int main() { | |
10f2d63a VZ |
13203 | |
13204 | /* The GNU C library defines this for functions which it implements | |
13205 | to always fail with ENOSYS. Some functions are actually named | |
13206 | something starting with __ and the normal name is an alias. */ | |
13207 | #if defined (__stub__doprnt) || defined (__stub____doprnt) | |
13208 | choke me | |
13209 | #else | |
698dcdb6 | 13210 | _doprnt(); |
10f2d63a VZ |
13211 | #endif |
13212 | ||
698dcdb6 VZ |
13213 | ; return 0; } |
13214 | EOF | |
d08b457b | 13215 | if { (eval echo configure:13216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13216 | rm -rf conftest* |
13217 | eval "ac_cv_func__doprnt=yes" | |
13218 | else | |
13219 | echo "configure: failed program was:" >&5 | |
13220 | cat conftest.$ac_ext >&5 | |
13221 | rm -rf conftest* | |
13222 | eval "ac_cv_func__doprnt=no" | |
13223 | fi | |
13224 | rm -f conftest* | |
13225 | fi | |
13226 | ||
13227 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then | |
13228 | echo "$ac_t""yes" 1>&6 | |
13229 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
13230 | #define HAVE_DOPRNT 1 |
13231 | EOF | |
13232 | ||
698dcdb6 VZ |
13233 | else |
13234 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13235 | fi |
13236 | ||
13237 | fi | |
13238 | ||
1e487827 | 13239 | |
698dcdb6 VZ |
13240 | |
13241 | ||
13242 | ||
13243 | ||
698dcdb6 | 13244 | echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6 |
d08b457b | 13245 | echo "configure:13246: checking for vsnprintf" >&5 |
698dcdb6 VZ |
13246 | if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then |
13247 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13248 | else | |
13249 | ||
13250 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 13251 | #line 13252 "configure" |
f6bcfd97 BP |
13252 | #include "confdefs.h" |
13253 | ||
13254 | #include <stdio.h> | |
698dcdb6 VZ |
13255 | #include <stdarg.h> |
13256 | ||
13257 | int main() { | |
10f2d63a | 13258 | |
f6bcfd97 | 13259 | int wx_test_vsnprintf(const char *, ...); |
10f2d63a | 13260 | |
f6bcfd97 BP |
13261 | wx_test_vsnprintf("%s"); |
13262 | return 0; | |
13263 | } | |
13264 | ||
13265 | int wx_test_vsnprintf(const char *fmt, ...) | |
13266 | { | |
13267 | char *s; | |
13268 | ||
13269 | va_list argp; | |
13270 | va_start(argp, fmt); | |
13271 | vsnprintf(s, 42, fmt, argp); | |
13272 | va_end(argp); | |
698dcdb6 VZ |
13273 | |
13274 | ; return 0; } | |
13275 | EOF | |
d08b457b | 13276 | if { (eval echo configure:13277: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
13277 | rm -rf conftest* |
13278 | ||
f6bcfd97 | 13279 | wx_cv_func_vsnprintf=yes |
698dcdb6 | 13280 | |
10f2d63a | 13281 | else |
698dcdb6 VZ |
13282 | echo "configure: failed program was:" >&5 |
13283 | cat conftest.$ac_ext >&5 | |
13284 | rm -rf conftest* | |
13285 | ||
13286 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 13287 | #line 13288 "configure" |
c521c494 RL |
13288 | #include "confdefs.h" |
13289 | ||
13290 | #include <stdio.h> | |
13291 | #include <stdarg.h> | |
698dcdb6 VZ |
13292 | |
13293 | int main() { | |
c521c494 RL |
13294 | |
13295 | int wx_test_vsnprintf(const char *, ...); | |
13296 | ||
13297 | wx_test_vsnprintf("%s"); | |
13298 | return 0; | |
13299 | } | |
13300 | ||
13301 | int wx_test_vsnprintf(const char *fmt, ...) | |
13302 | { | |
13303 | char *s; | |
13304 | ||
13305 | va_list argp; | |
13306 | va_start(argp, fmt); | |
13307 | _vsnprintf(s, 42, fmt, argp); | |
13308 | va_end(argp); | |
698dcdb6 VZ |
13309 | |
13310 | ; return 0; } | |
13311 | EOF | |
d08b457b | 13312 | if { (eval echo configure:13313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
13313 | rm -rf conftest* |
13314 | ||
c521c494 | 13315 | wx_cv_func_vsnprintf=yes |
698dcdb6 | 13316 | |
c521c494 | 13317 | else |
698dcdb6 VZ |
13318 | echo "configure: failed program was:" >&5 |
13319 | cat conftest.$ac_ext >&5 | |
13320 | rm -rf conftest* | |
13321 | ||
c521c494 | 13322 | wx_cv_func_vsnprintf=no |
698dcdb6 | 13323 | |
10f2d63a | 13324 | fi |
698dcdb6 VZ |
13325 | rm -f conftest* |
13326 | ||
6232543b | 13327 | fi |
698dcdb6 | 13328 | rm -f conftest* |
703e0a69 | 13329 | |
1e487827 | 13330 | fi |
698dcdb6 VZ |
13331 | |
13332 | echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6 | |
10f2d63a | 13333 | |
9d8deca0 | 13334 | if test "$wx_cv_func_vsnprintf" = yes; then |
698dcdb6 | 13335 | cat >> confdefs.h <<\EOF |
9d8deca0 VZ |
13336 | #define HAVE_VSNPRINTF 1 |
13337 | EOF | |
13338 | ||
13339 | else | |
698dcdb6 | 13340 | echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2 |
9d8deca0 VZ |
13341 | fi |
13342 | ||
698dcdb6 | 13343 | echo $ac_n "checking for vsscanf""... $ac_c" 1>&6 |
d08b457b | 13344 | echo "configure:13345: checking for vsscanf" >&5 |
698dcdb6 VZ |
13345 | if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then |
13346 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13347 | else |
698dcdb6 VZ |
13348 | |
13349 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 13350 | #line 13351 "configure" |
10f2d63a | 13351 | #include "confdefs.h" |
10f2d63a | 13352 | |
f6bcfd97 BP |
13353 | #include <stdio.h> |
13354 | #include <stdarg.h> | |
698dcdb6 VZ |
13355 | |
13356 | int main() { | |
10f2d63a | 13357 | |
f6bcfd97 | 13358 | int wx_test_vsscanf(const char *, ...); |
10f2d63a | 13359 | |
f6bcfd97 BP |
13360 | wx_test_vsscanf("%d"); |
13361 | return 0; | |
10f2d63a VZ |
13362 | } |
13363 | ||
f6bcfd97 | 13364 | int wx_test_vsscanf(const char *fmt, ...) |
10f2d63a | 13365 | { |
f6bcfd97 BP |
13366 | va_list argp; |
13367 | va_start(argp, fmt); | |
13368 | vsscanf("42", fmt, argp); | |
13369 | va_end(argp); | |
698dcdb6 VZ |
13370 | |
13371 | ; return 0; } | |
13372 | EOF | |
d08b457b | 13373 | if { (eval echo configure:13374: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
13374 | rm -rf conftest* |
13375 | ||
f6bcfd97 | 13376 | wx_cv_func_vsscanf=yes |
698dcdb6 | 13377 | |
10f2d63a | 13378 | else |
698dcdb6 VZ |
13379 | echo "configure: failed program was:" >&5 |
13380 | cat conftest.$ac_ext >&5 | |
13381 | rm -rf conftest* | |
13382 | ||
f6bcfd97 | 13383 | wx_cv_func_vsscanf=no |
698dcdb6 | 13384 | |
6232543b | 13385 | fi |
698dcdb6 | 13386 | rm -f conftest* |
703e0a69 | 13387 | |
1e487827 | 13388 | fi |
698dcdb6 VZ |
13389 | |
13390 | echo "$ac_t""$wx_cv_func_vsscanf" 1>&6 | |
10f2d63a | 13391 | |
9d8deca0 | 13392 | if test "$wx_cv_func_vsscanf" = yes; then |
698dcdb6 | 13393 | cat >> confdefs.h <<\EOF |
9d8deca0 VZ |
13394 | #define HAVE_VSSCANF 1 |
13395 | EOF | |
13396 | ||
13397 | fi | |
13398 | ||
95c8801c VS |
13399 | if test "$TOOLKIT" != "MSW"; then |
13400 | ||
13401 | ||
13402 | ||
698dcdb6 VZ |
13403 | ac_ext=C |
13404 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
13405 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13406 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13407 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13408 | cross_compiling=$ac_cv_prog_cxx_cross | |
13409 | ||
13410 | echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6 | |
d08b457b | 13411 | echo "configure:13412: checking if iconv() takes char**" >&5 |
698dcdb6 VZ |
13412 | if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then |
13413 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13414 | else | |
13415 | ||
13416 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 13417 | #line 13418 "configure" |
95c8801c VS |
13418 | #include "confdefs.h" |
13419 | #include <iconv.h> | |
698dcdb6 | 13420 | int main() { |
95c8801c VS |
13421 | |
13422 | char **inbuf, **outbuf; | |
19af3b06 VZ |
13423 | iconv_t cd; |
13424 | size_t insz, outsz; | |
13425 | iconv(cd, inbuf, &insz, outbuf, &outsz); | |
698dcdb6 VZ |
13426 | |
13427 | ; return 0; } | |
13428 | EOF | |
d08b457b | 13429 | if { (eval echo configure:13430: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 13430 | rm -rf conftest* |
95c8801c VS |
13431 | wx_cv_iconv_takes_char=yes |
13432 | else | |
698dcdb6 VZ |
13433 | echo "configure: failed program was:" >&5 |
13434 | cat conftest.$ac_ext >&5 | |
13435 | rm -rf conftest* | |
13436 | wx_cv_iconv_takes_char=no | |
95c8801c | 13437 | fi |
698dcdb6 | 13438 | rm -f conftest* |
95c8801c VS |
13439 | |
13440 | fi | |
698dcdb6 VZ |
13441 | |
13442 | echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6 | |
10f2d63a | 13443 | ac_ext=c |
698dcdb6 | 13444 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 13445 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
13446 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
13447 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13448 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a | 13449 | |
95c8801c | 13450 | if test "$wx_cv_iconv_takes_char" = yes ; then |
698dcdb6 | 13451 | cat >> confdefs.h <<\EOF |
95c8801c VS |
13452 | #define WX_ICONV_TAKES_CHAR 1 |
13453 | EOF | |
13454 | ||
13455 | fi | |
10f2d63a | 13456 | |
1e487827 | 13457 | |
698dcdb6 VZ |
13458 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
13459 | for ac_func in sigaction | |
eb4efbdc | 13460 | do |
698dcdb6 | 13461 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d08b457b | 13462 | echo "configure:13463: checking for $ac_func" >&5 |
698dcdb6 VZ |
13463 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13464 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13465 | else | |
13466 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 13467 | #line 13468 "configure" |
eb4efbdc VZ |
13468 | #include "confdefs.h" |
13469 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13470 | which can conflict with char $ac_func(); below. */ |
eb4efbdc VZ |
13471 | #include <assert.h> |
13472 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13473 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13474 | builtin and then its argument prototype would still apply. */ |
13475 | char $ac_func(); | |
13476 | ||
13477 | int main() { | |
eb4efbdc VZ |
13478 | |
13479 | /* The GNU C library defines this for functions which it implements | |
13480 | to always fail with ENOSYS. Some functions are actually named | |
13481 | something starting with __ and the normal name is an alias. */ | |
13482 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13483 | choke me | |
13484 | #else | |
698dcdb6 | 13485 | $ac_func(); |
eb4efbdc VZ |
13486 | #endif |
13487 | ||
698dcdb6 | 13488 | ; return 0; } |
eb4efbdc | 13489 | EOF |
d08b457b | 13490 | if { (eval echo configure:13491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13491 | rm -rf conftest* |
13492 | eval "ac_cv_func_$ac_func=yes" | |
13493 | else | |
13494 | echo "configure: failed program was:" >&5 | |
13495 | cat conftest.$ac_ext >&5 | |
13496 | rm -rf conftest* | |
13497 | eval "ac_cv_func_$ac_func=no" | |
13498 | fi | |
13499 | rm -f conftest* | |
13500 | fi | |
eb4efbdc | 13501 | |
698dcdb6 VZ |
13502 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
13503 | echo "$ac_t""yes" 1>&6 | |
13504 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13505 | cat >> confdefs.h <<EOF | |
13506 | #define $ac_tr_func 1 | |
13507 | EOF | |
13508 | ||
13509 | else | |
13510 | echo "$ac_t""no" 1>&6 | |
eb4efbdc VZ |
13511 | fi |
13512 | done | |
13513 | ||
698dcdb6 | 13514 | |
eb4efbdc | 13515 | if test "$ac_cv_func_sigaction" = "no"; then |
698dcdb6 | 13516 | echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2 |
eb4efbdc VZ |
13517 | wxUSE_ON_FATAL_EXCEPTION=no |
13518 | fi | |
f6bcfd97 BP |
13519 | |
13520 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
698dcdb6 VZ |
13521 | |
13522 | ac_ext=C | |
13523 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 13524 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
13525 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
13526 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13527 | cross_compiling=$ac_cv_prog_cxx_cross | |
6232543b | 13528 | |
1e487827 | 13529 | |
698dcdb6 | 13530 | echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6 |
d08b457b | 13531 | echo "configure:13532: checking for sa_handler type" >&5 |
698dcdb6 VZ |
13532 | if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then |
13533 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13534 | else | |
13535 | ||
13536 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 13537 | #line 13538 "configure" |
f6bcfd97 BP |
13538 | #include "confdefs.h" |
13539 | #include <signal.h> | |
698dcdb6 | 13540 | int main() { |
f6bcfd97 BP |
13541 | |
13542 | extern void testSigHandler(int); | |
13543 | ||
13544 | struct sigaction sa; | |
13545 | sa.sa_handler = testSigHandler; | |
698dcdb6 VZ |
13546 | |
13547 | ; return 0; } | |
13548 | EOF | |
d08b457b | 13549 | if { (eval echo configure:13550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
13550 | rm -rf conftest* |
13551 | ||
f6bcfd97 | 13552 | wx_cv_type_sa_handler=int |
698dcdb6 | 13553 | |
f6bcfd97 | 13554 | else |
698dcdb6 VZ |
13555 | echo "configure: failed program was:" >&5 |
13556 | cat conftest.$ac_ext >&5 | |
13557 | rm -rf conftest* | |
13558 | ||
f6bcfd97 | 13559 | wx_cv_type_sa_handler=void |
698dcdb6 | 13560 | |
6232543b | 13561 | fi |
698dcdb6 VZ |
13562 | rm -f conftest* |
13563 | ||
1e487827 | 13564 | fi |
698dcdb6 VZ |
13565 | |
13566 | echo "$ac_t""$wx_cv_type_sa_handler" 1>&6 | |
f6bcfd97 BP |
13567 | |
13568 | ac_ext=c | |
698dcdb6 | 13569 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
f6bcfd97 | 13570 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
13571 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
13572 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13573 | cross_compiling=$ac_cv_prog_cc_cross | |
13574 | ||
703e0a69 | 13575 | |
698dcdb6 | 13576 | cat >> confdefs.h <<EOF |
f6bcfd97 BP |
13577 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler |
13578 | EOF | |
13579 | ||
13580 | fi | |
eb4efbdc VZ |
13581 | fi |
13582 | ||
10f2d63a VZ |
13583 | for ac_func in vfork |
13584 | do | |
698dcdb6 | 13585 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d08b457b | 13586 | echo "configure:13587: checking for $ac_func" >&5 |
698dcdb6 VZ |
13587 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13588 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13589 | else | |
13590 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 13591 | #line 13592 "configure" |
10f2d63a VZ |
13592 | #include "confdefs.h" |
13593 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13594 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
13595 | #include <assert.h> |
13596 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13597 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13598 | builtin and then its argument prototype would still apply. */ |
13599 | char $ac_func(); | |
13600 | ||
13601 | int main() { | |
10f2d63a VZ |
13602 | |
13603 | /* The GNU C library defines this for functions which it implements | |
13604 | to always fail with ENOSYS. Some functions are actually named | |
13605 | something starting with __ and the normal name is an alias. */ | |
13606 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13607 | choke me | |
13608 | #else | |
698dcdb6 | 13609 | $ac_func(); |
10f2d63a VZ |
13610 | #endif |
13611 | ||
698dcdb6 | 13612 | ; return 0; } |
10f2d63a | 13613 | EOF |
d08b457b | 13614 | if { (eval echo configure:13615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13615 | rm -rf conftest* |
13616 | eval "ac_cv_func_$ac_func=yes" | |
13617 | else | |
13618 | echo "configure: failed program was:" >&5 | |
13619 | cat conftest.$ac_ext >&5 | |
13620 | rm -rf conftest* | |
13621 | eval "ac_cv_func_$ac_func=no" | |
13622 | fi | |
13623 | rm -f conftest* | |
13624 | fi | |
270a909e | 13625 | |
698dcdb6 VZ |
13626 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
13627 | echo "$ac_t""yes" 1>&6 | |
13628 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13629 | cat >> confdefs.h <<EOF | |
13630 | #define $ac_tr_func 1 | |
13631 | EOF | |
13632 | ||
13633 | else | |
13634 | echo "$ac_t""no" 1>&6 | |
270a909e VZ |
13635 | fi |
13636 | done | |
13637 | ||
1e487827 | 13638 | |
52e8b690 | 13639 | echo $ac_n "checking for statfs""... $ac_c" 1>&6 |
d08b457b | 13640 | echo "configure:13641: checking for statfs" >&5 |
52e8b690 VZ |
13641 | if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then |
13642 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13643 | else | |
13644 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 13645 | #line 13646 "configure" |
52e8b690 VZ |
13646 | #include "confdefs.h" |
13647 | ||
d08b457b GD |
13648 | #ifdef __DARWIN__ |
13649 | #include <sys/param.h> | |
13650 | #include <sys/mount.h> | |
13651 | #else | |
13652 | #include <sys/vfs.h> | |
13653 | #endif | |
52e8b690 VZ |
13654 | |
13655 | int main() { | |
13656 | ||
13657 | long l; | |
13658 | struct statfs fs; | |
13659 | statfs("/", &fs); | |
13660 | l = fs.f_bsize; | |
13661 | l += fs.f_blocks; | |
13662 | l += fs.f_bavail; | |
13663 | ||
13664 | ; return 0; } | |
13665 | EOF | |
d08b457b | 13666 | if { (eval echo configure:13667: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
52e8b690 VZ |
13667 | rm -rf conftest* |
13668 | ||
13669 | wx_cv_func_statfs=yes | |
13670 | ||
13671 | else | |
13672 | echo "configure: failed program was:" >&5 | |
13673 | cat conftest.$ac_ext >&5 | |
13674 | rm -rf conftest* | |
13675 | ||
13676 | wx_cv_func_statfs=no | |
13677 | ||
13678 | ||
13679 | fi | |
13680 | rm -f conftest* | |
13681 | ||
13682 | fi | |
13683 | ||
13684 | echo "$ac_t""$wx_cv_func_statfs" 1>&6 | |
13685 | ||
13686 | if test "$wx_cv_func_statfs" = "yes"; then | |
13687 | cat >> confdefs.h <<\EOF | |
13688 | #define HAVE_STATFS 1 | |
13689 | EOF | |
13690 | ||
13691 | else | |
13692 | echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2 | |
13693 | fi | |
13694 | ||
698dcdb6 VZ |
13695 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
13696 | for ac_func in fcntl flock | |
4f3c5f06 | 13697 | do |
698dcdb6 | 13698 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d08b457b | 13699 | echo "configure:13700: checking for $ac_func" >&5 |
698dcdb6 VZ |
13700 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13701 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13702 | else | |
13703 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 13704 | #line 13705 "configure" |
4f3c5f06 VZ |
13705 | #include "confdefs.h" |
13706 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13707 | which can conflict with char $ac_func(); below. */ |
4f3c5f06 VZ |
13708 | #include <assert.h> |
13709 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13710 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13711 | builtin and then its argument prototype would still apply. */ |
13712 | char $ac_func(); | |
13713 | ||
13714 | int main() { | |
4f3c5f06 VZ |
13715 | |
13716 | /* The GNU C library defines this for functions which it implements | |
13717 | to always fail with ENOSYS. Some functions are actually named | |
13718 | something starting with __ and the normal name is an alias. */ | |
13719 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13720 | choke me | |
13721 | #else | |
698dcdb6 | 13722 | $ac_func(); |
4f3c5f06 VZ |
13723 | #endif |
13724 | ||
698dcdb6 VZ |
13725 | ; return 0; } |
13726 | EOF | |
d08b457b | 13727 | if { (eval echo configure:13728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13728 | rm -rf conftest* |
13729 | eval "ac_cv_func_$ac_func=yes" | |
13730 | else | |
13731 | echo "configure: failed program was:" >&5 | |
13732 | cat conftest.$ac_ext >&5 | |
13733 | rm -rf conftest* | |
13734 | eval "ac_cv_func_$ac_func=no" | |
13735 | fi | |
13736 | rm -f conftest* | |
13737 | fi | |
13738 | ||
13739 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13740 | echo "$ac_t""yes" 1>&6 | |
13741 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13742 | cat >> confdefs.h <<EOF | |
13743 | #define $ac_tr_func 1 | |
4f3c5f06 VZ |
13744 | EOF |
13745 | break | |
698dcdb6 VZ |
13746 | else |
13747 | echo "$ac_t""no" 1>&6 | |
4f3c5f06 VZ |
13748 | fi |
13749 | done | |
13750 | ||
698dcdb6 | 13751 | |
4f3c5f06 | 13752 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then |
698dcdb6 | 13753 | echo "configure: warning: wxSingleInstanceChecker not available" 1>&2 |
4f3c5f06 VZ |
13754 | wxUSE_SNGLINST_CHECKER=no |
13755 | fi | |
13756 | fi | |
13757 | ||
270a909e VZ |
13758 | for ac_func in timegm |
13759 | do | |
698dcdb6 | 13760 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d08b457b | 13761 | echo "configure:13762: checking for $ac_func" >&5 |
698dcdb6 VZ |
13762 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13763 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13764 | else | |
13765 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 13766 | #line 13767 "configure" |
270a909e VZ |
13767 | #include "confdefs.h" |
13768 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13769 | which can conflict with char $ac_func(); below. */ |
270a909e VZ |
13770 | #include <assert.h> |
13771 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13772 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13773 | builtin and then its argument prototype would still apply. */ |
13774 | char $ac_func(); | |
13775 | ||
13776 | int main() { | |
270a909e VZ |
13777 | |
13778 | /* The GNU C library defines this for functions which it implements | |
13779 | to always fail with ENOSYS. Some functions are actually named | |
13780 | something starting with __ and the normal name is an alias. */ | |
13781 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13782 | choke me | |
13783 | #else | |
698dcdb6 | 13784 | $ac_func(); |
270a909e VZ |
13785 | #endif |
13786 | ||
698dcdb6 | 13787 | ; return 0; } |
270a909e | 13788 | EOF |
d08b457b | 13789 | if { (eval echo configure:13790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13790 | rm -rf conftest* |
13791 | eval "ac_cv_func_$ac_func=yes" | |
13792 | else | |
13793 | echo "configure: failed program was:" >&5 | |
13794 | cat conftest.$ac_ext >&5 | |
13795 | rm -rf conftest* | |
13796 | eval "ac_cv_func_$ac_func=no" | |
13797 | fi | |
13798 | rm -f conftest* | |
13799 | fi | |
10f2d63a | 13800 | |
698dcdb6 VZ |
13801 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
13802 | echo "$ac_t""yes" 1>&6 | |
13803 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13804 | cat >> confdefs.h <<EOF | |
13805 | #define $ac_tr_func 1 | |
13806 | EOF | |
13807 | ||
13808 | else | |
13809 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13810 | fi |
13811 | done | |
13812 | ||
698dcdb6 | 13813 | |
8fd0d89b VZ |
13814 | for ac_func in putenv setenv |
13815 | do | |
698dcdb6 | 13816 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d08b457b | 13817 | echo "configure:13818: checking for $ac_func" >&5 |
698dcdb6 VZ |
13818 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13819 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13820 | else | |
13821 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 13822 | #line 13823 "configure" |
8fd0d89b VZ |
13823 | #include "confdefs.h" |
13824 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13825 | which can conflict with char $ac_func(); below. */ |
8fd0d89b VZ |
13826 | #include <assert.h> |
13827 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13828 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13829 | builtin and then its argument prototype would still apply. */ |
13830 | char $ac_func(); | |
13831 | ||
13832 | int main() { | |
8fd0d89b VZ |
13833 | |
13834 | /* The GNU C library defines this for functions which it implements | |
13835 | to always fail with ENOSYS. Some functions are actually named | |
13836 | something starting with __ and the normal name is an alias. */ | |
13837 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13838 | choke me | |
13839 | #else | |
698dcdb6 | 13840 | $ac_func(); |
8fd0d89b VZ |
13841 | #endif |
13842 | ||
698dcdb6 VZ |
13843 | ; return 0; } |
13844 | EOF | |
d08b457b | 13845 | if { (eval echo configure:13846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13846 | rm -rf conftest* |
13847 | eval "ac_cv_func_$ac_func=yes" | |
13848 | else | |
13849 | echo "configure: failed program was:" >&5 | |
13850 | cat conftest.$ac_ext >&5 | |
13851 | rm -rf conftest* | |
13852 | eval "ac_cv_func_$ac_func=no" | |
13853 | fi | |
13854 | rm -f conftest* | |
13855 | fi | |
13856 | ||
13857 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13858 | echo "$ac_t""yes" 1>&6 | |
13859 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13860 | cat >> confdefs.h <<EOF | |
13861 | #define $ac_tr_func 1 | |
8fd0d89b VZ |
13862 | EOF |
13863 | break | |
698dcdb6 VZ |
13864 | else |
13865 | echo "$ac_t""no" 1>&6 | |
8fd0d89b VZ |
13866 | fi |
13867 | done | |
13868 | ||
698dcdb6 | 13869 | |
b12915c1 VZ |
13870 | HAVE_SOME_SLEEP_FUNC=0 |
13871 | if test "$USE_BEOS" = 1; then | |
698dcdb6 | 13872 | cat >> confdefs.h <<\EOF |
b12915c1 VZ |
13873 | #define HAVE_SLEEP 1 |
13874 | EOF | |
13875 | ||
13876 | HAVE_SOME_SLEEP_FUNC=1 | |
13877 | fi | |
13878 | ||
f11bdd03 | 13879 | if test "$USE_DARWIN" = 1; then |
698dcdb6 | 13880 | cat >> confdefs.h <<\EOF |
b4085ce6 GD |
13881 | #define HAVE_USLEEP 1 |
13882 | EOF | |
13883 | ||
13884 | HAVE_SOME_SLEEP_FUNC=1 | |
13885 | fi | |
13886 | ||
b12915c1 VZ |
13887 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then |
13888 | POSIX4_LINK= | |
698dcdb6 | 13889 | for ac_func in nanosleep |
10f2d63a | 13890 | do |
698dcdb6 | 13891 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d08b457b | 13892 | echo "configure:13893: checking for $ac_func" >&5 |
698dcdb6 VZ |
13893 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13894 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13895 | else | |
13896 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 13897 | #line 13898 "configure" |
10f2d63a VZ |
13898 | #include "confdefs.h" |
13899 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13900 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
13901 | #include <assert.h> |
13902 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13903 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13904 | builtin and then its argument prototype would still apply. */ |
13905 | char $ac_func(); | |
13906 | ||
13907 | int main() { | |
10f2d63a VZ |
13908 | |
13909 | /* The GNU C library defines this for functions which it implements | |
13910 | to always fail with ENOSYS. Some functions are actually named | |
13911 | something starting with __ and the normal name is an alias. */ | |
13912 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13913 | choke me | |
13914 | #else | |
698dcdb6 | 13915 | $ac_func(); |
10f2d63a VZ |
13916 | #endif |
13917 | ||
698dcdb6 VZ |
13918 | ; return 0; } |
13919 | EOF | |
d08b457b | 13920 | if { (eval echo configure:13921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13921 | rm -rf conftest* |
13922 | eval "ac_cv_func_$ac_func=yes" | |
13923 | else | |
13924 | echo "configure: failed program was:" >&5 | |
13925 | cat conftest.$ac_ext >&5 | |
13926 | rm -rf conftest* | |
13927 | eval "ac_cv_func_$ac_func=no" | |
13928 | fi | |
13929 | rm -f conftest* | |
13930 | fi | |
13931 | ||
13932 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13933 | echo "$ac_t""yes" 1>&6 | |
13934 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13935 | cat >> confdefs.h <<EOF | |
13936 | #define $ac_tr_func 1 | |
13937 | EOF | |
13938 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
13939 | #define HAVE_NANOSLEEP 1 |
13940 | EOF | |
13941 | ||
13942 | else | |
698dcdb6 VZ |
13943 | echo "$ac_t""no" 1>&6 |
13944 | echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 | |
d08b457b | 13945 | echo "configure:13946: checking for nanosleep in -lposix4" >&5 |
698dcdb6 VZ |
13946 | ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` |
13947 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13948 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13949 | else |
698dcdb6 | 13950 | ac_save_LIBS="$LIBS" |
10f2d63a | 13951 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 13952 | cat > conftest.$ac_ext <<EOF |
d08b457b | 13953 | #line 13954 "configure" |
10f2d63a VZ |
13954 | #include "confdefs.h" |
13955 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13956 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13957 | builtin and then its argument prototype would still apply. */ |
13958 | char nanosleep(); | |
13959 | ||
13960 | int main() { | |
13961 | nanosleep() | |
13962 | ; return 0; } | |
13963 | EOF | |
d08b457b | 13964 | if { (eval echo configure:13965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13965 | rm -rf conftest* |
13966 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13967 | else | |
13968 | echo "configure: failed program was:" >&5 | |
13969 | cat conftest.$ac_ext >&5 | |
13970 | rm -rf conftest* | |
13971 | eval "ac_cv_lib_$ac_lib_var=no" | |
13972 | fi | |
13973 | rm -f conftest* | |
13974 | LIBS="$ac_save_LIBS" | |
13975 | ||
13976 | fi | |
13977 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13978 | echo "$ac_t""yes" 1>&6 | |
13979 | ||
13980 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
13981 | #define HAVE_NANOSLEEP 1 |
13982 | EOF | |
13983 | ||
b12915c1 | 13984 | POSIX4_LINK="-lposix4" |
698dcdb6 | 13985 | |
10f2d63a | 13986 | else |
698dcdb6 | 13987 | echo "$ac_t""no" 1>&6 |
10f2d63a | 13988 | |
698dcdb6 | 13989 | for ac_func in usleep |
10f2d63a | 13990 | do |
698dcdb6 | 13991 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d08b457b | 13992 | echo "configure:13993: checking for $ac_func" >&5 |
698dcdb6 VZ |
13993 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13994 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13995 | else | |
13996 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 13997 | #line 13998 "configure" |
10f2d63a VZ |
13998 | #include "confdefs.h" |
13999 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 14000 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
14001 | #include <assert.h> |
14002 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14003 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14004 | builtin and then its argument prototype would still apply. */ |
14005 | char $ac_func(); | |
14006 | ||
14007 | int main() { | |
10f2d63a VZ |
14008 | |
14009 | /* The GNU C library defines this for functions which it implements | |
14010 | to always fail with ENOSYS. Some functions are actually named | |
14011 | something starting with __ and the normal name is an alias. */ | |
14012 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14013 | choke me | |
14014 | #else | |
698dcdb6 | 14015 | $ac_func(); |
10f2d63a VZ |
14016 | #endif |
14017 | ||
698dcdb6 VZ |
14018 | ; return 0; } |
14019 | EOF | |
d08b457b | 14020 | if { (eval echo configure:14021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14021 | rm -rf conftest* |
14022 | eval "ac_cv_func_$ac_func=yes" | |
14023 | else | |
14024 | echo "configure: failed program was:" >&5 | |
14025 | cat conftest.$ac_ext >&5 | |
14026 | rm -rf conftest* | |
14027 | eval "ac_cv_func_$ac_func=no" | |
14028 | fi | |
14029 | rm -f conftest* | |
14030 | fi | |
14031 | ||
14032 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
14033 | echo "$ac_t""yes" 1>&6 | |
14034 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14035 | cat >> confdefs.h <<EOF | |
14036 | #define $ac_tr_func 1 | |
14037 | EOF | |
14038 | cat >> confdefs.h <<\EOF | |
b4085ce6 GD |
14039 | #define HAVE_USLEEP 1 |
14040 | EOF | |
14041 | ||
10f2d63a | 14042 | else |
698dcdb6 VZ |
14043 | echo "$ac_t""no" 1>&6 |
14044 | echo "configure: warning: wxSleep() function will not work" 1>&2 | |
14045 | ||
10f2d63a VZ |
14046 | fi |
14047 | done | |
14048 | ||
698dcdb6 VZ |
14049 | |
14050 | ||
10f2d63a VZ |
14051 | fi |
14052 | ||
698dcdb6 VZ |
14053 | |
14054 | ||
10f2d63a VZ |
14055 | fi |
14056 | done | |
14057 | ||
b12915c1 | 14058 | fi |
10f2d63a VZ |
14059 | |
14060 | for ac_func in uname gethostname | |
14061 | do | |
698dcdb6 | 14062 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d08b457b | 14063 | echo "configure:14064: checking for $ac_func" >&5 |
698dcdb6 VZ |
14064 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14065 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14066 | else | |
14067 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 14068 | #line 14069 "configure" |
10f2d63a VZ |
14069 | #include "confdefs.h" |
14070 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 14071 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
14072 | #include <assert.h> |
14073 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14074 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14075 | builtin and then its argument prototype would still apply. */ |
14076 | char $ac_func(); | |
14077 | ||
14078 | int main() { | |
10f2d63a VZ |
14079 | |
14080 | /* The GNU C library defines this for functions which it implements | |
14081 | to always fail with ENOSYS. Some functions are actually named | |
14082 | something starting with __ and the normal name is an alias. */ | |
14083 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14084 | choke me | |
14085 | #else | |
698dcdb6 | 14086 | $ac_func(); |
10f2d63a VZ |
14087 | #endif |
14088 | ||
698dcdb6 VZ |
14089 | ; return 0; } |
14090 | EOF | |
d08b457b | 14091 | if { (eval echo configure:14092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14092 | rm -rf conftest* |
14093 | eval "ac_cv_func_$ac_func=yes" | |
14094 | else | |
14095 | echo "configure: failed program was:" >&5 | |
14096 | cat conftest.$ac_ext >&5 | |
14097 | rm -rf conftest* | |
14098 | eval "ac_cv_func_$ac_func=no" | |
14099 | fi | |
14100 | rm -f conftest* | |
14101 | fi | |
14102 | ||
14103 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
14104 | echo "$ac_t""yes" 1>&6 | |
14105 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14106 | cat >> confdefs.h <<EOF | |
14107 | #define $ac_tr_func 1 | |
10f2d63a VZ |
14108 | EOF |
14109 | break | |
698dcdb6 VZ |
14110 | else |
14111 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
14112 | fi |
14113 | done | |
14114 | ||
698dcdb6 VZ |
14115 | |
14116 | ||
14117 | ac_ext=C | |
14118 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6098c7f9 | 14119 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
14120 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
14121 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14122 | cross_compiling=$ac_cv_prog_cxx_cross | |
14123 | ||
6098c7f9 | 14124 | |
10f2d63a VZ |
14125 | for ac_func in strtok_r |
14126 | do | |
698dcdb6 | 14127 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d08b457b | 14128 | echo "configure:14129: checking for $ac_func" >&5 |
698dcdb6 VZ |
14129 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14130 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14131 | else | |
14132 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 14133 | #line 14134 "configure" |
10f2d63a VZ |
14134 | #include "confdefs.h" |
14135 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 14136 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
14137 | #include <assert.h> |
14138 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6098c7f9 VZ |
14139 | #ifdef __cplusplus |
14140 | extern "C" | |
14141 | #endif | |
10f2d63a | 14142 | /* We use char because int might match the return type of a gcc2 |
698dcdb6 VZ |
14143 | builtin and then its argument prototype would still apply. */ |
14144 | char $ac_func(); | |
14145 | ||
14146 | int main() { | |
10f2d63a VZ |
14147 | |
14148 | /* The GNU C library defines this for functions which it implements | |
14149 | to always fail with ENOSYS. Some functions are actually named | |
14150 | something starting with __ and the normal name is an alias. */ | |
14151 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14152 | choke me | |
14153 | #else | |
698dcdb6 | 14154 | $ac_func(); |
10f2d63a VZ |
14155 | #endif |
14156 | ||
698dcdb6 | 14157 | ; return 0; } |
10f2d63a | 14158 | EOF |
d08b457b | 14159 | if { (eval echo configure:14160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14160 | rm -rf conftest* |
14161 | eval "ac_cv_func_$ac_func=yes" | |
14162 | else | |
14163 | echo "configure: failed program was:" >&5 | |
14164 | cat conftest.$ac_ext >&5 | |
14165 | rm -rf conftest* | |
14166 | eval "ac_cv_func_$ac_func=no" | |
14167 | fi | |
14168 | rm -f conftest* | |
14169 | fi | |
10f2d63a | 14170 | |
698dcdb6 VZ |
14171 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
14172 | echo "$ac_t""yes" 1>&6 | |
14173 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14174 | cat >> confdefs.h <<EOF | |
14175 | #define $ac_tr_func 1 | |
14176 | EOF | |
14177 | ||
14178 | else | |
14179 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
14180 | fi |
14181 | done | |
14182 | ||
698dcdb6 | 14183 | |
6098c7f9 | 14184 | ac_ext=c |
698dcdb6 | 14185 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
6098c7f9 | 14186 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
14187 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
14188 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14189 | cross_compiling=$ac_cv_prog_cc_cross | |
6232543b | 14190 | |
1e487827 | 14191 | |
698dcdb6 | 14192 | INET_LINK= |
10f2d63a VZ |
14193 | for ac_func in inet_addr |
14194 | do | |
698dcdb6 | 14195 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d08b457b | 14196 | echo "configure:14197: checking for $ac_func" >&5 |
698dcdb6 VZ |
14197 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14198 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14199 | else | |
14200 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 14201 | #line 14202 "configure" |
10f2d63a VZ |
14202 | #include "confdefs.h" |
14203 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 VZ |
14204 | which can conflict with char $ac_func(); below. */ |
14205 | #include <assert.h> | |
14206 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10f2d63a | 14207 | /* We use char because int might match the return type of a gcc2 |
698dcdb6 VZ |
14208 | builtin and then its argument prototype would still apply. */ |
14209 | char $ac_func(); | |
14210 | ||
14211 | int main() { | |
10f2d63a VZ |
14212 | |
14213 | /* The GNU C library defines this for functions which it implements | |
14214 | to always fail with ENOSYS. Some functions are actually named | |
1e487827 VS |
14215 | something starting with __ and the normal name is an alias. */ |
14216 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14217 | choke me | |
14218 | #else | |
698dcdb6 | 14219 | $ac_func(); |
1e487827 | 14220 | #endif |
703e0a69 | 14221 | |
698dcdb6 VZ |
14222 | ; return 0; } |
14223 | EOF | |
d08b457b | 14224 | if { (eval echo configure:14225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14225 | rm -rf conftest* |
14226 | eval "ac_cv_func_$ac_func=yes" | |
14227 | else | |
14228 | echo "configure: failed program was:" >&5 | |
14229 | cat conftest.$ac_ext >&5 | |
14230 | rm -rf conftest* | |
14231 | eval "ac_cv_func_$ac_func=no" | |
14232 | fi | |
14233 | rm -f conftest* | |
14234 | fi | |
14235 | ||
14236 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
14237 | echo "$ac_t""yes" 1>&6 | |
14238 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14239 | cat >> confdefs.h <<EOF | |
14240 | #define $ac_tr_func 1 | |
14241 | EOF | |
14242 | cat >> confdefs.h <<\EOF | |
c63c7106 VZ |
14243 | #define HAVE_INET_ADDR 1 |
14244 | EOF | |
14245 | ||
10f2d63a | 14246 | else |
698dcdb6 VZ |
14247 | echo "$ac_t""no" 1>&6 |
14248 | echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6 | |
d08b457b | 14249 | echo "configure:14250: checking for inet_addr in -lnsl" >&5 |
698dcdb6 VZ |
14250 | ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'` |
14251 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14252 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 14253 | else |
698dcdb6 | 14254 | ac_save_LIBS="$LIBS" |
c63c7106 | 14255 | LIBS="-lnsl $LIBS" |
698dcdb6 | 14256 | cat > conftest.$ac_ext <<EOF |
d08b457b | 14257 | #line 14258 "configure" |
c63c7106 VZ |
14258 | #include "confdefs.h" |
14259 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14260 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14261 | builtin and then its argument prototype would still apply. */ |
14262 | char inet_addr(); | |
14263 | ||
14264 | int main() { | |
14265 | inet_addr() | |
14266 | ; return 0; } | |
14267 | EOF | |
d08b457b | 14268 | if { (eval echo configure:14269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14269 | rm -rf conftest* |
14270 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14271 | else | |
14272 | echo "configure: failed program was:" >&5 | |
14273 | cat conftest.$ac_ext >&5 | |
14274 | rm -rf conftest* | |
14275 | eval "ac_cv_lib_$ac_lib_var=no" | |
14276 | fi | |
14277 | rm -f conftest* | |
14278 | LIBS="$ac_save_LIBS" | |
14279 | ||
14280 | fi | |
14281 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14282 | echo "$ac_t""yes" 1>&6 | |
c63c7106 VZ |
14283 | INET_LINK="nsl" |
14284 | else | |
698dcdb6 VZ |
14285 | echo "$ac_t""no" 1>&6 |
14286 | echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6 | |
d08b457b | 14287 | echo "configure:14288: checking for inet_addr in -lresolv" >&5 |
698dcdb6 VZ |
14288 | ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'` |
14289 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14290 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 14291 | else |
698dcdb6 | 14292 | ac_save_LIBS="$LIBS" |
c63c7106 | 14293 | LIBS="-lresolv $LIBS" |
698dcdb6 | 14294 | cat > conftest.$ac_ext <<EOF |
d08b457b | 14295 | #line 14296 "configure" |
c63c7106 VZ |
14296 | #include "confdefs.h" |
14297 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14298 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14299 | builtin and then its argument prototype would still apply. */ |
14300 | char inet_addr(); | |
14301 | ||
14302 | int main() { | |
14303 | inet_addr() | |
14304 | ; return 0; } | |
14305 | EOF | |
d08b457b | 14306 | if { (eval echo configure:14307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14307 | rm -rf conftest* |
14308 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14309 | else | |
14310 | echo "configure: failed program was:" >&5 | |
14311 | cat conftest.$ac_ext >&5 | |
14312 | rm -rf conftest* | |
14313 | eval "ac_cv_lib_$ac_lib_var=no" | |
14314 | fi | |
14315 | rm -f conftest* | |
14316 | LIBS="$ac_save_LIBS" | |
c63c7106 | 14317 | |
6232543b | 14318 | fi |
698dcdb6 VZ |
14319 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
14320 | echo "$ac_t""yes" 1>&6 | |
14321 | INET_LINK="resolv" | |
14322 | ||
14323 | else | |
14324 | echo "$ac_t""no" 1>&6 | |
14325 | fi | |
c63c7106 | 14326 | |
698dcdb6 | 14327 | |
1e487827 | 14328 | fi |
703e0a69 | 14329 | |
698dcdb6 VZ |
14330 | |
14331 | ||
10f2d63a VZ |
14332 | fi |
14333 | done | |
14334 | ||
698dcdb6 | 14335 | |
10f2d63a VZ |
14336 | for ac_func in inet_aton |
14337 | do | |
698dcdb6 | 14338 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d08b457b | 14339 | echo "configure:14340: checking for $ac_func" >&5 |
698dcdb6 VZ |
14340 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14341 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14342 | else | |
14343 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 14344 | #line 14345 "configure" |
10f2d63a VZ |
14345 | #include "confdefs.h" |
14346 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 14347 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
14348 | #include <assert.h> |
14349 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14350 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14351 | builtin and then its argument prototype would still apply. */ |
14352 | char $ac_func(); | |
14353 | ||
14354 | int main() { | |
10f2d63a VZ |
14355 | |
14356 | /* The GNU C library defines this for functions which it implements | |
14357 | to always fail with ENOSYS. Some functions are actually named | |
14358 | something starting with __ and the normal name is an alias. */ | |
14359 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14360 | choke me | |
14361 | #else | |
698dcdb6 | 14362 | $ac_func(); |
10f2d63a VZ |
14363 | #endif |
14364 | ||
698dcdb6 VZ |
14365 | ; return 0; } |
14366 | EOF | |
d08b457b | 14367 | if { (eval echo configure:14368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14368 | rm -rf conftest* |
14369 | eval "ac_cv_func_$ac_func=yes" | |
14370 | else | |
14371 | echo "configure: failed program was:" >&5 | |
14372 | cat conftest.$ac_ext >&5 | |
14373 | rm -rf conftest* | |
14374 | eval "ac_cv_func_$ac_func=no" | |
14375 | fi | |
14376 | rm -f conftest* | |
14377 | fi | |
14378 | ||
14379 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
14380 | echo "$ac_t""yes" 1>&6 | |
14381 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14382 | cat >> confdefs.h <<EOF | |
14383 | #define $ac_tr_func 1 | |
14384 | EOF | |
14385 | cat >> confdefs.h <<\EOF | |
c63c7106 VZ |
14386 | #define HAVE_INET_ATON 1 |
14387 | EOF | |
14388 | ||
10f2d63a | 14389 | else |
698dcdb6 VZ |
14390 | echo "$ac_t""no" 1>&6 |
14391 | echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6 | |
d08b457b | 14392 | echo "configure:14393: checking for inet_aton in -l$INET_LINK" >&5 |
698dcdb6 VZ |
14393 | ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'` |
14394 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14395 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14396 | else |
698dcdb6 | 14397 | ac_save_LIBS="$LIBS" |
c63c7106 | 14398 | LIBS="-l$INET_LINK $LIBS" |
698dcdb6 | 14399 | cat > conftest.$ac_ext <<EOF |
d08b457b | 14400 | #line 14401 "configure" |
10f2d63a VZ |
14401 | #include "confdefs.h" |
14402 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14403 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14404 | builtin and then its argument prototype would still apply. */ |
14405 | char inet_aton(); | |
14406 | ||
14407 | int main() { | |
14408 | inet_aton() | |
14409 | ; return 0; } | |
14410 | EOF | |
d08b457b | 14411 | if { (eval echo configure:14412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14412 | rm -rf conftest* |
14413 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14414 | else | |
14415 | echo "configure: failed program was:" >&5 | |
14416 | cat conftest.$ac_ext >&5 | |
14417 | rm -rf conftest* | |
14418 | eval "ac_cv_lib_$ac_lib_var=no" | |
14419 | fi | |
14420 | rm -f conftest* | |
14421 | LIBS="$ac_save_LIBS" | |
14422 | ||
14423 | fi | |
14424 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14425 | echo "$ac_t""yes" 1>&6 | |
14426 | cat >> confdefs.h <<\EOF | |
c63c7106 | 14427 | #define HAVE_INET_ATON 1 |
10f2d63a VZ |
14428 | EOF |
14429 | ||
698dcdb6 VZ |
14430 | else |
14431 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
14432 | fi |
14433 | ||
698dcdb6 | 14434 | |
c63c7106 VZ |
14435 | fi |
14436 | done | |
14437 | ||
698dcdb6 | 14438 | |
c63c7106 | 14439 | if test "x$INET_LINK" != "x"; then |
698dcdb6 | 14440 | cat >> confdefs.h <<\EOF |
c63c7106 VZ |
14441 | #define HAVE_INET_ADDR 1 |
14442 | EOF | |
14443 | ||
14444 | INET_LINK="-l$INET_LINK" | |
14445 | fi | |
10f2d63a VZ |
14446 | |
14447 | fi | |
14448 | ||
698dcdb6 VZ |
14449 | |
14450 | cat > confcache <<\EOF | |
10f2d63a VZ |
14451 | # This file is a shell script that caches the results of configure |
14452 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
14453 | # scripts and configure runs. It is not useful on other systems. |
14454 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 14455 | # |
698dcdb6 VZ |
14456 | # By default, configure uses ./config.cache as the cache file, |
14457 | # creating it if it does not exist already. You can give configure | |
14458 | # the --cache-file=FILE option to use a different cache file; that is | |
14459 | # what configure does when it calls configure scripts in | |
14460 | # subdirectories, so they share the cache. | |
14461 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
14462 | # config.status only pays attention to the cache file if you give it the | |
14463 | # --recheck option to rerun configure. | |
10f2d63a | 14464 | # |
698dcdb6 | 14465 | EOF |
10f2d63a VZ |
14466 | # The following way of writing the cache mishandles newlines in values, |
14467 | # but we know of no workaround that is simple, portable, and efficient. | |
14468 | # So, don't put newlines in cache variables' values. | |
14469 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
14470 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
14471 | (set) 2>&1 | |
14472 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
14473 | *ac_space=\ *) | |
14474 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
14475 | # turns \\\\ into \\, and sed turns \\ into \). | |
14476 | sed -n \ | |
14477 | -e "s/'/'\\\\''/g" \ | |
14478 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
14479 | ;; | |
14480 | *) | |
14481 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
14482 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
14483 | ;; | |
14484 | esac >> confcache | |
14485 | if cmp -s $cache_file confcache; then | |
14486 | : | |
14487 | else | |
10f2d63a | 14488 | if test -w $cache_file; then |
698dcdb6 VZ |
14489 | echo "updating cache $cache_file" |
14490 | cat confcache > $cache_file | |
10f2d63a VZ |
14491 | else |
14492 | echo "not updating unwritable cache $cache_file" | |
14493 | fi | |
14494 | fi | |
14495 | rm -f confcache | |
14496 | ||
698dcdb6 VZ |
14497 | |
14498 | ||
b089607b | 14499 | if test "$TOOLKIT" != "MSW"; then |
10f2d63a | 14500 | |
698dcdb6 | 14501 | |
3a922bb4 RL |
14502 | THREADS_LINK= |
14503 | THREADS_OBJ= | |
14504 | CODE_GEN_FLAGS= | |
14505 | CODE_GEN_FLAGS_CXX= | |
10f2d63a VZ |
14506 | |
14507 | if test "$wxUSE_THREADS" = "yes" ; then | |
14508 | if test "$wxUSE_WINE" = 1 ; then | |
698dcdb6 | 14509 | echo "configure: warning: Threads are not supported under WINE" 1>&2 |
10f2d63a | 14510 | wxUSE_THREADS="no" |
b12915c1 | 14511 | elif test "$USE_BEOS" = 1; then |
698dcdb6 | 14512 | echo "configure: warning: BeOS threads are not yet supported" 1>&2 |
b12915c1 | 14513 | wxUSE_THREADS="no" |
10f2d63a VZ |
14514 | fi |
14515 | fi | |
14516 | ||
14517 | if test "$wxUSE_THREADS" = "yes" ; then | |
698dcdb6 | 14518 | |
186837b0 | 14519 | if test "$USE_AIX" = 1; then |
f6bcfd97 BP |
14520 | THREADS_LIB=pthreads |
14521 | else | |
14522 | THREADS_LIB=pthread | |
14523 | fi | |
14524 | ||
698dcdb6 | 14525 | echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6 |
d08b457b | 14526 | echo "configure:14527: checking for pthread_create in -l$THREADS_LIB" >&5 |
698dcdb6 VZ |
14527 | ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'` |
14528 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14529 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14530 | else |
698dcdb6 | 14531 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 14532 | LIBS="-l$THREADS_LIB $LIBS" |
698dcdb6 | 14533 | cat > conftest.$ac_ext <<EOF |
d08b457b | 14534 | #line 14535 "configure" |
10f2d63a VZ |
14535 | #include "confdefs.h" |
14536 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14537 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14538 | builtin and then its argument prototype would still apply. */ |
14539 | char pthread_create(); | |
14540 | ||
14541 | int main() { | |
14542 | pthread_create() | |
14543 | ; return 0; } | |
14544 | EOF | |
d08b457b | 14545 | if { (eval echo configure:14546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14546 | rm -rf conftest* |
14547 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14548 | else | |
14549 | echo "configure: failed program was:" >&5 | |
14550 | cat conftest.$ac_ext >&5 | |
14551 | rm -rf conftest* | |
14552 | eval "ac_cv_lib_$ac_lib_var=no" | |
14553 | fi | |
14554 | rm -f conftest* | |
14555 | LIBS="$ac_save_LIBS" | |
10f2d63a | 14556 | |
698dcdb6 VZ |
14557 | fi |
14558 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14559 | echo "$ac_t""yes" 1>&6 | |
14560 | ||
10f2d63a | 14561 | THREADS_OBJ="threadpsx.lo" |
f6bcfd97 | 14562 | THREADS_LINK=$THREADS_LIB |
698dcdb6 | 14563 | |
10f2d63a | 14564 | else |
698dcdb6 | 14565 | echo "$ac_t""no" 1>&6 |
10f2d63a | 14566 | |
698dcdb6 | 14567 | echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 |
d08b457b | 14568 | echo "configure:14569: checking for pthread_create in -lc_r" >&5 |
698dcdb6 VZ |
14569 | ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` |
14570 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14571 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14572 | else |
698dcdb6 | 14573 | ac_save_LIBS="$LIBS" |
10f2d63a | 14574 | LIBS="-lc_r $LIBS" |
698dcdb6 | 14575 | cat > conftest.$ac_ext <<EOF |
d08b457b | 14576 | #line 14577 "configure" |
10f2d63a VZ |
14577 | #include "confdefs.h" |
14578 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14579 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14580 | builtin and then its argument prototype would still apply. */ |
14581 | char pthread_create(); | |
14582 | ||
14583 | int main() { | |
14584 | pthread_create() | |
14585 | ; return 0; } | |
14586 | EOF | |
d08b457b | 14587 | if { (eval echo configure:14588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14588 | rm -rf conftest* |
14589 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14590 | else | |
14591 | echo "configure: failed program was:" >&5 | |
14592 | cat conftest.$ac_ext >&5 | |
14593 | rm -rf conftest* | |
14594 | eval "ac_cv_lib_$ac_lib_var=no" | |
14595 | fi | |
14596 | rm -f conftest* | |
14597 | LIBS="$ac_save_LIBS" | |
10f2d63a | 14598 | |
698dcdb6 VZ |
14599 | fi |
14600 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14601 | echo "$ac_t""yes" 1>&6 | |
14602 | ||
10f2d63a VZ |
14603 | THREADS_OBJ="threadpsx.lo" |
14604 | THREADS_LINK="c_r" | |
698dcdb6 | 14605 | |
10f2d63a | 14606 | else |
698dcdb6 | 14607 | echo "$ac_t""no" 1>&6 |
10f2d63a | 14608 | |
698dcdb6 VZ |
14609 | ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'` |
14610 | echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6 | |
d08b457b | 14611 | echo "configure:14612: checking for sys/prctl.h" >&5 |
698dcdb6 VZ |
14612 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
14613 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14614 | else |
698dcdb6 | 14615 | cat > conftest.$ac_ext <<EOF |
d08b457b | 14616 | #line 14617 "configure" |
10f2d63a VZ |
14617 | #include "confdefs.h" |
14618 | #include <sys/prctl.h> | |
698dcdb6 VZ |
14619 | EOF |
14620 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d08b457b | 14621 | { (eval echo configure:14622: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
14622 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14623 | if test -z "$ac_err"; then | |
14624 | rm -rf conftest* | |
14625 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 14626 | else |
698dcdb6 VZ |
14627 | echo "$ac_err" >&5 |
14628 | echo "configure: failed program was:" >&5 | |
10f2d63a | 14629 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
14630 | rm -rf conftest* |
14631 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 14632 | fi |
698dcdb6 | 14633 | rm -f conftest* |
10f2d63a | 14634 | fi |
698dcdb6 VZ |
14635 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
14636 | echo "$ac_t""yes" 1>&6 | |
14637 | ||
1f8ae82f | 14638 | THREADS_OBJ="threadsgi.lo" |
698dcdb6 VZ |
14639 | |
14640 | else | |
14641 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
14642 | fi |
14643 | ||
698dcdb6 | 14644 | |
6232543b | 14645 | fi |
10f2d63a | 14646 | |
698dcdb6 | 14647 | |
1e487827 | 14648 | fi |
703e0a69 | 14649 | |
698dcdb6 | 14650 | |
10f2d63a VZ |
14651 | if test -z "$THREADS_OBJ" ; then |
14652 | wxUSE_THREADS=no | |
698dcdb6 | 14653 | echo "configure: warning: No thread support on this system" 1>&2 |
10f2d63a VZ |
14654 | fi |
14655 | fi | |
14656 | ||
14657 | if test "$wxUSE_THREADS" = "yes" ; then | |
698dcdb6 | 14658 | for ac_func in thr_setconcurrency |
70846f0a | 14659 | do |
698dcdb6 | 14660 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d08b457b | 14661 | echo "configure:14662: checking for $ac_func" >&5 |
698dcdb6 VZ |
14662 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14663 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14664 | else | |
14665 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 14666 | #line 14667 "configure" |
70846f0a VZ |
14667 | #include "confdefs.h" |
14668 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 14669 | which can conflict with char $ac_func(); below. */ |
70846f0a VZ |
14670 | #include <assert.h> |
14671 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14672 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14673 | builtin and then its argument prototype would still apply. */ |
14674 | char $ac_func(); | |
14675 | ||
14676 | int main() { | |
70846f0a VZ |
14677 | |
14678 | /* The GNU C library defines this for functions which it implements | |
14679 | to always fail with ENOSYS. Some functions are actually named | |
14680 | something starting with __ and the normal name is an alias. */ | |
14681 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14682 | choke me | |
14683 | #else | |
698dcdb6 | 14684 | $ac_func(); |
70846f0a VZ |
14685 | #endif |
14686 | ||
698dcdb6 | 14687 | ; return 0; } |
70846f0a | 14688 | EOF |
d08b457b | 14689 | if { (eval echo configure:14690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14690 | rm -rf conftest* |
14691 | eval "ac_cv_func_$ac_func=yes" | |
14692 | else | |
14693 | echo "configure: failed program was:" >&5 | |
14694 | cat conftest.$ac_ext >&5 | |
14695 | rm -rf conftest* | |
14696 | eval "ac_cv_func_$ac_func=no" | |
14697 | fi | |
14698 | rm -f conftest* | |
14699 | fi | |
70846f0a | 14700 | |
698dcdb6 VZ |
14701 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
14702 | echo "$ac_t""yes" 1>&6 | |
14703 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14704 | cat >> confdefs.h <<EOF | |
14705 | #define $ac_tr_func 1 | |
14706 | EOF | |
14707 | ||
14708 | else | |
14709 | echo "$ac_t""no" 1>&6 | |
70846f0a VZ |
14710 | fi |
14711 | done | |
14712 | ||
698dcdb6 VZ |
14713 | |
14714 | ||
14715 | for ac_hdr in sched.h | |
10f2d63a | 14716 | do |
698dcdb6 VZ |
14717 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
14718 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d08b457b | 14719 | echo "configure:14720: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
14720 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
14721 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14722 | else | |
14723 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 14724 | #line 14725 "configure" |
10f2d63a | 14725 | #include "confdefs.h" |
698dcdb6 VZ |
14726 | #include <$ac_hdr> |
14727 | EOF | |
14728 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d08b457b | 14729 | { (eval echo configure:14730: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
14730 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14731 | if test -z "$ac_err"; then | |
14732 | rm -rf conftest* | |
14733 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 14734 | else |
698dcdb6 VZ |
14735 | echo "$ac_err" >&5 |
14736 | echo "configure: failed program was:" >&5 | |
10f2d63a | 14737 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
14738 | rm -rf conftest* |
14739 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 14740 | fi |
698dcdb6 | 14741 | rm -f conftest* |
10f2d63a | 14742 | fi |
698dcdb6 VZ |
14743 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
14744 | echo "$ac_t""yes" 1>&6 | |
14745 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
14746 | cat >> confdefs.h <<EOF | |
14747 | #define $ac_tr_hdr 1 | |
10f2d63a | 14748 | EOF |
698dcdb6 VZ |
14749 | |
14750 | else | |
14751 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
14752 | fi |
14753 | done | |
14754 | ||
698dcdb6 VZ |
14755 | |
14756 | echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6 | |
d08b457b | 14757 | echo "configure:14758: checking for sched_yield in -l$THREADS_LINK" >&5 |
698dcdb6 VZ |
14758 | ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'` |
14759 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14760 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14761 | else |
698dcdb6 | 14762 | ac_save_LIBS="$LIBS" |
10f2d63a | 14763 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 14764 | cat > conftest.$ac_ext <<EOF |
d08b457b | 14765 | #line 14766 "configure" |
10f2d63a VZ |
14766 | #include "confdefs.h" |
14767 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14768 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14769 | builtin and then its argument prototype would still apply. */ |
14770 | char sched_yield(); | |
14771 | ||
14772 | int main() { | |
14773 | sched_yield() | |
14774 | ; return 0; } | |
14775 | EOF | |
d08b457b | 14776 | if { (eval echo configure:14777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14777 | rm -rf conftest* |
14778 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14779 | else | |
14780 | echo "configure: failed program was:" >&5 | |
14781 | cat conftest.$ac_ext >&5 | |
14782 | rm -rf conftest* | |
14783 | eval "ac_cv_lib_$ac_lib_var=no" | |
14784 | fi | |
14785 | rm -f conftest* | |
14786 | LIBS="$ac_save_LIBS" | |
14787 | ||
14788 | fi | |
14789 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14790 | echo "$ac_t""yes" 1>&6 | |
14791 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
14792 | #define HAVE_SCHED_YIELD 1 |
14793 | EOF | |
14794 | ||
14795 | else | |
698dcdb6 VZ |
14796 | echo "$ac_t""no" 1>&6 |
14797 | echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6 | |
d08b457b | 14798 | echo "configure:14799: checking for sched_yield in -lposix4" >&5 |
698dcdb6 VZ |
14799 | ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'` |
14800 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14801 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14802 | else |
698dcdb6 | 14803 | ac_save_LIBS="$LIBS" |
1e487827 | 14804 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 14805 | cat > conftest.$ac_ext <<EOF |
d08b457b | 14806 | #line 14807 "configure" |
10f2d63a VZ |
14807 | #include "confdefs.h" |
14808 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14809 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14810 | builtin and then its argument prototype would still apply. */ |
14811 | char sched_yield(); | |
14812 | ||
14813 | int main() { | |
14814 | sched_yield() | |
14815 | ; return 0; } | |
14816 | EOF | |
d08b457b | 14817 | if { (eval echo configure:14818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14818 | rm -rf conftest* |
14819 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14820 | else | |
14821 | echo "configure: failed program was:" >&5 | |
14822 | cat conftest.$ac_ext >&5 | |
14823 | rm -rf conftest* | |
14824 | eval "ac_cv_lib_$ac_lib_var=no" | |
14825 | fi | |
14826 | rm -f conftest* | |
14827 | LIBS="$ac_save_LIBS" | |
14828 | ||
14829 | fi | |
14830 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14831 | echo "$ac_t""yes" 1>&6 | |
14832 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
14833 | #define HAVE_SCHED_YIELD 1 |
14834 | EOF | |
14835 | POSIX4_LINK="-lposix4" | |
14836 | else | |
698dcdb6 VZ |
14837 | echo "$ac_t""no" 1>&6 |
14838 | echo "configure: warning: wxThread::Yield will not work properly" 1>&2 | |
14839 | ||
6232543b | 14840 | fi |
10f2d63a | 14841 | |
698dcdb6 | 14842 | |
1e487827 | 14843 | fi |
703e0a69 | 14844 | |
698dcdb6 | 14845 | |
f6bcfd97 | 14846 | HAVE_PRIOR_FUNCS=0 |
698dcdb6 | 14847 | echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6 |
d08b457b | 14848 | echo "configure:14849: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5 |
698dcdb6 VZ |
14849 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'` |
14850 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14851 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14852 | else |
698dcdb6 | 14853 | ac_save_LIBS="$LIBS" |
10f2d63a | 14854 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 14855 | cat > conftest.$ac_ext <<EOF |
d08b457b | 14856 | #line 14857 "configure" |
10f2d63a VZ |
14857 | #include "confdefs.h" |
14858 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14859 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14860 | builtin and then its argument prototype would still apply. */ |
14861 | char pthread_attr_getschedpolicy(); | |
14862 | ||
14863 | int main() { | |
14864 | pthread_attr_getschedpolicy() | |
14865 | ; return 0; } | |
14866 | EOF | |
d08b457b | 14867 | if { (eval echo configure:14868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14868 | rm -rf conftest* |
14869 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14870 | else | |
14871 | echo "configure: failed program was:" >&5 | |
14872 | cat conftest.$ac_ext >&5 | |
14873 | rm -rf conftest* | |
14874 | eval "ac_cv_lib_$ac_lib_var=no" | |
14875 | fi | |
14876 | rm -f conftest* | |
14877 | LIBS="$ac_save_LIBS" | |
14878 | ||
14879 | fi | |
14880 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14881 | echo "$ac_t""yes" 1>&6 | |
14882 | echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6 | |
d08b457b | 14883 | echo "configure:14884: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5 |
698dcdb6 VZ |
14884 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'` |
14885 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14886 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14887 | else | |
14888 | ac_save_LIBS="$LIBS" | |
f6bcfd97 | 14889 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 14890 | cat > conftest.$ac_ext <<EOF |
d08b457b | 14891 | #line 14892 "configure" |
f6bcfd97 BP |
14892 | #include "confdefs.h" |
14893 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14894 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14895 | builtin and then its argument prototype would still apply. */ |
14896 | char pthread_attr_setschedparam(); | |
14897 | ||
14898 | int main() { | |
14899 | pthread_attr_setschedparam() | |
14900 | ; return 0; } | |
14901 | EOF | |
d08b457b | 14902 | if { (eval echo configure:14903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14903 | rm -rf conftest* |
14904 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14905 | else | |
14906 | echo "configure: failed program was:" >&5 | |
14907 | cat conftest.$ac_ext >&5 | |
14908 | rm -rf conftest* | |
14909 | eval "ac_cv_lib_$ac_lib_var=no" | |
14910 | fi | |
14911 | rm -f conftest* | |
14912 | LIBS="$ac_save_LIBS" | |
14913 | ||
14914 | fi | |
14915 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14916 | echo "$ac_t""yes" 1>&6 | |
14917 | echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6 | |
d08b457b | 14918 | echo "configure:14919: checking for sched_get_priority_max in -l$THREADS_LINK" >&5 |
698dcdb6 VZ |
14919 | ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
14920 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14921 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14922 | else | |
14923 | ac_save_LIBS="$LIBS" | |
f6bcfd97 | 14924 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 14925 | cat > conftest.$ac_ext <<EOF |
d08b457b | 14926 | #line 14927 "configure" |
f6bcfd97 BP |
14927 | #include "confdefs.h" |
14928 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14929 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14930 | builtin and then its argument prototype would still apply. */ |
14931 | char sched_get_priority_max(); | |
14932 | ||
14933 | int main() { | |
14934 | sched_get_priority_max() | |
14935 | ; return 0; } | |
14936 | EOF | |
d08b457b | 14937 | if { (eval echo configure:14938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14938 | rm -rf conftest* |
14939 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14940 | else | |
14941 | echo "configure: failed program was:" >&5 | |
14942 | cat conftest.$ac_ext >&5 | |
14943 | rm -rf conftest* | |
14944 | eval "ac_cv_lib_$ac_lib_var=no" | |
14945 | fi | |
14946 | rm -f conftest* | |
14947 | LIBS="$ac_save_LIBS" | |
14948 | ||
14949 | fi | |
14950 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14951 | echo "$ac_t""yes" 1>&6 | |
f6bcfd97 | 14952 | HAVE_PRIOR_FUNCS=1 |
10f2d63a | 14953 | else |
698dcdb6 VZ |
14954 | echo "$ac_t""no" 1>&6 |
14955 | echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6 | |
d08b457b | 14956 | echo "configure:14957: checking for sched_get_priority_max in -lposix4" >&5 |
698dcdb6 VZ |
14957 | ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
14958 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14959 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 14960 | else |
698dcdb6 | 14961 | ac_save_LIBS="$LIBS" |
1e487827 | 14962 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 14963 | cat > conftest.$ac_ext <<EOF |
d08b457b | 14964 | #line 14965 "configure" |
10f2d63a | 14965 | #include "confdefs.h" |
6232543b | 14966 | /* Override any gcc2 internal prototype to avoid an error. */ |
6232543b | 14967 | /* We use char because int might match the return type of a gcc2 |
698dcdb6 VZ |
14968 | builtin and then its argument prototype would still apply. */ |
14969 | char sched_get_priority_max(); | |
14970 | ||
14971 | int main() { | |
14972 | sched_get_priority_max() | |
14973 | ; return 0; } | |
14974 | EOF | |
d08b457b | 14975 | if { (eval echo configure:14976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14976 | rm -rf conftest* |
14977 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14978 | else | |
14979 | echo "configure: failed program was:" >&5 | |
14980 | cat conftest.$ac_ext >&5 | |
14981 | rm -rf conftest* | |
14982 | eval "ac_cv_lib_$ac_lib_var=no" | |
14983 | fi | |
14984 | rm -f conftest* | |
14985 | LIBS="$ac_save_LIBS" | |
10f2d63a | 14986 | |
698dcdb6 VZ |
14987 | fi |
14988 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14989 | echo "$ac_t""yes" 1>&6 | |
14990 | ||
f6bcfd97 BP |
14991 | HAVE_PRIOR_FUNCS=1 |
14992 | POSIX4_LINK="-lposix4" | |
698dcdb6 VZ |
14993 | |
14994 | else | |
14995 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
14996 | fi |
14997 | ||
698dcdb6 | 14998 | |
10f2d63a VZ |
14999 | fi |
15000 | ||
698dcdb6 VZ |
15001 | |
15002 | else | |
15003 | echo "$ac_t""no" 1>&6 | |
6232543b | 15004 | fi |
10f2d63a | 15005 | |
698dcdb6 VZ |
15006 | |
15007 | else | |
15008 | echo "$ac_t""no" 1>&6 | |
1e487827 | 15009 | fi |
703e0a69 | 15010 | |
698dcdb6 | 15011 | |
f6bcfd97 | 15012 | if test "$HAVE_PRIOR_FUNCS" = 1; then |
698dcdb6 | 15013 | cat >> confdefs.h <<\EOF |
f6bcfd97 BP |
15014 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 |
15015 | EOF | |
15016 | ||
15017 | else | |
698dcdb6 | 15018 | echo "configure: warning: Setting thread priority will not work" 1>&2 |
f6bcfd97 BP |
15019 | fi |
15020 | ||
698dcdb6 | 15021 | echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6 |
d08b457b | 15022 | echo "configure:15023: checking for pthread_cancel in -l$THREADS_LINK" >&5 |
698dcdb6 VZ |
15023 | ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'` |
15024 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15025 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 15026 | else |
698dcdb6 | 15027 | ac_save_LIBS="$LIBS" |
10f2d63a | 15028 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 15029 | cat > conftest.$ac_ext <<EOF |
d08b457b | 15030 | #line 15031 "configure" |
10f2d63a VZ |
15031 | #include "confdefs.h" |
15032 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15033 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15034 | builtin and then its argument prototype would still apply. */ |
15035 | char pthread_cancel(); | |
15036 | ||
15037 | int main() { | |
15038 | pthread_cancel() | |
15039 | ; return 0; } | |
15040 | EOF | |
d08b457b | 15041 | if { (eval echo configure:15042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15042 | rm -rf conftest* |
15043 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15044 | else | |
15045 | echo "configure: failed program was:" >&5 | |
15046 | cat conftest.$ac_ext >&5 | |
15047 | rm -rf conftest* | |
15048 | eval "ac_cv_lib_$ac_lib_var=no" | |
15049 | fi | |
15050 | rm -f conftest* | |
15051 | LIBS="$ac_save_LIBS" | |
15052 | ||
15053 | fi | |
15054 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15055 | echo "$ac_t""yes" 1>&6 | |
15056 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
15057 | #define HAVE_PTHREAD_CANCEL 1 |
15058 | EOF | |
15059 | ||
15060 | else | |
698dcdb6 VZ |
15061 | echo "$ac_t""no" 1>&6 |
15062 | echo "configure: warning: wxThread::Kill() will not work properly" 1>&2 | |
10f2d63a VZ |
15063 | fi |
15064 | ||
1e487827 | 15065 | |
698dcdb6 | 15066 | echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6 |
d08b457b | 15067 | echo "configure:15068: checking for pthread_cleanup_push/pop" >&5 |
698dcdb6 VZ |
15068 | if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then |
15069 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15070 | else | |
15071 | ||
15072 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 15073 | #line 15074 "configure" |
10f2d63a VZ |
15074 | #include "confdefs.h" |
15075 | #include <pthread.h> | |
698dcdb6 | 15076 | int main() { |
10f2d63a VZ |
15077 | |
15078 | pthread_cleanup_push(NULL, NULL); | |
15079 | pthread_cleanup_pop(0); | |
698dcdb6 VZ |
15080 | |
15081 | ; return 0; } | |
15082 | EOF | |
d08b457b | 15083 | if { (eval echo configure:15084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
15084 | rm -rf conftest* |
15085 | ||
10f2d63a | 15086 | wx_cv_func_pthread_cleanup_push=yes |
698dcdb6 | 15087 | |
10f2d63a | 15088 | else |
698dcdb6 VZ |
15089 | echo "configure: failed program was:" >&5 |
15090 | cat conftest.$ac_ext >&5 | |
15091 | rm -rf conftest* | |
15092 | ||
10f2d63a | 15093 | wx_cv_func_pthread_cleanup_push=no |
698dcdb6 | 15094 | |
6232543b | 15095 | fi |
698dcdb6 VZ |
15096 | rm -f conftest* |
15097 | ||
1e487827 | 15098 | fi |
698dcdb6 VZ |
15099 | |
15100 | echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6 | |
10f2d63a | 15101 | |
d9b9876f | 15102 | if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then |
698dcdb6 | 15103 | cat >> confdefs.h <<\EOF |
d9b9876f VZ |
15104 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 |
15105 | EOF | |
15106 | ||
15107 | fi | |
15108 | ||
698dcdb6 | 15109 | |
b48da802 VZ |
15110 | if test "x$wx_lib_glibc21" = "xyes"; then |
15111 | CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" | |
ab252f7b VZ |
15112 | fi |
15113 | ||
698dcdb6 | 15114 | echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6 |
d08b457b | 15115 | echo "configure:15116: checking for pthread_mutexattr_t" >&5 |
698dcdb6 VZ |
15116 | if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then |
15117 | echo $ac_n "(cached) $ac_c" 1>&6 | |
d9b9876f | 15118 | else |
698dcdb6 VZ |
15119 | |
15120 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 15121 | #line 15122 "configure" |
d9b9876f VZ |
15122 | #include "confdefs.h" |
15123 | #include <pthread.h> | |
698dcdb6 | 15124 | int main() { |
d9b9876f VZ |
15125 | |
15126 | pthread_mutexattr_t attr; | |
15127 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
698dcdb6 VZ |
15128 | |
15129 | ; return 0; } | |
15130 | EOF | |
d08b457b | 15131 | if { (eval echo configure:15132: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
15132 | rm -rf conftest* |
15133 | ||
d9b9876f | 15134 | wx_cv_type_pthread_mutexattr_t=yes |
698dcdb6 | 15135 | |
d9b9876f | 15136 | else |
698dcdb6 VZ |
15137 | echo "configure: failed program was:" >&5 |
15138 | cat conftest.$ac_ext >&5 | |
15139 | rm -rf conftest* | |
15140 | ||
d9b9876f | 15141 | wx_cv_type_pthread_mutexattr_t=no |
698dcdb6 VZ |
15142 | |
15143 | ||
6232543b | 15144 | fi |
698dcdb6 VZ |
15145 | rm -f conftest* |
15146 | ||
1e487827 | 15147 | fi |
698dcdb6 VZ |
15148 | |
15149 | echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6 | |
d9b9876f VZ |
15150 | |
15151 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then | |
698dcdb6 | 15152 | cat >> confdefs.h <<\EOF |
d9b9876f VZ |
15153 | #define HAVE_PTHREAD_MUTEXATTR_T 1 |
15154 | EOF | |
15155 | ||
15156 | else | |
698dcdb6 | 15157 | echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6 |
d08b457b | 15158 | echo "configure:15159: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 |
698dcdb6 VZ |
15159 | if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then |
15160 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15161 | else | |
15162 | ||
15163 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 15164 | #line 15165 "configure" |
d9b9876f VZ |
15165 | #include "confdefs.h" |
15166 | #include <pthread.h> | |
698dcdb6 | 15167 | int main() { |
d9b9876f VZ |
15168 | |
15169 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; | |
698dcdb6 VZ |
15170 | |
15171 | ; return 0; } | |
15172 | EOF | |
d08b457b | 15173 | if { (eval echo configure:15174: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
15174 | rm -rf conftest* |
15175 | ||
d9b9876f | 15176 | wx_cv_type_pthread_rec_mutex_init=yes |
698dcdb6 | 15177 | |
d9b9876f | 15178 | else |
698dcdb6 VZ |
15179 | echo "configure: failed program was:" >&5 |
15180 | cat conftest.$ac_ext >&5 | |
15181 | rm -rf conftest* | |
15182 | ||
d9b9876f | 15183 | wx_cv_type_pthread_rec_mutex_init=no |
698dcdb6 VZ |
15184 | |
15185 | ||
6232543b | 15186 | fi |
698dcdb6 VZ |
15187 | rm -f conftest* |
15188 | ||
1e487827 | 15189 | fi |
698dcdb6 VZ |
15190 | |
15191 | echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6 | |
3765e936 | 15192 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then |
698dcdb6 | 15193 | cat >> confdefs.h <<\EOF |
d9b9876f VZ |
15194 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 |
15195 | EOF | |
15196 | ||
15197 | else | |
698dcdb6 | 15198 | echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2 |
d9b9876f VZ |
15199 | fi |
15200 | fi | |
15201 | ||
10f2d63a | 15202 | THREADS_LINK="-l$THREADS_LINK" |
186837b0 VZ |
15203 | |
15204 | if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then | |
a3cb1afc | 15205 | CPPFLAGS="${CFLAGS} -mt" |
186837b0 VZ |
15206 | CXXFLAGS="${CXXFLAGS} -mt" |
15207 | LDFLAGS="${LDFLAGS} -mt" | |
15208 | fi | |
10f2d63a VZ |
15209 | fi |
15210 | ||
15211 | fi | |
15212 | ||
15213 | if test "$wxUSE_THREADS" = "yes"; then | |
698dcdb6 | 15214 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15215 | #define wxUSE_THREADS 1 |
15216 | EOF | |
15217 | ||
698dcdb6 | 15218 | |
7b6058cd | 15219 | if test "$USE_DARWIN" != 1; then |
3a922bb4 | 15220 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" |
2c6025bc | 15221 | fi |
10f2d63a VZ |
15222 | |
15223 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
15224 | else | |
15225 | if test "$ac_cv_func_strtok_r" = "yes"; then | |
698dcdb6 | 15226 | echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6 |
d08b457b | 15227 | echo "configure:15228: checking if -D_REENTRANT is needed" >&5 |
ab9b9eab | 15228 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
3a922bb4 | 15229 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" |
698dcdb6 | 15230 | echo "$ac_t""yes" 1>&6 |
ab9b9eab | 15231 | else |
698dcdb6 | 15232 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
15233 | fi |
15234 | fi | |
15235 | fi | |
15236 | ||
6f72b082 | 15237 | if test "$WXGTK20" = 1 ; then |
698dcdb6 | 15238 | cat >> confdefs.h <<EOF |
6f72b082 | 15239 | #define __WXGTK20__ $WXGTK20 |
13111b2a VZ |
15240 | EOF |
15241 | ||
15242 | WXGTK12=1 | |
15243 | fi | |
15244 | ||
10f2d63a | 15245 | if test "$WXGTK12" = 1 ; then |
698dcdb6 | 15246 | cat >> confdefs.h <<EOF |
10f2d63a VZ |
15247 | #define __WXGTK12__ $WXGTK12 |
15248 | EOF | |
15249 | ||
15250 | fi | |
15251 | ||
f6bcfd97 | 15252 | if test "$WXGTK127" = 1 ; then |
698dcdb6 | 15253 | cat >> confdefs.h <<EOF |
f6bcfd97 BP |
15254 | #define __WXGTK127__ $WXGTK127 |
15255 | EOF | |
15256 | ||
15257 | fi | |
15258 | ||
10f2d63a VZ |
15259 | WXDEBUG= |
15260 | ||
15261 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
15262 | WXDEBUG="-g" | |
15263 | wxUSE_OPTIMISE=no | |
15264 | fi | |
15265 | ||
15266 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
15267 | wxUSE_DEBUG_INFO=yes | |
15268 | WXDEBUG="-ggdb" | |
15269 | fi | |
15270 | ||
15271 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
698dcdb6 | 15272 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15273 | #define WXDEBUG 1 |
15274 | EOF | |
15275 | ||
15276 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
15277 | else | |
15278 | if test "$wxUSE_GTK" = 1 ; then | |
15279 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
15280 | fi | |
15281 | fi | |
15282 | ||
15283 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
698dcdb6 | 15284 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15285 | #define wxUSE_MEMORY_TRACING 1 |
15286 | EOF | |
15287 | ||
698dcdb6 | 15288 | cat >> confdefs.h <<\EOF |
10f2d63a | 15289 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 |
47c13eb7 VS |
15290 | EOF |
15291 | ||
698dcdb6 | 15292 | cat >> confdefs.h <<\EOF |
47c13eb7 | 15293 | #define wxUSE_DEBUG_NEW_ALWAYS 1 |
10f2d63a VZ |
15294 | EOF |
15295 | ||
15296 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
15297 | fi | |
15298 | ||
15299 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
15300 | DMALLOC_LINK="-ldmalloc" | |
15301 | fi | |
15302 | ||
15303 | PROFILE= | |
15304 | if test "$wxUSE_PROFILE" = "yes" ; then | |
15305 | PROFILE="-pg" | |
15306 | fi | |
15307 | ||
10f2d63a VZ |
15308 | if test "$GCC" = yes ; then |
15309 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
3a922bb4 | 15310 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" |
10f2d63a VZ |
15311 | fi |
15312 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
3a922bb4 | 15313 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" |
10f2d63a VZ |
15314 | fi |
15315 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
d08b457b | 15316 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" |
10f2d63a VZ |
15317 | fi |
15318 | if test "$wxUSE_NO_DEPS" = "no" ; then | |
d08b457b | 15319 | CPPFLAGS="-MMD ${CPPFLAGS}" |
3a922bb4 RL |
15320 | fi |
15321 | if test "$USE_WIN32" = 1 ; then | |
15322 | # I'm not even really sure what this was ever added to solve, | |
15323 | # but someone added it for mingw native builds, so I guess | |
15324 | # they had a reason, right?? | |
15325 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return" | |
10f2d63a VZ |
15326 | fi |
15327 | fi | |
15328 | ||
698dcdb6 | 15329 | |
10f2d63a VZ |
15330 | CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" ` |
15331 | CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" ` | |
15332 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
15333 | OPTIMISE= | |
15334 | else | |
15335 | if test "$GCC" = yes ; then | |
15336 | OPTIMISE="-O2" | |
15337 | case "${host}" in | |
15338 | i586-*-*|i686-*-* ) | |
15339 | OPTIMISE="${OPTIMISE} " | |
15340 | ;; | |
15341 | esac | |
15342 | else | |
15343 | OPTIMISE="-O" | |
15344 | fi | |
15345 | fi | |
15346 | ||
54276ccf VZ |
15347 | if test "$WXWIN_COMPATIBILITY_2" = "yes"; then |
15348 | cat >> confdefs.h <<\EOF | |
15349 | #define WXWIN_COMPATIBILITY_2 1 | |
15350 | EOF | |
15351 | ||
15352 | ||
15353 | WXWIN_COMPATIBILITY_2_2="yes" | |
15354 | fi | |
15355 | ||
15356 | if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then | |
15357 | cat >> confdefs.h <<\EOF | |
15358 | #define WXWIN_COMPATIBILITY_2_2 1 | |
15359 | EOF | |
15360 | ||
15361 | fi | |
15362 | ||
698dcdb6 | 15363 | |
10f2d63a | 15364 | ZLIB_INCLUDE= |
422107f9 | 15365 | if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then |
698dcdb6 | 15366 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15367 | #define wxUSE_ZLIB 1 |
15368 | EOF | |
15369 | ||
422107f9 VZ |
15370 | if test "$wxUSE_ZLIB" = "yes" ; then |
15371 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
15372 | else | |
15373 | ZLIB_LINK= | |
698dcdb6 VZ |
15374 | ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'` |
15375 | echo $ac_n "checking for zlib.h""... $ac_c" 1>&6 | |
d08b457b | 15376 | echo "configure:15377: checking for zlib.h" >&5 |
698dcdb6 VZ |
15377 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
15378 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15379 | else | |
15380 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 15381 | #line 15382 "configure" |
422107f9 VZ |
15382 | #include "confdefs.h" |
15383 | #include <zlib.h> | |
698dcdb6 VZ |
15384 | EOF |
15385 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d08b457b | 15386 | { (eval echo configure:15387: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
15387 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15388 | if test -z "$ac_err"; then | |
15389 | rm -rf conftest* | |
15390 | eval "ac_cv_header_$ac_safe=yes" | |
422107f9 | 15391 | else |
698dcdb6 VZ |
15392 | echo "$ac_err" >&5 |
15393 | echo "configure: failed program was:" >&5 | |
422107f9 | 15394 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
15395 | rm -rf conftest* |
15396 | eval "ac_cv_header_$ac_safe=no" | |
422107f9 | 15397 | fi |
698dcdb6 | 15398 | rm -f conftest* |
422107f9 | 15399 | fi |
698dcdb6 VZ |
15400 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
15401 | echo "$ac_t""yes" 1>&6 | |
15402 | echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6 | |
d08b457b | 15403 | echo "configure:15404: checking for deflate in -lz" >&5 |
698dcdb6 VZ |
15404 | ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'` |
15405 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15406 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 15407 | else |
698dcdb6 | 15408 | ac_save_LIBS="$LIBS" |
422107f9 | 15409 | LIBS="-lz $LIBS" |
698dcdb6 | 15410 | cat > conftest.$ac_ext <<EOF |
d08b457b | 15411 | #line 15412 "configure" |
422107f9 VZ |
15412 | #include "confdefs.h" |
15413 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15414 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15415 | builtin and then its argument prototype would still apply. */ |
15416 | char deflate(); | |
15417 | ||
15418 | int main() { | |
15419 | deflate() | |
15420 | ; return 0; } | |
15421 | EOF | |
d08b457b | 15422 | if { (eval echo configure:15423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15423 | rm -rf conftest* |
15424 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15425 | else | |
15426 | echo "configure: failed program was:" >&5 | |
15427 | cat conftest.$ac_ext >&5 | |
15428 | rm -rf conftest* | |
15429 | eval "ac_cv_lib_$ac_lib_var=no" | |
15430 | fi | |
15431 | rm -f conftest* | |
15432 | LIBS="$ac_save_LIBS" | |
15433 | ||
15434 | fi | |
15435 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15436 | echo "$ac_t""yes" 1>&6 | |
422107f9 | 15437 | ZLIB_LINK="-lz" |
698dcdb6 VZ |
15438 | else |
15439 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
15440 | fi |
15441 | ||
698dcdb6 VZ |
15442 | else |
15443 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
15444 | fi |
15445 | ||
15446 | if test "x$ZLIB_LINK" = "x" ; then | |
698dcdb6 | 15447 | { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; } |
422107f9 VZ |
15448 | fi |
15449 | fi | |
10f2d63a VZ |
15450 | fi |
15451 | ||
15452 | PNG_INCLUDE= | |
422107f9 | 15453 | if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then |
698dcdb6 | 15454 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15455 | #define wxUSE_LIBPNG 1 |
15456 | EOF | |
15457 | ||
41fd4136 | 15458 | if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then |
698dcdb6 | 15459 | echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2 |
422107f9 VZ |
15460 | wxUSE_LIBPNG=yes |
15461 | fi | |
15462 | ||
15463 | if test "$wxUSE_LIBPNG" = "yes" ; then | |
15464 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
15465 | else | |
15466 | PNG_LINK= | |
698dcdb6 VZ |
15467 | ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` |
15468 | echo $ac_n "checking for png.h""... $ac_c" 1>&6 | |
d08b457b | 15469 | echo "configure:15470: checking for png.h" >&5 |
698dcdb6 VZ |
15470 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
15471 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15472 | else | |
15473 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 15474 | #line 15475 "configure" |
422107f9 VZ |
15475 | #include "confdefs.h" |
15476 | #include <png.h> | |
698dcdb6 VZ |
15477 | EOF |
15478 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d08b457b | 15479 | { (eval echo configure:15480: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
15480 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15481 | if test -z "$ac_err"; then | |
15482 | rm -rf conftest* | |
15483 | eval "ac_cv_header_$ac_safe=yes" | |
422107f9 | 15484 | else |
698dcdb6 VZ |
15485 | echo "$ac_err" >&5 |
15486 | echo "configure: failed program was:" >&5 | |
422107f9 | 15487 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
15488 | rm -rf conftest* |
15489 | eval "ac_cv_header_$ac_safe=no" | |
422107f9 | 15490 | fi |
698dcdb6 | 15491 | rm -f conftest* |
422107f9 | 15492 | fi |
698dcdb6 VZ |
15493 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
15494 | echo "$ac_t""yes" 1>&6 | |
15495 | echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6 | |
d08b457b | 15496 | echo "configure:15497: checking for png_check_sig in -lpng" >&5 |
698dcdb6 VZ |
15497 | ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'` |
15498 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15499 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 15500 | else |
698dcdb6 | 15501 | ac_save_LIBS="$LIBS" |
422107f9 | 15502 | LIBS="-lpng -lz -lm $LIBS" |
698dcdb6 | 15503 | cat > conftest.$ac_ext <<EOF |
d08b457b | 15504 | #line 15505 "configure" |
422107f9 VZ |
15505 | #include "confdefs.h" |
15506 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15507 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15508 | builtin and then its argument prototype would still apply. */ |
15509 | char png_check_sig(); | |
15510 | ||
15511 | int main() { | |
15512 | png_check_sig() | |
15513 | ; return 0; } | |
15514 | EOF | |
d08b457b | 15515 | if { (eval echo configure:15516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15516 | rm -rf conftest* |
15517 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15518 | else | |
15519 | echo "configure: failed program was:" >&5 | |
15520 | cat conftest.$ac_ext >&5 | |
15521 | rm -rf conftest* | |
15522 | eval "ac_cv_lib_$ac_lib_var=no" | |
15523 | fi | |
15524 | rm -f conftest* | |
15525 | LIBS="$ac_save_LIBS" | |
15526 | ||
15527 | fi | |
15528 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15529 | echo "$ac_t""yes" 1>&6 | |
422107f9 | 15530 | PNG_LINK="-lpng" |
698dcdb6 VZ |
15531 | else |
15532 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
15533 | fi |
15534 | ||
698dcdb6 VZ |
15535 | |
15536 | else | |
15537 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
15538 | fi |
15539 | ||
15540 | if test "x$PNG_LINK" = "x" ; then | |
698dcdb6 | 15541 | { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; } |
422107f9 VZ |
15542 | fi |
15543 | fi | |
15544 | ||
10f2d63a VZ |
15545 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" |
15546 | fi | |
15547 | ||
15548 | JPEG_INCLUDE= | |
422107f9 | 15549 | if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then |
698dcdb6 | 15550 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15551 | #define wxUSE_LIBJPEG 1 |
15552 | EOF | |
15553 | ||
422107f9 VZ |
15554 | if test "$wxUSE_LIBJPEG" = "yes" ; then |
15555 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
15556 | else | |
15557 | JPEG_LINK= | |
463abc64 | 15558 | echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 |
d08b457b | 15559 | echo "configure:15560: checking for jpeglib.h" >&5 |
463abc64 | 15560 | if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then |
698dcdb6 VZ |
15561 | echo $ac_n "(cached) $ac_c" 1>&6 |
15562 | else | |
15563 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 15564 | #line 15565 "configure" |
422107f9 | 15565 | #include "confdefs.h" |
463abc64 VZ |
15566 | |
15567 | #undef HAVE_STDLIB_H | |
15568 | #include <stdio.h> | |
15569 | #include <jpeglib.h> | |
15570 | ||
15571 | int main() { | |
15572 | ||
15573 | ||
15574 | ; return 0; } | |
698dcdb6 | 15575 | EOF |
d08b457b | 15576 | if { (eval echo configure:15577: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 15577 | rm -rf conftest* |
463abc64 | 15578 | ac_cv_header_jpeglib_h=yes |
6232543b | 15579 | else |
698dcdb6 | 15580 | echo "configure: failed program was:" >&5 |
422107f9 | 15581 | cat conftest.$ac_ext >&5 |
698dcdb6 | 15582 | rm -rf conftest* |
463abc64 VZ |
15583 | ac_cv_header_jpeglib_h=no |
15584 | ||
422107f9 | 15585 | fi |
698dcdb6 | 15586 | rm -f conftest* |
463abc64 | 15587 | |
422107f9 | 15588 | fi |
463abc64 VZ |
15589 | |
15590 | echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6 | |
15591 | ||
15592 | if test "$ac_cv_header_jpeglib_h" = "yes"; then | |
15593 | echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6 | |
d08b457b | 15594 | echo "configure:15595: checking for jpeg_read_header in -ljpeg" >&5 |
698dcdb6 VZ |
15595 | ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'` |
15596 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15597 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 15598 | else |
698dcdb6 | 15599 | ac_save_LIBS="$LIBS" |
422107f9 | 15600 | LIBS="-ljpeg $LIBS" |
698dcdb6 | 15601 | cat > conftest.$ac_ext <<EOF |
d08b457b | 15602 | #line 15603 "configure" |
422107f9 VZ |
15603 | #include "confdefs.h" |
15604 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15605 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15606 | builtin and then its argument prototype would still apply. */ |
15607 | char jpeg_read_header(); | |
15608 | ||
15609 | int main() { | |
15610 | jpeg_read_header() | |
15611 | ; return 0; } | |
15612 | EOF | |
d08b457b | 15613 | if { (eval echo configure:15614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15614 | rm -rf conftest* |
15615 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15616 | else | |
15617 | echo "configure: failed program was:" >&5 | |
15618 | cat conftest.$ac_ext >&5 | |
15619 | rm -rf conftest* | |
15620 | eval "ac_cv_lib_$ac_lib_var=no" | |
15621 | fi | |
15622 | rm -f conftest* | |
15623 | LIBS="$ac_save_LIBS" | |
15624 | ||
15625 | fi | |
15626 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15627 | echo "$ac_t""yes" 1>&6 | |
422107f9 | 15628 | JPEG_LINK="-ljpeg" |
698dcdb6 VZ |
15629 | else |
15630 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
15631 | fi |
15632 | ||
463abc64 | 15633 | fi |
422107f9 VZ |
15634 | |
15635 | if test "x$JPEG_LINK" = "x" ; then | |
698dcdb6 | 15636 | { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; } |
422107f9 VZ |
15637 | fi |
15638 | fi | |
10f2d63a VZ |
15639 | fi |
15640 | ||
c7a2bf27 | 15641 | TIFF_INCLUDE= |
0dcf9893 | 15642 | if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then |
698dcdb6 | 15643 | cat >> confdefs.h <<\EOF |
c7a2bf27 RR |
15644 | #define wxUSE_LIBTIFF 1 |
15645 | EOF | |
15646 | ||
665bbe97 | 15647 | if test "$wxUSE_LIBTIFF" = "yes" ; then |
0dcf9893 VZ |
15648 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" |
15649 | else | |
15650 | TIFF_LINK= | |
698dcdb6 VZ |
15651 | ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` |
15652 | echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | |
d08b457b | 15653 | echo "configure:15654: checking for tiffio.h" >&5 |
698dcdb6 VZ |
15654 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
15655 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15656 | else | |
15657 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 15658 | #line 15659 "configure" |
0dcf9893 VZ |
15659 | #include "confdefs.h" |
15660 | #include <tiffio.h> | |
698dcdb6 VZ |
15661 | EOF |
15662 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d08b457b | 15663 | { (eval echo configure:15664: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
15664 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15665 | if test -z "$ac_err"; then | |
15666 | rm -rf conftest* | |
15667 | eval "ac_cv_header_$ac_safe=yes" | |
3fed1840 | 15668 | else |
698dcdb6 VZ |
15669 | echo "$ac_err" >&5 |
15670 | echo "configure: failed program was:" >&5 | |
3fed1840 | 15671 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
15672 | rm -rf conftest* |
15673 | eval "ac_cv_header_$ac_safe=no" | |
3fed1840 | 15674 | fi |
698dcdb6 | 15675 | rm -f conftest* |
3fed1840 | 15676 | fi |
698dcdb6 VZ |
15677 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
15678 | echo "$ac_t""yes" 1>&6 | |
3a922bb4 | 15679 | echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6 |
d08b457b | 15680 | echo "configure:15681: checking for TIFFError in -ltiff" >&5 |
3a922bb4 | 15681 | ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
15682 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
15683 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3fed1840 | 15684 | else |
698dcdb6 | 15685 | ac_save_LIBS="$LIBS" |
3a922bb4 | 15686 | LIBS="-ltiff -lm $LIBS" |
698dcdb6 | 15687 | cat > conftest.$ac_ext <<EOF |
d08b457b | 15688 | #line 15689 "configure" |
3fed1840 RR |
15689 | #include "confdefs.h" |
15690 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15691 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 15692 | builtin and then its argument prototype would still apply. */ |
3a922bb4 | 15693 | char TIFFError(); |
698dcdb6 VZ |
15694 | |
15695 | int main() { | |
3a922bb4 | 15696 | TIFFError() |
698dcdb6 VZ |
15697 | ; return 0; } |
15698 | EOF | |
d08b457b | 15699 | if { (eval echo configure:15700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15700 | rm -rf conftest* |
15701 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15702 | else | |
15703 | echo "configure: failed program was:" >&5 | |
15704 | cat conftest.$ac_ext >&5 | |
15705 | rm -rf conftest* | |
15706 | eval "ac_cv_lib_$ac_lib_var=no" | |
15707 | fi | |
15708 | rm -f conftest* | |
15709 | LIBS="$ac_save_LIBS" | |
15710 | ||
15711 | fi | |
15712 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15713 | echo "$ac_t""yes" 1>&6 | |
3a922bb4 | 15714 | TIFF_LINK="-ltiff" |
698dcdb6 VZ |
15715 | else |
15716 | echo "$ac_t""no" 1>&6 | |
3fed1840 RR |
15717 | fi |
15718 | ||
698dcdb6 VZ |
15719 | else |
15720 | echo "$ac_t""no" 1>&6 | |
3fed1840 RR |
15721 | fi |
15722 | ||
3a922bb4 RL |
15723 | if test "x$TIFF_LINK" = "x" ; then |
15724 | { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; } | |
3fed1840 RR |
15725 | fi |
15726 | fi | |
15727 | fi | |
15728 | ||
3a922bb4 RL |
15729 | FREETYPE_INCLUDE= |
15730 | if test "$wxUSE_FREETYPE" = "yes" -o "$wxUSE_FREETYPE" = "sys" ; then | |
15731 | cat >> confdefs.h <<\EOF | |
15732 | #define wxUSE_FREETYPE 1 | |
7b6058cd GD |
15733 | EOF |
15734 | ||
3a922bb4 RL |
15735 | if test "$wxUSE_FREETYPE" = "yes" ; then |
15736 | FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype" | |
7b6058cd | 15737 | else |
3a922bb4 RL |
15738 | FREETYPE_LINK= |
15739 | ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'` | |
15740 | echo $ac_n "checking for freetype.h""... $ac_c" 1>&6 | |
d08b457b | 15741 | echo "configure:15742: checking for freetype.h" >&5 |
698dcdb6 VZ |
15742 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
15743 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15744 | else | |
15745 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 15746 | #line 15747 "configure" |
10f2d63a | 15747 | #include "confdefs.h" |
3a922bb4 | 15748 | #include <freetype.h> |
698dcdb6 VZ |
15749 | EOF |
15750 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d08b457b | 15751 | { (eval echo configure:15752: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
15752 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15753 | if test -z "$ac_err"; then | |
15754 | rm -rf conftest* | |
15755 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 15756 | else |
698dcdb6 VZ |
15757 | echo "$ac_err" >&5 |
15758 | echo "configure: failed program was:" >&5 | |
10f2d63a | 15759 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
15760 | rm -rf conftest* |
15761 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 15762 | fi |
698dcdb6 | 15763 | rm -f conftest* |
10f2d63a | 15764 | fi |
698dcdb6 VZ |
15765 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
15766 | echo "$ac_t""yes" 1>&6 | |
3a922bb4 | 15767 | echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6 |
d08b457b | 15768 | echo "configure:15769: checking for FT_Render_Glyph in -lfreetype" >&5 |
3a922bb4 | 15769 | ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
15770 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
15771 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 15772 | else |
698dcdb6 | 15773 | ac_save_LIBS="$LIBS" |
3a922bb4 | 15774 | LIBS="-lfreetype -lm $LIBS" |
698dcdb6 | 15775 | cat > conftest.$ac_ext <<EOF |
d08b457b | 15776 | #line 15777 "configure" |
10f2d63a VZ |
15777 | #include "confdefs.h" |
15778 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15779 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 15780 | builtin and then its argument prototype would still apply. */ |
3a922bb4 | 15781 | char FT_Render_Glyph(); |
698dcdb6 VZ |
15782 | |
15783 | int main() { | |
3a922bb4 | 15784 | FT_Render_Glyph() |
698dcdb6 VZ |
15785 | ; return 0; } |
15786 | EOF | |
d08b457b | 15787 | if { (eval echo configure:15788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15788 | rm -rf conftest* |
15789 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15790 | else | |
15791 | echo "configure: failed program was:" >&5 | |
15792 | cat conftest.$ac_ext >&5 | |
15793 | rm -rf conftest* | |
15794 | eval "ac_cv_lib_$ac_lib_var=no" | |
15795 | fi | |
15796 | rm -f conftest* | |
15797 | LIBS="$ac_save_LIBS" | |
10f2d63a | 15798 | |
698dcdb6 VZ |
15799 | fi |
15800 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15801 | echo "$ac_t""yes" 1>&6 | |
3a922bb4 | 15802 | FREETYPE_LINK="-lfreetype" |
698dcdb6 VZ |
15803 | else |
15804 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
15805 | fi |
15806 | ||
3a922bb4 | 15807 | |
10f2d63a | 15808 | else |
698dcdb6 | 15809 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
15810 | fi |
15811 | ||
3a922bb4 RL |
15812 | if test "x$FREETYPE_LINK" = "x" ; then |
15813 | { echo "configure: error: system freetype library not found! Use --with-freetype=yes to use the built-in freetype" 1>&2; exit 1; } | |
15814 | fi | |
7b6058cd | 15815 | fi |
10f2d63a VZ |
15816 | fi |
15817 | ||
698dcdb6 | 15818 | |
10f2d63a | 15819 | if test "$wxUSE_GUI" = "yes"; then |
698dcdb6 | 15820 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15821 | #define wxUSE_GUI 1 |
15822 | EOF | |
15823 | ||
698dcdb6 | 15824 | |
10f2d63a | 15825 | else |
698dcdb6 | 15826 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15827 | #define wxUSE_NOGUI 1 |
15828 | EOF | |
15829 | ||
15830 | fi | |
15831 | ||
698dcdb6 | 15832 | |
10f2d63a | 15833 | if test "$wxUSE_UNIX" = "yes"; then |
698dcdb6 | 15834 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15835 | #define wxUSE_UNIX 1 |
15836 | EOF | |
15837 | ||
15838 | fi | |
15839 | ||
698dcdb6 | 15840 | |
10f2d63a | 15841 | if test "$wxUSE_APPLE_IEEE" = "yes"; then |
698dcdb6 | 15842 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15843 | #define wxUSE_APPLE_IEEE 1 |
15844 | EOF | |
15845 | ||
15846 | fi | |
15847 | ||
1e6feb95 VZ |
15848 | if test "$wxUSE_TIMER" = "yes"; then |
15849 | cat >> confdefs.h <<\EOF | |
15850 | #define wxUSE_TIMER 1 | |
15851 | EOF | |
15852 | ||
15853 | fi | |
15854 | ||
10f2d63a | 15855 | if test "$wxUSE_WAVE" = "yes"; then |
698dcdb6 | 15856 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15857 | #define wxUSE_WAVE 1 |
15858 | EOF | |
15859 | ||
15860 | fi | |
15861 | ||
1e6feb95 VZ |
15862 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
15863 | cat >> confdefs.h <<\EOF | |
15864 | #define wxUSE_CMDLINE_PARSER 1 | |
15865 | EOF | |
15866 | ||
15867 | fi | |
15868 | ||
15869 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
15870 | cat >> confdefs.h <<\EOF | |
15871 | #define wxUSE_STOPWATCH 1 | |
15872 | EOF | |
15873 | ||
15874 | fi | |
15875 | ||
15876 | if test "$wxUSE_DATETIME" = "yes"; then | |
15877 | cat >> confdefs.h <<\EOF | |
15878 | #define wxUSE_DATETIME 1 | |
15879 | EOF | |
15880 | ||
15881 | fi | |
15882 | ||
15883 | if test "$wxUSE_TIMEDATE" = "yes"; then | |
15884 | cat >> confdefs.h <<\EOF | |
15885 | #define wxUSE_TIMEDATE 1 | |
15886 | EOF | |
15887 | ||
15888 | fi | |
15889 | ||
10f2d63a | 15890 | if test "$wxUSE_FILE" = "yes"; then |
698dcdb6 | 15891 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15892 | #define wxUSE_FILE 1 |
15893 | EOF | |
15894 | ||
15895 | fi | |
15896 | ||
1e6feb95 VZ |
15897 | if test "$wxUSE_FFILE" = "yes"; then |
15898 | cat >> confdefs.h <<\EOF | |
15899 | #define wxUSE_FFILE 1 | |
15900 | EOF | |
15901 | ||
15902 | fi | |
15903 | ||
24528b0c | 15904 | if test "$wxUSE_FILESYSTEM" = "yes"; then |
698dcdb6 | 15905 | cat >> confdefs.h <<\EOF |
24528b0c VS |
15906 | #define wxUSE_FILESYSTEM 1 |
15907 | EOF | |
15908 | ||
15909 | fi | |
15910 | ||
10f2d63a | 15911 | if test "$wxUSE_FS_INET" = "yes"; then |
698dcdb6 | 15912 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15913 | #define wxUSE_FS_INET 1 |
15914 | EOF | |
15915 | ||
15916 | fi | |
15917 | ||
15918 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
698dcdb6 | 15919 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15920 | #define wxUSE_FS_ZIP 1 |
15921 | EOF | |
15922 | ||
15923 | fi | |
15924 | ||
15925 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
698dcdb6 | 15926 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15927 | #define wxUSE_ZIPSTREAM 1 |
15928 | EOF | |
15929 | ||
15930 | fi | |
15931 | ||
eb4efbdc | 15932 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
698dcdb6 | 15933 | cat >> confdefs.h <<\EOF |
eb4efbdc VZ |
15934 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
15935 | EOF | |
15936 | ||
15937 | fi | |
15938 | ||
4f3c5f06 | 15939 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
698dcdb6 | 15940 | cat >> confdefs.h <<\EOF |
4f3c5f06 VZ |
15941 | #define wxUSE_SNGLINST_CHECKER 1 |
15942 | EOF | |
15943 | ||
15944 | fi | |
15945 | ||
10f2d63a | 15946 | if test "$wxUSE_BUSYINFO" = "yes"; then |
698dcdb6 | 15947 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15948 | #define wxUSE_BUSYINFO 1 |
15949 | EOF | |
15950 | ||
15951 | fi | |
15952 | ||
15953 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
698dcdb6 | 15954 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15955 | #define wxUSE_STD_IOSTREAM 1 |
15956 | EOF | |
15957 | ||
15958 | fi | |
15959 | ||
15960 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
15961 | if test "$wxUSE_FILE" != "yes"; then | |
698dcdb6 | 15962 | echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2 |
10f2d63a | 15963 | else |
698dcdb6 | 15964 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15965 | #define wxUSE_TEXTFILE 1 |
15966 | EOF | |
15967 | ||
15968 | fi | |
15969 | fi | |
15970 | ||
15971 | if test "$wxUSE_CONFIG" = "yes" ; then | |
15972 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
698dcdb6 | 15973 | echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2 |
10f2d63a | 15974 | else |
698dcdb6 | 15975 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15976 | #define wxUSE_CONFIG 1 |
15977 | EOF | |
15978 | ||
15979 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
15980 | fi | |
15981 | fi | |
15982 | ||
15983 | if test "$wxUSE_INTL" = "yes" ; then | |
15984 | if test "$wxUSE_FILE" != "yes"; then | |
698dcdb6 | 15985 | echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2 |
10f2d63a | 15986 | else |
698dcdb6 | 15987 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15988 | #define wxUSE_INTL 1 |
15989 | EOF | |
15990 | ||
15991 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
f6bcfd97 | 15992 | GUIDIST="$GUIDIST INTL_DIST" |
10f2d63a VZ |
15993 | fi |
15994 | fi | |
15995 | ||
15996 | if test "$wxUSE_LOG" = "yes"; then | |
698dcdb6 | 15997 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15998 | #define wxUSE_LOG 1 |
15999 | EOF | |
16000 | ||
d73be714 VZ |
16001 | |
16002 | if test "$wxUSE_LOGGUI" = "yes"; then | |
16003 | cat >> confdefs.h <<\EOF | |
16004 | #define wxUSE_LOGGUI 1 | |
16005 | EOF | |
16006 | ||
16007 | fi | |
16008 | ||
16009 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
16010 | cat >> confdefs.h <<\EOF | |
16011 | #define wxUSE_LOGWINDOW 1 | |
16012 | EOF | |
16013 | ||
16014 | fi | |
10f2d63a VZ |
16015 | fi |
16016 | ||
16017 | if test "$wxUSE_LONGLONG" = "yes"; then | |
698dcdb6 | 16018 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16019 | #define wxUSE_LONGLONG 1 |
16020 | EOF | |
16021 | ||
16022 | fi | |
16023 | ||
e8f65ba6 | 16024 | if test "$wxUSE_GEOMETRY" = "yes"; then |
698dcdb6 | 16025 | cat >> confdefs.h <<\EOF |
e8f65ba6 RR |
16026 | #define wxUSE_GEOMETRY 1 |
16027 | EOF | |
16028 | ||
16029 | fi | |
16030 | ||
10f2d63a | 16031 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
698dcdb6 | 16032 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16033 | #define wxUSE_DIALUP_MANAGER 1 |
16034 | EOF | |
16035 | ||
70f7a477 | 16036 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" |
10f2d63a VZ |
16037 | fi |
16038 | ||
16039 | if test "$wxUSE_STREAMS" = "yes" ; then | |
698dcdb6 | 16040 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16041 | #define wxUSE_STREAMS 1 |
16042 | EOF | |
16043 | ||
16044 | fi | |
16045 | ||
1e487827 | 16046 | |
1e6feb95 | 16047 | if test "$wxUSE_DATETIME" = "yes"; then |
698dcdb6 | 16048 | for ac_func in strptime |
83307f33 | 16049 | do |
698dcdb6 | 16050 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d08b457b | 16051 | echo "configure:16052: checking for $ac_func" >&5 |
698dcdb6 VZ |
16052 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16053 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16054 | else | |
16055 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 16056 | #line 16057 "configure" |
83307f33 VZ |
16057 | #include "confdefs.h" |
16058 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16059 | which can conflict with char $ac_func(); below. */ |
83307f33 VZ |
16060 | #include <assert.h> |
16061 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16062 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16063 | builtin and then its argument prototype would still apply. */ |
16064 | char $ac_func(); | |
16065 | ||
16066 | int main() { | |
83307f33 VZ |
16067 | |
16068 | /* The GNU C library defines this for functions which it implements | |
16069 | to always fail with ENOSYS. Some functions are actually named | |
16070 | something starting with __ and the normal name is an alias. */ | |
16071 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16072 | choke me | |
16073 | #else | |
698dcdb6 | 16074 | $ac_func(); |
83307f33 VZ |
16075 | #endif |
16076 | ||
698dcdb6 | 16077 | ; return 0; } |
83307f33 | 16078 | EOF |
d08b457b | 16079 | if { (eval echo configure:16080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16080 | rm -rf conftest* |
16081 | eval "ac_cv_func_$ac_func=yes" | |
16082 | else | |
16083 | echo "configure: failed program was:" >&5 | |
16084 | cat conftest.$ac_ext >&5 | |
16085 | rm -rf conftest* | |
16086 | eval "ac_cv_func_$ac_func=no" | |
16087 | fi | |
16088 | rm -f conftest* | |
16089 | fi | |
83307f33 | 16090 | |
698dcdb6 VZ |
16091 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16092 | echo "$ac_t""yes" 1>&6 | |
16093 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16094 | cat >> confdefs.h <<EOF | |
16095 | #define $ac_tr_func 1 | |
16096 | EOF | |
16097 | ||
16098 | else | |
16099 | echo "$ac_t""no" 1>&6 | |
83307f33 VZ |
16100 | fi |
16101 | done | |
16102 | ||
1e487827 | 16103 | |
698dcdb6 | 16104 | echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6 |
d08b457b | 16105 | echo "configure:16106: checking for timezone variable in <time.h>" >&5 |
698dcdb6 VZ |
16106 | if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then |
16107 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16108 | else | |
16109 | ||
16110 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 16111 | #line 16112 "configure" |
360d6699 VZ |
16112 | #include "confdefs.h" |
16113 | ||
b4085ce6 | 16114 | #include <time.h> |
698dcdb6 VZ |
16115 | |
16116 | int main() { | |
360d6699 VZ |
16117 | |
16118 | int tz; | |
4f11a343 | 16119 | tz = timezone; |
698dcdb6 VZ |
16120 | |
16121 | ; return 0; } | |
16122 | EOF | |
d08b457b | 16123 | if { (eval echo configure:16124: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
16124 | rm -rf conftest* |
16125 | ||
4f11a343 | 16126 | wx_cv_var_timezone=timezone |
698dcdb6 | 16127 | |
360d6699 | 16128 | else |
698dcdb6 VZ |
16129 | echo "configure: failed program was:" >&5 |
16130 | cat conftest.$ac_ext >&5 | |
16131 | rm -rf conftest* | |
16132 | ||
16133 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 16134 | #line 16135 "configure" |
360d6699 VZ |
16135 | #include "confdefs.h" |
16136 | ||
b4085ce6 | 16137 | #include <time.h> |
698dcdb6 VZ |
16138 | |
16139 | int main() { | |
360d6699 VZ |
16140 | |
16141 | int tz; | |
16142 | tz = _timezone; | |
698dcdb6 VZ |
16143 | |
16144 | ; return 0; } | |
16145 | EOF | |
d08b457b | 16146 | if { (eval echo configure:16147: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
16147 | rm -rf conftest* |
16148 | ||
360d6699 | 16149 | wx_cv_var_timezone=_timezone |
698dcdb6 | 16150 | |
5357c8e8 | 16151 | else |
698dcdb6 VZ |
16152 | echo "configure: failed program was:" >&5 |
16153 | cat conftest.$ac_ext >&5 | |
16154 | rm -rf conftest* | |
16155 | ||
16156 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 16157 | #line 16158 "configure" |
5357c8e8 VZ |
16158 | #include "confdefs.h" |
16159 | ||
b4085ce6 | 16160 | #include <time.h> |
698dcdb6 VZ |
16161 | |
16162 | int main() { | |
5357c8e8 VZ |
16163 | |
16164 | int tz; | |
4f11a343 | 16165 | tz = __timezone; |
698dcdb6 VZ |
16166 | |
16167 | ; return 0; } | |
16168 | EOF | |
d08b457b | 16169 | if { (eval echo configure:16170: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
16170 | rm -rf conftest* |
16171 | ||
4f11a343 | 16172 | wx_cv_var_timezone=__timezone |
698dcdb6 | 16173 | |
360d6699 | 16174 | else |
698dcdb6 VZ |
16175 | echo "configure: failed program was:" >&5 |
16176 | cat conftest.$ac_ext >&5 | |
16177 | rm -rf conftest* | |
16178 | { echo "configure: error: no timezone variable" 1>&2; exit 1; } | |
16179 | ||
360d6699 | 16180 | fi |
698dcdb6 VZ |
16181 | rm -f conftest* |
16182 | ||
16183 | ||
360d6699 | 16184 | fi |
698dcdb6 VZ |
16185 | rm -f conftest* |
16186 | ||
16187 | ||
6232543b | 16188 | fi |
698dcdb6 VZ |
16189 | rm -f conftest* |
16190 | ||
16191 | ||
1e487827 | 16192 | fi |
703e0a69 | 16193 | |
698dcdb6 VZ |
16194 | echo "$ac_t""$wx_cv_var_timezone" 1>&6 |
16195 | ||
16196 | cat >> confdefs.h <<EOF | |
360d6699 VZ |
16197 | #define WX_TIMEZONE $wx_cv_var_timezone |
16198 | EOF | |
16199 | ||
698dcdb6 VZ |
16200 | |
16201 | for ac_func in localtime | |
afc31813 | 16202 | do |
698dcdb6 | 16203 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d08b457b | 16204 | echo "configure:16205: checking for $ac_func" >&5 |
698dcdb6 VZ |
16205 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16206 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16207 | else | |
16208 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 16209 | #line 16210 "configure" |
10f2d63a | 16210 | #include "confdefs.h" |
afc31813 | 16211 | /* System header to define __stub macros and hopefully few prototypes, |
698dcdb6 | 16212 | which can conflict with char $ac_func(); below. */ |
afc31813 VZ |
16213 | #include <assert.h> |
16214 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16215 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16216 | builtin and then its argument prototype would still apply. */ |
16217 | char $ac_func(); | |
16218 | ||
16219 | int main() { | |
afc31813 VZ |
16220 | |
16221 | /* The GNU C library defines this for functions which it implements | |
16222 | to always fail with ENOSYS. Some functions are actually named | |
16223 | something starting with __ and the normal name is an alias. */ | |
16224 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16225 | choke me | |
16226 | #else | |
698dcdb6 | 16227 | $ac_func(); |
afc31813 VZ |
16228 | #endif |
16229 | ||
698dcdb6 | 16230 | ; return 0; } |
10f2d63a | 16231 | EOF |
d08b457b | 16232 | if { (eval echo configure:16233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16233 | rm -rf conftest* |
16234 | eval "ac_cv_func_$ac_func=yes" | |
16235 | else | |
16236 | echo "configure: failed program was:" >&5 | |
16237 | cat conftest.$ac_ext >&5 | |
16238 | rm -rf conftest* | |
16239 | eval "ac_cv_func_$ac_func=no" | |
16240 | fi | |
16241 | rm -f conftest* | |
16242 | fi | |
afc31813 | 16243 | |
698dcdb6 VZ |
16244 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16245 | echo "$ac_t""yes" 1>&6 | |
16246 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16247 | cat >> confdefs.h <<EOF | |
16248 | #define $ac_tr_func 1 | |
16249 | EOF | |
16250 | ||
16251 | else | |
16252 | echo "$ac_t""no" 1>&6 | |
afc31813 VZ |
16253 | fi |
16254 | done | |
16255 | ||
1e487827 | 16256 | |
698dcdb6 VZ |
16257 | if test "$ac_cv_func_localtime" = "yes"; then |
16258 | echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 | |
d08b457b | 16259 | echo "configure:16260: checking for tm_gmtoff in struct tm" >&5 |
698dcdb6 VZ |
16260 | if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then |
16261 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16262 | else | |
16263 | ||
16264 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 16265 | #line 16266 "configure" |
0470b1e6 VZ |
16266 | #include "confdefs.h" |
16267 | ||
b4085ce6 | 16268 | #include <time.h> |
698dcdb6 VZ |
16269 | |
16270 | int main() { | |
0470b1e6 VZ |
16271 | |
16272 | struct tm tm; | |
16273 | tm.tm_gmtoff++; | |
698dcdb6 VZ |
16274 | |
16275 | ; return 0; } | |
16276 | EOF | |
d08b457b | 16277 | if { (eval echo configure:16278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
16278 | rm -rf conftest* |
16279 | ||
f03a98d8 | 16280 | wx_cv_struct_tm_has_gmtoff=yes |
698dcdb6 | 16281 | |
0470b1e6 | 16282 | else |
698dcdb6 VZ |
16283 | echo "configure: failed program was:" >&5 |
16284 | cat conftest.$ac_ext >&5 | |
16285 | rm -rf conftest* | |
16286 | wx_cv_struct_tm_has_gmtoff=no | |
16287 | ||
0470b1e6 | 16288 | fi |
698dcdb6 VZ |
16289 | rm -f conftest* |
16290 | ||
1e487827 | 16291 | fi |
698dcdb6 VZ |
16292 | |
16293 | echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6 | |
6232543b VS |
16294 | fi |
16295 | ||
16296 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
698dcdb6 | 16297 | cat >> confdefs.h <<\EOF |
6232543b VS |
16298 | #define WX_GMTOFF_IN_TM 1 |
16299 | EOF | |
0470b1e6 | 16300 | |
3fcdd07b VZ |
16301 | fi |
16302 | ||
698dcdb6 | 16303 | for ac_func in gettimeofday ftime |
3fcdd07b | 16304 | do |
698dcdb6 | 16305 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d08b457b | 16306 | echo "configure:16307: checking for $ac_func" >&5 |
698dcdb6 VZ |
16307 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16308 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16309 | else | |
16310 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 16311 | #line 16312 "configure" |
3fcdd07b VZ |
16312 | #include "confdefs.h" |
16313 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16314 | which can conflict with char $ac_func(); below. */ |
3fcdd07b VZ |
16315 | #include <assert.h> |
16316 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16317 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16318 | builtin and then its argument prototype would still apply. */ |
16319 | char $ac_func(); | |
16320 | ||
16321 | int main() { | |
3fcdd07b VZ |
16322 | |
16323 | /* The GNU C library defines this for functions which it implements | |
16324 | to always fail with ENOSYS. Some functions are actually named | |
16325 | something starting with __ and the normal name is an alias. */ | |
16326 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16327 | choke me | |
16328 | #else | |
698dcdb6 | 16329 | $ac_func(); |
3fcdd07b VZ |
16330 | #endif |
16331 | ||
698dcdb6 VZ |
16332 | ; return 0; } |
16333 | EOF | |
d08b457b | 16334 | if { (eval echo configure:16335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16335 | rm -rf conftest* |
16336 | eval "ac_cv_func_$ac_func=yes" | |
16337 | else | |
16338 | echo "configure: failed program was:" >&5 | |
16339 | cat conftest.$ac_ext >&5 | |
16340 | rm -rf conftest* | |
16341 | eval "ac_cv_func_$ac_func=no" | |
16342 | fi | |
16343 | rm -f conftest* | |
16344 | fi | |
16345 | ||
16346 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16347 | echo "$ac_t""yes" 1>&6 | |
16348 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16349 | cat >> confdefs.h <<EOF | |
16350 | #define $ac_tr_func 1 | |
3fcdd07b VZ |
16351 | EOF |
16352 | break | |
698dcdb6 VZ |
16353 | else |
16354 | echo "$ac_t""no" 1>&6 | |
3fcdd07b VZ |
16355 | fi |
16356 | done | |
16357 | ||
afc31813 | 16358 | |
698dcdb6 VZ |
16359 | if test "$ac_cv_func_gettimeofday" = "yes"; then |
16360 | echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6 | |
d08b457b | 16361 | echo "configure:16362: checking whether gettimeofday takes two arguments" >&5 |
698dcdb6 VZ |
16362 | if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then |
16363 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16364 | else | |
16365 | ||
16366 | ||
16367 | ac_ext=C | |
16368 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 16369 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
16370 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16371 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16372 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 16373 | |
698dcdb6 VZ |
16374 | |
16375 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 16376 | #line 16377 "configure" |
10f2d63a | 16377 | #include "confdefs.h" |
afc31813 VZ |
16378 | |
16379 | #include <sys/time.h> | |
16380 | #include <unistd.h> | |
698dcdb6 VZ |
16381 | |
16382 | int main() { | |
afc31813 VZ |
16383 | |
16384 | struct timeval tv; | |
776862b4 | 16385 | gettimeofday(&tv, NULL); |
698dcdb6 VZ |
16386 | |
16387 | ; return 0; } | |
16388 | EOF | |
d08b457b | 16389 | if { (eval echo configure:16390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 16390 | rm -rf conftest* |
afc31813 | 16391 | wx_cv_func_gettimeofday_has_2_args=yes |
10f2d63a | 16392 | else |
698dcdb6 VZ |
16393 | echo "configure: failed program was:" >&5 |
16394 | cat conftest.$ac_ext >&5 | |
16395 | rm -rf conftest* | |
16396 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 16397 | #line 16398 "configure" |
10f2d63a | 16398 | #include "confdefs.h" |
afc31813 VZ |
16399 | |
16400 | #include <sys/time.h> | |
16401 | #include <unistd.h> | |
698dcdb6 VZ |
16402 | |
16403 | int main() { | |
afc31813 VZ |
16404 | |
16405 | struct timeval tv; | |
16406 | gettimeofday(&tv); | |
698dcdb6 VZ |
16407 | |
16408 | ; return 0; } | |
16409 | EOF | |
d08b457b | 16410 | if { (eval echo configure:16411: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 16411 | rm -rf conftest* |
afc31813 | 16412 | wx_cv_func_gettimeofday_has_2_args=no |
10f2d63a | 16413 | else |
698dcdb6 VZ |
16414 | echo "configure: failed program was:" >&5 |
16415 | cat conftest.$ac_ext >&5 | |
16416 | rm -rf conftest* | |
776862b4 VZ |
16417 | |
16418 | echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2 | |
16419 | wx_cv_func_gettimeofday_has_2_args=unknown | |
16420 | ||
698dcdb6 | 16421 | |
10f2d63a | 16422 | fi |
698dcdb6 VZ |
16423 | rm -f conftest* |
16424 | ||
10f2d63a | 16425 | fi |
698dcdb6 | 16426 | rm -f conftest* |
afc31813 | 16427 | ac_ext=c |
698dcdb6 | 16428 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 16429 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
16430 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16431 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16432 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a | 16433 | |
698dcdb6 | 16434 | |
afc31813 | 16435 | fi |
698dcdb6 VZ |
16436 | |
16437 | echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6 | |
c63c7106 | 16438 | |
afc31813 | 16439 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then |
698dcdb6 | 16440 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
16441 | #define WX_GETTIMEOFDAY_NO_TZ 1 |
16442 | EOF | |
16443 | ||
16444 | fi | |
16445 | fi | |
16446 | ||
698dcdb6 | 16447 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
16448 | #define wxUSE_TIMEDATE 1 |
16449 | EOF | |
16450 | ||
16451 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
16452 | fi | |
16453 | ||
698dcdb6 | 16454 | |
b089607b VZ |
16455 | if test "$TOOLKIT" != "MSW"; then |
16456 | ||
3a922bb4 RL |
16457 | if test "$wxUSE_SOCKETS" = "yes"; then |
16458 | echo $ac_n "checking for socket""... $ac_c" 1>&6 | |
d08b457b | 16459 | echo "configure:16460: checking for socket" >&5 |
698dcdb6 VZ |
16460 | if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
16461 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 16462 | else |
698dcdb6 | 16463 | cat > conftest.$ac_ext <<EOF |
d08b457b | 16464 | #line 16465 "configure" |
c63c7106 VZ |
16465 | #include "confdefs.h" |
16466 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16467 | which can conflict with char socket(); below. */ |
c63c7106 VZ |
16468 | #include <assert.h> |
16469 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16470 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16471 | builtin and then its argument prototype would still apply. */ |
16472 | char socket(); | |
16473 | ||
16474 | int main() { | |
c63c7106 VZ |
16475 | |
16476 | /* The GNU C library defines this for functions which it implements | |
16477 | to always fail with ENOSYS. Some functions are actually named | |
16478 | something starting with __ and the normal name is an alias. */ | |
16479 | #if defined (__stub_socket) || defined (__stub___socket) | |
16480 | choke me | |
16481 | #else | |
698dcdb6 | 16482 | socket(); |
c63c7106 VZ |
16483 | #endif |
16484 | ||
698dcdb6 VZ |
16485 | ; return 0; } |
16486 | EOF | |
d08b457b | 16487 | if { (eval echo configure:16488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16488 | rm -rf conftest* |
16489 | eval "ac_cv_func_socket=yes" | |
16490 | else | |
16491 | echo "configure: failed program was:" >&5 | |
16492 | cat conftest.$ac_ext >&5 | |
16493 | rm -rf conftest* | |
16494 | eval "ac_cv_func_socket=no" | |
16495 | fi | |
16496 | rm -f conftest* | |
16497 | fi | |
16498 | ||
16499 | if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
16500 | echo "$ac_t""yes" 1>&6 | |
c63c7106 VZ |
16501 | : |
16502 | else | |
698dcdb6 VZ |
16503 | echo "$ac_t""no" 1>&6 |
16504 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | |
d08b457b | 16505 | echo "configure:16506: checking for socket in -lsocket" >&5 |
698dcdb6 VZ |
16506 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
16507 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16508 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 16509 | else |
698dcdb6 | 16510 | ac_save_LIBS="$LIBS" |
c63c7106 | 16511 | LIBS="-lsocket $LIBS" |
698dcdb6 | 16512 | cat > conftest.$ac_ext <<EOF |
d08b457b | 16513 | #line 16514 "configure" |
c63c7106 VZ |
16514 | #include "confdefs.h" |
16515 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16516 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16517 | builtin and then its argument prototype would still apply. */ |
16518 | char socket(); | |
16519 | ||
16520 | int main() { | |
16521 | socket() | |
16522 | ; return 0; } | |
16523 | EOF | |
d08b457b | 16524 | if { (eval echo configure:16525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16525 | rm -rf conftest* |
16526 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16527 | else | |
16528 | echo "configure: failed program was:" >&5 | |
16529 | cat conftest.$ac_ext >&5 | |
16530 | rm -rf conftest* | |
16531 | eval "ac_cv_lib_$ac_lib_var=no" | |
16532 | fi | |
16533 | rm -f conftest* | |
16534 | LIBS="$ac_save_LIBS" | |
16535 | ||
16536 | fi | |
16537 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16538 | echo "$ac_t""yes" 1>&6 | |
c63c7106 | 16539 | INET_LINK="$INET_LINK -lsocket" |
c63c7106 | 16540 | else |
698dcdb6 | 16541 | echo "$ac_t""no" 1>&6 |
afc31813 | 16542 | |
3a922bb4 RL |
16543 | echo "configure: warning: socket library not found - sockets will be disabled" 1>&2 |
16544 | wxUSE_SOCKETS=no | |
16545 | ||
698dcdb6 | 16546 | |
6232543b | 16547 | fi |
b089607b | 16548 | |
3a922bb4 | 16549 | |
1e487827 | 16550 | fi |
afc31813 | 16551 | |
3a922bb4 | 16552 | fi |
51a9faba | 16553 | |
3a922bb4 RL |
16554 | |
16555 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
16556 | echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6 | |
d08b457b | 16557 | echo "configure:16558: checking what is the type of the third argument of getsockname" >&5 |
698dcdb6 VZ |
16558 | if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then |
16559 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16560 | else | |
16561 | ||
3a922bb4 RL |
16562 | |
16563 | ac_ext=C | |
698dcdb6 | 16564 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
1e487827 | 16565 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
16566 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16567 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16568 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 16569 | |
698dcdb6 | 16570 | |
3a922bb4 | 16571 | cat > conftest.$ac_ext <<EOF |
d08b457b | 16572 | #line 16573 "configure" |
afc31813 | 16573 | #include "confdefs.h" |
51a9faba | 16574 | |
3a922bb4 RL |
16575 | #include <sys/types.h> |
16576 | #include <sys/socket.h> | |
16577 | ||
698dcdb6 | 16578 | int main() { |
51a9faba | 16579 | |
3a922bb4 RL |
16580 | socklen_t len; |
16581 | getsockname(0, 0, &len); | |
16582 | ||
698dcdb6 VZ |
16583 | ; return 0; } |
16584 | EOF | |
d08b457b | 16585 | if { (eval echo configure:16586: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 16586 | rm -rf conftest* |
51a9faba | 16587 | wx_cv_type_getsockname3=socklen_t |
afc31813 | 16588 | else |
698dcdb6 VZ |
16589 | echo "configure: failed program was:" >&5 |
16590 | cat conftest.$ac_ext >&5 | |
16591 | rm -rf conftest* | |
16592 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 16593 | #line 16594 "configure" |
afc31813 | 16594 | #include "confdefs.h" |
51a9faba | 16595 | |
3a922bb4 RL |
16596 | #include <sys/types.h> |
16597 | #include <sys/socket.h> | |
16598 | ||
698dcdb6 | 16599 | int main() { |
51a9faba | 16600 | |
3a922bb4 RL |
16601 | size_t len; |
16602 | getsockname(0, 0, &len); | |
16603 | ||
698dcdb6 VZ |
16604 | ; return 0; } |
16605 | EOF | |
d08b457b | 16606 | if { (eval echo configure:16607: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 16607 | rm -rf conftest* |
51a9faba | 16608 | wx_cv_type_getsockname3=size_t |
afc31813 | 16609 | else |
698dcdb6 VZ |
16610 | echo "configure: failed program was:" >&5 |
16611 | cat conftest.$ac_ext >&5 | |
16612 | rm -rf conftest* | |
16613 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 16614 | #line 16615 "configure" |
afc31813 | 16615 | #include "confdefs.h" |
51a9faba | 16616 | |
3a922bb4 RL |
16617 | #include <sys/types.h> |
16618 | #include <sys/socket.h> | |
16619 | ||
698dcdb6 | 16620 | int main() { |
51a9faba | 16621 | |
3a922bb4 RL |
16622 | int len; |
16623 | getsockname(0, 0, &len); | |
16624 | ||
698dcdb6 VZ |
16625 | ; return 0; } |
16626 | EOF | |
d08b457b | 16627 | if { (eval echo configure:16628: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 16628 | rm -rf conftest* |
51a9faba | 16629 | wx_cv_type_getsockname3=int |
afc31813 | 16630 | else |
698dcdb6 VZ |
16631 | echo "configure: failed program was:" >&5 |
16632 | cat conftest.$ac_ext >&5 | |
16633 | rm -rf conftest* | |
16634 | wx_cv_type_getsockname3=unknown | |
3a922bb4 | 16635 | |
afc31813 | 16636 | fi |
698dcdb6 | 16637 | rm -f conftest* |
3a922bb4 | 16638 | |
afc31813 | 16639 | fi |
698dcdb6 | 16640 | rm -f conftest* |
3a922bb4 | 16641 | |
afc31813 | 16642 | fi |
698dcdb6 | 16643 | rm -f conftest* |
51a9faba | 16644 | |
3a922bb4 | 16645 | ac_ext=c |
698dcdb6 | 16646 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
afc31813 | 16647 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
16648 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16649 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16650 | cross_compiling=$ac_cv_prog_cc_cross | |
afc31813 | 16651 | |
3a922bb4 | 16652 | |
51a9faba | 16653 | fi |
698dcdb6 VZ |
16654 | |
16655 | echo "$ac_t""$wx_cv_type_getsockname3" 1>&6 | |
51a9faba | 16656 | |
3a922bb4 RL |
16657 | if test "$wx_cv_type_getsockname3" = "unknown"; then |
16658 | wxUSE_SOCKETS=no | |
16659 | echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2 | |
16660 | else | |
16661 | cat >> confdefs.h <<EOF | |
51a9faba VZ |
16662 | #define SOCKLEN_T $wx_cv_type_getsockname3 |
16663 | EOF | |
16664 | ||
3a922bb4 | 16665 | fi |
51a9faba VZ |
16666 | fi |
16667 | fi | |
afc31813 | 16668 | |
51a9faba | 16669 | if test "$wxUSE_SOCKETS" = "yes" ; then |
698dcdb6 | 16670 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
16671 | #define wxUSE_SOCKETS 1 |
16672 | EOF | |
16673 | ||
70f7a477 | 16674 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" |
afc31813 VZ |
16675 | fi |
16676 | ||
698dcdb6 | 16677 | |
dc3d889d VZ |
16678 | if test "$wxUSE_GUI" = "yes"; then |
16679 | ||
3a922bb4 RL |
16680 | if test "$TOOLKIT" != "MSW"; then |
16681 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
16682 | for ac_hdr in linux/joystick.h | |
10f2d63a | 16683 | do |
698dcdb6 VZ |
16684 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
16685 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d08b457b | 16686 | echo "configure:16687: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
16687 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
16688 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16689 | else | |
16690 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 16691 | #line 16692 "configure" |
10f2d63a | 16692 | #include "confdefs.h" |
698dcdb6 VZ |
16693 | #include <$ac_hdr> |
16694 | EOF | |
16695 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d08b457b | 16696 | { (eval echo configure:16697: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
16697 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
16698 | if test -z "$ac_err"; then | |
16699 | rm -rf conftest* | |
16700 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 16701 | else |
698dcdb6 VZ |
16702 | echo "$ac_err" >&5 |
16703 | echo "configure: failed program was:" >&5 | |
10f2d63a | 16704 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
16705 | rm -rf conftest* |
16706 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 16707 | fi |
698dcdb6 | 16708 | rm -f conftest* |
10f2d63a | 16709 | fi |
698dcdb6 VZ |
16710 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
16711 | echo "$ac_t""yes" 1>&6 | |
16712 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
16713 | cat >> confdefs.h <<EOF | |
16714 | #define $ac_tr_hdr 1 | |
10f2d63a | 16715 | EOF |
698dcdb6 VZ |
16716 | |
16717 | else | |
16718 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
16719 | fi |
16720 | done | |
16721 | ||
3a922bb4 RL |
16722 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then |
16723 | wxUSE_JOYSTICK=no | |
16724 | echo "configure: warning: Joystick not supported by this system" 1>&2 | |
16725 | fi | |
16726 | fi | |
16727 | fi | |
b089607b | 16728 | |
3a922bb4 RL |
16729 | if test "$wxUSE_JOYSTICK" = "yes"; then |
16730 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
16731 | #define wxUSE_JOYSTICK 1 |
16732 | EOF | |
16733 | ||
3a922bb4 RL |
16734 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
16735 | fi | |
dc3d889d VZ |
16736 | fi |
16737 | ||
698dcdb6 | 16738 | |
b089607b VZ |
16739 | if test "$TOOLKIT" != "MSW"; then |
16740 | ||
3a922bb4 RL |
16741 | HAVE_DL_FUNCS=0 |
16742 | HAVE_SHL_FUNCS=0 | |
16743 | if test "$wxUSE_DYNLIB_CLASS" = "yes"; then | |
16744 | if test "$USE_DARWIN" = 1; then | |
16745 | HAVE_DL_FUNCS=1 | |
16746 | else | |
16747 | for ac_func in dlopen | |
10f2d63a | 16748 | do |
698dcdb6 | 16749 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d08b457b | 16750 | echo "configure:16751: checking for $ac_func" >&5 |
698dcdb6 VZ |
16751 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16752 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16753 | else | |
16754 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 16755 | #line 16756 "configure" |
10f2d63a VZ |
16756 | #include "confdefs.h" |
16757 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16758 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
16759 | #include <assert.h> |
16760 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16761 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16762 | builtin and then its argument prototype would still apply. */ |
16763 | char $ac_func(); | |
16764 | ||
16765 | int main() { | |
10f2d63a VZ |
16766 | |
16767 | /* The GNU C library defines this for functions which it implements | |
16768 | to always fail with ENOSYS. Some functions are actually named | |
16769 | something starting with __ and the normal name is an alias. */ | |
16770 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16771 | choke me | |
16772 | #else | |
698dcdb6 | 16773 | $ac_func(); |
10f2d63a VZ |
16774 | #endif |
16775 | ||
698dcdb6 VZ |
16776 | ; return 0; } |
16777 | EOF | |
d08b457b | 16778 | if { (eval echo configure:16779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16779 | rm -rf conftest* |
16780 | eval "ac_cv_func_$ac_func=yes" | |
16781 | else | |
16782 | echo "configure: failed program was:" >&5 | |
16783 | cat conftest.$ac_ext >&5 | |
16784 | rm -rf conftest* | |
16785 | eval "ac_cv_func_$ac_func=no" | |
16786 | fi | |
16787 | rm -f conftest* | |
16788 | fi | |
16789 | ||
16790 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16791 | echo "$ac_t""yes" 1>&6 | |
16792 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16793 | cat >> confdefs.h <<EOF | |
16794 | #define $ac_tr_func 1 | |
16795 | EOF | |
16796 | ||
3a922bb4 | 16797 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16798 | #define HAVE_DLOPEN 1 |
16799 | EOF | |
16800 | ||
3a922bb4 RL |
16801 | HAVE_DL_FUNCS=1 |
16802 | ||
10f2d63a | 16803 | else |
698dcdb6 VZ |
16804 | echo "$ac_t""no" 1>&6 |
16805 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
d08b457b | 16806 | echo "configure:16807: checking for dlopen in -ldl" >&5 |
698dcdb6 VZ |
16807 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
16808 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16809 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 16810 | else |
698dcdb6 | 16811 | ac_save_LIBS="$LIBS" |
10f2d63a | 16812 | LIBS="-ldl $LIBS" |
698dcdb6 | 16813 | cat > conftest.$ac_ext <<EOF |
d08b457b | 16814 | #line 16815 "configure" |
10f2d63a VZ |
16815 | #include "confdefs.h" |
16816 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16817 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16818 | builtin and then its argument prototype would still apply. */ |
16819 | char dlopen(); | |
16820 | ||
16821 | int main() { | |
16822 | dlopen() | |
16823 | ; return 0; } | |
16824 | EOF | |
d08b457b | 16825 | if { (eval echo configure:16826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16826 | rm -rf conftest* |
16827 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16828 | else | |
16829 | echo "configure: failed program was:" >&5 | |
16830 | cat conftest.$ac_ext >&5 | |
16831 | rm -rf conftest* | |
16832 | eval "ac_cv_lib_$ac_lib_var=no" | |
16833 | fi | |
16834 | rm -f conftest* | |
16835 | LIBS="$ac_save_LIBS" | |
16836 | ||
16837 | fi | |
16838 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16839 | echo "$ac_t""yes" 1>&6 | |
16840 | ||
3a922bb4 | 16841 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16842 | #define HAVE_DLOPEN 1 |
16843 | EOF | |
16844 | ||
3a922bb4 RL |
16845 | HAVE_DL_FUNCS=1 |
16846 | LIBS="$LIBS -ldl" | |
16847 | ||
10f2d63a | 16848 | else |
698dcdb6 | 16849 | echo "$ac_t""no" 1>&6 |
10f2d63a | 16850 | |
3a922bb4 | 16851 | for ac_func in shl_load |
10f2d63a | 16852 | do |
698dcdb6 | 16853 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d08b457b | 16854 | echo "configure:16855: checking for $ac_func" >&5 |
698dcdb6 VZ |
16855 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16856 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16857 | else | |
16858 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 16859 | #line 16860 "configure" |
10f2d63a VZ |
16860 | #include "confdefs.h" |
16861 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16862 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
16863 | #include <assert.h> |
16864 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16865 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16866 | builtin and then its argument prototype would still apply. */ |
16867 | char $ac_func(); | |
16868 | ||
16869 | int main() { | |
10f2d63a VZ |
16870 | |
16871 | /* The GNU C library defines this for functions which it implements | |
16872 | to always fail with ENOSYS. Some functions are actually named | |
16873 | something starting with __ and the normal name is an alias. */ | |
16874 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16875 | choke me | |
16876 | #else | |
698dcdb6 | 16877 | $ac_func(); |
10f2d63a VZ |
16878 | #endif |
16879 | ||
698dcdb6 VZ |
16880 | ; return 0; } |
16881 | EOF | |
d08b457b | 16882 | if { (eval echo configure:16883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16883 | rm -rf conftest* |
16884 | eval "ac_cv_func_$ac_func=yes" | |
16885 | else | |
16886 | echo "configure: failed program was:" >&5 | |
16887 | cat conftest.$ac_ext >&5 | |
16888 | rm -rf conftest* | |
16889 | eval "ac_cv_func_$ac_func=no" | |
16890 | fi | |
16891 | rm -f conftest* | |
16892 | fi | |
16893 | ||
16894 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16895 | echo "$ac_t""yes" 1>&6 | |
16896 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16897 | cat >> confdefs.h <<EOF | |
16898 | #define $ac_tr_func 1 | |
16899 | EOF | |
16900 | ||
3a922bb4 | 16901 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16902 | #define HAVE_SHL_LOAD 1 |
16903 | EOF | |
16904 | ||
3a922bb4 RL |
16905 | HAVE_SHL_FUNCS=1 |
16906 | ||
10f2d63a | 16907 | else |
698dcdb6 VZ |
16908 | echo "$ac_t""no" 1>&6 |
16909 | echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6 | |
d08b457b | 16910 | echo "configure:16911: checking for dld in -lshl_load" >&5 |
698dcdb6 VZ |
16911 | ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'` |
16912 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16913 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 16914 | else |
698dcdb6 | 16915 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 16916 | LIBS="-lshl_load $LIBS" |
698dcdb6 | 16917 | cat > conftest.$ac_ext <<EOF |
d08b457b | 16918 | #line 16919 "configure" |
f6bcfd97 BP |
16919 | #include "confdefs.h" |
16920 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16921 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16922 | builtin and then its argument prototype would still apply. */ |
16923 | char dld(); | |
16924 | ||
16925 | int main() { | |
16926 | dld() | |
16927 | ; return 0; } | |
16928 | EOF | |
d08b457b | 16929 | if { (eval echo configure:16930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16930 | rm -rf conftest* |
16931 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16932 | else | |
16933 | echo "configure: failed program was:" >&5 | |
16934 | cat conftest.$ac_ext >&5 | |
16935 | rm -rf conftest* | |
16936 | eval "ac_cv_lib_$ac_lib_var=no" | |
16937 | fi | |
16938 | rm -f conftest* | |
16939 | LIBS="$ac_save_LIBS" | |
f6bcfd97 | 16940 | |
698dcdb6 VZ |
16941 | fi |
16942 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16943 | echo "$ac_t""yes" 1>&6 | |
16944 | ||
3a922bb4 RL |
16945 | HAVE_SHL_FUNCS=1 |
16946 | LIBS="$LIBS -ldld" | |
16947 | ||
698dcdb6 VZ |
16948 | else |
16949 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
16950 | fi |
16951 | ||
3a922bb4 | 16952 | |
10f2d63a VZ |
16953 | fi |
16954 | done | |
16955 | ||
3a922bb4 | 16956 | |
10f2d63a VZ |
16957 | fi |
16958 | ||
3a922bb4 | 16959 | |
10f2d63a VZ |
16960 | fi |
16961 | done | |
16962 | ||
1e487827 | 16963 | |
3a922bb4 RL |
16964 | if test "$HAVE_DL_FUNCS" = 1; then |
16965 | for ac_func in dlerror | |
f6bcfd97 | 16966 | do |
698dcdb6 | 16967 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d08b457b | 16968 | echo "configure:16969: checking for $ac_func" >&5 |
698dcdb6 VZ |
16969 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16970 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16971 | else | |
16972 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 16973 | #line 16974 "configure" |
f6bcfd97 BP |
16974 | #include "confdefs.h" |
16975 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16976 | which can conflict with char $ac_func(); below. */ |
f6bcfd97 BP |
16977 | #include <assert.h> |
16978 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16979 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16980 | builtin and then its argument prototype would still apply. */ |
16981 | char $ac_func(); | |
16982 | ||
16983 | int main() { | |
f6bcfd97 BP |
16984 | |
16985 | /* The GNU C library defines this for functions which it implements | |
16986 | to always fail with ENOSYS. Some functions are actually named | |
16987 | something starting with __ and the normal name is an alias. */ | |
16988 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16989 | choke me | |
16990 | #else | |
698dcdb6 | 16991 | $ac_func(); |
f6bcfd97 BP |
16992 | #endif |
16993 | ||
698dcdb6 VZ |
16994 | ; return 0; } |
16995 | EOF | |
d08b457b | 16996 | if { (eval echo configure:16997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16997 | rm -rf conftest* |
16998 | eval "ac_cv_func_$ac_func=yes" | |
16999 | else | |
17000 | echo "configure: failed program was:" >&5 | |
17001 | cat conftest.$ac_ext >&5 | |
17002 | rm -rf conftest* | |
17003 | eval "ac_cv_func_$ac_func=no" | |
17004 | fi | |
17005 | rm -f conftest* | |
17006 | fi | |
17007 | ||
17008 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17009 | echo "$ac_t""yes" 1>&6 | |
17010 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17011 | cat >> confdefs.h <<EOF | |
17012 | #define $ac_tr_func 1 | |
17013 | EOF | |
17014 | cat >> confdefs.h <<\EOF | |
f6bcfd97 BP |
17015 | #define HAVE_DLERROR 1 |
17016 | EOF | |
17017 | ||
17018 | else | |
698dcdb6 VZ |
17019 | echo "$ac_t""no" 1>&6 |
17020 | echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6 | |
d08b457b | 17021 | echo "configure:17022: checking for dlerror in -ldl" >&5 |
698dcdb6 VZ |
17022 | ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'` |
17023 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17024 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 17025 | else |
698dcdb6 | 17026 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 17027 | LIBS="-ldl $LIBS" |
698dcdb6 | 17028 | cat > conftest.$ac_ext <<EOF |
d08b457b | 17029 | #line 17030 "configure" |
f6bcfd97 BP |
17030 | #include "confdefs.h" |
17031 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17032 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
17033 | builtin and then its argument prototype would still apply. */ |
17034 | char dlerror(); | |
17035 | ||
17036 | int main() { | |
17037 | dlerror() | |
17038 | ; return 0; } | |
17039 | EOF | |
d08b457b | 17040 | if { (eval echo configure:17041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17041 | rm -rf conftest* |
17042 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17043 | else | |
17044 | echo "configure: failed program was:" >&5 | |
17045 | cat conftest.$ac_ext >&5 | |
17046 | rm -rf conftest* | |
17047 | eval "ac_cv_lib_$ac_lib_var=no" | |
17048 | fi | |
17049 | rm -f conftest* | |
17050 | LIBS="$ac_save_LIBS" | |
17051 | ||
17052 | fi | |
17053 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17054 | echo "$ac_t""yes" 1>&6 | |
17055 | cat >> confdefs.h <<\EOF | |
f6bcfd97 BP |
17056 | #define HAVE_DLERROR 1 |
17057 | EOF | |
17058 | ||
698dcdb6 VZ |
17059 | else |
17060 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
17061 | fi |
17062 | ||
17063 | fi | |
17064 | done | |
17065 | ||
3a922bb4 RL |
17066 | fi |
17067 | fi | |
f6bcfd97 | 17068 | |
3a922bb4 RL |
17069 | if test "$HAVE_DL_FUNCS" = 0; then |
17070 | if test "$HAVE_SHL_FUNCS" = 0; then | |
17071 | if test "$USE_UNIX" = 1; then | |
17072 | echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2 | |
17073 | wxUSE_DYNLIB_CLASS=no | |
17074 | else | |
17075 | echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2 | |
17076 | fi | |
17077 | fi | |
10f2d63a VZ |
17078 | fi |
17079 | fi | |
17080 | fi | |
17081 | ||
17082 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
698dcdb6 | 17083 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17084 | #define wxUSE_DYNLIB_CLASS 1 |
17085 | EOF | |
17086 | ||
b12915c1 VZ |
17087 | else |
17088 | wxUSE_ODBC=no | |
17089 | wxUSE_SERIAL=no | |
10f2d63a VZ |
17090 | fi |
17091 | ||
698dcdb6 | 17092 | |
1e6feb95 VZ |
17093 | if test "$wxUSE_FONTMAP" = "yes" ; then |
17094 | cat >> confdefs.h <<\EOF | |
17095 | #define wxUSE_FONTMAP 1 | |
17096 | EOF | |
17097 | ||
17098 | fi | |
17099 | ||
10f2d63a | 17100 | if test "$wxUSE_UNICODE" = "yes" ; then |
698dcdb6 | 17101 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17102 | #define wxUSE_UNICODE 1 |
17103 | EOF | |
17104 | ||
17105 | fi | |
17106 | ||
10f2d63a | 17107 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then |
698dcdb6 | 17108 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17109 | #define wxUSE_EXPERIMENTAL_PRINTF 1 |
17110 | EOF | |
17111 | ||
17112 | fi | |
17113 | ||
698dcdb6 | 17114 | |
b12915c1 | 17115 | if test "$wxUSE_SERIAL" = "yes" ; then |
698dcdb6 | 17116 | cat >> confdefs.h <<\EOF |
b12915c1 VZ |
17117 | #define wxUSE_SERIAL 1 |
17118 | EOF | |
17119 | ||
17120 | fi | |
17121 | ||
698dcdb6 | 17122 | |
10f2d63a VZ |
17123 | IODBC_C_SRC="" |
17124 | if test "$wxUSE_ODBC" = "yes" ; then | |
698dcdb6 | 17125 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17126 | #define wxUSE_ODBC 1 |
17127 | EOF | |
17128 | ||
17129 | WXODBCFLAG="-D_IODBC_" | |
17130 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
10f2d63a VZ |
17131 | fi |
17132 | ||
698dcdb6 | 17133 | |
10f2d63a | 17134 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then |
698dcdb6 | 17135 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17136 | #define wxUSE_POSTSCRIPT 1 |
17137 | EOF | |
17138 | ||
17139 | fi | |
17140 | ||
698dcdb6 | 17141 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17142 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 |
17143 | EOF | |
17144 | ||
698dcdb6 VZ |
17145 | |
17146 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
17147 | #define wxUSE_NORMALIZED_PS_FONTS 1 |
17148 | EOF | |
17149 | ||
698dcdb6 VZ |
17150 | |
17151 | ||
10f2d63a | 17152 | if test "$wxUSE_CONSTRAINTS" = "yes"; then |
698dcdb6 | 17153 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17154 | #define wxUSE_CONSTRAINTS 1 |
17155 | EOF | |
17156 | ||
17157 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
17158 | fi | |
17159 | ||
17160 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
698dcdb6 | 17161 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17162 | #define wxUSE_MDI_ARCHITECTURE 1 |
17163 | EOF | |
17164 | ||
17165 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" | |
17166 | fi | |
17167 | ||
17168 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
698dcdb6 | 17169 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17170 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 |
17171 | EOF | |
17172 | ||
17173 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
17174 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
17175 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
17176 | fi | |
17177 | fi | |
17178 | ||
17179 | if test "$wxUSE_HELP" = "yes"; then | |
698dcdb6 | 17180 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17181 | #define wxUSE_HELP 1 |
17182 | EOF | |
17183 | ||
17184 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
3379ed37 | 17185 | |
3e44f09d | 17186 | if test "$USE_WIN32" = 1; then |
031d8228 | 17187 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then |
29fd3c0c VS |
17188 | ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'` |
17189 | echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6 | |
d08b457b | 17190 | echo "configure:17191: checking for htmlhelp.h" >&5 |
29fd3c0c VS |
17191 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
17192 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17193 | else | |
17194 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 17195 | #line 17196 "configure" |
29fd3c0c VS |
17196 | #include "confdefs.h" |
17197 | #include <htmlhelp.h> | |
17198 | EOF | |
17199 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d08b457b | 17200 | { (eval echo configure:17201: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
29fd3c0c VS |
17201 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
17202 | if test -z "$ac_err"; then | |
17203 | rm -rf conftest* | |
17204 | eval "ac_cv_header_$ac_safe=yes" | |
17205 | else | |
17206 | echo "$ac_err" >&5 | |
17207 | echo "configure: failed program was:" >&5 | |
17208 | cat conftest.$ac_ext >&5 | |
17209 | rm -rf conftest* | |
17210 | eval "ac_cv_header_$ac_safe=no" | |
17211 | fi | |
17212 | rm -f conftest* | |
17213 | fi | |
17214 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
17215 | echo "$ac_t""yes" 1>&6 | |
17216 | ||
17217 | cat >> confdefs.h <<\EOF | |
17218 | #define wxUSE_MS_HTML_HELP 1 | |
17219 | EOF | |
17220 | ||
17221 | ||
17222 | else | |
17223 | echo "$ac_t""no" 1>&6 | |
17224 | ||
2b9bdf71 | 17225 | echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h, disabled" 1>&2 |
29fd3c0c VS |
17226 | wxUSE_MS_HTML_HELP=no |
17227 | ||
17228 | fi | |
17229 | ||
3e44f09d | 17230 | fi |
3379ed37 | 17231 | fi |
031d8228 VS |
17232 | |
17233 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
17234 | if test "$wxUSE_HTML" = "yes"; then | |
17235 | cat >> confdefs.h <<\EOF | |
17236 | #define wxUSE_WXHTML_HELP 1 | |
17237 | EOF | |
17238 | ||
17239 | else | |
17240 | echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2 | |
17241 | wxUSE_WXHTML_HELP=no | |
17242 | fi | |
17243 | fi | |
10f2d63a VZ |
17244 | fi |
17245 | ||
17246 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
17247 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
698dcdb6 | 17248 | echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2 |
10f2d63a | 17249 | else |
698dcdb6 | 17250 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17251 | #define wxUSE_PRINTING_ARCHITECTURE 1 |
17252 | EOF | |
17253 | ||
17254 | fi | |
17255 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
17256 | fi | |
17257 | ||
17258 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
698dcdb6 | 17259 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17260 | #define wxUSE_PROLOGIO 1 |
17261 | EOF | |
17262 | ||
17263 | fi | |
17264 | ||
17265 | if test "$wxUSE_RESOURCES" = "yes" ; then | |
3379ed37 | 17266 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17267 | #define wxUSE_RESOURCES 1 |
17268 | EOF | |
17269 | ||
3379ed37 | 17270 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource" |
10f2d63a VZ |
17271 | fi |
17272 | ||
17273 | if test "$wxUSE_X_RESOURCES" = "yes"; then | |
698dcdb6 | 17274 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17275 | #define wxUSE_X_RESOURCES 1 |
17276 | EOF | |
17277 | ||
17278 | fi | |
17279 | ||
698dcdb6 | 17280 | |
3a922bb4 RL |
17281 | if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ |
17282 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
17283 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
2b9bdf71 | 17284 | for ac_hdr in ole2.h |
10f2d63a | 17285 | do |
698dcdb6 VZ |
17286 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
17287 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d08b457b | 17288 | echo "configure:17289: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
17289 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
17290 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17291 | else | |
17292 | cat > conftest.$ac_ext <<EOF | |
d08b457b | 17293 | #line 17294 "configure" |
10f2d63a | 17294 | #include "confdefs.h" |
698dcdb6 VZ |
17295 | #include <$ac_hdr> |
17296 | EOF | |
17297 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d08b457b | 17298 | { (eval echo configure:17299: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
17299 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
17300 | if test -z "$ac_err"; then | |
17301 | rm -rf conftest* | |
17302 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 17303 | else |
698dcdb6 VZ |
17304 | echo "$ac_err" >&5 |
17305 | echo "configure: failed program was:" >&5 | |
10f2d63a | 17306 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
17307 | rm -rf conftest* |
17308 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 17309 | fi |
698dcdb6 | 17310 | rm -f conftest* |
10f2d63a | 17311 | fi |
698dcdb6 VZ |
17312 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
17313 | echo "$ac_t""yes" 1>&6 | |
17314 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
17315 | cat >> confdefs.h <<EOF | |
17316 | #define $ac_tr_hdr 1 | |
10f2d63a | 17317 | EOF |
698dcdb6 VZ |
17318 | |
17319 | else | |
17320 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
17321 | fi |
17322 | done | |
17323 | ||
698dcdb6 | 17324 | |
2b9bdf71 VZ |
17325 | if test "$ac_cv_header_ole2_h" = "yes" ; then |
17326 | if test "$GCC" = yes ; then | |
17327 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" | |
2b9bdf71 VZ |
17328 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" |
17329 | LIBS="$LIBS -lrpcrt4 -loleaut32 -lole32 -luuid" | |
17330 | cat >> confdefs.h <<\EOF | |
4f11a343 VS |
17331 | #define wxUSE_OLE 1 |
17332 | EOF | |
17333 | ||
b64f0a5f | 17334 | |
2b9bdf71 VZ |
17335 | fi |
17336 | ||
17337 | cat >> confdefs.h <<\EOF | |
17338 | #define wxUSE_DATAOBJ 1 | |
17339 | EOF | |
17340 | ||
17341 | else | |
17342 | echo "configure: warning: Some features disabled because OLE headers not found" 1>&2 | |
17343 | ||
17344 | wxUSE_CLIPBOARD=no | |
17345 | wxUSE_DRAG_AND_DROP=no | |
17346 | wxUSE_DATAOBJ=no | |
17347 | fi | |
17348 | ||
17349 | if test "$wxUSE_METAFILE" = "yes"; then | |
17350 | cat >> confdefs.h <<\EOF | |
b64f0a5f RL |
17351 | #define wxUSE_METAFILE 1 |
17352 | EOF | |
17353 | ||
2b9bdf71 VZ |
17354 | |
17355 | cat >> confdefs.h <<\EOF | |
b64f0a5f RL |
17356 | #define wxUSE_ENH_METAFILE 1 |
17357 | EOF | |
17358 | ||
2b9bdf71 VZ |
17359 | fi |
17360 | fi | |
17361 | ||
17362 | if test "$wxUSE_IPC" = "yes"; then | |
17363 | if test "$wxUSE_SOCKETS" != "yes"; then | |
17364 | echo "configure: warning: wxWindows IPC classes require sockets" 1>&2 | |
17365 | fi | |
17366 | ||
17367 | cat >> confdefs.h <<\EOF | |
17368 | #define wxUSE_IPC 1 | |
17369 | EOF | |
17370 | ||
17371 | fi | |
17372 | ||
17373 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
17374 | cat >> confdefs.h <<\EOF | |
17375 | #define wxUSE_CLIPBOARD 1 | |
17376 | EOF | |
17377 | ||
673f4220 | 17378 | |
e33ef661 | 17379 | cat >> confdefs.h <<\EOF |
673f4220 VZ |
17380 | #define wxUSE_DATAOBJ 1 |
17381 | EOF | |
17382 | ||
2b9bdf71 VZ |
17383 | fi |
17384 | ||
17385 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
17386 | if test "$wxUSE_GTK" = 1; then | |
17387 | if test "$WXGTK12" != 1; then | |
17388 | echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2 | |
10f2d63a VZ |
17389 | wxUSE_DRAG_AND_DROP=no |
17390 | fi | |
17391 | fi | |
17392 | ||
2b9bdf71 VZ |
17393 | if test "$wxUSE_MOTIF" = 1; then |
17394 | echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2 | |
17395 | wxUSE_DRAG_AND_DROP=no | |
17396 | fi | |
17397 | ||
17398 | if test "$wxUSE_MAC" = 1; then | |
17399 | echo "configure: warning: Drag and drop is not yet supported under Mac OS X" 1>&2 | |
17400 | wxUSE_DRAG_AND_DROP=no | |
17401 | fi | |
17402 | ||
10f2d63a | 17403 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then |
698dcdb6 | 17404 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17405 | #define wxUSE_DRAG_AND_DROP 1 |
17406 | EOF | |
17407 | ||
17408 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
17409 | fi | |
17410 | ||
17411 | fi | |
17412 | ||
17413 | if test "$wxUSE_SPLINES" = "yes" ; then | |
698dcdb6 | 17414 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17415 | #define wxUSE_SPLINES 1 |
17416 | EOF | |
17417 | ||
17418 | fi | |
17419 | ||
698dcdb6 | 17420 | |
1e6feb95 VZ |
17421 | USES_CONTROLS=0 |
17422 | if test "$wxUSE_CONTROLS" = "yes"; then | |
17423 | USES_CONTROLS=1 | |
17424 | fi | |
17425 | ||
10f2d63a | 17426 | if test "$wxUSE_ACCEL" = "yes"; then |
698dcdb6 | 17427 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17428 | #define wxUSE_ACCEL 1 |
17429 | EOF | |
17430 | ||
1e6feb95 VZ |
17431 | USES_CONTROLS=1 |
17432 | fi | |
17433 | ||
17434 | if test "$wxUSE_BUTTON" = "yes"; then | |
17435 | cat >> confdefs.h <<\EOF | |
17436 | #define wxUSE_BUTTON 1 | |
17437 | EOF | |
17438 | ||
17439 | USES_CONTROLS=1 | |
17440 | fi | |
17441 | ||
17442 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
17443 | cat >> confdefs.h <<\EOF | |
17444 | #define wxUSE_BMPBUTTON 1 | |
17445 | EOF | |
17446 | ||
17447 | USES_CONTROLS=1 | |
17448 | fi | |
17449 | ||
17450 | if test "$wxUSE_CALCTRL" = "yes"; then | |
17451 | cat >> confdefs.h <<\EOF | |
17452 | #define wxUSE_CALENDARCTRL 1 | |
17453 | EOF | |
17454 | ||
17455 | USES_CONTROLS=1 | |
17456 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
10f2d63a VZ |
17457 | fi |
17458 | ||
17459 | if test "$wxUSE_CARET" = "yes"; then | |
698dcdb6 | 17460 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17461 | #define wxUSE_CARET 1 |
17462 | EOF | |
17463 | ||
1e6feb95 | 17464 | USES_CONTROLS=1 |
10f2d63a VZ |
17465 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" |
17466 | fi | |
17467 | ||
17468 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
698dcdb6 | 17469 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17470 | #define wxUSE_COMBOBOX 1 |
17471 | EOF | |
17472 | ||
1e6feb95 | 17473 | USES_CONTROLS=1 |
10f2d63a VZ |
17474 | fi |
17475 | ||
17476 | if test "$wxUSE_CHOICE" = "yes"; then | |
698dcdb6 | 17477 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17478 | #define wxUSE_CHOICE 1 |
17479 | EOF | |
17480 | ||
1e6feb95 | 17481 | USES_CONTROLS=1 |
10f2d63a VZ |
17482 | fi |
17483 | ||
17484 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
698dcdb6 | 17485 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17486 | #define wxUSE_CHECKBOX 1 |
17487 | EOF | |
17488 | ||
1e6feb95 | 17489 | USES_CONTROLS=1 |
10f2d63a VZ |
17490 | fi |
17491 | ||
17492 | if test "$wxUSE_CHECKLST" = "yes"; then | |
698dcdb6 | 17493 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17494 | #define wxUSE_CHECKLISTBOX 1 |
17495 | EOF | |
17496 | ||
1e6feb95 | 17497 | USES_CONTROLS=1 |
10f2d63a VZ |
17498 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" |
17499 | fi | |
17500 | ||
17501 | if test "$wxUSE_GAUGE" = "yes"; then | |
698dcdb6 | 17502 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17503 | #define wxUSE_GAUGE 1 |
17504 | EOF | |
17505 | ||
1e6feb95 | 17506 | USES_CONTROLS=1 |
10f2d63a VZ |
17507 | fi |
17508 | ||
d6a55c4b VZ |
17509 | if test "$wxUSE_NEW_GRID" = "yes"; then |
17510 | wxUSE_GRID="yes" | |
698dcdb6 | 17511 | cat >> confdefs.h <<\EOF |
d6a55c4b | 17512 | #define wxUSE_NEW_GRID 1 |
10f2d63a VZ |
17513 | EOF |
17514 | ||
1e6feb95 | 17515 | USES_CONTROLS=1 |
d6a55c4b | 17516 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid" |
10f2d63a VZ |
17517 | fi |
17518 | ||
d6a55c4b | 17519 | if test "$wxUSE_GRID" = "yes"; then |
698dcdb6 | 17520 | cat >> confdefs.h <<\EOF |
d6a55c4b | 17521 | #define wxUSE_GRID 1 |
10f2d63a VZ |
17522 | EOF |
17523 | ||
1e6feb95 | 17524 | USES_CONTROLS=1 |
d6a55c4b | 17525 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" |
10f2d63a VZ |
17526 | fi |
17527 | ||
17528 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 17529 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17530 | #define wxUSE_IMAGLIST 1 |
17531 | EOF | |
17532 | ||
17533 | fi | |
17534 | ||
17535 | if test "$wxUSE_LISTBOX" = "yes"; then | |
698dcdb6 | 17536 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17537 | #define wxUSE_LISTBOX 1 |
17538 | EOF | |
17539 | ||
1e6feb95 | 17540 | USES_CONTROLS=1 |
10f2d63a VZ |
17541 | fi |
17542 | ||
17543 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
17544 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 17545 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17546 | #define wxUSE_LISTCTRL 1 |
17547 | EOF | |
17548 | ||
1e6feb95 | 17549 | USES_CONTROLS=1 |
10f2d63a VZ |
17550 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" |
17551 | else | |
698dcdb6 | 17552 | echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
17553 | fi |
17554 | fi | |
17555 | ||
17556 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
698dcdb6 | 17557 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17558 | #define wxUSE_NOTEBOOK 1 |
17559 | EOF | |
17560 | ||
1e6feb95 | 17561 | USES_CONTROLS=1 |
10f2d63a VZ |
17562 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" |
17563 | fi | |
17564 | ||
24176f2c GD |
17565 | if test "$wxUSE_PROPSHEET" = "yes"; then |
17566 | cat >> confdefs.h <<\EOF | |
17567 | #define wxUSE_PROPSHEET 1 | |
17568 | EOF | |
17569 | ||
17570 | USES_CONTROLS=1 | |
17571 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist" | |
17572 | fi | |
17573 | ||
10f2d63a | 17574 | if test "$wxUSE_RADIOBOX" = "yes"; then |
698dcdb6 | 17575 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17576 | #define wxUSE_RADIOBOX 1 |
17577 | EOF | |
17578 | ||
1e6feb95 | 17579 | USES_CONTROLS=1 |
10f2d63a VZ |
17580 | fi |
17581 | ||
17582 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
698dcdb6 | 17583 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17584 | #define wxUSE_RADIOBTN 1 |
17585 | EOF | |
17586 | ||
1e6feb95 | 17587 | USES_CONTROLS=1 |
10f2d63a VZ |
17588 | fi |
17589 | ||
17590 | if test "$wxUSE_SASH" = "yes"; then | |
698dcdb6 | 17591 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17592 | #define wxUSE_SASH 1 |
17593 | EOF | |
17594 | ||
17595 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
17596 | fi | |
17597 | ||
17598 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
698dcdb6 | 17599 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17600 | #define wxUSE_SCROLLBAR 1 |
17601 | EOF | |
17602 | ||
1e6feb95 | 17603 | USES_CONTROLS=1 |
741a9306 | 17604 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
17605 | fi |
17606 | ||
17607 | if test "$wxUSE_SLIDER" = "yes"; then | |
698dcdb6 | 17608 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17609 | #define wxUSE_SLIDER 1 |
17610 | EOF | |
17611 | ||
1e6feb95 | 17612 | USES_CONTROLS=1 |
10f2d63a VZ |
17613 | fi |
17614 | ||
17615 | if test "$wxUSE_SPINBTN" = "yes"; then | |
698dcdb6 | 17616 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17617 | #define wxUSE_SPINBTN 1 |
17618 | EOF | |
17619 | ||
1e6feb95 | 17620 | USES_CONTROLS=1 |
10f2d63a VZ |
17621 | fi |
17622 | ||
56cfaa52 | 17623 | if test "$wxUSE_SPINCTRL" = "yes"; then |
698dcdb6 | 17624 | cat >> confdefs.h <<\EOF |
56cfaa52 RR |
17625 | #define wxUSE_SPINCTRL 1 |
17626 | EOF | |
17627 | ||
1e6feb95 | 17628 | USES_CONTROLS=1 |
56cfaa52 RR |
17629 | fi |
17630 | ||
10f2d63a | 17631 | if test "$wxUSE_SPLITTER" = "yes"; then |
698dcdb6 | 17632 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17633 | #define wxUSE_SPLITTER 1 |
17634 | EOF | |
17635 | ||
17636 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
17637 | fi | |
17638 | ||
17639 | if test "$wxUSE_STATBMP" = "yes"; then | |
698dcdb6 | 17640 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17641 | #define wxUSE_STATBMP 1 |
17642 | EOF | |
17643 | ||
1e6feb95 | 17644 | USES_CONTROLS=1 |
10f2d63a VZ |
17645 | fi |
17646 | ||
17647 | if test "$wxUSE_STATBOX" = "yes"; then | |
698dcdb6 | 17648 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17649 | #define wxUSE_STATBOX 1 |
17650 | EOF | |
17651 | ||
1e6feb95 VZ |
17652 | USES_CONTROLS=1 |
17653 | fi | |
17654 | ||
17655 | if test "$wxUSE_STATTEXT" = "yes"; then | |
17656 | cat >> confdefs.h <<\EOF | |
17657 | #define wxUSE_STATTEXT 1 | |
17658 | EOF | |
17659 | ||
17660 | USES_CONTROLS=1 | |
10f2d63a VZ |
17661 | fi |
17662 | ||
17663 | if test "$wxUSE_STATLINE" = "yes"; then | |
17664 | if test "$wxUSE_WINE" = 1 ; then | |
698dcdb6 | 17665 | echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2 |
10f2d63a | 17666 | else |
698dcdb6 | 17667 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17668 | #define wxUSE_STATLINE 1 |
17669 | EOF | |
17670 | ||
1e6feb95 | 17671 | USES_CONTROLS=1 |
10f2d63a VZ |
17672 | fi |
17673 | fi | |
17674 | ||
17675 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
698dcdb6 | 17676 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17677 | #define wxUSE_STATUSBAR 1 |
17678 | EOF | |
17679 | ||
1e6feb95 | 17680 | USES_CONTROLS=1 |
698dcdb6 | 17681 | |
2286341c | 17682 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" |
10f2d63a VZ |
17683 | fi |
17684 | ||
17685 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
698dcdb6 | 17686 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17687 | #define wxUSE_TAB_DIALOG 1 |
17688 | EOF | |
17689 | ||
17690 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
17691 | fi | |
17692 | ||
1e6feb95 VZ |
17693 | if test "$wxUSE_TEXTCTRL" = "yes"; then |
17694 | cat >> confdefs.h <<\EOF | |
17695 | #define wxUSE_TEXTCTRL 1 | |
17696 | EOF | |
17697 | ||
17698 | USES_CONTROLS=1 | |
17699 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
17700 | fi | |
17701 | ||
1db8dc4a | 17702 | if test "$wxUSE_TOGGLEBTN" = "yes"; then |
a45d7ab7 GD |
17703 | if test "$wxUSE_MAC" = 1; then |
17704 | echo "configure: warning: Toggle button is not yet supported under Mac OS X" 1>&2 | |
17705 | wxUSE_TOGGLEBTN=no | |
17706 | fi | |
17707 | ||
17708 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
17709 | cat >> confdefs.h <<\EOF | |
1db8dc4a VZ |
17710 | #define wxUSE_TOGGLEBTN 1 |
17711 | EOF | |
17712 | ||
1e6feb95 | 17713 | USES_CONTROLS=1 |
a45d7ab7 | 17714 | fi |
1db8dc4a VZ |
17715 | fi |
17716 | ||
360d6699 | 17717 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
698dcdb6 | 17718 | cat >> confdefs.h <<\EOF |
360d6699 VZ |
17719 | #define wxUSE_TOOLBAR_SIMPLE 1 |
17720 | EOF | |
17721 | ||
17722 | wxUSE_TOOLBAR="yes" | |
1e6feb95 | 17723 | USES_CONTROLS=1 |
360d6699 VZ |
17724 | fi |
17725 | ||
10f2d63a | 17726 | if test "$wxUSE_TOOLBAR" = "yes"; then |
698dcdb6 | 17727 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17728 | #define wxUSE_TOOLBAR 1 |
17729 | EOF | |
17730 | ||
1e6feb95 | 17731 | USES_CONTROLS=1 |
698dcdb6 | 17732 | |
360d6699 VZ |
17733 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then |
17734 | wxUSE_TOOLBAR_NATIVE="yes" | |
17735 | fi | |
17736 | ||
1e6feb95 VZ |
17737 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
17738 | cat >> confdefs.h <<\EOF | |
360d6699 VZ |
17739 | #define wxUSE_TOOLBAR_NATIVE 1 |
17740 | EOF | |
17741 | ||
1e6feb95 VZ |
17742 | USES_CONTROLS=1 |
17743 | fi | |
17744 | ||
17745 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
360d6699 VZ |
17746 | fi |
17747 | ||
10f2d63a VZ |
17748 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
17749 | if test "$wxUSE_MOTIF" = 1; then | |
698dcdb6 | 17750 | echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2 |
10f2d63a VZ |
17751 | else |
17752 | if test "$wxUSE_WINE" = 1; then | |
698dcdb6 | 17753 | echo "configure: warning: wxTooltip not supported under WINE" 1>&2 |
10f2d63a | 17754 | else |
698dcdb6 | 17755 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17756 | #define wxUSE_TOOLTIPS 1 |
17757 | EOF | |
17758 | ||
17759 | fi | |
17760 | fi | |
17761 | fi | |
17762 | ||
17763 | if test "$wxUSE_TREECTRL" = "yes"; then | |
17764 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 17765 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17766 | #define wxUSE_TREECTRL 1 |
17767 | EOF | |
17768 | ||
1e6feb95 | 17769 | USES_CONTROLS=1 |
10f2d63a VZ |
17770 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" |
17771 | else | |
698dcdb6 | 17772 | echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
17773 | fi |
17774 | fi | |
17775 | ||
9f41d601 | 17776 | if test "$wxUSE_POPUPWIN" = "yes"; then |
6abe4b65 GD |
17777 | if test "$wxUSE_MAC" = 1; then |
17778 | echo "configure: warning: Popup window is not yet supported under Mac OS" 1>&2 | |
17779 | else | |
17780 | cat >> confdefs.h <<\EOF | |
9f41d601 RR |
17781 | #define wxUSE_POPUPWIN 1 |
17782 | EOF | |
17783 | ||
6abe4b65 GD |
17784 | USES_CONTROLS=1 |
17785 | fi | |
9f41d601 RR |
17786 | fi |
17787 | ||
1e6feb95 VZ |
17788 | if test "$USES_CONTROLS" = 1; then |
17789 | cat >> confdefs.h <<\EOF | |
17790 | #define wxUSE_CONTROLS 1 | |
10f2d63a VZ |
17791 | EOF |
17792 | ||
10f2d63a VZ |
17793 | fi |
17794 | ||
1e6feb95 | 17795 | |
24176f2c GD |
17796 | if test "$wxUSE_TREELAYOUT" = "yes"; then |
17797 | cat >> confdefs.h <<\EOF | |
17798 | #define wxUSE_TREELAYOUT 1 | |
17799 | EOF | |
17800 | ||
17801 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay" | |
17802 | fi | |
1e6feb95 | 17803 | |
24fd6d87 VZ |
17804 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
17805 | cat >> confdefs.h <<\EOF | |
17806 | #define wxUSE_DRAGIMAGE 1 | |
17807 | EOF | |
17808 | ||
17809 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
17810 | fi | |
17811 | ||
1e6feb95 | 17812 | if test "$wxUSE_MENUS" = "yes"; then |
698dcdb6 | 17813 | cat >> confdefs.h <<\EOF |
1e6feb95 | 17814 | #define wxUSE_MENUS 1 |
10f2d63a VZ |
17815 | EOF |
17816 | ||
1e6feb95 | 17817 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" |
10f2d63a VZ |
17818 | fi |
17819 | ||
1e6feb95 VZ |
17820 | if test "$wxUSE_METAFILE" = "yes"; then |
17821 | cat >> confdefs.h <<\EOF | |
17822 | #define wxUSE_METAFILE 1 | |
10f2d63a VZ |
17823 | EOF |
17824 | ||
10f2d63a VZ |
17825 | fi |
17826 | ||
1e6feb95 VZ |
17827 | if test "$wxUSE_MIMETYPE" = "yes"; then |
17828 | cat >> confdefs.h <<\EOF | |
17829 | #define wxUSE_MIMETYPE 1 | |
10f2d63a VZ |
17830 | EOF |
17831 | ||
10f2d63a VZ |
17832 | fi |
17833 | ||
3e44f09d VZ |
17834 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then |
17835 | cat >> confdefs.h <<\EOF | |
17836 | #define wxUSE_SYSTEM_OPTIONS 1 | |
17837 | EOF | |
17838 | ||
17839 | fi | |
17840 | ||
10f2d63a | 17841 | if test "$wxUSE_MINIFRAME" = "yes"; then |
698dcdb6 | 17842 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17843 | #define wxUSE_MINIFRAME 1 |
17844 | EOF | |
17845 | ||
17846 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
17847 | fi | |
17848 | ||
17849 | if test "$wxUSE_HTML" = "yes"; then | |
698dcdb6 | 17850 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17851 | #define wxUSE_HTML 1 |
17852 | EOF | |
17853 | ||
17854 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html" | |
10f2d63a VZ |
17855 | fi |
17856 | ||
17857 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
698dcdb6 | 17858 | cat >> confdefs.h <<\EOF |
1e487827 VS |
17859 | #define wxUSE_VALIDATORS 1 |
17860 | EOF | |
703e0a69 | 17861 | |
698dcdb6 VZ |
17862 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" |
17863 | fi | |
17864 | ||
edae8572 VZ |
17865 | if test "$wxUSE_PALETTE" = "yes" ; then |
17866 | cat >> confdefs.h <<\EOF | |
17867 | #define wxUSE_PALETTE 1 | |
17868 | EOF | |
17869 | ||
17870 | fi | |
17871 | ||
698dcdb6 VZ |
17872 | if test "$wxUSE_IMAGE" = "yes" ; then |
17873 | cat >> confdefs.h <<\EOF | |
17874 | #define wxUSE_IMAGE 1 | |
17875 | EOF | |
17876 | ||
17877 | fi | |
17878 | ||
17879 | if test "$wxUSE_GIF" = "yes" ; then | |
17880 | cat >> confdefs.h <<\EOF | |
17881 | #define wxUSE_GIF 1 | |
17882 | EOF | |
17883 | ||
17884 | fi | |
17885 | ||
17886 | if test "$wxUSE_PCX" = "yes" ; then | |
17887 | cat >> confdefs.h <<\EOF | |
17888 | #define wxUSE_PCX 1 | |
17889 | EOF | |
17890 | ||
17891 | fi | |
17892 | ||
17893 | if test "$wxUSE_PNM" = "yes" ; then | |
17894 | cat >> confdefs.h <<\EOF | |
17895 | #define wxUSE_PNM 1 | |
17896 | EOF | |
17897 | ||
17898 | fi | |
17899 | ||
17900 | if test "$wxUSE_XPM" = "yes" ; then | |
17901 | cat >> confdefs.h <<\EOF | |
17902 | #define wxUSE_XPM 1 | |
17903 | EOF | |
17904 | ||
17905 | fi | |
17906 | ||
17907 | ||
1e6feb95 VZ |
17908 | if test "$wxUSE_CHOICEDLG" = "yes"; then |
17909 | cat >> confdefs.h <<\EOF | |
17910 | #define wxUSE_CHOICEDLG 1 | |
17911 | EOF | |
17912 | ||
17913 | fi | |
17914 | ||
17915 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
17916 | cat >> confdefs.h <<\EOF | |
17917 | #define wxUSE_COLOURDLG 1 | |
17918 | EOF | |
17919 | ||
17920 | fi | |
17921 | ||
17922 | if test "$wxUSE_FILEDLG" = "yes"; then | |
17923 | cat >> confdefs.h <<\EOF | |
17924 | #define wxUSE_FILEDLG 1 | |
17925 | EOF | |
17926 | ||
17927 | fi | |
17928 | ||
8db37e06 VZ |
17929 | if test "$wxUSE_FINDREPLDLG" = "yes"; then |
17930 | cat >> confdefs.h <<\EOF | |
17931 | #define wxUSE_FINDREPLDLG 1 | |
17932 | EOF | |
17933 | ||
17934 | fi | |
17935 | ||
1e6feb95 VZ |
17936 | if test "$wxUSE_FONTDLG" = "yes"; then |
17937 | cat >> confdefs.h <<\EOF | |
17938 | #define wxUSE_FONTDLG 1 | |
17939 | EOF | |
17940 | ||
17941 | fi | |
17942 | ||
17943 | if test "$wxUSE_DIRDLG" = "yes"; then | |
17944 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
17945 | echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2 | |
17946 | else | |
17947 | if test "$wxUSE_TREECTRL" != "yes"; then | |
17948 | echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2 | |
17949 | else | |
17950 | cat >> confdefs.h <<\EOF | |
17951 | #define wxUSE_DIRDLG 1 | |
17952 | EOF | |
17953 | ||
17954 | fi | |
17955 | fi | |
17956 | fi | |
17957 | ||
17958 | if test "$wxUSE_MSGDLG" = "yes"; then | |
17959 | cat >> confdefs.h <<\EOF | |
17960 | #define wxUSE_MSGDLG 1 | |
17961 | EOF | |
17962 | ||
17963 | fi | |
17964 | ||
17965 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
17966 | cat >> confdefs.h <<\EOF | |
17967 | #define wxUSE_NUMBERDLG 1 | |
17968 | EOF | |
17969 | ||
17970 | fi | |
17971 | ||
17972 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
17973 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
17974 | echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2 | |
17975 | else | |
17976 | cat >> confdefs.h <<\EOF | |
17977 | #define wxUSE_PROGRESSDLG 1 | |
17978 | EOF | |
17979 | ||
17980 | fi | |
17981 | fi | |
17982 | ||
cbca9943 VZ |
17983 | if test "$wxUSE_SPLASH" = "yes"; then |
17984 | cat >> confdefs.h <<\EOF | |
17985 | #define wxUSE_SPLASH 1 | |
17986 | EOF | |
17987 | ||
17988 | fi | |
17989 | ||
1e6feb95 VZ |
17990 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then |
17991 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
17992 | echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2 | |
17993 | else | |
17994 | cat >> confdefs.h <<\EOF | |
17995 | #define wxUSE_STARTUP_TIPS 1 | |
17996 | EOF | |
17997 | ||
17998 | fi | |
17999 | fi | |
18000 | ||
18001 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
18002 | cat >> confdefs.h <<\EOF | |
18003 | #define wxUSE_TEXTDLG 1 | |
18004 | EOF | |
18005 | ||
18006 | fi | |
18007 | ||
b1f5d087 VZ |
18008 | if test "$wxUSE_WIZARDDLG" = "yes"; then |
18009 | cat >> confdefs.h <<\EOF | |
18010 | #define wxUSE_WIZARDDLG 1 | |
18011 | EOF | |
18012 | ||
18013 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
18014 | fi | |
18015 | ||
1e6feb95 | 18016 | |
698dcdb6 VZ |
18017 | if test "$cross_compiling" = "yes"; then |
18018 | OSINFO="\"$host\"" | |
18019 | else | |
18020 | OSINFO=`uname -s -r -m` | |
18021 | OSINFO="\"$OSINFO\"" | |
18022 | fi | |
18023 | ||
18024 | cat >> confdefs.h <<EOF | |
18025 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
18026 | EOF | |
18027 | ||
18028 | ||
18029 | ||
06dda230 VZ |
18030 | if test "x$prefix" != "xNONE"; then |
18031 | wxPREFIX=$prefix | |
18032 | else | |
18033 | wxPREFIX=$ac_default_prefix | |
18034 | fi | |
18035 | ||
7e67ed0d | 18036 | cat >> confdefs.h <<EOF |
06dda230 | 18037 | #define wxINSTALL_PREFIX "$wxPREFIX" |
7e67ed0d VZ |
18038 | EOF |
18039 | ||
18040 | ||
18041 | ||
698dcdb6 | 18042 | GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK" |
698dcdb6 VZ |
18043 | |
18044 | EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm" | |
3a922bb4 | 18045 | |
f11bdd03 | 18046 | if test "$wxUSE_MAC" = 1 ; then |
698dcdb6 VZ |
18047 | EXTRA_LIBS="$EXTRA_LIBS -framework Carbon -framework System" |
18048 | fi | |
3a922bb4 | 18049 | |
698dcdb6 VZ |
18050 | if test "$wxUSE_GUI" = "yes"; then |
18051 | EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $FREETYPE_LINK $EXTRA_LIBS" | |
3a922bb4 RL |
18052 | |
18053 | ||
18054 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \ | |
18055 | drawing dynamic erase event exec font image \ | |
18056 | minimal richedit rotate widgets" | |
18057 | ||
18058 | if test "$wxUSE_UNIVERSAL" = "yes" ; then | |
18059 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS univ" | |
18060 | fi | |
18061 | ||
18062 | CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)" | |
18063 | else | |
18064 | SAMPLES_SUBDIRS="console" | |
698dcdb6 VZ |
18065 | fi |
18066 | ||
18067 | LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS" | |
18068 | ||
3a922bb4 | 18069 | INCLUDES="-I. -I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} -I\${top_srcdir}/include \ |
3e44f09d VZ |
18070 | $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \ |
18071 | $FREETYPE_INCLUDE $TOOLKIT_INCLUDE" | |
698dcdb6 VZ |
18072 | |
18073 | if test "$wxUSE_GTK" = 1; then | |
18074 | WXCONFIG_INCLUDE="" | |
18075 | else | |
18076 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
18077 | fi | |
18078 | ||
18079 | if test "$GXX" = yes ; then | |
18080 | CXXWARNINGS="-Wall" | |
18081 | fi | |
18082 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES" | |
18083 | ||
18084 | CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` | |
18085 | CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
18086 | ||
18087 | LDFLAGS="$LDFLAGS $PROFILE" | |
18088 | ||
698dcdb6 VZ |
18089 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" |
18090 | ||
18091 | ||
18092 | ||
18093 | ||
18094 | ||
18095 | ||
18096 | ||
18097 | ||
18098 | ||
18099 | ||
18100 | ||
18101 | ||
18102 | ||
18103 | ||
18104 | ||
18105 | ||
18106 | ||
18107 | ||
18108 | ||
18109 | ||
18110 | ||
18111 | ||
18112 | ||
18113 | ||
18114 | ||
18115 | ||
18116 | ||
18117 | ||
18118 | ||
18119 | ||
18120 | ||
18121 | ||
18122 | ||
18123 | ||
18124 | ||
18125 | ||
18126 | ||
18127 | ||
18128 | ||
18129 | ||
18130 | ||
18131 | ||
18132 | ||
18133 | ||
18134 | ||
18135 | ||
18136 | ||
18137 | ||
18138 | ||
18139 | ||
18140 | ||
18141 | ||
18142 | ||
18143 | ||
18144 | ||
18145 | ||
18146 | ||
18147 | ||
18148 | ||
18149 | ||
18150 | ||
18151 | ||
18152 | ||
18153 | ||
18154 | ||
18155 | ||
18156 | ||
32832908 | 18157 | |
2f51a9ec GD |
18158 | |
18159 | ||
18160 | ||
18161 | ||
f6bcfd97 | 18162 | |
dad6c0ea | 18163 | |
caa2c79b | 18164 | |
3711412e | 18165 | |
1e6feb95 VZ |
18166 | |
18167 | ||
0f3f1cbc | 18168 | |
18dbb1f6 | 18169 | |
10f2d63a VZ |
18170 | |
18171 | ||
698dcdb6 | 18172 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
d08b457b | 18173 | echo "configure:18174: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
698dcdb6 VZ |
18174 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
18175 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
18176 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 18177 | else |
698dcdb6 | 18178 | cat > conftestmake <<\EOF |
10f2d63a VZ |
18179 | all: |
18180 | @echo 'ac_maketemp="${MAKE}"' | |
18181 | EOF | |
18182 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
698dcdb6 | 18183 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
10f2d63a VZ |
18184 | if test -n "$ac_maketemp"; then |
18185 | eval ac_cv_prog_make_${ac_make}_set=yes | |
18186 | else | |
18187 | eval ac_cv_prog_make_${ac_make}_set=no | |
18188 | fi | |
698dcdb6 | 18189 | rm -f conftestmake |
10f2d63a VZ |
18190 | fi |
18191 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
698dcdb6 | 18192 | echo "$ac_t""yes" 1>&6 |
10f2d63a VZ |
18193 | SET_MAKE= |
18194 | else | |
698dcdb6 | 18195 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
18196 | SET_MAKE="MAKE=${MAKE-make}" |
18197 | fi | |
18198 | ||
698dcdb6 | 18199 | |
3a922bb4 RL |
18200 | if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then |
18201 | mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h | |
00cf1208 | 18202 | fi |
665bbe97 | 18203 | |
698dcdb6 | 18204 | |
10f2d63a | 18205 | |
2224580a | 18206 | if test "$wxUSE_GUI" = "yes"; then |
ec90f5e5 | 18207 | wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS |
e8482f24 GL |
18208 | wx_cv_path_ifs=$PATH_IFS |
18209 | wx_cv_program_ext=$PROGRAM_EXT | |
18210 | wx_cv_target_library=$WX_TARGET_LIBRARY | |
7b6058cd | 18211 | wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL |
3711412e | 18212 | wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE |
93a20a27 | 18213 | export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \ |
7b6058cd | 18214 | wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype |
698dcdb6 | 18215 | subdirs="demos samples utils contrib" |
2224580a VZ |
18216 | |
18217 | fi | |
10f2d63a | 18218 | |
698dcdb6 VZ |
18219 | trap '' 1 2 15 |
18220 | cat > confcache <<\EOF | |
10f2d63a VZ |
18221 | # This file is a shell script that caches the results of configure |
18222 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
18223 | # scripts and configure runs. It is not useful on other systems. |
18224 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 18225 | # |
698dcdb6 VZ |
18226 | # By default, configure uses ./config.cache as the cache file, |
18227 | # creating it if it does not exist already. You can give configure | |
18228 | # the --cache-file=FILE option to use a different cache file; that is | |
18229 | # what configure does when it calls configure scripts in | |
18230 | # subdirectories, so they share the cache. | |
18231 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
18232 | # config.status only pays attention to the cache file if you give it the | |
18233 | # --recheck option to rerun configure. | |
10f2d63a | 18234 | # |
698dcdb6 | 18235 | EOF |
10f2d63a VZ |
18236 | # The following way of writing the cache mishandles newlines in values, |
18237 | # but we know of no workaround that is simple, portable, and efficient. | |
18238 | # So, don't put newlines in cache variables' values. | |
18239 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
18240 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
18241 | (set) 2>&1 | |
18242 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
18243 | *ac_space=\ *) | |
18244 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
18245 | # turns \\\\ into \\, and sed turns \\ into \). | |
18246 | sed -n \ | |
18247 | -e "s/'/'\\\\''/g" \ | |
18248 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
18249 | ;; | |
18250 | *) | |
18251 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
18252 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
18253 | ;; | |
18254 | esac >> confcache | |
18255 | if cmp -s $cache_file confcache; then | |
18256 | : | |
18257 | else | |
10f2d63a | 18258 | if test -w $cache_file; then |
698dcdb6 VZ |
18259 | echo "updating cache $cache_file" |
18260 | cat confcache > $cache_file | |
10f2d63a VZ |
18261 | else |
18262 | echo "not updating unwritable cache $cache_file" | |
18263 | fi | |
18264 | fi | |
18265 | rm -f confcache | |
18266 | ||
698dcdb6 VZ |
18267 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
18268 | ||
10f2d63a VZ |
18269 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
18270 | # Let make expand exec_prefix. | |
18271 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
18272 | ||
698dcdb6 VZ |
18273 | # Any assignment to VPATH causes Sun make to only execute |
18274 | # the first set of double-colon rules, so remove it if not needed. | |
18275 | # If there is a colon in the path, we need to keep it. | |
10f2d63a | 18276 | if test "x$srcdir" = x.; then |
698dcdb6 | 18277 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
10f2d63a VZ |
18278 | fi |
18279 | ||
698dcdb6 VZ |
18280 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
18281 | ||
10f2d63a VZ |
18282 | DEFS=-DHAVE_CONFIG_H |
18283 | ||
698dcdb6 | 18284 | # Without the "./", some shells look in PATH for config.status. |
10f2d63a | 18285 | : ${CONFIG_STATUS=./config.status} |
698dcdb6 VZ |
18286 | |
18287 | echo creating $CONFIG_STATUS | |
18288 | rm -f $CONFIG_STATUS | |
18289 | cat > $CONFIG_STATUS <<EOF | |
18290 | #! /bin/sh | |
10f2d63a VZ |
18291 | # Generated automatically by configure. |
18292 | # Run this file to recreate the current configuration. | |
698dcdb6 VZ |
18293 | # This directory was configured as follows, |
18294 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
18295 | # | |
18296 | # $0 $ac_configure_args | |
18297 | # | |
10f2d63a | 18298 | # Compiler output produced by configure, useful for debugging |
698dcdb6 | 18299 | # configure, is in ./config.log if it exists. |
1e487827 | 18300 | |
698dcdb6 VZ |
18301 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
18302 | for ac_option | |
10f2d63a | 18303 | do |
698dcdb6 | 18304 | case "\$ac_option" in |
10f2d63a | 18305 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
698dcdb6 VZ |
18306 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
18307 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
18308 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
18309 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | |
18310 | exit 0 ;; | |
18311 | -help | --help | --hel | --he | --h) | |
18312 | echo "\$ac_cs_usage"; exit 0 ;; | |
18313 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
10f2d63a VZ |
18314 | esac |
18315 | done | |
18316 | ||
698dcdb6 VZ |
18317 | ac_given_srcdir=$srcdir |
18318 | ac_given_INSTALL="$INSTALL" | |
703e0a69 | 18319 | |
698dcdb6 VZ |
18320 | trap 'rm -fr `echo " |
18321 | wx-config | |
18322 | src/make.env | |
18323 | src/makeprog.env | |
18324 | src/makelib.env | |
18325 | Makefile | |
18326 | setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
1e487827 | 18327 | EOF |
698dcdb6 | 18328 | cat >> $CONFIG_STATUS <<EOF |
1e487827 | 18329 | |
698dcdb6 VZ |
18330 | # Protect against being on the right side of a sed subst in config.status. |
18331 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
18332 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
18333 | $ac_vpsub | |
18334 | $extrasub | |
18335 | s%@SHELL@%$SHELL%g | |
18336 | s%@CFLAGS@%$CFLAGS%g | |
18337 | s%@CPPFLAGS@%$CPPFLAGS%g | |
18338 | s%@CXXFLAGS@%$CXXFLAGS%g | |
18339 | s%@FFLAGS@%$FFLAGS%g | |
18340 | s%@DEFS@%$DEFS%g | |
18341 | s%@LDFLAGS@%$LDFLAGS%g | |
18342 | s%@LIBS@%$LIBS%g | |
18343 | s%@exec_prefix@%$exec_prefix%g | |
18344 | s%@prefix@%$prefix%g | |
18345 | s%@program_transform_name@%$program_transform_name%g | |
18346 | s%@bindir@%$bindir%g | |
18347 | s%@sbindir@%$sbindir%g | |
18348 | s%@libexecdir@%$libexecdir%g | |
18349 | s%@datadir@%$datadir%g | |
18350 | s%@sysconfdir@%$sysconfdir%g | |
18351 | s%@sharedstatedir@%$sharedstatedir%g | |
18352 | s%@localstatedir@%$localstatedir%g | |
18353 | s%@libdir@%$libdir%g | |
18354 | s%@includedir@%$includedir%g | |
18355 | s%@oldincludedir@%$oldincludedir%g | |
18356 | s%@infodir@%$infodir%g | |
18357 | s%@mandir@%$mandir%g | |
18358 | s%@host@%$host%g | |
18359 | s%@host_alias@%$host_alias%g | |
18360 | s%@host_cpu@%$host_cpu%g | |
18361 | s%@host_vendor@%$host_vendor%g | |
18362 | s%@host_os@%$host_os%g | |
18363 | s%@target@%$target%g | |
18364 | s%@target_alias@%$target_alias%g | |
18365 | s%@target_cpu@%$target_cpu%g | |
18366 | s%@target_vendor@%$target_vendor%g | |
18367 | s%@target_os@%$target_os%g | |
18368 | s%@build@%$build%g | |
18369 | s%@build_alias@%$build_alias%g | |
18370 | s%@build_cpu@%$build_cpu%g | |
18371 | s%@build_vendor@%$build_vendor%g | |
18372 | s%@build_os@%$build_os%g | |
18373 | s%@CC@%$CC%g | |
18374 | s%@CPP@%$CPP%g | |
18375 | s%@CXX@%$CXX%g | |
698dcdb6 VZ |
18376 | s%@RANLIB@%$RANLIB%g |
18377 | s%@AR@%$AR%g | |
18378 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
18379 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | |
18380 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
18381 | s%@STRIP@%$STRIP%g | |
18382 | s%@YACC@%$YACC%g | |
18383 | s%@LEX@%$LEX%g | |
18384 | s%@LEXLIB@%$LEXLIB%g | |
18385 | s%@LN_S@%$LN_S%g | |
18386 | s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g | |
698dcdb6 VZ |
18387 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g |
18388 | s%@GTK_LIBS@%$GTK_LIBS%g | |
8168de4c | 18389 | s%@GTK_CONFIG@%$GTK_CONFIG%g |
698dcdb6 VZ |
18390 | s%@X_CFLAGS@%$X_CFLAGS%g |
18391 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
18392 | s%@X_LIBS@%$X_LIBS%g | |
18393 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
3a922bb4 | 18394 | s%@RESCOMP@%$RESCOMP%g |
698dcdb6 | 18395 | s%@DEREZ@%$DEREZ%g |
3a922bb4 | 18396 | s%@CXXCPP@%$CXXCPP%g |
698dcdb6 VZ |
18397 | s%@LEX_STEM@%$LEX_STEM%g |
18398 | s%@PATH_IFS@%$PATH_IFS%g | |
18399 | s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g | |
18400 | s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g | |
18401 | s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g | |
698dcdb6 VZ |
18402 | s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g |
18403 | s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g | |
698dcdb6 VZ |
18404 | s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g |
18405 | s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g | |
18406 | s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g | |
698dcdb6 | 18407 | s%@PROGRAM_EXT@%$PROGRAM_EXT%g |
698dcdb6 VZ |
18408 | s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g |
18409 | s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g | |
698dcdb6 VZ |
18410 | s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g |
18411 | s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g | |
18412 | s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g | |
698dcdb6 VZ |
18413 | s%@WX_ALL@%$WX_ALL%g |
18414 | s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g | |
18415 | s%@SHARED_LD@%$SHARED_LD%g | |
18416 | s%@PIC_FLAG@%$PIC_FLAG%g | |
698dcdb6 VZ |
18417 | s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g |
18418 | s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g | |
3a922bb4 RL |
18419 | s%@SONAME_FLAGS@%$SONAME_FLAGS%g |
18420 | s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g | |
698dcdb6 VZ |
18421 | s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g |
18422 | s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g | |
18423 | s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g | |
18424 | s%@USE_GUI@%$USE_GUI%g | |
18425 | s%@AFMINSTALL@%$AFMINSTALL%g | |
18426 | s%@TOOLKIT@%$TOOLKIT%g | |
698dcdb6 | 18427 | s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g |
1e6feb95 | 18428 | s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g |
3a922bb4 RL |
18429 | s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g |
18430 | s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g | |
18431 | s%@cross_compiling@%$cross_compiling%g | |
18432 | s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g | |
18433 | s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g | |
698dcdb6 VZ |
18434 | s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g |
18435 | s%@ALL_OBJECTS@%$ALL_OBJECTS%g | |
698dcdb6 VZ |
18436 | s%@GUIDIST@%$GUIDIST%g |
18437 | s%@PORT_FILES@%$PORT_FILES%g | |
18438 | s%@DISTDIR@%$DISTDIR%g | |
18439 | s%@RPM_SPEC@%$RPM_SPEC%g | |
18440 | s%@RPM_FILES@%$RPM_FILES%g | |
698dcdb6 | 18441 | s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g |
698dcdb6 VZ |
18442 | s%@EXTRA_LIBS@%$EXTRA_LIBS%g |
18443 | s%@OPENGL_LIBS@%$OPENGL_LIBS%g | |
18444 | s%@EXTRADEFS@%$EXTRADEFS%g | |
18445 | s%@LD_LIBS@%$LD_LIBS%g | |
18dbb1f6 | 18446 | s%@WXMSW_DLL_DEFINES@%$WXMSW_DLL_DEFINES%g |
698dcdb6 | 18447 | s%@RESFLAGS@%$RESFLAGS%g |
3a922bb4 | 18448 | s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g |
d08b457b | 18449 | s%@WX_RESOURCES_MACOSX@%$WX_RESOURCES_MACOSX%g |
698dcdb6 VZ |
18450 | s%@LIBWXMACRES@%$LIBWXMACRES%g |
18451 | s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g | |
18452 | s%@DLLTOOL@%$DLLTOOL%g | |
18453 | s%@AS@%$AS%g | |
18454 | s%@NM@%$NM%g | |
18455 | s%@LD@%$LD%g | |
18456 | s%@MAKEINFO@%$MAKEINFO%g | |
18457 | s%@SET_MAKE@%$SET_MAKE%g | |
18458 | s%@subdirs@%$subdirs%g | |
1e487827 | 18459 | |
1e487827 | 18460 | CEOF |
1e487827 VS |
18461 | EOF |
18462 | ||
698dcdb6 VZ |
18463 | cat >> $CONFIG_STATUS <<\EOF |
18464 | ||
18465 | # Split the substitutions into bite-sized pieces for seds with | |
18466 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
18467 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
18468 | ac_file=1 # Number of current file. | |
18469 | ac_beg=1 # First line for current file. | |
18470 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
18471 | ac_more_lines=: | |
18472 | ac_sed_cmds="" | |
18473 | while $ac_more_lines; do | |
18474 | if test $ac_beg -gt 1; then | |
18475 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
18476 | else | |
18477 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
18478 | fi | |
18479 | if test ! -s conftest.s$ac_file; then | |
18480 | ac_more_lines=false | |
18481 | rm -f conftest.s$ac_file | |
18482 | else | |
18483 | if test -z "$ac_sed_cmds"; then | |
18484 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
10f2d63a | 18485 | else |
698dcdb6 | 18486 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
10f2d63a | 18487 | fi |
698dcdb6 VZ |
18488 | ac_file=`expr $ac_file + 1` |
18489 | ac_beg=$ac_end | |
18490 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
10f2d63a | 18491 | fi |
698dcdb6 VZ |
18492 | done |
18493 | if test -z "$ac_sed_cmds"; then | |
18494 | ac_sed_cmds=cat | |
18495 | fi | |
18496 | EOF | |
10f2d63a | 18497 | |
698dcdb6 VZ |
18498 | cat >> $CONFIG_STATUS <<EOF |
18499 | ||
18500 | CONFIG_FILES=\${CONFIG_FILES-"wx-config | |
18501 | src/make.env | |
18502 | src/makeprog.env | |
18503 | src/makelib.env | |
18504 | Makefile | |
18505 | "} | |
10f2d63a | 18506 | EOF |
698dcdb6 VZ |
18507 | cat >> $CONFIG_STATUS <<\EOF |
18508 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
10f2d63a | 18509 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
698dcdb6 VZ |
18510 | case "$ac_file" in |
18511 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
18512 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
18513 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
18514 | esac |
18515 | ||
698dcdb6 | 18516 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
1e487827 | 18517 | |
698dcdb6 VZ |
18518 | # Remove last slash and all that follows it. Not all systems have dirname. |
18519 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
18520 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
18521 | # The file is in a subdirectory. | |
18522 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
18523 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
10f2d63a | 18524 | # A "../" for each directory in $ac_dir_suffix. |
698dcdb6 | 18525 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
10f2d63a VZ |
18526 | else |
18527 | ac_dir_suffix= ac_dots= | |
18528 | fi | |
18529 | ||
698dcdb6 VZ |
18530 | case "$ac_given_srcdir" in |
18531 | .) srcdir=. | |
18532 | if test -z "$ac_dots"; then top_srcdir=. | |
18533 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
18534 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
10f2d63a | 18535 | *) # Relative path. |
698dcdb6 VZ |
18536 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
18537 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
10f2d63a VZ |
18538 | esac |
18539 | ||
698dcdb6 VZ |
18540 | case "$ac_given_INSTALL" in |
18541 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
18542 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
10f2d63a VZ |
18543 | esac |
18544 | ||
698dcdb6 VZ |
18545 | echo creating "$ac_file" |
18546 | rm -f "$ac_file" | |
18547 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
18548 | case "$ac_file" in | |
18549 | *Makefile*) ac_comsub="1i\\ | |
18550 | # $configure_input" ;; | |
18551 | *) ac_comsub= ;; | |
18552 | esac | |
10f2d63a | 18553 | |
698dcdb6 VZ |
18554 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
18555 | sed -e "$ac_comsub | |
18556 | s%@configure_input@%$configure_input%g | |
18557 | s%@srcdir@%$srcdir%g | |
18558 | s%@top_srcdir@%$top_srcdir%g | |
18559 | s%@INSTALL@%$INSTALL%g | |
18560 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
18561 | fi; done | |
18562 | rm -f conftest.s* | |
10f2d63a VZ |
18563 | |
18564 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
18565 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
18566 | # | |
18567 | # ac_d sets the value in "#define NAME VALUE" lines. | |
698dcdb6 VZ |
18568 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
18569 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
18570 | ac_dC='\3' | |
18571 | ac_dD='%g' | |
18572 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
18573 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
18574 | ac_uB='\([ ]\)%\1#\2define\3' | |
10f2d63a | 18575 | ac_uC=' ' |
698dcdb6 VZ |
18576 | ac_uD='\4%g' |
18577 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
18578 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
18579 | ac_eB='$%\1#\2define\3' | |
18580 | ac_eC=' ' | |
18581 | ac_eD='%g' | |
10f2d63a | 18582 | |
698dcdb6 VZ |
18583 | if test "${CONFIG_HEADERS+set}" != set; then |
18584 | EOF | |
18585 | cat >> $CONFIG_STATUS <<EOF | |
18586 | CONFIG_HEADERS="setup.h:setup.h.in" | |
18587 | EOF | |
18588 | cat >> $CONFIG_STATUS <<\EOF | |
18589 | fi | |
18590 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
10f2d63a | 18591 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
698dcdb6 VZ |
18592 | case "$ac_file" in |
18593 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
18594 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
18595 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
18596 | esac |
18597 | ||
698dcdb6 VZ |
18598 | echo creating $ac_file |
18599 | ||
18600 | rm -f conftest.frag conftest.in conftest.out | |
18601 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
18602 | cat $ac_file_inputs > conftest.in | |
18603 | ||
18604 | EOF | |
18605 | ||
18606 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
18607 | # the proper values into config.h.in to produce config.h. And first: | |
18608 | # Protect against being on the right side of a sed subst in config.status. | |
18609 | # Protect against being in an unquoted here document in config.status. | |
18610 | rm -f conftest.vals | |
18611 | cat > conftest.hdr <<\EOF | |
18612 | s/[\\&%]/\\&/g | |
18613 | s%[\\$`]%\\&%g | |
18614 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
18615 | s%ac_d%ac_u%gp | |
18616 | s%ac_u%ac_e%gp | |
18617 | EOF | |
18618 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
18619 | rm -f conftest.hdr | |
10f2d63a VZ |
18620 | |
18621 | # This sed command replaces #undef with comments. This is necessary, for | |
18622 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
18623 | # on some systems where configure will not decide to define it. | |
698dcdb6 VZ |
18624 | cat >> conftest.vals <<\EOF |
18625 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
10f2d63a VZ |
18626 | EOF |
18627 | ||
698dcdb6 VZ |
18628 | # Break up conftest.vals because some shells have a limit on |
18629 | # the size of here documents, and old seds have small limits too. | |
10f2d63a VZ |
18630 | |
18631 | rm -f conftest.tail | |
698dcdb6 | 18632 | while : |
10f2d63a | 18633 | do |
698dcdb6 VZ |
18634 | ac_lines=`grep -c . conftest.vals` |
18635 | # grep -c gives empty output for an empty file on some AIX systems. | |
18636 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
18637 | # Write a limited-size here document to conftest.frag. | |
18638 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
18639 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
10f2d63a | 18640 | echo 'CEOF |
698dcdb6 VZ |
18641 | sed -f conftest.frag conftest.in > conftest.out |
18642 | rm -f conftest.in | |
18643 | mv conftest.out conftest.in | |
18644 | ' >> $CONFIG_STATUS | |
18645 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
18646 | rm -f conftest.vals | |
18647 | mv conftest.tail conftest.vals | |
10f2d63a | 18648 | done |
698dcdb6 VZ |
18649 | rm -f conftest.vals |
18650 | ||
18651 | cat >> $CONFIG_STATUS <<\EOF | |
18652 | rm -f conftest.frag conftest.h | |
18653 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
18654 | cat conftest.in >> conftest.h | |
18655 | rm -f conftest.in | |
18656 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
18657 | echo "$ac_file is unchanged" | |
18658 | rm -f conftest.h | |
10f2d63a | 18659 | else |
698dcdb6 VZ |
18660 | # Remove last slash and all that follows it. Not all systems have dirname. |
18661 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
10f2d63a | 18662 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
698dcdb6 VZ |
18663 | # The file is in a subdirectory. |
18664 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
10f2d63a | 18665 | fi |
698dcdb6 VZ |
18666 | rm -f $ac_file |
18667 | mv conftest.h $ac_file | |
10f2d63a | 18668 | fi |
698dcdb6 VZ |
18669 | fi; done |
18670 | ||
10f2d63a | 18671 | EOF |
698dcdb6 | 18672 | cat >> $CONFIG_STATUS <<EOF |
10f2d63a | 18673 | |
3a922bb4 | 18674 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}" |
698dcdb6 VZ |
18675 | LN_S="${LN_S}" |
18676 | ||
18677 | ||
18678 | EOF | |
18679 | cat >> $CONFIG_STATUS <<\EOF | |
10f2d63a | 18680 | |
3a922bb4 | 18681 | if test ! -L wx-config; then |
991a5759 | 18682 | chmod +x wx-config |
3a922bb4 RL |
18683 | mv wx-config wx${TOOLCHAIN_NAME}-config |
18684 | ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config | |
991a5759 | 18685 | fi |
665bbe97 | 18686 | |
00cf1208 RR |
18687 | if test ! -d lib; then |
18688 | mkdir lib | |
18689 | fi | |
18690 | if test ! -d lib/wx; then | |
18691 | mkdir lib/wx | |
18692 | fi | |
18693 | if test ! -d lib/wx/include; then | |
18694 | mkdir lib/wx/include | |
18695 | fi | |
3a922bb4 RL |
18696 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then |
18697 | mkdir lib/wx/include/${TOOLCHAIN_NAME} | |
00cf1208 | 18698 | fi |
3a922bb4 RL |
18699 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then |
18700 | mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx | |
00cf1208 RR |
18701 | fi |
18702 | if test -f setup.h; then | |
3a922bb4 | 18703 | mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h |
00cf1208 | 18704 | fi |
698dcdb6 VZ |
18705 | |
18706 | exit 0 | |
10f2d63a VZ |
18707 | EOF |
18708 | chmod +x $CONFIG_STATUS | |
698dcdb6 VZ |
18709 | rm -fr confdefs* $ac_clean_files |
18710 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
10f2d63a | 18711 | |
2224580a VZ |
18712 | if test "$no_recursion" != yes; then |
18713 | ||
18714 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
18715 | ac_sub_configure_args= | |
18716 | ac_prev= | |
18717 | for ac_arg in $ac_configure_args; do | |
18718 | if test -n "$ac_prev"; then | |
18719 | ac_prev= | |
18720 | continue | |
18721 | fi | |
698dcdb6 | 18722 | case "$ac_arg" in |
2224580a VZ |
18723 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
18724 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
18725 | ac_prev=cache_file ;; | |
18726 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
698dcdb6 | 18727 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
2224580a VZ |
18728 | ;; |
18729 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
18730 | ac_prev=srcdir ;; | |
18731 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
18732 | ;; | |
18733 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
18734 | esac | |
18735 | done | |
18736 | ||
698dcdb6 | 18737 | for ac_config_dir in demos samples utils contrib; do |
2224580a VZ |
18738 | |
18739 | # Do not complain, so a configure script can configure whichever | |
18740 | # parts of a large source tree are present. | |
698dcdb6 VZ |
18741 | if test ! -d $srcdir/$ac_config_dir; then |
18742 | continue | |
18743 | fi | |
18744 | ||
18745 | echo configuring in $ac_config_dir | |
2224580a | 18746 | |
698dcdb6 | 18747 | case "$srcdir" in |
2224580a VZ |
18748 | .) ;; |
18749 | *) | |
698dcdb6 VZ |
18750 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; |
18751 | else | |
18752 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
18753 | fi | |
18754 | ;; | |
2224580a VZ |
18755 | esac |
18756 | ||
18757 | ac_popdir=`pwd` | |
698dcdb6 | 18758 | cd $ac_config_dir |
2224580a | 18759 | |
698dcdb6 VZ |
18760 | # A "../" for each directory in /$ac_config_dir. |
18761 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
2224580a | 18762 | |
698dcdb6 | 18763 | case "$srcdir" in |
2224580a VZ |
18764 | .) # No --srcdir option. We are building in place. |
18765 | ac_sub_srcdir=$srcdir ;; | |
698dcdb6 VZ |
18766 | /*) # Absolute path. |
18767 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
2224580a | 18768 | *) # Relative path. |
698dcdb6 | 18769 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; |
2224580a VZ |
18770 | esac |
18771 | ||
18772 | # Check for guested configure; otherwise get Cygnus style configure. | |
698dcdb6 VZ |
18773 | if test -f $ac_sub_srcdir/configure; then |
18774 | ac_sub_configure=$ac_sub_srcdir/configure | |
2224580a VZ |
18775 | elif test -f $ac_sub_srcdir/configure.in; then |
18776 | ac_sub_configure=$ac_configure | |
18777 | else | |
698dcdb6 | 18778 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 |
2224580a VZ |
18779 | ac_sub_configure= |
18780 | fi | |
18781 | ||
18782 | # The recursion is here. | |
18783 | if test -n "$ac_sub_configure"; then | |
698dcdb6 | 18784 | |
2224580a | 18785 | # Make the cache file name correct relative to the subdirectory. |
698dcdb6 VZ |
18786 | case "$cache_file" in |
18787 | /*) ac_sub_cache_file=$cache_file ;; | |
2224580a | 18788 | *) # Relative path. |
698dcdb6 | 18789 | ac_sub_cache_file="$ac_dots$cache_file" ;; |
2224580a | 18790 | esac |
698dcdb6 VZ |
18791 | case "$ac_given_INSTALL" in |
18792 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
18793 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
18794 | esac | |
2224580a | 18795 | |
698dcdb6 | 18796 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" |
2224580a | 18797 | # The eval makes quoting arguments work. |
698dcdb6 VZ |
18798 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir |
18799 | then : | |
18800 | else | |
18801 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
18802 | fi | |
2224580a VZ |
18803 | fi |
18804 | ||
18805 | cd $ac_popdir | |
18806 | done | |
18807 | fi | |
18808 | ||
698dcdb6 | 18809 |