]>
Commit | Line | Data |
---|---|---|
10f2d63a VZ |
1 | #! /bin/sh |
2 | ||
698dcdb6 | 3 | # From configure.in Id: configure.in |
703e0a69 VZ |
4 | |
5 | ||
6 | ||
7 | ||
8 | ||
703e0a69 VZ |
9 | |
10 | ||
1e487827 | 11 | |
1e487827 | 12 | |
698dcdb6 VZ |
13 | |
14 | ||
15 | ||
16 | ||
17 | ||
18 | ||
19 | ||
20 | ||
21 | ||
22 | ||
23 | ||
24 | ||
25 | ||
26 | ||
27 | ||
28 | ||
29 | ||
30 | ||
31 | ||
32 | ||
33 | ||
34 | ||
35 | ||
36 | ||
37 | ||
8168de4c VZ |
38 | |
39 | # Configure paths for GTK+ | |
40 | # Owen Taylor 97-11-3 | |
698dcdb6 VZ |
41 | |
42 | ||
43 | ||
44 | ||
698dcdb6 VZ |
45 | |
46 | ||
47 | # Guess values for system-dependent variables and create Makefiles. | |
48 | # Generated automatically using autoconf version 2.13 | |
49 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. | |
50 | # | |
51 | # This configure script is free software; the Free Software Foundation | |
52 | # gives unlimited permission to copy, distribute and modify it. | |
53 | ||
54 | # Defaults: | |
55 | ac_help= | |
56 | ac_default_prefix=/usr/local | |
57 | # Any additions from configure.in: | |
58 | ac_help="$ac_help | |
8168de4c | 59 | --enable-gui use GUI classes" |
1e6feb95 | 60 | ac_help="$ac_help |
8168de4c | 61 | --enable-universal use wxWindows GUI controls instead of native ones" |
698dcdb6 VZ |
62 | ac_help="$ac_help |
63 | --with-gtk use GTK+" | |
64 | ac_help="$ac_help | |
65 | --with-motif use Motif/Lesstif" | |
66 | ac_help="$ac_help | |
67 | --with-mac use Mac OS X" | |
68 | ac_help="$ac_help | |
69 | --with-wine use WINE" | |
70 | ac_help="$ac_help | |
71 | --with-cygwin use Cygwin for MS-Windows" | |
72 | ac_help="$ac_help | |
73 | --with-mingw use GCC Minimal MS-Windows" | |
74 | ac_help="$ac_help | |
75 | --with-pm use OS/2 Presentation Manager" | |
1e6feb95 VZ |
76 | ac_help="$ac_help |
77 | --with-mgl use MGL" | |
698dcdb6 | 78 | ac_help="$ac_help |
8168de4c | 79 | --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)" |
698dcdb6 | 80 | ac_help="$ac_help |
8168de4c | 81 | --with-libpng use libpng (PNG image format)" |
698dcdb6 | 82 | ac_help="$ac_help |
8168de4c | 83 | --with-libjpeg use libjpeg (JPEG file format)" |
698dcdb6 | 84 | ac_help="$ac_help |
8168de4c | 85 | --with-libtiff use libtiff (TIFF file format)" |
698dcdb6 | 86 | ac_help="$ac_help |
8168de4c | 87 | --with-freetype use freetype (font rasterizer)" |
698dcdb6 | 88 | ac_help="$ac_help |
8168de4c | 89 | --with-opengl use OpenGL (or Mesa)" |
698dcdb6 | 90 | ac_help="$ac_help |
8168de4c | 91 | --with-dmalloc use dmalloc library (www.letters.com/dmalloc)" |
3e44f09d VZ |
92 | ac_help="$ac_help |
93 | --with-regex enable support for wxRegEx class" | |
698dcdb6 | 94 | ac_help="$ac_help |
8168de4c | 95 | --with-zlib use zlib for LZW compression" |
698dcdb6 | 96 | ac_help="$ac_help |
8168de4c | 97 | --with-odbc use the IODBC and wxODBC classes" |
698dcdb6 | 98 | ac_help="$ac_help |
8168de4c | 99 | --enable-shared create shared library code" |
698dcdb6 | 100 | ac_help="$ac_help |
8168de4c | 101 | --enable-burnt_name create set name in shared library " |
698dcdb6 | 102 | ac_help="$ac_help |
8168de4c | 103 | --enable-optimise create optimised code" |
698dcdb6 | 104 | ac_help="$ac_help |
8168de4c | 105 | --enable-debug same as debug_flag and debug_info" |
698dcdb6 | 106 | ac_help="$ac_help |
8168de4c | 107 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)" |
698dcdb6 | 108 | ac_help="$ac_help |
8168de4c | 109 | --enable-debug_info create code with debugging information" |
698dcdb6 | 110 | ac_help="$ac_help |
8168de4c | 111 | --enable-debug_gdb create code with extra GDB debugging information" |
698dcdb6 | 112 | ac_help="$ac_help |
8168de4c | 113 | --enable-debug_cntxt use wxDebugContext" |
698dcdb6 | 114 | ac_help="$ac_help |
8168de4c | 115 | --enable-mem_tracing create code with memory tracing" |
698dcdb6 | 116 | ac_help="$ac_help |
8168de4c | 117 | --enable-profile create code with profiling information" |
698dcdb6 | 118 | ac_help="$ac_help |
8168de4c | 119 | --enable-no_rtti create code without RTTI information" |
698dcdb6 | 120 | ac_help="$ac_help |
8168de4c | 121 | --enable-no_exceptions create code without exceptions information" |
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 VZ |
126 | ac_help="$ac_help |
127 | --enable-compat20 enable wxWin 2.0 compatibility" | |
128 | ac_help="$ac_help | |
129 | --enable-compat22 enable wxWin 2.2 compatibility" | |
698dcdb6 | 130 | ac_help="$ac_help |
8168de4c | 131 | --enable-intl use internationalization system" |
698dcdb6 | 132 | ac_help="$ac_help |
8168de4c | 133 | --enable-config use wxConfig (and derived) classes" |
698dcdb6 | 134 | ac_help="$ac_help |
8168de4c | 135 | --enable-sockets use socket/network classes" |
698dcdb6 | 136 | ac_help="$ac_help |
8168de4c | 137 | --enable-ipc use interprocess communication (wxSocket etc.)" |
698dcdb6 | 138 | ac_help="$ac_help |
8168de4c | 139 | --enable-cmdline use wxCmdLineParser class" |
1e6feb95 | 140 | ac_help="$ac_help |
8168de4c | 141 | --enable-datetime use wxDateTime class" |
1e6feb95 | 142 | ac_help="$ac_help |
8168de4c | 143 | --enable-timedate use obsolete wxDate/wxTime classes" |
1e6feb95 | 144 | ac_help="$ac_help |
8168de4c | 145 | --enable-stopwatch use wxStopWatch class" |
1e6feb95 | 146 | ac_help="$ac_help |
8168de4c | 147 | --enable-dialupman use dialup network classes" |
698dcdb6 | 148 | ac_help="$ac_help |
8168de4c | 149 | --enable-apple_ieee use the Apple IEEE codec" |
698dcdb6 | 150 | ac_help="$ac_help |
8168de4c | 151 | --enable-timer use wxTimer class" |
698dcdb6 | 152 | ac_help="$ac_help |
8168de4c | 153 | --enable-wave use wxWave class" |
698dcdb6 | 154 | ac_help="$ac_help |
8168de4c | 155 | --enable-fraction use wxFraction class" |
698dcdb6 | 156 | ac_help="$ac_help |
8168de4c | 157 | --enable-dynlib use wxLibrary class for DLL loading" |
698dcdb6 | 158 | ac_help="$ac_help |
8168de4c | 159 | --enable-longlong use wxLongLong class" |
698dcdb6 | 160 | ac_help="$ac_help |
8168de4c | 161 | --enable-geometry use geometry class" |
698dcdb6 | 162 | ac_help="$ac_help |
8168de4c | 163 | --enable-log use logging system" |
698dcdb6 | 164 | ac_help="$ac_help |
8168de4c | 165 | --enable-streams use wxStream etc classes" |
698dcdb6 | 166 | ac_help="$ac_help |
8168de4c | 167 | --enable-file use wxFile classes" |
698dcdb6 | 168 | ac_help="$ac_help |
8168de4c | 169 | --enable-ffile use wxFFile classes" |
1e6feb95 | 170 | ac_help="$ac_help |
8168de4c | 171 | --enable-textfile use wxTextFile classes" |
698dcdb6 | 172 | ac_help="$ac_help |
8168de4c | 173 | --enable-fontmap use font encodings conversion classes" |
1e6feb95 | 174 | ac_help="$ac_help |
8168de4c | 175 | --enable-unicode compile wxString with Unicode support" |
698dcdb6 | 176 | ac_help="$ac_help |
8168de4c | 177 | --enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs" |
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 VZ |
196 | ac_help="$ac_help |
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 |
8168de4c | 317 | --enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)" |
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 |
8168de4c | 357 | --enable-joystick compile in joystick support (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" | |
1e6feb95 | 362 | ac_help="$ac_help |
8168de4c | 363 | --enable-image use wxImage class" |
698dcdb6 | 364 | ac_help="$ac_help |
8168de4c | 365 | --enable-gif use gif images (GIF file format)" |
698dcdb6 | 366 | ac_help="$ac_help |
8168de4c | 367 | --enable-pcx use pcx images (PCX file format)" |
698dcdb6 | 368 | ac_help="$ac_help |
8168de4c | 369 | --enable-pnm use pnm images (PNM file format)" |
698dcdb6 | 370 | ac_help="$ac_help |
8168de4c | 371 | --enable-xpm use xpm images (XPM file format)" |
698dcdb6 VZ |
372 | ac_help="$ac_help |
373 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
374 | ac_help="$ac_help | |
375 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
376 | ac_help="$ac_help | |
377 | --disable-gtktest Do not try to compile and run a test GTK program" | |
378 | ac_help="$ac_help | |
379 | --with-x use the X Window System" | |
10f2d63a VZ |
380 | |
381 | # Initialize some variables set by options. | |
382 | # The variables have the same names as the options, with | |
383 | # dashes changed to underlines. | |
698dcdb6 VZ |
384 | build=NONE |
385 | cache_file=./config.cache | |
10f2d63a | 386 | exec_prefix=NONE |
698dcdb6 | 387 | host=NONE |
10f2d63a | 388 | no_create= |
698dcdb6 | 389 | nonopt=NONE |
10f2d63a VZ |
390 | no_recursion= |
391 | prefix=NONE | |
392 | program_prefix=NONE | |
393 | program_suffix=NONE | |
394 | program_transform_name=s,x,x, | |
395 | silent= | |
396 | site= | |
397 | srcdir= | |
698dcdb6 | 398 | target=NONE |
10f2d63a VZ |
399 | verbose= |
400 | x_includes=NONE | |
401 | x_libraries=NONE | |
402 | bindir='${exec_prefix}/bin' | |
403 | sbindir='${exec_prefix}/sbin' | |
404 | libexecdir='${exec_prefix}/libexec' | |
405 | datadir='${prefix}/share' | |
406 | sysconfdir='${prefix}/etc' | |
407 | sharedstatedir='${prefix}/com' | |
408 | localstatedir='${prefix}/var' | |
409 | libdir='${exec_prefix}/lib' | |
410 | includedir='${prefix}/include' | |
411 | oldincludedir='/usr/include' | |
412 | infodir='${prefix}/info' | |
413 | mandir='${prefix}/man' | |
414 | ||
698dcdb6 VZ |
415 | # Initialize some other variables. |
416 | subdirs= | |
417 | MFLAGS= MAKEFLAGS= | |
418 | SHELL=${CONFIG_SHELL-/bin/sh} | |
419 | # Maximum number of lines to put in a shell here document. | |
420 | ac_max_here_lines=12 | |
10f2d63a VZ |
421 | |
422 | ac_prev= | |
423 | for ac_option | |
424 | do | |
698dcdb6 | 425 | |
10f2d63a VZ |
426 | # If the previous option needs an argument, assign it. |
427 | if test -n "$ac_prev"; then | |
428 | eval "$ac_prev=\$ac_option" | |
429 | ac_prev= | |
430 | continue | |
431 | fi | |
432 | ||
698dcdb6 VZ |
433 | case "$ac_option" in |
434 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
435 | *) ac_optarg= ;; | |
436 | esac | |
10f2d63a VZ |
437 | |
438 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
439 | ||
698dcdb6 | 440 | case "$ac_option" in |
10f2d63a VZ |
441 | |
442 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
443 | ac_prev=bindir ;; | |
444 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
698dcdb6 | 445 | bindir="$ac_optarg" ;; |
10f2d63a VZ |
446 | |
447 | -build | --build | --buil | --bui | --bu) | |
698dcdb6 | 448 | ac_prev=build ;; |
10f2d63a | 449 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
698dcdb6 | 450 | build="$ac_optarg" ;; |
10f2d63a VZ |
451 | |
452 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
453 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
454 | ac_prev=cache_file ;; | |
455 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
456 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
698dcdb6 | 457 | cache_file="$ac_optarg" ;; |
10f2d63a VZ |
458 | |
459 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
460 | ac_prev=datadir ;; | |
461 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
462 | | --da=*) | |
698dcdb6 | 463 | datadir="$ac_optarg" ;; |
10f2d63a VZ |
464 | |
465 | -disable-* | --disable-*) | |
698dcdb6 | 466 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
10f2d63a | 467 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
468 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
469 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
470 | fi | |
471 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
472 | eval "enable_${ac_feature}=no" ;; | |
10f2d63a VZ |
473 | |
474 | -enable-* | --enable-*) | |
698dcdb6 | 475 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
10f2d63a | 476 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
477 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
478 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
479 | fi | |
480 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
481 | case "$ac_option" in | |
482 | *=*) ;; | |
10f2d63a VZ |
483 | *) ac_optarg=yes ;; |
484 | esac | |
698dcdb6 | 485 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
10f2d63a VZ |
486 | |
487 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
488 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
489 | | --exec | --exe | --ex) | |
490 | ac_prev=exec_prefix ;; | |
491 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
492 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
493 | | --exec=* | --exe=* | --ex=*) | |
698dcdb6 | 494 | exec_prefix="$ac_optarg" ;; |
10f2d63a VZ |
495 | |
496 | -gas | --gas | --ga | --g) | |
497 | # Obsolete; use --with-gas. | |
498 | with_gas=yes ;; | |
499 | ||
698dcdb6 VZ |
500 | -help | --help | --hel | --he) |
501 | # Omit some internal or obsolete options to make the list less imposing. | |
502 | # This message is too long to be a string in the A/UX 3.1 sh. | |
503 | cat << EOF | |
504 | Usage: configure [options] [host] | |
505 | Options: [defaults in brackets after descriptions] | |
506 | Configuration: | |
507 | --cache-file=FILE cache test results in FILE | |
508 | --help print this message | |
509 | --no-create do not create output files | |
510 | --quiet, --silent do not print \`checking...' messages | |
511 | --version print the version of autoconf that created configure | |
512 | Directory and file names: | |
513 | --prefix=PREFIX install architecture-independent files in PREFIX | |
514 | [$ac_default_prefix] | |
515 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
516 | [same as prefix] | |
517 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
518 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
519 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
520 | --datadir=DIR read-only architecture-independent data in DIR | |
521 | [PREFIX/share] | |
522 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
523 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
524 | [PREFIX/com] | |
525 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
526 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
527 | --includedir=DIR C header files in DIR [PREFIX/include] | |
528 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
529 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
530 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
531 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
532 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
533 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
534 | --program-transform-name=PROGRAM | |
535 | run sed PROGRAM on installed program names | |
536 | EOF | |
537 | cat << EOF | |
538 | Host type: | |
539 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
540 | --host=HOST configure for HOST [guessed] | |
541 | --target=TARGET configure for TARGET [TARGET=HOST] | |
542 | Features and packages: | |
543 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
544 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
545 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
546 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
547 | --x-includes=DIR X include files are in DIR | |
548 | --x-libraries=DIR X library files are in DIR | |
549 | EOF | |
550 | if test -n "$ac_help"; then | |
551 | echo "--enable and --with options recognized:$ac_help" | |
552 | fi | |
553 | exit 0 ;; | |
10f2d63a VZ |
554 | |
555 | -host | --host | --hos | --ho) | |
698dcdb6 | 556 | ac_prev=host ;; |
10f2d63a | 557 | -host=* | --host=* | --hos=* | --ho=*) |
698dcdb6 | 558 | host="$ac_optarg" ;; |
10f2d63a VZ |
559 | |
560 | -includedir | --includedir | --includedi | --included | --include \ | |
561 | | --includ | --inclu | --incl | --inc) | |
562 | ac_prev=includedir ;; | |
563 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
564 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
698dcdb6 | 565 | includedir="$ac_optarg" ;; |
10f2d63a VZ |
566 | |
567 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
568 | ac_prev=infodir ;; | |
569 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
698dcdb6 | 570 | infodir="$ac_optarg" ;; |
10f2d63a VZ |
571 | |
572 | -libdir | --libdir | --libdi | --libd) | |
573 | ac_prev=libdir ;; | |
574 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
698dcdb6 | 575 | libdir="$ac_optarg" ;; |
10f2d63a VZ |
576 | |
577 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
578 | | --libexe | --libex | --libe) | |
579 | ac_prev=libexecdir ;; | |
580 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
581 | | --libexe=* | --libex=* | --libe=*) | |
698dcdb6 | 582 | libexecdir="$ac_optarg" ;; |
10f2d63a VZ |
583 | |
584 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
585 | | --localstate | --localstat | --localsta | --localst \ | |
586 | | --locals | --local | --loca | --loc | --lo) | |
587 | ac_prev=localstatedir ;; | |
588 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
589 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
590 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
698dcdb6 | 591 | localstatedir="$ac_optarg" ;; |
10f2d63a VZ |
592 | |
593 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
594 | ac_prev=mandir ;; | |
595 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
698dcdb6 | 596 | mandir="$ac_optarg" ;; |
10f2d63a VZ |
597 | |
598 | -nfp | --nfp | --nf) | |
599 | # Obsolete; use --without-fp. | |
600 | with_fp=no ;; | |
601 | ||
602 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
603 | | --no-cr | --no-c) | |
604 | no_create=yes ;; | |
605 | ||
606 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
607 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
608 | no_recursion=yes ;; | |
609 | ||
610 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
611 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
612 | | --oldin | --oldi | --old | --ol | --o) | |
613 | ac_prev=oldincludedir ;; | |
614 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
615 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
616 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
698dcdb6 | 617 | oldincludedir="$ac_optarg" ;; |
10f2d63a VZ |
618 | |
619 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
620 | ac_prev=prefix ;; | |
621 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
698dcdb6 | 622 | prefix="$ac_optarg" ;; |
10f2d63a VZ |
623 | |
624 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
625 | | --program-pre | --program-pr | --program-p) | |
626 | ac_prev=program_prefix ;; | |
627 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
628 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
698dcdb6 | 629 | program_prefix="$ac_optarg" ;; |
10f2d63a VZ |
630 | |
631 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
632 | | --program-suf | --program-su | --program-s) | |
633 | ac_prev=program_suffix ;; | |
634 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
635 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
698dcdb6 | 636 | program_suffix="$ac_optarg" ;; |
10f2d63a VZ |
637 | |
638 | -program-transform-name | --program-transform-name \ | |
639 | | --program-transform-nam | --program-transform-na \ | |
640 | | --program-transform-n | --program-transform- \ | |
641 | | --program-transform | --program-transfor \ | |
642 | | --program-transfo | --program-transf \ | |
643 | | --program-trans | --program-tran \ | |
644 | | --progr-tra | --program-tr | --program-t) | |
645 | ac_prev=program_transform_name ;; | |
646 | -program-transform-name=* | --program-transform-name=* \ | |
647 | | --program-transform-nam=* | --program-transform-na=* \ | |
648 | | --program-transform-n=* | --program-transform-=* \ | |
649 | | --program-transform=* | --program-transfor=* \ | |
650 | | --program-transfo=* | --program-transf=* \ | |
651 | | --program-trans=* | --program-tran=* \ | |
652 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
698dcdb6 | 653 | program_transform_name="$ac_optarg" ;; |
10f2d63a VZ |
654 | |
655 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
656 | | -silent | --silent | --silen | --sile | --sil) | |
657 | silent=yes ;; | |
658 | ||
659 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
660 | ac_prev=sbindir ;; | |
661 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
662 | | --sbi=* | --sb=*) | |
698dcdb6 | 663 | sbindir="$ac_optarg" ;; |
10f2d63a VZ |
664 | |
665 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
666 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
667 | | --sharedst | --shareds | --shared | --share | --shar \ | |
668 | | --sha | --sh) | |
669 | ac_prev=sharedstatedir ;; | |
670 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
671 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
672 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
673 | | --sha=* | --sh=*) | |
698dcdb6 | 674 | sharedstatedir="$ac_optarg" ;; |
10f2d63a VZ |
675 | |
676 | -site | --site | --sit) | |
677 | ac_prev=site ;; | |
678 | -site=* | --site=* | --sit=*) | |
698dcdb6 | 679 | site="$ac_optarg" ;; |
10f2d63a VZ |
680 | |
681 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
682 | ac_prev=srcdir ;; | |
683 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
698dcdb6 | 684 | srcdir="$ac_optarg" ;; |
10f2d63a VZ |
685 | |
686 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
687 | | --syscon | --sysco | --sysc | --sys | --sy) | |
688 | ac_prev=sysconfdir ;; | |
689 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
690 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
698dcdb6 | 691 | sysconfdir="$ac_optarg" ;; |
10f2d63a VZ |
692 | |
693 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
698dcdb6 | 694 | ac_prev=target ;; |
10f2d63a | 695 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
698dcdb6 | 696 | target="$ac_optarg" ;; |
10f2d63a VZ |
697 | |
698 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
699 | verbose=yes ;; | |
700 | ||
698dcdb6 VZ |
701 | -version | --version | --versio | --versi | --vers) |
702 | echo "configure generated by autoconf version 2.13" | |
703 | exit 0 ;; | |
10f2d63a VZ |
704 | |
705 | -with-* | --with-*) | |
698dcdb6 | 706 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
10f2d63a | 707 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
708 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
709 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
710 | fi | |
10f2d63a | 711 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
698dcdb6 VZ |
712 | case "$ac_option" in |
713 | *=*) ;; | |
10f2d63a VZ |
714 | *) ac_optarg=yes ;; |
715 | esac | |
698dcdb6 | 716 | eval "with_${ac_package}='$ac_optarg'" ;; |
10f2d63a VZ |
717 | |
718 | -without-* | --without-*) | |
698dcdb6 | 719 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
10f2d63a | 720 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
721 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
722 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
723 | fi | |
724 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
725 | eval "with_${ac_package}=no" ;; | |
10f2d63a VZ |
726 | |
727 | --x) | |
728 | # Obsolete; use --with-x. | |
729 | with_x=yes ;; | |
730 | ||
731 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
732 | | --x-incl | --x-inc | --x-in | --x-i) | |
733 | ac_prev=x_includes ;; | |
734 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
735 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
698dcdb6 | 736 | x_includes="$ac_optarg" ;; |
10f2d63a VZ |
737 | |
738 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
739 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
740 | ac_prev=x_libraries ;; | |
741 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
742 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
698dcdb6 | 743 | x_libraries="$ac_optarg" ;; |
10f2d63a | 744 | |
698dcdb6 | 745 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
10f2d63a VZ |
746 | ;; |
747 | ||
748 | *) | |
698dcdb6 VZ |
749 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
750 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
751 | fi | |
752 | if test "x$nonopt" != xNONE; then | |
753 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
754 | fi | |
755 | nonopt="$ac_option" | |
10f2d63a VZ |
756 | ;; |
757 | ||
758 | esac | |
759 | done | |
760 | ||
761 | if test -n "$ac_prev"; then | |
698dcdb6 VZ |
762 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
763 | fi | |
764 | ||
765 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
766 | ||
767 | # File descriptor usage: | |
768 | # 0 standard input | |
769 | # 1 file creation | |
770 | # 2 errors and warnings | |
771 | # 3 some systems may open it to /dev/tty | |
772 | # 4 used on the Kubota Titan | |
773 | # 6 checking for... messages and results | |
774 | # 5 compiler messages saved in config.log | |
775 | if test "$silent" = yes; then | |
776 | exec 6>/dev/null | |
777 | else | |
778 | exec 6>&1 | |
10f2d63a | 779 | fi |
698dcdb6 VZ |
780 | exec 5>./config.log |
781 | ||
782 | echo "\ | |
783 | This file contains any messages produced by compilers while | |
784 | running configure, to aid debugging if configure makes a mistake. | |
785 | " 1>&5 | |
10f2d63a | 786 | |
698dcdb6 VZ |
787 | # Strip out --no-create and --no-recursion so they do not pile up. |
788 | # Also quote any args containing shell metacharacters. | |
789 | ac_configure_args= | |
790 | for ac_arg | |
10f2d63a | 791 | do |
698dcdb6 VZ |
792 | case "$ac_arg" in |
793 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
794 | | --no-cr | --no-c) ;; | |
795 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
796 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
797 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
798 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
799 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
10f2d63a VZ |
800 | esac |
801 | done | |
802 | ||
698dcdb6 VZ |
803 | # NLS nuisances. |
804 | # Only set these to C if already set. These must not be set unconditionally | |
805 | # because not all systems understand e.g. LANG=C (notably SCO). | |
806 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
807 | # Non-C LC_CTYPE values break the ctype check. | |
808 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
809 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
810 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
811 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
10f2d63a | 812 | |
698dcdb6 VZ |
813 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
814 | rm -rf conftest* confdefs.h | |
815 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
816 | echo > confdefs.h | |
10f2d63a | 817 | |
698dcdb6 VZ |
818 | # A filename unique to this package, relative to the directory that |
819 | # configure is in, which we can look for to find out if srcdir is correct. | |
820 | ac_unique_file=wx-config.in | |
10f2d63a VZ |
821 | |
822 | # Find the source files, if location was not specified. | |
823 | if test -z "$srcdir"; then | |
824 | ac_srcdir_defaulted=yes | |
825 | # Try the directory containing this script, then its parent. | |
826 | ac_prog=$0 | |
698dcdb6 | 827 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
10f2d63a VZ |
828 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
829 | srcdir=$ac_confdir | |
830 | if test ! -r $srcdir/$ac_unique_file; then | |
831 | srcdir=.. | |
832 | fi | |
833 | else | |
834 | ac_srcdir_defaulted=no | |
835 | fi | |
836 | if test ! -r $srcdir/$ac_unique_file; then | |
837 | if test "$ac_srcdir_defaulted" = yes; then | |
698dcdb6 | 838 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
10f2d63a | 839 | else |
698dcdb6 | 840 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
10f2d63a VZ |
841 | fi |
842 | fi | |
698dcdb6 | 843 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
10f2d63a VZ |
844 | |
845 | # Prefer explicitly selected file to automatically selected ones. | |
846 | if test -z "$CONFIG_SITE"; then | |
847 | if test "x$prefix" != xNONE; then | |
848 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
849 | else | |
850 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
851 | fi | |
852 | fi | |
853 | for ac_site_file in $CONFIG_SITE; do | |
854 | if test -r "$ac_site_file"; then | |
698dcdb6 | 855 | echo "loading site script $ac_site_file" |
10f2d63a VZ |
856 | . "$ac_site_file" |
857 | fi | |
858 | done | |
859 | ||
860 | if test -r "$cache_file"; then | |
698dcdb6 VZ |
861 | echo "loading cache $cache_file" |
862 | . $cache_file | |
10f2d63a | 863 | else |
698dcdb6 VZ |
864 | echo "creating cache $cache_file" |
865 | > $cache_file | |
10f2d63a VZ |
866 | fi |
867 | ||
868 | ac_ext=c | |
698dcdb6 | 869 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 870 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
871 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
872 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
873 | cross_compiling=$ac_cv_prog_cc_cross | |
874 | ||
875 | ac_exeext= | |
876 | ac_objext=o | |
877 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
878 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
879 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
880 | ac_n= ac_c=' | |
881 | ' ac_t=' ' | |
882 | else | |
883 | ac_n=-n ac_c= ac_t= | |
884 | fi | |
10f2d63a | 885 | else |
698dcdb6 | 886 | ac_n= ac_c='\c' ac_t= |
10f2d63a | 887 | fi |
698dcdb6 VZ |
888 | |
889 | ||
10f2d63a | 890 | |
7c66a493 VZ |
891 | ac_aux_dir= |
892 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
893 | if test -f $ac_dir/install-sh; then | |
894 | ac_aux_dir=$ac_dir | |
895 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
896 | break | |
897 | elif test -f $ac_dir/install.sh; then | |
898 | ac_aux_dir=$ac_dir | |
899 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
900 | break | |
901 | fi | |
902 | done | |
903 | if test -z "$ac_aux_dir"; then | |
698dcdb6 | 904 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
7c66a493 | 905 | fi |
698dcdb6 VZ |
906 | ac_config_guess=$ac_aux_dir/config.guess |
907 | ac_config_sub=$ac_aux_dir/config.sub | |
908 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
703e0a69 | 909 | |
698dcdb6 VZ |
910 | |
911 | # Do some error checking and defaulting for the host and target type. | |
912 | # The inputs are: | |
913 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
914 | # | |
915 | # The rules are: | |
916 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
917 | # same time. | |
918 | # 2. Host defaults to nonopt. | |
919 | # 3. If nonopt is not specified, then host defaults to the current host, | |
920 | # as determined by config.guess. | |
921 | # 4. Target and build default to nonopt. | |
922 | # 5. If nonopt is not specified, then target and build default to host. | |
7c66a493 VZ |
923 | |
924 | # The aliases save the names the user supplied, while $host etc. | |
925 | # will get canonicalized. | |
698dcdb6 VZ |
926 | case $host---$target---$nonopt in |
927 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
928 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
929 | esac | |
930 | ||
931 | ||
932 | # Make sure we can run config.sub. | |
933 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
934 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
935 | fi | |
936 | ||
937 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
cbca9943 | 938 | echo "configure:939: checking host system type" >&5 |
698dcdb6 VZ |
939 | |
940 | host_alias=$host | |
941 | case "$host_alias" in | |
942 | NONE) | |
943 | case $nonopt in | |
944 | NONE) | |
945 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
946 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
947 | fi ;; | |
948 | *) host_alias=$nonopt ;; | |
949 | esac ;; | |
950 | esac | |
951 | ||
952 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
953 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
954 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
955 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
956 | echo "$ac_t""$host" 1>&6 | |
957 | ||
958 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
cbca9943 | 959 | echo "configure:960: checking target system type" >&5 |
698dcdb6 VZ |
960 | |
961 | target_alias=$target | |
962 | case "$target_alias" in | |
963 | NONE) | |
964 | case $nonopt in | |
965 | NONE) target_alias=$host_alias ;; | |
966 | *) target_alias=$nonopt ;; | |
967 | esac ;; | |
968 | esac | |
969 | ||
970 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
971 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
972 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
973 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
974 | echo "$ac_t""$target" 1>&6 | |
975 | ||
976 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
cbca9943 | 977 | echo "configure:978: checking build system type" >&5 |
698dcdb6 VZ |
978 | |
979 | build_alias=$build | |
980 | case "$build_alias" in | |
981 | NONE) | |
982 | case $nonopt in | |
983 | NONE) build_alias=$host_alias ;; | |
984 | *) build_alias=$nonopt ;; | |
985 | esac ;; | |
986 | esac | |
987 | ||
988 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
989 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
990 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
991 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
992 | echo "$ac_t""$build" 1>&6 | |
993 | ||
994 | test "$host_alias" != "$target_alias" && | |
7c66a493 VZ |
995 | test "$program_prefix$program_suffix$program_transform_name" = \ |
996 | NONENONEs,x,x, && | |
997 | program_prefix=${target_alias}- | |
998 | ||
698dcdb6 VZ |
999 | |
1000 | ||
10f2d63a | 1001 | WX_MAJOR_VERSION_NUMBER=2 |
37d403aa | 1002 | WX_MINOR_VERSION_NUMBER=3 |
6c01ec02 | 1003 | WX_RELEASE_NUMBER=2 |
10f2d63a | 1004 | |
10f2d63a | 1005 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER |
10f2d63a | 1006 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER |
6426998c | 1007 | |
6c01ec02 | 1008 | WX_CURRENT=1 |
6426998c RL |
1009 | WX_REVISION=0 |
1010 | WX_AGE=0 | |
1011 | ||
698dcdb6 VZ |
1012 | |
1013 | ||
10f2d63a VZ |
1014 | USE_UNIX=1 |
1015 | USE_WIN32=0 | |
b12915c1 | 1016 | USE_BEOS=0 |
1216f52d | 1017 | USE_MAC=0 |
b12915c1 | 1018 | |
10f2d63a VZ |
1019 | USE_LINUX= |
1020 | USE_SGI= | |
1021 | USE_HPUX= | |
1022 | USE_SYSV= | |
1023 | USE_SVR4= | |
1024 | USE_AIX= | |
1025 | USE_SUN= | |
1026 | USE_SOLARIS= | |
1027 | USE_SUNOS= | |
1028 | USE_ALPHA= | |
1029 | USE_OSF= | |
1030 | USE_BSD= | |
f11bdd03 | 1031 | USE_DARWIN= |
10f2d63a | 1032 | USE_FREEBSD= |
95c8801c | 1033 | USE_OPENBSD= |
f6bcfd97 | 1034 | USE_NETBSD= |
10f2d63a VZ |
1035 | USE_VMS= |
1036 | USE_ULTRIX= | |
1037 | USE_CYGWIN= | |
1038 | USE_MINGW= | |
1039 | USE_DATA_GENERAL= | |
1040 | ||
ab9b9eab VZ |
1041 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 |
1042 | ||
1e6feb95 | 1043 | ALL_TOOLKITS="CYGWIN GTK MAC MGL MINGW MOTIF PM WINE" |
10f2d63a VZ |
1044 | |
1045 | DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1046 | DEFAULT_wxUSE_MAC=0 |
1047 | DEFAULT_wxUSE_MGL=0 | |
10f2d63a VZ |
1048 | DEFAULT_wxUSE_MOTIF=0 |
1049 | DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1050 | DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1051 | DEFAULT_wxUSE_WINE=0 |
10f2d63a VZ |
1052 | |
1053 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1054 | DEFAULT_DEFAULT_wxUSE_MAC=0 |
1055 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
10f2d63a VZ |
1056 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 |
1057 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1058 | DEFAULT_DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1059 | DEFAULT_DEFAULT_wxUSE_WINE=0 |
10f2d63a | 1060 | |
d6a55c4b VZ |
1061 | PROGRAM_EXT= |
1062 | ||
10f2d63a VZ |
1063 | case "${host}" in |
1064 | *-hp-hpux* ) | |
1065 | USE_HPUX=1 | |
1066 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1067 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
698dcdb6 | 1068 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1069 | #define __HPUX__ 1 |
1070 | EOF | |
1071 | ||
1072 | ;; | |
1073 | *-*-linux* ) | |
1074 | USE_LINUX=1 | |
698dcdb6 | 1075 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1076 | #define __LINUX__ 1 |
1077 | EOF | |
1078 | ||
1079 | TMP=`uname -m` | |
1080 | if test "x$TMP" = "xalpha"; then | |
1081 | USE_ALPHA=1 | |
698dcdb6 | 1082 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1083 | #define __ALPHA__ 1 |
1084 | EOF | |
1085 | ||
1086 | fi | |
1087 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1088 | ;; | |
1089 | *-*-irix5* | *-*-irix6* ) | |
1090 | USE_SGI=1 | |
1091 | USE_SVR4=1 | |
698dcdb6 | 1092 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1093 | #define __SGI__ 1 |
1094 | EOF | |
1095 | ||
698dcdb6 | 1096 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1097 | #define __SVR4__ 1 |
1098 | EOF | |
1099 | ||
1100 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1101 | ;; | |
1102 | *-*-solaris2* ) | |
1103 | USE_SUN=1 | |
1104 | USE_SOLARIS=1 | |
1105 | USE_SVR4=1 | |
698dcdb6 | 1106 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1107 | #define __SUN__ 1 |
1108 | EOF | |
1109 | ||
698dcdb6 | 1110 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1111 | #define __SOLARIS__ 1 |
1112 | EOF | |
1113 | ||
698dcdb6 | 1114 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1115 | #define __SVR4__ 1 |
1116 | EOF | |
1117 | ||
1118 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1119 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1120 | ;; |
1121 | *-*-sunos4* ) | |
1122 | USE_SUN=1 | |
1123 | USE_SUNOS=1 | |
1124 | USE_BSD=1 | |
698dcdb6 | 1125 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1126 | #define __SUN__ 1 |
1127 | EOF | |
1128 | ||
698dcdb6 | 1129 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1130 | #define __SUNOS__ 1 |
1131 | EOF | |
1132 | ||
698dcdb6 | 1133 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1134 | #define __BSD__ 1 |
1135 | EOF | |
1136 | ||
1137 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1138 | ;; | |
f6bcfd97 | 1139 | *-*-freebsd*) |
10f2d63a VZ |
1140 | USE_BSD=1 |
1141 | USE_FREEBSD=1 | |
698dcdb6 | 1142 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1143 | #define __FREEBSD__ 1 |
1144 | EOF | |
1145 | ||
698dcdb6 | 1146 | cat >> confdefs.h <<\EOF |
10f2d63a | 1147 | #define __BSD__ 1 |
95c8801c VS |
1148 | EOF |
1149 | ||
1150 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1151 | ;; | |
1152 | *-*-openbsd*) | |
1153 | USE_BSD=1 | |
1154 | USE_OPENBSD=1 | |
698dcdb6 | 1155 | cat >> confdefs.h <<\EOF |
95c8801c VS |
1156 | #define __FREEBSD__ 1 |
1157 | EOF | |
1158 | ||
698dcdb6 | 1159 | cat >> confdefs.h <<\EOF |
95c8801c | 1160 | #define __OPENBSD__ 1 |
f6bcfd97 BP |
1161 | EOF |
1162 | ||
1163 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1164 | ;; | |
1165 | *-*-netbsd*) | |
1166 | USE_BSD=1 | |
1167 | USE_NETBSD=1 | |
698dcdb6 | 1168 | cat >> confdefs.h <<\EOF |
f6bcfd97 BP |
1169 | #define __FREEBSD__ 1 |
1170 | EOF | |
1171 | ||
698dcdb6 | 1172 | cat >> confdefs.h <<\EOF |
f6bcfd97 | 1173 | #define __NETBSD__ 1 |
10f2d63a VZ |
1174 | EOF |
1175 | ||
1176 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1177 | ;; | |
1178 | *-*-osf* ) | |
1179 | USE_ALPHA=1 | |
1180 | USE_OSF=1 | |
698dcdb6 | 1181 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1182 | #define __ALPHA__ 1 |
1183 | EOF | |
1184 | ||
698dcdb6 | 1185 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1186 | #define __OSF__ 1 |
1187 | EOF | |
1188 | ||
1189 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
f6bcfd97 | 1190 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1191 | ;; |
1192 | *-*-dgux5* ) | |
1193 | USE_ALPHA=1 | |
1194 | USE_SVR4=1 | |
698dcdb6 | 1195 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1196 | #define __ALPHA__ 1 |
1197 | EOF | |
1198 | ||
698dcdb6 | 1199 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1200 | #define __SVR4__ 1 |
1201 | EOF | |
1202 | ||
1203 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1204 | ;; | |
1205 | *-*-sysv5* ) | |
1206 | USE_SYSV=1 | |
1207 | USE_SVR4=1 | |
698dcdb6 | 1208 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1209 | #define __SYSV__ 1 |
1210 | EOF | |
1211 | ||
698dcdb6 | 1212 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1213 | #define __SVR4__ 1 |
1214 | EOF | |
1215 | ||
1216 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1217 | ;; | |
1218 | *-*-aix* ) | |
1219 | USE_AIX=1 | |
1220 | USE_SYSV=1 | |
1221 | USE_SVR4=1 | |
698dcdb6 | 1222 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1223 | #define __AIX__ 1 |
1224 | EOF | |
1225 | ||
698dcdb6 | 1226 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1227 | #define __SYSV__ 1 |
1228 | EOF | |
1229 | ||
698dcdb6 | 1230 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1231 | #define __SVR4__ 1 |
1232 | EOF | |
1233 | ||
1234 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1235 | ;; | |
1236 | ||
1c8183e2 | 1237 | *-*-cygwin* | *-*-mingw32* ) |
10f2d63a VZ |
1238 | USE_UNIX=0 |
1239 | USE_WIN32=1 | |
698dcdb6 | 1240 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1241 | #define __WIN32__ 1 |
1242 | EOF | |
1243 | ||
698dcdb6 | 1244 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1245 | #define __WIN95__ 1 |
1246 | EOF | |
1247 | ||
698dcdb6 | 1248 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1249 | #define __WINDOWS__ 1 |
1250 | EOF | |
1251 | ||
698dcdb6 | 1252 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1253 | #define __GNUWIN32__ 1 |
1254 | EOF | |
1255 | ||
698dcdb6 | 1256 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1257 | #define STRICT 1 |
1258 | EOF | |
1259 | ||
698dcdb6 | 1260 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1261 | #define WINVER 0x0400 |
1262 | EOF | |
1263 | ||
cf27ef00 | 1264 | PROGRAM_EXT=".exe" |
10f2d63a VZ |
1265 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
1266 | ;; | |
1267 | ||
1268 | *-pc-os2_emx ) | |
698dcdb6 | 1269 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1270 | #define __EMX__ 1 |
1271 | EOF | |
1272 | ||
cf27ef00 | 1273 | PROGRAM_EXT=".exe" |
e07802fc | 1274 | DEFAULT_DEFAULT_wxUSE_PM=1 |
10f2d63a VZ |
1275 | ;; |
1276 | ||
b4085ce6 GD |
1277 | *-*-darwin* ) |
1278 | USE_BSD=1 | |
f11bdd03 | 1279 | USE_DARWIN=1 |
698dcdb6 | 1280 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1281 | #define __BSD__ 1 |
b4085ce6 GD |
1282 | EOF |
1283 | ||
698dcdb6 | 1284 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1285 | #define __DARWIN__ 1 |
b4085ce6 GD |
1286 | EOF |
1287 | ||
698dcdb6 | 1288 | cat >> confdefs.h <<\EOF |
b4085ce6 GD |
1289 | #define __UNIX__ 1 |
1290 | EOF | |
1291 | ||
1292 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1293 | ;; | |
1294 | ||
b12915c1 VZ |
1295 | *-*-beos* ) |
1296 | USE_BEOS=1 | |
698dcdb6 | 1297 | cat >> confdefs.h <<\EOF |
b12915c1 VZ |
1298 | #define __BEOS__ 1 |
1299 | EOF | |
1300 | ||
1301 | ;; | |
1302 | ||
10f2d63a | 1303 | *) |
698dcdb6 | 1304 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } |
10f2d63a VZ |
1305 | esac |
1306 | ||
1307 | if test "$USE_UNIX" = 1 ; then | |
b12915c1 | 1308 | wxUSE_UNIX=yes |
698dcdb6 | 1309 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1310 | #define __UNIX__ 1 |
1311 | EOF | |
1312 | ||
698dcdb6 | 1313 | |
b12915c1 VZ |
1314 | SRC_SUBDIRS="$SRC_SUBDIRS unix" |
1315 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix" | |
1316 | fi | |
1317 | ||
1318 | if test "$USE_BEOS" = 1; then | |
1319 | SRC_SUBDIRS="$SRC_SUBDIRS be" | |
1320 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be" | |
10f2d63a VZ |
1321 | fi |
1322 | ||
1323 | if test "$USE_LINUX" = 1; then | |
ab252f7b VZ |
1324 | echo $ac_n "checking for glibc version""... $ac_c" 1>&6 |
1325 | echo "configure:1326: checking for glibc version" >&5 | |
1326 | if eval "test \"`echo '$''{'wx_lib_glibc21'+set}'`\" = set"; then | |
698dcdb6 | 1327 | echo $ac_n "(cached) $ac_c" 1>&6 |
1e487827 | 1328 | else |
ab252f7b VZ |
1329 | cat > conftest.$ac_ext <<EOF |
1330 | #line 1331 "configure" | |
698dcdb6 | 1331 | #include "confdefs.h" |
ab252f7b | 1332 | #include <features.h> |
698dcdb6 | 1333 | int main() { |
ab252f7b VZ |
1334 | |
1335 | #if !__GLIBC_PREREQ(2, 1) | |
1336 | #error not glibc2.1 | |
1337 | #endif | |
1338 | ||
698dcdb6 VZ |
1339 | ; return 0; } |
1340 | EOF | |
ab252f7b | 1341 | if { (eval echo configure:1342: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 1342 | rm -rf conftest* |
ab252f7b VZ |
1343 | |
1344 | echo "$ac_t""2.1 or later" 1>&6 | |
10f2d63a | 1345 | fi |
10f2d63a | 1346 | |
ab252f7b VZ |
1347 | echo "$ac_t""$wx_lib_glibc21" 1>&6 |
1348 | ||
1349 | if test "$wx_lib_glibc21" = "yes"; then | |
1350 | cat >> confdefs.h <<\EOF | |
698dcdb6 VZ |
1351 | #define wxHAVE_GLIBC2 1 |
1352 | EOF | |
ab252f7b VZ |
1353 | ) |
1354 | fi | |
10f2d63a VZ |
1355 | fi |
1356 | ||
1e487827 | 1357 | |
1e487827 | 1358 | |
6232543b | 1359 | |
10f2d63a VZ |
1360 | wx_arg_cache_file="configarg.cache" |
1361 | echo "loading argument cache $wx_arg_cache_file" | |
1362 | rm -f ${wx_arg_cache_file}.tmp | |
1363 | touch ${wx_arg_cache_file}.tmp | |
1364 | touch ${wx_arg_cache_file} | |
698dcdb6 | 1365 | |
10f2d63a VZ |
1366 | |
1367 | DEBUG_CONFIGURE=0 | |
1368 | if test $DEBUG_CONFIGURE = 1; then | |
1e6feb95 VZ |
1369 | DEFAULT_wxUSE_UNIVERSAL=no |
1370 | ||
10f2d63a VZ |
1371 | DEFAULT_wxUSE_THREADS=yes |
1372 | ||
1373 | DEFAULT_wxUSE_SHARED=yes | |
00cf1208 | 1374 | DEFAULT_wxUSE_BURNT_NAME=no |
1e6feb95 | 1375 | DEFAULT_wxUSE_OPTIMISE=no |
10f2d63a VZ |
1376 | DEFAULT_wxUSE_PROFILE=no |
1377 | DEFAULT_wxUSE_NO_DEPS=no | |
1378 | DEFAULT_wxUSE_NO_RTTI=no | |
1379 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
1380 | DEFAULT_wxUSE_PERMISSIVE=no | |
1381 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1382 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1383 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1384 | DEFAULT_wxUSE_MEM_TRACING=no | |
1385 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1386 | DEFAULT_wxUSE_DMALLOC=no | |
1387 | DEFAULT_wxUSE_APPLE_IEEE=no | |
1388 | ||
1389 | DEFAULT_wxUSE_LOG=yes | |
1e6feb95 VZ |
1390 | DEFAULT_wxUSE_LOGWINDOW=no |
1391 | DEFAULT_wxUSE_LOGGUI=no | |
10f2d63a VZ |
1392 | |
1393 | DEFAULT_wxUSE_GUI=yes | |
1e6feb95 | 1394 | DEFAULT_wxUSE_CONTROLS=no |
10f2d63a | 1395 | |
3e44f09d | 1396 | DEFAULT_wxUSE_REGEX=no |
10f2d63a VZ |
1397 | DEFAULT_wxUSE_ZLIB=no |
1398 | DEFAULT_wxUSE_LIBPNG=no | |
1399 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 1400 | DEFAULT_wxUSE_LIBTIFF=no |
10f2d63a | 1401 | DEFAULT_wxUSE_ODBC=no |
3fed1840 | 1402 | DEFAULT_wxUSE_FREETYPE=no |
bdad4e7e | 1403 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1404 | |
eb4efbdc | 1405 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no |
4f3c5f06 | 1406 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
10f2d63a | 1407 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1408 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
1409 | DEFAULT_wxUSE_DATETIME=no | |
1410 | DEFAULT_wxUSE_TIMEDATE=no | |
1411 | DEFAULT_wxUSE_TIMER=no | |
1412 | DEFAULT_wxUSE_STOPWATCH=no | |
10f2d63a | 1413 | DEFAULT_wxUSE_FILE=no |
1e6feb95 | 1414 | DEFAULT_wxUSE_FFILE=no |
10f2d63a | 1415 | DEFAULT_wxUSE_TEXTFILE=no |
10f2d63a VZ |
1416 | DEFAULT_wxUSE_WAVE=no |
1417 | DEFAULT_wxUSE_INTL=no | |
1418 | DEFAULT_wxUSE_CONFIG=no | |
1e6feb95 | 1419 | DEFAULT_wxUSE_FONTMAP=no |
10f2d63a VZ |
1420 | DEFAULT_wxUSE_STREAMS=no |
1421 | DEFAULT_wxUSE_SOCKETS=no | |
1422 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
1423 | DEFAULT_wxUSE_SERIAL=no | |
1424 | DEFAULT_wxUSE_JOYSTICK=no | |
1425 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
1426 | DEFAULT_wxUSE_LONGLONG=no | |
e8f65ba6 | 1427 | DEFAULT_wxUSE_GEOMETRY=no |
10f2d63a VZ |
1428 | |
1429 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1430 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1431 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1432 | ||
1433 | DEFAULT_wxUSE_X_RESOURCES=no | |
1434 | DEFAULT_wxUSE_CLIPBOARD=no | |
1435 | DEFAULT_wxUSE_TOOLTIPS=no | |
1436 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
24fd6d87 | 1437 | DEFAULT_wxUSE_DRAGIMAGE=no |
10f2d63a VZ |
1438 | DEFAULT_wxUSE_SPLINES=no |
1439 | ||
1440 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1441 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1442 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1443 | ||
1444 | DEFAULT_wxUSE_PROLOGIO=no | |
1445 | DEFAULT_wxUSE_RESOURCES=no | |
1446 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1447 | DEFAULT_wxUSE_IPC=no | |
1448 | DEFAULT_wxUSE_HELP=no | |
29fd3c0c | 1449 | DEFAULT_wxUSE_MS_HTML_HELP=no |
3379ed37 | 1450 | DEFAULT_wxUSE_WXHTML_HELP=no |
24176f2c | 1451 | DEFAULT_wxUSE_TREELAYOUT=no |
10f2d63a | 1452 | DEFAULT_wxUSE_METAFILE=no |
1e6feb95 | 1453 | DEFAULT_wxUSE_MIMETYPE=no |
3e44f09d | 1454 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes |
10f2d63a VZ |
1455 | |
1456 | DEFAULT_wxUSE_COMMONDLGS=no | |
1e6feb95 VZ |
1457 | DEFAULT_wxUSE_CHOICEDLG=no |
1458 | DEFAULT_wxUSE_COLOURDLG=no | |
10f2d63a | 1459 | DEFAULT_wxUSE_DIRDLG=no |
1e6feb95 | 1460 | DEFAULT_wxUSE_FILEDLG=no |
8db37e06 | 1461 | DEFAULT_wxUSE_FINDREPLDLG=no |
1e6feb95 VZ |
1462 | DEFAULT_wxUSE_FONTDLG=no |
1463 | DEFAULT_wxUSE_MSGDLG=no | |
1464 | DEFAULT_wxUSE_NUMBERDLG=no | |
10f2d63a | 1465 | DEFAULT_wxUSE_TEXTDLG=no |
cbca9943 | 1466 | DEFAULT_wxUSE_SPLASH=no |
10f2d63a VZ |
1467 | DEFAULT_wxUSE_STARTUP_TIPS=no |
1468 | DEFAULT_wxUSE_PROGRESSDLG=no | |
b1f5d087 VZ |
1469 | DEFAULT_wxUSE_WIZARDDLG=no |
1470 | ||
1e6feb95 | 1471 | DEFAULT_wxUSE_MENUS=no |
10f2d63a VZ |
1472 | DEFAULT_wxUSE_MINIFRAME=no |
1473 | DEFAULT_wxUSE_HTML=no | |
24528b0c | 1474 | DEFAULT_wxUSE_FILESYSTEM=no |
10f2d63a VZ |
1475 | DEFAULT_wxUSE_FS_INET=no |
1476 | DEFAULT_wxUSE_FS_ZIP=no | |
1477 | DEFAULT_wxUSE_BUSYINFO=no | |
1478 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1e6feb95 | 1479 | DEFAULT_wxUSE_VALIDATORS=no |
10f2d63a VZ |
1480 | |
1481 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 | 1482 | DEFAULT_wxUSE_BUTTON=no |
10f2d63a | 1483 | DEFAULT_wxUSE_BMPBUTTON=no |
1e6feb95 VZ |
1484 | DEFAULT_wxUSE_CALCTRL=no |
1485 | DEFAULT_wxUSE_CARET=no | |
10f2d63a VZ |
1486 | DEFAULT_wxUSE_CHECKBOX=no |
1487 | DEFAULT_wxUSE_CHECKLST=no | |
1e6feb95 | 1488 | DEFAULT_wxUSE_CHOICE=no |
10f2d63a VZ |
1489 | DEFAULT_wxUSE_COMBOBOX=no |
1490 | DEFAULT_wxUSE_GAUGE=no | |
1491 | DEFAULT_wxUSE_GRID=no | |
1492 | DEFAULT_wxUSE_NEW_GRID=no | |
1493 | DEFAULT_wxUSE_IMAGLIST=no | |
1494 | DEFAULT_wxUSE_LISTBOX=no | |
1495 | DEFAULT_wxUSE_LISTCTRL=no | |
1496 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 1497 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
1498 | DEFAULT_wxUSE_RADIOBOX=no |
1499 | DEFAULT_wxUSE_RADIOBTN=no | |
1500 | DEFAULT_wxUSE_SASH=no | |
1501 | DEFAULT_wxUSE_SCROLLBAR=no | |
1502 | DEFAULT_wxUSE_SLIDER=no | |
1503 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 1504 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
1505 | DEFAULT_wxUSE_SPLITTER=no |
1506 | DEFAULT_wxUSE_STATBMP=no | |
1507 | DEFAULT_wxUSE_STATBOX=no | |
1508 | DEFAULT_wxUSE_STATLINE=no | |
1e6feb95 | 1509 | DEFAULT_wxUSE_STATTEXT=no |
10f2d63a VZ |
1510 | DEFAULT_wxUSE_STATUSBAR=yes |
1511 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1512 | DEFAULT_wxUSE_TEXTCTRL=no |
1db8dc4a | 1513 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 1514 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
1515 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
1516 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a | 1517 | DEFAULT_wxUSE_TREECTRL=no |
9f41d601 | 1518 | DEFAULT_wxUSE_POPUPWIN=no |
10f2d63a VZ |
1519 | |
1520 | DEFAULT_wxUSE_UNICODE=no | |
1521 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1522 | ||
0046ff7c | 1523 | DEFAULT_wxUSE_IMAGE=no |
10f2d63a VZ |
1524 | DEFAULT_wxUSE_GIF=no |
1525 | DEFAULT_wxUSE_PCX=no | |
1526 | DEFAULT_wxUSE_PNM=no | |
0046ff7c | 1527 | DEFAULT_wxUSE_XPM=no |
10f2d63a | 1528 | else |
1e6feb95 VZ |
1529 | DEFAULT_wxUSE_UNIVERSAL=no |
1530 | ||
10f2d63a VZ |
1531 | DEFAULT_wxUSE_THREADS=yes |
1532 | ||
1533 | DEFAULT_wxUSE_SHARED=yes | |
00cf1208 | 1534 | DEFAULT_wxUSE_BURNT_NAME=no |
10f2d63a VZ |
1535 | DEFAULT_wxUSE_OPTIMISE=yes |
1536 | DEFAULT_wxUSE_PROFILE=no | |
1537 | DEFAULT_wxUSE_NO_DEPS=no | |
1538 | DEFAULT_wxUSE_NO_RTTI=no | |
1539 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
1540 | DEFAULT_wxUSE_PERMISSIVE=no | |
1541 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1542 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1543 | DEFAULT_wxUSE_DEBUG_GDB=no | |
1544 | DEFAULT_wxUSE_MEM_TRACING=no | |
1545 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1546 | DEFAULT_wxUSE_DMALLOC=no | |
1547 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
1548 | ||
1549 | DEFAULT_wxUSE_LOG=yes | |
d73be714 VZ |
1550 | DEFAULT_wxUSE_LOGWINDOW=yes |
1551 | DEFAULT_wxUSE_LOGGUI=yes | |
10f2d63a VZ |
1552 | |
1553 | DEFAULT_wxUSE_GUI=yes | |
1554 | ||
831b3152 | 1555 | DEFAULT_wxUSE_REGEX=yes |
10f2d63a VZ |
1556 | DEFAULT_wxUSE_ZLIB=yes |
1557 | DEFAULT_wxUSE_LIBPNG=yes | |
1558 | DEFAULT_wxUSE_LIBJPEG=yes | |
b47c832e | 1559 | DEFAULT_wxUSE_LIBTIFF=yes |
16b52fa1 | 1560 | DEFAULT_wxUSE_ODBC=no |
3fed1840 | 1561 | DEFAULT_wxUSE_FREETYPE=no |
bdad4e7e | 1562 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1563 | |
eb4efbdc | 1564 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes |
4f3c5f06 | 1565 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
10f2d63a | 1566 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1567 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
1568 | DEFAULT_wxUSE_DATETIME=yes | |
1569 | DEFAULT_wxUSE_TIMEDATE=no | |
1570 | DEFAULT_wxUSE_TIMER=yes | |
1571 | DEFAULT_wxUSE_STOPWATCH=yes | |
10f2d63a | 1572 | DEFAULT_wxUSE_FILE=yes |
1e6feb95 | 1573 | DEFAULT_wxUSE_FFILE=yes |
10f2d63a | 1574 | DEFAULT_wxUSE_TEXTFILE=yes |
10f2d63a VZ |
1575 | DEFAULT_wxUSE_WAVE=no |
1576 | DEFAULT_wxUSE_INTL=yes | |
1577 | DEFAULT_wxUSE_CONFIG=yes | |
1e6feb95 | 1578 | DEFAULT_wxUSE_FONTMAP=yes |
10f2d63a VZ |
1579 | DEFAULT_wxUSE_STREAMS=yes |
1580 | DEFAULT_wxUSE_SOCKETS=yes | |
1581 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
1582 | DEFAULT_wxUSE_SERIAL=yes | |
1583 | DEFAULT_wxUSE_JOYSTICK=yes | |
1584 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
b685cd9b | 1585 | DEFAULT_wxUSE_LONGLONG=yes |
e8f65ba6 | 1586 | DEFAULT_wxUSE_GEOMETRY=yes |
10f2d63a VZ |
1587 | |
1588 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
1589 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
1590 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
1591 | ||
1592 | DEFAULT_wxUSE_X_RESOURCES=no | |
1593 | DEFAULT_wxUSE_CLIPBOARD=yes | |
1594 | DEFAULT_wxUSE_TOOLTIPS=yes | |
1595 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
24fd6d87 | 1596 | DEFAULT_wxUSE_DRAGIMAGE=yes |
10f2d63a VZ |
1597 | DEFAULT_wxUSE_SPLINES=yes |
1598 | ||
1599 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
1600 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
1601 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
1602 | ||
1603 | DEFAULT_wxUSE_PROLOGIO=yes | |
1604 | DEFAULT_wxUSE_RESOURCES=yes | |
1605 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
1606 | DEFAULT_wxUSE_IPC=yes | |
1607 | DEFAULT_wxUSE_HELP=yes | |
29fd3c0c | 1608 | DEFAULT_wxUSE_MS_HTML_HELP=yes |
3379ed37 | 1609 | DEFAULT_wxUSE_WXHTML_HELP=yes |
24176f2c | 1610 | DEFAULT_wxUSE_TREELAYOUT=yes |
10f2d63a | 1611 | DEFAULT_wxUSE_METAFILE=yes |
1e6feb95 | 1612 | DEFAULT_wxUSE_MIMETYPE=yes |
3e44f09d | 1613 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes |
10f2d63a VZ |
1614 | |
1615 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1e6feb95 VZ |
1616 | DEFAULT_wxUSE_CHOICEDLG=yes |
1617 | DEFAULT_wxUSE_COLOURDLG=yes | |
10f2d63a | 1618 | DEFAULT_wxUSE_DIRDLG=yes |
1e6feb95 | 1619 | DEFAULT_wxUSE_FILEDLG=yes |
8db37e06 | 1620 | DEFAULT_wxUSE_FINDREPLDLG=yes |
1e6feb95 VZ |
1621 | DEFAULT_wxUSE_FONTDLG=yes |
1622 | DEFAULT_wxUSE_MSGDLG=yes | |
1623 | DEFAULT_wxUSE_NUMBERDLG=yes | |
10f2d63a | 1624 | DEFAULT_wxUSE_TEXTDLG=yes |
cbca9943 | 1625 | DEFAULT_wxUSE_SPLASH=yes |
10f2d63a VZ |
1626 | DEFAULT_wxUSE_STARTUP_TIPS=yes |
1627 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
f33f19dd VZ |
1628 | DEFAULT_wxUSE_WIZARDDLG=yes |
1629 | ||
1e6feb95 | 1630 | DEFAULT_wxUSE_MENUS=yes |
10f2d63a VZ |
1631 | DEFAULT_wxUSE_MINIFRAME=yes |
1632 | DEFAULT_wxUSE_HTML=yes | |
24528b0c | 1633 | DEFAULT_wxUSE_FILESYSTEM=yes |
10f2d63a VZ |
1634 | DEFAULT_wxUSE_FS_INET=yes |
1635 | DEFAULT_wxUSE_FS_ZIP=yes | |
1636 | DEFAULT_wxUSE_BUSYINFO=yes | |
1637 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
1638 | DEFAULT_wxUSE_VALIDATORS=yes | |
1639 | ||
1640 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 | 1641 | DEFAULT_wxUSE_BUTTON=yes |
10f2d63a | 1642 | DEFAULT_wxUSE_BMPBUTTON=yes |
1e6feb95 VZ |
1643 | DEFAULT_wxUSE_CALCTRL=yes |
1644 | DEFAULT_wxUSE_CARET=yes | |
10f2d63a VZ |
1645 | DEFAULT_wxUSE_CHECKBOX=yes |
1646 | DEFAULT_wxUSE_CHECKLST=yes | |
1647 | DEFAULT_wxUSE_CHOICE=yes | |
1648 | DEFAULT_wxUSE_COMBOBOX=yes | |
1649 | DEFAULT_wxUSE_GAUGE=yes | |
1650 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 1651 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
1652 | DEFAULT_wxUSE_IMAGLIST=yes |
1653 | DEFAULT_wxUSE_LISTBOX=yes | |
1654 | DEFAULT_wxUSE_LISTCTRL=yes | |
1655 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 1656 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
1657 | DEFAULT_wxUSE_RADIOBOX=yes |
1658 | DEFAULT_wxUSE_RADIOBTN=yes | |
1659 | DEFAULT_wxUSE_SASH=yes | |
1660 | DEFAULT_wxUSE_SCROLLBAR=yes | |
1661 | DEFAULT_wxUSE_SLIDER=yes | |
1662 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 1663 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
1664 | DEFAULT_wxUSE_SPLITTER=yes |
1665 | DEFAULT_wxUSE_STATBMP=yes | |
1666 | DEFAULT_wxUSE_STATBOX=yes | |
1667 | DEFAULT_wxUSE_STATLINE=yes | |
1e6feb95 | 1668 | DEFAULT_wxUSE_STATTEXT=yes |
10f2d63a VZ |
1669 | DEFAULT_wxUSE_STATUSBAR=yes |
1670 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1671 | DEFAULT_wxUSE_TEXTCTRL=yes |
1db8dc4a | 1672 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 1673 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
1674 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
1675 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a | 1676 | DEFAULT_wxUSE_TREECTRL=yes |
9f41d601 | 1677 | DEFAULT_wxUSE_POPUPWIN=yes |
10f2d63a VZ |
1678 | |
1679 | DEFAULT_wxUSE_UNICODE=no | |
1680 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1681 | ||
0046ff7c | 1682 | DEFAULT_wxUSE_IMAGE=yes |
10f2d63a VZ |
1683 | DEFAULT_wxUSE_GIF=yes |
1684 | DEFAULT_wxUSE_PCX=yes | |
1685 | DEFAULT_wxUSE_PNM=yes | |
0046ff7c | 1686 | DEFAULT_wxUSE_XPM=yes |
10f2d63a VZ |
1687 | fi |
1688 | ||
698dcdb6 VZ |
1689 | |
1690 | ||
10f2d63a VZ |
1691 | for toolkit in `echo $ALL_TOOLKITS`; do |
1692 | LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}` | |
1693 | if test "x$LINE" != x ; then | |
1694 | has_toolkit_in_cache=1 | |
1695 | eval "DEFAULT_$LINE" | |
1696 | eval "CACHE_$toolkit=1" | |
1697 | fi | |
1698 | done | |
1699 | ||
698dcdb6 VZ |
1700 | |
1701 | ||
1702 | echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6 | |
ab252f7b | 1703 | echo "configure:1704: checking for --enable-gui" >&5 |
10f2d63a VZ |
1704 | no_cache=0 |
1705 | # Check whether --enable-gui or --disable-gui was given. | |
1706 | if test "${enable_gui+set}" = set; then | |
1707 | enableval="$enable_gui" | |
698dcdb6 | 1708 | |
10f2d63a VZ |
1709 | if test "$enableval" = yes; then |
1710 | ac_cv_use_gui='wxUSE_GUI=yes' | |
1711 | else | |
1712 | ac_cv_use_gui='wxUSE_GUI=no' | |
1713 | fi | |
698dcdb6 | 1714 | |
10f2d63a | 1715 | else |
698dcdb6 | 1716 | |
10f2d63a VZ |
1717 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` |
1718 | if test "x$LINE" != x ; then | |
1719 | eval "DEFAULT_$LINE" | |
1720 | else | |
1721 | no_cache=1 | |
1722 | fi | |
1723 | ||
1724 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
698dcdb6 VZ |
1725 | |
1726 | fi | |
10f2d63a VZ |
1727 | |
1728 | ||
1729 | eval "$ac_cv_use_gui" | |
1730 | if test "$no_cache" != 1; then | |
1731 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
1732 | fi | |
1733 | ||
1734 | if test "$wxUSE_GUI" = yes; then | |
698dcdb6 | 1735 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 1736 | else |
698dcdb6 | 1737 | echo "$ac_t""no" 1>&6 |
10f2d63a | 1738 | fi |
698dcdb6 | 1739 | |
10f2d63a | 1740 | |
b12915c1 | 1741 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a | 1742 | |
1e6feb95 VZ |
1743 | |
1744 | echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6 | |
ab252f7b | 1745 | echo "configure:1746: checking for --enable-universal" >&5 |
1e6feb95 VZ |
1746 | no_cache=0 |
1747 | # Check whether --enable-universal or --disable-universal was given. | |
1748 | if test "${enable_universal+set}" = set; then | |
1749 | enableval="$enable_universal" | |
1750 | ||
1751 | if test "$enableval" = yes; then | |
1752 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
1753 | else | |
1754 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
1755 | fi | |
1756 | ||
1757 | else | |
1758 | ||
1759 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
1760 | if test "x$LINE" != x ; then | |
1761 | eval "DEFAULT_$LINE" | |
1762 | else | |
1763 | no_cache=1 | |
1764 | fi | |
1765 | ||
1766 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
1767 | ||
1768 | fi | |
1769 | ||
1770 | ||
1771 | eval "$ac_cv_use_universal" | |
1772 | if test "$no_cache" != 1; then | |
1773 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
1774 | fi | |
1775 | ||
1776 | if test "$wxUSE_UNIVERSAL" = yes; then | |
1777 | echo "$ac_t""yes" 1>&6 | |
1778 | else | |
1779 | echo "$ac_t""no" 1>&6 | |
1780 | fi | |
1781 | ||
10f2d63a VZ |
1782 | # Check whether --with-gtk or --without-gtk was given. |
1783 | if test "${with_gtk+set}" = set; then | |
1784 | withval="$with_gtk" | |
1785 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1786 | fi |
10f2d63a VZ |
1787 | |
1788 | # Check whether --with-motif or --without-motif was given. | |
1789 | if test "${with_motif+set}" = set; then | |
1790 | withval="$with_motif" | |
1791 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1792 | fi |
10f2d63a | 1793 | |
b4085ce6 GD |
1794 | # Check whether --with-mac or --without-mac was given. |
1795 | if test "${with_mac+set}" = set; then | |
1796 | withval="$with_mac" | |
1797 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
698dcdb6 | 1798 | fi |
b4085ce6 | 1799 | |
10f2d63a VZ |
1800 | # Check whether --with-wine or --without-wine was given. |
1801 | if test "${with_wine+set}" = set; then | |
1802 | withval="$with_wine" | |
1803 | wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1804 | fi |
10f2d63a VZ |
1805 | |
1806 | # Check whether --with-cygwin or --without-cygwin was given. | |
1807 | if test "${with_cygwin+set}" = set; then | |
1808 | withval="$with_cygwin" | |
1809 | wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1810 | fi |
10f2d63a VZ |
1811 | |
1812 | # Check whether --with-mingw or --without-mingw was given. | |
1813 | if test "${with_mingw+set}" = set; then | |
1814 | withval="$with_mingw" | |
1815 | wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1816 | fi |
10f2d63a | 1817 | |
e07802fc VZ |
1818 | # Check whether --with-pm or --without-pm was given. |
1819 | if test "${with_pm+set}" = set; then | |
1820 | withval="$with_pm" | |
1821 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
698dcdb6 VZ |
1822 | fi |
1823 | ||
1e6feb95 VZ |
1824 | # Check whether --with-mgl or --without-mgl was given. |
1825 | if test "${with_mgl+set}" = set; then | |
1826 | withval="$with_mgl" | |
1827 | wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1 | |
1828 | fi | |
1829 | ||
10f2d63a | 1830 | |
8168de4c VZ |
1831 | # Check whether --enable-gtk2 or --disable-gtk2 was given. |
1832 | if test "${enable_gtk2+set}" = set; then | |
1833 | enableval="$enable_gtk2" | |
1834 | wxUSE_GTK2=1 | |
10f2d63a | 1835 | else |
8168de4c | 1836 | wxUSE_GTK2=0 |
698dcdb6 VZ |
1837 | fi |
1838 | ||
703e0a69 | 1839 | |
1e487827 | 1840 | |
698dcdb6 | 1841 | echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6 |
ab252f7b | 1842 | echo "configure:1843: checking for --with-libpng" >&5 |
698dcdb6 VZ |
1843 | no_cache=0 |
1844 | # Check whether --with-libpng or --without-libpng was given. | |
b12915c1 VZ |
1845 | if test "${with_libpng+set}" = set; then |
1846 | withval="$with_libpng" | |
698dcdb6 | 1847 | |
10f2d63a | 1848 | if test "$withval" = yes; then |
b12915c1 | 1849 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
422107f9 | 1850 | elif test "$withval" = no; then |
b12915c1 | 1851 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
422107f9 VZ |
1852 | elif test "$withval" = sys; then |
1853 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
1854 | else | |
698dcdb6 | 1855 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1856 | fi |
698dcdb6 | 1857 | |
10f2d63a | 1858 | else |
698dcdb6 | 1859 | |
b12915c1 | 1860 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
1861 | if test "x$LINE" != x ; then |
1862 | eval "DEFAULT_$LINE" | |
1863 | else | |
1864 | no_cache=1 | |
1865 | fi | |
1866 | ||
b12915c1 | 1867 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
698dcdb6 VZ |
1868 | |
1869 | fi | |
10f2d63a VZ |
1870 | |
1871 | ||
b12915c1 | 1872 | eval "$ac_cv_use_libpng" |
10f2d63a | 1873 | if test "$no_cache" != 1; then |
b12915c1 | 1874 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1875 | fi |
1876 | ||
b12915c1 | 1877 | if test "$wxUSE_LIBPNG" = yes; then |
698dcdb6 | 1878 | echo "$ac_t""yes" 1>&6 |
422107f9 | 1879 | elif test "$wxUSE_LIBPNG" = no; then |
698dcdb6 | 1880 | echo "$ac_t""no" 1>&6 |
422107f9 | 1881 | elif test "$wxUSE_LIBPNG" = sys; then |
698dcdb6 | 1882 | echo "$ac_t""system version" 1>&6 |
422107f9 | 1883 | else |
698dcdb6 | 1884 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1885 | fi |
698dcdb6 | 1886 | |
10f2d63a | 1887 | |
698dcdb6 | 1888 | echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6 |
ab252f7b | 1889 | echo "configure:1890: checking for --with-libjpeg" >&5 |
10f2d63a | 1890 | no_cache=0 |
698dcdb6 | 1891 | # Check whether --with-libjpeg or --without-libjpeg was given. |
b12915c1 VZ |
1892 | if test "${with_libjpeg+set}" = set; then |
1893 | withval="$with_libjpeg" | |
698dcdb6 | 1894 | |
10f2d63a | 1895 | if test "$withval" = yes; then |
b12915c1 | 1896 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
422107f9 | 1897 | elif test "$withval" = no; then |
b12915c1 | 1898 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
422107f9 VZ |
1899 | elif test "$withval" = sys; then |
1900 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
1901 | else | |
698dcdb6 | 1902 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1903 | fi |
698dcdb6 | 1904 | |
10f2d63a | 1905 | else |
698dcdb6 | 1906 | |
b12915c1 | 1907 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
1908 | if test "x$LINE" != x ; then |
1909 | eval "DEFAULT_$LINE" | |
1910 | else | |
1911 | no_cache=1 | |
1912 | fi | |
1913 | ||
b12915c1 | 1914 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
698dcdb6 VZ |
1915 | |
1916 | fi | |
10f2d63a VZ |
1917 | |
1918 | ||
b12915c1 | 1919 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 1920 | if test "$no_cache" != 1; then |
b12915c1 | 1921 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1922 | fi |
1923 | ||
b12915c1 | 1924 | if test "$wxUSE_LIBJPEG" = yes; then |
698dcdb6 | 1925 | echo "$ac_t""yes" 1>&6 |
422107f9 | 1926 | elif test "$wxUSE_LIBJPEG" = no; then |
698dcdb6 | 1927 | echo "$ac_t""no" 1>&6 |
422107f9 | 1928 | elif test "$wxUSE_LIBJPEG" = sys; then |
698dcdb6 | 1929 | echo "$ac_t""system version" 1>&6 |
422107f9 | 1930 | else |
698dcdb6 | 1931 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1932 | fi |
698dcdb6 | 1933 | |
10f2d63a | 1934 | |
698dcdb6 | 1935 | echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6 |
ab252f7b | 1936 | echo "configure:1937: checking for --with-libtiff" >&5 |
10f2d63a | 1937 | no_cache=0 |
698dcdb6 | 1938 | # Check whether --with-libtiff or --without-libtiff was given. |
b12915c1 VZ |
1939 | if test "${with_libtiff+set}" = set; then |
1940 | withval="$with_libtiff" | |
698dcdb6 | 1941 | |
10f2d63a | 1942 | if test "$withval" = yes; then |
b12915c1 | 1943 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
0dcf9893 | 1944 | elif test "$withval" = no; then |
b12915c1 | 1945 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
0dcf9893 VZ |
1946 | elif test "$withval" = sys; then |
1947 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
1948 | else | |
698dcdb6 | 1949 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1950 | fi |
698dcdb6 | 1951 | |
10f2d63a | 1952 | else |
698dcdb6 | 1953 | |
b12915c1 | 1954 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
1955 | if test "x$LINE" != x ; then |
1956 | eval "DEFAULT_$LINE" | |
1957 | else | |
1958 | no_cache=1 | |
1959 | fi | |
1960 | ||
b12915c1 | 1961 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
698dcdb6 VZ |
1962 | |
1963 | fi | |
10f2d63a VZ |
1964 | |
1965 | ||
b12915c1 | 1966 | eval "$ac_cv_use_libtiff" |
10f2d63a | 1967 | if test "$no_cache" != 1; then |
b12915c1 | 1968 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1969 | fi |
1970 | ||
b12915c1 | 1971 | if test "$wxUSE_LIBTIFF" = yes; then |
698dcdb6 | 1972 | echo "$ac_t""yes" 1>&6 |
0dcf9893 | 1973 | elif test "$wxUSE_LIBTIFF" = no; then |
698dcdb6 | 1974 | echo "$ac_t""no" 1>&6 |
0dcf9893 | 1975 | elif test "$wxUSE_LIBTIFF" = sys; then |
698dcdb6 | 1976 | echo "$ac_t""system version" 1>&6 |
0dcf9893 | 1977 | else |
698dcdb6 | 1978 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1979 | fi |
698dcdb6 | 1980 | |
10f2d63a | 1981 | |
698dcdb6 | 1982 | echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6 |
ab252f7b | 1983 | echo "configure:1984: checking for --with-freetype" >&5 |
3fed1840 | 1984 | no_cache=0 |
698dcdb6 | 1985 | # Check whether --with-freetype or --without-freetype was given. |
3fed1840 RR |
1986 | if test "${with_freetype+set}" = set; then |
1987 | withval="$with_freetype" | |
698dcdb6 | 1988 | |
3fed1840 RR |
1989 | if test "$withval" = yes; then |
1990 | ac_cv_use_freetype='wxUSE_FREETYPE=yes' | |
1991 | elif test "$withval" = no; then | |
1992 | ac_cv_use_freetype='wxUSE_FREETYPE=no' | |
1993 | elif test "$withval" = sys; then | |
1994 | ac_cv_use_freetype='wxUSE_FREETYPE=sys' | |
1995 | else | |
698dcdb6 | 1996 | { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; } |
3fed1840 | 1997 | fi |
698dcdb6 | 1998 | |
3fed1840 | 1999 | else |
698dcdb6 | 2000 | |
3fed1840 RR |
2001 | LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}` |
2002 | if test "x$LINE" != x ; then | |
2003 | eval "DEFAULT_$LINE" | |
2004 | else | |
2005 | no_cache=1 | |
2006 | fi | |
2007 | ||
2008 | ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE | |
698dcdb6 VZ |
2009 | |
2010 | fi | |
3fed1840 RR |
2011 | |
2012 | ||
2013 | eval "$ac_cv_use_freetype" | |
2014 | if test "$no_cache" != 1; then | |
2015 | echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp | |
2016 | fi | |
2017 | ||
2018 | if test "$wxUSE_FREETYPE" = yes; then | |
698dcdb6 | 2019 | echo "$ac_t""yes" 1>&6 |
3fed1840 | 2020 | elif test "$wxUSE_FREETYPE" = no; then |
698dcdb6 | 2021 | echo "$ac_t""no" 1>&6 |
3fed1840 | 2022 | elif test "$wxUSE_FREETYPE" = sys; then |
698dcdb6 | 2023 | echo "$ac_t""system version" 1>&6 |
3fed1840 | 2024 | else |
698dcdb6 | 2025 | { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; } |
3fed1840 | 2026 | fi |
698dcdb6 | 2027 | |
3fed1840 | 2028 | |
698dcdb6 | 2029 | echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6 |
ab252f7b | 2030 | echo "configure:2031: checking for --with-opengl" >&5 |
10f2d63a | 2031 | no_cache=0 |
698dcdb6 | 2032 | # Check whether --with-opengl or --without-opengl was given. |
b12915c1 VZ |
2033 | if test "${with_opengl+set}" = set; then |
2034 | withval="$with_opengl" | |
698dcdb6 | 2035 | |
10f2d63a | 2036 | if test "$withval" = yes; then |
b12915c1 | 2037 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 2038 | else |
b12915c1 | 2039 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a | 2040 | fi |
698dcdb6 | 2041 | |
10f2d63a | 2042 | else |
698dcdb6 | 2043 | |
b12915c1 | 2044 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` |
10f2d63a VZ |
2045 | if test "x$LINE" != x ; then |
2046 | eval "DEFAULT_$LINE" | |
2047 | else | |
2048 | no_cache=1 | |
2049 | fi | |
2050 | ||
b12915c1 | 2051 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
698dcdb6 VZ |
2052 | |
2053 | fi | |
10f2d63a VZ |
2054 | |
2055 | ||
b12915c1 | 2056 | eval "$ac_cv_use_opengl" |
10f2d63a | 2057 | if test "$no_cache" != 1; then |
b12915c1 | 2058 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2059 | fi |
2060 | ||
b12915c1 | 2061 | if test "$wxUSE_OPENGL" = yes; then |
698dcdb6 | 2062 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2063 | else |
698dcdb6 | 2064 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2065 | fi |
698dcdb6 | 2066 | |
10f2d63a | 2067 | |
b12915c1 VZ |
2068 | fi |
2069 | ||
1e487827 | 2070 | |
698dcdb6 | 2071 | echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6 |
ab252f7b | 2072 | echo "configure:2073: checking for --with-dmalloc" >&5 |
698dcdb6 VZ |
2073 | no_cache=0 |
2074 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
b12915c1 VZ |
2075 | if test "${with_dmalloc+set}" = set; then |
2076 | withval="$with_dmalloc" | |
698dcdb6 | 2077 | |
c7a2bf27 | 2078 | if test "$withval" = yes; then |
b12915c1 | 2079 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 2080 | else |
b12915c1 | 2081 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 | 2082 | fi |
698dcdb6 | 2083 | |
c7a2bf27 | 2084 | else |
698dcdb6 | 2085 | |
b12915c1 | 2086 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
2087 | if test "x$LINE" != x ; then |
2088 | eval "DEFAULT_$LINE" | |
2089 | else | |
2090 | no_cache=1 | |
2091 | fi | |
2092 | ||
b12915c1 | 2093 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
698dcdb6 VZ |
2094 | |
2095 | fi | |
c7a2bf27 RR |
2096 | |
2097 | ||
b12915c1 | 2098 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 2099 | if test "$no_cache" != 1; then |
b12915c1 | 2100 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
2101 | fi |
2102 | ||
b12915c1 | 2103 | if test "$wxUSE_DMALLOC" = yes; then |
698dcdb6 | 2104 | echo "$ac_t""yes" 1>&6 |
c7a2bf27 | 2105 | else |
698dcdb6 | 2106 | echo "$ac_t""no" 1>&6 |
c7a2bf27 | 2107 | fi |
698dcdb6 | 2108 | |
c7a2bf27 | 2109 | |
3e44f09d | 2110 | echo $ac_n "checking for --with-regex""... $ac_c" 1>&6 |
ab252f7b | 2111 | echo "configure:2112: checking for --with-regex" >&5 |
3e44f09d VZ |
2112 | no_cache=0 |
2113 | # Check whether --with-regex or --without-regex was given. | |
2114 | if test "${with_regex+set}" = set; then | |
2115 | withval="$with_regex" | |
2116 | ||
2117 | if test "$withval" = yes; then | |
2118 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
2119 | elif test "$withval" = no; then | |
2120 | ac_cv_use_regex='wxUSE_REGEX=no' | |
2121 | elif test "$withval" = sys; then | |
2122 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
2123 | else | |
2124 | { echo "configure: error: Invalid value for --with-regex: should be yes, no or sys" 1>&2; exit 1; } | |
2125 | fi | |
2126 | ||
2127 | else | |
2128 | ||
2129 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` | |
2130 | if test "x$LINE" != x ; then | |
2131 | eval "DEFAULT_$LINE" | |
2132 | else | |
2133 | no_cache=1 | |
2134 | fi | |
2135 | ||
2136 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
2137 | ||
2138 | fi | |
2139 | ||
2140 | ||
2141 | eval "$ac_cv_use_regex" | |
2142 | if test "$no_cache" != 1; then | |
2143 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
2144 | fi | |
2145 | ||
2146 | if test "$wxUSE_REGEX" = yes; then | |
2147 | echo "$ac_t""yes" 1>&6 | |
2148 | elif test "$wxUSE_REGEX" = no; then | |
2149 | echo "$ac_t""no" 1>&6 | |
2150 | elif test "$wxUSE_REGEX" = sys; then | |
2151 | echo "$ac_t""system version" 1>&6 | |
2152 | else | |
2153 | { echo "configure: error: Invalid value for --with-regex: should be yes, no or sys" 1>&2; exit 1; } | |
2154 | fi | |
2155 | ||
2156 | ||
698dcdb6 | 2157 | echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6 |
ab252f7b | 2158 | echo "configure:2159: checking for --with-zlib" >&5 |
10f2d63a | 2159 | no_cache=0 |
698dcdb6 | 2160 | # Check whether --with-zlib or --without-zlib was given. |
b12915c1 VZ |
2161 | if test "${with_zlib+set}" = set; then |
2162 | withval="$with_zlib" | |
698dcdb6 | 2163 | |
10f2d63a | 2164 | if test "$withval" = yes; then |
b12915c1 | 2165 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
422107f9 | 2166 | elif test "$withval" = no; then |
b12915c1 | 2167 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
422107f9 VZ |
2168 | elif test "$withval" = sys; then |
2169 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
2170 | else | |
698dcdb6 | 2171 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 2172 | fi |
698dcdb6 | 2173 | |
10f2d63a | 2174 | else |
698dcdb6 | 2175 | |
b12915c1 | 2176 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
2177 | if test "x$LINE" != x ; then |
2178 | eval "DEFAULT_$LINE" | |
2179 | else | |
2180 | no_cache=1 | |
2181 | fi | |
2182 | ||
b12915c1 | 2183 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
698dcdb6 VZ |
2184 | |
2185 | fi | |
10f2d63a VZ |
2186 | |
2187 | ||
b12915c1 | 2188 | eval "$ac_cv_use_zlib" |
10f2d63a | 2189 | if test "$no_cache" != 1; then |
b12915c1 | 2190 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2191 | fi |
2192 | ||
b12915c1 | 2193 | if test "$wxUSE_ZLIB" = yes; then |
698dcdb6 | 2194 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2195 | elif test "$wxUSE_ZLIB" = no; then |
698dcdb6 | 2196 | echo "$ac_t""no" 1>&6 |
422107f9 | 2197 | elif test "$wxUSE_ZLIB" = sys; then |
698dcdb6 | 2198 | echo "$ac_t""system version" 1>&6 |
422107f9 | 2199 | else |
698dcdb6 | 2200 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 2201 | fi |
698dcdb6 | 2202 | |
10f2d63a | 2203 | |
698dcdb6 | 2204 | echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6 |
ab252f7b | 2205 | echo "configure:2206: checking for --with-odbc" >&5 |
10f2d63a | 2206 | no_cache=0 |
698dcdb6 | 2207 | # Check whether --with-odbc or --without-odbc was given. |
10f2d63a VZ |
2208 | if test "${with_odbc+set}" = set; then |
2209 | withval="$with_odbc" | |
698dcdb6 | 2210 | |
10f2d63a VZ |
2211 | if test "$withval" = yes; then |
2212 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
2213 | else | |
2214 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
2215 | fi | |
698dcdb6 | 2216 | |
10f2d63a | 2217 | else |
698dcdb6 | 2218 | |
10f2d63a VZ |
2219 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` |
2220 | if test "x$LINE" != x ; then | |
2221 | eval "DEFAULT_$LINE" | |
2222 | else | |
2223 | no_cache=1 | |
2224 | fi | |
2225 | ||
2226 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
698dcdb6 VZ |
2227 | |
2228 | fi | |
10f2d63a VZ |
2229 | |
2230 | ||
2231 | eval "$ac_cv_use_odbc" | |
2232 | if test "$no_cache" != 1; then | |
2233 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
2234 | fi | |
2235 | ||
2236 | if test "$wxUSE_ODBC" = yes; then | |
698dcdb6 | 2237 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2238 | else |
698dcdb6 | 2239 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2240 | fi |
698dcdb6 VZ |
2241 | |
2242 | ||
10f2d63a | 2243 | |
698dcdb6 VZ |
2244 | |
2245 | ||
2246 | echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6 | |
ab252f7b | 2247 | echo "configure:2248: checking for --enable-shared" >&5 |
10f2d63a VZ |
2248 | no_cache=0 |
2249 | # Check whether --enable-shared or --disable-shared was given. | |
2250 | if test "${enable_shared+set}" = set; then | |
2251 | enableval="$enable_shared" | |
698dcdb6 | 2252 | |
10f2d63a VZ |
2253 | if test "$enableval" = yes; then |
2254 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
2255 | else | |
2256 | ac_cv_use_shared='wxUSE_SHARED=no' | |
2257 | fi | |
698dcdb6 | 2258 | |
10f2d63a | 2259 | else |
698dcdb6 | 2260 | |
10f2d63a VZ |
2261 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` |
2262 | if test "x$LINE" != x ; then | |
2263 | eval "DEFAULT_$LINE" | |
2264 | else | |
2265 | no_cache=1 | |
2266 | fi | |
2267 | ||
2268 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
698dcdb6 VZ |
2269 | |
2270 | fi | |
10f2d63a VZ |
2271 | |
2272 | ||
2273 | eval "$ac_cv_use_shared" | |
2274 | if test "$no_cache" != 1; then | |
2275 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
2276 | fi | |
2277 | ||
2278 | if test "$wxUSE_SHARED" = yes; then | |
698dcdb6 | 2279 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2280 | else |
698dcdb6 | 2281 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2282 | fi |
698dcdb6 | 2283 | |
10f2d63a | 2284 | |
698dcdb6 | 2285 | echo $ac_n "checking for --enable-burnt_name""... $ac_c" 1>&6 |
ab252f7b | 2286 | echo "configure:2287: checking for --enable-burnt_name" >&5 |
00cf1208 RR |
2287 | no_cache=0 |
2288 | # Check whether --enable-burnt_name or --disable-burnt_name was given. | |
2289 | if test "${enable_burnt_name+set}" = set; then | |
2290 | enableval="$enable_burnt_name" | |
698dcdb6 | 2291 | |
00cf1208 RR |
2292 | if test "$enableval" = yes; then |
2293 | ac_cv_use_burnt_name='wxUSE_BURNT_NAME=yes' | |
2294 | else | |
2295 | ac_cv_use_burnt_name='wxUSE_BURNT_NAME=no' | |
2296 | fi | |
698dcdb6 | 2297 | |
00cf1208 | 2298 | else |
698dcdb6 | 2299 | |
00cf1208 RR |
2300 | LINE=`grep "wxUSE_BURNT_NAME" ${wx_arg_cache_file}` |
2301 | if test "x$LINE" != x ; then | |
2302 | eval "DEFAULT_$LINE" | |
2303 | else | |
2304 | no_cache=1 | |
2305 | fi | |
2306 | ||
2307 | ac_cv_use_burnt_name='wxUSE_BURNT_NAME='$DEFAULT_wxUSE_BURNT_NAME | |
698dcdb6 VZ |
2308 | |
2309 | fi | |
00cf1208 RR |
2310 | |
2311 | ||
2312 | eval "$ac_cv_use_burnt_name" | |
2313 | if test "$no_cache" != 1; then | |
2314 | echo $ac_cv_use_burnt_name >> ${wx_arg_cache_file}.tmp | |
2315 | fi | |
2316 | ||
2317 | if test "$wxUSE_BURNT_NAME" = yes; then | |
698dcdb6 | 2318 | echo "$ac_t""yes" 1>&6 |
00cf1208 | 2319 | else |
698dcdb6 | 2320 | echo "$ac_t""no" 1>&6 |
00cf1208 | 2321 | fi |
698dcdb6 | 2322 | |
00cf1208 | 2323 | |
698dcdb6 | 2324 | echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6 |
ab252f7b | 2325 | echo "configure:2326: checking for --enable-optimise" >&5 |
10f2d63a VZ |
2326 | no_cache=0 |
2327 | # Check whether --enable-optimise or --disable-optimise was given. | |
2328 | if test "${enable_optimise+set}" = set; then | |
2329 | enableval="$enable_optimise" | |
698dcdb6 | 2330 | |
10f2d63a VZ |
2331 | if test "$enableval" = yes; then |
2332 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
2333 | else | |
2334 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
2335 | fi | |
698dcdb6 | 2336 | |
10f2d63a | 2337 | else |
698dcdb6 | 2338 | |
10f2d63a VZ |
2339 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` |
2340 | if test "x$LINE" != x ; then | |
2341 | eval "DEFAULT_$LINE" | |
2342 | else | |
2343 | no_cache=1 | |
2344 | fi | |
2345 | ||
2346 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
698dcdb6 VZ |
2347 | |
2348 | fi | |
10f2d63a VZ |
2349 | |
2350 | ||
2351 | eval "$ac_cv_use_optimise" | |
2352 | if test "$no_cache" != 1; then | |
2353 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
2354 | fi | |
2355 | ||
2356 | if test "$wxUSE_OPTIMISE" = yes; then | |
698dcdb6 | 2357 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2358 | else |
698dcdb6 | 2359 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2360 | fi |
698dcdb6 | 2361 | |
10f2d63a | 2362 | |
698dcdb6 | 2363 | echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6 |
ab252f7b | 2364 | echo "configure:2365: checking for --enable-debug" >&5 |
10f2d63a VZ |
2365 | no_cache=0 |
2366 | # Check whether --enable-debug or --disable-debug was given. | |
2367 | if test "${enable_debug+set}" = set; then | |
2368 | enableval="$enable_debug" | |
698dcdb6 | 2369 | |
10f2d63a VZ |
2370 | if test "$enableval" = yes; then |
2371 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
2372 | else | |
2373 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
2374 | fi | |
698dcdb6 | 2375 | |
10f2d63a | 2376 | else |
698dcdb6 | 2377 | |
10f2d63a VZ |
2378 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` |
2379 | if test "x$LINE" != x ; then | |
2380 | eval "DEFAULT_$LINE" | |
2381 | else | |
2382 | no_cache=1 | |
2383 | fi | |
2384 | ||
2385 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
698dcdb6 VZ |
2386 | |
2387 | fi | |
10f2d63a VZ |
2388 | |
2389 | ||
2390 | eval "$ac_cv_use_debug" | |
2391 | if test "$no_cache" != 1; then | |
2392 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
2393 | fi | |
2394 | ||
2395 | if test "$wxUSE_DEBUG" = yes; then | |
698dcdb6 | 2396 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2397 | else |
698dcdb6 | 2398 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2399 | fi |
698dcdb6 | 2400 | |
10f2d63a VZ |
2401 | |
2402 | if test "$wxUSE_DEBUG" = "yes"; then | |
2403 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2404 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2405 | elif test "$wxUSE_DEBUG" = "no"; then | |
2406 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2407 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2408 | fi | |
2409 | ||
698dcdb6 VZ |
2410 | |
2411 | echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6 | |
ab252f7b | 2412 | echo "configure:2413: checking for --enable-debug_flag" >&5 |
10f2d63a VZ |
2413 | no_cache=0 |
2414 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
2415 | if test "${enable_debug_flag+set}" = set; then | |
2416 | enableval="$enable_debug_flag" | |
698dcdb6 | 2417 | |
10f2d63a VZ |
2418 | if test "$enableval" = yes; then |
2419 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
2420 | else | |
2421 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
2422 | fi | |
698dcdb6 | 2423 | |
10f2d63a | 2424 | else |
698dcdb6 | 2425 | |
10f2d63a VZ |
2426 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` |
2427 | if test "x$LINE" != x ; then | |
2428 | eval "DEFAULT_$LINE" | |
2429 | else | |
2430 | no_cache=1 | |
2431 | fi | |
2432 | ||
2433 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
698dcdb6 VZ |
2434 | |
2435 | fi | |
10f2d63a VZ |
2436 | |
2437 | ||
2438 | eval "$ac_cv_use_debug_flag" | |
2439 | if test "$no_cache" != 1; then | |
2440 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
2441 | fi | |
2442 | ||
2443 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
698dcdb6 | 2444 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2445 | else |
698dcdb6 | 2446 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2447 | fi |
698dcdb6 | 2448 | |
10f2d63a | 2449 | |
698dcdb6 | 2450 | echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6 |
ab252f7b | 2451 | echo "configure:2452: checking for --enable-debug_info" >&5 |
10f2d63a VZ |
2452 | no_cache=0 |
2453 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
2454 | if test "${enable_debug_info+set}" = set; then | |
2455 | enableval="$enable_debug_info" | |
698dcdb6 | 2456 | |
10f2d63a VZ |
2457 | if test "$enableval" = yes; then |
2458 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
2459 | else | |
2460 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
2461 | fi | |
698dcdb6 | 2462 | |
10f2d63a | 2463 | else |
698dcdb6 | 2464 | |
10f2d63a VZ |
2465 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` |
2466 | if test "x$LINE" != x ; then | |
2467 | eval "DEFAULT_$LINE" | |
2468 | else | |
2469 | no_cache=1 | |
2470 | fi | |
2471 | ||
2472 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
698dcdb6 VZ |
2473 | |
2474 | fi | |
10f2d63a VZ |
2475 | |
2476 | ||
2477 | eval "$ac_cv_use_debug_info" | |
2478 | if test "$no_cache" != 1; then | |
2479 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
2480 | fi | |
2481 | ||
2482 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
698dcdb6 | 2483 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2484 | else |
698dcdb6 | 2485 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2486 | fi |
698dcdb6 | 2487 | |
10f2d63a | 2488 | |
698dcdb6 | 2489 | echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6 |
ab252f7b | 2490 | echo "configure:2491: checking for --enable-debug_gdb" >&5 |
10f2d63a VZ |
2491 | no_cache=0 |
2492 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
2493 | if test "${enable_debug_gdb+set}" = set; then | |
2494 | enableval="$enable_debug_gdb" | |
698dcdb6 | 2495 | |
10f2d63a VZ |
2496 | if test "$enableval" = yes; then |
2497 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
2498 | else | |
2499 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
2500 | fi | |
698dcdb6 | 2501 | |
10f2d63a | 2502 | else |
698dcdb6 | 2503 | |
10f2d63a VZ |
2504 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` |
2505 | if test "x$LINE" != x ; then | |
2506 | eval "DEFAULT_$LINE" | |
2507 | else | |
2508 | no_cache=1 | |
2509 | fi | |
2510 | ||
2511 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
698dcdb6 VZ |
2512 | |
2513 | fi | |
10f2d63a VZ |
2514 | |
2515 | ||
2516 | eval "$ac_cv_use_debug_gdb" | |
2517 | if test "$no_cache" != 1; then | |
2518 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
2519 | fi | |
2520 | ||
2521 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
698dcdb6 | 2522 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2523 | else |
698dcdb6 | 2524 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2525 | fi |
698dcdb6 | 2526 | |
10f2d63a | 2527 | |
698dcdb6 | 2528 | echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6 |
ab252f7b | 2529 | echo "configure:2530: checking for --enable-debug_cntxt" >&5 |
10f2d63a VZ |
2530 | no_cache=0 |
2531 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
2532 | if test "${enable_debug_cntxt+set}" = set; then | |
2533 | enableval="$enable_debug_cntxt" | |
698dcdb6 | 2534 | |
10f2d63a VZ |
2535 | if test "$enableval" = yes; then |
2536 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
2537 | else | |
2538 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
2539 | fi | |
698dcdb6 | 2540 | |
10f2d63a | 2541 | else |
698dcdb6 | 2542 | |
10f2d63a VZ |
2543 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` |
2544 | if test "x$LINE" != x ; then | |
2545 | eval "DEFAULT_$LINE" | |
2546 | else | |
2547 | no_cache=1 | |
2548 | fi | |
2549 | ||
2550 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
698dcdb6 VZ |
2551 | |
2552 | fi | |
10f2d63a VZ |
2553 | |
2554 | ||
2555 | eval "$ac_cv_use_debug_cntxt" | |
2556 | if test "$no_cache" != 1; then | |
2557 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
2558 | fi | |
2559 | ||
2560 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
698dcdb6 | 2561 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2562 | else |
698dcdb6 | 2563 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2564 | fi |
698dcdb6 | 2565 | |
10f2d63a | 2566 | |
698dcdb6 | 2567 | echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6 |
ab252f7b | 2568 | echo "configure:2569: checking for --enable-mem_tracing" >&5 |
10f2d63a VZ |
2569 | no_cache=0 |
2570 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
2571 | if test "${enable_mem_tracing+set}" = set; then | |
2572 | enableval="$enable_mem_tracing" | |
698dcdb6 | 2573 | |
10f2d63a VZ |
2574 | if test "$enableval" = yes; then |
2575 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
2576 | else | |
2577 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
2578 | fi | |
698dcdb6 | 2579 | |
10f2d63a | 2580 | else |
698dcdb6 | 2581 | |
10f2d63a VZ |
2582 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` |
2583 | if test "x$LINE" != x ; then | |
2584 | eval "DEFAULT_$LINE" | |
2585 | else | |
2586 | no_cache=1 | |
2587 | fi | |
2588 | ||
2589 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
698dcdb6 VZ |
2590 | |
2591 | fi | |
10f2d63a VZ |
2592 | |
2593 | ||
2594 | eval "$ac_cv_use_mem_tracing" | |
2595 | if test "$no_cache" != 1; then | |
2596 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
2597 | fi | |
2598 | ||
2599 | if test "$wxUSE_MEM_TRACING" = yes; then | |
698dcdb6 | 2600 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2601 | else |
698dcdb6 | 2602 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2603 | fi |
698dcdb6 | 2604 | |
10f2d63a | 2605 | |
698dcdb6 | 2606 | echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6 |
ab252f7b | 2607 | echo "configure:2608: checking for --enable-profile" >&5 |
10f2d63a VZ |
2608 | no_cache=0 |
2609 | # Check whether --enable-profile or --disable-profile was given. | |
2610 | if test "${enable_profile+set}" = set; then | |
2611 | enableval="$enable_profile" | |
698dcdb6 | 2612 | |
10f2d63a VZ |
2613 | if test "$enableval" = yes; then |
2614 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
2615 | else | |
2616 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
2617 | fi | |
698dcdb6 | 2618 | |
10f2d63a | 2619 | else |
698dcdb6 | 2620 | |
10f2d63a VZ |
2621 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` |
2622 | if test "x$LINE" != x ; then | |
2623 | eval "DEFAULT_$LINE" | |
2624 | else | |
2625 | no_cache=1 | |
2626 | fi | |
2627 | ||
2628 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
698dcdb6 VZ |
2629 | |
2630 | fi | |
10f2d63a VZ |
2631 | |
2632 | ||
2633 | eval "$ac_cv_use_profile" | |
2634 | if test "$no_cache" != 1; then | |
2635 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
2636 | fi | |
2637 | ||
2638 | if test "$wxUSE_PROFILE" = yes; then | |
698dcdb6 | 2639 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2640 | else |
698dcdb6 | 2641 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2642 | fi |
698dcdb6 | 2643 | |
10f2d63a | 2644 | |
698dcdb6 | 2645 | echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6 |
ab252f7b | 2646 | echo "configure:2647: checking for --enable-no_rtti" >&5 |
10f2d63a VZ |
2647 | no_cache=0 |
2648 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
2649 | if test "${enable_no_rtti+set}" = set; then | |
2650 | enableval="$enable_no_rtti" | |
698dcdb6 | 2651 | |
10f2d63a VZ |
2652 | if test "$enableval" = yes; then |
2653 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
2654 | else | |
2655 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
2656 | fi | |
698dcdb6 | 2657 | |
10f2d63a | 2658 | else |
698dcdb6 | 2659 | |
10f2d63a VZ |
2660 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` |
2661 | if test "x$LINE" != x ; then | |
2662 | eval "DEFAULT_$LINE" | |
2663 | else | |
2664 | no_cache=1 | |
2665 | fi | |
2666 | ||
2667 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
698dcdb6 VZ |
2668 | |
2669 | fi | |
10f2d63a VZ |
2670 | |
2671 | ||
2672 | eval "$ac_cv_use_no_rtti" | |
2673 | if test "$no_cache" != 1; then | |
2674 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
2675 | fi | |
2676 | ||
2677 | if test "$wxUSE_NO_RTTI" = yes; then | |
698dcdb6 | 2678 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2679 | else |
698dcdb6 | 2680 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2681 | fi |
698dcdb6 | 2682 | |
10f2d63a | 2683 | |
698dcdb6 | 2684 | echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6 |
ab252f7b | 2685 | echo "configure:2686: checking for --enable-no_exceptions" >&5 |
10f2d63a VZ |
2686 | no_cache=0 |
2687 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
2688 | if test "${enable_no_exceptions+set}" = set; then | |
2689 | enableval="$enable_no_exceptions" | |
698dcdb6 | 2690 | |
10f2d63a VZ |
2691 | if test "$enableval" = yes; then |
2692 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
2693 | else | |
2694 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
2695 | fi | |
698dcdb6 | 2696 | |
10f2d63a | 2697 | else |
698dcdb6 | 2698 | |
10f2d63a VZ |
2699 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` |
2700 | if test "x$LINE" != x ; then | |
2701 | eval "DEFAULT_$LINE" | |
2702 | else | |
2703 | no_cache=1 | |
2704 | fi | |
2705 | ||
2706 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
698dcdb6 VZ |
2707 | |
2708 | fi | |
10f2d63a VZ |
2709 | |
2710 | ||
2711 | eval "$ac_cv_use_no_exceptions" | |
2712 | if test "$no_cache" != 1; then | |
2713 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
2714 | fi | |
2715 | ||
2716 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
698dcdb6 | 2717 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2718 | else |
698dcdb6 | 2719 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2720 | fi |
698dcdb6 | 2721 | |
10f2d63a | 2722 | |
698dcdb6 | 2723 | echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6 |
ab252f7b | 2724 | echo "configure:2725: checking for --enable-permissive" >&5 |
10f2d63a VZ |
2725 | no_cache=0 |
2726 | # Check whether --enable-permissive or --disable-permissive was given. | |
2727 | if test "${enable_permissive+set}" = set; then | |
2728 | enableval="$enable_permissive" | |
698dcdb6 | 2729 | |
10f2d63a VZ |
2730 | if test "$enableval" = yes; then |
2731 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
2732 | else | |
2733 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
2734 | fi | |
698dcdb6 | 2735 | |
10f2d63a | 2736 | else |
698dcdb6 | 2737 | |
10f2d63a VZ |
2738 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` |
2739 | if test "x$LINE" != x ; then | |
2740 | eval "DEFAULT_$LINE" | |
2741 | else | |
2742 | no_cache=1 | |
2743 | fi | |
2744 | ||
2745 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
698dcdb6 VZ |
2746 | |
2747 | fi | |
10f2d63a VZ |
2748 | |
2749 | ||
2750 | eval "$ac_cv_use_permissive" | |
2751 | if test "$no_cache" != 1; then | |
2752 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
2753 | fi | |
2754 | ||
2755 | if test "$wxUSE_PERMISSIVE" = yes; then | |
698dcdb6 | 2756 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2757 | else |
698dcdb6 | 2758 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2759 | fi |
698dcdb6 | 2760 | |
10f2d63a | 2761 | |
698dcdb6 | 2762 | echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6 |
ab252f7b | 2763 | echo "configure:2764: checking for --enable-no_deps" >&5 |
10f2d63a VZ |
2764 | no_cache=0 |
2765 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
2766 | if test "${enable_no_deps+set}" = set; then | |
2767 | enableval="$enable_no_deps" | |
698dcdb6 | 2768 | |
10f2d63a VZ |
2769 | if test "$enableval" = yes; then |
2770 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
2771 | else | |
2772 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
2773 | fi | |
698dcdb6 | 2774 | |
10f2d63a | 2775 | else |
698dcdb6 | 2776 | |
10f2d63a VZ |
2777 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` |
2778 | if test "x$LINE" != x ; then | |
2779 | eval "DEFAULT_$LINE" | |
2780 | else | |
2781 | no_cache=1 | |
2782 | fi | |
2783 | ||
2784 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
698dcdb6 VZ |
2785 | |
2786 | fi | |
10f2d63a VZ |
2787 | |
2788 | ||
2789 | eval "$ac_cv_use_no_deps" | |
2790 | if test "$no_cache" != 1; then | |
2791 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
2792 | fi | |
2793 | ||
2794 | if test "$wxUSE_NO_DEPS" = yes; then | |
698dcdb6 | 2795 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2796 | else |
698dcdb6 | 2797 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2798 | fi |
698dcdb6 VZ |
2799 | |
2800 | ||
10f2d63a | 2801 | |
54276ccf | 2802 | echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6 |
ab252f7b | 2803 | echo "configure:2804: checking for --enable-compat20" >&5 |
54276ccf VZ |
2804 | no_cache=0 |
2805 | # Check whether --enable-compat20 or --disable-compat20 was given. | |
2806 | if test "${enable_compat20+set}" = set; then | |
2807 | enableval="$enable_compat20" | |
2808 | ||
2809 | if test "$enableval" = yes; then | |
2810 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes' | |
2811 | else | |
2812 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no' | |
2813 | fi | |
2814 | ||
2815 | else | |
2816 | ||
2817 | LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}` | |
2818 | if test "x$LINE" != x ; then | |
2819 | eval "DEFAULT_$LINE" | |
2820 | else | |
2821 | no_cache=1 | |
2822 | fi | |
2823 | ||
2824 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2 | |
2825 | ||
2826 | fi | |
2827 | ||
2828 | ||
2829 | eval "$ac_cv_use_compat20" | |
2830 | if test "$no_cache" != 1; then | |
2831 | echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp | |
2832 | fi | |
2833 | ||
2834 | if test "$WXWIN_COMPATIBILITY_2" = yes; then | |
2835 | echo "$ac_t""yes" 1>&6 | |
2836 | else | |
2837 | echo "$ac_t""no" 1>&6 | |
2838 | fi | |
2839 | ||
2840 | ||
2841 | echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6 | |
ab252f7b | 2842 | echo "configure:2843: checking for --enable-compat22" >&5 |
54276ccf VZ |
2843 | no_cache=0 |
2844 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
2845 | if test "${enable_compat22+set}" = set; then | |
2846 | enableval="$enable_compat22" | |
2847 | ||
2848 | if test "$enableval" = yes; then | |
2849 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
2850 | else | |
2851 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
2852 | fi | |
2853 | ||
2854 | else | |
2855 | ||
2856 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` | |
2857 | if test "x$LINE" != x ; then | |
2858 | eval "DEFAULT_$LINE" | |
2859 | else | |
2860 | no_cache=1 | |
2861 | fi | |
2862 | ||
2863 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
2864 | ||
2865 | fi | |
2866 | ||
2867 | ||
2868 | eval "$ac_cv_use_compat22" | |
2869 | if test "$no_cache" != 1; then | |
2870 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
2871 | fi | |
2872 | ||
2873 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
2874 | echo "$ac_t""yes" 1>&6 | |
2875 | else | |
2876 | echo "$ac_t""no" 1>&6 | |
2877 | fi | |
2878 | ||
2879 | ||
2880 | ||
698dcdb6 VZ |
2881 | |
2882 | echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6 | |
ab252f7b | 2883 | echo "configure:2884: checking for --enable-intl" >&5 |
10f2d63a VZ |
2884 | no_cache=0 |
2885 | # Check whether --enable-intl or --disable-intl was given. | |
2886 | if test "${enable_intl+set}" = set; then | |
2887 | enableval="$enable_intl" | |
698dcdb6 | 2888 | |
10f2d63a VZ |
2889 | if test "$enableval" = yes; then |
2890 | ac_cv_use_intl='wxUSE_INTL=yes' | |
2891 | else | |
2892 | ac_cv_use_intl='wxUSE_INTL=no' | |
2893 | fi | |
698dcdb6 | 2894 | |
10f2d63a | 2895 | else |
698dcdb6 | 2896 | |
10f2d63a VZ |
2897 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` |
2898 | if test "x$LINE" != x ; then | |
2899 | eval "DEFAULT_$LINE" | |
2900 | else | |
2901 | no_cache=1 | |
2902 | fi | |
2903 | ||
2904 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
698dcdb6 VZ |
2905 | |
2906 | fi | |
10f2d63a VZ |
2907 | |
2908 | ||
2909 | eval "$ac_cv_use_intl" | |
2910 | if test "$no_cache" != 1; then | |
2911 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
2912 | fi | |
2913 | ||
2914 | if test "$wxUSE_INTL" = yes; then | |
698dcdb6 | 2915 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2916 | else |
698dcdb6 | 2917 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2918 | fi |
698dcdb6 | 2919 | |
10f2d63a | 2920 | |
698dcdb6 | 2921 | echo $ac_n "checking for --enable-config""... $ac_c" 1>&6 |
ab252f7b | 2922 | echo "configure:2923: checking for --enable-config" >&5 |
10f2d63a VZ |
2923 | no_cache=0 |
2924 | # Check whether --enable-config or --disable-config was given. | |
2925 | if test "${enable_config+set}" = set; then | |
2926 | enableval="$enable_config" | |
698dcdb6 | 2927 | |
10f2d63a VZ |
2928 | if test "$enableval" = yes; then |
2929 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
2930 | else | |
2931 | ac_cv_use_config='wxUSE_CONFIG=no' | |
2932 | fi | |
698dcdb6 | 2933 | |
10f2d63a | 2934 | else |
698dcdb6 | 2935 | |
10f2d63a VZ |
2936 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` |
2937 | if test "x$LINE" != x ; then | |
2938 | eval "DEFAULT_$LINE" | |
2939 | else | |
2940 | no_cache=1 | |
2941 | fi | |
2942 | ||
2943 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
698dcdb6 VZ |
2944 | |
2945 | fi | |
10f2d63a VZ |
2946 | |
2947 | ||
2948 | eval "$ac_cv_use_config" | |
2949 | if test "$no_cache" != 1; then | |
2950 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
2951 | fi | |
2952 | ||
2953 | if test "$wxUSE_CONFIG" = yes; then | |
698dcdb6 | 2954 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2955 | else |
698dcdb6 | 2956 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2957 | fi |
698dcdb6 VZ |
2958 | |
2959 | ||
b12915c1 | 2960 | |
698dcdb6 | 2961 | echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6 |
ab252f7b | 2962 | echo "configure:2963: checking for --enable-sockets" >&5 |
10f2d63a VZ |
2963 | no_cache=0 |
2964 | # Check whether --enable-sockets or --disable-sockets was given. | |
2965 | if test "${enable_sockets+set}" = set; then | |
2966 | enableval="$enable_sockets" | |
698dcdb6 | 2967 | |
10f2d63a VZ |
2968 | if test "$enableval" = yes; then |
2969 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
2970 | else | |
2971 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
2972 | fi | |
698dcdb6 | 2973 | |
10f2d63a | 2974 | else |
698dcdb6 | 2975 | |
10f2d63a VZ |
2976 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` |
2977 | if test "x$LINE" != x ; then | |
2978 | eval "DEFAULT_$LINE" | |
2979 | else | |
2980 | no_cache=1 | |
2981 | fi | |
2982 | ||
2983 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
698dcdb6 VZ |
2984 | |
2985 | fi | |
10f2d63a VZ |
2986 | |
2987 | ||
2988 | eval "$ac_cv_use_sockets" | |
2989 | if test "$no_cache" != 1; then | |
2990 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
2991 | fi | |
2992 | ||
2993 | if test "$wxUSE_SOCKETS" = yes; then | |
698dcdb6 | 2994 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2995 | else |
698dcdb6 | 2996 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2997 | fi |
698dcdb6 | 2998 | |
b12915c1 | 2999 | |
698dcdb6 VZ |
3000 | |
3001 | echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6 | |
ab252f7b | 3002 | echo "configure:3003: checking for --enable-ipc" >&5 |
10f2d63a | 3003 | no_cache=0 |
eb4efbdc VZ |
3004 | # Check whether --enable-ipc or --disable-ipc was given. |
3005 | if test "${enable_ipc+set}" = set; then | |
3006 | enableval="$enable_ipc" | |
698dcdb6 | 3007 | |
10f2d63a | 3008 | if test "$enableval" = yes; then |
eb4efbdc | 3009 | ac_cv_use_ipc='wxUSE_IPC=yes' |
10f2d63a | 3010 | else |
eb4efbdc | 3011 | ac_cv_use_ipc='wxUSE_IPC=no' |
10f2d63a | 3012 | fi |
698dcdb6 | 3013 | |
10f2d63a | 3014 | else |
698dcdb6 | 3015 | |
eb4efbdc | 3016 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` |
10f2d63a VZ |
3017 | if test "x$LINE" != x ; then |
3018 | eval "DEFAULT_$LINE" | |
3019 | else | |
3020 | no_cache=1 | |
3021 | fi | |
3022 | ||
eb4efbdc | 3023 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC |
698dcdb6 VZ |
3024 | |
3025 | fi | |
10f2d63a VZ |
3026 | |
3027 | ||
eb4efbdc | 3028 | eval "$ac_cv_use_ipc" |
10f2d63a | 3029 | if test "$no_cache" != 1; then |
eb4efbdc | 3030 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3031 | fi |
3032 | ||
eb4efbdc | 3033 | if test "$wxUSE_IPC" = yes; then |
698dcdb6 | 3034 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3035 | else |
698dcdb6 | 3036 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3037 | fi |
698dcdb6 VZ |
3038 | |
3039 | ||
eb4efbdc | 3040 | |
1e6feb95 | 3041 | echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6 |
ab252f7b | 3042 | echo "configure:3043: checking for --enable-cmdline" >&5 |
1e6feb95 VZ |
3043 | no_cache=0 |
3044 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
3045 | if test "${enable_cmdline+set}" = set; then | |
3046 | enableval="$enable_cmdline" | |
3047 | ||
3048 | if test "$enableval" = yes; then | |
3049 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
3050 | else | |
3051 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
3052 | fi | |
3053 | ||
3054 | else | |
3055 | ||
3056 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
3057 | if test "x$LINE" != x ; then | |
3058 | eval "DEFAULT_$LINE" | |
3059 | else | |
3060 | no_cache=1 | |
3061 | fi | |
3062 | ||
3063 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
3064 | ||
3065 | fi | |
3066 | ||
3067 | ||
3068 | eval "$ac_cv_use_cmdline" | |
3069 | if test "$no_cache" != 1; then | |
3070 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
3071 | fi | |
3072 | ||
3073 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
3074 | echo "$ac_t""yes" 1>&6 | |
3075 | else | |
3076 | echo "$ac_t""no" 1>&6 | |
3077 | fi | |
3078 | ||
3079 | ||
3080 | echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6 | |
ab252f7b | 3081 | echo "configure:3082: checking for --enable-datetime" >&5 |
1e6feb95 VZ |
3082 | no_cache=0 |
3083 | # Check whether --enable-datetime or --disable-datetime was given. | |
3084 | if test "${enable_datetime+set}" = set; then | |
3085 | enableval="$enable_datetime" | |
3086 | ||
3087 | if test "$enableval" = yes; then | |
3088 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
3089 | else | |
3090 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
3091 | fi | |
3092 | ||
3093 | else | |
3094 | ||
3095 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
3096 | if test "x$LINE" != x ; then | |
3097 | eval "DEFAULT_$LINE" | |
3098 | else | |
3099 | no_cache=1 | |
3100 | fi | |
3101 | ||
3102 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
3103 | ||
3104 | fi | |
3105 | ||
3106 | ||
3107 | eval "$ac_cv_use_datetime" | |
3108 | if test "$no_cache" != 1; then | |
3109 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
3110 | fi | |
3111 | ||
3112 | if test "$wxUSE_DATETIME" = yes; then | |
3113 | echo "$ac_t""yes" 1>&6 | |
3114 | else | |
3115 | echo "$ac_t""no" 1>&6 | |
3116 | fi | |
3117 | ||
3118 | ||
3119 | echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6 | |
ab252f7b | 3120 | echo "configure:3121: checking for --enable-timedate" >&5 |
1e6feb95 VZ |
3121 | no_cache=0 |
3122 | # Check whether --enable-timedate or --disable-timedate was given. | |
3123 | if test "${enable_timedate+set}" = set; then | |
3124 | enableval="$enable_timedate" | |
3125 | ||
3126 | if test "$enableval" = yes; then | |
3127 | ac_cv_use_timedate='wxUSE_TIMEDATE=yes' | |
3128 | else | |
3129 | ac_cv_use_timedate='wxUSE_TIMEDATE=no' | |
3130 | fi | |
3131 | ||
3132 | else | |
3133 | ||
3134 | LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}` | |
3135 | if test "x$LINE" != x ; then | |
3136 | eval "DEFAULT_$LINE" | |
3137 | else | |
3138 | no_cache=1 | |
3139 | fi | |
3140 | ||
3141 | ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE | |
3142 | ||
3143 | fi | |
3144 | ||
3145 | ||
3146 | eval "$ac_cv_use_timedate" | |
3147 | if test "$no_cache" != 1; then | |
3148 | echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp | |
3149 | fi | |
3150 | ||
3151 | if test "$wxUSE_TIMEDATE" = yes; then | |
3152 | echo "$ac_t""yes" 1>&6 | |
3153 | else | |
3154 | echo "$ac_t""no" 1>&6 | |
3155 | fi | |
3156 | ||
3157 | ||
3158 | echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6 | |
ab252f7b | 3159 | echo "configure:3160: checking for --enable-stopwatch" >&5 |
1e6feb95 VZ |
3160 | no_cache=0 |
3161 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
3162 | if test "${enable_stopwatch+set}" = set; then | |
3163 | enableval="$enable_stopwatch" | |
3164 | ||
3165 | if test "$enableval" = yes; then | |
3166 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
3167 | else | |
3168 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
3169 | fi | |
3170 | ||
3171 | else | |
3172 | ||
3173 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` | |
3174 | if test "x$LINE" != x ; then | |
3175 | eval "DEFAULT_$LINE" | |
3176 | else | |
3177 | no_cache=1 | |
3178 | fi | |
3179 | ||
3180 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
3181 | ||
3182 | fi | |
3183 | ||
3184 | ||
3185 | eval "$ac_cv_use_stopwatch" | |
3186 | if test "$no_cache" != 1; then | |
3187 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
3188 | fi | |
3189 | ||
3190 | if test "$wxUSE_STOPWATCH" = yes; then | |
3191 | echo "$ac_t""yes" 1>&6 | |
3192 | else | |
3193 | echo "$ac_t""no" 1>&6 | |
3194 | fi | |
3195 | ||
3196 | ||
698dcdb6 | 3197 | echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6 |
ab252f7b | 3198 | echo "configure:3199: checking for --enable-dialupman" >&5 |
10f2d63a | 3199 | no_cache=0 |
eb4efbdc VZ |
3200 | # Check whether --enable-dialupman or --disable-dialupman was given. |
3201 | if test "${enable_dialupman+set}" = set; then | |
3202 | enableval="$enable_dialupman" | |
698dcdb6 | 3203 | |
10f2d63a | 3204 | if test "$enableval" = yes; then |
eb4efbdc | 3205 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' |
10f2d63a | 3206 | else |
eb4efbdc | 3207 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' |
10f2d63a | 3208 | fi |
698dcdb6 | 3209 | |
10f2d63a | 3210 | else |
698dcdb6 | 3211 | |
eb4efbdc | 3212 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3213 | if test "x$LINE" != x ; then |
3214 | eval "DEFAULT_$LINE" | |
3215 | else | |
3216 | no_cache=1 | |
3217 | fi | |
3218 | ||
eb4efbdc | 3219 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER |
698dcdb6 VZ |
3220 | |
3221 | fi | |
10f2d63a VZ |
3222 | |
3223 | ||
eb4efbdc | 3224 | eval "$ac_cv_use_dialupman" |
10f2d63a | 3225 | if test "$no_cache" != 1; then |
eb4efbdc | 3226 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3227 | fi |
3228 | ||
eb4efbdc | 3229 | if test "$wxUSE_DIALUP_MANAGER" = yes; then |
698dcdb6 | 3230 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3231 | else |
698dcdb6 | 3232 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3233 | fi |
698dcdb6 | 3234 | |
10f2d63a | 3235 | |
698dcdb6 | 3236 | echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6 |
ab252f7b | 3237 | echo "configure:3238: checking for --enable-apple_ieee" >&5 |
10f2d63a VZ |
3238 | no_cache=0 |
3239 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
3240 | if test "${enable_apple_ieee+set}" = set; then | |
3241 | enableval="$enable_apple_ieee" | |
698dcdb6 | 3242 | |
10f2d63a VZ |
3243 | if test "$enableval" = yes; then |
3244 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
3245 | else | |
3246 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
3247 | fi | |
698dcdb6 | 3248 | |
10f2d63a | 3249 | else |
698dcdb6 | 3250 | |
10f2d63a VZ |
3251 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` |
3252 | if test "x$LINE" != x ; then | |
3253 | eval "DEFAULT_$LINE" | |
3254 | else | |
3255 | no_cache=1 | |
3256 | fi | |
3257 | ||
3258 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
698dcdb6 VZ |
3259 | |
3260 | fi | |
10f2d63a VZ |
3261 | |
3262 | ||
3263 | eval "$ac_cv_use_apple_ieee" | |
3264 | if test "$no_cache" != 1; then | |
3265 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
3266 | fi | |
3267 | ||
3268 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
698dcdb6 | 3269 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3270 | else |
698dcdb6 | 3271 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3272 | fi |
698dcdb6 | 3273 | |
10f2d63a | 3274 | |
1e6feb95 | 3275 | echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6 |
ab252f7b | 3276 | echo "configure:3277: checking for --enable-timer" >&5 |
10f2d63a | 3277 | no_cache=0 |
1e6feb95 VZ |
3278 | # Check whether --enable-timer or --disable-timer was given. |
3279 | if test "${enable_timer+set}" = set; then | |
3280 | enableval="$enable_timer" | |
698dcdb6 | 3281 | |
10f2d63a | 3282 | if test "$enableval" = yes; then |
1e6feb95 | 3283 | ac_cv_use_timer='wxUSE_TIMER=yes' |
10f2d63a | 3284 | else |
1e6feb95 | 3285 | ac_cv_use_timer='wxUSE_TIMER=no' |
10f2d63a | 3286 | fi |
698dcdb6 | 3287 | |
10f2d63a | 3288 | else |
698dcdb6 | 3289 | |
1e6feb95 | 3290 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3291 | if test "x$LINE" != x ; then |
3292 | eval "DEFAULT_$LINE" | |
3293 | else | |
3294 | no_cache=1 | |
3295 | fi | |
3296 | ||
1e6feb95 | 3297 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER |
698dcdb6 VZ |
3298 | |
3299 | fi | |
10f2d63a VZ |
3300 | |
3301 | ||
1e6feb95 | 3302 | eval "$ac_cv_use_timer" |
10f2d63a | 3303 | if test "$no_cache" != 1; then |
1e6feb95 | 3304 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3305 | fi |
3306 | ||
1e6feb95 | 3307 | if test "$wxUSE_TIMER" = yes; then |
698dcdb6 | 3308 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3309 | else |
698dcdb6 | 3310 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3311 | fi |
698dcdb6 | 3312 | |
10f2d63a | 3313 | |
698dcdb6 | 3314 | echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6 |
ab252f7b | 3315 | echo "configure:3316: checking for --enable-wave" >&5 |
10f2d63a VZ |
3316 | no_cache=0 |
3317 | # Check whether --enable-wave or --disable-wave was given. | |
3318 | if test "${enable_wave+set}" = set; then | |
3319 | enableval="$enable_wave" | |
698dcdb6 | 3320 | |
10f2d63a VZ |
3321 | if test "$enableval" = yes; then |
3322 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
3323 | else | |
3324 | ac_cv_use_wave='wxUSE_WAVE=no' | |
3325 | fi | |
698dcdb6 | 3326 | |
10f2d63a | 3327 | else |
698dcdb6 | 3328 | |
10f2d63a VZ |
3329 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` |
3330 | if test "x$LINE" != x ; then | |
3331 | eval "DEFAULT_$LINE" | |
3332 | else | |
3333 | no_cache=1 | |
3334 | fi | |
3335 | ||
3336 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
698dcdb6 VZ |
3337 | |
3338 | fi | |
10f2d63a VZ |
3339 | |
3340 | ||
3341 | eval "$ac_cv_use_wave" | |
3342 | if test "$no_cache" != 1; then | |
3343 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
3344 | fi | |
3345 | ||
3346 | if test "$wxUSE_WAVE" = yes; then | |
698dcdb6 | 3347 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3348 | else |
698dcdb6 | 3349 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3350 | fi |
698dcdb6 | 3351 | |
10f2d63a | 3352 | |
698dcdb6 | 3353 | echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6 |
ab252f7b | 3354 | echo "configure:3355: checking for --enable-fraction" >&5 |
10f2d63a VZ |
3355 | no_cache=0 |
3356 | # Check whether --enable-fraction or --disable-fraction was given. | |
3357 | if test "${enable_fraction+set}" = set; then | |
3358 | enableval="$enable_fraction" | |
698dcdb6 | 3359 | |
10f2d63a VZ |
3360 | if test "$enableval" = yes; then |
3361 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
3362 | else | |
3363 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
3364 | fi | |
698dcdb6 | 3365 | |
10f2d63a | 3366 | else |
698dcdb6 | 3367 | |
10f2d63a VZ |
3368 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` |
3369 | if test "x$LINE" != x ; then | |
3370 | eval "DEFAULT_$LINE" | |
3371 | else | |
3372 | no_cache=1 | |
3373 | fi | |
3374 | ||
3375 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
698dcdb6 VZ |
3376 | |
3377 | fi | |
10f2d63a VZ |
3378 | |
3379 | ||
3380 | eval "$ac_cv_use_fraction" | |
3381 | if test "$no_cache" != 1; then | |
3382 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
3383 | fi | |
3384 | ||
3385 | if test "$wxUSE_FRACTION" = yes; then | |
698dcdb6 | 3386 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3387 | else |
698dcdb6 | 3388 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3389 | fi |
698dcdb6 | 3390 | |
10f2d63a | 3391 | |
698dcdb6 | 3392 | echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6 |
ab252f7b | 3393 | echo "configure:3394: checking for --enable-dynlib" >&5 |
10f2d63a VZ |
3394 | no_cache=0 |
3395 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
3396 | if test "${enable_dynlib+set}" = set; then | |
3397 | enableval="$enable_dynlib" | |
698dcdb6 | 3398 | |
10f2d63a VZ |
3399 | if test "$enableval" = yes; then |
3400 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
3401 | else | |
3402 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
3403 | fi | |
698dcdb6 | 3404 | |
10f2d63a | 3405 | else |
698dcdb6 | 3406 | |
10f2d63a VZ |
3407 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` |
3408 | if test "x$LINE" != x ; then | |
3409 | eval "DEFAULT_$LINE" | |
3410 | else | |
3411 | no_cache=1 | |
3412 | fi | |
3413 | ||
3414 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
698dcdb6 VZ |
3415 | |
3416 | fi | |
10f2d63a VZ |
3417 | |
3418 | ||
3419 | eval "$ac_cv_use_dynlib" | |
3420 | if test "$no_cache" != 1; then | |
3421 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
3422 | fi | |
3423 | ||
3424 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
698dcdb6 | 3425 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3426 | else |
698dcdb6 | 3427 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3428 | fi |
698dcdb6 | 3429 | |
10f2d63a | 3430 | |
698dcdb6 | 3431 | echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6 |
ab252f7b | 3432 | echo "configure:3433: checking for --enable-longlong" >&5 |
10f2d63a VZ |
3433 | no_cache=0 |
3434 | # Check whether --enable-longlong or --disable-longlong was given. | |
3435 | if test "${enable_longlong+set}" = set; then | |
3436 | enableval="$enable_longlong" | |
698dcdb6 | 3437 | |
10f2d63a VZ |
3438 | if test "$enableval" = yes; then |
3439 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
3440 | else | |
3441 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
3442 | fi | |
698dcdb6 | 3443 | |
10f2d63a | 3444 | else |
698dcdb6 | 3445 | |
10f2d63a VZ |
3446 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` |
3447 | if test "x$LINE" != x ; then | |
3448 | eval "DEFAULT_$LINE" | |
3449 | else | |
3450 | no_cache=1 | |
3451 | fi | |
3452 | ||
3453 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
698dcdb6 VZ |
3454 | |
3455 | fi | |
10f2d63a VZ |
3456 | |
3457 | ||
3458 | eval "$ac_cv_use_longlong" | |
3459 | if test "$no_cache" != 1; then | |
3460 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
3461 | fi | |
3462 | ||
3463 | if test "$wxUSE_LONGLONG" = yes; then | |
698dcdb6 | 3464 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3465 | else |
698dcdb6 | 3466 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3467 | fi |
698dcdb6 | 3468 | |
10f2d63a | 3469 | |
698dcdb6 | 3470 | echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6 |
ab252f7b | 3471 | echo "configure:3472: checking for --enable-geometry" >&5 |
e8f65ba6 RR |
3472 | no_cache=0 |
3473 | # Check whether --enable-geometry or --disable-geometry was given. | |
3474 | if test "${enable_geometry+set}" = set; then | |
3475 | enableval="$enable_geometry" | |
698dcdb6 | 3476 | |
e8f65ba6 RR |
3477 | if test "$enableval" = yes; then |
3478 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
3479 | else | |
3480 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
3481 | fi | |
698dcdb6 | 3482 | |
e8f65ba6 | 3483 | else |
698dcdb6 | 3484 | |
e8f65ba6 RR |
3485 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` |
3486 | if test "x$LINE" != x ; then | |
3487 | eval "DEFAULT_$LINE" | |
3488 | else | |
3489 | no_cache=1 | |
3490 | fi | |
3491 | ||
3492 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
698dcdb6 VZ |
3493 | |
3494 | fi | |
e8f65ba6 RR |
3495 | |
3496 | ||
3497 | eval "$ac_cv_use_geometry" | |
3498 | if test "$no_cache" != 1; then | |
3499 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
3500 | fi | |
3501 | ||
3502 | if test "$wxUSE_GEOMETRY" = yes; then | |
698dcdb6 | 3503 | echo "$ac_t""yes" 1>&6 |
e8f65ba6 | 3504 | else |
698dcdb6 | 3505 | echo "$ac_t""no" 1>&6 |
e8f65ba6 | 3506 | fi |
698dcdb6 | 3507 | |
e8f65ba6 | 3508 | |
698dcdb6 | 3509 | echo $ac_n "checking for --enable-log""... $ac_c" 1>&6 |
ab252f7b | 3510 | echo "configure:3511: checking for --enable-log" >&5 |
10f2d63a VZ |
3511 | no_cache=0 |
3512 | # Check whether --enable-log or --disable-log was given. | |
3513 | if test "${enable_log+set}" = set; then | |
3514 | enableval="$enable_log" | |
698dcdb6 | 3515 | |
10f2d63a VZ |
3516 | if test "$enableval" = yes; then |
3517 | ac_cv_use_log='wxUSE_LOG=yes' | |
3518 | else | |
3519 | ac_cv_use_log='wxUSE_LOG=no' | |
3520 | fi | |
698dcdb6 | 3521 | |
10f2d63a | 3522 | else |
698dcdb6 | 3523 | |
10f2d63a VZ |
3524 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` |
3525 | if test "x$LINE" != x ; then | |
3526 | eval "DEFAULT_$LINE" | |
3527 | else | |
3528 | no_cache=1 | |
3529 | fi | |
3530 | ||
3531 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
698dcdb6 VZ |
3532 | |
3533 | fi | |
10f2d63a VZ |
3534 | |
3535 | ||
3536 | eval "$ac_cv_use_log" | |
3537 | if test "$no_cache" != 1; then | |
3538 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
3539 | fi | |
3540 | ||
3541 | if test "$wxUSE_LOG" = yes; then | |
698dcdb6 | 3542 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3543 | else |
698dcdb6 | 3544 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3545 | fi |
698dcdb6 | 3546 | |
10f2d63a | 3547 | |
698dcdb6 | 3548 | echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6 |
ab252f7b | 3549 | echo "configure:3550: checking for --enable-streams" >&5 |
10f2d63a VZ |
3550 | no_cache=0 |
3551 | # Check whether --enable-streams or --disable-streams was given. | |
3552 | if test "${enable_streams+set}" = set; then | |
3553 | enableval="$enable_streams" | |
698dcdb6 | 3554 | |
10f2d63a VZ |
3555 | if test "$enableval" = yes; then |
3556 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
3557 | else | |
3558 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
3559 | fi | |
698dcdb6 | 3560 | |
10f2d63a | 3561 | else |
698dcdb6 | 3562 | |
10f2d63a VZ |
3563 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` |
3564 | if test "x$LINE" != x ; then | |
3565 | eval "DEFAULT_$LINE" | |
3566 | else | |
3567 | no_cache=1 | |
3568 | fi | |
3569 | ||
3570 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
698dcdb6 VZ |
3571 | |
3572 | fi | |
10f2d63a VZ |
3573 | |
3574 | ||
3575 | eval "$ac_cv_use_streams" | |
3576 | if test "$no_cache" != 1; then | |
3577 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
3578 | fi | |
3579 | ||
3580 | if test "$wxUSE_STREAMS" = yes; then | |
698dcdb6 | 3581 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3582 | else |
698dcdb6 | 3583 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3584 | fi |
698dcdb6 | 3585 | |
10f2d63a | 3586 | |
698dcdb6 | 3587 | echo $ac_n "checking for --enable-file""... $ac_c" 1>&6 |
ab252f7b | 3588 | echo "configure:3589: checking for --enable-file" >&5 |
10f2d63a VZ |
3589 | no_cache=0 |
3590 | # Check whether --enable-file or --disable-file was given. | |
3591 | if test "${enable_file+set}" = set; then | |
3592 | enableval="$enable_file" | |
698dcdb6 | 3593 | |
10f2d63a VZ |
3594 | if test "$enableval" = yes; then |
3595 | ac_cv_use_file='wxUSE_FILE=yes' | |
3596 | else | |
3597 | ac_cv_use_file='wxUSE_FILE=no' | |
3598 | fi | |
698dcdb6 | 3599 | |
10f2d63a | 3600 | else |
698dcdb6 | 3601 | |
10f2d63a VZ |
3602 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` |
3603 | if test "x$LINE" != x ; then | |
3604 | eval "DEFAULT_$LINE" | |
3605 | else | |
3606 | no_cache=1 | |
3607 | fi | |
3608 | ||
3609 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
698dcdb6 VZ |
3610 | |
3611 | fi | |
10f2d63a VZ |
3612 | |
3613 | ||
3614 | eval "$ac_cv_use_file" | |
3615 | if test "$no_cache" != 1; then | |
3616 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
3617 | fi | |
3618 | ||
3619 | if test "$wxUSE_FILE" = yes; then | |
698dcdb6 | 3620 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3621 | else |
698dcdb6 | 3622 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3623 | fi |
698dcdb6 | 3624 | |
10f2d63a | 3625 | |
1e6feb95 | 3626 | echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6 |
ab252f7b | 3627 | echo "configure:3628: checking for --enable-ffile" >&5 |
10f2d63a | 3628 | no_cache=0 |
1e6feb95 VZ |
3629 | # Check whether --enable-ffile or --disable-ffile was given. |
3630 | if test "${enable_ffile+set}" = set; then | |
3631 | enableval="$enable_ffile" | |
698dcdb6 | 3632 | |
10f2d63a | 3633 | if test "$enableval" = yes; then |
1e6feb95 | 3634 | ac_cv_use_ffile='wxUSE_FFILE=yes' |
10f2d63a | 3635 | else |
1e6feb95 | 3636 | ac_cv_use_ffile='wxUSE_FFILE=no' |
10f2d63a | 3637 | fi |
698dcdb6 | 3638 | |
10f2d63a | 3639 | else |
698dcdb6 | 3640 | |
1e6feb95 | 3641 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
3642 | if test "x$LINE" != x ; then |
3643 | eval "DEFAULT_$LINE" | |
3644 | else | |
3645 | no_cache=1 | |
3646 | fi | |
3647 | ||
1e6feb95 | 3648 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE |
698dcdb6 VZ |
3649 | |
3650 | fi | |
10f2d63a VZ |
3651 | |
3652 | ||
1e6feb95 | 3653 | eval "$ac_cv_use_ffile" |
10f2d63a | 3654 | if test "$no_cache" != 1; then |
1e6feb95 | 3655 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3656 | fi |
3657 | ||
1e6feb95 | 3658 | if test "$wxUSE_FFILE" = yes; then |
698dcdb6 | 3659 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3660 | else |
698dcdb6 | 3661 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3662 | fi |
698dcdb6 | 3663 | |
10f2d63a | 3664 | |
1e6feb95 | 3665 | echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6 |
ab252f7b | 3666 | echo "configure:3667: checking for --enable-textfile" >&5 |
10f2d63a | 3667 | no_cache=0 |
1e6feb95 VZ |
3668 | # Check whether --enable-textfile or --disable-textfile was given. |
3669 | if test "${enable_textfile+set}" = set; then | |
3670 | enableval="$enable_textfile" | |
698dcdb6 | 3671 | |
10f2d63a | 3672 | if test "$enableval" = yes; then |
1e6feb95 | 3673 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' |
10f2d63a | 3674 | else |
1e6feb95 | 3675 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' |
10f2d63a | 3676 | fi |
698dcdb6 | 3677 | |
10f2d63a | 3678 | else |
698dcdb6 | 3679 | |
1e6feb95 | 3680 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
3681 | if test "x$LINE" != x ; then |
3682 | eval "DEFAULT_$LINE" | |
3683 | else | |
3684 | no_cache=1 | |
3685 | fi | |
3686 | ||
1e6feb95 | 3687 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE |
698dcdb6 VZ |
3688 | |
3689 | fi | |
10f2d63a VZ |
3690 | |
3691 | ||
1e6feb95 | 3692 | eval "$ac_cv_use_textfile" |
10f2d63a | 3693 | if test "$no_cache" != 1; then |
1e6feb95 | 3694 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3695 | fi |
3696 | ||
1e6feb95 | 3697 | if test "$wxUSE_TEXTFILE" = yes; then |
698dcdb6 | 3698 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3699 | else |
698dcdb6 | 3700 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3701 | fi |
698dcdb6 | 3702 | |
10f2d63a | 3703 | |
1e6feb95 | 3704 | echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6 |
ab252f7b | 3705 | echo "configure:3706: checking for --enable-fontmap" >&5 |
10f2d63a | 3706 | no_cache=0 |
1e6feb95 VZ |
3707 | # Check whether --enable-fontmap or --disable-fontmap was given. |
3708 | if test "${enable_fontmap+set}" = set; then | |
3709 | enableval="$enable_fontmap" | |
698dcdb6 | 3710 | |
10f2d63a | 3711 | if test "$enableval" = yes; then |
1e6feb95 | 3712 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' |
10f2d63a | 3713 | else |
1e6feb95 | 3714 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' |
10f2d63a | 3715 | fi |
698dcdb6 | 3716 | |
10f2d63a | 3717 | else |
698dcdb6 | 3718 | |
1e6feb95 | 3719 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` |
10f2d63a VZ |
3720 | if test "x$LINE" != x ; then |
3721 | eval "DEFAULT_$LINE" | |
3722 | else | |
3723 | no_cache=1 | |
3724 | fi | |
3725 | ||
1e6feb95 | 3726 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP |
698dcdb6 VZ |
3727 | |
3728 | fi | |
10f2d63a VZ |
3729 | |
3730 | ||
1e6feb95 | 3731 | eval "$ac_cv_use_fontmap" |
10f2d63a | 3732 | if test "$no_cache" != 1; then |
1e6feb95 | 3733 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3734 | fi |
3735 | ||
1e6feb95 | 3736 | if test "$wxUSE_FONTMAP" = yes; then |
698dcdb6 | 3737 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3738 | else |
698dcdb6 | 3739 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3740 | fi |
698dcdb6 | 3741 | |
10f2d63a | 3742 | |
1e6feb95 | 3743 | echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6 |
ab252f7b | 3744 | echo "configure:3745: checking for --enable-unicode" >&5 |
10f2d63a | 3745 | no_cache=0 |
1e6feb95 VZ |
3746 | # Check whether --enable-unicode or --disable-unicode was given. |
3747 | if test "${enable_unicode+set}" = set; then | |
3748 | enableval="$enable_unicode" | |
3749 | ||
3750 | if test "$enableval" = yes; then | |
3751 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
3752 | else | |
3753 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
3754 | fi | |
3755 | ||
3756 | else | |
3757 | ||
3758 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
3759 | if test "x$LINE" != x ; then | |
3760 | eval "DEFAULT_$LINE" | |
3761 | else | |
3762 | no_cache=1 | |
3763 | fi | |
3764 | ||
3765 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
3766 | ||
3767 | fi | |
3768 | ||
3769 | ||
3770 | eval "$ac_cv_use_unicode" | |
3771 | if test "$no_cache" != 1; then | |
3772 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
3773 | fi | |
3774 | ||
3775 | if test "$wxUSE_UNICODE" = yes; then | |
3776 | echo "$ac_t""yes" 1>&6 | |
3777 | else | |
3778 | echo "$ac_t""no" 1>&6 | |
3779 | fi | |
3780 | ||
3781 | ||
3782 | echo $ac_n "checking for --enable-wcsrtombs""... $ac_c" 1>&6 | |
ab252f7b | 3783 | echo "configure:3784: checking for --enable-wcsrtombs" >&5 |
1e6feb95 VZ |
3784 | no_cache=0 |
3785 | # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given. | |
3786 | if test "${enable_wcsrtombs+set}" = set; then | |
3787 | enableval="$enable_wcsrtombs" | |
3788 | ||
3789 | if test "$enableval" = yes; then | |
3790 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes' | |
3791 | else | |
3792 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no' | |
3793 | fi | |
3794 | ||
3795 | else | |
3796 | ||
3797 | LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}` | |
3798 | if test "x$LINE" != x ; then | |
3799 | eval "DEFAULT_$LINE" | |
3800 | else | |
3801 | no_cache=1 | |
3802 | fi | |
3803 | ||
3804 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS | |
3805 | ||
3806 | fi | |
3807 | ||
3808 | ||
3809 | eval "$ac_cv_use_wcsrtombs" | |
3810 | if test "$no_cache" != 1; then | |
3811 | echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp | |
3812 | fi | |
3813 | ||
3814 | if test "$wxUSE_WCSRTOMBS" = yes; then | |
3815 | echo "$ac_t""yes" 1>&6 | |
3816 | else | |
3817 | echo "$ac_t""no" 1>&6 | |
3818 | fi | |
3819 | ||
3820 | ||
3821 | echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6 | |
ab252f7b | 3822 | echo "configure:3823: checking for --enable-wxprintfv" >&5 |
1e6feb95 VZ |
3823 | no_cache=0 |
3824 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
3825 | if test "${enable_wxprintfv+set}" = set; then | |
3826 | enableval="$enable_wxprintfv" | |
3827 | ||
3828 | if test "$enableval" = yes; then | |
10f2d63a VZ |
3829 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' |
3830 | else | |
3831 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
3832 | fi | |
698dcdb6 | 3833 | |
10f2d63a | 3834 | else |
698dcdb6 | 3835 | |
10f2d63a VZ |
3836 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` |
3837 | if test "x$LINE" != x ; then | |
3838 | eval "DEFAULT_$LINE" | |
3839 | else | |
3840 | no_cache=1 | |
3841 | fi | |
3842 | ||
3843 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
698dcdb6 VZ |
3844 | |
3845 | fi | |
10f2d63a VZ |
3846 | |
3847 | ||
3848 | eval "$ac_cv_use_wxprintfv" | |
3849 | if test "$no_cache" != 1; then | |
3850 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
3851 | fi | |
3852 | ||
3853 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
698dcdb6 | 3854 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3855 | else |
698dcdb6 | 3856 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3857 | fi |
698dcdb6 | 3858 | |
10f2d63a | 3859 | |
698dcdb6 | 3860 | echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6 |
ab252f7b | 3861 | echo "configure:3862: checking for --enable-std_iostreams" >&5 |
10f2d63a VZ |
3862 | no_cache=0 |
3863 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
3864 | if test "${enable_std_iostreams+set}" = set; then | |
3865 | enableval="$enable_std_iostreams" | |
698dcdb6 | 3866 | |
10f2d63a VZ |
3867 | if test "$enableval" = yes; then |
3868 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
3869 | else | |
3870 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
3871 | fi | |
698dcdb6 | 3872 | |
10f2d63a | 3873 | else |
698dcdb6 | 3874 | |
10f2d63a VZ |
3875 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
3876 | if test "x$LINE" != x ; then | |
3877 | eval "DEFAULT_$LINE" | |
3878 | else | |
3879 | no_cache=1 | |
3880 | fi | |
3881 | ||
3882 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
698dcdb6 VZ |
3883 | |
3884 | fi | |
10f2d63a VZ |
3885 | |
3886 | ||
3887 | eval "$ac_cv_use_std_iostreams" | |
3888 | if test "$no_cache" != 1; then | |
3889 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
3890 | fi | |
3891 | ||
3892 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
698dcdb6 | 3893 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3894 | else |
698dcdb6 | 3895 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3896 | fi |
698dcdb6 | 3897 | |
10f2d63a | 3898 | |
698dcdb6 | 3899 | echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6 |
ab252f7b | 3900 | echo "configure:3901: checking for --enable-filesystem" >&5 |
24528b0c VS |
3901 | no_cache=0 |
3902 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
3903 | if test "${enable_filesystem+set}" = set; then | |
3904 | enableval="$enable_filesystem" | |
698dcdb6 | 3905 | |
24528b0c VS |
3906 | if test "$enableval" = yes; then |
3907 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
3908 | else | |
3909 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
3910 | fi | |
698dcdb6 | 3911 | |
24528b0c | 3912 | else |
698dcdb6 | 3913 | |
24528b0c VS |
3914 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` |
3915 | if test "x$LINE" != x ; then | |
3916 | eval "DEFAULT_$LINE" | |
3917 | else | |
3918 | no_cache=1 | |
3919 | fi | |
3920 | ||
3921 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
698dcdb6 VZ |
3922 | |
3923 | fi | |
24528b0c VS |
3924 | |
3925 | ||
3926 | eval "$ac_cv_use_filesystem" | |
3927 | if test "$no_cache" != 1; then | |
3928 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
3929 | fi | |
3930 | ||
3931 | if test "$wxUSE_FILESYSTEM" = yes; then | |
698dcdb6 | 3932 | echo "$ac_t""yes" 1>&6 |
24528b0c | 3933 | else |
698dcdb6 | 3934 | echo "$ac_t""no" 1>&6 |
24528b0c | 3935 | fi |
698dcdb6 | 3936 | |
24528b0c | 3937 | |
698dcdb6 | 3938 | echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6 |
ab252f7b | 3939 | echo "configure:3940: checking for --enable-fs_inet" >&5 |
10f2d63a VZ |
3940 | no_cache=0 |
3941 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
3942 | if test "${enable_fs_inet+set}" = set; then | |
3943 | enableval="$enable_fs_inet" | |
698dcdb6 | 3944 | |
10f2d63a VZ |
3945 | if test "$enableval" = yes; then |
3946 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
3947 | else | |
3948 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
3949 | fi | |
698dcdb6 | 3950 | |
10f2d63a | 3951 | else |
698dcdb6 | 3952 | |
10f2d63a VZ |
3953 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` |
3954 | if test "x$LINE" != x ; then | |
3955 | eval "DEFAULT_$LINE" | |
3956 | else | |
3957 | no_cache=1 | |
3958 | fi | |
3959 | ||
3960 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
698dcdb6 VZ |
3961 | |
3962 | fi | |
10f2d63a VZ |
3963 | |
3964 | ||
3965 | eval "$ac_cv_use_fs_inet" | |
3966 | if test "$no_cache" != 1; then | |
3967 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
3968 | fi | |
3969 | ||
3970 | if test "$wxUSE_FS_INET" = yes; then | |
698dcdb6 | 3971 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3972 | else |
698dcdb6 | 3973 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3974 | fi |
698dcdb6 | 3975 | |
10f2d63a | 3976 | |
698dcdb6 | 3977 | echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6 |
ab252f7b | 3978 | echo "configure:3979: checking for --enable-fs_zip" >&5 |
10f2d63a VZ |
3979 | no_cache=0 |
3980 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
3981 | if test "${enable_fs_zip+set}" = set; then | |
3982 | enableval="$enable_fs_zip" | |
698dcdb6 | 3983 | |
10f2d63a VZ |
3984 | if test "$enableval" = yes; then |
3985 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
3986 | else | |
3987 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
3988 | fi | |
698dcdb6 | 3989 | |
10f2d63a | 3990 | else |
698dcdb6 | 3991 | |
10f2d63a VZ |
3992 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` |
3993 | if test "x$LINE" != x ; then | |
3994 | eval "DEFAULT_$LINE" | |
3995 | else | |
3996 | no_cache=1 | |
3997 | fi | |
3998 | ||
3999 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
698dcdb6 VZ |
4000 | |
4001 | fi | |
10f2d63a VZ |
4002 | |
4003 | ||
4004 | eval "$ac_cv_use_fs_zip" | |
4005 | if test "$no_cache" != 1; then | |
4006 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
4007 | fi | |
4008 | ||
4009 | if test "$wxUSE_FS_ZIP" = yes; then | |
698dcdb6 | 4010 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4011 | else |
698dcdb6 | 4012 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4013 | fi |
698dcdb6 | 4014 | |
10f2d63a | 4015 | |
698dcdb6 | 4016 | echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6 |
ab252f7b | 4017 | echo "configure:4018: checking for --enable-zipstream" >&5 |
10f2d63a VZ |
4018 | no_cache=0 |
4019 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
4020 | if test "${enable_zipstream+set}" = set; then | |
4021 | enableval="$enable_zipstream" | |
698dcdb6 | 4022 | |
10f2d63a VZ |
4023 | if test "$enableval" = yes; then |
4024 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
4025 | else | |
4026 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
4027 | fi | |
698dcdb6 | 4028 | |
10f2d63a | 4029 | else |
698dcdb6 | 4030 | |
10f2d63a VZ |
4031 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` |
4032 | if test "x$LINE" != x ; then | |
4033 | eval "DEFAULT_$LINE" | |
4034 | else | |
4035 | no_cache=1 | |
4036 | fi | |
4037 | ||
4038 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
698dcdb6 VZ |
4039 | |
4040 | fi | |
10f2d63a VZ |
4041 | |
4042 | ||
4043 | eval "$ac_cv_use_zipstream" | |
4044 | if test "$no_cache" != 1; then | |
4045 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
4046 | fi | |
4047 | ||
4048 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
698dcdb6 | 4049 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4050 | else |
698dcdb6 | 4051 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4052 | fi |
698dcdb6 | 4053 | |
10f2d63a | 4054 | |
698dcdb6 VZ |
4055 | |
4056 | echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6 | |
ab252f7b | 4057 | echo "configure:4058: checking for --enable-catch_segvs" >&5 |
eb4efbdc VZ |
4058 | no_cache=0 |
4059 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
4060 | if test "${enable_catch_segvs+set}" = set; then | |
4061 | enableval="$enable_catch_segvs" | |
698dcdb6 | 4062 | |
eb4efbdc VZ |
4063 | if test "$enableval" = yes; then |
4064 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
4065 | else | |
4066 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
4067 | fi | |
698dcdb6 | 4068 | |
eb4efbdc | 4069 | else |
698dcdb6 | 4070 | |
eb4efbdc VZ |
4071 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
4072 | if test "x$LINE" != x ; then | |
4073 | eval "DEFAULT_$LINE" | |
4074 | else | |
4075 | no_cache=1 | |
4076 | fi | |
4077 | ||
4078 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
698dcdb6 VZ |
4079 | |
4080 | fi | |
eb4efbdc VZ |
4081 | |
4082 | ||
4083 | eval "$ac_cv_use_catch_segvs" | |
4084 | if test "$no_cache" != 1; then | |
4085 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
4086 | fi | |
4087 | ||
4088 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
698dcdb6 | 4089 | echo "$ac_t""yes" 1>&6 |
eb4efbdc | 4090 | else |
698dcdb6 | 4091 | echo "$ac_t""no" 1>&6 |
eb4efbdc | 4092 | fi |
698dcdb6 | 4093 | |
eb4efbdc | 4094 | |
698dcdb6 | 4095 | echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6 |
ab252f7b | 4096 | echo "configure:4097: checking for --enable-snglinst" >&5 |
4f3c5f06 VZ |
4097 | no_cache=0 |
4098 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
4099 | if test "${enable_snglinst+set}" = set; then | |
4100 | enableval="$enable_snglinst" | |
698dcdb6 | 4101 | |
4f3c5f06 VZ |
4102 | if test "$enableval" = yes; then |
4103 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
4104 | else | |
4105 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
4106 | fi | |
698dcdb6 | 4107 | |
4f3c5f06 | 4108 | else |
698dcdb6 | 4109 | |
4f3c5f06 VZ |
4110 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` |
4111 | if test "x$LINE" != x ; then | |
4112 | eval "DEFAULT_$LINE" | |
4113 | else | |
4114 | no_cache=1 | |
4115 | fi | |
4116 | ||
4117 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
698dcdb6 VZ |
4118 | |
4119 | fi | |
4f3c5f06 VZ |
4120 | |
4121 | ||
4122 | eval "$ac_cv_use_snglinst" | |
4123 | if test "$no_cache" != 1; then | |
4124 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
4125 | fi | |
4126 | ||
4127 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
698dcdb6 | 4128 | echo "$ac_t""yes" 1>&6 |
4f3c5f06 | 4129 | else |
698dcdb6 | 4130 | echo "$ac_t""no" 1>&6 |
4f3c5f06 | 4131 | fi |
698dcdb6 VZ |
4132 | |
4133 | ||
eb4efbdc | 4134 | |
1e6feb95 | 4135 | echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6 |
ab252f7b | 4136 | echo "configure:4137: checking for --enable-mimetype" >&5 |
1e6feb95 VZ |
4137 | no_cache=0 |
4138 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
4139 | if test "${enable_mimetype+set}" = set; then | |
4140 | enableval="$enable_mimetype" | |
4141 | ||
4142 | if test "$enableval" = yes; then | |
4143 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
4144 | else | |
4145 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
4146 | fi | |
4147 | ||
4148 | else | |
4149 | ||
4150 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
4151 | if test "x$LINE" != x ; then | |
4152 | eval "DEFAULT_$LINE" | |
4153 | else | |
4154 | no_cache=1 | |
4155 | fi | |
4156 | ||
4157 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
4158 | ||
4159 | fi | |
4160 | ||
4161 | ||
4162 | eval "$ac_cv_use_mimetype" | |
4163 | if test "$no_cache" != 1; then | |
4164 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
4165 | fi | |
4166 | ||
4167 | if test "$wxUSE_MIMETYPE" = yes; then | |
4168 | echo "$ac_t""yes" 1>&6 | |
4169 | else | |
4170 | echo "$ac_t""no" 1>&6 | |
4171 | fi | |
4172 | ||
4173 | ||
3e44f09d | 4174 | echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6 |
ab252f7b | 4175 | echo "configure:4176: checking for --enable-system_options" >&5 |
3e44f09d VZ |
4176 | no_cache=0 |
4177 | # Check whether --enable-system_options or --disable-system_options was given. | |
4178 | if test "${enable_system_options+set}" = set; then | |
4179 | enableval="$enable_system_options" | |
4180 | ||
4181 | if test "$enableval" = yes; then | |
4182 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
4183 | else | |
4184 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
4185 | fi | |
4186 | ||
4187 | else | |
4188 | ||
4189 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` | |
4190 | if test "x$LINE" != x ; then | |
4191 | eval "DEFAULT_$LINE" | |
4192 | else | |
4193 | no_cache=1 | |
4194 | fi | |
4195 | ||
4196 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
4197 | ||
4198 | fi | |
4199 | ||
4200 | ||
4201 | eval "$ac_cv_use_system_options" | |
4202 | if test "$no_cache" != 1; then | |
4203 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
4204 | fi | |
4205 | ||
4206 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
4207 | echo "$ac_t""yes" 1>&6 | |
4208 | else | |
4209 | echo "$ac_t""no" 1>&6 | |
4210 | fi | |
4211 | ||
4212 | ||
1e6feb95 | 4213 | |
698dcdb6 VZ |
4214 | |
4215 | echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6 | |
ab252f7b | 4216 | echo "configure:4217: checking for --enable-threads" >&5 |
10f2d63a VZ |
4217 | no_cache=0 |
4218 | # Check whether --enable-threads or --disable-threads was given. | |
4219 | if test "${enable_threads+set}" = set; then | |
4220 | enableval="$enable_threads" | |
698dcdb6 | 4221 | |
10f2d63a VZ |
4222 | if test "$enableval" = yes; then |
4223 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
4224 | else | |
4225 | ac_cv_use_threads='wxUSE_THREADS=no' | |
4226 | fi | |
698dcdb6 | 4227 | |
10f2d63a | 4228 | else |
698dcdb6 | 4229 | |
10f2d63a VZ |
4230 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` |
4231 | if test "x$LINE" != x ; then | |
4232 | eval "DEFAULT_$LINE" | |
4233 | else | |
4234 | no_cache=1 | |
4235 | fi | |
4236 | ||
4237 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
698dcdb6 VZ |
4238 | |
4239 | fi | |
10f2d63a VZ |
4240 | |
4241 | ||
4242 | eval "$ac_cv_use_threads" | |
4243 | if test "$no_cache" != 1; then | |
4244 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
4245 | fi | |
4246 | ||
4247 | if test "$wxUSE_THREADS" = yes; then | |
698dcdb6 | 4248 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4249 | else |
698dcdb6 | 4250 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4251 | fi |
698dcdb6 | 4252 | |
10f2d63a | 4253 | |
698dcdb6 | 4254 | echo $ac_n "checking for --enable-serial""... $ac_c" 1>&6 |
ab252f7b | 4255 | echo "configure:4256: checking for --enable-serial" >&5 |
10f2d63a VZ |
4256 | no_cache=0 |
4257 | # Check whether --enable-serial or --disable-serial was given. | |
4258 | if test "${enable_serial+set}" = set; then | |
4259 | enableval="$enable_serial" | |
698dcdb6 | 4260 | |
10f2d63a VZ |
4261 | if test "$enableval" = yes; then |
4262 | ac_cv_use_serial='wxUSE_SERIAL=yes' | |
4263 | else | |
4264 | ac_cv_use_serial='wxUSE_SERIAL=no' | |
4265 | fi | |
698dcdb6 | 4266 | |
10f2d63a | 4267 | else |
698dcdb6 | 4268 | |
10f2d63a VZ |
4269 | LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}` |
4270 | if test "x$LINE" != x ; then | |
4271 | eval "DEFAULT_$LINE" | |
4272 | else | |
4273 | no_cache=1 | |
4274 | fi | |
4275 | ||
4276 | ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL | |
698dcdb6 VZ |
4277 | |
4278 | fi | |
10f2d63a VZ |
4279 | |
4280 | ||
4281 | eval "$ac_cv_use_serial" | |
4282 | if test "$no_cache" != 1; then | |
4283 | echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp | |
4284 | fi | |
4285 | ||
4286 | if test "$wxUSE_SERIAL" = yes; then | |
698dcdb6 | 4287 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4288 | else |
698dcdb6 | 4289 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4290 | fi |
698dcdb6 | 4291 | |
10f2d63a | 4292 | |
b12915c1 VZ |
4293 | if test "$wxUSE_GUI" = "yes"; then |
4294 | ||
698dcdb6 VZ |
4295 | |
4296 | ||
4297 | echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6 | |
ab252f7b | 4298 | echo "configure:4299: checking for --enable-docview" >&5 |
10f2d63a VZ |
4299 | no_cache=0 |
4300 | # Check whether --enable-docview or --disable-docview was given. | |
4301 | if test "${enable_docview+set}" = set; then | |
4302 | enableval="$enable_docview" | |
698dcdb6 | 4303 | |
10f2d63a VZ |
4304 | if test "$enableval" = yes; then |
4305 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
4306 | else | |
4307 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
4308 | fi | |
698dcdb6 | 4309 | |
10f2d63a | 4310 | else |
698dcdb6 | 4311 | |
10f2d63a VZ |
4312 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` |
4313 | if test "x$LINE" != x ; then | |
4314 | eval "DEFAULT_$LINE" | |
4315 | else | |
4316 | no_cache=1 | |
4317 | fi | |
4318 | ||
4319 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
698dcdb6 VZ |
4320 | |
4321 | fi | |
10f2d63a VZ |
4322 | |
4323 | ||
4324 | eval "$ac_cv_use_docview" | |
4325 | if test "$no_cache" != 1; then | |
4326 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
4327 | fi | |
4328 | ||
4329 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
698dcdb6 | 4330 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4331 | else |
698dcdb6 | 4332 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4333 | fi |
698dcdb6 | 4334 | |
10f2d63a | 4335 | |
698dcdb6 | 4336 | echo $ac_n "checking for --enable-help""... $ac_c" 1>&6 |
ab252f7b | 4337 | echo "configure:4338: checking for --enable-help" >&5 |
10f2d63a VZ |
4338 | no_cache=0 |
4339 | # Check whether --enable-help or --disable-help was given. | |
4340 | if test "${enable_help+set}" = set; then | |
4341 | enableval="$enable_help" | |
698dcdb6 | 4342 | |
10f2d63a VZ |
4343 | if test "$enableval" = yes; then |
4344 | ac_cv_use_help='wxUSE_HELP=yes' | |
4345 | else | |
4346 | ac_cv_use_help='wxUSE_HELP=no' | |
4347 | fi | |
698dcdb6 | 4348 | |
10f2d63a | 4349 | else |
698dcdb6 | 4350 | |
10f2d63a VZ |
4351 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` |
4352 | if test "x$LINE" != x ; then | |
4353 | eval "DEFAULT_$LINE" | |
4354 | else | |
4355 | no_cache=1 | |
4356 | fi | |
4357 | ||
4358 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
698dcdb6 VZ |
4359 | |
4360 | fi | |
10f2d63a VZ |
4361 | |
4362 | ||
4363 | eval "$ac_cv_use_help" | |
4364 | if test "$no_cache" != 1; then | |
4365 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
4366 | fi | |
4367 | ||
4368 | if test "$wxUSE_HELP" = yes; then | |
698dcdb6 | 4369 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4370 | else |
698dcdb6 | 4371 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4372 | fi |
698dcdb6 | 4373 | |
10f2d63a | 4374 | |
29fd3c0c | 4375 | echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6 |
ab252f7b | 4376 | echo "configure:4377: checking for --enable-mshtmlhelp" >&5 |
29fd3c0c VS |
4377 | no_cache=0 |
4378 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
4379 | if test "${enable_mshtmlhelp+set}" = set; then | |
4380 | enableval="$enable_mshtmlhelp" | |
4381 | ||
4382 | if test "$enableval" = yes; then | |
4383 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
4384 | else | |
4385 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
4386 | fi | |
4387 | ||
4388 | else | |
4389 | ||
4390 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` | |
4391 | if test "x$LINE" != x ; then | |
4392 | eval "DEFAULT_$LINE" | |
4393 | else | |
4394 | no_cache=1 | |
4395 | fi | |
4396 | ||
4397 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
4398 | ||
4399 | fi | |
4400 | ||
4401 | ||
4402 | eval "$ac_cv_use_mshtmlhelp" | |
4403 | if test "$no_cache" != 1; then | |
4404 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
4405 | fi | |
4406 | ||
4407 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
4408 | echo "$ac_t""yes" 1>&6 | |
4409 | else | |
4410 | echo "$ac_t""no" 1>&6 | |
4411 | fi | |
4412 | ||
4413 | ||
3379ed37 | 4414 | echo $ac_n "checking for --enable-html""... $ac_c" 1>&6 |
ab252f7b | 4415 | echo "configure:4416: checking for --enable-html" >&5 |
3379ed37 VZ |
4416 | no_cache=0 |
4417 | # Check whether --enable-html or --disable-html was given. | |
4418 | if test "${enable_html+set}" = set; then | |
4419 | enableval="$enable_html" | |
4420 | ||
4421 | if test "$enableval" = yes; then | |
4422 | ac_cv_use_html='wxUSE_HTML=yes' | |
4423 | else | |
4424 | ac_cv_use_html='wxUSE_HTML=no' | |
4425 | fi | |
4426 | ||
4427 | else | |
4428 | ||
4429 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
4430 | if test "x$LINE" != x ; then | |
4431 | eval "DEFAULT_$LINE" | |
4432 | else | |
4433 | no_cache=1 | |
4434 | fi | |
4435 | ||
4436 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
4437 | ||
4438 | fi | |
4439 | ||
4440 | ||
4441 | eval "$ac_cv_use_html" | |
4442 | if test "$no_cache" != 1; then | |
4443 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
4444 | fi | |
4445 | ||
4446 | if test "$wxUSE_HTML" = yes; then | |
4447 | echo "$ac_t""yes" 1>&6 | |
4448 | else | |
4449 | echo "$ac_t""no" 1>&6 | |
4450 | fi | |
4451 | ||
4452 | ||
4453 | echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6 | |
ab252f7b | 4454 | echo "configure:4455: checking for --enable-htmlhelp" >&5 |
3379ed37 VZ |
4455 | no_cache=0 |
4456 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
4457 | if test "${enable_htmlhelp+set}" = set; then | |
4458 | enableval="$enable_htmlhelp" | |
4459 | ||
4460 | if test "$enableval" = yes; then | |
4461 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
4462 | else | |
4463 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
4464 | fi | |
4465 | ||
4466 | else | |
4467 | ||
4468 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` | |
4469 | if test "x$LINE" != x ; then | |
4470 | eval "DEFAULT_$LINE" | |
4471 | else | |
4472 | no_cache=1 | |
4473 | fi | |
4474 | ||
4475 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
4476 | ||
4477 | fi | |
4478 | ||
4479 | ||
4480 | eval "$ac_cv_use_htmlhelp" | |
4481 | if test "$no_cache" != 1; then | |
4482 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
4483 | fi | |
4484 | ||
4485 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
4486 | echo "$ac_t""yes" 1>&6 | |
4487 | else | |
4488 | echo "$ac_t""no" 1>&6 | |
4489 | fi | |
4490 | ||
4491 | ||
698dcdb6 | 4492 | echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6 |
ab252f7b | 4493 | echo "configure:4494: checking for --enable-constraints" >&5 |
10f2d63a VZ |
4494 | no_cache=0 |
4495 | # Check whether --enable-constraints or --disable-constraints was given. | |
4496 | if test "${enable_constraints+set}" = set; then | |
4497 | enableval="$enable_constraints" | |
698dcdb6 | 4498 | |
10f2d63a VZ |
4499 | if test "$enableval" = yes; then |
4500 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
4501 | else | |
4502 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
4503 | fi | |
698dcdb6 | 4504 | |
10f2d63a | 4505 | else |
698dcdb6 | 4506 | |
10f2d63a VZ |
4507 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` |
4508 | if test "x$LINE" != x ; then | |
4509 | eval "DEFAULT_$LINE" | |
4510 | else | |
4511 | no_cache=1 | |
4512 | fi | |
4513 | ||
4514 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
698dcdb6 VZ |
4515 | |
4516 | fi | |
10f2d63a VZ |
4517 | |
4518 | ||
4519 | eval "$ac_cv_use_constraints" | |
4520 | if test "$no_cache" != 1; then | |
4521 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
4522 | fi | |
4523 | ||
4524 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
698dcdb6 | 4525 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4526 | else |
698dcdb6 | 4527 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4528 | fi |
698dcdb6 | 4529 | |
10f2d63a | 4530 | |
698dcdb6 | 4531 | echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6 |
ab252f7b | 4532 | echo "configure:4533: checking for --enable-printarch" >&5 |
10f2d63a VZ |
4533 | no_cache=0 |
4534 | # Check whether --enable-printarch or --disable-printarch was given. | |
4535 | if test "${enable_printarch+set}" = set; then | |
4536 | enableval="$enable_printarch" | |
698dcdb6 | 4537 | |
10f2d63a VZ |
4538 | if test "$enableval" = yes; then |
4539 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
4540 | else | |
4541 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
4542 | fi | |
698dcdb6 | 4543 | |
10f2d63a | 4544 | else |
698dcdb6 | 4545 | |
10f2d63a VZ |
4546 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` |
4547 | if test "x$LINE" != x ; then | |
4548 | eval "DEFAULT_$LINE" | |
4549 | else | |
4550 | no_cache=1 | |
4551 | fi | |
4552 | ||
4553 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
698dcdb6 VZ |
4554 | |
4555 | fi | |
10f2d63a VZ |
4556 | |
4557 | ||
4558 | eval "$ac_cv_use_printarch" | |
4559 | if test "$no_cache" != 1; then | |
4560 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
4561 | fi | |
4562 | ||
4563 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
698dcdb6 | 4564 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4565 | else |
698dcdb6 | 4566 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4567 | fi |
698dcdb6 | 4568 | |
10f2d63a | 4569 | |
698dcdb6 | 4570 | echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6 |
ab252f7b | 4571 | echo "configure:4572: checking for --enable-mdi" >&5 |
10f2d63a VZ |
4572 | no_cache=0 |
4573 | # Check whether --enable-mdi or --disable-mdi was given. | |
4574 | if test "${enable_mdi+set}" = set; then | |
4575 | enableval="$enable_mdi" | |
698dcdb6 | 4576 | |
10f2d63a VZ |
4577 | if test "$enableval" = yes; then |
4578 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
4579 | else | |
4580 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
4581 | fi | |
698dcdb6 | 4582 | |
10f2d63a | 4583 | else |
698dcdb6 | 4584 | |
10f2d63a VZ |
4585 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` |
4586 | if test "x$LINE" != x ; then | |
4587 | eval "DEFAULT_$LINE" | |
4588 | else | |
4589 | no_cache=1 | |
4590 | fi | |
4591 | ||
4592 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
698dcdb6 VZ |
4593 | |
4594 | fi | |
10f2d63a VZ |
4595 | |
4596 | ||
4597 | eval "$ac_cv_use_mdi" | |
4598 | if test "$no_cache" != 1; then | |
4599 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
4600 | fi | |
4601 | ||
4602 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
698dcdb6 | 4603 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4604 | else |
698dcdb6 | 4605 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4606 | fi |
698dcdb6 VZ |
4607 | |
4608 | ||
1e6feb95 | 4609 | echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6 |
ab252f7b | 4610 | echo "configure:4611: checking for --enable-loggui" >&5 |
1e6feb95 VZ |
4611 | no_cache=0 |
4612 | # Check whether --enable-loggui or --disable-loggui was given. | |
4613 | if test "${enable_loggui+set}" = set; then | |
4614 | enableval="$enable_loggui" | |
4615 | ||
4616 | if test "$enableval" = yes; then | |
4617 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
4618 | else | |
4619 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
4620 | fi | |
4621 | ||
4622 | else | |
4623 | ||
4624 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
4625 | if test "x$LINE" != x ; then | |
4626 | eval "DEFAULT_$LINE" | |
4627 | else | |
4628 | no_cache=1 | |
4629 | fi | |
4630 | ||
4631 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
4632 | ||
4633 | fi | |
4634 | ||
4635 | ||
4636 | eval "$ac_cv_use_loggui" | |
4637 | if test "$no_cache" != 1; then | |
4638 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
4639 | fi | |
4640 | ||
4641 | if test "$wxUSE_LOGGUI" = yes; then | |
4642 | echo "$ac_t""yes" 1>&6 | |
4643 | else | |
4644 | echo "$ac_t""no" 1>&6 | |
4645 | fi | |
4646 | ||
4647 | ||
4648 | echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6 | |
ab252f7b | 4649 | echo "configure:4650: checking for --enable-logwin" >&5 |
1e6feb95 VZ |
4650 | no_cache=0 |
4651 | # Check whether --enable-logwin or --disable-logwin was given. | |
4652 | if test "${enable_logwin+set}" = set; then | |
4653 | enableval="$enable_logwin" | |
4654 | ||
4655 | if test "$enableval" = yes; then | |
4656 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
4657 | else | |
4658 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
4659 | fi | |
4660 | ||
4661 | else | |
4662 | ||
4663 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` | |
4664 | if test "x$LINE" != x ; then | |
4665 | eval "DEFAULT_$LINE" | |
4666 | else | |
4667 | no_cache=1 | |
4668 | fi | |
4669 | ||
4670 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
4671 | ||
4672 | fi | |
4673 | ||
4674 | ||
4675 | eval "$ac_cv_use_logwin" | |
4676 | if test "$no_cache" != 1; then | |
4677 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
4678 | fi | |
4679 | ||
4680 | if test "$wxUSE_LOGWINDOW" = yes; then | |
4681 | echo "$ac_t""yes" 1>&6 | |
4682 | else | |
4683 | echo "$ac_t""no" 1>&6 | |
4684 | fi | |
4685 | ||
4686 | ||
10f2d63a | 4687 | |
698dcdb6 | 4688 | echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6 |
ab252f7b | 4689 | echo "configure:4690: checking for --enable-postscript" >&5 |
10f2d63a VZ |
4690 | no_cache=0 |
4691 | # Check whether --enable-postscript or --disable-postscript was given. | |
4692 | if test "${enable_postscript+set}" = set; then | |
4693 | enableval="$enable_postscript" | |
698dcdb6 | 4694 | |
10f2d63a VZ |
4695 | if test "$enableval" = yes; then |
4696 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
4697 | else | |
4698 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
4699 | fi | |
698dcdb6 | 4700 | |
10f2d63a | 4701 | else |
698dcdb6 | 4702 | |
10f2d63a VZ |
4703 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` |
4704 | if test "x$LINE" != x ; then | |
4705 | eval "DEFAULT_$LINE" | |
4706 | else | |
4707 | no_cache=1 | |
4708 | fi | |
4709 | ||
4710 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
698dcdb6 VZ |
4711 | |
4712 | fi | |
10f2d63a VZ |
4713 | |
4714 | ||
4715 | eval "$ac_cv_use_postscript" | |
4716 | if test "$no_cache" != 1; then | |
4717 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
4718 | fi | |
4719 | ||
4720 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
698dcdb6 | 4721 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4722 | else |
698dcdb6 | 4723 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4724 | fi |
698dcdb6 VZ |
4725 | |
4726 | ||
4727 | ||
10f2d63a | 4728 | |
1e6feb95 | 4729 | |
698dcdb6 | 4730 | echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6 |
ab252f7b | 4731 | echo "configure:4732: checking for --enable-prologio" >&5 |
10f2d63a VZ |
4732 | no_cache=0 |
4733 | # Check whether --enable-prologio or --disable-prologio was given. | |
4734 | if test "${enable_prologio+set}" = set; then | |
4735 | enableval="$enable_prologio" | |
698dcdb6 | 4736 | |
10f2d63a VZ |
4737 | if test "$enableval" = yes; then |
4738 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
4739 | else | |
4740 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
4741 | fi | |
698dcdb6 | 4742 | |
10f2d63a | 4743 | else |
698dcdb6 | 4744 | |
10f2d63a VZ |
4745 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` |
4746 | if test "x$LINE" != x ; then | |
4747 | eval "DEFAULT_$LINE" | |
4748 | else | |
4749 | no_cache=1 | |
4750 | fi | |
4751 | ||
4752 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
698dcdb6 VZ |
4753 | |
4754 | fi | |
10f2d63a VZ |
4755 | |
4756 | ||
4757 | eval "$ac_cv_use_prologio" | |
4758 | if test "$no_cache" != 1; then | |
4759 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
4760 | fi | |
4761 | ||
4762 | if test "$wxUSE_PROLOGIO" = yes; then | |
698dcdb6 | 4763 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4764 | else |
698dcdb6 | 4765 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4766 | fi |
698dcdb6 | 4767 | |
10f2d63a | 4768 | |
698dcdb6 | 4769 | echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6 |
ab252f7b | 4770 | echo "configure:4771: checking for --enable-resources" >&5 |
10f2d63a VZ |
4771 | no_cache=0 |
4772 | # Check whether --enable-resources or --disable-resources was given. | |
4773 | if test "${enable_resources+set}" = set; then | |
4774 | enableval="$enable_resources" | |
698dcdb6 | 4775 | |
10f2d63a VZ |
4776 | if test "$enableval" = yes; then |
4777 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
4778 | else | |
4779 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
4780 | fi | |
698dcdb6 | 4781 | |
10f2d63a | 4782 | else |
698dcdb6 | 4783 | |
10f2d63a VZ |
4784 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` |
4785 | if test "x$LINE" != x ; then | |
4786 | eval "DEFAULT_$LINE" | |
4787 | else | |
4788 | no_cache=1 | |
4789 | fi | |
4790 | ||
4791 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
698dcdb6 VZ |
4792 | |
4793 | fi | |
10f2d63a VZ |
4794 | |
4795 | ||
4796 | eval "$ac_cv_use_resources" | |
4797 | if test "$no_cache" != 1; then | |
4798 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
4799 | fi | |
4800 | ||
4801 | if test "$wxUSE_RESOURCES" = yes; then | |
698dcdb6 | 4802 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4803 | else |
698dcdb6 | 4804 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4805 | fi |
698dcdb6 | 4806 | |
10f2d63a | 4807 | |
698dcdb6 VZ |
4808 | |
4809 | echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6 | |
ab252f7b | 4810 | echo "configure:4811: checking for --enable-xresources" >&5 |
10f2d63a VZ |
4811 | no_cache=0 |
4812 | # Check whether --enable-xresources or --disable-xresources was given. | |
4813 | if test "${enable_xresources+set}" = set; then | |
4814 | enableval="$enable_xresources" | |
698dcdb6 | 4815 | |
10f2d63a VZ |
4816 | if test "$enableval" = yes; then |
4817 | ac_cv_use_xresources='wxUSE_X_RESOURCES=yes' | |
4818 | else | |
4819 | ac_cv_use_xresources='wxUSE_X_RESOURCES=no' | |
4820 | fi | |
698dcdb6 | 4821 | |
10f2d63a | 4822 | else |
698dcdb6 | 4823 | |
10f2d63a VZ |
4824 | LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}` |
4825 | if test "x$LINE" != x ; then | |
4826 | eval "DEFAULT_$LINE" | |
4827 | else | |
4828 | no_cache=1 | |
4829 | fi | |
4830 | ||
4831 | ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES | |
698dcdb6 VZ |
4832 | |
4833 | fi | |
10f2d63a VZ |
4834 | |
4835 | ||
4836 | eval "$ac_cv_use_xresources" | |
4837 | if test "$no_cache" != 1; then | |
4838 | echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp | |
4839 | fi | |
4840 | ||
4841 | if test "$wxUSE_X_RESOURCES" = yes; then | |
698dcdb6 | 4842 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4843 | else |
698dcdb6 | 4844 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4845 | fi |
698dcdb6 VZ |
4846 | |
4847 | ||
10f2d63a | 4848 | |
698dcdb6 VZ |
4849 | |
4850 | echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6 | |
ab252f7b | 4851 | echo "configure:4852: checking for --enable-clipboard" >&5 |
10f2d63a VZ |
4852 | no_cache=0 |
4853 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
4854 | if test "${enable_clipboard+set}" = set; then | |
4855 | enableval="$enable_clipboard" | |
698dcdb6 | 4856 | |
10f2d63a VZ |
4857 | if test "$enableval" = yes; then |
4858 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
4859 | else | |
4860 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
4861 | fi | |
698dcdb6 | 4862 | |
10f2d63a | 4863 | else |
698dcdb6 | 4864 | |
10f2d63a VZ |
4865 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` |
4866 | if test "x$LINE" != x ; then | |
4867 | eval "DEFAULT_$LINE" | |
4868 | else | |
4869 | no_cache=1 | |
4870 | fi | |
4871 | ||
4872 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
698dcdb6 VZ |
4873 | |
4874 | fi | |
10f2d63a VZ |
4875 | |
4876 | ||
4877 | eval "$ac_cv_use_clipboard" | |
4878 | if test "$no_cache" != 1; then | |
4879 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
4880 | fi | |
4881 | ||
4882 | if test "$wxUSE_CLIPBOARD" = yes; then | |
698dcdb6 | 4883 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4884 | else |
698dcdb6 | 4885 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4886 | fi |
698dcdb6 | 4887 | |
10f2d63a | 4888 | |
698dcdb6 | 4889 | echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6 |
ab252f7b | 4890 | echo "configure:4891: checking for --enable-dnd" >&5 |
10f2d63a VZ |
4891 | no_cache=0 |
4892 | # Check whether --enable-dnd or --disable-dnd was given. | |
4893 | if test "${enable_dnd+set}" = set; then | |
4894 | enableval="$enable_dnd" | |
698dcdb6 | 4895 | |
10f2d63a VZ |
4896 | if test "$enableval" = yes; then |
4897 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
4898 | else | |
4899 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
4900 | fi | |
698dcdb6 | 4901 | |
10f2d63a | 4902 | else |
698dcdb6 | 4903 | |
10f2d63a VZ |
4904 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` |
4905 | if test "x$LINE" != x ; then | |
4906 | eval "DEFAULT_$LINE" | |
4907 | else | |
4908 | no_cache=1 | |
4909 | fi | |
4910 | ||
4911 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
698dcdb6 VZ |
4912 | |
4913 | fi | |
10f2d63a VZ |
4914 | |
4915 | ||
4916 | eval "$ac_cv_use_dnd" | |
4917 | if test "$no_cache" != 1; then | |
4918 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
4919 | fi | |
4920 | ||
4921 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
698dcdb6 | 4922 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4923 | else |
698dcdb6 | 4924 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4925 | fi |
698dcdb6 | 4926 | |
10f2d63a | 4927 | |
698dcdb6 | 4928 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
ab252f7b | 4929 | echo "configure:4930: checking for --enable-metafile" >&5 |
b64f0a5f RL |
4930 | no_cache=0 |
4931 | # Check whether --enable-metafile or --disable-metafile was given. | |
4932 | if test "${enable_metafile+set}" = set; then | |
4933 | enableval="$enable_metafile" | |
698dcdb6 | 4934 | |
b64f0a5f RL |
4935 | if test "$enableval" = yes; then |
4936 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
4937 | else | |
4938 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
4939 | fi | |
698dcdb6 | 4940 | |
b64f0a5f | 4941 | else |
698dcdb6 | 4942 | |
b64f0a5f RL |
4943 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
4944 | if test "x$LINE" != x ; then | |
4945 | eval "DEFAULT_$LINE" | |
4946 | else | |
4947 | no_cache=1 | |
4948 | fi | |
4949 | ||
4950 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
698dcdb6 VZ |
4951 | |
4952 | fi | |
b64f0a5f RL |
4953 | |
4954 | ||
4955 | eval "$ac_cv_use_metafile" | |
4956 | if test "$no_cache" != 1; then | |
4957 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
4958 | fi | |
4959 | ||
4960 | if test "$wxUSE_METAFILE" = yes; then | |
698dcdb6 | 4961 | echo "$ac_t""yes" 1>&6 |
b64f0a5f | 4962 | else |
698dcdb6 | 4963 | echo "$ac_t""no" 1>&6 |
b64f0a5f | 4964 | fi |
698dcdb6 VZ |
4965 | |
4966 | ||
10f2d63a | 4967 | |
24176f2c | 4968 | echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6 |
ab252f7b | 4969 | echo "configure:4970: checking for --enable-treelayout" >&5 |
10f2d63a | 4970 | no_cache=0 |
24176f2c GD |
4971 | # Check whether --enable-treelayout or --disable-treelayout was given. |
4972 | if test "${enable_treelayout+set}" = set; then | |
4973 | enableval="$enable_treelayout" | |
698dcdb6 | 4974 | |
10f2d63a | 4975 | if test "$enableval" = yes; then |
24176f2c | 4976 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes' |
10f2d63a | 4977 | else |
24176f2c | 4978 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=no' |
10f2d63a | 4979 | fi |
698dcdb6 | 4980 | |
10f2d63a | 4981 | else |
698dcdb6 | 4982 | |
24176f2c | 4983 | LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}` |
10f2d63a VZ |
4984 | if test "x$LINE" != x ; then |
4985 | eval "DEFAULT_$LINE" | |
4986 | else | |
4987 | no_cache=1 | |
4988 | fi | |
4989 | ||
24176f2c | 4990 | ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT |
698dcdb6 VZ |
4991 | |
4992 | fi | |
10f2d63a VZ |
4993 | |
4994 | ||
24176f2c | 4995 | eval "$ac_cv_use_treelayout" |
10f2d63a | 4996 | if test "$no_cache" != 1; then |
24176f2c | 4997 | echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4998 | fi |
4999 | ||
24176f2c | 5000 | if test "$wxUSE_TREELAYOUT" = yes; then |
698dcdb6 | 5001 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5002 | else |
698dcdb6 | 5003 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5004 | fi |
698dcdb6 | 5005 | |
10f2d63a | 5006 | |
698dcdb6 VZ |
5007 | |
5008 | ||
5009 | echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6 | |
ab252f7b | 5010 | echo "configure:5011: checking for --enable-controls" >&5 |
10f2d63a VZ |
5011 | no_cache=0 |
5012 | # Check whether --enable-controls or --disable-controls was given. | |
5013 | if test "${enable_controls+set}" = set; then | |
5014 | enableval="$enable_controls" | |
698dcdb6 | 5015 | |
10f2d63a VZ |
5016 | if test "$enableval" = yes; then |
5017 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
5018 | else | |
5019 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
5020 | fi | |
698dcdb6 | 5021 | |
10f2d63a | 5022 | else |
698dcdb6 | 5023 | |
10f2d63a VZ |
5024 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` |
5025 | if test "x$LINE" != x ; then | |
5026 | eval "DEFAULT_$LINE" | |
5027 | else | |
5028 | no_cache=1 | |
5029 | fi | |
5030 | ||
5031 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
698dcdb6 VZ |
5032 | |
5033 | fi | |
10f2d63a VZ |
5034 | |
5035 | ||
5036 | eval "$ac_cv_use_controls" | |
5037 | if test "$no_cache" != 1; then | |
5038 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
5039 | fi | |
5040 | ||
5041 | if test "$wxUSE_CONTROLS" = yes; then | |
698dcdb6 | 5042 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5043 | else |
698dcdb6 | 5044 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5045 | fi |
698dcdb6 | 5046 | |
10f2d63a VZ |
5047 | |
5048 | if test "$wxUSE_CONTROLS" = "yes"; then | |
5049 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 VZ |
5050 | DEFAULT_wxUSE_BMPBUTTON=yes |
5051 | DEFAULT_wxUSE_BUTTON=yes | |
5052 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5053 | DEFAULT_wxUSE_CARET=yes |
5054 | DEFAULT_wxUSE_COMBOBOX=yes | |
10f2d63a VZ |
5055 | DEFAULT_wxUSE_CHECKBOX=yes |
5056 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
5057 | DEFAULT_wxUSE_CHOICE=yes | |
5058 | DEFAULT_wxUSE_GAUGE=yes | |
5059 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 5060 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
5061 | DEFAULT_wxUSE_IMAGLIST=yes |
5062 | DEFAULT_wxUSE_LISTBOX=yes | |
5063 | DEFAULT_wxUSE_LISTCTRL=yes | |
5064 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 5065 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
5066 | DEFAULT_wxUSE_RADIOBOX=yes |
5067 | DEFAULT_wxUSE_RADIOBTN=yes | |
5068 | DEFAULT_wxUSE_SASH=yes | |
5069 | DEFAULT_wxUSE_SCROLLBAR=yes | |
5070 | DEFAULT_wxUSE_SLIDER=yes | |
5071 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 5072 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
5073 | DEFAULT_wxUSE_SPLITTER=yes |
5074 | DEFAULT_wxUSE_STATBMP=yes | |
5075 | DEFAULT_wxUSE_STATBOX=yes | |
5076 | DEFAULT_wxUSE_STATLINE=yes | |
5077 | DEFAULT_wxUSE_STATUSBAR=yes | |
5078 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
1db8dc4a | 5079 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 5080 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
5081 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
5082 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
5083 | DEFAULT_wxUSE_TOOLTIPS=yes |
5084 | DEFAULT_wxUSE_TREECTRL=yes | |
9f41d601 | 5085 | DEFAULT_wxUSE_POPUPWIN=yes |
10f2d63a VZ |
5086 | elif test "$wxUSE_CONTROLS" = "no"; then |
5087 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 VZ |
5088 | DEFAULT_wxUSE_BMPBUTTON=no |
5089 | DEFAULT_wxUSE_BUTTON=no | |
5090 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5091 | DEFAULT_wxUSE_CARET=no |
5092 | DEFAULT_wxUSE_COMBOBOX=no | |
10f2d63a VZ |
5093 | DEFAULT_wxUSE_CHECKBOX=no |
5094 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
5095 | DEFAULT_wxUSE_CHOICE=no | |
5096 | DEFAULT_wxUSE_GAUGE=no | |
5097 | DEFAULT_wxUSE_GRID=no | |
5098 | DEFAULT_wxUSE_NEW_GRID=no | |
5099 | DEFAULT_wxUSE_IMAGLIST=no | |
5100 | DEFAULT_wxUSE_LISTBOX=no | |
5101 | DEFAULT_wxUSE_LISTCTRL=no | |
5102 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 5103 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
5104 | DEFAULT_wxUSE_RADIOBOX=no |
5105 | DEFAULT_wxUSE_RADIOBTN=no | |
5106 | DEFAULT_wxUSE_SASH=no | |
5107 | DEFAULT_wxUSE_SCROLLBAR=no | |
5108 | DEFAULT_wxUSE_SLIDER=no | |
5109 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 5110 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
5111 | DEFAULT_wxUSE_SPLITTER=no |
5112 | DEFAULT_wxUSE_STATBMP=no | |
5113 | DEFAULT_wxUSE_STATBOX=no | |
5114 | DEFAULT_wxUSE_STATLINE=no | |
5115 | DEFAULT_wxUSE_STATUSBAR=no | |
5116 | DEFAULT_wxUSE_TAB_DIALOG=no | |
1db8dc4a | 5117 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 5118 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
5119 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
5120 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
5121 | DEFAULT_wxUSE_TOOLTIPS=no |
5122 | DEFAULT_wxUSE_TREECTRL=no | |
9f41d601 | 5123 | DEFAULT_wxUSE_POPUPWIN=no |
10f2d63a VZ |
5124 | fi |
5125 | ||
698dcdb6 VZ |
5126 | |
5127 | echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6 | |
ab252f7b | 5128 | echo "configure:5129: checking for --enable-accel" >&5 |
10f2d63a VZ |
5129 | no_cache=0 |
5130 | # Check whether --enable-accel or --disable-accel was given. | |
5131 | if test "${enable_accel+set}" = set; then | |
5132 | enableval="$enable_accel" | |
698dcdb6 | 5133 | |
10f2d63a VZ |
5134 | if test "$enableval" = yes; then |
5135 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
5136 | else | |
5137 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
5138 | fi | |
698dcdb6 | 5139 | |
10f2d63a | 5140 | else |
698dcdb6 | 5141 | |
10f2d63a VZ |
5142 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` |
5143 | if test "x$LINE" != x ; then | |
5144 | eval "DEFAULT_$LINE" | |
5145 | else | |
5146 | no_cache=1 | |
5147 | fi | |
5148 | ||
5149 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
698dcdb6 VZ |
5150 | |
5151 | fi | |
10f2d63a VZ |
5152 | |
5153 | ||
5154 | eval "$ac_cv_use_accel" | |
5155 | if test "$no_cache" != 1; then | |
5156 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
5157 | fi | |
5158 | ||
5159 | if test "$wxUSE_ACCEL" = yes; then | |
698dcdb6 | 5160 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5161 | else |
698dcdb6 | 5162 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5163 | fi |
698dcdb6 | 5164 | |
10f2d63a | 5165 | |
1e6feb95 | 5166 | echo $ac_n "checking for --enable-button""... $ac_c" 1>&6 |
ab252f7b | 5167 | echo "configure:5168: checking for --enable-button" >&5 |
10f2d63a | 5168 | no_cache=0 |
1e6feb95 VZ |
5169 | # Check whether --enable-button or --disable-button was given. |
5170 | if test "${enable_button+set}" = set; then | |
5171 | enableval="$enable_button" | |
698dcdb6 | 5172 | |
10f2d63a | 5173 | if test "$enableval" = yes; then |
1e6feb95 | 5174 | ac_cv_use_button='wxUSE_BUTTON=yes' |
10f2d63a | 5175 | else |
1e6feb95 | 5176 | ac_cv_use_button='wxUSE_BUTTON=no' |
10f2d63a | 5177 | fi |
698dcdb6 | 5178 | |
10f2d63a | 5179 | else |
698dcdb6 | 5180 | |
1e6feb95 | 5181 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` |
10f2d63a VZ |
5182 | if test "x$LINE" != x ; then |
5183 | eval "DEFAULT_$LINE" | |
5184 | else | |
5185 | no_cache=1 | |
5186 | fi | |
5187 | ||
1e6feb95 | 5188 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON |
698dcdb6 VZ |
5189 | |
5190 | fi | |
10f2d63a VZ |
5191 | |
5192 | ||
1e6feb95 | 5193 | eval "$ac_cv_use_button" |
10f2d63a | 5194 | if test "$no_cache" != 1; then |
1e6feb95 | 5195 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5196 | fi |
5197 | ||
1e6feb95 | 5198 | if test "$wxUSE_BUTTON" = yes; then |
698dcdb6 | 5199 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5200 | else |
698dcdb6 | 5201 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5202 | fi |
698dcdb6 | 5203 | |
10f2d63a | 5204 | |
698dcdb6 | 5205 | echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6 |
ab252f7b | 5206 | echo "configure:5207: checking for --enable-bmpbutton" >&5 |
10f2d63a VZ |
5207 | no_cache=0 |
5208 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
5209 | if test "${enable_bmpbutton+set}" = set; then | |
5210 | enableval="$enable_bmpbutton" | |
698dcdb6 | 5211 | |
10f2d63a VZ |
5212 | if test "$enableval" = yes; then |
5213 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
5214 | else | |
5215 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
5216 | fi | |
698dcdb6 | 5217 | |
10f2d63a | 5218 | else |
698dcdb6 | 5219 | |
10f2d63a VZ |
5220 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` |
5221 | if test "x$LINE" != x ; then | |
5222 | eval "DEFAULT_$LINE" | |
5223 | else | |
5224 | no_cache=1 | |
5225 | fi | |
5226 | ||
5227 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
698dcdb6 VZ |
5228 | |
5229 | fi | |
10f2d63a VZ |
5230 | |
5231 | ||
5232 | eval "$ac_cv_use_bmpbutton" | |
5233 | if test "$no_cache" != 1; then | |
5234 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
5235 | fi | |
5236 | ||
5237 | if test "$wxUSE_BMPBUTTON" = yes; then | |
698dcdb6 | 5238 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5239 | else |
698dcdb6 | 5240 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5241 | fi |
698dcdb6 | 5242 | |
10f2d63a | 5243 | |
1e6feb95 | 5244 | echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6 |
ab252f7b | 5245 | echo "configure:5246: checking for --enable-calendar" >&5 |
1e6feb95 VZ |
5246 | no_cache=0 |
5247 | # Check whether --enable-calendar or --disable-calendar was given. | |
5248 | if test "${enable_calendar+set}" = set; then | |
5249 | enableval="$enable_calendar" | |
5250 | ||
5251 | if test "$enableval" = yes; then | |
5252 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
5253 | else | |
5254 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
5255 | fi | |
5256 | ||
5257 | else | |
5258 | ||
5259 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
5260 | if test "x$LINE" != x ; then | |
5261 | eval "DEFAULT_$LINE" | |
5262 | else | |
5263 | no_cache=1 | |
5264 | fi | |
5265 | ||
5266 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
5267 | ||
5268 | fi | |
5269 | ||
5270 | ||
5271 | eval "$ac_cv_use_calendar" | |
5272 | if test "$no_cache" != 1; then | |
5273 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
5274 | fi | |
5275 | ||
5276 | if test "$wxUSE_CALCTRL" = yes; then | |
5277 | echo "$ac_t""yes" 1>&6 | |
5278 | else | |
5279 | echo "$ac_t""no" 1>&6 | |
5280 | fi | |
5281 | ||
5282 | ||
5283 | echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6 | |
ab252f7b | 5284 | echo "configure:5285: checking for --enable-caret" >&5 |
1e6feb95 VZ |
5285 | no_cache=0 |
5286 | # Check whether --enable-caret or --disable-caret was given. | |
5287 | if test "${enable_caret+set}" = set; then | |
5288 | enableval="$enable_caret" | |
5289 | ||
5290 | if test "$enableval" = yes; then | |
5291 | ac_cv_use_caret='wxUSE_CARET=yes' | |
5292 | else | |
5293 | ac_cv_use_caret='wxUSE_CARET=no' | |
5294 | fi | |
5295 | ||
5296 | else | |
5297 | ||
5298 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
5299 | if test "x$LINE" != x ; then | |
5300 | eval "DEFAULT_$LINE" | |
5301 | else | |
5302 | no_cache=1 | |
5303 | fi | |
5304 | ||
5305 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
5306 | ||
5307 | fi | |
5308 | ||
5309 | ||
5310 | eval "$ac_cv_use_caret" | |
5311 | if test "$no_cache" != 1; then | |
5312 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
5313 | fi | |
5314 | ||
5315 | if test "$wxUSE_CARET" = yes; then | |
5316 | echo "$ac_t""yes" 1>&6 | |
5317 | else | |
5318 | echo "$ac_t""no" 1>&6 | |
5319 | fi | |
5320 | ||
5321 | ||
698dcdb6 | 5322 | echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6 |
ab252f7b | 5323 | echo "configure:5324: checking for --enable-checkbox" >&5 |
10f2d63a VZ |
5324 | no_cache=0 |
5325 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
5326 | if test "${enable_checkbox+set}" = set; then | |
5327 | enableval="$enable_checkbox" | |
698dcdb6 | 5328 | |
10f2d63a VZ |
5329 | if test "$enableval" = yes; then |
5330 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
5331 | else | |
5332 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
5333 | fi | |
698dcdb6 | 5334 | |
10f2d63a | 5335 | else |
698dcdb6 | 5336 | |
10f2d63a VZ |
5337 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` |
5338 | if test "x$LINE" != x ; then | |
5339 | eval "DEFAULT_$LINE" | |
5340 | else | |
5341 | no_cache=1 | |
5342 | fi | |
5343 | ||
5344 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
698dcdb6 VZ |
5345 | |
5346 | fi | |
10f2d63a VZ |
5347 | |
5348 | ||
5349 | eval "$ac_cv_use_checkbox" | |
5350 | if test "$no_cache" != 1; then | |
5351 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
5352 | fi | |
5353 | ||
5354 | if test "$wxUSE_CHECKBOX" = yes; then | |
698dcdb6 | 5355 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5356 | else |
698dcdb6 | 5357 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5358 | fi |
698dcdb6 | 5359 | |
10f2d63a | 5360 | |
698dcdb6 | 5361 | echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6 |
ab252f7b | 5362 | echo "configure:5363: checking for --enable-checklst" >&5 |
10f2d63a VZ |
5363 | no_cache=0 |
5364 | # Check whether --enable-checklst or --disable-checklst was given. | |
5365 | if test "${enable_checklst+set}" = set; then | |
5366 | enableval="$enable_checklst" | |
698dcdb6 | 5367 | |
10f2d63a VZ |
5368 | if test "$enableval" = yes; then |
5369 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
5370 | else | |
5371 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
5372 | fi | |
698dcdb6 | 5373 | |
10f2d63a | 5374 | else |
698dcdb6 | 5375 | |
10f2d63a VZ |
5376 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` |
5377 | if test "x$LINE" != x ; then | |
5378 | eval "DEFAULT_$LINE" | |
5379 | else | |
5380 | no_cache=1 | |
5381 | fi | |
5382 | ||
5383 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
698dcdb6 VZ |
5384 | |
5385 | fi | |
10f2d63a VZ |
5386 | |
5387 | ||
5388 | eval "$ac_cv_use_checklst" | |
5389 | if test "$no_cache" != 1; then | |
5390 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
5391 | fi | |
5392 | ||
5393 | if test "$wxUSE_CHECKLST" = yes; then | |
698dcdb6 | 5394 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5395 | else |
698dcdb6 | 5396 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5397 | fi |
698dcdb6 | 5398 | |
10f2d63a | 5399 | |
698dcdb6 | 5400 | echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6 |
ab252f7b | 5401 | echo "configure:5402: checking for --enable-choice" >&5 |
10f2d63a VZ |
5402 | no_cache=0 |
5403 | # Check whether --enable-choice or --disable-choice was given. | |
5404 | if test "${enable_choice+set}" = set; then | |
5405 | enableval="$enable_choice" | |
698dcdb6 | 5406 | |
10f2d63a VZ |
5407 | if test "$enableval" = yes; then |
5408 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
5409 | else | |
5410 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
5411 | fi | |
698dcdb6 | 5412 | |
10f2d63a | 5413 | else |
698dcdb6 | 5414 | |
10f2d63a VZ |
5415 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` |
5416 | if test "x$LINE" != x ; then | |
5417 | eval "DEFAULT_$LINE" | |
5418 | else | |
5419 | no_cache=1 | |
5420 | fi | |
5421 | ||
5422 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
698dcdb6 VZ |
5423 | |
5424 | fi | |
10f2d63a VZ |
5425 | |
5426 | ||
5427 | eval "$ac_cv_use_choice" | |
5428 | if test "$no_cache" != 1; then | |
5429 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
5430 | fi | |
5431 | ||
5432 | if test "$wxUSE_CHOICE" = yes; then | |
698dcdb6 | 5433 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5434 | else |
698dcdb6 | 5435 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5436 | fi |
698dcdb6 | 5437 | |
10f2d63a | 5438 | |
698dcdb6 | 5439 | echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6 |
ab252f7b | 5440 | echo "configure:5441: checking for --enable-combobox" >&5 |
10f2d63a VZ |
5441 | no_cache=0 |
5442 | # Check whether --enable-combobox or --disable-combobox was given. | |
5443 | if test "${enable_combobox+set}" = set; then | |
5444 | enableval="$enable_combobox" | |
698dcdb6 | 5445 | |
10f2d63a VZ |
5446 | if test "$enableval" = yes; then |
5447 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
5448 | else | |
5449 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
5450 | fi | |
698dcdb6 | 5451 | |
10f2d63a | 5452 | else |
698dcdb6 | 5453 | |
10f2d63a VZ |
5454 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` |
5455 | if test "x$LINE" != x ; then | |
5456 | eval "DEFAULT_$LINE" | |
5457 | else | |
5458 | no_cache=1 | |
5459 | fi | |
5460 | ||
5461 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
698dcdb6 VZ |
5462 | |
5463 | fi | |
10f2d63a VZ |
5464 | |
5465 | ||
5466 | eval "$ac_cv_use_combobox" | |
5467 | if test "$no_cache" != 1; then | |
5468 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
5469 | fi | |
5470 | ||
5471 | if test "$wxUSE_COMBOBOX" = yes; then | |
698dcdb6 | 5472 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5473 | else |
698dcdb6 | 5474 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5475 | fi |
698dcdb6 | 5476 | |
10f2d63a | 5477 | |
698dcdb6 | 5478 | echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6 |
ab252f7b | 5479 | echo "configure:5480: checking for --enable-gauge" >&5 |
10f2d63a VZ |
5480 | no_cache=0 |
5481 | # Check whether --enable-gauge or --disable-gauge was given. | |
5482 | if test "${enable_gauge+set}" = set; then | |
5483 | enableval="$enable_gauge" | |
698dcdb6 | 5484 | |
10f2d63a VZ |
5485 | if test "$enableval" = yes; then |
5486 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
5487 | else | |
5488 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
5489 | fi | |
698dcdb6 | 5490 | |
10f2d63a | 5491 | else |
698dcdb6 | 5492 | |
10f2d63a VZ |
5493 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` |
5494 | if test "x$LINE" != x ; then | |
5495 | eval "DEFAULT_$LINE" | |
5496 | else | |
5497 | no_cache=1 | |
5498 | fi | |
5499 | ||
5500 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
698dcdb6 VZ |
5501 | |
5502 | fi | |
10f2d63a VZ |
5503 | |
5504 | ||
5505 | eval "$ac_cv_use_gauge" | |
5506 | if test "$no_cache" != 1; then | |
5507 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
5508 | fi | |
5509 | ||
5510 | if test "$wxUSE_GAUGE" = yes; then | |
698dcdb6 | 5511 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5512 | else |
698dcdb6 | 5513 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5514 | fi |
698dcdb6 | 5515 | |
10f2d63a | 5516 | |
698dcdb6 | 5517 | echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6 |
ab252f7b | 5518 | echo "configure:5519: checking for --enable-grid" >&5 |
10f2d63a VZ |
5519 | no_cache=0 |
5520 | # Check whether --enable-grid or --disable-grid was given. | |
5521 | if test "${enable_grid+set}" = set; then | |
5522 | enableval="$enable_grid" | |
698dcdb6 | 5523 | |
10f2d63a VZ |
5524 | if test "$enableval" = yes; then |
5525 | ac_cv_use_grid='wxUSE_GRID=yes' | |
5526 | else | |
5527 | ac_cv_use_grid='wxUSE_GRID=no' | |
5528 | fi | |
698dcdb6 | 5529 | |
10f2d63a | 5530 | else |
698dcdb6 | 5531 | |
10f2d63a VZ |
5532 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` |
5533 | if test "x$LINE" != x ; then | |
5534 | eval "DEFAULT_$LINE" | |
5535 | else | |
5536 | no_cache=1 | |
5537 | fi | |
5538 | ||
5539 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
698dcdb6 VZ |
5540 | |
5541 | fi | |
10f2d63a VZ |
5542 | |
5543 | ||
5544 | eval "$ac_cv_use_grid" | |
5545 | if test "$no_cache" != 1; then | |
5546 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
5547 | fi | |
5548 | ||
5549 | if test "$wxUSE_GRID" = yes; then | |
698dcdb6 | 5550 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5551 | else |
698dcdb6 | 5552 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5553 | fi |
698dcdb6 | 5554 | |
10f2d63a | 5555 | |
698dcdb6 | 5556 | echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6 |
ab252f7b | 5557 | echo "configure:5558: checking for --enable-newgrid" >&5 |
10f2d63a VZ |
5558 | no_cache=0 |
5559 | # Check whether --enable-newgrid or --disable-newgrid was given. | |
5560 | if test "${enable_newgrid+set}" = set; then | |
5561 | enableval="$enable_newgrid" | |
698dcdb6 | 5562 | |
10f2d63a VZ |
5563 | if test "$enableval" = yes; then |
5564 | ac_cv_use_newgrid='wxUSE_NEW_GRID=yes' | |
5565 | else | |
5566 | ac_cv_use_newgrid='wxUSE_NEW_GRID=no' | |
5567 | fi | |
698dcdb6 | 5568 | |
10f2d63a | 5569 | else |
698dcdb6 | 5570 | |
10f2d63a VZ |
5571 | LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}` |
5572 | if test "x$LINE" != x ; then | |
5573 | eval "DEFAULT_$LINE" | |
5574 | else | |
5575 | no_cache=1 | |
5576 | fi | |
5577 | ||
5578 | ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID | |
698dcdb6 VZ |
5579 | |
5580 | fi | |
10f2d63a VZ |
5581 | |
5582 | ||
5583 | eval "$ac_cv_use_newgrid" | |
5584 | if test "$no_cache" != 1; then | |
5585 | echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp | |
5586 | fi | |
5587 | ||
5588 | if test "$wxUSE_NEW_GRID" = yes; then | |
698dcdb6 | 5589 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5590 | else |
698dcdb6 | 5591 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5592 | fi |
698dcdb6 | 5593 | |
10f2d63a | 5594 | |
698dcdb6 | 5595 | echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6 |
ab252f7b | 5596 | echo "configure:5597: checking for --enable-imaglist" >&5 |
10f2d63a VZ |
5597 | no_cache=0 |
5598 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
5599 | if test "${enable_imaglist+set}" = set; then | |
5600 | enableval="$enable_imaglist" | |
698dcdb6 | 5601 | |
10f2d63a VZ |
5602 | if test "$enableval" = yes; then |
5603 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
5604 | else | |
5605 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
5606 | fi | |
698dcdb6 | 5607 | |
10f2d63a | 5608 | else |
698dcdb6 | 5609 | |
10f2d63a VZ |
5610 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` |
5611 | if test "x$LINE" != x ; then | |
5612 | eval "DEFAULT_$LINE" | |
5613 | else | |
5614 | no_cache=1 | |
5615 | fi | |
5616 | ||
5617 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
698dcdb6 VZ |
5618 | |
5619 | fi | |
10f2d63a VZ |
5620 | |
5621 | ||
5622 | eval "$ac_cv_use_imaglist" | |
5623 | if test "$no_cache" != 1; then | |
5624 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
5625 | fi | |
5626 | ||
5627 | if test "$wxUSE_IMAGLIST" = yes; then | |
698dcdb6 | 5628 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5629 | else |
698dcdb6 | 5630 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5631 | fi |
698dcdb6 | 5632 | |
10f2d63a | 5633 | |
698dcdb6 | 5634 | echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6 |
ab252f7b | 5635 | echo "configure:5636: checking for --enable-listbox" >&5 |
10f2d63a VZ |
5636 | no_cache=0 |
5637 | # Check whether --enable-listbox or --disable-listbox was given. | |
5638 | if test "${enable_listbox+set}" = set; then | |
5639 | enableval="$enable_listbox" | |
698dcdb6 | 5640 | |
10f2d63a VZ |
5641 | if test "$enableval" = yes; then |
5642 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
5643 | else | |
5644 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
5645 | fi | |
698dcdb6 | 5646 | |
10f2d63a | 5647 | else |
698dcdb6 | 5648 | |
10f2d63a VZ |
5649 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` |
5650 | if test "x$LINE" != x ; then | |
5651 | eval "DEFAULT_$LINE" | |
5652 | else | |
5653 | no_cache=1 | |
5654 | fi | |
5655 | ||
5656 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
698dcdb6 VZ |
5657 | |
5658 | fi | |
10f2d63a VZ |
5659 | |
5660 | ||
5661 | eval "$ac_cv_use_listbox" | |
5662 | if test "$no_cache" != 1; then | |
5663 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
5664 | fi | |
5665 | ||
5666 | if test "$wxUSE_LISTBOX" = yes; then | |
698dcdb6 | 5667 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5668 | else |
698dcdb6 | 5669 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5670 | fi |
698dcdb6 | 5671 | |
10f2d63a | 5672 | |
698dcdb6 | 5673 | echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6 |
ab252f7b | 5674 | echo "configure:5675: checking for --enable-listctrl" >&5 |
10f2d63a VZ |
5675 | no_cache=0 |
5676 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
5677 | if test "${enable_listctrl+set}" = set; then | |
5678 | enableval="$enable_listctrl" | |
698dcdb6 | 5679 | |
10f2d63a VZ |
5680 | if test "$enableval" = yes; then |
5681 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
5682 | else | |
5683 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
5684 | fi | |
698dcdb6 | 5685 | |
10f2d63a | 5686 | else |
698dcdb6 | 5687 | |
10f2d63a VZ |
5688 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` |
5689 | if test "x$LINE" != x ; then | |
5690 | eval "DEFAULT_$LINE" | |
5691 | else | |
5692 | no_cache=1 | |
5693 | fi | |
5694 | ||
5695 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
698dcdb6 VZ |
5696 | |
5697 | fi | |
10f2d63a VZ |
5698 | |
5699 | ||
5700 | eval "$ac_cv_use_listctrl" | |
5701 | if test "$no_cache" != 1; then | |
5702 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
5703 | fi | |
5704 | ||
5705 | if test "$wxUSE_LISTCTRL" = yes; then | |
698dcdb6 | 5706 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5707 | else |
698dcdb6 | 5708 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5709 | fi |
698dcdb6 | 5710 | |
10f2d63a | 5711 | |
698dcdb6 | 5712 | echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6 |
ab252f7b | 5713 | echo "configure:5714: checking for --enable-notebook" >&5 |
10f2d63a VZ |
5714 | no_cache=0 |
5715 | # Check whether --enable-notebook or --disable-notebook was given. | |
5716 | if test "${enable_notebook+set}" = set; then | |
5717 | enableval="$enable_notebook" | |
698dcdb6 | 5718 | |
10f2d63a VZ |
5719 | if test "$enableval" = yes; then |
5720 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
5721 | else | |
5722 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
5723 | fi | |
698dcdb6 | 5724 | |
10f2d63a | 5725 | else |
698dcdb6 | 5726 | |
10f2d63a VZ |
5727 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` |
5728 | if test "x$LINE" != x ; then | |
5729 | eval "DEFAULT_$LINE" | |
5730 | else | |
5731 | no_cache=1 | |
5732 | fi | |
5733 | ||
5734 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
698dcdb6 VZ |
5735 | |
5736 | fi | |
10f2d63a VZ |
5737 | |
5738 | ||
5739 | eval "$ac_cv_use_notebook" | |
5740 | if test "$no_cache" != 1; then | |
5741 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
5742 | fi | |
5743 | ||
5744 | if test "$wxUSE_NOTEBOOK" = yes; then | |
698dcdb6 | 5745 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5746 | else |
698dcdb6 | 5747 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5748 | fi |
698dcdb6 | 5749 | |
10f2d63a | 5750 | |
24176f2c | 5751 | echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6 |
ab252f7b | 5752 | echo "configure:5753: checking for --enable-propsheet" >&5 |
24176f2c GD |
5753 | no_cache=0 |
5754 | # Check whether --enable-propsheet or --disable-propsheet was given. | |
5755 | if test "${enable_propsheet+set}" = set; then | |
5756 | enableval="$enable_propsheet" | |
5757 | ||
5758 | if test "$enableval" = yes; then | |
5759 | ac_cv_use_propsheet='wxUSE_PROPSHEET=yes' | |
5760 | else | |
5761 | ac_cv_use_propsheet='wxUSE_PROPSHEET=no' | |
5762 | fi | |
5763 | ||
5764 | else | |
5765 | ||
5766 | LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}` | |
5767 | if test "x$LINE" != x ; then | |
5768 | eval "DEFAULT_$LINE" | |
5769 | else | |
5770 | no_cache=1 | |
5771 | fi | |
5772 | ||
5773 | ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET | |
5774 | ||
5775 | fi | |
5776 | ||
5777 | ||
5778 | eval "$ac_cv_use_propsheet" | |
5779 | if test "$no_cache" != 1; then | |
5780 | echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp | |
5781 | fi | |
5782 | ||
5783 | if test "$wxUSE_PROPSHEET" = yes; then | |
5784 | echo "$ac_t""yes" 1>&6 | |
5785 | else | |
5786 | echo "$ac_t""no" 1>&6 | |
5787 | fi | |
5788 | ||
5789 | ||
698dcdb6 | 5790 | echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6 |
ab252f7b | 5791 | echo "configure:5792: checking for --enable-radiobox" >&5 |
10f2d63a VZ |
5792 | no_cache=0 |
5793 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
5794 | if test "${enable_radiobox+set}" = set; then | |
5795 | enableval="$enable_radiobox" | |
698dcdb6 | 5796 | |
10f2d63a VZ |
5797 | if test "$enableval" = yes; then |
5798 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
5799 | else | |
5800 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
5801 | fi | |
698dcdb6 | 5802 | |
10f2d63a | 5803 | else |
698dcdb6 | 5804 | |
10f2d63a VZ |
5805 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` |
5806 | if test "x$LINE" != x ; then | |
5807 | eval "DEFAULT_$LINE" | |
5808 | else | |
5809 | no_cache=1 | |
5810 | fi | |
5811 | ||
5812 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
698dcdb6 VZ |
5813 | |
5814 | fi | |
10f2d63a VZ |
5815 | |
5816 | ||
5817 | eval "$ac_cv_use_radiobox" | |
5818 | if test "$no_cache" != 1; then | |
5819 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
5820 | fi | |
5821 | ||
5822 | if test "$wxUSE_RADIOBOX" = yes; then | |
698dcdb6 | 5823 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5824 | else |
698dcdb6 | 5825 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5826 | fi |
698dcdb6 | 5827 | |
10f2d63a | 5828 | |
698dcdb6 | 5829 | echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6 |
ab252f7b | 5830 | echo "configure:5831: checking for --enable-radiobtn" >&5 |
10f2d63a VZ |
5831 | no_cache=0 |
5832 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
5833 | if test "${enable_radiobtn+set}" = set; then | |
5834 | enableval="$enable_radiobtn" | |
698dcdb6 | 5835 | |
10f2d63a VZ |
5836 | if test "$enableval" = yes; then |
5837 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
5838 | else | |
5839 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
5840 | fi | |
698dcdb6 | 5841 | |
10f2d63a | 5842 | else |
698dcdb6 | 5843 | |
10f2d63a VZ |
5844 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` |
5845 | if test "x$LINE" != x ; then | |
5846 | eval "DEFAULT_$LINE" | |
5847 | else | |
5848 | no_cache=1 | |
5849 | fi | |
5850 | ||
5851 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
698dcdb6 VZ |
5852 | |
5853 | fi | |
10f2d63a VZ |
5854 | |
5855 | ||
5856 | eval "$ac_cv_use_radiobtn" | |
5857 | if test "$no_cache" != 1; then | |
5858 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
5859 | fi | |
5860 | ||
5861 | if test "$wxUSE_RADIOBTN" = yes; then | |
698dcdb6 | 5862 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5863 | else |
698dcdb6 | 5864 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5865 | fi |
698dcdb6 | 5866 | |
10f2d63a | 5867 | |
698dcdb6 | 5868 | echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6 |
ab252f7b | 5869 | echo "configure:5870: checking for --enable-sash" >&5 |
10f2d63a VZ |
5870 | no_cache=0 |
5871 | # Check whether --enable-sash or --disable-sash was given. | |
5872 | if test "${enable_sash+set}" = set; then | |
5873 | enableval="$enable_sash" | |
698dcdb6 | 5874 | |
10f2d63a VZ |
5875 | if test "$enableval" = yes; then |
5876 | ac_cv_use_sash='wxUSE_SASH=yes' | |
5877 | else | |
5878 | ac_cv_use_sash='wxUSE_SASH=no' | |
5879 | fi | |
698dcdb6 | 5880 | |
10f2d63a | 5881 | else |
698dcdb6 | 5882 | |
10f2d63a VZ |
5883 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` |
5884 | if test "x$LINE" != x ; then | |
5885 | eval "DEFAULT_$LINE" | |
5886 | else | |
5887 | no_cache=1 | |
5888 | fi | |
5889 | ||
5890 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
698dcdb6 VZ |
5891 | |
5892 | fi | |
10f2d63a VZ |
5893 | |
5894 | ||
5895 | eval "$ac_cv_use_sash" | |
5896 | if test "$no_cache" != 1; then | |
5897 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
5898 | fi | |
5899 | ||
5900 | if test "$wxUSE_SASH" = yes; then | |
698dcdb6 | 5901 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5902 | else |
698dcdb6 | 5903 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5904 | fi |
698dcdb6 | 5905 | |
10f2d63a | 5906 | |
698dcdb6 | 5907 | echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6 |
ab252f7b | 5908 | echo "configure:5909: checking for --enable-scrollbar" >&5 |
10f2d63a VZ |
5909 | no_cache=0 |
5910 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
5911 | if test "${enable_scrollbar+set}" = set; then | |
5912 | enableval="$enable_scrollbar" | |
698dcdb6 | 5913 | |
10f2d63a VZ |
5914 | if test "$enableval" = yes; then |
5915 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
5916 | else | |
5917 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
5918 | fi | |
698dcdb6 | 5919 | |
10f2d63a | 5920 | else |
698dcdb6 | 5921 | |
10f2d63a VZ |
5922 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` |
5923 | if test "x$LINE" != x ; then | |
5924 | eval "DEFAULT_$LINE" | |
5925 | else | |
5926 | no_cache=1 | |
5927 | fi | |
5928 | ||
5929 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
698dcdb6 VZ |
5930 | |
5931 | fi | |
10f2d63a VZ |
5932 | |
5933 | ||
5934 | eval "$ac_cv_use_scrollbar" | |
5935 | if test "$no_cache" != 1; then | |
5936 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
5937 | fi | |
5938 | ||
5939 | if test "$wxUSE_SCROLLBAR" = yes; then | |
698dcdb6 | 5940 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5941 | else |
698dcdb6 | 5942 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5943 | fi |
698dcdb6 | 5944 | |
10f2d63a | 5945 | |
698dcdb6 | 5946 | echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6 |
ab252f7b | 5947 | echo "configure:5948: checking for --enable-slider" >&5 |
10f2d63a VZ |
5948 | no_cache=0 |
5949 | # Check whether --enable-slider or --disable-slider was given. | |
5950 | if test "${enable_slider+set}" = set; then | |
5951 | enableval="$enable_slider" | |
698dcdb6 | 5952 | |
10f2d63a VZ |
5953 | if test "$enableval" = yes; then |
5954 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
5955 | else | |
5956 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
5957 | fi | |
698dcdb6 | 5958 | |
10f2d63a | 5959 | else |
698dcdb6 | 5960 | |
10f2d63a VZ |
5961 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` |
5962 | if test "x$LINE" != x ; then | |
5963 | eval "DEFAULT_$LINE" | |
5964 | else | |
5965 | no_cache=1 | |
5966 | fi | |
5967 | ||
5968 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
698dcdb6 VZ |
5969 | |
5970 | fi | |
10f2d63a VZ |
5971 | |
5972 | ||
5973 | eval "$ac_cv_use_slider" | |
5974 | if test "$no_cache" != 1; then | |
5975 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
5976 | fi | |
5977 | ||
5978 | if test "$wxUSE_SLIDER" = yes; then | |
698dcdb6 | 5979 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5980 | else |
698dcdb6 | 5981 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5982 | fi |
698dcdb6 | 5983 | |
10f2d63a | 5984 | |
698dcdb6 | 5985 | echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6 |
ab252f7b | 5986 | echo "configure:5987: checking for --enable-spinbtn" >&5 |
10f2d63a VZ |
5987 | no_cache=0 |
5988 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
5989 | if test "${enable_spinbtn+set}" = set; then | |
5990 | enableval="$enable_spinbtn" | |
698dcdb6 | 5991 | |
10f2d63a VZ |
5992 | if test "$enableval" = yes; then |
5993 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
5994 | else | |
5995 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
5996 | fi | |
698dcdb6 | 5997 | |
10f2d63a | 5998 | else |
698dcdb6 | 5999 | |
10f2d63a VZ |
6000 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` |
6001 | if test "x$LINE" != x ; then | |
6002 | eval "DEFAULT_$LINE" | |
6003 | else | |
6004 | no_cache=1 | |
6005 | fi | |
6006 | ||
6007 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
698dcdb6 VZ |
6008 | |
6009 | fi | |
10f2d63a VZ |
6010 | |
6011 | ||
6012 | eval "$ac_cv_use_spinbtn" | |
6013 | if test "$no_cache" != 1; then | |
6014 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
6015 | fi | |
6016 | ||
6017 | if test "$wxUSE_SPINBTN" = yes; then | |
698dcdb6 | 6018 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6019 | else |
698dcdb6 | 6020 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6021 | fi |
698dcdb6 | 6022 | |
10f2d63a | 6023 | |
698dcdb6 | 6024 | echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6 |
ab252f7b | 6025 | echo "configure:6026: checking for --enable-spinctrl" >&5 |
56cfaa52 RR |
6026 | no_cache=0 |
6027 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
6028 | if test "${enable_spinctrl+set}" = set; then | |
6029 | enableval="$enable_spinctrl" | |
698dcdb6 | 6030 | |
56cfaa52 RR |
6031 | if test "$enableval" = yes; then |
6032 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
6033 | else | |
6034 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
6035 | fi | |
698dcdb6 | 6036 | |
56cfaa52 | 6037 | else |
698dcdb6 | 6038 | |
56cfaa52 RR |
6039 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` |
6040 | if test "x$LINE" != x ; then | |
6041 | eval "DEFAULT_$LINE" | |
6042 | else | |
6043 | no_cache=1 | |
6044 | fi | |
6045 | ||
6046 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
698dcdb6 VZ |
6047 | |
6048 | fi | |
56cfaa52 RR |
6049 | |
6050 | ||
6051 | eval "$ac_cv_use_spinctrl" | |
6052 | if test "$no_cache" != 1; then | |
6053 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
6054 | fi | |
6055 | ||
6056 | if test "$wxUSE_SPINCTRL" = yes; then | |
698dcdb6 | 6057 | echo "$ac_t""yes" 1>&6 |
56cfaa52 | 6058 | else |
698dcdb6 | 6059 | echo "$ac_t""no" 1>&6 |
56cfaa52 | 6060 | fi |
698dcdb6 | 6061 | |
56cfaa52 | 6062 | |
698dcdb6 | 6063 | echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6 |
ab252f7b | 6064 | echo "configure:6065: checking for --enable-splitter" >&5 |
10f2d63a VZ |
6065 | no_cache=0 |
6066 | # Check whether --enable-splitter or --disable-splitter was given. | |
6067 | if test "${enable_splitter+set}" = set; then | |
6068 | enableval="$enable_splitter" | |
698dcdb6 | 6069 | |
10f2d63a VZ |
6070 | if test "$enableval" = yes; then |
6071 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
6072 | else | |
6073 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
6074 | fi | |
698dcdb6 | 6075 | |
10f2d63a | 6076 | else |
698dcdb6 | 6077 | |
10f2d63a VZ |
6078 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` |
6079 | if test "x$LINE" != x ; then | |
6080 | eval "DEFAULT_$LINE" | |
6081 | else | |
6082 | no_cache=1 | |
6083 | fi | |
6084 | ||
6085 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
698dcdb6 VZ |
6086 | |
6087 | fi | |
10f2d63a VZ |
6088 | |
6089 | ||
6090 | eval "$ac_cv_use_splitter" | |
6091 | if test "$no_cache" != 1; then | |
6092 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
6093 | fi | |
6094 | ||
6095 | if test "$wxUSE_SPLITTER" = yes; then | |
698dcdb6 | 6096 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6097 | else |
698dcdb6 | 6098 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6099 | fi |
698dcdb6 | 6100 | |
10f2d63a | 6101 | |
698dcdb6 | 6102 | echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6 |
ab252f7b | 6103 | echo "configure:6104: checking for --enable-statbmp" >&5 |
10f2d63a VZ |
6104 | no_cache=0 |
6105 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
6106 | if test "${enable_statbmp+set}" = set; then | |
6107 | enableval="$enable_statbmp" | |
698dcdb6 | 6108 | |
10f2d63a VZ |
6109 | if test "$enableval" = yes; then |
6110 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
6111 | else | |
6112 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
6113 | fi | |
698dcdb6 | 6114 | |
10f2d63a | 6115 | else |
698dcdb6 | 6116 | |
10f2d63a VZ |
6117 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` |
6118 | if test "x$LINE" != x ; then | |
6119 | eval "DEFAULT_$LINE" | |
6120 | else | |
6121 | no_cache=1 | |
6122 | fi | |
6123 | ||
6124 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
698dcdb6 VZ |
6125 | |
6126 | fi | |
10f2d63a VZ |
6127 | |
6128 | ||
6129 | eval "$ac_cv_use_statbmp" | |
6130 | if test "$no_cache" != 1; then | |
6131 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
6132 | fi | |
6133 | ||
6134 | if test "$wxUSE_STATBMP" = yes; then | |
698dcdb6 | 6135 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6136 | else |
698dcdb6 | 6137 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6138 | fi |
698dcdb6 | 6139 | |
10f2d63a | 6140 | |
698dcdb6 | 6141 | echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6 |
ab252f7b | 6142 | echo "configure:6143: checking for --enable-statbox" >&5 |
10f2d63a VZ |
6143 | no_cache=0 |
6144 | # Check whether --enable-statbox or --disable-statbox was given. | |
6145 | if test "${enable_statbox+set}" = set; then | |
6146 | enableval="$enable_statbox" | |
698dcdb6 | 6147 | |
10f2d63a VZ |
6148 | if test "$enableval" = yes; then |
6149 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
6150 | else | |
6151 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
6152 | fi | |
698dcdb6 | 6153 | |
10f2d63a | 6154 | else |
698dcdb6 | 6155 | |
10f2d63a VZ |
6156 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` |
6157 | if test "x$LINE" != x ; then | |
6158 | eval "DEFAULT_$LINE" | |
6159 | else | |
6160 | no_cache=1 | |
6161 | fi | |
6162 | ||
6163 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
698dcdb6 VZ |
6164 | |
6165 | fi | |
10f2d63a VZ |
6166 | |
6167 | ||
6168 | eval "$ac_cv_use_statbox" | |
6169 | if test "$no_cache" != 1; then | |
6170 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
6171 | fi | |
6172 | ||
6173 | if test "$wxUSE_STATBOX" = yes; then | |
698dcdb6 | 6174 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6175 | else |
698dcdb6 | 6176 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6177 | fi |
698dcdb6 | 6178 | |
10f2d63a | 6179 | |
698dcdb6 | 6180 | echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6 |
ab252f7b | 6181 | echo "configure:6182: checking for --enable-statline" >&5 |
10f2d63a VZ |
6182 | no_cache=0 |
6183 | # Check whether --enable-statline or --disable-statline was given. | |
6184 | if test "${enable_statline+set}" = set; then | |
6185 | enableval="$enable_statline" | |
698dcdb6 | 6186 | |
10f2d63a VZ |
6187 | if test "$enableval" = yes; then |
6188 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
6189 | else | |
6190 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
6191 | fi | |
698dcdb6 | 6192 | |
10f2d63a | 6193 | else |
698dcdb6 | 6194 | |
10f2d63a VZ |
6195 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` |
6196 | if test "x$LINE" != x ; then | |
6197 | eval "DEFAULT_$LINE" | |
6198 | else | |
6199 | no_cache=1 | |
6200 | fi | |
6201 | ||
6202 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
698dcdb6 VZ |
6203 | |
6204 | fi | |
10f2d63a VZ |
6205 | |
6206 | ||
6207 | eval "$ac_cv_use_statline" | |
6208 | if test "$no_cache" != 1; then | |
6209 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
6210 | fi | |
6211 | ||
6212 | if test "$wxUSE_STATLINE" = yes; then | |
698dcdb6 | 6213 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6214 | else |
698dcdb6 | 6215 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6216 | fi |
698dcdb6 | 6217 | |
10f2d63a | 6218 | |
1e6feb95 | 6219 | echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6 |
ab252f7b | 6220 | echo "configure:6221: checking for --enable-stattext" >&5 |
1e6feb95 VZ |
6221 | no_cache=0 |
6222 | # Check whether --enable-stattext or --disable-stattext was given. | |
6223 | if test "${enable_stattext+set}" = set; then | |
6224 | enableval="$enable_stattext" | |
6225 | ||
6226 | if test "$enableval" = yes; then | |
6227 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
6228 | else | |
6229 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
6230 | fi | |
6231 | ||
6232 | else | |
6233 | ||
6234 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
6235 | if test "x$LINE" != x ; then | |
6236 | eval "DEFAULT_$LINE" | |
6237 | else | |
6238 | no_cache=1 | |
6239 | fi | |
6240 | ||
6241 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
6242 | ||
6243 | fi | |
6244 | ||
6245 | ||
6246 | eval "$ac_cv_use_stattext" | |
6247 | if test "$no_cache" != 1; then | |
6248 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
6249 | fi | |
6250 | ||
6251 | if test "$wxUSE_STATTEXT" = yes; then | |
6252 | echo "$ac_t""yes" 1>&6 | |
6253 | else | |
6254 | echo "$ac_t""no" 1>&6 | |
6255 | fi | |
6256 | ||
6257 | ||
698dcdb6 | 6258 | echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6 |
ab252f7b | 6259 | echo "configure:6260: checking for --enable-statusbar" >&5 |
10f2d63a VZ |
6260 | no_cache=0 |
6261 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
6262 | if test "${enable_statusbar+set}" = set; then | |
6263 | enableval="$enable_statusbar" | |
698dcdb6 | 6264 | |
10f2d63a VZ |
6265 | if test "$enableval" = yes; then |
6266 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
6267 | else | |
6268 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
6269 | fi | |
698dcdb6 | 6270 | |
10f2d63a | 6271 | else |
698dcdb6 | 6272 | |
10f2d63a VZ |
6273 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` |
6274 | if test "x$LINE" != x ; then | |
6275 | eval "DEFAULT_$LINE" | |
6276 | else | |
6277 | no_cache=1 | |
6278 | fi | |
6279 | ||
6280 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
698dcdb6 VZ |
6281 | |
6282 | fi | |
10f2d63a VZ |
6283 | |
6284 | ||
6285 | eval "$ac_cv_use_statusbar" | |
6286 | if test "$no_cache" != 1; then | |
6287 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
6288 | fi | |
6289 | ||
6290 | if test "$wxUSE_STATUSBAR" = yes; then | |
698dcdb6 | 6291 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6292 | else |
698dcdb6 | 6293 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6294 | fi |
698dcdb6 | 6295 | |
10f2d63a | 6296 | |
698dcdb6 | 6297 | echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6 |
ab252f7b | 6298 | echo "configure:6299: checking for --enable-tabdialog" >&5 |
10f2d63a VZ |
6299 | no_cache=0 |
6300 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
6301 | if test "${enable_tabdialog+set}" = set; then | |
6302 | enableval="$enable_tabdialog" | |
698dcdb6 | 6303 | |
10f2d63a VZ |
6304 | if test "$enableval" = yes; then |
6305 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
6306 | else | |
6307 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
6308 | fi | |
698dcdb6 | 6309 | |
10f2d63a | 6310 | else |
698dcdb6 | 6311 | |
10f2d63a VZ |
6312 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` |
6313 | if test "x$LINE" != x ; then | |
6314 | eval "DEFAULT_$LINE" | |
6315 | else | |
6316 | no_cache=1 | |
6317 | fi | |
6318 | ||
6319 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
698dcdb6 VZ |
6320 | |
6321 | fi | |
10f2d63a VZ |
6322 | |
6323 | ||
6324 | eval "$ac_cv_use_tabdialog" | |
6325 | if test "$no_cache" != 1; then | |
6326 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
6327 | fi | |
6328 | ||
6329 | if test "$wxUSE_TABDIALOG" = yes; then | |
698dcdb6 | 6330 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6331 | else |
698dcdb6 | 6332 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6333 | fi |
698dcdb6 | 6334 | |
10f2d63a | 6335 | |
1e6feb95 | 6336 | echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6 |
ab252f7b | 6337 | echo "configure:6338: checking for --enable-textctrl" >&5 |
1e6feb95 VZ |
6338 | no_cache=0 |
6339 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
6340 | if test "${enable_textctrl+set}" = set; then | |
6341 | enableval="$enable_textctrl" | |
6342 | ||
6343 | if test "$enableval" = yes; then | |
6344 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
6345 | else | |
6346 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
6347 | fi | |
6348 | ||
6349 | else | |
6350 | ||
6351 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
6352 | if test "x$LINE" != x ; then | |
6353 | eval "DEFAULT_$LINE" | |
6354 | else | |
6355 | no_cache=1 | |
6356 | fi | |
6357 | ||
6358 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
6359 | ||
6360 | fi | |
6361 | ||
6362 | ||
6363 | eval "$ac_cv_use_textctrl" | |
6364 | if test "$no_cache" != 1; then | |
6365 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
6366 | fi | |
6367 | ||
6368 | if test "$wxUSE_TEXTCTRL" = yes; then | |
6369 | echo "$ac_t""yes" 1>&6 | |
6370 | else | |
6371 | echo "$ac_t""no" 1>&6 | |
6372 | fi | |
6373 | ||
6374 | ||
698dcdb6 | 6375 | echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6 |
ab252f7b | 6376 | echo "configure:6377: checking for --enable-togglebtn" >&5 |
1db8dc4a VZ |
6377 | no_cache=0 |
6378 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
6379 | if test "${enable_togglebtn+set}" = set; then | |
6380 | enableval="$enable_togglebtn" | |
698dcdb6 | 6381 | |
1db8dc4a VZ |
6382 | if test "$enableval" = yes; then |
6383 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
6384 | else | |
6385 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
6386 | fi | |
698dcdb6 | 6387 | |
1db8dc4a | 6388 | else |
698dcdb6 | 6389 | |
1db8dc4a VZ |
6390 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` |
6391 | if test "x$LINE" != x ; then | |
6392 | eval "DEFAULT_$LINE" | |
6393 | else | |
6394 | no_cache=1 | |
6395 | fi | |
6396 | ||
6397 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
698dcdb6 VZ |
6398 | |
6399 | fi | |
1db8dc4a VZ |
6400 | |
6401 | ||
6402 | eval "$ac_cv_use_togglebtn" | |
6403 | if test "$no_cache" != 1; then | |
6404 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
6405 | fi | |
6406 | ||
6407 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
698dcdb6 | 6408 | echo "$ac_t""yes" 1>&6 |
1db8dc4a | 6409 | else |
698dcdb6 | 6410 | echo "$ac_t""no" 1>&6 |
1db8dc4a | 6411 | fi |
698dcdb6 | 6412 | |
1db8dc4a | 6413 | |
698dcdb6 | 6414 | echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6 |
ab252f7b | 6415 | echo "configure:6416: checking for --enable-toolbar" >&5 |
10f2d63a VZ |
6416 | no_cache=0 |
6417 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
6418 | if test "${enable_toolbar+set}" = set; then | |
6419 | enableval="$enable_toolbar" | |
698dcdb6 | 6420 | |
10f2d63a VZ |
6421 | if test "$enableval" = yes; then |
6422 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
6423 | else | |
6424 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
6425 | fi | |
698dcdb6 | 6426 | |
10f2d63a | 6427 | else |
698dcdb6 | 6428 | |
10f2d63a VZ |
6429 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` |
6430 | if test "x$LINE" != x ; then | |
6431 | eval "DEFAULT_$LINE" | |
6432 | else | |
6433 | no_cache=1 | |
6434 | fi | |
6435 | ||
6436 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
698dcdb6 VZ |
6437 | |
6438 | fi | |
10f2d63a VZ |
6439 | |
6440 | ||
6441 | eval "$ac_cv_use_toolbar" | |
6442 | if test "$no_cache" != 1; then | |
6443 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
6444 | fi | |
6445 | ||
6446 | if test "$wxUSE_TOOLBAR" = yes; then | |
698dcdb6 | 6447 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6448 | else |
698dcdb6 | 6449 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6450 | fi |
698dcdb6 | 6451 | |
10f2d63a | 6452 | |
698dcdb6 | 6453 | echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6 |
ab252f7b | 6454 | echo "configure:6455: checking for --enable-tbarnative" >&5 |
360d6699 VZ |
6455 | no_cache=0 |
6456 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
6457 | if test "${enable_tbarnative+set}" = set; then | |
6458 | enableval="$enable_tbarnative" | |
698dcdb6 | 6459 | |
360d6699 VZ |
6460 | if test "$enableval" = yes; then |
6461 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
6462 | else | |
6463 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
6464 | fi | |
698dcdb6 | 6465 | |
360d6699 | 6466 | else |
698dcdb6 | 6467 | |
360d6699 VZ |
6468 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` |
6469 | if test "x$LINE" != x ; then | |
6470 | eval "DEFAULT_$LINE" | |
6471 | else | |
6472 | no_cache=1 | |
6473 | fi | |
6474 | ||
6475 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
698dcdb6 VZ |
6476 | |
6477 | fi | |
360d6699 VZ |
6478 | |
6479 | ||
6480 | eval "$ac_cv_use_tbarnative" | |
6481 | if test "$no_cache" != 1; then | |
6482 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
6483 | fi | |
6484 | ||
6485 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
698dcdb6 | 6486 | echo "$ac_t""yes" 1>&6 |
360d6699 | 6487 | else |
698dcdb6 | 6488 | echo "$ac_t""no" 1>&6 |
360d6699 | 6489 | fi |
698dcdb6 | 6490 | |
360d6699 | 6491 | |
698dcdb6 | 6492 | echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6 |
ab252f7b | 6493 | echo "configure:6494: checking for --enable-tbarsmpl" >&5 |
360d6699 VZ |
6494 | no_cache=0 |
6495 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
6496 | if test "${enable_tbarsmpl+set}" = set; then | |
6497 | enableval="$enable_tbarsmpl" | |
698dcdb6 | 6498 | |
360d6699 VZ |
6499 | if test "$enableval" = yes; then |
6500 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
6501 | else | |
6502 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
6503 | fi | |
698dcdb6 | 6504 | |
360d6699 | 6505 | else |
698dcdb6 | 6506 | |
360d6699 VZ |
6507 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` |
6508 | if test "x$LINE" != x ; then | |
6509 | eval "DEFAULT_$LINE" | |
6510 | else | |
6511 | no_cache=1 | |
6512 | fi | |
6513 | ||
6514 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
698dcdb6 VZ |
6515 | |
6516 | fi | |
360d6699 VZ |
6517 | |
6518 | ||
6519 | eval "$ac_cv_use_tbarsmpl" | |
6520 | if test "$no_cache" != 1; then | |
6521 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
6522 | fi | |
6523 | ||
6524 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
698dcdb6 | 6525 | echo "$ac_t""yes" 1>&6 |
360d6699 | 6526 | else |
698dcdb6 | 6527 | echo "$ac_t""no" 1>&6 |
360d6699 | 6528 | fi |
698dcdb6 | 6529 | |
360d6699 | 6530 | |
698dcdb6 | 6531 | echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6 |
ab252f7b | 6532 | echo "configure:6533: checking for --enable-treectrl" >&5 |
10f2d63a VZ |
6533 | no_cache=0 |
6534 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
6535 | if test "${enable_treectrl+set}" = set; then | |
6536 | enableval="$enable_treectrl" | |
698dcdb6 | 6537 | |
10f2d63a VZ |
6538 | if test "$enableval" = yes; then |
6539 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
6540 | else | |
6541 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
6542 | fi | |
698dcdb6 | 6543 | |
10f2d63a | 6544 | else |
698dcdb6 | 6545 | |
10f2d63a VZ |
6546 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` |
6547 | if test "x$LINE" != x ; then | |
6548 | eval "DEFAULT_$LINE" | |
6549 | else | |
6550 | no_cache=1 | |
6551 | fi | |
6552 | ||
6553 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
698dcdb6 VZ |
6554 | |
6555 | fi | |
10f2d63a VZ |
6556 | |
6557 | ||
1e6feb95 VZ |
6558 | eval "$ac_cv_use_treectrl" |
6559 | if test "$no_cache" != 1; then | |
6560 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
6561 | fi | |
6562 | ||
6563 | if test "$wxUSE_TREECTRL" = yes; then | |
6564 | echo "$ac_t""yes" 1>&6 | |
6565 | else | |
6566 | echo "$ac_t""no" 1>&6 | |
6567 | fi | |
6568 | ||
6569 | ||
9f41d601 | 6570 | echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6 |
ab252f7b | 6571 | echo "configure:6572: checking for --enable-popupwin" >&5 |
9f41d601 RR |
6572 | no_cache=0 |
6573 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
6574 | if test "${enable_popupwin+set}" = set; then | |
6575 | enableval="$enable_popupwin" | |
6576 | ||
6577 | if test "$enableval" = yes; then | |
6578 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
6579 | else | |
6580 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
6581 | fi | |
6582 | ||
6583 | else | |
6584 | ||
6585 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` | |
6586 | if test "x$LINE" != x ; then | |
6587 | eval "DEFAULT_$LINE" | |
6588 | else | |
6589 | no_cache=1 | |
6590 | fi | |
6591 | ||
6592 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
6593 | ||
6594 | fi | |
6595 | ||
6596 | ||
6597 | eval "$ac_cv_use_popupwin" | |
6598 | if test "$no_cache" != 1; then | |
6599 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
6600 | fi | |
6601 | ||
6602 | if test "$wxUSE_POPUPWIN" = yes; then | |
6603 | echo "$ac_t""yes" 1>&6 | |
6604 | else | |
6605 | echo "$ac_t""no" 1>&6 | |
6606 | fi | |
6607 | ||
6608 | ||
1e6feb95 VZ |
6609 | |
6610 | ||
6611 | echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6 | |
ab252f7b | 6612 | echo "configure:6613: checking for --enable-commondlg" >&5 |
1e6feb95 VZ |
6613 | no_cache=0 |
6614 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
6615 | if test "${enable_commondlg+set}" = set; then | |
6616 | enableval="$enable_commondlg" | |
6617 | ||
6618 | if test "$enableval" = yes; then | |
6619 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
6620 | else | |
6621 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
6622 | fi | |
6623 | ||
6624 | else | |
6625 | ||
6626 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
6627 | if test "x$LINE" != x ; then | |
6628 | eval "DEFAULT_$LINE" | |
6629 | else | |
6630 | no_cache=1 | |
6631 | fi | |
6632 | ||
6633 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
6634 | ||
6635 | fi | |
6636 | ||
6637 | ||
6638 | eval "$ac_cv_use_commondlg" | |
6639 | if test "$no_cache" != 1; then | |
6640 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
6641 | fi | |
6642 | ||
6643 | if test "$wxUSE_COMMONDLGS" = yes; then | |
6644 | echo "$ac_t""yes" 1>&6 | |
6645 | else | |
6646 | echo "$ac_t""no" 1>&6 | |
6647 | fi | |
6648 | ||
6649 | ||
6650 | echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6 | |
ab252f7b | 6651 | echo "configure:6652: checking for --enable-choicedlg" >&5 |
1e6feb95 VZ |
6652 | no_cache=0 |
6653 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
6654 | if test "${enable_choicedlg+set}" = set; then | |
6655 | enableval="$enable_choicedlg" | |
6656 | ||
6657 | if test "$enableval" = yes; then | |
6658 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
6659 | else | |
6660 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
6661 | fi | |
6662 | ||
6663 | else | |
6664 | ||
6665 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
6666 | if test "x$LINE" != x ; then | |
6667 | eval "DEFAULT_$LINE" | |
6668 | else | |
6669 | no_cache=1 | |
6670 | fi | |
6671 | ||
6672 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
6673 | ||
6674 | fi | |
6675 | ||
6676 | ||
6677 | eval "$ac_cv_use_choicedlg" | |
6678 | if test "$no_cache" != 1; then | |
6679 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
6680 | fi | |
6681 | ||
6682 | if test "$wxUSE_CHOICEDLG" = yes; then | |
6683 | echo "$ac_t""yes" 1>&6 | |
6684 | else | |
6685 | echo "$ac_t""no" 1>&6 | |
6686 | fi | |
6687 | ||
6688 | ||
6689 | echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6 | |
ab252f7b | 6690 | echo "configure:6691: checking for --enable-coldlg" >&5 |
1e6feb95 VZ |
6691 | no_cache=0 |
6692 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
6693 | if test "${enable_coldlg+set}" = set; then | |
6694 | enableval="$enable_coldlg" | |
6695 | ||
6696 | if test "$enableval" = yes; then | |
6697 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
6698 | else | |
6699 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
6700 | fi | |
6701 | ||
6702 | else | |
6703 | ||
6704 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
6705 | if test "x$LINE" != x ; then | |
6706 | eval "DEFAULT_$LINE" | |
6707 | else | |
6708 | no_cache=1 | |
6709 | fi | |
6710 | ||
6711 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
6712 | ||
6713 | fi | |
6714 | ||
6715 | ||
6716 | eval "$ac_cv_use_coldlg" | |
6717 | if test "$no_cache" != 1; then | |
6718 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
6719 | fi | |
6720 | ||
6721 | if test "$wxUSE_COLOURDLG" = yes; then | |
6722 | echo "$ac_t""yes" 1>&6 | |
6723 | else | |
6724 | echo "$ac_t""no" 1>&6 | |
6725 | fi | |
6726 | ||
6727 | ||
6728 | echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6 | |
ab252f7b | 6729 | echo "configure:6730: checking for --enable-filedlg" >&5 |
1e6feb95 VZ |
6730 | no_cache=0 |
6731 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
6732 | if test "${enable_filedlg+set}" = set; then | |
6733 | enableval="$enable_filedlg" | |
6734 | ||
6735 | if test "$enableval" = yes; then | |
6736 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
6737 | else | |
6738 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
6739 | fi | |
6740 | ||
6741 | else | |
6742 | ||
6743 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
6744 | if test "x$LINE" != x ; then | |
6745 | eval "DEFAULT_$LINE" | |
6746 | else | |
6747 | no_cache=1 | |
6748 | fi | |
6749 | ||
6750 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
6751 | ||
6752 | fi | |
6753 | ||
6754 | ||
6755 | eval "$ac_cv_use_filedlg" | |
6756 | if test "$no_cache" != 1; then | |
6757 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
6758 | fi | |
6759 | ||
6760 | if test "$wxUSE_FILEDLG" = yes; then | |
6761 | echo "$ac_t""yes" 1>&6 | |
6762 | else | |
6763 | echo "$ac_t""no" 1>&6 | |
6764 | fi | |
6765 | ||
6766 | ||
8db37e06 | 6767 | echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6 |
ab252f7b | 6768 | echo "configure:6769: checking for --enable-filedlg" >&5 |
8db37e06 VZ |
6769 | no_cache=0 |
6770 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
6771 | if test "${enable_filedlg+set}" = set; then | |
6772 | enableval="$enable_filedlg" | |
6773 | ||
6774 | if test "$enableval" = yes; then | |
6775 | ac_cv_use_filedlg='wxUSE_FINDREPLDLG=yes' | |
6776 | else | |
6777 | ac_cv_use_filedlg='wxUSE_FINDREPLDLG=no' | |
6778 | fi | |
6779 | ||
6780 | else | |
6781 | ||
6782 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` | |
6783 | if test "x$LINE" != x ; then | |
6784 | eval "DEFAULT_$LINE" | |
6785 | else | |
6786 | no_cache=1 | |
6787 | fi | |
6788 | ||
6789 | ac_cv_use_filedlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG | |
6790 | ||
6791 | fi | |
6792 | ||
6793 | ||
6794 | eval "$ac_cv_use_filedlg" | |
6795 | if test "$no_cache" != 1; then | |
6796 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
6797 | fi | |
6798 | ||
6799 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
6800 | echo "$ac_t""yes" 1>&6 | |
6801 | else | |
6802 | echo "$ac_t""no" 1>&6 | |
6803 | fi | |
6804 | ||
6805 | ||
1e6feb95 | 6806 | echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6 |
ab252f7b | 6807 | echo "configure:6808: checking for --enable-fontdlg" >&5 |
1e6feb95 VZ |
6808 | no_cache=0 |
6809 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
6810 | if test "${enable_fontdlg+set}" = set; then | |
6811 | enableval="$enable_fontdlg" | |
6812 | ||
6813 | if test "$enableval" = yes; then | |
6814 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
6815 | else | |
6816 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
6817 | fi | |
6818 | ||
6819 | else | |
6820 | ||
6821 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
6822 | if test "x$LINE" != x ; then | |
6823 | eval "DEFAULT_$LINE" | |
6824 | else | |
6825 | no_cache=1 | |
6826 | fi | |
6827 | ||
6828 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
6829 | ||
6830 | fi | |
6831 | ||
6832 | ||
6833 | eval "$ac_cv_use_fontdlg" | |
6834 | if test "$no_cache" != 1; then | |
6835 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
6836 | fi | |
6837 | ||
6838 | if test "$wxUSE_FONTDLG" = yes; then | |
6839 | echo "$ac_t""yes" 1>&6 | |
6840 | else | |
6841 | echo "$ac_t""no" 1>&6 | |
6842 | fi | |
6843 | ||
6844 | ||
6845 | echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6 | |
ab252f7b | 6846 | echo "configure:6847: checking for --enable-dirdlg" >&5 |
1e6feb95 VZ |
6847 | no_cache=0 |
6848 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
6849 | if test "${enable_dirdlg+set}" = set; then | |
6850 | enableval="$enable_dirdlg" | |
6851 | ||
6852 | if test "$enableval" = yes; then | |
6853 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
6854 | else | |
6855 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
6856 | fi | |
6857 | ||
6858 | else | |
6859 | ||
6860 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
6861 | if test "x$LINE" != x ; then | |
6862 | eval "DEFAULT_$LINE" | |
6863 | else | |
6864 | no_cache=1 | |
6865 | fi | |
6866 | ||
6867 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
6868 | ||
6869 | fi | |
6870 | ||
6871 | ||
6872 | eval "$ac_cv_use_dirdlg" | |
10f2d63a | 6873 | if test "$no_cache" != 1; then |
1e6feb95 | 6874 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6875 | fi |
6876 | ||
1e6feb95 | 6877 | if test "$wxUSE_DIRDLG" = yes; then |
698dcdb6 | 6878 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6879 | else |
698dcdb6 | 6880 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6881 | fi |
698dcdb6 VZ |
6882 | |
6883 | ||
1e6feb95 | 6884 | echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6 |
ab252f7b | 6885 | echo "configure:6886: checking for --enable-msgdlg" >&5 |
10f2d63a | 6886 | no_cache=0 |
1e6feb95 VZ |
6887 | # Check whether --enable-msgdlg or --disable-msgdlg was given. |
6888 | if test "${enable_msgdlg+set}" = set; then | |
6889 | enableval="$enable_msgdlg" | |
698dcdb6 | 6890 | |
10f2d63a | 6891 | if test "$enableval" = yes; then |
1e6feb95 | 6892 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' |
10f2d63a | 6893 | else |
1e6feb95 | 6894 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' |
10f2d63a | 6895 | fi |
698dcdb6 | 6896 | |
10f2d63a | 6897 | else |
698dcdb6 | 6898 | |
1e6feb95 | 6899 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
6900 | if test "x$LINE" != x ; then |
6901 | eval "DEFAULT_$LINE" | |
6902 | else | |
6903 | no_cache=1 | |
6904 | fi | |
6905 | ||
1e6feb95 | 6906 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG |
698dcdb6 VZ |
6907 | |
6908 | fi | |
10f2d63a VZ |
6909 | |
6910 | ||
1e6feb95 | 6911 | eval "$ac_cv_use_msgdlg" |
10f2d63a | 6912 | if test "$no_cache" != 1; then |
1e6feb95 | 6913 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6914 | fi |
6915 | ||
1e6feb95 | 6916 | if test "$wxUSE_MSGDLG" = yes; then |
698dcdb6 | 6917 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6918 | else |
698dcdb6 | 6919 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6920 | fi |
698dcdb6 | 6921 | |
10f2d63a | 6922 | |
1e6feb95 | 6923 | echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6 |
ab252f7b | 6924 | echo "configure:6925: checking for --enable-numberdlg" >&5 |
10f2d63a | 6925 | no_cache=0 |
1e6feb95 VZ |
6926 | # Check whether --enable-numberdlg or --disable-numberdlg was given. |
6927 | if test "${enable_numberdlg+set}" = set; then | |
6928 | enableval="$enable_numberdlg" | |
698dcdb6 | 6929 | |
10f2d63a | 6930 | if test "$enableval" = yes; then |
1e6feb95 | 6931 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' |
10f2d63a | 6932 | else |
1e6feb95 | 6933 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' |
10f2d63a | 6934 | fi |
698dcdb6 | 6935 | |
10f2d63a | 6936 | else |
698dcdb6 | 6937 | |
1e6feb95 | 6938 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
6939 | if test "x$LINE" != x ; then |
6940 | eval "DEFAULT_$LINE" | |
6941 | else | |
6942 | no_cache=1 | |
6943 | fi | |
6944 | ||
1e6feb95 | 6945 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG |
698dcdb6 VZ |
6946 | |
6947 | fi | |
10f2d63a VZ |
6948 | |
6949 | ||
1e6feb95 | 6950 | eval "$ac_cv_use_numberdlg" |
10f2d63a | 6951 | if test "$no_cache" != 1; then |
1e6feb95 | 6952 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6953 | fi |
6954 | ||
1e6feb95 | 6955 | if test "$wxUSE_NUMBERDLG" = yes; then |
698dcdb6 | 6956 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6957 | else |
698dcdb6 | 6958 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6959 | fi |
698dcdb6 | 6960 | |
10f2d63a | 6961 | |
cbca9943 | 6962 | echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6 |
ab252f7b | 6963 | echo "configure:6964: checking for --enable-splash" >&5 |
cbca9943 VZ |
6964 | no_cache=0 |
6965 | # Check whether --enable-splash or --disable-splash was given. | |
6966 | if test "${enable_splash+set}" = set; then | |
6967 | enableval="$enable_splash" | |
6968 | ||
6969 | if test "$enableval" = yes; then | |
6970 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
6971 | else | |
6972 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
6973 | fi | |
6974 | ||
6975 | else | |
6976 | ||
6977 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` | |
6978 | if test "x$LINE" != x ; then | |
6979 | eval "DEFAULT_$LINE" | |
6980 | else | |
6981 | no_cache=1 | |
6982 | fi | |
6983 | ||
6984 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
6985 | ||
6986 | fi | |
6987 | ||
6988 | ||
6989 | eval "$ac_cv_use_splash" | |
6990 | if test "$no_cache" != 1; then | |
6991 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
6992 | fi | |
6993 | ||
6994 | if test "$wxUSE_SPLASH" = yes; then | |
6995 | echo "$ac_t""yes" 1>&6 | |
6996 | else | |
6997 | echo "$ac_t""no" 1>&6 | |
6998 | fi | |
6999 | ||
7000 | ||
698dcdb6 | 7001 | echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6 |
ab252f7b | 7002 | echo "configure:7003: checking for --enable-textdlg" >&5 |
10f2d63a VZ |
7003 | no_cache=0 |
7004 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
7005 | if test "${enable_textdlg+set}" = set; then | |
7006 | enableval="$enable_textdlg" | |
698dcdb6 | 7007 | |
10f2d63a VZ |
7008 | if test "$enableval" = yes; then |
7009 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
7010 | else | |
7011 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
7012 | fi | |
698dcdb6 | 7013 | |
10f2d63a | 7014 | else |
698dcdb6 | 7015 | |
10f2d63a VZ |
7016 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` |
7017 | if test "x$LINE" != x ; then | |
7018 | eval "DEFAULT_$LINE" | |
7019 | else | |
7020 | no_cache=1 | |
7021 | fi | |
7022 | ||
7023 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
698dcdb6 VZ |
7024 | |
7025 | fi | |
10f2d63a VZ |
7026 | |
7027 | ||
7028 | eval "$ac_cv_use_textdlg" | |
7029 | if test "$no_cache" != 1; then | |
7030 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
7031 | fi | |
7032 | ||
7033 | if test "$wxUSE_TEXTDLG" = yes; then | |
698dcdb6 | 7034 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7035 | else |
698dcdb6 | 7036 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7037 | fi |
698dcdb6 | 7038 | |
10f2d63a | 7039 | |
698dcdb6 | 7040 | echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6 |
ab252f7b | 7041 | echo "configure:7042: checking for --enable-tipdlg" >&5 |
10f2d63a VZ |
7042 | no_cache=0 |
7043 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
7044 | if test "${enable_tipdlg+set}" = set; then | |
7045 | enableval="$enable_tipdlg" | |
698dcdb6 | 7046 | |
10f2d63a VZ |
7047 | if test "$enableval" = yes; then |
7048 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
7049 | else | |
7050 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
7051 | fi | |
698dcdb6 | 7052 | |
10f2d63a | 7053 | else |
698dcdb6 | 7054 | |
10f2d63a VZ |
7055 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` |
7056 | if test "x$LINE" != x ; then | |
7057 | eval "DEFAULT_$LINE" | |
7058 | else | |
7059 | no_cache=1 | |
7060 | fi | |
7061 | ||
7062 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
698dcdb6 VZ |
7063 | |
7064 | fi | |
10f2d63a VZ |
7065 | |
7066 | ||
7067 | eval "$ac_cv_use_tipdlg" | |
7068 | if test "$no_cache" != 1; then | |
7069 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
7070 | fi | |
7071 | ||
7072 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
698dcdb6 | 7073 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7074 | else |
698dcdb6 | 7075 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7076 | fi |
698dcdb6 | 7077 | |
10f2d63a | 7078 | |
698dcdb6 | 7079 | echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6 |
ab252f7b | 7080 | echo "configure:7081: checking for --enable-progressdlg" >&5 |
10f2d63a VZ |
7081 | no_cache=0 |
7082 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
7083 | if test "${enable_progressdlg+set}" = set; then | |
7084 | enableval="$enable_progressdlg" | |
698dcdb6 | 7085 | |
10f2d63a VZ |
7086 | if test "$enableval" = yes; then |
7087 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
7088 | else | |
7089 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
7090 | fi | |
698dcdb6 | 7091 | |
10f2d63a | 7092 | else |
698dcdb6 | 7093 | |
10f2d63a VZ |
7094 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` |
7095 | if test "x$LINE" != x ; then | |
7096 | eval "DEFAULT_$LINE" | |
7097 | else | |
7098 | no_cache=1 | |
7099 | fi | |
7100 | ||
7101 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
698dcdb6 VZ |
7102 | |
7103 | fi | |
10f2d63a VZ |
7104 | |
7105 | ||
7106 | eval "$ac_cv_use_progressdlg" | |
7107 | if test "$no_cache" != 1; then | |
7108 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
7109 | fi | |
7110 | ||
7111 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
698dcdb6 | 7112 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7113 | else |
698dcdb6 | 7114 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7115 | fi |
698dcdb6 | 7116 | |
10f2d63a | 7117 | |
b1f5d087 | 7118 | echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6 |
ab252f7b | 7119 | echo "configure:7120: checking for --enable-wizarddlg" >&5 |
b1f5d087 VZ |
7120 | no_cache=0 |
7121 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
7122 | if test "${enable_wizarddlg+set}" = set; then | |
7123 | enableval="$enable_wizarddlg" | |
7124 | ||
7125 | if test "$enableval" = yes; then | |
7126 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
7127 | else | |
7128 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
7129 | fi | |
7130 | ||
7131 | else | |
7132 | ||
7133 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` | |
7134 | if test "x$LINE" != x ; then | |
7135 | eval "DEFAULT_$LINE" | |
7136 | else | |
7137 | no_cache=1 | |
7138 | fi | |
7139 | ||
7140 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
7141 | ||
7142 | fi | |
7143 | ||
7144 | ||
7145 | eval "$ac_cv_use_wizarddlg" | |
7146 | if test "$no_cache" != 1; then | |
7147 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
7148 | fi | |
7149 | ||
7150 | if test "$wxUSE_WIZARDDLG" = yes; then | |
7151 | echo "$ac_t""yes" 1>&6 | |
7152 | else | |
7153 | echo "$ac_t""no" 1>&6 | |
7154 | fi | |
7155 | ||
7156 | ||
7157 | ||
7158 | ||
1e6feb95 | 7159 | echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6 |
ab252f7b | 7160 | echo "configure:7161: checking for --enable-menus" >&5 |
1e6feb95 VZ |
7161 | no_cache=0 |
7162 | # Check whether --enable-menus or --disable-menus was given. | |
7163 | if test "${enable_menus+set}" = set; then | |
7164 | enableval="$enable_menus" | |
7165 | ||
7166 | if test "$enableval" = yes; then | |
7167 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
7168 | else | |
7169 | ac_cv_use_menus='wxUSE_MENUS=no' | |
7170 | fi | |
7171 | ||
7172 | else | |
7173 | ||
7174 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
7175 | if test "x$LINE" != x ; then | |
7176 | eval "DEFAULT_$LINE" | |
7177 | else | |
7178 | no_cache=1 | |
7179 | fi | |
7180 | ||
7181 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
7182 | ||
7183 | fi | |
7184 | ||
7185 | ||
7186 | eval "$ac_cv_use_menus" | |
7187 | if test "$no_cache" != 1; then | |
7188 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
7189 | fi | |
7190 | ||
7191 | if test "$wxUSE_MENUS" = yes; then | |
7192 | echo "$ac_t""yes" 1>&6 | |
7193 | else | |
7194 | echo "$ac_t""no" 1>&6 | |
7195 | fi | |
7196 | ||
7197 | ||
698dcdb6 | 7198 | echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6 |
ab252f7b | 7199 | echo "configure:7200: checking for --enable-miniframe" >&5 |
10f2d63a VZ |
7200 | no_cache=0 |
7201 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
7202 | if test "${enable_miniframe+set}" = set; then | |
7203 | enableval="$enable_miniframe" | |
698dcdb6 | 7204 | |
10f2d63a VZ |
7205 | if test "$enableval" = yes; then |
7206 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
7207 | else | |
7208 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
7209 | fi | |
698dcdb6 | 7210 | |
10f2d63a | 7211 | else |
698dcdb6 | 7212 | |
10f2d63a VZ |
7213 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` |
7214 | if test "x$LINE" != x ; then | |
7215 | eval "DEFAULT_$LINE" | |
7216 | else | |
7217 | no_cache=1 | |
7218 | fi | |
7219 | ||
7220 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
698dcdb6 VZ |
7221 | |
7222 | fi | |
10f2d63a VZ |
7223 | |
7224 | ||
7225 | eval "$ac_cv_use_miniframe" | |
7226 | if test "$no_cache" != 1; then | |
7227 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
7228 | fi | |
7229 | ||
7230 | if test "$wxUSE_MINIFRAME" = yes; then | |
698dcdb6 | 7231 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7232 | else |
698dcdb6 | 7233 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7234 | fi |
698dcdb6 | 7235 | |
10f2d63a | 7236 | |
698dcdb6 | 7237 | echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6 |
ab252f7b | 7238 | echo "configure:7239: checking for --enable-tooltips" >&5 |
10f2d63a VZ |
7239 | no_cache=0 |
7240 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
7241 | if test "${enable_tooltips+set}" = set; then | |
7242 | enableval="$enable_tooltips" | |
698dcdb6 | 7243 | |
10f2d63a VZ |
7244 | if test "$enableval" = yes; then |
7245 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
7246 | else | |
7247 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
7248 | fi | |
698dcdb6 | 7249 | |
10f2d63a | 7250 | else |
698dcdb6 | 7251 | |
10f2d63a VZ |
7252 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` |
7253 | if test "x$LINE" != x ; then | |
7254 | eval "DEFAULT_$LINE" | |
7255 | else | |
7256 | no_cache=1 | |
7257 | fi | |
7258 | ||
7259 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
698dcdb6 VZ |
7260 | |
7261 | fi | |
10f2d63a VZ |
7262 | |
7263 | ||
7264 | eval "$ac_cv_use_tooltips" | |
7265 | if test "$no_cache" != 1; then | |
7266 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
7267 | fi | |
7268 | ||
7269 | if test "$wxUSE_TOOLTIPS" = yes; then | |
698dcdb6 | 7270 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7271 | else |
698dcdb6 | 7272 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7273 | fi |
698dcdb6 | 7274 | |
10f2d63a | 7275 | |
698dcdb6 | 7276 | echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6 |
ab252f7b | 7277 | echo "configure:7278: checking for --enable-splines" >&5 |
10f2d63a VZ |
7278 | no_cache=0 |
7279 | # Check whether --enable-splines or --disable-splines was given. | |
7280 | if test "${enable_splines+set}" = set; then | |
7281 | enableval="$enable_splines" | |
698dcdb6 | 7282 | |
10f2d63a VZ |
7283 | if test "$enableval" = yes; then |
7284 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
7285 | else | |
7286 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
7287 | fi | |
698dcdb6 | 7288 | |
10f2d63a | 7289 | else |
698dcdb6 | 7290 | |
10f2d63a VZ |
7291 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` |
7292 | if test "x$LINE" != x ; then | |
7293 | eval "DEFAULT_$LINE" | |
7294 | else | |
7295 | no_cache=1 | |
7296 | fi | |
7297 | ||
7298 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
698dcdb6 VZ |
7299 | |
7300 | fi | |
10f2d63a VZ |
7301 | |
7302 | ||
7303 | eval "$ac_cv_use_splines" | |
7304 | if test "$no_cache" != 1; then | |
7305 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
7306 | fi | |
7307 | ||
7308 | if test "$wxUSE_SPLINES" = yes; then | |
698dcdb6 | 7309 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7310 | else |
698dcdb6 | 7311 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7312 | fi |
698dcdb6 | 7313 | |
10f2d63a | 7314 | |
698dcdb6 | 7315 | echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6 |
ab252f7b | 7316 | echo "configure:7317: checking for --enable-validators" >&5 |
10f2d63a VZ |
7317 | no_cache=0 |
7318 | # Check whether --enable-validators or --disable-validators was given. | |
7319 | if test "${enable_validators+set}" = set; then | |
7320 | enableval="$enable_validators" | |
698dcdb6 | 7321 | |
10f2d63a VZ |
7322 | if test "$enableval" = yes; then |
7323 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
7324 | else | |
7325 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
7326 | fi | |
698dcdb6 | 7327 | |
10f2d63a | 7328 | else |
698dcdb6 | 7329 | |
10f2d63a VZ |
7330 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` |
7331 | if test "x$LINE" != x ; then | |
7332 | eval "DEFAULT_$LINE" | |
7333 | else | |
7334 | no_cache=1 | |
7335 | fi | |
7336 | ||
7337 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
698dcdb6 VZ |
7338 | |
7339 | fi | |
10f2d63a VZ |
7340 | |
7341 | ||
7342 | eval "$ac_cv_use_validators" | |
7343 | if test "$no_cache" != 1; then | |
7344 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
7345 | fi | |
7346 | ||
7347 | if test "$wxUSE_VALIDATORS" = yes; then | |
698dcdb6 | 7348 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7349 | else |
698dcdb6 | 7350 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7351 | fi |
698dcdb6 | 7352 | |
10f2d63a | 7353 | |
698dcdb6 | 7354 | echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6 |
ab252f7b | 7355 | echo "configure:7356: checking for --enable-busyinfo" >&5 |
10f2d63a VZ |
7356 | no_cache=0 |
7357 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
7358 | if test "${enable_busyinfo+set}" = set; then | |
7359 | enableval="$enable_busyinfo" | |
698dcdb6 | 7360 | |
10f2d63a VZ |
7361 | if test "$enableval" = yes; then |
7362 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
7363 | else | |
7364 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
7365 | fi | |
698dcdb6 | 7366 | |
10f2d63a | 7367 | else |
698dcdb6 | 7368 | |
10f2d63a VZ |
7369 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` |
7370 | if test "x$LINE" != x ; then | |
7371 | eval "DEFAULT_$LINE" | |
7372 | else | |
7373 | no_cache=1 | |
7374 | fi | |
7375 | ||
7376 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
698dcdb6 VZ |
7377 | |
7378 | fi | |
10f2d63a VZ |
7379 | |
7380 | ||
7381 | eval "$ac_cv_use_busyinfo" | |
7382 | if test "$no_cache" != 1; then | |
7383 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
7384 | fi | |
7385 | ||
7386 | if test "$wxUSE_BUSYINFO" = yes; then | |
698dcdb6 | 7387 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7388 | else |
698dcdb6 | 7389 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7390 | fi |
698dcdb6 | 7391 | |
10f2d63a | 7392 | |
698dcdb6 | 7393 | echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6 |
ab252f7b | 7394 | echo "configure:7395: checking for --enable-joystick" >&5 |
f6bcfd97 BP |
7395 | no_cache=0 |
7396 | # Check whether --enable-joystick or --disable-joystick was given. | |
7397 | if test "${enable_joystick+set}" = set; then | |
7398 | enableval="$enable_joystick" | |
698dcdb6 | 7399 | |
f6bcfd97 BP |
7400 | if test "$enableval" = yes; then |
7401 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
7402 | else | |
7403 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
7404 | fi | |
698dcdb6 | 7405 | |
f6bcfd97 | 7406 | else |
698dcdb6 | 7407 | |
f6bcfd97 BP |
7408 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` |
7409 | if test "x$LINE" != x ; then | |
7410 | eval "DEFAULT_$LINE" | |
7411 | else | |
7412 | no_cache=1 | |
7413 | fi | |
7414 | ||
7415 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
698dcdb6 VZ |
7416 | |
7417 | fi | |
f6bcfd97 BP |
7418 | |
7419 | ||
7420 | eval "$ac_cv_use_joystick" | |
7421 | if test "$no_cache" != 1; then | |
7422 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
7423 | fi | |
7424 | ||
7425 | if test "$wxUSE_JOYSTICK" = yes; then | |
698dcdb6 | 7426 | echo "$ac_t""yes" 1>&6 |
f6bcfd97 | 7427 | else |
698dcdb6 | 7428 | echo "$ac_t""no" 1>&6 |
f6bcfd97 | 7429 | fi |
698dcdb6 VZ |
7430 | |
7431 | ||
1e6feb95 | 7432 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
ab252f7b | 7433 | echo "configure:7434: checking for --enable-metafile" >&5 |
1e6feb95 VZ |
7434 | no_cache=0 |
7435 | # Check whether --enable-metafile or --disable-metafile was given. | |
7436 | if test "${enable_metafile+set}" = set; then | |
7437 | enableval="$enable_metafile" | |
7438 | ||
7439 | if test "$enableval" = yes; then | |
7440 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
7441 | else | |
7442 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
7443 | fi | |
7444 | ||
7445 | else | |
7446 | ||
7447 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
7448 | if test "x$LINE" != x ; then | |
7449 | eval "DEFAULT_$LINE" | |
7450 | else | |
7451 | no_cache=1 | |
7452 | fi | |
7453 | ||
7454 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
7455 | ||
7456 | fi | |
7457 | ||
7458 | ||
7459 | eval "$ac_cv_use_metafile" | |
7460 | if test "$no_cache" != 1; then | |
7461 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
7462 | fi | |
7463 | ||
7464 | if test "$wxUSE_METAFILE" = yes; then | |
7465 | echo "$ac_t""yes" 1>&6 | |
7466 | else | |
7467 | echo "$ac_t""no" 1>&6 | |
7468 | fi | |
7469 | ||
7470 | ||
24fd6d87 | 7471 | echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6 |
ab252f7b | 7472 | echo "configure:7473: checking for --enable-dragimage" >&5 |
24fd6d87 VZ |
7473 | no_cache=0 |
7474 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
7475 | if test "${enable_dragimage+set}" = set; then | |
7476 | enableval="$enable_dragimage" | |
7477 | ||
7478 | if test "$enableval" = yes; then | |
7479 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
7480 | else | |
7481 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
7482 | fi | |
7483 | ||
7484 | else | |
7485 | ||
7486 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` | |
7487 | if test "x$LINE" != x ; then | |
7488 | eval "DEFAULT_$LINE" | |
7489 | else | |
7490 | no_cache=1 | |
7491 | fi | |
7492 | ||
7493 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
7494 | ||
7495 | fi | |
7496 | ||
7497 | ||
7498 | eval "$ac_cv_use_dragimage" | |
7499 | if test "$no_cache" != 1; then | |
7500 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
7501 | fi | |
7502 | ||
7503 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
7504 | echo "$ac_t""yes" 1>&6 | |
7505 | else | |
7506 | echo "$ac_t""no" 1>&6 | |
7507 | fi | |
7508 | ||
7509 | ||
10f2d63a | 7510 | |
698dcdb6 VZ |
7511 | |
7512 | echo $ac_n "checking for --enable-image""... $ac_c" 1>&6 | |
ab252f7b | 7513 | echo "configure:7514: checking for --enable-image" >&5 |
0046ff7c VS |
7514 | no_cache=0 |
7515 | # Check whether --enable-image or --disable-image was given. | |
7516 | if test "${enable_image+set}" = set; then | |
7517 | enableval="$enable_image" | |
698dcdb6 | 7518 | |
0046ff7c VS |
7519 | if test "$enableval" = yes; then |
7520 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
7521 | else | |
7522 | ac_cv_use_image='wxUSE_IMAGE=no' | |
7523 | fi | |
698dcdb6 | 7524 | |
0046ff7c | 7525 | else |
698dcdb6 | 7526 | |
0046ff7c VS |
7527 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` |
7528 | if test "x$LINE" != x ; then | |
7529 | eval "DEFAULT_$LINE" | |
7530 | else | |
7531 | no_cache=1 | |
7532 | fi | |
7533 | ||
7534 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
698dcdb6 VZ |
7535 | |
7536 | fi | |
0046ff7c VS |
7537 | |
7538 | ||
7539 | eval "$ac_cv_use_image" | |
7540 | if test "$no_cache" != 1; then | |
7541 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
7542 | fi | |
7543 | ||
7544 | if test "$wxUSE_IMAGE" = yes; then | |
698dcdb6 | 7545 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 7546 | else |
698dcdb6 | 7547 | echo "$ac_t""no" 1>&6 |
0046ff7c | 7548 | fi |
698dcdb6 | 7549 | |
0046ff7c | 7550 | |
698dcdb6 | 7551 | echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6 |
ab252f7b | 7552 | echo "configure:7553: checking for --enable-gif" >&5 |
10f2d63a VZ |
7553 | no_cache=0 |
7554 | # Check whether --enable-gif or --disable-gif was given. | |
7555 | if test "${enable_gif+set}" = set; then | |
7556 | enableval="$enable_gif" | |
698dcdb6 | 7557 | |
10f2d63a VZ |
7558 | if test "$enableval" = yes; then |
7559 | ac_cv_use_gif='wxUSE_GIF=yes' | |
7560 | else | |
7561 | ac_cv_use_gif='wxUSE_GIF=no' | |
7562 | fi | |
698dcdb6 | 7563 | |
10f2d63a | 7564 | else |
698dcdb6 | 7565 | |
10f2d63a VZ |
7566 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` |
7567 | if test "x$LINE" != x ; then | |
7568 | eval "DEFAULT_$LINE" | |
7569 | else | |
7570 | no_cache=1 | |
7571 | fi | |
7572 | ||
7573 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
698dcdb6 VZ |
7574 | |
7575 | fi | |
10f2d63a VZ |
7576 | |
7577 | ||
7578 | eval "$ac_cv_use_gif" | |
7579 | if test "$no_cache" != 1; then | |
7580 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
7581 | fi | |
7582 | ||
7583 | if test "$wxUSE_GIF" = yes; then | |
698dcdb6 | 7584 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7585 | else |
698dcdb6 | 7586 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7587 | fi |
698dcdb6 | 7588 | |
10f2d63a | 7589 | |
698dcdb6 | 7590 | echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6 |
ab252f7b | 7591 | echo "configure:7592: checking for --enable-pcx" >&5 |
10f2d63a VZ |
7592 | no_cache=0 |
7593 | # Check whether --enable-pcx or --disable-pcx was given. | |
7594 | if test "${enable_pcx+set}" = set; then | |
7595 | enableval="$enable_pcx" | |
698dcdb6 | 7596 | |
10f2d63a VZ |
7597 | if test "$enableval" = yes; then |
7598 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
7599 | else | |
7600 | ac_cv_use_pcx='wxUSE_PCX=no' | |
7601 | fi | |
698dcdb6 | 7602 | |
10f2d63a | 7603 | else |
698dcdb6 | 7604 | |
10f2d63a VZ |
7605 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` |
7606 | if test "x$LINE" != x ; then | |
7607 | eval "DEFAULT_$LINE" | |
7608 | else | |
7609 | no_cache=1 | |
7610 | fi | |
7611 | ||
7612 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
698dcdb6 VZ |
7613 | |
7614 | fi | |
10f2d63a VZ |
7615 | |
7616 | ||
7617 | eval "$ac_cv_use_pcx" | |
7618 | if test "$no_cache" != 1; then | |
7619 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
7620 | fi | |
7621 | ||
7622 | if test "$wxUSE_PCX" = yes; then | |
698dcdb6 | 7623 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7624 | else |
698dcdb6 | 7625 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7626 | fi |
698dcdb6 | 7627 | |
10f2d63a | 7628 | |
698dcdb6 | 7629 | echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6 |
ab252f7b | 7630 | echo "configure:7631: checking for --enable-pnm" >&5 |
10f2d63a VZ |
7631 | no_cache=0 |
7632 | # Check whether --enable-pnm or --disable-pnm was given. | |
7633 | if test "${enable_pnm+set}" = set; then | |
7634 | enableval="$enable_pnm" | |
698dcdb6 | 7635 | |
10f2d63a VZ |
7636 | if test "$enableval" = yes; then |
7637 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
7638 | else | |
7639 | ac_cv_use_pnm='wxUSE_PNM=no' | |
7640 | fi | |
698dcdb6 | 7641 | |
10f2d63a | 7642 | else |
698dcdb6 | 7643 | |
10f2d63a VZ |
7644 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` |
7645 | if test "x$LINE" != x ; then | |
7646 | eval "DEFAULT_$LINE" | |
7647 | else | |
7648 | no_cache=1 | |
7649 | fi | |
7650 | ||
7651 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
698dcdb6 VZ |
7652 | |
7653 | fi | |
10f2d63a VZ |
7654 | |
7655 | ||
7656 | eval "$ac_cv_use_pnm" | |
7657 | if test "$no_cache" != 1; then | |
7658 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
7659 | fi | |
7660 | ||
7661 | if test "$wxUSE_PNM" = yes; then | |
698dcdb6 | 7662 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7663 | else |
698dcdb6 | 7664 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7665 | fi |
698dcdb6 | 7666 | |
10f2d63a | 7667 | |
698dcdb6 | 7668 | echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6 |
ab252f7b | 7669 | echo "configure:7670: checking for --enable-pnm" >&5 |
0046ff7c VS |
7670 | no_cache=0 |
7671 | # Check whether --enable-pnm or --disable-pnm was given. | |
7672 | if test "${enable_pnm+set}" = set; then | |
7673 | enableval="$enable_pnm" | |
698dcdb6 | 7674 | |
0046ff7c VS |
7675 | if test "$enableval" = yes; then |
7676 | ac_cv_use_pnm='wxUSE_XPM=yes' | |
7677 | else | |
7678 | ac_cv_use_pnm='wxUSE_XPM=no' | |
7679 | fi | |
698dcdb6 | 7680 | |
0046ff7c | 7681 | else |
698dcdb6 | 7682 | |
0046ff7c VS |
7683 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` |
7684 | if test "x$LINE" != x ; then | |
7685 | eval "DEFAULT_$LINE" | |
7686 | else | |
7687 | no_cache=1 | |
7688 | fi | |
7689 | ||
7690 | ac_cv_use_pnm='wxUSE_XPM='$DEFAULT_wxUSE_XPM | |
698dcdb6 VZ |
7691 | |
7692 | fi | |
0046ff7c VS |
7693 | |
7694 | ||
7695 | eval "$ac_cv_use_pnm" | |
7696 | if test "$no_cache" != 1; then | |
7697 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
7698 | fi | |
7699 | ||
7700 | if test "$wxUSE_XPM" = yes; then | |
698dcdb6 | 7701 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 7702 | else |
698dcdb6 | 7703 | echo "$ac_t""no" 1>&6 |
0046ff7c | 7704 | fi |
698dcdb6 | 7705 | |
0046ff7c | 7706 | |
b12915c1 VZ |
7707 | fi |
7708 | ||
698dcdb6 | 7709 | |
10f2d63a VZ |
7710 | echo "saving argument cache $wx_arg_cache_file" |
7711 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
698dcdb6 | 7712 | |
10f2d63a | 7713 | |
698dcdb6 VZ |
7714 | |
7715 | echo $ac_n "checking for toolkit""... $ac_c" 1>&6 | |
ab252f7b | 7716 | echo "configure:7717: checking for toolkit" >&5 |
10f2d63a VZ |
7717 | |
7718 | if test "$wxUSE_GUI" = "yes"; then | |
7719 | ||
b12915c1 | 7720 | if test "$USE_BEOS" = 1; then |
698dcdb6 | 7721 | { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; } |
b12915c1 VZ |
7722 | fi |
7723 | ||
10f2d63a VZ |
7724 | if test "$TOOLKIT_GIVEN" = 1; then |
7725 | for toolkit in `echo $ALL_TOOLKITS`; do | |
7726 | var=wxUSE_$toolkit | |
7727 | eval "value=\$${var}" | |
7728 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
7729 | done | |
7730 | else | |
7731 | for toolkit in `echo $ALL_TOOLKITS`; do | |
7732 | if test "$has_toolkit_in_cache" != 1; then | |
7733 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
7734 | else | |
7735 | var=DEFAULT_wxUSE_$toolkit | |
7736 | fi | |
7737 | eval "wxUSE_$toolkit=\$${var}" | |
7738 | done | |
7739 | fi | |
7740 | ||
1e6feb95 | 7741 | NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0} + ${wxUSE_MGL:-0}` |
cf27ef00 | 7742 | |
ec14dd32 VZ |
7743 | case "${host}" in |
7744 | *-pc-os2_emx ) | |
7745 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
7746 | # PATH_IFS is autodetected by OS/2's configure (usually ';') | |
7747 | LEX_STEM="lexyy" | |
7748 | ;; | |
7749 | *) | |
7750 | PATH_IFS=':' | |
7751 | LEX_STEM="lex.yy" | |
7752 | ;; | |
7753 | esac | |
10f2d63a VZ |
7754 | |
7755 | case "$NUM_TOOLKITS" in | |
7756 | 1) | |
7757 | ;; | |
7758 | 0) | |
698dcdb6 | 7759 | { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; } |
10f2d63a VZ |
7760 | ;; |
7761 | *) | |
698dcdb6 | 7762 | { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; } |
10f2d63a VZ |
7763 | esac |
7764 | ||
7765 | for toolkit in `echo $ALL_TOOLKITS`; do | |
7766 | var=wxUSE_$toolkit | |
7767 | eval "value=\$${var}" | |
7768 | if test "x$value" != x; then | |
7769 | cache_var=CACHE_$toolkit | |
7770 | eval "cache=\$${cache_var}" | |
7771 | if test "$cache" = 1; then | |
7772 | echo "$var=$value" >> ${wx_arg_cache_file} | |
7773 | fi | |
7774 | if test "$value" = 1; then | |
8168de4c VZ |
7775 | toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]` |
7776 | echo "$ac_t""$toolkit_echo" 1>&6 | |
10f2d63a VZ |
7777 | fi |
7778 | fi | |
7779 | done | |
7780 | ||
7781 | else | |
cf27ef00 | 7782 | PATH_IFS=':' |
698dcdb6 | 7783 | echo "$ac_t""base only" 1>&6 |
10f2d63a VZ |
7784 | fi |
7785 | ||
698dcdb6 VZ |
7786 | |
7787 | cat > confcache <<\EOF | |
10f2d63a VZ |
7788 | # This file is a shell script that caches the results of configure |
7789 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
7790 | # scripts and configure runs. It is not useful on other systems. |
7791 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 7792 | # |
698dcdb6 VZ |
7793 | # By default, configure uses ./config.cache as the cache file, |
7794 | # creating it if it does not exist already. You can give configure | |
7795 | # the --cache-file=FILE option to use a different cache file; that is | |
7796 | # what configure does when it calls configure scripts in | |
7797 | # subdirectories, so they share the cache. | |
7798 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
7799 | # config.status only pays attention to the cache file if you give it the | |
7800 | # --recheck option to rerun configure. | |
10f2d63a | 7801 | # |
698dcdb6 | 7802 | EOF |
10f2d63a VZ |
7803 | # The following way of writing the cache mishandles newlines in values, |
7804 | # but we know of no workaround that is simple, portable, and efficient. | |
7805 | # So, don't put newlines in cache variables' values. | |
7806 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
7807 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
7808 | (set) 2>&1 | |
7809 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
7810 | *ac_space=\ *) | |
7811 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
7812 | # turns \\\\ into \\, and sed turns \\ into \). | |
7813 | sed -n \ | |
7814 | -e "s/'/'\\\\''/g" \ | |
7815 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
7816 | ;; | |
7817 | *) | |
7818 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7819 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
7820 | ;; | |
7821 | esac >> confcache | |
7822 | if cmp -s $cache_file confcache; then | |
7823 | : | |
7824 | else | |
10f2d63a | 7825 | if test -w $cache_file; then |
698dcdb6 VZ |
7826 | echo "updating cache $cache_file" |
7827 | cat confcache > $cache_file | |
10f2d63a VZ |
7828 | else |
7829 | echo "not updating unwritable cache $cache_file" | |
7830 | fi | |
7831 | fi | |
7832 | rm -f confcache | |
7833 | ||
698dcdb6 | 7834 | |
e59890c3 | 7835 | if test "$build" != "$host" ; then |
10f2d63a VZ |
7836 | CC=$host_alias-gcc |
7837 | CXX=$host_alias-c++ | |
7838 | AR=$host_alias-ar | |
7839 | RANLIB=$host_alias-ranlib | |
7840 | DLLTOOL=$host_alias-dlltool | |
32832908 | 7841 | RESCOMP=$host_alias-windres |
10f2d63a VZ |
7842 | LD=$host_alias-ld |
7843 | NM=$host_alias-nm | |
7844 | STRIP=$host_alias-strip | |
10f2d63a VZ |
7845 | fi |
7846 | ||
698dcdb6 | 7847 | # Extract the first word of "gcc", so it can be a program name with args. |
1e487827 | 7848 | set dummy gcc; ac_word=$2 |
698dcdb6 | 7849 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
ab252f7b | 7850 | echo "configure:7851: checking for $ac_word" >&5 |
698dcdb6 VZ |
7851 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
7852 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6232543b VS |
7853 | else |
7854 | if test -n "$CC"; then | |
7855 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10f2d63a | 7856 | else |
698dcdb6 VZ |
7857 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
7858 | ac_dummy="$PATH" | |
7859 | for ac_dir in $ac_dummy; do | |
7860 | test -z "$ac_dir" && ac_dir=. | |
7861 | if test -f $ac_dir/$ac_word; then | |
7862 | ac_cv_prog_CC="gcc" | |
7863 | break | |
7864 | fi | |
7865 | done | |
7866 | IFS="$ac_save_ifs" | |
10f2d63a | 7867 | fi |
6232543b | 7868 | fi |
698dcdb6 | 7869 | CC="$ac_cv_prog_CC" |
6232543b | 7870 | if test -n "$CC"; then |
698dcdb6 | 7871 | echo "$ac_t""$CC" 1>&6 |
1e487827 | 7872 | else |
698dcdb6 | 7873 | echo "$ac_t""no" 1>&6 |
1e487827 | 7874 | fi |
6232543b | 7875 | |
1e487827 VS |
7876 | if test -z "$CC"; then |
7877 | # Extract the first word of "cc", so it can be a program name with args. | |
7878 | set dummy cc; ac_word=$2 | |
698dcdb6 | 7879 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
ab252f7b | 7880 | echo "configure:7881: checking for $ac_word" >&5 |
698dcdb6 VZ |
7881 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
7882 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 VS |
7883 | else |
7884 | if test -n "$CC"; then | |
7885 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
7886 | else | |
698dcdb6 | 7887 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1e487827 | 7888 | ac_prog_rejected=no |
698dcdb6 VZ |
7889 | ac_dummy="$PATH" |
7890 | for ac_dir in $ac_dummy; do | |
7891 | test -z "$ac_dir" && ac_dir=. | |
7892 | if test -f $ac_dir/$ac_word; then | |
7893 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
7894 | ac_prog_rejected=yes | |
7895 | continue | |
7896 | fi | |
7897 | ac_cv_prog_CC="cc" | |
7898 | break | |
7899 | fi | |
7900 | done | |
7901 | IFS="$ac_save_ifs" | |
1e487827 VS |
7902 | if test $ac_prog_rejected = yes; then |
7903 | # We found a bogon in the path, so make sure we never use it. | |
7904 | set dummy $ac_cv_prog_CC | |
7905 | shift | |
698dcdb6 | 7906 | if test $# -gt 0; then |
1e487827 VS |
7907 | # We chose a different compiler from the bogus one. |
7908 | # However, it has the same basename, so the bogon will be chosen | |
7909 | # first if we set CC to just the basename; use the full file name. | |
7910 | shift | |
698dcdb6 | 7911 | set dummy "$ac_dir/$ac_word" "$@" |
1e487827 VS |
7912 | shift |
7913 | ac_cv_prog_CC="$@" | |
703e0a69 | 7914 | fi |
1e487827 VS |
7915 | fi |
7916 | fi | |
7917 | fi | |
698dcdb6 | 7918 | CC="$ac_cv_prog_CC" |
1e487827 | 7919 | if test -n "$CC"; then |
698dcdb6 | 7920 | echo "$ac_t""$CC" 1>&6 |
703e0a69 | 7921 | else |
698dcdb6 | 7922 | echo "$ac_t""no" 1>&6 |
703e0a69 | 7923 | fi |
1e487827 | 7924 | |
698dcdb6 VZ |
7925 | if test -z "$CC"; then |
7926 | case "`uname -s`" in | |
7927 | *win32* | *WIN32*) | |
7928 | # Extract the first word of "cl", so it can be a program name with args. | |
7929 | set dummy cl; ac_word=$2 | |
7930 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
ab252f7b | 7931 | echo "configure:7932: checking for $ac_word" >&5 |
698dcdb6 VZ |
7932 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
7933 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 VS |
7934 | else |
7935 | if test -n "$CC"; then | |
7936 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
703e0a69 | 7937 | else |
698dcdb6 VZ |
7938 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
7939 | ac_dummy="$PATH" | |
7940 | for ac_dir in $ac_dummy; do | |
7941 | test -z "$ac_dir" && ac_dir=. | |
7942 | if test -f $ac_dir/$ac_word; then | |
7943 | ac_cv_prog_CC="cl" | |
7944 | break | |
7945 | fi | |
7946 | done | |
7947 | IFS="$ac_save_ifs" | |
703e0a69 | 7948 | fi |
1e487827 | 7949 | fi |
698dcdb6 | 7950 | CC="$ac_cv_prog_CC" |
1e487827 | 7951 | if test -n "$CC"; then |
698dcdb6 | 7952 | echo "$ac_t""$CC" 1>&6 |
1e487827 | 7953 | else |
698dcdb6 | 7954 | echo "$ac_t""no" 1>&6 |
1e487827 | 7955 | fi |
698dcdb6 VZ |
7956 | ;; |
7957 | esac | |
7958 | fi | |
7959 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
1e487827 VS |
7960 | fi |
7961 | ||
698dcdb6 | 7962 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
ab252f7b | 7963 | echo "configure:7964: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
1e487827 | 7964 | |
698dcdb6 VZ |
7965 | ac_ext=c |
7966 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
7967 | ac_cpp='$CPP $CPPFLAGS' | |
7968 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
7969 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7970 | cross_compiling=$ac_cv_prog_cc_cross | |
6232543b | 7971 | |
698dcdb6 | 7972 | cat > conftest.$ac_ext << EOF |
1e487827 | 7973 | |
ab252f7b | 7974 | #line 7975 "configure" |
1e487827 VS |
7975 | #include "confdefs.h" |
7976 | ||
698dcdb6 VZ |
7977 | main(){return(0);} |
7978 | EOF | |
ab252f7b | 7979 | if { (eval echo configure:7980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
7980 | ac_cv_prog_cc_works=yes |
7981 | # If we can't run a trivial program, we are probably using a cross compiler. | |
7982 | if (./conftest; exit) 2>/dev/null; then | |
7983 | ac_cv_prog_cc_cross=no | |
7984 | else | |
7985 | ac_cv_prog_cc_cross=yes | |
7986 | fi | |
7987 | else | |
7988 | echo "configure: failed program was:" >&5 | |
7989 | cat conftest.$ac_ext >&5 | |
7990 | ac_cv_prog_cc_works=no | |
7991 | fi | |
7992 | rm -fr conftest* | |
7993 | ac_ext=c | |
7994 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
7995 | ac_cpp='$CPP $CPPFLAGS' | |
7996 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
7997 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7998 | cross_compiling=$ac_cv_prog_cc_cross | |
7999 | ||
8000 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
8001 | if test $ac_cv_prog_cc_works = no; then | |
8002 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
8003 | fi | |
8004 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
ab252f7b | 8005 | echo "configure:8006: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
698dcdb6 VZ |
8006 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
8007 | cross_compiling=$ac_cv_prog_cc_cross | |
8008 | ||
8009 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
ab252f7b | 8010 | echo "configure:8011: checking whether we are using GNU C" >&5 |
698dcdb6 VZ |
8011 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
8012 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8013 | else | |
8014 | cat > conftest.c <<EOF | |
8015 | #ifdef __GNUC__ | |
8016 | yes; | |
1e487827 | 8017 | #endif |
698dcdb6 | 8018 | EOF |
ab252f7b | 8019 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8020: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
698dcdb6 VZ |
8020 | ac_cv_prog_gcc=yes |
8021 | else | |
8022 | ac_cv_prog_gcc=no | |
8023 | fi | |
8024 | fi | |
1e487827 | 8025 | |
698dcdb6 | 8026 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
1e487827 | 8027 | |
698dcdb6 VZ |
8028 | if test $ac_cv_prog_gcc = yes; then |
8029 | GCC=yes | |
8030 | else | |
8031 | GCC= | |
8032 | fi | |
1e487827 | 8033 | |
698dcdb6 VZ |
8034 | ac_test_CFLAGS="${CFLAGS+set}" |
8035 | ac_save_CFLAGS="$CFLAGS" | |
8036 | CFLAGS= | |
8037 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
ab252f7b | 8038 | echo "configure:8039: checking whether ${CC-cc} accepts -g" >&5 |
698dcdb6 VZ |
8039 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
8040 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8041 | else | |
8042 | echo 'void f(){}' > conftest.c | |
8043 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
10f2d63a VZ |
8044 | ac_cv_prog_cc_g=yes |
8045 | else | |
698dcdb6 | 8046 | ac_cv_prog_cc_g=no |
10f2d63a | 8047 | fi |
698dcdb6 VZ |
8048 | rm -f conftest* |
8049 | ||
10f2d63a | 8050 | fi |
698dcdb6 VZ |
8051 | |
8052 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
10f2d63a | 8053 | if test "$ac_test_CFLAGS" = set; then |
698dcdb6 | 8054 | CFLAGS="$ac_save_CFLAGS" |
10f2d63a VZ |
8055 | elif test $ac_cv_prog_cc_g = yes; then |
8056 | if test "$GCC" = yes; then | |
8057 | CFLAGS="-g -O2" | |
8058 | else | |
8059 | CFLAGS="-g" | |
8060 | fi | |
8061 | else | |
8062 | if test "$GCC" = yes; then | |
8063 | CFLAGS="-O2" | |
8064 | else | |
8065 | CFLAGS= | |
8066 | fi | |
8067 | fi | |
8068 | ||
8069 | ||
8070 | CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'` | |
8071 | ||
698dcdb6 | 8072 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
ab252f7b | 8073 | echo "configure:8074: checking how to run the C preprocessor" >&5 |
10f2d63a VZ |
8074 | # On Suns, sometimes $CPP names a directory. |
8075 | if test -n "$CPP" && test -d "$CPP"; then | |
8076 | CPP= | |
8077 | fi | |
8078 | if test -z "$CPP"; then | |
698dcdb6 VZ |
8079 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
8080 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8081 | else | |
8082 | # This must be in double quotes, not single quotes, because CPP may get | |
8083 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
8084 | CPP="${CC-cc} -E" | |
10f2d63a | 8085 | # On the NeXT, cc -E runs the code through the compiler's parser, |
698dcdb6 VZ |
8086 | # not just through cpp. |
8087 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 8088 | #line 8089 "configure" |
10f2d63a VZ |
8089 | #include "confdefs.h" |
8090 | #include <assert.h> | |
698dcdb6 VZ |
8091 | Syntax Error |
8092 | EOF | |
8093 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
ab252f7b | 8094 | { (eval echo configure:8095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8095 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8096 | if test -z "$ac_err"; then | |
10f2d63a VZ |
8097 | : |
8098 | else | |
698dcdb6 VZ |
8099 | echo "$ac_err" >&5 |
8100 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8101 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8102 | rm -rf conftest* |
8103 | CPP="${CC-cc} -E -traditional-cpp" | |
8104 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 8105 | #line 8106 "configure" |
10f2d63a | 8106 | #include "confdefs.h" |
698dcdb6 VZ |
8107 | #include <assert.h> |
8108 | Syntax Error | |
8109 | EOF | |
8110 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
ab252f7b | 8111 | { (eval echo configure:8112: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8112 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8113 | if test -z "$ac_err"; then | |
8114 | : | |
10f2d63a | 8115 | else |
698dcdb6 VZ |
8116 | echo "$ac_err" >&5 |
8117 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8118 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8119 | rm -rf conftest* |
8120 | CPP="${CC-cc} -nologo -E" | |
8121 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 8122 | #line 8123 "configure" |
10f2d63a VZ |
8123 | #include "confdefs.h" |
8124 | #include <assert.h> | |
698dcdb6 VZ |
8125 | Syntax Error |
8126 | EOF | |
8127 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
ab252f7b | 8128 | { (eval echo configure:8129: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8129 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8130 | if test -z "$ac_err"; then | |
10f2d63a VZ |
8131 | : |
8132 | else | |
698dcdb6 VZ |
8133 | echo "$ac_err" >&5 |
8134 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8135 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8136 | rm -rf conftest* |
8137 | CPP=/lib/cpp | |
10f2d63a | 8138 | fi |
698dcdb6 | 8139 | rm -f conftest* |
10f2d63a | 8140 | fi |
698dcdb6 | 8141 | rm -f conftest* |
703e0a69 | 8142 | fi |
698dcdb6 VZ |
8143 | rm -f conftest* |
8144 | ac_cv_prog_CPP="$CPP" | |
8145 | fi | |
8146 | CPP="$ac_cv_prog_CPP" | |
10f2d63a | 8147 | else |
698dcdb6 | 8148 | ac_cv_prog_CPP="$CPP" |
10f2d63a | 8149 | fi |
698dcdb6 | 8150 | echo "$ac_t""$CPP" 1>&6 |
10f2d63a VZ |
8151 | |
8152 | ||
698dcdb6 VZ |
8153 | if test $ac_cv_prog_gcc = yes; then |
8154 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
ab252f7b | 8155 | echo "configure:8156: checking whether ${CC-cc} needs -traditional" >&5 |
698dcdb6 VZ |
8156 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
8157 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8158 | else |
8159 | ac_pattern="Autoconf.*'x'" | |
698dcdb6 | 8160 | cat > conftest.$ac_ext <<EOF |
ab252f7b | 8161 | #line 8162 "configure" |
10f2d63a VZ |
8162 | #include "confdefs.h" |
8163 | #include <sgtty.h> | |
8164 | Autoconf TIOCGETP | |
698dcdb6 | 8165 | EOF |
10f2d63a VZ |
8166 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8167 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
698dcdb6 | 8168 | rm -rf conftest* |
10f2d63a VZ |
8169 | ac_cv_prog_gcc_traditional=yes |
8170 | else | |
698dcdb6 | 8171 | rm -rf conftest* |
10f2d63a VZ |
8172 | ac_cv_prog_gcc_traditional=no |
8173 | fi | |
8174 | rm -f conftest* | |
8175 | ||
698dcdb6 | 8176 | |
10f2d63a | 8177 | if test $ac_cv_prog_gcc_traditional = no; then |
698dcdb6 | 8178 | cat > conftest.$ac_ext <<EOF |
ab252f7b | 8179 | #line 8180 "configure" |
10f2d63a VZ |
8180 | #include "confdefs.h" |
8181 | #include <termio.h> | |
8182 | Autoconf TCGETA | |
698dcdb6 | 8183 | EOF |
10f2d63a VZ |
8184 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8185 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
698dcdb6 | 8186 | rm -rf conftest* |
10f2d63a VZ |
8187 | ac_cv_prog_gcc_traditional=yes |
8188 | fi | |
8189 | rm -f conftest* | |
8190 | ||
8191 | fi | |
8192 | fi | |
698dcdb6 VZ |
8193 | |
8194 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
10f2d63a VZ |
8195 | if test $ac_cv_prog_gcc_traditional = yes; then |
8196 | CC="$CC -traditional" | |
8197 | fi | |
8198 | fi | |
8199 | ||
703e0a69 | 8200 | |
698dcdb6 VZ |
8201 | |
8202 | ac_ext=C | |
8203 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 8204 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
8205 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
8206 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8207 | cross_compiling=$ac_cv_prog_cxx_cross | |
8208 | ||
8209 | ||
8210 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | |
8211 | do | |
8212 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
8213 | set dummy $ac_prog; ac_word=$2 | |
8214 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
ab252f7b | 8215 | echo "configure:8216: checking for $ac_word" >&5 |
698dcdb6 VZ |
8216 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
8217 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8218 | else |
8219 | if test -n "$CXX"; then | |
8220 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
8221 | else | |
698dcdb6 VZ |
8222 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8223 | ac_dummy="$PATH" | |
8224 | for ac_dir in $ac_dummy; do | |
8225 | test -z "$ac_dir" && ac_dir=. | |
8226 | if test -f $ac_dir/$ac_word; then | |
8227 | ac_cv_prog_CXX="$ac_prog" | |
8228 | break | |
8229 | fi | |
8230 | done | |
8231 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8232 | fi |
8233 | fi | |
698dcdb6 | 8234 | CXX="$ac_cv_prog_CXX" |
10f2d63a | 8235 | if test -n "$CXX"; then |
698dcdb6 | 8236 | echo "$ac_t""$CXX" 1>&6 |
10f2d63a | 8237 | else |
698dcdb6 | 8238 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8239 | fi |
8240 | ||
698dcdb6 | 8241 | test -n "$CXX" && break |
10f2d63a | 8242 | done |
698dcdb6 | 8243 | test -n "$CXX" || CXX="gcc" |
10f2d63a VZ |
8244 | |
8245 | ||
698dcdb6 | 8246 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
ab252f7b | 8247 | echo "configure:8248: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
10f2d63a | 8248 | |
698dcdb6 VZ |
8249 | ac_ext=C |
8250 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8251 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8252 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8253 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8254 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 8255 | |
698dcdb6 VZ |
8256 | cat > conftest.$ac_ext << EOF |
8257 | ||
ab252f7b | 8258 | #line 8259 "configure" |
10f2d63a VZ |
8259 | #include "confdefs.h" |
8260 | ||
698dcdb6 VZ |
8261 | int main(){return(0);} |
8262 | EOF | |
ab252f7b | 8263 | if { (eval echo configure:8264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
8264 | ac_cv_prog_cxx_works=yes |
8265 | # If we can't run a trivial program, we are probably using a cross compiler. | |
8266 | if (./conftest; exit) 2>/dev/null; then | |
8267 | ac_cv_prog_cxx_cross=no | |
8268 | else | |
8269 | ac_cv_prog_cxx_cross=yes | |
8270 | fi | |
8271 | else | |
8272 | echo "configure: failed program was:" >&5 | |
8273 | cat conftest.$ac_ext >&5 | |
8274 | ac_cv_prog_cxx_works=no | |
8275 | fi | |
8276 | rm -fr conftest* | |
8277 | ac_ext=C | |
8278 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8279 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8280 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8281 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8282 | cross_compiling=$ac_cv_prog_cxx_cross | |
8283 | ||
8284 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 | |
8285 | if test $ac_cv_prog_cxx_works = no; then | |
8286 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
8287 | fi | |
8288 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
ab252f7b | 8289 | echo "configure:8290: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
698dcdb6 VZ |
8290 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
8291 | cross_compiling=$ac_cv_prog_cxx_cross | |
8292 | ||
8293 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 | |
ab252f7b | 8294 | echo "configure:8295: checking whether we are using GNU C++" >&5 |
698dcdb6 VZ |
8295 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
8296 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8297 | else | |
8298 | cat > conftest.C <<EOF | |
8299 | #ifdef __GNUC__ | |
8300 | yes; | |
10f2d63a | 8301 | #endif |
698dcdb6 | 8302 | EOF |
ab252f7b | 8303 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:8304: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
698dcdb6 VZ |
8304 | ac_cv_prog_gxx=yes |
8305 | else | |
8306 | ac_cv_prog_gxx=no | |
8307 | fi | |
8308 | fi | |
10f2d63a | 8309 | |
698dcdb6 | 8310 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
10f2d63a | 8311 | |
698dcdb6 VZ |
8312 | if test $ac_cv_prog_gxx = yes; then |
8313 | GXX=yes | |
8314 | else | |
8315 | GXX= | |
8316 | fi | |
10f2d63a | 8317 | |
698dcdb6 VZ |
8318 | ac_test_CXXFLAGS="${CXXFLAGS+set}" |
8319 | ac_save_CXXFLAGS="$CXXFLAGS" | |
8320 | CXXFLAGS= | |
8321 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
ab252f7b | 8322 | echo "configure:8323: checking whether ${CXX-g++} accepts -g" >&5 |
698dcdb6 VZ |
8323 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
8324 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8325 | else | |
8326 | echo 'void f(){}' > conftest.cc | |
8327 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
10f2d63a VZ |
8328 | ac_cv_prog_cxx_g=yes |
8329 | else | |
698dcdb6 | 8330 | ac_cv_prog_cxx_g=no |
10f2d63a | 8331 | fi |
698dcdb6 VZ |
8332 | rm -f conftest* |
8333 | ||
10f2d63a | 8334 | fi |
698dcdb6 VZ |
8335 | |
8336 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
10f2d63a | 8337 | if test "$ac_test_CXXFLAGS" = set; then |
698dcdb6 | 8338 | CXXFLAGS="$ac_save_CXXFLAGS" |
10f2d63a VZ |
8339 | elif test $ac_cv_prog_cxx_g = yes; then |
8340 | if test "$GXX" = yes; then | |
8341 | CXXFLAGS="-g -O2" | |
8342 | else | |
8343 | CXXFLAGS="-g" | |
8344 | fi | |
8345 | else | |
8346 | if test "$GXX" = yes; then | |
8347 | CXXFLAGS="-O2" | |
8348 | else | |
8349 | CXXFLAGS= | |
8350 | fi | |
8351 | fi | |
8352 | ||
8353 | ||
698dcdb6 | 8354 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 |
ab252f7b | 8355 | echo "configure:8356: checking how to run the C++ preprocessor" >&5 |
1e487827 | 8356 | if test -z "$CXXCPP"; then |
698dcdb6 VZ |
8357 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then |
8358 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 8359 | else |
698dcdb6 VZ |
8360 | ac_ext=C |
8361 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8362 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8363 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8364 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8365 | cross_compiling=$ac_cv_prog_cxx_cross | |
8366 | CXXCPP="${CXX-g++} -E" | |
8367 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 8368 | #line 8369 "configure" |
1e487827 | 8369 | #include "confdefs.h" |
698dcdb6 VZ |
8370 | #include <stdlib.h> |
8371 | EOF | |
8372 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
ab252f7b | 8373 | { (eval echo configure:8374: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8374 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8375 | if test -z "$ac_err"; then | |
1e487827 VS |
8376 | : |
8377 | else | |
698dcdb6 VZ |
8378 | echo "$ac_err" >&5 |
8379 | echo "configure: failed program was:" >&5 | |
1e487827 | 8380 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8381 | rm -rf conftest* |
8382 | CXXCPP=/lib/cpp | |
1e487827 | 8383 | fi |
698dcdb6 VZ |
8384 | rm -f conftest* |
8385 | ac_cv_prog_CXXCPP="$CXXCPP" | |
8386 | ac_ext=C | |
8387 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8388 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8389 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8390 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8391 | cross_compiling=$ac_cv_prog_cxx_cross | |
1e487827 | 8392 | fi |
1e487827 | 8393 | fi |
698dcdb6 VZ |
8394 | CXXCPP="$ac_cv_prog_CXXCPP" |
8395 | echo "$ac_t""$CXXCPP" 1>&6 | |
1e487827 | 8396 | |
10f2d63a VZ |
8397 | |
8398 | CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'` | |
8399 | ||
8400 | ac_ext=c | |
698dcdb6 | 8401 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 8402 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
8403 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
8404 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8405 | cross_compiling=$ac_cv_prog_cc_cross | |
8406 | ||
8407 | ||
8408 | # Extract the first word of "ranlib", so it can be a program name with args. | |
8409 | set dummy ranlib; ac_word=$2 | |
8410 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
ab252f7b | 8411 | echo "configure:8412: checking for $ac_word" >&5 |
698dcdb6 VZ |
8412 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
8413 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8414 | else |
8415 | if test -n "$RANLIB"; then | |
8416 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8417 | else | |
698dcdb6 VZ |
8418 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8419 | ac_dummy="$PATH" | |
8420 | for ac_dir in $ac_dummy; do | |
8421 | test -z "$ac_dir" && ac_dir=. | |
8422 | if test -f $ac_dir/$ac_word; then | |
8423 | ac_cv_prog_RANLIB="ranlib" | |
8424 | break | |
8425 | fi | |
8426 | done | |
8427 | IFS="$ac_save_ifs" | |
8428 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
10f2d63a VZ |
8429 | fi |
8430 | fi | |
698dcdb6 | 8431 | RANLIB="$ac_cv_prog_RANLIB" |
10f2d63a | 8432 | if test -n "$RANLIB"; then |
698dcdb6 | 8433 | echo "$ac_t""$RANLIB" 1>&6 |
10f2d63a | 8434 | else |
698dcdb6 | 8435 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8436 | fi |
8437 | ||
8438 | ||
8439 | # Extract the first word of "ar", so it can be a program name with args. | |
8440 | set dummy ar; ac_word=$2 | |
698dcdb6 | 8441 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
ab252f7b | 8442 | echo "configure:8443: checking for $ac_word" >&5 |
698dcdb6 VZ |
8443 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
8444 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8445 | else |
8446 | if test -n "$AR"; then | |
8447 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8448 | else | |
698dcdb6 VZ |
8449 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8450 | ac_dummy="$PATH" | |
8451 | for ac_dir in $ac_dummy; do | |
8452 | test -z "$ac_dir" && ac_dir=. | |
8453 | if test -f $ac_dir/$ac_word; then | |
8454 | ac_cv_prog_AR="ar" | |
8455 | break | |
8456 | fi | |
8457 | done | |
8458 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8459 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
8460 | fi | |
8461 | fi | |
698dcdb6 | 8462 | AR="$ac_cv_prog_AR" |
10f2d63a | 8463 | if test -n "$AR"; then |
698dcdb6 | 8464 | echo "$ac_t""$AR" 1>&6 |
10f2d63a | 8465 | else |
698dcdb6 | 8466 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8467 | fi |
8468 | ||
698dcdb6 | 8469 | |
10f2d63a VZ |
8470 | # Find a good install program. We prefer a C program (faster), |
8471 | # so one script is as good as another. But avoid the broken or | |
8472 | # incompatible versions: | |
8473 | # SysV /etc/install, /usr/sbin/install | |
8474 | # SunOS /usr/etc/install | |
8475 | # IRIX /sbin/install | |
8476 | # AIX /bin/install | |
8477 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
8478 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
8479 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
8480 | # ./install, which can be erroneously created by make from ./install.sh. | |
698dcdb6 | 8481 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
ab252f7b | 8482 | echo "configure:8483: checking for a BSD compatible install" >&5 |
10f2d63a | 8483 | if test -z "$INSTALL"; then |
698dcdb6 VZ |
8484 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
8485 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 8486 | else |
698dcdb6 | 8487 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
10f2d63a VZ |
8488 | for ac_dir in $PATH; do |
8489 | # Account for people who put trailing slashes in PATH elements. | |
698dcdb6 VZ |
8490 | case "$ac_dir/" in |
8491 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
10f2d63a VZ |
8492 | *) |
8493 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
8494 | # Don't use installbsd from OSF since it installs stuff as root | |
8495 | # by default. | |
8496 | for ac_prog in ginstall scoinst install; do | |
698dcdb6 | 8497 | if test -f $ac_dir/$ac_prog; then |
10f2d63a | 8498 | if test $ac_prog = install && |
698dcdb6 | 8499 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
10f2d63a VZ |
8500 | # AIX install. It has an incompatible calling convention. |
8501 | : | |
8502 | else | |
8503 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
8504 | break 2 | |
8505 | fi | |
8506 | fi | |
8507 | done | |
8508 | ;; | |
8509 | esac | |
8510 | done | |
698dcdb6 | 8511 | IFS="$ac_save_IFS" |
10f2d63a VZ |
8512 | |
8513 | fi | |
8514 | if test "${ac_cv_path_install+set}" = set; then | |
698dcdb6 | 8515 | INSTALL="$ac_cv_path_install" |
10f2d63a VZ |
8516 | else |
8517 | # As a last resort, use the slow shell script. We don't cache a | |
8518 | # path for INSTALL within a source directory, because that will | |
8519 | # break other packages using the cache if that directory is | |
8520 | # removed, or if the path is relative. | |
698dcdb6 | 8521 | INSTALL="$ac_install_sh" |
10f2d63a VZ |
8522 | fi |
8523 | fi | |
698dcdb6 | 8524 | echo "$ac_t""$INSTALL" 1>&6 |
10f2d63a VZ |
8525 | |
8526 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
8527 | # It thinks the first close brace ends the variable substitution. | |
8528 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
8529 | ||
698dcdb6 | 8530 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
10f2d63a VZ |
8531 | |
8532 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
8533 | ||
698dcdb6 | 8534 | |
10f2d63a VZ |
8535 | # Extract the first word of "strip", so it can be a program name with args. |
8536 | set dummy strip; ac_word=$2 | |
698dcdb6 | 8537 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
ab252f7b | 8538 | echo "configure:8539: checking for $ac_word" >&5 |
698dcdb6 VZ |
8539 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
8540 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8541 | else |
8542 | if test -n "$STRIP"; then | |
8543 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
8544 | else | |
698dcdb6 VZ |
8545 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8546 | ac_dummy="$PATH" | |
8547 | for ac_dir in $ac_dummy; do | |
8548 | test -z "$ac_dir" && ac_dir=. | |
8549 | if test -f $ac_dir/$ac_word; then | |
8550 | ac_cv_prog_STRIP="strip" | |
8551 | break | |
8552 | fi | |
8553 | done | |
8554 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8555 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
8556 | fi | |
8557 | fi | |
698dcdb6 | 8558 | STRIP="$ac_cv_prog_STRIP" |
10f2d63a | 8559 | if test -n "$STRIP"; then |
698dcdb6 | 8560 | echo "$ac_t""$STRIP" 1>&6 |
10f2d63a | 8561 | else |
698dcdb6 | 8562 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8563 | fi |
8564 | ||
698dcdb6 VZ |
8565 | |
8566 | echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6 | |
ab252f7b | 8567 | echo "configure:8568: checking make for VPATH support" >&5 |
10f2d63a VZ |
8568 | cat - << EOF > confMake |
8569 | check : file | |
8570 | cp \$? \$@ | |
8571 | cp \$? final_file | |
8572 | EOF | |
8573 | ||
8574 | if test ! -d sub ; then | |
8575 | mkdir sub | |
8576 | fi | |
8577 | echo dummy > sub/file | |
f6bcfd97 | 8578 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null |
10f2d63a VZ |
8579 | RESULT=$? |
8580 | rm -f sub/file check final_file confMake | |
8581 | rmdir sub | |
8582 | if test "$RESULT" = 0; then | |
698dcdb6 | 8583 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8584 | else |
698dcdb6 VZ |
8585 | echo "$ac_t""no" 1>&6 |
8586 | { echo "configure: error: | |
1e487827 VS |
8587 | You need a make-utility that is able to use the variable |
8588 | VPATH correctly. | |
8589 | If your version of make does not support VPATH correctly, | |
8590 | please install GNU-make (possibly as gmake), and start | |
8591 | configure with the following command: | |
8592 | export MAKE=gmake; ./configure for sh-type shells | |
8593 | setenv MAKE gmake; ./configure for csh-type shells | |
8594 | Also please do remember to use gmake in this case every time | |
8595 | you are trying to compile. | |
698dcdb6 | 8596 | " 1>&2; exit 1; } |
10f2d63a VZ |
8597 | fi |
8598 | ||
8599 | for ac_prog in 'bison -y' byacc | |
8600 | do | |
698dcdb6 | 8601 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
10f2d63a | 8602 | set dummy $ac_prog; ac_word=$2 |
698dcdb6 | 8603 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
ab252f7b | 8604 | echo "configure:8605: checking for $ac_word" >&5 |
698dcdb6 VZ |
8605 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
8606 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8607 | else |
8608 | if test -n "$YACC"; then | |
8609 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
8610 | else | |
698dcdb6 VZ |
8611 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8612 | ac_dummy="$PATH" | |
8613 | for ac_dir in $ac_dummy; do | |
8614 | test -z "$ac_dir" && ac_dir=. | |
8615 | if test -f $ac_dir/$ac_word; then | |
8616 | ac_cv_prog_YACC="$ac_prog" | |
8617 | break | |
8618 | fi | |
8619 | done | |
8620 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8621 | fi |
8622 | fi | |
698dcdb6 | 8623 | YACC="$ac_cv_prog_YACC" |
10f2d63a | 8624 | if test -n "$YACC"; then |
698dcdb6 | 8625 | echo "$ac_t""$YACC" 1>&6 |
10f2d63a | 8626 | else |
698dcdb6 | 8627 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8628 | fi |
8629 | ||
698dcdb6 | 8630 | test -n "$YACC" && break |
10f2d63a VZ |
8631 | done |
8632 | test -n "$YACC" || YACC="yacc" | |
8633 | ||
698dcdb6 VZ |
8634 | |
8635 | # Extract the first word of "flex", so it can be a program name with args. | |
8636 | set dummy flex; ac_word=$2 | |
8637 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
ab252f7b | 8638 | echo "configure:8639: checking for $ac_word" >&5 |
698dcdb6 VZ |
8639 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
8640 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8641 | else |
8642 | if test -n "$LEX"; then | |
8643 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
8644 | else | |
698dcdb6 VZ |
8645 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8646 | ac_dummy="$PATH" | |
8647 | for ac_dir in $ac_dummy; do | |
8648 | test -z "$ac_dir" && ac_dir=. | |
8649 | if test -f $ac_dir/$ac_word; then | |
8650 | ac_cv_prog_LEX="flex" | |
8651 | break | |
8652 | fi | |
8653 | done | |
8654 | IFS="$ac_save_ifs" | |
8655 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
10f2d63a VZ |
8656 | fi |
8657 | fi | |
698dcdb6 | 8658 | LEX="$ac_cv_prog_LEX" |
10f2d63a | 8659 | if test -n "$LEX"; then |
698dcdb6 | 8660 | echo "$ac_t""$LEX" 1>&6 |
10f2d63a | 8661 | else |
698dcdb6 | 8662 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8663 | fi |
8664 | ||
8665 | if test -z "$LEXLIB" | |
8666 | then | |
698dcdb6 VZ |
8667 | case "$LEX" in |
8668 | flex*) ac_lib=fl ;; | |
8669 | *) ac_lib=l ;; | |
8670 | esac | |
8671 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
ab252f7b | 8672 | echo "configure:8673: checking for yywrap in -l$ac_lib" >&5 |
698dcdb6 VZ |
8673 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
8674 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
8675 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8676 | else | |
8677 | ac_save_LIBS="$LIBS" | |
8678 | LIBS="-l$ac_lib $LIBS" | |
8679 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 8680 | #line 8681 "configure" |
10f2d63a VZ |
8681 | #include "confdefs.h" |
8682 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8683 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
8684 | builtin and then its argument prototype would still apply. */ |
8685 | char yywrap(); | |
10f2d63a | 8686 | |
698dcdb6 VZ |
8687 | int main() { |
8688 | yywrap() | |
8689 | ; return 0; } | |
8690 | EOF | |
ab252f7b | 8691 | if { (eval echo configure:8692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
8692 | rm -rf conftest* |
8693 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 8694 | else |
698dcdb6 VZ |
8695 | echo "configure: failed program was:" >&5 |
8696 | cat conftest.$ac_ext >&5 | |
8697 | rm -rf conftest* | |
8698 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 8699 | fi |
698dcdb6 VZ |
8700 | rm -f conftest* |
8701 | LIBS="$ac_save_LIBS" | |
8702 | ||
10f2d63a | 8703 | fi |
698dcdb6 VZ |
8704 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
8705 | echo "$ac_t""yes" 1>&6 | |
8706 | LEXLIB="-l$ac_lib" | |
8707 | else | |
8708 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
8709 | fi |
8710 | ||
8711 | fi | |
8712 | ||
8713 | ||
698dcdb6 | 8714 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
ab252f7b | 8715 | echo "configure:8716: checking whether ln -s works" >&5 |
698dcdb6 VZ |
8716 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
8717 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 8718 | else |
698dcdb6 VZ |
8719 | rm -f conftestdata |
8720 | if ln -s X conftestdata 2>/dev/null | |
8721 | then | |
8722 | rm -f conftestdata | |
8723 | ac_cv_prog_LN_S="ln -s" | |
10f2d63a | 8724 | else |
698dcdb6 | 8725 | ac_cv_prog_LN_S=ln |
10f2d63a VZ |
8726 | fi |
8727 | fi | |
698dcdb6 VZ |
8728 | LN_S="$ac_cv_prog_LN_S" |
8729 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
8730 | echo "$ac_t""yes" 1>&6 | |
10f2d63a | 8731 | else |
698dcdb6 | 8732 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8733 | fi |
8734 | ||
8735 | ||
8736 | ||
8737 | SEARCH_INCLUDE="\ | |
8738 | /usr/local/include \ | |
8739 | \ | |
8740 | /usr/Motif-1.2/include \ | |
8741 | /usr/Motif-2.1/include \ | |
8742 | \ | |
8743 | /usr/include/Motif1.2 \ | |
8744 | /opt/xpm/include/X11 \ | |
8745 | /opt/GBxpm/include/ \ | |
8746 | /opt/GBxpm/X11/include/ \ | |
8747 | \ | |
8748 | /usr/Motif1.2/include \ | |
8749 | /usr/dt/include \ | |
afc31813 VZ |
8750 | /usr/openwin/include \ |
8751 | \ | |
10f2d63a VZ |
8752 | /usr/include/Xm \ |
8753 | \ | |
8754 | /usr/X11R6/include \ | |
afc31813 | 8755 | /usr/X11R6.4/include \ |
10f2d63a VZ |
8756 | /usr/X11R5/include \ |
8757 | /usr/X11R4/include \ | |
8758 | \ | |
10f2d63a VZ |
8759 | /usr/include/X11R6 \ |
8760 | /usr/include/X11R5 \ | |
8761 | /usr/include/X11R4 \ | |
8762 | \ | |
8763 | /usr/local/X11R6/include \ | |
8764 | /usr/local/X11R5/include \ | |
8765 | /usr/local/X11R4/include \ | |
8766 | \ | |
8767 | /usr/local/include/X11R6 \ | |
8768 | /usr/local/include/X11R5 \ | |
8769 | /usr/local/include/X11R4 \ | |
8770 | \ | |
8771 | /usr/X11/include \ | |
8772 | /usr/include/X11 \ | |
8773 | /usr/local/X11/include \ | |
8774 | /usr/local/include/X11 \ | |
8775 | \ | |
8776 | /usr/X386/include \ | |
8777 | /usr/x386/include \ | |
8778 | /usr/XFree86/include/X11 \ | |
8779 | \ | |
cf27ef00 | 8780 | X:/XFree86/include \ |
ec14dd32 VZ |
8781 | X:/XFree86/include/X11 \ |
8782 | \ | |
10f2d63a VZ |
8783 | /usr/include/gtk \ |
8784 | /usr/local/include/gtk \ | |
8785 | /usr/include/glib \ | |
8786 | /usr/local/include/glib \ | |
8787 | \ | |
8788 | /usr/include/qt \ | |
8789 | /usr/local/include/qt \ | |
8790 | \ | |
8791 | /usr/include/windows \ | |
8792 | /usr/include/wine \ | |
8793 | /usr/local/include/wine \ | |
8794 | \ | |
8795 | /usr/unsupported/include \ | |
8796 | /usr/athena/include \ | |
8797 | /usr/local/x11r5/include \ | |
8798 | /usr/lpp/Xamples/include \ | |
8799 | \ | |
10f2d63a | 8800 | /usr/openwin/share/include \ |
928b5c08 VZ |
8801 | \ |
8802 | /usr/include" | |
10f2d63a VZ |
8803 | |
8804 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
8805 | ||
698dcdb6 VZ |
8806 | |
8807 | cat > confcache <<\EOF | |
10f2d63a VZ |
8808 | # This file is a shell script that caches the results of configure |
8809 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
8810 | # scripts and configure runs. It is not useful on other systems. |
8811 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 8812 | # |
698dcdb6 VZ |
8813 | # By default, configure uses ./config.cache as the cache file, |
8814 | # creating it if it does not exist already. You can give configure | |
8815 | # the --cache-file=FILE option to use a different cache file; that is | |
8816 | # what configure does when it calls configure scripts in | |
8817 | # subdirectories, so they share the cache. | |
8818 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
8819 | # config.status only pays attention to the cache file if you give it the | |
8820 | # --recheck option to rerun configure. | |
10f2d63a | 8821 | # |
698dcdb6 | 8822 | EOF |
10f2d63a VZ |
8823 | # The following way of writing the cache mishandles newlines in values, |
8824 | # but we know of no workaround that is simple, portable, and efficient. | |
8825 | # So, don't put newlines in cache variables' values. | |
8826 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
8827 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
8828 | (set) 2>&1 | |
8829 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
8830 | *ac_space=\ *) | |
8831 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
8832 | # turns \\\\ into \\, and sed turns \\ into \). | |
8833 | sed -n \ | |
8834 | -e "s/'/'\\\\''/g" \ | |
8835 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
8836 | ;; | |
8837 | *) | |
8838 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
8839 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
8840 | ;; | |
8841 | esac >> confcache | |
8842 | if cmp -s $cache_file confcache; then | |
8843 | : | |
8844 | else | |
10f2d63a | 8845 | if test -w $cache_file; then |
698dcdb6 VZ |
8846 | echo "updating cache $cache_file" |
8847 | cat confcache > $cache_file | |
10f2d63a VZ |
8848 | else |
8849 | echo "not updating unwritable cache $cache_file" | |
8850 | fi | |
8851 | fi | |
8852 | rm -f confcache | |
8853 | ||
698dcdb6 VZ |
8854 | |
8855 | ||
18dbb1f6 VZ |
8856 | REGEX_INCLUDE= |
8857 | if test "$wxUSE_REGEX" != "no"; then | |
8858 | ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'` | |
8859 | echo $ac_n "checking for regex.h""... $ac_c" 1>&6 | |
ab252f7b | 8860 | echo "configure:8861: checking for regex.h" >&5 |
18dbb1f6 VZ |
8861 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8862 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8863 | else | |
8864 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 8865 | #line 8866 "configure" |
18dbb1f6 VZ |
8866 | #include "confdefs.h" |
8867 | #include <regex.h> | |
8868 | EOF | |
8869 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
ab252f7b | 8870 | { (eval echo configure:8871: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
18dbb1f6 VZ |
8871 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8872 | if test -z "$ac_err"; then | |
8873 | rm -rf conftest* | |
8874 | eval "ac_cv_header_$ac_safe=yes" | |
8875 | else | |
8876 | echo "$ac_err" >&5 | |
8877 | echo "configure: failed program was:" >&5 | |
8878 | cat conftest.$ac_ext >&5 | |
8879 | rm -rf conftest* | |
8880 | eval "ac_cv_header_$ac_safe=no" | |
8881 | fi | |
8882 | rm -f conftest* | |
8883 | fi | |
8884 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8885 | echo "$ac_t""yes" 1>&6 | |
8886 | for ac_func in regcomp | |
8887 | do | |
8888 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
ab252f7b | 8889 | echo "configure:8890: checking for $ac_func" >&5 |
18dbb1f6 VZ |
8890 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
8891 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8892 | else | |
8893 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 8894 | #line 8895 "configure" |
18dbb1f6 VZ |
8895 | #include "confdefs.h" |
8896 | /* System header to define __stub macros and hopefully few prototypes, | |
8897 | which can conflict with char $ac_func(); below. */ | |
8898 | #include <assert.h> | |
8899 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8900 | /* We use char because int might match the return type of a gcc2 | |
8901 | builtin and then its argument prototype would still apply. */ | |
8902 | char $ac_func(); | |
8903 | ||
8904 | int main() { | |
8905 | ||
8906 | /* The GNU C library defines this for functions which it implements | |
8907 | to always fail with ENOSYS. Some functions are actually named | |
8908 | something starting with __ and the normal name is an alias. */ | |
8909 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
8910 | choke me | |
8911 | #else | |
8912 | $ac_func(); | |
8913 | #endif | |
8914 | ||
8915 | ; return 0; } | |
8916 | EOF | |
ab252f7b | 8917 | if { (eval echo configure:8918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
18dbb1f6 VZ |
8918 | rm -rf conftest* |
8919 | eval "ac_cv_func_$ac_func=yes" | |
8920 | else | |
8921 | echo "configure: failed program was:" >&5 | |
8922 | cat conftest.$ac_ext >&5 | |
8923 | rm -rf conftest* | |
8924 | eval "ac_cv_func_$ac_func=no" | |
8925 | fi | |
8926 | rm -f conftest* | |
8927 | fi | |
8928 | ||
8929 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
8930 | echo "$ac_t""yes" 1>&6 | |
8931 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
8932 | cat >> confdefs.h <<EOF | |
8933 | #define $ac_tr_func 1 | |
8934 | EOF | |
8935 | ||
8936 | else | |
8937 | echo "$ac_t""no" 1>&6 | |
8938 | fi | |
8939 | done | |
8940 | ||
8941 | else | |
8942 | echo "$ac_t""no" 1>&6 | |
8943 | fi | |
8944 | ||
8945 | ||
8946 | if test "x$ac_cv_func_regcomp" != "xyes"; then | |
8947 | if test "$wxUSE_REGEX" = "sys"; then | |
8948 | { echo "configure: error: system regex library not found! Use --with-regex to use the built-in regex library." 1>&2; exit 1; } | |
8949 | fi | |
8950 | ||
8951 | REGEX_INCLUDE="-I\${top_srcdir}/src/regex" | |
8952 | fi | |
8953 | ||
8954 | cat >> confdefs.h <<\EOF | |
8955 | #define wxUSE_REGEX 1 | |
8956 | EOF | |
8957 | ||
8958 | fi | |
8959 | ||
8960 | ||
dad6c0ea VZ |
8961 | AFMINSTALL= |
8962 | ||
10f2d63a | 8963 | if test "$wxUSE_GUI" = "yes"; then |
1e6feb95 | 8964 | USE_GUI=1 |
10f2d63a | 8965 | |
1e6feb95 VZ |
8966 | TOOLKIT= |
8967 | TOOLKIT_INCLUDE= | |
10f2d63a | 8968 | |
1e6feb95 VZ |
8969 | GUI_TK_LIBRARY= |
8970 | GUI_TK_LINK= | |
10f2d63a | 8971 | |
1e6feb95 VZ |
8972 | WXGTK12= |
8973 | WXGTK127= | |
8974 | WXGTK20= | |
10f2d63a | 8975 | |
1e6feb95 | 8976 | WXWINE= |
10f2d63a | 8977 | |
1e6feb95 | 8978 | if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then |
29fd3c0c VS |
8979 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` |
8980 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
ab252f7b | 8981 | echo "configure:8982: checking for windows.h" >&5 |
d4158b5d VS |
8982 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8983 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8984 | else | |
8985 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 8986 | #line 8987 "configure" |
d4158b5d | 8987 | #include "confdefs.h" |
29fd3c0c | 8988 | #include <windows.h> |
d4158b5d VS |
8989 | EOF |
8990 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
ab252f7b | 8991 | { (eval echo configure:8992: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
d4158b5d VS |
8992 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8993 | if test -z "$ac_err"; then | |
8994 | rm -rf conftest* | |
8995 | eval "ac_cv_header_$ac_safe=yes" | |
8996 | else | |
8997 | echo "$ac_err" >&5 | |
8998 | echo "configure: failed program was:" >&5 | |
8999 | cat conftest.$ac_ext >&5 | |
9000 | rm -rf conftest* | |
9001 | eval "ac_cv_header_$ac_safe=no" | |
9002 | fi | |
9003 | rm -f conftest* | |
9004 | fi | |
9005 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9006 | echo "$ac_t""yes" 1>&6 | |
29fd3c0c | 9007 | : |
d4158b5d VS |
9008 | else |
9009 | echo "$ac_t""no" 1>&6 | |
d4158b5d | 9010 | |
3f0f0161 VZ |
9011 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } |
9012 | ||
29fd3c0c | 9013 | fi |
10f2d63a | 9014 | |
3f0f0161 | 9015 | |
1e6feb95 | 9016 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw" |
3f0f0161 | 9017 | |
031d8228 | 9018 | LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32" |
f6bcfd97 | 9019 | |
1e6feb95 VZ |
9020 | if test "$wxUSE_ODBC" = "yes" ; then |
9021 | LIBS="$LIBS -lodbc32 -lole32 -loleaut32" | |
9022 | fi | |
10f2d63a | 9023 | |
1e6feb95 VZ |
9024 | if test "$wxUSE_MINGW" = 1; then |
9025 | LDFLAGS="$LDFLAGS -mwindows" | |
9026 | fi | |
32832908 | 9027 | |
1e6feb95 VZ |
9028 | TOOLKIT=MSW |
9029 | GUIDIST=MSW_DIST | |
32832908 | 9030 | |
1e6feb95 VZ |
9031 | RCINCSWITCH="--include-dir" |
9032 | RCDEFSWITCH="--define" | |
9033 | RCPREPROCESSOR="--preprocessor \"\$(CC) -c -E -xc-header -DRC_INVOKED\"" | |
9034 | RCINPUTSWITCH="-i" | |
9035 | RCOUTPUTSWITCH="-o" | |
9036 | RESFLAGS="$RCPREPROCESSOR $RCINCSWITCH \$(top_srcdir)/include $RCINCSWITCH \$(top_srcdir)/\$(program_dir) $RCDEFSWITCH __WIN32__ $RCDEFSWITCH __WIN95__ $RCDEFSWITCH __GNUWIN32__" | |
32832908 | 9037 | |
1e6feb95 VZ |
9038 | RESPROGRAM="\$(RES_PROGRAM)" |
9039 | fi | |
10f2d63a | 9040 | |
1e6feb95 | 9041 | if test "$wxUSE_GTK" = 1; then |
8168de4c | 9042 | echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6 |
ab252f7b | 9043 | echo "configure:9044: checking for GTK+ version" >&5 |
8168de4c VZ |
9044 | |
9045 | gtk_version_cached=1 | |
9046 | if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then | |
9047 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9048 | else | |
9049 | ||
9050 | gtk_version_cached=0 | |
9051 | echo "$ac_t""""" 1>&6 | |
9052 | ||
9053 | wx_cv_lib_gtk= | |
9054 | if test "x$wxUSE_GTK2" = "xyes"; then | |
9055 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
6f72b082 OK |
9056 | if test "${with_gtk_prefix+set}" = set; then |
9057 | withval="$with_gtk_prefix" | |
9058 | gtk_config_prefix="$withval" | |
9059 | else | |
9060 | gtk_config_prefix="" | |
698dcdb6 | 9061 | fi |
6f72b082 OK |
9062 | |
9063 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
9064 | if test "${with_gtk_exec_prefix+set}" = set; then | |
9065 | withval="$with_gtk_exec_prefix" | |
9066 | gtk_config_exec_prefix="$withval" | |
9067 | else | |
9068 | gtk_config_exec_prefix="" | |
698dcdb6 VZ |
9069 | fi |
9070 | ||
6f72b082 OK |
9071 | # Check whether --enable-gtktest or --disable-gtktest was given. |
9072 | if test "${enable_gtktest+set}" = set; then | |
9073 | enableval="$enable_gtktest" | |
698dcdb6 | 9074 | : |
6f72b082 OK |
9075 | else |
9076 | enable_gtktest=yes | |
698dcdb6 VZ |
9077 | fi |
9078 | ||
6f72b082 | 9079 | |
8168de4c | 9080 | for module in . |
6f72b082 OK |
9081 | do |
9082 | case "$module" in | |
8168de4c | 9083 | gthread) |
6f72b082 OK |
9084 | gtk_config_args="$gtk_config_args gthread" |
9085 | ;; | |
9086 | esac | |
9087 | done | |
9088 | ||
9089 | if test x$gtk_config_exec_prefix != x ; then | |
9090 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
9091 | if test x${GTK_CONFIG_2_0+set} != xset ; then | |
9092 | GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0 | |
9093 | fi | |
9094 | fi | |
9095 | if test x$gtk_config_prefix != x ; then | |
9096 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
9097 | if test x${GTK_CONFIG_2_0+set} != xset ; then | |
9098 | GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0 | |
9099 | fi | |
9100 | fi | |
9101 | ||
9102 | # Extract the first word of "gtk-config-2.0", so it can be a program name with args. | |
9103 | set dummy gtk-config-2.0; ac_word=$2 | |
698dcdb6 | 9104 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
ab252f7b | 9105 | echo "configure:9106: checking for $ac_word" >&5 |
698dcdb6 VZ |
9106 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then |
9107 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6f72b082 | 9108 | else |
698dcdb6 VZ |
9109 | case "$GTK_CONFIG_2_0" in |
9110 | /*) | |
6f72b082 OK |
9111 | ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path. |
9112 | ;; | |
698dcdb6 VZ |
9113 | ?:/*) |
9114 | ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path. | |
9115 | ;; | |
6f72b082 | 9116 | *) |
698dcdb6 VZ |
9117 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9118 | ac_dummy="$PATH" | |
9119 | for ac_dir in $ac_dummy; do | |
9120 | test -z "$ac_dir" && ac_dir=. | |
9121 | if test -f $ac_dir/$ac_word; then | |
9122 | ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word" | |
9123 | break | |
9124 | fi | |
9125 | done | |
9126 | IFS="$ac_save_ifs" | |
6f72b082 OK |
9127 | test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no" |
9128 | ;; | |
9129 | esac | |
9130 | fi | |
698dcdb6 | 9131 | GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0" |
6f72b082 | 9132 | if test -n "$GTK_CONFIG_2_0"; then |
698dcdb6 | 9133 | echo "$ac_t""$GTK_CONFIG_2_0" 1>&6 |
6f72b082 | 9134 | else |
698dcdb6 | 9135 | echo "$ac_t""no" 1>&6 |
6f72b082 OK |
9136 | fi |
9137 | ||
9138 | min_gtk_version=1.3.1 | |
698dcdb6 | 9139 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
ab252f7b | 9140 | echo "configure:9141: checking for GTK - version >= $min_gtk_version" >&5 |
6f72b082 OK |
9141 | no_gtk="" |
9142 | if test "$GTK_CONFIG_2_0" = "no" ; then | |
9143 | no_gtk=yes | |
9144 | else | |
9145 | GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags` | |
9146 | GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs` | |
9147 | gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
9148 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
9149 | gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
9150 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
9151 | gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
9152 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
9153 | if test "x$enable_gtktest" = "xyes" ; then | |
9154 | ac_save_CFLAGS="$CFLAGS" | |
9155 | ac_save_LIBS="$LIBS" | |
9156 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
9157 | LIBS="$GTK_LIBS $LIBS" | |
9158 | rm -f conf.gtktest | |
9159 | if test "$cross_compiling" = yes; then | |
9160 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
9161 | else | |
698dcdb6 | 9162 | cat > conftest.$ac_ext <<EOF |
ab252f7b | 9163 | #line 9164 "configure" |
6f72b082 OK |
9164 | #include "confdefs.h" |
9165 | ||
9166 | #include <gtk/gtk.h> | |
9167 | #include <stdio.h> | |
9168 | #include <stdlib.h> | |
9169 | ||
8168de4c | 9170 | int |
6f72b082 OK |
9171 | main () |
9172 | { | |
9173 | int major, minor, micro; | |
9174 | char *tmp_version; | |
9175 | ||
9176 | system ("touch conf.gtktest"); | |
9177 | ||
9178 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
9179 | tmp_version = g_strdup("$min_gtk_version"); | |
9180 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
9181 | printf("%s, bad version string\n", "$min_gtk_version"); | |
9182 | exit(1); | |
9183 | } | |
9184 | ||
9185 | if ((gtk_major_version != $gtk_config_major_version) || | |
9186 | (gtk_minor_version != $gtk_config_minor_version) || | |
9187 | (gtk_micro_version != $gtk_config_micro_version)) | |
9188 | { | |
8168de4c | 9189 | printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
6f72b082 OK |
9190 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
9191 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
9192 | printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n"); | |
9193 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
9194 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
9195 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
9196 | printf("*** required on your system.\n"); | |
9197 | printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n"); | |
9198 | printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n"); | |
9199 | printf("*** before re-running configure\n"); | |
8168de4c | 9200 | } |
6f72b082 OK |
9201 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
9202 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
8168de4c | 9203 | (gtk_minor_version != GTK_MINOR_VERSION) || |
6f72b082 OK |
9204 | (gtk_micro_version != GTK_MICRO_VERSION)) |
9205 | { | |
9206 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
8168de4c | 9207 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); |
6f72b082 | 9208 | printf("*** library (version %d.%d.%d)\n", |
8168de4c | 9209 | gtk_major_version, gtk_minor_version, gtk_micro_version); |
6f72b082 OK |
9210 | } |
9211 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
9212 | else | |
9213 | { | |
9214 | if ((gtk_major_version > major) || | |
9215 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
9216 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
9217 | { | |
9218 | return 0; | |
9219 | } | |
9220 | else | |
9221 | { | |
9222 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
9223 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
9224 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
8168de4c | 9225 | major, minor, micro); |
6f72b082 OK |
9226 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); |
9227 | printf("***\n"); | |
9228 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
9229 | printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n"); | |
9230 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
9231 | printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n"); | |
9232 | printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n"); | |
9233 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
9234 | printf("*** so that the correct libraries are found at run-time))\n"); | |
9235 | } | |
9236 | } | |
9237 | return 1; | |
9238 | } | |
9239 | ||
698dcdb6 | 9240 | EOF |
ab252f7b | 9241 | if { (eval echo configure:9242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 9242 | then |
6f72b082 OK |
9243 | : |
9244 | else | |
698dcdb6 VZ |
9245 | echo "configure: failed program was:" >&5 |
9246 | cat conftest.$ac_ext >&5 | |
9247 | rm -fr conftest* | |
9248 | no_gtk=yes | |
6f72b082 | 9249 | fi |
698dcdb6 | 9250 | rm -fr conftest* |
6f72b082 | 9251 | fi |
698dcdb6 | 9252 | |
6f72b082 OK |
9253 | CFLAGS="$ac_save_CFLAGS" |
9254 | LIBS="$ac_save_LIBS" | |
9255 | fi | |
9256 | fi | |
9257 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 9258 | echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6 |
8168de4c | 9259 | wx_cv_lib_gtk=2.0 |
6f72b082 | 9260 | else |
698dcdb6 | 9261 | echo "$ac_t""no" 1>&6 |
6f72b082 OK |
9262 | if test "$GTK_CONFIG_2_0" = "no" ; then |
9263 | echo "*** The gtk-config-2.0 script installed by GTK could not be found" | |
9264 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
9265 | echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the" | |
9266 | echo "*** full path to gtk-config-2.0." | |
9267 | else | |
9268 | if test -f conf.gtktest ; then | |
9269 | : | |
9270 | else | |
9271 | echo "*** Could not run GTK test program, checking why..." | |
9272 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
9273 | LIBS="$LIBS $GTK_LIBS" | |
698dcdb6 | 9274 | cat > conftest.$ac_ext <<EOF |
ab252f7b | 9275 | #line 9276 "configure" |
6f72b082 OK |
9276 | #include "confdefs.h" |
9277 | ||
9278 | #include <gtk/gtk.h> | |
9279 | #include <stdio.h> | |
9280 | ||
698dcdb6 VZ |
9281 | int main() { |
9282 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
9283 | ; return 0; } | |
9284 | EOF | |
ab252f7b | 9285 | if { (eval echo configure:9286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 9286 | rm -rf conftest* |
6f72b082 OK |
9287 | echo "*** The test program compiled, but did not run. This usually means" |
9288 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
9289 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
9290 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
9291 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
9292 | echo "*** is required on your system" | |
8168de4c | 9293 | echo "***" |
6f72b082 OK |
9294 | echo "*** If you have an old version installed, it is best to remove it, although" |
9295 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
9296 | echo "***" | |
9297 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
9298 | echo "*** came with the system with the command" | |
9299 | echo "***" | |
698dcdb6 | 9300 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
6f72b082 | 9301 | else |
698dcdb6 VZ |
9302 | echo "configure: failed program was:" >&5 |
9303 | cat conftest.$ac_ext >&5 | |
9304 | rm -rf conftest* | |
9305 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
6f72b082 OK |
9306 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
9307 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
698dcdb6 | 9308 | echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0" |
6f72b082 | 9309 | fi |
698dcdb6 | 9310 | rm -f conftest* |
6f72b082 OK |
9311 | CFLAGS="$ac_save_CFLAGS" |
9312 | LIBS="$ac_save_LIBS" | |
9313 | fi | |
9314 | fi | |
9315 | GTK_CFLAGS="" | |
9316 | GTK_LIBS="" | |
8168de4c VZ |
9317 | gthread |
9318 | fi | |
9319 | ||
9320 | ||
9321 | rm -f conf.gtktest | |
9322 | ||
9323 | fi | |
9324 | ||
9325 | if test -z "$wx_cv_lib_gtk"; then | |
9326 | ||
10f2d63a VZ |
9327 | if test x$gtk_config_exec_prefix != x ; then |
9328 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
9329 | if test x${GTK_CONFIG+set} != xset ; then | |
9330 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
9331 | fi | |
9332 | fi | |
9333 | if test x$gtk_config_prefix != x ; then | |
9334 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
9335 | if test x${GTK_CONFIG+set} != xset ; then | |
9336 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
9337 | fi | |
9338 | fi | |
9339 | ||
9340 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
9341 | set dummy gtk-config; ac_word=$2 | |
698dcdb6 | 9342 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
ab252f7b | 9343 | echo "configure:9344: checking for $ac_word" >&5 |
698dcdb6 VZ |
9344 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
9345 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 9346 | else |
698dcdb6 VZ |
9347 | case "$GTK_CONFIG" in |
9348 | /*) | |
f6bcfd97 BP |
9349 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
9350 | ;; | |
698dcdb6 VZ |
9351 | ?:/*) |
9352 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
9353 | ;; | |
f6bcfd97 | 9354 | *) |
698dcdb6 VZ |
9355 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9356 | ac_dummy="$PATH" | |
9357 | for ac_dir in $ac_dummy; do | |
9358 | test -z "$ac_dir" && ac_dir=. | |
9359 | if test -f $ac_dir/$ac_word; then | |
9360 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
9361 | break | |
9362 | fi | |
9363 | done | |
9364 | IFS="$ac_save_ifs" | |
f6bcfd97 BP |
9365 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
9366 | ;; | |
9367 | esac | |
9368 | fi | |
698dcdb6 | 9369 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
f6bcfd97 | 9370 | if test -n "$GTK_CONFIG"; then |
698dcdb6 | 9371 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
f6bcfd97 | 9372 | else |
698dcdb6 | 9373 | echo "$ac_t""no" 1>&6 |
f6bcfd97 BP |
9374 | fi |
9375 | ||
9376 | min_gtk_version=1.2.7 | |
698dcdb6 | 9377 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
ab252f7b | 9378 | echo "configure:9379: checking for GTK - version >= $min_gtk_version" >&5 |
f6bcfd97 BP |
9379 | no_gtk="" |
9380 | if test "$GTK_CONFIG" != "no" ; then | |
9381 | GTK_CFLAGS=`$GTK_CONFIG --cflags` | |
9382 | GTK_LIBS=`$GTK_CONFIG --libs gthread` | |
9383 | ac_save_CFLAGS="$CFLAGS" | |
9384 | ac_save_LIBS="$LIBS" | |
9385 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
9386 | LIBS="$LIBS $GTK_LIBS" | |
9387 | if test "$cross_compiling" = yes; then | |
9388 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
9389 | else | |
698dcdb6 | 9390 | cat > conftest.$ac_ext <<EOF |
ab252f7b | 9391 | #line 9392 "configure" |
f6bcfd97 BP |
9392 | #include "confdefs.h" |
9393 | ||
9394 | #include <gtk/gtk.h> | |
9395 | #include <gtk/gtkfeatures.h> | |
9396 | #include <stdio.h> | |
9397 | #include <stdlib.h> | |
9398 | ||
9399 | int | |
9400 | main () | |
9401 | { | |
9402 | int major, minor, micro; | |
9403 | ||
9404 | if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) { | |
9405 | printf("%s, bad version string\n", "$min_gtk_version"); | |
9406 | exit(1); | |
9407 | } | |
9408 | ||
9409 | if ((GTK_MAJOR_VERSION != gtk_major_version) || | |
9410 | (GTK_MINOR_VERSION != gtk_minor_version) || | |
9411 | (GTK_MICRO_VERSION != gtk_micro_version)) { | |
9412 | printf("Headers vs. library version mismatch!\n"); | |
9413 | exit(1); | |
9414 | } | |
9415 | ||
9416 | if (gtk_minor_version == 1) return FALSE; | |
9417 | ||
9418 | return !((gtk_major_version > major) || | |
9419 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
9420 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))); | |
9421 | } | |
9422 | ||
698dcdb6 | 9423 | EOF |
ab252f7b | 9424 | if { (eval echo configure:9425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 9425 | then |
f6bcfd97 BP |
9426 | : |
9427 | else | |
698dcdb6 VZ |
9428 | echo "configure: failed program was:" >&5 |
9429 | cat conftest.$ac_ext >&5 | |
9430 | rm -fr conftest* | |
9431 | no_gtk=yes | |
f6bcfd97 | 9432 | fi |
698dcdb6 | 9433 | rm -fr conftest* |
f6bcfd97 | 9434 | fi |
698dcdb6 | 9435 | |
f6bcfd97 BP |
9436 | CFLAGS="$ac_save_CFLAGS" |
9437 | LIBS="$ac_save_LIBS" | |
9438 | else | |
9439 | no_gtk=yes | |
9440 | fi | |
9441 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 9442 | echo "$ac_t""yes" 1>&6 |
8168de4c | 9443 | wx_cv_lib_gtk=1.2.7 |
f6bcfd97 | 9444 | else |
698dcdb6 | 9445 | echo "$ac_t""no" 1>&6 |
f6bcfd97 BP |
9446 | GTK_CFLAGS="" |
9447 | GTK_LIBS="" | |
9448 | : | |
9449 | fi | |
698dcdb6 VZ |
9450 | |
9451 | ||
f6bcfd97 | 9452 | |
8168de4c VZ |
9453 | fi |
9454 | ||
9455 | if test -z "$wx_cv_lib_gtk"; then | |
9456 | ||
f6bcfd97 BP |
9457 | if test x$gtk_config_exec_prefix != x ; then |
9458 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
9459 | if test x${GTK_CONFIG+set} != xset ; then | |
9460 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
9461 | fi | |
9462 | fi | |
9463 | if test x$gtk_config_prefix != x ; then | |
9464 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
9465 | if test x${GTK_CONFIG+set} != xset ; then | |
9466 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
9467 | fi | |
9468 | fi | |
9469 | ||
9470 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
9471 | set dummy gtk-config; ac_word=$2 | |
698dcdb6 | 9472 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
ab252f7b | 9473 | echo "configure:9474: checking for $ac_word" >&5 |
698dcdb6 VZ |
9474 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
9475 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 9476 | else |
698dcdb6 VZ |
9477 | case "$GTK_CONFIG" in |
9478 | /*) | |
10f2d63a VZ |
9479 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
9480 | ;; | |
698dcdb6 VZ |
9481 | ?:/*) |
9482 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
9483 | ;; | |
10f2d63a | 9484 | *) |
698dcdb6 VZ |
9485 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9486 | ac_dummy="$PATH" | |
9487 | for ac_dir in $ac_dummy; do | |
9488 | test -z "$ac_dir" && ac_dir=. | |
9489 | if test -f $ac_dir/$ac_word; then | |
9490 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
9491 | break | |
9492 | fi | |
9493 | done | |
9494 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9495 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
9496 | ;; | |
9497 | esac | |
9498 | fi | |
698dcdb6 | 9499 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
10f2d63a | 9500 | if test -n "$GTK_CONFIG"; then |
698dcdb6 | 9501 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
10f2d63a | 9502 | else |
698dcdb6 | 9503 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9504 | fi |
9505 | ||
04165bec | 9506 | min_gtk_version=1.2.3 |
698dcdb6 | 9507 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
ab252f7b | 9508 | echo "configure:9509: checking for GTK - version >= $min_gtk_version" >&5 |
10f2d63a VZ |
9509 | no_gtk="" |
9510 | if test "$GTK_CONFIG" != "no" ; then | |
9511 | GTK_CFLAGS=`$GTK_CONFIG --cflags` | |
2224580a | 9512 | GTK_LIBS=`$GTK_CONFIG --libs gthread` |
10f2d63a VZ |
9513 | ac_save_CFLAGS="$CFLAGS" |
9514 | ac_save_LIBS="$LIBS" | |
9515 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
9516 | LIBS="$LIBS $GTK_LIBS" | |
9517 | if test "$cross_compiling" = yes; then | |
9518 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
9519 | else | |
698dcdb6 | 9520 | cat > conftest.$ac_ext <<EOF |
ab252f7b | 9521 | #line 9522 "configure" |
10f2d63a VZ |
9522 | #include "confdefs.h" |
9523 | ||
9524 | #include <gtk/gtk.h> | |
f49f2b0c | 9525 | #include <gtk/gtkfeatures.h> |
10f2d63a | 9526 | #include <stdio.h> |
32832908 | 9527 | #include <stdlib.h> |
10f2d63a VZ |
9528 | |
9529 | int | |
9530 | main () | |
9531 | { | |
9532 | int major, minor, micro; | |
9533 | ||
9534 | if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) { | |
9535 | printf("%s, bad version string\n", "$min_gtk_version"); | |
9536 | exit(1); | |
9537 | } | |
9538 | ||
f49f2b0c RR |
9539 | if ((GTK_MAJOR_VERSION != gtk_major_version) || |
9540 | (GTK_MINOR_VERSION != gtk_minor_version) || | |
9541 | (GTK_MICRO_VERSION != gtk_micro_version)) { | |
9542 | printf("Headers vs. library version mismatch!\n"); | |
9543 | exit(1); | |
9544 | } | |
9545 | ||
10f2d63a VZ |
9546 | if (gtk_minor_version == 1) return FALSE; |
9547 | ||
9548 | return !((gtk_major_version > major) || | |
9549 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
9550 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))); | |
9551 | } | |
9552 | ||
698dcdb6 | 9553 | EOF |
ab252f7b | 9554 | if { (eval echo configure:9555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 9555 | then |
10f2d63a VZ |
9556 | : |
9557 | else | |
698dcdb6 VZ |
9558 | echo "configure: failed program was:" >&5 |
9559 | cat conftest.$ac_ext >&5 | |
9560 | rm -fr conftest* | |
9561 | no_gtk=yes | |
10f2d63a | 9562 | fi |
698dcdb6 | 9563 | rm -fr conftest* |
10f2d63a | 9564 | fi |
698dcdb6 | 9565 | |
10f2d63a VZ |
9566 | CFLAGS="$ac_save_CFLAGS" |
9567 | LIBS="$ac_save_LIBS" | |
9568 | else | |
9569 | no_gtk=yes | |
9570 | fi | |
9571 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 9572 | echo "$ac_t""yes" 1>&6 |
8168de4c | 9573 | wx_cv_lib_gtk=1.2.3 |
10f2d63a | 9574 | else |
698dcdb6 | 9575 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9576 | GTK_CFLAGS="" |
9577 | GTK_LIBS="" | |
7e99ad86 | 9578 | : |
10f2d63a | 9579 | fi |
698dcdb6 VZ |
9580 | |
9581 | ||
10f2d63a | 9582 | |
8168de4c VZ |
9583 | fi |
9584 | ||
9585 | if test -z "$wx_cv_lib_gtk"; then | |
9586 | wx_cv_lib_gtk=none | |
138be253 VZ |
9587 | else |
9588 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
9589 | wx_cv_libs_gtk=$GTK_LIBS | |
8168de4c VZ |
9590 | fi |
9591 | ||
1e6feb95 | 9592 | |
8168de4c | 9593 | fi |
703e0a69 | 9594 | |
698dcdb6 | 9595 | |
8168de4c VZ |
9596 | if test "$gtk_version_cached" = 1; then |
9597 | echo "$ac_t""$wx_cv_lib_gtk" 1>&6 | |
1e6feb95 | 9598 | fi |
698dcdb6 | 9599 | |
8168de4c VZ |
9600 | case "$wx_cv_lib_gtk" in |
9601 | 2.0) WXGTK20=1 | |
9602 | ;; | |
9603 | 1.2.7) WXGTK127=1 | |
d1a8d972 | 9604 | WXGTK12=1 |
8168de4c VZ |
9605 | ;; |
9606 | 1.2.3) WXGTK12=1 | |
9607 | ;; | |
9608 | *) { echo "configure: error: | |
9609 | Please check that gtk-config is in path, the directory | |
9610 | where GTK+ libraries are installed (returned by | |
9611 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
9612 | equivalent variable and GTK+ is version 1.2.3 or above. | |
9613 | " 1>&2; exit 1; } | |
9614 | ;; | |
9615 | esac | |
2224580a | 9616 | |
138be253 | 9617 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" |
11dfaa5f | 9618 | GUI_TK_LIBRARY="$wx_cv_libs_gtk" |
698dcdb6 | 9619 | |
1e6feb95 VZ |
9620 | AFMINSTALL=afminstall |
9621 | TOOLKIT=GTK | |
9622 | GUIDIST=GTK_DIST | |
7ec2881a | 9623 | |
1e6feb95 | 9624 | echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6 |
ab252f7b | 9625 | echo "configure:9626: checking for gdk_im_open in -lgdk" >&5 |
698dcdb6 VZ |
9626 | ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'` |
9627 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9628 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7ec2881a | 9629 | else |
698dcdb6 | 9630 | ac_save_LIBS="$LIBS" |
7ec2881a | 9631 | LIBS="-lgdk $LIBS" |
698dcdb6 | 9632 | cat > conftest.$ac_ext <<EOF |
ab252f7b | 9633 | #line 9634 "configure" |
7ec2881a RR |
9634 | #include "confdefs.h" |
9635 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9636 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9637 | builtin and then its argument prototype would still apply. */ |
9638 | char gdk_im_open(); | |
9639 | ||
9640 | int main() { | |
9641 | gdk_im_open() | |
9642 | ; return 0; } | |
9643 | EOF | |
ab252f7b | 9644 | if { (eval echo configure:9645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9645 | rm -rf conftest* |
9646 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9647 | else | |
9648 | echo "configure: failed program was:" >&5 | |
9649 | cat conftest.$ac_ext >&5 | |
9650 | rm -rf conftest* | |
9651 | eval "ac_cv_lib_$ac_lib_var=no" | |
9652 | fi | |
9653 | rm -f conftest* | |
9654 | LIBS="$ac_save_LIBS" | |
9655 | ||
9656 | fi | |
9657 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9658 | echo "$ac_t""yes" 1>&6 | |
9659 | cat >> confdefs.h <<\EOF | |
7ec2881a RR |
9660 | #define HAVE_XIM 1 |
9661 | EOF | |
9662 | ||
698dcdb6 VZ |
9663 | else |
9664 | echo "$ac_t""no" 1>&6 | |
7ec2881a RR |
9665 | fi |
9666 | ||
1e6feb95 | 9667 | fi |
10f2d63a | 9668 | |
1e6feb95 VZ |
9669 | if test "$wxUSE_MGL" = 1; then |
9670 | ||
9671 | echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6 | |
ab252f7b | 9672 | echo "configure:9673: checking for SciTech MGL library" >&5 |
1e6feb95 VZ |
9673 | if test "x$MGL_ROOT" = x ; then |
9674 | echo "$ac_t""not found" 1>&6 | |
9675 | { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; } | |
9676 | else | |
9677 | echo "$ac_t""$MGL_ROOT" 1>&6 | |
9678 | fi | |
9679 | ||
9680 | MGL_OS=linux/gcc/glibc | |
9681 | MGL_LIB_TYPE="" | |
9682 | ||
9683 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
9684 | if test -f $MGL_ROOT/lib/debug/$MGL_OS/libmgl.a ; then | |
9685 | MGL_LIB_TYPE=debug | |
9686 | fi | |
9687 | fi | |
9688 | if test "x$MGL_LIB_TYPE" = x ; then | |
9689 | if test -f $MGL_ROOT/lib/release/$MGL_OS/libmgl.a ; then | |
9690 | MGL_LIB_TYPE=release | |
9691 | else | |
9692 | { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; } | |
9693 | fi | |
9694 | fi | |
9695 | ||
9696 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" | |
9697 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$MGL_LIB_TYPE/$MGL_OS -lmgl -lmglcpp -lpm" | |
9698 | ||
9699 | AFMINSTALL=afminstall | |
9700 | TOOLKIT=MGL | |
9701 | GUIDIST=MGL_DIST | |
9702 | fi | |
9703 | ||
9704 | if test "$wxUSE_WINE" = 1; then | |
9705 | echo $ac_n "checking for WINE includes""... $ac_c" 1>&6 | |
ab252f7b | 9706 | echo "configure:9707: checking for WINE includes" >&5 |
1e6feb95 | 9707 | |
10f2d63a VZ |
9708 | ac_find_includes= |
9709 | for ac_dir in $SEARCH_INCLUDE; | |
9710 | do | |
9711 | if test -f "$ac_dir/windows.h"; then | |
9712 | ac_find_includes=$ac_dir | |
9713 | break | |
9714 | fi | |
9715 | done | |
9716 | ||
1e6feb95 VZ |
9717 | if test "$ac_find_includes" != "" ; then |
9718 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
9719 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes" | |
9720 | else | |
9721 | echo "$ac_t""no" 1>&6 | |
9722 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
9723 | fi | |
10f2d63a | 9724 | |
1e6feb95 VZ |
9725 | XPM_LINK="" |
9726 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
ab252f7b | 9727 | echo "configure:9728: checking for Xpm library" >&5 |
1e6feb95 | 9728 | |
10f2d63a VZ |
9729 | ac_find_libraries= |
9730 | for ac_dir in $SEARCH_LIB; | |
9731 | do | |
f11bdd03 | 9732 | for ac_extension in a so sl dylib; do |
10f2d63a VZ |
9733 | if test -f "$ac_dir/libXpm.$ac_extension"; then |
9734 | ac_find_libraries=$ac_dir | |
9735 | break 2 | |
9736 | fi | |
9737 | done | |
9738 | done | |
9739 | ||
1e6feb95 VZ |
9740 | if test "$ac_find_libraries" != "" ; then |
9741 | GUI_TK_LIBRARY="-L$ac_find_libraries" | |
9742 | XPM_LINK="-lXpm" | |
9743 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
9744 | #define wxHAVE_LIB_XPM 1 |
9745 | EOF | |
9746 | ||
1e6feb95 VZ |
9747 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
9748 | else | |
9749 | echo "$ac_t""no" 1>&6 | |
9750 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
9751 | fi | |
10f2d63a | 9752 | |
1e6feb95 VZ |
9753 | MESA_LINK="" |
9754 | echo $ac_n "checking for Mesa library""... $ac_c" 1>&6 | |
ab252f7b | 9755 | echo "configure:9756: checking for Mesa library" >&5 |
1e6feb95 | 9756 | |
10f2d63a VZ |
9757 | ac_find_libraries= |
9758 | for ac_dir in $SEARCH_LIB; | |
9759 | do | |
f11bdd03 | 9760 | for ac_extension in a so sl dylib; do |
10f2d63a VZ |
9761 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then |
9762 | ac_find_libraries=$ac_dir | |
9763 | break 2 | |
9764 | fi | |
9765 | done | |
9766 | done | |
9767 | ||
1e6feb95 VZ |
9768 | if test "$ac_find_libraries" != "" ; then |
9769 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries" | |
9770 | MESA_LINK="-lMesaGL" | |
9771 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
9772 | else | |
9773 | { echo "configure: error: no" 1>&2; exit 1; } | |
9774 | fi | |
10f2d63a | 9775 | |
1e6feb95 VZ |
9776 | GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses" |
9777 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK" | |
9778 | WXWINE=1 | |
9779 | TOOLKIT=MSW | |
9780 | GUIDIST=MSW_DIST | |
9781 | fi | |
698dcdb6 | 9782 | |
1e6feb95 VZ |
9783 | |
9784 | # If we find X, set shell vars x_includes and x_libraries to the | |
698dcdb6 VZ |
9785 | # paths, otherwise set no_x=yes. |
9786 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
9787 | # --without-x overrides everything else, but does not touch the cache. | |
9788 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
ab252f7b | 9789 | echo "configure:9790: checking for X" >&5 |
ab9b9eab VZ |
9790 | |
9791 | # Check whether --with-x or --without-x was given. | |
9792 | if test "${with_x+set}" = set; then | |
9793 | withval="$with_x" | |
698dcdb6 VZ |
9794 | : |
9795 | fi | |
ba337fe7 | 9796 | |
ab9b9eab VZ |
9797 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
9798 | if test "x$with_x" = xno; then | |
9799 | # The user explicitly disabled X. | |
9800 | have_x=disabled | |
9801 | else | |
9802 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
9803 | # Both variables are already set. | |
9804 | have_x=yes | |
9805 | else | |
698dcdb6 VZ |
9806 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then |
9807 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab VZ |
9808 | else |
9809 | # One or both of the vars are not set, and there is no cached value. | |
698dcdb6 VZ |
9810 | ac_x_includes=NO ac_x_libraries=NO |
9811 | rm -fr conftestdir | |
9812 | if mkdir conftestdir; then | |
9813 | cd conftestdir | |
ab9b9eab | 9814 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
698dcdb6 | 9815 | cat > Imakefile <<'EOF' |
ab9b9eab VZ |
9816 | acfindx: |
9817 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
9818 | EOF | |
9819 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
9820 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
9821 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
9822 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
10f2d63a | 9823 | for ac_extension in a so sl; do |
ab9b9eab | 9824 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
698dcdb6 | 9825 | test -f $ac_im_libdir/libX11.$ac_extension; then |
ab9b9eab | 9826 | ac_im_usrlibdir=$ac_im_libdir; break |
10f2d63a VZ |
9827 | fi |
9828 | done | |
ab9b9eab VZ |
9829 | # Screen out bogus values from the imake configuration. They are |
9830 | # bogus both because they are the default anyway, and because | |
9831 | # using them would break gcc on systems where it needs fixed includes. | |
698dcdb6 | 9832 | case "$ac_im_incroot" in |
ab9b9eab | 9833 | /usr/include) ;; |
698dcdb6 | 9834 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; |
ab9b9eab | 9835 | esac |
698dcdb6 | 9836 | case "$ac_im_usrlibdir" in |
ab9b9eab | 9837 | /usr/lib | /lib) ;; |
698dcdb6 | 9838 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; |
ab9b9eab | 9839 | esac |
ba337fe7 | 9840 | fi |
ab9b9eab | 9841 | cd .. |
698dcdb6 | 9842 | rm -fr conftestdir |
ab9b9eab | 9843 | fi |
10f2d63a | 9844 | |
698dcdb6 VZ |
9845 | if test "$ac_x_includes" = NO; then |
9846 | # Guess where to find include files, by looking for this one X11 .h file. | |
9847 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
9848 | ||
ab9b9eab | 9849 | # First, try using that file with no special directory specified. |
698dcdb6 | 9850 | cat > conftest.$ac_ext <<EOF |
ab252f7b | 9851 | #line 9852 "configure" |
ab9b9eab | 9852 | #include "confdefs.h" |
698dcdb6 VZ |
9853 | #include <$x_direct_test_include> |
9854 | EOF | |
9855 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
ab252f7b | 9856 | { (eval echo configure:9857: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
9857 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9858 | if test -z "$ac_err"; then | |
9859 | rm -rf conftest* | |
ab9b9eab VZ |
9860 | # We can compile using X headers with no special include directory. |
9861 | ac_x_includes= | |
9862 | else | |
698dcdb6 VZ |
9863 | echo "$ac_err" >&5 |
9864 | echo "configure: failed program was:" >&5 | |
ab9b9eab | 9865 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
9866 | rm -rf conftest* |
9867 | # Look for the header file in a standard set of common directories. | |
9868 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
9869 | for ac_dir in \ | |
9870 | /usr/X11/include \ | |
9871 | /usr/X11R6/include \ | |
9872 | /usr/X11R5/include \ | |
9873 | /usr/X11R4/include \ | |
9874 | \ | |
9875 | /usr/include/X11 \ | |
9876 | /usr/include/X11R6 \ | |
9877 | /usr/include/X11R5 \ | |
9878 | /usr/include/X11R4 \ | |
9879 | \ | |
9880 | /usr/local/X11/include \ | |
9881 | /usr/local/X11R6/include \ | |
9882 | /usr/local/X11R5/include \ | |
9883 | /usr/local/X11R4/include \ | |
9884 | \ | |
9885 | /usr/local/include/X11 \ | |
9886 | /usr/local/include/X11R6 \ | |
9887 | /usr/local/include/X11R5 \ | |
9888 | /usr/local/include/X11R4 \ | |
9889 | \ | |
9890 | /usr/X386/include \ | |
9891 | /usr/x386/include \ | |
9892 | /usr/XFree86/include/X11 \ | |
9893 | \ | |
9894 | /usr/include \ | |
9895 | /usr/local/include \ | |
9896 | /usr/unsupported/include \ | |
9897 | /usr/athena/include \ | |
9898 | /usr/local/x11r5/include \ | |
9899 | /usr/lpp/Xamples/include \ | |
9900 | \ | |
9901 | /usr/openwin/include \ | |
9902 | /usr/openwin/share/include \ | |
9903 | ; \ | |
9904 | do | |
9905 | if test -r "$ac_dir/$x_direct_test_include"; then | |
9906 | ac_x_includes=$ac_dir | |
9907 | break | |
9908 | fi | |
9909 | done | |
ab9b9eab | 9910 | fi |
698dcdb6 VZ |
9911 | rm -f conftest* |
9912 | fi # $ac_x_includes = NO | |
10f2d63a | 9913 | |
698dcdb6 | 9914 | if test "$ac_x_libraries" = NO; then |
ab9b9eab | 9915 | # Check for the libraries. |
698dcdb6 VZ |
9916 | |
9917 | test -z "$x_direct_test_library" && x_direct_test_library=Xt | |
9918 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
9919 | ||
ab9b9eab VZ |
9920 | # See if we find them without any special options. |
9921 | # Don't add to $LIBS permanently. | |
698dcdb6 VZ |
9922 | ac_save_LIBS="$LIBS" |
9923 | LIBS="-l$x_direct_test_library $LIBS" | |
9924 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 9925 | #line 9926 "configure" |
ab9b9eab | 9926 | #include "confdefs.h" |
698dcdb6 VZ |
9927 | |
9928 | int main() { | |
9929 | ${x_direct_test_function}() | |
9930 | ; return 0; } | |
9931 | EOF | |
ab252f7b | 9932 | if { (eval echo configure:9933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9933 | rm -rf conftest* |
9934 | LIBS="$ac_save_LIBS" | |
ab9b9eab VZ |
9935 | # We can link X programs with no special library path. |
9936 | ac_x_libraries= | |
9937 | else | |
698dcdb6 VZ |
9938 | echo "configure: failed program was:" >&5 |
9939 | cat conftest.$ac_ext >&5 | |
9940 | rm -rf conftest* | |
9941 | LIBS="$ac_save_LIBS" | |
9942 | # First see if replacing the include by lib works. | |
9943 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
9944 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
9945 | /usr/X11/lib \ | |
9946 | /usr/X11R6/lib \ | |
9947 | /usr/X11R5/lib \ | |
9948 | /usr/X11R4/lib \ | |
9949 | \ | |
9950 | /usr/lib/X11 \ | |
9951 | /usr/lib/X11R6 \ | |
9952 | /usr/lib/X11R5 \ | |
9953 | /usr/lib/X11R4 \ | |
9954 | \ | |
9955 | /usr/local/X11/lib \ | |
9956 | /usr/local/X11R6/lib \ | |
9957 | /usr/local/X11R5/lib \ | |
9958 | /usr/local/X11R4/lib \ | |
9959 | \ | |
9960 | /usr/local/lib/X11 \ | |
9961 | /usr/local/lib/X11R6 \ | |
9962 | /usr/local/lib/X11R5 \ | |
9963 | /usr/local/lib/X11R4 \ | |
9964 | \ | |
9965 | /usr/X386/lib \ | |
9966 | /usr/x386/lib \ | |
9967 | /usr/XFree86/lib/X11 \ | |
9968 | \ | |
9969 | /usr/lib \ | |
9970 | /usr/local/lib \ | |
9971 | /usr/unsupported/lib \ | |
9972 | /usr/athena/lib \ | |
9973 | /usr/local/x11r5/lib \ | |
9974 | /usr/lpp/Xamples/lib \ | |
9975 | /lib/usr/lib/X11 \ | |
9976 | \ | |
9977 | /usr/openwin/lib \ | |
9978 | /usr/openwin/share/lib \ | |
9979 | ; \ | |
ab9b9eab VZ |
9980 | do |
9981 | for ac_extension in a so sl; do | |
698dcdb6 | 9982 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then |
ab9b9eab VZ |
9983 | ac_x_libraries=$ac_dir |
9984 | break 2 | |
10f2d63a | 9985 | fi |
10f2d63a | 9986 | done |
ab9b9eab VZ |
9987 | done |
9988 | fi | |
698dcdb6 VZ |
9989 | rm -f conftest* |
9990 | fi # $ac_x_libraries = NO | |
10f2d63a | 9991 | |
698dcdb6 | 9992 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
ab9b9eab VZ |
9993 | # Didn't find X anywhere. Cache the known absence of X. |
9994 | ac_cv_have_x="have_x=no" | |
9995 | else | |
9996 | # Record where we found X for the cache. | |
9997 | ac_cv_have_x="have_x=yes \ | |
9998 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
9999 | fi | |
10000 | fi | |
10f2d63a | 10001 | fi |
ab9b9eab VZ |
10002 | eval "$ac_cv_have_x" |
10003 | fi # $with_x != no | |
10f2d63a | 10004 | |
ab9b9eab | 10005 | if test "$have_x" != yes; then |
698dcdb6 | 10006 | echo "$ac_t""$have_x" 1>&6 |
ab9b9eab VZ |
10007 | no_x=yes |
10008 | else | |
10009 | # If each of the values was on the command line, it overrides each guess. | |
10010 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
10011 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
10012 | # Update the cache value to reflect the command line values. | |
10013 | ac_cv_have_x="have_x=yes \ | |
10014 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
698dcdb6 | 10015 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 |
ab9b9eab | 10016 | fi |
10f2d63a | 10017 | |
ab9b9eab VZ |
10018 | if test "$no_x" = yes; then |
10019 | # Not all programs may use this symbol, but it does not hurt to define it. | |
698dcdb6 | 10020 | cat >> confdefs.h <<\EOF |
ab9b9eab VZ |
10021 | #define X_DISPLAY_MISSING 1 |
10022 | EOF | |
10f2d63a | 10023 | |
ab9b9eab VZ |
10024 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
10025 | else | |
10026 | if test -n "$x_includes"; then | |
10027 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
10f2d63a VZ |
10028 | fi |
10029 | ||
ab9b9eab VZ |
10030 | # It would also be nice to do this for all -L options, not just this one. |
10031 | if test -n "$x_libraries"; then | |
10032 | X_LIBS="$X_LIBS -L$x_libraries" | |
10033 | # For Solaris; some versions of Sun CC require a space after -R and | |
10034 | # others require no space. Words are not sufficient . . . . | |
698dcdb6 | 10035 | case "`(uname -sr) 2>/dev/null`" in |
ab9b9eab | 10036 | "SunOS 5"*) |
698dcdb6 | 10037 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 |
ab252f7b | 10038 | echo "configure:10039: checking whether -R must be followed by a space" >&5 |
698dcdb6 VZ |
10039 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
10040 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 10041 | #line 10042 "configure" |
ab9b9eab | 10042 | #include "confdefs.h" |
10f2d63a | 10043 | |
698dcdb6 | 10044 | int main() { |
788deba1 | 10045 | |
698dcdb6 VZ |
10046 | ; return 0; } |
10047 | EOF | |
ab252f7b | 10048 | if { (eval echo configure:10049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 10049 | rm -rf conftest* |
ab9b9eab VZ |
10050 | ac_R_nospace=yes |
10051 | else | |
698dcdb6 VZ |
10052 | echo "configure: failed program was:" >&5 |
10053 | cat conftest.$ac_ext >&5 | |
10054 | rm -rf conftest* | |
10055 | ac_R_nospace=no | |
ab9b9eab | 10056 | fi |
698dcdb6 | 10057 | rm -f conftest* |
ab9b9eab | 10058 | if test $ac_R_nospace = yes; then |
698dcdb6 | 10059 | echo "$ac_t""no" 1>&6 |
ab9b9eab VZ |
10060 | X_LIBS="$X_LIBS -R$x_libraries" |
10061 | else | |
10062 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
698dcdb6 | 10063 | cat > conftest.$ac_ext <<EOF |
ab252f7b | 10064 | #line 10065 "configure" |
ab9b9eab | 10065 | #include "confdefs.h" |
788deba1 | 10066 | |
698dcdb6 | 10067 | int main() { |
ab9b9eab | 10068 | |
698dcdb6 VZ |
10069 | ; return 0; } |
10070 | EOF | |
ab252f7b | 10071 | if { (eval echo configure:10072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 10072 | rm -rf conftest* |
ab9b9eab VZ |
10073 | ac_R_space=yes |
10074 | else | |
698dcdb6 VZ |
10075 | echo "configure: failed program was:" >&5 |
10076 | cat conftest.$ac_ext >&5 | |
10077 | rm -rf conftest* | |
10078 | ac_R_space=no | |
ab9b9eab | 10079 | fi |
698dcdb6 | 10080 | rm -f conftest* |
ab9b9eab | 10081 | if test $ac_R_space = yes; then |
698dcdb6 | 10082 | echo "$ac_t""yes" 1>&6 |
ab9b9eab VZ |
10083 | X_LIBS="$X_LIBS -R $x_libraries" |
10084 | else | |
698dcdb6 | 10085 | echo "$ac_t""neither works" 1>&6 |
ab9b9eab VZ |
10086 | fi |
10087 | fi | |
698dcdb6 | 10088 | LIBS="$ac_xsave_LIBS" |
ab9b9eab VZ |
10089 | esac |
10090 | fi | |
10091 | ||
10092 | # Check for system-dependent libraries X programs must link with. | |
10093 | # Do this before checking for the system-independent R6 libraries | |
10094 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
10095 | ||
10096 | if test "$ISC" = yes; then | |
10097 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
10098 | else | |
698dcdb6 VZ |
10099 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X |
10100 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
ab9b9eab | 10101 | # the Alpha needs dnet_stub (dnet does not exist). |
698dcdb6 | 10102 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
ab252f7b | 10103 | echo "configure:10104: checking for dnet_ntoa in -ldnet" >&5 |
698dcdb6 VZ |
10104 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
10105 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10106 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 10107 | else |
698dcdb6 | 10108 | ac_save_LIBS="$LIBS" |
ab9b9eab | 10109 | LIBS="-ldnet $LIBS" |
698dcdb6 | 10110 | cat > conftest.$ac_ext <<EOF |
ab252f7b | 10111 | #line 10112 "configure" |
ab9b9eab VZ |
10112 | #include "confdefs.h" |
10113 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10114 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10115 | builtin and then its argument prototype would still apply. */ |
10116 | char dnet_ntoa(); | |
10117 | ||
10118 | int main() { | |
10119 | dnet_ntoa() | |
10120 | ; return 0; } | |
10121 | EOF | |
ab252f7b | 10122 | if { (eval echo configure:10123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10123 | rm -rf conftest* |
10124 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10125 | else | |
10126 | echo "configure: failed program was:" >&5 | |
10127 | cat conftest.$ac_ext >&5 | |
10128 | rm -rf conftest* | |
10129 | eval "ac_cv_lib_$ac_lib_var=no" | |
10130 | fi | |
10131 | rm -f conftest* | |
10132 | LIBS="$ac_save_LIBS" | |
10133 | ||
10134 | fi | |
10135 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10136 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 10137 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
698dcdb6 VZ |
10138 | else |
10139 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
10140 | fi |
10141 | ||
10142 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
698dcdb6 | 10143 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
ab252f7b | 10144 | echo "configure:10145: checking for dnet_ntoa in -ldnet_stub" >&5 |
698dcdb6 VZ |
10145 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
10146 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10147 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 10148 | else |
698dcdb6 | 10149 | ac_save_LIBS="$LIBS" |
ab9b9eab | 10150 | LIBS="-ldnet_stub $LIBS" |
698dcdb6 | 10151 | cat > conftest.$ac_ext <<EOF |
ab252f7b | 10152 | #line 10153 "configure" |
ab9b9eab VZ |
10153 | #include "confdefs.h" |
10154 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10155 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10156 | builtin and then its argument prototype would still apply. */ |
10157 | char dnet_ntoa(); | |
10158 | ||
10159 | int main() { | |
10160 | dnet_ntoa() | |
10161 | ; return 0; } | |
10162 | EOF | |
ab252f7b | 10163 | if { (eval echo configure:10164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10164 | rm -rf conftest* |
10165 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10166 | else | |
10167 | echo "configure: failed program was:" >&5 | |
10168 | cat conftest.$ac_ext >&5 | |
10169 | rm -rf conftest* | |
10170 | eval "ac_cv_lib_$ac_lib_var=no" | |
10171 | fi | |
10172 | rm -f conftest* | |
10173 | LIBS="$ac_save_LIBS" | |
10174 | ||
10175 | fi | |
10176 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10177 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 10178 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
698dcdb6 VZ |
10179 | else |
10180 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
10181 | fi |
10182 | ||
10183 | fi | |
10184 | ||
10185 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
10186 | # to get the SysV transport functions. | |
698dcdb6 | 10187 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
ab9b9eab VZ |
10188 | # needs -lnsl. |
10189 | # The nsl library prevents programs from opening the X display | |
698dcdb6 VZ |
10190 | # on Irix 5.2, according to dickey@clark.net. |
10191 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
ab252f7b | 10192 | echo "configure:10193: checking for gethostbyname" >&5 |
698dcdb6 VZ |
10193 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
10194 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10195 | else | |
10196 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 10197 | #line 10198 "configure" |
ab9b9eab VZ |
10198 | #include "confdefs.h" |
10199 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 10200 | which can conflict with char gethostbyname(); below. */ |
ab9b9eab VZ |
10201 | #include <assert.h> |
10202 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10203 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10204 | builtin and then its argument prototype would still apply. */ |
10205 | char gethostbyname(); | |
10206 | ||
10207 | int main() { | |
ab9b9eab VZ |
10208 | |
10209 | /* The GNU C library defines this for functions which it implements | |
10210 | to always fail with ENOSYS. Some functions are actually named | |
10211 | something starting with __ and the normal name is an alias. */ | |
10212 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
10213 | choke me | |
10214 | #else | |
698dcdb6 | 10215 | gethostbyname(); |
ab9b9eab VZ |
10216 | #endif |
10217 | ||
698dcdb6 VZ |
10218 | ; return 0; } |
10219 | EOF | |
ab252f7b | 10220 | if { (eval echo configure:10221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10221 | rm -rf conftest* |
10222 | eval "ac_cv_func_gethostbyname=yes" | |
10223 | else | |
10224 | echo "configure: failed program was:" >&5 | |
10225 | cat conftest.$ac_ext >&5 | |
10226 | rm -rf conftest* | |
10227 | eval "ac_cv_func_gethostbyname=no" | |
10228 | fi | |
10229 | rm -f conftest* | |
10230 | fi | |
10231 | ||
10232 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
10233 | echo "$ac_t""yes" 1>&6 | |
10234 | : | |
10235 | else | |
10236 | echo "$ac_t""no" 1>&6 | |
10237 | fi | |
ab9b9eab VZ |
10238 | |
10239 | if test $ac_cv_func_gethostbyname = no; then | |
698dcdb6 | 10240 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
ab252f7b | 10241 | echo "configure:10242: checking for gethostbyname in -lnsl" >&5 |
698dcdb6 VZ |
10242 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
10243 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10244 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 10245 | else |
698dcdb6 | 10246 | ac_save_LIBS="$LIBS" |
ab9b9eab | 10247 | LIBS="-lnsl $LIBS" |
698dcdb6 | 10248 | cat > conftest.$ac_ext <<EOF |
ab252f7b | 10249 | #line 10250 "configure" |
ab9b9eab VZ |
10250 | #include "confdefs.h" |
10251 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10252 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10253 | builtin and then its argument prototype would still apply. */ |
10254 | char gethostbyname(); | |
6232543b | 10255 | |
698dcdb6 VZ |
10256 | int main() { |
10257 | gethostbyname() | |
10258 | ; return 0; } | |
10259 | EOF | |
ab252f7b | 10260 | if { (eval echo configure:10261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10261 | rm -rf conftest* |
10262 | eval "ac_cv_lib_$ac_lib_var=yes" | |
703e0a69 | 10263 | else |
698dcdb6 VZ |
10264 | echo "configure: failed program was:" >&5 |
10265 | cat conftest.$ac_ext >&5 | |
10266 | rm -rf conftest* | |
10267 | eval "ac_cv_lib_$ac_lib_var=no" | |
10268 | fi | |
10269 | rm -f conftest* | |
10270 | LIBS="$ac_save_LIBS" | |
1e487827 | 10271 | |
698dcdb6 VZ |
10272 | fi |
10273 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10274 | echo "$ac_t""yes" 1>&6 | |
10275 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
10276 | else | |
10277 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
10278 | fi |
10279 | ||
10280 | fi | |
10281 | ||
10282 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
10283 | # socket/setsockopt and other routines are undefined under SCO ODT | |
10284 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
698dcdb6 VZ |
10285 | # on later versions), says simon@lia.di.epfl.ch: it contains |
10286 | # gethostby* variants that don't use the nameserver (or something). | |
10287 | # -lsocket must be given before -lnsl if both are needed. | |
10288 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
10289 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
ab252f7b | 10290 | echo "configure:10291: checking for connect" >&5 |
698dcdb6 VZ |
10291 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
10292 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10293 | else | |
10294 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 10295 | #line 10296 "configure" |
ab9b9eab VZ |
10296 | #include "confdefs.h" |
10297 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 10298 | which can conflict with char connect(); below. */ |
ab9b9eab VZ |
10299 | #include <assert.h> |
10300 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10301 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10302 | builtin and then its argument prototype would still apply. */ |
10303 | char connect(); | |
10304 | ||
10305 | int main() { | |
ab9b9eab VZ |
10306 | |
10307 | /* The GNU C library defines this for functions which it implements | |
10308 | to always fail with ENOSYS. Some functions are actually named | |
10309 | something starting with __ and the normal name is an alias. */ | |
10310 | #if defined (__stub_connect) || defined (__stub___connect) | |
10311 | choke me | |
10312 | #else | |
698dcdb6 | 10313 | connect(); |
ab9b9eab VZ |
10314 | #endif |
10315 | ||
698dcdb6 VZ |
10316 | ; return 0; } |
10317 | EOF | |
ab252f7b | 10318 | if { (eval echo configure:10319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10319 | rm -rf conftest* |
10320 | eval "ac_cv_func_connect=yes" | |
10321 | else | |
10322 | echo "configure: failed program was:" >&5 | |
10323 | cat conftest.$ac_ext >&5 | |
10324 | rm -rf conftest* | |
10325 | eval "ac_cv_func_connect=no" | |
10326 | fi | |
10327 | rm -f conftest* | |
10328 | fi | |
10329 | ||
10330 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
10331 | echo "$ac_t""yes" 1>&6 | |
10332 | : | |
10333 | else | |
10334 | echo "$ac_t""no" 1>&6 | |
10335 | fi | |
ab9b9eab VZ |
10336 | |
10337 | if test $ac_cv_func_connect = no; then | |
698dcdb6 | 10338 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
ab252f7b | 10339 | echo "configure:10340: checking for connect in -lsocket" >&5 |
698dcdb6 VZ |
10340 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
10341 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10342 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 10343 | else |
698dcdb6 | 10344 | ac_save_LIBS="$LIBS" |
ab9b9eab | 10345 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
698dcdb6 | 10346 | cat > conftest.$ac_ext <<EOF |
ab252f7b | 10347 | #line 10348 "configure" |
ab9b9eab VZ |
10348 | #include "confdefs.h" |
10349 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10350 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10351 | builtin and then its argument prototype would still apply. */ |
10352 | char connect(); | |
10353 | ||
10354 | int main() { | |
10355 | connect() | |
10356 | ; return 0; } | |
10357 | EOF | |
ab252f7b | 10358 | if { (eval echo configure:10359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10359 | rm -rf conftest* |
10360 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10361 | else | |
10362 | echo "configure: failed program was:" >&5 | |
10363 | cat conftest.$ac_ext >&5 | |
10364 | rm -rf conftest* | |
10365 | eval "ac_cv_lib_$ac_lib_var=no" | |
10366 | fi | |
10367 | rm -f conftest* | |
10368 | LIBS="$ac_save_LIBS" | |
10369 | ||
10370 | fi | |
10371 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10372 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 10373 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
698dcdb6 VZ |
10374 | else |
10375 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
10376 | fi |
10377 | ||
10378 | fi | |
10379 | ||
698dcdb6 VZ |
10380 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
10381 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
ab252f7b | 10382 | echo "configure:10383: checking for remove" >&5 |
698dcdb6 VZ |
10383 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
10384 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 10385 | else |
698dcdb6 | 10386 | cat > conftest.$ac_ext <<EOF |
ab252f7b | 10387 | #line 10388 "configure" |
ab9b9eab VZ |
10388 | #include "confdefs.h" |
10389 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 10390 | which can conflict with char remove(); below. */ |
ab9b9eab VZ |
10391 | #include <assert.h> |
10392 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10393 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10394 | builtin and then its argument prototype would still apply. */ |
10395 | char remove(); | |
10396 | ||
10397 | int main() { | |
ab9b9eab VZ |
10398 | |
10399 | /* The GNU C library defines this for functions which it implements | |
10400 | to always fail with ENOSYS. Some functions are actually named | |
10401 | something starting with __ and the normal name is an alias. */ | |
10402 | #if defined (__stub_remove) || defined (__stub___remove) | |
10403 | choke me | |
10404 | #else | |
698dcdb6 | 10405 | remove(); |
ab9b9eab VZ |
10406 | #endif |
10407 | ||
698dcdb6 VZ |
10408 | ; return 0; } |
10409 | EOF | |
ab252f7b | 10410 | if { (eval echo configure:10411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10411 | rm -rf conftest* |
10412 | eval "ac_cv_func_remove=yes" | |
10413 | else | |
10414 | echo "configure: failed program was:" >&5 | |
10415 | cat conftest.$ac_ext >&5 | |
10416 | rm -rf conftest* | |
10417 | eval "ac_cv_func_remove=no" | |
10418 | fi | |
10419 | rm -f conftest* | |
10420 | fi | |
10421 | ||
10422 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
10423 | echo "$ac_t""yes" 1>&6 | |
10424 | : | |
10425 | else | |
10426 | echo "$ac_t""no" 1>&6 | |
10427 | fi | |
ab9b9eab VZ |
10428 | |
10429 | if test $ac_cv_func_remove = no; then | |
698dcdb6 | 10430 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
ab252f7b | 10431 | echo "configure:10432: checking for remove in -lposix" >&5 |
698dcdb6 VZ |
10432 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
10433 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10434 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 10435 | else |
698dcdb6 | 10436 | ac_save_LIBS="$LIBS" |
ab9b9eab | 10437 | LIBS="-lposix $LIBS" |
698dcdb6 | 10438 | cat > conftest.$ac_ext <<EOF |
ab252f7b | 10439 | #line 10440 "configure" |
ab9b9eab VZ |
10440 | #include "confdefs.h" |
10441 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10442 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10443 | builtin and then its argument prototype would still apply. */ |
10444 | char remove(); | |
10445 | ||
10446 | int main() { | |
10447 | remove() | |
10448 | ; return 0; } | |
10449 | EOF | |
ab252f7b | 10450 | if { (eval echo configure:10451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10451 | rm -rf conftest* |
10452 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10453 | else | |
10454 | echo "configure: failed program was:" >&5 | |
10455 | cat conftest.$ac_ext >&5 | |
10456 | rm -rf conftest* | |
10457 | eval "ac_cv_lib_$ac_lib_var=no" | |
10458 | fi | |
10459 | rm -f conftest* | |
10460 | LIBS="$ac_save_LIBS" | |
10461 | ||
10462 | fi | |
10463 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10464 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 10465 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
698dcdb6 VZ |
10466 | else |
10467 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
10468 | fi |
10469 | ||
10470 | fi | |
10471 | ||
10472 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
698dcdb6 | 10473 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
ab252f7b | 10474 | echo "configure:10475: checking for shmat" >&5 |
698dcdb6 VZ |
10475 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
10476 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 10477 | else |
698dcdb6 | 10478 | cat > conftest.$ac_ext <<EOF |
ab252f7b | 10479 | #line 10480 "configure" |
ab9b9eab VZ |
10480 | #include "confdefs.h" |
10481 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 10482 | which can conflict with char shmat(); below. */ |
ab9b9eab VZ |
10483 | #include <assert.h> |
10484 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10485 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10486 | builtin and then its argument prototype would still apply. */ |
10487 | char shmat(); | |
10488 | ||
10489 | int main() { | |
ab9b9eab VZ |
10490 | |
10491 | /* The GNU C library defines this for functions which it implements | |
10492 | to always fail with ENOSYS. Some functions are actually named | |
10493 | something starting with __ and the normal name is an alias. */ | |
10494 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
10495 | choke me | |
10496 | #else | |
698dcdb6 | 10497 | shmat(); |
ab9b9eab VZ |
10498 | #endif |
10499 | ||
698dcdb6 VZ |
10500 | ; return 0; } |
10501 | EOF | |
ab252f7b | 10502 | if { (eval echo configure:10503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10503 | rm -rf conftest* |
10504 | eval "ac_cv_func_shmat=yes" | |
10505 | else | |
10506 | echo "configure: failed program was:" >&5 | |
10507 | cat conftest.$ac_ext >&5 | |
10508 | rm -rf conftest* | |
10509 | eval "ac_cv_func_shmat=no" | |
10510 | fi | |
10511 | rm -f conftest* | |
10512 | fi | |
10513 | ||
10514 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
10515 | echo "$ac_t""yes" 1>&6 | |
10516 | : | |
10517 | else | |
10518 | echo "$ac_t""no" 1>&6 | |
10519 | fi | |
ab9b9eab VZ |
10520 | |
10521 | if test $ac_cv_func_shmat = no; then | |
698dcdb6 | 10522 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
ab252f7b | 10523 | echo "configure:10524: checking for shmat in -lipc" >&5 |
698dcdb6 VZ |
10524 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
10525 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10526 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 10527 | else |
698dcdb6 | 10528 | ac_save_LIBS="$LIBS" |
ab9b9eab | 10529 | LIBS="-lipc $LIBS" |
698dcdb6 | 10530 | cat > conftest.$ac_ext <<EOF |
ab252f7b | 10531 | #line 10532 "configure" |
ab9b9eab VZ |
10532 | #include "confdefs.h" |
10533 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10534 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10535 | builtin and then its argument prototype would still apply. */ |
10536 | char shmat(); | |
10537 | ||
10538 | int main() { | |
10539 | shmat() | |
10540 | ; return 0; } | |
10541 | EOF | |
ab252f7b | 10542 | if { (eval echo configure:10543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10543 | rm -rf conftest* |
10544 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10545 | else | |
10546 | echo "configure: failed program was:" >&5 | |
10547 | cat conftest.$ac_ext >&5 | |
10548 | rm -rf conftest* | |
10549 | eval "ac_cv_lib_$ac_lib_var=no" | |
10550 | fi | |
10551 | rm -f conftest* | |
10552 | LIBS="$ac_save_LIBS" | |
10553 | ||
10554 | fi | |
10555 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10556 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 10557 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
698dcdb6 VZ |
10558 | else |
10559 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
10560 | fi |
10561 | ||
10562 | fi | |
10563 | fi | |
10564 | ||
10565 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
698dcdb6 | 10566 | ac_save_LDFLAGS="$LDFLAGS" |
ab9b9eab VZ |
10567 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
10568 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
10569 | # check for ICE first), but we must link in the order -lSM -lICE or | |
10570 | # we get undefined symbols. So assume we have SM if we have ICE. | |
10571 | # These have to be linked with before -lX11, unlike the other | |
10572 | # libraries we check for below, so use a different variable. | |
698dcdb6 VZ |
10573 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
10574 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
ab252f7b | 10575 | echo "configure:10576: checking for IceConnectionNumber in -lICE" >&5 |
698dcdb6 VZ |
10576 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
10577 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10578 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10579 | else | |
10580 | ac_save_LIBS="$LIBS" | |
ab9b9eab | 10581 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
698dcdb6 | 10582 | cat > conftest.$ac_ext <<EOF |
ab252f7b | 10583 | #line 10584 "configure" |
ab9b9eab VZ |
10584 | #include "confdefs.h" |
10585 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10586 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10587 | builtin and then its argument prototype would still apply. */ |
10588 | char IceConnectionNumber(); | |
10589 | ||
10590 | int main() { | |
10591 | IceConnectionNumber() | |
10592 | ; return 0; } | |
10593 | EOF | |
ab252f7b | 10594 | if { (eval echo configure:10595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10595 | rm -rf conftest* |
10596 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10597 | else | |
10598 | echo "configure: failed program was:" >&5 | |
10599 | cat conftest.$ac_ext >&5 | |
10600 | rm -rf conftest* | |
10601 | eval "ac_cv_lib_$ac_lib_var=no" | |
10602 | fi | |
10603 | rm -f conftest* | |
10604 | LIBS="$ac_save_LIBS" | |
10605 | ||
10606 | fi | |
10607 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10608 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 10609 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
698dcdb6 VZ |
10610 | else |
10611 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
10612 | fi |
10613 | ||
698dcdb6 | 10614 | LDFLAGS="$ac_save_LDFLAGS" |
ab9b9eab VZ |
10615 | |
10616 | fi | |
10617 | ||
1e6feb95 VZ |
10618 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
10619 | LDFLAGS="$LDFLAGS $X_LIBS" | |
ab9b9eab | 10620 | |
1e6feb95 VZ |
10621 | if test "$wxUSE_MOTIF" = 1; then |
10622 | if test "$no_x" = "yes"; then | |
10623 | { echo "configure: error: X11 not found" 1>&2; exit 1; } | |
10624 | fi | |
ab9b9eab | 10625 | |
1e6feb95 VZ |
10626 | GUI_TK_LIBRARY="$X_LIBS" |
10627 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
ab9b9eab | 10628 | |
1e6feb95 | 10629 | AFMINSTALL=afminstall |
dad6c0ea | 10630 | |
1e6feb95 VZ |
10631 | |
10632 | COMPILED_X_PROGRAM=0 | |
cd6d6d5b | 10633 | |
1e6feb95 | 10634 | echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6 |
ab252f7b | 10635 | echo "configure:10636: checking for Motif/Lesstif headers" >&5 |
1e6feb95 | 10636 | |
ab9b9eab VZ |
10637 | ac_find_includes= |
10638 | for ac_dir in $SEARCH_INCLUDE; | |
10639 | do | |
10640 | if test -f "$ac_dir/Xm/Xm.h"; then | |
10641 | ac_find_includes=$ac_dir | |
10642 | break | |
10643 | fi | |
10644 | done | |
10645 | ||
1e6feb95 VZ |
10646 | if test "$ac_find_includes" != "" ; then |
10647 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
10648 | else | |
10649 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 10650 | #line 10651 "configure" |
cd6d6d5b VZ |
10651 | #include "confdefs.h" |
10652 | ||
1e6feb95 VZ |
10653 | #include <Xm/Xm.h> |
10654 | ||
698dcdb6 | 10655 | int main() { |
cd6d6d5b | 10656 | |
1e6feb95 | 10657 | int version; |
cd6d6d5b | 10658 | |
1e6feb95 VZ |
10659 | version = xmUseVersion; |
10660 | ||
698dcdb6 VZ |
10661 | ; return 0; } |
10662 | EOF | |
ab252f7b | 10663 | if { (eval echo configure:10664: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
10664 | rm -rf conftest* |
10665 | ||
1e6feb95 VZ |
10666 | echo "$ac_t""found in default search path" 1>&6 |
10667 | COMPILED_X_PROGRAM=1 | |
10668 | ||
cd6d6d5b | 10669 | else |
698dcdb6 VZ |
10670 | echo "configure: failed program was:" >&5 |
10671 | cat conftest.$ac_ext >&5 | |
10672 | rm -rf conftest* | |
10673 | ||
1e6feb95 VZ |
10674 | echo "$ac_t""no" 1>&6 |
10675 | { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; } | |
10676 | ||
698dcdb6 | 10677 | |
cd6d6d5b | 10678 | fi |
698dcdb6 | 10679 | rm -f conftest* |
1e6feb95 | 10680 | fi |
ab9b9eab | 10681 | |
1e6feb95 VZ |
10682 | if test "$COMPILED_X_PROGRAM" = 0; then |
10683 | echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6 | |
ab252f7b | 10684 | echo "configure:10685: checking for Motif/Lesstif library" >&5 |
1e6feb95 | 10685 | |
ab9b9eab VZ |
10686 | ac_find_libraries= |
10687 | for ac_dir in $SEARCH_LIB; | |
10688 | do | |
f11bdd03 | 10689 | for ac_extension in a so sl dylib; do |
ab9b9eab VZ |
10690 | if test -f "$ac_dir/libXm.$ac_extension"; then |
10691 | ac_find_libraries=$ac_dir | |
10692 | break 2 | |
10693 | fi | |
10694 | done | |
10695 | done | |
10696 | ||
1e6feb95 VZ |
10697 | if test "$ac_find_libraries" != "" ; then |
10698 | ||
ab9b9eab VZ |
10699 | ac_path_to_include=$ac_find_includes |
10700 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
10701 | result=$? | |
10702 | if test $result = 0; then | |
10703 | ac_path_to_include="" | |
10704 | else | |
10705 | ac_path_to_include="-I$ac_find_includes" | |
10706 | fi | |
10707 | ||
1e6feb95 | 10708 | |
ab9b9eab VZ |
10709 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
10710 | result=$? | |
10711 | if test $result = 0; then | |
10712 | ac_path_to_link="" | |
10713 | else | |
10714 | ac_path_to_link="-L$ac_find_libraries" | |
10715 | fi | |
10716 | ||
698dcdb6 | 10717 | |
1e6feb95 VZ |
10718 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" |
10719 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include" | |
10720 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
10721 | else | |
10722 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 10723 | #line 10724 "configure" |
cd6d6d5b | 10724 | #include "confdefs.h" |
ab9b9eab | 10725 | |
1e6feb95 VZ |
10726 | #include <Xm/Xm.h> |
10727 | ||
698dcdb6 | 10728 | int main() { |
ab9b9eab | 10729 | |
1e6feb95 | 10730 | int version; |
ab9b9eab | 10731 | |
1e6feb95 VZ |
10732 | version = xmUseVersion; |
10733 | ||
698dcdb6 VZ |
10734 | ; return 0; } |
10735 | EOF | |
ab252f7b | 10736 | if { (eval echo configure:10737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
10737 | rm -rf conftest* |
10738 | ||
1e6feb95 VZ |
10739 | echo "$ac_t""found in default search path" 1>&6 |
10740 | COMPILED_X_PROGRAM=1 | |
10741 | ||
cd6d6d5b | 10742 | else |
698dcdb6 VZ |
10743 | echo "configure: failed program was:" >&5 |
10744 | cat conftest.$ac_ext >&5 | |
10745 | rm -rf conftest* | |
10746 | ||
1e6feb95 VZ |
10747 | echo "$ac_t""no" 1>&6 |
10748 | { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; } | |
10749 | ||
698dcdb6 | 10750 | |
cd6d6d5b | 10751 | fi |
698dcdb6 | 10752 | rm -f conftest* |
1e6feb95 | 10753 | fi |
cd6d6d5b | 10754 | fi |
ab9b9eab | 10755 | |
1e6feb95 VZ |
10756 | |
10757 | XPM_LINK="" | |
10758 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
ab252f7b | 10759 | echo "configure:10760: checking for Xpm library" >&5 |
1e6feb95 | 10760 | |
ab9b9eab VZ |
10761 | ac_find_libraries= |
10762 | for ac_dir in $SEARCH_LIB; | |
10763 | do | |
f11bdd03 | 10764 | for ac_extension in a so sl dylib; do |
ab9b9eab VZ |
10765 | if test -f "$ac_dir/libXpm.$ac_extension"; then |
10766 | ac_find_libraries=$ac_dir | |
10767 | break 2 | |
10768 | fi | |
10769 | done | |
10770 | done | |
10771 | ||
1e6feb95 VZ |
10772 | if test "$ac_find_libraries" != "" ; then |
10773 | ||
ab9b9eab VZ |
10774 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
10775 | result=$? | |
10776 | if test $result = 0; then | |
10777 | ac_path_to_link="" | |
10778 | else | |
10779 | ac_path_to_link="-L$ac_find_libraries" | |
10780 | fi | |
10781 | ||
1e6feb95 VZ |
10782 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" |
10783 | XPM_LINK="-lXpm " | |
10784 | cat >> confdefs.h <<\EOF | |
ab9b9eab VZ |
10785 | #define wxHAVE_LIB_XPM 1 |
10786 | EOF | |
10787 | ||
1e6feb95 VZ |
10788 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
10789 | else | |
10790 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 10791 | #line 10792 "configure" |
cd6d6d5b VZ |
10792 | #include "confdefs.h" |
10793 | ||
1e6feb95 VZ |
10794 | #include <X11/xpm.h> |
10795 | ||
698dcdb6 | 10796 | int main() { |
cd6d6d5b | 10797 | |
1e6feb95 | 10798 | int version; |
cd6d6d5b | 10799 | |
1e6feb95 VZ |
10800 | version = XpmLibraryVersion(); |
10801 | ||
698dcdb6 VZ |
10802 | ; return 0; } |
10803 | EOF | |
ab252f7b | 10804 | if { (eval echo configure:10805: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
10805 | rm -rf conftest* |
10806 | ||
1e6feb95 VZ |
10807 | XPM_LINK="-lXpm " |
10808 | cat >> confdefs.h <<\EOF | |
3ace2e6d SN |
10809 | #define wxHAVE_LIB_XPM 1 |
10810 | EOF | |
10811 | ||
1e6feb95 VZ |
10812 | echo "$ac_t""found in default search path" 1>&6 |
10813 | COMPILED_X_PROGRAM=0 | |
10814 | ||
cd6d6d5b | 10815 | else |
698dcdb6 VZ |
10816 | echo "configure: failed program was:" >&5 |
10817 | cat conftest.$ac_ext >&5 | |
10818 | rm -rf conftest* | |
10819 | ||
1e6feb95 VZ |
10820 | echo "$ac_t""no" 1>&6 |
10821 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
10822 | ||
698dcdb6 | 10823 | |
cd6d6d5b | 10824 | fi |
698dcdb6 | 10825 | rm -f conftest* |
1e6feb95 VZ |
10826 | fi |
10827 | ||
10828 | GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11" | |
10829 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK" | |
10830 | TOOLKIT=MOTIF | |
10831 | GUIDIST=MOTIF_DIST | |
ab9b9eab VZ |
10832 | fi |
10833 | ||
1e6feb95 VZ |
10834 | if test "$wxUSE_MAC" = 1; then |
10835 | TOOLKIT=MAC | |
10836 | GUIDIST=MACX_DIST | |
10837 | fi | |
10f2d63a | 10838 | |
1e6feb95 VZ |
10839 | if test "$wxUSE_PM" = 1; then |
10840 | TOOLKIT=PM | |
10841 | GUIDIST=GTK_DIST | |
10842 | fi | |
b4085ce6 | 10843 | |
1e6feb95 VZ |
10844 | if test "$TOOLKIT" != "PM" ; then |
10845 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
10846 | else | |
10847 | TOOLKIT_DIR="os2" | |
10848 | fi | |
e07802fc | 10849 | |
1e6feb95 | 10850 | TOOLKIT_NAME="${TOOLKIT_DIR}" |
10f2d63a | 10851 | |
1e6feb95 VZ |
10852 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" |
10853 | ||
10854 | if test "$TOOLKIT_NAME" = "motif"; then | |
10855 | TOOLKIT_VPATH="${TOOLKIT_VPATH}${PATH_IFS}\${top_srcdir}/src/motif/xmcombo" | |
10856 | fi | |
10857 | ||
10858 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
10859 | TOOLKIT_NAME="${TOOLKIT_NAME}univ" | |
10860 | UNIV_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes" | |
10861 | TOOLKIT_VPATH="${UNIV_VPATH}${PATH_IFS}${TOOLKIT_VPATH}" | |
10862 | SETUPH_DIR="univ" | |
f6bcfd97 | 10863 | else |
1e6feb95 VZ |
10864 | SETUPH_DIR="${TOOLKIT_DIR}" |
10865 | fi | |
10866 | ||
10867 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
10868 | TOOLKIT_NAME="${TOOLKIT_NAME}d" | |
f6bcfd97 BP |
10869 | fi |
10870 | ||
2224580a | 10871 | TOOLKIT_DEF="-D__WX${TOOLKIT}__" |
1e6feb95 VZ |
10872 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
10873 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXUNIVERSAL__" | |
10874 | fi | |
10f2d63a | 10875 | |
f6bcfd97 | 10876 | WX_LIBRARY="wx_${TOOLKIT_NAME}" |
10f2d63a | 10877 | |
1e6feb95 VZ |
10878 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
10879 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
10880 | else | |
10881 | ALL_OBJECTS="\$(GUIOBJS)" | |
10882 | fi | |
10883 | ||
10884 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" | |
10885 | ||
10886 | if test "$TOOLKIT" != "MSW"; then | |
10887 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" | |
10888 | fi | |
10889 | ||
10890 | if test "$wxUSE_HTML" = "yes"; then | |
10891 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
10892 | fi | |
3fcdd07b | 10893 | |
1e6feb95 VZ |
10894 | if test "$TOOLKIT" != "MSW"; then |
10895 | if test "$wxUSE_ODBC" = "yes" ; then | |
10896 | ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)" | |
10897 | fi | |
3fcdd07b VZ |
10898 | fi |
10899 | ||
831b3152 VZ |
10900 | if test "x$REGEX_INCLUDE" != "x" ; then |
10901 | ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)" | |
10902 | fi | |
10903 | ||
d9d8273d | 10904 | if test "$wxUSE_LIBJPEG" = "yes" ; then |
2224580a | 10905 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" |
d9d8273d RR |
10906 | fi |
10907 | if test "$wxUSE_LIBTIFF" = "yes" ; then | |
10908 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
10909 | fi | |
10910 | if test "$wxUSE_LIBPNG" = "yes" ; then | |
10911 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
10912 | fi | |
10913 | if test "$wxUSE_ZLIB" = "yes" ; then | |
10914 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
10915 | fi | |
3fed1840 RR |
10916 | if test "$wxUSE_FREETYPE" = "yes" ; then |
10917 | ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)" | |
10918 | fi | |
2224580a | 10919 | |
1e6feb95 VZ |
10920 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
10921 | ALL_DEPFILES="\$(GUI_LOWLEVEL_DEPS) \$(UNIVDEPS)" | |
10922 | else | |
10923 | ALL_DEPFILES="\$(GUIDEPS)" | |
10924 | fi | |
10925 | ||
10926 | ALL_DEPFILES="${ALL_DEPFILES} \$(COMMONDEPS) \$(GENERICDEPS)" | |
10927 | ||
10928 | if test "$TOOLKIT" != "MSW"; then | |
10929 | ALL_DEPFILES="${ALL_DEPFILES} \$(UNIXDEPS)" | |
10930 | fi | |
10931 | ||
10932 | if test "$wxUSE_HTML" = "yes"; then | |
10933 | ALL_DEPFILES="${ALL_DEPFILES} \$(HTMLDEPS)" | |
10934 | fi | |
10935 | ||
879df073 | 10936 | PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst" |
1e6feb95 | 10937 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
879df073 | 10938 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" |
1e6feb95 | 10939 | fi |
2224580a VZ |
10940 | RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst" |
10941 | RPM_SPEC="wx\$(TOOLKIT).spec" | |
10942 | ||
10943 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
10944 | DISTDIR="wx\$(TOOLKIT)" | |
10f2d63a | 10945 | else |
dad6c0ea VZ |
10946 | USE_GUI=0 |
10947 | ||
f6bcfd97 BP |
10948 | TOOLKIT_DIR="base" |
10949 | ||
0b2effe9 VZ |
10950 | TOOLKIT_VPATH="." |
10951 | ||
f6bcfd97 BP |
10952 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then |
10953 | TOOLKIT_NAME="${TOOLKIT_DIR}d" | |
10954 | else | |
10955 | TOOLKIT_NAME="${TOOLKIT_DIR}" | |
10956 | fi | |
10957 | ||
07eb77a6 RL |
10958 | TOOLKIT_DEF="-D__WXBASE__" |
10959 | ||
b4085ce6 GD |
10960 | ALL_OBJECTS="\$(BASE_OBJS) \$(BASE_UNIX_OBJS)" |
10961 | ALL_DEPFILES="\$(BASE_DEPS) \$(BASE_UNIX_DEPS)" | |
10f2d63a | 10962 | |
0b2effe9 VZ |
10963 | if test "x$REGEX_INCLUDE" != "x" ; then |
10964 | ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)" | |
10965 | fi | |
10966 | ||
a20b6d3a VZ |
10967 | if test "$wxUSE_ZLIB" = "yes" ; then |
10968 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
10969 | fi | |
10970 | ||
f6bcfd97 | 10971 | WX_LIBRARY="wx_${TOOLKIT_NAME}" |
2224580a | 10972 | |
831b3152 | 10973 | PORT_FILES="\${top_srcdir}/src/files.lst" |
2224580a VZ |
10974 | RPM_FILES="src/rpmfiles.lst" |
10975 | RPM_SPEC="wxBase.spec" | |
10976 | ||
10977 | GUIDIST="BASE_DIST" | |
10978 | DISTDIR="wxBase" | |
10f2d63a VZ |
10979 | fi |
10980 | ||
10981 | WX_LIBRARY_NAME="lib${WX_LIBRARY}.la" | |
bdad4e7e | 10982 | WX_LIBRARY_NAME_GL="lib${WX_LIBRARY}_gl.la" |
10f2d63a VZ |
10983 | |
10984 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
bdad4e7e | 10985 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY}_gl.a" |
10f2d63a | 10986 | |
18dbb1f6 VZ |
10987 | case "${host}" in |
10988 | *-*-mingw32* ) | |
10989 | WX_LIBRARY_NAME_SHARED="wx${WX_MAJOR_VERSION_NUMBER}${WX_MINOR_VERSION_NUMBER}_${WX_RELEASE_NUMBER}.dll" | |
10990 | ;; | |
10991 | * ) | |
10992 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
10993 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
10994 | ;; | |
10995 | esac | |
10f2d63a VZ |
10996 | |
10997 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}" | |
10998 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so" | |
10999 | WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so" | |
bdad4e7e RR |
11000 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}" |
11001 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so" | |
11002 | WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.so" | |
10f2d63a VZ |
11003 | |
11004 | SHARED_LD= | |
11005 | PIC_FLAG= | |
11006 | WX_ALL= | |
11007 | WX_ALL_INSTALLED= | |
1d62a8b4 | 11008 | BURNT_LIBRARY_NAME= |
f6bcfd97 | 11009 | WX_TARGET_LIBRARY_SONAME= |
10f2d63a | 11010 | |
698dcdb6 | 11011 | |
10f2d63a VZ |
11012 | if test "$wxUSE_SHARED" = "yes"; then |
11013 | case "${host}" in | |
11014 | *-hp-hpux* ) | |
11015 | if test "$GCC" = yes ; then | |
6b076b40 | 11016 | SHARED_LD="${CXX} -shared -fPIC -o" |
10f2d63a VZ |
11017 | PIC_FLAG="-fPIC" |
11018 | else | |
f6bcfd97 BP |
11019 | LDFLAGS="-L/usr/lib" |
11020 | ||
10f2d63a VZ |
11021 | SHARED_LD="${CXX} -b -o" |
11022 | PIC_FLAG="+Z" | |
11023 | fi | |
f6bcfd97 BP |
11024 | WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_NAME}.sl" |
11025 | WX_LIBRARY_NAME_SHARED_GL="libwx_${TOOLKIT_NAME}_gl.sl" | |
c661ecca | 11026 | if test "$wxUSE_OPENGL" = "yes"; then |
f6bcfd97 | 11027 | WX_ALL_INSTALLED="preinstall_gl" |
c661ecca RR |
11028 | WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}" |
11029 | else | |
11030 | WX_ALL="${WX_LIBRARY_NAME_SHARED}" | |
11031 | fi | |
10f2d63a | 11032 | ;; |
b12915c1 VZ |
11033 | |
11034 | *-*-linux* ) | |
6b076b40 | 11035 | SHARED_LD="${CXX} -shared -o" |
10f2d63a | 11036 | PIC_FLAG="-fPIC" |
00cf1208 | 11037 | if test "$wxUSE_BURNT_NAME" = "yes" ; then |
05cdfc6f | 11038 | BURNT_LIBRARY_NAME="-Wl,-soname,${WX_LIBRARY_LINK1}" |
bdad4e7e | 11039 | BURNT_LIBRARY_NAME_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}" |
f6bcfd97 | 11040 | WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)" |
00cf1208 | 11041 | fi |
c661ecca RR |
11042 | if test "$wxUSE_OPENGL" = "yes"; then |
11043 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
11044 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
11045 | else | |
11046 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
11047 | WX_ALL="CREATE_LINKS" | |
422107f9 | 11048 | fi |
00cf1208 | 11049 | ;; |
10f2d63a VZ |
11050 | *-*-irix5* | *-*-irix6* ) |
11051 | if test "$GCC" = yes ; then | |
6b076b40 | 11052 | SHARED_LD="${CXX} -shared -o" |
10f2d63a VZ |
11053 | PIC_FLAG="-fPIC" |
11054 | else | |
11055 | SHARED_LD="${CXX} -shared -o" | |
11056 | fi | |
c661ecca RR |
11057 | if test "$wxUSE_OPENGL" = "yes"; then |
11058 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
11059 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
11060 | else | |
11061 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
11062 | WX_ALL="CREATE_LINKS" | |
422107f9 | 11063 | fi |
10f2d63a VZ |
11064 | ;; |
11065 | *-*-solaris2* ) | |
11066 | if test "$GCC" = yes ; then | |
6b076b40 | 11067 | SHARED_LD="${CXX} -shared -o" |
10f2d63a | 11068 | PIC_FLAG="-fPIC" |
f6bcfd97 BP |
11069 | |
11070 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
10f2d63a VZ |
11071 | else |
11072 | SHARED_LD="${CXX} -G -o" | |
11073 | PIC_FLAG="-KPIC" | |
11074 | fi | |
c661ecca RR |
11075 | if test "$wxUSE_OPENGL" = "yes"; then |
11076 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
11077 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
11078 | else | |
11079 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
11080 | WX_ALL="CREATE_LINKS" | |
11081 | fi | |
10f2d63a VZ |
11082 | ;; |
11083 | *-*-sunos4* ) | |
6b076b40 | 11084 | SHARED_LD="${CXX} -shared -o" |
10f2d63a VZ |
11085 | PIC_FLAG="-fPIC" |
11086 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
11087 | WX_ALL="CREATE_LINKS" | |
11088 | ;; | |
95c8801c | 11089 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* ) |
6b076b40 | 11090 | SHARED_LD="${CXX} -shared -o" |
10f2d63a | 11091 | PIC_FLAG="-fPIC" |
37d403aa JS |
11092 | if test "$wxUSE_OPENGL" = "yes"; then |
11093 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
11094 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
11095 | else | |
11096 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
11097 | WX_ALL="CREATE_LINKS" | |
11098 | fi | |
10f2d63a | 11099 | ;; |
b4085ce6 | 11100 | *-*-darwin* ) |
f11bdd03 GD |
11101 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__UNIX__ -D__DARWIN__ -D__POWERPC__" |
11102 | CFLAGS="${CFLAGS} -fno-common" | |
11103 | CPPFLAGS="${CPPFLAGS} -fno-common" | |
ea5999b9 GD |
11104 | SHARED_LD="${CXX} -dynamiclib -o" |
11105 | PIC_FLAG="-dynamic -fPIC" | |
b4085ce6 GD |
11106 | if test "$wxUSE_OPENGL" = "yes"; then |
11107 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
11108 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
11109 | else | |
11110 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
11111 | WX_ALL="CREATE_LINKS" | |
11112 | fi | |
f11bdd03 GD |
11113 | if test "$wxUSE_MAC" = 1 ; then |
11114 | WX_ALL="${WX_ALL} ./lib/lib${WX_LIBRARY}-${WX_RELEASE}.r" | |
11115 | fi | |
1e6feb95 VZ |
11116 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" |
11117 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
11118 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}" | |
11119 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.dylib" | |
11120 | WX_LIBRARY_LINK3="lib${WX_LIBRARY}.dylib" | |
11121 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}" | |
11122 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib" | |
11123 | WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.dylib" | |
b4085ce6 | 11124 | ;; |
10f2d63a VZ |
11125 | *-*-osf* ) |
11126 | SHARED_LD="${CXX} -shared -o" | |
11127 | PIC_FLAG="-fPIC" | |
11128 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
11129 | WX_ALL="CREATE_LINKS" | |
11130 | ;; | |
11131 | *-*-dgux5* ) | |
11132 | SHARED_LD="${CXX} -shared -o" | |
11133 | PIC_FLAG="-fPIC" | |
11134 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
11135 | WX_ALL="CREATE_LINKS" | |
11136 | ;; | |
11137 | *-*-sysv5* ) | |
6b076b40 | 11138 | SHARED_LD="${CXX} -shared -o" |
10f2d63a VZ |
11139 | PIC_FLAG="-fPIC" |
11140 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
11141 | WX_ALL="CREATE_LINKS" | |
11142 | ;; | |
11143 | *-*-aix* ) | |
11144 | SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o" | |
11145 | WX_ALL=${WX_LIBRARY_NAME_SHARED} | |
11146 | ;; | |
1c8183e2 | 11147 | *-*-cygwin* ) |
10f2d63a | 11148 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" |
bdad4e7e | 11149 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" |
f6bcfd97 BP |
11150 | if test "$wxUSE_OPENGL" = "yes"; then |
11151 | WX_ALL_INSTALLED="preinstall_gl" | |
11152 | WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}" | |
11153 | else | |
11154 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
11155 | fi | |
10f2d63a | 11156 | ;; |
b12915c1 | 11157 | *-*-mingw32* ) |
18dbb1f6 VZ |
11158 | WX_LIBRARY_NAME_STATIC="lib/libwx${WX_MAJOR_VERSION_NUMBER}${WX_MINOR_VERSION_NUMBER}_${WX_RELEASE_NUMBER}.a" |
11159 | SHARED_LD="${CC} -shared -Wl,--out-implib,${WX_LIBRARY_NAME_STATIC} -o" | |
11160 | TOOLKIT_DEF="${TOOLKIT_DEF} -DWXUSINGDLL=1" | |
11161 | WXMSW_DLL_DEFINES="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1" | |
11162 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
11163 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" | |
f6bcfd97 BP |
11164 | if test "$wxUSE_OPENGL" = "yes"; then |
11165 | WX_ALL_INSTALLED="preinstall_gl" | |
18dbb1f6 | 11166 | WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}" |
f6bcfd97 | 11167 | else |
18dbb1f6 | 11168 | WX_ALL="${WX_LIBRARY_NAME_SHARED}" |
f6bcfd97 | 11169 | fi |
10f2d63a VZ |
11170 | ;; |
11171 | *-pc-os2_emx ) | |
e07802fc VZ |
11172 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" |
11173 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
10f2d63a | 11174 | ;; |
b12915c1 | 11175 | *-*-beos* ) |
e2b8b066 | 11176 | SHARED_LD="${LD} -shared -o" |
b12915c1 VZ |
11177 | PIC_FLAG="-fPIC" |
11178 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
11179 | WX_ALL="CREATE_LINKS" | |
11180 | ;; | |
10f2d63a | 11181 | *) |
698dcdb6 | 11182 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } |
10f2d63a VZ |
11183 | esac |
11184 | ||
11185 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
11186 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
bdad4e7e | 11187 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" |
10f2d63a | 11188 | fi |
3711412e | 11189 | WX_TARGET_LIBRARY_TYPE="so" |
10f2d63a VZ |
11190 | else |
11191 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
bdad4e7e | 11192 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" |
f6bcfd97 BP |
11193 | |
11194 | if test "$wxUSE_OPENGL" = "yes"; then | |
11195 | WX_ALL_INSTALLED="preinstall_gl" | |
11196 | WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}" | |
11197 | else | |
11198 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
11199 | fi | |
11200 | ||
11201 | if test "$wxUSE_GUI" = "no"; then | |
11202 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
11203 | fi | |
11204 | ||
3711412e | 11205 | WX_TARGET_LIBRARY_TYPE="a" |
10f2d63a VZ |
11206 | fi |
11207 | ||
698dcdb6 VZ |
11208 | |
11209 | for ac_hdr in strings.h | |
10f2d63a | 11210 | do |
698dcdb6 VZ |
11211 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11212 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
ab252f7b | 11213 | echo "configure:11214: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
11214 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11215 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11216 | else | |
11217 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 11218 | #line 11219 "configure" |
10f2d63a | 11219 | #include "confdefs.h" |
698dcdb6 VZ |
11220 | #include <$ac_hdr> |
11221 | EOF | |
11222 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
ab252f7b | 11223 | { (eval echo configure:11224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11224 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11225 | if test -z "$ac_err"; then | |
11226 | rm -rf conftest* | |
11227 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 11228 | else |
698dcdb6 VZ |
11229 | echo "$ac_err" >&5 |
11230 | echo "configure: failed program was:" >&5 | |
10f2d63a | 11231 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11232 | rm -rf conftest* |
11233 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 11234 | fi |
698dcdb6 | 11235 | rm -f conftest* |
10f2d63a | 11236 | fi |
698dcdb6 VZ |
11237 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11238 | echo "$ac_t""yes" 1>&6 | |
11239 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11240 | cat >> confdefs.h <<EOF | |
11241 | #define $ac_tr_hdr 1 | |
10f2d63a | 11242 | EOF |
698dcdb6 VZ |
11243 | |
11244 | else | |
11245 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
11246 | fi |
11247 | done | |
11248 | ||
698dcdb6 | 11249 | for ac_hdr in stdlib.h |
9cfadba2 | 11250 | do |
698dcdb6 VZ |
11251 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11252 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
ab252f7b | 11253 | echo "configure:11254: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
11254 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11255 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11256 | else | |
11257 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 11258 | #line 11259 "configure" |
9cfadba2 | 11259 | #include "confdefs.h" |
698dcdb6 VZ |
11260 | #include <$ac_hdr> |
11261 | EOF | |
11262 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
ab252f7b | 11263 | { (eval echo configure:11264: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11264 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11265 | if test -z "$ac_err"; then | |
11266 | rm -rf conftest* | |
11267 | eval "ac_cv_header_$ac_safe=yes" | |
6232543b | 11268 | else |
698dcdb6 VZ |
11269 | echo "$ac_err" >&5 |
11270 | echo "configure: failed program was:" >&5 | |
9cfadba2 | 11271 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11272 | rm -rf conftest* |
11273 | eval "ac_cv_header_$ac_safe=no" | |
9cfadba2 | 11274 | fi |
698dcdb6 | 11275 | rm -f conftest* |
9cfadba2 | 11276 | fi |
698dcdb6 VZ |
11277 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11278 | echo "$ac_t""yes" 1>&6 | |
11279 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11280 | cat >> confdefs.h <<EOF | |
11281 | #define $ac_tr_hdr 1 | |
9cfadba2 | 11282 | EOF |
698dcdb6 VZ |
11283 | |
11284 | else | |
11285 | echo "$ac_t""no" 1>&6 | |
9cfadba2 VZ |
11286 | fi |
11287 | done | |
10f2d63a | 11288 | |
698dcdb6 | 11289 | for ac_hdr in unistd.h |
10f2d63a | 11290 | do |
698dcdb6 VZ |
11291 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11292 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
ab252f7b | 11293 | echo "configure:11294: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
11294 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11295 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11296 | else | |
11297 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 11298 | #line 11299 "configure" |
10f2d63a | 11299 | #include "confdefs.h" |
698dcdb6 VZ |
11300 | #include <$ac_hdr> |
11301 | EOF | |
11302 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
ab252f7b | 11303 | { (eval echo configure:11304: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11304 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11305 | if test -z "$ac_err"; then | |
11306 | rm -rf conftest* | |
11307 | eval "ac_cv_header_$ac_safe=yes" | |
6232543b | 11308 | else |
698dcdb6 VZ |
11309 | echo "$ac_err" >&5 |
11310 | echo "configure: failed program was:" >&5 | |
10f2d63a | 11311 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11312 | rm -rf conftest* |
11313 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 11314 | fi |
698dcdb6 | 11315 | rm -f conftest* |
10f2d63a | 11316 | fi |
698dcdb6 VZ |
11317 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11318 | echo "$ac_t""yes" 1>&6 | |
11319 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11320 | cat >> confdefs.h <<EOF | |
11321 | #define $ac_tr_hdr 1 | |
10f2d63a | 11322 | EOF |
698dcdb6 VZ |
11323 | |
11324 | else | |
11325 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
11326 | fi |
11327 | done | |
11328 | ||
698dcdb6 | 11329 | for ac_hdr in wchar.h |
10f2d63a | 11330 | do |
698dcdb6 VZ |
11331 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11332 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
ab252f7b | 11333 | echo "configure:11334: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
11334 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11335 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11336 | else | |
11337 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 11338 | #line 11339 "configure" |
10f2d63a | 11339 | #include "confdefs.h" |
698dcdb6 VZ |
11340 | #include <$ac_hdr> |
11341 | EOF | |
11342 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
ab252f7b | 11343 | { (eval echo configure:11344: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11344 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11345 | if test -z "$ac_err"; then | |
11346 | rm -rf conftest* | |
11347 | eval "ac_cv_header_$ac_safe=yes" | |
6f72b082 | 11348 | else |
698dcdb6 VZ |
11349 | echo "$ac_err" >&5 |
11350 | echo "configure: failed program was:" >&5 | |
6f72b082 | 11351 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11352 | rm -rf conftest* |
11353 | eval "ac_cv_header_$ac_safe=no" | |
6f72b082 | 11354 | fi |
698dcdb6 | 11355 | rm -f conftest* |
6f72b082 | 11356 | fi |
698dcdb6 VZ |
11357 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11358 | echo "$ac_t""yes" 1>&6 | |
11359 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11360 | cat >> confdefs.h <<EOF | |
11361 | #define $ac_tr_hdr 1 | |
6f72b082 | 11362 | EOF |
698dcdb6 VZ |
11363 | |
11364 | else | |
11365 | echo "$ac_t""no" 1>&6 | |
6f72b082 OK |
11366 | fi |
11367 | done | |
11368 | ||
698dcdb6 | 11369 | for ac_hdr in wcstr.h |
6f72b082 | 11370 | do |
698dcdb6 VZ |
11371 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11372 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
ab252f7b | 11373 | echo "configure:11374: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
11374 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11375 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11376 | else | |
11377 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 11378 | #line 11379 "configure" |
6f72b082 | 11379 | #include "confdefs.h" |
698dcdb6 VZ |
11380 | #include <$ac_hdr> |
11381 | EOF | |
11382 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
ab252f7b | 11383 | { (eval echo configure:11384: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11384 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11385 | if test -z "$ac_err"; then | |
11386 | rm -rf conftest* | |
11387 | eval "ac_cv_header_$ac_safe=yes" | |
6f72b082 | 11388 | else |
698dcdb6 VZ |
11389 | echo "$ac_err" >&5 |
11390 | echo "configure: failed program was:" >&5 | |
6f72b082 | 11391 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11392 | rm -rf conftest* |
11393 | eval "ac_cv_header_$ac_safe=no" | |
6f72b082 | 11394 | fi |
698dcdb6 | 11395 | rm -f conftest* |
6f72b082 | 11396 | fi |
698dcdb6 VZ |
11397 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11398 | echo "$ac_t""yes" 1>&6 | |
11399 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11400 | cat >> confdefs.h <<EOF | |
11401 | #define $ac_tr_hdr 1 | |
6f72b082 | 11402 | EOF |
698dcdb6 VZ |
11403 | |
11404 | else | |
11405 | echo "$ac_t""no" 1>&6 | |
6f72b082 OK |
11406 | fi |
11407 | done | |
11408 | ||
698dcdb6 | 11409 | for ac_hdr in fnmatch.h |
6f72b082 | 11410 | do |
698dcdb6 VZ |
11411 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11412 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
ab252f7b | 11413 | echo "configure:11414: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
11414 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11415 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11416 | else | |
11417 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 11418 | #line 11419 "configure" |
6f72b082 | 11419 | #include "confdefs.h" |
698dcdb6 VZ |
11420 | #include <$ac_hdr> |
11421 | EOF | |
11422 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
ab252f7b | 11423 | { (eval echo configure:11424: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11424 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11425 | if test -z "$ac_err"; then | |
11426 | rm -rf conftest* | |
11427 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 11428 | else |
698dcdb6 VZ |
11429 | echo "$ac_err" >&5 |
11430 | echo "configure: failed program was:" >&5 | |
10f2d63a | 11431 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11432 | rm -rf conftest* |
11433 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 11434 | fi |
698dcdb6 | 11435 | rm -f conftest* |
10f2d63a | 11436 | fi |
698dcdb6 VZ |
11437 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11438 | echo "$ac_t""yes" 1>&6 | |
11439 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11440 | cat >> confdefs.h <<EOF | |
11441 | #define $ac_tr_hdr 1 | |
10f2d63a | 11442 | EOF |
698dcdb6 VZ |
11443 | |
11444 | else | |
11445 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
11446 | fi |
11447 | done | |
11448 | ||
698dcdb6 | 11449 | for ac_hdr in iconv.h |
0fb0dd83 | 11450 | do |
698dcdb6 VZ |
11451 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11452 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
ab252f7b | 11453 | echo "configure:11454: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
11454 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11455 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11456 | else | |
11457 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 11458 | #line 11459 "configure" |
0fb0dd83 | 11459 | #include "confdefs.h" |
698dcdb6 VZ |
11460 | #include <$ac_hdr> |
11461 | EOF | |
11462 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
ab252f7b | 11463 | { (eval echo configure:11464: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11464 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11465 | if test -z "$ac_err"; then | |
11466 | rm -rf conftest* | |
11467 | eval "ac_cv_header_$ac_safe=yes" | |
0fb0dd83 | 11468 | else |
698dcdb6 VZ |
11469 | echo "$ac_err" >&5 |
11470 | echo "configure: failed program was:" >&5 | |
0fb0dd83 | 11471 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11472 | rm -rf conftest* |
11473 | eval "ac_cv_header_$ac_safe=no" | |
0fb0dd83 | 11474 | fi |
698dcdb6 | 11475 | rm -f conftest* |
0fb0dd83 | 11476 | fi |
698dcdb6 VZ |
11477 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11478 | echo "$ac_t""yes" 1>&6 | |
11479 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11480 | cat >> confdefs.h <<EOF | |
11481 | #define $ac_tr_hdr 1 | |
0fb0dd83 | 11482 | EOF |
698dcdb6 VZ |
11483 | |
11484 | else | |
11485 | echo "$ac_t""no" 1>&6 | |
0fb0dd83 RR |
11486 | fi |
11487 | done | |
11488 | ||
698dcdb6 | 11489 | for ac_hdr in langinfo.h |
1f8ae82f | 11490 | do |
698dcdb6 VZ |
11491 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11492 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
ab252f7b | 11493 | echo "configure:11494: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
11494 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11495 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11496 | else | |
11497 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 11498 | #line 11499 "configure" |
1f8ae82f | 11499 | #include "confdefs.h" |
698dcdb6 VZ |
11500 | #include <$ac_hdr> |
11501 | EOF | |
11502 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
ab252f7b | 11503 | { (eval echo configure:11504: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11504 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11505 | if test -z "$ac_err"; then | |
11506 | rm -rf conftest* | |
11507 | eval "ac_cv_header_$ac_safe=yes" | |
1f8ae82f | 11508 | else |
698dcdb6 VZ |
11509 | echo "$ac_err" >&5 |
11510 | echo "configure: failed program was:" >&5 | |
1f8ae82f | 11511 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11512 | rm -rf conftest* |
11513 | eval "ac_cv_header_$ac_safe=no" | |
1f8ae82f | 11514 | fi |
698dcdb6 | 11515 | rm -f conftest* |
1f8ae82f | 11516 | fi |
698dcdb6 VZ |
11517 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11518 | echo "$ac_t""yes" 1>&6 | |
11519 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11520 | cat >> confdefs.h <<EOF | |
11521 | #define $ac_tr_hdr 1 | |
1f8ae82f | 11522 | EOF |
698dcdb6 VZ |
11523 | |
11524 | else | |
11525 | echo "$ac_t""no" 1>&6 | |
1f8ae82f GD |
11526 | fi |
11527 | done | |
11528 | ||
698dcdb6 | 11529 | |
73fd4a60 VZ |
11530 | if test "$wxUSE_GUI" = "yes"; then |
11531 | if test "$wxUSE_UNIX" = "yes"; then | |
698dcdb6 | 11532 | for ac_hdr in X11/XKBlib.h |
10f2d63a | 11533 | do |
698dcdb6 VZ |
11534 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11535 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
ab252f7b | 11536 | echo "configure:11537: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
11537 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11538 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11539 | else | |
11540 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 11541 | #line 11542 "configure" |
10f2d63a | 11542 | #include "confdefs.h" |
698dcdb6 VZ |
11543 | #include <$ac_hdr> |
11544 | EOF | |
11545 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
ab252f7b | 11546 | { (eval echo configure:11547: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11547 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11548 | if test -z "$ac_err"; then | |
11549 | rm -rf conftest* | |
11550 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 11551 | else |
698dcdb6 VZ |
11552 | echo "$ac_err" >&5 |
11553 | echo "configure: failed program was:" >&5 | |
10f2d63a | 11554 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11555 | rm -rf conftest* |
11556 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 11557 | fi |
698dcdb6 | 11558 | rm -f conftest* |
10f2d63a | 11559 | fi |
698dcdb6 VZ |
11560 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11561 | echo "$ac_t""yes" 1>&6 | |
11562 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11563 | cat >> confdefs.h <<EOF | |
11564 | #define $ac_tr_hdr 1 | |
10f2d63a | 11565 | EOF |
698dcdb6 VZ |
11566 | |
11567 | else | |
11568 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
11569 | fi |
11570 | done | |
11571 | ||
73fd4a60 | 11572 | fi |
10f2d63a VZ |
11573 | fi |
11574 | ||
3e44f09d | 11575 | if test "$USE_WIN32" = 1; then |
29fd3c0c VS |
11576 | for ac_hdr in w32api.h |
11577 | do | |
11578 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
11579 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
ab252f7b | 11580 | echo "configure:11581: checking for $ac_hdr" >&5 |
29fd3c0c VS |
11581 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11582 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11583 | else | |
11584 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 11585 | #line 11586 "configure" |
29fd3c0c VS |
11586 | #include "confdefs.h" |
11587 | #include <$ac_hdr> | |
11588 | EOF | |
11589 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
ab252f7b | 11590 | { (eval echo configure:11591: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
29fd3c0c VS |
11591 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11592 | if test -z "$ac_err"; then | |
11593 | rm -rf conftest* | |
11594 | eval "ac_cv_header_$ac_safe=yes" | |
11595 | else | |
11596 | echo "$ac_err" >&5 | |
11597 | echo "configure: failed program was:" >&5 | |
11598 | cat conftest.$ac_ext >&5 | |
11599 | rm -rf conftest* | |
11600 | eval "ac_cv_header_$ac_safe=no" | |
11601 | fi | |
11602 | rm -f conftest* | |
11603 | fi | |
11604 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11605 | echo "$ac_t""yes" 1>&6 | |
11606 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11607 | cat >> confdefs.h <<EOF | |
11608 | #define $ac_tr_hdr 1 | |
11609 | EOF | |
11610 | ||
11611 | else | |
11612 | echo "$ac_t""no" 1>&6 | |
11613 | fi | |
11614 | done | |
11615 | ||
11616 | fi | |
11617 | ||
698dcdb6 VZ |
11618 | |
11619 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | |
ab252f7b | 11620 | echo "configure:11621: checking for ANSI C header files" >&5 |
698dcdb6 VZ |
11621 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
11622 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11623 | else |
698dcdb6 | 11624 | cat > conftest.$ac_ext <<EOF |
ab252f7b | 11625 | #line 11626 "configure" |
10f2d63a VZ |
11626 | #include "confdefs.h" |
11627 | #include <stdlib.h> | |
11628 | #include <stdarg.h> | |
11629 | #include <string.h> | |
11630 | #include <float.h> | |
698dcdb6 VZ |
11631 | EOF |
11632 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
ab252f7b | 11633 | { (eval echo configure:11634: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11634 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11635 | if test -z "$ac_err"; then | |
11636 | rm -rf conftest* | |
10f2d63a VZ |
11637 | ac_cv_header_stdc=yes |
11638 | else | |
698dcdb6 VZ |
11639 | echo "$ac_err" >&5 |
11640 | echo "configure: failed program was:" >&5 | |
10f2d63a | 11641 | cat conftest.$ac_ext >&5 |
698dcdb6 | 11642 | rm -rf conftest* |
10f2d63a VZ |
11643 | ac_cv_header_stdc=no |
11644 | fi | |
698dcdb6 | 11645 | rm -f conftest* |
10f2d63a VZ |
11646 | |
11647 | if test $ac_cv_header_stdc = yes; then | |
11648 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
698dcdb6 | 11649 | cat > conftest.$ac_ext <<EOF |
ab252f7b | 11650 | #line 11651 "configure" |
10f2d63a VZ |
11651 | #include "confdefs.h" |
11652 | #include <string.h> | |
698dcdb6 | 11653 | EOF |
10f2d63a VZ |
11654 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
11655 | egrep "memchr" >/dev/null 2>&1; then | |
11656 | : | |
11657 | else | |
698dcdb6 | 11658 | rm -rf conftest* |
10f2d63a VZ |
11659 | ac_cv_header_stdc=no |
11660 | fi | |
11661 | rm -f conftest* | |
11662 | ||
11663 | fi | |
11664 | ||
11665 | if test $ac_cv_header_stdc = yes; then | |
11666 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
698dcdb6 | 11667 | cat > conftest.$ac_ext <<EOF |
ab252f7b | 11668 | #line 11669 "configure" |
10f2d63a VZ |
11669 | #include "confdefs.h" |
11670 | #include <stdlib.h> | |
698dcdb6 | 11671 | EOF |
10f2d63a VZ |
11672 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
11673 | egrep "free" >/dev/null 2>&1; then | |
11674 | : | |
11675 | else | |
698dcdb6 | 11676 | rm -rf conftest* |
10f2d63a VZ |
11677 | ac_cv_header_stdc=no |
11678 | fi | |
11679 | rm -f conftest* | |
11680 | ||
11681 | fi | |
11682 | ||
11683 | if test $ac_cv_header_stdc = yes; then | |
11684 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
698dcdb6 | 11685 | if test "$cross_compiling" = yes; then |
10f2d63a VZ |
11686 | : |
11687 | else | |
698dcdb6 | 11688 | cat > conftest.$ac_ext <<EOF |
ab252f7b | 11689 | #line 11690 "configure" |
10f2d63a VZ |
11690 | #include "confdefs.h" |
11691 | #include <ctype.h> | |
698dcdb6 VZ |
11692 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
11693 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
1e487827 | 11694 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
698dcdb6 VZ |
11695 | int main () { int i; for (i = 0; i < 256; i++) |
11696 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
11697 | exit (0); } | |
11698 | ||
11699 | EOF | |
ab252f7b | 11700 | if { (eval echo configure:11701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 11701 | then |
10f2d63a VZ |
11702 | : |
11703 | else | |
698dcdb6 VZ |
11704 | echo "configure: failed program was:" >&5 |
11705 | cat conftest.$ac_ext >&5 | |
11706 | rm -fr conftest* | |
11707 | ac_cv_header_stdc=no | |
10f2d63a | 11708 | fi |
698dcdb6 | 11709 | rm -fr conftest* |
10f2d63a | 11710 | fi |
698dcdb6 | 11711 | |
10f2d63a VZ |
11712 | fi |
11713 | fi | |
1e487827 | 11714 | |
698dcdb6 VZ |
11715 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
11716 | if test $ac_cv_header_stdc = yes; then | |
11717 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11718 | #define STDC_HEADERS 1 |
11719 | EOF | |
11720 | ||
11721 | fi | |
11722 | ||
698dcdb6 | 11723 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
ab252f7b | 11724 | echo "configure:11725: checking for mode_t" >&5 |
698dcdb6 VZ |
11725 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
11726 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 11727 | else |
698dcdb6 | 11728 | cat > conftest.$ac_ext <<EOF |
ab252f7b | 11729 | #line 11730 "configure" |
1e487827 | 11730 | #include "confdefs.h" |
698dcdb6 VZ |
11731 | #include <sys/types.h> |
11732 | #if STDC_HEADERS | |
11733 | #include <stdlib.h> | |
11734 | #include <stddef.h> | |
11735 | #endif | |
11736 | EOF | |
11737 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11738 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
11739 | rm -rf conftest* | |
10f2d63a VZ |
11740 | ac_cv_type_mode_t=yes |
11741 | else | |
698dcdb6 VZ |
11742 | rm -rf conftest* |
11743 | ac_cv_type_mode_t=no | |
703e0a69 | 11744 | fi |
698dcdb6 | 11745 | rm -f conftest* |
1e487827 | 11746 | |
698dcdb6 VZ |
11747 | fi |
11748 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 | |
11749 | if test $ac_cv_type_mode_t = no; then | |
11750 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11751 | #define mode_t int |
11752 | EOF | |
11753 | ||
11754 | fi | |
11755 | ||
698dcdb6 | 11756 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 |
ab252f7b | 11757 | echo "configure:11758: checking for off_t" >&5 |
698dcdb6 VZ |
11758 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
11759 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11760 | else |
698dcdb6 | 11761 | cat > conftest.$ac_ext <<EOF |
ab252f7b | 11762 | #line 11763 "configure" |
10f2d63a | 11763 | #include "confdefs.h" |
698dcdb6 VZ |
11764 | #include <sys/types.h> |
11765 | #if STDC_HEADERS | |
11766 | #include <stdlib.h> | |
11767 | #include <stddef.h> | |
11768 | #endif | |
11769 | EOF | |
11770 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11771 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
11772 | rm -rf conftest* | |
10f2d63a VZ |
11773 | ac_cv_type_off_t=yes |
11774 | else | |
698dcdb6 VZ |
11775 | rm -rf conftest* |
11776 | ac_cv_type_off_t=no | |
703e0a69 | 11777 | fi |
698dcdb6 | 11778 | rm -f conftest* |
1e487827 | 11779 | |
698dcdb6 VZ |
11780 | fi |
11781 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
11782 | if test $ac_cv_type_off_t = no; then | |
11783 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11784 | #define off_t long |
11785 | EOF | |
11786 | ||
11787 | fi | |
11788 | ||
698dcdb6 | 11789 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
ab252f7b | 11790 | echo "configure:11791: checking for pid_t" >&5 |
698dcdb6 VZ |
11791 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
11792 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11793 | else |
698dcdb6 | 11794 | cat > conftest.$ac_ext <<EOF |
ab252f7b | 11795 | #line 11796 "configure" |
10f2d63a | 11796 | #include "confdefs.h" |
698dcdb6 VZ |
11797 | #include <sys/types.h> |
11798 | #if STDC_HEADERS | |
11799 | #include <stdlib.h> | |
11800 | #include <stddef.h> | |
11801 | #endif | |
11802 | EOF | |
11803 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11804 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
11805 | rm -rf conftest* | |
10f2d63a VZ |
11806 | ac_cv_type_pid_t=yes |
11807 | else | |
698dcdb6 VZ |
11808 | rm -rf conftest* |
11809 | ac_cv_type_pid_t=no | |
703e0a69 | 11810 | fi |
698dcdb6 | 11811 | rm -f conftest* |
1e487827 | 11812 | |
698dcdb6 VZ |
11813 | fi |
11814 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
11815 | if test $ac_cv_type_pid_t = no; then | |
11816 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11817 | #define pid_t int |
11818 | EOF | |
11819 | ||
11820 | fi | |
11821 | ||
698dcdb6 | 11822 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
ab252f7b | 11823 | echo "configure:11824: checking for size_t" >&5 |
698dcdb6 VZ |
11824 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
11825 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11826 | else |
698dcdb6 | 11827 | cat > conftest.$ac_ext <<EOF |
ab252f7b | 11828 | #line 11829 "configure" |
10f2d63a | 11829 | #include "confdefs.h" |
698dcdb6 VZ |
11830 | #include <sys/types.h> |
11831 | #if STDC_HEADERS | |
11832 | #include <stdlib.h> | |
11833 | #include <stddef.h> | |
11834 | #endif | |
11835 | EOF | |
11836 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11837 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
11838 | rm -rf conftest* | |
10f2d63a VZ |
11839 | ac_cv_type_size_t=yes |
11840 | else | |
698dcdb6 VZ |
11841 | rm -rf conftest* |
11842 | ac_cv_type_size_t=no | |
703e0a69 | 11843 | fi |
698dcdb6 | 11844 | rm -f conftest* |
1e487827 | 11845 | |
698dcdb6 VZ |
11846 | fi |
11847 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
11848 | if test $ac_cv_type_size_t = no; then | |
11849 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11850 | #define size_t unsigned |
11851 | EOF | |
11852 | ||
11853 | fi | |
11854 | ||
698dcdb6 | 11855 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
ab252f7b | 11856 | echo "configure:11857: checking for uid_t in sys/types.h" >&5 |
698dcdb6 VZ |
11857 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
11858 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11859 | else |
698dcdb6 | 11860 | cat > conftest.$ac_ext <<EOF |
ab252f7b | 11861 | #line 11862 "configure" |
10f2d63a VZ |
11862 | #include "confdefs.h" |
11863 | #include <sys/types.h> | |
698dcdb6 | 11864 | EOF |
10f2d63a VZ |
11865 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
11866 | egrep "uid_t" >/dev/null 2>&1; then | |
698dcdb6 | 11867 | rm -rf conftest* |
10f2d63a VZ |
11868 | ac_cv_type_uid_t=yes |
11869 | else | |
698dcdb6 | 11870 | rm -rf conftest* |
10f2d63a VZ |
11871 | ac_cv_type_uid_t=no |
11872 | fi | |
11873 | rm -f conftest* | |
11874 | ||
11875 | fi | |
1e487827 | 11876 | |
698dcdb6 VZ |
11877 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
11878 | if test $ac_cv_type_uid_t = no; then | |
11879 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11880 | #define uid_t int |
11881 | EOF | |
11882 | ||
698dcdb6 | 11883 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
11884 | #define gid_t int |
11885 | EOF | |
11886 | ||
11887 | fi | |
11888 | ||
1e487827 | 11889 | |
698dcdb6 | 11890 | echo $ac_n "checking for wchar_t""... $ac_c" 1>&6 |
ab252f7b | 11891 | echo "configure:11892: checking for wchar_t" >&5 |
698dcdb6 VZ |
11892 | if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then |
11893 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11894 | else | |
11895 | ||
11896 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 11897 | #line 11898 "configure" |
0046ff7c VS |
11898 | #include "confdefs.h" |
11899 | #include <wchar.h> | |
698dcdb6 | 11900 | int main() { |
0046ff7c | 11901 | |
d836ee96 VZ |
11902 | wchar_t wc, *ws; |
11903 | wc = L'a'; | |
11904 | ws = L"Hello, world!"; | |
698dcdb6 VZ |
11905 | |
11906 | ; return 0; } | |
11907 | EOF | |
ab252f7b | 11908 | if { (eval echo configure:11909: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 11909 | rm -rf conftest* |
1f8ae82f GD |
11910 | wx_cv_type_wchar_t=yes |
11911 | else | |
698dcdb6 VZ |
11912 | echo "configure: failed program was:" >&5 |
11913 | cat conftest.$ac_ext >&5 | |
11914 | rm -rf conftest* | |
11915 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 11916 | #line 11917 "configure" |
1f8ae82f GD |
11917 | #include "confdefs.h" |
11918 | #include <stdlib.h> | |
698dcdb6 | 11919 | int main() { |
1f8ae82f | 11920 | |
d836ee96 VZ |
11921 | wchar_t wc, *ws; |
11922 | wc = L'a'; | |
11923 | ws = L"Hello, world!"; | |
698dcdb6 VZ |
11924 | |
11925 | ; return 0; } | |
11926 | EOF | |
ab252f7b | 11927 | if { (eval echo configure:11928: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 11928 | rm -rf conftest* |
0046ff7c VS |
11929 | wx_cv_type_wchar_t=yes |
11930 | else | |
698dcdb6 VZ |
11931 | echo "configure: failed program was:" >&5 |
11932 | cat conftest.$ac_ext >&5 | |
11933 | rm -rf conftest* | |
11934 | wx_cv_type_wchar_t=no | |
0046ff7c | 11935 | fi |
698dcdb6 | 11936 | rm -f conftest* |
d836ee96 | 11937 | |
6232543b | 11938 | fi |
698dcdb6 | 11939 | rm -f conftest* |
703e0a69 | 11940 | |
1e487827 | 11941 | fi |
698dcdb6 VZ |
11942 | |
11943 | echo "$ac_t""$wx_cv_type_wchar_t" 1>&6 | |
d836ee96 VZ |
11944 | |
11945 | if test "$wx_cv_type_wchar_t" = "yes"; then | |
698dcdb6 | 11946 | cat >> confdefs.h <<\EOF |
0046ff7c VS |
11947 | #define wxUSE_WCHAR_T 1 |
11948 | EOF | |
11949 | ||
11950 | fi | |
11951 | ||
19af3b06 VZ |
11952 | |
11953 | ac_ext=C | |
11954 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11955 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11956 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11957 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11958 | cross_compiling=$ac_cv_prog_cxx_cross | |
11959 | ||
d836ee96 | 11960 | echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6 |
ab252f7b | 11961 | echo "configure:11962: checking if size_t is unsigned int" >&5 |
d836ee96 VZ |
11962 | if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then |
11963 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11964 | else | |
dd2c8b7c | 11965 | cat > conftest.$ac_ext <<EOF |
ab252f7b | 11966 | #line 11967 "configure" |
d836ee96 VZ |
11967 | #include "confdefs.h" |
11968 | #include <stddef.h> | |
11969 | int main() { | |
11970 | ||
dd2c8b7c VZ |
11971 | return 0; } |
11972 | ||
d836ee96 | 11973 | struct Foo { void foo(size_t); void foo(unsigned int); }; |
dd2c8b7c VZ |
11974 | |
11975 | int bar() { | |
d836ee96 VZ |
11976 | |
11977 | ; return 0; } | |
11978 | EOF | |
ab252f7b | 11979 | if { (eval echo configure:11980: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
d836ee96 VZ |
11980 | rm -rf conftest* |
11981 | wx_cv_size_t_is_uint=no | |
11982 | else | |
11983 | echo "configure: failed program was:" >&5 | |
11984 | cat conftest.$ac_ext >&5 | |
11985 | rm -rf conftest* | |
11986 | wx_cv_size_t_is_uint=yes | |
11987 | ||
11988 | fi | |
11989 | rm -f conftest* | |
11990 | ||
11991 | fi | |
11992 | ||
11993 | echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6 | |
11994 | ||
11995 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
11996 | cat >> confdefs.h <<\EOF | |
11997 | #define wxSIZE_T_IS_UINT 1 | |
11998 | EOF | |
11999 | ||
12000 | else | |
12001 | echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6 | |
ab252f7b | 12002 | echo "configure:12003: checking if size_t is unsigned long" >&5 |
d836ee96 VZ |
12003 | if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then |
12004 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12005 | else | |
12006 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 12007 | #line 12008 "configure" |
d836ee96 VZ |
12008 | #include "confdefs.h" |
12009 | #include <stddef.h> | |
12010 | int main() { | |
12011 | ||
dd2c8b7c VZ |
12012 | return 0; } |
12013 | ||
d836ee96 | 12014 | struct Foo { void foo(size_t); void foo(unsigned long); }; |
dd2c8b7c VZ |
12015 | |
12016 | int bar() { | |
d836ee96 VZ |
12017 | |
12018 | ; return 0; } | |
12019 | EOF | |
ab252f7b | 12020 | if { (eval echo configure:12021: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
d836ee96 VZ |
12021 | rm -rf conftest* |
12022 | wx_cv_size_t_is_ulong=no | |
12023 | else | |
12024 | echo "configure: failed program was:" >&5 | |
12025 | cat conftest.$ac_ext >&5 | |
12026 | rm -rf conftest* | |
12027 | wx_cv_size_t_is_ulong=yes | |
12028 | ||
12029 | fi | |
12030 | rm -f conftest* | |
12031 | ||
12032 | fi | |
12033 | ||
12034 | echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6 | |
12035 | ||
12036 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
12037 | cat >> confdefs.h <<\EOF | |
12038 | #define wxSIZE_T_IS_ULONG 1 | |
12039 | EOF | |
12040 | ||
12041 | fi | |
12042 | fi | |
12043 | ||
19af3b06 VZ |
12044 | ac_ext=c |
12045 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
12046 | ac_cpp='$CPP $CPPFLAGS' | |
12047 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
12048 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12049 | cross_compiling=$ac_cv_prog_cc_cross | |
12050 | ||
12051 | ||
1e487827 | 12052 | |
698dcdb6 | 12053 | echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6 |
ab252f7b | 12054 | echo "configure:12055: checking for pw_gecos in struct passwd" >&5 |
698dcdb6 VZ |
12055 | if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then |
12056 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12057 | else | |
12058 | ||
12059 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 12060 | #line 12061 "configure" |
b12915c1 VZ |
12061 | #include "confdefs.h" |
12062 | #include <pwd.h> | |
698dcdb6 | 12063 | int main() { |
b12915c1 VZ |
12064 | |
12065 | char *p; | |
12066 | struct passwd *pw; | |
12067 | p = pw->pw_gecos; | |
698dcdb6 VZ |
12068 | |
12069 | ; return 0; } | |
12070 | EOF | |
ab252f7b | 12071 | if { (eval echo configure:12072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
12072 | rm -rf conftest* |
12073 | ||
b12915c1 | 12074 | wx_cv_struct_pw_gecos=yes |
698dcdb6 | 12075 | |
b12915c1 | 12076 | else |
698dcdb6 VZ |
12077 | echo "configure: failed program was:" >&5 |
12078 | cat conftest.$ac_ext >&5 | |
12079 | rm -rf conftest* | |
12080 | ||
b12915c1 | 12081 | wx_cv_struct_pw_gecos=no |
698dcdb6 VZ |
12082 | |
12083 | ||
6232543b | 12084 | fi |
698dcdb6 VZ |
12085 | rm -f conftest* |
12086 | ||
703e0a69 | 12087 | |
1e487827 | 12088 | fi |
698dcdb6 VZ |
12089 | |
12090 | echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6 | |
b12915c1 | 12091 | |
bd3277fe | 12092 | if test "$wx_cv_struct_pw_gecos" = "yes"; then |
698dcdb6 | 12093 | cat >> confdefs.h <<\EOF |
bd3277fe VZ |
12094 | #define HAVE_PW_GECOS 1 |
12095 | EOF | |
12096 | ||
12097 | fi | |
12098 | ||
698dcdb6 VZ |
12099 | |
12100 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
ab252f7b | 12101 | echo "configure:12102: checking for working const" >&5 |
698dcdb6 VZ |
12102 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
12103 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12104 | else |
698dcdb6 | 12105 | cat > conftest.$ac_ext <<EOF |
ab252f7b | 12106 | #line 12107 "configure" |
10f2d63a | 12107 | #include "confdefs.h" |
698dcdb6 VZ |
12108 | |
12109 | int main() { | |
12110 | ||
12111 | /* Ultrix mips cc rejects this. */ | |
12112 | typedef int charset[2]; const charset x; | |
12113 | /* SunOS 4.1.1 cc rejects this. */ | |
12114 | char const *const *ccp; | |
12115 | char **p; | |
12116 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
12117 | struct point {int x, y;}; | |
12118 | static struct point const zero = {0,0}; | |
12119 | /* AIX XL C 1.02.0.0 rejects this. | |
12120 | It does not let you subtract one const X* pointer from another in an arm | |
12121 | of an if-expression whose if-part is not a constant expression */ | |
12122 | const char *g = "string"; | |
12123 | ccp = &g + (g ? g-g : 0); | |
12124 | /* HPUX 7.0 cc rejects these. */ | |
12125 | ++ccp; | |
12126 | p = (char**) ccp; | |
12127 | ccp = (char const *const *) p; | |
12128 | { /* SCO 3.2v4 cc rejects this. */ | |
12129 | char *t; | |
12130 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
12131 | ||
12132 | *t++ = 0; | |
10f2d63a | 12133 | } |
698dcdb6 VZ |
12134 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
12135 | int x[] = {25, 17}; | |
12136 | const int *foo = &x[0]; | |
12137 | ++foo; | |
703e0a69 | 12138 | } |
698dcdb6 VZ |
12139 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
12140 | typedef const int *iptr; | |
12141 | iptr p = 0; | |
12142 | ++p; | |
6232543b | 12143 | } |
698dcdb6 VZ |
12144 | { /* AIX XL C 1.02.0.0 rejects this saying |
12145 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
12146 | struct s { int j; const int *ap[3]; }; | |
12147 | struct s *b; b->j = 5; | |
1e487827 | 12148 | } |
698dcdb6 VZ |
12149 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
12150 | const int foo = 10; | |
12151 | } | |
12152 | ||
12153 | ; return 0; } | |
12154 | EOF | |
ab252f7b | 12155 | if { (eval echo configure:12156: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 12156 | rm -rf conftest* |
10f2d63a VZ |
12157 | ac_cv_c_const=yes |
12158 | else | |
698dcdb6 VZ |
12159 | echo "configure: failed program was:" >&5 |
12160 | cat conftest.$ac_ext >&5 | |
12161 | rm -rf conftest* | |
12162 | ac_cv_c_const=no | |
10f2d63a | 12163 | fi |
698dcdb6 | 12164 | rm -f conftest* |
10f2d63a | 12165 | fi |
1e487827 | 12166 | |
698dcdb6 VZ |
12167 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
12168 | if test $ac_cv_c_const = no; then | |
12169 | cat >> confdefs.h <<\EOF | |
12170 | #define const | |
10f2d63a VZ |
12171 | EOF |
12172 | ||
12173 | fi | |
12174 | ||
698dcdb6 | 12175 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
ab252f7b | 12176 | echo "configure:12177: checking for inline" >&5 |
698dcdb6 VZ |
12177 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
12178 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
12179 | else |
12180 | ac_cv_c_inline=no | |
12181 | for ac_kw in inline __inline__ __inline; do | |
698dcdb6 | 12182 | cat > conftest.$ac_ext <<EOF |
ab252f7b | 12183 | #line 12184 "configure" |
10f2d63a VZ |
12184 | #include "confdefs.h" |
12185 | ||
698dcdb6 VZ |
12186 | int main() { |
12187 | } $ac_kw foo() { | |
12188 | ; return 0; } | |
12189 | EOF | |
ab252f7b | 12190 | if { (eval echo configure:12191: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 12191 | rm -rf conftest* |
10f2d63a VZ |
12192 | ac_cv_c_inline=$ac_kw; break |
12193 | else | |
698dcdb6 VZ |
12194 | echo "configure: failed program was:" >&5 |
12195 | cat conftest.$ac_ext >&5 | |
10f2d63a | 12196 | fi |
698dcdb6 | 12197 | rm -f conftest* |
10f2d63a VZ |
12198 | done |
12199 | ||
12200 | fi | |
698dcdb6 VZ |
12201 | |
12202 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | |
12203 | case "$ac_cv_c_inline" in | |
10f2d63a | 12204 | inline | yes) ;; |
698dcdb6 VZ |
12205 | no) cat >> confdefs.h <<\EOF |
12206 | #define inline | |
10f2d63a VZ |
12207 | EOF |
12208 | ;; | |
698dcdb6 | 12209 | *) cat >> confdefs.h <<EOF |
10f2d63a VZ |
12210 | #define inline $ac_cv_c_inline |
12211 | EOF | |
12212 | ;; | |
12213 | esac | |
12214 | ||
698dcdb6 VZ |
12215 | |
12216 | echo $ac_n "checking size of char""... $ac_c" 1>&6 | |
ab252f7b | 12217 | echo "configure:12218: checking size of char" >&5 |
698dcdb6 VZ |
12218 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
12219 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6232543b | 12220 | else |
1e487827 | 12221 | if test "$cross_compiling" = yes; then |
698dcdb6 | 12222 | ac_cv_sizeof_char=1 |
1e487827 | 12223 | else |
698dcdb6 | 12224 | cat > conftest.$ac_ext <<EOF |
ab252f7b | 12225 | #line 12226 "configure" |
1e487827 | 12226 | #include "confdefs.h" |
698dcdb6 VZ |
12227 | #include <stdio.h> |
12228 | main() | |
1e487827 | 12229 | { |
698dcdb6 VZ |
12230 | FILE *f=fopen("conftestval", "w"); |
12231 | if (!f) exit(1); | |
12232 | fprintf(f, "%d\n", sizeof(char)); | |
12233 | exit(0); | |
1e487827 | 12234 | } |
698dcdb6 | 12235 | EOF |
ab252f7b | 12236 | if { (eval echo configure:12237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
12237 | then |
12238 | ac_cv_sizeof_char=`cat conftestval` | |
1e487827 | 12239 | else |
698dcdb6 VZ |
12240 | echo "configure: failed program was:" >&5 |
12241 | cat conftest.$ac_ext >&5 | |
12242 | rm -fr conftest* | |
1e487827 VS |
12243 | ac_cv_sizeof_char=0 |
12244 | fi | |
698dcdb6 | 12245 | rm -fr conftest* |
1e487827 | 12246 | fi |
10f2d63a | 12247 | |
1e487827 | 12248 | fi |
698dcdb6 VZ |
12249 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 |
12250 | cat >> confdefs.h <<EOF | |
12251 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
1e487827 | 12252 | EOF |
6232543b | 12253 | |
703e0a69 | 12254 | |
698dcdb6 | 12255 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
ab252f7b | 12256 | echo "configure:12257: checking size of short" >&5 |
698dcdb6 VZ |
12257 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
12258 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 12259 | else |
1e487827 | 12260 | if test "$cross_compiling" = yes; then |
698dcdb6 | 12261 | ac_cv_sizeof_short=2 |
1e487827 | 12262 | else |
698dcdb6 | 12263 | cat > conftest.$ac_ext <<EOF |
ab252f7b | 12264 | #line 12265 "configure" |
1e487827 | 12265 | #include "confdefs.h" |
698dcdb6 VZ |
12266 | #include <stdio.h> |
12267 | main() | |
1e487827 | 12268 | { |
698dcdb6 VZ |
12269 | FILE *f=fopen("conftestval", "w"); |
12270 | if (!f) exit(1); | |
12271 | fprintf(f, "%d\n", sizeof(short)); | |
12272 | exit(0); | |
1e487827 | 12273 | } |
698dcdb6 | 12274 | EOF |
ab252f7b | 12275 | if { (eval echo configure:12276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
12276 | then |
12277 | ac_cv_sizeof_short=`cat conftestval` | |
1e487827 | 12278 | else |
698dcdb6 VZ |
12279 | echo "configure: failed program was:" >&5 |
12280 | cat conftest.$ac_ext >&5 | |
12281 | rm -fr conftest* | |
12282 | ac_cv_sizeof_short=0 | |
1e487827 | 12283 | fi |
698dcdb6 | 12284 | rm -fr conftest* |
1e487827 | 12285 | fi |
698dcdb6 | 12286 | |
1e487827 | 12287 | fi |
698dcdb6 VZ |
12288 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
12289 | cat >> confdefs.h <<EOF | |
12290 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
12291 | EOF | |
12292 | ||
12293 | ||
12294 | echo $ac_n "checking size of int *""... $ac_c" 1>&6 | |
ab252f7b | 12295 | echo "configure:12296: checking size of int *" >&5 |
698dcdb6 VZ |
12296 | if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then |
12297 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
12298 | else |
12299 | if test "$cross_compiling" = yes; then | |
698dcdb6 | 12300 | ac_cv_sizeof_int_p=4 |
10f2d63a | 12301 | else |
698dcdb6 | 12302 | cat > conftest.$ac_ext <<EOF |
ab252f7b | 12303 | #line 12304 "configure" |
10f2d63a | 12304 | #include "confdefs.h" |
698dcdb6 VZ |
12305 | #include <stdio.h> |
12306 | main() | |
10f2d63a | 12307 | { |
698dcdb6 VZ |
12308 | FILE *f=fopen("conftestval", "w"); |
12309 | if (!f) exit(1); | |
12310 | fprintf(f, "%d\n", sizeof(int *)); | |
12311 | exit(0); | |
10f2d63a | 12312 | } |
698dcdb6 | 12313 | EOF |
ab252f7b | 12314 | if { (eval echo configure:12315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
12315 | then |
12316 | ac_cv_sizeof_int_p=`cat conftestval` | |
10f2d63a | 12317 | else |
698dcdb6 VZ |
12318 | echo "configure: failed program was:" >&5 |
12319 | cat conftest.$ac_ext >&5 | |
12320 | rm -fr conftest* | |
12321 | ac_cv_sizeof_int_p=0 | |
6232543b | 12322 | fi |
698dcdb6 | 12323 | rm -fr conftest* |
1e487827 | 12324 | fi |
698dcdb6 | 12325 | |
1e487827 | 12326 | fi |
698dcdb6 VZ |
12327 | echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6 |
12328 | cat >> confdefs.h <<EOF | |
12329 | #define SIZEOF_INT_P $ac_cv_sizeof_int_p | |
10f2d63a VZ |
12330 | EOF |
12331 | ||
698dcdb6 VZ |
12332 | |
12333 | echo $ac_n "checking size of int""... $ac_c" 1>&6 | |
ab252f7b | 12334 | echo "configure:12335: checking size of int" >&5 |
698dcdb6 VZ |
12335 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
12336 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
12337 | else |
12338 | if test "$cross_compiling" = yes; then | |
698dcdb6 | 12339 | ac_cv_sizeof_int=4 |
703e0a69 | 12340 | else |
698dcdb6 | 12341 | cat > conftest.$ac_ext <<EOF |
ab252f7b | 12342 | #line 12343 "configure" |
1e487827 | 12343 | #include "confdefs.h" |
698dcdb6 VZ |
12344 | #include <stdio.h> |
12345 | main() | |
1e487827 | 12346 | { |
698dcdb6 VZ |
12347 | FILE *f=fopen("conftestval", "w"); |
12348 | if (!f) exit(1); | |
12349 | fprintf(f, "%d\n", sizeof(int)); | |
12350 | exit(0); | |
1e487827 | 12351 | } |
698dcdb6 | 12352 | EOF |
ab252f7b | 12353 | if { (eval echo configure:12354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
12354 | then |
12355 | ac_cv_sizeof_int=`cat conftestval` | |
12356 | else | |
12357 | echo "configure: failed program was:" >&5 | |
12358 | cat conftest.$ac_ext >&5 | |
12359 | rm -fr conftest* | |
12360 | ac_cv_sizeof_int=0 | |
703e0a69 | 12361 | fi |
698dcdb6 VZ |
12362 | rm -fr conftest* |
12363 | fi | |
12364 | ||
12365 | fi | |
12366 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | |
12367 | cat >> confdefs.h <<EOF | |
12368 | #define SIZEOF_INT $ac_cv_sizeof_int | |
12369 | EOF | |
12370 | ||
12371 | ||
12372 | echo $ac_n "checking size of long""... $ac_c" 1>&6 | |
ab252f7b | 12373 | echo "configure:12374: checking size of long" >&5 |
698dcdb6 VZ |
12374 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
12375 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
12376 | else |
12377 | if test "$cross_compiling" = yes; then | |
698dcdb6 | 12378 | ac_cv_sizeof_long=4 |
10f2d63a | 12379 | else |
698dcdb6 | 12380 | cat > conftest.$ac_ext <<EOF |
ab252f7b | 12381 | #line 12382 "configure" |
10f2d63a | 12382 | #include "confdefs.h" |
698dcdb6 VZ |
12383 | #include <stdio.h> |
12384 | main() | |
10f2d63a | 12385 | { |
698dcdb6 VZ |
12386 | FILE *f=fopen("conftestval", "w"); |
12387 | if (!f) exit(1); | |
12388 | fprintf(f, "%d\n", sizeof(long)); | |
12389 | exit(0); | |
10f2d63a | 12390 | } |
698dcdb6 | 12391 | EOF |
ab252f7b | 12392 | if { (eval echo configure:12393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
12393 | then |
12394 | ac_cv_sizeof_long=`cat conftestval` | |
10f2d63a | 12395 | else |
698dcdb6 VZ |
12396 | echo "configure: failed program was:" >&5 |
12397 | cat conftest.$ac_ext >&5 | |
12398 | rm -fr conftest* | |
12399 | ac_cv_sizeof_long=0 | |
10f2d63a | 12400 | fi |
698dcdb6 | 12401 | rm -fr conftest* |
10f2d63a | 12402 | fi |
698dcdb6 | 12403 | |
10f2d63a | 12404 | fi |
698dcdb6 VZ |
12405 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 |
12406 | cat >> confdefs.h <<EOF | |
12407 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
12408 | EOF | |
12409 | ||
12410 | ||
12411 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
ab252f7b | 12412 | echo "configure:12413: checking size of long long" >&5 |
698dcdb6 VZ |
12413 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
12414 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12415 | else | |
12416 | if test "$cross_compiling" = yes; then | |
12417 | ac_cv_sizeof_long_long=0 | |
12418 | else | |
12419 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 12420 | #line 12421 "configure" |
698dcdb6 VZ |
12421 | #include "confdefs.h" |
12422 | #include <stdio.h> | |
12423 | main() | |
12424 | { | |
12425 | FILE *f=fopen("conftestval", "w"); | |
12426 | if (!f) exit(1); | |
12427 | fprintf(f, "%d\n", sizeof(long long)); | |
12428 | exit(0); | |
12429 | } | |
12430 | EOF | |
ab252f7b | 12431 | if { (eval echo configure:12432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
12432 | then |
12433 | ac_cv_sizeof_long_long=`cat conftestval` | |
6232543b | 12434 | else |
698dcdb6 VZ |
12435 | echo "configure: failed program was:" >&5 |
12436 | cat conftest.$ac_ext >&5 | |
12437 | rm -fr conftest* | |
6232543b VS |
12438 | ac_cv_sizeof_long_long=0 |
12439 | fi | |
698dcdb6 VZ |
12440 | rm -fr conftest* |
12441 | fi | |
12442 | ||
703e0a69 | 12443 | fi |
698dcdb6 VZ |
12444 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
12445 | cat >> confdefs.h <<EOF | |
10f2d63a VZ |
12446 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
12447 | EOF | |
12448 | ||
1e487827 | 12449 | |
698dcdb6 VZ |
12450 | |
12451 | echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6 | |
ab252f7b | 12452 | echo "configure:12453: checking size of wchar_t" >&5 |
698dcdb6 VZ |
12453 | if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then |
12454 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12455 | else | |
12456 | ||
b93d0d08 VS |
12457 | if test "$cross_compiling" = yes; then |
12458 | wx_cv_sizeof_wchar_t=4 | |
1e6feb95 | 12459 | |
b93d0d08 | 12460 | else |
698dcdb6 | 12461 | cat > conftest.$ac_ext <<EOF |
ab252f7b | 12462 | #line 12463 "configure" |
b93d0d08 VS |
12463 | #include "confdefs.h" |
12464 | ||
1e6feb95 VZ |
12465 | #ifdef HAVE_WCHAR_H |
12466 | # include <wchar.h> | |
12467 | #endif | |
12468 | #ifdef HAVE_STDLIB_H | |
12469 | # include <stdlib.h> | |
12470 | #endif | |
12471 | #include <stdio.h> | |
12472 | int main() | |
12473 | { | |
12474 | FILE *f=fopen("conftestval", "w"); | |
12475 | if (!f) exit(1); | |
12476 | fprintf(f, "%i", sizeof(wchar_t)); | |
12477 | exit(0); | |
12478 | } | |
698dcdb6 VZ |
12479 | |
12480 | EOF | |
ab252f7b | 12481 | if { (eval echo configure:12482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 12482 | then |
b93d0d08 VS |
12483 | wx_cv_sizeof_wchar_t=`cat conftestval` |
12484 | else | |
698dcdb6 VZ |
12485 | echo "configure: failed program was:" >&5 |
12486 | cat conftest.$ac_ext >&5 | |
12487 | rm -fr conftest* | |
12488 | wx_cv_sizeof_wchar_t=0 | |
b93d0d08 | 12489 | fi |
698dcdb6 | 12490 | rm -fr conftest* |
b93d0d08 VS |
12491 | fi |
12492 | ||
698dcdb6 | 12493 | |
b93d0d08 VS |
12494 | fi |
12495 | ||
698dcdb6 VZ |
12496 | echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6 |
12497 | ||
12498 | cat >> confdefs.h <<EOF | |
28c6addc | 12499 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t |
b93d0d08 VS |
12500 | EOF |
12501 | ||
698dcdb6 | 12502 | |
698dcdb6 | 12503 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
ab252f7b | 12504 | echo "configure:12505: checking whether byte ordering is bigendian" >&5 |
698dcdb6 VZ |
12505 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
12506 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
12507 | else |
12508 | ac_cv_c_bigendian=unknown | |
12509 | # See if sys/param.h defines the BYTE_ORDER macro. | |
698dcdb6 | 12510 | cat > conftest.$ac_ext <<EOF |
ab252f7b | 12511 | #line 12512 "configure" |
10f2d63a VZ |
12512 | #include "confdefs.h" |
12513 | #include <sys/types.h> | |
12514 | #include <sys/param.h> | |
698dcdb6 | 12515 | int main() { |
10f2d63a VZ |
12516 | |
12517 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
12518 | bogus endian macros | |
12519 | #endif | |
698dcdb6 VZ |
12520 | ; return 0; } |
12521 | EOF | |
ab252f7b | 12522 | if { (eval echo configure:12523: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 12523 | rm -rf conftest* |
10f2d63a | 12524 | # It does; now see whether it defined to BIG_ENDIAN or not. |
698dcdb6 | 12525 | cat > conftest.$ac_ext <<EOF |
ab252f7b | 12526 | #line 12527 "configure" |
10f2d63a VZ |
12527 | #include "confdefs.h" |
12528 | #include <sys/types.h> | |
12529 | #include <sys/param.h> | |
698dcdb6 | 12530 | int main() { |
10f2d63a VZ |
12531 | |
12532 | #if BYTE_ORDER != BIG_ENDIAN | |
12533 | not big endian | |
12534 | #endif | |
698dcdb6 VZ |
12535 | ; return 0; } |
12536 | EOF | |
ab252f7b | 12537 | if { (eval echo configure:12538: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 12538 | rm -rf conftest* |
10f2d63a VZ |
12539 | ac_cv_c_bigendian=yes |
12540 | else | |
698dcdb6 VZ |
12541 | echo "configure: failed program was:" >&5 |
12542 | cat conftest.$ac_ext >&5 | |
12543 | rm -rf conftest* | |
12544 | ac_cv_c_bigendian=no | |
10f2d63a | 12545 | fi |
698dcdb6 | 12546 | rm -f conftest* |
10f2d63a | 12547 | else |
698dcdb6 VZ |
12548 | echo "configure: failed program was:" >&5 |
12549 | cat conftest.$ac_ext >&5 | |
10f2d63a | 12550 | fi |
698dcdb6 | 12551 | rm -f conftest* |
10f2d63a VZ |
12552 | if test $ac_cv_c_bigendian = unknown; then |
12553 | if test "$cross_compiling" = yes; then | |
12554 | ac_cv_c_bigendian=unknown | |
12555 | else | |
698dcdb6 | 12556 | cat > conftest.$ac_ext <<EOF |
ab252f7b | 12557 | #line 12558 "configure" |
10f2d63a VZ |
12558 | #include "confdefs.h" |
12559 | main () { | |
12560 | /* Are we little or big endian? From Harbison&Steele. */ | |
12561 | union | |
12562 | { | |
12563 | long l; | |
12564 | char c[sizeof (long)]; | |
12565 | } u; | |
12566 | u.l = 1; | |
12567 | exit (u.c[sizeof (long) - 1] == 1); | |
12568 | } | |
698dcdb6 | 12569 | EOF |
ab252f7b | 12570 | if { (eval echo configure:12571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 12571 | then |
10f2d63a VZ |
12572 | ac_cv_c_bigendian=no |
12573 | else | |
698dcdb6 VZ |
12574 | echo "configure: failed program was:" >&5 |
12575 | cat conftest.$ac_ext >&5 | |
12576 | rm -fr conftest* | |
12577 | ac_cv_c_bigendian=yes | |
10f2d63a | 12578 | fi |
698dcdb6 | 12579 | rm -fr conftest* |
10f2d63a | 12580 | fi |
698dcdb6 | 12581 | |
10f2d63a VZ |
12582 | fi |
12583 | fi | |
698dcdb6 VZ |
12584 | |
12585 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | |
10f2d63a | 12586 | if test $ac_cv_c_bigendian = unknown; then |
698dcdb6 | 12587 | echo "configure: warning: Assuming little-endian target machine - this may be overriden by adding the line "ac_cv_c_bigendian=${ac_cv_c_bigendian='yes'}" to config.cache file" 1>&2 |
10f2d63a VZ |
12588 | fi |
12589 | if test $ac_cv_c_bigendian = yes; then | |
698dcdb6 | 12590 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
12591 | #define WORDS_BIGENDIAN 1 |
12592 | EOF | |
12593 | ||
12594 | fi | |
12595 | ||
698dcdb6 VZ |
12596 | |
12597 | ||
10f2d63a | 12598 | if test "$cross_compiling" = "yes"; then |
698dcdb6 | 12599 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
12600 | #define wxUSE_IOSTREAMH 1 |
12601 | EOF | |
12602 | ||
12603 | else | |
698dcdb6 VZ |
12604 | |
12605 | ac_ext=C | |
12606 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 12607 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
12608 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12609 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12610 | cross_compiling=$ac_cv_prog_cxx_cross | |
12611 | ||
703e0a69 | 12612 | |
698dcdb6 | 12613 | for ac_hdr in iostream |
10f2d63a | 12614 | do |
698dcdb6 VZ |
12615 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12616 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
ab252f7b | 12617 | echo "configure:12618: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
12618 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12619 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12620 | else | |
12621 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 12622 | #line 12623 "configure" |
10f2d63a | 12623 | #include "confdefs.h" |
698dcdb6 VZ |
12624 | #include <$ac_hdr> |
12625 | EOF | |
12626 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
ab252f7b | 12627 | { (eval echo configure:12628: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
12628 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12629 | if test -z "$ac_err"; then | |
12630 | rm -rf conftest* | |
12631 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 12632 | else |
698dcdb6 VZ |
12633 | echo "$ac_err" >&5 |
12634 | echo "configure: failed program was:" >&5 | |
10f2d63a | 12635 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
12636 | rm -rf conftest* |
12637 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 12638 | fi |
698dcdb6 | 12639 | rm -f conftest* |
10f2d63a | 12640 | fi |
698dcdb6 VZ |
12641 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12642 | echo "$ac_t""yes" 1>&6 | |
12643 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12644 | cat >> confdefs.h <<EOF | |
12645 | #define $ac_tr_hdr 1 | |
10f2d63a | 12646 | EOF |
698dcdb6 VZ |
12647 | |
12648 | else | |
12649 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
12650 | fi |
12651 | done | |
12652 | ||
698dcdb6 | 12653 | |
57fe5ed0 VZ |
12654 | if test "$ac_cv_header_iostream" = "yes" ; then |
12655 | : | |
12656 | else | |
698dcdb6 | 12657 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
12658 | #define wxUSE_IOSTREAMH 1 |
12659 | EOF | |
12660 | ||
10f2d63a VZ |
12661 | fi |
12662 | ||
12663 | ac_ext=c | |
698dcdb6 | 12664 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 12665 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
12666 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12667 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12668 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a VZ |
12669 | |
12670 | fi | |
12671 | ||
703e0a69 | 12672 | |
698dcdb6 VZ |
12673 | |
12674 | echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6 | |
ab252f7b | 12675 | echo "configure:12676: checking if C++ compiler supports bool" >&5 |
698dcdb6 VZ |
12676 | if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then |
12677 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12678 | else | |
12679 | ||
12680 | ||
12681 | ac_ext=C | |
12682 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 12683 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
12684 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12685 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12686 | cross_compiling=$ac_cv_prog_cxx_cross | |
10f2d63a | 12687 | |
698dcdb6 VZ |
12688 | |
12689 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 12690 | #line 12691 "configure" |
10f2d63a VZ |
12691 | #include "confdefs.h" |
12692 | ||
698dcdb6 VZ |
12693 | |
12694 | int main() { | |
10f2d63a VZ |
12695 | |
12696 | bool b = true; | |
12697 | ||
12698 | return 0; | |
698dcdb6 VZ |
12699 | |
12700 | ; return 0; } | |
12701 | EOF | |
ab252f7b | 12702 | if { (eval echo configure:12703: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
12703 | rm -rf conftest* |
12704 | ||
10f2d63a | 12705 | wx_cv_cpp_bool=yes |
698dcdb6 | 12706 | |
10f2d63a | 12707 | else |
698dcdb6 VZ |
12708 | echo "configure: failed program was:" >&5 |
12709 | cat conftest.$ac_ext >&5 | |
12710 | rm -rf conftest* | |
12711 | ||
10f2d63a | 12712 | wx_cv_cpp_bool=no |
698dcdb6 VZ |
12713 | |
12714 | ||
10f2d63a | 12715 | fi |
698dcdb6 | 12716 | rm -f conftest* |
10f2d63a VZ |
12717 | |
12718 | ac_ext=c | |
698dcdb6 | 12719 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 12720 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
12721 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12722 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12723 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a | 12724 | |
698dcdb6 | 12725 | |
10f2d63a | 12726 | fi |
698dcdb6 VZ |
12727 | |
12728 | echo "$ac_t""$wx_cv_cpp_bool" 1>&6 | |
10f2d63a VZ |
12729 | |
12730 | if test "$wx_cv_cpp_bool" = "yes"; then | |
698dcdb6 | 12731 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
12732 | #define HAVE_BOOL 1 |
12733 | EOF | |
12734 | ||
12735 | fi | |
12736 | ||
1e487827 | 12737 | |
698dcdb6 | 12738 | |
698dcdb6 | 12739 | echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6 |
ab252f7b | 12740 | echo "configure:12741: checking for wcslen in -lc" >&5 |
698dcdb6 VZ |
12741 | ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'` |
12742 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12743 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12744 | else |
698dcdb6 | 12745 | ac_save_LIBS="$LIBS" |
10f2d63a | 12746 | LIBS="-lc $LIBS" |
698dcdb6 | 12747 | cat > conftest.$ac_ext <<EOF |
ab252f7b | 12748 | #line 12749 "configure" |
10f2d63a VZ |
12749 | #include "confdefs.h" |
12750 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12751 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12752 | builtin and then its argument prototype would still apply. */ |
12753 | char wcslen(); | |
12754 | ||
12755 | int main() { | |
12756 | wcslen() | |
12757 | ; return 0; } | |
12758 | EOF | |
ab252f7b | 12759 | if { (eval echo configure:12760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12760 | rm -rf conftest* |
12761 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12762 | else | |
12763 | echo "configure: failed program was:" >&5 | |
12764 | cat conftest.$ac_ext >&5 | |
12765 | rm -rf conftest* | |
12766 | eval "ac_cv_lib_$ac_lib_var=no" | |
12767 | fi | |
12768 | rm -f conftest* | |
12769 | LIBS="$ac_save_LIBS" | |
12770 | ||
12771 | fi | |
12772 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12773 | echo "$ac_t""yes" 1>&6 | |
12774 | ||
12775 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
12776 | #define HAVE_WCSLEN 1 |
12777 | EOF | |
12778 | ||
12779 | WCHAR_LINK="" | |
698dcdb6 | 12780 | |
10f2d63a | 12781 | else |
698dcdb6 | 12782 | echo "$ac_t""no" 1>&6 |
10f2d63a | 12783 | |
698dcdb6 | 12784 | echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6 |
ab252f7b | 12785 | echo "configure:12786: checking for wcslen in -lw" >&5 |
698dcdb6 VZ |
12786 | ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'` |
12787 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12788 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12789 | else |
698dcdb6 | 12790 | ac_save_LIBS="$LIBS" |
10f2d63a | 12791 | LIBS="-lw $LIBS" |
698dcdb6 | 12792 | cat > conftest.$ac_ext <<EOF |
ab252f7b | 12793 | #line 12794 "configure" |
10f2d63a VZ |
12794 | #include "confdefs.h" |
12795 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12796 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12797 | builtin and then its argument prototype would still apply. */ |
12798 | char wcslen(); | |
12799 | ||
12800 | int main() { | |
12801 | wcslen() | |
12802 | ; return 0; } | |
12803 | EOF | |
ab252f7b | 12804 | if { (eval echo configure:12805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12805 | rm -rf conftest* |
12806 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12807 | else | |
12808 | echo "configure: failed program was:" >&5 | |
12809 | cat conftest.$ac_ext >&5 | |
12810 | rm -rf conftest* | |
12811 | eval "ac_cv_lib_$ac_lib_var=no" | |
12812 | fi | |
12813 | rm -f conftest* | |
12814 | LIBS="$ac_save_LIBS" | |
12815 | ||
12816 | fi | |
12817 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12818 | echo "$ac_t""yes" 1>&6 | |
12819 | ||
12820 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
12821 | #define HAVE_WCSLEN 1 |
12822 | EOF | |
12823 | ||
12824 | WCHAR_LINK="-lw" | |
698dcdb6 | 12825 | |
18dbb1f6 VZ |
12826 | else |
12827 | echo "$ac_t""no" 1>&6 | |
12828 | ||
12829 | echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6 | |
ab252f7b | 12830 | echo "configure:12831: checking for wcslen in -lmsvcrt" >&5 |
18dbb1f6 VZ |
12831 | ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'` |
12832 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12833 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12834 | else | |
12835 | ac_save_LIBS="$LIBS" | |
12836 | LIBS="-lmsvcrt $LIBS" | |
12837 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 12838 | #line 12839 "configure" |
18dbb1f6 VZ |
12839 | #include "confdefs.h" |
12840 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12841 | /* We use char because int might match the return type of a gcc2 | |
12842 | builtin and then its argument prototype would still apply. */ | |
12843 | char wcslen(); | |
12844 | ||
12845 | int main() { | |
12846 | wcslen() | |
12847 | ; return 0; } | |
12848 | EOF | |
ab252f7b | 12849 | if { (eval echo configure:12850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
18dbb1f6 VZ |
12850 | rm -rf conftest* |
12851 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12852 | else | |
12853 | echo "configure: failed program was:" >&5 | |
12854 | cat conftest.$ac_ext >&5 | |
12855 | rm -rf conftest* | |
12856 | eval "ac_cv_lib_$ac_lib_var=no" | |
12857 | fi | |
12858 | rm -f conftest* | |
12859 | LIBS="$ac_save_LIBS" | |
12860 | ||
12861 | fi | |
12862 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12863 | echo "$ac_t""yes" 1>&6 | |
12864 | ||
12865 | cat >> confdefs.h <<\EOF | |
12866 | #define HAVE_WCSLEN 1 | |
12867 | EOF | |
12868 | ||
12869 | WCHAR_LINK="" | |
12870 | ||
698dcdb6 VZ |
12871 | else |
12872 | echo "$ac_t""no" 1>&6 | |
6232543b | 12873 | fi |
10f2d63a | 12874 | |
18dbb1f6 VZ |
12875 | |
12876 | fi | |
12877 | ||
698dcdb6 | 12878 | |
1e487827 | 12879 | fi |
703e0a69 | 12880 | |
698dcdb6 VZ |
12881 | |
12882 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 | |
ab252f7b | 12883 | echo "configure:12884: checking for vprintf" >&5 |
698dcdb6 VZ |
12884 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
12885 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12886 | else | |
12887 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 12888 | #line 12889 "configure" |
10f2d63a VZ |
12889 | #include "confdefs.h" |
12890 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 12891 | which can conflict with char vprintf(); below. */ |
10f2d63a VZ |
12892 | #include <assert.h> |
12893 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12894 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12895 | builtin and then its argument prototype would still apply. */ |
12896 | char vprintf(); | |
12897 | ||
12898 | int main() { | |
10f2d63a VZ |
12899 | |
12900 | /* The GNU C library defines this for functions which it implements | |
12901 | to always fail with ENOSYS. Some functions are actually named | |
12902 | something starting with __ and the normal name is an alias. */ | |
698dcdb6 | 12903 | #if defined (__stub_vprintf) || defined (__stub___vprintf) |
10f2d63a VZ |
12904 | choke me |
12905 | #else | |
698dcdb6 | 12906 | vprintf(); |
10f2d63a VZ |
12907 | #endif |
12908 | ||
698dcdb6 VZ |
12909 | ; return 0; } |
12910 | EOF | |
ab252f7b | 12911 | if { (eval echo configure:12912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12912 | rm -rf conftest* |
12913 | eval "ac_cv_func_vprintf=yes" | |
12914 | else | |
12915 | echo "configure: failed program was:" >&5 | |
12916 | cat conftest.$ac_ext >&5 | |
12917 | rm -rf conftest* | |
12918 | eval "ac_cv_func_vprintf=no" | |
12919 | fi | |
12920 | rm -f conftest* | |
12921 | fi | |
12922 | ||
12923 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then | |
12924 | echo "$ac_t""yes" 1>&6 | |
12925 | cat >> confdefs.h <<\EOF | |
12926 | #define HAVE_VPRINTF 1 | |
12927 | EOF | |
12928 | ||
12929 | else | |
12930 | echo "$ac_t""no" 1>&6 | |
12931 | fi | |
12932 | ||
12933 | if test "$ac_cv_func_vprintf" != yes; then | |
12934 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | |
ab252f7b | 12935 | echo "configure:12936: checking for _doprnt" >&5 |
698dcdb6 VZ |
12936 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
12937 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12938 | else | |
12939 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 12940 | #line 12941 "configure" |
10f2d63a VZ |
12941 | #include "confdefs.h" |
12942 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 12943 | which can conflict with char _doprnt(); below. */ |
10f2d63a VZ |
12944 | #include <assert.h> |
12945 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12946 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12947 | builtin and then its argument prototype would still apply. */ |
12948 | char _doprnt(); | |
12949 | ||
12950 | int main() { | |
10f2d63a VZ |
12951 | |
12952 | /* The GNU C library defines this for functions which it implements | |
12953 | to always fail with ENOSYS. Some functions are actually named | |
12954 | something starting with __ and the normal name is an alias. */ | |
12955 | #if defined (__stub__doprnt) || defined (__stub____doprnt) | |
12956 | choke me | |
12957 | #else | |
698dcdb6 | 12958 | _doprnt(); |
10f2d63a VZ |
12959 | #endif |
12960 | ||
698dcdb6 VZ |
12961 | ; return 0; } |
12962 | EOF | |
ab252f7b | 12963 | if { (eval echo configure:12964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12964 | rm -rf conftest* |
12965 | eval "ac_cv_func__doprnt=yes" | |
12966 | else | |
12967 | echo "configure: failed program was:" >&5 | |
12968 | cat conftest.$ac_ext >&5 | |
12969 | rm -rf conftest* | |
12970 | eval "ac_cv_func__doprnt=no" | |
12971 | fi | |
12972 | rm -f conftest* | |
12973 | fi | |
12974 | ||
12975 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then | |
12976 | echo "$ac_t""yes" 1>&6 | |
12977 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
12978 | #define HAVE_DOPRNT 1 |
12979 | EOF | |
12980 | ||
698dcdb6 VZ |
12981 | else |
12982 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
12983 | fi |
12984 | ||
12985 | fi | |
12986 | ||
1e487827 | 12987 | |
698dcdb6 VZ |
12988 | |
12989 | ||
12990 | ||
12991 | ||
12992 | ||
12993 | echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6 | |
ab252f7b | 12994 | echo "configure:12995: checking for vsnprintf" >&5 |
698dcdb6 VZ |
12995 | if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then |
12996 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12997 | else | |
12998 | ||
12999 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 13000 | #line 13001 "configure" |
f6bcfd97 BP |
13001 | #include "confdefs.h" |
13002 | ||
13003 | #include <stdio.h> | |
698dcdb6 VZ |
13004 | #include <stdarg.h> |
13005 | ||
13006 | int main() { | |
10f2d63a | 13007 | |
f6bcfd97 | 13008 | int wx_test_vsnprintf(const char *, ...); |
10f2d63a | 13009 | |
f6bcfd97 BP |
13010 | wx_test_vsnprintf("%s"); |
13011 | return 0; | |
13012 | } | |
13013 | ||
13014 | int wx_test_vsnprintf(const char *fmt, ...) | |
13015 | { | |
13016 | char *s; | |
13017 | ||
13018 | va_list argp; | |
13019 | va_start(argp, fmt); | |
13020 | vsnprintf(s, 42, fmt, argp); | |
13021 | va_end(argp); | |
698dcdb6 VZ |
13022 | |
13023 | ; return 0; } | |
13024 | EOF | |
ab252f7b | 13025 | if { (eval echo configure:13026: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
13026 | rm -rf conftest* |
13027 | ||
f6bcfd97 | 13028 | wx_cv_func_vsnprintf=yes |
698dcdb6 | 13029 | |
10f2d63a | 13030 | else |
698dcdb6 VZ |
13031 | echo "configure: failed program was:" >&5 |
13032 | cat conftest.$ac_ext >&5 | |
13033 | rm -rf conftest* | |
13034 | ||
13035 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 13036 | #line 13037 "configure" |
c521c494 RL |
13037 | #include "confdefs.h" |
13038 | ||
13039 | #include <stdio.h> | |
13040 | #include <stdarg.h> | |
698dcdb6 VZ |
13041 | |
13042 | int main() { | |
c521c494 RL |
13043 | |
13044 | int wx_test_vsnprintf(const char *, ...); | |
13045 | ||
13046 | wx_test_vsnprintf("%s"); | |
13047 | return 0; | |
13048 | } | |
13049 | ||
13050 | int wx_test_vsnprintf(const char *fmt, ...) | |
13051 | { | |
13052 | char *s; | |
13053 | ||
13054 | va_list argp; | |
13055 | va_start(argp, fmt); | |
13056 | _vsnprintf(s, 42, fmt, argp); | |
13057 | va_end(argp); | |
698dcdb6 VZ |
13058 | |
13059 | ; return 0; } | |
13060 | EOF | |
ab252f7b | 13061 | if { (eval echo configure:13062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
13062 | rm -rf conftest* |
13063 | ||
c521c494 | 13064 | wx_cv_func_vsnprintf=yes |
698dcdb6 | 13065 | |
c521c494 | 13066 | else |
698dcdb6 VZ |
13067 | echo "configure: failed program was:" >&5 |
13068 | cat conftest.$ac_ext >&5 | |
13069 | rm -rf conftest* | |
13070 | ||
c521c494 | 13071 | wx_cv_func_vsnprintf=no |
698dcdb6 | 13072 | |
10f2d63a | 13073 | fi |
698dcdb6 VZ |
13074 | rm -f conftest* |
13075 | ||
6232543b | 13076 | fi |
698dcdb6 | 13077 | rm -f conftest* |
703e0a69 | 13078 | |
1e487827 | 13079 | fi |
698dcdb6 VZ |
13080 | |
13081 | echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6 | |
10f2d63a | 13082 | |
9d8deca0 | 13083 | if test "$wx_cv_func_vsnprintf" = yes; then |
698dcdb6 | 13084 | cat >> confdefs.h <<\EOF |
9d8deca0 VZ |
13085 | #define HAVE_VSNPRINTF 1 |
13086 | EOF | |
13087 | ||
13088 | else | |
698dcdb6 | 13089 | echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2 |
9d8deca0 VZ |
13090 | fi |
13091 | ||
698dcdb6 | 13092 | echo $ac_n "checking for vsscanf""... $ac_c" 1>&6 |
ab252f7b | 13093 | echo "configure:13094: checking for vsscanf" >&5 |
698dcdb6 VZ |
13094 | if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then |
13095 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13096 | else |
698dcdb6 VZ |
13097 | |
13098 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 13099 | #line 13100 "configure" |
10f2d63a | 13100 | #include "confdefs.h" |
10f2d63a | 13101 | |
f6bcfd97 BP |
13102 | #include <stdio.h> |
13103 | #include <stdarg.h> | |
698dcdb6 VZ |
13104 | |
13105 | int main() { | |
10f2d63a | 13106 | |
f6bcfd97 | 13107 | int wx_test_vsscanf(const char *, ...); |
10f2d63a | 13108 | |
f6bcfd97 BP |
13109 | wx_test_vsscanf("%d"); |
13110 | return 0; | |
10f2d63a VZ |
13111 | } |
13112 | ||
f6bcfd97 | 13113 | int wx_test_vsscanf(const char *fmt, ...) |
10f2d63a | 13114 | { |
f6bcfd97 BP |
13115 | va_list argp; |
13116 | va_start(argp, fmt); | |
13117 | vsscanf("42", fmt, argp); | |
13118 | va_end(argp); | |
698dcdb6 VZ |
13119 | |
13120 | ; return 0; } | |
13121 | EOF | |
ab252f7b | 13122 | if { (eval echo configure:13123: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
13123 | rm -rf conftest* |
13124 | ||
f6bcfd97 | 13125 | wx_cv_func_vsscanf=yes |
698dcdb6 | 13126 | |
10f2d63a | 13127 | else |
698dcdb6 VZ |
13128 | echo "configure: failed program was:" >&5 |
13129 | cat conftest.$ac_ext >&5 | |
13130 | rm -rf conftest* | |
13131 | ||
f6bcfd97 | 13132 | wx_cv_func_vsscanf=no |
698dcdb6 | 13133 | |
6232543b | 13134 | fi |
698dcdb6 | 13135 | rm -f conftest* |
703e0a69 | 13136 | |
1e487827 | 13137 | fi |
698dcdb6 VZ |
13138 | |
13139 | echo "$ac_t""$wx_cv_func_vsscanf" 1>&6 | |
10f2d63a | 13140 | |
9d8deca0 | 13141 | if test "$wx_cv_func_vsscanf" = yes; then |
698dcdb6 | 13142 | cat >> confdefs.h <<\EOF |
9d8deca0 VZ |
13143 | #define HAVE_VSSCANF 1 |
13144 | EOF | |
13145 | ||
13146 | fi | |
13147 | ||
95c8801c VS |
13148 | if test "$TOOLKIT" != "MSW"; then |
13149 | ||
13150 | ||
13151 | ||
698dcdb6 VZ |
13152 | ac_ext=C |
13153 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
13154 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13155 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13156 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13157 | cross_compiling=$ac_cv_prog_cxx_cross | |
13158 | ||
13159 | echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6 | |
ab252f7b | 13160 | echo "configure:13161: checking if iconv() takes char**" >&5 |
698dcdb6 VZ |
13161 | if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then |
13162 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13163 | else | |
13164 | ||
13165 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 13166 | #line 13167 "configure" |
95c8801c VS |
13167 | #include "confdefs.h" |
13168 | #include <iconv.h> | |
698dcdb6 | 13169 | int main() { |
95c8801c VS |
13170 | |
13171 | char **inbuf, **outbuf; | |
19af3b06 VZ |
13172 | iconv_t cd; |
13173 | size_t insz, outsz; | |
13174 | iconv(cd, inbuf, &insz, outbuf, &outsz); | |
698dcdb6 VZ |
13175 | |
13176 | ; return 0; } | |
13177 | EOF | |
ab252f7b | 13178 | if { (eval echo configure:13179: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 13179 | rm -rf conftest* |
95c8801c VS |
13180 | wx_cv_iconv_takes_char=yes |
13181 | else | |
698dcdb6 VZ |
13182 | echo "configure: failed program was:" >&5 |
13183 | cat conftest.$ac_ext >&5 | |
13184 | rm -rf conftest* | |
13185 | wx_cv_iconv_takes_char=no | |
95c8801c | 13186 | fi |
698dcdb6 | 13187 | rm -f conftest* |
95c8801c VS |
13188 | |
13189 | fi | |
698dcdb6 VZ |
13190 | |
13191 | echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6 | |
10f2d63a | 13192 | ac_ext=c |
698dcdb6 | 13193 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 13194 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
13195 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
13196 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13197 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a | 13198 | |
95c8801c | 13199 | if test "$wx_cv_iconv_takes_char" = yes ; then |
698dcdb6 | 13200 | cat >> confdefs.h <<\EOF |
95c8801c VS |
13201 | #define WX_ICONV_TAKES_CHAR 1 |
13202 | EOF | |
13203 | ||
13204 | fi | |
10f2d63a | 13205 | |
1e487827 | 13206 | |
698dcdb6 VZ |
13207 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
13208 | for ac_func in sigaction | |
eb4efbdc | 13209 | do |
698dcdb6 | 13210 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
ab252f7b | 13211 | echo "configure:13212: checking for $ac_func" >&5 |
698dcdb6 VZ |
13212 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13213 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13214 | else | |
13215 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 13216 | #line 13217 "configure" |
eb4efbdc VZ |
13217 | #include "confdefs.h" |
13218 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13219 | which can conflict with char $ac_func(); below. */ |
eb4efbdc VZ |
13220 | #include <assert.h> |
13221 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13222 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13223 | builtin and then its argument prototype would still apply. */ |
13224 | char $ac_func(); | |
13225 | ||
13226 | int main() { | |
eb4efbdc VZ |
13227 | |
13228 | /* The GNU C library defines this for functions which it implements | |
13229 | to always fail with ENOSYS. Some functions are actually named | |
13230 | something starting with __ and the normal name is an alias. */ | |
13231 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13232 | choke me | |
13233 | #else | |
698dcdb6 | 13234 | $ac_func(); |
eb4efbdc VZ |
13235 | #endif |
13236 | ||
698dcdb6 | 13237 | ; return 0; } |
eb4efbdc | 13238 | EOF |
ab252f7b | 13239 | if { (eval echo configure:13240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13240 | rm -rf conftest* |
13241 | eval "ac_cv_func_$ac_func=yes" | |
13242 | else | |
13243 | echo "configure: failed program was:" >&5 | |
13244 | cat conftest.$ac_ext >&5 | |
13245 | rm -rf conftest* | |
13246 | eval "ac_cv_func_$ac_func=no" | |
13247 | fi | |
13248 | rm -f conftest* | |
13249 | fi | |
eb4efbdc | 13250 | |
698dcdb6 VZ |
13251 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
13252 | echo "$ac_t""yes" 1>&6 | |
13253 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13254 | cat >> confdefs.h <<EOF | |
13255 | #define $ac_tr_func 1 | |
13256 | EOF | |
13257 | ||
13258 | else | |
13259 | echo "$ac_t""no" 1>&6 | |
eb4efbdc VZ |
13260 | fi |
13261 | done | |
13262 | ||
698dcdb6 | 13263 | |
eb4efbdc | 13264 | if test "$ac_cv_func_sigaction" = "no"; then |
698dcdb6 | 13265 | echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2 |
eb4efbdc VZ |
13266 | wxUSE_ON_FATAL_EXCEPTION=no |
13267 | fi | |
f6bcfd97 BP |
13268 | |
13269 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
698dcdb6 VZ |
13270 | |
13271 | ac_ext=C | |
13272 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 13273 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
13274 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
13275 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13276 | cross_compiling=$ac_cv_prog_cxx_cross | |
6232543b | 13277 | |
1e487827 | 13278 | |
698dcdb6 | 13279 | echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6 |
ab252f7b | 13280 | echo "configure:13281: checking for sa_handler type" >&5 |
698dcdb6 VZ |
13281 | if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then |
13282 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13283 | else | |
13284 | ||
13285 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 13286 | #line 13287 "configure" |
f6bcfd97 BP |
13287 | #include "confdefs.h" |
13288 | #include <signal.h> | |
698dcdb6 | 13289 | int main() { |
f6bcfd97 BP |
13290 | |
13291 | extern void testSigHandler(int); | |
13292 | ||
13293 | struct sigaction sa; | |
13294 | sa.sa_handler = testSigHandler; | |
698dcdb6 VZ |
13295 | |
13296 | ; return 0; } | |
13297 | EOF | |
ab252f7b | 13298 | if { (eval echo configure:13299: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
13299 | rm -rf conftest* |
13300 | ||
f6bcfd97 | 13301 | wx_cv_type_sa_handler=int |
698dcdb6 | 13302 | |
f6bcfd97 | 13303 | else |
698dcdb6 VZ |
13304 | echo "configure: failed program was:" >&5 |
13305 | cat conftest.$ac_ext >&5 | |
13306 | rm -rf conftest* | |
13307 | ||
f6bcfd97 | 13308 | wx_cv_type_sa_handler=void |
698dcdb6 | 13309 | |
6232543b | 13310 | fi |
698dcdb6 VZ |
13311 | rm -f conftest* |
13312 | ||
1e487827 | 13313 | fi |
698dcdb6 VZ |
13314 | |
13315 | echo "$ac_t""$wx_cv_type_sa_handler" 1>&6 | |
f6bcfd97 BP |
13316 | |
13317 | ac_ext=c | |
698dcdb6 | 13318 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
f6bcfd97 | 13319 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
13320 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
13321 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13322 | cross_compiling=$ac_cv_prog_cc_cross | |
13323 | ||
703e0a69 | 13324 | |
698dcdb6 | 13325 | cat >> confdefs.h <<EOF |
f6bcfd97 BP |
13326 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler |
13327 | EOF | |
13328 | ||
13329 | fi | |
eb4efbdc VZ |
13330 | fi |
13331 | ||
10f2d63a VZ |
13332 | for ac_func in vfork |
13333 | do | |
698dcdb6 | 13334 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
ab252f7b | 13335 | echo "configure:13336: checking for $ac_func" >&5 |
698dcdb6 VZ |
13336 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13337 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13338 | else | |
13339 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 13340 | #line 13341 "configure" |
10f2d63a VZ |
13341 | #include "confdefs.h" |
13342 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13343 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
13344 | #include <assert.h> |
13345 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13346 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13347 | builtin and then its argument prototype would still apply. */ |
13348 | char $ac_func(); | |
13349 | ||
13350 | int main() { | |
10f2d63a VZ |
13351 | |
13352 | /* The GNU C library defines this for functions which it implements | |
13353 | to always fail with ENOSYS. Some functions are actually named | |
13354 | something starting with __ and the normal name is an alias. */ | |
13355 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13356 | choke me | |
13357 | #else | |
698dcdb6 | 13358 | $ac_func(); |
10f2d63a VZ |
13359 | #endif |
13360 | ||
698dcdb6 | 13361 | ; return 0; } |
10f2d63a | 13362 | EOF |
ab252f7b | 13363 | if { (eval echo configure:13364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13364 | rm -rf conftest* |
13365 | eval "ac_cv_func_$ac_func=yes" | |
13366 | else | |
13367 | echo "configure: failed program was:" >&5 | |
13368 | cat conftest.$ac_ext >&5 | |
13369 | rm -rf conftest* | |
13370 | eval "ac_cv_func_$ac_func=no" | |
13371 | fi | |
13372 | rm -f conftest* | |
13373 | fi | |
270a909e | 13374 | |
698dcdb6 VZ |
13375 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
13376 | echo "$ac_t""yes" 1>&6 | |
13377 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13378 | cat >> confdefs.h <<EOF | |
13379 | #define $ac_tr_func 1 | |
13380 | EOF | |
13381 | ||
13382 | else | |
13383 | echo "$ac_t""no" 1>&6 | |
270a909e VZ |
13384 | fi |
13385 | done | |
13386 | ||
1e487827 | 13387 | |
698dcdb6 VZ |
13388 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
13389 | for ac_func in fcntl flock | |
4f3c5f06 | 13390 | do |
698dcdb6 | 13391 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
ab252f7b | 13392 | echo "configure:13393: checking for $ac_func" >&5 |
698dcdb6 VZ |
13393 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13394 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13395 | else | |
13396 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 13397 | #line 13398 "configure" |
4f3c5f06 VZ |
13398 | #include "confdefs.h" |
13399 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13400 | which can conflict with char $ac_func(); below. */ |
4f3c5f06 VZ |
13401 | #include <assert.h> |
13402 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13403 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13404 | builtin and then its argument prototype would still apply. */ |
13405 | char $ac_func(); | |
13406 | ||
13407 | int main() { | |
4f3c5f06 VZ |
13408 | |
13409 | /* The GNU C library defines this for functions which it implements | |
13410 | to always fail with ENOSYS. Some functions are actually named | |
13411 | something starting with __ and the normal name is an alias. */ | |
13412 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13413 | choke me | |
13414 | #else | |
698dcdb6 | 13415 | $ac_func(); |
4f3c5f06 VZ |
13416 | #endif |
13417 | ||
698dcdb6 VZ |
13418 | ; return 0; } |
13419 | EOF | |
ab252f7b | 13420 | if { (eval echo configure:13421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13421 | rm -rf conftest* |
13422 | eval "ac_cv_func_$ac_func=yes" | |
13423 | else | |
13424 | echo "configure: failed program was:" >&5 | |
13425 | cat conftest.$ac_ext >&5 | |
13426 | rm -rf conftest* | |
13427 | eval "ac_cv_func_$ac_func=no" | |
13428 | fi | |
13429 | rm -f conftest* | |
13430 | fi | |
13431 | ||
13432 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13433 | echo "$ac_t""yes" 1>&6 | |
13434 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13435 | cat >> confdefs.h <<EOF | |
13436 | #define $ac_tr_func 1 | |
4f3c5f06 VZ |
13437 | EOF |
13438 | break | |
698dcdb6 VZ |
13439 | else |
13440 | echo "$ac_t""no" 1>&6 | |
4f3c5f06 VZ |
13441 | fi |
13442 | done | |
13443 | ||
698dcdb6 | 13444 | |
4f3c5f06 | 13445 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then |
698dcdb6 | 13446 | echo "configure: warning: wxSingleInstanceChecker not available" 1>&2 |
4f3c5f06 VZ |
13447 | wxUSE_SNGLINST_CHECKER=no |
13448 | fi | |
13449 | fi | |
13450 | ||
270a909e VZ |
13451 | for ac_func in timegm |
13452 | do | |
698dcdb6 | 13453 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
ab252f7b | 13454 | echo "configure:13455: checking for $ac_func" >&5 |
698dcdb6 VZ |
13455 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13456 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13457 | else | |
13458 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 13459 | #line 13460 "configure" |
270a909e VZ |
13460 | #include "confdefs.h" |
13461 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13462 | which can conflict with char $ac_func(); below. */ |
270a909e VZ |
13463 | #include <assert.h> |
13464 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13465 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13466 | builtin and then its argument prototype would still apply. */ |
13467 | char $ac_func(); | |
13468 | ||
13469 | int main() { | |
270a909e VZ |
13470 | |
13471 | /* The GNU C library defines this for functions which it implements | |
13472 | to always fail with ENOSYS. Some functions are actually named | |
13473 | something starting with __ and the normal name is an alias. */ | |
13474 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13475 | choke me | |
13476 | #else | |
698dcdb6 | 13477 | $ac_func(); |
270a909e VZ |
13478 | #endif |
13479 | ||
698dcdb6 | 13480 | ; return 0; } |
270a909e | 13481 | EOF |
ab252f7b | 13482 | if { (eval echo configure:13483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13483 | rm -rf conftest* |
13484 | eval "ac_cv_func_$ac_func=yes" | |
13485 | else | |
13486 | echo "configure: failed program was:" >&5 | |
13487 | cat conftest.$ac_ext >&5 | |
13488 | rm -rf conftest* | |
13489 | eval "ac_cv_func_$ac_func=no" | |
13490 | fi | |
13491 | rm -f conftest* | |
13492 | fi | |
10f2d63a | 13493 | |
698dcdb6 VZ |
13494 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
13495 | echo "$ac_t""yes" 1>&6 | |
13496 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13497 | cat >> confdefs.h <<EOF | |
13498 | #define $ac_tr_func 1 | |
13499 | EOF | |
13500 | ||
13501 | else | |
13502 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13503 | fi |
13504 | done | |
13505 | ||
698dcdb6 | 13506 | |
8fd0d89b VZ |
13507 | for ac_func in putenv setenv |
13508 | do | |
698dcdb6 | 13509 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
ab252f7b | 13510 | echo "configure:13511: checking for $ac_func" >&5 |
698dcdb6 VZ |
13511 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13512 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13513 | else | |
13514 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 13515 | #line 13516 "configure" |
8fd0d89b VZ |
13516 | #include "confdefs.h" |
13517 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13518 | which can conflict with char $ac_func(); below. */ |
8fd0d89b VZ |
13519 | #include <assert.h> |
13520 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13521 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13522 | builtin and then its argument prototype would still apply. */ |
13523 | char $ac_func(); | |
13524 | ||
13525 | int main() { | |
8fd0d89b VZ |
13526 | |
13527 | /* The GNU C library defines this for functions which it implements | |
13528 | to always fail with ENOSYS. Some functions are actually named | |
13529 | something starting with __ and the normal name is an alias. */ | |
13530 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13531 | choke me | |
13532 | #else | |
698dcdb6 | 13533 | $ac_func(); |
8fd0d89b VZ |
13534 | #endif |
13535 | ||
698dcdb6 VZ |
13536 | ; return 0; } |
13537 | EOF | |
ab252f7b | 13538 | if { (eval echo configure:13539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13539 | rm -rf conftest* |
13540 | eval "ac_cv_func_$ac_func=yes" | |
13541 | else | |
13542 | echo "configure: failed program was:" >&5 | |
13543 | cat conftest.$ac_ext >&5 | |
13544 | rm -rf conftest* | |
13545 | eval "ac_cv_func_$ac_func=no" | |
13546 | fi | |
13547 | rm -f conftest* | |
13548 | fi | |
13549 | ||
13550 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13551 | echo "$ac_t""yes" 1>&6 | |
13552 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13553 | cat >> confdefs.h <<EOF | |
13554 | #define $ac_tr_func 1 | |
8fd0d89b VZ |
13555 | EOF |
13556 | break | |
698dcdb6 VZ |
13557 | else |
13558 | echo "$ac_t""no" 1>&6 | |
8fd0d89b VZ |
13559 | fi |
13560 | done | |
13561 | ||
698dcdb6 | 13562 | |
b12915c1 VZ |
13563 | HAVE_SOME_SLEEP_FUNC=0 |
13564 | if test "$USE_BEOS" = 1; then | |
698dcdb6 | 13565 | cat >> confdefs.h <<\EOF |
b12915c1 VZ |
13566 | #define HAVE_SLEEP 1 |
13567 | EOF | |
13568 | ||
13569 | HAVE_SOME_SLEEP_FUNC=1 | |
13570 | fi | |
13571 | ||
f11bdd03 | 13572 | if test "$USE_DARWIN" = 1; then |
698dcdb6 | 13573 | cat >> confdefs.h <<\EOF |
b4085ce6 GD |
13574 | #define HAVE_USLEEP 1 |
13575 | EOF | |
13576 | ||
13577 | HAVE_SOME_SLEEP_FUNC=1 | |
13578 | fi | |
13579 | ||
b12915c1 VZ |
13580 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then |
13581 | POSIX4_LINK= | |
698dcdb6 | 13582 | for ac_func in nanosleep |
10f2d63a | 13583 | do |
698dcdb6 | 13584 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
ab252f7b | 13585 | echo "configure:13586: checking for $ac_func" >&5 |
698dcdb6 VZ |
13586 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13587 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13588 | else | |
13589 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 13590 | #line 13591 "configure" |
10f2d63a VZ |
13591 | #include "confdefs.h" |
13592 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13593 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
13594 | #include <assert.h> |
13595 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13596 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13597 | builtin and then its argument prototype would still apply. */ |
13598 | char $ac_func(); | |
13599 | ||
13600 | int main() { | |
10f2d63a VZ |
13601 | |
13602 | /* The GNU C library defines this for functions which it implements | |
13603 | to always fail with ENOSYS. Some functions are actually named | |
13604 | something starting with __ and the normal name is an alias. */ | |
13605 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13606 | choke me | |
13607 | #else | |
698dcdb6 | 13608 | $ac_func(); |
10f2d63a VZ |
13609 | #endif |
13610 | ||
698dcdb6 VZ |
13611 | ; return 0; } |
13612 | EOF | |
ab252f7b | 13613 | if { (eval echo configure:13614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13614 | rm -rf conftest* |
13615 | eval "ac_cv_func_$ac_func=yes" | |
13616 | else | |
13617 | echo "configure: failed program was:" >&5 | |
13618 | cat conftest.$ac_ext >&5 | |
13619 | rm -rf conftest* | |
13620 | eval "ac_cv_func_$ac_func=no" | |
13621 | fi | |
13622 | rm -f conftest* | |
13623 | fi | |
13624 | ||
13625 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13626 | echo "$ac_t""yes" 1>&6 | |
13627 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13628 | cat >> confdefs.h <<EOF | |
13629 | #define $ac_tr_func 1 | |
13630 | EOF | |
13631 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
13632 | #define HAVE_NANOSLEEP 1 |
13633 | EOF | |
13634 | ||
13635 | else | |
698dcdb6 VZ |
13636 | echo "$ac_t""no" 1>&6 |
13637 | echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 | |
ab252f7b | 13638 | echo "configure:13639: checking for nanosleep in -lposix4" >&5 |
698dcdb6 VZ |
13639 | ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` |
13640 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13641 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13642 | else |
698dcdb6 | 13643 | ac_save_LIBS="$LIBS" |
10f2d63a | 13644 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 13645 | cat > conftest.$ac_ext <<EOF |
ab252f7b | 13646 | #line 13647 "configure" |
10f2d63a VZ |
13647 | #include "confdefs.h" |
13648 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13649 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13650 | builtin and then its argument prototype would still apply. */ |
13651 | char nanosleep(); | |
13652 | ||
13653 | int main() { | |
13654 | nanosleep() | |
13655 | ; return 0; } | |
13656 | EOF | |
ab252f7b | 13657 | if { (eval echo configure:13658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13658 | rm -rf conftest* |
13659 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13660 | else | |
13661 | echo "configure: failed program was:" >&5 | |
13662 | cat conftest.$ac_ext >&5 | |
13663 | rm -rf conftest* | |
13664 | eval "ac_cv_lib_$ac_lib_var=no" | |
13665 | fi | |
13666 | rm -f conftest* | |
13667 | LIBS="$ac_save_LIBS" | |
13668 | ||
13669 | fi | |
13670 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13671 | echo "$ac_t""yes" 1>&6 | |
13672 | ||
13673 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
13674 | #define HAVE_NANOSLEEP 1 |
13675 | EOF | |
13676 | ||
b12915c1 | 13677 | POSIX4_LINK="-lposix4" |
698dcdb6 | 13678 | |
10f2d63a | 13679 | else |
698dcdb6 | 13680 | echo "$ac_t""no" 1>&6 |
10f2d63a | 13681 | |
698dcdb6 | 13682 | for ac_func in usleep |
10f2d63a | 13683 | do |
698dcdb6 | 13684 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
ab252f7b | 13685 | echo "configure:13686: checking for $ac_func" >&5 |
698dcdb6 VZ |
13686 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13687 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13688 | else | |
13689 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 13690 | #line 13691 "configure" |
10f2d63a VZ |
13691 | #include "confdefs.h" |
13692 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13693 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
13694 | #include <assert.h> |
13695 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13696 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13697 | builtin and then its argument prototype would still apply. */ |
13698 | char $ac_func(); | |
13699 | ||
13700 | int main() { | |
10f2d63a VZ |
13701 | |
13702 | /* The GNU C library defines this for functions which it implements | |
13703 | to always fail with ENOSYS. Some functions are actually named | |
13704 | something starting with __ and the normal name is an alias. */ | |
13705 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13706 | choke me | |
13707 | #else | |
698dcdb6 | 13708 | $ac_func(); |
10f2d63a VZ |
13709 | #endif |
13710 | ||
698dcdb6 VZ |
13711 | ; return 0; } |
13712 | EOF | |
ab252f7b | 13713 | if { (eval echo configure:13714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13714 | rm -rf conftest* |
13715 | eval "ac_cv_func_$ac_func=yes" | |
13716 | else | |
13717 | echo "configure: failed program was:" >&5 | |
13718 | cat conftest.$ac_ext >&5 | |
13719 | rm -rf conftest* | |
13720 | eval "ac_cv_func_$ac_func=no" | |
13721 | fi | |
13722 | rm -f conftest* | |
13723 | fi | |
13724 | ||
13725 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13726 | echo "$ac_t""yes" 1>&6 | |
13727 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13728 | cat >> confdefs.h <<EOF | |
13729 | #define $ac_tr_func 1 | |
13730 | EOF | |
13731 | cat >> confdefs.h <<\EOF | |
b4085ce6 GD |
13732 | #define HAVE_USLEEP 1 |
13733 | EOF | |
13734 | ||
10f2d63a | 13735 | else |
698dcdb6 VZ |
13736 | echo "$ac_t""no" 1>&6 |
13737 | echo "configure: warning: wxSleep() function will not work" 1>&2 | |
13738 | ||
10f2d63a VZ |
13739 | fi |
13740 | done | |
13741 | ||
698dcdb6 VZ |
13742 | |
13743 | ||
10f2d63a VZ |
13744 | fi |
13745 | ||
698dcdb6 VZ |
13746 | |
13747 | ||
10f2d63a VZ |
13748 | fi |
13749 | done | |
13750 | ||
b12915c1 | 13751 | fi |
10f2d63a VZ |
13752 | |
13753 | for ac_func in uname gethostname | |
13754 | do | |
698dcdb6 | 13755 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
ab252f7b | 13756 | echo "configure:13757: checking for $ac_func" >&5 |
698dcdb6 VZ |
13757 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13758 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13759 | else | |
13760 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 13761 | #line 13762 "configure" |
10f2d63a VZ |
13762 | #include "confdefs.h" |
13763 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13764 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
13765 | #include <assert.h> |
13766 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13767 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13768 | builtin and then its argument prototype would still apply. */ |
13769 | char $ac_func(); | |
13770 | ||
13771 | int main() { | |
10f2d63a VZ |
13772 | |
13773 | /* The GNU C library defines this for functions which it implements | |
13774 | to always fail with ENOSYS. Some functions are actually named | |
13775 | something starting with __ and the normal name is an alias. */ | |
13776 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13777 | choke me | |
13778 | #else | |
698dcdb6 | 13779 | $ac_func(); |
10f2d63a VZ |
13780 | #endif |
13781 | ||
698dcdb6 VZ |
13782 | ; return 0; } |
13783 | EOF | |
ab252f7b | 13784 | if { (eval echo configure:13785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13785 | rm -rf conftest* |
13786 | eval "ac_cv_func_$ac_func=yes" | |
13787 | else | |
13788 | echo "configure: failed program was:" >&5 | |
13789 | cat conftest.$ac_ext >&5 | |
13790 | rm -rf conftest* | |
13791 | eval "ac_cv_func_$ac_func=no" | |
13792 | fi | |
13793 | rm -f conftest* | |
13794 | fi | |
13795 | ||
13796 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13797 | echo "$ac_t""yes" 1>&6 | |
13798 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13799 | cat >> confdefs.h <<EOF | |
13800 | #define $ac_tr_func 1 | |
10f2d63a VZ |
13801 | EOF |
13802 | break | |
698dcdb6 VZ |
13803 | else |
13804 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13805 | fi |
13806 | done | |
13807 | ||
698dcdb6 VZ |
13808 | |
13809 | ||
13810 | ac_ext=C | |
13811 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6098c7f9 | 13812 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
13813 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
13814 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13815 | cross_compiling=$ac_cv_prog_cxx_cross | |
13816 | ||
6098c7f9 | 13817 | |
10f2d63a VZ |
13818 | for ac_func in strtok_r |
13819 | do | |
698dcdb6 | 13820 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
ab252f7b | 13821 | echo "configure:13822: checking for $ac_func" >&5 |
698dcdb6 VZ |
13822 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13823 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13824 | else | |
13825 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 13826 | #line 13827 "configure" |
10f2d63a VZ |
13827 | #include "confdefs.h" |
13828 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13829 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
13830 | #include <assert.h> |
13831 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6098c7f9 VZ |
13832 | #ifdef __cplusplus |
13833 | extern "C" | |
13834 | #endif | |
10f2d63a | 13835 | /* We use char because int might match the return type of a gcc2 |
698dcdb6 VZ |
13836 | builtin and then its argument prototype would still apply. */ |
13837 | char $ac_func(); | |
13838 | ||
13839 | int main() { | |
10f2d63a VZ |
13840 | |
13841 | /* The GNU C library defines this for functions which it implements | |
13842 | to always fail with ENOSYS. Some functions are actually named | |
13843 | something starting with __ and the normal name is an alias. */ | |
13844 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13845 | choke me | |
13846 | #else | |
698dcdb6 | 13847 | $ac_func(); |
10f2d63a VZ |
13848 | #endif |
13849 | ||
698dcdb6 | 13850 | ; return 0; } |
10f2d63a | 13851 | EOF |
ab252f7b | 13852 | if { (eval echo configure:13853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13853 | rm -rf conftest* |
13854 | eval "ac_cv_func_$ac_func=yes" | |
13855 | else | |
13856 | echo "configure: failed program was:" >&5 | |
13857 | cat conftest.$ac_ext >&5 | |
13858 | rm -rf conftest* | |
13859 | eval "ac_cv_func_$ac_func=no" | |
13860 | fi | |
13861 | rm -f conftest* | |
13862 | fi | |
10f2d63a | 13863 | |
698dcdb6 VZ |
13864 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
13865 | echo "$ac_t""yes" 1>&6 | |
13866 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13867 | cat >> confdefs.h <<EOF | |
13868 | #define $ac_tr_func 1 | |
13869 | EOF | |
13870 | ||
13871 | else | |
13872 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13873 | fi |
13874 | done | |
13875 | ||
698dcdb6 | 13876 | |
6098c7f9 | 13877 | ac_ext=c |
698dcdb6 | 13878 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
6098c7f9 | 13879 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
13880 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
13881 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13882 | cross_compiling=$ac_cv_prog_cc_cross | |
6232543b | 13883 | |
1e487827 | 13884 | |
698dcdb6 | 13885 | INET_LINK= |
10f2d63a VZ |
13886 | for ac_func in inet_addr |
13887 | do | |
698dcdb6 | 13888 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
ab252f7b | 13889 | echo "configure:13890: checking for $ac_func" >&5 |
698dcdb6 VZ |
13890 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13891 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13892 | else | |
13893 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 13894 | #line 13895 "configure" |
10f2d63a VZ |
13895 | #include "confdefs.h" |
13896 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 VZ |
13897 | which can conflict with char $ac_func(); below. */ |
13898 | #include <assert.h> | |
13899 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10f2d63a | 13900 | /* We use char because int might match the return type of a gcc2 |
698dcdb6 VZ |
13901 | builtin and then its argument prototype would still apply. */ |
13902 | char $ac_func(); | |
13903 | ||
13904 | int main() { | |
10f2d63a VZ |
13905 | |
13906 | /* The GNU C library defines this for functions which it implements | |
13907 | to always fail with ENOSYS. Some functions are actually named | |
1e487827 VS |
13908 | something starting with __ and the normal name is an alias. */ |
13909 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13910 | choke me | |
13911 | #else | |
698dcdb6 | 13912 | $ac_func(); |
1e487827 | 13913 | #endif |
703e0a69 | 13914 | |
698dcdb6 VZ |
13915 | ; return 0; } |
13916 | EOF | |
ab252f7b | 13917 | if { (eval echo configure:13918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13918 | rm -rf conftest* |
13919 | eval "ac_cv_func_$ac_func=yes" | |
13920 | else | |
13921 | echo "configure: failed program was:" >&5 | |
13922 | cat conftest.$ac_ext >&5 | |
13923 | rm -rf conftest* | |
13924 | eval "ac_cv_func_$ac_func=no" | |
13925 | fi | |
13926 | rm -f conftest* | |
13927 | fi | |
13928 | ||
13929 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13930 | echo "$ac_t""yes" 1>&6 | |
13931 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13932 | cat >> confdefs.h <<EOF | |
13933 | #define $ac_tr_func 1 | |
13934 | EOF | |
13935 | cat >> confdefs.h <<\EOF | |
c63c7106 VZ |
13936 | #define HAVE_INET_ADDR 1 |
13937 | EOF | |
13938 | ||
10f2d63a | 13939 | else |
698dcdb6 VZ |
13940 | echo "$ac_t""no" 1>&6 |
13941 | echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6 | |
ab252f7b | 13942 | echo "configure:13943: checking for inet_addr in -lnsl" >&5 |
698dcdb6 VZ |
13943 | ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'` |
13944 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13945 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 13946 | else |
698dcdb6 | 13947 | ac_save_LIBS="$LIBS" |
c63c7106 | 13948 | LIBS="-lnsl $LIBS" |
698dcdb6 | 13949 | cat > conftest.$ac_ext <<EOF |
ab252f7b | 13950 | #line 13951 "configure" |
c63c7106 VZ |
13951 | #include "confdefs.h" |
13952 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13953 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13954 | builtin and then its argument prototype would still apply. */ |
13955 | char inet_addr(); | |
13956 | ||
13957 | int main() { | |
13958 | inet_addr() | |
13959 | ; return 0; } | |
13960 | EOF | |
ab252f7b | 13961 | if { (eval echo configure:13962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13962 | rm -rf conftest* |
13963 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13964 | else | |
13965 | echo "configure: failed program was:" >&5 | |
13966 | cat conftest.$ac_ext >&5 | |
13967 | rm -rf conftest* | |
13968 | eval "ac_cv_lib_$ac_lib_var=no" | |
13969 | fi | |
13970 | rm -f conftest* | |
13971 | LIBS="$ac_save_LIBS" | |
13972 | ||
13973 | fi | |
13974 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13975 | echo "$ac_t""yes" 1>&6 | |
c63c7106 VZ |
13976 | INET_LINK="nsl" |
13977 | else | |
698dcdb6 VZ |
13978 | echo "$ac_t""no" 1>&6 |
13979 | echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6 | |
ab252f7b | 13980 | echo "configure:13981: checking for inet_addr in -lresolv" >&5 |
698dcdb6 VZ |
13981 | ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'` |
13982 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13983 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 13984 | else |
698dcdb6 | 13985 | ac_save_LIBS="$LIBS" |
c63c7106 | 13986 | LIBS="-lresolv $LIBS" |
698dcdb6 | 13987 | cat > conftest.$ac_ext <<EOF |
ab252f7b | 13988 | #line 13989 "configure" |
c63c7106 VZ |
13989 | #include "confdefs.h" |
13990 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13991 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13992 | builtin and then its argument prototype would still apply. */ |
13993 | char inet_addr(); | |
13994 | ||
13995 | int main() { | |
13996 | inet_addr() | |
13997 | ; return 0; } | |
13998 | EOF | |
ab252f7b | 13999 | if { (eval echo configure:14000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14000 | rm -rf conftest* |
14001 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14002 | else | |
14003 | echo "configure: failed program was:" >&5 | |
14004 | cat conftest.$ac_ext >&5 | |
14005 | rm -rf conftest* | |
14006 | eval "ac_cv_lib_$ac_lib_var=no" | |
14007 | fi | |
14008 | rm -f conftest* | |
14009 | LIBS="$ac_save_LIBS" | |
c63c7106 | 14010 | |
6232543b | 14011 | fi |
698dcdb6 VZ |
14012 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
14013 | echo "$ac_t""yes" 1>&6 | |
14014 | INET_LINK="resolv" | |
14015 | ||
14016 | else | |
14017 | echo "$ac_t""no" 1>&6 | |
14018 | fi | |
c63c7106 | 14019 | |
698dcdb6 | 14020 | |
1e487827 | 14021 | fi |
703e0a69 | 14022 | |
698dcdb6 VZ |
14023 | |
14024 | ||
10f2d63a VZ |
14025 | fi |
14026 | done | |
14027 | ||
698dcdb6 | 14028 | |
10f2d63a VZ |
14029 | for ac_func in inet_aton |
14030 | do | |
698dcdb6 | 14031 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
ab252f7b | 14032 | echo "configure:14033: checking for $ac_func" >&5 |
698dcdb6 VZ |
14033 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14034 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14035 | else | |
14036 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 14037 | #line 14038 "configure" |
10f2d63a VZ |
14038 | #include "confdefs.h" |
14039 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 14040 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
14041 | #include <assert.h> |
14042 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14043 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14044 | builtin and then its argument prototype would still apply. */ |
14045 | char $ac_func(); | |
14046 | ||
14047 | int main() { | |
10f2d63a VZ |
14048 | |
14049 | /* The GNU C library defines this for functions which it implements | |
14050 | to always fail with ENOSYS. Some functions are actually named | |
14051 | something starting with __ and the normal name is an alias. */ | |
14052 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14053 | choke me | |
14054 | #else | |
698dcdb6 | 14055 | $ac_func(); |
10f2d63a VZ |
14056 | #endif |
14057 | ||
698dcdb6 VZ |
14058 | ; return 0; } |
14059 | EOF | |
ab252f7b | 14060 | if { (eval echo configure:14061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14061 | rm -rf conftest* |
14062 | eval "ac_cv_func_$ac_func=yes" | |
14063 | else | |
14064 | echo "configure: failed program was:" >&5 | |
14065 | cat conftest.$ac_ext >&5 | |
14066 | rm -rf conftest* | |
14067 | eval "ac_cv_func_$ac_func=no" | |
14068 | fi | |
14069 | rm -f conftest* | |
14070 | fi | |
14071 | ||
14072 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
14073 | echo "$ac_t""yes" 1>&6 | |
14074 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14075 | cat >> confdefs.h <<EOF | |
14076 | #define $ac_tr_func 1 | |
14077 | EOF | |
14078 | cat >> confdefs.h <<\EOF | |
c63c7106 VZ |
14079 | #define HAVE_INET_ATON 1 |
14080 | EOF | |
14081 | ||
10f2d63a | 14082 | else |
698dcdb6 VZ |
14083 | echo "$ac_t""no" 1>&6 |
14084 | echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6 | |
ab252f7b | 14085 | echo "configure:14086: checking for inet_aton in -l$INET_LINK" >&5 |
698dcdb6 VZ |
14086 | ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'` |
14087 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14088 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14089 | else |
698dcdb6 | 14090 | ac_save_LIBS="$LIBS" |
c63c7106 | 14091 | LIBS="-l$INET_LINK $LIBS" |
698dcdb6 | 14092 | cat > conftest.$ac_ext <<EOF |
ab252f7b | 14093 | #line 14094 "configure" |
10f2d63a VZ |
14094 | #include "confdefs.h" |
14095 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14096 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14097 | builtin and then its argument prototype would still apply. */ |
14098 | char inet_aton(); | |
14099 | ||
14100 | int main() { | |
14101 | inet_aton() | |
14102 | ; return 0; } | |
14103 | EOF | |
ab252f7b | 14104 | if { (eval echo configure:14105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14105 | rm -rf conftest* |
14106 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14107 | else | |
14108 | echo "configure: failed program was:" >&5 | |
14109 | cat conftest.$ac_ext >&5 | |
14110 | rm -rf conftest* | |
14111 | eval "ac_cv_lib_$ac_lib_var=no" | |
14112 | fi | |
14113 | rm -f conftest* | |
14114 | LIBS="$ac_save_LIBS" | |
14115 | ||
14116 | fi | |
14117 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14118 | echo "$ac_t""yes" 1>&6 | |
14119 | cat >> confdefs.h <<\EOF | |
c63c7106 | 14120 | #define HAVE_INET_ATON 1 |
10f2d63a VZ |
14121 | EOF |
14122 | ||
698dcdb6 VZ |
14123 | else |
14124 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
14125 | fi |
14126 | ||
698dcdb6 | 14127 | |
c63c7106 VZ |
14128 | fi |
14129 | done | |
14130 | ||
698dcdb6 | 14131 | |
c63c7106 | 14132 | if test "x$INET_LINK" != "x"; then |
698dcdb6 | 14133 | cat >> confdefs.h <<\EOF |
c63c7106 VZ |
14134 | #define HAVE_INET_ADDR 1 |
14135 | EOF | |
14136 | ||
14137 | INET_LINK="-l$INET_LINK" | |
14138 | fi | |
10f2d63a VZ |
14139 | |
14140 | fi | |
14141 | ||
698dcdb6 VZ |
14142 | |
14143 | cat > confcache <<\EOF | |
10f2d63a VZ |
14144 | # This file is a shell script that caches the results of configure |
14145 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
14146 | # scripts and configure runs. It is not useful on other systems. |
14147 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 14148 | # |
698dcdb6 VZ |
14149 | # By default, configure uses ./config.cache as the cache file, |
14150 | # creating it if it does not exist already. You can give configure | |
14151 | # the --cache-file=FILE option to use a different cache file; that is | |
14152 | # what configure does when it calls configure scripts in | |
14153 | # subdirectories, so they share the cache. | |
14154 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
14155 | # config.status only pays attention to the cache file if you give it the | |
14156 | # --recheck option to rerun configure. | |
10f2d63a | 14157 | # |
698dcdb6 | 14158 | EOF |
10f2d63a VZ |
14159 | # The following way of writing the cache mishandles newlines in values, |
14160 | # but we know of no workaround that is simple, portable, and efficient. | |
14161 | # So, don't put newlines in cache variables' values. | |
14162 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
14163 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
14164 | (set) 2>&1 | |
14165 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
14166 | *ac_space=\ *) | |
14167 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
14168 | # turns \\\\ into \\, and sed turns \\ into \). | |
14169 | sed -n \ | |
14170 | -e "s/'/'\\\\''/g" \ | |
14171 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
14172 | ;; | |
14173 | *) | |
14174 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
14175 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
14176 | ;; | |
14177 | esac >> confcache | |
14178 | if cmp -s $cache_file confcache; then | |
14179 | : | |
14180 | else | |
10f2d63a | 14181 | if test -w $cache_file; then |
698dcdb6 VZ |
14182 | echo "updating cache $cache_file" |
14183 | cat confcache > $cache_file | |
10f2d63a VZ |
14184 | else |
14185 | echo "not updating unwritable cache $cache_file" | |
14186 | fi | |
14187 | fi | |
14188 | rm -f confcache | |
14189 | ||
698dcdb6 VZ |
14190 | |
14191 | ||
b089607b | 14192 | if test "$TOOLKIT" != "MSW"; then |
10f2d63a | 14193 | |
698dcdb6 | 14194 | |
10f2d63a VZ |
14195 | THREADS_LINK="" |
14196 | THREADS_OBJ="" | |
14197 | ||
14198 | if test "$wxUSE_THREADS" = "yes" ; then | |
14199 | if test "$wxUSE_WINE" = 1 ; then | |
698dcdb6 | 14200 | echo "configure: warning: Threads are not supported under WINE" 1>&2 |
10f2d63a | 14201 | wxUSE_THREADS="no" |
b12915c1 | 14202 | elif test "$USE_BEOS" = 1; then |
698dcdb6 | 14203 | echo "configure: warning: BeOS threads are not yet supported" 1>&2 |
b12915c1 | 14204 | wxUSE_THREADS="no" |
10f2d63a VZ |
14205 | fi |
14206 | fi | |
14207 | ||
14208 | if test "$wxUSE_THREADS" = "yes" ; then | |
698dcdb6 | 14209 | |
186837b0 | 14210 | if test "$USE_AIX" = 1; then |
f6bcfd97 BP |
14211 | THREADS_LIB=pthreads |
14212 | else | |
14213 | THREADS_LIB=pthread | |
14214 | fi | |
14215 | ||
698dcdb6 | 14216 | echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6 |
ab252f7b | 14217 | echo "configure:14218: checking for pthread_create in -l$THREADS_LIB" >&5 |
698dcdb6 VZ |
14218 | ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'` |
14219 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14220 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14221 | else |
698dcdb6 | 14222 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 14223 | LIBS="-l$THREADS_LIB $LIBS" |
698dcdb6 | 14224 | cat > conftest.$ac_ext <<EOF |
ab252f7b | 14225 | #line 14226 "configure" |
10f2d63a VZ |
14226 | #include "confdefs.h" |
14227 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14228 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14229 | builtin and then its argument prototype would still apply. */ |
14230 | char pthread_create(); | |
14231 | ||
14232 | int main() { | |
14233 | pthread_create() | |
14234 | ; return 0; } | |
14235 | EOF | |
ab252f7b | 14236 | if { (eval echo configure:14237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14237 | rm -rf conftest* |
14238 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14239 | else | |
14240 | echo "configure: failed program was:" >&5 | |
14241 | cat conftest.$ac_ext >&5 | |
14242 | rm -rf conftest* | |
14243 | eval "ac_cv_lib_$ac_lib_var=no" | |
14244 | fi | |
14245 | rm -f conftest* | |
14246 | LIBS="$ac_save_LIBS" | |
10f2d63a | 14247 | |
698dcdb6 VZ |
14248 | fi |
14249 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14250 | echo "$ac_t""yes" 1>&6 | |
14251 | ||
10f2d63a | 14252 | THREADS_OBJ="threadpsx.lo" |
f6bcfd97 | 14253 | THREADS_LINK=$THREADS_LIB |
698dcdb6 | 14254 | |
10f2d63a | 14255 | else |
698dcdb6 | 14256 | echo "$ac_t""no" 1>&6 |
10f2d63a | 14257 | |
698dcdb6 | 14258 | echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 |
ab252f7b | 14259 | echo "configure:14260: checking for pthread_create in -lc_r" >&5 |
698dcdb6 VZ |
14260 | ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` |
14261 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14262 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14263 | else |
698dcdb6 | 14264 | ac_save_LIBS="$LIBS" |
10f2d63a | 14265 | LIBS="-lc_r $LIBS" |
698dcdb6 | 14266 | cat > conftest.$ac_ext <<EOF |
ab252f7b | 14267 | #line 14268 "configure" |
10f2d63a VZ |
14268 | #include "confdefs.h" |
14269 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14270 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14271 | builtin and then its argument prototype would still apply. */ |
14272 | char pthread_create(); | |
14273 | ||
14274 | int main() { | |
14275 | pthread_create() | |
14276 | ; return 0; } | |
14277 | EOF | |
ab252f7b | 14278 | if { (eval echo configure:14279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14279 | rm -rf conftest* |
14280 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14281 | else | |
14282 | echo "configure: failed program was:" >&5 | |
14283 | cat conftest.$ac_ext >&5 | |
14284 | rm -rf conftest* | |
14285 | eval "ac_cv_lib_$ac_lib_var=no" | |
14286 | fi | |
14287 | rm -f conftest* | |
14288 | LIBS="$ac_save_LIBS" | |
10f2d63a | 14289 | |
698dcdb6 VZ |
14290 | fi |
14291 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14292 | echo "$ac_t""yes" 1>&6 | |
14293 | ||
10f2d63a VZ |
14294 | THREADS_OBJ="threadpsx.lo" |
14295 | THREADS_LINK="c_r" | |
698dcdb6 | 14296 | |
10f2d63a | 14297 | else |
698dcdb6 | 14298 | echo "$ac_t""no" 1>&6 |
10f2d63a | 14299 | |
698dcdb6 VZ |
14300 | ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'` |
14301 | echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6 | |
ab252f7b | 14302 | echo "configure:14303: checking for sys/prctl.h" >&5 |
698dcdb6 VZ |
14303 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
14304 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14305 | else |
698dcdb6 | 14306 | cat > conftest.$ac_ext <<EOF |
ab252f7b | 14307 | #line 14308 "configure" |
10f2d63a VZ |
14308 | #include "confdefs.h" |
14309 | #include <sys/prctl.h> | |
698dcdb6 VZ |
14310 | EOF |
14311 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
ab252f7b | 14312 | { (eval echo configure:14313: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
14313 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14314 | if test -z "$ac_err"; then | |
14315 | rm -rf conftest* | |
14316 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 14317 | else |
698dcdb6 VZ |
14318 | echo "$ac_err" >&5 |
14319 | echo "configure: failed program was:" >&5 | |
10f2d63a | 14320 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
14321 | rm -rf conftest* |
14322 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 14323 | fi |
698dcdb6 | 14324 | rm -f conftest* |
10f2d63a | 14325 | fi |
698dcdb6 VZ |
14326 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
14327 | echo "$ac_t""yes" 1>&6 | |
14328 | ||
1f8ae82f | 14329 | THREADS_OBJ="threadsgi.lo" |
698dcdb6 VZ |
14330 | |
14331 | else | |
14332 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
14333 | fi |
14334 | ||
698dcdb6 | 14335 | |
6232543b | 14336 | fi |
10f2d63a | 14337 | |
698dcdb6 | 14338 | |
1e487827 | 14339 | fi |
703e0a69 | 14340 | |
698dcdb6 | 14341 | |
10f2d63a VZ |
14342 | if test -z "$THREADS_OBJ" ; then |
14343 | wxUSE_THREADS=no | |
698dcdb6 | 14344 | echo "configure: warning: No thread support on this system" 1>&2 |
10f2d63a VZ |
14345 | fi |
14346 | fi | |
14347 | ||
14348 | if test "$wxUSE_THREADS" = "yes" ; then | |
698dcdb6 | 14349 | for ac_func in thr_setconcurrency |
70846f0a | 14350 | do |
698dcdb6 | 14351 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
ab252f7b | 14352 | echo "configure:14353: checking for $ac_func" >&5 |
698dcdb6 VZ |
14353 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14354 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14355 | else | |
14356 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 14357 | #line 14358 "configure" |
70846f0a VZ |
14358 | #include "confdefs.h" |
14359 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 14360 | which can conflict with char $ac_func(); below. */ |
70846f0a VZ |
14361 | #include <assert.h> |
14362 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14363 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14364 | builtin and then its argument prototype would still apply. */ |
14365 | char $ac_func(); | |
14366 | ||
14367 | int main() { | |
70846f0a VZ |
14368 | |
14369 | /* The GNU C library defines this for functions which it implements | |
14370 | to always fail with ENOSYS. Some functions are actually named | |
14371 | something starting with __ and the normal name is an alias. */ | |
14372 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14373 | choke me | |
14374 | #else | |
698dcdb6 | 14375 | $ac_func(); |
70846f0a VZ |
14376 | #endif |
14377 | ||
698dcdb6 | 14378 | ; return 0; } |
70846f0a | 14379 | EOF |
ab252f7b | 14380 | if { (eval echo configure:14381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14381 | rm -rf conftest* |
14382 | eval "ac_cv_func_$ac_func=yes" | |
14383 | else | |
14384 | echo "configure: failed program was:" >&5 | |
14385 | cat conftest.$ac_ext >&5 | |
14386 | rm -rf conftest* | |
14387 | eval "ac_cv_func_$ac_func=no" | |
14388 | fi | |
14389 | rm -f conftest* | |
14390 | fi | |
70846f0a | 14391 | |
698dcdb6 VZ |
14392 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
14393 | echo "$ac_t""yes" 1>&6 | |
14394 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14395 | cat >> confdefs.h <<EOF | |
14396 | #define $ac_tr_func 1 | |
14397 | EOF | |
14398 | ||
14399 | else | |
14400 | echo "$ac_t""no" 1>&6 | |
70846f0a VZ |
14401 | fi |
14402 | done | |
14403 | ||
698dcdb6 VZ |
14404 | |
14405 | ||
14406 | for ac_hdr in sched.h | |
10f2d63a | 14407 | do |
698dcdb6 VZ |
14408 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
14409 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
ab252f7b | 14410 | echo "configure:14411: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
14411 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
14412 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14413 | else | |
14414 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 14415 | #line 14416 "configure" |
10f2d63a | 14416 | #include "confdefs.h" |
698dcdb6 VZ |
14417 | #include <$ac_hdr> |
14418 | EOF | |
14419 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
ab252f7b | 14420 | { (eval echo configure:14421: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
14421 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14422 | if test -z "$ac_err"; then | |
14423 | rm -rf conftest* | |
14424 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 14425 | else |
698dcdb6 VZ |
14426 | echo "$ac_err" >&5 |
14427 | echo "configure: failed program was:" >&5 | |
10f2d63a | 14428 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
14429 | rm -rf conftest* |
14430 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 14431 | fi |
698dcdb6 | 14432 | rm -f conftest* |
10f2d63a | 14433 | fi |
698dcdb6 VZ |
14434 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
14435 | echo "$ac_t""yes" 1>&6 | |
14436 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
14437 | cat >> confdefs.h <<EOF | |
14438 | #define $ac_tr_hdr 1 | |
10f2d63a | 14439 | EOF |
698dcdb6 VZ |
14440 | |
14441 | else | |
14442 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
14443 | fi |
14444 | done | |
14445 | ||
698dcdb6 VZ |
14446 | |
14447 | echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6 | |
ab252f7b | 14448 | echo "configure:14449: checking for sched_yield in -l$THREADS_LINK" >&5 |
698dcdb6 VZ |
14449 | ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'` |
14450 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14451 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14452 | else |
698dcdb6 | 14453 | ac_save_LIBS="$LIBS" |
10f2d63a | 14454 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 14455 | cat > conftest.$ac_ext <<EOF |
ab252f7b | 14456 | #line 14457 "configure" |
10f2d63a VZ |
14457 | #include "confdefs.h" |
14458 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14459 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14460 | builtin and then its argument prototype would still apply. */ |
14461 | char sched_yield(); | |
14462 | ||
14463 | int main() { | |
14464 | sched_yield() | |
14465 | ; return 0; } | |
14466 | EOF | |
ab252f7b | 14467 | if { (eval echo configure:14468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14468 | rm -rf conftest* |
14469 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14470 | else | |
14471 | echo "configure: failed program was:" >&5 | |
14472 | cat conftest.$ac_ext >&5 | |
14473 | rm -rf conftest* | |
14474 | eval "ac_cv_lib_$ac_lib_var=no" | |
14475 | fi | |
14476 | rm -f conftest* | |
14477 | LIBS="$ac_save_LIBS" | |
14478 | ||
14479 | fi | |
14480 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14481 | echo "$ac_t""yes" 1>&6 | |
14482 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
14483 | #define HAVE_SCHED_YIELD 1 |
14484 | EOF | |
14485 | ||
14486 | else | |
698dcdb6 VZ |
14487 | echo "$ac_t""no" 1>&6 |
14488 | echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6 | |
ab252f7b | 14489 | echo "configure:14490: checking for sched_yield in -lposix4" >&5 |
698dcdb6 VZ |
14490 | ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'` |
14491 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14492 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14493 | else |
698dcdb6 | 14494 | ac_save_LIBS="$LIBS" |
1e487827 | 14495 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 14496 | cat > conftest.$ac_ext <<EOF |
ab252f7b | 14497 | #line 14498 "configure" |
10f2d63a VZ |
14498 | #include "confdefs.h" |
14499 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14500 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14501 | builtin and then its argument prototype would still apply. */ |
14502 | char sched_yield(); | |
14503 | ||
14504 | int main() { | |
14505 | sched_yield() | |
14506 | ; return 0; } | |
14507 | EOF | |
ab252f7b | 14508 | if { (eval echo configure:14509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14509 | rm -rf conftest* |
14510 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14511 | else | |
14512 | echo "configure: failed program was:" >&5 | |
14513 | cat conftest.$ac_ext >&5 | |
14514 | rm -rf conftest* | |
14515 | eval "ac_cv_lib_$ac_lib_var=no" | |
14516 | fi | |
14517 | rm -f conftest* | |
14518 | LIBS="$ac_save_LIBS" | |
14519 | ||
14520 | fi | |
14521 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14522 | echo "$ac_t""yes" 1>&6 | |
14523 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
14524 | #define HAVE_SCHED_YIELD 1 |
14525 | EOF | |
14526 | POSIX4_LINK="-lposix4" | |
14527 | else | |
698dcdb6 VZ |
14528 | echo "$ac_t""no" 1>&6 |
14529 | echo "configure: warning: wxThread::Yield will not work properly" 1>&2 | |
14530 | ||
6232543b | 14531 | fi |
10f2d63a | 14532 | |
698dcdb6 | 14533 | |
1e487827 | 14534 | fi |
703e0a69 | 14535 | |
698dcdb6 | 14536 | |
f6bcfd97 | 14537 | HAVE_PRIOR_FUNCS=0 |
698dcdb6 | 14538 | echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6 |
ab252f7b | 14539 | echo "configure:14540: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5 |
698dcdb6 VZ |
14540 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'` |
14541 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14542 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14543 | else |
698dcdb6 | 14544 | ac_save_LIBS="$LIBS" |
10f2d63a | 14545 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 14546 | cat > conftest.$ac_ext <<EOF |
ab252f7b | 14547 | #line 14548 "configure" |
10f2d63a VZ |
14548 | #include "confdefs.h" |
14549 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14550 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14551 | builtin and then its argument prototype would still apply. */ |
14552 | char pthread_attr_getschedpolicy(); | |
14553 | ||
14554 | int main() { | |
14555 | pthread_attr_getschedpolicy() | |
14556 | ; return 0; } | |
14557 | EOF | |
ab252f7b | 14558 | if { (eval echo configure:14559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14559 | rm -rf conftest* |
14560 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14561 | else | |
14562 | echo "configure: failed program was:" >&5 | |
14563 | cat conftest.$ac_ext >&5 | |
14564 | rm -rf conftest* | |
14565 | eval "ac_cv_lib_$ac_lib_var=no" | |
14566 | fi | |
14567 | rm -f conftest* | |
14568 | LIBS="$ac_save_LIBS" | |
14569 | ||
14570 | fi | |
14571 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14572 | echo "$ac_t""yes" 1>&6 | |
14573 | echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6 | |
ab252f7b | 14574 | echo "configure:14575: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5 |
698dcdb6 VZ |
14575 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'` |
14576 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14577 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14578 | else | |
14579 | ac_save_LIBS="$LIBS" | |
f6bcfd97 | 14580 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 14581 | cat > conftest.$ac_ext <<EOF |
ab252f7b | 14582 | #line 14583 "configure" |
f6bcfd97 BP |
14583 | #include "confdefs.h" |
14584 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14585 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14586 | builtin and then its argument prototype would still apply. */ |
14587 | char pthread_attr_setschedparam(); | |
14588 | ||
14589 | int main() { | |
14590 | pthread_attr_setschedparam() | |
14591 | ; return 0; } | |
14592 | EOF | |
ab252f7b | 14593 | if { (eval echo configure:14594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14594 | rm -rf conftest* |
14595 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14596 | else | |
14597 | echo "configure: failed program was:" >&5 | |
14598 | cat conftest.$ac_ext >&5 | |
14599 | rm -rf conftest* | |
14600 | eval "ac_cv_lib_$ac_lib_var=no" | |
14601 | fi | |
14602 | rm -f conftest* | |
14603 | LIBS="$ac_save_LIBS" | |
14604 | ||
14605 | fi | |
14606 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14607 | echo "$ac_t""yes" 1>&6 | |
14608 | echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6 | |
ab252f7b | 14609 | echo "configure:14610: checking for sched_get_priority_max in -l$THREADS_LINK" >&5 |
698dcdb6 VZ |
14610 | ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
14611 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14612 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14613 | else | |
14614 | ac_save_LIBS="$LIBS" | |
f6bcfd97 | 14615 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 14616 | cat > conftest.$ac_ext <<EOF |
ab252f7b | 14617 | #line 14618 "configure" |
f6bcfd97 BP |
14618 | #include "confdefs.h" |
14619 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14620 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14621 | builtin and then its argument prototype would still apply. */ |
14622 | char sched_get_priority_max(); | |
14623 | ||
14624 | int main() { | |
14625 | sched_get_priority_max() | |
14626 | ; return 0; } | |
14627 | EOF | |
ab252f7b | 14628 | if { (eval echo configure:14629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14629 | rm -rf conftest* |
14630 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14631 | else | |
14632 | echo "configure: failed program was:" >&5 | |
14633 | cat conftest.$ac_ext >&5 | |
14634 | rm -rf conftest* | |
14635 | eval "ac_cv_lib_$ac_lib_var=no" | |
14636 | fi | |
14637 | rm -f conftest* | |
14638 | LIBS="$ac_save_LIBS" | |
14639 | ||
14640 | fi | |
14641 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14642 | echo "$ac_t""yes" 1>&6 | |
f6bcfd97 | 14643 | HAVE_PRIOR_FUNCS=1 |
10f2d63a | 14644 | else |
698dcdb6 VZ |
14645 | echo "$ac_t""no" 1>&6 |
14646 | echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6 | |
ab252f7b | 14647 | echo "configure:14648: checking for sched_get_priority_max in -lposix4" >&5 |
698dcdb6 VZ |
14648 | ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
14649 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14650 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 14651 | else |
698dcdb6 | 14652 | ac_save_LIBS="$LIBS" |
1e487827 | 14653 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 14654 | cat > conftest.$ac_ext <<EOF |
ab252f7b | 14655 | #line 14656 "configure" |
10f2d63a | 14656 | #include "confdefs.h" |
6232543b | 14657 | /* Override any gcc2 internal prototype to avoid an error. */ |
6232543b | 14658 | /* We use char because int might match the return type of a gcc2 |
698dcdb6 VZ |
14659 | builtin and then its argument prototype would still apply. */ |
14660 | char sched_get_priority_max(); | |
14661 | ||
14662 | int main() { | |
14663 | sched_get_priority_max() | |
14664 | ; return 0; } | |
14665 | EOF | |
ab252f7b | 14666 | if { (eval echo configure:14667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14667 | rm -rf conftest* |
14668 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14669 | else | |
14670 | echo "configure: failed program was:" >&5 | |
14671 | cat conftest.$ac_ext >&5 | |
14672 | rm -rf conftest* | |
14673 | eval "ac_cv_lib_$ac_lib_var=no" | |
14674 | fi | |
14675 | rm -f conftest* | |
14676 | LIBS="$ac_save_LIBS" | |
10f2d63a | 14677 | |
698dcdb6 VZ |
14678 | fi |
14679 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14680 | echo "$ac_t""yes" 1>&6 | |
14681 | ||
f6bcfd97 BP |
14682 | HAVE_PRIOR_FUNCS=1 |
14683 | POSIX4_LINK="-lposix4" | |
698dcdb6 VZ |
14684 | |
14685 | else | |
14686 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
14687 | fi |
14688 | ||
698dcdb6 | 14689 | |
10f2d63a VZ |
14690 | fi |
14691 | ||
698dcdb6 VZ |
14692 | |
14693 | else | |
14694 | echo "$ac_t""no" 1>&6 | |
6232543b | 14695 | fi |
10f2d63a | 14696 | |
698dcdb6 VZ |
14697 | |
14698 | else | |
14699 | echo "$ac_t""no" 1>&6 | |
1e487827 | 14700 | fi |
703e0a69 | 14701 | |
698dcdb6 | 14702 | |
f6bcfd97 | 14703 | if test "$HAVE_PRIOR_FUNCS" = 1; then |
698dcdb6 | 14704 | cat >> confdefs.h <<\EOF |
f6bcfd97 BP |
14705 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 |
14706 | EOF | |
14707 | ||
14708 | else | |
698dcdb6 | 14709 | echo "configure: warning: Setting thread priority will not work" 1>&2 |
f6bcfd97 BP |
14710 | fi |
14711 | ||
698dcdb6 | 14712 | echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6 |
ab252f7b | 14713 | echo "configure:14714: checking for pthread_cancel in -l$THREADS_LINK" >&5 |
698dcdb6 VZ |
14714 | ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'` |
14715 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14716 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14717 | else |
698dcdb6 | 14718 | ac_save_LIBS="$LIBS" |
10f2d63a | 14719 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 14720 | cat > conftest.$ac_ext <<EOF |
ab252f7b | 14721 | #line 14722 "configure" |
10f2d63a VZ |
14722 | #include "confdefs.h" |
14723 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14724 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14725 | builtin and then its argument prototype would still apply. */ |
14726 | char pthread_cancel(); | |
14727 | ||
14728 | int main() { | |
14729 | pthread_cancel() | |
14730 | ; return 0; } | |
14731 | EOF | |
ab252f7b | 14732 | if { (eval echo configure:14733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14733 | rm -rf conftest* |
14734 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14735 | else | |
14736 | echo "configure: failed program was:" >&5 | |
14737 | cat conftest.$ac_ext >&5 | |
14738 | rm -rf conftest* | |
14739 | eval "ac_cv_lib_$ac_lib_var=no" | |
14740 | fi | |
14741 | rm -f conftest* | |
14742 | LIBS="$ac_save_LIBS" | |
14743 | ||
14744 | fi | |
14745 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14746 | echo "$ac_t""yes" 1>&6 | |
14747 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
14748 | #define HAVE_PTHREAD_CANCEL 1 |
14749 | EOF | |
14750 | ||
14751 | else | |
698dcdb6 VZ |
14752 | echo "$ac_t""no" 1>&6 |
14753 | echo "configure: warning: wxThread::Kill() will not work properly" 1>&2 | |
10f2d63a VZ |
14754 | fi |
14755 | ||
1e487827 | 14756 | |
698dcdb6 | 14757 | echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6 |
ab252f7b | 14758 | echo "configure:14759: checking for pthread_cleanup_push/pop" >&5 |
698dcdb6 VZ |
14759 | if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then |
14760 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14761 | else | |
14762 | ||
14763 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 14764 | #line 14765 "configure" |
10f2d63a VZ |
14765 | #include "confdefs.h" |
14766 | #include <pthread.h> | |
698dcdb6 | 14767 | int main() { |
10f2d63a VZ |
14768 | |
14769 | pthread_cleanup_push(NULL, NULL); | |
14770 | pthread_cleanup_pop(0); | |
698dcdb6 VZ |
14771 | |
14772 | ; return 0; } | |
14773 | EOF | |
ab252f7b | 14774 | if { (eval echo configure:14775: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
14775 | rm -rf conftest* |
14776 | ||
10f2d63a | 14777 | wx_cv_func_pthread_cleanup_push=yes |
698dcdb6 | 14778 | |
10f2d63a | 14779 | else |
698dcdb6 VZ |
14780 | echo "configure: failed program was:" >&5 |
14781 | cat conftest.$ac_ext >&5 | |
14782 | rm -rf conftest* | |
14783 | ||
10f2d63a | 14784 | wx_cv_func_pthread_cleanup_push=no |
698dcdb6 | 14785 | |
6232543b | 14786 | fi |
698dcdb6 VZ |
14787 | rm -f conftest* |
14788 | ||
1e487827 | 14789 | fi |
698dcdb6 VZ |
14790 | |
14791 | echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6 | |
10f2d63a | 14792 | |
d9b9876f | 14793 | if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then |
698dcdb6 | 14794 | cat >> confdefs.h <<\EOF |
d9b9876f VZ |
14795 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 |
14796 | EOF | |
14797 | ||
14798 | fi | |
14799 | ||
698dcdb6 | 14800 | |
ab252f7b VZ |
14801 | if test "x$wx_lib_glibc21" = "xyes"; then |
14802 | CFLAGS="$CFLAGS -D_XOPEN_SOURCE=500" | |
14803 | fi | |
14804 | ||
698dcdb6 | 14805 | echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6 |
ab252f7b | 14806 | echo "configure:14807: checking for pthread_mutexattr_t" >&5 |
698dcdb6 VZ |
14807 | if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then |
14808 | echo $ac_n "(cached) $ac_c" 1>&6 | |
d9b9876f | 14809 | else |
698dcdb6 VZ |
14810 | |
14811 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 14812 | #line 14813 "configure" |
d9b9876f VZ |
14813 | #include "confdefs.h" |
14814 | #include <pthread.h> | |
698dcdb6 | 14815 | int main() { |
d9b9876f VZ |
14816 | |
14817 | pthread_mutexattr_t attr; | |
14818 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
698dcdb6 VZ |
14819 | |
14820 | ; return 0; } | |
14821 | EOF | |
ab252f7b | 14822 | if { (eval echo configure:14823: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
14823 | rm -rf conftest* |
14824 | ||
d9b9876f | 14825 | wx_cv_type_pthread_mutexattr_t=yes |
698dcdb6 | 14826 | |
d9b9876f | 14827 | else |
698dcdb6 VZ |
14828 | echo "configure: failed program was:" >&5 |
14829 | cat conftest.$ac_ext >&5 | |
14830 | rm -rf conftest* | |
14831 | ||
d9b9876f | 14832 | wx_cv_type_pthread_mutexattr_t=no |
698dcdb6 VZ |
14833 | |
14834 | ||
6232543b | 14835 | fi |
698dcdb6 VZ |
14836 | rm -f conftest* |
14837 | ||
1e487827 | 14838 | fi |
698dcdb6 VZ |
14839 | |
14840 | echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6 | |
d9b9876f VZ |
14841 | |
14842 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then | |
698dcdb6 | 14843 | cat >> confdefs.h <<\EOF |
d9b9876f VZ |
14844 | #define HAVE_PTHREAD_MUTEXATTR_T 1 |
14845 | EOF | |
14846 | ||
14847 | else | |
698dcdb6 | 14848 | echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6 |
ab252f7b | 14849 | echo "configure:14850: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 |
698dcdb6 VZ |
14850 | if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then |
14851 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14852 | else | |
14853 | ||
14854 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 14855 | #line 14856 "configure" |
d9b9876f VZ |
14856 | #include "confdefs.h" |
14857 | #include <pthread.h> | |
698dcdb6 | 14858 | int main() { |
d9b9876f VZ |
14859 | |
14860 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; | |
698dcdb6 VZ |
14861 | |
14862 | ; return 0; } | |
14863 | EOF | |
ab252f7b | 14864 | if { (eval echo configure:14865: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
14865 | rm -rf conftest* |
14866 | ||
d9b9876f | 14867 | wx_cv_type_pthread_rec_mutex_init=yes |
698dcdb6 | 14868 | |
d9b9876f | 14869 | else |
698dcdb6 VZ |
14870 | echo "configure: failed program was:" >&5 |
14871 | cat conftest.$ac_ext >&5 | |
14872 | rm -rf conftest* | |
14873 | ||
d9b9876f | 14874 | wx_cv_type_pthread_rec_mutex_init=no |
698dcdb6 VZ |
14875 | |
14876 | ||
6232543b | 14877 | fi |
698dcdb6 VZ |
14878 | rm -f conftest* |
14879 | ||
1e487827 | 14880 | fi |
698dcdb6 VZ |
14881 | |
14882 | echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6 | |
3765e936 | 14883 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then |
698dcdb6 | 14884 | cat >> confdefs.h <<\EOF |
d9b9876f VZ |
14885 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 |
14886 | EOF | |
14887 | ||
14888 | else | |
698dcdb6 | 14889 | echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2 |
d9b9876f VZ |
14890 | fi |
14891 | fi | |
14892 | ||
10f2d63a | 14893 | THREADS_LINK="-l$THREADS_LINK" |
186837b0 VZ |
14894 | |
14895 | if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then | |
14896 | CFLAGS="${CFLAGS} -mt" | |
14897 | CXXFLAGS="${CXXFLAGS} -mt" | |
14898 | LDFLAGS="${LDFLAGS} -mt" | |
14899 | fi | |
10f2d63a VZ |
14900 | fi |
14901 | ||
14902 | fi | |
14903 | ||
14904 | if test "$wxUSE_THREADS" = "yes"; then | |
698dcdb6 | 14905 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
14906 | #define wxUSE_THREADS 1 |
14907 | EOF | |
14908 | ||
698dcdb6 | 14909 | |
7b6058cd | 14910 | if test "$USE_DARWIN" != 1; then |
10f2d63a | 14911 | CFLAGS="${CFLAGS} -D_REENTRANT" |
2c6025bc GD |
14912 | CXXFLAGS="${CXXFLAGS} -D_REENTRANT" |
14913 | fi | |
10f2d63a VZ |
14914 | |
14915 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
14916 | else | |
14917 | if test "$ac_cv_func_strtok_r" = "yes"; then | |
698dcdb6 | 14918 | echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6 |
ab252f7b | 14919 | echo "configure:14920: checking if -D_REENTRANT is needed" >&5 |
ab9b9eab VZ |
14920 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
14921 | CFLAGS="${CFLAGS} -D_REENTRANT" | |
14922 | CXXFLAGS="${CXXFLAGS} -D_REENTRANT" | |
698dcdb6 | 14923 | echo "$ac_t""yes" 1>&6 |
ab9b9eab | 14924 | else |
698dcdb6 | 14925 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
14926 | fi |
14927 | fi | |
14928 | fi | |
14929 | ||
6f72b082 | 14930 | if test "$WXGTK20" = 1 ; then |
698dcdb6 | 14931 | cat >> confdefs.h <<EOF |
6f72b082 | 14932 | #define __WXGTK20__ $WXGTK20 |
13111b2a VZ |
14933 | EOF |
14934 | ||
14935 | WXGTK12=1 | |
14936 | fi | |
14937 | ||
10f2d63a | 14938 | if test "$WXGTK12" = 1 ; then |
698dcdb6 | 14939 | cat >> confdefs.h <<EOF |
10f2d63a VZ |
14940 | #define __WXGTK12__ $WXGTK12 |
14941 | EOF | |
14942 | ||
14943 | fi | |
14944 | ||
f6bcfd97 | 14945 | if test "$WXGTK127" = 1 ; then |
698dcdb6 | 14946 | cat >> confdefs.h <<EOF |
f6bcfd97 BP |
14947 | #define __WXGTK127__ $WXGTK127 |
14948 | EOF | |
14949 | ||
14950 | fi | |
14951 | ||
10f2d63a VZ |
14952 | if test "$WXWINE" = 1 ; then |
14953 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__" | |
14954 | fi | |
14955 | ||
b4085ce6 | 14956 | if test "$wxUSE_MAC" = 1 ; then |
f11bdd03 GD |
14957 | TOOLKIT_DEF="${TOOLKIT_DEF} -DTARGET_CARBON" |
14958 | CFLAGS="${CFLAGS} -fpascal-strings" | |
14959 | CPPFLAGS="${CPPFLAGS} -cpp-precomp -fpascal-strings" | |
2f51a9ec GD |
14960 | # Extract the first word of "Rez", so it can be a program name with args. |
14961 | set dummy Rez; ac_word=$2 | |
698dcdb6 | 14962 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
ab252f7b | 14963 | echo "configure:14964: checking for $ac_word" >&5 |
698dcdb6 VZ |
14964 | if eval "test \"`echo '$''{'ac_cv_prog_REZ'+set}'`\" = set"; then |
14965 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2f51a9ec GD |
14966 | else |
14967 | if test -n "$REZ"; then | |
14968 | ac_cv_prog_REZ="$REZ" # Let the user override the test. | |
14969 | else | |
698dcdb6 VZ |
14970 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
14971 | ac_dummy="$PATH" | |
14972 | for ac_dir in $ac_dummy; do | |
14973 | test -z "$ac_dir" && ac_dir=. | |
14974 | if test -f $ac_dir/$ac_word; then | |
14975 | ac_cv_prog_REZ="Rez" | |
14976 | break | |
14977 | fi | |
14978 | done | |
14979 | IFS="$ac_save_ifs" | |
2f51a9ec GD |
14980 | test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez" |
14981 | fi | |
14982 | fi | |
698dcdb6 | 14983 | REZ="$ac_cv_prog_REZ" |
2f51a9ec | 14984 | if test -n "$REZ"; then |
698dcdb6 | 14985 | echo "$ac_t""$REZ" 1>&6 |
2f51a9ec | 14986 | else |
698dcdb6 | 14987 | echo "$ac_t""no" 1>&6 |
2f51a9ec GD |
14988 | fi |
14989 | ||
14990 | # Extract the first word of "Derez", so it can be a program name with args. | |
14991 | set dummy Derez; ac_word=$2 | |
698dcdb6 | 14992 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
ab252f7b | 14993 | echo "configure:14994: checking for $ac_word" >&5 |
698dcdb6 VZ |
14994 | if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then |
14995 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2f51a9ec GD |
14996 | else |
14997 | if test -n "$DEREZ"; then | |
14998 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
14999 | else | |
698dcdb6 VZ |
15000 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
15001 | ac_dummy="$PATH" | |
15002 | for ac_dir in $ac_dummy; do | |
15003 | test -z "$ac_dir" && ac_dir=. | |
15004 | if test -f $ac_dir/$ac_word; then | |
15005 | ac_cv_prog_DEREZ="Derez" | |
15006 | break | |
15007 | fi | |
15008 | done | |
15009 | IFS="$ac_save_ifs" | |
2f51a9ec GD |
15010 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/Derez" |
15011 | fi | |
15012 | fi | |
698dcdb6 | 15013 | DEREZ="$ac_cv_prog_DEREZ" |
2f51a9ec | 15014 | if test -n "$DEREZ"; then |
698dcdb6 | 15015 | echo "$ac_t""$DEREZ" 1>&6 |
2f51a9ec | 15016 | else |
698dcdb6 | 15017 | echo "$ac_t""no" 1>&6 |
2f51a9ec GD |
15018 | fi |
15019 | ||
15020 | RESCOMP=${REZ} | |
15021 | REZFLAGS="-d __UNIX__ -useDF" | |
15022 | DEREZFLAGS="Carbon.r -useDF" | |
15023 | RESFLAGS="Carbon.r -t APPL" | |
15024 | LIBWXMACRES="\$(LIBWX_MACRES)" | |
15025 | LIBWXMACRESCOMP="\$(LIBWX_MACRESCOMP)" | |
b4085ce6 GD |
15026 | fi |
15027 | ||
10f2d63a VZ |
15028 | if test "$wxUSE_CYGWIN" = 1 ; then |
15029 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__" | |
15030 | fi | |
15031 | ||
15032 | WXDEBUG= | |
15033 | ||
15034 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
15035 | WXDEBUG="-g" | |
15036 | wxUSE_OPTIMISE=no | |
15037 | fi | |
15038 | ||
15039 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
15040 | wxUSE_DEBUG_INFO=yes | |
15041 | WXDEBUG="-ggdb" | |
15042 | fi | |
15043 | ||
15044 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
698dcdb6 | 15045 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15046 | #define WXDEBUG 1 |
15047 | EOF | |
15048 | ||
15049 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
15050 | else | |
15051 | if test "$wxUSE_GTK" = 1 ; then | |
15052 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
15053 | fi | |
15054 | fi | |
15055 | ||
15056 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
698dcdb6 | 15057 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15058 | #define wxUSE_MEMORY_TRACING 1 |
15059 | EOF | |
15060 | ||
698dcdb6 | 15061 | cat >> confdefs.h <<\EOF |
10f2d63a | 15062 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 |
47c13eb7 VS |
15063 | EOF |
15064 | ||
698dcdb6 | 15065 | cat >> confdefs.h <<\EOF |
47c13eb7 | 15066 | #define wxUSE_DEBUG_NEW_ALWAYS 1 |
10f2d63a VZ |
15067 | EOF |
15068 | ||
15069 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
15070 | fi | |
15071 | ||
15072 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
15073 | DMALLOC_LINK="-ldmalloc" | |
15074 | fi | |
15075 | ||
15076 | PROFILE= | |
15077 | if test "$wxUSE_PROFILE" = "yes" ; then | |
15078 | PROFILE="-pg" | |
15079 | fi | |
15080 | ||
15081 | DEP_INFO_FLAGS= | |
caa2c79b | 15082 | CODE_GEN_FLAGS= |
0f3f1cbc | 15083 | CODE_GEN_FLAGS_CXX= |
10f2d63a VZ |
15084 | if test "$GCC" = yes ; then |
15085 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
0f3f1cbc | 15086 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-rtti" |
10f2d63a VZ |
15087 | fi |
15088 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
0f3f1cbc | 15089 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-exceptions" |
10f2d63a VZ |
15090 | fi |
15091 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
caa2c79b | 15092 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" |
10f2d63a VZ |
15093 | fi |
15094 | if test "$wxUSE_NO_DEPS" = "no" ; then | |
15095 | DEP_INFO_FLAGS="-MMD" | |
15096 | fi | |
15097 | fi | |
15098 | ||
698dcdb6 | 15099 | |
10f2d63a VZ |
15100 | CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" ` |
15101 | CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" ` | |
15102 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
15103 | OPTIMISE= | |
15104 | else | |
15105 | if test "$GCC" = yes ; then | |
15106 | OPTIMISE="-O2" | |
15107 | case "${host}" in | |
15108 | i586-*-*|i686-*-* ) | |
15109 | OPTIMISE="${OPTIMISE} " | |
15110 | ;; | |
15111 | esac | |
15112 | else | |
15113 | OPTIMISE="-O" | |
15114 | fi | |
15115 | fi | |
15116 | ||
54276ccf VZ |
15117 | if test "$WXWIN_COMPATIBILITY_2" = "yes"; then |
15118 | cat >> confdefs.h <<\EOF | |
15119 | #define WXWIN_COMPATIBILITY_2 1 | |
15120 | EOF | |
15121 | ||
15122 | ||
15123 | WXWIN_COMPATIBILITY_2_2="yes" | |
15124 | fi | |
15125 | ||
15126 | if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then | |
15127 | cat >> confdefs.h <<\EOF | |
15128 | #define WXWIN_COMPATIBILITY_2_2 1 | |
15129 | EOF | |
15130 | ||
15131 | fi | |
15132 | ||
698dcdb6 | 15133 | |
10f2d63a | 15134 | ZLIB_INCLUDE= |
422107f9 | 15135 | if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then |
698dcdb6 | 15136 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15137 | #define wxUSE_ZLIB 1 |
15138 | EOF | |
15139 | ||
422107f9 VZ |
15140 | if test "$wxUSE_ZLIB" = "yes" ; then |
15141 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
15142 | else | |
15143 | ZLIB_LINK= | |
698dcdb6 VZ |
15144 | ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'` |
15145 | echo $ac_n "checking for zlib.h""... $ac_c" 1>&6 | |
ab252f7b | 15146 | echo "configure:15147: checking for zlib.h" >&5 |
698dcdb6 VZ |
15147 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
15148 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15149 | else | |
15150 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 15151 | #line 15152 "configure" |
422107f9 VZ |
15152 | #include "confdefs.h" |
15153 | #include <zlib.h> | |
698dcdb6 VZ |
15154 | EOF |
15155 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
ab252f7b | 15156 | { (eval echo configure:15157: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
15157 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15158 | if test -z "$ac_err"; then | |
15159 | rm -rf conftest* | |
15160 | eval "ac_cv_header_$ac_safe=yes" | |
422107f9 | 15161 | else |
698dcdb6 VZ |
15162 | echo "$ac_err" >&5 |
15163 | echo "configure: failed program was:" >&5 | |
422107f9 | 15164 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
15165 | rm -rf conftest* |
15166 | eval "ac_cv_header_$ac_safe=no" | |
422107f9 | 15167 | fi |
698dcdb6 | 15168 | rm -f conftest* |
422107f9 | 15169 | fi |
698dcdb6 VZ |
15170 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
15171 | echo "$ac_t""yes" 1>&6 | |
15172 | echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6 | |
ab252f7b | 15173 | echo "configure:15174: checking for deflate in -lz" >&5 |
698dcdb6 VZ |
15174 | ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'` |
15175 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15176 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 15177 | else |
698dcdb6 | 15178 | ac_save_LIBS="$LIBS" |
422107f9 | 15179 | LIBS="-lz $LIBS" |
698dcdb6 | 15180 | cat > conftest.$ac_ext <<EOF |
ab252f7b | 15181 | #line 15182 "configure" |
422107f9 VZ |
15182 | #include "confdefs.h" |
15183 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15184 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15185 | builtin and then its argument prototype would still apply. */ |
15186 | char deflate(); | |
15187 | ||
15188 | int main() { | |
15189 | deflate() | |
15190 | ; return 0; } | |
15191 | EOF | |
ab252f7b | 15192 | if { (eval echo configure:15193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15193 | rm -rf conftest* |
15194 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15195 | else | |
15196 | echo "configure: failed program was:" >&5 | |
15197 | cat conftest.$ac_ext >&5 | |
15198 | rm -rf conftest* | |
15199 | eval "ac_cv_lib_$ac_lib_var=no" | |
15200 | fi | |
15201 | rm -f conftest* | |
15202 | LIBS="$ac_save_LIBS" | |
15203 | ||
15204 | fi | |
15205 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15206 | echo "$ac_t""yes" 1>&6 | |
422107f9 | 15207 | ZLIB_LINK="-lz" |
698dcdb6 VZ |
15208 | else |
15209 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
15210 | fi |
15211 | ||
698dcdb6 VZ |
15212 | else |
15213 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
15214 | fi |
15215 | ||
15216 | if test "x$ZLIB_LINK" = "x" ; then | |
698dcdb6 | 15217 | { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; } |
422107f9 VZ |
15218 | fi |
15219 | fi | |
10f2d63a VZ |
15220 | fi |
15221 | ||
15222 | PNG_INCLUDE= | |
422107f9 | 15223 | if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then |
698dcdb6 | 15224 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15225 | #define wxUSE_LIBPNG 1 |
15226 | EOF | |
15227 | ||
41fd4136 | 15228 | if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then |
698dcdb6 | 15229 | echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2 |
422107f9 VZ |
15230 | wxUSE_LIBPNG=yes |
15231 | fi | |
15232 | ||
15233 | if test "$wxUSE_LIBPNG" = "yes" ; then | |
15234 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
15235 | else | |
15236 | PNG_LINK= | |
698dcdb6 VZ |
15237 | ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` |
15238 | echo $ac_n "checking for png.h""... $ac_c" 1>&6 | |
ab252f7b | 15239 | echo "configure:15240: checking for png.h" >&5 |
698dcdb6 VZ |
15240 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
15241 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15242 | else | |
15243 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 15244 | #line 15245 "configure" |
422107f9 VZ |
15245 | #include "confdefs.h" |
15246 | #include <png.h> | |
698dcdb6 VZ |
15247 | EOF |
15248 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
ab252f7b | 15249 | { (eval echo configure:15250: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
15250 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15251 | if test -z "$ac_err"; then | |
15252 | rm -rf conftest* | |
15253 | eval "ac_cv_header_$ac_safe=yes" | |
422107f9 | 15254 | else |
698dcdb6 VZ |
15255 | echo "$ac_err" >&5 |
15256 | echo "configure: failed program was:" >&5 | |
422107f9 | 15257 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
15258 | rm -rf conftest* |
15259 | eval "ac_cv_header_$ac_safe=no" | |
422107f9 | 15260 | fi |
698dcdb6 | 15261 | rm -f conftest* |
422107f9 | 15262 | fi |
698dcdb6 VZ |
15263 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
15264 | echo "$ac_t""yes" 1>&6 | |
15265 | echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6 | |
ab252f7b | 15266 | echo "configure:15267: checking for png_check_sig in -lpng" >&5 |
698dcdb6 VZ |
15267 | ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'` |
15268 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15269 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 15270 | else |
698dcdb6 | 15271 | ac_save_LIBS="$LIBS" |
422107f9 | 15272 | LIBS="-lpng -lz -lm $LIBS" |
698dcdb6 | 15273 | cat > conftest.$ac_ext <<EOF |
ab252f7b | 15274 | #line 15275 "configure" |
422107f9 VZ |
15275 | #include "confdefs.h" |
15276 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15277 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15278 | builtin and then its argument prototype would still apply. */ |
15279 | char png_check_sig(); | |
15280 | ||
15281 | int main() { | |
15282 | png_check_sig() | |
15283 | ; return 0; } | |
15284 | EOF | |
ab252f7b | 15285 | if { (eval echo configure:15286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15286 | rm -rf conftest* |
15287 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15288 | else | |
15289 | echo "configure: failed program was:" >&5 | |
15290 | cat conftest.$ac_ext >&5 | |
15291 | rm -rf conftest* | |
15292 | eval "ac_cv_lib_$ac_lib_var=no" | |
15293 | fi | |
15294 | rm -f conftest* | |
15295 | LIBS="$ac_save_LIBS" | |
15296 | ||
15297 | fi | |
15298 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15299 | echo "$ac_t""yes" 1>&6 | |
422107f9 | 15300 | PNG_LINK="-lpng" |
698dcdb6 VZ |
15301 | else |
15302 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
15303 | fi |
15304 | ||
698dcdb6 VZ |
15305 | |
15306 | else | |
15307 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
15308 | fi |
15309 | ||
15310 | if test "x$PNG_LINK" = "x" ; then | |
698dcdb6 | 15311 | { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; } |
422107f9 VZ |
15312 | fi |
15313 | fi | |
15314 | ||
10f2d63a VZ |
15315 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" |
15316 | fi | |
15317 | ||
15318 | JPEG_INCLUDE= | |
422107f9 | 15319 | if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then |
698dcdb6 | 15320 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15321 | #define wxUSE_LIBJPEG 1 |
15322 | EOF | |
15323 | ||
422107f9 VZ |
15324 | if test "$wxUSE_LIBJPEG" = "yes" ; then |
15325 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
15326 | else | |
15327 | JPEG_LINK= | |
463abc64 | 15328 | echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 |
ab252f7b | 15329 | echo "configure:15330: checking for jpeglib.h" >&5 |
463abc64 | 15330 | if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then |
698dcdb6 VZ |
15331 | echo $ac_n "(cached) $ac_c" 1>&6 |
15332 | else | |
15333 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 15334 | #line 15335 "configure" |
422107f9 | 15335 | #include "confdefs.h" |
463abc64 VZ |
15336 | |
15337 | #undef HAVE_STDLIB_H | |
15338 | #include <stdio.h> | |
15339 | #include <jpeglib.h> | |
15340 | ||
15341 | int main() { | |
15342 | ||
15343 | ||
15344 | ; return 0; } | |
698dcdb6 | 15345 | EOF |
ab252f7b | 15346 | if { (eval echo configure:15347: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 15347 | rm -rf conftest* |
463abc64 | 15348 | ac_cv_header_jpeglib_h=yes |
6232543b | 15349 | else |
698dcdb6 | 15350 | echo "configure: failed program was:" >&5 |
422107f9 | 15351 | cat conftest.$ac_ext >&5 |
698dcdb6 | 15352 | rm -rf conftest* |
463abc64 VZ |
15353 | ac_cv_header_jpeglib_h=no |
15354 | ||
422107f9 | 15355 | fi |
698dcdb6 | 15356 | rm -f conftest* |
463abc64 | 15357 | |
422107f9 | 15358 | fi |
463abc64 VZ |
15359 | |
15360 | echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6 | |
15361 | ||
15362 | if test "$ac_cv_header_jpeglib_h" = "yes"; then | |
15363 | echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6 | |
ab252f7b | 15364 | echo "configure:15365: checking for jpeg_read_header in -ljpeg" >&5 |
698dcdb6 VZ |
15365 | ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'` |
15366 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15367 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 15368 | else |
698dcdb6 | 15369 | ac_save_LIBS="$LIBS" |
422107f9 | 15370 | LIBS="-ljpeg $LIBS" |
698dcdb6 | 15371 | cat > conftest.$ac_ext <<EOF |
ab252f7b | 15372 | #line 15373 "configure" |
422107f9 VZ |
15373 | #include "confdefs.h" |
15374 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15375 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15376 | builtin and then its argument prototype would still apply. */ |
15377 | char jpeg_read_header(); | |
15378 | ||
15379 | int main() { | |
15380 | jpeg_read_header() | |
15381 | ; return 0; } | |
15382 | EOF | |
ab252f7b | 15383 | if { (eval echo configure:15384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15384 | rm -rf conftest* |
15385 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15386 | else | |
15387 | echo "configure: failed program was:" >&5 | |
15388 | cat conftest.$ac_ext >&5 | |
15389 | rm -rf conftest* | |
15390 | eval "ac_cv_lib_$ac_lib_var=no" | |
15391 | fi | |
15392 | rm -f conftest* | |
15393 | LIBS="$ac_save_LIBS" | |
15394 | ||
15395 | fi | |
15396 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15397 | echo "$ac_t""yes" 1>&6 | |
422107f9 | 15398 | JPEG_LINK="-ljpeg" |
698dcdb6 VZ |
15399 | else |
15400 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
15401 | fi |
15402 | ||
463abc64 | 15403 | fi |
422107f9 VZ |
15404 | |
15405 | if test "x$JPEG_LINK" = "x" ; then | |
698dcdb6 | 15406 | { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; } |
422107f9 VZ |
15407 | fi |
15408 | fi | |
10f2d63a VZ |
15409 | fi |
15410 | ||
c7a2bf27 | 15411 | TIFF_INCLUDE= |
0dcf9893 | 15412 | if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then |
698dcdb6 | 15413 | cat >> confdefs.h <<\EOF |
c7a2bf27 RR |
15414 | #define wxUSE_LIBTIFF 1 |
15415 | EOF | |
15416 | ||
665bbe97 | 15417 | if test "$wxUSE_LIBTIFF" = "yes" ; then |
0dcf9893 VZ |
15418 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" |
15419 | else | |
15420 | TIFF_LINK= | |
698dcdb6 VZ |
15421 | ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` |
15422 | echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | |
ab252f7b | 15423 | echo "configure:15424: checking for tiffio.h" >&5 |
698dcdb6 VZ |
15424 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
15425 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15426 | else | |
15427 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 15428 | #line 15429 "configure" |
0dcf9893 VZ |
15429 | #include "confdefs.h" |
15430 | #include <tiffio.h> | |
698dcdb6 VZ |
15431 | EOF |
15432 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
ab252f7b | 15433 | { (eval echo configure:15434: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
15434 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15435 | if test -z "$ac_err"; then | |
15436 | rm -rf conftest* | |
15437 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 15438 | else |
698dcdb6 VZ |
15439 | echo "$ac_err" >&5 |
15440 | echo "configure: failed program was:" >&5 | |
0dcf9893 | 15441 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
15442 | rm -rf conftest* |
15443 | eval "ac_cv_header_$ac_safe=no" | |
0dcf9893 | 15444 | fi |
698dcdb6 | 15445 | rm -f conftest* |
0dcf9893 | 15446 | fi |
698dcdb6 VZ |
15447 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
15448 | echo "$ac_t""yes" 1>&6 | |
15449 | echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6 | |
ab252f7b | 15450 | echo "configure:15451: checking for TIFFError in -ltiff" >&5 |
698dcdb6 VZ |
15451 | ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'` |
15452 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15453 | echo $ac_n "(cached) $ac_c" 1>&6 | |
0dcf9893 | 15454 | else |
698dcdb6 | 15455 | ac_save_LIBS="$LIBS" |
0dcf9893 | 15456 | LIBS="-ltiff -lm $LIBS" |
698dcdb6 | 15457 | cat > conftest.$ac_ext <<EOF |
ab252f7b | 15458 | #line 15459 "configure" |
0dcf9893 VZ |
15459 | #include "confdefs.h" |
15460 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15461 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15462 | builtin and then its argument prototype would still apply. */ |
15463 | char TIFFError(); | |
15464 | ||
15465 | int main() { | |
15466 | TIFFError() | |
15467 | ; return 0; } | |
15468 | EOF | |
ab252f7b | 15469 | if { (eval echo configure:15470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15470 | rm -rf conftest* |
15471 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15472 | else | |
15473 | echo "configure: failed program was:" >&5 | |
15474 | cat conftest.$ac_ext >&5 | |
15475 | rm -rf conftest* | |
15476 | eval "ac_cv_lib_$ac_lib_var=no" | |
15477 | fi | |
15478 | rm -f conftest* | |
15479 | LIBS="$ac_save_LIBS" | |
15480 | ||
15481 | fi | |
15482 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15483 | echo "$ac_t""yes" 1>&6 | |
0dcf9893 | 15484 | TIFF_LINK="-ltiff" |
698dcdb6 VZ |
15485 | else |
15486 | echo "$ac_t""no" 1>&6 | |
0dcf9893 VZ |
15487 | fi |
15488 | ||
698dcdb6 VZ |
15489 | else |
15490 | echo "$ac_t""no" 1>&6 | |
0dcf9893 VZ |
15491 | fi |
15492 | ||
15493 | if test "x$TIFF_LINK" = "x" ; then | |
698dcdb6 | 15494 | { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; } |
0dcf9893 VZ |
15495 | fi |
15496 | fi | |
c7a2bf27 RR |
15497 | fi |
15498 | ||
3fed1840 RR |
15499 | FREETYPE_INCLUDE= |
15500 | if test "$wxUSE_FREETYPE" = "yes" -o "$wxUSE_FREETYPE" = "sys" ; then | |
698dcdb6 | 15501 | cat >> confdefs.h <<\EOF |
3fed1840 RR |
15502 | #define wxUSE_FREETYPE 1 |
15503 | EOF | |
15504 | ||
15505 | if test "$wxUSE_FREETYPE" = "yes" ; then | |
15506 | FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype" | |
15507 | else | |
15508 | FREETYPE_LINK= | |
698dcdb6 VZ |
15509 | ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'` |
15510 | echo $ac_n "checking for freetype.h""... $ac_c" 1>&6 | |
ab252f7b | 15511 | echo "configure:15512: checking for freetype.h" >&5 |
698dcdb6 VZ |
15512 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
15513 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15514 | else | |
15515 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 15516 | #line 15517 "configure" |
3fed1840 RR |
15517 | #include "confdefs.h" |
15518 | #include <freetype.h> | |
698dcdb6 VZ |
15519 | EOF |
15520 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
ab252f7b | 15521 | { (eval echo configure:15522: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
15522 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15523 | if test -z "$ac_err"; then | |
15524 | rm -rf conftest* | |
15525 | eval "ac_cv_header_$ac_safe=yes" | |
3fed1840 | 15526 | else |
698dcdb6 VZ |
15527 | echo "$ac_err" >&5 |
15528 | echo "configure: failed program was:" >&5 | |
3fed1840 | 15529 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
15530 | rm -rf conftest* |
15531 | eval "ac_cv_header_$ac_safe=no" | |
3fed1840 | 15532 | fi |
698dcdb6 | 15533 | rm -f conftest* |
3fed1840 | 15534 | fi |
698dcdb6 VZ |
15535 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
15536 | echo "$ac_t""yes" 1>&6 | |
15537 | echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6 | |
ab252f7b | 15538 | echo "configure:15539: checking for FT_Render_Glyph in -lfreetype" >&5 |
698dcdb6 VZ |
15539 | ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'` |
15540 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15541 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3fed1840 | 15542 | else |
698dcdb6 | 15543 | ac_save_LIBS="$LIBS" |
3fed1840 | 15544 | LIBS="-lfreetype -lm $LIBS" |
698dcdb6 | 15545 | cat > conftest.$ac_ext <<EOF |
ab252f7b | 15546 | #line 15547 "configure" |
3fed1840 RR |
15547 | #include "confdefs.h" |
15548 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15549 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15550 | builtin and then its argument prototype would still apply. */ |
15551 | char FT_Render_Glyph(); | |
15552 | ||
15553 | int main() { | |
15554 | FT_Render_Glyph() | |
15555 | ; return 0; } | |
15556 | EOF | |
ab252f7b | 15557 | if { (eval echo configure:15558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15558 | rm -rf conftest* |
15559 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15560 | else | |
15561 | echo "configure: failed program was:" >&5 | |
15562 | cat conftest.$ac_ext >&5 | |
15563 | rm -rf conftest* | |
15564 | eval "ac_cv_lib_$ac_lib_var=no" | |
15565 | fi | |
15566 | rm -f conftest* | |
15567 | LIBS="$ac_save_LIBS" | |
15568 | ||
15569 | fi | |
15570 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15571 | echo "$ac_t""yes" 1>&6 | |
3fed1840 | 15572 | FREETYPE_LINK="-lfreetype" |
698dcdb6 VZ |
15573 | else |
15574 | echo "$ac_t""no" 1>&6 | |
3fed1840 RR |
15575 | fi |
15576 | ||
698dcdb6 VZ |
15577 | |
15578 | else | |
15579 | echo "$ac_t""no" 1>&6 | |
3fed1840 RR |
15580 | fi |
15581 | ||
15582 | if test "x$FREETYPE_LINK" = "x" ; then | |
698dcdb6 | 15583 | { echo "configure: error: system freetype library not found! Use --with-freetype=yes to use the built-in freetype" 1>&2; exit 1; } |
3fed1840 RR |
15584 | fi |
15585 | fi | |
15586 | fi | |
15587 | ||
10f2d63a | 15588 | if test "$wxUSE_OPENGL" = "yes"; then |
7b6058cd GD |
15589 | if test "$wxUSE_MAC" = 1; then |
15590 | cat >> confdefs.h <<\EOF | |
15591 | #define wxUSE_OPENGL 1 | |
15592 | EOF | |
15593 | ||
15594 | cat >> confdefs.h <<\EOF | |
15595 | #define wxUSE_GLCANVAS 1 | |
15596 | EOF | |
15597 | ||
15598 | OPENGL_LINK="-framework OpenGL -framework AGL" | |
24176f2c | 15599 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl" |
7b6058cd GD |
15600 | else |
15601 | ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'` | |
698dcdb6 | 15602 | echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6 |
ab252f7b | 15603 | echo "configure:15604: checking for GL/gl.h" >&5 |
698dcdb6 VZ |
15604 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
15605 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15606 | else | |
15607 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 15608 | #line 15609 "configure" |
10f2d63a VZ |
15609 | #include "confdefs.h" |
15610 | #include <GL/gl.h> | |
698dcdb6 VZ |
15611 | EOF |
15612 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
ab252f7b | 15613 | { (eval echo configure:15614: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
15614 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15615 | if test -z "$ac_err"; then | |
15616 | rm -rf conftest* | |
15617 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 15618 | else |
698dcdb6 VZ |
15619 | echo "$ac_err" >&5 |
15620 | echo "configure: failed program was:" >&5 | |
10f2d63a | 15621 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
15622 | rm -rf conftest* |
15623 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 15624 | fi |
698dcdb6 | 15625 | rm -f conftest* |
10f2d63a | 15626 | fi |
698dcdb6 VZ |
15627 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
15628 | echo "$ac_t""yes" 1>&6 | |
15629 | ||
7b6058cd | 15630 | cat >> confdefs.h <<\EOF |
bdad4e7e RR |
15631 | #define wxUSE_OPENGL 1 |
15632 | EOF | |
15633 | ||
7b6058cd | 15634 | cat >> confdefs.h <<\EOF |
bdad4e7e RR |
15635 | #define wxUSE_GLCANVAS 1 |
15636 | EOF | |
15637 | ||
24176f2c | 15638 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl" |
7b6058cd | 15639 | echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6 |
ab252f7b | 15640 | echo "configure:15641: checking for glFlush in -lGL" >&5 |
698dcdb6 VZ |
15641 | ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'` |
15642 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15643 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 15644 | else |
698dcdb6 | 15645 | ac_save_LIBS="$LIBS" |
bdad4e7e | 15646 | LIBS="-lGL $LIBS" |
698dcdb6 | 15647 | cat > conftest.$ac_ext <<EOF |
ab252f7b | 15648 | #line 15649 "configure" |
10f2d63a VZ |
15649 | #include "confdefs.h" |
15650 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15651 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15652 | builtin and then its argument prototype would still apply. */ |
15653 | char glFlush(); | |
6232543b | 15654 | |
698dcdb6 VZ |
15655 | int main() { |
15656 | glFlush() | |
15657 | ; return 0; } | |
15658 | EOF | |
ab252f7b | 15659 | if { (eval echo configure:15660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15660 | rm -rf conftest* |
15661 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15662 | else | |
15663 | echo "configure: failed program was:" >&5 | |
15664 | cat conftest.$ac_ext >&5 | |
15665 | rm -rf conftest* | |
15666 | eval "ac_cv_lib_$ac_lib_var=no" | |
15667 | fi | |
15668 | rm -f conftest* | |
15669 | LIBS="$ac_save_LIBS" | |
1e487827 | 15670 | |
698dcdb6 VZ |
15671 | fi |
15672 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15673 | echo "$ac_t""yes" 1>&6 | |
15674 | ||
7b6058cd GD |
15675 | OPENGL_LINK="-lGL -lGLU" |
15676 | ||
10f2d63a | 15677 | else |
698dcdb6 | 15678 | echo "$ac_t""no" 1>&6 |
10f2d63a | 15679 | |
7b6058cd | 15680 | echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6 |
ab252f7b | 15681 | echo "configure:15682: checking for glFlush in -lMesaGL" >&5 |
698dcdb6 VZ |
15682 | ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'` |
15683 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15684 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 15685 | else |
698dcdb6 | 15686 | ac_save_LIBS="$LIBS" |
10f2d63a | 15687 | LIBS="-lMesaGL $LIBS" |
698dcdb6 | 15688 | cat > conftest.$ac_ext <<EOF |
ab252f7b | 15689 | #line 15690 "configure" |
10f2d63a VZ |
15690 | #include "confdefs.h" |
15691 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15692 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15693 | builtin and then its argument prototype would still apply. */ |
15694 | char glFlush(); | |
15695 | ||
15696 | int main() { | |
15697 | glFlush() | |
15698 | ; return 0; } | |
15699 | EOF | |
ab252f7b | 15700 | if { (eval echo configure:15701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15701 | rm -rf conftest* |
15702 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15703 | else | |
15704 | echo "configure: failed program was:" >&5 | |
15705 | cat conftest.$ac_ext >&5 | |
15706 | rm -rf conftest* | |
15707 | eval "ac_cv_lib_$ac_lib_var=no" | |
15708 | fi | |
15709 | rm -f conftest* | |
15710 | LIBS="$ac_save_LIBS" | |
10f2d63a | 15711 | |
698dcdb6 VZ |
15712 | fi |
15713 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15714 | echo "$ac_t""yes" 1>&6 | |
15715 | ||
7b6058cd GD |
15716 | OPENGL_LINK="-lMesaGL -lMesaGLU" |
15717 | ||
698dcdb6 VZ |
15718 | else |
15719 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
15720 | fi |
15721 | ||
7b6058cd | 15722 | |
10f2d63a VZ |
15723 | fi |
15724 | ||
7b6058cd | 15725 | |
10f2d63a | 15726 | else |
698dcdb6 VZ |
15727 | echo "$ac_t""no" 1>&6 |
15728 | wxUSE_OPENGL=0 | |
10f2d63a VZ |
15729 | fi |
15730 | ||
7b6058cd | 15731 | fi |
10f2d63a VZ |
15732 | fi |
15733 | ||
698dcdb6 | 15734 | |
10f2d63a | 15735 | if test "$wxUSE_GUI" = "yes"; then |
698dcdb6 | 15736 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15737 | #define wxUSE_GUI 1 |
15738 | EOF | |
15739 | ||
698dcdb6 | 15740 | |
10f2d63a | 15741 | else |
698dcdb6 | 15742 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15743 | #define wxUSE_NOGUI 1 |
15744 | EOF | |
15745 | ||
15746 | fi | |
15747 | ||
698dcdb6 | 15748 | |
10f2d63a | 15749 | if test "$wxUSE_UNIX" = "yes"; then |
698dcdb6 | 15750 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15751 | #define wxUSE_UNIX 1 |
15752 | EOF | |
15753 | ||
15754 | fi | |
15755 | ||
698dcdb6 | 15756 | |
10f2d63a | 15757 | if test "$wxUSE_APPLE_IEEE" = "yes"; then |
698dcdb6 | 15758 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15759 | #define wxUSE_APPLE_IEEE 1 |
15760 | EOF | |
15761 | ||
15762 | fi | |
15763 | ||
1e6feb95 VZ |
15764 | if test "$wxUSE_TIMER" = "yes"; then |
15765 | cat >> confdefs.h <<\EOF | |
15766 | #define wxUSE_TIMER 1 | |
15767 | EOF | |
15768 | ||
15769 | fi | |
15770 | ||
10f2d63a | 15771 | if test "$wxUSE_WAVE" = "yes"; then |
698dcdb6 | 15772 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15773 | #define wxUSE_WAVE 1 |
15774 | EOF | |
15775 | ||
15776 | fi | |
15777 | ||
1e6feb95 VZ |
15778 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
15779 | cat >> confdefs.h <<\EOF | |
15780 | #define wxUSE_CMDLINE_PARSER 1 | |
15781 | EOF | |
15782 | ||
15783 | fi | |
15784 | ||
15785 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
15786 | cat >> confdefs.h <<\EOF | |
15787 | #define wxUSE_STOPWATCH 1 | |
15788 | EOF | |
15789 | ||
15790 | fi | |
15791 | ||
15792 | if test "$wxUSE_DATETIME" = "yes"; then | |
15793 | cat >> confdefs.h <<\EOF | |
15794 | #define wxUSE_DATETIME 1 | |
15795 | EOF | |
15796 | ||
15797 | fi | |
15798 | ||
15799 | if test "$wxUSE_TIMEDATE" = "yes"; then | |
15800 | cat >> confdefs.h <<\EOF | |
15801 | #define wxUSE_TIMEDATE 1 | |
15802 | EOF | |
15803 | ||
15804 | fi | |
15805 | ||
10f2d63a | 15806 | if test "$wxUSE_FILE" = "yes"; then |
698dcdb6 | 15807 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15808 | #define wxUSE_FILE 1 |
15809 | EOF | |
15810 | ||
15811 | fi | |
15812 | ||
1e6feb95 VZ |
15813 | if test "$wxUSE_FFILE" = "yes"; then |
15814 | cat >> confdefs.h <<\EOF | |
15815 | #define wxUSE_FFILE 1 | |
15816 | EOF | |
15817 | ||
15818 | fi | |
15819 | ||
24528b0c | 15820 | if test "$wxUSE_FILESYSTEM" = "yes"; then |
698dcdb6 | 15821 | cat >> confdefs.h <<\EOF |
24528b0c VS |
15822 | #define wxUSE_FILESYSTEM 1 |
15823 | EOF | |
15824 | ||
15825 | fi | |
15826 | ||
10f2d63a | 15827 | if test "$wxUSE_FS_INET" = "yes"; then |
698dcdb6 | 15828 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15829 | #define wxUSE_FS_INET 1 |
15830 | EOF | |
15831 | ||
15832 | fi | |
15833 | ||
15834 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
698dcdb6 | 15835 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15836 | #define wxUSE_FS_ZIP 1 |
15837 | EOF | |
15838 | ||
15839 | fi | |
15840 | ||
15841 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
698dcdb6 | 15842 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15843 | #define wxUSE_ZIPSTREAM 1 |
15844 | EOF | |
15845 | ||
15846 | fi | |
15847 | ||
eb4efbdc | 15848 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
698dcdb6 | 15849 | cat >> confdefs.h <<\EOF |
eb4efbdc VZ |
15850 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
15851 | EOF | |
15852 | ||
15853 | fi | |
15854 | ||
4f3c5f06 | 15855 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
698dcdb6 | 15856 | cat >> confdefs.h <<\EOF |
4f3c5f06 VZ |
15857 | #define wxUSE_SNGLINST_CHECKER 1 |
15858 | EOF | |
15859 | ||
15860 | fi | |
15861 | ||
10f2d63a | 15862 | if test "$wxUSE_BUSYINFO" = "yes"; then |
698dcdb6 | 15863 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15864 | #define wxUSE_BUSYINFO 1 |
15865 | EOF | |
15866 | ||
15867 | fi | |
15868 | ||
15869 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
698dcdb6 | 15870 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15871 | #define wxUSE_STD_IOSTREAM 1 |
15872 | EOF | |
15873 | ||
15874 | fi | |
15875 | ||
15876 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
15877 | if test "$wxUSE_FILE" != "yes"; then | |
698dcdb6 | 15878 | echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2 |
10f2d63a | 15879 | else |
698dcdb6 | 15880 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15881 | #define wxUSE_TEXTFILE 1 |
15882 | EOF | |
15883 | ||
15884 | fi | |
15885 | fi | |
15886 | ||
15887 | if test "$wxUSE_CONFIG" = "yes" ; then | |
15888 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
698dcdb6 | 15889 | echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2 |
10f2d63a | 15890 | else |
698dcdb6 | 15891 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15892 | #define wxUSE_CONFIG 1 |
15893 | EOF | |
15894 | ||
15895 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
15896 | fi | |
15897 | fi | |
15898 | ||
15899 | if test "$wxUSE_INTL" = "yes" ; then | |
15900 | if test "$wxUSE_FILE" != "yes"; then | |
698dcdb6 | 15901 | echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2 |
10f2d63a | 15902 | else |
698dcdb6 | 15903 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15904 | #define wxUSE_INTL 1 |
15905 | EOF | |
15906 | ||
15907 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
f6bcfd97 | 15908 | GUIDIST="$GUIDIST INTL_DIST" |
10f2d63a VZ |
15909 | fi |
15910 | fi | |
15911 | ||
15912 | if test "$wxUSE_LOG" = "yes"; then | |
698dcdb6 | 15913 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15914 | #define wxUSE_LOG 1 |
15915 | EOF | |
15916 | ||
d73be714 VZ |
15917 | |
15918 | if test "$wxUSE_LOGGUI" = "yes"; then | |
15919 | cat >> confdefs.h <<\EOF | |
15920 | #define wxUSE_LOGGUI 1 | |
15921 | EOF | |
15922 | ||
15923 | fi | |
15924 | ||
15925 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
15926 | cat >> confdefs.h <<\EOF | |
15927 | #define wxUSE_LOGWINDOW 1 | |
15928 | EOF | |
15929 | ||
15930 | fi | |
10f2d63a VZ |
15931 | fi |
15932 | ||
15933 | if test "$wxUSE_LONGLONG" = "yes"; then | |
698dcdb6 | 15934 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15935 | #define wxUSE_LONGLONG 1 |
15936 | EOF | |
15937 | ||
15938 | fi | |
15939 | ||
e8f65ba6 | 15940 | if test "$wxUSE_GEOMETRY" = "yes"; then |
698dcdb6 | 15941 | cat >> confdefs.h <<\EOF |
e8f65ba6 RR |
15942 | #define wxUSE_GEOMETRY 1 |
15943 | EOF | |
15944 | ||
15945 | fi | |
15946 | ||
10f2d63a | 15947 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
698dcdb6 | 15948 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15949 | #define wxUSE_DIALUP_MANAGER 1 |
15950 | EOF | |
15951 | ||
70f7a477 | 15952 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" |
10f2d63a VZ |
15953 | fi |
15954 | ||
15955 | if test "$wxUSE_STREAMS" = "yes" ; then | |
698dcdb6 | 15956 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15957 | #define wxUSE_STREAMS 1 |
15958 | EOF | |
15959 | ||
15960 | fi | |
15961 | ||
1e487827 | 15962 | |
1e6feb95 | 15963 | if test "$wxUSE_DATETIME" = "yes"; then |
698dcdb6 | 15964 | for ac_func in strptime |
83307f33 | 15965 | do |
698dcdb6 | 15966 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
ab252f7b | 15967 | echo "configure:15968: checking for $ac_func" >&5 |
698dcdb6 VZ |
15968 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15969 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15970 | else | |
15971 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 15972 | #line 15973 "configure" |
83307f33 VZ |
15973 | #include "confdefs.h" |
15974 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 15975 | which can conflict with char $ac_func(); below. */ |
83307f33 VZ |
15976 | #include <assert.h> |
15977 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15978 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15979 | builtin and then its argument prototype would still apply. */ |
15980 | char $ac_func(); | |
15981 | ||
15982 | int main() { | |
83307f33 VZ |
15983 | |
15984 | /* The GNU C library defines this for functions which it implements | |
15985 | to always fail with ENOSYS. Some functions are actually named | |
15986 | something starting with __ and the normal name is an alias. */ | |
15987 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15988 | choke me | |
15989 | #else | |
698dcdb6 | 15990 | $ac_func(); |
83307f33 VZ |
15991 | #endif |
15992 | ||
698dcdb6 | 15993 | ; return 0; } |
83307f33 | 15994 | EOF |
ab252f7b | 15995 | if { (eval echo configure:15996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15996 | rm -rf conftest* |
15997 | eval "ac_cv_func_$ac_func=yes" | |
15998 | else | |
15999 | echo "configure: failed program was:" >&5 | |
16000 | cat conftest.$ac_ext >&5 | |
16001 | rm -rf conftest* | |
16002 | eval "ac_cv_func_$ac_func=no" | |
16003 | fi | |
16004 | rm -f conftest* | |
16005 | fi | |
83307f33 | 16006 | |
698dcdb6 VZ |
16007 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16008 | echo "$ac_t""yes" 1>&6 | |
16009 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16010 | cat >> confdefs.h <<EOF | |
16011 | #define $ac_tr_func 1 | |
16012 | EOF | |
16013 | ||
16014 | else | |
16015 | echo "$ac_t""no" 1>&6 | |
83307f33 VZ |
16016 | fi |
16017 | done | |
16018 | ||
1e487827 | 16019 | |
698dcdb6 | 16020 | echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6 |
ab252f7b | 16021 | echo "configure:16022: checking for timezone variable in <time.h>" >&5 |
698dcdb6 VZ |
16022 | if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then |
16023 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16024 | else | |
16025 | ||
16026 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 16027 | #line 16028 "configure" |
360d6699 VZ |
16028 | #include "confdefs.h" |
16029 | ||
b4085ce6 | 16030 | #include <time.h> |
698dcdb6 VZ |
16031 | |
16032 | int main() { | |
360d6699 VZ |
16033 | |
16034 | int tz; | |
4f11a343 | 16035 | tz = timezone; |
698dcdb6 VZ |
16036 | |
16037 | ; return 0; } | |
16038 | EOF | |
ab252f7b | 16039 | if { (eval echo configure:16040: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
16040 | rm -rf conftest* |
16041 | ||
4f11a343 | 16042 | wx_cv_var_timezone=timezone |
698dcdb6 | 16043 | |
360d6699 | 16044 | else |
698dcdb6 VZ |
16045 | echo "configure: failed program was:" >&5 |
16046 | cat conftest.$ac_ext >&5 | |
16047 | rm -rf conftest* | |
16048 | ||
16049 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 16050 | #line 16051 "configure" |
360d6699 VZ |
16051 | #include "confdefs.h" |
16052 | ||
b4085ce6 | 16053 | #include <time.h> |
698dcdb6 VZ |
16054 | |
16055 | int main() { | |
360d6699 VZ |
16056 | |
16057 | int tz; | |
16058 | tz = _timezone; | |
698dcdb6 VZ |
16059 | |
16060 | ; return 0; } | |
16061 | EOF | |
ab252f7b | 16062 | if { (eval echo configure:16063: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
16063 | rm -rf conftest* |
16064 | ||
360d6699 | 16065 | wx_cv_var_timezone=_timezone |
698dcdb6 | 16066 | |
5357c8e8 | 16067 | else |
698dcdb6 VZ |
16068 | echo "configure: failed program was:" >&5 |
16069 | cat conftest.$ac_ext >&5 | |
16070 | rm -rf conftest* | |
16071 | ||
16072 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 16073 | #line 16074 "configure" |
5357c8e8 VZ |
16074 | #include "confdefs.h" |
16075 | ||
b4085ce6 | 16076 | #include <time.h> |
698dcdb6 VZ |
16077 | |
16078 | int main() { | |
5357c8e8 VZ |
16079 | |
16080 | int tz; | |
4f11a343 | 16081 | tz = __timezone; |
698dcdb6 VZ |
16082 | |
16083 | ; return 0; } | |
16084 | EOF | |
ab252f7b | 16085 | if { (eval echo configure:16086: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
16086 | rm -rf conftest* |
16087 | ||
4f11a343 | 16088 | wx_cv_var_timezone=__timezone |
698dcdb6 | 16089 | |
360d6699 | 16090 | else |
698dcdb6 VZ |
16091 | echo "configure: failed program was:" >&5 |
16092 | cat conftest.$ac_ext >&5 | |
16093 | rm -rf conftest* | |
16094 | { echo "configure: error: no timezone variable" 1>&2; exit 1; } | |
16095 | ||
360d6699 | 16096 | fi |
698dcdb6 VZ |
16097 | rm -f conftest* |
16098 | ||
16099 | ||
360d6699 | 16100 | fi |
698dcdb6 VZ |
16101 | rm -f conftest* |
16102 | ||
16103 | ||
6232543b | 16104 | fi |
698dcdb6 VZ |
16105 | rm -f conftest* |
16106 | ||
16107 | ||
1e487827 | 16108 | fi |
703e0a69 | 16109 | |
698dcdb6 VZ |
16110 | echo "$ac_t""$wx_cv_var_timezone" 1>&6 |
16111 | ||
16112 | cat >> confdefs.h <<EOF | |
360d6699 VZ |
16113 | #define WX_TIMEZONE $wx_cv_var_timezone |
16114 | EOF | |
16115 | ||
698dcdb6 VZ |
16116 | |
16117 | for ac_func in localtime | |
afc31813 | 16118 | do |
698dcdb6 | 16119 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
ab252f7b | 16120 | echo "configure:16121: checking for $ac_func" >&5 |
698dcdb6 VZ |
16121 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16122 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16123 | else | |
16124 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 16125 | #line 16126 "configure" |
10f2d63a | 16126 | #include "confdefs.h" |
afc31813 | 16127 | /* System header to define __stub macros and hopefully few prototypes, |
698dcdb6 | 16128 | which can conflict with char $ac_func(); below. */ |
afc31813 VZ |
16129 | #include <assert.h> |
16130 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16131 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16132 | builtin and then its argument prototype would still apply. */ |
16133 | char $ac_func(); | |
16134 | ||
16135 | int main() { | |
afc31813 VZ |
16136 | |
16137 | /* The GNU C library defines this for functions which it implements | |
16138 | to always fail with ENOSYS. Some functions are actually named | |
16139 | something starting with __ and the normal name is an alias. */ | |
16140 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16141 | choke me | |
16142 | #else | |
698dcdb6 | 16143 | $ac_func(); |
afc31813 VZ |
16144 | #endif |
16145 | ||
698dcdb6 | 16146 | ; return 0; } |
10f2d63a | 16147 | EOF |
ab252f7b | 16148 | if { (eval echo configure:16149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16149 | rm -rf conftest* |
16150 | eval "ac_cv_func_$ac_func=yes" | |
16151 | else | |
16152 | echo "configure: failed program was:" >&5 | |
16153 | cat conftest.$ac_ext >&5 | |
16154 | rm -rf conftest* | |
16155 | eval "ac_cv_func_$ac_func=no" | |
16156 | fi | |
16157 | rm -f conftest* | |
16158 | fi | |
afc31813 | 16159 | |
698dcdb6 VZ |
16160 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16161 | echo "$ac_t""yes" 1>&6 | |
16162 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16163 | cat >> confdefs.h <<EOF | |
16164 | #define $ac_tr_func 1 | |
16165 | EOF | |
16166 | ||
16167 | else | |
16168 | echo "$ac_t""no" 1>&6 | |
afc31813 VZ |
16169 | fi |
16170 | done | |
16171 | ||
1e487827 | 16172 | |
698dcdb6 VZ |
16173 | if test "$ac_cv_func_localtime" = "yes"; then |
16174 | echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 | |
ab252f7b | 16175 | echo "configure:16176: checking for tm_gmtoff in struct tm" >&5 |
698dcdb6 VZ |
16176 | if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then |
16177 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16178 | else | |
16179 | ||
16180 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 16181 | #line 16182 "configure" |
0470b1e6 VZ |
16182 | #include "confdefs.h" |
16183 | ||
b4085ce6 | 16184 | #include <time.h> |
698dcdb6 VZ |
16185 | |
16186 | int main() { | |
0470b1e6 VZ |
16187 | |
16188 | struct tm tm; | |
16189 | tm.tm_gmtoff++; | |
698dcdb6 VZ |
16190 | |
16191 | ; return 0; } | |
16192 | EOF | |
ab252f7b | 16193 | if { (eval echo configure:16194: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
16194 | rm -rf conftest* |
16195 | ||
f03a98d8 | 16196 | wx_cv_struct_tm_has_gmtoff=yes |
698dcdb6 | 16197 | |
0470b1e6 | 16198 | else |
698dcdb6 VZ |
16199 | echo "configure: failed program was:" >&5 |
16200 | cat conftest.$ac_ext >&5 | |
16201 | rm -rf conftest* | |
16202 | wx_cv_struct_tm_has_gmtoff=no | |
16203 | ||
0470b1e6 | 16204 | fi |
698dcdb6 VZ |
16205 | rm -f conftest* |
16206 | ||
1e487827 | 16207 | fi |
698dcdb6 VZ |
16208 | |
16209 | echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6 | |
6232543b VS |
16210 | fi |
16211 | ||
16212 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
698dcdb6 | 16213 | cat >> confdefs.h <<\EOF |
6232543b VS |
16214 | #define WX_GMTOFF_IN_TM 1 |
16215 | EOF | |
0470b1e6 | 16216 | |
3fcdd07b VZ |
16217 | fi |
16218 | ||
698dcdb6 | 16219 | for ac_func in gettimeofday ftime |
3fcdd07b | 16220 | do |
698dcdb6 | 16221 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
ab252f7b | 16222 | echo "configure:16223: checking for $ac_func" >&5 |
698dcdb6 VZ |
16223 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16224 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16225 | else | |
16226 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 16227 | #line 16228 "configure" |
3fcdd07b VZ |
16228 | #include "confdefs.h" |
16229 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16230 | which can conflict with char $ac_func(); below. */ |
3fcdd07b VZ |
16231 | #include <assert.h> |
16232 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16233 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16234 | builtin and then its argument prototype would still apply. */ |
16235 | char $ac_func(); | |
16236 | ||
16237 | int main() { | |
3fcdd07b VZ |
16238 | |
16239 | /* The GNU C library defines this for functions which it implements | |
16240 | to always fail with ENOSYS. Some functions are actually named | |
16241 | something starting with __ and the normal name is an alias. */ | |
16242 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16243 | choke me | |
16244 | #else | |
698dcdb6 | 16245 | $ac_func(); |
3fcdd07b VZ |
16246 | #endif |
16247 | ||
698dcdb6 VZ |
16248 | ; return 0; } |
16249 | EOF | |
ab252f7b | 16250 | if { (eval echo configure:16251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16251 | rm -rf conftest* |
16252 | eval "ac_cv_func_$ac_func=yes" | |
16253 | else | |
16254 | echo "configure: failed program was:" >&5 | |
16255 | cat conftest.$ac_ext >&5 | |
16256 | rm -rf conftest* | |
16257 | eval "ac_cv_func_$ac_func=no" | |
16258 | fi | |
16259 | rm -f conftest* | |
16260 | fi | |
16261 | ||
16262 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16263 | echo "$ac_t""yes" 1>&6 | |
16264 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16265 | cat >> confdefs.h <<EOF | |
16266 | #define $ac_tr_func 1 | |
3fcdd07b VZ |
16267 | EOF |
16268 | break | |
698dcdb6 VZ |
16269 | else |
16270 | echo "$ac_t""no" 1>&6 | |
3fcdd07b VZ |
16271 | fi |
16272 | done | |
16273 | ||
afc31813 | 16274 | |
698dcdb6 VZ |
16275 | if test "$ac_cv_func_gettimeofday" = "yes"; then |
16276 | echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6 | |
ab252f7b | 16277 | echo "configure:16278: checking whether gettimeofday takes two arguments" >&5 |
698dcdb6 VZ |
16278 | if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then |
16279 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16280 | else | |
16281 | ||
16282 | ||
16283 | ac_ext=C | |
16284 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 16285 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
16286 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16287 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16288 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 16289 | |
698dcdb6 VZ |
16290 | |
16291 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 16292 | #line 16293 "configure" |
10f2d63a | 16293 | #include "confdefs.h" |
afc31813 VZ |
16294 | |
16295 | #include <sys/time.h> | |
16296 | #include <unistd.h> | |
698dcdb6 VZ |
16297 | |
16298 | int main() { | |
afc31813 VZ |
16299 | |
16300 | struct timeval tv; | |
16301 | struct timezone tz; | |
16302 | gettimeofday(&tv, &tz); | |
698dcdb6 VZ |
16303 | |
16304 | ; return 0; } | |
16305 | EOF | |
ab252f7b | 16306 | if { (eval echo configure:16307: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 16307 | rm -rf conftest* |
afc31813 | 16308 | wx_cv_func_gettimeofday_has_2_args=yes |
10f2d63a | 16309 | else |
698dcdb6 VZ |
16310 | echo "configure: failed program was:" >&5 |
16311 | cat conftest.$ac_ext >&5 | |
16312 | rm -rf conftest* | |
16313 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 16314 | #line 16315 "configure" |
10f2d63a | 16315 | #include "confdefs.h" |
afc31813 VZ |
16316 | |
16317 | #include <sys/time.h> | |
16318 | #include <unistd.h> | |
698dcdb6 VZ |
16319 | |
16320 | int main() { | |
afc31813 VZ |
16321 | |
16322 | struct timeval tv; | |
16323 | gettimeofday(&tv); | |
698dcdb6 VZ |
16324 | |
16325 | ; return 0; } | |
16326 | EOF | |
ab252f7b | 16327 | if { (eval echo configure:16328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 16328 | rm -rf conftest* |
afc31813 | 16329 | wx_cv_func_gettimeofday_has_2_args=no |
10f2d63a | 16330 | else |
698dcdb6 VZ |
16331 | echo "configure: failed program was:" >&5 |
16332 | cat conftest.$ac_ext >&5 | |
16333 | rm -rf conftest* | |
16334 | wx_cv_func_gettimeofday_has_2_args=unknown | |
16335 | ||
10f2d63a | 16336 | fi |
698dcdb6 VZ |
16337 | rm -f conftest* |
16338 | ||
10f2d63a | 16339 | fi |
698dcdb6 | 16340 | rm -f conftest* |
afc31813 | 16341 | ac_ext=c |
698dcdb6 | 16342 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 16343 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
16344 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16345 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16346 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a | 16347 | |
698dcdb6 | 16348 | |
afc31813 | 16349 | fi |
698dcdb6 VZ |
16350 | |
16351 | echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6 | |
c63c7106 | 16352 | |
afc31813 | 16353 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then |
698dcdb6 | 16354 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
16355 | #define WX_GETTIMEOFDAY_NO_TZ 1 |
16356 | EOF | |
16357 | ||
16358 | fi | |
16359 | fi | |
16360 | ||
698dcdb6 | 16361 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
16362 | #define wxUSE_TIMEDATE 1 |
16363 | EOF | |
16364 | ||
16365 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
16366 | fi | |
16367 | ||
698dcdb6 | 16368 | |
b089607b VZ |
16369 | if test "$TOOLKIT" != "MSW"; then |
16370 | ||
afc31813 | 16371 | if test "$wxUSE_SOCKETS" = "yes"; then |
698dcdb6 | 16372 | echo $ac_n "checking for socket""... $ac_c" 1>&6 |
ab252f7b | 16373 | echo "configure:16374: checking for socket" >&5 |
698dcdb6 VZ |
16374 | if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
16375 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 16376 | else |
698dcdb6 | 16377 | cat > conftest.$ac_ext <<EOF |
ab252f7b | 16378 | #line 16379 "configure" |
c63c7106 VZ |
16379 | #include "confdefs.h" |
16380 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16381 | which can conflict with char socket(); below. */ |
c63c7106 VZ |
16382 | #include <assert.h> |
16383 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16384 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16385 | builtin and then its argument prototype would still apply. */ |
16386 | char socket(); | |
16387 | ||
16388 | int main() { | |
c63c7106 VZ |
16389 | |
16390 | /* The GNU C library defines this for functions which it implements | |
16391 | to always fail with ENOSYS. Some functions are actually named | |
16392 | something starting with __ and the normal name is an alias. */ | |
16393 | #if defined (__stub_socket) || defined (__stub___socket) | |
16394 | choke me | |
16395 | #else | |
698dcdb6 | 16396 | socket(); |
c63c7106 VZ |
16397 | #endif |
16398 | ||
698dcdb6 VZ |
16399 | ; return 0; } |
16400 | EOF | |
ab252f7b | 16401 | if { (eval echo configure:16402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16402 | rm -rf conftest* |
16403 | eval "ac_cv_func_socket=yes" | |
16404 | else | |
16405 | echo "configure: failed program was:" >&5 | |
16406 | cat conftest.$ac_ext >&5 | |
16407 | rm -rf conftest* | |
16408 | eval "ac_cv_func_socket=no" | |
16409 | fi | |
16410 | rm -f conftest* | |
16411 | fi | |
16412 | ||
16413 | if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
16414 | echo "$ac_t""yes" 1>&6 | |
c63c7106 VZ |
16415 | : |
16416 | else | |
698dcdb6 VZ |
16417 | echo "$ac_t""no" 1>&6 |
16418 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | |
ab252f7b | 16419 | echo "configure:16420: checking for socket in -lsocket" >&5 |
698dcdb6 VZ |
16420 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
16421 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16422 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 16423 | else |
698dcdb6 | 16424 | ac_save_LIBS="$LIBS" |
c63c7106 | 16425 | LIBS="-lsocket $LIBS" |
698dcdb6 | 16426 | cat > conftest.$ac_ext <<EOF |
ab252f7b | 16427 | #line 16428 "configure" |
c63c7106 VZ |
16428 | #include "confdefs.h" |
16429 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16430 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16431 | builtin and then its argument prototype would still apply. */ |
16432 | char socket(); | |
16433 | ||
16434 | int main() { | |
16435 | socket() | |
16436 | ; return 0; } | |
16437 | EOF | |
ab252f7b | 16438 | if { (eval echo configure:16439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16439 | rm -rf conftest* |
16440 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16441 | else | |
16442 | echo "configure: failed program was:" >&5 | |
16443 | cat conftest.$ac_ext >&5 | |
16444 | rm -rf conftest* | |
16445 | eval "ac_cv_lib_$ac_lib_var=no" | |
16446 | fi | |
16447 | rm -f conftest* | |
16448 | LIBS="$ac_save_LIBS" | |
16449 | ||
16450 | fi | |
16451 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16452 | echo "$ac_t""yes" 1>&6 | |
c63c7106 | 16453 | INET_LINK="$INET_LINK -lsocket" |
c63c7106 | 16454 | else |
698dcdb6 | 16455 | echo "$ac_t""no" 1>&6 |
afc31813 | 16456 | |
698dcdb6 | 16457 | echo "configure: warning: socket library not found - sockets will be disabled" 1>&2 |
afc31813 | 16458 | wxUSE_SOCKETS=no |
698dcdb6 VZ |
16459 | |
16460 | ||
10f2d63a VZ |
16461 | fi |
16462 | ||
698dcdb6 | 16463 | |
6232543b | 16464 | fi |
b089607b | 16465 | |
1e487827 | 16466 | fi |
afc31813 | 16467 | |
51a9faba | 16468 | |
698dcdb6 VZ |
16469 | if test "$wxUSE_SOCKETS" = "yes" ; then |
16470 | echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6 | |
ab252f7b | 16471 | echo "configure:16472: checking what is the type of the third argument of getsockname" >&5 |
698dcdb6 VZ |
16472 | if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then |
16473 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16474 | else | |
16475 | ||
16476 | ||
16477 | ac_ext=C | |
16478 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 16479 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
16480 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16481 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16482 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 16483 | |
698dcdb6 VZ |
16484 | |
16485 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 16486 | #line 16487 "configure" |
afc31813 | 16487 | #include "confdefs.h" |
51a9faba | 16488 | |
3ace2e6d | 16489 | #include <sys/types.h> |
51a9faba | 16490 | #include <sys/socket.h> |
698dcdb6 VZ |
16491 | |
16492 | int main() { | |
51a9faba VZ |
16493 | |
16494 | socklen_t len; | |
16495 | getsockname(0, 0, &len); | |
698dcdb6 VZ |
16496 | |
16497 | ; return 0; } | |
16498 | EOF | |
ab252f7b | 16499 | if { (eval echo configure:16500: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 16500 | rm -rf conftest* |
51a9faba | 16501 | wx_cv_type_getsockname3=socklen_t |
afc31813 | 16502 | else |
698dcdb6 VZ |
16503 | echo "configure: failed program was:" >&5 |
16504 | cat conftest.$ac_ext >&5 | |
16505 | rm -rf conftest* | |
16506 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 16507 | #line 16508 "configure" |
afc31813 | 16508 | #include "confdefs.h" |
51a9faba | 16509 | |
3ace2e6d | 16510 | #include <sys/types.h> |
51a9faba | 16511 | #include <sys/socket.h> |
698dcdb6 VZ |
16512 | |
16513 | int main() { | |
51a9faba VZ |
16514 | |
16515 | size_t len; | |
16516 | getsockname(0, 0, &len); | |
698dcdb6 VZ |
16517 | |
16518 | ; return 0; } | |
16519 | EOF | |
ab252f7b | 16520 | if { (eval echo configure:16521: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 16521 | rm -rf conftest* |
51a9faba | 16522 | wx_cv_type_getsockname3=size_t |
afc31813 | 16523 | else |
698dcdb6 VZ |
16524 | echo "configure: failed program was:" >&5 |
16525 | cat conftest.$ac_ext >&5 | |
16526 | rm -rf conftest* | |
16527 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 16528 | #line 16529 "configure" |
afc31813 | 16529 | #include "confdefs.h" |
51a9faba | 16530 | |
3ace2e6d | 16531 | #include <sys/types.h> |
51a9faba | 16532 | #include <sys/socket.h> |
698dcdb6 VZ |
16533 | |
16534 | int main() { | |
51a9faba VZ |
16535 | |
16536 | int len; | |
16537 | getsockname(0, 0, &len); | |
698dcdb6 VZ |
16538 | |
16539 | ; return 0; } | |
16540 | EOF | |
ab252f7b | 16541 | if { (eval echo configure:16542: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 16542 | rm -rf conftest* |
51a9faba | 16543 | wx_cv_type_getsockname3=int |
afc31813 | 16544 | else |
698dcdb6 VZ |
16545 | echo "configure: failed program was:" >&5 |
16546 | cat conftest.$ac_ext >&5 | |
16547 | rm -rf conftest* | |
16548 | wx_cv_type_getsockname3=unknown | |
16549 | ||
afc31813 | 16550 | fi |
698dcdb6 VZ |
16551 | rm -f conftest* |
16552 | ||
afc31813 | 16553 | fi |
698dcdb6 VZ |
16554 | rm -f conftest* |
16555 | ||
afc31813 | 16556 | fi |
698dcdb6 | 16557 | rm -f conftest* |
51a9faba VZ |
16558 | |
16559 | ac_ext=c | |
698dcdb6 | 16560 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
afc31813 | 16561 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
16562 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16563 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16564 | cross_compiling=$ac_cv_prog_cc_cross | |
afc31813 | 16565 | |
698dcdb6 | 16566 | |
51a9faba | 16567 | fi |
698dcdb6 VZ |
16568 | |
16569 | echo "$ac_t""$wx_cv_type_getsockname3" 1>&6 | |
51a9faba VZ |
16570 | |
16571 | if test "$wx_cv_type_getsockname3" = "unknown"; then | |
16572 | wxUSE_SOCKETS=no | |
698dcdb6 | 16573 | echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2 |
51a9faba | 16574 | else |
698dcdb6 | 16575 | cat >> confdefs.h <<EOF |
51a9faba VZ |
16576 | #define SOCKLEN_T $wx_cv_type_getsockname3 |
16577 | EOF | |
16578 | ||
16579 | fi | |
16580 | fi | |
afc31813 | 16581 | |
c521c494 RL |
16582 | fi |
16583 | ||
51a9faba | 16584 | if test "$wxUSE_SOCKETS" = "yes" ; then |
698dcdb6 | 16585 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
16586 | #define wxUSE_SOCKETS 1 |
16587 | EOF | |
16588 | ||
70f7a477 | 16589 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" |
afc31813 VZ |
16590 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol" |
16591 | fi | |
16592 | ||
698dcdb6 | 16593 | |
dc3d889d VZ |
16594 | if test "$wxUSE_GUI" = "yes"; then |
16595 | ||
b089607b VZ |
16596 | if test "$TOOLKIT" != "MSW"; then |
16597 | ||
ceded8b9 | 16598 | if test "$wxUSE_JOYSTICK" = "yes"; then |
698dcdb6 | 16599 | for ac_hdr in linux/joystick.h |
10f2d63a | 16600 | do |
698dcdb6 VZ |
16601 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
16602 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
ab252f7b | 16603 | echo "configure:16604: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
16604 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
16605 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16606 | else | |
16607 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 16608 | #line 16609 "configure" |
10f2d63a | 16609 | #include "confdefs.h" |
698dcdb6 VZ |
16610 | #include <$ac_hdr> |
16611 | EOF | |
16612 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
ab252f7b | 16613 | { (eval echo configure:16614: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
16614 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
16615 | if test -z "$ac_err"; then | |
16616 | rm -rf conftest* | |
16617 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 16618 | else |
698dcdb6 VZ |
16619 | echo "$ac_err" >&5 |
16620 | echo "configure: failed program was:" >&5 | |
10f2d63a | 16621 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
16622 | rm -rf conftest* |
16623 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 16624 | fi |
698dcdb6 | 16625 | rm -f conftest* |
10f2d63a | 16626 | fi |
698dcdb6 VZ |
16627 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
16628 | echo "$ac_t""yes" 1>&6 | |
16629 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
16630 | cat >> confdefs.h <<EOF | |
16631 | #define $ac_tr_hdr 1 | |
10f2d63a | 16632 | EOF |
698dcdb6 VZ |
16633 | |
16634 | else | |
16635 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
16636 | fi |
16637 | done | |
16638 | ||
b089607b | 16639 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then |
ceded8b9 | 16640 | wxUSE_JOYSTICK=no |
698dcdb6 | 16641 | echo "configure: warning: Joystick not supported by this system" 1>&2 |
b089607b VZ |
16642 | fi |
16643 | fi | |
16644 | ||
16645 | fi | |
16646 | ||
ceded8b9 | 16647 | if test "$wxUSE_JOYSTICK" = "yes"; then |
698dcdb6 | 16648 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16649 | #define wxUSE_JOYSTICK 1 |
16650 | EOF | |
16651 | ||
16652 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" | |
10f2d63a VZ |
16653 | fi |
16654 | ||
dc3d889d VZ |
16655 | fi |
16656 | ||
698dcdb6 | 16657 | |
b089607b VZ |
16658 | if test "$TOOLKIT" != "MSW"; then |
16659 | ||
10f2d63a VZ |
16660 | HAVE_DL_FUNCS=0 |
16661 | HAVE_SHL_FUNCS=0 | |
16662 | if test "$wxUSE_DYNLIB_CLASS" = "yes"; then | |
f11bdd03 | 16663 | if test "$USE_DARWIN" = 1; then |
b4085ce6 GD |
16664 | HAVE_DL_FUNCS=1 |
16665 | else | |
698dcdb6 | 16666 | for ac_func in dlopen |
10f2d63a | 16667 | do |
698dcdb6 | 16668 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
ab252f7b | 16669 | echo "configure:16670: checking for $ac_func" >&5 |
698dcdb6 VZ |
16670 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16671 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16672 | else | |
16673 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 16674 | #line 16675 "configure" |
10f2d63a VZ |
16675 | #include "confdefs.h" |
16676 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16677 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
16678 | #include <assert.h> |
16679 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16680 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16681 | builtin and then its argument prototype would still apply. */ |
16682 | char $ac_func(); | |
16683 | ||
16684 | int main() { | |
10f2d63a VZ |
16685 | |
16686 | /* The GNU C library defines this for functions which it implements | |
16687 | to always fail with ENOSYS. Some functions are actually named | |
16688 | something starting with __ and the normal name is an alias. */ | |
16689 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16690 | choke me | |
16691 | #else | |
698dcdb6 | 16692 | $ac_func(); |
10f2d63a VZ |
16693 | #endif |
16694 | ||
698dcdb6 VZ |
16695 | ; return 0; } |
16696 | EOF | |
ab252f7b | 16697 | if { (eval echo configure:16698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16698 | rm -rf conftest* |
16699 | eval "ac_cv_func_$ac_func=yes" | |
16700 | else | |
16701 | echo "configure: failed program was:" >&5 | |
16702 | cat conftest.$ac_ext >&5 | |
16703 | rm -rf conftest* | |
16704 | eval "ac_cv_func_$ac_func=no" | |
16705 | fi | |
16706 | rm -f conftest* | |
16707 | fi | |
16708 | ||
16709 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16710 | echo "$ac_t""yes" 1>&6 | |
16711 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16712 | cat >> confdefs.h <<EOF | |
16713 | #define $ac_tr_func 1 | |
16714 | EOF | |
16715 | ||
16716 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
16717 | #define HAVE_DLOPEN 1 |
16718 | EOF | |
16719 | ||
16720 | HAVE_DL_FUNCS=1 | |
698dcdb6 | 16721 | |
10f2d63a | 16722 | else |
698dcdb6 VZ |
16723 | echo "$ac_t""no" 1>&6 |
16724 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
ab252f7b | 16725 | echo "configure:16726: checking for dlopen in -ldl" >&5 |
698dcdb6 VZ |
16726 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
16727 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16728 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 16729 | else |
698dcdb6 | 16730 | ac_save_LIBS="$LIBS" |
10f2d63a | 16731 | LIBS="-ldl $LIBS" |
698dcdb6 | 16732 | cat > conftest.$ac_ext <<EOF |
ab252f7b | 16733 | #line 16734 "configure" |
10f2d63a VZ |
16734 | #include "confdefs.h" |
16735 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16736 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16737 | builtin and then its argument prototype would still apply. */ |
16738 | char dlopen(); | |
16739 | ||
16740 | int main() { | |
16741 | dlopen() | |
16742 | ; return 0; } | |
16743 | EOF | |
ab252f7b | 16744 | if { (eval echo configure:16745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16745 | rm -rf conftest* |
16746 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16747 | else | |
16748 | echo "configure: failed program was:" >&5 | |
16749 | cat conftest.$ac_ext >&5 | |
16750 | rm -rf conftest* | |
16751 | eval "ac_cv_lib_$ac_lib_var=no" | |
16752 | fi | |
16753 | rm -f conftest* | |
16754 | LIBS="$ac_save_LIBS" | |
16755 | ||
16756 | fi | |
16757 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16758 | echo "$ac_t""yes" 1>&6 | |
16759 | ||
16760 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
16761 | #define HAVE_DLOPEN 1 |
16762 | EOF | |
16763 | ||
16764 | HAVE_DL_FUNCS=1 | |
16765 | LIBS="$LIBS -ldl" | |
698dcdb6 | 16766 | |
10f2d63a | 16767 | else |
698dcdb6 | 16768 | echo "$ac_t""no" 1>&6 |
10f2d63a | 16769 | |
698dcdb6 | 16770 | for ac_func in shl_load |
10f2d63a | 16771 | do |
698dcdb6 | 16772 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
ab252f7b | 16773 | echo "configure:16774: checking for $ac_func" >&5 |
698dcdb6 VZ |
16774 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16775 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16776 | else | |
16777 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 16778 | #line 16779 "configure" |
10f2d63a VZ |
16779 | #include "confdefs.h" |
16780 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16781 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
16782 | #include <assert.h> |
16783 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16784 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16785 | builtin and then its argument prototype would still apply. */ |
16786 | char $ac_func(); | |
16787 | ||
16788 | int main() { | |
10f2d63a VZ |
16789 | |
16790 | /* The GNU C library defines this for functions which it implements | |
16791 | to always fail with ENOSYS. Some functions are actually named | |
16792 | something starting with __ and the normal name is an alias. */ | |
16793 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16794 | choke me | |
16795 | #else | |
698dcdb6 | 16796 | $ac_func(); |
10f2d63a VZ |
16797 | #endif |
16798 | ||
698dcdb6 VZ |
16799 | ; return 0; } |
16800 | EOF | |
ab252f7b | 16801 | if { (eval echo configure:16802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16802 | rm -rf conftest* |
16803 | eval "ac_cv_func_$ac_func=yes" | |
16804 | else | |
16805 | echo "configure: failed program was:" >&5 | |
16806 | cat conftest.$ac_ext >&5 | |
16807 | rm -rf conftest* | |
16808 | eval "ac_cv_func_$ac_func=no" | |
16809 | fi | |
16810 | rm -f conftest* | |
16811 | fi | |
16812 | ||
16813 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16814 | echo "$ac_t""yes" 1>&6 | |
16815 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16816 | cat >> confdefs.h <<EOF | |
16817 | #define $ac_tr_func 1 | |
16818 | EOF | |
16819 | ||
16820 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
16821 | #define HAVE_SHL_LOAD 1 |
16822 | EOF | |
16823 | ||
16824 | HAVE_SHL_FUNCS=1 | |
698dcdb6 | 16825 | |
10f2d63a | 16826 | else |
698dcdb6 VZ |
16827 | echo "$ac_t""no" 1>&6 |
16828 | echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6 | |
ab252f7b | 16829 | echo "configure:16830: checking for dld in -lshl_load" >&5 |
698dcdb6 VZ |
16830 | ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'` |
16831 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16832 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 16833 | else |
698dcdb6 | 16834 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 16835 | LIBS="-lshl_load $LIBS" |
698dcdb6 | 16836 | cat > conftest.$ac_ext <<EOF |
ab252f7b | 16837 | #line 16838 "configure" |
f6bcfd97 BP |
16838 | #include "confdefs.h" |
16839 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16840 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16841 | builtin and then its argument prototype would still apply. */ |
16842 | char dld(); | |
16843 | ||
16844 | int main() { | |
16845 | dld() | |
16846 | ; return 0; } | |
16847 | EOF | |
ab252f7b | 16848 | if { (eval echo configure:16849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16849 | rm -rf conftest* |
16850 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16851 | else | |
16852 | echo "configure: failed program was:" >&5 | |
16853 | cat conftest.$ac_ext >&5 | |
16854 | rm -rf conftest* | |
16855 | eval "ac_cv_lib_$ac_lib_var=no" | |
16856 | fi | |
16857 | rm -f conftest* | |
16858 | LIBS="$ac_save_LIBS" | |
f6bcfd97 | 16859 | |
698dcdb6 VZ |
16860 | fi |
16861 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16862 | echo "$ac_t""yes" 1>&6 | |
16863 | ||
f6bcfd97 BP |
16864 | HAVE_SHL_FUNCS=1 |
16865 | LIBS="$LIBS -ldld" | |
698dcdb6 VZ |
16866 | |
16867 | else | |
16868 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
16869 | fi |
16870 | ||
698dcdb6 | 16871 | |
10f2d63a VZ |
16872 | fi |
16873 | done | |
16874 | ||
698dcdb6 | 16875 | |
10f2d63a VZ |
16876 | fi |
16877 | ||
698dcdb6 | 16878 | |
10f2d63a VZ |
16879 | fi |
16880 | done | |
16881 | ||
1e487827 | 16882 | |
698dcdb6 VZ |
16883 | if test "$HAVE_DL_FUNCS" = 1; then |
16884 | for ac_func in dlerror | |
f6bcfd97 | 16885 | do |
698dcdb6 | 16886 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
ab252f7b | 16887 | echo "configure:16888: checking for $ac_func" >&5 |
698dcdb6 VZ |
16888 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16889 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16890 | else | |
16891 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 16892 | #line 16893 "configure" |
f6bcfd97 BP |
16893 | #include "confdefs.h" |
16894 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16895 | which can conflict with char $ac_func(); below. */ |
f6bcfd97 BP |
16896 | #include <assert.h> |
16897 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16898 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16899 | builtin and then its argument prototype would still apply. */ |
16900 | char $ac_func(); | |
16901 | ||
16902 | int main() { | |
f6bcfd97 BP |
16903 | |
16904 | /* The GNU C library defines this for functions which it implements | |
16905 | to always fail with ENOSYS. Some functions are actually named | |
16906 | something starting with __ and the normal name is an alias. */ | |
16907 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16908 | choke me | |
16909 | #else | |
698dcdb6 | 16910 | $ac_func(); |
f6bcfd97 BP |
16911 | #endif |
16912 | ||
698dcdb6 VZ |
16913 | ; return 0; } |
16914 | EOF | |
ab252f7b | 16915 | if { (eval echo configure:16916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16916 | rm -rf conftest* |
16917 | eval "ac_cv_func_$ac_func=yes" | |
16918 | else | |
16919 | echo "configure: failed program was:" >&5 | |
16920 | cat conftest.$ac_ext >&5 | |
16921 | rm -rf conftest* | |
16922 | eval "ac_cv_func_$ac_func=no" | |
16923 | fi | |
16924 | rm -f conftest* | |
16925 | fi | |
16926 | ||
16927 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16928 | echo "$ac_t""yes" 1>&6 | |
16929 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16930 | cat >> confdefs.h <<EOF | |
16931 | #define $ac_tr_func 1 | |
16932 | EOF | |
16933 | cat >> confdefs.h <<\EOF | |
f6bcfd97 BP |
16934 | #define HAVE_DLERROR 1 |
16935 | EOF | |
16936 | ||
16937 | else | |
698dcdb6 VZ |
16938 | echo "$ac_t""no" 1>&6 |
16939 | echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6 | |
ab252f7b | 16940 | echo "configure:16941: checking for dlerror in -ldl" >&5 |
698dcdb6 VZ |
16941 | ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'` |
16942 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16943 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 16944 | else |
698dcdb6 | 16945 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 16946 | LIBS="-ldl $LIBS" |
698dcdb6 | 16947 | cat > conftest.$ac_ext <<EOF |
ab252f7b | 16948 | #line 16949 "configure" |
f6bcfd97 BP |
16949 | #include "confdefs.h" |
16950 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16951 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16952 | builtin and then its argument prototype would still apply. */ |
16953 | char dlerror(); | |
16954 | ||
16955 | int main() { | |
16956 | dlerror() | |
16957 | ; return 0; } | |
16958 | EOF | |
ab252f7b | 16959 | if { (eval echo configure:16960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16960 | rm -rf conftest* |
16961 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16962 | else | |
16963 | echo "configure: failed program was:" >&5 | |
16964 | cat conftest.$ac_ext >&5 | |
16965 | rm -rf conftest* | |
16966 | eval "ac_cv_lib_$ac_lib_var=no" | |
16967 | fi | |
16968 | rm -f conftest* | |
16969 | LIBS="$ac_save_LIBS" | |
16970 | ||
16971 | fi | |
16972 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16973 | echo "$ac_t""yes" 1>&6 | |
16974 | cat >> confdefs.h <<\EOF | |
f6bcfd97 BP |
16975 | #define HAVE_DLERROR 1 |
16976 | EOF | |
16977 | ||
698dcdb6 VZ |
16978 | else |
16979 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
16980 | fi |
16981 | ||
16982 | fi | |
16983 | done | |
16984 | ||
16985 | fi | |
b4085ce6 | 16986 | fi |
f6bcfd97 | 16987 | |
10f2d63a VZ |
16988 | if test "$HAVE_DL_FUNCS" = 0; then |
16989 | if test "$HAVE_SHL_FUNCS" = 0; then | |
16990 | if test "$USE_UNIX" = 1; then | |
698dcdb6 | 16991 | echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2 |
10f2d63a VZ |
16992 | wxUSE_DYNLIB_CLASS=no |
16993 | else | |
698dcdb6 | 16994 | echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2 |
10f2d63a VZ |
16995 | fi |
16996 | fi | |
16997 | fi | |
16998 | fi | |
16999 | ||
b089607b VZ |
17000 | fi |
17001 | ||
10f2d63a | 17002 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then |
698dcdb6 | 17003 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17004 | #define wxUSE_DYNLIB_CLASS 1 |
17005 | EOF | |
17006 | ||
b12915c1 VZ |
17007 | else |
17008 | wxUSE_ODBC=no | |
17009 | wxUSE_SERIAL=no | |
10f2d63a VZ |
17010 | fi |
17011 | ||
698dcdb6 | 17012 | |
1e6feb95 VZ |
17013 | if test "$wxUSE_FONTMAP" = "yes" ; then |
17014 | cat >> confdefs.h <<\EOF | |
17015 | #define wxUSE_FONTMAP 1 | |
17016 | EOF | |
17017 | ||
17018 | fi | |
17019 | ||
10f2d63a | 17020 | if test "$wxUSE_UNICODE" = "yes" ; then |
698dcdb6 | 17021 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17022 | #define wxUSE_UNICODE 1 |
17023 | EOF | |
17024 | ||
17025 | fi | |
17026 | ||
17027 | if test "$wxUSE_WCSRTOMBS" = "yes" ; then | |
698dcdb6 | 17028 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17029 | #define wxUSE_WCSRTOMBS 1 |
17030 | EOF | |
17031 | ||
17032 | fi | |
17033 | ||
17034 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then | |
698dcdb6 | 17035 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17036 | #define wxUSE_EXPERIMENTAL_PRINTF 1 |
17037 | EOF | |
17038 | ||
17039 | fi | |
17040 | ||
698dcdb6 | 17041 | |
b12915c1 | 17042 | if test "$wxUSE_SERIAL" = "yes" ; then |
698dcdb6 | 17043 | cat >> confdefs.h <<\EOF |
b12915c1 VZ |
17044 | #define wxUSE_SERIAL 1 |
17045 | EOF | |
17046 | ||
17047 | fi | |
17048 | ||
698dcdb6 | 17049 | |
10f2d63a VZ |
17050 | IODBC_C_SRC="" |
17051 | if test "$wxUSE_ODBC" = "yes" ; then | |
698dcdb6 | 17052 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17053 | #define wxUSE_ODBC 1 |
17054 | EOF | |
17055 | ||
17056 | WXODBCFLAG="-D_IODBC_" | |
17057 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
10f2d63a VZ |
17058 | fi |
17059 | ||
698dcdb6 | 17060 | |
10f2d63a | 17061 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then |
698dcdb6 | 17062 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17063 | #define wxUSE_POSTSCRIPT 1 |
17064 | EOF | |
17065 | ||
17066 | fi | |
17067 | ||
698dcdb6 | 17068 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17069 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 |
17070 | EOF | |
17071 | ||
698dcdb6 VZ |
17072 | |
17073 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
17074 | #define wxUSE_NORMALIZED_PS_FONTS 1 |
17075 | EOF | |
17076 | ||
698dcdb6 VZ |
17077 | |
17078 | ||
10f2d63a | 17079 | if test "$wxUSE_CONSTRAINTS" = "yes"; then |
698dcdb6 | 17080 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17081 | #define wxUSE_CONSTRAINTS 1 |
17082 | EOF | |
17083 | ||
17084 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
17085 | fi | |
17086 | ||
17087 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
698dcdb6 | 17088 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17089 | #define wxUSE_MDI_ARCHITECTURE 1 |
17090 | EOF | |
17091 | ||
17092 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" | |
17093 | fi | |
17094 | ||
17095 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
698dcdb6 | 17096 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17097 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 |
17098 | EOF | |
17099 | ||
17100 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
17101 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
17102 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
17103 | fi | |
17104 | fi | |
17105 | ||
17106 | if test "$wxUSE_HELP" = "yes"; then | |
698dcdb6 | 17107 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17108 | #define wxUSE_HELP 1 |
17109 | EOF | |
17110 | ||
17111 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
3379ed37 | 17112 | |
3e44f09d | 17113 | if test "$USE_WIN32" = 1; then |
031d8228 | 17114 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then |
29fd3c0c VS |
17115 | ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'` |
17116 | echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6 | |
ab252f7b | 17117 | echo "configure:17118: checking for htmlhelp.h" >&5 |
29fd3c0c VS |
17118 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
17119 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17120 | else | |
17121 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 17122 | #line 17123 "configure" |
29fd3c0c VS |
17123 | #include "confdefs.h" |
17124 | #include <htmlhelp.h> | |
17125 | EOF | |
17126 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
ab252f7b | 17127 | { (eval echo configure:17128: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
29fd3c0c VS |
17128 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
17129 | if test -z "$ac_err"; then | |
17130 | rm -rf conftest* | |
17131 | eval "ac_cv_header_$ac_safe=yes" | |
17132 | else | |
17133 | echo "$ac_err" >&5 | |
17134 | echo "configure: failed program was:" >&5 | |
17135 | cat conftest.$ac_ext >&5 | |
17136 | rm -rf conftest* | |
17137 | eval "ac_cv_header_$ac_safe=no" | |
17138 | fi | |
17139 | rm -f conftest* | |
17140 | fi | |
17141 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
17142 | echo "$ac_t""yes" 1>&6 | |
17143 | ||
17144 | cat >> confdefs.h <<\EOF | |
17145 | #define wxUSE_MS_HTML_HELP 1 | |
17146 | EOF | |
17147 | ||
17148 | ||
17149 | else | |
17150 | echo "$ac_t""no" 1>&6 | |
17151 | ||
17152 | echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h so it won't be compiled without it" 1>&2 | |
17153 | wxUSE_MS_HTML_HELP=no | |
17154 | ||
17155 | fi | |
17156 | ||
3e44f09d | 17157 | fi |
3379ed37 | 17158 | fi |
031d8228 VS |
17159 | |
17160 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
17161 | if test "$wxUSE_HTML" = "yes"; then | |
17162 | cat >> confdefs.h <<\EOF | |
17163 | #define wxUSE_WXHTML_HELP 1 | |
17164 | EOF | |
17165 | ||
17166 | else | |
17167 | echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2 | |
17168 | wxUSE_WXHTML_HELP=no | |
17169 | fi | |
17170 | fi | |
10f2d63a VZ |
17171 | fi |
17172 | ||
17173 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
17174 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
698dcdb6 | 17175 | echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2 |
10f2d63a | 17176 | else |
698dcdb6 | 17177 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17178 | #define wxUSE_PRINTING_ARCHITECTURE 1 |
17179 | EOF | |
17180 | ||
17181 | fi | |
17182 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
17183 | fi | |
17184 | ||
17185 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
698dcdb6 | 17186 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17187 | #define wxUSE_PROLOGIO 1 |
17188 | EOF | |
17189 | ||
17190 | fi | |
17191 | ||
17192 | if test "$wxUSE_RESOURCES" = "yes" ; then | |
3379ed37 | 17193 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17194 | #define wxUSE_RESOURCES 1 |
17195 | EOF | |
17196 | ||
3379ed37 | 17197 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource" |
10f2d63a VZ |
17198 | fi |
17199 | ||
17200 | if test "$wxUSE_X_RESOURCES" = "yes"; then | |
698dcdb6 | 17201 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17202 | #define wxUSE_X_RESOURCES 1 |
17203 | EOF | |
17204 | ||
17205 | fi | |
17206 | ||
698dcdb6 | 17207 | |
10f2d63a | 17208 | if test "$wxUSE_IPC" = "yes"; then |
eb4efbdc | 17209 | if test "$wxUSE_SOCKETS" != "yes"; then |
698dcdb6 | 17210 | echo "configure: warning: wxWindows IPC classes require sockets" 1>&2 |
eb4efbdc VZ |
17211 | fi |
17212 | ||
698dcdb6 | 17213 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17214 | #define wxUSE_IPC 1 |
17215 | EOF | |
17216 | ||
17217 | fi | |
17218 | ||
17219 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
698dcdb6 | 17220 | cat >> confdefs.h <<\EOF |
10f2d63a | 17221 | #define wxUSE_CLIPBOARD 1 |
1e6feb95 VZ |
17222 | EOF |
17223 | ||
17224 | cat >> confdefs.h <<\EOF | |
17225 | #define wxUSE_DATAOBJ 1 | |
10f2d63a VZ |
17226 | EOF |
17227 | ||
17228 | fi | |
17229 | ||
17230 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
17231 | if test "$wxUSE_GTK" = 1; then | |
17232 | if test "$WXGTK12" != 1; then | |
698dcdb6 | 17233 | echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2 |
10f2d63a VZ |
17234 | wxUSE_DRAG_AND_DROP=no |
17235 | fi | |
17236 | fi | |
17237 | ||
17238 | if test "$wxUSE_MOTIF" = 1; then | |
698dcdb6 | 17239 | echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2 |
10f2d63a VZ |
17240 | wxUSE_DRAG_AND_DROP=no |
17241 | fi | |
17242 | ||
2c6025bc | 17243 | if test "$wxUSE_MAC" = 1; then |
698dcdb6 | 17244 | echo "configure: warning: Drag and drop is not yet supported under Mac OS X" 1>&2 |
2c6025bc GD |
17245 | wxUSE_DRAG_AND_DROP=no |
17246 | fi | |
17247 | ||
10f2d63a | 17248 | if test "$USE_WIN32" = 1; then |
698dcdb6 VZ |
17249 | |
17250 | for ac_hdr in ole2.h | |
10f2d63a | 17251 | do |
698dcdb6 VZ |
17252 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
17253 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
ab252f7b | 17254 | echo "configure:17255: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
17255 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
17256 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17257 | else | |
17258 | cat > conftest.$ac_ext <<EOF | |
ab252f7b | 17259 | #line 17260 "configure" |
10f2d63a | 17260 | #include "confdefs.h" |
698dcdb6 VZ |
17261 | #include <$ac_hdr> |
17262 | EOF | |
17263 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
ab252f7b | 17264 | { (eval echo configure:17265: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
17265 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
17266 | if test -z "$ac_err"; then | |
17267 | rm -rf conftest* | |
17268 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 17269 | else |
698dcdb6 VZ |
17270 | echo "$ac_err" >&5 |
17271 | echo "configure: failed program was:" >&5 | |
10f2d63a | 17272 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
17273 | rm -rf conftest* |
17274 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 17275 | fi |
698dcdb6 | 17276 | rm -f conftest* |
10f2d63a | 17277 | fi |
698dcdb6 VZ |
17278 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
17279 | echo "$ac_t""yes" 1>&6 | |
17280 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
17281 | cat >> confdefs.h <<EOF | |
17282 | #define $ac_tr_hdr 1 | |
10f2d63a | 17283 | EOF |
698dcdb6 VZ |
17284 | |
17285 | else | |
17286 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
17287 | fi |
17288 | done | |
17289 | ||
698dcdb6 | 17290 | |
57fe5ed0 | 17291 | if test "$ac_cv_header_ole2_h" = "yes" ; then |
c521c494 | 17292 | if test "$GCC" = yes ; then |
b64f0a5f RL |
17293 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" |
17294 | ALL_DEPFILES="$ALL_DEPFILES \$(OLEDEPS)" | |
c521c494 | 17295 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" |
18dbb1f6 | 17296 | LIBS="$LIBS -lrpcrt4 -loleaut32 -lole32 -luuid" |
4f11a343 VS |
17297 | cat >> confdefs.h <<\EOF |
17298 | #define wxUSE_OLE 1 | |
17299 | EOF | |
17300 | ||
b64f0a5f RL |
17301 | |
17302 | if test "$wxUSE_METAFILE" = "yes"; then | |
698dcdb6 | 17303 | cat >> confdefs.h <<\EOF |
b64f0a5f RL |
17304 | #define wxUSE_METAFILE 1 |
17305 | EOF | |
17306 | ||
698dcdb6 | 17307 | cat >> confdefs.h <<\EOF |
b64f0a5f RL |
17308 | #define wxUSE_ENH_METAFILE 1 |
17309 | EOF | |
17310 | ||
17311 | fi | |
c521c494 RL |
17312 | fi |
17313 | else | |
698dcdb6 | 17314 | echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2 |
10f2d63a VZ |
17315 | wxUSE_DRAG_AND_DROP=no |
17316 | fi | |
17317 | fi | |
17318 | ||
17319 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
698dcdb6 | 17320 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17321 | #define wxUSE_DRAG_AND_DROP 1 |
17322 | EOF | |
17323 | ||
17324 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
17325 | fi | |
17326 | ||
17327 | fi | |
17328 | ||
17329 | if test "$wxUSE_SPLINES" = "yes" ; then | |
698dcdb6 | 17330 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17331 | #define wxUSE_SPLINES 1 |
17332 | EOF | |
17333 | ||
17334 | fi | |
17335 | ||
698dcdb6 | 17336 | |
1e6feb95 VZ |
17337 | USES_CONTROLS=0 |
17338 | if test "$wxUSE_CONTROLS" = "yes"; then | |
17339 | USES_CONTROLS=1 | |
17340 | fi | |
17341 | ||
10f2d63a | 17342 | if test "$wxUSE_ACCEL" = "yes"; then |
698dcdb6 | 17343 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17344 | #define wxUSE_ACCEL 1 |
17345 | EOF | |
17346 | ||
1e6feb95 VZ |
17347 | USES_CONTROLS=1 |
17348 | fi | |
17349 | ||
17350 | if test "$wxUSE_BUTTON" = "yes"; then | |
17351 | cat >> confdefs.h <<\EOF | |
17352 | #define wxUSE_BUTTON 1 | |
17353 | EOF | |
17354 | ||
17355 | USES_CONTROLS=1 | |
17356 | fi | |
17357 | ||
17358 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
17359 | cat >> confdefs.h <<\EOF | |
17360 | #define wxUSE_BMPBUTTON 1 | |
17361 | EOF | |
17362 | ||
17363 | USES_CONTROLS=1 | |
17364 | fi | |
17365 | ||
17366 | if test "$wxUSE_CALCTRL" = "yes"; then | |
17367 | cat >> confdefs.h <<\EOF | |
17368 | #define wxUSE_CALENDARCTRL 1 | |
17369 | EOF | |
17370 | ||
17371 | USES_CONTROLS=1 | |
17372 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
10f2d63a VZ |
17373 | fi |
17374 | ||
17375 | if test "$wxUSE_CARET" = "yes"; then | |
698dcdb6 | 17376 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17377 | #define wxUSE_CARET 1 |
17378 | EOF | |
17379 | ||
1e6feb95 | 17380 | USES_CONTROLS=1 |
10f2d63a VZ |
17381 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" |
17382 | fi | |
17383 | ||
17384 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
698dcdb6 | 17385 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17386 | #define wxUSE_COMBOBOX 1 |
17387 | EOF | |
17388 | ||
1e6feb95 | 17389 | USES_CONTROLS=1 |
10f2d63a VZ |
17390 | fi |
17391 | ||
17392 | if test "$wxUSE_CHOICE" = "yes"; then | |
698dcdb6 | 17393 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17394 | #define wxUSE_CHOICE 1 |
17395 | EOF | |
17396 | ||
1e6feb95 | 17397 | USES_CONTROLS=1 |
10f2d63a VZ |
17398 | fi |
17399 | ||
17400 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
698dcdb6 | 17401 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17402 | #define wxUSE_CHECKBOX 1 |
17403 | EOF | |
17404 | ||
1e6feb95 | 17405 | USES_CONTROLS=1 |
10f2d63a VZ |
17406 | fi |
17407 | ||
17408 | if test "$wxUSE_CHECKLST" = "yes"; then | |
698dcdb6 | 17409 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17410 | #define wxUSE_CHECKLISTBOX 1 |
17411 | EOF | |
17412 | ||
1e6feb95 | 17413 | USES_CONTROLS=1 |
10f2d63a VZ |
17414 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" |
17415 | fi | |
17416 | ||
17417 | if test "$wxUSE_GAUGE" = "yes"; then | |
698dcdb6 | 17418 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17419 | #define wxUSE_GAUGE 1 |
17420 | EOF | |
17421 | ||
1e6feb95 | 17422 | USES_CONTROLS=1 |
10f2d63a VZ |
17423 | fi |
17424 | ||
d6a55c4b VZ |
17425 | if test "$wxUSE_NEW_GRID" = "yes"; then |
17426 | wxUSE_GRID="yes" | |
698dcdb6 | 17427 | cat >> confdefs.h <<\EOF |
d6a55c4b | 17428 | #define wxUSE_NEW_GRID 1 |
10f2d63a VZ |
17429 | EOF |
17430 | ||
1e6feb95 | 17431 | USES_CONTROLS=1 |
d6a55c4b | 17432 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid" |
10f2d63a VZ |
17433 | fi |
17434 | ||
d6a55c4b | 17435 | if test "$wxUSE_GRID" = "yes"; then |
698dcdb6 | 17436 | cat >> confdefs.h <<\EOF |
d6a55c4b | 17437 | #define wxUSE_GRID 1 |
10f2d63a VZ |
17438 | EOF |
17439 | ||
1e6feb95 | 17440 | USES_CONTROLS=1 |
d6a55c4b | 17441 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" |
10f2d63a VZ |
17442 | fi |
17443 | ||
17444 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 17445 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17446 | #define wxUSE_IMAGLIST 1 |
17447 | EOF | |
17448 | ||
17449 | fi | |
17450 | ||
17451 | if test "$wxUSE_LISTBOX" = "yes"; then | |
698dcdb6 | 17452 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17453 | #define wxUSE_LISTBOX 1 |
17454 | EOF | |
17455 | ||
1e6feb95 | 17456 | USES_CONTROLS=1 |
10f2d63a VZ |
17457 | fi |
17458 | ||
17459 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
17460 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 17461 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17462 | #define wxUSE_LISTCTRL 1 |
17463 | EOF | |
17464 | ||
1e6feb95 | 17465 | USES_CONTROLS=1 |
10f2d63a VZ |
17466 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" |
17467 | else | |
698dcdb6 | 17468 | echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
17469 | fi |
17470 | fi | |
17471 | ||
17472 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
698dcdb6 | 17473 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17474 | #define wxUSE_NOTEBOOK 1 |
17475 | EOF | |
17476 | ||
1e6feb95 | 17477 | USES_CONTROLS=1 |
10f2d63a VZ |
17478 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" |
17479 | fi | |
17480 | ||
24176f2c GD |
17481 | if test "$wxUSE_PROPSHEET" = "yes"; then |
17482 | cat >> confdefs.h <<\EOF | |
17483 | #define wxUSE_PROPSHEET 1 | |
17484 | EOF | |
17485 | ||
17486 | USES_CONTROLS=1 | |
17487 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist" | |
17488 | fi | |
17489 | ||
10f2d63a | 17490 | if test "$wxUSE_RADIOBOX" = "yes"; then |
698dcdb6 | 17491 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17492 | #define wxUSE_RADIOBOX 1 |
17493 | EOF | |
17494 | ||
1e6feb95 | 17495 | USES_CONTROLS=1 |
10f2d63a VZ |
17496 | fi |
17497 | ||
17498 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
698dcdb6 | 17499 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17500 | #define wxUSE_RADIOBTN 1 |
17501 | EOF | |
17502 | ||
1e6feb95 | 17503 | USES_CONTROLS=1 |
10f2d63a VZ |
17504 | fi |
17505 | ||
17506 | if test "$wxUSE_SASH" = "yes"; then | |
698dcdb6 | 17507 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17508 | #define wxUSE_SASH 1 |
17509 | EOF | |
17510 | ||
17511 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
17512 | fi | |
17513 | ||
17514 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
698dcdb6 | 17515 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17516 | #define wxUSE_SCROLLBAR 1 |
17517 | EOF | |
17518 | ||
1e6feb95 | 17519 | USES_CONTROLS=1 |
741a9306 | 17520 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
17521 | fi |
17522 | ||
17523 | if test "$wxUSE_SLIDER" = "yes"; then | |
698dcdb6 | 17524 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17525 | #define wxUSE_SLIDER 1 |
17526 | EOF | |
17527 | ||
1e6feb95 | 17528 | USES_CONTROLS=1 |
10f2d63a VZ |
17529 | fi |
17530 | ||
17531 | if test "$wxUSE_SPINBTN" = "yes"; then | |
698dcdb6 | 17532 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17533 | #define wxUSE_SPINBTN 1 |
17534 | EOF | |
17535 | ||
1e6feb95 | 17536 | USES_CONTROLS=1 |
10f2d63a VZ |
17537 | fi |
17538 | ||
56cfaa52 | 17539 | if test "$wxUSE_SPINCTRL" = "yes"; then |
698dcdb6 | 17540 | cat >> confdefs.h <<\EOF |
56cfaa52 RR |
17541 | #define wxUSE_SPINCTRL 1 |
17542 | EOF | |
17543 | ||
1e6feb95 | 17544 | USES_CONTROLS=1 |
56cfaa52 RR |
17545 | fi |
17546 | ||
10f2d63a | 17547 | if test "$wxUSE_SPLITTER" = "yes"; then |
698dcdb6 | 17548 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17549 | #define wxUSE_SPLITTER 1 |
17550 | EOF | |
17551 | ||
17552 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
17553 | fi | |
17554 | ||
17555 | if test "$wxUSE_STATBMP" = "yes"; then | |
698dcdb6 | 17556 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17557 | #define wxUSE_STATBMP 1 |
17558 | EOF | |
17559 | ||
1e6feb95 | 17560 | USES_CONTROLS=1 |
10f2d63a VZ |
17561 | fi |
17562 | ||
17563 | if test "$wxUSE_STATBOX" = "yes"; then | |
698dcdb6 | 17564 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17565 | #define wxUSE_STATBOX 1 |
17566 | EOF | |
17567 | ||
1e6feb95 VZ |
17568 | USES_CONTROLS=1 |
17569 | fi | |
17570 | ||
17571 | if test "$wxUSE_STATTEXT" = "yes"; then | |
17572 | cat >> confdefs.h <<\EOF | |
17573 | #define wxUSE_STATTEXT 1 | |
17574 | EOF | |
17575 | ||
17576 | USES_CONTROLS=1 | |
10f2d63a VZ |
17577 | fi |
17578 | ||
17579 | if test "$wxUSE_STATLINE" = "yes"; then | |
17580 | if test "$wxUSE_WINE" = 1 ; then | |
698dcdb6 | 17581 | echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2 |
10f2d63a | 17582 | else |
698dcdb6 | 17583 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17584 | #define wxUSE_STATLINE 1 |
17585 | EOF | |
17586 | ||
1e6feb95 | 17587 | USES_CONTROLS=1 |
10f2d63a VZ |
17588 | fi |
17589 | fi | |
17590 | ||
17591 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
698dcdb6 | 17592 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17593 | #define wxUSE_STATUSBAR 1 |
17594 | EOF | |
17595 | ||
1e6feb95 | 17596 | USES_CONTROLS=1 |
698dcdb6 | 17597 | |
2286341c | 17598 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" |
10f2d63a VZ |
17599 | fi |
17600 | ||
17601 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
698dcdb6 | 17602 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17603 | #define wxUSE_TAB_DIALOG 1 |
17604 | EOF | |
17605 | ||
17606 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
17607 | fi | |
17608 | ||
1e6feb95 VZ |
17609 | if test "$wxUSE_TEXTCTRL" = "yes"; then |
17610 | cat >> confdefs.h <<\EOF | |
17611 | #define wxUSE_TEXTCTRL 1 | |
17612 | EOF | |
17613 | ||
17614 | USES_CONTROLS=1 | |
17615 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
17616 | fi | |
17617 | ||
1db8dc4a | 17618 | if test "$wxUSE_TOGGLEBTN" = "yes"; then |
a45d7ab7 GD |
17619 | if test "$wxUSE_MAC" = 1; then |
17620 | echo "configure: warning: Toggle button is not yet supported under Mac OS X" 1>&2 | |
17621 | wxUSE_TOGGLEBTN=no | |
17622 | fi | |
17623 | ||
17624 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
17625 | cat >> confdefs.h <<\EOF | |
1db8dc4a VZ |
17626 | #define wxUSE_TOGGLEBTN 1 |
17627 | EOF | |
17628 | ||
1e6feb95 | 17629 | USES_CONTROLS=1 |
a45d7ab7 | 17630 | fi |
1db8dc4a VZ |
17631 | fi |
17632 | ||
360d6699 | 17633 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
698dcdb6 | 17634 | cat >> confdefs.h <<\EOF |
360d6699 VZ |
17635 | #define wxUSE_TOOLBAR_SIMPLE 1 |
17636 | EOF | |
17637 | ||
17638 | wxUSE_TOOLBAR="yes" | |
1e6feb95 | 17639 | USES_CONTROLS=1 |
360d6699 VZ |
17640 | fi |
17641 | ||
10f2d63a | 17642 | if test "$wxUSE_TOOLBAR" = "yes"; then |
698dcdb6 | 17643 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17644 | #define wxUSE_TOOLBAR 1 |
17645 | EOF | |
17646 | ||
1e6feb95 | 17647 | USES_CONTROLS=1 |
698dcdb6 | 17648 | |
360d6699 VZ |
17649 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then |
17650 | wxUSE_TOOLBAR_NATIVE="yes" | |
17651 | fi | |
17652 | ||
1e6feb95 VZ |
17653 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
17654 | cat >> confdefs.h <<\EOF | |
360d6699 VZ |
17655 | #define wxUSE_TOOLBAR_NATIVE 1 |
17656 | EOF | |
17657 | ||
1e6feb95 VZ |
17658 | USES_CONTROLS=1 |
17659 | fi | |
17660 | ||
17661 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
360d6699 VZ |
17662 | fi |
17663 | ||
10f2d63a VZ |
17664 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
17665 | if test "$wxUSE_MOTIF" = 1; then | |
698dcdb6 | 17666 | echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2 |
10f2d63a VZ |
17667 | else |
17668 | if test "$wxUSE_WINE" = 1; then | |
698dcdb6 | 17669 | echo "configure: warning: wxTooltip not supported under WINE" 1>&2 |
10f2d63a | 17670 | else |
698dcdb6 | 17671 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17672 | #define wxUSE_TOOLTIPS 1 |
17673 | EOF | |
17674 | ||
17675 | fi | |
17676 | fi | |
17677 | fi | |
17678 | ||
17679 | if test "$wxUSE_TREECTRL" = "yes"; then | |
17680 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 17681 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17682 | #define wxUSE_TREECTRL 1 |
17683 | EOF | |
17684 | ||
1e6feb95 | 17685 | USES_CONTROLS=1 |
10f2d63a VZ |
17686 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" |
17687 | else | |
698dcdb6 | 17688 | echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
17689 | fi |
17690 | fi | |
17691 | ||
9f41d601 | 17692 | if test "$wxUSE_POPUPWIN" = "yes"; then |
6abe4b65 GD |
17693 | if test "$wxUSE_MAC" = 1; then |
17694 | echo "configure: warning: Popup window is not yet supported under Mac OS" 1>&2 | |
17695 | else | |
17696 | cat >> confdefs.h <<\EOF | |
9f41d601 RR |
17697 | #define wxUSE_POPUPWIN 1 |
17698 | EOF | |
17699 | ||
6abe4b65 GD |
17700 | USES_CONTROLS=1 |
17701 | fi | |
9f41d601 RR |
17702 | fi |
17703 | ||
1e6feb95 VZ |
17704 | if test "$USES_CONTROLS" = 1; then |
17705 | cat >> confdefs.h <<\EOF | |
17706 | #define wxUSE_CONTROLS 1 | |
10f2d63a VZ |
17707 | EOF |
17708 | ||
10f2d63a VZ |
17709 | fi |
17710 | ||
1e6feb95 | 17711 | |
24176f2c GD |
17712 | if test "$wxUSE_TREELAYOUT" = "yes"; then |
17713 | cat >> confdefs.h <<\EOF | |
17714 | #define wxUSE_TREELAYOUT 1 | |
17715 | EOF | |
17716 | ||
17717 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay" | |
17718 | fi | |
1e6feb95 | 17719 | |
24fd6d87 VZ |
17720 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
17721 | cat >> confdefs.h <<\EOF | |
17722 | #define wxUSE_DRAGIMAGE 1 | |
17723 | EOF | |
17724 | ||
17725 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
17726 | fi | |
17727 | ||
1e6feb95 | 17728 | if test "$wxUSE_MENUS" = "yes"; then |
698dcdb6 | 17729 | cat >> confdefs.h <<\EOF |
1e6feb95 | 17730 | #define wxUSE_MENUS 1 |
10f2d63a VZ |
17731 | EOF |
17732 | ||
1e6feb95 | 17733 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" |
10f2d63a VZ |
17734 | fi |
17735 | ||
1e6feb95 VZ |
17736 | if test "$wxUSE_METAFILE" = "yes"; then |
17737 | cat >> confdefs.h <<\EOF | |
17738 | #define wxUSE_METAFILE 1 | |
10f2d63a VZ |
17739 | EOF |
17740 | ||
10f2d63a VZ |
17741 | fi |
17742 | ||
1e6feb95 VZ |
17743 | if test "$wxUSE_MIMETYPE" = "yes"; then |
17744 | cat >> confdefs.h <<\EOF | |
17745 | #define wxUSE_MIMETYPE 1 | |
10f2d63a VZ |
17746 | EOF |
17747 | ||
10f2d63a VZ |
17748 | fi |
17749 | ||
3e44f09d VZ |
17750 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then |
17751 | cat >> confdefs.h <<\EOF | |
17752 | #define wxUSE_SYSTEM_OPTIONS 1 | |
17753 | EOF | |
17754 | ||
17755 | fi | |
17756 | ||
10f2d63a | 17757 | if test "$wxUSE_MINIFRAME" = "yes"; then |
698dcdb6 | 17758 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17759 | #define wxUSE_MINIFRAME 1 |
17760 | EOF | |
17761 | ||
17762 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
17763 | fi | |
17764 | ||
17765 | if test "$wxUSE_HTML" = "yes"; then | |
698dcdb6 | 17766 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17767 | #define wxUSE_HTML 1 |
17768 | EOF | |
17769 | ||
17770 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html" | |
17771 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html" | |
17772 | fi | |
17773 | ||
17774 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
698dcdb6 | 17775 | cat >> confdefs.h <<\EOF |
1e487827 VS |
17776 | #define wxUSE_VALIDATORS 1 |
17777 | EOF | |
703e0a69 | 17778 | |
698dcdb6 VZ |
17779 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" |
17780 | fi | |
17781 | ||
17782 | if test "$wxUSE_IMAGE" = "yes" ; then | |
17783 | cat >> confdefs.h <<\EOF | |
17784 | #define wxUSE_IMAGE 1 | |
17785 | EOF | |
17786 | ||
17787 | fi | |
17788 | ||
17789 | if test "$wxUSE_GIF" = "yes" ; then | |
17790 | cat >> confdefs.h <<\EOF | |
17791 | #define wxUSE_GIF 1 | |
17792 | EOF | |
17793 | ||
17794 | fi | |
17795 | ||
17796 | if test "$wxUSE_PCX" = "yes" ; then | |
17797 | cat >> confdefs.h <<\EOF | |
17798 | #define wxUSE_PCX 1 | |
17799 | EOF | |
17800 | ||
17801 | fi | |
17802 | ||
17803 | if test "$wxUSE_PNM" = "yes" ; then | |
17804 | cat >> confdefs.h <<\EOF | |
17805 | #define wxUSE_PNM 1 | |
17806 | EOF | |
17807 | ||
17808 | fi | |
17809 | ||
17810 | if test "$wxUSE_XPM" = "yes" ; then | |
17811 | cat >> confdefs.h <<\EOF | |
17812 | #define wxUSE_XPM 1 | |
17813 | EOF | |
17814 | ||
17815 | fi | |
17816 | ||
17817 | ||
1e6feb95 VZ |
17818 | if test "$wxUSE_CHOICEDLG" = "yes"; then |
17819 | cat >> confdefs.h <<\EOF | |
17820 | #define wxUSE_CHOICEDLG 1 | |
17821 | EOF | |
17822 | ||
17823 | fi | |
17824 | ||
17825 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
17826 | cat >> confdefs.h <<\EOF | |
17827 | #define wxUSE_COLOURDLG 1 | |
17828 | EOF | |
17829 | ||
17830 | fi | |
17831 | ||
17832 | if test "$wxUSE_FILEDLG" = "yes"; then | |
17833 | cat >> confdefs.h <<\EOF | |
17834 | #define wxUSE_FILEDLG 1 | |
17835 | EOF | |
17836 | ||
17837 | fi | |
17838 | ||
8db37e06 VZ |
17839 | if test "$wxUSE_FINDREPLDLG" = "yes"; then |
17840 | cat >> confdefs.h <<\EOF | |
17841 | #define wxUSE_FINDREPLDLG 1 | |
17842 | EOF | |
17843 | ||
17844 | fi | |
17845 | ||
1e6feb95 VZ |
17846 | if test "$wxUSE_FONTDLG" = "yes"; then |
17847 | cat >> confdefs.h <<\EOF | |
17848 | #define wxUSE_FONTDLG 1 | |
17849 | EOF | |
17850 | ||
17851 | fi | |
17852 | ||
17853 | if test "$wxUSE_DIRDLG" = "yes"; then | |
17854 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
17855 | echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2 | |
17856 | else | |
17857 | if test "$wxUSE_TREECTRL" != "yes"; then | |
17858 | echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2 | |
17859 | else | |
17860 | cat >> confdefs.h <<\EOF | |
17861 | #define wxUSE_DIRDLG 1 | |
17862 | EOF | |
17863 | ||
17864 | fi | |
17865 | fi | |
17866 | fi | |
17867 | ||
17868 | if test "$wxUSE_MSGDLG" = "yes"; then | |
17869 | cat >> confdefs.h <<\EOF | |
17870 | #define wxUSE_MSGDLG 1 | |
17871 | EOF | |
17872 | ||
17873 | fi | |
17874 | ||
17875 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
17876 | cat >> confdefs.h <<\EOF | |
17877 | #define wxUSE_NUMBERDLG 1 | |
17878 | EOF | |
17879 | ||
17880 | fi | |
17881 | ||
17882 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
17883 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
17884 | echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2 | |
17885 | else | |
17886 | cat >> confdefs.h <<\EOF | |
17887 | #define wxUSE_PROGRESSDLG 1 | |
17888 | EOF | |
17889 | ||
17890 | fi | |
17891 | fi | |
17892 | ||
cbca9943 VZ |
17893 | if test "$wxUSE_SPLASH" = "yes"; then |
17894 | cat >> confdefs.h <<\EOF | |
17895 | #define wxUSE_SPLASH 1 | |
17896 | EOF | |
17897 | ||
17898 | fi | |
17899 | ||
1e6feb95 VZ |
17900 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then |
17901 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
17902 | echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2 | |
17903 | else | |
17904 | cat >> confdefs.h <<\EOF | |
17905 | #define wxUSE_STARTUP_TIPS 1 | |
17906 | EOF | |
17907 | ||
17908 | fi | |
17909 | fi | |
17910 | ||
17911 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
17912 | cat >> confdefs.h <<\EOF | |
17913 | #define wxUSE_TEXTDLG 1 | |
17914 | EOF | |
17915 | ||
17916 | fi | |
17917 | ||
b1f5d087 VZ |
17918 | if test "$wxUSE_WIZARDDLG" = "yes"; then |
17919 | cat >> confdefs.h <<\EOF | |
17920 | #define wxUSE_WIZARDDLG 1 | |
17921 | EOF | |
17922 | ||
17923 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
17924 | fi | |
17925 | ||
1e6feb95 | 17926 | |
698dcdb6 VZ |
17927 | if test "$cross_compiling" = "yes"; then |
17928 | OSINFO="\"$host\"" | |
17929 | else | |
17930 | OSINFO=`uname -s -r -m` | |
17931 | OSINFO="\"$OSINFO\"" | |
17932 | fi | |
17933 | ||
17934 | cat >> confdefs.h <<EOF | |
17935 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
17936 | EOF | |
17937 | ||
17938 | ||
17939 | ||
17940 | GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK" | |
17941 | OPENGL_LIBS="$OPENGL_LINK" | |
17942 | ||
17943 | EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm" | |
f11bdd03 | 17944 | if test "$wxUSE_MAC" = 1 ; then |
698dcdb6 VZ |
17945 | EXTRA_LIBS="$EXTRA_LIBS -framework Carbon -framework System" |
17946 | fi | |
17947 | if test "$wxUSE_GUI" = "yes"; then | |
17948 | EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $FREETYPE_LINK $EXTRA_LIBS" | |
17949 | fi | |
17950 | ||
17951 | LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS" | |
17952 | ||
3e44f09d VZ |
17953 | INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include \ |
17954 | $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \ | |
17955 | $FREETYPE_INCLUDE $TOOLKIT_INCLUDE" | |
698dcdb6 VZ |
17956 | |
17957 | if test "$wxUSE_GTK" = 1; then | |
17958 | WXCONFIG_INCLUDE="" | |
17959 | else | |
17960 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
17961 | fi | |
17962 | ||
17963 | if test "$GXX" = yes ; then | |
17964 | CXXWARNINGS="-Wall" | |
17965 | fi | |
17966 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES" | |
17967 | ||
17968 | CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` | |
17969 | CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
17970 | ||
17971 | LDFLAGS="$LDFLAGS $PROFILE" | |
17972 | ||
17973 | if test "$wxUSE_GUI" = "yes"; then | |
17974 | ||
24fd6d87 | 17975 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \ |
24176f2c GD |
17976 | drawing dynamic erase event exec font image \ |
17977 | minimal richedit rotate widgets" | |
1e6feb95 VZ |
17978 | |
17979 | if test "$wxUSE_UNIVERSAL" = "yes" ; then | |
17980 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS univ" | |
17981 | fi | |
698dcdb6 VZ |
17982 | |
17983 | CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)" | |
17984 | else | |
24176f2c | 17985 | SAMPLES_SUBDIRS="console" |
698dcdb6 VZ |
17986 | fi |
17987 | ||
17988 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
17989 | ||
17990 | ||
17991 | ||
17992 | ||
17993 | ||
17994 | ||
17995 | ||
17996 | ||
17997 | ||
17998 | ||
17999 | ||
18000 | ||
18001 | ||
18002 | ||
18003 | ||
18004 | ||
18005 | ||
18006 | ||
18007 | ||
18008 | ||
18009 | ||
18010 | ||
18011 | ||
18012 | ||
18013 | ||
18014 | ||
18015 | ||
18016 | ||
18017 | ||
18018 | ||
18019 | ||
18020 | ||
18021 | ||
18022 | ||
18023 | ||
18024 | ||
18025 | ||
18026 | ||
18027 | ||
18028 | ||
18029 | ||
18030 | ||
18031 | ||
18032 | ||
18033 | ||
18034 | ||
18035 | ||
18036 | ||
18037 | ||
18038 | ||
18039 | ||
18040 | ||
18041 | ||
18042 | ||
18043 | ||
18044 | ||
18045 | ||
18046 | ||
18047 | ||
18048 | ||
18049 | ||
18050 | ||
18051 | ||
18052 | ||
18053 | ||
18054 | ||
18055 | ||
32832908 VZ |
18056 | |
18057 | ||
18058 | ||
18059 | ||
18060 | ||
18061 | ||
18062 | ||
2224580a | 18063 | |
dad6c0ea | 18064 | |
f6bcfd97 BP |
18065 | |
18066 | ||
18067 | ||
2f51a9ec GD |
18068 | |
18069 | ||
18070 | ||
18071 | ||
18072 | ||
18073 | ||
f6bcfd97 | 18074 | |
dad6c0ea | 18075 | |
caa2c79b | 18076 | |
3711412e | 18077 | |
1e6feb95 VZ |
18078 | |
18079 | ||
0f3f1cbc | 18080 | |
18dbb1f6 | 18081 | |
10f2d63a VZ |
18082 | |
18083 | ||
698dcdb6 | 18084 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
ab252f7b | 18085 | echo "configure:18086: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
698dcdb6 VZ |
18086 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
18087 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
18088 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 18089 | else |
698dcdb6 | 18090 | cat > conftestmake <<\EOF |
10f2d63a VZ |
18091 | all: |
18092 | @echo 'ac_maketemp="${MAKE}"' | |
18093 | EOF | |
18094 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
698dcdb6 | 18095 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
10f2d63a VZ |
18096 | if test -n "$ac_maketemp"; then |
18097 | eval ac_cv_prog_make_${ac_make}_set=yes | |
18098 | else | |
18099 | eval ac_cv_prog_make_${ac_make}_set=no | |
18100 | fi | |
698dcdb6 | 18101 | rm -f conftestmake |
10f2d63a VZ |
18102 | fi |
18103 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
698dcdb6 | 18104 | echo "$ac_t""yes" 1>&6 |
10f2d63a VZ |
18105 | SET_MAKE= |
18106 | else | |
698dcdb6 | 18107 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
18108 | SET_MAKE="MAKE=${MAKE-make}" |
18109 | fi | |
18110 | ||
698dcdb6 | 18111 | |
00cf1208 RR |
18112 | if test -d include; then |
18113 | if test -d include/wx; then | |
1e6feb95 VZ |
18114 | if test -d include/wx/${SETUPH_DIR}; then |
18115 | if test -f include/wx/${SETUPH_DIR}/setup.h; then | |
18116 | mv -f include/wx/${SETUPH_DIR}/setup.h setup.h | |
00cf1208 RR |
18117 | fi |
18118 | fi | |
18119 | fi | |
18120 | fi | |
665bbe97 | 18121 | |
698dcdb6 | 18122 | |
10f2d63a | 18123 | |
2224580a | 18124 | if test "$wxUSE_GUI" = "yes"; then |
ec90f5e5 | 18125 | wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS |
e8482f24 GL |
18126 | wx_cv_path_ifs=$PATH_IFS |
18127 | wx_cv_program_ext=$PROGRAM_EXT | |
18128 | wx_cv_target_library=$WX_TARGET_LIBRARY | |
7b6058cd | 18129 | wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL |
3711412e | 18130 | wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE |
93a20a27 | 18131 | export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \ |
7b6058cd | 18132 | wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype |
698dcdb6 | 18133 | subdirs="demos samples utils contrib" |
2224580a VZ |
18134 | |
18135 | fi | |
10f2d63a | 18136 | |
698dcdb6 VZ |
18137 | trap '' 1 2 15 |
18138 | cat > confcache <<\EOF | |
10f2d63a VZ |
18139 | # This file is a shell script that caches the results of configure |
18140 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
18141 | # scripts and configure runs. It is not useful on other systems. |
18142 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 18143 | # |
698dcdb6 VZ |
18144 | # By default, configure uses ./config.cache as the cache file, |
18145 | # creating it if it does not exist already. You can give configure | |
18146 | # the --cache-file=FILE option to use a different cache file; that is | |
18147 | # what configure does when it calls configure scripts in | |
18148 | # subdirectories, so they share the cache. | |
18149 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
18150 | # config.status only pays attention to the cache file if you give it the | |
18151 | # --recheck option to rerun configure. | |
10f2d63a | 18152 | # |
698dcdb6 | 18153 | EOF |
10f2d63a VZ |
18154 | # The following way of writing the cache mishandles newlines in values, |
18155 | # but we know of no workaround that is simple, portable, and efficient. | |
18156 | # So, don't put newlines in cache variables' values. | |
18157 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
18158 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
18159 | (set) 2>&1 | |
18160 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
18161 | *ac_space=\ *) | |
18162 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
18163 | # turns \\\\ into \\, and sed turns \\ into \). | |
18164 | sed -n \ | |
18165 | -e "s/'/'\\\\''/g" \ | |
18166 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
18167 | ;; | |
18168 | *) | |
18169 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
18170 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
18171 | ;; | |
18172 | esac >> confcache | |
18173 | if cmp -s $cache_file confcache; then | |
18174 | : | |
18175 | else | |
10f2d63a | 18176 | if test -w $cache_file; then |
698dcdb6 VZ |
18177 | echo "updating cache $cache_file" |
18178 | cat confcache > $cache_file | |
10f2d63a VZ |
18179 | else |
18180 | echo "not updating unwritable cache $cache_file" | |
18181 | fi | |
18182 | fi | |
18183 | rm -f confcache | |
18184 | ||
698dcdb6 VZ |
18185 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
18186 | ||
10f2d63a VZ |
18187 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
18188 | # Let make expand exec_prefix. | |
18189 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
18190 | ||
698dcdb6 VZ |
18191 | # Any assignment to VPATH causes Sun make to only execute |
18192 | # the first set of double-colon rules, so remove it if not needed. | |
18193 | # If there is a colon in the path, we need to keep it. | |
10f2d63a | 18194 | if test "x$srcdir" = x.; then |
698dcdb6 | 18195 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
10f2d63a VZ |
18196 | fi |
18197 | ||
698dcdb6 VZ |
18198 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
18199 | ||
10f2d63a VZ |
18200 | DEFS=-DHAVE_CONFIG_H |
18201 | ||
698dcdb6 | 18202 | # Without the "./", some shells look in PATH for config.status. |
10f2d63a | 18203 | : ${CONFIG_STATUS=./config.status} |
698dcdb6 VZ |
18204 | |
18205 | echo creating $CONFIG_STATUS | |
18206 | rm -f $CONFIG_STATUS | |
18207 | cat > $CONFIG_STATUS <<EOF | |
18208 | #! /bin/sh | |
10f2d63a VZ |
18209 | # Generated automatically by configure. |
18210 | # Run this file to recreate the current configuration. | |
698dcdb6 VZ |
18211 | # This directory was configured as follows, |
18212 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
18213 | # | |
18214 | # $0 $ac_configure_args | |
18215 | # | |
10f2d63a | 18216 | # Compiler output produced by configure, useful for debugging |
698dcdb6 | 18217 | # configure, is in ./config.log if it exists. |
1e487827 | 18218 | |
698dcdb6 VZ |
18219 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
18220 | for ac_option | |
10f2d63a | 18221 | do |
698dcdb6 | 18222 | case "\$ac_option" in |
10f2d63a | 18223 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
698dcdb6 VZ |
18224 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
18225 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
18226 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
18227 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | |
18228 | exit 0 ;; | |
18229 | -help | --help | --hel | --he | --h) | |
18230 | echo "\$ac_cs_usage"; exit 0 ;; | |
18231 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
10f2d63a VZ |
18232 | esac |
18233 | done | |
18234 | ||
698dcdb6 VZ |
18235 | ac_given_srcdir=$srcdir |
18236 | ac_given_INSTALL="$INSTALL" | |
703e0a69 | 18237 | |
698dcdb6 VZ |
18238 | trap 'rm -fr `echo " |
18239 | wx-config | |
18240 | src/make.env | |
18241 | src/makeprog.env | |
18242 | src/makelib.env | |
18243 | Makefile | |
18244 | setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
1e487827 | 18245 | EOF |
698dcdb6 | 18246 | cat >> $CONFIG_STATUS <<EOF |
1e487827 | 18247 | |
698dcdb6 VZ |
18248 | # Protect against being on the right side of a sed subst in config.status. |
18249 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
18250 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
18251 | $ac_vpsub | |
18252 | $extrasub | |
18253 | s%@SHELL@%$SHELL%g | |
18254 | s%@CFLAGS@%$CFLAGS%g | |
18255 | s%@CPPFLAGS@%$CPPFLAGS%g | |
18256 | s%@CXXFLAGS@%$CXXFLAGS%g | |
18257 | s%@FFLAGS@%$FFLAGS%g | |
18258 | s%@DEFS@%$DEFS%g | |
18259 | s%@LDFLAGS@%$LDFLAGS%g | |
18260 | s%@LIBS@%$LIBS%g | |
18261 | s%@exec_prefix@%$exec_prefix%g | |
18262 | s%@prefix@%$prefix%g | |
18263 | s%@program_transform_name@%$program_transform_name%g | |
18264 | s%@bindir@%$bindir%g | |
18265 | s%@sbindir@%$sbindir%g | |
18266 | s%@libexecdir@%$libexecdir%g | |
18267 | s%@datadir@%$datadir%g | |
18268 | s%@sysconfdir@%$sysconfdir%g | |
18269 | s%@sharedstatedir@%$sharedstatedir%g | |
18270 | s%@localstatedir@%$localstatedir%g | |
18271 | s%@libdir@%$libdir%g | |
18272 | s%@includedir@%$includedir%g | |
18273 | s%@oldincludedir@%$oldincludedir%g | |
18274 | s%@infodir@%$infodir%g | |
18275 | s%@mandir@%$mandir%g | |
18276 | s%@host@%$host%g | |
18277 | s%@host_alias@%$host_alias%g | |
18278 | s%@host_cpu@%$host_cpu%g | |
18279 | s%@host_vendor@%$host_vendor%g | |
18280 | s%@host_os@%$host_os%g | |
18281 | s%@target@%$target%g | |
18282 | s%@target_alias@%$target_alias%g | |
18283 | s%@target_cpu@%$target_cpu%g | |
18284 | s%@target_vendor@%$target_vendor%g | |
18285 | s%@target_os@%$target_os%g | |
18286 | s%@build@%$build%g | |
18287 | s%@build_alias@%$build_alias%g | |
18288 | s%@build_cpu@%$build_cpu%g | |
18289 | s%@build_vendor@%$build_vendor%g | |
18290 | s%@build_os@%$build_os%g | |
18291 | s%@CC@%$CC%g | |
18292 | s%@CPP@%$CPP%g | |
18293 | s%@CXX@%$CXX%g | |
18294 | s%@CXXCPP@%$CXXCPP%g | |
18295 | s%@RANLIB@%$RANLIB%g | |
18296 | s%@AR@%$AR%g | |
18297 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
18298 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | |
18299 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
18300 | s%@STRIP@%$STRIP%g | |
18301 | s%@YACC@%$YACC%g | |
18302 | s%@LEX@%$LEX%g | |
18303 | s%@LEXLIB@%$LEXLIB%g | |
18304 | s%@LN_S@%$LN_S%g | |
18305 | s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g | |
698dcdb6 VZ |
18306 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g |
18307 | s%@GTK_LIBS@%$GTK_LIBS%g | |
8168de4c | 18308 | s%@GTK_CONFIG@%$GTK_CONFIG%g |
698dcdb6 VZ |
18309 | s%@X_CFLAGS@%$X_CFLAGS%g |
18310 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
18311 | s%@X_LIBS@%$X_LIBS%g | |
18312 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
18313 | s%@REZ@%$REZ%g | |
18314 | s%@DEREZ@%$DEREZ%g | |
18315 | s%@LEX_STEM@%$LEX_STEM%g | |
18316 | s%@PATH_IFS@%$PATH_IFS%g | |
18317 | s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g | |
18318 | s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g | |
18319 | s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g | |
18320 | s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g | |
18321 | s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g | |
18322 | s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g | |
18323 | s%@WX_LIBRARY@%$WX_LIBRARY%g | |
18324 | s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g | |
18325 | s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g | |
18326 | s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g | |
18327 | s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g | |
18328 | s%@PROGRAM_EXT@%$PROGRAM_EXT%g | |
18329 | s%@WX_LIBRARY_NAME_GL@%$WX_LIBRARY_NAME_GL%g | |
18330 | s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g | |
18331 | s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g | |
18332 | s%@WX_LIBRARY_GL@%$WX_LIBRARY_GL%g | |
18333 | s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g | |
18334 | s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g | |
18335 | s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g | |
18336 | s%@WX_LIBRARY_LINK3_GL@%$WX_LIBRARY_LINK3_GL%g | |
18337 | s%@WX_ALL@%$WX_ALL%g | |
18338 | s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g | |
18339 | s%@SHARED_LD@%$SHARED_LD%g | |
18340 | s%@PIC_FLAG@%$PIC_FLAG%g | |
18341 | s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g | |
18342 | s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g | |
18343 | s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g | |
18344 | s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g | |
18345 | s%@BURNT_LIBRARY_NAME_GL@%$BURNT_LIBRARY_NAME_GL%g | |
18346 | s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g | |
18347 | s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g | |
18348 | s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g | |
18349 | s%@USE_GUI@%$USE_GUI%g | |
18350 | s%@AFMINSTALL@%$AFMINSTALL%g | |
1e6feb95 | 18351 | s%@SETUPH_DIR@%$SETUPH_DIR%g |
698dcdb6 VZ |
18352 | s%@TOOLKIT@%$TOOLKIT%g |
18353 | s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g | |
18354 | s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g | |
18355 | s%@TOOLKIT_NAME@%$TOOLKIT_NAME%g | |
18356 | s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g | |
1e6feb95 | 18357 | s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g |
698dcdb6 VZ |
18358 | s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g |
18359 | s%@ALL_OBJECTS@%$ALL_OBJECTS%g | |
18360 | s%@ALL_DEPFILES@%$ALL_DEPFILES%g | |
18361 | s%@GUIDIST@%$GUIDIST%g | |
18362 | s%@PORT_FILES@%$PORT_FILES%g | |
18363 | s%@DISTDIR@%$DISTDIR%g | |
18364 | s%@RPM_SPEC@%$RPM_SPEC%g | |
18365 | s%@RPM_FILES@%$RPM_FILES%g | |
18366 | s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g | |
18367 | s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g | |
18368 | s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g | |
18369 | s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g | |
18370 | s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g | |
18371 | s%@USER_SUBDIRS@%$USER_SUBDIRS%g | |
18372 | s%@EXTRA_LIBS@%$EXTRA_LIBS%g | |
18373 | s%@OPENGL_LIBS@%$OPENGL_LIBS%g | |
18374 | s%@EXTRADEFS@%$EXTRADEFS%g | |
18375 | s%@LD_LIBS@%$LD_LIBS%g | |
18dbb1f6 | 18376 | s%@WXMSW_DLL_DEFINES@%$WXMSW_DLL_DEFINES%g |
698dcdb6 VZ |
18377 | s%@RCINPUTSWITCH@%$RCINPUTSWITCH%g |
18378 | s%@RCOUTPUTSWITCH@%$RCOUTPUTSWITCH%g | |
18379 | s%@RESPROGRAM@%$RESPROGRAM%g | |
18380 | s%@RESCOMP@%$RESCOMP%g | |
18381 | s%@RESFLAGS@%$RESFLAGS%g | |
18382 | s%@REZFLAGS@%$REZFLAGS%g | |
18383 | s%@DEREZFLAGS@%$DEREZFLAGS%g | |
18384 | s%@LIBWXMACRES@%$LIBWXMACRES%g | |
18385 | s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g | |
18386 | s%@DLLTOOL@%$DLLTOOL%g | |
18387 | s%@AS@%$AS%g | |
18388 | s%@NM@%$NM%g | |
18389 | s%@LD@%$LD%g | |
18390 | s%@MAKEINFO@%$MAKEINFO%g | |
18391 | s%@SET_MAKE@%$SET_MAKE%g | |
18392 | s%@subdirs@%$subdirs%g | |
1e487827 | 18393 | |
1e487827 | 18394 | CEOF |
1e487827 VS |
18395 | EOF |
18396 | ||
698dcdb6 VZ |
18397 | cat >> $CONFIG_STATUS <<\EOF |
18398 | ||
18399 | # Split the substitutions into bite-sized pieces for seds with | |
18400 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
18401 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
18402 | ac_file=1 # Number of current file. | |
18403 | ac_beg=1 # First line for current file. | |
18404 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
18405 | ac_more_lines=: | |
18406 | ac_sed_cmds="" | |
18407 | while $ac_more_lines; do | |
18408 | if test $ac_beg -gt 1; then | |
18409 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
18410 | else | |
18411 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
18412 | fi | |
18413 | if test ! -s conftest.s$ac_file; then | |
18414 | ac_more_lines=false | |
18415 | rm -f conftest.s$ac_file | |
18416 | else | |
18417 | if test -z "$ac_sed_cmds"; then | |
18418 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
10f2d63a | 18419 | else |
698dcdb6 | 18420 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
10f2d63a | 18421 | fi |
698dcdb6 VZ |
18422 | ac_file=`expr $ac_file + 1` |
18423 | ac_beg=$ac_end | |
18424 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
10f2d63a | 18425 | fi |
698dcdb6 VZ |
18426 | done |
18427 | if test -z "$ac_sed_cmds"; then | |
18428 | ac_sed_cmds=cat | |
18429 | fi | |
18430 | EOF | |
10f2d63a | 18431 | |
698dcdb6 VZ |
18432 | cat >> $CONFIG_STATUS <<EOF |
18433 | ||
18434 | CONFIG_FILES=\${CONFIG_FILES-"wx-config | |
18435 | src/make.env | |
18436 | src/makeprog.env | |
18437 | src/makelib.env | |
18438 | Makefile | |
18439 | "} | |
10f2d63a | 18440 | EOF |
698dcdb6 VZ |
18441 | cat >> $CONFIG_STATUS <<\EOF |
18442 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
10f2d63a | 18443 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
698dcdb6 VZ |
18444 | case "$ac_file" in |
18445 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
18446 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
18447 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
18448 | esac |
18449 | ||
698dcdb6 | 18450 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
1e487827 | 18451 | |
698dcdb6 VZ |
18452 | # Remove last slash and all that follows it. Not all systems have dirname. |
18453 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
18454 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
18455 | # The file is in a subdirectory. | |
18456 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
18457 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
10f2d63a | 18458 | # A "../" for each directory in $ac_dir_suffix. |
698dcdb6 | 18459 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
10f2d63a VZ |
18460 | else |
18461 | ac_dir_suffix= ac_dots= | |
18462 | fi | |
18463 | ||
698dcdb6 VZ |
18464 | case "$ac_given_srcdir" in |
18465 | .) srcdir=. | |
18466 | if test -z "$ac_dots"; then top_srcdir=. | |
18467 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
18468 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
10f2d63a | 18469 | *) # Relative path. |
698dcdb6 VZ |
18470 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
18471 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
10f2d63a VZ |
18472 | esac |
18473 | ||
698dcdb6 VZ |
18474 | case "$ac_given_INSTALL" in |
18475 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
18476 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
10f2d63a VZ |
18477 | esac |
18478 | ||
698dcdb6 VZ |
18479 | echo creating "$ac_file" |
18480 | rm -f "$ac_file" | |
18481 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
18482 | case "$ac_file" in | |
18483 | *Makefile*) ac_comsub="1i\\ | |
18484 | # $configure_input" ;; | |
18485 | *) ac_comsub= ;; | |
18486 | esac | |
10f2d63a | 18487 | |
698dcdb6 VZ |
18488 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
18489 | sed -e "$ac_comsub | |
18490 | s%@configure_input@%$configure_input%g | |
18491 | s%@srcdir@%$srcdir%g | |
18492 | s%@top_srcdir@%$top_srcdir%g | |
18493 | s%@INSTALL@%$INSTALL%g | |
18494 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
18495 | fi; done | |
18496 | rm -f conftest.s* | |
10f2d63a VZ |
18497 | |
18498 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
18499 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
18500 | # | |
18501 | # ac_d sets the value in "#define NAME VALUE" lines. | |
698dcdb6 VZ |
18502 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
18503 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
18504 | ac_dC='\3' | |
18505 | ac_dD='%g' | |
18506 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
18507 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
18508 | ac_uB='\([ ]\)%\1#\2define\3' | |
10f2d63a | 18509 | ac_uC=' ' |
698dcdb6 VZ |
18510 | ac_uD='\4%g' |
18511 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
18512 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
18513 | ac_eB='$%\1#\2define\3' | |
18514 | ac_eC=' ' | |
18515 | ac_eD='%g' | |
10f2d63a | 18516 | |
698dcdb6 VZ |
18517 | if test "${CONFIG_HEADERS+set}" != set; then |
18518 | EOF | |
18519 | cat >> $CONFIG_STATUS <<EOF | |
18520 | CONFIG_HEADERS="setup.h:setup.h.in" | |
18521 | EOF | |
18522 | cat >> $CONFIG_STATUS <<\EOF | |
18523 | fi | |
18524 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
10f2d63a | 18525 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
698dcdb6 VZ |
18526 | case "$ac_file" in |
18527 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
18528 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
18529 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
18530 | esac |
18531 | ||
698dcdb6 VZ |
18532 | echo creating $ac_file |
18533 | ||
18534 | rm -f conftest.frag conftest.in conftest.out | |
18535 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
18536 | cat $ac_file_inputs > conftest.in | |
18537 | ||
18538 | EOF | |
18539 | ||
18540 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
18541 | # the proper values into config.h.in to produce config.h. And first: | |
18542 | # Protect against being on the right side of a sed subst in config.status. | |
18543 | # Protect against being in an unquoted here document in config.status. | |
18544 | rm -f conftest.vals | |
18545 | cat > conftest.hdr <<\EOF | |
18546 | s/[\\&%]/\\&/g | |
18547 | s%[\\$`]%\\&%g | |
18548 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
18549 | s%ac_d%ac_u%gp | |
18550 | s%ac_u%ac_e%gp | |
18551 | EOF | |
18552 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
18553 | rm -f conftest.hdr | |
10f2d63a VZ |
18554 | |
18555 | # This sed command replaces #undef with comments. This is necessary, for | |
18556 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
18557 | # on some systems where configure will not decide to define it. | |
698dcdb6 VZ |
18558 | cat >> conftest.vals <<\EOF |
18559 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
10f2d63a VZ |
18560 | EOF |
18561 | ||
698dcdb6 VZ |
18562 | # Break up conftest.vals because some shells have a limit on |
18563 | # the size of here documents, and old seds have small limits too. | |
10f2d63a VZ |
18564 | |
18565 | rm -f conftest.tail | |
698dcdb6 | 18566 | while : |
10f2d63a | 18567 | do |
698dcdb6 VZ |
18568 | ac_lines=`grep -c . conftest.vals` |
18569 | # grep -c gives empty output for an empty file on some AIX systems. | |
18570 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
18571 | # Write a limited-size here document to conftest.frag. | |
18572 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
18573 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
10f2d63a | 18574 | echo 'CEOF |
698dcdb6 VZ |
18575 | sed -f conftest.frag conftest.in > conftest.out |
18576 | rm -f conftest.in | |
18577 | mv conftest.out conftest.in | |
18578 | ' >> $CONFIG_STATUS | |
18579 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
18580 | rm -f conftest.vals | |
18581 | mv conftest.tail conftest.vals | |
10f2d63a | 18582 | done |
698dcdb6 VZ |
18583 | rm -f conftest.vals |
18584 | ||
18585 | cat >> $CONFIG_STATUS <<\EOF | |
18586 | rm -f conftest.frag conftest.h | |
18587 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
18588 | cat conftest.in >> conftest.h | |
18589 | rm -f conftest.in | |
18590 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
18591 | echo "$ac_file is unchanged" | |
18592 | rm -f conftest.h | |
10f2d63a | 18593 | else |
698dcdb6 VZ |
18594 | # Remove last slash and all that follows it. Not all systems have dirname. |
18595 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
10f2d63a | 18596 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
698dcdb6 VZ |
18597 | # The file is in a subdirectory. |
18598 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
10f2d63a | 18599 | fi |
698dcdb6 VZ |
18600 | rm -f $ac_file |
18601 | mv conftest.h $ac_file | |
10f2d63a | 18602 | fi |
698dcdb6 VZ |
18603 | fi; done |
18604 | ||
10f2d63a | 18605 | EOF |
698dcdb6 | 18606 | cat >> $CONFIG_STATUS <<EOF |
10f2d63a | 18607 | |
1e6feb95 | 18608 | SETUPH_DIR="${SETUPH_DIR}" |
698dcdb6 VZ |
18609 | TOOLKIT_NAME="${TOOLKIT_NAME}" |
18610 | LN_S="${LN_S}" | |
18611 | ||
18612 | ||
18613 | EOF | |
18614 | cat >> $CONFIG_STATUS <<\EOF | |
10f2d63a | 18615 | |
6ef41520 | 18616 | if test ! -f wx${TOOLKIT_NAME}-config; then |
991a5759 VZ |
18617 | chmod +x wx-config |
18618 | mv wx-config wx${TOOLKIT_NAME}-config | |
18619 | ${LN_S} wx${TOOLKIT_NAME}-config wx-config | |
18620 | fi | |
665bbe97 | 18621 | |
698dcdb6 | 18622 | |
00cf1208 RR |
18623 | if test ! -d lib; then |
18624 | mkdir lib | |
18625 | fi | |
18626 | if test ! -d lib/wx; then | |
18627 | mkdir lib/wx | |
18628 | fi | |
18629 | if test ! -d lib/wx/include; then | |
18630 | mkdir lib/wx/include | |
18631 | fi | |
18632 | if test ! -d lib/wx/include/wx; then | |
18633 | mkdir lib/wx/include/wx | |
18634 | fi | |
f6bcfd97 BP |
18635 | if test ! -d lib/wx/include/wx/${TOOLKIT_NAME}; then |
18636 | mkdir lib/wx/include/wx/${TOOLKIT_NAME} | |
00cf1208 RR |
18637 | fi |
18638 | if test -f setup.h; then | |
066b00aa | 18639 | cp -fp setup.h lib/wx/include/wx/${TOOLKIT_NAME}/setup.h |
00cf1208 | 18640 | fi |
07eb77a6 | 18641 | |
698dcdb6 | 18642 | |
10f2d63a VZ |
18643 | if test ! -d include; then |
18644 | mkdir include | |
18645 | fi | |
18646 | if test ! -d include/wx; then | |
18647 | mkdir include/wx | |
18648 | fi | |
1e6feb95 VZ |
18649 | if test ! -d include/wx/${SETUPH_DIR}; then |
18650 | mkdir include/wx/${SETUPH_DIR} | |
10f2d63a | 18651 | fi |
afc31813 | 18652 | if test -f setup.h; then |
1e6feb95 | 18653 | cp -fp setup.h include/wx/${SETUPH_DIR}/setup.h |
afc31813 | 18654 | fi |
665bbe97 | 18655 | |
698dcdb6 VZ |
18656 | |
18657 | exit 0 | |
10f2d63a VZ |
18658 | EOF |
18659 | chmod +x $CONFIG_STATUS | |
698dcdb6 VZ |
18660 | rm -fr confdefs* $ac_clean_files |
18661 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
10f2d63a | 18662 | |
2224580a VZ |
18663 | if test "$no_recursion" != yes; then |
18664 | ||
18665 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
18666 | ac_sub_configure_args= | |
18667 | ac_prev= | |
18668 | for ac_arg in $ac_configure_args; do | |
18669 | if test -n "$ac_prev"; then | |
18670 | ac_prev= | |
18671 | continue | |
18672 | fi | |
698dcdb6 | 18673 | case "$ac_arg" in |
2224580a VZ |
18674 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
18675 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
18676 | ac_prev=cache_file ;; | |
18677 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
698dcdb6 | 18678 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
2224580a VZ |
18679 | ;; |
18680 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
18681 | ac_prev=srcdir ;; | |
18682 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
18683 | ;; | |
18684 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
18685 | esac | |
18686 | done | |
18687 | ||
698dcdb6 | 18688 | for ac_config_dir in demos samples utils contrib; do |
2224580a VZ |
18689 | |
18690 | # Do not complain, so a configure script can configure whichever | |
18691 | # parts of a large source tree are present. | |
698dcdb6 VZ |
18692 | if test ! -d $srcdir/$ac_config_dir; then |
18693 | continue | |
18694 | fi | |
18695 | ||
18696 | echo configuring in $ac_config_dir | |
2224580a | 18697 | |
698dcdb6 | 18698 | case "$srcdir" in |
2224580a VZ |
18699 | .) ;; |
18700 | *) | |
698dcdb6 VZ |
18701 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; |
18702 | else | |
18703 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
18704 | fi | |
18705 | ;; | |
2224580a VZ |
18706 | esac |
18707 | ||
18708 | ac_popdir=`pwd` | |
698dcdb6 | 18709 | cd $ac_config_dir |
2224580a | 18710 | |
698dcdb6 VZ |
18711 | # A "../" for each directory in /$ac_config_dir. |
18712 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
2224580a | 18713 | |
698dcdb6 | 18714 | case "$srcdir" in |
2224580a VZ |
18715 | .) # No --srcdir option. We are building in place. |
18716 | ac_sub_srcdir=$srcdir ;; | |
698dcdb6 VZ |
18717 | /*) # Absolute path. |
18718 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
2224580a | 18719 | *) # Relative path. |
698dcdb6 | 18720 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; |
2224580a VZ |
18721 | esac |
18722 | ||
18723 | # Check for guested configure; otherwise get Cygnus style configure. | |
698dcdb6 VZ |
18724 | if test -f $ac_sub_srcdir/configure; then |
18725 | ac_sub_configure=$ac_sub_srcdir/configure | |
2224580a VZ |
18726 | elif test -f $ac_sub_srcdir/configure.in; then |
18727 | ac_sub_configure=$ac_configure | |
18728 | else | |
698dcdb6 | 18729 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 |
2224580a VZ |
18730 | ac_sub_configure= |
18731 | fi | |
18732 | ||
18733 | # The recursion is here. | |
18734 | if test -n "$ac_sub_configure"; then | |
698dcdb6 | 18735 | |
2224580a | 18736 | # Make the cache file name correct relative to the subdirectory. |
698dcdb6 VZ |
18737 | case "$cache_file" in |
18738 | /*) ac_sub_cache_file=$cache_file ;; | |
2224580a | 18739 | *) # Relative path. |
698dcdb6 | 18740 | ac_sub_cache_file="$ac_dots$cache_file" ;; |
2224580a | 18741 | esac |
698dcdb6 VZ |
18742 | case "$ac_given_INSTALL" in |
18743 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
18744 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
18745 | esac | |
2224580a | 18746 | |
698dcdb6 | 18747 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" |
2224580a | 18748 | # The eval makes quoting arguments work. |
698dcdb6 VZ |
18749 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir |
18750 | then : | |
18751 | else | |
18752 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
18753 | fi | |
2224580a VZ |
18754 | fi |
18755 | ||
18756 | cd $ac_popdir | |
18757 | done | |
18758 | fi | |
18759 | ||
698dcdb6 | 18760 |