]>
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 | |
77e13408 | 71 | --with-msw use MS-Windows" |
698dcdb6 VZ |
72 | ac_help="$ac_help |
73 | --with-pm use OS/2 Presentation Manager" | |
1e6feb95 | 74 | ac_help="$ac_help |
b3e8d00a | 75 | --with-mgl use SciTech MGL" |
698dcdb6 | 76 | ac_help="$ac_help |
8168de4c | 77 | --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)" |
698dcdb6 | 78 | ac_help="$ac_help |
8168de4c | 79 | --with-libpng use libpng (PNG image format)" |
698dcdb6 | 80 | ac_help="$ac_help |
8168de4c | 81 | --with-libjpeg use libjpeg (JPEG file format)" |
698dcdb6 | 82 | ac_help="$ac_help |
8168de4c | 83 | --with-libtiff use libtiff (TIFF file format)" |
698dcdb6 | 84 | ac_help="$ac_help |
8168de4c | 85 | --with-freetype use freetype (font rasterizer)" |
698dcdb6 | 86 | ac_help="$ac_help |
8168de4c | 87 | --with-opengl use OpenGL (or Mesa)" |
698dcdb6 | 88 | ac_help="$ac_help |
8168de4c | 89 | --with-dmalloc use dmalloc library (www.letters.com/dmalloc)" |
3e44f09d VZ |
90 | ac_help="$ac_help |
91 | --with-regex enable support for wxRegEx class" | |
698dcdb6 | 92 | ac_help="$ac_help |
8168de4c | 93 | --with-zlib use zlib for LZW compression" |
698dcdb6 | 94 | ac_help="$ac_help |
8168de4c | 95 | --with-odbc use the IODBC and wxODBC classes" |
698dcdb6 | 96 | ac_help="$ac_help |
8168de4c | 97 | --enable-shared create shared library code" |
698dcdb6 | 98 | ac_help="$ac_help |
3a922bb4 | 99 | --enable-soname set the DT_SONAME field in ELF shared libraries" |
698dcdb6 | 100 | ac_help="$ac_help |
8168de4c | 101 | --enable-optimise create optimised code" |
698dcdb6 | 102 | ac_help="$ac_help |
8168de4c | 103 | --enable-debug same as debug_flag and debug_info" |
683dccda GD |
104 | ac_help="$ac_help |
105 | --enable-precomp enable use of precompiled headers (Mac OS X)" | |
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 | |
77e13408 | 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 | |
77e13408 | 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 | |
77e13408 | 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 | |
978f1259 RL |
1008 | WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER |
1009 | ||
6c01ec02 | 1010 | WX_CURRENT=1 |
6426998c RL |
1011 | WX_REVISION=0 |
1012 | WX_AGE=0 | |
1013 | ||
698dcdb6 VZ |
1014 | |
1015 | ||
10f2d63a VZ |
1016 | USE_UNIX=1 |
1017 | USE_WIN32=0 | |
b12915c1 | 1018 | USE_BEOS=0 |
1216f52d | 1019 | USE_MAC=0 |
b12915c1 | 1020 | |
10f2d63a VZ |
1021 | USE_LINUX= |
1022 | USE_SGI= | |
1023 | USE_HPUX= | |
1024 | USE_SYSV= | |
1025 | USE_SVR4= | |
1026 | USE_AIX= | |
1027 | USE_SUN= | |
1028 | USE_SOLARIS= | |
1029 | USE_SUNOS= | |
1030 | USE_ALPHA= | |
7cf43d5e | 1031 | USE_IA64= |
10f2d63a VZ |
1032 | USE_OSF= |
1033 | USE_BSD= | |
f11bdd03 | 1034 | USE_DARWIN= |
10f2d63a | 1035 | USE_FREEBSD= |
95c8801c | 1036 | USE_OPENBSD= |
f6bcfd97 | 1037 | USE_NETBSD= |
10f2d63a VZ |
1038 | USE_VMS= |
1039 | USE_ULTRIX= | |
10f2d63a VZ |
1040 | USE_DATA_GENERAL= |
1041 | ||
ab9b9eab VZ |
1042 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 |
1043 | ||
77e13408 | 1044 | ALL_TOOLKITS="GTK MAC MGL MOTIF MSW PM WINE" |
10f2d63a VZ |
1045 | |
1046 | DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1047 | DEFAULT_wxUSE_MAC=0 |
1048 | DEFAULT_wxUSE_MGL=0 | |
10f2d63a VZ |
1049 | DEFAULT_wxUSE_MOTIF=0 |
1050 | DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1051 | DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1052 | DEFAULT_wxUSE_WINE=0 |
10f2d63a VZ |
1053 | |
1054 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1055 | DEFAULT_DEFAULT_wxUSE_MAC=0 |
1056 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
10f2d63a VZ |
1057 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 |
1058 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1059 | DEFAULT_DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1060 | DEFAULT_DEFAULT_wxUSE_WINE=0 |
10f2d63a | 1061 | |
d6a55c4b | 1062 | PROGRAM_EXT= |
3a922bb4 | 1063 | SO_SUFFIX=so |
d6a55c4b | 1064 | |
10f2d63a VZ |
1065 | case "${host}" in |
1066 | *-hp-hpux* ) | |
1067 | USE_HPUX=1 | |
1068 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1069 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
3a922bb4 | 1070 | SO_SUFFIX=sl |
698dcdb6 | 1071 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1072 | #define __HPUX__ 1 |
1073 | EOF | |
1074 | ||
1075 | ;; | |
1076 | *-*-linux* ) | |
1077 | USE_LINUX=1 | |
698dcdb6 | 1078 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1079 | #define __LINUX__ 1 |
1080 | EOF | |
1081 | ||
1082 | TMP=`uname -m` | |
1083 | if test "x$TMP" = "xalpha"; then | |
1084 | USE_ALPHA=1 | |
698dcdb6 | 1085 | cat >> confdefs.h <<\EOF |
10f2d63a | 1086 | #define __ALPHA__ 1 |
7cf43d5e RL |
1087 | EOF |
1088 | ||
1089 | fi | |
1090 | if test "x$TMP" = "xia64"; then | |
1091 | USE_IA64=1 | |
1092 | cat >> confdefs.h <<\EOF | |
1093 | #define __IA64__ 1 | |
10f2d63a VZ |
1094 | EOF |
1095 | ||
1096 | fi | |
1097 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1098 | ;; | |
1099 | *-*-irix5* | *-*-irix6* ) | |
1100 | USE_SGI=1 | |
1101 | USE_SVR4=1 | |
698dcdb6 | 1102 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1103 | #define __SGI__ 1 |
1104 | EOF | |
1105 | ||
698dcdb6 | 1106 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1107 | #define __SVR4__ 1 |
1108 | EOF | |
1109 | ||
1110 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1111 | ;; | |
1112 | *-*-solaris2* ) | |
1113 | USE_SUN=1 | |
1114 | USE_SOLARIS=1 | |
1115 | USE_SVR4=1 | |
698dcdb6 | 1116 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1117 | #define __SUN__ 1 |
1118 | EOF | |
1119 | ||
698dcdb6 | 1120 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1121 | #define __SOLARIS__ 1 |
1122 | EOF | |
1123 | ||
698dcdb6 | 1124 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1125 | #define __SVR4__ 1 |
1126 | EOF | |
1127 | ||
1128 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1129 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1130 | ;; |
1131 | *-*-sunos4* ) | |
1132 | USE_SUN=1 | |
1133 | USE_SUNOS=1 | |
1134 | USE_BSD=1 | |
698dcdb6 | 1135 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1136 | #define __SUN__ 1 |
1137 | EOF | |
1138 | ||
698dcdb6 | 1139 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1140 | #define __SUNOS__ 1 |
1141 | EOF | |
1142 | ||
698dcdb6 | 1143 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1144 | #define __BSD__ 1 |
1145 | EOF | |
1146 | ||
1147 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1148 | ;; | |
f6bcfd97 | 1149 | *-*-freebsd*) |
10f2d63a VZ |
1150 | USE_BSD=1 |
1151 | USE_FREEBSD=1 | |
698dcdb6 | 1152 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1153 | #define __FREEBSD__ 1 |
1154 | EOF | |
1155 | ||
698dcdb6 | 1156 | cat >> confdefs.h <<\EOF |
10f2d63a | 1157 | #define __BSD__ 1 |
95c8801c VS |
1158 | EOF |
1159 | ||
1160 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1161 | ;; | |
1162 | *-*-openbsd*) | |
1163 | USE_BSD=1 | |
1164 | USE_OPENBSD=1 | |
698dcdb6 | 1165 | cat >> confdefs.h <<\EOF |
95c8801c VS |
1166 | #define __FREEBSD__ 1 |
1167 | EOF | |
1168 | ||
698dcdb6 | 1169 | cat >> confdefs.h <<\EOF |
95c8801c | 1170 | #define __OPENBSD__ 1 |
f6bcfd97 BP |
1171 | EOF |
1172 | ||
1173 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1174 | ;; | |
1175 | *-*-netbsd*) | |
1176 | USE_BSD=1 | |
1177 | USE_NETBSD=1 | |
698dcdb6 | 1178 | cat >> confdefs.h <<\EOF |
f6bcfd97 BP |
1179 | #define __FREEBSD__ 1 |
1180 | EOF | |
1181 | ||
698dcdb6 | 1182 | cat >> confdefs.h <<\EOF |
f6bcfd97 | 1183 | #define __NETBSD__ 1 |
10f2d63a VZ |
1184 | EOF |
1185 | ||
1186 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1187 | ;; | |
1188 | *-*-osf* ) | |
1189 | USE_ALPHA=1 | |
1190 | USE_OSF=1 | |
698dcdb6 | 1191 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1192 | #define __ALPHA__ 1 |
1193 | EOF | |
1194 | ||
698dcdb6 | 1195 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1196 | #define __OSF__ 1 |
1197 | EOF | |
1198 | ||
1199 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
f6bcfd97 | 1200 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1201 | ;; |
1202 | *-*-dgux5* ) | |
1203 | USE_ALPHA=1 | |
1204 | USE_SVR4=1 | |
698dcdb6 | 1205 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1206 | #define __ALPHA__ 1 |
1207 | EOF | |
1208 | ||
698dcdb6 | 1209 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1210 | #define __SVR4__ 1 |
1211 | EOF | |
1212 | ||
1213 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1214 | ;; | |
1215 | *-*-sysv5* ) | |
1216 | USE_SYSV=1 | |
1217 | USE_SVR4=1 | |
698dcdb6 | 1218 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1219 | #define __SYSV__ 1 |
1220 | EOF | |
1221 | ||
698dcdb6 | 1222 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1223 | #define __SVR4__ 1 |
1224 | EOF | |
1225 | ||
1226 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1227 | ;; | |
1228 | *-*-aix* ) | |
1229 | USE_AIX=1 | |
1230 | USE_SYSV=1 | |
1231 | USE_SVR4=1 | |
698dcdb6 | 1232 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1233 | #define __AIX__ 1 |
1234 | EOF | |
1235 | ||
698dcdb6 | 1236 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1237 | #define __SYSV__ 1 |
1238 | EOF | |
1239 | ||
698dcdb6 | 1240 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1241 | #define __SVR4__ 1 |
1242 | EOF | |
1243 | ||
1244 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1245 | ;; | |
1246 | ||
1c8183e2 | 1247 | *-*-cygwin* | *-*-mingw32* ) |
10f2d63a VZ |
1248 | USE_UNIX=0 |
1249 | USE_WIN32=1 | |
3a922bb4 | 1250 | SO_SUFFIX=dll |
698dcdb6 | 1251 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1252 | #define __WIN32__ 1 |
1253 | EOF | |
1254 | ||
698dcdb6 | 1255 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1256 | #define __WIN95__ 1 |
1257 | EOF | |
1258 | ||
698dcdb6 | 1259 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1260 | #define __WINDOWS__ 1 |
1261 | EOF | |
1262 | ||
698dcdb6 | 1263 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1264 | #define __GNUWIN32__ 1 |
1265 | EOF | |
1266 | ||
698dcdb6 | 1267 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1268 | #define STRICT 1 |
1269 | EOF | |
1270 | ||
698dcdb6 | 1271 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1272 | #define WINVER 0x0400 |
1273 | EOF | |
1274 | ||
cf27ef00 | 1275 | PROGRAM_EXT=".exe" |
7b7a7637 | 1276 | RESCOMP=windres |
10f2d63a VZ |
1277 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
1278 | ;; | |
1279 | ||
6fa882bd | 1280 | *-pc-os2_emx | *-pc-os2-emx ) |
698dcdb6 | 1281 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1282 | #define __EMX__ 1 |
1283 | EOF | |
1284 | ||
cf27ef00 | 1285 | PROGRAM_EXT=".exe" |
e07802fc | 1286 | DEFAULT_DEFAULT_wxUSE_PM=1 |
10f2d63a VZ |
1287 | ;; |
1288 | ||
d08b457b GD |
1289 | powerpc-*-darwin* ) |
1290 | USE_BSD=1 | |
f11bdd03 | 1291 | USE_DARWIN=1 |
3a922bb4 | 1292 | SO_SUFFIX=dylib |
698dcdb6 | 1293 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1294 | #define __BSD__ 1 |
b4085ce6 GD |
1295 | EOF |
1296 | ||
698dcdb6 | 1297 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1298 | #define __DARWIN__ 1 |
d08b457b GD |
1299 | EOF |
1300 | ||
1301 | cat >> confdefs.h <<\EOF | |
1302 | #define __POWERPC__ 1 | |
b4085ce6 GD |
1303 | EOF |
1304 | ||
1305 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1306 | ;; | |
1307 | ||
b12915c1 VZ |
1308 | *-*-beos* ) |
1309 | USE_BEOS=1 | |
698dcdb6 | 1310 | cat >> confdefs.h <<\EOF |
b12915c1 VZ |
1311 | #define __BEOS__ 1 |
1312 | EOF | |
1313 | ||
1314 | ;; | |
1315 | ||
10f2d63a | 1316 | *) |
698dcdb6 | 1317 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } |
10f2d63a VZ |
1318 | esac |
1319 | ||
1320 | if test "$USE_UNIX" = 1 ; then | |
b12915c1 | 1321 | wxUSE_UNIX=yes |
698dcdb6 | 1322 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1323 | #define __UNIX__ 1 |
1324 | EOF | |
1325 | ||
10f2d63a VZ |
1326 | fi |
1327 | ||
2389f33b VZ |
1328 | if test "$USE_LINUX" = 1; then |
1329 | echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6 | |
978f1259 | 1330 | echo "configure:1331: checking for glibc 2.1 or later" >&5 |
2389f33b VZ |
1331 | if eval "test \"`echo '$''{'wx_lib_glibc21'+set}'`\" = set"; then |
1332 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1333 | else | |
1334 | cat > conftest.$ac_ext <<EOF | |
978f1259 | 1335 | #line 1336 "configure" |
2389f33b VZ |
1336 | #include "confdefs.h" |
1337 | #include <features.h> | |
1338 | int main() { | |
1339 | ||
1340 | #if !__GLIBC_PREREQ(2, 1) | |
1341 | #error not glibc2.1 | |
1342 | #endif | |
1343 | ||
1344 | ; return 0; } | |
1345 | EOF | |
978f1259 | 1346 | if { (eval echo configure:1347: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2389f33b VZ |
1347 | rm -rf conftest* |
1348 | ||
1349 | wx_lib_glibc21=yes | |
1350 | ||
1351 | else | |
1352 | echo "configure: failed program was:" >&5 | |
1353 | cat conftest.$ac_ext >&5 | |
1354 | rm -rf conftest* | |
1355 | ||
1356 | wx_lib_glibc21=no | |
1357 | ||
1358 | ||
1359 | fi | |
1360 | rm -f conftest* | |
1361 | ||
1362 | fi | |
1363 | ||
1364 | echo "$ac_t""$wx_lib_glibc21" 1>&6 | |
2389f33b VZ |
1365 | if test "$wx_lib_glibc21" = "yes"; then |
1366 | cat >> confdefs.h <<\EOF | |
1367 | #define wxHAVE_GLIBC2 1 | |
1368 | EOF | |
1369 | ||
1370 | fi | |
1371 | fi | |
10f2d63a | 1372 | |
1e487827 | 1373 | |
1e487827 | 1374 | |
6232543b | 1375 | |
10f2d63a VZ |
1376 | wx_arg_cache_file="configarg.cache" |
1377 | echo "loading argument cache $wx_arg_cache_file" | |
1378 | rm -f ${wx_arg_cache_file}.tmp | |
1379 | touch ${wx_arg_cache_file}.tmp | |
1380 | touch ${wx_arg_cache_file} | |
698dcdb6 | 1381 | |
10f2d63a VZ |
1382 | |
1383 | DEBUG_CONFIGURE=0 | |
1384 | if test $DEBUG_CONFIGURE = 1; then | |
1e6feb95 VZ |
1385 | DEFAULT_wxUSE_UNIVERSAL=no |
1386 | ||
10f2d63a VZ |
1387 | DEFAULT_wxUSE_THREADS=yes |
1388 | ||
1389 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1390 | DEFAULT_wxUSE_SONAME=no |
1e6feb95 | 1391 | DEFAULT_wxUSE_OPTIMISE=no |
10f2d63a VZ |
1392 | DEFAULT_wxUSE_PROFILE=no |
1393 | DEFAULT_wxUSE_NO_DEPS=no | |
f676c7ff MB |
1394 | DEFAULT_wxUSE_NO_RTTI=yes |
1395 | DEFAULT_wxUSE_NO_EXCEPTIONS=yes | |
10f2d63a VZ |
1396 | DEFAULT_wxUSE_PERMISSIVE=no |
1397 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1398 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1399 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1400 | DEFAULT_wxUSE_MEM_TRACING=no | |
1401 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1402 | DEFAULT_wxUSE_DMALLOC=no | |
683dccda | 1403 | DEFAULT_wxUSE_PRECOMP=yes |
10f2d63a VZ |
1404 | DEFAULT_wxUSE_APPLE_IEEE=no |
1405 | ||
1406 | DEFAULT_wxUSE_LOG=yes | |
1e6feb95 VZ |
1407 | DEFAULT_wxUSE_LOGWINDOW=no |
1408 | DEFAULT_wxUSE_LOGGUI=no | |
10f2d63a VZ |
1409 | |
1410 | DEFAULT_wxUSE_GUI=yes | |
1e6feb95 | 1411 | DEFAULT_wxUSE_CONTROLS=no |
10f2d63a | 1412 | |
3e44f09d | 1413 | DEFAULT_wxUSE_REGEX=no |
10f2d63a VZ |
1414 | DEFAULT_wxUSE_ZLIB=no |
1415 | DEFAULT_wxUSE_LIBPNG=no | |
1416 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 1417 | DEFAULT_wxUSE_LIBTIFF=no |
10f2d63a | 1418 | DEFAULT_wxUSE_ODBC=no |
3fed1840 | 1419 | DEFAULT_wxUSE_FREETYPE=no |
bdad4e7e | 1420 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1421 | |
eb4efbdc | 1422 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no |
4f3c5f06 | 1423 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
10f2d63a | 1424 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1425 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
1426 | DEFAULT_wxUSE_DATETIME=no | |
1427 | DEFAULT_wxUSE_TIMEDATE=no | |
1428 | DEFAULT_wxUSE_TIMER=no | |
1429 | DEFAULT_wxUSE_STOPWATCH=no | |
10f2d63a | 1430 | DEFAULT_wxUSE_FILE=no |
1e6feb95 | 1431 | DEFAULT_wxUSE_FFILE=no |
10f2d63a | 1432 | DEFAULT_wxUSE_TEXTFILE=no |
10f2d63a VZ |
1433 | DEFAULT_wxUSE_WAVE=no |
1434 | DEFAULT_wxUSE_INTL=no | |
1435 | DEFAULT_wxUSE_CONFIG=no | |
1e6feb95 | 1436 | DEFAULT_wxUSE_FONTMAP=no |
10f2d63a VZ |
1437 | DEFAULT_wxUSE_STREAMS=no |
1438 | DEFAULT_wxUSE_SOCKETS=no | |
1439 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
1440 | DEFAULT_wxUSE_SERIAL=no | |
1441 | DEFAULT_wxUSE_JOYSTICK=no | |
1442 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
1443 | DEFAULT_wxUSE_LONGLONG=no | |
e8f65ba6 | 1444 | DEFAULT_wxUSE_GEOMETRY=no |
10f2d63a VZ |
1445 | |
1446 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1447 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1448 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1449 | ||
1450 | DEFAULT_wxUSE_X_RESOURCES=no | |
1451 | DEFAULT_wxUSE_CLIPBOARD=no | |
1452 | DEFAULT_wxUSE_TOOLTIPS=no | |
1453 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
24fd6d87 | 1454 | DEFAULT_wxUSE_DRAGIMAGE=no |
10f2d63a VZ |
1455 | DEFAULT_wxUSE_SPLINES=no |
1456 | ||
1457 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1458 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1459 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1460 | ||
1461 | DEFAULT_wxUSE_PROLOGIO=no | |
1462 | DEFAULT_wxUSE_RESOURCES=no | |
1463 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1464 | DEFAULT_wxUSE_IPC=no | |
1465 | DEFAULT_wxUSE_HELP=no | |
29fd3c0c | 1466 | DEFAULT_wxUSE_MS_HTML_HELP=no |
3379ed37 | 1467 | DEFAULT_wxUSE_WXHTML_HELP=no |
24176f2c | 1468 | DEFAULT_wxUSE_TREELAYOUT=no |
10f2d63a | 1469 | DEFAULT_wxUSE_METAFILE=no |
1e6feb95 | 1470 | DEFAULT_wxUSE_MIMETYPE=no |
3e44f09d | 1471 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes |
10f2d63a VZ |
1472 | |
1473 | DEFAULT_wxUSE_COMMONDLGS=no | |
1e6feb95 VZ |
1474 | DEFAULT_wxUSE_CHOICEDLG=no |
1475 | DEFAULT_wxUSE_COLOURDLG=no | |
10f2d63a | 1476 | DEFAULT_wxUSE_DIRDLG=no |
1e6feb95 | 1477 | DEFAULT_wxUSE_FILEDLG=no |
8db37e06 | 1478 | DEFAULT_wxUSE_FINDREPLDLG=no |
1e6feb95 VZ |
1479 | DEFAULT_wxUSE_FONTDLG=no |
1480 | DEFAULT_wxUSE_MSGDLG=no | |
1481 | DEFAULT_wxUSE_NUMBERDLG=no | |
10f2d63a | 1482 | DEFAULT_wxUSE_TEXTDLG=no |
cbca9943 | 1483 | DEFAULT_wxUSE_SPLASH=no |
10f2d63a VZ |
1484 | DEFAULT_wxUSE_STARTUP_TIPS=no |
1485 | DEFAULT_wxUSE_PROGRESSDLG=no | |
b1f5d087 VZ |
1486 | DEFAULT_wxUSE_WIZARDDLG=no |
1487 | ||
1e6feb95 | 1488 | DEFAULT_wxUSE_MENUS=no |
10f2d63a VZ |
1489 | DEFAULT_wxUSE_MINIFRAME=no |
1490 | DEFAULT_wxUSE_HTML=no | |
24528b0c | 1491 | DEFAULT_wxUSE_FILESYSTEM=no |
10f2d63a VZ |
1492 | DEFAULT_wxUSE_FS_INET=no |
1493 | DEFAULT_wxUSE_FS_ZIP=no | |
1494 | DEFAULT_wxUSE_BUSYINFO=no | |
1495 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1e6feb95 | 1496 | DEFAULT_wxUSE_VALIDATORS=no |
10f2d63a VZ |
1497 | |
1498 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 | 1499 | DEFAULT_wxUSE_BUTTON=no |
10f2d63a | 1500 | DEFAULT_wxUSE_BMPBUTTON=no |
1e6feb95 VZ |
1501 | DEFAULT_wxUSE_CALCTRL=no |
1502 | DEFAULT_wxUSE_CARET=no | |
10f2d63a VZ |
1503 | DEFAULT_wxUSE_CHECKBOX=no |
1504 | DEFAULT_wxUSE_CHECKLST=no | |
1e6feb95 | 1505 | DEFAULT_wxUSE_CHOICE=no |
10f2d63a VZ |
1506 | DEFAULT_wxUSE_COMBOBOX=no |
1507 | DEFAULT_wxUSE_GAUGE=no | |
1508 | DEFAULT_wxUSE_GRID=no | |
1509 | DEFAULT_wxUSE_NEW_GRID=no | |
1510 | DEFAULT_wxUSE_IMAGLIST=no | |
1511 | DEFAULT_wxUSE_LISTBOX=no | |
1512 | DEFAULT_wxUSE_LISTCTRL=no | |
1513 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 1514 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
1515 | DEFAULT_wxUSE_RADIOBOX=no |
1516 | DEFAULT_wxUSE_RADIOBTN=no | |
1517 | DEFAULT_wxUSE_SASH=no | |
1518 | DEFAULT_wxUSE_SCROLLBAR=no | |
1519 | DEFAULT_wxUSE_SLIDER=no | |
1520 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 1521 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
1522 | DEFAULT_wxUSE_SPLITTER=no |
1523 | DEFAULT_wxUSE_STATBMP=no | |
1524 | DEFAULT_wxUSE_STATBOX=no | |
1525 | DEFAULT_wxUSE_STATLINE=no | |
1e6feb95 | 1526 | DEFAULT_wxUSE_STATTEXT=no |
10f2d63a VZ |
1527 | DEFAULT_wxUSE_STATUSBAR=yes |
1528 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1529 | DEFAULT_wxUSE_TEXTCTRL=no |
1db8dc4a | 1530 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 1531 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
1532 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
1533 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a | 1534 | DEFAULT_wxUSE_TREECTRL=no |
9f41d601 | 1535 | DEFAULT_wxUSE_POPUPWIN=no |
10f2d63a VZ |
1536 | |
1537 | DEFAULT_wxUSE_UNICODE=no | |
1538 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1539 | ||
edae8572 | 1540 | DEFAULT_wxUSE_PALETTE=no |
0046ff7c | 1541 | DEFAULT_wxUSE_IMAGE=no |
10f2d63a VZ |
1542 | DEFAULT_wxUSE_GIF=no |
1543 | DEFAULT_wxUSE_PCX=no | |
1544 | DEFAULT_wxUSE_PNM=no | |
0046ff7c | 1545 | DEFAULT_wxUSE_XPM=no |
10f2d63a | 1546 | else |
1e6feb95 VZ |
1547 | DEFAULT_wxUSE_UNIVERSAL=no |
1548 | ||
10f2d63a VZ |
1549 | DEFAULT_wxUSE_THREADS=yes |
1550 | ||
1551 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1552 | DEFAULT_wxUSE_SONAME=no |
10f2d63a VZ |
1553 | DEFAULT_wxUSE_OPTIMISE=yes |
1554 | DEFAULT_wxUSE_PROFILE=no | |
1555 | DEFAULT_wxUSE_NO_DEPS=no | |
f676c7ff MB |
1556 | DEFAULT_wxUSE_NO_RTTI=yes |
1557 | DEFAULT_wxUSE_NO_EXCEPTIONS=yes | |
10f2d63a VZ |
1558 | DEFAULT_wxUSE_PERMISSIVE=no |
1559 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1560 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1561 | DEFAULT_wxUSE_DEBUG_GDB=no | |
1562 | DEFAULT_wxUSE_MEM_TRACING=no | |
1563 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1564 | DEFAULT_wxUSE_DMALLOC=no | |
683dccda | 1565 | DEFAULT_wxUSE_PRECOMP=yes |
10f2d63a VZ |
1566 | DEFAULT_wxUSE_APPLE_IEEE=yes |
1567 | ||
1568 | DEFAULT_wxUSE_LOG=yes | |
d73be714 VZ |
1569 | DEFAULT_wxUSE_LOGWINDOW=yes |
1570 | DEFAULT_wxUSE_LOGGUI=yes | |
10f2d63a VZ |
1571 | |
1572 | DEFAULT_wxUSE_GUI=yes | |
1573 | ||
831b3152 | 1574 | DEFAULT_wxUSE_REGEX=yes |
10f2d63a VZ |
1575 | DEFAULT_wxUSE_ZLIB=yes |
1576 | DEFAULT_wxUSE_LIBPNG=yes | |
1577 | DEFAULT_wxUSE_LIBJPEG=yes | |
b47c832e | 1578 | DEFAULT_wxUSE_LIBTIFF=yes |
16b52fa1 | 1579 | DEFAULT_wxUSE_ODBC=no |
3fed1840 | 1580 | DEFAULT_wxUSE_FREETYPE=no |
bdad4e7e | 1581 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1582 | |
eb4efbdc | 1583 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes |
4f3c5f06 | 1584 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
10f2d63a | 1585 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1586 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
1587 | DEFAULT_wxUSE_DATETIME=yes | |
1588 | DEFAULT_wxUSE_TIMEDATE=no | |
1589 | DEFAULT_wxUSE_TIMER=yes | |
1590 | DEFAULT_wxUSE_STOPWATCH=yes | |
10f2d63a | 1591 | DEFAULT_wxUSE_FILE=yes |
1e6feb95 | 1592 | DEFAULT_wxUSE_FFILE=yes |
10f2d63a | 1593 | DEFAULT_wxUSE_TEXTFILE=yes |
10f2d63a VZ |
1594 | DEFAULT_wxUSE_WAVE=no |
1595 | DEFAULT_wxUSE_INTL=yes | |
1596 | DEFAULT_wxUSE_CONFIG=yes | |
1e6feb95 | 1597 | DEFAULT_wxUSE_FONTMAP=yes |
10f2d63a VZ |
1598 | DEFAULT_wxUSE_STREAMS=yes |
1599 | DEFAULT_wxUSE_SOCKETS=yes | |
1600 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
1601 | DEFAULT_wxUSE_SERIAL=yes | |
1602 | DEFAULT_wxUSE_JOYSTICK=yes | |
1603 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
b685cd9b | 1604 | DEFAULT_wxUSE_LONGLONG=yes |
e8f65ba6 | 1605 | DEFAULT_wxUSE_GEOMETRY=yes |
10f2d63a VZ |
1606 | |
1607 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
1608 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
1609 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
1610 | ||
1611 | DEFAULT_wxUSE_X_RESOURCES=no | |
1612 | DEFAULT_wxUSE_CLIPBOARD=yes | |
1613 | DEFAULT_wxUSE_TOOLTIPS=yes | |
1614 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
24fd6d87 | 1615 | DEFAULT_wxUSE_DRAGIMAGE=yes |
10f2d63a VZ |
1616 | DEFAULT_wxUSE_SPLINES=yes |
1617 | ||
1618 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
1619 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
1620 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
1621 | ||
1622 | DEFAULT_wxUSE_PROLOGIO=yes | |
1623 | DEFAULT_wxUSE_RESOURCES=yes | |
1624 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
1625 | DEFAULT_wxUSE_IPC=yes | |
1626 | DEFAULT_wxUSE_HELP=yes | |
29fd3c0c | 1627 | DEFAULT_wxUSE_MS_HTML_HELP=yes |
3379ed37 | 1628 | DEFAULT_wxUSE_WXHTML_HELP=yes |
24176f2c | 1629 | DEFAULT_wxUSE_TREELAYOUT=yes |
10f2d63a | 1630 | DEFAULT_wxUSE_METAFILE=yes |
1e6feb95 | 1631 | DEFAULT_wxUSE_MIMETYPE=yes |
3e44f09d | 1632 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes |
10f2d63a VZ |
1633 | |
1634 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1e6feb95 VZ |
1635 | DEFAULT_wxUSE_CHOICEDLG=yes |
1636 | DEFAULT_wxUSE_COLOURDLG=yes | |
10f2d63a | 1637 | DEFAULT_wxUSE_DIRDLG=yes |
1e6feb95 | 1638 | DEFAULT_wxUSE_FILEDLG=yes |
8db37e06 | 1639 | DEFAULT_wxUSE_FINDREPLDLG=yes |
1e6feb95 VZ |
1640 | DEFAULT_wxUSE_FONTDLG=yes |
1641 | DEFAULT_wxUSE_MSGDLG=yes | |
1642 | DEFAULT_wxUSE_NUMBERDLG=yes | |
10f2d63a | 1643 | DEFAULT_wxUSE_TEXTDLG=yes |
cbca9943 | 1644 | DEFAULT_wxUSE_SPLASH=yes |
10f2d63a VZ |
1645 | DEFAULT_wxUSE_STARTUP_TIPS=yes |
1646 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
f33f19dd VZ |
1647 | DEFAULT_wxUSE_WIZARDDLG=yes |
1648 | ||
1e6feb95 | 1649 | DEFAULT_wxUSE_MENUS=yes |
10f2d63a VZ |
1650 | DEFAULT_wxUSE_MINIFRAME=yes |
1651 | DEFAULT_wxUSE_HTML=yes | |
24528b0c | 1652 | DEFAULT_wxUSE_FILESYSTEM=yes |
10f2d63a VZ |
1653 | DEFAULT_wxUSE_FS_INET=yes |
1654 | DEFAULT_wxUSE_FS_ZIP=yes | |
1655 | DEFAULT_wxUSE_BUSYINFO=yes | |
1656 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
1657 | DEFAULT_wxUSE_VALIDATORS=yes | |
1658 | ||
1659 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 | 1660 | DEFAULT_wxUSE_BUTTON=yes |
10f2d63a | 1661 | DEFAULT_wxUSE_BMPBUTTON=yes |
1e6feb95 VZ |
1662 | DEFAULT_wxUSE_CALCTRL=yes |
1663 | DEFAULT_wxUSE_CARET=yes | |
10f2d63a VZ |
1664 | DEFAULT_wxUSE_CHECKBOX=yes |
1665 | DEFAULT_wxUSE_CHECKLST=yes | |
1666 | DEFAULT_wxUSE_CHOICE=yes | |
1667 | DEFAULT_wxUSE_COMBOBOX=yes | |
1668 | DEFAULT_wxUSE_GAUGE=yes | |
1669 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 1670 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
1671 | DEFAULT_wxUSE_IMAGLIST=yes |
1672 | DEFAULT_wxUSE_LISTBOX=yes | |
1673 | DEFAULT_wxUSE_LISTCTRL=yes | |
1674 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 1675 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
1676 | DEFAULT_wxUSE_RADIOBOX=yes |
1677 | DEFAULT_wxUSE_RADIOBTN=yes | |
1678 | DEFAULT_wxUSE_SASH=yes | |
1679 | DEFAULT_wxUSE_SCROLLBAR=yes | |
1680 | DEFAULT_wxUSE_SLIDER=yes | |
1681 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 1682 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
1683 | DEFAULT_wxUSE_SPLITTER=yes |
1684 | DEFAULT_wxUSE_STATBMP=yes | |
1685 | DEFAULT_wxUSE_STATBOX=yes | |
1686 | DEFAULT_wxUSE_STATLINE=yes | |
1e6feb95 | 1687 | DEFAULT_wxUSE_STATTEXT=yes |
10f2d63a VZ |
1688 | DEFAULT_wxUSE_STATUSBAR=yes |
1689 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1690 | DEFAULT_wxUSE_TEXTCTRL=yes |
1db8dc4a | 1691 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 1692 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
1693 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
1694 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a | 1695 | DEFAULT_wxUSE_TREECTRL=yes |
9f41d601 | 1696 | DEFAULT_wxUSE_POPUPWIN=yes |
10f2d63a VZ |
1697 | |
1698 | DEFAULT_wxUSE_UNICODE=no | |
1699 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1700 | ||
edae8572 | 1701 | DEFAULT_wxUSE_PALETTE=yes |
0046ff7c | 1702 | DEFAULT_wxUSE_IMAGE=yes |
10f2d63a VZ |
1703 | DEFAULT_wxUSE_GIF=yes |
1704 | DEFAULT_wxUSE_PCX=yes | |
1705 | DEFAULT_wxUSE_PNM=yes | |
0046ff7c | 1706 | DEFAULT_wxUSE_XPM=yes |
10f2d63a VZ |
1707 | fi |
1708 | ||
698dcdb6 VZ |
1709 | |
1710 | ||
10f2d63a VZ |
1711 | for toolkit in `echo $ALL_TOOLKITS`; do |
1712 | LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}` | |
1713 | if test "x$LINE" != x ; then | |
1714 | has_toolkit_in_cache=1 | |
1715 | eval "DEFAULT_$LINE" | |
1716 | eval "CACHE_$toolkit=1" | |
1717 | fi | |
1718 | done | |
1719 | ||
698dcdb6 VZ |
1720 | |
1721 | ||
1722 | echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6 | |
978f1259 | 1723 | echo "configure:1724: checking for --enable-gui" >&5 |
10f2d63a VZ |
1724 | no_cache=0 |
1725 | # Check whether --enable-gui or --disable-gui was given. | |
1726 | if test "${enable_gui+set}" = set; then | |
1727 | enableval="$enable_gui" | |
698dcdb6 | 1728 | |
10f2d63a VZ |
1729 | if test "$enableval" = yes; then |
1730 | ac_cv_use_gui='wxUSE_GUI=yes' | |
1731 | else | |
1732 | ac_cv_use_gui='wxUSE_GUI=no' | |
1733 | fi | |
698dcdb6 | 1734 | |
10f2d63a | 1735 | else |
698dcdb6 | 1736 | |
10f2d63a VZ |
1737 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` |
1738 | if test "x$LINE" != x ; then | |
1739 | eval "DEFAULT_$LINE" | |
1740 | else | |
1741 | no_cache=1 | |
1742 | fi | |
1743 | ||
1744 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
698dcdb6 VZ |
1745 | |
1746 | fi | |
10f2d63a VZ |
1747 | |
1748 | ||
1749 | eval "$ac_cv_use_gui" | |
1750 | if test "$no_cache" != 1; then | |
1751 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
1752 | fi | |
1753 | ||
1754 | if test "$wxUSE_GUI" = yes; then | |
698dcdb6 | 1755 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 1756 | else |
698dcdb6 | 1757 | echo "$ac_t""no" 1>&6 |
10f2d63a | 1758 | fi |
698dcdb6 | 1759 | |
10f2d63a | 1760 | |
b12915c1 | 1761 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a | 1762 | |
1e6feb95 VZ |
1763 | |
1764 | echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6 | |
978f1259 | 1765 | echo "configure:1766: checking for --enable-universal" >&5 |
1e6feb95 VZ |
1766 | no_cache=0 |
1767 | # Check whether --enable-universal or --disable-universal was given. | |
1768 | if test "${enable_universal+set}" = set; then | |
1769 | enableval="$enable_universal" | |
1770 | ||
1771 | if test "$enableval" = yes; then | |
1772 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
1773 | else | |
1774 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
1775 | fi | |
1776 | ||
1777 | else | |
1778 | ||
1779 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
1780 | if test "x$LINE" != x ; then | |
1781 | eval "DEFAULT_$LINE" | |
1782 | else | |
1783 | no_cache=1 | |
1784 | fi | |
1785 | ||
1786 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
1787 | ||
1788 | fi | |
1789 | ||
1790 | ||
1791 | eval "$ac_cv_use_universal" | |
1792 | if test "$no_cache" != 1; then | |
1793 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
1794 | fi | |
1795 | ||
1796 | if test "$wxUSE_UNIVERSAL" = yes; then | |
1797 | echo "$ac_t""yes" 1>&6 | |
1798 | else | |
1799 | echo "$ac_t""no" 1>&6 | |
1800 | fi | |
1801 | ||
10f2d63a VZ |
1802 | # Check whether --with-gtk or --without-gtk was given. |
1803 | if test "${with_gtk+set}" = set; then | |
1804 | withval="$with_gtk" | |
1805 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1806 | fi |
10f2d63a VZ |
1807 | |
1808 | # Check whether --with-motif or --without-motif was given. | |
1809 | if test "${with_motif+set}" = set; then | |
1810 | withval="$with_motif" | |
1811 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1812 | fi |
10f2d63a | 1813 | |
b4085ce6 GD |
1814 | # Check whether --with-mac or --without-mac was given. |
1815 | if test "${with_mac+set}" = set; then | |
1816 | withval="$with_mac" | |
1817 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
698dcdb6 | 1818 | fi |
b4085ce6 | 1819 | |
10f2d63a VZ |
1820 | # Check whether --with-wine or --without-wine was given. |
1821 | if test "${with_wine+set}" = set; then | |
1822 | withval="$with_wine" | |
1823 | wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1824 | fi |
10f2d63a | 1825 | |
77e13408 RL |
1826 | # Check whether --with-msw or --without-msw was given. |
1827 | if test "${with_msw+set}" = set; then | |
1828 | withval="$with_msw" | |
1829 | wxUSE_MSW="$withval" CACHE_MSW TOOLKIT_GIVEN=1 | |
698dcdb6 | 1830 | fi |
10f2d63a | 1831 | |
e07802fc VZ |
1832 | # Check whether --with-pm or --without-pm was given. |
1833 | if test "${with_pm+set}" = set; then | |
1834 | withval="$with_pm" | |
1835 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
698dcdb6 VZ |
1836 | fi |
1837 | ||
1e6feb95 VZ |
1838 | # Check whether --with-mgl or --without-mgl was given. |
1839 | if test "${with_mgl+set}" = set; then | |
1840 | withval="$with_mgl" | |
1841 | wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1 | |
1842 | fi | |
1843 | ||
10f2d63a | 1844 | |
8168de4c VZ |
1845 | # Check whether --enable-gtk2 or --disable-gtk2 was given. |
1846 | if test "${enable_gtk2+set}" = set; then | |
1847 | enableval="$enable_gtk2" | |
1848 | wxUSE_GTK2=1 | |
10f2d63a | 1849 | else |
8168de4c | 1850 | wxUSE_GTK2=0 |
698dcdb6 VZ |
1851 | fi |
1852 | ||
703e0a69 | 1853 | |
1e487827 | 1854 | |
698dcdb6 | 1855 | echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6 |
978f1259 | 1856 | echo "configure:1857: checking for --with-libpng" >&5 |
698dcdb6 VZ |
1857 | no_cache=0 |
1858 | # Check whether --with-libpng or --without-libpng was given. | |
b12915c1 VZ |
1859 | if test "${with_libpng+set}" = set; then |
1860 | withval="$with_libpng" | |
698dcdb6 | 1861 | |
10f2d63a | 1862 | if test "$withval" = yes; then |
b12915c1 | 1863 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
422107f9 | 1864 | elif test "$withval" = no; then |
b12915c1 | 1865 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
422107f9 VZ |
1866 | elif test "$withval" = sys; then |
1867 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
4f14bcd8 GD |
1868 | elif test "$withval" = builtin; then |
1869 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
422107f9 | 1870 | else |
4f14bcd8 | 1871 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 1872 | fi |
698dcdb6 | 1873 | |
10f2d63a | 1874 | else |
698dcdb6 | 1875 | |
b12915c1 | 1876 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
1877 | if test "x$LINE" != x ; then |
1878 | eval "DEFAULT_$LINE" | |
1879 | else | |
1880 | no_cache=1 | |
1881 | fi | |
1882 | ||
b12915c1 | 1883 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
698dcdb6 VZ |
1884 | |
1885 | fi | |
10f2d63a VZ |
1886 | |
1887 | ||
b12915c1 | 1888 | eval "$ac_cv_use_libpng" |
10f2d63a | 1889 | if test "$no_cache" != 1; then |
b12915c1 | 1890 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1891 | fi |
1892 | ||
b12915c1 | 1893 | if test "$wxUSE_LIBPNG" = yes; then |
698dcdb6 | 1894 | echo "$ac_t""yes" 1>&6 |
422107f9 | 1895 | elif test "$wxUSE_LIBPNG" = no; then |
698dcdb6 | 1896 | echo "$ac_t""no" 1>&6 |
422107f9 | 1897 | elif test "$wxUSE_LIBPNG" = sys; then |
698dcdb6 | 1898 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
1899 | elif test "$wxUSE_LIBPNG" = builtin; then |
1900 | echo "$ac_t""builtin version" 1>&6 | |
422107f9 | 1901 | else |
4f14bcd8 | 1902 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 1903 | fi |
698dcdb6 | 1904 | |
10f2d63a | 1905 | |
698dcdb6 | 1906 | echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6 |
978f1259 | 1907 | echo "configure:1908: checking for --with-libjpeg" >&5 |
10f2d63a | 1908 | no_cache=0 |
698dcdb6 | 1909 | # Check whether --with-libjpeg or --without-libjpeg was given. |
b12915c1 VZ |
1910 | if test "${with_libjpeg+set}" = set; then |
1911 | withval="$with_libjpeg" | |
698dcdb6 | 1912 | |
10f2d63a | 1913 | if test "$withval" = yes; then |
b12915c1 | 1914 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
422107f9 | 1915 | elif test "$withval" = no; then |
b12915c1 | 1916 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
422107f9 VZ |
1917 | elif test "$withval" = sys; then |
1918 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
4f14bcd8 GD |
1919 | elif test "$withval" = builtin; then |
1920 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
422107f9 | 1921 | else |
4f14bcd8 | 1922 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 1923 | fi |
698dcdb6 | 1924 | |
10f2d63a | 1925 | else |
698dcdb6 | 1926 | |
b12915c1 | 1927 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
1928 | if test "x$LINE" != x ; then |
1929 | eval "DEFAULT_$LINE" | |
1930 | else | |
1931 | no_cache=1 | |
1932 | fi | |
1933 | ||
b12915c1 | 1934 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
698dcdb6 VZ |
1935 | |
1936 | fi | |
10f2d63a VZ |
1937 | |
1938 | ||
b12915c1 | 1939 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 1940 | if test "$no_cache" != 1; then |
b12915c1 | 1941 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1942 | fi |
1943 | ||
b12915c1 | 1944 | if test "$wxUSE_LIBJPEG" = yes; then |
698dcdb6 | 1945 | echo "$ac_t""yes" 1>&6 |
422107f9 | 1946 | elif test "$wxUSE_LIBJPEG" = no; then |
698dcdb6 | 1947 | echo "$ac_t""no" 1>&6 |
422107f9 | 1948 | elif test "$wxUSE_LIBJPEG" = sys; then |
698dcdb6 | 1949 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
1950 | elif test "$wxUSE_LIBJPEG" = builtin; then |
1951 | echo "$ac_t""builtin version" 1>&6 | |
422107f9 | 1952 | else |
4f14bcd8 | 1953 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 1954 | fi |
698dcdb6 | 1955 | |
10f2d63a | 1956 | |
698dcdb6 | 1957 | echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6 |
978f1259 | 1958 | echo "configure:1959: checking for --with-libtiff" >&5 |
10f2d63a | 1959 | no_cache=0 |
698dcdb6 | 1960 | # Check whether --with-libtiff or --without-libtiff was given. |
b12915c1 VZ |
1961 | if test "${with_libtiff+set}" = set; then |
1962 | withval="$with_libtiff" | |
698dcdb6 | 1963 | |
10f2d63a | 1964 | if test "$withval" = yes; then |
b12915c1 | 1965 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
0dcf9893 | 1966 | elif test "$withval" = no; then |
b12915c1 | 1967 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
0dcf9893 VZ |
1968 | elif test "$withval" = sys; then |
1969 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
4f14bcd8 GD |
1970 | elif test "$withval" = builtin; then |
1971 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
0dcf9893 | 1972 | else |
4f14bcd8 | 1973 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 1974 | fi |
698dcdb6 | 1975 | |
10f2d63a | 1976 | else |
698dcdb6 | 1977 | |
b12915c1 | 1978 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
1979 | if test "x$LINE" != x ; then |
1980 | eval "DEFAULT_$LINE" | |
1981 | else | |
1982 | no_cache=1 | |
1983 | fi | |
1984 | ||
b12915c1 | 1985 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
698dcdb6 VZ |
1986 | |
1987 | fi | |
10f2d63a VZ |
1988 | |
1989 | ||
b12915c1 | 1990 | eval "$ac_cv_use_libtiff" |
10f2d63a | 1991 | if test "$no_cache" != 1; then |
b12915c1 | 1992 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1993 | fi |
1994 | ||
b12915c1 | 1995 | if test "$wxUSE_LIBTIFF" = yes; then |
698dcdb6 | 1996 | echo "$ac_t""yes" 1>&6 |
0dcf9893 | 1997 | elif test "$wxUSE_LIBTIFF" = no; then |
698dcdb6 | 1998 | echo "$ac_t""no" 1>&6 |
0dcf9893 | 1999 | elif test "$wxUSE_LIBTIFF" = sys; then |
698dcdb6 | 2000 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
2001 | elif test "$wxUSE_LIBTIFF" = builtin; then |
2002 | echo "$ac_t""builtin version" 1>&6 | |
0dcf9893 | 2003 | else |
4f14bcd8 | 2004 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2005 | fi |
698dcdb6 | 2006 | |
10f2d63a | 2007 | |
698dcdb6 | 2008 | echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6 |
978f1259 | 2009 | echo "configure:2010: checking for --with-freetype" >&5 |
3fed1840 | 2010 | no_cache=0 |
698dcdb6 | 2011 | # Check whether --with-freetype or --without-freetype was given. |
3fed1840 RR |
2012 | if test "${with_freetype+set}" = set; then |
2013 | withval="$with_freetype" | |
698dcdb6 | 2014 | |
3fed1840 RR |
2015 | if test "$withval" = yes; then |
2016 | ac_cv_use_freetype='wxUSE_FREETYPE=yes' | |
2017 | elif test "$withval" = no; then | |
2018 | ac_cv_use_freetype='wxUSE_FREETYPE=no' | |
2019 | elif test "$withval" = sys; then | |
2020 | ac_cv_use_freetype='wxUSE_FREETYPE=sys' | |
4f14bcd8 GD |
2021 | elif test "$withval" = builtin; then |
2022 | ac_cv_use_freetype='wxUSE_FREETYPE=builtin' | |
3fed1840 | 2023 | else |
4f14bcd8 | 2024 | { echo "configure: error: Invalid value for --with-freetype: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3fed1840 | 2025 | fi |
698dcdb6 | 2026 | |
3fed1840 | 2027 | else |
698dcdb6 | 2028 | |
3fed1840 RR |
2029 | LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}` |
2030 | if test "x$LINE" != x ; then | |
2031 | eval "DEFAULT_$LINE" | |
2032 | else | |
2033 | no_cache=1 | |
2034 | fi | |
2035 | ||
2036 | ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE | |
698dcdb6 VZ |
2037 | |
2038 | fi | |
3fed1840 RR |
2039 | |
2040 | ||
2041 | eval "$ac_cv_use_freetype" | |
2042 | if test "$no_cache" != 1; then | |
2043 | echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp | |
2044 | fi | |
2045 | ||
2046 | if test "$wxUSE_FREETYPE" = yes; then | |
698dcdb6 | 2047 | echo "$ac_t""yes" 1>&6 |
3fed1840 | 2048 | elif test "$wxUSE_FREETYPE" = no; then |
698dcdb6 | 2049 | echo "$ac_t""no" 1>&6 |
3fed1840 | 2050 | elif test "$wxUSE_FREETYPE" = sys; then |
698dcdb6 | 2051 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
2052 | elif test "$wxUSE_FREETYPE" = builtin; then |
2053 | echo "$ac_t""builtin version" 1>&6 | |
3fed1840 | 2054 | else |
4f14bcd8 | 2055 | { echo "configure: error: Invalid value for --with-freetype: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3fed1840 | 2056 | fi |
698dcdb6 | 2057 | |
3fed1840 | 2058 | |
698dcdb6 | 2059 | echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6 |
978f1259 | 2060 | echo "configure:2061: checking for --with-opengl" >&5 |
10f2d63a | 2061 | no_cache=0 |
698dcdb6 | 2062 | # Check whether --with-opengl or --without-opengl was given. |
b12915c1 VZ |
2063 | if test "${with_opengl+set}" = set; then |
2064 | withval="$with_opengl" | |
698dcdb6 | 2065 | |
10f2d63a | 2066 | if test "$withval" = yes; then |
b12915c1 | 2067 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 2068 | else |
b12915c1 | 2069 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a | 2070 | fi |
698dcdb6 | 2071 | |
10f2d63a | 2072 | else |
698dcdb6 | 2073 | |
b12915c1 | 2074 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` |
10f2d63a VZ |
2075 | if test "x$LINE" != x ; then |
2076 | eval "DEFAULT_$LINE" | |
2077 | else | |
2078 | no_cache=1 | |
2079 | fi | |
2080 | ||
b12915c1 | 2081 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
698dcdb6 VZ |
2082 | |
2083 | fi | |
10f2d63a VZ |
2084 | |
2085 | ||
b12915c1 | 2086 | eval "$ac_cv_use_opengl" |
10f2d63a | 2087 | if test "$no_cache" != 1; then |
b12915c1 | 2088 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2089 | fi |
2090 | ||
b12915c1 | 2091 | if test "$wxUSE_OPENGL" = yes; then |
698dcdb6 | 2092 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2093 | else |
698dcdb6 | 2094 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2095 | fi |
698dcdb6 | 2096 | |
10f2d63a | 2097 | |
b12915c1 VZ |
2098 | fi |
2099 | ||
1e487827 | 2100 | |
698dcdb6 | 2101 | echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6 |
978f1259 | 2102 | echo "configure:2103: checking for --with-dmalloc" >&5 |
698dcdb6 VZ |
2103 | no_cache=0 |
2104 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
b12915c1 VZ |
2105 | if test "${with_dmalloc+set}" = set; then |
2106 | withval="$with_dmalloc" | |
698dcdb6 | 2107 | |
c7a2bf27 | 2108 | if test "$withval" = yes; then |
b12915c1 | 2109 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 2110 | else |
b12915c1 | 2111 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 | 2112 | fi |
698dcdb6 | 2113 | |
c7a2bf27 | 2114 | else |
698dcdb6 | 2115 | |
b12915c1 | 2116 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
2117 | if test "x$LINE" != x ; then |
2118 | eval "DEFAULT_$LINE" | |
2119 | else | |
2120 | no_cache=1 | |
2121 | fi | |
2122 | ||
b12915c1 | 2123 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
698dcdb6 VZ |
2124 | |
2125 | fi | |
c7a2bf27 RR |
2126 | |
2127 | ||
b12915c1 | 2128 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 2129 | if test "$no_cache" != 1; then |
b12915c1 | 2130 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
2131 | fi |
2132 | ||
b12915c1 | 2133 | if test "$wxUSE_DMALLOC" = yes; then |
698dcdb6 | 2134 | echo "$ac_t""yes" 1>&6 |
c7a2bf27 | 2135 | else |
698dcdb6 | 2136 | echo "$ac_t""no" 1>&6 |
c7a2bf27 | 2137 | fi |
698dcdb6 | 2138 | |
c7a2bf27 | 2139 | |
3e44f09d | 2140 | echo $ac_n "checking for --with-regex""... $ac_c" 1>&6 |
978f1259 | 2141 | echo "configure:2142: checking for --with-regex" >&5 |
3e44f09d VZ |
2142 | no_cache=0 |
2143 | # Check whether --with-regex or --without-regex was given. | |
2144 | if test "${with_regex+set}" = set; then | |
2145 | withval="$with_regex" | |
2146 | ||
2147 | if test "$withval" = yes; then | |
2148 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
2149 | elif test "$withval" = no; then | |
2150 | ac_cv_use_regex='wxUSE_REGEX=no' | |
2151 | elif test "$withval" = sys; then | |
2152 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
4f14bcd8 GD |
2153 | elif test "$withval" = builtin; then |
2154 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3e44f09d | 2155 | else |
4f14bcd8 | 2156 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3e44f09d VZ |
2157 | fi |
2158 | ||
2159 | else | |
2160 | ||
2161 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` | |
2162 | if test "x$LINE" != x ; then | |
2163 | eval "DEFAULT_$LINE" | |
2164 | else | |
2165 | no_cache=1 | |
2166 | fi | |
2167 | ||
2168 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
2169 | ||
2170 | fi | |
2171 | ||
2172 | ||
2173 | eval "$ac_cv_use_regex" | |
2174 | if test "$no_cache" != 1; then | |
2175 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
2176 | fi | |
2177 | ||
2178 | if test "$wxUSE_REGEX" = yes; then | |
2179 | echo "$ac_t""yes" 1>&6 | |
2180 | elif test "$wxUSE_REGEX" = no; then | |
2181 | echo "$ac_t""no" 1>&6 | |
2182 | elif test "$wxUSE_REGEX" = sys; then | |
2183 | echo "$ac_t""system version" 1>&6 | |
4f14bcd8 GD |
2184 | elif test "$wxUSE_REGEX" = builtin; then |
2185 | echo "$ac_t""builtin version" 1>&6 | |
3e44f09d | 2186 | else |
4f14bcd8 | 2187 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3e44f09d VZ |
2188 | fi |
2189 | ||
2190 | ||
698dcdb6 | 2191 | echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6 |
978f1259 | 2192 | echo "configure:2193: checking for --with-zlib" >&5 |
10f2d63a | 2193 | no_cache=0 |
698dcdb6 | 2194 | # Check whether --with-zlib or --without-zlib was given. |
b12915c1 VZ |
2195 | if test "${with_zlib+set}" = set; then |
2196 | withval="$with_zlib" | |
698dcdb6 | 2197 | |
10f2d63a | 2198 | if test "$withval" = yes; then |
b12915c1 | 2199 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
422107f9 | 2200 | elif test "$withval" = no; then |
b12915c1 | 2201 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
422107f9 VZ |
2202 | elif test "$withval" = sys; then |
2203 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
4f14bcd8 GD |
2204 | elif test "$withval" = builtin; then |
2205 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
422107f9 | 2206 | else |
4f14bcd8 | 2207 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2208 | fi |
698dcdb6 | 2209 | |
10f2d63a | 2210 | else |
698dcdb6 | 2211 | |
b12915c1 | 2212 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
2213 | if test "x$LINE" != x ; then |
2214 | eval "DEFAULT_$LINE" | |
2215 | else | |
2216 | no_cache=1 | |
2217 | fi | |
2218 | ||
b12915c1 | 2219 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
698dcdb6 VZ |
2220 | |
2221 | fi | |
10f2d63a VZ |
2222 | |
2223 | ||
b12915c1 | 2224 | eval "$ac_cv_use_zlib" |
10f2d63a | 2225 | if test "$no_cache" != 1; then |
b12915c1 | 2226 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2227 | fi |
2228 | ||
b12915c1 | 2229 | if test "$wxUSE_ZLIB" = yes; then |
698dcdb6 | 2230 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2231 | elif test "$wxUSE_ZLIB" = no; then |
698dcdb6 | 2232 | echo "$ac_t""no" 1>&6 |
422107f9 | 2233 | elif test "$wxUSE_ZLIB" = sys; then |
698dcdb6 | 2234 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
2235 | elif test "$wxUSE_ZLIB" = builtin; then |
2236 | echo "$ac_t""builtin version" 1>&6 | |
422107f9 | 2237 | else |
4f14bcd8 | 2238 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2239 | fi |
698dcdb6 | 2240 | |
10f2d63a | 2241 | |
698dcdb6 | 2242 | echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6 |
978f1259 | 2243 | echo "configure:2244: checking for --with-odbc" >&5 |
10f2d63a | 2244 | no_cache=0 |
698dcdb6 | 2245 | # Check whether --with-odbc or --without-odbc was given. |
10f2d63a VZ |
2246 | if test "${with_odbc+set}" = set; then |
2247 | withval="$with_odbc" | |
698dcdb6 | 2248 | |
10f2d63a VZ |
2249 | if test "$withval" = yes; then |
2250 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
2251 | else | |
2252 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
2253 | fi | |
698dcdb6 | 2254 | |
10f2d63a | 2255 | else |
698dcdb6 | 2256 | |
10f2d63a VZ |
2257 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` |
2258 | if test "x$LINE" != x ; then | |
2259 | eval "DEFAULT_$LINE" | |
2260 | else | |
2261 | no_cache=1 | |
2262 | fi | |
2263 | ||
2264 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
698dcdb6 VZ |
2265 | |
2266 | fi | |
10f2d63a VZ |
2267 | |
2268 | ||
2269 | eval "$ac_cv_use_odbc" | |
2270 | if test "$no_cache" != 1; then | |
2271 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
2272 | fi | |
2273 | ||
2274 | if test "$wxUSE_ODBC" = yes; then | |
698dcdb6 | 2275 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2276 | else |
698dcdb6 | 2277 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2278 | fi |
698dcdb6 VZ |
2279 | |
2280 | ||
10f2d63a | 2281 | |
698dcdb6 | 2282 | |
698dcdb6 | 2283 | echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6 |
978f1259 | 2284 | echo "configure:2285: checking for --enable-shared" >&5 |
10f2d63a VZ |
2285 | no_cache=0 |
2286 | # Check whether --enable-shared or --disable-shared was given. | |
2287 | if test "${enable_shared+set}" = set; then | |
2288 | enableval="$enable_shared" | |
698dcdb6 | 2289 | |
10f2d63a VZ |
2290 | if test "$enableval" = yes; then |
2291 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
2292 | else | |
2293 | ac_cv_use_shared='wxUSE_SHARED=no' | |
2294 | fi | |
698dcdb6 | 2295 | |
10f2d63a | 2296 | else |
698dcdb6 | 2297 | |
10f2d63a VZ |
2298 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` |
2299 | if test "x$LINE" != x ; then | |
2300 | eval "DEFAULT_$LINE" | |
2301 | else | |
2302 | no_cache=1 | |
2303 | fi | |
2304 | ||
2305 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
698dcdb6 VZ |
2306 | |
2307 | fi | |
10f2d63a VZ |
2308 | |
2309 | ||
2310 | eval "$ac_cv_use_shared" | |
2311 | if test "$no_cache" != 1; then | |
2312 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
2313 | fi | |
2314 | ||
2315 | if test "$wxUSE_SHARED" = yes; then | |
698dcdb6 | 2316 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2317 | else |
698dcdb6 | 2318 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2319 | fi |
698dcdb6 | 2320 | |
10f2d63a | 2321 | |
3a922bb4 | 2322 | echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6 |
978f1259 | 2323 | echo "configure:2324: checking for --enable-soname" >&5 |
00cf1208 | 2324 | no_cache=0 |
3a922bb4 RL |
2325 | # Check whether --enable-soname or --disable-soname was given. |
2326 | if test "${enable_soname+set}" = set; then | |
2327 | enableval="$enable_soname" | |
698dcdb6 | 2328 | |
00cf1208 | 2329 | if test "$enableval" = yes; then |
3a922bb4 | 2330 | ac_cv_use_soname='wxUSE_SONAME=yes' |
00cf1208 | 2331 | else |
3a922bb4 | 2332 | ac_cv_use_soname='wxUSE_SONAME=no' |
00cf1208 | 2333 | fi |
698dcdb6 | 2334 | |
00cf1208 | 2335 | else |
698dcdb6 | 2336 | |
3a922bb4 | 2337 | LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}` |
00cf1208 RR |
2338 | if test "x$LINE" != x ; then |
2339 | eval "DEFAULT_$LINE" | |
2340 | else | |
2341 | no_cache=1 | |
2342 | fi | |
2343 | ||
3a922bb4 | 2344 | ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME |
698dcdb6 VZ |
2345 | |
2346 | fi | |
00cf1208 RR |
2347 | |
2348 | ||
3a922bb4 | 2349 | eval "$ac_cv_use_soname" |
00cf1208 | 2350 | if test "$no_cache" != 1; then |
3a922bb4 | 2351 | echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp |
00cf1208 RR |
2352 | fi |
2353 | ||
3a922bb4 | 2354 | if test "$wxUSE_SONAME" = yes; then |
698dcdb6 | 2355 | echo "$ac_t""yes" 1>&6 |
00cf1208 | 2356 | else |
698dcdb6 | 2357 | echo "$ac_t""no" 1>&6 |
00cf1208 | 2358 | fi |
698dcdb6 | 2359 | |
00cf1208 | 2360 | |
698dcdb6 | 2361 | echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6 |
978f1259 | 2362 | echo "configure:2363: checking for --enable-optimise" >&5 |
10f2d63a VZ |
2363 | no_cache=0 |
2364 | # Check whether --enable-optimise or --disable-optimise was given. | |
2365 | if test "${enable_optimise+set}" = set; then | |
2366 | enableval="$enable_optimise" | |
698dcdb6 | 2367 | |
10f2d63a VZ |
2368 | if test "$enableval" = yes; then |
2369 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
2370 | else | |
2371 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
2372 | fi | |
698dcdb6 | 2373 | |
10f2d63a | 2374 | else |
698dcdb6 | 2375 | |
10f2d63a VZ |
2376 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` |
2377 | if test "x$LINE" != x ; then | |
2378 | eval "DEFAULT_$LINE" | |
2379 | else | |
2380 | no_cache=1 | |
2381 | fi | |
2382 | ||
2383 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
698dcdb6 VZ |
2384 | |
2385 | fi | |
10f2d63a VZ |
2386 | |
2387 | ||
2388 | eval "$ac_cv_use_optimise" | |
2389 | if test "$no_cache" != 1; then | |
2390 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
2391 | fi | |
2392 | ||
2393 | if test "$wxUSE_OPTIMISE" = yes; then | |
698dcdb6 | 2394 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2395 | else |
698dcdb6 | 2396 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2397 | fi |
698dcdb6 | 2398 | |
10f2d63a | 2399 | |
698dcdb6 | 2400 | echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6 |
978f1259 | 2401 | echo "configure:2402: checking for --enable-debug" >&5 |
10f2d63a VZ |
2402 | no_cache=0 |
2403 | # Check whether --enable-debug or --disable-debug was given. | |
2404 | if test "${enable_debug+set}" = set; then | |
2405 | enableval="$enable_debug" | |
698dcdb6 | 2406 | |
10f2d63a VZ |
2407 | if test "$enableval" = yes; then |
2408 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
2409 | else | |
2410 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
2411 | fi | |
698dcdb6 | 2412 | |
10f2d63a | 2413 | else |
698dcdb6 | 2414 | |
10f2d63a VZ |
2415 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` |
2416 | if test "x$LINE" != x ; then | |
2417 | eval "DEFAULT_$LINE" | |
2418 | else | |
2419 | no_cache=1 | |
2420 | fi | |
2421 | ||
2422 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
698dcdb6 VZ |
2423 | |
2424 | fi | |
10f2d63a VZ |
2425 | |
2426 | ||
2427 | eval "$ac_cv_use_debug" | |
2428 | if test "$no_cache" != 1; then | |
2429 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
2430 | fi | |
2431 | ||
2432 | if test "$wxUSE_DEBUG" = yes; then | |
698dcdb6 | 2433 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2434 | else |
698dcdb6 | 2435 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2436 | fi |
698dcdb6 | 2437 | |
10f2d63a | 2438 | |
683dccda GD |
2439 | |
2440 | echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6 | |
978f1259 | 2441 | echo "configure:2442: checking for --enable-precomp" >&5 |
683dccda GD |
2442 | no_cache=0 |
2443 | # Check whether --enable-precomp or --disable-precomp was given. | |
2444 | if test "${enable_precomp+set}" = set; then | |
2445 | enableval="$enable_precomp" | |
2446 | ||
2447 | if test "$enableval" = yes; then | |
2448 | ac_cv_use_precomp='wxUSE_PRECOMP=yes' | |
2449 | else | |
2450 | ac_cv_use_precomp='wxUSE_PRECOMP=no' | |
2451 | fi | |
2452 | ||
2453 | else | |
2454 | ||
2455 | LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}` | |
2456 | if test "x$LINE" != x ; then | |
2457 | eval "DEFAULT_$LINE" | |
2458 | else | |
2459 | no_cache=1 | |
2460 | fi | |
2461 | ||
2462 | ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP | |
2463 | ||
2464 | fi | |
2465 | ||
2466 | ||
2467 | eval "$ac_cv_use_precomp" | |
2468 | if test "$no_cache" != 1; then | |
2469 | echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp | |
2470 | fi | |
2471 | ||
2472 | if test "$wxUSE_PRECOMP" = yes; then | |
2473 | echo "$ac_t""yes" 1>&6 | |
2474 | else | |
2475 | echo "$ac_t""no" 1>&6 | |
2476 | fi | |
2477 | ||
2478 | ||
10f2d63a VZ |
2479 | if test "$wxUSE_DEBUG" = "yes"; then |
2480 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2481 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2482 | elif test "$wxUSE_DEBUG" = "no"; then | |
2483 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2484 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2485 | fi | |
2486 | ||
698dcdb6 VZ |
2487 | |
2488 | echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6 | |
978f1259 | 2489 | echo "configure:2490: checking for --enable-debug_flag" >&5 |
10f2d63a VZ |
2490 | no_cache=0 |
2491 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
2492 | if test "${enable_debug_flag+set}" = set; then | |
2493 | enableval="$enable_debug_flag" | |
698dcdb6 | 2494 | |
10f2d63a VZ |
2495 | if test "$enableval" = yes; then |
2496 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
2497 | else | |
2498 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
2499 | fi | |
698dcdb6 | 2500 | |
10f2d63a | 2501 | else |
698dcdb6 | 2502 | |
10f2d63a VZ |
2503 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` |
2504 | if test "x$LINE" != x ; then | |
2505 | eval "DEFAULT_$LINE" | |
2506 | else | |
2507 | no_cache=1 | |
2508 | fi | |
2509 | ||
2510 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
698dcdb6 VZ |
2511 | |
2512 | fi | |
10f2d63a VZ |
2513 | |
2514 | ||
2515 | eval "$ac_cv_use_debug_flag" | |
2516 | if test "$no_cache" != 1; then | |
2517 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
2518 | fi | |
2519 | ||
2520 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
698dcdb6 | 2521 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2522 | else |
698dcdb6 | 2523 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2524 | fi |
698dcdb6 | 2525 | |
10f2d63a | 2526 | |
698dcdb6 | 2527 | echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6 |
978f1259 | 2528 | echo "configure:2529: checking for --enable-debug_info" >&5 |
10f2d63a VZ |
2529 | no_cache=0 |
2530 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
2531 | if test "${enable_debug_info+set}" = set; then | |
2532 | enableval="$enable_debug_info" | |
698dcdb6 | 2533 | |
10f2d63a VZ |
2534 | if test "$enableval" = yes; then |
2535 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
2536 | else | |
2537 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
2538 | fi | |
698dcdb6 | 2539 | |
10f2d63a | 2540 | else |
698dcdb6 | 2541 | |
10f2d63a VZ |
2542 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` |
2543 | if test "x$LINE" != x ; then | |
2544 | eval "DEFAULT_$LINE" | |
2545 | else | |
2546 | no_cache=1 | |
2547 | fi | |
2548 | ||
2549 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
698dcdb6 VZ |
2550 | |
2551 | fi | |
10f2d63a VZ |
2552 | |
2553 | ||
2554 | eval "$ac_cv_use_debug_info" | |
2555 | if test "$no_cache" != 1; then | |
2556 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
2557 | fi | |
2558 | ||
2559 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
698dcdb6 | 2560 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2561 | else |
698dcdb6 | 2562 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2563 | fi |
698dcdb6 | 2564 | |
10f2d63a | 2565 | |
698dcdb6 | 2566 | echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6 |
978f1259 | 2567 | echo "configure:2568: checking for --enable-debug_gdb" >&5 |
10f2d63a VZ |
2568 | no_cache=0 |
2569 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
2570 | if test "${enable_debug_gdb+set}" = set; then | |
2571 | enableval="$enable_debug_gdb" | |
698dcdb6 | 2572 | |
10f2d63a VZ |
2573 | if test "$enableval" = yes; then |
2574 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
2575 | else | |
2576 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
2577 | fi | |
698dcdb6 | 2578 | |
10f2d63a | 2579 | else |
698dcdb6 | 2580 | |
10f2d63a VZ |
2581 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` |
2582 | if test "x$LINE" != x ; then | |
2583 | eval "DEFAULT_$LINE" | |
2584 | else | |
2585 | no_cache=1 | |
2586 | fi | |
2587 | ||
2588 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
698dcdb6 VZ |
2589 | |
2590 | fi | |
10f2d63a VZ |
2591 | |
2592 | ||
2593 | eval "$ac_cv_use_debug_gdb" | |
2594 | if test "$no_cache" != 1; then | |
2595 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
2596 | fi | |
2597 | ||
2598 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
698dcdb6 | 2599 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2600 | else |
698dcdb6 | 2601 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2602 | fi |
698dcdb6 | 2603 | |
10f2d63a | 2604 | |
698dcdb6 | 2605 | echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6 |
978f1259 | 2606 | echo "configure:2607: checking for --enable-debug_cntxt" >&5 |
10f2d63a VZ |
2607 | no_cache=0 |
2608 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
2609 | if test "${enable_debug_cntxt+set}" = set; then | |
2610 | enableval="$enable_debug_cntxt" | |
698dcdb6 | 2611 | |
10f2d63a VZ |
2612 | if test "$enableval" = yes; then |
2613 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
2614 | else | |
2615 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
2616 | fi | |
698dcdb6 | 2617 | |
10f2d63a | 2618 | else |
698dcdb6 | 2619 | |
10f2d63a VZ |
2620 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` |
2621 | if test "x$LINE" != x ; then | |
2622 | eval "DEFAULT_$LINE" | |
2623 | else | |
2624 | no_cache=1 | |
2625 | fi | |
2626 | ||
2627 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
698dcdb6 VZ |
2628 | |
2629 | fi | |
10f2d63a VZ |
2630 | |
2631 | ||
2632 | eval "$ac_cv_use_debug_cntxt" | |
2633 | if test "$no_cache" != 1; then | |
2634 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
2635 | fi | |
2636 | ||
2637 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
698dcdb6 | 2638 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2639 | else |
698dcdb6 | 2640 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2641 | fi |
698dcdb6 | 2642 | |
10f2d63a | 2643 | |
698dcdb6 | 2644 | echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6 |
978f1259 | 2645 | echo "configure:2646: checking for --enable-mem_tracing" >&5 |
10f2d63a VZ |
2646 | no_cache=0 |
2647 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
2648 | if test "${enable_mem_tracing+set}" = set; then | |
2649 | enableval="$enable_mem_tracing" | |
698dcdb6 | 2650 | |
10f2d63a VZ |
2651 | if test "$enableval" = yes; then |
2652 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
2653 | else | |
2654 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
2655 | fi | |
698dcdb6 | 2656 | |
10f2d63a | 2657 | else |
698dcdb6 | 2658 | |
10f2d63a VZ |
2659 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` |
2660 | if test "x$LINE" != x ; then | |
2661 | eval "DEFAULT_$LINE" | |
2662 | else | |
2663 | no_cache=1 | |
2664 | fi | |
2665 | ||
2666 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
698dcdb6 VZ |
2667 | |
2668 | fi | |
10f2d63a VZ |
2669 | |
2670 | ||
2671 | eval "$ac_cv_use_mem_tracing" | |
2672 | if test "$no_cache" != 1; then | |
2673 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
2674 | fi | |
2675 | ||
2676 | if test "$wxUSE_MEM_TRACING" = yes; then | |
698dcdb6 | 2677 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2678 | else |
698dcdb6 | 2679 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2680 | fi |
698dcdb6 | 2681 | |
10f2d63a | 2682 | |
698dcdb6 | 2683 | echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6 |
978f1259 | 2684 | echo "configure:2685: checking for --enable-profile" >&5 |
10f2d63a VZ |
2685 | no_cache=0 |
2686 | # Check whether --enable-profile or --disable-profile was given. | |
2687 | if test "${enable_profile+set}" = set; then | |
2688 | enableval="$enable_profile" | |
698dcdb6 | 2689 | |
10f2d63a VZ |
2690 | if test "$enableval" = yes; then |
2691 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
2692 | else | |
2693 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
2694 | fi | |
698dcdb6 | 2695 | |
10f2d63a | 2696 | else |
698dcdb6 | 2697 | |
10f2d63a VZ |
2698 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` |
2699 | if test "x$LINE" != x ; then | |
2700 | eval "DEFAULT_$LINE" | |
2701 | else | |
2702 | no_cache=1 | |
2703 | fi | |
2704 | ||
2705 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
698dcdb6 VZ |
2706 | |
2707 | fi | |
10f2d63a VZ |
2708 | |
2709 | ||
2710 | eval "$ac_cv_use_profile" | |
2711 | if test "$no_cache" != 1; then | |
2712 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
2713 | fi | |
2714 | ||
2715 | if test "$wxUSE_PROFILE" = yes; then | |
698dcdb6 | 2716 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2717 | else |
698dcdb6 | 2718 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2719 | fi |
698dcdb6 | 2720 | |
10f2d63a | 2721 | |
698dcdb6 | 2722 | echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6 |
978f1259 | 2723 | echo "configure:2724: checking for --enable-no_rtti" >&5 |
10f2d63a VZ |
2724 | no_cache=0 |
2725 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
2726 | if test "${enable_no_rtti+set}" = set; then | |
2727 | enableval="$enable_no_rtti" | |
698dcdb6 | 2728 | |
10f2d63a VZ |
2729 | if test "$enableval" = yes; then |
2730 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
2731 | else | |
2732 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
2733 | fi | |
698dcdb6 | 2734 | |
10f2d63a | 2735 | else |
698dcdb6 | 2736 | |
10f2d63a VZ |
2737 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` |
2738 | if test "x$LINE" != x ; then | |
2739 | eval "DEFAULT_$LINE" | |
2740 | else | |
2741 | no_cache=1 | |
2742 | fi | |
2743 | ||
2744 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
698dcdb6 VZ |
2745 | |
2746 | fi | |
10f2d63a VZ |
2747 | |
2748 | ||
2749 | eval "$ac_cv_use_no_rtti" | |
2750 | if test "$no_cache" != 1; then | |
2751 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
2752 | fi | |
2753 | ||
2754 | if test "$wxUSE_NO_RTTI" = yes; then | |
698dcdb6 | 2755 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2756 | else |
698dcdb6 | 2757 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2758 | fi |
698dcdb6 | 2759 | |
10f2d63a | 2760 | |
698dcdb6 | 2761 | echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6 |
978f1259 | 2762 | echo "configure:2763: checking for --enable-no_exceptions" >&5 |
10f2d63a VZ |
2763 | no_cache=0 |
2764 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
2765 | if test "${enable_no_exceptions+set}" = set; then | |
2766 | enableval="$enable_no_exceptions" | |
698dcdb6 | 2767 | |
10f2d63a VZ |
2768 | if test "$enableval" = yes; then |
2769 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
2770 | else | |
2771 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
2772 | fi | |
698dcdb6 | 2773 | |
10f2d63a | 2774 | else |
698dcdb6 | 2775 | |
10f2d63a VZ |
2776 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` |
2777 | if test "x$LINE" != x ; then | |
2778 | eval "DEFAULT_$LINE" | |
2779 | else | |
2780 | no_cache=1 | |
2781 | fi | |
2782 | ||
2783 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
698dcdb6 VZ |
2784 | |
2785 | fi | |
10f2d63a VZ |
2786 | |
2787 | ||
2788 | eval "$ac_cv_use_no_exceptions" | |
2789 | if test "$no_cache" != 1; then | |
2790 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
2791 | fi | |
2792 | ||
2793 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
698dcdb6 | 2794 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2795 | else |
698dcdb6 | 2796 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2797 | fi |
698dcdb6 | 2798 | |
10f2d63a | 2799 | |
698dcdb6 | 2800 | echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6 |
978f1259 | 2801 | echo "configure:2802: checking for --enable-permissive" >&5 |
10f2d63a VZ |
2802 | no_cache=0 |
2803 | # Check whether --enable-permissive or --disable-permissive was given. | |
2804 | if test "${enable_permissive+set}" = set; then | |
2805 | enableval="$enable_permissive" | |
698dcdb6 | 2806 | |
10f2d63a VZ |
2807 | if test "$enableval" = yes; then |
2808 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
2809 | else | |
2810 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
2811 | fi | |
698dcdb6 | 2812 | |
10f2d63a | 2813 | else |
698dcdb6 | 2814 | |
10f2d63a VZ |
2815 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` |
2816 | if test "x$LINE" != x ; then | |
2817 | eval "DEFAULT_$LINE" | |
2818 | else | |
2819 | no_cache=1 | |
2820 | fi | |
2821 | ||
2822 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
698dcdb6 VZ |
2823 | |
2824 | fi | |
10f2d63a VZ |
2825 | |
2826 | ||
2827 | eval "$ac_cv_use_permissive" | |
2828 | if test "$no_cache" != 1; then | |
2829 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
2830 | fi | |
2831 | ||
2832 | if test "$wxUSE_PERMISSIVE" = yes; then | |
698dcdb6 | 2833 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2834 | else |
698dcdb6 | 2835 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2836 | fi |
698dcdb6 | 2837 | |
10f2d63a | 2838 | |
698dcdb6 | 2839 | echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6 |
978f1259 | 2840 | echo "configure:2841: checking for --enable-no_deps" >&5 |
10f2d63a VZ |
2841 | no_cache=0 |
2842 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
2843 | if test "${enable_no_deps+set}" = set; then | |
2844 | enableval="$enable_no_deps" | |
698dcdb6 | 2845 | |
10f2d63a VZ |
2846 | if test "$enableval" = yes; then |
2847 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
2848 | else | |
2849 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
2850 | fi | |
698dcdb6 | 2851 | |
10f2d63a | 2852 | else |
698dcdb6 | 2853 | |
10f2d63a VZ |
2854 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` |
2855 | if test "x$LINE" != x ; then | |
2856 | eval "DEFAULT_$LINE" | |
2857 | else | |
2858 | no_cache=1 | |
2859 | fi | |
2860 | ||
2861 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
698dcdb6 VZ |
2862 | |
2863 | fi | |
10f2d63a VZ |
2864 | |
2865 | ||
2866 | eval "$ac_cv_use_no_deps" | |
2867 | if test "$no_cache" != 1; then | |
2868 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
2869 | fi | |
2870 | ||
2871 | if test "$wxUSE_NO_DEPS" = yes; then | |
698dcdb6 | 2872 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2873 | else |
698dcdb6 | 2874 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2875 | fi |
698dcdb6 VZ |
2876 | |
2877 | ||
10f2d63a | 2878 | |
54276ccf | 2879 | echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6 |
978f1259 | 2880 | echo "configure:2881: checking for --enable-compat20" >&5 |
54276ccf VZ |
2881 | no_cache=0 |
2882 | # Check whether --enable-compat20 or --disable-compat20 was given. | |
2883 | if test "${enable_compat20+set}" = set; then | |
2884 | enableval="$enable_compat20" | |
2885 | ||
2886 | if test "$enableval" = yes; then | |
2887 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes' | |
2888 | else | |
2889 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no' | |
2890 | fi | |
2891 | ||
2892 | else | |
2893 | ||
2894 | LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}` | |
2895 | if test "x$LINE" != x ; then | |
2896 | eval "DEFAULT_$LINE" | |
2897 | else | |
2898 | no_cache=1 | |
2899 | fi | |
2900 | ||
2901 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2 | |
2902 | ||
2903 | fi | |
2904 | ||
2905 | ||
2906 | eval "$ac_cv_use_compat20" | |
2907 | if test "$no_cache" != 1; then | |
2908 | echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp | |
2909 | fi | |
2910 | ||
2911 | if test "$WXWIN_COMPATIBILITY_2" = yes; then | |
2912 | echo "$ac_t""yes" 1>&6 | |
2913 | else | |
2914 | echo "$ac_t""no" 1>&6 | |
2915 | fi | |
2916 | ||
2917 | ||
2918 | echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6 | |
978f1259 | 2919 | echo "configure:2920: checking for --enable-compat22" >&5 |
54276ccf VZ |
2920 | no_cache=0 |
2921 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
2922 | if test "${enable_compat22+set}" = set; then | |
2923 | enableval="$enable_compat22" | |
2924 | ||
2925 | if test "$enableval" = yes; then | |
2926 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
2927 | else | |
2928 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
2929 | fi | |
2930 | ||
2931 | else | |
2932 | ||
2933 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` | |
2934 | if test "x$LINE" != x ; then | |
2935 | eval "DEFAULT_$LINE" | |
2936 | else | |
2937 | no_cache=1 | |
2938 | fi | |
2939 | ||
2940 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
2941 | ||
2942 | fi | |
2943 | ||
2944 | ||
2945 | eval "$ac_cv_use_compat22" | |
2946 | if test "$no_cache" != 1; then | |
2947 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
2948 | fi | |
2949 | ||
2950 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
2951 | echo "$ac_t""yes" 1>&6 | |
2952 | else | |
2953 | echo "$ac_t""no" 1>&6 | |
2954 | fi | |
2955 | ||
2956 | ||
2957 | ||
698dcdb6 VZ |
2958 | |
2959 | echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6 | |
978f1259 | 2960 | echo "configure:2961: checking for --enable-intl" >&5 |
10f2d63a VZ |
2961 | no_cache=0 |
2962 | # Check whether --enable-intl or --disable-intl was given. | |
2963 | if test "${enable_intl+set}" = set; then | |
2964 | enableval="$enable_intl" | |
698dcdb6 | 2965 | |
10f2d63a VZ |
2966 | if test "$enableval" = yes; then |
2967 | ac_cv_use_intl='wxUSE_INTL=yes' | |
2968 | else | |
2969 | ac_cv_use_intl='wxUSE_INTL=no' | |
2970 | fi | |
698dcdb6 | 2971 | |
10f2d63a | 2972 | else |
698dcdb6 | 2973 | |
10f2d63a VZ |
2974 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` |
2975 | if test "x$LINE" != x ; then | |
2976 | eval "DEFAULT_$LINE" | |
2977 | else | |
2978 | no_cache=1 | |
2979 | fi | |
2980 | ||
2981 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
698dcdb6 VZ |
2982 | |
2983 | fi | |
10f2d63a VZ |
2984 | |
2985 | ||
2986 | eval "$ac_cv_use_intl" | |
2987 | if test "$no_cache" != 1; then | |
2988 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
2989 | fi | |
2990 | ||
2991 | if test "$wxUSE_INTL" = yes; then | |
698dcdb6 | 2992 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2993 | else |
698dcdb6 | 2994 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2995 | fi |
698dcdb6 | 2996 | |
10f2d63a | 2997 | |
698dcdb6 | 2998 | echo $ac_n "checking for --enable-config""... $ac_c" 1>&6 |
978f1259 | 2999 | echo "configure:3000: checking for --enable-config" >&5 |
10f2d63a VZ |
3000 | no_cache=0 |
3001 | # Check whether --enable-config or --disable-config was given. | |
3002 | if test "${enable_config+set}" = set; then | |
3003 | enableval="$enable_config" | |
698dcdb6 | 3004 | |
10f2d63a VZ |
3005 | if test "$enableval" = yes; then |
3006 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
3007 | else | |
3008 | ac_cv_use_config='wxUSE_CONFIG=no' | |
3009 | fi | |
698dcdb6 | 3010 | |
10f2d63a | 3011 | else |
698dcdb6 | 3012 | |
10f2d63a VZ |
3013 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` |
3014 | if test "x$LINE" != x ; then | |
3015 | eval "DEFAULT_$LINE" | |
3016 | else | |
3017 | no_cache=1 | |
3018 | fi | |
3019 | ||
3020 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
698dcdb6 VZ |
3021 | |
3022 | fi | |
10f2d63a VZ |
3023 | |
3024 | ||
3025 | eval "$ac_cv_use_config" | |
3026 | if test "$no_cache" != 1; then | |
3027 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
3028 | fi | |
3029 | ||
3030 | if test "$wxUSE_CONFIG" = yes; then | |
698dcdb6 | 3031 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3032 | else |
698dcdb6 | 3033 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3034 | fi |
698dcdb6 VZ |
3035 | |
3036 | ||
b12915c1 | 3037 | |
698dcdb6 | 3038 | echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6 |
978f1259 | 3039 | echo "configure:3040: checking for --enable-sockets" >&5 |
10f2d63a VZ |
3040 | no_cache=0 |
3041 | # Check whether --enable-sockets or --disable-sockets was given. | |
3042 | if test "${enable_sockets+set}" = set; then | |
3043 | enableval="$enable_sockets" | |
698dcdb6 | 3044 | |
10f2d63a VZ |
3045 | if test "$enableval" = yes; then |
3046 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
3047 | else | |
3048 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
3049 | fi | |
698dcdb6 | 3050 | |
10f2d63a | 3051 | else |
698dcdb6 | 3052 | |
10f2d63a VZ |
3053 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` |
3054 | if test "x$LINE" != x ; then | |
3055 | eval "DEFAULT_$LINE" | |
3056 | else | |
3057 | no_cache=1 | |
3058 | fi | |
3059 | ||
3060 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
698dcdb6 VZ |
3061 | |
3062 | fi | |
10f2d63a VZ |
3063 | |
3064 | ||
3065 | eval "$ac_cv_use_sockets" | |
3066 | if test "$no_cache" != 1; then | |
3067 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
3068 | fi | |
3069 | ||
3070 | if test "$wxUSE_SOCKETS" = yes; then | |
698dcdb6 | 3071 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3072 | else |
698dcdb6 | 3073 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3074 | fi |
698dcdb6 | 3075 | |
b12915c1 | 3076 | |
698dcdb6 VZ |
3077 | |
3078 | echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6 | |
978f1259 | 3079 | echo "configure:3080: checking for --enable-ipc" >&5 |
10f2d63a | 3080 | no_cache=0 |
eb4efbdc VZ |
3081 | # Check whether --enable-ipc or --disable-ipc was given. |
3082 | if test "${enable_ipc+set}" = set; then | |
3083 | enableval="$enable_ipc" | |
698dcdb6 | 3084 | |
10f2d63a | 3085 | if test "$enableval" = yes; then |
eb4efbdc | 3086 | ac_cv_use_ipc='wxUSE_IPC=yes' |
10f2d63a | 3087 | else |
eb4efbdc | 3088 | ac_cv_use_ipc='wxUSE_IPC=no' |
10f2d63a | 3089 | fi |
698dcdb6 | 3090 | |
10f2d63a | 3091 | else |
698dcdb6 | 3092 | |
eb4efbdc | 3093 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` |
10f2d63a VZ |
3094 | if test "x$LINE" != x ; then |
3095 | eval "DEFAULT_$LINE" | |
3096 | else | |
3097 | no_cache=1 | |
3098 | fi | |
3099 | ||
eb4efbdc | 3100 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC |
698dcdb6 VZ |
3101 | |
3102 | fi | |
10f2d63a VZ |
3103 | |
3104 | ||
eb4efbdc | 3105 | eval "$ac_cv_use_ipc" |
10f2d63a | 3106 | if test "$no_cache" != 1; then |
eb4efbdc | 3107 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3108 | fi |
3109 | ||
eb4efbdc | 3110 | if test "$wxUSE_IPC" = yes; then |
698dcdb6 | 3111 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3112 | else |
698dcdb6 | 3113 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3114 | fi |
698dcdb6 VZ |
3115 | |
3116 | ||
eb4efbdc | 3117 | |
1e6feb95 | 3118 | echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6 |
978f1259 | 3119 | echo "configure:3120: checking for --enable-cmdline" >&5 |
1e6feb95 VZ |
3120 | no_cache=0 |
3121 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
3122 | if test "${enable_cmdline+set}" = set; then | |
3123 | enableval="$enable_cmdline" | |
3124 | ||
3125 | if test "$enableval" = yes; then | |
3126 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
3127 | else | |
3128 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
3129 | fi | |
3130 | ||
3131 | else | |
3132 | ||
3133 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
3134 | if test "x$LINE" != x ; then | |
3135 | eval "DEFAULT_$LINE" | |
3136 | else | |
3137 | no_cache=1 | |
3138 | fi | |
3139 | ||
3140 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
3141 | ||
3142 | fi | |
3143 | ||
3144 | ||
3145 | eval "$ac_cv_use_cmdline" | |
3146 | if test "$no_cache" != 1; then | |
3147 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
3148 | fi | |
3149 | ||
3150 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
3151 | echo "$ac_t""yes" 1>&6 | |
3152 | else | |
3153 | echo "$ac_t""no" 1>&6 | |
3154 | fi | |
3155 | ||
3156 | ||
3157 | echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6 | |
978f1259 | 3158 | echo "configure:3159: checking for --enable-datetime" >&5 |
1e6feb95 VZ |
3159 | no_cache=0 |
3160 | # Check whether --enable-datetime or --disable-datetime was given. | |
3161 | if test "${enable_datetime+set}" = set; then | |
3162 | enableval="$enable_datetime" | |
3163 | ||
3164 | if test "$enableval" = yes; then | |
3165 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
3166 | else | |
3167 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
3168 | fi | |
3169 | ||
3170 | else | |
3171 | ||
3172 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
3173 | if test "x$LINE" != x ; then | |
3174 | eval "DEFAULT_$LINE" | |
3175 | else | |
3176 | no_cache=1 | |
3177 | fi | |
3178 | ||
3179 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
3180 | ||
3181 | fi | |
3182 | ||
3183 | ||
3184 | eval "$ac_cv_use_datetime" | |
3185 | if test "$no_cache" != 1; then | |
3186 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
3187 | fi | |
3188 | ||
3189 | if test "$wxUSE_DATETIME" = yes; then | |
3190 | echo "$ac_t""yes" 1>&6 | |
3191 | else | |
3192 | echo "$ac_t""no" 1>&6 | |
3193 | fi | |
3194 | ||
3195 | ||
3196 | echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6 | |
978f1259 | 3197 | echo "configure:3198: checking for --enable-timedate" >&5 |
1e6feb95 VZ |
3198 | no_cache=0 |
3199 | # Check whether --enable-timedate or --disable-timedate was given. | |
3200 | if test "${enable_timedate+set}" = set; then | |
3201 | enableval="$enable_timedate" | |
3202 | ||
3203 | if test "$enableval" = yes; then | |
3204 | ac_cv_use_timedate='wxUSE_TIMEDATE=yes' | |
3205 | else | |
3206 | ac_cv_use_timedate='wxUSE_TIMEDATE=no' | |
3207 | fi | |
3208 | ||
3209 | else | |
3210 | ||
3211 | LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}` | |
3212 | if test "x$LINE" != x ; then | |
3213 | eval "DEFAULT_$LINE" | |
3214 | else | |
3215 | no_cache=1 | |
3216 | fi | |
3217 | ||
3218 | ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE | |
3219 | ||
3220 | fi | |
3221 | ||
3222 | ||
3223 | eval "$ac_cv_use_timedate" | |
3224 | if test "$no_cache" != 1; then | |
3225 | echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp | |
3226 | fi | |
3227 | ||
3228 | if test "$wxUSE_TIMEDATE" = yes; then | |
3229 | echo "$ac_t""yes" 1>&6 | |
3230 | else | |
3231 | echo "$ac_t""no" 1>&6 | |
3232 | fi | |
3233 | ||
3234 | ||
3235 | echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6 | |
978f1259 | 3236 | echo "configure:3237: checking for --enable-stopwatch" >&5 |
1e6feb95 VZ |
3237 | no_cache=0 |
3238 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
3239 | if test "${enable_stopwatch+set}" = set; then | |
3240 | enableval="$enable_stopwatch" | |
3241 | ||
3242 | if test "$enableval" = yes; then | |
3243 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
3244 | else | |
3245 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
3246 | fi | |
3247 | ||
3248 | else | |
3249 | ||
3250 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` | |
3251 | if test "x$LINE" != x ; then | |
3252 | eval "DEFAULT_$LINE" | |
3253 | else | |
3254 | no_cache=1 | |
3255 | fi | |
3256 | ||
3257 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
3258 | ||
3259 | fi | |
3260 | ||
3261 | ||
3262 | eval "$ac_cv_use_stopwatch" | |
3263 | if test "$no_cache" != 1; then | |
3264 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
3265 | fi | |
3266 | ||
3267 | if test "$wxUSE_STOPWATCH" = yes; then | |
3268 | echo "$ac_t""yes" 1>&6 | |
3269 | else | |
3270 | echo "$ac_t""no" 1>&6 | |
3271 | fi | |
3272 | ||
3273 | ||
698dcdb6 | 3274 | echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6 |
978f1259 | 3275 | echo "configure:3276: checking for --enable-dialupman" >&5 |
10f2d63a | 3276 | no_cache=0 |
eb4efbdc VZ |
3277 | # Check whether --enable-dialupman or --disable-dialupman was given. |
3278 | if test "${enable_dialupman+set}" = set; then | |
3279 | enableval="$enable_dialupman" | |
698dcdb6 | 3280 | |
10f2d63a | 3281 | if test "$enableval" = yes; then |
eb4efbdc | 3282 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' |
10f2d63a | 3283 | else |
eb4efbdc | 3284 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' |
10f2d63a | 3285 | fi |
698dcdb6 | 3286 | |
10f2d63a | 3287 | else |
698dcdb6 | 3288 | |
eb4efbdc | 3289 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3290 | if test "x$LINE" != x ; then |
3291 | eval "DEFAULT_$LINE" | |
3292 | else | |
3293 | no_cache=1 | |
3294 | fi | |
3295 | ||
eb4efbdc | 3296 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER |
698dcdb6 VZ |
3297 | |
3298 | fi | |
10f2d63a VZ |
3299 | |
3300 | ||
eb4efbdc | 3301 | eval "$ac_cv_use_dialupman" |
10f2d63a | 3302 | if test "$no_cache" != 1; then |
eb4efbdc | 3303 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3304 | fi |
3305 | ||
eb4efbdc | 3306 | if test "$wxUSE_DIALUP_MANAGER" = yes; then |
698dcdb6 | 3307 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3308 | else |
698dcdb6 | 3309 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3310 | fi |
698dcdb6 | 3311 | |
10f2d63a | 3312 | |
698dcdb6 | 3313 | echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6 |
978f1259 | 3314 | echo "configure:3315: checking for --enable-apple_ieee" >&5 |
10f2d63a VZ |
3315 | no_cache=0 |
3316 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
3317 | if test "${enable_apple_ieee+set}" = set; then | |
3318 | enableval="$enable_apple_ieee" | |
698dcdb6 | 3319 | |
10f2d63a VZ |
3320 | if test "$enableval" = yes; then |
3321 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
3322 | else | |
3323 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
3324 | fi | |
698dcdb6 | 3325 | |
10f2d63a | 3326 | else |
698dcdb6 | 3327 | |
10f2d63a VZ |
3328 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` |
3329 | if test "x$LINE" != x ; then | |
3330 | eval "DEFAULT_$LINE" | |
3331 | else | |
3332 | no_cache=1 | |
3333 | fi | |
3334 | ||
3335 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
698dcdb6 VZ |
3336 | |
3337 | fi | |
10f2d63a VZ |
3338 | |
3339 | ||
3340 | eval "$ac_cv_use_apple_ieee" | |
3341 | if test "$no_cache" != 1; then | |
3342 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
3343 | fi | |
3344 | ||
3345 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
698dcdb6 | 3346 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3347 | else |
698dcdb6 | 3348 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3349 | fi |
698dcdb6 | 3350 | |
10f2d63a | 3351 | |
1e6feb95 | 3352 | echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6 |
978f1259 | 3353 | echo "configure:3354: checking for --enable-timer" >&5 |
10f2d63a | 3354 | no_cache=0 |
1e6feb95 VZ |
3355 | # Check whether --enable-timer or --disable-timer was given. |
3356 | if test "${enable_timer+set}" = set; then | |
3357 | enableval="$enable_timer" | |
698dcdb6 | 3358 | |
10f2d63a | 3359 | if test "$enableval" = yes; then |
1e6feb95 | 3360 | ac_cv_use_timer='wxUSE_TIMER=yes' |
10f2d63a | 3361 | else |
1e6feb95 | 3362 | ac_cv_use_timer='wxUSE_TIMER=no' |
10f2d63a | 3363 | fi |
698dcdb6 | 3364 | |
10f2d63a | 3365 | else |
698dcdb6 | 3366 | |
1e6feb95 | 3367 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3368 | if test "x$LINE" != x ; then |
3369 | eval "DEFAULT_$LINE" | |
3370 | else | |
3371 | no_cache=1 | |
3372 | fi | |
3373 | ||
1e6feb95 | 3374 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER |
698dcdb6 VZ |
3375 | |
3376 | fi | |
10f2d63a VZ |
3377 | |
3378 | ||
1e6feb95 | 3379 | eval "$ac_cv_use_timer" |
10f2d63a | 3380 | if test "$no_cache" != 1; then |
1e6feb95 | 3381 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3382 | fi |
3383 | ||
1e6feb95 | 3384 | if test "$wxUSE_TIMER" = yes; then |
698dcdb6 | 3385 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3386 | else |
698dcdb6 | 3387 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3388 | fi |
698dcdb6 | 3389 | |
10f2d63a | 3390 | |
698dcdb6 | 3391 | echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6 |
978f1259 | 3392 | echo "configure:3393: checking for --enable-wave" >&5 |
10f2d63a VZ |
3393 | no_cache=0 |
3394 | # Check whether --enable-wave or --disable-wave was given. | |
3395 | if test "${enable_wave+set}" = set; then | |
3396 | enableval="$enable_wave" | |
698dcdb6 | 3397 | |
10f2d63a VZ |
3398 | if test "$enableval" = yes; then |
3399 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
3400 | else | |
3401 | ac_cv_use_wave='wxUSE_WAVE=no' | |
3402 | fi | |
698dcdb6 | 3403 | |
10f2d63a | 3404 | else |
698dcdb6 | 3405 | |
10f2d63a VZ |
3406 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` |
3407 | if test "x$LINE" != x ; then | |
3408 | eval "DEFAULT_$LINE" | |
3409 | else | |
3410 | no_cache=1 | |
3411 | fi | |
3412 | ||
3413 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
698dcdb6 VZ |
3414 | |
3415 | fi | |
10f2d63a VZ |
3416 | |
3417 | ||
3418 | eval "$ac_cv_use_wave" | |
3419 | if test "$no_cache" != 1; then | |
3420 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
3421 | fi | |
3422 | ||
3423 | if test "$wxUSE_WAVE" = yes; then | |
698dcdb6 | 3424 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3425 | else |
698dcdb6 | 3426 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3427 | fi |
698dcdb6 | 3428 | |
10f2d63a | 3429 | |
698dcdb6 | 3430 | echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6 |
978f1259 | 3431 | echo "configure:3432: checking for --enable-fraction" >&5 |
10f2d63a VZ |
3432 | no_cache=0 |
3433 | # Check whether --enable-fraction or --disable-fraction was given. | |
3434 | if test "${enable_fraction+set}" = set; then | |
3435 | enableval="$enable_fraction" | |
698dcdb6 | 3436 | |
10f2d63a VZ |
3437 | if test "$enableval" = yes; then |
3438 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
3439 | else | |
3440 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
3441 | fi | |
698dcdb6 | 3442 | |
10f2d63a | 3443 | else |
698dcdb6 | 3444 | |
10f2d63a VZ |
3445 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` |
3446 | if test "x$LINE" != x ; then | |
3447 | eval "DEFAULT_$LINE" | |
3448 | else | |
3449 | no_cache=1 | |
3450 | fi | |
3451 | ||
3452 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
698dcdb6 VZ |
3453 | |
3454 | fi | |
10f2d63a VZ |
3455 | |
3456 | ||
3457 | eval "$ac_cv_use_fraction" | |
3458 | if test "$no_cache" != 1; then | |
3459 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
3460 | fi | |
3461 | ||
3462 | if test "$wxUSE_FRACTION" = yes; then | |
698dcdb6 | 3463 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3464 | else |
698dcdb6 | 3465 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3466 | fi |
698dcdb6 | 3467 | |
10f2d63a | 3468 | |
698dcdb6 | 3469 | echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6 |
978f1259 | 3470 | echo "configure:3471: checking for --enable-dynlib" >&5 |
10f2d63a VZ |
3471 | no_cache=0 |
3472 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
3473 | if test "${enable_dynlib+set}" = set; then | |
3474 | enableval="$enable_dynlib" | |
698dcdb6 | 3475 | |
10f2d63a VZ |
3476 | if test "$enableval" = yes; then |
3477 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
3478 | else | |
3479 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
3480 | fi | |
698dcdb6 | 3481 | |
10f2d63a | 3482 | else |
698dcdb6 | 3483 | |
10f2d63a VZ |
3484 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` |
3485 | if test "x$LINE" != x ; then | |
3486 | eval "DEFAULT_$LINE" | |
3487 | else | |
3488 | no_cache=1 | |
3489 | fi | |
3490 | ||
3491 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
698dcdb6 VZ |
3492 | |
3493 | fi | |
10f2d63a VZ |
3494 | |
3495 | ||
3496 | eval "$ac_cv_use_dynlib" | |
3497 | if test "$no_cache" != 1; then | |
3498 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
3499 | fi | |
3500 | ||
3501 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
698dcdb6 | 3502 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3503 | else |
698dcdb6 | 3504 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3505 | fi |
698dcdb6 | 3506 | |
10f2d63a | 3507 | |
698dcdb6 | 3508 | echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6 |
978f1259 | 3509 | echo "configure:3510: checking for --enable-longlong" >&5 |
10f2d63a VZ |
3510 | no_cache=0 |
3511 | # Check whether --enable-longlong or --disable-longlong was given. | |
3512 | if test "${enable_longlong+set}" = set; then | |
3513 | enableval="$enable_longlong" | |
698dcdb6 | 3514 | |
10f2d63a VZ |
3515 | if test "$enableval" = yes; then |
3516 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
3517 | else | |
3518 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
3519 | fi | |
698dcdb6 | 3520 | |
10f2d63a | 3521 | else |
698dcdb6 | 3522 | |
10f2d63a VZ |
3523 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` |
3524 | if test "x$LINE" != x ; then | |
3525 | eval "DEFAULT_$LINE" | |
3526 | else | |
3527 | no_cache=1 | |
3528 | fi | |
3529 | ||
3530 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
698dcdb6 VZ |
3531 | |
3532 | fi | |
10f2d63a VZ |
3533 | |
3534 | ||
3535 | eval "$ac_cv_use_longlong" | |
3536 | if test "$no_cache" != 1; then | |
3537 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
3538 | fi | |
3539 | ||
3540 | if test "$wxUSE_LONGLONG" = yes; then | |
698dcdb6 | 3541 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3542 | else |
698dcdb6 | 3543 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3544 | fi |
698dcdb6 | 3545 | |
10f2d63a | 3546 | |
698dcdb6 | 3547 | echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6 |
978f1259 | 3548 | echo "configure:3549: checking for --enable-geometry" >&5 |
e8f65ba6 RR |
3549 | no_cache=0 |
3550 | # Check whether --enable-geometry or --disable-geometry was given. | |
3551 | if test "${enable_geometry+set}" = set; then | |
3552 | enableval="$enable_geometry" | |
698dcdb6 | 3553 | |
e8f65ba6 RR |
3554 | if test "$enableval" = yes; then |
3555 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
3556 | else | |
3557 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
3558 | fi | |
698dcdb6 | 3559 | |
e8f65ba6 | 3560 | else |
698dcdb6 | 3561 | |
e8f65ba6 RR |
3562 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` |
3563 | if test "x$LINE" != x ; then | |
3564 | eval "DEFAULT_$LINE" | |
3565 | else | |
3566 | no_cache=1 | |
3567 | fi | |
3568 | ||
3569 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
698dcdb6 VZ |
3570 | |
3571 | fi | |
e8f65ba6 RR |
3572 | |
3573 | ||
3574 | eval "$ac_cv_use_geometry" | |
3575 | if test "$no_cache" != 1; then | |
3576 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
3577 | fi | |
3578 | ||
3579 | if test "$wxUSE_GEOMETRY" = yes; then | |
698dcdb6 | 3580 | echo "$ac_t""yes" 1>&6 |
e8f65ba6 | 3581 | else |
698dcdb6 | 3582 | echo "$ac_t""no" 1>&6 |
e8f65ba6 | 3583 | fi |
698dcdb6 | 3584 | |
e8f65ba6 | 3585 | |
698dcdb6 | 3586 | echo $ac_n "checking for --enable-log""... $ac_c" 1>&6 |
978f1259 | 3587 | echo "configure:3588: checking for --enable-log" >&5 |
10f2d63a VZ |
3588 | no_cache=0 |
3589 | # Check whether --enable-log or --disable-log was given. | |
3590 | if test "${enable_log+set}" = set; then | |
3591 | enableval="$enable_log" | |
698dcdb6 | 3592 | |
10f2d63a VZ |
3593 | if test "$enableval" = yes; then |
3594 | ac_cv_use_log='wxUSE_LOG=yes' | |
3595 | else | |
3596 | ac_cv_use_log='wxUSE_LOG=no' | |
3597 | fi | |
698dcdb6 | 3598 | |
10f2d63a | 3599 | else |
698dcdb6 | 3600 | |
10f2d63a VZ |
3601 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` |
3602 | if test "x$LINE" != x ; then | |
3603 | eval "DEFAULT_$LINE" | |
3604 | else | |
3605 | no_cache=1 | |
3606 | fi | |
3607 | ||
3608 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
698dcdb6 VZ |
3609 | |
3610 | fi | |
10f2d63a VZ |
3611 | |
3612 | ||
3613 | eval "$ac_cv_use_log" | |
3614 | if test "$no_cache" != 1; then | |
3615 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
3616 | fi | |
3617 | ||
3618 | if test "$wxUSE_LOG" = yes; then | |
698dcdb6 | 3619 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3620 | else |
698dcdb6 | 3621 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3622 | fi |
698dcdb6 | 3623 | |
10f2d63a | 3624 | |
698dcdb6 | 3625 | echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6 |
978f1259 | 3626 | echo "configure:3627: checking for --enable-streams" >&5 |
10f2d63a VZ |
3627 | no_cache=0 |
3628 | # Check whether --enable-streams or --disable-streams was given. | |
3629 | if test "${enable_streams+set}" = set; then | |
3630 | enableval="$enable_streams" | |
698dcdb6 | 3631 | |
10f2d63a VZ |
3632 | if test "$enableval" = yes; then |
3633 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
3634 | else | |
3635 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
3636 | fi | |
698dcdb6 | 3637 | |
10f2d63a | 3638 | else |
698dcdb6 | 3639 | |
10f2d63a VZ |
3640 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` |
3641 | if test "x$LINE" != x ; then | |
3642 | eval "DEFAULT_$LINE" | |
3643 | else | |
3644 | no_cache=1 | |
3645 | fi | |
3646 | ||
3647 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
698dcdb6 VZ |
3648 | |
3649 | fi | |
10f2d63a VZ |
3650 | |
3651 | ||
3652 | eval "$ac_cv_use_streams" | |
3653 | if test "$no_cache" != 1; then | |
3654 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
3655 | fi | |
3656 | ||
3657 | if test "$wxUSE_STREAMS" = yes; then | |
698dcdb6 | 3658 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3659 | else |
698dcdb6 | 3660 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3661 | fi |
698dcdb6 | 3662 | |
10f2d63a | 3663 | |
698dcdb6 | 3664 | echo $ac_n "checking for --enable-file""... $ac_c" 1>&6 |
978f1259 | 3665 | echo "configure:3666: checking for --enable-file" >&5 |
10f2d63a VZ |
3666 | no_cache=0 |
3667 | # Check whether --enable-file or --disable-file was given. | |
3668 | if test "${enable_file+set}" = set; then | |
3669 | enableval="$enable_file" | |
698dcdb6 | 3670 | |
10f2d63a VZ |
3671 | if test "$enableval" = yes; then |
3672 | ac_cv_use_file='wxUSE_FILE=yes' | |
3673 | else | |
3674 | ac_cv_use_file='wxUSE_FILE=no' | |
3675 | fi | |
698dcdb6 | 3676 | |
10f2d63a | 3677 | else |
698dcdb6 | 3678 | |
10f2d63a VZ |
3679 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` |
3680 | if test "x$LINE" != x ; then | |
3681 | eval "DEFAULT_$LINE" | |
3682 | else | |
3683 | no_cache=1 | |
3684 | fi | |
3685 | ||
3686 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
698dcdb6 VZ |
3687 | |
3688 | fi | |
10f2d63a VZ |
3689 | |
3690 | ||
3691 | eval "$ac_cv_use_file" | |
3692 | if test "$no_cache" != 1; then | |
3693 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
3694 | fi | |
3695 | ||
3696 | if test "$wxUSE_FILE" = yes; then | |
698dcdb6 | 3697 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3698 | else |
698dcdb6 | 3699 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3700 | fi |
698dcdb6 | 3701 | |
10f2d63a | 3702 | |
1e6feb95 | 3703 | echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6 |
978f1259 | 3704 | echo "configure:3705: checking for --enable-ffile" >&5 |
10f2d63a | 3705 | no_cache=0 |
1e6feb95 VZ |
3706 | # Check whether --enable-ffile or --disable-ffile was given. |
3707 | if test "${enable_ffile+set}" = set; then | |
3708 | enableval="$enable_ffile" | |
698dcdb6 | 3709 | |
10f2d63a | 3710 | if test "$enableval" = yes; then |
1e6feb95 | 3711 | ac_cv_use_ffile='wxUSE_FFILE=yes' |
10f2d63a | 3712 | else |
1e6feb95 | 3713 | ac_cv_use_ffile='wxUSE_FFILE=no' |
10f2d63a | 3714 | fi |
698dcdb6 | 3715 | |
10f2d63a | 3716 | else |
698dcdb6 | 3717 | |
1e6feb95 | 3718 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
3719 | if test "x$LINE" != x ; then |
3720 | eval "DEFAULT_$LINE" | |
3721 | else | |
3722 | no_cache=1 | |
3723 | fi | |
3724 | ||
1e6feb95 | 3725 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE |
698dcdb6 VZ |
3726 | |
3727 | fi | |
10f2d63a VZ |
3728 | |
3729 | ||
1e6feb95 | 3730 | eval "$ac_cv_use_ffile" |
10f2d63a | 3731 | if test "$no_cache" != 1; then |
1e6feb95 | 3732 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3733 | fi |
3734 | ||
1e6feb95 | 3735 | if test "$wxUSE_FFILE" = yes; then |
698dcdb6 | 3736 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3737 | else |
698dcdb6 | 3738 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3739 | fi |
698dcdb6 | 3740 | |
10f2d63a | 3741 | |
1e6feb95 | 3742 | echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6 |
978f1259 | 3743 | echo "configure:3744: checking for --enable-textfile" >&5 |
10f2d63a | 3744 | no_cache=0 |
1e6feb95 VZ |
3745 | # Check whether --enable-textfile or --disable-textfile was given. |
3746 | if test "${enable_textfile+set}" = set; then | |
3747 | enableval="$enable_textfile" | |
698dcdb6 | 3748 | |
10f2d63a | 3749 | if test "$enableval" = yes; then |
1e6feb95 | 3750 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' |
10f2d63a | 3751 | else |
1e6feb95 | 3752 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' |
10f2d63a | 3753 | fi |
698dcdb6 | 3754 | |
10f2d63a | 3755 | else |
698dcdb6 | 3756 | |
1e6feb95 | 3757 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
3758 | if test "x$LINE" != x ; then |
3759 | eval "DEFAULT_$LINE" | |
3760 | else | |
3761 | no_cache=1 | |
3762 | fi | |
3763 | ||
1e6feb95 | 3764 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE |
698dcdb6 VZ |
3765 | |
3766 | fi | |
10f2d63a VZ |
3767 | |
3768 | ||
1e6feb95 | 3769 | eval "$ac_cv_use_textfile" |
10f2d63a | 3770 | if test "$no_cache" != 1; then |
1e6feb95 | 3771 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3772 | fi |
3773 | ||
1e6feb95 | 3774 | if test "$wxUSE_TEXTFILE" = yes; then |
698dcdb6 | 3775 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3776 | else |
698dcdb6 | 3777 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3778 | fi |
698dcdb6 | 3779 | |
10f2d63a | 3780 | |
1e6feb95 | 3781 | echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6 |
978f1259 | 3782 | echo "configure:3783: checking for --enable-fontmap" >&5 |
10f2d63a | 3783 | no_cache=0 |
1e6feb95 VZ |
3784 | # Check whether --enable-fontmap or --disable-fontmap was given. |
3785 | if test "${enable_fontmap+set}" = set; then | |
3786 | enableval="$enable_fontmap" | |
698dcdb6 | 3787 | |
10f2d63a | 3788 | if test "$enableval" = yes; then |
1e6feb95 | 3789 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' |
10f2d63a | 3790 | else |
1e6feb95 | 3791 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' |
10f2d63a | 3792 | fi |
698dcdb6 | 3793 | |
10f2d63a | 3794 | else |
698dcdb6 | 3795 | |
1e6feb95 | 3796 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` |
10f2d63a VZ |
3797 | if test "x$LINE" != x ; then |
3798 | eval "DEFAULT_$LINE" | |
3799 | else | |
3800 | no_cache=1 | |
3801 | fi | |
3802 | ||
1e6feb95 | 3803 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP |
698dcdb6 VZ |
3804 | |
3805 | fi | |
10f2d63a VZ |
3806 | |
3807 | ||
1e6feb95 | 3808 | eval "$ac_cv_use_fontmap" |
10f2d63a | 3809 | if test "$no_cache" != 1; then |
1e6feb95 | 3810 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3811 | fi |
3812 | ||
1e6feb95 | 3813 | if test "$wxUSE_FONTMAP" = yes; then |
698dcdb6 | 3814 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3815 | else |
698dcdb6 | 3816 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3817 | fi |
698dcdb6 | 3818 | |
10f2d63a | 3819 | |
1e6feb95 | 3820 | echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6 |
978f1259 | 3821 | echo "configure:3822: checking for --enable-unicode" >&5 |
10f2d63a | 3822 | no_cache=0 |
1e6feb95 VZ |
3823 | # Check whether --enable-unicode or --disable-unicode was given. |
3824 | if test "${enable_unicode+set}" = set; then | |
3825 | enableval="$enable_unicode" | |
3826 | ||
3827 | if test "$enableval" = yes; then | |
3828 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
3829 | else | |
3830 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
3831 | fi | |
3832 | ||
3833 | else | |
3834 | ||
3835 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
3836 | if test "x$LINE" != x ; then | |
3837 | eval "DEFAULT_$LINE" | |
3838 | else | |
3839 | no_cache=1 | |
3840 | fi | |
3841 | ||
3842 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
3843 | ||
3844 | fi | |
3845 | ||
3846 | ||
3847 | eval "$ac_cv_use_unicode" | |
3848 | if test "$no_cache" != 1; then | |
3849 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
3850 | fi | |
3851 | ||
3852 | if test "$wxUSE_UNICODE" = yes; then | |
3853 | echo "$ac_t""yes" 1>&6 | |
3854 | else | |
3855 | echo "$ac_t""no" 1>&6 | |
3856 | fi | |
3857 | ||
3858 | ||
1e6feb95 | 3859 | echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6 |
978f1259 | 3860 | echo "configure:3861: checking for --enable-wxprintfv" >&5 |
1e6feb95 VZ |
3861 | no_cache=0 |
3862 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
3863 | if test "${enable_wxprintfv+set}" = set; then | |
3864 | enableval="$enable_wxprintfv" | |
3865 | ||
3866 | if test "$enableval" = yes; then | |
10f2d63a VZ |
3867 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' |
3868 | else | |
3869 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
3870 | fi | |
698dcdb6 | 3871 | |
10f2d63a | 3872 | else |
698dcdb6 | 3873 | |
10f2d63a VZ |
3874 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` |
3875 | if test "x$LINE" != x ; then | |
3876 | eval "DEFAULT_$LINE" | |
3877 | else | |
3878 | no_cache=1 | |
3879 | fi | |
3880 | ||
3881 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
698dcdb6 VZ |
3882 | |
3883 | fi | |
10f2d63a VZ |
3884 | |
3885 | ||
3886 | eval "$ac_cv_use_wxprintfv" | |
3887 | if test "$no_cache" != 1; then | |
3888 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
3889 | fi | |
3890 | ||
3891 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
698dcdb6 | 3892 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3893 | else |
698dcdb6 | 3894 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3895 | fi |
698dcdb6 | 3896 | |
10f2d63a | 3897 | |
698dcdb6 | 3898 | echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6 |
978f1259 | 3899 | echo "configure:3900: checking for --enable-std_iostreams" >&5 |
10f2d63a VZ |
3900 | no_cache=0 |
3901 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
3902 | if test "${enable_std_iostreams+set}" = set; then | |
3903 | enableval="$enable_std_iostreams" | |
698dcdb6 | 3904 | |
10f2d63a VZ |
3905 | if test "$enableval" = yes; then |
3906 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
3907 | else | |
3908 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
3909 | fi | |
698dcdb6 | 3910 | |
10f2d63a | 3911 | else |
698dcdb6 | 3912 | |
10f2d63a VZ |
3913 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
3914 | if test "x$LINE" != x ; then | |
3915 | eval "DEFAULT_$LINE" | |
3916 | else | |
3917 | no_cache=1 | |
3918 | fi | |
3919 | ||
3920 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
698dcdb6 VZ |
3921 | |
3922 | fi | |
10f2d63a VZ |
3923 | |
3924 | ||
3925 | eval "$ac_cv_use_std_iostreams" | |
3926 | if test "$no_cache" != 1; then | |
3927 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
3928 | fi | |
3929 | ||
3930 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
698dcdb6 | 3931 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3932 | else |
698dcdb6 | 3933 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3934 | fi |
698dcdb6 | 3935 | |
10f2d63a | 3936 | |
698dcdb6 | 3937 | echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6 |
978f1259 | 3938 | echo "configure:3939: checking for --enable-filesystem" >&5 |
24528b0c VS |
3939 | no_cache=0 |
3940 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
3941 | if test "${enable_filesystem+set}" = set; then | |
3942 | enableval="$enable_filesystem" | |
698dcdb6 | 3943 | |
24528b0c VS |
3944 | if test "$enableval" = yes; then |
3945 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
3946 | else | |
3947 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
3948 | fi | |
698dcdb6 | 3949 | |
24528b0c | 3950 | else |
698dcdb6 | 3951 | |
24528b0c VS |
3952 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` |
3953 | if test "x$LINE" != x ; then | |
3954 | eval "DEFAULT_$LINE" | |
3955 | else | |
3956 | no_cache=1 | |
3957 | fi | |
3958 | ||
3959 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
698dcdb6 VZ |
3960 | |
3961 | fi | |
24528b0c VS |
3962 | |
3963 | ||
3964 | eval "$ac_cv_use_filesystem" | |
3965 | if test "$no_cache" != 1; then | |
3966 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
3967 | fi | |
3968 | ||
3969 | if test "$wxUSE_FILESYSTEM" = yes; then | |
698dcdb6 | 3970 | echo "$ac_t""yes" 1>&6 |
24528b0c | 3971 | else |
698dcdb6 | 3972 | echo "$ac_t""no" 1>&6 |
24528b0c | 3973 | fi |
698dcdb6 | 3974 | |
24528b0c | 3975 | |
698dcdb6 | 3976 | echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6 |
978f1259 | 3977 | echo "configure:3978: checking for --enable-fs_inet" >&5 |
10f2d63a VZ |
3978 | no_cache=0 |
3979 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
3980 | if test "${enable_fs_inet+set}" = set; then | |
3981 | enableval="$enable_fs_inet" | |
698dcdb6 | 3982 | |
10f2d63a VZ |
3983 | if test "$enableval" = yes; then |
3984 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
3985 | else | |
3986 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
3987 | fi | |
698dcdb6 | 3988 | |
10f2d63a | 3989 | else |
698dcdb6 | 3990 | |
10f2d63a VZ |
3991 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` |
3992 | if test "x$LINE" != x ; then | |
3993 | eval "DEFAULT_$LINE" | |
3994 | else | |
3995 | no_cache=1 | |
3996 | fi | |
3997 | ||
3998 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
698dcdb6 VZ |
3999 | |
4000 | fi | |
10f2d63a VZ |
4001 | |
4002 | ||
4003 | eval "$ac_cv_use_fs_inet" | |
4004 | if test "$no_cache" != 1; then | |
4005 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
4006 | fi | |
4007 | ||
4008 | if test "$wxUSE_FS_INET" = yes; then | |
698dcdb6 | 4009 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4010 | else |
698dcdb6 | 4011 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4012 | fi |
698dcdb6 | 4013 | |
10f2d63a | 4014 | |
698dcdb6 | 4015 | echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6 |
978f1259 | 4016 | echo "configure:4017: checking for --enable-fs_zip" >&5 |
10f2d63a VZ |
4017 | no_cache=0 |
4018 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
4019 | if test "${enable_fs_zip+set}" = set; then | |
4020 | enableval="$enable_fs_zip" | |
698dcdb6 | 4021 | |
10f2d63a VZ |
4022 | if test "$enableval" = yes; then |
4023 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
4024 | else | |
4025 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
4026 | fi | |
698dcdb6 | 4027 | |
10f2d63a | 4028 | else |
698dcdb6 | 4029 | |
10f2d63a VZ |
4030 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` |
4031 | if test "x$LINE" != x ; then | |
4032 | eval "DEFAULT_$LINE" | |
4033 | else | |
4034 | no_cache=1 | |
4035 | fi | |
4036 | ||
4037 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
698dcdb6 VZ |
4038 | |
4039 | fi | |
10f2d63a VZ |
4040 | |
4041 | ||
4042 | eval "$ac_cv_use_fs_zip" | |
4043 | if test "$no_cache" != 1; then | |
4044 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
4045 | fi | |
4046 | ||
4047 | if test "$wxUSE_FS_ZIP" = yes; then | |
698dcdb6 | 4048 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4049 | else |
698dcdb6 | 4050 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4051 | fi |
698dcdb6 | 4052 | |
10f2d63a | 4053 | |
698dcdb6 | 4054 | echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6 |
978f1259 | 4055 | echo "configure:4056: checking for --enable-zipstream" >&5 |
10f2d63a VZ |
4056 | no_cache=0 |
4057 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
4058 | if test "${enable_zipstream+set}" = set; then | |
4059 | enableval="$enable_zipstream" | |
698dcdb6 | 4060 | |
10f2d63a VZ |
4061 | if test "$enableval" = yes; then |
4062 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
4063 | else | |
4064 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
4065 | fi | |
698dcdb6 | 4066 | |
10f2d63a | 4067 | else |
698dcdb6 | 4068 | |
10f2d63a VZ |
4069 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` |
4070 | if test "x$LINE" != x ; then | |
4071 | eval "DEFAULT_$LINE" | |
4072 | else | |
4073 | no_cache=1 | |
4074 | fi | |
4075 | ||
4076 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
698dcdb6 VZ |
4077 | |
4078 | fi | |
10f2d63a VZ |
4079 | |
4080 | ||
4081 | eval "$ac_cv_use_zipstream" | |
4082 | if test "$no_cache" != 1; then | |
4083 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
4084 | fi | |
4085 | ||
4086 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
698dcdb6 | 4087 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4088 | else |
698dcdb6 | 4089 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4090 | fi |
698dcdb6 | 4091 | |
10f2d63a | 4092 | |
698dcdb6 VZ |
4093 | |
4094 | echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6 | |
978f1259 | 4095 | echo "configure:4096: checking for --enable-catch_segvs" >&5 |
eb4efbdc VZ |
4096 | no_cache=0 |
4097 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
4098 | if test "${enable_catch_segvs+set}" = set; then | |
4099 | enableval="$enable_catch_segvs" | |
698dcdb6 | 4100 | |
eb4efbdc VZ |
4101 | if test "$enableval" = yes; then |
4102 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
4103 | else | |
4104 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
4105 | fi | |
698dcdb6 | 4106 | |
eb4efbdc | 4107 | else |
698dcdb6 | 4108 | |
eb4efbdc VZ |
4109 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
4110 | if test "x$LINE" != x ; then | |
4111 | eval "DEFAULT_$LINE" | |
4112 | else | |
4113 | no_cache=1 | |
4114 | fi | |
4115 | ||
4116 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
698dcdb6 VZ |
4117 | |
4118 | fi | |
eb4efbdc VZ |
4119 | |
4120 | ||
4121 | eval "$ac_cv_use_catch_segvs" | |
4122 | if test "$no_cache" != 1; then | |
4123 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
4124 | fi | |
4125 | ||
4126 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
698dcdb6 | 4127 | echo "$ac_t""yes" 1>&6 |
eb4efbdc | 4128 | else |
698dcdb6 | 4129 | echo "$ac_t""no" 1>&6 |
eb4efbdc | 4130 | fi |
698dcdb6 | 4131 | |
eb4efbdc | 4132 | |
698dcdb6 | 4133 | echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6 |
978f1259 | 4134 | echo "configure:4135: checking for --enable-snglinst" >&5 |
4f3c5f06 VZ |
4135 | no_cache=0 |
4136 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
4137 | if test "${enable_snglinst+set}" = set; then | |
4138 | enableval="$enable_snglinst" | |
698dcdb6 | 4139 | |
4f3c5f06 VZ |
4140 | if test "$enableval" = yes; then |
4141 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
4142 | else | |
4143 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
4144 | fi | |
698dcdb6 | 4145 | |
4f3c5f06 | 4146 | else |
698dcdb6 | 4147 | |
4f3c5f06 VZ |
4148 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` |
4149 | if test "x$LINE" != x ; then | |
4150 | eval "DEFAULT_$LINE" | |
4151 | else | |
4152 | no_cache=1 | |
4153 | fi | |
4154 | ||
4155 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
698dcdb6 VZ |
4156 | |
4157 | fi | |
4f3c5f06 VZ |
4158 | |
4159 | ||
4160 | eval "$ac_cv_use_snglinst" | |
4161 | if test "$no_cache" != 1; then | |
4162 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
4163 | fi | |
4164 | ||
4165 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
698dcdb6 | 4166 | echo "$ac_t""yes" 1>&6 |
4f3c5f06 | 4167 | else |
698dcdb6 | 4168 | echo "$ac_t""no" 1>&6 |
4f3c5f06 | 4169 | fi |
698dcdb6 VZ |
4170 | |
4171 | ||
eb4efbdc | 4172 | |
1e6feb95 | 4173 | echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6 |
978f1259 | 4174 | echo "configure:4175: checking for --enable-mimetype" >&5 |
1e6feb95 VZ |
4175 | no_cache=0 |
4176 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
4177 | if test "${enable_mimetype+set}" = set; then | |
4178 | enableval="$enable_mimetype" | |
4179 | ||
4180 | if test "$enableval" = yes; then | |
4181 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
4182 | else | |
4183 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
4184 | fi | |
4185 | ||
4186 | else | |
4187 | ||
4188 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
4189 | if test "x$LINE" != x ; then | |
4190 | eval "DEFAULT_$LINE" | |
4191 | else | |
4192 | no_cache=1 | |
4193 | fi | |
4194 | ||
4195 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
4196 | ||
4197 | fi | |
4198 | ||
4199 | ||
4200 | eval "$ac_cv_use_mimetype" | |
4201 | if test "$no_cache" != 1; then | |
4202 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
4203 | fi | |
4204 | ||
4205 | if test "$wxUSE_MIMETYPE" = yes; then | |
4206 | echo "$ac_t""yes" 1>&6 | |
4207 | else | |
4208 | echo "$ac_t""no" 1>&6 | |
4209 | fi | |
4210 | ||
4211 | ||
3e44f09d | 4212 | echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6 |
978f1259 | 4213 | echo "configure:4214: checking for --enable-system_options" >&5 |
3e44f09d VZ |
4214 | no_cache=0 |
4215 | # Check whether --enable-system_options or --disable-system_options was given. | |
4216 | if test "${enable_system_options+set}" = set; then | |
4217 | enableval="$enable_system_options" | |
4218 | ||
4219 | if test "$enableval" = yes; then | |
4220 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
4221 | else | |
4222 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
4223 | fi | |
4224 | ||
4225 | else | |
4226 | ||
4227 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` | |
4228 | if test "x$LINE" != x ; then | |
4229 | eval "DEFAULT_$LINE" | |
4230 | else | |
4231 | no_cache=1 | |
4232 | fi | |
4233 | ||
4234 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
4235 | ||
4236 | fi | |
4237 | ||
4238 | ||
4239 | eval "$ac_cv_use_system_options" | |
4240 | if test "$no_cache" != 1; then | |
4241 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
4242 | fi | |
4243 | ||
4244 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
4245 | echo "$ac_t""yes" 1>&6 | |
4246 | else | |
4247 | echo "$ac_t""no" 1>&6 | |
4248 | fi | |
4249 | ||
4250 | ||
1e6feb95 | 4251 | |
698dcdb6 VZ |
4252 | |
4253 | echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6 | |
978f1259 | 4254 | echo "configure:4255: checking for --enable-threads" >&5 |
10f2d63a VZ |
4255 | no_cache=0 |
4256 | # Check whether --enable-threads or --disable-threads was given. | |
4257 | if test "${enable_threads+set}" = set; then | |
4258 | enableval="$enable_threads" | |
698dcdb6 | 4259 | |
10f2d63a VZ |
4260 | if test "$enableval" = yes; then |
4261 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
4262 | else | |
4263 | ac_cv_use_threads='wxUSE_THREADS=no' | |
4264 | fi | |
698dcdb6 | 4265 | |
10f2d63a | 4266 | else |
698dcdb6 | 4267 | |
10f2d63a VZ |
4268 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` |
4269 | if test "x$LINE" != x ; then | |
4270 | eval "DEFAULT_$LINE" | |
4271 | else | |
4272 | no_cache=1 | |
4273 | fi | |
4274 | ||
4275 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
698dcdb6 VZ |
4276 | |
4277 | fi | |
10f2d63a VZ |
4278 | |
4279 | ||
4280 | eval "$ac_cv_use_threads" | |
4281 | if test "$no_cache" != 1; then | |
4282 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
4283 | fi | |
4284 | ||
4285 | if test "$wxUSE_THREADS" = yes; then | |
698dcdb6 | 4286 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4287 | else |
698dcdb6 | 4288 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4289 | fi |
698dcdb6 | 4290 | |
10f2d63a | 4291 | |
698dcdb6 | 4292 | echo $ac_n "checking for --enable-serial""... $ac_c" 1>&6 |
978f1259 | 4293 | echo "configure:4294: checking for --enable-serial" >&5 |
10f2d63a VZ |
4294 | no_cache=0 |
4295 | # Check whether --enable-serial or --disable-serial was given. | |
4296 | if test "${enable_serial+set}" = set; then | |
4297 | enableval="$enable_serial" | |
698dcdb6 | 4298 | |
10f2d63a VZ |
4299 | if test "$enableval" = yes; then |
4300 | ac_cv_use_serial='wxUSE_SERIAL=yes' | |
4301 | else | |
4302 | ac_cv_use_serial='wxUSE_SERIAL=no' | |
4303 | fi | |
698dcdb6 | 4304 | |
10f2d63a | 4305 | else |
698dcdb6 | 4306 | |
10f2d63a VZ |
4307 | LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}` |
4308 | if test "x$LINE" != x ; then | |
4309 | eval "DEFAULT_$LINE" | |
4310 | else | |
4311 | no_cache=1 | |
4312 | fi | |
4313 | ||
4314 | ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL | |
698dcdb6 VZ |
4315 | |
4316 | fi | |
10f2d63a VZ |
4317 | |
4318 | ||
4319 | eval "$ac_cv_use_serial" | |
4320 | if test "$no_cache" != 1; then | |
4321 | echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp | |
4322 | fi | |
4323 | ||
4324 | if test "$wxUSE_SERIAL" = yes; then | |
698dcdb6 | 4325 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4326 | else |
698dcdb6 | 4327 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4328 | fi |
698dcdb6 | 4329 | |
10f2d63a | 4330 | |
b12915c1 VZ |
4331 | if test "$wxUSE_GUI" = "yes"; then |
4332 | ||
698dcdb6 VZ |
4333 | |
4334 | ||
4335 | echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6 | |
978f1259 | 4336 | echo "configure:4337: checking for --enable-docview" >&5 |
10f2d63a VZ |
4337 | no_cache=0 |
4338 | # Check whether --enable-docview or --disable-docview was given. | |
4339 | if test "${enable_docview+set}" = set; then | |
4340 | enableval="$enable_docview" | |
698dcdb6 | 4341 | |
10f2d63a VZ |
4342 | if test "$enableval" = yes; then |
4343 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
4344 | else | |
4345 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
4346 | fi | |
698dcdb6 | 4347 | |
10f2d63a | 4348 | else |
698dcdb6 | 4349 | |
10f2d63a VZ |
4350 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` |
4351 | if test "x$LINE" != x ; then | |
4352 | eval "DEFAULT_$LINE" | |
4353 | else | |
4354 | no_cache=1 | |
4355 | fi | |
4356 | ||
4357 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
698dcdb6 VZ |
4358 | |
4359 | fi | |
10f2d63a VZ |
4360 | |
4361 | ||
4362 | eval "$ac_cv_use_docview" | |
4363 | if test "$no_cache" != 1; then | |
4364 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
4365 | fi | |
4366 | ||
4367 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
698dcdb6 | 4368 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4369 | else |
698dcdb6 | 4370 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4371 | fi |
698dcdb6 | 4372 | |
10f2d63a | 4373 | |
698dcdb6 | 4374 | echo $ac_n "checking for --enable-help""... $ac_c" 1>&6 |
978f1259 | 4375 | echo "configure:4376: checking for --enable-help" >&5 |
10f2d63a VZ |
4376 | no_cache=0 |
4377 | # Check whether --enable-help or --disable-help was given. | |
4378 | if test "${enable_help+set}" = set; then | |
4379 | enableval="$enable_help" | |
698dcdb6 | 4380 | |
10f2d63a VZ |
4381 | if test "$enableval" = yes; then |
4382 | ac_cv_use_help='wxUSE_HELP=yes' | |
4383 | else | |
4384 | ac_cv_use_help='wxUSE_HELP=no' | |
4385 | fi | |
698dcdb6 | 4386 | |
10f2d63a | 4387 | else |
698dcdb6 | 4388 | |
10f2d63a VZ |
4389 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` |
4390 | if test "x$LINE" != x ; then | |
4391 | eval "DEFAULT_$LINE" | |
4392 | else | |
4393 | no_cache=1 | |
4394 | fi | |
4395 | ||
4396 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
698dcdb6 VZ |
4397 | |
4398 | fi | |
10f2d63a VZ |
4399 | |
4400 | ||
4401 | eval "$ac_cv_use_help" | |
4402 | if test "$no_cache" != 1; then | |
4403 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
4404 | fi | |
4405 | ||
4406 | if test "$wxUSE_HELP" = yes; then | |
698dcdb6 | 4407 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4408 | else |
698dcdb6 | 4409 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4410 | fi |
698dcdb6 | 4411 | |
10f2d63a | 4412 | |
29fd3c0c | 4413 | echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6 |
978f1259 | 4414 | echo "configure:4415: checking for --enable-mshtmlhelp" >&5 |
29fd3c0c VS |
4415 | no_cache=0 |
4416 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
4417 | if test "${enable_mshtmlhelp+set}" = set; then | |
4418 | enableval="$enable_mshtmlhelp" | |
4419 | ||
4420 | if test "$enableval" = yes; then | |
4421 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
4422 | else | |
4423 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
4424 | fi | |
4425 | ||
4426 | else | |
4427 | ||
4428 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` | |
4429 | if test "x$LINE" != x ; then | |
4430 | eval "DEFAULT_$LINE" | |
4431 | else | |
4432 | no_cache=1 | |
4433 | fi | |
4434 | ||
4435 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
4436 | ||
4437 | fi | |
4438 | ||
4439 | ||
4440 | eval "$ac_cv_use_mshtmlhelp" | |
4441 | if test "$no_cache" != 1; then | |
4442 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
4443 | fi | |
4444 | ||
4445 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
4446 | echo "$ac_t""yes" 1>&6 | |
4447 | else | |
4448 | echo "$ac_t""no" 1>&6 | |
4449 | fi | |
4450 | ||
4451 | ||
3379ed37 | 4452 | echo $ac_n "checking for --enable-html""... $ac_c" 1>&6 |
978f1259 | 4453 | echo "configure:4454: checking for --enable-html" >&5 |
3379ed37 VZ |
4454 | no_cache=0 |
4455 | # Check whether --enable-html or --disable-html was given. | |
4456 | if test "${enable_html+set}" = set; then | |
4457 | enableval="$enable_html" | |
4458 | ||
4459 | if test "$enableval" = yes; then | |
4460 | ac_cv_use_html='wxUSE_HTML=yes' | |
4461 | else | |
4462 | ac_cv_use_html='wxUSE_HTML=no' | |
4463 | fi | |
4464 | ||
4465 | else | |
4466 | ||
4467 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
4468 | if test "x$LINE" != x ; then | |
4469 | eval "DEFAULT_$LINE" | |
4470 | else | |
4471 | no_cache=1 | |
4472 | fi | |
4473 | ||
4474 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
4475 | ||
4476 | fi | |
4477 | ||
4478 | ||
4479 | eval "$ac_cv_use_html" | |
4480 | if test "$no_cache" != 1; then | |
4481 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
4482 | fi | |
4483 | ||
4484 | if test "$wxUSE_HTML" = yes; then | |
4485 | echo "$ac_t""yes" 1>&6 | |
4486 | else | |
4487 | echo "$ac_t""no" 1>&6 | |
4488 | fi | |
4489 | ||
4490 | ||
4491 | echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6 | |
978f1259 | 4492 | echo "configure:4493: checking for --enable-htmlhelp" >&5 |
3379ed37 VZ |
4493 | no_cache=0 |
4494 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
4495 | if test "${enable_htmlhelp+set}" = set; then | |
4496 | enableval="$enable_htmlhelp" | |
4497 | ||
4498 | if test "$enableval" = yes; then | |
4499 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
4500 | else | |
4501 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
4502 | fi | |
4503 | ||
4504 | else | |
4505 | ||
4506 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` | |
4507 | if test "x$LINE" != x ; then | |
4508 | eval "DEFAULT_$LINE" | |
4509 | else | |
4510 | no_cache=1 | |
4511 | fi | |
4512 | ||
4513 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
4514 | ||
4515 | fi | |
4516 | ||
4517 | ||
4518 | eval "$ac_cv_use_htmlhelp" | |
4519 | if test "$no_cache" != 1; then | |
4520 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
4521 | fi | |
4522 | ||
4523 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
4524 | echo "$ac_t""yes" 1>&6 | |
4525 | else | |
4526 | echo "$ac_t""no" 1>&6 | |
4527 | fi | |
4528 | ||
4529 | ||
698dcdb6 | 4530 | echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6 |
978f1259 | 4531 | echo "configure:4532: checking for --enable-constraints" >&5 |
10f2d63a VZ |
4532 | no_cache=0 |
4533 | # Check whether --enable-constraints or --disable-constraints was given. | |
4534 | if test "${enable_constraints+set}" = set; then | |
4535 | enableval="$enable_constraints" | |
698dcdb6 | 4536 | |
10f2d63a VZ |
4537 | if test "$enableval" = yes; then |
4538 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
4539 | else | |
4540 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
4541 | fi | |
698dcdb6 | 4542 | |
10f2d63a | 4543 | else |
698dcdb6 | 4544 | |
10f2d63a VZ |
4545 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` |
4546 | if test "x$LINE" != x ; then | |
4547 | eval "DEFAULT_$LINE" | |
4548 | else | |
4549 | no_cache=1 | |
4550 | fi | |
4551 | ||
4552 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
698dcdb6 VZ |
4553 | |
4554 | fi | |
10f2d63a VZ |
4555 | |
4556 | ||
4557 | eval "$ac_cv_use_constraints" | |
4558 | if test "$no_cache" != 1; then | |
4559 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
4560 | fi | |
4561 | ||
4562 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
698dcdb6 | 4563 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4564 | else |
698dcdb6 | 4565 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4566 | fi |
698dcdb6 | 4567 | |
10f2d63a | 4568 | |
698dcdb6 | 4569 | echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6 |
978f1259 | 4570 | echo "configure:4571: checking for --enable-printarch" >&5 |
10f2d63a VZ |
4571 | no_cache=0 |
4572 | # Check whether --enable-printarch or --disable-printarch was given. | |
4573 | if test "${enable_printarch+set}" = set; then | |
4574 | enableval="$enable_printarch" | |
698dcdb6 | 4575 | |
10f2d63a VZ |
4576 | if test "$enableval" = yes; then |
4577 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
4578 | else | |
4579 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
4580 | fi | |
698dcdb6 | 4581 | |
10f2d63a | 4582 | else |
698dcdb6 | 4583 | |
10f2d63a VZ |
4584 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` |
4585 | if test "x$LINE" != x ; then | |
4586 | eval "DEFAULT_$LINE" | |
4587 | else | |
4588 | no_cache=1 | |
4589 | fi | |
4590 | ||
4591 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
698dcdb6 VZ |
4592 | |
4593 | fi | |
10f2d63a VZ |
4594 | |
4595 | ||
4596 | eval "$ac_cv_use_printarch" | |
4597 | if test "$no_cache" != 1; then | |
4598 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
4599 | fi | |
4600 | ||
4601 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
698dcdb6 | 4602 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4603 | else |
698dcdb6 | 4604 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4605 | fi |
698dcdb6 | 4606 | |
10f2d63a | 4607 | |
698dcdb6 | 4608 | echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6 |
978f1259 | 4609 | echo "configure:4610: checking for --enable-mdi" >&5 |
10f2d63a VZ |
4610 | no_cache=0 |
4611 | # Check whether --enable-mdi or --disable-mdi was given. | |
4612 | if test "${enable_mdi+set}" = set; then | |
4613 | enableval="$enable_mdi" | |
698dcdb6 | 4614 | |
10f2d63a VZ |
4615 | if test "$enableval" = yes; then |
4616 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
4617 | else | |
4618 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
4619 | fi | |
698dcdb6 | 4620 | |
10f2d63a | 4621 | else |
698dcdb6 | 4622 | |
10f2d63a VZ |
4623 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` |
4624 | if test "x$LINE" != x ; then | |
4625 | eval "DEFAULT_$LINE" | |
4626 | else | |
4627 | no_cache=1 | |
4628 | fi | |
4629 | ||
4630 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
698dcdb6 VZ |
4631 | |
4632 | fi | |
10f2d63a VZ |
4633 | |
4634 | ||
4635 | eval "$ac_cv_use_mdi" | |
4636 | if test "$no_cache" != 1; then | |
4637 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
4638 | fi | |
4639 | ||
4640 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
698dcdb6 | 4641 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4642 | else |
698dcdb6 | 4643 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4644 | fi |
698dcdb6 VZ |
4645 | |
4646 | ||
1e6feb95 | 4647 | echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6 |
978f1259 | 4648 | echo "configure:4649: checking for --enable-loggui" >&5 |
1e6feb95 VZ |
4649 | no_cache=0 |
4650 | # Check whether --enable-loggui or --disable-loggui was given. | |
4651 | if test "${enable_loggui+set}" = set; then | |
4652 | enableval="$enable_loggui" | |
4653 | ||
4654 | if test "$enableval" = yes; then | |
4655 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
4656 | else | |
4657 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
4658 | fi | |
4659 | ||
4660 | else | |
4661 | ||
4662 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
4663 | if test "x$LINE" != x ; then | |
4664 | eval "DEFAULT_$LINE" | |
4665 | else | |
4666 | no_cache=1 | |
4667 | fi | |
4668 | ||
4669 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
4670 | ||
4671 | fi | |
4672 | ||
4673 | ||
4674 | eval "$ac_cv_use_loggui" | |
4675 | if test "$no_cache" != 1; then | |
4676 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
4677 | fi | |
4678 | ||
4679 | if test "$wxUSE_LOGGUI" = yes; then | |
4680 | echo "$ac_t""yes" 1>&6 | |
4681 | else | |
4682 | echo "$ac_t""no" 1>&6 | |
4683 | fi | |
4684 | ||
4685 | ||
4686 | echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6 | |
978f1259 | 4687 | echo "configure:4688: checking for --enable-logwin" >&5 |
1e6feb95 VZ |
4688 | no_cache=0 |
4689 | # Check whether --enable-logwin or --disable-logwin was given. | |
4690 | if test "${enable_logwin+set}" = set; then | |
4691 | enableval="$enable_logwin" | |
4692 | ||
4693 | if test "$enableval" = yes; then | |
4694 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
4695 | else | |
4696 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
4697 | fi | |
4698 | ||
4699 | else | |
4700 | ||
4701 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` | |
4702 | if test "x$LINE" != x ; then | |
4703 | eval "DEFAULT_$LINE" | |
4704 | else | |
4705 | no_cache=1 | |
4706 | fi | |
4707 | ||
4708 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
4709 | ||
4710 | fi | |
4711 | ||
4712 | ||
4713 | eval "$ac_cv_use_logwin" | |
4714 | if test "$no_cache" != 1; then | |
4715 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
4716 | fi | |
4717 | ||
4718 | if test "$wxUSE_LOGWINDOW" = yes; then | |
4719 | echo "$ac_t""yes" 1>&6 | |
4720 | else | |
4721 | echo "$ac_t""no" 1>&6 | |
4722 | fi | |
4723 | ||
4724 | ||
10f2d63a | 4725 | |
698dcdb6 | 4726 | echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6 |
978f1259 | 4727 | echo "configure:4728: checking for --enable-postscript" >&5 |
10f2d63a VZ |
4728 | no_cache=0 |
4729 | # Check whether --enable-postscript or --disable-postscript was given. | |
4730 | if test "${enable_postscript+set}" = set; then | |
4731 | enableval="$enable_postscript" | |
698dcdb6 | 4732 | |
10f2d63a VZ |
4733 | if test "$enableval" = yes; then |
4734 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
4735 | else | |
4736 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
4737 | fi | |
698dcdb6 | 4738 | |
10f2d63a | 4739 | else |
698dcdb6 | 4740 | |
10f2d63a VZ |
4741 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` |
4742 | if test "x$LINE" != x ; then | |
4743 | eval "DEFAULT_$LINE" | |
4744 | else | |
4745 | no_cache=1 | |
4746 | fi | |
4747 | ||
4748 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
698dcdb6 VZ |
4749 | |
4750 | fi | |
10f2d63a VZ |
4751 | |
4752 | ||
4753 | eval "$ac_cv_use_postscript" | |
4754 | if test "$no_cache" != 1; then | |
4755 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
4756 | fi | |
4757 | ||
4758 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
698dcdb6 | 4759 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4760 | else |
698dcdb6 | 4761 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4762 | fi |
698dcdb6 VZ |
4763 | |
4764 | ||
4765 | ||
10f2d63a | 4766 | |
1e6feb95 | 4767 | |
698dcdb6 | 4768 | echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6 |
978f1259 | 4769 | echo "configure:4770: checking for --enable-prologio" >&5 |
10f2d63a VZ |
4770 | no_cache=0 |
4771 | # Check whether --enable-prologio or --disable-prologio was given. | |
4772 | if test "${enable_prologio+set}" = set; then | |
4773 | enableval="$enable_prologio" | |
698dcdb6 | 4774 | |
10f2d63a VZ |
4775 | if test "$enableval" = yes; then |
4776 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
4777 | else | |
4778 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
4779 | fi | |
698dcdb6 | 4780 | |
10f2d63a | 4781 | else |
698dcdb6 | 4782 | |
10f2d63a VZ |
4783 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` |
4784 | if test "x$LINE" != x ; then | |
4785 | eval "DEFAULT_$LINE" | |
4786 | else | |
4787 | no_cache=1 | |
4788 | fi | |
4789 | ||
4790 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
698dcdb6 VZ |
4791 | |
4792 | fi | |
10f2d63a VZ |
4793 | |
4794 | ||
4795 | eval "$ac_cv_use_prologio" | |
4796 | if test "$no_cache" != 1; then | |
4797 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
4798 | fi | |
4799 | ||
4800 | if test "$wxUSE_PROLOGIO" = yes; then | |
698dcdb6 | 4801 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4802 | else |
698dcdb6 | 4803 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4804 | fi |
698dcdb6 | 4805 | |
10f2d63a | 4806 | |
698dcdb6 | 4807 | echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6 |
978f1259 | 4808 | echo "configure:4809: checking for --enable-resources" >&5 |
10f2d63a VZ |
4809 | no_cache=0 |
4810 | # Check whether --enable-resources or --disable-resources was given. | |
4811 | if test "${enable_resources+set}" = set; then | |
4812 | enableval="$enable_resources" | |
698dcdb6 | 4813 | |
10f2d63a VZ |
4814 | if test "$enableval" = yes; then |
4815 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
4816 | else | |
4817 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
4818 | fi | |
698dcdb6 | 4819 | |
10f2d63a | 4820 | else |
698dcdb6 | 4821 | |
10f2d63a VZ |
4822 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` |
4823 | if test "x$LINE" != x ; then | |
4824 | eval "DEFAULT_$LINE" | |
4825 | else | |
4826 | no_cache=1 | |
4827 | fi | |
4828 | ||
4829 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
698dcdb6 VZ |
4830 | |
4831 | fi | |
10f2d63a VZ |
4832 | |
4833 | ||
4834 | eval "$ac_cv_use_resources" | |
4835 | if test "$no_cache" != 1; then | |
4836 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
4837 | fi | |
4838 | ||
4839 | if test "$wxUSE_RESOURCES" = yes; then | |
698dcdb6 | 4840 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4841 | else |
698dcdb6 | 4842 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4843 | fi |
698dcdb6 | 4844 | |
10f2d63a | 4845 | |
698dcdb6 VZ |
4846 | |
4847 | echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6 | |
978f1259 | 4848 | echo "configure:4849: checking for --enable-xresources" >&5 |
10f2d63a VZ |
4849 | no_cache=0 |
4850 | # Check whether --enable-xresources or --disable-xresources was given. | |
4851 | if test "${enable_xresources+set}" = set; then | |
4852 | enableval="$enable_xresources" | |
698dcdb6 | 4853 | |
10f2d63a VZ |
4854 | if test "$enableval" = yes; then |
4855 | ac_cv_use_xresources='wxUSE_X_RESOURCES=yes' | |
4856 | else | |
4857 | ac_cv_use_xresources='wxUSE_X_RESOURCES=no' | |
4858 | fi | |
698dcdb6 | 4859 | |
10f2d63a | 4860 | else |
698dcdb6 | 4861 | |
10f2d63a VZ |
4862 | LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}` |
4863 | if test "x$LINE" != x ; then | |
4864 | eval "DEFAULT_$LINE" | |
4865 | else | |
4866 | no_cache=1 | |
4867 | fi | |
4868 | ||
4869 | ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES | |
698dcdb6 VZ |
4870 | |
4871 | fi | |
10f2d63a VZ |
4872 | |
4873 | ||
4874 | eval "$ac_cv_use_xresources" | |
4875 | if test "$no_cache" != 1; then | |
4876 | echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp | |
4877 | fi | |
4878 | ||
4879 | if test "$wxUSE_X_RESOURCES" = yes; then | |
698dcdb6 | 4880 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4881 | else |
698dcdb6 | 4882 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4883 | fi |
698dcdb6 VZ |
4884 | |
4885 | ||
10f2d63a | 4886 | |
698dcdb6 VZ |
4887 | |
4888 | echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6 | |
978f1259 | 4889 | echo "configure:4890: checking for --enable-clipboard" >&5 |
10f2d63a VZ |
4890 | no_cache=0 |
4891 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
4892 | if test "${enable_clipboard+set}" = set; then | |
4893 | enableval="$enable_clipboard" | |
698dcdb6 | 4894 | |
10f2d63a VZ |
4895 | if test "$enableval" = yes; then |
4896 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
4897 | else | |
4898 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
4899 | fi | |
698dcdb6 | 4900 | |
10f2d63a | 4901 | else |
698dcdb6 | 4902 | |
10f2d63a VZ |
4903 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` |
4904 | if test "x$LINE" != x ; then | |
4905 | eval "DEFAULT_$LINE" | |
4906 | else | |
4907 | no_cache=1 | |
4908 | fi | |
4909 | ||
4910 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
698dcdb6 VZ |
4911 | |
4912 | fi | |
10f2d63a VZ |
4913 | |
4914 | ||
4915 | eval "$ac_cv_use_clipboard" | |
4916 | if test "$no_cache" != 1; then | |
4917 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
4918 | fi | |
4919 | ||
4920 | if test "$wxUSE_CLIPBOARD" = yes; then | |
698dcdb6 | 4921 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4922 | else |
698dcdb6 | 4923 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4924 | fi |
698dcdb6 | 4925 | |
10f2d63a | 4926 | |
698dcdb6 | 4927 | echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6 |
978f1259 | 4928 | echo "configure:4929: checking for --enable-dnd" >&5 |
10f2d63a VZ |
4929 | no_cache=0 |
4930 | # Check whether --enable-dnd or --disable-dnd was given. | |
4931 | if test "${enable_dnd+set}" = set; then | |
4932 | enableval="$enable_dnd" | |
698dcdb6 | 4933 | |
10f2d63a VZ |
4934 | if test "$enableval" = yes; then |
4935 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
4936 | else | |
4937 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
4938 | fi | |
698dcdb6 | 4939 | |
10f2d63a | 4940 | else |
698dcdb6 | 4941 | |
10f2d63a VZ |
4942 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` |
4943 | if test "x$LINE" != x ; then | |
4944 | eval "DEFAULT_$LINE" | |
4945 | else | |
4946 | no_cache=1 | |
4947 | fi | |
4948 | ||
4949 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
698dcdb6 VZ |
4950 | |
4951 | fi | |
10f2d63a VZ |
4952 | |
4953 | ||
4954 | eval "$ac_cv_use_dnd" | |
4955 | if test "$no_cache" != 1; then | |
4956 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
4957 | fi | |
4958 | ||
4959 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
698dcdb6 | 4960 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4961 | else |
698dcdb6 | 4962 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4963 | fi |
698dcdb6 | 4964 | |
10f2d63a | 4965 | |
698dcdb6 | 4966 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
978f1259 | 4967 | echo "configure:4968: checking for --enable-metafile" >&5 |
b64f0a5f RL |
4968 | no_cache=0 |
4969 | # Check whether --enable-metafile or --disable-metafile was given. | |
4970 | if test "${enable_metafile+set}" = set; then | |
4971 | enableval="$enable_metafile" | |
698dcdb6 | 4972 | |
b64f0a5f RL |
4973 | if test "$enableval" = yes; then |
4974 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
4975 | else | |
4976 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
4977 | fi | |
698dcdb6 | 4978 | |
b64f0a5f | 4979 | else |
698dcdb6 | 4980 | |
b64f0a5f RL |
4981 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
4982 | if test "x$LINE" != x ; then | |
4983 | eval "DEFAULT_$LINE" | |
4984 | else | |
4985 | no_cache=1 | |
4986 | fi | |
4987 | ||
4988 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
698dcdb6 VZ |
4989 | |
4990 | fi | |
b64f0a5f RL |
4991 | |
4992 | ||
4993 | eval "$ac_cv_use_metafile" | |
4994 | if test "$no_cache" != 1; then | |
4995 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
4996 | fi | |
4997 | ||
4998 | if test "$wxUSE_METAFILE" = yes; then | |
698dcdb6 | 4999 | echo "$ac_t""yes" 1>&6 |
b64f0a5f | 5000 | else |
698dcdb6 | 5001 | echo "$ac_t""no" 1>&6 |
b64f0a5f | 5002 | fi |
698dcdb6 VZ |
5003 | |
5004 | ||
10f2d63a | 5005 | |
24176f2c | 5006 | echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6 |
978f1259 | 5007 | echo "configure:5008: checking for --enable-treelayout" >&5 |
10f2d63a | 5008 | no_cache=0 |
24176f2c GD |
5009 | # Check whether --enable-treelayout or --disable-treelayout was given. |
5010 | if test "${enable_treelayout+set}" = set; then | |
5011 | enableval="$enable_treelayout" | |
698dcdb6 | 5012 | |
10f2d63a | 5013 | if test "$enableval" = yes; then |
24176f2c | 5014 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes' |
10f2d63a | 5015 | else |
24176f2c | 5016 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=no' |
10f2d63a | 5017 | fi |
698dcdb6 | 5018 | |
10f2d63a | 5019 | else |
698dcdb6 | 5020 | |
24176f2c | 5021 | LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}` |
10f2d63a VZ |
5022 | if test "x$LINE" != x ; then |
5023 | eval "DEFAULT_$LINE" | |
5024 | else | |
5025 | no_cache=1 | |
5026 | fi | |
5027 | ||
24176f2c | 5028 | ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT |
698dcdb6 VZ |
5029 | |
5030 | fi | |
10f2d63a VZ |
5031 | |
5032 | ||
24176f2c | 5033 | eval "$ac_cv_use_treelayout" |
10f2d63a | 5034 | if test "$no_cache" != 1; then |
24176f2c | 5035 | echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5036 | fi |
5037 | ||
24176f2c | 5038 | if test "$wxUSE_TREELAYOUT" = yes; then |
698dcdb6 | 5039 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5040 | else |
698dcdb6 | 5041 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5042 | fi |
698dcdb6 | 5043 | |
10f2d63a | 5044 | |
698dcdb6 VZ |
5045 | |
5046 | ||
5047 | echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6 | |
978f1259 | 5048 | echo "configure:5049: checking for --enable-controls" >&5 |
10f2d63a VZ |
5049 | no_cache=0 |
5050 | # Check whether --enable-controls or --disable-controls was given. | |
5051 | if test "${enable_controls+set}" = set; then | |
5052 | enableval="$enable_controls" | |
698dcdb6 | 5053 | |
10f2d63a VZ |
5054 | if test "$enableval" = yes; then |
5055 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
5056 | else | |
5057 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
5058 | fi | |
698dcdb6 | 5059 | |
10f2d63a | 5060 | else |
698dcdb6 | 5061 | |
10f2d63a VZ |
5062 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` |
5063 | if test "x$LINE" != x ; then | |
5064 | eval "DEFAULT_$LINE" | |
5065 | else | |
5066 | no_cache=1 | |
5067 | fi | |
5068 | ||
5069 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
698dcdb6 VZ |
5070 | |
5071 | fi | |
10f2d63a VZ |
5072 | |
5073 | ||
5074 | eval "$ac_cv_use_controls" | |
5075 | if test "$no_cache" != 1; then | |
5076 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
5077 | fi | |
5078 | ||
5079 | if test "$wxUSE_CONTROLS" = yes; then | |
698dcdb6 | 5080 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5081 | else |
698dcdb6 | 5082 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5083 | fi |
698dcdb6 | 5084 | |
10f2d63a VZ |
5085 | |
5086 | if test "$wxUSE_CONTROLS" = "yes"; then | |
5087 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 VZ |
5088 | DEFAULT_wxUSE_BMPBUTTON=yes |
5089 | DEFAULT_wxUSE_BUTTON=yes | |
5090 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5091 | DEFAULT_wxUSE_CARET=yes |
5092 | DEFAULT_wxUSE_COMBOBOX=yes | |
10f2d63a VZ |
5093 | DEFAULT_wxUSE_CHECKBOX=yes |
5094 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
5095 | DEFAULT_wxUSE_CHOICE=yes | |
5096 | DEFAULT_wxUSE_GAUGE=yes | |
5097 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 5098 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
5099 | DEFAULT_wxUSE_IMAGLIST=yes |
5100 | DEFAULT_wxUSE_LISTBOX=yes | |
5101 | DEFAULT_wxUSE_LISTCTRL=yes | |
5102 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 5103 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
5104 | DEFAULT_wxUSE_RADIOBOX=yes |
5105 | DEFAULT_wxUSE_RADIOBTN=yes | |
5106 | DEFAULT_wxUSE_SASH=yes | |
5107 | DEFAULT_wxUSE_SCROLLBAR=yes | |
5108 | DEFAULT_wxUSE_SLIDER=yes | |
5109 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 5110 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
5111 | DEFAULT_wxUSE_SPLITTER=yes |
5112 | DEFAULT_wxUSE_STATBMP=yes | |
5113 | DEFAULT_wxUSE_STATBOX=yes | |
5114 | DEFAULT_wxUSE_STATLINE=yes | |
5115 | DEFAULT_wxUSE_STATUSBAR=yes | |
5116 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
1db8dc4a | 5117 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 5118 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
5119 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
5120 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
5121 | DEFAULT_wxUSE_TOOLTIPS=yes |
5122 | DEFAULT_wxUSE_TREECTRL=yes | |
9f41d601 | 5123 | DEFAULT_wxUSE_POPUPWIN=yes |
10f2d63a VZ |
5124 | elif test "$wxUSE_CONTROLS" = "no"; then |
5125 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 VZ |
5126 | DEFAULT_wxUSE_BMPBUTTON=no |
5127 | DEFAULT_wxUSE_BUTTON=no | |
5128 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5129 | DEFAULT_wxUSE_CARET=no |
5130 | DEFAULT_wxUSE_COMBOBOX=no | |
10f2d63a VZ |
5131 | DEFAULT_wxUSE_CHECKBOX=no |
5132 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
5133 | DEFAULT_wxUSE_CHOICE=no | |
5134 | DEFAULT_wxUSE_GAUGE=no | |
5135 | DEFAULT_wxUSE_GRID=no | |
5136 | DEFAULT_wxUSE_NEW_GRID=no | |
5137 | DEFAULT_wxUSE_IMAGLIST=no | |
5138 | DEFAULT_wxUSE_LISTBOX=no | |
5139 | DEFAULT_wxUSE_LISTCTRL=no | |
5140 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 5141 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
5142 | DEFAULT_wxUSE_RADIOBOX=no |
5143 | DEFAULT_wxUSE_RADIOBTN=no | |
5144 | DEFAULT_wxUSE_SASH=no | |
5145 | DEFAULT_wxUSE_SCROLLBAR=no | |
5146 | DEFAULT_wxUSE_SLIDER=no | |
5147 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 5148 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
5149 | DEFAULT_wxUSE_SPLITTER=no |
5150 | DEFAULT_wxUSE_STATBMP=no | |
5151 | DEFAULT_wxUSE_STATBOX=no | |
5152 | DEFAULT_wxUSE_STATLINE=no | |
5153 | DEFAULT_wxUSE_STATUSBAR=no | |
5154 | DEFAULT_wxUSE_TAB_DIALOG=no | |
1db8dc4a | 5155 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 5156 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
5157 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
5158 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
5159 | DEFAULT_wxUSE_TOOLTIPS=no |
5160 | DEFAULT_wxUSE_TREECTRL=no | |
9f41d601 | 5161 | DEFAULT_wxUSE_POPUPWIN=no |
10f2d63a VZ |
5162 | fi |
5163 | ||
698dcdb6 VZ |
5164 | |
5165 | echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6 | |
978f1259 | 5166 | echo "configure:5167: checking for --enable-accel" >&5 |
10f2d63a VZ |
5167 | no_cache=0 |
5168 | # Check whether --enable-accel or --disable-accel was given. | |
5169 | if test "${enable_accel+set}" = set; then | |
5170 | enableval="$enable_accel" | |
698dcdb6 | 5171 | |
10f2d63a VZ |
5172 | if test "$enableval" = yes; then |
5173 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
5174 | else | |
5175 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
5176 | fi | |
698dcdb6 | 5177 | |
10f2d63a | 5178 | else |
698dcdb6 | 5179 | |
10f2d63a VZ |
5180 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` |
5181 | if test "x$LINE" != x ; then | |
5182 | eval "DEFAULT_$LINE" | |
5183 | else | |
5184 | no_cache=1 | |
5185 | fi | |
5186 | ||
5187 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
698dcdb6 VZ |
5188 | |
5189 | fi | |
10f2d63a VZ |
5190 | |
5191 | ||
5192 | eval "$ac_cv_use_accel" | |
5193 | if test "$no_cache" != 1; then | |
5194 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
5195 | fi | |
5196 | ||
5197 | if test "$wxUSE_ACCEL" = yes; then | |
698dcdb6 | 5198 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5199 | else |
698dcdb6 | 5200 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5201 | fi |
698dcdb6 | 5202 | |
10f2d63a | 5203 | |
1e6feb95 | 5204 | echo $ac_n "checking for --enable-button""... $ac_c" 1>&6 |
978f1259 | 5205 | echo "configure:5206: checking for --enable-button" >&5 |
10f2d63a | 5206 | no_cache=0 |
1e6feb95 VZ |
5207 | # Check whether --enable-button or --disable-button was given. |
5208 | if test "${enable_button+set}" = set; then | |
5209 | enableval="$enable_button" | |
698dcdb6 | 5210 | |
10f2d63a | 5211 | if test "$enableval" = yes; then |
1e6feb95 | 5212 | ac_cv_use_button='wxUSE_BUTTON=yes' |
10f2d63a | 5213 | else |
1e6feb95 | 5214 | ac_cv_use_button='wxUSE_BUTTON=no' |
10f2d63a | 5215 | fi |
698dcdb6 | 5216 | |
10f2d63a | 5217 | else |
698dcdb6 | 5218 | |
1e6feb95 | 5219 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` |
10f2d63a VZ |
5220 | if test "x$LINE" != x ; then |
5221 | eval "DEFAULT_$LINE" | |
5222 | else | |
5223 | no_cache=1 | |
5224 | fi | |
5225 | ||
1e6feb95 | 5226 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON |
698dcdb6 VZ |
5227 | |
5228 | fi | |
10f2d63a VZ |
5229 | |
5230 | ||
1e6feb95 | 5231 | eval "$ac_cv_use_button" |
10f2d63a | 5232 | if test "$no_cache" != 1; then |
1e6feb95 | 5233 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5234 | fi |
5235 | ||
1e6feb95 | 5236 | if test "$wxUSE_BUTTON" = yes; then |
698dcdb6 | 5237 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5238 | else |
698dcdb6 | 5239 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5240 | fi |
698dcdb6 | 5241 | |
10f2d63a | 5242 | |
698dcdb6 | 5243 | echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6 |
978f1259 | 5244 | echo "configure:5245: checking for --enable-bmpbutton" >&5 |
10f2d63a VZ |
5245 | no_cache=0 |
5246 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
5247 | if test "${enable_bmpbutton+set}" = set; then | |
5248 | enableval="$enable_bmpbutton" | |
698dcdb6 | 5249 | |
10f2d63a VZ |
5250 | if test "$enableval" = yes; then |
5251 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
5252 | else | |
5253 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
5254 | fi | |
698dcdb6 | 5255 | |
10f2d63a | 5256 | else |
698dcdb6 | 5257 | |
10f2d63a VZ |
5258 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` |
5259 | if test "x$LINE" != x ; then | |
5260 | eval "DEFAULT_$LINE" | |
5261 | else | |
5262 | no_cache=1 | |
5263 | fi | |
5264 | ||
5265 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
698dcdb6 VZ |
5266 | |
5267 | fi | |
10f2d63a VZ |
5268 | |
5269 | ||
5270 | eval "$ac_cv_use_bmpbutton" | |
5271 | if test "$no_cache" != 1; then | |
5272 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
5273 | fi | |
5274 | ||
5275 | if test "$wxUSE_BMPBUTTON" = yes; then | |
698dcdb6 | 5276 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5277 | else |
698dcdb6 | 5278 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5279 | fi |
698dcdb6 | 5280 | |
10f2d63a | 5281 | |
1e6feb95 | 5282 | echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6 |
978f1259 | 5283 | echo "configure:5284: checking for --enable-calendar" >&5 |
1e6feb95 VZ |
5284 | no_cache=0 |
5285 | # Check whether --enable-calendar or --disable-calendar was given. | |
5286 | if test "${enable_calendar+set}" = set; then | |
5287 | enableval="$enable_calendar" | |
5288 | ||
5289 | if test "$enableval" = yes; then | |
5290 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
5291 | else | |
5292 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
5293 | fi | |
5294 | ||
5295 | else | |
5296 | ||
5297 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
5298 | if test "x$LINE" != x ; then | |
5299 | eval "DEFAULT_$LINE" | |
5300 | else | |
5301 | no_cache=1 | |
5302 | fi | |
5303 | ||
5304 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
5305 | ||
5306 | fi | |
5307 | ||
5308 | ||
5309 | eval "$ac_cv_use_calendar" | |
5310 | if test "$no_cache" != 1; then | |
5311 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
5312 | fi | |
5313 | ||
5314 | if test "$wxUSE_CALCTRL" = yes; then | |
5315 | echo "$ac_t""yes" 1>&6 | |
5316 | else | |
5317 | echo "$ac_t""no" 1>&6 | |
5318 | fi | |
5319 | ||
5320 | ||
5321 | echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6 | |
978f1259 | 5322 | echo "configure:5323: checking for --enable-caret" >&5 |
1e6feb95 VZ |
5323 | no_cache=0 |
5324 | # Check whether --enable-caret or --disable-caret was given. | |
5325 | if test "${enable_caret+set}" = set; then | |
5326 | enableval="$enable_caret" | |
5327 | ||
5328 | if test "$enableval" = yes; then | |
5329 | ac_cv_use_caret='wxUSE_CARET=yes' | |
5330 | else | |
5331 | ac_cv_use_caret='wxUSE_CARET=no' | |
5332 | fi | |
5333 | ||
5334 | else | |
5335 | ||
5336 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
5337 | if test "x$LINE" != x ; then | |
5338 | eval "DEFAULT_$LINE" | |
5339 | else | |
5340 | no_cache=1 | |
5341 | fi | |
5342 | ||
5343 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
5344 | ||
5345 | fi | |
5346 | ||
5347 | ||
5348 | eval "$ac_cv_use_caret" | |
5349 | if test "$no_cache" != 1; then | |
5350 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
5351 | fi | |
5352 | ||
5353 | if test "$wxUSE_CARET" = yes; then | |
5354 | echo "$ac_t""yes" 1>&6 | |
5355 | else | |
5356 | echo "$ac_t""no" 1>&6 | |
5357 | fi | |
5358 | ||
5359 | ||
698dcdb6 | 5360 | echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6 |
978f1259 | 5361 | echo "configure:5362: checking for --enable-checkbox" >&5 |
10f2d63a VZ |
5362 | no_cache=0 |
5363 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
5364 | if test "${enable_checkbox+set}" = set; then | |
5365 | enableval="$enable_checkbox" | |
698dcdb6 | 5366 | |
10f2d63a VZ |
5367 | if test "$enableval" = yes; then |
5368 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
5369 | else | |
5370 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
5371 | fi | |
698dcdb6 | 5372 | |
10f2d63a | 5373 | else |
698dcdb6 | 5374 | |
10f2d63a VZ |
5375 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` |
5376 | if test "x$LINE" != x ; then | |
5377 | eval "DEFAULT_$LINE" | |
5378 | else | |
5379 | no_cache=1 | |
5380 | fi | |
5381 | ||
5382 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
698dcdb6 VZ |
5383 | |
5384 | fi | |
10f2d63a VZ |
5385 | |
5386 | ||
5387 | eval "$ac_cv_use_checkbox" | |
5388 | if test "$no_cache" != 1; then | |
5389 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
5390 | fi | |
5391 | ||
5392 | if test "$wxUSE_CHECKBOX" = yes; then | |
698dcdb6 | 5393 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5394 | else |
698dcdb6 | 5395 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5396 | fi |
698dcdb6 | 5397 | |
10f2d63a | 5398 | |
698dcdb6 | 5399 | echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6 |
978f1259 | 5400 | echo "configure:5401: checking for --enable-checklst" >&5 |
10f2d63a VZ |
5401 | no_cache=0 |
5402 | # Check whether --enable-checklst or --disable-checklst was given. | |
5403 | if test "${enable_checklst+set}" = set; then | |
5404 | enableval="$enable_checklst" | |
698dcdb6 | 5405 | |
10f2d63a VZ |
5406 | if test "$enableval" = yes; then |
5407 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
5408 | else | |
5409 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
5410 | fi | |
698dcdb6 | 5411 | |
10f2d63a | 5412 | else |
698dcdb6 | 5413 | |
10f2d63a VZ |
5414 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` |
5415 | if test "x$LINE" != x ; then | |
5416 | eval "DEFAULT_$LINE" | |
5417 | else | |
5418 | no_cache=1 | |
5419 | fi | |
5420 | ||
5421 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
698dcdb6 VZ |
5422 | |
5423 | fi | |
10f2d63a VZ |
5424 | |
5425 | ||
5426 | eval "$ac_cv_use_checklst" | |
5427 | if test "$no_cache" != 1; then | |
5428 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
5429 | fi | |
5430 | ||
5431 | if test "$wxUSE_CHECKLST" = yes; then | |
698dcdb6 | 5432 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5433 | else |
698dcdb6 | 5434 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5435 | fi |
698dcdb6 | 5436 | |
10f2d63a | 5437 | |
698dcdb6 | 5438 | echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6 |
978f1259 | 5439 | echo "configure:5440: checking for --enable-choice" >&5 |
10f2d63a VZ |
5440 | no_cache=0 |
5441 | # Check whether --enable-choice or --disable-choice was given. | |
5442 | if test "${enable_choice+set}" = set; then | |
5443 | enableval="$enable_choice" | |
698dcdb6 | 5444 | |
10f2d63a VZ |
5445 | if test "$enableval" = yes; then |
5446 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
5447 | else | |
5448 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
5449 | fi | |
698dcdb6 | 5450 | |
10f2d63a | 5451 | else |
698dcdb6 | 5452 | |
10f2d63a VZ |
5453 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` |
5454 | if test "x$LINE" != x ; then | |
5455 | eval "DEFAULT_$LINE" | |
5456 | else | |
5457 | no_cache=1 | |
5458 | fi | |
5459 | ||
5460 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
698dcdb6 VZ |
5461 | |
5462 | fi | |
10f2d63a VZ |
5463 | |
5464 | ||
5465 | eval "$ac_cv_use_choice" | |
5466 | if test "$no_cache" != 1; then | |
5467 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
5468 | fi | |
5469 | ||
5470 | if test "$wxUSE_CHOICE" = yes; then | |
698dcdb6 | 5471 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5472 | else |
698dcdb6 | 5473 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5474 | fi |
698dcdb6 | 5475 | |
10f2d63a | 5476 | |
698dcdb6 | 5477 | echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6 |
978f1259 | 5478 | echo "configure:5479: checking for --enable-combobox" >&5 |
10f2d63a VZ |
5479 | no_cache=0 |
5480 | # Check whether --enable-combobox or --disable-combobox was given. | |
5481 | if test "${enable_combobox+set}" = set; then | |
5482 | enableval="$enable_combobox" | |
698dcdb6 | 5483 | |
10f2d63a VZ |
5484 | if test "$enableval" = yes; then |
5485 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
5486 | else | |
5487 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
5488 | fi | |
698dcdb6 | 5489 | |
10f2d63a | 5490 | else |
698dcdb6 | 5491 | |
10f2d63a VZ |
5492 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` |
5493 | if test "x$LINE" != x ; then | |
5494 | eval "DEFAULT_$LINE" | |
5495 | else | |
5496 | no_cache=1 | |
5497 | fi | |
5498 | ||
5499 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
698dcdb6 VZ |
5500 | |
5501 | fi | |
10f2d63a VZ |
5502 | |
5503 | ||
5504 | eval "$ac_cv_use_combobox" | |
5505 | if test "$no_cache" != 1; then | |
5506 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
5507 | fi | |
5508 | ||
5509 | if test "$wxUSE_COMBOBOX" = yes; then | |
698dcdb6 | 5510 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5511 | else |
698dcdb6 | 5512 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5513 | fi |
698dcdb6 | 5514 | |
10f2d63a | 5515 | |
698dcdb6 | 5516 | echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6 |
978f1259 | 5517 | echo "configure:5518: checking for --enable-gauge" >&5 |
10f2d63a VZ |
5518 | no_cache=0 |
5519 | # Check whether --enable-gauge or --disable-gauge was given. | |
5520 | if test "${enable_gauge+set}" = set; then | |
5521 | enableval="$enable_gauge" | |
698dcdb6 | 5522 | |
10f2d63a VZ |
5523 | if test "$enableval" = yes; then |
5524 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
5525 | else | |
5526 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
5527 | fi | |
698dcdb6 | 5528 | |
10f2d63a | 5529 | else |
698dcdb6 | 5530 | |
10f2d63a VZ |
5531 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` |
5532 | if test "x$LINE" != x ; then | |
5533 | eval "DEFAULT_$LINE" | |
5534 | else | |
5535 | no_cache=1 | |
5536 | fi | |
5537 | ||
5538 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
698dcdb6 VZ |
5539 | |
5540 | fi | |
10f2d63a VZ |
5541 | |
5542 | ||
5543 | eval "$ac_cv_use_gauge" | |
5544 | if test "$no_cache" != 1; then | |
5545 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
5546 | fi | |
5547 | ||
5548 | if test "$wxUSE_GAUGE" = yes; then | |
698dcdb6 | 5549 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5550 | else |
698dcdb6 | 5551 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5552 | fi |
698dcdb6 | 5553 | |
10f2d63a | 5554 | |
698dcdb6 | 5555 | echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6 |
978f1259 | 5556 | echo "configure:5557: checking for --enable-grid" >&5 |
10f2d63a VZ |
5557 | no_cache=0 |
5558 | # Check whether --enable-grid or --disable-grid was given. | |
5559 | if test "${enable_grid+set}" = set; then | |
5560 | enableval="$enable_grid" | |
698dcdb6 | 5561 | |
10f2d63a VZ |
5562 | if test "$enableval" = yes; then |
5563 | ac_cv_use_grid='wxUSE_GRID=yes' | |
5564 | else | |
5565 | ac_cv_use_grid='wxUSE_GRID=no' | |
5566 | fi | |
698dcdb6 | 5567 | |
10f2d63a | 5568 | else |
698dcdb6 | 5569 | |
10f2d63a VZ |
5570 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` |
5571 | if test "x$LINE" != x ; then | |
5572 | eval "DEFAULT_$LINE" | |
5573 | else | |
5574 | no_cache=1 | |
5575 | fi | |
5576 | ||
5577 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
698dcdb6 VZ |
5578 | |
5579 | fi | |
10f2d63a VZ |
5580 | |
5581 | ||
5582 | eval "$ac_cv_use_grid" | |
5583 | if test "$no_cache" != 1; then | |
5584 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
5585 | fi | |
5586 | ||
5587 | if test "$wxUSE_GRID" = yes; then | |
698dcdb6 | 5588 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5589 | else |
698dcdb6 | 5590 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5591 | fi |
698dcdb6 | 5592 | |
10f2d63a | 5593 | |
698dcdb6 | 5594 | echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6 |
978f1259 | 5595 | echo "configure:5596: checking for --enable-newgrid" >&5 |
10f2d63a VZ |
5596 | no_cache=0 |
5597 | # Check whether --enable-newgrid or --disable-newgrid was given. | |
5598 | if test "${enable_newgrid+set}" = set; then | |
5599 | enableval="$enable_newgrid" | |
698dcdb6 | 5600 | |
10f2d63a VZ |
5601 | if test "$enableval" = yes; then |
5602 | ac_cv_use_newgrid='wxUSE_NEW_GRID=yes' | |
5603 | else | |
5604 | ac_cv_use_newgrid='wxUSE_NEW_GRID=no' | |
5605 | fi | |
698dcdb6 | 5606 | |
10f2d63a | 5607 | else |
698dcdb6 | 5608 | |
10f2d63a VZ |
5609 | LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}` |
5610 | if test "x$LINE" != x ; then | |
5611 | eval "DEFAULT_$LINE" | |
5612 | else | |
5613 | no_cache=1 | |
5614 | fi | |
5615 | ||
5616 | ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID | |
698dcdb6 VZ |
5617 | |
5618 | fi | |
10f2d63a VZ |
5619 | |
5620 | ||
5621 | eval "$ac_cv_use_newgrid" | |
5622 | if test "$no_cache" != 1; then | |
5623 | echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp | |
5624 | fi | |
5625 | ||
5626 | if test "$wxUSE_NEW_GRID" = yes; then | |
698dcdb6 | 5627 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5628 | else |
698dcdb6 | 5629 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5630 | fi |
698dcdb6 | 5631 | |
10f2d63a | 5632 | |
698dcdb6 | 5633 | echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6 |
978f1259 | 5634 | echo "configure:5635: checking for --enable-imaglist" >&5 |
10f2d63a VZ |
5635 | no_cache=0 |
5636 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
5637 | if test "${enable_imaglist+set}" = set; then | |
5638 | enableval="$enable_imaglist" | |
698dcdb6 | 5639 | |
10f2d63a VZ |
5640 | if test "$enableval" = yes; then |
5641 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
5642 | else | |
5643 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
5644 | fi | |
698dcdb6 | 5645 | |
10f2d63a | 5646 | else |
698dcdb6 | 5647 | |
10f2d63a VZ |
5648 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` |
5649 | if test "x$LINE" != x ; then | |
5650 | eval "DEFAULT_$LINE" | |
5651 | else | |
5652 | no_cache=1 | |
5653 | fi | |
5654 | ||
5655 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
698dcdb6 VZ |
5656 | |
5657 | fi | |
10f2d63a VZ |
5658 | |
5659 | ||
5660 | eval "$ac_cv_use_imaglist" | |
5661 | if test "$no_cache" != 1; then | |
5662 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
5663 | fi | |
5664 | ||
5665 | if test "$wxUSE_IMAGLIST" = yes; then | |
698dcdb6 | 5666 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5667 | else |
698dcdb6 | 5668 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5669 | fi |
698dcdb6 | 5670 | |
10f2d63a | 5671 | |
698dcdb6 | 5672 | echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6 |
978f1259 | 5673 | echo "configure:5674: checking for --enable-listbox" >&5 |
10f2d63a VZ |
5674 | no_cache=0 |
5675 | # Check whether --enable-listbox or --disable-listbox was given. | |
5676 | if test "${enable_listbox+set}" = set; then | |
5677 | enableval="$enable_listbox" | |
698dcdb6 | 5678 | |
10f2d63a VZ |
5679 | if test "$enableval" = yes; then |
5680 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
5681 | else | |
5682 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
5683 | fi | |
698dcdb6 | 5684 | |
10f2d63a | 5685 | else |
698dcdb6 | 5686 | |
10f2d63a VZ |
5687 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` |
5688 | if test "x$LINE" != x ; then | |
5689 | eval "DEFAULT_$LINE" | |
5690 | else | |
5691 | no_cache=1 | |
5692 | fi | |
5693 | ||
5694 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
698dcdb6 VZ |
5695 | |
5696 | fi | |
10f2d63a VZ |
5697 | |
5698 | ||
5699 | eval "$ac_cv_use_listbox" | |
5700 | if test "$no_cache" != 1; then | |
5701 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
5702 | fi | |
5703 | ||
5704 | if test "$wxUSE_LISTBOX" = yes; then | |
698dcdb6 | 5705 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5706 | else |
698dcdb6 | 5707 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5708 | fi |
698dcdb6 | 5709 | |
10f2d63a | 5710 | |
698dcdb6 | 5711 | echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6 |
978f1259 | 5712 | echo "configure:5713: checking for --enable-listctrl" >&5 |
10f2d63a VZ |
5713 | no_cache=0 |
5714 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
5715 | if test "${enable_listctrl+set}" = set; then | |
5716 | enableval="$enable_listctrl" | |
698dcdb6 | 5717 | |
10f2d63a VZ |
5718 | if test "$enableval" = yes; then |
5719 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
5720 | else | |
5721 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
5722 | fi | |
698dcdb6 | 5723 | |
10f2d63a | 5724 | else |
698dcdb6 | 5725 | |
10f2d63a VZ |
5726 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` |
5727 | if test "x$LINE" != x ; then | |
5728 | eval "DEFAULT_$LINE" | |
5729 | else | |
5730 | no_cache=1 | |
5731 | fi | |
5732 | ||
5733 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
698dcdb6 VZ |
5734 | |
5735 | fi | |
10f2d63a VZ |
5736 | |
5737 | ||
5738 | eval "$ac_cv_use_listctrl" | |
5739 | if test "$no_cache" != 1; then | |
5740 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
5741 | fi | |
5742 | ||
5743 | if test "$wxUSE_LISTCTRL" = yes; then | |
698dcdb6 | 5744 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5745 | else |
698dcdb6 | 5746 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5747 | fi |
698dcdb6 | 5748 | |
10f2d63a | 5749 | |
698dcdb6 | 5750 | echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6 |
978f1259 | 5751 | echo "configure:5752: checking for --enable-notebook" >&5 |
10f2d63a VZ |
5752 | no_cache=0 |
5753 | # Check whether --enable-notebook or --disable-notebook was given. | |
5754 | if test "${enable_notebook+set}" = set; then | |
5755 | enableval="$enable_notebook" | |
698dcdb6 | 5756 | |
10f2d63a VZ |
5757 | if test "$enableval" = yes; then |
5758 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
5759 | else | |
5760 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
5761 | fi | |
698dcdb6 | 5762 | |
10f2d63a | 5763 | else |
698dcdb6 | 5764 | |
10f2d63a VZ |
5765 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` |
5766 | if test "x$LINE" != x ; then | |
5767 | eval "DEFAULT_$LINE" | |
5768 | else | |
5769 | no_cache=1 | |
5770 | fi | |
5771 | ||
5772 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
698dcdb6 VZ |
5773 | |
5774 | fi | |
10f2d63a VZ |
5775 | |
5776 | ||
5777 | eval "$ac_cv_use_notebook" | |
5778 | if test "$no_cache" != 1; then | |
5779 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
5780 | fi | |
5781 | ||
5782 | if test "$wxUSE_NOTEBOOK" = yes; then | |
698dcdb6 | 5783 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5784 | else |
698dcdb6 | 5785 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5786 | fi |
698dcdb6 | 5787 | |
10f2d63a | 5788 | |
24176f2c | 5789 | echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6 |
978f1259 | 5790 | echo "configure:5791: checking for --enable-propsheet" >&5 |
24176f2c GD |
5791 | no_cache=0 |
5792 | # Check whether --enable-propsheet or --disable-propsheet was given. | |
5793 | if test "${enable_propsheet+set}" = set; then | |
5794 | enableval="$enable_propsheet" | |
5795 | ||
5796 | if test "$enableval" = yes; then | |
5797 | ac_cv_use_propsheet='wxUSE_PROPSHEET=yes' | |
5798 | else | |
5799 | ac_cv_use_propsheet='wxUSE_PROPSHEET=no' | |
5800 | fi | |
5801 | ||
5802 | else | |
5803 | ||
5804 | LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}` | |
5805 | if test "x$LINE" != x ; then | |
5806 | eval "DEFAULT_$LINE" | |
5807 | else | |
5808 | no_cache=1 | |
5809 | fi | |
5810 | ||
5811 | ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET | |
5812 | ||
5813 | fi | |
5814 | ||
5815 | ||
5816 | eval "$ac_cv_use_propsheet" | |
5817 | if test "$no_cache" != 1; then | |
5818 | echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp | |
5819 | fi | |
5820 | ||
5821 | if test "$wxUSE_PROPSHEET" = yes; then | |
5822 | echo "$ac_t""yes" 1>&6 | |
5823 | else | |
5824 | echo "$ac_t""no" 1>&6 | |
5825 | fi | |
5826 | ||
5827 | ||
698dcdb6 | 5828 | echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6 |
978f1259 | 5829 | echo "configure:5830: checking for --enable-radiobox" >&5 |
10f2d63a VZ |
5830 | no_cache=0 |
5831 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
5832 | if test "${enable_radiobox+set}" = set; then | |
5833 | enableval="$enable_radiobox" | |
698dcdb6 | 5834 | |
10f2d63a VZ |
5835 | if test "$enableval" = yes; then |
5836 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
5837 | else | |
5838 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
5839 | fi | |
698dcdb6 | 5840 | |
10f2d63a | 5841 | else |
698dcdb6 | 5842 | |
10f2d63a VZ |
5843 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` |
5844 | if test "x$LINE" != x ; then | |
5845 | eval "DEFAULT_$LINE" | |
5846 | else | |
5847 | no_cache=1 | |
5848 | fi | |
5849 | ||
5850 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
698dcdb6 VZ |
5851 | |
5852 | fi | |
10f2d63a VZ |
5853 | |
5854 | ||
5855 | eval "$ac_cv_use_radiobox" | |
5856 | if test "$no_cache" != 1; then | |
5857 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
5858 | fi | |
5859 | ||
5860 | if test "$wxUSE_RADIOBOX" = yes; then | |
698dcdb6 | 5861 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5862 | else |
698dcdb6 | 5863 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5864 | fi |
698dcdb6 | 5865 | |
10f2d63a | 5866 | |
698dcdb6 | 5867 | echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6 |
978f1259 | 5868 | echo "configure:5869: checking for --enable-radiobtn" >&5 |
10f2d63a VZ |
5869 | no_cache=0 |
5870 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
5871 | if test "${enable_radiobtn+set}" = set; then | |
5872 | enableval="$enable_radiobtn" | |
698dcdb6 | 5873 | |
10f2d63a VZ |
5874 | if test "$enableval" = yes; then |
5875 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
5876 | else | |
5877 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
5878 | fi | |
698dcdb6 | 5879 | |
10f2d63a | 5880 | else |
698dcdb6 | 5881 | |
10f2d63a VZ |
5882 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` |
5883 | if test "x$LINE" != x ; then | |
5884 | eval "DEFAULT_$LINE" | |
5885 | else | |
5886 | no_cache=1 | |
5887 | fi | |
5888 | ||
5889 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
698dcdb6 VZ |
5890 | |
5891 | fi | |
10f2d63a VZ |
5892 | |
5893 | ||
5894 | eval "$ac_cv_use_radiobtn" | |
5895 | if test "$no_cache" != 1; then | |
5896 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
5897 | fi | |
5898 | ||
5899 | if test "$wxUSE_RADIOBTN" = yes; then | |
698dcdb6 | 5900 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5901 | else |
698dcdb6 | 5902 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5903 | fi |
698dcdb6 | 5904 | |
10f2d63a | 5905 | |
698dcdb6 | 5906 | echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6 |
978f1259 | 5907 | echo "configure:5908: checking for --enable-sash" >&5 |
10f2d63a VZ |
5908 | no_cache=0 |
5909 | # Check whether --enable-sash or --disable-sash was given. | |
5910 | if test "${enable_sash+set}" = set; then | |
5911 | enableval="$enable_sash" | |
698dcdb6 | 5912 | |
10f2d63a VZ |
5913 | if test "$enableval" = yes; then |
5914 | ac_cv_use_sash='wxUSE_SASH=yes' | |
5915 | else | |
5916 | ac_cv_use_sash='wxUSE_SASH=no' | |
5917 | fi | |
698dcdb6 | 5918 | |
10f2d63a | 5919 | else |
698dcdb6 | 5920 | |
10f2d63a VZ |
5921 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` |
5922 | if test "x$LINE" != x ; then | |
5923 | eval "DEFAULT_$LINE" | |
5924 | else | |
5925 | no_cache=1 | |
5926 | fi | |
5927 | ||
5928 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
698dcdb6 VZ |
5929 | |
5930 | fi | |
10f2d63a VZ |
5931 | |
5932 | ||
5933 | eval "$ac_cv_use_sash" | |
5934 | if test "$no_cache" != 1; then | |
5935 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
5936 | fi | |
5937 | ||
5938 | if test "$wxUSE_SASH" = yes; then | |
698dcdb6 | 5939 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5940 | else |
698dcdb6 | 5941 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5942 | fi |
698dcdb6 | 5943 | |
10f2d63a | 5944 | |
698dcdb6 | 5945 | echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6 |
978f1259 | 5946 | echo "configure:5947: checking for --enable-scrollbar" >&5 |
10f2d63a VZ |
5947 | no_cache=0 |
5948 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
5949 | if test "${enable_scrollbar+set}" = set; then | |
5950 | enableval="$enable_scrollbar" | |
698dcdb6 | 5951 | |
10f2d63a VZ |
5952 | if test "$enableval" = yes; then |
5953 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
5954 | else | |
5955 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
5956 | fi | |
698dcdb6 | 5957 | |
10f2d63a | 5958 | else |
698dcdb6 | 5959 | |
10f2d63a VZ |
5960 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` |
5961 | if test "x$LINE" != x ; then | |
5962 | eval "DEFAULT_$LINE" | |
5963 | else | |
5964 | no_cache=1 | |
5965 | fi | |
5966 | ||
5967 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
698dcdb6 VZ |
5968 | |
5969 | fi | |
10f2d63a VZ |
5970 | |
5971 | ||
5972 | eval "$ac_cv_use_scrollbar" | |
5973 | if test "$no_cache" != 1; then | |
5974 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
5975 | fi | |
5976 | ||
5977 | if test "$wxUSE_SCROLLBAR" = yes; then | |
698dcdb6 | 5978 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5979 | else |
698dcdb6 | 5980 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5981 | fi |
698dcdb6 | 5982 | |
10f2d63a | 5983 | |
698dcdb6 | 5984 | echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6 |
978f1259 | 5985 | echo "configure:5986: checking for --enable-slider" >&5 |
10f2d63a VZ |
5986 | no_cache=0 |
5987 | # Check whether --enable-slider or --disable-slider was given. | |
5988 | if test "${enable_slider+set}" = set; then | |
5989 | enableval="$enable_slider" | |
698dcdb6 | 5990 | |
10f2d63a VZ |
5991 | if test "$enableval" = yes; then |
5992 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
5993 | else | |
5994 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
5995 | fi | |
698dcdb6 | 5996 | |
10f2d63a | 5997 | else |
698dcdb6 | 5998 | |
10f2d63a VZ |
5999 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` |
6000 | if test "x$LINE" != x ; then | |
6001 | eval "DEFAULT_$LINE" | |
6002 | else | |
6003 | no_cache=1 | |
6004 | fi | |
6005 | ||
6006 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
698dcdb6 VZ |
6007 | |
6008 | fi | |
10f2d63a VZ |
6009 | |
6010 | ||
6011 | eval "$ac_cv_use_slider" | |
6012 | if test "$no_cache" != 1; then | |
6013 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
6014 | fi | |
6015 | ||
6016 | if test "$wxUSE_SLIDER" = yes; then | |
698dcdb6 | 6017 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6018 | else |
698dcdb6 | 6019 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6020 | fi |
698dcdb6 | 6021 | |
10f2d63a | 6022 | |
698dcdb6 | 6023 | echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6 |
978f1259 | 6024 | echo "configure:6025: checking for --enable-spinbtn" >&5 |
10f2d63a VZ |
6025 | no_cache=0 |
6026 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
6027 | if test "${enable_spinbtn+set}" = set; then | |
6028 | enableval="$enable_spinbtn" | |
698dcdb6 | 6029 | |
10f2d63a VZ |
6030 | if test "$enableval" = yes; then |
6031 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
6032 | else | |
6033 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
6034 | fi | |
698dcdb6 | 6035 | |
10f2d63a | 6036 | else |
698dcdb6 | 6037 | |
10f2d63a VZ |
6038 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` |
6039 | if test "x$LINE" != x ; then | |
6040 | eval "DEFAULT_$LINE" | |
6041 | else | |
6042 | no_cache=1 | |
6043 | fi | |
6044 | ||
6045 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
698dcdb6 VZ |
6046 | |
6047 | fi | |
10f2d63a VZ |
6048 | |
6049 | ||
6050 | eval "$ac_cv_use_spinbtn" | |
6051 | if test "$no_cache" != 1; then | |
6052 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
6053 | fi | |
6054 | ||
6055 | if test "$wxUSE_SPINBTN" = yes; then | |
698dcdb6 | 6056 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6057 | else |
698dcdb6 | 6058 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6059 | fi |
698dcdb6 | 6060 | |
10f2d63a | 6061 | |
698dcdb6 | 6062 | echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6 |
978f1259 | 6063 | echo "configure:6064: checking for --enable-spinctrl" >&5 |
56cfaa52 RR |
6064 | no_cache=0 |
6065 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
6066 | if test "${enable_spinctrl+set}" = set; then | |
6067 | enableval="$enable_spinctrl" | |
698dcdb6 | 6068 | |
56cfaa52 RR |
6069 | if test "$enableval" = yes; then |
6070 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
6071 | else | |
6072 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
6073 | fi | |
698dcdb6 | 6074 | |
56cfaa52 | 6075 | else |
698dcdb6 | 6076 | |
56cfaa52 RR |
6077 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` |
6078 | if test "x$LINE" != x ; then | |
6079 | eval "DEFAULT_$LINE" | |
6080 | else | |
6081 | no_cache=1 | |
6082 | fi | |
6083 | ||
6084 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
698dcdb6 VZ |
6085 | |
6086 | fi | |
56cfaa52 RR |
6087 | |
6088 | ||
6089 | eval "$ac_cv_use_spinctrl" | |
6090 | if test "$no_cache" != 1; then | |
6091 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
6092 | fi | |
6093 | ||
6094 | if test "$wxUSE_SPINCTRL" = yes; then | |
698dcdb6 | 6095 | echo "$ac_t""yes" 1>&6 |
56cfaa52 | 6096 | else |
698dcdb6 | 6097 | echo "$ac_t""no" 1>&6 |
56cfaa52 | 6098 | fi |
698dcdb6 | 6099 | |
56cfaa52 | 6100 | |
698dcdb6 | 6101 | echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6 |
978f1259 | 6102 | echo "configure:6103: checking for --enable-splitter" >&5 |
10f2d63a VZ |
6103 | no_cache=0 |
6104 | # Check whether --enable-splitter or --disable-splitter was given. | |
6105 | if test "${enable_splitter+set}" = set; then | |
6106 | enableval="$enable_splitter" | |
698dcdb6 | 6107 | |
10f2d63a VZ |
6108 | if test "$enableval" = yes; then |
6109 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
6110 | else | |
6111 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
6112 | fi | |
698dcdb6 | 6113 | |
10f2d63a | 6114 | else |
698dcdb6 | 6115 | |
10f2d63a VZ |
6116 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` |
6117 | if test "x$LINE" != x ; then | |
6118 | eval "DEFAULT_$LINE" | |
6119 | else | |
6120 | no_cache=1 | |
6121 | fi | |
6122 | ||
6123 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
698dcdb6 VZ |
6124 | |
6125 | fi | |
10f2d63a VZ |
6126 | |
6127 | ||
6128 | eval "$ac_cv_use_splitter" | |
6129 | if test "$no_cache" != 1; then | |
6130 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
6131 | fi | |
6132 | ||
6133 | if test "$wxUSE_SPLITTER" = yes; then | |
698dcdb6 | 6134 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6135 | else |
698dcdb6 | 6136 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6137 | fi |
698dcdb6 | 6138 | |
10f2d63a | 6139 | |
698dcdb6 | 6140 | echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6 |
978f1259 | 6141 | echo "configure:6142: checking for --enable-statbmp" >&5 |
10f2d63a VZ |
6142 | no_cache=0 |
6143 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
6144 | if test "${enable_statbmp+set}" = set; then | |
6145 | enableval="$enable_statbmp" | |
698dcdb6 | 6146 | |
10f2d63a VZ |
6147 | if test "$enableval" = yes; then |
6148 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
6149 | else | |
6150 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
6151 | fi | |
698dcdb6 | 6152 | |
10f2d63a | 6153 | else |
698dcdb6 | 6154 | |
10f2d63a VZ |
6155 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` |
6156 | if test "x$LINE" != x ; then | |
6157 | eval "DEFAULT_$LINE" | |
6158 | else | |
6159 | no_cache=1 | |
6160 | fi | |
6161 | ||
6162 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
698dcdb6 VZ |
6163 | |
6164 | fi | |
10f2d63a VZ |
6165 | |
6166 | ||
6167 | eval "$ac_cv_use_statbmp" | |
6168 | if test "$no_cache" != 1; then | |
6169 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
6170 | fi | |
6171 | ||
6172 | if test "$wxUSE_STATBMP" = yes; then | |
698dcdb6 | 6173 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6174 | else |
698dcdb6 | 6175 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6176 | fi |
698dcdb6 | 6177 | |
10f2d63a | 6178 | |
698dcdb6 | 6179 | echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6 |
978f1259 | 6180 | echo "configure:6181: checking for --enable-statbox" >&5 |
10f2d63a VZ |
6181 | no_cache=0 |
6182 | # Check whether --enable-statbox or --disable-statbox was given. | |
6183 | if test "${enable_statbox+set}" = set; then | |
6184 | enableval="$enable_statbox" | |
698dcdb6 | 6185 | |
10f2d63a VZ |
6186 | if test "$enableval" = yes; then |
6187 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
6188 | else | |
6189 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
6190 | fi | |
698dcdb6 | 6191 | |
10f2d63a | 6192 | else |
698dcdb6 | 6193 | |
10f2d63a VZ |
6194 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` |
6195 | if test "x$LINE" != x ; then | |
6196 | eval "DEFAULT_$LINE" | |
6197 | else | |
6198 | no_cache=1 | |
6199 | fi | |
6200 | ||
6201 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
698dcdb6 VZ |
6202 | |
6203 | fi | |
10f2d63a VZ |
6204 | |
6205 | ||
6206 | eval "$ac_cv_use_statbox" | |
6207 | if test "$no_cache" != 1; then | |
6208 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
6209 | fi | |
6210 | ||
6211 | if test "$wxUSE_STATBOX" = yes; then | |
698dcdb6 | 6212 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6213 | else |
698dcdb6 | 6214 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6215 | fi |
698dcdb6 | 6216 | |
10f2d63a | 6217 | |
698dcdb6 | 6218 | echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6 |
978f1259 | 6219 | echo "configure:6220: checking for --enable-statline" >&5 |
10f2d63a VZ |
6220 | no_cache=0 |
6221 | # Check whether --enable-statline or --disable-statline was given. | |
6222 | if test "${enable_statline+set}" = set; then | |
6223 | enableval="$enable_statline" | |
698dcdb6 | 6224 | |
10f2d63a VZ |
6225 | if test "$enableval" = yes; then |
6226 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
6227 | else | |
6228 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
6229 | fi | |
698dcdb6 | 6230 | |
10f2d63a | 6231 | else |
698dcdb6 | 6232 | |
10f2d63a VZ |
6233 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` |
6234 | if test "x$LINE" != x ; then | |
6235 | eval "DEFAULT_$LINE" | |
6236 | else | |
6237 | no_cache=1 | |
6238 | fi | |
6239 | ||
6240 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
698dcdb6 VZ |
6241 | |
6242 | fi | |
10f2d63a VZ |
6243 | |
6244 | ||
6245 | eval "$ac_cv_use_statline" | |
6246 | if test "$no_cache" != 1; then | |
6247 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
6248 | fi | |
6249 | ||
6250 | if test "$wxUSE_STATLINE" = yes; then | |
698dcdb6 | 6251 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6252 | else |
698dcdb6 | 6253 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6254 | fi |
698dcdb6 | 6255 | |
10f2d63a | 6256 | |
1e6feb95 | 6257 | echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6 |
978f1259 | 6258 | echo "configure:6259: checking for --enable-stattext" >&5 |
1e6feb95 VZ |
6259 | no_cache=0 |
6260 | # Check whether --enable-stattext or --disable-stattext was given. | |
6261 | if test "${enable_stattext+set}" = set; then | |
6262 | enableval="$enable_stattext" | |
6263 | ||
6264 | if test "$enableval" = yes; then | |
6265 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
6266 | else | |
6267 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
6268 | fi | |
6269 | ||
6270 | else | |
6271 | ||
6272 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
6273 | if test "x$LINE" != x ; then | |
6274 | eval "DEFAULT_$LINE" | |
6275 | else | |
6276 | no_cache=1 | |
6277 | fi | |
6278 | ||
6279 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
6280 | ||
6281 | fi | |
6282 | ||
6283 | ||
6284 | eval "$ac_cv_use_stattext" | |
6285 | if test "$no_cache" != 1; then | |
6286 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
6287 | fi | |
6288 | ||
6289 | if test "$wxUSE_STATTEXT" = yes; then | |
6290 | echo "$ac_t""yes" 1>&6 | |
6291 | else | |
6292 | echo "$ac_t""no" 1>&6 | |
6293 | fi | |
6294 | ||
6295 | ||
698dcdb6 | 6296 | echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6 |
978f1259 | 6297 | echo "configure:6298: checking for --enable-statusbar" >&5 |
10f2d63a VZ |
6298 | no_cache=0 |
6299 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
6300 | if test "${enable_statusbar+set}" = set; then | |
6301 | enableval="$enable_statusbar" | |
698dcdb6 | 6302 | |
10f2d63a VZ |
6303 | if test "$enableval" = yes; then |
6304 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
6305 | else | |
6306 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
6307 | fi | |
698dcdb6 | 6308 | |
10f2d63a | 6309 | else |
698dcdb6 | 6310 | |
10f2d63a VZ |
6311 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` |
6312 | if test "x$LINE" != x ; then | |
6313 | eval "DEFAULT_$LINE" | |
6314 | else | |
6315 | no_cache=1 | |
6316 | fi | |
6317 | ||
6318 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
698dcdb6 VZ |
6319 | |
6320 | fi | |
10f2d63a VZ |
6321 | |
6322 | ||
6323 | eval "$ac_cv_use_statusbar" | |
6324 | if test "$no_cache" != 1; then | |
6325 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
6326 | fi | |
6327 | ||
6328 | if test "$wxUSE_STATUSBAR" = yes; then | |
698dcdb6 | 6329 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6330 | else |
698dcdb6 | 6331 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6332 | fi |
698dcdb6 | 6333 | |
10f2d63a | 6334 | |
698dcdb6 | 6335 | echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6 |
978f1259 | 6336 | echo "configure:6337: checking for --enable-tabdialog" >&5 |
10f2d63a VZ |
6337 | no_cache=0 |
6338 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
6339 | if test "${enable_tabdialog+set}" = set; then | |
6340 | enableval="$enable_tabdialog" | |
698dcdb6 | 6341 | |
10f2d63a VZ |
6342 | if test "$enableval" = yes; then |
6343 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
6344 | else | |
6345 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
6346 | fi | |
698dcdb6 | 6347 | |
10f2d63a | 6348 | else |
698dcdb6 | 6349 | |
10f2d63a VZ |
6350 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` |
6351 | if test "x$LINE" != x ; then | |
6352 | eval "DEFAULT_$LINE" | |
6353 | else | |
6354 | no_cache=1 | |
6355 | fi | |
6356 | ||
6357 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
698dcdb6 VZ |
6358 | |
6359 | fi | |
10f2d63a VZ |
6360 | |
6361 | ||
6362 | eval "$ac_cv_use_tabdialog" | |
6363 | if test "$no_cache" != 1; then | |
6364 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
6365 | fi | |
6366 | ||
6367 | if test "$wxUSE_TABDIALOG" = yes; then | |
698dcdb6 | 6368 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6369 | else |
698dcdb6 | 6370 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6371 | fi |
698dcdb6 | 6372 | |
10f2d63a | 6373 | |
1e6feb95 | 6374 | echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6 |
978f1259 | 6375 | echo "configure:6376: checking for --enable-textctrl" >&5 |
1e6feb95 VZ |
6376 | no_cache=0 |
6377 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
6378 | if test "${enable_textctrl+set}" = set; then | |
6379 | enableval="$enable_textctrl" | |
6380 | ||
6381 | if test "$enableval" = yes; then | |
6382 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
6383 | else | |
6384 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
6385 | fi | |
6386 | ||
6387 | else | |
6388 | ||
6389 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
6390 | if test "x$LINE" != x ; then | |
6391 | eval "DEFAULT_$LINE" | |
6392 | else | |
6393 | no_cache=1 | |
6394 | fi | |
6395 | ||
6396 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
6397 | ||
6398 | fi | |
6399 | ||
6400 | ||
6401 | eval "$ac_cv_use_textctrl" | |
6402 | if test "$no_cache" != 1; then | |
6403 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
6404 | fi | |
6405 | ||
6406 | if test "$wxUSE_TEXTCTRL" = yes; then | |
6407 | echo "$ac_t""yes" 1>&6 | |
6408 | else | |
6409 | echo "$ac_t""no" 1>&6 | |
6410 | fi | |
6411 | ||
6412 | ||
698dcdb6 | 6413 | echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6 |
978f1259 | 6414 | echo "configure:6415: checking for --enable-togglebtn" >&5 |
1db8dc4a VZ |
6415 | no_cache=0 |
6416 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
6417 | if test "${enable_togglebtn+set}" = set; then | |
6418 | enableval="$enable_togglebtn" | |
698dcdb6 | 6419 | |
1db8dc4a VZ |
6420 | if test "$enableval" = yes; then |
6421 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
6422 | else | |
6423 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
6424 | fi | |
698dcdb6 | 6425 | |
1db8dc4a | 6426 | else |
698dcdb6 | 6427 | |
1db8dc4a VZ |
6428 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` |
6429 | if test "x$LINE" != x ; then | |
6430 | eval "DEFAULT_$LINE" | |
6431 | else | |
6432 | no_cache=1 | |
6433 | fi | |
6434 | ||
6435 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
698dcdb6 VZ |
6436 | |
6437 | fi | |
1db8dc4a VZ |
6438 | |
6439 | ||
6440 | eval "$ac_cv_use_togglebtn" | |
6441 | if test "$no_cache" != 1; then | |
6442 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
6443 | fi | |
6444 | ||
6445 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
698dcdb6 | 6446 | echo "$ac_t""yes" 1>&6 |
1db8dc4a | 6447 | else |
698dcdb6 | 6448 | echo "$ac_t""no" 1>&6 |
1db8dc4a | 6449 | fi |
698dcdb6 | 6450 | |
1db8dc4a | 6451 | |
698dcdb6 | 6452 | echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6 |
978f1259 | 6453 | echo "configure:6454: checking for --enable-toolbar" >&5 |
10f2d63a VZ |
6454 | no_cache=0 |
6455 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
6456 | if test "${enable_toolbar+set}" = set; then | |
6457 | enableval="$enable_toolbar" | |
698dcdb6 | 6458 | |
10f2d63a VZ |
6459 | if test "$enableval" = yes; then |
6460 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
6461 | else | |
6462 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
6463 | fi | |
698dcdb6 | 6464 | |
10f2d63a | 6465 | else |
698dcdb6 | 6466 | |
10f2d63a VZ |
6467 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` |
6468 | if test "x$LINE" != x ; then | |
6469 | eval "DEFAULT_$LINE" | |
6470 | else | |
6471 | no_cache=1 | |
6472 | fi | |
6473 | ||
6474 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
698dcdb6 VZ |
6475 | |
6476 | fi | |
10f2d63a VZ |
6477 | |
6478 | ||
6479 | eval "$ac_cv_use_toolbar" | |
6480 | if test "$no_cache" != 1; then | |
6481 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
6482 | fi | |
6483 | ||
6484 | if test "$wxUSE_TOOLBAR" = yes; then | |
698dcdb6 | 6485 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6486 | else |
698dcdb6 | 6487 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6488 | fi |
698dcdb6 | 6489 | |
10f2d63a | 6490 | |
698dcdb6 | 6491 | echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6 |
978f1259 | 6492 | echo "configure:6493: checking for --enable-tbarnative" >&5 |
360d6699 VZ |
6493 | no_cache=0 |
6494 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
6495 | if test "${enable_tbarnative+set}" = set; then | |
6496 | enableval="$enable_tbarnative" | |
698dcdb6 | 6497 | |
360d6699 VZ |
6498 | if test "$enableval" = yes; then |
6499 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
6500 | else | |
6501 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
6502 | fi | |
698dcdb6 | 6503 | |
360d6699 | 6504 | else |
698dcdb6 | 6505 | |
360d6699 VZ |
6506 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` |
6507 | if test "x$LINE" != x ; then | |
6508 | eval "DEFAULT_$LINE" | |
6509 | else | |
6510 | no_cache=1 | |
6511 | fi | |
6512 | ||
6513 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
698dcdb6 VZ |
6514 | |
6515 | fi | |
360d6699 VZ |
6516 | |
6517 | ||
6518 | eval "$ac_cv_use_tbarnative" | |
6519 | if test "$no_cache" != 1; then | |
6520 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
6521 | fi | |
6522 | ||
6523 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
698dcdb6 | 6524 | echo "$ac_t""yes" 1>&6 |
360d6699 | 6525 | else |
698dcdb6 | 6526 | echo "$ac_t""no" 1>&6 |
360d6699 | 6527 | fi |
698dcdb6 | 6528 | |
360d6699 | 6529 | |
698dcdb6 | 6530 | echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6 |
978f1259 | 6531 | echo "configure:6532: checking for --enable-tbarsmpl" >&5 |
360d6699 VZ |
6532 | no_cache=0 |
6533 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
6534 | if test "${enable_tbarsmpl+set}" = set; then | |
6535 | enableval="$enable_tbarsmpl" | |
698dcdb6 | 6536 | |
360d6699 VZ |
6537 | if test "$enableval" = yes; then |
6538 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
6539 | else | |
6540 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
6541 | fi | |
698dcdb6 | 6542 | |
360d6699 | 6543 | else |
698dcdb6 | 6544 | |
360d6699 VZ |
6545 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` |
6546 | if test "x$LINE" != x ; then | |
6547 | eval "DEFAULT_$LINE" | |
6548 | else | |
6549 | no_cache=1 | |
6550 | fi | |
6551 | ||
6552 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
698dcdb6 VZ |
6553 | |
6554 | fi | |
360d6699 VZ |
6555 | |
6556 | ||
6557 | eval "$ac_cv_use_tbarsmpl" | |
6558 | if test "$no_cache" != 1; then | |
6559 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
6560 | fi | |
6561 | ||
6562 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
698dcdb6 | 6563 | echo "$ac_t""yes" 1>&6 |
360d6699 | 6564 | else |
698dcdb6 | 6565 | echo "$ac_t""no" 1>&6 |
360d6699 | 6566 | fi |
698dcdb6 | 6567 | |
360d6699 | 6568 | |
698dcdb6 | 6569 | echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6 |
978f1259 | 6570 | echo "configure:6571: checking for --enable-treectrl" >&5 |
10f2d63a VZ |
6571 | no_cache=0 |
6572 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
6573 | if test "${enable_treectrl+set}" = set; then | |
6574 | enableval="$enable_treectrl" | |
698dcdb6 | 6575 | |
10f2d63a VZ |
6576 | if test "$enableval" = yes; then |
6577 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
6578 | else | |
6579 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
6580 | fi | |
698dcdb6 | 6581 | |
10f2d63a | 6582 | else |
698dcdb6 | 6583 | |
10f2d63a VZ |
6584 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` |
6585 | if test "x$LINE" != x ; then | |
6586 | eval "DEFAULT_$LINE" | |
6587 | else | |
6588 | no_cache=1 | |
6589 | fi | |
6590 | ||
6591 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
698dcdb6 VZ |
6592 | |
6593 | fi | |
10f2d63a VZ |
6594 | |
6595 | ||
1e6feb95 VZ |
6596 | eval "$ac_cv_use_treectrl" |
6597 | if test "$no_cache" != 1; then | |
6598 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
6599 | fi | |
6600 | ||
6601 | if test "$wxUSE_TREECTRL" = yes; then | |
6602 | echo "$ac_t""yes" 1>&6 | |
6603 | else | |
6604 | echo "$ac_t""no" 1>&6 | |
6605 | fi | |
6606 | ||
6607 | ||
9f41d601 | 6608 | echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6 |
978f1259 | 6609 | echo "configure:6610: checking for --enable-popupwin" >&5 |
9f41d601 RR |
6610 | no_cache=0 |
6611 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
6612 | if test "${enable_popupwin+set}" = set; then | |
6613 | enableval="$enable_popupwin" | |
6614 | ||
6615 | if test "$enableval" = yes; then | |
6616 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
6617 | else | |
6618 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
6619 | fi | |
6620 | ||
6621 | else | |
6622 | ||
6623 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` | |
6624 | if test "x$LINE" != x ; then | |
6625 | eval "DEFAULT_$LINE" | |
6626 | else | |
6627 | no_cache=1 | |
6628 | fi | |
6629 | ||
6630 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
6631 | ||
6632 | fi | |
6633 | ||
6634 | ||
6635 | eval "$ac_cv_use_popupwin" | |
6636 | if test "$no_cache" != 1; then | |
6637 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
6638 | fi | |
6639 | ||
6640 | if test "$wxUSE_POPUPWIN" = yes; then | |
6641 | echo "$ac_t""yes" 1>&6 | |
6642 | else | |
6643 | echo "$ac_t""no" 1>&6 | |
6644 | fi | |
6645 | ||
6646 | ||
1e6feb95 VZ |
6647 | |
6648 | ||
6649 | echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6 | |
978f1259 | 6650 | echo "configure:6651: checking for --enable-commondlg" >&5 |
1e6feb95 VZ |
6651 | no_cache=0 |
6652 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
6653 | if test "${enable_commondlg+set}" = set; then | |
6654 | enableval="$enable_commondlg" | |
6655 | ||
6656 | if test "$enableval" = yes; then | |
6657 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
6658 | else | |
6659 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
6660 | fi | |
6661 | ||
6662 | else | |
6663 | ||
6664 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
6665 | if test "x$LINE" != x ; then | |
6666 | eval "DEFAULT_$LINE" | |
6667 | else | |
6668 | no_cache=1 | |
6669 | fi | |
6670 | ||
6671 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
6672 | ||
6673 | fi | |
6674 | ||
6675 | ||
6676 | eval "$ac_cv_use_commondlg" | |
6677 | if test "$no_cache" != 1; then | |
6678 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
6679 | fi | |
6680 | ||
6681 | if test "$wxUSE_COMMONDLGS" = yes; then | |
6682 | echo "$ac_t""yes" 1>&6 | |
6683 | else | |
6684 | echo "$ac_t""no" 1>&6 | |
6685 | fi | |
6686 | ||
6687 | ||
6688 | echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6 | |
978f1259 | 6689 | echo "configure:6690: checking for --enable-choicedlg" >&5 |
1e6feb95 VZ |
6690 | no_cache=0 |
6691 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
6692 | if test "${enable_choicedlg+set}" = set; then | |
6693 | enableval="$enable_choicedlg" | |
6694 | ||
6695 | if test "$enableval" = yes; then | |
6696 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
6697 | else | |
6698 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
6699 | fi | |
6700 | ||
6701 | else | |
6702 | ||
6703 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
6704 | if test "x$LINE" != x ; then | |
6705 | eval "DEFAULT_$LINE" | |
6706 | else | |
6707 | no_cache=1 | |
6708 | fi | |
6709 | ||
6710 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
6711 | ||
6712 | fi | |
6713 | ||
6714 | ||
6715 | eval "$ac_cv_use_choicedlg" | |
6716 | if test "$no_cache" != 1; then | |
6717 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
6718 | fi | |
6719 | ||
6720 | if test "$wxUSE_CHOICEDLG" = yes; then | |
6721 | echo "$ac_t""yes" 1>&6 | |
6722 | else | |
6723 | echo "$ac_t""no" 1>&6 | |
6724 | fi | |
6725 | ||
6726 | ||
6727 | echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6 | |
978f1259 | 6728 | echo "configure:6729: checking for --enable-coldlg" >&5 |
1e6feb95 VZ |
6729 | no_cache=0 |
6730 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
6731 | if test "${enable_coldlg+set}" = set; then | |
6732 | enableval="$enable_coldlg" | |
6733 | ||
6734 | if test "$enableval" = yes; then | |
6735 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
6736 | else | |
6737 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
6738 | fi | |
6739 | ||
6740 | else | |
6741 | ||
6742 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
6743 | if test "x$LINE" != x ; then | |
6744 | eval "DEFAULT_$LINE" | |
6745 | else | |
6746 | no_cache=1 | |
6747 | fi | |
6748 | ||
6749 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
6750 | ||
6751 | fi | |
6752 | ||
6753 | ||
6754 | eval "$ac_cv_use_coldlg" | |
6755 | if test "$no_cache" != 1; then | |
6756 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
6757 | fi | |
6758 | ||
6759 | if test "$wxUSE_COLOURDLG" = yes; then | |
6760 | echo "$ac_t""yes" 1>&6 | |
6761 | else | |
6762 | echo "$ac_t""no" 1>&6 | |
6763 | fi | |
6764 | ||
6765 | ||
6766 | echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6 | |
978f1259 | 6767 | echo "configure:6768: checking for --enable-filedlg" >&5 |
1e6feb95 VZ |
6768 | no_cache=0 |
6769 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
6770 | if test "${enable_filedlg+set}" = set; then | |
6771 | enableval="$enable_filedlg" | |
6772 | ||
6773 | if test "$enableval" = yes; then | |
6774 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
6775 | else | |
6776 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
6777 | fi | |
6778 | ||
6779 | else | |
6780 | ||
6781 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
6782 | if test "x$LINE" != x ; then | |
6783 | eval "DEFAULT_$LINE" | |
6784 | else | |
6785 | no_cache=1 | |
6786 | fi | |
6787 | ||
6788 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
6789 | ||
6790 | fi | |
6791 | ||
6792 | ||
6793 | eval "$ac_cv_use_filedlg" | |
6794 | if test "$no_cache" != 1; then | |
6795 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
6796 | fi | |
6797 | ||
6798 | if test "$wxUSE_FILEDLG" = yes; then | |
6799 | echo "$ac_t""yes" 1>&6 | |
6800 | else | |
6801 | echo "$ac_t""no" 1>&6 | |
6802 | fi | |
6803 | ||
6804 | ||
8db37e06 | 6805 | echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6 |
978f1259 | 6806 | echo "configure:6807: checking for --enable-filedlg" >&5 |
8db37e06 VZ |
6807 | no_cache=0 |
6808 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
6809 | if test "${enable_filedlg+set}" = set; then | |
6810 | enableval="$enable_filedlg" | |
6811 | ||
6812 | if test "$enableval" = yes; then | |
6813 | ac_cv_use_filedlg='wxUSE_FINDREPLDLG=yes' | |
6814 | else | |
6815 | ac_cv_use_filedlg='wxUSE_FINDREPLDLG=no' | |
6816 | fi | |
6817 | ||
6818 | else | |
6819 | ||
6820 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` | |
6821 | if test "x$LINE" != x ; then | |
6822 | eval "DEFAULT_$LINE" | |
6823 | else | |
6824 | no_cache=1 | |
6825 | fi | |
6826 | ||
6827 | ac_cv_use_filedlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG | |
6828 | ||
6829 | fi | |
6830 | ||
6831 | ||
6832 | eval "$ac_cv_use_filedlg" | |
6833 | if test "$no_cache" != 1; then | |
6834 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
6835 | fi | |
6836 | ||
6837 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
6838 | echo "$ac_t""yes" 1>&6 | |
6839 | else | |
6840 | echo "$ac_t""no" 1>&6 | |
6841 | fi | |
6842 | ||
6843 | ||
1e6feb95 | 6844 | echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6 |
978f1259 | 6845 | echo "configure:6846: checking for --enable-fontdlg" >&5 |
1e6feb95 VZ |
6846 | no_cache=0 |
6847 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
6848 | if test "${enable_fontdlg+set}" = set; then | |
6849 | enableval="$enable_fontdlg" | |
6850 | ||
6851 | if test "$enableval" = yes; then | |
6852 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
6853 | else | |
6854 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
6855 | fi | |
6856 | ||
6857 | else | |
6858 | ||
6859 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
6860 | if test "x$LINE" != x ; then | |
6861 | eval "DEFAULT_$LINE" | |
6862 | else | |
6863 | no_cache=1 | |
6864 | fi | |
6865 | ||
6866 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
6867 | ||
6868 | fi | |
6869 | ||
6870 | ||
6871 | eval "$ac_cv_use_fontdlg" | |
6872 | if test "$no_cache" != 1; then | |
6873 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
6874 | fi | |
6875 | ||
6876 | if test "$wxUSE_FONTDLG" = yes; then | |
6877 | echo "$ac_t""yes" 1>&6 | |
6878 | else | |
6879 | echo "$ac_t""no" 1>&6 | |
6880 | fi | |
6881 | ||
6882 | ||
6883 | echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6 | |
978f1259 | 6884 | echo "configure:6885: checking for --enable-dirdlg" >&5 |
1e6feb95 VZ |
6885 | no_cache=0 |
6886 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
6887 | if test "${enable_dirdlg+set}" = set; then | |
6888 | enableval="$enable_dirdlg" | |
6889 | ||
6890 | if test "$enableval" = yes; then | |
6891 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
6892 | else | |
6893 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
6894 | fi | |
6895 | ||
6896 | else | |
6897 | ||
6898 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
6899 | if test "x$LINE" != x ; then | |
6900 | eval "DEFAULT_$LINE" | |
6901 | else | |
6902 | no_cache=1 | |
6903 | fi | |
6904 | ||
6905 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
6906 | ||
6907 | fi | |
6908 | ||
6909 | ||
6910 | eval "$ac_cv_use_dirdlg" | |
10f2d63a | 6911 | if test "$no_cache" != 1; then |
1e6feb95 | 6912 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6913 | fi |
6914 | ||
1e6feb95 | 6915 | if test "$wxUSE_DIRDLG" = yes; then |
698dcdb6 | 6916 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6917 | else |
698dcdb6 | 6918 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6919 | fi |
698dcdb6 VZ |
6920 | |
6921 | ||
1e6feb95 | 6922 | echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6 |
978f1259 | 6923 | echo "configure:6924: checking for --enable-msgdlg" >&5 |
10f2d63a | 6924 | no_cache=0 |
1e6feb95 VZ |
6925 | # Check whether --enable-msgdlg or --disable-msgdlg was given. |
6926 | if test "${enable_msgdlg+set}" = set; then | |
6927 | enableval="$enable_msgdlg" | |
698dcdb6 | 6928 | |
10f2d63a | 6929 | if test "$enableval" = yes; then |
1e6feb95 | 6930 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' |
10f2d63a | 6931 | else |
1e6feb95 | 6932 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' |
10f2d63a | 6933 | fi |
698dcdb6 | 6934 | |
10f2d63a | 6935 | else |
698dcdb6 | 6936 | |
1e6feb95 | 6937 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
6938 | if test "x$LINE" != x ; then |
6939 | eval "DEFAULT_$LINE" | |
6940 | else | |
6941 | no_cache=1 | |
6942 | fi | |
6943 | ||
1e6feb95 | 6944 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG |
698dcdb6 VZ |
6945 | |
6946 | fi | |
10f2d63a VZ |
6947 | |
6948 | ||
1e6feb95 | 6949 | eval "$ac_cv_use_msgdlg" |
10f2d63a | 6950 | if test "$no_cache" != 1; then |
1e6feb95 | 6951 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6952 | fi |
6953 | ||
1e6feb95 | 6954 | if test "$wxUSE_MSGDLG" = yes; then |
698dcdb6 | 6955 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6956 | else |
698dcdb6 | 6957 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6958 | fi |
698dcdb6 | 6959 | |
10f2d63a | 6960 | |
1e6feb95 | 6961 | echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6 |
978f1259 | 6962 | echo "configure:6963: checking for --enable-numberdlg" >&5 |
10f2d63a | 6963 | no_cache=0 |
1e6feb95 VZ |
6964 | # Check whether --enable-numberdlg or --disable-numberdlg was given. |
6965 | if test "${enable_numberdlg+set}" = set; then | |
6966 | enableval="$enable_numberdlg" | |
698dcdb6 | 6967 | |
10f2d63a | 6968 | if test "$enableval" = yes; then |
1e6feb95 | 6969 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' |
10f2d63a | 6970 | else |
1e6feb95 | 6971 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' |
10f2d63a | 6972 | fi |
698dcdb6 | 6973 | |
10f2d63a | 6974 | else |
698dcdb6 | 6975 | |
1e6feb95 | 6976 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
6977 | if test "x$LINE" != x ; then |
6978 | eval "DEFAULT_$LINE" | |
6979 | else | |
6980 | no_cache=1 | |
6981 | fi | |
6982 | ||
1e6feb95 | 6983 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG |
698dcdb6 VZ |
6984 | |
6985 | fi | |
10f2d63a VZ |
6986 | |
6987 | ||
1e6feb95 | 6988 | eval "$ac_cv_use_numberdlg" |
10f2d63a | 6989 | if test "$no_cache" != 1; then |
1e6feb95 | 6990 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6991 | fi |
6992 | ||
1e6feb95 | 6993 | if test "$wxUSE_NUMBERDLG" = yes; then |
698dcdb6 | 6994 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6995 | else |
698dcdb6 | 6996 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6997 | fi |
698dcdb6 | 6998 | |
10f2d63a | 6999 | |
cbca9943 | 7000 | echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6 |
978f1259 | 7001 | echo "configure:7002: checking for --enable-splash" >&5 |
cbca9943 VZ |
7002 | no_cache=0 |
7003 | # Check whether --enable-splash or --disable-splash was given. | |
7004 | if test "${enable_splash+set}" = set; then | |
7005 | enableval="$enable_splash" | |
7006 | ||
7007 | if test "$enableval" = yes; then | |
7008 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
7009 | else | |
7010 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
7011 | fi | |
7012 | ||
7013 | else | |
7014 | ||
7015 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` | |
7016 | if test "x$LINE" != x ; then | |
7017 | eval "DEFAULT_$LINE" | |
7018 | else | |
7019 | no_cache=1 | |
7020 | fi | |
7021 | ||
7022 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
7023 | ||
7024 | fi | |
7025 | ||
7026 | ||
7027 | eval "$ac_cv_use_splash" | |
7028 | if test "$no_cache" != 1; then | |
7029 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
7030 | fi | |
7031 | ||
7032 | if test "$wxUSE_SPLASH" = yes; then | |
7033 | echo "$ac_t""yes" 1>&6 | |
7034 | else | |
7035 | echo "$ac_t""no" 1>&6 | |
7036 | fi | |
7037 | ||
7038 | ||
698dcdb6 | 7039 | echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6 |
978f1259 | 7040 | echo "configure:7041: checking for --enable-textdlg" >&5 |
10f2d63a VZ |
7041 | no_cache=0 |
7042 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
7043 | if test "${enable_textdlg+set}" = set; then | |
7044 | enableval="$enable_textdlg" | |
698dcdb6 | 7045 | |
10f2d63a VZ |
7046 | if test "$enableval" = yes; then |
7047 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
7048 | else | |
7049 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
7050 | fi | |
698dcdb6 | 7051 | |
10f2d63a | 7052 | else |
698dcdb6 | 7053 | |
10f2d63a VZ |
7054 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` |
7055 | if test "x$LINE" != x ; then | |
7056 | eval "DEFAULT_$LINE" | |
7057 | else | |
7058 | no_cache=1 | |
7059 | fi | |
7060 | ||
7061 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
698dcdb6 VZ |
7062 | |
7063 | fi | |
10f2d63a VZ |
7064 | |
7065 | ||
7066 | eval "$ac_cv_use_textdlg" | |
7067 | if test "$no_cache" != 1; then | |
7068 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
7069 | fi | |
7070 | ||
7071 | if test "$wxUSE_TEXTDLG" = yes; then | |
698dcdb6 | 7072 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7073 | else |
698dcdb6 | 7074 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7075 | fi |
698dcdb6 | 7076 | |
10f2d63a | 7077 | |
698dcdb6 | 7078 | echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6 |
978f1259 | 7079 | echo "configure:7080: checking for --enable-tipdlg" >&5 |
10f2d63a VZ |
7080 | no_cache=0 |
7081 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
7082 | if test "${enable_tipdlg+set}" = set; then | |
7083 | enableval="$enable_tipdlg" | |
698dcdb6 | 7084 | |
10f2d63a VZ |
7085 | if test "$enableval" = yes; then |
7086 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
7087 | else | |
7088 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
7089 | fi | |
698dcdb6 | 7090 | |
10f2d63a | 7091 | else |
698dcdb6 | 7092 | |
10f2d63a VZ |
7093 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` |
7094 | if test "x$LINE" != x ; then | |
7095 | eval "DEFAULT_$LINE" | |
7096 | else | |
7097 | no_cache=1 | |
7098 | fi | |
7099 | ||
7100 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
698dcdb6 VZ |
7101 | |
7102 | fi | |
10f2d63a VZ |
7103 | |
7104 | ||
7105 | eval "$ac_cv_use_tipdlg" | |
7106 | if test "$no_cache" != 1; then | |
7107 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
7108 | fi | |
7109 | ||
7110 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
698dcdb6 | 7111 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7112 | else |
698dcdb6 | 7113 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7114 | fi |
698dcdb6 | 7115 | |
10f2d63a | 7116 | |
698dcdb6 | 7117 | echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6 |
978f1259 | 7118 | echo "configure:7119: checking for --enable-progressdlg" >&5 |
10f2d63a VZ |
7119 | no_cache=0 |
7120 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
7121 | if test "${enable_progressdlg+set}" = set; then | |
7122 | enableval="$enable_progressdlg" | |
698dcdb6 | 7123 | |
10f2d63a VZ |
7124 | if test "$enableval" = yes; then |
7125 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
7126 | else | |
7127 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
7128 | fi | |
698dcdb6 | 7129 | |
10f2d63a | 7130 | else |
698dcdb6 | 7131 | |
10f2d63a VZ |
7132 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` |
7133 | if test "x$LINE" != x ; then | |
7134 | eval "DEFAULT_$LINE" | |
7135 | else | |
7136 | no_cache=1 | |
7137 | fi | |
7138 | ||
7139 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
698dcdb6 VZ |
7140 | |
7141 | fi | |
10f2d63a VZ |
7142 | |
7143 | ||
7144 | eval "$ac_cv_use_progressdlg" | |
7145 | if test "$no_cache" != 1; then | |
7146 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
7147 | fi | |
7148 | ||
7149 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
698dcdb6 | 7150 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7151 | else |
698dcdb6 | 7152 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7153 | fi |
698dcdb6 | 7154 | |
10f2d63a | 7155 | |
b1f5d087 | 7156 | echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6 |
978f1259 | 7157 | echo "configure:7158: checking for --enable-wizarddlg" >&5 |
b1f5d087 VZ |
7158 | no_cache=0 |
7159 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
7160 | if test "${enable_wizarddlg+set}" = set; then | |
7161 | enableval="$enable_wizarddlg" | |
7162 | ||
7163 | if test "$enableval" = yes; then | |
7164 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
7165 | else | |
7166 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
7167 | fi | |
7168 | ||
7169 | else | |
7170 | ||
7171 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` | |
7172 | if test "x$LINE" != x ; then | |
7173 | eval "DEFAULT_$LINE" | |
7174 | else | |
7175 | no_cache=1 | |
7176 | fi | |
7177 | ||
7178 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
7179 | ||
7180 | fi | |
7181 | ||
7182 | ||
7183 | eval "$ac_cv_use_wizarddlg" | |
7184 | if test "$no_cache" != 1; then | |
7185 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
7186 | fi | |
7187 | ||
7188 | if test "$wxUSE_WIZARDDLG" = yes; then | |
7189 | echo "$ac_t""yes" 1>&6 | |
7190 | else | |
7191 | echo "$ac_t""no" 1>&6 | |
7192 | fi | |
7193 | ||
7194 | ||
7195 | ||
7196 | ||
1e6feb95 | 7197 | echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6 |
978f1259 | 7198 | echo "configure:7199: checking for --enable-menus" >&5 |
1e6feb95 VZ |
7199 | no_cache=0 |
7200 | # Check whether --enable-menus or --disable-menus was given. | |
7201 | if test "${enable_menus+set}" = set; then | |
7202 | enableval="$enable_menus" | |
7203 | ||
7204 | if test "$enableval" = yes; then | |
7205 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
7206 | else | |
7207 | ac_cv_use_menus='wxUSE_MENUS=no' | |
7208 | fi | |
7209 | ||
7210 | else | |
7211 | ||
7212 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
7213 | if test "x$LINE" != x ; then | |
7214 | eval "DEFAULT_$LINE" | |
7215 | else | |
7216 | no_cache=1 | |
7217 | fi | |
7218 | ||
7219 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
7220 | ||
7221 | fi | |
7222 | ||
7223 | ||
7224 | eval "$ac_cv_use_menus" | |
7225 | if test "$no_cache" != 1; then | |
7226 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
7227 | fi | |
7228 | ||
7229 | if test "$wxUSE_MENUS" = yes; then | |
7230 | echo "$ac_t""yes" 1>&6 | |
7231 | else | |
7232 | echo "$ac_t""no" 1>&6 | |
7233 | fi | |
7234 | ||
7235 | ||
698dcdb6 | 7236 | echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6 |
978f1259 | 7237 | echo "configure:7238: checking for --enable-miniframe" >&5 |
10f2d63a VZ |
7238 | no_cache=0 |
7239 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
7240 | if test "${enable_miniframe+set}" = set; then | |
7241 | enableval="$enable_miniframe" | |
698dcdb6 | 7242 | |
10f2d63a VZ |
7243 | if test "$enableval" = yes; then |
7244 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
7245 | else | |
7246 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
7247 | fi | |
698dcdb6 | 7248 | |
10f2d63a | 7249 | else |
698dcdb6 | 7250 | |
10f2d63a VZ |
7251 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` |
7252 | if test "x$LINE" != x ; then | |
7253 | eval "DEFAULT_$LINE" | |
7254 | else | |
7255 | no_cache=1 | |
7256 | fi | |
7257 | ||
7258 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
698dcdb6 VZ |
7259 | |
7260 | fi | |
10f2d63a VZ |
7261 | |
7262 | ||
7263 | eval "$ac_cv_use_miniframe" | |
7264 | if test "$no_cache" != 1; then | |
7265 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
7266 | fi | |
7267 | ||
7268 | if test "$wxUSE_MINIFRAME" = yes; then | |
698dcdb6 | 7269 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7270 | else |
698dcdb6 | 7271 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7272 | fi |
698dcdb6 | 7273 | |
10f2d63a | 7274 | |
698dcdb6 | 7275 | echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6 |
978f1259 | 7276 | echo "configure:7277: checking for --enable-tooltips" >&5 |
10f2d63a VZ |
7277 | no_cache=0 |
7278 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
7279 | if test "${enable_tooltips+set}" = set; then | |
7280 | enableval="$enable_tooltips" | |
698dcdb6 | 7281 | |
10f2d63a VZ |
7282 | if test "$enableval" = yes; then |
7283 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
7284 | else | |
7285 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
7286 | fi | |
698dcdb6 | 7287 | |
10f2d63a | 7288 | else |
698dcdb6 | 7289 | |
10f2d63a VZ |
7290 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` |
7291 | if test "x$LINE" != x ; then | |
7292 | eval "DEFAULT_$LINE" | |
7293 | else | |
7294 | no_cache=1 | |
7295 | fi | |
7296 | ||
7297 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
698dcdb6 VZ |
7298 | |
7299 | fi | |
10f2d63a VZ |
7300 | |
7301 | ||
7302 | eval "$ac_cv_use_tooltips" | |
7303 | if test "$no_cache" != 1; then | |
7304 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
7305 | fi | |
7306 | ||
7307 | if test "$wxUSE_TOOLTIPS" = yes; then | |
698dcdb6 | 7308 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7309 | else |
698dcdb6 | 7310 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7311 | fi |
698dcdb6 | 7312 | |
10f2d63a | 7313 | |
698dcdb6 | 7314 | echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6 |
978f1259 | 7315 | echo "configure:7316: checking for --enable-splines" >&5 |
10f2d63a VZ |
7316 | no_cache=0 |
7317 | # Check whether --enable-splines or --disable-splines was given. | |
7318 | if test "${enable_splines+set}" = set; then | |
7319 | enableval="$enable_splines" | |
698dcdb6 | 7320 | |
10f2d63a VZ |
7321 | if test "$enableval" = yes; then |
7322 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
7323 | else | |
7324 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
7325 | fi | |
698dcdb6 | 7326 | |
10f2d63a | 7327 | else |
698dcdb6 | 7328 | |
10f2d63a VZ |
7329 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` |
7330 | if test "x$LINE" != x ; then | |
7331 | eval "DEFAULT_$LINE" | |
7332 | else | |
7333 | no_cache=1 | |
7334 | fi | |
7335 | ||
7336 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
698dcdb6 VZ |
7337 | |
7338 | fi | |
10f2d63a VZ |
7339 | |
7340 | ||
7341 | eval "$ac_cv_use_splines" | |
7342 | if test "$no_cache" != 1; then | |
7343 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
7344 | fi | |
7345 | ||
7346 | if test "$wxUSE_SPLINES" = yes; then | |
698dcdb6 | 7347 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7348 | else |
698dcdb6 | 7349 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7350 | fi |
698dcdb6 | 7351 | |
10f2d63a | 7352 | |
698dcdb6 | 7353 | echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6 |
978f1259 | 7354 | echo "configure:7355: checking for --enable-validators" >&5 |
10f2d63a VZ |
7355 | no_cache=0 |
7356 | # Check whether --enable-validators or --disable-validators was given. | |
7357 | if test "${enable_validators+set}" = set; then | |
7358 | enableval="$enable_validators" | |
698dcdb6 | 7359 | |
10f2d63a VZ |
7360 | if test "$enableval" = yes; then |
7361 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
7362 | else | |
7363 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
7364 | fi | |
698dcdb6 | 7365 | |
10f2d63a | 7366 | else |
698dcdb6 | 7367 | |
10f2d63a VZ |
7368 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` |
7369 | if test "x$LINE" != x ; then | |
7370 | eval "DEFAULT_$LINE" | |
7371 | else | |
7372 | no_cache=1 | |
7373 | fi | |
7374 | ||
7375 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
698dcdb6 VZ |
7376 | |
7377 | fi | |
10f2d63a VZ |
7378 | |
7379 | ||
7380 | eval "$ac_cv_use_validators" | |
7381 | if test "$no_cache" != 1; then | |
7382 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
7383 | fi | |
7384 | ||
7385 | if test "$wxUSE_VALIDATORS" = yes; then | |
698dcdb6 | 7386 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7387 | else |
698dcdb6 | 7388 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7389 | fi |
698dcdb6 | 7390 | |
10f2d63a | 7391 | |
698dcdb6 | 7392 | echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6 |
978f1259 | 7393 | echo "configure:7394: checking for --enable-busyinfo" >&5 |
10f2d63a VZ |
7394 | no_cache=0 |
7395 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
7396 | if test "${enable_busyinfo+set}" = set; then | |
7397 | enableval="$enable_busyinfo" | |
698dcdb6 | 7398 | |
10f2d63a VZ |
7399 | if test "$enableval" = yes; then |
7400 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
7401 | else | |
7402 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
7403 | fi | |
698dcdb6 | 7404 | |
10f2d63a | 7405 | else |
698dcdb6 | 7406 | |
10f2d63a VZ |
7407 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` |
7408 | if test "x$LINE" != x ; then | |
7409 | eval "DEFAULT_$LINE" | |
7410 | else | |
7411 | no_cache=1 | |
7412 | fi | |
7413 | ||
7414 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
698dcdb6 VZ |
7415 | |
7416 | fi | |
10f2d63a VZ |
7417 | |
7418 | ||
7419 | eval "$ac_cv_use_busyinfo" | |
7420 | if test "$no_cache" != 1; then | |
7421 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
7422 | fi | |
7423 | ||
7424 | if test "$wxUSE_BUSYINFO" = yes; then | |
698dcdb6 | 7425 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7426 | else |
698dcdb6 | 7427 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7428 | fi |
698dcdb6 | 7429 | |
10f2d63a | 7430 | |
698dcdb6 | 7431 | echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6 |
978f1259 | 7432 | echo "configure:7433: checking for --enable-joystick" >&5 |
f6bcfd97 BP |
7433 | no_cache=0 |
7434 | # Check whether --enable-joystick or --disable-joystick was given. | |
7435 | if test "${enable_joystick+set}" = set; then | |
7436 | enableval="$enable_joystick" | |
698dcdb6 | 7437 | |
f6bcfd97 BP |
7438 | if test "$enableval" = yes; then |
7439 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
7440 | else | |
7441 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
7442 | fi | |
698dcdb6 | 7443 | |
f6bcfd97 | 7444 | else |
698dcdb6 | 7445 | |
f6bcfd97 BP |
7446 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` |
7447 | if test "x$LINE" != x ; then | |
7448 | eval "DEFAULT_$LINE" | |
7449 | else | |
7450 | no_cache=1 | |
7451 | fi | |
7452 | ||
7453 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
698dcdb6 VZ |
7454 | |
7455 | fi | |
f6bcfd97 BP |
7456 | |
7457 | ||
7458 | eval "$ac_cv_use_joystick" | |
7459 | if test "$no_cache" != 1; then | |
7460 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
7461 | fi | |
7462 | ||
7463 | if test "$wxUSE_JOYSTICK" = yes; then | |
698dcdb6 | 7464 | echo "$ac_t""yes" 1>&6 |
f6bcfd97 | 7465 | else |
698dcdb6 | 7466 | echo "$ac_t""no" 1>&6 |
f6bcfd97 | 7467 | fi |
698dcdb6 VZ |
7468 | |
7469 | ||
1e6feb95 | 7470 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
978f1259 | 7471 | echo "configure:7472: checking for --enable-metafile" >&5 |
1e6feb95 VZ |
7472 | no_cache=0 |
7473 | # Check whether --enable-metafile or --disable-metafile was given. | |
7474 | if test "${enable_metafile+set}" = set; then | |
7475 | enableval="$enable_metafile" | |
7476 | ||
7477 | if test "$enableval" = yes; then | |
7478 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
7479 | else | |
7480 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
7481 | fi | |
7482 | ||
7483 | else | |
7484 | ||
7485 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
7486 | if test "x$LINE" != x ; then | |
7487 | eval "DEFAULT_$LINE" | |
7488 | else | |
7489 | no_cache=1 | |
7490 | fi | |
7491 | ||
7492 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
7493 | ||
7494 | fi | |
7495 | ||
7496 | ||
7497 | eval "$ac_cv_use_metafile" | |
7498 | if test "$no_cache" != 1; then | |
7499 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
7500 | fi | |
7501 | ||
7502 | if test "$wxUSE_METAFILE" = yes; then | |
7503 | echo "$ac_t""yes" 1>&6 | |
7504 | else | |
7505 | echo "$ac_t""no" 1>&6 | |
7506 | fi | |
7507 | ||
7508 | ||
24fd6d87 | 7509 | echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6 |
978f1259 | 7510 | echo "configure:7511: checking for --enable-dragimage" >&5 |
24fd6d87 VZ |
7511 | no_cache=0 |
7512 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
7513 | if test "${enable_dragimage+set}" = set; then | |
7514 | enableval="$enable_dragimage" | |
7515 | ||
7516 | if test "$enableval" = yes; then | |
7517 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
7518 | else | |
7519 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
7520 | fi | |
7521 | ||
7522 | else | |
7523 | ||
7524 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` | |
7525 | if test "x$LINE" != x ; then | |
7526 | eval "DEFAULT_$LINE" | |
7527 | else | |
7528 | no_cache=1 | |
7529 | fi | |
7530 | ||
7531 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
7532 | ||
7533 | fi | |
7534 | ||
7535 | ||
7536 | eval "$ac_cv_use_dragimage" | |
7537 | if test "$no_cache" != 1; then | |
7538 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
7539 | fi | |
7540 | ||
7541 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
7542 | echo "$ac_t""yes" 1>&6 | |
7543 | else | |
7544 | echo "$ac_t""no" 1>&6 | |
7545 | fi | |
7546 | ||
7547 | ||
10f2d63a | 7548 | |
698dcdb6 | 7549 | |
edae8572 | 7550 | echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6 |
978f1259 | 7551 | echo "configure:7552: checking for --enable-palette" >&5 |
edae8572 VZ |
7552 | no_cache=0 |
7553 | # Check whether --enable-palette or --disable-palette was given. | |
7554 | if test "${enable_palette+set}" = set; then | |
7555 | enableval="$enable_palette" | |
7556 | ||
7557 | if test "$enableval" = yes; then | |
7558 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
7559 | else | |
7560 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
7561 | fi | |
7562 | ||
7563 | else | |
7564 | ||
7565 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` | |
7566 | if test "x$LINE" != x ; then | |
7567 | eval "DEFAULT_$LINE" | |
7568 | else | |
7569 | no_cache=1 | |
7570 | fi | |
7571 | ||
7572 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
7573 | ||
7574 | fi | |
7575 | ||
7576 | ||
7577 | eval "$ac_cv_use_palette" | |
7578 | if test "$no_cache" != 1; then | |
7579 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
7580 | fi | |
7581 | ||
7582 | if test "$wxUSE_PALETTE" = yes; then | |
7583 | echo "$ac_t""yes" 1>&6 | |
7584 | else | |
7585 | echo "$ac_t""no" 1>&6 | |
7586 | fi | |
7587 | ||
7588 | ||
698dcdb6 | 7589 | echo $ac_n "checking for --enable-image""... $ac_c" 1>&6 |
978f1259 | 7590 | echo "configure:7591: checking for --enable-image" >&5 |
0046ff7c VS |
7591 | no_cache=0 |
7592 | # Check whether --enable-image or --disable-image was given. | |
7593 | if test "${enable_image+set}" = set; then | |
7594 | enableval="$enable_image" | |
698dcdb6 | 7595 | |
0046ff7c VS |
7596 | if test "$enableval" = yes; then |
7597 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
7598 | else | |
7599 | ac_cv_use_image='wxUSE_IMAGE=no' | |
7600 | fi | |
698dcdb6 | 7601 | |
0046ff7c | 7602 | else |
698dcdb6 | 7603 | |
0046ff7c VS |
7604 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` |
7605 | if test "x$LINE" != x ; then | |
7606 | eval "DEFAULT_$LINE" | |
7607 | else | |
7608 | no_cache=1 | |
7609 | fi | |
7610 | ||
7611 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
698dcdb6 VZ |
7612 | |
7613 | fi | |
0046ff7c VS |
7614 | |
7615 | ||
7616 | eval "$ac_cv_use_image" | |
7617 | if test "$no_cache" != 1; then | |
7618 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
7619 | fi | |
7620 | ||
7621 | if test "$wxUSE_IMAGE" = yes; then | |
698dcdb6 | 7622 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 7623 | else |
698dcdb6 | 7624 | echo "$ac_t""no" 1>&6 |
0046ff7c | 7625 | fi |
698dcdb6 | 7626 | |
0046ff7c | 7627 | |
698dcdb6 | 7628 | echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6 |
978f1259 | 7629 | echo "configure:7630: checking for --enable-gif" >&5 |
10f2d63a VZ |
7630 | no_cache=0 |
7631 | # Check whether --enable-gif or --disable-gif was given. | |
7632 | if test "${enable_gif+set}" = set; then | |
7633 | enableval="$enable_gif" | |
698dcdb6 | 7634 | |
10f2d63a VZ |
7635 | if test "$enableval" = yes; then |
7636 | ac_cv_use_gif='wxUSE_GIF=yes' | |
7637 | else | |
7638 | ac_cv_use_gif='wxUSE_GIF=no' | |
7639 | fi | |
698dcdb6 | 7640 | |
10f2d63a | 7641 | else |
698dcdb6 | 7642 | |
10f2d63a VZ |
7643 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` |
7644 | if test "x$LINE" != x ; then | |
7645 | eval "DEFAULT_$LINE" | |
7646 | else | |
7647 | no_cache=1 | |
7648 | fi | |
7649 | ||
7650 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
698dcdb6 VZ |
7651 | |
7652 | fi | |
10f2d63a VZ |
7653 | |
7654 | ||
7655 | eval "$ac_cv_use_gif" | |
7656 | if test "$no_cache" != 1; then | |
7657 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
7658 | fi | |
7659 | ||
7660 | if test "$wxUSE_GIF" = yes; then | |
698dcdb6 | 7661 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7662 | else |
698dcdb6 | 7663 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7664 | fi |
698dcdb6 | 7665 | |
10f2d63a | 7666 | |
698dcdb6 | 7667 | echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6 |
978f1259 | 7668 | echo "configure:7669: checking for --enable-pcx" >&5 |
10f2d63a VZ |
7669 | no_cache=0 |
7670 | # Check whether --enable-pcx or --disable-pcx was given. | |
7671 | if test "${enable_pcx+set}" = set; then | |
7672 | enableval="$enable_pcx" | |
698dcdb6 | 7673 | |
10f2d63a VZ |
7674 | if test "$enableval" = yes; then |
7675 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
7676 | else | |
7677 | ac_cv_use_pcx='wxUSE_PCX=no' | |
7678 | fi | |
698dcdb6 | 7679 | |
10f2d63a | 7680 | else |
698dcdb6 | 7681 | |
10f2d63a VZ |
7682 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` |
7683 | if test "x$LINE" != x ; then | |
7684 | eval "DEFAULT_$LINE" | |
7685 | else | |
7686 | no_cache=1 | |
7687 | fi | |
7688 | ||
7689 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
698dcdb6 VZ |
7690 | |
7691 | fi | |
10f2d63a VZ |
7692 | |
7693 | ||
7694 | eval "$ac_cv_use_pcx" | |
7695 | if test "$no_cache" != 1; then | |
7696 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
7697 | fi | |
7698 | ||
7699 | if test "$wxUSE_PCX" = yes; then | |
698dcdb6 | 7700 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7701 | else |
698dcdb6 | 7702 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7703 | fi |
698dcdb6 | 7704 | |
10f2d63a | 7705 | |
698dcdb6 | 7706 | echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6 |
978f1259 | 7707 | echo "configure:7708: checking for --enable-pnm" >&5 |
10f2d63a VZ |
7708 | no_cache=0 |
7709 | # Check whether --enable-pnm or --disable-pnm was given. | |
7710 | if test "${enable_pnm+set}" = set; then | |
7711 | enableval="$enable_pnm" | |
698dcdb6 | 7712 | |
10f2d63a VZ |
7713 | if test "$enableval" = yes; then |
7714 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
7715 | else | |
7716 | ac_cv_use_pnm='wxUSE_PNM=no' | |
7717 | fi | |
698dcdb6 | 7718 | |
10f2d63a | 7719 | else |
698dcdb6 | 7720 | |
10f2d63a VZ |
7721 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` |
7722 | if test "x$LINE" != x ; then | |
7723 | eval "DEFAULT_$LINE" | |
7724 | else | |
7725 | no_cache=1 | |
7726 | fi | |
7727 | ||
7728 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
698dcdb6 VZ |
7729 | |
7730 | fi | |
10f2d63a VZ |
7731 | |
7732 | ||
7733 | eval "$ac_cv_use_pnm" | |
7734 | if test "$no_cache" != 1; then | |
7735 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
7736 | fi | |
7737 | ||
7738 | if test "$wxUSE_PNM" = yes; then | |
698dcdb6 | 7739 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7740 | else |
698dcdb6 | 7741 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7742 | fi |
698dcdb6 | 7743 | |
10f2d63a | 7744 | |
698dcdb6 | 7745 | echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6 |
978f1259 | 7746 | echo "configure:7747: checking for --enable-pnm" >&5 |
0046ff7c VS |
7747 | no_cache=0 |
7748 | # Check whether --enable-pnm or --disable-pnm was given. | |
7749 | if test "${enable_pnm+set}" = set; then | |
7750 | enableval="$enable_pnm" | |
698dcdb6 | 7751 | |
0046ff7c VS |
7752 | if test "$enableval" = yes; then |
7753 | ac_cv_use_pnm='wxUSE_XPM=yes' | |
7754 | else | |
7755 | ac_cv_use_pnm='wxUSE_XPM=no' | |
7756 | fi | |
698dcdb6 | 7757 | |
0046ff7c | 7758 | else |
698dcdb6 | 7759 | |
0046ff7c VS |
7760 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` |
7761 | if test "x$LINE" != x ; then | |
7762 | eval "DEFAULT_$LINE" | |
7763 | else | |
7764 | no_cache=1 | |
7765 | fi | |
7766 | ||
7767 | ac_cv_use_pnm='wxUSE_XPM='$DEFAULT_wxUSE_XPM | |
698dcdb6 VZ |
7768 | |
7769 | fi | |
0046ff7c VS |
7770 | |
7771 | ||
7772 | eval "$ac_cv_use_pnm" | |
7773 | if test "$no_cache" != 1; then | |
7774 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
7775 | fi | |
7776 | ||
7777 | if test "$wxUSE_XPM" = yes; then | |
698dcdb6 | 7778 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 7779 | else |
698dcdb6 | 7780 | echo "$ac_t""no" 1>&6 |
0046ff7c | 7781 | fi |
698dcdb6 | 7782 | |
0046ff7c | 7783 | |
b12915c1 VZ |
7784 | fi |
7785 | ||
698dcdb6 | 7786 | |
10f2d63a VZ |
7787 | echo "saving argument cache $wx_arg_cache_file" |
7788 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
698dcdb6 | 7789 | |
10f2d63a | 7790 | |
698dcdb6 VZ |
7791 | |
7792 | echo $ac_n "checking for toolkit""... $ac_c" 1>&6 | |
978f1259 | 7793 | echo "configure:7794: checking for toolkit" >&5 |
10f2d63a VZ |
7794 | |
7795 | if test "$wxUSE_GUI" = "yes"; then | |
7796 | ||
3a922bb4 RL |
7797 | if test "$USE_BEOS" = 1; then |
7798 | { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; } | |
7799 | fi | |
b12915c1 | 7800 | |
3a922bb4 RL |
7801 | if test "$TOOLKIT_GIVEN" = 1; then |
7802 | for toolkit in `echo $ALL_TOOLKITS`; do | |
7803 | var=wxUSE_$toolkit | |
7804 | eval "value=\$${var}" | |
7805 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
7806 | done | |
10f2d63a | 7807 | else |
3a922bb4 RL |
7808 | for toolkit in `echo $ALL_TOOLKITS`; do |
7809 | if test "$has_toolkit_in_cache" != 1; then | |
7810 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
7811 | else | |
7812 | var=DEFAULT_wxUSE_$toolkit | |
7813 | fi | |
7814 | eval "wxUSE_$toolkit=\$${var}" | |
7815 | done | |
10f2d63a | 7816 | fi |
10f2d63a | 7817 | |
3a922bb4 | 7818 | NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \ |
77e13408 | 7819 | + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0}` |
10f2d63a | 7820 | |
3a922bb4 | 7821 | case "${host}" in |
6fa882bd | 7822 | *-pc-os2_emx | *-pc-os2-emx ) |
3a922bb4 RL |
7823 | # PATH_IFS is autodetected by OS/2's configure (usually ';') |
7824 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
7825 | LEX_STEM="lexyy" | |
7826 | ;; | |
7827 | *) | |
7828 | PATH_IFS=':' | |
7829 | LEX_STEM="lex.yy" | |
7830 | ;; | |
7831 | esac | |
10f2d63a | 7832 | |
3a922bb4 RL |
7833 | case "$NUM_TOOLKITS" in |
7834 | 1) | |
7835 | ;; | |
7836 | 0) | |
7837 | { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; } | |
7838 | ;; | |
7839 | *) | |
7840 | { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; } | |
7841 | esac | |
10f2d63a | 7842 | |
3a922bb4 RL |
7843 | for toolkit in `echo $ALL_TOOLKITS`; do |
7844 | var=wxUSE_$toolkit | |
7845 | eval "value=\$${var}" | |
7846 | if test "x$value" != x; then | |
7847 | cache_var=CACHE_$toolkit | |
7848 | eval "cache=\$${cache_var}" | |
7849 | if test "$cache" = 1; then | |
7850 | echo "$var=$value" >> ${wx_arg_cache_file} | |
7851 | fi | |
7852 | if test "$value" = 1; then | |
7853 | toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]` | |
7854 | echo "$ac_t""$toolkit_echo" 1>&6 | |
7855 | fi | |
7856 | fi | |
7857 | done | |
10f2d63a | 7858 | else |
cf27ef00 | 7859 | PATH_IFS=':' |
3a922bb4 | 7860 | echo "$ac_t""base ($host_alias hosted) only" 1>&6 |
10f2d63a VZ |
7861 | fi |
7862 | ||
698dcdb6 VZ |
7863 | |
7864 | cat > confcache <<\EOF | |
10f2d63a VZ |
7865 | # This file is a shell script that caches the results of configure |
7866 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
7867 | # scripts and configure runs. It is not useful on other systems. |
7868 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 7869 | # |
698dcdb6 VZ |
7870 | # By default, configure uses ./config.cache as the cache file, |
7871 | # creating it if it does not exist already. You can give configure | |
7872 | # the --cache-file=FILE option to use a different cache file; that is | |
7873 | # what configure does when it calls configure scripts in | |
7874 | # subdirectories, so they share the cache. | |
7875 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
7876 | # config.status only pays attention to the cache file if you give it the | |
7877 | # --recheck option to rerun configure. | |
10f2d63a | 7878 | # |
698dcdb6 | 7879 | EOF |
10f2d63a VZ |
7880 | # The following way of writing the cache mishandles newlines in values, |
7881 | # but we know of no workaround that is simple, portable, and efficient. | |
7882 | # So, don't put newlines in cache variables' values. | |
7883 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
7884 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
7885 | (set) 2>&1 | |
7886 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
7887 | *ac_space=\ *) | |
7888 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
7889 | # turns \\\\ into \\, and sed turns \\ into \). | |
7890 | sed -n \ | |
7891 | -e "s/'/'\\\\''/g" \ | |
7892 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
7893 | ;; | |
7894 | *) | |
7895 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7896 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
7897 | ;; | |
7898 | esac >> confcache | |
7899 | if cmp -s $cache_file confcache; then | |
7900 | : | |
7901 | else | |
10f2d63a | 7902 | if test -w $cache_file; then |
698dcdb6 VZ |
7903 | echo "updating cache $cache_file" |
7904 | cat confcache > $cache_file | |
10f2d63a VZ |
7905 | else |
7906 | echo "not updating unwritable cache $cache_file" | |
7907 | fi | |
7908 | fi | |
7909 | rm -f confcache | |
7910 | ||
698dcdb6 | 7911 | |
e59890c3 | 7912 | if test "$build" != "$host" ; then |
3a922bb4 RL |
7913 | if test "$USE_WIN32" = 1 ; then |
7914 | CC=$host_alias-gcc | |
7915 | CXX=$host_alias-c++ | |
7916 | AR=$host_alias-ar | |
7917 | RANLIB=$host_alias-ranlib | |
7918 | DLLTOOL=$host_alias-dlltool | |
7919 | RESCOMP=$host_alias-windres | |
7920 | LD=$host_alias-ld | |
7921 | NM=$host_alias-nm | |
7922 | STRIP=$host_alias-strip | |
7923 | else | |
7924 | { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; } | |
7925 | fi | |
10f2d63a VZ |
7926 | fi |
7927 | ||
698dcdb6 | 7928 | # Extract the first word of "gcc", so it can be a program name with args. |
1e487827 | 7929 | set dummy gcc; ac_word=$2 |
698dcdb6 | 7930 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
978f1259 | 7931 | echo "configure:7932: checking for $ac_word" >&5 |
698dcdb6 VZ |
7932 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
7933 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6232543b VS |
7934 | else |
7935 | if test -n "$CC"; then | |
7936 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10f2d63a | 7937 | else |
698dcdb6 VZ |
7938 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
7939 | ac_dummy="$PATH" | |
7940 | for ac_dir in $ac_dummy; do | |
7941 | test -z "$ac_dir" && ac_dir=. | |
7942 | if test -f $ac_dir/$ac_word; then | |
7943 | ac_cv_prog_CC="gcc" | |
7944 | break | |
7945 | fi | |
7946 | done | |
7947 | IFS="$ac_save_ifs" | |
10f2d63a | 7948 | fi |
6232543b | 7949 | fi |
698dcdb6 | 7950 | CC="$ac_cv_prog_CC" |
6232543b | 7951 | if test -n "$CC"; then |
698dcdb6 | 7952 | echo "$ac_t""$CC" 1>&6 |
1e487827 | 7953 | else |
698dcdb6 | 7954 | echo "$ac_t""no" 1>&6 |
1e487827 | 7955 | fi |
6232543b | 7956 | |
1e487827 VS |
7957 | if test -z "$CC"; then |
7958 | # Extract the first word of "cc", so it can be a program name with args. | |
7959 | set dummy cc; ac_word=$2 | |
698dcdb6 | 7960 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
978f1259 | 7961 | echo "configure:7962: checking for $ac_word" >&5 |
698dcdb6 VZ |
7962 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
7963 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 VS |
7964 | else |
7965 | if test -n "$CC"; then | |
7966 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
7967 | else | |
698dcdb6 | 7968 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1e487827 | 7969 | ac_prog_rejected=no |
698dcdb6 VZ |
7970 | ac_dummy="$PATH" |
7971 | for ac_dir in $ac_dummy; do | |
7972 | test -z "$ac_dir" && ac_dir=. | |
7973 | if test -f $ac_dir/$ac_word; then | |
7974 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
7975 | ac_prog_rejected=yes | |
7976 | continue | |
7977 | fi | |
7978 | ac_cv_prog_CC="cc" | |
7979 | break | |
7980 | fi | |
7981 | done | |
7982 | IFS="$ac_save_ifs" | |
1e487827 VS |
7983 | if test $ac_prog_rejected = yes; then |
7984 | # We found a bogon in the path, so make sure we never use it. | |
7985 | set dummy $ac_cv_prog_CC | |
7986 | shift | |
698dcdb6 | 7987 | if test $# -gt 0; then |
1e487827 VS |
7988 | # We chose a different compiler from the bogus one. |
7989 | # However, it has the same basename, so the bogon will be chosen | |
7990 | # first if we set CC to just the basename; use the full file name. | |
7991 | shift | |
698dcdb6 | 7992 | set dummy "$ac_dir/$ac_word" "$@" |
1e487827 VS |
7993 | shift |
7994 | ac_cv_prog_CC="$@" | |
703e0a69 | 7995 | fi |
1e487827 VS |
7996 | fi |
7997 | fi | |
7998 | fi | |
698dcdb6 | 7999 | CC="$ac_cv_prog_CC" |
1e487827 | 8000 | if test -n "$CC"; then |
698dcdb6 | 8001 | echo "$ac_t""$CC" 1>&6 |
703e0a69 | 8002 | else |
698dcdb6 | 8003 | echo "$ac_t""no" 1>&6 |
703e0a69 | 8004 | fi |
1e487827 | 8005 | |
698dcdb6 VZ |
8006 | if test -z "$CC"; then |
8007 | case "`uname -s`" in | |
8008 | *win32* | *WIN32*) | |
8009 | # Extract the first word of "cl", so it can be a program name with args. | |
8010 | set dummy cl; ac_word=$2 | |
8011 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
978f1259 | 8012 | echo "configure:8013: checking for $ac_word" >&5 |
698dcdb6 VZ |
8013 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8014 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 VS |
8015 | else |
8016 | if test -n "$CC"; then | |
8017 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
703e0a69 | 8018 | else |
698dcdb6 VZ |
8019 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8020 | ac_dummy="$PATH" | |
8021 | for ac_dir in $ac_dummy; do | |
8022 | test -z "$ac_dir" && ac_dir=. | |
8023 | if test -f $ac_dir/$ac_word; then | |
8024 | ac_cv_prog_CC="cl" | |
8025 | break | |
8026 | fi | |
8027 | done | |
8028 | IFS="$ac_save_ifs" | |
703e0a69 | 8029 | fi |
1e487827 | 8030 | fi |
698dcdb6 | 8031 | CC="$ac_cv_prog_CC" |
1e487827 | 8032 | if test -n "$CC"; then |
698dcdb6 | 8033 | echo "$ac_t""$CC" 1>&6 |
1e487827 | 8034 | else |
698dcdb6 | 8035 | echo "$ac_t""no" 1>&6 |
1e487827 | 8036 | fi |
698dcdb6 VZ |
8037 | ;; |
8038 | esac | |
8039 | fi | |
8040 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
1e487827 VS |
8041 | fi |
8042 | ||
698dcdb6 | 8043 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
978f1259 | 8044 | echo "configure:8045: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
1e487827 | 8045 | |
698dcdb6 VZ |
8046 | ac_ext=c |
8047 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8048 | ac_cpp='$CPP $CPPFLAGS' | |
8049 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8050 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8051 | cross_compiling=$ac_cv_prog_cc_cross | |
6232543b | 8052 | |
698dcdb6 | 8053 | cat > conftest.$ac_ext << EOF |
1e487827 | 8054 | |
978f1259 | 8055 | #line 8056 "configure" |
1e487827 VS |
8056 | #include "confdefs.h" |
8057 | ||
698dcdb6 VZ |
8058 | main(){return(0);} |
8059 | EOF | |
978f1259 | 8060 | if { (eval echo configure:8061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
8061 | ac_cv_prog_cc_works=yes |
8062 | # If we can't run a trivial program, we are probably using a cross compiler. | |
8063 | if (./conftest; exit) 2>/dev/null; then | |
8064 | ac_cv_prog_cc_cross=no | |
8065 | else | |
8066 | ac_cv_prog_cc_cross=yes | |
8067 | fi | |
8068 | else | |
8069 | echo "configure: failed program was:" >&5 | |
8070 | cat conftest.$ac_ext >&5 | |
8071 | ac_cv_prog_cc_works=no | |
8072 | fi | |
8073 | rm -fr conftest* | |
8074 | ac_ext=c | |
8075 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8076 | ac_cpp='$CPP $CPPFLAGS' | |
8077 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8078 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8079 | cross_compiling=$ac_cv_prog_cc_cross | |
8080 | ||
8081 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
8082 | if test $ac_cv_prog_cc_works = no; then | |
8083 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
8084 | fi | |
8085 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
978f1259 | 8086 | echo "configure:8087: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
698dcdb6 VZ |
8087 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
8088 | cross_compiling=$ac_cv_prog_cc_cross | |
8089 | ||
8090 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
978f1259 | 8091 | echo "configure:8092: checking whether we are using GNU C" >&5 |
698dcdb6 VZ |
8092 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
8093 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8094 | else | |
8095 | cat > conftest.c <<EOF | |
8096 | #ifdef __GNUC__ | |
8097 | yes; | |
1e487827 | 8098 | #endif |
698dcdb6 | 8099 | EOF |
978f1259 | 8100 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8101: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
698dcdb6 VZ |
8101 | ac_cv_prog_gcc=yes |
8102 | else | |
8103 | ac_cv_prog_gcc=no | |
8104 | fi | |
8105 | fi | |
1e487827 | 8106 | |
698dcdb6 | 8107 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
1e487827 | 8108 | |
698dcdb6 VZ |
8109 | if test $ac_cv_prog_gcc = yes; then |
8110 | GCC=yes | |
8111 | else | |
8112 | GCC= | |
8113 | fi | |
1e487827 | 8114 | |
698dcdb6 VZ |
8115 | ac_test_CFLAGS="${CFLAGS+set}" |
8116 | ac_save_CFLAGS="$CFLAGS" | |
8117 | CFLAGS= | |
8118 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
978f1259 | 8119 | echo "configure:8120: checking whether ${CC-cc} accepts -g" >&5 |
698dcdb6 VZ |
8120 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
8121 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8122 | else | |
8123 | echo 'void f(){}' > conftest.c | |
8124 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
10f2d63a VZ |
8125 | ac_cv_prog_cc_g=yes |
8126 | else | |
698dcdb6 | 8127 | ac_cv_prog_cc_g=no |
10f2d63a | 8128 | fi |
698dcdb6 VZ |
8129 | rm -f conftest* |
8130 | ||
10f2d63a | 8131 | fi |
698dcdb6 VZ |
8132 | |
8133 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
10f2d63a | 8134 | if test "$ac_test_CFLAGS" = set; then |
698dcdb6 | 8135 | CFLAGS="$ac_save_CFLAGS" |
10f2d63a VZ |
8136 | elif test $ac_cv_prog_cc_g = yes; then |
8137 | if test "$GCC" = yes; then | |
8138 | CFLAGS="-g -O2" | |
8139 | else | |
8140 | CFLAGS="-g" | |
8141 | fi | |
8142 | else | |
8143 | if test "$GCC" = yes; then | |
8144 | CFLAGS="-O2" | |
8145 | else | |
8146 | CFLAGS= | |
8147 | fi | |
8148 | fi | |
8149 | ||
8150 | ||
8151 | CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'` | |
8152 | ||
698dcdb6 | 8153 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
978f1259 | 8154 | echo "configure:8155: checking how to run the C preprocessor" >&5 |
10f2d63a VZ |
8155 | # On Suns, sometimes $CPP names a directory. |
8156 | if test -n "$CPP" && test -d "$CPP"; then | |
8157 | CPP= | |
8158 | fi | |
8159 | if test -z "$CPP"; then | |
698dcdb6 VZ |
8160 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
8161 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8162 | else | |
8163 | # This must be in double quotes, not single quotes, because CPP may get | |
8164 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
8165 | CPP="${CC-cc} -E" | |
10f2d63a | 8166 | # On the NeXT, cc -E runs the code through the compiler's parser, |
698dcdb6 VZ |
8167 | # not just through cpp. |
8168 | cat > conftest.$ac_ext <<EOF | |
978f1259 | 8169 | #line 8170 "configure" |
10f2d63a VZ |
8170 | #include "confdefs.h" |
8171 | #include <assert.h> | |
698dcdb6 VZ |
8172 | Syntax Error |
8173 | EOF | |
8174 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
978f1259 | 8175 | { (eval echo configure:8176: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8176 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8177 | if test -z "$ac_err"; then | |
10f2d63a VZ |
8178 | : |
8179 | else | |
698dcdb6 VZ |
8180 | echo "$ac_err" >&5 |
8181 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8182 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8183 | rm -rf conftest* |
8184 | CPP="${CC-cc} -E -traditional-cpp" | |
8185 | cat > conftest.$ac_ext <<EOF | |
978f1259 | 8186 | #line 8187 "configure" |
10f2d63a | 8187 | #include "confdefs.h" |
698dcdb6 VZ |
8188 | #include <assert.h> |
8189 | Syntax Error | |
8190 | EOF | |
8191 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
978f1259 | 8192 | { (eval echo configure:8193: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8193 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8194 | if test -z "$ac_err"; then | |
8195 | : | |
10f2d63a | 8196 | else |
698dcdb6 VZ |
8197 | echo "$ac_err" >&5 |
8198 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8199 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8200 | rm -rf conftest* |
8201 | CPP="${CC-cc} -nologo -E" | |
8202 | cat > conftest.$ac_ext <<EOF | |
978f1259 | 8203 | #line 8204 "configure" |
10f2d63a VZ |
8204 | #include "confdefs.h" |
8205 | #include <assert.h> | |
698dcdb6 VZ |
8206 | Syntax Error |
8207 | EOF | |
8208 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
978f1259 | 8209 | { (eval echo configure:8210: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8210 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8211 | if test -z "$ac_err"; then | |
10f2d63a VZ |
8212 | : |
8213 | else | |
698dcdb6 VZ |
8214 | echo "$ac_err" >&5 |
8215 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8216 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8217 | rm -rf conftest* |
8218 | CPP=/lib/cpp | |
10f2d63a | 8219 | fi |
698dcdb6 | 8220 | rm -f conftest* |
10f2d63a | 8221 | fi |
698dcdb6 | 8222 | rm -f conftest* |
703e0a69 | 8223 | fi |
698dcdb6 VZ |
8224 | rm -f conftest* |
8225 | ac_cv_prog_CPP="$CPP" | |
8226 | fi | |
8227 | CPP="$ac_cv_prog_CPP" | |
10f2d63a | 8228 | else |
698dcdb6 | 8229 | ac_cv_prog_CPP="$CPP" |
10f2d63a | 8230 | fi |
698dcdb6 | 8231 | echo "$ac_t""$CPP" 1>&6 |
10f2d63a | 8232 | |
698dcdb6 VZ |
8233 | if test $ac_cv_prog_gcc = yes; then |
8234 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
978f1259 | 8235 | echo "configure:8236: checking whether ${CC-cc} needs -traditional" >&5 |
698dcdb6 VZ |
8236 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
8237 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8238 | else |
8239 | ac_pattern="Autoconf.*'x'" | |
698dcdb6 | 8240 | cat > conftest.$ac_ext <<EOF |
978f1259 | 8241 | #line 8242 "configure" |
10f2d63a VZ |
8242 | #include "confdefs.h" |
8243 | #include <sgtty.h> | |
8244 | Autoconf TIOCGETP | |
698dcdb6 | 8245 | EOF |
10f2d63a VZ |
8246 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8247 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
698dcdb6 | 8248 | rm -rf conftest* |
10f2d63a VZ |
8249 | ac_cv_prog_gcc_traditional=yes |
8250 | else | |
698dcdb6 | 8251 | rm -rf conftest* |
10f2d63a VZ |
8252 | ac_cv_prog_gcc_traditional=no |
8253 | fi | |
8254 | rm -f conftest* | |
8255 | ||
698dcdb6 | 8256 | |
10f2d63a | 8257 | if test $ac_cv_prog_gcc_traditional = no; then |
698dcdb6 | 8258 | cat > conftest.$ac_ext <<EOF |
978f1259 | 8259 | #line 8260 "configure" |
10f2d63a VZ |
8260 | #include "confdefs.h" |
8261 | #include <termio.h> | |
8262 | Autoconf TCGETA | |
698dcdb6 | 8263 | EOF |
10f2d63a VZ |
8264 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8265 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
698dcdb6 | 8266 | rm -rf conftest* |
10f2d63a VZ |
8267 | ac_cv_prog_gcc_traditional=yes |
8268 | fi | |
8269 | rm -f conftest* | |
8270 | ||
8271 | fi | |
8272 | fi | |
698dcdb6 VZ |
8273 | |
8274 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
10f2d63a VZ |
8275 | if test $ac_cv_prog_gcc_traditional = yes; then |
8276 | CC="$CC -traditional" | |
8277 | fi | |
8278 | fi | |
8279 | ||
703e0a69 | 8280 | |
698dcdb6 VZ |
8281 | |
8282 | ac_ext=C | |
8283 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 8284 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
8285 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
8286 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8287 | cross_compiling=$ac_cv_prog_cxx_cross | |
8288 | ||
8289 | ||
8290 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | |
8291 | do | |
8292 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
8293 | set dummy $ac_prog; ac_word=$2 | |
8294 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
978f1259 | 8295 | echo "configure:8296: checking for $ac_word" >&5 |
698dcdb6 VZ |
8296 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
8297 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8298 | else |
8299 | if test -n "$CXX"; then | |
8300 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
8301 | else | |
698dcdb6 VZ |
8302 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8303 | ac_dummy="$PATH" | |
8304 | for ac_dir in $ac_dummy; do | |
8305 | test -z "$ac_dir" && ac_dir=. | |
8306 | if test -f $ac_dir/$ac_word; then | |
8307 | ac_cv_prog_CXX="$ac_prog" | |
8308 | break | |
8309 | fi | |
8310 | done | |
8311 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8312 | fi |
8313 | fi | |
698dcdb6 | 8314 | CXX="$ac_cv_prog_CXX" |
10f2d63a | 8315 | if test -n "$CXX"; then |
698dcdb6 | 8316 | echo "$ac_t""$CXX" 1>&6 |
10f2d63a | 8317 | else |
698dcdb6 | 8318 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8319 | fi |
8320 | ||
698dcdb6 | 8321 | test -n "$CXX" && break |
10f2d63a | 8322 | done |
698dcdb6 | 8323 | test -n "$CXX" || CXX="gcc" |
10f2d63a VZ |
8324 | |
8325 | ||
698dcdb6 | 8326 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
978f1259 | 8327 | echo "configure:8328: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
10f2d63a | 8328 | |
698dcdb6 VZ |
8329 | ac_ext=C |
8330 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8331 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8332 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8333 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8334 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 8335 | |
698dcdb6 VZ |
8336 | cat > conftest.$ac_ext << EOF |
8337 | ||
978f1259 | 8338 | #line 8339 "configure" |
10f2d63a VZ |
8339 | #include "confdefs.h" |
8340 | ||
698dcdb6 VZ |
8341 | int main(){return(0);} |
8342 | EOF | |
978f1259 | 8343 | if { (eval echo configure:8344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
8344 | ac_cv_prog_cxx_works=yes |
8345 | # If we can't run a trivial program, we are probably using a cross compiler. | |
8346 | if (./conftest; exit) 2>/dev/null; then | |
8347 | ac_cv_prog_cxx_cross=no | |
8348 | else | |
8349 | ac_cv_prog_cxx_cross=yes | |
8350 | fi | |
8351 | else | |
8352 | echo "configure: failed program was:" >&5 | |
8353 | cat conftest.$ac_ext >&5 | |
8354 | ac_cv_prog_cxx_works=no | |
8355 | fi | |
8356 | rm -fr conftest* | |
8357 | ac_ext=C | |
8358 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8359 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8360 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8361 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8362 | cross_compiling=$ac_cv_prog_cxx_cross | |
8363 | ||
8364 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 | |
8365 | if test $ac_cv_prog_cxx_works = no; then | |
8366 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
8367 | fi | |
8368 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
978f1259 | 8369 | echo "configure:8370: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
698dcdb6 VZ |
8370 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
8371 | cross_compiling=$ac_cv_prog_cxx_cross | |
8372 | ||
8373 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 | |
978f1259 | 8374 | echo "configure:8375: checking whether we are using GNU C++" >&5 |
698dcdb6 VZ |
8375 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
8376 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8377 | else | |
8378 | cat > conftest.C <<EOF | |
8379 | #ifdef __GNUC__ | |
8380 | yes; | |
10f2d63a | 8381 | #endif |
698dcdb6 | 8382 | EOF |
978f1259 | 8383 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:8384: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
698dcdb6 VZ |
8384 | ac_cv_prog_gxx=yes |
8385 | else | |
8386 | ac_cv_prog_gxx=no | |
8387 | fi | |
8388 | fi | |
10f2d63a | 8389 | |
698dcdb6 | 8390 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
10f2d63a | 8391 | |
698dcdb6 VZ |
8392 | if test $ac_cv_prog_gxx = yes; then |
8393 | GXX=yes | |
8394 | else | |
8395 | GXX= | |
8396 | fi | |
10f2d63a | 8397 | |
698dcdb6 VZ |
8398 | ac_test_CXXFLAGS="${CXXFLAGS+set}" |
8399 | ac_save_CXXFLAGS="$CXXFLAGS" | |
8400 | CXXFLAGS= | |
8401 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
978f1259 | 8402 | echo "configure:8403: checking whether ${CXX-g++} accepts -g" >&5 |
698dcdb6 VZ |
8403 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
8404 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8405 | else | |
8406 | echo 'void f(){}' > conftest.cc | |
8407 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
10f2d63a VZ |
8408 | ac_cv_prog_cxx_g=yes |
8409 | else | |
698dcdb6 | 8410 | ac_cv_prog_cxx_g=no |
10f2d63a | 8411 | fi |
698dcdb6 VZ |
8412 | rm -f conftest* |
8413 | ||
10f2d63a | 8414 | fi |
698dcdb6 VZ |
8415 | |
8416 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
10f2d63a | 8417 | if test "$ac_test_CXXFLAGS" = set; then |
698dcdb6 | 8418 | CXXFLAGS="$ac_save_CXXFLAGS" |
10f2d63a VZ |
8419 | elif test $ac_cv_prog_cxx_g = yes; then |
8420 | if test "$GXX" = yes; then | |
8421 | CXXFLAGS="-g -O2" | |
8422 | else | |
8423 | CXXFLAGS="-g" | |
8424 | fi | |
8425 | else | |
8426 | if test "$GXX" = yes; then | |
8427 | CXXFLAGS="-O2" | |
8428 | else | |
8429 | CXXFLAGS= | |
8430 | fi | |
8431 | fi | |
8432 | ||
8433 | ||
10f2d63a VZ |
8434 | CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'` |
8435 | ||
8436 | ac_ext=c | |
698dcdb6 | 8437 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 8438 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
8439 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
8440 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8441 | cross_compiling=$ac_cv_prog_cc_cross | |
8442 | ||
8443 | ||
8444 | # Extract the first word of "ranlib", so it can be a program name with args. | |
8445 | set dummy ranlib; ac_word=$2 | |
8446 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
978f1259 | 8447 | echo "configure:8448: checking for $ac_word" >&5 |
698dcdb6 VZ |
8448 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
8449 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8450 | else |
8451 | if test -n "$RANLIB"; then | |
8452 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8453 | else | |
698dcdb6 VZ |
8454 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8455 | ac_dummy="$PATH" | |
8456 | for ac_dir in $ac_dummy; do | |
8457 | test -z "$ac_dir" && ac_dir=. | |
8458 | if test -f $ac_dir/$ac_word; then | |
8459 | ac_cv_prog_RANLIB="ranlib" | |
8460 | break | |
8461 | fi | |
8462 | done | |
8463 | IFS="$ac_save_ifs" | |
8464 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
10f2d63a VZ |
8465 | fi |
8466 | fi | |
698dcdb6 | 8467 | RANLIB="$ac_cv_prog_RANLIB" |
10f2d63a | 8468 | if test -n "$RANLIB"; then |
698dcdb6 | 8469 | echo "$ac_t""$RANLIB" 1>&6 |
10f2d63a | 8470 | else |
698dcdb6 | 8471 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8472 | fi |
8473 | ||
8474 | ||
8475 | # Extract the first word of "ar", so it can be a program name with args. | |
8476 | set dummy ar; ac_word=$2 | |
698dcdb6 | 8477 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
978f1259 | 8478 | echo "configure:8479: checking for $ac_word" >&5 |
698dcdb6 VZ |
8479 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
8480 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8481 | else |
8482 | if test -n "$AR"; then | |
8483 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8484 | else | |
698dcdb6 VZ |
8485 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8486 | ac_dummy="$PATH" | |
8487 | for ac_dir in $ac_dummy; do | |
8488 | test -z "$ac_dir" && ac_dir=. | |
8489 | if test -f $ac_dir/$ac_word; then | |
8490 | ac_cv_prog_AR="ar" | |
8491 | break | |
8492 | fi | |
8493 | done | |
8494 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8495 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
8496 | fi | |
8497 | fi | |
698dcdb6 | 8498 | AR="$ac_cv_prog_AR" |
10f2d63a | 8499 | if test -n "$AR"; then |
698dcdb6 | 8500 | echo "$ac_t""$AR" 1>&6 |
10f2d63a | 8501 | else |
698dcdb6 | 8502 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8503 | fi |
8504 | ||
698dcdb6 | 8505 | |
6054113a | 8506 | # Find a good install program. We prefer a C program (faster), |
10f2d63a VZ |
8507 | # so one script is as good as another. But avoid the broken or |
8508 | # incompatible versions: | |
8509 | # SysV /etc/install, /usr/sbin/install | |
8510 | # SunOS /usr/etc/install | |
8511 | # IRIX /sbin/install | |
8512 | # AIX /bin/install | |
8513 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
8514 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
8515 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
8516 | # ./install, which can be erroneously created by make from ./install.sh. | |
698dcdb6 | 8517 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
978f1259 | 8518 | echo "configure:8519: checking for a BSD compatible install" >&5 |
10f2d63a | 8519 | if test -z "$INSTALL"; then |
698dcdb6 VZ |
8520 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
8521 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 8522 | else |
698dcdb6 | 8523 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
10f2d63a VZ |
8524 | for ac_dir in $PATH; do |
8525 | # Account for people who put trailing slashes in PATH elements. | |
698dcdb6 VZ |
8526 | case "$ac_dir/" in |
8527 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
10f2d63a VZ |
8528 | *) |
8529 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
8530 | # Don't use installbsd from OSF since it installs stuff as root | |
8531 | # by default. | |
8532 | for ac_prog in ginstall scoinst install; do | |
698dcdb6 | 8533 | if test -f $ac_dir/$ac_prog; then |
10f2d63a | 8534 | if test $ac_prog = install && |
698dcdb6 | 8535 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
10f2d63a VZ |
8536 | # AIX install. It has an incompatible calling convention. |
8537 | : | |
8538 | else | |
8539 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
8540 | break 2 | |
8541 | fi | |
8542 | fi | |
8543 | done | |
8544 | ;; | |
8545 | esac | |
8546 | done | |
698dcdb6 | 8547 | IFS="$ac_save_IFS" |
10f2d63a VZ |
8548 | |
8549 | fi | |
8550 | if test "${ac_cv_path_install+set}" = set; then | |
698dcdb6 | 8551 | INSTALL="$ac_cv_path_install" |
10f2d63a VZ |
8552 | else |
8553 | # As a last resort, use the slow shell script. We don't cache a | |
8554 | # path for INSTALL within a source directory, because that will | |
8555 | # break other packages using the cache if that directory is | |
8556 | # removed, or if the path is relative. | |
698dcdb6 | 8557 | INSTALL="$ac_install_sh" |
10f2d63a VZ |
8558 | fi |
8559 | fi | |
698dcdb6 | 8560 | echo "$ac_t""$INSTALL" 1>&6 |
10f2d63a VZ |
8561 | |
8562 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
8563 | # It thinks the first close brace ends the variable substitution. | |
8564 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
8565 | ||
698dcdb6 | 8566 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
10f2d63a VZ |
8567 | |
8568 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
8569 | ||
6054113a GD |
8570 | case "${host}" in |
8571 | ||
b5853384 | 8572 | powerpc-*-darwin* ) |
eb99ae0b GD |
8573 | INSTALL_PROGRAM="cp -fp" |
8574 | INSTALL_DATA="cp -fp" | |
6054113a GD |
8575 | ;; |
8576 | *) | |
8577 | ;; | |
d6853540 | 8578 | esac |
698dcdb6 | 8579 | |
10f2d63a VZ |
8580 | # Extract the first word of "strip", so it can be a program name with args. |
8581 | set dummy strip; ac_word=$2 | |
698dcdb6 | 8582 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
978f1259 | 8583 | echo "configure:8584: checking for $ac_word" >&5 |
698dcdb6 VZ |
8584 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
8585 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8586 | else |
8587 | if test -n "$STRIP"; then | |
8588 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
8589 | else | |
698dcdb6 VZ |
8590 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8591 | ac_dummy="$PATH" | |
8592 | for ac_dir in $ac_dummy; do | |
8593 | test -z "$ac_dir" && ac_dir=. | |
8594 | if test -f $ac_dir/$ac_word; then | |
8595 | ac_cv_prog_STRIP="strip" | |
8596 | break | |
8597 | fi | |
8598 | done | |
8599 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8600 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
8601 | fi | |
8602 | fi | |
698dcdb6 | 8603 | STRIP="$ac_cv_prog_STRIP" |
10f2d63a | 8604 | if test -n "$STRIP"; then |
698dcdb6 | 8605 | echo "$ac_t""$STRIP" 1>&6 |
10f2d63a | 8606 | else |
698dcdb6 | 8607 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8608 | fi |
8609 | ||
698dcdb6 VZ |
8610 | |
8611 | echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6 | |
978f1259 | 8612 | echo "configure:8613: checking make for VPATH support" >&5 |
10f2d63a VZ |
8613 | cat - << EOF > confMake |
8614 | check : file | |
8615 | cp \$? \$@ | |
8616 | cp \$? final_file | |
8617 | EOF | |
8618 | ||
8619 | if test ! -d sub ; then | |
8620 | mkdir sub | |
8621 | fi | |
8622 | echo dummy > sub/file | |
f6bcfd97 | 8623 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null |
10f2d63a VZ |
8624 | RESULT=$? |
8625 | rm -f sub/file check final_file confMake | |
8626 | rmdir sub | |
8627 | if test "$RESULT" = 0; then | |
698dcdb6 | 8628 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8629 | else |
698dcdb6 VZ |
8630 | echo "$ac_t""no" 1>&6 |
8631 | { echo "configure: error: | |
1e487827 VS |
8632 | You need a make-utility that is able to use the variable |
8633 | VPATH correctly. | |
8634 | If your version of make does not support VPATH correctly, | |
8635 | please install GNU-make (possibly as gmake), and start | |
8636 | configure with the following command: | |
8637 | export MAKE=gmake; ./configure for sh-type shells | |
8638 | setenv MAKE gmake; ./configure for csh-type shells | |
8639 | Also please do remember to use gmake in this case every time | |
8640 | you are trying to compile. | |
698dcdb6 | 8641 | " 1>&2; exit 1; } |
10f2d63a VZ |
8642 | fi |
8643 | ||
8644 | for ac_prog in 'bison -y' byacc | |
8645 | do | |
698dcdb6 | 8646 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
10f2d63a | 8647 | set dummy $ac_prog; ac_word=$2 |
698dcdb6 | 8648 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
978f1259 | 8649 | echo "configure:8650: checking for $ac_word" >&5 |
698dcdb6 VZ |
8650 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
8651 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8652 | else |
8653 | if test -n "$YACC"; then | |
8654 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
8655 | else | |
698dcdb6 VZ |
8656 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8657 | ac_dummy="$PATH" | |
8658 | for ac_dir in $ac_dummy; do | |
8659 | test -z "$ac_dir" && ac_dir=. | |
8660 | if test -f $ac_dir/$ac_word; then | |
8661 | ac_cv_prog_YACC="$ac_prog" | |
8662 | break | |
8663 | fi | |
8664 | done | |
8665 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8666 | fi |
8667 | fi | |
698dcdb6 | 8668 | YACC="$ac_cv_prog_YACC" |
10f2d63a | 8669 | if test -n "$YACC"; then |
698dcdb6 | 8670 | echo "$ac_t""$YACC" 1>&6 |
10f2d63a | 8671 | else |
698dcdb6 | 8672 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8673 | fi |
8674 | ||
698dcdb6 | 8675 | test -n "$YACC" && break |
10f2d63a VZ |
8676 | done |
8677 | test -n "$YACC" || YACC="yacc" | |
8678 | ||
698dcdb6 VZ |
8679 | |
8680 | # Extract the first word of "flex", so it can be a program name with args. | |
8681 | set dummy flex; ac_word=$2 | |
8682 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
978f1259 | 8683 | echo "configure:8684: checking for $ac_word" >&5 |
698dcdb6 VZ |
8684 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
8685 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8686 | else |
8687 | if test -n "$LEX"; then | |
8688 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
8689 | else | |
698dcdb6 VZ |
8690 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8691 | ac_dummy="$PATH" | |
8692 | for ac_dir in $ac_dummy; do | |
8693 | test -z "$ac_dir" && ac_dir=. | |
8694 | if test -f $ac_dir/$ac_word; then | |
8695 | ac_cv_prog_LEX="flex" | |
8696 | break | |
8697 | fi | |
8698 | done | |
8699 | IFS="$ac_save_ifs" | |
8700 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
10f2d63a VZ |
8701 | fi |
8702 | fi | |
698dcdb6 | 8703 | LEX="$ac_cv_prog_LEX" |
10f2d63a | 8704 | if test -n "$LEX"; then |
698dcdb6 | 8705 | echo "$ac_t""$LEX" 1>&6 |
10f2d63a | 8706 | else |
698dcdb6 | 8707 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8708 | fi |
8709 | ||
8710 | if test -z "$LEXLIB" | |
8711 | then | |
698dcdb6 VZ |
8712 | case "$LEX" in |
8713 | flex*) ac_lib=fl ;; | |
8714 | *) ac_lib=l ;; | |
8715 | esac | |
8716 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
978f1259 | 8717 | echo "configure:8718: checking for yywrap in -l$ac_lib" >&5 |
698dcdb6 VZ |
8718 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
8719 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
8720 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8721 | else | |
8722 | ac_save_LIBS="$LIBS" | |
8723 | LIBS="-l$ac_lib $LIBS" | |
8724 | cat > conftest.$ac_ext <<EOF | |
978f1259 | 8725 | #line 8726 "configure" |
10f2d63a VZ |
8726 | #include "confdefs.h" |
8727 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8728 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
8729 | builtin and then its argument prototype would still apply. */ |
8730 | char yywrap(); | |
10f2d63a | 8731 | |
698dcdb6 VZ |
8732 | int main() { |
8733 | yywrap() | |
8734 | ; return 0; } | |
8735 | EOF | |
978f1259 | 8736 | if { (eval echo configure:8737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
8737 | rm -rf conftest* |
8738 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 8739 | else |
698dcdb6 VZ |
8740 | echo "configure: failed program was:" >&5 |
8741 | cat conftest.$ac_ext >&5 | |
8742 | rm -rf conftest* | |
8743 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 8744 | fi |
698dcdb6 VZ |
8745 | rm -f conftest* |
8746 | LIBS="$ac_save_LIBS" | |
8747 | ||
10f2d63a | 8748 | fi |
698dcdb6 VZ |
8749 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
8750 | echo "$ac_t""yes" 1>&6 | |
8751 | LEXLIB="-l$ac_lib" | |
8752 | else | |
8753 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
8754 | fi |
8755 | ||
8756 | fi | |
8757 | ||
8758 | ||
698dcdb6 | 8759 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
978f1259 | 8760 | echo "configure:8761: checking whether ln -s works" >&5 |
698dcdb6 VZ |
8761 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
8762 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 8763 | else |
698dcdb6 VZ |
8764 | rm -f conftestdata |
8765 | if ln -s X conftestdata 2>/dev/null | |
8766 | then | |
8767 | rm -f conftestdata | |
8768 | ac_cv_prog_LN_S="ln -s" | |
10f2d63a | 8769 | else |
698dcdb6 | 8770 | ac_cv_prog_LN_S=ln |
10f2d63a VZ |
8771 | fi |
8772 | fi | |
698dcdb6 VZ |
8773 | LN_S="$ac_cv_prog_LN_S" |
8774 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
8775 | echo "$ac_t""yes" 1>&6 | |
10f2d63a | 8776 | else |
698dcdb6 | 8777 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8778 | fi |
8779 | ||
8780 | ||
8781 | ||
8782 | SEARCH_INCLUDE="\ | |
8783 | /usr/local/include \ | |
8784 | \ | |
8785 | /usr/Motif-1.2/include \ | |
8786 | /usr/Motif-2.1/include \ | |
8787 | \ | |
8788 | /usr/include/Motif1.2 \ | |
8789 | /opt/xpm/include/X11 \ | |
8790 | /opt/GBxpm/include/ \ | |
8791 | /opt/GBxpm/X11/include/ \ | |
8792 | \ | |
8793 | /usr/Motif1.2/include \ | |
8794 | /usr/dt/include \ | |
afc31813 VZ |
8795 | /usr/openwin/include \ |
8796 | \ | |
10f2d63a VZ |
8797 | /usr/include/Xm \ |
8798 | \ | |
8799 | /usr/X11R6/include \ | |
afc31813 | 8800 | /usr/X11R6.4/include \ |
10f2d63a VZ |
8801 | /usr/X11R5/include \ |
8802 | /usr/X11R4/include \ | |
8803 | \ | |
10f2d63a VZ |
8804 | /usr/include/X11R6 \ |
8805 | /usr/include/X11R5 \ | |
8806 | /usr/include/X11R4 \ | |
8807 | \ | |
8808 | /usr/local/X11R6/include \ | |
8809 | /usr/local/X11R5/include \ | |
8810 | /usr/local/X11R4/include \ | |
8811 | \ | |
8812 | /usr/local/include/X11R6 \ | |
8813 | /usr/local/include/X11R5 \ | |
8814 | /usr/local/include/X11R4 \ | |
8815 | \ | |
8816 | /usr/X11/include \ | |
8817 | /usr/include/X11 \ | |
8818 | /usr/local/X11/include \ | |
8819 | /usr/local/include/X11 \ | |
8820 | \ | |
8821 | /usr/X386/include \ | |
8822 | /usr/x386/include \ | |
8823 | /usr/XFree86/include/X11 \ | |
8824 | \ | |
cf27ef00 | 8825 | X:/XFree86/include \ |
ec14dd32 VZ |
8826 | X:/XFree86/include/X11 \ |
8827 | \ | |
10f2d63a VZ |
8828 | /usr/include/gtk \ |
8829 | /usr/local/include/gtk \ | |
8830 | /usr/include/glib \ | |
8831 | /usr/local/include/glib \ | |
8832 | \ | |
8833 | /usr/include/qt \ | |
8834 | /usr/local/include/qt \ | |
8835 | \ | |
8836 | /usr/include/windows \ | |
8837 | /usr/include/wine \ | |
8838 | /usr/local/include/wine \ | |
8839 | \ | |
8840 | /usr/unsupported/include \ | |
8841 | /usr/athena/include \ | |
8842 | /usr/local/x11r5/include \ | |
8843 | /usr/lpp/Xamples/include \ | |
8844 | \ | |
10f2d63a | 8845 | /usr/openwin/share/include \ |
928b5c08 VZ |
8846 | \ |
8847 | /usr/include" | |
10f2d63a VZ |
8848 | |
8849 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
8850 | ||
698dcdb6 VZ |
8851 | |
8852 | cat > confcache <<\EOF | |
10f2d63a VZ |
8853 | # This file is a shell script that caches the results of configure |
8854 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
8855 | # scripts and configure runs. It is not useful on other systems. |
8856 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 8857 | # |
698dcdb6 VZ |
8858 | # By default, configure uses ./config.cache as the cache file, |
8859 | # creating it if it does not exist already. You can give configure | |
8860 | # the --cache-file=FILE option to use a different cache file; that is | |
8861 | # what configure does when it calls configure scripts in | |
8862 | # subdirectories, so they share the cache. | |
8863 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
8864 | # config.status only pays attention to the cache file if you give it the | |
8865 | # --recheck option to rerun configure. | |
10f2d63a | 8866 | # |
698dcdb6 | 8867 | EOF |
10f2d63a VZ |
8868 | # The following way of writing the cache mishandles newlines in values, |
8869 | # but we know of no workaround that is simple, portable, and efficient. | |
8870 | # So, don't put newlines in cache variables' values. | |
8871 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
8872 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
8873 | (set) 2>&1 | |
8874 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
8875 | *ac_space=\ *) | |
8876 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
8877 | # turns \\\\ into \\, and sed turns \\ into \). | |
8878 | sed -n \ | |
8879 | -e "s/'/'\\\\''/g" \ | |
8880 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
8881 | ;; | |
8882 | *) | |
8883 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
8884 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
8885 | ;; | |
8886 | esac >> confcache | |
8887 | if cmp -s $cache_file confcache; then | |
8888 | : | |
8889 | else | |
10f2d63a | 8890 | if test -w $cache_file; then |
698dcdb6 VZ |
8891 | echo "updating cache $cache_file" |
8892 | cat confcache > $cache_file | |
10f2d63a VZ |
8893 | else |
8894 | echo "not updating unwritable cache $cache_file" | |
8895 | fi | |
8896 | fi | |
8897 | rm -f confcache | |
8898 | ||
698dcdb6 VZ |
8899 | |
8900 | ||
4f14bcd8 | 8901 | |
18dbb1f6 VZ |
8902 | REGEX_INCLUDE= |
8903 | if test "$wxUSE_REGEX" != "no"; then | |
4f14bcd8 GD |
8904 | cat >> confdefs.h <<\EOF |
8905 | #define wxUSE_REGEX 1 | |
8906 | EOF | |
8907 | ||
8908 | ||
8909 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then | |
8910 | ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'` | |
18dbb1f6 | 8911 | echo $ac_n "checking for regex.h""... $ac_c" 1>&6 |
978f1259 | 8912 | echo "configure:8913: checking for regex.h" >&5 |
18dbb1f6 VZ |
8913 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8914 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8915 | else | |
8916 | cat > conftest.$ac_ext <<EOF | |
978f1259 | 8917 | #line 8918 "configure" |
18dbb1f6 VZ |
8918 | #include "confdefs.h" |
8919 | #include <regex.h> | |
8920 | EOF | |
8921 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
978f1259 | 8922 | { (eval echo configure:8923: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
18dbb1f6 VZ |
8923 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8924 | if test -z "$ac_err"; then | |
8925 | rm -rf conftest* | |
8926 | eval "ac_cv_header_$ac_safe=yes" | |
8927 | else | |
8928 | echo "$ac_err" >&5 | |
8929 | echo "configure: failed program was:" >&5 | |
8930 | cat conftest.$ac_ext >&5 | |
8931 | rm -rf conftest* | |
8932 | eval "ac_cv_header_$ac_safe=no" | |
8933 | fi | |
8934 | rm -f conftest* | |
8935 | fi | |
8936 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8937 | echo "$ac_t""yes" 1>&6 | |
8938 | for ac_func in regcomp | |
8939 | do | |
8940 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
978f1259 | 8941 | echo "configure:8942: checking for $ac_func" >&5 |
18dbb1f6 VZ |
8942 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
8943 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8944 | else | |
8945 | cat > conftest.$ac_ext <<EOF | |
978f1259 | 8946 | #line 8947 "configure" |
18dbb1f6 VZ |
8947 | #include "confdefs.h" |
8948 | /* System header to define __stub macros and hopefully few prototypes, | |
8949 | which can conflict with char $ac_func(); below. */ | |
8950 | #include <assert.h> | |
8951 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8952 | /* We use char because int might match the return type of a gcc2 | |
8953 | builtin and then its argument prototype would still apply. */ | |
8954 | char $ac_func(); | |
8955 | ||
8956 | int main() { | |
8957 | ||
8958 | /* The GNU C library defines this for functions which it implements | |
8959 | to always fail with ENOSYS. Some functions are actually named | |
8960 | something starting with __ and the normal name is an alias. */ | |
8961 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
8962 | choke me | |
8963 | #else | |
8964 | $ac_func(); | |
8965 | #endif | |
8966 | ||
8967 | ; return 0; } | |
8968 | EOF | |
978f1259 | 8969 | if { (eval echo configure:8970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
18dbb1f6 VZ |
8970 | rm -rf conftest* |
8971 | eval "ac_cv_func_$ac_func=yes" | |
8972 | else | |
8973 | echo "configure: failed program was:" >&5 | |
8974 | cat conftest.$ac_ext >&5 | |
8975 | rm -rf conftest* | |
8976 | eval "ac_cv_func_$ac_func=no" | |
8977 | fi | |
8978 | rm -f conftest* | |
8979 | fi | |
8980 | ||
8981 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
8982 | echo "$ac_t""yes" 1>&6 | |
8983 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
8984 | cat >> confdefs.h <<EOF | |
8985 | #define $ac_tr_func 1 | |
8986 | EOF | |
8987 | ||
8988 | else | |
8989 | echo "$ac_t""no" 1>&6 | |
8990 | fi | |
8991 | done | |
8992 | ||
8993 | else | |
8994 | echo "$ac_t""no" 1>&6 | |
8995 | fi | |
8996 | ||
8997 | ||
4f14bcd8 GD |
8998 | if test "x$ac_cv_func_regcomp" != "xyes"; then |
8999 | if test "$wxUSE_REGEX" = "sys" ; then | |
9000 | { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; } | |
9001 | else | |
a3df447d | 9002 | echo "configure: warning: system regex library not found, will use built-in instead" 1>&2 |
4f14bcd8 GD |
9003 | wxUSE_REGEX=builtin |
9004 | fi | |
9005 | else | |
9006 | wxUSE_REGEX=sys | |
18dbb1f6 | 9007 | fi |
18dbb1f6 VZ |
9008 | fi |
9009 | ||
4f14bcd8 GD |
9010 | if test "$wxUSE_REGEX" = "builtin" ; then |
9011 | REGEX_INCLUDE="-I\${top_srcdir}/src/regex" | |
9012 | fi | |
18dbb1f6 VZ |
9013 | fi |
9014 | ||
9015 | ||
4f14bcd8 GD |
9016 | ZLIB_INCLUDE= |
9017 | ZLIB_LINK= | |
9018 | if test "$wxUSE_ZLIB" != "no" ; then | |
9019 | cat >> confdefs.h <<\EOF | |
9020 | #define wxUSE_ZLIB 1 | |
9021 | EOF | |
dad6c0ea | 9022 | |
10f2d63a | 9023 | |
4f14bcd8 GD |
9024 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then |
9025 | ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'` | |
9026 | echo $ac_n "checking for zlib.h""... $ac_c" 1>&6 | |
978f1259 | 9027 | echo "configure:9028: checking for zlib.h" >&5 |
3a922bb4 RL |
9028 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9029 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9030 | else | |
9031 | cat > conftest.$ac_ext <<EOF | |
978f1259 | 9032 | #line 9033 "configure" |
3a922bb4 | 9033 | #include "confdefs.h" |
4f14bcd8 | 9034 | #include <zlib.h> |
3a922bb4 RL |
9035 | EOF |
9036 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
978f1259 | 9037 | { (eval echo configure:9038: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3a922bb4 RL |
9038 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9039 | if test -z "$ac_err"; then | |
9040 | rm -rf conftest* | |
9041 | eval "ac_cv_header_$ac_safe=yes" | |
9042 | else | |
9043 | echo "$ac_err" >&5 | |
9044 | echo "configure: failed program was:" >&5 | |
9045 | cat conftest.$ac_ext >&5 | |
9046 | rm -rf conftest* | |
9047 | eval "ac_cv_header_$ac_safe=no" | |
9048 | fi | |
9049 | rm -f conftest* | |
9050 | fi | |
9051 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9052 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 9053 | echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6 |
978f1259 | 9054 | echo "configure:9055: checking for deflate in -lz" >&5 |
4f14bcd8 GD |
9055 | ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'` |
9056 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9057 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9058 | else | |
9059 | ac_save_LIBS="$LIBS" | |
9060 | LIBS="-lz $LIBS" | |
9061 | cat > conftest.$ac_ext <<EOF | |
978f1259 | 9062 | #line 9063 "configure" |
4f14bcd8 GD |
9063 | #include "confdefs.h" |
9064 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9065 | /* We use char because int might match the return type of a gcc2 | |
9066 | builtin and then its argument prototype would still apply. */ | |
9067 | char deflate(); | |
9068 | ||
9069 | int main() { | |
9070 | deflate() | |
9071 | ; return 0; } | |
3a922bb4 | 9072 | EOF |
978f1259 | 9073 | if { (eval echo configure:9074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
9074 | rm -rf conftest* |
9075 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9076 | else | |
9077 | echo "configure: failed program was:" >&5 | |
9078 | cat conftest.$ac_ext >&5 | |
9079 | rm -rf conftest* | |
9080 | eval "ac_cv_lib_$ac_lib_var=no" | |
9081 | fi | |
9082 | rm -f conftest* | |
9083 | LIBS="$ac_save_LIBS" | |
9084 | ||
9085 | fi | |
9086 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9087 | echo "$ac_t""yes" 1>&6 | |
3d63bc3a | 9088 | ZLIB_LINK=" -lz" |
3a922bb4 RL |
9089 | else |
9090 | echo "$ac_t""no" 1>&6 | |
9091 | fi | |
10f2d63a | 9092 | |
4f14bcd8 GD |
9093 | else |
9094 | echo "$ac_t""no" 1>&6 | |
9095 | fi | |
9096 | ||
9097 | ||
9098 | if test "x$ZLIB_LINK" = "x" ; then | |
9099 | if test "$wxUSE_ZLIB" = "sys" ; then | |
9100 | { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; } | |
9101 | else | |
a3df447d | 9102 | echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2 |
4f14bcd8 GD |
9103 | wxUSE_ZLIB=builtin |
9104 | fi | |
9105 | else | |
9106 | wxUSE_ZLIB=sys | |
9107 | fi | |
9108 | fi | |
9109 | ||
9110 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
9111 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
9112 | fi | |
9113 | fi | |
9114 | ||
9115 | ||
9116 | PNG_INCLUDE= | |
9117 | PNG_LINK= | |
9118 | if test "$wxUSE_LIBPNG" != "no" ; then | |
9119 | cat >> confdefs.h <<\EOF | |
9120 | #define wxUSE_LIBPNG 1 | |
9121 | EOF | |
9122 | ||
9123 | ||
9124 | if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then | |
a3df447d | 9125 | echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2 |
4f14bcd8 GD |
9126 | wxUSE_LIBPNG=builtin |
9127 | fi | |
9128 | ||
9129 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
9130 | ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` | |
9131 | echo $ac_n "checking for png.h""... $ac_c" 1>&6 | |
978f1259 | 9132 | echo "configure:9133: checking for png.h" >&5 |
d4158b5d VS |
9133 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9134 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9135 | else | |
9136 | cat > conftest.$ac_ext <<EOF | |
978f1259 | 9137 | #line 9138 "configure" |
d4158b5d | 9138 | #include "confdefs.h" |
4f14bcd8 | 9139 | #include <png.h> |
d4158b5d VS |
9140 | EOF |
9141 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
978f1259 | 9142 | { (eval echo configure:9143: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
d4158b5d VS |
9143 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9144 | if test -z "$ac_err"; then | |
9145 | rm -rf conftest* | |
9146 | eval "ac_cv_header_$ac_safe=yes" | |
9147 | else | |
9148 | echo "$ac_err" >&5 | |
9149 | echo "configure: failed program was:" >&5 | |
9150 | cat conftest.$ac_ext >&5 | |
9151 | rm -rf conftest* | |
9152 | eval "ac_cv_header_$ac_safe=no" | |
9153 | fi | |
9154 | rm -f conftest* | |
9155 | fi | |
9156 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9157 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 9158 | echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6 |
978f1259 | 9159 | echo "configure:9160: checking for png_check_sig in -lpng" >&5 |
4f14bcd8 GD |
9160 | ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'` |
9161 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
3a922bb4 RL |
9162 | echo $ac_n "(cached) $ac_c" 1>&6 |
9163 | else | |
4f14bcd8 GD |
9164 | ac_save_LIBS="$LIBS" |
9165 | LIBS="-lpng -lz -lm $LIBS" | |
9166 | cat > conftest.$ac_ext <<EOF | |
978f1259 | 9167 | #line 9168 "configure" |
3a922bb4 | 9168 | #include "confdefs.h" |
4f14bcd8 GD |
9169 | /* Override any gcc2 internal prototype to avoid an error. */ |
9170 | /* We use char because int might match the return type of a gcc2 | |
9171 | builtin and then its argument prototype would still apply. */ | |
9172 | char png_check_sig(); | |
f6bcfd97 | 9173 | |
4f14bcd8 GD |
9174 | int main() { |
9175 | png_check_sig() | |
3a922bb4 RL |
9176 | ; return 0; } |
9177 | EOF | |
978f1259 | 9178 | if { (eval echo configure:9179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3a922bb4 | 9179 | rm -rf conftest* |
4f14bcd8 | 9180 | eval "ac_cv_lib_$ac_lib_var=yes" |
3a922bb4 RL |
9181 | else |
9182 | echo "configure: failed program was:" >&5 | |
9183 | cat conftest.$ac_ext >&5 | |
9184 | rm -rf conftest* | |
4f14bcd8 | 9185 | eval "ac_cv_lib_$ac_lib_var=no" |
3a922bb4 RL |
9186 | fi |
9187 | rm -f conftest* | |
4f14bcd8 | 9188 | LIBS="$ac_save_LIBS" |
10f2d63a | 9189 | |
4f14bcd8 GD |
9190 | fi |
9191 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9192 | echo "$ac_t""yes" 1>&6 | |
3d63bc3a | 9193 | PNG_LINK=" -lpng" |
4f14bcd8 GD |
9194 | else |
9195 | echo "$ac_t""no" 1>&6 | |
9196 | fi | |
32832908 | 9197 | |
4f14bcd8 GD |
9198 | |
9199 | else | |
9200 | echo "$ac_t""no" 1>&6 | |
9201 | fi | |
3a922bb4 | 9202 | |
7b7a7637 | 9203 | |
4f14bcd8 GD |
9204 | if test "x$PNG_LINK" = "x" ; then |
9205 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
9206 | { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; } | |
9207 | else | |
a3df447d | 9208 | echo "configure: warning: system png library not found, will use built-in instead" 1>&2 |
4f14bcd8 GD |
9209 | wxUSE_LIBPNG=builtin |
9210 | fi | |
9211 | else | |
9212 | wxUSE_LIBPNG=yes | |
9213 | fi | |
3a922bb4 RL |
9214 | fi |
9215 | ||
4f14bcd8 GD |
9216 | if test "$wxUSE_LIBPNG" = "builtin" ; then |
9217 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
3a922bb4 RL |
9218 | fi |
9219 | ||
4f14bcd8 | 9220 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" |
3a922bb4 RL |
9221 | fi |
9222 | ||
32832908 | 9223 | |
4f14bcd8 GD |
9224 | JPEG_INCLUDE= |
9225 | JPEG_LINK= | |
9226 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
9227 | cat >> confdefs.h <<\EOF | |
9228 | #define wxUSE_LIBJPEG 1 | |
9229 | EOF | |
10f2d63a | 9230 | |
8168de4c | 9231 | |
4f14bcd8 GD |
9232 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then |
9233 | echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 | |
978f1259 | 9234 | echo "configure:9235: checking for jpeglib.h" >&5 |
4f14bcd8 | 9235 | if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then |
8168de4c VZ |
9236 | echo $ac_n "(cached) $ac_c" 1>&6 |
9237 | else | |
4f14bcd8 | 9238 | cat > conftest.$ac_ext <<EOF |
978f1259 | 9239 | #line 9240 "configure" |
4f14bcd8 | 9240 | #include "confdefs.h" |
8168de4c | 9241 | |
4f14bcd8 GD |
9242 | #undef HAVE_STDLIB_H |
9243 | #include <stdio.h> | |
9244 | #include <jpeglib.h> | |
9245 | ||
9246 | int main() { | |
9247 | ||
9248 | ||
9249 | ; return 0; } | |
9250 | EOF | |
978f1259 | 9251 | if { (eval echo configure:9252: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
9252 | rm -rf conftest* |
9253 | ac_cv_header_jpeglib_h=yes | |
6f72b082 | 9254 | else |
4f14bcd8 GD |
9255 | echo "configure: failed program was:" >&5 |
9256 | cat conftest.$ac_ext >&5 | |
9257 | rm -rf conftest* | |
9258 | ac_cv_header_jpeglib_h=no | |
9259 | ||
9260 | fi | |
9261 | rm -f conftest* | |
9262 | ||
698dcdb6 | 9263 | fi |
6f72b082 | 9264 | |
4f14bcd8 GD |
9265 | echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6 |
9266 | ||
9267 | if test "$ac_cv_header_jpeglib_h" = "yes"; then | |
9268 | echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6 | |
978f1259 | 9269 | echo "configure:9270: checking for jpeg_read_header in -ljpeg" >&5 |
4f14bcd8 GD |
9270 | ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'` |
9271 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9272 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6f72b082 | 9273 | else |
4f14bcd8 GD |
9274 | ac_save_LIBS="$LIBS" |
9275 | LIBS="-ljpeg $LIBS" | |
9276 | cat > conftest.$ac_ext <<EOF | |
978f1259 | 9277 | #line 9278 "configure" |
4f14bcd8 GD |
9278 | #include "confdefs.h" |
9279 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9280 | /* We use char because int might match the return type of a gcc2 | |
9281 | builtin and then its argument prototype would still apply. */ | |
9282 | char jpeg_read_header(); | |
698dcdb6 | 9283 | |
4f14bcd8 GD |
9284 | int main() { |
9285 | jpeg_read_header() | |
9286 | ; return 0; } | |
9287 | EOF | |
978f1259 | 9288 | if { (eval echo configure:9289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
9289 | rm -rf conftest* |
9290 | eval "ac_cv_lib_$ac_lib_var=yes" | |
6f72b082 | 9291 | else |
4f14bcd8 GD |
9292 | echo "configure: failed program was:" >&5 |
9293 | cat conftest.$ac_ext >&5 | |
9294 | rm -rf conftest* | |
9295 | eval "ac_cv_lib_$ac_lib_var=no" | |
698dcdb6 | 9296 | fi |
4f14bcd8 GD |
9297 | rm -f conftest* |
9298 | LIBS="$ac_save_LIBS" | |
698dcdb6 | 9299 | |
4f14bcd8 GD |
9300 | fi |
9301 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9302 | echo "$ac_t""yes" 1>&6 | |
3d63bc3a | 9303 | JPEG_LINK=" -ljpeg" |
4f14bcd8 GD |
9304 | else |
9305 | echo "$ac_t""no" 1>&6 | |
9306 | fi | |
9307 | ||
9308 | fi | |
9309 | ||
9310 | if test "x$JPEG_LINK" = "x" ; then | |
9311 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
9312 | { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; } | |
9313 | else | |
a3df447d | 9314 | echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2 |
4f14bcd8 GD |
9315 | wxUSE_LIBJPEG=builtin |
9316 | fi | |
9317 | else | |
9318 | wxUSE_LIBJPEG=sys | |
9319 | fi | |
9320 | fi | |
9321 | ||
9322 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
9323 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
9324 | fi | |
9325 | fi | |
9326 | ||
9327 | ||
9328 | TIFF_INCLUDE= | |
9329 | TIFF_LINK= | |
9330 | if test "$wxUSE_LIBTIFF" != "no" ; then | |
9331 | cat >> confdefs.h <<\EOF | |
9332 | #define wxUSE_LIBTIFF 1 | |
9333 | EOF | |
9334 | ||
9335 | ||
9336 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then | |
9337 | ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` | |
9338 | echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | |
978f1259 | 9339 | echo "configure:9340: checking for tiffio.h" >&5 |
4f14bcd8 GD |
9340 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9341 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9342 | else | |
9343 | cat > conftest.$ac_ext <<EOF | |
978f1259 | 9344 | #line 9345 "configure" |
4f14bcd8 GD |
9345 | #include "confdefs.h" |
9346 | #include <tiffio.h> | |
9347 | EOF | |
9348 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
978f1259 | 9349 | { (eval echo configure:9350: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
9350 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9351 | if test -z "$ac_err"; then | |
9352 | rm -rf conftest* | |
9353 | eval "ac_cv_header_$ac_safe=yes" | |
9354 | else | |
9355 | echo "$ac_err" >&5 | |
9356 | echo "configure: failed program was:" >&5 | |
9357 | cat conftest.$ac_ext >&5 | |
9358 | rm -rf conftest* | |
9359 | eval "ac_cv_header_$ac_safe=no" | |
9360 | fi | |
9361 | rm -f conftest* | |
9362 | fi | |
9363 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9364 | echo "$ac_t""yes" 1>&6 | |
9365 | echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6 | |
978f1259 | 9366 | echo "configure:9367: checking for TIFFError in -ltiff" >&5 |
4f14bcd8 GD |
9367 | ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'` |
9368 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9369 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9370 | else | |
9371 | ac_save_LIBS="$LIBS" | |
9372 | LIBS="-ltiff -lm $LIBS" | |
9373 | cat > conftest.$ac_ext <<EOF | |
978f1259 | 9374 | #line 9375 "configure" |
4f14bcd8 GD |
9375 | #include "confdefs.h" |
9376 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9377 | /* We use char because int might match the return type of a gcc2 | |
9378 | builtin and then its argument prototype would still apply. */ | |
9379 | char TIFFError(); | |
9380 | ||
9381 | int main() { | |
9382 | TIFFError() | |
9383 | ; return 0; } | |
9384 | EOF | |
978f1259 | 9385 | if { (eval echo configure:9386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
9386 | rm -rf conftest* |
9387 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9388 | else | |
9389 | echo "configure: failed program was:" >&5 | |
9390 | cat conftest.$ac_ext >&5 | |
9391 | rm -rf conftest* | |
9392 | eval "ac_cv_lib_$ac_lib_var=no" | |
9393 | fi | |
9394 | rm -f conftest* | |
9395 | LIBS="$ac_save_LIBS" | |
9396 | ||
9397 | fi | |
9398 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9399 | echo "$ac_t""yes" 1>&6 | |
3d63bc3a | 9400 | TIFF_LINK=" -ltiff" |
4f14bcd8 GD |
9401 | else |
9402 | echo "$ac_t""no" 1>&6 | |
9403 | fi | |
9404 | ||
9405 | ||
9406 | else | |
9407 | echo "$ac_t""no" 1>&6 | |
9408 | fi | |
9409 | ||
9410 | ||
9411 | if test "x$TIFF_LINK" = "x" ; then | |
9412 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
9413 | { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; } | |
9414 | else | |
a3df447d | 9415 | echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2 |
4f14bcd8 GD |
9416 | wxUSE_LIBTIFF=builtin |
9417 | fi | |
9418 | else | |
9419 | wxUSE_LIBTIFF=sys | |
9420 | fi | |
9421 | fi | |
9422 | ||
9423 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
9424 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" | |
9425 | fi | |
9426 | fi | |
9427 | ||
9428 | ||
9429 | FREETYPE_INCLUDE= | |
9430 | FREETYPE_LINK= | |
9431 | if test "$wxUSE_FREETYPE" != "no" ; then | |
9432 | cat >> confdefs.h <<\EOF | |
9433 | #define wxUSE_FREETYPE 1 | |
9434 | EOF | |
9435 | ||
9436 | ||
9437 | if test "$wxUSE_FREETYPE" = "sys" -o "$wxUSE_FREETYPE" = "yes" ; then | |
9438 | ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'` | |
9439 | echo $ac_n "checking for freetype.h""... $ac_c" 1>&6 | |
978f1259 | 9440 | echo "configure:9441: checking for freetype.h" >&5 |
4f14bcd8 GD |
9441 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9442 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9443 | else | |
9444 | cat > conftest.$ac_ext <<EOF | |
978f1259 | 9445 | #line 9446 "configure" |
4f14bcd8 GD |
9446 | #include "confdefs.h" |
9447 | #include <freetype.h> | |
9448 | EOF | |
9449 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
978f1259 | 9450 | { (eval echo configure:9451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
9451 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9452 | if test -z "$ac_err"; then | |
9453 | rm -rf conftest* | |
9454 | eval "ac_cv_header_$ac_safe=yes" | |
9455 | else | |
9456 | echo "$ac_err" >&5 | |
9457 | echo "configure: failed program was:" >&5 | |
9458 | cat conftest.$ac_ext >&5 | |
9459 | rm -rf conftest* | |
9460 | eval "ac_cv_header_$ac_safe=no" | |
9461 | fi | |
9462 | rm -f conftest* | |
9463 | fi | |
9464 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9465 | echo "$ac_t""yes" 1>&6 | |
9466 | echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6 | |
978f1259 | 9467 | echo "configure:9468: checking for FT_Render_Glyph in -lfreetype" >&5 |
4f14bcd8 GD |
9468 | ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'` |
9469 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9470 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9471 | else | |
9472 | ac_save_LIBS="$LIBS" | |
9473 | LIBS="-lfreetype -lm $LIBS" | |
9474 | cat > conftest.$ac_ext <<EOF | |
978f1259 | 9475 | #line 9476 "configure" |
4f14bcd8 GD |
9476 | #include "confdefs.h" |
9477 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9478 | /* We use char because int might match the return type of a gcc2 | |
9479 | builtin and then its argument prototype would still apply. */ | |
9480 | char FT_Render_Glyph(); | |
9481 | ||
9482 | int main() { | |
9483 | FT_Render_Glyph() | |
9484 | ; return 0; } | |
9485 | EOF | |
978f1259 | 9486 | if { (eval echo configure:9487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
9487 | rm -rf conftest* |
9488 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9489 | else | |
9490 | echo "configure: failed program was:" >&5 | |
9491 | cat conftest.$ac_ext >&5 | |
9492 | rm -rf conftest* | |
9493 | eval "ac_cv_lib_$ac_lib_var=no" | |
9494 | fi | |
9495 | rm -f conftest* | |
9496 | LIBS="$ac_save_LIBS" | |
9497 | ||
9498 | fi | |
9499 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9500 | echo "$ac_t""yes" 1>&6 | |
3d63bc3a | 9501 | FREETYPE_LINK=" -lfreetype" |
4f14bcd8 GD |
9502 | else |
9503 | echo "$ac_t""no" 1>&6 | |
9504 | fi | |
9505 | ||
9506 | ||
9507 | else | |
9508 | echo "$ac_t""no" 1>&6 | |
9509 | fi | |
9510 | ||
9511 | ||
9512 | if test "x$FREETYPE_LINK" = "x" ; then | |
9513 | if test "$wxUSE_FREETYPE" = "sys" ; then | |
9514 | { echo "configure: error: system freetype library not found! Use --with-freetype=builtin to use built-in version" 1>&2; exit 1; } | |
9515 | else | |
a3df447d | 9516 | echo "configure: warning: system freetype library not found, will use built-in instead" 1>&2 |
4f14bcd8 GD |
9517 | wxUSE_FREETYPE=builtin |
9518 | fi | |
9519 | else | |
9520 | wxUSE_FREETYPE=sys | |
9521 | fi | |
9522 | fi | |
9523 | ||
9524 | if test "$wxUSE_FREETYPE" = "builtin" ; then | |
9525 | FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype" | |
9526 | fi | |
9527 | fi | |
9528 | ||
9529 | ||
9530 | AFMINSTALL= | |
9531 | ||
9532 | TOOLKIT= | |
9533 | TOOLKIT_INCLUDE= | |
9534 | WIDGET_SET= | |
9535 | ||
9536 | if test "$USE_WIN32" = 1 ; then | |
9537 | for ac_hdr in w32api.h | |
9538 | do | |
9539 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9540 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
978f1259 | 9541 | echo "configure:9542: checking for $ac_hdr" >&5 |
4f14bcd8 GD |
9542 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9543 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9544 | else | |
9545 | cat > conftest.$ac_ext <<EOF | |
978f1259 | 9546 | #line 9547 "configure" |
4f14bcd8 GD |
9547 | #include "confdefs.h" |
9548 | #include <$ac_hdr> | |
9549 | EOF | |
9550 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
978f1259 | 9551 | { (eval echo configure:9552: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
9552 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9553 | if test -z "$ac_err"; then | |
9554 | rm -rf conftest* | |
9555 | eval "ac_cv_header_$ac_safe=yes" | |
9556 | else | |
9557 | echo "$ac_err" >&5 | |
9558 | echo "configure: failed program was:" >&5 | |
9559 | cat conftest.$ac_ext >&5 | |
9560 | rm -rf conftest* | |
9561 | eval "ac_cv_header_$ac_safe=no" | |
9562 | fi | |
9563 | rm -f conftest* | |
9564 | fi | |
9565 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9566 | echo "$ac_t""yes" 1>&6 | |
9567 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9568 | cat >> confdefs.h <<EOF | |
9569 | #define $ac_tr_hdr 1 | |
9570 | EOF | |
9571 | ||
9572 | else | |
9573 | echo "$ac_t""no" 1>&6 | |
9574 | fi | |
9575 | done | |
9576 | ||
9577 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` | |
9578 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
978f1259 | 9579 | echo "configure:9580: checking for windows.h" >&5 |
4f14bcd8 GD |
9580 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9581 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9582 | else | |
9583 | cat > conftest.$ac_ext <<EOF | |
978f1259 | 9584 | #line 9585 "configure" |
4f14bcd8 GD |
9585 | #include "confdefs.h" |
9586 | #include <windows.h> | |
9587 | EOF | |
9588 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
978f1259 | 9589 | { (eval echo configure:9590: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
9590 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9591 | if test -z "$ac_err"; then | |
9592 | rm -rf conftest* | |
9593 | eval "ac_cv_header_$ac_safe=yes" | |
9594 | else | |
9595 | echo "$ac_err" >&5 | |
9596 | echo "configure: failed program was:" >&5 | |
9597 | cat conftest.$ac_ext >&5 | |
9598 | rm -rf conftest* | |
9599 | eval "ac_cv_header_$ac_safe=no" | |
9600 | fi | |
9601 | rm -f conftest* | |
9602 | fi | |
9603 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9604 | echo "$ac_t""yes" 1>&6 | |
9605 | : | |
9606 | else | |
9607 | echo "$ac_t""no" 1>&6 | |
9608 | ||
9609 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
9610 | ||
9611 | fi | |
9612 | ||
9613 | ||
9614 | echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6 | |
978f1259 | 9615 | echo "configure:9616: checking if w32api has good enough MSIE support" >&5 |
ea7682f0 | 9616 | if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then |
4f14bcd8 GD |
9617 | echo $ac_n "(cached) $ac_c" 1>&6 |
9618 | else | |
9619 | ||
9620 | cat > conftest.$ac_ext <<EOF | |
978f1259 | 9621 | #line 9622 "configure" |
4f14bcd8 GD |
9622 | #include "confdefs.h" |
9623 | #include <w32api.h> | |
9624 | int main() { | |
9625 | ||
9626 | #define wxCHECK_W32API_VERSION( major, minor ) \ | |
9627 | ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \ | |
9628 | && ( ( __W32API_MAJOR_VERSION > (major) ) \ | |
9629 | || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor)))) | |
9630 | ||
9631 | #if !wxCHECK_W32API_VERSION(1,1) | |
9632 | #error You need w32api 1.1 or newer | |
9633 | #endif | |
9634 | ||
9635 | ; return 0; } | |
9636 | EOF | |
978f1259 | 9637 | if { (eval echo configure:9638: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
9638 | rm -rf conftest* |
9639 | ||
ea7682f0 | 9640 | wx_cv_w32api_win32_ie=yes |
4f14bcd8 GD |
9641 | |
9642 | else | |
9643 | echo "configure: failed program was:" >&5 | |
9644 | cat conftest.$ac_ext >&5 | |
9645 | rm -rf conftest* | |
9646 | ||
ea7682f0 | 9647 | wx_cv_w32api_win32_ie=no |
4f14bcd8 GD |
9648 | |
9649 | fi | |
9650 | rm -f conftest* | |
9651 | ||
9652 | fi | |
9653 | ||
ea7682f0 VS |
9654 | echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6 |
9655 | if test "$wx_cv_w32api_win32_ie" = "yes" ; then | |
9656 | CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400" | |
9657 | fi | |
4f14bcd8 GD |
9658 | |
9659 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32" | |
9660 | ||
77e13408 RL |
9661 | case "${host}" in |
9662 | *-*-cygwin* ) | |
9663 | LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32" | |
9664 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" | |
9665 | esac | |
4f14bcd8 GD |
9666 | |
9667 | if test "$wxUSE_ODBC" = "yes" ; then | |
3d63bc3a | 9668 | LIBS=" -lodbc32 -lole32 -loleaut32$LIBS" |
4f14bcd8 GD |
9669 | fi |
9670 | ||
4f14bcd8 GD |
9671 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
9672 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
9673 | fi | |
9674 | ||
9675 | if test "$wxUSE_GUI" = "yes"; then | |
9676 | USE_GUI=1 | |
9677 | ||
9678 | GUI_TK_LIBRARY= | |
9679 | ||
9680 | WXGTK12= | |
9681 | WXGTK127= | |
9682 | WXGTK20= | |
9683 | ||
77e13408 | 9684 | if test "$wxUSE_MSW" = 1 ; then |
4f14bcd8 GD |
9685 | TOOLKIT=MSW |
9686 | GUIDIST=MSW_DIST | |
77e13408 RL |
9687 | |
9688 | case "${host}" in | |
9689 | *-*-mingw32* ) | |
3d63bc3a | 9690 | LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows" |
77e13408 | 9691 | esac |
4f14bcd8 GD |
9692 | fi |
9693 | ||
9694 | if test "$wxUSE_GTK" = 1; then | |
9695 | echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6 | |
978f1259 | 9696 | echo "configure:9697: checking for GTK+ version" >&5 |
4f14bcd8 GD |
9697 | |
9698 | gtk_version_cached=1 | |
9699 | if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then | |
9700 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9701 | else | |
9702 | ||
9703 | gtk_version_cached=0 | |
d48ad9bd | 9704 | echo "$ac_t""" 1>&6 |
4f14bcd8 GD |
9705 | |
9706 | wx_cv_lib_gtk= | |
9707 | if test "x$wxUSE_GTK2" = "xyes"; then | |
9708 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
9709 | if test "${with_gtk_prefix+set}" = set; then | |
9710 | withval="$with_gtk_prefix" | |
9711 | gtk_config_prefix="$withval" | |
9712 | else | |
9713 | gtk_config_prefix="" | |
9714 | fi | |
9715 | ||
9716 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
9717 | if test "${with_gtk_exec_prefix+set}" = set; then | |
9718 | withval="$with_gtk_exec_prefix" | |
9719 | gtk_config_exec_prefix="$withval" | |
9720 | else | |
9721 | gtk_config_exec_prefix="" | |
9722 | fi | |
9723 | ||
9724 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
9725 | if test "${enable_gtktest+set}" = set; then | |
9726 | enableval="$enable_gtktest" | |
9727 | : | |
9728 | else | |
9729 | enable_gtktest=yes | |
9730 | fi | |
9731 | ||
9732 | ||
9733 | for module in . | |
9734 | do | |
6f72b082 | 9735 | case "$module" in |
8168de4c | 9736 | gthread) |
6f72b082 OK |
9737 | gtk_config_args="$gtk_config_args gthread" |
9738 | ;; | |
9739 | esac | |
9740 | done | |
9741 | ||
9742 | if test x$gtk_config_exec_prefix != x ; then | |
9743 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
9744 | if test x${GTK_CONFIG_2_0+set} != xset ; then | |
9745 | GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0 | |
9746 | fi | |
9747 | fi | |
9748 | if test x$gtk_config_prefix != x ; then | |
9749 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
9750 | if test x${GTK_CONFIG_2_0+set} != xset ; then | |
9751 | GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0 | |
9752 | fi | |
9753 | fi | |
9754 | ||
9755 | # Extract the first word of "gtk-config-2.0", so it can be a program name with args. | |
9756 | set dummy gtk-config-2.0; ac_word=$2 | |
698dcdb6 | 9757 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
978f1259 | 9758 | echo "configure:9759: checking for $ac_word" >&5 |
698dcdb6 VZ |
9759 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then |
9760 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6f72b082 | 9761 | else |
698dcdb6 VZ |
9762 | case "$GTK_CONFIG_2_0" in |
9763 | /*) | |
6f72b082 OK |
9764 | ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path. |
9765 | ;; | |
698dcdb6 VZ |
9766 | ?:/*) |
9767 | ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path. | |
9768 | ;; | |
6f72b082 | 9769 | *) |
698dcdb6 VZ |
9770 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9771 | ac_dummy="$PATH" | |
9772 | for ac_dir in $ac_dummy; do | |
9773 | test -z "$ac_dir" && ac_dir=. | |
9774 | if test -f $ac_dir/$ac_word; then | |
9775 | ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word" | |
9776 | break | |
9777 | fi | |
9778 | done | |
9779 | IFS="$ac_save_ifs" | |
6f72b082 OK |
9780 | test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no" |
9781 | ;; | |
9782 | esac | |
9783 | fi | |
698dcdb6 | 9784 | GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0" |
6f72b082 | 9785 | if test -n "$GTK_CONFIG_2_0"; then |
698dcdb6 | 9786 | echo "$ac_t""$GTK_CONFIG_2_0" 1>&6 |
6f72b082 | 9787 | else |
698dcdb6 | 9788 | echo "$ac_t""no" 1>&6 |
6f72b082 OK |
9789 | fi |
9790 | ||
9791 | min_gtk_version=1.3.1 | |
698dcdb6 | 9792 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
978f1259 | 9793 | echo "configure:9794: checking for GTK - version >= $min_gtk_version" >&5 |
6f72b082 OK |
9794 | no_gtk="" |
9795 | if test "$GTK_CONFIG_2_0" = "no" ; then | |
9796 | no_gtk=yes | |
9797 | else | |
9798 | GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags` | |
9799 | GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs` | |
9800 | gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
9801 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
9802 | gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
9803 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
9804 | gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
9805 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
9806 | if test "x$enable_gtktest" = "xyes" ; then | |
9807 | ac_save_CFLAGS="$CFLAGS" | |
9808 | ac_save_LIBS="$LIBS" | |
9809 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
9810 | LIBS="$GTK_LIBS $LIBS" | |
9811 | rm -f conf.gtktest | |
9812 | if test "$cross_compiling" = yes; then | |
9813 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
9814 | else | |
698dcdb6 | 9815 | cat > conftest.$ac_ext <<EOF |
978f1259 | 9816 | #line 9817 "configure" |
6f72b082 OK |
9817 | #include "confdefs.h" |
9818 | ||
9819 | #include <gtk/gtk.h> | |
9820 | #include <stdio.h> | |
9821 | #include <stdlib.h> | |
9822 | ||
8168de4c | 9823 | int |
6f72b082 OK |
9824 | main () |
9825 | { | |
9826 | int major, minor, micro; | |
9827 | char *tmp_version; | |
9828 | ||
9829 | system ("touch conf.gtktest"); | |
9830 | ||
9831 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
9832 | tmp_version = g_strdup("$min_gtk_version"); | |
9833 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
9834 | printf("%s, bad version string\n", "$min_gtk_version"); | |
9835 | exit(1); | |
9836 | } | |
9837 | ||
9838 | if ((gtk_major_version != $gtk_config_major_version) || | |
9839 | (gtk_minor_version != $gtk_config_minor_version) || | |
9840 | (gtk_micro_version != $gtk_config_micro_version)) | |
9841 | { | |
8168de4c | 9842 | printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
6f72b082 OK |
9843 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
9844 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
9845 | printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n"); | |
9846 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
9847 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
9848 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
9849 | printf("*** required on your system.\n"); | |
9850 | printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n"); | |
9851 | printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n"); | |
9852 | printf("*** before re-running configure\n"); | |
8168de4c | 9853 | } |
6f72b082 OK |
9854 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
9855 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
8168de4c | 9856 | (gtk_minor_version != GTK_MINOR_VERSION) || |
6f72b082 OK |
9857 | (gtk_micro_version != GTK_MICRO_VERSION)) |
9858 | { | |
9859 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
8168de4c | 9860 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); |
6f72b082 | 9861 | printf("*** library (version %d.%d.%d)\n", |
8168de4c | 9862 | gtk_major_version, gtk_minor_version, gtk_micro_version); |
6f72b082 OK |
9863 | } |
9864 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
9865 | else | |
9866 | { | |
9867 | if ((gtk_major_version > major) || | |
9868 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
9869 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
9870 | { | |
9871 | return 0; | |
9872 | } | |
9873 | else | |
9874 | { | |
9875 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
9876 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
9877 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
8168de4c | 9878 | major, minor, micro); |
6f72b082 OK |
9879 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); |
9880 | printf("***\n"); | |
9881 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
9882 | printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n"); | |
9883 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
9884 | printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n"); | |
9885 | printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n"); | |
9886 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
9887 | printf("*** so that the correct libraries are found at run-time))\n"); | |
9888 | } | |
9889 | } | |
9890 | return 1; | |
9891 | } | |
9892 | ||
698dcdb6 | 9893 | EOF |
978f1259 | 9894 | if { (eval echo configure:9895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 9895 | then |
6f72b082 OK |
9896 | : |
9897 | else | |
698dcdb6 VZ |
9898 | echo "configure: failed program was:" >&5 |
9899 | cat conftest.$ac_ext >&5 | |
9900 | rm -fr conftest* | |
9901 | no_gtk=yes | |
6f72b082 | 9902 | fi |
698dcdb6 | 9903 | rm -fr conftest* |
6f72b082 | 9904 | fi |
698dcdb6 | 9905 | |
6f72b082 OK |
9906 | CFLAGS="$ac_save_CFLAGS" |
9907 | LIBS="$ac_save_LIBS" | |
9908 | fi | |
9909 | fi | |
9910 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 9911 | echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6 |
8168de4c | 9912 | wx_cv_lib_gtk=2.0 |
6f72b082 | 9913 | else |
698dcdb6 | 9914 | echo "$ac_t""no" 1>&6 |
6f72b082 OK |
9915 | if test "$GTK_CONFIG_2_0" = "no" ; then |
9916 | echo "*** The gtk-config-2.0 script installed by GTK could not be found" | |
9917 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
9918 | echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the" | |
9919 | echo "*** full path to gtk-config-2.0." | |
9920 | else | |
9921 | if test -f conf.gtktest ; then | |
9922 | : | |
9923 | else | |
9924 | echo "*** Could not run GTK test program, checking why..." | |
9925 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
9926 | LIBS="$LIBS $GTK_LIBS" | |
698dcdb6 | 9927 | cat > conftest.$ac_ext <<EOF |
978f1259 | 9928 | #line 9929 "configure" |
6f72b082 OK |
9929 | #include "confdefs.h" |
9930 | ||
9931 | #include <gtk/gtk.h> | |
9932 | #include <stdio.h> | |
9933 | ||
698dcdb6 VZ |
9934 | int main() { |
9935 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
9936 | ; return 0; } | |
9937 | EOF | |
978f1259 | 9938 | if { (eval echo configure:9939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 9939 | rm -rf conftest* |
6f72b082 OK |
9940 | echo "*** The test program compiled, but did not run. This usually means" |
9941 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
9942 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
9943 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
9944 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
9945 | echo "*** is required on your system" | |
8168de4c | 9946 | echo "***" |
6f72b082 OK |
9947 | echo "*** If you have an old version installed, it is best to remove it, although" |
9948 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
9949 | echo "***" | |
9950 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
9951 | echo "*** came with the system with the command" | |
9952 | echo "***" | |
698dcdb6 | 9953 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
6f72b082 | 9954 | else |
698dcdb6 VZ |
9955 | echo "configure: failed program was:" >&5 |
9956 | cat conftest.$ac_ext >&5 | |
9957 | rm -rf conftest* | |
9958 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
6f72b082 OK |
9959 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
9960 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
698dcdb6 | 9961 | echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0" |
6f72b082 | 9962 | fi |
698dcdb6 | 9963 | rm -f conftest* |
6f72b082 OK |
9964 | CFLAGS="$ac_save_CFLAGS" |
9965 | LIBS="$ac_save_LIBS" | |
9966 | fi | |
9967 | fi | |
9968 | GTK_CFLAGS="" | |
9969 | GTK_LIBS="" | |
8168de4c VZ |
9970 | gthread |
9971 | fi | |
9972 | ||
9973 | ||
9974 | rm -f conf.gtktest | |
9975 | ||
9976 | fi | |
9977 | ||
9978 | if test -z "$wx_cv_lib_gtk"; then | |
9979 | ||
10f2d63a VZ |
9980 | if test x$gtk_config_exec_prefix != x ; then |
9981 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
9982 | if test x${GTK_CONFIG+set} != xset ; then | |
9983 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
9984 | fi | |
9985 | fi | |
9986 | if test x$gtk_config_prefix != x ; then | |
9987 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
9988 | if test x${GTK_CONFIG+set} != xset ; then | |
9989 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
9990 | fi | |
9991 | fi | |
9992 | ||
9993 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
9994 | set dummy gtk-config; ac_word=$2 | |
698dcdb6 | 9995 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
978f1259 | 9996 | echo "configure:9997: checking for $ac_word" >&5 |
698dcdb6 VZ |
9997 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
9998 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 9999 | else |
698dcdb6 VZ |
10000 | case "$GTK_CONFIG" in |
10001 | /*) | |
f6bcfd97 BP |
10002 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
10003 | ;; | |
698dcdb6 VZ |
10004 | ?:/*) |
10005 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
10006 | ;; | |
f6bcfd97 | 10007 | *) |
698dcdb6 VZ |
10008 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
10009 | ac_dummy="$PATH" | |
10010 | for ac_dir in $ac_dummy; do | |
10011 | test -z "$ac_dir" && ac_dir=. | |
10012 | if test -f $ac_dir/$ac_word; then | |
10013 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
10014 | break | |
10015 | fi | |
10016 | done | |
10017 | IFS="$ac_save_ifs" | |
f6bcfd97 BP |
10018 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
10019 | ;; | |
10020 | esac | |
10021 | fi | |
698dcdb6 | 10022 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
f6bcfd97 | 10023 | if test -n "$GTK_CONFIG"; then |
698dcdb6 | 10024 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
f6bcfd97 | 10025 | else |
698dcdb6 | 10026 | echo "$ac_t""no" 1>&6 |
f6bcfd97 BP |
10027 | fi |
10028 | ||
10029 | min_gtk_version=1.2.7 | |
698dcdb6 | 10030 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
978f1259 | 10031 | echo "configure:10032: checking for GTK - version >= $min_gtk_version" >&5 |
f6bcfd97 BP |
10032 | no_gtk="" |
10033 | if test "$GTK_CONFIG" != "no" ; then | |
10034 | GTK_CFLAGS=`$GTK_CONFIG --cflags` | |
10035 | GTK_LIBS=`$GTK_CONFIG --libs gthread` | |
10036 | ac_save_CFLAGS="$CFLAGS" | |
10037 | ac_save_LIBS="$LIBS" | |
10038 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
10039 | LIBS="$LIBS $GTK_LIBS" | |
10040 | if test "$cross_compiling" = yes; then | |
10041 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
10042 | else | |
698dcdb6 | 10043 | cat > conftest.$ac_ext <<EOF |
978f1259 | 10044 | #line 10045 "configure" |
f6bcfd97 BP |
10045 | #include "confdefs.h" |
10046 | ||
10047 | #include <gtk/gtk.h> | |
10048 | #include <gtk/gtkfeatures.h> | |
10049 | #include <stdio.h> | |
10050 | #include <stdlib.h> | |
10051 | ||
10052 | int | |
10053 | main () | |
10054 | { | |
10055 | int major, minor, micro; | |
10056 | ||
10057 | if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) { | |
10058 | printf("%s, bad version string\n", "$min_gtk_version"); | |
10059 | exit(1); | |
10060 | } | |
10061 | ||
10062 | if ((GTK_MAJOR_VERSION != gtk_major_version) || | |
10063 | (GTK_MINOR_VERSION != gtk_minor_version) || | |
10064 | (GTK_MICRO_VERSION != gtk_micro_version)) { | |
10065 | printf("Headers vs. library version mismatch!\n"); | |
10066 | exit(1); | |
10067 | } | |
10068 | ||
10069 | if (gtk_minor_version == 1) return FALSE; | |
10070 | ||
10071 | return !((gtk_major_version > major) || | |
10072 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
10073 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))); | |
10074 | } | |
10075 | ||
698dcdb6 | 10076 | EOF |
978f1259 | 10077 | if { (eval echo configure:10078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 10078 | then |
f6bcfd97 BP |
10079 | : |
10080 | else | |
698dcdb6 VZ |
10081 | echo "configure: failed program was:" >&5 |
10082 | cat conftest.$ac_ext >&5 | |
10083 | rm -fr conftest* | |
10084 | no_gtk=yes | |
f6bcfd97 | 10085 | fi |
698dcdb6 | 10086 | rm -fr conftest* |
f6bcfd97 | 10087 | fi |
698dcdb6 | 10088 | |
f6bcfd97 BP |
10089 | CFLAGS="$ac_save_CFLAGS" |
10090 | LIBS="$ac_save_LIBS" | |
10091 | else | |
10092 | no_gtk=yes | |
10093 | fi | |
10094 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 10095 | echo "$ac_t""yes" 1>&6 |
8168de4c | 10096 | wx_cv_lib_gtk=1.2.7 |
f6bcfd97 | 10097 | else |
698dcdb6 | 10098 | echo "$ac_t""no" 1>&6 |
f6bcfd97 BP |
10099 | GTK_CFLAGS="" |
10100 | GTK_LIBS="" | |
10101 | : | |
10102 | fi | |
698dcdb6 VZ |
10103 | |
10104 | ||
f6bcfd97 | 10105 | |
8168de4c VZ |
10106 | fi |
10107 | ||
10108 | if test -z "$wx_cv_lib_gtk"; then | |
10109 | ||
f6bcfd97 BP |
10110 | if test x$gtk_config_exec_prefix != x ; then |
10111 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
10112 | if test x${GTK_CONFIG+set} != xset ; then | |
10113 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
10114 | fi | |
10115 | fi | |
10116 | if test x$gtk_config_prefix != x ; then | |
10117 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
10118 | if test x${GTK_CONFIG+set} != xset ; then | |
10119 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
10120 | fi | |
10121 | fi | |
10122 | ||
10123 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
10124 | set dummy gtk-config; ac_word=$2 | |
698dcdb6 | 10125 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
978f1259 | 10126 | echo "configure:10127: checking for $ac_word" >&5 |
698dcdb6 VZ |
10127 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
10128 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 10129 | else |
698dcdb6 VZ |
10130 | case "$GTK_CONFIG" in |
10131 | /*) | |
10f2d63a VZ |
10132 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
10133 | ;; | |
698dcdb6 VZ |
10134 | ?:/*) |
10135 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
10136 | ;; | |
10f2d63a | 10137 | *) |
698dcdb6 VZ |
10138 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
10139 | ac_dummy="$PATH" | |
10140 | for ac_dir in $ac_dummy; do | |
10141 | test -z "$ac_dir" && ac_dir=. | |
10142 | if test -f $ac_dir/$ac_word; then | |
10143 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
10144 | break | |
10145 | fi | |
10146 | done | |
10147 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
10148 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
10149 | ;; | |
10150 | esac | |
10151 | fi | |
698dcdb6 | 10152 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
10f2d63a | 10153 | if test -n "$GTK_CONFIG"; then |
698dcdb6 | 10154 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
10f2d63a | 10155 | else |
698dcdb6 | 10156 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
10157 | fi |
10158 | ||
04165bec | 10159 | min_gtk_version=1.2.3 |
698dcdb6 | 10160 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
978f1259 | 10161 | echo "configure:10162: checking for GTK - version >= $min_gtk_version" >&5 |
10f2d63a VZ |
10162 | no_gtk="" |
10163 | if test "$GTK_CONFIG" != "no" ; then | |
10164 | GTK_CFLAGS=`$GTK_CONFIG --cflags` | |
2224580a | 10165 | GTK_LIBS=`$GTK_CONFIG --libs gthread` |
10f2d63a VZ |
10166 | ac_save_CFLAGS="$CFLAGS" |
10167 | ac_save_LIBS="$LIBS" | |
10168 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
10169 | LIBS="$LIBS $GTK_LIBS" | |
10170 | if test "$cross_compiling" = yes; then | |
10171 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
10172 | else | |
698dcdb6 | 10173 | cat > conftest.$ac_ext <<EOF |
978f1259 | 10174 | #line 10175 "configure" |
10f2d63a VZ |
10175 | #include "confdefs.h" |
10176 | ||
10177 | #include <gtk/gtk.h> | |
f49f2b0c | 10178 | #include <gtk/gtkfeatures.h> |
10f2d63a | 10179 | #include <stdio.h> |
32832908 | 10180 | #include <stdlib.h> |
10f2d63a VZ |
10181 | |
10182 | int | |
10183 | main () | |
10184 | { | |
10185 | int major, minor, micro; | |
10186 | ||
10187 | if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) { | |
10188 | printf("%s, bad version string\n", "$min_gtk_version"); | |
10189 | exit(1); | |
10190 | } | |
10191 | ||
f49f2b0c RR |
10192 | if ((GTK_MAJOR_VERSION != gtk_major_version) || |
10193 | (GTK_MINOR_VERSION != gtk_minor_version) || | |
10194 | (GTK_MICRO_VERSION != gtk_micro_version)) { | |
10195 | printf("Headers vs. library version mismatch!\n"); | |
10196 | exit(1); | |
10197 | } | |
10198 | ||
10f2d63a VZ |
10199 | if (gtk_minor_version == 1) return FALSE; |
10200 | ||
10201 | return !((gtk_major_version > major) || | |
10202 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
10203 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))); | |
10204 | } | |
10205 | ||
698dcdb6 | 10206 | EOF |
978f1259 | 10207 | if { (eval echo configure:10208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 10208 | then |
10f2d63a VZ |
10209 | : |
10210 | else | |
698dcdb6 VZ |
10211 | echo "configure: failed program was:" >&5 |
10212 | cat conftest.$ac_ext >&5 | |
10213 | rm -fr conftest* | |
10214 | no_gtk=yes | |
10f2d63a | 10215 | fi |
698dcdb6 | 10216 | rm -fr conftest* |
10f2d63a | 10217 | fi |
698dcdb6 | 10218 | |
10f2d63a VZ |
10219 | CFLAGS="$ac_save_CFLAGS" |
10220 | LIBS="$ac_save_LIBS" | |
10221 | else | |
10222 | no_gtk=yes | |
10223 | fi | |
10224 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 10225 | echo "$ac_t""yes" 1>&6 |
8168de4c | 10226 | wx_cv_lib_gtk=1.2.3 |
10f2d63a | 10227 | else |
698dcdb6 | 10228 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
10229 | GTK_CFLAGS="" |
10230 | GTK_LIBS="" | |
7e99ad86 | 10231 | : |
10f2d63a | 10232 | fi |
698dcdb6 VZ |
10233 | |
10234 | ||
10f2d63a | 10235 | |
8168de4c VZ |
10236 | fi |
10237 | ||
10238 | if test -z "$wx_cv_lib_gtk"; then | |
10239 | wx_cv_lib_gtk=none | |
138be253 VZ |
10240 | else |
10241 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
10242 | wx_cv_libs_gtk=$GTK_LIBS | |
8168de4c VZ |
10243 | fi |
10244 | ||
1e6feb95 | 10245 | |
8168de4c | 10246 | fi |
703e0a69 | 10247 | |
698dcdb6 | 10248 | |
8168de4c VZ |
10249 | if test "$gtk_version_cached" = 1; then |
10250 | echo "$ac_t""$wx_cv_lib_gtk" 1>&6 | |
1e6feb95 | 10251 | fi |
698dcdb6 | 10252 | |
8168de4c VZ |
10253 | case "$wx_cv_lib_gtk" in |
10254 | 2.0) WXGTK20=1 | |
10255 | ;; | |
10256 | 1.2.7) WXGTK127=1 | |
d1a8d972 | 10257 | WXGTK12=1 |
8168de4c VZ |
10258 | ;; |
10259 | 1.2.3) WXGTK12=1 | |
10260 | ;; | |
10261 | *) { echo "configure: error: | |
10262 | Please check that gtk-config is in path, the directory | |
10263 | where GTK+ libraries are installed (returned by | |
10264 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
10265 | equivalent variable and GTK+ is version 1.2.3 or above. | |
10266 | " 1>&2; exit 1; } | |
10267 | ;; | |
10268 | esac | |
2224580a | 10269 | |
138be253 | 10270 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" |
11dfaa5f | 10271 | GUI_TK_LIBRARY="$wx_cv_libs_gtk" |
698dcdb6 | 10272 | |
1e6feb95 VZ |
10273 | AFMINSTALL=afminstall |
10274 | TOOLKIT=GTK | |
10275 | GUIDIST=GTK_DIST | |
7ec2881a | 10276 | |
1e6feb95 | 10277 | echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6 |
978f1259 | 10278 | echo "configure:10279: checking for gdk_im_open in -lgdk" >&5 |
698dcdb6 VZ |
10279 | ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'` |
10280 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10281 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7ec2881a | 10282 | else |
698dcdb6 | 10283 | ac_save_LIBS="$LIBS" |
7ec2881a | 10284 | LIBS="-lgdk $LIBS" |
698dcdb6 | 10285 | cat > conftest.$ac_ext <<EOF |
978f1259 | 10286 | #line 10287 "configure" |
7ec2881a RR |
10287 | #include "confdefs.h" |
10288 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10289 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10290 | builtin and then its argument prototype would still apply. */ |
10291 | char gdk_im_open(); | |
10292 | ||
10293 | int main() { | |
10294 | gdk_im_open() | |
10295 | ; return 0; } | |
10296 | EOF | |
978f1259 | 10297 | if { (eval echo configure:10298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10298 | rm -rf conftest* |
10299 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10300 | else | |
10301 | echo "configure: failed program was:" >&5 | |
10302 | cat conftest.$ac_ext >&5 | |
10303 | rm -rf conftest* | |
10304 | eval "ac_cv_lib_$ac_lib_var=no" | |
10305 | fi | |
10306 | rm -f conftest* | |
10307 | LIBS="$ac_save_LIBS" | |
10308 | ||
10309 | fi | |
10310 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10311 | echo "$ac_t""yes" 1>&6 | |
10312 | cat >> confdefs.h <<\EOF | |
7ec2881a RR |
10313 | #define HAVE_XIM 1 |
10314 | EOF | |
10315 | ||
698dcdb6 VZ |
10316 | else |
10317 | echo "$ac_t""no" 1>&6 | |
7ec2881a RR |
10318 | fi |
10319 | ||
1e6feb95 | 10320 | fi |
10f2d63a | 10321 | |
1e6feb95 VZ |
10322 | if test "$wxUSE_MGL" = 1; then |
10323 | ||
10324 | echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6 | |
978f1259 | 10325 | echo "configure:10326: checking for SciTech MGL library" >&5 |
1e6feb95 VZ |
10326 | if test "x$MGL_ROOT" = x ; then |
10327 | echo "$ac_t""not found" 1>&6 | |
10328 | { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; } | |
10329 | else | |
10330 | echo "$ac_t""$MGL_ROOT" 1>&6 | |
10331 | fi | |
10332 | ||
3a922bb4 RL |
10333 | mgl_os=linux/gcc/glibc |
10334 | mgl_lib_type="" | |
1e6feb95 VZ |
10335 | |
10336 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
223e7fbf VS |
10337 | if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \ |
10338 | -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then | |
3a922bb4 | 10339 | mgl_lib_type=debug |
1e6feb95 VZ |
10340 | fi |
10341 | fi | |
3a922bb4 | 10342 | if test "x$mgl_lib_type" = x ; then |
223e7fbf VS |
10343 | if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \ |
10344 | -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then | |
3a922bb4 | 10345 | mgl_lib_type=release |
1e6feb95 VZ |
10346 | else |
10347 | { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; } | |
10348 | fi | |
10349 | fi | |
10350 | ||
10351 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" | |
3a922bb4 | 10352 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" |
1e6feb95 VZ |
10353 | |
10354 | AFMINSTALL=afminstall | |
10355 | TOOLKIT=MGL | |
10356 | GUIDIST=MGL_DIST | |
10357 | fi | |
10358 | ||
10359 | if test "$wxUSE_WINE" = 1; then | |
3a922bb4 RL |
10360 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` |
10361 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
223e7fbf | 10362 | echo "configure:10363: checking for windows.h" >&5 |
3a922bb4 RL |
10363 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10364 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10365 | else | |
10366 | cat > conftest.$ac_ext <<EOF | |
223e7fbf | 10367 | #line 10368 "configure" |
3a922bb4 RL |
10368 | #include "confdefs.h" |
10369 | #include <windows.h> | |
10370 | EOF | |
10371 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
223e7fbf | 10372 | { (eval echo configure:10373: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3a922bb4 RL |
10373 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10374 | if test -z "$ac_err"; then | |
10375 | rm -rf conftest* | |
10376 | eval "ac_cv_header_$ac_safe=yes" | |
10377 | else | |
10378 | echo "$ac_err" >&5 | |
10379 | echo "configure: failed program was:" >&5 | |
10380 | cat conftest.$ac_ext >&5 | |
10381 | rm -rf conftest* | |
10382 | eval "ac_cv_header_$ac_safe=no" | |
10383 | fi | |
10384 | rm -f conftest* | |
10385 | fi | |
10386 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10387 | echo "$ac_t""yes" 1>&6 | |
10388 | : | |
10389 | else | |
10390 | echo "$ac_t""no" 1>&6 | |
10f2d63a | 10391 | |
1e6feb95 | 10392 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } |
3a922bb4 RL |
10393 | |
10394 | fi | |
10395 | ||
10f2d63a | 10396 | |
3d63bc3a | 10397 | xpm_link= |
1e6feb95 | 10398 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 |
223e7fbf | 10399 | echo "configure:10400: checking for Xpm library" >&5 |
1e6feb95 | 10400 | |
10f2d63a VZ |
10401 | ac_find_libraries= |
10402 | for ac_dir in $SEARCH_LIB; | |
10403 | do | |
f11bdd03 | 10404 | for ac_extension in a so sl dylib; do |
10f2d63a VZ |
10405 | if test -f "$ac_dir/libXpm.$ac_extension"; then |
10406 | ac_find_libraries=$ac_dir | |
10407 | break 2 | |
10408 | fi | |
10409 | done | |
10410 | done | |
10411 | ||
1e6feb95 VZ |
10412 | if test "$ac_find_libraries" != "" ; then |
10413 | GUI_TK_LIBRARY="-L$ac_find_libraries" | |
3d63bc3a | 10414 | xpm_link=" -lXpm" |
1e6feb95 | 10415 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
10416 | #define wxHAVE_LIB_XPM 1 |
10417 | EOF | |
10418 | ||
1e6feb95 VZ |
10419 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
10420 | else | |
10421 | echo "$ac_t""no" 1>&6 | |
10422 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
10423 | fi | |
10f2d63a | 10424 | |
3d63bc3a | 10425 | mesa_link= |
1e6feb95 | 10426 | echo $ac_n "checking for Mesa library""... $ac_c" 1>&6 |
223e7fbf | 10427 | echo "configure:10428: checking for Mesa library" >&5 |
1e6feb95 | 10428 | |
10f2d63a VZ |
10429 | ac_find_libraries= |
10430 | for ac_dir in $SEARCH_LIB; | |
10431 | do | |
f11bdd03 | 10432 | for ac_extension in a so sl dylib; do |
10f2d63a VZ |
10433 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then |
10434 | ac_find_libraries=$ac_dir | |
10435 | break 2 | |
10436 | fi | |
10437 | done | |
10438 | done | |
10439 | ||
1e6feb95 VZ |
10440 | if test "$ac_find_libraries" != "" ; then |
10441 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries" | |
3d63bc3a | 10442 | mesa_link=" -lMesaGL" |
1e6feb95 VZ |
10443 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
10444 | else | |
10445 | { echo "configure: error: no" 1>&2; exit 1; } | |
10446 | fi | |
10f2d63a | 10447 | |
3d63bc3a | 10448 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses" |
1e6feb95 VZ |
10449 | TOOLKIT=MSW |
10450 | GUIDIST=MSW_DIST | |
3a922bb4 | 10451 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__" |
1e6feb95 | 10452 | fi |
698dcdb6 | 10453 | |
d714471b VZ |
10454 | if test "$wxUSE_MOTIF" = 1; then |
10455 | # If we find X, set shell vars x_includes and x_libraries to the | |
698dcdb6 VZ |
10456 | # paths, otherwise set no_x=yes. |
10457 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
10458 | # --without-x overrides everything else, but does not touch the cache. | |
10459 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
223e7fbf | 10460 | echo "configure:10461: checking for X" >&5 |
ab9b9eab VZ |
10461 | |
10462 | # Check whether --with-x or --without-x was given. | |
10463 | if test "${with_x+set}" = set; then | |
10464 | withval="$with_x" | |
698dcdb6 VZ |
10465 | : |
10466 | fi | |
ba337fe7 | 10467 | |
ab9b9eab VZ |
10468 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
10469 | if test "x$with_x" = xno; then | |
10470 | # The user explicitly disabled X. | |
10471 | have_x=disabled | |
10472 | else | |
10473 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
10474 | # Both variables are already set. | |
10475 | have_x=yes | |
10476 | else | |
698dcdb6 VZ |
10477 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then |
10478 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab VZ |
10479 | else |
10480 | # One or both of the vars are not set, and there is no cached value. | |
698dcdb6 VZ |
10481 | ac_x_includes=NO ac_x_libraries=NO |
10482 | rm -fr conftestdir | |
10483 | if mkdir conftestdir; then | |
10484 | cd conftestdir | |
ab9b9eab | 10485 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
698dcdb6 | 10486 | cat > Imakefile <<'EOF' |
ab9b9eab VZ |
10487 | acfindx: |
10488 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
10489 | EOF | |
10490 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
10491 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
10492 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
10493 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
10f2d63a | 10494 | for ac_extension in a so sl; do |
ab9b9eab | 10495 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
698dcdb6 | 10496 | test -f $ac_im_libdir/libX11.$ac_extension; then |
ab9b9eab | 10497 | ac_im_usrlibdir=$ac_im_libdir; break |
10f2d63a VZ |
10498 | fi |
10499 | done | |
ab9b9eab VZ |
10500 | # Screen out bogus values from the imake configuration. They are |
10501 | # bogus both because they are the default anyway, and because | |
10502 | # using them would break gcc on systems where it needs fixed includes. | |
698dcdb6 | 10503 | case "$ac_im_incroot" in |
ab9b9eab | 10504 | /usr/include) ;; |
698dcdb6 | 10505 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; |
ab9b9eab | 10506 | esac |
698dcdb6 | 10507 | case "$ac_im_usrlibdir" in |
ab9b9eab | 10508 | /usr/lib | /lib) ;; |
698dcdb6 | 10509 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; |
ab9b9eab | 10510 | esac |
ba337fe7 | 10511 | fi |
ab9b9eab | 10512 | cd .. |
698dcdb6 | 10513 | rm -fr conftestdir |
ab9b9eab | 10514 | fi |
10f2d63a | 10515 | |
698dcdb6 VZ |
10516 | if test "$ac_x_includes" = NO; then |
10517 | # Guess where to find include files, by looking for this one X11 .h file. | |
10518 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
10519 | ||
ab9b9eab | 10520 | # First, try using that file with no special directory specified. |
698dcdb6 | 10521 | cat > conftest.$ac_ext <<EOF |
223e7fbf | 10522 | #line 10523 "configure" |
ab9b9eab | 10523 | #include "confdefs.h" |
698dcdb6 VZ |
10524 | #include <$x_direct_test_include> |
10525 | EOF | |
10526 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
223e7fbf | 10527 | { (eval echo configure:10528: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
10528 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10529 | if test -z "$ac_err"; then | |
10530 | rm -rf conftest* | |
ab9b9eab VZ |
10531 | # We can compile using X headers with no special include directory. |
10532 | ac_x_includes= | |
10533 | else | |
698dcdb6 VZ |
10534 | echo "$ac_err" >&5 |
10535 | echo "configure: failed program was:" >&5 | |
ab9b9eab | 10536 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
10537 | rm -rf conftest* |
10538 | # Look for the header file in a standard set of common directories. | |
10539 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
10540 | for ac_dir in \ | |
10541 | /usr/X11/include \ | |
10542 | /usr/X11R6/include \ | |
10543 | /usr/X11R5/include \ | |
10544 | /usr/X11R4/include \ | |
10545 | \ | |
10546 | /usr/include/X11 \ | |
10547 | /usr/include/X11R6 \ | |
10548 | /usr/include/X11R5 \ | |
10549 | /usr/include/X11R4 \ | |
10550 | \ | |
10551 | /usr/local/X11/include \ | |
10552 | /usr/local/X11R6/include \ | |
10553 | /usr/local/X11R5/include \ | |
10554 | /usr/local/X11R4/include \ | |
10555 | \ | |
10556 | /usr/local/include/X11 \ | |
10557 | /usr/local/include/X11R6 \ | |
10558 | /usr/local/include/X11R5 \ | |
10559 | /usr/local/include/X11R4 \ | |
10560 | \ | |
10561 | /usr/X386/include \ | |
10562 | /usr/x386/include \ | |
10563 | /usr/XFree86/include/X11 \ | |
10564 | \ | |
10565 | /usr/include \ | |
10566 | /usr/local/include \ | |
10567 | /usr/unsupported/include \ | |
10568 | /usr/athena/include \ | |
10569 | /usr/local/x11r5/include \ | |
10570 | /usr/lpp/Xamples/include \ | |
10571 | \ | |
10572 | /usr/openwin/include \ | |
10573 | /usr/openwin/share/include \ | |
10574 | ; \ | |
10575 | do | |
10576 | if test -r "$ac_dir/$x_direct_test_include"; then | |
10577 | ac_x_includes=$ac_dir | |
10578 | break | |
10579 | fi | |
10580 | done | |
ab9b9eab | 10581 | fi |
698dcdb6 VZ |
10582 | rm -f conftest* |
10583 | fi # $ac_x_includes = NO | |
10f2d63a | 10584 | |
698dcdb6 | 10585 | if test "$ac_x_libraries" = NO; then |
ab9b9eab | 10586 | # Check for the libraries. |
698dcdb6 VZ |
10587 | |
10588 | test -z "$x_direct_test_library" && x_direct_test_library=Xt | |
10589 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
10590 | ||
ab9b9eab VZ |
10591 | # See if we find them without any special options. |
10592 | # Don't add to $LIBS permanently. | |
698dcdb6 VZ |
10593 | ac_save_LIBS="$LIBS" |
10594 | LIBS="-l$x_direct_test_library $LIBS" | |
10595 | cat > conftest.$ac_ext <<EOF | |
223e7fbf | 10596 | #line 10597 "configure" |
ab9b9eab | 10597 | #include "confdefs.h" |
698dcdb6 VZ |
10598 | |
10599 | int main() { | |
10600 | ${x_direct_test_function}() | |
10601 | ; return 0; } | |
10602 | EOF | |
223e7fbf | 10603 | if { (eval echo configure:10604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10604 | rm -rf conftest* |
10605 | LIBS="$ac_save_LIBS" | |
ab9b9eab VZ |
10606 | # We can link X programs with no special library path. |
10607 | ac_x_libraries= | |
10608 | else | |
698dcdb6 VZ |
10609 | echo "configure: failed program was:" >&5 |
10610 | cat conftest.$ac_ext >&5 | |
10611 | rm -rf conftest* | |
10612 | LIBS="$ac_save_LIBS" | |
10613 | # First see if replacing the include by lib works. | |
10614 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
10615 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
10616 | /usr/X11/lib \ | |
10617 | /usr/X11R6/lib \ | |
10618 | /usr/X11R5/lib \ | |
10619 | /usr/X11R4/lib \ | |
10620 | \ | |
10621 | /usr/lib/X11 \ | |
10622 | /usr/lib/X11R6 \ | |
10623 | /usr/lib/X11R5 \ | |
10624 | /usr/lib/X11R4 \ | |
10625 | \ | |
10626 | /usr/local/X11/lib \ | |
10627 | /usr/local/X11R6/lib \ | |
10628 | /usr/local/X11R5/lib \ | |
10629 | /usr/local/X11R4/lib \ | |
10630 | \ | |
10631 | /usr/local/lib/X11 \ | |
10632 | /usr/local/lib/X11R6 \ | |
10633 | /usr/local/lib/X11R5 \ | |
10634 | /usr/local/lib/X11R4 \ | |
10635 | \ | |
10636 | /usr/X386/lib \ | |
10637 | /usr/x386/lib \ | |
10638 | /usr/XFree86/lib/X11 \ | |
10639 | \ | |
10640 | /usr/lib \ | |
10641 | /usr/local/lib \ | |
10642 | /usr/unsupported/lib \ | |
10643 | /usr/athena/lib \ | |
10644 | /usr/local/x11r5/lib \ | |
10645 | /usr/lpp/Xamples/lib \ | |
10646 | /lib/usr/lib/X11 \ | |
10647 | \ | |
10648 | /usr/openwin/lib \ | |
10649 | /usr/openwin/share/lib \ | |
10650 | ; \ | |
ab9b9eab VZ |
10651 | do |
10652 | for ac_extension in a so sl; do | |
698dcdb6 | 10653 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then |
ab9b9eab VZ |
10654 | ac_x_libraries=$ac_dir |
10655 | break 2 | |
10f2d63a | 10656 | fi |
10f2d63a | 10657 | done |
ab9b9eab VZ |
10658 | done |
10659 | fi | |
698dcdb6 VZ |
10660 | rm -f conftest* |
10661 | fi # $ac_x_libraries = NO | |
10f2d63a | 10662 | |
698dcdb6 | 10663 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
ab9b9eab VZ |
10664 | # Didn't find X anywhere. Cache the known absence of X. |
10665 | ac_cv_have_x="have_x=no" | |
10666 | else | |
10667 | # Record where we found X for the cache. | |
10668 | ac_cv_have_x="have_x=yes \ | |
10669 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
10670 | fi | |
10671 | fi | |
10f2d63a | 10672 | fi |
ab9b9eab VZ |
10673 | eval "$ac_cv_have_x" |
10674 | fi # $with_x != no | |
10f2d63a | 10675 | |
ab9b9eab | 10676 | if test "$have_x" != yes; then |
698dcdb6 | 10677 | echo "$ac_t""$have_x" 1>&6 |
ab9b9eab VZ |
10678 | no_x=yes |
10679 | else | |
10680 | # If each of the values was on the command line, it overrides each guess. | |
10681 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
10682 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
10683 | # Update the cache value to reflect the command line values. | |
10684 | ac_cv_have_x="have_x=yes \ | |
10685 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
698dcdb6 | 10686 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 |
ab9b9eab | 10687 | fi |
10f2d63a | 10688 | |
ab9b9eab VZ |
10689 | if test "$no_x" = yes; then |
10690 | # Not all programs may use this symbol, but it does not hurt to define it. | |
698dcdb6 | 10691 | cat >> confdefs.h <<\EOF |
ab9b9eab VZ |
10692 | #define X_DISPLAY_MISSING 1 |
10693 | EOF | |
10f2d63a | 10694 | |
ab9b9eab VZ |
10695 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
10696 | else | |
10697 | if test -n "$x_includes"; then | |
10698 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
10f2d63a VZ |
10699 | fi |
10700 | ||
ab9b9eab VZ |
10701 | # It would also be nice to do this for all -L options, not just this one. |
10702 | if test -n "$x_libraries"; then | |
10703 | X_LIBS="$X_LIBS -L$x_libraries" | |
10704 | # For Solaris; some versions of Sun CC require a space after -R and | |
10705 | # others require no space. Words are not sufficient . . . . | |
698dcdb6 | 10706 | case "`(uname -sr) 2>/dev/null`" in |
ab9b9eab | 10707 | "SunOS 5"*) |
698dcdb6 | 10708 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 |
223e7fbf | 10709 | echo "configure:10710: checking whether -R must be followed by a space" >&5 |
698dcdb6 VZ |
10710 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
10711 | cat > conftest.$ac_ext <<EOF | |
223e7fbf | 10712 | #line 10713 "configure" |
ab9b9eab | 10713 | #include "confdefs.h" |
10f2d63a | 10714 | |
698dcdb6 | 10715 | int main() { |
788deba1 | 10716 | |
698dcdb6 VZ |
10717 | ; return 0; } |
10718 | EOF | |
223e7fbf | 10719 | if { (eval echo configure:10720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 10720 | rm -rf conftest* |
ab9b9eab VZ |
10721 | ac_R_nospace=yes |
10722 | else | |
698dcdb6 VZ |
10723 | echo "configure: failed program was:" >&5 |
10724 | cat conftest.$ac_ext >&5 | |
10725 | rm -rf conftest* | |
10726 | ac_R_nospace=no | |
ab9b9eab | 10727 | fi |
698dcdb6 | 10728 | rm -f conftest* |
ab9b9eab | 10729 | if test $ac_R_nospace = yes; then |
698dcdb6 | 10730 | echo "$ac_t""no" 1>&6 |
ab9b9eab VZ |
10731 | X_LIBS="$X_LIBS -R$x_libraries" |
10732 | else | |
10733 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
698dcdb6 | 10734 | cat > conftest.$ac_ext <<EOF |
223e7fbf | 10735 | #line 10736 "configure" |
ab9b9eab | 10736 | #include "confdefs.h" |
788deba1 | 10737 | |
698dcdb6 | 10738 | int main() { |
ab9b9eab | 10739 | |
698dcdb6 VZ |
10740 | ; return 0; } |
10741 | EOF | |
223e7fbf | 10742 | if { (eval echo configure:10743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 10743 | rm -rf conftest* |
ab9b9eab VZ |
10744 | ac_R_space=yes |
10745 | else | |
698dcdb6 VZ |
10746 | echo "configure: failed program was:" >&5 |
10747 | cat conftest.$ac_ext >&5 | |
10748 | rm -rf conftest* | |
10749 | ac_R_space=no | |
ab9b9eab | 10750 | fi |
698dcdb6 | 10751 | rm -f conftest* |
ab9b9eab | 10752 | if test $ac_R_space = yes; then |
698dcdb6 | 10753 | echo "$ac_t""yes" 1>&6 |
ab9b9eab VZ |
10754 | X_LIBS="$X_LIBS -R $x_libraries" |
10755 | else | |
698dcdb6 | 10756 | echo "$ac_t""neither works" 1>&6 |
ab9b9eab VZ |
10757 | fi |
10758 | fi | |
698dcdb6 | 10759 | LIBS="$ac_xsave_LIBS" |
ab9b9eab VZ |
10760 | esac |
10761 | fi | |
10762 | ||
10763 | # Check for system-dependent libraries X programs must link with. | |
10764 | # Do this before checking for the system-independent R6 libraries | |
10765 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
10766 | ||
10767 | if test "$ISC" = yes; then | |
10768 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
10769 | else | |
698dcdb6 VZ |
10770 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X |
10771 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
ab9b9eab | 10772 | # the Alpha needs dnet_stub (dnet does not exist). |
698dcdb6 | 10773 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
223e7fbf | 10774 | echo "configure:10775: checking for dnet_ntoa in -ldnet" >&5 |
698dcdb6 VZ |
10775 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
10776 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10777 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 10778 | else |
698dcdb6 | 10779 | ac_save_LIBS="$LIBS" |
ab9b9eab | 10780 | LIBS="-ldnet $LIBS" |
698dcdb6 | 10781 | cat > conftest.$ac_ext <<EOF |
223e7fbf | 10782 | #line 10783 "configure" |
ab9b9eab VZ |
10783 | #include "confdefs.h" |
10784 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10785 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10786 | builtin and then its argument prototype would still apply. */ |
10787 | char dnet_ntoa(); | |
10788 | ||
10789 | int main() { | |
10790 | dnet_ntoa() | |
10791 | ; return 0; } | |
10792 | EOF | |
223e7fbf | 10793 | if { (eval echo configure:10794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10794 | rm -rf conftest* |
10795 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10796 | else | |
10797 | echo "configure: failed program was:" >&5 | |
10798 | cat conftest.$ac_ext >&5 | |
10799 | rm -rf conftest* | |
10800 | eval "ac_cv_lib_$ac_lib_var=no" | |
10801 | fi | |
10802 | rm -f conftest* | |
10803 | LIBS="$ac_save_LIBS" | |
10804 | ||
10805 | fi | |
10806 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10807 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 10808 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
698dcdb6 VZ |
10809 | else |
10810 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
10811 | fi |
10812 | ||
10813 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
698dcdb6 | 10814 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
223e7fbf | 10815 | echo "configure:10816: checking for dnet_ntoa in -ldnet_stub" >&5 |
698dcdb6 VZ |
10816 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
10817 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10818 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 10819 | else |
698dcdb6 | 10820 | ac_save_LIBS="$LIBS" |
ab9b9eab | 10821 | LIBS="-ldnet_stub $LIBS" |
698dcdb6 | 10822 | cat > conftest.$ac_ext <<EOF |
223e7fbf | 10823 | #line 10824 "configure" |
ab9b9eab VZ |
10824 | #include "confdefs.h" |
10825 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10826 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10827 | builtin and then its argument prototype would still apply. */ |
10828 | char dnet_ntoa(); | |
10829 | ||
10830 | int main() { | |
10831 | dnet_ntoa() | |
10832 | ; return 0; } | |
10833 | EOF | |
223e7fbf | 10834 | if { (eval echo configure:10835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10835 | rm -rf conftest* |
10836 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10837 | else | |
10838 | echo "configure: failed program was:" >&5 | |
10839 | cat conftest.$ac_ext >&5 | |
10840 | rm -rf conftest* | |
10841 | eval "ac_cv_lib_$ac_lib_var=no" | |
10842 | fi | |
10843 | rm -f conftest* | |
10844 | LIBS="$ac_save_LIBS" | |
10845 | ||
10846 | fi | |
10847 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10848 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 10849 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
698dcdb6 VZ |
10850 | else |
10851 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
10852 | fi |
10853 | ||
10854 | fi | |
10855 | ||
10856 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
10857 | # to get the SysV transport functions. | |
698dcdb6 | 10858 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
ab9b9eab VZ |
10859 | # needs -lnsl. |
10860 | # The nsl library prevents programs from opening the X display | |
698dcdb6 VZ |
10861 | # on Irix 5.2, according to dickey@clark.net. |
10862 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
223e7fbf | 10863 | echo "configure:10864: checking for gethostbyname" >&5 |
698dcdb6 VZ |
10864 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
10865 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10866 | else | |
10867 | cat > conftest.$ac_ext <<EOF | |
223e7fbf | 10868 | #line 10869 "configure" |
ab9b9eab VZ |
10869 | #include "confdefs.h" |
10870 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 10871 | which can conflict with char gethostbyname(); below. */ |
ab9b9eab VZ |
10872 | #include <assert.h> |
10873 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10874 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10875 | builtin and then its argument prototype would still apply. */ |
10876 | char gethostbyname(); | |
10877 | ||
10878 | int main() { | |
ab9b9eab VZ |
10879 | |
10880 | /* The GNU C library defines this for functions which it implements | |
10881 | to always fail with ENOSYS. Some functions are actually named | |
10882 | something starting with __ and the normal name is an alias. */ | |
10883 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
10884 | choke me | |
10885 | #else | |
698dcdb6 | 10886 | gethostbyname(); |
ab9b9eab VZ |
10887 | #endif |
10888 | ||
698dcdb6 VZ |
10889 | ; return 0; } |
10890 | EOF | |
223e7fbf | 10891 | if { (eval echo configure:10892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10892 | rm -rf conftest* |
10893 | eval "ac_cv_func_gethostbyname=yes" | |
10894 | else | |
10895 | echo "configure: failed program was:" >&5 | |
10896 | cat conftest.$ac_ext >&5 | |
10897 | rm -rf conftest* | |
10898 | eval "ac_cv_func_gethostbyname=no" | |
10899 | fi | |
10900 | rm -f conftest* | |
10901 | fi | |
10902 | ||
10903 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
10904 | echo "$ac_t""yes" 1>&6 | |
10905 | : | |
10906 | else | |
10907 | echo "$ac_t""no" 1>&6 | |
10908 | fi | |
ab9b9eab VZ |
10909 | |
10910 | if test $ac_cv_func_gethostbyname = no; then | |
698dcdb6 | 10911 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
223e7fbf | 10912 | echo "configure:10913: checking for gethostbyname in -lnsl" >&5 |
698dcdb6 VZ |
10913 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
10914 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10915 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 10916 | else |
698dcdb6 | 10917 | ac_save_LIBS="$LIBS" |
ab9b9eab | 10918 | LIBS="-lnsl $LIBS" |
698dcdb6 | 10919 | cat > conftest.$ac_ext <<EOF |
223e7fbf | 10920 | #line 10921 "configure" |
ab9b9eab VZ |
10921 | #include "confdefs.h" |
10922 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10923 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10924 | builtin and then its argument prototype would still apply. */ |
10925 | char gethostbyname(); | |
6232543b | 10926 | |
698dcdb6 VZ |
10927 | int main() { |
10928 | gethostbyname() | |
10929 | ; return 0; } | |
10930 | EOF | |
223e7fbf | 10931 | if { (eval echo configure:10932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10932 | rm -rf conftest* |
10933 | eval "ac_cv_lib_$ac_lib_var=yes" | |
703e0a69 | 10934 | else |
698dcdb6 VZ |
10935 | echo "configure: failed program was:" >&5 |
10936 | cat conftest.$ac_ext >&5 | |
10937 | rm -rf conftest* | |
10938 | eval "ac_cv_lib_$ac_lib_var=no" | |
10939 | fi | |
10940 | rm -f conftest* | |
10941 | LIBS="$ac_save_LIBS" | |
1e487827 | 10942 | |
698dcdb6 VZ |
10943 | fi |
10944 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10945 | echo "$ac_t""yes" 1>&6 | |
10946 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
10947 | else | |
10948 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
10949 | fi |
10950 | ||
10951 | fi | |
10952 | ||
10953 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
10954 | # socket/setsockopt and other routines are undefined under SCO ODT | |
10955 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
698dcdb6 VZ |
10956 | # on later versions), says simon@lia.di.epfl.ch: it contains |
10957 | # gethostby* variants that don't use the nameserver (or something). | |
10958 | # -lsocket must be given before -lnsl if both are needed. | |
10959 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
10960 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
223e7fbf | 10961 | echo "configure:10962: checking for connect" >&5 |
698dcdb6 VZ |
10962 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
10963 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10964 | else | |
10965 | cat > conftest.$ac_ext <<EOF | |
223e7fbf | 10966 | #line 10967 "configure" |
ab9b9eab VZ |
10967 | #include "confdefs.h" |
10968 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 10969 | which can conflict with char connect(); below. */ |
ab9b9eab VZ |
10970 | #include <assert.h> |
10971 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10972 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10973 | builtin and then its argument prototype would still apply. */ |
10974 | char connect(); | |
10975 | ||
10976 | int main() { | |
ab9b9eab VZ |
10977 | |
10978 | /* The GNU C library defines this for functions which it implements | |
10979 | to always fail with ENOSYS. Some functions are actually named | |
10980 | something starting with __ and the normal name is an alias. */ | |
10981 | #if defined (__stub_connect) || defined (__stub___connect) | |
10982 | choke me | |
10983 | #else | |
698dcdb6 | 10984 | connect(); |
ab9b9eab VZ |
10985 | #endif |
10986 | ||
698dcdb6 VZ |
10987 | ; return 0; } |
10988 | EOF | |
223e7fbf | 10989 | if { (eval echo configure:10990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10990 | rm -rf conftest* |
10991 | eval "ac_cv_func_connect=yes" | |
10992 | else | |
10993 | echo "configure: failed program was:" >&5 | |
10994 | cat conftest.$ac_ext >&5 | |
10995 | rm -rf conftest* | |
10996 | eval "ac_cv_func_connect=no" | |
10997 | fi | |
10998 | rm -f conftest* | |
10999 | fi | |
11000 | ||
11001 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
11002 | echo "$ac_t""yes" 1>&6 | |
11003 | : | |
11004 | else | |
11005 | echo "$ac_t""no" 1>&6 | |
11006 | fi | |
ab9b9eab VZ |
11007 | |
11008 | if test $ac_cv_func_connect = no; then | |
698dcdb6 | 11009 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
223e7fbf | 11010 | echo "configure:11011: checking for connect in -lsocket" >&5 |
698dcdb6 VZ |
11011 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
11012 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11013 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11014 | else |
698dcdb6 | 11015 | ac_save_LIBS="$LIBS" |
ab9b9eab | 11016 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
698dcdb6 | 11017 | cat > conftest.$ac_ext <<EOF |
223e7fbf | 11018 | #line 11019 "configure" |
ab9b9eab VZ |
11019 | #include "confdefs.h" |
11020 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11021 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11022 | builtin and then its argument prototype would still apply. */ |
11023 | char connect(); | |
11024 | ||
11025 | int main() { | |
11026 | connect() | |
11027 | ; return 0; } | |
11028 | EOF | |
223e7fbf | 11029 | if { (eval echo configure:11030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11030 | rm -rf conftest* |
11031 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11032 | else | |
11033 | echo "configure: failed program was:" >&5 | |
11034 | cat conftest.$ac_ext >&5 | |
11035 | rm -rf conftest* | |
11036 | eval "ac_cv_lib_$ac_lib_var=no" | |
11037 | fi | |
11038 | rm -f conftest* | |
11039 | LIBS="$ac_save_LIBS" | |
11040 | ||
11041 | fi | |
11042 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11043 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 11044 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
698dcdb6 VZ |
11045 | else |
11046 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11047 | fi |
11048 | ||
11049 | fi | |
11050 | ||
698dcdb6 VZ |
11051 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
11052 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
223e7fbf | 11053 | echo "configure:11054: checking for remove" >&5 |
698dcdb6 VZ |
11054 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
11055 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11056 | else |
698dcdb6 | 11057 | cat > conftest.$ac_ext <<EOF |
223e7fbf | 11058 | #line 11059 "configure" |
ab9b9eab VZ |
11059 | #include "confdefs.h" |
11060 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 11061 | which can conflict with char remove(); below. */ |
ab9b9eab VZ |
11062 | #include <assert.h> |
11063 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11064 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11065 | builtin and then its argument prototype would still apply. */ |
11066 | char remove(); | |
11067 | ||
11068 | int main() { | |
ab9b9eab VZ |
11069 | |
11070 | /* The GNU C library defines this for functions which it implements | |
11071 | to always fail with ENOSYS. Some functions are actually named | |
11072 | something starting with __ and the normal name is an alias. */ | |
11073 | #if defined (__stub_remove) || defined (__stub___remove) | |
11074 | choke me | |
11075 | #else | |
698dcdb6 | 11076 | remove(); |
ab9b9eab VZ |
11077 | #endif |
11078 | ||
698dcdb6 VZ |
11079 | ; return 0; } |
11080 | EOF | |
223e7fbf | 11081 | if { (eval echo configure:11082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11082 | rm -rf conftest* |
11083 | eval "ac_cv_func_remove=yes" | |
11084 | else | |
11085 | echo "configure: failed program was:" >&5 | |
11086 | cat conftest.$ac_ext >&5 | |
11087 | rm -rf conftest* | |
11088 | eval "ac_cv_func_remove=no" | |
11089 | fi | |
11090 | rm -f conftest* | |
11091 | fi | |
11092 | ||
11093 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
11094 | echo "$ac_t""yes" 1>&6 | |
11095 | : | |
11096 | else | |
11097 | echo "$ac_t""no" 1>&6 | |
11098 | fi | |
ab9b9eab VZ |
11099 | |
11100 | if test $ac_cv_func_remove = no; then | |
698dcdb6 | 11101 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
223e7fbf | 11102 | echo "configure:11103: checking for remove in -lposix" >&5 |
698dcdb6 VZ |
11103 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
11104 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11105 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11106 | else |
698dcdb6 | 11107 | ac_save_LIBS="$LIBS" |
ab9b9eab | 11108 | LIBS="-lposix $LIBS" |
698dcdb6 | 11109 | cat > conftest.$ac_ext <<EOF |
223e7fbf | 11110 | #line 11111 "configure" |
ab9b9eab VZ |
11111 | #include "confdefs.h" |
11112 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11113 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11114 | builtin and then its argument prototype would still apply. */ |
11115 | char remove(); | |
11116 | ||
11117 | int main() { | |
11118 | remove() | |
11119 | ; return 0; } | |
11120 | EOF | |
223e7fbf | 11121 | if { (eval echo configure:11122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11122 | rm -rf conftest* |
11123 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11124 | else | |
11125 | echo "configure: failed program was:" >&5 | |
11126 | cat conftest.$ac_ext >&5 | |
11127 | rm -rf conftest* | |
11128 | eval "ac_cv_lib_$ac_lib_var=no" | |
11129 | fi | |
11130 | rm -f conftest* | |
11131 | LIBS="$ac_save_LIBS" | |
11132 | ||
11133 | fi | |
11134 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11135 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 11136 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
698dcdb6 VZ |
11137 | else |
11138 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11139 | fi |
11140 | ||
11141 | fi | |
11142 | ||
11143 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
698dcdb6 | 11144 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
223e7fbf | 11145 | echo "configure:11146: checking for shmat" >&5 |
698dcdb6 VZ |
11146 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
11147 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11148 | else |
698dcdb6 | 11149 | cat > conftest.$ac_ext <<EOF |
223e7fbf | 11150 | #line 11151 "configure" |
ab9b9eab VZ |
11151 | #include "confdefs.h" |
11152 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 11153 | which can conflict with char shmat(); below. */ |
ab9b9eab VZ |
11154 | #include <assert.h> |
11155 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11156 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11157 | builtin and then its argument prototype would still apply. */ |
11158 | char shmat(); | |
11159 | ||
11160 | int main() { | |
ab9b9eab VZ |
11161 | |
11162 | /* The GNU C library defines this for functions which it implements | |
11163 | to always fail with ENOSYS. Some functions are actually named | |
11164 | something starting with __ and the normal name is an alias. */ | |
11165 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
11166 | choke me | |
11167 | #else | |
698dcdb6 | 11168 | shmat(); |
ab9b9eab VZ |
11169 | #endif |
11170 | ||
698dcdb6 VZ |
11171 | ; return 0; } |
11172 | EOF | |
223e7fbf | 11173 | if { (eval echo configure:11174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11174 | rm -rf conftest* |
11175 | eval "ac_cv_func_shmat=yes" | |
11176 | else | |
11177 | echo "configure: failed program was:" >&5 | |
11178 | cat conftest.$ac_ext >&5 | |
11179 | rm -rf conftest* | |
11180 | eval "ac_cv_func_shmat=no" | |
11181 | fi | |
11182 | rm -f conftest* | |
11183 | fi | |
11184 | ||
11185 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
11186 | echo "$ac_t""yes" 1>&6 | |
11187 | : | |
11188 | else | |
11189 | echo "$ac_t""no" 1>&6 | |
11190 | fi | |
ab9b9eab VZ |
11191 | |
11192 | if test $ac_cv_func_shmat = no; then | |
698dcdb6 | 11193 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
223e7fbf | 11194 | echo "configure:11195: checking for shmat in -lipc" >&5 |
698dcdb6 VZ |
11195 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
11196 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11197 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11198 | else |
698dcdb6 | 11199 | ac_save_LIBS="$LIBS" |
ab9b9eab | 11200 | LIBS="-lipc $LIBS" |
698dcdb6 | 11201 | cat > conftest.$ac_ext <<EOF |
223e7fbf | 11202 | #line 11203 "configure" |
ab9b9eab VZ |
11203 | #include "confdefs.h" |
11204 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11205 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11206 | builtin and then its argument prototype would still apply. */ |
11207 | char shmat(); | |
11208 | ||
11209 | int main() { | |
11210 | shmat() | |
11211 | ; return 0; } | |
11212 | EOF | |
223e7fbf | 11213 | if { (eval echo configure:11214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11214 | rm -rf conftest* |
11215 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11216 | else | |
11217 | echo "configure: failed program was:" >&5 | |
11218 | cat conftest.$ac_ext >&5 | |
11219 | rm -rf conftest* | |
11220 | eval "ac_cv_lib_$ac_lib_var=no" | |
11221 | fi | |
11222 | rm -f conftest* | |
11223 | LIBS="$ac_save_LIBS" | |
11224 | ||
11225 | fi | |
11226 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11227 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 11228 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
698dcdb6 VZ |
11229 | else |
11230 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11231 | fi |
11232 | ||
11233 | fi | |
11234 | fi | |
11235 | ||
11236 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
698dcdb6 | 11237 | ac_save_LDFLAGS="$LDFLAGS" |
ab9b9eab VZ |
11238 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
11239 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
11240 | # check for ICE first), but we must link in the order -lSM -lICE or | |
11241 | # we get undefined symbols. So assume we have SM if we have ICE. | |
11242 | # These have to be linked with before -lX11, unlike the other | |
11243 | # libraries we check for below, so use a different variable. | |
698dcdb6 VZ |
11244 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
11245 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
223e7fbf | 11246 | echo "configure:11247: checking for IceConnectionNumber in -lICE" >&5 |
698dcdb6 VZ |
11247 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
11248 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11249 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11250 | else | |
11251 | ac_save_LIBS="$LIBS" | |
ab9b9eab | 11252 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
698dcdb6 | 11253 | cat > conftest.$ac_ext <<EOF |
223e7fbf | 11254 | #line 11255 "configure" |
ab9b9eab VZ |
11255 | #include "confdefs.h" |
11256 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11257 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11258 | builtin and then its argument prototype would still apply. */ |
11259 | char IceConnectionNumber(); | |
11260 | ||
11261 | int main() { | |
11262 | IceConnectionNumber() | |
11263 | ; return 0; } | |
11264 | EOF | |
223e7fbf | 11265 | if { (eval echo configure:11266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11266 | rm -rf conftest* |
11267 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11268 | else | |
11269 | echo "configure: failed program was:" >&5 | |
11270 | cat conftest.$ac_ext >&5 | |
11271 | rm -rf conftest* | |
11272 | eval "ac_cv_lib_$ac_lib_var=no" | |
11273 | fi | |
11274 | rm -f conftest* | |
11275 | LIBS="$ac_save_LIBS" | |
11276 | ||
11277 | fi | |
11278 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11279 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 11280 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
698dcdb6 VZ |
11281 | else |
11282 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11283 | fi |
11284 | ||
698dcdb6 | 11285 | LDFLAGS="$ac_save_LDFLAGS" |
ab9b9eab VZ |
11286 | |
11287 | fi | |
11288 | ||
11289 | ||
1e6feb95 VZ |
11290 | if test "$no_x" = "yes"; then |
11291 | { echo "configure: error: X11 not found" 1>&2; exit 1; } | |
11292 | fi | |
ab9b9eab | 11293 | |
1e6feb95 VZ |
11294 | GUI_TK_LIBRARY="$X_LIBS" |
11295 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
1e6feb95 | 11296 | AFMINSTALL=afminstall |
1e6feb95 | 11297 | COMPILED_X_PROGRAM=0 |
cd6d6d5b | 11298 | |
1e6feb95 | 11299 | echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6 |
223e7fbf | 11300 | echo "configure:11301: checking for Motif/Lesstif headers" >&5 |
1e6feb95 | 11301 | |
ab9b9eab VZ |
11302 | ac_find_includes= |
11303 | for ac_dir in $SEARCH_INCLUDE; | |
11304 | do | |
11305 | if test -f "$ac_dir/Xm/Xm.h"; then | |
11306 | ac_find_includes=$ac_dir | |
11307 | break | |
11308 | fi | |
11309 | done | |
11310 | ||
1e6feb95 VZ |
11311 | if test "$ac_find_includes" != "" ; then |
11312 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
11313 | else | |
11314 | cat > conftest.$ac_ext <<EOF | |
223e7fbf | 11315 | #line 11316 "configure" |
cd6d6d5b VZ |
11316 | #include "confdefs.h" |
11317 | ||
1e6feb95 VZ |
11318 | #include <Xm/Xm.h> |
11319 | ||
698dcdb6 | 11320 | int main() { |
cd6d6d5b | 11321 | |
1e6feb95 | 11322 | int version; |
1e6feb95 VZ |
11323 | version = xmUseVersion; |
11324 | ||
698dcdb6 VZ |
11325 | ; return 0; } |
11326 | EOF | |
223e7fbf | 11327 | if { (eval echo configure:11328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
11328 | rm -rf conftest* |
11329 | ||
1e6feb95 VZ |
11330 | echo "$ac_t""found in default search path" 1>&6 |
11331 | COMPILED_X_PROGRAM=1 | |
11332 | ||
cd6d6d5b | 11333 | else |
698dcdb6 VZ |
11334 | echo "configure: failed program was:" >&5 |
11335 | cat conftest.$ac_ext >&5 | |
11336 | rm -rf conftest* | |
11337 | ||
1e6feb95 VZ |
11338 | echo "$ac_t""no" 1>&6 |
11339 | { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; } | |
11340 | ||
698dcdb6 | 11341 | |
cd6d6d5b | 11342 | fi |
698dcdb6 | 11343 | rm -f conftest* |
1e6feb95 | 11344 | fi |
ab9b9eab | 11345 | |
1e6feb95 VZ |
11346 | if test "$COMPILED_X_PROGRAM" = 0; then |
11347 | echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6 | |
223e7fbf | 11348 | echo "configure:11349: checking for Motif/Lesstif library" >&5 |
1e6feb95 | 11349 | |
ab9b9eab VZ |
11350 | ac_find_libraries= |
11351 | for ac_dir in $SEARCH_LIB; | |
11352 | do | |
f11bdd03 | 11353 | for ac_extension in a so sl dylib; do |
ab9b9eab VZ |
11354 | if test -f "$ac_dir/libXm.$ac_extension"; then |
11355 | ac_find_libraries=$ac_dir | |
11356 | break 2 | |
11357 | fi | |
11358 | done | |
11359 | done | |
11360 | ||
1e6feb95 VZ |
11361 | if test "$ac_find_libraries" != "" ; then |
11362 | ||
ab9b9eab VZ |
11363 | ac_path_to_include=$ac_find_includes |
11364 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
11365 | result=$? | |
11366 | if test $result = 0; then | |
11367 | ac_path_to_include="" | |
11368 | else | |
11369 | ac_path_to_include="-I$ac_find_includes" | |
11370 | fi | |
11371 | ||
1e6feb95 | 11372 | |
ab9b9eab VZ |
11373 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
11374 | result=$? | |
11375 | if test $result = 0; then | |
11376 | ac_path_to_link="" | |
11377 | else | |
11378 | ac_path_to_link="-L$ac_find_libraries" | |
11379 | fi | |
11380 | ||
698dcdb6 | 11381 | |
1e6feb95 VZ |
11382 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" |
11383 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include" | |
11384 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
11385 | else | |
11386 | cat > conftest.$ac_ext <<EOF | |
223e7fbf | 11387 | #line 11388 "configure" |
cd6d6d5b | 11388 | #include "confdefs.h" |
ab9b9eab | 11389 | |
1e6feb95 VZ |
11390 | #include <Xm/Xm.h> |
11391 | ||
698dcdb6 | 11392 | int main() { |
ab9b9eab | 11393 | |
1e6feb95 | 11394 | int version; |
1e6feb95 VZ |
11395 | version = xmUseVersion; |
11396 | ||
698dcdb6 VZ |
11397 | ; return 0; } |
11398 | EOF | |
223e7fbf | 11399 | if { (eval echo configure:11400: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
11400 | rm -rf conftest* |
11401 | ||
1e6feb95 VZ |
11402 | echo "$ac_t""found in default search path" 1>&6 |
11403 | COMPILED_X_PROGRAM=1 | |
11404 | ||
cd6d6d5b | 11405 | else |
698dcdb6 VZ |
11406 | echo "configure: failed program was:" >&5 |
11407 | cat conftest.$ac_ext >&5 | |
11408 | rm -rf conftest* | |
11409 | ||
1e6feb95 VZ |
11410 | echo "$ac_t""no" 1>&6 |
11411 | { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; } | |
11412 | ||
698dcdb6 | 11413 | |
cd6d6d5b | 11414 | fi |
698dcdb6 | 11415 | rm -f conftest* |
1e6feb95 | 11416 | fi |
cd6d6d5b | 11417 | fi |
ab9b9eab | 11418 | |
3d63bc3a | 11419 | xpm_link= |
1e6feb95 | 11420 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 |
223e7fbf | 11421 | echo "configure:11422: checking for Xpm library" >&5 |
1e6feb95 | 11422 | |
ab9b9eab VZ |
11423 | ac_find_libraries= |
11424 | for ac_dir in $SEARCH_LIB; | |
11425 | do | |
f11bdd03 | 11426 | for ac_extension in a so sl dylib; do |
ab9b9eab VZ |
11427 | if test -f "$ac_dir/libXpm.$ac_extension"; then |
11428 | ac_find_libraries=$ac_dir | |
11429 | break 2 | |
11430 | fi | |
11431 | done | |
11432 | done | |
11433 | ||
1e6feb95 VZ |
11434 | if test "$ac_find_libraries" != "" ; then |
11435 | ||
ab9b9eab VZ |
11436 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
11437 | result=$? | |
11438 | if test $result = 0; then | |
11439 | ac_path_to_link="" | |
11440 | else | |
11441 | ac_path_to_link="-L$ac_find_libraries" | |
11442 | fi | |
11443 | ||
1e6feb95 | 11444 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" |
3d63bc3a | 11445 | xpm_link=" -lXpm" |
1e6feb95 | 11446 | cat >> confdefs.h <<\EOF |
ab9b9eab VZ |
11447 | #define wxHAVE_LIB_XPM 1 |
11448 | EOF | |
11449 | ||
1e6feb95 VZ |
11450 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
11451 | else | |
11452 | cat > conftest.$ac_ext <<EOF | |
223e7fbf | 11453 | #line 11454 "configure" |
cd6d6d5b VZ |
11454 | #include "confdefs.h" |
11455 | ||
1e6feb95 VZ |
11456 | #include <X11/xpm.h> |
11457 | ||
698dcdb6 | 11458 | int main() { |
cd6d6d5b | 11459 | |
1e6feb95 | 11460 | int version; |
1e6feb95 VZ |
11461 | version = XpmLibraryVersion(); |
11462 | ||
698dcdb6 VZ |
11463 | ; return 0; } |
11464 | EOF | |
223e7fbf | 11465 | if { (eval echo configure:11466: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
11466 | rm -rf conftest* |
11467 | ||
3d63bc3a | 11468 | xpm_link=" -lXpm" |
3a922bb4 | 11469 | cat >> confdefs.h <<\EOF |
3ace2e6d SN |
11470 | #define wxHAVE_LIB_XPM 1 |
11471 | EOF | |
11472 | ||
1e6feb95 VZ |
11473 | echo "$ac_t""found in default search path" 1>&6 |
11474 | COMPILED_X_PROGRAM=0 | |
11475 | ||
cd6d6d5b | 11476 | else |
698dcdb6 VZ |
11477 | echo "configure: failed program was:" >&5 |
11478 | cat conftest.$ac_ext >&5 | |
11479 | rm -rf conftest* | |
11480 | ||
1e6feb95 VZ |
11481 | echo "$ac_t""no" 1>&6 |
11482 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
11483 | ||
698dcdb6 | 11484 | |
cd6d6d5b | 11485 | fi |
698dcdb6 | 11486 | rm -f conftest* |
1e6feb95 VZ |
11487 | fi |
11488 | ||
3d63bc3a | 11489 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link -lXmu -lXext -lXt -lX11" |
334f0d2c | 11490 | TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo" |
1e6feb95 VZ |
11491 | TOOLKIT=MOTIF |
11492 | GUIDIST=MOTIF_DIST | |
ab9b9eab VZ |
11493 | fi |
11494 | ||
683dccda GD |
11495 | if test "$wxUSE_MAC" = 1; then |
11496 | if test "$wxUSE_PRECOMP" = "yes"; then | |
3d63bc3a | 11497 | CPPFLAGS="$CPPFLAGS -cpp-precomp" |
683dccda | 11498 | fi |
3d63bc3a RL |
11499 | CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile" |
11500 | CFLAGS="$CFLAGS -fpascal-strings" | |
11501 | CXXFLAGS="$CXXFLAGS -fpascal-strings" | |
11502 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -DTARGET_CARBON" | |
d08b457b | 11503 | |
13c0541d | 11504 | TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile" |
1e6feb95 | 11505 | TOOLKIT=MAC |
683dccda | 11506 | GUIDIST=MACX_DIST |
1e6feb95 | 11507 | fi |
10f2d63a | 11508 | |
1e6feb95 VZ |
11509 | if test "$wxUSE_PM" = 1; then |
11510 | TOOLKIT=PM | |
11511 | GUIDIST=GTK_DIST | |
11512 | fi | |
b4085ce6 | 11513 | |
3a922bb4 | 11514 | if test "$TOOLKIT" = "PM" ; then |
1e6feb95 | 11515 | TOOLKIT_DIR="os2" |
3a922bb4 RL |
11516 | else |
11517 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
1e6feb95 | 11518 | fi |
e07802fc | 11519 | |
3a922bb4 | 11520 | PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst" |
1e6feb95 | 11521 | |
3a922bb4 RL |
11522 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
11523 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
11524 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" | |
11525 | TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}" | |
11526 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" | |
11527 | WIDGET_SET=univ | |
f6bcfd97 | 11528 | else |
3a922bb4 | 11529 | ALL_OBJECTS="\$(GUIOBJS)" |
1e6feb95 VZ |
11530 | fi |
11531 | ||
ba0e650c | 11532 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" |
1e6feb95 VZ |
11533 | |
11534 | if test "$TOOLKIT" != "MSW"; then | |
11535 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" | |
11536 | fi | |
11537 | ||
11538 | if test "$wxUSE_HTML" = "yes"; then | |
11539 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
11540 | fi | |
3fcdd07b | 11541 | |
3a922bb4 RL |
11542 | if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then |
11543 | ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)" | |
831b3152 | 11544 | fi |
4f14bcd8 | 11545 | if test "$wxUSE_LIBJPEG" = "builtin" ; then |
2224580a | 11546 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" |
d9d8273d | 11547 | fi |
4f14bcd8 | 11548 | if test "$wxUSE_LIBTIFF" = "builtin" ; then |
d9d8273d RR |
11549 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" |
11550 | fi | |
4f14bcd8 | 11551 | if test "$wxUSE_LIBPNG" = "builtin" ; then |
d9d8273d RR |
11552 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" |
11553 | fi | |
4f14bcd8 | 11554 | if test "$wxUSE_FREETYPE" = "builtin" ; then |
3fed1840 RR |
11555 | ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)" |
11556 | fi | |
2224580a | 11557 | |
2224580a VZ |
11558 | RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst" |
11559 | RPM_SPEC="wx\$(TOOLKIT).spec" | |
11560 | ||
11561 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
11562 | DISTDIR="wx\$(TOOLKIT)" | |
10f2d63a | 11563 | else |
dad6c0ea VZ |
11564 | USE_GUI=0 |
11565 | ||
3a922bb4 | 11566 | TOOLKIT_DIR="base" |
f6bcfd97 | 11567 | |
3a922bb4 RL |
11568 | if test "$USE_WIN32" = 1 ; then |
11569 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}" | |
11570 | TOOLKIT_VPATH="\${top_srcdir}/src/msw" | |
0b2effe9 | 11571 | |
3a922bb4 | 11572 | TOOLKIT="MSW" |
f6bcfd97 | 11573 | else |
3a922bb4 RL |
11574 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}" |
11575 | TOOLKIT_VPATH="\${top_srcdir}/src/unix" | |
f6bcfd97 BP |
11576 | fi |
11577 | ||
831b3152 | 11578 | PORT_FILES="\${top_srcdir}/src/files.lst" |
2224580a VZ |
11579 | RPM_FILES="src/rpmfiles.lst" |
11580 | RPM_SPEC="wxBase.spec" | |
11581 | ||
11582 | GUIDIST="BASE_DIST" | |
11583 | DISTDIR="wxBase" | |
10f2d63a VZ |
11584 | fi |
11585 | ||
4f14bcd8 | 11586 | if test "$wxUSE_REGEX" = "builtin" ; then |
3a922bb4 RL |
11587 | ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)" |
11588 | fi | |
4f14bcd8 | 11589 | if test "$wxUSE_ZLIB" = "builtin" ; then |
3a922bb4 RL |
11590 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" |
11591 | fi | |
10f2d63a | 11592 | |
3a922bb4 RL |
11593 | if test "$wxUSE_OPENGL" = "yes"; then |
11594 | if test "$wxUSE_MAC" = 1; then | |
3a922bb4 | 11595 | OPENGL_LIBS="-framework OpenGL -framework AGL" |
3a922bb4 | 11596 | else |
6f754473 | 11597 | ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'` |
3a922bb4 | 11598 | echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6 |
223e7fbf | 11599 | echo "configure:11600: checking for GL/gl.h" >&5 |
3a922bb4 RL |
11600 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11601 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11602 | else | |
11603 | cat > conftest.$ac_ext <<EOF | |
223e7fbf | 11604 | #line 11605 "configure" |
3a922bb4 RL |
11605 | #include "confdefs.h" |
11606 | #include <GL/gl.h> | |
11607 | EOF | |
11608 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
223e7fbf | 11609 | { (eval echo configure:11610: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3a922bb4 RL |
11610 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11611 | if test -z "$ac_err"; then | |
11612 | rm -rf conftest* | |
11613 | eval "ac_cv_header_$ac_safe=yes" | |
11614 | else | |
11615 | echo "$ac_err" >&5 | |
11616 | echo "configure: failed program was:" >&5 | |
11617 | cat conftest.$ac_ext >&5 | |
11618 | rm -rf conftest* | |
11619 | eval "ac_cv_header_$ac_safe=no" | |
11620 | fi | |
11621 | rm -f conftest* | |
11622 | fi | |
11623 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11624 | echo "$ac_t""yes" 1>&6 | |
11625 | ||
3a922bb4 | 11626 | echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6 |
223e7fbf | 11627 | echo "configure:11628: checking for glFlush in -lGL" >&5 |
3a922bb4 RL |
11628 | ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'` |
11629 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11630 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11631 | else | |
11632 | ac_save_LIBS="$LIBS" | |
11633 | LIBS="-lGL $LIBS" | |
11634 | cat > conftest.$ac_ext <<EOF | |
223e7fbf | 11635 | #line 11636 "configure" |
3a922bb4 RL |
11636 | #include "confdefs.h" |
11637 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11638 | /* We use char because int might match the return type of a gcc2 | |
11639 | builtin and then its argument prototype would still apply. */ | |
11640 | char glFlush(); | |
55e80573 | 11641 | |
3a922bb4 RL |
11642 | int main() { |
11643 | glFlush() | |
11644 | ; return 0; } | |
11645 | EOF | |
223e7fbf | 11646 | if { (eval echo configure:11647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3a922bb4 RL |
11647 | rm -rf conftest* |
11648 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11649 | else | |
11650 | echo "configure: failed program was:" >&5 | |
11651 | cat conftest.$ac_ext >&5 | |
11652 | rm -rf conftest* | |
11653 | eval "ac_cv_lib_$ac_lib_var=no" | |
11654 | fi | |
11655 | rm -f conftest* | |
11656 | LIBS="$ac_save_LIBS" | |
55e80573 | 11657 | |
3a922bb4 RL |
11658 | fi |
11659 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11660 | echo "$ac_t""yes" 1>&6 | |
11661 | ||
11662 | OPENGL_LIBS="-lGL -lGLU" | |
11663 | ||
11664 | else | |
11665 | echo "$ac_t""no" 1>&6 | |
11666 | ||
6f754473 | 11667 | echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6 |
223e7fbf | 11668 | echo "configure:11669: checking for glFlush in -lMesaGL" >&5 |
3a922bb4 RL |
11669 | ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'` |
11670 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11671 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11672 | else | |
11673 | ac_save_LIBS="$LIBS" | |
11674 | LIBS="-lMesaGL $LIBS" | |
11675 | cat > conftest.$ac_ext <<EOF | |
223e7fbf | 11676 | #line 11677 "configure" |
3a922bb4 RL |
11677 | #include "confdefs.h" |
11678 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11679 | /* We use char because int might match the return type of a gcc2 | |
11680 | builtin and then its argument prototype would still apply. */ | |
11681 | char glFlush(); | |
11682 | ||
11683 | int main() { | |
11684 | glFlush() | |
11685 | ; return 0; } | |
11686 | EOF | |
223e7fbf | 11687 | if { (eval echo configure:11688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3a922bb4 RL |
11688 | rm -rf conftest* |
11689 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11690 | else | |
11691 | echo "configure: failed program was:" >&5 | |
11692 | cat conftest.$ac_ext >&5 | |
11693 | rm -rf conftest* | |
11694 | eval "ac_cv_lib_$ac_lib_var=no" | |
11695 | fi | |
11696 | rm -f conftest* | |
11697 | LIBS="$ac_save_LIBS" | |
11698 | ||
11699 | fi | |
11700 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11701 | echo "$ac_t""yes" 1>&6 | |
11702 | ||
11703 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
11704 | ||
11705 | else | |
11706 | echo "$ac_t""no" 1>&6 | |
11707 | fi | |
55e80573 | 11708 | |
6f754473 | 11709 | |
3a922bb4 RL |
11710 | fi |
11711 | ||
6f754473 | 11712 | |
3a922bb4 RL |
11713 | else |
11714 | echo "$ac_t""no" 1>&6 | |
3a922bb4 RL |
11715 | fi |
11716 | ||
6f754473 VZ |
11717 | |
11718 | if test "x$OPENGL_LIBS" = "x"; then | |
11719 | { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; } | |
11720 | fi | |
11721 | fi | |
11722 | ||
11723 | if test "$wxUSE_OPENGL" = "yes"; then | |
11724 | cat >> confdefs.h <<\EOF | |
11725 | #define wxUSE_OPENGL 1 | |
11726 | EOF | |
11727 | ||
11728 | cat >> confdefs.h <<\EOF | |
11729 | #define wxUSE_GLCANVAS 1 | |
11730 | EOF | |
11731 | ||
11732 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl" | |
3a922bb4 RL |
11733 | fi |
11734 | fi | |
11735 | ||
11736 | if test -z "$TOOLKIT_VPATH" ; then | |
11737 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" | |
11738 | fi | |
11739 | ||
11740 | if test -n "$TOOLKIT" ; then | |
11741 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
11742 | fi | |
11743 | ||
f676c7ff MB |
11744 | lib_unicode_suffix= |
11745 | if test "$wxUSE_UNICODE" = "yes"; then | |
11746 | lib_unicode_suffix=u | |
11747 | fi | |
11748 | ||
3a922bb4 RL |
11749 | lib_debug_suffix= |
11750 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
11751 | lib_debug_suffix=d | |
3a922bb4 RL |
11752 | fi |
11753 | ||
f676c7ff MB |
11754 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}" |
11755 | TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}" | |
3a922bb4 RL |
11756 | |
11757 | if test "$cross_compiling" = "yes"; then | |
11758 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}" | |
11759 | TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}" | |
11760 | fi | |
11761 | ||
11762 | WX_LIBRARY="wx_${TOOLCHAIN_NAME}" | |
11763 | WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}" | |
11764 | ||
3a922bb4 RL |
11765 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" |
11766 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
11767 | ||
11768 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}" | |
11769 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
11770 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}" | |
11771 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
11772 | ||
d08b457b | 11773 | WX_RESOURCES_MACOSX="lib${WX_LIBRARY}.rsrc" |
e23081de | 11774 | WX_RESOURCES_MACOSX_COMPILED="lib${WX_LIBRARY}.r" |
3a922bb4 | 11775 | |
978f1259 RL |
11776 | case "${host}" in |
11777 | *-*-cygwin* | *-*-mingw32* ) | |
11778 | ||
2da4f892 | 11779 | |
978f1259 RL |
11780 | |
11781 | if test "$cross_compiling" != "yes"; then | |
11782 | WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" | |
11783 | WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" | |
11784 | WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}" | |
11785 | WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
2da4f892 RL |
11786 | else |
11787 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
11788 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
978f1259 RL |
11789 | fi |
11790 | ||
11791 | esac | |
11792 | ||
11793 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
11794 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a" | |
11795 | ||
11796 | WXCONFIG_LIBS="-l${WX_LIBRARY}" | |
11797 | ||
11798 | if test "$wxUSE_OPENGL" = "yes"; then | |
11799 | WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} $OPENGL_LIBS" | |
11800 | fi | |
11801 | ||
11802 | ||
3a922bb4 RL |
11803 | |
11804 | if test "$wxUSE_SHARED" = "yes"; then | |
55e80573 VZ |
11805 | |
11806 | if test "$wxUSE_OPENGL" = "yes"; then | |
11807 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
3a922bb4 | 11808 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}" |
55e80573 VZ |
11809 | else |
11810 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
3a922bb4 | 11811 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}" |
55e80573 VZ |
11812 | fi |
11813 | ||
dd4f7467 | 11814 | if test "$GCC" = "yes"; then |
55e80573 | 11815 | PIC_FLAG="-fPIC" |
dd4f7467 | 11816 | fi |
55e80573 VZ |
11817 | |
11818 | SHARED_LD="${CXX} -shared -o" | |
698dcdb6 | 11819 | |
10f2d63a VZ |
11820 | case "${host}" in |
11821 | *-hp-hpux* ) | |
55e80573 | 11822 | if test "$GCC" != "yes"; then |
3d63bc3a | 11823 | LDFLAGS="$LDFLAGS -L/usr/lib" |
f6bcfd97 | 11824 | |
10f2d63a VZ |
11825 | SHARED_LD="${CXX} -b -o" |
11826 | PIC_FLAG="+Z" | |
11827 | fi | |
55e80573 | 11828 | |
7b7a7637 RL |
11829 | if test "$wxUSE_OPENGL" = "yes"; then |
11830 | WX_ALL_INSTALLED="preinstall_gl" | |
11831 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" | |
11832 | else | |
11833 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" | |
11834 | fi | |
10f2d63a | 11835 | ;; |
b12915c1 | 11836 | |
55e80573 VZ |
11837 | *-*-linux* ) |
11838 | if test "$GCC" != "yes"; then | |
11839 | echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6 | |
223e7fbf | 11840 | echo "configure:11841: checking for Intel compiler" >&5 |
55e80573 VZ |
11841 | if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then |
11842 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11843 | else | |
11844 | ||
11845 | cat > conftest.$ac_ext <<EOF | |
223e7fbf | 11846 | #line 11847 "configure" |
55e80573 VZ |
11847 | #include "confdefs.h" |
11848 | ||
11849 | int main() { | |
11850 | ||
11851 | #ifndef __INTEL_COMPILER | |
dd4f7467 | 11852 | #error Not icc |
55e80573 VZ |
11853 | #endif |
11854 | ||
11855 | ; return 0; } | |
11856 | EOF | |
223e7fbf | 11857 | if { (eval echo configure:11858: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
55e80573 VZ |
11858 | rm -rf conftest* |
11859 | wx_cv_prog_icc=yes | |
11860 | else | |
11861 | echo "configure: failed program was:" >&5 | |
11862 | cat conftest.$ac_ext >&5 | |
11863 | rm -rf conftest* | |
11864 | wx_cv_prog_icc=no | |
11865 | ||
11866 | fi | |
11867 | rm -f conftest* | |
11868 | ||
11869 | fi | |
11870 | ||
11871 | echo "$ac_t""$wx_cv_prog_icc" 1>&6 | |
55e80573 VZ |
11872 | if test "$wx_cv_prog_icc" = "yes"; then |
11873 | PIC_FLAG="-KPIC" | |
11874 | fi | |
11875 | fi | |
11876 | ||
3a922bb4 RL |
11877 | if test "$wxUSE_SONAME" = "yes" ; then |
11878 | SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}" | |
11879 | SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}" | |
f6bcfd97 | 11880 | WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)" |
00cf1208 | 11881 | fi |
10f2d63a | 11882 | ;; |
55e80573 | 11883 | |
10f2d63a VZ |
11884 | *-*-solaris2* ) |
11885 | if test "$GCC" = yes ; then | |
f6bcfd97 | 11886 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" |
10f2d63a VZ |
11887 | else |
11888 | SHARED_LD="${CXX} -G -o" | |
11889 | PIC_FLAG="-KPIC" | |
7b7a7637 RL |
11890 | SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}" |
11891 | SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED}" | |
10f2d63a | 11892 | fi |
10f2d63a | 11893 | ;; |
55e80573 | 11894 | |
b4085ce6 | 11895 | *-*-darwin* ) |
3d63bc3a RL |
11896 | CFLAGS="$CFLAGS -fno-common" |
11897 | CXXFLAGS="$CXXFLAGS -fno-common" | |
11898 | SHARED_LD="$CXX -dynamiclib -o" | |
ea5999b9 | 11899 | PIC_FLAG="-dynamic -fPIC" |
10f2d63a | 11900 | ;; |
55e80573 | 11901 | |
10f2d63a VZ |
11902 | *-*-aix* ) |
11903 | SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o" | |
10f2d63a | 11904 | ;; |
55e80573 | 11905 | |
7b7a7637 | 11906 | *-*-cygwin* | *-*-mingw32* ) |
77e13408 | 11907 | |
2da4f892 | 11908 | WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a" |
77e13408 | 11909 | |
77e13408 | 11910 | SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o" |
3a922bb4 | 11911 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXUSINGDLL=1" |
25d0687a RL |
11912 | |
11913 | PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1" | |
7b7a7637 RL |
11914 | |
11915 | if test "$wxUSE_OPENGL" = "yes"; then | |
f6bcfd97 | 11916 | WX_ALL_INSTALLED="preinstall_gl" |
978f1259 | 11917 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" |
f6bcfd97 | 11918 | else |
978f1259 | 11919 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" |
f6bcfd97 | 11920 | fi |
10f2d63a | 11921 | ;; |
55e80573 | 11922 | |
6fa882bd | 11923 | *-pc-os2_emx | *-pc-os2-emx ) |
7b7a7637 | 11924 | wxUSE_SHARED=no |
10f2d63a | 11925 | ;; |
55e80573 | 11926 | |
b12915c1 | 11927 | *-*-beos* ) |
e2b8b066 | 11928 | SHARED_LD="${LD} -shared -o" |
b12915c1 | 11929 | ;; |
55e80573 VZ |
11930 | |
11931 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ | |
11932 | *-*-sunos4* | \ | |
11933 | *-*-irix5* | *-*-irix6* | \ | |
11934 | *-*-osf* | \ | |
11935 | *-*-dgux5* | \ | |
11936 | *-*-sysv5* ) | |
11937 | ;; | |
11938 | ||
10f2d63a | 11939 | *) |
7b7a7637 | 11940 | { echo "configure: error: unknown system type $host." 1>&2; exit 1; } |
10f2d63a VZ |
11941 | esac |
11942 | ||
11943 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
11944 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
bdad4e7e | 11945 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" |
10f2d63a | 11946 | fi |
55e80573 | 11947 | |
3711412e | 11948 | WX_TARGET_LIBRARY_TYPE="so" |
3a922bb4 | 11949 | fi |
f6bcfd97 | 11950 | |
3a922bb4 | 11951 | if test "$wxUSE_SHARED" = "no"; then |
f6bcfd97 | 11952 | |
3a922bb4 | 11953 | if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then |
f6bcfd97 BP |
11954 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" |
11955 | fi | |
11956 | ||
6fa882bd RR |
11957 | if test "$wxUSE_MAC" = 1; then |
11958 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
11959 | fi | |
11960 | ||
3a922bb4 RL |
11961 | if test "$wxUSE_OPENGL" = "yes"; then |
11962 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl" | |
11963 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}" | |
11964 | else | |
11965 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}" | |
11966 | fi | |
698dcdb6 | 11967 | |
3a922bb4 RL |
11968 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" |
11969 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" | |
11970 | ||
11971 | WX_TARGET_LIBRARY_TYPE="a" | |
10f2d63a | 11972 | fi |
10f2d63a | 11973 | |
d08b457b GD |
11974 | if test "$wxUSE_MAC" = 1; then |
11975 | WX_ALL="${WX_ALL} \$(build_libdir)/lib${WX_LIBRARY}.r" | |
e23081de | 11976 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res" |
d08b457b GD |
11977 | # Extract the first word of "Rez", so it can be a program name with args. |
11978 | set dummy Rez; ac_word=$2 | |
11979 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
1d93af2f | 11980 | echo "configure:11981: checking for $ac_word" >&5 |
d08b457b GD |
11981 | if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then |
11982 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11983 | else | |
11984 | if test -n "$RESCOMP"; then | |
11985 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
11986 | else | |
11987 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
11988 | ac_dummy="$PATH" | |
11989 | for ac_dir in $ac_dummy; do | |
11990 | test -z "$ac_dir" && ac_dir=. | |
11991 | if test -f $ac_dir/$ac_word; then | |
11992 | ac_cv_prog_RESCOMP="Rez" | |
11993 | break | |
11994 | fi | |
11995 | done | |
11996 | IFS="$ac_save_ifs" | |
11997 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
11998 | fi | |
11999 | fi | |
12000 | RESCOMP="$ac_cv_prog_RESCOMP" | |
12001 | if test -n "$RESCOMP"; then | |
12002 | echo "$ac_t""$RESCOMP" 1>&6 | |
12003 | else | |
12004 | echo "$ac_t""no" 1>&6 | |
12005 | fi | |
12006 | ||
12007 | # Extract the first word of "Derez", so it can be a program name with args. | |
12008 | set dummy Derez; ac_word=$2 | |
12009 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
1d93af2f | 12010 | echo "configure:12011: checking for $ac_word" >&5 |
d08b457b GD |
12011 | if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then |
12012 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12013 | else | |
12014 | if test -n "$DEREZ"; then | |
12015 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
12016 | else | |
12017 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
12018 | ac_dummy="$PATH" | |
12019 | for ac_dir in $ac_dummy; do | |
12020 | test -z "$ac_dir" && ac_dir=. | |
12021 | if test -f $ac_dir/$ac_word; then | |
12022 | ac_cv_prog_DEREZ="Derez" | |
12023 | break | |
12024 | fi | |
12025 | done | |
12026 | IFS="$ac_save_ifs" | |
12027 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/Derez" | |
12028 | fi | |
12029 | fi | |
12030 | DEREZ="$ac_cv_prog_DEREZ" | |
12031 | if test -n "$DEREZ"; then | |
12032 | echo "$ac_t""$DEREZ" 1>&6 | |
12033 | else | |
12034 | echo "$ac_t""no" 1>&6 | |
12035 | fi | |
12036 | ||
12037 | LIBWXMACRES="\$(top_builddir)/lib/lib${WX_LIBRARY}.r" | |
12038 | LIBWXMACRESCOMP="\$(RESCOMP) Carbon.r -t APPL ${LIBWXMACRES} -o \$(BIN_PROGRAM)" | |
e23081de | 12039 | LIBWXMACRESWXCONFIG="${RESCOMP} Carbon.r -t APPL \${prefix}/lib/${WX_RESOURCES_MACOSX_COMPILED} -o" |
d08b457b GD |
12040 | fi |
12041 | ||
3a922bb4 | 12042 | |
13c0541d GD |
12043 | if test "$wxUSE_MAC" != 1; then |
12044 | for ac_hdr in strings.h | |
9cfadba2 | 12045 | do |
698dcdb6 VZ |
12046 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12047 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
1d93af2f | 12048 | echo "configure:12049: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
12049 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12050 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12051 | else | |
12052 | cat > conftest.$ac_ext <<EOF | |
1d93af2f | 12053 | #line 12054 "configure" |
9cfadba2 | 12054 | #include "confdefs.h" |
698dcdb6 VZ |
12055 | #include <$ac_hdr> |
12056 | EOF | |
12057 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
1d93af2f | 12058 | { (eval echo configure:12059: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
12059 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12060 | if test -z "$ac_err"; then | |
12061 | rm -rf conftest* | |
12062 | eval "ac_cv_header_$ac_safe=yes" | |
6232543b | 12063 | else |
698dcdb6 VZ |
12064 | echo "$ac_err" >&5 |
12065 | echo "configure: failed program was:" >&5 | |
9cfadba2 | 12066 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
12067 | rm -rf conftest* |
12068 | eval "ac_cv_header_$ac_safe=no" | |
9cfadba2 | 12069 | fi |
698dcdb6 | 12070 | rm -f conftest* |
9cfadba2 | 12071 | fi |
698dcdb6 VZ |
12072 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12073 | echo "$ac_t""yes" 1>&6 | |
12074 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12075 | cat >> confdefs.h <<EOF | |
12076 | #define $ac_tr_hdr 1 | |
9cfadba2 | 12077 | EOF |
698dcdb6 VZ |
12078 | |
12079 | else | |
12080 | echo "$ac_t""no" 1>&6 | |
9cfadba2 VZ |
12081 | fi |
12082 | done | |
10f2d63a | 12083 | |
13c0541d GD |
12084 | fi |
12085 | ||
3a922bb4 | 12086 | for ac_hdr in stdlib.h |
10f2d63a | 12087 | do |
698dcdb6 VZ |
12088 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12089 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
1d93af2f | 12090 | echo "configure:12091: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
12091 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12092 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12093 | else | |
12094 | cat > conftest.$ac_ext <<EOF | |
1d93af2f | 12095 | #line 12096 "configure" |
10f2d63a | 12096 | #include "confdefs.h" |
698dcdb6 VZ |
12097 | #include <$ac_hdr> |
12098 | EOF | |
12099 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
1d93af2f | 12100 | { (eval echo configure:12101: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
12101 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12102 | if test -z "$ac_err"; then | |
12103 | rm -rf conftest* | |
12104 | eval "ac_cv_header_$ac_safe=yes" | |
6232543b | 12105 | else |
698dcdb6 VZ |
12106 | echo "$ac_err" >&5 |
12107 | echo "configure: failed program was:" >&5 | |
10f2d63a | 12108 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
12109 | rm -rf conftest* |
12110 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 12111 | fi |
698dcdb6 | 12112 | rm -f conftest* |
10f2d63a | 12113 | fi |
698dcdb6 VZ |
12114 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12115 | echo "$ac_t""yes" 1>&6 | |
12116 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12117 | cat >> confdefs.h <<EOF | |
12118 | #define $ac_tr_hdr 1 | |
10f2d63a | 12119 | EOF |
698dcdb6 VZ |
12120 | |
12121 | else | |
12122 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
12123 | fi |
12124 | done | |
12125 | ||
3a922bb4 | 12126 | for ac_hdr in unistd.h |
10f2d63a | 12127 | do |
698dcdb6 VZ |
12128 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12129 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
1d93af2f | 12130 | echo "configure:12131: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
12131 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12132 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12133 | else | |
12134 | cat > conftest.$ac_ext <<EOF | |
1d93af2f | 12135 | #line 12136 "configure" |
10f2d63a | 12136 | #include "confdefs.h" |
698dcdb6 VZ |
12137 | #include <$ac_hdr> |
12138 | EOF | |
12139 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
1d93af2f | 12140 | { (eval echo configure:12141: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
12141 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12142 | if test -z "$ac_err"; then | |
12143 | rm -rf conftest* | |
12144 | eval "ac_cv_header_$ac_safe=yes" | |
6f72b082 | 12145 | else |
698dcdb6 VZ |
12146 | echo "$ac_err" >&5 |
12147 | echo "configure: failed program was:" >&5 | |
6f72b082 | 12148 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
12149 | rm -rf conftest* |
12150 | eval "ac_cv_header_$ac_safe=no" | |
6f72b082 | 12151 | fi |
698dcdb6 | 12152 | rm -f conftest* |
6f72b082 | 12153 | fi |
698dcdb6 VZ |
12154 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12155 | echo "$ac_t""yes" 1>&6 | |
12156 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12157 | cat >> confdefs.h <<EOF | |
12158 | #define $ac_tr_hdr 1 | |
6f72b082 | 12159 | EOF |
698dcdb6 VZ |
12160 | |
12161 | else | |
12162 | echo "$ac_t""no" 1>&6 | |
6f72b082 OK |
12163 | fi |
12164 | done | |
12165 | ||
3a922bb4 | 12166 | for ac_hdr in wchar.h |
6f72b082 | 12167 | do |
698dcdb6 VZ |
12168 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12169 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
1d93af2f | 12170 | echo "configure:12171: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
12171 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12172 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12173 | else | |
12174 | cat > conftest.$ac_ext <<EOF | |
1d93af2f | 12175 | #line 12176 "configure" |
6f72b082 | 12176 | #include "confdefs.h" |
698dcdb6 VZ |
12177 | #include <$ac_hdr> |
12178 | EOF | |
12179 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
1d93af2f | 12180 | { (eval echo configure:12181: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
12181 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12182 | if test -z "$ac_err"; then | |
12183 | rm -rf conftest* | |
12184 | eval "ac_cv_header_$ac_safe=yes" | |
6f72b082 | 12185 | else |
698dcdb6 VZ |
12186 | echo "$ac_err" >&5 |
12187 | echo "configure: failed program was:" >&5 | |
6f72b082 | 12188 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
12189 | rm -rf conftest* |
12190 | eval "ac_cv_header_$ac_safe=no" | |
6f72b082 | 12191 | fi |
698dcdb6 | 12192 | rm -f conftest* |
6f72b082 | 12193 | fi |
698dcdb6 VZ |
12194 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12195 | echo "$ac_t""yes" 1>&6 | |
12196 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12197 | cat >> confdefs.h <<EOF | |
12198 | #define $ac_tr_hdr 1 | |
6f72b082 | 12199 | EOF |
698dcdb6 VZ |
12200 | |
12201 | else | |
12202 | echo "$ac_t""no" 1>&6 | |
6f72b082 OK |
12203 | fi |
12204 | done | |
12205 | ||
3a922bb4 | 12206 | for ac_hdr in wcstr.h |
6f72b082 | 12207 | do |
698dcdb6 VZ |
12208 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12209 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
1d93af2f | 12210 | echo "configure:12211: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
12211 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12212 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12213 | else | |
12214 | cat > conftest.$ac_ext <<EOF | |
1d93af2f | 12215 | #line 12216 "configure" |
6f72b082 | 12216 | #include "confdefs.h" |
698dcdb6 VZ |
12217 | #include <$ac_hdr> |
12218 | EOF | |
12219 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
1d93af2f | 12220 | { (eval echo configure:12221: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
12221 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12222 | if test -z "$ac_err"; then | |
12223 | rm -rf conftest* | |
12224 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 12225 | else |
698dcdb6 VZ |
12226 | echo "$ac_err" >&5 |
12227 | echo "configure: failed program was:" >&5 | |
10f2d63a | 12228 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
12229 | rm -rf conftest* |
12230 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 12231 | fi |
698dcdb6 | 12232 | rm -f conftest* |
10f2d63a | 12233 | fi |
698dcdb6 VZ |
12234 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12235 | echo "$ac_t""yes" 1>&6 | |
12236 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12237 | cat >> confdefs.h <<EOF | |
12238 | #define $ac_tr_hdr 1 | |
10f2d63a | 12239 | EOF |
698dcdb6 VZ |
12240 | |
12241 | else | |
12242 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
12243 | fi |
12244 | done | |
12245 | ||
3a922bb4 | 12246 | for ac_hdr in fnmatch.h |
0fb0dd83 | 12247 | do |
698dcdb6 VZ |
12248 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12249 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
1d93af2f | 12250 | echo "configure:12251: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
12251 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12252 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12253 | else | |
12254 | cat > conftest.$ac_ext <<EOF | |
1d93af2f | 12255 | #line 12256 "configure" |
0fb0dd83 | 12256 | #include "confdefs.h" |
698dcdb6 VZ |
12257 | #include <$ac_hdr> |
12258 | EOF | |
12259 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
1d93af2f | 12260 | { (eval echo configure:12261: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
12261 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12262 | if test -z "$ac_err"; then | |
12263 | rm -rf conftest* | |
12264 | eval "ac_cv_header_$ac_safe=yes" | |
0fb0dd83 | 12265 | else |
698dcdb6 VZ |
12266 | echo "$ac_err" >&5 |
12267 | echo "configure: failed program was:" >&5 | |
0fb0dd83 | 12268 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
12269 | rm -rf conftest* |
12270 | eval "ac_cv_header_$ac_safe=no" | |
0fb0dd83 | 12271 | fi |
698dcdb6 | 12272 | rm -f conftest* |
0fb0dd83 | 12273 | fi |
698dcdb6 VZ |
12274 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12275 | echo "$ac_t""yes" 1>&6 | |
12276 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12277 | cat >> confdefs.h <<EOF | |
12278 | #define $ac_tr_hdr 1 | |
0fb0dd83 | 12279 | EOF |
698dcdb6 VZ |
12280 | |
12281 | else | |
12282 | echo "$ac_t""no" 1>&6 | |
0fb0dd83 RR |
12283 | fi |
12284 | done | |
12285 | ||
3a922bb4 | 12286 | for ac_hdr in iconv.h |
1f8ae82f | 12287 | do |
698dcdb6 VZ |
12288 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12289 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
1d93af2f | 12290 | echo "configure:12291: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
12291 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12292 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12293 | else | |
12294 | cat > conftest.$ac_ext <<EOF | |
1d93af2f | 12295 | #line 12296 "configure" |
1f8ae82f | 12296 | #include "confdefs.h" |
698dcdb6 VZ |
12297 | #include <$ac_hdr> |
12298 | EOF | |
12299 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
1d93af2f | 12300 | { (eval echo configure:12301: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
12301 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12302 | if test -z "$ac_err"; then | |
12303 | rm -rf conftest* | |
12304 | eval "ac_cv_header_$ac_safe=yes" | |
1f8ae82f | 12305 | else |
698dcdb6 VZ |
12306 | echo "$ac_err" >&5 |
12307 | echo "configure: failed program was:" >&5 | |
1f8ae82f | 12308 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
12309 | rm -rf conftest* |
12310 | eval "ac_cv_header_$ac_safe=no" | |
1f8ae82f | 12311 | fi |
698dcdb6 | 12312 | rm -f conftest* |
1f8ae82f | 12313 | fi |
698dcdb6 VZ |
12314 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12315 | echo "$ac_t""yes" 1>&6 | |
12316 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12317 | cat >> confdefs.h <<EOF | |
12318 | #define $ac_tr_hdr 1 | |
1f8ae82f | 12319 | EOF |
698dcdb6 VZ |
12320 | |
12321 | else | |
12322 | echo "$ac_t""no" 1>&6 | |
1f8ae82f GD |
12323 | fi |
12324 | done | |
12325 | ||
3a922bb4 | 12326 | for ac_hdr in langinfo.h |
10f2d63a | 12327 | do |
698dcdb6 VZ |
12328 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12329 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
1d93af2f | 12330 | echo "configure:12331: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
12331 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12332 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12333 | else | |
12334 | cat > conftest.$ac_ext <<EOF | |
1d93af2f | 12335 | #line 12336 "configure" |
10f2d63a | 12336 | #include "confdefs.h" |
698dcdb6 VZ |
12337 | #include <$ac_hdr> |
12338 | EOF | |
12339 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
1d93af2f | 12340 | { (eval echo configure:12341: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
12341 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12342 | if test -z "$ac_err"; then | |
12343 | rm -rf conftest* | |
12344 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 12345 | else |
698dcdb6 VZ |
12346 | echo "$ac_err" >&5 |
12347 | echo "configure: failed program was:" >&5 | |
10f2d63a | 12348 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
12349 | rm -rf conftest* |
12350 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 12351 | fi |
698dcdb6 | 12352 | rm -f conftest* |
10f2d63a | 12353 | fi |
698dcdb6 VZ |
12354 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12355 | echo "$ac_t""yes" 1>&6 | |
12356 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12357 | cat >> confdefs.h <<EOF | |
12358 | #define $ac_tr_hdr 1 | |
10f2d63a | 12359 | EOF |
698dcdb6 VZ |
12360 | |
12361 | else | |
12362 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
12363 | fi |
12364 | done | |
12365 | ||
10f2d63a | 12366 | |
3a922bb4 RL |
12367 | if test "$wxUSE_GUI" = "yes"; then |
12368 | if test "$wxUSE_UNIX" = "yes"; then | |
12369 | for ac_hdr in X11/XKBlib.h | |
29fd3c0c VS |
12370 | do |
12371 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
12372 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
1d93af2f | 12373 | echo "configure:12374: checking for $ac_hdr" >&5 |
29fd3c0c VS |
12374 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12375 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12376 | else | |
12377 | cat > conftest.$ac_ext <<EOF | |
1d93af2f | 12378 | #line 12379 "configure" |
29fd3c0c VS |
12379 | #include "confdefs.h" |
12380 | #include <$ac_hdr> | |
12381 | EOF | |
12382 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
1d93af2f | 12383 | { (eval echo configure:12384: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
29fd3c0c VS |
12384 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12385 | if test -z "$ac_err"; then | |
12386 | rm -rf conftest* | |
12387 | eval "ac_cv_header_$ac_safe=yes" | |
12388 | else | |
12389 | echo "$ac_err" >&5 | |
12390 | echo "configure: failed program was:" >&5 | |
12391 | cat conftest.$ac_ext >&5 | |
12392 | rm -rf conftest* | |
12393 | eval "ac_cv_header_$ac_safe=no" | |
12394 | fi | |
12395 | rm -f conftest* | |
12396 | fi | |
12397 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
12398 | echo "$ac_t""yes" 1>&6 | |
12399 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12400 | cat >> confdefs.h <<EOF | |
12401 | #define $ac_tr_hdr 1 | |
12402 | EOF | |
12403 | ||
12404 | else | |
12405 | echo "$ac_t""no" 1>&6 | |
12406 | fi | |
12407 | done | |
12408 | ||
3a922bb4 | 12409 | fi |
29fd3c0c VS |
12410 | fi |
12411 | ||
698dcdb6 VZ |
12412 | |
12413 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | |
1d93af2f | 12414 | echo "configure:12415: checking for ANSI C header files" >&5 |
698dcdb6 VZ |
12415 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
12416 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12417 | else |
698dcdb6 | 12418 | cat > conftest.$ac_ext <<EOF |
1d93af2f | 12419 | #line 12420 "configure" |
10f2d63a VZ |
12420 | #include "confdefs.h" |
12421 | #include <stdlib.h> | |
12422 | #include <stdarg.h> | |
12423 | #include <string.h> | |
12424 | #include <float.h> | |
698dcdb6 VZ |
12425 | EOF |
12426 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
1d93af2f | 12427 | { (eval echo configure:12428: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
12428 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12429 | if test -z "$ac_err"; then | |
12430 | rm -rf conftest* | |
10f2d63a VZ |
12431 | ac_cv_header_stdc=yes |
12432 | else | |
698dcdb6 VZ |
12433 | echo "$ac_err" >&5 |
12434 | echo "configure: failed program was:" >&5 | |
10f2d63a | 12435 | cat conftest.$ac_ext >&5 |
698dcdb6 | 12436 | rm -rf conftest* |
10f2d63a VZ |
12437 | ac_cv_header_stdc=no |
12438 | fi | |
698dcdb6 | 12439 | rm -f conftest* |
10f2d63a VZ |
12440 | |
12441 | if test $ac_cv_header_stdc = yes; then | |
12442 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
698dcdb6 | 12443 | cat > conftest.$ac_ext <<EOF |
1d93af2f | 12444 | #line 12445 "configure" |
10f2d63a VZ |
12445 | #include "confdefs.h" |
12446 | #include <string.h> | |
698dcdb6 | 12447 | EOF |
10f2d63a VZ |
12448 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
12449 | egrep "memchr" >/dev/null 2>&1; then | |
12450 | : | |
12451 | else | |
698dcdb6 | 12452 | rm -rf conftest* |
10f2d63a VZ |
12453 | ac_cv_header_stdc=no |
12454 | fi | |
12455 | rm -f conftest* | |
12456 | ||
12457 | fi | |
12458 | ||
12459 | if test $ac_cv_header_stdc = yes; then | |
12460 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
698dcdb6 | 12461 | cat > conftest.$ac_ext <<EOF |
1d93af2f | 12462 | #line 12463 "configure" |
10f2d63a VZ |
12463 | #include "confdefs.h" |
12464 | #include <stdlib.h> | |
698dcdb6 | 12465 | EOF |
10f2d63a VZ |
12466 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
12467 | egrep "free" >/dev/null 2>&1; then | |
12468 | : | |
12469 | else | |
698dcdb6 | 12470 | rm -rf conftest* |
10f2d63a VZ |
12471 | ac_cv_header_stdc=no |
12472 | fi | |
12473 | rm -f conftest* | |
12474 | ||
12475 | fi | |
12476 | ||
12477 | if test $ac_cv_header_stdc = yes; then | |
12478 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
698dcdb6 | 12479 | if test "$cross_compiling" = yes; then |
10f2d63a VZ |
12480 | : |
12481 | else | |
698dcdb6 | 12482 | cat > conftest.$ac_ext <<EOF |
1d93af2f | 12483 | #line 12484 "configure" |
10f2d63a VZ |
12484 | #include "confdefs.h" |
12485 | #include <ctype.h> | |
698dcdb6 VZ |
12486 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
12487 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
1e487827 | 12488 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
698dcdb6 VZ |
12489 | int main () { int i; for (i = 0; i < 256; i++) |
12490 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
12491 | exit (0); } | |
12492 | ||
12493 | EOF | |
1d93af2f | 12494 | if { (eval echo configure:12495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 12495 | then |
10f2d63a VZ |
12496 | : |
12497 | else | |
698dcdb6 VZ |
12498 | echo "configure: failed program was:" >&5 |
12499 | cat conftest.$ac_ext >&5 | |
12500 | rm -fr conftest* | |
12501 | ac_cv_header_stdc=no | |
10f2d63a | 12502 | fi |
698dcdb6 | 12503 | rm -fr conftest* |
10f2d63a | 12504 | fi |
698dcdb6 | 12505 | |
10f2d63a VZ |
12506 | fi |
12507 | fi | |
1e487827 | 12508 | |
698dcdb6 VZ |
12509 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
12510 | if test $ac_cv_header_stdc = yes; then | |
12511 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
12512 | #define STDC_HEADERS 1 |
12513 | EOF | |
12514 | ||
12515 | fi | |
12516 | ||
698dcdb6 | 12517 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
1d93af2f | 12518 | echo "configure:12519: checking for mode_t" >&5 |
698dcdb6 VZ |
12519 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
12520 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 12521 | else |
698dcdb6 | 12522 | cat > conftest.$ac_ext <<EOF |
1d93af2f | 12523 | #line 12524 "configure" |
1e487827 | 12524 | #include "confdefs.h" |
698dcdb6 VZ |
12525 | #include <sys/types.h> |
12526 | #if STDC_HEADERS | |
12527 | #include <stdlib.h> | |
12528 | #include <stddef.h> | |
12529 | #endif | |
12530 | EOF | |
12531 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12532 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
12533 | rm -rf conftest* | |
10f2d63a VZ |
12534 | ac_cv_type_mode_t=yes |
12535 | else | |
698dcdb6 VZ |
12536 | rm -rf conftest* |
12537 | ac_cv_type_mode_t=no | |
703e0a69 | 12538 | fi |
698dcdb6 | 12539 | rm -f conftest* |
1e487827 | 12540 | |
698dcdb6 VZ |
12541 | fi |
12542 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 | |
12543 | if test $ac_cv_type_mode_t = no; then | |
12544 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
12545 | #define mode_t int |
12546 | EOF | |
12547 | ||
12548 | fi | |
12549 | ||
698dcdb6 | 12550 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 |
1d93af2f | 12551 | echo "configure:12552: checking for off_t" >&5 |
698dcdb6 VZ |
12552 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
12553 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12554 | else |
698dcdb6 | 12555 | cat > conftest.$ac_ext <<EOF |
1d93af2f | 12556 | #line 12557 "configure" |
10f2d63a | 12557 | #include "confdefs.h" |
698dcdb6 VZ |
12558 | #include <sys/types.h> |
12559 | #if STDC_HEADERS | |
12560 | #include <stdlib.h> | |
12561 | #include <stddef.h> | |
12562 | #endif | |
12563 | EOF | |
12564 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12565 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
12566 | rm -rf conftest* | |
10f2d63a VZ |
12567 | ac_cv_type_off_t=yes |
12568 | else | |
698dcdb6 VZ |
12569 | rm -rf conftest* |
12570 | ac_cv_type_off_t=no | |
703e0a69 | 12571 | fi |
698dcdb6 | 12572 | rm -f conftest* |
1e487827 | 12573 | |
698dcdb6 VZ |
12574 | fi |
12575 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
12576 | if test $ac_cv_type_off_t = no; then | |
12577 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
12578 | #define off_t long |
12579 | EOF | |
12580 | ||
12581 | fi | |
12582 | ||
698dcdb6 | 12583 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
1d93af2f | 12584 | echo "configure:12585: checking for pid_t" >&5 |
698dcdb6 VZ |
12585 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
12586 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12587 | else |
698dcdb6 | 12588 | cat > conftest.$ac_ext <<EOF |
1d93af2f | 12589 | #line 12590 "configure" |
10f2d63a | 12590 | #include "confdefs.h" |
698dcdb6 VZ |
12591 | #include <sys/types.h> |
12592 | #if STDC_HEADERS | |
12593 | #include <stdlib.h> | |
12594 | #include <stddef.h> | |
12595 | #endif | |
12596 | EOF | |
12597 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12598 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
12599 | rm -rf conftest* | |
10f2d63a VZ |
12600 | ac_cv_type_pid_t=yes |
12601 | else | |
698dcdb6 VZ |
12602 | rm -rf conftest* |
12603 | ac_cv_type_pid_t=no | |
703e0a69 | 12604 | fi |
698dcdb6 | 12605 | rm -f conftest* |
1e487827 | 12606 | |
698dcdb6 VZ |
12607 | fi |
12608 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
12609 | if test $ac_cv_type_pid_t = no; then | |
12610 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
12611 | #define pid_t int |
12612 | EOF | |
12613 | ||
12614 | fi | |
12615 | ||
698dcdb6 | 12616 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
1d93af2f | 12617 | echo "configure:12618: checking for size_t" >&5 |
698dcdb6 VZ |
12618 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
12619 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12620 | else |
698dcdb6 | 12621 | cat > conftest.$ac_ext <<EOF |
1d93af2f | 12622 | #line 12623 "configure" |
10f2d63a | 12623 | #include "confdefs.h" |
698dcdb6 VZ |
12624 | #include <sys/types.h> |
12625 | #if STDC_HEADERS | |
12626 | #include <stdlib.h> | |
12627 | #include <stddef.h> | |
12628 | #endif | |
12629 | EOF | |
12630 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12631 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
12632 | rm -rf conftest* | |
10f2d63a VZ |
12633 | ac_cv_type_size_t=yes |
12634 | else | |
698dcdb6 VZ |
12635 | rm -rf conftest* |
12636 | ac_cv_type_size_t=no | |
703e0a69 | 12637 | fi |
698dcdb6 | 12638 | rm -f conftest* |
1e487827 | 12639 | |
698dcdb6 VZ |
12640 | fi |
12641 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
12642 | if test $ac_cv_type_size_t = no; then | |
12643 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
12644 | #define size_t unsigned |
12645 | EOF | |
12646 | ||
12647 | fi | |
12648 | ||
698dcdb6 | 12649 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
1d93af2f | 12650 | echo "configure:12651: checking for uid_t in sys/types.h" >&5 |
698dcdb6 VZ |
12651 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
12652 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12653 | else |
698dcdb6 | 12654 | cat > conftest.$ac_ext <<EOF |
1d93af2f | 12655 | #line 12656 "configure" |
10f2d63a VZ |
12656 | #include "confdefs.h" |
12657 | #include <sys/types.h> | |
698dcdb6 | 12658 | EOF |
10f2d63a VZ |
12659 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
12660 | egrep "uid_t" >/dev/null 2>&1; then | |
698dcdb6 | 12661 | rm -rf conftest* |
10f2d63a VZ |
12662 | ac_cv_type_uid_t=yes |
12663 | else | |
698dcdb6 | 12664 | rm -rf conftest* |
10f2d63a VZ |
12665 | ac_cv_type_uid_t=no |
12666 | fi | |
12667 | rm -f conftest* | |
12668 | ||
12669 | fi | |
1e487827 | 12670 | |
698dcdb6 VZ |
12671 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
12672 | if test $ac_cv_type_uid_t = no; then | |
12673 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
12674 | #define uid_t int |
12675 | EOF | |
12676 | ||
698dcdb6 | 12677 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
12678 | #define gid_t int |
12679 | EOF | |
12680 | ||
12681 | fi | |
12682 | ||
1e487827 | 12683 | |
698dcdb6 | 12684 | echo $ac_n "checking for wchar_t""... $ac_c" 1>&6 |
1d93af2f | 12685 | echo "configure:12686: checking for wchar_t" >&5 |
698dcdb6 VZ |
12686 | if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then |
12687 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12688 | else | |
12689 | ||
12690 | cat > conftest.$ac_ext <<EOF | |
1d93af2f | 12691 | #line 12692 "configure" |
0046ff7c | 12692 | #include "confdefs.h" |
4b42290e GD |
12693 | |
12694 | #ifdef HAVE_WCHAR_H | |
12695 | # include <wchar.h> | |
12696 | #endif | |
12697 | #ifdef HAVE_STDLIB_H | |
12698 | # include <stdlib.h> | |
12699 | #endif | |
12700 | ||
698dcdb6 | 12701 | int main() { |
0046ff7c | 12702 | |
d836ee96 VZ |
12703 | wchar_t wc, *ws; |
12704 | wc = L'a'; | |
12705 | ws = L"Hello, world!"; | |
698dcdb6 VZ |
12706 | |
12707 | ; return 0; } | |
12708 | EOF | |
1d93af2f | 12709 | if { (eval echo configure:12710: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 12710 | rm -rf conftest* |
1f8ae82f | 12711 | wx_cv_type_wchar_t=yes |
0046ff7c | 12712 | else |
698dcdb6 VZ |
12713 | echo "configure: failed program was:" >&5 |
12714 | cat conftest.$ac_ext >&5 | |
12715 | rm -rf conftest* | |
12716 | wx_cv_type_wchar_t=no | |
d836ee96 | 12717 | |
6232543b | 12718 | fi |
698dcdb6 | 12719 | rm -f conftest* |
703e0a69 | 12720 | |
1e487827 | 12721 | fi |
698dcdb6 VZ |
12722 | |
12723 | echo "$ac_t""$wx_cv_type_wchar_t" 1>&6 | |
d836ee96 VZ |
12724 | |
12725 | if test "$wx_cv_type_wchar_t" = "yes"; then | |
698dcdb6 | 12726 | cat >> confdefs.h <<\EOF |
0046ff7c VS |
12727 | #define wxUSE_WCHAR_T 1 |
12728 | EOF | |
12729 | ||
12730 | fi | |
12731 | ||
19af3b06 VZ |
12732 | |
12733 | ac_ext=C | |
12734 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
12735 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12736 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
12737 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12738 | cross_compiling=$ac_cv_prog_cxx_cross | |
12739 | ||
d836ee96 | 12740 | echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6 |
1d93af2f | 12741 | echo "configure:12742: checking if size_t is unsigned int" >&5 |
d836ee96 VZ |
12742 | if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then |
12743 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12744 | else | |
dd2c8b7c | 12745 | cat > conftest.$ac_ext <<EOF |
1d93af2f | 12746 | #line 12747 "configure" |
d836ee96 VZ |
12747 | #include "confdefs.h" |
12748 | #include <stddef.h> | |
12749 | int main() { | |
12750 | ||
dd2c8b7c VZ |
12751 | return 0; } |
12752 | ||
d836ee96 | 12753 | struct Foo { void foo(size_t); void foo(unsigned int); }; |
dd2c8b7c VZ |
12754 | |
12755 | int bar() { | |
d836ee96 VZ |
12756 | |
12757 | ; return 0; } | |
12758 | EOF | |
1d93af2f | 12759 | if { (eval echo configure:12760: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
d836ee96 VZ |
12760 | rm -rf conftest* |
12761 | wx_cv_size_t_is_uint=no | |
12762 | else | |
12763 | echo "configure: failed program was:" >&5 | |
12764 | cat conftest.$ac_ext >&5 | |
12765 | rm -rf conftest* | |
12766 | wx_cv_size_t_is_uint=yes | |
12767 | ||
12768 | fi | |
12769 | rm -f conftest* | |
12770 | ||
12771 | fi | |
12772 | ||
12773 | echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6 | |
12774 | ||
12775 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
12776 | cat >> confdefs.h <<\EOF | |
12777 | #define wxSIZE_T_IS_UINT 1 | |
12778 | EOF | |
12779 | ||
12780 | else | |
12781 | echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6 | |
1d93af2f | 12782 | echo "configure:12783: checking if size_t is unsigned long" >&5 |
d836ee96 VZ |
12783 | if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then |
12784 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12785 | else | |
12786 | cat > conftest.$ac_ext <<EOF | |
1d93af2f | 12787 | #line 12788 "configure" |
d836ee96 VZ |
12788 | #include "confdefs.h" |
12789 | #include <stddef.h> | |
12790 | int main() { | |
12791 | ||
dd2c8b7c VZ |
12792 | return 0; } |
12793 | ||
d836ee96 | 12794 | struct Foo { void foo(size_t); void foo(unsigned long); }; |
dd2c8b7c VZ |
12795 | |
12796 | int bar() { | |
d836ee96 VZ |
12797 | |
12798 | ; return 0; } | |
12799 | EOF | |
1d93af2f | 12800 | if { (eval echo configure:12801: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
d836ee96 VZ |
12801 | rm -rf conftest* |
12802 | wx_cv_size_t_is_ulong=no | |
12803 | else | |
12804 | echo "configure: failed program was:" >&5 | |
12805 | cat conftest.$ac_ext >&5 | |
12806 | rm -rf conftest* | |
12807 | wx_cv_size_t_is_ulong=yes | |
12808 | ||
12809 | fi | |
12810 | rm -f conftest* | |
12811 | ||
12812 | fi | |
12813 | ||
12814 | echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6 | |
12815 | ||
12816 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
12817 | cat >> confdefs.h <<\EOF | |
12818 | #define wxSIZE_T_IS_ULONG 1 | |
12819 | EOF | |
12820 | ||
12821 | fi | |
12822 | fi | |
12823 | ||
19af3b06 VZ |
12824 | ac_ext=c |
12825 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
12826 | ac_cpp='$CPP $CPPFLAGS' | |
12827 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
12828 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12829 | cross_compiling=$ac_cv_prog_cc_cross | |
12830 | ||
12831 | ||
1e487827 | 12832 | |
698dcdb6 | 12833 | echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6 |
1d93af2f | 12834 | echo "configure:12835: checking for pw_gecos in struct passwd" >&5 |
698dcdb6 VZ |
12835 | if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then |
12836 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12837 | else | |
12838 | ||
12839 | cat > conftest.$ac_ext <<EOF | |
1d93af2f | 12840 | #line 12841 "configure" |
b12915c1 VZ |
12841 | #include "confdefs.h" |
12842 | #include <pwd.h> | |
698dcdb6 | 12843 | int main() { |
b12915c1 VZ |
12844 | |
12845 | char *p; | |
12846 | struct passwd *pw; | |
12847 | p = pw->pw_gecos; | |
698dcdb6 VZ |
12848 | |
12849 | ; return 0; } | |
12850 | EOF | |
1d93af2f | 12851 | if { (eval echo configure:12852: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
12852 | rm -rf conftest* |
12853 | ||
b12915c1 | 12854 | wx_cv_struct_pw_gecos=yes |
698dcdb6 | 12855 | |
b12915c1 | 12856 | else |
698dcdb6 VZ |
12857 | echo "configure: failed program was:" >&5 |
12858 | cat conftest.$ac_ext >&5 | |
12859 | rm -rf conftest* | |
12860 | ||
b12915c1 | 12861 | wx_cv_struct_pw_gecos=no |
698dcdb6 VZ |
12862 | |
12863 | ||
6232543b | 12864 | fi |
698dcdb6 VZ |
12865 | rm -f conftest* |
12866 | ||
703e0a69 | 12867 | |
1e487827 | 12868 | fi |
698dcdb6 VZ |
12869 | |
12870 | echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6 | |
b12915c1 | 12871 | |
bd3277fe | 12872 | if test "$wx_cv_struct_pw_gecos" = "yes"; then |
698dcdb6 | 12873 | cat >> confdefs.h <<\EOF |
bd3277fe VZ |
12874 | #define HAVE_PW_GECOS 1 |
12875 | EOF | |
12876 | ||
12877 | fi | |
12878 | ||
698dcdb6 VZ |
12879 | |
12880 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
1d93af2f | 12881 | echo "configure:12882: checking for working const" >&5 |
698dcdb6 VZ |
12882 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
12883 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12884 | else |
698dcdb6 | 12885 | cat > conftest.$ac_ext <<EOF |
1d93af2f | 12886 | #line 12887 "configure" |
10f2d63a | 12887 | #include "confdefs.h" |
698dcdb6 VZ |
12888 | |
12889 | int main() { | |
12890 | ||
12891 | /* Ultrix mips cc rejects this. */ | |
a3df447d | 12892 | typedef int charset[2]; const charset x; |
698dcdb6 VZ |
12893 | /* SunOS 4.1.1 cc rejects this. */ |
12894 | char const *const *ccp; | |
12895 | char **p; | |
12896 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
12897 | struct point {int x, y;}; | |
12898 | static struct point const zero = {0,0}; | |
12899 | /* AIX XL C 1.02.0.0 rejects this. | |
12900 | It does not let you subtract one const X* pointer from another in an arm | |
12901 | of an if-expression whose if-part is not a constant expression */ | |
12902 | const char *g = "string"; | |
12903 | ccp = &g + (g ? g-g : 0); | |
12904 | /* HPUX 7.0 cc rejects these. */ | |
12905 | ++ccp; | |
12906 | p = (char**) ccp; | |
12907 | ccp = (char const *const *) p; | |
12908 | { /* SCO 3.2v4 cc rejects this. */ | |
12909 | char *t; | |
12910 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
12911 | ||
12912 | *t++ = 0; | |
10f2d63a | 12913 | } |
698dcdb6 VZ |
12914 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
12915 | int x[] = {25, 17}; | |
12916 | const int *foo = &x[0]; | |
12917 | ++foo; | |
703e0a69 | 12918 | } |
698dcdb6 VZ |
12919 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
12920 | typedef const int *iptr; | |
12921 | iptr p = 0; | |
12922 | ++p; | |
6232543b | 12923 | } |
698dcdb6 VZ |
12924 | { /* AIX XL C 1.02.0.0 rejects this saying |
12925 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
12926 | struct s { int j; const int *ap[3]; }; | |
12927 | struct s *b; b->j = 5; | |
1e487827 | 12928 | } |
698dcdb6 VZ |
12929 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
12930 | const int foo = 10; | |
12931 | } | |
4f14bcd8 GD |
12932 | |
12933 | ; return 0; } | |
698dcdb6 | 12934 | EOF |
1d93af2f | 12935 | if { (eval echo configure:12936: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
12936 | rm -rf conftest* |
12937 | ac_cv_c_const=yes | |
698dcdb6 VZ |
12938 | else |
12939 | echo "configure: failed program was:" >&5 | |
12940 | cat conftest.$ac_ext >&5 | |
4f14bcd8 GD |
12941 | rm -rf conftest* |
12942 | ac_cv_c_const=no | |
703e0a69 | 12943 | fi |
4f14bcd8 | 12944 | rm -f conftest* |
698dcdb6 VZ |
12945 | fi |
12946 | ||
4f14bcd8 GD |
12947 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
12948 | if test $ac_cv_c_const = no; then | |
12949 | cat >> confdefs.h <<\EOF | |
12950 | #define const | |
698dcdb6 VZ |
12951 | EOF |
12952 | ||
4f14bcd8 | 12953 | fi |
698dcdb6 | 12954 | |
4f14bcd8 | 12955 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
1d93af2f | 12956 | echo "configure:12957: checking for inline" >&5 |
4f14bcd8 | 12957 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
698dcdb6 | 12958 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 12959 | else |
4f14bcd8 GD |
12960 | ac_cv_c_inline=no |
12961 | for ac_kw in inline __inline__ __inline; do | |
698dcdb6 | 12962 | cat > conftest.$ac_ext <<EOF |
1d93af2f | 12963 | #line 12964 "configure" |
10f2d63a | 12964 | #include "confdefs.h" |
4f14bcd8 GD |
12965 | |
12966 | int main() { | |
a3df447d | 12967 | } $ac_kw foo() { |
4f14bcd8 | 12968 | ; return 0; } |
698dcdb6 | 12969 | EOF |
1d93af2f | 12970 | if { (eval echo configure:12971: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
12971 | rm -rf conftest* |
12972 | ac_cv_c_inline=$ac_kw; break | |
10f2d63a | 12973 | else |
698dcdb6 VZ |
12974 | echo "configure: failed program was:" >&5 |
12975 | cat conftest.$ac_ext >&5 | |
10f2d63a | 12976 | fi |
4f14bcd8 GD |
12977 | rm -f conftest* |
12978 | done | |
698dcdb6 | 12979 | |
10f2d63a | 12980 | fi |
4f14bcd8 GD |
12981 | |
12982 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | |
12983 | case "$ac_cv_c_inline" in | |
12984 | inline | yes) ;; | |
12985 | no) cat >> confdefs.h <<\EOF | |
12986 | #define inline | |
12987 | EOF | |
12988 | ;; | |
12989 | *) cat >> confdefs.h <<EOF | |
12990 | #define inline $ac_cv_c_inline | |
698dcdb6 | 12991 | EOF |
4f14bcd8 GD |
12992 | ;; |
12993 | esac | |
698dcdb6 VZ |
12994 | |
12995 | ||
4f14bcd8 | 12996 | echo $ac_n "checking size of char""... $ac_c" 1>&6 |
1d93af2f | 12997 | echo "configure:12998: checking size of char" >&5 |
4f14bcd8 | 12998 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
698dcdb6 VZ |
12999 | echo $ac_n "(cached) $ac_c" 1>&6 |
13000 | else | |
13001 | if test "$cross_compiling" = yes; then | |
4f14bcd8 | 13002 | ac_cv_sizeof_char=1 |
698dcdb6 VZ |
13003 | else |
13004 | cat > conftest.$ac_ext <<EOF | |
1d93af2f | 13005 | #line 13006 "configure" |
698dcdb6 VZ |
13006 | #include "confdefs.h" |
13007 | #include <stdio.h> | |
1d93af2f | 13008 | #include <sys/types.h> |
698dcdb6 VZ |
13009 | main() |
13010 | { | |
13011 | FILE *f=fopen("conftestval", "w"); | |
13012 | if (!f) exit(1); | |
4f14bcd8 | 13013 | fprintf(f, "%d\n", sizeof(char)); |
698dcdb6 VZ |
13014 | exit(0); |
13015 | } | |
13016 | EOF | |
1d93af2f | 13017 | if { (eval echo configure:13018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 13018 | then |
4f14bcd8 | 13019 | ac_cv_sizeof_char=`cat conftestval` |
6232543b | 13020 | else |
698dcdb6 VZ |
13021 | echo "configure: failed program was:" >&5 |
13022 | cat conftest.$ac_ext >&5 | |
13023 | rm -fr conftest* | |
4f14bcd8 | 13024 | ac_cv_sizeof_char=0 |
6232543b | 13025 | fi |
698dcdb6 VZ |
13026 | rm -fr conftest* |
13027 | fi | |
13028 | ||
703e0a69 | 13029 | fi |
4f14bcd8 | 13030 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 |
698dcdb6 | 13031 | cat >> confdefs.h <<EOF |
4f14bcd8 | 13032 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
10f2d63a VZ |
13033 | EOF |
13034 | ||
1e487827 | 13035 | |
4f14bcd8 | 13036 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
1d93af2f | 13037 | echo "configure:13038: checking size of short" >&5 |
4f14bcd8 | 13038 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
698dcdb6 VZ |
13039 | echo $ac_n "(cached) $ac_c" 1>&6 |
13040 | else | |
4f14bcd8 GD |
13041 | if test "$cross_compiling" = yes; then |
13042 | ac_cv_sizeof_short=2 | |
b93d0d08 | 13043 | else |
698dcdb6 | 13044 | cat > conftest.$ac_ext <<EOF |
1d93af2f | 13045 | #line 13046 "configure" |
b93d0d08 | 13046 | #include "confdefs.h" |
4f14bcd8 | 13047 | #include <stdio.h> |
1d93af2f | 13048 | #include <sys/types.h> |
4f14bcd8 GD |
13049 | main() |
13050 | { | |
13051 | FILE *f=fopen("conftestval", "w"); | |
13052 | if (!f) exit(1); | |
13053 | fprintf(f, "%d\n", sizeof(short)); | |
13054 | exit(0); | |
13055 | } | |
698dcdb6 | 13056 | EOF |
223e7fbf | 13057 | if { (eval echo configure:13058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 13058 | then |
4f14bcd8 | 13059 | ac_cv_sizeof_short=`cat conftestval` |
b93d0d08 | 13060 | else |
698dcdb6 VZ |
13061 | echo "configure: failed program was:" >&5 |
13062 | cat conftest.$ac_ext >&5 | |
13063 | rm -fr conftest* | |
4f14bcd8 | 13064 | ac_cv_sizeof_short=0 |
b93d0d08 | 13065 | fi |
698dcdb6 | 13066 | rm -fr conftest* |
b93d0d08 VS |
13067 | fi |
13068 | ||
b93d0d08 | 13069 | fi |
4f14bcd8 | 13070 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
698dcdb6 | 13071 | cat >> confdefs.h <<EOF |
4f14bcd8 | 13072 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
b93d0d08 VS |
13073 | EOF |
13074 | ||
698dcdb6 | 13075 | |
4f14bcd8 | 13076 | echo $ac_n "checking size of int *""... $ac_c" 1>&6 |
223e7fbf | 13077 | echo "configure:13078: checking size of int *" >&5 |
4f14bcd8 | 13078 | if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then |
698dcdb6 | 13079 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 13080 | else |
4f14bcd8 GD |
13081 | if test "$cross_compiling" = yes; then |
13082 | ac_cv_sizeof_int_p=4 | |
3a922bb4 | 13083 | else |
3a922bb4 | 13084 | cat > conftest.$ac_ext <<EOF |
223e7fbf | 13085 | #line 13086 "configure" |
3a922bb4 | 13086 | #include "confdefs.h" |
4f14bcd8 | 13087 | #include <stdio.h> |
1d93af2f | 13088 | #include <sys/types.h> |
4f14bcd8 GD |
13089 | main() |
13090 | { | |
13091 | FILE *f=fopen("conftestval", "w"); | |
13092 | if (!f) exit(1); | |
13093 | fprintf(f, "%d\n", sizeof(int *)); | |
13094 | exit(0); | |
13095 | } | |
13096 | EOF | |
1d93af2f | 13097 | if { (eval echo configure:13098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
13098 | then |
13099 | ac_cv_sizeof_int_p=`cat conftestval` | |
13100 | else | |
13101 | echo "configure: failed program was:" >&5 | |
13102 | cat conftest.$ac_ext >&5 | |
13103 | rm -fr conftest* | |
13104 | ac_cv_sizeof_int_p=0 | |
3a922bb4 | 13105 | fi |
4f14bcd8 | 13106 | rm -fr conftest* |
3a922bb4 | 13107 | fi |
698dcdb6 | 13108 | |
4f14bcd8 GD |
13109 | fi |
13110 | echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6 | |
13111 | cat >> confdefs.h <<EOF | |
13112 | #define SIZEOF_INT_P $ac_cv_sizeof_int_p | |
10f2d63a VZ |
13113 | EOF |
13114 | ||
703e0a69 | 13115 | |
4f14bcd8 | 13116 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
1d93af2f | 13117 | echo "configure:13118: checking size of int" >&5 |
4f14bcd8 | 13118 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
698dcdb6 | 13119 | echo $ac_n "(cached) $ac_c" 1>&6 |
4f14bcd8 GD |
13120 | else |
13121 | if test "$cross_compiling" = yes; then | |
13122 | ac_cv_sizeof_int=4 | |
698dcdb6 VZ |
13123 | else |
13124 | cat > conftest.$ac_ext <<EOF | |
1d93af2f | 13125 | #line 13126 "configure" |
10f2d63a | 13126 | #include "confdefs.h" |
4f14bcd8 | 13127 | #include <stdio.h> |
1d93af2f | 13128 | #include <sys/types.h> |
4f14bcd8 GD |
13129 | main() |
13130 | { | |
13131 | FILE *f=fopen("conftestval", "w"); | |
13132 | if (!f) exit(1); | |
13133 | fprintf(f, "%d\n", sizeof(int)); | |
13134 | exit(0); | |
13135 | } | |
698dcdb6 | 13136 | EOF |
1d93af2f | 13137 | if { (eval echo configure:13138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
13138 | then |
13139 | ac_cv_sizeof_int=`cat conftestval` | |
10f2d63a | 13140 | else |
698dcdb6 | 13141 | echo "configure: failed program was:" >&5 |
10f2d63a | 13142 | cat conftest.$ac_ext >&5 |
4f14bcd8 GD |
13143 | rm -fr conftest* |
13144 | ac_cv_sizeof_int=0 | |
10f2d63a | 13145 | fi |
4f14bcd8 | 13146 | rm -fr conftest* |
10f2d63a | 13147 | fi |
10f2d63a | 13148 | |
4f14bcd8 GD |
13149 | fi |
13150 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | |
13151 | cat >> confdefs.h <<EOF | |
13152 | #define SIZEOF_INT $ac_cv_sizeof_int | |
10f2d63a VZ |
13153 | EOF |
13154 | ||
698dcdb6 | 13155 | |
4f14bcd8 | 13156 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
1d93af2f | 13157 | echo "configure:13158: checking size of long" >&5 |
4f14bcd8 | 13158 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
698dcdb6 VZ |
13159 | echo $ac_n "(cached) $ac_c" 1>&6 |
13160 | else | |
4f14bcd8 GD |
13161 | if test "$cross_compiling" = yes; then |
13162 | ac_cv_sizeof_long=4 | |
13163 | else | |
13164 | cat > conftest.$ac_ext <<EOF | |
1d93af2f | 13165 | #line 13166 "configure" |
10f2d63a | 13166 | #include "confdefs.h" |
4f14bcd8 | 13167 | #include <stdio.h> |
1d93af2f | 13168 | #include <sys/types.h> |
4f14bcd8 GD |
13169 | main() |
13170 | { | |
13171 | FILE *f=fopen("conftestval", "w"); | |
13172 | if (!f) exit(1); | |
13173 | fprintf(f, "%d\n", sizeof(long)); | |
13174 | exit(0); | |
13175 | } | |
698dcdb6 | 13176 | EOF |
1d93af2f | 13177 | if { (eval echo configure:13178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
13178 | then |
13179 | ac_cv_sizeof_long=`cat conftestval` | |
10f2d63a | 13180 | else |
698dcdb6 VZ |
13181 | echo "configure: failed program was:" >&5 |
13182 | cat conftest.$ac_ext >&5 | |
4f14bcd8 GD |
13183 | rm -fr conftest* |
13184 | ac_cv_sizeof_long=0 | |
10f2d63a | 13185 | fi |
4f14bcd8 | 13186 | rm -fr conftest* |
10f2d63a | 13187 | fi |
698dcdb6 | 13188 | |
4f14bcd8 GD |
13189 | fi |
13190 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 | |
13191 | cat >> confdefs.h <<EOF | |
13192 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
10f2d63a VZ |
13193 | EOF |
13194 | ||
698dcdb6 | 13195 | |
4f14bcd8 | 13196 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 |
1d93af2f | 13197 | echo "configure:13198: checking size of long long" >&5 |
4f14bcd8 | 13198 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
698dcdb6 | 13199 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 13200 | else |
4f14bcd8 GD |
13201 | if test "$cross_compiling" = yes; then |
13202 | ac_cv_sizeof_long_long=0 | |
13203 | else | |
13204 | cat > conftest.$ac_ext <<EOF | |
1d93af2f | 13205 | #line 13206 "configure" |
10f2d63a | 13206 | #include "confdefs.h" |
4f14bcd8 | 13207 | #include <stdio.h> |
1d93af2f | 13208 | #include <sys/types.h> |
4f14bcd8 GD |
13209 | main() |
13210 | { | |
13211 | FILE *f=fopen("conftestval", "w"); | |
13212 | if (!f) exit(1); | |
13213 | fprintf(f, "%d\n", sizeof(long long)); | |
13214 | exit(0); | |
13215 | } | |
698dcdb6 | 13216 | EOF |
1d93af2f | 13217 | if { (eval echo configure:13218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
13218 | then |
13219 | ac_cv_sizeof_long_long=`cat conftestval` | |
698dcdb6 VZ |
13220 | else |
13221 | echo "configure: failed program was:" >&5 | |
13222 | cat conftest.$ac_ext >&5 | |
4f14bcd8 GD |
13223 | rm -fr conftest* |
13224 | ac_cv_sizeof_long_long=0 | |
13225 | fi | |
13226 | rm -fr conftest* | |
698dcdb6 | 13227 | fi |
698dcdb6 VZ |
13228 | |
13229 | fi | |
4f14bcd8 GD |
13230 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
13231 | cat >> confdefs.h <<EOF | |
13232 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
10f2d63a VZ |
13233 | EOF |
13234 | ||
10f2d63a | 13235 | |
4f14bcd8 GD |
13236 | |
13237 | echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6 | |
1d93af2f | 13238 | echo "configure:13239: checking size of wchar_t" >&5 |
4f14bcd8 | 13239 | if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then |
698dcdb6 | 13240 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 13241 | else |
4f14bcd8 GD |
13242 | |
13243 | if test "$cross_compiling" = yes; then | |
13244 | wx_cv_sizeof_wchar_t=4 | |
13245 | ||
13246 | else | |
13247 | cat > conftest.$ac_ext <<EOF | |
1d93af2f | 13248 | #line 13249 "configure" |
10f2d63a | 13249 | #include "confdefs.h" |
698dcdb6 | 13250 | |
4f14bcd8 GD |
13251 | #ifdef HAVE_WCHAR_H |
13252 | # include <wchar.h> | |
13253 | #endif | |
13254 | #ifdef HAVE_STDLIB_H | |
13255 | # include <stdlib.h> | |
13256 | #endif | |
13257 | #include <stdio.h> | |
13258 | int main() | |
13259 | { | |
13260 | FILE *f=fopen("conftestval", "w"); | |
13261 | if (!f) exit(1); | |
13262 | fprintf(f, "%i", sizeof(wchar_t)); | |
13263 | exit(0); | |
13264 | } | |
13265 | ||
698dcdb6 | 13266 | EOF |
1d93af2f | 13267 | if { (eval echo configure:13268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
13268 | then |
13269 | wx_cv_sizeof_wchar_t=`cat conftestval` | |
698dcdb6 VZ |
13270 | else |
13271 | echo "configure: failed program was:" >&5 | |
13272 | cat conftest.$ac_ext >&5 | |
4f14bcd8 GD |
13273 | rm -fr conftest* |
13274 | wx_cv_sizeof_wchar_t=0 | |
698dcdb6 | 13275 | fi |
4f14bcd8 GD |
13276 | rm -fr conftest* |
13277 | fi | |
13278 | ||
698dcdb6 VZ |
13279 | |
13280 | fi | |
4f14bcd8 GD |
13281 | |
13282 | echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6 | |
13283 | ||
13284 | cat >> confdefs.h <<EOF | |
13285 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t | |
10f2d63a VZ |
13286 | EOF |
13287 | ||
18dbb1f6 | 13288 | |
4f14bcd8 | 13289 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
1d93af2f | 13290 | echo "configure:13291: checking whether byte ordering is bigendian" >&5 |
4f14bcd8 | 13291 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
18dbb1f6 VZ |
13292 | echo $ac_n "(cached) $ac_c" 1>&6 |
13293 | else | |
4f14bcd8 GD |
13294 | ac_cv_c_bigendian=unknown |
13295 | # See if sys/param.h defines the BYTE_ORDER macro. | |
18dbb1f6 | 13296 | cat > conftest.$ac_ext <<EOF |
1d93af2f | 13297 | #line 13298 "configure" |
18dbb1f6 | 13298 | #include "confdefs.h" |
4f14bcd8 GD |
13299 | #include <sys/types.h> |
13300 | #include <sys/param.h> | |
13301 | int main() { | |
18dbb1f6 | 13302 | |
4f14bcd8 GD |
13303 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
13304 | bogus endian macros | |
13305 | #endif | |
13306 | ; return 0; } | |
13307 | EOF | |
1d93af2f | 13308 | if { (eval echo configure:13309: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
13309 | rm -rf conftest* |
13310 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
13311 | cat > conftest.$ac_ext <<EOF | |
1d93af2f | 13312 | #line 13313 "configure" |
4f14bcd8 GD |
13313 | #include "confdefs.h" |
13314 | #include <sys/types.h> | |
13315 | #include <sys/param.h> | |
18dbb1f6 | 13316 | int main() { |
4f14bcd8 GD |
13317 | |
13318 | #if BYTE_ORDER != BIG_ENDIAN | |
13319 | not big endian | |
13320 | #endif | |
18dbb1f6 VZ |
13321 | ; return 0; } |
13322 | EOF | |
1d93af2f | 13323 | if { (eval echo configure:13324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
18dbb1f6 | 13324 | rm -rf conftest* |
4f14bcd8 | 13325 | ac_cv_c_bigendian=yes |
18dbb1f6 VZ |
13326 | else |
13327 | echo "configure: failed program was:" >&5 | |
13328 | cat conftest.$ac_ext >&5 | |
13329 | rm -rf conftest* | |
4f14bcd8 | 13330 | ac_cv_c_bigendian=no |
18dbb1f6 VZ |
13331 | fi |
13332 | rm -f conftest* | |
698dcdb6 | 13333 | else |
4f14bcd8 GD |
13334 | echo "configure: failed program was:" >&5 |
13335 | cat conftest.$ac_ext >&5 | |
1e487827 | 13336 | fi |
4f14bcd8 GD |
13337 | rm -f conftest* |
13338 | if test $ac_cv_c_bigendian = unknown; then | |
13339 | if test "$cross_compiling" = yes; then | |
13340 | ac_cv_c_bigendian=unknown | |
b3e8d00a VZ |
13341 | else |
13342 | cat > conftest.$ac_ext <<EOF | |
1d93af2f | 13343 | #line 13344 "configure" |
b3e8d00a | 13344 | #include "confdefs.h" |
4f14bcd8 GD |
13345 | main () { |
13346 | /* Are we little or big endian? From Harbison&Steele. */ | |
13347 | union | |
13348 | { | |
13349 | long l; | |
13350 | char c[sizeof (long)]; | |
13351 | } u; | |
13352 | u.l = 1; | |
13353 | exit (u.c[sizeof (long) - 1] == 1); | |
13354 | } | |
b3e8d00a | 13355 | EOF |
1d93af2f | 13356 | if { (eval echo configure:13357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
13357 | then |
13358 | ac_cv_c_bigendian=no | |
b3e8d00a VZ |
13359 | else |
13360 | echo "configure: failed program was:" >&5 | |
13361 | cat conftest.$ac_ext >&5 | |
4f14bcd8 GD |
13362 | rm -fr conftest* |
13363 | ac_cv_c_bigendian=yes | |
b3e8d00a | 13364 | fi |
4f14bcd8 | 13365 | rm -fr conftest* |
b3e8d00a VZ |
13366 | fi |
13367 | ||
4f14bcd8 GD |
13368 | fi |
13369 | fi | |
13370 | ||
13371 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | |
13372 | if test $ac_cv_c_bigendian = unknown; then | |
13373 | 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 | |
13374 | fi | |
13375 | if test $ac_cv_c_bigendian = yes; then | |
13376 | cat >> confdefs.h <<\EOF | |
13377 | #define WORDS_BIGENDIAN 1 | |
b3e8d00a | 13378 | EOF |
4f14bcd8 | 13379 | |
b3e8d00a | 13380 | fi |
b3e8d00a VZ |
13381 | |
13382 | ||
4f14bcd8 | 13383 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 |
1d93af2f | 13384 | echo "configure:13385: checking how to run the C++ preprocessor" >&5 |
4f14bcd8 GD |
13385 | if test -z "$CXXCPP"; then |
13386 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then | |
698dcdb6 VZ |
13387 | echo $ac_n "(cached) $ac_c" 1>&6 |
13388 | else | |
4f14bcd8 GD |
13389 | ac_ext=C |
13390 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
13391 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13392 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13393 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13394 | cross_compiling=$ac_cv_prog_cxx_cross | |
13395 | CXXCPP="${CXX-g++} -E" | |
698dcdb6 | 13396 | cat > conftest.$ac_ext <<EOF |
1d93af2f | 13397 | #line 13398 "configure" |
10f2d63a | 13398 | #include "confdefs.h" |
4f14bcd8 | 13399 | #include <stdlib.h> |
698dcdb6 | 13400 | EOF |
4f14bcd8 | 13401 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1d93af2f | 13402 | { (eval echo configure:13403: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
13403 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13404 | if test -z "$ac_err"; then | |
13405 | : | |
698dcdb6 | 13406 | else |
4f14bcd8 | 13407 | echo "$ac_err" >&5 |
698dcdb6 VZ |
13408 | echo "configure: failed program was:" >&5 |
13409 | cat conftest.$ac_ext >&5 | |
13410 | rm -rf conftest* | |
4f14bcd8 | 13411 | CXXCPP=/lib/cpp |
698dcdb6 VZ |
13412 | fi |
13413 | rm -f conftest* | |
4f14bcd8 GD |
13414 | ac_cv_prog_CXXCPP="$CXXCPP" |
13415 | ac_ext=C | |
13416 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
13417 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13418 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13419 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13420 | cross_compiling=$ac_cv_prog_cxx_cross | |
13421 | fi | |
698dcdb6 | 13422 | fi |
4f14bcd8 GD |
13423 | CXXCPP="$ac_cv_prog_CXXCPP" |
13424 | echo "$ac_t""$CXXCPP" 1>&6 | |
698dcdb6 | 13425 | |
4f14bcd8 GD |
13426 | |
13427 | if test "$cross_compiling" = "yes"; then | |
13428 | cat >> confdefs.h <<\EOF | |
13429 | #define wxUSE_IOSTREAMH 1 | |
698dcdb6 VZ |
13430 | EOF |
13431 | ||
4f14bcd8 GD |
13432 | else |
13433 | ||
13434 | ac_ext=C | |
13435 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
13436 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13437 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13438 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13439 | cross_compiling=$ac_cv_prog_cxx_cross | |
698dcdb6 | 13440 | |
4f14bcd8 GD |
13441 | |
13442 | for ac_hdr in iostream | |
13443 | do | |
13444 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
13445 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
1d93af2f | 13446 | echo "configure:13447: checking for $ac_hdr" >&5 |
4f14bcd8 | 13447 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
698dcdb6 VZ |
13448 | echo $ac_n "(cached) $ac_c" 1>&6 |
13449 | else | |
13450 | cat > conftest.$ac_ext <<EOF | |
1d93af2f | 13451 | #line 13452 "configure" |
10f2d63a | 13452 | #include "confdefs.h" |
4f14bcd8 | 13453 | #include <$ac_hdr> |
698dcdb6 | 13454 | EOF |
4f14bcd8 | 13455 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1d93af2f | 13456 | { (eval echo configure:13457: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
13457 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13458 | if test -z "$ac_err"; then | |
698dcdb6 | 13459 | rm -rf conftest* |
4f14bcd8 | 13460 | eval "ac_cv_header_$ac_safe=yes" |
698dcdb6 | 13461 | else |
4f14bcd8 | 13462 | echo "$ac_err" >&5 |
698dcdb6 VZ |
13463 | echo "configure: failed program was:" >&5 |
13464 | cat conftest.$ac_ext >&5 | |
13465 | rm -rf conftest* | |
4f14bcd8 | 13466 | eval "ac_cv_header_$ac_safe=no" |
698dcdb6 VZ |
13467 | fi |
13468 | rm -f conftest* | |
13469 | fi | |
4f14bcd8 | 13470 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
698dcdb6 | 13471 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
13472 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
13473 | cat >> confdefs.h <<EOF | |
13474 | #define $ac_tr_hdr 1 | |
10f2d63a | 13475 | EOF |
4f14bcd8 | 13476 | |
698dcdb6 VZ |
13477 | else |
13478 | echo "$ac_t""no" 1>&6 | |
10f2d63a | 13479 | fi |
4f14bcd8 | 13480 | done |
10f2d63a | 13481 | |
10f2d63a | 13482 | |
4f14bcd8 GD |
13483 | if test "$ac_cv_header_iostream" = "yes" ; then |
13484 | : | |
13485 | else | |
13486 | cat >> confdefs.h <<\EOF | |
13487 | #define wxUSE_IOSTREAMH 1 | |
13488 | EOF | |
13489 | ||
13490 | fi | |
1e487827 | 13491 | |
4f14bcd8 GD |
13492 | ac_ext=c |
13493 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
13494 | ac_cpp='$CPP $CPPFLAGS' | |
13495 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13496 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13497 | cross_compiling=$ac_cv_prog_cc_cross | |
698dcdb6 | 13498 | |
4f14bcd8 | 13499 | fi |
698dcdb6 VZ |
13500 | |
13501 | ||
13502 | ||
4f14bcd8 | 13503 | echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6 |
1d93af2f | 13504 | echo "configure:13505: checking if C++ compiler supports bool" >&5 |
4f14bcd8 | 13505 | if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then |
698dcdb6 VZ |
13506 | echo $ac_n "(cached) $ac_c" 1>&6 |
13507 | else | |
13508 | ||
4f14bcd8 GD |
13509 | |
13510 | ac_ext=C | |
13511 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
13512 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13513 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13514 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13515 | cross_compiling=$ac_cv_prog_cxx_cross | |
f6bcfd97 | 13516 | |
10f2d63a | 13517 | |
4f14bcd8 | 13518 | cat > conftest.$ac_ext <<EOF |
1d93af2f | 13519 | #line 13520 "configure" |
4f14bcd8 | 13520 | #include "confdefs.h" |
10f2d63a | 13521 | |
4f14bcd8 GD |
13522 | |
13523 | int main() { | |
f6bcfd97 | 13524 | |
4f14bcd8 | 13525 | bool b = true; |
f6bcfd97 | 13526 | |
4f14bcd8 GD |
13527 | return 0; |
13528 | ||
698dcdb6 VZ |
13529 | ; return 0; } |
13530 | EOF | |
1d93af2f | 13531 | if { (eval echo configure:13532: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
13532 | rm -rf conftest* |
13533 | ||
4f14bcd8 GD |
13534 | wx_cv_cpp_bool=yes |
13535 | ||
10f2d63a | 13536 | else |
698dcdb6 VZ |
13537 | echo "configure: failed program was:" >&5 |
13538 | cat conftest.$ac_ext >&5 | |
13539 | rm -rf conftest* | |
13540 | ||
4f14bcd8 GD |
13541 | wx_cv_cpp_bool=no |
13542 | ||
13543 | ||
13544 | fi | |
13545 | rm -f conftest* | |
c521c494 | 13546 | |
4f14bcd8 GD |
13547 | ac_ext=c |
13548 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
13549 | ac_cpp='$CPP $CPPFLAGS' | |
13550 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13551 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13552 | cross_compiling=$ac_cv_prog_cc_cross | |
c521c494 | 13553 | |
4f14bcd8 GD |
13554 | |
13555 | fi | |
c521c494 | 13556 | |
4f14bcd8 | 13557 | echo "$ac_t""$wx_cv_cpp_bool" 1>&6 |
c521c494 | 13558 | |
4f14bcd8 GD |
13559 | if test "$wx_cv_cpp_bool" = "yes"; then |
13560 | cat >> confdefs.h <<\EOF | |
13561 | #define HAVE_BOOL 1 | |
13562 | EOF | |
c521c494 | 13563 | |
4f14bcd8 GD |
13564 | fi |
13565 | ||
13566 | ||
13567 | ||
13568 | echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6 | |
1d93af2f | 13569 | echo "configure:13570: checking for wcslen in -lc" >&5 |
4f14bcd8 GD |
13570 | ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'` |
13571 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13572 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13573 | else | |
13574 | ac_save_LIBS="$LIBS" | |
13575 | LIBS="-lc $LIBS" | |
13576 | cat > conftest.$ac_ext <<EOF | |
1d93af2f | 13577 | #line 13578 "configure" |
4f14bcd8 GD |
13578 | #include "confdefs.h" |
13579 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13580 | /* We use char because int might match the return type of a gcc2 | |
13581 | builtin and then its argument prototype would still apply. */ | |
13582 | char wcslen(); | |
13583 | ||
13584 | int main() { | |
13585 | wcslen() | |
698dcdb6 VZ |
13586 | ; return 0; } |
13587 | EOF | |
1d93af2f | 13588 | if { (eval echo configure:13589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 13589 | rm -rf conftest* |
4f14bcd8 | 13590 | eval "ac_cv_lib_$ac_lib_var=yes" |
c521c494 | 13591 | else |
698dcdb6 VZ |
13592 | echo "configure: failed program was:" >&5 |
13593 | cat conftest.$ac_ext >&5 | |
13594 | rm -rf conftest* | |
4f14bcd8 | 13595 | eval "ac_cv_lib_$ac_lib_var=no" |
6232543b | 13596 | fi |
698dcdb6 | 13597 | rm -f conftest* |
4f14bcd8 | 13598 | LIBS="$ac_save_LIBS" |
703e0a69 | 13599 | |
1e487827 | 13600 | fi |
4f14bcd8 GD |
13601 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
13602 | echo "$ac_t""yes" 1>&6 | |
13603 | ||
13604 | cat >> confdefs.h <<\EOF | |
13605 | #define HAVE_WCSLEN 1 | |
9d8deca0 VZ |
13606 | EOF |
13607 | ||
3d63bc3a | 13608 | WCHAR_LINK= |
4f14bcd8 | 13609 | |
9d8deca0 | 13610 | else |
4f14bcd8 | 13611 | echo "$ac_t""no" 1>&6 |
9d8deca0 | 13612 | |
4f14bcd8 | 13613 | echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6 |
1d93af2f | 13614 | echo "configure:13615: checking for wcslen in -lw" >&5 |
4f14bcd8 GD |
13615 | ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'` |
13616 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 | 13617 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 13618 | else |
4f14bcd8 GD |
13619 | ac_save_LIBS="$LIBS" |
13620 | LIBS="-lw $LIBS" | |
13621 | cat > conftest.$ac_ext <<EOF | |
1d93af2f | 13622 | #line 13623 "configure" |
10f2d63a | 13623 | #include "confdefs.h" |
4f14bcd8 GD |
13624 | /* Override any gcc2 internal prototype to avoid an error. */ |
13625 | /* We use char because int might match the return type of a gcc2 | |
13626 | builtin and then its argument prototype would still apply. */ | |
13627 | char wcslen(); | |
10f2d63a | 13628 | |
698dcdb6 | 13629 | int main() { |
4f14bcd8 | 13630 | wcslen() |
698dcdb6 VZ |
13631 | ; return 0; } |
13632 | EOF | |
1d93af2f | 13633 | if { (eval echo configure:13634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 13634 | rm -rf conftest* |
4f14bcd8 | 13635 | eval "ac_cv_lib_$ac_lib_var=yes" |
10f2d63a | 13636 | else |
698dcdb6 VZ |
13637 | echo "configure: failed program was:" >&5 |
13638 | cat conftest.$ac_ext >&5 | |
13639 | rm -rf conftest* | |
4f14bcd8 | 13640 | eval "ac_cv_lib_$ac_lib_var=no" |
6232543b | 13641 | fi |
698dcdb6 | 13642 | rm -f conftest* |
4f14bcd8 | 13643 | LIBS="$ac_save_LIBS" |
703e0a69 | 13644 | |
1e487827 | 13645 | fi |
4f14bcd8 GD |
13646 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
13647 | echo "$ac_t""yes" 1>&6 | |
13648 | ||
13649 | cat >> confdefs.h <<\EOF | |
13650 | #define HAVE_WCSLEN 1 | |
9d8deca0 VZ |
13651 | EOF |
13652 | ||
3d63bc3a | 13653 | WCHAR_LINK=" -lw" |
4f14bcd8 GD |
13654 | |
13655 | else | |
13656 | echo "$ac_t""no" 1>&6 | |
698dcdb6 | 13657 | |
4f14bcd8 | 13658 | echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6 |
1d93af2f | 13659 | echo "configure:13660: checking for wcslen in -lmsvcrt" >&5 |
4f14bcd8 GD |
13660 | ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'` |
13661 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 VZ |
13662 | echo $ac_n "(cached) $ac_c" 1>&6 |
13663 | else | |
4f14bcd8 GD |
13664 | ac_save_LIBS="$LIBS" |
13665 | LIBS="-lmsvcrt $LIBS" | |
13666 | cat > conftest.$ac_ext <<EOF | |
1d93af2f | 13667 | #line 13668 "configure" |
95c8801c | 13668 | #include "confdefs.h" |
4f14bcd8 GD |
13669 | /* Override any gcc2 internal prototype to avoid an error. */ |
13670 | /* We use char because int might match the return type of a gcc2 | |
13671 | builtin and then its argument prototype would still apply. */ | |
13672 | char wcslen(); | |
95c8801c | 13673 | |
4f14bcd8 GD |
13674 | int main() { |
13675 | wcslen() | |
698dcdb6 VZ |
13676 | ; return 0; } |
13677 | EOF | |
1d93af2f | 13678 | if { (eval echo configure:13679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 13679 | rm -rf conftest* |
4f14bcd8 | 13680 | eval "ac_cv_lib_$ac_lib_var=yes" |
95c8801c | 13681 | else |
698dcdb6 VZ |
13682 | echo "configure: failed program was:" >&5 |
13683 | cat conftest.$ac_ext >&5 | |
13684 | rm -rf conftest* | |
4f14bcd8 | 13685 | eval "ac_cv_lib_$ac_lib_var=no" |
95c8801c | 13686 | fi |
698dcdb6 | 13687 | rm -f conftest* |
4f14bcd8 | 13688 | LIBS="$ac_save_LIBS" |
95c8801c VS |
13689 | |
13690 | fi | |
4f14bcd8 GD |
13691 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
13692 | echo "$ac_t""yes" 1>&6 | |
13693 | ||
13694 | cat >> confdefs.h <<\EOF | |
13695 | #define HAVE_WCSLEN 1 | |
13696 | EOF | |
698dcdb6 | 13697 | |
3d63bc3a | 13698 | WCHAR_LINK= |
4f14bcd8 GD |
13699 | |
13700 | else | |
13701 | echo "$ac_t""no" 1>&6 | |
13702 | fi | |
10f2d63a | 13703 | |
4f14bcd8 GD |
13704 | |
13705 | fi | |
95c8801c | 13706 | |
4f14bcd8 | 13707 | |
95c8801c | 13708 | fi |
10f2d63a | 13709 | |
1e487827 | 13710 | |
4f14bcd8 | 13711 | for ac_func in wcsrtombs |
eb4efbdc | 13712 | do |
698dcdb6 | 13713 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
1d93af2f | 13714 | echo "configure:13715: checking for $ac_func" >&5 |
698dcdb6 VZ |
13715 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13716 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13717 | else | |
13718 | cat > conftest.$ac_ext <<EOF | |
1d93af2f | 13719 | #line 13720 "configure" |
eb4efbdc VZ |
13720 | #include "confdefs.h" |
13721 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13722 | which can conflict with char $ac_func(); below. */ |
eb4efbdc VZ |
13723 | #include <assert.h> |
13724 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13725 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13726 | builtin and then its argument prototype would still apply. */ |
13727 | char $ac_func(); | |
13728 | ||
13729 | int main() { | |
eb4efbdc VZ |
13730 | |
13731 | /* The GNU C library defines this for functions which it implements | |
13732 | to always fail with ENOSYS. Some functions are actually named | |
13733 | something starting with __ and the normal name is an alias. */ | |
13734 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13735 | choke me | |
13736 | #else | |
698dcdb6 | 13737 | $ac_func(); |
eb4efbdc VZ |
13738 | #endif |
13739 | ||
698dcdb6 | 13740 | ; return 0; } |
eb4efbdc | 13741 | EOF |
1d93af2f | 13742 | if { (eval echo configure:13743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13743 | rm -rf conftest* |
13744 | eval "ac_cv_func_$ac_func=yes" | |
13745 | else | |
13746 | echo "configure: failed program was:" >&5 | |
13747 | cat conftest.$ac_ext >&5 | |
13748 | rm -rf conftest* | |
13749 | eval "ac_cv_func_$ac_func=no" | |
13750 | fi | |
13751 | rm -f conftest* | |
13752 | fi | |
eb4efbdc | 13753 | |
698dcdb6 VZ |
13754 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
13755 | echo "$ac_t""yes" 1>&6 | |
13756 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13757 | cat >> confdefs.h <<EOF | |
13758 | #define $ac_tr_func 1 | |
13759 | EOF | |
13760 | ||
13761 | else | |
13762 | echo "$ac_t""no" 1>&6 | |
eb4efbdc VZ |
13763 | fi |
13764 | done | |
13765 | ||
698dcdb6 | 13766 | |
4f14bcd8 | 13767 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 |
1d93af2f | 13768 | echo "configure:13769: checking for vprintf" >&5 |
4f14bcd8 | 13769 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
698dcdb6 VZ |
13770 | echo $ac_n "(cached) $ac_c" 1>&6 |
13771 | else | |
4f14bcd8 | 13772 | cat > conftest.$ac_ext <<EOF |
1d93af2f | 13773 | #line 13774 "configure" |
f6bcfd97 | 13774 | #include "confdefs.h" |
4f14bcd8 GD |
13775 | /* System header to define __stub macros and hopefully few prototypes, |
13776 | which can conflict with char vprintf(); below. */ | |
13777 | #include <assert.h> | |
13778 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13779 | /* We use char because int might match the return type of a gcc2 | |
13780 | builtin and then its argument prototype would still apply. */ | |
13781 | char vprintf(); | |
13782 | ||
698dcdb6 | 13783 | int main() { |
f6bcfd97 | 13784 | |
4f14bcd8 GD |
13785 | /* The GNU C library defines this for functions which it implements |
13786 | to always fail with ENOSYS. Some functions are actually named | |
13787 | something starting with __ and the normal name is an alias. */ | |
13788 | #if defined (__stub_vprintf) || defined (__stub___vprintf) | |
13789 | choke me | |
13790 | #else | |
13791 | vprintf(); | |
13792 | #endif | |
f6bcfd97 | 13793 | |
698dcdb6 VZ |
13794 | ; return 0; } |
13795 | EOF | |
1d93af2f | 13796 | if { (eval echo configure:13797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 13797 | rm -rf conftest* |
4f14bcd8 | 13798 | eval "ac_cv_func_vprintf=yes" |
f6bcfd97 | 13799 | else |
698dcdb6 VZ |
13800 | echo "configure: failed program was:" >&5 |
13801 | cat conftest.$ac_ext >&5 | |
13802 | rm -rf conftest* | |
4f14bcd8 | 13803 | eval "ac_cv_func_vprintf=no" |
6232543b | 13804 | fi |
698dcdb6 | 13805 | rm -f conftest* |
1e487827 | 13806 | fi |
698dcdb6 | 13807 | |
4f14bcd8 GD |
13808 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then |
13809 | echo "$ac_t""yes" 1>&6 | |
13810 | cat >> confdefs.h <<\EOF | |
13811 | #define HAVE_VPRINTF 1 | |
f6bcfd97 BP |
13812 | EOF |
13813 | ||
4f14bcd8 GD |
13814 | else |
13815 | echo "$ac_t""no" 1>&6 | |
eb4efbdc VZ |
13816 | fi |
13817 | ||
4f14bcd8 GD |
13818 | if test "$ac_cv_func_vprintf" != yes; then |
13819 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | |
1d93af2f | 13820 | echo "configure:13821: checking for _doprnt" >&5 |
4f14bcd8 | 13821 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
698dcdb6 VZ |
13822 | echo $ac_n "(cached) $ac_c" 1>&6 |
13823 | else | |
13824 | cat > conftest.$ac_ext <<EOF | |
1d93af2f | 13825 | #line 13826 "configure" |
10f2d63a VZ |
13826 | #include "confdefs.h" |
13827 | /* System header to define __stub macros and hopefully few prototypes, | |
4f14bcd8 | 13828 | which can conflict with char _doprnt(); below. */ |
10f2d63a VZ |
13829 | #include <assert.h> |
13830 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13831 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 13832 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 13833 | char _doprnt(); |
698dcdb6 VZ |
13834 | |
13835 | int main() { | |
10f2d63a VZ |
13836 | |
13837 | /* The GNU C library defines this for functions which it implements | |
13838 | to always fail with ENOSYS. Some functions are actually named | |
13839 | something starting with __ and the normal name is an alias. */ | |
4f14bcd8 | 13840 | #if defined (__stub__doprnt) || defined (__stub____doprnt) |
10f2d63a VZ |
13841 | choke me |
13842 | #else | |
4f14bcd8 | 13843 | _doprnt(); |
10f2d63a VZ |
13844 | #endif |
13845 | ||
698dcdb6 | 13846 | ; return 0; } |
10f2d63a | 13847 | EOF |
1d93af2f | 13848 | if { (eval echo configure:13849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 13849 | rm -rf conftest* |
4f14bcd8 | 13850 | eval "ac_cv_func__doprnt=yes" |
698dcdb6 VZ |
13851 | else |
13852 | echo "configure: failed program was:" >&5 | |
13853 | cat conftest.$ac_ext >&5 | |
13854 | rm -rf conftest* | |
4f14bcd8 | 13855 | eval "ac_cv_func__doprnt=no" |
698dcdb6 VZ |
13856 | fi |
13857 | rm -f conftest* | |
13858 | fi | |
270a909e | 13859 | |
4f14bcd8 | 13860 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then |
698dcdb6 | 13861 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
13862 | cat >> confdefs.h <<\EOF |
13863 | #define HAVE_DOPRNT 1 | |
698dcdb6 | 13864 | EOF |
4f14bcd8 | 13865 | |
698dcdb6 VZ |
13866 | else |
13867 | echo "$ac_t""no" 1>&6 | |
270a909e | 13868 | fi |
270a909e | 13869 | |
4f14bcd8 | 13870 | fi |
1e487827 | 13871 | |
52e8b690 | 13872 | |
52e8b690 | 13873 | |
52e8b690 | 13874 | |
52e8b690 | 13875 | |
52e8b690 | 13876 | |
4f14bcd8 | 13877 | echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6 |
1d93af2f | 13878 | echo "configure:13879: checking for vsnprintf" >&5 |
4f14bcd8 | 13879 | if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then |
698dcdb6 | 13880 | echo $ac_n "(cached) $ac_c" 1>&6 |
c63c7106 | 13881 | else |
4f14bcd8 | 13882 | |
af15babd | 13883 | cat > conftest.$ac_ext <<EOF |
1d93af2f | 13884 | #line 13885 "configure" |
c63c7106 | 13885 | #include "confdefs.h" |
698dcdb6 | 13886 | |
4f14bcd8 GD |
13887 | #include <stdio.h> |
13888 | #include <stdarg.h> | |
13889 | ||
af15babd VZ |
13890 | int main() { |
13891 | ||
4f14bcd8 GD |
13892 | int wx_test_vsnprintf(const char *, ...); |
13893 | ||
13894 | wx_test_vsnprintf("%s"); | |
13895 | return 0; | |
13896 | } | |
13897 | ||
13898 | int wx_test_vsnprintf(const char *fmt, ...) | |
13899 | { | |
13900 | char *s; | |
13901 | ||
13902 | va_list argp; | |
13903 | va_start(argp, fmt); | |
13904 | vsnprintf(s, 42, fmt, argp); | |
13905 | va_end(argp); | |
13906 | ||
af15babd VZ |
13907 | ; return 0; } |
13908 | EOF | |
1d93af2f | 13909 | if { (eval echo configure:13910: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd VZ |
13910 | rm -rf conftest* |
13911 | ||
4f14bcd8 GD |
13912 | wx_cv_func_vsnprintf=yes |
13913 | ||
af15babd VZ |
13914 | else |
13915 | echo "configure: failed program was:" >&5 | |
13916 | cat conftest.$ac_ext >&5 | |
13917 | rm -rf conftest* | |
13918 | ||
4f14bcd8 | 13919 | cat > conftest.$ac_ext <<EOF |
1d93af2f | 13920 | #line 13921 "configure" |
af15babd | 13921 | #include "confdefs.h" |
af15babd | 13922 | |
4f14bcd8 GD |
13923 | #include <stdio.h> |
13924 | #include <stdarg.h> | |
13925 | ||
af15babd VZ |
13926 | int main() { |
13927 | ||
4f14bcd8 GD |
13928 | int wx_test_vsnprintf(const char *, ...); |
13929 | ||
13930 | wx_test_vsnprintf("%s"); | |
13931 | return 0; | |
13932 | } | |
13933 | ||
13934 | int wx_test_vsnprintf(const char *fmt, ...) | |
13935 | { | |
13936 | char *s; | |
af15babd | 13937 | |
4f14bcd8 GD |
13938 | va_list argp; |
13939 | va_start(argp, fmt); | |
13940 | _vsnprintf(s, 42, fmt, argp); | |
13941 | va_end(argp); | |
13942 | ||
af15babd VZ |
13943 | ; return 0; } |
13944 | EOF | |
1d93af2f | 13945 | if { (eval echo configure:13946: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd | 13946 | rm -rf conftest* |
4f14bcd8 GD |
13947 | |
13948 | wx_cv_func_vsnprintf=yes | |
13949 | ||
af15babd VZ |
13950 | else |
13951 | echo "configure: failed program was:" >&5 | |
13952 | cat conftest.$ac_ext >&5 | |
13953 | rm -rf conftest* | |
4f14bcd8 GD |
13954 | |
13955 | wx_cv_func_vsnprintf=no | |
13956 | ||
af15babd VZ |
13957 | fi |
13958 | rm -f conftest* | |
4f14bcd8 | 13959 | |
af15babd | 13960 | fi |
4f14bcd8 | 13961 | rm -f conftest* |
af15babd | 13962 | |
af15babd | 13963 | fi |
af15babd | 13964 | |
4f14bcd8 | 13965 | echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6 |
af15babd | 13966 | |
4f14bcd8 GD |
13967 | if test "$wx_cv_func_vsnprintf" = yes; then |
13968 | cat >> confdefs.h <<\EOF | |
13969 | #define HAVE_VSNPRINTF 1 | |
13970 | EOF | |
13971 | ||
13972 | else | |
13973 | echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2 | |
af15babd VZ |
13974 | fi |
13975 | ||
4f14bcd8 | 13976 | echo $ac_n "checking for vsscanf""... $ac_c" 1>&6 |
1d93af2f | 13977 | echo "configure:13978: checking for vsscanf" >&5 |
4f14bcd8 | 13978 | if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then |
af15babd VZ |
13979 | echo $ac_n "(cached) $ac_c" 1>&6 |
13980 | else | |
4f14bcd8 | 13981 | |
af15babd | 13982 | cat > conftest.$ac_ext <<EOF |
1d93af2f | 13983 | #line 13984 "configure" |
af15babd | 13984 | #include "confdefs.h" |
af15babd | 13985 | |
4f14bcd8 GD |
13986 | #include <stdio.h> |
13987 | #include <stdarg.h> | |
13988 | ||
af15babd VZ |
13989 | int main() { |
13990 | ||
4f14bcd8 GD |
13991 | int wx_test_vsscanf(const char *, ...); |
13992 | ||
13993 | wx_test_vsscanf("%d"); | |
13994 | return 0; | |
13995 | } | |
af15babd | 13996 | |
4f14bcd8 GD |
13997 | int wx_test_vsscanf(const char *fmt, ...) |
13998 | { | |
13999 | va_list argp; | |
14000 | va_start(argp, fmt); | |
14001 | vsscanf("42", fmt, argp); | |
14002 | va_end(argp); | |
14003 | ||
af15babd VZ |
14004 | ; return 0; } |
14005 | EOF | |
1d93af2f | 14006 | if { (eval echo configure:14007: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd | 14007 | rm -rf conftest* |
4f14bcd8 GD |
14008 | |
14009 | wx_cv_func_vsscanf=yes | |
14010 | ||
af15babd VZ |
14011 | else |
14012 | echo "configure: failed program was:" >&5 | |
14013 | cat conftest.$ac_ext >&5 | |
14014 | rm -rf conftest* | |
4f14bcd8 GD |
14015 | |
14016 | wx_cv_func_vsscanf=no | |
14017 | ||
af15babd VZ |
14018 | fi |
14019 | rm -f conftest* | |
4f14bcd8 | 14020 | |
af15babd VZ |
14021 | fi |
14022 | ||
4f14bcd8 GD |
14023 | echo "$ac_t""$wx_cv_func_vsscanf" 1>&6 |
14024 | ||
14025 | if test "$wx_cv_func_vsscanf" = yes; then | |
14026 | cat >> confdefs.h <<\EOF | |
14027 | #define HAVE_VSSCANF 1 | |
af15babd | 14028 | EOF |
4f14bcd8 | 14029 | |
af15babd | 14030 | fi |
af15babd | 14031 | |
4f14bcd8 | 14032 | if test "$TOOLKIT" != "MSW"; then |
af15babd | 14033 | |
4f14bcd8 GD |
14034 | |
14035 | ||
14036 | ac_ext=C | |
14037 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14038 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14039 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14040 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14041 | cross_compiling=$ac_cv_prog_cxx_cross | |
14042 | ||
14043 | echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6 | |
1d93af2f | 14044 | echo "configure:14045: checking if iconv() takes char**" >&5 |
4f14bcd8 | 14045 | if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then |
af15babd VZ |
14046 | echo $ac_n "(cached) $ac_c" 1>&6 |
14047 | else | |
4f14bcd8 GD |
14048 | |
14049 | cat > conftest.$ac_ext <<EOF | |
1d93af2f | 14050 | #line 14051 "configure" |
af15babd | 14051 | #include "confdefs.h" |
4f14bcd8 | 14052 | #include <iconv.h> |
af15babd VZ |
14053 | int main() { |
14054 | ||
4f14bcd8 GD |
14055 | char **inbuf, **outbuf; |
14056 | iconv_t cd; | |
14057 | size_t insz, outsz; | |
14058 | iconv(cd, inbuf, &insz, outbuf, &outsz); | |
14059 | ||
af15babd VZ |
14060 | ; return 0; } |
14061 | EOF | |
1d93af2f | 14062 | if { (eval echo configure:14063: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd | 14063 | rm -rf conftest* |
4f14bcd8 | 14064 | wx_cv_iconv_takes_char=yes |
af15babd VZ |
14065 | else |
14066 | echo "configure: failed program was:" >&5 | |
14067 | cat conftest.$ac_ext >&5 | |
14068 | rm -rf conftest* | |
4f14bcd8 | 14069 | wx_cv_iconv_takes_char=no |
af15babd VZ |
14070 | fi |
14071 | rm -f conftest* | |
af15babd | 14072 | |
af15babd | 14073 | fi |
af15babd | 14074 | |
4f14bcd8 GD |
14075 | echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6 |
14076 | ac_ext=c | |
14077 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14078 | ac_cpp='$CPP $CPPFLAGS' | |
14079 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14080 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14081 | cross_compiling=$ac_cv_prog_cc_cross | |
af15babd | 14082 | |
4f14bcd8 GD |
14083 | if test "$wx_cv_iconv_takes_char" = yes ; then |
14084 | cat >> confdefs.h <<\EOF | |
14085 | #define WX_ICONV_TAKES_CHAR 1 | |
af15babd VZ |
14086 | EOF |
14087 | ||
af15babd VZ |
14088 | fi |
14089 | ||
af15babd | 14090 | |
4f14bcd8 GD |
14091 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
14092 | for ac_func in sigaction | |
af15babd VZ |
14093 | do |
14094 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
1d93af2f | 14095 | echo "configure:14096: checking for $ac_func" >&5 |
af15babd VZ |
14096 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14097 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14098 | else | |
14099 | cat > conftest.$ac_ext <<EOF | |
1d93af2f | 14100 | #line 14101 "configure" |
af15babd VZ |
14101 | #include "confdefs.h" |
14102 | /* System header to define __stub macros and hopefully few prototypes, | |
14103 | which can conflict with char $ac_func(); below. */ | |
14104 | #include <assert.h> | |
14105 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14106 | /* We use char because int might match the return type of a gcc2 | |
14107 | builtin and then its argument prototype would still apply. */ | |
14108 | char $ac_func(); | |
14109 | ||
14110 | int main() { | |
14111 | ||
14112 | /* The GNU C library defines this for functions which it implements | |
14113 | to always fail with ENOSYS. Some functions are actually named | |
14114 | something starting with __ and the normal name is an alias. */ | |
14115 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14116 | choke me | |
14117 | #else | |
14118 | $ac_func(); | |
14119 | #endif | |
14120 | ||
14121 | ; return 0; } | |
14122 | EOF | |
1d93af2f | 14123 | if { (eval echo configure:14124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
14124 | rm -rf conftest* |
14125 | eval "ac_cv_func_$ac_func=yes" | |
14126 | else | |
14127 | echo "configure: failed program was:" >&5 | |
14128 | cat conftest.$ac_ext >&5 | |
14129 | rm -rf conftest* | |
14130 | eval "ac_cv_func_$ac_func=no" | |
14131 | fi | |
14132 | rm -f conftest* | |
14133 | fi | |
14134 | ||
14135 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
14136 | echo "$ac_t""yes" 1>&6 | |
14137 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14138 | cat >> confdefs.h <<EOF | |
14139 | #define $ac_tr_func 1 | |
14140 | EOF | |
4f14bcd8 | 14141 | |
af15babd VZ |
14142 | else |
14143 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 GD |
14144 | fi |
14145 | done | |
14146 | ||
14147 | ||
14148 | if test "$ac_cv_func_sigaction" = "no"; then | |
14149 | echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2 | |
14150 | wxUSE_ON_FATAL_EXCEPTION=no | |
14151 | fi | |
14152 | ||
14153 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
14154 | ||
14155 | ac_ext=C | |
14156 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14157 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14158 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14159 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14160 | cross_compiling=$ac_cv_prog_cxx_cross | |
14161 | ||
14162 | ||
14163 | echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6 | |
1d93af2f | 14164 | echo "configure:14165: checking for sa_handler type" >&5 |
4f14bcd8 | 14165 | if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then |
af15babd VZ |
14166 | echo $ac_n "(cached) $ac_c" 1>&6 |
14167 | else | |
4f14bcd8 GD |
14168 | |
14169 | cat > conftest.$ac_ext <<EOF | |
1d93af2f | 14170 | #line 14171 "configure" |
af15babd | 14171 | #include "confdefs.h" |
4f14bcd8 | 14172 | #include <signal.h> |
af15babd | 14173 | int main() { |
4f14bcd8 GD |
14174 | |
14175 | extern void testSigHandler(int); | |
14176 | ||
14177 | struct sigaction sa; | |
14178 | sa.sa_handler = testSigHandler; | |
14179 | ||
af15babd VZ |
14180 | ; return 0; } |
14181 | EOF | |
1d93af2f | 14182 | if { (eval echo configure:14183: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd | 14183 | rm -rf conftest* |
4f14bcd8 GD |
14184 | |
14185 | wx_cv_type_sa_handler=int | |
14186 | ||
af15babd VZ |
14187 | else |
14188 | echo "configure: failed program was:" >&5 | |
14189 | cat conftest.$ac_ext >&5 | |
14190 | rm -rf conftest* | |
4f14bcd8 GD |
14191 | |
14192 | wx_cv_type_sa_handler=void | |
14193 | ||
af15babd VZ |
14194 | fi |
14195 | rm -f conftest* | |
4f14bcd8 GD |
14196 | |
14197 | fi | |
14198 | ||
14199 | echo "$ac_t""$wx_cv_type_sa_handler" 1>&6 | |
14200 | ||
14201 | ac_ext=c | |
14202 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14203 | ac_cpp='$CPP $CPPFLAGS' | |
14204 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14205 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14206 | cross_compiling=$ac_cv_prog_cc_cross | |
af15babd | 14207 | |
4f14bcd8 GD |
14208 | |
14209 | cat >> confdefs.h <<EOF | |
14210 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler | |
af15babd VZ |
14211 | EOF |
14212 | ||
4f14bcd8 GD |
14213 | fi |
14214 | fi | |
af15babd | 14215 | |
4f14bcd8 | 14216 | for ac_func in vfork |
af15babd VZ |
14217 | do |
14218 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
1d93af2f | 14219 | echo "configure:14220: checking for $ac_func" >&5 |
af15babd VZ |
14220 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14221 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14222 | else | |
14223 | cat > conftest.$ac_ext <<EOF | |
1d93af2f | 14224 | #line 14225 "configure" |
af15babd VZ |
14225 | #include "confdefs.h" |
14226 | /* System header to define __stub macros and hopefully few prototypes, | |
14227 | which can conflict with char $ac_func(); below. */ | |
14228 | #include <assert.h> | |
14229 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14230 | /* We use char because int might match the return type of a gcc2 | |
14231 | builtin and then its argument prototype would still apply. */ | |
14232 | char $ac_func(); | |
14233 | ||
14234 | int main() { | |
14235 | ||
14236 | /* The GNU C library defines this for functions which it implements | |
14237 | to always fail with ENOSYS. Some functions are actually named | |
14238 | something starting with __ and the normal name is an alias. */ | |
14239 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14240 | choke me | |
14241 | #else | |
14242 | $ac_func(); | |
14243 | #endif | |
14244 | ||
14245 | ; return 0; } | |
14246 | EOF | |
1d93af2f | 14247 | if { (eval echo configure:14248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
14248 | rm -rf conftest* |
14249 | eval "ac_cv_func_$ac_func=yes" | |
14250 | else | |
14251 | echo "configure: failed program was:" >&5 | |
14252 | cat conftest.$ac_ext >&5 | |
14253 | rm -rf conftest* | |
14254 | eval "ac_cv_func_$ac_func=no" | |
14255 | fi | |
14256 | rm -f conftest* | |
14257 | fi | |
14258 | ||
14259 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
14260 | echo "$ac_t""yes" 1>&6 | |
14261 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14262 | cat >> confdefs.h <<EOF | |
14263 | #define $ac_tr_func 1 | |
14264 | EOF | |
4f14bcd8 | 14265 | |
af15babd VZ |
14266 | else |
14267 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
14268 | fi |
14269 | done | |
14270 | ||
af15babd | 14271 | |
4f14bcd8 | 14272 | echo $ac_n "checking for statfs""... $ac_c" 1>&6 |
1d93af2f | 14273 | echo "configure:14274: checking for statfs" >&5 |
4f14bcd8 GD |
14274 | if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then |
14275 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14276 | else | |
14277 | cat > conftest.$ac_ext <<EOF | |
1d93af2f | 14278 | #line 14279 "configure" |
4f14bcd8 GD |
14279 | #include "confdefs.h" |
14280 | ||
14281 | #if defined(__BSD__) | |
14282 | #include <sys/param.h> | |
14283 | #include <sys/mount.h> | |
14284 | #else | |
14285 | #include <sys/vfs.h> | |
14286 | #endif | |
14287 | ||
14288 | int main() { | |
14289 | ||
14290 | long l; | |
14291 | struct statfs fs; | |
14292 | statfs("/", &fs); | |
14293 | l = fs.f_bsize; | |
14294 | l += fs.f_blocks; | |
14295 | l += fs.f_bavail; | |
14296 | ||
14297 | ; return 0; } | |
14298 | EOF | |
1d93af2f | 14299 | if { (eval echo configure:14300: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
14300 | rm -rf conftest* |
14301 | ||
14302 | wx_cv_func_statfs=yes | |
14303 | ||
14304 | else | |
14305 | echo "configure: failed program was:" >&5 | |
14306 | cat conftest.$ac_ext >&5 | |
14307 | rm -rf conftest* | |
14308 | ||
14309 | wx_cv_func_statfs=no | |
af15babd VZ |
14310 | |
14311 | ||
14312 | fi | |
4f14bcd8 | 14313 | rm -f conftest* |
af15babd VZ |
14314 | |
14315 | fi | |
14316 | ||
4f14bcd8 GD |
14317 | echo "$ac_t""$wx_cv_func_statfs" 1>&6 |
14318 | ||
14319 | if test "$wx_cv_func_statfs" = "yes"; then | |
14320 | cat >> confdefs.h <<\EOF | |
14321 | #define HAVE_STATFS 1 | |
14322 | EOF | |
14323 | ||
14324 | else | |
14325 | echo $ac_n "checking for statvfs""... $ac_c" 1>&6 | |
1d93af2f | 14326 | echo "configure:14327: checking for statvfs" >&5 |
4f14bcd8 | 14327 | if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then |
af15babd VZ |
14328 | echo $ac_n "(cached) $ac_c" 1>&6 |
14329 | else | |
14330 | cat > conftest.$ac_ext <<EOF | |
1d93af2f | 14331 | #line 14332 "configure" |
af15babd | 14332 | #include "confdefs.h" |
af15babd | 14333 | |
4f14bcd8 GD |
14334 | #include <sys/statvfs.h> |
14335 | ||
af15babd VZ |
14336 | int main() { |
14337 | ||
4f14bcd8 GD |
14338 | long l; |
14339 | struct statvfs fs; | |
14340 | statvfs("/", &fs); | |
14341 | l = fs.f_bsize; | |
14342 | l += fs.f_blocks; | |
14343 | l += fs.f_bavail; | |
14344 | ||
af15babd VZ |
14345 | ; return 0; } |
14346 | EOF | |
1d93af2f | 14347 | if { (eval echo configure:14348: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd | 14348 | rm -rf conftest* |
4f14bcd8 GD |
14349 | |
14350 | wx_cv_func_statvfs=yes | |
14351 | ||
af15babd VZ |
14352 | else |
14353 | echo "configure: failed program was:" >&5 | |
14354 | cat conftest.$ac_ext >&5 | |
14355 | rm -rf conftest* | |
4f14bcd8 GD |
14356 | |
14357 | wx_cv_func_statvfs=no | |
14358 | ||
14359 | ||
af15babd VZ |
14360 | fi |
14361 | rm -f conftest* | |
4f14bcd8 | 14362 | |
af15babd VZ |
14363 | fi |
14364 | ||
4f14bcd8 | 14365 | echo "$ac_t""$wx_cv_func_statvfs" 1>&6 |
af15babd | 14366 | |
4f14bcd8 GD |
14367 | if test "$wx_cv_func_statvfs" = "yes"; then |
14368 | cat >> confdefs.h <<\EOF | |
14369 | #define HAVE_STATVFS 1 | |
14370 | EOF | |
af15babd | 14371 | |
4f14bcd8 GD |
14372 | else |
14373 | echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2 | |
14374 | fi | |
14375 | fi | |
af15babd | 14376 | |
4f14bcd8 GD |
14377 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
14378 | for ac_func in fcntl flock | |
af15babd VZ |
14379 | do |
14380 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
1d93af2f | 14381 | echo "configure:14382: checking for $ac_func" >&5 |
af15babd VZ |
14382 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14383 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14384 | else | |
14385 | cat > conftest.$ac_ext <<EOF | |
1d93af2f | 14386 | #line 14387 "configure" |
af15babd VZ |
14387 | #include "confdefs.h" |
14388 | /* System header to define __stub macros and hopefully few prototypes, | |
14389 | which can conflict with char $ac_func(); below. */ | |
14390 | #include <assert.h> | |
14391 | /* Override any gcc2 internal prototype to avoid an error. */ | |
af15babd VZ |
14392 | /* We use char because int might match the return type of a gcc2 |
14393 | builtin and then its argument prototype would still apply. */ | |
14394 | char $ac_func(); | |
14395 | ||
14396 | int main() { | |
14397 | ||
14398 | /* The GNU C library defines this for functions which it implements | |
14399 | to always fail with ENOSYS. Some functions are actually named | |
14400 | something starting with __ and the normal name is an alias. */ | |
14401 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14402 | choke me | |
14403 | #else | |
14404 | $ac_func(); | |
14405 | #endif | |
14406 | ||
14407 | ; return 0; } | |
14408 | EOF | |
1d93af2f | 14409 | if { (eval echo configure:14410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
14410 | rm -rf conftest* |
14411 | eval "ac_cv_func_$ac_func=yes" | |
14412 | else | |
14413 | echo "configure: failed program was:" >&5 | |
14414 | cat conftest.$ac_ext >&5 | |
14415 | rm -rf conftest* | |
14416 | eval "ac_cv_func_$ac_func=no" | |
14417 | fi | |
14418 | rm -f conftest* | |
14419 | fi | |
14420 | ||
14421 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
14422 | echo "$ac_t""yes" 1>&6 | |
14423 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14424 | cat >> confdefs.h <<EOF | |
14425 | #define $ac_tr_func 1 | |
14426 | EOF | |
4f14bcd8 | 14427 | break |
af15babd VZ |
14428 | else |
14429 | echo "$ac_t""no" 1>&6 | |
14430 | fi | |
14431 | done | |
14432 | ||
14433 | ||
4f14bcd8 GD |
14434 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then |
14435 | echo "configure: warning: wxSingleInstanceChecker not available" 1>&2 | |
14436 | wxUSE_SNGLINST_CHECKER=no | |
14437 | fi | |
14438 | fi | |
af15babd | 14439 | |
4f14bcd8 | 14440 | for ac_func in timegm |
af15babd VZ |
14441 | do |
14442 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
1d93af2f | 14443 | echo "configure:14444: checking for $ac_func" >&5 |
af15babd VZ |
14444 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14445 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14446 | else | |
14447 | cat > conftest.$ac_ext <<EOF | |
1d93af2f | 14448 | #line 14449 "configure" |
af15babd VZ |
14449 | #include "confdefs.h" |
14450 | /* System header to define __stub macros and hopefully few prototypes, | |
14451 | which can conflict with char $ac_func(); below. */ | |
14452 | #include <assert.h> | |
14453 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14454 | /* We use char because int might match the return type of a gcc2 | |
14455 | builtin and then its argument prototype would still apply. */ | |
14456 | char $ac_func(); | |
14457 | ||
698dcdb6 | 14458 | int main() { |
698dcdb6 | 14459 | |
af15babd VZ |
14460 | /* The GNU C library defines this for functions which it implements |
14461 | to always fail with ENOSYS. Some functions are actually named | |
14462 | something starting with __ and the normal name is an alias. */ | |
14463 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14464 | choke me | |
14465 | #else | |
14466 | $ac_func(); | |
14467 | #endif | |
14468 | ||
698dcdb6 VZ |
14469 | ; return 0; } |
14470 | EOF | |
1d93af2f | 14471 | if { (eval echo configure:14472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 14472 | rm -rf conftest* |
af15babd | 14473 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
14474 | else |
14475 | echo "configure: failed program was:" >&5 | |
14476 | cat conftest.$ac_ext >&5 | |
14477 | rm -rf conftest* | |
af15babd | 14478 | eval "ac_cv_func_$ac_func=no" |
1e487827 | 14479 | fi |
9952adac | 14480 | rm -f conftest* |
af15babd | 14481 | fi |
703e0a69 | 14482 | |
af15babd VZ |
14483 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
14484 | echo "$ac_t""yes" 1>&6 | |
14485 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
4f14bcd8 GD |
14486 | cat >> confdefs.h <<EOF |
14487 | #define $ac_tr_func 1 | |
14488 | EOF | |
14489 | ||
14490 | else | |
14491 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
14492 | fi |
14493 | done | |
14494 | ||
14495 | ||
4f14bcd8 | 14496 | for ac_func in putenv setenv |
10f2d63a | 14497 | do |
698dcdb6 | 14498 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
1d93af2f | 14499 | echo "configure:14500: checking for $ac_func" >&5 |
698dcdb6 VZ |
14500 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14501 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14502 | else | |
14503 | cat > conftest.$ac_ext <<EOF | |
1d93af2f | 14504 | #line 14505 "configure" |
af15babd VZ |
14505 | #include "confdefs.h" |
14506 | /* System header to define __stub macros and hopefully few prototypes, | |
14507 | which can conflict with char $ac_func(); below. */ | |
14508 | #include <assert.h> | |
14509 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14510 | /* We use char because int might match the return type of a gcc2 | |
14511 | builtin and then its argument prototype would still apply. */ | |
14512 | char $ac_func(); | |
14513 | ||
14514 | int main() { | |
14515 | ||
14516 | /* The GNU C library defines this for functions which it implements | |
14517 | to always fail with ENOSYS. Some functions are actually named | |
14518 | something starting with __ and the normal name is an alias. */ | |
14519 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14520 | choke me | |
14521 | #else | |
14522 | $ac_func(); | |
14523 | #endif | |
14524 | ||
14525 | ; return 0; } | |
14526 | EOF | |
1d93af2f | 14527 | if { (eval echo configure:14528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
14528 | rm -rf conftest* |
14529 | eval "ac_cv_func_$ac_func=yes" | |
14530 | else | |
14531 | echo "configure: failed program was:" >&5 | |
14532 | cat conftest.$ac_ext >&5 | |
14533 | rm -rf conftest* | |
14534 | eval "ac_cv_func_$ac_func=no" | |
14535 | fi | |
14536 | rm -f conftest* | |
14537 | fi | |
14538 | ||
14539 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
14540 | echo "$ac_t""yes" 1>&6 | |
14541 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14542 | cat >> confdefs.h <<EOF | |
14543 | #define $ac_tr_func 1 | |
14544 | EOF | |
4f14bcd8 | 14545 | break |
af15babd VZ |
14546 | else |
14547 | echo "$ac_t""no" 1>&6 | |
14548 | fi | |
af15babd VZ |
14549 | done |
14550 | ||
14551 | ||
4f14bcd8 GD |
14552 | HAVE_SOME_SLEEP_FUNC=0 |
14553 | if test "$USE_BEOS" = 1; then | |
14554 | cat >> confdefs.h <<\EOF | |
14555 | #define HAVE_SLEEP 1 | |
af15babd VZ |
14556 | EOF |
14557 | ||
4f14bcd8 | 14558 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
14559 | fi |
14560 | ||
4f14bcd8 GD |
14561 | if test "$USE_DARWIN" = 1; then |
14562 | cat >> confdefs.h <<\EOF | |
14563 | #define HAVE_USLEEP 1 | |
af15babd | 14564 | EOF |
10f2d63a | 14565 | |
4f14bcd8 | 14566 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
14567 | fi |
14568 | ||
4f14bcd8 GD |
14569 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then |
14570 | POSIX4_LINK= | |
14571 | for ac_func in nanosleep | |
14572 | do | |
14573 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
1d93af2f | 14574 | echo "configure:14575: checking for $ac_func" >&5 |
4f14bcd8 | 14575 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 | 14576 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 14577 | else |
4f14bcd8 | 14578 | cat > conftest.$ac_ext <<EOF |
1d93af2f | 14579 | #line 14580 "configure" |
10f2d63a | 14580 | #include "confdefs.h" |
4f14bcd8 GD |
14581 | /* System header to define __stub macros and hopefully few prototypes, |
14582 | which can conflict with char $ac_func(); below. */ | |
14583 | #include <assert.h> | |
10f2d63a VZ |
14584 | /* Override any gcc2 internal prototype to avoid an error. */ |
14585 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 14586 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 14587 | char $ac_func(); |
698dcdb6 VZ |
14588 | |
14589 | int main() { | |
4f14bcd8 GD |
14590 | |
14591 | /* The GNU C library defines this for functions which it implements | |
14592 | to always fail with ENOSYS. Some functions are actually named | |
14593 | something starting with __ and the normal name is an alias. */ | |
14594 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14595 | choke me | |
14596 | #else | |
14597 | $ac_func(); | |
14598 | #endif | |
14599 | ||
698dcdb6 VZ |
14600 | ; return 0; } |
14601 | EOF | |
1d93af2f | 14602 | if { (eval echo configure:14603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 14603 | rm -rf conftest* |
4f14bcd8 | 14604 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
14605 | else |
14606 | echo "configure: failed program was:" >&5 | |
14607 | cat conftest.$ac_ext >&5 | |
14608 | rm -rf conftest* | |
4f14bcd8 | 14609 | eval "ac_cv_func_$ac_func=no" |
698dcdb6 VZ |
14610 | fi |
14611 | rm -f conftest* | |
698dcdb6 | 14612 | fi |
4f14bcd8 GD |
14613 | |
14614 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 14615 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
14616 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
14617 | cat >> confdefs.h <<EOF | |
14618 | #define $ac_tr_func 1 | |
14619 | EOF | |
14620 | cat >> confdefs.h <<\EOF | |
14621 | #define HAVE_NANOSLEEP 1 | |
14622 | EOF | |
14623 | ||
10f2d63a | 14624 | else |
698dcdb6 | 14625 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 14626 | echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 |
1d93af2f | 14627 | echo "configure:14628: checking for nanosleep in -lposix4" >&5 |
4f14bcd8 | 14628 | ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
14629 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
14630 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14631 | else |
698dcdb6 | 14632 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 14633 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 14634 | cat > conftest.$ac_ext <<EOF |
1d93af2f | 14635 | #line 14636 "configure" |
10f2d63a VZ |
14636 | #include "confdefs.h" |
14637 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14638 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 14639 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 14640 | char nanosleep(); |
698dcdb6 VZ |
14641 | |
14642 | int main() { | |
4f14bcd8 | 14643 | nanosleep() |
698dcdb6 VZ |
14644 | ; return 0; } |
14645 | EOF | |
1d93af2f | 14646 | if { (eval echo configure:14647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14647 | rm -rf conftest* |
14648 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14649 | else | |
14650 | echo "configure: failed program was:" >&5 | |
14651 | cat conftest.$ac_ext >&5 | |
14652 | rm -rf conftest* | |
14653 | eval "ac_cv_lib_$ac_lib_var=no" | |
14654 | fi | |
14655 | rm -f conftest* | |
14656 | LIBS="$ac_save_LIBS" | |
10f2d63a | 14657 | |
698dcdb6 VZ |
14658 | fi |
14659 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14660 | echo "$ac_t""yes" 1>&6 | |
14661 | ||
4f14bcd8 GD |
14662 | cat >> confdefs.h <<\EOF |
14663 | #define HAVE_NANOSLEEP 1 | |
14664 | EOF | |
14665 | ||
3d63bc3a | 14666 | POSIX4_LINK=" -lposix4" |
4f14bcd8 | 14667 | |
10f2d63a | 14668 | else |
698dcdb6 | 14669 | echo "$ac_t""no" 1>&6 |
10f2d63a | 14670 | |
4f14bcd8 GD |
14671 | for ac_func in usleep |
14672 | do | |
14673 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
1d93af2f | 14674 | echo "configure:14675: checking for $ac_func" >&5 |
4f14bcd8 | 14675 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 | 14676 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 14677 | else |
698dcdb6 | 14678 | cat > conftest.$ac_ext <<EOF |
1d93af2f | 14679 | #line 14680 "configure" |
10f2d63a | 14680 | #include "confdefs.h" |
4f14bcd8 GD |
14681 | /* System header to define __stub macros and hopefully few prototypes, |
14682 | which can conflict with char $ac_func(); below. */ | |
14683 | #include <assert.h> | |
14684 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14685 | /* We use char because int might match the return type of a gcc2 | |
14686 | builtin and then its argument prototype would still apply. */ | |
14687 | char $ac_func(); | |
14688 | ||
14689 | int main() { | |
14690 | ||
14691 | /* The GNU C library defines this for functions which it implements | |
14692 | to always fail with ENOSYS. Some functions are actually named | |
14693 | something starting with __ and the normal name is an alias. */ | |
14694 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14695 | choke me | |
14696 | #else | |
14697 | $ac_func(); | |
14698 | #endif | |
14699 | ||
14700 | ; return 0; } | |
698dcdb6 | 14701 | EOF |
1d93af2f | 14702 | if { (eval echo configure:14703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 14703 | rm -rf conftest* |
4f14bcd8 | 14704 | eval "ac_cv_func_$ac_func=yes" |
1e487827 | 14705 | else |
698dcdb6 | 14706 | echo "configure: failed program was:" >&5 |
10f2d63a | 14707 | cat conftest.$ac_ext >&5 |
698dcdb6 | 14708 | rm -rf conftest* |
4f14bcd8 | 14709 | eval "ac_cv_func_$ac_func=no" |
10f2d63a | 14710 | fi |
698dcdb6 | 14711 | rm -f conftest* |
10f2d63a | 14712 | fi |
4f14bcd8 GD |
14713 | |
14714 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 14715 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
14716 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
14717 | cat >> confdefs.h <<EOF | |
14718 | #define $ac_tr_func 1 | |
14719 | EOF | |
14720 | cat >> confdefs.h <<\EOF | |
14721 | #define HAVE_USLEEP 1 | |
14722 | EOF | |
14723 | ||
698dcdb6 VZ |
14724 | else |
14725 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 GD |
14726 | echo "configure: warning: wxSleep() function will not work" 1>&2 |
14727 | ||
10f2d63a | 14728 | fi |
4f14bcd8 | 14729 | done |
10f2d63a | 14730 | |
4f14bcd8 | 14731 | |
698dcdb6 | 14732 | |
6232543b | 14733 | fi |
10f2d63a | 14734 | |
698dcdb6 | 14735 | |
4f14bcd8 | 14736 | |
1e487827 | 14737 | fi |
4f14bcd8 | 14738 | done |
703e0a69 | 14739 | |
10f2d63a VZ |
14740 | fi |
14741 | ||
4f14bcd8 | 14742 | for ac_func in uname gethostname |
70846f0a | 14743 | do |
698dcdb6 | 14744 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
1d93af2f | 14745 | echo "configure:14746: checking for $ac_func" >&5 |
698dcdb6 VZ |
14746 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14747 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14748 | else | |
14749 | cat > conftest.$ac_ext <<EOF | |
1d93af2f | 14750 | #line 14751 "configure" |
70846f0a VZ |
14751 | #include "confdefs.h" |
14752 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 14753 | which can conflict with char $ac_func(); below. */ |
70846f0a VZ |
14754 | #include <assert.h> |
14755 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14756 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14757 | builtin and then its argument prototype would still apply. */ |
14758 | char $ac_func(); | |
14759 | ||
14760 | int main() { | |
70846f0a VZ |
14761 | |
14762 | /* The GNU C library defines this for functions which it implements | |
14763 | to always fail with ENOSYS. Some functions are actually named | |
14764 | something starting with __ and the normal name is an alias. */ | |
14765 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14766 | choke me | |
14767 | #else | |
698dcdb6 | 14768 | $ac_func(); |
70846f0a VZ |
14769 | #endif |
14770 | ||
698dcdb6 | 14771 | ; return 0; } |
70846f0a | 14772 | EOF |
1d93af2f | 14773 | if { (eval echo configure:14774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14774 | rm -rf conftest* |
14775 | eval "ac_cv_func_$ac_func=yes" | |
14776 | else | |
14777 | echo "configure: failed program was:" >&5 | |
14778 | cat conftest.$ac_ext >&5 | |
14779 | rm -rf conftest* | |
14780 | eval "ac_cv_func_$ac_func=no" | |
14781 | fi | |
14782 | rm -f conftest* | |
14783 | fi | |
70846f0a | 14784 | |
698dcdb6 VZ |
14785 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
14786 | echo "$ac_t""yes" 1>&6 | |
14787 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14788 | cat >> confdefs.h <<EOF | |
14789 | #define $ac_tr_func 1 | |
14790 | EOF | |
4f14bcd8 | 14791 | break |
698dcdb6 VZ |
14792 | else |
14793 | echo "$ac_t""no" 1>&6 | |
70846f0a VZ |
14794 | fi |
14795 | done | |
14796 | ||
698dcdb6 | 14797 | |
4f14bcd8 GD |
14798 | |
14799 | ac_ext=C | |
14800 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14801 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14802 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14803 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14804 | cross_compiling=$ac_cv_prog_cxx_cross | |
14805 | ||
14806 | ||
14807 | for ac_func in strtok_r | |
10f2d63a | 14808 | do |
4f14bcd8 | 14809 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
1d93af2f | 14810 | echo "configure:14811: checking for $ac_func" >&5 |
4f14bcd8 | 14811 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 VZ |
14812 | echo $ac_n "(cached) $ac_c" 1>&6 |
14813 | else | |
14814 | cat > conftest.$ac_ext <<EOF | |
1d93af2f | 14815 | #line 14816 "configure" |
10f2d63a | 14816 | #include "confdefs.h" |
4f14bcd8 GD |
14817 | /* System header to define __stub macros and hopefully few prototypes, |
14818 | which can conflict with char $ac_func(); below. */ | |
14819 | #include <assert.h> | |
14820 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14821 | #ifdef __cplusplus | |
14822 | extern "C" | |
14823 | #endif | |
14824 | /* We use char because int might match the return type of a gcc2 | |
14825 | builtin and then its argument prototype would still apply. */ | |
14826 | char $ac_func(); | |
14827 | ||
14828 | int main() { | |
14829 | ||
14830 | /* The GNU C library defines this for functions which it implements | |
14831 | to always fail with ENOSYS. Some functions are actually named | |
14832 | something starting with __ and the normal name is an alias. */ | |
14833 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14834 | choke me | |
14835 | #else | |
14836 | $ac_func(); | |
14837 | #endif | |
14838 | ||
14839 | ; return 0; } | |
698dcdb6 | 14840 | EOF |
1d93af2f | 14841 | if { (eval echo configure:14842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 14842 | rm -rf conftest* |
4f14bcd8 | 14843 | eval "ac_cv_func_$ac_func=yes" |
1e487827 | 14844 | else |
698dcdb6 | 14845 | echo "configure: failed program was:" >&5 |
10f2d63a | 14846 | cat conftest.$ac_ext >&5 |
698dcdb6 | 14847 | rm -rf conftest* |
4f14bcd8 | 14848 | eval "ac_cv_func_$ac_func=no" |
10f2d63a | 14849 | fi |
698dcdb6 | 14850 | rm -f conftest* |
10f2d63a | 14851 | fi |
4f14bcd8 GD |
14852 | |
14853 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 14854 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 | 14855 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
698dcdb6 | 14856 | cat >> confdefs.h <<EOF |
4f14bcd8 | 14857 | #define $ac_tr_func 1 |
10f2d63a | 14858 | EOF |
698dcdb6 VZ |
14859 | |
14860 | else | |
14861 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
14862 | fi |
14863 | done | |
14864 | ||
698dcdb6 | 14865 | |
4f14bcd8 GD |
14866 | ac_ext=c |
14867 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14868 | ac_cpp='$CPP $CPPFLAGS' | |
14869 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14870 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14871 | cross_compiling=$ac_cv_prog_cc_cross | |
14872 | ||
14873 | ||
14874 | INET_LINK= | |
14875 | for ac_func in inet_addr | |
14876 | do | |
14877 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
1d93af2f | 14878 | echo "configure:14879: checking for $ac_func" >&5 |
4f14bcd8 | 14879 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 | 14880 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 14881 | else |
4f14bcd8 | 14882 | cat > conftest.$ac_ext <<EOF |
1d93af2f | 14883 | #line 14884 "configure" |
10f2d63a | 14884 | #include "confdefs.h" |
4f14bcd8 GD |
14885 | /* System header to define __stub macros and hopefully few prototypes, |
14886 | which can conflict with char $ac_func(); below. */ | |
14887 | #include <assert.h> | |
10f2d63a VZ |
14888 | /* Override any gcc2 internal prototype to avoid an error. */ |
14889 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 14890 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 14891 | char $ac_func(); |
698dcdb6 VZ |
14892 | |
14893 | int main() { | |
4f14bcd8 GD |
14894 | |
14895 | /* The GNU C library defines this for functions which it implements | |
14896 | to always fail with ENOSYS. Some functions are actually named | |
14897 | something starting with __ and the normal name is an alias. */ | |
14898 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14899 | choke me | |
14900 | #else | |
14901 | $ac_func(); | |
14902 | #endif | |
14903 | ||
698dcdb6 VZ |
14904 | ; return 0; } |
14905 | EOF | |
1d93af2f | 14906 | if { (eval echo configure:14907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 14907 | rm -rf conftest* |
4f14bcd8 | 14908 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
14909 | else |
14910 | echo "configure: failed program was:" >&5 | |
14911 | cat conftest.$ac_ext >&5 | |
14912 | rm -rf conftest* | |
4f14bcd8 | 14913 | eval "ac_cv_func_$ac_func=no" |
698dcdb6 VZ |
14914 | fi |
14915 | rm -f conftest* | |
698dcdb6 | 14916 | fi |
4f14bcd8 GD |
14917 | |
14918 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 14919 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
14920 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
14921 | cat >> confdefs.h <<EOF | |
14922 | #define $ac_tr_func 1 | |
14923 | EOF | |
14924 | cat >> confdefs.h <<\EOF | |
14925 | #define HAVE_INET_ADDR 1 | |
10f2d63a VZ |
14926 | EOF |
14927 | ||
14928 | else | |
698dcdb6 | 14929 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 14930 | echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6 |
1d93af2f | 14931 | echo "configure:14932: checking for inet_addr in -lnsl" >&5 |
4f14bcd8 | 14932 | ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
14933 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
14934 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14935 | else |
698dcdb6 | 14936 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 14937 | LIBS="-lnsl $LIBS" |
698dcdb6 | 14938 | cat > conftest.$ac_ext <<EOF |
1d93af2f | 14939 | #line 14940 "configure" |
10f2d63a VZ |
14940 | #include "confdefs.h" |
14941 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14942 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 14943 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 14944 | char inet_addr(); |
698dcdb6 VZ |
14945 | |
14946 | int main() { | |
4f14bcd8 | 14947 | inet_addr() |
698dcdb6 VZ |
14948 | ; return 0; } |
14949 | EOF | |
1d93af2f | 14950 | if { (eval echo configure:14951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14951 | rm -rf conftest* |
14952 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14953 | else | |
14954 | echo "configure: failed program was:" >&5 | |
14955 | cat conftest.$ac_ext >&5 | |
14956 | rm -rf conftest* | |
14957 | eval "ac_cv_lib_$ac_lib_var=no" | |
14958 | fi | |
14959 | rm -f conftest* | |
14960 | LIBS="$ac_save_LIBS" | |
14961 | ||
14962 | fi | |
14963 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14964 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 14965 | INET_LINK="nsl" |
10f2d63a | 14966 | else |
698dcdb6 | 14967 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 14968 | echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6 |
1d93af2f | 14969 | echo "configure:14970: checking for inet_addr in -lresolv" >&5 |
4f14bcd8 | 14970 | ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
14971 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
14972 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14973 | else |
698dcdb6 | 14974 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 14975 | LIBS="-lresolv $LIBS" |
698dcdb6 | 14976 | cat > conftest.$ac_ext <<EOF |
1d93af2f | 14977 | #line 14978 "configure" |
10f2d63a VZ |
14978 | #include "confdefs.h" |
14979 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14980 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 14981 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 14982 | char inet_addr(); |
698dcdb6 VZ |
14983 | |
14984 | int main() { | |
4f14bcd8 | 14985 | inet_addr() |
698dcdb6 VZ |
14986 | ; return 0; } |
14987 | EOF | |
1d93af2f | 14988 | if { (eval echo configure:14989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14989 | rm -rf conftest* |
14990 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14991 | else | |
14992 | echo "configure: failed program was:" >&5 | |
14993 | cat conftest.$ac_ext >&5 | |
14994 | rm -rf conftest* | |
14995 | eval "ac_cv_lib_$ac_lib_var=no" | |
14996 | fi | |
14997 | rm -f conftest* | |
14998 | LIBS="$ac_save_LIBS" | |
14999 | ||
15000 | fi | |
15001 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15002 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 GD |
15003 | INET_LINK="resolv" |
15004 | ||
698dcdb6 | 15005 | else |
4f14bcd8 GD |
15006 | echo "$ac_t""no" 1>&6 |
15007 | fi | |
698dcdb6 | 15008 | |
4f14bcd8 | 15009 | |
698dcdb6 | 15010 | fi |
4f14bcd8 GD |
15011 | |
15012 | ||
698dcdb6 VZ |
15013 | |
15014 | fi | |
4f14bcd8 GD |
15015 | done |
15016 | ||
15017 | ||
15018 | for ac_func in inet_aton | |
15019 | do | |
15020 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
1d93af2f | 15021 | echo "configure:15022: checking for $ac_func" >&5 |
4f14bcd8 | 15022 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 VZ |
15023 | echo $ac_n "(cached) $ac_c" 1>&6 |
15024 | else | |
4f14bcd8 | 15025 | cat > conftest.$ac_ext <<EOF |
1d93af2f | 15026 | #line 15027 "configure" |
f6bcfd97 | 15027 | #include "confdefs.h" |
4f14bcd8 GD |
15028 | /* System header to define __stub macros and hopefully few prototypes, |
15029 | which can conflict with char $ac_func(); below. */ | |
15030 | #include <assert.h> | |
f6bcfd97 BP |
15031 | /* Override any gcc2 internal prototype to avoid an error. */ |
15032 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 15033 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 15034 | char $ac_func(); |
698dcdb6 VZ |
15035 | |
15036 | int main() { | |
4f14bcd8 GD |
15037 | |
15038 | /* The GNU C library defines this for functions which it implements | |
15039 | to always fail with ENOSYS. Some functions are actually named | |
15040 | something starting with __ and the normal name is an alias. */ | |
15041 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15042 | choke me | |
15043 | #else | |
15044 | $ac_func(); | |
15045 | #endif | |
15046 | ||
698dcdb6 VZ |
15047 | ; return 0; } |
15048 | EOF | |
1d93af2f | 15049 | if { (eval echo configure:15050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15050 | rm -rf conftest* |
4f14bcd8 | 15051 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
15052 | else |
15053 | echo "configure: failed program was:" >&5 | |
15054 | cat conftest.$ac_ext >&5 | |
15055 | rm -rf conftest* | |
4f14bcd8 | 15056 | eval "ac_cv_func_$ac_func=no" |
698dcdb6 VZ |
15057 | fi |
15058 | rm -f conftest* | |
698dcdb6 | 15059 | fi |
4f14bcd8 GD |
15060 | |
15061 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 15062 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
15063 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
15064 | cat >> confdefs.h <<EOF | |
15065 | #define $ac_tr_func 1 | |
15066 | EOF | |
15067 | cat >> confdefs.h <<\EOF | |
15068 | #define HAVE_INET_ATON 1 | |
15069 | EOF | |
15070 | ||
10f2d63a | 15071 | else |
698dcdb6 | 15072 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 15073 | echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6 |
1d93af2f | 15074 | echo "configure:15075: checking for inet_aton in -l$INET_LINK" >&5 |
4f14bcd8 | 15075 | ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
15076 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
15077 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 15078 | else |
698dcdb6 | 15079 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 15080 | LIBS="-l$INET_LINK $LIBS" |
698dcdb6 | 15081 | cat > conftest.$ac_ext <<EOF |
1d93af2f | 15082 | #line 15083 "configure" |
10f2d63a | 15083 | #include "confdefs.h" |
6232543b | 15084 | /* Override any gcc2 internal prototype to avoid an error. */ |
6232543b | 15085 | /* We use char because int might match the return type of a gcc2 |
698dcdb6 | 15086 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 15087 | char inet_aton(); |
698dcdb6 VZ |
15088 | |
15089 | int main() { | |
4f14bcd8 | 15090 | inet_aton() |
698dcdb6 VZ |
15091 | ; return 0; } |
15092 | EOF | |
1d93af2f | 15093 | if { (eval echo configure:15094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15094 | rm -rf conftest* |
15095 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15096 | else | |
15097 | echo "configure: failed program was:" >&5 | |
15098 | cat conftest.$ac_ext >&5 | |
15099 | rm -rf conftest* | |
15100 | eval "ac_cv_lib_$ac_lib_var=no" | |
15101 | fi | |
15102 | rm -f conftest* | |
15103 | LIBS="$ac_save_LIBS" | |
10f2d63a | 15104 | |
698dcdb6 VZ |
15105 | fi |
15106 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15107 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 GD |
15108 | cat >> confdefs.h <<\EOF |
15109 | #define HAVE_INET_ATON 1 | |
15110 | EOF | |
15111 | ||
698dcdb6 VZ |
15112 | else |
15113 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
15114 | fi |
15115 | ||
4f14bcd8 | 15116 | |
10f2d63a | 15117 | fi |
4f14bcd8 | 15118 | done |
10f2d63a | 15119 | |
4f14bcd8 GD |
15120 | |
15121 | if test "x$INET_LINK" != "x"; then | |
15122 | cat >> confdefs.h <<\EOF | |
15123 | #define HAVE_INET_ADDR 1 | |
15124 | EOF | |
15125 | ||
3d63bc3a | 15126 | INET_LINK=" -l$INET_LINK" |
6232543b | 15127 | fi |
10f2d63a | 15128 | |
1e487827 | 15129 | fi |
703e0a69 | 15130 | |
698dcdb6 | 15131 | |
4f14bcd8 GD |
15132 | cat > confcache <<\EOF |
15133 | # This file is a shell script that caches the results of configure | |
15134 | # tests run on this system so they can be shared between configure | |
15135 | # scripts and configure runs. It is not useful on other systems. | |
15136 | # If it contains results you don't want to keep, you may remove or edit it. | |
15137 | # | |
15138 | # By default, configure uses ./config.cache as the cache file, | |
15139 | # creating it if it does not exist already. You can give configure | |
15140 | # the --cache-file=FILE option to use a different cache file; that is | |
15141 | # what configure does when it calls configure scripts in | |
15142 | # subdirectories, so they share the cache. | |
15143 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
15144 | # config.status only pays attention to the cache file if you give it the | |
15145 | # --recheck option to rerun configure. | |
15146 | # | |
f6bcfd97 | 15147 | EOF |
4f14bcd8 GD |
15148 | # The following way of writing the cache mishandles newlines in values, |
15149 | # but we know of no workaround that is simple, portable, and efficient. | |
15150 | # So, don't put newlines in cache variables' values. | |
15151 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
15152 | # and sets the high bit in the cache file unless we assign to the vars. | |
15153 | (set) 2>&1 | | |
15154 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
15155 | *ac_space=\ *) | |
15156 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
15157 | # turns \\\\ into \\, and sed turns \\ into \). | |
15158 | sed -n \ | |
15159 | -e "s/'/'\\\\''/g" \ | |
15160 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
15161 | ;; | |
15162 | *) | |
15163 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
15164 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
15165 | ;; | |
15166 | esac >> confcache | |
15167 | if cmp -s $cache_file confcache; then | |
15168 | : | |
15169 | else | |
15170 | if test -w $cache_file; then | |
15171 | echo "updating cache $cache_file" | |
15172 | cat confcache > $cache_file | |
f6bcfd97 | 15173 | else |
4f14bcd8 | 15174 | echo "not updating unwritable cache $cache_file" |
f6bcfd97 | 15175 | fi |
4f14bcd8 GD |
15176 | fi |
15177 | rm -f confcache | |
f6bcfd97 | 15178 | |
4f14bcd8 GD |
15179 | |
15180 | ||
15181 | if test "$TOOLKIT" != "MSW"; then | |
15182 | ||
15183 | ||
15184 | THREADS_LINK= | |
15185 | THREADS_OBJ= | |
15186 | CODE_GEN_FLAGS= | |
15187 | CODE_GEN_FLAGS_CXX= | |
15188 | ||
15189 | if test "$wxUSE_THREADS" = "yes" ; then | |
15190 | if test "$wxUSE_WINE" = 1 ; then | |
15191 | echo "configure: warning: Threads are not supported under WINE" 1>&2 | |
15192 | wxUSE_THREADS="no" | |
15193 | elif test "$USE_BEOS" = 1; then | |
15194 | echo "configure: warning: BeOS threads are not yet supported" 1>&2 | |
15195 | wxUSE_THREADS="no" | |
15196 | fi | |
15197 | fi | |
15198 | ||
15199 | if test "$wxUSE_THREADS" = "yes" ; then | |
15200 | ||
15201 | if test "$USE_AIX" = 1; then | |
15202 | THREADS_LIB=pthreads | |
15203 | else | |
15204 | THREADS_LIB=pthread | |
15205 | fi | |
15206 | ||
15207 | echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6 | |
1d93af2f | 15208 | echo "configure:15209: checking for pthread_create in -l$THREADS_LIB" >&5 |
4f14bcd8 | 15209 | ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
15210 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
15211 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 15212 | else |
698dcdb6 | 15213 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 15214 | LIBS="-l$THREADS_LIB $LIBS" |
698dcdb6 | 15215 | cat > conftest.$ac_ext <<EOF |
1d93af2f | 15216 | #line 15217 "configure" |
10f2d63a VZ |
15217 | #include "confdefs.h" |
15218 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15219 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 15220 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 15221 | char pthread_create(); |
698dcdb6 VZ |
15222 | |
15223 | int main() { | |
4f14bcd8 | 15224 | pthread_create() |
698dcdb6 VZ |
15225 | ; return 0; } |
15226 | EOF | |
1d93af2f | 15227 | if { (eval echo configure:15228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15228 | rm -rf conftest* |
15229 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15230 | else | |
15231 | echo "configure: failed program was:" >&5 | |
15232 | cat conftest.$ac_ext >&5 | |
15233 | rm -rf conftest* | |
15234 | eval "ac_cv_lib_$ac_lib_var=no" | |
15235 | fi | |
15236 | rm -f conftest* | |
15237 | LIBS="$ac_save_LIBS" | |
15238 | ||
15239 | fi | |
15240 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15241 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 GD |
15242 | |
15243 | THREADS_OBJ="threadpsx.lo" | |
15244 | THREADS_LINK=$THREADS_LIB | |
15245 | ||
10f2d63a | 15246 | else |
698dcdb6 | 15247 | echo "$ac_t""no" 1>&6 |
10f2d63a | 15248 | |
4f14bcd8 | 15249 | echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 |
1d93af2f | 15250 | echo "configure:15251: checking for pthread_create in -lc_r" >&5 |
4f14bcd8 GD |
15251 | ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` |
15252 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 VZ |
15253 | echo $ac_n "(cached) $ac_c" 1>&6 |
15254 | else | |
4f14bcd8 GD |
15255 | ac_save_LIBS="$LIBS" |
15256 | LIBS="-lc_r $LIBS" | |
15257 | cat > conftest.$ac_ext <<EOF | |
1d93af2f | 15258 | #line 15259 "configure" |
10f2d63a | 15259 | #include "confdefs.h" |
4f14bcd8 GD |
15260 | /* Override any gcc2 internal prototype to avoid an error. */ |
15261 | /* We use char because int might match the return type of a gcc2 | |
15262 | builtin and then its argument prototype would still apply. */ | |
15263 | char pthread_create(); | |
10f2d63a | 15264 | |
4f14bcd8 GD |
15265 | int main() { |
15266 | pthread_create() | |
698dcdb6 VZ |
15267 | ; return 0; } |
15268 | EOF | |
1d93af2f | 15269 | if { (eval echo configure:15270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15270 | rm -rf conftest* |
4f14bcd8 | 15271 | eval "ac_cv_lib_$ac_lib_var=yes" |
10f2d63a | 15272 | else |
698dcdb6 VZ |
15273 | echo "configure: failed program was:" >&5 |
15274 | cat conftest.$ac_ext >&5 | |
15275 | rm -rf conftest* | |
4f14bcd8 | 15276 | eval "ac_cv_lib_$ac_lib_var=no" |
6232543b | 15277 | fi |
698dcdb6 | 15278 | rm -f conftest* |
4f14bcd8 | 15279 | LIBS="$ac_save_LIBS" |
d9b9876f | 15280 | |
4f14bcd8 GD |
15281 | fi |
15282 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15283 | echo "$ac_t""yes" 1>&6 | |
15284 | ||
15285 | THREADS_OBJ="threadpsx.lo" | |
15286 | THREADS_LINK="c_r" | |
15287 | ||
15288 | else | |
15289 | echo "$ac_t""no" 1>&6 | |
ab252f7b | 15290 | |
4f14bcd8 GD |
15291 | ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'` |
15292 | echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6 | |
1d93af2f | 15293 | echo "configure:15294: checking for sys/prctl.h" >&5 |
4f14bcd8 | 15294 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
698dcdb6 | 15295 | echo $ac_n "(cached) $ac_c" 1>&6 |
d9b9876f | 15296 | else |
4f14bcd8 | 15297 | cat > conftest.$ac_ext <<EOF |
1d93af2f | 15298 | #line 15299 "configure" |
d9b9876f | 15299 | #include "confdefs.h" |
4f14bcd8 | 15300 | #include <sys/prctl.h> |
698dcdb6 | 15301 | EOF |
4f14bcd8 | 15302 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1d93af2f | 15303 | { (eval echo configure:15304: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
15304 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15305 | if test -z "$ac_err"; then | |
698dcdb6 | 15306 | rm -rf conftest* |
4f14bcd8 | 15307 | eval "ac_cv_header_$ac_safe=yes" |
d9b9876f | 15308 | else |
4f14bcd8 | 15309 | echo "$ac_err" >&5 |
698dcdb6 VZ |
15310 | echo "configure: failed program was:" >&5 |
15311 | cat conftest.$ac_ext >&5 | |
15312 | rm -rf conftest* | |
4f14bcd8 | 15313 | eval "ac_cv_header_$ac_safe=no" |
6232543b | 15314 | fi |
698dcdb6 | 15315 | rm -f conftest* |
4f14bcd8 GD |
15316 | fi |
15317 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
15318 | echo "$ac_t""yes" 1>&6 | |
698dcdb6 | 15319 | |
4f14bcd8 GD |
15320 | THREADS_OBJ="threadsgi.lo" |
15321 | ||
15322 | else | |
15323 | echo "$ac_t""no" 1>&6 | |
1e487827 | 15324 | fi |
698dcdb6 | 15325 | |
4f14bcd8 GD |
15326 | |
15327 | fi | |
d9b9876f | 15328 | |
4f14bcd8 GD |
15329 | |
15330 | fi | |
d9b9876f | 15331 | |
4f14bcd8 GD |
15332 | |
15333 | if test -z "$THREADS_OBJ" ; then | |
15334 | wxUSE_THREADS=no | |
15335 | echo "configure: warning: No thread support on this system" 1>&2 | |
15336 | fi | |
15337 | fi | |
15338 | ||
15339 | if test "$wxUSE_THREADS" = "yes" ; then | |
15340 | for ac_func in thr_setconcurrency | |
15341 | do | |
15342 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
1d93af2f | 15343 | echo "configure:15344: checking for $ac_func" >&5 |
4f14bcd8 | 15344 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 VZ |
15345 | echo $ac_n "(cached) $ac_c" 1>&6 |
15346 | else | |
4f14bcd8 | 15347 | cat > conftest.$ac_ext <<EOF |
1d93af2f | 15348 | #line 15349 "configure" |
d9b9876f | 15349 | #include "confdefs.h" |
4f14bcd8 GD |
15350 | /* System header to define __stub macros and hopefully few prototypes, |
15351 | which can conflict with char $ac_func(); below. */ | |
15352 | #include <assert.h> | |
15353 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15354 | /* We use char because int might match the return type of a gcc2 | |
15355 | builtin and then its argument prototype would still apply. */ | |
15356 | char $ac_func(); | |
15357 | ||
698dcdb6 | 15358 | int main() { |
d9b9876f | 15359 | |
4f14bcd8 GD |
15360 | /* The GNU C library defines this for functions which it implements |
15361 | to always fail with ENOSYS. Some functions are actually named | |
15362 | something starting with __ and the normal name is an alias. */ | |
15363 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15364 | choke me | |
15365 | #else | |
15366 | $ac_func(); | |
15367 | #endif | |
15368 | ||
698dcdb6 VZ |
15369 | ; return 0; } |
15370 | EOF | |
1d93af2f | 15371 | if { (eval echo configure:15372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15372 | rm -rf conftest* |
4f14bcd8 | 15373 | eval "ac_cv_func_$ac_func=yes" |
d9b9876f | 15374 | else |
698dcdb6 VZ |
15375 | echo "configure: failed program was:" >&5 |
15376 | cat conftest.$ac_ext >&5 | |
15377 | rm -rf conftest* | |
4f14bcd8 | 15378 | eval "ac_cv_func_$ac_func=no" |
6232543b | 15379 | fi |
698dcdb6 | 15380 | rm -f conftest* |
1e487827 | 15381 | fi |
698dcdb6 | 15382 | |
4f14bcd8 GD |
15383 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
15384 | echo "$ac_t""yes" 1>&6 | |
15385 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15386 | cat >> confdefs.h <<EOF | |
15387 | #define $ac_tr_func 1 | |
d9b9876f | 15388 | EOF |
4f14bcd8 GD |
15389 | |
15390 | else | |
15391 | echo "$ac_t""no" 1>&6 | |
10f2d63a | 15392 | fi |
4f14bcd8 | 15393 | done |
10f2d63a | 15394 | |
10f2d63a | 15395 | |
4f14bcd8 GD |
15396 | |
15397 | for ac_hdr in sched.h | |
15398 | do | |
15399 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
15400 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
1d93af2f | 15401 | echo "configure:15402: checking for $ac_hdr" >&5 |
4f14bcd8 GD |
15402 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
15403 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 15404 | else |
4f14bcd8 | 15405 | cat > conftest.$ac_ext <<EOF |
1d93af2f | 15406 | #line 15407 "configure" |
4f14bcd8 GD |
15407 | #include "confdefs.h" |
15408 | #include <$ac_hdr> | |
13111b2a | 15409 | EOF |
4f14bcd8 | 15410 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1d93af2f | 15411 | { (eval echo configure:15412: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
15412 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15413 | if test -z "$ac_err"; then | |
15414 | rm -rf conftest* | |
15415 | eval "ac_cv_header_$ac_safe=yes" | |
15416 | else | |
15417 | echo "$ac_err" >&5 | |
15418 | echo "configure: failed program was:" >&5 | |
15419 | cat conftest.$ac_ext >&5 | |
15420 | rm -rf conftest* | |
15421 | eval "ac_cv_header_$ac_safe=no" | |
13111b2a | 15422 | fi |
4f14bcd8 | 15423 | rm -f conftest* |
10f2d63a | 15424 | fi |
4f14bcd8 GD |
15425 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
15426 | echo "$ac_t""yes" 1>&6 | |
15427 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
698dcdb6 | 15428 | cat >> confdefs.h <<EOF |
4f14bcd8 | 15429 | #define $ac_tr_hdr 1 |
f6bcfd97 | 15430 | EOF |
4f14bcd8 GD |
15431 | |
15432 | else | |
15433 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 | 15434 | fi |
4f14bcd8 | 15435 | done |
f6bcfd97 | 15436 | |
10f2d63a | 15437 | |
4f14bcd8 | 15438 | echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6 |
1d93af2f | 15439 | echo "configure:15440: checking for sched_yield in -l$THREADS_LINK" >&5 |
4f14bcd8 GD |
15440 | ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'` |
15441 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15442 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15443 | else | |
15444 | ac_save_LIBS="$LIBS" | |
15445 | LIBS="-l$THREADS_LINK $LIBS" | |
15446 | cat > conftest.$ac_ext <<EOF | |
1d93af2f | 15447 | #line 15448 "configure" |
4f14bcd8 GD |
15448 | #include "confdefs.h" |
15449 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15450 | /* We use char because int might match the return type of a gcc2 | |
15451 | builtin and then its argument prototype would still apply. */ | |
15452 | char sched_yield(); | |
10f2d63a | 15453 | |
4f14bcd8 GD |
15454 | int main() { |
15455 | sched_yield() | |
15456 | ; return 0; } | |
10f2d63a | 15457 | EOF |
1d93af2f | 15458 | if { (eval echo configure:15459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
15459 | rm -rf conftest* |
15460 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 15461 | else |
4f14bcd8 GD |
15462 | echo "configure: failed program was:" >&5 |
15463 | cat conftest.$ac_ext >&5 | |
15464 | rm -rf conftest* | |
15465 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 15466 | fi |
4f14bcd8 GD |
15467 | rm -f conftest* |
15468 | LIBS="$ac_save_LIBS" | |
10f2d63a | 15469 | |
4f14bcd8 GD |
15470 | fi |
15471 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15472 | echo "$ac_t""yes" 1>&6 | |
15473 | cat >> confdefs.h <<\EOF | |
15474 | #define HAVE_SCHED_YIELD 1 | |
10f2d63a VZ |
15475 | EOF |
15476 | ||
4f14bcd8 GD |
15477 | else |
15478 | echo "$ac_t""no" 1>&6 | |
15479 | echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6 | |
1d93af2f | 15480 | echo "configure:15481: checking for sched_yield in -lposix4" >&5 |
4f14bcd8 GD |
15481 | ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'` |
15482 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15483 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15484 | else | |
15485 | ac_save_LIBS="$LIBS" | |
15486 | LIBS="-lposix4 $LIBS" | |
15487 | cat > conftest.$ac_ext <<EOF | |
1d93af2f | 15488 | #line 15489 "configure" |
4f14bcd8 GD |
15489 | #include "confdefs.h" |
15490 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15491 | /* We use char because int might match the return type of a gcc2 | |
15492 | builtin and then its argument prototype would still apply. */ | |
15493 | char sched_yield(); | |
47c13eb7 | 15494 | |
4f14bcd8 GD |
15495 | int main() { |
15496 | sched_yield() | |
15497 | ; return 0; } | |
10f2d63a | 15498 | EOF |
1d93af2f | 15499 | if { (eval echo configure:15500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
15500 | rm -rf conftest* |
15501 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 15502 | else |
4f14bcd8 GD |
15503 | echo "configure: failed program was:" >&5 |
15504 | cat conftest.$ac_ext >&5 | |
15505 | rm -rf conftest* | |
15506 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 15507 | fi |
4f14bcd8 GD |
15508 | rm -f conftest* |
15509 | LIBS="$ac_save_LIBS" | |
10f2d63a | 15510 | |
54276ccf | 15511 | fi |
4f14bcd8 GD |
15512 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
15513 | echo "$ac_t""yes" 1>&6 | |
15514 | cat >> confdefs.h <<\EOF | |
15515 | #define HAVE_SCHED_YIELD 1 | |
54276ccf | 15516 | EOF |
3d63bc3a | 15517 | POSIX4_LINK=" -lposix4" |
4f14bcd8 GD |
15518 | else |
15519 | echo "$ac_t""no" 1>&6 | |
15520 | echo "configure: warning: wxThread::Yield will not work properly" 1>&2 | |
15521 | ||
54276ccf VZ |
15522 | fi |
15523 | ||
4f14bcd8 GD |
15524 | |
15525 | fi | |
698dcdb6 | 15526 | |
10f2d63a | 15527 | |
4f14bcd8 GD |
15528 | HAVE_PRIOR_FUNCS=0 |
15529 | echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6 | |
1d93af2f | 15530 | echo "configure:15531: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5 |
4f14bcd8 GD |
15531 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'` |
15532 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 VZ |
15533 | echo $ac_n "(cached) $ac_c" 1>&6 |
15534 | else | |
4f14bcd8 GD |
15535 | ac_save_LIBS="$LIBS" |
15536 | LIBS="-l$THREADS_LINK $LIBS" | |
15537 | cat > conftest.$ac_ext <<EOF | |
1d93af2f | 15538 | #line 15539 "configure" |
422107f9 | 15539 | #include "confdefs.h" |
4f14bcd8 GD |
15540 | /* Override any gcc2 internal prototype to avoid an error. */ |
15541 | /* We use char because int might match the return type of a gcc2 | |
15542 | builtin and then its argument prototype would still apply. */ | |
15543 | char pthread_attr_getschedpolicy(); | |
15544 | ||
15545 | int main() { | |
15546 | pthread_attr_getschedpolicy() | |
15547 | ; return 0; } | |
698dcdb6 | 15548 | EOF |
1d93af2f | 15549 | if { (eval echo configure:15550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15550 | rm -rf conftest* |
4f14bcd8 | 15551 | eval "ac_cv_lib_$ac_lib_var=yes" |
422107f9 | 15552 | else |
698dcdb6 | 15553 | echo "configure: failed program was:" >&5 |
422107f9 | 15554 | cat conftest.$ac_ext >&5 |
698dcdb6 | 15555 | rm -rf conftest* |
4f14bcd8 | 15556 | eval "ac_cv_lib_$ac_lib_var=no" |
422107f9 | 15557 | fi |
698dcdb6 | 15558 | rm -f conftest* |
4f14bcd8 GD |
15559 | LIBS="$ac_save_LIBS" |
15560 | ||
422107f9 | 15561 | fi |
4f14bcd8 | 15562 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
698dcdb6 | 15563 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 | 15564 | echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6 |
1d93af2f | 15565 | echo "configure:15566: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5 |
4f14bcd8 | 15566 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
15567 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
15568 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 15569 | else |
698dcdb6 | 15570 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 15571 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 15572 | cat > conftest.$ac_ext <<EOF |
1d93af2f | 15573 | #line 15574 "configure" |
422107f9 VZ |
15574 | #include "confdefs.h" |
15575 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15576 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 15577 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 15578 | char pthread_attr_setschedparam(); |
698dcdb6 VZ |
15579 | |
15580 | int main() { | |
4f14bcd8 | 15581 | pthread_attr_setschedparam() |
698dcdb6 VZ |
15582 | ; return 0; } |
15583 | EOF | |
1d93af2f | 15584 | if { (eval echo configure:15585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15585 | rm -rf conftest* |
15586 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15587 | else | |
15588 | echo "configure: failed program was:" >&5 | |
15589 | cat conftest.$ac_ext >&5 | |
15590 | rm -rf conftest* | |
15591 | eval "ac_cv_lib_$ac_lib_var=no" | |
15592 | fi | |
15593 | rm -f conftest* | |
15594 | LIBS="$ac_save_LIBS" | |
15595 | ||
15596 | fi | |
15597 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15598 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 15599 | echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6 |
1d93af2f | 15600 | echo "configure:15601: checking for sched_get_priority_max in -l$THREADS_LINK" >&5 |
4f14bcd8 GD |
15601 | ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
15602 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 VZ |
15603 | echo $ac_n "(cached) $ac_c" 1>&6 |
15604 | else | |
4f14bcd8 GD |
15605 | ac_save_LIBS="$LIBS" |
15606 | LIBS="-l$THREADS_LINK $LIBS" | |
15607 | cat > conftest.$ac_ext <<EOF | |
1d93af2f | 15608 | #line 15609 "configure" |
422107f9 | 15609 | #include "confdefs.h" |
4f14bcd8 GD |
15610 | /* Override any gcc2 internal prototype to avoid an error. */ |
15611 | /* We use char because int might match the return type of a gcc2 | |
15612 | builtin and then its argument prototype would still apply. */ | |
15613 | char sched_get_priority_max(); | |
15614 | ||
15615 | int main() { | |
15616 | sched_get_priority_max() | |
15617 | ; return 0; } | |
698dcdb6 | 15618 | EOF |
1d93af2f | 15619 | if { (eval echo configure:15620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15620 | rm -rf conftest* |
4f14bcd8 | 15621 | eval "ac_cv_lib_$ac_lib_var=yes" |
422107f9 | 15622 | else |
698dcdb6 | 15623 | echo "configure: failed program was:" >&5 |
422107f9 | 15624 | cat conftest.$ac_ext >&5 |
698dcdb6 | 15625 | rm -rf conftest* |
4f14bcd8 | 15626 | eval "ac_cv_lib_$ac_lib_var=no" |
422107f9 | 15627 | fi |
698dcdb6 | 15628 | rm -f conftest* |
4f14bcd8 GD |
15629 | LIBS="$ac_save_LIBS" |
15630 | ||
422107f9 | 15631 | fi |
4f14bcd8 | 15632 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
698dcdb6 | 15633 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
15634 | HAVE_PRIOR_FUNCS=1 |
15635 | else | |
15636 | echo "$ac_t""no" 1>&6 | |
15637 | echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6 | |
1d93af2f | 15638 | echo "configure:15639: checking for sched_get_priority_max in -lposix4" >&5 |
4f14bcd8 | 15639 | ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
15640 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
15641 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 15642 | else |
698dcdb6 | 15643 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 15644 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 15645 | cat > conftest.$ac_ext <<EOF |
1d93af2f | 15646 | #line 15647 "configure" |
422107f9 VZ |
15647 | #include "confdefs.h" |
15648 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15649 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 15650 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 15651 | char sched_get_priority_max(); |
698dcdb6 VZ |
15652 | |
15653 | int main() { | |
4f14bcd8 | 15654 | sched_get_priority_max() |
698dcdb6 VZ |
15655 | ; return 0; } |
15656 | EOF | |
1d93af2f | 15657 | if { (eval echo configure:15658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15658 | rm -rf conftest* |
15659 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15660 | else | |
15661 | echo "configure: failed program was:" >&5 | |
15662 | cat conftest.$ac_ext >&5 | |
15663 | rm -rf conftest* | |
15664 | eval "ac_cv_lib_$ac_lib_var=no" | |
15665 | fi | |
15666 | rm -f conftest* | |
15667 | LIBS="$ac_save_LIBS" | |
15668 | ||
15669 | fi | |
15670 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15671 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 GD |
15672 | |
15673 | HAVE_PRIOR_FUNCS=1 | |
3d63bc3a | 15674 | POSIX4_LINK=" -lposix4" |
4f14bcd8 | 15675 | |
698dcdb6 VZ |
15676 | else |
15677 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
15678 | fi |
15679 | ||
698dcdb6 | 15680 | |
422107f9 VZ |
15681 | fi |
15682 | ||
4f14bcd8 GD |
15683 | |
15684 | else | |
15685 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
15686 | fi |
15687 | ||
4f14bcd8 | 15688 | |
698dcdb6 | 15689 | else |
4f14bcd8 GD |
15690 | echo "$ac_t""no" 1>&6 |
15691 | fi | |
463abc64 | 15692 | |
463abc64 | 15693 | |
4f14bcd8 GD |
15694 | if test "$HAVE_PRIOR_FUNCS" = 1; then |
15695 | cat >> confdefs.h <<\EOF | |
15696 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
698dcdb6 | 15697 | EOF |
463abc64 | 15698 | |
4f14bcd8 GD |
15699 | else |
15700 | echo "configure: warning: Setting thread priority will not work" 1>&2 | |
15701 | fi | |
463abc64 | 15702 | |
4f14bcd8 | 15703 | echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6 |
1d93af2f | 15704 | echo "configure:15705: checking for pthread_cancel in -l$THREADS_LINK" >&5 |
4f14bcd8 | 15705 | ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
15706 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
15707 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 15708 | else |
698dcdb6 | 15709 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 15710 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 15711 | cat > conftest.$ac_ext <<EOF |
1d93af2f | 15712 | #line 15713 "configure" |
422107f9 VZ |
15713 | #include "confdefs.h" |
15714 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15715 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 15716 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 15717 | char pthread_cancel(); |
698dcdb6 VZ |
15718 | |
15719 | int main() { | |
4f14bcd8 | 15720 | pthread_cancel() |
698dcdb6 VZ |
15721 | ; return 0; } |
15722 | EOF | |
1d93af2f | 15723 | if { (eval echo configure:15724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15724 | rm -rf conftest* |
15725 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15726 | else | |
15727 | echo "configure: failed program was:" >&5 | |
15728 | cat conftest.$ac_ext >&5 | |
15729 | rm -rf conftest* | |
15730 | eval "ac_cv_lib_$ac_lib_var=no" | |
15731 | fi | |
15732 | rm -f conftest* | |
15733 | LIBS="$ac_save_LIBS" | |
15734 | ||
15735 | fi | |
15736 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15737 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 GD |
15738 | cat >> confdefs.h <<\EOF |
15739 | #define HAVE_PTHREAD_CANCEL 1 | |
15740 | EOF | |
15741 | ||
698dcdb6 VZ |
15742 | else |
15743 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 | 15744 | echo "configure: warning: wxThread::Kill() will not work properly" 1>&2 |
422107f9 VZ |
15745 | fi |
15746 | ||
422107f9 | 15747 | |
4f14bcd8 | 15748 | echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6 |
1d93af2f | 15749 | echo "configure:15750: checking for pthread_cleanup_push/pop" >&5 |
4f14bcd8 GD |
15750 | if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then |
15751 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15752 | else | |
15753 | ||
15754 | cat > conftest.$ac_ext <<EOF | |
1d93af2f | 15755 | #line 15756 "configure" |
4f14bcd8 GD |
15756 | #include "confdefs.h" |
15757 | #include <pthread.h> | |
15758 | int main() { | |
15759 | ||
15760 | pthread_cleanup_push(NULL, NULL); | |
15761 | pthread_cleanup_pop(0); | |
15762 | ||
15763 | ; return 0; } | |
15764 | EOF | |
1d93af2f | 15765 | if { (eval echo configure:15766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
15766 | rm -rf conftest* |
15767 | ||
15768 | wx_cv_func_pthread_cleanup_push=yes | |
15769 | ||
15770 | else | |
15771 | echo "configure: failed program was:" >&5 | |
15772 | cat conftest.$ac_ext >&5 | |
15773 | rm -rf conftest* | |
15774 | ||
15775 | wx_cv_func_pthread_cleanup_push=no | |
15776 | ||
15777 | fi | |
15778 | rm -f conftest* | |
15779 | ||
10f2d63a VZ |
15780 | fi |
15781 | ||
4f14bcd8 GD |
15782 | echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6 |
15783 | ||
15784 | if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then | |
15785 | cat >> confdefs.h <<\EOF | |
15786 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 | |
c7a2bf27 RR |
15787 | EOF |
15788 | ||
4f14bcd8 GD |
15789 | fi |
15790 | ||
15791 | ||
15792 | if test "x$wx_lib_glibc21" = "xyes"; then | |
15793 | CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" | |
15794 | fi | |
15795 | ||
15796 | echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6 | |
1d93af2f | 15797 | echo "configure:15798: checking for pthread_mutexattr_t" >&5 |
4f14bcd8 | 15798 | if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then |
698dcdb6 VZ |
15799 | echo $ac_n "(cached) $ac_c" 1>&6 |
15800 | else | |
4f14bcd8 GD |
15801 | |
15802 | cat > conftest.$ac_ext <<EOF | |
1d93af2f | 15803 | #line 15804 "configure" |
0dcf9893 | 15804 | #include "confdefs.h" |
4f14bcd8 GD |
15805 | #include <pthread.h> |
15806 | int main() { | |
15807 | ||
15808 | pthread_mutexattr_t attr; | |
15809 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
15810 | ||
15811 | ; return 0; } | |
698dcdb6 | 15812 | EOF |
1d93af2f | 15813 | if { (eval echo configure:15814: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 15814 | rm -rf conftest* |
4f14bcd8 GD |
15815 | |
15816 | wx_cv_type_pthread_mutexattr_t=yes | |
15817 | ||
3fed1840 | 15818 | else |
698dcdb6 | 15819 | echo "configure: failed program was:" >&5 |
3fed1840 | 15820 | cat conftest.$ac_ext >&5 |
698dcdb6 | 15821 | rm -rf conftest* |
4f14bcd8 GD |
15822 | |
15823 | wx_cv_type_pthread_mutexattr_t=no | |
15824 | ||
15825 | ||
3fed1840 | 15826 | fi |
698dcdb6 | 15827 | rm -f conftest* |
4f14bcd8 | 15828 | |
3fed1840 | 15829 | fi |
4f14bcd8 GD |
15830 | |
15831 | echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6 | |
15832 | ||
15833 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then | |
15834 | cat >> confdefs.h <<\EOF | |
15835 | #define HAVE_PTHREAD_MUTEXATTR_T 1 | |
15836 | EOF | |
15837 | ||
15838 | else | |
15839 | echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6 | |
1d93af2f | 15840 | echo "configure:15841: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 |
4f14bcd8 | 15841 | if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then |
698dcdb6 | 15842 | echo $ac_n "(cached) $ac_c" 1>&6 |
3fed1840 | 15843 | else |
4f14bcd8 GD |
15844 | |
15845 | cat > conftest.$ac_ext <<EOF | |
1d93af2f | 15846 | #line 15847 "configure" |
3fed1840 | 15847 | #include "confdefs.h" |
4f14bcd8 | 15848 | #include <pthread.h> |
698dcdb6 | 15849 | int main() { |
4f14bcd8 GD |
15850 | |
15851 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; | |
15852 | ||
698dcdb6 VZ |
15853 | ; return 0; } |
15854 | EOF | |
1d93af2f | 15855 | if { (eval echo configure:15856: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 15856 | rm -rf conftest* |
4f14bcd8 GD |
15857 | |
15858 | wx_cv_type_pthread_rec_mutex_init=yes | |
15859 | ||
698dcdb6 VZ |
15860 | else |
15861 | echo "configure: failed program was:" >&5 | |
15862 | cat conftest.$ac_ext >&5 | |
15863 | rm -rf conftest* | |
4f14bcd8 GD |
15864 | |
15865 | wx_cv_type_pthread_rec_mutex_init=no | |
15866 | ||
15867 | ||
698dcdb6 VZ |
15868 | fi |
15869 | rm -f conftest* | |
4f14bcd8 | 15870 | |
3fed1840 RR |
15871 | fi |
15872 | ||
4f14bcd8 GD |
15873 | echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6 |
15874 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then | |
15875 | cat >> confdefs.h <<\EOF | |
15876 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 | |
15877 | EOF | |
3fed1840 | 15878 | |
4f14bcd8 GD |
15879 | else |
15880 | echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2 | |
3fed1840 RR |
15881 | fi |
15882 | fi | |
4f14bcd8 | 15883 | |
3d63bc3a | 15884 | THREADS_LINK=" -l$THREADS_LINK" |
4f14bcd8 GD |
15885 | |
15886 | if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then | |
3d63bc3a RL |
15887 | CPPFLAGS="$CFLAGS -mt" |
15888 | CXXFLAGS="$CXXFLAGS -mt" | |
15889 | LDFLAGS="$LDFLAGS -mt" | |
4f14bcd8 | 15890 | fi |
3fed1840 RR |
15891 | fi |
15892 | ||
4f14bcd8 GD |
15893 | fi |
15894 | ||
15895 | if test "$wxUSE_THREADS" = "yes"; then | |
3a922bb4 | 15896 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 15897 | #define wxUSE_THREADS 1 |
7b6058cd GD |
15898 | EOF |
15899 | ||
4f14bcd8 GD |
15900 | |
15901 | if test "$USE_DARWIN" != 1; then | |
3d63bc3a | 15902 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -D_REENTRANT" |
4f14bcd8 GD |
15903 | fi |
15904 | ||
15905 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
698dcdb6 | 15906 | else |
4f14bcd8 GD |
15907 | if test "$ac_cv_func_strtok_r" = "yes"; then |
15908 | echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6 | |
1d93af2f | 15909 | echo "configure:15910: checking if -D_REENTRANT is needed" >&5 |
4f14bcd8 GD |
15910 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
15911 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
15912 | echo "$ac_t""yes" 1>&6 | |
15913 | else | |
15914 | echo "$ac_t""no" 1>&6 | |
15915 | fi | |
15916 | fi | |
15917 | fi | |
15918 | ||
15919 | if test "$WXGTK20" = 1 ; then | |
15920 | cat >> confdefs.h <<EOF | |
15921 | #define __WXGTK20__ $WXGTK20 | |
698dcdb6 | 15922 | EOF |
4f14bcd8 GD |
15923 | |
15924 | WXGTK12=1 | |
10f2d63a | 15925 | fi |
4f14bcd8 GD |
15926 | |
15927 | if test "$WXGTK12" = 1 ; then | |
15928 | cat >> confdefs.h <<EOF | |
15929 | #define __WXGTK12__ $WXGTK12 | |
15930 | EOF | |
15931 | ||
10f2d63a | 15932 | fi |
698dcdb6 | 15933 | |
4f14bcd8 GD |
15934 | if test "$WXGTK127" = 1 ; then |
15935 | cat >> confdefs.h <<EOF | |
15936 | #define __WXGTK127__ $WXGTK127 | |
698dcdb6 | 15937 | EOF |
4f14bcd8 | 15938 | |
698dcdb6 | 15939 | fi |
10f2d63a | 15940 | |
4f14bcd8 GD |
15941 | WXDEBUG= |
15942 | ||
15943 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
15944 | WXDEBUG="-g" | |
15945 | wxUSE_OPTIMISE=no | |
698dcdb6 | 15946 | fi |
4f14bcd8 GD |
15947 | |
15948 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
15949 | wxUSE_DEBUG_INFO=yes | |
15950 | WXDEBUG="-ggdb" | |
10f2d63a VZ |
15951 | fi |
15952 | ||
4f14bcd8 GD |
15953 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then |
15954 | cat >> confdefs.h <<\EOF | |
15955 | #define WXDEBUG 1 | |
15956 | EOF | |
15957 | ||
15958 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
10f2d63a | 15959 | else |
4f14bcd8 GD |
15960 | if test "$wxUSE_GTK" = 1 ; then |
15961 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
15962 | fi | |
15963 | fi | |
15964 | ||
15965 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
15966 | cat >> confdefs.h <<\EOF | |
15967 | #define wxUSE_MEMORY_TRACING 1 | |
15968 | EOF | |
15969 | ||
15970 | cat >> confdefs.h <<\EOF | |
15971 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
15972 | EOF | |
15973 | ||
15974 | cat >> confdefs.h <<\EOF | |
15975 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
15976 | EOF | |
15977 | ||
15978 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
15979 | fi | |
15980 | ||
15981 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
3d63bc3a | 15982 | DMALLOC_LIBS="-ldmalloc" |
4f14bcd8 GD |
15983 | fi |
15984 | ||
15985 | PROFILE= | |
15986 | if test "$wxUSE_PROFILE" = "yes" ; then | |
3d63bc3a | 15987 | PROFILE=" -pg" |
10f2d63a VZ |
15988 | fi |
15989 | ||
4f14bcd8 GD |
15990 | if test "$GCC" = yes ; then |
15991 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
15992 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
3a922bb4 | 15993 | fi |
4f14bcd8 GD |
15994 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
15995 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
15996 | fi | |
15997 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
15998 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
15999 | fi | |
16000 | if test "$wxUSE_NO_DEPS" = "no" ; then | |
3d63bc3a RL |
16001 | CFLAGS="-MMD $CFLAGS" |
16002 | CXXFLAGS="-MMD $CXXFLAGS" | |
4f14bcd8 GD |
16003 | fi |
16004 | if test "$USE_WIN32" = 1 ; then | |
16005 | # I'm not even really sure what this was ever added to solve, | |
16006 | # but someone added it for mingw native builds, so I guess | |
16007 | # they had a reason, right?? | |
16008 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return" | |
16009 | fi | |
16010 | fi | |
16011 | ||
16012 | ||
16013 | CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" ` | |
16014 | CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" ` | |
16015 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
16016 | OPTIMISE= | |
16017 | else | |
16018 | if test "$GCC" = yes ; then | |
16019 | OPTIMISE="-O2" | |
16020 | case "${host}" in | |
16021 | i586-*-*|i686-*-* ) | |
16022 | OPTIMISE="${OPTIMISE} " | |
16023 | ;; | |
16024 | esac | |
16025 | else | |
16026 | OPTIMISE="-O" | |
16027 | fi | |
16028 | fi | |
16029 | ||
16030 | if test "$WXWIN_COMPATIBILITY_2" = "yes"; then | |
16031 | cat >> confdefs.h <<\EOF | |
16032 | #define WXWIN_COMPATIBILITY_2 1 | |
16033 | EOF | |
16034 | ||
16035 | ||
16036 | WXWIN_COMPATIBILITY_2_2="yes" | |
16037 | fi | |
16038 | ||
16039 | if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then | |
16040 | cat >> confdefs.h <<\EOF | |
16041 | #define WXWIN_COMPATIBILITY_2_2 1 | |
16042 | EOF | |
16043 | ||
10f2d63a VZ |
16044 | fi |
16045 | ||
698dcdb6 | 16046 | |
10f2d63a | 16047 | if test "$wxUSE_GUI" = "yes"; then |
698dcdb6 | 16048 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16049 | #define wxUSE_GUI 1 |
16050 | EOF | |
16051 | ||
698dcdb6 | 16052 | |
10f2d63a | 16053 | else |
698dcdb6 | 16054 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16055 | #define wxUSE_NOGUI 1 |
16056 | EOF | |
16057 | ||
16058 | fi | |
16059 | ||
698dcdb6 | 16060 | |
10f2d63a | 16061 | if test "$wxUSE_UNIX" = "yes"; then |
698dcdb6 | 16062 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16063 | #define wxUSE_UNIX 1 |
16064 | EOF | |
16065 | ||
16066 | fi | |
16067 | ||
698dcdb6 | 16068 | |
10f2d63a | 16069 | if test "$wxUSE_APPLE_IEEE" = "yes"; then |
698dcdb6 | 16070 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16071 | #define wxUSE_APPLE_IEEE 1 |
16072 | EOF | |
16073 | ||
16074 | fi | |
16075 | ||
1e6feb95 VZ |
16076 | if test "$wxUSE_TIMER" = "yes"; then |
16077 | cat >> confdefs.h <<\EOF | |
16078 | #define wxUSE_TIMER 1 | |
16079 | EOF | |
16080 | ||
16081 | fi | |
16082 | ||
10f2d63a | 16083 | if test "$wxUSE_WAVE" = "yes"; then |
698dcdb6 | 16084 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16085 | #define wxUSE_WAVE 1 |
16086 | EOF | |
16087 | ||
16088 | fi | |
16089 | ||
1e6feb95 VZ |
16090 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
16091 | cat >> confdefs.h <<\EOF | |
16092 | #define wxUSE_CMDLINE_PARSER 1 | |
16093 | EOF | |
16094 | ||
16095 | fi | |
16096 | ||
16097 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
16098 | cat >> confdefs.h <<\EOF | |
16099 | #define wxUSE_STOPWATCH 1 | |
16100 | EOF | |
16101 | ||
16102 | fi | |
16103 | ||
16104 | if test "$wxUSE_DATETIME" = "yes"; then | |
16105 | cat >> confdefs.h <<\EOF | |
16106 | #define wxUSE_DATETIME 1 | |
16107 | EOF | |
16108 | ||
16109 | fi | |
16110 | ||
16111 | if test "$wxUSE_TIMEDATE" = "yes"; then | |
16112 | cat >> confdefs.h <<\EOF | |
16113 | #define wxUSE_TIMEDATE 1 | |
16114 | EOF | |
16115 | ||
16116 | fi | |
16117 | ||
10f2d63a | 16118 | if test "$wxUSE_FILE" = "yes"; then |
698dcdb6 | 16119 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16120 | #define wxUSE_FILE 1 |
16121 | EOF | |
16122 | ||
16123 | fi | |
16124 | ||
1e6feb95 VZ |
16125 | if test "$wxUSE_FFILE" = "yes"; then |
16126 | cat >> confdefs.h <<\EOF | |
16127 | #define wxUSE_FFILE 1 | |
16128 | EOF | |
16129 | ||
16130 | fi | |
16131 | ||
24528b0c | 16132 | if test "$wxUSE_FILESYSTEM" = "yes"; then |
698dcdb6 | 16133 | cat >> confdefs.h <<\EOF |
24528b0c VS |
16134 | #define wxUSE_FILESYSTEM 1 |
16135 | EOF | |
16136 | ||
16137 | fi | |
16138 | ||
10f2d63a | 16139 | if test "$wxUSE_FS_INET" = "yes"; then |
698dcdb6 | 16140 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16141 | #define wxUSE_FS_INET 1 |
16142 | EOF | |
16143 | ||
16144 | fi | |
16145 | ||
16146 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
698dcdb6 | 16147 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16148 | #define wxUSE_FS_ZIP 1 |
16149 | EOF | |
16150 | ||
16151 | fi | |
16152 | ||
16153 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
698dcdb6 | 16154 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16155 | #define wxUSE_ZIPSTREAM 1 |
16156 | EOF | |
16157 | ||
16158 | fi | |
16159 | ||
eb4efbdc | 16160 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
698dcdb6 | 16161 | cat >> confdefs.h <<\EOF |
eb4efbdc VZ |
16162 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
16163 | EOF | |
16164 | ||
16165 | fi | |
16166 | ||
4f3c5f06 | 16167 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
698dcdb6 | 16168 | cat >> confdefs.h <<\EOF |
4f3c5f06 VZ |
16169 | #define wxUSE_SNGLINST_CHECKER 1 |
16170 | EOF | |
16171 | ||
16172 | fi | |
16173 | ||
10f2d63a | 16174 | if test "$wxUSE_BUSYINFO" = "yes"; then |
698dcdb6 | 16175 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16176 | #define wxUSE_BUSYINFO 1 |
16177 | EOF | |
16178 | ||
16179 | fi | |
16180 | ||
16181 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
698dcdb6 | 16182 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16183 | #define wxUSE_STD_IOSTREAM 1 |
16184 | EOF | |
16185 | ||
16186 | fi | |
16187 | ||
16188 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
16189 | if test "$wxUSE_FILE" != "yes"; then | |
698dcdb6 | 16190 | echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2 |
10f2d63a | 16191 | else |
698dcdb6 | 16192 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16193 | #define wxUSE_TEXTFILE 1 |
16194 | EOF | |
16195 | ||
16196 | fi | |
16197 | fi | |
16198 | ||
16199 | if test "$wxUSE_CONFIG" = "yes" ; then | |
16200 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
698dcdb6 | 16201 | echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2 |
10f2d63a | 16202 | else |
698dcdb6 | 16203 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16204 | #define wxUSE_CONFIG 1 |
16205 | EOF | |
16206 | ||
16207 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
16208 | fi | |
16209 | fi | |
16210 | ||
16211 | if test "$wxUSE_INTL" = "yes" ; then | |
16212 | if test "$wxUSE_FILE" != "yes"; then | |
698dcdb6 | 16213 | echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2 |
10f2d63a | 16214 | else |
698dcdb6 | 16215 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16216 | #define wxUSE_INTL 1 |
16217 | EOF | |
16218 | ||
16219 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
f6bcfd97 | 16220 | GUIDIST="$GUIDIST INTL_DIST" |
10f2d63a VZ |
16221 | fi |
16222 | fi | |
16223 | ||
16224 | if test "$wxUSE_LOG" = "yes"; then | |
698dcdb6 | 16225 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16226 | #define wxUSE_LOG 1 |
16227 | EOF | |
16228 | ||
d73be714 VZ |
16229 | |
16230 | if test "$wxUSE_LOGGUI" = "yes"; then | |
16231 | cat >> confdefs.h <<\EOF | |
16232 | #define wxUSE_LOGGUI 1 | |
16233 | EOF | |
16234 | ||
16235 | fi | |
16236 | ||
16237 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
16238 | cat >> confdefs.h <<\EOF | |
16239 | #define wxUSE_LOGWINDOW 1 | |
16240 | EOF | |
16241 | ||
16242 | fi | |
10f2d63a VZ |
16243 | fi |
16244 | ||
16245 | if test "$wxUSE_LONGLONG" = "yes"; then | |
698dcdb6 | 16246 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16247 | #define wxUSE_LONGLONG 1 |
16248 | EOF | |
16249 | ||
16250 | fi | |
16251 | ||
e8f65ba6 | 16252 | if test "$wxUSE_GEOMETRY" = "yes"; then |
698dcdb6 | 16253 | cat >> confdefs.h <<\EOF |
e8f65ba6 RR |
16254 | #define wxUSE_GEOMETRY 1 |
16255 | EOF | |
16256 | ||
16257 | fi | |
16258 | ||
10f2d63a | 16259 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
698dcdb6 | 16260 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16261 | #define wxUSE_DIALUP_MANAGER 1 |
16262 | EOF | |
16263 | ||
70f7a477 | 16264 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" |
10f2d63a VZ |
16265 | fi |
16266 | ||
16267 | if test "$wxUSE_STREAMS" = "yes" ; then | |
698dcdb6 | 16268 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16269 | #define wxUSE_STREAMS 1 |
16270 | EOF | |
16271 | ||
16272 | fi | |
16273 | ||
1e487827 | 16274 | |
1e6feb95 | 16275 | if test "$wxUSE_DATETIME" = "yes"; then |
698dcdb6 | 16276 | for ac_func in strptime |
83307f33 | 16277 | do |
698dcdb6 | 16278 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
1d93af2f | 16279 | echo "configure:16280: checking for $ac_func" >&5 |
698dcdb6 VZ |
16280 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16281 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16282 | else | |
16283 | cat > conftest.$ac_ext <<EOF | |
1d93af2f | 16284 | #line 16285 "configure" |
83307f33 VZ |
16285 | #include "confdefs.h" |
16286 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16287 | which can conflict with char $ac_func(); below. */ |
83307f33 VZ |
16288 | #include <assert.h> |
16289 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16290 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16291 | builtin and then its argument prototype would still apply. */ |
16292 | char $ac_func(); | |
16293 | ||
16294 | int main() { | |
83307f33 VZ |
16295 | |
16296 | /* The GNU C library defines this for functions which it implements | |
16297 | to always fail with ENOSYS. Some functions are actually named | |
16298 | something starting with __ and the normal name is an alias. */ | |
16299 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16300 | choke me | |
16301 | #else | |
698dcdb6 | 16302 | $ac_func(); |
83307f33 VZ |
16303 | #endif |
16304 | ||
698dcdb6 | 16305 | ; return 0; } |
83307f33 | 16306 | EOF |
1d93af2f | 16307 | if { (eval echo configure:16308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16308 | rm -rf conftest* |
16309 | eval "ac_cv_func_$ac_func=yes" | |
16310 | else | |
16311 | echo "configure: failed program was:" >&5 | |
16312 | cat conftest.$ac_ext >&5 | |
16313 | rm -rf conftest* | |
16314 | eval "ac_cv_func_$ac_func=no" | |
16315 | fi | |
16316 | rm -f conftest* | |
16317 | fi | |
83307f33 | 16318 | |
698dcdb6 VZ |
16319 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16320 | echo "$ac_t""yes" 1>&6 | |
16321 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16322 | cat >> confdefs.h <<EOF | |
16323 | #define $ac_tr_func 1 | |
16324 | EOF | |
16325 | ||
16326 | else | |
16327 | echo "$ac_t""no" 1>&6 | |
83307f33 VZ |
16328 | fi |
16329 | done | |
16330 | ||
1e487827 | 16331 | |
698dcdb6 | 16332 | echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6 |
1d93af2f | 16333 | echo "configure:16334: checking for timezone variable in <time.h>" >&5 |
698dcdb6 VZ |
16334 | if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then |
16335 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16336 | else | |
16337 | ||
16338 | cat > conftest.$ac_ext <<EOF | |
1d93af2f | 16339 | #line 16340 "configure" |
360d6699 VZ |
16340 | #include "confdefs.h" |
16341 | ||
b4085ce6 | 16342 | #include <time.h> |
698dcdb6 VZ |
16343 | |
16344 | int main() { | |
360d6699 VZ |
16345 | |
16346 | int tz; | |
4f11a343 | 16347 | tz = timezone; |
698dcdb6 VZ |
16348 | |
16349 | ; return 0; } | |
16350 | EOF | |
1d93af2f | 16351 | if { (eval echo configure:16352: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
16352 | rm -rf conftest* |
16353 | ||
4f11a343 | 16354 | wx_cv_var_timezone=timezone |
698dcdb6 | 16355 | |
360d6699 | 16356 | else |
698dcdb6 VZ |
16357 | echo "configure: failed program was:" >&5 |
16358 | cat conftest.$ac_ext >&5 | |
16359 | rm -rf conftest* | |
16360 | ||
16361 | cat > conftest.$ac_ext <<EOF | |
1d93af2f | 16362 | #line 16363 "configure" |
360d6699 VZ |
16363 | #include "confdefs.h" |
16364 | ||
b4085ce6 | 16365 | #include <time.h> |
698dcdb6 VZ |
16366 | |
16367 | int main() { | |
360d6699 VZ |
16368 | |
16369 | int tz; | |
16370 | tz = _timezone; | |
698dcdb6 VZ |
16371 | |
16372 | ; return 0; } | |
16373 | EOF | |
1d93af2f | 16374 | if { (eval echo configure:16375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
16375 | rm -rf conftest* |
16376 | ||
360d6699 | 16377 | wx_cv_var_timezone=_timezone |
698dcdb6 | 16378 | |
5357c8e8 | 16379 | else |
698dcdb6 VZ |
16380 | echo "configure: failed program was:" >&5 |
16381 | cat conftest.$ac_ext >&5 | |
16382 | rm -rf conftest* | |
16383 | ||
16384 | cat > conftest.$ac_ext <<EOF | |
1d93af2f | 16385 | #line 16386 "configure" |
5357c8e8 VZ |
16386 | #include "confdefs.h" |
16387 | ||
b4085ce6 | 16388 | #include <time.h> |
698dcdb6 VZ |
16389 | |
16390 | int main() { | |
5357c8e8 VZ |
16391 | |
16392 | int tz; | |
4f11a343 | 16393 | tz = __timezone; |
698dcdb6 VZ |
16394 | |
16395 | ; return 0; } | |
16396 | EOF | |
1d93af2f | 16397 | if { (eval echo configure:16398: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
16398 | rm -rf conftest* |
16399 | ||
4f11a343 | 16400 | wx_cv_var_timezone=__timezone |
698dcdb6 | 16401 | |
360d6699 | 16402 | else |
698dcdb6 VZ |
16403 | echo "configure: failed program was:" >&5 |
16404 | cat conftest.$ac_ext >&5 | |
16405 | rm -rf conftest* | |
16406 | { echo "configure: error: no timezone variable" 1>&2; exit 1; } | |
16407 | ||
360d6699 | 16408 | fi |
698dcdb6 VZ |
16409 | rm -f conftest* |
16410 | ||
16411 | ||
360d6699 | 16412 | fi |
698dcdb6 VZ |
16413 | rm -f conftest* |
16414 | ||
16415 | ||
6232543b | 16416 | fi |
698dcdb6 VZ |
16417 | rm -f conftest* |
16418 | ||
16419 | ||
1e487827 | 16420 | fi |
703e0a69 | 16421 | |
698dcdb6 VZ |
16422 | echo "$ac_t""$wx_cv_var_timezone" 1>&6 |
16423 | ||
16424 | cat >> confdefs.h <<EOF | |
360d6699 VZ |
16425 | #define WX_TIMEZONE $wx_cv_var_timezone |
16426 | EOF | |
16427 | ||
698dcdb6 VZ |
16428 | |
16429 | for ac_func in localtime | |
afc31813 | 16430 | do |
698dcdb6 | 16431 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
1d93af2f | 16432 | echo "configure:16433: checking for $ac_func" >&5 |
698dcdb6 VZ |
16433 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16434 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16435 | else | |
16436 | cat > conftest.$ac_ext <<EOF | |
1d93af2f | 16437 | #line 16438 "configure" |
10f2d63a | 16438 | #include "confdefs.h" |
afc31813 | 16439 | /* System header to define __stub macros and hopefully few prototypes, |
698dcdb6 | 16440 | which can conflict with char $ac_func(); below. */ |
afc31813 VZ |
16441 | #include <assert.h> |
16442 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16443 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16444 | builtin and then its argument prototype would still apply. */ |
16445 | char $ac_func(); | |
16446 | ||
16447 | int main() { | |
afc31813 VZ |
16448 | |
16449 | /* The GNU C library defines this for functions which it implements | |
16450 | to always fail with ENOSYS. Some functions are actually named | |
16451 | something starting with __ and the normal name is an alias. */ | |
16452 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16453 | choke me | |
16454 | #else | |
698dcdb6 | 16455 | $ac_func(); |
afc31813 VZ |
16456 | #endif |
16457 | ||
698dcdb6 | 16458 | ; return 0; } |
10f2d63a | 16459 | EOF |
1d93af2f | 16460 | if { (eval echo configure:16461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16461 | rm -rf conftest* |
16462 | eval "ac_cv_func_$ac_func=yes" | |
16463 | else | |
16464 | echo "configure: failed program was:" >&5 | |
16465 | cat conftest.$ac_ext >&5 | |
16466 | rm -rf conftest* | |
16467 | eval "ac_cv_func_$ac_func=no" | |
16468 | fi | |
16469 | rm -f conftest* | |
16470 | fi | |
afc31813 | 16471 | |
698dcdb6 VZ |
16472 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16473 | echo "$ac_t""yes" 1>&6 | |
16474 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16475 | cat >> confdefs.h <<EOF | |
16476 | #define $ac_tr_func 1 | |
16477 | EOF | |
16478 | ||
16479 | else | |
16480 | echo "$ac_t""no" 1>&6 | |
afc31813 VZ |
16481 | fi |
16482 | done | |
16483 | ||
1e487827 | 16484 | |
698dcdb6 VZ |
16485 | if test "$ac_cv_func_localtime" = "yes"; then |
16486 | echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 | |
1d93af2f | 16487 | echo "configure:16488: checking for tm_gmtoff in struct tm" >&5 |
698dcdb6 VZ |
16488 | if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then |
16489 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16490 | else | |
16491 | ||
16492 | cat > conftest.$ac_ext <<EOF | |
1d93af2f | 16493 | #line 16494 "configure" |
0470b1e6 VZ |
16494 | #include "confdefs.h" |
16495 | ||
b4085ce6 | 16496 | #include <time.h> |
698dcdb6 VZ |
16497 | |
16498 | int main() { | |
0470b1e6 VZ |
16499 | |
16500 | struct tm tm; | |
16501 | tm.tm_gmtoff++; | |
698dcdb6 VZ |
16502 | |
16503 | ; return 0; } | |
16504 | EOF | |
1d93af2f | 16505 | if { (eval echo configure:16506: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
16506 | rm -rf conftest* |
16507 | ||
f03a98d8 | 16508 | wx_cv_struct_tm_has_gmtoff=yes |
698dcdb6 | 16509 | |
0470b1e6 | 16510 | else |
698dcdb6 VZ |
16511 | echo "configure: failed program was:" >&5 |
16512 | cat conftest.$ac_ext >&5 | |
16513 | rm -rf conftest* | |
16514 | wx_cv_struct_tm_has_gmtoff=no | |
16515 | ||
0470b1e6 | 16516 | fi |
698dcdb6 VZ |
16517 | rm -f conftest* |
16518 | ||
1e487827 | 16519 | fi |
698dcdb6 VZ |
16520 | |
16521 | echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6 | |
6232543b VS |
16522 | fi |
16523 | ||
16524 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
698dcdb6 | 16525 | cat >> confdefs.h <<\EOF |
6232543b VS |
16526 | #define WX_GMTOFF_IN_TM 1 |
16527 | EOF | |
0470b1e6 | 16528 | |
3fcdd07b VZ |
16529 | fi |
16530 | ||
698dcdb6 | 16531 | for ac_func in gettimeofday ftime |
3fcdd07b | 16532 | do |
698dcdb6 | 16533 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
1d93af2f | 16534 | echo "configure:16535: checking for $ac_func" >&5 |
698dcdb6 VZ |
16535 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16536 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16537 | else | |
16538 | cat > conftest.$ac_ext <<EOF | |
1d93af2f | 16539 | #line 16540 "configure" |
3fcdd07b VZ |
16540 | #include "confdefs.h" |
16541 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16542 | which can conflict with char $ac_func(); below. */ |
3fcdd07b VZ |
16543 | #include <assert.h> |
16544 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16545 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16546 | builtin and then its argument prototype would still apply. */ |
16547 | char $ac_func(); | |
16548 | ||
16549 | int main() { | |
3fcdd07b VZ |
16550 | |
16551 | /* The GNU C library defines this for functions which it implements | |
16552 | to always fail with ENOSYS. Some functions are actually named | |
16553 | something starting with __ and the normal name is an alias. */ | |
16554 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16555 | choke me | |
16556 | #else | |
698dcdb6 | 16557 | $ac_func(); |
3fcdd07b VZ |
16558 | #endif |
16559 | ||
698dcdb6 VZ |
16560 | ; return 0; } |
16561 | EOF | |
1d93af2f | 16562 | if { (eval echo configure:16563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16563 | rm -rf conftest* |
16564 | eval "ac_cv_func_$ac_func=yes" | |
16565 | else | |
16566 | echo "configure: failed program was:" >&5 | |
16567 | cat conftest.$ac_ext >&5 | |
16568 | rm -rf conftest* | |
16569 | eval "ac_cv_func_$ac_func=no" | |
16570 | fi | |
16571 | rm -f conftest* | |
16572 | fi | |
16573 | ||
16574 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16575 | echo "$ac_t""yes" 1>&6 | |
16576 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16577 | cat >> confdefs.h <<EOF | |
16578 | #define $ac_tr_func 1 | |
3fcdd07b VZ |
16579 | EOF |
16580 | break | |
698dcdb6 VZ |
16581 | else |
16582 | echo "$ac_t""no" 1>&6 | |
3fcdd07b VZ |
16583 | fi |
16584 | done | |
16585 | ||
afc31813 | 16586 | |
698dcdb6 VZ |
16587 | if test "$ac_cv_func_gettimeofday" = "yes"; then |
16588 | echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6 | |
1d93af2f | 16589 | echo "configure:16590: checking whether gettimeofday takes two arguments" >&5 |
698dcdb6 VZ |
16590 | if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then |
16591 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16592 | else | |
16593 | ||
16594 | ||
16595 | ac_ext=C | |
16596 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 16597 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
16598 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16599 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16600 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 16601 | |
698dcdb6 VZ |
16602 | |
16603 | cat > conftest.$ac_ext <<EOF | |
1d93af2f | 16604 | #line 16605 "configure" |
10f2d63a | 16605 | #include "confdefs.h" |
afc31813 VZ |
16606 | |
16607 | #include <sys/time.h> | |
16608 | #include <unistd.h> | |
698dcdb6 VZ |
16609 | |
16610 | int main() { | |
afc31813 VZ |
16611 | |
16612 | struct timeval tv; | |
776862b4 | 16613 | gettimeofday(&tv, NULL); |
698dcdb6 VZ |
16614 | |
16615 | ; return 0; } | |
16616 | EOF | |
1d93af2f | 16617 | if { (eval echo configure:16618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 16618 | rm -rf conftest* |
afc31813 | 16619 | wx_cv_func_gettimeofday_has_2_args=yes |
10f2d63a | 16620 | else |
698dcdb6 VZ |
16621 | echo "configure: failed program was:" >&5 |
16622 | cat conftest.$ac_ext >&5 | |
16623 | rm -rf conftest* | |
16624 | cat > conftest.$ac_ext <<EOF | |
1d93af2f | 16625 | #line 16626 "configure" |
10f2d63a | 16626 | #include "confdefs.h" |
afc31813 VZ |
16627 | |
16628 | #include <sys/time.h> | |
16629 | #include <unistd.h> | |
698dcdb6 VZ |
16630 | |
16631 | int main() { | |
afc31813 VZ |
16632 | |
16633 | struct timeval tv; | |
16634 | gettimeofday(&tv); | |
698dcdb6 VZ |
16635 | |
16636 | ; return 0; } | |
16637 | EOF | |
1d93af2f | 16638 | if { (eval echo configure:16639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 16639 | rm -rf conftest* |
afc31813 | 16640 | wx_cv_func_gettimeofday_has_2_args=no |
10f2d63a | 16641 | else |
698dcdb6 VZ |
16642 | echo "configure: failed program was:" >&5 |
16643 | cat conftest.$ac_ext >&5 | |
16644 | rm -rf conftest* | |
776862b4 VZ |
16645 | |
16646 | echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2 | |
16647 | wx_cv_func_gettimeofday_has_2_args=unknown | |
16648 | ||
698dcdb6 | 16649 | |
10f2d63a | 16650 | fi |
698dcdb6 VZ |
16651 | rm -f conftest* |
16652 | ||
10f2d63a | 16653 | fi |
698dcdb6 | 16654 | rm -f conftest* |
afc31813 | 16655 | ac_ext=c |
698dcdb6 | 16656 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 16657 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
16658 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16659 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16660 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a | 16661 | |
698dcdb6 | 16662 | |
afc31813 | 16663 | fi |
698dcdb6 VZ |
16664 | |
16665 | echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6 | |
c63c7106 | 16666 | |
afc31813 | 16667 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then |
698dcdb6 | 16668 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
16669 | #define WX_GETTIMEOFDAY_NO_TZ 1 |
16670 | EOF | |
16671 | ||
16672 | fi | |
16673 | fi | |
16674 | ||
698dcdb6 | 16675 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
16676 | #define wxUSE_TIMEDATE 1 |
16677 | EOF | |
16678 | ||
16679 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
16680 | fi | |
16681 | ||
698dcdb6 | 16682 | |
b089607b VZ |
16683 | if test "$TOOLKIT" != "MSW"; then |
16684 | ||
3a922bb4 RL |
16685 | if test "$wxUSE_SOCKETS" = "yes"; then |
16686 | echo $ac_n "checking for socket""... $ac_c" 1>&6 | |
1d93af2f | 16687 | echo "configure:16688: checking for socket" >&5 |
698dcdb6 VZ |
16688 | if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
16689 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 16690 | else |
698dcdb6 | 16691 | cat > conftest.$ac_ext <<EOF |
1d93af2f | 16692 | #line 16693 "configure" |
c63c7106 VZ |
16693 | #include "confdefs.h" |
16694 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16695 | which can conflict with char socket(); below. */ |
c63c7106 VZ |
16696 | #include <assert.h> |
16697 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16698 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16699 | builtin and then its argument prototype would still apply. */ |
16700 | char socket(); | |
16701 | ||
16702 | int main() { | |
c63c7106 VZ |
16703 | |
16704 | /* The GNU C library defines this for functions which it implements | |
16705 | to always fail with ENOSYS. Some functions are actually named | |
16706 | something starting with __ and the normal name is an alias. */ | |
16707 | #if defined (__stub_socket) || defined (__stub___socket) | |
16708 | choke me | |
16709 | #else | |
698dcdb6 | 16710 | socket(); |
c63c7106 VZ |
16711 | #endif |
16712 | ||
698dcdb6 VZ |
16713 | ; return 0; } |
16714 | EOF | |
1d93af2f | 16715 | if { (eval echo configure:16716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16716 | rm -rf conftest* |
16717 | eval "ac_cv_func_socket=yes" | |
16718 | else | |
16719 | echo "configure: failed program was:" >&5 | |
16720 | cat conftest.$ac_ext >&5 | |
16721 | rm -rf conftest* | |
16722 | eval "ac_cv_func_socket=no" | |
16723 | fi | |
16724 | rm -f conftest* | |
16725 | fi | |
16726 | ||
16727 | if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
16728 | echo "$ac_t""yes" 1>&6 | |
c63c7106 VZ |
16729 | : |
16730 | else | |
698dcdb6 VZ |
16731 | echo "$ac_t""no" 1>&6 |
16732 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | |
1d93af2f | 16733 | echo "configure:16734: checking for socket in -lsocket" >&5 |
698dcdb6 VZ |
16734 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
16735 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16736 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 16737 | else |
698dcdb6 | 16738 | ac_save_LIBS="$LIBS" |
c63c7106 | 16739 | LIBS="-lsocket $LIBS" |
698dcdb6 | 16740 | cat > conftest.$ac_ext <<EOF |
1d93af2f | 16741 | #line 16742 "configure" |
c63c7106 VZ |
16742 | #include "confdefs.h" |
16743 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16744 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16745 | builtin and then its argument prototype would still apply. */ |
16746 | char socket(); | |
16747 | ||
16748 | int main() { | |
16749 | socket() | |
16750 | ; return 0; } | |
16751 | EOF | |
1d93af2f | 16752 | if { (eval echo configure:16753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16753 | rm -rf conftest* |
16754 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16755 | else | |
16756 | echo "configure: failed program was:" >&5 | |
16757 | cat conftest.$ac_ext >&5 | |
16758 | rm -rf conftest* | |
16759 | eval "ac_cv_lib_$ac_lib_var=no" | |
16760 | fi | |
16761 | rm -f conftest* | |
16762 | LIBS="$ac_save_LIBS" | |
16763 | ||
16764 | fi | |
16765 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16766 | echo "$ac_t""yes" 1>&6 | |
c63c7106 | 16767 | INET_LINK="$INET_LINK -lsocket" |
c63c7106 | 16768 | else |
698dcdb6 | 16769 | echo "$ac_t""no" 1>&6 |
afc31813 | 16770 | |
3a922bb4 RL |
16771 | echo "configure: warning: socket library not found - sockets will be disabled" 1>&2 |
16772 | wxUSE_SOCKETS=no | |
16773 | ||
698dcdb6 | 16774 | |
6232543b | 16775 | fi |
b089607b | 16776 | |
3a922bb4 | 16777 | |
1e487827 | 16778 | fi |
afc31813 | 16779 | |
3a922bb4 | 16780 | fi |
51a9faba | 16781 | |
3a922bb4 RL |
16782 | |
16783 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
16784 | echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6 | |
1d93af2f | 16785 | echo "configure:16786: checking what is the type of the third argument of getsockname" >&5 |
698dcdb6 VZ |
16786 | if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then |
16787 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16788 | else | |
16789 | ||
3a922bb4 RL |
16790 | |
16791 | ac_ext=C | |
698dcdb6 | 16792 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
1e487827 | 16793 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
16794 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16795 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16796 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 16797 | |
698dcdb6 | 16798 | |
3a922bb4 | 16799 | cat > conftest.$ac_ext <<EOF |
1d93af2f | 16800 | #line 16801 "configure" |
afc31813 | 16801 | #include "confdefs.h" |
51a9faba | 16802 | |
3a922bb4 RL |
16803 | #include <sys/types.h> |
16804 | #include <sys/socket.h> | |
16805 | ||
698dcdb6 | 16806 | int main() { |
51a9faba | 16807 | |
3a922bb4 RL |
16808 | socklen_t len; |
16809 | getsockname(0, 0, &len); | |
16810 | ||
698dcdb6 VZ |
16811 | ; return 0; } |
16812 | EOF | |
1d93af2f | 16813 | if { (eval echo configure:16814: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 16814 | rm -rf conftest* |
51a9faba | 16815 | wx_cv_type_getsockname3=socklen_t |
afc31813 | 16816 | else |
698dcdb6 VZ |
16817 | echo "configure: failed program was:" >&5 |
16818 | cat conftest.$ac_ext >&5 | |
16819 | rm -rf conftest* | |
16820 | cat > conftest.$ac_ext <<EOF | |
1d93af2f | 16821 | #line 16822 "configure" |
afc31813 | 16822 | #include "confdefs.h" |
51a9faba | 16823 | |
3a922bb4 RL |
16824 | #include <sys/types.h> |
16825 | #include <sys/socket.h> | |
16826 | ||
698dcdb6 | 16827 | int main() { |
51a9faba | 16828 | |
3a922bb4 RL |
16829 | size_t len; |
16830 | getsockname(0, 0, &len); | |
16831 | ||
698dcdb6 VZ |
16832 | ; return 0; } |
16833 | EOF | |
1d93af2f | 16834 | if { (eval echo configure:16835: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 16835 | rm -rf conftest* |
51a9faba | 16836 | wx_cv_type_getsockname3=size_t |
afc31813 | 16837 | else |
698dcdb6 VZ |
16838 | echo "configure: failed program was:" >&5 |
16839 | cat conftest.$ac_ext >&5 | |
16840 | rm -rf conftest* | |
16841 | cat > conftest.$ac_ext <<EOF | |
1d93af2f | 16842 | #line 16843 "configure" |
afc31813 | 16843 | #include "confdefs.h" |
51a9faba | 16844 | |
3a922bb4 RL |
16845 | #include <sys/types.h> |
16846 | #include <sys/socket.h> | |
16847 | ||
698dcdb6 | 16848 | int main() { |
51a9faba | 16849 | |
3a922bb4 RL |
16850 | int len; |
16851 | getsockname(0, 0, &len); | |
16852 | ||
698dcdb6 VZ |
16853 | ; return 0; } |
16854 | EOF | |
1d93af2f | 16855 | if { (eval echo configure:16856: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 16856 | rm -rf conftest* |
51a9faba | 16857 | wx_cv_type_getsockname3=int |
afc31813 | 16858 | else |
698dcdb6 VZ |
16859 | echo "configure: failed program was:" >&5 |
16860 | cat conftest.$ac_ext >&5 | |
16861 | rm -rf conftest* | |
16862 | wx_cv_type_getsockname3=unknown | |
3a922bb4 | 16863 | |
afc31813 | 16864 | fi |
698dcdb6 | 16865 | rm -f conftest* |
3a922bb4 | 16866 | |
afc31813 | 16867 | fi |
698dcdb6 | 16868 | rm -f conftest* |
3a922bb4 | 16869 | |
afc31813 | 16870 | fi |
698dcdb6 | 16871 | rm -f conftest* |
51a9faba | 16872 | |
3a922bb4 | 16873 | ac_ext=c |
698dcdb6 | 16874 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
afc31813 | 16875 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
16876 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16877 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16878 | cross_compiling=$ac_cv_prog_cc_cross | |
afc31813 | 16879 | |
3a922bb4 | 16880 | |
51a9faba | 16881 | fi |
698dcdb6 VZ |
16882 | |
16883 | echo "$ac_t""$wx_cv_type_getsockname3" 1>&6 | |
51a9faba | 16884 | |
3a922bb4 RL |
16885 | if test "$wx_cv_type_getsockname3" = "unknown"; then |
16886 | wxUSE_SOCKETS=no | |
16887 | echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2 | |
16888 | else | |
16889 | cat >> confdefs.h <<EOF | |
51a9faba VZ |
16890 | #define SOCKLEN_T $wx_cv_type_getsockname3 |
16891 | EOF | |
16892 | ||
3a922bb4 | 16893 | fi |
51a9faba VZ |
16894 | fi |
16895 | fi | |
afc31813 | 16896 | |
51a9faba | 16897 | if test "$wxUSE_SOCKETS" = "yes" ; then |
698dcdb6 | 16898 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
16899 | #define wxUSE_SOCKETS 1 |
16900 | EOF | |
16901 | ||
70f7a477 | 16902 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" |
afc31813 VZ |
16903 | fi |
16904 | ||
698dcdb6 | 16905 | |
dc3d889d VZ |
16906 | if test "$wxUSE_GUI" = "yes"; then |
16907 | ||
3a922bb4 RL |
16908 | if test "$TOOLKIT" != "MSW"; then |
16909 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
16910 | for ac_hdr in linux/joystick.h | |
10f2d63a | 16911 | do |
698dcdb6 VZ |
16912 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
16913 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
1d93af2f | 16914 | echo "configure:16915: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
16915 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
16916 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16917 | else | |
16918 | cat > conftest.$ac_ext <<EOF | |
1d93af2f | 16919 | #line 16920 "configure" |
10f2d63a | 16920 | #include "confdefs.h" |
698dcdb6 VZ |
16921 | #include <$ac_hdr> |
16922 | EOF | |
16923 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
1d93af2f | 16924 | { (eval echo configure:16925: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
16925 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
16926 | if test -z "$ac_err"; then | |
16927 | rm -rf conftest* | |
16928 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 16929 | else |
698dcdb6 VZ |
16930 | echo "$ac_err" >&5 |
16931 | echo "configure: failed program was:" >&5 | |
10f2d63a | 16932 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
16933 | rm -rf conftest* |
16934 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 16935 | fi |
698dcdb6 | 16936 | rm -f conftest* |
10f2d63a | 16937 | fi |
698dcdb6 VZ |
16938 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
16939 | echo "$ac_t""yes" 1>&6 | |
16940 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
16941 | cat >> confdefs.h <<EOF | |
16942 | #define $ac_tr_hdr 1 | |
10f2d63a | 16943 | EOF |
698dcdb6 VZ |
16944 | |
16945 | else | |
16946 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
16947 | fi |
16948 | done | |
16949 | ||
3a922bb4 RL |
16950 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then |
16951 | wxUSE_JOYSTICK=no | |
16952 | echo "configure: warning: Joystick not supported by this system" 1>&2 | |
16953 | fi | |
16954 | fi | |
16955 | fi | |
b089607b | 16956 | |
3a922bb4 RL |
16957 | if test "$wxUSE_JOYSTICK" = "yes"; then |
16958 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
16959 | #define wxUSE_JOYSTICK 1 |
16960 | EOF | |
16961 | ||
3a922bb4 RL |
16962 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
16963 | fi | |
dc3d889d VZ |
16964 | fi |
16965 | ||
698dcdb6 | 16966 | |
b089607b VZ |
16967 | if test "$TOOLKIT" != "MSW"; then |
16968 | ||
3a922bb4 RL |
16969 | HAVE_DL_FUNCS=0 |
16970 | HAVE_SHL_FUNCS=0 | |
16971 | if test "$wxUSE_DYNLIB_CLASS" = "yes"; then | |
16972 | if test "$USE_DARWIN" = 1; then | |
16973 | HAVE_DL_FUNCS=1 | |
16974 | else | |
16975 | for ac_func in dlopen | |
10f2d63a | 16976 | do |
698dcdb6 | 16977 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
1d93af2f | 16978 | echo "configure:16979: checking for $ac_func" >&5 |
698dcdb6 VZ |
16979 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16980 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16981 | else | |
16982 | cat > conftest.$ac_ext <<EOF | |
1d93af2f | 16983 | #line 16984 "configure" |
10f2d63a VZ |
16984 | #include "confdefs.h" |
16985 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16986 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
16987 | #include <assert.h> |
16988 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16989 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16990 | builtin and then its argument prototype would still apply. */ |
16991 | char $ac_func(); | |
16992 | ||
16993 | int main() { | |
10f2d63a VZ |
16994 | |
16995 | /* The GNU C library defines this for functions which it implements | |
16996 | to always fail with ENOSYS. Some functions are actually named | |
16997 | something starting with __ and the normal name is an alias. */ | |
16998 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16999 | choke me | |
17000 | #else | |
698dcdb6 | 17001 | $ac_func(); |
10f2d63a VZ |
17002 | #endif |
17003 | ||
698dcdb6 VZ |
17004 | ; return 0; } |
17005 | EOF | |
1d93af2f | 17006 | if { (eval echo configure:17007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17007 | rm -rf conftest* |
17008 | eval "ac_cv_func_$ac_func=yes" | |
17009 | else | |
17010 | echo "configure: failed program was:" >&5 | |
17011 | cat conftest.$ac_ext >&5 | |
17012 | rm -rf conftest* | |
17013 | eval "ac_cv_func_$ac_func=no" | |
17014 | fi | |
17015 | rm -f conftest* | |
17016 | fi | |
17017 | ||
17018 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17019 | echo "$ac_t""yes" 1>&6 | |
17020 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17021 | cat >> confdefs.h <<EOF | |
17022 | #define $ac_tr_func 1 | |
17023 | EOF | |
17024 | ||
3a922bb4 | 17025 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17026 | #define HAVE_DLOPEN 1 |
17027 | EOF | |
17028 | ||
3a922bb4 RL |
17029 | HAVE_DL_FUNCS=1 |
17030 | ||
10f2d63a | 17031 | else |
698dcdb6 VZ |
17032 | echo "$ac_t""no" 1>&6 |
17033 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
1d93af2f | 17034 | echo "configure:17035: checking for dlopen in -ldl" >&5 |
698dcdb6 VZ |
17035 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
17036 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17037 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 17038 | else |
698dcdb6 | 17039 | ac_save_LIBS="$LIBS" |
10f2d63a | 17040 | LIBS="-ldl $LIBS" |
698dcdb6 | 17041 | cat > conftest.$ac_ext <<EOF |
1d93af2f | 17042 | #line 17043 "configure" |
10f2d63a VZ |
17043 | #include "confdefs.h" |
17044 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17045 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
17046 | builtin and then its argument prototype would still apply. */ |
17047 | char dlopen(); | |
17048 | ||
17049 | int main() { | |
17050 | dlopen() | |
17051 | ; return 0; } | |
17052 | EOF | |
1d93af2f | 17053 | if { (eval echo configure:17054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17054 | rm -rf conftest* |
17055 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17056 | else | |
17057 | echo "configure: failed program was:" >&5 | |
17058 | cat conftest.$ac_ext >&5 | |
17059 | rm -rf conftest* | |
17060 | eval "ac_cv_lib_$ac_lib_var=no" | |
17061 | fi | |
17062 | rm -f conftest* | |
17063 | LIBS="$ac_save_LIBS" | |
17064 | ||
17065 | fi | |
17066 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17067 | echo "$ac_t""yes" 1>&6 | |
17068 | ||
3a922bb4 | 17069 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17070 | #define HAVE_DLOPEN 1 |
17071 | EOF | |
17072 | ||
3a922bb4 | 17073 | HAVE_DL_FUNCS=1 |
3d63bc3a | 17074 | DL_LINK=" -ldl$DL_LINK" |
3a922bb4 | 17075 | |
10f2d63a | 17076 | else |
698dcdb6 | 17077 | echo "$ac_t""no" 1>&6 |
10f2d63a | 17078 | |
3a922bb4 | 17079 | for ac_func in shl_load |
10f2d63a | 17080 | do |
698dcdb6 | 17081 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
1d93af2f | 17082 | echo "configure:17083: checking for $ac_func" >&5 |
698dcdb6 VZ |
17083 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17084 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17085 | else | |
17086 | cat > conftest.$ac_ext <<EOF | |
1d93af2f | 17087 | #line 17088 "configure" |
10f2d63a VZ |
17088 | #include "confdefs.h" |
17089 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 17090 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
17091 | #include <assert.h> |
17092 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17093 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
17094 | builtin and then its argument prototype would still apply. */ |
17095 | char $ac_func(); | |
17096 | ||
17097 | int main() { | |
10f2d63a VZ |
17098 | |
17099 | /* The GNU C library defines this for functions which it implements | |
17100 | to always fail with ENOSYS. Some functions are actually named | |
17101 | something starting with __ and the normal name is an alias. */ | |
17102 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17103 | choke me | |
17104 | #else | |
698dcdb6 | 17105 | $ac_func(); |
10f2d63a VZ |
17106 | #endif |
17107 | ||
698dcdb6 VZ |
17108 | ; return 0; } |
17109 | EOF | |
1d93af2f | 17110 | if { (eval echo configure:17111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17111 | rm -rf conftest* |
17112 | eval "ac_cv_func_$ac_func=yes" | |
17113 | else | |
17114 | echo "configure: failed program was:" >&5 | |
17115 | cat conftest.$ac_ext >&5 | |
17116 | rm -rf conftest* | |
17117 | eval "ac_cv_func_$ac_func=no" | |
17118 | fi | |
17119 | rm -f conftest* | |
17120 | fi | |
17121 | ||
17122 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17123 | echo "$ac_t""yes" 1>&6 | |
17124 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17125 | cat >> confdefs.h <<EOF | |
17126 | #define $ac_tr_func 1 | |
17127 | EOF | |
17128 | ||
3a922bb4 | 17129 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17130 | #define HAVE_SHL_LOAD 1 |
17131 | EOF | |
17132 | ||
3a922bb4 RL |
17133 | HAVE_SHL_FUNCS=1 |
17134 | ||
10f2d63a | 17135 | else |
698dcdb6 VZ |
17136 | echo "$ac_t""no" 1>&6 |
17137 | echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6 | |
1d93af2f | 17138 | echo "configure:17139: checking for dld in -lshl_load" >&5 |
698dcdb6 VZ |
17139 | ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'` |
17140 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17141 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 17142 | else |
698dcdb6 | 17143 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 17144 | LIBS="-lshl_load $LIBS" |
698dcdb6 | 17145 | cat > conftest.$ac_ext <<EOF |
1d93af2f | 17146 | #line 17147 "configure" |
f6bcfd97 BP |
17147 | #include "confdefs.h" |
17148 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17149 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
17150 | builtin and then its argument prototype would still apply. */ |
17151 | char dld(); | |
17152 | ||
17153 | int main() { | |
17154 | dld() | |
17155 | ; return 0; } | |
17156 | EOF | |
1d93af2f | 17157 | if { (eval echo configure:17158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17158 | rm -rf conftest* |
17159 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17160 | else | |
17161 | echo "configure: failed program was:" >&5 | |
17162 | cat conftest.$ac_ext >&5 | |
17163 | rm -rf conftest* | |
17164 | eval "ac_cv_lib_$ac_lib_var=no" | |
17165 | fi | |
17166 | rm -f conftest* | |
17167 | LIBS="$ac_save_LIBS" | |
f6bcfd97 | 17168 | |
698dcdb6 VZ |
17169 | fi |
17170 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17171 | echo "$ac_t""yes" 1>&6 | |
17172 | ||
3a922bb4 | 17173 | HAVE_SHL_FUNCS=1 |
3d63bc3a | 17174 | DL_LINK=" -ldld$DL_LINK" |
3a922bb4 | 17175 | |
698dcdb6 VZ |
17176 | else |
17177 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
17178 | fi |
17179 | ||
3a922bb4 | 17180 | |
10f2d63a VZ |
17181 | fi |
17182 | done | |
17183 | ||
3a922bb4 | 17184 | |
10f2d63a VZ |
17185 | fi |
17186 | ||
3a922bb4 | 17187 | |
10f2d63a VZ |
17188 | fi |
17189 | done | |
17190 | ||
1e487827 | 17191 | |
3a922bb4 RL |
17192 | if test "$HAVE_DL_FUNCS" = 1; then |
17193 | for ac_func in dlerror | |
f6bcfd97 | 17194 | do |
698dcdb6 | 17195 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
1d93af2f | 17196 | echo "configure:17197: checking for $ac_func" >&5 |
698dcdb6 VZ |
17197 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17198 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17199 | else | |
17200 | cat > conftest.$ac_ext <<EOF | |
1d93af2f | 17201 | #line 17202 "configure" |
f6bcfd97 BP |
17202 | #include "confdefs.h" |
17203 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 17204 | which can conflict with char $ac_func(); below. */ |
f6bcfd97 BP |
17205 | #include <assert.h> |
17206 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17207 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
17208 | builtin and then its argument prototype would still apply. */ |
17209 | char $ac_func(); | |
17210 | ||
17211 | int main() { | |
f6bcfd97 BP |
17212 | |
17213 | /* The GNU C library defines this for functions which it implements | |
17214 | to always fail with ENOSYS. Some functions are actually named | |
17215 | something starting with __ and the normal name is an alias. */ | |
17216 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17217 | choke me | |
17218 | #else | |
698dcdb6 | 17219 | $ac_func(); |
f6bcfd97 BP |
17220 | #endif |
17221 | ||
698dcdb6 VZ |
17222 | ; return 0; } |
17223 | EOF | |
1d93af2f | 17224 | if { (eval echo configure:17225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17225 | rm -rf conftest* |
17226 | eval "ac_cv_func_$ac_func=yes" | |
17227 | else | |
17228 | echo "configure: failed program was:" >&5 | |
17229 | cat conftest.$ac_ext >&5 | |
17230 | rm -rf conftest* | |
17231 | eval "ac_cv_func_$ac_func=no" | |
17232 | fi | |
17233 | rm -f conftest* | |
17234 | fi | |
17235 | ||
17236 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17237 | echo "$ac_t""yes" 1>&6 | |
17238 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17239 | cat >> confdefs.h <<EOF | |
17240 | #define $ac_tr_func 1 | |
17241 | EOF | |
17242 | cat >> confdefs.h <<\EOF | |
f6bcfd97 BP |
17243 | #define HAVE_DLERROR 1 |
17244 | EOF | |
17245 | ||
17246 | else | |
698dcdb6 VZ |
17247 | echo "$ac_t""no" 1>&6 |
17248 | echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6 | |
1d93af2f | 17249 | echo "configure:17250: checking for dlerror in -ldl" >&5 |
698dcdb6 VZ |
17250 | ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'` |
17251 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17252 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 17253 | else |
698dcdb6 | 17254 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 17255 | LIBS="-ldl $LIBS" |
698dcdb6 | 17256 | cat > conftest.$ac_ext <<EOF |
1d93af2f | 17257 | #line 17258 "configure" |
f6bcfd97 BP |
17258 | #include "confdefs.h" |
17259 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17260 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
17261 | builtin and then its argument prototype would still apply. */ |
17262 | char dlerror(); | |
17263 | ||
17264 | int main() { | |
17265 | dlerror() | |
17266 | ; return 0; } | |
17267 | EOF | |
1d93af2f | 17268 | if { (eval echo configure:17269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17269 | rm -rf conftest* |
17270 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17271 | else | |
17272 | echo "configure: failed program was:" >&5 | |
17273 | cat conftest.$ac_ext >&5 | |
17274 | rm -rf conftest* | |
17275 | eval "ac_cv_lib_$ac_lib_var=no" | |
17276 | fi | |
17277 | rm -f conftest* | |
17278 | LIBS="$ac_save_LIBS" | |
17279 | ||
17280 | fi | |
17281 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17282 | echo "$ac_t""yes" 1>&6 | |
17283 | cat >> confdefs.h <<\EOF | |
f6bcfd97 BP |
17284 | #define HAVE_DLERROR 1 |
17285 | EOF | |
17286 | ||
698dcdb6 VZ |
17287 | else |
17288 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
17289 | fi |
17290 | ||
17291 | fi | |
17292 | done | |
17293 | ||
3a922bb4 RL |
17294 | fi |
17295 | fi | |
f6bcfd97 | 17296 | |
3a922bb4 RL |
17297 | if test "$HAVE_DL_FUNCS" = 0; then |
17298 | if test "$HAVE_SHL_FUNCS" = 0; then | |
17299 | if test "$USE_UNIX" = 1; then | |
17300 | echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2 | |
17301 | wxUSE_DYNLIB_CLASS=no | |
17302 | else | |
17303 | echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2 | |
17304 | fi | |
17305 | fi | |
10f2d63a VZ |
17306 | fi |
17307 | fi | |
17308 | fi | |
17309 | ||
17310 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
698dcdb6 | 17311 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17312 | #define wxUSE_DYNLIB_CLASS 1 |
17313 | EOF | |
17314 | ||
b12915c1 VZ |
17315 | else |
17316 | wxUSE_ODBC=no | |
17317 | wxUSE_SERIAL=no | |
10f2d63a VZ |
17318 | fi |
17319 | ||
698dcdb6 | 17320 | |
1e6feb95 VZ |
17321 | if test "$wxUSE_FONTMAP" = "yes" ; then |
17322 | cat >> confdefs.h <<\EOF | |
17323 | #define wxUSE_FONTMAP 1 | |
17324 | EOF | |
17325 | ||
17326 | fi | |
17327 | ||
10f2d63a | 17328 | if test "$wxUSE_UNICODE" = "yes" ; then |
698dcdb6 | 17329 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17330 | #define wxUSE_UNICODE 1 |
17331 | EOF | |
17332 | ||
17333 | fi | |
17334 | ||
10f2d63a | 17335 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then |
698dcdb6 | 17336 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17337 | #define wxUSE_EXPERIMENTAL_PRINTF 1 |
17338 | EOF | |
17339 | ||
17340 | fi | |
17341 | ||
698dcdb6 | 17342 | |
b12915c1 | 17343 | if test "$wxUSE_SERIAL" = "yes" ; then |
698dcdb6 | 17344 | cat >> confdefs.h <<\EOF |
b12915c1 VZ |
17345 | #define wxUSE_SERIAL 1 |
17346 | EOF | |
17347 | ||
17348 | fi | |
17349 | ||
698dcdb6 | 17350 | |
10f2d63a VZ |
17351 | IODBC_C_SRC="" |
17352 | if test "$wxUSE_ODBC" = "yes" ; then | |
698dcdb6 | 17353 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17354 | #define wxUSE_ODBC 1 |
17355 | EOF | |
17356 | ||
17357 | WXODBCFLAG="-D_IODBC_" | |
17358 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
10f2d63a VZ |
17359 | fi |
17360 | ||
698dcdb6 | 17361 | |
10f2d63a | 17362 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then |
698dcdb6 | 17363 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17364 | #define wxUSE_POSTSCRIPT 1 |
17365 | EOF | |
17366 | ||
17367 | fi | |
17368 | ||
698dcdb6 | 17369 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17370 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 |
17371 | EOF | |
17372 | ||
698dcdb6 VZ |
17373 | |
17374 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
17375 | #define wxUSE_NORMALIZED_PS_FONTS 1 |
17376 | EOF | |
17377 | ||
698dcdb6 VZ |
17378 | |
17379 | ||
10f2d63a | 17380 | if test "$wxUSE_CONSTRAINTS" = "yes"; then |
698dcdb6 | 17381 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17382 | #define wxUSE_CONSTRAINTS 1 |
17383 | EOF | |
17384 | ||
17385 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
17386 | fi | |
17387 | ||
17388 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
fc26f4ab RL |
17389 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
17390 | echo "configure: warning: MDI is not supported for wxUNIVERSAL yet... disabled" 1>&2 | |
17391 | wxUSE_MDI_ARCHITECTURE=no | |
17392 | fi | |
17393 | ||
17394 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
17395 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
17396 | #define wxUSE_MDI_ARCHITECTURE 1 |
17397 | EOF | |
17398 | ||
fc26f4ab RL |
17399 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
17400 | fi | |
10f2d63a VZ |
17401 | fi |
17402 | ||
17403 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
698dcdb6 | 17404 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17405 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 |
17406 | EOF | |
17407 | ||
17408 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
17409 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
17410 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
17411 | fi | |
17412 | fi | |
17413 | ||
17414 | if test "$wxUSE_HELP" = "yes"; then | |
698dcdb6 | 17415 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17416 | #define wxUSE_HELP 1 |
17417 | EOF | |
17418 | ||
17419 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
3379ed37 | 17420 | |
77e13408 | 17421 | if test "$wxUSE_MSW" = 1; then |
031d8228 | 17422 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then |
29fd3c0c VS |
17423 | ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'` |
17424 | echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6 | |
1d93af2f | 17425 | echo "configure:17426: checking for htmlhelp.h" >&5 |
29fd3c0c VS |
17426 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
17427 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17428 | else | |
17429 | cat > conftest.$ac_ext <<EOF | |
1d93af2f | 17430 | #line 17431 "configure" |
29fd3c0c VS |
17431 | #include "confdefs.h" |
17432 | #include <htmlhelp.h> | |
17433 | EOF | |
17434 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
1d93af2f | 17435 | { (eval echo configure:17436: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
29fd3c0c VS |
17436 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
17437 | if test -z "$ac_err"; then | |
17438 | rm -rf conftest* | |
17439 | eval "ac_cv_header_$ac_safe=yes" | |
17440 | else | |
17441 | echo "$ac_err" >&5 | |
17442 | echo "configure: failed program was:" >&5 | |
17443 | cat conftest.$ac_ext >&5 | |
17444 | rm -rf conftest* | |
17445 | eval "ac_cv_header_$ac_safe=no" | |
17446 | fi | |
17447 | rm -f conftest* | |
17448 | fi | |
17449 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
17450 | echo "$ac_t""yes" 1>&6 | |
17451 | ||
17452 | cat >> confdefs.h <<\EOF | |
17453 | #define wxUSE_MS_HTML_HELP 1 | |
17454 | EOF | |
17455 | ||
17456 | ||
17457 | else | |
17458 | echo "$ac_t""no" 1>&6 | |
17459 | ||
fc26f4ab | 17460 | echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h... disabled" 1>&2 |
29fd3c0c VS |
17461 | wxUSE_MS_HTML_HELP=no |
17462 | ||
17463 | fi | |
17464 | ||
3e44f09d | 17465 | fi |
3379ed37 | 17466 | fi |
031d8228 VS |
17467 | |
17468 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
17469 | if test "$wxUSE_HTML" = "yes"; then | |
17470 | cat >> confdefs.h <<\EOF | |
17471 | #define wxUSE_WXHTML_HELP 1 | |
17472 | EOF | |
17473 | ||
17474 | else | |
17475 | echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2 | |
17476 | wxUSE_WXHTML_HELP=no | |
17477 | fi | |
17478 | fi | |
10f2d63a VZ |
17479 | fi |
17480 | ||
17481 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
17482 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
698dcdb6 | 17483 | echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2 |
10f2d63a | 17484 | else |
698dcdb6 | 17485 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17486 | #define wxUSE_PRINTING_ARCHITECTURE 1 |
17487 | EOF | |
17488 | ||
17489 | fi | |
17490 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
17491 | fi | |
17492 | ||
17493 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
698dcdb6 | 17494 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17495 | #define wxUSE_PROLOGIO 1 |
17496 | EOF | |
17497 | ||
17498 | fi | |
17499 | ||
17500 | if test "$wxUSE_RESOURCES" = "yes" ; then | |
3379ed37 | 17501 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17502 | #define wxUSE_RESOURCES 1 |
17503 | EOF | |
17504 | ||
3379ed37 | 17505 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource" |
10f2d63a VZ |
17506 | fi |
17507 | ||
17508 | if test "$wxUSE_X_RESOURCES" = "yes"; then | |
698dcdb6 | 17509 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17510 | #define wxUSE_X_RESOURCES 1 |
17511 | EOF | |
17512 | ||
17513 | fi | |
17514 | ||
698dcdb6 | 17515 | |
77e13408 RL |
17516 | if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ |
17517 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
17518 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
2b9bdf71 | 17519 | for ac_hdr in ole2.h |
10f2d63a | 17520 | do |
698dcdb6 VZ |
17521 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
17522 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
1d93af2f | 17523 | echo "configure:17524: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
17524 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
17525 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17526 | else | |
17527 | cat > conftest.$ac_ext <<EOF | |
1d93af2f | 17528 | #line 17529 "configure" |
10f2d63a | 17529 | #include "confdefs.h" |
698dcdb6 VZ |
17530 | #include <$ac_hdr> |
17531 | EOF | |
17532 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
1d93af2f | 17533 | { (eval echo configure:17534: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
17534 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
17535 | if test -z "$ac_err"; then | |
17536 | rm -rf conftest* | |
17537 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 17538 | else |
698dcdb6 VZ |
17539 | echo "$ac_err" >&5 |
17540 | echo "configure: failed program was:" >&5 | |
10f2d63a | 17541 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
17542 | rm -rf conftest* |
17543 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 17544 | fi |
698dcdb6 | 17545 | rm -f conftest* |
10f2d63a | 17546 | fi |
698dcdb6 VZ |
17547 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
17548 | echo "$ac_t""yes" 1>&6 | |
17549 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
17550 | cat >> confdefs.h <<EOF | |
17551 | #define $ac_tr_hdr 1 | |
10f2d63a | 17552 | EOF |
698dcdb6 VZ |
17553 | |
17554 | else | |
17555 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
17556 | fi |
17557 | done | |
17558 | ||
698dcdb6 | 17559 | |
2b9bdf71 VZ |
17560 | if test "$ac_cv_header_ole2_h" = "yes" ; then |
17561 | if test "$GCC" = yes ; then | |
17562 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" | |
2b9bdf71 | 17563 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" |
3d63bc3a | 17564 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
2b9bdf71 | 17565 | cat >> confdefs.h <<\EOF |
4f11a343 VS |
17566 | #define wxUSE_OLE 1 |
17567 | EOF | |
17568 | ||
b64f0a5f | 17569 | |
2b9bdf71 VZ |
17570 | fi |
17571 | ||
17572 | cat >> confdefs.h <<\EOF | |
17573 | #define wxUSE_DATAOBJ 1 | |
17574 | EOF | |
17575 | ||
17576 | else | |
17577 | echo "configure: warning: Some features disabled because OLE headers not found" 1>&2 | |
17578 | ||
17579 | wxUSE_CLIPBOARD=no | |
17580 | wxUSE_DRAG_AND_DROP=no | |
17581 | wxUSE_DATAOBJ=no | |
17582 | fi | |
17583 | ||
77e13408 | 17584 | if test "$wxUSE_METAFILE" = "yes"; then |
2b9bdf71 | 17585 | cat >> confdefs.h <<\EOF |
b64f0a5f RL |
17586 | #define wxUSE_METAFILE 1 |
17587 | EOF | |
17588 | ||
2b9bdf71 VZ |
17589 | |
17590 | cat >> confdefs.h <<\EOF | |
b64f0a5f RL |
17591 | #define wxUSE_ENH_METAFILE 1 |
17592 | EOF | |
17593 | ||
2b9bdf71 VZ |
17594 | fi |
17595 | fi | |
17596 | ||
17597 | if test "$wxUSE_IPC" = "yes"; then | |
17598 | if test "$wxUSE_SOCKETS" != "yes"; then | |
17599 | echo "configure: warning: wxWindows IPC classes require sockets" 1>&2 | |
17600 | fi | |
17601 | ||
17602 | cat >> confdefs.h <<\EOF | |
17603 | #define wxUSE_IPC 1 | |
17604 | EOF | |
17605 | ||
17606 | fi | |
17607 | ||
17608 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
17609 | cat >> confdefs.h <<\EOF | |
17610 | #define wxUSE_CLIPBOARD 1 | |
17611 | EOF | |
17612 | ||
673f4220 | 17613 | |
e33ef661 | 17614 | cat >> confdefs.h <<\EOF |
673f4220 VZ |
17615 | #define wxUSE_DATAOBJ 1 |
17616 | EOF | |
17617 | ||
2b9bdf71 VZ |
17618 | fi |
17619 | ||
17620 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
17621 | if test "$wxUSE_GTK" = 1; then | |
17622 | if test "$WXGTK12" != 1; then | |
17623 | echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2 | |
10f2d63a VZ |
17624 | wxUSE_DRAG_AND_DROP=no |
17625 | fi | |
17626 | fi | |
17627 | ||
2b9bdf71 VZ |
17628 | if test "$wxUSE_MOTIF" = 1; then |
17629 | echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2 | |
17630 | wxUSE_DRAG_AND_DROP=no | |
17631 | fi | |
17632 | ||
17633 | if test "$wxUSE_MAC" = 1; then | |
17634 | echo "configure: warning: Drag and drop is not yet supported under Mac OS X" 1>&2 | |
17635 | wxUSE_DRAG_AND_DROP=no | |
17636 | fi | |
17637 | ||
10f2d63a | 17638 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then |
698dcdb6 | 17639 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17640 | #define wxUSE_DRAG_AND_DROP 1 |
17641 | EOF | |
17642 | ||
17643 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
17644 | fi | |
17645 | ||
17646 | fi | |
17647 | ||
17648 | if test "$wxUSE_SPLINES" = "yes" ; then | |
698dcdb6 | 17649 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17650 | #define wxUSE_SPLINES 1 |
17651 | EOF | |
17652 | ||
17653 | fi | |
17654 | ||
698dcdb6 | 17655 | |
1e6feb95 VZ |
17656 | USES_CONTROLS=0 |
17657 | if test "$wxUSE_CONTROLS" = "yes"; then | |
17658 | USES_CONTROLS=1 | |
17659 | fi | |
17660 | ||
10f2d63a | 17661 | if test "$wxUSE_ACCEL" = "yes"; then |
698dcdb6 | 17662 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17663 | #define wxUSE_ACCEL 1 |
17664 | EOF | |
17665 | ||
1e6feb95 VZ |
17666 | USES_CONTROLS=1 |
17667 | fi | |
17668 | ||
17669 | if test "$wxUSE_BUTTON" = "yes"; then | |
17670 | cat >> confdefs.h <<\EOF | |
17671 | #define wxUSE_BUTTON 1 | |
17672 | EOF | |
17673 | ||
17674 | USES_CONTROLS=1 | |
17675 | fi | |
17676 | ||
17677 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
17678 | cat >> confdefs.h <<\EOF | |
17679 | #define wxUSE_BMPBUTTON 1 | |
17680 | EOF | |
17681 | ||
17682 | USES_CONTROLS=1 | |
17683 | fi | |
17684 | ||
17685 | if test "$wxUSE_CALCTRL" = "yes"; then | |
17686 | cat >> confdefs.h <<\EOF | |
17687 | #define wxUSE_CALENDARCTRL 1 | |
17688 | EOF | |
17689 | ||
17690 | USES_CONTROLS=1 | |
17691 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
10f2d63a VZ |
17692 | fi |
17693 | ||
17694 | if test "$wxUSE_CARET" = "yes"; then | |
698dcdb6 | 17695 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17696 | #define wxUSE_CARET 1 |
17697 | EOF | |
17698 | ||
1e6feb95 | 17699 | USES_CONTROLS=1 |
10f2d63a VZ |
17700 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" |
17701 | fi | |
17702 | ||
17703 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
698dcdb6 | 17704 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17705 | #define wxUSE_COMBOBOX 1 |
17706 | EOF | |
17707 | ||
1e6feb95 | 17708 | USES_CONTROLS=1 |
10f2d63a VZ |
17709 | fi |
17710 | ||
17711 | if test "$wxUSE_CHOICE" = "yes"; then | |
698dcdb6 | 17712 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17713 | #define wxUSE_CHOICE 1 |
17714 | EOF | |
17715 | ||
1e6feb95 | 17716 | USES_CONTROLS=1 |
10f2d63a VZ |
17717 | fi |
17718 | ||
17719 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
698dcdb6 | 17720 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17721 | #define wxUSE_CHECKBOX 1 |
17722 | EOF | |
17723 | ||
1e6feb95 | 17724 | USES_CONTROLS=1 |
10f2d63a VZ |
17725 | fi |
17726 | ||
17727 | if test "$wxUSE_CHECKLST" = "yes"; then | |
698dcdb6 | 17728 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17729 | #define wxUSE_CHECKLISTBOX 1 |
17730 | EOF | |
17731 | ||
1e6feb95 | 17732 | USES_CONTROLS=1 |
10f2d63a VZ |
17733 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" |
17734 | fi | |
17735 | ||
17736 | if test "$wxUSE_GAUGE" = "yes"; then | |
698dcdb6 | 17737 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17738 | #define wxUSE_GAUGE 1 |
17739 | EOF | |
17740 | ||
1e6feb95 | 17741 | USES_CONTROLS=1 |
10f2d63a VZ |
17742 | fi |
17743 | ||
d6a55c4b VZ |
17744 | if test "$wxUSE_NEW_GRID" = "yes"; then |
17745 | wxUSE_GRID="yes" | |
698dcdb6 | 17746 | cat >> confdefs.h <<\EOF |
d6a55c4b | 17747 | #define wxUSE_NEW_GRID 1 |
10f2d63a VZ |
17748 | EOF |
17749 | ||
1e6feb95 | 17750 | USES_CONTROLS=1 |
d6a55c4b | 17751 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid" |
10f2d63a VZ |
17752 | fi |
17753 | ||
d6a55c4b | 17754 | if test "$wxUSE_GRID" = "yes"; then |
698dcdb6 | 17755 | cat >> confdefs.h <<\EOF |
d6a55c4b | 17756 | #define wxUSE_GRID 1 |
10f2d63a VZ |
17757 | EOF |
17758 | ||
1e6feb95 | 17759 | USES_CONTROLS=1 |
d6a55c4b | 17760 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" |
10f2d63a VZ |
17761 | fi |
17762 | ||
17763 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 17764 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17765 | #define wxUSE_IMAGLIST 1 |
17766 | EOF | |
17767 | ||
17768 | fi | |
17769 | ||
17770 | if test "$wxUSE_LISTBOX" = "yes"; then | |
698dcdb6 | 17771 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17772 | #define wxUSE_LISTBOX 1 |
17773 | EOF | |
17774 | ||
1e6feb95 | 17775 | USES_CONTROLS=1 |
10f2d63a VZ |
17776 | fi |
17777 | ||
17778 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
17779 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 17780 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17781 | #define wxUSE_LISTCTRL 1 |
17782 | EOF | |
17783 | ||
1e6feb95 | 17784 | USES_CONTROLS=1 |
10f2d63a VZ |
17785 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" |
17786 | else | |
698dcdb6 | 17787 | echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
17788 | fi |
17789 | fi | |
17790 | ||
17791 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
698dcdb6 | 17792 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17793 | #define wxUSE_NOTEBOOK 1 |
17794 | EOF | |
17795 | ||
1e6feb95 | 17796 | USES_CONTROLS=1 |
10f2d63a VZ |
17797 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" |
17798 | fi | |
17799 | ||
24176f2c GD |
17800 | if test "$wxUSE_PROPSHEET" = "yes"; then |
17801 | cat >> confdefs.h <<\EOF | |
17802 | #define wxUSE_PROPSHEET 1 | |
17803 | EOF | |
17804 | ||
17805 | USES_CONTROLS=1 | |
17806 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist" | |
17807 | fi | |
17808 | ||
10f2d63a | 17809 | if test "$wxUSE_RADIOBOX" = "yes"; then |
698dcdb6 | 17810 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17811 | #define wxUSE_RADIOBOX 1 |
17812 | EOF | |
17813 | ||
1e6feb95 | 17814 | USES_CONTROLS=1 |
10f2d63a VZ |
17815 | fi |
17816 | ||
17817 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
698dcdb6 | 17818 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17819 | #define wxUSE_RADIOBTN 1 |
17820 | EOF | |
17821 | ||
1e6feb95 | 17822 | USES_CONTROLS=1 |
10f2d63a VZ |
17823 | fi |
17824 | ||
17825 | if test "$wxUSE_SASH" = "yes"; then | |
698dcdb6 | 17826 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17827 | #define wxUSE_SASH 1 |
17828 | EOF | |
17829 | ||
17830 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
17831 | fi | |
17832 | ||
17833 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
698dcdb6 | 17834 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17835 | #define wxUSE_SCROLLBAR 1 |
17836 | EOF | |
17837 | ||
1e6feb95 | 17838 | USES_CONTROLS=1 |
741a9306 | 17839 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
17840 | fi |
17841 | ||
17842 | if test "$wxUSE_SLIDER" = "yes"; then | |
698dcdb6 | 17843 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17844 | #define wxUSE_SLIDER 1 |
17845 | EOF | |
17846 | ||
1e6feb95 | 17847 | USES_CONTROLS=1 |
10f2d63a VZ |
17848 | fi |
17849 | ||
17850 | if test "$wxUSE_SPINBTN" = "yes"; then | |
698dcdb6 | 17851 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17852 | #define wxUSE_SPINBTN 1 |
17853 | EOF | |
17854 | ||
1e6feb95 | 17855 | USES_CONTROLS=1 |
10f2d63a VZ |
17856 | fi |
17857 | ||
56cfaa52 | 17858 | if test "$wxUSE_SPINCTRL" = "yes"; then |
698dcdb6 | 17859 | cat >> confdefs.h <<\EOF |
56cfaa52 RR |
17860 | #define wxUSE_SPINCTRL 1 |
17861 | EOF | |
17862 | ||
1e6feb95 | 17863 | USES_CONTROLS=1 |
56cfaa52 RR |
17864 | fi |
17865 | ||
10f2d63a | 17866 | if test "$wxUSE_SPLITTER" = "yes"; then |
698dcdb6 | 17867 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17868 | #define wxUSE_SPLITTER 1 |
17869 | EOF | |
17870 | ||
17871 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
17872 | fi | |
17873 | ||
17874 | if test "$wxUSE_STATBMP" = "yes"; then | |
698dcdb6 | 17875 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17876 | #define wxUSE_STATBMP 1 |
17877 | EOF | |
17878 | ||
1e6feb95 | 17879 | USES_CONTROLS=1 |
10f2d63a VZ |
17880 | fi |
17881 | ||
17882 | if test "$wxUSE_STATBOX" = "yes"; then | |
698dcdb6 | 17883 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17884 | #define wxUSE_STATBOX 1 |
17885 | EOF | |
17886 | ||
1e6feb95 VZ |
17887 | USES_CONTROLS=1 |
17888 | fi | |
17889 | ||
17890 | if test "$wxUSE_STATTEXT" = "yes"; then | |
17891 | cat >> confdefs.h <<\EOF | |
17892 | #define wxUSE_STATTEXT 1 | |
17893 | EOF | |
17894 | ||
17895 | USES_CONTROLS=1 | |
10f2d63a VZ |
17896 | fi |
17897 | ||
17898 | if test "$wxUSE_STATLINE" = "yes"; then | |
17899 | if test "$wxUSE_WINE" = 1 ; then | |
698dcdb6 | 17900 | echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2 |
10f2d63a | 17901 | else |
698dcdb6 | 17902 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17903 | #define wxUSE_STATLINE 1 |
17904 | EOF | |
17905 | ||
1e6feb95 | 17906 | USES_CONTROLS=1 |
10f2d63a VZ |
17907 | fi |
17908 | fi | |
17909 | ||
17910 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
698dcdb6 | 17911 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17912 | #define wxUSE_STATUSBAR 1 |
17913 | EOF | |
17914 | ||
1e6feb95 | 17915 | USES_CONTROLS=1 |
698dcdb6 | 17916 | |
2286341c | 17917 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" |
10f2d63a VZ |
17918 | fi |
17919 | ||
17920 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
698dcdb6 | 17921 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17922 | #define wxUSE_TAB_DIALOG 1 |
17923 | EOF | |
17924 | ||
17925 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
17926 | fi | |
17927 | ||
1e6feb95 VZ |
17928 | if test "$wxUSE_TEXTCTRL" = "yes"; then |
17929 | cat >> confdefs.h <<\EOF | |
17930 | #define wxUSE_TEXTCTRL 1 | |
17931 | EOF | |
17932 | ||
17933 | USES_CONTROLS=1 | |
17934 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
17935 | fi | |
17936 | ||
1db8dc4a | 17937 | if test "$wxUSE_TOGGLEBTN" = "yes"; then |
fc26f4ab RL |
17938 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_UNIVERSAL" = "yes"; then |
17939 | echo "configure: warning: Toggle button not yet supported under Mac OS X or wxUNIVERSAL... disabled" 1>&2 | |
a45d7ab7 GD |
17940 | wxUSE_TOGGLEBTN=no |
17941 | fi | |
17942 | ||
17943 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
17944 | cat >> confdefs.h <<\EOF | |
1db8dc4a VZ |
17945 | #define wxUSE_TOGGLEBTN 1 |
17946 | EOF | |
17947 | ||
1e6feb95 | 17948 | USES_CONTROLS=1 |
a45d7ab7 | 17949 | fi |
1db8dc4a VZ |
17950 | fi |
17951 | ||
360d6699 | 17952 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
698dcdb6 | 17953 | cat >> confdefs.h <<\EOF |
360d6699 VZ |
17954 | #define wxUSE_TOOLBAR_SIMPLE 1 |
17955 | EOF | |
17956 | ||
17957 | wxUSE_TOOLBAR="yes" | |
1e6feb95 | 17958 | USES_CONTROLS=1 |
360d6699 VZ |
17959 | fi |
17960 | ||
10f2d63a | 17961 | if test "$wxUSE_TOOLBAR" = "yes"; then |
698dcdb6 | 17962 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17963 | #define wxUSE_TOOLBAR 1 |
17964 | EOF | |
17965 | ||
1e6feb95 | 17966 | USES_CONTROLS=1 |
698dcdb6 | 17967 | |
360d6699 VZ |
17968 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then |
17969 | wxUSE_TOOLBAR_NATIVE="yes" | |
17970 | fi | |
17971 | ||
1e6feb95 VZ |
17972 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
17973 | cat >> confdefs.h <<\EOF | |
360d6699 VZ |
17974 | #define wxUSE_TOOLBAR_NATIVE 1 |
17975 | EOF | |
17976 | ||
1e6feb95 VZ |
17977 | USES_CONTROLS=1 |
17978 | fi | |
17979 | ||
17980 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
360d6699 VZ |
17981 | fi |
17982 | ||
10f2d63a VZ |
17983 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
17984 | if test "$wxUSE_MOTIF" = 1; then | |
698dcdb6 | 17985 | echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2 |
10f2d63a VZ |
17986 | else |
17987 | if test "$wxUSE_WINE" = 1; then | |
698dcdb6 | 17988 | echo "configure: warning: wxTooltip not supported under WINE" 1>&2 |
10f2d63a | 17989 | else |
698dcdb6 | 17990 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17991 | #define wxUSE_TOOLTIPS 1 |
17992 | EOF | |
17993 | ||
17994 | fi | |
17995 | fi | |
17996 | fi | |
17997 | ||
17998 | if test "$wxUSE_TREECTRL" = "yes"; then | |
17999 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 18000 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18001 | #define wxUSE_TREECTRL 1 |
18002 | EOF | |
18003 | ||
1e6feb95 | 18004 | USES_CONTROLS=1 |
10f2d63a VZ |
18005 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" |
18006 | else | |
698dcdb6 | 18007 | echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
18008 | fi |
18009 | fi | |
18010 | ||
9f41d601 | 18011 | if test "$wxUSE_POPUPWIN" = "yes"; then |
6abe4b65 GD |
18012 | if test "$wxUSE_MAC" = 1; then |
18013 | echo "configure: warning: Popup window is not yet supported under Mac OS" 1>&2 | |
18014 | else | |
18015 | cat >> confdefs.h <<\EOF | |
9f41d601 RR |
18016 | #define wxUSE_POPUPWIN 1 |
18017 | EOF | |
18018 | ||
6abe4b65 GD |
18019 | USES_CONTROLS=1 |
18020 | fi | |
9f41d601 RR |
18021 | fi |
18022 | ||
1e6feb95 VZ |
18023 | if test "$USES_CONTROLS" = 1; then |
18024 | cat >> confdefs.h <<\EOF | |
18025 | #define wxUSE_CONTROLS 1 | |
10f2d63a VZ |
18026 | EOF |
18027 | ||
10f2d63a VZ |
18028 | fi |
18029 | ||
1e6feb95 | 18030 | |
24176f2c GD |
18031 | if test "$wxUSE_TREELAYOUT" = "yes"; then |
18032 | cat >> confdefs.h <<\EOF | |
18033 | #define wxUSE_TREELAYOUT 1 | |
18034 | EOF | |
18035 | ||
18036 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay" | |
18037 | fi | |
1e6feb95 | 18038 | |
24fd6d87 VZ |
18039 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
18040 | cat >> confdefs.h <<\EOF | |
18041 | #define wxUSE_DRAGIMAGE 1 | |
18042 | EOF | |
18043 | ||
18044 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
18045 | fi | |
18046 | ||
1e6feb95 | 18047 | if test "$wxUSE_MENUS" = "yes"; then |
698dcdb6 | 18048 | cat >> confdefs.h <<\EOF |
1e6feb95 | 18049 | #define wxUSE_MENUS 1 |
10f2d63a VZ |
18050 | EOF |
18051 | ||
1e6feb95 | 18052 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" |
10f2d63a VZ |
18053 | fi |
18054 | ||
1e6feb95 VZ |
18055 | if test "$wxUSE_METAFILE" = "yes"; then |
18056 | cat >> confdefs.h <<\EOF | |
18057 | #define wxUSE_METAFILE 1 | |
10f2d63a VZ |
18058 | EOF |
18059 | ||
10f2d63a VZ |
18060 | fi |
18061 | ||
1e6feb95 VZ |
18062 | if test "$wxUSE_MIMETYPE" = "yes"; then |
18063 | cat >> confdefs.h <<\EOF | |
18064 | #define wxUSE_MIMETYPE 1 | |
10f2d63a VZ |
18065 | EOF |
18066 | ||
10f2d63a VZ |
18067 | fi |
18068 | ||
3e44f09d VZ |
18069 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then |
18070 | cat >> confdefs.h <<\EOF | |
18071 | #define wxUSE_SYSTEM_OPTIONS 1 | |
18072 | EOF | |
18073 | ||
18074 | fi | |
18075 | ||
10f2d63a | 18076 | if test "$wxUSE_MINIFRAME" = "yes"; then |
698dcdb6 | 18077 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18078 | #define wxUSE_MINIFRAME 1 |
18079 | EOF | |
18080 | ||
18081 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
18082 | fi | |
18083 | ||
18084 | if test "$wxUSE_HTML" = "yes"; then | |
698dcdb6 | 18085 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18086 | #define wxUSE_HTML 1 |
18087 | EOF | |
18088 | ||
18089 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html" | |
10f2d63a VZ |
18090 | fi |
18091 | ||
18092 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
698dcdb6 | 18093 | cat >> confdefs.h <<\EOF |
1e487827 VS |
18094 | #define wxUSE_VALIDATORS 1 |
18095 | EOF | |
703e0a69 | 18096 | |
698dcdb6 VZ |
18097 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" |
18098 | fi | |
18099 | ||
edae8572 VZ |
18100 | if test "$wxUSE_PALETTE" = "yes" ; then |
18101 | cat >> confdefs.h <<\EOF | |
18102 | #define wxUSE_PALETTE 1 | |
18103 | EOF | |
18104 | ||
18105 | fi | |
18106 | ||
698dcdb6 VZ |
18107 | if test "$wxUSE_IMAGE" = "yes" ; then |
18108 | cat >> confdefs.h <<\EOF | |
18109 | #define wxUSE_IMAGE 1 | |
18110 | EOF | |
18111 | ||
18112 | fi | |
18113 | ||
18114 | if test "$wxUSE_GIF" = "yes" ; then | |
18115 | cat >> confdefs.h <<\EOF | |
18116 | #define wxUSE_GIF 1 | |
18117 | EOF | |
18118 | ||
18119 | fi | |
18120 | ||
18121 | if test "$wxUSE_PCX" = "yes" ; then | |
18122 | cat >> confdefs.h <<\EOF | |
18123 | #define wxUSE_PCX 1 | |
18124 | EOF | |
18125 | ||
18126 | fi | |
18127 | ||
18128 | if test "$wxUSE_PNM" = "yes" ; then | |
18129 | cat >> confdefs.h <<\EOF | |
18130 | #define wxUSE_PNM 1 | |
18131 | EOF | |
18132 | ||
18133 | fi | |
18134 | ||
18135 | if test "$wxUSE_XPM" = "yes" ; then | |
18136 | cat >> confdefs.h <<\EOF | |
18137 | #define wxUSE_XPM 1 | |
18138 | EOF | |
18139 | ||
18140 | fi | |
18141 | ||
18142 | ||
1e6feb95 VZ |
18143 | if test "$wxUSE_CHOICEDLG" = "yes"; then |
18144 | cat >> confdefs.h <<\EOF | |
18145 | #define wxUSE_CHOICEDLG 1 | |
18146 | EOF | |
18147 | ||
18148 | fi | |
18149 | ||
18150 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
18151 | cat >> confdefs.h <<\EOF | |
18152 | #define wxUSE_COLOURDLG 1 | |
18153 | EOF | |
18154 | ||
18155 | fi | |
18156 | ||
18157 | if test "$wxUSE_FILEDLG" = "yes"; then | |
18158 | cat >> confdefs.h <<\EOF | |
18159 | #define wxUSE_FILEDLG 1 | |
18160 | EOF | |
18161 | ||
18162 | fi | |
18163 | ||
8db37e06 VZ |
18164 | if test "$wxUSE_FINDREPLDLG" = "yes"; then |
18165 | cat >> confdefs.h <<\EOF | |
18166 | #define wxUSE_FINDREPLDLG 1 | |
18167 | EOF | |
18168 | ||
18169 | fi | |
18170 | ||
1e6feb95 VZ |
18171 | if test "$wxUSE_FONTDLG" = "yes"; then |
18172 | cat >> confdefs.h <<\EOF | |
18173 | #define wxUSE_FONTDLG 1 | |
18174 | EOF | |
18175 | ||
18176 | fi | |
18177 | ||
18178 | if test "$wxUSE_DIRDLG" = "yes"; then | |
18179 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
18180 | echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2 | |
18181 | else | |
18182 | if test "$wxUSE_TREECTRL" != "yes"; then | |
18183 | echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2 | |
18184 | else | |
18185 | cat >> confdefs.h <<\EOF | |
18186 | #define wxUSE_DIRDLG 1 | |
18187 | EOF | |
18188 | ||
18189 | fi | |
18190 | fi | |
18191 | fi | |
18192 | ||
18193 | if test "$wxUSE_MSGDLG" = "yes"; then | |
18194 | cat >> confdefs.h <<\EOF | |
18195 | #define wxUSE_MSGDLG 1 | |
18196 | EOF | |
18197 | ||
18198 | fi | |
18199 | ||
18200 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
18201 | cat >> confdefs.h <<\EOF | |
18202 | #define wxUSE_NUMBERDLG 1 | |
18203 | EOF | |
18204 | ||
18205 | fi | |
18206 | ||
18207 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
18208 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
18209 | echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2 | |
18210 | else | |
18211 | cat >> confdefs.h <<\EOF | |
18212 | #define wxUSE_PROGRESSDLG 1 | |
18213 | EOF | |
18214 | ||
18215 | fi | |
18216 | fi | |
18217 | ||
cbca9943 VZ |
18218 | if test "$wxUSE_SPLASH" = "yes"; then |
18219 | cat >> confdefs.h <<\EOF | |
18220 | #define wxUSE_SPLASH 1 | |
18221 | EOF | |
18222 | ||
18223 | fi | |
18224 | ||
1e6feb95 VZ |
18225 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then |
18226 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
18227 | echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2 | |
18228 | else | |
18229 | cat >> confdefs.h <<\EOF | |
18230 | #define wxUSE_STARTUP_TIPS 1 | |
18231 | EOF | |
18232 | ||
18233 | fi | |
18234 | fi | |
18235 | ||
18236 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
18237 | cat >> confdefs.h <<\EOF | |
18238 | #define wxUSE_TEXTDLG 1 | |
18239 | EOF | |
18240 | ||
18241 | fi | |
18242 | ||
b1f5d087 VZ |
18243 | if test "$wxUSE_WIZARDDLG" = "yes"; then |
18244 | cat >> confdefs.h <<\EOF | |
18245 | #define wxUSE_WIZARDDLG 1 | |
18246 | EOF | |
18247 | ||
18248 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
18249 | fi | |
18250 | ||
1e6feb95 | 18251 | |
698dcdb6 VZ |
18252 | if test "$cross_compiling" = "yes"; then |
18253 | OSINFO="\"$host\"" | |
18254 | else | |
18255 | OSINFO=`uname -s -r -m` | |
18256 | OSINFO="\"$OSINFO\"" | |
18257 | fi | |
18258 | ||
18259 | cat >> confdefs.h <<EOF | |
18260 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
18261 | EOF | |
18262 | ||
18263 | ||
18264 | ||
06dda230 VZ |
18265 | if test "x$prefix" != "xNONE"; then |
18266 | wxPREFIX=$prefix | |
18267 | else | |
18268 | wxPREFIX=$ac_default_prefix | |
18269 | fi | |
18270 | ||
7e67ed0d | 18271 | cat >> confdefs.h <<EOF |
06dda230 | 18272 | #define wxINSTALL_PREFIX "$wxPREFIX" |
7e67ed0d VZ |
18273 | EOF |
18274 | ||
18275 | ||
18276 | ||
698dcdb6 | 18277 | |
3a922bb4 | 18278 | |
f11bdd03 | 18279 | if test "$wxUSE_MAC" = 1 ; then |
3d63bc3a | 18280 | LDFLAGS="$LDFLAGS -framework Carbon -framework System" |
698dcdb6 | 18281 | fi |
3a922bb4 | 18282 | |
3d63bc3a RL |
18283 | |
18284 | LIBS="$ZLIB_LINK$POSIX4_LINK$INET_LINK$WCHAR_LINK$THREADS_LINK$DL_LINK -lm$LIBS" | |
18285 | ||
698dcdb6 | 18286 | if test "$wxUSE_GUI" = "yes"; then |
3d63bc3a RL |
18287 | |
18288 | LIBS=" $GUI_TK_LIBRARY$PNG_LINK$JPEG_LINK$TIFF_LINK$FREETYPE_LINK$LIBS" | |
3a922bb4 RL |
18289 | |
18290 | ||
18291 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \ | |
18292 | drawing dynamic erase event exec font image \ | |
18293 | minimal richedit rotate widgets" | |
18294 | ||
3a922bb4 RL |
18295 | CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)" |
18296 | else | |
18297 | SAMPLES_SUBDIRS="console" | |
698dcdb6 VZ |
18298 | fi |
18299 | ||
698dcdb6 | 18300 | |
d714471b | 18301 | INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} -I\${top_srcdir}/include \ |
3e44f09d VZ |
18302 | $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \ |
18303 | $FREETYPE_INCLUDE $TOOLKIT_INCLUDE" | |
698dcdb6 | 18304 | |
63e7762e | 18305 | if test "$wxUSE_GTK" = 1; then |
3d63bc3a | 18306 | WXCONFIG_INCLUDE= |
698dcdb6 VZ |
18307 | else |
18308 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
18309 | fi | |
18310 | ||
18311 | if test "$GXX" = yes ; then | |
18312 | CXXWARNINGS="-Wall" | |
18313 | fi | |
3d63bc3a | 18314 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG$PROFILE $OPTIMISE $INCLUDES" |
698dcdb6 VZ |
18315 | |
18316 | CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` | |
18317 | CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
18318 | ||
3d63bc3a | 18319 | LDFLAGS="$LDFLAGS$PROFILE" |
698dcdb6 | 18320 | |
698dcdb6 VZ |
18321 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" |
18322 | ||
18323 | ||
18324 | ||
18325 | ||
18326 | ||
18327 | ||
18328 | ||
18329 | ||
18330 | ||
18331 | ||
18332 | ||
18333 | ||
18334 | ||
18335 | ||
18336 | ||
18337 | ||
18338 | ||
18339 | ||
18340 | ||
18341 | ||
18342 | ||
18343 | ||
18344 | ||
18345 | ||
18346 | ||
18347 | ||
18348 | ||
18349 | ||
18350 | ||
18351 | ||
18352 | ||
18353 | ||
18354 | ||
18355 | ||
18356 | ||
18357 | ||
18358 | ||
18359 | ||
18360 | ||
18361 | ||
18362 | ||
18363 | ||
18364 | ||
18365 | ||
18366 | ||
18367 | ||
18368 | ||
18369 | ||
18370 | ||
18371 | ||
18372 | ||
18373 | ||
18374 | ||
18375 | ||
18376 | ||
18377 | ||
18378 | ||
18379 | ||
18380 | ||
18381 | ||
18382 | ||
18383 | ||
18384 | ||
18385 | ||
18386 | ||
18387 | ||
18388 | ||
32832908 | 18389 | |
2f51a9ec GD |
18390 | |
18391 | ||
18392 | ||
18393 | ||
f6bcfd97 | 18394 | |
dad6c0ea | 18395 | |
caa2c79b | 18396 | |
3711412e | 18397 | |
1e6feb95 VZ |
18398 | |
18399 | ||
0f3f1cbc | 18400 | |
18dbb1f6 | 18401 | |
77e13408 | 18402 | |
10f2d63a VZ |
18403 | |
18404 | ||
698dcdb6 | 18405 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
3d63bc3a | 18406 | echo "configure:18407: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
698dcdb6 VZ |
18407 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
18408 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
18409 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 18410 | else |
698dcdb6 | 18411 | cat > conftestmake <<\EOF |
10f2d63a VZ |
18412 | all: |
18413 | @echo 'ac_maketemp="${MAKE}"' | |
18414 | EOF | |
18415 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
698dcdb6 | 18416 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
10f2d63a VZ |
18417 | if test -n "$ac_maketemp"; then |
18418 | eval ac_cv_prog_make_${ac_make}_set=yes | |
18419 | else | |
18420 | eval ac_cv_prog_make_${ac_make}_set=no | |
18421 | fi | |
698dcdb6 | 18422 | rm -f conftestmake |
10f2d63a VZ |
18423 | fi |
18424 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
698dcdb6 | 18425 | echo "$ac_t""yes" 1>&6 |
10f2d63a VZ |
18426 | SET_MAKE= |
18427 | else | |
698dcdb6 | 18428 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
18429 | SET_MAKE="MAKE=${MAKE-make}" |
18430 | fi | |
18431 | ||
698dcdb6 | 18432 | |
3a922bb4 RL |
18433 | if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then |
18434 | mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h | |
00cf1208 | 18435 | fi |
665bbe97 | 18436 | |
698dcdb6 | 18437 | |
10f2d63a | 18438 | |
2224580a | 18439 | if test "$wxUSE_GUI" = "yes"; then |
ec90f5e5 | 18440 | wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS |
e8482f24 GL |
18441 | wx_cv_path_ifs=$PATH_IFS |
18442 | wx_cv_program_ext=$PROGRAM_EXT | |
18443 | wx_cv_target_library=$WX_TARGET_LIBRARY | |
7b6058cd | 18444 | wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL |
3711412e | 18445 | wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE |
93a20a27 | 18446 | export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \ |
7b6058cd | 18447 | wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype |
698dcdb6 | 18448 | subdirs="demos samples utils contrib" |
2224580a VZ |
18449 | |
18450 | fi | |
10f2d63a | 18451 | |
698dcdb6 VZ |
18452 | trap '' 1 2 15 |
18453 | cat > confcache <<\EOF | |
10f2d63a VZ |
18454 | # This file is a shell script that caches the results of configure |
18455 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
18456 | # scripts and configure runs. It is not useful on other systems. |
18457 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 18458 | # |
698dcdb6 VZ |
18459 | # By default, configure uses ./config.cache as the cache file, |
18460 | # creating it if it does not exist already. You can give configure | |
18461 | # the --cache-file=FILE option to use a different cache file; that is | |
18462 | # what configure does when it calls configure scripts in | |
18463 | # subdirectories, so they share the cache. | |
18464 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
18465 | # config.status only pays attention to the cache file if you give it the | |
18466 | # --recheck option to rerun configure. | |
10f2d63a | 18467 | # |
698dcdb6 | 18468 | EOF |
10f2d63a VZ |
18469 | # The following way of writing the cache mishandles newlines in values, |
18470 | # but we know of no workaround that is simple, portable, and efficient. | |
18471 | # So, don't put newlines in cache variables' values. | |
18472 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
18473 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
18474 | (set) 2>&1 | |
18475 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
18476 | *ac_space=\ *) | |
18477 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
18478 | # turns \\\\ into \\, and sed turns \\ into \). | |
18479 | sed -n \ | |
18480 | -e "s/'/'\\\\''/g" \ | |
18481 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
18482 | ;; | |
18483 | *) | |
18484 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
18485 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
18486 | ;; | |
18487 | esac >> confcache | |
18488 | if cmp -s $cache_file confcache; then | |
18489 | : | |
18490 | else | |
10f2d63a | 18491 | if test -w $cache_file; then |
698dcdb6 VZ |
18492 | echo "updating cache $cache_file" |
18493 | cat confcache > $cache_file | |
10f2d63a VZ |
18494 | else |
18495 | echo "not updating unwritable cache $cache_file" | |
18496 | fi | |
18497 | fi | |
18498 | rm -f confcache | |
18499 | ||
698dcdb6 VZ |
18500 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
18501 | ||
10f2d63a VZ |
18502 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
18503 | # Let make expand exec_prefix. | |
18504 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
18505 | ||
698dcdb6 VZ |
18506 | # Any assignment to VPATH causes Sun make to only execute |
18507 | # the first set of double-colon rules, so remove it if not needed. | |
18508 | # If there is a colon in the path, we need to keep it. | |
10f2d63a | 18509 | if test "x$srcdir" = x.; then |
698dcdb6 | 18510 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
10f2d63a VZ |
18511 | fi |
18512 | ||
698dcdb6 VZ |
18513 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
18514 | ||
10f2d63a VZ |
18515 | DEFS=-DHAVE_CONFIG_H |
18516 | ||
698dcdb6 | 18517 | # Without the "./", some shells look in PATH for config.status. |
10f2d63a | 18518 | : ${CONFIG_STATUS=./config.status} |
698dcdb6 VZ |
18519 | |
18520 | echo creating $CONFIG_STATUS | |
18521 | rm -f $CONFIG_STATUS | |
18522 | cat > $CONFIG_STATUS <<EOF | |
18523 | #! /bin/sh | |
10f2d63a VZ |
18524 | # Generated automatically by configure. |
18525 | # Run this file to recreate the current configuration. | |
698dcdb6 VZ |
18526 | # This directory was configured as follows, |
18527 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
18528 | # | |
18529 | # $0 $ac_configure_args | |
18530 | # | |
10f2d63a | 18531 | # Compiler output produced by configure, useful for debugging |
698dcdb6 | 18532 | # configure, is in ./config.log if it exists. |
1e487827 | 18533 | |
698dcdb6 VZ |
18534 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
18535 | for ac_option | |
10f2d63a | 18536 | do |
698dcdb6 | 18537 | case "\$ac_option" in |
10f2d63a | 18538 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
698dcdb6 VZ |
18539 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
18540 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
18541 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
18542 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | |
18543 | exit 0 ;; | |
18544 | -help | --help | --hel | --he | --h) | |
18545 | echo "\$ac_cs_usage"; exit 0 ;; | |
18546 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
10f2d63a VZ |
18547 | esac |
18548 | done | |
18549 | ||
698dcdb6 VZ |
18550 | ac_given_srcdir=$srcdir |
18551 | ac_given_INSTALL="$INSTALL" | |
703e0a69 | 18552 | |
698dcdb6 VZ |
18553 | trap 'rm -fr `echo " |
18554 | wx-config | |
18555 | src/make.env | |
18556 | src/makeprog.env | |
18557 | src/makelib.env | |
18558 | Makefile | |
18559 | setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
1e487827 | 18560 | EOF |
698dcdb6 | 18561 | cat >> $CONFIG_STATUS <<EOF |
1e487827 | 18562 | |
698dcdb6 VZ |
18563 | # Protect against being on the right side of a sed subst in config.status. |
18564 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
18565 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
18566 | $ac_vpsub | |
18567 | $extrasub | |
18568 | s%@SHELL@%$SHELL%g | |
18569 | s%@CFLAGS@%$CFLAGS%g | |
18570 | s%@CPPFLAGS@%$CPPFLAGS%g | |
18571 | s%@CXXFLAGS@%$CXXFLAGS%g | |
18572 | s%@FFLAGS@%$FFLAGS%g | |
18573 | s%@DEFS@%$DEFS%g | |
18574 | s%@LDFLAGS@%$LDFLAGS%g | |
18575 | s%@LIBS@%$LIBS%g | |
18576 | s%@exec_prefix@%$exec_prefix%g | |
18577 | s%@prefix@%$prefix%g | |
18578 | s%@program_transform_name@%$program_transform_name%g | |
18579 | s%@bindir@%$bindir%g | |
18580 | s%@sbindir@%$sbindir%g | |
18581 | s%@libexecdir@%$libexecdir%g | |
18582 | s%@datadir@%$datadir%g | |
18583 | s%@sysconfdir@%$sysconfdir%g | |
18584 | s%@sharedstatedir@%$sharedstatedir%g | |
18585 | s%@localstatedir@%$localstatedir%g | |
18586 | s%@libdir@%$libdir%g | |
18587 | s%@includedir@%$includedir%g | |
18588 | s%@oldincludedir@%$oldincludedir%g | |
18589 | s%@infodir@%$infodir%g | |
18590 | s%@mandir@%$mandir%g | |
18591 | s%@host@%$host%g | |
18592 | s%@host_alias@%$host_alias%g | |
18593 | s%@host_cpu@%$host_cpu%g | |
18594 | s%@host_vendor@%$host_vendor%g | |
18595 | s%@host_os@%$host_os%g | |
18596 | s%@target@%$target%g | |
18597 | s%@target_alias@%$target_alias%g | |
18598 | s%@target_cpu@%$target_cpu%g | |
18599 | s%@target_vendor@%$target_vendor%g | |
18600 | s%@target_os@%$target_os%g | |
18601 | s%@build@%$build%g | |
18602 | s%@build_alias@%$build_alias%g | |
18603 | s%@build_cpu@%$build_cpu%g | |
18604 | s%@build_vendor@%$build_vendor%g | |
18605 | s%@build_os@%$build_os%g | |
18606 | s%@CC@%$CC%g | |
18607 | s%@CPP@%$CPP%g | |
18608 | s%@CXX@%$CXX%g | |
698dcdb6 VZ |
18609 | s%@RANLIB@%$RANLIB%g |
18610 | s%@AR@%$AR%g | |
18611 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
d6853540 | 18612 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
6054113a | 18613 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
698dcdb6 VZ |
18614 | s%@STRIP@%$STRIP%g |
18615 | s%@YACC@%$YACC%g | |
18616 | s%@LEX@%$LEX%g | |
18617 | s%@LEXLIB@%$LEXLIB%g | |
18618 | s%@LN_S@%$LN_S%g | |
18619 | s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g | |
698dcdb6 VZ |
18620 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g |
18621 | s%@GTK_LIBS@%$GTK_LIBS%g | |
8168de4c | 18622 | s%@GTK_CONFIG@%$GTK_CONFIG%g |
698dcdb6 VZ |
18623 | s%@X_CFLAGS@%$X_CFLAGS%g |
18624 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
18625 | s%@X_LIBS@%$X_LIBS%g | |
18626 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
3a922bb4 | 18627 | s%@RESCOMP@%$RESCOMP%g |
698dcdb6 | 18628 | s%@DEREZ@%$DEREZ%g |
3a922bb4 | 18629 | s%@CXXCPP@%$CXXCPP%g |
698dcdb6 VZ |
18630 | s%@LEX_STEM@%$LEX_STEM%g |
18631 | s%@PATH_IFS@%$PATH_IFS%g | |
18632 | s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g | |
18633 | s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g | |
18634 | s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g | |
698dcdb6 VZ |
18635 | s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g |
18636 | s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g | |
77e13408 | 18637 | s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g |
698dcdb6 VZ |
18638 | s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g |
18639 | s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g | |
18640 | s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g | |
698dcdb6 | 18641 | s%@PROGRAM_EXT@%$PROGRAM_EXT%g |
698dcdb6 VZ |
18642 | s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g |
18643 | s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g | |
698dcdb6 VZ |
18644 | s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g |
18645 | s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g | |
18646 | s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g | |
698dcdb6 VZ |
18647 | s%@WX_ALL@%$WX_ALL%g |
18648 | s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g | |
18649 | s%@SHARED_LD@%$SHARED_LD%g | |
18650 | s%@PIC_FLAG@%$PIC_FLAG%g | |
698dcdb6 VZ |
18651 | s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g |
18652 | s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g | |
3a922bb4 RL |
18653 | s%@SONAME_FLAGS@%$SONAME_FLAGS%g |
18654 | s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g | |
698dcdb6 VZ |
18655 | s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g |
18656 | s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g | |
18657 | s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g | |
18658 | s%@USE_GUI@%$USE_GUI%g | |
18659 | s%@AFMINSTALL@%$AFMINSTALL%g | |
18660 | s%@TOOLKIT@%$TOOLKIT%g | |
698dcdb6 | 18661 | s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g |
1e6feb95 | 18662 | s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g |
3a922bb4 RL |
18663 | s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g |
18664 | s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g | |
18665 | s%@cross_compiling@%$cross_compiling%g | |
18666 | s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g | |
18667 | s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g | |
698dcdb6 VZ |
18668 | s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g |
18669 | s%@ALL_OBJECTS@%$ALL_OBJECTS%g | |
698dcdb6 VZ |
18670 | s%@GUIDIST@%$GUIDIST%g |
18671 | s%@PORT_FILES@%$PORT_FILES%g | |
18672 | s%@DISTDIR@%$DISTDIR%g | |
18673 | s%@RPM_SPEC@%$RPM_SPEC%g | |
18674 | s%@RPM_FILES@%$RPM_FILES%g | |
698dcdb6 | 18675 | s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g |
698dcdb6 | 18676 | s%@OPENGL_LIBS@%$OPENGL_LIBS%g |
3d63bc3a | 18677 | s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g |
698dcdb6 | 18678 | s%@EXTRADEFS@%$EXTRADEFS%g |
698dcdb6 | 18679 | s%@RESFLAGS@%$RESFLAGS%g |
3a922bb4 | 18680 | s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g |
d08b457b | 18681 | s%@WX_RESOURCES_MACOSX@%$WX_RESOURCES_MACOSX%g |
e23081de | 18682 | s%@WX_RESOURCES_MACOSX_COMPILED@%$WX_RESOURCES_MACOSX_COMPILED%g |
698dcdb6 VZ |
18683 | s%@LIBWXMACRES@%$LIBWXMACRES%g |
18684 | s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g | |
2baaf735 | 18685 | s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g |
698dcdb6 VZ |
18686 | s%@DLLTOOL@%$DLLTOOL%g |
18687 | s%@AS@%$AS%g | |
18688 | s%@NM@%$NM%g | |
18689 | s%@LD@%$LD%g | |
18690 | s%@MAKEINFO@%$MAKEINFO%g | |
18691 | s%@SET_MAKE@%$SET_MAKE%g | |
18692 | s%@subdirs@%$subdirs%g | |
1e487827 | 18693 | |
1e487827 | 18694 | CEOF |
1e487827 VS |
18695 | EOF |
18696 | ||
698dcdb6 VZ |
18697 | cat >> $CONFIG_STATUS <<\EOF |
18698 | ||
18699 | # Split the substitutions into bite-sized pieces for seds with | |
18700 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
18701 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
18702 | ac_file=1 # Number of current file. | |
18703 | ac_beg=1 # First line for current file. | |
18704 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
18705 | ac_more_lines=: | |
18706 | ac_sed_cmds="" | |
18707 | while $ac_more_lines; do | |
18708 | if test $ac_beg -gt 1; then | |
18709 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
18710 | else | |
18711 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
18712 | fi | |
18713 | if test ! -s conftest.s$ac_file; then | |
18714 | ac_more_lines=false | |
18715 | rm -f conftest.s$ac_file | |
18716 | else | |
18717 | if test -z "$ac_sed_cmds"; then | |
18718 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
10f2d63a | 18719 | else |
698dcdb6 | 18720 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
10f2d63a | 18721 | fi |
698dcdb6 VZ |
18722 | ac_file=`expr $ac_file + 1` |
18723 | ac_beg=$ac_end | |
18724 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
10f2d63a | 18725 | fi |
698dcdb6 VZ |
18726 | done |
18727 | if test -z "$ac_sed_cmds"; then | |
18728 | ac_sed_cmds=cat | |
18729 | fi | |
18730 | EOF | |
10f2d63a | 18731 | |
698dcdb6 VZ |
18732 | cat >> $CONFIG_STATUS <<EOF |
18733 | ||
18734 | CONFIG_FILES=\${CONFIG_FILES-"wx-config | |
18735 | src/make.env | |
18736 | src/makeprog.env | |
18737 | src/makelib.env | |
18738 | Makefile | |
18739 | "} | |
10f2d63a | 18740 | EOF |
698dcdb6 VZ |
18741 | cat >> $CONFIG_STATUS <<\EOF |
18742 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
10f2d63a | 18743 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
698dcdb6 VZ |
18744 | case "$ac_file" in |
18745 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
18746 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
18747 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
18748 | esac |
18749 | ||
698dcdb6 | 18750 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
1e487827 | 18751 | |
698dcdb6 VZ |
18752 | # Remove last slash and all that follows it. Not all systems have dirname. |
18753 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
18754 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
18755 | # The file is in a subdirectory. | |
18756 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
18757 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
10f2d63a | 18758 | # A "../" for each directory in $ac_dir_suffix. |
698dcdb6 | 18759 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
10f2d63a VZ |
18760 | else |
18761 | ac_dir_suffix= ac_dots= | |
18762 | fi | |
18763 | ||
698dcdb6 VZ |
18764 | case "$ac_given_srcdir" in |
18765 | .) srcdir=. | |
18766 | if test -z "$ac_dots"; then top_srcdir=. | |
18767 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
18768 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
10f2d63a | 18769 | *) # Relative path. |
698dcdb6 VZ |
18770 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
18771 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
10f2d63a VZ |
18772 | esac |
18773 | ||
698dcdb6 VZ |
18774 | case "$ac_given_INSTALL" in |
18775 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
18776 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
10f2d63a VZ |
18777 | esac |
18778 | ||
698dcdb6 VZ |
18779 | echo creating "$ac_file" |
18780 | rm -f "$ac_file" | |
18781 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
18782 | case "$ac_file" in | |
18783 | *Makefile*) ac_comsub="1i\\ | |
18784 | # $configure_input" ;; | |
18785 | *) ac_comsub= ;; | |
18786 | esac | |
10f2d63a | 18787 | |
698dcdb6 VZ |
18788 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
18789 | sed -e "$ac_comsub | |
18790 | s%@configure_input@%$configure_input%g | |
18791 | s%@srcdir@%$srcdir%g | |
18792 | s%@top_srcdir@%$top_srcdir%g | |
18793 | s%@INSTALL@%$INSTALL%g | |
18794 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
18795 | fi; done | |
18796 | rm -f conftest.s* | |
10f2d63a VZ |
18797 | |
18798 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
18799 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
18800 | # | |
18801 | # ac_d sets the value in "#define NAME VALUE" lines. | |
698dcdb6 VZ |
18802 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
18803 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
18804 | ac_dC='\3' | |
18805 | ac_dD='%g' | |
18806 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
18807 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
18808 | ac_uB='\([ ]\)%\1#\2define\3' | |
10f2d63a | 18809 | ac_uC=' ' |
698dcdb6 VZ |
18810 | ac_uD='\4%g' |
18811 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
18812 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
18813 | ac_eB='$%\1#\2define\3' | |
18814 | ac_eC=' ' | |
18815 | ac_eD='%g' | |
10f2d63a | 18816 | |
698dcdb6 VZ |
18817 | if test "${CONFIG_HEADERS+set}" != set; then |
18818 | EOF | |
18819 | cat >> $CONFIG_STATUS <<EOF | |
18820 | CONFIG_HEADERS="setup.h:setup.h.in" | |
18821 | EOF | |
18822 | cat >> $CONFIG_STATUS <<\EOF | |
18823 | fi | |
18824 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
10f2d63a | 18825 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
698dcdb6 VZ |
18826 | case "$ac_file" in |
18827 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
18828 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
18829 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
18830 | esac |
18831 | ||
698dcdb6 VZ |
18832 | echo creating $ac_file |
18833 | ||
18834 | rm -f conftest.frag conftest.in conftest.out | |
18835 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
18836 | cat $ac_file_inputs > conftest.in | |
18837 | ||
18838 | EOF | |
18839 | ||
18840 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
18841 | # the proper values into config.h.in to produce config.h. And first: | |
18842 | # Protect against being on the right side of a sed subst in config.status. | |
18843 | # Protect against being in an unquoted here document in config.status. | |
18844 | rm -f conftest.vals | |
18845 | cat > conftest.hdr <<\EOF | |
18846 | s/[\\&%]/\\&/g | |
18847 | s%[\\$`]%\\&%g | |
18848 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
18849 | s%ac_d%ac_u%gp | |
18850 | s%ac_u%ac_e%gp | |
18851 | EOF | |
18852 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
18853 | rm -f conftest.hdr | |
10f2d63a VZ |
18854 | |
18855 | # This sed command replaces #undef with comments. This is necessary, for | |
18856 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
18857 | # on some systems where configure will not decide to define it. | |
698dcdb6 VZ |
18858 | cat >> conftest.vals <<\EOF |
18859 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
10f2d63a VZ |
18860 | EOF |
18861 | ||
698dcdb6 VZ |
18862 | # Break up conftest.vals because some shells have a limit on |
18863 | # the size of here documents, and old seds have small limits too. | |
10f2d63a VZ |
18864 | |
18865 | rm -f conftest.tail | |
698dcdb6 | 18866 | while : |
10f2d63a | 18867 | do |
698dcdb6 VZ |
18868 | ac_lines=`grep -c . conftest.vals` |
18869 | # grep -c gives empty output for an empty file on some AIX systems. | |
18870 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
18871 | # Write a limited-size here document to conftest.frag. | |
18872 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
18873 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
10f2d63a | 18874 | echo 'CEOF |
698dcdb6 VZ |
18875 | sed -f conftest.frag conftest.in > conftest.out |
18876 | rm -f conftest.in | |
18877 | mv conftest.out conftest.in | |
18878 | ' >> $CONFIG_STATUS | |
18879 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
18880 | rm -f conftest.vals | |
18881 | mv conftest.tail conftest.vals | |
10f2d63a | 18882 | done |
698dcdb6 VZ |
18883 | rm -f conftest.vals |
18884 | ||
18885 | cat >> $CONFIG_STATUS <<\EOF | |
18886 | rm -f conftest.frag conftest.h | |
18887 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
18888 | cat conftest.in >> conftest.h | |
18889 | rm -f conftest.in | |
18890 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
18891 | echo "$ac_file is unchanged" | |
18892 | rm -f conftest.h | |
10f2d63a | 18893 | else |
698dcdb6 VZ |
18894 | # Remove last slash and all that follows it. Not all systems have dirname. |
18895 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
10f2d63a | 18896 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
698dcdb6 VZ |
18897 | # The file is in a subdirectory. |
18898 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
10f2d63a | 18899 | fi |
698dcdb6 VZ |
18900 | rm -f $ac_file |
18901 | mv conftest.h $ac_file | |
10f2d63a | 18902 | fi |
698dcdb6 VZ |
18903 | fi; done |
18904 | ||
10f2d63a | 18905 | EOF |
698dcdb6 | 18906 | cat >> $CONFIG_STATUS <<EOF |
10f2d63a | 18907 | |
3a922bb4 | 18908 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}" |
698dcdb6 VZ |
18909 | LN_S="${LN_S}" |
18910 | ||
18911 | ||
18912 | EOF | |
18913 | cat >> $CONFIG_STATUS <<\EOF | |
10f2d63a | 18914 | |
652d930d | 18915 | if test ! -h wx-config; then |
991a5759 | 18916 | chmod +x wx-config |
3a922bb4 RL |
18917 | mv wx-config wx${TOOLCHAIN_NAME}-config |
18918 | ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config | |
991a5759 | 18919 | fi |
665bbe97 | 18920 | |
00cf1208 RR |
18921 | if test ! -d lib; then |
18922 | mkdir lib | |
18923 | fi | |
18924 | if test ! -d lib/wx; then | |
18925 | mkdir lib/wx | |
18926 | fi | |
18927 | if test ! -d lib/wx/include; then | |
18928 | mkdir lib/wx/include | |
18929 | fi | |
3a922bb4 RL |
18930 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then |
18931 | mkdir lib/wx/include/${TOOLCHAIN_NAME} | |
00cf1208 | 18932 | fi |
3a922bb4 RL |
18933 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then |
18934 | mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx | |
00cf1208 RR |
18935 | fi |
18936 | if test -f setup.h; then | |
3a922bb4 | 18937 | mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h |
00cf1208 | 18938 | fi |
698dcdb6 VZ |
18939 | |
18940 | exit 0 | |
10f2d63a VZ |
18941 | EOF |
18942 | chmod +x $CONFIG_STATUS | |
698dcdb6 VZ |
18943 | rm -fr confdefs* $ac_clean_files |
18944 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
10f2d63a | 18945 | |
2224580a VZ |
18946 | if test "$no_recursion" != yes; then |
18947 | ||
18948 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
18949 | ac_sub_configure_args= | |
18950 | ac_prev= | |
18951 | for ac_arg in $ac_configure_args; do | |
18952 | if test -n "$ac_prev"; then | |
18953 | ac_prev= | |
18954 | continue | |
18955 | fi | |
698dcdb6 | 18956 | case "$ac_arg" in |
2224580a VZ |
18957 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
18958 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
18959 | ac_prev=cache_file ;; | |
18960 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
698dcdb6 | 18961 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
2224580a VZ |
18962 | ;; |
18963 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
18964 | ac_prev=srcdir ;; | |
18965 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
18966 | ;; | |
18967 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
18968 | esac | |
18969 | done | |
18970 | ||
698dcdb6 | 18971 | for ac_config_dir in demos samples utils contrib; do |
2224580a VZ |
18972 | |
18973 | # Do not complain, so a configure script can configure whichever | |
18974 | # parts of a large source tree are present. | |
698dcdb6 VZ |
18975 | if test ! -d $srcdir/$ac_config_dir; then |
18976 | continue | |
18977 | fi | |
18978 | ||
18979 | echo configuring in $ac_config_dir | |
2224580a | 18980 | |
698dcdb6 | 18981 | case "$srcdir" in |
2224580a VZ |
18982 | .) ;; |
18983 | *) | |
698dcdb6 VZ |
18984 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; |
18985 | else | |
18986 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
18987 | fi | |
18988 | ;; | |
2224580a VZ |
18989 | esac |
18990 | ||
18991 | ac_popdir=`pwd` | |
698dcdb6 | 18992 | cd $ac_config_dir |
2224580a | 18993 | |
698dcdb6 VZ |
18994 | # A "../" for each directory in /$ac_config_dir. |
18995 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
2224580a | 18996 | |
698dcdb6 | 18997 | case "$srcdir" in |
2224580a VZ |
18998 | .) # No --srcdir option. We are building in place. |
18999 | ac_sub_srcdir=$srcdir ;; | |
698dcdb6 VZ |
19000 | /*) # Absolute path. |
19001 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
2224580a | 19002 | *) # Relative path. |
698dcdb6 | 19003 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; |
2224580a VZ |
19004 | esac |
19005 | ||
19006 | # Check for guested configure; otherwise get Cygnus style configure. | |
698dcdb6 VZ |
19007 | if test -f $ac_sub_srcdir/configure; then |
19008 | ac_sub_configure=$ac_sub_srcdir/configure | |
2224580a VZ |
19009 | elif test -f $ac_sub_srcdir/configure.in; then |
19010 | ac_sub_configure=$ac_configure | |
19011 | else | |
698dcdb6 | 19012 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 |
2224580a VZ |
19013 | ac_sub_configure= |
19014 | fi | |
19015 | ||
19016 | # The recursion is here. | |
19017 | if test -n "$ac_sub_configure"; then | |
698dcdb6 | 19018 | |
2224580a | 19019 | # Make the cache file name correct relative to the subdirectory. |
698dcdb6 VZ |
19020 | case "$cache_file" in |
19021 | /*) ac_sub_cache_file=$cache_file ;; | |
2224580a | 19022 | *) # Relative path. |
698dcdb6 | 19023 | ac_sub_cache_file="$ac_dots$cache_file" ;; |
2224580a | 19024 | esac |
698dcdb6 VZ |
19025 | case "$ac_given_INSTALL" in |
19026 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
19027 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
19028 | esac | |
2224580a | 19029 | |
698dcdb6 | 19030 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" |
2224580a | 19031 | # The eval makes quoting arguments work. |
698dcdb6 VZ |
19032 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir |
19033 | then : | |
19034 | else | |
19035 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
19036 | fi | |
2224580a VZ |
19037 | fi |
19038 | ||
19039 | cd $ac_popdir | |
19040 | done | |
19041 | fi | |
19042 | ||
698dcdb6 | 19043 |