]>
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 |
a3a584a7 VZ |
171 | --enable-textbuf use wxTextBuffer class" |
172 | ac_help="$ac_help | |
173 | --enable-textfile use wxTextFile class" | |
698dcdb6 | 174 | ac_help="$ac_help |
8168de4c | 175 | --enable-fontmap use font encodings conversion classes" |
1e6feb95 | 176 | ac_help="$ac_help |
8168de4c | 177 | --enable-unicode compile wxString with Unicode support" |
698dcdb6 | 178 | ac_help="$ac_help |
8168de4c | 179 | --enable-wxprintfv use wxWindows implementation of vprintf()" |
698dcdb6 | 180 | ac_help="$ac_help |
8168de4c | 181 | --enable-std_iostreams use standard C++ stream classes" |
698dcdb6 | 182 | ac_help="$ac_help |
8168de4c | 183 | --enable-filesystem use virtual file systems classes" |
698dcdb6 | 184 | ac_help="$ac_help |
8168de4c | 185 | --enable-fs_inet use virtual HTTP/FTP filesystems" |
698dcdb6 | 186 | ac_help="$ac_help |
8168de4c | 187 | --enable-fs_zip use virtual ZIP filesystems" |
698dcdb6 | 188 | ac_help="$ac_help |
8168de4c | 189 | --enable-zipstream use wxZipInputStream" |
698dcdb6 | 190 | ac_help="$ac_help |
8168de4c | 191 | --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException" |
698dcdb6 | 192 | ac_help="$ac_help |
8168de4c | 193 | --enable-snglinst use wxSingleInstanceChecker class" |
698dcdb6 | 194 | ac_help="$ac_help |
8168de4c | 195 | --enable-mimetypes use wxMimeTypesManager" |
3e44f09d | 196 | ac_help="$ac_help |
b3e8d00a | 197 | --enable-sysoptions use wxSystemOptions" |
1e6feb95 | 198 | ac_help="$ac_help |
8168de4c | 199 | --enable-threads use threads" |
698dcdb6 | 200 | ac_help="$ac_help |
8168de4c | 201 | --enable-serial use class serialization" |
698dcdb6 | 202 | ac_help="$ac_help |
8168de4c | 203 | --enable-docview use document view architecture" |
698dcdb6 | 204 | ac_help="$ac_help |
3379ed37 | 205 | --enable-help use help subsystem" |
29fd3c0c VS |
206 | ac_help="$ac_help |
207 | --enable-mshtmlhelp use MS HTML Help (win32)" | |
3379ed37 VZ |
208 | ac_help="$ac_help |
209 | --enable-html use wxHTML sub-library" | |
210 | ac_help="$ac_help | |
211 | --enable-htmlhelp use wxHTML-based help" | |
698dcdb6 | 212 | ac_help="$ac_help |
8168de4c | 213 | --enable-constraints use layout-constraints system" |
698dcdb6 | 214 | ac_help="$ac_help |
8168de4c | 215 | --enable-printarch use printing architecture" |
698dcdb6 | 216 | ac_help="$ac_help |
8168de4c | 217 | --enable-mdi use multiple document interface architecture" |
698dcdb6 | 218 | ac_help="$ac_help |
8168de4c | 219 | --enable-loggui use standard GUI logger" |
1e6feb95 | 220 | ac_help="$ac_help |
8168de4c | 221 | --enable-logwin use wxLogWindow" |
1e6feb95 | 222 | ac_help="$ac_help |
8168de4c | 223 | --enable-postscript use wxPostscriptDC device context (default for gtk+)" |
698dcdb6 | 224 | ac_help="$ac_help |
8168de4c | 225 | --enable-prologio use Prolog IO library" |
698dcdb6 | 226 | ac_help="$ac_help |
8168de4c | 227 | --enable-resources use wxWindows resources" |
698dcdb6 | 228 | ac_help="$ac_help |
8168de4c | 229 | --enable-xresources use X resources for save (default for gtk+)" |
698dcdb6 | 230 | ac_help="$ac_help |
8168de4c | 231 | --enable-clipboard use wxClipboard classes" |
698dcdb6 | 232 | ac_help="$ac_help |
8168de4c | 233 | --enable-dnd use Drag'n'Drop classes" |
698dcdb6 | 234 | ac_help="$ac_help |
8168de4c | 235 | --enable-metafile use win32 metafiles" |
698dcdb6 | 236 | ac_help="$ac_help |
24176f2c | 237 | --enable-treelayout use wxTreeLayout classes" |
698dcdb6 | 238 | ac_help="$ac_help |
8168de4c | 239 | --enable-controls use all usual controls" |
698dcdb6 | 240 | ac_help="$ac_help |
8168de4c | 241 | --enable-accel use accelerators" |
698dcdb6 | 242 | ac_help="$ac_help |
8168de4c | 243 | --enable-button use wxButton class" |
698dcdb6 | 244 | ac_help="$ac_help |
8168de4c | 245 | --enable-bmpbutton use wxBitmapButton class" |
698dcdb6 | 246 | ac_help="$ac_help |
8168de4c | 247 | --enable-calendar use wxCalendarCtrl class" |
1e6feb95 | 248 | ac_help="$ac_help |
8168de4c | 249 | --enable-caret use wxCaret class" |
1e6feb95 | 250 | ac_help="$ac_help |
8168de4c | 251 | --enable-checkbox use wxCheckBox class" |
698dcdb6 | 252 | ac_help="$ac_help |
8168de4c | 253 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class" |
698dcdb6 | 254 | ac_help="$ac_help |
8168de4c | 255 | --enable-choice use wxChoice class" |
698dcdb6 | 256 | ac_help="$ac_help |
8168de4c | 257 | --enable-combobox use wxComboBox classes" |
698dcdb6 | 258 | ac_help="$ac_help |
8168de4c | 259 | --enable-gauge use wxGauge class" |
698dcdb6 | 260 | ac_help="$ac_help |
8168de4c | 261 | --enable-grid use wxGrid class" |
698dcdb6 | 262 | ac_help="$ac_help |
8168de4c | 263 | --enable-newgrid use new wxGrid class" |
698dcdb6 | 264 | ac_help="$ac_help |
8168de4c | 265 | --enable-imaglist use wxImageList class" |
698dcdb6 | 266 | ac_help="$ac_help |
8168de4c | 267 | --enable-listbox use wxListBox class" |
698dcdb6 | 268 | ac_help="$ac_help |
8168de4c | 269 | --enable-listctrl use wxListCtrl class" |
698dcdb6 | 270 | ac_help="$ac_help |
8168de4c | 271 | --enable-notebook use wxNotebook class" |
24176f2c GD |
272 | ac_help="$ac_help |
273 | --enable-propsheet use wxPropertySheet class" | |
698dcdb6 | 274 | ac_help="$ac_help |
8168de4c | 275 | --enable-radiobox use wxRadioBox class" |
698dcdb6 | 276 | ac_help="$ac_help |
8168de4c | 277 | --enable-radiobtn use wxRadioButton class" |
698dcdb6 | 278 | ac_help="$ac_help |
8168de4c | 279 | --enable-sash use wxSashWindow class" |
698dcdb6 | 280 | ac_help="$ac_help |
8168de4c | 281 | --enable-scrollbar use wxScrollBar class and scrollable windows" |
698dcdb6 | 282 | ac_help="$ac_help |
8168de4c | 283 | --enable-slider use wxSlider class" |
698dcdb6 | 284 | ac_help="$ac_help |
8168de4c | 285 | --enable-spinbtn use wxSpinButton class" |
698dcdb6 | 286 | ac_help="$ac_help |
8168de4c | 287 | --enable-spinctrl use wxSpinCtrl class" |
698dcdb6 | 288 | ac_help="$ac_help |
8168de4c | 289 | --enable-splitter use wxSplitterWindow class" |
698dcdb6 | 290 | ac_help="$ac_help |
8168de4c | 291 | --enable-statbmp use wxStaticBitmap class" |
698dcdb6 | 292 | ac_help="$ac_help |
8168de4c | 293 | --enable-statbox use wxStaticBox class" |
698dcdb6 | 294 | ac_help="$ac_help |
8168de4c | 295 | --enable-statline use wxStaticLine class" |
698dcdb6 | 296 | ac_help="$ac_help |
8168de4c | 297 | --enable-stattext use wxStaticText class" |
1e6feb95 | 298 | ac_help="$ac_help |
8168de4c | 299 | --enable-statusbar use wxStatusBar class" |
698dcdb6 | 300 | ac_help="$ac_help |
8168de4c | 301 | --enable-tabdialog use wxTabControl class" |
698dcdb6 | 302 | ac_help="$ac_help |
8168de4c | 303 | --enable-textctrl use wxTextCtrl class" |
1e6feb95 | 304 | ac_help="$ac_help |
8168de4c | 305 | --enable-togglebtn use wxToggleButton class" |
698dcdb6 | 306 | ac_help="$ac_help |
8168de4c | 307 | --enable-toolbar use wxToolBar class" |
698dcdb6 | 308 | ac_help="$ac_help |
8168de4c | 309 | --enable-tbarnative use native wxToolBar class" |
698dcdb6 | 310 | ac_help="$ac_help |
8168de4c | 311 | --enable-tbarsmpl use wxToolBarSimple class" |
698dcdb6 | 312 | ac_help="$ac_help |
8168de4c | 313 | --enable-treectrl use wxTreeCtrl class" |
9f41d601 RR |
314 | ac_help="$ac_help |
315 | --enable-popupwin use wxPopUpWindow class" | |
698dcdb6 | 316 | ac_help="$ac_help |
b3e8d00a | 317 | --enable-commondlg use all common dialogs" |
698dcdb6 | 318 | ac_help="$ac_help |
8168de4c | 319 | --enable-choicedlg use wxChoiceDialog" |
1e6feb95 | 320 | ac_help="$ac_help |
8168de4c | 321 | --enable-coldlg use wxColourDialog" |
1e6feb95 | 322 | ac_help="$ac_help |
8168de4c | 323 | --enable-filedlg use wxFileDialog" |
8db37e06 VZ |
324 | ac_help="$ac_help |
325 | --enable-finddlg use wxFindReplaceDialog" | |
1e6feb95 | 326 | ac_help="$ac_help |
8168de4c | 327 | --enable-fontdlg use wxFontDialog" |
1e6feb95 | 328 | ac_help="$ac_help |
8168de4c | 329 | --enable-dirdlg use wxDirDialog" |
698dcdb6 | 330 | ac_help="$ac_help |
8168de4c | 331 | --enable-msgdlg use wxMessageDialog" |
1e6feb95 | 332 | ac_help="$ac_help |
8168de4c | 333 | --enable-numberdlg use wxNumberEntryDialog" |
cbca9943 VZ |
334 | ac_help="$ac_help |
335 | --enable-splash use wxSplashScreen" | |
1e6feb95 | 336 | ac_help="$ac_help |
8168de4c | 337 | --enable-textdlg use wxTextDialog" |
698dcdb6 | 338 | ac_help="$ac_help |
8168de4c | 339 | --enable-tipdlg use startup tips" |
698dcdb6 | 340 | ac_help="$ac_help |
8168de4c | 341 | --enable-progressdlg use wxProgressDialog" |
b1f5d087 VZ |
342 | ac_help="$ac_help |
343 | --enable-wizarddlg use wxWizard" | |
698dcdb6 | 344 | ac_help="$ac_help |
8168de4c | 345 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes" |
1e6feb95 | 346 | ac_help="$ac_help |
8168de4c | 347 | --enable-miniframe use wxMiniFrame class" |
698dcdb6 | 348 | ac_help="$ac_help |
8168de4c | 349 | --enable-tooltips use wxToolTip class" |
698dcdb6 | 350 | ac_help="$ac_help |
8168de4c | 351 | --enable-splines use spline drawing code" |
698dcdb6 | 352 | ac_help="$ac_help |
8168de4c | 353 | --enable-validators use wxValidator and derived classes" |
698dcdb6 | 354 | ac_help="$ac_help |
8168de4c | 355 | --enable-busyinfo use wxBusyInfo" |
698dcdb6 | 356 | ac_help="$ac_help |
b3e8d00a | 357 | --enable-joystick use wxJoystick (Linux only)" |
698dcdb6 | 358 | ac_help="$ac_help |
8168de4c | 359 | --enable-metafiles use wxMetaFile (Windows only)" |
24fd6d87 VZ |
360 | ac_help="$ac_help |
361 | --enable-dragimage use wxDragImage" | |
edae8572 VZ |
362 | ac_help="$ac_help |
363 | --enable-palette use wxPalette class" | |
1e6feb95 | 364 | ac_help="$ac_help |
8168de4c | 365 | --enable-image use wxImage class" |
698dcdb6 | 366 | ac_help="$ac_help |
8168de4c | 367 | --enable-gif use gif images (GIF file format)" |
698dcdb6 | 368 | ac_help="$ac_help |
8168de4c | 369 | --enable-pcx use pcx images (PCX file format)" |
698dcdb6 | 370 | ac_help="$ac_help |
8168de4c | 371 | --enable-pnm use pnm images (PNM file format)" |
698dcdb6 | 372 | ac_help="$ac_help |
8168de4c | 373 | --enable-xpm use xpm images (XPM file format)" |
698dcdb6 VZ |
374 | ac_help="$ac_help |
375 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
376 | ac_help="$ac_help | |
377 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
378 | ac_help="$ac_help | |
379 | --disable-gtktest Do not try to compile and run a test GTK program" | |
380 | ac_help="$ac_help | |
381 | --with-x use the X Window System" | |
10f2d63a VZ |
382 | |
383 | # Initialize some variables set by options. | |
384 | # The variables have the same names as the options, with | |
385 | # dashes changed to underlines. | |
698dcdb6 VZ |
386 | build=NONE |
387 | cache_file=./config.cache | |
10f2d63a | 388 | exec_prefix=NONE |
698dcdb6 | 389 | host=NONE |
10f2d63a | 390 | no_create= |
698dcdb6 | 391 | nonopt=NONE |
10f2d63a VZ |
392 | no_recursion= |
393 | prefix=NONE | |
394 | program_prefix=NONE | |
395 | program_suffix=NONE | |
396 | program_transform_name=s,x,x, | |
397 | silent= | |
398 | site= | |
399 | srcdir= | |
698dcdb6 | 400 | target=NONE |
10f2d63a VZ |
401 | verbose= |
402 | x_includes=NONE | |
403 | x_libraries=NONE | |
404 | bindir='${exec_prefix}/bin' | |
405 | sbindir='${exec_prefix}/sbin' | |
406 | libexecdir='${exec_prefix}/libexec' | |
407 | datadir='${prefix}/share' | |
408 | sysconfdir='${prefix}/etc' | |
409 | sharedstatedir='${prefix}/com' | |
410 | localstatedir='${prefix}/var' | |
411 | libdir='${exec_prefix}/lib' | |
412 | includedir='${prefix}/include' | |
413 | oldincludedir='/usr/include' | |
414 | infodir='${prefix}/info' | |
415 | mandir='${prefix}/man' | |
416 | ||
698dcdb6 VZ |
417 | # Initialize some other variables. |
418 | subdirs= | |
419 | MFLAGS= MAKEFLAGS= | |
420 | SHELL=${CONFIG_SHELL-/bin/sh} | |
421 | # Maximum number of lines to put in a shell here document. | |
422 | ac_max_here_lines=12 | |
10f2d63a VZ |
423 | |
424 | ac_prev= | |
425 | for ac_option | |
426 | do | |
698dcdb6 | 427 | |
10f2d63a VZ |
428 | # If the previous option needs an argument, assign it. |
429 | if test -n "$ac_prev"; then | |
430 | eval "$ac_prev=\$ac_option" | |
431 | ac_prev= | |
432 | continue | |
433 | fi | |
434 | ||
698dcdb6 VZ |
435 | case "$ac_option" in |
436 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
437 | *) ac_optarg= ;; | |
438 | esac | |
10f2d63a VZ |
439 | |
440 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
441 | ||
698dcdb6 | 442 | case "$ac_option" in |
10f2d63a VZ |
443 | |
444 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
445 | ac_prev=bindir ;; | |
446 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
698dcdb6 | 447 | bindir="$ac_optarg" ;; |
10f2d63a VZ |
448 | |
449 | -build | --build | --buil | --bui | --bu) | |
698dcdb6 | 450 | ac_prev=build ;; |
10f2d63a | 451 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
698dcdb6 | 452 | build="$ac_optarg" ;; |
10f2d63a VZ |
453 | |
454 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
455 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
456 | ac_prev=cache_file ;; | |
457 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
458 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
698dcdb6 | 459 | cache_file="$ac_optarg" ;; |
10f2d63a VZ |
460 | |
461 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
462 | ac_prev=datadir ;; | |
463 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
464 | | --da=*) | |
698dcdb6 | 465 | datadir="$ac_optarg" ;; |
10f2d63a VZ |
466 | |
467 | -disable-* | --disable-*) | |
698dcdb6 | 468 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
10f2d63a | 469 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
470 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
471 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
472 | fi | |
473 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
474 | eval "enable_${ac_feature}=no" ;; | |
10f2d63a VZ |
475 | |
476 | -enable-* | --enable-*) | |
698dcdb6 | 477 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
10f2d63a | 478 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
479 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
480 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
481 | fi | |
482 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
483 | case "$ac_option" in | |
484 | *=*) ;; | |
10f2d63a VZ |
485 | *) ac_optarg=yes ;; |
486 | esac | |
698dcdb6 | 487 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
10f2d63a VZ |
488 | |
489 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
490 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
491 | | --exec | --exe | --ex) | |
492 | ac_prev=exec_prefix ;; | |
493 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
494 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
495 | | --exec=* | --exe=* | --ex=*) | |
698dcdb6 | 496 | exec_prefix="$ac_optarg" ;; |
10f2d63a VZ |
497 | |
498 | -gas | --gas | --ga | --g) | |
499 | # Obsolete; use --with-gas. | |
500 | with_gas=yes ;; | |
501 | ||
698dcdb6 VZ |
502 | -help | --help | --hel | --he) |
503 | # Omit some internal or obsolete options to make the list less imposing. | |
504 | # This message is too long to be a string in the A/UX 3.1 sh. | |
505 | cat << EOF | |
506 | Usage: configure [options] [host] | |
507 | Options: [defaults in brackets after descriptions] | |
508 | Configuration: | |
509 | --cache-file=FILE cache test results in FILE | |
510 | --help print this message | |
511 | --no-create do not create output files | |
512 | --quiet, --silent do not print \`checking...' messages | |
513 | --version print the version of autoconf that created configure | |
514 | Directory and file names: | |
515 | --prefix=PREFIX install architecture-independent files in PREFIX | |
516 | [$ac_default_prefix] | |
517 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
518 | [same as prefix] | |
519 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
520 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
521 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
522 | --datadir=DIR read-only architecture-independent data in DIR | |
523 | [PREFIX/share] | |
524 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
525 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
526 | [PREFIX/com] | |
527 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
528 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
529 | --includedir=DIR C header files in DIR [PREFIX/include] | |
530 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
531 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
532 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
533 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
534 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
535 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
536 | --program-transform-name=PROGRAM | |
537 | run sed PROGRAM on installed program names | |
538 | EOF | |
539 | cat << EOF | |
540 | Host type: | |
541 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
542 | --host=HOST configure for HOST [guessed] | |
543 | --target=TARGET configure for TARGET [TARGET=HOST] | |
544 | Features and packages: | |
545 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
546 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
547 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
548 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
549 | --x-includes=DIR X include files are in DIR | |
550 | --x-libraries=DIR X library files are in DIR | |
551 | EOF | |
552 | if test -n "$ac_help"; then | |
553 | echo "--enable and --with options recognized:$ac_help" | |
554 | fi | |
555 | exit 0 ;; | |
10f2d63a VZ |
556 | |
557 | -host | --host | --hos | --ho) | |
698dcdb6 | 558 | ac_prev=host ;; |
10f2d63a | 559 | -host=* | --host=* | --hos=* | --ho=*) |
698dcdb6 | 560 | host="$ac_optarg" ;; |
10f2d63a VZ |
561 | |
562 | -includedir | --includedir | --includedi | --included | --include \ | |
563 | | --includ | --inclu | --incl | --inc) | |
564 | ac_prev=includedir ;; | |
565 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
566 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
698dcdb6 | 567 | includedir="$ac_optarg" ;; |
10f2d63a VZ |
568 | |
569 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
570 | ac_prev=infodir ;; | |
571 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
698dcdb6 | 572 | infodir="$ac_optarg" ;; |
10f2d63a VZ |
573 | |
574 | -libdir | --libdir | --libdi | --libd) | |
575 | ac_prev=libdir ;; | |
576 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
698dcdb6 | 577 | libdir="$ac_optarg" ;; |
10f2d63a VZ |
578 | |
579 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
580 | | --libexe | --libex | --libe) | |
581 | ac_prev=libexecdir ;; | |
582 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
583 | | --libexe=* | --libex=* | --libe=*) | |
698dcdb6 | 584 | libexecdir="$ac_optarg" ;; |
10f2d63a VZ |
585 | |
586 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
587 | | --localstate | --localstat | --localsta | --localst \ | |
588 | | --locals | --local | --loca | --loc | --lo) | |
589 | ac_prev=localstatedir ;; | |
590 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
591 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
592 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
698dcdb6 | 593 | localstatedir="$ac_optarg" ;; |
10f2d63a VZ |
594 | |
595 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
596 | ac_prev=mandir ;; | |
597 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
698dcdb6 | 598 | mandir="$ac_optarg" ;; |
10f2d63a VZ |
599 | |
600 | -nfp | --nfp | --nf) | |
601 | # Obsolete; use --without-fp. | |
602 | with_fp=no ;; | |
603 | ||
604 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
605 | | --no-cr | --no-c) | |
606 | no_create=yes ;; | |
607 | ||
608 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
609 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
610 | no_recursion=yes ;; | |
611 | ||
612 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
613 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
614 | | --oldin | --oldi | --old | --ol | --o) | |
615 | ac_prev=oldincludedir ;; | |
616 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
617 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
618 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
698dcdb6 | 619 | oldincludedir="$ac_optarg" ;; |
10f2d63a VZ |
620 | |
621 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
622 | ac_prev=prefix ;; | |
623 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
698dcdb6 | 624 | prefix="$ac_optarg" ;; |
10f2d63a VZ |
625 | |
626 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
627 | | --program-pre | --program-pr | --program-p) | |
628 | ac_prev=program_prefix ;; | |
629 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
630 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
698dcdb6 | 631 | program_prefix="$ac_optarg" ;; |
10f2d63a VZ |
632 | |
633 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
634 | | --program-suf | --program-su | --program-s) | |
635 | ac_prev=program_suffix ;; | |
636 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
637 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
698dcdb6 | 638 | program_suffix="$ac_optarg" ;; |
10f2d63a VZ |
639 | |
640 | -program-transform-name | --program-transform-name \ | |
641 | | --program-transform-nam | --program-transform-na \ | |
642 | | --program-transform-n | --program-transform- \ | |
643 | | --program-transform | --program-transfor \ | |
644 | | --program-transfo | --program-transf \ | |
645 | | --program-trans | --program-tran \ | |
646 | | --progr-tra | --program-tr | --program-t) | |
647 | ac_prev=program_transform_name ;; | |
648 | -program-transform-name=* | --program-transform-name=* \ | |
649 | | --program-transform-nam=* | --program-transform-na=* \ | |
650 | | --program-transform-n=* | --program-transform-=* \ | |
651 | | --program-transform=* | --program-transfor=* \ | |
652 | | --program-transfo=* | --program-transf=* \ | |
653 | | --program-trans=* | --program-tran=* \ | |
654 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
698dcdb6 | 655 | program_transform_name="$ac_optarg" ;; |
10f2d63a VZ |
656 | |
657 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
658 | | -silent | --silent | --silen | --sile | --sil) | |
659 | silent=yes ;; | |
660 | ||
661 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
662 | ac_prev=sbindir ;; | |
663 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
664 | | --sbi=* | --sb=*) | |
698dcdb6 | 665 | sbindir="$ac_optarg" ;; |
10f2d63a VZ |
666 | |
667 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
668 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
669 | | --sharedst | --shareds | --shared | --share | --shar \ | |
670 | | --sha | --sh) | |
671 | ac_prev=sharedstatedir ;; | |
672 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
673 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
674 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
675 | | --sha=* | --sh=*) | |
698dcdb6 | 676 | sharedstatedir="$ac_optarg" ;; |
10f2d63a VZ |
677 | |
678 | -site | --site | --sit) | |
679 | ac_prev=site ;; | |
680 | -site=* | --site=* | --sit=*) | |
698dcdb6 | 681 | site="$ac_optarg" ;; |
10f2d63a VZ |
682 | |
683 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
684 | ac_prev=srcdir ;; | |
685 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
698dcdb6 | 686 | srcdir="$ac_optarg" ;; |
10f2d63a VZ |
687 | |
688 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
689 | | --syscon | --sysco | --sysc | --sys | --sy) | |
690 | ac_prev=sysconfdir ;; | |
691 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
692 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
698dcdb6 | 693 | sysconfdir="$ac_optarg" ;; |
10f2d63a VZ |
694 | |
695 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
698dcdb6 | 696 | ac_prev=target ;; |
10f2d63a | 697 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
698dcdb6 | 698 | target="$ac_optarg" ;; |
10f2d63a VZ |
699 | |
700 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
701 | verbose=yes ;; | |
702 | ||
698dcdb6 VZ |
703 | -version | --version | --versio | --versi | --vers) |
704 | echo "configure generated by autoconf version 2.13" | |
705 | exit 0 ;; | |
10f2d63a VZ |
706 | |
707 | -with-* | --with-*) | |
698dcdb6 | 708 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
10f2d63a | 709 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
710 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
711 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
712 | fi | |
10f2d63a | 713 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
698dcdb6 VZ |
714 | case "$ac_option" in |
715 | *=*) ;; | |
10f2d63a VZ |
716 | *) ac_optarg=yes ;; |
717 | esac | |
698dcdb6 | 718 | eval "with_${ac_package}='$ac_optarg'" ;; |
10f2d63a VZ |
719 | |
720 | -without-* | --without-*) | |
698dcdb6 | 721 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
10f2d63a | 722 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
723 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
724 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
725 | fi | |
726 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
727 | eval "with_${ac_package}=no" ;; | |
10f2d63a VZ |
728 | |
729 | --x) | |
730 | # Obsolete; use --with-x. | |
731 | with_x=yes ;; | |
732 | ||
733 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
734 | | --x-incl | --x-inc | --x-in | --x-i) | |
735 | ac_prev=x_includes ;; | |
736 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
737 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
698dcdb6 | 738 | x_includes="$ac_optarg" ;; |
10f2d63a VZ |
739 | |
740 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
741 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
742 | ac_prev=x_libraries ;; | |
743 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
744 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
698dcdb6 | 745 | x_libraries="$ac_optarg" ;; |
10f2d63a | 746 | |
698dcdb6 | 747 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
10f2d63a VZ |
748 | ;; |
749 | ||
750 | *) | |
698dcdb6 VZ |
751 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
752 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
753 | fi | |
754 | if test "x$nonopt" != xNONE; then | |
755 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
756 | fi | |
757 | nonopt="$ac_option" | |
10f2d63a VZ |
758 | ;; |
759 | ||
760 | esac | |
761 | done | |
762 | ||
763 | if test -n "$ac_prev"; then | |
698dcdb6 VZ |
764 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
765 | fi | |
766 | ||
767 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
768 | ||
769 | # File descriptor usage: | |
770 | # 0 standard input | |
771 | # 1 file creation | |
772 | # 2 errors and warnings | |
773 | # 3 some systems may open it to /dev/tty | |
774 | # 4 used on the Kubota Titan | |
775 | # 6 checking for... messages and results | |
776 | # 5 compiler messages saved in config.log | |
777 | if test "$silent" = yes; then | |
778 | exec 6>/dev/null | |
779 | else | |
780 | exec 6>&1 | |
10f2d63a | 781 | fi |
698dcdb6 VZ |
782 | exec 5>./config.log |
783 | ||
784 | echo "\ | |
785 | This file contains any messages produced by compilers while | |
786 | running configure, to aid debugging if configure makes a mistake. | |
787 | " 1>&5 | |
10f2d63a | 788 | |
698dcdb6 VZ |
789 | # Strip out --no-create and --no-recursion so they do not pile up. |
790 | # Also quote any args containing shell metacharacters. | |
791 | ac_configure_args= | |
792 | for ac_arg | |
10f2d63a | 793 | do |
698dcdb6 VZ |
794 | case "$ac_arg" in |
795 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
796 | | --no-cr | --no-c) ;; | |
797 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
798 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
799 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
800 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
801 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
10f2d63a VZ |
802 | esac |
803 | done | |
804 | ||
698dcdb6 VZ |
805 | # NLS nuisances. |
806 | # Only set these to C if already set. These must not be set unconditionally | |
807 | # because not all systems understand e.g. LANG=C (notably SCO). | |
808 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
809 | # Non-C LC_CTYPE values break the ctype check. | |
810 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
811 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
812 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
813 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
10f2d63a | 814 | |
698dcdb6 VZ |
815 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
816 | rm -rf conftest* confdefs.h | |
817 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
818 | echo > confdefs.h | |
10f2d63a | 819 | |
698dcdb6 VZ |
820 | # A filename unique to this package, relative to the directory that |
821 | # configure is in, which we can look for to find out if srcdir is correct. | |
822 | ac_unique_file=wx-config.in | |
10f2d63a VZ |
823 | |
824 | # Find the source files, if location was not specified. | |
825 | if test -z "$srcdir"; then | |
826 | ac_srcdir_defaulted=yes | |
827 | # Try the directory containing this script, then its parent. | |
828 | ac_prog=$0 | |
698dcdb6 | 829 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
10f2d63a VZ |
830 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
831 | srcdir=$ac_confdir | |
832 | if test ! -r $srcdir/$ac_unique_file; then | |
833 | srcdir=.. | |
834 | fi | |
835 | else | |
836 | ac_srcdir_defaulted=no | |
837 | fi | |
838 | if test ! -r $srcdir/$ac_unique_file; then | |
839 | if test "$ac_srcdir_defaulted" = yes; then | |
698dcdb6 | 840 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
10f2d63a | 841 | else |
698dcdb6 | 842 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
10f2d63a VZ |
843 | fi |
844 | fi | |
698dcdb6 | 845 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
10f2d63a VZ |
846 | |
847 | # Prefer explicitly selected file to automatically selected ones. | |
848 | if test -z "$CONFIG_SITE"; then | |
849 | if test "x$prefix" != xNONE; then | |
850 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
851 | else | |
852 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
853 | fi | |
854 | fi | |
855 | for ac_site_file in $CONFIG_SITE; do | |
856 | if test -r "$ac_site_file"; then | |
698dcdb6 | 857 | echo "loading site script $ac_site_file" |
10f2d63a VZ |
858 | . "$ac_site_file" |
859 | fi | |
860 | done | |
861 | ||
862 | if test -r "$cache_file"; then | |
698dcdb6 VZ |
863 | echo "loading cache $cache_file" |
864 | . $cache_file | |
10f2d63a | 865 | else |
698dcdb6 VZ |
866 | echo "creating cache $cache_file" |
867 | > $cache_file | |
10f2d63a VZ |
868 | fi |
869 | ||
870 | ac_ext=c | |
698dcdb6 | 871 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 872 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
873 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
874 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
875 | cross_compiling=$ac_cv_prog_cc_cross | |
876 | ||
877 | ac_exeext= | |
878 | ac_objext=o | |
879 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
880 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
881 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
882 | ac_n= ac_c=' | |
883 | ' ac_t=' ' | |
884 | else | |
885 | ac_n=-n ac_c= ac_t= | |
886 | fi | |
10f2d63a | 887 | else |
698dcdb6 | 888 | ac_n= ac_c='\c' ac_t= |
10f2d63a | 889 | fi |
698dcdb6 VZ |
890 | |
891 | ||
10f2d63a | 892 | |
7c66a493 VZ |
893 | ac_aux_dir= |
894 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
895 | if test -f $ac_dir/install-sh; then | |
896 | ac_aux_dir=$ac_dir | |
897 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
898 | break | |
899 | elif test -f $ac_dir/install.sh; then | |
900 | ac_aux_dir=$ac_dir | |
901 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
902 | break | |
903 | fi | |
904 | done | |
905 | if test -z "$ac_aux_dir"; then | |
698dcdb6 | 906 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
7c66a493 | 907 | fi |
698dcdb6 VZ |
908 | ac_config_guess=$ac_aux_dir/config.guess |
909 | ac_config_sub=$ac_aux_dir/config.sub | |
910 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
703e0a69 | 911 | |
698dcdb6 VZ |
912 | |
913 | # Do some error checking and defaulting for the host and target type. | |
914 | # The inputs are: | |
915 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
916 | # | |
917 | # The rules are: | |
918 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
919 | # same time. | |
920 | # 2. Host defaults to nonopt. | |
921 | # 3. If nonopt is not specified, then host defaults to the current host, | |
922 | # as determined by config.guess. | |
923 | # 4. Target and build default to nonopt. | |
924 | # 5. If nonopt is not specified, then target and build default to host. | |
7c66a493 VZ |
925 | |
926 | # The aliases save the names the user supplied, while $host etc. | |
927 | # will get canonicalized. | |
698dcdb6 VZ |
928 | case $host---$target---$nonopt in |
929 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
930 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
931 | esac | |
932 | ||
933 | ||
934 | # Make sure we can run config.sub. | |
935 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
936 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
937 | fi | |
938 | ||
939 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
a3a584a7 | 940 | echo "configure:941: checking host system type" >&5 |
698dcdb6 VZ |
941 | |
942 | host_alias=$host | |
943 | case "$host_alias" in | |
944 | NONE) | |
945 | case $nonopt in | |
946 | NONE) | |
947 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
948 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
949 | fi ;; | |
950 | *) host_alias=$nonopt ;; | |
951 | esac ;; | |
952 | esac | |
953 | ||
954 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
955 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
956 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
957 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
958 | echo "$ac_t""$host" 1>&6 | |
959 | ||
960 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
a3a584a7 | 961 | echo "configure:962: checking target system type" >&5 |
698dcdb6 VZ |
962 | |
963 | target_alias=$target | |
964 | case "$target_alias" in | |
965 | NONE) | |
966 | case $nonopt in | |
967 | NONE) target_alias=$host_alias ;; | |
968 | *) target_alias=$nonopt ;; | |
969 | esac ;; | |
970 | esac | |
971 | ||
972 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
973 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
974 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
975 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
976 | echo "$ac_t""$target" 1>&6 | |
977 | ||
978 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
a3a584a7 | 979 | echo "configure:980: checking build system type" >&5 |
698dcdb6 VZ |
980 | |
981 | build_alias=$build | |
982 | case "$build_alias" in | |
983 | NONE) | |
984 | case $nonopt in | |
985 | NONE) build_alias=$host_alias ;; | |
986 | *) build_alias=$nonopt ;; | |
987 | esac ;; | |
988 | esac | |
989 | ||
990 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
991 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
992 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
993 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
994 | echo "$ac_t""$build" 1>&6 | |
995 | ||
996 | test "$host_alias" != "$target_alias" && | |
7c66a493 VZ |
997 | test "$program_prefix$program_suffix$program_transform_name" = \ |
998 | NONENONEs,x,x, && | |
999 | program_prefix=${target_alias}- | |
1000 | ||
698dcdb6 VZ |
1001 | |
1002 | ||
10f2d63a | 1003 | WX_MAJOR_VERSION_NUMBER=2 |
37d403aa | 1004 | WX_MINOR_VERSION_NUMBER=3 |
6c01ec02 | 1005 | WX_RELEASE_NUMBER=2 |
10f2d63a | 1006 | |
10f2d63a | 1007 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER |
10f2d63a | 1008 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER |
6426998c | 1009 | |
978f1259 RL |
1010 | WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER |
1011 | ||
6c01ec02 | 1012 | WX_CURRENT=1 |
6426998c RL |
1013 | WX_REVISION=0 |
1014 | WX_AGE=0 | |
1015 | ||
698dcdb6 VZ |
1016 | |
1017 | ||
10f2d63a VZ |
1018 | USE_UNIX=1 |
1019 | USE_WIN32=0 | |
b12915c1 | 1020 | USE_BEOS=0 |
1216f52d | 1021 | USE_MAC=0 |
b12915c1 | 1022 | |
10f2d63a VZ |
1023 | USE_LINUX= |
1024 | USE_SGI= | |
1025 | USE_HPUX= | |
1026 | USE_SYSV= | |
1027 | USE_SVR4= | |
1028 | USE_AIX= | |
1029 | USE_SUN= | |
1030 | USE_SOLARIS= | |
1031 | USE_SUNOS= | |
1032 | USE_ALPHA= | |
1033 | USE_OSF= | |
1034 | USE_BSD= | |
f11bdd03 | 1035 | USE_DARWIN= |
10f2d63a | 1036 | USE_FREEBSD= |
95c8801c | 1037 | USE_OPENBSD= |
f6bcfd97 | 1038 | USE_NETBSD= |
10f2d63a VZ |
1039 | USE_VMS= |
1040 | USE_ULTRIX= | |
10f2d63a VZ |
1041 | USE_DATA_GENERAL= |
1042 | ||
ab9b9eab VZ |
1043 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 |
1044 | ||
77e13408 | 1045 | ALL_TOOLKITS="GTK MAC MGL MOTIF MSW PM WINE" |
10f2d63a VZ |
1046 | |
1047 | DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1048 | DEFAULT_wxUSE_MAC=0 |
1049 | DEFAULT_wxUSE_MGL=0 | |
10f2d63a VZ |
1050 | DEFAULT_wxUSE_MOTIF=0 |
1051 | DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1052 | DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1053 | DEFAULT_wxUSE_WINE=0 |
10f2d63a VZ |
1054 | |
1055 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1056 | DEFAULT_DEFAULT_wxUSE_MAC=0 |
1057 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
10f2d63a VZ |
1058 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 |
1059 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1060 | DEFAULT_DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1061 | DEFAULT_DEFAULT_wxUSE_WINE=0 |
10f2d63a | 1062 | |
d6a55c4b | 1063 | PROGRAM_EXT= |
3a922bb4 | 1064 | SO_SUFFIX=so |
d6a55c4b | 1065 | |
10f2d63a VZ |
1066 | case "${host}" in |
1067 | *-hp-hpux* ) | |
1068 | USE_HPUX=1 | |
1069 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1070 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
3a922bb4 | 1071 | SO_SUFFIX=sl |
698dcdb6 | 1072 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1073 | #define __HPUX__ 1 |
1074 | EOF | |
1075 | ||
1076 | ;; | |
1077 | *-*-linux* ) | |
1078 | USE_LINUX=1 | |
698dcdb6 | 1079 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1080 | #define __LINUX__ 1 |
1081 | EOF | |
1082 | ||
1083 | TMP=`uname -m` | |
1084 | if test "x$TMP" = "xalpha"; then | |
1085 | USE_ALPHA=1 | |
698dcdb6 | 1086 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1087 | #define __ALPHA__ 1 |
1088 | EOF | |
1089 | ||
1090 | fi | |
1091 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1092 | ;; | |
1093 | *-*-irix5* | *-*-irix6* ) | |
1094 | USE_SGI=1 | |
1095 | USE_SVR4=1 | |
698dcdb6 | 1096 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1097 | #define __SGI__ 1 |
1098 | EOF | |
1099 | ||
698dcdb6 | 1100 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1101 | #define __SVR4__ 1 |
1102 | EOF | |
1103 | ||
1104 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1105 | ;; | |
1106 | *-*-solaris2* ) | |
1107 | USE_SUN=1 | |
1108 | USE_SOLARIS=1 | |
1109 | USE_SVR4=1 | |
698dcdb6 | 1110 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1111 | #define __SUN__ 1 |
1112 | EOF | |
1113 | ||
698dcdb6 | 1114 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1115 | #define __SOLARIS__ 1 |
1116 | EOF | |
1117 | ||
698dcdb6 | 1118 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1119 | #define __SVR4__ 1 |
1120 | EOF | |
1121 | ||
1122 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1123 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1124 | ;; |
1125 | *-*-sunos4* ) | |
1126 | USE_SUN=1 | |
1127 | USE_SUNOS=1 | |
1128 | USE_BSD=1 | |
698dcdb6 | 1129 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1130 | #define __SUN__ 1 |
1131 | EOF | |
1132 | ||
698dcdb6 | 1133 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1134 | #define __SUNOS__ 1 |
1135 | EOF | |
1136 | ||
698dcdb6 | 1137 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1138 | #define __BSD__ 1 |
1139 | EOF | |
1140 | ||
1141 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1142 | ;; | |
f6bcfd97 | 1143 | *-*-freebsd*) |
10f2d63a VZ |
1144 | USE_BSD=1 |
1145 | USE_FREEBSD=1 | |
698dcdb6 | 1146 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1147 | #define __FREEBSD__ 1 |
1148 | EOF | |
1149 | ||
698dcdb6 | 1150 | cat >> confdefs.h <<\EOF |
10f2d63a | 1151 | #define __BSD__ 1 |
95c8801c VS |
1152 | EOF |
1153 | ||
1154 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1155 | ;; | |
1156 | *-*-openbsd*) | |
1157 | USE_BSD=1 | |
1158 | USE_OPENBSD=1 | |
698dcdb6 | 1159 | cat >> confdefs.h <<\EOF |
95c8801c VS |
1160 | #define __FREEBSD__ 1 |
1161 | EOF | |
1162 | ||
698dcdb6 | 1163 | cat >> confdefs.h <<\EOF |
95c8801c | 1164 | #define __OPENBSD__ 1 |
f6bcfd97 BP |
1165 | EOF |
1166 | ||
1167 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1168 | ;; | |
1169 | *-*-netbsd*) | |
1170 | USE_BSD=1 | |
1171 | USE_NETBSD=1 | |
698dcdb6 | 1172 | cat >> confdefs.h <<\EOF |
f6bcfd97 BP |
1173 | #define __FREEBSD__ 1 |
1174 | EOF | |
1175 | ||
698dcdb6 | 1176 | cat >> confdefs.h <<\EOF |
f6bcfd97 | 1177 | #define __NETBSD__ 1 |
10f2d63a VZ |
1178 | EOF |
1179 | ||
1180 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1181 | ;; | |
1182 | *-*-osf* ) | |
1183 | USE_ALPHA=1 | |
1184 | USE_OSF=1 | |
698dcdb6 | 1185 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1186 | #define __ALPHA__ 1 |
1187 | EOF | |
1188 | ||
698dcdb6 | 1189 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1190 | #define __OSF__ 1 |
1191 | EOF | |
1192 | ||
1193 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
f6bcfd97 | 1194 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1195 | ;; |
1196 | *-*-dgux5* ) | |
1197 | USE_ALPHA=1 | |
1198 | USE_SVR4=1 | |
698dcdb6 | 1199 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1200 | #define __ALPHA__ 1 |
1201 | EOF | |
1202 | ||
698dcdb6 | 1203 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1204 | #define __SVR4__ 1 |
1205 | EOF | |
1206 | ||
1207 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1208 | ;; | |
1209 | *-*-sysv5* ) | |
1210 | USE_SYSV=1 | |
1211 | USE_SVR4=1 | |
698dcdb6 | 1212 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1213 | #define __SYSV__ 1 |
1214 | EOF | |
1215 | ||
698dcdb6 | 1216 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1217 | #define __SVR4__ 1 |
1218 | EOF | |
1219 | ||
1220 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1221 | ;; | |
1222 | *-*-aix* ) | |
1223 | USE_AIX=1 | |
1224 | USE_SYSV=1 | |
1225 | USE_SVR4=1 | |
698dcdb6 | 1226 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1227 | #define __AIX__ 1 |
1228 | EOF | |
1229 | ||
698dcdb6 | 1230 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1231 | #define __SYSV__ 1 |
1232 | EOF | |
1233 | ||
698dcdb6 | 1234 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1235 | #define __SVR4__ 1 |
1236 | EOF | |
1237 | ||
1238 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1239 | ;; | |
1240 | ||
1c8183e2 | 1241 | *-*-cygwin* | *-*-mingw32* ) |
10f2d63a VZ |
1242 | USE_UNIX=0 |
1243 | USE_WIN32=1 | |
3a922bb4 | 1244 | SO_SUFFIX=dll |
698dcdb6 | 1245 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1246 | #define __WIN32__ 1 |
1247 | EOF | |
1248 | ||
698dcdb6 | 1249 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1250 | #define __WIN95__ 1 |
1251 | EOF | |
1252 | ||
698dcdb6 | 1253 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1254 | #define __WINDOWS__ 1 |
1255 | EOF | |
1256 | ||
698dcdb6 | 1257 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1258 | #define __GNUWIN32__ 1 |
1259 | EOF | |
1260 | ||
698dcdb6 | 1261 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1262 | #define STRICT 1 |
1263 | EOF | |
1264 | ||
698dcdb6 | 1265 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1266 | #define WINVER 0x0400 |
1267 | EOF | |
1268 | ||
cf27ef00 | 1269 | PROGRAM_EXT=".exe" |
7b7a7637 | 1270 | RESCOMP=windres |
10f2d63a VZ |
1271 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
1272 | ;; | |
1273 | ||
6fa882bd | 1274 | *-pc-os2_emx | *-pc-os2-emx ) |
698dcdb6 | 1275 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1276 | #define __EMX__ 1 |
1277 | EOF | |
1278 | ||
cf27ef00 | 1279 | PROGRAM_EXT=".exe" |
e07802fc | 1280 | DEFAULT_DEFAULT_wxUSE_PM=1 |
10f2d63a VZ |
1281 | ;; |
1282 | ||
d08b457b GD |
1283 | powerpc-*-darwin* ) |
1284 | USE_BSD=1 | |
f11bdd03 | 1285 | USE_DARWIN=1 |
3a922bb4 | 1286 | SO_SUFFIX=dylib |
698dcdb6 | 1287 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1288 | #define __BSD__ 1 |
b4085ce6 GD |
1289 | EOF |
1290 | ||
698dcdb6 | 1291 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1292 | #define __DARWIN__ 1 |
d08b457b GD |
1293 | EOF |
1294 | ||
1295 | cat >> confdefs.h <<\EOF | |
1296 | #define __POWERPC__ 1 | |
b4085ce6 GD |
1297 | EOF |
1298 | ||
1299 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1300 | ;; | |
1301 | ||
b12915c1 VZ |
1302 | *-*-beos* ) |
1303 | USE_BEOS=1 | |
698dcdb6 | 1304 | cat >> confdefs.h <<\EOF |
b12915c1 VZ |
1305 | #define __BEOS__ 1 |
1306 | EOF | |
1307 | ||
1308 | ;; | |
1309 | ||
10f2d63a | 1310 | *) |
698dcdb6 | 1311 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } |
10f2d63a VZ |
1312 | esac |
1313 | ||
1314 | if test "$USE_UNIX" = 1 ; then | |
b12915c1 | 1315 | wxUSE_UNIX=yes |
698dcdb6 | 1316 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1317 | #define __UNIX__ 1 |
1318 | EOF | |
1319 | ||
10f2d63a VZ |
1320 | fi |
1321 | ||
2389f33b VZ |
1322 | if test "$USE_LINUX" = 1; then |
1323 | echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6 | |
94054c1d | 1324 | echo "configure:1325: checking for glibc 2.1 or later" >&5 |
2389f33b VZ |
1325 | if eval "test \"`echo '$''{'wx_lib_glibc21'+set}'`\" = set"; then |
1326 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1327 | else | |
1328 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 1329 | #line 1330 "configure" |
2389f33b VZ |
1330 | #include "confdefs.h" |
1331 | #include <features.h> | |
1332 | int main() { | |
1333 | ||
1334 | #if !__GLIBC_PREREQ(2, 1) | |
1335 | #error not glibc2.1 | |
1336 | #endif | |
1337 | ||
1338 | ; return 0; } | |
1339 | EOF | |
94054c1d | 1340 | if { (eval echo configure:1341: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2389f33b VZ |
1341 | rm -rf conftest* |
1342 | ||
1343 | wx_lib_glibc21=yes | |
1344 | ||
1345 | else | |
1346 | echo "configure: failed program was:" >&5 | |
1347 | cat conftest.$ac_ext >&5 | |
1348 | rm -rf conftest* | |
1349 | ||
1350 | wx_lib_glibc21=no | |
1351 | ||
1352 | ||
1353 | fi | |
1354 | rm -f conftest* | |
1355 | ||
1356 | fi | |
1357 | ||
1358 | echo "$ac_t""$wx_lib_glibc21" 1>&6 | |
2389f33b VZ |
1359 | if test "$wx_lib_glibc21" = "yes"; then |
1360 | cat >> confdefs.h <<\EOF | |
1361 | #define wxHAVE_GLIBC2 1 | |
1362 | EOF | |
1363 | ||
1364 | fi | |
1365 | fi | |
10f2d63a | 1366 | |
1e487827 | 1367 | |
1e487827 | 1368 | |
6232543b | 1369 | |
10f2d63a VZ |
1370 | wx_arg_cache_file="configarg.cache" |
1371 | echo "loading argument cache $wx_arg_cache_file" | |
1372 | rm -f ${wx_arg_cache_file}.tmp | |
1373 | touch ${wx_arg_cache_file}.tmp | |
1374 | touch ${wx_arg_cache_file} | |
698dcdb6 | 1375 | |
10f2d63a VZ |
1376 | |
1377 | DEBUG_CONFIGURE=0 | |
1378 | if test $DEBUG_CONFIGURE = 1; then | |
1e6feb95 VZ |
1379 | DEFAULT_wxUSE_UNIVERSAL=no |
1380 | ||
10f2d63a VZ |
1381 | DEFAULT_wxUSE_THREADS=yes |
1382 | ||
1383 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1384 | DEFAULT_wxUSE_SONAME=no |
1e6feb95 | 1385 | DEFAULT_wxUSE_OPTIMISE=no |
10f2d63a VZ |
1386 | DEFAULT_wxUSE_PROFILE=no |
1387 | DEFAULT_wxUSE_NO_DEPS=no | |
f676c7ff MB |
1388 | DEFAULT_wxUSE_NO_RTTI=yes |
1389 | DEFAULT_wxUSE_NO_EXCEPTIONS=yes | |
10f2d63a VZ |
1390 | DEFAULT_wxUSE_PERMISSIVE=no |
1391 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1392 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1393 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1394 | DEFAULT_wxUSE_MEM_TRACING=no | |
1395 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1396 | DEFAULT_wxUSE_DMALLOC=no | |
683dccda | 1397 | DEFAULT_wxUSE_PRECOMP=yes |
10f2d63a VZ |
1398 | DEFAULT_wxUSE_APPLE_IEEE=no |
1399 | ||
1400 | DEFAULT_wxUSE_LOG=yes | |
1e6feb95 VZ |
1401 | DEFAULT_wxUSE_LOGWINDOW=no |
1402 | DEFAULT_wxUSE_LOGGUI=no | |
10f2d63a VZ |
1403 | |
1404 | DEFAULT_wxUSE_GUI=yes | |
1e6feb95 | 1405 | DEFAULT_wxUSE_CONTROLS=no |
10f2d63a | 1406 | |
3e44f09d | 1407 | DEFAULT_wxUSE_REGEX=no |
10f2d63a VZ |
1408 | DEFAULT_wxUSE_ZLIB=no |
1409 | DEFAULT_wxUSE_LIBPNG=no | |
1410 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 1411 | DEFAULT_wxUSE_LIBTIFF=no |
10f2d63a | 1412 | DEFAULT_wxUSE_ODBC=no |
3fed1840 | 1413 | DEFAULT_wxUSE_FREETYPE=no |
bdad4e7e | 1414 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1415 | |
eb4efbdc | 1416 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no |
4f3c5f06 | 1417 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
10f2d63a | 1418 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1419 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
1420 | DEFAULT_wxUSE_DATETIME=no | |
1421 | DEFAULT_wxUSE_TIMEDATE=no | |
1422 | DEFAULT_wxUSE_TIMER=no | |
1423 | DEFAULT_wxUSE_STOPWATCH=no | |
10f2d63a | 1424 | DEFAULT_wxUSE_FILE=no |
1e6feb95 | 1425 | DEFAULT_wxUSE_FFILE=no |
a3a584a7 | 1426 | DEFAULT_wxUSE_TEXTBUFFER=no |
10f2d63a | 1427 | DEFAULT_wxUSE_TEXTFILE=no |
10f2d63a VZ |
1428 | DEFAULT_wxUSE_WAVE=no |
1429 | DEFAULT_wxUSE_INTL=no | |
1430 | DEFAULT_wxUSE_CONFIG=no | |
1e6feb95 | 1431 | DEFAULT_wxUSE_FONTMAP=no |
10f2d63a VZ |
1432 | DEFAULT_wxUSE_STREAMS=no |
1433 | DEFAULT_wxUSE_SOCKETS=no | |
1434 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
1435 | DEFAULT_wxUSE_SERIAL=no | |
1436 | DEFAULT_wxUSE_JOYSTICK=no | |
1437 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
1438 | DEFAULT_wxUSE_LONGLONG=no | |
e8f65ba6 | 1439 | DEFAULT_wxUSE_GEOMETRY=no |
10f2d63a VZ |
1440 | |
1441 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1442 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1443 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1444 | ||
1445 | DEFAULT_wxUSE_X_RESOURCES=no | |
1446 | DEFAULT_wxUSE_CLIPBOARD=no | |
1447 | DEFAULT_wxUSE_TOOLTIPS=no | |
1448 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
24fd6d87 | 1449 | DEFAULT_wxUSE_DRAGIMAGE=no |
10f2d63a VZ |
1450 | DEFAULT_wxUSE_SPLINES=no |
1451 | ||
1452 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1453 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1454 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1455 | ||
1456 | DEFAULT_wxUSE_PROLOGIO=no | |
1457 | DEFAULT_wxUSE_RESOURCES=no | |
1458 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1459 | DEFAULT_wxUSE_IPC=no | |
1460 | DEFAULT_wxUSE_HELP=no | |
29fd3c0c | 1461 | DEFAULT_wxUSE_MS_HTML_HELP=no |
3379ed37 | 1462 | DEFAULT_wxUSE_WXHTML_HELP=no |
24176f2c | 1463 | DEFAULT_wxUSE_TREELAYOUT=no |
10f2d63a | 1464 | DEFAULT_wxUSE_METAFILE=no |
1e6feb95 | 1465 | DEFAULT_wxUSE_MIMETYPE=no |
3e44f09d | 1466 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes |
10f2d63a VZ |
1467 | |
1468 | DEFAULT_wxUSE_COMMONDLGS=no | |
1e6feb95 VZ |
1469 | DEFAULT_wxUSE_CHOICEDLG=no |
1470 | DEFAULT_wxUSE_COLOURDLG=no | |
10f2d63a | 1471 | DEFAULT_wxUSE_DIRDLG=no |
1e6feb95 | 1472 | DEFAULT_wxUSE_FILEDLG=no |
8db37e06 | 1473 | DEFAULT_wxUSE_FINDREPLDLG=no |
1e6feb95 VZ |
1474 | DEFAULT_wxUSE_FONTDLG=no |
1475 | DEFAULT_wxUSE_MSGDLG=no | |
1476 | DEFAULT_wxUSE_NUMBERDLG=no | |
10f2d63a | 1477 | DEFAULT_wxUSE_TEXTDLG=no |
cbca9943 | 1478 | DEFAULT_wxUSE_SPLASH=no |
10f2d63a VZ |
1479 | DEFAULT_wxUSE_STARTUP_TIPS=no |
1480 | DEFAULT_wxUSE_PROGRESSDLG=no | |
b1f5d087 VZ |
1481 | DEFAULT_wxUSE_WIZARDDLG=no |
1482 | ||
1e6feb95 | 1483 | DEFAULT_wxUSE_MENUS=no |
10f2d63a VZ |
1484 | DEFAULT_wxUSE_MINIFRAME=no |
1485 | DEFAULT_wxUSE_HTML=no | |
24528b0c | 1486 | DEFAULT_wxUSE_FILESYSTEM=no |
10f2d63a VZ |
1487 | DEFAULT_wxUSE_FS_INET=no |
1488 | DEFAULT_wxUSE_FS_ZIP=no | |
1489 | DEFAULT_wxUSE_BUSYINFO=no | |
1490 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1e6feb95 | 1491 | DEFAULT_wxUSE_VALIDATORS=no |
10f2d63a VZ |
1492 | |
1493 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 | 1494 | DEFAULT_wxUSE_BUTTON=no |
10f2d63a | 1495 | DEFAULT_wxUSE_BMPBUTTON=no |
1e6feb95 VZ |
1496 | DEFAULT_wxUSE_CALCTRL=no |
1497 | DEFAULT_wxUSE_CARET=no | |
10f2d63a VZ |
1498 | DEFAULT_wxUSE_CHECKBOX=no |
1499 | DEFAULT_wxUSE_CHECKLST=no | |
1e6feb95 | 1500 | DEFAULT_wxUSE_CHOICE=no |
10f2d63a VZ |
1501 | DEFAULT_wxUSE_COMBOBOX=no |
1502 | DEFAULT_wxUSE_GAUGE=no | |
1503 | DEFAULT_wxUSE_GRID=no | |
1504 | DEFAULT_wxUSE_NEW_GRID=no | |
1505 | DEFAULT_wxUSE_IMAGLIST=no | |
1506 | DEFAULT_wxUSE_LISTBOX=no | |
1507 | DEFAULT_wxUSE_LISTCTRL=no | |
1508 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 1509 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
1510 | DEFAULT_wxUSE_RADIOBOX=no |
1511 | DEFAULT_wxUSE_RADIOBTN=no | |
1512 | DEFAULT_wxUSE_SASH=no | |
1513 | DEFAULT_wxUSE_SCROLLBAR=no | |
1514 | DEFAULT_wxUSE_SLIDER=no | |
1515 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 1516 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
1517 | DEFAULT_wxUSE_SPLITTER=no |
1518 | DEFAULT_wxUSE_STATBMP=no | |
1519 | DEFAULT_wxUSE_STATBOX=no | |
1520 | DEFAULT_wxUSE_STATLINE=no | |
1e6feb95 | 1521 | DEFAULT_wxUSE_STATTEXT=no |
10f2d63a VZ |
1522 | DEFAULT_wxUSE_STATUSBAR=yes |
1523 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1524 | DEFAULT_wxUSE_TEXTCTRL=no |
1db8dc4a | 1525 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 1526 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
1527 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
1528 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a | 1529 | DEFAULT_wxUSE_TREECTRL=no |
9f41d601 | 1530 | DEFAULT_wxUSE_POPUPWIN=no |
10f2d63a VZ |
1531 | |
1532 | DEFAULT_wxUSE_UNICODE=no | |
1533 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1534 | ||
edae8572 | 1535 | DEFAULT_wxUSE_PALETTE=no |
0046ff7c | 1536 | DEFAULT_wxUSE_IMAGE=no |
10f2d63a VZ |
1537 | DEFAULT_wxUSE_GIF=no |
1538 | DEFAULT_wxUSE_PCX=no | |
1539 | DEFAULT_wxUSE_PNM=no | |
0046ff7c | 1540 | DEFAULT_wxUSE_XPM=no |
10f2d63a | 1541 | else |
1e6feb95 VZ |
1542 | DEFAULT_wxUSE_UNIVERSAL=no |
1543 | ||
10f2d63a VZ |
1544 | DEFAULT_wxUSE_THREADS=yes |
1545 | ||
1546 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1547 | DEFAULT_wxUSE_SONAME=no |
10f2d63a VZ |
1548 | DEFAULT_wxUSE_OPTIMISE=yes |
1549 | DEFAULT_wxUSE_PROFILE=no | |
1550 | DEFAULT_wxUSE_NO_DEPS=no | |
f676c7ff MB |
1551 | DEFAULT_wxUSE_NO_RTTI=yes |
1552 | DEFAULT_wxUSE_NO_EXCEPTIONS=yes | |
10f2d63a VZ |
1553 | DEFAULT_wxUSE_PERMISSIVE=no |
1554 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1555 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1556 | DEFAULT_wxUSE_DEBUG_GDB=no | |
1557 | DEFAULT_wxUSE_MEM_TRACING=no | |
1558 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1559 | DEFAULT_wxUSE_DMALLOC=no | |
683dccda | 1560 | DEFAULT_wxUSE_PRECOMP=yes |
10f2d63a VZ |
1561 | DEFAULT_wxUSE_APPLE_IEEE=yes |
1562 | ||
1563 | DEFAULT_wxUSE_LOG=yes | |
d73be714 VZ |
1564 | DEFAULT_wxUSE_LOGWINDOW=yes |
1565 | DEFAULT_wxUSE_LOGGUI=yes | |
10f2d63a VZ |
1566 | |
1567 | DEFAULT_wxUSE_GUI=yes | |
1568 | ||
831b3152 | 1569 | DEFAULT_wxUSE_REGEX=yes |
10f2d63a VZ |
1570 | DEFAULT_wxUSE_ZLIB=yes |
1571 | DEFAULT_wxUSE_LIBPNG=yes | |
1572 | DEFAULT_wxUSE_LIBJPEG=yes | |
b47c832e | 1573 | DEFAULT_wxUSE_LIBTIFF=yes |
16b52fa1 | 1574 | DEFAULT_wxUSE_ODBC=no |
3fed1840 | 1575 | DEFAULT_wxUSE_FREETYPE=no |
bdad4e7e | 1576 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1577 | |
eb4efbdc | 1578 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes |
4f3c5f06 | 1579 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
10f2d63a | 1580 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1581 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
1582 | DEFAULT_wxUSE_DATETIME=yes | |
1583 | DEFAULT_wxUSE_TIMEDATE=no | |
1584 | DEFAULT_wxUSE_TIMER=yes | |
1585 | DEFAULT_wxUSE_STOPWATCH=yes | |
10f2d63a | 1586 | DEFAULT_wxUSE_FILE=yes |
1e6feb95 | 1587 | DEFAULT_wxUSE_FFILE=yes |
a3a584a7 | 1588 | DEFAULT_wxUSE_TEXTBUFFER=yes |
10f2d63a | 1589 | DEFAULT_wxUSE_TEXTFILE=yes |
10f2d63a VZ |
1590 | DEFAULT_wxUSE_WAVE=no |
1591 | DEFAULT_wxUSE_INTL=yes | |
1592 | DEFAULT_wxUSE_CONFIG=yes | |
1e6feb95 | 1593 | DEFAULT_wxUSE_FONTMAP=yes |
10f2d63a VZ |
1594 | DEFAULT_wxUSE_STREAMS=yes |
1595 | DEFAULT_wxUSE_SOCKETS=yes | |
1596 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
1597 | DEFAULT_wxUSE_SERIAL=yes | |
1598 | DEFAULT_wxUSE_JOYSTICK=yes | |
1599 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
b685cd9b | 1600 | DEFAULT_wxUSE_LONGLONG=yes |
e8f65ba6 | 1601 | DEFAULT_wxUSE_GEOMETRY=yes |
10f2d63a VZ |
1602 | |
1603 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
1604 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
1605 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
1606 | ||
1607 | DEFAULT_wxUSE_X_RESOURCES=no | |
1608 | DEFAULT_wxUSE_CLIPBOARD=yes | |
1609 | DEFAULT_wxUSE_TOOLTIPS=yes | |
1610 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
24fd6d87 | 1611 | DEFAULT_wxUSE_DRAGIMAGE=yes |
10f2d63a VZ |
1612 | DEFAULT_wxUSE_SPLINES=yes |
1613 | ||
1614 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
1615 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
1616 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
1617 | ||
1618 | DEFAULT_wxUSE_PROLOGIO=yes | |
1619 | DEFAULT_wxUSE_RESOURCES=yes | |
1620 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
1621 | DEFAULT_wxUSE_IPC=yes | |
1622 | DEFAULT_wxUSE_HELP=yes | |
29fd3c0c | 1623 | DEFAULT_wxUSE_MS_HTML_HELP=yes |
3379ed37 | 1624 | DEFAULT_wxUSE_WXHTML_HELP=yes |
24176f2c | 1625 | DEFAULT_wxUSE_TREELAYOUT=yes |
10f2d63a | 1626 | DEFAULT_wxUSE_METAFILE=yes |
1e6feb95 | 1627 | DEFAULT_wxUSE_MIMETYPE=yes |
3e44f09d | 1628 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes |
10f2d63a VZ |
1629 | |
1630 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1e6feb95 VZ |
1631 | DEFAULT_wxUSE_CHOICEDLG=yes |
1632 | DEFAULT_wxUSE_COLOURDLG=yes | |
10f2d63a | 1633 | DEFAULT_wxUSE_DIRDLG=yes |
1e6feb95 | 1634 | DEFAULT_wxUSE_FILEDLG=yes |
8db37e06 | 1635 | DEFAULT_wxUSE_FINDREPLDLG=yes |
1e6feb95 VZ |
1636 | DEFAULT_wxUSE_FONTDLG=yes |
1637 | DEFAULT_wxUSE_MSGDLG=yes | |
1638 | DEFAULT_wxUSE_NUMBERDLG=yes | |
10f2d63a | 1639 | DEFAULT_wxUSE_TEXTDLG=yes |
cbca9943 | 1640 | DEFAULT_wxUSE_SPLASH=yes |
10f2d63a VZ |
1641 | DEFAULT_wxUSE_STARTUP_TIPS=yes |
1642 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
f33f19dd VZ |
1643 | DEFAULT_wxUSE_WIZARDDLG=yes |
1644 | ||
1e6feb95 | 1645 | DEFAULT_wxUSE_MENUS=yes |
10f2d63a VZ |
1646 | DEFAULT_wxUSE_MINIFRAME=yes |
1647 | DEFAULT_wxUSE_HTML=yes | |
24528b0c | 1648 | DEFAULT_wxUSE_FILESYSTEM=yes |
10f2d63a VZ |
1649 | DEFAULT_wxUSE_FS_INET=yes |
1650 | DEFAULT_wxUSE_FS_ZIP=yes | |
1651 | DEFAULT_wxUSE_BUSYINFO=yes | |
1652 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
1653 | DEFAULT_wxUSE_VALIDATORS=yes | |
1654 | ||
1655 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 | 1656 | DEFAULT_wxUSE_BUTTON=yes |
10f2d63a | 1657 | DEFAULT_wxUSE_BMPBUTTON=yes |
1e6feb95 VZ |
1658 | DEFAULT_wxUSE_CALCTRL=yes |
1659 | DEFAULT_wxUSE_CARET=yes | |
10f2d63a VZ |
1660 | DEFAULT_wxUSE_CHECKBOX=yes |
1661 | DEFAULT_wxUSE_CHECKLST=yes | |
1662 | DEFAULT_wxUSE_CHOICE=yes | |
1663 | DEFAULT_wxUSE_COMBOBOX=yes | |
1664 | DEFAULT_wxUSE_GAUGE=yes | |
1665 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 1666 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
1667 | DEFAULT_wxUSE_IMAGLIST=yes |
1668 | DEFAULT_wxUSE_LISTBOX=yes | |
1669 | DEFAULT_wxUSE_LISTCTRL=yes | |
1670 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 1671 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
1672 | DEFAULT_wxUSE_RADIOBOX=yes |
1673 | DEFAULT_wxUSE_RADIOBTN=yes | |
1674 | DEFAULT_wxUSE_SASH=yes | |
1675 | DEFAULT_wxUSE_SCROLLBAR=yes | |
1676 | DEFAULT_wxUSE_SLIDER=yes | |
1677 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 1678 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
1679 | DEFAULT_wxUSE_SPLITTER=yes |
1680 | DEFAULT_wxUSE_STATBMP=yes | |
1681 | DEFAULT_wxUSE_STATBOX=yes | |
1682 | DEFAULT_wxUSE_STATLINE=yes | |
1e6feb95 | 1683 | DEFAULT_wxUSE_STATTEXT=yes |
10f2d63a VZ |
1684 | DEFAULT_wxUSE_STATUSBAR=yes |
1685 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1686 | DEFAULT_wxUSE_TEXTCTRL=yes |
1db8dc4a | 1687 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 1688 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
1689 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
1690 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a | 1691 | DEFAULT_wxUSE_TREECTRL=yes |
9f41d601 | 1692 | DEFAULT_wxUSE_POPUPWIN=yes |
10f2d63a VZ |
1693 | |
1694 | DEFAULT_wxUSE_UNICODE=no | |
1695 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1696 | ||
edae8572 | 1697 | DEFAULT_wxUSE_PALETTE=yes |
0046ff7c | 1698 | DEFAULT_wxUSE_IMAGE=yes |
10f2d63a VZ |
1699 | DEFAULT_wxUSE_GIF=yes |
1700 | DEFAULT_wxUSE_PCX=yes | |
1701 | DEFAULT_wxUSE_PNM=yes | |
0046ff7c | 1702 | DEFAULT_wxUSE_XPM=yes |
10f2d63a VZ |
1703 | fi |
1704 | ||
698dcdb6 VZ |
1705 | |
1706 | ||
10f2d63a VZ |
1707 | for toolkit in `echo $ALL_TOOLKITS`; do |
1708 | LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}` | |
1709 | if test "x$LINE" != x ; then | |
1710 | has_toolkit_in_cache=1 | |
1711 | eval "DEFAULT_$LINE" | |
1712 | eval "CACHE_$toolkit=1" | |
1713 | fi | |
1714 | done | |
1715 | ||
698dcdb6 VZ |
1716 | |
1717 | ||
1718 | echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6 | |
94054c1d | 1719 | echo "configure:1720: checking for --enable-gui" >&5 |
10f2d63a VZ |
1720 | no_cache=0 |
1721 | # Check whether --enable-gui or --disable-gui was given. | |
1722 | if test "${enable_gui+set}" = set; then | |
1723 | enableval="$enable_gui" | |
698dcdb6 | 1724 | |
10f2d63a VZ |
1725 | if test "$enableval" = yes; then |
1726 | ac_cv_use_gui='wxUSE_GUI=yes' | |
1727 | else | |
1728 | ac_cv_use_gui='wxUSE_GUI=no' | |
1729 | fi | |
698dcdb6 | 1730 | |
10f2d63a | 1731 | else |
698dcdb6 | 1732 | |
10f2d63a VZ |
1733 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` |
1734 | if test "x$LINE" != x ; then | |
1735 | eval "DEFAULT_$LINE" | |
1736 | else | |
1737 | no_cache=1 | |
1738 | fi | |
1739 | ||
1740 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
698dcdb6 VZ |
1741 | |
1742 | fi | |
10f2d63a VZ |
1743 | |
1744 | ||
1745 | eval "$ac_cv_use_gui" | |
1746 | if test "$no_cache" != 1; then | |
1747 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
1748 | fi | |
1749 | ||
1750 | if test "$wxUSE_GUI" = yes; then | |
698dcdb6 | 1751 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 1752 | else |
698dcdb6 | 1753 | echo "$ac_t""no" 1>&6 |
10f2d63a | 1754 | fi |
698dcdb6 | 1755 | |
10f2d63a | 1756 | |
b12915c1 | 1757 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a | 1758 | |
1e6feb95 VZ |
1759 | |
1760 | echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6 | |
94054c1d | 1761 | echo "configure:1762: checking for --enable-universal" >&5 |
1e6feb95 VZ |
1762 | no_cache=0 |
1763 | # Check whether --enable-universal or --disable-universal was given. | |
1764 | if test "${enable_universal+set}" = set; then | |
1765 | enableval="$enable_universal" | |
1766 | ||
1767 | if test "$enableval" = yes; then | |
1768 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
1769 | else | |
1770 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
1771 | fi | |
1772 | ||
1773 | else | |
1774 | ||
1775 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
1776 | if test "x$LINE" != x ; then | |
1777 | eval "DEFAULT_$LINE" | |
1778 | else | |
1779 | no_cache=1 | |
1780 | fi | |
1781 | ||
1782 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
1783 | ||
1784 | fi | |
1785 | ||
1786 | ||
1787 | eval "$ac_cv_use_universal" | |
1788 | if test "$no_cache" != 1; then | |
1789 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
1790 | fi | |
1791 | ||
1792 | if test "$wxUSE_UNIVERSAL" = yes; then | |
1793 | echo "$ac_t""yes" 1>&6 | |
1794 | else | |
1795 | echo "$ac_t""no" 1>&6 | |
1796 | fi | |
1797 | ||
10f2d63a VZ |
1798 | # Check whether --with-gtk or --without-gtk was given. |
1799 | if test "${with_gtk+set}" = set; then | |
1800 | withval="$with_gtk" | |
1801 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1802 | fi |
10f2d63a VZ |
1803 | |
1804 | # Check whether --with-motif or --without-motif was given. | |
1805 | if test "${with_motif+set}" = set; then | |
1806 | withval="$with_motif" | |
1807 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1808 | fi |
10f2d63a | 1809 | |
b4085ce6 GD |
1810 | # Check whether --with-mac or --without-mac was given. |
1811 | if test "${with_mac+set}" = set; then | |
1812 | withval="$with_mac" | |
1813 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
698dcdb6 | 1814 | fi |
b4085ce6 | 1815 | |
10f2d63a VZ |
1816 | # Check whether --with-wine or --without-wine was given. |
1817 | if test "${with_wine+set}" = set; then | |
1818 | withval="$with_wine" | |
1819 | wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1820 | fi |
10f2d63a | 1821 | |
77e13408 RL |
1822 | # Check whether --with-msw or --without-msw was given. |
1823 | if test "${with_msw+set}" = set; then | |
1824 | withval="$with_msw" | |
1825 | wxUSE_MSW="$withval" CACHE_MSW TOOLKIT_GIVEN=1 | |
698dcdb6 | 1826 | fi |
10f2d63a | 1827 | |
e07802fc VZ |
1828 | # Check whether --with-pm or --without-pm was given. |
1829 | if test "${with_pm+set}" = set; then | |
1830 | withval="$with_pm" | |
1831 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
698dcdb6 VZ |
1832 | fi |
1833 | ||
1e6feb95 VZ |
1834 | # Check whether --with-mgl or --without-mgl was given. |
1835 | if test "${with_mgl+set}" = set; then | |
1836 | withval="$with_mgl" | |
1837 | wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1 | |
1838 | fi | |
1839 | ||
10f2d63a | 1840 | |
8168de4c VZ |
1841 | # Check whether --enable-gtk2 or --disable-gtk2 was given. |
1842 | if test "${enable_gtk2+set}" = set; then | |
1843 | enableval="$enable_gtk2" | |
1844 | wxUSE_GTK2=1 | |
10f2d63a | 1845 | else |
8168de4c | 1846 | wxUSE_GTK2=0 |
698dcdb6 VZ |
1847 | fi |
1848 | ||
703e0a69 | 1849 | |
1e487827 | 1850 | |
698dcdb6 | 1851 | echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6 |
94054c1d | 1852 | echo "configure:1853: checking for --with-libpng" >&5 |
698dcdb6 VZ |
1853 | no_cache=0 |
1854 | # Check whether --with-libpng or --without-libpng was given. | |
b12915c1 VZ |
1855 | if test "${with_libpng+set}" = set; then |
1856 | withval="$with_libpng" | |
698dcdb6 | 1857 | |
10f2d63a | 1858 | if test "$withval" = yes; then |
b12915c1 | 1859 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
422107f9 | 1860 | elif test "$withval" = no; then |
b12915c1 | 1861 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
422107f9 VZ |
1862 | elif test "$withval" = sys; then |
1863 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
4f14bcd8 GD |
1864 | elif test "$withval" = builtin; then |
1865 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
422107f9 | 1866 | else |
4f14bcd8 | 1867 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 1868 | fi |
698dcdb6 | 1869 | |
10f2d63a | 1870 | else |
698dcdb6 | 1871 | |
b12915c1 | 1872 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
1873 | if test "x$LINE" != x ; then |
1874 | eval "DEFAULT_$LINE" | |
1875 | else | |
1876 | no_cache=1 | |
1877 | fi | |
1878 | ||
b12915c1 | 1879 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
698dcdb6 VZ |
1880 | |
1881 | fi | |
10f2d63a VZ |
1882 | |
1883 | ||
b12915c1 | 1884 | eval "$ac_cv_use_libpng" |
10f2d63a | 1885 | if test "$no_cache" != 1; then |
b12915c1 | 1886 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1887 | fi |
1888 | ||
b12915c1 | 1889 | if test "$wxUSE_LIBPNG" = yes; then |
698dcdb6 | 1890 | echo "$ac_t""yes" 1>&6 |
422107f9 | 1891 | elif test "$wxUSE_LIBPNG" = no; then |
698dcdb6 | 1892 | echo "$ac_t""no" 1>&6 |
422107f9 | 1893 | elif test "$wxUSE_LIBPNG" = sys; then |
698dcdb6 | 1894 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
1895 | elif test "$wxUSE_LIBPNG" = builtin; then |
1896 | echo "$ac_t""builtin version" 1>&6 | |
422107f9 | 1897 | else |
4f14bcd8 | 1898 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 1899 | fi |
698dcdb6 | 1900 | |
10f2d63a | 1901 | |
698dcdb6 | 1902 | echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6 |
94054c1d | 1903 | echo "configure:1904: checking for --with-libjpeg" >&5 |
10f2d63a | 1904 | no_cache=0 |
698dcdb6 | 1905 | # Check whether --with-libjpeg or --without-libjpeg was given. |
b12915c1 VZ |
1906 | if test "${with_libjpeg+set}" = set; then |
1907 | withval="$with_libjpeg" | |
698dcdb6 | 1908 | |
10f2d63a | 1909 | if test "$withval" = yes; then |
b12915c1 | 1910 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
422107f9 | 1911 | elif test "$withval" = no; then |
b12915c1 | 1912 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
422107f9 VZ |
1913 | elif test "$withval" = sys; then |
1914 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
4f14bcd8 GD |
1915 | elif test "$withval" = builtin; then |
1916 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
422107f9 | 1917 | else |
4f14bcd8 | 1918 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 1919 | fi |
698dcdb6 | 1920 | |
10f2d63a | 1921 | else |
698dcdb6 | 1922 | |
b12915c1 | 1923 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
1924 | if test "x$LINE" != x ; then |
1925 | eval "DEFAULT_$LINE" | |
1926 | else | |
1927 | no_cache=1 | |
1928 | fi | |
1929 | ||
b12915c1 | 1930 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
698dcdb6 VZ |
1931 | |
1932 | fi | |
10f2d63a VZ |
1933 | |
1934 | ||
b12915c1 | 1935 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 1936 | if test "$no_cache" != 1; then |
b12915c1 | 1937 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1938 | fi |
1939 | ||
b12915c1 | 1940 | if test "$wxUSE_LIBJPEG" = yes; then |
698dcdb6 | 1941 | echo "$ac_t""yes" 1>&6 |
422107f9 | 1942 | elif test "$wxUSE_LIBJPEG" = no; then |
698dcdb6 | 1943 | echo "$ac_t""no" 1>&6 |
422107f9 | 1944 | elif test "$wxUSE_LIBJPEG" = sys; then |
698dcdb6 | 1945 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
1946 | elif test "$wxUSE_LIBJPEG" = builtin; then |
1947 | echo "$ac_t""builtin version" 1>&6 | |
422107f9 | 1948 | else |
4f14bcd8 | 1949 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 1950 | fi |
698dcdb6 | 1951 | |
10f2d63a | 1952 | |
698dcdb6 | 1953 | echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6 |
94054c1d | 1954 | echo "configure:1955: checking for --with-libtiff" >&5 |
10f2d63a | 1955 | no_cache=0 |
698dcdb6 | 1956 | # Check whether --with-libtiff or --without-libtiff was given. |
b12915c1 VZ |
1957 | if test "${with_libtiff+set}" = set; then |
1958 | withval="$with_libtiff" | |
698dcdb6 | 1959 | |
10f2d63a | 1960 | if test "$withval" = yes; then |
b12915c1 | 1961 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
0dcf9893 | 1962 | elif test "$withval" = no; then |
b12915c1 | 1963 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
0dcf9893 VZ |
1964 | elif test "$withval" = sys; then |
1965 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
4f14bcd8 GD |
1966 | elif test "$withval" = builtin; then |
1967 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
0dcf9893 | 1968 | else |
4f14bcd8 | 1969 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 1970 | fi |
698dcdb6 | 1971 | |
10f2d63a | 1972 | else |
698dcdb6 | 1973 | |
b12915c1 | 1974 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
1975 | if test "x$LINE" != x ; then |
1976 | eval "DEFAULT_$LINE" | |
1977 | else | |
1978 | no_cache=1 | |
1979 | fi | |
1980 | ||
b12915c1 | 1981 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
698dcdb6 VZ |
1982 | |
1983 | fi | |
10f2d63a VZ |
1984 | |
1985 | ||
b12915c1 | 1986 | eval "$ac_cv_use_libtiff" |
10f2d63a | 1987 | if test "$no_cache" != 1; then |
b12915c1 | 1988 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1989 | fi |
1990 | ||
b12915c1 | 1991 | if test "$wxUSE_LIBTIFF" = yes; then |
698dcdb6 | 1992 | echo "$ac_t""yes" 1>&6 |
0dcf9893 | 1993 | elif test "$wxUSE_LIBTIFF" = no; then |
698dcdb6 | 1994 | echo "$ac_t""no" 1>&6 |
0dcf9893 | 1995 | elif test "$wxUSE_LIBTIFF" = sys; then |
698dcdb6 | 1996 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
1997 | elif test "$wxUSE_LIBTIFF" = builtin; then |
1998 | echo "$ac_t""builtin version" 1>&6 | |
0dcf9893 | 1999 | else |
4f14bcd8 | 2000 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2001 | fi |
698dcdb6 | 2002 | |
10f2d63a | 2003 | |
698dcdb6 | 2004 | echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6 |
94054c1d | 2005 | echo "configure:2006: checking for --with-freetype" >&5 |
3fed1840 | 2006 | no_cache=0 |
698dcdb6 | 2007 | # Check whether --with-freetype or --without-freetype was given. |
3fed1840 RR |
2008 | if test "${with_freetype+set}" = set; then |
2009 | withval="$with_freetype" | |
698dcdb6 | 2010 | |
3fed1840 RR |
2011 | if test "$withval" = yes; then |
2012 | ac_cv_use_freetype='wxUSE_FREETYPE=yes' | |
2013 | elif test "$withval" = no; then | |
2014 | ac_cv_use_freetype='wxUSE_FREETYPE=no' | |
2015 | elif test "$withval" = sys; then | |
2016 | ac_cv_use_freetype='wxUSE_FREETYPE=sys' | |
4f14bcd8 GD |
2017 | elif test "$withval" = builtin; then |
2018 | ac_cv_use_freetype='wxUSE_FREETYPE=builtin' | |
3fed1840 | 2019 | else |
4f14bcd8 | 2020 | { echo "configure: error: Invalid value for --with-freetype: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3fed1840 | 2021 | fi |
698dcdb6 | 2022 | |
3fed1840 | 2023 | else |
698dcdb6 | 2024 | |
3fed1840 RR |
2025 | LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}` |
2026 | if test "x$LINE" != x ; then | |
2027 | eval "DEFAULT_$LINE" | |
2028 | else | |
2029 | no_cache=1 | |
2030 | fi | |
2031 | ||
2032 | ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE | |
698dcdb6 VZ |
2033 | |
2034 | fi | |
3fed1840 RR |
2035 | |
2036 | ||
2037 | eval "$ac_cv_use_freetype" | |
2038 | if test "$no_cache" != 1; then | |
2039 | echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp | |
2040 | fi | |
2041 | ||
2042 | if test "$wxUSE_FREETYPE" = yes; then | |
698dcdb6 | 2043 | echo "$ac_t""yes" 1>&6 |
3fed1840 | 2044 | elif test "$wxUSE_FREETYPE" = no; then |
698dcdb6 | 2045 | echo "$ac_t""no" 1>&6 |
3fed1840 | 2046 | elif test "$wxUSE_FREETYPE" = sys; then |
698dcdb6 | 2047 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
2048 | elif test "$wxUSE_FREETYPE" = builtin; then |
2049 | echo "$ac_t""builtin version" 1>&6 | |
3fed1840 | 2050 | else |
4f14bcd8 | 2051 | { echo "configure: error: Invalid value for --with-freetype: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3fed1840 | 2052 | fi |
698dcdb6 | 2053 | |
3fed1840 | 2054 | |
698dcdb6 | 2055 | echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6 |
94054c1d | 2056 | echo "configure:2057: checking for --with-opengl" >&5 |
10f2d63a | 2057 | no_cache=0 |
698dcdb6 | 2058 | # Check whether --with-opengl or --without-opengl was given. |
b12915c1 VZ |
2059 | if test "${with_opengl+set}" = set; then |
2060 | withval="$with_opengl" | |
698dcdb6 | 2061 | |
10f2d63a | 2062 | if test "$withval" = yes; then |
b12915c1 | 2063 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 2064 | else |
b12915c1 | 2065 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a | 2066 | fi |
698dcdb6 | 2067 | |
10f2d63a | 2068 | else |
698dcdb6 | 2069 | |
b12915c1 | 2070 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` |
10f2d63a VZ |
2071 | if test "x$LINE" != x ; then |
2072 | eval "DEFAULT_$LINE" | |
2073 | else | |
2074 | no_cache=1 | |
2075 | fi | |
2076 | ||
b12915c1 | 2077 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
698dcdb6 VZ |
2078 | |
2079 | fi | |
10f2d63a VZ |
2080 | |
2081 | ||
b12915c1 | 2082 | eval "$ac_cv_use_opengl" |
10f2d63a | 2083 | if test "$no_cache" != 1; then |
b12915c1 | 2084 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2085 | fi |
2086 | ||
b12915c1 | 2087 | if test "$wxUSE_OPENGL" = yes; then |
698dcdb6 | 2088 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2089 | else |
698dcdb6 | 2090 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2091 | fi |
698dcdb6 | 2092 | |
10f2d63a | 2093 | |
b12915c1 VZ |
2094 | fi |
2095 | ||
1e487827 | 2096 | |
698dcdb6 | 2097 | echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6 |
94054c1d | 2098 | echo "configure:2099: checking for --with-dmalloc" >&5 |
698dcdb6 VZ |
2099 | no_cache=0 |
2100 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
b12915c1 VZ |
2101 | if test "${with_dmalloc+set}" = set; then |
2102 | withval="$with_dmalloc" | |
698dcdb6 | 2103 | |
c7a2bf27 | 2104 | if test "$withval" = yes; then |
b12915c1 | 2105 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 2106 | else |
b12915c1 | 2107 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 | 2108 | fi |
698dcdb6 | 2109 | |
c7a2bf27 | 2110 | else |
698dcdb6 | 2111 | |
b12915c1 | 2112 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
2113 | if test "x$LINE" != x ; then |
2114 | eval "DEFAULT_$LINE" | |
2115 | else | |
2116 | no_cache=1 | |
2117 | fi | |
2118 | ||
b12915c1 | 2119 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
698dcdb6 VZ |
2120 | |
2121 | fi | |
c7a2bf27 RR |
2122 | |
2123 | ||
b12915c1 | 2124 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 2125 | if test "$no_cache" != 1; then |
b12915c1 | 2126 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
2127 | fi |
2128 | ||
b12915c1 | 2129 | if test "$wxUSE_DMALLOC" = yes; then |
698dcdb6 | 2130 | echo "$ac_t""yes" 1>&6 |
c7a2bf27 | 2131 | else |
698dcdb6 | 2132 | echo "$ac_t""no" 1>&6 |
c7a2bf27 | 2133 | fi |
698dcdb6 | 2134 | |
c7a2bf27 | 2135 | |
3e44f09d | 2136 | echo $ac_n "checking for --with-regex""... $ac_c" 1>&6 |
94054c1d | 2137 | echo "configure:2138: checking for --with-regex" >&5 |
3e44f09d VZ |
2138 | no_cache=0 |
2139 | # Check whether --with-regex or --without-regex was given. | |
2140 | if test "${with_regex+set}" = set; then | |
2141 | withval="$with_regex" | |
2142 | ||
2143 | if test "$withval" = yes; then | |
2144 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
2145 | elif test "$withval" = no; then | |
2146 | ac_cv_use_regex='wxUSE_REGEX=no' | |
2147 | elif test "$withval" = sys; then | |
2148 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
4f14bcd8 GD |
2149 | elif test "$withval" = builtin; then |
2150 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3e44f09d | 2151 | else |
4f14bcd8 | 2152 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3e44f09d VZ |
2153 | fi |
2154 | ||
2155 | else | |
2156 | ||
2157 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` | |
2158 | if test "x$LINE" != x ; then | |
2159 | eval "DEFAULT_$LINE" | |
2160 | else | |
2161 | no_cache=1 | |
2162 | fi | |
2163 | ||
2164 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
2165 | ||
2166 | fi | |
2167 | ||
2168 | ||
2169 | eval "$ac_cv_use_regex" | |
2170 | if test "$no_cache" != 1; then | |
2171 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
2172 | fi | |
2173 | ||
2174 | if test "$wxUSE_REGEX" = yes; then | |
2175 | echo "$ac_t""yes" 1>&6 | |
2176 | elif test "$wxUSE_REGEX" = no; then | |
2177 | echo "$ac_t""no" 1>&6 | |
2178 | elif test "$wxUSE_REGEX" = sys; then | |
2179 | echo "$ac_t""system version" 1>&6 | |
4f14bcd8 GD |
2180 | elif test "$wxUSE_REGEX" = builtin; then |
2181 | echo "$ac_t""builtin version" 1>&6 | |
3e44f09d | 2182 | else |
4f14bcd8 | 2183 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3e44f09d VZ |
2184 | fi |
2185 | ||
2186 | ||
698dcdb6 | 2187 | echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6 |
94054c1d | 2188 | echo "configure:2189: checking for --with-zlib" >&5 |
10f2d63a | 2189 | no_cache=0 |
698dcdb6 | 2190 | # Check whether --with-zlib or --without-zlib was given. |
b12915c1 VZ |
2191 | if test "${with_zlib+set}" = set; then |
2192 | withval="$with_zlib" | |
698dcdb6 | 2193 | |
10f2d63a | 2194 | if test "$withval" = yes; then |
b12915c1 | 2195 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
422107f9 | 2196 | elif test "$withval" = no; then |
b12915c1 | 2197 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
422107f9 VZ |
2198 | elif test "$withval" = sys; then |
2199 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
4f14bcd8 GD |
2200 | elif test "$withval" = builtin; then |
2201 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
422107f9 | 2202 | else |
4f14bcd8 | 2203 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2204 | fi |
698dcdb6 | 2205 | |
10f2d63a | 2206 | else |
698dcdb6 | 2207 | |
b12915c1 | 2208 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
2209 | if test "x$LINE" != x ; then |
2210 | eval "DEFAULT_$LINE" | |
2211 | else | |
2212 | no_cache=1 | |
2213 | fi | |
2214 | ||
b12915c1 | 2215 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
698dcdb6 VZ |
2216 | |
2217 | fi | |
10f2d63a VZ |
2218 | |
2219 | ||
b12915c1 | 2220 | eval "$ac_cv_use_zlib" |
10f2d63a | 2221 | if test "$no_cache" != 1; then |
b12915c1 | 2222 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2223 | fi |
2224 | ||
b12915c1 | 2225 | if test "$wxUSE_ZLIB" = yes; then |
698dcdb6 | 2226 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2227 | elif test "$wxUSE_ZLIB" = no; then |
698dcdb6 | 2228 | echo "$ac_t""no" 1>&6 |
422107f9 | 2229 | elif test "$wxUSE_ZLIB" = sys; then |
698dcdb6 | 2230 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
2231 | elif test "$wxUSE_ZLIB" = builtin; then |
2232 | echo "$ac_t""builtin version" 1>&6 | |
422107f9 | 2233 | else |
4f14bcd8 | 2234 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2235 | fi |
698dcdb6 | 2236 | |
10f2d63a | 2237 | |
698dcdb6 | 2238 | echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6 |
94054c1d | 2239 | echo "configure:2240: checking for --with-odbc" >&5 |
10f2d63a | 2240 | no_cache=0 |
698dcdb6 | 2241 | # Check whether --with-odbc or --without-odbc was given. |
10f2d63a VZ |
2242 | if test "${with_odbc+set}" = set; then |
2243 | withval="$with_odbc" | |
698dcdb6 | 2244 | |
10f2d63a VZ |
2245 | if test "$withval" = yes; then |
2246 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
2247 | else | |
2248 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
2249 | fi | |
698dcdb6 | 2250 | |
10f2d63a | 2251 | else |
698dcdb6 | 2252 | |
10f2d63a VZ |
2253 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` |
2254 | if test "x$LINE" != x ; then | |
2255 | eval "DEFAULT_$LINE" | |
2256 | else | |
2257 | no_cache=1 | |
2258 | fi | |
2259 | ||
2260 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
698dcdb6 VZ |
2261 | |
2262 | fi | |
10f2d63a VZ |
2263 | |
2264 | ||
2265 | eval "$ac_cv_use_odbc" | |
2266 | if test "$no_cache" != 1; then | |
2267 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
2268 | fi | |
2269 | ||
2270 | if test "$wxUSE_ODBC" = yes; then | |
698dcdb6 | 2271 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2272 | else |
698dcdb6 | 2273 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2274 | fi |
698dcdb6 VZ |
2275 | |
2276 | ||
10f2d63a | 2277 | |
698dcdb6 | 2278 | |
698dcdb6 | 2279 | echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6 |
94054c1d | 2280 | echo "configure:2281: checking for --enable-shared" >&5 |
10f2d63a VZ |
2281 | no_cache=0 |
2282 | # Check whether --enable-shared or --disable-shared was given. | |
2283 | if test "${enable_shared+set}" = set; then | |
2284 | enableval="$enable_shared" | |
698dcdb6 | 2285 | |
10f2d63a VZ |
2286 | if test "$enableval" = yes; then |
2287 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
2288 | else | |
2289 | ac_cv_use_shared='wxUSE_SHARED=no' | |
2290 | fi | |
698dcdb6 | 2291 | |
10f2d63a | 2292 | else |
698dcdb6 | 2293 | |
10f2d63a VZ |
2294 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` |
2295 | if test "x$LINE" != x ; then | |
2296 | eval "DEFAULT_$LINE" | |
2297 | else | |
2298 | no_cache=1 | |
2299 | fi | |
2300 | ||
2301 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
698dcdb6 VZ |
2302 | |
2303 | fi | |
10f2d63a VZ |
2304 | |
2305 | ||
2306 | eval "$ac_cv_use_shared" | |
2307 | if test "$no_cache" != 1; then | |
2308 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
2309 | fi | |
2310 | ||
2311 | if test "$wxUSE_SHARED" = yes; then | |
698dcdb6 | 2312 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2313 | else |
698dcdb6 | 2314 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2315 | fi |
698dcdb6 | 2316 | |
10f2d63a | 2317 | |
3a922bb4 | 2318 | echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6 |
94054c1d | 2319 | echo "configure:2320: checking for --enable-soname" >&5 |
00cf1208 | 2320 | no_cache=0 |
3a922bb4 RL |
2321 | # Check whether --enable-soname or --disable-soname was given. |
2322 | if test "${enable_soname+set}" = set; then | |
2323 | enableval="$enable_soname" | |
698dcdb6 | 2324 | |
00cf1208 | 2325 | if test "$enableval" = yes; then |
3a922bb4 | 2326 | ac_cv_use_soname='wxUSE_SONAME=yes' |
00cf1208 | 2327 | else |
3a922bb4 | 2328 | ac_cv_use_soname='wxUSE_SONAME=no' |
00cf1208 | 2329 | fi |
698dcdb6 | 2330 | |
00cf1208 | 2331 | else |
698dcdb6 | 2332 | |
3a922bb4 | 2333 | LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}` |
00cf1208 RR |
2334 | if test "x$LINE" != x ; then |
2335 | eval "DEFAULT_$LINE" | |
2336 | else | |
2337 | no_cache=1 | |
2338 | fi | |
2339 | ||
3a922bb4 | 2340 | ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME |
698dcdb6 VZ |
2341 | |
2342 | fi | |
00cf1208 RR |
2343 | |
2344 | ||
3a922bb4 | 2345 | eval "$ac_cv_use_soname" |
00cf1208 | 2346 | if test "$no_cache" != 1; then |
3a922bb4 | 2347 | echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp |
00cf1208 RR |
2348 | fi |
2349 | ||
3a922bb4 | 2350 | if test "$wxUSE_SONAME" = yes; then |
698dcdb6 | 2351 | echo "$ac_t""yes" 1>&6 |
00cf1208 | 2352 | else |
698dcdb6 | 2353 | echo "$ac_t""no" 1>&6 |
00cf1208 | 2354 | fi |
698dcdb6 | 2355 | |
00cf1208 | 2356 | |
698dcdb6 | 2357 | echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6 |
94054c1d | 2358 | echo "configure:2359: checking for --enable-optimise" >&5 |
10f2d63a VZ |
2359 | no_cache=0 |
2360 | # Check whether --enable-optimise or --disable-optimise was given. | |
2361 | if test "${enable_optimise+set}" = set; then | |
2362 | enableval="$enable_optimise" | |
698dcdb6 | 2363 | |
10f2d63a VZ |
2364 | if test "$enableval" = yes; then |
2365 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
2366 | else | |
2367 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
2368 | fi | |
698dcdb6 | 2369 | |
10f2d63a | 2370 | else |
698dcdb6 | 2371 | |
10f2d63a VZ |
2372 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` |
2373 | if test "x$LINE" != x ; then | |
2374 | eval "DEFAULT_$LINE" | |
2375 | else | |
2376 | no_cache=1 | |
2377 | fi | |
2378 | ||
2379 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
698dcdb6 VZ |
2380 | |
2381 | fi | |
10f2d63a VZ |
2382 | |
2383 | ||
2384 | eval "$ac_cv_use_optimise" | |
2385 | if test "$no_cache" != 1; then | |
2386 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
2387 | fi | |
2388 | ||
2389 | if test "$wxUSE_OPTIMISE" = yes; then | |
698dcdb6 | 2390 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2391 | else |
698dcdb6 | 2392 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2393 | fi |
698dcdb6 | 2394 | |
10f2d63a | 2395 | |
698dcdb6 | 2396 | echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6 |
94054c1d | 2397 | echo "configure:2398: checking for --enable-debug" >&5 |
10f2d63a VZ |
2398 | no_cache=0 |
2399 | # Check whether --enable-debug or --disable-debug was given. | |
2400 | if test "${enable_debug+set}" = set; then | |
2401 | enableval="$enable_debug" | |
698dcdb6 | 2402 | |
10f2d63a VZ |
2403 | if test "$enableval" = yes; then |
2404 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
2405 | else | |
2406 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
2407 | fi | |
698dcdb6 | 2408 | |
10f2d63a | 2409 | else |
698dcdb6 | 2410 | |
10f2d63a VZ |
2411 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` |
2412 | if test "x$LINE" != x ; then | |
2413 | eval "DEFAULT_$LINE" | |
2414 | else | |
2415 | no_cache=1 | |
2416 | fi | |
2417 | ||
2418 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
698dcdb6 VZ |
2419 | |
2420 | fi | |
10f2d63a VZ |
2421 | |
2422 | ||
2423 | eval "$ac_cv_use_debug" | |
2424 | if test "$no_cache" != 1; then | |
2425 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
2426 | fi | |
2427 | ||
2428 | if test "$wxUSE_DEBUG" = yes; then | |
698dcdb6 | 2429 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2430 | else |
698dcdb6 | 2431 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2432 | fi |
698dcdb6 | 2433 | |
10f2d63a | 2434 | |
683dccda GD |
2435 | |
2436 | echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6 | |
94054c1d | 2437 | echo "configure:2438: checking for --enable-precomp" >&5 |
683dccda GD |
2438 | no_cache=0 |
2439 | # Check whether --enable-precomp or --disable-precomp was given. | |
2440 | if test "${enable_precomp+set}" = set; then | |
2441 | enableval="$enable_precomp" | |
2442 | ||
2443 | if test "$enableval" = yes; then | |
2444 | ac_cv_use_precomp='wxUSE_PRECOMP=yes' | |
2445 | else | |
2446 | ac_cv_use_precomp='wxUSE_PRECOMP=no' | |
2447 | fi | |
2448 | ||
2449 | else | |
2450 | ||
2451 | LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}` | |
2452 | if test "x$LINE" != x ; then | |
2453 | eval "DEFAULT_$LINE" | |
2454 | else | |
2455 | no_cache=1 | |
2456 | fi | |
2457 | ||
2458 | ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP | |
2459 | ||
2460 | fi | |
2461 | ||
2462 | ||
2463 | eval "$ac_cv_use_precomp" | |
2464 | if test "$no_cache" != 1; then | |
2465 | echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp | |
2466 | fi | |
2467 | ||
2468 | if test "$wxUSE_PRECOMP" = yes; then | |
2469 | echo "$ac_t""yes" 1>&6 | |
2470 | else | |
2471 | echo "$ac_t""no" 1>&6 | |
2472 | fi | |
2473 | ||
2474 | ||
10f2d63a VZ |
2475 | if test "$wxUSE_DEBUG" = "yes"; then |
2476 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2477 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2478 | elif test "$wxUSE_DEBUG" = "no"; then | |
2479 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2480 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2481 | fi | |
2482 | ||
698dcdb6 VZ |
2483 | |
2484 | echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6 | |
94054c1d | 2485 | echo "configure:2486: checking for --enable-debug_flag" >&5 |
10f2d63a VZ |
2486 | no_cache=0 |
2487 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
2488 | if test "${enable_debug_flag+set}" = set; then | |
2489 | enableval="$enable_debug_flag" | |
698dcdb6 | 2490 | |
10f2d63a VZ |
2491 | if test "$enableval" = yes; then |
2492 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
2493 | else | |
2494 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
2495 | fi | |
698dcdb6 | 2496 | |
10f2d63a | 2497 | else |
698dcdb6 | 2498 | |
10f2d63a VZ |
2499 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` |
2500 | if test "x$LINE" != x ; then | |
2501 | eval "DEFAULT_$LINE" | |
2502 | else | |
2503 | no_cache=1 | |
2504 | fi | |
2505 | ||
2506 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
698dcdb6 VZ |
2507 | |
2508 | fi | |
10f2d63a VZ |
2509 | |
2510 | ||
2511 | eval "$ac_cv_use_debug_flag" | |
2512 | if test "$no_cache" != 1; then | |
2513 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
2514 | fi | |
2515 | ||
2516 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
698dcdb6 | 2517 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2518 | else |
698dcdb6 | 2519 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2520 | fi |
698dcdb6 | 2521 | |
10f2d63a | 2522 | |
698dcdb6 | 2523 | echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6 |
94054c1d | 2524 | echo "configure:2525: checking for --enable-debug_info" >&5 |
10f2d63a VZ |
2525 | no_cache=0 |
2526 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
2527 | if test "${enable_debug_info+set}" = set; then | |
2528 | enableval="$enable_debug_info" | |
698dcdb6 | 2529 | |
10f2d63a VZ |
2530 | if test "$enableval" = yes; then |
2531 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
2532 | else | |
2533 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
2534 | fi | |
698dcdb6 | 2535 | |
10f2d63a | 2536 | else |
698dcdb6 | 2537 | |
10f2d63a VZ |
2538 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` |
2539 | if test "x$LINE" != x ; then | |
2540 | eval "DEFAULT_$LINE" | |
2541 | else | |
2542 | no_cache=1 | |
2543 | fi | |
2544 | ||
2545 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
698dcdb6 VZ |
2546 | |
2547 | fi | |
10f2d63a VZ |
2548 | |
2549 | ||
2550 | eval "$ac_cv_use_debug_info" | |
2551 | if test "$no_cache" != 1; then | |
2552 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
2553 | fi | |
2554 | ||
2555 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
698dcdb6 | 2556 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2557 | else |
698dcdb6 | 2558 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2559 | fi |
698dcdb6 | 2560 | |
10f2d63a | 2561 | |
698dcdb6 | 2562 | echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6 |
94054c1d | 2563 | echo "configure:2564: checking for --enable-debug_gdb" >&5 |
10f2d63a VZ |
2564 | no_cache=0 |
2565 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
2566 | if test "${enable_debug_gdb+set}" = set; then | |
2567 | enableval="$enable_debug_gdb" | |
698dcdb6 | 2568 | |
10f2d63a VZ |
2569 | if test "$enableval" = yes; then |
2570 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
2571 | else | |
2572 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
2573 | fi | |
698dcdb6 | 2574 | |
10f2d63a | 2575 | else |
698dcdb6 | 2576 | |
10f2d63a VZ |
2577 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` |
2578 | if test "x$LINE" != x ; then | |
2579 | eval "DEFAULT_$LINE" | |
2580 | else | |
2581 | no_cache=1 | |
2582 | fi | |
2583 | ||
2584 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
698dcdb6 VZ |
2585 | |
2586 | fi | |
10f2d63a VZ |
2587 | |
2588 | ||
2589 | eval "$ac_cv_use_debug_gdb" | |
2590 | if test "$no_cache" != 1; then | |
2591 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
2592 | fi | |
2593 | ||
2594 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
698dcdb6 | 2595 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2596 | else |
698dcdb6 | 2597 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2598 | fi |
698dcdb6 | 2599 | |
10f2d63a | 2600 | |
698dcdb6 | 2601 | echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6 |
94054c1d | 2602 | echo "configure:2603: checking for --enable-debug_cntxt" >&5 |
10f2d63a VZ |
2603 | no_cache=0 |
2604 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
2605 | if test "${enable_debug_cntxt+set}" = set; then | |
2606 | enableval="$enable_debug_cntxt" | |
698dcdb6 | 2607 | |
10f2d63a VZ |
2608 | if test "$enableval" = yes; then |
2609 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
2610 | else | |
2611 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
2612 | fi | |
698dcdb6 | 2613 | |
10f2d63a | 2614 | else |
698dcdb6 | 2615 | |
10f2d63a VZ |
2616 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` |
2617 | if test "x$LINE" != x ; then | |
2618 | eval "DEFAULT_$LINE" | |
2619 | else | |
2620 | no_cache=1 | |
2621 | fi | |
2622 | ||
2623 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
698dcdb6 VZ |
2624 | |
2625 | fi | |
10f2d63a VZ |
2626 | |
2627 | ||
2628 | eval "$ac_cv_use_debug_cntxt" | |
2629 | if test "$no_cache" != 1; then | |
2630 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
2631 | fi | |
2632 | ||
2633 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
698dcdb6 | 2634 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2635 | else |
698dcdb6 | 2636 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2637 | fi |
698dcdb6 | 2638 | |
10f2d63a | 2639 | |
698dcdb6 | 2640 | echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6 |
94054c1d | 2641 | echo "configure:2642: checking for --enable-mem_tracing" >&5 |
10f2d63a VZ |
2642 | no_cache=0 |
2643 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
2644 | if test "${enable_mem_tracing+set}" = set; then | |
2645 | enableval="$enable_mem_tracing" | |
698dcdb6 | 2646 | |
10f2d63a VZ |
2647 | if test "$enableval" = yes; then |
2648 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
2649 | else | |
2650 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
2651 | fi | |
698dcdb6 | 2652 | |
10f2d63a | 2653 | else |
698dcdb6 | 2654 | |
10f2d63a VZ |
2655 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` |
2656 | if test "x$LINE" != x ; then | |
2657 | eval "DEFAULT_$LINE" | |
2658 | else | |
2659 | no_cache=1 | |
2660 | fi | |
2661 | ||
2662 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
698dcdb6 VZ |
2663 | |
2664 | fi | |
10f2d63a VZ |
2665 | |
2666 | ||
2667 | eval "$ac_cv_use_mem_tracing" | |
2668 | if test "$no_cache" != 1; then | |
2669 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
2670 | fi | |
2671 | ||
2672 | if test "$wxUSE_MEM_TRACING" = yes; then | |
698dcdb6 | 2673 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2674 | else |
698dcdb6 | 2675 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2676 | fi |
698dcdb6 | 2677 | |
10f2d63a | 2678 | |
698dcdb6 | 2679 | echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6 |
94054c1d | 2680 | echo "configure:2681: checking for --enable-profile" >&5 |
10f2d63a VZ |
2681 | no_cache=0 |
2682 | # Check whether --enable-profile or --disable-profile was given. | |
2683 | if test "${enable_profile+set}" = set; then | |
2684 | enableval="$enable_profile" | |
698dcdb6 | 2685 | |
10f2d63a VZ |
2686 | if test "$enableval" = yes; then |
2687 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
2688 | else | |
2689 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
2690 | fi | |
698dcdb6 | 2691 | |
10f2d63a | 2692 | else |
698dcdb6 | 2693 | |
10f2d63a VZ |
2694 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` |
2695 | if test "x$LINE" != x ; then | |
2696 | eval "DEFAULT_$LINE" | |
2697 | else | |
2698 | no_cache=1 | |
2699 | fi | |
2700 | ||
2701 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
698dcdb6 VZ |
2702 | |
2703 | fi | |
10f2d63a VZ |
2704 | |
2705 | ||
2706 | eval "$ac_cv_use_profile" | |
2707 | if test "$no_cache" != 1; then | |
2708 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
2709 | fi | |
2710 | ||
2711 | if test "$wxUSE_PROFILE" = yes; then | |
698dcdb6 | 2712 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2713 | else |
698dcdb6 | 2714 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2715 | fi |
698dcdb6 | 2716 | |
10f2d63a | 2717 | |
698dcdb6 | 2718 | echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6 |
94054c1d | 2719 | echo "configure:2720: checking for --enable-no_rtti" >&5 |
10f2d63a VZ |
2720 | no_cache=0 |
2721 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
2722 | if test "${enable_no_rtti+set}" = set; then | |
2723 | enableval="$enable_no_rtti" | |
698dcdb6 | 2724 | |
10f2d63a VZ |
2725 | if test "$enableval" = yes; then |
2726 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
2727 | else | |
2728 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
2729 | fi | |
698dcdb6 | 2730 | |
10f2d63a | 2731 | else |
698dcdb6 | 2732 | |
10f2d63a VZ |
2733 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` |
2734 | if test "x$LINE" != x ; then | |
2735 | eval "DEFAULT_$LINE" | |
2736 | else | |
2737 | no_cache=1 | |
2738 | fi | |
2739 | ||
2740 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
698dcdb6 VZ |
2741 | |
2742 | fi | |
10f2d63a VZ |
2743 | |
2744 | ||
2745 | eval "$ac_cv_use_no_rtti" | |
2746 | if test "$no_cache" != 1; then | |
2747 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
2748 | fi | |
2749 | ||
2750 | if test "$wxUSE_NO_RTTI" = yes; then | |
698dcdb6 | 2751 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2752 | else |
698dcdb6 | 2753 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2754 | fi |
698dcdb6 | 2755 | |
10f2d63a | 2756 | |
698dcdb6 | 2757 | echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6 |
94054c1d | 2758 | echo "configure:2759: checking for --enable-no_exceptions" >&5 |
10f2d63a VZ |
2759 | no_cache=0 |
2760 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
2761 | if test "${enable_no_exceptions+set}" = set; then | |
2762 | enableval="$enable_no_exceptions" | |
698dcdb6 | 2763 | |
10f2d63a VZ |
2764 | if test "$enableval" = yes; then |
2765 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
2766 | else | |
2767 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
2768 | fi | |
698dcdb6 | 2769 | |
10f2d63a | 2770 | else |
698dcdb6 | 2771 | |
10f2d63a VZ |
2772 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` |
2773 | if test "x$LINE" != x ; then | |
2774 | eval "DEFAULT_$LINE" | |
2775 | else | |
2776 | no_cache=1 | |
2777 | fi | |
2778 | ||
2779 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
698dcdb6 VZ |
2780 | |
2781 | fi | |
10f2d63a VZ |
2782 | |
2783 | ||
2784 | eval "$ac_cv_use_no_exceptions" | |
2785 | if test "$no_cache" != 1; then | |
2786 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
2787 | fi | |
2788 | ||
2789 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
698dcdb6 | 2790 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2791 | else |
698dcdb6 | 2792 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2793 | fi |
698dcdb6 | 2794 | |
10f2d63a | 2795 | |
698dcdb6 | 2796 | echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6 |
94054c1d | 2797 | echo "configure:2798: checking for --enable-permissive" >&5 |
10f2d63a VZ |
2798 | no_cache=0 |
2799 | # Check whether --enable-permissive or --disable-permissive was given. | |
2800 | if test "${enable_permissive+set}" = set; then | |
2801 | enableval="$enable_permissive" | |
698dcdb6 | 2802 | |
10f2d63a VZ |
2803 | if test "$enableval" = yes; then |
2804 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
2805 | else | |
2806 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
2807 | fi | |
698dcdb6 | 2808 | |
10f2d63a | 2809 | else |
698dcdb6 | 2810 | |
10f2d63a VZ |
2811 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` |
2812 | if test "x$LINE" != x ; then | |
2813 | eval "DEFAULT_$LINE" | |
2814 | else | |
2815 | no_cache=1 | |
2816 | fi | |
2817 | ||
2818 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
698dcdb6 VZ |
2819 | |
2820 | fi | |
10f2d63a VZ |
2821 | |
2822 | ||
2823 | eval "$ac_cv_use_permissive" | |
2824 | if test "$no_cache" != 1; then | |
2825 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
2826 | fi | |
2827 | ||
2828 | if test "$wxUSE_PERMISSIVE" = yes; then | |
698dcdb6 | 2829 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2830 | else |
698dcdb6 | 2831 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2832 | fi |
698dcdb6 | 2833 | |
10f2d63a | 2834 | |
698dcdb6 | 2835 | echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6 |
94054c1d | 2836 | echo "configure:2837: checking for --enable-no_deps" >&5 |
10f2d63a VZ |
2837 | no_cache=0 |
2838 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
2839 | if test "${enable_no_deps+set}" = set; then | |
2840 | enableval="$enable_no_deps" | |
698dcdb6 | 2841 | |
10f2d63a VZ |
2842 | if test "$enableval" = yes; then |
2843 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
2844 | else | |
2845 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
2846 | fi | |
698dcdb6 | 2847 | |
10f2d63a | 2848 | else |
698dcdb6 | 2849 | |
10f2d63a VZ |
2850 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` |
2851 | if test "x$LINE" != x ; then | |
2852 | eval "DEFAULT_$LINE" | |
2853 | else | |
2854 | no_cache=1 | |
2855 | fi | |
2856 | ||
2857 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
698dcdb6 VZ |
2858 | |
2859 | fi | |
10f2d63a VZ |
2860 | |
2861 | ||
2862 | eval "$ac_cv_use_no_deps" | |
2863 | if test "$no_cache" != 1; then | |
2864 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
2865 | fi | |
2866 | ||
2867 | if test "$wxUSE_NO_DEPS" = yes; then | |
698dcdb6 | 2868 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2869 | else |
698dcdb6 | 2870 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2871 | fi |
698dcdb6 VZ |
2872 | |
2873 | ||
10f2d63a | 2874 | |
54276ccf | 2875 | echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6 |
94054c1d | 2876 | echo "configure:2877: checking for --enable-compat20" >&5 |
54276ccf VZ |
2877 | no_cache=0 |
2878 | # Check whether --enable-compat20 or --disable-compat20 was given. | |
2879 | if test "${enable_compat20+set}" = set; then | |
2880 | enableval="$enable_compat20" | |
2881 | ||
2882 | if test "$enableval" = yes; then | |
2883 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes' | |
2884 | else | |
2885 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no' | |
2886 | fi | |
2887 | ||
2888 | else | |
2889 | ||
2890 | LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}` | |
2891 | if test "x$LINE" != x ; then | |
2892 | eval "DEFAULT_$LINE" | |
2893 | else | |
2894 | no_cache=1 | |
2895 | fi | |
2896 | ||
2897 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2 | |
2898 | ||
2899 | fi | |
2900 | ||
2901 | ||
2902 | eval "$ac_cv_use_compat20" | |
2903 | if test "$no_cache" != 1; then | |
2904 | echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp | |
2905 | fi | |
2906 | ||
2907 | if test "$WXWIN_COMPATIBILITY_2" = yes; then | |
2908 | echo "$ac_t""yes" 1>&6 | |
2909 | else | |
2910 | echo "$ac_t""no" 1>&6 | |
2911 | fi | |
2912 | ||
2913 | ||
2914 | echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6 | |
94054c1d | 2915 | echo "configure:2916: checking for --enable-compat22" >&5 |
54276ccf VZ |
2916 | no_cache=0 |
2917 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
2918 | if test "${enable_compat22+set}" = set; then | |
2919 | enableval="$enable_compat22" | |
2920 | ||
2921 | if test "$enableval" = yes; then | |
2922 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
2923 | else | |
2924 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
2925 | fi | |
2926 | ||
2927 | else | |
2928 | ||
2929 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` | |
2930 | if test "x$LINE" != x ; then | |
2931 | eval "DEFAULT_$LINE" | |
2932 | else | |
2933 | no_cache=1 | |
2934 | fi | |
2935 | ||
2936 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
2937 | ||
2938 | fi | |
2939 | ||
2940 | ||
2941 | eval "$ac_cv_use_compat22" | |
2942 | if test "$no_cache" != 1; then | |
2943 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
2944 | fi | |
2945 | ||
2946 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
2947 | echo "$ac_t""yes" 1>&6 | |
2948 | else | |
2949 | echo "$ac_t""no" 1>&6 | |
2950 | fi | |
2951 | ||
2952 | ||
2953 | ||
698dcdb6 VZ |
2954 | |
2955 | echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6 | |
94054c1d | 2956 | echo "configure:2957: checking for --enable-intl" >&5 |
10f2d63a VZ |
2957 | no_cache=0 |
2958 | # Check whether --enable-intl or --disable-intl was given. | |
2959 | if test "${enable_intl+set}" = set; then | |
2960 | enableval="$enable_intl" | |
698dcdb6 | 2961 | |
10f2d63a VZ |
2962 | if test "$enableval" = yes; then |
2963 | ac_cv_use_intl='wxUSE_INTL=yes' | |
2964 | else | |
2965 | ac_cv_use_intl='wxUSE_INTL=no' | |
2966 | fi | |
698dcdb6 | 2967 | |
10f2d63a | 2968 | else |
698dcdb6 | 2969 | |
10f2d63a VZ |
2970 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` |
2971 | if test "x$LINE" != x ; then | |
2972 | eval "DEFAULT_$LINE" | |
2973 | else | |
2974 | no_cache=1 | |
2975 | fi | |
2976 | ||
2977 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
698dcdb6 VZ |
2978 | |
2979 | fi | |
10f2d63a VZ |
2980 | |
2981 | ||
2982 | eval "$ac_cv_use_intl" | |
2983 | if test "$no_cache" != 1; then | |
2984 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
2985 | fi | |
2986 | ||
2987 | if test "$wxUSE_INTL" = yes; then | |
698dcdb6 | 2988 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2989 | else |
698dcdb6 | 2990 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2991 | fi |
698dcdb6 | 2992 | |
10f2d63a | 2993 | |
698dcdb6 | 2994 | echo $ac_n "checking for --enable-config""... $ac_c" 1>&6 |
94054c1d | 2995 | echo "configure:2996: checking for --enable-config" >&5 |
10f2d63a VZ |
2996 | no_cache=0 |
2997 | # Check whether --enable-config or --disable-config was given. | |
2998 | if test "${enable_config+set}" = set; then | |
2999 | enableval="$enable_config" | |
698dcdb6 | 3000 | |
10f2d63a VZ |
3001 | if test "$enableval" = yes; then |
3002 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
3003 | else | |
3004 | ac_cv_use_config='wxUSE_CONFIG=no' | |
3005 | fi | |
698dcdb6 | 3006 | |
10f2d63a | 3007 | else |
698dcdb6 | 3008 | |
10f2d63a VZ |
3009 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` |
3010 | if test "x$LINE" != x ; then | |
3011 | eval "DEFAULT_$LINE" | |
3012 | else | |
3013 | no_cache=1 | |
3014 | fi | |
3015 | ||
3016 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
698dcdb6 VZ |
3017 | |
3018 | fi | |
10f2d63a VZ |
3019 | |
3020 | ||
3021 | eval "$ac_cv_use_config" | |
3022 | if test "$no_cache" != 1; then | |
3023 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
3024 | fi | |
3025 | ||
3026 | if test "$wxUSE_CONFIG" = yes; then | |
698dcdb6 | 3027 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3028 | else |
698dcdb6 | 3029 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3030 | fi |
698dcdb6 VZ |
3031 | |
3032 | ||
b12915c1 | 3033 | |
698dcdb6 | 3034 | echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6 |
94054c1d | 3035 | echo "configure:3036: checking for --enable-sockets" >&5 |
10f2d63a VZ |
3036 | no_cache=0 |
3037 | # Check whether --enable-sockets or --disable-sockets was given. | |
3038 | if test "${enable_sockets+set}" = set; then | |
3039 | enableval="$enable_sockets" | |
698dcdb6 | 3040 | |
10f2d63a VZ |
3041 | if test "$enableval" = yes; then |
3042 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
3043 | else | |
3044 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
3045 | fi | |
698dcdb6 | 3046 | |
10f2d63a | 3047 | else |
698dcdb6 | 3048 | |
10f2d63a VZ |
3049 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` |
3050 | if test "x$LINE" != x ; then | |
3051 | eval "DEFAULT_$LINE" | |
3052 | else | |
3053 | no_cache=1 | |
3054 | fi | |
3055 | ||
3056 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
698dcdb6 VZ |
3057 | |
3058 | fi | |
10f2d63a VZ |
3059 | |
3060 | ||
3061 | eval "$ac_cv_use_sockets" | |
3062 | if test "$no_cache" != 1; then | |
3063 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
3064 | fi | |
3065 | ||
3066 | if test "$wxUSE_SOCKETS" = yes; then | |
698dcdb6 | 3067 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3068 | else |
698dcdb6 | 3069 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3070 | fi |
698dcdb6 | 3071 | |
b12915c1 | 3072 | |
698dcdb6 VZ |
3073 | |
3074 | echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6 | |
94054c1d | 3075 | echo "configure:3076: checking for --enable-ipc" >&5 |
10f2d63a | 3076 | no_cache=0 |
eb4efbdc VZ |
3077 | # Check whether --enable-ipc or --disable-ipc was given. |
3078 | if test "${enable_ipc+set}" = set; then | |
3079 | enableval="$enable_ipc" | |
698dcdb6 | 3080 | |
10f2d63a | 3081 | if test "$enableval" = yes; then |
eb4efbdc | 3082 | ac_cv_use_ipc='wxUSE_IPC=yes' |
10f2d63a | 3083 | else |
eb4efbdc | 3084 | ac_cv_use_ipc='wxUSE_IPC=no' |
10f2d63a | 3085 | fi |
698dcdb6 | 3086 | |
10f2d63a | 3087 | else |
698dcdb6 | 3088 | |
eb4efbdc | 3089 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` |
10f2d63a VZ |
3090 | if test "x$LINE" != x ; then |
3091 | eval "DEFAULT_$LINE" | |
3092 | else | |
3093 | no_cache=1 | |
3094 | fi | |
3095 | ||
eb4efbdc | 3096 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC |
698dcdb6 VZ |
3097 | |
3098 | fi | |
10f2d63a VZ |
3099 | |
3100 | ||
eb4efbdc | 3101 | eval "$ac_cv_use_ipc" |
10f2d63a | 3102 | if test "$no_cache" != 1; then |
eb4efbdc | 3103 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3104 | fi |
3105 | ||
eb4efbdc | 3106 | if test "$wxUSE_IPC" = yes; then |
698dcdb6 | 3107 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3108 | else |
698dcdb6 | 3109 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3110 | fi |
698dcdb6 VZ |
3111 | |
3112 | ||
eb4efbdc | 3113 | |
1e6feb95 | 3114 | echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6 |
94054c1d | 3115 | echo "configure:3116: checking for --enable-cmdline" >&5 |
1e6feb95 VZ |
3116 | no_cache=0 |
3117 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
3118 | if test "${enable_cmdline+set}" = set; then | |
3119 | enableval="$enable_cmdline" | |
3120 | ||
3121 | if test "$enableval" = yes; then | |
3122 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
3123 | else | |
3124 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
3125 | fi | |
3126 | ||
3127 | else | |
3128 | ||
3129 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
3130 | if test "x$LINE" != x ; then | |
3131 | eval "DEFAULT_$LINE" | |
3132 | else | |
3133 | no_cache=1 | |
3134 | fi | |
3135 | ||
3136 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
3137 | ||
3138 | fi | |
3139 | ||
3140 | ||
3141 | eval "$ac_cv_use_cmdline" | |
3142 | if test "$no_cache" != 1; then | |
3143 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
3144 | fi | |
3145 | ||
3146 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
3147 | echo "$ac_t""yes" 1>&6 | |
3148 | else | |
3149 | echo "$ac_t""no" 1>&6 | |
3150 | fi | |
3151 | ||
3152 | ||
3153 | echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6 | |
94054c1d | 3154 | echo "configure:3155: checking for --enable-datetime" >&5 |
1e6feb95 VZ |
3155 | no_cache=0 |
3156 | # Check whether --enable-datetime or --disable-datetime was given. | |
3157 | if test "${enable_datetime+set}" = set; then | |
3158 | enableval="$enable_datetime" | |
3159 | ||
3160 | if test "$enableval" = yes; then | |
3161 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
3162 | else | |
3163 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
3164 | fi | |
3165 | ||
3166 | else | |
3167 | ||
3168 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
3169 | if test "x$LINE" != x ; then | |
3170 | eval "DEFAULT_$LINE" | |
3171 | else | |
3172 | no_cache=1 | |
3173 | fi | |
3174 | ||
3175 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
3176 | ||
3177 | fi | |
3178 | ||
3179 | ||
3180 | eval "$ac_cv_use_datetime" | |
3181 | if test "$no_cache" != 1; then | |
3182 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
3183 | fi | |
3184 | ||
3185 | if test "$wxUSE_DATETIME" = yes; then | |
3186 | echo "$ac_t""yes" 1>&6 | |
3187 | else | |
3188 | echo "$ac_t""no" 1>&6 | |
3189 | fi | |
3190 | ||
3191 | ||
3192 | echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6 | |
94054c1d | 3193 | echo "configure:3194: checking for --enable-timedate" >&5 |
1e6feb95 VZ |
3194 | no_cache=0 |
3195 | # Check whether --enable-timedate or --disable-timedate was given. | |
3196 | if test "${enable_timedate+set}" = set; then | |
3197 | enableval="$enable_timedate" | |
3198 | ||
3199 | if test "$enableval" = yes; then | |
3200 | ac_cv_use_timedate='wxUSE_TIMEDATE=yes' | |
3201 | else | |
3202 | ac_cv_use_timedate='wxUSE_TIMEDATE=no' | |
3203 | fi | |
3204 | ||
3205 | else | |
3206 | ||
3207 | LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}` | |
3208 | if test "x$LINE" != x ; then | |
3209 | eval "DEFAULT_$LINE" | |
3210 | else | |
3211 | no_cache=1 | |
3212 | fi | |
3213 | ||
3214 | ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE | |
3215 | ||
3216 | fi | |
3217 | ||
3218 | ||
3219 | eval "$ac_cv_use_timedate" | |
3220 | if test "$no_cache" != 1; then | |
3221 | echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp | |
3222 | fi | |
3223 | ||
3224 | if test "$wxUSE_TIMEDATE" = yes; then | |
3225 | echo "$ac_t""yes" 1>&6 | |
3226 | else | |
3227 | echo "$ac_t""no" 1>&6 | |
3228 | fi | |
3229 | ||
3230 | ||
3231 | echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6 | |
94054c1d | 3232 | echo "configure:3233: checking for --enable-stopwatch" >&5 |
1e6feb95 VZ |
3233 | no_cache=0 |
3234 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
3235 | if test "${enable_stopwatch+set}" = set; then | |
3236 | enableval="$enable_stopwatch" | |
3237 | ||
3238 | if test "$enableval" = yes; then | |
3239 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
3240 | else | |
3241 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
3242 | fi | |
3243 | ||
3244 | else | |
3245 | ||
3246 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` | |
3247 | if test "x$LINE" != x ; then | |
3248 | eval "DEFAULT_$LINE" | |
3249 | else | |
3250 | no_cache=1 | |
3251 | fi | |
3252 | ||
3253 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
3254 | ||
3255 | fi | |
3256 | ||
3257 | ||
3258 | eval "$ac_cv_use_stopwatch" | |
3259 | if test "$no_cache" != 1; then | |
3260 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
3261 | fi | |
3262 | ||
3263 | if test "$wxUSE_STOPWATCH" = yes; then | |
3264 | echo "$ac_t""yes" 1>&6 | |
3265 | else | |
3266 | echo "$ac_t""no" 1>&6 | |
3267 | fi | |
3268 | ||
3269 | ||
698dcdb6 | 3270 | echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6 |
94054c1d | 3271 | echo "configure:3272: checking for --enable-dialupman" >&5 |
10f2d63a | 3272 | no_cache=0 |
eb4efbdc VZ |
3273 | # Check whether --enable-dialupman or --disable-dialupman was given. |
3274 | if test "${enable_dialupman+set}" = set; then | |
3275 | enableval="$enable_dialupman" | |
698dcdb6 | 3276 | |
10f2d63a | 3277 | if test "$enableval" = yes; then |
eb4efbdc | 3278 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' |
10f2d63a | 3279 | else |
eb4efbdc | 3280 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' |
10f2d63a | 3281 | fi |
698dcdb6 | 3282 | |
10f2d63a | 3283 | else |
698dcdb6 | 3284 | |
eb4efbdc | 3285 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3286 | if test "x$LINE" != x ; then |
3287 | eval "DEFAULT_$LINE" | |
3288 | else | |
3289 | no_cache=1 | |
3290 | fi | |
3291 | ||
eb4efbdc | 3292 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER |
698dcdb6 VZ |
3293 | |
3294 | fi | |
10f2d63a VZ |
3295 | |
3296 | ||
eb4efbdc | 3297 | eval "$ac_cv_use_dialupman" |
10f2d63a | 3298 | if test "$no_cache" != 1; then |
eb4efbdc | 3299 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3300 | fi |
3301 | ||
eb4efbdc | 3302 | if test "$wxUSE_DIALUP_MANAGER" = yes; then |
698dcdb6 | 3303 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3304 | else |
698dcdb6 | 3305 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3306 | fi |
698dcdb6 | 3307 | |
10f2d63a | 3308 | |
698dcdb6 | 3309 | echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6 |
94054c1d | 3310 | echo "configure:3311: checking for --enable-apple_ieee" >&5 |
10f2d63a VZ |
3311 | no_cache=0 |
3312 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
3313 | if test "${enable_apple_ieee+set}" = set; then | |
3314 | enableval="$enable_apple_ieee" | |
698dcdb6 | 3315 | |
10f2d63a VZ |
3316 | if test "$enableval" = yes; then |
3317 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
3318 | else | |
3319 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
3320 | fi | |
698dcdb6 | 3321 | |
10f2d63a | 3322 | else |
698dcdb6 | 3323 | |
10f2d63a VZ |
3324 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` |
3325 | if test "x$LINE" != x ; then | |
3326 | eval "DEFAULT_$LINE" | |
3327 | else | |
3328 | no_cache=1 | |
3329 | fi | |
3330 | ||
3331 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
698dcdb6 VZ |
3332 | |
3333 | fi | |
10f2d63a VZ |
3334 | |
3335 | ||
3336 | eval "$ac_cv_use_apple_ieee" | |
3337 | if test "$no_cache" != 1; then | |
3338 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
3339 | fi | |
3340 | ||
3341 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
698dcdb6 | 3342 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3343 | else |
698dcdb6 | 3344 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3345 | fi |
698dcdb6 | 3346 | |
10f2d63a | 3347 | |
1e6feb95 | 3348 | echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6 |
94054c1d | 3349 | echo "configure:3350: checking for --enable-timer" >&5 |
10f2d63a | 3350 | no_cache=0 |
1e6feb95 VZ |
3351 | # Check whether --enable-timer or --disable-timer was given. |
3352 | if test "${enable_timer+set}" = set; then | |
3353 | enableval="$enable_timer" | |
698dcdb6 | 3354 | |
10f2d63a | 3355 | if test "$enableval" = yes; then |
1e6feb95 | 3356 | ac_cv_use_timer='wxUSE_TIMER=yes' |
10f2d63a | 3357 | else |
1e6feb95 | 3358 | ac_cv_use_timer='wxUSE_TIMER=no' |
10f2d63a | 3359 | fi |
698dcdb6 | 3360 | |
10f2d63a | 3361 | else |
698dcdb6 | 3362 | |
1e6feb95 | 3363 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3364 | if test "x$LINE" != x ; then |
3365 | eval "DEFAULT_$LINE" | |
3366 | else | |
3367 | no_cache=1 | |
3368 | fi | |
3369 | ||
1e6feb95 | 3370 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER |
698dcdb6 VZ |
3371 | |
3372 | fi | |
10f2d63a VZ |
3373 | |
3374 | ||
1e6feb95 | 3375 | eval "$ac_cv_use_timer" |
10f2d63a | 3376 | if test "$no_cache" != 1; then |
1e6feb95 | 3377 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3378 | fi |
3379 | ||
1e6feb95 | 3380 | if test "$wxUSE_TIMER" = yes; then |
698dcdb6 | 3381 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3382 | else |
698dcdb6 | 3383 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3384 | fi |
698dcdb6 | 3385 | |
10f2d63a | 3386 | |
698dcdb6 | 3387 | echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6 |
94054c1d | 3388 | echo "configure:3389: checking for --enable-wave" >&5 |
10f2d63a VZ |
3389 | no_cache=0 |
3390 | # Check whether --enable-wave or --disable-wave was given. | |
3391 | if test "${enable_wave+set}" = set; then | |
3392 | enableval="$enable_wave" | |
698dcdb6 | 3393 | |
10f2d63a VZ |
3394 | if test "$enableval" = yes; then |
3395 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
3396 | else | |
3397 | ac_cv_use_wave='wxUSE_WAVE=no' | |
3398 | fi | |
698dcdb6 | 3399 | |
10f2d63a | 3400 | else |
698dcdb6 | 3401 | |
10f2d63a VZ |
3402 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` |
3403 | if test "x$LINE" != x ; then | |
3404 | eval "DEFAULT_$LINE" | |
3405 | else | |
3406 | no_cache=1 | |
3407 | fi | |
3408 | ||
3409 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
698dcdb6 VZ |
3410 | |
3411 | fi | |
10f2d63a VZ |
3412 | |
3413 | ||
3414 | eval "$ac_cv_use_wave" | |
3415 | if test "$no_cache" != 1; then | |
3416 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
3417 | fi | |
3418 | ||
3419 | if test "$wxUSE_WAVE" = yes; then | |
698dcdb6 | 3420 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3421 | else |
698dcdb6 | 3422 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3423 | fi |
698dcdb6 | 3424 | |
10f2d63a | 3425 | |
698dcdb6 | 3426 | echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6 |
94054c1d | 3427 | echo "configure:3428: checking for --enable-fraction" >&5 |
10f2d63a VZ |
3428 | no_cache=0 |
3429 | # Check whether --enable-fraction or --disable-fraction was given. | |
3430 | if test "${enable_fraction+set}" = set; then | |
3431 | enableval="$enable_fraction" | |
698dcdb6 | 3432 | |
10f2d63a VZ |
3433 | if test "$enableval" = yes; then |
3434 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
3435 | else | |
3436 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
3437 | fi | |
698dcdb6 | 3438 | |
10f2d63a | 3439 | else |
698dcdb6 | 3440 | |
10f2d63a VZ |
3441 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` |
3442 | if test "x$LINE" != x ; then | |
3443 | eval "DEFAULT_$LINE" | |
3444 | else | |
3445 | no_cache=1 | |
3446 | fi | |
3447 | ||
3448 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
698dcdb6 VZ |
3449 | |
3450 | fi | |
10f2d63a VZ |
3451 | |
3452 | ||
3453 | eval "$ac_cv_use_fraction" | |
3454 | if test "$no_cache" != 1; then | |
3455 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
3456 | fi | |
3457 | ||
3458 | if test "$wxUSE_FRACTION" = yes; then | |
698dcdb6 | 3459 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3460 | else |
698dcdb6 | 3461 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3462 | fi |
698dcdb6 | 3463 | |
10f2d63a | 3464 | |
698dcdb6 | 3465 | echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6 |
94054c1d | 3466 | echo "configure:3467: checking for --enable-dynlib" >&5 |
10f2d63a VZ |
3467 | no_cache=0 |
3468 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
3469 | if test "${enable_dynlib+set}" = set; then | |
3470 | enableval="$enable_dynlib" | |
698dcdb6 | 3471 | |
10f2d63a VZ |
3472 | if test "$enableval" = yes; then |
3473 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
3474 | else | |
3475 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
3476 | fi | |
698dcdb6 | 3477 | |
10f2d63a | 3478 | else |
698dcdb6 | 3479 | |
10f2d63a VZ |
3480 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` |
3481 | if test "x$LINE" != x ; then | |
3482 | eval "DEFAULT_$LINE" | |
3483 | else | |
3484 | no_cache=1 | |
3485 | fi | |
3486 | ||
3487 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
698dcdb6 VZ |
3488 | |
3489 | fi | |
10f2d63a VZ |
3490 | |
3491 | ||
3492 | eval "$ac_cv_use_dynlib" | |
3493 | if test "$no_cache" != 1; then | |
3494 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
3495 | fi | |
3496 | ||
3497 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
698dcdb6 | 3498 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3499 | else |
698dcdb6 | 3500 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3501 | fi |
698dcdb6 | 3502 | |
10f2d63a | 3503 | |
698dcdb6 | 3504 | echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6 |
94054c1d | 3505 | echo "configure:3506: checking for --enable-longlong" >&5 |
10f2d63a VZ |
3506 | no_cache=0 |
3507 | # Check whether --enable-longlong or --disable-longlong was given. | |
3508 | if test "${enable_longlong+set}" = set; then | |
3509 | enableval="$enable_longlong" | |
698dcdb6 | 3510 | |
10f2d63a VZ |
3511 | if test "$enableval" = yes; then |
3512 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
3513 | else | |
3514 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
3515 | fi | |
698dcdb6 | 3516 | |
10f2d63a | 3517 | else |
698dcdb6 | 3518 | |
10f2d63a VZ |
3519 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` |
3520 | if test "x$LINE" != x ; then | |
3521 | eval "DEFAULT_$LINE" | |
3522 | else | |
3523 | no_cache=1 | |
3524 | fi | |
3525 | ||
3526 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
698dcdb6 VZ |
3527 | |
3528 | fi | |
10f2d63a VZ |
3529 | |
3530 | ||
3531 | eval "$ac_cv_use_longlong" | |
3532 | if test "$no_cache" != 1; then | |
3533 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
3534 | fi | |
3535 | ||
3536 | if test "$wxUSE_LONGLONG" = yes; then | |
698dcdb6 | 3537 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3538 | else |
698dcdb6 | 3539 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3540 | fi |
698dcdb6 | 3541 | |
10f2d63a | 3542 | |
698dcdb6 | 3543 | echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6 |
94054c1d | 3544 | echo "configure:3545: checking for --enable-geometry" >&5 |
e8f65ba6 RR |
3545 | no_cache=0 |
3546 | # Check whether --enable-geometry or --disable-geometry was given. | |
3547 | if test "${enable_geometry+set}" = set; then | |
3548 | enableval="$enable_geometry" | |
698dcdb6 | 3549 | |
e8f65ba6 RR |
3550 | if test "$enableval" = yes; then |
3551 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
3552 | else | |
3553 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
3554 | fi | |
698dcdb6 | 3555 | |
e8f65ba6 | 3556 | else |
698dcdb6 | 3557 | |
e8f65ba6 RR |
3558 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` |
3559 | if test "x$LINE" != x ; then | |
3560 | eval "DEFAULT_$LINE" | |
3561 | else | |
3562 | no_cache=1 | |
3563 | fi | |
3564 | ||
3565 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
698dcdb6 VZ |
3566 | |
3567 | fi | |
e8f65ba6 RR |
3568 | |
3569 | ||
3570 | eval "$ac_cv_use_geometry" | |
3571 | if test "$no_cache" != 1; then | |
3572 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
3573 | fi | |
3574 | ||
3575 | if test "$wxUSE_GEOMETRY" = yes; then | |
698dcdb6 | 3576 | echo "$ac_t""yes" 1>&6 |
e8f65ba6 | 3577 | else |
698dcdb6 | 3578 | echo "$ac_t""no" 1>&6 |
e8f65ba6 | 3579 | fi |
698dcdb6 | 3580 | |
e8f65ba6 | 3581 | |
698dcdb6 | 3582 | echo $ac_n "checking for --enable-log""... $ac_c" 1>&6 |
94054c1d | 3583 | echo "configure:3584: checking for --enable-log" >&5 |
10f2d63a VZ |
3584 | no_cache=0 |
3585 | # Check whether --enable-log or --disable-log was given. | |
3586 | if test "${enable_log+set}" = set; then | |
3587 | enableval="$enable_log" | |
698dcdb6 | 3588 | |
10f2d63a VZ |
3589 | if test "$enableval" = yes; then |
3590 | ac_cv_use_log='wxUSE_LOG=yes' | |
3591 | else | |
3592 | ac_cv_use_log='wxUSE_LOG=no' | |
3593 | fi | |
698dcdb6 | 3594 | |
10f2d63a | 3595 | else |
698dcdb6 | 3596 | |
10f2d63a VZ |
3597 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` |
3598 | if test "x$LINE" != x ; then | |
3599 | eval "DEFAULT_$LINE" | |
3600 | else | |
3601 | no_cache=1 | |
3602 | fi | |
3603 | ||
3604 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
698dcdb6 VZ |
3605 | |
3606 | fi | |
10f2d63a VZ |
3607 | |
3608 | ||
3609 | eval "$ac_cv_use_log" | |
3610 | if test "$no_cache" != 1; then | |
3611 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
3612 | fi | |
3613 | ||
3614 | if test "$wxUSE_LOG" = yes; then | |
698dcdb6 | 3615 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3616 | else |
698dcdb6 | 3617 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3618 | fi |
698dcdb6 | 3619 | |
10f2d63a | 3620 | |
698dcdb6 | 3621 | echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6 |
94054c1d | 3622 | echo "configure:3623: checking for --enable-streams" >&5 |
10f2d63a VZ |
3623 | no_cache=0 |
3624 | # Check whether --enable-streams or --disable-streams was given. | |
3625 | if test "${enable_streams+set}" = set; then | |
3626 | enableval="$enable_streams" | |
698dcdb6 | 3627 | |
10f2d63a VZ |
3628 | if test "$enableval" = yes; then |
3629 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
3630 | else | |
3631 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
3632 | fi | |
698dcdb6 | 3633 | |
10f2d63a | 3634 | else |
698dcdb6 | 3635 | |
10f2d63a VZ |
3636 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` |
3637 | if test "x$LINE" != x ; then | |
3638 | eval "DEFAULT_$LINE" | |
3639 | else | |
3640 | no_cache=1 | |
3641 | fi | |
3642 | ||
3643 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
698dcdb6 VZ |
3644 | |
3645 | fi | |
10f2d63a VZ |
3646 | |
3647 | ||
3648 | eval "$ac_cv_use_streams" | |
3649 | if test "$no_cache" != 1; then | |
3650 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
3651 | fi | |
3652 | ||
3653 | if test "$wxUSE_STREAMS" = yes; then | |
698dcdb6 | 3654 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3655 | else |
698dcdb6 | 3656 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3657 | fi |
698dcdb6 | 3658 | |
10f2d63a | 3659 | |
698dcdb6 | 3660 | echo $ac_n "checking for --enable-file""... $ac_c" 1>&6 |
94054c1d | 3661 | echo "configure:3662: checking for --enable-file" >&5 |
10f2d63a VZ |
3662 | no_cache=0 |
3663 | # Check whether --enable-file or --disable-file was given. | |
3664 | if test "${enable_file+set}" = set; then | |
3665 | enableval="$enable_file" | |
698dcdb6 | 3666 | |
10f2d63a VZ |
3667 | if test "$enableval" = yes; then |
3668 | ac_cv_use_file='wxUSE_FILE=yes' | |
3669 | else | |
3670 | ac_cv_use_file='wxUSE_FILE=no' | |
3671 | fi | |
698dcdb6 | 3672 | |
10f2d63a | 3673 | else |
698dcdb6 | 3674 | |
10f2d63a VZ |
3675 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` |
3676 | if test "x$LINE" != x ; then | |
3677 | eval "DEFAULT_$LINE" | |
3678 | else | |
3679 | no_cache=1 | |
3680 | fi | |
3681 | ||
3682 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
698dcdb6 VZ |
3683 | |
3684 | fi | |
10f2d63a VZ |
3685 | |
3686 | ||
3687 | eval "$ac_cv_use_file" | |
3688 | if test "$no_cache" != 1; then | |
3689 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
3690 | fi | |
3691 | ||
3692 | if test "$wxUSE_FILE" = yes; then | |
698dcdb6 | 3693 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3694 | else |
698dcdb6 | 3695 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3696 | fi |
698dcdb6 | 3697 | |
10f2d63a | 3698 | |
1e6feb95 | 3699 | echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6 |
94054c1d | 3700 | echo "configure:3701: checking for --enable-ffile" >&5 |
10f2d63a | 3701 | no_cache=0 |
1e6feb95 VZ |
3702 | # Check whether --enable-ffile or --disable-ffile was given. |
3703 | if test "${enable_ffile+set}" = set; then | |
3704 | enableval="$enable_ffile" | |
698dcdb6 | 3705 | |
10f2d63a | 3706 | if test "$enableval" = yes; then |
1e6feb95 | 3707 | ac_cv_use_ffile='wxUSE_FFILE=yes' |
10f2d63a | 3708 | else |
1e6feb95 | 3709 | ac_cv_use_ffile='wxUSE_FFILE=no' |
10f2d63a | 3710 | fi |
698dcdb6 | 3711 | |
10f2d63a | 3712 | else |
698dcdb6 | 3713 | |
1e6feb95 | 3714 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
3715 | if test "x$LINE" != x ; then |
3716 | eval "DEFAULT_$LINE" | |
3717 | else | |
3718 | no_cache=1 | |
3719 | fi | |
3720 | ||
1e6feb95 | 3721 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE |
698dcdb6 VZ |
3722 | |
3723 | fi | |
10f2d63a VZ |
3724 | |
3725 | ||
1e6feb95 | 3726 | eval "$ac_cv_use_ffile" |
10f2d63a | 3727 | if test "$no_cache" != 1; then |
1e6feb95 | 3728 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3729 | fi |
3730 | ||
1e6feb95 | 3731 | if test "$wxUSE_FFILE" = yes; then |
698dcdb6 | 3732 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3733 | else |
698dcdb6 | 3734 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3735 | fi |
698dcdb6 | 3736 | |
10f2d63a | 3737 | |
a3a584a7 | 3738 | echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6 |
94054c1d | 3739 | echo "configure:3740: checking for --enable-textbuf" >&5 |
a3a584a7 VZ |
3740 | no_cache=0 |
3741 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
3742 | if test "${enable_textbuf+set}" = set; then | |
3743 | enableval="$enable_textbuf" | |
3744 | ||
3745 | if test "$enableval" = yes; then | |
3746 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
3747 | else | |
3748 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
3749 | fi | |
3750 | ||
3751 | else | |
3752 | ||
3753 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` | |
3754 | if test "x$LINE" != x ; then | |
3755 | eval "DEFAULT_$LINE" | |
3756 | else | |
3757 | no_cache=1 | |
3758 | fi | |
3759 | ||
3760 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
3761 | ||
3762 | fi | |
3763 | ||
3764 | ||
3765 | eval "$ac_cv_use_textbuf" | |
3766 | if test "$no_cache" != 1; then | |
3767 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
3768 | fi | |
3769 | ||
3770 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
3771 | echo "$ac_t""yes" 1>&6 | |
3772 | else | |
3773 | echo "$ac_t""no" 1>&6 | |
3774 | fi | |
3775 | ||
3776 | ||
1e6feb95 | 3777 | echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6 |
94054c1d | 3778 | echo "configure:3779: checking for --enable-textfile" >&5 |
10f2d63a | 3779 | no_cache=0 |
1e6feb95 VZ |
3780 | # Check whether --enable-textfile or --disable-textfile was given. |
3781 | if test "${enable_textfile+set}" = set; then | |
3782 | enableval="$enable_textfile" | |
698dcdb6 | 3783 | |
10f2d63a | 3784 | if test "$enableval" = yes; then |
1e6feb95 | 3785 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' |
10f2d63a | 3786 | else |
1e6feb95 | 3787 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' |
10f2d63a | 3788 | fi |
698dcdb6 | 3789 | |
10f2d63a | 3790 | else |
698dcdb6 | 3791 | |
1e6feb95 | 3792 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
3793 | if test "x$LINE" != x ; then |
3794 | eval "DEFAULT_$LINE" | |
3795 | else | |
3796 | no_cache=1 | |
3797 | fi | |
3798 | ||
1e6feb95 | 3799 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE |
698dcdb6 VZ |
3800 | |
3801 | fi | |
10f2d63a VZ |
3802 | |
3803 | ||
1e6feb95 | 3804 | eval "$ac_cv_use_textfile" |
10f2d63a | 3805 | if test "$no_cache" != 1; then |
1e6feb95 | 3806 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3807 | fi |
3808 | ||
1e6feb95 | 3809 | if test "$wxUSE_TEXTFILE" = yes; then |
698dcdb6 | 3810 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3811 | else |
698dcdb6 | 3812 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3813 | fi |
698dcdb6 | 3814 | |
10f2d63a | 3815 | |
1e6feb95 | 3816 | echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6 |
94054c1d | 3817 | echo "configure:3818: checking for --enable-fontmap" >&5 |
10f2d63a | 3818 | no_cache=0 |
1e6feb95 VZ |
3819 | # Check whether --enable-fontmap or --disable-fontmap was given. |
3820 | if test "${enable_fontmap+set}" = set; then | |
3821 | enableval="$enable_fontmap" | |
698dcdb6 | 3822 | |
10f2d63a | 3823 | if test "$enableval" = yes; then |
1e6feb95 | 3824 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' |
10f2d63a | 3825 | else |
1e6feb95 | 3826 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' |
10f2d63a | 3827 | fi |
698dcdb6 | 3828 | |
10f2d63a | 3829 | else |
698dcdb6 | 3830 | |
1e6feb95 | 3831 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` |
10f2d63a VZ |
3832 | if test "x$LINE" != x ; then |
3833 | eval "DEFAULT_$LINE" | |
3834 | else | |
3835 | no_cache=1 | |
3836 | fi | |
3837 | ||
1e6feb95 | 3838 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP |
698dcdb6 VZ |
3839 | |
3840 | fi | |
10f2d63a VZ |
3841 | |
3842 | ||
1e6feb95 | 3843 | eval "$ac_cv_use_fontmap" |
10f2d63a | 3844 | if test "$no_cache" != 1; then |
1e6feb95 | 3845 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3846 | fi |
3847 | ||
1e6feb95 | 3848 | if test "$wxUSE_FONTMAP" = yes; then |
698dcdb6 | 3849 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3850 | else |
698dcdb6 | 3851 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3852 | fi |
698dcdb6 | 3853 | |
10f2d63a | 3854 | |
1e6feb95 | 3855 | echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6 |
94054c1d | 3856 | echo "configure:3857: checking for --enable-unicode" >&5 |
10f2d63a | 3857 | no_cache=0 |
1e6feb95 VZ |
3858 | # Check whether --enable-unicode or --disable-unicode was given. |
3859 | if test "${enable_unicode+set}" = set; then | |
3860 | enableval="$enable_unicode" | |
3861 | ||
3862 | if test "$enableval" = yes; then | |
3863 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
3864 | else | |
3865 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
3866 | fi | |
3867 | ||
3868 | else | |
3869 | ||
3870 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
3871 | if test "x$LINE" != x ; then | |
3872 | eval "DEFAULT_$LINE" | |
3873 | else | |
3874 | no_cache=1 | |
3875 | fi | |
3876 | ||
3877 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
3878 | ||
3879 | fi | |
3880 | ||
3881 | ||
3882 | eval "$ac_cv_use_unicode" | |
3883 | if test "$no_cache" != 1; then | |
3884 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
3885 | fi | |
3886 | ||
3887 | if test "$wxUSE_UNICODE" = yes; then | |
3888 | echo "$ac_t""yes" 1>&6 | |
3889 | else | |
3890 | echo "$ac_t""no" 1>&6 | |
3891 | fi | |
3892 | ||
3893 | ||
1e6feb95 | 3894 | echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6 |
94054c1d | 3895 | echo "configure:3896: checking for --enable-wxprintfv" >&5 |
1e6feb95 VZ |
3896 | no_cache=0 |
3897 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
3898 | if test "${enable_wxprintfv+set}" = set; then | |
3899 | enableval="$enable_wxprintfv" | |
3900 | ||
3901 | if test "$enableval" = yes; then | |
10f2d63a VZ |
3902 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' |
3903 | else | |
3904 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
3905 | fi | |
698dcdb6 | 3906 | |
10f2d63a | 3907 | else |
698dcdb6 | 3908 | |
10f2d63a VZ |
3909 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` |
3910 | if test "x$LINE" != x ; then | |
3911 | eval "DEFAULT_$LINE" | |
3912 | else | |
3913 | no_cache=1 | |
3914 | fi | |
3915 | ||
3916 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
698dcdb6 VZ |
3917 | |
3918 | fi | |
10f2d63a VZ |
3919 | |
3920 | ||
3921 | eval "$ac_cv_use_wxprintfv" | |
3922 | if test "$no_cache" != 1; then | |
3923 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
3924 | fi | |
3925 | ||
3926 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
698dcdb6 | 3927 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3928 | else |
698dcdb6 | 3929 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3930 | fi |
698dcdb6 | 3931 | |
10f2d63a | 3932 | |
698dcdb6 | 3933 | echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6 |
94054c1d | 3934 | echo "configure:3935: checking for --enable-std_iostreams" >&5 |
10f2d63a VZ |
3935 | no_cache=0 |
3936 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
3937 | if test "${enable_std_iostreams+set}" = set; then | |
3938 | enableval="$enable_std_iostreams" | |
698dcdb6 | 3939 | |
10f2d63a VZ |
3940 | if test "$enableval" = yes; then |
3941 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
3942 | else | |
3943 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
3944 | fi | |
698dcdb6 | 3945 | |
10f2d63a | 3946 | else |
698dcdb6 | 3947 | |
10f2d63a VZ |
3948 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
3949 | if test "x$LINE" != x ; then | |
3950 | eval "DEFAULT_$LINE" | |
3951 | else | |
3952 | no_cache=1 | |
3953 | fi | |
3954 | ||
3955 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
698dcdb6 VZ |
3956 | |
3957 | fi | |
10f2d63a VZ |
3958 | |
3959 | ||
3960 | eval "$ac_cv_use_std_iostreams" | |
3961 | if test "$no_cache" != 1; then | |
3962 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
3963 | fi | |
3964 | ||
3965 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
698dcdb6 | 3966 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3967 | else |
698dcdb6 | 3968 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3969 | fi |
698dcdb6 | 3970 | |
10f2d63a | 3971 | |
698dcdb6 | 3972 | echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6 |
94054c1d | 3973 | echo "configure:3974: checking for --enable-filesystem" >&5 |
24528b0c VS |
3974 | no_cache=0 |
3975 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
3976 | if test "${enable_filesystem+set}" = set; then | |
3977 | enableval="$enable_filesystem" | |
698dcdb6 | 3978 | |
24528b0c VS |
3979 | if test "$enableval" = yes; then |
3980 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
3981 | else | |
3982 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
3983 | fi | |
698dcdb6 | 3984 | |
24528b0c | 3985 | else |
698dcdb6 | 3986 | |
24528b0c VS |
3987 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` |
3988 | if test "x$LINE" != x ; then | |
3989 | eval "DEFAULT_$LINE" | |
3990 | else | |
3991 | no_cache=1 | |
3992 | fi | |
3993 | ||
3994 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
698dcdb6 VZ |
3995 | |
3996 | fi | |
24528b0c VS |
3997 | |
3998 | ||
3999 | eval "$ac_cv_use_filesystem" | |
4000 | if test "$no_cache" != 1; then | |
4001 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
4002 | fi | |
4003 | ||
4004 | if test "$wxUSE_FILESYSTEM" = yes; then | |
698dcdb6 | 4005 | echo "$ac_t""yes" 1>&6 |
24528b0c | 4006 | else |
698dcdb6 | 4007 | echo "$ac_t""no" 1>&6 |
24528b0c | 4008 | fi |
698dcdb6 | 4009 | |
24528b0c | 4010 | |
698dcdb6 | 4011 | echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6 |
94054c1d | 4012 | echo "configure:4013: checking for --enable-fs_inet" >&5 |
10f2d63a VZ |
4013 | no_cache=0 |
4014 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
4015 | if test "${enable_fs_inet+set}" = set; then | |
4016 | enableval="$enable_fs_inet" | |
698dcdb6 | 4017 | |
10f2d63a VZ |
4018 | if test "$enableval" = yes; then |
4019 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
4020 | else | |
4021 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
4022 | fi | |
698dcdb6 | 4023 | |
10f2d63a | 4024 | else |
698dcdb6 | 4025 | |
10f2d63a VZ |
4026 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` |
4027 | if test "x$LINE" != x ; then | |
4028 | eval "DEFAULT_$LINE" | |
4029 | else | |
4030 | no_cache=1 | |
4031 | fi | |
4032 | ||
4033 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
698dcdb6 VZ |
4034 | |
4035 | fi | |
10f2d63a VZ |
4036 | |
4037 | ||
4038 | eval "$ac_cv_use_fs_inet" | |
4039 | if test "$no_cache" != 1; then | |
4040 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
4041 | fi | |
4042 | ||
4043 | if test "$wxUSE_FS_INET" = yes; then | |
698dcdb6 | 4044 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4045 | else |
698dcdb6 | 4046 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4047 | fi |
698dcdb6 | 4048 | |
10f2d63a | 4049 | |
698dcdb6 | 4050 | echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6 |
94054c1d | 4051 | echo "configure:4052: checking for --enable-fs_zip" >&5 |
10f2d63a VZ |
4052 | no_cache=0 |
4053 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
4054 | if test "${enable_fs_zip+set}" = set; then | |
4055 | enableval="$enable_fs_zip" | |
698dcdb6 | 4056 | |
10f2d63a VZ |
4057 | if test "$enableval" = yes; then |
4058 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
4059 | else | |
4060 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
4061 | fi | |
698dcdb6 | 4062 | |
10f2d63a | 4063 | else |
698dcdb6 | 4064 | |
10f2d63a VZ |
4065 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` |
4066 | if test "x$LINE" != x ; then | |
4067 | eval "DEFAULT_$LINE" | |
4068 | else | |
4069 | no_cache=1 | |
4070 | fi | |
4071 | ||
4072 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
698dcdb6 VZ |
4073 | |
4074 | fi | |
10f2d63a VZ |
4075 | |
4076 | ||
4077 | eval "$ac_cv_use_fs_zip" | |
4078 | if test "$no_cache" != 1; then | |
4079 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
4080 | fi | |
4081 | ||
4082 | if test "$wxUSE_FS_ZIP" = yes; then | |
698dcdb6 | 4083 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4084 | else |
698dcdb6 | 4085 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4086 | fi |
698dcdb6 | 4087 | |
10f2d63a | 4088 | |
698dcdb6 | 4089 | echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6 |
94054c1d | 4090 | echo "configure:4091: checking for --enable-zipstream" >&5 |
10f2d63a VZ |
4091 | no_cache=0 |
4092 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
4093 | if test "${enable_zipstream+set}" = set; then | |
4094 | enableval="$enable_zipstream" | |
698dcdb6 | 4095 | |
10f2d63a VZ |
4096 | if test "$enableval" = yes; then |
4097 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
4098 | else | |
4099 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
4100 | fi | |
698dcdb6 | 4101 | |
10f2d63a | 4102 | else |
698dcdb6 | 4103 | |
10f2d63a VZ |
4104 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` |
4105 | if test "x$LINE" != x ; then | |
4106 | eval "DEFAULT_$LINE" | |
4107 | else | |
4108 | no_cache=1 | |
4109 | fi | |
4110 | ||
4111 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
698dcdb6 VZ |
4112 | |
4113 | fi | |
10f2d63a VZ |
4114 | |
4115 | ||
4116 | eval "$ac_cv_use_zipstream" | |
4117 | if test "$no_cache" != 1; then | |
4118 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
4119 | fi | |
4120 | ||
4121 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
698dcdb6 | 4122 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4123 | else |
698dcdb6 | 4124 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4125 | fi |
698dcdb6 | 4126 | |
10f2d63a | 4127 | |
698dcdb6 VZ |
4128 | |
4129 | echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6 | |
94054c1d | 4130 | echo "configure:4131: checking for --enable-catch_segvs" >&5 |
eb4efbdc VZ |
4131 | no_cache=0 |
4132 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
4133 | if test "${enable_catch_segvs+set}" = set; then | |
4134 | enableval="$enable_catch_segvs" | |
698dcdb6 | 4135 | |
eb4efbdc VZ |
4136 | if test "$enableval" = yes; then |
4137 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
4138 | else | |
4139 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
4140 | fi | |
698dcdb6 | 4141 | |
eb4efbdc | 4142 | else |
698dcdb6 | 4143 | |
eb4efbdc VZ |
4144 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
4145 | if test "x$LINE" != x ; then | |
4146 | eval "DEFAULT_$LINE" | |
4147 | else | |
4148 | no_cache=1 | |
4149 | fi | |
4150 | ||
4151 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
698dcdb6 VZ |
4152 | |
4153 | fi | |
eb4efbdc VZ |
4154 | |
4155 | ||
4156 | eval "$ac_cv_use_catch_segvs" | |
4157 | if test "$no_cache" != 1; then | |
4158 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
4159 | fi | |
4160 | ||
4161 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
698dcdb6 | 4162 | echo "$ac_t""yes" 1>&6 |
eb4efbdc | 4163 | else |
698dcdb6 | 4164 | echo "$ac_t""no" 1>&6 |
eb4efbdc | 4165 | fi |
698dcdb6 | 4166 | |
eb4efbdc | 4167 | |
698dcdb6 | 4168 | echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6 |
94054c1d | 4169 | echo "configure:4170: checking for --enable-snglinst" >&5 |
4f3c5f06 VZ |
4170 | no_cache=0 |
4171 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
4172 | if test "${enable_snglinst+set}" = set; then | |
4173 | enableval="$enable_snglinst" | |
698dcdb6 | 4174 | |
4f3c5f06 VZ |
4175 | if test "$enableval" = yes; then |
4176 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
4177 | else | |
4178 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
4179 | fi | |
698dcdb6 | 4180 | |
4f3c5f06 | 4181 | else |
698dcdb6 | 4182 | |
4f3c5f06 VZ |
4183 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` |
4184 | if test "x$LINE" != x ; then | |
4185 | eval "DEFAULT_$LINE" | |
4186 | else | |
4187 | no_cache=1 | |
4188 | fi | |
4189 | ||
4190 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
698dcdb6 VZ |
4191 | |
4192 | fi | |
4f3c5f06 VZ |
4193 | |
4194 | ||
4195 | eval "$ac_cv_use_snglinst" | |
4196 | if test "$no_cache" != 1; then | |
4197 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
4198 | fi | |
4199 | ||
4200 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
698dcdb6 | 4201 | echo "$ac_t""yes" 1>&6 |
4f3c5f06 | 4202 | else |
698dcdb6 | 4203 | echo "$ac_t""no" 1>&6 |
4f3c5f06 | 4204 | fi |
698dcdb6 VZ |
4205 | |
4206 | ||
eb4efbdc | 4207 | |
1e6feb95 | 4208 | echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6 |
94054c1d | 4209 | echo "configure:4210: checking for --enable-mimetype" >&5 |
1e6feb95 VZ |
4210 | no_cache=0 |
4211 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
4212 | if test "${enable_mimetype+set}" = set; then | |
4213 | enableval="$enable_mimetype" | |
4214 | ||
4215 | if test "$enableval" = yes; then | |
4216 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
4217 | else | |
4218 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
4219 | fi | |
4220 | ||
4221 | else | |
4222 | ||
4223 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
4224 | if test "x$LINE" != x ; then | |
4225 | eval "DEFAULT_$LINE" | |
4226 | else | |
4227 | no_cache=1 | |
4228 | fi | |
4229 | ||
4230 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
4231 | ||
4232 | fi | |
4233 | ||
4234 | ||
4235 | eval "$ac_cv_use_mimetype" | |
4236 | if test "$no_cache" != 1; then | |
4237 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
4238 | fi | |
4239 | ||
4240 | if test "$wxUSE_MIMETYPE" = yes; then | |
4241 | echo "$ac_t""yes" 1>&6 | |
4242 | else | |
4243 | echo "$ac_t""no" 1>&6 | |
4244 | fi | |
4245 | ||
4246 | ||
3e44f09d | 4247 | echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6 |
94054c1d | 4248 | echo "configure:4249: checking for --enable-system_options" >&5 |
3e44f09d VZ |
4249 | no_cache=0 |
4250 | # Check whether --enable-system_options or --disable-system_options was given. | |
4251 | if test "${enable_system_options+set}" = set; then | |
4252 | enableval="$enable_system_options" | |
4253 | ||
4254 | if test "$enableval" = yes; then | |
4255 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
4256 | else | |
4257 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
4258 | fi | |
4259 | ||
4260 | else | |
4261 | ||
4262 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` | |
4263 | if test "x$LINE" != x ; then | |
4264 | eval "DEFAULT_$LINE" | |
4265 | else | |
4266 | no_cache=1 | |
4267 | fi | |
4268 | ||
4269 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
4270 | ||
4271 | fi | |
4272 | ||
4273 | ||
4274 | eval "$ac_cv_use_system_options" | |
4275 | if test "$no_cache" != 1; then | |
4276 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
4277 | fi | |
4278 | ||
4279 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
4280 | echo "$ac_t""yes" 1>&6 | |
4281 | else | |
4282 | echo "$ac_t""no" 1>&6 | |
4283 | fi | |
4284 | ||
4285 | ||
1e6feb95 | 4286 | |
698dcdb6 VZ |
4287 | |
4288 | echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6 | |
94054c1d | 4289 | echo "configure:4290: checking for --enable-threads" >&5 |
10f2d63a VZ |
4290 | no_cache=0 |
4291 | # Check whether --enable-threads or --disable-threads was given. | |
4292 | if test "${enable_threads+set}" = set; then | |
4293 | enableval="$enable_threads" | |
698dcdb6 | 4294 | |
10f2d63a VZ |
4295 | if test "$enableval" = yes; then |
4296 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
4297 | else | |
4298 | ac_cv_use_threads='wxUSE_THREADS=no' | |
4299 | fi | |
698dcdb6 | 4300 | |
10f2d63a | 4301 | else |
698dcdb6 | 4302 | |
10f2d63a VZ |
4303 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` |
4304 | if test "x$LINE" != x ; then | |
4305 | eval "DEFAULT_$LINE" | |
4306 | else | |
4307 | no_cache=1 | |
4308 | fi | |
4309 | ||
4310 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
698dcdb6 VZ |
4311 | |
4312 | fi | |
10f2d63a VZ |
4313 | |
4314 | ||
4315 | eval "$ac_cv_use_threads" | |
4316 | if test "$no_cache" != 1; then | |
4317 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
4318 | fi | |
4319 | ||
4320 | if test "$wxUSE_THREADS" = yes; then | |
698dcdb6 | 4321 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4322 | else |
698dcdb6 | 4323 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4324 | fi |
698dcdb6 | 4325 | |
10f2d63a | 4326 | |
698dcdb6 | 4327 | echo $ac_n "checking for --enable-serial""... $ac_c" 1>&6 |
94054c1d | 4328 | echo "configure:4329: checking for --enable-serial" >&5 |
10f2d63a VZ |
4329 | no_cache=0 |
4330 | # Check whether --enable-serial or --disable-serial was given. | |
4331 | if test "${enable_serial+set}" = set; then | |
4332 | enableval="$enable_serial" | |
698dcdb6 | 4333 | |
10f2d63a VZ |
4334 | if test "$enableval" = yes; then |
4335 | ac_cv_use_serial='wxUSE_SERIAL=yes' | |
4336 | else | |
4337 | ac_cv_use_serial='wxUSE_SERIAL=no' | |
4338 | fi | |
698dcdb6 | 4339 | |
10f2d63a | 4340 | else |
698dcdb6 | 4341 | |
10f2d63a VZ |
4342 | LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}` |
4343 | if test "x$LINE" != x ; then | |
4344 | eval "DEFAULT_$LINE" | |
4345 | else | |
4346 | no_cache=1 | |
4347 | fi | |
4348 | ||
4349 | ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL | |
698dcdb6 VZ |
4350 | |
4351 | fi | |
10f2d63a VZ |
4352 | |
4353 | ||
4354 | eval "$ac_cv_use_serial" | |
4355 | if test "$no_cache" != 1; then | |
4356 | echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp | |
4357 | fi | |
4358 | ||
4359 | if test "$wxUSE_SERIAL" = yes; then | |
698dcdb6 | 4360 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4361 | else |
698dcdb6 | 4362 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4363 | fi |
698dcdb6 | 4364 | |
10f2d63a | 4365 | |
b12915c1 VZ |
4366 | if test "$wxUSE_GUI" = "yes"; then |
4367 | ||
698dcdb6 VZ |
4368 | |
4369 | ||
4370 | echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6 | |
94054c1d | 4371 | echo "configure:4372: checking for --enable-docview" >&5 |
10f2d63a VZ |
4372 | no_cache=0 |
4373 | # Check whether --enable-docview or --disable-docview was given. | |
4374 | if test "${enable_docview+set}" = set; then | |
4375 | enableval="$enable_docview" | |
698dcdb6 | 4376 | |
10f2d63a VZ |
4377 | if test "$enableval" = yes; then |
4378 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
4379 | else | |
4380 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
4381 | fi | |
698dcdb6 | 4382 | |
10f2d63a | 4383 | else |
698dcdb6 | 4384 | |
10f2d63a VZ |
4385 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` |
4386 | if test "x$LINE" != x ; then | |
4387 | eval "DEFAULT_$LINE" | |
4388 | else | |
4389 | no_cache=1 | |
4390 | fi | |
4391 | ||
4392 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
698dcdb6 VZ |
4393 | |
4394 | fi | |
10f2d63a VZ |
4395 | |
4396 | ||
4397 | eval "$ac_cv_use_docview" | |
4398 | if test "$no_cache" != 1; then | |
4399 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
4400 | fi | |
4401 | ||
4402 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
698dcdb6 | 4403 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4404 | else |
698dcdb6 | 4405 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4406 | fi |
698dcdb6 | 4407 | |
10f2d63a | 4408 | |
698dcdb6 | 4409 | echo $ac_n "checking for --enable-help""... $ac_c" 1>&6 |
94054c1d | 4410 | echo "configure:4411: checking for --enable-help" >&5 |
10f2d63a VZ |
4411 | no_cache=0 |
4412 | # Check whether --enable-help or --disable-help was given. | |
4413 | if test "${enable_help+set}" = set; then | |
4414 | enableval="$enable_help" | |
698dcdb6 | 4415 | |
10f2d63a VZ |
4416 | if test "$enableval" = yes; then |
4417 | ac_cv_use_help='wxUSE_HELP=yes' | |
4418 | else | |
4419 | ac_cv_use_help='wxUSE_HELP=no' | |
4420 | fi | |
698dcdb6 | 4421 | |
10f2d63a | 4422 | else |
698dcdb6 | 4423 | |
10f2d63a VZ |
4424 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` |
4425 | if test "x$LINE" != x ; then | |
4426 | eval "DEFAULT_$LINE" | |
4427 | else | |
4428 | no_cache=1 | |
4429 | fi | |
4430 | ||
4431 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
698dcdb6 VZ |
4432 | |
4433 | fi | |
10f2d63a VZ |
4434 | |
4435 | ||
4436 | eval "$ac_cv_use_help" | |
4437 | if test "$no_cache" != 1; then | |
4438 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
4439 | fi | |
4440 | ||
4441 | if test "$wxUSE_HELP" = yes; then | |
698dcdb6 | 4442 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4443 | else |
698dcdb6 | 4444 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4445 | fi |
698dcdb6 | 4446 | |
10f2d63a | 4447 | |
29fd3c0c | 4448 | echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6 |
94054c1d | 4449 | echo "configure:4450: checking for --enable-mshtmlhelp" >&5 |
29fd3c0c VS |
4450 | no_cache=0 |
4451 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
4452 | if test "${enable_mshtmlhelp+set}" = set; then | |
4453 | enableval="$enable_mshtmlhelp" | |
4454 | ||
4455 | if test "$enableval" = yes; then | |
4456 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
4457 | else | |
4458 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
4459 | fi | |
4460 | ||
4461 | else | |
4462 | ||
4463 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` | |
4464 | if test "x$LINE" != x ; then | |
4465 | eval "DEFAULT_$LINE" | |
4466 | else | |
4467 | no_cache=1 | |
4468 | fi | |
4469 | ||
4470 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
4471 | ||
4472 | fi | |
4473 | ||
4474 | ||
4475 | eval "$ac_cv_use_mshtmlhelp" | |
4476 | if test "$no_cache" != 1; then | |
4477 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
4478 | fi | |
4479 | ||
4480 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
4481 | echo "$ac_t""yes" 1>&6 | |
4482 | else | |
4483 | echo "$ac_t""no" 1>&6 | |
4484 | fi | |
4485 | ||
4486 | ||
3379ed37 | 4487 | echo $ac_n "checking for --enable-html""... $ac_c" 1>&6 |
94054c1d | 4488 | echo "configure:4489: checking for --enable-html" >&5 |
3379ed37 VZ |
4489 | no_cache=0 |
4490 | # Check whether --enable-html or --disable-html was given. | |
4491 | if test "${enable_html+set}" = set; then | |
4492 | enableval="$enable_html" | |
4493 | ||
4494 | if test "$enableval" = yes; then | |
4495 | ac_cv_use_html='wxUSE_HTML=yes' | |
4496 | else | |
4497 | ac_cv_use_html='wxUSE_HTML=no' | |
4498 | fi | |
4499 | ||
4500 | else | |
4501 | ||
4502 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
4503 | if test "x$LINE" != x ; then | |
4504 | eval "DEFAULT_$LINE" | |
4505 | else | |
4506 | no_cache=1 | |
4507 | fi | |
4508 | ||
4509 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
4510 | ||
4511 | fi | |
4512 | ||
4513 | ||
4514 | eval "$ac_cv_use_html" | |
4515 | if test "$no_cache" != 1; then | |
4516 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
4517 | fi | |
4518 | ||
4519 | if test "$wxUSE_HTML" = yes; then | |
4520 | echo "$ac_t""yes" 1>&6 | |
4521 | else | |
4522 | echo "$ac_t""no" 1>&6 | |
4523 | fi | |
4524 | ||
4525 | ||
4526 | echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6 | |
94054c1d | 4527 | echo "configure:4528: checking for --enable-htmlhelp" >&5 |
3379ed37 VZ |
4528 | no_cache=0 |
4529 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
4530 | if test "${enable_htmlhelp+set}" = set; then | |
4531 | enableval="$enable_htmlhelp" | |
4532 | ||
4533 | if test "$enableval" = yes; then | |
4534 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
4535 | else | |
4536 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
4537 | fi | |
4538 | ||
4539 | else | |
4540 | ||
4541 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` | |
4542 | if test "x$LINE" != x ; then | |
4543 | eval "DEFAULT_$LINE" | |
4544 | else | |
4545 | no_cache=1 | |
4546 | fi | |
4547 | ||
4548 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
4549 | ||
4550 | fi | |
4551 | ||
4552 | ||
4553 | eval "$ac_cv_use_htmlhelp" | |
4554 | if test "$no_cache" != 1; then | |
4555 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
4556 | fi | |
4557 | ||
4558 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
4559 | echo "$ac_t""yes" 1>&6 | |
4560 | else | |
4561 | echo "$ac_t""no" 1>&6 | |
4562 | fi | |
4563 | ||
4564 | ||
698dcdb6 | 4565 | echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6 |
94054c1d | 4566 | echo "configure:4567: checking for --enable-constraints" >&5 |
10f2d63a VZ |
4567 | no_cache=0 |
4568 | # Check whether --enable-constraints or --disable-constraints was given. | |
4569 | if test "${enable_constraints+set}" = set; then | |
4570 | enableval="$enable_constraints" | |
698dcdb6 | 4571 | |
10f2d63a VZ |
4572 | if test "$enableval" = yes; then |
4573 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
4574 | else | |
4575 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
4576 | fi | |
698dcdb6 | 4577 | |
10f2d63a | 4578 | else |
698dcdb6 | 4579 | |
10f2d63a VZ |
4580 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` |
4581 | if test "x$LINE" != x ; then | |
4582 | eval "DEFAULT_$LINE" | |
4583 | else | |
4584 | no_cache=1 | |
4585 | fi | |
4586 | ||
4587 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
698dcdb6 VZ |
4588 | |
4589 | fi | |
10f2d63a VZ |
4590 | |
4591 | ||
4592 | eval "$ac_cv_use_constraints" | |
4593 | if test "$no_cache" != 1; then | |
4594 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
4595 | fi | |
4596 | ||
4597 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
698dcdb6 | 4598 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4599 | else |
698dcdb6 | 4600 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4601 | fi |
698dcdb6 | 4602 | |
10f2d63a | 4603 | |
698dcdb6 | 4604 | echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6 |
94054c1d | 4605 | echo "configure:4606: checking for --enable-printarch" >&5 |
10f2d63a VZ |
4606 | no_cache=0 |
4607 | # Check whether --enable-printarch or --disable-printarch was given. | |
4608 | if test "${enable_printarch+set}" = set; then | |
4609 | enableval="$enable_printarch" | |
698dcdb6 | 4610 | |
10f2d63a VZ |
4611 | if test "$enableval" = yes; then |
4612 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
4613 | else | |
4614 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
4615 | fi | |
698dcdb6 | 4616 | |
10f2d63a | 4617 | else |
698dcdb6 | 4618 | |
10f2d63a VZ |
4619 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` |
4620 | if test "x$LINE" != x ; then | |
4621 | eval "DEFAULT_$LINE" | |
4622 | else | |
4623 | no_cache=1 | |
4624 | fi | |
4625 | ||
4626 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
698dcdb6 VZ |
4627 | |
4628 | fi | |
10f2d63a VZ |
4629 | |
4630 | ||
4631 | eval "$ac_cv_use_printarch" | |
4632 | if test "$no_cache" != 1; then | |
4633 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
4634 | fi | |
4635 | ||
4636 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
698dcdb6 | 4637 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4638 | else |
698dcdb6 | 4639 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4640 | fi |
698dcdb6 | 4641 | |
10f2d63a | 4642 | |
698dcdb6 | 4643 | echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6 |
94054c1d | 4644 | echo "configure:4645: checking for --enable-mdi" >&5 |
10f2d63a VZ |
4645 | no_cache=0 |
4646 | # Check whether --enable-mdi or --disable-mdi was given. | |
4647 | if test "${enable_mdi+set}" = set; then | |
4648 | enableval="$enable_mdi" | |
698dcdb6 | 4649 | |
10f2d63a VZ |
4650 | if test "$enableval" = yes; then |
4651 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
4652 | else | |
4653 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
4654 | fi | |
698dcdb6 | 4655 | |
10f2d63a | 4656 | else |
698dcdb6 | 4657 | |
10f2d63a VZ |
4658 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` |
4659 | if test "x$LINE" != x ; then | |
4660 | eval "DEFAULT_$LINE" | |
4661 | else | |
4662 | no_cache=1 | |
4663 | fi | |
4664 | ||
4665 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
698dcdb6 VZ |
4666 | |
4667 | fi | |
10f2d63a VZ |
4668 | |
4669 | ||
4670 | eval "$ac_cv_use_mdi" | |
4671 | if test "$no_cache" != 1; then | |
4672 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
4673 | fi | |
4674 | ||
4675 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
698dcdb6 | 4676 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4677 | else |
698dcdb6 | 4678 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4679 | fi |
698dcdb6 VZ |
4680 | |
4681 | ||
1e6feb95 | 4682 | echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6 |
94054c1d | 4683 | echo "configure:4684: checking for --enable-loggui" >&5 |
1e6feb95 VZ |
4684 | no_cache=0 |
4685 | # Check whether --enable-loggui or --disable-loggui was given. | |
4686 | if test "${enable_loggui+set}" = set; then | |
4687 | enableval="$enable_loggui" | |
4688 | ||
4689 | if test "$enableval" = yes; then | |
4690 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
4691 | else | |
4692 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
4693 | fi | |
4694 | ||
4695 | else | |
4696 | ||
4697 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
4698 | if test "x$LINE" != x ; then | |
4699 | eval "DEFAULT_$LINE" | |
4700 | else | |
4701 | no_cache=1 | |
4702 | fi | |
4703 | ||
4704 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
4705 | ||
4706 | fi | |
4707 | ||
4708 | ||
4709 | eval "$ac_cv_use_loggui" | |
4710 | if test "$no_cache" != 1; then | |
4711 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
4712 | fi | |
4713 | ||
4714 | if test "$wxUSE_LOGGUI" = yes; then | |
4715 | echo "$ac_t""yes" 1>&6 | |
4716 | else | |
4717 | echo "$ac_t""no" 1>&6 | |
4718 | fi | |
4719 | ||
4720 | ||
4721 | echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6 | |
94054c1d | 4722 | echo "configure:4723: checking for --enable-logwin" >&5 |
1e6feb95 VZ |
4723 | no_cache=0 |
4724 | # Check whether --enable-logwin or --disable-logwin was given. | |
4725 | if test "${enable_logwin+set}" = set; then | |
4726 | enableval="$enable_logwin" | |
4727 | ||
4728 | if test "$enableval" = yes; then | |
4729 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
4730 | else | |
4731 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
4732 | fi | |
4733 | ||
4734 | else | |
4735 | ||
4736 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` | |
4737 | if test "x$LINE" != x ; then | |
4738 | eval "DEFAULT_$LINE" | |
4739 | else | |
4740 | no_cache=1 | |
4741 | fi | |
4742 | ||
4743 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
4744 | ||
4745 | fi | |
4746 | ||
4747 | ||
4748 | eval "$ac_cv_use_logwin" | |
4749 | if test "$no_cache" != 1; then | |
4750 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
4751 | fi | |
4752 | ||
4753 | if test "$wxUSE_LOGWINDOW" = yes; then | |
4754 | echo "$ac_t""yes" 1>&6 | |
4755 | else | |
4756 | echo "$ac_t""no" 1>&6 | |
4757 | fi | |
4758 | ||
4759 | ||
10f2d63a | 4760 | |
698dcdb6 | 4761 | echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6 |
94054c1d | 4762 | echo "configure:4763: checking for --enable-postscript" >&5 |
10f2d63a VZ |
4763 | no_cache=0 |
4764 | # Check whether --enable-postscript or --disable-postscript was given. | |
4765 | if test "${enable_postscript+set}" = set; then | |
4766 | enableval="$enable_postscript" | |
698dcdb6 | 4767 | |
10f2d63a VZ |
4768 | if test "$enableval" = yes; then |
4769 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
4770 | else | |
4771 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
4772 | fi | |
698dcdb6 | 4773 | |
10f2d63a | 4774 | else |
698dcdb6 | 4775 | |
10f2d63a VZ |
4776 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` |
4777 | if test "x$LINE" != x ; then | |
4778 | eval "DEFAULT_$LINE" | |
4779 | else | |
4780 | no_cache=1 | |
4781 | fi | |
4782 | ||
4783 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
698dcdb6 VZ |
4784 | |
4785 | fi | |
10f2d63a VZ |
4786 | |
4787 | ||
4788 | eval "$ac_cv_use_postscript" | |
4789 | if test "$no_cache" != 1; then | |
4790 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
4791 | fi | |
4792 | ||
4793 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
698dcdb6 | 4794 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4795 | else |
698dcdb6 | 4796 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4797 | fi |
698dcdb6 VZ |
4798 | |
4799 | ||
4800 | ||
10f2d63a | 4801 | |
1e6feb95 | 4802 | |
698dcdb6 | 4803 | echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6 |
94054c1d | 4804 | echo "configure:4805: checking for --enable-prologio" >&5 |
10f2d63a VZ |
4805 | no_cache=0 |
4806 | # Check whether --enable-prologio or --disable-prologio was given. | |
4807 | if test "${enable_prologio+set}" = set; then | |
4808 | enableval="$enable_prologio" | |
698dcdb6 | 4809 | |
10f2d63a VZ |
4810 | if test "$enableval" = yes; then |
4811 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
4812 | else | |
4813 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
4814 | fi | |
698dcdb6 | 4815 | |
10f2d63a | 4816 | else |
698dcdb6 | 4817 | |
10f2d63a VZ |
4818 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` |
4819 | if test "x$LINE" != x ; then | |
4820 | eval "DEFAULT_$LINE" | |
4821 | else | |
4822 | no_cache=1 | |
4823 | fi | |
4824 | ||
4825 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
698dcdb6 VZ |
4826 | |
4827 | fi | |
10f2d63a VZ |
4828 | |
4829 | ||
4830 | eval "$ac_cv_use_prologio" | |
4831 | if test "$no_cache" != 1; then | |
4832 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
4833 | fi | |
4834 | ||
4835 | if test "$wxUSE_PROLOGIO" = yes; then | |
698dcdb6 | 4836 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4837 | else |
698dcdb6 | 4838 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4839 | fi |
698dcdb6 | 4840 | |
10f2d63a | 4841 | |
698dcdb6 | 4842 | echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6 |
94054c1d | 4843 | echo "configure:4844: checking for --enable-resources" >&5 |
10f2d63a VZ |
4844 | no_cache=0 |
4845 | # Check whether --enable-resources or --disable-resources was given. | |
4846 | if test "${enable_resources+set}" = set; then | |
4847 | enableval="$enable_resources" | |
698dcdb6 | 4848 | |
10f2d63a VZ |
4849 | if test "$enableval" = yes; then |
4850 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
4851 | else | |
4852 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
4853 | fi | |
698dcdb6 | 4854 | |
10f2d63a | 4855 | else |
698dcdb6 | 4856 | |
10f2d63a VZ |
4857 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` |
4858 | if test "x$LINE" != x ; then | |
4859 | eval "DEFAULT_$LINE" | |
4860 | else | |
4861 | no_cache=1 | |
4862 | fi | |
4863 | ||
4864 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
698dcdb6 VZ |
4865 | |
4866 | fi | |
10f2d63a VZ |
4867 | |
4868 | ||
4869 | eval "$ac_cv_use_resources" | |
4870 | if test "$no_cache" != 1; then | |
4871 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
4872 | fi | |
4873 | ||
4874 | if test "$wxUSE_RESOURCES" = yes; then | |
698dcdb6 | 4875 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4876 | else |
698dcdb6 | 4877 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4878 | fi |
698dcdb6 | 4879 | |
10f2d63a | 4880 | |
698dcdb6 VZ |
4881 | |
4882 | echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6 | |
94054c1d | 4883 | echo "configure:4884: checking for --enable-xresources" >&5 |
10f2d63a VZ |
4884 | no_cache=0 |
4885 | # Check whether --enable-xresources or --disable-xresources was given. | |
4886 | if test "${enable_xresources+set}" = set; then | |
4887 | enableval="$enable_xresources" | |
698dcdb6 | 4888 | |
10f2d63a VZ |
4889 | if test "$enableval" = yes; then |
4890 | ac_cv_use_xresources='wxUSE_X_RESOURCES=yes' | |
4891 | else | |
4892 | ac_cv_use_xresources='wxUSE_X_RESOURCES=no' | |
4893 | fi | |
698dcdb6 | 4894 | |
10f2d63a | 4895 | else |
698dcdb6 | 4896 | |
10f2d63a VZ |
4897 | LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}` |
4898 | if test "x$LINE" != x ; then | |
4899 | eval "DEFAULT_$LINE" | |
4900 | else | |
4901 | no_cache=1 | |
4902 | fi | |
4903 | ||
4904 | ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES | |
698dcdb6 VZ |
4905 | |
4906 | fi | |
10f2d63a VZ |
4907 | |
4908 | ||
4909 | eval "$ac_cv_use_xresources" | |
4910 | if test "$no_cache" != 1; then | |
4911 | echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp | |
4912 | fi | |
4913 | ||
4914 | if test "$wxUSE_X_RESOURCES" = yes; then | |
698dcdb6 | 4915 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4916 | else |
698dcdb6 | 4917 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4918 | fi |
698dcdb6 VZ |
4919 | |
4920 | ||
10f2d63a | 4921 | |
698dcdb6 VZ |
4922 | |
4923 | echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6 | |
94054c1d | 4924 | echo "configure:4925: checking for --enable-clipboard" >&5 |
10f2d63a VZ |
4925 | no_cache=0 |
4926 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
4927 | if test "${enable_clipboard+set}" = set; then | |
4928 | enableval="$enable_clipboard" | |
698dcdb6 | 4929 | |
10f2d63a VZ |
4930 | if test "$enableval" = yes; then |
4931 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
4932 | else | |
4933 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
4934 | fi | |
698dcdb6 | 4935 | |
10f2d63a | 4936 | else |
698dcdb6 | 4937 | |
10f2d63a VZ |
4938 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` |
4939 | if test "x$LINE" != x ; then | |
4940 | eval "DEFAULT_$LINE" | |
4941 | else | |
4942 | no_cache=1 | |
4943 | fi | |
4944 | ||
4945 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
698dcdb6 VZ |
4946 | |
4947 | fi | |
10f2d63a VZ |
4948 | |
4949 | ||
4950 | eval "$ac_cv_use_clipboard" | |
4951 | if test "$no_cache" != 1; then | |
4952 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
4953 | fi | |
4954 | ||
4955 | if test "$wxUSE_CLIPBOARD" = yes; then | |
698dcdb6 | 4956 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4957 | else |
698dcdb6 | 4958 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4959 | fi |
698dcdb6 | 4960 | |
10f2d63a | 4961 | |
698dcdb6 | 4962 | echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6 |
94054c1d | 4963 | echo "configure:4964: checking for --enable-dnd" >&5 |
10f2d63a VZ |
4964 | no_cache=0 |
4965 | # Check whether --enable-dnd or --disable-dnd was given. | |
4966 | if test "${enable_dnd+set}" = set; then | |
4967 | enableval="$enable_dnd" | |
698dcdb6 | 4968 | |
10f2d63a VZ |
4969 | if test "$enableval" = yes; then |
4970 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
4971 | else | |
4972 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
4973 | fi | |
698dcdb6 | 4974 | |
10f2d63a | 4975 | else |
698dcdb6 | 4976 | |
10f2d63a VZ |
4977 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` |
4978 | if test "x$LINE" != x ; then | |
4979 | eval "DEFAULT_$LINE" | |
4980 | else | |
4981 | no_cache=1 | |
4982 | fi | |
4983 | ||
4984 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
698dcdb6 VZ |
4985 | |
4986 | fi | |
10f2d63a VZ |
4987 | |
4988 | ||
4989 | eval "$ac_cv_use_dnd" | |
4990 | if test "$no_cache" != 1; then | |
4991 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
4992 | fi | |
4993 | ||
4994 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
698dcdb6 | 4995 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4996 | else |
698dcdb6 | 4997 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4998 | fi |
698dcdb6 | 4999 | |
10f2d63a | 5000 | |
698dcdb6 | 5001 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
94054c1d | 5002 | echo "configure:5003: checking for --enable-metafile" >&5 |
b64f0a5f RL |
5003 | no_cache=0 |
5004 | # Check whether --enable-metafile or --disable-metafile was given. | |
5005 | if test "${enable_metafile+set}" = set; then | |
5006 | enableval="$enable_metafile" | |
698dcdb6 | 5007 | |
b64f0a5f RL |
5008 | if test "$enableval" = yes; then |
5009 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
5010 | else | |
5011 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
5012 | fi | |
698dcdb6 | 5013 | |
b64f0a5f | 5014 | else |
698dcdb6 | 5015 | |
b64f0a5f RL |
5016 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
5017 | if test "x$LINE" != x ; then | |
5018 | eval "DEFAULT_$LINE" | |
5019 | else | |
5020 | no_cache=1 | |
5021 | fi | |
5022 | ||
5023 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
698dcdb6 VZ |
5024 | |
5025 | fi | |
b64f0a5f RL |
5026 | |
5027 | ||
5028 | eval "$ac_cv_use_metafile" | |
5029 | if test "$no_cache" != 1; then | |
5030 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
5031 | fi | |
5032 | ||
5033 | if test "$wxUSE_METAFILE" = yes; then | |
698dcdb6 | 5034 | echo "$ac_t""yes" 1>&6 |
b64f0a5f | 5035 | else |
698dcdb6 | 5036 | echo "$ac_t""no" 1>&6 |
b64f0a5f | 5037 | fi |
698dcdb6 VZ |
5038 | |
5039 | ||
10f2d63a | 5040 | |
24176f2c | 5041 | echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6 |
94054c1d | 5042 | echo "configure:5043: checking for --enable-treelayout" >&5 |
10f2d63a | 5043 | no_cache=0 |
24176f2c GD |
5044 | # Check whether --enable-treelayout or --disable-treelayout was given. |
5045 | if test "${enable_treelayout+set}" = set; then | |
5046 | enableval="$enable_treelayout" | |
698dcdb6 | 5047 | |
10f2d63a | 5048 | if test "$enableval" = yes; then |
24176f2c | 5049 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes' |
10f2d63a | 5050 | else |
24176f2c | 5051 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=no' |
10f2d63a | 5052 | fi |
698dcdb6 | 5053 | |
10f2d63a | 5054 | else |
698dcdb6 | 5055 | |
24176f2c | 5056 | LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}` |
10f2d63a VZ |
5057 | if test "x$LINE" != x ; then |
5058 | eval "DEFAULT_$LINE" | |
5059 | else | |
5060 | no_cache=1 | |
5061 | fi | |
5062 | ||
24176f2c | 5063 | ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT |
698dcdb6 VZ |
5064 | |
5065 | fi | |
10f2d63a VZ |
5066 | |
5067 | ||
24176f2c | 5068 | eval "$ac_cv_use_treelayout" |
10f2d63a | 5069 | if test "$no_cache" != 1; then |
24176f2c | 5070 | echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5071 | fi |
5072 | ||
24176f2c | 5073 | if test "$wxUSE_TREELAYOUT" = yes; then |
698dcdb6 | 5074 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5075 | else |
698dcdb6 | 5076 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5077 | fi |
698dcdb6 | 5078 | |
10f2d63a | 5079 | |
698dcdb6 VZ |
5080 | |
5081 | ||
5082 | echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6 | |
94054c1d | 5083 | echo "configure:5084: checking for --enable-controls" >&5 |
10f2d63a VZ |
5084 | no_cache=0 |
5085 | # Check whether --enable-controls or --disable-controls was given. | |
5086 | if test "${enable_controls+set}" = set; then | |
5087 | enableval="$enable_controls" | |
698dcdb6 | 5088 | |
10f2d63a VZ |
5089 | if test "$enableval" = yes; then |
5090 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
5091 | else | |
5092 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
5093 | fi | |
698dcdb6 | 5094 | |
10f2d63a | 5095 | else |
698dcdb6 | 5096 | |
10f2d63a VZ |
5097 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` |
5098 | if test "x$LINE" != x ; then | |
5099 | eval "DEFAULT_$LINE" | |
5100 | else | |
5101 | no_cache=1 | |
5102 | fi | |
5103 | ||
5104 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
698dcdb6 VZ |
5105 | |
5106 | fi | |
10f2d63a VZ |
5107 | |
5108 | ||
5109 | eval "$ac_cv_use_controls" | |
5110 | if test "$no_cache" != 1; then | |
5111 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
5112 | fi | |
5113 | ||
5114 | if test "$wxUSE_CONTROLS" = yes; then | |
698dcdb6 | 5115 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5116 | else |
698dcdb6 | 5117 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5118 | fi |
698dcdb6 | 5119 | |
10f2d63a VZ |
5120 | |
5121 | if test "$wxUSE_CONTROLS" = "yes"; then | |
5122 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 VZ |
5123 | DEFAULT_wxUSE_BMPBUTTON=yes |
5124 | DEFAULT_wxUSE_BUTTON=yes | |
5125 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5126 | DEFAULT_wxUSE_CARET=yes |
5127 | DEFAULT_wxUSE_COMBOBOX=yes | |
10f2d63a VZ |
5128 | DEFAULT_wxUSE_CHECKBOX=yes |
5129 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
5130 | DEFAULT_wxUSE_CHOICE=yes | |
5131 | DEFAULT_wxUSE_GAUGE=yes | |
5132 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 5133 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
5134 | DEFAULT_wxUSE_IMAGLIST=yes |
5135 | DEFAULT_wxUSE_LISTBOX=yes | |
5136 | DEFAULT_wxUSE_LISTCTRL=yes | |
5137 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 5138 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
5139 | DEFAULT_wxUSE_RADIOBOX=yes |
5140 | DEFAULT_wxUSE_RADIOBTN=yes | |
5141 | DEFAULT_wxUSE_SASH=yes | |
5142 | DEFAULT_wxUSE_SCROLLBAR=yes | |
5143 | DEFAULT_wxUSE_SLIDER=yes | |
5144 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 5145 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
5146 | DEFAULT_wxUSE_SPLITTER=yes |
5147 | DEFAULT_wxUSE_STATBMP=yes | |
5148 | DEFAULT_wxUSE_STATBOX=yes | |
5149 | DEFAULT_wxUSE_STATLINE=yes | |
5150 | DEFAULT_wxUSE_STATUSBAR=yes | |
5151 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
1db8dc4a | 5152 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 5153 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
5154 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
5155 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
5156 | DEFAULT_wxUSE_TOOLTIPS=yes |
5157 | DEFAULT_wxUSE_TREECTRL=yes | |
9f41d601 | 5158 | DEFAULT_wxUSE_POPUPWIN=yes |
10f2d63a VZ |
5159 | elif test "$wxUSE_CONTROLS" = "no"; then |
5160 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 VZ |
5161 | DEFAULT_wxUSE_BMPBUTTON=no |
5162 | DEFAULT_wxUSE_BUTTON=no | |
5163 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5164 | DEFAULT_wxUSE_CARET=no |
5165 | DEFAULT_wxUSE_COMBOBOX=no | |
10f2d63a VZ |
5166 | DEFAULT_wxUSE_CHECKBOX=no |
5167 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
5168 | DEFAULT_wxUSE_CHOICE=no | |
5169 | DEFAULT_wxUSE_GAUGE=no | |
5170 | DEFAULT_wxUSE_GRID=no | |
5171 | DEFAULT_wxUSE_NEW_GRID=no | |
5172 | DEFAULT_wxUSE_IMAGLIST=no | |
5173 | DEFAULT_wxUSE_LISTBOX=no | |
5174 | DEFAULT_wxUSE_LISTCTRL=no | |
5175 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 5176 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
5177 | DEFAULT_wxUSE_RADIOBOX=no |
5178 | DEFAULT_wxUSE_RADIOBTN=no | |
5179 | DEFAULT_wxUSE_SASH=no | |
5180 | DEFAULT_wxUSE_SCROLLBAR=no | |
5181 | DEFAULT_wxUSE_SLIDER=no | |
5182 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 5183 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
5184 | DEFAULT_wxUSE_SPLITTER=no |
5185 | DEFAULT_wxUSE_STATBMP=no | |
5186 | DEFAULT_wxUSE_STATBOX=no | |
5187 | DEFAULT_wxUSE_STATLINE=no | |
5188 | DEFAULT_wxUSE_STATUSBAR=no | |
5189 | DEFAULT_wxUSE_TAB_DIALOG=no | |
1db8dc4a | 5190 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 5191 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
5192 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
5193 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
5194 | DEFAULT_wxUSE_TOOLTIPS=no |
5195 | DEFAULT_wxUSE_TREECTRL=no | |
9f41d601 | 5196 | DEFAULT_wxUSE_POPUPWIN=no |
10f2d63a VZ |
5197 | fi |
5198 | ||
698dcdb6 VZ |
5199 | |
5200 | echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6 | |
94054c1d | 5201 | echo "configure:5202: checking for --enable-accel" >&5 |
10f2d63a VZ |
5202 | no_cache=0 |
5203 | # Check whether --enable-accel or --disable-accel was given. | |
5204 | if test "${enable_accel+set}" = set; then | |
5205 | enableval="$enable_accel" | |
698dcdb6 | 5206 | |
10f2d63a VZ |
5207 | if test "$enableval" = yes; then |
5208 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
5209 | else | |
5210 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
5211 | fi | |
698dcdb6 | 5212 | |
10f2d63a | 5213 | else |
698dcdb6 | 5214 | |
10f2d63a VZ |
5215 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` |
5216 | if test "x$LINE" != x ; then | |
5217 | eval "DEFAULT_$LINE" | |
5218 | else | |
5219 | no_cache=1 | |
5220 | fi | |
5221 | ||
5222 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
698dcdb6 VZ |
5223 | |
5224 | fi | |
10f2d63a VZ |
5225 | |
5226 | ||
5227 | eval "$ac_cv_use_accel" | |
5228 | if test "$no_cache" != 1; then | |
5229 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
5230 | fi | |
5231 | ||
5232 | if test "$wxUSE_ACCEL" = yes; then | |
698dcdb6 | 5233 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5234 | else |
698dcdb6 | 5235 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5236 | fi |
698dcdb6 | 5237 | |
10f2d63a | 5238 | |
1e6feb95 | 5239 | echo $ac_n "checking for --enable-button""... $ac_c" 1>&6 |
94054c1d | 5240 | echo "configure:5241: checking for --enable-button" >&5 |
10f2d63a | 5241 | no_cache=0 |
1e6feb95 VZ |
5242 | # Check whether --enable-button or --disable-button was given. |
5243 | if test "${enable_button+set}" = set; then | |
5244 | enableval="$enable_button" | |
698dcdb6 | 5245 | |
10f2d63a | 5246 | if test "$enableval" = yes; then |
1e6feb95 | 5247 | ac_cv_use_button='wxUSE_BUTTON=yes' |
10f2d63a | 5248 | else |
1e6feb95 | 5249 | ac_cv_use_button='wxUSE_BUTTON=no' |
10f2d63a | 5250 | fi |
698dcdb6 | 5251 | |
10f2d63a | 5252 | else |
698dcdb6 | 5253 | |
1e6feb95 | 5254 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` |
10f2d63a VZ |
5255 | if test "x$LINE" != x ; then |
5256 | eval "DEFAULT_$LINE" | |
5257 | else | |
5258 | no_cache=1 | |
5259 | fi | |
5260 | ||
1e6feb95 | 5261 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON |
698dcdb6 VZ |
5262 | |
5263 | fi | |
10f2d63a VZ |
5264 | |
5265 | ||
1e6feb95 | 5266 | eval "$ac_cv_use_button" |
10f2d63a | 5267 | if test "$no_cache" != 1; then |
1e6feb95 | 5268 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5269 | fi |
5270 | ||
1e6feb95 | 5271 | if test "$wxUSE_BUTTON" = yes; then |
698dcdb6 | 5272 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5273 | else |
698dcdb6 | 5274 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5275 | fi |
698dcdb6 | 5276 | |
10f2d63a | 5277 | |
698dcdb6 | 5278 | echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6 |
94054c1d | 5279 | echo "configure:5280: checking for --enable-bmpbutton" >&5 |
10f2d63a VZ |
5280 | no_cache=0 |
5281 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
5282 | if test "${enable_bmpbutton+set}" = set; then | |
5283 | enableval="$enable_bmpbutton" | |
698dcdb6 | 5284 | |
10f2d63a VZ |
5285 | if test "$enableval" = yes; then |
5286 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
5287 | else | |
5288 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
5289 | fi | |
698dcdb6 | 5290 | |
10f2d63a | 5291 | else |
698dcdb6 | 5292 | |
10f2d63a VZ |
5293 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` |
5294 | if test "x$LINE" != x ; then | |
5295 | eval "DEFAULT_$LINE" | |
5296 | else | |
5297 | no_cache=1 | |
5298 | fi | |
5299 | ||
5300 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
698dcdb6 VZ |
5301 | |
5302 | fi | |
10f2d63a VZ |
5303 | |
5304 | ||
5305 | eval "$ac_cv_use_bmpbutton" | |
5306 | if test "$no_cache" != 1; then | |
5307 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
5308 | fi | |
5309 | ||
5310 | if test "$wxUSE_BMPBUTTON" = yes; then | |
698dcdb6 | 5311 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5312 | else |
698dcdb6 | 5313 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5314 | fi |
698dcdb6 | 5315 | |
10f2d63a | 5316 | |
1e6feb95 | 5317 | echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6 |
94054c1d | 5318 | echo "configure:5319: checking for --enable-calendar" >&5 |
1e6feb95 VZ |
5319 | no_cache=0 |
5320 | # Check whether --enable-calendar or --disable-calendar was given. | |
5321 | if test "${enable_calendar+set}" = set; then | |
5322 | enableval="$enable_calendar" | |
5323 | ||
5324 | if test "$enableval" = yes; then | |
5325 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
5326 | else | |
5327 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
5328 | fi | |
5329 | ||
5330 | else | |
5331 | ||
5332 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
5333 | if test "x$LINE" != x ; then | |
5334 | eval "DEFAULT_$LINE" | |
5335 | else | |
5336 | no_cache=1 | |
5337 | fi | |
5338 | ||
5339 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
5340 | ||
5341 | fi | |
5342 | ||
5343 | ||
5344 | eval "$ac_cv_use_calendar" | |
5345 | if test "$no_cache" != 1; then | |
5346 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
5347 | fi | |
5348 | ||
5349 | if test "$wxUSE_CALCTRL" = yes; then | |
5350 | echo "$ac_t""yes" 1>&6 | |
5351 | else | |
5352 | echo "$ac_t""no" 1>&6 | |
5353 | fi | |
5354 | ||
5355 | ||
5356 | echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6 | |
94054c1d | 5357 | echo "configure:5358: checking for --enable-caret" >&5 |
1e6feb95 VZ |
5358 | no_cache=0 |
5359 | # Check whether --enable-caret or --disable-caret was given. | |
5360 | if test "${enable_caret+set}" = set; then | |
5361 | enableval="$enable_caret" | |
5362 | ||
5363 | if test "$enableval" = yes; then | |
5364 | ac_cv_use_caret='wxUSE_CARET=yes' | |
5365 | else | |
5366 | ac_cv_use_caret='wxUSE_CARET=no' | |
5367 | fi | |
5368 | ||
5369 | else | |
5370 | ||
5371 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
5372 | if test "x$LINE" != x ; then | |
5373 | eval "DEFAULT_$LINE" | |
5374 | else | |
5375 | no_cache=1 | |
5376 | fi | |
5377 | ||
5378 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
5379 | ||
5380 | fi | |
5381 | ||
5382 | ||
5383 | eval "$ac_cv_use_caret" | |
5384 | if test "$no_cache" != 1; then | |
5385 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
5386 | fi | |
5387 | ||
5388 | if test "$wxUSE_CARET" = yes; then | |
5389 | echo "$ac_t""yes" 1>&6 | |
5390 | else | |
5391 | echo "$ac_t""no" 1>&6 | |
5392 | fi | |
5393 | ||
5394 | ||
698dcdb6 | 5395 | echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6 |
94054c1d | 5396 | echo "configure:5397: checking for --enable-checkbox" >&5 |
10f2d63a VZ |
5397 | no_cache=0 |
5398 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
5399 | if test "${enable_checkbox+set}" = set; then | |
5400 | enableval="$enable_checkbox" | |
698dcdb6 | 5401 | |
10f2d63a VZ |
5402 | if test "$enableval" = yes; then |
5403 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
5404 | else | |
5405 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
5406 | fi | |
698dcdb6 | 5407 | |
10f2d63a | 5408 | else |
698dcdb6 | 5409 | |
10f2d63a VZ |
5410 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` |
5411 | if test "x$LINE" != x ; then | |
5412 | eval "DEFAULT_$LINE" | |
5413 | else | |
5414 | no_cache=1 | |
5415 | fi | |
5416 | ||
5417 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
698dcdb6 VZ |
5418 | |
5419 | fi | |
10f2d63a VZ |
5420 | |
5421 | ||
5422 | eval "$ac_cv_use_checkbox" | |
5423 | if test "$no_cache" != 1; then | |
5424 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
5425 | fi | |
5426 | ||
5427 | if test "$wxUSE_CHECKBOX" = yes; then | |
698dcdb6 | 5428 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5429 | else |
698dcdb6 | 5430 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5431 | fi |
698dcdb6 | 5432 | |
10f2d63a | 5433 | |
698dcdb6 | 5434 | echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6 |
94054c1d | 5435 | echo "configure:5436: checking for --enable-checklst" >&5 |
10f2d63a VZ |
5436 | no_cache=0 |
5437 | # Check whether --enable-checklst or --disable-checklst was given. | |
5438 | if test "${enable_checklst+set}" = set; then | |
5439 | enableval="$enable_checklst" | |
698dcdb6 | 5440 | |
10f2d63a VZ |
5441 | if test "$enableval" = yes; then |
5442 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
5443 | else | |
5444 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
5445 | fi | |
698dcdb6 | 5446 | |
10f2d63a | 5447 | else |
698dcdb6 | 5448 | |
10f2d63a VZ |
5449 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` |
5450 | if test "x$LINE" != x ; then | |
5451 | eval "DEFAULT_$LINE" | |
5452 | else | |
5453 | no_cache=1 | |
5454 | fi | |
5455 | ||
5456 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
698dcdb6 VZ |
5457 | |
5458 | fi | |
10f2d63a VZ |
5459 | |
5460 | ||
5461 | eval "$ac_cv_use_checklst" | |
5462 | if test "$no_cache" != 1; then | |
5463 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
5464 | fi | |
5465 | ||
5466 | if test "$wxUSE_CHECKLST" = yes; then | |
698dcdb6 | 5467 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5468 | else |
698dcdb6 | 5469 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5470 | fi |
698dcdb6 | 5471 | |
10f2d63a | 5472 | |
698dcdb6 | 5473 | echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6 |
94054c1d | 5474 | echo "configure:5475: checking for --enable-choice" >&5 |
10f2d63a VZ |
5475 | no_cache=0 |
5476 | # Check whether --enable-choice or --disable-choice was given. | |
5477 | if test "${enable_choice+set}" = set; then | |
5478 | enableval="$enable_choice" | |
698dcdb6 | 5479 | |
10f2d63a VZ |
5480 | if test "$enableval" = yes; then |
5481 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
5482 | else | |
5483 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
5484 | fi | |
698dcdb6 | 5485 | |
10f2d63a | 5486 | else |
698dcdb6 | 5487 | |
10f2d63a VZ |
5488 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` |
5489 | if test "x$LINE" != x ; then | |
5490 | eval "DEFAULT_$LINE" | |
5491 | else | |
5492 | no_cache=1 | |
5493 | fi | |
5494 | ||
5495 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
698dcdb6 VZ |
5496 | |
5497 | fi | |
10f2d63a VZ |
5498 | |
5499 | ||
5500 | eval "$ac_cv_use_choice" | |
5501 | if test "$no_cache" != 1; then | |
5502 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
5503 | fi | |
5504 | ||
5505 | if test "$wxUSE_CHOICE" = yes; then | |
698dcdb6 | 5506 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5507 | else |
698dcdb6 | 5508 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5509 | fi |
698dcdb6 | 5510 | |
10f2d63a | 5511 | |
698dcdb6 | 5512 | echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6 |
94054c1d | 5513 | echo "configure:5514: checking for --enable-combobox" >&5 |
10f2d63a VZ |
5514 | no_cache=0 |
5515 | # Check whether --enable-combobox or --disable-combobox was given. | |
5516 | if test "${enable_combobox+set}" = set; then | |
5517 | enableval="$enable_combobox" | |
698dcdb6 | 5518 | |
10f2d63a VZ |
5519 | if test "$enableval" = yes; then |
5520 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
5521 | else | |
5522 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
5523 | fi | |
698dcdb6 | 5524 | |
10f2d63a | 5525 | else |
698dcdb6 | 5526 | |
10f2d63a VZ |
5527 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` |
5528 | if test "x$LINE" != x ; then | |
5529 | eval "DEFAULT_$LINE" | |
5530 | else | |
5531 | no_cache=1 | |
5532 | fi | |
5533 | ||
5534 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
698dcdb6 VZ |
5535 | |
5536 | fi | |
10f2d63a VZ |
5537 | |
5538 | ||
5539 | eval "$ac_cv_use_combobox" | |
5540 | if test "$no_cache" != 1; then | |
5541 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
5542 | fi | |
5543 | ||
5544 | if test "$wxUSE_COMBOBOX" = yes; then | |
698dcdb6 | 5545 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5546 | else |
698dcdb6 | 5547 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5548 | fi |
698dcdb6 | 5549 | |
10f2d63a | 5550 | |
698dcdb6 | 5551 | echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6 |
94054c1d | 5552 | echo "configure:5553: checking for --enable-gauge" >&5 |
10f2d63a VZ |
5553 | no_cache=0 |
5554 | # Check whether --enable-gauge or --disable-gauge was given. | |
5555 | if test "${enable_gauge+set}" = set; then | |
5556 | enableval="$enable_gauge" | |
698dcdb6 | 5557 | |
10f2d63a VZ |
5558 | if test "$enableval" = yes; then |
5559 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
5560 | else | |
5561 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
5562 | fi | |
698dcdb6 | 5563 | |
10f2d63a | 5564 | else |
698dcdb6 | 5565 | |
10f2d63a VZ |
5566 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` |
5567 | if test "x$LINE" != x ; then | |
5568 | eval "DEFAULT_$LINE" | |
5569 | else | |
5570 | no_cache=1 | |
5571 | fi | |
5572 | ||
5573 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
698dcdb6 VZ |
5574 | |
5575 | fi | |
10f2d63a VZ |
5576 | |
5577 | ||
5578 | eval "$ac_cv_use_gauge" | |
5579 | if test "$no_cache" != 1; then | |
5580 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
5581 | fi | |
5582 | ||
5583 | if test "$wxUSE_GAUGE" = yes; then | |
698dcdb6 | 5584 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5585 | else |
698dcdb6 | 5586 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5587 | fi |
698dcdb6 | 5588 | |
10f2d63a | 5589 | |
698dcdb6 | 5590 | echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6 |
94054c1d | 5591 | echo "configure:5592: checking for --enable-grid" >&5 |
10f2d63a VZ |
5592 | no_cache=0 |
5593 | # Check whether --enable-grid or --disable-grid was given. | |
5594 | if test "${enable_grid+set}" = set; then | |
5595 | enableval="$enable_grid" | |
698dcdb6 | 5596 | |
10f2d63a VZ |
5597 | if test "$enableval" = yes; then |
5598 | ac_cv_use_grid='wxUSE_GRID=yes' | |
5599 | else | |
5600 | ac_cv_use_grid='wxUSE_GRID=no' | |
5601 | fi | |
698dcdb6 | 5602 | |
10f2d63a | 5603 | else |
698dcdb6 | 5604 | |
10f2d63a VZ |
5605 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` |
5606 | if test "x$LINE" != x ; then | |
5607 | eval "DEFAULT_$LINE" | |
5608 | else | |
5609 | no_cache=1 | |
5610 | fi | |
5611 | ||
5612 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
698dcdb6 VZ |
5613 | |
5614 | fi | |
10f2d63a VZ |
5615 | |
5616 | ||
5617 | eval "$ac_cv_use_grid" | |
5618 | if test "$no_cache" != 1; then | |
5619 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
5620 | fi | |
5621 | ||
5622 | if test "$wxUSE_GRID" = yes; then | |
698dcdb6 | 5623 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5624 | else |
698dcdb6 | 5625 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5626 | fi |
698dcdb6 | 5627 | |
10f2d63a | 5628 | |
698dcdb6 | 5629 | echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6 |
94054c1d | 5630 | echo "configure:5631: checking for --enable-newgrid" >&5 |
10f2d63a VZ |
5631 | no_cache=0 |
5632 | # Check whether --enable-newgrid or --disable-newgrid was given. | |
5633 | if test "${enable_newgrid+set}" = set; then | |
5634 | enableval="$enable_newgrid" | |
698dcdb6 | 5635 | |
10f2d63a VZ |
5636 | if test "$enableval" = yes; then |
5637 | ac_cv_use_newgrid='wxUSE_NEW_GRID=yes' | |
5638 | else | |
5639 | ac_cv_use_newgrid='wxUSE_NEW_GRID=no' | |
5640 | fi | |
698dcdb6 | 5641 | |
10f2d63a | 5642 | else |
698dcdb6 | 5643 | |
10f2d63a VZ |
5644 | LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}` |
5645 | if test "x$LINE" != x ; then | |
5646 | eval "DEFAULT_$LINE" | |
5647 | else | |
5648 | no_cache=1 | |
5649 | fi | |
5650 | ||
5651 | ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID | |
698dcdb6 VZ |
5652 | |
5653 | fi | |
10f2d63a VZ |
5654 | |
5655 | ||
5656 | eval "$ac_cv_use_newgrid" | |
5657 | if test "$no_cache" != 1; then | |
5658 | echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp | |
5659 | fi | |
5660 | ||
5661 | if test "$wxUSE_NEW_GRID" = yes; then | |
698dcdb6 | 5662 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5663 | else |
698dcdb6 | 5664 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5665 | fi |
698dcdb6 | 5666 | |
10f2d63a | 5667 | |
698dcdb6 | 5668 | echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6 |
94054c1d | 5669 | echo "configure:5670: checking for --enable-imaglist" >&5 |
10f2d63a VZ |
5670 | no_cache=0 |
5671 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
5672 | if test "${enable_imaglist+set}" = set; then | |
5673 | enableval="$enable_imaglist" | |
698dcdb6 | 5674 | |
10f2d63a VZ |
5675 | if test "$enableval" = yes; then |
5676 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
5677 | else | |
5678 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
5679 | fi | |
698dcdb6 | 5680 | |
10f2d63a | 5681 | else |
698dcdb6 | 5682 | |
10f2d63a VZ |
5683 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` |
5684 | if test "x$LINE" != x ; then | |
5685 | eval "DEFAULT_$LINE" | |
5686 | else | |
5687 | no_cache=1 | |
5688 | fi | |
5689 | ||
5690 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
698dcdb6 VZ |
5691 | |
5692 | fi | |
10f2d63a VZ |
5693 | |
5694 | ||
5695 | eval "$ac_cv_use_imaglist" | |
5696 | if test "$no_cache" != 1; then | |
5697 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
5698 | fi | |
5699 | ||
5700 | if test "$wxUSE_IMAGLIST" = yes; then | |
698dcdb6 | 5701 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5702 | else |
698dcdb6 | 5703 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5704 | fi |
698dcdb6 | 5705 | |
10f2d63a | 5706 | |
698dcdb6 | 5707 | echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6 |
94054c1d | 5708 | echo "configure:5709: checking for --enable-listbox" >&5 |
10f2d63a VZ |
5709 | no_cache=0 |
5710 | # Check whether --enable-listbox or --disable-listbox was given. | |
5711 | if test "${enable_listbox+set}" = set; then | |
5712 | enableval="$enable_listbox" | |
698dcdb6 | 5713 | |
10f2d63a VZ |
5714 | if test "$enableval" = yes; then |
5715 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
5716 | else | |
5717 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
5718 | fi | |
698dcdb6 | 5719 | |
10f2d63a | 5720 | else |
698dcdb6 | 5721 | |
10f2d63a VZ |
5722 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` |
5723 | if test "x$LINE" != x ; then | |
5724 | eval "DEFAULT_$LINE" | |
5725 | else | |
5726 | no_cache=1 | |
5727 | fi | |
5728 | ||
5729 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
698dcdb6 VZ |
5730 | |
5731 | fi | |
10f2d63a VZ |
5732 | |
5733 | ||
5734 | eval "$ac_cv_use_listbox" | |
5735 | if test "$no_cache" != 1; then | |
5736 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
5737 | fi | |
5738 | ||
5739 | if test "$wxUSE_LISTBOX" = yes; then | |
698dcdb6 | 5740 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5741 | else |
698dcdb6 | 5742 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5743 | fi |
698dcdb6 | 5744 | |
10f2d63a | 5745 | |
698dcdb6 | 5746 | echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6 |
94054c1d | 5747 | echo "configure:5748: checking for --enable-listctrl" >&5 |
10f2d63a VZ |
5748 | no_cache=0 |
5749 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
5750 | if test "${enable_listctrl+set}" = set; then | |
5751 | enableval="$enable_listctrl" | |
698dcdb6 | 5752 | |
10f2d63a VZ |
5753 | if test "$enableval" = yes; then |
5754 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
5755 | else | |
5756 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
5757 | fi | |
698dcdb6 | 5758 | |
10f2d63a | 5759 | else |
698dcdb6 | 5760 | |
10f2d63a VZ |
5761 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` |
5762 | if test "x$LINE" != x ; then | |
5763 | eval "DEFAULT_$LINE" | |
5764 | else | |
5765 | no_cache=1 | |
5766 | fi | |
5767 | ||
5768 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
698dcdb6 VZ |
5769 | |
5770 | fi | |
10f2d63a VZ |
5771 | |
5772 | ||
5773 | eval "$ac_cv_use_listctrl" | |
5774 | if test "$no_cache" != 1; then | |
5775 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
5776 | fi | |
5777 | ||
5778 | if test "$wxUSE_LISTCTRL" = yes; then | |
698dcdb6 | 5779 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5780 | else |
698dcdb6 | 5781 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5782 | fi |
698dcdb6 | 5783 | |
10f2d63a | 5784 | |
698dcdb6 | 5785 | echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6 |
94054c1d | 5786 | echo "configure:5787: checking for --enable-notebook" >&5 |
10f2d63a VZ |
5787 | no_cache=0 |
5788 | # Check whether --enable-notebook or --disable-notebook was given. | |
5789 | if test "${enable_notebook+set}" = set; then | |
5790 | enableval="$enable_notebook" | |
698dcdb6 | 5791 | |
10f2d63a VZ |
5792 | if test "$enableval" = yes; then |
5793 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
5794 | else | |
5795 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
5796 | fi | |
698dcdb6 | 5797 | |
10f2d63a | 5798 | else |
698dcdb6 | 5799 | |
10f2d63a VZ |
5800 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` |
5801 | if test "x$LINE" != x ; then | |
5802 | eval "DEFAULT_$LINE" | |
5803 | else | |
5804 | no_cache=1 | |
5805 | fi | |
5806 | ||
5807 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
698dcdb6 VZ |
5808 | |
5809 | fi | |
10f2d63a VZ |
5810 | |
5811 | ||
5812 | eval "$ac_cv_use_notebook" | |
5813 | if test "$no_cache" != 1; then | |
5814 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
5815 | fi | |
5816 | ||
5817 | if test "$wxUSE_NOTEBOOK" = yes; then | |
698dcdb6 | 5818 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5819 | else |
698dcdb6 | 5820 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5821 | fi |
698dcdb6 | 5822 | |
10f2d63a | 5823 | |
24176f2c | 5824 | echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6 |
94054c1d | 5825 | echo "configure:5826: checking for --enable-propsheet" >&5 |
24176f2c GD |
5826 | no_cache=0 |
5827 | # Check whether --enable-propsheet or --disable-propsheet was given. | |
5828 | if test "${enable_propsheet+set}" = set; then | |
5829 | enableval="$enable_propsheet" | |
5830 | ||
5831 | if test "$enableval" = yes; then | |
5832 | ac_cv_use_propsheet='wxUSE_PROPSHEET=yes' | |
5833 | else | |
5834 | ac_cv_use_propsheet='wxUSE_PROPSHEET=no' | |
5835 | fi | |
5836 | ||
5837 | else | |
5838 | ||
5839 | LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}` | |
5840 | if test "x$LINE" != x ; then | |
5841 | eval "DEFAULT_$LINE" | |
5842 | else | |
5843 | no_cache=1 | |
5844 | fi | |
5845 | ||
5846 | ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET | |
5847 | ||
5848 | fi | |
5849 | ||
5850 | ||
5851 | eval "$ac_cv_use_propsheet" | |
5852 | if test "$no_cache" != 1; then | |
5853 | echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp | |
5854 | fi | |
5855 | ||
5856 | if test "$wxUSE_PROPSHEET" = yes; then | |
5857 | echo "$ac_t""yes" 1>&6 | |
5858 | else | |
5859 | echo "$ac_t""no" 1>&6 | |
5860 | fi | |
5861 | ||
5862 | ||
698dcdb6 | 5863 | echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6 |
94054c1d | 5864 | echo "configure:5865: checking for --enable-radiobox" >&5 |
10f2d63a VZ |
5865 | no_cache=0 |
5866 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
5867 | if test "${enable_radiobox+set}" = set; then | |
5868 | enableval="$enable_radiobox" | |
698dcdb6 | 5869 | |
10f2d63a VZ |
5870 | if test "$enableval" = yes; then |
5871 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
5872 | else | |
5873 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
5874 | fi | |
698dcdb6 | 5875 | |
10f2d63a | 5876 | else |
698dcdb6 | 5877 | |
10f2d63a VZ |
5878 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` |
5879 | if test "x$LINE" != x ; then | |
5880 | eval "DEFAULT_$LINE" | |
5881 | else | |
5882 | no_cache=1 | |
5883 | fi | |
5884 | ||
5885 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
698dcdb6 VZ |
5886 | |
5887 | fi | |
10f2d63a VZ |
5888 | |
5889 | ||
5890 | eval "$ac_cv_use_radiobox" | |
5891 | if test "$no_cache" != 1; then | |
5892 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
5893 | fi | |
5894 | ||
5895 | if test "$wxUSE_RADIOBOX" = yes; then | |
698dcdb6 | 5896 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5897 | else |
698dcdb6 | 5898 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5899 | fi |
698dcdb6 | 5900 | |
10f2d63a | 5901 | |
698dcdb6 | 5902 | echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6 |
94054c1d | 5903 | echo "configure:5904: checking for --enable-radiobtn" >&5 |
10f2d63a VZ |
5904 | no_cache=0 |
5905 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
5906 | if test "${enable_radiobtn+set}" = set; then | |
5907 | enableval="$enable_radiobtn" | |
698dcdb6 | 5908 | |
10f2d63a VZ |
5909 | if test "$enableval" = yes; then |
5910 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
5911 | else | |
5912 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
5913 | fi | |
698dcdb6 | 5914 | |
10f2d63a | 5915 | else |
698dcdb6 | 5916 | |
10f2d63a VZ |
5917 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` |
5918 | if test "x$LINE" != x ; then | |
5919 | eval "DEFAULT_$LINE" | |
5920 | else | |
5921 | no_cache=1 | |
5922 | fi | |
5923 | ||
5924 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
698dcdb6 VZ |
5925 | |
5926 | fi | |
10f2d63a VZ |
5927 | |
5928 | ||
5929 | eval "$ac_cv_use_radiobtn" | |
5930 | if test "$no_cache" != 1; then | |
5931 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
5932 | fi | |
5933 | ||
5934 | if test "$wxUSE_RADIOBTN" = yes; then | |
698dcdb6 | 5935 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5936 | else |
698dcdb6 | 5937 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5938 | fi |
698dcdb6 | 5939 | |
10f2d63a | 5940 | |
698dcdb6 | 5941 | echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6 |
94054c1d | 5942 | echo "configure:5943: checking for --enable-sash" >&5 |
10f2d63a VZ |
5943 | no_cache=0 |
5944 | # Check whether --enable-sash or --disable-sash was given. | |
5945 | if test "${enable_sash+set}" = set; then | |
5946 | enableval="$enable_sash" | |
698dcdb6 | 5947 | |
10f2d63a VZ |
5948 | if test "$enableval" = yes; then |
5949 | ac_cv_use_sash='wxUSE_SASH=yes' | |
5950 | else | |
5951 | ac_cv_use_sash='wxUSE_SASH=no' | |
5952 | fi | |
698dcdb6 | 5953 | |
10f2d63a | 5954 | else |
698dcdb6 | 5955 | |
10f2d63a VZ |
5956 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` |
5957 | if test "x$LINE" != x ; then | |
5958 | eval "DEFAULT_$LINE" | |
5959 | else | |
5960 | no_cache=1 | |
5961 | fi | |
5962 | ||
5963 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
698dcdb6 VZ |
5964 | |
5965 | fi | |
10f2d63a VZ |
5966 | |
5967 | ||
5968 | eval "$ac_cv_use_sash" | |
5969 | if test "$no_cache" != 1; then | |
5970 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
5971 | fi | |
5972 | ||
5973 | if test "$wxUSE_SASH" = yes; then | |
698dcdb6 | 5974 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5975 | else |
698dcdb6 | 5976 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5977 | fi |
698dcdb6 | 5978 | |
10f2d63a | 5979 | |
698dcdb6 | 5980 | echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6 |
94054c1d | 5981 | echo "configure:5982: checking for --enable-scrollbar" >&5 |
10f2d63a VZ |
5982 | no_cache=0 |
5983 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
5984 | if test "${enable_scrollbar+set}" = set; then | |
5985 | enableval="$enable_scrollbar" | |
698dcdb6 | 5986 | |
10f2d63a VZ |
5987 | if test "$enableval" = yes; then |
5988 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
5989 | else | |
5990 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
5991 | fi | |
698dcdb6 | 5992 | |
10f2d63a | 5993 | else |
698dcdb6 | 5994 | |
10f2d63a VZ |
5995 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` |
5996 | if test "x$LINE" != x ; then | |
5997 | eval "DEFAULT_$LINE" | |
5998 | else | |
5999 | no_cache=1 | |
6000 | fi | |
6001 | ||
6002 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
698dcdb6 VZ |
6003 | |
6004 | fi | |
10f2d63a VZ |
6005 | |
6006 | ||
6007 | eval "$ac_cv_use_scrollbar" | |
6008 | if test "$no_cache" != 1; then | |
6009 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
6010 | fi | |
6011 | ||
6012 | if test "$wxUSE_SCROLLBAR" = yes; then | |
698dcdb6 | 6013 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6014 | else |
698dcdb6 | 6015 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6016 | fi |
698dcdb6 | 6017 | |
10f2d63a | 6018 | |
698dcdb6 | 6019 | echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6 |
94054c1d | 6020 | echo "configure:6021: checking for --enable-slider" >&5 |
10f2d63a VZ |
6021 | no_cache=0 |
6022 | # Check whether --enable-slider or --disable-slider was given. | |
6023 | if test "${enable_slider+set}" = set; then | |
6024 | enableval="$enable_slider" | |
698dcdb6 | 6025 | |
10f2d63a VZ |
6026 | if test "$enableval" = yes; then |
6027 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
6028 | else | |
6029 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
6030 | fi | |
698dcdb6 | 6031 | |
10f2d63a | 6032 | else |
698dcdb6 | 6033 | |
10f2d63a VZ |
6034 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` |
6035 | if test "x$LINE" != x ; then | |
6036 | eval "DEFAULT_$LINE" | |
6037 | else | |
6038 | no_cache=1 | |
6039 | fi | |
6040 | ||
6041 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
698dcdb6 VZ |
6042 | |
6043 | fi | |
10f2d63a VZ |
6044 | |
6045 | ||
6046 | eval "$ac_cv_use_slider" | |
6047 | if test "$no_cache" != 1; then | |
6048 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
6049 | fi | |
6050 | ||
6051 | if test "$wxUSE_SLIDER" = yes; then | |
698dcdb6 | 6052 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6053 | else |
698dcdb6 | 6054 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6055 | fi |
698dcdb6 | 6056 | |
10f2d63a | 6057 | |
698dcdb6 | 6058 | echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6 |
94054c1d | 6059 | echo "configure:6060: checking for --enable-spinbtn" >&5 |
10f2d63a VZ |
6060 | no_cache=0 |
6061 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
6062 | if test "${enable_spinbtn+set}" = set; then | |
6063 | enableval="$enable_spinbtn" | |
698dcdb6 | 6064 | |
10f2d63a VZ |
6065 | if test "$enableval" = yes; then |
6066 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
6067 | else | |
6068 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
6069 | fi | |
698dcdb6 | 6070 | |
10f2d63a | 6071 | else |
698dcdb6 | 6072 | |
10f2d63a VZ |
6073 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` |
6074 | if test "x$LINE" != x ; then | |
6075 | eval "DEFAULT_$LINE" | |
6076 | else | |
6077 | no_cache=1 | |
6078 | fi | |
6079 | ||
6080 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
698dcdb6 VZ |
6081 | |
6082 | fi | |
10f2d63a VZ |
6083 | |
6084 | ||
6085 | eval "$ac_cv_use_spinbtn" | |
6086 | if test "$no_cache" != 1; then | |
6087 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
6088 | fi | |
6089 | ||
6090 | if test "$wxUSE_SPINBTN" = yes; then | |
698dcdb6 | 6091 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6092 | else |
698dcdb6 | 6093 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6094 | fi |
698dcdb6 | 6095 | |
10f2d63a | 6096 | |
698dcdb6 | 6097 | echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6 |
94054c1d | 6098 | echo "configure:6099: checking for --enable-spinctrl" >&5 |
56cfaa52 RR |
6099 | no_cache=0 |
6100 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
6101 | if test "${enable_spinctrl+set}" = set; then | |
6102 | enableval="$enable_spinctrl" | |
698dcdb6 | 6103 | |
56cfaa52 RR |
6104 | if test "$enableval" = yes; then |
6105 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
6106 | else | |
6107 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
6108 | fi | |
698dcdb6 | 6109 | |
56cfaa52 | 6110 | else |
698dcdb6 | 6111 | |
56cfaa52 RR |
6112 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` |
6113 | if test "x$LINE" != x ; then | |
6114 | eval "DEFAULT_$LINE" | |
6115 | else | |
6116 | no_cache=1 | |
6117 | fi | |
6118 | ||
6119 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
698dcdb6 VZ |
6120 | |
6121 | fi | |
56cfaa52 RR |
6122 | |
6123 | ||
6124 | eval "$ac_cv_use_spinctrl" | |
6125 | if test "$no_cache" != 1; then | |
6126 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
6127 | fi | |
6128 | ||
6129 | if test "$wxUSE_SPINCTRL" = yes; then | |
698dcdb6 | 6130 | echo "$ac_t""yes" 1>&6 |
56cfaa52 | 6131 | else |
698dcdb6 | 6132 | echo "$ac_t""no" 1>&6 |
56cfaa52 | 6133 | fi |
698dcdb6 | 6134 | |
56cfaa52 | 6135 | |
698dcdb6 | 6136 | echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6 |
94054c1d | 6137 | echo "configure:6138: checking for --enable-splitter" >&5 |
10f2d63a VZ |
6138 | no_cache=0 |
6139 | # Check whether --enable-splitter or --disable-splitter was given. | |
6140 | if test "${enable_splitter+set}" = set; then | |
6141 | enableval="$enable_splitter" | |
698dcdb6 | 6142 | |
10f2d63a VZ |
6143 | if test "$enableval" = yes; then |
6144 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
6145 | else | |
6146 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
6147 | fi | |
698dcdb6 | 6148 | |
10f2d63a | 6149 | else |
698dcdb6 | 6150 | |
10f2d63a VZ |
6151 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` |
6152 | if test "x$LINE" != x ; then | |
6153 | eval "DEFAULT_$LINE" | |
6154 | else | |
6155 | no_cache=1 | |
6156 | fi | |
6157 | ||
6158 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
698dcdb6 VZ |
6159 | |
6160 | fi | |
10f2d63a VZ |
6161 | |
6162 | ||
6163 | eval "$ac_cv_use_splitter" | |
6164 | if test "$no_cache" != 1; then | |
6165 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
6166 | fi | |
6167 | ||
6168 | if test "$wxUSE_SPLITTER" = yes; then | |
698dcdb6 | 6169 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6170 | else |
698dcdb6 | 6171 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6172 | fi |
698dcdb6 | 6173 | |
10f2d63a | 6174 | |
698dcdb6 | 6175 | echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6 |
94054c1d | 6176 | echo "configure:6177: checking for --enable-statbmp" >&5 |
10f2d63a VZ |
6177 | no_cache=0 |
6178 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
6179 | if test "${enable_statbmp+set}" = set; then | |
6180 | enableval="$enable_statbmp" | |
698dcdb6 | 6181 | |
10f2d63a VZ |
6182 | if test "$enableval" = yes; then |
6183 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
6184 | else | |
6185 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
6186 | fi | |
698dcdb6 | 6187 | |
10f2d63a | 6188 | else |
698dcdb6 | 6189 | |
10f2d63a VZ |
6190 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` |
6191 | if test "x$LINE" != x ; then | |
6192 | eval "DEFAULT_$LINE" | |
6193 | else | |
6194 | no_cache=1 | |
6195 | fi | |
6196 | ||
6197 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
698dcdb6 VZ |
6198 | |
6199 | fi | |
10f2d63a VZ |
6200 | |
6201 | ||
6202 | eval "$ac_cv_use_statbmp" | |
6203 | if test "$no_cache" != 1; then | |
6204 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
6205 | fi | |
6206 | ||
6207 | if test "$wxUSE_STATBMP" = yes; then | |
698dcdb6 | 6208 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6209 | else |
698dcdb6 | 6210 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6211 | fi |
698dcdb6 | 6212 | |
10f2d63a | 6213 | |
698dcdb6 | 6214 | echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6 |
94054c1d | 6215 | echo "configure:6216: checking for --enable-statbox" >&5 |
10f2d63a VZ |
6216 | no_cache=0 |
6217 | # Check whether --enable-statbox or --disable-statbox was given. | |
6218 | if test "${enable_statbox+set}" = set; then | |
6219 | enableval="$enable_statbox" | |
698dcdb6 | 6220 | |
10f2d63a VZ |
6221 | if test "$enableval" = yes; then |
6222 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
6223 | else | |
6224 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
6225 | fi | |
698dcdb6 | 6226 | |
10f2d63a | 6227 | else |
698dcdb6 | 6228 | |
10f2d63a VZ |
6229 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` |
6230 | if test "x$LINE" != x ; then | |
6231 | eval "DEFAULT_$LINE" | |
6232 | else | |
6233 | no_cache=1 | |
6234 | fi | |
6235 | ||
6236 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
698dcdb6 VZ |
6237 | |
6238 | fi | |
10f2d63a VZ |
6239 | |
6240 | ||
6241 | eval "$ac_cv_use_statbox" | |
6242 | if test "$no_cache" != 1; then | |
6243 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
6244 | fi | |
6245 | ||
6246 | if test "$wxUSE_STATBOX" = yes; then | |
698dcdb6 | 6247 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6248 | else |
698dcdb6 | 6249 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6250 | fi |
698dcdb6 | 6251 | |
10f2d63a | 6252 | |
698dcdb6 | 6253 | echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6 |
94054c1d | 6254 | echo "configure:6255: checking for --enable-statline" >&5 |
10f2d63a VZ |
6255 | no_cache=0 |
6256 | # Check whether --enable-statline or --disable-statline was given. | |
6257 | if test "${enable_statline+set}" = set; then | |
6258 | enableval="$enable_statline" | |
698dcdb6 | 6259 | |
10f2d63a VZ |
6260 | if test "$enableval" = yes; then |
6261 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
6262 | else | |
6263 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
6264 | fi | |
698dcdb6 | 6265 | |
10f2d63a | 6266 | else |
698dcdb6 | 6267 | |
10f2d63a VZ |
6268 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` |
6269 | if test "x$LINE" != x ; then | |
6270 | eval "DEFAULT_$LINE" | |
6271 | else | |
6272 | no_cache=1 | |
6273 | fi | |
6274 | ||
6275 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
698dcdb6 VZ |
6276 | |
6277 | fi | |
10f2d63a VZ |
6278 | |
6279 | ||
6280 | eval "$ac_cv_use_statline" | |
6281 | if test "$no_cache" != 1; then | |
6282 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
6283 | fi | |
6284 | ||
6285 | if test "$wxUSE_STATLINE" = yes; then | |
698dcdb6 | 6286 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6287 | else |
698dcdb6 | 6288 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6289 | fi |
698dcdb6 | 6290 | |
10f2d63a | 6291 | |
1e6feb95 | 6292 | echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6 |
94054c1d | 6293 | echo "configure:6294: checking for --enable-stattext" >&5 |
1e6feb95 VZ |
6294 | no_cache=0 |
6295 | # Check whether --enable-stattext or --disable-stattext was given. | |
6296 | if test "${enable_stattext+set}" = set; then | |
6297 | enableval="$enable_stattext" | |
6298 | ||
6299 | if test "$enableval" = yes; then | |
6300 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
6301 | else | |
6302 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
6303 | fi | |
6304 | ||
6305 | else | |
6306 | ||
6307 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
6308 | if test "x$LINE" != x ; then | |
6309 | eval "DEFAULT_$LINE" | |
6310 | else | |
6311 | no_cache=1 | |
6312 | fi | |
6313 | ||
6314 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
6315 | ||
6316 | fi | |
6317 | ||
6318 | ||
6319 | eval "$ac_cv_use_stattext" | |
6320 | if test "$no_cache" != 1; then | |
6321 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
6322 | fi | |
6323 | ||
6324 | if test "$wxUSE_STATTEXT" = yes; then | |
6325 | echo "$ac_t""yes" 1>&6 | |
6326 | else | |
6327 | echo "$ac_t""no" 1>&6 | |
6328 | fi | |
6329 | ||
6330 | ||
698dcdb6 | 6331 | echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6 |
94054c1d | 6332 | echo "configure:6333: checking for --enable-statusbar" >&5 |
10f2d63a VZ |
6333 | no_cache=0 |
6334 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
6335 | if test "${enable_statusbar+set}" = set; then | |
6336 | enableval="$enable_statusbar" | |
698dcdb6 | 6337 | |
10f2d63a VZ |
6338 | if test "$enableval" = yes; then |
6339 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
6340 | else | |
6341 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
6342 | fi | |
698dcdb6 | 6343 | |
10f2d63a | 6344 | else |
698dcdb6 | 6345 | |
10f2d63a VZ |
6346 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` |
6347 | if test "x$LINE" != x ; then | |
6348 | eval "DEFAULT_$LINE" | |
6349 | else | |
6350 | no_cache=1 | |
6351 | fi | |
6352 | ||
6353 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
698dcdb6 VZ |
6354 | |
6355 | fi | |
10f2d63a VZ |
6356 | |
6357 | ||
6358 | eval "$ac_cv_use_statusbar" | |
6359 | if test "$no_cache" != 1; then | |
6360 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
6361 | fi | |
6362 | ||
6363 | if test "$wxUSE_STATUSBAR" = yes; then | |
698dcdb6 | 6364 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6365 | else |
698dcdb6 | 6366 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6367 | fi |
698dcdb6 | 6368 | |
10f2d63a | 6369 | |
698dcdb6 | 6370 | echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6 |
94054c1d | 6371 | echo "configure:6372: checking for --enable-tabdialog" >&5 |
10f2d63a VZ |
6372 | no_cache=0 |
6373 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
6374 | if test "${enable_tabdialog+set}" = set; then | |
6375 | enableval="$enable_tabdialog" | |
698dcdb6 | 6376 | |
10f2d63a VZ |
6377 | if test "$enableval" = yes; then |
6378 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
6379 | else | |
6380 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
6381 | fi | |
698dcdb6 | 6382 | |
10f2d63a | 6383 | else |
698dcdb6 | 6384 | |
10f2d63a VZ |
6385 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` |
6386 | if test "x$LINE" != x ; then | |
6387 | eval "DEFAULT_$LINE" | |
6388 | else | |
6389 | no_cache=1 | |
6390 | fi | |
6391 | ||
6392 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
698dcdb6 VZ |
6393 | |
6394 | fi | |
10f2d63a VZ |
6395 | |
6396 | ||
6397 | eval "$ac_cv_use_tabdialog" | |
6398 | if test "$no_cache" != 1; then | |
6399 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
6400 | fi | |
6401 | ||
6402 | if test "$wxUSE_TABDIALOG" = yes; then | |
698dcdb6 | 6403 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6404 | else |
698dcdb6 | 6405 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6406 | fi |
698dcdb6 | 6407 | |
10f2d63a | 6408 | |
1e6feb95 | 6409 | echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6 |
94054c1d | 6410 | echo "configure:6411: checking for --enable-textctrl" >&5 |
1e6feb95 VZ |
6411 | no_cache=0 |
6412 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
6413 | if test "${enable_textctrl+set}" = set; then | |
6414 | enableval="$enable_textctrl" | |
6415 | ||
6416 | if test "$enableval" = yes; then | |
6417 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
6418 | else | |
6419 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
6420 | fi | |
6421 | ||
6422 | else | |
6423 | ||
6424 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
6425 | if test "x$LINE" != x ; then | |
6426 | eval "DEFAULT_$LINE" | |
6427 | else | |
6428 | no_cache=1 | |
6429 | fi | |
6430 | ||
6431 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
6432 | ||
6433 | fi | |
6434 | ||
6435 | ||
6436 | eval "$ac_cv_use_textctrl" | |
6437 | if test "$no_cache" != 1; then | |
6438 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
6439 | fi | |
6440 | ||
6441 | if test "$wxUSE_TEXTCTRL" = yes; then | |
6442 | echo "$ac_t""yes" 1>&6 | |
6443 | else | |
6444 | echo "$ac_t""no" 1>&6 | |
6445 | fi | |
6446 | ||
6447 | ||
698dcdb6 | 6448 | echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6 |
94054c1d | 6449 | echo "configure:6450: checking for --enable-togglebtn" >&5 |
1db8dc4a VZ |
6450 | no_cache=0 |
6451 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
6452 | if test "${enable_togglebtn+set}" = set; then | |
6453 | enableval="$enable_togglebtn" | |
698dcdb6 | 6454 | |
1db8dc4a VZ |
6455 | if test "$enableval" = yes; then |
6456 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
6457 | else | |
6458 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
6459 | fi | |
698dcdb6 | 6460 | |
1db8dc4a | 6461 | else |
698dcdb6 | 6462 | |
1db8dc4a VZ |
6463 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` |
6464 | if test "x$LINE" != x ; then | |
6465 | eval "DEFAULT_$LINE" | |
6466 | else | |
6467 | no_cache=1 | |
6468 | fi | |
6469 | ||
6470 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
698dcdb6 VZ |
6471 | |
6472 | fi | |
1db8dc4a VZ |
6473 | |
6474 | ||
6475 | eval "$ac_cv_use_togglebtn" | |
6476 | if test "$no_cache" != 1; then | |
6477 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
6478 | fi | |
6479 | ||
6480 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
698dcdb6 | 6481 | echo "$ac_t""yes" 1>&6 |
1db8dc4a | 6482 | else |
698dcdb6 | 6483 | echo "$ac_t""no" 1>&6 |
1db8dc4a | 6484 | fi |
698dcdb6 | 6485 | |
1db8dc4a | 6486 | |
698dcdb6 | 6487 | echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6 |
94054c1d | 6488 | echo "configure:6489: checking for --enable-toolbar" >&5 |
10f2d63a VZ |
6489 | no_cache=0 |
6490 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
6491 | if test "${enable_toolbar+set}" = set; then | |
6492 | enableval="$enable_toolbar" | |
698dcdb6 | 6493 | |
10f2d63a VZ |
6494 | if test "$enableval" = yes; then |
6495 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
6496 | else | |
6497 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
6498 | fi | |
698dcdb6 | 6499 | |
10f2d63a | 6500 | else |
698dcdb6 | 6501 | |
10f2d63a VZ |
6502 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` |
6503 | if test "x$LINE" != x ; then | |
6504 | eval "DEFAULT_$LINE" | |
6505 | else | |
6506 | no_cache=1 | |
6507 | fi | |
6508 | ||
6509 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
698dcdb6 VZ |
6510 | |
6511 | fi | |
10f2d63a VZ |
6512 | |
6513 | ||
6514 | eval "$ac_cv_use_toolbar" | |
6515 | if test "$no_cache" != 1; then | |
6516 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
6517 | fi | |
6518 | ||
6519 | if test "$wxUSE_TOOLBAR" = yes; then | |
698dcdb6 | 6520 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6521 | else |
698dcdb6 | 6522 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6523 | fi |
698dcdb6 | 6524 | |
10f2d63a | 6525 | |
698dcdb6 | 6526 | echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6 |
94054c1d | 6527 | echo "configure:6528: checking for --enable-tbarnative" >&5 |
360d6699 VZ |
6528 | no_cache=0 |
6529 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
6530 | if test "${enable_tbarnative+set}" = set; then | |
6531 | enableval="$enable_tbarnative" | |
698dcdb6 | 6532 | |
360d6699 VZ |
6533 | if test "$enableval" = yes; then |
6534 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
6535 | else | |
6536 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
6537 | fi | |
698dcdb6 | 6538 | |
360d6699 | 6539 | else |
698dcdb6 | 6540 | |
360d6699 VZ |
6541 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` |
6542 | if test "x$LINE" != x ; then | |
6543 | eval "DEFAULT_$LINE" | |
6544 | else | |
6545 | no_cache=1 | |
6546 | fi | |
6547 | ||
6548 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
698dcdb6 VZ |
6549 | |
6550 | fi | |
360d6699 VZ |
6551 | |
6552 | ||
6553 | eval "$ac_cv_use_tbarnative" | |
6554 | if test "$no_cache" != 1; then | |
6555 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
6556 | fi | |
6557 | ||
6558 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
698dcdb6 | 6559 | echo "$ac_t""yes" 1>&6 |
360d6699 | 6560 | else |
698dcdb6 | 6561 | echo "$ac_t""no" 1>&6 |
360d6699 | 6562 | fi |
698dcdb6 | 6563 | |
360d6699 | 6564 | |
698dcdb6 | 6565 | echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6 |
94054c1d | 6566 | echo "configure:6567: checking for --enable-tbarsmpl" >&5 |
360d6699 VZ |
6567 | no_cache=0 |
6568 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
6569 | if test "${enable_tbarsmpl+set}" = set; then | |
6570 | enableval="$enable_tbarsmpl" | |
698dcdb6 | 6571 | |
360d6699 VZ |
6572 | if test "$enableval" = yes; then |
6573 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
6574 | else | |
6575 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
6576 | fi | |
698dcdb6 | 6577 | |
360d6699 | 6578 | else |
698dcdb6 | 6579 | |
360d6699 VZ |
6580 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` |
6581 | if test "x$LINE" != x ; then | |
6582 | eval "DEFAULT_$LINE" | |
6583 | else | |
6584 | no_cache=1 | |
6585 | fi | |
6586 | ||
6587 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
698dcdb6 VZ |
6588 | |
6589 | fi | |
360d6699 VZ |
6590 | |
6591 | ||
6592 | eval "$ac_cv_use_tbarsmpl" | |
6593 | if test "$no_cache" != 1; then | |
6594 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
6595 | fi | |
6596 | ||
6597 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
698dcdb6 | 6598 | echo "$ac_t""yes" 1>&6 |
360d6699 | 6599 | else |
698dcdb6 | 6600 | echo "$ac_t""no" 1>&6 |
360d6699 | 6601 | fi |
698dcdb6 | 6602 | |
360d6699 | 6603 | |
698dcdb6 | 6604 | echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6 |
94054c1d | 6605 | echo "configure:6606: checking for --enable-treectrl" >&5 |
10f2d63a VZ |
6606 | no_cache=0 |
6607 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
6608 | if test "${enable_treectrl+set}" = set; then | |
6609 | enableval="$enable_treectrl" | |
698dcdb6 | 6610 | |
10f2d63a VZ |
6611 | if test "$enableval" = yes; then |
6612 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
6613 | else | |
6614 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
6615 | fi | |
698dcdb6 | 6616 | |
10f2d63a | 6617 | else |
698dcdb6 | 6618 | |
10f2d63a VZ |
6619 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` |
6620 | if test "x$LINE" != x ; then | |
6621 | eval "DEFAULT_$LINE" | |
6622 | else | |
6623 | no_cache=1 | |
6624 | fi | |
6625 | ||
6626 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
698dcdb6 VZ |
6627 | |
6628 | fi | |
10f2d63a VZ |
6629 | |
6630 | ||
1e6feb95 VZ |
6631 | eval "$ac_cv_use_treectrl" |
6632 | if test "$no_cache" != 1; then | |
6633 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
6634 | fi | |
6635 | ||
6636 | if test "$wxUSE_TREECTRL" = yes; then | |
6637 | echo "$ac_t""yes" 1>&6 | |
6638 | else | |
6639 | echo "$ac_t""no" 1>&6 | |
6640 | fi | |
6641 | ||
6642 | ||
9f41d601 | 6643 | echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6 |
94054c1d | 6644 | echo "configure:6645: checking for --enable-popupwin" >&5 |
9f41d601 RR |
6645 | no_cache=0 |
6646 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
6647 | if test "${enable_popupwin+set}" = set; then | |
6648 | enableval="$enable_popupwin" | |
6649 | ||
6650 | if test "$enableval" = yes; then | |
6651 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
6652 | else | |
6653 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
6654 | fi | |
6655 | ||
6656 | else | |
6657 | ||
6658 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` | |
6659 | if test "x$LINE" != x ; then | |
6660 | eval "DEFAULT_$LINE" | |
6661 | else | |
6662 | no_cache=1 | |
6663 | fi | |
6664 | ||
6665 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
6666 | ||
6667 | fi | |
6668 | ||
6669 | ||
6670 | eval "$ac_cv_use_popupwin" | |
6671 | if test "$no_cache" != 1; then | |
6672 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
6673 | fi | |
6674 | ||
6675 | if test "$wxUSE_POPUPWIN" = yes; then | |
6676 | echo "$ac_t""yes" 1>&6 | |
6677 | else | |
6678 | echo "$ac_t""no" 1>&6 | |
6679 | fi | |
6680 | ||
6681 | ||
1e6feb95 VZ |
6682 | |
6683 | ||
6684 | echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6 | |
94054c1d | 6685 | echo "configure:6686: checking for --enable-commondlg" >&5 |
1e6feb95 VZ |
6686 | no_cache=0 |
6687 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
6688 | if test "${enable_commondlg+set}" = set; then | |
6689 | enableval="$enable_commondlg" | |
6690 | ||
6691 | if test "$enableval" = yes; then | |
6692 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
6693 | else | |
6694 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
6695 | fi | |
6696 | ||
6697 | else | |
6698 | ||
6699 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
6700 | if test "x$LINE" != x ; then | |
6701 | eval "DEFAULT_$LINE" | |
6702 | else | |
6703 | no_cache=1 | |
6704 | fi | |
6705 | ||
6706 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
6707 | ||
6708 | fi | |
6709 | ||
6710 | ||
6711 | eval "$ac_cv_use_commondlg" | |
6712 | if test "$no_cache" != 1; then | |
6713 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
6714 | fi | |
6715 | ||
6716 | if test "$wxUSE_COMMONDLGS" = yes; then | |
6717 | echo "$ac_t""yes" 1>&6 | |
6718 | else | |
6719 | echo "$ac_t""no" 1>&6 | |
6720 | fi | |
6721 | ||
6722 | ||
6723 | echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6 | |
94054c1d | 6724 | echo "configure:6725: checking for --enable-choicedlg" >&5 |
1e6feb95 VZ |
6725 | no_cache=0 |
6726 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
6727 | if test "${enable_choicedlg+set}" = set; then | |
6728 | enableval="$enable_choicedlg" | |
6729 | ||
6730 | if test "$enableval" = yes; then | |
6731 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
6732 | else | |
6733 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
6734 | fi | |
6735 | ||
6736 | else | |
6737 | ||
6738 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
6739 | if test "x$LINE" != x ; then | |
6740 | eval "DEFAULT_$LINE" | |
6741 | else | |
6742 | no_cache=1 | |
6743 | fi | |
6744 | ||
6745 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
6746 | ||
6747 | fi | |
6748 | ||
6749 | ||
6750 | eval "$ac_cv_use_choicedlg" | |
6751 | if test "$no_cache" != 1; then | |
6752 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
6753 | fi | |
6754 | ||
6755 | if test "$wxUSE_CHOICEDLG" = yes; then | |
6756 | echo "$ac_t""yes" 1>&6 | |
6757 | else | |
6758 | echo "$ac_t""no" 1>&6 | |
6759 | fi | |
6760 | ||
6761 | ||
6762 | echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6 | |
94054c1d | 6763 | echo "configure:6764: checking for --enable-coldlg" >&5 |
1e6feb95 VZ |
6764 | no_cache=0 |
6765 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
6766 | if test "${enable_coldlg+set}" = set; then | |
6767 | enableval="$enable_coldlg" | |
6768 | ||
6769 | if test "$enableval" = yes; then | |
6770 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
6771 | else | |
6772 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
6773 | fi | |
6774 | ||
6775 | else | |
6776 | ||
6777 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
6778 | if test "x$LINE" != x ; then | |
6779 | eval "DEFAULT_$LINE" | |
6780 | else | |
6781 | no_cache=1 | |
6782 | fi | |
6783 | ||
6784 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
6785 | ||
6786 | fi | |
6787 | ||
6788 | ||
6789 | eval "$ac_cv_use_coldlg" | |
6790 | if test "$no_cache" != 1; then | |
6791 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
6792 | fi | |
6793 | ||
6794 | if test "$wxUSE_COLOURDLG" = yes; then | |
6795 | echo "$ac_t""yes" 1>&6 | |
6796 | else | |
6797 | echo "$ac_t""no" 1>&6 | |
6798 | fi | |
6799 | ||
6800 | ||
6801 | echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6 | |
94054c1d | 6802 | echo "configure:6803: checking for --enable-filedlg" >&5 |
1e6feb95 VZ |
6803 | no_cache=0 |
6804 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
6805 | if test "${enable_filedlg+set}" = set; then | |
6806 | enableval="$enable_filedlg" | |
6807 | ||
6808 | if test "$enableval" = yes; then | |
6809 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
6810 | else | |
6811 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
6812 | fi | |
6813 | ||
6814 | else | |
6815 | ||
6816 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
6817 | if test "x$LINE" != x ; then | |
6818 | eval "DEFAULT_$LINE" | |
6819 | else | |
6820 | no_cache=1 | |
6821 | fi | |
6822 | ||
6823 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
6824 | ||
6825 | fi | |
6826 | ||
6827 | ||
6828 | eval "$ac_cv_use_filedlg" | |
6829 | if test "$no_cache" != 1; then | |
6830 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
6831 | fi | |
6832 | ||
6833 | if test "$wxUSE_FILEDLG" = yes; then | |
6834 | echo "$ac_t""yes" 1>&6 | |
6835 | else | |
6836 | echo "$ac_t""no" 1>&6 | |
6837 | fi | |
6838 | ||
6839 | ||
8db37e06 | 6840 | echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6 |
94054c1d | 6841 | echo "configure:6842: checking for --enable-filedlg" >&5 |
8db37e06 VZ |
6842 | no_cache=0 |
6843 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
6844 | if test "${enable_filedlg+set}" = set; then | |
6845 | enableval="$enable_filedlg" | |
6846 | ||
6847 | if test "$enableval" = yes; then | |
6848 | ac_cv_use_filedlg='wxUSE_FINDREPLDLG=yes' | |
6849 | else | |
6850 | ac_cv_use_filedlg='wxUSE_FINDREPLDLG=no' | |
6851 | fi | |
6852 | ||
6853 | else | |
6854 | ||
6855 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` | |
6856 | if test "x$LINE" != x ; then | |
6857 | eval "DEFAULT_$LINE" | |
6858 | else | |
6859 | no_cache=1 | |
6860 | fi | |
6861 | ||
6862 | ac_cv_use_filedlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG | |
6863 | ||
6864 | fi | |
6865 | ||
6866 | ||
6867 | eval "$ac_cv_use_filedlg" | |
6868 | if test "$no_cache" != 1; then | |
6869 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
6870 | fi | |
6871 | ||
6872 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
6873 | echo "$ac_t""yes" 1>&6 | |
6874 | else | |
6875 | echo "$ac_t""no" 1>&6 | |
6876 | fi | |
6877 | ||
6878 | ||
1e6feb95 | 6879 | echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6 |
94054c1d | 6880 | echo "configure:6881: checking for --enable-fontdlg" >&5 |
1e6feb95 VZ |
6881 | no_cache=0 |
6882 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
6883 | if test "${enable_fontdlg+set}" = set; then | |
6884 | enableval="$enable_fontdlg" | |
6885 | ||
6886 | if test "$enableval" = yes; then | |
6887 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
6888 | else | |
6889 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
6890 | fi | |
6891 | ||
6892 | else | |
6893 | ||
6894 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
6895 | if test "x$LINE" != x ; then | |
6896 | eval "DEFAULT_$LINE" | |
6897 | else | |
6898 | no_cache=1 | |
6899 | fi | |
6900 | ||
6901 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
6902 | ||
6903 | fi | |
6904 | ||
6905 | ||
6906 | eval "$ac_cv_use_fontdlg" | |
6907 | if test "$no_cache" != 1; then | |
6908 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
6909 | fi | |
6910 | ||
6911 | if test "$wxUSE_FONTDLG" = yes; then | |
6912 | echo "$ac_t""yes" 1>&6 | |
6913 | else | |
6914 | echo "$ac_t""no" 1>&6 | |
6915 | fi | |
6916 | ||
6917 | ||
6918 | echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6 | |
94054c1d | 6919 | echo "configure:6920: checking for --enable-dirdlg" >&5 |
1e6feb95 VZ |
6920 | no_cache=0 |
6921 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
6922 | if test "${enable_dirdlg+set}" = set; then | |
6923 | enableval="$enable_dirdlg" | |
6924 | ||
6925 | if test "$enableval" = yes; then | |
6926 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
6927 | else | |
6928 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
6929 | fi | |
6930 | ||
6931 | else | |
6932 | ||
6933 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
6934 | if test "x$LINE" != x ; then | |
6935 | eval "DEFAULT_$LINE" | |
6936 | else | |
6937 | no_cache=1 | |
6938 | fi | |
6939 | ||
6940 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
6941 | ||
6942 | fi | |
6943 | ||
6944 | ||
6945 | eval "$ac_cv_use_dirdlg" | |
10f2d63a | 6946 | if test "$no_cache" != 1; then |
1e6feb95 | 6947 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6948 | fi |
6949 | ||
1e6feb95 | 6950 | if test "$wxUSE_DIRDLG" = yes; then |
698dcdb6 | 6951 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6952 | else |
698dcdb6 | 6953 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6954 | fi |
698dcdb6 VZ |
6955 | |
6956 | ||
1e6feb95 | 6957 | echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6 |
94054c1d | 6958 | echo "configure:6959: checking for --enable-msgdlg" >&5 |
10f2d63a | 6959 | no_cache=0 |
1e6feb95 VZ |
6960 | # Check whether --enable-msgdlg or --disable-msgdlg was given. |
6961 | if test "${enable_msgdlg+set}" = set; then | |
6962 | enableval="$enable_msgdlg" | |
698dcdb6 | 6963 | |
10f2d63a | 6964 | if test "$enableval" = yes; then |
1e6feb95 | 6965 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' |
10f2d63a | 6966 | else |
1e6feb95 | 6967 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' |
10f2d63a | 6968 | fi |
698dcdb6 | 6969 | |
10f2d63a | 6970 | else |
698dcdb6 | 6971 | |
1e6feb95 | 6972 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
6973 | if test "x$LINE" != x ; then |
6974 | eval "DEFAULT_$LINE" | |
6975 | else | |
6976 | no_cache=1 | |
6977 | fi | |
6978 | ||
1e6feb95 | 6979 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG |
698dcdb6 VZ |
6980 | |
6981 | fi | |
10f2d63a VZ |
6982 | |
6983 | ||
1e6feb95 | 6984 | eval "$ac_cv_use_msgdlg" |
10f2d63a | 6985 | if test "$no_cache" != 1; then |
1e6feb95 | 6986 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6987 | fi |
6988 | ||
1e6feb95 | 6989 | if test "$wxUSE_MSGDLG" = yes; then |
698dcdb6 | 6990 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6991 | else |
698dcdb6 | 6992 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6993 | fi |
698dcdb6 | 6994 | |
10f2d63a | 6995 | |
1e6feb95 | 6996 | echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6 |
94054c1d | 6997 | echo "configure:6998: checking for --enable-numberdlg" >&5 |
10f2d63a | 6998 | no_cache=0 |
1e6feb95 VZ |
6999 | # Check whether --enable-numberdlg or --disable-numberdlg was given. |
7000 | if test "${enable_numberdlg+set}" = set; then | |
7001 | enableval="$enable_numberdlg" | |
698dcdb6 | 7002 | |
10f2d63a | 7003 | if test "$enableval" = yes; then |
1e6feb95 | 7004 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' |
10f2d63a | 7005 | else |
1e6feb95 | 7006 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' |
10f2d63a | 7007 | fi |
698dcdb6 | 7008 | |
10f2d63a | 7009 | else |
698dcdb6 | 7010 | |
1e6feb95 | 7011 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
7012 | if test "x$LINE" != x ; then |
7013 | eval "DEFAULT_$LINE" | |
7014 | else | |
7015 | no_cache=1 | |
7016 | fi | |
7017 | ||
1e6feb95 | 7018 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG |
698dcdb6 VZ |
7019 | |
7020 | fi | |
10f2d63a VZ |
7021 | |
7022 | ||
1e6feb95 | 7023 | eval "$ac_cv_use_numberdlg" |
10f2d63a | 7024 | if test "$no_cache" != 1; then |
1e6feb95 | 7025 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7026 | fi |
7027 | ||
1e6feb95 | 7028 | if test "$wxUSE_NUMBERDLG" = yes; then |
698dcdb6 | 7029 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7030 | else |
698dcdb6 | 7031 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7032 | fi |
698dcdb6 | 7033 | |
10f2d63a | 7034 | |
cbca9943 | 7035 | echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6 |
94054c1d | 7036 | echo "configure:7037: checking for --enable-splash" >&5 |
cbca9943 VZ |
7037 | no_cache=0 |
7038 | # Check whether --enable-splash or --disable-splash was given. | |
7039 | if test "${enable_splash+set}" = set; then | |
7040 | enableval="$enable_splash" | |
7041 | ||
7042 | if test "$enableval" = yes; then | |
7043 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
7044 | else | |
7045 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
7046 | fi | |
7047 | ||
7048 | else | |
7049 | ||
7050 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` | |
7051 | if test "x$LINE" != x ; then | |
7052 | eval "DEFAULT_$LINE" | |
7053 | else | |
7054 | no_cache=1 | |
7055 | fi | |
7056 | ||
7057 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
7058 | ||
7059 | fi | |
7060 | ||
7061 | ||
7062 | eval "$ac_cv_use_splash" | |
7063 | if test "$no_cache" != 1; then | |
7064 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
7065 | fi | |
7066 | ||
7067 | if test "$wxUSE_SPLASH" = yes; then | |
7068 | echo "$ac_t""yes" 1>&6 | |
7069 | else | |
7070 | echo "$ac_t""no" 1>&6 | |
7071 | fi | |
7072 | ||
7073 | ||
698dcdb6 | 7074 | echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6 |
94054c1d | 7075 | echo "configure:7076: checking for --enable-textdlg" >&5 |
10f2d63a VZ |
7076 | no_cache=0 |
7077 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
7078 | if test "${enable_textdlg+set}" = set; then | |
7079 | enableval="$enable_textdlg" | |
698dcdb6 | 7080 | |
10f2d63a VZ |
7081 | if test "$enableval" = yes; then |
7082 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
7083 | else | |
7084 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
7085 | fi | |
698dcdb6 | 7086 | |
10f2d63a | 7087 | else |
698dcdb6 | 7088 | |
10f2d63a VZ |
7089 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` |
7090 | if test "x$LINE" != x ; then | |
7091 | eval "DEFAULT_$LINE" | |
7092 | else | |
7093 | no_cache=1 | |
7094 | fi | |
7095 | ||
7096 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
698dcdb6 VZ |
7097 | |
7098 | fi | |
10f2d63a VZ |
7099 | |
7100 | ||
7101 | eval "$ac_cv_use_textdlg" | |
7102 | if test "$no_cache" != 1; then | |
7103 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
7104 | fi | |
7105 | ||
7106 | if test "$wxUSE_TEXTDLG" = yes; then | |
698dcdb6 | 7107 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7108 | else |
698dcdb6 | 7109 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7110 | fi |
698dcdb6 | 7111 | |
10f2d63a | 7112 | |
698dcdb6 | 7113 | echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6 |
94054c1d | 7114 | echo "configure:7115: checking for --enable-tipdlg" >&5 |
10f2d63a VZ |
7115 | no_cache=0 |
7116 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
7117 | if test "${enable_tipdlg+set}" = set; then | |
7118 | enableval="$enable_tipdlg" | |
698dcdb6 | 7119 | |
10f2d63a VZ |
7120 | if test "$enableval" = yes; then |
7121 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
7122 | else | |
7123 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
7124 | fi | |
698dcdb6 | 7125 | |
10f2d63a | 7126 | else |
698dcdb6 | 7127 | |
10f2d63a VZ |
7128 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` |
7129 | if test "x$LINE" != x ; then | |
7130 | eval "DEFAULT_$LINE" | |
7131 | else | |
7132 | no_cache=1 | |
7133 | fi | |
7134 | ||
7135 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
698dcdb6 VZ |
7136 | |
7137 | fi | |
10f2d63a VZ |
7138 | |
7139 | ||
7140 | eval "$ac_cv_use_tipdlg" | |
7141 | if test "$no_cache" != 1; then | |
7142 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
7143 | fi | |
7144 | ||
7145 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
698dcdb6 | 7146 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7147 | else |
698dcdb6 | 7148 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7149 | fi |
698dcdb6 | 7150 | |
10f2d63a | 7151 | |
698dcdb6 | 7152 | echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6 |
94054c1d | 7153 | echo "configure:7154: checking for --enable-progressdlg" >&5 |
10f2d63a VZ |
7154 | no_cache=0 |
7155 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
7156 | if test "${enable_progressdlg+set}" = set; then | |
7157 | enableval="$enable_progressdlg" | |
698dcdb6 | 7158 | |
10f2d63a VZ |
7159 | if test "$enableval" = yes; then |
7160 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
7161 | else | |
7162 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
7163 | fi | |
698dcdb6 | 7164 | |
10f2d63a | 7165 | else |
698dcdb6 | 7166 | |
10f2d63a VZ |
7167 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` |
7168 | if test "x$LINE" != x ; then | |
7169 | eval "DEFAULT_$LINE" | |
7170 | else | |
7171 | no_cache=1 | |
7172 | fi | |
7173 | ||
7174 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
698dcdb6 VZ |
7175 | |
7176 | fi | |
10f2d63a VZ |
7177 | |
7178 | ||
7179 | eval "$ac_cv_use_progressdlg" | |
7180 | if test "$no_cache" != 1; then | |
7181 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
7182 | fi | |
7183 | ||
7184 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
698dcdb6 | 7185 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7186 | else |
698dcdb6 | 7187 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7188 | fi |
698dcdb6 | 7189 | |
10f2d63a | 7190 | |
b1f5d087 | 7191 | echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6 |
94054c1d | 7192 | echo "configure:7193: checking for --enable-wizarddlg" >&5 |
b1f5d087 VZ |
7193 | no_cache=0 |
7194 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
7195 | if test "${enable_wizarddlg+set}" = set; then | |
7196 | enableval="$enable_wizarddlg" | |
7197 | ||
7198 | if test "$enableval" = yes; then | |
7199 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
7200 | else | |
7201 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
7202 | fi | |
7203 | ||
7204 | else | |
7205 | ||
7206 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` | |
7207 | if test "x$LINE" != x ; then | |
7208 | eval "DEFAULT_$LINE" | |
7209 | else | |
7210 | no_cache=1 | |
7211 | fi | |
7212 | ||
7213 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
7214 | ||
7215 | fi | |
7216 | ||
7217 | ||
7218 | eval "$ac_cv_use_wizarddlg" | |
7219 | if test "$no_cache" != 1; then | |
7220 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
7221 | fi | |
7222 | ||
7223 | if test "$wxUSE_WIZARDDLG" = yes; then | |
7224 | echo "$ac_t""yes" 1>&6 | |
7225 | else | |
7226 | echo "$ac_t""no" 1>&6 | |
7227 | fi | |
7228 | ||
7229 | ||
7230 | ||
7231 | ||
1e6feb95 | 7232 | echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6 |
94054c1d | 7233 | echo "configure:7234: checking for --enable-menus" >&5 |
1e6feb95 VZ |
7234 | no_cache=0 |
7235 | # Check whether --enable-menus or --disable-menus was given. | |
7236 | if test "${enable_menus+set}" = set; then | |
7237 | enableval="$enable_menus" | |
7238 | ||
7239 | if test "$enableval" = yes; then | |
7240 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
7241 | else | |
7242 | ac_cv_use_menus='wxUSE_MENUS=no' | |
7243 | fi | |
7244 | ||
7245 | else | |
7246 | ||
7247 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
7248 | if test "x$LINE" != x ; then | |
7249 | eval "DEFAULT_$LINE" | |
7250 | else | |
7251 | no_cache=1 | |
7252 | fi | |
7253 | ||
7254 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
7255 | ||
7256 | fi | |
7257 | ||
7258 | ||
7259 | eval "$ac_cv_use_menus" | |
7260 | if test "$no_cache" != 1; then | |
7261 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
7262 | fi | |
7263 | ||
7264 | if test "$wxUSE_MENUS" = yes; then | |
7265 | echo "$ac_t""yes" 1>&6 | |
7266 | else | |
7267 | echo "$ac_t""no" 1>&6 | |
7268 | fi | |
7269 | ||
7270 | ||
698dcdb6 | 7271 | echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6 |
94054c1d | 7272 | echo "configure:7273: checking for --enable-miniframe" >&5 |
10f2d63a VZ |
7273 | no_cache=0 |
7274 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
7275 | if test "${enable_miniframe+set}" = set; then | |
7276 | enableval="$enable_miniframe" | |
698dcdb6 | 7277 | |
10f2d63a VZ |
7278 | if test "$enableval" = yes; then |
7279 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
7280 | else | |
7281 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
7282 | fi | |
698dcdb6 | 7283 | |
10f2d63a | 7284 | else |
698dcdb6 | 7285 | |
10f2d63a VZ |
7286 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` |
7287 | if test "x$LINE" != x ; then | |
7288 | eval "DEFAULT_$LINE" | |
7289 | else | |
7290 | no_cache=1 | |
7291 | fi | |
7292 | ||
7293 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
698dcdb6 VZ |
7294 | |
7295 | fi | |
10f2d63a VZ |
7296 | |
7297 | ||
7298 | eval "$ac_cv_use_miniframe" | |
7299 | if test "$no_cache" != 1; then | |
7300 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
7301 | fi | |
7302 | ||
7303 | if test "$wxUSE_MINIFRAME" = yes; then | |
698dcdb6 | 7304 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7305 | else |
698dcdb6 | 7306 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7307 | fi |
698dcdb6 | 7308 | |
10f2d63a | 7309 | |
698dcdb6 | 7310 | echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6 |
94054c1d | 7311 | echo "configure:7312: checking for --enable-tooltips" >&5 |
10f2d63a VZ |
7312 | no_cache=0 |
7313 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
7314 | if test "${enable_tooltips+set}" = set; then | |
7315 | enableval="$enable_tooltips" | |
698dcdb6 | 7316 | |
10f2d63a VZ |
7317 | if test "$enableval" = yes; then |
7318 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
7319 | else | |
7320 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
7321 | fi | |
698dcdb6 | 7322 | |
10f2d63a | 7323 | else |
698dcdb6 | 7324 | |
10f2d63a VZ |
7325 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` |
7326 | if test "x$LINE" != x ; then | |
7327 | eval "DEFAULT_$LINE" | |
7328 | else | |
7329 | no_cache=1 | |
7330 | fi | |
7331 | ||
7332 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
698dcdb6 VZ |
7333 | |
7334 | fi | |
10f2d63a VZ |
7335 | |
7336 | ||
7337 | eval "$ac_cv_use_tooltips" | |
7338 | if test "$no_cache" != 1; then | |
7339 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
7340 | fi | |
7341 | ||
7342 | if test "$wxUSE_TOOLTIPS" = yes; then | |
698dcdb6 | 7343 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7344 | else |
698dcdb6 | 7345 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7346 | fi |
698dcdb6 | 7347 | |
10f2d63a | 7348 | |
698dcdb6 | 7349 | echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6 |
94054c1d | 7350 | echo "configure:7351: checking for --enable-splines" >&5 |
10f2d63a VZ |
7351 | no_cache=0 |
7352 | # Check whether --enable-splines or --disable-splines was given. | |
7353 | if test "${enable_splines+set}" = set; then | |
7354 | enableval="$enable_splines" | |
698dcdb6 | 7355 | |
10f2d63a VZ |
7356 | if test "$enableval" = yes; then |
7357 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
7358 | else | |
7359 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
7360 | fi | |
698dcdb6 | 7361 | |
10f2d63a | 7362 | else |
698dcdb6 | 7363 | |
10f2d63a VZ |
7364 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` |
7365 | if test "x$LINE" != x ; then | |
7366 | eval "DEFAULT_$LINE" | |
7367 | else | |
7368 | no_cache=1 | |
7369 | fi | |
7370 | ||
7371 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
698dcdb6 VZ |
7372 | |
7373 | fi | |
10f2d63a VZ |
7374 | |
7375 | ||
7376 | eval "$ac_cv_use_splines" | |
7377 | if test "$no_cache" != 1; then | |
7378 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
7379 | fi | |
7380 | ||
7381 | if test "$wxUSE_SPLINES" = yes; then | |
698dcdb6 | 7382 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7383 | else |
698dcdb6 | 7384 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7385 | fi |
698dcdb6 | 7386 | |
10f2d63a | 7387 | |
698dcdb6 | 7388 | echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6 |
94054c1d | 7389 | echo "configure:7390: checking for --enable-validators" >&5 |
10f2d63a VZ |
7390 | no_cache=0 |
7391 | # Check whether --enable-validators or --disable-validators was given. | |
7392 | if test "${enable_validators+set}" = set; then | |
7393 | enableval="$enable_validators" | |
698dcdb6 | 7394 | |
10f2d63a VZ |
7395 | if test "$enableval" = yes; then |
7396 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
7397 | else | |
7398 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
7399 | fi | |
698dcdb6 | 7400 | |
10f2d63a | 7401 | else |
698dcdb6 | 7402 | |
10f2d63a VZ |
7403 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` |
7404 | if test "x$LINE" != x ; then | |
7405 | eval "DEFAULT_$LINE" | |
7406 | else | |
7407 | no_cache=1 | |
7408 | fi | |
7409 | ||
7410 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
698dcdb6 VZ |
7411 | |
7412 | fi | |
10f2d63a VZ |
7413 | |
7414 | ||
7415 | eval "$ac_cv_use_validators" | |
7416 | if test "$no_cache" != 1; then | |
7417 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
7418 | fi | |
7419 | ||
7420 | if test "$wxUSE_VALIDATORS" = yes; then | |
698dcdb6 | 7421 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7422 | else |
698dcdb6 | 7423 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7424 | fi |
698dcdb6 | 7425 | |
10f2d63a | 7426 | |
698dcdb6 | 7427 | echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6 |
94054c1d | 7428 | echo "configure:7429: checking for --enable-busyinfo" >&5 |
10f2d63a VZ |
7429 | no_cache=0 |
7430 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
7431 | if test "${enable_busyinfo+set}" = set; then | |
7432 | enableval="$enable_busyinfo" | |
698dcdb6 | 7433 | |
10f2d63a VZ |
7434 | if test "$enableval" = yes; then |
7435 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
7436 | else | |
7437 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
7438 | fi | |
698dcdb6 | 7439 | |
10f2d63a | 7440 | else |
698dcdb6 | 7441 | |
10f2d63a VZ |
7442 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` |
7443 | if test "x$LINE" != x ; then | |
7444 | eval "DEFAULT_$LINE" | |
7445 | else | |
7446 | no_cache=1 | |
7447 | fi | |
7448 | ||
7449 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
698dcdb6 VZ |
7450 | |
7451 | fi | |
10f2d63a VZ |
7452 | |
7453 | ||
7454 | eval "$ac_cv_use_busyinfo" | |
7455 | if test "$no_cache" != 1; then | |
7456 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
7457 | fi | |
7458 | ||
7459 | if test "$wxUSE_BUSYINFO" = yes; then | |
698dcdb6 | 7460 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7461 | else |
698dcdb6 | 7462 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7463 | fi |
698dcdb6 | 7464 | |
10f2d63a | 7465 | |
698dcdb6 | 7466 | echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6 |
94054c1d | 7467 | echo "configure:7468: checking for --enable-joystick" >&5 |
f6bcfd97 BP |
7468 | no_cache=0 |
7469 | # Check whether --enable-joystick or --disable-joystick was given. | |
7470 | if test "${enable_joystick+set}" = set; then | |
7471 | enableval="$enable_joystick" | |
698dcdb6 | 7472 | |
f6bcfd97 BP |
7473 | if test "$enableval" = yes; then |
7474 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
7475 | else | |
7476 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
7477 | fi | |
698dcdb6 | 7478 | |
f6bcfd97 | 7479 | else |
698dcdb6 | 7480 | |
f6bcfd97 BP |
7481 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` |
7482 | if test "x$LINE" != x ; then | |
7483 | eval "DEFAULT_$LINE" | |
7484 | else | |
7485 | no_cache=1 | |
7486 | fi | |
7487 | ||
7488 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
698dcdb6 VZ |
7489 | |
7490 | fi | |
f6bcfd97 BP |
7491 | |
7492 | ||
7493 | eval "$ac_cv_use_joystick" | |
7494 | if test "$no_cache" != 1; then | |
7495 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
7496 | fi | |
7497 | ||
7498 | if test "$wxUSE_JOYSTICK" = yes; then | |
698dcdb6 | 7499 | echo "$ac_t""yes" 1>&6 |
f6bcfd97 | 7500 | else |
698dcdb6 | 7501 | echo "$ac_t""no" 1>&6 |
f6bcfd97 | 7502 | fi |
698dcdb6 VZ |
7503 | |
7504 | ||
1e6feb95 | 7505 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
94054c1d | 7506 | echo "configure:7507: checking for --enable-metafile" >&5 |
1e6feb95 VZ |
7507 | no_cache=0 |
7508 | # Check whether --enable-metafile or --disable-metafile was given. | |
7509 | if test "${enable_metafile+set}" = set; then | |
7510 | enableval="$enable_metafile" | |
7511 | ||
7512 | if test "$enableval" = yes; then | |
7513 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
7514 | else | |
7515 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
7516 | fi | |
7517 | ||
7518 | else | |
7519 | ||
7520 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
7521 | if test "x$LINE" != x ; then | |
7522 | eval "DEFAULT_$LINE" | |
7523 | else | |
7524 | no_cache=1 | |
7525 | fi | |
7526 | ||
7527 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
7528 | ||
7529 | fi | |
7530 | ||
7531 | ||
7532 | eval "$ac_cv_use_metafile" | |
7533 | if test "$no_cache" != 1; then | |
7534 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
7535 | fi | |
7536 | ||
7537 | if test "$wxUSE_METAFILE" = yes; then | |
7538 | echo "$ac_t""yes" 1>&6 | |
7539 | else | |
7540 | echo "$ac_t""no" 1>&6 | |
7541 | fi | |
7542 | ||
7543 | ||
24fd6d87 | 7544 | echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6 |
94054c1d | 7545 | echo "configure:7546: checking for --enable-dragimage" >&5 |
24fd6d87 VZ |
7546 | no_cache=0 |
7547 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
7548 | if test "${enable_dragimage+set}" = set; then | |
7549 | enableval="$enable_dragimage" | |
7550 | ||
7551 | if test "$enableval" = yes; then | |
7552 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
7553 | else | |
7554 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
7555 | fi | |
7556 | ||
7557 | else | |
7558 | ||
7559 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` | |
7560 | if test "x$LINE" != x ; then | |
7561 | eval "DEFAULT_$LINE" | |
7562 | else | |
7563 | no_cache=1 | |
7564 | fi | |
7565 | ||
7566 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
7567 | ||
7568 | fi | |
7569 | ||
7570 | ||
7571 | eval "$ac_cv_use_dragimage" | |
7572 | if test "$no_cache" != 1; then | |
7573 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
7574 | fi | |
7575 | ||
7576 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
7577 | echo "$ac_t""yes" 1>&6 | |
7578 | else | |
7579 | echo "$ac_t""no" 1>&6 | |
7580 | fi | |
7581 | ||
7582 | ||
10f2d63a | 7583 | |
698dcdb6 | 7584 | |
edae8572 | 7585 | echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6 |
94054c1d | 7586 | echo "configure:7587: checking for --enable-palette" >&5 |
edae8572 VZ |
7587 | no_cache=0 |
7588 | # Check whether --enable-palette or --disable-palette was given. | |
7589 | if test "${enable_palette+set}" = set; then | |
7590 | enableval="$enable_palette" | |
7591 | ||
7592 | if test "$enableval" = yes; then | |
7593 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
7594 | else | |
7595 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
7596 | fi | |
7597 | ||
7598 | else | |
7599 | ||
7600 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` | |
7601 | if test "x$LINE" != x ; then | |
7602 | eval "DEFAULT_$LINE" | |
7603 | else | |
7604 | no_cache=1 | |
7605 | fi | |
7606 | ||
7607 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
7608 | ||
7609 | fi | |
7610 | ||
7611 | ||
7612 | eval "$ac_cv_use_palette" | |
7613 | if test "$no_cache" != 1; then | |
7614 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
7615 | fi | |
7616 | ||
7617 | if test "$wxUSE_PALETTE" = yes; then | |
7618 | echo "$ac_t""yes" 1>&6 | |
7619 | else | |
7620 | echo "$ac_t""no" 1>&6 | |
7621 | fi | |
7622 | ||
7623 | ||
698dcdb6 | 7624 | echo $ac_n "checking for --enable-image""... $ac_c" 1>&6 |
94054c1d | 7625 | echo "configure:7626: checking for --enable-image" >&5 |
0046ff7c VS |
7626 | no_cache=0 |
7627 | # Check whether --enable-image or --disable-image was given. | |
7628 | if test "${enable_image+set}" = set; then | |
7629 | enableval="$enable_image" | |
698dcdb6 | 7630 | |
0046ff7c VS |
7631 | if test "$enableval" = yes; then |
7632 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
7633 | else | |
7634 | ac_cv_use_image='wxUSE_IMAGE=no' | |
7635 | fi | |
698dcdb6 | 7636 | |
0046ff7c | 7637 | else |
698dcdb6 | 7638 | |
0046ff7c VS |
7639 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` |
7640 | if test "x$LINE" != x ; then | |
7641 | eval "DEFAULT_$LINE" | |
7642 | else | |
7643 | no_cache=1 | |
7644 | fi | |
7645 | ||
7646 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
698dcdb6 VZ |
7647 | |
7648 | fi | |
0046ff7c VS |
7649 | |
7650 | ||
7651 | eval "$ac_cv_use_image" | |
7652 | if test "$no_cache" != 1; then | |
7653 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
7654 | fi | |
7655 | ||
7656 | if test "$wxUSE_IMAGE" = yes; then | |
698dcdb6 | 7657 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 7658 | else |
698dcdb6 | 7659 | echo "$ac_t""no" 1>&6 |
0046ff7c | 7660 | fi |
698dcdb6 | 7661 | |
0046ff7c | 7662 | |
698dcdb6 | 7663 | echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6 |
94054c1d | 7664 | echo "configure:7665: checking for --enable-gif" >&5 |
10f2d63a VZ |
7665 | no_cache=0 |
7666 | # Check whether --enable-gif or --disable-gif was given. | |
7667 | if test "${enable_gif+set}" = set; then | |
7668 | enableval="$enable_gif" | |
698dcdb6 | 7669 | |
10f2d63a VZ |
7670 | if test "$enableval" = yes; then |
7671 | ac_cv_use_gif='wxUSE_GIF=yes' | |
7672 | else | |
7673 | ac_cv_use_gif='wxUSE_GIF=no' | |
7674 | fi | |
698dcdb6 | 7675 | |
10f2d63a | 7676 | else |
698dcdb6 | 7677 | |
10f2d63a VZ |
7678 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` |
7679 | if test "x$LINE" != x ; then | |
7680 | eval "DEFAULT_$LINE" | |
7681 | else | |
7682 | no_cache=1 | |
7683 | fi | |
7684 | ||
7685 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
698dcdb6 VZ |
7686 | |
7687 | fi | |
10f2d63a VZ |
7688 | |
7689 | ||
7690 | eval "$ac_cv_use_gif" | |
7691 | if test "$no_cache" != 1; then | |
7692 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
7693 | fi | |
7694 | ||
7695 | if test "$wxUSE_GIF" = yes; then | |
698dcdb6 | 7696 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7697 | else |
698dcdb6 | 7698 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7699 | fi |
698dcdb6 | 7700 | |
10f2d63a | 7701 | |
698dcdb6 | 7702 | echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6 |
94054c1d | 7703 | echo "configure:7704: checking for --enable-pcx" >&5 |
10f2d63a VZ |
7704 | no_cache=0 |
7705 | # Check whether --enable-pcx or --disable-pcx was given. | |
7706 | if test "${enable_pcx+set}" = set; then | |
7707 | enableval="$enable_pcx" | |
698dcdb6 | 7708 | |
10f2d63a VZ |
7709 | if test "$enableval" = yes; then |
7710 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
7711 | else | |
7712 | ac_cv_use_pcx='wxUSE_PCX=no' | |
7713 | fi | |
698dcdb6 | 7714 | |
10f2d63a | 7715 | else |
698dcdb6 | 7716 | |
10f2d63a VZ |
7717 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` |
7718 | if test "x$LINE" != x ; then | |
7719 | eval "DEFAULT_$LINE" | |
7720 | else | |
7721 | no_cache=1 | |
7722 | fi | |
7723 | ||
7724 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
698dcdb6 VZ |
7725 | |
7726 | fi | |
10f2d63a VZ |
7727 | |
7728 | ||
7729 | eval "$ac_cv_use_pcx" | |
7730 | if test "$no_cache" != 1; then | |
7731 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
7732 | fi | |
7733 | ||
7734 | if test "$wxUSE_PCX" = yes; then | |
698dcdb6 | 7735 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7736 | else |
698dcdb6 | 7737 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7738 | fi |
698dcdb6 | 7739 | |
10f2d63a | 7740 | |
698dcdb6 | 7741 | echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6 |
94054c1d | 7742 | echo "configure:7743: checking for --enable-pnm" >&5 |
10f2d63a VZ |
7743 | no_cache=0 |
7744 | # Check whether --enable-pnm or --disable-pnm was given. | |
7745 | if test "${enable_pnm+set}" = set; then | |
7746 | enableval="$enable_pnm" | |
698dcdb6 | 7747 | |
10f2d63a VZ |
7748 | if test "$enableval" = yes; then |
7749 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
7750 | else | |
7751 | ac_cv_use_pnm='wxUSE_PNM=no' | |
7752 | fi | |
698dcdb6 | 7753 | |
10f2d63a | 7754 | else |
698dcdb6 | 7755 | |
10f2d63a VZ |
7756 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` |
7757 | if test "x$LINE" != x ; then | |
7758 | eval "DEFAULT_$LINE" | |
7759 | else | |
7760 | no_cache=1 | |
7761 | fi | |
7762 | ||
7763 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
698dcdb6 VZ |
7764 | |
7765 | fi | |
10f2d63a VZ |
7766 | |
7767 | ||
7768 | eval "$ac_cv_use_pnm" | |
7769 | if test "$no_cache" != 1; then | |
7770 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
7771 | fi | |
7772 | ||
7773 | if test "$wxUSE_PNM" = yes; then | |
698dcdb6 | 7774 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7775 | else |
698dcdb6 | 7776 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7777 | fi |
698dcdb6 | 7778 | |
10f2d63a | 7779 | |
698dcdb6 | 7780 | echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6 |
94054c1d | 7781 | echo "configure:7782: checking for --enable-pnm" >&5 |
0046ff7c VS |
7782 | no_cache=0 |
7783 | # Check whether --enable-pnm or --disable-pnm was given. | |
7784 | if test "${enable_pnm+set}" = set; then | |
7785 | enableval="$enable_pnm" | |
698dcdb6 | 7786 | |
0046ff7c VS |
7787 | if test "$enableval" = yes; then |
7788 | ac_cv_use_pnm='wxUSE_XPM=yes' | |
7789 | else | |
7790 | ac_cv_use_pnm='wxUSE_XPM=no' | |
7791 | fi | |
698dcdb6 | 7792 | |
0046ff7c | 7793 | else |
698dcdb6 | 7794 | |
0046ff7c VS |
7795 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` |
7796 | if test "x$LINE" != x ; then | |
7797 | eval "DEFAULT_$LINE" | |
7798 | else | |
7799 | no_cache=1 | |
7800 | fi | |
7801 | ||
7802 | ac_cv_use_pnm='wxUSE_XPM='$DEFAULT_wxUSE_XPM | |
698dcdb6 VZ |
7803 | |
7804 | fi | |
0046ff7c VS |
7805 | |
7806 | ||
7807 | eval "$ac_cv_use_pnm" | |
7808 | if test "$no_cache" != 1; then | |
7809 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
7810 | fi | |
7811 | ||
7812 | if test "$wxUSE_XPM" = yes; then | |
698dcdb6 | 7813 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 7814 | else |
698dcdb6 | 7815 | echo "$ac_t""no" 1>&6 |
0046ff7c | 7816 | fi |
698dcdb6 | 7817 | |
0046ff7c | 7818 | |
b12915c1 VZ |
7819 | fi |
7820 | ||
698dcdb6 | 7821 | |
10f2d63a VZ |
7822 | echo "saving argument cache $wx_arg_cache_file" |
7823 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
698dcdb6 | 7824 | |
10f2d63a | 7825 | |
698dcdb6 VZ |
7826 | |
7827 | echo $ac_n "checking for toolkit""... $ac_c" 1>&6 | |
94054c1d | 7828 | echo "configure:7829: checking for toolkit" >&5 |
10f2d63a VZ |
7829 | |
7830 | if test "$wxUSE_GUI" = "yes"; then | |
7831 | ||
3a922bb4 RL |
7832 | if test "$USE_BEOS" = 1; then |
7833 | { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; } | |
7834 | fi | |
b12915c1 | 7835 | |
3a922bb4 RL |
7836 | if test "$TOOLKIT_GIVEN" = 1; then |
7837 | for toolkit in `echo $ALL_TOOLKITS`; do | |
7838 | var=wxUSE_$toolkit | |
7839 | eval "value=\$${var}" | |
7840 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
7841 | done | |
10f2d63a | 7842 | else |
3a922bb4 RL |
7843 | for toolkit in `echo $ALL_TOOLKITS`; do |
7844 | if test "$has_toolkit_in_cache" != 1; then | |
7845 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
7846 | else | |
7847 | var=DEFAULT_wxUSE_$toolkit | |
7848 | fi | |
7849 | eval "wxUSE_$toolkit=\$${var}" | |
7850 | done | |
10f2d63a | 7851 | fi |
10f2d63a | 7852 | |
3a922bb4 | 7853 | NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \ |
77e13408 | 7854 | + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0}` |
10f2d63a | 7855 | |
3a922bb4 | 7856 | case "${host}" in |
6fa882bd | 7857 | *-pc-os2_emx | *-pc-os2-emx ) |
3a922bb4 RL |
7858 | # PATH_IFS is autodetected by OS/2's configure (usually ';') |
7859 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
7860 | LEX_STEM="lexyy" | |
7861 | ;; | |
7862 | *) | |
7863 | PATH_IFS=':' | |
7864 | LEX_STEM="lex.yy" | |
7865 | ;; | |
7866 | esac | |
10f2d63a | 7867 | |
3a922bb4 RL |
7868 | case "$NUM_TOOLKITS" in |
7869 | 1) | |
7870 | ;; | |
7871 | 0) | |
7872 | { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; } | |
7873 | ;; | |
7874 | *) | |
7875 | { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; } | |
7876 | esac | |
10f2d63a | 7877 | |
3a922bb4 RL |
7878 | for toolkit in `echo $ALL_TOOLKITS`; do |
7879 | var=wxUSE_$toolkit | |
7880 | eval "value=\$${var}" | |
7881 | if test "x$value" != x; then | |
7882 | cache_var=CACHE_$toolkit | |
7883 | eval "cache=\$${cache_var}" | |
7884 | if test "$cache" = 1; then | |
7885 | echo "$var=$value" >> ${wx_arg_cache_file} | |
7886 | fi | |
7887 | if test "$value" = 1; then | |
7888 | toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]` | |
7889 | echo "$ac_t""$toolkit_echo" 1>&6 | |
7890 | fi | |
7891 | fi | |
7892 | done | |
10f2d63a | 7893 | else |
cf27ef00 | 7894 | PATH_IFS=':' |
3a922bb4 | 7895 | echo "$ac_t""base ($host_alias hosted) only" 1>&6 |
10f2d63a VZ |
7896 | fi |
7897 | ||
698dcdb6 VZ |
7898 | |
7899 | cat > confcache <<\EOF | |
10f2d63a VZ |
7900 | # This file is a shell script that caches the results of configure |
7901 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
7902 | # scripts and configure runs. It is not useful on other systems. |
7903 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 7904 | # |
698dcdb6 VZ |
7905 | # By default, configure uses ./config.cache as the cache file, |
7906 | # creating it if it does not exist already. You can give configure | |
7907 | # the --cache-file=FILE option to use a different cache file; that is | |
7908 | # what configure does when it calls configure scripts in | |
7909 | # subdirectories, so they share the cache. | |
7910 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
7911 | # config.status only pays attention to the cache file if you give it the | |
7912 | # --recheck option to rerun configure. | |
10f2d63a | 7913 | # |
698dcdb6 | 7914 | EOF |
10f2d63a VZ |
7915 | # The following way of writing the cache mishandles newlines in values, |
7916 | # but we know of no workaround that is simple, portable, and efficient. | |
7917 | # So, don't put newlines in cache variables' values. | |
7918 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
7919 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
7920 | (set) 2>&1 | |
7921 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
7922 | *ac_space=\ *) | |
7923 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
7924 | # turns \\\\ into \\, and sed turns \\ into \). | |
7925 | sed -n \ | |
7926 | -e "s/'/'\\\\''/g" \ | |
7927 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
7928 | ;; | |
7929 | *) | |
7930 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7931 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
7932 | ;; | |
7933 | esac >> confcache | |
7934 | if cmp -s $cache_file confcache; then | |
7935 | : | |
7936 | else | |
10f2d63a | 7937 | if test -w $cache_file; then |
698dcdb6 VZ |
7938 | echo "updating cache $cache_file" |
7939 | cat confcache > $cache_file | |
10f2d63a VZ |
7940 | else |
7941 | echo "not updating unwritable cache $cache_file" | |
7942 | fi | |
7943 | fi | |
7944 | rm -f confcache | |
7945 | ||
698dcdb6 | 7946 | |
e59890c3 | 7947 | if test "$build" != "$host" ; then |
3a922bb4 RL |
7948 | if test "$USE_WIN32" = 1 ; then |
7949 | CC=$host_alias-gcc | |
7950 | CXX=$host_alias-c++ | |
7951 | AR=$host_alias-ar | |
7952 | RANLIB=$host_alias-ranlib | |
7953 | DLLTOOL=$host_alias-dlltool | |
7954 | RESCOMP=$host_alias-windres | |
7955 | LD=$host_alias-ld | |
7956 | NM=$host_alias-nm | |
7957 | STRIP=$host_alias-strip | |
7958 | else | |
7959 | { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; } | |
7960 | fi | |
10f2d63a VZ |
7961 | fi |
7962 | ||
698dcdb6 | 7963 | # Extract the first word of "gcc", so it can be a program name with args. |
1e487827 | 7964 | set dummy gcc; ac_word=$2 |
698dcdb6 | 7965 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
94054c1d | 7966 | echo "configure:7967: checking for $ac_word" >&5 |
698dcdb6 VZ |
7967 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
7968 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6232543b VS |
7969 | else |
7970 | if test -n "$CC"; then | |
7971 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10f2d63a | 7972 | else |
698dcdb6 VZ |
7973 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
7974 | ac_dummy="$PATH" | |
7975 | for ac_dir in $ac_dummy; do | |
7976 | test -z "$ac_dir" && ac_dir=. | |
7977 | if test -f $ac_dir/$ac_word; then | |
7978 | ac_cv_prog_CC="gcc" | |
7979 | break | |
7980 | fi | |
7981 | done | |
7982 | IFS="$ac_save_ifs" | |
10f2d63a | 7983 | fi |
6232543b | 7984 | fi |
698dcdb6 | 7985 | CC="$ac_cv_prog_CC" |
6232543b | 7986 | if test -n "$CC"; then |
698dcdb6 | 7987 | echo "$ac_t""$CC" 1>&6 |
1e487827 | 7988 | else |
698dcdb6 | 7989 | echo "$ac_t""no" 1>&6 |
1e487827 | 7990 | fi |
6232543b | 7991 | |
1e487827 VS |
7992 | if test -z "$CC"; then |
7993 | # Extract the first word of "cc", so it can be a program name with args. | |
7994 | set dummy cc; ac_word=$2 | |
698dcdb6 | 7995 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
94054c1d | 7996 | echo "configure:7997: checking for $ac_word" >&5 |
698dcdb6 VZ |
7997 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
7998 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 VS |
7999 | else |
8000 | if test -n "$CC"; then | |
8001 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
8002 | else | |
698dcdb6 | 8003 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1e487827 | 8004 | ac_prog_rejected=no |
698dcdb6 VZ |
8005 | ac_dummy="$PATH" |
8006 | for ac_dir in $ac_dummy; do | |
8007 | test -z "$ac_dir" && ac_dir=. | |
8008 | if test -f $ac_dir/$ac_word; then | |
8009 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
8010 | ac_prog_rejected=yes | |
8011 | continue | |
8012 | fi | |
8013 | ac_cv_prog_CC="cc" | |
8014 | break | |
8015 | fi | |
8016 | done | |
8017 | IFS="$ac_save_ifs" | |
1e487827 VS |
8018 | if test $ac_prog_rejected = yes; then |
8019 | # We found a bogon in the path, so make sure we never use it. | |
8020 | set dummy $ac_cv_prog_CC | |
8021 | shift | |
698dcdb6 | 8022 | if test $# -gt 0; then |
1e487827 VS |
8023 | # We chose a different compiler from the bogus one. |
8024 | # However, it has the same basename, so the bogon will be chosen | |
8025 | # first if we set CC to just the basename; use the full file name. | |
8026 | shift | |
698dcdb6 | 8027 | set dummy "$ac_dir/$ac_word" "$@" |
1e487827 VS |
8028 | shift |
8029 | ac_cv_prog_CC="$@" | |
703e0a69 | 8030 | fi |
1e487827 VS |
8031 | fi |
8032 | fi | |
8033 | fi | |
698dcdb6 | 8034 | CC="$ac_cv_prog_CC" |
1e487827 | 8035 | if test -n "$CC"; then |
698dcdb6 | 8036 | echo "$ac_t""$CC" 1>&6 |
703e0a69 | 8037 | else |
698dcdb6 | 8038 | echo "$ac_t""no" 1>&6 |
703e0a69 | 8039 | fi |
1e487827 | 8040 | |
698dcdb6 VZ |
8041 | if test -z "$CC"; then |
8042 | case "`uname -s`" in | |
8043 | *win32* | *WIN32*) | |
8044 | # Extract the first word of "cl", so it can be a program name with args. | |
8045 | set dummy cl; ac_word=$2 | |
8046 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
94054c1d | 8047 | echo "configure:8048: checking for $ac_word" >&5 |
698dcdb6 VZ |
8048 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8049 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 VS |
8050 | else |
8051 | if test -n "$CC"; then | |
8052 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
703e0a69 | 8053 | else |
698dcdb6 VZ |
8054 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8055 | ac_dummy="$PATH" | |
8056 | for ac_dir in $ac_dummy; do | |
8057 | test -z "$ac_dir" && ac_dir=. | |
8058 | if test -f $ac_dir/$ac_word; then | |
8059 | ac_cv_prog_CC="cl" | |
8060 | break | |
8061 | fi | |
8062 | done | |
8063 | IFS="$ac_save_ifs" | |
703e0a69 | 8064 | fi |
1e487827 | 8065 | fi |
698dcdb6 | 8066 | CC="$ac_cv_prog_CC" |
1e487827 | 8067 | if test -n "$CC"; then |
698dcdb6 | 8068 | echo "$ac_t""$CC" 1>&6 |
1e487827 | 8069 | else |
698dcdb6 | 8070 | echo "$ac_t""no" 1>&6 |
1e487827 | 8071 | fi |
698dcdb6 VZ |
8072 | ;; |
8073 | esac | |
8074 | fi | |
8075 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
1e487827 VS |
8076 | fi |
8077 | ||
698dcdb6 | 8078 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
94054c1d | 8079 | echo "configure:8080: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
1e487827 | 8080 | |
698dcdb6 VZ |
8081 | ac_ext=c |
8082 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8083 | ac_cpp='$CPP $CPPFLAGS' | |
8084 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8085 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8086 | cross_compiling=$ac_cv_prog_cc_cross | |
6232543b | 8087 | |
698dcdb6 | 8088 | cat > conftest.$ac_ext << EOF |
1e487827 | 8089 | |
94054c1d | 8090 | #line 8091 "configure" |
1e487827 VS |
8091 | #include "confdefs.h" |
8092 | ||
698dcdb6 VZ |
8093 | main(){return(0);} |
8094 | EOF | |
94054c1d | 8095 | if { (eval echo configure:8096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
8096 | ac_cv_prog_cc_works=yes |
8097 | # If we can't run a trivial program, we are probably using a cross compiler. | |
8098 | if (./conftest; exit) 2>/dev/null; then | |
8099 | ac_cv_prog_cc_cross=no | |
8100 | else | |
8101 | ac_cv_prog_cc_cross=yes | |
8102 | fi | |
8103 | else | |
8104 | echo "configure: failed program was:" >&5 | |
8105 | cat conftest.$ac_ext >&5 | |
8106 | ac_cv_prog_cc_works=no | |
8107 | fi | |
8108 | rm -fr conftest* | |
8109 | ac_ext=c | |
8110 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8111 | ac_cpp='$CPP $CPPFLAGS' | |
8112 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8113 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8114 | cross_compiling=$ac_cv_prog_cc_cross | |
8115 | ||
8116 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
8117 | if test $ac_cv_prog_cc_works = no; then | |
8118 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
8119 | fi | |
8120 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
94054c1d | 8121 | echo "configure:8122: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
698dcdb6 VZ |
8122 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
8123 | cross_compiling=$ac_cv_prog_cc_cross | |
8124 | ||
8125 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
94054c1d | 8126 | echo "configure:8127: checking whether we are using GNU C" >&5 |
698dcdb6 VZ |
8127 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
8128 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8129 | else | |
8130 | cat > conftest.c <<EOF | |
8131 | #ifdef __GNUC__ | |
8132 | yes; | |
1e487827 | 8133 | #endif |
698dcdb6 | 8134 | EOF |
94054c1d | 8135 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8136: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
698dcdb6 VZ |
8136 | ac_cv_prog_gcc=yes |
8137 | else | |
8138 | ac_cv_prog_gcc=no | |
8139 | fi | |
8140 | fi | |
1e487827 | 8141 | |
698dcdb6 | 8142 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
1e487827 | 8143 | |
698dcdb6 VZ |
8144 | if test $ac_cv_prog_gcc = yes; then |
8145 | GCC=yes | |
8146 | else | |
8147 | GCC= | |
8148 | fi | |
1e487827 | 8149 | |
698dcdb6 VZ |
8150 | ac_test_CFLAGS="${CFLAGS+set}" |
8151 | ac_save_CFLAGS="$CFLAGS" | |
8152 | CFLAGS= | |
8153 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
94054c1d | 8154 | echo "configure:8155: checking whether ${CC-cc} accepts -g" >&5 |
698dcdb6 VZ |
8155 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
8156 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8157 | else | |
8158 | echo 'void f(){}' > conftest.c | |
8159 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
10f2d63a VZ |
8160 | ac_cv_prog_cc_g=yes |
8161 | else | |
698dcdb6 | 8162 | ac_cv_prog_cc_g=no |
10f2d63a | 8163 | fi |
698dcdb6 VZ |
8164 | rm -f conftest* |
8165 | ||
10f2d63a | 8166 | fi |
698dcdb6 VZ |
8167 | |
8168 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
10f2d63a | 8169 | if test "$ac_test_CFLAGS" = set; then |
698dcdb6 | 8170 | CFLAGS="$ac_save_CFLAGS" |
10f2d63a VZ |
8171 | elif test $ac_cv_prog_cc_g = yes; then |
8172 | if test "$GCC" = yes; then | |
8173 | CFLAGS="-g -O2" | |
8174 | else | |
8175 | CFLAGS="-g" | |
8176 | fi | |
8177 | else | |
8178 | if test "$GCC" = yes; then | |
8179 | CFLAGS="-O2" | |
8180 | else | |
8181 | CFLAGS= | |
8182 | fi | |
8183 | fi | |
8184 | ||
8185 | ||
8186 | CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'` | |
8187 | ||
698dcdb6 | 8188 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
94054c1d | 8189 | echo "configure:8190: checking how to run the C preprocessor" >&5 |
10f2d63a VZ |
8190 | # On Suns, sometimes $CPP names a directory. |
8191 | if test -n "$CPP" && test -d "$CPP"; then | |
8192 | CPP= | |
8193 | fi | |
8194 | if test -z "$CPP"; then | |
698dcdb6 VZ |
8195 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
8196 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8197 | else | |
8198 | # This must be in double quotes, not single quotes, because CPP may get | |
8199 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
8200 | CPP="${CC-cc} -E" | |
10f2d63a | 8201 | # On the NeXT, cc -E runs the code through the compiler's parser, |
698dcdb6 VZ |
8202 | # not just through cpp. |
8203 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 8204 | #line 8205 "configure" |
10f2d63a VZ |
8205 | #include "confdefs.h" |
8206 | #include <assert.h> | |
698dcdb6 VZ |
8207 | Syntax Error |
8208 | EOF | |
8209 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
94054c1d | 8210 | { (eval echo configure:8211: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8211 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8212 | if test -z "$ac_err"; then | |
10f2d63a VZ |
8213 | : |
8214 | else | |
698dcdb6 VZ |
8215 | echo "$ac_err" >&5 |
8216 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8217 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8218 | rm -rf conftest* |
8219 | CPP="${CC-cc} -E -traditional-cpp" | |
8220 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 8221 | #line 8222 "configure" |
10f2d63a | 8222 | #include "confdefs.h" |
698dcdb6 VZ |
8223 | #include <assert.h> |
8224 | Syntax Error | |
8225 | EOF | |
8226 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
94054c1d | 8227 | { (eval echo configure:8228: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8228 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8229 | if test -z "$ac_err"; then | |
8230 | : | |
10f2d63a | 8231 | else |
698dcdb6 VZ |
8232 | echo "$ac_err" >&5 |
8233 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8234 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8235 | rm -rf conftest* |
8236 | CPP="${CC-cc} -nologo -E" | |
8237 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 8238 | #line 8239 "configure" |
10f2d63a VZ |
8239 | #include "confdefs.h" |
8240 | #include <assert.h> | |
698dcdb6 VZ |
8241 | Syntax Error |
8242 | EOF | |
8243 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
94054c1d | 8244 | { (eval echo configure:8245: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8245 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8246 | if test -z "$ac_err"; then | |
10f2d63a VZ |
8247 | : |
8248 | else | |
698dcdb6 VZ |
8249 | echo "$ac_err" >&5 |
8250 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8251 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8252 | rm -rf conftest* |
8253 | CPP=/lib/cpp | |
10f2d63a | 8254 | fi |
698dcdb6 | 8255 | rm -f conftest* |
10f2d63a | 8256 | fi |
698dcdb6 | 8257 | rm -f conftest* |
703e0a69 | 8258 | fi |
698dcdb6 VZ |
8259 | rm -f conftest* |
8260 | ac_cv_prog_CPP="$CPP" | |
8261 | fi | |
8262 | CPP="$ac_cv_prog_CPP" | |
10f2d63a | 8263 | else |
698dcdb6 | 8264 | ac_cv_prog_CPP="$CPP" |
10f2d63a | 8265 | fi |
698dcdb6 | 8266 | echo "$ac_t""$CPP" 1>&6 |
10f2d63a | 8267 | |
698dcdb6 VZ |
8268 | if test $ac_cv_prog_gcc = yes; then |
8269 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
94054c1d | 8270 | echo "configure:8271: checking whether ${CC-cc} needs -traditional" >&5 |
698dcdb6 VZ |
8271 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
8272 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8273 | else |
8274 | ac_pattern="Autoconf.*'x'" | |
698dcdb6 | 8275 | cat > conftest.$ac_ext <<EOF |
94054c1d | 8276 | #line 8277 "configure" |
10f2d63a VZ |
8277 | #include "confdefs.h" |
8278 | #include <sgtty.h> | |
8279 | Autoconf TIOCGETP | |
698dcdb6 | 8280 | EOF |
10f2d63a VZ |
8281 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8282 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
698dcdb6 | 8283 | rm -rf conftest* |
10f2d63a VZ |
8284 | ac_cv_prog_gcc_traditional=yes |
8285 | else | |
698dcdb6 | 8286 | rm -rf conftest* |
10f2d63a VZ |
8287 | ac_cv_prog_gcc_traditional=no |
8288 | fi | |
8289 | rm -f conftest* | |
8290 | ||
698dcdb6 | 8291 | |
10f2d63a | 8292 | if test $ac_cv_prog_gcc_traditional = no; then |
698dcdb6 | 8293 | cat > conftest.$ac_ext <<EOF |
94054c1d | 8294 | #line 8295 "configure" |
10f2d63a VZ |
8295 | #include "confdefs.h" |
8296 | #include <termio.h> | |
8297 | Autoconf TCGETA | |
698dcdb6 | 8298 | EOF |
10f2d63a VZ |
8299 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8300 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
698dcdb6 | 8301 | rm -rf conftest* |
10f2d63a VZ |
8302 | ac_cv_prog_gcc_traditional=yes |
8303 | fi | |
8304 | rm -f conftest* | |
8305 | ||
8306 | fi | |
8307 | fi | |
698dcdb6 VZ |
8308 | |
8309 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
10f2d63a VZ |
8310 | if test $ac_cv_prog_gcc_traditional = yes; then |
8311 | CC="$CC -traditional" | |
8312 | fi | |
8313 | fi | |
8314 | ||
703e0a69 | 8315 | |
698dcdb6 VZ |
8316 | |
8317 | ac_ext=C | |
8318 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 8319 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
8320 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
8321 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8322 | cross_compiling=$ac_cv_prog_cxx_cross | |
8323 | ||
8324 | ||
8325 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | |
8326 | do | |
8327 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
8328 | set dummy $ac_prog; ac_word=$2 | |
8329 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
94054c1d | 8330 | echo "configure:8331: checking for $ac_word" >&5 |
698dcdb6 VZ |
8331 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
8332 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8333 | else |
8334 | if test -n "$CXX"; then | |
8335 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
8336 | else | |
698dcdb6 VZ |
8337 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8338 | ac_dummy="$PATH" | |
8339 | for ac_dir in $ac_dummy; do | |
8340 | test -z "$ac_dir" && ac_dir=. | |
8341 | if test -f $ac_dir/$ac_word; then | |
8342 | ac_cv_prog_CXX="$ac_prog" | |
8343 | break | |
8344 | fi | |
8345 | done | |
8346 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8347 | fi |
8348 | fi | |
698dcdb6 | 8349 | CXX="$ac_cv_prog_CXX" |
10f2d63a | 8350 | if test -n "$CXX"; then |
698dcdb6 | 8351 | echo "$ac_t""$CXX" 1>&6 |
10f2d63a | 8352 | else |
698dcdb6 | 8353 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8354 | fi |
8355 | ||
698dcdb6 | 8356 | test -n "$CXX" && break |
10f2d63a | 8357 | done |
698dcdb6 | 8358 | test -n "$CXX" || CXX="gcc" |
10f2d63a VZ |
8359 | |
8360 | ||
698dcdb6 | 8361 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
94054c1d | 8362 | echo "configure:8363: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
10f2d63a | 8363 | |
698dcdb6 VZ |
8364 | ac_ext=C |
8365 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8366 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8367 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8368 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8369 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 8370 | |
698dcdb6 VZ |
8371 | cat > conftest.$ac_ext << EOF |
8372 | ||
94054c1d | 8373 | #line 8374 "configure" |
10f2d63a VZ |
8374 | #include "confdefs.h" |
8375 | ||
698dcdb6 VZ |
8376 | int main(){return(0);} |
8377 | EOF | |
94054c1d | 8378 | if { (eval echo configure:8379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
8379 | ac_cv_prog_cxx_works=yes |
8380 | # If we can't run a trivial program, we are probably using a cross compiler. | |
8381 | if (./conftest; exit) 2>/dev/null; then | |
8382 | ac_cv_prog_cxx_cross=no | |
8383 | else | |
8384 | ac_cv_prog_cxx_cross=yes | |
8385 | fi | |
8386 | else | |
8387 | echo "configure: failed program was:" >&5 | |
8388 | cat conftest.$ac_ext >&5 | |
8389 | ac_cv_prog_cxx_works=no | |
8390 | fi | |
8391 | rm -fr conftest* | |
8392 | ac_ext=C | |
8393 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8394 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8395 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8396 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8397 | cross_compiling=$ac_cv_prog_cxx_cross | |
8398 | ||
8399 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 | |
8400 | if test $ac_cv_prog_cxx_works = no; then | |
8401 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
8402 | fi | |
8403 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
94054c1d | 8404 | echo "configure:8405: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
698dcdb6 VZ |
8405 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
8406 | cross_compiling=$ac_cv_prog_cxx_cross | |
8407 | ||
8408 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 | |
94054c1d | 8409 | echo "configure:8410: checking whether we are using GNU C++" >&5 |
698dcdb6 VZ |
8410 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
8411 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8412 | else | |
8413 | cat > conftest.C <<EOF | |
8414 | #ifdef __GNUC__ | |
8415 | yes; | |
10f2d63a | 8416 | #endif |
698dcdb6 | 8417 | EOF |
94054c1d | 8418 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:8419: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
698dcdb6 VZ |
8419 | ac_cv_prog_gxx=yes |
8420 | else | |
8421 | ac_cv_prog_gxx=no | |
8422 | fi | |
8423 | fi | |
10f2d63a | 8424 | |
698dcdb6 | 8425 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
10f2d63a | 8426 | |
698dcdb6 VZ |
8427 | if test $ac_cv_prog_gxx = yes; then |
8428 | GXX=yes | |
8429 | else | |
8430 | GXX= | |
8431 | fi | |
10f2d63a | 8432 | |
698dcdb6 VZ |
8433 | ac_test_CXXFLAGS="${CXXFLAGS+set}" |
8434 | ac_save_CXXFLAGS="$CXXFLAGS" | |
8435 | CXXFLAGS= | |
8436 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
94054c1d | 8437 | echo "configure:8438: checking whether ${CXX-g++} accepts -g" >&5 |
698dcdb6 VZ |
8438 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
8439 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8440 | else | |
8441 | echo 'void f(){}' > conftest.cc | |
8442 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
10f2d63a VZ |
8443 | ac_cv_prog_cxx_g=yes |
8444 | else | |
698dcdb6 | 8445 | ac_cv_prog_cxx_g=no |
10f2d63a | 8446 | fi |
698dcdb6 VZ |
8447 | rm -f conftest* |
8448 | ||
10f2d63a | 8449 | fi |
698dcdb6 VZ |
8450 | |
8451 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
10f2d63a | 8452 | if test "$ac_test_CXXFLAGS" = set; then |
698dcdb6 | 8453 | CXXFLAGS="$ac_save_CXXFLAGS" |
10f2d63a VZ |
8454 | elif test $ac_cv_prog_cxx_g = yes; then |
8455 | if test "$GXX" = yes; then | |
8456 | CXXFLAGS="-g -O2" | |
8457 | else | |
8458 | CXXFLAGS="-g" | |
8459 | fi | |
8460 | else | |
8461 | if test "$GXX" = yes; then | |
8462 | CXXFLAGS="-O2" | |
8463 | else | |
8464 | CXXFLAGS= | |
8465 | fi | |
8466 | fi | |
8467 | ||
8468 | ||
10f2d63a VZ |
8469 | CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'` |
8470 | ||
8471 | ac_ext=c | |
698dcdb6 | 8472 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 8473 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
8474 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
8475 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8476 | cross_compiling=$ac_cv_prog_cc_cross | |
8477 | ||
8478 | ||
8479 | # Extract the first word of "ranlib", so it can be a program name with args. | |
8480 | set dummy ranlib; ac_word=$2 | |
8481 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
94054c1d | 8482 | echo "configure:8483: checking for $ac_word" >&5 |
698dcdb6 VZ |
8483 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
8484 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8485 | else |
8486 | if test -n "$RANLIB"; then | |
8487 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8488 | else | |
698dcdb6 VZ |
8489 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8490 | ac_dummy="$PATH" | |
8491 | for ac_dir in $ac_dummy; do | |
8492 | test -z "$ac_dir" && ac_dir=. | |
8493 | if test -f $ac_dir/$ac_word; then | |
8494 | ac_cv_prog_RANLIB="ranlib" | |
8495 | break | |
8496 | fi | |
8497 | done | |
8498 | IFS="$ac_save_ifs" | |
8499 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
10f2d63a VZ |
8500 | fi |
8501 | fi | |
698dcdb6 | 8502 | RANLIB="$ac_cv_prog_RANLIB" |
10f2d63a | 8503 | if test -n "$RANLIB"; then |
698dcdb6 | 8504 | echo "$ac_t""$RANLIB" 1>&6 |
10f2d63a | 8505 | else |
698dcdb6 | 8506 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8507 | fi |
8508 | ||
8509 | ||
8510 | # Extract the first word of "ar", so it can be a program name with args. | |
8511 | set dummy ar; ac_word=$2 | |
698dcdb6 | 8512 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
94054c1d | 8513 | echo "configure:8514: checking for $ac_word" >&5 |
698dcdb6 VZ |
8514 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
8515 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8516 | else |
8517 | if test -n "$AR"; then | |
8518 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8519 | else | |
698dcdb6 VZ |
8520 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8521 | ac_dummy="$PATH" | |
8522 | for ac_dir in $ac_dummy; do | |
8523 | test -z "$ac_dir" && ac_dir=. | |
8524 | if test -f $ac_dir/$ac_word; then | |
8525 | ac_cv_prog_AR="ar" | |
8526 | break | |
8527 | fi | |
8528 | done | |
8529 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8530 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
8531 | fi | |
8532 | fi | |
698dcdb6 | 8533 | AR="$ac_cv_prog_AR" |
10f2d63a | 8534 | if test -n "$AR"; then |
698dcdb6 | 8535 | echo "$ac_t""$AR" 1>&6 |
10f2d63a | 8536 | else |
698dcdb6 | 8537 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8538 | fi |
8539 | ||
698dcdb6 | 8540 | |
6054113a | 8541 | # Find a good install program. We prefer a C program (faster), |
10f2d63a VZ |
8542 | # so one script is as good as another. But avoid the broken or |
8543 | # incompatible versions: | |
8544 | # SysV /etc/install, /usr/sbin/install | |
8545 | # SunOS /usr/etc/install | |
8546 | # IRIX /sbin/install | |
8547 | # AIX /bin/install | |
8548 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
8549 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
8550 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
8551 | # ./install, which can be erroneously created by make from ./install.sh. | |
698dcdb6 | 8552 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
94054c1d | 8553 | echo "configure:8554: checking for a BSD compatible install" >&5 |
10f2d63a | 8554 | if test -z "$INSTALL"; then |
698dcdb6 VZ |
8555 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
8556 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 8557 | else |
698dcdb6 | 8558 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
10f2d63a VZ |
8559 | for ac_dir in $PATH; do |
8560 | # Account for people who put trailing slashes in PATH elements. | |
698dcdb6 VZ |
8561 | case "$ac_dir/" in |
8562 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
10f2d63a VZ |
8563 | *) |
8564 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
8565 | # Don't use installbsd from OSF since it installs stuff as root | |
8566 | # by default. | |
8567 | for ac_prog in ginstall scoinst install; do | |
698dcdb6 | 8568 | if test -f $ac_dir/$ac_prog; then |
10f2d63a | 8569 | if test $ac_prog = install && |
698dcdb6 | 8570 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
10f2d63a VZ |
8571 | # AIX install. It has an incompatible calling convention. |
8572 | : | |
8573 | else | |
8574 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
8575 | break 2 | |
8576 | fi | |
8577 | fi | |
8578 | done | |
8579 | ;; | |
8580 | esac | |
8581 | done | |
698dcdb6 | 8582 | IFS="$ac_save_IFS" |
10f2d63a VZ |
8583 | |
8584 | fi | |
8585 | if test "${ac_cv_path_install+set}" = set; then | |
698dcdb6 | 8586 | INSTALL="$ac_cv_path_install" |
10f2d63a VZ |
8587 | else |
8588 | # As a last resort, use the slow shell script. We don't cache a | |
8589 | # path for INSTALL within a source directory, because that will | |
8590 | # break other packages using the cache if that directory is | |
8591 | # removed, or if the path is relative. | |
698dcdb6 | 8592 | INSTALL="$ac_install_sh" |
10f2d63a VZ |
8593 | fi |
8594 | fi | |
698dcdb6 | 8595 | echo "$ac_t""$INSTALL" 1>&6 |
10f2d63a VZ |
8596 | |
8597 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
8598 | # It thinks the first close brace ends the variable substitution. | |
8599 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
8600 | ||
698dcdb6 | 8601 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
10f2d63a VZ |
8602 | |
8603 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
8604 | ||
6054113a GD |
8605 | case "${host}" in |
8606 | ||
b5853384 | 8607 | powerpc-*-darwin* ) |
eb99ae0b GD |
8608 | INSTALL_PROGRAM="cp -fp" |
8609 | INSTALL_DATA="cp -fp" | |
6054113a GD |
8610 | ;; |
8611 | *) | |
8612 | ;; | |
d6853540 | 8613 | esac |
698dcdb6 | 8614 | |
10f2d63a VZ |
8615 | # Extract the first word of "strip", so it can be a program name with args. |
8616 | set dummy strip; ac_word=$2 | |
698dcdb6 | 8617 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
94054c1d | 8618 | echo "configure:8619: checking for $ac_word" >&5 |
698dcdb6 VZ |
8619 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
8620 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8621 | else |
8622 | if test -n "$STRIP"; then | |
8623 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
8624 | else | |
698dcdb6 VZ |
8625 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8626 | ac_dummy="$PATH" | |
8627 | for ac_dir in $ac_dummy; do | |
8628 | test -z "$ac_dir" && ac_dir=. | |
8629 | if test -f $ac_dir/$ac_word; then | |
8630 | ac_cv_prog_STRIP="strip" | |
8631 | break | |
8632 | fi | |
8633 | done | |
8634 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8635 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
8636 | fi | |
8637 | fi | |
698dcdb6 | 8638 | STRIP="$ac_cv_prog_STRIP" |
10f2d63a | 8639 | if test -n "$STRIP"; then |
698dcdb6 | 8640 | echo "$ac_t""$STRIP" 1>&6 |
10f2d63a | 8641 | else |
698dcdb6 | 8642 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8643 | fi |
8644 | ||
698dcdb6 VZ |
8645 | |
8646 | echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6 | |
94054c1d | 8647 | echo "configure:8648: checking make for VPATH support" >&5 |
10f2d63a VZ |
8648 | cat - << EOF > confMake |
8649 | check : file | |
8650 | cp \$? \$@ | |
8651 | cp \$? final_file | |
8652 | EOF | |
8653 | ||
8654 | if test ! -d sub ; then | |
8655 | mkdir sub | |
8656 | fi | |
8657 | echo dummy > sub/file | |
f6bcfd97 | 8658 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null |
10f2d63a VZ |
8659 | RESULT=$? |
8660 | rm -f sub/file check final_file confMake | |
8661 | rmdir sub | |
8662 | if test "$RESULT" = 0; then | |
698dcdb6 | 8663 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8664 | else |
698dcdb6 VZ |
8665 | echo "$ac_t""no" 1>&6 |
8666 | { echo "configure: error: | |
1e487827 VS |
8667 | You need a make-utility that is able to use the variable |
8668 | VPATH correctly. | |
8669 | If your version of make does not support VPATH correctly, | |
8670 | please install GNU-make (possibly as gmake), and start | |
8671 | configure with the following command: | |
8672 | export MAKE=gmake; ./configure for sh-type shells | |
8673 | setenv MAKE gmake; ./configure for csh-type shells | |
8674 | Also please do remember to use gmake in this case every time | |
8675 | you are trying to compile. | |
698dcdb6 | 8676 | " 1>&2; exit 1; } |
10f2d63a VZ |
8677 | fi |
8678 | ||
8679 | for ac_prog in 'bison -y' byacc | |
8680 | do | |
698dcdb6 | 8681 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
10f2d63a | 8682 | set dummy $ac_prog; ac_word=$2 |
698dcdb6 | 8683 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
94054c1d | 8684 | echo "configure:8685: checking for $ac_word" >&5 |
698dcdb6 VZ |
8685 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
8686 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8687 | else |
8688 | if test -n "$YACC"; then | |
8689 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
8690 | else | |
698dcdb6 VZ |
8691 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8692 | ac_dummy="$PATH" | |
8693 | for ac_dir in $ac_dummy; do | |
8694 | test -z "$ac_dir" && ac_dir=. | |
8695 | if test -f $ac_dir/$ac_word; then | |
8696 | ac_cv_prog_YACC="$ac_prog" | |
8697 | break | |
8698 | fi | |
8699 | done | |
8700 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8701 | fi |
8702 | fi | |
698dcdb6 | 8703 | YACC="$ac_cv_prog_YACC" |
10f2d63a | 8704 | if test -n "$YACC"; then |
698dcdb6 | 8705 | echo "$ac_t""$YACC" 1>&6 |
10f2d63a | 8706 | else |
698dcdb6 | 8707 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8708 | fi |
8709 | ||
698dcdb6 | 8710 | test -n "$YACC" && break |
10f2d63a VZ |
8711 | done |
8712 | test -n "$YACC" || YACC="yacc" | |
8713 | ||
698dcdb6 VZ |
8714 | |
8715 | # Extract the first word of "flex", so it can be a program name with args. | |
8716 | set dummy flex; ac_word=$2 | |
8717 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
94054c1d | 8718 | echo "configure:8719: checking for $ac_word" >&5 |
698dcdb6 VZ |
8719 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
8720 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8721 | else |
8722 | if test -n "$LEX"; then | |
8723 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
8724 | else | |
698dcdb6 VZ |
8725 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8726 | ac_dummy="$PATH" | |
8727 | for ac_dir in $ac_dummy; do | |
8728 | test -z "$ac_dir" && ac_dir=. | |
8729 | if test -f $ac_dir/$ac_word; then | |
8730 | ac_cv_prog_LEX="flex" | |
8731 | break | |
8732 | fi | |
8733 | done | |
8734 | IFS="$ac_save_ifs" | |
8735 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
10f2d63a VZ |
8736 | fi |
8737 | fi | |
698dcdb6 | 8738 | LEX="$ac_cv_prog_LEX" |
10f2d63a | 8739 | if test -n "$LEX"; then |
698dcdb6 | 8740 | echo "$ac_t""$LEX" 1>&6 |
10f2d63a | 8741 | else |
698dcdb6 | 8742 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8743 | fi |
8744 | ||
8745 | if test -z "$LEXLIB" | |
8746 | then | |
698dcdb6 VZ |
8747 | case "$LEX" in |
8748 | flex*) ac_lib=fl ;; | |
8749 | *) ac_lib=l ;; | |
8750 | esac | |
8751 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
94054c1d | 8752 | echo "configure:8753: checking for yywrap in -l$ac_lib" >&5 |
698dcdb6 VZ |
8753 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
8754 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
8755 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8756 | else | |
8757 | ac_save_LIBS="$LIBS" | |
8758 | LIBS="-l$ac_lib $LIBS" | |
8759 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 8760 | #line 8761 "configure" |
10f2d63a VZ |
8761 | #include "confdefs.h" |
8762 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8763 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
8764 | builtin and then its argument prototype would still apply. */ |
8765 | char yywrap(); | |
10f2d63a | 8766 | |
698dcdb6 VZ |
8767 | int main() { |
8768 | yywrap() | |
8769 | ; return 0; } | |
8770 | EOF | |
94054c1d | 8771 | if { (eval echo configure:8772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
8772 | rm -rf conftest* |
8773 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 8774 | else |
698dcdb6 VZ |
8775 | echo "configure: failed program was:" >&5 |
8776 | cat conftest.$ac_ext >&5 | |
8777 | rm -rf conftest* | |
8778 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 8779 | fi |
698dcdb6 VZ |
8780 | rm -f conftest* |
8781 | LIBS="$ac_save_LIBS" | |
8782 | ||
10f2d63a | 8783 | fi |
698dcdb6 VZ |
8784 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
8785 | echo "$ac_t""yes" 1>&6 | |
8786 | LEXLIB="-l$ac_lib" | |
8787 | else | |
8788 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
8789 | fi |
8790 | ||
8791 | fi | |
8792 | ||
8793 | ||
698dcdb6 | 8794 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
94054c1d | 8795 | echo "configure:8796: checking whether ln -s works" >&5 |
698dcdb6 VZ |
8796 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
8797 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 8798 | else |
698dcdb6 VZ |
8799 | rm -f conftestdata |
8800 | if ln -s X conftestdata 2>/dev/null | |
8801 | then | |
8802 | rm -f conftestdata | |
8803 | ac_cv_prog_LN_S="ln -s" | |
10f2d63a | 8804 | else |
698dcdb6 | 8805 | ac_cv_prog_LN_S=ln |
10f2d63a VZ |
8806 | fi |
8807 | fi | |
698dcdb6 VZ |
8808 | LN_S="$ac_cv_prog_LN_S" |
8809 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
8810 | echo "$ac_t""yes" 1>&6 | |
10f2d63a | 8811 | else |
698dcdb6 | 8812 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8813 | fi |
8814 | ||
8815 | ||
8816 | ||
8817 | SEARCH_INCLUDE="\ | |
8818 | /usr/local/include \ | |
8819 | \ | |
8820 | /usr/Motif-1.2/include \ | |
8821 | /usr/Motif-2.1/include \ | |
8822 | \ | |
8823 | /usr/include/Motif1.2 \ | |
8824 | /opt/xpm/include/X11 \ | |
8825 | /opt/GBxpm/include/ \ | |
8826 | /opt/GBxpm/X11/include/ \ | |
8827 | \ | |
8828 | /usr/Motif1.2/include \ | |
8829 | /usr/dt/include \ | |
afc31813 VZ |
8830 | /usr/openwin/include \ |
8831 | \ | |
10f2d63a VZ |
8832 | /usr/include/Xm \ |
8833 | \ | |
8834 | /usr/X11R6/include \ | |
afc31813 | 8835 | /usr/X11R6.4/include \ |
10f2d63a VZ |
8836 | /usr/X11R5/include \ |
8837 | /usr/X11R4/include \ | |
8838 | \ | |
10f2d63a VZ |
8839 | /usr/include/X11R6 \ |
8840 | /usr/include/X11R5 \ | |
8841 | /usr/include/X11R4 \ | |
8842 | \ | |
8843 | /usr/local/X11R6/include \ | |
8844 | /usr/local/X11R5/include \ | |
8845 | /usr/local/X11R4/include \ | |
8846 | \ | |
8847 | /usr/local/include/X11R6 \ | |
8848 | /usr/local/include/X11R5 \ | |
8849 | /usr/local/include/X11R4 \ | |
8850 | \ | |
8851 | /usr/X11/include \ | |
8852 | /usr/include/X11 \ | |
8853 | /usr/local/X11/include \ | |
8854 | /usr/local/include/X11 \ | |
8855 | \ | |
8856 | /usr/X386/include \ | |
8857 | /usr/x386/include \ | |
8858 | /usr/XFree86/include/X11 \ | |
8859 | \ | |
cf27ef00 | 8860 | X:/XFree86/include \ |
ec14dd32 VZ |
8861 | X:/XFree86/include/X11 \ |
8862 | \ | |
10f2d63a VZ |
8863 | /usr/include/gtk \ |
8864 | /usr/local/include/gtk \ | |
8865 | /usr/include/glib \ | |
8866 | /usr/local/include/glib \ | |
8867 | \ | |
8868 | /usr/include/qt \ | |
8869 | /usr/local/include/qt \ | |
8870 | \ | |
8871 | /usr/include/windows \ | |
8872 | /usr/include/wine \ | |
8873 | /usr/local/include/wine \ | |
8874 | \ | |
8875 | /usr/unsupported/include \ | |
8876 | /usr/athena/include \ | |
8877 | /usr/local/x11r5/include \ | |
8878 | /usr/lpp/Xamples/include \ | |
8879 | \ | |
10f2d63a | 8880 | /usr/openwin/share/include \ |
928b5c08 VZ |
8881 | \ |
8882 | /usr/include" | |
10f2d63a VZ |
8883 | |
8884 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
8885 | ||
698dcdb6 VZ |
8886 | |
8887 | cat > confcache <<\EOF | |
10f2d63a VZ |
8888 | # This file is a shell script that caches the results of configure |
8889 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
8890 | # scripts and configure runs. It is not useful on other systems. |
8891 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 8892 | # |
698dcdb6 VZ |
8893 | # By default, configure uses ./config.cache as the cache file, |
8894 | # creating it if it does not exist already. You can give configure | |
8895 | # the --cache-file=FILE option to use a different cache file; that is | |
8896 | # what configure does when it calls configure scripts in | |
8897 | # subdirectories, so they share the cache. | |
8898 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
8899 | # config.status only pays attention to the cache file if you give it the | |
8900 | # --recheck option to rerun configure. | |
10f2d63a | 8901 | # |
698dcdb6 | 8902 | EOF |
10f2d63a VZ |
8903 | # The following way of writing the cache mishandles newlines in values, |
8904 | # but we know of no workaround that is simple, portable, and efficient. | |
8905 | # So, don't put newlines in cache variables' values. | |
8906 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
8907 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
8908 | (set) 2>&1 | |
8909 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
8910 | *ac_space=\ *) | |
8911 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
8912 | # turns \\\\ into \\, and sed turns \\ into \). | |
8913 | sed -n \ | |
8914 | -e "s/'/'\\\\''/g" \ | |
8915 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
8916 | ;; | |
8917 | *) | |
8918 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
8919 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
8920 | ;; | |
8921 | esac >> confcache | |
8922 | if cmp -s $cache_file confcache; then | |
8923 | : | |
8924 | else | |
10f2d63a | 8925 | if test -w $cache_file; then |
698dcdb6 VZ |
8926 | echo "updating cache $cache_file" |
8927 | cat confcache > $cache_file | |
10f2d63a VZ |
8928 | else |
8929 | echo "not updating unwritable cache $cache_file" | |
8930 | fi | |
8931 | fi | |
8932 | rm -f confcache | |
8933 | ||
698dcdb6 VZ |
8934 | |
8935 | ||
4f14bcd8 | 8936 | |
18dbb1f6 VZ |
8937 | REGEX_INCLUDE= |
8938 | if test "$wxUSE_REGEX" != "no"; then | |
4f14bcd8 GD |
8939 | cat >> confdefs.h <<\EOF |
8940 | #define wxUSE_REGEX 1 | |
8941 | EOF | |
8942 | ||
8943 | ||
8944 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then | |
8945 | ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'` | |
18dbb1f6 | 8946 | echo $ac_n "checking for regex.h""... $ac_c" 1>&6 |
94054c1d | 8947 | echo "configure:8948: checking for regex.h" >&5 |
18dbb1f6 VZ |
8948 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8949 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8950 | else | |
8951 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 8952 | #line 8953 "configure" |
18dbb1f6 VZ |
8953 | #include "confdefs.h" |
8954 | #include <regex.h> | |
8955 | EOF | |
8956 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
94054c1d | 8957 | { (eval echo configure:8958: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
18dbb1f6 VZ |
8958 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8959 | if test -z "$ac_err"; then | |
8960 | rm -rf conftest* | |
8961 | eval "ac_cv_header_$ac_safe=yes" | |
8962 | else | |
8963 | echo "$ac_err" >&5 | |
8964 | echo "configure: failed program was:" >&5 | |
8965 | cat conftest.$ac_ext >&5 | |
8966 | rm -rf conftest* | |
8967 | eval "ac_cv_header_$ac_safe=no" | |
8968 | fi | |
8969 | rm -f conftest* | |
8970 | fi | |
8971 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8972 | echo "$ac_t""yes" 1>&6 | |
8973 | for ac_func in regcomp | |
8974 | do | |
8975 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
94054c1d | 8976 | echo "configure:8977: checking for $ac_func" >&5 |
18dbb1f6 VZ |
8977 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
8978 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8979 | else | |
8980 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 8981 | #line 8982 "configure" |
18dbb1f6 VZ |
8982 | #include "confdefs.h" |
8983 | /* System header to define __stub macros and hopefully few prototypes, | |
8984 | which can conflict with char $ac_func(); below. */ | |
8985 | #include <assert.h> | |
8986 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8987 | /* We use char because int might match the return type of a gcc2 | |
8988 | builtin and then its argument prototype would still apply. */ | |
8989 | char $ac_func(); | |
8990 | ||
8991 | int main() { | |
8992 | ||
8993 | /* The GNU C library defines this for functions which it implements | |
8994 | to always fail with ENOSYS. Some functions are actually named | |
8995 | something starting with __ and the normal name is an alias. */ | |
8996 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
8997 | choke me | |
8998 | #else | |
8999 | $ac_func(); | |
9000 | #endif | |
9001 | ||
9002 | ; return 0; } | |
9003 | EOF | |
94054c1d | 9004 | if { (eval echo configure:9005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
18dbb1f6 VZ |
9005 | rm -rf conftest* |
9006 | eval "ac_cv_func_$ac_func=yes" | |
9007 | else | |
9008 | echo "configure: failed program was:" >&5 | |
9009 | cat conftest.$ac_ext >&5 | |
9010 | rm -rf conftest* | |
9011 | eval "ac_cv_func_$ac_func=no" | |
9012 | fi | |
9013 | rm -f conftest* | |
9014 | fi | |
9015 | ||
9016 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
9017 | echo "$ac_t""yes" 1>&6 | |
9018 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9019 | cat >> confdefs.h <<EOF | |
9020 | #define $ac_tr_func 1 | |
9021 | EOF | |
9022 | ||
9023 | else | |
9024 | echo "$ac_t""no" 1>&6 | |
9025 | fi | |
9026 | done | |
9027 | ||
9028 | else | |
9029 | echo "$ac_t""no" 1>&6 | |
9030 | fi | |
9031 | ||
9032 | ||
4f14bcd8 GD |
9033 | if test "x$ac_cv_func_regcomp" != "xyes"; then |
9034 | if test "$wxUSE_REGEX" = "sys" ; then | |
9035 | { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; } | |
9036 | else | |
a3df447d | 9037 | echo "configure: warning: system regex library not found, will use built-in instead" 1>&2 |
4f14bcd8 GD |
9038 | wxUSE_REGEX=builtin |
9039 | fi | |
9040 | else | |
9041 | wxUSE_REGEX=sys | |
18dbb1f6 | 9042 | fi |
18dbb1f6 VZ |
9043 | fi |
9044 | ||
4f14bcd8 GD |
9045 | if test "$wxUSE_REGEX" = "builtin" ; then |
9046 | REGEX_INCLUDE="-I\${top_srcdir}/src/regex" | |
9047 | fi | |
18dbb1f6 VZ |
9048 | fi |
9049 | ||
9050 | ||
4f14bcd8 GD |
9051 | ZLIB_INCLUDE= |
9052 | ZLIB_LINK= | |
9053 | if test "$wxUSE_ZLIB" != "no" ; then | |
9054 | cat >> confdefs.h <<\EOF | |
9055 | #define wxUSE_ZLIB 1 | |
9056 | EOF | |
dad6c0ea | 9057 | |
10f2d63a | 9058 | |
4f14bcd8 GD |
9059 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then |
9060 | ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'` | |
9061 | echo $ac_n "checking for zlib.h""... $ac_c" 1>&6 | |
94054c1d | 9062 | echo "configure:9063: checking for zlib.h" >&5 |
3a922bb4 RL |
9063 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9064 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9065 | else | |
9066 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 9067 | #line 9068 "configure" |
3a922bb4 | 9068 | #include "confdefs.h" |
4f14bcd8 | 9069 | #include <zlib.h> |
3a922bb4 RL |
9070 | EOF |
9071 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
94054c1d | 9072 | { (eval echo configure:9073: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3a922bb4 RL |
9073 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9074 | if test -z "$ac_err"; then | |
9075 | rm -rf conftest* | |
9076 | eval "ac_cv_header_$ac_safe=yes" | |
9077 | else | |
9078 | echo "$ac_err" >&5 | |
9079 | echo "configure: failed program was:" >&5 | |
9080 | cat conftest.$ac_ext >&5 | |
9081 | rm -rf conftest* | |
9082 | eval "ac_cv_header_$ac_safe=no" | |
9083 | fi | |
9084 | rm -f conftest* | |
9085 | fi | |
9086 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9087 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 9088 | echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6 |
94054c1d | 9089 | echo "configure:9090: checking for deflate in -lz" >&5 |
4f14bcd8 GD |
9090 | ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'` |
9091 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9092 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9093 | else | |
9094 | ac_save_LIBS="$LIBS" | |
9095 | LIBS="-lz $LIBS" | |
9096 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 9097 | #line 9098 "configure" |
4f14bcd8 GD |
9098 | #include "confdefs.h" |
9099 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9100 | /* We use char because int might match the return type of a gcc2 | |
9101 | builtin and then its argument prototype would still apply. */ | |
9102 | char deflate(); | |
9103 | ||
9104 | int main() { | |
9105 | deflate() | |
9106 | ; return 0; } | |
3a922bb4 | 9107 | EOF |
94054c1d | 9108 | if { (eval echo configure:9109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
9109 | rm -rf conftest* |
9110 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9111 | else | |
9112 | echo "configure: failed program was:" >&5 | |
9113 | cat conftest.$ac_ext >&5 | |
9114 | rm -rf conftest* | |
9115 | eval "ac_cv_lib_$ac_lib_var=no" | |
9116 | fi | |
9117 | rm -f conftest* | |
9118 | LIBS="$ac_save_LIBS" | |
9119 | ||
9120 | fi | |
9121 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9122 | echo "$ac_t""yes" 1>&6 | |
3d63bc3a | 9123 | ZLIB_LINK=" -lz" |
3a922bb4 RL |
9124 | else |
9125 | echo "$ac_t""no" 1>&6 | |
9126 | fi | |
10f2d63a | 9127 | |
4f14bcd8 GD |
9128 | else |
9129 | echo "$ac_t""no" 1>&6 | |
9130 | fi | |
9131 | ||
9132 | ||
9133 | if test "x$ZLIB_LINK" = "x" ; then | |
9134 | if test "$wxUSE_ZLIB" = "sys" ; then | |
9135 | { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; } | |
9136 | else | |
a3df447d | 9137 | echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2 |
4f14bcd8 GD |
9138 | wxUSE_ZLIB=builtin |
9139 | fi | |
9140 | else | |
9141 | wxUSE_ZLIB=sys | |
9142 | fi | |
9143 | fi | |
9144 | ||
9145 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
9146 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
9147 | fi | |
9148 | fi | |
9149 | ||
9150 | ||
9151 | PNG_INCLUDE= | |
9152 | PNG_LINK= | |
9153 | if test "$wxUSE_LIBPNG" != "no" ; then | |
9154 | cat >> confdefs.h <<\EOF | |
9155 | #define wxUSE_LIBPNG 1 | |
9156 | EOF | |
9157 | ||
9158 | ||
9159 | if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then | |
a3df447d | 9160 | echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2 |
4f14bcd8 GD |
9161 | wxUSE_LIBPNG=builtin |
9162 | fi | |
9163 | ||
9164 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
9165 | ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` | |
9166 | echo $ac_n "checking for png.h""... $ac_c" 1>&6 | |
94054c1d | 9167 | echo "configure:9168: checking for png.h" >&5 |
d4158b5d VS |
9168 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9169 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9170 | else | |
9171 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 9172 | #line 9173 "configure" |
d4158b5d | 9173 | #include "confdefs.h" |
4f14bcd8 | 9174 | #include <png.h> |
d4158b5d VS |
9175 | EOF |
9176 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
94054c1d | 9177 | { (eval echo configure:9178: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
d4158b5d VS |
9178 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9179 | if test -z "$ac_err"; then | |
9180 | rm -rf conftest* | |
9181 | eval "ac_cv_header_$ac_safe=yes" | |
9182 | else | |
9183 | echo "$ac_err" >&5 | |
9184 | echo "configure: failed program was:" >&5 | |
9185 | cat conftest.$ac_ext >&5 | |
9186 | rm -rf conftest* | |
9187 | eval "ac_cv_header_$ac_safe=no" | |
9188 | fi | |
9189 | rm -f conftest* | |
9190 | fi | |
9191 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9192 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 9193 | echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6 |
94054c1d | 9194 | echo "configure:9195: checking for png_check_sig in -lpng" >&5 |
4f14bcd8 GD |
9195 | ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'` |
9196 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
3a922bb4 RL |
9197 | echo $ac_n "(cached) $ac_c" 1>&6 |
9198 | else | |
4f14bcd8 GD |
9199 | ac_save_LIBS="$LIBS" |
9200 | LIBS="-lpng -lz -lm $LIBS" | |
9201 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 9202 | #line 9203 "configure" |
3a922bb4 | 9203 | #include "confdefs.h" |
4f14bcd8 GD |
9204 | /* Override any gcc2 internal prototype to avoid an error. */ |
9205 | /* We use char because int might match the return type of a gcc2 | |
9206 | builtin and then its argument prototype would still apply. */ | |
9207 | char png_check_sig(); | |
f6bcfd97 | 9208 | |
4f14bcd8 GD |
9209 | int main() { |
9210 | png_check_sig() | |
3a922bb4 RL |
9211 | ; return 0; } |
9212 | EOF | |
94054c1d | 9213 | if { (eval echo configure:9214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3a922bb4 | 9214 | rm -rf conftest* |
4f14bcd8 | 9215 | eval "ac_cv_lib_$ac_lib_var=yes" |
3a922bb4 RL |
9216 | else |
9217 | echo "configure: failed program was:" >&5 | |
9218 | cat conftest.$ac_ext >&5 | |
9219 | rm -rf conftest* | |
4f14bcd8 | 9220 | eval "ac_cv_lib_$ac_lib_var=no" |
3a922bb4 RL |
9221 | fi |
9222 | rm -f conftest* | |
4f14bcd8 | 9223 | LIBS="$ac_save_LIBS" |
10f2d63a | 9224 | |
4f14bcd8 GD |
9225 | fi |
9226 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9227 | echo "$ac_t""yes" 1>&6 | |
3d63bc3a | 9228 | PNG_LINK=" -lpng" |
4f14bcd8 GD |
9229 | else |
9230 | echo "$ac_t""no" 1>&6 | |
9231 | fi | |
32832908 | 9232 | |
4f14bcd8 GD |
9233 | |
9234 | else | |
9235 | echo "$ac_t""no" 1>&6 | |
9236 | fi | |
3a922bb4 | 9237 | |
7b7a7637 | 9238 | |
4f14bcd8 GD |
9239 | if test "x$PNG_LINK" = "x" ; then |
9240 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
9241 | { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; } | |
9242 | else | |
a3df447d | 9243 | echo "configure: warning: system png library not found, will use built-in instead" 1>&2 |
4f14bcd8 GD |
9244 | wxUSE_LIBPNG=builtin |
9245 | fi | |
9246 | else | |
9247 | wxUSE_LIBPNG=yes | |
9248 | fi | |
3a922bb4 RL |
9249 | fi |
9250 | ||
4f14bcd8 GD |
9251 | if test "$wxUSE_LIBPNG" = "builtin" ; then |
9252 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
3a922bb4 RL |
9253 | fi |
9254 | ||
4f14bcd8 | 9255 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" |
3a922bb4 RL |
9256 | fi |
9257 | ||
32832908 | 9258 | |
4f14bcd8 GD |
9259 | JPEG_INCLUDE= |
9260 | JPEG_LINK= | |
9261 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
9262 | cat >> confdefs.h <<\EOF | |
9263 | #define wxUSE_LIBJPEG 1 | |
9264 | EOF | |
10f2d63a | 9265 | |
8168de4c | 9266 | |
4f14bcd8 GD |
9267 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then |
9268 | echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 | |
94054c1d | 9269 | echo "configure:9270: checking for jpeglib.h" >&5 |
4f14bcd8 | 9270 | if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then |
8168de4c VZ |
9271 | echo $ac_n "(cached) $ac_c" 1>&6 |
9272 | else | |
4f14bcd8 | 9273 | cat > conftest.$ac_ext <<EOF |
94054c1d | 9274 | #line 9275 "configure" |
4f14bcd8 | 9275 | #include "confdefs.h" |
8168de4c | 9276 | |
4f14bcd8 GD |
9277 | #undef HAVE_STDLIB_H |
9278 | #include <stdio.h> | |
9279 | #include <jpeglib.h> | |
9280 | ||
9281 | int main() { | |
9282 | ||
9283 | ||
9284 | ; return 0; } | |
9285 | EOF | |
94054c1d | 9286 | if { (eval echo configure:9287: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
9287 | rm -rf conftest* |
9288 | ac_cv_header_jpeglib_h=yes | |
6f72b082 | 9289 | else |
4f14bcd8 GD |
9290 | echo "configure: failed program was:" >&5 |
9291 | cat conftest.$ac_ext >&5 | |
9292 | rm -rf conftest* | |
9293 | ac_cv_header_jpeglib_h=no | |
9294 | ||
9295 | fi | |
9296 | rm -f conftest* | |
9297 | ||
698dcdb6 | 9298 | fi |
6f72b082 | 9299 | |
4f14bcd8 GD |
9300 | echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6 |
9301 | ||
9302 | if test "$ac_cv_header_jpeglib_h" = "yes"; then | |
9303 | echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6 | |
94054c1d | 9304 | echo "configure:9305: checking for jpeg_read_header in -ljpeg" >&5 |
4f14bcd8 GD |
9305 | ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'` |
9306 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9307 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6f72b082 | 9308 | else |
4f14bcd8 GD |
9309 | ac_save_LIBS="$LIBS" |
9310 | LIBS="-ljpeg $LIBS" | |
9311 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 9312 | #line 9313 "configure" |
4f14bcd8 GD |
9313 | #include "confdefs.h" |
9314 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9315 | /* We use char because int might match the return type of a gcc2 | |
9316 | builtin and then its argument prototype would still apply. */ | |
9317 | char jpeg_read_header(); | |
698dcdb6 | 9318 | |
4f14bcd8 GD |
9319 | int main() { |
9320 | jpeg_read_header() | |
9321 | ; return 0; } | |
9322 | EOF | |
94054c1d | 9323 | if { (eval echo configure:9324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
9324 | rm -rf conftest* |
9325 | eval "ac_cv_lib_$ac_lib_var=yes" | |
6f72b082 | 9326 | else |
4f14bcd8 GD |
9327 | echo "configure: failed program was:" >&5 |
9328 | cat conftest.$ac_ext >&5 | |
9329 | rm -rf conftest* | |
9330 | eval "ac_cv_lib_$ac_lib_var=no" | |
698dcdb6 | 9331 | fi |
4f14bcd8 GD |
9332 | rm -f conftest* |
9333 | LIBS="$ac_save_LIBS" | |
698dcdb6 | 9334 | |
4f14bcd8 GD |
9335 | fi |
9336 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9337 | echo "$ac_t""yes" 1>&6 | |
3d63bc3a | 9338 | JPEG_LINK=" -ljpeg" |
4f14bcd8 GD |
9339 | else |
9340 | echo "$ac_t""no" 1>&6 | |
9341 | fi | |
9342 | ||
9343 | fi | |
9344 | ||
9345 | if test "x$JPEG_LINK" = "x" ; then | |
9346 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
9347 | { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; } | |
9348 | else | |
a3df447d | 9349 | echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2 |
4f14bcd8 GD |
9350 | wxUSE_LIBJPEG=builtin |
9351 | fi | |
9352 | else | |
9353 | wxUSE_LIBJPEG=sys | |
9354 | fi | |
9355 | fi | |
9356 | ||
9357 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
9358 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
9359 | fi | |
9360 | fi | |
9361 | ||
9362 | ||
9363 | TIFF_INCLUDE= | |
9364 | TIFF_LINK= | |
9365 | if test "$wxUSE_LIBTIFF" != "no" ; then | |
9366 | cat >> confdefs.h <<\EOF | |
9367 | #define wxUSE_LIBTIFF 1 | |
9368 | EOF | |
9369 | ||
9370 | ||
9371 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then | |
9372 | ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` | |
9373 | echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | |
94054c1d | 9374 | echo "configure:9375: checking for tiffio.h" >&5 |
4f14bcd8 GD |
9375 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9376 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9377 | else | |
9378 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 9379 | #line 9380 "configure" |
4f14bcd8 GD |
9380 | #include "confdefs.h" |
9381 | #include <tiffio.h> | |
9382 | EOF | |
9383 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
94054c1d | 9384 | { (eval echo configure:9385: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
9385 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9386 | if test -z "$ac_err"; then | |
9387 | rm -rf conftest* | |
9388 | eval "ac_cv_header_$ac_safe=yes" | |
9389 | else | |
9390 | echo "$ac_err" >&5 | |
9391 | echo "configure: failed program was:" >&5 | |
9392 | cat conftest.$ac_ext >&5 | |
9393 | rm -rf conftest* | |
9394 | eval "ac_cv_header_$ac_safe=no" | |
9395 | fi | |
9396 | rm -f conftest* | |
9397 | fi | |
9398 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9399 | echo "$ac_t""yes" 1>&6 | |
9400 | echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6 | |
94054c1d | 9401 | echo "configure:9402: checking for TIFFError in -ltiff" >&5 |
4f14bcd8 GD |
9402 | ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'` |
9403 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9404 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9405 | else | |
9406 | ac_save_LIBS="$LIBS" | |
9407 | LIBS="-ltiff -lm $LIBS" | |
9408 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 9409 | #line 9410 "configure" |
4f14bcd8 GD |
9410 | #include "confdefs.h" |
9411 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9412 | /* We use char because int might match the return type of a gcc2 | |
9413 | builtin and then its argument prototype would still apply. */ | |
9414 | char TIFFError(); | |
9415 | ||
9416 | int main() { | |
9417 | TIFFError() | |
9418 | ; return 0; } | |
9419 | EOF | |
94054c1d | 9420 | if { (eval echo configure:9421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
9421 | rm -rf conftest* |
9422 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9423 | else | |
9424 | echo "configure: failed program was:" >&5 | |
9425 | cat conftest.$ac_ext >&5 | |
9426 | rm -rf conftest* | |
9427 | eval "ac_cv_lib_$ac_lib_var=no" | |
9428 | fi | |
9429 | rm -f conftest* | |
9430 | LIBS="$ac_save_LIBS" | |
9431 | ||
9432 | fi | |
9433 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9434 | echo "$ac_t""yes" 1>&6 | |
3d63bc3a | 9435 | TIFF_LINK=" -ltiff" |
4f14bcd8 GD |
9436 | else |
9437 | echo "$ac_t""no" 1>&6 | |
9438 | fi | |
9439 | ||
9440 | ||
9441 | else | |
9442 | echo "$ac_t""no" 1>&6 | |
9443 | fi | |
9444 | ||
9445 | ||
9446 | if test "x$TIFF_LINK" = "x" ; then | |
9447 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
9448 | { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; } | |
9449 | else | |
a3df447d | 9450 | echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2 |
4f14bcd8 GD |
9451 | wxUSE_LIBTIFF=builtin |
9452 | fi | |
9453 | else | |
9454 | wxUSE_LIBTIFF=sys | |
9455 | fi | |
9456 | fi | |
9457 | ||
9458 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
9459 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" | |
9460 | fi | |
9461 | fi | |
9462 | ||
9463 | ||
9464 | FREETYPE_INCLUDE= | |
9465 | FREETYPE_LINK= | |
9466 | if test "$wxUSE_FREETYPE" != "no" ; then | |
9467 | cat >> confdefs.h <<\EOF | |
9468 | #define wxUSE_FREETYPE 1 | |
9469 | EOF | |
9470 | ||
9471 | ||
9472 | if test "$wxUSE_FREETYPE" = "sys" -o "$wxUSE_FREETYPE" = "yes" ; then | |
9473 | ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'` | |
9474 | echo $ac_n "checking for freetype.h""... $ac_c" 1>&6 | |
94054c1d | 9475 | echo "configure:9476: checking for freetype.h" >&5 |
4f14bcd8 GD |
9476 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9477 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9478 | else | |
9479 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 9480 | #line 9481 "configure" |
4f14bcd8 GD |
9481 | #include "confdefs.h" |
9482 | #include <freetype.h> | |
9483 | EOF | |
9484 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
94054c1d | 9485 | { (eval echo configure:9486: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
9486 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9487 | if test -z "$ac_err"; then | |
9488 | rm -rf conftest* | |
9489 | eval "ac_cv_header_$ac_safe=yes" | |
9490 | else | |
9491 | echo "$ac_err" >&5 | |
9492 | echo "configure: failed program was:" >&5 | |
9493 | cat conftest.$ac_ext >&5 | |
9494 | rm -rf conftest* | |
9495 | eval "ac_cv_header_$ac_safe=no" | |
9496 | fi | |
9497 | rm -f conftest* | |
9498 | fi | |
9499 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9500 | echo "$ac_t""yes" 1>&6 | |
9501 | echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6 | |
94054c1d | 9502 | echo "configure:9503: checking for FT_Render_Glyph in -lfreetype" >&5 |
4f14bcd8 GD |
9503 | ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'` |
9504 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9505 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9506 | else | |
9507 | ac_save_LIBS="$LIBS" | |
9508 | LIBS="-lfreetype -lm $LIBS" | |
9509 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 9510 | #line 9511 "configure" |
4f14bcd8 GD |
9511 | #include "confdefs.h" |
9512 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9513 | /* We use char because int might match the return type of a gcc2 | |
9514 | builtin and then its argument prototype would still apply. */ | |
9515 | char FT_Render_Glyph(); | |
9516 | ||
9517 | int main() { | |
9518 | FT_Render_Glyph() | |
9519 | ; return 0; } | |
9520 | EOF | |
94054c1d | 9521 | if { (eval echo configure:9522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
9522 | rm -rf conftest* |
9523 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9524 | else | |
9525 | echo "configure: failed program was:" >&5 | |
9526 | cat conftest.$ac_ext >&5 | |
9527 | rm -rf conftest* | |
9528 | eval "ac_cv_lib_$ac_lib_var=no" | |
9529 | fi | |
9530 | rm -f conftest* | |
9531 | LIBS="$ac_save_LIBS" | |
9532 | ||
9533 | fi | |
9534 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9535 | echo "$ac_t""yes" 1>&6 | |
3d63bc3a | 9536 | FREETYPE_LINK=" -lfreetype" |
4f14bcd8 GD |
9537 | else |
9538 | echo "$ac_t""no" 1>&6 | |
9539 | fi | |
9540 | ||
9541 | ||
9542 | else | |
9543 | echo "$ac_t""no" 1>&6 | |
9544 | fi | |
9545 | ||
9546 | ||
9547 | if test "x$FREETYPE_LINK" = "x" ; then | |
9548 | if test "$wxUSE_FREETYPE" = "sys" ; then | |
9549 | { echo "configure: error: system freetype library not found! Use --with-freetype=builtin to use built-in version" 1>&2; exit 1; } | |
9550 | else | |
a3df447d | 9551 | echo "configure: warning: system freetype library not found, will use built-in instead" 1>&2 |
4f14bcd8 GD |
9552 | wxUSE_FREETYPE=builtin |
9553 | fi | |
9554 | else | |
9555 | wxUSE_FREETYPE=sys | |
9556 | fi | |
9557 | fi | |
9558 | ||
9559 | if test "$wxUSE_FREETYPE" = "builtin" ; then | |
9560 | FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype" | |
9561 | fi | |
9562 | fi | |
9563 | ||
9564 | ||
9565 | AFMINSTALL= | |
9566 | ||
9567 | TOOLKIT= | |
9568 | TOOLKIT_INCLUDE= | |
9569 | WIDGET_SET= | |
9570 | ||
9571 | if test "$USE_WIN32" = 1 ; then | |
9572 | for ac_hdr in w32api.h | |
9573 | do | |
9574 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9575 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
94054c1d | 9576 | echo "configure:9577: checking for $ac_hdr" >&5 |
4f14bcd8 GD |
9577 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9578 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9579 | else | |
9580 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 9581 | #line 9582 "configure" |
4f14bcd8 GD |
9582 | #include "confdefs.h" |
9583 | #include <$ac_hdr> | |
9584 | EOF | |
9585 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
94054c1d | 9586 | { (eval echo configure:9587: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
9587 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9588 | if test -z "$ac_err"; then | |
9589 | rm -rf conftest* | |
9590 | eval "ac_cv_header_$ac_safe=yes" | |
9591 | else | |
9592 | echo "$ac_err" >&5 | |
9593 | echo "configure: failed program was:" >&5 | |
9594 | cat conftest.$ac_ext >&5 | |
9595 | rm -rf conftest* | |
9596 | eval "ac_cv_header_$ac_safe=no" | |
9597 | fi | |
9598 | rm -f conftest* | |
9599 | fi | |
9600 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9601 | echo "$ac_t""yes" 1>&6 | |
9602 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9603 | cat >> confdefs.h <<EOF | |
9604 | #define $ac_tr_hdr 1 | |
9605 | EOF | |
9606 | ||
9607 | else | |
9608 | echo "$ac_t""no" 1>&6 | |
9609 | fi | |
9610 | done | |
9611 | ||
9612 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` | |
9613 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
94054c1d | 9614 | echo "configure:9615: checking for windows.h" >&5 |
4f14bcd8 GD |
9615 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9616 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9617 | else | |
9618 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 9619 | #line 9620 "configure" |
4f14bcd8 GD |
9620 | #include "confdefs.h" |
9621 | #include <windows.h> | |
9622 | EOF | |
9623 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
94054c1d | 9624 | { (eval echo configure:9625: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
9625 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9626 | if test -z "$ac_err"; then | |
9627 | rm -rf conftest* | |
9628 | eval "ac_cv_header_$ac_safe=yes" | |
9629 | else | |
9630 | echo "$ac_err" >&5 | |
9631 | echo "configure: failed program was:" >&5 | |
9632 | cat conftest.$ac_ext >&5 | |
9633 | rm -rf conftest* | |
9634 | eval "ac_cv_header_$ac_safe=no" | |
9635 | fi | |
9636 | rm -f conftest* | |
9637 | fi | |
9638 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9639 | echo "$ac_t""yes" 1>&6 | |
9640 | : | |
9641 | else | |
9642 | echo "$ac_t""no" 1>&6 | |
9643 | ||
9644 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
9645 | ||
9646 | fi | |
9647 | ||
9648 | ||
9649 | echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6 | |
94054c1d | 9650 | echo "configure:9651: checking if w32api has good enough MSIE support" >&5 |
ea7682f0 | 9651 | if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then |
4f14bcd8 GD |
9652 | echo $ac_n "(cached) $ac_c" 1>&6 |
9653 | else | |
9654 | ||
9655 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 9656 | #line 9657 "configure" |
4f14bcd8 GD |
9657 | #include "confdefs.h" |
9658 | #include <w32api.h> | |
9659 | int main() { | |
9660 | ||
9661 | #define wxCHECK_W32API_VERSION( major, minor ) \ | |
9662 | ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \ | |
9663 | && ( ( __W32API_MAJOR_VERSION > (major) ) \ | |
9664 | || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor)))) | |
9665 | ||
9666 | #if !wxCHECK_W32API_VERSION(1,1) | |
9667 | #error You need w32api 1.1 or newer | |
9668 | #endif | |
9669 | ||
9670 | ; return 0; } | |
9671 | EOF | |
94054c1d | 9672 | if { (eval echo configure:9673: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
9673 | rm -rf conftest* |
9674 | ||
ea7682f0 | 9675 | wx_cv_w32api_win32_ie=yes |
4f14bcd8 GD |
9676 | |
9677 | else | |
9678 | echo "configure: failed program was:" >&5 | |
9679 | cat conftest.$ac_ext >&5 | |
9680 | rm -rf conftest* | |
9681 | ||
ea7682f0 | 9682 | wx_cv_w32api_win32_ie=no |
4f14bcd8 GD |
9683 | |
9684 | fi | |
9685 | rm -f conftest* | |
9686 | ||
9687 | fi | |
9688 | ||
ea7682f0 VS |
9689 | echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6 |
9690 | if test "$wx_cv_w32api_win32_ie" = "yes" ; then | |
9691 | CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400" | |
9692 | fi | |
4f14bcd8 GD |
9693 | |
9694 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32" | |
9695 | ||
77e13408 RL |
9696 | case "${host}" in |
9697 | *-*-cygwin* ) | |
9698 | LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32" | |
9699 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" | |
9700 | esac | |
4f14bcd8 GD |
9701 | |
9702 | if test "$wxUSE_ODBC" = "yes" ; then | |
3d63bc3a | 9703 | LIBS=" -lodbc32 -lole32 -loleaut32$LIBS" |
4f14bcd8 GD |
9704 | fi |
9705 | ||
4f14bcd8 GD |
9706 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
9707 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
9708 | fi | |
9709 | ||
9710 | if test "$wxUSE_GUI" = "yes"; then | |
9711 | USE_GUI=1 | |
9712 | ||
9713 | GUI_TK_LIBRARY= | |
9714 | ||
9715 | WXGTK12= | |
9716 | WXGTK127= | |
9717 | WXGTK20= | |
9718 | ||
77e13408 | 9719 | if test "$wxUSE_MSW" = 1 ; then |
4f14bcd8 GD |
9720 | TOOLKIT=MSW |
9721 | GUIDIST=MSW_DIST | |
77e13408 RL |
9722 | |
9723 | case "${host}" in | |
9724 | *-*-mingw32* ) | |
3d63bc3a | 9725 | LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows" |
77e13408 | 9726 | esac |
4f14bcd8 GD |
9727 | fi |
9728 | ||
9729 | if test "$wxUSE_GTK" = 1; then | |
9730 | echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6 | |
94054c1d | 9731 | echo "configure:9732: checking for GTK+ version" >&5 |
4f14bcd8 GD |
9732 | |
9733 | gtk_version_cached=1 | |
9734 | if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then | |
9735 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9736 | else | |
9737 | ||
9738 | gtk_version_cached=0 | |
d48ad9bd | 9739 | echo "$ac_t""" 1>&6 |
4f14bcd8 GD |
9740 | |
9741 | wx_cv_lib_gtk= | |
9742 | if test "x$wxUSE_GTK2" = "xyes"; then | |
9743 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
9744 | if test "${with_gtk_prefix+set}" = set; then | |
9745 | withval="$with_gtk_prefix" | |
9746 | gtk_config_prefix="$withval" | |
9747 | else | |
9748 | gtk_config_prefix="" | |
9749 | fi | |
9750 | ||
9751 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
9752 | if test "${with_gtk_exec_prefix+set}" = set; then | |
9753 | withval="$with_gtk_exec_prefix" | |
9754 | gtk_config_exec_prefix="$withval" | |
9755 | else | |
9756 | gtk_config_exec_prefix="" | |
9757 | fi | |
9758 | ||
9759 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
9760 | if test "${enable_gtktest+set}" = set; then | |
9761 | enableval="$enable_gtktest" | |
9762 | : | |
9763 | else | |
9764 | enable_gtktest=yes | |
9765 | fi | |
9766 | ||
9767 | ||
9768 | for module in . | |
9769 | do | |
6f72b082 | 9770 | case "$module" in |
8168de4c | 9771 | gthread) |
6f72b082 OK |
9772 | gtk_config_args="$gtk_config_args gthread" |
9773 | ;; | |
9774 | esac | |
9775 | done | |
9776 | ||
9777 | if test x$gtk_config_exec_prefix != x ; then | |
9778 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
9779 | if test x${GTK_CONFIG_2_0+set} != xset ; then | |
9780 | GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0 | |
9781 | fi | |
9782 | fi | |
9783 | if test x$gtk_config_prefix != x ; then | |
9784 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
9785 | if test x${GTK_CONFIG_2_0+set} != xset ; then | |
9786 | GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0 | |
9787 | fi | |
9788 | fi | |
9789 | ||
9790 | # Extract the first word of "gtk-config-2.0", so it can be a program name with args. | |
9791 | set dummy gtk-config-2.0; ac_word=$2 | |
698dcdb6 | 9792 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
94054c1d | 9793 | echo "configure:9794: checking for $ac_word" >&5 |
698dcdb6 VZ |
9794 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then |
9795 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6f72b082 | 9796 | else |
698dcdb6 VZ |
9797 | case "$GTK_CONFIG_2_0" in |
9798 | /*) | |
6f72b082 OK |
9799 | ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path. |
9800 | ;; | |
698dcdb6 VZ |
9801 | ?:/*) |
9802 | ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path. | |
9803 | ;; | |
6f72b082 | 9804 | *) |
698dcdb6 VZ |
9805 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9806 | ac_dummy="$PATH" | |
9807 | for ac_dir in $ac_dummy; do | |
9808 | test -z "$ac_dir" && ac_dir=. | |
9809 | if test -f $ac_dir/$ac_word; then | |
9810 | ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word" | |
9811 | break | |
9812 | fi | |
9813 | done | |
9814 | IFS="$ac_save_ifs" | |
6f72b082 OK |
9815 | test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no" |
9816 | ;; | |
9817 | esac | |
9818 | fi | |
698dcdb6 | 9819 | GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0" |
6f72b082 | 9820 | if test -n "$GTK_CONFIG_2_0"; then |
698dcdb6 | 9821 | echo "$ac_t""$GTK_CONFIG_2_0" 1>&6 |
6f72b082 | 9822 | else |
698dcdb6 | 9823 | echo "$ac_t""no" 1>&6 |
6f72b082 OK |
9824 | fi |
9825 | ||
9826 | min_gtk_version=1.3.1 | |
698dcdb6 | 9827 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
94054c1d | 9828 | echo "configure:9829: checking for GTK - version >= $min_gtk_version" >&5 |
6f72b082 OK |
9829 | no_gtk="" |
9830 | if test "$GTK_CONFIG_2_0" = "no" ; then | |
9831 | no_gtk=yes | |
9832 | else | |
9833 | GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags` | |
9834 | GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs` | |
9835 | gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
9836 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
9837 | gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
9838 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
9839 | gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
9840 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
9841 | if test "x$enable_gtktest" = "xyes" ; then | |
9842 | ac_save_CFLAGS="$CFLAGS" | |
9843 | ac_save_LIBS="$LIBS" | |
9844 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
9845 | LIBS="$GTK_LIBS $LIBS" | |
9846 | rm -f conf.gtktest | |
9847 | if test "$cross_compiling" = yes; then | |
9848 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
9849 | else | |
698dcdb6 | 9850 | cat > conftest.$ac_ext <<EOF |
94054c1d | 9851 | #line 9852 "configure" |
6f72b082 OK |
9852 | #include "confdefs.h" |
9853 | ||
9854 | #include <gtk/gtk.h> | |
9855 | #include <stdio.h> | |
9856 | #include <stdlib.h> | |
9857 | ||
8168de4c | 9858 | int |
6f72b082 OK |
9859 | main () |
9860 | { | |
9861 | int major, minor, micro; | |
9862 | char *tmp_version; | |
9863 | ||
9864 | system ("touch conf.gtktest"); | |
9865 | ||
9866 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
9867 | tmp_version = g_strdup("$min_gtk_version"); | |
9868 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
9869 | printf("%s, bad version string\n", "$min_gtk_version"); | |
9870 | exit(1); | |
9871 | } | |
9872 | ||
9873 | if ((gtk_major_version != $gtk_config_major_version) || | |
9874 | (gtk_minor_version != $gtk_config_minor_version) || | |
9875 | (gtk_micro_version != $gtk_config_micro_version)) | |
9876 | { | |
8168de4c | 9877 | printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
6f72b082 OK |
9878 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
9879 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
9880 | printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n"); | |
9881 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
9882 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
9883 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
9884 | printf("*** required on your system.\n"); | |
9885 | printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n"); | |
9886 | printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n"); | |
9887 | printf("*** before re-running configure\n"); | |
8168de4c | 9888 | } |
6f72b082 OK |
9889 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
9890 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
8168de4c | 9891 | (gtk_minor_version != GTK_MINOR_VERSION) || |
6f72b082 OK |
9892 | (gtk_micro_version != GTK_MICRO_VERSION)) |
9893 | { | |
9894 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
8168de4c | 9895 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); |
6f72b082 | 9896 | printf("*** library (version %d.%d.%d)\n", |
8168de4c | 9897 | gtk_major_version, gtk_minor_version, gtk_micro_version); |
6f72b082 OK |
9898 | } |
9899 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
9900 | else | |
9901 | { | |
9902 | if ((gtk_major_version > major) || | |
9903 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
9904 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
9905 | { | |
9906 | return 0; | |
9907 | } | |
9908 | else | |
9909 | { | |
9910 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
9911 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
9912 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
8168de4c | 9913 | major, minor, micro); |
6f72b082 OK |
9914 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); |
9915 | printf("***\n"); | |
9916 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
9917 | printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n"); | |
9918 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
9919 | printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n"); | |
9920 | printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n"); | |
9921 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
9922 | printf("*** so that the correct libraries are found at run-time))\n"); | |
9923 | } | |
9924 | } | |
9925 | return 1; | |
9926 | } | |
9927 | ||
698dcdb6 | 9928 | EOF |
94054c1d | 9929 | if { (eval echo configure:9930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 9930 | then |
6f72b082 OK |
9931 | : |
9932 | else | |
698dcdb6 VZ |
9933 | echo "configure: failed program was:" >&5 |
9934 | cat conftest.$ac_ext >&5 | |
9935 | rm -fr conftest* | |
9936 | no_gtk=yes | |
6f72b082 | 9937 | fi |
698dcdb6 | 9938 | rm -fr conftest* |
6f72b082 | 9939 | fi |
698dcdb6 | 9940 | |
6f72b082 OK |
9941 | CFLAGS="$ac_save_CFLAGS" |
9942 | LIBS="$ac_save_LIBS" | |
9943 | fi | |
9944 | fi | |
9945 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 9946 | echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6 |
8168de4c | 9947 | wx_cv_lib_gtk=2.0 |
6f72b082 | 9948 | else |
698dcdb6 | 9949 | echo "$ac_t""no" 1>&6 |
6f72b082 OK |
9950 | if test "$GTK_CONFIG_2_0" = "no" ; then |
9951 | echo "*** The gtk-config-2.0 script installed by GTK could not be found" | |
9952 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
9953 | echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the" | |
9954 | echo "*** full path to gtk-config-2.0." | |
9955 | else | |
9956 | if test -f conf.gtktest ; then | |
9957 | : | |
9958 | else | |
9959 | echo "*** Could not run GTK test program, checking why..." | |
9960 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
9961 | LIBS="$LIBS $GTK_LIBS" | |
698dcdb6 | 9962 | cat > conftest.$ac_ext <<EOF |
94054c1d | 9963 | #line 9964 "configure" |
6f72b082 OK |
9964 | #include "confdefs.h" |
9965 | ||
9966 | #include <gtk/gtk.h> | |
9967 | #include <stdio.h> | |
9968 | ||
698dcdb6 VZ |
9969 | int main() { |
9970 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
9971 | ; return 0; } | |
9972 | EOF | |
94054c1d | 9973 | if { (eval echo configure:9974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 9974 | rm -rf conftest* |
6f72b082 OK |
9975 | echo "*** The test program compiled, but did not run. This usually means" |
9976 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
9977 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
9978 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
9979 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
9980 | echo "*** is required on your system" | |
8168de4c | 9981 | echo "***" |
6f72b082 OK |
9982 | echo "*** If you have an old version installed, it is best to remove it, although" |
9983 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
9984 | echo "***" | |
9985 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
9986 | echo "*** came with the system with the command" | |
9987 | echo "***" | |
698dcdb6 | 9988 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
6f72b082 | 9989 | else |
698dcdb6 VZ |
9990 | echo "configure: failed program was:" >&5 |
9991 | cat conftest.$ac_ext >&5 | |
9992 | rm -rf conftest* | |
9993 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
6f72b082 OK |
9994 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
9995 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
698dcdb6 | 9996 | echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0" |
6f72b082 | 9997 | fi |
698dcdb6 | 9998 | rm -f conftest* |
6f72b082 OK |
9999 | CFLAGS="$ac_save_CFLAGS" |
10000 | LIBS="$ac_save_LIBS" | |
10001 | fi | |
10002 | fi | |
10003 | GTK_CFLAGS="" | |
10004 | GTK_LIBS="" | |
8168de4c VZ |
10005 | gthread |
10006 | fi | |
10007 | ||
10008 | ||
10009 | rm -f conf.gtktest | |
10010 | ||
10011 | fi | |
10012 | ||
10013 | if test -z "$wx_cv_lib_gtk"; then | |
10014 | ||
10f2d63a VZ |
10015 | if test x$gtk_config_exec_prefix != x ; then |
10016 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
10017 | if test x${GTK_CONFIG+set} != xset ; then | |
10018 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
10019 | fi | |
10020 | fi | |
10021 | if test x$gtk_config_prefix != x ; then | |
10022 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
10023 | if test x${GTK_CONFIG+set} != xset ; then | |
10024 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
10025 | fi | |
10026 | fi | |
10027 | ||
10028 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
10029 | set dummy gtk-config; ac_word=$2 | |
698dcdb6 | 10030 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
94054c1d | 10031 | echo "configure:10032: checking for $ac_word" >&5 |
698dcdb6 VZ |
10032 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
10033 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 10034 | else |
698dcdb6 VZ |
10035 | case "$GTK_CONFIG" in |
10036 | /*) | |
f6bcfd97 BP |
10037 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
10038 | ;; | |
698dcdb6 VZ |
10039 | ?:/*) |
10040 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
10041 | ;; | |
f6bcfd97 | 10042 | *) |
698dcdb6 VZ |
10043 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
10044 | ac_dummy="$PATH" | |
10045 | for ac_dir in $ac_dummy; do | |
10046 | test -z "$ac_dir" && ac_dir=. | |
10047 | if test -f $ac_dir/$ac_word; then | |
10048 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
10049 | break | |
10050 | fi | |
10051 | done | |
10052 | IFS="$ac_save_ifs" | |
f6bcfd97 BP |
10053 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
10054 | ;; | |
10055 | esac | |
10056 | fi | |
698dcdb6 | 10057 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
f6bcfd97 | 10058 | if test -n "$GTK_CONFIG"; then |
698dcdb6 | 10059 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
f6bcfd97 | 10060 | else |
698dcdb6 | 10061 | echo "$ac_t""no" 1>&6 |
f6bcfd97 BP |
10062 | fi |
10063 | ||
10064 | min_gtk_version=1.2.7 | |
698dcdb6 | 10065 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
94054c1d | 10066 | echo "configure:10067: checking for GTK - version >= $min_gtk_version" >&5 |
f6bcfd97 BP |
10067 | no_gtk="" |
10068 | if test "$GTK_CONFIG" != "no" ; then | |
10069 | GTK_CFLAGS=`$GTK_CONFIG --cflags` | |
10070 | GTK_LIBS=`$GTK_CONFIG --libs gthread` | |
10071 | ac_save_CFLAGS="$CFLAGS" | |
10072 | ac_save_LIBS="$LIBS" | |
10073 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
10074 | LIBS="$LIBS $GTK_LIBS" | |
10075 | if test "$cross_compiling" = yes; then | |
10076 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
10077 | else | |
698dcdb6 | 10078 | cat > conftest.$ac_ext <<EOF |
94054c1d | 10079 | #line 10080 "configure" |
f6bcfd97 BP |
10080 | #include "confdefs.h" |
10081 | ||
10082 | #include <gtk/gtk.h> | |
10083 | #include <gtk/gtkfeatures.h> | |
10084 | #include <stdio.h> | |
10085 | #include <stdlib.h> | |
10086 | ||
10087 | int | |
10088 | main () | |
10089 | { | |
10090 | int major, minor, micro; | |
10091 | ||
10092 | if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) { | |
10093 | printf("%s, bad version string\n", "$min_gtk_version"); | |
10094 | exit(1); | |
10095 | } | |
10096 | ||
10097 | if ((GTK_MAJOR_VERSION != gtk_major_version) || | |
10098 | (GTK_MINOR_VERSION != gtk_minor_version) || | |
10099 | (GTK_MICRO_VERSION != gtk_micro_version)) { | |
10100 | printf("Headers vs. library version mismatch!\n"); | |
10101 | exit(1); | |
10102 | } | |
10103 | ||
10104 | if (gtk_minor_version == 1) return FALSE; | |
10105 | ||
10106 | return !((gtk_major_version > major) || | |
10107 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
10108 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))); | |
10109 | } | |
10110 | ||
698dcdb6 | 10111 | EOF |
94054c1d | 10112 | if { (eval echo configure:10113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 10113 | then |
f6bcfd97 BP |
10114 | : |
10115 | else | |
698dcdb6 VZ |
10116 | echo "configure: failed program was:" >&5 |
10117 | cat conftest.$ac_ext >&5 | |
10118 | rm -fr conftest* | |
10119 | no_gtk=yes | |
f6bcfd97 | 10120 | fi |
698dcdb6 | 10121 | rm -fr conftest* |
f6bcfd97 | 10122 | fi |
698dcdb6 | 10123 | |
f6bcfd97 BP |
10124 | CFLAGS="$ac_save_CFLAGS" |
10125 | LIBS="$ac_save_LIBS" | |
10126 | else | |
10127 | no_gtk=yes | |
10128 | fi | |
10129 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 10130 | echo "$ac_t""yes" 1>&6 |
8168de4c | 10131 | wx_cv_lib_gtk=1.2.7 |
f6bcfd97 | 10132 | else |
698dcdb6 | 10133 | echo "$ac_t""no" 1>&6 |
f6bcfd97 BP |
10134 | GTK_CFLAGS="" |
10135 | GTK_LIBS="" | |
10136 | : | |
10137 | fi | |
698dcdb6 VZ |
10138 | |
10139 | ||
f6bcfd97 | 10140 | |
8168de4c VZ |
10141 | fi |
10142 | ||
10143 | if test -z "$wx_cv_lib_gtk"; then | |
10144 | ||
f6bcfd97 BP |
10145 | if test x$gtk_config_exec_prefix != x ; then |
10146 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
10147 | if test x${GTK_CONFIG+set} != xset ; then | |
10148 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
10149 | fi | |
10150 | fi | |
10151 | if test x$gtk_config_prefix != x ; then | |
10152 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
10153 | if test x${GTK_CONFIG+set} != xset ; then | |
10154 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
10155 | fi | |
10156 | fi | |
10157 | ||
10158 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
10159 | set dummy gtk-config; ac_word=$2 | |
698dcdb6 | 10160 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
94054c1d | 10161 | echo "configure:10162: checking for $ac_word" >&5 |
698dcdb6 VZ |
10162 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
10163 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 10164 | else |
698dcdb6 VZ |
10165 | case "$GTK_CONFIG" in |
10166 | /*) | |
10f2d63a VZ |
10167 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
10168 | ;; | |
698dcdb6 VZ |
10169 | ?:/*) |
10170 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
10171 | ;; | |
10f2d63a | 10172 | *) |
698dcdb6 VZ |
10173 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
10174 | ac_dummy="$PATH" | |
10175 | for ac_dir in $ac_dummy; do | |
10176 | test -z "$ac_dir" && ac_dir=. | |
10177 | if test -f $ac_dir/$ac_word; then | |
10178 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
10179 | break | |
10180 | fi | |
10181 | done | |
10182 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
10183 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
10184 | ;; | |
10185 | esac | |
10186 | fi | |
698dcdb6 | 10187 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
10f2d63a | 10188 | if test -n "$GTK_CONFIG"; then |
698dcdb6 | 10189 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
10f2d63a | 10190 | else |
698dcdb6 | 10191 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
10192 | fi |
10193 | ||
04165bec | 10194 | min_gtk_version=1.2.3 |
698dcdb6 | 10195 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
94054c1d | 10196 | echo "configure:10197: checking for GTK - version >= $min_gtk_version" >&5 |
10f2d63a VZ |
10197 | no_gtk="" |
10198 | if test "$GTK_CONFIG" != "no" ; then | |
10199 | GTK_CFLAGS=`$GTK_CONFIG --cflags` | |
2224580a | 10200 | GTK_LIBS=`$GTK_CONFIG --libs gthread` |
10f2d63a VZ |
10201 | ac_save_CFLAGS="$CFLAGS" |
10202 | ac_save_LIBS="$LIBS" | |
10203 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
10204 | LIBS="$LIBS $GTK_LIBS" | |
10205 | if test "$cross_compiling" = yes; then | |
10206 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
10207 | else | |
698dcdb6 | 10208 | cat > conftest.$ac_ext <<EOF |
94054c1d | 10209 | #line 10210 "configure" |
10f2d63a VZ |
10210 | #include "confdefs.h" |
10211 | ||
10212 | #include <gtk/gtk.h> | |
f49f2b0c | 10213 | #include <gtk/gtkfeatures.h> |
10f2d63a | 10214 | #include <stdio.h> |
32832908 | 10215 | #include <stdlib.h> |
10f2d63a VZ |
10216 | |
10217 | int | |
10218 | main () | |
10219 | { | |
10220 | int major, minor, micro; | |
10221 | ||
10222 | if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) { | |
10223 | printf("%s, bad version string\n", "$min_gtk_version"); | |
10224 | exit(1); | |
10225 | } | |
10226 | ||
f49f2b0c RR |
10227 | if ((GTK_MAJOR_VERSION != gtk_major_version) || |
10228 | (GTK_MINOR_VERSION != gtk_minor_version) || | |
10229 | (GTK_MICRO_VERSION != gtk_micro_version)) { | |
10230 | printf("Headers vs. library version mismatch!\n"); | |
10231 | exit(1); | |
10232 | } | |
10233 | ||
10f2d63a VZ |
10234 | if (gtk_minor_version == 1) return FALSE; |
10235 | ||
10236 | return !((gtk_major_version > major) || | |
10237 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
10238 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))); | |
10239 | } | |
10240 | ||
698dcdb6 | 10241 | EOF |
94054c1d | 10242 | if { (eval echo configure:10243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 10243 | then |
10f2d63a VZ |
10244 | : |
10245 | else | |
698dcdb6 VZ |
10246 | echo "configure: failed program was:" >&5 |
10247 | cat conftest.$ac_ext >&5 | |
10248 | rm -fr conftest* | |
10249 | no_gtk=yes | |
10f2d63a | 10250 | fi |
698dcdb6 | 10251 | rm -fr conftest* |
10f2d63a | 10252 | fi |
698dcdb6 | 10253 | |
10f2d63a VZ |
10254 | CFLAGS="$ac_save_CFLAGS" |
10255 | LIBS="$ac_save_LIBS" | |
10256 | else | |
10257 | no_gtk=yes | |
10258 | fi | |
10259 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 10260 | echo "$ac_t""yes" 1>&6 |
8168de4c | 10261 | wx_cv_lib_gtk=1.2.3 |
10f2d63a | 10262 | else |
698dcdb6 | 10263 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
10264 | GTK_CFLAGS="" |
10265 | GTK_LIBS="" | |
7e99ad86 | 10266 | : |
10f2d63a | 10267 | fi |
698dcdb6 VZ |
10268 | |
10269 | ||
10f2d63a | 10270 | |
8168de4c VZ |
10271 | fi |
10272 | ||
10273 | if test -z "$wx_cv_lib_gtk"; then | |
10274 | wx_cv_lib_gtk=none | |
138be253 VZ |
10275 | else |
10276 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
10277 | wx_cv_libs_gtk=$GTK_LIBS | |
8168de4c VZ |
10278 | fi |
10279 | ||
1e6feb95 | 10280 | |
8168de4c | 10281 | fi |
703e0a69 | 10282 | |
698dcdb6 | 10283 | |
8168de4c VZ |
10284 | if test "$gtk_version_cached" = 1; then |
10285 | echo "$ac_t""$wx_cv_lib_gtk" 1>&6 | |
1e6feb95 | 10286 | fi |
698dcdb6 | 10287 | |
8168de4c VZ |
10288 | case "$wx_cv_lib_gtk" in |
10289 | 2.0) WXGTK20=1 | |
10290 | ;; | |
10291 | 1.2.7) WXGTK127=1 | |
d1a8d972 | 10292 | WXGTK12=1 |
8168de4c VZ |
10293 | ;; |
10294 | 1.2.3) WXGTK12=1 | |
10295 | ;; | |
10296 | *) { echo "configure: error: | |
10297 | Please check that gtk-config is in path, the directory | |
10298 | where GTK+ libraries are installed (returned by | |
10299 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
10300 | equivalent variable and GTK+ is version 1.2.3 or above. | |
10301 | " 1>&2; exit 1; } | |
10302 | ;; | |
10303 | esac | |
2224580a | 10304 | |
138be253 | 10305 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" |
11dfaa5f | 10306 | GUI_TK_LIBRARY="$wx_cv_libs_gtk" |
698dcdb6 | 10307 | |
1e6feb95 VZ |
10308 | AFMINSTALL=afminstall |
10309 | TOOLKIT=GTK | |
10310 | GUIDIST=GTK_DIST | |
7ec2881a | 10311 | |
1e6feb95 | 10312 | echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6 |
94054c1d | 10313 | echo "configure:10314: checking for gdk_im_open in -lgdk" >&5 |
698dcdb6 VZ |
10314 | ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'` |
10315 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10316 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7ec2881a | 10317 | else |
698dcdb6 | 10318 | ac_save_LIBS="$LIBS" |
7ec2881a | 10319 | LIBS="-lgdk $LIBS" |
698dcdb6 | 10320 | cat > conftest.$ac_ext <<EOF |
94054c1d | 10321 | #line 10322 "configure" |
7ec2881a RR |
10322 | #include "confdefs.h" |
10323 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10324 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10325 | builtin and then its argument prototype would still apply. */ |
10326 | char gdk_im_open(); | |
10327 | ||
10328 | int main() { | |
10329 | gdk_im_open() | |
10330 | ; return 0; } | |
10331 | EOF | |
94054c1d | 10332 | if { (eval echo configure:10333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10333 | rm -rf conftest* |
10334 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10335 | else | |
10336 | echo "configure: failed program was:" >&5 | |
10337 | cat conftest.$ac_ext >&5 | |
10338 | rm -rf conftest* | |
10339 | eval "ac_cv_lib_$ac_lib_var=no" | |
10340 | fi | |
10341 | rm -f conftest* | |
10342 | LIBS="$ac_save_LIBS" | |
10343 | ||
10344 | fi | |
10345 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10346 | echo "$ac_t""yes" 1>&6 | |
10347 | cat >> confdefs.h <<\EOF | |
7ec2881a RR |
10348 | #define HAVE_XIM 1 |
10349 | EOF | |
10350 | ||
698dcdb6 VZ |
10351 | else |
10352 | echo "$ac_t""no" 1>&6 | |
7ec2881a RR |
10353 | fi |
10354 | ||
1e6feb95 | 10355 | fi |
10f2d63a | 10356 | |
1e6feb95 VZ |
10357 | if test "$wxUSE_MGL" = 1; then |
10358 | ||
10359 | echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6 | |
94054c1d | 10360 | echo "configure:10361: checking for SciTech MGL library" >&5 |
1e6feb95 VZ |
10361 | if test "x$MGL_ROOT" = x ; then |
10362 | echo "$ac_t""not found" 1>&6 | |
10363 | { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; } | |
10364 | else | |
10365 | echo "$ac_t""$MGL_ROOT" 1>&6 | |
10366 | fi | |
10367 | ||
3a922bb4 RL |
10368 | mgl_os=linux/gcc/glibc |
10369 | mgl_lib_type="" | |
1e6feb95 VZ |
10370 | |
10371 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
223e7fbf VS |
10372 | if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \ |
10373 | -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then | |
3a922bb4 | 10374 | mgl_lib_type=debug |
1e6feb95 VZ |
10375 | fi |
10376 | fi | |
3a922bb4 | 10377 | if test "x$mgl_lib_type" = x ; then |
223e7fbf VS |
10378 | if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \ |
10379 | -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then | |
3a922bb4 | 10380 | mgl_lib_type=release |
1e6feb95 VZ |
10381 | else |
10382 | { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; } | |
10383 | fi | |
10384 | fi | |
10385 | ||
10386 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" | |
3a922bb4 | 10387 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" |
1e6feb95 VZ |
10388 | |
10389 | AFMINSTALL=afminstall | |
10390 | TOOLKIT=MGL | |
10391 | GUIDIST=MGL_DIST | |
10392 | fi | |
10393 | ||
10394 | if test "$wxUSE_WINE" = 1; then | |
3a922bb4 RL |
10395 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` |
10396 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
94054c1d | 10397 | echo "configure:10398: checking for windows.h" >&5 |
3a922bb4 RL |
10398 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10399 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10400 | else | |
10401 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 10402 | #line 10403 "configure" |
3a922bb4 RL |
10403 | #include "confdefs.h" |
10404 | #include <windows.h> | |
10405 | EOF | |
10406 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
94054c1d | 10407 | { (eval echo configure:10408: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3a922bb4 RL |
10408 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10409 | if test -z "$ac_err"; then | |
10410 | rm -rf conftest* | |
10411 | eval "ac_cv_header_$ac_safe=yes" | |
10412 | else | |
10413 | echo "$ac_err" >&5 | |
10414 | echo "configure: failed program was:" >&5 | |
10415 | cat conftest.$ac_ext >&5 | |
10416 | rm -rf conftest* | |
10417 | eval "ac_cv_header_$ac_safe=no" | |
10418 | fi | |
10419 | rm -f conftest* | |
10420 | fi | |
10421 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10422 | echo "$ac_t""yes" 1>&6 | |
10423 | : | |
10424 | else | |
10425 | echo "$ac_t""no" 1>&6 | |
10f2d63a | 10426 | |
1e6feb95 | 10427 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } |
3a922bb4 RL |
10428 | |
10429 | fi | |
10430 | ||
10f2d63a | 10431 | |
3d63bc3a | 10432 | xpm_link= |
1e6feb95 | 10433 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 |
94054c1d | 10434 | echo "configure:10435: checking for Xpm library" >&5 |
1e6feb95 | 10435 | |
10f2d63a VZ |
10436 | ac_find_libraries= |
10437 | for ac_dir in $SEARCH_LIB; | |
10438 | do | |
f11bdd03 | 10439 | for ac_extension in a so sl dylib; do |
10f2d63a VZ |
10440 | if test -f "$ac_dir/libXpm.$ac_extension"; then |
10441 | ac_find_libraries=$ac_dir | |
10442 | break 2 | |
10443 | fi | |
10444 | done | |
10445 | done | |
10446 | ||
1e6feb95 VZ |
10447 | if test "$ac_find_libraries" != "" ; then |
10448 | GUI_TK_LIBRARY="-L$ac_find_libraries" | |
3d63bc3a | 10449 | xpm_link=" -lXpm" |
1e6feb95 | 10450 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
10451 | #define wxHAVE_LIB_XPM 1 |
10452 | EOF | |
10453 | ||
1e6feb95 VZ |
10454 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
10455 | else | |
10456 | echo "$ac_t""no" 1>&6 | |
10457 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
10458 | fi | |
10f2d63a | 10459 | |
3d63bc3a | 10460 | mesa_link= |
1e6feb95 | 10461 | echo $ac_n "checking for Mesa library""... $ac_c" 1>&6 |
94054c1d | 10462 | echo "configure:10463: checking for Mesa library" >&5 |
1e6feb95 | 10463 | |
10f2d63a VZ |
10464 | ac_find_libraries= |
10465 | for ac_dir in $SEARCH_LIB; | |
10466 | do | |
f11bdd03 | 10467 | for ac_extension in a so sl dylib; do |
10f2d63a VZ |
10468 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then |
10469 | ac_find_libraries=$ac_dir | |
10470 | break 2 | |
10471 | fi | |
10472 | done | |
10473 | done | |
10474 | ||
1e6feb95 VZ |
10475 | if test "$ac_find_libraries" != "" ; then |
10476 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries" | |
3d63bc3a | 10477 | mesa_link=" -lMesaGL" |
1e6feb95 VZ |
10478 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
10479 | else | |
10480 | { echo "configure: error: no" 1>&2; exit 1; } | |
10481 | fi | |
10f2d63a | 10482 | |
3d63bc3a | 10483 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses" |
1e6feb95 VZ |
10484 | TOOLKIT=MSW |
10485 | GUIDIST=MSW_DIST | |
3a922bb4 | 10486 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__" |
1e6feb95 | 10487 | fi |
698dcdb6 | 10488 | |
d714471b VZ |
10489 | if test "$wxUSE_MOTIF" = 1; then |
10490 | # If we find X, set shell vars x_includes and x_libraries to the | |
698dcdb6 VZ |
10491 | # paths, otherwise set no_x=yes. |
10492 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
10493 | # --without-x overrides everything else, but does not touch the cache. | |
10494 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
94054c1d | 10495 | echo "configure:10496: checking for X" >&5 |
ab9b9eab VZ |
10496 | |
10497 | # Check whether --with-x or --without-x was given. | |
10498 | if test "${with_x+set}" = set; then | |
10499 | withval="$with_x" | |
698dcdb6 VZ |
10500 | : |
10501 | fi | |
ba337fe7 | 10502 | |
ab9b9eab VZ |
10503 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
10504 | if test "x$with_x" = xno; then | |
10505 | # The user explicitly disabled X. | |
10506 | have_x=disabled | |
10507 | else | |
10508 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
10509 | # Both variables are already set. | |
10510 | have_x=yes | |
10511 | else | |
698dcdb6 VZ |
10512 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then |
10513 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab VZ |
10514 | else |
10515 | # One or both of the vars are not set, and there is no cached value. | |
698dcdb6 VZ |
10516 | ac_x_includes=NO ac_x_libraries=NO |
10517 | rm -fr conftestdir | |
10518 | if mkdir conftestdir; then | |
10519 | cd conftestdir | |
ab9b9eab | 10520 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
698dcdb6 | 10521 | cat > Imakefile <<'EOF' |
ab9b9eab VZ |
10522 | acfindx: |
10523 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
10524 | EOF | |
10525 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
10526 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
10527 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
10528 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
10f2d63a | 10529 | for ac_extension in a so sl; do |
ab9b9eab | 10530 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
698dcdb6 | 10531 | test -f $ac_im_libdir/libX11.$ac_extension; then |
ab9b9eab | 10532 | ac_im_usrlibdir=$ac_im_libdir; break |
10f2d63a VZ |
10533 | fi |
10534 | done | |
ab9b9eab VZ |
10535 | # Screen out bogus values from the imake configuration. They are |
10536 | # bogus both because they are the default anyway, and because | |
10537 | # using them would break gcc on systems where it needs fixed includes. | |
698dcdb6 | 10538 | case "$ac_im_incroot" in |
ab9b9eab | 10539 | /usr/include) ;; |
698dcdb6 | 10540 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; |
ab9b9eab | 10541 | esac |
698dcdb6 | 10542 | case "$ac_im_usrlibdir" in |
ab9b9eab | 10543 | /usr/lib | /lib) ;; |
698dcdb6 | 10544 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; |
ab9b9eab | 10545 | esac |
ba337fe7 | 10546 | fi |
ab9b9eab | 10547 | cd .. |
698dcdb6 | 10548 | rm -fr conftestdir |
ab9b9eab | 10549 | fi |
10f2d63a | 10550 | |
698dcdb6 VZ |
10551 | if test "$ac_x_includes" = NO; then |
10552 | # Guess where to find include files, by looking for this one X11 .h file. | |
10553 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
10554 | ||
ab9b9eab | 10555 | # First, try using that file with no special directory specified. |
698dcdb6 | 10556 | cat > conftest.$ac_ext <<EOF |
94054c1d | 10557 | #line 10558 "configure" |
ab9b9eab | 10558 | #include "confdefs.h" |
698dcdb6 VZ |
10559 | #include <$x_direct_test_include> |
10560 | EOF | |
10561 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
94054c1d | 10562 | { (eval echo configure:10563: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
10563 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10564 | if test -z "$ac_err"; then | |
10565 | rm -rf conftest* | |
ab9b9eab VZ |
10566 | # We can compile using X headers with no special include directory. |
10567 | ac_x_includes= | |
10568 | else | |
698dcdb6 VZ |
10569 | echo "$ac_err" >&5 |
10570 | echo "configure: failed program was:" >&5 | |
ab9b9eab | 10571 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
10572 | rm -rf conftest* |
10573 | # Look for the header file in a standard set of common directories. | |
10574 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
10575 | for ac_dir in \ | |
10576 | /usr/X11/include \ | |
10577 | /usr/X11R6/include \ | |
10578 | /usr/X11R5/include \ | |
10579 | /usr/X11R4/include \ | |
10580 | \ | |
10581 | /usr/include/X11 \ | |
10582 | /usr/include/X11R6 \ | |
10583 | /usr/include/X11R5 \ | |
10584 | /usr/include/X11R4 \ | |
10585 | \ | |
10586 | /usr/local/X11/include \ | |
10587 | /usr/local/X11R6/include \ | |
10588 | /usr/local/X11R5/include \ | |
10589 | /usr/local/X11R4/include \ | |
10590 | \ | |
10591 | /usr/local/include/X11 \ | |
10592 | /usr/local/include/X11R6 \ | |
10593 | /usr/local/include/X11R5 \ | |
10594 | /usr/local/include/X11R4 \ | |
10595 | \ | |
10596 | /usr/X386/include \ | |
10597 | /usr/x386/include \ | |
10598 | /usr/XFree86/include/X11 \ | |
10599 | \ | |
10600 | /usr/include \ | |
10601 | /usr/local/include \ | |
10602 | /usr/unsupported/include \ | |
10603 | /usr/athena/include \ | |
10604 | /usr/local/x11r5/include \ | |
10605 | /usr/lpp/Xamples/include \ | |
10606 | \ | |
10607 | /usr/openwin/include \ | |
10608 | /usr/openwin/share/include \ | |
10609 | ; \ | |
10610 | do | |
10611 | if test -r "$ac_dir/$x_direct_test_include"; then | |
10612 | ac_x_includes=$ac_dir | |
10613 | break | |
10614 | fi | |
10615 | done | |
ab9b9eab | 10616 | fi |
698dcdb6 VZ |
10617 | rm -f conftest* |
10618 | fi # $ac_x_includes = NO | |
10f2d63a | 10619 | |
698dcdb6 | 10620 | if test "$ac_x_libraries" = NO; then |
ab9b9eab | 10621 | # Check for the libraries. |
698dcdb6 VZ |
10622 | |
10623 | test -z "$x_direct_test_library" && x_direct_test_library=Xt | |
10624 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
10625 | ||
ab9b9eab VZ |
10626 | # See if we find them without any special options. |
10627 | # Don't add to $LIBS permanently. | |
698dcdb6 VZ |
10628 | ac_save_LIBS="$LIBS" |
10629 | LIBS="-l$x_direct_test_library $LIBS" | |
10630 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 10631 | #line 10632 "configure" |
ab9b9eab | 10632 | #include "confdefs.h" |
698dcdb6 VZ |
10633 | |
10634 | int main() { | |
10635 | ${x_direct_test_function}() | |
10636 | ; return 0; } | |
10637 | EOF | |
94054c1d | 10638 | if { (eval echo configure:10639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10639 | rm -rf conftest* |
10640 | LIBS="$ac_save_LIBS" | |
ab9b9eab VZ |
10641 | # We can link X programs with no special library path. |
10642 | ac_x_libraries= | |
10643 | else | |
698dcdb6 VZ |
10644 | echo "configure: failed program was:" >&5 |
10645 | cat conftest.$ac_ext >&5 | |
10646 | rm -rf conftest* | |
10647 | LIBS="$ac_save_LIBS" | |
10648 | # First see if replacing the include by lib works. | |
10649 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
10650 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
10651 | /usr/X11/lib \ | |
10652 | /usr/X11R6/lib \ | |
10653 | /usr/X11R5/lib \ | |
10654 | /usr/X11R4/lib \ | |
10655 | \ | |
10656 | /usr/lib/X11 \ | |
10657 | /usr/lib/X11R6 \ | |
10658 | /usr/lib/X11R5 \ | |
10659 | /usr/lib/X11R4 \ | |
10660 | \ | |
10661 | /usr/local/X11/lib \ | |
10662 | /usr/local/X11R6/lib \ | |
10663 | /usr/local/X11R5/lib \ | |
10664 | /usr/local/X11R4/lib \ | |
10665 | \ | |
10666 | /usr/local/lib/X11 \ | |
10667 | /usr/local/lib/X11R6 \ | |
10668 | /usr/local/lib/X11R5 \ | |
10669 | /usr/local/lib/X11R4 \ | |
10670 | \ | |
10671 | /usr/X386/lib \ | |
10672 | /usr/x386/lib \ | |
10673 | /usr/XFree86/lib/X11 \ | |
10674 | \ | |
10675 | /usr/lib \ | |
10676 | /usr/local/lib \ | |
10677 | /usr/unsupported/lib \ | |
10678 | /usr/athena/lib \ | |
10679 | /usr/local/x11r5/lib \ | |
10680 | /usr/lpp/Xamples/lib \ | |
10681 | /lib/usr/lib/X11 \ | |
10682 | \ | |
10683 | /usr/openwin/lib \ | |
10684 | /usr/openwin/share/lib \ | |
10685 | ; \ | |
ab9b9eab VZ |
10686 | do |
10687 | for ac_extension in a so sl; do | |
698dcdb6 | 10688 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then |
ab9b9eab VZ |
10689 | ac_x_libraries=$ac_dir |
10690 | break 2 | |
10f2d63a | 10691 | fi |
10f2d63a | 10692 | done |
ab9b9eab VZ |
10693 | done |
10694 | fi | |
698dcdb6 VZ |
10695 | rm -f conftest* |
10696 | fi # $ac_x_libraries = NO | |
10f2d63a | 10697 | |
698dcdb6 | 10698 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
ab9b9eab VZ |
10699 | # Didn't find X anywhere. Cache the known absence of X. |
10700 | ac_cv_have_x="have_x=no" | |
10701 | else | |
10702 | # Record where we found X for the cache. | |
10703 | ac_cv_have_x="have_x=yes \ | |
10704 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
10705 | fi | |
10706 | fi | |
10f2d63a | 10707 | fi |
ab9b9eab VZ |
10708 | eval "$ac_cv_have_x" |
10709 | fi # $with_x != no | |
10f2d63a | 10710 | |
ab9b9eab | 10711 | if test "$have_x" != yes; then |
698dcdb6 | 10712 | echo "$ac_t""$have_x" 1>&6 |
ab9b9eab VZ |
10713 | no_x=yes |
10714 | else | |
10715 | # If each of the values was on the command line, it overrides each guess. | |
10716 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
10717 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
10718 | # Update the cache value to reflect the command line values. | |
10719 | ac_cv_have_x="have_x=yes \ | |
10720 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
698dcdb6 | 10721 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 |
ab9b9eab | 10722 | fi |
10f2d63a | 10723 | |
ab9b9eab VZ |
10724 | if test "$no_x" = yes; then |
10725 | # Not all programs may use this symbol, but it does not hurt to define it. | |
698dcdb6 | 10726 | cat >> confdefs.h <<\EOF |
ab9b9eab VZ |
10727 | #define X_DISPLAY_MISSING 1 |
10728 | EOF | |
10f2d63a | 10729 | |
ab9b9eab VZ |
10730 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
10731 | else | |
10732 | if test -n "$x_includes"; then | |
10733 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
10f2d63a VZ |
10734 | fi |
10735 | ||
ab9b9eab VZ |
10736 | # It would also be nice to do this for all -L options, not just this one. |
10737 | if test -n "$x_libraries"; then | |
10738 | X_LIBS="$X_LIBS -L$x_libraries" | |
10739 | # For Solaris; some versions of Sun CC require a space after -R and | |
10740 | # others require no space. Words are not sufficient . . . . | |
698dcdb6 | 10741 | case "`(uname -sr) 2>/dev/null`" in |
ab9b9eab | 10742 | "SunOS 5"*) |
698dcdb6 | 10743 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 |
94054c1d | 10744 | echo "configure:10745: checking whether -R must be followed by a space" >&5 |
698dcdb6 VZ |
10745 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
10746 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 10747 | #line 10748 "configure" |
ab9b9eab | 10748 | #include "confdefs.h" |
10f2d63a | 10749 | |
698dcdb6 | 10750 | int main() { |
788deba1 | 10751 | |
698dcdb6 VZ |
10752 | ; return 0; } |
10753 | EOF | |
94054c1d | 10754 | if { (eval echo configure:10755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 10755 | rm -rf conftest* |
ab9b9eab VZ |
10756 | ac_R_nospace=yes |
10757 | else | |
698dcdb6 VZ |
10758 | echo "configure: failed program was:" >&5 |
10759 | cat conftest.$ac_ext >&5 | |
10760 | rm -rf conftest* | |
10761 | ac_R_nospace=no | |
ab9b9eab | 10762 | fi |
698dcdb6 | 10763 | rm -f conftest* |
ab9b9eab | 10764 | if test $ac_R_nospace = yes; then |
698dcdb6 | 10765 | echo "$ac_t""no" 1>&6 |
ab9b9eab VZ |
10766 | X_LIBS="$X_LIBS -R$x_libraries" |
10767 | else | |
10768 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
698dcdb6 | 10769 | cat > conftest.$ac_ext <<EOF |
94054c1d | 10770 | #line 10771 "configure" |
ab9b9eab | 10771 | #include "confdefs.h" |
788deba1 | 10772 | |
698dcdb6 | 10773 | int main() { |
ab9b9eab | 10774 | |
698dcdb6 VZ |
10775 | ; return 0; } |
10776 | EOF | |
94054c1d | 10777 | if { (eval echo configure:10778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 10778 | rm -rf conftest* |
ab9b9eab VZ |
10779 | ac_R_space=yes |
10780 | else | |
698dcdb6 VZ |
10781 | echo "configure: failed program was:" >&5 |
10782 | cat conftest.$ac_ext >&5 | |
10783 | rm -rf conftest* | |
10784 | ac_R_space=no | |
ab9b9eab | 10785 | fi |
698dcdb6 | 10786 | rm -f conftest* |
ab9b9eab | 10787 | if test $ac_R_space = yes; then |
698dcdb6 | 10788 | echo "$ac_t""yes" 1>&6 |
ab9b9eab VZ |
10789 | X_LIBS="$X_LIBS -R $x_libraries" |
10790 | else | |
698dcdb6 | 10791 | echo "$ac_t""neither works" 1>&6 |
ab9b9eab VZ |
10792 | fi |
10793 | fi | |
698dcdb6 | 10794 | LIBS="$ac_xsave_LIBS" |
ab9b9eab VZ |
10795 | esac |
10796 | fi | |
10797 | ||
10798 | # Check for system-dependent libraries X programs must link with. | |
10799 | # Do this before checking for the system-independent R6 libraries | |
10800 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
10801 | ||
10802 | if test "$ISC" = yes; then | |
10803 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
10804 | else | |
698dcdb6 VZ |
10805 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X |
10806 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
ab9b9eab | 10807 | # the Alpha needs dnet_stub (dnet does not exist). |
698dcdb6 | 10808 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
94054c1d | 10809 | echo "configure:10810: checking for dnet_ntoa in -ldnet" >&5 |
698dcdb6 VZ |
10810 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
10811 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10812 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 10813 | else |
698dcdb6 | 10814 | ac_save_LIBS="$LIBS" |
ab9b9eab | 10815 | LIBS="-ldnet $LIBS" |
698dcdb6 | 10816 | cat > conftest.$ac_ext <<EOF |
94054c1d | 10817 | #line 10818 "configure" |
ab9b9eab VZ |
10818 | #include "confdefs.h" |
10819 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10820 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10821 | builtin and then its argument prototype would still apply. */ |
10822 | char dnet_ntoa(); | |
10823 | ||
10824 | int main() { | |
10825 | dnet_ntoa() | |
10826 | ; return 0; } | |
10827 | EOF | |
94054c1d | 10828 | if { (eval echo configure:10829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10829 | rm -rf conftest* |
10830 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10831 | else | |
10832 | echo "configure: failed program was:" >&5 | |
10833 | cat conftest.$ac_ext >&5 | |
10834 | rm -rf conftest* | |
10835 | eval "ac_cv_lib_$ac_lib_var=no" | |
10836 | fi | |
10837 | rm -f conftest* | |
10838 | LIBS="$ac_save_LIBS" | |
10839 | ||
10840 | fi | |
10841 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10842 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 10843 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
698dcdb6 VZ |
10844 | else |
10845 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
10846 | fi |
10847 | ||
10848 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
698dcdb6 | 10849 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
94054c1d | 10850 | echo "configure:10851: checking for dnet_ntoa in -ldnet_stub" >&5 |
698dcdb6 VZ |
10851 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
10852 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10853 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 10854 | else |
698dcdb6 | 10855 | ac_save_LIBS="$LIBS" |
ab9b9eab | 10856 | LIBS="-ldnet_stub $LIBS" |
698dcdb6 | 10857 | cat > conftest.$ac_ext <<EOF |
94054c1d | 10858 | #line 10859 "configure" |
ab9b9eab VZ |
10859 | #include "confdefs.h" |
10860 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10861 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10862 | builtin and then its argument prototype would still apply. */ |
10863 | char dnet_ntoa(); | |
10864 | ||
10865 | int main() { | |
10866 | dnet_ntoa() | |
10867 | ; return 0; } | |
10868 | EOF | |
94054c1d | 10869 | if { (eval echo configure:10870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10870 | rm -rf conftest* |
10871 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10872 | else | |
10873 | echo "configure: failed program was:" >&5 | |
10874 | cat conftest.$ac_ext >&5 | |
10875 | rm -rf conftest* | |
10876 | eval "ac_cv_lib_$ac_lib_var=no" | |
10877 | fi | |
10878 | rm -f conftest* | |
10879 | LIBS="$ac_save_LIBS" | |
10880 | ||
10881 | fi | |
10882 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10883 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 10884 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
698dcdb6 VZ |
10885 | else |
10886 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
10887 | fi |
10888 | ||
10889 | fi | |
10890 | ||
10891 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
10892 | # to get the SysV transport functions. | |
698dcdb6 | 10893 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
ab9b9eab VZ |
10894 | # needs -lnsl. |
10895 | # The nsl library prevents programs from opening the X display | |
698dcdb6 VZ |
10896 | # on Irix 5.2, according to dickey@clark.net. |
10897 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
94054c1d | 10898 | echo "configure:10899: checking for gethostbyname" >&5 |
698dcdb6 VZ |
10899 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
10900 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10901 | else | |
10902 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 10903 | #line 10904 "configure" |
ab9b9eab VZ |
10904 | #include "confdefs.h" |
10905 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 10906 | which can conflict with char gethostbyname(); below. */ |
ab9b9eab VZ |
10907 | #include <assert.h> |
10908 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10909 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10910 | builtin and then its argument prototype would still apply. */ |
10911 | char gethostbyname(); | |
10912 | ||
10913 | int main() { | |
ab9b9eab VZ |
10914 | |
10915 | /* The GNU C library defines this for functions which it implements | |
10916 | to always fail with ENOSYS. Some functions are actually named | |
10917 | something starting with __ and the normal name is an alias. */ | |
10918 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
10919 | choke me | |
10920 | #else | |
698dcdb6 | 10921 | gethostbyname(); |
ab9b9eab VZ |
10922 | #endif |
10923 | ||
698dcdb6 VZ |
10924 | ; return 0; } |
10925 | EOF | |
94054c1d | 10926 | if { (eval echo configure:10927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10927 | rm -rf conftest* |
10928 | eval "ac_cv_func_gethostbyname=yes" | |
10929 | else | |
10930 | echo "configure: failed program was:" >&5 | |
10931 | cat conftest.$ac_ext >&5 | |
10932 | rm -rf conftest* | |
10933 | eval "ac_cv_func_gethostbyname=no" | |
10934 | fi | |
10935 | rm -f conftest* | |
10936 | fi | |
10937 | ||
10938 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
10939 | echo "$ac_t""yes" 1>&6 | |
10940 | : | |
10941 | else | |
10942 | echo "$ac_t""no" 1>&6 | |
10943 | fi | |
ab9b9eab VZ |
10944 | |
10945 | if test $ac_cv_func_gethostbyname = no; then | |
698dcdb6 | 10946 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
94054c1d | 10947 | echo "configure:10948: checking for gethostbyname in -lnsl" >&5 |
698dcdb6 VZ |
10948 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
10949 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10950 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 10951 | else |
698dcdb6 | 10952 | ac_save_LIBS="$LIBS" |
ab9b9eab | 10953 | LIBS="-lnsl $LIBS" |
698dcdb6 | 10954 | cat > conftest.$ac_ext <<EOF |
94054c1d | 10955 | #line 10956 "configure" |
ab9b9eab VZ |
10956 | #include "confdefs.h" |
10957 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10958 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10959 | builtin and then its argument prototype would still apply. */ |
10960 | char gethostbyname(); | |
6232543b | 10961 | |
698dcdb6 VZ |
10962 | int main() { |
10963 | gethostbyname() | |
10964 | ; return 0; } | |
10965 | EOF | |
94054c1d | 10966 | if { (eval echo configure:10967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10967 | rm -rf conftest* |
10968 | eval "ac_cv_lib_$ac_lib_var=yes" | |
703e0a69 | 10969 | else |
698dcdb6 VZ |
10970 | echo "configure: failed program was:" >&5 |
10971 | cat conftest.$ac_ext >&5 | |
10972 | rm -rf conftest* | |
10973 | eval "ac_cv_lib_$ac_lib_var=no" | |
10974 | fi | |
10975 | rm -f conftest* | |
10976 | LIBS="$ac_save_LIBS" | |
1e487827 | 10977 | |
698dcdb6 VZ |
10978 | fi |
10979 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10980 | echo "$ac_t""yes" 1>&6 | |
10981 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
10982 | else | |
10983 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
10984 | fi |
10985 | ||
10986 | fi | |
10987 | ||
10988 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
10989 | # socket/setsockopt and other routines are undefined under SCO ODT | |
10990 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
698dcdb6 VZ |
10991 | # on later versions), says simon@lia.di.epfl.ch: it contains |
10992 | # gethostby* variants that don't use the nameserver (or something). | |
10993 | # -lsocket must be given before -lnsl if both are needed. | |
10994 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
10995 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
94054c1d | 10996 | echo "configure:10997: checking for connect" >&5 |
698dcdb6 VZ |
10997 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
10998 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10999 | else | |
11000 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 11001 | #line 11002 "configure" |
ab9b9eab VZ |
11002 | #include "confdefs.h" |
11003 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 11004 | which can conflict with char connect(); below. */ |
ab9b9eab VZ |
11005 | #include <assert.h> |
11006 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11007 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11008 | builtin and then its argument prototype would still apply. */ |
11009 | char connect(); | |
11010 | ||
11011 | int main() { | |
ab9b9eab VZ |
11012 | |
11013 | /* The GNU C library defines this for functions which it implements | |
11014 | to always fail with ENOSYS. Some functions are actually named | |
11015 | something starting with __ and the normal name is an alias. */ | |
11016 | #if defined (__stub_connect) || defined (__stub___connect) | |
11017 | choke me | |
11018 | #else | |
698dcdb6 | 11019 | connect(); |
ab9b9eab VZ |
11020 | #endif |
11021 | ||
698dcdb6 VZ |
11022 | ; return 0; } |
11023 | EOF | |
94054c1d | 11024 | if { (eval echo configure:11025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11025 | rm -rf conftest* |
11026 | eval "ac_cv_func_connect=yes" | |
11027 | else | |
11028 | echo "configure: failed program was:" >&5 | |
11029 | cat conftest.$ac_ext >&5 | |
11030 | rm -rf conftest* | |
11031 | eval "ac_cv_func_connect=no" | |
11032 | fi | |
11033 | rm -f conftest* | |
11034 | fi | |
11035 | ||
11036 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
11037 | echo "$ac_t""yes" 1>&6 | |
11038 | : | |
11039 | else | |
11040 | echo "$ac_t""no" 1>&6 | |
11041 | fi | |
ab9b9eab VZ |
11042 | |
11043 | if test $ac_cv_func_connect = no; then | |
698dcdb6 | 11044 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
94054c1d | 11045 | echo "configure:11046: checking for connect in -lsocket" >&5 |
698dcdb6 VZ |
11046 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
11047 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11048 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11049 | else |
698dcdb6 | 11050 | ac_save_LIBS="$LIBS" |
ab9b9eab | 11051 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
698dcdb6 | 11052 | cat > conftest.$ac_ext <<EOF |
94054c1d | 11053 | #line 11054 "configure" |
ab9b9eab VZ |
11054 | #include "confdefs.h" |
11055 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11056 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11057 | builtin and then its argument prototype would still apply. */ |
11058 | char connect(); | |
11059 | ||
11060 | int main() { | |
11061 | connect() | |
11062 | ; return 0; } | |
11063 | EOF | |
94054c1d | 11064 | if { (eval echo configure:11065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11065 | rm -rf conftest* |
11066 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11067 | else | |
11068 | echo "configure: failed program was:" >&5 | |
11069 | cat conftest.$ac_ext >&5 | |
11070 | rm -rf conftest* | |
11071 | eval "ac_cv_lib_$ac_lib_var=no" | |
11072 | fi | |
11073 | rm -f conftest* | |
11074 | LIBS="$ac_save_LIBS" | |
11075 | ||
11076 | fi | |
11077 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11078 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 11079 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
698dcdb6 VZ |
11080 | else |
11081 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11082 | fi |
11083 | ||
11084 | fi | |
11085 | ||
698dcdb6 VZ |
11086 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
11087 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
94054c1d | 11088 | echo "configure:11089: checking for remove" >&5 |
698dcdb6 VZ |
11089 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
11090 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11091 | else |
698dcdb6 | 11092 | cat > conftest.$ac_ext <<EOF |
94054c1d | 11093 | #line 11094 "configure" |
ab9b9eab VZ |
11094 | #include "confdefs.h" |
11095 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 11096 | which can conflict with char remove(); below. */ |
ab9b9eab VZ |
11097 | #include <assert.h> |
11098 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11099 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11100 | builtin and then its argument prototype would still apply. */ |
11101 | char remove(); | |
11102 | ||
11103 | int main() { | |
ab9b9eab VZ |
11104 | |
11105 | /* The GNU C library defines this for functions which it implements | |
11106 | to always fail with ENOSYS. Some functions are actually named | |
11107 | something starting with __ and the normal name is an alias. */ | |
11108 | #if defined (__stub_remove) || defined (__stub___remove) | |
11109 | choke me | |
11110 | #else | |
698dcdb6 | 11111 | remove(); |
ab9b9eab VZ |
11112 | #endif |
11113 | ||
698dcdb6 VZ |
11114 | ; return 0; } |
11115 | EOF | |
94054c1d | 11116 | if { (eval echo configure:11117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11117 | rm -rf conftest* |
11118 | eval "ac_cv_func_remove=yes" | |
11119 | else | |
11120 | echo "configure: failed program was:" >&5 | |
11121 | cat conftest.$ac_ext >&5 | |
11122 | rm -rf conftest* | |
11123 | eval "ac_cv_func_remove=no" | |
11124 | fi | |
11125 | rm -f conftest* | |
11126 | fi | |
11127 | ||
11128 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
11129 | echo "$ac_t""yes" 1>&6 | |
11130 | : | |
11131 | else | |
11132 | echo "$ac_t""no" 1>&6 | |
11133 | fi | |
ab9b9eab VZ |
11134 | |
11135 | if test $ac_cv_func_remove = no; then | |
698dcdb6 | 11136 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
94054c1d | 11137 | echo "configure:11138: checking for remove in -lposix" >&5 |
698dcdb6 VZ |
11138 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
11139 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11140 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11141 | else |
698dcdb6 | 11142 | ac_save_LIBS="$LIBS" |
ab9b9eab | 11143 | LIBS="-lposix $LIBS" |
698dcdb6 | 11144 | cat > conftest.$ac_ext <<EOF |
94054c1d | 11145 | #line 11146 "configure" |
ab9b9eab VZ |
11146 | #include "confdefs.h" |
11147 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11148 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11149 | builtin and then its argument prototype would still apply. */ |
11150 | char remove(); | |
11151 | ||
11152 | int main() { | |
11153 | remove() | |
11154 | ; return 0; } | |
11155 | EOF | |
94054c1d | 11156 | if { (eval echo configure:11157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11157 | rm -rf conftest* |
11158 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11159 | else | |
11160 | echo "configure: failed program was:" >&5 | |
11161 | cat conftest.$ac_ext >&5 | |
11162 | rm -rf conftest* | |
11163 | eval "ac_cv_lib_$ac_lib_var=no" | |
11164 | fi | |
11165 | rm -f conftest* | |
11166 | LIBS="$ac_save_LIBS" | |
11167 | ||
11168 | fi | |
11169 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11170 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 11171 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
698dcdb6 VZ |
11172 | else |
11173 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11174 | fi |
11175 | ||
11176 | fi | |
11177 | ||
11178 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
698dcdb6 | 11179 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
94054c1d | 11180 | echo "configure:11181: checking for shmat" >&5 |
698dcdb6 VZ |
11181 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
11182 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11183 | else |
698dcdb6 | 11184 | cat > conftest.$ac_ext <<EOF |
94054c1d | 11185 | #line 11186 "configure" |
ab9b9eab VZ |
11186 | #include "confdefs.h" |
11187 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 11188 | which can conflict with char shmat(); below. */ |
ab9b9eab VZ |
11189 | #include <assert.h> |
11190 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11191 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11192 | builtin and then its argument prototype would still apply. */ |
11193 | char shmat(); | |
11194 | ||
11195 | int main() { | |
ab9b9eab VZ |
11196 | |
11197 | /* The GNU C library defines this for functions which it implements | |
11198 | to always fail with ENOSYS. Some functions are actually named | |
11199 | something starting with __ and the normal name is an alias. */ | |
11200 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
11201 | choke me | |
11202 | #else | |
698dcdb6 | 11203 | shmat(); |
ab9b9eab VZ |
11204 | #endif |
11205 | ||
698dcdb6 VZ |
11206 | ; return 0; } |
11207 | EOF | |
94054c1d | 11208 | if { (eval echo configure:11209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11209 | rm -rf conftest* |
11210 | eval "ac_cv_func_shmat=yes" | |
11211 | else | |
11212 | echo "configure: failed program was:" >&5 | |
11213 | cat conftest.$ac_ext >&5 | |
11214 | rm -rf conftest* | |
11215 | eval "ac_cv_func_shmat=no" | |
11216 | fi | |
11217 | rm -f conftest* | |
11218 | fi | |
11219 | ||
11220 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
11221 | echo "$ac_t""yes" 1>&6 | |
11222 | : | |
11223 | else | |
11224 | echo "$ac_t""no" 1>&6 | |
11225 | fi | |
ab9b9eab VZ |
11226 | |
11227 | if test $ac_cv_func_shmat = no; then | |
698dcdb6 | 11228 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
94054c1d | 11229 | echo "configure:11230: checking for shmat in -lipc" >&5 |
698dcdb6 VZ |
11230 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
11231 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11232 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11233 | else |
698dcdb6 | 11234 | ac_save_LIBS="$LIBS" |
ab9b9eab | 11235 | LIBS="-lipc $LIBS" |
698dcdb6 | 11236 | cat > conftest.$ac_ext <<EOF |
94054c1d | 11237 | #line 11238 "configure" |
ab9b9eab VZ |
11238 | #include "confdefs.h" |
11239 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11240 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11241 | builtin and then its argument prototype would still apply. */ |
11242 | char shmat(); | |
11243 | ||
11244 | int main() { | |
11245 | shmat() | |
11246 | ; return 0; } | |
11247 | EOF | |
94054c1d | 11248 | if { (eval echo configure:11249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11249 | rm -rf conftest* |
11250 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11251 | else | |
11252 | echo "configure: failed program was:" >&5 | |
11253 | cat conftest.$ac_ext >&5 | |
11254 | rm -rf conftest* | |
11255 | eval "ac_cv_lib_$ac_lib_var=no" | |
11256 | fi | |
11257 | rm -f conftest* | |
11258 | LIBS="$ac_save_LIBS" | |
11259 | ||
11260 | fi | |
11261 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11262 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 11263 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
698dcdb6 VZ |
11264 | else |
11265 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11266 | fi |
11267 | ||
11268 | fi | |
11269 | fi | |
11270 | ||
11271 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
698dcdb6 | 11272 | ac_save_LDFLAGS="$LDFLAGS" |
ab9b9eab VZ |
11273 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
11274 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
11275 | # check for ICE first), but we must link in the order -lSM -lICE or | |
11276 | # we get undefined symbols. So assume we have SM if we have ICE. | |
11277 | # These have to be linked with before -lX11, unlike the other | |
11278 | # libraries we check for below, so use a different variable. | |
698dcdb6 VZ |
11279 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
11280 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
94054c1d | 11281 | echo "configure:11282: checking for IceConnectionNumber in -lICE" >&5 |
698dcdb6 VZ |
11282 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
11283 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11284 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11285 | else | |
11286 | ac_save_LIBS="$LIBS" | |
ab9b9eab | 11287 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
698dcdb6 | 11288 | cat > conftest.$ac_ext <<EOF |
94054c1d | 11289 | #line 11290 "configure" |
ab9b9eab VZ |
11290 | #include "confdefs.h" |
11291 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11292 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11293 | builtin and then its argument prototype would still apply. */ |
11294 | char IceConnectionNumber(); | |
11295 | ||
11296 | int main() { | |
11297 | IceConnectionNumber() | |
11298 | ; return 0; } | |
11299 | EOF | |
94054c1d | 11300 | if { (eval echo configure:11301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11301 | rm -rf conftest* |
11302 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11303 | else | |
11304 | echo "configure: failed program was:" >&5 | |
11305 | cat conftest.$ac_ext >&5 | |
11306 | rm -rf conftest* | |
11307 | eval "ac_cv_lib_$ac_lib_var=no" | |
11308 | fi | |
11309 | rm -f conftest* | |
11310 | LIBS="$ac_save_LIBS" | |
11311 | ||
11312 | fi | |
11313 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11314 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 11315 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
698dcdb6 VZ |
11316 | else |
11317 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11318 | fi |
11319 | ||
698dcdb6 | 11320 | LDFLAGS="$ac_save_LDFLAGS" |
ab9b9eab VZ |
11321 | |
11322 | fi | |
11323 | ||
11324 | ||
1e6feb95 VZ |
11325 | if test "$no_x" = "yes"; then |
11326 | { echo "configure: error: X11 not found" 1>&2; exit 1; } | |
11327 | fi | |
ab9b9eab | 11328 | |
1e6feb95 VZ |
11329 | GUI_TK_LIBRARY="$X_LIBS" |
11330 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
1e6feb95 | 11331 | AFMINSTALL=afminstall |
1e6feb95 | 11332 | COMPILED_X_PROGRAM=0 |
cd6d6d5b | 11333 | |
1e6feb95 | 11334 | echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6 |
94054c1d | 11335 | echo "configure:11336: checking for Motif/Lesstif headers" >&5 |
1e6feb95 | 11336 | |
ab9b9eab VZ |
11337 | ac_find_includes= |
11338 | for ac_dir in $SEARCH_INCLUDE; | |
11339 | do | |
11340 | if test -f "$ac_dir/Xm/Xm.h"; then | |
11341 | ac_find_includes=$ac_dir | |
11342 | break | |
11343 | fi | |
11344 | done | |
11345 | ||
1e6feb95 VZ |
11346 | if test "$ac_find_includes" != "" ; then |
11347 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
11348 | else | |
11349 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 11350 | #line 11351 "configure" |
cd6d6d5b VZ |
11351 | #include "confdefs.h" |
11352 | ||
1e6feb95 VZ |
11353 | #include <Xm/Xm.h> |
11354 | ||
698dcdb6 | 11355 | int main() { |
cd6d6d5b | 11356 | |
1e6feb95 | 11357 | int version; |
1e6feb95 VZ |
11358 | version = xmUseVersion; |
11359 | ||
698dcdb6 VZ |
11360 | ; return 0; } |
11361 | EOF | |
94054c1d | 11362 | if { (eval echo configure:11363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
11363 | rm -rf conftest* |
11364 | ||
1e6feb95 VZ |
11365 | echo "$ac_t""found in default search path" 1>&6 |
11366 | COMPILED_X_PROGRAM=1 | |
11367 | ||
cd6d6d5b | 11368 | else |
698dcdb6 VZ |
11369 | echo "configure: failed program was:" >&5 |
11370 | cat conftest.$ac_ext >&5 | |
11371 | rm -rf conftest* | |
11372 | ||
1e6feb95 VZ |
11373 | echo "$ac_t""no" 1>&6 |
11374 | { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; } | |
11375 | ||
698dcdb6 | 11376 | |
cd6d6d5b | 11377 | fi |
698dcdb6 | 11378 | rm -f conftest* |
1e6feb95 | 11379 | fi |
ab9b9eab | 11380 | |
1e6feb95 VZ |
11381 | if test "$COMPILED_X_PROGRAM" = 0; then |
11382 | echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6 | |
94054c1d | 11383 | echo "configure:11384: checking for Motif/Lesstif library" >&5 |
1e6feb95 | 11384 | |
ab9b9eab VZ |
11385 | ac_find_libraries= |
11386 | for ac_dir in $SEARCH_LIB; | |
11387 | do | |
f11bdd03 | 11388 | for ac_extension in a so sl dylib; do |
ab9b9eab VZ |
11389 | if test -f "$ac_dir/libXm.$ac_extension"; then |
11390 | ac_find_libraries=$ac_dir | |
11391 | break 2 | |
11392 | fi | |
11393 | done | |
11394 | done | |
11395 | ||
1e6feb95 VZ |
11396 | if test "$ac_find_libraries" != "" ; then |
11397 | ||
ab9b9eab VZ |
11398 | ac_path_to_include=$ac_find_includes |
11399 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
11400 | result=$? | |
11401 | if test $result = 0; then | |
11402 | ac_path_to_include="" | |
11403 | else | |
62d0491b | 11404 | ac_path_to_include=" -I$ac_find_includes" |
ab9b9eab VZ |
11405 | fi |
11406 | ||
1e6feb95 | 11407 | |
ab9b9eab VZ |
11408 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
11409 | result=$? | |
11410 | if test $result = 0; then | |
11411 | ac_path_to_link="" | |
11412 | else | |
62d0491b | 11413 | ac_path_to_link=" -L$ac_find_libraries" |
ab9b9eab VZ |
11414 | fi |
11415 | ||
698dcdb6 | 11416 | |
62d0491b RL |
11417 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
11418 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" | |
1e6feb95 VZ |
11419 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
11420 | else | |
11421 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 11422 | #line 11423 "configure" |
cd6d6d5b | 11423 | #include "confdefs.h" |
ab9b9eab | 11424 | |
1e6feb95 VZ |
11425 | #include <Xm/Xm.h> |
11426 | ||
698dcdb6 | 11427 | int main() { |
ab9b9eab | 11428 | |
1e6feb95 | 11429 | int version; |
1e6feb95 VZ |
11430 | version = xmUseVersion; |
11431 | ||
698dcdb6 VZ |
11432 | ; return 0; } |
11433 | EOF | |
94054c1d | 11434 | if { (eval echo configure:11435: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
11435 | rm -rf conftest* |
11436 | ||
1e6feb95 VZ |
11437 | echo "$ac_t""found in default search path" 1>&6 |
11438 | COMPILED_X_PROGRAM=1 | |
11439 | ||
cd6d6d5b | 11440 | else |
698dcdb6 VZ |
11441 | echo "configure: failed program was:" >&5 |
11442 | cat conftest.$ac_ext >&5 | |
11443 | rm -rf conftest* | |
11444 | ||
1e6feb95 VZ |
11445 | echo "$ac_t""no" 1>&6 |
11446 | { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; } | |
11447 | ||
698dcdb6 | 11448 | |
cd6d6d5b | 11449 | fi |
698dcdb6 | 11450 | rm -f conftest* |
1e6feb95 | 11451 | fi |
cd6d6d5b | 11452 | fi |
ab9b9eab | 11453 | |
3d63bc3a | 11454 | xpm_link= |
1e6feb95 | 11455 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 |
94054c1d | 11456 | echo "configure:11457: checking for Xpm library" >&5 |
1e6feb95 | 11457 | |
ab9b9eab VZ |
11458 | ac_find_libraries= |
11459 | for ac_dir in $SEARCH_LIB; | |
11460 | do | |
f11bdd03 | 11461 | for ac_extension in a so sl dylib; do |
ab9b9eab VZ |
11462 | if test -f "$ac_dir/libXpm.$ac_extension"; then |
11463 | ac_find_libraries=$ac_dir | |
11464 | break 2 | |
11465 | fi | |
11466 | done | |
11467 | done | |
11468 | ||
1e6feb95 VZ |
11469 | if test "$ac_find_libraries" != "" ; then |
11470 | ||
ab9b9eab VZ |
11471 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
11472 | result=$? | |
11473 | if test $result = 0; then | |
11474 | ac_path_to_link="" | |
11475 | else | |
62d0491b | 11476 | ac_path_to_link=" -L$ac_find_libraries" |
ab9b9eab VZ |
11477 | fi |
11478 | ||
62d0491b | 11479 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
3d63bc3a | 11480 | xpm_link=" -lXpm" |
1e6feb95 | 11481 | cat >> confdefs.h <<\EOF |
ab9b9eab VZ |
11482 | #define wxHAVE_LIB_XPM 1 |
11483 | EOF | |
11484 | ||
1e6feb95 VZ |
11485 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
11486 | else | |
11487 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 11488 | #line 11489 "configure" |
cd6d6d5b VZ |
11489 | #include "confdefs.h" |
11490 | ||
1e6feb95 VZ |
11491 | #include <X11/xpm.h> |
11492 | ||
698dcdb6 | 11493 | int main() { |
cd6d6d5b | 11494 | |
1e6feb95 | 11495 | int version; |
1e6feb95 VZ |
11496 | version = XpmLibraryVersion(); |
11497 | ||
698dcdb6 VZ |
11498 | ; return 0; } |
11499 | EOF | |
94054c1d | 11500 | if { (eval echo configure:11501: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
11501 | rm -rf conftest* |
11502 | ||
3d63bc3a | 11503 | xpm_link=" -lXpm" |
3a922bb4 | 11504 | cat >> confdefs.h <<\EOF |
3ace2e6d SN |
11505 | #define wxHAVE_LIB_XPM 1 |
11506 | EOF | |
11507 | ||
1e6feb95 VZ |
11508 | echo "$ac_t""found in default search path" 1>&6 |
11509 | COMPILED_X_PROGRAM=0 | |
11510 | ||
cd6d6d5b | 11511 | else |
698dcdb6 VZ |
11512 | echo "configure: failed program was:" >&5 |
11513 | cat conftest.$ac_ext >&5 | |
11514 | rm -rf conftest* | |
11515 | ||
1e6feb95 VZ |
11516 | echo "$ac_t""no" 1>&6 |
11517 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
11518 | ||
698dcdb6 | 11519 | |
cd6d6d5b | 11520 | fi |
698dcdb6 | 11521 | rm -f conftest* |
1e6feb95 VZ |
11522 | fi |
11523 | ||
3d63bc3a | 11524 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link -lXmu -lXext -lXt -lX11" |
334f0d2c | 11525 | TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo" |
1e6feb95 VZ |
11526 | TOOLKIT=MOTIF |
11527 | GUIDIST=MOTIF_DIST | |
ab9b9eab VZ |
11528 | fi |
11529 | ||
683dccda GD |
11530 | if test "$wxUSE_MAC" = 1; then |
11531 | if test "$wxUSE_PRECOMP" = "yes"; then | |
3d63bc3a | 11532 | CPPFLAGS="$CPPFLAGS -cpp-precomp" |
683dccda | 11533 | fi |
3d63bc3a RL |
11534 | CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile" |
11535 | CFLAGS="$CFLAGS -fpascal-strings" | |
11536 | CXXFLAGS="$CXXFLAGS -fpascal-strings" | |
11537 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -DTARGET_CARBON" | |
d08b457b | 11538 | |
13c0541d | 11539 | TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile" |
1e6feb95 | 11540 | TOOLKIT=MAC |
683dccda | 11541 | GUIDIST=MACX_DIST |
1e6feb95 | 11542 | fi |
10f2d63a | 11543 | |
1e6feb95 VZ |
11544 | if test "$wxUSE_PM" = 1; then |
11545 | TOOLKIT=PM | |
11546 | GUIDIST=GTK_DIST | |
11547 | fi | |
b4085ce6 | 11548 | |
3a922bb4 | 11549 | if test "$TOOLKIT" = "PM" ; then |
1e6feb95 | 11550 | TOOLKIT_DIR="os2" |
3a922bb4 RL |
11551 | else |
11552 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
1e6feb95 | 11553 | fi |
e07802fc | 11554 | |
3a922bb4 | 11555 | PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst" |
1e6feb95 | 11556 | |
3a922bb4 RL |
11557 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
11558 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
11559 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" | |
11560 | TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}" | |
11561 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" | |
11562 | WIDGET_SET=univ | |
f6bcfd97 | 11563 | else |
3a922bb4 | 11564 | ALL_OBJECTS="\$(GUIOBJS)" |
1e6feb95 VZ |
11565 | fi |
11566 | ||
ba0e650c | 11567 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" |
1e6feb95 VZ |
11568 | |
11569 | if test "$TOOLKIT" != "MSW"; then | |
11570 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" | |
11571 | fi | |
11572 | ||
11573 | if test "$wxUSE_HTML" = "yes"; then | |
11574 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
11575 | fi | |
3fcdd07b | 11576 | |
3a922bb4 RL |
11577 | if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then |
11578 | ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)" | |
831b3152 | 11579 | fi |
4f14bcd8 | 11580 | if test "$wxUSE_LIBJPEG" = "builtin" ; then |
2224580a | 11581 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" |
d9d8273d | 11582 | fi |
4f14bcd8 | 11583 | if test "$wxUSE_LIBTIFF" = "builtin" ; then |
d9d8273d RR |
11584 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" |
11585 | fi | |
4f14bcd8 | 11586 | if test "$wxUSE_LIBPNG" = "builtin" ; then |
d9d8273d RR |
11587 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" |
11588 | fi | |
4f14bcd8 | 11589 | if test "$wxUSE_FREETYPE" = "builtin" ; then |
3fed1840 RR |
11590 | ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)" |
11591 | fi | |
2224580a | 11592 | |
2224580a VZ |
11593 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" |
11594 | DISTDIR="wx\$(TOOLKIT)" | |
10f2d63a | 11595 | else |
dad6c0ea VZ |
11596 | USE_GUI=0 |
11597 | ||
3a922bb4 | 11598 | TOOLKIT_DIR="base" |
f6bcfd97 | 11599 | |
3a922bb4 RL |
11600 | if test "$USE_WIN32" = 1 ; then |
11601 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}" | |
11602 | TOOLKIT_VPATH="\${top_srcdir}/src/msw" | |
0b2effe9 | 11603 | |
3a922bb4 | 11604 | TOOLKIT="MSW" |
f6bcfd97 | 11605 | else |
3a922bb4 RL |
11606 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}" |
11607 | TOOLKIT_VPATH="\${top_srcdir}/src/unix" | |
f6bcfd97 BP |
11608 | fi |
11609 | ||
831b3152 | 11610 | PORT_FILES="\${top_srcdir}/src/files.lst" |
2224580a VZ |
11611 | |
11612 | GUIDIST="BASE_DIST" | |
11613 | DISTDIR="wxBase" | |
10f2d63a VZ |
11614 | fi |
11615 | ||
4f14bcd8 | 11616 | if test "$wxUSE_REGEX" = "builtin" ; then |
3a922bb4 RL |
11617 | ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)" |
11618 | fi | |
4f14bcd8 | 11619 | if test "$wxUSE_ZLIB" = "builtin" ; then |
3a922bb4 RL |
11620 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" |
11621 | fi | |
10f2d63a | 11622 | |
3a922bb4 | 11623 | if test "$wxUSE_OPENGL" = "yes"; then |
62d0491b RL |
11624 | if test "$wxUSE_MAC" = 1; then |
11625 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
11626 | else | |
570cb8cb | 11627 | |
62d0491b | 11628 | ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'` |
3a922bb4 | 11629 | echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6 |
94054c1d | 11630 | echo "configure:11631: checking for GL/gl.h" >&5 |
3a922bb4 RL |
11631 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11632 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11633 | else | |
11634 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 11635 | #line 11636 "configure" |
3a922bb4 RL |
11636 | #include "confdefs.h" |
11637 | #include <GL/gl.h> | |
11638 | EOF | |
11639 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
94054c1d | 11640 | { (eval echo configure:11641: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3a922bb4 RL |
11641 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11642 | if test -z "$ac_err"; then | |
11643 | rm -rf conftest* | |
11644 | eval "ac_cv_header_$ac_safe=yes" | |
11645 | else | |
11646 | echo "$ac_err" >&5 | |
11647 | echo "configure: failed program was:" >&5 | |
11648 | cat conftest.$ac_ext >&5 | |
11649 | rm -rf conftest* | |
11650 | eval "ac_cv_header_$ac_safe=no" | |
11651 | fi | |
11652 | rm -f conftest* | |
11653 | fi | |
11654 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11655 | echo "$ac_t""yes" 1>&6 | |
11656 | ||
1352efdf | 11657 | echo $ac_n "checking for -lGL""... $ac_c" 1>&6 |
94054c1d | 11658 | echo "configure:11659: checking for -lGL" >&5 |
57964555 | 11659 | |
62d0491b RL |
11660 | ac_find_libraries= |
11661 | for ac_dir in $SEARCH_LIB; | |
11662 | do | |
11663 | for ac_extension in a so sl dylib; do | |
11664 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
11665 | ac_find_libraries=$ac_dir | |
11666 | break 2 | |
11667 | fi | |
11668 | done | |
11669 | done | |
3a922bb4 | 11670 | |
62d0491b RL |
11671 | if test "$ac_find_libraries" != "" ; then |
11672 | ||
11673 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
11674 | result=$? | |
11675 | if test $result = 0; then | |
11676 | ac_path_to_link="" | |
11677 | else | |
11678 | ac_path_to_link=" -L$ac_find_libraries" | |
11679 | fi | |
3a922bb4 | 11680 | |
62d0491b RL |
11681 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" |
11682 | OPENGL_LIBS="-lGL -lGLU" | |
1352efdf | 11683 | echo "$ac_t""yes" 1>&6 |
62d0491b | 11684 | else |
1352efdf RL |
11685 | echo "$ac_t""no" 1>&6 |
11686 | echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6 | |
94054c1d | 11687 | echo "configure:11688: checking for -lMesaGL" >&5 |
62d0491b RL |
11688 | |
11689 | ac_find_libraries= | |
11690 | for ac_dir in $SEARCH_LIB; | |
11691 | do | |
11692 | for ac_extension in a so sl dylib; do | |
11693 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
11694 | ac_find_libraries=$ac_dir | |
11695 | break 2 | |
11696 | fi | |
11697 | done | |
11698 | done | |
3a922bb4 | 11699 | |
62d0491b | 11700 | if test "$ac_find_libraries" != "" ; then |
57964555 | 11701 | |
62d0491b RL |
11702 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
11703 | result=$? | |
11704 | if test $result = 0; then | |
11705 | ac_path_to_link="" | |
11706 | else | |
11707 | ac_path_to_link=" -L$ac_find_libraries" | |
11708 | fi | |
3a922bb4 | 11709 | |
62d0491b RL |
11710 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" |
11711 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
1352efdf RL |
11712 | echo "$ac_t""yes" 1>&6 |
11713 | else | |
11714 | echo "$ac_t""no" 1>&6 | |
62d0491b RL |
11715 | fi |
11716 | fi | |
11717 | ||
3a922bb4 RL |
11718 | else |
11719 | echo "$ac_t""no" 1>&6 | |
3a922bb4 RL |
11720 | fi |
11721 | ||
6f754473 | 11722 | |
62d0491b RL |
11723 | |
11724 | # AC_CHECK_HEADER(GL/gl.h, | |
11725 | # [ | |
11726 | # AC_CHECK_LIB(GL, glFlush, | |
11727 | # [ | |
11728 | # OPENGL_LIBS="-lGL -lGLU" | |
11729 | # ], | |
11730 | # [ | |
11731 | # AC_CHECK_LIB(MesaGL, glFlush, | |
11732 | # [ | |
11733 | # OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
11734 | # ], | |
11735 | # [], | |
11736 | # [-lm]) | |
11737 | # ], | |
11738 | # [-lm]) | |
11739 | # ]) | |
11740 | ||
11741 | if test "x$OPENGL_LIBS" = "x"; then | |
11742 | { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; } | |
11743 | fi | |
6f754473 | 11744 | fi |
6f754473 | 11745 | |
62d0491b RL |
11746 | if test "$wxUSE_OPENGL" = "yes"; then |
11747 | cat >> confdefs.h <<\EOF | |
6f754473 VZ |
11748 | #define wxUSE_OPENGL 1 |
11749 | EOF | |
11750 | ||
62d0491b | 11751 | cat >> confdefs.h <<\EOF |
6f754473 VZ |
11752 | #define wxUSE_GLCANVAS 1 |
11753 | EOF | |
11754 | ||
62d0491b RL |
11755 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl" |
11756 | fi | |
3a922bb4 RL |
11757 | fi |
11758 | ||
11759 | if test -z "$TOOLKIT_VPATH" ; then | |
11760 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" | |
11761 | fi | |
11762 | ||
11763 | if test -n "$TOOLKIT" ; then | |
11764 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
11765 | fi | |
11766 | ||
f676c7ff MB |
11767 | lib_unicode_suffix= |
11768 | if test "$wxUSE_UNICODE" = "yes"; then | |
11769 | lib_unicode_suffix=u | |
11770 | fi | |
11771 | ||
3a922bb4 RL |
11772 | lib_debug_suffix= |
11773 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
11774 | lib_debug_suffix=d | |
3a922bb4 RL |
11775 | fi |
11776 | ||
f676c7ff MB |
11777 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}" |
11778 | TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}" | |
3a922bb4 RL |
11779 | |
11780 | if test "$cross_compiling" = "yes"; then | |
11781 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}" | |
11782 | TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}" | |
11783 | fi | |
11784 | ||
11785 | WX_LIBRARY="wx_${TOOLCHAIN_NAME}" | |
11786 | WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}" | |
11787 | ||
3a922bb4 RL |
11788 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" |
11789 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
11790 | ||
11791 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}" | |
11792 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
11793 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}" | |
11794 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
11795 | ||
d08b457b | 11796 | WX_RESOURCES_MACOSX="lib${WX_LIBRARY}.rsrc" |
e23081de | 11797 | WX_RESOURCES_MACOSX_COMPILED="lib${WX_LIBRARY}.r" |
3a922bb4 | 11798 | |
978f1259 RL |
11799 | case "${host}" in |
11800 | *-*-cygwin* | *-*-mingw32* ) | |
11801 | ||
2da4f892 | 11802 | |
978f1259 RL |
11803 | |
11804 | if test "$cross_compiling" != "yes"; then | |
11805 | WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" | |
11806 | WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" | |
11807 | WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}" | |
11808 | WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
2da4f892 RL |
11809 | else |
11810 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
11811 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
978f1259 RL |
11812 | fi |
11813 | ||
11814 | esac | |
11815 | ||
11816 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
11817 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a" | |
11818 | ||
11819 | WXCONFIG_LIBS="-l${WX_LIBRARY}" | |
885d4bf5 | 11820 | WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a" |
978f1259 RL |
11821 | |
11822 | if test "$wxUSE_OPENGL" = "yes"; then | |
885d4bf5 VS |
11823 | WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}" |
11824 | WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}" | |
978f1259 RL |
11825 | fi |
11826 | ||
11827 | ||
3a922bb4 RL |
11828 | |
11829 | if test "$wxUSE_SHARED" = "yes"; then | |
55e80573 VZ |
11830 | |
11831 | if test "$wxUSE_OPENGL" = "yes"; then | |
11832 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
3a922bb4 | 11833 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}" |
55e80573 VZ |
11834 | else |
11835 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
3a922bb4 | 11836 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}" |
55e80573 VZ |
11837 | fi |
11838 | ||
dd4f7467 | 11839 | if test "$GCC" = "yes"; then |
55e80573 | 11840 | PIC_FLAG="-fPIC" |
dd4f7467 | 11841 | fi |
55e80573 VZ |
11842 | |
11843 | SHARED_LD="${CXX} -shared -o" | |
698dcdb6 | 11844 | |
10f2d63a VZ |
11845 | case "${host}" in |
11846 | *-hp-hpux* ) | |
55e80573 | 11847 | if test "$GCC" != "yes"; then |
3d63bc3a | 11848 | LDFLAGS="$LDFLAGS -L/usr/lib" |
f6bcfd97 | 11849 | |
10f2d63a VZ |
11850 | SHARED_LD="${CXX} -b -o" |
11851 | PIC_FLAG="+Z" | |
11852 | fi | |
55e80573 | 11853 | |
7b7a7637 RL |
11854 | if test "$wxUSE_OPENGL" = "yes"; then |
11855 | WX_ALL_INSTALLED="preinstall_gl" | |
11856 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" | |
11857 | else | |
11858 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" | |
11859 | fi | |
10f2d63a | 11860 | ;; |
b12915c1 | 11861 | |
55e80573 VZ |
11862 | *-*-linux* ) |
11863 | if test "$GCC" != "yes"; then | |
11864 | echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6 | |
94054c1d | 11865 | echo "configure:11866: checking for Intel compiler" >&5 |
55e80573 VZ |
11866 | if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then |
11867 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11868 | else | |
11869 | ||
11870 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 11871 | #line 11872 "configure" |
55e80573 VZ |
11872 | #include "confdefs.h" |
11873 | ||
11874 | int main() { | |
11875 | ||
11876 | #ifndef __INTEL_COMPILER | |
dd4f7467 | 11877 | #error Not icc |
55e80573 VZ |
11878 | #endif |
11879 | ||
11880 | ; return 0; } | |
11881 | EOF | |
94054c1d | 11882 | if { (eval echo configure:11883: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
55e80573 VZ |
11883 | rm -rf conftest* |
11884 | wx_cv_prog_icc=yes | |
11885 | else | |
11886 | echo "configure: failed program was:" >&5 | |
11887 | cat conftest.$ac_ext >&5 | |
11888 | rm -rf conftest* | |
11889 | wx_cv_prog_icc=no | |
11890 | ||
11891 | fi | |
11892 | rm -f conftest* | |
11893 | ||
11894 | fi | |
11895 | ||
11896 | echo "$ac_t""$wx_cv_prog_icc" 1>&6 | |
55e80573 VZ |
11897 | if test "$wx_cv_prog_icc" = "yes"; then |
11898 | PIC_FLAG="-KPIC" | |
11899 | fi | |
11900 | fi | |
11901 | ||
3a922bb4 RL |
11902 | if test "$wxUSE_SONAME" = "yes" ; then |
11903 | SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}" | |
11904 | SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}" | |
f6bcfd97 | 11905 | WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)" |
00cf1208 | 11906 | fi |
10f2d63a | 11907 | ;; |
55e80573 | 11908 | |
10f2d63a VZ |
11909 | *-*-solaris2* ) |
11910 | if test "$GCC" = yes ; then | |
f6bcfd97 | 11911 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" |
10f2d63a VZ |
11912 | else |
11913 | SHARED_LD="${CXX} -G -o" | |
11914 | PIC_FLAG="-KPIC" | |
7b7a7637 RL |
11915 | SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}" |
11916 | SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED}" | |
10f2d63a | 11917 | fi |
10f2d63a | 11918 | ;; |
55e80573 | 11919 | |
b4085ce6 | 11920 | *-*-darwin* ) |
3d63bc3a RL |
11921 | CFLAGS="$CFLAGS -fno-common" |
11922 | CXXFLAGS="$CXXFLAGS -fno-common" | |
11923 | SHARED_LD="$CXX -dynamiclib -o" | |
ea5999b9 | 11924 | PIC_FLAG="-dynamic -fPIC" |
10f2d63a | 11925 | ;; |
55e80573 | 11926 | |
10f2d63a VZ |
11927 | *-*-aix* ) |
11928 | SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o" | |
10f2d63a | 11929 | ;; |
55e80573 | 11930 | |
7b7a7637 | 11931 | *-*-cygwin* | *-*-mingw32* ) |
77e13408 | 11932 | |
2da4f892 | 11933 | WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a" |
77e13408 | 11934 | |
77e13408 | 11935 | SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o" |
00c81359 | 11936 | TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1" |
25d0687a RL |
11937 | |
11938 | PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1" | |
7b7a7637 RL |
11939 | |
11940 | if test "$wxUSE_OPENGL" = "yes"; then | |
f6bcfd97 | 11941 | WX_ALL_INSTALLED="preinstall_gl" |
978f1259 | 11942 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" |
f6bcfd97 | 11943 | else |
978f1259 | 11944 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" |
f6bcfd97 | 11945 | fi |
10f2d63a | 11946 | ;; |
55e80573 | 11947 | |
6fa882bd | 11948 | *-pc-os2_emx | *-pc-os2-emx ) |
7b7a7637 | 11949 | wxUSE_SHARED=no |
10f2d63a | 11950 | ;; |
55e80573 | 11951 | |
b12915c1 | 11952 | *-*-beos* ) |
e2b8b066 | 11953 | SHARED_LD="${LD} -shared -o" |
b12915c1 | 11954 | ;; |
55e80573 VZ |
11955 | |
11956 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ | |
11957 | *-*-sunos4* | \ | |
11958 | *-*-irix5* | *-*-irix6* | \ | |
11959 | *-*-osf* | \ | |
11960 | *-*-dgux5* | \ | |
11961 | *-*-sysv5* ) | |
11962 | ;; | |
11963 | ||
10f2d63a | 11964 | *) |
7b7a7637 | 11965 | { echo "configure: error: unknown system type $host." 1>&2; exit 1; } |
10f2d63a VZ |
11966 | esac |
11967 | ||
11968 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
11969 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
bdad4e7e | 11970 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" |
10f2d63a | 11971 | fi |
55e80573 | 11972 | |
3711412e | 11973 | WX_TARGET_LIBRARY_TYPE="so" |
885d4bf5 | 11974 | INSTALL_LIBRARY='$(INSTALL_PROGRAM)' |
3a922bb4 | 11975 | fi |
f6bcfd97 | 11976 | |
3a922bb4 | 11977 | if test "$wxUSE_SHARED" = "no"; then |
f6bcfd97 | 11978 | |
3a922bb4 | 11979 | if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then |
f6bcfd97 BP |
11980 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" |
11981 | fi | |
11982 | ||
6fa882bd RR |
11983 | if test "$wxUSE_MAC" = 1; then |
11984 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
11985 | fi | |
11986 | ||
3a922bb4 RL |
11987 | if test "$wxUSE_OPENGL" = "yes"; then |
11988 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl" | |
11989 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}" | |
11990 | else | |
11991 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}" | |
11992 | fi | |
698dcdb6 | 11993 | |
3a922bb4 RL |
11994 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" |
11995 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" | |
11996 | ||
11997 | WX_TARGET_LIBRARY_TYPE="a" | |
885d4bf5 | 11998 | INSTALL_LIBRARY='$(INSTALL_DATA)' |
10f2d63a | 11999 | fi |
10f2d63a | 12000 | |
d08b457b GD |
12001 | if test "$wxUSE_MAC" = 1; then |
12002 | WX_ALL="${WX_ALL} \$(build_libdir)/lib${WX_LIBRARY}.r" | |
e23081de | 12003 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res" |
d08b457b GD |
12004 | # Extract the first word of "Rez", so it can be a program name with args. |
12005 | set dummy Rez; ac_word=$2 | |
12006 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
94054c1d | 12007 | echo "configure:12008: checking for $ac_word" >&5 |
d08b457b GD |
12008 | if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then |
12009 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12010 | else | |
12011 | if test -n "$RESCOMP"; then | |
12012 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
12013 | else | |
12014 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
12015 | ac_dummy="$PATH" | |
12016 | for ac_dir in $ac_dummy; do | |
12017 | test -z "$ac_dir" && ac_dir=. | |
12018 | if test -f $ac_dir/$ac_word; then | |
12019 | ac_cv_prog_RESCOMP="Rez" | |
12020 | break | |
12021 | fi | |
12022 | done | |
12023 | IFS="$ac_save_ifs" | |
12024 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
12025 | fi | |
12026 | fi | |
12027 | RESCOMP="$ac_cv_prog_RESCOMP" | |
12028 | if test -n "$RESCOMP"; then | |
12029 | echo "$ac_t""$RESCOMP" 1>&6 | |
12030 | else | |
12031 | echo "$ac_t""no" 1>&6 | |
12032 | fi | |
12033 | ||
12034 | # Extract the first word of "Derez", so it can be a program name with args. | |
12035 | set dummy Derez; ac_word=$2 | |
12036 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
94054c1d | 12037 | echo "configure:12038: checking for $ac_word" >&5 |
d08b457b GD |
12038 | if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then |
12039 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12040 | else | |
12041 | if test -n "$DEREZ"; then | |
12042 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
12043 | else | |
12044 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
12045 | ac_dummy="$PATH" | |
12046 | for ac_dir in $ac_dummy; do | |
12047 | test -z "$ac_dir" && ac_dir=. | |
12048 | if test -f $ac_dir/$ac_word; then | |
12049 | ac_cv_prog_DEREZ="Derez" | |
12050 | break | |
12051 | fi | |
12052 | done | |
12053 | IFS="$ac_save_ifs" | |
12054 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/Derez" | |
12055 | fi | |
12056 | fi | |
12057 | DEREZ="$ac_cv_prog_DEREZ" | |
12058 | if test -n "$DEREZ"; then | |
12059 | echo "$ac_t""$DEREZ" 1>&6 | |
12060 | else | |
12061 | echo "$ac_t""no" 1>&6 | |
12062 | fi | |
12063 | ||
12064 | LIBWXMACRES="\$(top_builddir)/lib/lib${WX_LIBRARY}.r" | |
12065 | LIBWXMACRESCOMP="\$(RESCOMP) Carbon.r -t APPL ${LIBWXMACRES} -o \$(BIN_PROGRAM)" | |
e23081de | 12066 | LIBWXMACRESWXCONFIG="${RESCOMP} Carbon.r -t APPL \${prefix}/lib/${WX_RESOURCES_MACOSX_COMPILED} -o" |
d08b457b GD |
12067 | fi |
12068 | ||
3a922bb4 | 12069 | |
13c0541d GD |
12070 | if test "$wxUSE_MAC" != 1; then |
12071 | for ac_hdr in strings.h | |
9cfadba2 | 12072 | do |
698dcdb6 VZ |
12073 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12074 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
94054c1d | 12075 | echo "configure:12076: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
12076 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12077 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12078 | else | |
12079 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 12080 | #line 12081 "configure" |
9cfadba2 | 12081 | #include "confdefs.h" |
698dcdb6 VZ |
12082 | #include <$ac_hdr> |
12083 | EOF | |
12084 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
94054c1d | 12085 | { (eval echo configure:12086: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
12086 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12087 | if test -z "$ac_err"; then | |
12088 | rm -rf conftest* | |
12089 | eval "ac_cv_header_$ac_safe=yes" | |
6232543b | 12090 | else |
698dcdb6 VZ |
12091 | echo "$ac_err" >&5 |
12092 | echo "configure: failed program was:" >&5 | |
9cfadba2 | 12093 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
12094 | rm -rf conftest* |
12095 | eval "ac_cv_header_$ac_safe=no" | |
9cfadba2 | 12096 | fi |
698dcdb6 | 12097 | rm -f conftest* |
9cfadba2 | 12098 | fi |
698dcdb6 VZ |
12099 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12100 | echo "$ac_t""yes" 1>&6 | |
12101 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12102 | cat >> confdefs.h <<EOF | |
12103 | #define $ac_tr_hdr 1 | |
9cfadba2 | 12104 | EOF |
698dcdb6 VZ |
12105 | |
12106 | else | |
12107 | echo "$ac_t""no" 1>&6 | |
9cfadba2 VZ |
12108 | fi |
12109 | done | |
10f2d63a | 12110 | |
13c0541d GD |
12111 | fi |
12112 | ||
3a922bb4 | 12113 | for ac_hdr in stdlib.h |
10f2d63a | 12114 | do |
698dcdb6 VZ |
12115 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12116 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
94054c1d | 12117 | echo "configure:12118: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
12118 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12119 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12120 | else | |
12121 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 12122 | #line 12123 "configure" |
10f2d63a | 12123 | #include "confdefs.h" |
698dcdb6 VZ |
12124 | #include <$ac_hdr> |
12125 | EOF | |
12126 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
94054c1d | 12127 | { (eval echo configure:12128: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
12128 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12129 | if test -z "$ac_err"; then | |
12130 | rm -rf conftest* | |
12131 | eval "ac_cv_header_$ac_safe=yes" | |
6232543b | 12132 | else |
698dcdb6 VZ |
12133 | echo "$ac_err" >&5 |
12134 | echo "configure: failed program was:" >&5 | |
10f2d63a | 12135 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
12136 | rm -rf conftest* |
12137 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 12138 | fi |
698dcdb6 | 12139 | rm -f conftest* |
10f2d63a | 12140 | fi |
698dcdb6 VZ |
12141 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12142 | echo "$ac_t""yes" 1>&6 | |
12143 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12144 | cat >> confdefs.h <<EOF | |
12145 | #define $ac_tr_hdr 1 | |
10f2d63a | 12146 | EOF |
698dcdb6 VZ |
12147 | |
12148 | else | |
12149 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
12150 | fi |
12151 | done | |
12152 | ||
3a922bb4 | 12153 | for ac_hdr in unistd.h |
10f2d63a | 12154 | do |
698dcdb6 VZ |
12155 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12156 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
94054c1d | 12157 | echo "configure:12158: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
12158 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12159 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12160 | else | |
12161 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 12162 | #line 12163 "configure" |
10f2d63a | 12163 | #include "confdefs.h" |
698dcdb6 VZ |
12164 | #include <$ac_hdr> |
12165 | EOF | |
12166 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
94054c1d | 12167 | { (eval echo configure:12168: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
12168 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12169 | if test -z "$ac_err"; then | |
12170 | rm -rf conftest* | |
12171 | eval "ac_cv_header_$ac_safe=yes" | |
6f72b082 | 12172 | else |
698dcdb6 VZ |
12173 | echo "$ac_err" >&5 |
12174 | echo "configure: failed program was:" >&5 | |
6f72b082 | 12175 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
12176 | rm -rf conftest* |
12177 | eval "ac_cv_header_$ac_safe=no" | |
6f72b082 | 12178 | fi |
698dcdb6 | 12179 | rm -f conftest* |
6f72b082 | 12180 | fi |
698dcdb6 VZ |
12181 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12182 | echo "$ac_t""yes" 1>&6 | |
12183 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12184 | cat >> confdefs.h <<EOF | |
12185 | #define $ac_tr_hdr 1 | |
6f72b082 | 12186 | EOF |
698dcdb6 VZ |
12187 | |
12188 | else | |
12189 | echo "$ac_t""no" 1>&6 | |
6f72b082 OK |
12190 | fi |
12191 | done | |
12192 | ||
3a922bb4 | 12193 | for ac_hdr in wchar.h |
6f72b082 | 12194 | do |
698dcdb6 VZ |
12195 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12196 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
94054c1d | 12197 | echo "configure:12198: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
12198 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12199 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12200 | else | |
12201 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 12202 | #line 12203 "configure" |
6f72b082 | 12203 | #include "confdefs.h" |
698dcdb6 VZ |
12204 | #include <$ac_hdr> |
12205 | EOF | |
12206 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
94054c1d | 12207 | { (eval echo configure:12208: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
12208 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12209 | if test -z "$ac_err"; then | |
12210 | rm -rf conftest* | |
12211 | eval "ac_cv_header_$ac_safe=yes" | |
6f72b082 | 12212 | else |
698dcdb6 VZ |
12213 | echo "$ac_err" >&5 |
12214 | echo "configure: failed program was:" >&5 | |
6f72b082 | 12215 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
12216 | rm -rf conftest* |
12217 | eval "ac_cv_header_$ac_safe=no" | |
6f72b082 | 12218 | fi |
698dcdb6 | 12219 | rm -f conftest* |
6f72b082 | 12220 | fi |
698dcdb6 VZ |
12221 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12222 | echo "$ac_t""yes" 1>&6 | |
12223 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12224 | cat >> confdefs.h <<EOF | |
12225 | #define $ac_tr_hdr 1 | |
6f72b082 | 12226 | EOF |
698dcdb6 VZ |
12227 | |
12228 | else | |
12229 | echo "$ac_t""no" 1>&6 | |
6f72b082 OK |
12230 | fi |
12231 | done | |
12232 | ||
3a922bb4 | 12233 | for ac_hdr in wcstr.h |
6f72b082 | 12234 | do |
698dcdb6 VZ |
12235 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12236 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
94054c1d | 12237 | echo "configure:12238: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
12238 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12239 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12240 | else | |
12241 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 12242 | #line 12243 "configure" |
6f72b082 | 12243 | #include "confdefs.h" |
698dcdb6 VZ |
12244 | #include <$ac_hdr> |
12245 | EOF | |
12246 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
94054c1d | 12247 | { (eval echo configure:12248: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
12248 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12249 | if test -z "$ac_err"; then | |
12250 | rm -rf conftest* | |
12251 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 12252 | else |
698dcdb6 VZ |
12253 | echo "$ac_err" >&5 |
12254 | echo "configure: failed program was:" >&5 | |
10f2d63a | 12255 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
12256 | rm -rf conftest* |
12257 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 12258 | fi |
698dcdb6 | 12259 | rm -f conftest* |
10f2d63a | 12260 | fi |
698dcdb6 VZ |
12261 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12262 | echo "$ac_t""yes" 1>&6 | |
12263 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12264 | cat >> confdefs.h <<EOF | |
12265 | #define $ac_tr_hdr 1 | |
10f2d63a | 12266 | EOF |
698dcdb6 VZ |
12267 | |
12268 | else | |
12269 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
12270 | fi |
12271 | done | |
12272 | ||
0fbb762e | 12273 | for ac_hdr in wctype.h |
0fb0dd83 | 12274 | do |
698dcdb6 VZ |
12275 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12276 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
94054c1d | 12277 | echo "configure:12278: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
12278 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12279 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12280 | else | |
12281 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 12282 | #line 12283 "configure" |
0fb0dd83 | 12283 | #include "confdefs.h" |
698dcdb6 VZ |
12284 | #include <$ac_hdr> |
12285 | EOF | |
12286 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
94054c1d | 12287 | { (eval echo configure:12288: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
12288 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12289 | if test -z "$ac_err"; then | |
12290 | rm -rf conftest* | |
12291 | eval "ac_cv_header_$ac_safe=yes" | |
0fb0dd83 | 12292 | else |
698dcdb6 VZ |
12293 | echo "$ac_err" >&5 |
12294 | echo "configure: failed program was:" >&5 | |
0fb0dd83 | 12295 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
12296 | rm -rf conftest* |
12297 | eval "ac_cv_header_$ac_safe=no" | |
0fb0dd83 | 12298 | fi |
698dcdb6 | 12299 | rm -f conftest* |
0fb0dd83 | 12300 | fi |
698dcdb6 VZ |
12301 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12302 | echo "$ac_t""yes" 1>&6 | |
12303 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12304 | cat >> confdefs.h <<EOF | |
12305 | #define $ac_tr_hdr 1 | |
0fb0dd83 | 12306 | EOF |
698dcdb6 VZ |
12307 | |
12308 | else | |
12309 | echo "$ac_t""no" 1>&6 | |
0fb0dd83 RR |
12310 | fi |
12311 | done | |
12312 | ||
0fbb762e | 12313 | for ac_hdr in fnmatch.h |
1f8ae82f | 12314 | do |
698dcdb6 VZ |
12315 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12316 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
94054c1d | 12317 | echo "configure:12318: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
12318 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12319 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12320 | else | |
12321 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 12322 | #line 12323 "configure" |
1f8ae82f | 12323 | #include "confdefs.h" |
698dcdb6 VZ |
12324 | #include <$ac_hdr> |
12325 | EOF | |
12326 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
94054c1d | 12327 | { (eval echo configure:12328: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
12328 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12329 | if test -z "$ac_err"; then | |
12330 | rm -rf conftest* | |
12331 | eval "ac_cv_header_$ac_safe=yes" | |
1f8ae82f | 12332 | else |
698dcdb6 VZ |
12333 | echo "$ac_err" >&5 |
12334 | echo "configure: failed program was:" >&5 | |
1f8ae82f | 12335 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
12336 | rm -rf conftest* |
12337 | eval "ac_cv_header_$ac_safe=no" | |
1f8ae82f | 12338 | fi |
698dcdb6 | 12339 | rm -f conftest* |
1f8ae82f | 12340 | fi |
698dcdb6 VZ |
12341 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12342 | echo "$ac_t""yes" 1>&6 | |
12343 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12344 | cat >> confdefs.h <<EOF | |
12345 | #define $ac_tr_hdr 1 | |
1f8ae82f | 12346 | EOF |
698dcdb6 VZ |
12347 | |
12348 | else | |
12349 | echo "$ac_t""no" 1>&6 | |
1f8ae82f GD |
12350 | fi |
12351 | done | |
12352 | ||
0fbb762e | 12353 | for ac_hdr in iconv.h |
10f2d63a | 12354 | do |
698dcdb6 VZ |
12355 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12356 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
94054c1d | 12357 | echo "configure:12358: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
12358 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12359 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12360 | else | |
12361 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 12362 | #line 12363 "configure" |
10f2d63a | 12363 | #include "confdefs.h" |
698dcdb6 VZ |
12364 | #include <$ac_hdr> |
12365 | EOF | |
12366 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
94054c1d | 12367 | { (eval echo configure:12368: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
12368 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12369 | if test -z "$ac_err"; then | |
12370 | rm -rf conftest* | |
12371 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 12372 | else |
698dcdb6 VZ |
12373 | echo "$ac_err" >&5 |
12374 | echo "configure: failed program was:" >&5 | |
10f2d63a | 12375 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
12376 | rm -rf conftest* |
12377 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 12378 | fi |
698dcdb6 | 12379 | rm -f conftest* |
10f2d63a | 12380 | fi |
698dcdb6 VZ |
12381 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12382 | echo "$ac_t""yes" 1>&6 | |
12383 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12384 | cat >> confdefs.h <<EOF | |
12385 | #define $ac_tr_hdr 1 | |
10f2d63a | 12386 | EOF |
698dcdb6 VZ |
12387 | |
12388 | else | |
12389 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
12390 | fi |
12391 | done | |
12392 | ||
0fbb762e MB |
12393 | for ac_hdr in langinfo.h |
12394 | do | |
12395 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
12396 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
94054c1d | 12397 | echo "configure:12398: checking for $ac_hdr" >&5 |
0fbb762e MB |
12398 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12399 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12400 | else | |
12401 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 12402 | #line 12403 "configure" |
0fbb762e MB |
12403 | #include "confdefs.h" |
12404 | #include <$ac_hdr> | |
12405 | EOF | |
12406 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
94054c1d | 12407 | { (eval echo configure:12408: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
0fbb762e MB |
12408 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12409 | if test -z "$ac_err"; then | |
12410 | rm -rf conftest* | |
12411 | eval "ac_cv_header_$ac_safe=yes" | |
12412 | else | |
12413 | echo "$ac_err" >&5 | |
12414 | echo "configure: failed program was:" >&5 | |
12415 | cat conftest.$ac_ext >&5 | |
12416 | rm -rf conftest* | |
12417 | eval "ac_cv_header_$ac_safe=no" | |
12418 | fi | |
12419 | rm -f conftest* | |
12420 | fi | |
12421 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
12422 | echo "$ac_t""yes" 1>&6 | |
12423 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12424 | cat >> confdefs.h <<EOF | |
12425 | #define $ac_tr_hdr 1 | |
12426 | EOF | |
12427 | ||
12428 | else | |
12429 | echo "$ac_t""no" 1>&6 | |
12430 | fi | |
12431 | done | |
12432 | ||
10f2d63a | 12433 | |
3a922bb4 RL |
12434 | if test "$wxUSE_GUI" = "yes"; then |
12435 | if test "$wxUSE_UNIX" = "yes"; then | |
12436 | for ac_hdr in X11/XKBlib.h | |
29fd3c0c VS |
12437 | do |
12438 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
12439 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
94054c1d | 12440 | echo "configure:12441: checking for $ac_hdr" >&5 |
29fd3c0c VS |
12441 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12442 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12443 | else | |
12444 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 12445 | #line 12446 "configure" |
29fd3c0c VS |
12446 | #include "confdefs.h" |
12447 | #include <$ac_hdr> | |
12448 | EOF | |
12449 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
94054c1d | 12450 | { (eval echo configure:12451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
29fd3c0c VS |
12451 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12452 | if test -z "$ac_err"; then | |
12453 | rm -rf conftest* | |
12454 | eval "ac_cv_header_$ac_safe=yes" | |
12455 | else | |
12456 | echo "$ac_err" >&5 | |
12457 | echo "configure: failed program was:" >&5 | |
12458 | cat conftest.$ac_ext >&5 | |
12459 | rm -rf conftest* | |
12460 | eval "ac_cv_header_$ac_safe=no" | |
12461 | fi | |
12462 | rm -f conftest* | |
12463 | fi | |
12464 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
12465 | echo "$ac_t""yes" 1>&6 | |
12466 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12467 | cat >> confdefs.h <<EOF | |
12468 | #define $ac_tr_hdr 1 | |
12469 | EOF | |
12470 | ||
12471 | else | |
12472 | echo "$ac_t""no" 1>&6 | |
12473 | fi | |
12474 | done | |
12475 | ||
3a922bb4 | 12476 | fi |
29fd3c0c VS |
12477 | fi |
12478 | ||
698dcdb6 VZ |
12479 | |
12480 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | |
94054c1d | 12481 | echo "configure:12482: checking for ANSI C header files" >&5 |
698dcdb6 VZ |
12482 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
12483 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12484 | else |
698dcdb6 | 12485 | cat > conftest.$ac_ext <<EOF |
94054c1d | 12486 | #line 12487 "configure" |
10f2d63a VZ |
12487 | #include "confdefs.h" |
12488 | #include <stdlib.h> | |
12489 | #include <stdarg.h> | |
12490 | #include <string.h> | |
12491 | #include <float.h> | |
698dcdb6 VZ |
12492 | EOF |
12493 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
94054c1d | 12494 | { (eval echo configure:12495: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
12495 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12496 | if test -z "$ac_err"; then | |
12497 | rm -rf conftest* | |
10f2d63a VZ |
12498 | ac_cv_header_stdc=yes |
12499 | else | |
698dcdb6 VZ |
12500 | echo "$ac_err" >&5 |
12501 | echo "configure: failed program was:" >&5 | |
10f2d63a | 12502 | cat conftest.$ac_ext >&5 |
698dcdb6 | 12503 | rm -rf conftest* |
10f2d63a VZ |
12504 | ac_cv_header_stdc=no |
12505 | fi | |
698dcdb6 | 12506 | rm -f conftest* |
10f2d63a VZ |
12507 | |
12508 | if test $ac_cv_header_stdc = yes; then | |
12509 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
698dcdb6 | 12510 | cat > conftest.$ac_ext <<EOF |
94054c1d | 12511 | #line 12512 "configure" |
10f2d63a VZ |
12512 | #include "confdefs.h" |
12513 | #include <string.h> | |
698dcdb6 | 12514 | EOF |
10f2d63a VZ |
12515 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
12516 | egrep "memchr" >/dev/null 2>&1; then | |
12517 | : | |
12518 | else | |
698dcdb6 | 12519 | rm -rf conftest* |
10f2d63a VZ |
12520 | ac_cv_header_stdc=no |
12521 | fi | |
12522 | rm -f conftest* | |
12523 | ||
12524 | fi | |
12525 | ||
12526 | if test $ac_cv_header_stdc = yes; then | |
12527 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
698dcdb6 | 12528 | cat > conftest.$ac_ext <<EOF |
94054c1d | 12529 | #line 12530 "configure" |
10f2d63a VZ |
12530 | #include "confdefs.h" |
12531 | #include <stdlib.h> | |
698dcdb6 | 12532 | EOF |
10f2d63a VZ |
12533 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
12534 | egrep "free" >/dev/null 2>&1; then | |
12535 | : | |
12536 | else | |
698dcdb6 | 12537 | rm -rf conftest* |
10f2d63a VZ |
12538 | ac_cv_header_stdc=no |
12539 | fi | |
12540 | rm -f conftest* | |
12541 | ||
12542 | fi | |
12543 | ||
12544 | if test $ac_cv_header_stdc = yes; then | |
12545 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
698dcdb6 | 12546 | if test "$cross_compiling" = yes; then |
10f2d63a VZ |
12547 | : |
12548 | else | |
698dcdb6 | 12549 | cat > conftest.$ac_ext <<EOF |
94054c1d | 12550 | #line 12551 "configure" |
10f2d63a VZ |
12551 | #include "confdefs.h" |
12552 | #include <ctype.h> | |
698dcdb6 VZ |
12553 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
12554 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
1e487827 | 12555 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
698dcdb6 VZ |
12556 | int main () { int i; for (i = 0; i < 256; i++) |
12557 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
12558 | exit (0); } | |
12559 | ||
12560 | EOF | |
94054c1d | 12561 | if { (eval echo configure:12562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 12562 | then |
10f2d63a VZ |
12563 | : |
12564 | else | |
698dcdb6 VZ |
12565 | echo "configure: failed program was:" >&5 |
12566 | cat conftest.$ac_ext >&5 | |
12567 | rm -fr conftest* | |
12568 | ac_cv_header_stdc=no | |
10f2d63a | 12569 | fi |
698dcdb6 | 12570 | rm -fr conftest* |
10f2d63a | 12571 | fi |
698dcdb6 | 12572 | |
10f2d63a VZ |
12573 | fi |
12574 | fi | |
1e487827 | 12575 | |
698dcdb6 VZ |
12576 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
12577 | if test $ac_cv_header_stdc = yes; then | |
12578 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
12579 | #define STDC_HEADERS 1 |
12580 | EOF | |
12581 | ||
12582 | fi | |
12583 | ||
698dcdb6 | 12584 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
94054c1d | 12585 | echo "configure:12586: checking for mode_t" >&5 |
698dcdb6 VZ |
12586 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
12587 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 12588 | else |
698dcdb6 | 12589 | cat > conftest.$ac_ext <<EOF |
94054c1d | 12590 | #line 12591 "configure" |
1e487827 | 12591 | #include "confdefs.h" |
698dcdb6 VZ |
12592 | #include <sys/types.h> |
12593 | #if STDC_HEADERS | |
12594 | #include <stdlib.h> | |
12595 | #include <stddef.h> | |
12596 | #endif | |
12597 | EOF | |
12598 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12599 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
12600 | rm -rf conftest* | |
10f2d63a VZ |
12601 | ac_cv_type_mode_t=yes |
12602 | else | |
698dcdb6 VZ |
12603 | rm -rf conftest* |
12604 | ac_cv_type_mode_t=no | |
703e0a69 | 12605 | fi |
698dcdb6 | 12606 | rm -f conftest* |
1e487827 | 12607 | |
698dcdb6 VZ |
12608 | fi |
12609 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 | |
12610 | if test $ac_cv_type_mode_t = no; then | |
12611 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
12612 | #define mode_t int |
12613 | EOF | |
12614 | ||
12615 | fi | |
12616 | ||
698dcdb6 | 12617 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 |
94054c1d | 12618 | echo "configure:12619: checking for off_t" >&5 |
698dcdb6 VZ |
12619 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
12620 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12621 | else |
698dcdb6 | 12622 | cat > conftest.$ac_ext <<EOF |
94054c1d | 12623 | #line 12624 "configure" |
10f2d63a | 12624 | #include "confdefs.h" |
698dcdb6 VZ |
12625 | #include <sys/types.h> |
12626 | #if STDC_HEADERS | |
12627 | #include <stdlib.h> | |
12628 | #include <stddef.h> | |
12629 | #endif | |
12630 | EOF | |
12631 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12632 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
12633 | rm -rf conftest* | |
10f2d63a VZ |
12634 | ac_cv_type_off_t=yes |
12635 | else | |
698dcdb6 VZ |
12636 | rm -rf conftest* |
12637 | ac_cv_type_off_t=no | |
703e0a69 | 12638 | fi |
698dcdb6 | 12639 | rm -f conftest* |
1e487827 | 12640 | |
698dcdb6 VZ |
12641 | fi |
12642 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
12643 | if test $ac_cv_type_off_t = no; then | |
12644 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
12645 | #define off_t long |
12646 | EOF | |
12647 | ||
12648 | fi | |
12649 | ||
698dcdb6 | 12650 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
94054c1d | 12651 | echo "configure:12652: checking for pid_t" >&5 |
698dcdb6 VZ |
12652 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
12653 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12654 | else |
698dcdb6 | 12655 | cat > conftest.$ac_ext <<EOF |
94054c1d | 12656 | #line 12657 "configure" |
10f2d63a | 12657 | #include "confdefs.h" |
698dcdb6 VZ |
12658 | #include <sys/types.h> |
12659 | #if STDC_HEADERS | |
12660 | #include <stdlib.h> | |
12661 | #include <stddef.h> | |
12662 | #endif | |
12663 | EOF | |
12664 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12665 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
12666 | rm -rf conftest* | |
10f2d63a VZ |
12667 | ac_cv_type_pid_t=yes |
12668 | else | |
698dcdb6 VZ |
12669 | rm -rf conftest* |
12670 | ac_cv_type_pid_t=no | |
703e0a69 | 12671 | fi |
698dcdb6 | 12672 | rm -f conftest* |
1e487827 | 12673 | |
698dcdb6 VZ |
12674 | fi |
12675 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
12676 | if test $ac_cv_type_pid_t = no; then | |
12677 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
12678 | #define pid_t int |
12679 | EOF | |
12680 | ||
12681 | fi | |
12682 | ||
698dcdb6 | 12683 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
94054c1d | 12684 | echo "configure:12685: checking for size_t" >&5 |
698dcdb6 VZ |
12685 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
12686 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12687 | else |
698dcdb6 | 12688 | cat > conftest.$ac_ext <<EOF |
94054c1d | 12689 | #line 12690 "configure" |
10f2d63a | 12690 | #include "confdefs.h" |
698dcdb6 VZ |
12691 | #include <sys/types.h> |
12692 | #if STDC_HEADERS | |
12693 | #include <stdlib.h> | |
12694 | #include <stddef.h> | |
12695 | #endif | |
12696 | EOF | |
12697 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12698 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
12699 | rm -rf conftest* | |
10f2d63a VZ |
12700 | ac_cv_type_size_t=yes |
12701 | else | |
698dcdb6 VZ |
12702 | rm -rf conftest* |
12703 | ac_cv_type_size_t=no | |
703e0a69 | 12704 | fi |
698dcdb6 | 12705 | rm -f conftest* |
1e487827 | 12706 | |
698dcdb6 VZ |
12707 | fi |
12708 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
12709 | if test $ac_cv_type_size_t = no; then | |
12710 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
12711 | #define size_t unsigned |
12712 | EOF | |
12713 | ||
12714 | fi | |
12715 | ||
698dcdb6 | 12716 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
94054c1d | 12717 | echo "configure:12718: checking for uid_t in sys/types.h" >&5 |
698dcdb6 VZ |
12718 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
12719 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12720 | else |
698dcdb6 | 12721 | cat > conftest.$ac_ext <<EOF |
94054c1d | 12722 | #line 12723 "configure" |
10f2d63a VZ |
12723 | #include "confdefs.h" |
12724 | #include <sys/types.h> | |
698dcdb6 | 12725 | EOF |
10f2d63a VZ |
12726 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
12727 | egrep "uid_t" >/dev/null 2>&1; then | |
698dcdb6 | 12728 | rm -rf conftest* |
10f2d63a VZ |
12729 | ac_cv_type_uid_t=yes |
12730 | else | |
698dcdb6 | 12731 | rm -rf conftest* |
10f2d63a VZ |
12732 | ac_cv_type_uid_t=no |
12733 | fi | |
12734 | rm -f conftest* | |
12735 | ||
12736 | fi | |
1e487827 | 12737 | |
698dcdb6 VZ |
12738 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
12739 | if test $ac_cv_type_uid_t = no; then | |
12740 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
12741 | #define uid_t int |
12742 | EOF | |
12743 | ||
698dcdb6 | 12744 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
12745 | #define gid_t int |
12746 | EOF | |
12747 | ||
12748 | fi | |
12749 | ||
1e487827 | 12750 | |
698dcdb6 | 12751 | echo $ac_n "checking for wchar_t""... $ac_c" 1>&6 |
94054c1d | 12752 | echo "configure:12753: checking for wchar_t" >&5 |
698dcdb6 VZ |
12753 | if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then |
12754 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12755 | else | |
12756 | ||
12757 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 12758 | #line 12759 "configure" |
0046ff7c | 12759 | #include "confdefs.h" |
4b42290e GD |
12760 | |
12761 | #ifdef HAVE_WCHAR_H | |
0fbb762e MB |
12762 | # ifdef __CYGWIN__ |
12763 | # include <stddef.h> | |
12764 | # endif | |
4b42290e GD |
12765 | # include <wchar.h> |
12766 | #endif | |
12767 | #ifdef HAVE_STDLIB_H | |
12768 | # include <stdlib.h> | |
12769 | #endif | |
12770 | ||
698dcdb6 | 12771 | int main() { |
0046ff7c | 12772 | |
d836ee96 VZ |
12773 | wchar_t wc, *ws; |
12774 | wc = L'a'; | |
12775 | ws = L"Hello, world!"; | |
698dcdb6 VZ |
12776 | |
12777 | ; return 0; } | |
12778 | EOF | |
94054c1d | 12779 | if { (eval echo configure:12780: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 12780 | rm -rf conftest* |
1f8ae82f | 12781 | wx_cv_type_wchar_t=yes |
0046ff7c | 12782 | else |
698dcdb6 VZ |
12783 | echo "configure: failed program was:" >&5 |
12784 | cat conftest.$ac_ext >&5 | |
12785 | rm -rf conftest* | |
12786 | wx_cv_type_wchar_t=no | |
d836ee96 | 12787 | |
6232543b | 12788 | fi |
698dcdb6 | 12789 | rm -f conftest* |
703e0a69 | 12790 | |
1e487827 | 12791 | fi |
698dcdb6 VZ |
12792 | |
12793 | echo "$ac_t""$wx_cv_type_wchar_t" 1>&6 | |
d836ee96 VZ |
12794 | |
12795 | if test "$wx_cv_type_wchar_t" = "yes"; then | |
698dcdb6 | 12796 | cat >> confdefs.h <<\EOF |
0046ff7c VS |
12797 | #define wxUSE_WCHAR_T 1 |
12798 | EOF | |
12799 | ||
12800 | fi | |
12801 | ||
19af3b06 VZ |
12802 | |
12803 | ac_ext=C | |
12804 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
12805 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12806 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
12807 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12808 | cross_compiling=$ac_cv_prog_cxx_cross | |
12809 | ||
d836ee96 | 12810 | echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6 |
94054c1d | 12811 | echo "configure:12812: checking if size_t is unsigned int" >&5 |
d836ee96 VZ |
12812 | if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then |
12813 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12814 | else | |
dd2c8b7c | 12815 | cat > conftest.$ac_ext <<EOF |
94054c1d | 12816 | #line 12817 "configure" |
d836ee96 VZ |
12817 | #include "confdefs.h" |
12818 | #include <stddef.h> | |
12819 | int main() { | |
12820 | ||
dd2c8b7c VZ |
12821 | return 0; } |
12822 | ||
d836ee96 | 12823 | struct Foo { void foo(size_t); void foo(unsigned int); }; |
dd2c8b7c VZ |
12824 | |
12825 | int bar() { | |
d836ee96 VZ |
12826 | |
12827 | ; return 0; } | |
12828 | EOF | |
94054c1d | 12829 | if { (eval echo configure:12830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
d836ee96 VZ |
12830 | rm -rf conftest* |
12831 | wx_cv_size_t_is_uint=no | |
12832 | else | |
12833 | echo "configure: failed program was:" >&5 | |
12834 | cat conftest.$ac_ext >&5 | |
12835 | rm -rf conftest* | |
12836 | wx_cv_size_t_is_uint=yes | |
12837 | ||
12838 | fi | |
12839 | rm -f conftest* | |
12840 | ||
12841 | fi | |
12842 | ||
12843 | echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6 | |
12844 | ||
12845 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
12846 | cat >> confdefs.h <<\EOF | |
12847 | #define wxSIZE_T_IS_UINT 1 | |
12848 | EOF | |
12849 | ||
12850 | else | |
12851 | echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6 | |
94054c1d | 12852 | echo "configure:12853: checking if size_t is unsigned long" >&5 |
d836ee96 VZ |
12853 | if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then |
12854 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12855 | else | |
12856 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 12857 | #line 12858 "configure" |
d836ee96 VZ |
12858 | #include "confdefs.h" |
12859 | #include <stddef.h> | |
12860 | int main() { | |
12861 | ||
dd2c8b7c VZ |
12862 | return 0; } |
12863 | ||
d836ee96 | 12864 | struct Foo { void foo(size_t); void foo(unsigned long); }; |
dd2c8b7c VZ |
12865 | |
12866 | int bar() { | |
d836ee96 VZ |
12867 | |
12868 | ; return 0; } | |
12869 | EOF | |
94054c1d | 12870 | if { (eval echo configure:12871: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
d836ee96 VZ |
12871 | rm -rf conftest* |
12872 | wx_cv_size_t_is_ulong=no | |
12873 | else | |
12874 | echo "configure: failed program was:" >&5 | |
12875 | cat conftest.$ac_ext >&5 | |
12876 | rm -rf conftest* | |
12877 | wx_cv_size_t_is_ulong=yes | |
12878 | ||
12879 | fi | |
12880 | rm -f conftest* | |
12881 | ||
12882 | fi | |
12883 | ||
12884 | echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6 | |
12885 | ||
12886 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
12887 | cat >> confdefs.h <<\EOF | |
12888 | #define wxSIZE_T_IS_ULONG 1 | |
12889 | EOF | |
12890 | ||
12891 | fi | |
12892 | fi | |
12893 | ||
19af3b06 VZ |
12894 | ac_ext=c |
12895 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
12896 | ac_cpp='$CPP $CPPFLAGS' | |
12897 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
12898 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12899 | cross_compiling=$ac_cv_prog_cc_cross | |
12900 | ||
12901 | ||
1e487827 | 12902 | |
698dcdb6 | 12903 | echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6 |
94054c1d | 12904 | echo "configure:12905: checking for pw_gecos in struct passwd" >&5 |
698dcdb6 VZ |
12905 | if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then |
12906 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12907 | else | |
12908 | ||
12909 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 12910 | #line 12911 "configure" |
b12915c1 VZ |
12911 | #include "confdefs.h" |
12912 | #include <pwd.h> | |
698dcdb6 | 12913 | int main() { |
b12915c1 VZ |
12914 | |
12915 | char *p; | |
12916 | struct passwd *pw; | |
12917 | p = pw->pw_gecos; | |
698dcdb6 VZ |
12918 | |
12919 | ; return 0; } | |
12920 | EOF | |
94054c1d | 12921 | if { (eval echo configure:12922: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
12922 | rm -rf conftest* |
12923 | ||
b12915c1 | 12924 | wx_cv_struct_pw_gecos=yes |
698dcdb6 | 12925 | |
b12915c1 | 12926 | else |
698dcdb6 VZ |
12927 | echo "configure: failed program was:" >&5 |
12928 | cat conftest.$ac_ext >&5 | |
12929 | rm -rf conftest* | |
12930 | ||
b12915c1 | 12931 | wx_cv_struct_pw_gecos=no |
698dcdb6 VZ |
12932 | |
12933 | ||
6232543b | 12934 | fi |
698dcdb6 VZ |
12935 | rm -f conftest* |
12936 | ||
703e0a69 | 12937 | |
1e487827 | 12938 | fi |
698dcdb6 VZ |
12939 | |
12940 | echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6 | |
b12915c1 | 12941 | |
bd3277fe | 12942 | if test "$wx_cv_struct_pw_gecos" = "yes"; then |
698dcdb6 | 12943 | cat >> confdefs.h <<\EOF |
bd3277fe VZ |
12944 | #define HAVE_PW_GECOS 1 |
12945 | EOF | |
12946 | ||
12947 | fi | |
12948 | ||
698dcdb6 VZ |
12949 | |
12950 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
94054c1d | 12951 | echo "configure:12952: checking for working const" >&5 |
698dcdb6 VZ |
12952 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
12953 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12954 | else |
698dcdb6 | 12955 | cat > conftest.$ac_ext <<EOF |
94054c1d | 12956 | #line 12957 "configure" |
10f2d63a | 12957 | #include "confdefs.h" |
698dcdb6 VZ |
12958 | |
12959 | int main() { | |
12960 | ||
12961 | /* Ultrix mips cc rejects this. */ | |
94054c1d | 12962 | typedef int charset[2]; const charset x; |
698dcdb6 VZ |
12963 | /* SunOS 4.1.1 cc rejects this. */ |
12964 | char const *const *ccp; | |
12965 | char **p; | |
12966 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
12967 | struct point {int x, y;}; | |
12968 | static struct point const zero = {0,0}; | |
12969 | /* AIX XL C 1.02.0.0 rejects this. | |
12970 | It does not let you subtract one const X* pointer from another in an arm | |
12971 | of an if-expression whose if-part is not a constant expression */ | |
12972 | const char *g = "string"; | |
12973 | ccp = &g + (g ? g-g : 0); | |
12974 | /* HPUX 7.0 cc rejects these. */ | |
12975 | ++ccp; | |
12976 | p = (char**) ccp; | |
12977 | ccp = (char const *const *) p; | |
12978 | { /* SCO 3.2v4 cc rejects this. */ | |
12979 | char *t; | |
12980 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
12981 | ||
12982 | *t++ = 0; | |
10f2d63a | 12983 | } |
698dcdb6 VZ |
12984 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
12985 | int x[] = {25, 17}; | |
12986 | const int *foo = &x[0]; | |
12987 | ++foo; | |
703e0a69 | 12988 | } |
698dcdb6 VZ |
12989 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
12990 | typedef const int *iptr; | |
12991 | iptr p = 0; | |
12992 | ++p; | |
6232543b | 12993 | } |
698dcdb6 VZ |
12994 | { /* AIX XL C 1.02.0.0 rejects this saying |
12995 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
12996 | struct s { int j; const int *ap[3]; }; | |
12997 | struct s *b; b->j = 5; | |
1e487827 | 12998 | } |
698dcdb6 VZ |
12999 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
13000 | const int foo = 10; | |
13001 | } | |
4f14bcd8 GD |
13002 | |
13003 | ; return 0; } | |
698dcdb6 | 13004 | EOF |
94054c1d | 13005 | if { (eval echo configure:13006: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
13006 | rm -rf conftest* |
13007 | ac_cv_c_const=yes | |
698dcdb6 VZ |
13008 | else |
13009 | echo "configure: failed program was:" >&5 | |
13010 | cat conftest.$ac_ext >&5 | |
4f14bcd8 GD |
13011 | rm -rf conftest* |
13012 | ac_cv_c_const=no | |
703e0a69 | 13013 | fi |
4f14bcd8 | 13014 | rm -f conftest* |
698dcdb6 VZ |
13015 | fi |
13016 | ||
4f14bcd8 GD |
13017 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
13018 | if test $ac_cv_c_const = no; then | |
13019 | cat >> confdefs.h <<\EOF | |
13020 | #define const | |
698dcdb6 VZ |
13021 | EOF |
13022 | ||
4f14bcd8 | 13023 | fi |
698dcdb6 | 13024 | |
4f14bcd8 | 13025 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
94054c1d | 13026 | echo "configure:13027: checking for inline" >&5 |
4f14bcd8 | 13027 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
698dcdb6 | 13028 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 13029 | else |
4f14bcd8 GD |
13030 | ac_cv_c_inline=no |
13031 | for ac_kw in inline __inline__ __inline; do | |
698dcdb6 | 13032 | cat > conftest.$ac_ext <<EOF |
94054c1d | 13033 | #line 13034 "configure" |
10f2d63a | 13034 | #include "confdefs.h" |
4f14bcd8 GD |
13035 | |
13036 | int main() { | |
94054c1d | 13037 | } $ac_kw foo() { |
4f14bcd8 | 13038 | ; return 0; } |
698dcdb6 | 13039 | EOF |
94054c1d | 13040 | if { (eval echo configure:13041: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
13041 | rm -rf conftest* |
13042 | ac_cv_c_inline=$ac_kw; break | |
10f2d63a | 13043 | else |
698dcdb6 VZ |
13044 | echo "configure: failed program was:" >&5 |
13045 | cat conftest.$ac_ext >&5 | |
10f2d63a | 13046 | fi |
4f14bcd8 GD |
13047 | rm -f conftest* |
13048 | done | |
698dcdb6 | 13049 | |
10f2d63a | 13050 | fi |
4f14bcd8 GD |
13051 | |
13052 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | |
13053 | case "$ac_cv_c_inline" in | |
13054 | inline | yes) ;; | |
13055 | no) cat >> confdefs.h <<\EOF | |
13056 | #define inline | |
13057 | EOF | |
13058 | ;; | |
13059 | *) cat >> confdefs.h <<EOF | |
13060 | #define inline $ac_cv_c_inline | |
698dcdb6 | 13061 | EOF |
4f14bcd8 GD |
13062 | ;; |
13063 | esac | |
698dcdb6 VZ |
13064 | |
13065 | ||
4f14bcd8 | 13066 | echo $ac_n "checking size of char""... $ac_c" 1>&6 |
94054c1d | 13067 | echo "configure:13068: checking size of char" >&5 |
4f14bcd8 | 13068 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
698dcdb6 VZ |
13069 | echo $ac_n "(cached) $ac_c" 1>&6 |
13070 | else | |
13071 | if test "$cross_compiling" = yes; then | |
4f14bcd8 | 13072 | ac_cv_sizeof_char=1 |
698dcdb6 VZ |
13073 | else |
13074 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 13075 | #line 13076 "configure" |
698dcdb6 VZ |
13076 | #include "confdefs.h" |
13077 | #include <stdio.h> | |
94054c1d | 13078 | #include <sys/types.h> |
698dcdb6 VZ |
13079 | main() |
13080 | { | |
13081 | FILE *f=fopen("conftestval", "w"); | |
13082 | if (!f) exit(1); | |
4f14bcd8 | 13083 | fprintf(f, "%d\n", sizeof(char)); |
698dcdb6 VZ |
13084 | exit(0); |
13085 | } | |
13086 | EOF | |
94054c1d | 13087 | if { (eval echo configure:13088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 13088 | then |
4f14bcd8 | 13089 | ac_cv_sizeof_char=`cat conftestval` |
6232543b | 13090 | else |
698dcdb6 VZ |
13091 | echo "configure: failed program was:" >&5 |
13092 | cat conftest.$ac_ext >&5 | |
13093 | rm -fr conftest* | |
4f14bcd8 | 13094 | ac_cv_sizeof_char=0 |
6232543b | 13095 | fi |
698dcdb6 VZ |
13096 | rm -fr conftest* |
13097 | fi | |
13098 | ||
703e0a69 | 13099 | fi |
4f14bcd8 | 13100 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 |
698dcdb6 | 13101 | cat >> confdefs.h <<EOF |
4f14bcd8 | 13102 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
10f2d63a VZ |
13103 | EOF |
13104 | ||
1e487827 | 13105 | |
4f14bcd8 | 13106 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
94054c1d | 13107 | echo "configure:13108: checking size of short" >&5 |
4f14bcd8 | 13108 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
698dcdb6 VZ |
13109 | echo $ac_n "(cached) $ac_c" 1>&6 |
13110 | else | |
4f14bcd8 GD |
13111 | if test "$cross_compiling" = yes; then |
13112 | ac_cv_sizeof_short=2 | |
b93d0d08 | 13113 | else |
698dcdb6 | 13114 | cat > conftest.$ac_ext <<EOF |
94054c1d | 13115 | #line 13116 "configure" |
b93d0d08 | 13116 | #include "confdefs.h" |
4f14bcd8 | 13117 | #include <stdio.h> |
94054c1d | 13118 | #include <sys/types.h> |
4f14bcd8 GD |
13119 | main() |
13120 | { | |
13121 | FILE *f=fopen("conftestval", "w"); | |
13122 | if (!f) exit(1); | |
13123 | fprintf(f, "%d\n", sizeof(short)); | |
13124 | exit(0); | |
13125 | } | |
698dcdb6 | 13126 | EOF |
94054c1d | 13127 | if { (eval echo configure:13128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 13128 | then |
4f14bcd8 | 13129 | ac_cv_sizeof_short=`cat conftestval` |
b93d0d08 | 13130 | else |
698dcdb6 VZ |
13131 | echo "configure: failed program was:" >&5 |
13132 | cat conftest.$ac_ext >&5 | |
13133 | rm -fr conftest* | |
4f14bcd8 | 13134 | ac_cv_sizeof_short=0 |
b93d0d08 | 13135 | fi |
698dcdb6 | 13136 | rm -fr conftest* |
b93d0d08 VS |
13137 | fi |
13138 | ||
b93d0d08 | 13139 | fi |
4f14bcd8 | 13140 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
698dcdb6 | 13141 | cat >> confdefs.h <<EOF |
4f14bcd8 | 13142 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
b93d0d08 VS |
13143 | EOF |
13144 | ||
698dcdb6 | 13145 | |
4f14bcd8 | 13146 | echo $ac_n "checking size of int *""... $ac_c" 1>&6 |
94054c1d | 13147 | echo "configure:13148: checking size of int *" >&5 |
4f14bcd8 | 13148 | if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then |
698dcdb6 | 13149 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 13150 | else |
4f14bcd8 GD |
13151 | if test "$cross_compiling" = yes; then |
13152 | ac_cv_sizeof_int_p=4 | |
3a922bb4 | 13153 | else |
3a922bb4 | 13154 | cat > conftest.$ac_ext <<EOF |
94054c1d | 13155 | #line 13156 "configure" |
3a922bb4 | 13156 | #include "confdefs.h" |
4f14bcd8 | 13157 | #include <stdio.h> |
94054c1d | 13158 | #include <sys/types.h> |
4f14bcd8 GD |
13159 | main() |
13160 | { | |
13161 | FILE *f=fopen("conftestval", "w"); | |
13162 | if (!f) exit(1); | |
13163 | fprintf(f, "%d\n", sizeof(int *)); | |
13164 | exit(0); | |
13165 | } | |
13166 | EOF | |
94054c1d | 13167 | if { (eval echo configure:13168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
13168 | then |
13169 | ac_cv_sizeof_int_p=`cat conftestval` | |
13170 | else | |
13171 | echo "configure: failed program was:" >&5 | |
13172 | cat conftest.$ac_ext >&5 | |
13173 | rm -fr conftest* | |
13174 | ac_cv_sizeof_int_p=0 | |
3a922bb4 | 13175 | fi |
4f14bcd8 | 13176 | rm -fr conftest* |
3a922bb4 | 13177 | fi |
698dcdb6 | 13178 | |
4f14bcd8 GD |
13179 | fi |
13180 | echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6 | |
13181 | cat >> confdefs.h <<EOF | |
13182 | #define SIZEOF_INT_P $ac_cv_sizeof_int_p | |
10f2d63a VZ |
13183 | EOF |
13184 | ||
703e0a69 | 13185 | |
4f14bcd8 | 13186 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
94054c1d | 13187 | echo "configure:13188: checking size of int" >&5 |
4f14bcd8 | 13188 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
698dcdb6 | 13189 | echo $ac_n "(cached) $ac_c" 1>&6 |
4f14bcd8 GD |
13190 | else |
13191 | if test "$cross_compiling" = yes; then | |
13192 | ac_cv_sizeof_int=4 | |
698dcdb6 VZ |
13193 | else |
13194 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 13195 | #line 13196 "configure" |
10f2d63a | 13196 | #include "confdefs.h" |
4f14bcd8 | 13197 | #include <stdio.h> |
94054c1d | 13198 | #include <sys/types.h> |
4f14bcd8 GD |
13199 | main() |
13200 | { | |
13201 | FILE *f=fopen("conftestval", "w"); | |
13202 | if (!f) exit(1); | |
13203 | fprintf(f, "%d\n", sizeof(int)); | |
13204 | exit(0); | |
13205 | } | |
698dcdb6 | 13206 | EOF |
94054c1d | 13207 | if { (eval echo configure:13208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
13208 | then |
13209 | ac_cv_sizeof_int=`cat conftestval` | |
10f2d63a | 13210 | else |
698dcdb6 | 13211 | echo "configure: failed program was:" >&5 |
10f2d63a | 13212 | cat conftest.$ac_ext >&5 |
4f14bcd8 GD |
13213 | rm -fr conftest* |
13214 | ac_cv_sizeof_int=0 | |
10f2d63a | 13215 | fi |
4f14bcd8 | 13216 | rm -fr conftest* |
10f2d63a | 13217 | fi |
10f2d63a | 13218 | |
4f14bcd8 GD |
13219 | fi |
13220 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | |
13221 | cat >> confdefs.h <<EOF | |
13222 | #define SIZEOF_INT $ac_cv_sizeof_int | |
10f2d63a VZ |
13223 | EOF |
13224 | ||
698dcdb6 | 13225 | |
4f14bcd8 | 13226 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
94054c1d | 13227 | echo "configure:13228: checking size of long" >&5 |
4f14bcd8 | 13228 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
698dcdb6 VZ |
13229 | echo $ac_n "(cached) $ac_c" 1>&6 |
13230 | else | |
4f14bcd8 GD |
13231 | if test "$cross_compiling" = yes; then |
13232 | ac_cv_sizeof_long=4 | |
13233 | else | |
13234 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 13235 | #line 13236 "configure" |
10f2d63a | 13236 | #include "confdefs.h" |
4f14bcd8 | 13237 | #include <stdio.h> |
94054c1d | 13238 | #include <sys/types.h> |
4f14bcd8 GD |
13239 | main() |
13240 | { | |
13241 | FILE *f=fopen("conftestval", "w"); | |
13242 | if (!f) exit(1); | |
13243 | fprintf(f, "%d\n", sizeof(long)); | |
13244 | exit(0); | |
13245 | } | |
698dcdb6 | 13246 | EOF |
94054c1d | 13247 | if { (eval echo configure:13248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
13248 | then |
13249 | ac_cv_sizeof_long=`cat conftestval` | |
10f2d63a | 13250 | else |
698dcdb6 VZ |
13251 | echo "configure: failed program was:" >&5 |
13252 | cat conftest.$ac_ext >&5 | |
4f14bcd8 GD |
13253 | rm -fr conftest* |
13254 | ac_cv_sizeof_long=0 | |
10f2d63a | 13255 | fi |
4f14bcd8 | 13256 | rm -fr conftest* |
10f2d63a | 13257 | fi |
698dcdb6 | 13258 | |
4f14bcd8 GD |
13259 | fi |
13260 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 | |
13261 | cat >> confdefs.h <<EOF | |
13262 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
10f2d63a VZ |
13263 | EOF |
13264 | ||
698dcdb6 | 13265 | |
4f14bcd8 | 13266 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 |
94054c1d | 13267 | echo "configure:13268: checking size of long long" >&5 |
4f14bcd8 | 13268 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
698dcdb6 | 13269 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 13270 | else |
4f14bcd8 GD |
13271 | if test "$cross_compiling" = yes; then |
13272 | ac_cv_sizeof_long_long=0 | |
13273 | else | |
13274 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 13275 | #line 13276 "configure" |
10f2d63a | 13276 | #include "confdefs.h" |
4f14bcd8 | 13277 | #include <stdio.h> |
94054c1d | 13278 | #include <sys/types.h> |
4f14bcd8 GD |
13279 | main() |
13280 | { | |
13281 | FILE *f=fopen("conftestval", "w"); | |
13282 | if (!f) exit(1); | |
13283 | fprintf(f, "%d\n", sizeof(long long)); | |
13284 | exit(0); | |
13285 | } | |
698dcdb6 | 13286 | EOF |
94054c1d | 13287 | if { (eval echo configure:13288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
13288 | then |
13289 | ac_cv_sizeof_long_long=`cat conftestval` | |
698dcdb6 VZ |
13290 | else |
13291 | echo "configure: failed program was:" >&5 | |
13292 | cat conftest.$ac_ext >&5 | |
4f14bcd8 GD |
13293 | rm -fr conftest* |
13294 | ac_cv_sizeof_long_long=0 | |
13295 | fi | |
13296 | rm -fr conftest* | |
698dcdb6 | 13297 | fi |
698dcdb6 VZ |
13298 | |
13299 | fi | |
4f14bcd8 GD |
13300 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
13301 | cat >> confdefs.h <<EOF | |
13302 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
10f2d63a VZ |
13303 | EOF |
13304 | ||
10f2d63a | 13305 | |
4f14bcd8 GD |
13306 | |
13307 | echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6 | |
94054c1d | 13308 | echo "configure:13309: checking size of wchar_t" >&5 |
4f14bcd8 | 13309 | if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then |
698dcdb6 | 13310 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 13311 | else |
4f14bcd8 GD |
13312 | |
13313 | if test "$cross_compiling" = yes; then | |
13314 | wx_cv_sizeof_wchar_t=4 | |
13315 | ||
13316 | else | |
13317 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 13318 | #line 13319 "configure" |
10f2d63a | 13319 | #include "confdefs.h" |
698dcdb6 | 13320 | |
4f14bcd8 | 13321 | #ifdef HAVE_WCHAR_H |
0fbb762e MB |
13322 | # ifdef __CYGWIN__ |
13323 | # include <stddef.h> | |
13324 | # endif | |
4f14bcd8 GD |
13325 | # include <wchar.h> |
13326 | #endif | |
13327 | #ifdef HAVE_STDLIB_H | |
13328 | # include <stdlib.h> | |
13329 | #endif | |
13330 | #include <stdio.h> | |
13331 | int main() | |
13332 | { | |
13333 | FILE *f=fopen("conftestval", "w"); | |
13334 | if (!f) exit(1); | |
13335 | fprintf(f, "%i", sizeof(wchar_t)); | |
13336 | exit(0); | |
13337 | } | |
13338 | ||
698dcdb6 | 13339 | EOF |
94054c1d | 13340 | if { (eval echo configure:13341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
13341 | then |
13342 | wx_cv_sizeof_wchar_t=`cat conftestval` | |
698dcdb6 VZ |
13343 | else |
13344 | echo "configure: failed program was:" >&5 | |
13345 | cat conftest.$ac_ext >&5 | |
4f14bcd8 GD |
13346 | rm -fr conftest* |
13347 | wx_cv_sizeof_wchar_t=0 | |
698dcdb6 | 13348 | fi |
4f14bcd8 GD |
13349 | rm -fr conftest* |
13350 | fi | |
13351 | ||
698dcdb6 VZ |
13352 | |
13353 | fi | |
4f14bcd8 GD |
13354 | |
13355 | echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6 | |
13356 | ||
13357 | cat >> confdefs.h <<EOF | |
13358 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t | |
10f2d63a VZ |
13359 | EOF |
13360 | ||
18dbb1f6 | 13361 | |
4f14bcd8 | 13362 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
94054c1d | 13363 | echo "configure:13364: checking whether byte ordering is bigendian" >&5 |
4f14bcd8 | 13364 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
18dbb1f6 VZ |
13365 | echo $ac_n "(cached) $ac_c" 1>&6 |
13366 | else | |
4f14bcd8 GD |
13367 | ac_cv_c_bigendian=unknown |
13368 | # See if sys/param.h defines the BYTE_ORDER macro. | |
18dbb1f6 | 13369 | cat > conftest.$ac_ext <<EOF |
94054c1d | 13370 | #line 13371 "configure" |
18dbb1f6 | 13371 | #include "confdefs.h" |
4f14bcd8 GD |
13372 | #include <sys/types.h> |
13373 | #include <sys/param.h> | |
13374 | int main() { | |
18dbb1f6 | 13375 | |
4f14bcd8 GD |
13376 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
13377 | bogus endian macros | |
13378 | #endif | |
13379 | ; return 0; } | |
13380 | EOF | |
94054c1d | 13381 | if { (eval echo configure:13382: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
13382 | rm -rf conftest* |
13383 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
13384 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 13385 | #line 13386 "configure" |
4f14bcd8 GD |
13386 | #include "confdefs.h" |
13387 | #include <sys/types.h> | |
13388 | #include <sys/param.h> | |
18dbb1f6 | 13389 | int main() { |
4f14bcd8 GD |
13390 | |
13391 | #if BYTE_ORDER != BIG_ENDIAN | |
13392 | not big endian | |
13393 | #endif | |
18dbb1f6 VZ |
13394 | ; return 0; } |
13395 | EOF | |
94054c1d | 13396 | if { (eval echo configure:13397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
18dbb1f6 | 13397 | rm -rf conftest* |
4f14bcd8 | 13398 | ac_cv_c_bigendian=yes |
18dbb1f6 VZ |
13399 | else |
13400 | echo "configure: failed program was:" >&5 | |
13401 | cat conftest.$ac_ext >&5 | |
13402 | rm -rf conftest* | |
4f14bcd8 | 13403 | ac_cv_c_bigendian=no |
18dbb1f6 VZ |
13404 | fi |
13405 | rm -f conftest* | |
698dcdb6 | 13406 | else |
4f14bcd8 GD |
13407 | echo "configure: failed program was:" >&5 |
13408 | cat conftest.$ac_ext >&5 | |
1e487827 | 13409 | fi |
4f14bcd8 GD |
13410 | rm -f conftest* |
13411 | if test $ac_cv_c_bigendian = unknown; then | |
13412 | if test "$cross_compiling" = yes; then | |
13413 | ac_cv_c_bigendian=unknown | |
b3e8d00a VZ |
13414 | else |
13415 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 13416 | #line 13417 "configure" |
b3e8d00a | 13417 | #include "confdefs.h" |
4f14bcd8 GD |
13418 | main () { |
13419 | /* Are we little or big endian? From Harbison&Steele. */ | |
13420 | union | |
13421 | { | |
13422 | long l; | |
13423 | char c[sizeof (long)]; | |
13424 | } u; | |
13425 | u.l = 1; | |
13426 | exit (u.c[sizeof (long) - 1] == 1); | |
13427 | } | |
b3e8d00a | 13428 | EOF |
94054c1d | 13429 | if { (eval echo configure:13430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
13430 | then |
13431 | ac_cv_c_bigendian=no | |
b3e8d00a VZ |
13432 | else |
13433 | echo "configure: failed program was:" >&5 | |
13434 | cat conftest.$ac_ext >&5 | |
4f14bcd8 GD |
13435 | rm -fr conftest* |
13436 | ac_cv_c_bigendian=yes | |
b3e8d00a | 13437 | fi |
4f14bcd8 | 13438 | rm -fr conftest* |
b3e8d00a VZ |
13439 | fi |
13440 | ||
4f14bcd8 GD |
13441 | fi |
13442 | fi | |
13443 | ||
13444 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | |
13445 | if test $ac_cv_c_bigendian = unknown; then | |
13446 | 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 | |
13447 | fi | |
13448 | if test $ac_cv_c_bigendian = yes; then | |
13449 | cat >> confdefs.h <<\EOF | |
13450 | #define WORDS_BIGENDIAN 1 | |
b3e8d00a | 13451 | EOF |
4f14bcd8 | 13452 | |
b3e8d00a | 13453 | fi |
b3e8d00a VZ |
13454 | |
13455 | ||
4f14bcd8 | 13456 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 |
94054c1d | 13457 | echo "configure:13458: checking how to run the C++ preprocessor" >&5 |
4f14bcd8 GD |
13458 | if test -z "$CXXCPP"; then |
13459 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then | |
698dcdb6 VZ |
13460 | echo $ac_n "(cached) $ac_c" 1>&6 |
13461 | else | |
4f14bcd8 GD |
13462 | ac_ext=C |
13463 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
13464 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13465 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13466 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13467 | cross_compiling=$ac_cv_prog_cxx_cross | |
13468 | CXXCPP="${CXX-g++} -E" | |
698dcdb6 | 13469 | cat > conftest.$ac_ext <<EOF |
94054c1d | 13470 | #line 13471 "configure" |
10f2d63a | 13471 | #include "confdefs.h" |
4f14bcd8 | 13472 | #include <stdlib.h> |
698dcdb6 | 13473 | EOF |
4f14bcd8 | 13474 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
94054c1d | 13475 | { (eval echo configure:13476: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
13476 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13477 | if test -z "$ac_err"; then | |
13478 | : | |
698dcdb6 | 13479 | else |
4f14bcd8 | 13480 | echo "$ac_err" >&5 |
698dcdb6 VZ |
13481 | echo "configure: failed program was:" >&5 |
13482 | cat conftest.$ac_ext >&5 | |
13483 | rm -rf conftest* | |
4f14bcd8 | 13484 | CXXCPP=/lib/cpp |
698dcdb6 VZ |
13485 | fi |
13486 | rm -f conftest* | |
4f14bcd8 GD |
13487 | ac_cv_prog_CXXCPP="$CXXCPP" |
13488 | ac_ext=C | |
13489 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
13490 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13491 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13492 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13493 | cross_compiling=$ac_cv_prog_cxx_cross | |
13494 | fi | |
698dcdb6 | 13495 | fi |
4f14bcd8 GD |
13496 | CXXCPP="$ac_cv_prog_CXXCPP" |
13497 | echo "$ac_t""$CXXCPP" 1>&6 | |
698dcdb6 | 13498 | |
4f14bcd8 GD |
13499 | |
13500 | if test "$cross_compiling" = "yes"; then | |
13501 | cat >> confdefs.h <<\EOF | |
13502 | #define wxUSE_IOSTREAMH 1 | |
698dcdb6 VZ |
13503 | EOF |
13504 | ||
4f14bcd8 GD |
13505 | else |
13506 | ||
13507 | ac_ext=C | |
13508 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
13509 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13510 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13511 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13512 | cross_compiling=$ac_cv_prog_cxx_cross | |
698dcdb6 | 13513 | |
4f14bcd8 GD |
13514 | |
13515 | for ac_hdr in iostream | |
13516 | do | |
13517 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
13518 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
94054c1d | 13519 | echo "configure:13520: checking for $ac_hdr" >&5 |
4f14bcd8 | 13520 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
698dcdb6 VZ |
13521 | echo $ac_n "(cached) $ac_c" 1>&6 |
13522 | else | |
13523 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 13524 | #line 13525 "configure" |
10f2d63a | 13525 | #include "confdefs.h" |
4f14bcd8 | 13526 | #include <$ac_hdr> |
698dcdb6 | 13527 | EOF |
4f14bcd8 | 13528 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
94054c1d | 13529 | { (eval echo configure:13530: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
13530 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13531 | if test -z "$ac_err"; then | |
698dcdb6 | 13532 | rm -rf conftest* |
4f14bcd8 | 13533 | eval "ac_cv_header_$ac_safe=yes" |
698dcdb6 | 13534 | else |
4f14bcd8 | 13535 | echo "$ac_err" >&5 |
698dcdb6 VZ |
13536 | echo "configure: failed program was:" >&5 |
13537 | cat conftest.$ac_ext >&5 | |
13538 | rm -rf conftest* | |
4f14bcd8 | 13539 | eval "ac_cv_header_$ac_safe=no" |
698dcdb6 VZ |
13540 | fi |
13541 | rm -f conftest* | |
13542 | fi | |
4f14bcd8 | 13543 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
698dcdb6 | 13544 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
13545 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
13546 | cat >> confdefs.h <<EOF | |
13547 | #define $ac_tr_hdr 1 | |
10f2d63a | 13548 | EOF |
4f14bcd8 | 13549 | |
698dcdb6 VZ |
13550 | else |
13551 | echo "$ac_t""no" 1>&6 | |
10f2d63a | 13552 | fi |
4f14bcd8 | 13553 | done |
10f2d63a | 13554 | |
10f2d63a | 13555 | |
4f14bcd8 GD |
13556 | if test "$ac_cv_header_iostream" = "yes" ; then |
13557 | : | |
13558 | else | |
13559 | cat >> confdefs.h <<\EOF | |
13560 | #define wxUSE_IOSTREAMH 1 | |
13561 | EOF | |
13562 | ||
13563 | fi | |
1e487827 | 13564 | |
4f14bcd8 GD |
13565 | ac_ext=c |
13566 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
13567 | ac_cpp='$CPP $CPPFLAGS' | |
13568 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13569 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13570 | cross_compiling=$ac_cv_prog_cc_cross | |
698dcdb6 | 13571 | |
4f14bcd8 | 13572 | fi |
698dcdb6 VZ |
13573 | |
13574 | ||
13575 | ||
4f14bcd8 | 13576 | echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6 |
94054c1d | 13577 | echo "configure:13578: checking if C++ compiler supports bool" >&5 |
4f14bcd8 | 13578 | if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then |
698dcdb6 VZ |
13579 | echo $ac_n "(cached) $ac_c" 1>&6 |
13580 | else | |
13581 | ||
4f14bcd8 GD |
13582 | |
13583 | ac_ext=C | |
13584 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
13585 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13586 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13587 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13588 | cross_compiling=$ac_cv_prog_cxx_cross | |
f6bcfd97 | 13589 | |
10f2d63a | 13590 | |
4f14bcd8 | 13591 | cat > conftest.$ac_ext <<EOF |
94054c1d | 13592 | #line 13593 "configure" |
4f14bcd8 | 13593 | #include "confdefs.h" |
10f2d63a | 13594 | |
4f14bcd8 GD |
13595 | |
13596 | int main() { | |
f6bcfd97 | 13597 | |
4f14bcd8 | 13598 | bool b = true; |
f6bcfd97 | 13599 | |
4f14bcd8 GD |
13600 | return 0; |
13601 | ||
698dcdb6 VZ |
13602 | ; return 0; } |
13603 | EOF | |
94054c1d | 13604 | if { (eval echo configure:13605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
13605 | rm -rf conftest* |
13606 | ||
4f14bcd8 GD |
13607 | wx_cv_cpp_bool=yes |
13608 | ||
10f2d63a | 13609 | else |
698dcdb6 VZ |
13610 | echo "configure: failed program was:" >&5 |
13611 | cat conftest.$ac_ext >&5 | |
13612 | rm -rf conftest* | |
13613 | ||
4f14bcd8 GD |
13614 | wx_cv_cpp_bool=no |
13615 | ||
13616 | ||
13617 | fi | |
13618 | rm -f conftest* | |
c521c494 | 13619 | |
4f14bcd8 GD |
13620 | ac_ext=c |
13621 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
13622 | ac_cpp='$CPP $CPPFLAGS' | |
13623 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13624 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13625 | cross_compiling=$ac_cv_prog_cc_cross | |
c521c494 | 13626 | |
4f14bcd8 GD |
13627 | |
13628 | fi | |
c521c494 | 13629 | |
4f14bcd8 | 13630 | echo "$ac_t""$wx_cv_cpp_bool" 1>&6 |
c521c494 | 13631 | |
4f14bcd8 GD |
13632 | if test "$wx_cv_cpp_bool" = "yes"; then |
13633 | cat >> confdefs.h <<\EOF | |
13634 | #define HAVE_BOOL 1 | |
13635 | EOF | |
c521c494 | 13636 | |
4f14bcd8 GD |
13637 | fi |
13638 | ||
13639 | ||
13640 | ||
13641 | echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6 | |
94054c1d | 13642 | echo "configure:13643: checking for wcslen in -lc" >&5 |
4f14bcd8 GD |
13643 | ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'` |
13644 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13645 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13646 | else | |
13647 | ac_save_LIBS="$LIBS" | |
13648 | LIBS="-lc $LIBS" | |
13649 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 13650 | #line 13651 "configure" |
4f14bcd8 GD |
13651 | #include "confdefs.h" |
13652 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13653 | /* We use char because int might match the return type of a gcc2 | |
13654 | builtin and then its argument prototype would still apply. */ | |
13655 | char wcslen(); | |
13656 | ||
13657 | int main() { | |
13658 | wcslen() | |
698dcdb6 VZ |
13659 | ; return 0; } |
13660 | EOF | |
94054c1d | 13661 | if { (eval echo configure:13662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 13662 | rm -rf conftest* |
4f14bcd8 | 13663 | eval "ac_cv_lib_$ac_lib_var=yes" |
c521c494 | 13664 | else |
698dcdb6 VZ |
13665 | echo "configure: failed program was:" >&5 |
13666 | cat conftest.$ac_ext >&5 | |
13667 | rm -rf conftest* | |
4f14bcd8 | 13668 | eval "ac_cv_lib_$ac_lib_var=no" |
6232543b | 13669 | fi |
698dcdb6 | 13670 | rm -f conftest* |
4f14bcd8 | 13671 | LIBS="$ac_save_LIBS" |
703e0a69 | 13672 | |
1e487827 | 13673 | fi |
4f14bcd8 GD |
13674 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
13675 | echo "$ac_t""yes" 1>&6 | |
13676 | ||
13677 | cat >> confdefs.h <<\EOF | |
13678 | #define HAVE_WCSLEN 1 | |
9d8deca0 VZ |
13679 | EOF |
13680 | ||
3d63bc3a | 13681 | WCHAR_LINK= |
4f14bcd8 | 13682 | |
9d8deca0 | 13683 | else |
4f14bcd8 | 13684 | echo "$ac_t""no" 1>&6 |
9d8deca0 | 13685 | |
4f14bcd8 | 13686 | echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6 |
94054c1d | 13687 | echo "configure:13688: checking for wcslen in -lw" >&5 |
4f14bcd8 GD |
13688 | ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'` |
13689 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 | 13690 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 13691 | else |
4f14bcd8 GD |
13692 | ac_save_LIBS="$LIBS" |
13693 | LIBS="-lw $LIBS" | |
13694 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 13695 | #line 13696 "configure" |
10f2d63a | 13696 | #include "confdefs.h" |
4f14bcd8 GD |
13697 | /* Override any gcc2 internal prototype to avoid an error. */ |
13698 | /* We use char because int might match the return type of a gcc2 | |
13699 | builtin and then its argument prototype would still apply. */ | |
13700 | char wcslen(); | |
10f2d63a | 13701 | |
698dcdb6 | 13702 | int main() { |
4f14bcd8 | 13703 | wcslen() |
698dcdb6 VZ |
13704 | ; return 0; } |
13705 | EOF | |
94054c1d | 13706 | if { (eval echo configure:13707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 13707 | rm -rf conftest* |
4f14bcd8 | 13708 | eval "ac_cv_lib_$ac_lib_var=yes" |
10f2d63a | 13709 | else |
698dcdb6 VZ |
13710 | echo "configure: failed program was:" >&5 |
13711 | cat conftest.$ac_ext >&5 | |
13712 | rm -rf conftest* | |
4f14bcd8 | 13713 | eval "ac_cv_lib_$ac_lib_var=no" |
6232543b | 13714 | fi |
698dcdb6 | 13715 | rm -f conftest* |
4f14bcd8 | 13716 | LIBS="$ac_save_LIBS" |
703e0a69 | 13717 | |
1e487827 | 13718 | fi |
4f14bcd8 GD |
13719 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
13720 | echo "$ac_t""yes" 1>&6 | |
13721 | ||
13722 | cat >> confdefs.h <<\EOF | |
13723 | #define HAVE_WCSLEN 1 | |
9d8deca0 VZ |
13724 | EOF |
13725 | ||
3d63bc3a | 13726 | WCHAR_LINK=" -lw" |
4f14bcd8 GD |
13727 | |
13728 | else | |
13729 | echo "$ac_t""no" 1>&6 | |
698dcdb6 | 13730 | |
4f14bcd8 | 13731 | echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6 |
94054c1d | 13732 | echo "configure:13733: checking for wcslen in -lmsvcrt" >&5 |
4f14bcd8 GD |
13733 | ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'` |
13734 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 VZ |
13735 | echo $ac_n "(cached) $ac_c" 1>&6 |
13736 | else | |
4f14bcd8 GD |
13737 | ac_save_LIBS="$LIBS" |
13738 | LIBS="-lmsvcrt $LIBS" | |
13739 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 13740 | #line 13741 "configure" |
95c8801c | 13741 | #include "confdefs.h" |
4f14bcd8 GD |
13742 | /* Override any gcc2 internal prototype to avoid an error. */ |
13743 | /* We use char because int might match the return type of a gcc2 | |
13744 | builtin and then its argument prototype would still apply. */ | |
13745 | char wcslen(); | |
95c8801c | 13746 | |
4f14bcd8 GD |
13747 | int main() { |
13748 | wcslen() | |
698dcdb6 VZ |
13749 | ; return 0; } |
13750 | EOF | |
94054c1d | 13751 | if { (eval echo configure:13752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 13752 | rm -rf conftest* |
4f14bcd8 | 13753 | eval "ac_cv_lib_$ac_lib_var=yes" |
95c8801c | 13754 | else |
698dcdb6 VZ |
13755 | echo "configure: failed program was:" >&5 |
13756 | cat conftest.$ac_ext >&5 | |
13757 | rm -rf conftest* | |
4f14bcd8 | 13758 | eval "ac_cv_lib_$ac_lib_var=no" |
95c8801c | 13759 | fi |
698dcdb6 | 13760 | rm -f conftest* |
4f14bcd8 | 13761 | LIBS="$ac_save_LIBS" |
95c8801c VS |
13762 | |
13763 | fi | |
4f14bcd8 GD |
13764 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
13765 | echo "$ac_t""yes" 1>&6 | |
13766 | ||
13767 | cat >> confdefs.h <<\EOF | |
13768 | #define HAVE_WCSLEN 1 | |
13769 | EOF | |
698dcdb6 | 13770 | |
3d63bc3a | 13771 | WCHAR_LINK= |
4f14bcd8 GD |
13772 | |
13773 | else | |
13774 | echo "$ac_t""no" 1>&6 | |
13775 | fi | |
10f2d63a | 13776 | |
4f14bcd8 GD |
13777 | |
13778 | fi | |
95c8801c | 13779 | |
4f14bcd8 | 13780 | |
95c8801c | 13781 | fi |
10f2d63a | 13782 | |
1e487827 | 13783 | |
4f14bcd8 | 13784 | for ac_func in wcsrtombs |
eb4efbdc | 13785 | do |
698dcdb6 | 13786 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
94054c1d | 13787 | echo "configure:13788: checking for $ac_func" >&5 |
698dcdb6 VZ |
13788 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13789 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13790 | else | |
13791 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 13792 | #line 13793 "configure" |
eb4efbdc VZ |
13793 | #include "confdefs.h" |
13794 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13795 | which can conflict with char $ac_func(); below. */ |
eb4efbdc VZ |
13796 | #include <assert.h> |
13797 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13798 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13799 | builtin and then its argument prototype would still apply. */ |
13800 | char $ac_func(); | |
13801 | ||
13802 | int main() { | |
eb4efbdc VZ |
13803 | |
13804 | /* The GNU C library defines this for functions which it implements | |
13805 | to always fail with ENOSYS. Some functions are actually named | |
13806 | something starting with __ and the normal name is an alias. */ | |
13807 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13808 | choke me | |
13809 | #else | |
698dcdb6 | 13810 | $ac_func(); |
eb4efbdc VZ |
13811 | #endif |
13812 | ||
698dcdb6 | 13813 | ; return 0; } |
eb4efbdc | 13814 | EOF |
94054c1d | 13815 | if { (eval echo configure:13816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13816 | rm -rf conftest* |
13817 | eval "ac_cv_func_$ac_func=yes" | |
13818 | else | |
13819 | echo "configure: failed program was:" >&5 | |
13820 | cat conftest.$ac_ext >&5 | |
13821 | rm -rf conftest* | |
13822 | eval "ac_cv_func_$ac_func=no" | |
13823 | fi | |
13824 | rm -f conftest* | |
13825 | fi | |
eb4efbdc | 13826 | |
698dcdb6 VZ |
13827 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
13828 | echo "$ac_t""yes" 1>&6 | |
13829 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13830 | cat >> confdefs.h <<EOF | |
13831 | #define $ac_tr_func 1 | |
13832 | EOF | |
13833 | ||
13834 | else | |
13835 | echo "$ac_t""no" 1>&6 | |
eb4efbdc VZ |
13836 | fi |
13837 | done | |
13838 | ||
698dcdb6 | 13839 | |
4f14bcd8 | 13840 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 |
94054c1d | 13841 | echo "configure:13842: checking for vprintf" >&5 |
4f14bcd8 | 13842 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
698dcdb6 VZ |
13843 | echo $ac_n "(cached) $ac_c" 1>&6 |
13844 | else | |
4f14bcd8 | 13845 | cat > conftest.$ac_ext <<EOF |
94054c1d | 13846 | #line 13847 "configure" |
f6bcfd97 | 13847 | #include "confdefs.h" |
4f14bcd8 GD |
13848 | /* System header to define __stub macros and hopefully few prototypes, |
13849 | which can conflict with char vprintf(); below. */ | |
13850 | #include <assert.h> | |
13851 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13852 | /* We use char because int might match the return type of a gcc2 | |
13853 | builtin and then its argument prototype would still apply. */ | |
13854 | char vprintf(); | |
13855 | ||
698dcdb6 | 13856 | int main() { |
f6bcfd97 | 13857 | |
4f14bcd8 GD |
13858 | /* The GNU C library defines this for functions which it implements |
13859 | to always fail with ENOSYS. Some functions are actually named | |
13860 | something starting with __ and the normal name is an alias. */ | |
13861 | #if defined (__stub_vprintf) || defined (__stub___vprintf) | |
13862 | choke me | |
13863 | #else | |
13864 | vprintf(); | |
13865 | #endif | |
f6bcfd97 | 13866 | |
698dcdb6 VZ |
13867 | ; return 0; } |
13868 | EOF | |
94054c1d | 13869 | if { (eval echo configure:13870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 13870 | rm -rf conftest* |
4f14bcd8 | 13871 | eval "ac_cv_func_vprintf=yes" |
f6bcfd97 | 13872 | else |
698dcdb6 VZ |
13873 | echo "configure: failed program was:" >&5 |
13874 | cat conftest.$ac_ext >&5 | |
13875 | rm -rf conftest* | |
4f14bcd8 | 13876 | eval "ac_cv_func_vprintf=no" |
6232543b | 13877 | fi |
698dcdb6 | 13878 | rm -f conftest* |
1e487827 | 13879 | fi |
698dcdb6 | 13880 | |
4f14bcd8 GD |
13881 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then |
13882 | echo "$ac_t""yes" 1>&6 | |
13883 | cat >> confdefs.h <<\EOF | |
13884 | #define HAVE_VPRINTF 1 | |
f6bcfd97 BP |
13885 | EOF |
13886 | ||
4f14bcd8 GD |
13887 | else |
13888 | echo "$ac_t""no" 1>&6 | |
eb4efbdc VZ |
13889 | fi |
13890 | ||
4f14bcd8 GD |
13891 | if test "$ac_cv_func_vprintf" != yes; then |
13892 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | |
94054c1d | 13893 | echo "configure:13894: checking for _doprnt" >&5 |
4f14bcd8 | 13894 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
698dcdb6 VZ |
13895 | echo $ac_n "(cached) $ac_c" 1>&6 |
13896 | else | |
13897 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 13898 | #line 13899 "configure" |
10f2d63a VZ |
13899 | #include "confdefs.h" |
13900 | /* System header to define __stub macros and hopefully few prototypes, | |
4f14bcd8 | 13901 | which can conflict with char _doprnt(); below. */ |
10f2d63a VZ |
13902 | #include <assert.h> |
13903 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13904 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 13905 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 13906 | char _doprnt(); |
698dcdb6 VZ |
13907 | |
13908 | int main() { | |
10f2d63a VZ |
13909 | |
13910 | /* The GNU C library defines this for functions which it implements | |
13911 | to always fail with ENOSYS. Some functions are actually named | |
13912 | something starting with __ and the normal name is an alias. */ | |
4f14bcd8 | 13913 | #if defined (__stub__doprnt) || defined (__stub____doprnt) |
10f2d63a VZ |
13914 | choke me |
13915 | #else | |
4f14bcd8 | 13916 | _doprnt(); |
10f2d63a VZ |
13917 | #endif |
13918 | ||
698dcdb6 | 13919 | ; return 0; } |
10f2d63a | 13920 | EOF |
94054c1d | 13921 | if { (eval echo configure:13922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 13922 | rm -rf conftest* |
4f14bcd8 | 13923 | eval "ac_cv_func__doprnt=yes" |
698dcdb6 VZ |
13924 | else |
13925 | echo "configure: failed program was:" >&5 | |
13926 | cat conftest.$ac_ext >&5 | |
13927 | rm -rf conftest* | |
4f14bcd8 | 13928 | eval "ac_cv_func__doprnt=no" |
698dcdb6 VZ |
13929 | fi |
13930 | rm -f conftest* | |
13931 | fi | |
270a909e | 13932 | |
4f14bcd8 | 13933 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then |
698dcdb6 | 13934 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
13935 | cat >> confdefs.h <<\EOF |
13936 | #define HAVE_DOPRNT 1 | |
698dcdb6 | 13937 | EOF |
4f14bcd8 | 13938 | |
698dcdb6 VZ |
13939 | else |
13940 | echo "$ac_t""no" 1>&6 | |
270a909e | 13941 | fi |
270a909e | 13942 | |
4f14bcd8 | 13943 | fi |
1e487827 | 13944 | |
52e8b690 | 13945 | |
52e8b690 | 13946 | |
52e8b690 | 13947 | |
52e8b690 | 13948 | |
52e8b690 | 13949 | |
4f14bcd8 | 13950 | echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6 |
94054c1d | 13951 | echo "configure:13952: checking for vsnprintf" >&5 |
4f14bcd8 | 13952 | if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then |
698dcdb6 | 13953 | echo $ac_n "(cached) $ac_c" 1>&6 |
c63c7106 | 13954 | else |
4f14bcd8 | 13955 | |
af15babd | 13956 | cat > conftest.$ac_ext <<EOF |
94054c1d | 13957 | #line 13958 "configure" |
c63c7106 | 13958 | #include "confdefs.h" |
698dcdb6 | 13959 | |
4f14bcd8 GD |
13960 | #include <stdio.h> |
13961 | #include <stdarg.h> | |
13962 | ||
af15babd VZ |
13963 | int main() { |
13964 | ||
4f14bcd8 GD |
13965 | int wx_test_vsnprintf(const char *, ...); |
13966 | ||
13967 | wx_test_vsnprintf("%s"); | |
13968 | return 0; | |
13969 | } | |
13970 | ||
13971 | int wx_test_vsnprintf(const char *fmt, ...) | |
13972 | { | |
13973 | char *s; | |
13974 | ||
13975 | va_list argp; | |
13976 | va_start(argp, fmt); | |
13977 | vsnprintf(s, 42, fmt, argp); | |
13978 | va_end(argp); | |
13979 | ||
af15babd VZ |
13980 | ; return 0; } |
13981 | EOF | |
94054c1d | 13982 | if { (eval echo configure:13983: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd VZ |
13983 | rm -rf conftest* |
13984 | ||
4f14bcd8 GD |
13985 | wx_cv_func_vsnprintf=yes |
13986 | ||
af15babd VZ |
13987 | else |
13988 | echo "configure: failed program was:" >&5 | |
13989 | cat conftest.$ac_ext >&5 | |
13990 | rm -rf conftest* | |
13991 | ||
4f14bcd8 | 13992 | cat > conftest.$ac_ext <<EOF |
94054c1d | 13993 | #line 13994 "configure" |
af15babd | 13994 | #include "confdefs.h" |
af15babd | 13995 | |
4f14bcd8 GD |
13996 | #include <stdio.h> |
13997 | #include <stdarg.h> | |
13998 | ||
af15babd VZ |
13999 | int main() { |
14000 | ||
4f14bcd8 GD |
14001 | int wx_test_vsnprintf(const char *, ...); |
14002 | ||
14003 | wx_test_vsnprintf("%s"); | |
14004 | return 0; | |
14005 | } | |
14006 | ||
14007 | int wx_test_vsnprintf(const char *fmt, ...) | |
14008 | { | |
14009 | char *s; | |
af15babd | 14010 | |
4f14bcd8 GD |
14011 | va_list argp; |
14012 | va_start(argp, fmt); | |
14013 | _vsnprintf(s, 42, fmt, argp); | |
14014 | va_end(argp); | |
14015 | ||
af15babd VZ |
14016 | ; return 0; } |
14017 | EOF | |
94054c1d | 14018 | if { (eval echo configure:14019: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd | 14019 | rm -rf conftest* |
4f14bcd8 GD |
14020 | |
14021 | wx_cv_func_vsnprintf=yes | |
14022 | ||
af15babd VZ |
14023 | else |
14024 | echo "configure: failed program was:" >&5 | |
14025 | cat conftest.$ac_ext >&5 | |
14026 | rm -rf conftest* | |
4f14bcd8 GD |
14027 | |
14028 | wx_cv_func_vsnprintf=no | |
14029 | ||
af15babd VZ |
14030 | fi |
14031 | rm -f conftest* | |
4f14bcd8 | 14032 | |
af15babd | 14033 | fi |
4f14bcd8 | 14034 | rm -f conftest* |
af15babd | 14035 | |
af15babd | 14036 | fi |
af15babd | 14037 | |
4f14bcd8 | 14038 | echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6 |
af15babd | 14039 | |
4f14bcd8 GD |
14040 | if test "$wx_cv_func_vsnprintf" = yes; then |
14041 | cat >> confdefs.h <<\EOF | |
14042 | #define HAVE_VSNPRINTF 1 | |
14043 | EOF | |
14044 | ||
14045 | else | |
14046 | echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2 | |
af15babd VZ |
14047 | fi |
14048 | ||
4f14bcd8 | 14049 | echo $ac_n "checking for vsscanf""... $ac_c" 1>&6 |
94054c1d | 14050 | echo "configure:14051: checking for vsscanf" >&5 |
4f14bcd8 | 14051 | if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then |
af15babd VZ |
14052 | echo $ac_n "(cached) $ac_c" 1>&6 |
14053 | else | |
4f14bcd8 | 14054 | |
af15babd | 14055 | cat > conftest.$ac_ext <<EOF |
94054c1d | 14056 | #line 14057 "configure" |
af15babd | 14057 | #include "confdefs.h" |
af15babd | 14058 | |
4f14bcd8 GD |
14059 | #include <stdio.h> |
14060 | #include <stdarg.h> | |
14061 | ||
af15babd VZ |
14062 | int main() { |
14063 | ||
4f14bcd8 GD |
14064 | int wx_test_vsscanf(const char *, ...); |
14065 | ||
14066 | wx_test_vsscanf("%d"); | |
14067 | return 0; | |
14068 | } | |
af15babd | 14069 | |
4f14bcd8 GD |
14070 | int wx_test_vsscanf(const char *fmt, ...) |
14071 | { | |
14072 | va_list argp; | |
14073 | va_start(argp, fmt); | |
14074 | vsscanf("42", fmt, argp); | |
14075 | va_end(argp); | |
14076 | ||
af15babd VZ |
14077 | ; return 0; } |
14078 | EOF | |
94054c1d | 14079 | if { (eval echo configure:14080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd | 14080 | rm -rf conftest* |
4f14bcd8 GD |
14081 | |
14082 | wx_cv_func_vsscanf=yes | |
14083 | ||
af15babd VZ |
14084 | else |
14085 | echo "configure: failed program was:" >&5 | |
14086 | cat conftest.$ac_ext >&5 | |
14087 | rm -rf conftest* | |
4f14bcd8 GD |
14088 | |
14089 | wx_cv_func_vsscanf=no | |
14090 | ||
af15babd VZ |
14091 | fi |
14092 | rm -f conftest* | |
4f14bcd8 | 14093 | |
af15babd VZ |
14094 | fi |
14095 | ||
4f14bcd8 GD |
14096 | echo "$ac_t""$wx_cv_func_vsscanf" 1>&6 |
14097 | ||
14098 | if test "$wx_cv_func_vsscanf" = yes; then | |
14099 | cat >> confdefs.h <<\EOF | |
14100 | #define HAVE_VSSCANF 1 | |
af15babd | 14101 | EOF |
4f14bcd8 | 14102 | |
af15babd | 14103 | fi |
af15babd | 14104 | |
4f14bcd8 | 14105 | if test "$TOOLKIT" != "MSW"; then |
af15babd | 14106 | |
4f14bcd8 GD |
14107 | |
14108 | ||
14109 | ac_ext=C | |
14110 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14111 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14112 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14113 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14114 | cross_compiling=$ac_cv_prog_cxx_cross | |
14115 | ||
14116 | echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6 | |
94054c1d | 14117 | echo "configure:14118: checking if iconv() takes char**" >&5 |
4f14bcd8 | 14118 | if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then |
af15babd VZ |
14119 | echo $ac_n "(cached) $ac_c" 1>&6 |
14120 | else | |
4f14bcd8 GD |
14121 | |
14122 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 14123 | #line 14124 "configure" |
af15babd | 14124 | #include "confdefs.h" |
4f14bcd8 | 14125 | #include <iconv.h> |
af15babd VZ |
14126 | int main() { |
14127 | ||
4f14bcd8 GD |
14128 | char **inbuf, **outbuf; |
14129 | iconv_t cd; | |
14130 | size_t insz, outsz; | |
14131 | iconv(cd, inbuf, &insz, outbuf, &outsz); | |
14132 | ||
af15babd VZ |
14133 | ; return 0; } |
14134 | EOF | |
94054c1d | 14135 | if { (eval echo configure:14136: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd | 14136 | rm -rf conftest* |
4f14bcd8 | 14137 | wx_cv_iconv_takes_char=yes |
af15babd VZ |
14138 | else |
14139 | echo "configure: failed program was:" >&5 | |
14140 | cat conftest.$ac_ext >&5 | |
14141 | rm -rf conftest* | |
4f14bcd8 | 14142 | wx_cv_iconv_takes_char=no |
af15babd VZ |
14143 | fi |
14144 | rm -f conftest* | |
af15babd | 14145 | |
af15babd | 14146 | fi |
af15babd | 14147 | |
4f14bcd8 GD |
14148 | echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6 |
14149 | ac_ext=c | |
14150 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14151 | ac_cpp='$CPP $CPPFLAGS' | |
14152 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14153 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14154 | cross_compiling=$ac_cv_prog_cc_cross | |
af15babd | 14155 | |
4f14bcd8 GD |
14156 | if test "$wx_cv_iconv_takes_char" = yes ; then |
14157 | cat >> confdefs.h <<\EOF | |
14158 | #define WX_ICONV_TAKES_CHAR 1 | |
af15babd VZ |
14159 | EOF |
14160 | ||
af15babd VZ |
14161 | fi |
14162 | ||
af15babd | 14163 | |
4f14bcd8 GD |
14164 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
14165 | for ac_func in sigaction | |
af15babd VZ |
14166 | do |
14167 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
94054c1d | 14168 | echo "configure:14169: checking for $ac_func" >&5 |
af15babd VZ |
14169 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14170 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14171 | else | |
14172 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 14173 | #line 14174 "configure" |
af15babd VZ |
14174 | #include "confdefs.h" |
14175 | /* System header to define __stub macros and hopefully few prototypes, | |
14176 | which can conflict with char $ac_func(); below. */ | |
14177 | #include <assert.h> | |
14178 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14179 | /* We use char because int might match the return type of a gcc2 | |
14180 | builtin and then its argument prototype would still apply. */ | |
14181 | char $ac_func(); | |
14182 | ||
14183 | int main() { | |
14184 | ||
14185 | /* The GNU C library defines this for functions which it implements | |
14186 | to always fail with ENOSYS. Some functions are actually named | |
14187 | something starting with __ and the normal name is an alias. */ | |
14188 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14189 | choke me | |
14190 | #else | |
14191 | $ac_func(); | |
14192 | #endif | |
14193 | ||
14194 | ; return 0; } | |
14195 | EOF | |
94054c1d | 14196 | if { (eval echo configure:14197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
14197 | rm -rf conftest* |
14198 | eval "ac_cv_func_$ac_func=yes" | |
14199 | else | |
14200 | echo "configure: failed program was:" >&5 | |
14201 | cat conftest.$ac_ext >&5 | |
14202 | rm -rf conftest* | |
14203 | eval "ac_cv_func_$ac_func=no" | |
14204 | fi | |
14205 | rm -f conftest* | |
14206 | fi | |
14207 | ||
14208 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
14209 | echo "$ac_t""yes" 1>&6 | |
14210 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14211 | cat >> confdefs.h <<EOF | |
14212 | #define $ac_tr_func 1 | |
14213 | EOF | |
4f14bcd8 | 14214 | |
af15babd VZ |
14215 | else |
14216 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 GD |
14217 | fi |
14218 | done | |
14219 | ||
14220 | ||
14221 | if test "$ac_cv_func_sigaction" = "no"; then | |
14222 | echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2 | |
14223 | wxUSE_ON_FATAL_EXCEPTION=no | |
14224 | fi | |
14225 | ||
14226 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
14227 | ||
14228 | ac_ext=C | |
14229 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14230 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14231 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14232 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14233 | cross_compiling=$ac_cv_prog_cxx_cross | |
14234 | ||
14235 | ||
14236 | echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6 | |
94054c1d | 14237 | echo "configure:14238: checking for sa_handler type" >&5 |
4f14bcd8 | 14238 | if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then |
af15babd VZ |
14239 | echo $ac_n "(cached) $ac_c" 1>&6 |
14240 | else | |
4f14bcd8 GD |
14241 | |
14242 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 14243 | #line 14244 "configure" |
af15babd | 14244 | #include "confdefs.h" |
4f14bcd8 | 14245 | #include <signal.h> |
af15babd | 14246 | int main() { |
4f14bcd8 GD |
14247 | |
14248 | extern void testSigHandler(int); | |
14249 | ||
14250 | struct sigaction sa; | |
14251 | sa.sa_handler = testSigHandler; | |
14252 | ||
af15babd VZ |
14253 | ; return 0; } |
14254 | EOF | |
94054c1d | 14255 | if { (eval echo configure:14256: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd | 14256 | rm -rf conftest* |
4f14bcd8 GD |
14257 | |
14258 | wx_cv_type_sa_handler=int | |
14259 | ||
af15babd VZ |
14260 | else |
14261 | echo "configure: failed program was:" >&5 | |
14262 | cat conftest.$ac_ext >&5 | |
14263 | rm -rf conftest* | |
4f14bcd8 GD |
14264 | |
14265 | wx_cv_type_sa_handler=void | |
14266 | ||
af15babd VZ |
14267 | fi |
14268 | rm -f conftest* | |
4f14bcd8 GD |
14269 | |
14270 | fi | |
14271 | ||
14272 | echo "$ac_t""$wx_cv_type_sa_handler" 1>&6 | |
14273 | ||
14274 | ac_ext=c | |
14275 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14276 | ac_cpp='$CPP $CPPFLAGS' | |
14277 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14278 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14279 | cross_compiling=$ac_cv_prog_cc_cross | |
af15babd | 14280 | |
4f14bcd8 GD |
14281 | |
14282 | cat >> confdefs.h <<EOF | |
14283 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler | |
af15babd VZ |
14284 | EOF |
14285 | ||
4f14bcd8 GD |
14286 | fi |
14287 | fi | |
af15babd | 14288 | |
4f14bcd8 | 14289 | for ac_func in vfork |
af15babd VZ |
14290 | do |
14291 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
94054c1d | 14292 | echo "configure:14293: checking for $ac_func" >&5 |
af15babd VZ |
14293 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14294 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14295 | else | |
14296 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 14297 | #line 14298 "configure" |
af15babd VZ |
14298 | #include "confdefs.h" |
14299 | /* System header to define __stub macros and hopefully few prototypes, | |
14300 | which can conflict with char $ac_func(); below. */ | |
14301 | #include <assert.h> | |
14302 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14303 | /* We use char because int might match the return type of a gcc2 | |
14304 | builtin and then its argument prototype would still apply. */ | |
14305 | char $ac_func(); | |
14306 | ||
14307 | int main() { | |
14308 | ||
14309 | /* The GNU C library defines this for functions which it implements | |
14310 | to always fail with ENOSYS. Some functions are actually named | |
14311 | something starting with __ and the normal name is an alias. */ | |
14312 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14313 | choke me | |
14314 | #else | |
14315 | $ac_func(); | |
14316 | #endif | |
14317 | ||
14318 | ; return 0; } | |
14319 | EOF | |
94054c1d | 14320 | if { (eval echo configure:14321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
14321 | rm -rf conftest* |
14322 | eval "ac_cv_func_$ac_func=yes" | |
14323 | else | |
14324 | echo "configure: failed program was:" >&5 | |
14325 | cat conftest.$ac_ext >&5 | |
14326 | rm -rf conftest* | |
14327 | eval "ac_cv_func_$ac_func=no" | |
14328 | fi | |
14329 | rm -f conftest* | |
14330 | fi | |
14331 | ||
14332 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
14333 | echo "$ac_t""yes" 1>&6 | |
14334 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14335 | cat >> confdefs.h <<EOF | |
14336 | #define $ac_tr_func 1 | |
14337 | EOF | |
4f14bcd8 | 14338 | |
af15babd VZ |
14339 | else |
14340 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
14341 | fi |
14342 | done | |
14343 | ||
af15babd | 14344 | |
4f14bcd8 | 14345 | echo $ac_n "checking for statfs""... $ac_c" 1>&6 |
94054c1d | 14346 | echo "configure:14347: checking for statfs" >&5 |
4f14bcd8 GD |
14347 | if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then |
14348 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14349 | else | |
14350 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 14351 | #line 14352 "configure" |
4f14bcd8 GD |
14352 | #include "confdefs.h" |
14353 | ||
14354 | #if defined(__BSD__) | |
14355 | #include <sys/param.h> | |
14356 | #include <sys/mount.h> | |
14357 | #else | |
14358 | #include <sys/vfs.h> | |
14359 | #endif | |
14360 | ||
14361 | int main() { | |
14362 | ||
14363 | long l; | |
14364 | struct statfs fs; | |
14365 | statfs("/", &fs); | |
14366 | l = fs.f_bsize; | |
14367 | l += fs.f_blocks; | |
14368 | l += fs.f_bavail; | |
14369 | ||
14370 | ; return 0; } | |
14371 | EOF | |
94054c1d | 14372 | if { (eval echo configure:14373: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
14373 | rm -rf conftest* |
14374 | ||
14375 | wx_cv_func_statfs=yes | |
14376 | ||
14377 | else | |
14378 | echo "configure: failed program was:" >&5 | |
14379 | cat conftest.$ac_ext >&5 | |
14380 | rm -rf conftest* | |
14381 | ||
14382 | wx_cv_func_statfs=no | |
af15babd VZ |
14383 | |
14384 | ||
14385 | fi | |
4f14bcd8 | 14386 | rm -f conftest* |
af15babd VZ |
14387 | |
14388 | fi | |
14389 | ||
4f14bcd8 GD |
14390 | echo "$ac_t""$wx_cv_func_statfs" 1>&6 |
14391 | ||
14392 | if test "$wx_cv_func_statfs" = "yes"; then | |
14393 | cat >> confdefs.h <<\EOF | |
14394 | #define HAVE_STATFS 1 | |
14395 | EOF | |
14396 | ||
14397 | else | |
14398 | echo $ac_n "checking for statvfs""... $ac_c" 1>&6 | |
94054c1d | 14399 | echo "configure:14400: checking for statvfs" >&5 |
4f14bcd8 | 14400 | if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then |
af15babd VZ |
14401 | echo $ac_n "(cached) $ac_c" 1>&6 |
14402 | else | |
14403 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 14404 | #line 14405 "configure" |
af15babd | 14405 | #include "confdefs.h" |
af15babd | 14406 | |
4f14bcd8 GD |
14407 | #include <sys/statvfs.h> |
14408 | ||
af15babd VZ |
14409 | int main() { |
14410 | ||
4f14bcd8 GD |
14411 | long l; |
14412 | struct statvfs fs; | |
14413 | statvfs("/", &fs); | |
14414 | l = fs.f_bsize; | |
14415 | l += fs.f_blocks; | |
14416 | l += fs.f_bavail; | |
14417 | ||
af15babd VZ |
14418 | ; return 0; } |
14419 | EOF | |
94054c1d | 14420 | if { (eval echo configure:14421: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd | 14421 | rm -rf conftest* |
4f14bcd8 GD |
14422 | |
14423 | wx_cv_func_statvfs=yes | |
14424 | ||
af15babd VZ |
14425 | else |
14426 | echo "configure: failed program was:" >&5 | |
14427 | cat conftest.$ac_ext >&5 | |
14428 | rm -rf conftest* | |
4f14bcd8 GD |
14429 | |
14430 | wx_cv_func_statvfs=no | |
14431 | ||
14432 | ||
af15babd VZ |
14433 | fi |
14434 | rm -f conftest* | |
4f14bcd8 | 14435 | |
af15babd VZ |
14436 | fi |
14437 | ||
4f14bcd8 | 14438 | echo "$ac_t""$wx_cv_func_statvfs" 1>&6 |
af15babd | 14439 | |
4f14bcd8 GD |
14440 | if test "$wx_cv_func_statvfs" = "yes"; then |
14441 | cat >> confdefs.h <<\EOF | |
14442 | #define HAVE_STATVFS 1 | |
14443 | EOF | |
af15babd | 14444 | |
4f14bcd8 GD |
14445 | else |
14446 | echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2 | |
14447 | fi | |
14448 | fi | |
af15babd | 14449 | |
4f14bcd8 GD |
14450 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
14451 | for ac_func in fcntl flock | |
af15babd VZ |
14452 | do |
14453 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
94054c1d | 14454 | echo "configure:14455: checking for $ac_func" >&5 |
af15babd VZ |
14455 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14456 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14457 | else | |
14458 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 14459 | #line 14460 "configure" |
af15babd VZ |
14460 | #include "confdefs.h" |
14461 | /* System header to define __stub macros and hopefully few prototypes, | |
14462 | which can conflict with char $ac_func(); below. */ | |
14463 | #include <assert.h> | |
14464 | /* Override any gcc2 internal prototype to avoid an error. */ | |
af15babd VZ |
14465 | /* We use char because int might match the return type of a gcc2 |
14466 | builtin and then its argument prototype would still apply. */ | |
14467 | char $ac_func(); | |
14468 | ||
14469 | int main() { | |
14470 | ||
14471 | /* The GNU C library defines this for functions which it implements | |
14472 | to always fail with ENOSYS. Some functions are actually named | |
14473 | something starting with __ and the normal name is an alias. */ | |
14474 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14475 | choke me | |
14476 | #else | |
14477 | $ac_func(); | |
14478 | #endif | |
14479 | ||
14480 | ; return 0; } | |
14481 | EOF | |
94054c1d | 14482 | if { (eval echo configure:14483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
14483 | rm -rf conftest* |
14484 | eval "ac_cv_func_$ac_func=yes" | |
14485 | else | |
14486 | echo "configure: failed program was:" >&5 | |
14487 | cat conftest.$ac_ext >&5 | |
14488 | rm -rf conftest* | |
14489 | eval "ac_cv_func_$ac_func=no" | |
14490 | fi | |
14491 | rm -f conftest* | |
14492 | fi | |
14493 | ||
14494 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
14495 | echo "$ac_t""yes" 1>&6 | |
14496 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14497 | cat >> confdefs.h <<EOF | |
14498 | #define $ac_tr_func 1 | |
14499 | EOF | |
4f14bcd8 | 14500 | break |
af15babd VZ |
14501 | else |
14502 | echo "$ac_t""no" 1>&6 | |
14503 | fi | |
14504 | done | |
14505 | ||
14506 | ||
4f14bcd8 GD |
14507 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then |
14508 | echo "configure: warning: wxSingleInstanceChecker not available" 1>&2 | |
14509 | wxUSE_SNGLINST_CHECKER=no | |
14510 | fi | |
14511 | fi | |
af15babd | 14512 | |
4f14bcd8 | 14513 | for ac_func in timegm |
af15babd VZ |
14514 | do |
14515 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
94054c1d | 14516 | echo "configure:14517: checking for $ac_func" >&5 |
af15babd VZ |
14517 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14518 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14519 | else | |
14520 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 14521 | #line 14522 "configure" |
af15babd VZ |
14522 | #include "confdefs.h" |
14523 | /* System header to define __stub macros and hopefully few prototypes, | |
14524 | which can conflict with char $ac_func(); below. */ | |
14525 | #include <assert.h> | |
14526 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14527 | /* We use char because int might match the return type of a gcc2 | |
14528 | builtin and then its argument prototype would still apply. */ | |
14529 | char $ac_func(); | |
14530 | ||
698dcdb6 | 14531 | int main() { |
698dcdb6 | 14532 | |
af15babd VZ |
14533 | /* The GNU C library defines this for functions which it implements |
14534 | to always fail with ENOSYS. Some functions are actually named | |
14535 | something starting with __ and the normal name is an alias. */ | |
14536 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14537 | choke me | |
14538 | #else | |
14539 | $ac_func(); | |
14540 | #endif | |
14541 | ||
698dcdb6 VZ |
14542 | ; return 0; } |
14543 | EOF | |
94054c1d | 14544 | if { (eval echo configure:14545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 14545 | rm -rf conftest* |
af15babd | 14546 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
14547 | else |
14548 | echo "configure: failed program was:" >&5 | |
14549 | cat conftest.$ac_ext >&5 | |
14550 | rm -rf conftest* | |
af15babd | 14551 | eval "ac_cv_func_$ac_func=no" |
1e487827 | 14552 | fi |
9952adac | 14553 | rm -f conftest* |
af15babd | 14554 | fi |
703e0a69 | 14555 | |
af15babd VZ |
14556 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
14557 | echo "$ac_t""yes" 1>&6 | |
14558 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
4f14bcd8 GD |
14559 | cat >> confdefs.h <<EOF |
14560 | #define $ac_tr_func 1 | |
14561 | EOF | |
14562 | ||
14563 | else | |
14564 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
14565 | fi |
14566 | done | |
14567 | ||
14568 | ||
4f14bcd8 | 14569 | for ac_func in putenv setenv |
10f2d63a | 14570 | do |
698dcdb6 | 14571 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
94054c1d | 14572 | echo "configure:14573: checking for $ac_func" >&5 |
698dcdb6 VZ |
14573 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14574 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14575 | else | |
14576 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 14577 | #line 14578 "configure" |
af15babd VZ |
14578 | #include "confdefs.h" |
14579 | /* System header to define __stub macros and hopefully few prototypes, | |
14580 | which can conflict with char $ac_func(); below. */ | |
14581 | #include <assert.h> | |
14582 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14583 | /* We use char because int might match the return type of a gcc2 | |
14584 | builtin and then its argument prototype would still apply. */ | |
14585 | char $ac_func(); | |
14586 | ||
14587 | int main() { | |
14588 | ||
14589 | /* The GNU C library defines this for functions which it implements | |
14590 | to always fail with ENOSYS. Some functions are actually named | |
14591 | something starting with __ and the normal name is an alias. */ | |
14592 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14593 | choke me | |
14594 | #else | |
14595 | $ac_func(); | |
14596 | #endif | |
14597 | ||
14598 | ; return 0; } | |
14599 | EOF | |
94054c1d | 14600 | if { (eval echo configure:14601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
14601 | rm -rf conftest* |
14602 | eval "ac_cv_func_$ac_func=yes" | |
14603 | else | |
14604 | echo "configure: failed program was:" >&5 | |
14605 | cat conftest.$ac_ext >&5 | |
14606 | rm -rf conftest* | |
14607 | eval "ac_cv_func_$ac_func=no" | |
14608 | fi | |
14609 | rm -f conftest* | |
14610 | fi | |
14611 | ||
14612 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
14613 | echo "$ac_t""yes" 1>&6 | |
14614 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14615 | cat >> confdefs.h <<EOF | |
14616 | #define $ac_tr_func 1 | |
14617 | EOF | |
4f14bcd8 | 14618 | break |
af15babd VZ |
14619 | else |
14620 | echo "$ac_t""no" 1>&6 | |
14621 | fi | |
af15babd VZ |
14622 | done |
14623 | ||
14624 | ||
4f14bcd8 GD |
14625 | HAVE_SOME_SLEEP_FUNC=0 |
14626 | if test "$USE_BEOS" = 1; then | |
14627 | cat >> confdefs.h <<\EOF | |
14628 | #define HAVE_SLEEP 1 | |
af15babd VZ |
14629 | EOF |
14630 | ||
4f14bcd8 | 14631 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
14632 | fi |
14633 | ||
4f14bcd8 GD |
14634 | if test "$USE_DARWIN" = 1; then |
14635 | cat >> confdefs.h <<\EOF | |
14636 | #define HAVE_USLEEP 1 | |
af15babd | 14637 | EOF |
10f2d63a | 14638 | |
4f14bcd8 | 14639 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
14640 | fi |
14641 | ||
4f14bcd8 GD |
14642 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then |
14643 | POSIX4_LINK= | |
14644 | for ac_func in nanosleep | |
14645 | do | |
14646 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
94054c1d | 14647 | echo "configure:14648: checking for $ac_func" >&5 |
4f14bcd8 | 14648 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 | 14649 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 14650 | else |
4f14bcd8 | 14651 | cat > conftest.$ac_ext <<EOF |
94054c1d | 14652 | #line 14653 "configure" |
10f2d63a | 14653 | #include "confdefs.h" |
4f14bcd8 GD |
14654 | /* System header to define __stub macros and hopefully few prototypes, |
14655 | which can conflict with char $ac_func(); below. */ | |
14656 | #include <assert.h> | |
10f2d63a VZ |
14657 | /* Override any gcc2 internal prototype to avoid an error. */ |
14658 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 14659 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 14660 | char $ac_func(); |
698dcdb6 VZ |
14661 | |
14662 | int main() { | |
4f14bcd8 GD |
14663 | |
14664 | /* The GNU C library defines this for functions which it implements | |
14665 | to always fail with ENOSYS. Some functions are actually named | |
14666 | something starting with __ and the normal name is an alias. */ | |
14667 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14668 | choke me | |
14669 | #else | |
14670 | $ac_func(); | |
14671 | #endif | |
14672 | ||
698dcdb6 VZ |
14673 | ; return 0; } |
14674 | EOF | |
94054c1d | 14675 | if { (eval echo configure:14676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 14676 | rm -rf conftest* |
4f14bcd8 | 14677 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
14678 | else |
14679 | echo "configure: failed program was:" >&5 | |
14680 | cat conftest.$ac_ext >&5 | |
14681 | rm -rf conftest* | |
4f14bcd8 | 14682 | eval "ac_cv_func_$ac_func=no" |
698dcdb6 VZ |
14683 | fi |
14684 | rm -f conftest* | |
698dcdb6 | 14685 | fi |
4f14bcd8 GD |
14686 | |
14687 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 14688 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
14689 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
14690 | cat >> confdefs.h <<EOF | |
14691 | #define $ac_tr_func 1 | |
14692 | EOF | |
14693 | cat >> confdefs.h <<\EOF | |
14694 | #define HAVE_NANOSLEEP 1 | |
14695 | EOF | |
14696 | ||
10f2d63a | 14697 | else |
698dcdb6 | 14698 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 14699 | echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 |
94054c1d | 14700 | echo "configure:14701: checking for nanosleep in -lposix4" >&5 |
4f14bcd8 | 14701 | ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
14702 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
14703 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14704 | else |
698dcdb6 | 14705 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 14706 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 14707 | cat > conftest.$ac_ext <<EOF |
94054c1d | 14708 | #line 14709 "configure" |
10f2d63a VZ |
14709 | #include "confdefs.h" |
14710 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14711 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 14712 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 14713 | char nanosleep(); |
698dcdb6 VZ |
14714 | |
14715 | int main() { | |
4f14bcd8 | 14716 | nanosleep() |
698dcdb6 VZ |
14717 | ; return 0; } |
14718 | EOF | |
94054c1d | 14719 | if { (eval echo configure:14720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14720 | rm -rf conftest* |
14721 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14722 | else | |
14723 | echo "configure: failed program was:" >&5 | |
14724 | cat conftest.$ac_ext >&5 | |
14725 | rm -rf conftest* | |
14726 | eval "ac_cv_lib_$ac_lib_var=no" | |
14727 | fi | |
14728 | rm -f conftest* | |
14729 | LIBS="$ac_save_LIBS" | |
10f2d63a | 14730 | |
698dcdb6 VZ |
14731 | fi |
14732 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14733 | echo "$ac_t""yes" 1>&6 | |
14734 | ||
4f14bcd8 GD |
14735 | cat >> confdefs.h <<\EOF |
14736 | #define HAVE_NANOSLEEP 1 | |
14737 | EOF | |
14738 | ||
3d63bc3a | 14739 | POSIX4_LINK=" -lposix4" |
4f14bcd8 | 14740 | |
10f2d63a | 14741 | else |
698dcdb6 | 14742 | echo "$ac_t""no" 1>&6 |
10f2d63a | 14743 | |
4f14bcd8 GD |
14744 | for ac_func in usleep |
14745 | do | |
14746 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
94054c1d | 14747 | echo "configure:14748: checking for $ac_func" >&5 |
4f14bcd8 | 14748 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 | 14749 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 14750 | else |
698dcdb6 | 14751 | cat > conftest.$ac_ext <<EOF |
94054c1d | 14752 | #line 14753 "configure" |
10f2d63a | 14753 | #include "confdefs.h" |
4f14bcd8 GD |
14754 | /* System header to define __stub macros and hopefully few prototypes, |
14755 | which can conflict with char $ac_func(); below. */ | |
14756 | #include <assert.h> | |
14757 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14758 | /* We use char because int might match the return type of a gcc2 | |
14759 | builtin and then its argument prototype would still apply. */ | |
14760 | char $ac_func(); | |
14761 | ||
14762 | int main() { | |
14763 | ||
14764 | /* The GNU C library defines this for functions which it implements | |
14765 | to always fail with ENOSYS. Some functions are actually named | |
14766 | something starting with __ and the normal name is an alias. */ | |
14767 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14768 | choke me | |
14769 | #else | |
14770 | $ac_func(); | |
14771 | #endif | |
14772 | ||
14773 | ; return 0; } | |
698dcdb6 | 14774 | EOF |
94054c1d | 14775 | if { (eval echo configure:14776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 14776 | rm -rf conftest* |
4f14bcd8 | 14777 | eval "ac_cv_func_$ac_func=yes" |
1e487827 | 14778 | else |
698dcdb6 | 14779 | echo "configure: failed program was:" >&5 |
10f2d63a | 14780 | cat conftest.$ac_ext >&5 |
698dcdb6 | 14781 | rm -rf conftest* |
4f14bcd8 | 14782 | eval "ac_cv_func_$ac_func=no" |
10f2d63a | 14783 | fi |
698dcdb6 | 14784 | rm -f conftest* |
10f2d63a | 14785 | fi |
4f14bcd8 GD |
14786 | |
14787 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 14788 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
14789 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
14790 | cat >> confdefs.h <<EOF | |
14791 | #define $ac_tr_func 1 | |
14792 | EOF | |
14793 | cat >> confdefs.h <<\EOF | |
14794 | #define HAVE_USLEEP 1 | |
14795 | EOF | |
14796 | ||
698dcdb6 VZ |
14797 | else |
14798 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 GD |
14799 | echo "configure: warning: wxSleep() function will not work" 1>&2 |
14800 | ||
10f2d63a | 14801 | fi |
4f14bcd8 | 14802 | done |
10f2d63a | 14803 | |
4f14bcd8 | 14804 | |
698dcdb6 | 14805 | |
6232543b | 14806 | fi |
10f2d63a | 14807 | |
698dcdb6 | 14808 | |
4f14bcd8 | 14809 | |
1e487827 | 14810 | fi |
4f14bcd8 | 14811 | done |
703e0a69 | 14812 | |
10f2d63a VZ |
14813 | fi |
14814 | ||
4f14bcd8 | 14815 | for ac_func in uname gethostname |
70846f0a | 14816 | do |
698dcdb6 | 14817 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
94054c1d | 14818 | echo "configure:14819: checking for $ac_func" >&5 |
698dcdb6 VZ |
14819 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14820 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14821 | else | |
14822 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 14823 | #line 14824 "configure" |
70846f0a VZ |
14824 | #include "confdefs.h" |
14825 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 14826 | which can conflict with char $ac_func(); below. */ |
70846f0a VZ |
14827 | #include <assert.h> |
14828 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14829 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14830 | builtin and then its argument prototype would still apply. */ |
14831 | char $ac_func(); | |
14832 | ||
14833 | int main() { | |
70846f0a VZ |
14834 | |
14835 | /* The GNU C library defines this for functions which it implements | |
14836 | to always fail with ENOSYS. Some functions are actually named | |
14837 | something starting with __ and the normal name is an alias. */ | |
14838 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14839 | choke me | |
14840 | #else | |
698dcdb6 | 14841 | $ac_func(); |
70846f0a VZ |
14842 | #endif |
14843 | ||
698dcdb6 | 14844 | ; return 0; } |
70846f0a | 14845 | EOF |
94054c1d | 14846 | if { (eval echo configure:14847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14847 | rm -rf conftest* |
14848 | eval "ac_cv_func_$ac_func=yes" | |
14849 | else | |
14850 | echo "configure: failed program was:" >&5 | |
14851 | cat conftest.$ac_ext >&5 | |
14852 | rm -rf conftest* | |
14853 | eval "ac_cv_func_$ac_func=no" | |
14854 | fi | |
14855 | rm -f conftest* | |
14856 | fi | |
70846f0a | 14857 | |
698dcdb6 VZ |
14858 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
14859 | echo "$ac_t""yes" 1>&6 | |
14860 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14861 | cat >> confdefs.h <<EOF | |
14862 | #define $ac_tr_func 1 | |
14863 | EOF | |
4f14bcd8 | 14864 | break |
698dcdb6 VZ |
14865 | else |
14866 | echo "$ac_t""no" 1>&6 | |
70846f0a VZ |
14867 | fi |
14868 | done | |
14869 | ||
698dcdb6 | 14870 | |
4f14bcd8 GD |
14871 | |
14872 | ac_ext=C | |
14873 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14874 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14875 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14876 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14877 | cross_compiling=$ac_cv_prog_cxx_cross | |
14878 | ||
14879 | ||
14880 | for ac_func in strtok_r | |
10f2d63a | 14881 | do |
4f14bcd8 | 14882 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
94054c1d | 14883 | echo "configure:14884: checking for $ac_func" >&5 |
4f14bcd8 | 14884 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 VZ |
14885 | echo $ac_n "(cached) $ac_c" 1>&6 |
14886 | else | |
14887 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 14888 | #line 14889 "configure" |
10f2d63a | 14889 | #include "confdefs.h" |
4f14bcd8 GD |
14890 | /* System header to define __stub macros and hopefully few prototypes, |
14891 | which can conflict with char $ac_func(); below. */ | |
14892 | #include <assert.h> | |
14893 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14894 | #ifdef __cplusplus | |
14895 | extern "C" | |
14896 | #endif | |
14897 | /* We use char because int might match the return type of a gcc2 | |
14898 | builtin and then its argument prototype would still apply. */ | |
14899 | char $ac_func(); | |
14900 | ||
14901 | int main() { | |
14902 | ||
14903 | /* The GNU C library defines this for functions which it implements | |
14904 | to always fail with ENOSYS. Some functions are actually named | |
14905 | something starting with __ and the normal name is an alias. */ | |
14906 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14907 | choke me | |
14908 | #else | |
14909 | $ac_func(); | |
14910 | #endif | |
14911 | ||
14912 | ; return 0; } | |
698dcdb6 | 14913 | EOF |
94054c1d | 14914 | if { (eval echo configure:14915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 14915 | rm -rf conftest* |
4f14bcd8 | 14916 | eval "ac_cv_func_$ac_func=yes" |
1e487827 | 14917 | else |
698dcdb6 | 14918 | echo "configure: failed program was:" >&5 |
10f2d63a | 14919 | cat conftest.$ac_ext >&5 |
698dcdb6 | 14920 | rm -rf conftest* |
4f14bcd8 | 14921 | eval "ac_cv_func_$ac_func=no" |
10f2d63a | 14922 | fi |
698dcdb6 | 14923 | rm -f conftest* |
10f2d63a | 14924 | fi |
4f14bcd8 GD |
14925 | |
14926 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 14927 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 | 14928 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
698dcdb6 | 14929 | cat >> confdefs.h <<EOF |
4f14bcd8 | 14930 | #define $ac_tr_func 1 |
10f2d63a | 14931 | EOF |
698dcdb6 VZ |
14932 | |
14933 | else | |
14934 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
14935 | fi |
14936 | done | |
14937 | ||
698dcdb6 | 14938 | |
4f14bcd8 GD |
14939 | ac_ext=c |
14940 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14941 | ac_cpp='$CPP $CPPFLAGS' | |
14942 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14943 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14944 | cross_compiling=$ac_cv_prog_cc_cross | |
14945 | ||
14946 | ||
14947 | INET_LINK= | |
14948 | for ac_func in inet_addr | |
14949 | do | |
14950 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
94054c1d | 14951 | echo "configure:14952: checking for $ac_func" >&5 |
4f14bcd8 | 14952 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 | 14953 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 14954 | else |
4f14bcd8 | 14955 | cat > conftest.$ac_ext <<EOF |
94054c1d | 14956 | #line 14957 "configure" |
10f2d63a | 14957 | #include "confdefs.h" |
4f14bcd8 GD |
14958 | /* System header to define __stub macros and hopefully few prototypes, |
14959 | which can conflict with char $ac_func(); below. */ | |
14960 | #include <assert.h> | |
10f2d63a VZ |
14961 | /* Override any gcc2 internal prototype to avoid an error. */ |
14962 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 14963 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 14964 | char $ac_func(); |
698dcdb6 VZ |
14965 | |
14966 | int main() { | |
4f14bcd8 GD |
14967 | |
14968 | /* The GNU C library defines this for functions which it implements | |
14969 | to always fail with ENOSYS. Some functions are actually named | |
14970 | something starting with __ and the normal name is an alias. */ | |
14971 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14972 | choke me | |
14973 | #else | |
14974 | $ac_func(); | |
14975 | #endif | |
14976 | ||
698dcdb6 VZ |
14977 | ; return 0; } |
14978 | EOF | |
94054c1d | 14979 | if { (eval echo configure:14980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 14980 | rm -rf conftest* |
4f14bcd8 | 14981 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
14982 | else |
14983 | echo "configure: failed program was:" >&5 | |
14984 | cat conftest.$ac_ext >&5 | |
14985 | rm -rf conftest* | |
4f14bcd8 | 14986 | eval "ac_cv_func_$ac_func=no" |
698dcdb6 VZ |
14987 | fi |
14988 | rm -f conftest* | |
698dcdb6 | 14989 | fi |
4f14bcd8 GD |
14990 | |
14991 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 14992 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
14993 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
14994 | cat >> confdefs.h <<EOF | |
14995 | #define $ac_tr_func 1 | |
14996 | EOF | |
14997 | cat >> confdefs.h <<\EOF | |
14998 | #define HAVE_INET_ADDR 1 | |
10f2d63a VZ |
14999 | EOF |
15000 | ||
15001 | else | |
698dcdb6 | 15002 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 15003 | echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6 |
94054c1d | 15004 | echo "configure:15005: checking for inet_addr in -lnsl" >&5 |
4f14bcd8 | 15005 | ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
15006 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
15007 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 15008 | else |
698dcdb6 | 15009 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 15010 | LIBS="-lnsl $LIBS" |
698dcdb6 | 15011 | cat > conftest.$ac_ext <<EOF |
94054c1d | 15012 | #line 15013 "configure" |
10f2d63a VZ |
15013 | #include "confdefs.h" |
15014 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15015 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 15016 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 15017 | char inet_addr(); |
698dcdb6 VZ |
15018 | |
15019 | int main() { | |
4f14bcd8 | 15020 | inet_addr() |
698dcdb6 VZ |
15021 | ; return 0; } |
15022 | EOF | |
94054c1d | 15023 | if { (eval echo configure:15024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15024 | rm -rf conftest* |
15025 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15026 | else | |
15027 | echo "configure: failed program was:" >&5 | |
15028 | cat conftest.$ac_ext >&5 | |
15029 | rm -rf conftest* | |
15030 | eval "ac_cv_lib_$ac_lib_var=no" | |
15031 | fi | |
15032 | rm -f conftest* | |
15033 | LIBS="$ac_save_LIBS" | |
15034 | ||
15035 | fi | |
15036 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15037 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 15038 | INET_LINK="nsl" |
10f2d63a | 15039 | else |
698dcdb6 | 15040 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 15041 | echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6 |
94054c1d | 15042 | echo "configure:15043: checking for inet_addr in -lresolv" >&5 |
4f14bcd8 | 15043 | ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
15044 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
15045 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 15046 | else |
698dcdb6 | 15047 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 15048 | LIBS="-lresolv $LIBS" |
698dcdb6 | 15049 | cat > conftest.$ac_ext <<EOF |
94054c1d | 15050 | #line 15051 "configure" |
10f2d63a VZ |
15051 | #include "confdefs.h" |
15052 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15053 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 15054 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 15055 | char inet_addr(); |
698dcdb6 VZ |
15056 | |
15057 | int main() { | |
4f14bcd8 | 15058 | inet_addr() |
698dcdb6 VZ |
15059 | ; return 0; } |
15060 | EOF | |
94054c1d | 15061 | if { (eval echo configure:15062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15062 | rm -rf conftest* |
15063 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15064 | else | |
15065 | echo "configure: failed program was:" >&5 | |
15066 | cat conftest.$ac_ext >&5 | |
15067 | rm -rf conftest* | |
15068 | eval "ac_cv_lib_$ac_lib_var=no" | |
15069 | fi | |
15070 | rm -f conftest* | |
15071 | LIBS="$ac_save_LIBS" | |
15072 | ||
15073 | fi | |
15074 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15075 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 GD |
15076 | INET_LINK="resolv" |
15077 | ||
698dcdb6 | 15078 | else |
4f14bcd8 GD |
15079 | echo "$ac_t""no" 1>&6 |
15080 | fi | |
698dcdb6 | 15081 | |
4f14bcd8 | 15082 | |
698dcdb6 | 15083 | fi |
4f14bcd8 GD |
15084 | |
15085 | ||
698dcdb6 VZ |
15086 | |
15087 | fi | |
4f14bcd8 GD |
15088 | done |
15089 | ||
15090 | ||
15091 | for ac_func in inet_aton | |
15092 | do | |
15093 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
94054c1d | 15094 | echo "configure:15095: checking for $ac_func" >&5 |
4f14bcd8 | 15095 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 VZ |
15096 | echo $ac_n "(cached) $ac_c" 1>&6 |
15097 | else | |
4f14bcd8 | 15098 | cat > conftest.$ac_ext <<EOF |
94054c1d | 15099 | #line 15100 "configure" |
f6bcfd97 | 15100 | #include "confdefs.h" |
4f14bcd8 GD |
15101 | /* System header to define __stub macros and hopefully few prototypes, |
15102 | which can conflict with char $ac_func(); below. */ | |
15103 | #include <assert.h> | |
f6bcfd97 BP |
15104 | /* Override any gcc2 internal prototype to avoid an error. */ |
15105 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 15106 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 15107 | char $ac_func(); |
698dcdb6 VZ |
15108 | |
15109 | int main() { | |
4f14bcd8 GD |
15110 | |
15111 | /* The GNU C library defines this for functions which it implements | |
15112 | to always fail with ENOSYS. Some functions are actually named | |
15113 | something starting with __ and the normal name is an alias. */ | |
15114 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15115 | choke me | |
15116 | #else | |
15117 | $ac_func(); | |
15118 | #endif | |
15119 | ||
698dcdb6 VZ |
15120 | ; return 0; } |
15121 | EOF | |
94054c1d | 15122 | if { (eval echo configure:15123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15123 | rm -rf conftest* |
4f14bcd8 | 15124 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
15125 | else |
15126 | echo "configure: failed program was:" >&5 | |
15127 | cat conftest.$ac_ext >&5 | |
15128 | rm -rf conftest* | |
4f14bcd8 | 15129 | eval "ac_cv_func_$ac_func=no" |
698dcdb6 VZ |
15130 | fi |
15131 | rm -f conftest* | |
698dcdb6 | 15132 | fi |
4f14bcd8 GD |
15133 | |
15134 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 15135 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
15136 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
15137 | cat >> confdefs.h <<EOF | |
15138 | #define $ac_tr_func 1 | |
15139 | EOF | |
15140 | cat >> confdefs.h <<\EOF | |
15141 | #define HAVE_INET_ATON 1 | |
15142 | EOF | |
15143 | ||
10f2d63a | 15144 | else |
698dcdb6 | 15145 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 15146 | echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6 |
94054c1d | 15147 | echo "configure:15148: checking for inet_aton in -l$INET_LINK" >&5 |
4f14bcd8 | 15148 | ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
15149 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
15150 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 15151 | else |
698dcdb6 | 15152 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 15153 | LIBS="-l$INET_LINK $LIBS" |
698dcdb6 | 15154 | cat > conftest.$ac_ext <<EOF |
94054c1d | 15155 | #line 15156 "configure" |
10f2d63a | 15156 | #include "confdefs.h" |
6232543b | 15157 | /* Override any gcc2 internal prototype to avoid an error. */ |
6232543b | 15158 | /* We use char because int might match the return type of a gcc2 |
698dcdb6 | 15159 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 15160 | char inet_aton(); |
698dcdb6 VZ |
15161 | |
15162 | int main() { | |
4f14bcd8 | 15163 | inet_aton() |
698dcdb6 VZ |
15164 | ; return 0; } |
15165 | EOF | |
94054c1d | 15166 | if { (eval echo configure:15167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15167 | rm -rf conftest* |
15168 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15169 | else | |
15170 | echo "configure: failed program was:" >&5 | |
15171 | cat conftest.$ac_ext >&5 | |
15172 | rm -rf conftest* | |
15173 | eval "ac_cv_lib_$ac_lib_var=no" | |
15174 | fi | |
15175 | rm -f conftest* | |
15176 | LIBS="$ac_save_LIBS" | |
10f2d63a | 15177 | |
698dcdb6 VZ |
15178 | fi |
15179 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15180 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 GD |
15181 | cat >> confdefs.h <<\EOF |
15182 | #define HAVE_INET_ATON 1 | |
15183 | EOF | |
15184 | ||
698dcdb6 VZ |
15185 | else |
15186 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
15187 | fi |
15188 | ||
4f14bcd8 | 15189 | |
10f2d63a | 15190 | fi |
4f14bcd8 | 15191 | done |
10f2d63a | 15192 | |
4f14bcd8 GD |
15193 | |
15194 | if test "x$INET_LINK" != "x"; then | |
15195 | cat >> confdefs.h <<\EOF | |
15196 | #define HAVE_INET_ADDR 1 | |
15197 | EOF | |
15198 | ||
3d63bc3a | 15199 | INET_LINK=" -l$INET_LINK" |
6232543b | 15200 | fi |
10f2d63a | 15201 | |
1e487827 | 15202 | fi |
703e0a69 | 15203 | |
698dcdb6 | 15204 | |
4f14bcd8 GD |
15205 | cat > confcache <<\EOF |
15206 | # This file is a shell script that caches the results of configure | |
15207 | # tests run on this system so they can be shared between configure | |
15208 | # scripts and configure runs. It is not useful on other systems. | |
15209 | # If it contains results you don't want to keep, you may remove or edit it. | |
15210 | # | |
15211 | # By default, configure uses ./config.cache as the cache file, | |
15212 | # creating it if it does not exist already. You can give configure | |
15213 | # the --cache-file=FILE option to use a different cache file; that is | |
15214 | # what configure does when it calls configure scripts in | |
15215 | # subdirectories, so they share the cache. | |
15216 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
15217 | # config.status only pays attention to the cache file if you give it the | |
15218 | # --recheck option to rerun configure. | |
15219 | # | |
f6bcfd97 | 15220 | EOF |
4f14bcd8 GD |
15221 | # The following way of writing the cache mishandles newlines in values, |
15222 | # but we know of no workaround that is simple, portable, and efficient. | |
15223 | # So, don't put newlines in cache variables' values. | |
15224 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
15225 | # and sets the high bit in the cache file unless we assign to the vars. | |
15226 | (set) 2>&1 | | |
15227 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
15228 | *ac_space=\ *) | |
15229 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
15230 | # turns \\\\ into \\, and sed turns \\ into \). | |
15231 | sed -n \ | |
15232 | -e "s/'/'\\\\''/g" \ | |
15233 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
15234 | ;; | |
15235 | *) | |
15236 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
15237 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
15238 | ;; | |
15239 | esac >> confcache | |
15240 | if cmp -s $cache_file confcache; then | |
15241 | : | |
15242 | else | |
15243 | if test -w $cache_file; then | |
15244 | echo "updating cache $cache_file" | |
15245 | cat confcache > $cache_file | |
f6bcfd97 | 15246 | else |
4f14bcd8 | 15247 | echo "not updating unwritable cache $cache_file" |
f6bcfd97 | 15248 | fi |
4f14bcd8 GD |
15249 | fi |
15250 | rm -f confcache | |
f6bcfd97 | 15251 | |
4f14bcd8 GD |
15252 | |
15253 | ||
15254 | if test "$TOOLKIT" != "MSW"; then | |
15255 | ||
7274f1c7 RL |
15256 | |
15257 | THREADS_LINK= | |
15258 | THREADS_OBJ= | |
15259 | CODE_GEN_FLAGS= | |
15260 | CODE_GEN_FLAGS_CXX= | |
15261 | ||
15262 | if test "$wxUSE_THREADS" = "yes" ; then | |
15263 | if test "$wxUSE_WINE" = 1 ; then | |
15264 | echo "configure: warning: Threads are not supported under WINE" 1>&2 | |
15265 | wxUSE_THREADS="no" | |
15266 | elif test "$USE_BEOS" = 1; then | |
15267 | echo "configure: warning: BeOS threads are not yet supported" 1>&2 | |
15268 | wxUSE_THREADS="no" | |
15269 | fi | |
4f14bcd8 | 15270 | fi |
4f14bcd8 | 15271 | |
7274f1c7 RL |
15272 | if test "$wxUSE_THREADS" = "yes" ; then |
15273 | ||
15274 | if test "$USE_AIX" = 1; then | |
15275 | THREADS_LIB=pthreads | |
15276 | else | |
15277 | THREADS_LIB=pthread | |
15278 | fi | |
4f14bcd8 | 15279 | |
7274f1c7 | 15280 | echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6 |
94054c1d | 15281 | echo "configure:15282: checking for pthread_create in -l$THREADS_LIB" >&5 |
4f14bcd8 | 15282 | ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
15283 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
15284 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 15285 | else |
698dcdb6 | 15286 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 15287 | LIBS="-l$THREADS_LIB $LIBS" |
698dcdb6 | 15288 | cat > conftest.$ac_ext <<EOF |
94054c1d | 15289 | #line 15290 "configure" |
10f2d63a VZ |
15290 | #include "confdefs.h" |
15291 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15292 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 15293 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 15294 | char pthread_create(); |
698dcdb6 VZ |
15295 | |
15296 | int main() { | |
4f14bcd8 | 15297 | pthread_create() |
698dcdb6 VZ |
15298 | ; return 0; } |
15299 | EOF | |
94054c1d | 15300 | if { (eval echo configure:15301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15301 | rm -rf conftest* |
15302 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15303 | else | |
15304 | echo "configure: failed program was:" >&5 | |
15305 | cat conftest.$ac_ext >&5 | |
15306 | rm -rf conftest* | |
15307 | eval "ac_cv_lib_$ac_lib_var=no" | |
15308 | fi | |
15309 | rm -f conftest* | |
15310 | LIBS="$ac_save_LIBS" | |
15311 | ||
15312 | fi | |
15313 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15314 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 15315 | |
7274f1c7 RL |
15316 | THREADS_OBJ="threadpsx.lo" |
15317 | THREADS_LINK=$THREADS_LIB | |
15318 | ||
10f2d63a | 15319 | else |
698dcdb6 | 15320 | echo "$ac_t""no" 1>&6 |
10f2d63a | 15321 | |
7274f1c7 | 15322 | echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 |
94054c1d | 15323 | echo "configure:15324: checking for pthread_create in -lc_r" >&5 |
4f14bcd8 GD |
15324 | ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` |
15325 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 VZ |
15326 | echo $ac_n "(cached) $ac_c" 1>&6 |
15327 | else | |
4f14bcd8 GD |
15328 | ac_save_LIBS="$LIBS" |
15329 | LIBS="-lc_r $LIBS" | |
15330 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 15331 | #line 15332 "configure" |
10f2d63a | 15332 | #include "confdefs.h" |
4f14bcd8 GD |
15333 | /* Override any gcc2 internal prototype to avoid an error. */ |
15334 | /* We use char because int might match the return type of a gcc2 | |
15335 | builtin and then its argument prototype would still apply. */ | |
15336 | char pthread_create(); | |
10f2d63a | 15337 | |
4f14bcd8 GD |
15338 | int main() { |
15339 | pthread_create() | |
698dcdb6 VZ |
15340 | ; return 0; } |
15341 | EOF | |
94054c1d | 15342 | if { (eval echo configure:15343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15343 | rm -rf conftest* |
4f14bcd8 | 15344 | eval "ac_cv_lib_$ac_lib_var=yes" |
10f2d63a | 15345 | else |
698dcdb6 VZ |
15346 | echo "configure: failed program was:" >&5 |
15347 | cat conftest.$ac_ext >&5 | |
15348 | rm -rf conftest* | |
4f14bcd8 | 15349 | eval "ac_cv_lib_$ac_lib_var=no" |
6232543b | 15350 | fi |
698dcdb6 | 15351 | rm -f conftest* |
4f14bcd8 | 15352 | LIBS="$ac_save_LIBS" |
d9b9876f | 15353 | |
4f14bcd8 GD |
15354 | fi |
15355 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15356 | echo "$ac_t""yes" 1>&6 | |
15357 | ||
7274f1c7 RL |
15358 | THREADS_OBJ="threadpsx.lo" |
15359 | THREADS_LINK="c_r" | |
15360 | ||
4f14bcd8 GD |
15361 | else |
15362 | echo "$ac_t""no" 1>&6 | |
ab252f7b | 15363 | |
7274f1c7 | 15364 | ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'` |
4f14bcd8 | 15365 | echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6 |
94054c1d | 15366 | echo "configure:15367: checking for sys/prctl.h" >&5 |
4f14bcd8 | 15367 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
698dcdb6 | 15368 | echo $ac_n "(cached) $ac_c" 1>&6 |
d9b9876f | 15369 | else |
4f14bcd8 | 15370 | cat > conftest.$ac_ext <<EOF |
94054c1d | 15371 | #line 15372 "configure" |
d9b9876f | 15372 | #include "confdefs.h" |
4f14bcd8 | 15373 | #include <sys/prctl.h> |
698dcdb6 | 15374 | EOF |
4f14bcd8 | 15375 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
94054c1d | 15376 | { (eval echo configure:15377: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
15377 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15378 | if test -z "$ac_err"; then | |
698dcdb6 | 15379 | rm -rf conftest* |
4f14bcd8 | 15380 | eval "ac_cv_header_$ac_safe=yes" |
d9b9876f | 15381 | else |
4f14bcd8 | 15382 | echo "$ac_err" >&5 |
698dcdb6 VZ |
15383 | echo "configure: failed program was:" >&5 |
15384 | cat conftest.$ac_ext >&5 | |
15385 | rm -rf conftest* | |
4f14bcd8 | 15386 | eval "ac_cv_header_$ac_safe=no" |
6232543b | 15387 | fi |
698dcdb6 | 15388 | rm -f conftest* |
4f14bcd8 GD |
15389 | fi |
15390 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
15391 | echo "$ac_t""yes" 1>&6 | |
698dcdb6 | 15392 | |
7274f1c7 RL |
15393 | THREADS_OBJ="threadsgi.lo" |
15394 | ||
4f14bcd8 GD |
15395 | else |
15396 | echo "$ac_t""no" 1>&6 | |
1e487827 | 15397 | fi |
698dcdb6 | 15398 | |
7274f1c7 | 15399 | |
4f14bcd8 | 15400 | fi |
d9b9876f | 15401 | |
7274f1c7 | 15402 | |
4f14bcd8 | 15403 | fi |
d9b9876f | 15404 | |
4f14bcd8 | 15405 | |
7274f1c7 RL |
15406 | if test -z "$THREADS_OBJ" ; then |
15407 | wxUSE_THREADS=no | |
15408 | echo "configure: warning: No thread support on this system" 1>&2 | |
15409 | fi | |
4f14bcd8 | 15410 | fi |
4f14bcd8 | 15411 | |
7274f1c7 RL |
15412 | if test "$wxUSE_THREADS" = "yes" ; then |
15413 | for ac_func in thr_setconcurrency | |
4f14bcd8 GD |
15414 | do |
15415 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
94054c1d | 15416 | echo "configure:15417: checking for $ac_func" >&5 |
4f14bcd8 | 15417 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 VZ |
15418 | echo $ac_n "(cached) $ac_c" 1>&6 |
15419 | else | |
4f14bcd8 | 15420 | cat > conftest.$ac_ext <<EOF |
94054c1d | 15421 | #line 15422 "configure" |
d9b9876f | 15422 | #include "confdefs.h" |
4f14bcd8 GD |
15423 | /* System header to define __stub macros and hopefully few prototypes, |
15424 | which can conflict with char $ac_func(); below. */ | |
15425 | #include <assert.h> | |
15426 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15427 | /* We use char because int might match the return type of a gcc2 | |
15428 | builtin and then its argument prototype would still apply. */ | |
15429 | char $ac_func(); | |
15430 | ||
698dcdb6 | 15431 | int main() { |
d9b9876f | 15432 | |
4f14bcd8 GD |
15433 | /* The GNU C library defines this for functions which it implements |
15434 | to always fail with ENOSYS. Some functions are actually named | |
15435 | something starting with __ and the normal name is an alias. */ | |
15436 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15437 | choke me | |
15438 | #else | |
15439 | $ac_func(); | |
15440 | #endif | |
15441 | ||
698dcdb6 VZ |
15442 | ; return 0; } |
15443 | EOF | |
94054c1d | 15444 | if { (eval echo configure:15445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15445 | rm -rf conftest* |
4f14bcd8 | 15446 | eval "ac_cv_func_$ac_func=yes" |
d9b9876f | 15447 | else |
698dcdb6 VZ |
15448 | echo "configure: failed program was:" >&5 |
15449 | cat conftest.$ac_ext >&5 | |
15450 | rm -rf conftest* | |
4f14bcd8 | 15451 | eval "ac_cv_func_$ac_func=no" |
6232543b | 15452 | fi |
698dcdb6 | 15453 | rm -f conftest* |
1e487827 | 15454 | fi |
698dcdb6 | 15455 | |
4f14bcd8 GD |
15456 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
15457 | echo "$ac_t""yes" 1>&6 | |
15458 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15459 | cat >> confdefs.h <<EOF | |
15460 | #define $ac_tr_func 1 | |
d9b9876f | 15461 | EOF |
4f14bcd8 GD |
15462 | |
15463 | else | |
15464 | echo "$ac_t""no" 1>&6 | |
10f2d63a | 15465 | fi |
4f14bcd8 | 15466 | done |
10f2d63a | 15467 | |
10f2d63a | 15468 | |
7274f1c7 RL |
15469 | |
15470 | for ac_hdr in sched.h | |
4f14bcd8 GD |
15471 | do |
15472 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
15473 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
94054c1d | 15474 | echo "configure:15475: checking for $ac_hdr" >&5 |
4f14bcd8 GD |
15475 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
15476 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 15477 | else |
4f14bcd8 | 15478 | cat > conftest.$ac_ext <<EOF |
94054c1d | 15479 | #line 15480 "configure" |
4f14bcd8 GD |
15480 | #include "confdefs.h" |
15481 | #include <$ac_hdr> | |
13111b2a | 15482 | EOF |
4f14bcd8 | 15483 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
94054c1d | 15484 | { (eval echo configure:15485: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
15485 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15486 | if test -z "$ac_err"; then | |
15487 | rm -rf conftest* | |
15488 | eval "ac_cv_header_$ac_safe=yes" | |
15489 | else | |
15490 | echo "$ac_err" >&5 | |
15491 | echo "configure: failed program was:" >&5 | |
15492 | cat conftest.$ac_ext >&5 | |
15493 | rm -rf conftest* | |
15494 | eval "ac_cv_header_$ac_safe=no" | |
13111b2a | 15495 | fi |
4f14bcd8 | 15496 | rm -f conftest* |
10f2d63a | 15497 | fi |
4f14bcd8 GD |
15498 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
15499 | echo "$ac_t""yes" 1>&6 | |
15500 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
698dcdb6 | 15501 | cat >> confdefs.h <<EOF |
4f14bcd8 | 15502 | #define $ac_tr_hdr 1 |
f6bcfd97 | 15503 | EOF |
4f14bcd8 GD |
15504 | |
15505 | else | |
15506 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 | 15507 | fi |
4f14bcd8 | 15508 | done |
f6bcfd97 | 15509 | |
10f2d63a | 15510 | |
7274f1c7 | 15511 | echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6 |
94054c1d | 15512 | echo "configure:15513: checking for sched_yield in -l$THREADS_LINK" >&5 |
4f14bcd8 GD |
15513 | ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'` |
15514 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15515 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15516 | else | |
15517 | ac_save_LIBS="$LIBS" | |
15518 | LIBS="-l$THREADS_LINK $LIBS" | |
15519 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 15520 | #line 15521 "configure" |
4f14bcd8 GD |
15521 | #include "confdefs.h" |
15522 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15523 | /* We use char because int might match the return type of a gcc2 | |
15524 | builtin and then its argument prototype would still apply. */ | |
15525 | char sched_yield(); | |
10f2d63a | 15526 | |
4f14bcd8 GD |
15527 | int main() { |
15528 | sched_yield() | |
15529 | ; return 0; } | |
10f2d63a | 15530 | EOF |
94054c1d | 15531 | if { (eval echo configure:15532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
15532 | rm -rf conftest* |
15533 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 15534 | else |
4f14bcd8 GD |
15535 | echo "configure: failed program was:" >&5 |
15536 | cat conftest.$ac_ext >&5 | |
15537 | rm -rf conftest* | |
15538 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 15539 | fi |
4f14bcd8 GD |
15540 | rm -f conftest* |
15541 | LIBS="$ac_save_LIBS" | |
10f2d63a | 15542 | |
4f14bcd8 GD |
15543 | fi |
15544 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15545 | echo "$ac_t""yes" 1>&6 | |
15546 | cat >> confdefs.h <<\EOF | |
15547 | #define HAVE_SCHED_YIELD 1 | |
10f2d63a VZ |
15548 | EOF |
15549 | ||
4f14bcd8 GD |
15550 | else |
15551 | echo "$ac_t""no" 1>&6 | |
15552 | echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6 | |
94054c1d | 15553 | echo "configure:15554: checking for sched_yield in -lposix4" >&5 |
4f14bcd8 GD |
15554 | ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'` |
15555 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15556 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15557 | else | |
15558 | ac_save_LIBS="$LIBS" | |
15559 | LIBS="-lposix4 $LIBS" | |
15560 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 15561 | #line 15562 "configure" |
4f14bcd8 GD |
15562 | #include "confdefs.h" |
15563 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15564 | /* We use char because int might match the return type of a gcc2 | |
15565 | builtin and then its argument prototype would still apply. */ | |
15566 | char sched_yield(); | |
47c13eb7 | 15567 | |
4f14bcd8 GD |
15568 | int main() { |
15569 | sched_yield() | |
15570 | ; return 0; } | |
10f2d63a | 15571 | EOF |
94054c1d | 15572 | if { (eval echo configure:15573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
15573 | rm -rf conftest* |
15574 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 15575 | else |
4f14bcd8 GD |
15576 | echo "configure: failed program was:" >&5 |
15577 | cat conftest.$ac_ext >&5 | |
15578 | rm -rf conftest* | |
15579 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 15580 | fi |
4f14bcd8 GD |
15581 | rm -f conftest* |
15582 | LIBS="$ac_save_LIBS" | |
10f2d63a | 15583 | |
54276ccf | 15584 | fi |
4f14bcd8 GD |
15585 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
15586 | echo "$ac_t""yes" 1>&6 | |
15587 | cat >> confdefs.h <<\EOF | |
15588 | #define HAVE_SCHED_YIELD 1 | |
54276ccf | 15589 | EOF |
3d63bc3a | 15590 | POSIX4_LINK=" -lposix4" |
4f14bcd8 GD |
15591 | else |
15592 | echo "$ac_t""no" 1>&6 | |
15593 | echo "configure: warning: wxThread::Yield will not work properly" 1>&2 | |
7274f1c7 | 15594 | |
54276ccf VZ |
15595 | fi |
15596 | ||
7274f1c7 | 15597 | |
4f14bcd8 | 15598 | fi |
698dcdb6 | 15599 | |
10f2d63a | 15600 | |
7274f1c7 RL |
15601 | HAVE_PRIOR_FUNCS=0 |
15602 | echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6 | |
94054c1d | 15603 | echo "configure:15604: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5 |
4f14bcd8 GD |
15604 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'` |
15605 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 VZ |
15606 | echo $ac_n "(cached) $ac_c" 1>&6 |
15607 | else | |
4f14bcd8 GD |
15608 | ac_save_LIBS="$LIBS" |
15609 | LIBS="-l$THREADS_LINK $LIBS" | |
15610 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 15611 | #line 15612 "configure" |
422107f9 | 15612 | #include "confdefs.h" |
4f14bcd8 GD |
15613 | /* Override any gcc2 internal prototype to avoid an error. */ |
15614 | /* We use char because int might match the return type of a gcc2 | |
15615 | builtin and then its argument prototype would still apply. */ | |
15616 | char pthread_attr_getschedpolicy(); | |
15617 | ||
15618 | int main() { | |
15619 | pthread_attr_getschedpolicy() | |
15620 | ; return 0; } | |
698dcdb6 | 15621 | EOF |
94054c1d | 15622 | if { (eval echo configure:15623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15623 | rm -rf conftest* |
4f14bcd8 | 15624 | eval "ac_cv_lib_$ac_lib_var=yes" |
422107f9 | 15625 | else |
698dcdb6 | 15626 | echo "configure: failed program was:" >&5 |
422107f9 | 15627 | cat conftest.$ac_ext >&5 |
698dcdb6 | 15628 | rm -rf conftest* |
4f14bcd8 | 15629 | eval "ac_cv_lib_$ac_lib_var=no" |
422107f9 | 15630 | fi |
698dcdb6 | 15631 | rm -f conftest* |
4f14bcd8 GD |
15632 | LIBS="$ac_save_LIBS" |
15633 | ||
422107f9 | 15634 | fi |
4f14bcd8 | 15635 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
698dcdb6 | 15636 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 | 15637 | echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6 |
94054c1d | 15638 | echo "configure:15639: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5 |
4f14bcd8 | 15639 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | 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="-l$THREADS_LINK $LIBS" |
698dcdb6 | 15645 | cat > conftest.$ac_ext <<EOF |
94054c1d | 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 pthread_attr_setschedparam(); |
698dcdb6 VZ |
15652 | |
15653 | int main() { | |
4f14bcd8 | 15654 | pthread_attr_setschedparam() |
698dcdb6 VZ |
15655 | ; return 0; } |
15656 | EOF | |
94054c1d | 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 | 15672 | echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6 |
94054c1d | 15673 | echo "configure:15674: checking for sched_get_priority_max in -l$THREADS_LINK" >&5 |
4f14bcd8 GD |
15674 | ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
15675 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 VZ |
15676 | echo $ac_n "(cached) $ac_c" 1>&6 |
15677 | else | |
4f14bcd8 GD |
15678 | ac_save_LIBS="$LIBS" |
15679 | LIBS="-l$THREADS_LINK $LIBS" | |
15680 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 15681 | #line 15682 "configure" |
422107f9 | 15682 | #include "confdefs.h" |
4f14bcd8 GD |
15683 | /* Override any gcc2 internal prototype to avoid an error. */ |
15684 | /* We use char because int might match the return type of a gcc2 | |
15685 | builtin and then its argument prototype would still apply. */ | |
15686 | char sched_get_priority_max(); | |
15687 | ||
15688 | int main() { | |
15689 | sched_get_priority_max() | |
15690 | ; return 0; } | |
698dcdb6 | 15691 | EOF |
94054c1d | 15692 | if { (eval echo configure:15693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15693 | rm -rf conftest* |
4f14bcd8 | 15694 | eval "ac_cv_lib_$ac_lib_var=yes" |
422107f9 | 15695 | else |
698dcdb6 | 15696 | echo "configure: failed program was:" >&5 |
422107f9 | 15697 | cat conftest.$ac_ext >&5 |
698dcdb6 | 15698 | rm -rf conftest* |
4f14bcd8 | 15699 | eval "ac_cv_lib_$ac_lib_var=no" |
422107f9 | 15700 | fi |
698dcdb6 | 15701 | rm -f conftest* |
4f14bcd8 GD |
15702 | LIBS="$ac_save_LIBS" |
15703 | ||
422107f9 | 15704 | fi |
4f14bcd8 | 15705 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
698dcdb6 | 15706 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
15707 | HAVE_PRIOR_FUNCS=1 |
15708 | else | |
15709 | echo "$ac_t""no" 1>&6 | |
15710 | echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6 | |
94054c1d | 15711 | echo "configure:15712: checking for sched_get_priority_max in -lposix4" >&5 |
4f14bcd8 | 15712 | ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
15713 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
15714 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 15715 | else |
698dcdb6 | 15716 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 15717 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 15718 | cat > conftest.$ac_ext <<EOF |
94054c1d | 15719 | #line 15720 "configure" |
422107f9 VZ |
15720 | #include "confdefs.h" |
15721 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15722 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 15723 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 15724 | char sched_get_priority_max(); |
698dcdb6 VZ |
15725 | |
15726 | int main() { | |
4f14bcd8 | 15727 | sched_get_priority_max() |
698dcdb6 VZ |
15728 | ; return 0; } |
15729 | EOF | |
94054c1d | 15730 | if { (eval echo configure:15731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15731 | rm -rf conftest* |
15732 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15733 | else | |
15734 | echo "configure: failed program was:" >&5 | |
15735 | cat conftest.$ac_ext >&5 | |
15736 | rm -rf conftest* | |
15737 | eval "ac_cv_lib_$ac_lib_var=no" | |
15738 | fi | |
15739 | rm -f conftest* | |
15740 | LIBS="$ac_save_LIBS" | |
15741 | ||
15742 | fi | |
15743 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15744 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 15745 | |
7274f1c7 RL |
15746 | HAVE_PRIOR_FUNCS=1 |
15747 | POSIX4_LINK=" -lposix4" | |
15748 | ||
698dcdb6 VZ |
15749 | else |
15750 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
15751 | fi |
15752 | ||
7274f1c7 | 15753 | |
422107f9 VZ |
15754 | fi |
15755 | ||
7274f1c7 | 15756 | |
4f14bcd8 GD |
15757 | else |
15758 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
15759 | fi |
15760 | ||
7274f1c7 | 15761 | |
698dcdb6 | 15762 | else |
4f14bcd8 GD |
15763 | echo "$ac_t""no" 1>&6 |
15764 | fi | |
463abc64 | 15765 | |
463abc64 | 15766 | |
7274f1c7 RL |
15767 | if test "$HAVE_PRIOR_FUNCS" = 1; then |
15768 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 15769 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 |
698dcdb6 | 15770 | EOF |
463abc64 | 15771 | |
7274f1c7 RL |
15772 | else |
15773 | echo "configure: warning: Setting thread priority will not work" 1>&2 | |
15774 | fi | |
463abc64 | 15775 | |
7274f1c7 | 15776 | echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6 |
94054c1d | 15777 | echo "configure:15778: checking for pthread_cancel in -l$THREADS_LINK" >&5 |
4f14bcd8 | 15778 | ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
15779 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
15780 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 15781 | else |
698dcdb6 | 15782 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 15783 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 15784 | cat > conftest.$ac_ext <<EOF |
94054c1d | 15785 | #line 15786 "configure" |
422107f9 VZ |
15786 | #include "confdefs.h" |
15787 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15788 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 15789 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 15790 | char pthread_cancel(); |
698dcdb6 VZ |
15791 | |
15792 | int main() { | |
4f14bcd8 | 15793 | pthread_cancel() |
698dcdb6 VZ |
15794 | ; return 0; } |
15795 | EOF | |
94054c1d | 15796 | if { (eval echo configure:15797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15797 | rm -rf conftest* |
15798 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15799 | else | |
15800 | echo "configure: failed program was:" >&5 | |
15801 | cat conftest.$ac_ext >&5 | |
15802 | rm -rf conftest* | |
15803 | eval "ac_cv_lib_$ac_lib_var=no" | |
15804 | fi | |
15805 | rm -f conftest* | |
15806 | LIBS="$ac_save_LIBS" | |
15807 | ||
15808 | fi | |
15809 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15810 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 GD |
15811 | cat >> confdefs.h <<\EOF |
15812 | #define HAVE_PTHREAD_CANCEL 1 | |
15813 | EOF | |
15814 | ||
698dcdb6 VZ |
15815 | else |
15816 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 | 15817 | echo "configure: warning: wxThread::Kill() will not work properly" 1>&2 |
422107f9 VZ |
15818 | fi |
15819 | ||
422107f9 | 15820 | |
7274f1c7 | 15821 | echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6 |
94054c1d | 15822 | echo "configure:15823: checking for pthread_cleanup_push/pop" >&5 |
4f14bcd8 GD |
15823 | if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then |
15824 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15825 | else | |
15826 | ||
7274f1c7 | 15827 | cat > conftest.$ac_ext <<EOF |
94054c1d | 15828 | #line 15829 "configure" |
4f14bcd8 GD |
15829 | #include "confdefs.h" |
15830 | #include <pthread.h> | |
15831 | int main() { | |
15832 | ||
7274f1c7 RL |
15833 | pthread_cleanup_push(NULL, NULL); |
15834 | pthread_cleanup_pop(0); | |
15835 | ||
4f14bcd8 GD |
15836 | ; return 0; } |
15837 | EOF | |
94054c1d | 15838 | if { (eval echo configure:15839: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
15839 | rm -rf conftest* |
15840 | ||
7274f1c7 RL |
15841 | wx_cv_func_pthread_cleanup_push=yes |
15842 | ||
4f14bcd8 GD |
15843 | else |
15844 | echo "configure: failed program was:" >&5 | |
15845 | cat conftest.$ac_ext >&5 | |
15846 | rm -rf conftest* | |
15847 | ||
7274f1c7 RL |
15848 | wx_cv_func_pthread_cleanup_push=no |
15849 | ||
4f14bcd8 GD |
15850 | fi |
15851 | rm -f conftest* | |
7274f1c7 | 15852 | |
10f2d63a VZ |
15853 | fi |
15854 | ||
4f14bcd8 GD |
15855 | echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6 |
15856 | ||
7274f1c7 RL |
15857 | if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then |
15858 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 15859 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 |
c7a2bf27 RR |
15860 | EOF |
15861 | ||
7274f1c7 | 15862 | fi |
4f14bcd8 | 15863 | |
7274f1c7 RL |
15864 | |
15865 | if test "x$wx_lib_glibc21" = "xyes"; then | |
15866 | CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" | |
15867 | fi | |
4f14bcd8 | 15868 | |
7274f1c7 | 15869 | echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6 |
94054c1d | 15870 | echo "configure:15871: checking for pthread_mutexattr_t" >&5 |
4f14bcd8 | 15871 | if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then |
698dcdb6 VZ |
15872 | echo $ac_n "(cached) $ac_c" 1>&6 |
15873 | else | |
4f14bcd8 | 15874 | |
7274f1c7 | 15875 | cat > conftest.$ac_ext <<EOF |
94054c1d | 15876 | #line 15877 "configure" |
0dcf9893 | 15877 | #include "confdefs.h" |
4f14bcd8 GD |
15878 | #include <pthread.h> |
15879 | int main() { | |
15880 | ||
7274f1c7 RL |
15881 | pthread_mutexattr_t attr; |
15882 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
15883 | ||
4f14bcd8 | 15884 | ; return 0; } |
698dcdb6 | 15885 | EOF |
94054c1d | 15886 | if { (eval echo configure:15887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 15887 | rm -rf conftest* |
4f14bcd8 | 15888 | |
7274f1c7 RL |
15889 | wx_cv_type_pthread_mutexattr_t=yes |
15890 | ||
3fed1840 | 15891 | else |
698dcdb6 | 15892 | echo "configure: failed program was:" >&5 |
3fed1840 | 15893 | cat conftest.$ac_ext >&5 |
698dcdb6 | 15894 | rm -rf conftest* |
4f14bcd8 | 15895 | |
7274f1c7 RL |
15896 | wx_cv_type_pthread_mutexattr_t=no |
15897 | ||
4f14bcd8 | 15898 | |
3fed1840 | 15899 | fi |
698dcdb6 | 15900 | rm -f conftest* |
7274f1c7 | 15901 | |
3fed1840 | 15902 | fi |
4f14bcd8 GD |
15903 | |
15904 | echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6 | |
15905 | ||
7274f1c7 RL |
15906 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then |
15907 | cat >> confdefs.h <<\EOF | |
4f14bcd8 GD |
15908 | #define HAVE_PTHREAD_MUTEXATTR_T 1 |
15909 | EOF | |
15910 | ||
7274f1c7 RL |
15911 | else |
15912 | echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6 | |
94054c1d | 15913 | echo "configure:15914: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 |
4f14bcd8 | 15914 | if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then |
698dcdb6 | 15915 | echo $ac_n "(cached) $ac_c" 1>&6 |
3fed1840 | 15916 | else |
4f14bcd8 | 15917 | |
7274f1c7 | 15918 | cat > conftest.$ac_ext <<EOF |
94054c1d | 15919 | #line 15920 "configure" |
3fed1840 | 15920 | #include "confdefs.h" |
4f14bcd8 | 15921 | #include <pthread.h> |
698dcdb6 | 15922 | int main() { |
4f14bcd8 | 15923 | |
7274f1c7 RL |
15924 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; |
15925 | ||
698dcdb6 VZ |
15926 | ; return 0; } |
15927 | EOF | |
94054c1d | 15928 | if { (eval echo configure:15929: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 15929 | rm -rf conftest* |
4f14bcd8 | 15930 | |
7274f1c7 RL |
15931 | wx_cv_type_pthread_rec_mutex_init=yes |
15932 | ||
698dcdb6 VZ |
15933 | else |
15934 | echo "configure: failed program was:" >&5 | |
15935 | cat conftest.$ac_ext >&5 | |
15936 | rm -rf conftest* | |
4f14bcd8 | 15937 | |
7274f1c7 RL |
15938 | wx_cv_type_pthread_rec_mutex_init=no |
15939 | ||
4f14bcd8 | 15940 | |
698dcdb6 VZ |
15941 | fi |
15942 | rm -f conftest* | |
7274f1c7 | 15943 | |
3fed1840 RR |
15944 | fi |
15945 | ||
4f14bcd8 | 15946 | echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6 |
7274f1c7 RL |
15947 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then |
15948 | cat >> confdefs.h <<\EOF | |
4f14bcd8 GD |
15949 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 |
15950 | EOF | |
3fed1840 | 15951 | |
7274f1c7 RL |
15952 | else |
15953 | echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2 | |
15954 | fi | |
15955 | fi | |
4f14bcd8 | 15956 | |
7274f1c7 | 15957 | THREADS_LINK=" -l$THREADS_LINK" |
4f14bcd8 | 15958 | |
7274f1c7 RL |
15959 | if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then |
15960 | CPPFLAGS="$CFLAGS -mt" | |
15961 | CXXFLAGS="$CXXFLAGS -mt" | |
15962 | LDFLAGS="$LDFLAGS -mt" | |
15963 | fi | |
15964 | fi | |
3fed1840 | 15965 | |
4f14bcd8 GD |
15966 | fi |
15967 | ||
15968 | if test "$wxUSE_THREADS" = "yes"; then | |
3a922bb4 | 15969 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 15970 | #define wxUSE_THREADS 1 |
7b6058cd GD |
15971 | EOF |
15972 | ||
4f14bcd8 GD |
15973 | |
15974 | if test "$USE_DARWIN" != 1; then | |
3d63bc3a | 15975 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -D_REENTRANT" |
4f14bcd8 GD |
15976 | fi |
15977 | ||
15978 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
698dcdb6 | 15979 | else |
4f14bcd8 GD |
15980 | if test "$ac_cv_func_strtok_r" = "yes"; then |
15981 | echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6 | |
94054c1d | 15982 | echo "configure:15983: checking if -D_REENTRANT is needed" >&5 |
4f14bcd8 GD |
15983 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
15984 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
15985 | echo "$ac_t""yes" 1>&6 | |
15986 | else | |
15987 | echo "$ac_t""no" 1>&6 | |
15988 | fi | |
15989 | fi | |
15990 | fi | |
15991 | ||
15992 | if test "$WXGTK20" = 1 ; then | |
15993 | cat >> confdefs.h <<EOF | |
15994 | #define __WXGTK20__ $WXGTK20 | |
698dcdb6 | 15995 | EOF |
4f14bcd8 GD |
15996 | |
15997 | WXGTK12=1 | |
10f2d63a | 15998 | fi |
4f14bcd8 GD |
15999 | |
16000 | if test "$WXGTK12" = 1 ; then | |
16001 | cat >> confdefs.h <<EOF | |
16002 | #define __WXGTK12__ $WXGTK12 | |
16003 | EOF | |
16004 | ||
10f2d63a | 16005 | fi |
698dcdb6 | 16006 | |
4f14bcd8 GD |
16007 | if test "$WXGTK127" = 1 ; then |
16008 | cat >> confdefs.h <<EOF | |
16009 | #define __WXGTK127__ $WXGTK127 | |
698dcdb6 | 16010 | EOF |
4f14bcd8 | 16011 | |
698dcdb6 | 16012 | fi |
10f2d63a | 16013 | |
4f14bcd8 GD |
16014 | WXDEBUG= |
16015 | ||
16016 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
16017 | WXDEBUG="-g" | |
16018 | wxUSE_OPTIMISE=no | |
698dcdb6 | 16019 | fi |
4f14bcd8 GD |
16020 | |
16021 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
16022 | wxUSE_DEBUG_INFO=yes | |
16023 | WXDEBUG="-ggdb" | |
10f2d63a VZ |
16024 | fi |
16025 | ||
4f14bcd8 GD |
16026 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then |
16027 | cat >> confdefs.h <<\EOF | |
16028 | #define WXDEBUG 1 | |
16029 | EOF | |
16030 | ||
16031 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
10f2d63a | 16032 | else |
4f14bcd8 GD |
16033 | if test "$wxUSE_GTK" = 1 ; then |
16034 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
16035 | fi | |
16036 | fi | |
16037 | ||
16038 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
16039 | cat >> confdefs.h <<\EOF | |
16040 | #define wxUSE_MEMORY_TRACING 1 | |
16041 | EOF | |
16042 | ||
16043 | cat >> confdefs.h <<\EOF | |
16044 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
16045 | EOF | |
16046 | ||
16047 | cat >> confdefs.h <<\EOF | |
16048 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
16049 | EOF | |
16050 | ||
16051 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
16052 | fi | |
16053 | ||
16054 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
3d63bc3a | 16055 | DMALLOC_LIBS="-ldmalloc" |
4f14bcd8 GD |
16056 | fi |
16057 | ||
16058 | PROFILE= | |
16059 | if test "$wxUSE_PROFILE" = "yes" ; then | |
3d63bc3a | 16060 | PROFILE=" -pg" |
10f2d63a VZ |
16061 | fi |
16062 | ||
88e30f2b | 16063 | if test "$GCC" = "yes" ; then |
4f14bcd8 GD |
16064 | if test "$wxUSE_NO_RTTI" = "yes" ; then |
16065 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
3a922bb4 | 16066 | fi |
4f14bcd8 GD |
16067 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
16068 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
16069 | fi | |
16070 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
16071 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
16072 | fi | |
4f14bcd8 GD |
16073 | if test "$USE_WIN32" = 1 ; then |
16074 | # I'm not even really sure what this was ever added to solve, | |
16075 | # but someone added it for mingw native builds, so I guess | |
16076 | # they had a reason, right?? | |
16077 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return" | |
16078 | fi | |
16079 | fi | |
16080 | ||
16081 | ||
16082 | CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" ` | |
16083 | CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" ` | |
16084 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
16085 | OPTIMISE= | |
16086 | else | |
16087 | if test "$GCC" = yes ; then | |
16088 | OPTIMISE="-O2" | |
16089 | case "${host}" in | |
16090 | i586-*-*|i686-*-* ) | |
16091 | OPTIMISE="${OPTIMISE} " | |
16092 | ;; | |
16093 | esac | |
16094 | else | |
16095 | OPTIMISE="-O" | |
16096 | fi | |
16097 | fi | |
16098 | ||
16099 | if test "$WXWIN_COMPATIBILITY_2" = "yes"; then | |
16100 | cat >> confdefs.h <<\EOF | |
16101 | #define WXWIN_COMPATIBILITY_2 1 | |
16102 | EOF | |
16103 | ||
16104 | ||
16105 | WXWIN_COMPATIBILITY_2_2="yes" | |
16106 | fi | |
16107 | ||
16108 | if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then | |
16109 | cat >> confdefs.h <<\EOF | |
16110 | #define WXWIN_COMPATIBILITY_2_2 1 | |
16111 | EOF | |
16112 | ||
10f2d63a VZ |
16113 | fi |
16114 | ||
698dcdb6 | 16115 | |
10f2d63a | 16116 | if test "$wxUSE_GUI" = "yes"; then |
698dcdb6 | 16117 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16118 | #define wxUSE_GUI 1 |
16119 | EOF | |
16120 | ||
698dcdb6 | 16121 | |
10f2d63a | 16122 | else |
698dcdb6 | 16123 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16124 | #define wxUSE_NOGUI 1 |
16125 | EOF | |
16126 | ||
16127 | fi | |
16128 | ||
698dcdb6 | 16129 | |
10f2d63a | 16130 | if test "$wxUSE_UNIX" = "yes"; then |
698dcdb6 | 16131 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16132 | #define wxUSE_UNIX 1 |
16133 | EOF | |
16134 | ||
16135 | fi | |
16136 | ||
698dcdb6 | 16137 | |
10f2d63a | 16138 | if test "$wxUSE_APPLE_IEEE" = "yes"; then |
698dcdb6 | 16139 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16140 | #define wxUSE_APPLE_IEEE 1 |
16141 | EOF | |
16142 | ||
16143 | fi | |
16144 | ||
1e6feb95 VZ |
16145 | if test "$wxUSE_TIMER" = "yes"; then |
16146 | cat >> confdefs.h <<\EOF | |
16147 | #define wxUSE_TIMER 1 | |
16148 | EOF | |
16149 | ||
16150 | fi | |
16151 | ||
10f2d63a | 16152 | if test "$wxUSE_WAVE" = "yes"; then |
698dcdb6 | 16153 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16154 | #define wxUSE_WAVE 1 |
16155 | EOF | |
16156 | ||
16157 | fi | |
16158 | ||
1e6feb95 VZ |
16159 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
16160 | cat >> confdefs.h <<\EOF | |
16161 | #define wxUSE_CMDLINE_PARSER 1 | |
16162 | EOF | |
16163 | ||
16164 | fi | |
16165 | ||
16166 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
16167 | cat >> confdefs.h <<\EOF | |
16168 | #define wxUSE_STOPWATCH 1 | |
16169 | EOF | |
16170 | ||
16171 | fi | |
16172 | ||
16173 | if test "$wxUSE_DATETIME" = "yes"; then | |
16174 | cat >> confdefs.h <<\EOF | |
16175 | #define wxUSE_DATETIME 1 | |
16176 | EOF | |
16177 | ||
16178 | fi | |
16179 | ||
16180 | if test "$wxUSE_TIMEDATE" = "yes"; then | |
16181 | cat >> confdefs.h <<\EOF | |
16182 | #define wxUSE_TIMEDATE 1 | |
16183 | EOF | |
16184 | ||
16185 | fi | |
16186 | ||
10f2d63a | 16187 | if test "$wxUSE_FILE" = "yes"; then |
698dcdb6 | 16188 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16189 | #define wxUSE_FILE 1 |
16190 | EOF | |
16191 | ||
16192 | fi | |
16193 | ||
1e6feb95 VZ |
16194 | if test "$wxUSE_FFILE" = "yes"; then |
16195 | cat >> confdefs.h <<\EOF | |
16196 | #define wxUSE_FFILE 1 | |
16197 | EOF | |
16198 | ||
16199 | fi | |
16200 | ||
24528b0c | 16201 | if test "$wxUSE_FILESYSTEM" = "yes"; then |
698dcdb6 | 16202 | cat >> confdefs.h <<\EOF |
24528b0c VS |
16203 | #define wxUSE_FILESYSTEM 1 |
16204 | EOF | |
16205 | ||
16206 | fi | |
16207 | ||
10f2d63a | 16208 | if test "$wxUSE_FS_INET" = "yes"; then |
698dcdb6 | 16209 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16210 | #define wxUSE_FS_INET 1 |
16211 | EOF | |
16212 | ||
16213 | fi | |
16214 | ||
16215 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
698dcdb6 | 16216 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16217 | #define wxUSE_FS_ZIP 1 |
16218 | EOF | |
16219 | ||
16220 | fi | |
16221 | ||
16222 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
698dcdb6 | 16223 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16224 | #define wxUSE_ZIPSTREAM 1 |
16225 | EOF | |
16226 | ||
16227 | fi | |
16228 | ||
eb4efbdc | 16229 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
698dcdb6 | 16230 | cat >> confdefs.h <<\EOF |
eb4efbdc VZ |
16231 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
16232 | EOF | |
16233 | ||
16234 | fi | |
16235 | ||
4f3c5f06 | 16236 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
698dcdb6 | 16237 | cat >> confdefs.h <<\EOF |
4f3c5f06 VZ |
16238 | #define wxUSE_SNGLINST_CHECKER 1 |
16239 | EOF | |
16240 | ||
16241 | fi | |
16242 | ||
10f2d63a | 16243 | if test "$wxUSE_BUSYINFO" = "yes"; then |
698dcdb6 | 16244 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16245 | #define wxUSE_BUSYINFO 1 |
16246 | EOF | |
16247 | ||
16248 | fi | |
16249 | ||
16250 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
698dcdb6 | 16251 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16252 | #define wxUSE_STD_IOSTREAM 1 |
16253 | EOF | |
16254 | ||
16255 | fi | |
16256 | ||
a3a584a7 VZ |
16257 | if test "$wxUSE_TEXTBUFFER" = "yes"; then |
16258 | cat >> confdefs.h <<\EOF | |
16259 | #define wxUSE_TEXTBUFFER 1 | |
16260 | EOF | |
16261 | ||
16262 | fi | |
16263 | ||
10f2d63a | 16264 | if test "$wxUSE_TEXTFILE" = "yes"; then |
a3a584a7 VZ |
16265 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then |
16266 | echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer and won't be compiled without them" 1>&2 | |
10f2d63a | 16267 | else |
698dcdb6 | 16268 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16269 | #define wxUSE_TEXTFILE 1 |
16270 | EOF | |
16271 | ||
16272 | fi | |
16273 | fi | |
16274 | ||
16275 | if test "$wxUSE_CONFIG" = "yes" ; then | |
16276 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
698dcdb6 | 16277 | echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2 |
10f2d63a | 16278 | else |
698dcdb6 | 16279 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16280 | #define wxUSE_CONFIG 1 |
16281 | EOF | |
16282 | ||
16283 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
16284 | fi | |
16285 | fi | |
16286 | ||
16287 | if test "$wxUSE_INTL" = "yes" ; then | |
16288 | if test "$wxUSE_FILE" != "yes"; then | |
698dcdb6 | 16289 | echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2 |
10f2d63a | 16290 | else |
698dcdb6 | 16291 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16292 | #define wxUSE_INTL 1 |
16293 | EOF | |
16294 | ||
16295 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
f6bcfd97 | 16296 | GUIDIST="$GUIDIST INTL_DIST" |
10f2d63a VZ |
16297 | fi |
16298 | fi | |
16299 | ||
16300 | if test "$wxUSE_LOG" = "yes"; then | |
698dcdb6 | 16301 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16302 | #define wxUSE_LOG 1 |
16303 | EOF | |
16304 | ||
d73be714 VZ |
16305 | |
16306 | if test "$wxUSE_LOGGUI" = "yes"; then | |
16307 | cat >> confdefs.h <<\EOF | |
16308 | #define wxUSE_LOGGUI 1 | |
16309 | EOF | |
16310 | ||
16311 | fi | |
16312 | ||
16313 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
16314 | cat >> confdefs.h <<\EOF | |
16315 | #define wxUSE_LOGWINDOW 1 | |
16316 | EOF | |
16317 | ||
16318 | fi | |
10f2d63a VZ |
16319 | fi |
16320 | ||
16321 | if test "$wxUSE_LONGLONG" = "yes"; then | |
698dcdb6 | 16322 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16323 | #define wxUSE_LONGLONG 1 |
16324 | EOF | |
16325 | ||
16326 | fi | |
16327 | ||
e8f65ba6 | 16328 | if test "$wxUSE_GEOMETRY" = "yes"; then |
698dcdb6 | 16329 | cat >> confdefs.h <<\EOF |
e8f65ba6 RR |
16330 | #define wxUSE_GEOMETRY 1 |
16331 | EOF | |
16332 | ||
16333 | fi | |
16334 | ||
10f2d63a | 16335 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
698dcdb6 | 16336 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16337 | #define wxUSE_DIALUP_MANAGER 1 |
16338 | EOF | |
16339 | ||
70f7a477 | 16340 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" |
10f2d63a VZ |
16341 | fi |
16342 | ||
16343 | if test "$wxUSE_STREAMS" = "yes" ; then | |
698dcdb6 | 16344 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16345 | #define wxUSE_STREAMS 1 |
16346 | EOF | |
16347 | ||
16348 | fi | |
16349 | ||
1e487827 | 16350 | |
1e6feb95 | 16351 | if test "$wxUSE_DATETIME" = "yes"; then |
698dcdb6 | 16352 | for ac_func in strptime |
83307f33 | 16353 | do |
698dcdb6 | 16354 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
94054c1d | 16355 | echo "configure:16356: checking for $ac_func" >&5 |
698dcdb6 VZ |
16356 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16357 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16358 | else | |
16359 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 16360 | #line 16361 "configure" |
83307f33 VZ |
16361 | #include "confdefs.h" |
16362 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16363 | which can conflict with char $ac_func(); below. */ |
83307f33 VZ |
16364 | #include <assert.h> |
16365 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16366 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16367 | builtin and then its argument prototype would still apply. */ |
16368 | char $ac_func(); | |
16369 | ||
16370 | int main() { | |
83307f33 VZ |
16371 | |
16372 | /* The GNU C library defines this for functions which it implements | |
16373 | to always fail with ENOSYS. Some functions are actually named | |
16374 | something starting with __ and the normal name is an alias. */ | |
16375 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16376 | choke me | |
16377 | #else | |
698dcdb6 | 16378 | $ac_func(); |
83307f33 VZ |
16379 | #endif |
16380 | ||
698dcdb6 | 16381 | ; return 0; } |
83307f33 | 16382 | EOF |
94054c1d | 16383 | if { (eval echo configure:16384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16384 | rm -rf conftest* |
16385 | eval "ac_cv_func_$ac_func=yes" | |
16386 | else | |
16387 | echo "configure: failed program was:" >&5 | |
16388 | cat conftest.$ac_ext >&5 | |
16389 | rm -rf conftest* | |
16390 | eval "ac_cv_func_$ac_func=no" | |
16391 | fi | |
16392 | rm -f conftest* | |
16393 | fi | |
83307f33 | 16394 | |
698dcdb6 VZ |
16395 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16396 | echo "$ac_t""yes" 1>&6 | |
16397 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16398 | cat >> confdefs.h <<EOF | |
16399 | #define $ac_tr_func 1 | |
16400 | EOF | |
16401 | ||
16402 | else | |
16403 | echo "$ac_t""no" 1>&6 | |
83307f33 VZ |
16404 | fi |
16405 | done | |
16406 | ||
1e487827 | 16407 | |
698dcdb6 | 16408 | echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6 |
94054c1d | 16409 | echo "configure:16410: checking for timezone variable in <time.h>" >&5 |
698dcdb6 VZ |
16410 | if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then |
16411 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16412 | else | |
16413 | ||
16414 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 16415 | #line 16416 "configure" |
360d6699 VZ |
16416 | #include "confdefs.h" |
16417 | ||
b4085ce6 | 16418 | #include <time.h> |
698dcdb6 VZ |
16419 | |
16420 | int main() { | |
360d6699 VZ |
16421 | |
16422 | int tz; | |
4f11a343 | 16423 | tz = timezone; |
698dcdb6 VZ |
16424 | |
16425 | ; return 0; } | |
16426 | EOF | |
94054c1d | 16427 | if { (eval echo configure:16428: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
16428 | rm -rf conftest* |
16429 | ||
4f11a343 | 16430 | wx_cv_var_timezone=timezone |
698dcdb6 | 16431 | |
360d6699 | 16432 | else |
698dcdb6 VZ |
16433 | echo "configure: failed program was:" >&5 |
16434 | cat conftest.$ac_ext >&5 | |
16435 | rm -rf conftest* | |
16436 | ||
16437 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 16438 | #line 16439 "configure" |
360d6699 VZ |
16439 | #include "confdefs.h" |
16440 | ||
b4085ce6 | 16441 | #include <time.h> |
698dcdb6 VZ |
16442 | |
16443 | int main() { | |
360d6699 VZ |
16444 | |
16445 | int tz; | |
16446 | tz = _timezone; | |
698dcdb6 VZ |
16447 | |
16448 | ; return 0; } | |
16449 | EOF | |
94054c1d | 16450 | if { (eval echo configure:16451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
16451 | rm -rf conftest* |
16452 | ||
360d6699 | 16453 | wx_cv_var_timezone=_timezone |
698dcdb6 | 16454 | |
5357c8e8 | 16455 | else |
698dcdb6 VZ |
16456 | echo "configure: failed program was:" >&5 |
16457 | cat conftest.$ac_ext >&5 | |
16458 | rm -rf conftest* | |
16459 | ||
16460 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 16461 | #line 16462 "configure" |
5357c8e8 VZ |
16462 | #include "confdefs.h" |
16463 | ||
b4085ce6 | 16464 | #include <time.h> |
698dcdb6 VZ |
16465 | |
16466 | int main() { | |
5357c8e8 VZ |
16467 | |
16468 | int tz; | |
4f11a343 | 16469 | tz = __timezone; |
698dcdb6 VZ |
16470 | |
16471 | ; return 0; } | |
16472 | EOF | |
94054c1d | 16473 | if { (eval echo configure:16474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
16474 | rm -rf conftest* |
16475 | ||
4f11a343 | 16476 | wx_cv_var_timezone=__timezone |
698dcdb6 | 16477 | |
360d6699 | 16478 | else |
698dcdb6 VZ |
16479 | echo "configure: failed program was:" >&5 |
16480 | cat conftest.$ac_ext >&5 | |
16481 | rm -rf conftest* | |
16482 | { echo "configure: error: no timezone variable" 1>&2; exit 1; } | |
16483 | ||
360d6699 | 16484 | fi |
698dcdb6 VZ |
16485 | rm -f conftest* |
16486 | ||
16487 | ||
360d6699 | 16488 | fi |
698dcdb6 VZ |
16489 | rm -f conftest* |
16490 | ||
16491 | ||
6232543b | 16492 | fi |
698dcdb6 VZ |
16493 | rm -f conftest* |
16494 | ||
16495 | ||
1e487827 | 16496 | fi |
703e0a69 | 16497 | |
698dcdb6 VZ |
16498 | echo "$ac_t""$wx_cv_var_timezone" 1>&6 |
16499 | ||
16500 | cat >> confdefs.h <<EOF | |
360d6699 VZ |
16501 | #define WX_TIMEZONE $wx_cv_var_timezone |
16502 | EOF | |
16503 | ||
698dcdb6 VZ |
16504 | |
16505 | for ac_func in localtime | |
afc31813 | 16506 | do |
698dcdb6 | 16507 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
94054c1d | 16508 | echo "configure:16509: checking for $ac_func" >&5 |
698dcdb6 VZ |
16509 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16510 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16511 | else | |
16512 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 16513 | #line 16514 "configure" |
10f2d63a | 16514 | #include "confdefs.h" |
afc31813 | 16515 | /* System header to define __stub macros and hopefully few prototypes, |
698dcdb6 | 16516 | which can conflict with char $ac_func(); below. */ |
afc31813 VZ |
16517 | #include <assert.h> |
16518 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16519 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16520 | builtin and then its argument prototype would still apply. */ |
16521 | char $ac_func(); | |
16522 | ||
16523 | int main() { | |
afc31813 VZ |
16524 | |
16525 | /* The GNU C library defines this for functions which it implements | |
16526 | to always fail with ENOSYS. Some functions are actually named | |
16527 | something starting with __ and the normal name is an alias. */ | |
16528 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16529 | choke me | |
16530 | #else | |
698dcdb6 | 16531 | $ac_func(); |
afc31813 VZ |
16532 | #endif |
16533 | ||
698dcdb6 | 16534 | ; return 0; } |
10f2d63a | 16535 | EOF |
94054c1d | 16536 | if { (eval echo configure:16537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16537 | rm -rf conftest* |
16538 | eval "ac_cv_func_$ac_func=yes" | |
16539 | else | |
16540 | echo "configure: failed program was:" >&5 | |
16541 | cat conftest.$ac_ext >&5 | |
16542 | rm -rf conftest* | |
16543 | eval "ac_cv_func_$ac_func=no" | |
16544 | fi | |
16545 | rm -f conftest* | |
16546 | fi | |
afc31813 | 16547 | |
698dcdb6 VZ |
16548 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16549 | echo "$ac_t""yes" 1>&6 | |
16550 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16551 | cat >> confdefs.h <<EOF | |
16552 | #define $ac_tr_func 1 | |
16553 | EOF | |
16554 | ||
16555 | else | |
16556 | echo "$ac_t""no" 1>&6 | |
afc31813 VZ |
16557 | fi |
16558 | done | |
16559 | ||
1e487827 | 16560 | |
698dcdb6 VZ |
16561 | if test "$ac_cv_func_localtime" = "yes"; then |
16562 | echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 | |
94054c1d | 16563 | echo "configure:16564: checking for tm_gmtoff in struct tm" >&5 |
698dcdb6 VZ |
16564 | if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then |
16565 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16566 | else | |
16567 | ||
16568 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 16569 | #line 16570 "configure" |
0470b1e6 VZ |
16570 | #include "confdefs.h" |
16571 | ||
b4085ce6 | 16572 | #include <time.h> |
698dcdb6 VZ |
16573 | |
16574 | int main() { | |
0470b1e6 VZ |
16575 | |
16576 | struct tm tm; | |
16577 | tm.tm_gmtoff++; | |
698dcdb6 VZ |
16578 | |
16579 | ; return 0; } | |
16580 | EOF | |
94054c1d | 16581 | if { (eval echo configure:16582: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
16582 | rm -rf conftest* |
16583 | ||
f03a98d8 | 16584 | wx_cv_struct_tm_has_gmtoff=yes |
698dcdb6 | 16585 | |
0470b1e6 | 16586 | else |
698dcdb6 VZ |
16587 | echo "configure: failed program was:" >&5 |
16588 | cat conftest.$ac_ext >&5 | |
16589 | rm -rf conftest* | |
16590 | wx_cv_struct_tm_has_gmtoff=no | |
16591 | ||
0470b1e6 | 16592 | fi |
698dcdb6 VZ |
16593 | rm -f conftest* |
16594 | ||
1e487827 | 16595 | fi |
698dcdb6 VZ |
16596 | |
16597 | echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6 | |
6232543b VS |
16598 | fi |
16599 | ||
16600 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
698dcdb6 | 16601 | cat >> confdefs.h <<\EOF |
6232543b VS |
16602 | #define WX_GMTOFF_IN_TM 1 |
16603 | EOF | |
0470b1e6 | 16604 | |
3fcdd07b VZ |
16605 | fi |
16606 | ||
698dcdb6 | 16607 | for ac_func in gettimeofday ftime |
3fcdd07b | 16608 | do |
698dcdb6 | 16609 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
94054c1d | 16610 | echo "configure:16611: checking for $ac_func" >&5 |
698dcdb6 VZ |
16611 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16612 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16613 | else | |
16614 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 16615 | #line 16616 "configure" |
3fcdd07b VZ |
16616 | #include "confdefs.h" |
16617 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16618 | which can conflict with char $ac_func(); below. */ |
3fcdd07b VZ |
16619 | #include <assert.h> |
16620 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16621 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16622 | builtin and then its argument prototype would still apply. */ |
16623 | char $ac_func(); | |
16624 | ||
16625 | int main() { | |
3fcdd07b VZ |
16626 | |
16627 | /* The GNU C library defines this for functions which it implements | |
16628 | to always fail with ENOSYS. Some functions are actually named | |
16629 | something starting with __ and the normal name is an alias. */ | |
16630 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16631 | choke me | |
16632 | #else | |
698dcdb6 | 16633 | $ac_func(); |
3fcdd07b VZ |
16634 | #endif |
16635 | ||
698dcdb6 VZ |
16636 | ; return 0; } |
16637 | EOF | |
94054c1d | 16638 | if { (eval echo configure:16639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16639 | rm -rf conftest* |
16640 | eval "ac_cv_func_$ac_func=yes" | |
16641 | else | |
16642 | echo "configure: failed program was:" >&5 | |
16643 | cat conftest.$ac_ext >&5 | |
16644 | rm -rf conftest* | |
16645 | eval "ac_cv_func_$ac_func=no" | |
16646 | fi | |
16647 | rm -f conftest* | |
16648 | fi | |
16649 | ||
16650 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16651 | echo "$ac_t""yes" 1>&6 | |
16652 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16653 | cat >> confdefs.h <<EOF | |
16654 | #define $ac_tr_func 1 | |
3fcdd07b VZ |
16655 | EOF |
16656 | break | |
698dcdb6 VZ |
16657 | else |
16658 | echo "$ac_t""no" 1>&6 | |
3fcdd07b VZ |
16659 | fi |
16660 | done | |
16661 | ||
afc31813 | 16662 | |
698dcdb6 VZ |
16663 | if test "$ac_cv_func_gettimeofday" = "yes"; then |
16664 | echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6 | |
94054c1d | 16665 | echo "configure:16666: checking whether gettimeofday takes two arguments" >&5 |
698dcdb6 VZ |
16666 | if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then |
16667 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16668 | else | |
16669 | ||
16670 | ||
16671 | ac_ext=C | |
16672 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 16673 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
16674 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16675 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16676 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 16677 | |
698dcdb6 VZ |
16678 | |
16679 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 16680 | #line 16681 "configure" |
10f2d63a | 16681 | #include "confdefs.h" |
afc31813 VZ |
16682 | |
16683 | #include <sys/time.h> | |
16684 | #include <unistd.h> | |
698dcdb6 VZ |
16685 | |
16686 | int main() { | |
afc31813 VZ |
16687 | |
16688 | struct timeval tv; | |
776862b4 | 16689 | gettimeofday(&tv, NULL); |
698dcdb6 VZ |
16690 | |
16691 | ; return 0; } | |
16692 | EOF | |
94054c1d | 16693 | if { (eval echo configure:16694: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 16694 | rm -rf conftest* |
afc31813 | 16695 | wx_cv_func_gettimeofday_has_2_args=yes |
10f2d63a | 16696 | else |
698dcdb6 VZ |
16697 | echo "configure: failed program was:" >&5 |
16698 | cat conftest.$ac_ext >&5 | |
16699 | rm -rf conftest* | |
16700 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 16701 | #line 16702 "configure" |
10f2d63a | 16702 | #include "confdefs.h" |
afc31813 VZ |
16703 | |
16704 | #include <sys/time.h> | |
16705 | #include <unistd.h> | |
698dcdb6 VZ |
16706 | |
16707 | int main() { | |
afc31813 VZ |
16708 | |
16709 | struct timeval tv; | |
16710 | gettimeofday(&tv); | |
698dcdb6 VZ |
16711 | |
16712 | ; return 0; } | |
16713 | EOF | |
94054c1d | 16714 | if { (eval echo configure:16715: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 16715 | rm -rf conftest* |
afc31813 | 16716 | wx_cv_func_gettimeofday_has_2_args=no |
10f2d63a | 16717 | else |
698dcdb6 VZ |
16718 | echo "configure: failed program was:" >&5 |
16719 | cat conftest.$ac_ext >&5 | |
16720 | rm -rf conftest* | |
776862b4 VZ |
16721 | |
16722 | echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2 | |
16723 | wx_cv_func_gettimeofday_has_2_args=unknown | |
16724 | ||
698dcdb6 | 16725 | |
10f2d63a | 16726 | fi |
698dcdb6 VZ |
16727 | rm -f conftest* |
16728 | ||
10f2d63a | 16729 | fi |
698dcdb6 | 16730 | rm -f conftest* |
afc31813 | 16731 | ac_ext=c |
698dcdb6 | 16732 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 16733 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
16734 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16735 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16736 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a | 16737 | |
698dcdb6 | 16738 | |
afc31813 | 16739 | fi |
698dcdb6 VZ |
16740 | |
16741 | echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6 | |
c63c7106 | 16742 | |
afc31813 | 16743 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then |
698dcdb6 | 16744 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
16745 | #define WX_GETTIMEOFDAY_NO_TZ 1 |
16746 | EOF | |
16747 | ||
16748 | fi | |
16749 | fi | |
16750 | ||
698dcdb6 | 16751 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
16752 | #define wxUSE_TIMEDATE 1 |
16753 | EOF | |
16754 | ||
16755 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
16756 | fi | |
16757 | ||
698dcdb6 | 16758 | |
b089607b VZ |
16759 | if test "$TOOLKIT" != "MSW"; then |
16760 | ||
3a922bb4 RL |
16761 | if test "$wxUSE_SOCKETS" = "yes"; then |
16762 | echo $ac_n "checking for socket""... $ac_c" 1>&6 | |
94054c1d | 16763 | echo "configure:16764: checking for socket" >&5 |
698dcdb6 VZ |
16764 | if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
16765 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 16766 | else |
698dcdb6 | 16767 | cat > conftest.$ac_ext <<EOF |
94054c1d | 16768 | #line 16769 "configure" |
c63c7106 VZ |
16769 | #include "confdefs.h" |
16770 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16771 | which can conflict with char socket(); below. */ |
c63c7106 VZ |
16772 | #include <assert.h> |
16773 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16774 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16775 | builtin and then its argument prototype would still apply. */ |
16776 | char socket(); | |
16777 | ||
16778 | int main() { | |
c63c7106 VZ |
16779 | |
16780 | /* The GNU C library defines this for functions which it implements | |
16781 | to always fail with ENOSYS. Some functions are actually named | |
16782 | something starting with __ and the normal name is an alias. */ | |
16783 | #if defined (__stub_socket) || defined (__stub___socket) | |
16784 | choke me | |
16785 | #else | |
698dcdb6 | 16786 | socket(); |
c63c7106 VZ |
16787 | #endif |
16788 | ||
698dcdb6 VZ |
16789 | ; return 0; } |
16790 | EOF | |
94054c1d | 16791 | if { (eval echo configure:16792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16792 | rm -rf conftest* |
16793 | eval "ac_cv_func_socket=yes" | |
16794 | else | |
16795 | echo "configure: failed program was:" >&5 | |
16796 | cat conftest.$ac_ext >&5 | |
16797 | rm -rf conftest* | |
16798 | eval "ac_cv_func_socket=no" | |
16799 | fi | |
16800 | rm -f conftest* | |
16801 | fi | |
16802 | ||
16803 | if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
16804 | echo "$ac_t""yes" 1>&6 | |
c63c7106 VZ |
16805 | : |
16806 | else | |
698dcdb6 VZ |
16807 | echo "$ac_t""no" 1>&6 |
16808 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | |
94054c1d | 16809 | echo "configure:16810: checking for socket in -lsocket" >&5 |
698dcdb6 VZ |
16810 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
16811 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16812 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 16813 | else |
698dcdb6 | 16814 | ac_save_LIBS="$LIBS" |
c63c7106 | 16815 | LIBS="-lsocket $LIBS" |
698dcdb6 | 16816 | cat > conftest.$ac_ext <<EOF |
94054c1d | 16817 | #line 16818 "configure" |
c63c7106 VZ |
16818 | #include "confdefs.h" |
16819 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16820 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16821 | builtin and then its argument prototype would still apply. */ |
16822 | char socket(); | |
16823 | ||
16824 | int main() { | |
16825 | socket() | |
16826 | ; return 0; } | |
16827 | EOF | |
94054c1d | 16828 | if { (eval echo configure:16829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16829 | rm -rf conftest* |
16830 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16831 | else | |
16832 | echo "configure: failed program was:" >&5 | |
16833 | cat conftest.$ac_ext >&5 | |
16834 | rm -rf conftest* | |
16835 | eval "ac_cv_lib_$ac_lib_var=no" | |
16836 | fi | |
16837 | rm -f conftest* | |
16838 | LIBS="$ac_save_LIBS" | |
16839 | ||
16840 | fi | |
16841 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16842 | echo "$ac_t""yes" 1>&6 | |
c63c7106 | 16843 | INET_LINK="$INET_LINK -lsocket" |
c63c7106 | 16844 | else |
698dcdb6 | 16845 | echo "$ac_t""no" 1>&6 |
afc31813 | 16846 | |
3a922bb4 RL |
16847 | echo "configure: warning: socket library not found - sockets will be disabled" 1>&2 |
16848 | wxUSE_SOCKETS=no | |
16849 | ||
698dcdb6 | 16850 | |
6232543b | 16851 | fi |
b089607b | 16852 | |
3a922bb4 | 16853 | |
1e487827 | 16854 | fi |
afc31813 | 16855 | |
3a922bb4 | 16856 | fi |
51a9faba | 16857 | |
3a922bb4 RL |
16858 | |
16859 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
16860 | echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6 | |
94054c1d | 16861 | echo "configure:16862: checking what is the type of the third argument of getsockname" >&5 |
698dcdb6 VZ |
16862 | if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then |
16863 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16864 | else | |
16865 | ||
3a922bb4 RL |
16866 | |
16867 | ac_ext=C | |
698dcdb6 | 16868 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
1e487827 | 16869 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
16870 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16871 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16872 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 16873 | |
698dcdb6 | 16874 | |
3a922bb4 | 16875 | cat > conftest.$ac_ext <<EOF |
94054c1d | 16876 | #line 16877 "configure" |
afc31813 | 16877 | #include "confdefs.h" |
51a9faba | 16878 | |
3a922bb4 RL |
16879 | #include <sys/types.h> |
16880 | #include <sys/socket.h> | |
16881 | ||
698dcdb6 | 16882 | int main() { |
51a9faba | 16883 | |
3a922bb4 RL |
16884 | socklen_t len; |
16885 | getsockname(0, 0, &len); | |
16886 | ||
698dcdb6 VZ |
16887 | ; return 0; } |
16888 | EOF | |
94054c1d | 16889 | if { (eval echo configure:16890: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 16890 | rm -rf conftest* |
51a9faba | 16891 | wx_cv_type_getsockname3=socklen_t |
afc31813 | 16892 | else |
698dcdb6 VZ |
16893 | echo "configure: failed program was:" >&5 |
16894 | cat conftest.$ac_ext >&5 | |
16895 | rm -rf conftest* | |
16896 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 16897 | #line 16898 "configure" |
afc31813 | 16898 | #include "confdefs.h" |
51a9faba | 16899 | |
3a922bb4 RL |
16900 | #include <sys/types.h> |
16901 | #include <sys/socket.h> | |
16902 | ||
698dcdb6 | 16903 | int main() { |
51a9faba | 16904 | |
3a922bb4 RL |
16905 | size_t len; |
16906 | getsockname(0, 0, &len); | |
16907 | ||
698dcdb6 VZ |
16908 | ; return 0; } |
16909 | EOF | |
94054c1d | 16910 | if { (eval echo configure:16911: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 16911 | rm -rf conftest* |
51a9faba | 16912 | wx_cv_type_getsockname3=size_t |
afc31813 | 16913 | else |
698dcdb6 VZ |
16914 | echo "configure: failed program was:" >&5 |
16915 | cat conftest.$ac_ext >&5 | |
16916 | rm -rf conftest* | |
16917 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 16918 | #line 16919 "configure" |
afc31813 | 16919 | #include "confdefs.h" |
51a9faba | 16920 | |
3a922bb4 RL |
16921 | #include <sys/types.h> |
16922 | #include <sys/socket.h> | |
16923 | ||
698dcdb6 | 16924 | int main() { |
51a9faba | 16925 | |
3a922bb4 RL |
16926 | int len; |
16927 | getsockname(0, 0, &len); | |
16928 | ||
698dcdb6 VZ |
16929 | ; return 0; } |
16930 | EOF | |
94054c1d | 16931 | if { (eval echo configure:16932: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 16932 | rm -rf conftest* |
51a9faba | 16933 | wx_cv_type_getsockname3=int |
afc31813 | 16934 | else |
698dcdb6 VZ |
16935 | echo "configure: failed program was:" >&5 |
16936 | cat conftest.$ac_ext >&5 | |
16937 | rm -rf conftest* | |
16938 | wx_cv_type_getsockname3=unknown | |
3a922bb4 | 16939 | |
afc31813 | 16940 | fi |
698dcdb6 | 16941 | rm -f conftest* |
3a922bb4 | 16942 | |
afc31813 | 16943 | fi |
698dcdb6 | 16944 | rm -f conftest* |
3a922bb4 | 16945 | |
afc31813 | 16946 | fi |
698dcdb6 | 16947 | rm -f conftest* |
51a9faba | 16948 | |
3a922bb4 | 16949 | ac_ext=c |
698dcdb6 | 16950 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
afc31813 | 16951 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
16952 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16953 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16954 | cross_compiling=$ac_cv_prog_cc_cross | |
afc31813 | 16955 | |
3a922bb4 | 16956 | |
51a9faba | 16957 | fi |
698dcdb6 VZ |
16958 | |
16959 | echo "$ac_t""$wx_cv_type_getsockname3" 1>&6 | |
51a9faba | 16960 | |
3a922bb4 RL |
16961 | if test "$wx_cv_type_getsockname3" = "unknown"; then |
16962 | wxUSE_SOCKETS=no | |
16963 | echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2 | |
16964 | else | |
16965 | cat >> confdefs.h <<EOF | |
51a9faba VZ |
16966 | #define SOCKLEN_T $wx_cv_type_getsockname3 |
16967 | EOF | |
16968 | ||
3a922bb4 | 16969 | fi |
51a9faba VZ |
16970 | fi |
16971 | fi | |
afc31813 | 16972 | |
51a9faba | 16973 | if test "$wxUSE_SOCKETS" = "yes" ; then |
698dcdb6 | 16974 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
16975 | #define wxUSE_SOCKETS 1 |
16976 | EOF | |
16977 | ||
70f7a477 | 16978 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" |
afc31813 VZ |
16979 | fi |
16980 | ||
698dcdb6 | 16981 | |
dc3d889d VZ |
16982 | if test "$wxUSE_GUI" = "yes"; then |
16983 | ||
3a922bb4 RL |
16984 | if test "$TOOLKIT" != "MSW"; then |
16985 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
16986 | for ac_hdr in linux/joystick.h | |
10f2d63a | 16987 | do |
698dcdb6 VZ |
16988 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
16989 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
94054c1d | 16990 | echo "configure:16991: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
16991 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
16992 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16993 | else | |
16994 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 16995 | #line 16996 "configure" |
10f2d63a | 16996 | #include "confdefs.h" |
698dcdb6 VZ |
16997 | #include <$ac_hdr> |
16998 | EOF | |
16999 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
94054c1d | 17000 | { (eval echo configure:17001: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
17001 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
17002 | if test -z "$ac_err"; then | |
17003 | rm -rf conftest* | |
17004 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 17005 | else |
698dcdb6 VZ |
17006 | echo "$ac_err" >&5 |
17007 | echo "configure: failed program was:" >&5 | |
10f2d63a | 17008 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
17009 | rm -rf conftest* |
17010 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 17011 | fi |
698dcdb6 | 17012 | rm -f conftest* |
10f2d63a | 17013 | fi |
698dcdb6 VZ |
17014 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
17015 | echo "$ac_t""yes" 1>&6 | |
17016 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
17017 | cat >> confdefs.h <<EOF | |
17018 | #define $ac_tr_hdr 1 | |
10f2d63a | 17019 | EOF |
698dcdb6 VZ |
17020 | |
17021 | else | |
17022 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
17023 | fi |
17024 | done | |
17025 | ||
3a922bb4 RL |
17026 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then |
17027 | wxUSE_JOYSTICK=no | |
17028 | echo "configure: warning: Joystick not supported by this system" 1>&2 | |
17029 | fi | |
17030 | fi | |
17031 | fi | |
b089607b | 17032 | |
3a922bb4 RL |
17033 | if test "$wxUSE_JOYSTICK" = "yes"; then |
17034 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
17035 | #define wxUSE_JOYSTICK 1 |
17036 | EOF | |
17037 | ||
3a922bb4 RL |
17038 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
17039 | fi | |
dc3d889d VZ |
17040 | fi |
17041 | ||
698dcdb6 | 17042 | |
b089607b VZ |
17043 | if test "$TOOLKIT" != "MSW"; then |
17044 | ||
3a922bb4 RL |
17045 | HAVE_DL_FUNCS=0 |
17046 | HAVE_SHL_FUNCS=0 | |
17047 | if test "$wxUSE_DYNLIB_CLASS" = "yes"; then | |
17048 | if test "$USE_DARWIN" = 1; then | |
17049 | HAVE_DL_FUNCS=1 | |
17050 | else | |
17051 | for ac_func in dlopen | |
10f2d63a | 17052 | do |
698dcdb6 | 17053 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
94054c1d | 17054 | echo "configure:17055: checking for $ac_func" >&5 |
698dcdb6 VZ |
17055 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17056 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17057 | else | |
17058 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 17059 | #line 17060 "configure" |
10f2d63a VZ |
17060 | #include "confdefs.h" |
17061 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 17062 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
17063 | #include <assert.h> |
17064 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17065 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
17066 | builtin and then its argument prototype would still apply. */ |
17067 | char $ac_func(); | |
17068 | ||
17069 | int main() { | |
10f2d63a VZ |
17070 | |
17071 | /* The GNU C library defines this for functions which it implements | |
17072 | to always fail with ENOSYS. Some functions are actually named | |
17073 | something starting with __ and the normal name is an alias. */ | |
17074 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17075 | choke me | |
17076 | #else | |
698dcdb6 | 17077 | $ac_func(); |
10f2d63a VZ |
17078 | #endif |
17079 | ||
698dcdb6 VZ |
17080 | ; return 0; } |
17081 | EOF | |
94054c1d | 17082 | if { (eval echo configure:17083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17083 | rm -rf conftest* |
17084 | eval "ac_cv_func_$ac_func=yes" | |
17085 | else | |
17086 | echo "configure: failed program was:" >&5 | |
17087 | cat conftest.$ac_ext >&5 | |
17088 | rm -rf conftest* | |
17089 | eval "ac_cv_func_$ac_func=no" | |
17090 | fi | |
17091 | rm -f conftest* | |
17092 | fi | |
17093 | ||
17094 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17095 | echo "$ac_t""yes" 1>&6 | |
17096 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17097 | cat >> confdefs.h <<EOF | |
17098 | #define $ac_tr_func 1 | |
17099 | EOF | |
17100 | ||
3a922bb4 | 17101 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17102 | #define HAVE_DLOPEN 1 |
17103 | EOF | |
17104 | ||
3a922bb4 RL |
17105 | HAVE_DL_FUNCS=1 |
17106 | ||
10f2d63a | 17107 | else |
698dcdb6 VZ |
17108 | echo "$ac_t""no" 1>&6 |
17109 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
94054c1d | 17110 | echo "configure:17111: checking for dlopen in -ldl" >&5 |
698dcdb6 VZ |
17111 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
17112 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17113 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 17114 | else |
698dcdb6 | 17115 | ac_save_LIBS="$LIBS" |
10f2d63a | 17116 | LIBS="-ldl $LIBS" |
698dcdb6 | 17117 | cat > conftest.$ac_ext <<EOF |
94054c1d | 17118 | #line 17119 "configure" |
10f2d63a VZ |
17119 | #include "confdefs.h" |
17120 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17121 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
17122 | builtin and then its argument prototype would still apply. */ |
17123 | char dlopen(); | |
17124 | ||
17125 | int main() { | |
17126 | dlopen() | |
17127 | ; return 0; } | |
17128 | EOF | |
94054c1d | 17129 | if { (eval echo configure:17130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17130 | rm -rf conftest* |
17131 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17132 | else | |
17133 | echo "configure: failed program was:" >&5 | |
17134 | cat conftest.$ac_ext >&5 | |
17135 | rm -rf conftest* | |
17136 | eval "ac_cv_lib_$ac_lib_var=no" | |
17137 | fi | |
17138 | rm -f conftest* | |
17139 | LIBS="$ac_save_LIBS" | |
17140 | ||
17141 | fi | |
17142 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17143 | echo "$ac_t""yes" 1>&6 | |
17144 | ||
3a922bb4 | 17145 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17146 | #define HAVE_DLOPEN 1 |
17147 | EOF | |
17148 | ||
3a922bb4 | 17149 | HAVE_DL_FUNCS=1 |
3d63bc3a | 17150 | DL_LINK=" -ldl$DL_LINK" |
3a922bb4 | 17151 | |
10f2d63a | 17152 | else |
698dcdb6 | 17153 | echo "$ac_t""no" 1>&6 |
10f2d63a | 17154 | |
3a922bb4 | 17155 | for ac_func in shl_load |
10f2d63a | 17156 | do |
698dcdb6 | 17157 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
94054c1d | 17158 | echo "configure:17159: checking for $ac_func" >&5 |
698dcdb6 VZ |
17159 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17160 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17161 | else | |
17162 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 17163 | #line 17164 "configure" |
10f2d63a VZ |
17164 | #include "confdefs.h" |
17165 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 17166 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
17167 | #include <assert.h> |
17168 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17169 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
17170 | builtin and then its argument prototype would still apply. */ |
17171 | char $ac_func(); | |
17172 | ||
17173 | int main() { | |
10f2d63a VZ |
17174 | |
17175 | /* The GNU C library defines this for functions which it implements | |
17176 | to always fail with ENOSYS. Some functions are actually named | |
17177 | something starting with __ and the normal name is an alias. */ | |
17178 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17179 | choke me | |
17180 | #else | |
698dcdb6 | 17181 | $ac_func(); |
10f2d63a VZ |
17182 | #endif |
17183 | ||
698dcdb6 VZ |
17184 | ; return 0; } |
17185 | EOF | |
94054c1d | 17186 | if { (eval echo configure:17187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17187 | rm -rf conftest* |
17188 | eval "ac_cv_func_$ac_func=yes" | |
17189 | else | |
17190 | echo "configure: failed program was:" >&5 | |
17191 | cat conftest.$ac_ext >&5 | |
17192 | rm -rf conftest* | |
17193 | eval "ac_cv_func_$ac_func=no" | |
17194 | fi | |
17195 | rm -f conftest* | |
17196 | fi | |
17197 | ||
17198 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17199 | echo "$ac_t""yes" 1>&6 | |
17200 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17201 | cat >> confdefs.h <<EOF | |
17202 | #define $ac_tr_func 1 | |
17203 | EOF | |
17204 | ||
3a922bb4 | 17205 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17206 | #define HAVE_SHL_LOAD 1 |
17207 | EOF | |
17208 | ||
3a922bb4 RL |
17209 | HAVE_SHL_FUNCS=1 |
17210 | ||
10f2d63a | 17211 | else |
698dcdb6 VZ |
17212 | echo "$ac_t""no" 1>&6 |
17213 | echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6 | |
94054c1d | 17214 | echo "configure:17215: checking for dld in -lshl_load" >&5 |
698dcdb6 VZ |
17215 | ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'` |
17216 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17217 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 17218 | else |
698dcdb6 | 17219 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 17220 | LIBS="-lshl_load $LIBS" |
698dcdb6 | 17221 | cat > conftest.$ac_ext <<EOF |
94054c1d | 17222 | #line 17223 "configure" |
f6bcfd97 BP |
17223 | #include "confdefs.h" |
17224 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17225 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
17226 | builtin and then its argument prototype would still apply. */ |
17227 | char dld(); | |
17228 | ||
17229 | int main() { | |
17230 | dld() | |
17231 | ; return 0; } | |
17232 | EOF | |
94054c1d | 17233 | if { (eval echo configure:17234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17234 | rm -rf conftest* |
17235 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17236 | else | |
17237 | echo "configure: failed program was:" >&5 | |
17238 | cat conftest.$ac_ext >&5 | |
17239 | rm -rf conftest* | |
17240 | eval "ac_cv_lib_$ac_lib_var=no" | |
17241 | fi | |
17242 | rm -f conftest* | |
17243 | LIBS="$ac_save_LIBS" | |
f6bcfd97 | 17244 | |
698dcdb6 VZ |
17245 | fi |
17246 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17247 | echo "$ac_t""yes" 1>&6 | |
17248 | ||
3a922bb4 | 17249 | HAVE_SHL_FUNCS=1 |
3d63bc3a | 17250 | DL_LINK=" -ldld$DL_LINK" |
3a922bb4 | 17251 | |
698dcdb6 VZ |
17252 | else |
17253 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
17254 | fi |
17255 | ||
3a922bb4 | 17256 | |
10f2d63a VZ |
17257 | fi |
17258 | done | |
17259 | ||
3a922bb4 | 17260 | |
10f2d63a VZ |
17261 | fi |
17262 | ||
3a922bb4 | 17263 | |
10f2d63a VZ |
17264 | fi |
17265 | done | |
17266 | ||
1e487827 | 17267 | |
3a922bb4 RL |
17268 | if test "$HAVE_DL_FUNCS" = 1; then |
17269 | for ac_func in dlerror | |
f6bcfd97 | 17270 | do |
698dcdb6 | 17271 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
94054c1d | 17272 | echo "configure:17273: checking for $ac_func" >&5 |
698dcdb6 VZ |
17273 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17274 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17275 | else | |
17276 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 17277 | #line 17278 "configure" |
f6bcfd97 BP |
17278 | #include "confdefs.h" |
17279 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 17280 | which can conflict with char $ac_func(); below. */ |
f6bcfd97 BP |
17281 | #include <assert.h> |
17282 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17283 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
17284 | builtin and then its argument prototype would still apply. */ |
17285 | char $ac_func(); | |
17286 | ||
17287 | int main() { | |
f6bcfd97 BP |
17288 | |
17289 | /* The GNU C library defines this for functions which it implements | |
17290 | to always fail with ENOSYS. Some functions are actually named | |
17291 | something starting with __ and the normal name is an alias. */ | |
17292 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17293 | choke me | |
17294 | #else | |
698dcdb6 | 17295 | $ac_func(); |
f6bcfd97 BP |
17296 | #endif |
17297 | ||
698dcdb6 VZ |
17298 | ; return 0; } |
17299 | EOF | |
94054c1d | 17300 | if { (eval echo configure:17301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17301 | rm -rf conftest* |
17302 | eval "ac_cv_func_$ac_func=yes" | |
17303 | else | |
17304 | echo "configure: failed program was:" >&5 | |
17305 | cat conftest.$ac_ext >&5 | |
17306 | rm -rf conftest* | |
17307 | eval "ac_cv_func_$ac_func=no" | |
17308 | fi | |
17309 | rm -f conftest* | |
17310 | fi | |
17311 | ||
17312 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17313 | echo "$ac_t""yes" 1>&6 | |
17314 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17315 | cat >> confdefs.h <<EOF | |
17316 | #define $ac_tr_func 1 | |
17317 | EOF | |
17318 | cat >> confdefs.h <<\EOF | |
f6bcfd97 BP |
17319 | #define HAVE_DLERROR 1 |
17320 | EOF | |
17321 | ||
17322 | else | |
698dcdb6 VZ |
17323 | echo "$ac_t""no" 1>&6 |
17324 | echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6 | |
94054c1d | 17325 | echo "configure:17326: checking for dlerror in -ldl" >&5 |
698dcdb6 VZ |
17326 | ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'` |
17327 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17328 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 17329 | else |
698dcdb6 | 17330 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 17331 | LIBS="-ldl $LIBS" |
698dcdb6 | 17332 | cat > conftest.$ac_ext <<EOF |
94054c1d | 17333 | #line 17334 "configure" |
f6bcfd97 BP |
17334 | #include "confdefs.h" |
17335 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17336 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
17337 | builtin and then its argument prototype would still apply. */ |
17338 | char dlerror(); | |
17339 | ||
17340 | int main() { | |
17341 | dlerror() | |
17342 | ; return 0; } | |
17343 | EOF | |
94054c1d | 17344 | if { (eval echo configure:17345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17345 | rm -rf conftest* |
17346 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17347 | else | |
17348 | echo "configure: failed program was:" >&5 | |
17349 | cat conftest.$ac_ext >&5 | |
17350 | rm -rf conftest* | |
17351 | eval "ac_cv_lib_$ac_lib_var=no" | |
17352 | fi | |
17353 | rm -f conftest* | |
17354 | LIBS="$ac_save_LIBS" | |
17355 | ||
17356 | fi | |
17357 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17358 | echo "$ac_t""yes" 1>&6 | |
17359 | cat >> confdefs.h <<\EOF | |
f6bcfd97 BP |
17360 | #define HAVE_DLERROR 1 |
17361 | EOF | |
17362 | ||
698dcdb6 VZ |
17363 | else |
17364 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
17365 | fi |
17366 | ||
17367 | fi | |
17368 | done | |
17369 | ||
3a922bb4 RL |
17370 | fi |
17371 | fi | |
f6bcfd97 | 17372 | |
3a922bb4 RL |
17373 | if test "$HAVE_DL_FUNCS" = 0; then |
17374 | if test "$HAVE_SHL_FUNCS" = 0; then | |
17375 | if test "$USE_UNIX" = 1; then | |
17376 | echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2 | |
17377 | wxUSE_DYNLIB_CLASS=no | |
17378 | else | |
17379 | echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2 | |
17380 | fi | |
17381 | fi | |
10f2d63a VZ |
17382 | fi |
17383 | fi | |
17384 | fi | |
17385 | ||
17386 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
698dcdb6 | 17387 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17388 | #define wxUSE_DYNLIB_CLASS 1 |
17389 | EOF | |
17390 | ||
b12915c1 VZ |
17391 | else |
17392 | wxUSE_ODBC=no | |
17393 | wxUSE_SERIAL=no | |
10f2d63a VZ |
17394 | fi |
17395 | ||
698dcdb6 | 17396 | |
1e6feb95 VZ |
17397 | if test "$wxUSE_FONTMAP" = "yes" ; then |
17398 | cat >> confdefs.h <<\EOF | |
17399 | #define wxUSE_FONTMAP 1 | |
17400 | EOF | |
17401 | ||
17402 | fi | |
17403 | ||
10f2d63a | 17404 | if test "$wxUSE_UNICODE" = "yes" ; then |
698dcdb6 | 17405 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17406 | #define wxUSE_UNICODE 1 |
17407 | EOF | |
17408 | ||
17409 | fi | |
17410 | ||
10f2d63a | 17411 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then |
698dcdb6 | 17412 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17413 | #define wxUSE_EXPERIMENTAL_PRINTF 1 |
17414 | EOF | |
17415 | ||
17416 | fi | |
17417 | ||
698dcdb6 | 17418 | |
b12915c1 | 17419 | if test "$wxUSE_SERIAL" = "yes" ; then |
698dcdb6 | 17420 | cat >> confdefs.h <<\EOF |
b12915c1 VZ |
17421 | #define wxUSE_SERIAL 1 |
17422 | EOF | |
17423 | ||
17424 | fi | |
17425 | ||
698dcdb6 | 17426 | |
10f2d63a VZ |
17427 | IODBC_C_SRC="" |
17428 | if test "$wxUSE_ODBC" = "yes" ; then | |
698dcdb6 | 17429 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17430 | #define wxUSE_ODBC 1 |
17431 | EOF | |
17432 | ||
17433 | WXODBCFLAG="-D_IODBC_" | |
17434 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
10f2d63a VZ |
17435 | fi |
17436 | ||
698dcdb6 | 17437 | |
10f2d63a | 17438 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then |
698dcdb6 | 17439 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17440 | #define wxUSE_POSTSCRIPT 1 |
17441 | EOF | |
17442 | ||
17443 | fi | |
17444 | ||
698dcdb6 | 17445 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17446 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 |
17447 | EOF | |
17448 | ||
698dcdb6 VZ |
17449 | |
17450 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
17451 | #define wxUSE_NORMALIZED_PS_FONTS 1 |
17452 | EOF | |
17453 | ||
698dcdb6 VZ |
17454 | |
17455 | ||
10f2d63a | 17456 | if test "$wxUSE_CONSTRAINTS" = "yes"; then |
698dcdb6 | 17457 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17458 | #define wxUSE_CONSTRAINTS 1 |
17459 | EOF | |
17460 | ||
17461 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
17462 | fi | |
17463 | ||
17464 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
fc26f4ab RL |
17465 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
17466 | echo "configure: warning: MDI is not supported for wxUNIVERSAL yet... disabled" 1>&2 | |
17467 | wxUSE_MDI_ARCHITECTURE=no | |
17468 | fi | |
17469 | ||
17470 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
17471 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
17472 | #define wxUSE_MDI_ARCHITECTURE 1 |
17473 | EOF | |
17474 | ||
fc26f4ab RL |
17475 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
17476 | fi | |
10f2d63a VZ |
17477 | fi |
17478 | ||
17479 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
698dcdb6 | 17480 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17481 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 |
17482 | EOF | |
17483 | ||
17484 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
17485 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
17486 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
17487 | fi | |
17488 | fi | |
17489 | ||
17490 | if test "$wxUSE_HELP" = "yes"; then | |
698dcdb6 | 17491 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17492 | #define wxUSE_HELP 1 |
17493 | EOF | |
17494 | ||
17495 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
3379ed37 | 17496 | |
77e13408 | 17497 | if test "$wxUSE_MSW" = 1; then |
031d8228 | 17498 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then |
29fd3c0c VS |
17499 | ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'` |
17500 | echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6 | |
94054c1d | 17501 | echo "configure:17502: checking for htmlhelp.h" >&5 |
29fd3c0c VS |
17502 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
17503 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17504 | else | |
17505 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 17506 | #line 17507 "configure" |
29fd3c0c VS |
17507 | #include "confdefs.h" |
17508 | #include <htmlhelp.h> | |
17509 | EOF | |
17510 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
94054c1d | 17511 | { (eval echo configure:17512: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
29fd3c0c VS |
17512 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
17513 | if test -z "$ac_err"; then | |
17514 | rm -rf conftest* | |
17515 | eval "ac_cv_header_$ac_safe=yes" | |
17516 | else | |
17517 | echo "$ac_err" >&5 | |
17518 | echo "configure: failed program was:" >&5 | |
17519 | cat conftest.$ac_ext >&5 | |
17520 | rm -rf conftest* | |
17521 | eval "ac_cv_header_$ac_safe=no" | |
17522 | fi | |
17523 | rm -f conftest* | |
17524 | fi | |
17525 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
17526 | echo "$ac_t""yes" 1>&6 | |
17527 | ||
17528 | cat >> confdefs.h <<\EOF | |
17529 | #define wxUSE_MS_HTML_HELP 1 | |
17530 | EOF | |
17531 | ||
17532 | ||
17533 | else | |
17534 | echo "$ac_t""no" 1>&6 | |
17535 | ||
fc26f4ab | 17536 | echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h... disabled" 1>&2 |
29fd3c0c VS |
17537 | wxUSE_MS_HTML_HELP=no |
17538 | ||
17539 | fi | |
17540 | ||
3e44f09d | 17541 | fi |
3379ed37 | 17542 | fi |
031d8228 VS |
17543 | |
17544 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
17545 | if test "$wxUSE_HTML" = "yes"; then | |
17546 | cat >> confdefs.h <<\EOF | |
17547 | #define wxUSE_WXHTML_HELP 1 | |
17548 | EOF | |
17549 | ||
17550 | else | |
17551 | echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2 | |
17552 | wxUSE_WXHTML_HELP=no | |
17553 | fi | |
17554 | fi | |
10f2d63a VZ |
17555 | fi |
17556 | ||
17557 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
17558 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
698dcdb6 | 17559 | echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2 |
10f2d63a | 17560 | else |
698dcdb6 | 17561 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17562 | #define wxUSE_PRINTING_ARCHITECTURE 1 |
17563 | EOF | |
17564 | ||
17565 | fi | |
17566 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
17567 | fi | |
17568 | ||
17569 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
698dcdb6 | 17570 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17571 | #define wxUSE_PROLOGIO 1 |
17572 | EOF | |
17573 | ||
17574 | fi | |
17575 | ||
17576 | if test "$wxUSE_RESOURCES" = "yes" ; then | |
3379ed37 | 17577 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17578 | #define wxUSE_RESOURCES 1 |
17579 | EOF | |
17580 | ||
3379ed37 | 17581 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource" |
10f2d63a VZ |
17582 | fi |
17583 | ||
17584 | if test "$wxUSE_X_RESOURCES" = "yes"; then | |
698dcdb6 | 17585 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17586 | #define wxUSE_X_RESOURCES 1 |
17587 | EOF | |
17588 | ||
17589 | fi | |
17590 | ||
698dcdb6 | 17591 | |
77e13408 RL |
17592 | if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ |
17593 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
17594 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
2b9bdf71 | 17595 | for ac_hdr in ole2.h |
10f2d63a | 17596 | do |
698dcdb6 VZ |
17597 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
17598 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
94054c1d | 17599 | echo "configure:17600: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
17600 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
17601 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17602 | else | |
17603 | cat > conftest.$ac_ext <<EOF | |
94054c1d | 17604 | #line 17605 "configure" |
10f2d63a | 17605 | #include "confdefs.h" |
698dcdb6 VZ |
17606 | #include <$ac_hdr> |
17607 | EOF | |
17608 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
94054c1d | 17609 | { (eval echo configure:17610: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
17610 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
17611 | if test -z "$ac_err"; then | |
17612 | rm -rf conftest* | |
17613 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 17614 | else |
698dcdb6 VZ |
17615 | echo "$ac_err" >&5 |
17616 | echo "configure: failed program was:" >&5 | |
10f2d63a | 17617 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
17618 | rm -rf conftest* |
17619 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 17620 | fi |
698dcdb6 | 17621 | rm -f conftest* |
10f2d63a | 17622 | fi |
698dcdb6 VZ |
17623 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
17624 | echo "$ac_t""yes" 1>&6 | |
17625 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
17626 | cat >> confdefs.h <<EOF | |
17627 | #define $ac_tr_hdr 1 | |
10f2d63a | 17628 | EOF |
698dcdb6 VZ |
17629 | |
17630 | else | |
17631 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
17632 | fi |
17633 | done | |
17634 | ||
698dcdb6 | 17635 | |
2b9bdf71 VZ |
17636 | if test "$ac_cv_header_ole2_h" = "yes" ; then |
17637 | if test "$GCC" = yes ; then | |
17638 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" | |
2b9bdf71 | 17639 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" |
3d63bc3a | 17640 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
2b9bdf71 | 17641 | cat >> confdefs.h <<\EOF |
4f11a343 VS |
17642 | #define wxUSE_OLE 1 |
17643 | EOF | |
17644 | ||
b64f0a5f | 17645 | |
2b9bdf71 VZ |
17646 | fi |
17647 | ||
17648 | cat >> confdefs.h <<\EOF | |
17649 | #define wxUSE_DATAOBJ 1 | |
17650 | EOF | |
17651 | ||
17652 | else | |
17653 | echo "configure: warning: Some features disabled because OLE headers not found" 1>&2 | |
17654 | ||
17655 | wxUSE_CLIPBOARD=no | |
17656 | wxUSE_DRAG_AND_DROP=no | |
17657 | wxUSE_DATAOBJ=no | |
17658 | fi | |
17659 | ||
77e13408 | 17660 | if test "$wxUSE_METAFILE" = "yes"; then |
2b9bdf71 | 17661 | cat >> confdefs.h <<\EOF |
b64f0a5f RL |
17662 | #define wxUSE_METAFILE 1 |
17663 | EOF | |
17664 | ||
2b9bdf71 VZ |
17665 | |
17666 | cat >> confdefs.h <<\EOF | |
b64f0a5f RL |
17667 | #define wxUSE_ENH_METAFILE 1 |
17668 | EOF | |
17669 | ||
2b9bdf71 VZ |
17670 | fi |
17671 | fi | |
17672 | ||
17673 | if test "$wxUSE_IPC" = "yes"; then | |
17674 | if test "$wxUSE_SOCKETS" != "yes"; then | |
17675 | echo "configure: warning: wxWindows IPC classes require sockets" 1>&2 | |
17676 | fi | |
17677 | ||
17678 | cat >> confdefs.h <<\EOF | |
17679 | #define wxUSE_IPC 1 | |
17680 | EOF | |
17681 | ||
17682 | fi | |
17683 | ||
17684 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
17685 | cat >> confdefs.h <<\EOF | |
17686 | #define wxUSE_CLIPBOARD 1 | |
17687 | EOF | |
17688 | ||
673f4220 | 17689 | |
e33ef661 | 17690 | cat >> confdefs.h <<\EOF |
673f4220 VZ |
17691 | #define wxUSE_DATAOBJ 1 |
17692 | EOF | |
17693 | ||
2b9bdf71 VZ |
17694 | fi |
17695 | ||
17696 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
17697 | if test "$wxUSE_GTK" = 1; then | |
17698 | if test "$WXGTK12" != 1; then | |
17699 | echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2 | |
10f2d63a VZ |
17700 | wxUSE_DRAG_AND_DROP=no |
17701 | fi | |
17702 | fi | |
17703 | ||
2b9bdf71 VZ |
17704 | if test "$wxUSE_MOTIF" = 1; then |
17705 | echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2 | |
17706 | wxUSE_DRAG_AND_DROP=no | |
17707 | fi | |
17708 | ||
17709 | if test "$wxUSE_MAC" = 1; then | |
17710 | echo "configure: warning: Drag and drop is not yet supported under Mac OS X" 1>&2 | |
17711 | wxUSE_DRAG_AND_DROP=no | |
17712 | fi | |
17713 | ||
10f2d63a | 17714 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then |
698dcdb6 | 17715 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17716 | #define wxUSE_DRAG_AND_DROP 1 |
17717 | EOF | |
17718 | ||
17719 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
17720 | fi | |
17721 | ||
17722 | fi | |
17723 | ||
17724 | if test "$wxUSE_SPLINES" = "yes" ; then | |
698dcdb6 | 17725 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17726 | #define wxUSE_SPLINES 1 |
17727 | EOF | |
17728 | ||
17729 | fi | |
17730 | ||
698dcdb6 | 17731 | |
1e6feb95 VZ |
17732 | USES_CONTROLS=0 |
17733 | if test "$wxUSE_CONTROLS" = "yes"; then | |
17734 | USES_CONTROLS=1 | |
17735 | fi | |
17736 | ||
10f2d63a | 17737 | if test "$wxUSE_ACCEL" = "yes"; then |
698dcdb6 | 17738 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17739 | #define wxUSE_ACCEL 1 |
17740 | EOF | |
17741 | ||
1e6feb95 VZ |
17742 | USES_CONTROLS=1 |
17743 | fi | |
17744 | ||
17745 | if test "$wxUSE_BUTTON" = "yes"; then | |
17746 | cat >> confdefs.h <<\EOF | |
17747 | #define wxUSE_BUTTON 1 | |
17748 | EOF | |
17749 | ||
17750 | USES_CONTROLS=1 | |
17751 | fi | |
17752 | ||
17753 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
17754 | cat >> confdefs.h <<\EOF | |
17755 | #define wxUSE_BMPBUTTON 1 | |
17756 | EOF | |
17757 | ||
17758 | USES_CONTROLS=1 | |
17759 | fi | |
17760 | ||
17761 | if test "$wxUSE_CALCTRL" = "yes"; then | |
17762 | cat >> confdefs.h <<\EOF | |
17763 | #define wxUSE_CALENDARCTRL 1 | |
17764 | EOF | |
17765 | ||
17766 | USES_CONTROLS=1 | |
17767 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
10f2d63a VZ |
17768 | fi |
17769 | ||
17770 | if test "$wxUSE_CARET" = "yes"; then | |
698dcdb6 | 17771 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17772 | #define wxUSE_CARET 1 |
17773 | EOF | |
17774 | ||
1e6feb95 | 17775 | USES_CONTROLS=1 |
10f2d63a VZ |
17776 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" |
17777 | fi | |
17778 | ||
17779 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
698dcdb6 | 17780 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17781 | #define wxUSE_COMBOBOX 1 |
17782 | EOF | |
17783 | ||
1e6feb95 | 17784 | USES_CONTROLS=1 |
10f2d63a VZ |
17785 | fi |
17786 | ||
17787 | if test "$wxUSE_CHOICE" = "yes"; then | |
698dcdb6 | 17788 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17789 | #define wxUSE_CHOICE 1 |
17790 | EOF | |
17791 | ||
1e6feb95 | 17792 | USES_CONTROLS=1 |
10f2d63a VZ |
17793 | fi |
17794 | ||
17795 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
698dcdb6 | 17796 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17797 | #define wxUSE_CHECKBOX 1 |
17798 | EOF | |
17799 | ||
1e6feb95 | 17800 | USES_CONTROLS=1 |
10f2d63a VZ |
17801 | fi |
17802 | ||
17803 | if test "$wxUSE_CHECKLST" = "yes"; then | |
698dcdb6 | 17804 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17805 | #define wxUSE_CHECKLISTBOX 1 |
17806 | EOF | |
17807 | ||
1e6feb95 | 17808 | USES_CONTROLS=1 |
10f2d63a VZ |
17809 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" |
17810 | fi | |
17811 | ||
17812 | if test "$wxUSE_GAUGE" = "yes"; then | |
698dcdb6 | 17813 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17814 | #define wxUSE_GAUGE 1 |
17815 | EOF | |
17816 | ||
1e6feb95 | 17817 | USES_CONTROLS=1 |
10f2d63a VZ |
17818 | fi |
17819 | ||
d6a55c4b VZ |
17820 | if test "$wxUSE_NEW_GRID" = "yes"; then |
17821 | wxUSE_GRID="yes" | |
698dcdb6 | 17822 | cat >> confdefs.h <<\EOF |
d6a55c4b | 17823 | #define wxUSE_NEW_GRID 1 |
10f2d63a VZ |
17824 | EOF |
17825 | ||
1e6feb95 | 17826 | USES_CONTROLS=1 |
d6a55c4b | 17827 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid" |
10f2d63a VZ |
17828 | fi |
17829 | ||
d6a55c4b | 17830 | if test "$wxUSE_GRID" = "yes"; then |
698dcdb6 | 17831 | cat >> confdefs.h <<\EOF |
d6a55c4b | 17832 | #define wxUSE_GRID 1 |
10f2d63a VZ |
17833 | EOF |
17834 | ||
1e6feb95 | 17835 | USES_CONTROLS=1 |
d6a55c4b | 17836 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" |
10f2d63a VZ |
17837 | fi |
17838 | ||
17839 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 17840 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17841 | #define wxUSE_IMAGLIST 1 |
17842 | EOF | |
17843 | ||
17844 | fi | |
17845 | ||
17846 | if test "$wxUSE_LISTBOX" = "yes"; then | |
698dcdb6 | 17847 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17848 | #define wxUSE_LISTBOX 1 |
17849 | EOF | |
17850 | ||
1e6feb95 | 17851 | USES_CONTROLS=1 |
10f2d63a VZ |
17852 | fi |
17853 | ||
17854 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
17855 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 17856 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17857 | #define wxUSE_LISTCTRL 1 |
17858 | EOF | |
17859 | ||
1e6feb95 | 17860 | USES_CONTROLS=1 |
10f2d63a VZ |
17861 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" |
17862 | else | |
698dcdb6 | 17863 | echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
17864 | fi |
17865 | fi | |
17866 | ||
17867 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
698dcdb6 | 17868 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17869 | #define wxUSE_NOTEBOOK 1 |
17870 | EOF | |
17871 | ||
1e6feb95 | 17872 | USES_CONTROLS=1 |
10f2d63a VZ |
17873 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" |
17874 | fi | |
17875 | ||
24176f2c GD |
17876 | if test "$wxUSE_PROPSHEET" = "yes"; then |
17877 | cat >> confdefs.h <<\EOF | |
17878 | #define wxUSE_PROPSHEET 1 | |
17879 | EOF | |
17880 | ||
17881 | USES_CONTROLS=1 | |
17882 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist" | |
17883 | fi | |
17884 | ||
10f2d63a | 17885 | if test "$wxUSE_RADIOBOX" = "yes"; then |
698dcdb6 | 17886 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17887 | #define wxUSE_RADIOBOX 1 |
17888 | EOF | |
17889 | ||
1e6feb95 | 17890 | USES_CONTROLS=1 |
10f2d63a VZ |
17891 | fi |
17892 | ||
17893 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
698dcdb6 | 17894 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17895 | #define wxUSE_RADIOBTN 1 |
17896 | EOF | |
17897 | ||
1e6feb95 | 17898 | USES_CONTROLS=1 |
10f2d63a VZ |
17899 | fi |
17900 | ||
17901 | if test "$wxUSE_SASH" = "yes"; then | |
698dcdb6 | 17902 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17903 | #define wxUSE_SASH 1 |
17904 | EOF | |
17905 | ||
17906 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
17907 | fi | |
17908 | ||
17909 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
698dcdb6 | 17910 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17911 | #define wxUSE_SCROLLBAR 1 |
17912 | EOF | |
17913 | ||
1e6feb95 | 17914 | USES_CONTROLS=1 |
741a9306 | 17915 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
17916 | fi |
17917 | ||
17918 | if test "$wxUSE_SLIDER" = "yes"; then | |
698dcdb6 | 17919 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17920 | #define wxUSE_SLIDER 1 |
17921 | EOF | |
17922 | ||
1e6feb95 | 17923 | USES_CONTROLS=1 |
10f2d63a VZ |
17924 | fi |
17925 | ||
17926 | if test "$wxUSE_SPINBTN" = "yes"; then | |
698dcdb6 | 17927 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17928 | #define wxUSE_SPINBTN 1 |
17929 | EOF | |
17930 | ||
1e6feb95 | 17931 | USES_CONTROLS=1 |
10f2d63a VZ |
17932 | fi |
17933 | ||
56cfaa52 | 17934 | if test "$wxUSE_SPINCTRL" = "yes"; then |
698dcdb6 | 17935 | cat >> confdefs.h <<\EOF |
56cfaa52 RR |
17936 | #define wxUSE_SPINCTRL 1 |
17937 | EOF | |
17938 | ||
1e6feb95 | 17939 | USES_CONTROLS=1 |
56cfaa52 RR |
17940 | fi |
17941 | ||
10f2d63a | 17942 | if test "$wxUSE_SPLITTER" = "yes"; then |
698dcdb6 | 17943 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17944 | #define wxUSE_SPLITTER 1 |
17945 | EOF | |
17946 | ||
17947 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
17948 | fi | |
17949 | ||
17950 | if test "$wxUSE_STATBMP" = "yes"; then | |
698dcdb6 | 17951 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17952 | #define wxUSE_STATBMP 1 |
17953 | EOF | |
17954 | ||
1e6feb95 | 17955 | USES_CONTROLS=1 |
10f2d63a VZ |
17956 | fi |
17957 | ||
17958 | if test "$wxUSE_STATBOX" = "yes"; then | |
698dcdb6 | 17959 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17960 | #define wxUSE_STATBOX 1 |
17961 | EOF | |
17962 | ||
1e6feb95 VZ |
17963 | USES_CONTROLS=1 |
17964 | fi | |
17965 | ||
17966 | if test "$wxUSE_STATTEXT" = "yes"; then | |
17967 | cat >> confdefs.h <<\EOF | |
17968 | #define wxUSE_STATTEXT 1 | |
17969 | EOF | |
17970 | ||
17971 | USES_CONTROLS=1 | |
10f2d63a VZ |
17972 | fi |
17973 | ||
17974 | if test "$wxUSE_STATLINE" = "yes"; then | |
17975 | if test "$wxUSE_WINE" = 1 ; then | |
698dcdb6 | 17976 | echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2 |
10f2d63a | 17977 | else |
698dcdb6 | 17978 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17979 | #define wxUSE_STATLINE 1 |
17980 | EOF | |
17981 | ||
1e6feb95 | 17982 | USES_CONTROLS=1 |
10f2d63a VZ |
17983 | fi |
17984 | fi | |
17985 | ||
17986 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
698dcdb6 | 17987 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17988 | #define wxUSE_STATUSBAR 1 |
17989 | EOF | |
17990 | ||
1e6feb95 | 17991 | USES_CONTROLS=1 |
698dcdb6 | 17992 | |
2286341c | 17993 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" |
10f2d63a VZ |
17994 | fi |
17995 | ||
17996 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
698dcdb6 | 17997 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17998 | #define wxUSE_TAB_DIALOG 1 |
17999 | EOF | |
18000 | ||
18001 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
18002 | fi | |
18003 | ||
1e6feb95 VZ |
18004 | if test "$wxUSE_TEXTCTRL" = "yes"; then |
18005 | cat >> confdefs.h <<\EOF | |
18006 | #define wxUSE_TEXTCTRL 1 | |
18007 | EOF | |
18008 | ||
18009 | USES_CONTROLS=1 | |
18010 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
18011 | fi | |
18012 | ||
1db8dc4a | 18013 | if test "$wxUSE_TOGGLEBTN" = "yes"; then |
fc26f4ab RL |
18014 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_UNIVERSAL" = "yes"; then |
18015 | echo "configure: warning: Toggle button not yet supported under Mac OS X or wxUNIVERSAL... disabled" 1>&2 | |
a45d7ab7 GD |
18016 | wxUSE_TOGGLEBTN=no |
18017 | fi | |
18018 | ||
18019 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
18020 | cat >> confdefs.h <<\EOF | |
1db8dc4a VZ |
18021 | #define wxUSE_TOGGLEBTN 1 |
18022 | EOF | |
18023 | ||
1e6feb95 | 18024 | USES_CONTROLS=1 |
a45d7ab7 | 18025 | fi |
1db8dc4a VZ |
18026 | fi |
18027 | ||
360d6699 | 18028 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
698dcdb6 | 18029 | cat >> confdefs.h <<\EOF |
360d6699 VZ |
18030 | #define wxUSE_TOOLBAR_SIMPLE 1 |
18031 | EOF | |
18032 | ||
18033 | wxUSE_TOOLBAR="yes" | |
1e6feb95 | 18034 | USES_CONTROLS=1 |
360d6699 VZ |
18035 | fi |
18036 | ||
10f2d63a | 18037 | if test "$wxUSE_TOOLBAR" = "yes"; then |
698dcdb6 | 18038 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18039 | #define wxUSE_TOOLBAR 1 |
18040 | EOF | |
18041 | ||
1e6feb95 | 18042 | USES_CONTROLS=1 |
698dcdb6 | 18043 | |
360d6699 VZ |
18044 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then |
18045 | wxUSE_TOOLBAR_NATIVE="yes" | |
18046 | fi | |
18047 | ||
1e6feb95 VZ |
18048 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
18049 | cat >> confdefs.h <<\EOF | |
360d6699 VZ |
18050 | #define wxUSE_TOOLBAR_NATIVE 1 |
18051 | EOF | |
18052 | ||
1e6feb95 VZ |
18053 | USES_CONTROLS=1 |
18054 | fi | |
18055 | ||
18056 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
360d6699 VZ |
18057 | fi |
18058 | ||
10f2d63a VZ |
18059 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
18060 | if test "$wxUSE_MOTIF" = 1; then | |
698dcdb6 | 18061 | echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2 |
10f2d63a VZ |
18062 | else |
18063 | if test "$wxUSE_WINE" = 1; then | |
698dcdb6 | 18064 | echo "configure: warning: wxTooltip not supported under WINE" 1>&2 |
10f2d63a | 18065 | else |
698dcdb6 | 18066 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18067 | #define wxUSE_TOOLTIPS 1 |
18068 | EOF | |
18069 | ||
18070 | fi | |
18071 | fi | |
18072 | fi | |
18073 | ||
18074 | if test "$wxUSE_TREECTRL" = "yes"; then | |
18075 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 18076 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18077 | #define wxUSE_TREECTRL 1 |
18078 | EOF | |
18079 | ||
1e6feb95 | 18080 | USES_CONTROLS=1 |
10f2d63a VZ |
18081 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" |
18082 | else | |
698dcdb6 | 18083 | echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
18084 | fi |
18085 | fi | |
18086 | ||
9f41d601 | 18087 | if test "$wxUSE_POPUPWIN" = "yes"; then |
6abe4b65 GD |
18088 | if test "$wxUSE_MAC" = 1; then |
18089 | echo "configure: warning: Popup window is not yet supported under Mac OS" 1>&2 | |
18090 | else | |
18091 | cat >> confdefs.h <<\EOF | |
9f41d601 RR |
18092 | #define wxUSE_POPUPWIN 1 |
18093 | EOF | |
18094 | ||
6abe4b65 GD |
18095 | USES_CONTROLS=1 |
18096 | fi | |
9f41d601 RR |
18097 | fi |
18098 | ||
1e6feb95 VZ |
18099 | if test "$USES_CONTROLS" = 1; then |
18100 | cat >> confdefs.h <<\EOF | |
18101 | #define wxUSE_CONTROLS 1 | |
10f2d63a VZ |
18102 | EOF |
18103 | ||
10f2d63a VZ |
18104 | fi |
18105 | ||
1e6feb95 | 18106 | |
24176f2c GD |
18107 | if test "$wxUSE_TREELAYOUT" = "yes"; then |
18108 | cat >> confdefs.h <<\EOF | |
18109 | #define wxUSE_TREELAYOUT 1 | |
18110 | EOF | |
18111 | ||
18112 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay" | |
18113 | fi | |
1e6feb95 | 18114 | |
24fd6d87 VZ |
18115 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
18116 | cat >> confdefs.h <<\EOF | |
18117 | #define wxUSE_DRAGIMAGE 1 | |
18118 | EOF | |
18119 | ||
18120 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
18121 | fi | |
18122 | ||
1e6feb95 | 18123 | if test "$wxUSE_MENUS" = "yes"; then |
698dcdb6 | 18124 | cat >> confdefs.h <<\EOF |
1e6feb95 | 18125 | #define wxUSE_MENUS 1 |
10f2d63a VZ |
18126 | EOF |
18127 | ||
1e6feb95 | 18128 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" |
10f2d63a VZ |
18129 | fi |
18130 | ||
1e6feb95 VZ |
18131 | if test "$wxUSE_METAFILE" = "yes"; then |
18132 | cat >> confdefs.h <<\EOF | |
18133 | #define wxUSE_METAFILE 1 | |
10f2d63a VZ |
18134 | EOF |
18135 | ||
10f2d63a VZ |
18136 | fi |
18137 | ||
1e6feb95 VZ |
18138 | if test "$wxUSE_MIMETYPE" = "yes"; then |
18139 | cat >> confdefs.h <<\EOF | |
18140 | #define wxUSE_MIMETYPE 1 | |
10f2d63a VZ |
18141 | EOF |
18142 | ||
10f2d63a VZ |
18143 | fi |
18144 | ||
3e44f09d VZ |
18145 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then |
18146 | cat >> confdefs.h <<\EOF | |
18147 | #define wxUSE_SYSTEM_OPTIONS 1 | |
18148 | EOF | |
18149 | ||
18150 | fi | |
18151 | ||
10f2d63a | 18152 | if test "$wxUSE_MINIFRAME" = "yes"; then |
698dcdb6 | 18153 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18154 | #define wxUSE_MINIFRAME 1 |
18155 | EOF | |
18156 | ||
18157 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
18158 | fi | |
18159 | ||
18160 | if test "$wxUSE_HTML" = "yes"; then | |
698dcdb6 | 18161 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18162 | #define wxUSE_HTML 1 |
18163 | EOF | |
18164 | ||
18165 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html" | |
10f2d63a VZ |
18166 | fi |
18167 | ||
18168 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
698dcdb6 | 18169 | cat >> confdefs.h <<\EOF |
1e487827 VS |
18170 | #define wxUSE_VALIDATORS 1 |
18171 | EOF | |
703e0a69 | 18172 | |
698dcdb6 VZ |
18173 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" |
18174 | fi | |
18175 | ||
edae8572 VZ |
18176 | if test "$wxUSE_PALETTE" = "yes" ; then |
18177 | cat >> confdefs.h <<\EOF | |
18178 | #define wxUSE_PALETTE 1 | |
18179 | EOF | |
18180 | ||
18181 | fi | |
18182 | ||
698dcdb6 VZ |
18183 | if test "$wxUSE_IMAGE" = "yes" ; then |
18184 | cat >> confdefs.h <<\EOF | |
18185 | #define wxUSE_IMAGE 1 | |
18186 | EOF | |
18187 | ||
18188 | fi | |
18189 | ||
18190 | if test "$wxUSE_GIF" = "yes" ; then | |
18191 | cat >> confdefs.h <<\EOF | |
18192 | #define wxUSE_GIF 1 | |
18193 | EOF | |
18194 | ||
18195 | fi | |
18196 | ||
18197 | if test "$wxUSE_PCX" = "yes" ; then | |
18198 | cat >> confdefs.h <<\EOF | |
18199 | #define wxUSE_PCX 1 | |
18200 | EOF | |
18201 | ||
18202 | fi | |
18203 | ||
18204 | if test "$wxUSE_PNM" = "yes" ; then | |
18205 | cat >> confdefs.h <<\EOF | |
18206 | #define wxUSE_PNM 1 | |
18207 | EOF | |
18208 | ||
18209 | fi | |
18210 | ||
18211 | if test "$wxUSE_XPM" = "yes" ; then | |
18212 | cat >> confdefs.h <<\EOF | |
18213 | #define wxUSE_XPM 1 | |
18214 | EOF | |
18215 | ||
18216 | fi | |
18217 | ||
18218 | ||
1e6feb95 VZ |
18219 | if test "$wxUSE_CHOICEDLG" = "yes"; then |
18220 | cat >> confdefs.h <<\EOF | |
18221 | #define wxUSE_CHOICEDLG 1 | |
18222 | EOF | |
18223 | ||
18224 | fi | |
18225 | ||
18226 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
18227 | cat >> confdefs.h <<\EOF | |
18228 | #define wxUSE_COLOURDLG 1 | |
18229 | EOF | |
18230 | ||
18231 | fi | |
18232 | ||
18233 | if test "$wxUSE_FILEDLG" = "yes"; then | |
18234 | cat >> confdefs.h <<\EOF | |
18235 | #define wxUSE_FILEDLG 1 | |
18236 | EOF | |
18237 | ||
18238 | fi | |
18239 | ||
8db37e06 VZ |
18240 | if test "$wxUSE_FINDREPLDLG" = "yes"; then |
18241 | cat >> confdefs.h <<\EOF | |
18242 | #define wxUSE_FINDREPLDLG 1 | |
18243 | EOF | |
18244 | ||
18245 | fi | |
18246 | ||
1e6feb95 VZ |
18247 | if test "$wxUSE_FONTDLG" = "yes"; then |
18248 | cat >> confdefs.h <<\EOF | |
18249 | #define wxUSE_FONTDLG 1 | |
18250 | EOF | |
18251 | ||
18252 | fi | |
18253 | ||
18254 | if test "$wxUSE_DIRDLG" = "yes"; then | |
18255 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
18256 | echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2 | |
18257 | else | |
18258 | if test "$wxUSE_TREECTRL" != "yes"; then | |
18259 | echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2 | |
18260 | else | |
18261 | cat >> confdefs.h <<\EOF | |
18262 | #define wxUSE_DIRDLG 1 | |
18263 | EOF | |
18264 | ||
18265 | fi | |
18266 | fi | |
18267 | fi | |
18268 | ||
18269 | if test "$wxUSE_MSGDLG" = "yes"; then | |
18270 | cat >> confdefs.h <<\EOF | |
18271 | #define wxUSE_MSGDLG 1 | |
18272 | EOF | |
18273 | ||
18274 | fi | |
18275 | ||
18276 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
18277 | cat >> confdefs.h <<\EOF | |
18278 | #define wxUSE_NUMBERDLG 1 | |
18279 | EOF | |
18280 | ||
18281 | fi | |
18282 | ||
18283 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
18284 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
18285 | echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2 | |
18286 | else | |
18287 | cat >> confdefs.h <<\EOF | |
18288 | #define wxUSE_PROGRESSDLG 1 | |
18289 | EOF | |
18290 | ||
18291 | fi | |
18292 | fi | |
18293 | ||
cbca9943 VZ |
18294 | if test "$wxUSE_SPLASH" = "yes"; then |
18295 | cat >> confdefs.h <<\EOF | |
18296 | #define wxUSE_SPLASH 1 | |
18297 | EOF | |
18298 | ||
18299 | fi | |
18300 | ||
1e6feb95 VZ |
18301 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then |
18302 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
18303 | echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2 | |
18304 | else | |
18305 | cat >> confdefs.h <<\EOF | |
18306 | #define wxUSE_STARTUP_TIPS 1 | |
18307 | EOF | |
18308 | ||
18309 | fi | |
18310 | fi | |
18311 | ||
18312 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
18313 | cat >> confdefs.h <<\EOF | |
18314 | #define wxUSE_TEXTDLG 1 | |
18315 | EOF | |
18316 | ||
18317 | fi | |
18318 | ||
b1f5d087 VZ |
18319 | if test "$wxUSE_WIZARDDLG" = "yes"; then |
18320 | cat >> confdefs.h <<\EOF | |
18321 | #define wxUSE_WIZARDDLG 1 | |
18322 | EOF | |
18323 | ||
18324 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
18325 | fi | |
18326 | ||
1e6feb95 | 18327 | |
698dcdb6 VZ |
18328 | if test "$cross_compiling" = "yes"; then |
18329 | OSINFO="\"$host\"" | |
18330 | else | |
18331 | OSINFO=`uname -s -r -m` | |
18332 | OSINFO="\"$OSINFO\"" | |
18333 | fi | |
18334 | ||
18335 | cat >> confdefs.h <<EOF | |
18336 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
18337 | EOF | |
18338 | ||
18339 | ||
18340 | ||
06dda230 VZ |
18341 | if test "x$prefix" != "xNONE"; then |
18342 | wxPREFIX=$prefix | |
18343 | else | |
18344 | wxPREFIX=$ac_default_prefix | |
18345 | fi | |
18346 | ||
7e67ed0d | 18347 | cat >> confdefs.h <<EOF |
06dda230 | 18348 | #define wxINSTALL_PREFIX "$wxPREFIX" |
7e67ed0d VZ |
18349 | EOF |
18350 | ||
18351 | ||
18352 | ||
698dcdb6 | 18353 | |
3a922bb4 | 18354 | |
f11bdd03 | 18355 | if test "$wxUSE_MAC" = 1 ; then |
3d63bc3a | 18356 | LDFLAGS="$LDFLAGS -framework Carbon -framework System" |
698dcdb6 | 18357 | fi |
3a922bb4 | 18358 | |
3d63bc3a RL |
18359 | |
18360 | LIBS="$ZLIB_LINK$POSIX4_LINK$INET_LINK$WCHAR_LINK$THREADS_LINK$DL_LINK -lm$LIBS" | |
18361 | ||
698dcdb6 | 18362 | if test "$wxUSE_GUI" = "yes"; then |
3d63bc3a RL |
18363 | |
18364 | LIBS=" $GUI_TK_LIBRARY$PNG_LINK$JPEG_LINK$TIFF_LINK$FREETYPE_LINK$LIBS" | |
3a922bb4 RL |
18365 | |
18366 | ||
18367 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \ | |
18368 | drawing dynamic erase event exec font image \ | |
18369 | minimal richedit rotate widgets" | |
18370 | ||
3a922bb4 RL |
18371 | CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)" |
18372 | else | |
18373 | SAMPLES_SUBDIRS="console" | |
698dcdb6 VZ |
18374 | fi |
18375 | ||
698dcdb6 | 18376 | |
d714471b | 18377 | INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} -I\${top_srcdir}/include \ |
3e44f09d VZ |
18378 | $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \ |
18379 | $FREETYPE_INCLUDE $TOOLKIT_INCLUDE" | |
698dcdb6 | 18380 | |
63e7762e | 18381 | if test "$wxUSE_GTK" = 1; then |
3d63bc3a | 18382 | WXCONFIG_INCLUDE= |
698dcdb6 VZ |
18383 | else |
18384 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
18385 | fi | |
18386 | ||
18387 | if test "$GXX" = yes ; then | |
18388 | CXXWARNINGS="-Wall" | |
88e30f2b RL |
18389 | |
18390 | if test "$wxUSE_NO_DEPS" = "no" ; then | |
18391 | CFLAGS="-MMD $CFLAGS" | |
18392 | CXXFLAGS="-MMD $CXXFLAGS" | |
18393 | fi | |
18394 | fi | |
18395 | ||
3d63bc3a | 18396 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG$PROFILE $OPTIMISE $INCLUDES" |
698dcdb6 VZ |
18397 | |
18398 | CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` | |
18399 | CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
18400 | ||
3d63bc3a | 18401 | LDFLAGS="$LDFLAGS$PROFILE" |
698dcdb6 | 18402 | |
698dcdb6 VZ |
18403 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" |
18404 | ||
18405 | ||
18406 | ||
18407 | ||
18408 | ||
18409 | ||
18410 | ||
18411 | ||
18412 | ||
18413 | ||
18414 | ||
18415 | ||
18416 | ||
18417 | ||
18418 | ||
18419 | ||
18420 | ||
18421 | ||
18422 | ||
18423 | ||
18424 | ||
18425 | ||
18426 | ||
18427 | ||
18428 | ||
18429 | ||
18430 | ||
18431 | ||
18432 | ||
18433 | ||
18434 | ||
18435 | ||
18436 | ||
18437 | ||
18438 | ||
18439 | ||
18440 | ||
18441 | ||
18442 | ||
18443 | ||
18444 | ||
18445 | ||
18446 | ||
18447 | ||
18448 | ||
18449 | ||
18450 | ||
18451 | ||
18452 | ||
18453 | ||
18454 | ||
18455 | ||
18456 | ||
18457 | ||
18458 | ||
18459 | ||
18460 | ||
18461 | ||
18462 | ||
18463 | ||
18464 | ||
18465 | ||
18466 | ||
18467 | ||
18468 | ||
18469 | ||
18470 | ||
32832908 | 18471 | |
2f51a9ec GD |
18472 | |
18473 | ||
18474 | ||
18475 | ||
f6bcfd97 | 18476 | |
dad6c0ea | 18477 | |
caa2c79b | 18478 | |
3711412e | 18479 | |
1e6feb95 VZ |
18480 | |
18481 | ||
885d4bf5 VS |
18482 | |
18483 | ||
18484 | ||
18485 | ||
0f3f1cbc | 18486 | |
00c81359 | 18487 | |
62d0491b | 18488 | |
10f2d63a VZ |
18489 | |
18490 | ||
698dcdb6 | 18491 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
94054c1d | 18492 | echo "configure:18493: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
698dcdb6 VZ |
18493 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
18494 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
18495 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 18496 | else |
698dcdb6 | 18497 | cat > conftestmake <<\EOF |
10f2d63a VZ |
18498 | all: |
18499 | @echo 'ac_maketemp="${MAKE}"' | |
18500 | EOF | |
18501 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
698dcdb6 | 18502 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
10f2d63a VZ |
18503 | if test -n "$ac_maketemp"; then |
18504 | eval ac_cv_prog_make_${ac_make}_set=yes | |
18505 | else | |
18506 | eval ac_cv_prog_make_${ac_make}_set=no | |
18507 | fi | |
698dcdb6 | 18508 | rm -f conftestmake |
10f2d63a VZ |
18509 | fi |
18510 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
698dcdb6 | 18511 | echo "$ac_t""yes" 1>&6 |
10f2d63a VZ |
18512 | SET_MAKE= |
18513 | else | |
698dcdb6 | 18514 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
18515 | SET_MAKE="MAKE=${MAKE-make}" |
18516 | fi | |
18517 | ||
698dcdb6 | 18518 | |
3a922bb4 RL |
18519 | if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then |
18520 | mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h | |
00cf1208 | 18521 | fi |
665bbe97 | 18522 | |
698dcdb6 | 18523 | |
10f2d63a | 18524 | |
2224580a | 18525 | if test "$wxUSE_GUI" = "yes"; then |
ec90f5e5 | 18526 | wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS |
e8482f24 GL |
18527 | wx_cv_path_ifs=$PATH_IFS |
18528 | wx_cv_program_ext=$PROGRAM_EXT | |
18529 | wx_cv_target_library=$WX_TARGET_LIBRARY | |
7b6058cd | 18530 | wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL |
3711412e | 18531 | wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE |
93a20a27 | 18532 | export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \ |
7b6058cd | 18533 | wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype |
698dcdb6 | 18534 | subdirs="demos samples utils contrib" |
2224580a VZ |
18535 | |
18536 | fi | |
10f2d63a | 18537 | |
698dcdb6 VZ |
18538 | trap '' 1 2 15 |
18539 | cat > confcache <<\EOF | |
10f2d63a VZ |
18540 | # This file is a shell script that caches the results of configure |
18541 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
18542 | # scripts and configure runs. It is not useful on other systems. |
18543 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 18544 | # |
698dcdb6 VZ |
18545 | # By default, configure uses ./config.cache as the cache file, |
18546 | # creating it if it does not exist already. You can give configure | |
18547 | # the --cache-file=FILE option to use a different cache file; that is | |
18548 | # what configure does when it calls configure scripts in | |
18549 | # subdirectories, so they share the cache. | |
18550 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
18551 | # config.status only pays attention to the cache file if you give it the | |
18552 | # --recheck option to rerun configure. | |
10f2d63a | 18553 | # |
698dcdb6 | 18554 | EOF |
10f2d63a VZ |
18555 | # The following way of writing the cache mishandles newlines in values, |
18556 | # but we know of no workaround that is simple, portable, and efficient. | |
18557 | # So, don't put newlines in cache variables' values. | |
18558 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
18559 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
18560 | (set) 2>&1 | |
18561 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
18562 | *ac_space=\ *) | |
18563 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
18564 | # turns \\\\ into \\, and sed turns \\ into \). | |
18565 | sed -n \ | |
18566 | -e "s/'/'\\\\''/g" \ | |
18567 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
18568 | ;; | |
18569 | *) | |
18570 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
18571 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
18572 | ;; | |
18573 | esac >> confcache | |
18574 | if cmp -s $cache_file confcache; then | |
18575 | : | |
18576 | else | |
10f2d63a | 18577 | if test -w $cache_file; then |
698dcdb6 VZ |
18578 | echo "updating cache $cache_file" |
18579 | cat confcache > $cache_file | |
10f2d63a VZ |
18580 | else |
18581 | echo "not updating unwritable cache $cache_file" | |
18582 | fi | |
18583 | fi | |
18584 | rm -f confcache | |
18585 | ||
698dcdb6 VZ |
18586 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
18587 | ||
10f2d63a VZ |
18588 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
18589 | # Let make expand exec_prefix. | |
18590 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
18591 | ||
698dcdb6 VZ |
18592 | # Any assignment to VPATH causes Sun make to only execute |
18593 | # the first set of double-colon rules, so remove it if not needed. | |
18594 | # If there is a colon in the path, we need to keep it. | |
10f2d63a | 18595 | if test "x$srcdir" = x.; then |
698dcdb6 | 18596 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
10f2d63a VZ |
18597 | fi |
18598 | ||
698dcdb6 VZ |
18599 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
18600 | ||
10f2d63a VZ |
18601 | DEFS=-DHAVE_CONFIG_H |
18602 | ||
698dcdb6 | 18603 | # Without the "./", some shells look in PATH for config.status. |
10f2d63a | 18604 | : ${CONFIG_STATUS=./config.status} |
698dcdb6 VZ |
18605 | |
18606 | echo creating $CONFIG_STATUS | |
18607 | rm -f $CONFIG_STATUS | |
18608 | cat > $CONFIG_STATUS <<EOF | |
18609 | #! /bin/sh | |
10f2d63a VZ |
18610 | # Generated automatically by configure. |
18611 | # Run this file to recreate the current configuration. | |
698dcdb6 VZ |
18612 | # This directory was configured as follows, |
18613 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
18614 | # | |
18615 | # $0 $ac_configure_args | |
18616 | # | |
10f2d63a | 18617 | # Compiler output produced by configure, useful for debugging |
698dcdb6 | 18618 | # configure, is in ./config.log if it exists. |
1e487827 | 18619 | |
698dcdb6 VZ |
18620 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
18621 | for ac_option | |
10f2d63a | 18622 | do |
698dcdb6 | 18623 | case "\$ac_option" in |
10f2d63a | 18624 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
698dcdb6 VZ |
18625 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
18626 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
18627 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
18628 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | |
18629 | exit 0 ;; | |
18630 | -help | --help | --hel | --he | --h) | |
18631 | echo "\$ac_cs_usage"; exit 0 ;; | |
18632 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
10f2d63a VZ |
18633 | esac |
18634 | done | |
18635 | ||
698dcdb6 VZ |
18636 | ac_given_srcdir=$srcdir |
18637 | ac_given_INSTALL="$INSTALL" | |
703e0a69 | 18638 | |
698dcdb6 VZ |
18639 | trap 'rm -fr `echo " |
18640 | wx-config | |
18641 | src/make.env | |
18642 | src/makeprog.env | |
18643 | src/makelib.env | |
18644 | Makefile | |
18645 | setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
1e487827 | 18646 | EOF |
698dcdb6 | 18647 | cat >> $CONFIG_STATUS <<EOF |
1e487827 | 18648 | |
698dcdb6 VZ |
18649 | # Protect against being on the right side of a sed subst in config.status. |
18650 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
18651 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
18652 | $ac_vpsub | |
18653 | $extrasub | |
18654 | s%@SHELL@%$SHELL%g | |
18655 | s%@CFLAGS@%$CFLAGS%g | |
18656 | s%@CPPFLAGS@%$CPPFLAGS%g | |
18657 | s%@CXXFLAGS@%$CXXFLAGS%g | |
18658 | s%@FFLAGS@%$FFLAGS%g | |
18659 | s%@DEFS@%$DEFS%g | |
18660 | s%@LDFLAGS@%$LDFLAGS%g | |
18661 | s%@LIBS@%$LIBS%g | |
18662 | s%@exec_prefix@%$exec_prefix%g | |
18663 | s%@prefix@%$prefix%g | |
18664 | s%@program_transform_name@%$program_transform_name%g | |
18665 | s%@bindir@%$bindir%g | |
18666 | s%@sbindir@%$sbindir%g | |
18667 | s%@libexecdir@%$libexecdir%g | |
18668 | s%@datadir@%$datadir%g | |
18669 | s%@sysconfdir@%$sysconfdir%g | |
18670 | s%@sharedstatedir@%$sharedstatedir%g | |
18671 | s%@localstatedir@%$localstatedir%g | |
18672 | s%@libdir@%$libdir%g | |
18673 | s%@includedir@%$includedir%g | |
18674 | s%@oldincludedir@%$oldincludedir%g | |
18675 | s%@infodir@%$infodir%g | |
18676 | s%@mandir@%$mandir%g | |
18677 | s%@host@%$host%g | |
18678 | s%@host_alias@%$host_alias%g | |
18679 | s%@host_cpu@%$host_cpu%g | |
18680 | s%@host_vendor@%$host_vendor%g | |
18681 | s%@host_os@%$host_os%g | |
18682 | s%@target@%$target%g | |
18683 | s%@target_alias@%$target_alias%g | |
18684 | s%@target_cpu@%$target_cpu%g | |
18685 | s%@target_vendor@%$target_vendor%g | |
18686 | s%@target_os@%$target_os%g | |
18687 | s%@build@%$build%g | |
18688 | s%@build_alias@%$build_alias%g | |
18689 | s%@build_cpu@%$build_cpu%g | |
18690 | s%@build_vendor@%$build_vendor%g | |
18691 | s%@build_os@%$build_os%g | |
18692 | s%@CC@%$CC%g | |
18693 | s%@CPP@%$CPP%g | |
18694 | s%@CXX@%$CXX%g | |
698dcdb6 VZ |
18695 | s%@RANLIB@%$RANLIB%g |
18696 | s%@AR@%$AR%g | |
18697 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
d6853540 | 18698 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
6054113a | 18699 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
698dcdb6 VZ |
18700 | s%@STRIP@%$STRIP%g |
18701 | s%@YACC@%$YACC%g | |
18702 | s%@LEX@%$LEX%g | |
18703 | s%@LEXLIB@%$LEXLIB%g | |
18704 | s%@LN_S@%$LN_S%g | |
18705 | s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g | |
698dcdb6 VZ |
18706 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g |
18707 | s%@GTK_LIBS@%$GTK_LIBS%g | |
8168de4c | 18708 | s%@GTK_CONFIG@%$GTK_CONFIG%g |
698dcdb6 VZ |
18709 | s%@X_CFLAGS@%$X_CFLAGS%g |
18710 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
18711 | s%@X_LIBS@%$X_LIBS%g | |
18712 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
3a922bb4 | 18713 | s%@RESCOMP@%$RESCOMP%g |
698dcdb6 | 18714 | s%@DEREZ@%$DEREZ%g |
3a922bb4 | 18715 | s%@CXXCPP@%$CXXCPP%g |
698dcdb6 VZ |
18716 | s%@LEX_STEM@%$LEX_STEM%g |
18717 | s%@PATH_IFS@%$PATH_IFS%g | |
18718 | s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g | |
18719 | s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g | |
18720 | s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g | |
698dcdb6 VZ |
18721 | s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g |
18722 | s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g | |
77e13408 | 18723 | s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g |
698dcdb6 VZ |
18724 | s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g |
18725 | s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g | |
18726 | s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g | |
698dcdb6 | 18727 | s%@PROGRAM_EXT@%$PROGRAM_EXT%g |
698dcdb6 VZ |
18728 | s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g |
18729 | s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g | |
698dcdb6 VZ |
18730 | s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g |
18731 | s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g | |
18732 | s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g | |
698dcdb6 VZ |
18733 | s%@WX_ALL@%$WX_ALL%g |
18734 | s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g | |
18735 | s%@SHARED_LD@%$SHARED_LD%g | |
18736 | s%@PIC_FLAG@%$PIC_FLAG%g | |
698dcdb6 VZ |
18737 | s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g |
18738 | s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g | |
3a922bb4 RL |
18739 | s%@SONAME_FLAGS@%$SONAME_FLAGS%g |
18740 | s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g | |
698dcdb6 VZ |
18741 | s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g |
18742 | s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g | |
18743 | s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g | |
18744 | s%@USE_GUI@%$USE_GUI%g | |
18745 | s%@AFMINSTALL@%$AFMINSTALL%g | |
18746 | s%@TOOLKIT@%$TOOLKIT%g | |
698dcdb6 | 18747 | s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g |
1e6feb95 | 18748 | s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g |
3a922bb4 RL |
18749 | s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g |
18750 | s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g | |
00c81359 | 18751 | s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g |
3a922bb4 RL |
18752 | s%@cross_compiling@%$cross_compiling%g |
18753 | s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g | |
18754 | s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g | |
885d4bf5 VS |
18755 | s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g |
18756 | s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g | |
698dcdb6 VZ |
18757 | s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g |
18758 | s%@ALL_OBJECTS@%$ALL_OBJECTS%g | |
698dcdb6 VZ |
18759 | s%@GUIDIST@%$GUIDIST%g |
18760 | s%@PORT_FILES@%$PORT_FILES%g | |
18761 | s%@DISTDIR@%$DISTDIR%g | |
698dcdb6 | 18762 | s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g |
62d0491b | 18763 | s%@LDFLAGS_GL@%$LDFLAGS_GL%g |
698dcdb6 | 18764 | s%@OPENGL_LIBS@%$OPENGL_LIBS%g |
3d63bc3a | 18765 | s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g |
698dcdb6 | 18766 | s%@EXTRADEFS@%$EXTRADEFS%g |
698dcdb6 | 18767 | s%@RESFLAGS@%$RESFLAGS%g |
3a922bb4 | 18768 | s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g |
d08b457b | 18769 | s%@WX_RESOURCES_MACOSX@%$WX_RESOURCES_MACOSX%g |
e23081de | 18770 | s%@WX_RESOURCES_MACOSX_COMPILED@%$WX_RESOURCES_MACOSX_COMPILED%g |
698dcdb6 VZ |
18771 | s%@LIBWXMACRES@%$LIBWXMACRES%g |
18772 | s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g | |
2baaf735 | 18773 | s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g |
698dcdb6 VZ |
18774 | s%@DLLTOOL@%$DLLTOOL%g |
18775 | s%@AS@%$AS%g | |
18776 | s%@NM@%$NM%g | |
18777 | s%@LD@%$LD%g | |
18778 | s%@MAKEINFO@%$MAKEINFO%g | |
885d4bf5 | 18779 | s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g |
698dcdb6 VZ |
18780 | s%@SET_MAKE@%$SET_MAKE%g |
18781 | s%@subdirs@%$subdirs%g | |
1e487827 | 18782 | |
1e487827 | 18783 | CEOF |
1e487827 VS |
18784 | EOF |
18785 | ||
698dcdb6 VZ |
18786 | cat >> $CONFIG_STATUS <<\EOF |
18787 | ||
18788 | # Split the substitutions into bite-sized pieces for seds with | |
18789 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
18790 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
18791 | ac_file=1 # Number of current file. | |
18792 | ac_beg=1 # First line for current file. | |
18793 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
18794 | ac_more_lines=: | |
18795 | ac_sed_cmds="" | |
18796 | while $ac_more_lines; do | |
18797 | if test $ac_beg -gt 1; then | |
18798 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
18799 | else | |
18800 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
18801 | fi | |
18802 | if test ! -s conftest.s$ac_file; then | |
18803 | ac_more_lines=false | |
18804 | rm -f conftest.s$ac_file | |
18805 | else | |
18806 | if test -z "$ac_sed_cmds"; then | |
18807 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
10f2d63a | 18808 | else |
698dcdb6 | 18809 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
10f2d63a | 18810 | fi |
698dcdb6 VZ |
18811 | ac_file=`expr $ac_file + 1` |
18812 | ac_beg=$ac_end | |
18813 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
10f2d63a | 18814 | fi |
698dcdb6 VZ |
18815 | done |
18816 | if test -z "$ac_sed_cmds"; then | |
18817 | ac_sed_cmds=cat | |
18818 | fi | |
18819 | EOF | |
10f2d63a | 18820 | |
698dcdb6 VZ |
18821 | cat >> $CONFIG_STATUS <<EOF |
18822 | ||
18823 | CONFIG_FILES=\${CONFIG_FILES-"wx-config | |
18824 | src/make.env | |
18825 | src/makeprog.env | |
18826 | src/makelib.env | |
18827 | Makefile | |
18828 | "} | |
10f2d63a | 18829 | EOF |
698dcdb6 VZ |
18830 | cat >> $CONFIG_STATUS <<\EOF |
18831 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
10f2d63a | 18832 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
698dcdb6 VZ |
18833 | case "$ac_file" in |
18834 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
18835 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
18836 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
18837 | esac |
18838 | ||
698dcdb6 | 18839 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
1e487827 | 18840 | |
698dcdb6 VZ |
18841 | # Remove last slash and all that follows it. Not all systems have dirname. |
18842 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
18843 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
18844 | # The file is in a subdirectory. | |
18845 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
18846 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
10f2d63a | 18847 | # A "../" for each directory in $ac_dir_suffix. |
698dcdb6 | 18848 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
10f2d63a VZ |
18849 | else |
18850 | ac_dir_suffix= ac_dots= | |
18851 | fi | |
18852 | ||
698dcdb6 VZ |
18853 | case "$ac_given_srcdir" in |
18854 | .) srcdir=. | |
18855 | if test -z "$ac_dots"; then top_srcdir=. | |
18856 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
18857 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
10f2d63a | 18858 | *) # Relative path. |
698dcdb6 VZ |
18859 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
18860 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
10f2d63a VZ |
18861 | esac |
18862 | ||
698dcdb6 VZ |
18863 | case "$ac_given_INSTALL" in |
18864 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
18865 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
10f2d63a VZ |
18866 | esac |
18867 | ||
698dcdb6 VZ |
18868 | echo creating "$ac_file" |
18869 | rm -f "$ac_file" | |
18870 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
18871 | case "$ac_file" in | |
18872 | *Makefile*) ac_comsub="1i\\ | |
18873 | # $configure_input" ;; | |
18874 | *) ac_comsub= ;; | |
18875 | esac | |
10f2d63a | 18876 | |
698dcdb6 VZ |
18877 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
18878 | sed -e "$ac_comsub | |
18879 | s%@configure_input@%$configure_input%g | |
18880 | s%@srcdir@%$srcdir%g | |
18881 | s%@top_srcdir@%$top_srcdir%g | |
18882 | s%@INSTALL@%$INSTALL%g | |
18883 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
18884 | fi; done | |
18885 | rm -f conftest.s* | |
10f2d63a VZ |
18886 | |
18887 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
18888 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
18889 | # | |
18890 | # ac_d sets the value in "#define NAME VALUE" lines. | |
698dcdb6 VZ |
18891 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
18892 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
18893 | ac_dC='\3' | |
18894 | ac_dD='%g' | |
18895 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
18896 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
18897 | ac_uB='\([ ]\)%\1#\2define\3' | |
10f2d63a | 18898 | ac_uC=' ' |
698dcdb6 VZ |
18899 | ac_uD='\4%g' |
18900 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
18901 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
18902 | ac_eB='$%\1#\2define\3' | |
18903 | ac_eC=' ' | |
18904 | ac_eD='%g' | |
10f2d63a | 18905 | |
698dcdb6 VZ |
18906 | if test "${CONFIG_HEADERS+set}" != set; then |
18907 | EOF | |
18908 | cat >> $CONFIG_STATUS <<EOF | |
18909 | CONFIG_HEADERS="setup.h:setup.h.in" | |
18910 | EOF | |
18911 | cat >> $CONFIG_STATUS <<\EOF | |
18912 | fi | |
18913 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
10f2d63a | 18914 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
698dcdb6 VZ |
18915 | case "$ac_file" in |
18916 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
18917 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
18918 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
18919 | esac |
18920 | ||
698dcdb6 VZ |
18921 | echo creating $ac_file |
18922 | ||
18923 | rm -f conftest.frag conftest.in conftest.out | |
18924 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
18925 | cat $ac_file_inputs > conftest.in | |
18926 | ||
18927 | EOF | |
18928 | ||
18929 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
18930 | # the proper values into config.h.in to produce config.h. And first: | |
18931 | # Protect against being on the right side of a sed subst in config.status. | |
18932 | # Protect against being in an unquoted here document in config.status. | |
18933 | rm -f conftest.vals | |
18934 | cat > conftest.hdr <<\EOF | |
18935 | s/[\\&%]/\\&/g | |
18936 | s%[\\$`]%\\&%g | |
18937 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
18938 | s%ac_d%ac_u%gp | |
18939 | s%ac_u%ac_e%gp | |
18940 | EOF | |
18941 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
18942 | rm -f conftest.hdr | |
10f2d63a VZ |
18943 | |
18944 | # This sed command replaces #undef with comments. This is necessary, for | |
18945 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
18946 | # on some systems where configure will not decide to define it. | |
698dcdb6 VZ |
18947 | cat >> conftest.vals <<\EOF |
18948 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
10f2d63a VZ |
18949 | EOF |
18950 | ||
698dcdb6 VZ |
18951 | # Break up conftest.vals because some shells have a limit on |
18952 | # the size of here documents, and old seds have small limits too. | |
10f2d63a VZ |
18953 | |
18954 | rm -f conftest.tail | |
698dcdb6 | 18955 | while : |
10f2d63a | 18956 | do |
698dcdb6 VZ |
18957 | ac_lines=`grep -c . conftest.vals` |
18958 | # grep -c gives empty output for an empty file on some AIX systems. | |
18959 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
18960 | # Write a limited-size here document to conftest.frag. | |
18961 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
18962 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
10f2d63a | 18963 | echo 'CEOF |
698dcdb6 VZ |
18964 | sed -f conftest.frag conftest.in > conftest.out |
18965 | rm -f conftest.in | |
18966 | mv conftest.out conftest.in | |
18967 | ' >> $CONFIG_STATUS | |
18968 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
18969 | rm -f conftest.vals | |
18970 | mv conftest.tail conftest.vals | |
10f2d63a | 18971 | done |
698dcdb6 VZ |
18972 | rm -f conftest.vals |
18973 | ||
18974 | cat >> $CONFIG_STATUS <<\EOF | |
18975 | rm -f conftest.frag conftest.h | |
18976 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
18977 | cat conftest.in >> conftest.h | |
18978 | rm -f conftest.in | |
18979 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
18980 | echo "$ac_file is unchanged" | |
18981 | rm -f conftest.h | |
10f2d63a | 18982 | else |
698dcdb6 VZ |
18983 | # Remove last slash and all that follows it. Not all systems have dirname. |
18984 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
10f2d63a | 18985 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
698dcdb6 VZ |
18986 | # The file is in a subdirectory. |
18987 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
10f2d63a | 18988 | fi |
698dcdb6 VZ |
18989 | rm -f $ac_file |
18990 | mv conftest.h $ac_file | |
10f2d63a | 18991 | fi |
698dcdb6 VZ |
18992 | fi; done |
18993 | ||
10f2d63a | 18994 | EOF |
698dcdb6 | 18995 | cat >> $CONFIG_STATUS <<EOF |
10f2d63a | 18996 | |
3a922bb4 | 18997 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}" |
698dcdb6 VZ |
18998 | LN_S="${LN_S}" |
18999 | ||
19000 | ||
19001 | EOF | |
19002 | cat >> $CONFIG_STATUS <<\EOF | |
10f2d63a | 19003 | |
652d930d | 19004 | if test ! -h wx-config; then |
991a5759 | 19005 | chmod +x wx-config |
3a922bb4 RL |
19006 | mv wx-config wx${TOOLCHAIN_NAME}-config |
19007 | ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config | |
991a5759 | 19008 | fi |
665bbe97 | 19009 | |
00cf1208 RR |
19010 | if test ! -d lib; then |
19011 | mkdir lib | |
19012 | fi | |
19013 | if test ! -d lib/wx; then | |
19014 | mkdir lib/wx | |
19015 | fi | |
19016 | if test ! -d lib/wx/include; then | |
19017 | mkdir lib/wx/include | |
19018 | fi | |
3a922bb4 RL |
19019 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then |
19020 | mkdir lib/wx/include/${TOOLCHAIN_NAME} | |
00cf1208 | 19021 | fi |
3a922bb4 RL |
19022 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then |
19023 | mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx | |
00cf1208 RR |
19024 | fi |
19025 | if test -f setup.h; then | |
3a922bb4 | 19026 | mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h |
00cf1208 | 19027 | fi |
698dcdb6 VZ |
19028 | |
19029 | exit 0 | |
10f2d63a VZ |
19030 | EOF |
19031 | chmod +x $CONFIG_STATUS | |
698dcdb6 VZ |
19032 | rm -fr confdefs* $ac_clean_files |
19033 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
10f2d63a | 19034 | |
2224580a VZ |
19035 | if test "$no_recursion" != yes; then |
19036 | ||
19037 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
19038 | ac_sub_configure_args= | |
19039 | ac_prev= | |
19040 | for ac_arg in $ac_configure_args; do | |
19041 | if test -n "$ac_prev"; then | |
19042 | ac_prev= | |
19043 | continue | |
19044 | fi | |
698dcdb6 | 19045 | case "$ac_arg" in |
2224580a VZ |
19046 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
19047 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
19048 | ac_prev=cache_file ;; | |
19049 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
698dcdb6 | 19050 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
2224580a VZ |
19051 | ;; |
19052 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
19053 | ac_prev=srcdir ;; | |
19054 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
19055 | ;; | |
19056 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
19057 | esac | |
19058 | done | |
19059 | ||
698dcdb6 | 19060 | for ac_config_dir in demos samples utils contrib; do |
2224580a VZ |
19061 | |
19062 | # Do not complain, so a configure script can configure whichever | |
19063 | # parts of a large source tree are present. | |
698dcdb6 VZ |
19064 | if test ! -d $srcdir/$ac_config_dir; then |
19065 | continue | |
19066 | fi | |
19067 | ||
19068 | echo configuring in $ac_config_dir | |
2224580a | 19069 | |
698dcdb6 | 19070 | case "$srcdir" in |
2224580a VZ |
19071 | .) ;; |
19072 | *) | |
698dcdb6 VZ |
19073 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; |
19074 | else | |
19075 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
19076 | fi | |
19077 | ;; | |
2224580a VZ |
19078 | esac |
19079 | ||
19080 | ac_popdir=`pwd` | |
698dcdb6 | 19081 | cd $ac_config_dir |
2224580a | 19082 | |
698dcdb6 VZ |
19083 | # A "../" for each directory in /$ac_config_dir. |
19084 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
2224580a | 19085 | |
698dcdb6 | 19086 | case "$srcdir" in |
2224580a VZ |
19087 | .) # No --srcdir option. We are building in place. |
19088 | ac_sub_srcdir=$srcdir ;; | |
698dcdb6 VZ |
19089 | /*) # Absolute path. |
19090 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
2224580a | 19091 | *) # Relative path. |
698dcdb6 | 19092 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; |
2224580a VZ |
19093 | esac |
19094 | ||
19095 | # Check for guested configure; otherwise get Cygnus style configure. | |
698dcdb6 VZ |
19096 | if test -f $ac_sub_srcdir/configure; then |
19097 | ac_sub_configure=$ac_sub_srcdir/configure | |
2224580a VZ |
19098 | elif test -f $ac_sub_srcdir/configure.in; then |
19099 | ac_sub_configure=$ac_configure | |
19100 | else | |
698dcdb6 | 19101 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 |
2224580a VZ |
19102 | ac_sub_configure= |
19103 | fi | |
19104 | ||
19105 | # The recursion is here. | |
19106 | if test -n "$ac_sub_configure"; then | |
698dcdb6 | 19107 | |
2224580a | 19108 | # Make the cache file name correct relative to the subdirectory. |
698dcdb6 VZ |
19109 | case "$cache_file" in |
19110 | /*) ac_sub_cache_file=$cache_file ;; | |
2224580a | 19111 | *) # Relative path. |
698dcdb6 | 19112 | ac_sub_cache_file="$ac_dots$cache_file" ;; |
2224580a | 19113 | esac |
698dcdb6 VZ |
19114 | case "$ac_given_INSTALL" in |
19115 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
19116 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
19117 | esac | |
2224580a | 19118 | |
698dcdb6 | 19119 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" |
2224580a | 19120 | # The eval makes quoting arguments work. |
698dcdb6 VZ |
19121 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir |
19122 | then : | |
19123 | else | |
19124 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
19125 | fi | |
2224580a VZ |
19126 | fi |
19127 | ||
19128 | cd $ac_popdir | |
19129 | done | |
19130 | fi | |
19131 | ||
698dcdb6 | 19132 |