]>
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)" |
698dcdb6 | 92 | ac_help="$ac_help |
8168de4c | 93 | --with-zlib use zlib for LZW compression" |
698dcdb6 | 94 | ac_help="$ac_help |
8168de4c | 95 | --with-odbc use the IODBC and wxODBC classes" |
698dcdb6 | 96 | ac_help="$ac_help |
8168de4c | 97 | --enable-shared create shared library code" |
698dcdb6 | 98 | ac_help="$ac_help |
8168de4c | 99 | --enable-burnt_name create set name in shared library " |
698dcdb6 | 100 | ac_help="$ac_help |
8168de4c | 101 | --enable-optimise create optimised code" |
698dcdb6 | 102 | ac_help="$ac_help |
8168de4c | 103 | --enable-debug same as debug_flag and debug_info" |
698dcdb6 | 104 | ac_help="$ac_help |
8168de4c | 105 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)" |
698dcdb6 | 106 | ac_help="$ac_help |
8168de4c | 107 | --enable-debug_info create code with debugging information" |
698dcdb6 | 108 | ac_help="$ac_help |
8168de4c | 109 | --enable-debug_gdb create code with extra GDB debugging information" |
698dcdb6 | 110 | ac_help="$ac_help |
8168de4c | 111 | --enable-debug_cntxt use wxDebugContext" |
698dcdb6 | 112 | ac_help="$ac_help |
8168de4c | 113 | --enable-mem_tracing create code with memory tracing" |
698dcdb6 | 114 | ac_help="$ac_help |
8168de4c | 115 | --enable-profile create code with profiling information" |
698dcdb6 | 116 | ac_help="$ac_help |
8168de4c | 117 | --enable-no_rtti create code without RTTI information" |
698dcdb6 | 118 | ac_help="$ac_help |
8168de4c | 119 | --enable-no_exceptions create code without exceptions information" |
698dcdb6 | 120 | ac_help="$ac_help |
8168de4c | 121 | --enable-permissive compile code disregarding strict ANSI" |
698dcdb6 | 122 | ac_help="$ac_help |
8168de4c | 123 | --enable-no_deps create code without dependency information" |
54276ccf VZ |
124 | ac_help="$ac_help |
125 | --enable-compat20 enable wxWin 2.0 compatibility" | |
126 | ac_help="$ac_help | |
127 | --enable-compat22 enable wxWin 2.2 compatibility" | |
698dcdb6 | 128 | ac_help="$ac_help |
8168de4c | 129 | --enable-intl use internationalization system" |
698dcdb6 | 130 | ac_help="$ac_help |
8168de4c | 131 | --enable-config use wxConfig (and derived) classes" |
698dcdb6 | 132 | ac_help="$ac_help |
8168de4c | 133 | --enable-sockets use socket/network classes" |
698dcdb6 | 134 | ac_help="$ac_help |
8168de4c | 135 | --enable-ipc use interprocess communication (wxSocket etc.)" |
698dcdb6 | 136 | ac_help="$ac_help |
8168de4c | 137 | --enable-cmdline use wxCmdLineParser class" |
1e6feb95 | 138 | ac_help="$ac_help |
8168de4c | 139 | --enable-datetime use wxDateTime class" |
1e6feb95 | 140 | ac_help="$ac_help |
8168de4c | 141 | --enable-timedate use obsolete wxDate/wxTime classes" |
1e6feb95 | 142 | ac_help="$ac_help |
8168de4c | 143 | --enable-stopwatch use wxStopWatch class" |
1e6feb95 | 144 | ac_help="$ac_help |
8168de4c | 145 | --enable-dialupman use dialup network classes" |
698dcdb6 | 146 | ac_help="$ac_help |
8168de4c | 147 | --enable-apple_ieee use the Apple IEEE codec" |
698dcdb6 | 148 | ac_help="$ac_help |
8168de4c | 149 | --enable-timer use wxTimer class" |
698dcdb6 | 150 | ac_help="$ac_help |
8168de4c | 151 | --enable-wave use wxWave class" |
698dcdb6 | 152 | ac_help="$ac_help |
8168de4c | 153 | --enable-fraction use wxFraction class" |
698dcdb6 | 154 | ac_help="$ac_help |
8168de4c | 155 | --enable-dynlib use wxLibrary class for DLL loading" |
698dcdb6 | 156 | ac_help="$ac_help |
8168de4c | 157 | --enable-longlong use wxLongLong class" |
698dcdb6 | 158 | ac_help="$ac_help |
8168de4c | 159 | --enable-geometry use geometry class" |
698dcdb6 | 160 | ac_help="$ac_help |
8168de4c | 161 | --enable-log use logging system" |
698dcdb6 | 162 | ac_help="$ac_help |
8168de4c | 163 | --enable-streams use wxStream etc classes" |
698dcdb6 | 164 | ac_help="$ac_help |
8168de4c | 165 | --enable-file use wxFile classes" |
698dcdb6 | 166 | ac_help="$ac_help |
8168de4c | 167 | --enable-ffile use wxFFile classes" |
1e6feb95 | 168 | ac_help="$ac_help |
8168de4c | 169 | --enable-textfile use wxTextFile classes" |
698dcdb6 | 170 | ac_help="$ac_help |
8168de4c | 171 | --enable-fontmap use font encodings conversion classes" |
1e6feb95 | 172 | ac_help="$ac_help |
8168de4c | 173 | --enable-unicode compile wxString with Unicode support" |
698dcdb6 | 174 | ac_help="$ac_help |
8168de4c | 175 | --enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs" |
698dcdb6 | 176 | ac_help="$ac_help |
8168de4c | 177 | --enable-wxprintfv use wxWindows implementation of vprintf()" |
698dcdb6 | 178 | ac_help="$ac_help |
8168de4c | 179 | --enable-std_iostreams use standard C++ stream classes" |
698dcdb6 | 180 | ac_help="$ac_help |
8168de4c | 181 | --enable-filesystem use virtual file systems classes" |
698dcdb6 | 182 | ac_help="$ac_help |
8168de4c | 183 | --enable-fs_inet use virtual HTTP/FTP filesystems" |
698dcdb6 | 184 | ac_help="$ac_help |
8168de4c | 185 | --enable-fs_zip use virtual ZIP filesystems" |
698dcdb6 | 186 | ac_help="$ac_help |
8168de4c | 187 | --enable-zipstream use wxZipInputStream" |
698dcdb6 | 188 | ac_help="$ac_help |
8168de4c | 189 | --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException" |
698dcdb6 | 190 | ac_help="$ac_help |
8168de4c | 191 | --enable-snglinst use wxSingleInstanceChecker class" |
698dcdb6 | 192 | ac_help="$ac_help |
8168de4c | 193 | --enable-mimetypes use wxMimeTypesManager" |
1e6feb95 | 194 | ac_help="$ac_help |
8168de4c | 195 | --enable-threads use threads" |
698dcdb6 | 196 | ac_help="$ac_help |
8168de4c | 197 | --enable-serial use class serialization" |
698dcdb6 | 198 | ac_help="$ac_help |
8168de4c | 199 | --enable-docview use document view architecture" |
698dcdb6 | 200 | ac_help="$ac_help |
3379ed37 | 201 | --enable-help use help subsystem" |
29fd3c0c VS |
202 | ac_help="$ac_help |
203 | --enable-mshtmlhelp use MS HTML Help (win32)" | |
3379ed37 VZ |
204 | ac_help="$ac_help |
205 | --enable-html use wxHTML sub-library" | |
206 | ac_help="$ac_help | |
207 | --enable-htmlhelp use wxHTML-based help" | |
698dcdb6 | 208 | ac_help="$ac_help |
8168de4c | 209 | --enable-constraints use layout-constraints system" |
698dcdb6 | 210 | ac_help="$ac_help |
8168de4c | 211 | --enable-printarch use printing architecture" |
698dcdb6 | 212 | ac_help="$ac_help |
8168de4c | 213 | --enable-mdi use multiple document interface architecture" |
698dcdb6 | 214 | ac_help="$ac_help |
8168de4c | 215 | --enable-loggui use standard GUI logger" |
1e6feb95 | 216 | ac_help="$ac_help |
8168de4c | 217 | --enable-logwin use wxLogWindow" |
1e6feb95 | 218 | ac_help="$ac_help |
8168de4c | 219 | --enable-postscript use wxPostscriptDC device context (default for gtk+)" |
698dcdb6 | 220 | ac_help="$ac_help |
8168de4c | 221 | --enable-prologio use Prolog IO library" |
698dcdb6 | 222 | ac_help="$ac_help |
8168de4c | 223 | --enable-resources use wxWindows resources" |
698dcdb6 | 224 | ac_help="$ac_help |
8168de4c | 225 | --enable-xresources use X resources for save (default for gtk+)" |
698dcdb6 | 226 | ac_help="$ac_help |
8168de4c | 227 | --enable-clipboard use wxClipboard classes" |
698dcdb6 | 228 | ac_help="$ac_help |
8168de4c | 229 | --enable-dnd use Drag'n'Drop classes" |
698dcdb6 | 230 | ac_help="$ac_help |
8168de4c | 231 | --enable-metafile use win32 metafiles" |
698dcdb6 | 232 | ac_help="$ac_help |
8168de4c | 233 | --enable-wxtree make wxTree library" |
698dcdb6 | 234 | ac_help="$ac_help |
8168de4c | 235 | --enable-controls use all usual controls" |
698dcdb6 | 236 | ac_help="$ac_help |
8168de4c | 237 | --enable-accel use accelerators" |
698dcdb6 | 238 | ac_help="$ac_help |
8168de4c | 239 | --enable-button use wxButton class" |
698dcdb6 | 240 | ac_help="$ac_help |
8168de4c | 241 | --enable-bmpbutton use wxBitmapButton class" |
698dcdb6 | 242 | ac_help="$ac_help |
8168de4c | 243 | --enable-calendar use wxCalendarCtrl class" |
1e6feb95 | 244 | ac_help="$ac_help |
8168de4c | 245 | --enable-caret use wxCaret class" |
1e6feb95 | 246 | ac_help="$ac_help |
8168de4c | 247 | --enable-checkbox use wxCheckBox class" |
698dcdb6 | 248 | ac_help="$ac_help |
8168de4c | 249 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class" |
698dcdb6 | 250 | ac_help="$ac_help |
8168de4c | 251 | --enable-choice use wxChoice class" |
698dcdb6 | 252 | ac_help="$ac_help |
8168de4c | 253 | --enable-combobox use wxComboBox classes" |
698dcdb6 | 254 | ac_help="$ac_help |
8168de4c | 255 | --enable-gauge use wxGauge class" |
698dcdb6 | 256 | ac_help="$ac_help |
8168de4c | 257 | --enable-grid use wxGrid class" |
698dcdb6 | 258 | ac_help="$ac_help |
8168de4c | 259 | --enable-newgrid use new wxGrid class" |
698dcdb6 | 260 | ac_help="$ac_help |
8168de4c | 261 | --enable-imaglist use wxImageList class" |
698dcdb6 | 262 | ac_help="$ac_help |
8168de4c | 263 | --enable-listbox use wxListBox class" |
698dcdb6 | 264 | ac_help="$ac_help |
8168de4c | 265 | --enable-listctrl use wxListCtrl class" |
698dcdb6 | 266 | ac_help="$ac_help |
8168de4c | 267 | --enable-notebook use wxNotebook class" |
698dcdb6 | 268 | ac_help="$ac_help |
8168de4c | 269 | --enable-radiobox use wxRadioBox class" |
698dcdb6 | 270 | ac_help="$ac_help |
8168de4c | 271 | --enable-radiobtn use wxRadioButton class" |
698dcdb6 | 272 | ac_help="$ac_help |
8168de4c | 273 | --enable-sash use wxSashWindow class" |
698dcdb6 | 274 | ac_help="$ac_help |
8168de4c | 275 | --enable-scrollbar use wxScrollBar class and scrollable windows" |
698dcdb6 | 276 | ac_help="$ac_help |
8168de4c | 277 | --enable-slider use wxSlider class" |
698dcdb6 | 278 | ac_help="$ac_help |
8168de4c | 279 | --enable-spinbtn use wxSpinButton class" |
698dcdb6 | 280 | ac_help="$ac_help |
8168de4c | 281 | --enable-spinctrl use wxSpinCtrl class" |
698dcdb6 | 282 | ac_help="$ac_help |
8168de4c | 283 | --enable-splitter use wxSplitterWindow class" |
698dcdb6 | 284 | ac_help="$ac_help |
8168de4c | 285 | --enable-statbmp use wxStaticBitmap class" |
698dcdb6 | 286 | ac_help="$ac_help |
8168de4c | 287 | --enable-statbox use wxStaticBox class" |
698dcdb6 | 288 | ac_help="$ac_help |
8168de4c | 289 | --enable-statline use wxStaticLine class" |
698dcdb6 | 290 | ac_help="$ac_help |
8168de4c | 291 | --enable-stattext use wxStaticText class" |
1e6feb95 | 292 | ac_help="$ac_help |
8168de4c | 293 | --enable-statusbar use wxStatusBar class" |
698dcdb6 | 294 | ac_help="$ac_help |
8168de4c | 295 | --enable-tabdialog use wxTabControl class" |
698dcdb6 | 296 | ac_help="$ac_help |
8168de4c | 297 | --enable-textctrl use wxTextCtrl class" |
1e6feb95 | 298 | ac_help="$ac_help |
8168de4c | 299 | --enable-togglebtn use wxToggleButton class" |
698dcdb6 | 300 | ac_help="$ac_help |
8168de4c | 301 | --enable-toolbar use wxToolBar class" |
698dcdb6 | 302 | ac_help="$ac_help |
8168de4c | 303 | --enable-tbarnative use native wxToolBar class" |
698dcdb6 | 304 | ac_help="$ac_help |
8168de4c | 305 | --enable-tbarsmpl use wxToolBarSimple class" |
698dcdb6 | 306 | ac_help="$ac_help |
8168de4c | 307 | --enable-treectrl use wxTreeCtrl class" |
9f41d601 RR |
308 | ac_help="$ac_help |
309 | --enable-popupwin use wxPopUpWindow class" | |
698dcdb6 | 310 | ac_help="$ac_help |
8168de4c | 311 | --enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)" |
698dcdb6 | 312 | ac_help="$ac_help |
8168de4c | 313 | --enable-choicedlg use wxChoiceDialog" |
1e6feb95 | 314 | ac_help="$ac_help |
8168de4c | 315 | --enable-coldlg use wxColourDialog" |
1e6feb95 | 316 | ac_help="$ac_help |
8168de4c | 317 | --enable-filedlg use wxFileDialog" |
1e6feb95 | 318 | ac_help="$ac_help |
8168de4c | 319 | --enable-fontdlg use wxFontDialog" |
1e6feb95 | 320 | ac_help="$ac_help |
8168de4c | 321 | --enable-dirdlg use wxDirDialog" |
698dcdb6 | 322 | ac_help="$ac_help |
8168de4c | 323 | --enable-msgdlg use wxMessageDialog" |
1e6feb95 | 324 | ac_help="$ac_help |
8168de4c | 325 | --enable-numberdlg use wxNumberEntryDialog" |
1e6feb95 | 326 | ac_help="$ac_help |
8168de4c | 327 | --enable-textdlg use wxTextDialog" |
698dcdb6 | 328 | ac_help="$ac_help |
8168de4c | 329 | --enable-tipdlg use startup tips" |
698dcdb6 | 330 | ac_help="$ac_help |
8168de4c | 331 | --enable-progressdlg use wxProgressDialog" |
b1f5d087 VZ |
332 | ac_help="$ac_help |
333 | --enable-wizarddlg use wxWizard" | |
698dcdb6 | 334 | ac_help="$ac_help |
8168de4c | 335 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes" |
1e6feb95 | 336 | ac_help="$ac_help |
8168de4c | 337 | --enable-miniframe use wxMiniFrame class" |
698dcdb6 | 338 | ac_help="$ac_help |
8168de4c | 339 | --enable-tooltips use wxToolTip class" |
698dcdb6 | 340 | ac_help="$ac_help |
8168de4c | 341 | --enable-splines use spline drawing code" |
698dcdb6 | 342 | ac_help="$ac_help |
8168de4c | 343 | --enable-validators use wxValidator and derived classes" |
698dcdb6 | 344 | ac_help="$ac_help |
8168de4c | 345 | --enable-busyinfo use wxBusyInfo" |
698dcdb6 | 346 | ac_help="$ac_help |
8168de4c | 347 | --enable-joystick compile in joystick support (Linux only)" |
698dcdb6 | 348 | ac_help="$ac_help |
8168de4c | 349 | --enable-metafiles use wxMetaFile (Windows only)" |
24fd6d87 VZ |
350 | ac_help="$ac_help |
351 | --enable-dragimage use wxDragImage" | |
1e6feb95 | 352 | ac_help="$ac_help |
8168de4c | 353 | --enable-image use wxImage class" |
698dcdb6 | 354 | ac_help="$ac_help |
8168de4c | 355 | --enable-gif use gif images (GIF file format)" |
698dcdb6 | 356 | ac_help="$ac_help |
8168de4c | 357 | --enable-pcx use pcx images (PCX file format)" |
698dcdb6 | 358 | ac_help="$ac_help |
8168de4c | 359 | --enable-pnm use pnm images (PNM file format)" |
698dcdb6 | 360 | ac_help="$ac_help |
8168de4c | 361 | --enable-xpm use xpm images (XPM file format)" |
698dcdb6 VZ |
362 | ac_help="$ac_help |
363 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
364 | ac_help="$ac_help | |
365 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
366 | ac_help="$ac_help | |
367 | --disable-gtktest Do not try to compile and run a test GTK program" | |
368 | ac_help="$ac_help | |
369 | --with-x use the X Window System" | |
10f2d63a VZ |
370 | |
371 | # Initialize some variables set by options. | |
372 | # The variables have the same names as the options, with | |
373 | # dashes changed to underlines. | |
698dcdb6 VZ |
374 | build=NONE |
375 | cache_file=./config.cache | |
10f2d63a | 376 | exec_prefix=NONE |
698dcdb6 | 377 | host=NONE |
10f2d63a | 378 | no_create= |
698dcdb6 | 379 | nonopt=NONE |
10f2d63a VZ |
380 | no_recursion= |
381 | prefix=NONE | |
382 | program_prefix=NONE | |
383 | program_suffix=NONE | |
384 | program_transform_name=s,x,x, | |
385 | silent= | |
386 | site= | |
387 | srcdir= | |
698dcdb6 | 388 | target=NONE |
10f2d63a VZ |
389 | verbose= |
390 | x_includes=NONE | |
391 | x_libraries=NONE | |
392 | bindir='${exec_prefix}/bin' | |
393 | sbindir='${exec_prefix}/sbin' | |
394 | libexecdir='${exec_prefix}/libexec' | |
395 | datadir='${prefix}/share' | |
396 | sysconfdir='${prefix}/etc' | |
397 | sharedstatedir='${prefix}/com' | |
398 | localstatedir='${prefix}/var' | |
399 | libdir='${exec_prefix}/lib' | |
400 | includedir='${prefix}/include' | |
401 | oldincludedir='/usr/include' | |
402 | infodir='${prefix}/info' | |
403 | mandir='${prefix}/man' | |
404 | ||
698dcdb6 VZ |
405 | # Initialize some other variables. |
406 | subdirs= | |
407 | MFLAGS= MAKEFLAGS= | |
408 | SHELL=${CONFIG_SHELL-/bin/sh} | |
409 | # Maximum number of lines to put in a shell here document. | |
410 | ac_max_here_lines=12 | |
10f2d63a VZ |
411 | |
412 | ac_prev= | |
413 | for ac_option | |
414 | do | |
698dcdb6 | 415 | |
10f2d63a VZ |
416 | # If the previous option needs an argument, assign it. |
417 | if test -n "$ac_prev"; then | |
418 | eval "$ac_prev=\$ac_option" | |
419 | ac_prev= | |
420 | continue | |
421 | fi | |
422 | ||
698dcdb6 VZ |
423 | case "$ac_option" in |
424 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
425 | *) ac_optarg= ;; | |
426 | esac | |
10f2d63a VZ |
427 | |
428 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
429 | ||
698dcdb6 | 430 | case "$ac_option" in |
10f2d63a VZ |
431 | |
432 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
433 | ac_prev=bindir ;; | |
434 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
698dcdb6 | 435 | bindir="$ac_optarg" ;; |
10f2d63a VZ |
436 | |
437 | -build | --build | --buil | --bui | --bu) | |
698dcdb6 | 438 | ac_prev=build ;; |
10f2d63a | 439 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
698dcdb6 | 440 | build="$ac_optarg" ;; |
10f2d63a VZ |
441 | |
442 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
443 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
444 | ac_prev=cache_file ;; | |
445 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
446 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
698dcdb6 | 447 | cache_file="$ac_optarg" ;; |
10f2d63a VZ |
448 | |
449 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
450 | ac_prev=datadir ;; | |
451 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
452 | | --da=*) | |
698dcdb6 | 453 | datadir="$ac_optarg" ;; |
10f2d63a VZ |
454 | |
455 | -disable-* | --disable-*) | |
698dcdb6 | 456 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
10f2d63a | 457 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
458 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
459 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
460 | fi | |
461 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
462 | eval "enable_${ac_feature}=no" ;; | |
10f2d63a VZ |
463 | |
464 | -enable-* | --enable-*) | |
698dcdb6 | 465 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
10f2d63a | 466 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
467 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
468 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
469 | fi | |
470 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
471 | case "$ac_option" in | |
472 | *=*) ;; | |
10f2d63a VZ |
473 | *) ac_optarg=yes ;; |
474 | esac | |
698dcdb6 | 475 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
10f2d63a VZ |
476 | |
477 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
478 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
479 | | --exec | --exe | --ex) | |
480 | ac_prev=exec_prefix ;; | |
481 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
482 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
483 | | --exec=* | --exe=* | --ex=*) | |
698dcdb6 | 484 | exec_prefix="$ac_optarg" ;; |
10f2d63a VZ |
485 | |
486 | -gas | --gas | --ga | --g) | |
487 | # Obsolete; use --with-gas. | |
488 | with_gas=yes ;; | |
489 | ||
698dcdb6 VZ |
490 | -help | --help | --hel | --he) |
491 | # Omit some internal or obsolete options to make the list less imposing. | |
492 | # This message is too long to be a string in the A/UX 3.1 sh. | |
493 | cat << EOF | |
494 | Usage: configure [options] [host] | |
495 | Options: [defaults in brackets after descriptions] | |
496 | Configuration: | |
497 | --cache-file=FILE cache test results in FILE | |
498 | --help print this message | |
499 | --no-create do not create output files | |
500 | --quiet, --silent do not print \`checking...' messages | |
501 | --version print the version of autoconf that created configure | |
502 | Directory and file names: | |
503 | --prefix=PREFIX install architecture-independent files in PREFIX | |
504 | [$ac_default_prefix] | |
505 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
506 | [same as prefix] | |
507 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
508 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
509 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
510 | --datadir=DIR read-only architecture-independent data in DIR | |
511 | [PREFIX/share] | |
512 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
513 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
514 | [PREFIX/com] | |
515 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
516 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
517 | --includedir=DIR C header files in DIR [PREFIX/include] | |
518 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
519 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
520 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
521 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
522 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
523 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
524 | --program-transform-name=PROGRAM | |
525 | run sed PROGRAM on installed program names | |
526 | EOF | |
527 | cat << EOF | |
528 | Host type: | |
529 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
530 | --host=HOST configure for HOST [guessed] | |
531 | --target=TARGET configure for TARGET [TARGET=HOST] | |
532 | Features and packages: | |
533 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
534 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
535 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
536 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
537 | --x-includes=DIR X include files are in DIR | |
538 | --x-libraries=DIR X library files are in DIR | |
539 | EOF | |
540 | if test -n "$ac_help"; then | |
541 | echo "--enable and --with options recognized:$ac_help" | |
542 | fi | |
543 | exit 0 ;; | |
10f2d63a VZ |
544 | |
545 | -host | --host | --hos | --ho) | |
698dcdb6 | 546 | ac_prev=host ;; |
10f2d63a | 547 | -host=* | --host=* | --hos=* | --ho=*) |
698dcdb6 | 548 | host="$ac_optarg" ;; |
10f2d63a VZ |
549 | |
550 | -includedir | --includedir | --includedi | --included | --include \ | |
551 | | --includ | --inclu | --incl | --inc) | |
552 | ac_prev=includedir ;; | |
553 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
554 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
698dcdb6 | 555 | includedir="$ac_optarg" ;; |
10f2d63a VZ |
556 | |
557 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
558 | ac_prev=infodir ;; | |
559 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
698dcdb6 | 560 | infodir="$ac_optarg" ;; |
10f2d63a VZ |
561 | |
562 | -libdir | --libdir | --libdi | --libd) | |
563 | ac_prev=libdir ;; | |
564 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
698dcdb6 | 565 | libdir="$ac_optarg" ;; |
10f2d63a VZ |
566 | |
567 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
568 | | --libexe | --libex | --libe) | |
569 | ac_prev=libexecdir ;; | |
570 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
571 | | --libexe=* | --libex=* | --libe=*) | |
698dcdb6 | 572 | libexecdir="$ac_optarg" ;; |
10f2d63a VZ |
573 | |
574 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
575 | | --localstate | --localstat | --localsta | --localst \ | |
576 | | --locals | --local | --loca | --loc | --lo) | |
577 | ac_prev=localstatedir ;; | |
578 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
579 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
580 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
698dcdb6 | 581 | localstatedir="$ac_optarg" ;; |
10f2d63a VZ |
582 | |
583 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
584 | ac_prev=mandir ;; | |
585 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
698dcdb6 | 586 | mandir="$ac_optarg" ;; |
10f2d63a VZ |
587 | |
588 | -nfp | --nfp | --nf) | |
589 | # Obsolete; use --without-fp. | |
590 | with_fp=no ;; | |
591 | ||
592 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
593 | | --no-cr | --no-c) | |
594 | no_create=yes ;; | |
595 | ||
596 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
597 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
598 | no_recursion=yes ;; | |
599 | ||
600 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
601 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
602 | | --oldin | --oldi | --old | --ol | --o) | |
603 | ac_prev=oldincludedir ;; | |
604 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
605 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
606 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
698dcdb6 | 607 | oldincludedir="$ac_optarg" ;; |
10f2d63a VZ |
608 | |
609 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
610 | ac_prev=prefix ;; | |
611 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
698dcdb6 | 612 | prefix="$ac_optarg" ;; |
10f2d63a VZ |
613 | |
614 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
615 | | --program-pre | --program-pr | --program-p) | |
616 | ac_prev=program_prefix ;; | |
617 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
618 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
698dcdb6 | 619 | program_prefix="$ac_optarg" ;; |
10f2d63a VZ |
620 | |
621 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
622 | | --program-suf | --program-su | --program-s) | |
623 | ac_prev=program_suffix ;; | |
624 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
625 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
698dcdb6 | 626 | program_suffix="$ac_optarg" ;; |
10f2d63a VZ |
627 | |
628 | -program-transform-name | --program-transform-name \ | |
629 | | --program-transform-nam | --program-transform-na \ | |
630 | | --program-transform-n | --program-transform- \ | |
631 | | --program-transform | --program-transfor \ | |
632 | | --program-transfo | --program-transf \ | |
633 | | --program-trans | --program-tran \ | |
634 | | --progr-tra | --program-tr | --program-t) | |
635 | ac_prev=program_transform_name ;; | |
636 | -program-transform-name=* | --program-transform-name=* \ | |
637 | | --program-transform-nam=* | --program-transform-na=* \ | |
638 | | --program-transform-n=* | --program-transform-=* \ | |
639 | | --program-transform=* | --program-transfor=* \ | |
640 | | --program-transfo=* | --program-transf=* \ | |
641 | | --program-trans=* | --program-tran=* \ | |
642 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
698dcdb6 | 643 | program_transform_name="$ac_optarg" ;; |
10f2d63a VZ |
644 | |
645 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
646 | | -silent | --silent | --silen | --sile | --sil) | |
647 | silent=yes ;; | |
648 | ||
649 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
650 | ac_prev=sbindir ;; | |
651 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
652 | | --sbi=* | --sb=*) | |
698dcdb6 | 653 | sbindir="$ac_optarg" ;; |
10f2d63a VZ |
654 | |
655 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
656 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
657 | | --sharedst | --shareds | --shared | --share | --shar \ | |
658 | | --sha | --sh) | |
659 | ac_prev=sharedstatedir ;; | |
660 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
661 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
662 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
663 | | --sha=* | --sh=*) | |
698dcdb6 | 664 | sharedstatedir="$ac_optarg" ;; |
10f2d63a VZ |
665 | |
666 | -site | --site | --sit) | |
667 | ac_prev=site ;; | |
668 | -site=* | --site=* | --sit=*) | |
698dcdb6 | 669 | site="$ac_optarg" ;; |
10f2d63a VZ |
670 | |
671 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
672 | ac_prev=srcdir ;; | |
673 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
698dcdb6 | 674 | srcdir="$ac_optarg" ;; |
10f2d63a VZ |
675 | |
676 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
677 | | --syscon | --sysco | --sysc | --sys | --sy) | |
678 | ac_prev=sysconfdir ;; | |
679 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
680 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
698dcdb6 | 681 | sysconfdir="$ac_optarg" ;; |
10f2d63a VZ |
682 | |
683 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
698dcdb6 | 684 | ac_prev=target ;; |
10f2d63a | 685 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
698dcdb6 | 686 | target="$ac_optarg" ;; |
10f2d63a VZ |
687 | |
688 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
689 | verbose=yes ;; | |
690 | ||
698dcdb6 VZ |
691 | -version | --version | --versio | --versi | --vers) |
692 | echo "configure generated by autoconf version 2.13" | |
693 | exit 0 ;; | |
10f2d63a VZ |
694 | |
695 | -with-* | --with-*) | |
698dcdb6 | 696 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
10f2d63a | 697 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
698 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
699 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
700 | fi | |
10f2d63a | 701 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
698dcdb6 VZ |
702 | case "$ac_option" in |
703 | *=*) ;; | |
10f2d63a VZ |
704 | *) ac_optarg=yes ;; |
705 | esac | |
698dcdb6 | 706 | eval "with_${ac_package}='$ac_optarg'" ;; |
10f2d63a VZ |
707 | |
708 | -without-* | --without-*) | |
698dcdb6 | 709 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
10f2d63a | 710 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
711 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
712 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
713 | fi | |
714 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
715 | eval "with_${ac_package}=no" ;; | |
10f2d63a VZ |
716 | |
717 | --x) | |
718 | # Obsolete; use --with-x. | |
719 | with_x=yes ;; | |
720 | ||
721 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
722 | | --x-incl | --x-inc | --x-in | --x-i) | |
723 | ac_prev=x_includes ;; | |
724 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
725 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
698dcdb6 | 726 | x_includes="$ac_optarg" ;; |
10f2d63a VZ |
727 | |
728 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
729 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
730 | ac_prev=x_libraries ;; | |
731 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
732 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
698dcdb6 | 733 | x_libraries="$ac_optarg" ;; |
10f2d63a | 734 | |
698dcdb6 | 735 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
10f2d63a VZ |
736 | ;; |
737 | ||
738 | *) | |
698dcdb6 VZ |
739 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
740 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
741 | fi | |
742 | if test "x$nonopt" != xNONE; then | |
743 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
744 | fi | |
745 | nonopt="$ac_option" | |
10f2d63a VZ |
746 | ;; |
747 | ||
748 | esac | |
749 | done | |
750 | ||
751 | if test -n "$ac_prev"; then | |
698dcdb6 VZ |
752 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
753 | fi | |
754 | ||
755 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
756 | ||
757 | # File descriptor usage: | |
758 | # 0 standard input | |
759 | # 1 file creation | |
760 | # 2 errors and warnings | |
761 | # 3 some systems may open it to /dev/tty | |
762 | # 4 used on the Kubota Titan | |
763 | # 6 checking for... messages and results | |
764 | # 5 compiler messages saved in config.log | |
765 | if test "$silent" = yes; then | |
766 | exec 6>/dev/null | |
767 | else | |
768 | exec 6>&1 | |
10f2d63a | 769 | fi |
698dcdb6 VZ |
770 | exec 5>./config.log |
771 | ||
772 | echo "\ | |
773 | This file contains any messages produced by compilers while | |
774 | running configure, to aid debugging if configure makes a mistake. | |
775 | " 1>&5 | |
10f2d63a | 776 | |
698dcdb6 VZ |
777 | # Strip out --no-create and --no-recursion so they do not pile up. |
778 | # Also quote any args containing shell metacharacters. | |
779 | ac_configure_args= | |
780 | for ac_arg | |
10f2d63a | 781 | do |
698dcdb6 VZ |
782 | case "$ac_arg" in |
783 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
784 | | --no-cr | --no-c) ;; | |
785 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
786 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
787 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
788 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
789 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
10f2d63a VZ |
790 | esac |
791 | done | |
792 | ||
698dcdb6 VZ |
793 | # NLS nuisances. |
794 | # Only set these to C if already set. These must not be set unconditionally | |
795 | # because not all systems understand e.g. LANG=C (notably SCO). | |
796 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
797 | # Non-C LC_CTYPE values break the ctype check. | |
798 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
799 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
800 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
801 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
10f2d63a | 802 | |
698dcdb6 VZ |
803 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
804 | rm -rf conftest* confdefs.h | |
805 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
806 | echo > confdefs.h | |
10f2d63a | 807 | |
698dcdb6 VZ |
808 | # A filename unique to this package, relative to the directory that |
809 | # configure is in, which we can look for to find out if srcdir is correct. | |
810 | ac_unique_file=wx-config.in | |
10f2d63a VZ |
811 | |
812 | # Find the source files, if location was not specified. | |
813 | if test -z "$srcdir"; then | |
814 | ac_srcdir_defaulted=yes | |
815 | # Try the directory containing this script, then its parent. | |
816 | ac_prog=$0 | |
698dcdb6 | 817 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
10f2d63a VZ |
818 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
819 | srcdir=$ac_confdir | |
820 | if test ! -r $srcdir/$ac_unique_file; then | |
821 | srcdir=.. | |
822 | fi | |
823 | else | |
824 | ac_srcdir_defaulted=no | |
825 | fi | |
826 | if test ! -r $srcdir/$ac_unique_file; then | |
827 | if test "$ac_srcdir_defaulted" = yes; then | |
698dcdb6 | 828 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
10f2d63a | 829 | else |
698dcdb6 | 830 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
10f2d63a VZ |
831 | fi |
832 | fi | |
698dcdb6 | 833 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
10f2d63a VZ |
834 | |
835 | # Prefer explicitly selected file to automatically selected ones. | |
836 | if test -z "$CONFIG_SITE"; then | |
837 | if test "x$prefix" != xNONE; then | |
838 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
839 | else | |
840 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
841 | fi | |
842 | fi | |
843 | for ac_site_file in $CONFIG_SITE; do | |
844 | if test -r "$ac_site_file"; then | |
698dcdb6 | 845 | echo "loading site script $ac_site_file" |
10f2d63a VZ |
846 | . "$ac_site_file" |
847 | fi | |
848 | done | |
849 | ||
850 | if test -r "$cache_file"; then | |
698dcdb6 VZ |
851 | echo "loading cache $cache_file" |
852 | . $cache_file | |
10f2d63a | 853 | else |
698dcdb6 VZ |
854 | echo "creating cache $cache_file" |
855 | > $cache_file | |
10f2d63a VZ |
856 | fi |
857 | ||
858 | ac_ext=c | |
698dcdb6 | 859 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 860 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
861 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
862 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
863 | cross_compiling=$ac_cv_prog_cc_cross | |
864 | ||
865 | ac_exeext= | |
866 | ac_objext=o | |
867 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
868 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
869 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
870 | ac_n= ac_c=' | |
871 | ' ac_t=' ' | |
872 | else | |
873 | ac_n=-n ac_c= ac_t= | |
874 | fi | |
10f2d63a | 875 | else |
698dcdb6 | 876 | ac_n= ac_c='\c' ac_t= |
10f2d63a | 877 | fi |
698dcdb6 VZ |
878 | |
879 | ||
10f2d63a | 880 | |
7c66a493 VZ |
881 | ac_aux_dir= |
882 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
883 | if test -f $ac_dir/install-sh; then | |
884 | ac_aux_dir=$ac_dir | |
885 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
886 | break | |
887 | elif test -f $ac_dir/install.sh; then | |
888 | ac_aux_dir=$ac_dir | |
889 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
890 | break | |
891 | fi | |
892 | done | |
893 | if test -z "$ac_aux_dir"; then | |
698dcdb6 | 894 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
7c66a493 | 895 | fi |
698dcdb6 VZ |
896 | ac_config_guess=$ac_aux_dir/config.guess |
897 | ac_config_sub=$ac_aux_dir/config.sub | |
898 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
703e0a69 | 899 | |
698dcdb6 VZ |
900 | |
901 | # Do some error checking and defaulting for the host and target type. | |
902 | # The inputs are: | |
903 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
904 | # | |
905 | # The rules are: | |
906 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
907 | # same time. | |
908 | # 2. Host defaults to nonopt. | |
909 | # 3. If nonopt is not specified, then host defaults to the current host, | |
910 | # as determined by config.guess. | |
911 | # 4. Target and build default to nonopt. | |
912 | # 5. If nonopt is not specified, then target and build default to host. | |
7c66a493 VZ |
913 | |
914 | # The aliases save the names the user supplied, while $host etc. | |
915 | # will get canonicalized. | |
698dcdb6 VZ |
916 | case $host---$target---$nonopt in |
917 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
918 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
919 | esac | |
920 | ||
921 | ||
922 | # Make sure we can run config.sub. | |
923 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
924 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
925 | fi | |
926 | ||
927 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
29fd3c0c | 928 | echo "configure:929: checking host system type" >&5 |
698dcdb6 VZ |
929 | |
930 | host_alias=$host | |
931 | case "$host_alias" in | |
932 | NONE) | |
933 | case $nonopt in | |
934 | NONE) | |
935 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
936 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
937 | fi ;; | |
938 | *) host_alias=$nonopt ;; | |
939 | esac ;; | |
940 | esac | |
941 | ||
942 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
943 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
944 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
945 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
946 | echo "$ac_t""$host" 1>&6 | |
947 | ||
948 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
29fd3c0c | 949 | echo "configure:950: checking target system type" >&5 |
698dcdb6 VZ |
950 | |
951 | target_alias=$target | |
952 | case "$target_alias" in | |
953 | NONE) | |
954 | case $nonopt in | |
955 | NONE) target_alias=$host_alias ;; | |
956 | *) target_alias=$nonopt ;; | |
957 | esac ;; | |
958 | esac | |
959 | ||
960 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
961 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
962 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
963 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
964 | echo "$ac_t""$target" 1>&6 | |
965 | ||
966 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
29fd3c0c | 967 | echo "configure:968: checking build system type" >&5 |
698dcdb6 VZ |
968 | |
969 | build_alias=$build | |
970 | case "$build_alias" in | |
971 | NONE) | |
972 | case $nonopt in | |
973 | NONE) build_alias=$host_alias ;; | |
974 | *) build_alias=$nonopt ;; | |
975 | esac ;; | |
976 | esac | |
977 | ||
978 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
979 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
980 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
981 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
982 | echo "$ac_t""$build" 1>&6 | |
983 | ||
984 | test "$host_alias" != "$target_alias" && | |
7c66a493 VZ |
985 | test "$program_prefix$program_suffix$program_transform_name" = \ |
986 | NONENONEs,x,x, && | |
987 | program_prefix=${target_alias}- | |
988 | ||
698dcdb6 VZ |
989 | |
990 | ||
10f2d63a | 991 | WX_MAJOR_VERSION_NUMBER=2 |
37d403aa | 992 | WX_MINOR_VERSION_NUMBER=3 |
6c01ec02 | 993 | WX_RELEASE_NUMBER=2 |
10f2d63a | 994 | |
10f2d63a | 995 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER |
10f2d63a | 996 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER |
6426998c | 997 | |
6c01ec02 | 998 | WX_CURRENT=1 |
6426998c RL |
999 | WX_REVISION=0 |
1000 | WX_AGE=0 | |
1001 | ||
698dcdb6 VZ |
1002 | |
1003 | ||
10f2d63a VZ |
1004 | USE_UNIX=1 |
1005 | USE_WIN32=0 | |
b12915c1 | 1006 | USE_BEOS=0 |
1216f52d | 1007 | USE_MAC=0 |
b12915c1 | 1008 | |
10f2d63a VZ |
1009 | USE_LINUX= |
1010 | USE_SGI= | |
1011 | USE_HPUX= | |
1012 | USE_SYSV= | |
1013 | USE_SVR4= | |
1014 | USE_AIX= | |
1015 | USE_SUN= | |
1016 | USE_SOLARIS= | |
1017 | USE_SUNOS= | |
1018 | USE_ALPHA= | |
1019 | USE_OSF= | |
1020 | USE_BSD= | |
1021 | USE_FREEBSD= | |
95c8801c | 1022 | USE_OPENBSD= |
f6bcfd97 | 1023 | USE_NETBSD= |
10f2d63a VZ |
1024 | USE_VMS= |
1025 | USE_ULTRIX= | |
1026 | USE_CYGWIN= | |
1027 | USE_MINGW= | |
1028 | USE_DATA_GENERAL= | |
1029 | ||
ab9b9eab VZ |
1030 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 |
1031 | ||
1e6feb95 | 1032 | ALL_TOOLKITS="CYGWIN GTK MAC MGL MINGW MOTIF PM WINE" |
10f2d63a VZ |
1033 | |
1034 | DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1035 | DEFAULT_wxUSE_MAC=0 |
1036 | DEFAULT_wxUSE_MGL=0 | |
10f2d63a VZ |
1037 | DEFAULT_wxUSE_MOTIF=0 |
1038 | DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1039 | DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1040 | DEFAULT_wxUSE_WINE=0 |
10f2d63a VZ |
1041 | |
1042 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1043 | DEFAULT_DEFAULT_wxUSE_MAC=0 |
1044 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
10f2d63a VZ |
1045 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 |
1046 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1047 | DEFAULT_DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1048 | DEFAULT_DEFAULT_wxUSE_WINE=0 |
10f2d63a | 1049 | |
d6a55c4b VZ |
1050 | PROGRAM_EXT= |
1051 | ||
10f2d63a VZ |
1052 | case "${host}" in |
1053 | *-hp-hpux* ) | |
1054 | USE_HPUX=1 | |
1055 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1056 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
698dcdb6 | 1057 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1058 | #define __HPUX__ 1 |
1059 | EOF | |
1060 | ||
1061 | ;; | |
1062 | *-*-linux* ) | |
1063 | USE_LINUX=1 | |
698dcdb6 | 1064 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1065 | #define __LINUX__ 1 |
1066 | EOF | |
1067 | ||
1068 | TMP=`uname -m` | |
1069 | if test "x$TMP" = "xalpha"; then | |
1070 | USE_ALPHA=1 | |
698dcdb6 | 1071 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1072 | #define __ALPHA__ 1 |
1073 | EOF | |
1074 | ||
1075 | fi | |
1076 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1077 | ;; | |
1078 | *-*-irix5* | *-*-irix6* ) | |
1079 | USE_SGI=1 | |
1080 | USE_SVR4=1 | |
698dcdb6 | 1081 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1082 | #define __SGI__ 1 |
1083 | EOF | |
1084 | ||
698dcdb6 | 1085 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1086 | #define __SVR4__ 1 |
1087 | EOF | |
1088 | ||
1089 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1090 | ;; | |
1091 | *-*-solaris2* ) | |
1092 | USE_SUN=1 | |
1093 | USE_SOLARIS=1 | |
1094 | USE_SVR4=1 | |
698dcdb6 | 1095 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1096 | #define __SUN__ 1 |
1097 | EOF | |
1098 | ||
698dcdb6 | 1099 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1100 | #define __SOLARIS__ 1 |
1101 | EOF | |
1102 | ||
698dcdb6 | 1103 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1104 | #define __SVR4__ 1 |
1105 | EOF | |
1106 | ||
1107 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1108 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1109 | ;; |
1110 | *-*-sunos4* ) | |
1111 | USE_SUN=1 | |
1112 | USE_SUNOS=1 | |
1113 | USE_BSD=1 | |
698dcdb6 | 1114 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1115 | #define __SUN__ 1 |
1116 | EOF | |
1117 | ||
698dcdb6 | 1118 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1119 | #define __SUNOS__ 1 |
1120 | EOF | |
1121 | ||
698dcdb6 | 1122 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1123 | #define __BSD__ 1 |
1124 | EOF | |
1125 | ||
1126 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1127 | ;; | |
f6bcfd97 | 1128 | *-*-freebsd*) |
10f2d63a VZ |
1129 | USE_BSD=1 |
1130 | USE_FREEBSD=1 | |
698dcdb6 | 1131 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1132 | #define __FREEBSD__ 1 |
1133 | EOF | |
1134 | ||
698dcdb6 | 1135 | cat >> confdefs.h <<\EOF |
10f2d63a | 1136 | #define __BSD__ 1 |
95c8801c VS |
1137 | EOF |
1138 | ||
1139 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1140 | ;; | |
1141 | *-*-openbsd*) | |
1142 | USE_BSD=1 | |
1143 | USE_OPENBSD=1 | |
698dcdb6 | 1144 | cat >> confdefs.h <<\EOF |
95c8801c VS |
1145 | #define __FREEBSD__ 1 |
1146 | EOF | |
1147 | ||
698dcdb6 | 1148 | cat >> confdefs.h <<\EOF |
95c8801c | 1149 | #define __OPENBSD__ 1 |
f6bcfd97 BP |
1150 | EOF |
1151 | ||
1152 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1153 | ;; | |
1154 | *-*-netbsd*) | |
1155 | USE_BSD=1 | |
1156 | USE_NETBSD=1 | |
698dcdb6 | 1157 | cat >> confdefs.h <<\EOF |
f6bcfd97 BP |
1158 | #define __FREEBSD__ 1 |
1159 | EOF | |
1160 | ||
698dcdb6 | 1161 | cat >> confdefs.h <<\EOF |
f6bcfd97 | 1162 | #define __NETBSD__ 1 |
10f2d63a VZ |
1163 | EOF |
1164 | ||
1165 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1166 | ;; | |
1167 | *-*-osf* ) | |
1168 | USE_ALPHA=1 | |
1169 | USE_OSF=1 | |
698dcdb6 | 1170 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1171 | #define __ALPHA__ 1 |
1172 | EOF | |
1173 | ||
698dcdb6 | 1174 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1175 | #define __OSF__ 1 |
1176 | EOF | |
1177 | ||
1178 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
f6bcfd97 | 1179 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1180 | ;; |
1181 | *-*-dgux5* ) | |
1182 | USE_ALPHA=1 | |
1183 | USE_SVR4=1 | |
698dcdb6 | 1184 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1185 | #define __ALPHA__ 1 |
1186 | EOF | |
1187 | ||
698dcdb6 | 1188 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1189 | #define __SVR4__ 1 |
1190 | EOF | |
1191 | ||
1192 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1193 | ;; | |
1194 | *-*-sysv5* ) | |
1195 | USE_SYSV=1 | |
1196 | USE_SVR4=1 | |
698dcdb6 | 1197 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1198 | #define __SYSV__ 1 |
1199 | EOF | |
1200 | ||
698dcdb6 | 1201 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1202 | #define __SVR4__ 1 |
1203 | EOF | |
1204 | ||
1205 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1206 | ;; | |
1207 | *-*-aix* ) | |
1208 | USE_AIX=1 | |
1209 | USE_SYSV=1 | |
1210 | USE_SVR4=1 | |
698dcdb6 | 1211 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1212 | #define __AIX__ 1 |
1213 | EOF | |
1214 | ||
698dcdb6 | 1215 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1216 | #define __SYSV__ 1 |
1217 | EOF | |
1218 | ||
698dcdb6 | 1219 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1220 | #define __SVR4__ 1 |
1221 | EOF | |
1222 | ||
1223 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1224 | ;; | |
1225 | ||
1c8183e2 | 1226 | *-*-cygwin* | *-*-mingw32* ) |
10f2d63a VZ |
1227 | USE_UNIX=0 |
1228 | USE_WIN32=1 | |
698dcdb6 | 1229 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1230 | #define __WIN32__ 1 |
1231 | EOF | |
1232 | ||
698dcdb6 | 1233 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1234 | #define __WIN95__ 1 |
1235 | EOF | |
1236 | ||
698dcdb6 | 1237 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1238 | #define __WINDOWS__ 1 |
1239 | EOF | |
1240 | ||
698dcdb6 | 1241 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1242 | #define __GNUWIN32__ 1 |
1243 | EOF | |
1244 | ||
698dcdb6 | 1245 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1246 | #define STRICT 1 |
1247 | EOF | |
1248 | ||
698dcdb6 | 1249 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1250 | #define WINVER 0x0400 |
1251 | EOF | |
1252 | ||
cf27ef00 | 1253 | PROGRAM_EXT=".exe" |
10f2d63a VZ |
1254 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
1255 | ;; | |
1256 | ||
1257 | *-pc-os2_emx ) | |
698dcdb6 | 1258 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1259 | #define __EMX__ 1 |
1260 | EOF | |
1261 | ||
cf27ef00 | 1262 | PROGRAM_EXT=".exe" |
e07802fc | 1263 | DEFAULT_DEFAULT_wxUSE_PM=1 |
10f2d63a VZ |
1264 | ;; |
1265 | ||
b4085ce6 GD |
1266 | *-*-darwin* ) |
1267 | USE_BSD=1 | |
1268 | USE_MAC=1 | |
698dcdb6 | 1269 | cat >> confdefs.h <<\EOF |
b4085ce6 GD |
1270 | #define __MAC__ 1 |
1271 | EOF | |
1272 | ||
698dcdb6 | 1273 | cat >> confdefs.h <<\EOF |
b4085ce6 GD |
1274 | #define __BSD__ 1 |
1275 | EOF | |
1276 | ||
698dcdb6 | 1277 | cat >> confdefs.h <<\EOF |
b4085ce6 GD |
1278 | #define __UNIX__ 1 |
1279 | EOF | |
1280 | ||
1281 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1282 | ;; | |
1283 | ||
b12915c1 VZ |
1284 | *-*-beos* ) |
1285 | USE_BEOS=1 | |
698dcdb6 | 1286 | cat >> confdefs.h <<\EOF |
b12915c1 VZ |
1287 | #define __BEOS__ 1 |
1288 | EOF | |
1289 | ||
1290 | ;; | |
1291 | ||
10f2d63a | 1292 | *) |
698dcdb6 | 1293 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } |
10f2d63a VZ |
1294 | esac |
1295 | ||
1296 | if test "$USE_UNIX" = 1 ; then | |
b12915c1 | 1297 | wxUSE_UNIX=yes |
698dcdb6 | 1298 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1299 | #define __UNIX__ 1 |
1300 | EOF | |
1301 | ||
698dcdb6 | 1302 | |
b12915c1 VZ |
1303 | SRC_SUBDIRS="$SRC_SUBDIRS unix" |
1304 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix" | |
1305 | fi | |
1306 | ||
1307 | if test "$USE_BEOS" = 1; then | |
1308 | SRC_SUBDIRS="$SRC_SUBDIRS be" | |
1309 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be" | |
10f2d63a VZ |
1310 | fi |
1311 | ||
1312 | if test "$USE_LINUX" = 1; then | |
698dcdb6 | 1313 | echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6 |
29fd3c0c | 1314 | echo "configure:1315: checking for gettext in -lc" >&5 |
698dcdb6 VZ |
1315 | ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'` |
1316 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1317 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 1318 | else |
698dcdb6 VZ |
1319 | ac_save_LIBS="$LIBS" |
1320 | LIBS="-lc $LIBS" | |
1321 | cat > conftest.$ac_ext <<EOF | |
29fd3c0c | 1322 | #line 1323 "configure" |
698dcdb6 VZ |
1323 | #include "confdefs.h" |
1324 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1325 | /* We use char because int might match the return type of a gcc2 | |
1326 | builtin and then its argument prototype would still apply. */ | |
1327 | char gettext(); | |
10f2d63a | 1328 | |
698dcdb6 VZ |
1329 | int main() { |
1330 | gettext() | |
1331 | ; return 0; } | |
1332 | EOF | |
29fd3c0c | 1333 | if { (eval echo configure:1334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
1334 | rm -rf conftest* |
1335 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 1336 | else |
698dcdb6 VZ |
1337 | echo "configure: failed program was:" >&5 |
1338 | cat conftest.$ac_ext >&5 | |
1339 | rm -rf conftest* | |
1340 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 1341 | fi |
698dcdb6 VZ |
1342 | rm -f conftest* |
1343 | LIBS="$ac_save_LIBS" | |
10f2d63a VZ |
1344 | |
1345 | fi | |
698dcdb6 VZ |
1346 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
1347 | echo "$ac_t""yes" 1>&6 | |
1348 | cat >> confdefs.h <<\EOF | |
1349 | #define wxHAVE_GLIBC2 1 | |
1350 | EOF | |
10f2d63a VZ |
1351 | |
1352 | else | |
698dcdb6 | 1353 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
1354 | fi |
1355 | ||
1356 | fi | |
1357 | ||
1e487827 | 1358 | |
1e487827 | 1359 | |
6232543b | 1360 | |
10f2d63a VZ |
1361 | wx_arg_cache_file="configarg.cache" |
1362 | echo "loading argument cache $wx_arg_cache_file" | |
1363 | rm -f ${wx_arg_cache_file}.tmp | |
1364 | touch ${wx_arg_cache_file}.tmp | |
1365 | touch ${wx_arg_cache_file} | |
698dcdb6 | 1366 | |
10f2d63a VZ |
1367 | |
1368 | DEBUG_CONFIGURE=0 | |
1369 | if test $DEBUG_CONFIGURE = 1; then | |
1e6feb95 VZ |
1370 | DEFAULT_wxUSE_UNIVERSAL=no |
1371 | ||
10f2d63a VZ |
1372 | DEFAULT_wxUSE_THREADS=yes |
1373 | ||
1374 | DEFAULT_wxUSE_SHARED=yes | |
00cf1208 | 1375 | DEFAULT_wxUSE_BURNT_NAME=no |
1e6feb95 | 1376 | DEFAULT_wxUSE_OPTIMISE=no |
10f2d63a VZ |
1377 | DEFAULT_wxUSE_PROFILE=no |
1378 | DEFAULT_wxUSE_NO_DEPS=no | |
1379 | DEFAULT_wxUSE_NO_RTTI=no | |
1380 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
1381 | DEFAULT_wxUSE_PERMISSIVE=no | |
1382 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1383 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1384 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1385 | DEFAULT_wxUSE_MEM_TRACING=no | |
1386 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1387 | DEFAULT_wxUSE_DMALLOC=no | |
1388 | DEFAULT_wxUSE_APPLE_IEEE=no | |
1389 | ||
1390 | DEFAULT_wxUSE_LOG=yes | |
1e6feb95 VZ |
1391 | DEFAULT_wxUSE_LOGWINDOW=no |
1392 | DEFAULT_wxUSE_LOGGUI=no | |
10f2d63a VZ |
1393 | |
1394 | DEFAULT_wxUSE_GUI=yes | |
1e6feb95 | 1395 | DEFAULT_wxUSE_CONTROLS=no |
10f2d63a VZ |
1396 | |
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 VS |
1449 | DEFAULT_wxUSE_MS_HTML_HELP=no |
1450 | ||
3379ed37 | 1451 | DEFAULT_wxUSE_WXHTML_HELP=no |
10f2d63a VZ |
1452 | DEFAULT_wxUSE_WXTREE=no |
1453 | DEFAULT_wxUSE_METAFILE=no | |
1e6feb95 | 1454 | DEFAULT_wxUSE_MIMETYPE=no |
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 VZ |
1460 | DEFAULT_wxUSE_FILEDLG=no |
1461 | DEFAULT_wxUSE_FONTDLG=no | |
1462 | DEFAULT_wxUSE_MSGDLG=no | |
1463 | DEFAULT_wxUSE_NUMBERDLG=no | |
10f2d63a VZ |
1464 | DEFAULT_wxUSE_TEXTDLG=no |
1465 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
1466 | DEFAULT_wxUSE_PROGRESSDLG=no | |
b1f5d087 VZ |
1467 | DEFAULT_wxUSE_WIZARDDLG=no |
1468 | ||
1e6feb95 | 1469 | DEFAULT_wxUSE_MENUS=no |
10f2d63a VZ |
1470 | DEFAULT_wxUSE_MINIFRAME=no |
1471 | DEFAULT_wxUSE_HTML=no | |
24528b0c | 1472 | DEFAULT_wxUSE_FILESYSTEM=no |
10f2d63a VZ |
1473 | DEFAULT_wxUSE_FS_INET=no |
1474 | DEFAULT_wxUSE_FS_ZIP=no | |
1475 | DEFAULT_wxUSE_BUSYINFO=no | |
1476 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1e6feb95 | 1477 | DEFAULT_wxUSE_VALIDATORS=no |
10f2d63a VZ |
1478 | |
1479 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 | 1480 | DEFAULT_wxUSE_BUTTON=no |
10f2d63a | 1481 | DEFAULT_wxUSE_BMPBUTTON=no |
1e6feb95 VZ |
1482 | DEFAULT_wxUSE_CALCTRL=no |
1483 | DEFAULT_wxUSE_CARET=no | |
10f2d63a VZ |
1484 | DEFAULT_wxUSE_CHECKBOX=no |
1485 | DEFAULT_wxUSE_CHECKLST=no | |
1e6feb95 | 1486 | DEFAULT_wxUSE_CHOICE=no |
10f2d63a VZ |
1487 | DEFAULT_wxUSE_COMBOBOX=no |
1488 | DEFAULT_wxUSE_GAUGE=no | |
1489 | DEFAULT_wxUSE_GRID=no | |
1490 | DEFAULT_wxUSE_NEW_GRID=no | |
1491 | DEFAULT_wxUSE_IMAGLIST=no | |
1492 | DEFAULT_wxUSE_LISTBOX=no | |
1493 | DEFAULT_wxUSE_LISTCTRL=no | |
1494 | DEFAULT_wxUSE_NOTEBOOK=no | |
1495 | DEFAULT_wxUSE_RADIOBOX=no | |
1496 | DEFAULT_wxUSE_RADIOBTN=no | |
1497 | DEFAULT_wxUSE_SASH=no | |
1498 | DEFAULT_wxUSE_SCROLLBAR=no | |
1499 | DEFAULT_wxUSE_SLIDER=no | |
1500 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 1501 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
1502 | DEFAULT_wxUSE_SPLITTER=no |
1503 | DEFAULT_wxUSE_STATBMP=no | |
1504 | DEFAULT_wxUSE_STATBOX=no | |
1505 | DEFAULT_wxUSE_STATLINE=no | |
1e6feb95 | 1506 | DEFAULT_wxUSE_STATTEXT=no |
10f2d63a VZ |
1507 | DEFAULT_wxUSE_STATUSBAR=yes |
1508 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1509 | DEFAULT_wxUSE_TEXTCTRL=no |
1db8dc4a | 1510 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 1511 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
1512 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
1513 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a | 1514 | DEFAULT_wxUSE_TREECTRL=no |
9f41d601 | 1515 | DEFAULT_wxUSE_POPUPWIN=no |
10f2d63a VZ |
1516 | |
1517 | DEFAULT_wxUSE_UNICODE=no | |
1518 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1519 | ||
0046ff7c | 1520 | DEFAULT_wxUSE_IMAGE=no |
10f2d63a VZ |
1521 | DEFAULT_wxUSE_GIF=no |
1522 | DEFAULT_wxUSE_PCX=no | |
1523 | DEFAULT_wxUSE_PNM=no | |
0046ff7c | 1524 | DEFAULT_wxUSE_XPM=no |
10f2d63a | 1525 | else |
1e6feb95 VZ |
1526 | DEFAULT_wxUSE_UNIVERSAL=no |
1527 | ||
10f2d63a VZ |
1528 | DEFAULT_wxUSE_THREADS=yes |
1529 | ||
1530 | DEFAULT_wxUSE_SHARED=yes | |
00cf1208 | 1531 | DEFAULT_wxUSE_BURNT_NAME=no |
10f2d63a VZ |
1532 | DEFAULT_wxUSE_OPTIMISE=yes |
1533 | DEFAULT_wxUSE_PROFILE=no | |
1534 | DEFAULT_wxUSE_NO_DEPS=no | |
1535 | DEFAULT_wxUSE_NO_RTTI=no | |
1536 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
1537 | DEFAULT_wxUSE_PERMISSIVE=no | |
1538 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1539 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1540 | DEFAULT_wxUSE_DEBUG_GDB=no | |
1541 | DEFAULT_wxUSE_MEM_TRACING=no | |
1542 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1543 | DEFAULT_wxUSE_DMALLOC=no | |
1544 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
1545 | ||
1546 | DEFAULT_wxUSE_LOG=yes | |
d73be714 VZ |
1547 | DEFAULT_wxUSE_LOGWINDOW=yes |
1548 | DEFAULT_wxUSE_LOGGUI=yes | |
10f2d63a VZ |
1549 | |
1550 | DEFAULT_wxUSE_GUI=yes | |
1551 | ||
1552 | DEFAULT_wxUSE_ZLIB=yes | |
1553 | DEFAULT_wxUSE_LIBPNG=yes | |
1554 | DEFAULT_wxUSE_LIBJPEG=yes | |
b47c832e | 1555 | DEFAULT_wxUSE_LIBTIFF=yes |
16b52fa1 | 1556 | DEFAULT_wxUSE_ODBC=no |
3fed1840 | 1557 | DEFAULT_wxUSE_FREETYPE=no |
bdad4e7e | 1558 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1559 | |
eb4efbdc | 1560 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes |
4f3c5f06 | 1561 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
10f2d63a | 1562 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1563 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
1564 | DEFAULT_wxUSE_DATETIME=yes | |
1565 | DEFAULT_wxUSE_TIMEDATE=no | |
1566 | DEFAULT_wxUSE_TIMER=yes | |
1567 | DEFAULT_wxUSE_STOPWATCH=yes | |
10f2d63a | 1568 | DEFAULT_wxUSE_FILE=yes |
1e6feb95 | 1569 | DEFAULT_wxUSE_FFILE=yes |
10f2d63a | 1570 | DEFAULT_wxUSE_TEXTFILE=yes |
10f2d63a VZ |
1571 | DEFAULT_wxUSE_WAVE=no |
1572 | DEFAULT_wxUSE_INTL=yes | |
1573 | DEFAULT_wxUSE_CONFIG=yes | |
1e6feb95 | 1574 | DEFAULT_wxUSE_FONTMAP=yes |
10f2d63a VZ |
1575 | DEFAULT_wxUSE_STREAMS=yes |
1576 | DEFAULT_wxUSE_SOCKETS=yes | |
1577 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
1578 | DEFAULT_wxUSE_SERIAL=yes | |
1579 | DEFAULT_wxUSE_JOYSTICK=yes | |
1580 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
b685cd9b | 1581 | DEFAULT_wxUSE_LONGLONG=yes |
e8f65ba6 | 1582 | DEFAULT_wxUSE_GEOMETRY=yes |
10f2d63a VZ |
1583 | |
1584 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
1585 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
1586 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
1587 | ||
1588 | DEFAULT_wxUSE_X_RESOURCES=no | |
1589 | DEFAULT_wxUSE_CLIPBOARD=yes | |
1590 | DEFAULT_wxUSE_TOOLTIPS=yes | |
1591 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
24fd6d87 | 1592 | DEFAULT_wxUSE_DRAGIMAGE=yes |
10f2d63a VZ |
1593 | DEFAULT_wxUSE_SPLINES=yes |
1594 | ||
1595 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
1596 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
1597 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
1598 | ||
1599 | DEFAULT_wxUSE_PROLOGIO=yes | |
1600 | DEFAULT_wxUSE_RESOURCES=yes | |
1601 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
1602 | DEFAULT_wxUSE_IPC=yes | |
1603 | DEFAULT_wxUSE_HELP=yes | |
29fd3c0c | 1604 | DEFAULT_wxUSE_MS_HTML_HELP=yes |
3379ed37 | 1605 | DEFAULT_wxUSE_WXHTML_HELP=yes |
10f2d63a VZ |
1606 | DEFAULT_wxUSE_WXTREE=yes |
1607 | DEFAULT_wxUSE_METAFILE=yes | |
1e6feb95 | 1608 | DEFAULT_wxUSE_MIMETYPE=yes |
10f2d63a VZ |
1609 | |
1610 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1e6feb95 VZ |
1611 | DEFAULT_wxUSE_CHOICEDLG=yes |
1612 | DEFAULT_wxUSE_COLOURDLG=yes | |
10f2d63a | 1613 | DEFAULT_wxUSE_DIRDLG=yes |
1e6feb95 VZ |
1614 | DEFAULT_wxUSE_FILEDLG=yes |
1615 | DEFAULT_wxUSE_FONTDLG=yes | |
1616 | DEFAULT_wxUSE_MSGDLG=yes | |
1617 | DEFAULT_wxUSE_NUMBERDLG=yes | |
10f2d63a VZ |
1618 | DEFAULT_wxUSE_TEXTDLG=yes |
1619 | DEFAULT_wxUSE_STARTUP_TIPS=yes | |
1620 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
f33f19dd VZ |
1621 | DEFAULT_wxUSE_WIZARDDLG=yes |
1622 | ||
1e6feb95 | 1623 | DEFAULT_wxUSE_MENUS=yes |
10f2d63a VZ |
1624 | DEFAULT_wxUSE_MINIFRAME=yes |
1625 | DEFAULT_wxUSE_HTML=yes | |
24528b0c | 1626 | DEFAULT_wxUSE_FILESYSTEM=yes |
10f2d63a VZ |
1627 | DEFAULT_wxUSE_FS_INET=yes |
1628 | DEFAULT_wxUSE_FS_ZIP=yes | |
1629 | DEFAULT_wxUSE_BUSYINFO=yes | |
1630 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
1631 | DEFAULT_wxUSE_VALIDATORS=yes | |
1632 | ||
1633 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 | 1634 | DEFAULT_wxUSE_BUTTON=yes |
10f2d63a | 1635 | DEFAULT_wxUSE_BMPBUTTON=yes |
1e6feb95 VZ |
1636 | DEFAULT_wxUSE_CALCTRL=yes |
1637 | DEFAULT_wxUSE_CARET=yes | |
10f2d63a VZ |
1638 | DEFAULT_wxUSE_CHECKBOX=yes |
1639 | DEFAULT_wxUSE_CHECKLST=yes | |
1640 | DEFAULT_wxUSE_CHOICE=yes | |
1641 | DEFAULT_wxUSE_COMBOBOX=yes | |
1642 | DEFAULT_wxUSE_GAUGE=yes | |
1643 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 1644 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
1645 | DEFAULT_wxUSE_IMAGLIST=yes |
1646 | DEFAULT_wxUSE_LISTBOX=yes | |
1647 | DEFAULT_wxUSE_LISTCTRL=yes | |
1648 | DEFAULT_wxUSE_NOTEBOOK=yes | |
1649 | DEFAULT_wxUSE_RADIOBOX=yes | |
1650 | DEFAULT_wxUSE_RADIOBTN=yes | |
1651 | DEFAULT_wxUSE_SASH=yes | |
1652 | DEFAULT_wxUSE_SCROLLBAR=yes | |
1653 | DEFAULT_wxUSE_SLIDER=yes | |
1654 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 1655 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
1656 | DEFAULT_wxUSE_SPLITTER=yes |
1657 | DEFAULT_wxUSE_STATBMP=yes | |
1658 | DEFAULT_wxUSE_STATBOX=yes | |
1659 | DEFAULT_wxUSE_STATLINE=yes | |
1e6feb95 | 1660 | DEFAULT_wxUSE_STATTEXT=yes |
10f2d63a VZ |
1661 | DEFAULT_wxUSE_STATUSBAR=yes |
1662 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1663 | DEFAULT_wxUSE_TEXTCTRL=yes |
1db8dc4a | 1664 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 1665 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
1666 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
1667 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a | 1668 | DEFAULT_wxUSE_TREECTRL=yes |
9f41d601 | 1669 | DEFAULT_wxUSE_POPUPWIN=yes |
10f2d63a VZ |
1670 | |
1671 | DEFAULT_wxUSE_UNICODE=no | |
1672 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1673 | ||
0046ff7c | 1674 | DEFAULT_wxUSE_IMAGE=yes |
10f2d63a VZ |
1675 | DEFAULT_wxUSE_GIF=yes |
1676 | DEFAULT_wxUSE_PCX=yes | |
1677 | DEFAULT_wxUSE_PNM=yes | |
0046ff7c | 1678 | DEFAULT_wxUSE_XPM=yes |
10f2d63a VZ |
1679 | fi |
1680 | ||
698dcdb6 VZ |
1681 | |
1682 | ||
10f2d63a VZ |
1683 | for toolkit in `echo $ALL_TOOLKITS`; do |
1684 | LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}` | |
1685 | if test "x$LINE" != x ; then | |
1686 | has_toolkit_in_cache=1 | |
1687 | eval "DEFAULT_$LINE" | |
1688 | eval "CACHE_$toolkit=1" | |
1689 | fi | |
1690 | done | |
1691 | ||
698dcdb6 VZ |
1692 | |
1693 | ||
1694 | echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6 | |
29fd3c0c | 1695 | echo "configure:1696: checking for --enable-gui" >&5 |
10f2d63a VZ |
1696 | no_cache=0 |
1697 | # Check whether --enable-gui or --disable-gui was given. | |
1698 | if test "${enable_gui+set}" = set; then | |
1699 | enableval="$enable_gui" | |
698dcdb6 | 1700 | |
10f2d63a VZ |
1701 | if test "$enableval" = yes; then |
1702 | ac_cv_use_gui='wxUSE_GUI=yes' | |
1703 | else | |
1704 | ac_cv_use_gui='wxUSE_GUI=no' | |
1705 | fi | |
698dcdb6 | 1706 | |
10f2d63a | 1707 | else |
698dcdb6 | 1708 | |
10f2d63a VZ |
1709 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` |
1710 | if test "x$LINE" != x ; then | |
1711 | eval "DEFAULT_$LINE" | |
1712 | else | |
1713 | no_cache=1 | |
1714 | fi | |
1715 | ||
1716 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
698dcdb6 VZ |
1717 | |
1718 | fi | |
10f2d63a VZ |
1719 | |
1720 | ||
1721 | eval "$ac_cv_use_gui" | |
1722 | if test "$no_cache" != 1; then | |
1723 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
1724 | fi | |
1725 | ||
1726 | if test "$wxUSE_GUI" = yes; then | |
698dcdb6 | 1727 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 1728 | else |
698dcdb6 | 1729 | echo "$ac_t""no" 1>&6 |
10f2d63a | 1730 | fi |
698dcdb6 | 1731 | |
10f2d63a | 1732 | |
b12915c1 | 1733 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a | 1734 | |
1e6feb95 VZ |
1735 | |
1736 | echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6 | |
29fd3c0c | 1737 | echo "configure:1738: checking for --enable-universal" >&5 |
1e6feb95 VZ |
1738 | no_cache=0 |
1739 | # Check whether --enable-universal or --disable-universal was given. | |
1740 | if test "${enable_universal+set}" = set; then | |
1741 | enableval="$enable_universal" | |
1742 | ||
1743 | if test "$enableval" = yes; then | |
1744 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
1745 | else | |
1746 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
1747 | fi | |
1748 | ||
1749 | else | |
1750 | ||
1751 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
1752 | if test "x$LINE" != x ; then | |
1753 | eval "DEFAULT_$LINE" | |
1754 | else | |
1755 | no_cache=1 | |
1756 | fi | |
1757 | ||
1758 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
1759 | ||
1760 | fi | |
1761 | ||
1762 | ||
1763 | eval "$ac_cv_use_universal" | |
1764 | if test "$no_cache" != 1; then | |
1765 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
1766 | fi | |
1767 | ||
1768 | if test "$wxUSE_UNIVERSAL" = yes; then | |
1769 | echo "$ac_t""yes" 1>&6 | |
1770 | else | |
1771 | echo "$ac_t""no" 1>&6 | |
1772 | fi | |
1773 | ||
10f2d63a VZ |
1774 | # Check whether --with-gtk or --without-gtk was given. |
1775 | if test "${with_gtk+set}" = set; then | |
1776 | withval="$with_gtk" | |
1777 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1778 | fi |
10f2d63a VZ |
1779 | |
1780 | # Check whether --with-motif or --without-motif was given. | |
1781 | if test "${with_motif+set}" = set; then | |
1782 | withval="$with_motif" | |
1783 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1784 | fi |
10f2d63a | 1785 | |
b4085ce6 GD |
1786 | # Check whether --with-mac or --without-mac was given. |
1787 | if test "${with_mac+set}" = set; then | |
1788 | withval="$with_mac" | |
1789 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
698dcdb6 | 1790 | fi |
b4085ce6 | 1791 | |
10f2d63a VZ |
1792 | # Check whether --with-wine or --without-wine was given. |
1793 | if test "${with_wine+set}" = set; then | |
1794 | withval="$with_wine" | |
1795 | wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1796 | fi |
10f2d63a VZ |
1797 | |
1798 | # Check whether --with-cygwin or --without-cygwin was given. | |
1799 | if test "${with_cygwin+set}" = set; then | |
1800 | withval="$with_cygwin" | |
1801 | wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1802 | fi |
10f2d63a VZ |
1803 | |
1804 | # Check whether --with-mingw or --without-mingw was given. | |
1805 | if test "${with_mingw+set}" = set; then | |
1806 | withval="$with_mingw" | |
1807 | wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1808 | fi |
10f2d63a | 1809 | |
e07802fc VZ |
1810 | # Check whether --with-pm or --without-pm was given. |
1811 | if test "${with_pm+set}" = set; then | |
1812 | withval="$with_pm" | |
1813 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
698dcdb6 VZ |
1814 | fi |
1815 | ||
1e6feb95 VZ |
1816 | # Check whether --with-mgl or --without-mgl was given. |
1817 | if test "${with_mgl+set}" = set; then | |
1818 | withval="$with_mgl" | |
1819 | wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1 | |
1820 | fi | |
1821 | ||
10f2d63a | 1822 | |
8168de4c VZ |
1823 | # Check whether --enable-gtk2 or --disable-gtk2 was given. |
1824 | if test "${enable_gtk2+set}" = set; then | |
1825 | enableval="$enable_gtk2" | |
1826 | wxUSE_GTK2=1 | |
10f2d63a | 1827 | else |
8168de4c | 1828 | wxUSE_GTK2=0 |
698dcdb6 VZ |
1829 | fi |
1830 | ||
703e0a69 | 1831 | |
1e487827 | 1832 | |
698dcdb6 | 1833 | echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6 |
29fd3c0c | 1834 | echo "configure:1835: checking for --with-libpng" >&5 |
698dcdb6 VZ |
1835 | no_cache=0 |
1836 | # Check whether --with-libpng or --without-libpng was given. | |
b12915c1 VZ |
1837 | if test "${with_libpng+set}" = set; then |
1838 | withval="$with_libpng" | |
698dcdb6 | 1839 | |
10f2d63a | 1840 | if test "$withval" = yes; then |
b12915c1 | 1841 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
422107f9 | 1842 | elif test "$withval" = no; then |
b12915c1 | 1843 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
422107f9 VZ |
1844 | elif test "$withval" = sys; then |
1845 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
1846 | else | |
698dcdb6 | 1847 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1848 | fi |
698dcdb6 | 1849 | |
10f2d63a | 1850 | else |
698dcdb6 | 1851 | |
b12915c1 | 1852 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
1853 | if test "x$LINE" != x ; then |
1854 | eval "DEFAULT_$LINE" | |
1855 | else | |
1856 | no_cache=1 | |
1857 | fi | |
1858 | ||
b12915c1 | 1859 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
698dcdb6 VZ |
1860 | |
1861 | fi | |
10f2d63a VZ |
1862 | |
1863 | ||
b12915c1 | 1864 | eval "$ac_cv_use_libpng" |
10f2d63a | 1865 | if test "$no_cache" != 1; then |
b12915c1 | 1866 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1867 | fi |
1868 | ||
b12915c1 | 1869 | if test "$wxUSE_LIBPNG" = yes; then |
698dcdb6 | 1870 | echo "$ac_t""yes" 1>&6 |
422107f9 | 1871 | elif test "$wxUSE_LIBPNG" = no; then |
698dcdb6 | 1872 | echo "$ac_t""no" 1>&6 |
422107f9 | 1873 | elif test "$wxUSE_LIBPNG" = sys; then |
698dcdb6 | 1874 | echo "$ac_t""system version" 1>&6 |
422107f9 | 1875 | else |
698dcdb6 | 1876 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1877 | fi |
698dcdb6 | 1878 | |
10f2d63a | 1879 | |
698dcdb6 | 1880 | echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6 |
29fd3c0c | 1881 | echo "configure:1882: checking for --with-libjpeg" >&5 |
10f2d63a | 1882 | no_cache=0 |
698dcdb6 | 1883 | # Check whether --with-libjpeg or --without-libjpeg was given. |
b12915c1 VZ |
1884 | if test "${with_libjpeg+set}" = set; then |
1885 | withval="$with_libjpeg" | |
698dcdb6 | 1886 | |
10f2d63a | 1887 | if test "$withval" = yes; then |
b12915c1 | 1888 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
422107f9 | 1889 | elif test "$withval" = no; then |
b12915c1 | 1890 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
422107f9 VZ |
1891 | elif test "$withval" = sys; then |
1892 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
1893 | else | |
698dcdb6 | 1894 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1895 | fi |
698dcdb6 | 1896 | |
10f2d63a | 1897 | else |
698dcdb6 | 1898 | |
b12915c1 | 1899 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
1900 | if test "x$LINE" != x ; then |
1901 | eval "DEFAULT_$LINE" | |
1902 | else | |
1903 | no_cache=1 | |
1904 | fi | |
1905 | ||
b12915c1 | 1906 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
698dcdb6 VZ |
1907 | |
1908 | fi | |
10f2d63a VZ |
1909 | |
1910 | ||
b12915c1 | 1911 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 1912 | if test "$no_cache" != 1; then |
b12915c1 | 1913 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1914 | fi |
1915 | ||
b12915c1 | 1916 | if test "$wxUSE_LIBJPEG" = yes; then |
698dcdb6 | 1917 | echo "$ac_t""yes" 1>&6 |
422107f9 | 1918 | elif test "$wxUSE_LIBJPEG" = no; then |
698dcdb6 | 1919 | echo "$ac_t""no" 1>&6 |
422107f9 | 1920 | elif test "$wxUSE_LIBJPEG" = sys; then |
698dcdb6 | 1921 | echo "$ac_t""system version" 1>&6 |
422107f9 | 1922 | else |
698dcdb6 | 1923 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1924 | fi |
698dcdb6 | 1925 | |
10f2d63a | 1926 | |
698dcdb6 | 1927 | echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6 |
29fd3c0c | 1928 | echo "configure:1929: checking for --with-libtiff" >&5 |
10f2d63a | 1929 | no_cache=0 |
698dcdb6 | 1930 | # Check whether --with-libtiff or --without-libtiff was given. |
b12915c1 VZ |
1931 | if test "${with_libtiff+set}" = set; then |
1932 | withval="$with_libtiff" | |
698dcdb6 | 1933 | |
10f2d63a | 1934 | if test "$withval" = yes; then |
b12915c1 | 1935 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
0dcf9893 | 1936 | elif test "$withval" = no; then |
b12915c1 | 1937 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
0dcf9893 VZ |
1938 | elif test "$withval" = sys; then |
1939 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
1940 | else | |
698dcdb6 | 1941 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1942 | fi |
698dcdb6 | 1943 | |
10f2d63a | 1944 | else |
698dcdb6 | 1945 | |
b12915c1 | 1946 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
1947 | if test "x$LINE" != x ; then |
1948 | eval "DEFAULT_$LINE" | |
1949 | else | |
1950 | no_cache=1 | |
1951 | fi | |
1952 | ||
b12915c1 | 1953 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
698dcdb6 VZ |
1954 | |
1955 | fi | |
10f2d63a VZ |
1956 | |
1957 | ||
b12915c1 | 1958 | eval "$ac_cv_use_libtiff" |
10f2d63a | 1959 | if test "$no_cache" != 1; then |
b12915c1 | 1960 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1961 | fi |
1962 | ||
b12915c1 | 1963 | if test "$wxUSE_LIBTIFF" = yes; then |
698dcdb6 | 1964 | echo "$ac_t""yes" 1>&6 |
0dcf9893 | 1965 | elif test "$wxUSE_LIBTIFF" = no; then |
698dcdb6 | 1966 | echo "$ac_t""no" 1>&6 |
0dcf9893 | 1967 | elif test "$wxUSE_LIBTIFF" = sys; then |
698dcdb6 | 1968 | echo "$ac_t""system version" 1>&6 |
0dcf9893 | 1969 | else |
698dcdb6 | 1970 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1971 | fi |
698dcdb6 | 1972 | |
10f2d63a | 1973 | |
698dcdb6 | 1974 | echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6 |
29fd3c0c | 1975 | echo "configure:1976: checking for --with-freetype" >&5 |
3fed1840 | 1976 | no_cache=0 |
698dcdb6 | 1977 | # Check whether --with-freetype or --without-freetype was given. |
3fed1840 RR |
1978 | if test "${with_freetype+set}" = set; then |
1979 | withval="$with_freetype" | |
698dcdb6 | 1980 | |
3fed1840 RR |
1981 | if test "$withval" = yes; then |
1982 | ac_cv_use_freetype='wxUSE_FREETYPE=yes' | |
1983 | elif test "$withval" = no; then | |
1984 | ac_cv_use_freetype='wxUSE_FREETYPE=no' | |
1985 | elif test "$withval" = sys; then | |
1986 | ac_cv_use_freetype='wxUSE_FREETYPE=sys' | |
1987 | else | |
698dcdb6 | 1988 | { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; } |
3fed1840 | 1989 | fi |
698dcdb6 | 1990 | |
3fed1840 | 1991 | else |
698dcdb6 | 1992 | |
3fed1840 RR |
1993 | LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}` |
1994 | if test "x$LINE" != x ; then | |
1995 | eval "DEFAULT_$LINE" | |
1996 | else | |
1997 | no_cache=1 | |
1998 | fi | |
1999 | ||
2000 | ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE | |
698dcdb6 VZ |
2001 | |
2002 | fi | |
3fed1840 RR |
2003 | |
2004 | ||
2005 | eval "$ac_cv_use_freetype" | |
2006 | if test "$no_cache" != 1; then | |
2007 | echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp | |
2008 | fi | |
2009 | ||
2010 | if test "$wxUSE_FREETYPE" = yes; then | |
698dcdb6 | 2011 | echo "$ac_t""yes" 1>&6 |
3fed1840 | 2012 | elif test "$wxUSE_FREETYPE" = no; then |
698dcdb6 | 2013 | echo "$ac_t""no" 1>&6 |
3fed1840 | 2014 | elif test "$wxUSE_FREETYPE" = sys; then |
698dcdb6 | 2015 | echo "$ac_t""system version" 1>&6 |
3fed1840 | 2016 | else |
698dcdb6 | 2017 | { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; } |
3fed1840 | 2018 | fi |
698dcdb6 | 2019 | |
3fed1840 | 2020 | |
698dcdb6 | 2021 | echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6 |
29fd3c0c | 2022 | echo "configure:2023: checking for --with-opengl" >&5 |
10f2d63a | 2023 | no_cache=0 |
698dcdb6 | 2024 | # Check whether --with-opengl or --without-opengl was given. |
b12915c1 VZ |
2025 | if test "${with_opengl+set}" = set; then |
2026 | withval="$with_opengl" | |
698dcdb6 | 2027 | |
10f2d63a | 2028 | if test "$withval" = yes; then |
b12915c1 | 2029 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 2030 | else |
b12915c1 | 2031 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a | 2032 | fi |
698dcdb6 | 2033 | |
10f2d63a | 2034 | else |
698dcdb6 | 2035 | |
b12915c1 | 2036 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` |
10f2d63a VZ |
2037 | if test "x$LINE" != x ; then |
2038 | eval "DEFAULT_$LINE" | |
2039 | else | |
2040 | no_cache=1 | |
2041 | fi | |
2042 | ||
b12915c1 | 2043 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
698dcdb6 VZ |
2044 | |
2045 | fi | |
10f2d63a VZ |
2046 | |
2047 | ||
b12915c1 | 2048 | eval "$ac_cv_use_opengl" |
10f2d63a | 2049 | if test "$no_cache" != 1; then |
b12915c1 | 2050 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2051 | fi |
2052 | ||
b12915c1 | 2053 | if test "$wxUSE_OPENGL" = yes; then |
698dcdb6 | 2054 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2055 | else |
698dcdb6 | 2056 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2057 | fi |
698dcdb6 | 2058 | |
10f2d63a | 2059 | |
b12915c1 VZ |
2060 | fi |
2061 | ||
1e487827 | 2062 | |
698dcdb6 | 2063 | echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6 |
29fd3c0c | 2064 | echo "configure:2065: checking for --with-dmalloc" >&5 |
698dcdb6 VZ |
2065 | no_cache=0 |
2066 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
b12915c1 VZ |
2067 | if test "${with_dmalloc+set}" = set; then |
2068 | withval="$with_dmalloc" | |
698dcdb6 | 2069 | |
c7a2bf27 | 2070 | if test "$withval" = yes; then |
b12915c1 | 2071 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 2072 | else |
b12915c1 | 2073 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 | 2074 | fi |
698dcdb6 | 2075 | |
c7a2bf27 | 2076 | else |
698dcdb6 | 2077 | |
b12915c1 | 2078 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
2079 | if test "x$LINE" != x ; then |
2080 | eval "DEFAULT_$LINE" | |
2081 | else | |
2082 | no_cache=1 | |
2083 | fi | |
2084 | ||
b12915c1 | 2085 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
698dcdb6 VZ |
2086 | |
2087 | fi | |
c7a2bf27 RR |
2088 | |
2089 | ||
b12915c1 | 2090 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 2091 | if test "$no_cache" != 1; then |
b12915c1 | 2092 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
2093 | fi |
2094 | ||
b12915c1 | 2095 | if test "$wxUSE_DMALLOC" = yes; then |
698dcdb6 | 2096 | echo "$ac_t""yes" 1>&6 |
c7a2bf27 | 2097 | else |
698dcdb6 | 2098 | echo "$ac_t""no" 1>&6 |
c7a2bf27 | 2099 | fi |
698dcdb6 | 2100 | |
c7a2bf27 | 2101 | |
698dcdb6 | 2102 | echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6 |
29fd3c0c | 2103 | echo "configure:2104: checking for --with-zlib" >&5 |
10f2d63a | 2104 | no_cache=0 |
698dcdb6 | 2105 | # Check whether --with-zlib or --without-zlib was given. |
b12915c1 VZ |
2106 | if test "${with_zlib+set}" = set; then |
2107 | withval="$with_zlib" | |
698dcdb6 | 2108 | |
10f2d63a | 2109 | if test "$withval" = yes; then |
b12915c1 | 2110 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
422107f9 | 2111 | elif test "$withval" = no; then |
b12915c1 | 2112 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
422107f9 VZ |
2113 | elif test "$withval" = sys; then |
2114 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
2115 | else | |
698dcdb6 | 2116 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 2117 | fi |
698dcdb6 | 2118 | |
10f2d63a | 2119 | else |
698dcdb6 | 2120 | |
b12915c1 | 2121 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
2122 | if test "x$LINE" != x ; then |
2123 | eval "DEFAULT_$LINE" | |
2124 | else | |
2125 | no_cache=1 | |
2126 | fi | |
2127 | ||
b12915c1 | 2128 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
698dcdb6 VZ |
2129 | |
2130 | fi | |
10f2d63a VZ |
2131 | |
2132 | ||
b12915c1 | 2133 | eval "$ac_cv_use_zlib" |
10f2d63a | 2134 | if test "$no_cache" != 1; then |
b12915c1 | 2135 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2136 | fi |
2137 | ||
b12915c1 | 2138 | if test "$wxUSE_ZLIB" = yes; then |
698dcdb6 | 2139 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2140 | elif test "$wxUSE_ZLIB" = no; then |
698dcdb6 | 2141 | echo "$ac_t""no" 1>&6 |
422107f9 | 2142 | elif test "$wxUSE_ZLIB" = sys; then |
698dcdb6 | 2143 | echo "$ac_t""system version" 1>&6 |
422107f9 | 2144 | else |
698dcdb6 | 2145 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 2146 | fi |
698dcdb6 | 2147 | |
10f2d63a | 2148 | |
698dcdb6 | 2149 | echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6 |
29fd3c0c | 2150 | echo "configure:2151: checking for --with-odbc" >&5 |
10f2d63a | 2151 | no_cache=0 |
698dcdb6 | 2152 | # Check whether --with-odbc or --without-odbc was given. |
10f2d63a VZ |
2153 | if test "${with_odbc+set}" = set; then |
2154 | withval="$with_odbc" | |
698dcdb6 | 2155 | |
10f2d63a VZ |
2156 | if test "$withval" = yes; then |
2157 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
2158 | else | |
2159 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
2160 | fi | |
698dcdb6 | 2161 | |
10f2d63a | 2162 | else |
698dcdb6 | 2163 | |
10f2d63a VZ |
2164 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` |
2165 | if test "x$LINE" != x ; then | |
2166 | eval "DEFAULT_$LINE" | |
2167 | else | |
2168 | no_cache=1 | |
2169 | fi | |
2170 | ||
2171 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
698dcdb6 VZ |
2172 | |
2173 | fi | |
10f2d63a VZ |
2174 | |
2175 | ||
2176 | eval "$ac_cv_use_odbc" | |
2177 | if test "$no_cache" != 1; then | |
2178 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
2179 | fi | |
2180 | ||
2181 | if test "$wxUSE_ODBC" = yes; then | |
698dcdb6 | 2182 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2183 | else |
698dcdb6 | 2184 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2185 | fi |
698dcdb6 VZ |
2186 | |
2187 | ||
10f2d63a | 2188 | |
698dcdb6 VZ |
2189 | |
2190 | ||
2191 | echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6 | |
29fd3c0c | 2192 | echo "configure:2193: checking for --enable-shared" >&5 |
10f2d63a VZ |
2193 | no_cache=0 |
2194 | # Check whether --enable-shared or --disable-shared was given. | |
2195 | if test "${enable_shared+set}" = set; then | |
2196 | enableval="$enable_shared" | |
698dcdb6 | 2197 | |
10f2d63a VZ |
2198 | if test "$enableval" = yes; then |
2199 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
2200 | else | |
2201 | ac_cv_use_shared='wxUSE_SHARED=no' | |
2202 | fi | |
698dcdb6 | 2203 | |
10f2d63a | 2204 | else |
698dcdb6 | 2205 | |
10f2d63a VZ |
2206 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` |
2207 | if test "x$LINE" != x ; then | |
2208 | eval "DEFAULT_$LINE" | |
2209 | else | |
2210 | no_cache=1 | |
2211 | fi | |
2212 | ||
2213 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
698dcdb6 VZ |
2214 | |
2215 | fi | |
10f2d63a VZ |
2216 | |
2217 | ||
2218 | eval "$ac_cv_use_shared" | |
2219 | if test "$no_cache" != 1; then | |
2220 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
2221 | fi | |
2222 | ||
2223 | if test "$wxUSE_SHARED" = yes; then | |
698dcdb6 | 2224 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2225 | else |
698dcdb6 | 2226 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2227 | fi |
698dcdb6 | 2228 | |
10f2d63a | 2229 | |
698dcdb6 | 2230 | echo $ac_n "checking for --enable-burnt_name""... $ac_c" 1>&6 |
29fd3c0c | 2231 | echo "configure:2232: checking for --enable-burnt_name" >&5 |
00cf1208 RR |
2232 | no_cache=0 |
2233 | # Check whether --enable-burnt_name or --disable-burnt_name was given. | |
2234 | if test "${enable_burnt_name+set}" = set; then | |
2235 | enableval="$enable_burnt_name" | |
698dcdb6 | 2236 | |
00cf1208 RR |
2237 | if test "$enableval" = yes; then |
2238 | ac_cv_use_burnt_name='wxUSE_BURNT_NAME=yes' | |
2239 | else | |
2240 | ac_cv_use_burnt_name='wxUSE_BURNT_NAME=no' | |
2241 | fi | |
698dcdb6 | 2242 | |
00cf1208 | 2243 | else |
698dcdb6 | 2244 | |
00cf1208 RR |
2245 | LINE=`grep "wxUSE_BURNT_NAME" ${wx_arg_cache_file}` |
2246 | if test "x$LINE" != x ; then | |
2247 | eval "DEFAULT_$LINE" | |
2248 | else | |
2249 | no_cache=1 | |
2250 | fi | |
2251 | ||
2252 | ac_cv_use_burnt_name='wxUSE_BURNT_NAME='$DEFAULT_wxUSE_BURNT_NAME | |
698dcdb6 VZ |
2253 | |
2254 | fi | |
00cf1208 RR |
2255 | |
2256 | ||
2257 | eval "$ac_cv_use_burnt_name" | |
2258 | if test "$no_cache" != 1; then | |
2259 | echo $ac_cv_use_burnt_name >> ${wx_arg_cache_file}.tmp | |
2260 | fi | |
2261 | ||
2262 | if test "$wxUSE_BURNT_NAME" = yes; then | |
698dcdb6 | 2263 | echo "$ac_t""yes" 1>&6 |
00cf1208 | 2264 | else |
698dcdb6 | 2265 | echo "$ac_t""no" 1>&6 |
00cf1208 | 2266 | fi |
698dcdb6 | 2267 | |
00cf1208 | 2268 | |
698dcdb6 | 2269 | echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6 |
29fd3c0c | 2270 | echo "configure:2271: checking for --enable-optimise" >&5 |
10f2d63a VZ |
2271 | no_cache=0 |
2272 | # Check whether --enable-optimise or --disable-optimise was given. | |
2273 | if test "${enable_optimise+set}" = set; then | |
2274 | enableval="$enable_optimise" | |
698dcdb6 | 2275 | |
10f2d63a VZ |
2276 | if test "$enableval" = yes; then |
2277 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
2278 | else | |
2279 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
2280 | fi | |
698dcdb6 | 2281 | |
10f2d63a | 2282 | else |
698dcdb6 | 2283 | |
10f2d63a VZ |
2284 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` |
2285 | if test "x$LINE" != x ; then | |
2286 | eval "DEFAULT_$LINE" | |
2287 | else | |
2288 | no_cache=1 | |
2289 | fi | |
2290 | ||
2291 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
698dcdb6 VZ |
2292 | |
2293 | fi | |
10f2d63a VZ |
2294 | |
2295 | ||
2296 | eval "$ac_cv_use_optimise" | |
2297 | if test "$no_cache" != 1; then | |
2298 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
2299 | fi | |
2300 | ||
2301 | if test "$wxUSE_OPTIMISE" = yes; then | |
698dcdb6 | 2302 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2303 | else |
698dcdb6 | 2304 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2305 | fi |
698dcdb6 | 2306 | |
10f2d63a | 2307 | |
698dcdb6 | 2308 | echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6 |
29fd3c0c | 2309 | echo "configure:2310: checking for --enable-debug" >&5 |
10f2d63a VZ |
2310 | no_cache=0 |
2311 | # Check whether --enable-debug or --disable-debug was given. | |
2312 | if test "${enable_debug+set}" = set; then | |
2313 | enableval="$enable_debug" | |
698dcdb6 | 2314 | |
10f2d63a VZ |
2315 | if test "$enableval" = yes; then |
2316 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
2317 | else | |
2318 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
2319 | fi | |
698dcdb6 | 2320 | |
10f2d63a | 2321 | else |
698dcdb6 | 2322 | |
10f2d63a VZ |
2323 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` |
2324 | if test "x$LINE" != x ; then | |
2325 | eval "DEFAULT_$LINE" | |
2326 | else | |
2327 | no_cache=1 | |
2328 | fi | |
2329 | ||
2330 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
698dcdb6 VZ |
2331 | |
2332 | fi | |
10f2d63a VZ |
2333 | |
2334 | ||
2335 | eval "$ac_cv_use_debug" | |
2336 | if test "$no_cache" != 1; then | |
2337 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
2338 | fi | |
2339 | ||
2340 | if test "$wxUSE_DEBUG" = yes; then | |
698dcdb6 | 2341 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2342 | else |
698dcdb6 | 2343 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2344 | fi |
698dcdb6 | 2345 | |
10f2d63a VZ |
2346 | |
2347 | if test "$wxUSE_DEBUG" = "yes"; then | |
2348 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2349 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2350 | elif test "$wxUSE_DEBUG" = "no"; then | |
2351 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2352 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2353 | fi | |
2354 | ||
698dcdb6 VZ |
2355 | |
2356 | echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6 | |
29fd3c0c | 2357 | echo "configure:2358: checking for --enable-debug_flag" >&5 |
10f2d63a VZ |
2358 | no_cache=0 |
2359 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
2360 | if test "${enable_debug_flag+set}" = set; then | |
2361 | enableval="$enable_debug_flag" | |
698dcdb6 | 2362 | |
10f2d63a VZ |
2363 | if test "$enableval" = yes; then |
2364 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
2365 | else | |
2366 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
2367 | fi | |
698dcdb6 | 2368 | |
10f2d63a | 2369 | else |
698dcdb6 | 2370 | |
10f2d63a VZ |
2371 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` |
2372 | if test "x$LINE" != x ; then | |
2373 | eval "DEFAULT_$LINE" | |
2374 | else | |
2375 | no_cache=1 | |
2376 | fi | |
2377 | ||
2378 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
698dcdb6 VZ |
2379 | |
2380 | fi | |
10f2d63a VZ |
2381 | |
2382 | ||
2383 | eval "$ac_cv_use_debug_flag" | |
2384 | if test "$no_cache" != 1; then | |
2385 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
2386 | fi | |
2387 | ||
2388 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
698dcdb6 | 2389 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2390 | else |
698dcdb6 | 2391 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2392 | fi |
698dcdb6 | 2393 | |
10f2d63a | 2394 | |
698dcdb6 | 2395 | echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6 |
29fd3c0c | 2396 | echo "configure:2397: checking for --enable-debug_info" >&5 |
10f2d63a VZ |
2397 | no_cache=0 |
2398 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
2399 | if test "${enable_debug_info+set}" = set; then | |
2400 | enableval="$enable_debug_info" | |
698dcdb6 | 2401 | |
10f2d63a VZ |
2402 | if test "$enableval" = yes; then |
2403 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
2404 | else | |
2405 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
2406 | fi | |
698dcdb6 | 2407 | |
10f2d63a | 2408 | else |
698dcdb6 | 2409 | |
10f2d63a VZ |
2410 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` |
2411 | if test "x$LINE" != x ; then | |
2412 | eval "DEFAULT_$LINE" | |
2413 | else | |
2414 | no_cache=1 | |
2415 | fi | |
2416 | ||
2417 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
698dcdb6 VZ |
2418 | |
2419 | fi | |
10f2d63a VZ |
2420 | |
2421 | ||
2422 | eval "$ac_cv_use_debug_info" | |
2423 | if test "$no_cache" != 1; then | |
2424 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
2425 | fi | |
2426 | ||
2427 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
698dcdb6 | 2428 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2429 | else |
698dcdb6 | 2430 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2431 | fi |
698dcdb6 | 2432 | |
10f2d63a | 2433 | |
698dcdb6 | 2434 | echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6 |
29fd3c0c | 2435 | echo "configure:2436: checking for --enable-debug_gdb" >&5 |
10f2d63a VZ |
2436 | no_cache=0 |
2437 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
2438 | if test "${enable_debug_gdb+set}" = set; then | |
2439 | enableval="$enable_debug_gdb" | |
698dcdb6 | 2440 | |
10f2d63a VZ |
2441 | if test "$enableval" = yes; then |
2442 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
2443 | else | |
2444 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
2445 | fi | |
698dcdb6 | 2446 | |
10f2d63a | 2447 | else |
698dcdb6 | 2448 | |
10f2d63a VZ |
2449 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` |
2450 | if test "x$LINE" != x ; then | |
2451 | eval "DEFAULT_$LINE" | |
2452 | else | |
2453 | no_cache=1 | |
2454 | fi | |
2455 | ||
2456 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
698dcdb6 VZ |
2457 | |
2458 | fi | |
10f2d63a VZ |
2459 | |
2460 | ||
2461 | eval "$ac_cv_use_debug_gdb" | |
2462 | if test "$no_cache" != 1; then | |
2463 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
2464 | fi | |
2465 | ||
2466 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
698dcdb6 | 2467 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2468 | else |
698dcdb6 | 2469 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2470 | fi |
698dcdb6 | 2471 | |
10f2d63a | 2472 | |
698dcdb6 | 2473 | echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6 |
29fd3c0c | 2474 | echo "configure:2475: checking for --enable-debug_cntxt" >&5 |
10f2d63a VZ |
2475 | no_cache=0 |
2476 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
2477 | if test "${enable_debug_cntxt+set}" = set; then | |
2478 | enableval="$enable_debug_cntxt" | |
698dcdb6 | 2479 | |
10f2d63a VZ |
2480 | if test "$enableval" = yes; then |
2481 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
2482 | else | |
2483 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
2484 | fi | |
698dcdb6 | 2485 | |
10f2d63a | 2486 | else |
698dcdb6 | 2487 | |
10f2d63a VZ |
2488 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` |
2489 | if test "x$LINE" != x ; then | |
2490 | eval "DEFAULT_$LINE" | |
2491 | else | |
2492 | no_cache=1 | |
2493 | fi | |
2494 | ||
2495 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
698dcdb6 VZ |
2496 | |
2497 | fi | |
10f2d63a VZ |
2498 | |
2499 | ||
2500 | eval "$ac_cv_use_debug_cntxt" | |
2501 | if test "$no_cache" != 1; then | |
2502 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
2503 | fi | |
2504 | ||
2505 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
698dcdb6 | 2506 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2507 | else |
698dcdb6 | 2508 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2509 | fi |
698dcdb6 | 2510 | |
10f2d63a | 2511 | |
698dcdb6 | 2512 | echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6 |
29fd3c0c | 2513 | echo "configure:2514: checking for --enable-mem_tracing" >&5 |
10f2d63a VZ |
2514 | no_cache=0 |
2515 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
2516 | if test "${enable_mem_tracing+set}" = set; then | |
2517 | enableval="$enable_mem_tracing" | |
698dcdb6 | 2518 | |
10f2d63a VZ |
2519 | if test "$enableval" = yes; then |
2520 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
2521 | else | |
2522 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
2523 | fi | |
698dcdb6 | 2524 | |
10f2d63a | 2525 | else |
698dcdb6 | 2526 | |
10f2d63a VZ |
2527 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` |
2528 | if test "x$LINE" != x ; then | |
2529 | eval "DEFAULT_$LINE" | |
2530 | else | |
2531 | no_cache=1 | |
2532 | fi | |
2533 | ||
2534 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
698dcdb6 VZ |
2535 | |
2536 | fi | |
10f2d63a VZ |
2537 | |
2538 | ||
2539 | eval "$ac_cv_use_mem_tracing" | |
2540 | if test "$no_cache" != 1; then | |
2541 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
2542 | fi | |
2543 | ||
2544 | if test "$wxUSE_MEM_TRACING" = yes; then | |
698dcdb6 | 2545 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2546 | else |
698dcdb6 | 2547 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2548 | fi |
698dcdb6 | 2549 | |
10f2d63a | 2550 | |
698dcdb6 | 2551 | echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6 |
29fd3c0c | 2552 | echo "configure:2553: checking for --enable-profile" >&5 |
10f2d63a VZ |
2553 | no_cache=0 |
2554 | # Check whether --enable-profile or --disable-profile was given. | |
2555 | if test "${enable_profile+set}" = set; then | |
2556 | enableval="$enable_profile" | |
698dcdb6 | 2557 | |
10f2d63a VZ |
2558 | if test "$enableval" = yes; then |
2559 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
2560 | else | |
2561 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
2562 | fi | |
698dcdb6 | 2563 | |
10f2d63a | 2564 | else |
698dcdb6 | 2565 | |
10f2d63a VZ |
2566 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` |
2567 | if test "x$LINE" != x ; then | |
2568 | eval "DEFAULT_$LINE" | |
2569 | else | |
2570 | no_cache=1 | |
2571 | fi | |
2572 | ||
2573 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
698dcdb6 VZ |
2574 | |
2575 | fi | |
10f2d63a VZ |
2576 | |
2577 | ||
2578 | eval "$ac_cv_use_profile" | |
2579 | if test "$no_cache" != 1; then | |
2580 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
2581 | fi | |
2582 | ||
2583 | if test "$wxUSE_PROFILE" = yes; then | |
698dcdb6 | 2584 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2585 | else |
698dcdb6 | 2586 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2587 | fi |
698dcdb6 | 2588 | |
10f2d63a | 2589 | |
698dcdb6 | 2590 | echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6 |
29fd3c0c | 2591 | echo "configure:2592: checking for --enable-no_rtti" >&5 |
10f2d63a VZ |
2592 | no_cache=0 |
2593 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
2594 | if test "${enable_no_rtti+set}" = set; then | |
2595 | enableval="$enable_no_rtti" | |
698dcdb6 | 2596 | |
10f2d63a VZ |
2597 | if test "$enableval" = yes; then |
2598 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
2599 | else | |
2600 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
2601 | fi | |
698dcdb6 | 2602 | |
10f2d63a | 2603 | else |
698dcdb6 | 2604 | |
10f2d63a VZ |
2605 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` |
2606 | if test "x$LINE" != x ; then | |
2607 | eval "DEFAULT_$LINE" | |
2608 | else | |
2609 | no_cache=1 | |
2610 | fi | |
2611 | ||
2612 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
698dcdb6 VZ |
2613 | |
2614 | fi | |
10f2d63a VZ |
2615 | |
2616 | ||
2617 | eval "$ac_cv_use_no_rtti" | |
2618 | if test "$no_cache" != 1; then | |
2619 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
2620 | fi | |
2621 | ||
2622 | if test "$wxUSE_NO_RTTI" = yes; then | |
698dcdb6 | 2623 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2624 | else |
698dcdb6 | 2625 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2626 | fi |
698dcdb6 | 2627 | |
10f2d63a | 2628 | |
698dcdb6 | 2629 | echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6 |
29fd3c0c | 2630 | echo "configure:2631: checking for --enable-no_exceptions" >&5 |
10f2d63a VZ |
2631 | no_cache=0 |
2632 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
2633 | if test "${enable_no_exceptions+set}" = set; then | |
2634 | enableval="$enable_no_exceptions" | |
698dcdb6 | 2635 | |
10f2d63a VZ |
2636 | if test "$enableval" = yes; then |
2637 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
2638 | else | |
2639 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
2640 | fi | |
698dcdb6 | 2641 | |
10f2d63a | 2642 | else |
698dcdb6 | 2643 | |
10f2d63a VZ |
2644 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` |
2645 | if test "x$LINE" != x ; then | |
2646 | eval "DEFAULT_$LINE" | |
2647 | else | |
2648 | no_cache=1 | |
2649 | fi | |
2650 | ||
2651 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
698dcdb6 VZ |
2652 | |
2653 | fi | |
10f2d63a VZ |
2654 | |
2655 | ||
2656 | eval "$ac_cv_use_no_exceptions" | |
2657 | if test "$no_cache" != 1; then | |
2658 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
2659 | fi | |
2660 | ||
2661 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
698dcdb6 | 2662 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2663 | else |
698dcdb6 | 2664 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2665 | fi |
698dcdb6 | 2666 | |
10f2d63a | 2667 | |
698dcdb6 | 2668 | echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6 |
29fd3c0c | 2669 | echo "configure:2670: checking for --enable-permissive" >&5 |
10f2d63a VZ |
2670 | no_cache=0 |
2671 | # Check whether --enable-permissive or --disable-permissive was given. | |
2672 | if test "${enable_permissive+set}" = set; then | |
2673 | enableval="$enable_permissive" | |
698dcdb6 | 2674 | |
10f2d63a VZ |
2675 | if test "$enableval" = yes; then |
2676 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
2677 | else | |
2678 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
2679 | fi | |
698dcdb6 | 2680 | |
10f2d63a | 2681 | else |
698dcdb6 | 2682 | |
10f2d63a VZ |
2683 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` |
2684 | if test "x$LINE" != x ; then | |
2685 | eval "DEFAULT_$LINE" | |
2686 | else | |
2687 | no_cache=1 | |
2688 | fi | |
2689 | ||
2690 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
698dcdb6 VZ |
2691 | |
2692 | fi | |
10f2d63a VZ |
2693 | |
2694 | ||
2695 | eval "$ac_cv_use_permissive" | |
2696 | if test "$no_cache" != 1; then | |
2697 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
2698 | fi | |
2699 | ||
2700 | if test "$wxUSE_PERMISSIVE" = yes; then | |
698dcdb6 | 2701 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2702 | else |
698dcdb6 | 2703 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2704 | fi |
698dcdb6 | 2705 | |
10f2d63a | 2706 | |
698dcdb6 | 2707 | echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6 |
29fd3c0c | 2708 | echo "configure:2709: checking for --enable-no_deps" >&5 |
10f2d63a VZ |
2709 | no_cache=0 |
2710 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
2711 | if test "${enable_no_deps+set}" = set; then | |
2712 | enableval="$enable_no_deps" | |
698dcdb6 | 2713 | |
10f2d63a VZ |
2714 | if test "$enableval" = yes; then |
2715 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
2716 | else | |
2717 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
2718 | fi | |
698dcdb6 | 2719 | |
10f2d63a | 2720 | else |
698dcdb6 | 2721 | |
10f2d63a VZ |
2722 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` |
2723 | if test "x$LINE" != x ; then | |
2724 | eval "DEFAULT_$LINE" | |
2725 | else | |
2726 | no_cache=1 | |
2727 | fi | |
2728 | ||
2729 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
698dcdb6 VZ |
2730 | |
2731 | fi | |
10f2d63a VZ |
2732 | |
2733 | ||
2734 | eval "$ac_cv_use_no_deps" | |
2735 | if test "$no_cache" != 1; then | |
2736 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
2737 | fi | |
2738 | ||
2739 | if test "$wxUSE_NO_DEPS" = yes; then | |
698dcdb6 | 2740 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2741 | else |
698dcdb6 | 2742 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2743 | fi |
698dcdb6 VZ |
2744 | |
2745 | ||
10f2d63a | 2746 | |
54276ccf | 2747 | echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6 |
29fd3c0c | 2748 | echo "configure:2749: checking for --enable-compat20" >&5 |
54276ccf VZ |
2749 | no_cache=0 |
2750 | # Check whether --enable-compat20 or --disable-compat20 was given. | |
2751 | if test "${enable_compat20+set}" = set; then | |
2752 | enableval="$enable_compat20" | |
2753 | ||
2754 | if test "$enableval" = yes; then | |
2755 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes' | |
2756 | else | |
2757 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no' | |
2758 | fi | |
2759 | ||
2760 | else | |
2761 | ||
2762 | LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}` | |
2763 | if test "x$LINE" != x ; then | |
2764 | eval "DEFAULT_$LINE" | |
2765 | else | |
2766 | no_cache=1 | |
2767 | fi | |
2768 | ||
2769 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2 | |
2770 | ||
2771 | fi | |
2772 | ||
2773 | ||
2774 | eval "$ac_cv_use_compat20" | |
2775 | if test "$no_cache" != 1; then | |
2776 | echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp | |
2777 | fi | |
2778 | ||
2779 | if test "$WXWIN_COMPATIBILITY_2" = yes; then | |
2780 | echo "$ac_t""yes" 1>&6 | |
2781 | else | |
2782 | echo "$ac_t""no" 1>&6 | |
2783 | fi | |
2784 | ||
2785 | ||
2786 | echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6 | |
29fd3c0c | 2787 | echo "configure:2788: checking for --enable-compat22" >&5 |
54276ccf VZ |
2788 | no_cache=0 |
2789 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
2790 | if test "${enable_compat22+set}" = set; then | |
2791 | enableval="$enable_compat22" | |
2792 | ||
2793 | if test "$enableval" = yes; then | |
2794 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
2795 | else | |
2796 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
2797 | fi | |
2798 | ||
2799 | else | |
2800 | ||
2801 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` | |
2802 | if test "x$LINE" != x ; then | |
2803 | eval "DEFAULT_$LINE" | |
2804 | else | |
2805 | no_cache=1 | |
2806 | fi | |
2807 | ||
2808 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
2809 | ||
2810 | fi | |
2811 | ||
2812 | ||
2813 | eval "$ac_cv_use_compat22" | |
2814 | if test "$no_cache" != 1; then | |
2815 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
2816 | fi | |
2817 | ||
2818 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
2819 | echo "$ac_t""yes" 1>&6 | |
2820 | else | |
2821 | echo "$ac_t""no" 1>&6 | |
2822 | fi | |
2823 | ||
2824 | ||
2825 | ||
698dcdb6 VZ |
2826 | |
2827 | echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6 | |
29fd3c0c | 2828 | echo "configure:2829: checking for --enable-intl" >&5 |
10f2d63a VZ |
2829 | no_cache=0 |
2830 | # Check whether --enable-intl or --disable-intl was given. | |
2831 | if test "${enable_intl+set}" = set; then | |
2832 | enableval="$enable_intl" | |
698dcdb6 | 2833 | |
10f2d63a VZ |
2834 | if test "$enableval" = yes; then |
2835 | ac_cv_use_intl='wxUSE_INTL=yes' | |
2836 | else | |
2837 | ac_cv_use_intl='wxUSE_INTL=no' | |
2838 | fi | |
698dcdb6 | 2839 | |
10f2d63a | 2840 | else |
698dcdb6 | 2841 | |
10f2d63a VZ |
2842 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` |
2843 | if test "x$LINE" != x ; then | |
2844 | eval "DEFAULT_$LINE" | |
2845 | else | |
2846 | no_cache=1 | |
2847 | fi | |
2848 | ||
2849 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
698dcdb6 VZ |
2850 | |
2851 | fi | |
10f2d63a VZ |
2852 | |
2853 | ||
2854 | eval "$ac_cv_use_intl" | |
2855 | if test "$no_cache" != 1; then | |
2856 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
2857 | fi | |
2858 | ||
2859 | if test "$wxUSE_INTL" = yes; then | |
698dcdb6 | 2860 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2861 | else |
698dcdb6 | 2862 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2863 | fi |
698dcdb6 | 2864 | |
10f2d63a | 2865 | |
698dcdb6 | 2866 | echo $ac_n "checking for --enable-config""... $ac_c" 1>&6 |
29fd3c0c | 2867 | echo "configure:2868: checking for --enable-config" >&5 |
10f2d63a VZ |
2868 | no_cache=0 |
2869 | # Check whether --enable-config or --disable-config was given. | |
2870 | if test "${enable_config+set}" = set; then | |
2871 | enableval="$enable_config" | |
698dcdb6 | 2872 | |
10f2d63a VZ |
2873 | if test "$enableval" = yes; then |
2874 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
2875 | else | |
2876 | ac_cv_use_config='wxUSE_CONFIG=no' | |
2877 | fi | |
698dcdb6 | 2878 | |
10f2d63a | 2879 | else |
698dcdb6 | 2880 | |
10f2d63a VZ |
2881 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` |
2882 | if test "x$LINE" != x ; then | |
2883 | eval "DEFAULT_$LINE" | |
2884 | else | |
2885 | no_cache=1 | |
2886 | fi | |
2887 | ||
2888 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
698dcdb6 VZ |
2889 | |
2890 | fi | |
10f2d63a VZ |
2891 | |
2892 | ||
2893 | eval "$ac_cv_use_config" | |
2894 | if test "$no_cache" != 1; then | |
2895 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
2896 | fi | |
2897 | ||
2898 | if test "$wxUSE_CONFIG" = yes; then | |
698dcdb6 | 2899 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2900 | else |
698dcdb6 | 2901 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2902 | fi |
698dcdb6 VZ |
2903 | |
2904 | ||
b12915c1 | 2905 | |
698dcdb6 | 2906 | echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6 |
29fd3c0c | 2907 | echo "configure:2908: checking for --enable-sockets" >&5 |
10f2d63a VZ |
2908 | no_cache=0 |
2909 | # Check whether --enable-sockets or --disable-sockets was given. | |
2910 | if test "${enable_sockets+set}" = set; then | |
2911 | enableval="$enable_sockets" | |
698dcdb6 | 2912 | |
10f2d63a VZ |
2913 | if test "$enableval" = yes; then |
2914 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
2915 | else | |
2916 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
2917 | fi | |
698dcdb6 | 2918 | |
10f2d63a | 2919 | else |
698dcdb6 | 2920 | |
10f2d63a VZ |
2921 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` |
2922 | if test "x$LINE" != x ; then | |
2923 | eval "DEFAULT_$LINE" | |
2924 | else | |
2925 | no_cache=1 | |
2926 | fi | |
2927 | ||
2928 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
698dcdb6 VZ |
2929 | |
2930 | fi | |
10f2d63a VZ |
2931 | |
2932 | ||
2933 | eval "$ac_cv_use_sockets" | |
2934 | if test "$no_cache" != 1; then | |
2935 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
2936 | fi | |
2937 | ||
2938 | if test "$wxUSE_SOCKETS" = yes; then | |
698dcdb6 | 2939 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2940 | else |
698dcdb6 | 2941 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2942 | fi |
698dcdb6 | 2943 | |
b12915c1 | 2944 | |
698dcdb6 VZ |
2945 | |
2946 | echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6 | |
29fd3c0c | 2947 | echo "configure:2948: checking for --enable-ipc" >&5 |
10f2d63a | 2948 | no_cache=0 |
eb4efbdc VZ |
2949 | # Check whether --enable-ipc or --disable-ipc was given. |
2950 | if test "${enable_ipc+set}" = set; then | |
2951 | enableval="$enable_ipc" | |
698dcdb6 | 2952 | |
10f2d63a | 2953 | if test "$enableval" = yes; then |
eb4efbdc | 2954 | ac_cv_use_ipc='wxUSE_IPC=yes' |
10f2d63a | 2955 | else |
eb4efbdc | 2956 | ac_cv_use_ipc='wxUSE_IPC=no' |
10f2d63a | 2957 | fi |
698dcdb6 | 2958 | |
10f2d63a | 2959 | else |
698dcdb6 | 2960 | |
eb4efbdc | 2961 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` |
10f2d63a VZ |
2962 | if test "x$LINE" != x ; then |
2963 | eval "DEFAULT_$LINE" | |
2964 | else | |
2965 | no_cache=1 | |
2966 | fi | |
2967 | ||
eb4efbdc | 2968 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC |
698dcdb6 VZ |
2969 | |
2970 | fi | |
10f2d63a VZ |
2971 | |
2972 | ||
eb4efbdc | 2973 | eval "$ac_cv_use_ipc" |
10f2d63a | 2974 | if test "$no_cache" != 1; then |
eb4efbdc | 2975 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2976 | fi |
2977 | ||
eb4efbdc | 2978 | if test "$wxUSE_IPC" = yes; then |
698dcdb6 | 2979 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2980 | else |
698dcdb6 | 2981 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2982 | fi |
698dcdb6 VZ |
2983 | |
2984 | ||
eb4efbdc | 2985 | |
1e6feb95 | 2986 | echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6 |
29fd3c0c | 2987 | echo "configure:2988: checking for --enable-cmdline" >&5 |
1e6feb95 VZ |
2988 | no_cache=0 |
2989 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
2990 | if test "${enable_cmdline+set}" = set; then | |
2991 | enableval="$enable_cmdline" | |
2992 | ||
2993 | if test "$enableval" = yes; then | |
2994 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
2995 | else | |
2996 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
2997 | fi | |
2998 | ||
2999 | else | |
3000 | ||
3001 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
3002 | if test "x$LINE" != x ; then | |
3003 | eval "DEFAULT_$LINE" | |
3004 | else | |
3005 | no_cache=1 | |
3006 | fi | |
3007 | ||
3008 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
3009 | ||
3010 | fi | |
3011 | ||
3012 | ||
3013 | eval "$ac_cv_use_cmdline" | |
3014 | if test "$no_cache" != 1; then | |
3015 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
3016 | fi | |
3017 | ||
3018 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
3019 | echo "$ac_t""yes" 1>&6 | |
3020 | else | |
3021 | echo "$ac_t""no" 1>&6 | |
3022 | fi | |
3023 | ||
3024 | ||
3025 | echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6 | |
29fd3c0c | 3026 | echo "configure:3027: checking for --enable-datetime" >&5 |
1e6feb95 VZ |
3027 | no_cache=0 |
3028 | # Check whether --enable-datetime or --disable-datetime was given. | |
3029 | if test "${enable_datetime+set}" = set; then | |
3030 | enableval="$enable_datetime" | |
3031 | ||
3032 | if test "$enableval" = yes; then | |
3033 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
3034 | else | |
3035 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
3036 | fi | |
3037 | ||
3038 | else | |
3039 | ||
3040 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
3041 | if test "x$LINE" != x ; then | |
3042 | eval "DEFAULT_$LINE" | |
3043 | else | |
3044 | no_cache=1 | |
3045 | fi | |
3046 | ||
3047 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
3048 | ||
3049 | fi | |
3050 | ||
3051 | ||
3052 | eval "$ac_cv_use_datetime" | |
3053 | if test "$no_cache" != 1; then | |
3054 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
3055 | fi | |
3056 | ||
3057 | if test "$wxUSE_DATETIME" = yes; then | |
3058 | echo "$ac_t""yes" 1>&6 | |
3059 | else | |
3060 | echo "$ac_t""no" 1>&6 | |
3061 | fi | |
3062 | ||
3063 | ||
3064 | echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6 | |
29fd3c0c | 3065 | echo "configure:3066: checking for --enable-timedate" >&5 |
1e6feb95 VZ |
3066 | no_cache=0 |
3067 | # Check whether --enable-timedate or --disable-timedate was given. | |
3068 | if test "${enable_timedate+set}" = set; then | |
3069 | enableval="$enable_timedate" | |
3070 | ||
3071 | if test "$enableval" = yes; then | |
3072 | ac_cv_use_timedate='wxUSE_TIMEDATE=yes' | |
3073 | else | |
3074 | ac_cv_use_timedate='wxUSE_TIMEDATE=no' | |
3075 | fi | |
3076 | ||
3077 | else | |
3078 | ||
3079 | LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}` | |
3080 | if test "x$LINE" != x ; then | |
3081 | eval "DEFAULT_$LINE" | |
3082 | else | |
3083 | no_cache=1 | |
3084 | fi | |
3085 | ||
3086 | ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE | |
3087 | ||
3088 | fi | |
3089 | ||
3090 | ||
3091 | eval "$ac_cv_use_timedate" | |
3092 | if test "$no_cache" != 1; then | |
3093 | echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp | |
3094 | fi | |
3095 | ||
3096 | if test "$wxUSE_TIMEDATE" = yes; then | |
3097 | echo "$ac_t""yes" 1>&6 | |
3098 | else | |
3099 | echo "$ac_t""no" 1>&6 | |
3100 | fi | |
3101 | ||
3102 | ||
3103 | echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6 | |
29fd3c0c | 3104 | echo "configure:3105: checking for --enable-stopwatch" >&5 |
1e6feb95 VZ |
3105 | no_cache=0 |
3106 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
3107 | if test "${enable_stopwatch+set}" = set; then | |
3108 | enableval="$enable_stopwatch" | |
3109 | ||
3110 | if test "$enableval" = yes; then | |
3111 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
3112 | else | |
3113 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
3114 | fi | |
3115 | ||
3116 | else | |
3117 | ||
3118 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` | |
3119 | if test "x$LINE" != x ; then | |
3120 | eval "DEFAULT_$LINE" | |
3121 | else | |
3122 | no_cache=1 | |
3123 | fi | |
3124 | ||
3125 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
3126 | ||
3127 | fi | |
3128 | ||
3129 | ||
3130 | eval "$ac_cv_use_stopwatch" | |
3131 | if test "$no_cache" != 1; then | |
3132 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
3133 | fi | |
3134 | ||
3135 | if test "$wxUSE_STOPWATCH" = yes; then | |
3136 | echo "$ac_t""yes" 1>&6 | |
3137 | else | |
3138 | echo "$ac_t""no" 1>&6 | |
3139 | fi | |
3140 | ||
3141 | ||
698dcdb6 | 3142 | echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6 |
29fd3c0c | 3143 | echo "configure:3144: checking for --enable-dialupman" >&5 |
10f2d63a | 3144 | no_cache=0 |
eb4efbdc VZ |
3145 | # Check whether --enable-dialupman or --disable-dialupman was given. |
3146 | if test "${enable_dialupman+set}" = set; then | |
3147 | enableval="$enable_dialupman" | |
698dcdb6 | 3148 | |
10f2d63a | 3149 | if test "$enableval" = yes; then |
eb4efbdc | 3150 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' |
10f2d63a | 3151 | else |
eb4efbdc | 3152 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' |
10f2d63a | 3153 | fi |
698dcdb6 | 3154 | |
10f2d63a | 3155 | else |
698dcdb6 | 3156 | |
eb4efbdc | 3157 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3158 | if test "x$LINE" != x ; then |
3159 | eval "DEFAULT_$LINE" | |
3160 | else | |
3161 | no_cache=1 | |
3162 | fi | |
3163 | ||
eb4efbdc | 3164 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER |
698dcdb6 VZ |
3165 | |
3166 | fi | |
10f2d63a VZ |
3167 | |
3168 | ||
eb4efbdc | 3169 | eval "$ac_cv_use_dialupman" |
10f2d63a | 3170 | if test "$no_cache" != 1; then |
eb4efbdc | 3171 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3172 | fi |
3173 | ||
eb4efbdc | 3174 | if test "$wxUSE_DIALUP_MANAGER" = yes; then |
698dcdb6 | 3175 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3176 | else |
698dcdb6 | 3177 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3178 | fi |
698dcdb6 | 3179 | |
10f2d63a | 3180 | |
698dcdb6 | 3181 | echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6 |
29fd3c0c | 3182 | echo "configure:3183: checking for --enable-apple_ieee" >&5 |
10f2d63a VZ |
3183 | no_cache=0 |
3184 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
3185 | if test "${enable_apple_ieee+set}" = set; then | |
3186 | enableval="$enable_apple_ieee" | |
698dcdb6 | 3187 | |
10f2d63a VZ |
3188 | if test "$enableval" = yes; then |
3189 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
3190 | else | |
3191 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
3192 | fi | |
698dcdb6 | 3193 | |
10f2d63a | 3194 | else |
698dcdb6 | 3195 | |
10f2d63a VZ |
3196 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` |
3197 | if test "x$LINE" != x ; then | |
3198 | eval "DEFAULT_$LINE" | |
3199 | else | |
3200 | no_cache=1 | |
3201 | fi | |
3202 | ||
3203 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
698dcdb6 VZ |
3204 | |
3205 | fi | |
10f2d63a VZ |
3206 | |
3207 | ||
3208 | eval "$ac_cv_use_apple_ieee" | |
3209 | if test "$no_cache" != 1; then | |
3210 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
3211 | fi | |
3212 | ||
3213 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
698dcdb6 | 3214 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3215 | else |
698dcdb6 | 3216 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3217 | fi |
698dcdb6 | 3218 | |
10f2d63a | 3219 | |
1e6feb95 | 3220 | echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6 |
29fd3c0c | 3221 | echo "configure:3222: checking for --enable-timer" >&5 |
10f2d63a | 3222 | no_cache=0 |
1e6feb95 VZ |
3223 | # Check whether --enable-timer or --disable-timer was given. |
3224 | if test "${enable_timer+set}" = set; then | |
3225 | enableval="$enable_timer" | |
698dcdb6 | 3226 | |
10f2d63a | 3227 | if test "$enableval" = yes; then |
1e6feb95 | 3228 | ac_cv_use_timer='wxUSE_TIMER=yes' |
10f2d63a | 3229 | else |
1e6feb95 | 3230 | ac_cv_use_timer='wxUSE_TIMER=no' |
10f2d63a | 3231 | fi |
698dcdb6 | 3232 | |
10f2d63a | 3233 | else |
698dcdb6 | 3234 | |
1e6feb95 | 3235 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3236 | if test "x$LINE" != x ; then |
3237 | eval "DEFAULT_$LINE" | |
3238 | else | |
3239 | no_cache=1 | |
3240 | fi | |
3241 | ||
1e6feb95 | 3242 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER |
698dcdb6 VZ |
3243 | |
3244 | fi | |
10f2d63a VZ |
3245 | |
3246 | ||
1e6feb95 | 3247 | eval "$ac_cv_use_timer" |
10f2d63a | 3248 | if test "$no_cache" != 1; then |
1e6feb95 | 3249 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3250 | fi |
3251 | ||
1e6feb95 | 3252 | if test "$wxUSE_TIMER" = yes; then |
698dcdb6 | 3253 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3254 | else |
698dcdb6 | 3255 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3256 | fi |
698dcdb6 | 3257 | |
10f2d63a | 3258 | |
698dcdb6 | 3259 | echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6 |
29fd3c0c | 3260 | echo "configure:3261: checking for --enable-wave" >&5 |
10f2d63a VZ |
3261 | no_cache=0 |
3262 | # Check whether --enable-wave or --disable-wave was given. | |
3263 | if test "${enable_wave+set}" = set; then | |
3264 | enableval="$enable_wave" | |
698dcdb6 | 3265 | |
10f2d63a VZ |
3266 | if test "$enableval" = yes; then |
3267 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
3268 | else | |
3269 | ac_cv_use_wave='wxUSE_WAVE=no' | |
3270 | fi | |
698dcdb6 | 3271 | |
10f2d63a | 3272 | else |
698dcdb6 | 3273 | |
10f2d63a VZ |
3274 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` |
3275 | if test "x$LINE" != x ; then | |
3276 | eval "DEFAULT_$LINE" | |
3277 | else | |
3278 | no_cache=1 | |
3279 | fi | |
3280 | ||
3281 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
698dcdb6 VZ |
3282 | |
3283 | fi | |
10f2d63a VZ |
3284 | |
3285 | ||
3286 | eval "$ac_cv_use_wave" | |
3287 | if test "$no_cache" != 1; then | |
3288 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
3289 | fi | |
3290 | ||
3291 | if test "$wxUSE_WAVE" = yes; then | |
698dcdb6 | 3292 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3293 | else |
698dcdb6 | 3294 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3295 | fi |
698dcdb6 | 3296 | |
10f2d63a | 3297 | |
698dcdb6 | 3298 | echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6 |
29fd3c0c | 3299 | echo "configure:3300: checking for --enable-fraction" >&5 |
10f2d63a VZ |
3300 | no_cache=0 |
3301 | # Check whether --enable-fraction or --disable-fraction was given. | |
3302 | if test "${enable_fraction+set}" = set; then | |
3303 | enableval="$enable_fraction" | |
698dcdb6 | 3304 | |
10f2d63a VZ |
3305 | if test "$enableval" = yes; then |
3306 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
3307 | else | |
3308 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
3309 | fi | |
698dcdb6 | 3310 | |
10f2d63a | 3311 | else |
698dcdb6 | 3312 | |
10f2d63a VZ |
3313 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` |
3314 | if test "x$LINE" != x ; then | |
3315 | eval "DEFAULT_$LINE" | |
3316 | else | |
3317 | no_cache=1 | |
3318 | fi | |
3319 | ||
3320 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
698dcdb6 VZ |
3321 | |
3322 | fi | |
10f2d63a VZ |
3323 | |
3324 | ||
3325 | eval "$ac_cv_use_fraction" | |
3326 | if test "$no_cache" != 1; then | |
3327 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
3328 | fi | |
3329 | ||
3330 | if test "$wxUSE_FRACTION" = yes; then | |
698dcdb6 | 3331 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3332 | else |
698dcdb6 | 3333 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3334 | fi |
698dcdb6 | 3335 | |
10f2d63a | 3336 | |
698dcdb6 | 3337 | echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6 |
29fd3c0c | 3338 | echo "configure:3339: checking for --enable-dynlib" >&5 |
10f2d63a VZ |
3339 | no_cache=0 |
3340 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
3341 | if test "${enable_dynlib+set}" = set; then | |
3342 | enableval="$enable_dynlib" | |
698dcdb6 | 3343 | |
10f2d63a VZ |
3344 | if test "$enableval" = yes; then |
3345 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
3346 | else | |
3347 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
3348 | fi | |
698dcdb6 | 3349 | |
10f2d63a | 3350 | else |
698dcdb6 | 3351 | |
10f2d63a VZ |
3352 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` |
3353 | if test "x$LINE" != x ; then | |
3354 | eval "DEFAULT_$LINE" | |
3355 | else | |
3356 | no_cache=1 | |
3357 | fi | |
3358 | ||
3359 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
698dcdb6 VZ |
3360 | |
3361 | fi | |
10f2d63a VZ |
3362 | |
3363 | ||
3364 | eval "$ac_cv_use_dynlib" | |
3365 | if test "$no_cache" != 1; then | |
3366 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
3367 | fi | |
3368 | ||
3369 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
698dcdb6 | 3370 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3371 | else |
698dcdb6 | 3372 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3373 | fi |
698dcdb6 | 3374 | |
10f2d63a | 3375 | |
698dcdb6 | 3376 | echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6 |
29fd3c0c | 3377 | echo "configure:3378: checking for --enable-longlong" >&5 |
10f2d63a VZ |
3378 | no_cache=0 |
3379 | # Check whether --enable-longlong or --disable-longlong was given. | |
3380 | if test "${enable_longlong+set}" = set; then | |
3381 | enableval="$enable_longlong" | |
698dcdb6 | 3382 | |
10f2d63a VZ |
3383 | if test "$enableval" = yes; then |
3384 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
3385 | else | |
3386 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
3387 | fi | |
698dcdb6 | 3388 | |
10f2d63a | 3389 | else |
698dcdb6 | 3390 | |
10f2d63a VZ |
3391 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` |
3392 | if test "x$LINE" != x ; then | |
3393 | eval "DEFAULT_$LINE" | |
3394 | else | |
3395 | no_cache=1 | |
3396 | fi | |
3397 | ||
3398 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
698dcdb6 VZ |
3399 | |
3400 | fi | |
10f2d63a VZ |
3401 | |
3402 | ||
3403 | eval "$ac_cv_use_longlong" | |
3404 | if test "$no_cache" != 1; then | |
3405 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
3406 | fi | |
3407 | ||
3408 | if test "$wxUSE_LONGLONG" = yes; then | |
698dcdb6 | 3409 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3410 | else |
698dcdb6 | 3411 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3412 | fi |
698dcdb6 | 3413 | |
10f2d63a | 3414 | |
698dcdb6 | 3415 | echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6 |
29fd3c0c | 3416 | echo "configure:3417: checking for --enable-geometry" >&5 |
e8f65ba6 RR |
3417 | no_cache=0 |
3418 | # Check whether --enable-geometry or --disable-geometry was given. | |
3419 | if test "${enable_geometry+set}" = set; then | |
3420 | enableval="$enable_geometry" | |
698dcdb6 | 3421 | |
e8f65ba6 RR |
3422 | if test "$enableval" = yes; then |
3423 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
3424 | else | |
3425 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
3426 | fi | |
698dcdb6 | 3427 | |
e8f65ba6 | 3428 | else |
698dcdb6 | 3429 | |
e8f65ba6 RR |
3430 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` |
3431 | if test "x$LINE" != x ; then | |
3432 | eval "DEFAULT_$LINE" | |
3433 | else | |
3434 | no_cache=1 | |
3435 | fi | |
3436 | ||
3437 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
698dcdb6 VZ |
3438 | |
3439 | fi | |
e8f65ba6 RR |
3440 | |
3441 | ||
3442 | eval "$ac_cv_use_geometry" | |
3443 | if test "$no_cache" != 1; then | |
3444 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
3445 | fi | |
3446 | ||
3447 | if test "$wxUSE_GEOMETRY" = yes; then | |
698dcdb6 | 3448 | echo "$ac_t""yes" 1>&6 |
e8f65ba6 | 3449 | else |
698dcdb6 | 3450 | echo "$ac_t""no" 1>&6 |
e8f65ba6 | 3451 | fi |
698dcdb6 | 3452 | |
e8f65ba6 | 3453 | |
698dcdb6 | 3454 | echo $ac_n "checking for --enable-log""... $ac_c" 1>&6 |
29fd3c0c | 3455 | echo "configure:3456: checking for --enable-log" >&5 |
10f2d63a VZ |
3456 | no_cache=0 |
3457 | # Check whether --enable-log or --disable-log was given. | |
3458 | if test "${enable_log+set}" = set; then | |
3459 | enableval="$enable_log" | |
698dcdb6 | 3460 | |
10f2d63a VZ |
3461 | if test "$enableval" = yes; then |
3462 | ac_cv_use_log='wxUSE_LOG=yes' | |
3463 | else | |
3464 | ac_cv_use_log='wxUSE_LOG=no' | |
3465 | fi | |
698dcdb6 | 3466 | |
10f2d63a | 3467 | else |
698dcdb6 | 3468 | |
10f2d63a VZ |
3469 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` |
3470 | if test "x$LINE" != x ; then | |
3471 | eval "DEFAULT_$LINE" | |
3472 | else | |
3473 | no_cache=1 | |
3474 | fi | |
3475 | ||
3476 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
698dcdb6 VZ |
3477 | |
3478 | fi | |
10f2d63a VZ |
3479 | |
3480 | ||
3481 | eval "$ac_cv_use_log" | |
3482 | if test "$no_cache" != 1; then | |
3483 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
3484 | fi | |
3485 | ||
3486 | if test "$wxUSE_LOG" = yes; then | |
698dcdb6 | 3487 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3488 | else |
698dcdb6 | 3489 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3490 | fi |
698dcdb6 | 3491 | |
10f2d63a | 3492 | |
698dcdb6 | 3493 | echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6 |
29fd3c0c | 3494 | echo "configure:3495: checking for --enable-streams" >&5 |
10f2d63a VZ |
3495 | no_cache=0 |
3496 | # Check whether --enable-streams or --disable-streams was given. | |
3497 | if test "${enable_streams+set}" = set; then | |
3498 | enableval="$enable_streams" | |
698dcdb6 | 3499 | |
10f2d63a VZ |
3500 | if test "$enableval" = yes; then |
3501 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
3502 | else | |
3503 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
3504 | fi | |
698dcdb6 | 3505 | |
10f2d63a | 3506 | else |
698dcdb6 | 3507 | |
10f2d63a VZ |
3508 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` |
3509 | if test "x$LINE" != x ; then | |
3510 | eval "DEFAULT_$LINE" | |
3511 | else | |
3512 | no_cache=1 | |
3513 | fi | |
3514 | ||
3515 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
698dcdb6 VZ |
3516 | |
3517 | fi | |
10f2d63a VZ |
3518 | |
3519 | ||
3520 | eval "$ac_cv_use_streams" | |
3521 | if test "$no_cache" != 1; then | |
3522 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
3523 | fi | |
3524 | ||
3525 | if test "$wxUSE_STREAMS" = yes; then | |
698dcdb6 | 3526 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3527 | else |
698dcdb6 | 3528 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3529 | fi |
698dcdb6 | 3530 | |
10f2d63a | 3531 | |
698dcdb6 | 3532 | echo $ac_n "checking for --enable-file""... $ac_c" 1>&6 |
29fd3c0c | 3533 | echo "configure:3534: checking for --enable-file" >&5 |
10f2d63a VZ |
3534 | no_cache=0 |
3535 | # Check whether --enable-file or --disable-file was given. | |
3536 | if test "${enable_file+set}" = set; then | |
3537 | enableval="$enable_file" | |
698dcdb6 | 3538 | |
10f2d63a VZ |
3539 | if test "$enableval" = yes; then |
3540 | ac_cv_use_file='wxUSE_FILE=yes' | |
3541 | else | |
3542 | ac_cv_use_file='wxUSE_FILE=no' | |
3543 | fi | |
698dcdb6 | 3544 | |
10f2d63a | 3545 | else |
698dcdb6 | 3546 | |
10f2d63a VZ |
3547 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` |
3548 | if test "x$LINE" != x ; then | |
3549 | eval "DEFAULT_$LINE" | |
3550 | else | |
3551 | no_cache=1 | |
3552 | fi | |
3553 | ||
3554 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
698dcdb6 VZ |
3555 | |
3556 | fi | |
10f2d63a VZ |
3557 | |
3558 | ||
3559 | eval "$ac_cv_use_file" | |
3560 | if test "$no_cache" != 1; then | |
3561 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
3562 | fi | |
3563 | ||
3564 | if test "$wxUSE_FILE" = yes; then | |
698dcdb6 | 3565 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3566 | else |
698dcdb6 | 3567 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3568 | fi |
698dcdb6 | 3569 | |
10f2d63a | 3570 | |
1e6feb95 | 3571 | echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6 |
29fd3c0c | 3572 | echo "configure:3573: checking for --enable-ffile" >&5 |
10f2d63a | 3573 | no_cache=0 |
1e6feb95 VZ |
3574 | # Check whether --enable-ffile or --disable-ffile was given. |
3575 | if test "${enable_ffile+set}" = set; then | |
3576 | enableval="$enable_ffile" | |
698dcdb6 | 3577 | |
10f2d63a | 3578 | if test "$enableval" = yes; then |
1e6feb95 | 3579 | ac_cv_use_ffile='wxUSE_FFILE=yes' |
10f2d63a | 3580 | else |
1e6feb95 | 3581 | ac_cv_use_ffile='wxUSE_FFILE=no' |
10f2d63a | 3582 | fi |
698dcdb6 | 3583 | |
10f2d63a | 3584 | else |
698dcdb6 | 3585 | |
1e6feb95 | 3586 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
3587 | if test "x$LINE" != x ; then |
3588 | eval "DEFAULT_$LINE" | |
3589 | else | |
3590 | no_cache=1 | |
3591 | fi | |
3592 | ||
1e6feb95 | 3593 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE |
698dcdb6 VZ |
3594 | |
3595 | fi | |
10f2d63a VZ |
3596 | |
3597 | ||
1e6feb95 | 3598 | eval "$ac_cv_use_ffile" |
10f2d63a | 3599 | if test "$no_cache" != 1; then |
1e6feb95 | 3600 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3601 | fi |
3602 | ||
1e6feb95 | 3603 | if test "$wxUSE_FFILE" = yes; then |
698dcdb6 | 3604 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3605 | else |
698dcdb6 | 3606 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3607 | fi |
698dcdb6 | 3608 | |
10f2d63a | 3609 | |
1e6feb95 | 3610 | echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6 |
29fd3c0c | 3611 | echo "configure:3612: checking for --enable-textfile" >&5 |
10f2d63a | 3612 | no_cache=0 |
1e6feb95 VZ |
3613 | # Check whether --enable-textfile or --disable-textfile was given. |
3614 | if test "${enable_textfile+set}" = set; then | |
3615 | enableval="$enable_textfile" | |
698dcdb6 | 3616 | |
10f2d63a | 3617 | if test "$enableval" = yes; then |
1e6feb95 | 3618 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' |
10f2d63a | 3619 | else |
1e6feb95 | 3620 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' |
10f2d63a | 3621 | fi |
698dcdb6 | 3622 | |
10f2d63a | 3623 | else |
698dcdb6 | 3624 | |
1e6feb95 | 3625 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
3626 | if test "x$LINE" != x ; then |
3627 | eval "DEFAULT_$LINE" | |
3628 | else | |
3629 | no_cache=1 | |
3630 | fi | |
3631 | ||
1e6feb95 | 3632 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE |
698dcdb6 VZ |
3633 | |
3634 | fi | |
10f2d63a VZ |
3635 | |
3636 | ||
1e6feb95 | 3637 | eval "$ac_cv_use_textfile" |
10f2d63a | 3638 | if test "$no_cache" != 1; then |
1e6feb95 | 3639 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3640 | fi |
3641 | ||
1e6feb95 | 3642 | if test "$wxUSE_TEXTFILE" = yes; then |
698dcdb6 | 3643 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3644 | else |
698dcdb6 | 3645 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3646 | fi |
698dcdb6 | 3647 | |
10f2d63a | 3648 | |
1e6feb95 | 3649 | echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6 |
29fd3c0c | 3650 | echo "configure:3651: checking for --enable-fontmap" >&5 |
10f2d63a | 3651 | no_cache=0 |
1e6feb95 VZ |
3652 | # Check whether --enable-fontmap or --disable-fontmap was given. |
3653 | if test "${enable_fontmap+set}" = set; then | |
3654 | enableval="$enable_fontmap" | |
698dcdb6 | 3655 | |
10f2d63a | 3656 | if test "$enableval" = yes; then |
1e6feb95 | 3657 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' |
10f2d63a | 3658 | else |
1e6feb95 | 3659 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' |
10f2d63a | 3660 | fi |
698dcdb6 | 3661 | |
10f2d63a | 3662 | else |
698dcdb6 | 3663 | |
1e6feb95 | 3664 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` |
10f2d63a VZ |
3665 | if test "x$LINE" != x ; then |
3666 | eval "DEFAULT_$LINE" | |
3667 | else | |
3668 | no_cache=1 | |
3669 | fi | |
3670 | ||
1e6feb95 | 3671 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP |
698dcdb6 VZ |
3672 | |
3673 | fi | |
10f2d63a VZ |
3674 | |
3675 | ||
1e6feb95 | 3676 | eval "$ac_cv_use_fontmap" |
10f2d63a | 3677 | if test "$no_cache" != 1; then |
1e6feb95 | 3678 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3679 | fi |
3680 | ||
1e6feb95 | 3681 | if test "$wxUSE_FONTMAP" = yes; then |
698dcdb6 | 3682 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3683 | else |
698dcdb6 | 3684 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3685 | fi |
698dcdb6 | 3686 | |
10f2d63a | 3687 | |
1e6feb95 | 3688 | echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6 |
29fd3c0c | 3689 | echo "configure:3690: checking for --enable-unicode" >&5 |
10f2d63a | 3690 | no_cache=0 |
1e6feb95 VZ |
3691 | # Check whether --enable-unicode or --disable-unicode was given. |
3692 | if test "${enable_unicode+set}" = set; then | |
3693 | enableval="$enable_unicode" | |
3694 | ||
3695 | if test "$enableval" = yes; then | |
3696 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
3697 | else | |
3698 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
3699 | fi | |
3700 | ||
3701 | else | |
3702 | ||
3703 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
3704 | if test "x$LINE" != x ; then | |
3705 | eval "DEFAULT_$LINE" | |
3706 | else | |
3707 | no_cache=1 | |
3708 | fi | |
3709 | ||
3710 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
3711 | ||
3712 | fi | |
3713 | ||
3714 | ||
3715 | eval "$ac_cv_use_unicode" | |
3716 | if test "$no_cache" != 1; then | |
3717 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
3718 | fi | |
3719 | ||
3720 | if test "$wxUSE_UNICODE" = yes; then | |
3721 | echo "$ac_t""yes" 1>&6 | |
3722 | else | |
3723 | echo "$ac_t""no" 1>&6 | |
3724 | fi | |
3725 | ||
3726 | ||
3727 | echo $ac_n "checking for --enable-wcsrtombs""... $ac_c" 1>&6 | |
29fd3c0c | 3728 | echo "configure:3729: checking for --enable-wcsrtombs" >&5 |
1e6feb95 VZ |
3729 | no_cache=0 |
3730 | # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given. | |
3731 | if test "${enable_wcsrtombs+set}" = set; then | |
3732 | enableval="$enable_wcsrtombs" | |
3733 | ||
3734 | if test "$enableval" = yes; then | |
3735 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes' | |
3736 | else | |
3737 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no' | |
3738 | fi | |
3739 | ||
3740 | else | |
3741 | ||
3742 | LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}` | |
3743 | if test "x$LINE" != x ; then | |
3744 | eval "DEFAULT_$LINE" | |
3745 | else | |
3746 | no_cache=1 | |
3747 | fi | |
3748 | ||
3749 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS | |
3750 | ||
3751 | fi | |
3752 | ||
3753 | ||
3754 | eval "$ac_cv_use_wcsrtombs" | |
3755 | if test "$no_cache" != 1; then | |
3756 | echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp | |
3757 | fi | |
3758 | ||
3759 | if test "$wxUSE_WCSRTOMBS" = yes; then | |
3760 | echo "$ac_t""yes" 1>&6 | |
3761 | else | |
3762 | echo "$ac_t""no" 1>&6 | |
3763 | fi | |
3764 | ||
3765 | ||
3766 | echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6 | |
29fd3c0c | 3767 | echo "configure:3768: checking for --enable-wxprintfv" >&5 |
1e6feb95 VZ |
3768 | no_cache=0 |
3769 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
3770 | if test "${enable_wxprintfv+set}" = set; then | |
3771 | enableval="$enable_wxprintfv" | |
3772 | ||
3773 | if test "$enableval" = yes; then | |
10f2d63a VZ |
3774 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' |
3775 | else | |
3776 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
3777 | fi | |
698dcdb6 | 3778 | |
10f2d63a | 3779 | else |
698dcdb6 | 3780 | |
10f2d63a VZ |
3781 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` |
3782 | if test "x$LINE" != x ; then | |
3783 | eval "DEFAULT_$LINE" | |
3784 | else | |
3785 | no_cache=1 | |
3786 | fi | |
3787 | ||
3788 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
698dcdb6 VZ |
3789 | |
3790 | fi | |
10f2d63a VZ |
3791 | |
3792 | ||
3793 | eval "$ac_cv_use_wxprintfv" | |
3794 | if test "$no_cache" != 1; then | |
3795 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
3796 | fi | |
3797 | ||
3798 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
698dcdb6 | 3799 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3800 | else |
698dcdb6 | 3801 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3802 | fi |
698dcdb6 | 3803 | |
10f2d63a | 3804 | |
698dcdb6 | 3805 | echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6 |
29fd3c0c | 3806 | echo "configure:3807: checking for --enable-std_iostreams" >&5 |
10f2d63a VZ |
3807 | no_cache=0 |
3808 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
3809 | if test "${enable_std_iostreams+set}" = set; then | |
3810 | enableval="$enable_std_iostreams" | |
698dcdb6 | 3811 | |
10f2d63a VZ |
3812 | if test "$enableval" = yes; then |
3813 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
3814 | else | |
3815 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
3816 | fi | |
698dcdb6 | 3817 | |
10f2d63a | 3818 | else |
698dcdb6 | 3819 | |
10f2d63a VZ |
3820 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
3821 | if test "x$LINE" != x ; then | |
3822 | eval "DEFAULT_$LINE" | |
3823 | else | |
3824 | no_cache=1 | |
3825 | fi | |
3826 | ||
3827 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
698dcdb6 VZ |
3828 | |
3829 | fi | |
10f2d63a VZ |
3830 | |
3831 | ||
3832 | eval "$ac_cv_use_std_iostreams" | |
3833 | if test "$no_cache" != 1; then | |
3834 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
3835 | fi | |
3836 | ||
3837 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
698dcdb6 | 3838 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3839 | else |
698dcdb6 | 3840 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3841 | fi |
698dcdb6 | 3842 | |
10f2d63a | 3843 | |
698dcdb6 | 3844 | echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6 |
29fd3c0c | 3845 | echo "configure:3846: checking for --enable-filesystem" >&5 |
24528b0c VS |
3846 | no_cache=0 |
3847 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
3848 | if test "${enable_filesystem+set}" = set; then | |
3849 | enableval="$enable_filesystem" | |
698dcdb6 | 3850 | |
24528b0c VS |
3851 | if test "$enableval" = yes; then |
3852 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
3853 | else | |
3854 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
3855 | fi | |
698dcdb6 | 3856 | |
24528b0c | 3857 | else |
698dcdb6 | 3858 | |
24528b0c VS |
3859 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` |
3860 | if test "x$LINE" != x ; then | |
3861 | eval "DEFAULT_$LINE" | |
3862 | else | |
3863 | no_cache=1 | |
3864 | fi | |
3865 | ||
3866 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
698dcdb6 VZ |
3867 | |
3868 | fi | |
24528b0c VS |
3869 | |
3870 | ||
3871 | eval "$ac_cv_use_filesystem" | |
3872 | if test "$no_cache" != 1; then | |
3873 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
3874 | fi | |
3875 | ||
3876 | if test "$wxUSE_FILESYSTEM" = yes; then | |
698dcdb6 | 3877 | echo "$ac_t""yes" 1>&6 |
24528b0c | 3878 | else |
698dcdb6 | 3879 | echo "$ac_t""no" 1>&6 |
24528b0c | 3880 | fi |
698dcdb6 | 3881 | |
24528b0c | 3882 | |
698dcdb6 | 3883 | echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6 |
29fd3c0c | 3884 | echo "configure:3885: checking for --enable-fs_inet" >&5 |
10f2d63a VZ |
3885 | no_cache=0 |
3886 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
3887 | if test "${enable_fs_inet+set}" = set; then | |
3888 | enableval="$enable_fs_inet" | |
698dcdb6 | 3889 | |
10f2d63a VZ |
3890 | if test "$enableval" = yes; then |
3891 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
3892 | else | |
3893 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
3894 | fi | |
698dcdb6 | 3895 | |
10f2d63a | 3896 | else |
698dcdb6 | 3897 | |
10f2d63a VZ |
3898 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` |
3899 | if test "x$LINE" != x ; then | |
3900 | eval "DEFAULT_$LINE" | |
3901 | else | |
3902 | no_cache=1 | |
3903 | fi | |
3904 | ||
3905 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
698dcdb6 VZ |
3906 | |
3907 | fi | |
10f2d63a VZ |
3908 | |
3909 | ||
3910 | eval "$ac_cv_use_fs_inet" | |
3911 | if test "$no_cache" != 1; then | |
3912 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
3913 | fi | |
3914 | ||
3915 | if test "$wxUSE_FS_INET" = yes; then | |
698dcdb6 | 3916 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3917 | else |
698dcdb6 | 3918 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3919 | fi |
698dcdb6 | 3920 | |
10f2d63a | 3921 | |
698dcdb6 | 3922 | echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6 |
29fd3c0c | 3923 | echo "configure:3924: checking for --enable-fs_zip" >&5 |
10f2d63a VZ |
3924 | no_cache=0 |
3925 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
3926 | if test "${enable_fs_zip+set}" = set; then | |
3927 | enableval="$enable_fs_zip" | |
698dcdb6 | 3928 | |
10f2d63a VZ |
3929 | if test "$enableval" = yes; then |
3930 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
3931 | else | |
3932 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
3933 | fi | |
698dcdb6 | 3934 | |
10f2d63a | 3935 | else |
698dcdb6 | 3936 | |
10f2d63a VZ |
3937 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` |
3938 | if test "x$LINE" != x ; then | |
3939 | eval "DEFAULT_$LINE" | |
3940 | else | |
3941 | no_cache=1 | |
3942 | fi | |
3943 | ||
3944 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
698dcdb6 VZ |
3945 | |
3946 | fi | |
10f2d63a VZ |
3947 | |
3948 | ||
3949 | eval "$ac_cv_use_fs_zip" | |
3950 | if test "$no_cache" != 1; then | |
3951 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
3952 | fi | |
3953 | ||
3954 | if test "$wxUSE_FS_ZIP" = yes; then | |
698dcdb6 | 3955 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3956 | else |
698dcdb6 | 3957 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3958 | fi |
698dcdb6 | 3959 | |
10f2d63a | 3960 | |
698dcdb6 | 3961 | echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6 |
29fd3c0c | 3962 | echo "configure:3963: checking for --enable-zipstream" >&5 |
10f2d63a VZ |
3963 | no_cache=0 |
3964 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
3965 | if test "${enable_zipstream+set}" = set; then | |
3966 | enableval="$enable_zipstream" | |
698dcdb6 | 3967 | |
10f2d63a VZ |
3968 | if test "$enableval" = yes; then |
3969 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
3970 | else | |
3971 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
3972 | fi | |
698dcdb6 | 3973 | |
10f2d63a | 3974 | else |
698dcdb6 | 3975 | |
10f2d63a VZ |
3976 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` |
3977 | if test "x$LINE" != x ; then | |
3978 | eval "DEFAULT_$LINE" | |
3979 | else | |
3980 | no_cache=1 | |
3981 | fi | |
3982 | ||
3983 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
698dcdb6 VZ |
3984 | |
3985 | fi | |
10f2d63a VZ |
3986 | |
3987 | ||
3988 | eval "$ac_cv_use_zipstream" | |
3989 | if test "$no_cache" != 1; then | |
3990 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
3991 | fi | |
3992 | ||
3993 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
698dcdb6 | 3994 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3995 | else |
698dcdb6 | 3996 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3997 | fi |
698dcdb6 | 3998 | |
10f2d63a | 3999 | |
698dcdb6 VZ |
4000 | |
4001 | echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6 | |
29fd3c0c | 4002 | echo "configure:4003: checking for --enable-catch_segvs" >&5 |
eb4efbdc VZ |
4003 | no_cache=0 |
4004 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
4005 | if test "${enable_catch_segvs+set}" = set; then | |
4006 | enableval="$enable_catch_segvs" | |
698dcdb6 | 4007 | |
eb4efbdc VZ |
4008 | if test "$enableval" = yes; then |
4009 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
4010 | else | |
4011 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
4012 | fi | |
698dcdb6 | 4013 | |
eb4efbdc | 4014 | else |
698dcdb6 | 4015 | |
eb4efbdc VZ |
4016 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
4017 | if test "x$LINE" != x ; then | |
4018 | eval "DEFAULT_$LINE" | |
4019 | else | |
4020 | no_cache=1 | |
4021 | fi | |
4022 | ||
4023 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
698dcdb6 VZ |
4024 | |
4025 | fi | |
eb4efbdc VZ |
4026 | |
4027 | ||
4028 | eval "$ac_cv_use_catch_segvs" | |
4029 | if test "$no_cache" != 1; then | |
4030 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
4031 | fi | |
4032 | ||
4033 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
698dcdb6 | 4034 | echo "$ac_t""yes" 1>&6 |
eb4efbdc | 4035 | else |
698dcdb6 | 4036 | echo "$ac_t""no" 1>&6 |
eb4efbdc | 4037 | fi |
698dcdb6 | 4038 | |
eb4efbdc | 4039 | |
698dcdb6 | 4040 | echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6 |
29fd3c0c | 4041 | echo "configure:4042: checking for --enable-snglinst" >&5 |
4f3c5f06 VZ |
4042 | no_cache=0 |
4043 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
4044 | if test "${enable_snglinst+set}" = set; then | |
4045 | enableval="$enable_snglinst" | |
698dcdb6 | 4046 | |
4f3c5f06 VZ |
4047 | if test "$enableval" = yes; then |
4048 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
4049 | else | |
4050 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
4051 | fi | |
698dcdb6 | 4052 | |
4f3c5f06 | 4053 | else |
698dcdb6 | 4054 | |
4f3c5f06 VZ |
4055 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` |
4056 | if test "x$LINE" != x ; then | |
4057 | eval "DEFAULT_$LINE" | |
4058 | else | |
4059 | no_cache=1 | |
4060 | fi | |
4061 | ||
4062 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
698dcdb6 VZ |
4063 | |
4064 | fi | |
4f3c5f06 VZ |
4065 | |
4066 | ||
4067 | eval "$ac_cv_use_snglinst" | |
4068 | if test "$no_cache" != 1; then | |
4069 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
4070 | fi | |
4071 | ||
4072 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
698dcdb6 | 4073 | echo "$ac_t""yes" 1>&6 |
4f3c5f06 | 4074 | else |
698dcdb6 | 4075 | echo "$ac_t""no" 1>&6 |
4f3c5f06 | 4076 | fi |
698dcdb6 VZ |
4077 | |
4078 | ||
eb4efbdc | 4079 | |
1e6feb95 | 4080 | echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6 |
29fd3c0c | 4081 | echo "configure:4082: checking for --enable-mimetype" >&5 |
1e6feb95 VZ |
4082 | no_cache=0 |
4083 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
4084 | if test "${enable_mimetype+set}" = set; then | |
4085 | enableval="$enable_mimetype" | |
4086 | ||
4087 | if test "$enableval" = yes; then | |
4088 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
4089 | else | |
4090 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
4091 | fi | |
4092 | ||
4093 | else | |
4094 | ||
4095 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
4096 | if test "x$LINE" != x ; then | |
4097 | eval "DEFAULT_$LINE" | |
4098 | else | |
4099 | no_cache=1 | |
4100 | fi | |
4101 | ||
4102 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
4103 | ||
4104 | fi | |
4105 | ||
4106 | ||
4107 | eval "$ac_cv_use_mimetype" | |
4108 | if test "$no_cache" != 1; then | |
4109 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
4110 | fi | |
4111 | ||
4112 | if test "$wxUSE_MIMETYPE" = yes; then | |
4113 | echo "$ac_t""yes" 1>&6 | |
4114 | else | |
4115 | echo "$ac_t""no" 1>&6 | |
4116 | fi | |
4117 | ||
4118 | ||
4119 | ||
698dcdb6 VZ |
4120 | |
4121 | echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6 | |
29fd3c0c | 4122 | echo "configure:4123: checking for --enable-threads" >&5 |
10f2d63a VZ |
4123 | no_cache=0 |
4124 | # Check whether --enable-threads or --disable-threads was given. | |
4125 | if test "${enable_threads+set}" = set; then | |
4126 | enableval="$enable_threads" | |
698dcdb6 | 4127 | |
10f2d63a VZ |
4128 | if test "$enableval" = yes; then |
4129 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
4130 | else | |
4131 | ac_cv_use_threads='wxUSE_THREADS=no' | |
4132 | fi | |
698dcdb6 | 4133 | |
10f2d63a | 4134 | else |
698dcdb6 | 4135 | |
10f2d63a VZ |
4136 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` |
4137 | if test "x$LINE" != x ; then | |
4138 | eval "DEFAULT_$LINE" | |
4139 | else | |
4140 | no_cache=1 | |
4141 | fi | |
4142 | ||
4143 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
698dcdb6 VZ |
4144 | |
4145 | fi | |
10f2d63a VZ |
4146 | |
4147 | ||
4148 | eval "$ac_cv_use_threads" | |
4149 | if test "$no_cache" != 1; then | |
4150 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
4151 | fi | |
4152 | ||
4153 | if test "$wxUSE_THREADS" = yes; then | |
698dcdb6 | 4154 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4155 | else |
698dcdb6 | 4156 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4157 | fi |
698dcdb6 | 4158 | |
10f2d63a | 4159 | |
698dcdb6 | 4160 | echo $ac_n "checking for --enable-serial""... $ac_c" 1>&6 |
29fd3c0c | 4161 | echo "configure:4162: checking for --enable-serial" >&5 |
10f2d63a VZ |
4162 | no_cache=0 |
4163 | # Check whether --enable-serial or --disable-serial was given. | |
4164 | if test "${enable_serial+set}" = set; then | |
4165 | enableval="$enable_serial" | |
698dcdb6 | 4166 | |
10f2d63a VZ |
4167 | if test "$enableval" = yes; then |
4168 | ac_cv_use_serial='wxUSE_SERIAL=yes' | |
4169 | else | |
4170 | ac_cv_use_serial='wxUSE_SERIAL=no' | |
4171 | fi | |
698dcdb6 | 4172 | |
10f2d63a | 4173 | else |
698dcdb6 | 4174 | |
10f2d63a VZ |
4175 | LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}` |
4176 | if test "x$LINE" != x ; then | |
4177 | eval "DEFAULT_$LINE" | |
4178 | else | |
4179 | no_cache=1 | |
4180 | fi | |
4181 | ||
4182 | ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL | |
698dcdb6 VZ |
4183 | |
4184 | fi | |
10f2d63a VZ |
4185 | |
4186 | ||
4187 | eval "$ac_cv_use_serial" | |
4188 | if test "$no_cache" != 1; then | |
4189 | echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp | |
4190 | fi | |
4191 | ||
4192 | if test "$wxUSE_SERIAL" = yes; then | |
698dcdb6 | 4193 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4194 | else |
698dcdb6 | 4195 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4196 | fi |
698dcdb6 | 4197 | |
10f2d63a | 4198 | |
b12915c1 VZ |
4199 | if test "$wxUSE_GUI" = "yes"; then |
4200 | ||
698dcdb6 VZ |
4201 | |
4202 | ||
4203 | echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6 | |
29fd3c0c | 4204 | echo "configure:4205: checking for --enable-docview" >&5 |
10f2d63a VZ |
4205 | no_cache=0 |
4206 | # Check whether --enable-docview or --disable-docview was given. | |
4207 | if test "${enable_docview+set}" = set; then | |
4208 | enableval="$enable_docview" | |
698dcdb6 | 4209 | |
10f2d63a VZ |
4210 | if test "$enableval" = yes; then |
4211 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
4212 | else | |
4213 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
4214 | fi | |
698dcdb6 | 4215 | |
10f2d63a | 4216 | else |
698dcdb6 | 4217 | |
10f2d63a VZ |
4218 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` |
4219 | if test "x$LINE" != x ; then | |
4220 | eval "DEFAULT_$LINE" | |
4221 | else | |
4222 | no_cache=1 | |
4223 | fi | |
4224 | ||
4225 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
698dcdb6 VZ |
4226 | |
4227 | fi | |
10f2d63a VZ |
4228 | |
4229 | ||
4230 | eval "$ac_cv_use_docview" | |
4231 | if test "$no_cache" != 1; then | |
4232 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
4233 | fi | |
4234 | ||
4235 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
698dcdb6 | 4236 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4237 | else |
698dcdb6 | 4238 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4239 | fi |
698dcdb6 | 4240 | |
10f2d63a | 4241 | |
698dcdb6 | 4242 | echo $ac_n "checking for --enable-help""... $ac_c" 1>&6 |
29fd3c0c | 4243 | echo "configure:4244: checking for --enable-help" >&5 |
10f2d63a VZ |
4244 | no_cache=0 |
4245 | # Check whether --enable-help or --disable-help was given. | |
4246 | if test "${enable_help+set}" = set; then | |
4247 | enableval="$enable_help" | |
698dcdb6 | 4248 | |
10f2d63a VZ |
4249 | if test "$enableval" = yes; then |
4250 | ac_cv_use_help='wxUSE_HELP=yes' | |
4251 | else | |
4252 | ac_cv_use_help='wxUSE_HELP=no' | |
4253 | fi | |
698dcdb6 | 4254 | |
10f2d63a | 4255 | else |
698dcdb6 | 4256 | |
10f2d63a VZ |
4257 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` |
4258 | if test "x$LINE" != x ; then | |
4259 | eval "DEFAULT_$LINE" | |
4260 | else | |
4261 | no_cache=1 | |
4262 | fi | |
4263 | ||
4264 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
698dcdb6 VZ |
4265 | |
4266 | fi | |
10f2d63a VZ |
4267 | |
4268 | ||
4269 | eval "$ac_cv_use_help" | |
4270 | if test "$no_cache" != 1; then | |
4271 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
4272 | fi | |
4273 | ||
4274 | if test "$wxUSE_HELP" = yes; then | |
698dcdb6 | 4275 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4276 | else |
698dcdb6 | 4277 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4278 | fi |
698dcdb6 | 4279 | |
10f2d63a | 4280 | |
29fd3c0c VS |
4281 | echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6 |
4282 | echo "configure:4283: checking for --enable-mshtmlhelp" >&5 | |
4283 | no_cache=0 | |
4284 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
4285 | if test "${enable_mshtmlhelp+set}" = set; then | |
4286 | enableval="$enable_mshtmlhelp" | |
4287 | ||
4288 | if test "$enableval" = yes; then | |
4289 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
4290 | else | |
4291 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
4292 | fi | |
4293 | ||
4294 | else | |
4295 | ||
4296 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` | |
4297 | if test "x$LINE" != x ; then | |
4298 | eval "DEFAULT_$LINE" | |
4299 | else | |
4300 | no_cache=1 | |
4301 | fi | |
4302 | ||
4303 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
4304 | ||
4305 | fi | |
4306 | ||
4307 | ||
4308 | eval "$ac_cv_use_mshtmlhelp" | |
4309 | if test "$no_cache" != 1; then | |
4310 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
4311 | fi | |
4312 | ||
4313 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
4314 | echo "$ac_t""yes" 1>&6 | |
4315 | else | |
4316 | echo "$ac_t""no" 1>&6 | |
4317 | fi | |
4318 | ||
4319 | ||
3379ed37 | 4320 | echo $ac_n "checking for --enable-html""... $ac_c" 1>&6 |
29fd3c0c | 4321 | echo "configure:4322: checking for --enable-html" >&5 |
3379ed37 VZ |
4322 | no_cache=0 |
4323 | # Check whether --enable-html or --disable-html was given. | |
4324 | if test "${enable_html+set}" = set; then | |
4325 | enableval="$enable_html" | |
4326 | ||
4327 | if test "$enableval" = yes; then | |
4328 | ac_cv_use_html='wxUSE_HTML=yes' | |
4329 | else | |
4330 | ac_cv_use_html='wxUSE_HTML=no' | |
4331 | fi | |
4332 | ||
4333 | else | |
4334 | ||
4335 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
4336 | if test "x$LINE" != x ; then | |
4337 | eval "DEFAULT_$LINE" | |
4338 | else | |
4339 | no_cache=1 | |
4340 | fi | |
4341 | ||
4342 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
4343 | ||
4344 | fi | |
4345 | ||
4346 | ||
4347 | eval "$ac_cv_use_html" | |
4348 | if test "$no_cache" != 1; then | |
4349 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
4350 | fi | |
4351 | ||
4352 | if test "$wxUSE_HTML" = yes; then | |
4353 | echo "$ac_t""yes" 1>&6 | |
4354 | else | |
4355 | echo "$ac_t""no" 1>&6 | |
4356 | fi | |
4357 | ||
4358 | ||
4359 | echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6 | |
29fd3c0c | 4360 | echo "configure:4361: checking for --enable-htmlhelp" >&5 |
3379ed37 VZ |
4361 | no_cache=0 |
4362 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
4363 | if test "${enable_htmlhelp+set}" = set; then | |
4364 | enableval="$enable_htmlhelp" | |
4365 | ||
4366 | if test "$enableval" = yes; then | |
4367 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
4368 | else | |
4369 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
4370 | fi | |
4371 | ||
4372 | else | |
4373 | ||
4374 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` | |
4375 | if test "x$LINE" != x ; then | |
4376 | eval "DEFAULT_$LINE" | |
4377 | else | |
4378 | no_cache=1 | |
4379 | fi | |
4380 | ||
4381 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
4382 | ||
4383 | fi | |
4384 | ||
4385 | ||
4386 | eval "$ac_cv_use_htmlhelp" | |
4387 | if test "$no_cache" != 1; then | |
4388 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
4389 | fi | |
4390 | ||
4391 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
4392 | echo "$ac_t""yes" 1>&6 | |
4393 | else | |
4394 | echo "$ac_t""no" 1>&6 | |
4395 | fi | |
4396 | ||
4397 | ||
698dcdb6 | 4398 | echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6 |
29fd3c0c | 4399 | echo "configure:4400: checking for --enable-constraints" >&5 |
10f2d63a VZ |
4400 | no_cache=0 |
4401 | # Check whether --enable-constraints or --disable-constraints was given. | |
4402 | if test "${enable_constraints+set}" = set; then | |
4403 | enableval="$enable_constraints" | |
698dcdb6 | 4404 | |
10f2d63a VZ |
4405 | if test "$enableval" = yes; then |
4406 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
4407 | else | |
4408 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
4409 | fi | |
698dcdb6 | 4410 | |
10f2d63a | 4411 | else |
698dcdb6 | 4412 | |
10f2d63a VZ |
4413 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` |
4414 | if test "x$LINE" != x ; then | |
4415 | eval "DEFAULT_$LINE" | |
4416 | else | |
4417 | no_cache=1 | |
4418 | fi | |
4419 | ||
4420 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
698dcdb6 VZ |
4421 | |
4422 | fi | |
10f2d63a VZ |
4423 | |
4424 | ||
4425 | eval "$ac_cv_use_constraints" | |
4426 | if test "$no_cache" != 1; then | |
4427 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
4428 | fi | |
4429 | ||
4430 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
698dcdb6 | 4431 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4432 | else |
698dcdb6 | 4433 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4434 | fi |
698dcdb6 | 4435 | |
10f2d63a | 4436 | |
698dcdb6 | 4437 | echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6 |
29fd3c0c | 4438 | echo "configure:4439: checking for --enable-printarch" >&5 |
10f2d63a VZ |
4439 | no_cache=0 |
4440 | # Check whether --enable-printarch or --disable-printarch was given. | |
4441 | if test "${enable_printarch+set}" = set; then | |
4442 | enableval="$enable_printarch" | |
698dcdb6 | 4443 | |
10f2d63a VZ |
4444 | if test "$enableval" = yes; then |
4445 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
4446 | else | |
4447 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
4448 | fi | |
698dcdb6 | 4449 | |
10f2d63a | 4450 | else |
698dcdb6 | 4451 | |
10f2d63a VZ |
4452 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` |
4453 | if test "x$LINE" != x ; then | |
4454 | eval "DEFAULT_$LINE" | |
4455 | else | |
4456 | no_cache=1 | |
4457 | fi | |
4458 | ||
4459 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
698dcdb6 VZ |
4460 | |
4461 | fi | |
10f2d63a VZ |
4462 | |
4463 | ||
4464 | eval "$ac_cv_use_printarch" | |
4465 | if test "$no_cache" != 1; then | |
4466 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
4467 | fi | |
4468 | ||
4469 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
698dcdb6 | 4470 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4471 | else |
698dcdb6 | 4472 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4473 | fi |
698dcdb6 | 4474 | |
10f2d63a | 4475 | |
698dcdb6 | 4476 | echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6 |
29fd3c0c | 4477 | echo "configure:4478: checking for --enable-mdi" >&5 |
10f2d63a VZ |
4478 | no_cache=0 |
4479 | # Check whether --enable-mdi or --disable-mdi was given. | |
4480 | if test "${enable_mdi+set}" = set; then | |
4481 | enableval="$enable_mdi" | |
698dcdb6 | 4482 | |
10f2d63a VZ |
4483 | if test "$enableval" = yes; then |
4484 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
4485 | else | |
4486 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
4487 | fi | |
698dcdb6 | 4488 | |
10f2d63a | 4489 | else |
698dcdb6 | 4490 | |
10f2d63a VZ |
4491 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` |
4492 | if test "x$LINE" != x ; then | |
4493 | eval "DEFAULT_$LINE" | |
4494 | else | |
4495 | no_cache=1 | |
4496 | fi | |
4497 | ||
4498 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
698dcdb6 VZ |
4499 | |
4500 | fi | |
10f2d63a VZ |
4501 | |
4502 | ||
4503 | eval "$ac_cv_use_mdi" | |
4504 | if test "$no_cache" != 1; then | |
4505 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
4506 | fi | |
4507 | ||
4508 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
698dcdb6 | 4509 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4510 | else |
698dcdb6 | 4511 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4512 | fi |
698dcdb6 VZ |
4513 | |
4514 | ||
1e6feb95 | 4515 | echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6 |
29fd3c0c | 4516 | echo "configure:4517: checking for --enable-loggui" >&5 |
1e6feb95 VZ |
4517 | no_cache=0 |
4518 | # Check whether --enable-loggui or --disable-loggui was given. | |
4519 | if test "${enable_loggui+set}" = set; then | |
4520 | enableval="$enable_loggui" | |
4521 | ||
4522 | if test "$enableval" = yes; then | |
4523 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
4524 | else | |
4525 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
4526 | fi | |
4527 | ||
4528 | else | |
4529 | ||
4530 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
4531 | if test "x$LINE" != x ; then | |
4532 | eval "DEFAULT_$LINE" | |
4533 | else | |
4534 | no_cache=1 | |
4535 | fi | |
4536 | ||
4537 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
4538 | ||
4539 | fi | |
4540 | ||
4541 | ||
4542 | eval "$ac_cv_use_loggui" | |
4543 | if test "$no_cache" != 1; then | |
4544 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
4545 | fi | |
4546 | ||
4547 | if test "$wxUSE_LOGGUI" = yes; then | |
4548 | echo "$ac_t""yes" 1>&6 | |
4549 | else | |
4550 | echo "$ac_t""no" 1>&6 | |
4551 | fi | |
4552 | ||
4553 | ||
4554 | echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6 | |
29fd3c0c | 4555 | echo "configure:4556: checking for --enable-logwin" >&5 |
1e6feb95 VZ |
4556 | no_cache=0 |
4557 | # Check whether --enable-logwin or --disable-logwin was given. | |
4558 | if test "${enable_logwin+set}" = set; then | |
4559 | enableval="$enable_logwin" | |
4560 | ||
4561 | if test "$enableval" = yes; then | |
4562 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
4563 | else | |
4564 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
4565 | fi | |
4566 | ||
4567 | else | |
4568 | ||
4569 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` | |
4570 | if test "x$LINE" != x ; then | |
4571 | eval "DEFAULT_$LINE" | |
4572 | else | |
4573 | no_cache=1 | |
4574 | fi | |
4575 | ||
4576 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
4577 | ||
4578 | fi | |
4579 | ||
4580 | ||
4581 | eval "$ac_cv_use_logwin" | |
4582 | if test "$no_cache" != 1; then | |
4583 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
4584 | fi | |
4585 | ||
4586 | if test "$wxUSE_LOGWINDOW" = yes; then | |
4587 | echo "$ac_t""yes" 1>&6 | |
4588 | else | |
4589 | echo "$ac_t""no" 1>&6 | |
4590 | fi | |
4591 | ||
4592 | ||
10f2d63a | 4593 | |
698dcdb6 | 4594 | echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6 |
29fd3c0c | 4595 | echo "configure:4596: checking for --enable-postscript" >&5 |
10f2d63a VZ |
4596 | no_cache=0 |
4597 | # Check whether --enable-postscript or --disable-postscript was given. | |
4598 | if test "${enable_postscript+set}" = set; then | |
4599 | enableval="$enable_postscript" | |
698dcdb6 | 4600 | |
10f2d63a VZ |
4601 | if test "$enableval" = yes; then |
4602 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
4603 | else | |
4604 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
4605 | fi | |
698dcdb6 | 4606 | |
10f2d63a | 4607 | else |
698dcdb6 | 4608 | |
10f2d63a VZ |
4609 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` |
4610 | if test "x$LINE" != x ; then | |
4611 | eval "DEFAULT_$LINE" | |
4612 | else | |
4613 | no_cache=1 | |
4614 | fi | |
4615 | ||
4616 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
698dcdb6 VZ |
4617 | |
4618 | fi | |
10f2d63a VZ |
4619 | |
4620 | ||
4621 | eval "$ac_cv_use_postscript" | |
4622 | if test "$no_cache" != 1; then | |
4623 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
4624 | fi | |
4625 | ||
4626 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
698dcdb6 | 4627 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4628 | else |
698dcdb6 | 4629 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4630 | fi |
698dcdb6 VZ |
4631 | |
4632 | ||
4633 | ||
10f2d63a | 4634 | |
1e6feb95 | 4635 | |
698dcdb6 | 4636 | echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6 |
29fd3c0c | 4637 | echo "configure:4638: checking for --enable-prologio" >&5 |
10f2d63a VZ |
4638 | no_cache=0 |
4639 | # Check whether --enable-prologio or --disable-prologio was given. | |
4640 | if test "${enable_prologio+set}" = set; then | |
4641 | enableval="$enable_prologio" | |
698dcdb6 | 4642 | |
10f2d63a VZ |
4643 | if test "$enableval" = yes; then |
4644 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
4645 | else | |
4646 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
4647 | fi | |
698dcdb6 | 4648 | |
10f2d63a | 4649 | else |
698dcdb6 | 4650 | |
10f2d63a VZ |
4651 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` |
4652 | if test "x$LINE" != x ; then | |
4653 | eval "DEFAULT_$LINE" | |
4654 | else | |
4655 | no_cache=1 | |
4656 | fi | |
4657 | ||
4658 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
698dcdb6 VZ |
4659 | |
4660 | fi | |
10f2d63a VZ |
4661 | |
4662 | ||
4663 | eval "$ac_cv_use_prologio" | |
4664 | if test "$no_cache" != 1; then | |
4665 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
4666 | fi | |
4667 | ||
4668 | if test "$wxUSE_PROLOGIO" = yes; then | |
698dcdb6 | 4669 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4670 | else |
698dcdb6 | 4671 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4672 | fi |
698dcdb6 | 4673 | |
10f2d63a | 4674 | |
698dcdb6 | 4675 | echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6 |
29fd3c0c | 4676 | echo "configure:4677: checking for --enable-resources" >&5 |
10f2d63a VZ |
4677 | no_cache=0 |
4678 | # Check whether --enable-resources or --disable-resources was given. | |
4679 | if test "${enable_resources+set}" = set; then | |
4680 | enableval="$enable_resources" | |
698dcdb6 | 4681 | |
10f2d63a VZ |
4682 | if test "$enableval" = yes; then |
4683 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
4684 | else | |
4685 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
4686 | fi | |
698dcdb6 | 4687 | |
10f2d63a | 4688 | else |
698dcdb6 | 4689 | |
10f2d63a VZ |
4690 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` |
4691 | if test "x$LINE" != x ; then | |
4692 | eval "DEFAULT_$LINE" | |
4693 | else | |
4694 | no_cache=1 | |
4695 | fi | |
4696 | ||
4697 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
698dcdb6 VZ |
4698 | |
4699 | fi | |
10f2d63a VZ |
4700 | |
4701 | ||
4702 | eval "$ac_cv_use_resources" | |
4703 | if test "$no_cache" != 1; then | |
4704 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
4705 | fi | |
4706 | ||
4707 | if test "$wxUSE_RESOURCES" = yes; then | |
698dcdb6 | 4708 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4709 | else |
698dcdb6 | 4710 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4711 | fi |
698dcdb6 | 4712 | |
10f2d63a | 4713 | |
698dcdb6 VZ |
4714 | |
4715 | echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6 | |
29fd3c0c | 4716 | echo "configure:4717: checking for --enable-xresources" >&5 |
10f2d63a VZ |
4717 | no_cache=0 |
4718 | # Check whether --enable-xresources or --disable-xresources was given. | |
4719 | if test "${enable_xresources+set}" = set; then | |
4720 | enableval="$enable_xresources" | |
698dcdb6 | 4721 | |
10f2d63a VZ |
4722 | if test "$enableval" = yes; then |
4723 | ac_cv_use_xresources='wxUSE_X_RESOURCES=yes' | |
4724 | else | |
4725 | ac_cv_use_xresources='wxUSE_X_RESOURCES=no' | |
4726 | fi | |
698dcdb6 | 4727 | |
10f2d63a | 4728 | else |
698dcdb6 | 4729 | |
10f2d63a VZ |
4730 | LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}` |
4731 | if test "x$LINE" != x ; then | |
4732 | eval "DEFAULT_$LINE" | |
4733 | else | |
4734 | no_cache=1 | |
4735 | fi | |
4736 | ||
4737 | ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES | |
698dcdb6 VZ |
4738 | |
4739 | fi | |
10f2d63a VZ |
4740 | |
4741 | ||
4742 | eval "$ac_cv_use_xresources" | |
4743 | if test "$no_cache" != 1; then | |
4744 | echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp | |
4745 | fi | |
4746 | ||
4747 | if test "$wxUSE_X_RESOURCES" = yes; then | |
698dcdb6 | 4748 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4749 | else |
698dcdb6 | 4750 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4751 | fi |
698dcdb6 VZ |
4752 | |
4753 | ||
10f2d63a | 4754 | |
698dcdb6 VZ |
4755 | |
4756 | echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6 | |
29fd3c0c | 4757 | echo "configure:4758: checking for --enable-clipboard" >&5 |
10f2d63a VZ |
4758 | no_cache=0 |
4759 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
4760 | if test "${enable_clipboard+set}" = set; then | |
4761 | enableval="$enable_clipboard" | |
698dcdb6 | 4762 | |
10f2d63a VZ |
4763 | if test "$enableval" = yes; then |
4764 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
4765 | else | |
4766 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
4767 | fi | |
698dcdb6 | 4768 | |
10f2d63a | 4769 | else |
698dcdb6 | 4770 | |
10f2d63a VZ |
4771 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` |
4772 | if test "x$LINE" != x ; then | |
4773 | eval "DEFAULT_$LINE" | |
4774 | else | |
4775 | no_cache=1 | |
4776 | fi | |
4777 | ||
4778 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
698dcdb6 VZ |
4779 | |
4780 | fi | |
10f2d63a VZ |
4781 | |
4782 | ||
4783 | eval "$ac_cv_use_clipboard" | |
4784 | if test "$no_cache" != 1; then | |
4785 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
4786 | fi | |
4787 | ||
4788 | if test "$wxUSE_CLIPBOARD" = yes; then | |
698dcdb6 | 4789 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4790 | else |
698dcdb6 | 4791 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4792 | fi |
698dcdb6 | 4793 | |
10f2d63a | 4794 | |
698dcdb6 | 4795 | echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6 |
29fd3c0c | 4796 | echo "configure:4797: checking for --enable-dnd" >&5 |
10f2d63a VZ |
4797 | no_cache=0 |
4798 | # Check whether --enable-dnd or --disable-dnd was given. | |
4799 | if test "${enable_dnd+set}" = set; then | |
4800 | enableval="$enable_dnd" | |
698dcdb6 | 4801 | |
10f2d63a VZ |
4802 | if test "$enableval" = yes; then |
4803 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
4804 | else | |
4805 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
4806 | fi | |
698dcdb6 | 4807 | |
10f2d63a | 4808 | else |
698dcdb6 | 4809 | |
10f2d63a VZ |
4810 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` |
4811 | if test "x$LINE" != x ; then | |
4812 | eval "DEFAULT_$LINE" | |
4813 | else | |
4814 | no_cache=1 | |
4815 | fi | |
4816 | ||
4817 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
698dcdb6 VZ |
4818 | |
4819 | fi | |
10f2d63a VZ |
4820 | |
4821 | ||
4822 | eval "$ac_cv_use_dnd" | |
4823 | if test "$no_cache" != 1; then | |
4824 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
4825 | fi | |
4826 | ||
4827 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
698dcdb6 | 4828 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4829 | else |
698dcdb6 | 4830 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4831 | fi |
698dcdb6 | 4832 | |
10f2d63a | 4833 | |
698dcdb6 | 4834 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
29fd3c0c | 4835 | echo "configure:4836: checking for --enable-metafile" >&5 |
b64f0a5f RL |
4836 | no_cache=0 |
4837 | # Check whether --enable-metafile or --disable-metafile was given. | |
4838 | if test "${enable_metafile+set}" = set; then | |
4839 | enableval="$enable_metafile" | |
698dcdb6 | 4840 | |
b64f0a5f RL |
4841 | if test "$enableval" = yes; then |
4842 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
4843 | else | |
4844 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
4845 | fi | |
698dcdb6 | 4846 | |
b64f0a5f | 4847 | else |
698dcdb6 | 4848 | |
b64f0a5f RL |
4849 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
4850 | if test "x$LINE" != x ; then | |
4851 | eval "DEFAULT_$LINE" | |
4852 | else | |
4853 | no_cache=1 | |
4854 | fi | |
4855 | ||
4856 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
698dcdb6 VZ |
4857 | |
4858 | fi | |
b64f0a5f RL |
4859 | |
4860 | ||
4861 | eval "$ac_cv_use_metafile" | |
4862 | if test "$no_cache" != 1; then | |
4863 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
4864 | fi | |
4865 | ||
4866 | if test "$wxUSE_METAFILE" = yes; then | |
698dcdb6 | 4867 | echo "$ac_t""yes" 1>&6 |
b64f0a5f | 4868 | else |
698dcdb6 | 4869 | echo "$ac_t""no" 1>&6 |
b64f0a5f | 4870 | fi |
698dcdb6 VZ |
4871 | |
4872 | ||
10f2d63a | 4873 | |
698dcdb6 | 4874 | echo $ac_n "checking for --enable-wxtree""... $ac_c" 1>&6 |
29fd3c0c | 4875 | echo "configure:4876: checking for --enable-wxtree" >&5 |
10f2d63a VZ |
4876 | no_cache=0 |
4877 | # Check whether --enable-wxtree or --disable-wxtree was given. | |
4878 | if test "${enable_wxtree+set}" = set; then | |
4879 | enableval="$enable_wxtree" | |
698dcdb6 | 4880 | |
10f2d63a VZ |
4881 | if test "$enableval" = yes; then |
4882 | ac_cv_use_wxtree='wxUSE_WXTREE=yes' | |
4883 | else | |
4884 | ac_cv_use_wxtree='wxUSE_WXTREE=no' | |
4885 | fi | |
698dcdb6 | 4886 | |
10f2d63a | 4887 | else |
698dcdb6 | 4888 | |
10f2d63a VZ |
4889 | LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}` |
4890 | if test "x$LINE" != x ; then | |
4891 | eval "DEFAULT_$LINE" | |
4892 | else | |
4893 | no_cache=1 | |
4894 | fi | |
4895 | ||
4896 | ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE | |
698dcdb6 VZ |
4897 | |
4898 | fi | |
10f2d63a VZ |
4899 | |
4900 | ||
4901 | eval "$ac_cv_use_wxtree" | |
4902 | if test "$no_cache" != 1; then | |
4903 | echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp | |
4904 | fi | |
4905 | ||
4906 | if test "$wxUSE_WXTREE" = yes; then | |
698dcdb6 | 4907 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4908 | else |
698dcdb6 | 4909 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4910 | fi |
698dcdb6 | 4911 | |
10f2d63a | 4912 | |
698dcdb6 VZ |
4913 | |
4914 | ||
4915 | echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6 | |
29fd3c0c | 4916 | echo "configure:4917: checking for --enable-controls" >&5 |
10f2d63a VZ |
4917 | no_cache=0 |
4918 | # Check whether --enable-controls or --disable-controls was given. | |
4919 | if test "${enable_controls+set}" = set; then | |
4920 | enableval="$enable_controls" | |
698dcdb6 | 4921 | |
10f2d63a VZ |
4922 | if test "$enableval" = yes; then |
4923 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
4924 | else | |
4925 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
4926 | fi | |
698dcdb6 | 4927 | |
10f2d63a | 4928 | else |
698dcdb6 | 4929 | |
10f2d63a VZ |
4930 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` |
4931 | if test "x$LINE" != x ; then | |
4932 | eval "DEFAULT_$LINE" | |
4933 | else | |
4934 | no_cache=1 | |
4935 | fi | |
4936 | ||
4937 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
698dcdb6 VZ |
4938 | |
4939 | fi | |
10f2d63a VZ |
4940 | |
4941 | ||
4942 | eval "$ac_cv_use_controls" | |
4943 | if test "$no_cache" != 1; then | |
4944 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
4945 | fi | |
4946 | ||
4947 | if test "$wxUSE_CONTROLS" = yes; then | |
698dcdb6 | 4948 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4949 | else |
698dcdb6 | 4950 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4951 | fi |
698dcdb6 | 4952 | |
10f2d63a VZ |
4953 | |
4954 | if test "$wxUSE_CONTROLS" = "yes"; then | |
4955 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 VZ |
4956 | DEFAULT_wxUSE_BMPBUTTON=yes |
4957 | DEFAULT_wxUSE_BUTTON=yes | |
4958 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
4959 | DEFAULT_wxUSE_CARET=yes |
4960 | DEFAULT_wxUSE_COMBOBOX=yes | |
10f2d63a VZ |
4961 | DEFAULT_wxUSE_CHECKBOX=yes |
4962 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
4963 | DEFAULT_wxUSE_CHOICE=yes | |
4964 | DEFAULT_wxUSE_GAUGE=yes | |
4965 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 4966 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
4967 | DEFAULT_wxUSE_IMAGLIST=yes |
4968 | DEFAULT_wxUSE_LISTBOX=yes | |
4969 | DEFAULT_wxUSE_LISTCTRL=yes | |
4970 | DEFAULT_wxUSE_NOTEBOOK=yes | |
4971 | DEFAULT_wxUSE_RADIOBOX=yes | |
4972 | DEFAULT_wxUSE_RADIOBTN=yes | |
4973 | DEFAULT_wxUSE_SASH=yes | |
4974 | DEFAULT_wxUSE_SCROLLBAR=yes | |
4975 | DEFAULT_wxUSE_SLIDER=yes | |
4976 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 4977 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
4978 | DEFAULT_wxUSE_SPLITTER=yes |
4979 | DEFAULT_wxUSE_STATBMP=yes | |
4980 | DEFAULT_wxUSE_STATBOX=yes | |
4981 | DEFAULT_wxUSE_STATLINE=yes | |
4982 | DEFAULT_wxUSE_STATUSBAR=yes | |
4983 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
1db8dc4a | 4984 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 4985 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
4986 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
4987 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
4988 | DEFAULT_wxUSE_TOOLTIPS=yes |
4989 | DEFAULT_wxUSE_TREECTRL=yes | |
9f41d601 | 4990 | DEFAULT_wxUSE_POPUPWIN=yes |
10f2d63a VZ |
4991 | elif test "$wxUSE_CONTROLS" = "no"; then |
4992 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 VZ |
4993 | DEFAULT_wxUSE_BMPBUTTON=no |
4994 | DEFAULT_wxUSE_BUTTON=no | |
4995 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
4996 | DEFAULT_wxUSE_CARET=no |
4997 | DEFAULT_wxUSE_COMBOBOX=no | |
10f2d63a VZ |
4998 | DEFAULT_wxUSE_CHECKBOX=no |
4999 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
5000 | DEFAULT_wxUSE_CHOICE=no | |
5001 | DEFAULT_wxUSE_GAUGE=no | |
5002 | DEFAULT_wxUSE_GRID=no | |
5003 | DEFAULT_wxUSE_NEW_GRID=no | |
5004 | DEFAULT_wxUSE_IMAGLIST=no | |
5005 | DEFAULT_wxUSE_LISTBOX=no | |
5006 | DEFAULT_wxUSE_LISTCTRL=no | |
5007 | DEFAULT_wxUSE_NOTEBOOK=no | |
5008 | DEFAULT_wxUSE_RADIOBOX=no | |
5009 | DEFAULT_wxUSE_RADIOBTN=no | |
5010 | DEFAULT_wxUSE_SASH=no | |
5011 | DEFAULT_wxUSE_SCROLLBAR=no | |
5012 | DEFAULT_wxUSE_SLIDER=no | |
5013 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 5014 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
5015 | DEFAULT_wxUSE_SPLITTER=no |
5016 | DEFAULT_wxUSE_STATBMP=no | |
5017 | DEFAULT_wxUSE_STATBOX=no | |
5018 | DEFAULT_wxUSE_STATLINE=no | |
5019 | DEFAULT_wxUSE_STATUSBAR=no | |
5020 | DEFAULT_wxUSE_TAB_DIALOG=no | |
1db8dc4a | 5021 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 5022 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
5023 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
5024 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
5025 | DEFAULT_wxUSE_TOOLTIPS=no |
5026 | DEFAULT_wxUSE_TREECTRL=no | |
9f41d601 | 5027 | DEFAULT_wxUSE_POPUPWIN=no |
10f2d63a VZ |
5028 | fi |
5029 | ||
698dcdb6 VZ |
5030 | |
5031 | echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6 | |
29fd3c0c | 5032 | echo "configure:5033: checking for --enable-accel" >&5 |
10f2d63a VZ |
5033 | no_cache=0 |
5034 | # Check whether --enable-accel or --disable-accel was given. | |
5035 | if test "${enable_accel+set}" = set; then | |
5036 | enableval="$enable_accel" | |
698dcdb6 | 5037 | |
10f2d63a VZ |
5038 | if test "$enableval" = yes; then |
5039 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
5040 | else | |
5041 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
5042 | fi | |
698dcdb6 | 5043 | |
10f2d63a | 5044 | else |
698dcdb6 | 5045 | |
10f2d63a VZ |
5046 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` |
5047 | if test "x$LINE" != x ; then | |
5048 | eval "DEFAULT_$LINE" | |
5049 | else | |
5050 | no_cache=1 | |
5051 | fi | |
5052 | ||
5053 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
698dcdb6 VZ |
5054 | |
5055 | fi | |
10f2d63a VZ |
5056 | |
5057 | ||
5058 | eval "$ac_cv_use_accel" | |
5059 | if test "$no_cache" != 1; then | |
5060 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
5061 | fi | |
5062 | ||
5063 | if test "$wxUSE_ACCEL" = yes; then | |
698dcdb6 | 5064 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5065 | else |
698dcdb6 | 5066 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5067 | fi |
698dcdb6 | 5068 | |
10f2d63a | 5069 | |
1e6feb95 | 5070 | echo $ac_n "checking for --enable-button""... $ac_c" 1>&6 |
29fd3c0c | 5071 | echo "configure:5072: checking for --enable-button" >&5 |
10f2d63a | 5072 | no_cache=0 |
1e6feb95 VZ |
5073 | # Check whether --enable-button or --disable-button was given. |
5074 | if test "${enable_button+set}" = set; then | |
5075 | enableval="$enable_button" | |
698dcdb6 | 5076 | |
10f2d63a | 5077 | if test "$enableval" = yes; then |
1e6feb95 | 5078 | ac_cv_use_button='wxUSE_BUTTON=yes' |
10f2d63a | 5079 | else |
1e6feb95 | 5080 | ac_cv_use_button='wxUSE_BUTTON=no' |
10f2d63a | 5081 | fi |
698dcdb6 | 5082 | |
10f2d63a | 5083 | else |
698dcdb6 | 5084 | |
1e6feb95 | 5085 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` |
10f2d63a VZ |
5086 | if test "x$LINE" != x ; then |
5087 | eval "DEFAULT_$LINE" | |
5088 | else | |
5089 | no_cache=1 | |
5090 | fi | |
5091 | ||
1e6feb95 | 5092 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON |
698dcdb6 VZ |
5093 | |
5094 | fi | |
10f2d63a VZ |
5095 | |
5096 | ||
1e6feb95 | 5097 | eval "$ac_cv_use_button" |
10f2d63a | 5098 | if test "$no_cache" != 1; then |
1e6feb95 | 5099 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5100 | fi |
5101 | ||
1e6feb95 | 5102 | if test "$wxUSE_BUTTON" = yes; then |
698dcdb6 | 5103 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5104 | else |
698dcdb6 | 5105 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5106 | fi |
698dcdb6 | 5107 | |
10f2d63a | 5108 | |
698dcdb6 | 5109 | echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6 |
29fd3c0c | 5110 | echo "configure:5111: checking for --enable-bmpbutton" >&5 |
10f2d63a VZ |
5111 | no_cache=0 |
5112 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
5113 | if test "${enable_bmpbutton+set}" = set; then | |
5114 | enableval="$enable_bmpbutton" | |
698dcdb6 | 5115 | |
10f2d63a VZ |
5116 | if test "$enableval" = yes; then |
5117 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
5118 | else | |
5119 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
5120 | fi | |
698dcdb6 | 5121 | |
10f2d63a | 5122 | else |
698dcdb6 | 5123 | |
10f2d63a VZ |
5124 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` |
5125 | if test "x$LINE" != x ; then | |
5126 | eval "DEFAULT_$LINE" | |
5127 | else | |
5128 | no_cache=1 | |
5129 | fi | |
5130 | ||
5131 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
698dcdb6 VZ |
5132 | |
5133 | fi | |
10f2d63a VZ |
5134 | |
5135 | ||
5136 | eval "$ac_cv_use_bmpbutton" | |
5137 | if test "$no_cache" != 1; then | |
5138 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
5139 | fi | |
5140 | ||
5141 | if test "$wxUSE_BMPBUTTON" = yes; then | |
698dcdb6 | 5142 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5143 | else |
698dcdb6 | 5144 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5145 | fi |
698dcdb6 | 5146 | |
10f2d63a | 5147 | |
1e6feb95 | 5148 | echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6 |
29fd3c0c | 5149 | echo "configure:5150: checking for --enable-calendar" >&5 |
1e6feb95 VZ |
5150 | no_cache=0 |
5151 | # Check whether --enable-calendar or --disable-calendar was given. | |
5152 | if test "${enable_calendar+set}" = set; then | |
5153 | enableval="$enable_calendar" | |
5154 | ||
5155 | if test "$enableval" = yes; then | |
5156 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
5157 | else | |
5158 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
5159 | fi | |
5160 | ||
5161 | else | |
5162 | ||
5163 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
5164 | if test "x$LINE" != x ; then | |
5165 | eval "DEFAULT_$LINE" | |
5166 | else | |
5167 | no_cache=1 | |
5168 | fi | |
5169 | ||
5170 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
5171 | ||
5172 | fi | |
5173 | ||
5174 | ||
5175 | eval "$ac_cv_use_calendar" | |
5176 | if test "$no_cache" != 1; then | |
5177 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
5178 | fi | |
5179 | ||
5180 | if test "$wxUSE_CALCTRL" = yes; then | |
5181 | echo "$ac_t""yes" 1>&6 | |
5182 | else | |
5183 | echo "$ac_t""no" 1>&6 | |
5184 | fi | |
5185 | ||
5186 | ||
5187 | echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6 | |
29fd3c0c | 5188 | echo "configure:5189: checking for --enable-caret" >&5 |
1e6feb95 VZ |
5189 | no_cache=0 |
5190 | # Check whether --enable-caret or --disable-caret was given. | |
5191 | if test "${enable_caret+set}" = set; then | |
5192 | enableval="$enable_caret" | |
5193 | ||
5194 | if test "$enableval" = yes; then | |
5195 | ac_cv_use_caret='wxUSE_CARET=yes' | |
5196 | else | |
5197 | ac_cv_use_caret='wxUSE_CARET=no' | |
5198 | fi | |
5199 | ||
5200 | else | |
5201 | ||
5202 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
5203 | if test "x$LINE" != x ; then | |
5204 | eval "DEFAULT_$LINE" | |
5205 | else | |
5206 | no_cache=1 | |
5207 | fi | |
5208 | ||
5209 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
5210 | ||
5211 | fi | |
5212 | ||
5213 | ||
5214 | eval "$ac_cv_use_caret" | |
5215 | if test "$no_cache" != 1; then | |
5216 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
5217 | fi | |
5218 | ||
5219 | if test "$wxUSE_CARET" = yes; then | |
5220 | echo "$ac_t""yes" 1>&6 | |
5221 | else | |
5222 | echo "$ac_t""no" 1>&6 | |
5223 | fi | |
5224 | ||
5225 | ||
698dcdb6 | 5226 | echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6 |
29fd3c0c | 5227 | echo "configure:5228: checking for --enable-checkbox" >&5 |
10f2d63a VZ |
5228 | no_cache=0 |
5229 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
5230 | if test "${enable_checkbox+set}" = set; then | |
5231 | enableval="$enable_checkbox" | |
698dcdb6 | 5232 | |
10f2d63a VZ |
5233 | if test "$enableval" = yes; then |
5234 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
5235 | else | |
5236 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
5237 | fi | |
698dcdb6 | 5238 | |
10f2d63a | 5239 | else |
698dcdb6 | 5240 | |
10f2d63a VZ |
5241 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` |
5242 | if test "x$LINE" != x ; then | |
5243 | eval "DEFAULT_$LINE" | |
5244 | else | |
5245 | no_cache=1 | |
5246 | fi | |
5247 | ||
5248 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
698dcdb6 VZ |
5249 | |
5250 | fi | |
10f2d63a VZ |
5251 | |
5252 | ||
5253 | eval "$ac_cv_use_checkbox" | |
5254 | if test "$no_cache" != 1; then | |
5255 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
5256 | fi | |
5257 | ||
5258 | if test "$wxUSE_CHECKBOX" = yes; then | |
698dcdb6 | 5259 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5260 | else |
698dcdb6 | 5261 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5262 | fi |
698dcdb6 | 5263 | |
10f2d63a | 5264 | |
698dcdb6 | 5265 | echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6 |
29fd3c0c | 5266 | echo "configure:5267: checking for --enable-checklst" >&5 |
10f2d63a VZ |
5267 | no_cache=0 |
5268 | # Check whether --enable-checklst or --disable-checklst was given. | |
5269 | if test "${enable_checklst+set}" = set; then | |
5270 | enableval="$enable_checklst" | |
698dcdb6 | 5271 | |
10f2d63a VZ |
5272 | if test "$enableval" = yes; then |
5273 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
5274 | else | |
5275 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
5276 | fi | |
698dcdb6 | 5277 | |
10f2d63a | 5278 | else |
698dcdb6 | 5279 | |
10f2d63a VZ |
5280 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` |
5281 | if test "x$LINE" != x ; then | |
5282 | eval "DEFAULT_$LINE" | |
5283 | else | |
5284 | no_cache=1 | |
5285 | fi | |
5286 | ||
5287 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
698dcdb6 VZ |
5288 | |
5289 | fi | |
10f2d63a VZ |
5290 | |
5291 | ||
5292 | eval "$ac_cv_use_checklst" | |
5293 | if test "$no_cache" != 1; then | |
5294 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
5295 | fi | |
5296 | ||
5297 | if test "$wxUSE_CHECKLST" = yes; then | |
698dcdb6 | 5298 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5299 | else |
698dcdb6 | 5300 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5301 | fi |
698dcdb6 | 5302 | |
10f2d63a | 5303 | |
698dcdb6 | 5304 | echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6 |
29fd3c0c | 5305 | echo "configure:5306: checking for --enable-choice" >&5 |
10f2d63a VZ |
5306 | no_cache=0 |
5307 | # Check whether --enable-choice or --disable-choice was given. | |
5308 | if test "${enable_choice+set}" = set; then | |
5309 | enableval="$enable_choice" | |
698dcdb6 | 5310 | |
10f2d63a VZ |
5311 | if test "$enableval" = yes; then |
5312 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
5313 | else | |
5314 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
5315 | fi | |
698dcdb6 | 5316 | |
10f2d63a | 5317 | else |
698dcdb6 | 5318 | |
10f2d63a VZ |
5319 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` |
5320 | if test "x$LINE" != x ; then | |
5321 | eval "DEFAULT_$LINE" | |
5322 | else | |
5323 | no_cache=1 | |
5324 | fi | |
5325 | ||
5326 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
698dcdb6 VZ |
5327 | |
5328 | fi | |
10f2d63a VZ |
5329 | |
5330 | ||
5331 | eval "$ac_cv_use_choice" | |
5332 | if test "$no_cache" != 1; then | |
5333 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
5334 | fi | |
5335 | ||
5336 | if test "$wxUSE_CHOICE" = yes; then | |
698dcdb6 | 5337 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5338 | else |
698dcdb6 | 5339 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5340 | fi |
698dcdb6 | 5341 | |
10f2d63a | 5342 | |
698dcdb6 | 5343 | echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6 |
29fd3c0c | 5344 | echo "configure:5345: checking for --enable-combobox" >&5 |
10f2d63a VZ |
5345 | no_cache=0 |
5346 | # Check whether --enable-combobox or --disable-combobox was given. | |
5347 | if test "${enable_combobox+set}" = set; then | |
5348 | enableval="$enable_combobox" | |
698dcdb6 | 5349 | |
10f2d63a VZ |
5350 | if test "$enableval" = yes; then |
5351 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
5352 | else | |
5353 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
5354 | fi | |
698dcdb6 | 5355 | |
10f2d63a | 5356 | else |
698dcdb6 | 5357 | |
10f2d63a VZ |
5358 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` |
5359 | if test "x$LINE" != x ; then | |
5360 | eval "DEFAULT_$LINE" | |
5361 | else | |
5362 | no_cache=1 | |
5363 | fi | |
5364 | ||
5365 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
698dcdb6 VZ |
5366 | |
5367 | fi | |
10f2d63a VZ |
5368 | |
5369 | ||
5370 | eval "$ac_cv_use_combobox" | |
5371 | if test "$no_cache" != 1; then | |
5372 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
5373 | fi | |
5374 | ||
5375 | if test "$wxUSE_COMBOBOX" = yes; then | |
698dcdb6 | 5376 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5377 | else |
698dcdb6 | 5378 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5379 | fi |
698dcdb6 | 5380 | |
10f2d63a | 5381 | |
698dcdb6 | 5382 | echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6 |
29fd3c0c | 5383 | echo "configure:5384: checking for --enable-gauge" >&5 |
10f2d63a VZ |
5384 | no_cache=0 |
5385 | # Check whether --enable-gauge or --disable-gauge was given. | |
5386 | if test "${enable_gauge+set}" = set; then | |
5387 | enableval="$enable_gauge" | |
698dcdb6 | 5388 | |
10f2d63a VZ |
5389 | if test "$enableval" = yes; then |
5390 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
5391 | else | |
5392 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
5393 | fi | |
698dcdb6 | 5394 | |
10f2d63a | 5395 | else |
698dcdb6 | 5396 | |
10f2d63a VZ |
5397 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` |
5398 | if test "x$LINE" != x ; then | |
5399 | eval "DEFAULT_$LINE" | |
5400 | else | |
5401 | no_cache=1 | |
5402 | fi | |
5403 | ||
5404 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
698dcdb6 VZ |
5405 | |
5406 | fi | |
10f2d63a VZ |
5407 | |
5408 | ||
5409 | eval "$ac_cv_use_gauge" | |
5410 | if test "$no_cache" != 1; then | |
5411 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
5412 | fi | |
5413 | ||
5414 | if test "$wxUSE_GAUGE" = yes; then | |
698dcdb6 | 5415 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5416 | else |
698dcdb6 | 5417 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5418 | fi |
698dcdb6 | 5419 | |
10f2d63a | 5420 | |
698dcdb6 | 5421 | echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6 |
29fd3c0c | 5422 | echo "configure:5423: checking for --enable-grid" >&5 |
10f2d63a VZ |
5423 | no_cache=0 |
5424 | # Check whether --enable-grid or --disable-grid was given. | |
5425 | if test "${enable_grid+set}" = set; then | |
5426 | enableval="$enable_grid" | |
698dcdb6 | 5427 | |
10f2d63a VZ |
5428 | if test "$enableval" = yes; then |
5429 | ac_cv_use_grid='wxUSE_GRID=yes' | |
5430 | else | |
5431 | ac_cv_use_grid='wxUSE_GRID=no' | |
5432 | fi | |
698dcdb6 | 5433 | |
10f2d63a | 5434 | else |
698dcdb6 | 5435 | |
10f2d63a VZ |
5436 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` |
5437 | if test "x$LINE" != x ; then | |
5438 | eval "DEFAULT_$LINE" | |
5439 | else | |
5440 | no_cache=1 | |
5441 | fi | |
5442 | ||
5443 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
698dcdb6 VZ |
5444 | |
5445 | fi | |
10f2d63a VZ |
5446 | |
5447 | ||
5448 | eval "$ac_cv_use_grid" | |
5449 | if test "$no_cache" != 1; then | |
5450 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
5451 | fi | |
5452 | ||
5453 | if test "$wxUSE_GRID" = yes; then | |
698dcdb6 | 5454 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5455 | else |
698dcdb6 | 5456 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5457 | fi |
698dcdb6 | 5458 | |
10f2d63a | 5459 | |
698dcdb6 | 5460 | echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6 |
29fd3c0c | 5461 | echo "configure:5462: checking for --enable-newgrid" >&5 |
10f2d63a VZ |
5462 | no_cache=0 |
5463 | # Check whether --enable-newgrid or --disable-newgrid was given. | |
5464 | if test "${enable_newgrid+set}" = set; then | |
5465 | enableval="$enable_newgrid" | |
698dcdb6 | 5466 | |
10f2d63a VZ |
5467 | if test "$enableval" = yes; then |
5468 | ac_cv_use_newgrid='wxUSE_NEW_GRID=yes' | |
5469 | else | |
5470 | ac_cv_use_newgrid='wxUSE_NEW_GRID=no' | |
5471 | fi | |
698dcdb6 | 5472 | |
10f2d63a | 5473 | else |
698dcdb6 | 5474 | |
10f2d63a VZ |
5475 | LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}` |
5476 | if test "x$LINE" != x ; then | |
5477 | eval "DEFAULT_$LINE" | |
5478 | else | |
5479 | no_cache=1 | |
5480 | fi | |
5481 | ||
5482 | ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID | |
698dcdb6 VZ |
5483 | |
5484 | fi | |
10f2d63a VZ |
5485 | |
5486 | ||
5487 | eval "$ac_cv_use_newgrid" | |
5488 | if test "$no_cache" != 1; then | |
5489 | echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp | |
5490 | fi | |
5491 | ||
5492 | if test "$wxUSE_NEW_GRID" = yes; then | |
698dcdb6 | 5493 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5494 | else |
698dcdb6 | 5495 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5496 | fi |
698dcdb6 | 5497 | |
10f2d63a | 5498 | |
698dcdb6 | 5499 | echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6 |
29fd3c0c | 5500 | echo "configure:5501: checking for --enable-imaglist" >&5 |
10f2d63a VZ |
5501 | no_cache=0 |
5502 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
5503 | if test "${enable_imaglist+set}" = set; then | |
5504 | enableval="$enable_imaglist" | |
698dcdb6 | 5505 | |
10f2d63a VZ |
5506 | if test "$enableval" = yes; then |
5507 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
5508 | else | |
5509 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
5510 | fi | |
698dcdb6 | 5511 | |
10f2d63a | 5512 | else |
698dcdb6 | 5513 | |
10f2d63a VZ |
5514 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` |
5515 | if test "x$LINE" != x ; then | |
5516 | eval "DEFAULT_$LINE" | |
5517 | else | |
5518 | no_cache=1 | |
5519 | fi | |
5520 | ||
5521 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
698dcdb6 VZ |
5522 | |
5523 | fi | |
10f2d63a VZ |
5524 | |
5525 | ||
5526 | eval "$ac_cv_use_imaglist" | |
5527 | if test "$no_cache" != 1; then | |
5528 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
5529 | fi | |
5530 | ||
5531 | if test "$wxUSE_IMAGLIST" = yes; then | |
698dcdb6 | 5532 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5533 | else |
698dcdb6 | 5534 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5535 | fi |
698dcdb6 | 5536 | |
10f2d63a | 5537 | |
698dcdb6 | 5538 | echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6 |
29fd3c0c | 5539 | echo "configure:5540: checking for --enable-listbox" >&5 |
10f2d63a VZ |
5540 | no_cache=0 |
5541 | # Check whether --enable-listbox or --disable-listbox was given. | |
5542 | if test "${enable_listbox+set}" = set; then | |
5543 | enableval="$enable_listbox" | |
698dcdb6 | 5544 | |
10f2d63a VZ |
5545 | if test "$enableval" = yes; then |
5546 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
5547 | else | |
5548 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
5549 | fi | |
698dcdb6 | 5550 | |
10f2d63a | 5551 | else |
698dcdb6 | 5552 | |
10f2d63a VZ |
5553 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` |
5554 | if test "x$LINE" != x ; then | |
5555 | eval "DEFAULT_$LINE" | |
5556 | else | |
5557 | no_cache=1 | |
5558 | fi | |
5559 | ||
5560 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
698dcdb6 VZ |
5561 | |
5562 | fi | |
10f2d63a VZ |
5563 | |
5564 | ||
5565 | eval "$ac_cv_use_listbox" | |
5566 | if test "$no_cache" != 1; then | |
5567 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
5568 | fi | |
5569 | ||
5570 | if test "$wxUSE_LISTBOX" = yes; then | |
698dcdb6 | 5571 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5572 | else |
698dcdb6 | 5573 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5574 | fi |
698dcdb6 | 5575 | |
10f2d63a | 5576 | |
698dcdb6 | 5577 | echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6 |
29fd3c0c | 5578 | echo "configure:5579: checking for --enable-listctrl" >&5 |
10f2d63a VZ |
5579 | no_cache=0 |
5580 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
5581 | if test "${enable_listctrl+set}" = set; then | |
5582 | enableval="$enable_listctrl" | |
698dcdb6 | 5583 | |
10f2d63a VZ |
5584 | if test "$enableval" = yes; then |
5585 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
5586 | else | |
5587 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
5588 | fi | |
698dcdb6 | 5589 | |
10f2d63a | 5590 | else |
698dcdb6 | 5591 | |
10f2d63a VZ |
5592 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` |
5593 | if test "x$LINE" != x ; then | |
5594 | eval "DEFAULT_$LINE" | |
5595 | else | |
5596 | no_cache=1 | |
5597 | fi | |
5598 | ||
5599 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
698dcdb6 VZ |
5600 | |
5601 | fi | |
10f2d63a VZ |
5602 | |
5603 | ||
5604 | eval "$ac_cv_use_listctrl" | |
5605 | if test "$no_cache" != 1; then | |
5606 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
5607 | fi | |
5608 | ||
5609 | if test "$wxUSE_LISTCTRL" = yes; then | |
698dcdb6 | 5610 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5611 | else |
698dcdb6 | 5612 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5613 | fi |
698dcdb6 | 5614 | |
10f2d63a | 5615 | |
698dcdb6 | 5616 | echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6 |
29fd3c0c | 5617 | echo "configure:5618: checking for --enable-notebook" >&5 |
10f2d63a VZ |
5618 | no_cache=0 |
5619 | # Check whether --enable-notebook or --disable-notebook was given. | |
5620 | if test "${enable_notebook+set}" = set; then | |
5621 | enableval="$enable_notebook" | |
698dcdb6 | 5622 | |
10f2d63a VZ |
5623 | if test "$enableval" = yes; then |
5624 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
5625 | else | |
5626 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
5627 | fi | |
698dcdb6 | 5628 | |
10f2d63a | 5629 | else |
698dcdb6 | 5630 | |
10f2d63a VZ |
5631 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` |
5632 | if test "x$LINE" != x ; then | |
5633 | eval "DEFAULT_$LINE" | |
5634 | else | |
5635 | no_cache=1 | |
5636 | fi | |
5637 | ||
5638 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
698dcdb6 VZ |
5639 | |
5640 | fi | |
10f2d63a VZ |
5641 | |
5642 | ||
5643 | eval "$ac_cv_use_notebook" | |
5644 | if test "$no_cache" != 1; then | |
5645 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
5646 | fi | |
5647 | ||
5648 | if test "$wxUSE_NOTEBOOK" = yes; then | |
698dcdb6 | 5649 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5650 | else |
698dcdb6 | 5651 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5652 | fi |
698dcdb6 | 5653 | |
10f2d63a | 5654 | |
698dcdb6 | 5655 | echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6 |
29fd3c0c | 5656 | echo "configure:5657: checking for --enable-radiobox" >&5 |
10f2d63a VZ |
5657 | no_cache=0 |
5658 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
5659 | if test "${enable_radiobox+set}" = set; then | |
5660 | enableval="$enable_radiobox" | |
698dcdb6 | 5661 | |
10f2d63a VZ |
5662 | if test "$enableval" = yes; then |
5663 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
5664 | else | |
5665 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
5666 | fi | |
698dcdb6 | 5667 | |
10f2d63a | 5668 | else |
698dcdb6 | 5669 | |
10f2d63a VZ |
5670 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` |
5671 | if test "x$LINE" != x ; then | |
5672 | eval "DEFAULT_$LINE" | |
5673 | else | |
5674 | no_cache=1 | |
5675 | fi | |
5676 | ||
5677 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
698dcdb6 VZ |
5678 | |
5679 | fi | |
10f2d63a VZ |
5680 | |
5681 | ||
5682 | eval "$ac_cv_use_radiobox" | |
5683 | if test "$no_cache" != 1; then | |
5684 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
5685 | fi | |
5686 | ||
5687 | if test "$wxUSE_RADIOBOX" = yes; then | |
698dcdb6 | 5688 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5689 | else |
698dcdb6 | 5690 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5691 | fi |
698dcdb6 | 5692 | |
10f2d63a | 5693 | |
698dcdb6 | 5694 | echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6 |
29fd3c0c | 5695 | echo "configure:5696: checking for --enable-radiobtn" >&5 |
10f2d63a VZ |
5696 | no_cache=0 |
5697 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
5698 | if test "${enable_radiobtn+set}" = set; then | |
5699 | enableval="$enable_radiobtn" | |
698dcdb6 | 5700 | |
10f2d63a VZ |
5701 | if test "$enableval" = yes; then |
5702 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
5703 | else | |
5704 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
5705 | fi | |
698dcdb6 | 5706 | |
10f2d63a | 5707 | else |
698dcdb6 | 5708 | |
10f2d63a VZ |
5709 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` |
5710 | if test "x$LINE" != x ; then | |
5711 | eval "DEFAULT_$LINE" | |
5712 | else | |
5713 | no_cache=1 | |
5714 | fi | |
5715 | ||
5716 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
698dcdb6 VZ |
5717 | |
5718 | fi | |
10f2d63a VZ |
5719 | |
5720 | ||
5721 | eval "$ac_cv_use_radiobtn" | |
5722 | if test "$no_cache" != 1; then | |
5723 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
5724 | fi | |
5725 | ||
5726 | if test "$wxUSE_RADIOBTN" = yes; then | |
698dcdb6 | 5727 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5728 | else |
698dcdb6 | 5729 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5730 | fi |
698dcdb6 | 5731 | |
10f2d63a | 5732 | |
698dcdb6 | 5733 | echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6 |
29fd3c0c | 5734 | echo "configure:5735: checking for --enable-sash" >&5 |
10f2d63a VZ |
5735 | no_cache=0 |
5736 | # Check whether --enable-sash or --disable-sash was given. | |
5737 | if test "${enable_sash+set}" = set; then | |
5738 | enableval="$enable_sash" | |
698dcdb6 | 5739 | |
10f2d63a VZ |
5740 | if test "$enableval" = yes; then |
5741 | ac_cv_use_sash='wxUSE_SASH=yes' | |
5742 | else | |
5743 | ac_cv_use_sash='wxUSE_SASH=no' | |
5744 | fi | |
698dcdb6 | 5745 | |
10f2d63a | 5746 | else |
698dcdb6 | 5747 | |
10f2d63a VZ |
5748 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` |
5749 | if test "x$LINE" != x ; then | |
5750 | eval "DEFAULT_$LINE" | |
5751 | else | |
5752 | no_cache=1 | |
5753 | fi | |
5754 | ||
5755 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
698dcdb6 VZ |
5756 | |
5757 | fi | |
10f2d63a VZ |
5758 | |
5759 | ||
5760 | eval "$ac_cv_use_sash" | |
5761 | if test "$no_cache" != 1; then | |
5762 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
5763 | fi | |
5764 | ||
5765 | if test "$wxUSE_SASH" = yes; then | |
698dcdb6 | 5766 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5767 | else |
698dcdb6 | 5768 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5769 | fi |
698dcdb6 | 5770 | |
10f2d63a | 5771 | |
698dcdb6 | 5772 | echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6 |
29fd3c0c | 5773 | echo "configure:5774: checking for --enable-scrollbar" >&5 |
10f2d63a VZ |
5774 | no_cache=0 |
5775 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
5776 | if test "${enable_scrollbar+set}" = set; then | |
5777 | enableval="$enable_scrollbar" | |
698dcdb6 | 5778 | |
10f2d63a VZ |
5779 | if test "$enableval" = yes; then |
5780 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
5781 | else | |
5782 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
5783 | fi | |
698dcdb6 | 5784 | |
10f2d63a | 5785 | else |
698dcdb6 | 5786 | |
10f2d63a VZ |
5787 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` |
5788 | if test "x$LINE" != x ; then | |
5789 | eval "DEFAULT_$LINE" | |
5790 | else | |
5791 | no_cache=1 | |
5792 | fi | |
5793 | ||
5794 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
698dcdb6 VZ |
5795 | |
5796 | fi | |
10f2d63a VZ |
5797 | |
5798 | ||
5799 | eval "$ac_cv_use_scrollbar" | |
5800 | if test "$no_cache" != 1; then | |
5801 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
5802 | fi | |
5803 | ||
5804 | if test "$wxUSE_SCROLLBAR" = yes; then | |
698dcdb6 | 5805 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5806 | else |
698dcdb6 | 5807 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5808 | fi |
698dcdb6 | 5809 | |
10f2d63a | 5810 | |
698dcdb6 | 5811 | echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6 |
29fd3c0c | 5812 | echo "configure:5813: checking for --enable-slider" >&5 |
10f2d63a VZ |
5813 | no_cache=0 |
5814 | # Check whether --enable-slider or --disable-slider was given. | |
5815 | if test "${enable_slider+set}" = set; then | |
5816 | enableval="$enable_slider" | |
698dcdb6 | 5817 | |
10f2d63a VZ |
5818 | if test "$enableval" = yes; then |
5819 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
5820 | else | |
5821 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
5822 | fi | |
698dcdb6 | 5823 | |
10f2d63a | 5824 | else |
698dcdb6 | 5825 | |
10f2d63a VZ |
5826 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` |
5827 | if test "x$LINE" != x ; then | |
5828 | eval "DEFAULT_$LINE" | |
5829 | else | |
5830 | no_cache=1 | |
5831 | fi | |
5832 | ||
5833 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
698dcdb6 VZ |
5834 | |
5835 | fi | |
10f2d63a VZ |
5836 | |
5837 | ||
5838 | eval "$ac_cv_use_slider" | |
5839 | if test "$no_cache" != 1; then | |
5840 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
5841 | fi | |
5842 | ||
5843 | if test "$wxUSE_SLIDER" = yes; then | |
698dcdb6 | 5844 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5845 | else |
698dcdb6 | 5846 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5847 | fi |
698dcdb6 | 5848 | |
10f2d63a | 5849 | |
698dcdb6 | 5850 | echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6 |
29fd3c0c | 5851 | echo "configure:5852: checking for --enable-spinbtn" >&5 |
10f2d63a VZ |
5852 | no_cache=0 |
5853 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
5854 | if test "${enable_spinbtn+set}" = set; then | |
5855 | enableval="$enable_spinbtn" | |
698dcdb6 | 5856 | |
10f2d63a VZ |
5857 | if test "$enableval" = yes; then |
5858 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
5859 | else | |
5860 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
5861 | fi | |
698dcdb6 | 5862 | |
10f2d63a | 5863 | else |
698dcdb6 | 5864 | |
10f2d63a VZ |
5865 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` |
5866 | if test "x$LINE" != x ; then | |
5867 | eval "DEFAULT_$LINE" | |
5868 | else | |
5869 | no_cache=1 | |
5870 | fi | |
5871 | ||
5872 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
698dcdb6 VZ |
5873 | |
5874 | fi | |
10f2d63a VZ |
5875 | |
5876 | ||
5877 | eval "$ac_cv_use_spinbtn" | |
5878 | if test "$no_cache" != 1; then | |
5879 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
5880 | fi | |
5881 | ||
5882 | if test "$wxUSE_SPINBTN" = yes; then | |
698dcdb6 | 5883 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5884 | else |
698dcdb6 | 5885 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5886 | fi |
698dcdb6 | 5887 | |
10f2d63a | 5888 | |
698dcdb6 | 5889 | echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6 |
29fd3c0c | 5890 | echo "configure:5891: checking for --enable-spinctrl" >&5 |
56cfaa52 RR |
5891 | no_cache=0 |
5892 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
5893 | if test "${enable_spinctrl+set}" = set; then | |
5894 | enableval="$enable_spinctrl" | |
698dcdb6 | 5895 | |
56cfaa52 RR |
5896 | if test "$enableval" = yes; then |
5897 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
5898 | else | |
5899 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
5900 | fi | |
698dcdb6 | 5901 | |
56cfaa52 | 5902 | else |
698dcdb6 | 5903 | |
56cfaa52 RR |
5904 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` |
5905 | if test "x$LINE" != x ; then | |
5906 | eval "DEFAULT_$LINE" | |
5907 | else | |
5908 | no_cache=1 | |
5909 | fi | |
5910 | ||
5911 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
698dcdb6 VZ |
5912 | |
5913 | fi | |
56cfaa52 RR |
5914 | |
5915 | ||
5916 | eval "$ac_cv_use_spinctrl" | |
5917 | if test "$no_cache" != 1; then | |
5918 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
5919 | fi | |
5920 | ||
5921 | if test "$wxUSE_SPINCTRL" = yes; then | |
698dcdb6 | 5922 | echo "$ac_t""yes" 1>&6 |
56cfaa52 | 5923 | else |
698dcdb6 | 5924 | echo "$ac_t""no" 1>&6 |
56cfaa52 | 5925 | fi |
698dcdb6 | 5926 | |
56cfaa52 | 5927 | |
698dcdb6 | 5928 | echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6 |
29fd3c0c | 5929 | echo "configure:5930: checking for --enable-splitter" >&5 |
10f2d63a VZ |
5930 | no_cache=0 |
5931 | # Check whether --enable-splitter or --disable-splitter was given. | |
5932 | if test "${enable_splitter+set}" = set; then | |
5933 | enableval="$enable_splitter" | |
698dcdb6 | 5934 | |
10f2d63a VZ |
5935 | if test "$enableval" = yes; then |
5936 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
5937 | else | |
5938 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
5939 | fi | |
698dcdb6 | 5940 | |
10f2d63a | 5941 | else |
698dcdb6 | 5942 | |
10f2d63a VZ |
5943 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` |
5944 | if test "x$LINE" != x ; then | |
5945 | eval "DEFAULT_$LINE" | |
5946 | else | |
5947 | no_cache=1 | |
5948 | fi | |
5949 | ||
5950 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
698dcdb6 VZ |
5951 | |
5952 | fi | |
10f2d63a VZ |
5953 | |
5954 | ||
5955 | eval "$ac_cv_use_splitter" | |
5956 | if test "$no_cache" != 1; then | |
5957 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
5958 | fi | |
5959 | ||
5960 | if test "$wxUSE_SPLITTER" = yes; then | |
698dcdb6 | 5961 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5962 | else |
698dcdb6 | 5963 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5964 | fi |
698dcdb6 | 5965 | |
10f2d63a | 5966 | |
698dcdb6 | 5967 | echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6 |
29fd3c0c | 5968 | echo "configure:5969: checking for --enable-statbmp" >&5 |
10f2d63a VZ |
5969 | no_cache=0 |
5970 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
5971 | if test "${enable_statbmp+set}" = set; then | |
5972 | enableval="$enable_statbmp" | |
698dcdb6 | 5973 | |
10f2d63a VZ |
5974 | if test "$enableval" = yes; then |
5975 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
5976 | else | |
5977 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
5978 | fi | |
698dcdb6 | 5979 | |
10f2d63a | 5980 | else |
698dcdb6 | 5981 | |
10f2d63a VZ |
5982 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` |
5983 | if test "x$LINE" != x ; then | |
5984 | eval "DEFAULT_$LINE" | |
5985 | else | |
5986 | no_cache=1 | |
5987 | fi | |
5988 | ||
5989 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
698dcdb6 VZ |
5990 | |
5991 | fi | |
10f2d63a VZ |
5992 | |
5993 | ||
5994 | eval "$ac_cv_use_statbmp" | |
5995 | if test "$no_cache" != 1; then | |
5996 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
5997 | fi | |
5998 | ||
5999 | if test "$wxUSE_STATBMP" = yes; then | |
698dcdb6 | 6000 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6001 | else |
698dcdb6 | 6002 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6003 | fi |
698dcdb6 | 6004 | |
10f2d63a | 6005 | |
698dcdb6 | 6006 | echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6 |
29fd3c0c | 6007 | echo "configure:6008: checking for --enable-statbox" >&5 |
10f2d63a VZ |
6008 | no_cache=0 |
6009 | # Check whether --enable-statbox or --disable-statbox was given. | |
6010 | if test "${enable_statbox+set}" = set; then | |
6011 | enableval="$enable_statbox" | |
698dcdb6 | 6012 | |
10f2d63a VZ |
6013 | if test "$enableval" = yes; then |
6014 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
6015 | else | |
6016 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
6017 | fi | |
698dcdb6 | 6018 | |
10f2d63a | 6019 | else |
698dcdb6 | 6020 | |
10f2d63a VZ |
6021 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` |
6022 | if test "x$LINE" != x ; then | |
6023 | eval "DEFAULT_$LINE" | |
6024 | else | |
6025 | no_cache=1 | |
6026 | fi | |
6027 | ||
6028 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
698dcdb6 VZ |
6029 | |
6030 | fi | |
10f2d63a VZ |
6031 | |
6032 | ||
6033 | eval "$ac_cv_use_statbox" | |
6034 | if test "$no_cache" != 1; then | |
6035 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
6036 | fi | |
6037 | ||
6038 | if test "$wxUSE_STATBOX" = yes; then | |
698dcdb6 | 6039 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6040 | else |
698dcdb6 | 6041 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6042 | fi |
698dcdb6 | 6043 | |
10f2d63a | 6044 | |
698dcdb6 | 6045 | echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6 |
29fd3c0c | 6046 | echo "configure:6047: checking for --enable-statline" >&5 |
10f2d63a VZ |
6047 | no_cache=0 |
6048 | # Check whether --enable-statline or --disable-statline was given. | |
6049 | if test "${enable_statline+set}" = set; then | |
6050 | enableval="$enable_statline" | |
698dcdb6 | 6051 | |
10f2d63a VZ |
6052 | if test "$enableval" = yes; then |
6053 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
6054 | else | |
6055 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
6056 | fi | |
698dcdb6 | 6057 | |
10f2d63a | 6058 | else |
698dcdb6 | 6059 | |
10f2d63a VZ |
6060 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` |
6061 | if test "x$LINE" != x ; then | |
6062 | eval "DEFAULT_$LINE" | |
6063 | else | |
6064 | no_cache=1 | |
6065 | fi | |
6066 | ||
6067 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
698dcdb6 VZ |
6068 | |
6069 | fi | |
10f2d63a VZ |
6070 | |
6071 | ||
6072 | eval "$ac_cv_use_statline" | |
6073 | if test "$no_cache" != 1; then | |
6074 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
6075 | fi | |
6076 | ||
6077 | if test "$wxUSE_STATLINE" = yes; then | |
698dcdb6 | 6078 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6079 | else |
698dcdb6 | 6080 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6081 | fi |
698dcdb6 | 6082 | |
10f2d63a | 6083 | |
1e6feb95 | 6084 | echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6 |
29fd3c0c | 6085 | echo "configure:6086: checking for --enable-stattext" >&5 |
1e6feb95 VZ |
6086 | no_cache=0 |
6087 | # Check whether --enable-stattext or --disable-stattext was given. | |
6088 | if test "${enable_stattext+set}" = set; then | |
6089 | enableval="$enable_stattext" | |
6090 | ||
6091 | if test "$enableval" = yes; then | |
6092 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
6093 | else | |
6094 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
6095 | fi | |
6096 | ||
6097 | else | |
6098 | ||
6099 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
6100 | if test "x$LINE" != x ; then | |
6101 | eval "DEFAULT_$LINE" | |
6102 | else | |
6103 | no_cache=1 | |
6104 | fi | |
6105 | ||
6106 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
6107 | ||
6108 | fi | |
6109 | ||
6110 | ||
6111 | eval "$ac_cv_use_stattext" | |
6112 | if test "$no_cache" != 1; then | |
6113 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
6114 | fi | |
6115 | ||
6116 | if test "$wxUSE_STATTEXT" = yes; then | |
6117 | echo "$ac_t""yes" 1>&6 | |
6118 | else | |
6119 | echo "$ac_t""no" 1>&6 | |
6120 | fi | |
6121 | ||
6122 | ||
698dcdb6 | 6123 | echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6 |
29fd3c0c | 6124 | echo "configure:6125: checking for --enable-statusbar" >&5 |
10f2d63a VZ |
6125 | no_cache=0 |
6126 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
6127 | if test "${enable_statusbar+set}" = set; then | |
6128 | enableval="$enable_statusbar" | |
698dcdb6 | 6129 | |
10f2d63a VZ |
6130 | if test "$enableval" = yes; then |
6131 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
6132 | else | |
6133 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
6134 | fi | |
698dcdb6 | 6135 | |
10f2d63a | 6136 | else |
698dcdb6 | 6137 | |
10f2d63a VZ |
6138 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` |
6139 | if test "x$LINE" != x ; then | |
6140 | eval "DEFAULT_$LINE" | |
6141 | else | |
6142 | no_cache=1 | |
6143 | fi | |
6144 | ||
6145 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
698dcdb6 VZ |
6146 | |
6147 | fi | |
10f2d63a VZ |
6148 | |
6149 | ||
6150 | eval "$ac_cv_use_statusbar" | |
6151 | if test "$no_cache" != 1; then | |
6152 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
6153 | fi | |
6154 | ||
6155 | if test "$wxUSE_STATUSBAR" = yes; then | |
698dcdb6 | 6156 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6157 | else |
698dcdb6 | 6158 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6159 | fi |
698dcdb6 | 6160 | |
10f2d63a | 6161 | |
698dcdb6 | 6162 | echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6 |
29fd3c0c | 6163 | echo "configure:6164: checking for --enable-tabdialog" >&5 |
10f2d63a VZ |
6164 | no_cache=0 |
6165 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
6166 | if test "${enable_tabdialog+set}" = set; then | |
6167 | enableval="$enable_tabdialog" | |
698dcdb6 | 6168 | |
10f2d63a VZ |
6169 | if test "$enableval" = yes; then |
6170 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
6171 | else | |
6172 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
6173 | fi | |
698dcdb6 | 6174 | |
10f2d63a | 6175 | else |
698dcdb6 | 6176 | |
10f2d63a VZ |
6177 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` |
6178 | if test "x$LINE" != x ; then | |
6179 | eval "DEFAULT_$LINE" | |
6180 | else | |
6181 | no_cache=1 | |
6182 | fi | |
6183 | ||
6184 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
698dcdb6 VZ |
6185 | |
6186 | fi | |
10f2d63a VZ |
6187 | |
6188 | ||
6189 | eval "$ac_cv_use_tabdialog" | |
6190 | if test "$no_cache" != 1; then | |
6191 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
6192 | fi | |
6193 | ||
6194 | if test "$wxUSE_TABDIALOG" = yes; then | |
698dcdb6 | 6195 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6196 | else |
698dcdb6 | 6197 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6198 | fi |
698dcdb6 | 6199 | |
10f2d63a | 6200 | |
1e6feb95 | 6201 | echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6 |
29fd3c0c | 6202 | echo "configure:6203: checking for --enable-textctrl" >&5 |
1e6feb95 VZ |
6203 | no_cache=0 |
6204 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
6205 | if test "${enable_textctrl+set}" = set; then | |
6206 | enableval="$enable_textctrl" | |
6207 | ||
6208 | if test "$enableval" = yes; then | |
6209 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
6210 | else | |
6211 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
6212 | fi | |
6213 | ||
6214 | else | |
6215 | ||
6216 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
6217 | if test "x$LINE" != x ; then | |
6218 | eval "DEFAULT_$LINE" | |
6219 | else | |
6220 | no_cache=1 | |
6221 | fi | |
6222 | ||
6223 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
6224 | ||
6225 | fi | |
6226 | ||
6227 | ||
6228 | eval "$ac_cv_use_textctrl" | |
6229 | if test "$no_cache" != 1; then | |
6230 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
6231 | fi | |
6232 | ||
6233 | if test "$wxUSE_TEXTCTRL" = yes; then | |
6234 | echo "$ac_t""yes" 1>&6 | |
6235 | else | |
6236 | echo "$ac_t""no" 1>&6 | |
6237 | fi | |
6238 | ||
6239 | ||
698dcdb6 | 6240 | echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6 |
29fd3c0c | 6241 | echo "configure:6242: checking for --enable-togglebtn" >&5 |
1db8dc4a VZ |
6242 | no_cache=0 |
6243 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
6244 | if test "${enable_togglebtn+set}" = set; then | |
6245 | enableval="$enable_togglebtn" | |
698dcdb6 | 6246 | |
1db8dc4a VZ |
6247 | if test "$enableval" = yes; then |
6248 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
6249 | else | |
6250 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
6251 | fi | |
698dcdb6 | 6252 | |
1db8dc4a | 6253 | else |
698dcdb6 | 6254 | |
1db8dc4a VZ |
6255 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` |
6256 | if test "x$LINE" != x ; then | |
6257 | eval "DEFAULT_$LINE" | |
6258 | else | |
6259 | no_cache=1 | |
6260 | fi | |
6261 | ||
6262 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
698dcdb6 VZ |
6263 | |
6264 | fi | |
1db8dc4a VZ |
6265 | |
6266 | ||
6267 | eval "$ac_cv_use_togglebtn" | |
6268 | if test "$no_cache" != 1; then | |
6269 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
6270 | fi | |
6271 | ||
6272 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
698dcdb6 | 6273 | echo "$ac_t""yes" 1>&6 |
1db8dc4a | 6274 | else |
698dcdb6 | 6275 | echo "$ac_t""no" 1>&6 |
1db8dc4a | 6276 | fi |
698dcdb6 | 6277 | |
1db8dc4a | 6278 | |
698dcdb6 | 6279 | echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6 |
29fd3c0c | 6280 | echo "configure:6281: checking for --enable-toolbar" >&5 |
10f2d63a VZ |
6281 | no_cache=0 |
6282 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
6283 | if test "${enable_toolbar+set}" = set; then | |
6284 | enableval="$enable_toolbar" | |
698dcdb6 | 6285 | |
10f2d63a VZ |
6286 | if test "$enableval" = yes; then |
6287 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
6288 | else | |
6289 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
6290 | fi | |
698dcdb6 | 6291 | |
10f2d63a | 6292 | else |
698dcdb6 | 6293 | |
10f2d63a VZ |
6294 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` |
6295 | if test "x$LINE" != x ; then | |
6296 | eval "DEFAULT_$LINE" | |
6297 | else | |
6298 | no_cache=1 | |
6299 | fi | |
6300 | ||
6301 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
698dcdb6 VZ |
6302 | |
6303 | fi | |
10f2d63a VZ |
6304 | |
6305 | ||
6306 | eval "$ac_cv_use_toolbar" | |
6307 | if test "$no_cache" != 1; then | |
6308 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
6309 | fi | |
6310 | ||
6311 | if test "$wxUSE_TOOLBAR" = yes; then | |
698dcdb6 | 6312 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6313 | else |
698dcdb6 | 6314 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6315 | fi |
698dcdb6 | 6316 | |
10f2d63a | 6317 | |
698dcdb6 | 6318 | echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6 |
29fd3c0c | 6319 | echo "configure:6320: checking for --enable-tbarnative" >&5 |
360d6699 VZ |
6320 | no_cache=0 |
6321 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
6322 | if test "${enable_tbarnative+set}" = set; then | |
6323 | enableval="$enable_tbarnative" | |
698dcdb6 | 6324 | |
360d6699 VZ |
6325 | if test "$enableval" = yes; then |
6326 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
6327 | else | |
6328 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
6329 | fi | |
698dcdb6 | 6330 | |
360d6699 | 6331 | else |
698dcdb6 | 6332 | |
360d6699 VZ |
6333 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` |
6334 | if test "x$LINE" != x ; then | |
6335 | eval "DEFAULT_$LINE" | |
6336 | else | |
6337 | no_cache=1 | |
6338 | fi | |
6339 | ||
6340 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
698dcdb6 VZ |
6341 | |
6342 | fi | |
360d6699 VZ |
6343 | |
6344 | ||
6345 | eval "$ac_cv_use_tbarnative" | |
6346 | if test "$no_cache" != 1; then | |
6347 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
6348 | fi | |
6349 | ||
6350 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
698dcdb6 | 6351 | echo "$ac_t""yes" 1>&6 |
360d6699 | 6352 | else |
698dcdb6 | 6353 | echo "$ac_t""no" 1>&6 |
360d6699 | 6354 | fi |
698dcdb6 | 6355 | |
360d6699 | 6356 | |
698dcdb6 | 6357 | echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6 |
29fd3c0c | 6358 | echo "configure:6359: checking for --enable-tbarsmpl" >&5 |
360d6699 VZ |
6359 | no_cache=0 |
6360 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
6361 | if test "${enable_tbarsmpl+set}" = set; then | |
6362 | enableval="$enable_tbarsmpl" | |
698dcdb6 | 6363 | |
360d6699 VZ |
6364 | if test "$enableval" = yes; then |
6365 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
6366 | else | |
6367 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
6368 | fi | |
698dcdb6 | 6369 | |
360d6699 | 6370 | else |
698dcdb6 | 6371 | |
360d6699 VZ |
6372 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` |
6373 | if test "x$LINE" != x ; then | |
6374 | eval "DEFAULT_$LINE" | |
6375 | else | |
6376 | no_cache=1 | |
6377 | fi | |
6378 | ||
6379 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
698dcdb6 VZ |
6380 | |
6381 | fi | |
360d6699 VZ |
6382 | |
6383 | ||
6384 | eval "$ac_cv_use_tbarsmpl" | |
6385 | if test "$no_cache" != 1; then | |
6386 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
6387 | fi | |
6388 | ||
6389 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
698dcdb6 | 6390 | echo "$ac_t""yes" 1>&6 |
360d6699 | 6391 | else |
698dcdb6 | 6392 | echo "$ac_t""no" 1>&6 |
360d6699 | 6393 | fi |
698dcdb6 | 6394 | |
360d6699 | 6395 | |
698dcdb6 | 6396 | echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6 |
29fd3c0c | 6397 | echo "configure:6398: checking for --enable-treectrl" >&5 |
10f2d63a VZ |
6398 | no_cache=0 |
6399 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
6400 | if test "${enable_treectrl+set}" = set; then | |
6401 | enableval="$enable_treectrl" | |
698dcdb6 | 6402 | |
10f2d63a VZ |
6403 | if test "$enableval" = yes; then |
6404 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
6405 | else | |
6406 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
6407 | fi | |
698dcdb6 | 6408 | |
10f2d63a | 6409 | else |
698dcdb6 | 6410 | |
10f2d63a VZ |
6411 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` |
6412 | if test "x$LINE" != x ; then | |
6413 | eval "DEFAULT_$LINE" | |
6414 | else | |
6415 | no_cache=1 | |
6416 | fi | |
6417 | ||
6418 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
698dcdb6 VZ |
6419 | |
6420 | fi | |
10f2d63a VZ |
6421 | |
6422 | ||
1e6feb95 VZ |
6423 | eval "$ac_cv_use_treectrl" |
6424 | if test "$no_cache" != 1; then | |
6425 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
6426 | fi | |
6427 | ||
6428 | if test "$wxUSE_TREECTRL" = yes; then | |
6429 | echo "$ac_t""yes" 1>&6 | |
6430 | else | |
6431 | echo "$ac_t""no" 1>&6 | |
6432 | fi | |
6433 | ||
6434 | ||
9f41d601 | 6435 | echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6 |
29fd3c0c | 6436 | echo "configure:6437: checking for --enable-popupwin" >&5 |
9f41d601 RR |
6437 | no_cache=0 |
6438 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
6439 | if test "${enable_popupwin+set}" = set; then | |
6440 | enableval="$enable_popupwin" | |
6441 | ||
6442 | if test "$enableval" = yes; then | |
6443 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
6444 | else | |
6445 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
6446 | fi | |
6447 | ||
6448 | else | |
6449 | ||
6450 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` | |
6451 | if test "x$LINE" != x ; then | |
6452 | eval "DEFAULT_$LINE" | |
6453 | else | |
6454 | no_cache=1 | |
6455 | fi | |
6456 | ||
6457 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
6458 | ||
6459 | fi | |
6460 | ||
6461 | ||
6462 | eval "$ac_cv_use_popupwin" | |
6463 | if test "$no_cache" != 1; then | |
6464 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
6465 | fi | |
6466 | ||
6467 | if test "$wxUSE_POPUPWIN" = yes; then | |
6468 | echo "$ac_t""yes" 1>&6 | |
6469 | else | |
6470 | echo "$ac_t""no" 1>&6 | |
6471 | fi | |
6472 | ||
6473 | ||
1e6feb95 VZ |
6474 | |
6475 | ||
6476 | echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6 | |
29fd3c0c | 6477 | echo "configure:6478: checking for --enable-commondlg" >&5 |
1e6feb95 VZ |
6478 | no_cache=0 |
6479 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
6480 | if test "${enable_commondlg+set}" = set; then | |
6481 | enableval="$enable_commondlg" | |
6482 | ||
6483 | if test "$enableval" = yes; then | |
6484 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
6485 | else | |
6486 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
6487 | fi | |
6488 | ||
6489 | else | |
6490 | ||
6491 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
6492 | if test "x$LINE" != x ; then | |
6493 | eval "DEFAULT_$LINE" | |
6494 | else | |
6495 | no_cache=1 | |
6496 | fi | |
6497 | ||
6498 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
6499 | ||
6500 | fi | |
6501 | ||
6502 | ||
6503 | eval "$ac_cv_use_commondlg" | |
6504 | if test "$no_cache" != 1; then | |
6505 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
6506 | fi | |
6507 | ||
6508 | if test "$wxUSE_COMMONDLGS" = yes; then | |
6509 | echo "$ac_t""yes" 1>&6 | |
6510 | else | |
6511 | echo "$ac_t""no" 1>&6 | |
6512 | fi | |
6513 | ||
6514 | ||
6515 | echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6 | |
29fd3c0c | 6516 | echo "configure:6517: checking for --enable-choicedlg" >&5 |
1e6feb95 VZ |
6517 | no_cache=0 |
6518 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
6519 | if test "${enable_choicedlg+set}" = set; then | |
6520 | enableval="$enable_choicedlg" | |
6521 | ||
6522 | if test "$enableval" = yes; then | |
6523 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
6524 | else | |
6525 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
6526 | fi | |
6527 | ||
6528 | else | |
6529 | ||
6530 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
6531 | if test "x$LINE" != x ; then | |
6532 | eval "DEFAULT_$LINE" | |
6533 | else | |
6534 | no_cache=1 | |
6535 | fi | |
6536 | ||
6537 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
6538 | ||
6539 | fi | |
6540 | ||
6541 | ||
6542 | eval "$ac_cv_use_choicedlg" | |
6543 | if test "$no_cache" != 1; then | |
6544 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
6545 | fi | |
6546 | ||
6547 | if test "$wxUSE_CHOICEDLG" = yes; then | |
6548 | echo "$ac_t""yes" 1>&6 | |
6549 | else | |
6550 | echo "$ac_t""no" 1>&6 | |
6551 | fi | |
6552 | ||
6553 | ||
6554 | echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6 | |
29fd3c0c | 6555 | echo "configure:6556: checking for --enable-coldlg" >&5 |
1e6feb95 VZ |
6556 | no_cache=0 |
6557 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
6558 | if test "${enable_coldlg+set}" = set; then | |
6559 | enableval="$enable_coldlg" | |
6560 | ||
6561 | if test "$enableval" = yes; then | |
6562 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
6563 | else | |
6564 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
6565 | fi | |
6566 | ||
6567 | else | |
6568 | ||
6569 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
6570 | if test "x$LINE" != x ; then | |
6571 | eval "DEFAULT_$LINE" | |
6572 | else | |
6573 | no_cache=1 | |
6574 | fi | |
6575 | ||
6576 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
6577 | ||
6578 | fi | |
6579 | ||
6580 | ||
6581 | eval "$ac_cv_use_coldlg" | |
6582 | if test "$no_cache" != 1; then | |
6583 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
6584 | fi | |
6585 | ||
6586 | if test "$wxUSE_COLOURDLG" = yes; then | |
6587 | echo "$ac_t""yes" 1>&6 | |
6588 | else | |
6589 | echo "$ac_t""no" 1>&6 | |
6590 | fi | |
6591 | ||
6592 | ||
6593 | echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6 | |
29fd3c0c | 6594 | echo "configure:6595: checking for --enable-filedlg" >&5 |
1e6feb95 VZ |
6595 | no_cache=0 |
6596 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
6597 | if test "${enable_filedlg+set}" = set; then | |
6598 | enableval="$enable_filedlg" | |
6599 | ||
6600 | if test "$enableval" = yes; then | |
6601 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
6602 | else | |
6603 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
6604 | fi | |
6605 | ||
6606 | else | |
6607 | ||
6608 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
6609 | if test "x$LINE" != x ; then | |
6610 | eval "DEFAULT_$LINE" | |
6611 | else | |
6612 | no_cache=1 | |
6613 | fi | |
6614 | ||
6615 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
6616 | ||
6617 | fi | |
6618 | ||
6619 | ||
6620 | eval "$ac_cv_use_filedlg" | |
6621 | if test "$no_cache" != 1; then | |
6622 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
6623 | fi | |
6624 | ||
6625 | if test "$wxUSE_FILEDLG" = yes; then | |
6626 | echo "$ac_t""yes" 1>&6 | |
6627 | else | |
6628 | echo "$ac_t""no" 1>&6 | |
6629 | fi | |
6630 | ||
6631 | ||
6632 | echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6 | |
29fd3c0c | 6633 | echo "configure:6634: checking for --enable-fontdlg" >&5 |
1e6feb95 VZ |
6634 | no_cache=0 |
6635 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
6636 | if test "${enable_fontdlg+set}" = set; then | |
6637 | enableval="$enable_fontdlg" | |
6638 | ||
6639 | if test "$enableval" = yes; then | |
6640 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
6641 | else | |
6642 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
6643 | fi | |
6644 | ||
6645 | else | |
6646 | ||
6647 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
6648 | if test "x$LINE" != x ; then | |
6649 | eval "DEFAULT_$LINE" | |
6650 | else | |
6651 | no_cache=1 | |
6652 | fi | |
6653 | ||
6654 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
6655 | ||
6656 | fi | |
6657 | ||
6658 | ||
6659 | eval "$ac_cv_use_fontdlg" | |
6660 | if test "$no_cache" != 1; then | |
6661 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
6662 | fi | |
6663 | ||
6664 | if test "$wxUSE_FONTDLG" = yes; then | |
6665 | echo "$ac_t""yes" 1>&6 | |
6666 | else | |
6667 | echo "$ac_t""no" 1>&6 | |
6668 | fi | |
6669 | ||
6670 | ||
6671 | echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6 | |
29fd3c0c | 6672 | echo "configure:6673: checking for --enable-dirdlg" >&5 |
1e6feb95 VZ |
6673 | no_cache=0 |
6674 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
6675 | if test "${enable_dirdlg+set}" = set; then | |
6676 | enableval="$enable_dirdlg" | |
6677 | ||
6678 | if test "$enableval" = yes; then | |
6679 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
6680 | else | |
6681 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
6682 | fi | |
6683 | ||
6684 | else | |
6685 | ||
6686 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
6687 | if test "x$LINE" != x ; then | |
6688 | eval "DEFAULT_$LINE" | |
6689 | else | |
6690 | no_cache=1 | |
6691 | fi | |
6692 | ||
6693 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
6694 | ||
6695 | fi | |
6696 | ||
6697 | ||
6698 | eval "$ac_cv_use_dirdlg" | |
10f2d63a | 6699 | if test "$no_cache" != 1; then |
1e6feb95 | 6700 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6701 | fi |
6702 | ||
1e6feb95 | 6703 | if test "$wxUSE_DIRDLG" = yes; then |
698dcdb6 | 6704 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6705 | else |
698dcdb6 | 6706 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6707 | fi |
698dcdb6 VZ |
6708 | |
6709 | ||
1e6feb95 | 6710 | echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6 |
29fd3c0c | 6711 | echo "configure:6712: checking for --enable-msgdlg" >&5 |
10f2d63a | 6712 | no_cache=0 |
1e6feb95 VZ |
6713 | # Check whether --enable-msgdlg or --disable-msgdlg was given. |
6714 | if test "${enable_msgdlg+set}" = set; then | |
6715 | enableval="$enable_msgdlg" | |
698dcdb6 | 6716 | |
10f2d63a | 6717 | if test "$enableval" = yes; then |
1e6feb95 | 6718 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' |
10f2d63a | 6719 | else |
1e6feb95 | 6720 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' |
10f2d63a | 6721 | fi |
698dcdb6 | 6722 | |
10f2d63a | 6723 | else |
698dcdb6 | 6724 | |
1e6feb95 | 6725 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
6726 | if test "x$LINE" != x ; then |
6727 | eval "DEFAULT_$LINE" | |
6728 | else | |
6729 | no_cache=1 | |
6730 | fi | |
6731 | ||
1e6feb95 | 6732 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG |
698dcdb6 VZ |
6733 | |
6734 | fi | |
10f2d63a VZ |
6735 | |
6736 | ||
1e6feb95 | 6737 | eval "$ac_cv_use_msgdlg" |
10f2d63a | 6738 | if test "$no_cache" != 1; then |
1e6feb95 | 6739 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6740 | fi |
6741 | ||
1e6feb95 | 6742 | if test "$wxUSE_MSGDLG" = yes; then |
698dcdb6 | 6743 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6744 | else |
698dcdb6 | 6745 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6746 | fi |
698dcdb6 | 6747 | |
10f2d63a | 6748 | |
1e6feb95 | 6749 | echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6 |
29fd3c0c | 6750 | echo "configure:6751: checking for --enable-numberdlg" >&5 |
10f2d63a | 6751 | no_cache=0 |
1e6feb95 VZ |
6752 | # Check whether --enable-numberdlg or --disable-numberdlg was given. |
6753 | if test "${enable_numberdlg+set}" = set; then | |
6754 | enableval="$enable_numberdlg" | |
698dcdb6 | 6755 | |
10f2d63a | 6756 | if test "$enableval" = yes; then |
1e6feb95 | 6757 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' |
10f2d63a | 6758 | else |
1e6feb95 | 6759 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' |
10f2d63a | 6760 | fi |
698dcdb6 | 6761 | |
10f2d63a | 6762 | else |
698dcdb6 | 6763 | |
1e6feb95 | 6764 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
6765 | if test "x$LINE" != x ; then |
6766 | eval "DEFAULT_$LINE" | |
6767 | else | |
6768 | no_cache=1 | |
6769 | fi | |
6770 | ||
1e6feb95 | 6771 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG |
698dcdb6 VZ |
6772 | |
6773 | fi | |
10f2d63a VZ |
6774 | |
6775 | ||
1e6feb95 | 6776 | eval "$ac_cv_use_numberdlg" |
10f2d63a | 6777 | if test "$no_cache" != 1; then |
1e6feb95 | 6778 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6779 | fi |
6780 | ||
1e6feb95 | 6781 | if test "$wxUSE_NUMBERDLG" = yes; then |
698dcdb6 | 6782 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6783 | else |
698dcdb6 | 6784 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6785 | fi |
698dcdb6 | 6786 | |
10f2d63a | 6787 | |
698dcdb6 | 6788 | echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6 |
29fd3c0c | 6789 | echo "configure:6790: checking for --enable-textdlg" >&5 |
10f2d63a VZ |
6790 | no_cache=0 |
6791 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
6792 | if test "${enable_textdlg+set}" = set; then | |
6793 | enableval="$enable_textdlg" | |
698dcdb6 | 6794 | |
10f2d63a VZ |
6795 | if test "$enableval" = yes; then |
6796 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
6797 | else | |
6798 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
6799 | fi | |
698dcdb6 | 6800 | |
10f2d63a | 6801 | else |
698dcdb6 | 6802 | |
10f2d63a VZ |
6803 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` |
6804 | if test "x$LINE" != x ; then | |
6805 | eval "DEFAULT_$LINE" | |
6806 | else | |
6807 | no_cache=1 | |
6808 | fi | |
6809 | ||
6810 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
698dcdb6 VZ |
6811 | |
6812 | fi | |
10f2d63a VZ |
6813 | |
6814 | ||
6815 | eval "$ac_cv_use_textdlg" | |
6816 | if test "$no_cache" != 1; then | |
6817 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
6818 | fi | |
6819 | ||
6820 | if test "$wxUSE_TEXTDLG" = yes; then | |
698dcdb6 | 6821 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6822 | else |
698dcdb6 | 6823 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6824 | fi |
698dcdb6 | 6825 | |
10f2d63a | 6826 | |
698dcdb6 | 6827 | echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6 |
29fd3c0c | 6828 | echo "configure:6829: checking for --enable-tipdlg" >&5 |
10f2d63a VZ |
6829 | no_cache=0 |
6830 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
6831 | if test "${enable_tipdlg+set}" = set; then | |
6832 | enableval="$enable_tipdlg" | |
698dcdb6 | 6833 | |
10f2d63a VZ |
6834 | if test "$enableval" = yes; then |
6835 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
6836 | else | |
6837 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
6838 | fi | |
698dcdb6 | 6839 | |
10f2d63a | 6840 | else |
698dcdb6 | 6841 | |
10f2d63a VZ |
6842 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` |
6843 | if test "x$LINE" != x ; then | |
6844 | eval "DEFAULT_$LINE" | |
6845 | else | |
6846 | no_cache=1 | |
6847 | fi | |
6848 | ||
6849 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
698dcdb6 VZ |
6850 | |
6851 | fi | |
10f2d63a VZ |
6852 | |
6853 | ||
6854 | eval "$ac_cv_use_tipdlg" | |
6855 | if test "$no_cache" != 1; then | |
6856 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
6857 | fi | |
6858 | ||
6859 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
698dcdb6 | 6860 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6861 | else |
698dcdb6 | 6862 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6863 | fi |
698dcdb6 | 6864 | |
10f2d63a | 6865 | |
698dcdb6 | 6866 | echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6 |
29fd3c0c | 6867 | echo "configure:6868: checking for --enable-progressdlg" >&5 |
10f2d63a VZ |
6868 | no_cache=0 |
6869 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
6870 | if test "${enable_progressdlg+set}" = set; then | |
6871 | enableval="$enable_progressdlg" | |
698dcdb6 | 6872 | |
10f2d63a VZ |
6873 | if test "$enableval" = yes; then |
6874 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
6875 | else | |
6876 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
6877 | fi | |
698dcdb6 | 6878 | |
10f2d63a | 6879 | else |
698dcdb6 | 6880 | |
10f2d63a VZ |
6881 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` |
6882 | if test "x$LINE" != x ; then | |
6883 | eval "DEFAULT_$LINE" | |
6884 | else | |
6885 | no_cache=1 | |
6886 | fi | |
6887 | ||
6888 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
698dcdb6 VZ |
6889 | |
6890 | fi | |
10f2d63a VZ |
6891 | |
6892 | ||
6893 | eval "$ac_cv_use_progressdlg" | |
6894 | if test "$no_cache" != 1; then | |
6895 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
6896 | fi | |
6897 | ||
6898 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
698dcdb6 | 6899 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6900 | else |
698dcdb6 | 6901 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6902 | fi |
698dcdb6 | 6903 | |
10f2d63a | 6904 | |
b1f5d087 | 6905 | echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6 |
29fd3c0c | 6906 | echo "configure:6907: checking for --enable-wizarddlg" >&5 |
b1f5d087 VZ |
6907 | no_cache=0 |
6908 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
6909 | if test "${enable_wizarddlg+set}" = set; then | |
6910 | enableval="$enable_wizarddlg" | |
6911 | ||
6912 | if test "$enableval" = yes; then | |
6913 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
6914 | else | |
6915 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
6916 | fi | |
6917 | ||
6918 | else | |
6919 | ||
6920 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` | |
6921 | if test "x$LINE" != x ; then | |
6922 | eval "DEFAULT_$LINE" | |
6923 | else | |
6924 | no_cache=1 | |
6925 | fi | |
6926 | ||
6927 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
6928 | ||
6929 | fi | |
6930 | ||
6931 | ||
6932 | eval "$ac_cv_use_wizarddlg" | |
6933 | if test "$no_cache" != 1; then | |
6934 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
6935 | fi | |
6936 | ||
6937 | if test "$wxUSE_WIZARDDLG" = yes; then | |
6938 | echo "$ac_t""yes" 1>&6 | |
6939 | else | |
6940 | echo "$ac_t""no" 1>&6 | |
6941 | fi | |
6942 | ||
6943 | ||
6944 | ||
6945 | ||
1e6feb95 | 6946 | echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6 |
29fd3c0c | 6947 | echo "configure:6948: checking for --enable-menus" >&5 |
1e6feb95 VZ |
6948 | no_cache=0 |
6949 | # Check whether --enable-menus or --disable-menus was given. | |
6950 | if test "${enable_menus+set}" = set; then | |
6951 | enableval="$enable_menus" | |
6952 | ||
6953 | if test "$enableval" = yes; then | |
6954 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
6955 | else | |
6956 | ac_cv_use_menus='wxUSE_MENUS=no' | |
6957 | fi | |
6958 | ||
6959 | else | |
6960 | ||
6961 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
6962 | if test "x$LINE" != x ; then | |
6963 | eval "DEFAULT_$LINE" | |
6964 | else | |
6965 | no_cache=1 | |
6966 | fi | |
6967 | ||
6968 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
6969 | ||
6970 | fi | |
6971 | ||
6972 | ||
6973 | eval "$ac_cv_use_menus" | |
6974 | if test "$no_cache" != 1; then | |
6975 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
6976 | fi | |
6977 | ||
6978 | if test "$wxUSE_MENUS" = yes; then | |
6979 | echo "$ac_t""yes" 1>&6 | |
6980 | else | |
6981 | echo "$ac_t""no" 1>&6 | |
6982 | fi | |
6983 | ||
6984 | ||
698dcdb6 | 6985 | echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6 |
29fd3c0c | 6986 | echo "configure:6987: checking for --enable-miniframe" >&5 |
10f2d63a VZ |
6987 | no_cache=0 |
6988 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
6989 | if test "${enable_miniframe+set}" = set; then | |
6990 | enableval="$enable_miniframe" | |
698dcdb6 | 6991 | |
10f2d63a VZ |
6992 | if test "$enableval" = yes; then |
6993 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
6994 | else | |
6995 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
6996 | fi | |
698dcdb6 | 6997 | |
10f2d63a | 6998 | else |
698dcdb6 | 6999 | |
10f2d63a VZ |
7000 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` |
7001 | if test "x$LINE" != x ; then | |
7002 | eval "DEFAULT_$LINE" | |
7003 | else | |
7004 | no_cache=1 | |
7005 | fi | |
7006 | ||
7007 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
698dcdb6 VZ |
7008 | |
7009 | fi | |
10f2d63a VZ |
7010 | |
7011 | ||
7012 | eval "$ac_cv_use_miniframe" | |
7013 | if test "$no_cache" != 1; then | |
7014 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
7015 | fi | |
7016 | ||
7017 | if test "$wxUSE_MINIFRAME" = yes; then | |
698dcdb6 | 7018 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7019 | else |
698dcdb6 | 7020 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7021 | fi |
698dcdb6 | 7022 | |
10f2d63a | 7023 | |
698dcdb6 | 7024 | echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6 |
29fd3c0c | 7025 | echo "configure:7026: checking for --enable-tooltips" >&5 |
10f2d63a VZ |
7026 | no_cache=0 |
7027 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
7028 | if test "${enable_tooltips+set}" = set; then | |
7029 | enableval="$enable_tooltips" | |
698dcdb6 | 7030 | |
10f2d63a VZ |
7031 | if test "$enableval" = yes; then |
7032 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
7033 | else | |
7034 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
7035 | fi | |
698dcdb6 | 7036 | |
10f2d63a | 7037 | else |
698dcdb6 | 7038 | |
10f2d63a VZ |
7039 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` |
7040 | if test "x$LINE" != x ; then | |
7041 | eval "DEFAULT_$LINE" | |
7042 | else | |
7043 | no_cache=1 | |
7044 | fi | |
7045 | ||
7046 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
698dcdb6 VZ |
7047 | |
7048 | fi | |
10f2d63a VZ |
7049 | |
7050 | ||
7051 | eval "$ac_cv_use_tooltips" | |
7052 | if test "$no_cache" != 1; then | |
7053 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
7054 | fi | |
7055 | ||
7056 | if test "$wxUSE_TOOLTIPS" = yes; then | |
698dcdb6 | 7057 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7058 | else |
698dcdb6 | 7059 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7060 | fi |
698dcdb6 | 7061 | |
10f2d63a | 7062 | |
698dcdb6 | 7063 | echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6 |
29fd3c0c | 7064 | echo "configure:7065: checking for --enable-splines" >&5 |
10f2d63a VZ |
7065 | no_cache=0 |
7066 | # Check whether --enable-splines or --disable-splines was given. | |
7067 | if test "${enable_splines+set}" = set; then | |
7068 | enableval="$enable_splines" | |
698dcdb6 | 7069 | |
10f2d63a VZ |
7070 | if test "$enableval" = yes; then |
7071 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
7072 | else | |
7073 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
7074 | fi | |
698dcdb6 | 7075 | |
10f2d63a | 7076 | else |
698dcdb6 | 7077 | |
10f2d63a VZ |
7078 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` |
7079 | if test "x$LINE" != x ; then | |
7080 | eval "DEFAULT_$LINE" | |
7081 | else | |
7082 | no_cache=1 | |
7083 | fi | |
7084 | ||
7085 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
698dcdb6 VZ |
7086 | |
7087 | fi | |
10f2d63a VZ |
7088 | |
7089 | ||
7090 | eval "$ac_cv_use_splines" | |
7091 | if test "$no_cache" != 1; then | |
7092 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
7093 | fi | |
7094 | ||
7095 | if test "$wxUSE_SPLINES" = yes; then | |
698dcdb6 | 7096 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7097 | else |
698dcdb6 | 7098 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7099 | fi |
698dcdb6 | 7100 | |
10f2d63a | 7101 | |
698dcdb6 | 7102 | echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6 |
29fd3c0c | 7103 | echo "configure:7104: checking for --enable-validators" >&5 |
10f2d63a VZ |
7104 | no_cache=0 |
7105 | # Check whether --enable-validators or --disable-validators was given. | |
7106 | if test "${enable_validators+set}" = set; then | |
7107 | enableval="$enable_validators" | |
698dcdb6 | 7108 | |
10f2d63a VZ |
7109 | if test "$enableval" = yes; then |
7110 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
7111 | else | |
7112 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
7113 | fi | |
698dcdb6 | 7114 | |
10f2d63a | 7115 | else |
698dcdb6 | 7116 | |
10f2d63a VZ |
7117 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` |
7118 | if test "x$LINE" != x ; then | |
7119 | eval "DEFAULT_$LINE" | |
7120 | else | |
7121 | no_cache=1 | |
7122 | fi | |
7123 | ||
7124 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
698dcdb6 VZ |
7125 | |
7126 | fi | |
10f2d63a VZ |
7127 | |
7128 | ||
7129 | eval "$ac_cv_use_validators" | |
7130 | if test "$no_cache" != 1; then | |
7131 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
7132 | fi | |
7133 | ||
7134 | if test "$wxUSE_VALIDATORS" = yes; then | |
698dcdb6 | 7135 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7136 | else |
698dcdb6 | 7137 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7138 | fi |
698dcdb6 | 7139 | |
10f2d63a | 7140 | |
698dcdb6 | 7141 | echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6 |
29fd3c0c | 7142 | echo "configure:7143: checking for --enable-busyinfo" >&5 |
10f2d63a VZ |
7143 | no_cache=0 |
7144 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
7145 | if test "${enable_busyinfo+set}" = set; then | |
7146 | enableval="$enable_busyinfo" | |
698dcdb6 | 7147 | |
10f2d63a VZ |
7148 | if test "$enableval" = yes; then |
7149 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
7150 | else | |
7151 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
7152 | fi | |
698dcdb6 | 7153 | |
10f2d63a | 7154 | else |
698dcdb6 | 7155 | |
10f2d63a VZ |
7156 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` |
7157 | if test "x$LINE" != x ; then | |
7158 | eval "DEFAULT_$LINE" | |
7159 | else | |
7160 | no_cache=1 | |
7161 | fi | |
7162 | ||
7163 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
698dcdb6 VZ |
7164 | |
7165 | fi | |
10f2d63a VZ |
7166 | |
7167 | ||
7168 | eval "$ac_cv_use_busyinfo" | |
7169 | if test "$no_cache" != 1; then | |
7170 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
7171 | fi | |
7172 | ||
7173 | if test "$wxUSE_BUSYINFO" = yes; then | |
698dcdb6 | 7174 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7175 | else |
698dcdb6 | 7176 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7177 | fi |
698dcdb6 | 7178 | |
10f2d63a | 7179 | |
698dcdb6 | 7180 | echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6 |
29fd3c0c | 7181 | echo "configure:7182: checking for --enable-joystick" >&5 |
f6bcfd97 BP |
7182 | no_cache=0 |
7183 | # Check whether --enable-joystick or --disable-joystick was given. | |
7184 | if test "${enable_joystick+set}" = set; then | |
7185 | enableval="$enable_joystick" | |
698dcdb6 | 7186 | |
f6bcfd97 BP |
7187 | if test "$enableval" = yes; then |
7188 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
7189 | else | |
7190 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
7191 | fi | |
698dcdb6 | 7192 | |
f6bcfd97 | 7193 | else |
698dcdb6 | 7194 | |
f6bcfd97 BP |
7195 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` |
7196 | if test "x$LINE" != x ; then | |
7197 | eval "DEFAULT_$LINE" | |
7198 | else | |
7199 | no_cache=1 | |
7200 | fi | |
7201 | ||
7202 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
698dcdb6 VZ |
7203 | |
7204 | fi | |
f6bcfd97 BP |
7205 | |
7206 | ||
7207 | eval "$ac_cv_use_joystick" | |
7208 | if test "$no_cache" != 1; then | |
7209 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
7210 | fi | |
7211 | ||
7212 | if test "$wxUSE_JOYSTICK" = yes; then | |
698dcdb6 | 7213 | echo "$ac_t""yes" 1>&6 |
f6bcfd97 | 7214 | else |
698dcdb6 | 7215 | echo "$ac_t""no" 1>&6 |
f6bcfd97 | 7216 | fi |
698dcdb6 VZ |
7217 | |
7218 | ||
1e6feb95 | 7219 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
29fd3c0c | 7220 | echo "configure:7221: checking for --enable-metafile" >&5 |
1e6feb95 VZ |
7221 | no_cache=0 |
7222 | # Check whether --enable-metafile or --disable-metafile was given. | |
7223 | if test "${enable_metafile+set}" = set; then | |
7224 | enableval="$enable_metafile" | |
7225 | ||
7226 | if test "$enableval" = yes; then | |
7227 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
7228 | else | |
7229 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
7230 | fi | |
7231 | ||
7232 | else | |
7233 | ||
7234 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
7235 | if test "x$LINE" != x ; then | |
7236 | eval "DEFAULT_$LINE" | |
7237 | else | |
7238 | no_cache=1 | |
7239 | fi | |
7240 | ||
7241 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
7242 | ||
7243 | fi | |
7244 | ||
7245 | ||
7246 | eval "$ac_cv_use_metafile" | |
7247 | if test "$no_cache" != 1; then | |
7248 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
7249 | fi | |
7250 | ||
7251 | if test "$wxUSE_METAFILE" = yes; then | |
7252 | echo "$ac_t""yes" 1>&6 | |
7253 | else | |
7254 | echo "$ac_t""no" 1>&6 | |
7255 | fi | |
7256 | ||
7257 | ||
24fd6d87 | 7258 | echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6 |
29fd3c0c | 7259 | echo "configure:7260: checking for --enable-dragimage" >&5 |
24fd6d87 VZ |
7260 | no_cache=0 |
7261 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
7262 | if test "${enable_dragimage+set}" = set; then | |
7263 | enableval="$enable_dragimage" | |
7264 | ||
7265 | if test "$enableval" = yes; then | |
7266 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
7267 | else | |
7268 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
7269 | fi | |
7270 | ||
7271 | else | |
7272 | ||
7273 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` | |
7274 | if test "x$LINE" != x ; then | |
7275 | eval "DEFAULT_$LINE" | |
7276 | else | |
7277 | no_cache=1 | |
7278 | fi | |
7279 | ||
7280 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
7281 | ||
7282 | fi | |
7283 | ||
7284 | ||
7285 | eval "$ac_cv_use_dragimage" | |
7286 | if test "$no_cache" != 1; then | |
7287 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
7288 | fi | |
7289 | ||
7290 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
7291 | echo "$ac_t""yes" 1>&6 | |
7292 | else | |
7293 | echo "$ac_t""no" 1>&6 | |
7294 | fi | |
7295 | ||
7296 | ||
10f2d63a | 7297 | |
698dcdb6 VZ |
7298 | |
7299 | echo $ac_n "checking for --enable-image""... $ac_c" 1>&6 | |
29fd3c0c | 7300 | echo "configure:7301: checking for --enable-image" >&5 |
0046ff7c VS |
7301 | no_cache=0 |
7302 | # Check whether --enable-image or --disable-image was given. | |
7303 | if test "${enable_image+set}" = set; then | |
7304 | enableval="$enable_image" | |
698dcdb6 | 7305 | |
0046ff7c VS |
7306 | if test "$enableval" = yes; then |
7307 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
7308 | else | |
7309 | ac_cv_use_image='wxUSE_IMAGE=no' | |
7310 | fi | |
698dcdb6 | 7311 | |
0046ff7c | 7312 | else |
698dcdb6 | 7313 | |
0046ff7c VS |
7314 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` |
7315 | if test "x$LINE" != x ; then | |
7316 | eval "DEFAULT_$LINE" | |
7317 | else | |
7318 | no_cache=1 | |
7319 | fi | |
7320 | ||
7321 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
698dcdb6 VZ |
7322 | |
7323 | fi | |
0046ff7c VS |
7324 | |
7325 | ||
7326 | eval "$ac_cv_use_image" | |
7327 | if test "$no_cache" != 1; then | |
7328 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
7329 | fi | |
7330 | ||
7331 | if test "$wxUSE_IMAGE" = yes; then | |
698dcdb6 | 7332 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 7333 | else |
698dcdb6 | 7334 | echo "$ac_t""no" 1>&6 |
0046ff7c | 7335 | fi |
698dcdb6 | 7336 | |
0046ff7c | 7337 | |
698dcdb6 | 7338 | echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6 |
29fd3c0c | 7339 | echo "configure:7340: checking for --enable-gif" >&5 |
10f2d63a VZ |
7340 | no_cache=0 |
7341 | # Check whether --enable-gif or --disable-gif was given. | |
7342 | if test "${enable_gif+set}" = set; then | |
7343 | enableval="$enable_gif" | |
698dcdb6 | 7344 | |
10f2d63a VZ |
7345 | if test "$enableval" = yes; then |
7346 | ac_cv_use_gif='wxUSE_GIF=yes' | |
7347 | else | |
7348 | ac_cv_use_gif='wxUSE_GIF=no' | |
7349 | fi | |
698dcdb6 | 7350 | |
10f2d63a | 7351 | else |
698dcdb6 | 7352 | |
10f2d63a VZ |
7353 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` |
7354 | if test "x$LINE" != x ; then | |
7355 | eval "DEFAULT_$LINE" | |
7356 | else | |
7357 | no_cache=1 | |
7358 | fi | |
7359 | ||
7360 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
698dcdb6 VZ |
7361 | |
7362 | fi | |
10f2d63a VZ |
7363 | |
7364 | ||
7365 | eval "$ac_cv_use_gif" | |
7366 | if test "$no_cache" != 1; then | |
7367 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
7368 | fi | |
7369 | ||
7370 | if test "$wxUSE_GIF" = yes; then | |
698dcdb6 | 7371 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7372 | else |
698dcdb6 | 7373 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7374 | fi |
698dcdb6 | 7375 | |
10f2d63a | 7376 | |
698dcdb6 | 7377 | echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6 |
29fd3c0c | 7378 | echo "configure:7379: checking for --enable-pcx" >&5 |
10f2d63a VZ |
7379 | no_cache=0 |
7380 | # Check whether --enable-pcx or --disable-pcx was given. | |
7381 | if test "${enable_pcx+set}" = set; then | |
7382 | enableval="$enable_pcx" | |
698dcdb6 | 7383 | |
10f2d63a VZ |
7384 | if test "$enableval" = yes; then |
7385 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
7386 | else | |
7387 | ac_cv_use_pcx='wxUSE_PCX=no' | |
7388 | fi | |
698dcdb6 | 7389 | |
10f2d63a | 7390 | else |
698dcdb6 | 7391 | |
10f2d63a VZ |
7392 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` |
7393 | if test "x$LINE" != x ; then | |
7394 | eval "DEFAULT_$LINE" | |
7395 | else | |
7396 | no_cache=1 | |
7397 | fi | |
7398 | ||
7399 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
698dcdb6 VZ |
7400 | |
7401 | fi | |
10f2d63a VZ |
7402 | |
7403 | ||
7404 | eval "$ac_cv_use_pcx" | |
7405 | if test "$no_cache" != 1; then | |
7406 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
7407 | fi | |
7408 | ||
7409 | if test "$wxUSE_PCX" = yes; then | |
698dcdb6 | 7410 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7411 | else |
698dcdb6 | 7412 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7413 | fi |
698dcdb6 | 7414 | |
10f2d63a | 7415 | |
698dcdb6 | 7416 | echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6 |
29fd3c0c | 7417 | echo "configure:7418: checking for --enable-pnm" >&5 |
10f2d63a VZ |
7418 | no_cache=0 |
7419 | # Check whether --enable-pnm or --disable-pnm was given. | |
7420 | if test "${enable_pnm+set}" = set; then | |
7421 | enableval="$enable_pnm" | |
698dcdb6 | 7422 | |
10f2d63a VZ |
7423 | if test "$enableval" = yes; then |
7424 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
7425 | else | |
7426 | ac_cv_use_pnm='wxUSE_PNM=no' | |
7427 | fi | |
698dcdb6 | 7428 | |
10f2d63a | 7429 | else |
698dcdb6 | 7430 | |
10f2d63a VZ |
7431 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` |
7432 | if test "x$LINE" != x ; then | |
7433 | eval "DEFAULT_$LINE" | |
7434 | else | |
7435 | no_cache=1 | |
7436 | fi | |
7437 | ||
7438 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
698dcdb6 VZ |
7439 | |
7440 | fi | |
10f2d63a VZ |
7441 | |
7442 | ||
7443 | eval "$ac_cv_use_pnm" | |
7444 | if test "$no_cache" != 1; then | |
7445 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
7446 | fi | |
7447 | ||
7448 | if test "$wxUSE_PNM" = yes; then | |
698dcdb6 | 7449 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7450 | else |
698dcdb6 | 7451 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7452 | fi |
698dcdb6 | 7453 | |
10f2d63a | 7454 | |
698dcdb6 | 7455 | echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6 |
29fd3c0c | 7456 | echo "configure:7457: checking for --enable-pnm" >&5 |
0046ff7c VS |
7457 | no_cache=0 |
7458 | # Check whether --enable-pnm or --disable-pnm was given. | |
7459 | if test "${enable_pnm+set}" = set; then | |
7460 | enableval="$enable_pnm" | |
698dcdb6 | 7461 | |
0046ff7c VS |
7462 | if test "$enableval" = yes; then |
7463 | ac_cv_use_pnm='wxUSE_XPM=yes' | |
7464 | else | |
7465 | ac_cv_use_pnm='wxUSE_XPM=no' | |
7466 | fi | |
698dcdb6 | 7467 | |
0046ff7c | 7468 | else |
698dcdb6 | 7469 | |
0046ff7c VS |
7470 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` |
7471 | if test "x$LINE" != x ; then | |
7472 | eval "DEFAULT_$LINE" | |
7473 | else | |
7474 | no_cache=1 | |
7475 | fi | |
7476 | ||
7477 | ac_cv_use_pnm='wxUSE_XPM='$DEFAULT_wxUSE_XPM | |
698dcdb6 VZ |
7478 | |
7479 | fi | |
0046ff7c VS |
7480 | |
7481 | ||
7482 | eval "$ac_cv_use_pnm" | |
7483 | if test "$no_cache" != 1; then | |
7484 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
7485 | fi | |
7486 | ||
7487 | if test "$wxUSE_XPM" = yes; then | |
698dcdb6 | 7488 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 7489 | else |
698dcdb6 | 7490 | echo "$ac_t""no" 1>&6 |
0046ff7c | 7491 | fi |
698dcdb6 | 7492 | |
0046ff7c | 7493 | |
b12915c1 VZ |
7494 | fi |
7495 | ||
698dcdb6 | 7496 | |
10f2d63a VZ |
7497 | echo "saving argument cache $wx_arg_cache_file" |
7498 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
698dcdb6 | 7499 | |
10f2d63a | 7500 | |
698dcdb6 VZ |
7501 | |
7502 | echo $ac_n "checking for toolkit""... $ac_c" 1>&6 | |
29fd3c0c | 7503 | echo "configure:7504: checking for toolkit" >&5 |
10f2d63a VZ |
7504 | |
7505 | if test "$wxUSE_GUI" = "yes"; then | |
7506 | ||
b12915c1 | 7507 | if test "$USE_BEOS" = 1; then |
698dcdb6 | 7508 | { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; } |
b12915c1 VZ |
7509 | fi |
7510 | ||
10f2d63a VZ |
7511 | if test "$TOOLKIT_GIVEN" = 1; then |
7512 | for toolkit in `echo $ALL_TOOLKITS`; do | |
7513 | var=wxUSE_$toolkit | |
7514 | eval "value=\$${var}" | |
7515 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
7516 | done | |
7517 | else | |
7518 | for toolkit in `echo $ALL_TOOLKITS`; do | |
7519 | if test "$has_toolkit_in_cache" != 1; then | |
7520 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
7521 | else | |
7522 | var=DEFAULT_wxUSE_$toolkit | |
7523 | fi | |
7524 | eval "wxUSE_$toolkit=\$${var}" | |
7525 | done | |
7526 | fi | |
7527 | ||
1e6feb95 | 7528 | 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 | 7529 | |
ec14dd32 VZ |
7530 | case "${host}" in |
7531 | *-pc-os2_emx ) | |
7532 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
7533 | # PATH_IFS is autodetected by OS/2's configure (usually ';') | |
7534 | LEX_STEM="lexyy" | |
7535 | ;; | |
7536 | *) | |
7537 | PATH_IFS=':' | |
7538 | LEX_STEM="lex.yy" | |
7539 | ;; | |
7540 | esac | |
10f2d63a VZ |
7541 | |
7542 | case "$NUM_TOOLKITS" in | |
7543 | 1) | |
7544 | ;; | |
7545 | 0) | |
698dcdb6 | 7546 | { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; } |
10f2d63a VZ |
7547 | ;; |
7548 | *) | |
698dcdb6 | 7549 | { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; } |
10f2d63a VZ |
7550 | esac |
7551 | ||
7552 | for toolkit in `echo $ALL_TOOLKITS`; do | |
7553 | var=wxUSE_$toolkit | |
7554 | eval "value=\$${var}" | |
7555 | if test "x$value" != x; then | |
7556 | cache_var=CACHE_$toolkit | |
7557 | eval "cache=\$${cache_var}" | |
7558 | if test "$cache" = 1; then | |
7559 | echo "$var=$value" >> ${wx_arg_cache_file} | |
7560 | fi | |
7561 | if test "$value" = 1; then | |
8168de4c VZ |
7562 | toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]` |
7563 | echo "$ac_t""$toolkit_echo" 1>&6 | |
10f2d63a VZ |
7564 | fi |
7565 | fi | |
7566 | done | |
7567 | ||
7568 | else | |
cf27ef00 | 7569 | PATH_IFS=':' |
698dcdb6 | 7570 | echo "$ac_t""base only" 1>&6 |
10f2d63a VZ |
7571 | fi |
7572 | ||
698dcdb6 VZ |
7573 | |
7574 | cat > confcache <<\EOF | |
10f2d63a VZ |
7575 | # This file is a shell script that caches the results of configure |
7576 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
7577 | # scripts and configure runs. It is not useful on other systems. |
7578 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 7579 | # |
698dcdb6 VZ |
7580 | # By default, configure uses ./config.cache as the cache file, |
7581 | # creating it if it does not exist already. You can give configure | |
7582 | # the --cache-file=FILE option to use a different cache file; that is | |
7583 | # what configure does when it calls configure scripts in | |
7584 | # subdirectories, so they share the cache. | |
7585 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
7586 | # config.status only pays attention to the cache file if you give it the | |
7587 | # --recheck option to rerun configure. | |
10f2d63a | 7588 | # |
698dcdb6 | 7589 | EOF |
10f2d63a VZ |
7590 | # The following way of writing the cache mishandles newlines in values, |
7591 | # but we know of no workaround that is simple, portable, and efficient. | |
7592 | # So, don't put newlines in cache variables' values. | |
7593 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
7594 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
7595 | (set) 2>&1 | |
7596 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
7597 | *ac_space=\ *) | |
7598 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
7599 | # turns \\\\ into \\, and sed turns \\ into \). | |
7600 | sed -n \ | |
7601 | -e "s/'/'\\\\''/g" \ | |
7602 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
7603 | ;; | |
7604 | *) | |
7605 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7606 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
7607 | ;; | |
7608 | esac >> confcache | |
7609 | if cmp -s $cache_file confcache; then | |
7610 | : | |
7611 | else | |
10f2d63a | 7612 | if test -w $cache_file; then |
698dcdb6 VZ |
7613 | echo "updating cache $cache_file" |
7614 | cat confcache > $cache_file | |
10f2d63a VZ |
7615 | else |
7616 | echo "not updating unwritable cache $cache_file" | |
7617 | fi | |
7618 | fi | |
7619 | rm -f confcache | |
7620 | ||
698dcdb6 | 7621 | |
e59890c3 | 7622 | if test "$build" != "$host" ; then |
10f2d63a VZ |
7623 | CC=$host_alias-gcc |
7624 | CXX=$host_alias-c++ | |
7625 | AR=$host_alias-ar | |
7626 | RANLIB=$host_alias-ranlib | |
7627 | DLLTOOL=$host_alias-dlltool | |
32832908 | 7628 | RESCOMP=$host_alias-windres |
10f2d63a VZ |
7629 | LD=$host_alias-ld |
7630 | NM=$host_alias-nm | |
7631 | STRIP=$host_alias-strip | |
10f2d63a VZ |
7632 | fi |
7633 | ||
698dcdb6 | 7634 | # Extract the first word of "gcc", so it can be a program name with args. |
1e487827 | 7635 | set dummy gcc; ac_word=$2 |
698dcdb6 | 7636 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
29fd3c0c | 7637 | echo "configure:7638: checking for $ac_word" >&5 |
698dcdb6 VZ |
7638 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
7639 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6232543b VS |
7640 | else |
7641 | if test -n "$CC"; then | |
7642 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10f2d63a | 7643 | else |
698dcdb6 VZ |
7644 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
7645 | ac_dummy="$PATH" | |
7646 | for ac_dir in $ac_dummy; do | |
7647 | test -z "$ac_dir" && ac_dir=. | |
7648 | if test -f $ac_dir/$ac_word; then | |
7649 | ac_cv_prog_CC="gcc" | |
7650 | break | |
7651 | fi | |
7652 | done | |
7653 | IFS="$ac_save_ifs" | |
10f2d63a | 7654 | fi |
6232543b | 7655 | fi |
698dcdb6 | 7656 | CC="$ac_cv_prog_CC" |
6232543b | 7657 | if test -n "$CC"; then |
698dcdb6 | 7658 | echo "$ac_t""$CC" 1>&6 |
1e487827 | 7659 | else |
698dcdb6 | 7660 | echo "$ac_t""no" 1>&6 |
1e487827 | 7661 | fi |
6232543b | 7662 | |
1e487827 VS |
7663 | if test -z "$CC"; then |
7664 | # Extract the first word of "cc", so it can be a program name with args. | |
7665 | set dummy cc; ac_word=$2 | |
698dcdb6 | 7666 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
29fd3c0c | 7667 | echo "configure:7668: checking for $ac_word" >&5 |
698dcdb6 VZ |
7668 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
7669 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 VS |
7670 | else |
7671 | if test -n "$CC"; then | |
7672 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
7673 | else | |
698dcdb6 | 7674 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1e487827 | 7675 | ac_prog_rejected=no |
698dcdb6 VZ |
7676 | ac_dummy="$PATH" |
7677 | for ac_dir in $ac_dummy; do | |
7678 | test -z "$ac_dir" && ac_dir=. | |
7679 | if test -f $ac_dir/$ac_word; then | |
7680 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
7681 | ac_prog_rejected=yes | |
7682 | continue | |
7683 | fi | |
7684 | ac_cv_prog_CC="cc" | |
7685 | break | |
7686 | fi | |
7687 | done | |
7688 | IFS="$ac_save_ifs" | |
1e487827 VS |
7689 | if test $ac_prog_rejected = yes; then |
7690 | # We found a bogon in the path, so make sure we never use it. | |
7691 | set dummy $ac_cv_prog_CC | |
7692 | shift | |
698dcdb6 | 7693 | if test $# -gt 0; then |
1e487827 VS |
7694 | # We chose a different compiler from the bogus one. |
7695 | # However, it has the same basename, so the bogon will be chosen | |
7696 | # first if we set CC to just the basename; use the full file name. | |
7697 | shift | |
698dcdb6 | 7698 | set dummy "$ac_dir/$ac_word" "$@" |
1e487827 VS |
7699 | shift |
7700 | ac_cv_prog_CC="$@" | |
703e0a69 | 7701 | fi |
1e487827 VS |
7702 | fi |
7703 | fi | |
7704 | fi | |
698dcdb6 | 7705 | CC="$ac_cv_prog_CC" |
1e487827 | 7706 | if test -n "$CC"; then |
698dcdb6 | 7707 | echo "$ac_t""$CC" 1>&6 |
703e0a69 | 7708 | else |
698dcdb6 | 7709 | echo "$ac_t""no" 1>&6 |
703e0a69 | 7710 | fi |
1e487827 | 7711 | |
698dcdb6 VZ |
7712 | if test -z "$CC"; then |
7713 | case "`uname -s`" in | |
7714 | *win32* | *WIN32*) | |
7715 | # Extract the first word of "cl", so it can be a program name with args. | |
7716 | set dummy cl; ac_word=$2 | |
7717 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
29fd3c0c | 7718 | echo "configure:7719: checking for $ac_word" >&5 |
698dcdb6 VZ |
7719 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
7720 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 VS |
7721 | else |
7722 | if test -n "$CC"; then | |
7723 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
703e0a69 | 7724 | else |
698dcdb6 VZ |
7725 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
7726 | ac_dummy="$PATH" | |
7727 | for ac_dir in $ac_dummy; do | |
7728 | test -z "$ac_dir" && ac_dir=. | |
7729 | if test -f $ac_dir/$ac_word; then | |
7730 | ac_cv_prog_CC="cl" | |
7731 | break | |
7732 | fi | |
7733 | done | |
7734 | IFS="$ac_save_ifs" | |
703e0a69 | 7735 | fi |
1e487827 | 7736 | fi |
698dcdb6 | 7737 | CC="$ac_cv_prog_CC" |
1e487827 | 7738 | if test -n "$CC"; then |
698dcdb6 | 7739 | echo "$ac_t""$CC" 1>&6 |
1e487827 | 7740 | else |
698dcdb6 | 7741 | echo "$ac_t""no" 1>&6 |
1e487827 | 7742 | fi |
698dcdb6 VZ |
7743 | ;; |
7744 | esac | |
7745 | fi | |
7746 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
1e487827 VS |
7747 | fi |
7748 | ||
698dcdb6 | 7749 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
29fd3c0c | 7750 | echo "configure:7751: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
1e487827 | 7751 | |
698dcdb6 VZ |
7752 | ac_ext=c |
7753 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
7754 | ac_cpp='$CPP $CPPFLAGS' | |
7755 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
7756 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7757 | cross_compiling=$ac_cv_prog_cc_cross | |
6232543b | 7758 | |
698dcdb6 | 7759 | cat > conftest.$ac_ext << EOF |
1e487827 | 7760 | |
29fd3c0c | 7761 | #line 7762 "configure" |
1e487827 VS |
7762 | #include "confdefs.h" |
7763 | ||
698dcdb6 VZ |
7764 | main(){return(0);} |
7765 | EOF | |
29fd3c0c | 7766 | if { (eval echo configure:7767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
7767 | ac_cv_prog_cc_works=yes |
7768 | # If we can't run a trivial program, we are probably using a cross compiler. | |
7769 | if (./conftest; exit) 2>/dev/null; then | |
7770 | ac_cv_prog_cc_cross=no | |
7771 | else | |
7772 | ac_cv_prog_cc_cross=yes | |
7773 | fi | |
7774 | else | |
7775 | echo "configure: failed program was:" >&5 | |
7776 | cat conftest.$ac_ext >&5 | |
7777 | ac_cv_prog_cc_works=no | |
7778 | fi | |
7779 | rm -fr conftest* | |
7780 | ac_ext=c | |
7781 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
7782 | ac_cpp='$CPP $CPPFLAGS' | |
7783 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
7784 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7785 | cross_compiling=$ac_cv_prog_cc_cross | |
7786 | ||
7787 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
7788 | if test $ac_cv_prog_cc_works = no; then | |
7789 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
7790 | fi | |
7791 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
29fd3c0c | 7792 | echo "configure:7793: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
698dcdb6 VZ |
7793 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
7794 | cross_compiling=$ac_cv_prog_cc_cross | |
7795 | ||
7796 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
29fd3c0c | 7797 | echo "configure:7798: checking whether we are using GNU C" >&5 |
698dcdb6 VZ |
7798 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
7799 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7800 | else | |
7801 | cat > conftest.c <<EOF | |
7802 | #ifdef __GNUC__ | |
7803 | yes; | |
1e487827 | 7804 | #endif |
698dcdb6 | 7805 | EOF |
29fd3c0c | 7806 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:7807: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
698dcdb6 VZ |
7807 | ac_cv_prog_gcc=yes |
7808 | else | |
7809 | ac_cv_prog_gcc=no | |
7810 | fi | |
7811 | fi | |
1e487827 | 7812 | |
698dcdb6 | 7813 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
1e487827 | 7814 | |
698dcdb6 VZ |
7815 | if test $ac_cv_prog_gcc = yes; then |
7816 | GCC=yes | |
7817 | else | |
7818 | GCC= | |
7819 | fi | |
1e487827 | 7820 | |
698dcdb6 VZ |
7821 | ac_test_CFLAGS="${CFLAGS+set}" |
7822 | ac_save_CFLAGS="$CFLAGS" | |
7823 | CFLAGS= | |
7824 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
29fd3c0c | 7825 | echo "configure:7826: checking whether ${CC-cc} accepts -g" >&5 |
698dcdb6 VZ |
7826 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
7827 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7828 | else | |
7829 | echo 'void f(){}' > conftest.c | |
7830 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
10f2d63a VZ |
7831 | ac_cv_prog_cc_g=yes |
7832 | else | |
698dcdb6 | 7833 | ac_cv_prog_cc_g=no |
10f2d63a | 7834 | fi |
698dcdb6 VZ |
7835 | rm -f conftest* |
7836 | ||
10f2d63a | 7837 | fi |
698dcdb6 VZ |
7838 | |
7839 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
10f2d63a | 7840 | if test "$ac_test_CFLAGS" = set; then |
698dcdb6 | 7841 | CFLAGS="$ac_save_CFLAGS" |
10f2d63a VZ |
7842 | elif test $ac_cv_prog_cc_g = yes; then |
7843 | if test "$GCC" = yes; then | |
7844 | CFLAGS="-g -O2" | |
7845 | else | |
7846 | CFLAGS="-g" | |
7847 | fi | |
7848 | else | |
7849 | if test "$GCC" = yes; then | |
7850 | CFLAGS="-O2" | |
7851 | else | |
7852 | CFLAGS= | |
7853 | fi | |
7854 | fi | |
7855 | ||
7856 | ||
7857 | CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'` | |
7858 | ||
698dcdb6 | 7859 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
29fd3c0c | 7860 | echo "configure:7861: checking how to run the C preprocessor" >&5 |
10f2d63a VZ |
7861 | # On Suns, sometimes $CPP names a directory. |
7862 | if test -n "$CPP" && test -d "$CPP"; then | |
7863 | CPP= | |
7864 | fi | |
7865 | if test -z "$CPP"; then | |
698dcdb6 VZ |
7866 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
7867 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7868 | else | |
7869 | # This must be in double quotes, not single quotes, because CPP may get | |
7870 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
7871 | CPP="${CC-cc} -E" | |
10f2d63a | 7872 | # On the NeXT, cc -E runs the code through the compiler's parser, |
698dcdb6 VZ |
7873 | # not just through cpp. |
7874 | cat > conftest.$ac_ext <<EOF | |
29fd3c0c | 7875 | #line 7876 "configure" |
10f2d63a VZ |
7876 | #include "confdefs.h" |
7877 | #include <assert.h> | |
698dcdb6 VZ |
7878 | Syntax Error |
7879 | EOF | |
7880 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
29fd3c0c | 7881 | { (eval echo configure:7882: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
7882 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7883 | if test -z "$ac_err"; then | |
10f2d63a VZ |
7884 | : |
7885 | else | |
698dcdb6 VZ |
7886 | echo "$ac_err" >&5 |
7887 | echo "configure: failed program was:" >&5 | |
10f2d63a | 7888 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
7889 | rm -rf conftest* |
7890 | CPP="${CC-cc} -E -traditional-cpp" | |
7891 | cat > conftest.$ac_ext <<EOF | |
29fd3c0c | 7892 | #line 7893 "configure" |
10f2d63a | 7893 | #include "confdefs.h" |
698dcdb6 VZ |
7894 | #include <assert.h> |
7895 | Syntax Error | |
7896 | EOF | |
7897 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
29fd3c0c | 7898 | { (eval echo configure:7899: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
7899 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7900 | if test -z "$ac_err"; then | |
7901 | : | |
10f2d63a | 7902 | else |
698dcdb6 VZ |
7903 | echo "$ac_err" >&5 |
7904 | echo "configure: failed program was:" >&5 | |
10f2d63a | 7905 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
7906 | rm -rf conftest* |
7907 | CPP="${CC-cc} -nologo -E" | |
7908 | cat > conftest.$ac_ext <<EOF | |
29fd3c0c | 7909 | #line 7910 "configure" |
10f2d63a VZ |
7910 | #include "confdefs.h" |
7911 | #include <assert.h> | |
698dcdb6 VZ |
7912 | Syntax Error |
7913 | EOF | |
7914 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
29fd3c0c | 7915 | { (eval echo configure:7916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
7916 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7917 | if test -z "$ac_err"; then | |
10f2d63a VZ |
7918 | : |
7919 | else | |
698dcdb6 VZ |
7920 | echo "$ac_err" >&5 |
7921 | echo "configure: failed program was:" >&5 | |
10f2d63a | 7922 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
7923 | rm -rf conftest* |
7924 | CPP=/lib/cpp | |
10f2d63a | 7925 | fi |
698dcdb6 | 7926 | rm -f conftest* |
10f2d63a | 7927 | fi |
698dcdb6 | 7928 | rm -f conftest* |
703e0a69 | 7929 | fi |
698dcdb6 VZ |
7930 | rm -f conftest* |
7931 | ac_cv_prog_CPP="$CPP" | |
7932 | fi | |
7933 | CPP="$ac_cv_prog_CPP" | |
10f2d63a | 7934 | else |
698dcdb6 | 7935 | ac_cv_prog_CPP="$CPP" |
10f2d63a | 7936 | fi |
698dcdb6 | 7937 | echo "$ac_t""$CPP" 1>&6 |
10f2d63a VZ |
7938 | |
7939 | ||
698dcdb6 VZ |
7940 | if test $ac_cv_prog_gcc = yes; then |
7941 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
29fd3c0c | 7942 | echo "configure:7943: checking whether ${CC-cc} needs -traditional" >&5 |
698dcdb6 VZ |
7943 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
7944 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
7945 | else |
7946 | ac_pattern="Autoconf.*'x'" | |
698dcdb6 | 7947 | cat > conftest.$ac_ext <<EOF |
29fd3c0c | 7948 | #line 7949 "configure" |
10f2d63a VZ |
7949 | #include "confdefs.h" |
7950 | #include <sgtty.h> | |
7951 | Autoconf TIOCGETP | |
698dcdb6 | 7952 | EOF |
10f2d63a VZ |
7953 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
7954 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
698dcdb6 | 7955 | rm -rf conftest* |
10f2d63a VZ |
7956 | ac_cv_prog_gcc_traditional=yes |
7957 | else | |
698dcdb6 | 7958 | rm -rf conftest* |
10f2d63a VZ |
7959 | ac_cv_prog_gcc_traditional=no |
7960 | fi | |
7961 | rm -f conftest* | |
7962 | ||
698dcdb6 | 7963 | |
10f2d63a | 7964 | if test $ac_cv_prog_gcc_traditional = no; then |
698dcdb6 | 7965 | cat > conftest.$ac_ext <<EOF |
29fd3c0c | 7966 | #line 7967 "configure" |
10f2d63a VZ |
7967 | #include "confdefs.h" |
7968 | #include <termio.h> | |
7969 | Autoconf TCGETA | |
698dcdb6 | 7970 | EOF |
10f2d63a VZ |
7971 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
7972 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
698dcdb6 | 7973 | rm -rf conftest* |
10f2d63a VZ |
7974 | ac_cv_prog_gcc_traditional=yes |
7975 | fi | |
7976 | rm -f conftest* | |
7977 | ||
7978 | fi | |
7979 | fi | |
698dcdb6 VZ |
7980 | |
7981 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
10f2d63a VZ |
7982 | if test $ac_cv_prog_gcc_traditional = yes; then |
7983 | CC="$CC -traditional" | |
7984 | fi | |
7985 | fi | |
7986 | ||
703e0a69 | 7987 | |
698dcdb6 VZ |
7988 | |
7989 | ac_ext=C | |
7990 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 7991 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
7992 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
7993 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7994 | cross_compiling=$ac_cv_prog_cxx_cross | |
7995 | ||
7996 | ||
7997 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | |
7998 | do | |
7999 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
8000 | set dummy $ac_prog; ac_word=$2 | |
8001 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
29fd3c0c | 8002 | echo "configure:8003: checking for $ac_word" >&5 |
698dcdb6 VZ |
8003 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
8004 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8005 | else |
8006 | if test -n "$CXX"; then | |
8007 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
8008 | else | |
698dcdb6 VZ |
8009 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8010 | ac_dummy="$PATH" | |
8011 | for ac_dir in $ac_dummy; do | |
8012 | test -z "$ac_dir" && ac_dir=. | |
8013 | if test -f $ac_dir/$ac_word; then | |
8014 | ac_cv_prog_CXX="$ac_prog" | |
8015 | break | |
8016 | fi | |
8017 | done | |
8018 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8019 | fi |
8020 | fi | |
698dcdb6 | 8021 | CXX="$ac_cv_prog_CXX" |
10f2d63a | 8022 | if test -n "$CXX"; then |
698dcdb6 | 8023 | echo "$ac_t""$CXX" 1>&6 |
10f2d63a | 8024 | else |
698dcdb6 | 8025 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8026 | fi |
8027 | ||
698dcdb6 | 8028 | test -n "$CXX" && break |
10f2d63a | 8029 | done |
698dcdb6 | 8030 | test -n "$CXX" || CXX="gcc" |
10f2d63a VZ |
8031 | |
8032 | ||
698dcdb6 | 8033 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
29fd3c0c | 8034 | echo "configure:8035: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
10f2d63a | 8035 | |
698dcdb6 VZ |
8036 | ac_ext=C |
8037 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8038 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8039 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8040 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8041 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 8042 | |
698dcdb6 VZ |
8043 | cat > conftest.$ac_ext << EOF |
8044 | ||
29fd3c0c | 8045 | #line 8046 "configure" |
10f2d63a VZ |
8046 | #include "confdefs.h" |
8047 | ||
698dcdb6 VZ |
8048 | int main(){return(0);} |
8049 | EOF | |
29fd3c0c | 8050 | if { (eval echo configure:8051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
8051 | ac_cv_prog_cxx_works=yes |
8052 | # If we can't run a trivial program, we are probably using a cross compiler. | |
8053 | if (./conftest; exit) 2>/dev/null; then | |
8054 | ac_cv_prog_cxx_cross=no | |
8055 | else | |
8056 | ac_cv_prog_cxx_cross=yes | |
8057 | fi | |
8058 | else | |
8059 | echo "configure: failed program was:" >&5 | |
8060 | cat conftest.$ac_ext >&5 | |
8061 | ac_cv_prog_cxx_works=no | |
8062 | fi | |
8063 | rm -fr conftest* | |
8064 | ac_ext=C | |
8065 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8066 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8067 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8068 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8069 | cross_compiling=$ac_cv_prog_cxx_cross | |
8070 | ||
8071 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 | |
8072 | if test $ac_cv_prog_cxx_works = no; then | |
8073 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
8074 | fi | |
8075 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
29fd3c0c | 8076 | echo "configure:8077: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
698dcdb6 VZ |
8077 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
8078 | cross_compiling=$ac_cv_prog_cxx_cross | |
8079 | ||
8080 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 | |
29fd3c0c | 8081 | echo "configure:8082: checking whether we are using GNU C++" >&5 |
698dcdb6 VZ |
8082 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
8083 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8084 | else | |
8085 | cat > conftest.C <<EOF | |
8086 | #ifdef __GNUC__ | |
8087 | yes; | |
10f2d63a | 8088 | #endif |
698dcdb6 | 8089 | EOF |
29fd3c0c | 8090 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:8091: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
698dcdb6 VZ |
8091 | ac_cv_prog_gxx=yes |
8092 | else | |
8093 | ac_cv_prog_gxx=no | |
8094 | fi | |
8095 | fi | |
10f2d63a | 8096 | |
698dcdb6 | 8097 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
10f2d63a | 8098 | |
698dcdb6 VZ |
8099 | if test $ac_cv_prog_gxx = yes; then |
8100 | GXX=yes | |
8101 | else | |
8102 | GXX= | |
8103 | fi | |
10f2d63a | 8104 | |
698dcdb6 VZ |
8105 | ac_test_CXXFLAGS="${CXXFLAGS+set}" |
8106 | ac_save_CXXFLAGS="$CXXFLAGS" | |
8107 | CXXFLAGS= | |
8108 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
29fd3c0c | 8109 | echo "configure:8110: checking whether ${CXX-g++} accepts -g" >&5 |
698dcdb6 VZ |
8110 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
8111 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8112 | else | |
8113 | echo 'void f(){}' > conftest.cc | |
8114 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
10f2d63a VZ |
8115 | ac_cv_prog_cxx_g=yes |
8116 | else | |
698dcdb6 | 8117 | ac_cv_prog_cxx_g=no |
10f2d63a | 8118 | fi |
698dcdb6 VZ |
8119 | rm -f conftest* |
8120 | ||
10f2d63a | 8121 | fi |
698dcdb6 VZ |
8122 | |
8123 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
10f2d63a | 8124 | if test "$ac_test_CXXFLAGS" = set; then |
698dcdb6 | 8125 | CXXFLAGS="$ac_save_CXXFLAGS" |
10f2d63a VZ |
8126 | elif test $ac_cv_prog_cxx_g = yes; then |
8127 | if test "$GXX" = yes; then | |
8128 | CXXFLAGS="-g -O2" | |
8129 | else | |
8130 | CXXFLAGS="-g" | |
8131 | fi | |
8132 | else | |
8133 | if test "$GXX" = yes; then | |
8134 | CXXFLAGS="-O2" | |
8135 | else | |
8136 | CXXFLAGS= | |
8137 | fi | |
8138 | fi | |
8139 | ||
8140 | ||
698dcdb6 | 8141 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 |
29fd3c0c | 8142 | echo "configure:8143: checking how to run the C++ preprocessor" >&5 |
1e487827 | 8143 | if test -z "$CXXCPP"; then |
698dcdb6 VZ |
8144 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then |
8145 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 8146 | else |
698dcdb6 VZ |
8147 | ac_ext=C |
8148 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8149 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8150 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8151 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8152 | cross_compiling=$ac_cv_prog_cxx_cross | |
8153 | CXXCPP="${CXX-g++} -E" | |
8154 | cat > conftest.$ac_ext <<EOF | |
29fd3c0c | 8155 | #line 8156 "configure" |
1e487827 | 8156 | #include "confdefs.h" |
698dcdb6 VZ |
8157 | #include <stdlib.h> |
8158 | EOF | |
8159 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
29fd3c0c | 8160 | { (eval echo configure:8161: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8161 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8162 | if test -z "$ac_err"; then | |
1e487827 VS |
8163 | : |
8164 | else | |
698dcdb6 VZ |
8165 | echo "$ac_err" >&5 |
8166 | echo "configure: failed program was:" >&5 | |
1e487827 | 8167 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8168 | rm -rf conftest* |
8169 | CXXCPP=/lib/cpp | |
1e487827 | 8170 | fi |
698dcdb6 VZ |
8171 | rm -f conftest* |
8172 | ac_cv_prog_CXXCPP="$CXXCPP" | |
8173 | ac_ext=C | |
8174 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8175 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8176 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8177 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8178 | cross_compiling=$ac_cv_prog_cxx_cross | |
1e487827 | 8179 | fi |
1e487827 | 8180 | fi |
698dcdb6 VZ |
8181 | CXXCPP="$ac_cv_prog_CXXCPP" |
8182 | echo "$ac_t""$CXXCPP" 1>&6 | |
1e487827 | 8183 | |
10f2d63a VZ |
8184 | |
8185 | CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'` | |
8186 | ||
8187 | ac_ext=c | |
698dcdb6 | 8188 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 8189 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
8190 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
8191 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8192 | cross_compiling=$ac_cv_prog_cc_cross | |
8193 | ||
8194 | ||
8195 | # Extract the first word of "ranlib", so it can be a program name with args. | |
8196 | set dummy ranlib; ac_word=$2 | |
8197 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
29fd3c0c | 8198 | echo "configure:8199: checking for $ac_word" >&5 |
698dcdb6 VZ |
8199 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
8200 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8201 | else |
8202 | if test -n "$RANLIB"; then | |
8203 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8204 | else | |
698dcdb6 VZ |
8205 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8206 | ac_dummy="$PATH" | |
8207 | for ac_dir in $ac_dummy; do | |
8208 | test -z "$ac_dir" && ac_dir=. | |
8209 | if test -f $ac_dir/$ac_word; then | |
8210 | ac_cv_prog_RANLIB="ranlib" | |
8211 | break | |
8212 | fi | |
8213 | done | |
8214 | IFS="$ac_save_ifs" | |
8215 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
10f2d63a VZ |
8216 | fi |
8217 | fi | |
698dcdb6 | 8218 | RANLIB="$ac_cv_prog_RANLIB" |
10f2d63a | 8219 | if test -n "$RANLIB"; then |
698dcdb6 | 8220 | echo "$ac_t""$RANLIB" 1>&6 |
10f2d63a | 8221 | else |
698dcdb6 | 8222 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8223 | fi |
8224 | ||
8225 | ||
8226 | # Extract the first word of "ar", so it can be a program name with args. | |
8227 | set dummy ar; ac_word=$2 | |
698dcdb6 | 8228 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
29fd3c0c | 8229 | echo "configure:8230: checking for $ac_word" >&5 |
698dcdb6 VZ |
8230 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
8231 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8232 | else |
8233 | if test -n "$AR"; then | |
8234 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8235 | else | |
698dcdb6 VZ |
8236 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8237 | ac_dummy="$PATH" | |
8238 | for ac_dir in $ac_dummy; do | |
8239 | test -z "$ac_dir" && ac_dir=. | |
8240 | if test -f $ac_dir/$ac_word; then | |
8241 | ac_cv_prog_AR="ar" | |
8242 | break | |
8243 | fi | |
8244 | done | |
8245 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8246 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
8247 | fi | |
8248 | fi | |
698dcdb6 | 8249 | AR="$ac_cv_prog_AR" |
10f2d63a | 8250 | if test -n "$AR"; then |
698dcdb6 | 8251 | echo "$ac_t""$AR" 1>&6 |
10f2d63a | 8252 | else |
698dcdb6 | 8253 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8254 | fi |
8255 | ||
698dcdb6 | 8256 | |
10f2d63a VZ |
8257 | # Find a good install program. We prefer a C program (faster), |
8258 | # so one script is as good as another. But avoid the broken or | |
8259 | # incompatible versions: | |
8260 | # SysV /etc/install, /usr/sbin/install | |
8261 | # SunOS /usr/etc/install | |
8262 | # IRIX /sbin/install | |
8263 | # AIX /bin/install | |
8264 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
8265 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
8266 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
8267 | # ./install, which can be erroneously created by make from ./install.sh. | |
698dcdb6 | 8268 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
29fd3c0c | 8269 | echo "configure:8270: checking for a BSD compatible install" >&5 |
10f2d63a | 8270 | if test -z "$INSTALL"; then |
698dcdb6 VZ |
8271 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
8272 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 8273 | else |
698dcdb6 | 8274 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
10f2d63a VZ |
8275 | for ac_dir in $PATH; do |
8276 | # Account for people who put trailing slashes in PATH elements. | |
698dcdb6 VZ |
8277 | case "$ac_dir/" in |
8278 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
10f2d63a VZ |
8279 | *) |
8280 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
8281 | # Don't use installbsd from OSF since it installs stuff as root | |
8282 | # by default. | |
8283 | for ac_prog in ginstall scoinst install; do | |
698dcdb6 | 8284 | if test -f $ac_dir/$ac_prog; then |
10f2d63a | 8285 | if test $ac_prog = install && |
698dcdb6 | 8286 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
10f2d63a VZ |
8287 | # AIX install. It has an incompatible calling convention. |
8288 | : | |
8289 | else | |
8290 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
8291 | break 2 | |
8292 | fi | |
8293 | fi | |
8294 | done | |
8295 | ;; | |
8296 | esac | |
8297 | done | |
698dcdb6 | 8298 | IFS="$ac_save_IFS" |
10f2d63a VZ |
8299 | |
8300 | fi | |
8301 | if test "${ac_cv_path_install+set}" = set; then | |
698dcdb6 | 8302 | INSTALL="$ac_cv_path_install" |
10f2d63a VZ |
8303 | else |
8304 | # As a last resort, use the slow shell script. We don't cache a | |
8305 | # path for INSTALL within a source directory, because that will | |
8306 | # break other packages using the cache if that directory is | |
8307 | # removed, or if the path is relative. | |
698dcdb6 | 8308 | INSTALL="$ac_install_sh" |
10f2d63a VZ |
8309 | fi |
8310 | fi | |
698dcdb6 | 8311 | echo "$ac_t""$INSTALL" 1>&6 |
10f2d63a VZ |
8312 | |
8313 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
8314 | # It thinks the first close brace ends the variable substitution. | |
8315 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
8316 | ||
698dcdb6 | 8317 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
10f2d63a VZ |
8318 | |
8319 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
8320 | ||
698dcdb6 | 8321 | |
10f2d63a VZ |
8322 | # Extract the first word of "strip", so it can be a program name with args. |
8323 | set dummy strip; ac_word=$2 | |
698dcdb6 | 8324 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
29fd3c0c | 8325 | echo "configure:8326: checking for $ac_word" >&5 |
698dcdb6 VZ |
8326 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
8327 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8328 | else |
8329 | if test -n "$STRIP"; then | |
8330 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
8331 | else | |
698dcdb6 VZ |
8332 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8333 | ac_dummy="$PATH" | |
8334 | for ac_dir in $ac_dummy; do | |
8335 | test -z "$ac_dir" && ac_dir=. | |
8336 | if test -f $ac_dir/$ac_word; then | |
8337 | ac_cv_prog_STRIP="strip" | |
8338 | break | |
8339 | fi | |
8340 | done | |
8341 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8342 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
8343 | fi | |
8344 | fi | |
698dcdb6 | 8345 | STRIP="$ac_cv_prog_STRIP" |
10f2d63a | 8346 | if test -n "$STRIP"; then |
698dcdb6 | 8347 | echo "$ac_t""$STRIP" 1>&6 |
10f2d63a | 8348 | else |
698dcdb6 | 8349 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8350 | fi |
8351 | ||
698dcdb6 VZ |
8352 | |
8353 | echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6 | |
29fd3c0c | 8354 | echo "configure:8355: checking make for VPATH support" >&5 |
10f2d63a VZ |
8355 | cat - << EOF > confMake |
8356 | check : file | |
8357 | cp \$? \$@ | |
8358 | cp \$? final_file | |
8359 | EOF | |
8360 | ||
8361 | if test ! -d sub ; then | |
8362 | mkdir sub | |
8363 | fi | |
8364 | echo dummy > sub/file | |
f6bcfd97 | 8365 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null |
10f2d63a VZ |
8366 | RESULT=$? |
8367 | rm -f sub/file check final_file confMake | |
8368 | rmdir sub | |
8369 | if test "$RESULT" = 0; then | |
698dcdb6 | 8370 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8371 | else |
698dcdb6 VZ |
8372 | echo "$ac_t""no" 1>&6 |
8373 | { echo "configure: error: | |
1e487827 VS |
8374 | You need a make-utility that is able to use the variable |
8375 | VPATH correctly. | |
8376 | If your version of make does not support VPATH correctly, | |
8377 | please install GNU-make (possibly as gmake), and start | |
8378 | configure with the following command: | |
8379 | export MAKE=gmake; ./configure for sh-type shells | |
8380 | setenv MAKE gmake; ./configure for csh-type shells | |
8381 | Also please do remember to use gmake in this case every time | |
8382 | you are trying to compile. | |
698dcdb6 | 8383 | " 1>&2; exit 1; } |
10f2d63a VZ |
8384 | fi |
8385 | ||
8386 | for ac_prog in 'bison -y' byacc | |
8387 | do | |
698dcdb6 | 8388 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
10f2d63a | 8389 | set dummy $ac_prog; ac_word=$2 |
698dcdb6 | 8390 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
29fd3c0c | 8391 | echo "configure:8392: checking for $ac_word" >&5 |
698dcdb6 VZ |
8392 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
8393 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8394 | else |
8395 | if test -n "$YACC"; then | |
8396 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
8397 | else | |
698dcdb6 VZ |
8398 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8399 | ac_dummy="$PATH" | |
8400 | for ac_dir in $ac_dummy; do | |
8401 | test -z "$ac_dir" && ac_dir=. | |
8402 | if test -f $ac_dir/$ac_word; then | |
8403 | ac_cv_prog_YACC="$ac_prog" | |
8404 | break | |
8405 | fi | |
8406 | done | |
8407 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8408 | fi |
8409 | fi | |
698dcdb6 | 8410 | YACC="$ac_cv_prog_YACC" |
10f2d63a | 8411 | if test -n "$YACC"; then |
698dcdb6 | 8412 | echo "$ac_t""$YACC" 1>&6 |
10f2d63a | 8413 | else |
698dcdb6 | 8414 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8415 | fi |
8416 | ||
698dcdb6 | 8417 | test -n "$YACC" && break |
10f2d63a VZ |
8418 | done |
8419 | test -n "$YACC" || YACC="yacc" | |
8420 | ||
698dcdb6 VZ |
8421 | |
8422 | # Extract the first word of "flex", so it can be a program name with args. | |
8423 | set dummy flex; ac_word=$2 | |
8424 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
29fd3c0c | 8425 | echo "configure:8426: checking for $ac_word" >&5 |
698dcdb6 VZ |
8426 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
8427 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8428 | else |
8429 | if test -n "$LEX"; then | |
8430 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
8431 | else | |
698dcdb6 VZ |
8432 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8433 | ac_dummy="$PATH" | |
8434 | for ac_dir in $ac_dummy; do | |
8435 | test -z "$ac_dir" && ac_dir=. | |
8436 | if test -f $ac_dir/$ac_word; then | |
8437 | ac_cv_prog_LEX="flex" | |
8438 | break | |
8439 | fi | |
8440 | done | |
8441 | IFS="$ac_save_ifs" | |
8442 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
10f2d63a VZ |
8443 | fi |
8444 | fi | |
698dcdb6 | 8445 | LEX="$ac_cv_prog_LEX" |
10f2d63a | 8446 | if test -n "$LEX"; then |
698dcdb6 | 8447 | echo "$ac_t""$LEX" 1>&6 |
10f2d63a | 8448 | else |
698dcdb6 | 8449 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8450 | fi |
8451 | ||
8452 | if test -z "$LEXLIB" | |
8453 | then | |
698dcdb6 VZ |
8454 | case "$LEX" in |
8455 | flex*) ac_lib=fl ;; | |
8456 | *) ac_lib=l ;; | |
8457 | esac | |
8458 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
29fd3c0c | 8459 | echo "configure:8460: checking for yywrap in -l$ac_lib" >&5 |
698dcdb6 VZ |
8460 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
8461 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
8462 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8463 | else | |
8464 | ac_save_LIBS="$LIBS" | |
8465 | LIBS="-l$ac_lib $LIBS" | |
8466 | cat > conftest.$ac_ext <<EOF | |
29fd3c0c | 8467 | #line 8468 "configure" |
10f2d63a VZ |
8468 | #include "confdefs.h" |
8469 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8470 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
8471 | builtin and then its argument prototype would still apply. */ |
8472 | char yywrap(); | |
10f2d63a | 8473 | |
698dcdb6 VZ |
8474 | int main() { |
8475 | yywrap() | |
8476 | ; return 0; } | |
8477 | EOF | |
29fd3c0c | 8478 | if { (eval echo configure:8479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
8479 | rm -rf conftest* |
8480 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 8481 | else |
698dcdb6 VZ |
8482 | echo "configure: failed program was:" >&5 |
8483 | cat conftest.$ac_ext >&5 | |
8484 | rm -rf conftest* | |
8485 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 8486 | fi |
698dcdb6 VZ |
8487 | rm -f conftest* |
8488 | LIBS="$ac_save_LIBS" | |
8489 | ||
10f2d63a | 8490 | fi |
698dcdb6 VZ |
8491 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
8492 | echo "$ac_t""yes" 1>&6 | |
8493 | LEXLIB="-l$ac_lib" | |
8494 | else | |
8495 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
8496 | fi |
8497 | ||
8498 | fi | |
8499 | ||
8500 | ||
698dcdb6 | 8501 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
29fd3c0c | 8502 | echo "configure:8503: checking whether ln -s works" >&5 |
698dcdb6 VZ |
8503 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
8504 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 8505 | else |
698dcdb6 VZ |
8506 | rm -f conftestdata |
8507 | if ln -s X conftestdata 2>/dev/null | |
8508 | then | |
8509 | rm -f conftestdata | |
8510 | ac_cv_prog_LN_S="ln -s" | |
10f2d63a | 8511 | else |
698dcdb6 | 8512 | ac_cv_prog_LN_S=ln |
10f2d63a VZ |
8513 | fi |
8514 | fi | |
698dcdb6 VZ |
8515 | LN_S="$ac_cv_prog_LN_S" |
8516 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
8517 | echo "$ac_t""yes" 1>&6 | |
10f2d63a | 8518 | else |
698dcdb6 | 8519 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8520 | fi |
8521 | ||
8522 | ||
8523 | ||
8524 | SEARCH_INCLUDE="\ | |
8525 | /usr/local/include \ | |
8526 | \ | |
8527 | /usr/Motif-1.2/include \ | |
8528 | /usr/Motif-2.1/include \ | |
8529 | \ | |
8530 | /usr/include/Motif1.2 \ | |
8531 | /opt/xpm/include/X11 \ | |
8532 | /opt/GBxpm/include/ \ | |
8533 | /opt/GBxpm/X11/include/ \ | |
8534 | \ | |
8535 | /usr/Motif1.2/include \ | |
8536 | /usr/dt/include \ | |
afc31813 VZ |
8537 | /usr/openwin/include \ |
8538 | \ | |
10f2d63a VZ |
8539 | /usr/include/Xm \ |
8540 | \ | |
8541 | /usr/X11R6/include \ | |
afc31813 | 8542 | /usr/X11R6.4/include \ |
10f2d63a VZ |
8543 | /usr/X11R5/include \ |
8544 | /usr/X11R4/include \ | |
8545 | \ | |
10f2d63a VZ |
8546 | /usr/include/X11R6 \ |
8547 | /usr/include/X11R5 \ | |
8548 | /usr/include/X11R4 \ | |
8549 | \ | |
8550 | /usr/local/X11R6/include \ | |
8551 | /usr/local/X11R5/include \ | |
8552 | /usr/local/X11R4/include \ | |
8553 | \ | |
8554 | /usr/local/include/X11R6 \ | |
8555 | /usr/local/include/X11R5 \ | |
8556 | /usr/local/include/X11R4 \ | |
8557 | \ | |
8558 | /usr/X11/include \ | |
8559 | /usr/include/X11 \ | |
8560 | /usr/local/X11/include \ | |
8561 | /usr/local/include/X11 \ | |
8562 | \ | |
8563 | /usr/X386/include \ | |
8564 | /usr/x386/include \ | |
8565 | /usr/XFree86/include/X11 \ | |
8566 | \ | |
cf27ef00 | 8567 | X:/XFree86/include \ |
ec14dd32 VZ |
8568 | X:/XFree86/include/X11 \ |
8569 | \ | |
10f2d63a VZ |
8570 | /usr/include/gtk \ |
8571 | /usr/local/include/gtk \ | |
8572 | /usr/include/glib \ | |
8573 | /usr/local/include/glib \ | |
8574 | \ | |
8575 | /usr/include/qt \ | |
8576 | /usr/local/include/qt \ | |
8577 | \ | |
8578 | /usr/include/windows \ | |
8579 | /usr/include/wine \ | |
8580 | /usr/local/include/wine \ | |
8581 | \ | |
8582 | /usr/unsupported/include \ | |
8583 | /usr/athena/include \ | |
8584 | /usr/local/x11r5/include \ | |
8585 | /usr/lpp/Xamples/include \ | |
8586 | \ | |
10f2d63a | 8587 | /usr/openwin/share/include \ |
928b5c08 VZ |
8588 | \ |
8589 | /usr/include" | |
10f2d63a VZ |
8590 | |
8591 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
8592 | ||
698dcdb6 VZ |
8593 | |
8594 | cat > confcache <<\EOF | |
10f2d63a VZ |
8595 | # This file is a shell script that caches the results of configure |
8596 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
8597 | # scripts and configure runs. It is not useful on other systems. |
8598 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 8599 | # |
698dcdb6 VZ |
8600 | # By default, configure uses ./config.cache as the cache file, |
8601 | # creating it if it does not exist already. You can give configure | |
8602 | # the --cache-file=FILE option to use a different cache file; that is | |
8603 | # what configure does when it calls configure scripts in | |
8604 | # subdirectories, so they share the cache. | |
8605 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
8606 | # config.status only pays attention to the cache file if you give it the | |
8607 | # --recheck option to rerun configure. | |
10f2d63a | 8608 | # |
698dcdb6 | 8609 | EOF |
10f2d63a VZ |
8610 | # The following way of writing the cache mishandles newlines in values, |
8611 | # but we know of no workaround that is simple, portable, and efficient. | |
8612 | # So, don't put newlines in cache variables' values. | |
8613 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
8614 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
8615 | (set) 2>&1 | |
8616 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
8617 | *ac_space=\ *) | |
8618 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
8619 | # turns \\\\ into \\, and sed turns \\ into \). | |
8620 | sed -n \ | |
8621 | -e "s/'/'\\\\''/g" \ | |
8622 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
8623 | ;; | |
8624 | *) | |
8625 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
8626 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
8627 | ;; | |
8628 | esac >> confcache | |
8629 | if cmp -s $cache_file confcache; then | |
8630 | : | |
8631 | else | |
10f2d63a | 8632 | if test -w $cache_file; then |
698dcdb6 VZ |
8633 | echo "updating cache $cache_file" |
8634 | cat confcache > $cache_file | |
10f2d63a VZ |
8635 | else |
8636 | echo "not updating unwritable cache $cache_file" | |
8637 | fi | |
8638 | fi | |
8639 | rm -f confcache | |
8640 | ||
698dcdb6 VZ |
8641 | |
8642 | ||
dad6c0ea VZ |
8643 | AFMINSTALL= |
8644 | ||
10f2d63a | 8645 | if test "$wxUSE_GUI" = "yes"; then |
1e6feb95 | 8646 | USE_GUI=1 |
10f2d63a | 8647 | |
1e6feb95 VZ |
8648 | TOOLKIT= |
8649 | TOOLKIT_INCLUDE= | |
10f2d63a | 8650 | |
1e6feb95 VZ |
8651 | GUI_TK_LIBRARY= |
8652 | GUI_TK_LINK= | |
10f2d63a | 8653 | |
1e6feb95 VZ |
8654 | WXGTK12= |
8655 | WXGTK127= | |
8656 | WXGTK20= | |
10f2d63a | 8657 | |
1e6feb95 | 8658 | WXWINE= |
10f2d63a | 8659 | |
1e6feb95 | 8660 | if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then |
29fd3c0c VS |
8661 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` |
8662 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
8663 | echo "configure:8664: checking for windows.h" >&5 | |
d4158b5d VS |
8664 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8665 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8666 | else | |
8667 | cat > conftest.$ac_ext <<EOF | |
29fd3c0c | 8668 | #line 8669 "configure" |
d4158b5d | 8669 | #include "confdefs.h" |
29fd3c0c | 8670 | #include <windows.h> |
d4158b5d VS |
8671 | EOF |
8672 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
29fd3c0c | 8673 | { (eval echo configure:8674: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
d4158b5d VS |
8674 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8675 | if test -z "$ac_err"; then | |
8676 | rm -rf conftest* | |
8677 | eval "ac_cv_header_$ac_safe=yes" | |
8678 | else | |
8679 | echo "$ac_err" >&5 | |
8680 | echo "configure: failed program was:" >&5 | |
8681 | cat conftest.$ac_ext >&5 | |
8682 | rm -rf conftest* | |
8683 | eval "ac_cv_header_$ac_safe=no" | |
8684 | fi | |
8685 | rm -f conftest* | |
8686 | fi | |
8687 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8688 | echo "$ac_t""yes" 1>&6 | |
29fd3c0c | 8689 | : |
d4158b5d VS |
8690 | else |
8691 | echo "$ac_t""no" 1>&6 | |
d4158b5d | 8692 | |
29fd3c0c VS |
8693 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } |
8694 | ||
8695 | fi | |
10f2d63a | 8696 | |
29fd3c0c | 8697 | |
1e6feb95 VZ |
8698 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw" |
8699 | LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32" | |
f6bcfd97 | 8700 | |
1e6feb95 VZ |
8701 | if test "$wxUSE_ODBC" = "yes" ; then |
8702 | LIBS="$LIBS -lodbc32 -lole32 -loleaut32" | |
8703 | fi | |
10f2d63a | 8704 | |
1e6feb95 VZ |
8705 | if test "$wxUSE_MINGW" = 1; then |
8706 | LDFLAGS="$LDFLAGS -mwindows" | |
8707 | fi | |
32832908 | 8708 | |
1e6feb95 VZ |
8709 | TOOLKIT=MSW |
8710 | GUIDIST=MSW_DIST | |
32832908 | 8711 | |
1e6feb95 VZ |
8712 | RCINCSWITCH="--include-dir" |
8713 | RCDEFSWITCH="--define" | |
8714 | RCPREPROCESSOR="--preprocessor \"\$(CC) -c -E -xc-header -DRC_INVOKED\"" | |
8715 | RCINPUTSWITCH="-i" | |
8716 | RCOUTPUTSWITCH="-o" | |
8717 | RESFLAGS="$RCPREPROCESSOR $RCINCSWITCH \$(top_srcdir)/include $RCINCSWITCH \$(top_srcdir)/\$(program_dir) $RCDEFSWITCH __WIN32__ $RCDEFSWITCH __WIN95__ $RCDEFSWITCH __GNUWIN32__" | |
32832908 | 8718 | |
1e6feb95 VZ |
8719 | RESPROGRAM="\$(RES_PROGRAM)" |
8720 | fi | |
10f2d63a | 8721 | |
1e6feb95 | 8722 | if test "$wxUSE_GTK" = 1; then |
8168de4c | 8723 | echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6 |
29fd3c0c | 8724 | echo "configure:8725: checking for GTK+ version" >&5 |
8168de4c VZ |
8725 | |
8726 | gtk_version_cached=1 | |
8727 | if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then | |
8728 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8729 | else | |
8730 | ||
8731 | gtk_version_cached=0 | |
8732 | echo "$ac_t""""" 1>&6 | |
8733 | ||
8734 | wx_cv_lib_gtk= | |
8735 | if test "x$wxUSE_GTK2" = "xyes"; then | |
8736 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
6f72b082 OK |
8737 | if test "${with_gtk_prefix+set}" = set; then |
8738 | withval="$with_gtk_prefix" | |
8739 | gtk_config_prefix="$withval" | |
8740 | else | |
8741 | gtk_config_prefix="" | |
698dcdb6 | 8742 | fi |
6f72b082 OK |
8743 | |
8744 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
8745 | if test "${with_gtk_exec_prefix+set}" = set; then | |
8746 | withval="$with_gtk_exec_prefix" | |
8747 | gtk_config_exec_prefix="$withval" | |
8748 | else | |
8749 | gtk_config_exec_prefix="" | |
698dcdb6 VZ |
8750 | fi |
8751 | ||
6f72b082 OK |
8752 | # Check whether --enable-gtktest or --disable-gtktest was given. |
8753 | if test "${enable_gtktest+set}" = set; then | |
8754 | enableval="$enable_gtktest" | |
698dcdb6 | 8755 | : |
6f72b082 OK |
8756 | else |
8757 | enable_gtktest=yes | |
698dcdb6 VZ |
8758 | fi |
8759 | ||
6f72b082 | 8760 | |
8168de4c | 8761 | for module in . |
6f72b082 OK |
8762 | do |
8763 | case "$module" in | |
8168de4c | 8764 | gthread) |
6f72b082 OK |
8765 | gtk_config_args="$gtk_config_args gthread" |
8766 | ;; | |
8767 | esac | |
8768 | done | |
8769 | ||
8770 | if test x$gtk_config_exec_prefix != x ; then | |
8771 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
8772 | if test x${GTK_CONFIG_2_0+set} != xset ; then | |
8773 | GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0 | |
8774 | fi | |
8775 | fi | |
8776 | if test x$gtk_config_prefix != x ; then | |
8777 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
8778 | if test x${GTK_CONFIG_2_0+set} != xset ; then | |
8779 | GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0 | |
8780 | fi | |
8781 | fi | |
8782 | ||
8783 | # Extract the first word of "gtk-config-2.0", so it can be a program name with args. | |
8784 | set dummy gtk-config-2.0; ac_word=$2 | |
698dcdb6 | 8785 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
29fd3c0c | 8786 | echo "configure:8787: checking for $ac_word" >&5 |
698dcdb6 VZ |
8787 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then |
8788 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6f72b082 | 8789 | else |
698dcdb6 VZ |
8790 | case "$GTK_CONFIG_2_0" in |
8791 | /*) | |
6f72b082 OK |
8792 | ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path. |
8793 | ;; | |
698dcdb6 VZ |
8794 | ?:/*) |
8795 | ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path. | |
8796 | ;; | |
6f72b082 | 8797 | *) |
698dcdb6 VZ |
8798 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8799 | ac_dummy="$PATH" | |
8800 | for ac_dir in $ac_dummy; do | |
8801 | test -z "$ac_dir" && ac_dir=. | |
8802 | if test -f $ac_dir/$ac_word; then | |
8803 | ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word" | |
8804 | break | |
8805 | fi | |
8806 | done | |
8807 | IFS="$ac_save_ifs" | |
6f72b082 OK |
8808 | test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no" |
8809 | ;; | |
8810 | esac | |
8811 | fi | |
698dcdb6 | 8812 | GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0" |
6f72b082 | 8813 | if test -n "$GTK_CONFIG_2_0"; then |
698dcdb6 | 8814 | echo "$ac_t""$GTK_CONFIG_2_0" 1>&6 |
6f72b082 | 8815 | else |
698dcdb6 | 8816 | echo "$ac_t""no" 1>&6 |
6f72b082 OK |
8817 | fi |
8818 | ||
8819 | min_gtk_version=1.3.1 | |
698dcdb6 | 8820 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
29fd3c0c | 8821 | echo "configure:8822: checking for GTK - version >= $min_gtk_version" >&5 |
6f72b082 OK |
8822 | no_gtk="" |
8823 | if test "$GTK_CONFIG_2_0" = "no" ; then | |
8824 | no_gtk=yes | |
8825 | else | |
8826 | GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags` | |
8827 | GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs` | |
8828 | gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
8829 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
8830 | gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
8831 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
8832 | gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
8833 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
8834 | if test "x$enable_gtktest" = "xyes" ; then | |
8835 | ac_save_CFLAGS="$CFLAGS" | |
8836 | ac_save_LIBS="$LIBS" | |
8837 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
8838 | LIBS="$GTK_LIBS $LIBS" | |
8839 | rm -f conf.gtktest | |
8840 | if test "$cross_compiling" = yes; then | |
8841 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
8842 | else | |
698dcdb6 | 8843 | cat > conftest.$ac_ext <<EOF |
29fd3c0c | 8844 | #line 8845 "configure" |
6f72b082 OK |
8845 | #include "confdefs.h" |
8846 | ||
8847 | #include <gtk/gtk.h> | |
8848 | #include <stdio.h> | |
8849 | #include <stdlib.h> | |
8850 | ||
8168de4c | 8851 | int |
6f72b082 OK |
8852 | main () |
8853 | { | |
8854 | int major, minor, micro; | |
8855 | char *tmp_version; | |
8856 | ||
8857 | system ("touch conf.gtktest"); | |
8858 | ||
8859 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
8860 | tmp_version = g_strdup("$min_gtk_version"); | |
8861 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
8862 | printf("%s, bad version string\n", "$min_gtk_version"); | |
8863 | exit(1); | |
8864 | } | |
8865 | ||
8866 | if ((gtk_major_version != $gtk_config_major_version) || | |
8867 | (gtk_minor_version != $gtk_config_minor_version) || | |
8868 | (gtk_micro_version != $gtk_config_micro_version)) | |
8869 | { | |
8168de4c | 8870 | printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
6f72b082 OK |
8871 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
8872 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
8873 | printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n"); | |
8874 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
8875 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
8876 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
8877 | printf("*** required on your system.\n"); | |
8878 | printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n"); | |
8879 | printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n"); | |
8880 | printf("*** before re-running configure\n"); | |
8168de4c | 8881 | } |
6f72b082 OK |
8882 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
8883 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
8168de4c | 8884 | (gtk_minor_version != GTK_MINOR_VERSION) || |
6f72b082 OK |
8885 | (gtk_micro_version != GTK_MICRO_VERSION)) |
8886 | { | |
8887 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
8168de4c | 8888 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); |
6f72b082 | 8889 | printf("*** library (version %d.%d.%d)\n", |
8168de4c | 8890 | gtk_major_version, gtk_minor_version, gtk_micro_version); |
6f72b082 OK |
8891 | } |
8892 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
8893 | else | |
8894 | { | |
8895 | if ((gtk_major_version > major) || | |
8896 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
8897 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
8898 | { | |
8899 | return 0; | |
8900 | } | |
8901 | else | |
8902 | { | |
8903 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
8904 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
8905 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
8168de4c | 8906 | major, minor, micro); |
6f72b082 OK |
8907 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); |
8908 | printf("***\n"); | |
8909 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
8910 | printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n"); | |
8911 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
8912 | printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n"); | |
8913 | printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n"); | |
8914 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
8915 | printf("*** so that the correct libraries are found at run-time))\n"); | |
8916 | } | |
8917 | } | |
8918 | return 1; | |
8919 | } | |
8920 | ||
698dcdb6 | 8921 | EOF |
29fd3c0c | 8922 | if { (eval echo configure:8923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 8923 | then |
6f72b082 OK |
8924 | : |
8925 | else | |
698dcdb6 VZ |
8926 | echo "configure: failed program was:" >&5 |
8927 | cat conftest.$ac_ext >&5 | |
8928 | rm -fr conftest* | |
8929 | no_gtk=yes | |
6f72b082 | 8930 | fi |
698dcdb6 | 8931 | rm -fr conftest* |
6f72b082 | 8932 | fi |
698dcdb6 | 8933 | |
6f72b082 OK |
8934 | CFLAGS="$ac_save_CFLAGS" |
8935 | LIBS="$ac_save_LIBS" | |
8936 | fi | |
8937 | fi | |
8938 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 8939 | echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6 |
8168de4c | 8940 | wx_cv_lib_gtk=2.0 |
6f72b082 | 8941 | else |
698dcdb6 | 8942 | echo "$ac_t""no" 1>&6 |
6f72b082 OK |
8943 | if test "$GTK_CONFIG_2_0" = "no" ; then |
8944 | echo "*** The gtk-config-2.0 script installed by GTK could not be found" | |
8945 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
8946 | echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the" | |
8947 | echo "*** full path to gtk-config-2.0." | |
8948 | else | |
8949 | if test -f conf.gtktest ; then | |
8950 | : | |
8951 | else | |
8952 | echo "*** Could not run GTK test program, checking why..." | |
8953 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
8954 | LIBS="$LIBS $GTK_LIBS" | |
698dcdb6 | 8955 | cat > conftest.$ac_ext <<EOF |
29fd3c0c | 8956 | #line 8957 "configure" |
6f72b082 OK |
8957 | #include "confdefs.h" |
8958 | ||
8959 | #include <gtk/gtk.h> | |
8960 | #include <stdio.h> | |
8961 | ||
698dcdb6 VZ |
8962 | int main() { |
8963 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
8964 | ; return 0; } | |
8965 | EOF | |
29fd3c0c | 8966 | if { (eval echo configure:8967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 8967 | rm -rf conftest* |
6f72b082 OK |
8968 | echo "*** The test program compiled, but did not run. This usually means" |
8969 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
8970 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
8971 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
8972 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
8973 | echo "*** is required on your system" | |
8168de4c | 8974 | echo "***" |
6f72b082 OK |
8975 | echo "*** If you have an old version installed, it is best to remove it, although" |
8976 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
8977 | echo "***" | |
8978 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
8979 | echo "*** came with the system with the command" | |
8980 | echo "***" | |
698dcdb6 | 8981 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
6f72b082 | 8982 | else |
698dcdb6 VZ |
8983 | echo "configure: failed program was:" >&5 |
8984 | cat conftest.$ac_ext >&5 | |
8985 | rm -rf conftest* | |
8986 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
6f72b082 OK |
8987 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
8988 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
698dcdb6 | 8989 | echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0" |
6f72b082 | 8990 | fi |
698dcdb6 | 8991 | rm -f conftest* |
6f72b082 OK |
8992 | CFLAGS="$ac_save_CFLAGS" |
8993 | LIBS="$ac_save_LIBS" | |
8994 | fi | |
8995 | fi | |
8996 | GTK_CFLAGS="" | |
8997 | GTK_LIBS="" | |
8168de4c VZ |
8998 | gthread |
8999 | fi | |
9000 | ||
9001 | ||
9002 | rm -f conf.gtktest | |
9003 | ||
9004 | fi | |
9005 | ||
9006 | if test -z "$wx_cv_lib_gtk"; then | |
9007 | ||
10f2d63a VZ |
9008 | if test x$gtk_config_exec_prefix != x ; then |
9009 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
9010 | if test x${GTK_CONFIG+set} != xset ; then | |
9011 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
9012 | fi | |
9013 | fi | |
9014 | if test x$gtk_config_prefix != x ; then | |
9015 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
9016 | if test x${GTK_CONFIG+set} != xset ; then | |
9017 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
9018 | fi | |
9019 | fi | |
9020 | ||
9021 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
9022 | set dummy gtk-config; ac_word=$2 | |
698dcdb6 | 9023 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
29fd3c0c | 9024 | echo "configure:9025: checking for $ac_word" >&5 |
698dcdb6 VZ |
9025 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
9026 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 9027 | else |
698dcdb6 VZ |
9028 | case "$GTK_CONFIG" in |
9029 | /*) | |
f6bcfd97 BP |
9030 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
9031 | ;; | |
698dcdb6 VZ |
9032 | ?:/*) |
9033 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
9034 | ;; | |
f6bcfd97 | 9035 | *) |
698dcdb6 VZ |
9036 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9037 | ac_dummy="$PATH" | |
9038 | for ac_dir in $ac_dummy; do | |
9039 | test -z "$ac_dir" && ac_dir=. | |
9040 | if test -f $ac_dir/$ac_word; then | |
9041 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
9042 | break | |
9043 | fi | |
9044 | done | |
9045 | IFS="$ac_save_ifs" | |
f6bcfd97 BP |
9046 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
9047 | ;; | |
9048 | esac | |
9049 | fi | |
698dcdb6 | 9050 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
f6bcfd97 | 9051 | if test -n "$GTK_CONFIG"; then |
698dcdb6 | 9052 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
f6bcfd97 | 9053 | else |
698dcdb6 | 9054 | echo "$ac_t""no" 1>&6 |
f6bcfd97 BP |
9055 | fi |
9056 | ||
9057 | min_gtk_version=1.2.7 | |
698dcdb6 | 9058 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
29fd3c0c | 9059 | echo "configure:9060: checking for GTK - version >= $min_gtk_version" >&5 |
f6bcfd97 BP |
9060 | no_gtk="" |
9061 | if test "$GTK_CONFIG" != "no" ; then | |
9062 | GTK_CFLAGS=`$GTK_CONFIG --cflags` | |
9063 | GTK_LIBS=`$GTK_CONFIG --libs gthread` | |
9064 | ac_save_CFLAGS="$CFLAGS" | |
9065 | ac_save_LIBS="$LIBS" | |
9066 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
9067 | LIBS="$LIBS $GTK_LIBS" | |
9068 | if test "$cross_compiling" = yes; then | |
9069 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
9070 | else | |
698dcdb6 | 9071 | cat > conftest.$ac_ext <<EOF |
29fd3c0c | 9072 | #line 9073 "configure" |
f6bcfd97 BP |
9073 | #include "confdefs.h" |
9074 | ||
9075 | #include <gtk/gtk.h> | |
9076 | #include <gtk/gtkfeatures.h> | |
9077 | #include <stdio.h> | |
9078 | #include <stdlib.h> | |
9079 | ||
9080 | int | |
9081 | main () | |
9082 | { | |
9083 | int major, minor, micro; | |
9084 | ||
9085 | if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) { | |
9086 | printf("%s, bad version string\n", "$min_gtk_version"); | |
9087 | exit(1); | |
9088 | } | |
9089 | ||
9090 | if ((GTK_MAJOR_VERSION != gtk_major_version) || | |
9091 | (GTK_MINOR_VERSION != gtk_minor_version) || | |
9092 | (GTK_MICRO_VERSION != gtk_micro_version)) { | |
9093 | printf("Headers vs. library version mismatch!\n"); | |
9094 | exit(1); | |
9095 | } | |
9096 | ||
9097 | if (gtk_minor_version == 1) return FALSE; | |
9098 | ||
9099 | return !((gtk_major_version > major) || | |
9100 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
9101 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))); | |
9102 | } | |
9103 | ||
698dcdb6 | 9104 | EOF |
29fd3c0c | 9105 | if { (eval echo configure:9106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 9106 | then |
f6bcfd97 BP |
9107 | : |
9108 | else | |
698dcdb6 VZ |
9109 | echo "configure: failed program was:" >&5 |
9110 | cat conftest.$ac_ext >&5 | |
9111 | rm -fr conftest* | |
9112 | no_gtk=yes | |
f6bcfd97 | 9113 | fi |
698dcdb6 | 9114 | rm -fr conftest* |
f6bcfd97 | 9115 | fi |
698dcdb6 | 9116 | |
f6bcfd97 BP |
9117 | CFLAGS="$ac_save_CFLAGS" |
9118 | LIBS="$ac_save_LIBS" | |
9119 | else | |
9120 | no_gtk=yes | |
9121 | fi | |
9122 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 9123 | echo "$ac_t""yes" 1>&6 |
8168de4c | 9124 | wx_cv_lib_gtk=1.2.7 |
f6bcfd97 | 9125 | else |
698dcdb6 | 9126 | echo "$ac_t""no" 1>&6 |
f6bcfd97 BP |
9127 | GTK_CFLAGS="" |
9128 | GTK_LIBS="" | |
9129 | : | |
9130 | fi | |
698dcdb6 VZ |
9131 | |
9132 | ||
f6bcfd97 | 9133 | |
8168de4c VZ |
9134 | fi |
9135 | ||
9136 | if test -z "$wx_cv_lib_gtk"; then | |
9137 | ||
f6bcfd97 BP |
9138 | if test x$gtk_config_exec_prefix != x ; then |
9139 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
9140 | if test x${GTK_CONFIG+set} != xset ; then | |
9141 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
9142 | fi | |
9143 | fi | |
9144 | if test x$gtk_config_prefix != x ; then | |
9145 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
9146 | if test x${GTK_CONFIG+set} != xset ; then | |
9147 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
9148 | fi | |
9149 | fi | |
9150 | ||
9151 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
9152 | set dummy gtk-config; ac_word=$2 | |
698dcdb6 | 9153 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
29fd3c0c | 9154 | echo "configure:9155: checking for $ac_word" >&5 |
698dcdb6 VZ |
9155 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
9156 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 9157 | else |
698dcdb6 VZ |
9158 | case "$GTK_CONFIG" in |
9159 | /*) | |
10f2d63a VZ |
9160 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
9161 | ;; | |
698dcdb6 VZ |
9162 | ?:/*) |
9163 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
9164 | ;; | |
10f2d63a | 9165 | *) |
698dcdb6 VZ |
9166 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9167 | ac_dummy="$PATH" | |
9168 | for ac_dir in $ac_dummy; do | |
9169 | test -z "$ac_dir" && ac_dir=. | |
9170 | if test -f $ac_dir/$ac_word; then | |
9171 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
9172 | break | |
9173 | fi | |
9174 | done | |
9175 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9176 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
9177 | ;; | |
9178 | esac | |
9179 | fi | |
698dcdb6 | 9180 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
10f2d63a | 9181 | if test -n "$GTK_CONFIG"; then |
698dcdb6 | 9182 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
10f2d63a | 9183 | else |
698dcdb6 | 9184 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9185 | fi |
9186 | ||
04165bec | 9187 | min_gtk_version=1.2.3 |
698dcdb6 | 9188 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
29fd3c0c | 9189 | echo "configure:9190: checking for GTK - version >= $min_gtk_version" >&5 |
10f2d63a VZ |
9190 | no_gtk="" |
9191 | if test "$GTK_CONFIG" != "no" ; then | |
9192 | GTK_CFLAGS=`$GTK_CONFIG --cflags` | |
2224580a | 9193 | GTK_LIBS=`$GTK_CONFIG --libs gthread` |
10f2d63a VZ |
9194 | ac_save_CFLAGS="$CFLAGS" |
9195 | ac_save_LIBS="$LIBS" | |
9196 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
9197 | LIBS="$LIBS $GTK_LIBS" | |
9198 | if test "$cross_compiling" = yes; then | |
9199 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
9200 | else | |
698dcdb6 | 9201 | cat > conftest.$ac_ext <<EOF |
29fd3c0c | 9202 | #line 9203 "configure" |
10f2d63a VZ |
9203 | #include "confdefs.h" |
9204 | ||
9205 | #include <gtk/gtk.h> | |
f49f2b0c | 9206 | #include <gtk/gtkfeatures.h> |
10f2d63a | 9207 | #include <stdio.h> |
32832908 | 9208 | #include <stdlib.h> |
10f2d63a VZ |
9209 | |
9210 | int | |
9211 | main () | |
9212 | { | |
9213 | int major, minor, micro; | |
9214 | ||
9215 | if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) { | |
9216 | printf("%s, bad version string\n", "$min_gtk_version"); | |
9217 | exit(1); | |
9218 | } | |
9219 | ||
f49f2b0c RR |
9220 | if ((GTK_MAJOR_VERSION != gtk_major_version) || |
9221 | (GTK_MINOR_VERSION != gtk_minor_version) || | |
9222 | (GTK_MICRO_VERSION != gtk_micro_version)) { | |
9223 | printf("Headers vs. library version mismatch!\n"); | |
9224 | exit(1); | |
9225 | } | |
9226 | ||
10f2d63a VZ |
9227 | if (gtk_minor_version == 1) return FALSE; |
9228 | ||
9229 | return !((gtk_major_version > major) || | |
9230 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
9231 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))); | |
9232 | } | |
9233 | ||
698dcdb6 | 9234 | EOF |
29fd3c0c | 9235 | if { (eval echo configure:9236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 9236 | then |
10f2d63a VZ |
9237 | : |
9238 | else | |
698dcdb6 VZ |
9239 | echo "configure: failed program was:" >&5 |
9240 | cat conftest.$ac_ext >&5 | |
9241 | rm -fr conftest* | |
9242 | no_gtk=yes | |
10f2d63a | 9243 | fi |
698dcdb6 | 9244 | rm -fr conftest* |
10f2d63a | 9245 | fi |
698dcdb6 | 9246 | |
10f2d63a VZ |
9247 | CFLAGS="$ac_save_CFLAGS" |
9248 | LIBS="$ac_save_LIBS" | |
9249 | else | |
9250 | no_gtk=yes | |
9251 | fi | |
9252 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 9253 | echo "$ac_t""yes" 1>&6 |
8168de4c | 9254 | wx_cv_lib_gtk=1.2.3 |
10f2d63a | 9255 | else |
698dcdb6 | 9256 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9257 | GTK_CFLAGS="" |
9258 | GTK_LIBS="" | |
7e99ad86 | 9259 | : |
10f2d63a | 9260 | fi |
698dcdb6 VZ |
9261 | |
9262 | ||
10f2d63a | 9263 | |
8168de4c VZ |
9264 | fi |
9265 | ||
9266 | if test -z "$wx_cv_lib_gtk"; then | |
9267 | wx_cv_lib_gtk=none | |
138be253 VZ |
9268 | else |
9269 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
9270 | wx_cv_libs_gtk=$GTK_LIBS | |
8168de4c VZ |
9271 | fi |
9272 | ||
1e6feb95 | 9273 | |
8168de4c | 9274 | fi |
703e0a69 | 9275 | |
698dcdb6 | 9276 | |
8168de4c VZ |
9277 | if test "$gtk_version_cached" = 1; then |
9278 | echo "$ac_t""$wx_cv_lib_gtk" 1>&6 | |
1e6feb95 | 9279 | fi |
698dcdb6 | 9280 | |
8168de4c VZ |
9281 | case "$wx_cv_lib_gtk" in |
9282 | 2.0) WXGTK20=1 | |
9283 | ;; | |
9284 | 1.2.7) WXGTK127=1 | |
d1a8d972 | 9285 | WXGTK12=1 |
8168de4c VZ |
9286 | ;; |
9287 | 1.2.3) WXGTK12=1 | |
9288 | ;; | |
9289 | *) { echo "configure: error: | |
9290 | Please check that gtk-config is in path, the directory | |
9291 | where GTK+ libraries are installed (returned by | |
9292 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
9293 | equivalent variable and GTK+ is version 1.2.3 or above. | |
9294 | " 1>&2; exit 1; } | |
9295 | ;; | |
9296 | esac | |
2224580a | 9297 | |
138be253 | 9298 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" |
11dfaa5f | 9299 | GUI_TK_LIBRARY="$wx_cv_libs_gtk" |
698dcdb6 | 9300 | |
1e6feb95 VZ |
9301 | AFMINSTALL=afminstall |
9302 | TOOLKIT=GTK | |
9303 | GUIDIST=GTK_DIST | |
7ec2881a | 9304 | |
1e6feb95 | 9305 | echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6 |
29fd3c0c | 9306 | echo "configure:9307: checking for gdk_im_open in -lgdk" >&5 |
698dcdb6 VZ |
9307 | ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'` |
9308 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9309 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7ec2881a | 9310 | else |
698dcdb6 | 9311 | ac_save_LIBS="$LIBS" |
7ec2881a | 9312 | LIBS="-lgdk $LIBS" |
698dcdb6 | 9313 | cat > conftest.$ac_ext <<EOF |
29fd3c0c | 9314 | #line 9315 "configure" |
7ec2881a RR |
9315 | #include "confdefs.h" |
9316 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9317 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9318 | builtin and then its argument prototype would still apply. */ |
9319 | char gdk_im_open(); | |
9320 | ||
9321 | int main() { | |
9322 | gdk_im_open() | |
9323 | ; return 0; } | |
9324 | EOF | |
29fd3c0c | 9325 | if { (eval echo configure:9326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9326 | rm -rf conftest* |
9327 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9328 | else | |
9329 | echo "configure: failed program was:" >&5 | |
9330 | cat conftest.$ac_ext >&5 | |
9331 | rm -rf conftest* | |
9332 | eval "ac_cv_lib_$ac_lib_var=no" | |
9333 | fi | |
9334 | rm -f conftest* | |
9335 | LIBS="$ac_save_LIBS" | |
9336 | ||
9337 | fi | |
9338 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9339 | echo "$ac_t""yes" 1>&6 | |
9340 | cat >> confdefs.h <<\EOF | |
7ec2881a RR |
9341 | #define HAVE_XIM 1 |
9342 | EOF | |
9343 | ||
698dcdb6 VZ |
9344 | else |
9345 | echo "$ac_t""no" 1>&6 | |
7ec2881a RR |
9346 | fi |
9347 | ||
1e6feb95 | 9348 | fi |
10f2d63a | 9349 | |
1e6feb95 VZ |
9350 | if test "$wxUSE_MGL" = 1; then |
9351 | ||
9352 | echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6 | |
29fd3c0c | 9353 | echo "configure:9354: checking for SciTech MGL library" >&5 |
1e6feb95 VZ |
9354 | if test "x$MGL_ROOT" = x ; then |
9355 | echo "$ac_t""not found" 1>&6 | |
9356 | { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; } | |
9357 | else | |
9358 | echo "$ac_t""$MGL_ROOT" 1>&6 | |
9359 | fi | |
9360 | ||
9361 | MGL_OS=linux/gcc/glibc | |
9362 | MGL_LIB_TYPE="" | |
9363 | ||
9364 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
9365 | if test -f $MGL_ROOT/lib/debug/$MGL_OS/libmgl.a ; then | |
9366 | MGL_LIB_TYPE=debug | |
9367 | fi | |
9368 | fi | |
9369 | if test "x$MGL_LIB_TYPE" = x ; then | |
9370 | if test -f $MGL_ROOT/lib/release/$MGL_OS/libmgl.a ; then | |
9371 | MGL_LIB_TYPE=release | |
9372 | else | |
9373 | { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; } | |
9374 | fi | |
9375 | fi | |
9376 | ||
9377 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" | |
9378 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$MGL_LIB_TYPE/$MGL_OS -lmgl -lmglcpp -lpm" | |
9379 | ||
9380 | AFMINSTALL=afminstall | |
9381 | TOOLKIT=MGL | |
9382 | GUIDIST=MGL_DIST | |
9383 | fi | |
9384 | ||
9385 | if test "$wxUSE_WINE" = 1; then | |
9386 | echo $ac_n "checking for WINE includes""... $ac_c" 1>&6 | |
29fd3c0c | 9387 | echo "configure:9388: checking for WINE includes" >&5 |
1e6feb95 | 9388 | |
10f2d63a VZ |
9389 | ac_find_includes= |
9390 | for ac_dir in $SEARCH_INCLUDE; | |
9391 | do | |
9392 | if test -f "$ac_dir/windows.h"; then | |
9393 | ac_find_includes=$ac_dir | |
9394 | break | |
9395 | fi | |
9396 | done | |
9397 | ||
1e6feb95 VZ |
9398 | if test "$ac_find_includes" != "" ; then |
9399 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
9400 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes" | |
9401 | else | |
9402 | echo "$ac_t""no" 1>&6 | |
9403 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
9404 | fi | |
10f2d63a | 9405 | |
1e6feb95 VZ |
9406 | XPM_LINK="" |
9407 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
29fd3c0c | 9408 | echo "configure:9409: checking for Xpm library" >&5 |
1e6feb95 | 9409 | |
10f2d63a VZ |
9410 | ac_find_libraries= |
9411 | for ac_dir in $SEARCH_LIB; | |
9412 | do | |
9413 | for ac_extension in a so sl; do | |
9414 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
9415 | ac_find_libraries=$ac_dir | |
9416 | break 2 | |
9417 | fi | |
9418 | done | |
9419 | done | |
9420 | ||
1e6feb95 VZ |
9421 | if test "$ac_find_libraries" != "" ; then |
9422 | GUI_TK_LIBRARY="-L$ac_find_libraries" | |
9423 | XPM_LINK="-lXpm" | |
9424 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
9425 | #define wxHAVE_LIB_XPM 1 |
9426 | EOF | |
9427 | ||
1e6feb95 VZ |
9428 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
9429 | else | |
9430 | echo "$ac_t""no" 1>&6 | |
9431 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
9432 | fi | |
10f2d63a | 9433 | |
1e6feb95 VZ |
9434 | MESA_LINK="" |
9435 | echo $ac_n "checking for Mesa library""... $ac_c" 1>&6 | |
29fd3c0c | 9436 | echo "configure:9437: checking for Mesa library" >&5 |
1e6feb95 | 9437 | |
10f2d63a VZ |
9438 | ac_find_libraries= |
9439 | for ac_dir in $SEARCH_LIB; | |
9440 | do | |
9441 | for ac_extension in a so sl; do | |
9442 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
9443 | ac_find_libraries=$ac_dir | |
9444 | break 2 | |
9445 | fi | |
9446 | done | |
9447 | done | |
9448 | ||
1e6feb95 VZ |
9449 | if test "$ac_find_libraries" != "" ; then |
9450 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries" | |
9451 | MESA_LINK="-lMesaGL" | |
9452 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
9453 | else | |
9454 | { echo "configure: error: no" 1>&2; exit 1; } | |
9455 | fi | |
10f2d63a | 9456 | |
1e6feb95 VZ |
9457 | GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses" |
9458 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK" | |
9459 | WXWINE=1 | |
9460 | TOOLKIT=MSW | |
9461 | GUIDIST=MSW_DIST | |
9462 | fi | |
698dcdb6 | 9463 | |
1e6feb95 VZ |
9464 | |
9465 | # If we find X, set shell vars x_includes and x_libraries to the | |
698dcdb6 VZ |
9466 | # paths, otherwise set no_x=yes. |
9467 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
9468 | # --without-x overrides everything else, but does not touch the cache. | |
9469 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
29fd3c0c | 9470 | echo "configure:9471: checking for X" >&5 |
ab9b9eab VZ |
9471 | |
9472 | # Check whether --with-x or --without-x was given. | |
9473 | if test "${with_x+set}" = set; then | |
9474 | withval="$with_x" | |
698dcdb6 VZ |
9475 | : |
9476 | fi | |
ba337fe7 | 9477 | |
ab9b9eab VZ |
9478 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
9479 | if test "x$with_x" = xno; then | |
9480 | # The user explicitly disabled X. | |
9481 | have_x=disabled | |
9482 | else | |
9483 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
9484 | # Both variables are already set. | |
9485 | have_x=yes | |
9486 | else | |
698dcdb6 VZ |
9487 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then |
9488 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab VZ |
9489 | else |
9490 | # One or both of the vars are not set, and there is no cached value. | |
698dcdb6 VZ |
9491 | ac_x_includes=NO ac_x_libraries=NO |
9492 | rm -fr conftestdir | |
9493 | if mkdir conftestdir; then | |
9494 | cd conftestdir | |
ab9b9eab | 9495 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
698dcdb6 | 9496 | cat > Imakefile <<'EOF' |
ab9b9eab VZ |
9497 | acfindx: |
9498 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
9499 | EOF | |
9500 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
9501 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
9502 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
9503 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
10f2d63a | 9504 | for ac_extension in a so sl; do |
ab9b9eab | 9505 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
698dcdb6 | 9506 | test -f $ac_im_libdir/libX11.$ac_extension; then |
ab9b9eab | 9507 | ac_im_usrlibdir=$ac_im_libdir; break |
10f2d63a VZ |
9508 | fi |
9509 | done | |
ab9b9eab VZ |
9510 | # Screen out bogus values from the imake configuration. They are |
9511 | # bogus both because they are the default anyway, and because | |
9512 | # using them would break gcc on systems where it needs fixed includes. | |
698dcdb6 | 9513 | case "$ac_im_incroot" in |
ab9b9eab | 9514 | /usr/include) ;; |
698dcdb6 | 9515 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; |
ab9b9eab | 9516 | esac |
698dcdb6 | 9517 | case "$ac_im_usrlibdir" in |
ab9b9eab | 9518 | /usr/lib | /lib) ;; |
698dcdb6 | 9519 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; |
ab9b9eab | 9520 | esac |
ba337fe7 | 9521 | fi |
ab9b9eab | 9522 | cd .. |
698dcdb6 | 9523 | rm -fr conftestdir |
ab9b9eab | 9524 | fi |
10f2d63a | 9525 | |
698dcdb6 VZ |
9526 | if test "$ac_x_includes" = NO; then |
9527 | # Guess where to find include files, by looking for this one X11 .h file. | |
9528 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
9529 | ||
ab9b9eab | 9530 | # First, try using that file with no special directory specified. |
698dcdb6 | 9531 | cat > conftest.$ac_ext <<EOF |
29fd3c0c | 9532 | #line 9533 "configure" |
ab9b9eab | 9533 | #include "confdefs.h" |
698dcdb6 VZ |
9534 | #include <$x_direct_test_include> |
9535 | EOF | |
9536 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
29fd3c0c | 9537 | { (eval echo configure:9538: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
9538 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9539 | if test -z "$ac_err"; then | |
9540 | rm -rf conftest* | |
ab9b9eab VZ |
9541 | # We can compile using X headers with no special include directory. |
9542 | ac_x_includes= | |
9543 | else | |
698dcdb6 VZ |
9544 | echo "$ac_err" >&5 |
9545 | echo "configure: failed program was:" >&5 | |
ab9b9eab | 9546 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
9547 | rm -rf conftest* |
9548 | # Look for the header file in a standard set of common directories. | |
9549 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
9550 | for ac_dir in \ | |
9551 | /usr/X11/include \ | |
9552 | /usr/X11R6/include \ | |
9553 | /usr/X11R5/include \ | |
9554 | /usr/X11R4/include \ | |
9555 | \ | |
9556 | /usr/include/X11 \ | |
9557 | /usr/include/X11R6 \ | |
9558 | /usr/include/X11R5 \ | |
9559 | /usr/include/X11R4 \ | |
9560 | \ | |
9561 | /usr/local/X11/include \ | |
9562 | /usr/local/X11R6/include \ | |
9563 | /usr/local/X11R5/include \ | |
9564 | /usr/local/X11R4/include \ | |
9565 | \ | |
9566 | /usr/local/include/X11 \ | |
9567 | /usr/local/include/X11R6 \ | |
9568 | /usr/local/include/X11R5 \ | |
9569 | /usr/local/include/X11R4 \ | |
9570 | \ | |
9571 | /usr/X386/include \ | |
9572 | /usr/x386/include \ | |
9573 | /usr/XFree86/include/X11 \ | |
9574 | \ | |
9575 | /usr/include \ | |
9576 | /usr/local/include \ | |
9577 | /usr/unsupported/include \ | |
9578 | /usr/athena/include \ | |
9579 | /usr/local/x11r5/include \ | |
9580 | /usr/lpp/Xamples/include \ | |
9581 | \ | |
9582 | /usr/openwin/include \ | |
9583 | /usr/openwin/share/include \ | |
9584 | ; \ | |
9585 | do | |
9586 | if test -r "$ac_dir/$x_direct_test_include"; then | |
9587 | ac_x_includes=$ac_dir | |
9588 | break | |
9589 | fi | |
9590 | done | |
ab9b9eab | 9591 | fi |
698dcdb6 VZ |
9592 | rm -f conftest* |
9593 | fi # $ac_x_includes = NO | |
10f2d63a | 9594 | |
698dcdb6 | 9595 | if test "$ac_x_libraries" = NO; then |
ab9b9eab | 9596 | # Check for the libraries. |
698dcdb6 VZ |
9597 | |
9598 | test -z "$x_direct_test_library" && x_direct_test_library=Xt | |
9599 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
9600 | ||
ab9b9eab VZ |
9601 | # See if we find them without any special options. |
9602 | # Don't add to $LIBS permanently. | |
698dcdb6 VZ |
9603 | ac_save_LIBS="$LIBS" |
9604 | LIBS="-l$x_direct_test_library $LIBS" | |
9605 | cat > conftest.$ac_ext <<EOF | |
29fd3c0c | 9606 | #line 9607 "configure" |
ab9b9eab | 9607 | #include "confdefs.h" |
698dcdb6 VZ |
9608 | |
9609 | int main() { | |
9610 | ${x_direct_test_function}() | |
9611 | ; return 0; } | |
9612 | EOF | |
29fd3c0c | 9613 | if { (eval echo configure:9614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9614 | rm -rf conftest* |
9615 | LIBS="$ac_save_LIBS" | |
ab9b9eab VZ |
9616 | # We can link X programs with no special library path. |
9617 | ac_x_libraries= | |
9618 | else | |
698dcdb6 VZ |
9619 | echo "configure: failed program was:" >&5 |
9620 | cat conftest.$ac_ext >&5 | |
9621 | rm -rf conftest* | |
9622 | LIBS="$ac_save_LIBS" | |
9623 | # First see if replacing the include by lib works. | |
9624 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
9625 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
9626 | /usr/X11/lib \ | |
9627 | /usr/X11R6/lib \ | |
9628 | /usr/X11R5/lib \ | |
9629 | /usr/X11R4/lib \ | |
9630 | \ | |
9631 | /usr/lib/X11 \ | |
9632 | /usr/lib/X11R6 \ | |
9633 | /usr/lib/X11R5 \ | |
9634 | /usr/lib/X11R4 \ | |
9635 | \ | |
9636 | /usr/local/X11/lib \ | |
9637 | /usr/local/X11R6/lib \ | |
9638 | /usr/local/X11R5/lib \ | |
9639 | /usr/local/X11R4/lib \ | |
9640 | \ | |
9641 | /usr/local/lib/X11 \ | |
9642 | /usr/local/lib/X11R6 \ | |
9643 | /usr/local/lib/X11R5 \ | |
9644 | /usr/local/lib/X11R4 \ | |
9645 | \ | |
9646 | /usr/X386/lib \ | |
9647 | /usr/x386/lib \ | |
9648 | /usr/XFree86/lib/X11 \ | |
9649 | \ | |
9650 | /usr/lib \ | |
9651 | /usr/local/lib \ | |
9652 | /usr/unsupported/lib \ | |
9653 | /usr/athena/lib \ | |
9654 | /usr/local/x11r5/lib \ | |
9655 | /usr/lpp/Xamples/lib \ | |
9656 | /lib/usr/lib/X11 \ | |
9657 | \ | |
9658 | /usr/openwin/lib \ | |
9659 | /usr/openwin/share/lib \ | |
9660 | ; \ | |
ab9b9eab VZ |
9661 | do |
9662 | for ac_extension in a so sl; do | |
698dcdb6 | 9663 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then |
ab9b9eab VZ |
9664 | ac_x_libraries=$ac_dir |
9665 | break 2 | |
10f2d63a | 9666 | fi |
10f2d63a | 9667 | done |
ab9b9eab VZ |
9668 | done |
9669 | fi | |
698dcdb6 VZ |
9670 | rm -f conftest* |
9671 | fi # $ac_x_libraries = NO | |
10f2d63a | 9672 | |
698dcdb6 | 9673 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
ab9b9eab VZ |
9674 | # Didn't find X anywhere. Cache the known absence of X. |
9675 | ac_cv_have_x="have_x=no" | |
9676 | else | |
9677 | # Record where we found X for the cache. | |
9678 | ac_cv_have_x="have_x=yes \ | |
9679 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
9680 | fi | |
9681 | fi | |
10f2d63a | 9682 | fi |
ab9b9eab VZ |
9683 | eval "$ac_cv_have_x" |
9684 | fi # $with_x != no | |
10f2d63a | 9685 | |
ab9b9eab | 9686 | if test "$have_x" != yes; then |
698dcdb6 | 9687 | echo "$ac_t""$have_x" 1>&6 |
ab9b9eab VZ |
9688 | no_x=yes |
9689 | else | |
9690 | # If each of the values was on the command line, it overrides each guess. | |
9691 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
9692 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
9693 | # Update the cache value to reflect the command line values. | |
9694 | ac_cv_have_x="have_x=yes \ | |
9695 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
698dcdb6 | 9696 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 |
ab9b9eab | 9697 | fi |
10f2d63a | 9698 | |
ab9b9eab VZ |
9699 | if test "$no_x" = yes; then |
9700 | # Not all programs may use this symbol, but it does not hurt to define it. | |
698dcdb6 | 9701 | cat >> confdefs.h <<\EOF |
ab9b9eab VZ |
9702 | #define X_DISPLAY_MISSING 1 |
9703 | EOF | |
10f2d63a | 9704 | |
ab9b9eab VZ |
9705 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
9706 | else | |
9707 | if test -n "$x_includes"; then | |
9708 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
10f2d63a VZ |
9709 | fi |
9710 | ||
ab9b9eab VZ |
9711 | # It would also be nice to do this for all -L options, not just this one. |
9712 | if test -n "$x_libraries"; then | |
9713 | X_LIBS="$X_LIBS -L$x_libraries" | |
9714 | # For Solaris; some versions of Sun CC require a space after -R and | |
9715 | # others require no space. Words are not sufficient . . . . | |
698dcdb6 | 9716 | case "`(uname -sr) 2>/dev/null`" in |
ab9b9eab | 9717 | "SunOS 5"*) |
698dcdb6 | 9718 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 |
29fd3c0c | 9719 | echo "configure:9720: checking whether -R must be followed by a space" >&5 |
698dcdb6 VZ |
9720 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
9721 | cat > conftest.$ac_ext <<EOF | |
29fd3c0c | 9722 | #line 9723 "configure" |
ab9b9eab | 9723 | #include "confdefs.h" |
10f2d63a | 9724 | |
698dcdb6 | 9725 | int main() { |
788deba1 | 9726 | |
698dcdb6 VZ |
9727 | ; return 0; } |
9728 | EOF | |
29fd3c0c | 9729 | if { (eval echo configure:9730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 9730 | rm -rf conftest* |
ab9b9eab VZ |
9731 | ac_R_nospace=yes |
9732 | else | |
698dcdb6 VZ |
9733 | echo "configure: failed program was:" >&5 |
9734 | cat conftest.$ac_ext >&5 | |
9735 | rm -rf conftest* | |
9736 | ac_R_nospace=no | |
ab9b9eab | 9737 | fi |
698dcdb6 | 9738 | rm -f conftest* |
ab9b9eab | 9739 | if test $ac_R_nospace = yes; then |
698dcdb6 | 9740 | echo "$ac_t""no" 1>&6 |
ab9b9eab VZ |
9741 | X_LIBS="$X_LIBS -R$x_libraries" |
9742 | else | |
9743 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
698dcdb6 | 9744 | cat > conftest.$ac_ext <<EOF |
29fd3c0c | 9745 | #line 9746 "configure" |
ab9b9eab | 9746 | #include "confdefs.h" |
788deba1 | 9747 | |
698dcdb6 | 9748 | int main() { |
ab9b9eab | 9749 | |
698dcdb6 VZ |
9750 | ; return 0; } |
9751 | EOF | |
29fd3c0c | 9752 | if { (eval echo configure:9753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 9753 | rm -rf conftest* |
ab9b9eab VZ |
9754 | ac_R_space=yes |
9755 | else | |
698dcdb6 VZ |
9756 | echo "configure: failed program was:" >&5 |
9757 | cat conftest.$ac_ext >&5 | |
9758 | rm -rf conftest* | |
9759 | ac_R_space=no | |
ab9b9eab | 9760 | fi |
698dcdb6 | 9761 | rm -f conftest* |
ab9b9eab | 9762 | if test $ac_R_space = yes; then |
698dcdb6 | 9763 | echo "$ac_t""yes" 1>&6 |
ab9b9eab VZ |
9764 | X_LIBS="$X_LIBS -R $x_libraries" |
9765 | else | |
698dcdb6 | 9766 | echo "$ac_t""neither works" 1>&6 |
ab9b9eab VZ |
9767 | fi |
9768 | fi | |
698dcdb6 | 9769 | LIBS="$ac_xsave_LIBS" |
ab9b9eab VZ |
9770 | esac |
9771 | fi | |
9772 | ||
9773 | # Check for system-dependent libraries X programs must link with. | |
9774 | # Do this before checking for the system-independent R6 libraries | |
9775 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
9776 | ||
9777 | if test "$ISC" = yes; then | |
9778 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
9779 | else | |
698dcdb6 VZ |
9780 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X |
9781 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
ab9b9eab | 9782 | # the Alpha needs dnet_stub (dnet does not exist). |
698dcdb6 | 9783 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
29fd3c0c | 9784 | echo "configure:9785: checking for dnet_ntoa in -ldnet" >&5 |
698dcdb6 VZ |
9785 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
9786 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9787 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 9788 | else |
698dcdb6 | 9789 | ac_save_LIBS="$LIBS" |
ab9b9eab | 9790 | LIBS="-ldnet $LIBS" |
698dcdb6 | 9791 | cat > conftest.$ac_ext <<EOF |
29fd3c0c | 9792 | #line 9793 "configure" |
ab9b9eab VZ |
9793 | #include "confdefs.h" |
9794 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9795 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9796 | builtin and then its argument prototype would still apply. */ |
9797 | char dnet_ntoa(); | |
9798 | ||
9799 | int main() { | |
9800 | dnet_ntoa() | |
9801 | ; return 0; } | |
9802 | EOF | |
29fd3c0c | 9803 | if { (eval echo configure:9804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9804 | rm -rf conftest* |
9805 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9806 | else | |
9807 | echo "configure: failed program was:" >&5 | |
9808 | cat conftest.$ac_ext >&5 | |
9809 | rm -rf conftest* | |
9810 | eval "ac_cv_lib_$ac_lib_var=no" | |
9811 | fi | |
9812 | rm -f conftest* | |
9813 | LIBS="$ac_save_LIBS" | |
9814 | ||
9815 | fi | |
9816 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9817 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 9818 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
698dcdb6 VZ |
9819 | else |
9820 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
9821 | fi |
9822 | ||
9823 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
698dcdb6 | 9824 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
29fd3c0c | 9825 | echo "configure:9826: checking for dnet_ntoa in -ldnet_stub" >&5 |
698dcdb6 VZ |
9826 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
9827 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9828 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 9829 | else |
698dcdb6 | 9830 | ac_save_LIBS="$LIBS" |
ab9b9eab | 9831 | LIBS="-ldnet_stub $LIBS" |
698dcdb6 | 9832 | cat > conftest.$ac_ext <<EOF |
29fd3c0c | 9833 | #line 9834 "configure" |
ab9b9eab VZ |
9834 | #include "confdefs.h" |
9835 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9836 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9837 | builtin and then its argument prototype would still apply. */ |
9838 | char dnet_ntoa(); | |
9839 | ||
9840 | int main() { | |
9841 | dnet_ntoa() | |
9842 | ; return 0; } | |
9843 | EOF | |
29fd3c0c | 9844 | if { (eval echo configure:9845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9845 | rm -rf conftest* |
9846 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9847 | else | |
9848 | echo "configure: failed program was:" >&5 | |
9849 | cat conftest.$ac_ext >&5 | |
9850 | rm -rf conftest* | |
9851 | eval "ac_cv_lib_$ac_lib_var=no" | |
9852 | fi | |
9853 | rm -f conftest* | |
9854 | LIBS="$ac_save_LIBS" | |
9855 | ||
9856 | fi | |
9857 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9858 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 9859 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
698dcdb6 VZ |
9860 | else |
9861 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
9862 | fi |
9863 | ||
9864 | fi | |
9865 | ||
9866 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
9867 | # to get the SysV transport functions. | |
698dcdb6 | 9868 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
ab9b9eab VZ |
9869 | # needs -lnsl. |
9870 | # The nsl library prevents programs from opening the X display | |
698dcdb6 VZ |
9871 | # on Irix 5.2, according to dickey@clark.net. |
9872 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
29fd3c0c | 9873 | echo "configure:9874: checking for gethostbyname" >&5 |
698dcdb6 VZ |
9874 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
9875 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9876 | else | |
9877 | cat > conftest.$ac_ext <<EOF | |
29fd3c0c | 9878 | #line 9879 "configure" |
ab9b9eab VZ |
9879 | #include "confdefs.h" |
9880 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 9881 | which can conflict with char gethostbyname(); below. */ |
ab9b9eab VZ |
9882 | #include <assert.h> |
9883 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9884 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9885 | builtin and then its argument prototype would still apply. */ |
9886 | char gethostbyname(); | |
9887 | ||
9888 | int main() { | |
ab9b9eab VZ |
9889 | |
9890 | /* The GNU C library defines this for functions which it implements | |
9891 | to always fail with ENOSYS. Some functions are actually named | |
9892 | something starting with __ and the normal name is an alias. */ | |
9893 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
9894 | choke me | |
9895 | #else | |
698dcdb6 | 9896 | gethostbyname(); |
ab9b9eab VZ |
9897 | #endif |
9898 | ||
698dcdb6 VZ |
9899 | ; return 0; } |
9900 | EOF | |
29fd3c0c | 9901 | if { (eval echo configure:9902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9902 | rm -rf conftest* |
9903 | eval "ac_cv_func_gethostbyname=yes" | |
9904 | else | |
9905 | echo "configure: failed program was:" >&5 | |
9906 | cat conftest.$ac_ext >&5 | |
9907 | rm -rf conftest* | |
9908 | eval "ac_cv_func_gethostbyname=no" | |
9909 | fi | |
9910 | rm -f conftest* | |
9911 | fi | |
9912 | ||
9913 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
9914 | echo "$ac_t""yes" 1>&6 | |
9915 | : | |
9916 | else | |
9917 | echo "$ac_t""no" 1>&6 | |
9918 | fi | |
ab9b9eab VZ |
9919 | |
9920 | if test $ac_cv_func_gethostbyname = no; then | |
698dcdb6 | 9921 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
29fd3c0c | 9922 | echo "configure:9923: checking for gethostbyname in -lnsl" >&5 |
698dcdb6 VZ |
9923 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
9924 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9925 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 9926 | else |
698dcdb6 | 9927 | ac_save_LIBS="$LIBS" |
ab9b9eab | 9928 | LIBS="-lnsl $LIBS" |
698dcdb6 | 9929 | cat > conftest.$ac_ext <<EOF |
29fd3c0c | 9930 | #line 9931 "configure" |
ab9b9eab VZ |
9931 | #include "confdefs.h" |
9932 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9933 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9934 | builtin and then its argument prototype would still apply. */ |
9935 | char gethostbyname(); | |
6232543b | 9936 | |
698dcdb6 VZ |
9937 | int main() { |
9938 | gethostbyname() | |
9939 | ; return 0; } | |
9940 | EOF | |
29fd3c0c | 9941 | if { (eval echo configure:9942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9942 | rm -rf conftest* |
9943 | eval "ac_cv_lib_$ac_lib_var=yes" | |
703e0a69 | 9944 | else |
698dcdb6 VZ |
9945 | echo "configure: failed program was:" >&5 |
9946 | cat conftest.$ac_ext >&5 | |
9947 | rm -rf conftest* | |
9948 | eval "ac_cv_lib_$ac_lib_var=no" | |
9949 | fi | |
9950 | rm -f conftest* | |
9951 | LIBS="$ac_save_LIBS" | |
1e487827 | 9952 | |
698dcdb6 VZ |
9953 | fi |
9954 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9955 | echo "$ac_t""yes" 1>&6 | |
9956 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
9957 | else | |
9958 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
9959 | fi |
9960 | ||
9961 | fi | |
9962 | ||
9963 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
9964 | # socket/setsockopt and other routines are undefined under SCO ODT | |
9965 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
698dcdb6 VZ |
9966 | # on later versions), says simon@lia.di.epfl.ch: it contains |
9967 | # gethostby* variants that don't use the nameserver (or something). | |
9968 | # -lsocket must be given before -lnsl if both are needed. | |
9969 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
9970 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
29fd3c0c | 9971 | echo "configure:9972: checking for connect" >&5 |
698dcdb6 VZ |
9972 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
9973 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9974 | else | |
9975 | cat > conftest.$ac_ext <<EOF | |
29fd3c0c | 9976 | #line 9977 "configure" |
ab9b9eab VZ |
9977 | #include "confdefs.h" |
9978 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 9979 | which can conflict with char connect(); below. */ |
ab9b9eab VZ |
9980 | #include <assert.h> |
9981 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9982 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9983 | builtin and then its argument prototype would still apply. */ |
9984 | char connect(); | |
9985 | ||
9986 | int main() { | |
ab9b9eab VZ |
9987 | |
9988 | /* The GNU C library defines this for functions which it implements | |
9989 | to always fail with ENOSYS. Some functions are actually named | |
9990 | something starting with __ and the normal name is an alias. */ | |
9991 | #if defined (__stub_connect) || defined (__stub___connect) | |
9992 | choke me | |
9993 | #else | |
698dcdb6 | 9994 | connect(); |
ab9b9eab VZ |
9995 | #endif |
9996 | ||
698dcdb6 VZ |
9997 | ; return 0; } |
9998 | EOF | |
29fd3c0c | 9999 | if { (eval echo configure:10000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10000 | rm -rf conftest* |
10001 | eval "ac_cv_func_connect=yes" | |
10002 | else | |
10003 | echo "configure: failed program was:" >&5 | |
10004 | cat conftest.$ac_ext >&5 | |
10005 | rm -rf conftest* | |
10006 | eval "ac_cv_func_connect=no" | |
10007 | fi | |
10008 | rm -f conftest* | |
10009 | fi | |
10010 | ||
10011 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
10012 | echo "$ac_t""yes" 1>&6 | |
10013 | : | |
10014 | else | |
10015 | echo "$ac_t""no" 1>&6 | |
10016 | fi | |
ab9b9eab VZ |
10017 | |
10018 | if test $ac_cv_func_connect = no; then | |
698dcdb6 | 10019 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
29fd3c0c | 10020 | echo "configure:10021: checking for connect in -lsocket" >&5 |
698dcdb6 VZ |
10021 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
10022 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10023 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 10024 | else |
698dcdb6 | 10025 | ac_save_LIBS="$LIBS" |
ab9b9eab | 10026 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
698dcdb6 | 10027 | cat > conftest.$ac_ext <<EOF |
29fd3c0c | 10028 | #line 10029 "configure" |
ab9b9eab VZ |
10029 | #include "confdefs.h" |
10030 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10031 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10032 | builtin and then its argument prototype would still apply. */ |
10033 | char connect(); | |
10034 | ||
10035 | int main() { | |
10036 | connect() | |
10037 | ; return 0; } | |
10038 | EOF | |
29fd3c0c | 10039 | if { (eval echo configure:10040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10040 | rm -rf conftest* |
10041 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10042 | else | |
10043 | echo "configure: failed program was:" >&5 | |
10044 | cat conftest.$ac_ext >&5 | |
10045 | rm -rf conftest* | |
10046 | eval "ac_cv_lib_$ac_lib_var=no" | |
10047 | fi | |
10048 | rm -f conftest* | |
10049 | LIBS="$ac_save_LIBS" | |
10050 | ||
10051 | fi | |
10052 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10053 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 10054 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
698dcdb6 VZ |
10055 | else |
10056 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
10057 | fi |
10058 | ||
10059 | fi | |
10060 | ||
698dcdb6 VZ |
10061 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
10062 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
29fd3c0c | 10063 | echo "configure:10064: checking for remove" >&5 |
698dcdb6 VZ |
10064 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
10065 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 10066 | else |
698dcdb6 | 10067 | cat > conftest.$ac_ext <<EOF |
29fd3c0c | 10068 | #line 10069 "configure" |
ab9b9eab VZ |
10069 | #include "confdefs.h" |
10070 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 10071 | which can conflict with char remove(); below. */ |
ab9b9eab VZ |
10072 | #include <assert.h> |
10073 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10074 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10075 | builtin and then its argument prototype would still apply. */ |
10076 | char remove(); | |
10077 | ||
10078 | int main() { | |
ab9b9eab VZ |
10079 | |
10080 | /* The GNU C library defines this for functions which it implements | |
10081 | to always fail with ENOSYS. Some functions are actually named | |
10082 | something starting with __ and the normal name is an alias. */ | |
10083 | #if defined (__stub_remove) || defined (__stub___remove) | |
10084 | choke me | |
10085 | #else | |
698dcdb6 | 10086 | remove(); |
ab9b9eab VZ |
10087 | #endif |
10088 | ||
698dcdb6 VZ |
10089 | ; return 0; } |
10090 | EOF | |
29fd3c0c | 10091 | if { (eval echo configure:10092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10092 | rm -rf conftest* |
10093 | eval "ac_cv_func_remove=yes" | |
10094 | else | |
10095 | echo "configure: failed program was:" >&5 | |
10096 | cat conftest.$ac_ext >&5 | |
10097 | rm -rf conftest* | |
10098 | eval "ac_cv_func_remove=no" | |
10099 | fi | |
10100 | rm -f conftest* | |
10101 | fi | |
10102 | ||
10103 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
10104 | echo "$ac_t""yes" 1>&6 | |
10105 | : | |
10106 | else | |
10107 | echo "$ac_t""no" 1>&6 | |
10108 | fi | |
ab9b9eab VZ |
10109 | |
10110 | if test $ac_cv_func_remove = no; then | |
698dcdb6 | 10111 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
29fd3c0c | 10112 | echo "configure:10113: checking for remove in -lposix" >&5 |
698dcdb6 VZ |
10113 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
10114 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10115 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 10116 | else |
698dcdb6 | 10117 | ac_save_LIBS="$LIBS" |
ab9b9eab | 10118 | LIBS="-lposix $LIBS" |
698dcdb6 | 10119 | cat > conftest.$ac_ext <<EOF |
29fd3c0c | 10120 | #line 10121 "configure" |
ab9b9eab VZ |
10121 | #include "confdefs.h" |
10122 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10123 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10124 | builtin and then its argument prototype would still apply. */ |
10125 | char remove(); | |
10126 | ||
10127 | int main() { | |
10128 | remove() | |
10129 | ; return 0; } | |
10130 | EOF | |
29fd3c0c | 10131 | if { (eval echo configure:10132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10132 | rm -rf conftest* |
10133 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10134 | else | |
10135 | echo "configure: failed program was:" >&5 | |
10136 | cat conftest.$ac_ext >&5 | |
10137 | rm -rf conftest* | |
10138 | eval "ac_cv_lib_$ac_lib_var=no" | |
10139 | fi | |
10140 | rm -f conftest* | |
10141 | LIBS="$ac_save_LIBS" | |
10142 | ||
10143 | fi | |
10144 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10145 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 10146 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
698dcdb6 VZ |
10147 | else |
10148 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
10149 | fi |
10150 | ||
10151 | fi | |
10152 | ||
10153 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
698dcdb6 | 10154 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
29fd3c0c | 10155 | echo "configure:10156: checking for shmat" >&5 |
698dcdb6 VZ |
10156 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
10157 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 10158 | else |
698dcdb6 | 10159 | cat > conftest.$ac_ext <<EOF |
29fd3c0c | 10160 | #line 10161 "configure" |
ab9b9eab VZ |
10161 | #include "confdefs.h" |
10162 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 10163 | which can conflict with char shmat(); below. */ |
ab9b9eab VZ |
10164 | #include <assert.h> |
10165 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10166 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10167 | builtin and then its argument prototype would still apply. */ |
10168 | char shmat(); | |
10169 | ||
10170 | int main() { | |
ab9b9eab VZ |
10171 | |
10172 | /* The GNU C library defines this for functions which it implements | |
10173 | to always fail with ENOSYS. Some functions are actually named | |
10174 | something starting with __ and the normal name is an alias. */ | |
10175 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
10176 | choke me | |
10177 | #else | |
698dcdb6 | 10178 | shmat(); |
ab9b9eab VZ |
10179 | #endif |
10180 | ||
698dcdb6 VZ |
10181 | ; return 0; } |
10182 | EOF | |
29fd3c0c | 10183 | if { (eval echo configure:10184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10184 | rm -rf conftest* |
10185 | eval "ac_cv_func_shmat=yes" | |
10186 | else | |
10187 | echo "configure: failed program was:" >&5 | |
10188 | cat conftest.$ac_ext >&5 | |
10189 | rm -rf conftest* | |
10190 | eval "ac_cv_func_shmat=no" | |
10191 | fi | |
10192 | rm -f conftest* | |
10193 | fi | |
10194 | ||
10195 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
10196 | echo "$ac_t""yes" 1>&6 | |
10197 | : | |
10198 | else | |
10199 | echo "$ac_t""no" 1>&6 | |
10200 | fi | |
ab9b9eab VZ |
10201 | |
10202 | if test $ac_cv_func_shmat = no; then | |
698dcdb6 | 10203 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
29fd3c0c | 10204 | echo "configure:10205: checking for shmat in -lipc" >&5 |
698dcdb6 VZ |
10205 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
10206 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10207 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 10208 | else |
698dcdb6 | 10209 | ac_save_LIBS="$LIBS" |
ab9b9eab | 10210 | LIBS="-lipc $LIBS" |
698dcdb6 | 10211 | cat > conftest.$ac_ext <<EOF |
29fd3c0c | 10212 | #line 10213 "configure" |
ab9b9eab VZ |
10213 | #include "confdefs.h" |
10214 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10215 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10216 | builtin and then its argument prototype would still apply. */ |
10217 | char shmat(); | |
10218 | ||
10219 | int main() { | |
10220 | shmat() | |
10221 | ; return 0; } | |
10222 | EOF | |
29fd3c0c | 10223 | if { (eval echo configure:10224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10224 | rm -rf conftest* |
10225 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10226 | else | |
10227 | echo "configure: failed program was:" >&5 | |
10228 | cat conftest.$ac_ext >&5 | |
10229 | rm -rf conftest* | |
10230 | eval "ac_cv_lib_$ac_lib_var=no" | |
10231 | fi | |
10232 | rm -f conftest* | |
10233 | LIBS="$ac_save_LIBS" | |
10234 | ||
10235 | fi | |
10236 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10237 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 10238 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
698dcdb6 VZ |
10239 | else |
10240 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
10241 | fi |
10242 | ||
10243 | fi | |
10244 | fi | |
10245 | ||
10246 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
698dcdb6 | 10247 | ac_save_LDFLAGS="$LDFLAGS" |
ab9b9eab VZ |
10248 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
10249 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
10250 | # check for ICE first), but we must link in the order -lSM -lICE or | |
10251 | # we get undefined symbols. So assume we have SM if we have ICE. | |
10252 | # These have to be linked with before -lX11, unlike the other | |
10253 | # libraries we check for below, so use a different variable. | |
698dcdb6 VZ |
10254 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
10255 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
29fd3c0c | 10256 | echo "configure:10257: checking for IceConnectionNumber in -lICE" >&5 |
698dcdb6 VZ |
10257 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
10258 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10259 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10260 | else | |
10261 | ac_save_LIBS="$LIBS" | |
ab9b9eab | 10262 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
698dcdb6 | 10263 | cat > conftest.$ac_ext <<EOF |
29fd3c0c | 10264 | #line 10265 "configure" |
ab9b9eab VZ |
10265 | #include "confdefs.h" |
10266 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10267 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10268 | builtin and then its argument prototype would still apply. */ |
10269 | char IceConnectionNumber(); | |
10270 | ||
10271 | int main() { | |
10272 | IceConnectionNumber() | |
10273 | ; return 0; } | |
10274 | EOF | |
29fd3c0c | 10275 | if { (eval echo configure:10276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10276 | rm -rf conftest* |
10277 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10278 | else | |
10279 | echo "configure: failed program was:" >&5 | |
10280 | cat conftest.$ac_ext >&5 | |
10281 | rm -rf conftest* | |
10282 | eval "ac_cv_lib_$ac_lib_var=no" | |
10283 | fi | |
10284 | rm -f conftest* | |
10285 | LIBS="$ac_save_LIBS" | |
10286 | ||
10287 | fi | |
10288 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10289 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 10290 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
698dcdb6 VZ |
10291 | else |
10292 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
10293 | fi |
10294 | ||
698dcdb6 | 10295 | LDFLAGS="$ac_save_LDFLAGS" |
ab9b9eab VZ |
10296 | |
10297 | fi | |
10298 | ||
1e6feb95 VZ |
10299 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
10300 | LDFLAGS="$LDFLAGS $X_LIBS" | |
ab9b9eab | 10301 | |
1e6feb95 VZ |
10302 | if test "$wxUSE_MOTIF" = 1; then |
10303 | if test "$no_x" = "yes"; then | |
10304 | { echo "configure: error: X11 not found" 1>&2; exit 1; } | |
10305 | fi | |
ab9b9eab | 10306 | |
1e6feb95 VZ |
10307 | GUI_TK_LIBRARY="$X_LIBS" |
10308 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
ab9b9eab | 10309 | |
1e6feb95 | 10310 | AFMINSTALL=afminstall |
dad6c0ea | 10311 | |
1e6feb95 VZ |
10312 | |
10313 | COMPILED_X_PROGRAM=0 | |
cd6d6d5b | 10314 | |
1e6feb95 | 10315 | echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6 |
29fd3c0c | 10316 | echo "configure:10317: checking for Motif/Lesstif headers" >&5 |
1e6feb95 | 10317 | |
ab9b9eab VZ |
10318 | ac_find_includes= |
10319 | for ac_dir in $SEARCH_INCLUDE; | |
10320 | do | |
10321 | if test -f "$ac_dir/Xm/Xm.h"; then | |
10322 | ac_find_includes=$ac_dir | |
10323 | break | |
10324 | fi | |
10325 | done | |
10326 | ||
1e6feb95 VZ |
10327 | if test "$ac_find_includes" != "" ; then |
10328 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
10329 | else | |
10330 | cat > conftest.$ac_ext <<EOF | |
29fd3c0c | 10331 | #line 10332 "configure" |
cd6d6d5b VZ |
10332 | #include "confdefs.h" |
10333 | ||
1e6feb95 VZ |
10334 | #include <Xm/Xm.h> |
10335 | ||
698dcdb6 | 10336 | int main() { |
cd6d6d5b | 10337 | |
1e6feb95 | 10338 | int version; |
cd6d6d5b | 10339 | |
1e6feb95 VZ |
10340 | version = xmUseVersion; |
10341 | ||
698dcdb6 VZ |
10342 | ; return 0; } |
10343 | EOF | |
29fd3c0c | 10344 | if { (eval echo configure:10345: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
10345 | rm -rf conftest* |
10346 | ||
1e6feb95 VZ |
10347 | echo "$ac_t""found in default search path" 1>&6 |
10348 | COMPILED_X_PROGRAM=1 | |
10349 | ||
cd6d6d5b | 10350 | else |
698dcdb6 VZ |
10351 | echo "configure: failed program was:" >&5 |
10352 | cat conftest.$ac_ext >&5 | |
10353 | rm -rf conftest* | |
10354 | ||
1e6feb95 VZ |
10355 | echo "$ac_t""no" 1>&6 |
10356 | { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; } | |
10357 | ||
698dcdb6 | 10358 | |
cd6d6d5b | 10359 | fi |
698dcdb6 | 10360 | rm -f conftest* |
1e6feb95 | 10361 | fi |
ab9b9eab | 10362 | |
1e6feb95 VZ |
10363 | if test "$COMPILED_X_PROGRAM" = 0; then |
10364 | echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6 | |
29fd3c0c | 10365 | echo "configure:10366: checking for Motif/Lesstif library" >&5 |
1e6feb95 | 10366 | |
ab9b9eab VZ |
10367 | ac_find_libraries= |
10368 | for ac_dir in $SEARCH_LIB; | |
10369 | do | |
10370 | for ac_extension in a so sl; do | |
10371 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
10372 | ac_find_libraries=$ac_dir | |
10373 | break 2 | |
10374 | fi | |
10375 | done | |
10376 | done | |
10377 | ||
1e6feb95 VZ |
10378 | if test "$ac_find_libraries" != "" ; then |
10379 | ||
ab9b9eab VZ |
10380 | ac_path_to_include=$ac_find_includes |
10381 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
10382 | result=$? | |
10383 | if test $result = 0; then | |
10384 | ac_path_to_include="" | |
10385 | else | |
10386 | ac_path_to_include="-I$ac_find_includes" | |
10387 | fi | |
10388 | ||
1e6feb95 | 10389 | |
ab9b9eab VZ |
10390 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
10391 | result=$? | |
10392 | if test $result = 0; then | |
10393 | ac_path_to_link="" | |
10394 | else | |
10395 | ac_path_to_link="-L$ac_find_libraries" | |
10396 | fi | |
10397 | ||
698dcdb6 | 10398 | |
1e6feb95 VZ |
10399 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" |
10400 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include" | |
10401 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
10402 | else | |
10403 | cat > conftest.$ac_ext <<EOF | |
29fd3c0c | 10404 | #line 10405 "configure" |
cd6d6d5b | 10405 | #include "confdefs.h" |
ab9b9eab | 10406 | |
1e6feb95 VZ |
10407 | #include <Xm/Xm.h> |
10408 | ||
698dcdb6 | 10409 | int main() { |
ab9b9eab | 10410 | |
1e6feb95 | 10411 | int version; |
ab9b9eab | 10412 | |
1e6feb95 VZ |
10413 | version = xmUseVersion; |
10414 | ||
698dcdb6 VZ |
10415 | ; return 0; } |
10416 | EOF | |
29fd3c0c | 10417 | if { (eval echo configure:10418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
10418 | rm -rf conftest* |
10419 | ||
1e6feb95 VZ |
10420 | echo "$ac_t""found in default search path" 1>&6 |
10421 | COMPILED_X_PROGRAM=1 | |
10422 | ||
cd6d6d5b | 10423 | else |
698dcdb6 VZ |
10424 | echo "configure: failed program was:" >&5 |
10425 | cat conftest.$ac_ext >&5 | |
10426 | rm -rf conftest* | |
10427 | ||
1e6feb95 VZ |
10428 | echo "$ac_t""no" 1>&6 |
10429 | { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; } | |
10430 | ||
698dcdb6 | 10431 | |
cd6d6d5b | 10432 | fi |
698dcdb6 | 10433 | rm -f conftest* |
1e6feb95 | 10434 | fi |
cd6d6d5b | 10435 | fi |
ab9b9eab | 10436 | |
1e6feb95 VZ |
10437 | |
10438 | XPM_LINK="" | |
10439 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
29fd3c0c | 10440 | echo "configure:10441: checking for Xpm library" >&5 |
1e6feb95 | 10441 | |
ab9b9eab VZ |
10442 | ac_find_libraries= |
10443 | for ac_dir in $SEARCH_LIB; | |
10444 | do | |
10445 | for ac_extension in a so sl; do | |
10446 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
10447 | ac_find_libraries=$ac_dir | |
10448 | break 2 | |
10449 | fi | |
10450 | done | |
10451 | done | |
10452 | ||
1e6feb95 VZ |
10453 | if test "$ac_find_libraries" != "" ; then |
10454 | ||
ab9b9eab VZ |
10455 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
10456 | result=$? | |
10457 | if test $result = 0; then | |
10458 | ac_path_to_link="" | |
10459 | else | |
10460 | ac_path_to_link="-L$ac_find_libraries" | |
10461 | fi | |
10462 | ||
1e6feb95 VZ |
10463 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" |
10464 | XPM_LINK="-lXpm " | |
10465 | cat >> confdefs.h <<\EOF | |
ab9b9eab VZ |
10466 | #define wxHAVE_LIB_XPM 1 |
10467 | EOF | |
10468 | ||
1e6feb95 VZ |
10469 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
10470 | else | |
10471 | cat > conftest.$ac_ext <<EOF | |
29fd3c0c | 10472 | #line 10473 "configure" |
cd6d6d5b VZ |
10473 | #include "confdefs.h" |
10474 | ||
1e6feb95 VZ |
10475 | #include <X11/xpm.h> |
10476 | ||
698dcdb6 | 10477 | int main() { |
cd6d6d5b | 10478 | |
1e6feb95 | 10479 | int version; |
cd6d6d5b | 10480 | |
1e6feb95 VZ |
10481 | version = XpmLibraryVersion(); |
10482 | ||
698dcdb6 VZ |
10483 | ; return 0; } |
10484 | EOF | |
29fd3c0c | 10485 | if { (eval echo configure:10486: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
10486 | rm -rf conftest* |
10487 | ||
1e6feb95 VZ |
10488 | XPM_LINK="-lXpm " |
10489 | cat >> confdefs.h <<\EOF | |
3ace2e6d SN |
10490 | #define wxHAVE_LIB_XPM 1 |
10491 | EOF | |
10492 | ||
1e6feb95 VZ |
10493 | echo "$ac_t""found in default search path" 1>&6 |
10494 | COMPILED_X_PROGRAM=0 | |
10495 | ||
cd6d6d5b | 10496 | else |
698dcdb6 VZ |
10497 | echo "configure: failed program was:" >&5 |
10498 | cat conftest.$ac_ext >&5 | |
10499 | rm -rf conftest* | |
10500 | ||
1e6feb95 VZ |
10501 | echo "$ac_t""no" 1>&6 |
10502 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
10503 | ||
698dcdb6 | 10504 | |
cd6d6d5b | 10505 | fi |
698dcdb6 | 10506 | rm -f conftest* |
1e6feb95 VZ |
10507 | fi |
10508 | ||
10509 | GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11" | |
10510 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK" | |
10511 | TOOLKIT=MOTIF | |
10512 | GUIDIST=MOTIF_DIST | |
ab9b9eab VZ |
10513 | fi |
10514 | ||
1e6feb95 VZ |
10515 | if test "$wxUSE_MAC" = 1; then |
10516 | TOOLKIT=MAC | |
10517 | GUIDIST=MACX_DIST | |
10518 | fi | |
10f2d63a | 10519 | |
1e6feb95 VZ |
10520 | if test "$wxUSE_PM" = 1; then |
10521 | TOOLKIT=PM | |
10522 | GUIDIST=GTK_DIST | |
10523 | fi | |
b4085ce6 | 10524 | |
1e6feb95 VZ |
10525 | if test "$TOOLKIT" != "PM" ; then |
10526 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
10527 | else | |
10528 | TOOLKIT_DIR="os2" | |
10529 | fi | |
e07802fc | 10530 | |
1e6feb95 | 10531 | TOOLKIT_NAME="${TOOLKIT_DIR}" |
10f2d63a | 10532 | |
1e6feb95 VZ |
10533 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" |
10534 | ||
10535 | if test "$TOOLKIT_NAME" = "motif"; then | |
10536 | TOOLKIT_VPATH="${TOOLKIT_VPATH}${PATH_IFS}\${top_srcdir}/src/motif/xmcombo" | |
10537 | fi | |
10538 | ||
10539 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
10540 | TOOLKIT_NAME="${TOOLKIT_NAME}univ" | |
10541 | UNIV_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes" | |
10542 | TOOLKIT_VPATH="${UNIV_VPATH}${PATH_IFS}${TOOLKIT_VPATH}" | |
10543 | SETUPH_DIR="univ" | |
f6bcfd97 | 10544 | else |
1e6feb95 VZ |
10545 | SETUPH_DIR="${TOOLKIT_DIR}" |
10546 | fi | |
10547 | ||
10548 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
10549 | TOOLKIT_NAME="${TOOLKIT_NAME}d" | |
f6bcfd97 BP |
10550 | fi |
10551 | ||
2224580a | 10552 | TOOLKIT_DEF="-D__WX${TOOLKIT}__" |
1e6feb95 VZ |
10553 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
10554 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXUNIVERSAL__" | |
10555 | fi | |
10f2d63a | 10556 | |
f6bcfd97 | 10557 | WX_LIBRARY="wx_${TOOLKIT_NAME}" |
10f2d63a | 10558 | |
1e6feb95 VZ |
10559 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
10560 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
10561 | else | |
10562 | ALL_OBJECTS="\$(GUIOBJS)" | |
10563 | fi | |
10564 | ||
10565 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" | |
10566 | ||
10567 | if test "$TOOLKIT" != "MSW"; then | |
10568 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" | |
10569 | fi | |
10570 | ||
10571 | if test "$wxUSE_HTML" = "yes"; then | |
10572 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
10573 | fi | |
3fcdd07b | 10574 | |
1e6feb95 VZ |
10575 | if test "$TOOLKIT" != "MSW"; then |
10576 | if test "$wxUSE_ODBC" = "yes" ; then | |
10577 | ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)" | |
10578 | fi | |
3fcdd07b VZ |
10579 | fi |
10580 | ||
d9d8273d | 10581 | if test "$wxUSE_LIBJPEG" = "yes" ; then |
2224580a | 10582 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" |
d9d8273d RR |
10583 | fi |
10584 | if test "$wxUSE_LIBTIFF" = "yes" ; then | |
10585 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
10586 | fi | |
10587 | if test "$wxUSE_LIBPNG" = "yes" ; then | |
10588 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
10589 | fi | |
10590 | if test "$wxUSE_ZLIB" = "yes" ; then | |
10591 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
10592 | fi | |
3fed1840 RR |
10593 | if test "$wxUSE_FREETYPE" = "yes" ; then |
10594 | ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)" | |
10595 | fi | |
2224580a | 10596 | |
1e6feb95 VZ |
10597 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
10598 | ALL_DEPFILES="\$(GUI_LOWLEVEL_DEPS) \$(UNIVDEPS)" | |
10599 | else | |
10600 | ALL_DEPFILES="\$(GUIDEPS)" | |
10601 | fi | |
10602 | ||
10603 | ALL_DEPFILES="${ALL_DEPFILES} \$(COMMONDEPS) \$(GENERICDEPS)" | |
10604 | ||
10605 | if test "$TOOLKIT" != "MSW"; then | |
10606 | ALL_DEPFILES="${ALL_DEPFILES} \$(UNIXDEPS)" | |
10607 | fi | |
10608 | ||
10609 | if test "$wxUSE_HTML" = "yes"; then | |
10610 | ALL_DEPFILES="${ALL_DEPFILES} \$(HTMLDEPS)" | |
10611 | fi | |
10612 | ||
879df073 | 10613 | PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst" |
1e6feb95 | 10614 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
879df073 | 10615 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" |
1e6feb95 | 10616 | fi |
2224580a VZ |
10617 | RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst" |
10618 | RPM_SPEC="wx\$(TOOLKIT).spec" | |
10619 | ||
10620 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
10621 | DISTDIR="wx\$(TOOLKIT)" | |
10f2d63a | 10622 | else |
dad6c0ea VZ |
10623 | USE_GUI=0 |
10624 | ||
f6bcfd97 BP |
10625 | TOOLKIT_DIR="base" |
10626 | ||
10627 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
10628 | TOOLKIT_NAME="${TOOLKIT_DIR}d" | |
10629 | else | |
10630 | TOOLKIT_NAME="${TOOLKIT_DIR}" | |
10631 | fi | |
10632 | ||
07eb77a6 RL |
10633 | TOOLKIT_DEF="-D__WXBASE__" |
10634 | ||
b4085ce6 GD |
10635 | ALL_OBJECTS="\$(BASE_OBJS) \$(BASE_UNIX_OBJS)" |
10636 | ALL_DEPFILES="\$(BASE_DEPS) \$(BASE_UNIX_DEPS)" | |
10f2d63a | 10637 | |
a20b6d3a VZ |
10638 | if test "$wxUSE_ZLIB" = "yes" ; then |
10639 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
10640 | fi | |
10641 | ||
f6bcfd97 | 10642 | WX_LIBRARY="wx_${TOOLKIT_NAME}" |
2224580a VZ |
10643 | |
10644 | PORT_FILES="src/files.lst" | |
10645 | RPM_FILES="src/rpmfiles.lst" | |
10646 | RPM_SPEC="wxBase.spec" | |
10647 | ||
10648 | GUIDIST="BASE_DIST" | |
10649 | DISTDIR="wxBase" | |
10f2d63a VZ |
10650 | fi |
10651 | ||
10652 | WX_LIBRARY_NAME="lib${WX_LIBRARY}.la" | |
bdad4e7e | 10653 | WX_LIBRARY_NAME_GL="lib${WX_LIBRARY}_gl.la" |
10f2d63a VZ |
10654 | |
10655 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
bdad4e7e | 10656 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY}_gl.a" |
10f2d63a VZ |
10657 | |
10658 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
bdad4e7e | 10659 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" |
10f2d63a VZ |
10660 | |
10661 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}" | |
10662 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so" | |
10663 | WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so" | |
bdad4e7e RR |
10664 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}" |
10665 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so" | |
10666 | WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.so" | |
10f2d63a VZ |
10667 | |
10668 | SHARED_LD= | |
10669 | PIC_FLAG= | |
10670 | WX_ALL= | |
10671 | WX_ALL_INSTALLED= | |
1d62a8b4 | 10672 | BURNT_LIBRARY_NAME= |
f6bcfd97 | 10673 | WX_TARGET_LIBRARY_SONAME= |
10f2d63a | 10674 | |
698dcdb6 | 10675 | |
10f2d63a VZ |
10676 | if test "$wxUSE_SHARED" = "yes"; then |
10677 | case "${host}" in | |
10678 | *-hp-hpux* ) | |
10679 | if test "$GCC" = yes ; then | |
69ffe1d2 | 10680 | SHARED_LD="${CC} -shared -fPIC -o" |
10f2d63a VZ |
10681 | PIC_FLAG="-fPIC" |
10682 | else | |
f6bcfd97 BP |
10683 | LDFLAGS="-L/usr/lib" |
10684 | ||
10f2d63a VZ |
10685 | SHARED_LD="${CXX} -b -o" |
10686 | PIC_FLAG="+Z" | |
10687 | fi | |
f6bcfd97 BP |
10688 | WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_NAME}.sl" |
10689 | WX_LIBRARY_NAME_SHARED_GL="libwx_${TOOLKIT_NAME}_gl.sl" | |
c661ecca | 10690 | if test "$wxUSE_OPENGL" = "yes"; then |
f6bcfd97 | 10691 | WX_ALL_INSTALLED="preinstall_gl" |
c661ecca RR |
10692 | WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}" |
10693 | else | |
10694 | WX_ALL="${WX_LIBRARY_NAME_SHARED}" | |
10695 | fi | |
10f2d63a | 10696 | ;; |
b12915c1 VZ |
10697 | |
10698 | *-*-linux* ) | |
10f2d63a VZ |
10699 | SHARED_LD="${CC} -shared -o" |
10700 | PIC_FLAG="-fPIC" | |
00cf1208 | 10701 | if test "$wxUSE_BURNT_NAME" = "yes" ; then |
05cdfc6f | 10702 | BURNT_LIBRARY_NAME="-Wl,-soname,${WX_LIBRARY_LINK1}" |
bdad4e7e | 10703 | BURNT_LIBRARY_NAME_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}" |
f6bcfd97 | 10704 | WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)" |
00cf1208 | 10705 | fi |
c661ecca RR |
10706 | if test "$wxUSE_OPENGL" = "yes"; then |
10707 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
10708 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
10709 | else | |
10710 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10711 | WX_ALL="CREATE_LINKS" | |
422107f9 | 10712 | fi |
00cf1208 | 10713 | ;; |
10f2d63a VZ |
10714 | *-*-irix5* | *-*-irix6* ) |
10715 | if test "$GCC" = yes ; then | |
10716 | SHARED_LD="${CC} -shared -o" | |
10717 | PIC_FLAG="-fPIC" | |
10718 | else | |
10719 | SHARED_LD="${CXX} -shared -o" | |
10720 | fi | |
c661ecca RR |
10721 | if test "$wxUSE_OPENGL" = "yes"; then |
10722 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
10723 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
10724 | else | |
10725 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10726 | WX_ALL="CREATE_LINKS" | |
422107f9 | 10727 | fi |
10f2d63a VZ |
10728 | ;; |
10729 | *-*-solaris2* ) | |
10730 | if test "$GCC" = yes ; then | |
10731 | SHARED_LD="${CC} -shared -o" | |
10732 | PIC_FLAG="-fPIC" | |
f6bcfd97 BP |
10733 | |
10734 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
10f2d63a VZ |
10735 | else |
10736 | SHARED_LD="${CXX} -G -o" | |
10737 | PIC_FLAG="-KPIC" | |
10738 | fi | |
c661ecca RR |
10739 | if test "$wxUSE_OPENGL" = "yes"; then |
10740 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
10741 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
10742 | else | |
10743 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10744 | WX_ALL="CREATE_LINKS" | |
10745 | fi | |
10f2d63a VZ |
10746 | ;; |
10747 | *-*-sunos4* ) | |
10748 | SHARED_LD="${CC} -shared -o" | |
10749 | PIC_FLAG="-fPIC" | |
10750 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10751 | WX_ALL="CREATE_LINKS" | |
10752 | ;; | |
95c8801c | 10753 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* ) |
10f2d63a VZ |
10754 | SHARED_LD="${CC} -shared -o" |
10755 | PIC_FLAG="-fPIC" | |
37d403aa JS |
10756 | if test "$wxUSE_OPENGL" = "yes"; then |
10757 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
10758 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
10759 | else | |
10760 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10761 | WX_ALL="CREATE_LINKS" | |
10762 | fi | |
10f2d63a | 10763 | ;; |
b4085ce6 | 10764 | *-*-darwin* ) |
ea5999b9 GD |
10765 | SHARED_LD="${CXX} -dynamiclib -o" |
10766 | PIC_FLAG="-dynamic -fPIC" | |
b4085ce6 GD |
10767 | if test "$wxUSE_OPENGL" = "yes"; then |
10768 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
10769 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
10770 | else | |
10771 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10772 | WX_ALL="CREATE_LINKS" | |
10773 | fi | |
1e6feb95 VZ |
10774 | WX_ALL="${WX_ALL} ./lib/lib${WX_LIBRARY}-${WX_RELEASE}.r" |
10775 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
10776 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
10777 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}" | |
10778 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.dylib" | |
10779 | WX_LIBRARY_LINK3="lib${WX_LIBRARY}.dylib" | |
10780 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}" | |
10781 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib" | |
10782 | WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.dylib" | |
b4085ce6 | 10783 | ;; |
10f2d63a VZ |
10784 | *-*-osf* ) |
10785 | SHARED_LD="${CXX} -shared -o" | |
10786 | PIC_FLAG="-fPIC" | |
10787 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10788 | WX_ALL="CREATE_LINKS" | |
10789 | ;; | |
10790 | *-*-dgux5* ) | |
10791 | SHARED_LD="${CXX} -shared -o" | |
10792 | PIC_FLAG="-fPIC" | |
10793 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10794 | WX_ALL="CREATE_LINKS" | |
10795 | ;; | |
10796 | *-*-sysv5* ) | |
10797 | SHARED_LD="${CC} -shared -o" | |
10798 | PIC_FLAG="-fPIC" | |
10799 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10800 | WX_ALL="CREATE_LINKS" | |
10801 | ;; | |
10802 | *-*-aix* ) | |
10803 | SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o" | |
10804 | WX_ALL=${WX_LIBRARY_NAME_SHARED} | |
10805 | ;; | |
1c8183e2 | 10806 | *-*-cygwin* ) |
10f2d63a | 10807 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" |
bdad4e7e | 10808 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" |
f6bcfd97 BP |
10809 | if test "$wxUSE_OPENGL" = "yes"; then |
10810 | WX_ALL_INSTALLED="preinstall_gl" | |
10811 | WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}" | |
10812 | else | |
10813 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
10814 | fi | |
10f2d63a | 10815 | ;; |
b12915c1 | 10816 | *-*-mingw32* ) |
10f2d63a | 10817 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" |
bdad4e7e | 10818 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" |
f6bcfd97 BP |
10819 | if test "$wxUSE_OPENGL" = "yes"; then |
10820 | WX_ALL_INSTALLED="preinstall_gl" | |
10821 | WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}" | |
10822 | else | |
10823 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
10824 | fi | |
10f2d63a VZ |
10825 | ;; |
10826 | *-pc-os2_emx ) | |
e07802fc VZ |
10827 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" |
10828 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
10f2d63a | 10829 | ;; |
b12915c1 | 10830 | *-*-beos* ) |
e2b8b066 | 10831 | SHARED_LD="${LD} -shared -o" |
b12915c1 VZ |
10832 | PIC_FLAG="-fPIC" |
10833 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10834 | WX_ALL="CREATE_LINKS" | |
10835 | ;; | |
10f2d63a | 10836 | *) |
698dcdb6 | 10837 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } |
10f2d63a VZ |
10838 | esac |
10839 | ||
10840 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
10841 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
bdad4e7e | 10842 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" |
10f2d63a | 10843 | fi |
3711412e | 10844 | WX_TARGET_LIBRARY_TYPE="so" |
10f2d63a VZ |
10845 | else |
10846 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
bdad4e7e | 10847 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" |
f6bcfd97 BP |
10848 | |
10849 | if test "$wxUSE_OPENGL" = "yes"; then | |
10850 | WX_ALL_INSTALLED="preinstall_gl" | |
10851 | WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}" | |
10852 | else | |
10853 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
10854 | fi | |
10855 | ||
10856 | if test "$wxUSE_GUI" = "no"; then | |
10857 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
10858 | fi | |
10859 | ||
3711412e | 10860 | WX_TARGET_LIBRARY_TYPE="a" |
10f2d63a VZ |
10861 | fi |
10862 | ||
698dcdb6 VZ |
10863 | |
10864 | for ac_hdr in strings.h | |
10f2d63a | 10865 | do |
698dcdb6 VZ |
10866 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10867 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
29fd3c0c | 10868 | echo "configure:10869: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
10869 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10870 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10871 | else | |
10872 | cat > conftest.$ac_ext <<EOF | |
29fd3c0c | 10873 | #line 10874 "configure" |
10f2d63a | 10874 | #include "confdefs.h" |
698dcdb6 VZ |
10875 | #include <$ac_hdr> |
10876 | EOF | |
10877 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
29fd3c0c | 10878 | { (eval echo configure:10879: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
10879 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10880 | if test -z "$ac_err"; then | |
10881 | rm -rf conftest* | |
10882 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 10883 | else |
698dcdb6 VZ |
10884 | echo "$ac_err" >&5 |
10885 | echo "configure: failed program was:" >&5 | |
10f2d63a | 10886 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
10887 | rm -rf conftest* |
10888 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 10889 | fi |
698dcdb6 | 10890 | rm -f conftest* |
10f2d63a | 10891 | fi |
698dcdb6 VZ |
10892 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10893 | echo "$ac_t""yes" 1>&6 | |
10894 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10895 | cat >> confdefs.h <<EOF | |
10896 | #define $ac_tr_hdr 1 | |
10f2d63a | 10897 | EOF |
698dcdb6 VZ |
10898 | |
10899 | else | |
10900 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
10901 | fi |
10902 | done | |
10903 | ||
698dcdb6 | 10904 | for ac_hdr in stdlib.h |
9cfadba2 | 10905 | do |
698dcdb6 VZ |
10906 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10907 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
29fd3c0c | 10908 | echo "configure:10909: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
10909 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10910 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10911 | else | |
10912 | cat > conftest.$ac_ext <<EOF | |
29fd3c0c | 10913 | #line 10914 "configure" |
9cfadba2 | 10914 | #include "confdefs.h" |
698dcdb6 VZ |
10915 | #include <$ac_hdr> |
10916 | EOF | |
10917 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
29fd3c0c | 10918 | { (eval echo configure:10919: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
10919 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10920 | if test -z "$ac_err"; then | |
10921 | rm -rf conftest* | |
10922 | eval "ac_cv_header_$ac_safe=yes" | |
6232543b | 10923 | else |
698dcdb6 VZ |
10924 | echo "$ac_err" >&5 |
10925 | echo "configure: failed program was:" >&5 | |
9cfadba2 | 10926 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
10927 | rm -rf conftest* |
10928 | eval "ac_cv_header_$ac_safe=no" | |
9cfadba2 | 10929 | fi |
698dcdb6 | 10930 | rm -f conftest* |
9cfadba2 | 10931 | fi |
698dcdb6 VZ |
10932 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10933 | echo "$ac_t""yes" 1>&6 | |
10934 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10935 | cat >> confdefs.h <<EOF | |
10936 | #define $ac_tr_hdr 1 | |
9cfadba2 | 10937 | EOF |
698dcdb6 VZ |
10938 | |
10939 | else | |
10940 | echo "$ac_t""no" 1>&6 | |
9cfadba2 VZ |
10941 | fi |
10942 | done | |
10f2d63a | 10943 | |
698dcdb6 | 10944 | for ac_hdr in unistd.h |
10f2d63a | 10945 | do |
698dcdb6 VZ |
10946 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10947 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
29fd3c0c | 10948 | echo "configure:10949: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
10949 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10950 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10951 | else | |
10952 | cat > conftest.$ac_ext <<EOF | |
29fd3c0c | 10953 | #line 10954 "configure" |
10f2d63a | 10954 | #include "confdefs.h" |
698dcdb6 VZ |
10955 | #include <$ac_hdr> |
10956 | EOF | |
10957 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
29fd3c0c | 10958 | { (eval echo configure:10959: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
10959 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10960 | if test -z "$ac_err"; then | |
10961 | rm -rf conftest* | |
10962 | eval "ac_cv_header_$ac_safe=yes" | |
6232543b | 10963 | else |
698dcdb6 VZ |
10964 | echo "$ac_err" >&5 |
10965 | echo "configure: failed program was:" >&5 | |
10f2d63a | 10966 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
10967 | rm -rf conftest* |
10968 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 10969 | fi |
698dcdb6 | 10970 | rm -f conftest* |
10f2d63a | 10971 | fi |
698dcdb6 VZ |
10972 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10973 | echo "$ac_t""yes" 1>&6 | |
10974 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10975 | cat >> confdefs.h <<EOF | |
10976 | #define $ac_tr_hdr 1 | |
10f2d63a | 10977 | EOF |
698dcdb6 VZ |
10978 | |
10979 | else | |
10980 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
10981 | fi |
10982 | done | |
10983 | ||
698dcdb6 | 10984 | for ac_hdr in wchar.h |
10f2d63a | 10985 | do |
698dcdb6 VZ |
10986 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10987 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
29fd3c0c | 10988 | echo "configure:10989: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
10989 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10990 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10991 | else | |
10992 | cat > conftest.$ac_ext <<EOF | |
29fd3c0c | 10993 | #line 10994 "configure" |
10f2d63a | 10994 | #include "confdefs.h" |
698dcdb6 VZ |
10995 | #include <$ac_hdr> |
10996 | EOF | |
10997 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
29fd3c0c | 10998 | { (eval echo configure:10999: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
10999 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11000 | if test -z "$ac_err"; then | |
11001 | rm -rf conftest* | |
11002 | eval "ac_cv_header_$ac_safe=yes" | |
6f72b082 | 11003 | else |
698dcdb6 VZ |
11004 | echo "$ac_err" >&5 |
11005 | echo "configure: failed program was:" >&5 | |
6f72b082 | 11006 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11007 | rm -rf conftest* |
11008 | eval "ac_cv_header_$ac_safe=no" | |
6f72b082 | 11009 | fi |
698dcdb6 | 11010 | rm -f conftest* |
6f72b082 | 11011 | fi |
698dcdb6 VZ |
11012 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11013 | echo "$ac_t""yes" 1>&6 | |
11014 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11015 | cat >> confdefs.h <<EOF | |
11016 | #define $ac_tr_hdr 1 | |
6f72b082 | 11017 | EOF |
698dcdb6 VZ |
11018 | |
11019 | else | |
11020 | echo "$ac_t""no" 1>&6 | |
6f72b082 OK |
11021 | fi |
11022 | done | |
11023 | ||
698dcdb6 | 11024 | for ac_hdr in wcstr.h |
6f72b082 | 11025 | do |
698dcdb6 VZ |
11026 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11027 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
29fd3c0c | 11028 | echo "configure:11029: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
11029 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11030 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11031 | else | |
11032 | cat > conftest.$ac_ext <<EOF | |
29fd3c0c | 11033 | #line 11034 "configure" |
6f72b082 | 11034 | #include "confdefs.h" |
698dcdb6 VZ |
11035 | #include <$ac_hdr> |
11036 | EOF | |
11037 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
29fd3c0c | 11038 | { (eval echo configure:11039: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11039 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11040 | if test -z "$ac_err"; then | |
11041 | rm -rf conftest* | |
11042 | eval "ac_cv_header_$ac_safe=yes" | |
6f72b082 | 11043 | else |
698dcdb6 VZ |
11044 | echo "$ac_err" >&5 |
11045 | echo "configure: failed program was:" >&5 | |
6f72b082 | 11046 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11047 | rm -rf conftest* |
11048 | eval "ac_cv_header_$ac_safe=no" | |
6f72b082 | 11049 | fi |
698dcdb6 | 11050 | rm -f conftest* |
6f72b082 | 11051 | fi |
698dcdb6 VZ |
11052 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11053 | echo "$ac_t""yes" 1>&6 | |
11054 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11055 | cat >> confdefs.h <<EOF | |
11056 | #define $ac_tr_hdr 1 | |
6f72b082 | 11057 | EOF |
698dcdb6 VZ |
11058 | |
11059 | else | |
11060 | echo "$ac_t""no" 1>&6 | |
6f72b082 OK |
11061 | fi |
11062 | done | |
11063 | ||
698dcdb6 | 11064 | for ac_hdr in fnmatch.h |
6f72b082 | 11065 | do |
698dcdb6 VZ |
11066 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11067 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
29fd3c0c | 11068 | echo "configure:11069: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
11069 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11070 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11071 | else | |
11072 | cat > conftest.$ac_ext <<EOF | |
29fd3c0c | 11073 | #line 11074 "configure" |
6f72b082 | 11074 | #include "confdefs.h" |
698dcdb6 VZ |
11075 | #include <$ac_hdr> |
11076 | EOF | |
11077 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
29fd3c0c | 11078 | { (eval echo configure:11079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11079 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11080 | if test -z "$ac_err"; then | |
11081 | rm -rf conftest* | |
11082 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 11083 | else |
698dcdb6 VZ |
11084 | echo "$ac_err" >&5 |
11085 | echo "configure: failed program was:" >&5 | |
10f2d63a | 11086 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11087 | rm -rf conftest* |
11088 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 11089 | fi |
698dcdb6 | 11090 | rm -f conftest* |
10f2d63a | 11091 | fi |
698dcdb6 VZ |
11092 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11093 | echo "$ac_t""yes" 1>&6 | |
11094 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11095 | cat >> confdefs.h <<EOF | |
11096 | #define $ac_tr_hdr 1 | |
10f2d63a | 11097 | EOF |
698dcdb6 VZ |
11098 | |
11099 | else | |
11100 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
11101 | fi |
11102 | done | |
11103 | ||
698dcdb6 | 11104 | for ac_hdr in iconv.h |
0fb0dd83 | 11105 | do |
698dcdb6 VZ |
11106 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11107 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
29fd3c0c | 11108 | echo "configure:11109: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
11109 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11110 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11111 | else | |
11112 | cat > conftest.$ac_ext <<EOF | |
29fd3c0c | 11113 | #line 11114 "configure" |
0fb0dd83 | 11114 | #include "confdefs.h" |
698dcdb6 VZ |
11115 | #include <$ac_hdr> |
11116 | EOF | |
11117 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
29fd3c0c | 11118 | { (eval echo configure:11119: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11119 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11120 | if test -z "$ac_err"; then | |
11121 | rm -rf conftest* | |
11122 | eval "ac_cv_header_$ac_safe=yes" | |
0fb0dd83 | 11123 | else |
698dcdb6 VZ |
11124 | echo "$ac_err" >&5 |
11125 | echo "configure: failed program was:" >&5 | |
0fb0dd83 | 11126 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11127 | rm -rf conftest* |
11128 | eval "ac_cv_header_$ac_safe=no" | |
0fb0dd83 | 11129 | fi |
698dcdb6 | 11130 | rm -f conftest* |
0fb0dd83 | 11131 | fi |
698dcdb6 VZ |
11132 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11133 | echo "$ac_t""yes" 1>&6 | |
11134 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11135 | cat >> confdefs.h <<EOF | |
11136 | #define $ac_tr_hdr 1 | |
0fb0dd83 | 11137 | EOF |
698dcdb6 VZ |
11138 | |
11139 | else | |
11140 | echo "$ac_t""no" 1>&6 | |
0fb0dd83 RR |
11141 | fi |
11142 | done | |
11143 | ||
698dcdb6 | 11144 | for ac_hdr in langinfo.h |
1f8ae82f | 11145 | do |
698dcdb6 VZ |
11146 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11147 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
29fd3c0c | 11148 | echo "configure:11149: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
11149 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11150 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11151 | else | |
11152 | cat > conftest.$ac_ext <<EOF | |
29fd3c0c | 11153 | #line 11154 "configure" |
1f8ae82f | 11154 | #include "confdefs.h" |
698dcdb6 VZ |
11155 | #include <$ac_hdr> |
11156 | EOF | |
11157 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
29fd3c0c | 11158 | { (eval echo configure:11159: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11159 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11160 | if test -z "$ac_err"; then | |
11161 | rm -rf conftest* | |
11162 | eval "ac_cv_header_$ac_safe=yes" | |
1f8ae82f | 11163 | else |
698dcdb6 VZ |
11164 | echo "$ac_err" >&5 |
11165 | echo "configure: failed program was:" >&5 | |
1f8ae82f | 11166 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11167 | rm -rf conftest* |
11168 | eval "ac_cv_header_$ac_safe=no" | |
1f8ae82f | 11169 | fi |
698dcdb6 | 11170 | rm -f conftest* |
1f8ae82f | 11171 | fi |
698dcdb6 VZ |
11172 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11173 | echo "$ac_t""yes" 1>&6 | |
11174 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11175 | cat >> confdefs.h <<EOF | |
11176 | #define $ac_tr_hdr 1 | |
1f8ae82f | 11177 | EOF |
698dcdb6 VZ |
11178 | |
11179 | else | |
11180 | echo "$ac_t""no" 1>&6 | |
1f8ae82f GD |
11181 | fi |
11182 | done | |
11183 | ||
698dcdb6 | 11184 | |
73fd4a60 VZ |
11185 | if test "$wxUSE_GUI" = "yes"; then |
11186 | if test "$wxUSE_UNIX" = "yes"; then | |
698dcdb6 | 11187 | for ac_hdr in X11/XKBlib.h |
10f2d63a | 11188 | do |
698dcdb6 VZ |
11189 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11190 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
29fd3c0c | 11191 | echo "configure:11192: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
11192 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11193 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11194 | else | |
11195 | cat > conftest.$ac_ext <<EOF | |
29fd3c0c | 11196 | #line 11197 "configure" |
10f2d63a | 11197 | #include "confdefs.h" |
698dcdb6 VZ |
11198 | #include <$ac_hdr> |
11199 | EOF | |
11200 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
29fd3c0c | 11201 | { (eval echo configure:11202: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11202 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11203 | if test -z "$ac_err"; then | |
11204 | rm -rf conftest* | |
11205 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 11206 | else |
698dcdb6 VZ |
11207 | echo "$ac_err" >&5 |
11208 | echo "configure: failed program was:" >&5 | |
10f2d63a | 11209 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11210 | rm -rf conftest* |
11211 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 11212 | fi |
698dcdb6 | 11213 | rm -f conftest* |
10f2d63a | 11214 | fi |
698dcdb6 VZ |
11215 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11216 | echo "$ac_t""yes" 1>&6 | |
11217 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11218 | cat >> confdefs.h <<EOF | |
11219 | #define $ac_tr_hdr 1 | |
10f2d63a | 11220 | EOF |
698dcdb6 VZ |
11221 | |
11222 | else | |
11223 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
11224 | fi |
11225 | done | |
11226 | ||
73fd4a60 | 11227 | fi |
10f2d63a VZ |
11228 | fi |
11229 | ||
29fd3c0c VS |
11230 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then |
11231 | for ac_hdr in w32api.h | |
11232 | do | |
11233 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
11234 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
11235 | echo "configure:11236: checking for $ac_hdr" >&5 | |
11236 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
11237 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11238 | else | |
11239 | cat > conftest.$ac_ext <<EOF | |
11240 | #line 11241 "configure" | |
11241 | #include "confdefs.h" | |
11242 | #include <$ac_hdr> | |
11243 | EOF | |
11244 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
11245 | { (eval echo configure:11246: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
11246 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
11247 | if test -z "$ac_err"; then | |
11248 | rm -rf conftest* | |
11249 | eval "ac_cv_header_$ac_safe=yes" | |
11250 | else | |
11251 | echo "$ac_err" >&5 | |
11252 | echo "configure: failed program was:" >&5 | |
11253 | cat conftest.$ac_ext >&5 | |
11254 | rm -rf conftest* | |
11255 | eval "ac_cv_header_$ac_safe=no" | |
11256 | fi | |
11257 | rm -f conftest* | |
11258 | fi | |
11259 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11260 | echo "$ac_t""yes" 1>&6 | |
11261 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11262 | cat >> confdefs.h <<EOF | |
11263 | #define $ac_tr_hdr 1 | |
11264 | EOF | |
11265 | ||
11266 | else | |
11267 | echo "$ac_t""no" 1>&6 | |
11268 | fi | |
11269 | done | |
11270 | ||
11271 | fi | |
11272 | ||
698dcdb6 VZ |
11273 | |
11274 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | |
29fd3c0c | 11275 | echo "configure:11276: checking for ANSI C header files" >&5 |
698dcdb6 VZ |
11276 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
11277 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11278 | else |
698dcdb6 | 11279 | cat > conftest.$ac_ext <<EOF |
29fd3c0c | 11280 | #line 11281 "configure" |
10f2d63a VZ |
11281 | #include "confdefs.h" |
11282 | #include <stdlib.h> | |
11283 | #include <stdarg.h> | |
11284 | #include <string.h> | |
11285 | #include <float.h> | |
698dcdb6 VZ |
11286 | EOF |
11287 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
29fd3c0c | 11288 | { (eval echo configure:11289: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11289 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11290 | if test -z "$ac_err"; then | |
11291 | rm -rf conftest* | |
10f2d63a VZ |
11292 | ac_cv_header_stdc=yes |
11293 | else | |
698dcdb6 VZ |
11294 | echo "$ac_err" >&5 |
11295 | echo "configure: failed program was:" >&5 | |
10f2d63a | 11296 | cat conftest.$ac_ext >&5 |
698dcdb6 | 11297 | rm -rf conftest* |
10f2d63a VZ |
11298 | ac_cv_header_stdc=no |
11299 | fi | |
698dcdb6 | 11300 | rm -f conftest* |
10f2d63a VZ |
11301 | |
11302 | if test $ac_cv_header_stdc = yes; then | |
11303 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
698dcdb6 | 11304 | cat > conftest.$ac_ext <<EOF |
29fd3c0c | 11305 | #line 11306 "configure" |
10f2d63a VZ |
11306 | #include "confdefs.h" |
11307 | #include <string.h> | |
698dcdb6 | 11308 | EOF |
10f2d63a VZ |
11309 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
11310 | egrep "memchr" >/dev/null 2>&1; then | |
11311 | : | |
11312 | else | |
698dcdb6 | 11313 | rm -rf conftest* |
10f2d63a VZ |
11314 | ac_cv_header_stdc=no |
11315 | fi | |
11316 | rm -f conftest* | |
11317 | ||
11318 | fi | |
11319 | ||
11320 | if test $ac_cv_header_stdc = yes; then | |
11321 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
698dcdb6 | 11322 | cat > conftest.$ac_ext <<EOF |
29fd3c0c | 11323 | #line 11324 "configure" |
10f2d63a VZ |
11324 | #include "confdefs.h" |
11325 | #include <stdlib.h> | |
698dcdb6 | 11326 | EOF |
10f2d63a VZ |
11327 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
11328 | egrep "free" >/dev/null 2>&1; then | |
11329 | : | |
11330 | else | |
698dcdb6 | 11331 | rm -rf conftest* |
10f2d63a VZ |
11332 | ac_cv_header_stdc=no |
11333 | fi | |
11334 | rm -f conftest* | |
11335 | ||
11336 | fi | |
11337 | ||
11338 | if test $ac_cv_header_stdc = yes; then | |
11339 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
698dcdb6 | 11340 | if test "$cross_compiling" = yes; then |
10f2d63a VZ |
11341 | : |
11342 | else | |
698dcdb6 | 11343 | cat > conftest.$ac_ext <<EOF |
29fd3c0c | 11344 | #line 11345 "configure" |
10f2d63a VZ |
11345 | #include "confdefs.h" |
11346 | #include <ctype.h> | |
698dcdb6 VZ |
11347 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
11348 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
1e487827 | 11349 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
698dcdb6 VZ |
11350 | int main () { int i; for (i = 0; i < 256; i++) |
11351 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
11352 | exit (0); } | |
11353 | ||
11354 | EOF | |
29fd3c0c | 11355 | if { (eval echo configure:11356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 11356 | then |
10f2d63a VZ |
11357 | : |
11358 | else | |
698dcdb6 VZ |
11359 | echo "configure: failed program was:" >&5 |
11360 | cat conftest.$ac_ext >&5 | |
11361 | rm -fr conftest* | |
11362 | ac_cv_header_stdc=no | |
10f2d63a | 11363 | fi |
698dcdb6 | 11364 | rm -fr conftest* |
10f2d63a | 11365 | fi |
698dcdb6 | 11366 | |
10f2d63a VZ |
11367 | fi |
11368 | fi | |
1e487827 | 11369 | |
698dcdb6 VZ |
11370 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
11371 | if test $ac_cv_header_stdc = yes; then | |
11372 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11373 | #define STDC_HEADERS 1 |
11374 | EOF | |
11375 | ||
11376 | fi | |
11377 | ||
698dcdb6 | 11378 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
29fd3c0c | 11379 | echo "configure:11380: checking for mode_t" >&5 |
698dcdb6 VZ |
11380 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
11381 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 11382 | else |
698dcdb6 | 11383 | cat > conftest.$ac_ext <<EOF |
29fd3c0c | 11384 | #line 11385 "configure" |
1e487827 | 11385 | #include "confdefs.h" |
698dcdb6 VZ |
11386 | #include <sys/types.h> |
11387 | #if STDC_HEADERS | |
11388 | #include <stdlib.h> | |
11389 | #include <stddef.h> | |
11390 | #endif | |
11391 | EOF | |
11392 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11393 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
11394 | rm -rf conftest* | |
10f2d63a VZ |
11395 | ac_cv_type_mode_t=yes |
11396 | else | |
698dcdb6 VZ |
11397 | rm -rf conftest* |
11398 | ac_cv_type_mode_t=no | |
703e0a69 | 11399 | fi |
698dcdb6 | 11400 | rm -f conftest* |
1e487827 | 11401 | |
698dcdb6 VZ |
11402 | fi |
11403 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 | |
11404 | if test $ac_cv_type_mode_t = no; then | |
11405 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11406 | #define mode_t int |
11407 | EOF | |
11408 | ||
11409 | fi | |
11410 | ||
698dcdb6 | 11411 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 |
29fd3c0c | 11412 | echo "configure:11413: checking for off_t" >&5 |
698dcdb6 VZ |
11413 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
11414 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11415 | else |
698dcdb6 | 11416 | cat > conftest.$ac_ext <<EOF |
29fd3c0c | 11417 | #line 11418 "configure" |
10f2d63a | 11418 | #include "confdefs.h" |
698dcdb6 VZ |
11419 | #include <sys/types.h> |
11420 | #if STDC_HEADERS | |
11421 | #include <stdlib.h> | |
11422 | #include <stddef.h> | |
11423 | #endif | |
11424 | EOF | |
11425 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11426 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
11427 | rm -rf conftest* | |
10f2d63a VZ |
11428 | ac_cv_type_off_t=yes |
11429 | else | |
698dcdb6 VZ |
11430 | rm -rf conftest* |
11431 | ac_cv_type_off_t=no | |
703e0a69 | 11432 | fi |
698dcdb6 | 11433 | rm -f conftest* |
1e487827 | 11434 | |
698dcdb6 VZ |
11435 | fi |
11436 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
11437 | if test $ac_cv_type_off_t = no; then | |
11438 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11439 | #define off_t long |
11440 | EOF | |
11441 | ||
11442 | fi | |
11443 | ||
698dcdb6 | 11444 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
29fd3c0c | 11445 | echo "configure:11446: checking for pid_t" >&5 |
698dcdb6 VZ |
11446 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
11447 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11448 | else |
698dcdb6 | 11449 | cat > conftest.$ac_ext <<EOF |
29fd3c0c | 11450 | #line 11451 "configure" |
10f2d63a | 11451 | #include "confdefs.h" |
698dcdb6 VZ |
11452 | #include <sys/types.h> |
11453 | #if STDC_HEADERS | |
11454 | #include <stdlib.h> | |
11455 | #include <stddef.h> | |
11456 | #endif | |
11457 | EOF | |
11458 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11459 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
11460 | rm -rf conftest* | |
10f2d63a VZ |
11461 | ac_cv_type_pid_t=yes |
11462 | else | |
698dcdb6 VZ |
11463 | rm -rf conftest* |
11464 | ac_cv_type_pid_t=no | |
703e0a69 | 11465 | fi |
698dcdb6 | 11466 | rm -f conftest* |
1e487827 | 11467 | |
698dcdb6 VZ |
11468 | fi |
11469 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
11470 | if test $ac_cv_type_pid_t = no; then | |
11471 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11472 | #define pid_t int |
11473 | EOF | |
11474 | ||
11475 | fi | |
11476 | ||
698dcdb6 | 11477 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
29fd3c0c | 11478 | echo "configure:11479: checking for size_t" >&5 |
698dcdb6 VZ |
11479 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
11480 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11481 | else |
698dcdb6 | 11482 | cat > conftest.$ac_ext <<EOF |
29fd3c0c | 11483 | #line 11484 "configure" |
10f2d63a | 11484 | #include "confdefs.h" |
698dcdb6 VZ |
11485 | #include <sys/types.h> |
11486 | #if STDC_HEADERS | |
11487 | #include <stdlib.h> | |
11488 | #include <stddef.h> | |
11489 | #endif | |
11490 | EOF | |
11491 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11492 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
11493 | rm -rf conftest* | |
10f2d63a VZ |
11494 | ac_cv_type_size_t=yes |
11495 | else | |
698dcdb6 VZ |
11496 | rm -rf conftest* |
11497 | ac_cv_type_size_t=no | |
703e0a69 | 11498 | fi |
698dcdb6 | 11499 | rm -f conftest* |
1e487827 | 11500 | |
698dcdb6 VZ |
11501 | fi |
11502 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
11503 | if test $ac_cv_type_size_t = no; then | |
11504 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11505 | #define size_t unsigned |
11506 | EOF | |
11507 | ||
11508 | fi | |
11509 | ||
698dcdb6 | 11510 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
29fd3c0c | 11511 | echo "configure:11512: checking for uid_t in sys/types.h" >&5 |
698dcdb6 VZ |
11512 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
11513 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11514 | else |
698dcdb6 | 11515 | cat > conftest.$ac_ext <<EOF |
29fd3c0c | 11516 | #line 11517 "configure" |
10f2d63a VZ |
11517 | #include "confdefs.h" |
11518 | #include <sys/types.h> | |
698dcdb6 | 11519 | EOF |
10f2d63a VZ |
11520 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
11521 | egrep "uid_t" >/dev/null 2>&1; then | |
698dcdb6 | 11522 | rm -rf conftest* |
10f2d63a VZ |
11523 | ac_cv_type_uid_t=yes |
11524 | else | |
698dcdb6 | 11525 | rm -rf conftest* |
10f2d63a VZ |
11526 | ac_cv_type_uid_t=no |
11527 | fi | |
11528 | rm -f conftest* | |
11529 | ||
11530 | fi | |
1e487827 | 11531 | |
698dcdb6 VZ |
11532 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
11533 | if test $ac_cv_type_uid_t = no; then | |
11534 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11535 | #define uid_t int |
11536 | EOF | |
11537 | ||
698dcdb6 | 11538 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
11539 | #define gid_t int |
11540 | EOF | |
11541 | ||
11542 | fi | |
11543 | ||
1e487827 | 11544 | |
698dcdb6 | 11545 | echo $ac_n "checking for wchar_t""... $ac_c" 1>&6 |
29fd3c0c | 11546 | echo "configure:11547: checking for wchar_t" >&5 |
698dcdb6 VZ |
11547 | if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then |
11548 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11549 | else | |
11550 | ||
11551 | cat > conftest.$ac_ext <<EOF | |
29fd3c0c | 11552 | #line 11553 "configure" |
0046ff7c VS |
11553 | #include "confdefs.h" |
11554 | #include <wchar.h> | |
698dcdb6 | 11555 | int main() { |
0046ff7c | 11556 | |
d836ee96 VZ |
11557 | wchar_t wc, *ws; |
11558 | wc = L'a'; | |
11559 | ws = L"Hello, world!"; | |
698dcdb6 VZ |
11560 | |
11561 | ; return 0; } | |
11562 | EOF | |
29fd3c0c | 11563 | if { (eval echo configure:11564: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 11564 | rm -rf conftest* |
1f8ae82f GD |
11565 | wx_cv_type_wchar_t=yes |
11566 | else | |
698dcdb6 VZ |
11567 | echo "configure: failed program was:" >&5 |
11568 | cat conftest.$ac_ext >&5 | |
11569 | rm -rf conftest* | |
11570 | cat > conftest.$ac_ext <<EOF | |
29fd3c0c | 11571 | #line 11572 "configure" |
1f8ae82f GD |
11572 | #include "confdefs.h" |
11573 | #include <stdlib.h> | |
698dcdb6 | 11574 | int main() { |
1f8ae82f | 11575 | |
d836ee96 VZ |
11576 | wchar_t wc, *ws; |
11577 | wc = L'a'; | |
11578 | ws = L"Hello, world!"; | |
698dcdb6 VZ |
11579 | |
11580 | ; return 0; } | |
11581 | EOF | |
29fd3c0c | 11582 | if { (eval echo configure:11583: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 11583 | rm -rf conftest* |
0046ff7c VS |
11584 | wx_cv_type_wchar_t=yes |
11585 | else | |
698dcdb6 VZ |
11586 | echo "configure: failed program was:" >&5 |
11587 | cat conftest.$ac_ext >&5 | |
11588 | rm -rf conftest* | |
11589 | wx_cv_type_wchar_t=no | |
0046ff7c | 11590 | fi |
698dcdb6 | 11591 | rm -f conftest* |
d836ee96 | 11592 | |
6232543b | 11593 | fi |
698dcdb6 | 11594 | rm -f conftest* |
703e0a69 | 11595 | |
1e487827 | 11596 | fi |
698dcdb6 VZ |
11597 | |
11598 | echo "$ac_t""$wx_cv_type_wchar_t" 1>&6 | |
d836ee96 VZ |
11599 | |
11600 | if test "$wx_cv_type_wchar_t" = "yes"; then | |
698dcdb6 | 11601 | cat >> confdefs.h <<\EOF |
0046ff7c VS |
11602 | #define wxUSE_WCHAR_T 1 |
11603 | EOF | |
11604 | ||
11605 | fi | |
11606 | ||
19af3b06 VZ |
11607 | |
11608 | ac_ext=C | |
11609 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11610 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11611 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11612 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11613 | cross_compiling=$ac_cv_prog_cxx_cross | |
11614 | ||
d836ee96 | 11615 | echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6 |
29fd3c0c | 11616 | echo "configure:11617: checking if size_t is unsigned int" >&5 |
d836ee96 VZ |
11617 | if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then |
11618 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11619 | else | |
dd2c8b7c | 11620 | cat > conftest.$ac_ext <<EOF |
29fd3c0c | 11621 | #line 11622 "configure" |
d836ee96 VZ |
11622 | #include "confdefs.h" |
11623 | #include <stddef.h> | |
11624 | int main() { | |
11625 | ||
dd2c8b7c VZ |
11626 | return 0; } |
11627 | ||
d836ee96 | 11628 | struct Foo { void foo(size_t); void foo(unsigned int); }; |
dd2c8b7c VZ |
11629 | |
11630 | int bar() { | |
d836ee96 VZ |
11631 | |
11632 | ; return 0; } | |
11633 | EOF | |
29fd3c0c | 11634 | if { (eval echo configure:11635: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
d836ee96 VZ |
11635 | rm -rf conftest* |
11636 | wx_cv_size_t_is_uint=no | |
11637 | else | |
11638 | echo "configure: failed program was:" >&5 | |
11639 | cat conftest.$ac_ext >&5 | |
11640 | rm -rf conftest* | |
11641 | wx_cv_size_t_is_uint=yes | |
11642 | ||
11643 | fi | |
11644 | rm -f conftest* | |
11645 | ||
11646 | fi | |
11647 | ||
11648 | echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6 | |
11649 | ||
11650 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
11651 | cat >> confdefs.h <<\EOF | |
11652 | #define wxSIZE_T_IS_UINT 1 | |
11653 | EOF | |
11654 | ||
11655 | else | |
11656 | echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6 | |
29fd3c0c | 11657 | echo "configure:11658: checking if size_t is unsigned long" >&5 |
d836ee96 VZ |
11658 | if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then |
11659 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11660 | else | |
11661 | cat > conftest.$ac_ext <<EOF | |
29fd3c0c | 11662 | #line 11663 "configure" |
d836ee96 VZ |
11663 | #include "confdefs.h" |
11664 | #include <stddef.h> | |
11665 | int main() { | |
11666 | ||
dd2c8b7c VZ |
11667 | return 0; } |
11668 | ||
d836ee96 | 11669 | struct Foo { void foo(size_t); void foo(unsigned long); }; |
dd2c8b7c VZ |
11670 | |
11671 | int bar() { | |
d836ee96 VZ |
11672 | |
11673 | ; return 0; } | |
11674 | EOF | |
29fd3c0c | 11675 | if { (eval echo configure:11676: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
d836ee96 VZ |
11676 | rm -rf conftest* |
11677 | wx_cv_size_t_is_ulong=no | |
11678 | else | |
11679 | echo "configure: failed program was:" >&5 | |
11680 | cat conftest.$ac_ext >&5 | |
11681 | rm -rf conftest* | |
11682 | wx_cv_size_t_is_ulong=yes | |
11683 | ||
11684 | fi | |
11685 | rm -f conftest* | |
11686 | ||
11687 | fi | |
11688 | ||
11689 | echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6 | |
11690 | ||
11691 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
11692 | cat >> confdefs.h <<\EOF | |
11693 | #define wxSIZE_T_IS_ULONG 1 | |
11694 | EOF | |
11695 | ||
11696 | fi | |
11697 | fi | |
11698 | ||
19af3b06 VZ |
11699 | ac_ext=c |
11700 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11701 | ac_cpp='$CPP $CPPFLAGS' | |
11702 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11703 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11704 | cross_compiling=$ac_cv_prog_cc_cross | |
11705 | ||
11706 | ||
1e487827 | 11707 | |
698dcdb6 | 11708 | echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6 |
29fd3c0c | 11709 | echo "configure:11710: checking for pw_gecos in struct passwd" >&5 |
698dcdb6 VZ |
11710 | if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then |
11711 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11712 | else | |
11713 | ||
11714 | cat > conftest.$ac_ext <<EOF | |
29fd3c0c | 11715 | #line 11716 "configure" |
b12915c1 VZ |
11716 | #include "confdefs.h" |
11717 | #include <pwd.h> | |
698dcdb6 | 11718 | int main() { |
b12915c1 VZ |
11719 | |
11720 | char *p; | |
11721 | struct passwd *pw; | |
11722 | p = pw->pw_gecos; | |
698dcdb6 VZ |
11723 | |
11724 | ; return 0; } | |
11725 | EOF | |
29fd3c0c | 11726 | if { (eval echo configure:11727: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
11727 | rm -rf conftest* |
11728 | ||
b12915c1 | 11729 | wx_cv_struct_pw_gecos=yes |
698dcdb6 | 11730 | |
b12915c1 | 11731 | else |
698dcdb6 VZ |
11732 | echo "configure: failed program was:" >&5 |
11733 | cat conftest.$ac_ext >&5 | |
11734 | rm -rf conftest* | |
11735 | ||
b12915c1 | 11736 | wx_cv_struct_pw_gecos=no |
698dcdb6 VZ |
11737 | |
11738 | ||
6232543b | 11739 | fi |
698dcdb6 VZ |
11740 | rm -f conftest* |
11741 | ||
703e0a69 | 11742 | |
1e487827 | 11743 | fi |
698dcdb6 VZ |
11744 | |
11745 | echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6 | |
b12915c1 | 11746 | |
bd3277fe | 11747 | if test "$wx_cv_struct_pw_gecos" = "yes"; then |
698dcdb6 | 11748 | cat >> confdefs.h <<\EOF |
bd3277fe VZ |
11749 | #define HAVE_PW_GECOS 1 |
11750 | EOF | |
11751 | ||
11752 | fi | |
11753 | ||
698dcdb6 VZ |
11754 | |
11755 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
29fd3c0c | 11756 | echo "configure:11757: checking for working const" >&5 |
698dcdb6 VZ |
11757 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
11758 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11759 | else |
698dcdb6 | 11760 | cat > conftest.$ac_ext <<EOF |
29fd3c0c | 11761 | #line 11762 "configure" |
10f2d63a | 11762 | #include "confdefs.h" |
698dcdb6 VZ |
11763 | |
11764 | int main() { | |
11765 | ||
11766 | /* Ultrix mips cc rejects this. */ | |
11767 | typedef int charset[2]; const charset x; | |
11768 | /* SunOS 4.1.1 cc rejects this. */ | |
11769 | char const *const *ccp; | |
11770 | char **p; | |
11771 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
11772 | struct point {int x, y;}; | |
11773 | static struct point const zero = {0,0}; | |
11774 | /* AIX XL C 1.02.0.0 rejects this. | |
11775 | It does not let you subtract one const X* pointer from another in an arm | |
11776 | of an if-expression whose if-part is not a constant expression */ | |
11777 | const char *g = "string"; | |
11778 | ccp = &g + (g ? g-g : 0); | |
11779 | /* HPUX 7.0 cc rejects these. */ | |
11780 | ++ccp; | |
11781 | p = (char**) ccp; | |
11782 | ccp = (char const *const *) p; | |
11783 | { /* SCO 3.2v4 cc rejects this. */ | |
11784 | char *t; | |
11785 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
11786 | ||
11787 | *t++ = 0; | |
10f2d63a | 11788 | } |
698dcdb6 VZ |
11789 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
11790 | int x[] = {25, 17}; | |
11791 | const int *foo = &x[0]; | |
11792 | ++foo; | |
703e0a69 | 11793 | } |
698dcdb6 VZ |
11794 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
11795 | typedef const int *iptr; | |
11796 | iptr p = 0; | |
11797 | ++p; | |
6232543b | 11798 | } |
698dcdb6 VZ |
11799 | { /* AIX XL C 1.02.0.0 rejects this saying |
11800 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
11801 | struct s { int j; const int *ap[3]; }; | |
11802 | struct s *b; b->j = 5; | |
1e487827 | 11803 | } |
698dcdb6 VZ |
11804 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
11805 | const int foo = 10; | |
11806 | } | |
11807 | ||
11808 | ; return 0; } | |
11809 | EOF | |
29fd3c0c | 11810 | if { (eval echo configure:11811: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 11811 | rm -rf conftest* |
10f2d63a VZ |
11812 | ac_cv_c_const=yes |
11813 | else | |
698dcdb6 VZ |
11814 | echo "configure: failed program was:" >&5 |
11815 | cat conftest.$ac_ext >&5 | |
11816 | rm -rf conftest* | |
11817 | ac_cv_c_const=no | |
10f2d63a | 11818 | fi |
698dcdb6 | 11819 | rm -f conftest* |
10f2d63a | 11820 | fi |
1e487827 | 11821 | |
698dcdb6 VZ |
11822 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
11823 | if test $ac_cv_c_const = no; then | |
11824 | cat >> confdefs.h <<\EOF | |
11825 | #define const | |
10f2d63a VZ |
11826 | EOF |
11827 | ||
11828 | fi | |
11829 | ||
698dcdb6 | 11830 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
29fd3c0c | 11831 | echo "configure:11832: checking for inline" >&5 |
698dcdb6 VZ |
11832 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
11833 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
11834 | else |
11835 | ac_cv_c_inline=no | |
11836 | for ac_kw in inline __inline__ __inline; do | |
698dcdb6 | 11837 | cat > conftest.$ac_ext <<EOF |
29fd3c0c | 11838 | #line 11839 "configure" |
10f2d63a VZ |
11839 | #include "confdefs.h" |
11840 | ||
698dcdb6 VZ |
11841 | int main() { |
11842 | } $ac_kw foo() { | |
11843 | ; return 0; } | |
11844 | EOF | |
29fd3c0c | 11845 | if { (eval echo configure:11846: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 11846 | rm -rf conftest* |
10f2d63a VZ |
11847 | ac_cv_c_inline=$ac_kw; break |
11848 | else | |
698dcdb6 VZ |
11849 | echo "configure: failed program was:" >&5 |
11850 | cat conftest.$ac_ext >&5 | |
10f2d63a | 11851 | fi |
698dcdb6 | 11852 | rm -f conftest* |
10f2d63a VZ |
11853 | done |
11854 | ||
11855 | fi | |
698dcdb6 VZ |
11856 | |
11857 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | |
11858 | case "$ac_cv_c_inline" in | |
10f2d63a | 11859 | inline | yes) ;; |
698dcdb6 VZ |
11860 | no) cat >> confdefs.h <<\EOF |
11861 | #define inline | |
10f2d63a VZ |
11862 | EOF |
11863 | ;; | |
698dcdb6 | 11864 | *) cat >> confdefs.h <<EOF |
10f2d63a VZ |
11865 | #define inline $ac_cv_c_inline |
11866 | EOF | |
11867 | ;; | |
11868 | esac | |
11869 | ||
698dcdb6 VZ |
11870 | |
11871 | echo $ac_n "checking size of char""... $ac_c" 1>&6 | |
29fd3c0c | 11872 | echo "configure:11873: checking size of char" >&5 |
698dcdb6 VZ |
11873 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
11874 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6232543b | 11875 | else |
1e487827 | 11876 | if test "$cross_compiling" = yes; then |
698dcdb6 | 11877 | ac_cv_sizeof_char=1 |
1e487827 | 11878 | else |
698dcdb6 | 11879 | cat > conftest.$ac_ext <<EOF |
29fd3c0c | 11880 | #line 11881 "configure" |
1e487827 | 11881 | #include "confdefs.h" |
698dcdb6 VZ |
11882 | #include <stdio.h> |
11883 | main() | |
1e487827 | 11884 | { |
698dcdb6 VZ |
11885 | FILE *f=fopen("conftestval", "w"); |
11886 | if (!f) exit(1); | |
11887 | fprintf(f, "%d\n", sizeof(char)); | |
11888 | exit(0); | |
1e487827 | 11889 | } |
698dcdb6 | 11890 | EOF |
29fd3c0c | 11891 | if { (eval echo configure:11892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
11892 | then |
11893 | ac_cv_sizeof_char=`cat conftestval` | |
1e487827 | 11894 | else |
698dcdb6 VZ |
11895 | echo "configure: failed program was:" >&5 |
11896 | cat conftest.$ac_ext >&5 | |
11897 | rm -fr conftest* | |
1e487827 VS |
11898 | ac_cv_sizeof_char=0 |
11899 | fi | |
698dcdb6 | 11900 | rm -fr conftest* |
1e487827 | 11901 | fi |
10f2d63a | 11902 | |
1e487827 | 11903 | fi |
698dcdb6 VZ |
11904 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 |
11905 | cat >> confdefs.h <<EOF | |
11906 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
1e487827 | 11907 | EOF |
6232543b | 11908 | |
703e0a69 | 11909 | |
698dcdb6 | 11910 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
29fd3c0c | 11911 | echo "configure:11912: checking size of short" >&5 |
698dcdb6 VZ |
11912 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
11913 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 11914 | else |
1e487827 | 11915 | if test "$cross_compiling" = yes; then |
698dcdb6 | 11916 | ac_cv_sizeof_short=2 |
1e487827 | 11917 | else |
698dcdb6 | 11918 | cat > conftest.$ac_ext <<EOF |
29fd3c0c | 11919 | #line 11920 "configure" |
1e487827 | 11920 | #include "confdefs.h" |
698dcdb6 VZ |
11921 | #include <stdio.h> |
11922 | main() | |
1e487827 | 11923 | { |
698dcdb6 VZ |
11924 | FILE *f=fopen("conftestval", "w"); |
11925 | if (!f) exit(1); | |
11926 | fprintf(f, "%d\n", sizeof(short)); | |
11927 | exit(0); | |
1e487827 | 11928 | } |
698dcdb6 | 11929 | EOF |
29fd3c0c | 11930 | if { (eval echo configure:11931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
11931 | then |
11932 | ac_cv_sizeof_short=`cat conftestval` | |
1e487827 | 11933 | else |
698dcdb6 VZ |
11934 | echo "configure: failed program was:" >&5 |
11935 | cat conftest.$ac_ext >&5 | |
11936 | rm -fr conftest* | |
11937 | ac_cv_sizeof_short=0 | |
1e487827 | 11938 | fi |
698dcdb6 | 11939 | rm -fr conftest* |
1e487827 | 11940 | fi |
698dcdb6 | 11941 | |
1e487827 | 11942 | fi |
698dcdb6 VZ |
11943 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
11944 | cat >> confdefs.h <<EOF | |
11945 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
11946 | EOF | |
11947 | ||
11948 | ||
11949 | echo $ac_n "checking size of int *""... $ac_c" 1>&6 | |
29fd3c0c | 11950 | echo "configure:11951: checking size of int *" >&5 |
698dcdb6 VZ |
11951 | if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then |
11952 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
11953 | else |
11954 | if test "$cross_compiling" = yes; then | |
698dcdb6 | 11955 | ac_cv_sizeof_int_p=4 |
10f2d63a | 11956 | else |
698dcdb6 | 11957 | cat > conftest.$ac_ext <<EOF |
29fd3c0c | 11958 | #line 11959 "configure" |
10f2d63a | 11959 | #include "confdefs.h" |
698dcdb6 VZ |
11960 | #include <stdio.h> |
11961 | main() | |
10f2d63a | 11962 | { |
698dcdb6 VZ |
11963 | FILE *f=fopen("conftestval", "w"); |
11964 | if (!f) exit(1); | |
11965 | fprintf(f, "%d\n", sizeof(int *)); | |
11966 | exit(0); | |
10f2d63a | 11967 | } |
698dcdb6 | 11968 | EOF |
29fd3c0c | 11969 | if { (eval echo configure:11970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
11970 | then |
11971 | ac_cv_sizeof_int_p=`cat conftestval` | |
10f2d63a | 11972 | else |
698dcdb6 VZ |
11973 | echo "configure: failed program was:" >&5 |
11974 | cat conftest.$ac_ext >&5 | |
11975 | rm -fr conftest* | |
11976 | ac_cv_sizeof_int_p=0 | |
6232543b | 11977 | fi |
698dcdb6 | 11978 | rm -fr conftest* |
1e487827 | 11979 | fi |
698dcdb6 | 11980 | |
1e487827 | 11981 | fi |
698dcdb6 VZ |
11982 | echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6 |
11983 | cat >> confdefs.h <<EOF | |
11984 | #define SIZEOF_INT_P $ac_cv_sizeof_int_p | |
10f2d63a VZ |
11985 | EOF |
11986 | ||
698dcdb6 VZ |
11987 | |
11988 | echo $ac_n "checking size of int""... $ac_c" 1>&6 | |
29fd3c0c | 11989 | echo "configure:11990: checking size of int" >&5 |
698dcdb6 VZ |
11990 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
11991 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
11992 | else |
11993 | if test "$cross_compiling" = yes; then | |
698dcdb6 | 11994 | ac_cv_sizeof_int=4 |
703e0a69 | 11995 | else |
698dcdb6 | 11996 | cat > conftest.$ac_ext <<EOF |
29fd3c0c | 11997 | #line 11998 "configure" |
1e487827 | 11998 | #include "confdefs.h" |
698dcdb6 VZ |
11999 | #include <stdio.h> |
12000 | main() | |
1e487827 | 12001 | { |
698dcdb6 VZ |
12002 | FILE *f=fopen("conftestval", "w"); |
12003 | if (!f) exit(1); | |
12004 | fprintf(f, "%d\n", sizeof(int)); | |
12005 | exit(0); | |
1e487827 | 12006 | } |
698dcdb6 | 12007 | EOF |
29fd3c0c | 12008 | if { (eval echo configure:12009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
12009 | then |
12010 | ac_cv_sizeof_int=`cat conftestval` | |
12011 | else | |
12012 | echo "configure: failed program was:" >&5 | |
12013 | cat conftest.$ac_ext >&5 | |
12014 | rm -fr conftest* | |
12015 | ac_cv_sizeof_int=0 | |
703e0a69 | 12016 | fi |
698dcdb6 VZ |
12017 | rm -fr conftest* |
12018 | fi | |
12019 | ||
12020 | fi | |
12021 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | |
12022 | cat >> confdefs.h <<EOF | |
12023 | #define SIZEOF_INT $ac_cv_sizeof_int | |
12024 | EOF | |
12025 | ||
12026 | ||
12027 | echo $ac_n "checking size of long""... $ac_c" 1>&6 | |
29fd3c0c | 12028 | echo "configure:12029: checking size of long" >&5 |
698dcdb6 VZ |
12029 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
12030 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
12031 | else |
12032 | if test "$cross_compiling" = yes; then | |
698dcdb6 | 12033 | ac_cv_sizeof_long=4 |
10f2d63a | 12034 | else |
698dcdb6 | 12035 | cat > conftest.$ac_ext <<EOF |
29fd3c0c | 12036 | #line 12037 "configure" |
10f2d63a | 12037 | #include "confdefs.h" |
698dcdb6 VZ |
12038 | #include <stdio.h> |
12039 | main() | |
10f2d63a | 12040 | { |
698dcdb6 VZ |
12041 | FILE *f=fopen("conftestval", "w"); |
12042 | if (!f) exit(1); | |
12043 | fprintf(f, "%d\n", sizeof(long)); | |
12044 | exit(0); | |
10f2d63a | 12045 | } |
698dcdb6 | 12046 | EOF |
29fd3c0c | 12047 | if { (eval echo configure:12048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
12048 | then |
12049 | ac_cv_sizeof_long=`cat conftestval` | |
10f2d63a | 12050 | else |
698dcdb6 VZ |
12051 | echo "configure: failed program was:" >&5 |
12052 | cat conftest.$ac_ext >&5 | |
12053 | rm -fr conftest* | |
12054 | ac_cv_sizeof_long=0 | |
10f2d63a | 12055 | fi |
698dcdb6 | 12056 | rm -fr conftest* |
10f2d63a | 12057 | fi |
698dcdb6 | 12058 | |
10f2d63a | 12059 | fi |
698dcdb6 VZ |
12060 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 |
12061 | cat >> confdefs.h <<EOF | |
12062 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
12063 | EOF | |
12064 | ||
12065 | ||
12066 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
29fd3c0c | 12067 | echo "configure:12068: checking size of long long" >&5 |
698dcdb6 VZ |
12068 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
12069 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12070 | else | |
12071 | if test "$cross_compiling" = yes; then | |
12072 | ac_cv_sizeof_long_long=0 | |
12073 | else | |
12074 | cat > conftest.$ac_ext <<EOF | |
29fd3c0c | 12075 | #line 12076 "configure" |
698dcdb6 VZ |
12076 | #include "confdefs.h" |
12077 | #include <stdio.h> | |
12078 | main() | |
12079 | { | |
12080 | FILE *f=fopen("conftestval", "w"); | |
12081 | if (!f) exit(1); | |
12082 | fprintf(f, "%d\n", sizeof(long long)); | |
12083 | exit(0); | |
12084 | } | |
12085 | EOF | |
29fd3c0c | 12086 | if { (eval echo configure:12087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
12087 | then |
12088 | ac_cv_sizeof_long_long=`cat conftestval` | |
6232543b | 12089 | else |
698dcdb6 VZ |
12090 | echo "configure: failed program was:" >&5 |
12091 | cat conftest.$ac_ext >&5 | |
12092 | rm -fr conftest* | |
6232543b VS |
12093 | ac_cv_sizeof_long_long=0 |
12094 | fi | |
698dcdb6 VZ |
12095 | rm -fr conftest* |
12096 | fi | |
12097 | ||
703e0a69 | 12098 | fi |
698dcdb6 VZ |
12099 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
12100 | cat >> confdefs.h <<EOF | |
10f2d63a VZ |
12101 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
12102 | EOF | |
12103 | ||
1e487827 | 12104 | |
698dcdb6 VZ |
12105 | |
12106 | echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6 | |
29fd3c0c | 12107 | echo "configure:12108: checking size of wchar_t" >&5 |
698dcdb6 VZ |
12108 | if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then |
12109 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12110 | else | |
12111 | ||
b93d0d08 VS |
12112 | if test "$cross_compiling" = yes; then |
12113 | wx_cv_sizeof_wchar_t=4 | |
1e6feb95 | 12114 | |
b93d0d08 | 12115 | else |
698dcdb6 | 12116 | cat > conftest.$ac_ext <<EOF |
29fd3c0c | 12117 | #line 12118 "configure" |
b93d0d08 VS |
12118 | #include "confdefs.h" |
12119 | ||
1e6feb95 VZ |
12120 | #ifdef HAVE_WCHAR_H |
12121 | # include <wchar.h> | |
12122 | #endif | |
12123 | #ifdef HAVE_STDLIB_H | |
12124 | # include <stdlib.h> | |
12125 | #endif | |
12126 | #include <stdio.h> | |
12127 | int main() | |
12128 | { | |
12129 | FILE *f=fopen("conftestval", "w"); | |
12130 | if (!f) exit(1); | |
12131 | fprintf(f, "%i", sizeof(wchar_t)); | |
12132 | exit(0); | |
12133 | } | |
698dcdb6 VZ |
12134 | |
12135 | EOF | |
29fd3c0c | 12136 | if { (eval echo configure:12137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 12137 | then |
b93d0d08 VS |
12138 | wx_cv_sizeof_wchar_t=`cat conftestval` |
12139 | else | |
698dcdb6 VZ |
12140 | echo "configure: failed program was:" >&5 |
12141 | cat conftest.$ac_ext >&5 | |
12142 | rm -fr conftest* | |
12143 | wx_cv_sizeof_wchar_t=0 | |
b93d0d08 | 12144 | fi |
698dcdb6 | 12145 | rm -fr conftest* |
b93d0d08 VS |
12146 | fi |
12147 | ||
698dcdb6 | 12148 | |
b93d0d08 VS |
12149 | fi |
12150 | ||
698dcdb6 VZ |
12151 | echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6 |
12152 | ||
12153 | cat >> confdefs.h <<EOF | |
28c6addc | 12154 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t |
b93d0d08 VS |
12155 | EOF |
12156 | ||
698dcdb6 | 12157 | |
698dcdb6 | 12158 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
29fd3c0c | 12159 | echo "configure:12160: checking whether byte ordering is bigendian" >&5 |
698dcdb6 VZ |
12160 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
12161 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
12162 | else |
12163 | ac_cv_c_bigendian=unknown | |
12164 | # See if sys/param.h defines the BYTE_ORDER macro. | |
698dcdb6 | 12165 | cat > conftest.$ac_ext <<EOF |
29fd3c0c | 12166 | #line 12167 "configure" |
10f2d63a VZ |
12167 | #include "confdefs.h" |
12168 | #include <sys/types.h> | |
12169 | #include <sys/param.h> | |
698dcdb6 | 12170 | int main() { |
10f2d63a VZ |
12171 | |
12172 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
12173 | bogus endian macros | |
12174 | #endif | |
698dcdb6 VZ |
12175 | ; return 0; } |
12176 | EOF | |
29fd3c0c | 12177 | if { (eval echo configure:12178: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 12178 | rm -rf conftest* |
10f2d63a | 12179 | # It does; now see whether it defined to BIG_ENDIAN or not. |
698dcdb6 | 12180 | cat > conftest.$ac_ext <<EOF |
29fd3c0c | 12181 | #line 12182 "configure" |
10f2d63a VZ |
12182 | #include "confdefs.h" |
12183 | #include <sys/types.h> | |
12184 | #include <sys/param.h> | |
698dcdb6 | 12185 | int main() { |
10f2d63a VZ |
12186 | |
12187 | #if BYTE_ORDER != BIG_ENDIAN | |
12188 | not big endian | |
12189 | #endif | |
698dcdb6 VZ |
12190 | ; return 0; } |
12191 | EOF | |
29fd3c0c | 12192 | if { (eval echo configure:12193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 12193 | rm -rf conftest* |
10f2d63a VZ |
12194 | ac_cv_c_bigendian=yes |
12195 | else | |
698dcdb6 VZ |
12196 | echo "configure: failed program was:" >&5 |
12197 | cat conftest.$ac_ext >&5 | |
12198 | rm -rf conftest* | |
12199 | ac_cv_c_bigendian=no | |
10f2d63a | 12200 | fi |
698dcdb6 | 12201 | rm -f conftest* |
10f2d63a | 12202 | else |
698dcdb6 VZ |
12203 | echo "configure: failed program was:" >&5 |
12204 | cat conftest.$ac_ext >&5 | |
10f2d63a | 12205 | fi |
698dcdb6 | 12206 | rm -f conftest* |
10f2d63a VZ |
12207 | if test $ac_cv_c_bigendian = unknown; then |
12208 | if test "$cross_compiling" = yes; then | |
12209 | ac_cv_c_bigendian=unknown | |
12210 | else | |
698dcdb6 | 12211 | cat > conftest.$ac_ext <<EOF |
29fd3c0c | 12212 | #line 12213 "configure" |
10f2d63a VZ |
12213 | #include "confdefs.h" |
12214 | main () { | |
12215 | /* Are we little or big endian? From Harbison&Steele. */ | |
12216 | union | |
12217 | { | |
12218 | long l; | |
12219 | char c[sizeof (long)]; | |
12220 | } u; | |
12221 | u.l = 1; | |
12222 | exit (u.c[sizeof (long) - 1] == 1); | |
12223 | } | |
698dcdb6 | 12224 | EOF |
29fd3c0c | 12225 | if { (eval echo configure:12226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 12226 | then |
10f2d63a VZ |
12227 | ac_cv_c_bigendian=no |
12228 | else | |
698dcdb6 VZ |
12229 | echo "configure: failed program was:" >&5 |
12230 | cat conftest.$ac_ext >&5 | |
12231 | rm -fr conftest* | |
12232 | ac_cv_c_bigendian=yes | |
10f2d63a | 12233 | fi |
698dcdb6 | 12234 | rm -fr conftest* |
10f2d63a | 12235 | fi |
698dcdb6 | 12236 | |
10f2d63a VZ |
12237 | fi |
12238 | fi | |
698dcdb6 VZ |
12239 | |
12240 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | |
10f2d63a | 12241 | if test $ac_cv_c_bigendian = unknown; then |
698dcdb6 | 12242 | 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 |
12243 | fi |
12244 | if test $ac_cv_c_bigendian = yes; then | |
698dcdb6 | 12245 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
12246 | #define WORDS_BIGENDIAN 1 |
12247 | EOF | |
12248 | ||
12249 | fi | |
12250 | ||
698dcdb6 VZ |
12251 | |
12252 | ||
10f2d63a | 12253 | if test "$cross_compiling" = "yes"; then |
698dcdb6 | 12254 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
12255 | #define wxUSE_IOSTREAMH 1 |
12256 | EOF | |
12257 | ||
12258 | else | |
698dcdb6 VZ |
12259 | |
12260 | ac_ext=C | |
12261 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 12262 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
12263 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12264 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12265 | cross_compiling=$ac_cv_prog_cxx_cross | |
12266 | ||
703e0a69 | 12267 | |
698dcdb6 | 12268 | for ac_hdr in iostream |
10f2d63a | 12269 | do |
698dcdb6 VZ |
12270 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12271 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
29fd3c0c | 12272 | echo "configure:12273: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
12273 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12274 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12275 | else | |
12276 | cat > conftest.$ac_ext <<EOF | |
29fd3c0c | 12277 | #line 12278 "configure" |
10f2d63a | 12278 | #include "confdefs.h" |
698dcdb6 VZ |
12279 | #include <$ac_hdr> |
12280 | EOF | |
12281 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
29fd3c0c | 12282 | { (eval echo configure:12283: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
12283 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12284 | if test -z "$ac_err"; then | |
12285 | rm -rf conftest* | |
12286 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 12287 | else |
698dcdb6 VZ |
12288 | echo "$ac_err" >&5 |
12289 | echo "configure: failed program was:" >&5 | |
10f2d63a | 12290 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
12291 | rm -rf conftest* |
12292 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 12293 | fi |
698dcdb6 | 12294 | rm -f conftest* |
10f2d63a | 12295 | fi |
698dcdb6 VZ |
12296 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12297 | echo "$ac_t""yes" 1>&6 | |
12298 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12299 | cat >> confdefs.h <<EOF | |
12300 | #define $ac_tr_hdr 1 | |
10f2d63a | 12301 | EOF |
698dcdb6 VZ |
12302 | |
12303 | else | |
12304 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
12305 | fi |
12306 | done | |
12307 | ||
698dcdb6 | 12308 | |
57fe5ed0 VZ |
12309 | if test "$ac_cv_header_iostream" = "yes" ; then |
12310 | : | |
12311 | else | |
698dcdb6 | 12312 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
12313 | #define wxUSE_IOSTREAMH 1 |
12314 | EOF | |
12315 | ||
10f2d63a VZ |
12316 | fi |
12317 | ||
12318 | ac_ext=c | |
698dcdb6 | 12319 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 12320 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
12321 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12322 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12323 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a VZ |
12324 | |
12325 | fi | |
12326 | ||
703e0a69 | 12327 | |
698dcdb6 VZ |
12328 | |
12329 | echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6 | |
29fd3c0c | 12330 | echo "configure:12331: checking if C++ compiler supports bool" >&5 |
698dcdb6 VZ |
12331 | if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then |
12332 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12333 | else | |
12334 | ||
12335 | ||
12336 | ac_ext=C | |
12337 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 12338 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
12339 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12340 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12341 | cross_compiling=$ac_cv_prog_cxx_cross | |
10f2d63a | 12342 | |
698dcdb6 VZ |
12343 | |
12344 | cat > conftest.$ac_ext <<EOF | |
29fd3c0c | 12345 | #line 12346 "configure" |
10f2d63a VZ |
12346 | #include "confdefs.h" |
12347 | ||
698dcdb6 VZ |
12348 | |
12349 | int main() { | |
10f2d63a VZ |
12350 | |
12351 | bool b = true; | |
12352 | ||
12353 | return 0; | |
698dcdb6 VZ |
12354 | |
12355 | ; return 0; } | |
12356 | EOF | |
29fd3c0c | 12357 | if { (eval echo configure:12358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
12358 | rm -rf conftest* |
12359 | ||
10f2d63a | 12360 | wx_cv_cpp_bool=yes |
698dcdb6 | 12361 | |
10f2d63a | 12362 | else |
698dcdb6 VZ |
12363 | echo "configure: failed program was:" >&5 |
12364 | cat conftest.$ac_ext >&5 | |
12365 | rm -rf conftest* | |
12366 | ||
10f2d63a | 12367 | wx_cv_cpp_bool=no |
698dcdb6 VZ |
12368 | |
12369 | ||
10f2d63a | 12370 | fi |
698dcdb6 | 12371 | rm -f conftest* |
10f2d63a VZ |
12372 | |
12373 | ac_ext=c | |
698dcdb6 | 12374 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 12375 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
12376 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12377 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12378 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a | 12379 | |
698dcdb6 | 12380 | |
10f2d63a | 12381 | fi |
698dcdb6 VZ |
12382 | |
12383 | echo "$ac_t""$wx_cv_cpp_bool" 1>&6 | |
10f2d63a VZ |
12384 | |
12385 | if test "$wx_cv_cpp_bool" = "yes"; then | |
698dcdb6 | 12386 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
12387 | #define HAVE_BOOL 1 |
12388 | EOF | |
12389 | ||
12390 | fi | |
12391 | ||
1e487827 | 12392 | |
698dcdb6 | 12393 | |
698dcdb6 | 12394 | echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6 |
29fd3c0c | 12395 | echo "configure:12396: checking for wcslen in -lc" >&5 |
698dcdb6 VZ |
12396 | ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'` |
12397 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12398 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12399 | else |
698dcdb6 | 12400 | ac_save_LIBS="$LIBS" |
10f2d63a | 12401 | LIBS="-lc $LIBS" |
698dcdb6 | 12402 | cat > conftest.$ac_ext <<EOF |
29fd3c0c | 12403 | #line 12404 "configure" |
10f2d63a VZ |
12404 | #include "confdefs.h" |
12405 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12406 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12407 | builtin and then its argument prototype would still apply. */ |
12408 | char wcslen(); | |
12409 | ||
12410 | int main() { | |
12411 | wcslen() | |
12412 | ; return 0; } | |
12413 | EOF | |
29fd3c0c | 12414 | if { (eval echo configure:12415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12415 | rm -rf conftest* |
12416 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12417 | else | |
12418 | echo "configure: failed program was:" >&5 | |
12419 | cat conftest.$ac_ext >&5 | |
12420 | rm -rf conftest* | |
12421 | eval "ac_cv_lib_$ac_lib_var=no" | |
12422 | fi | |
12423 | rm -f conftest* | |
12424 | LIBS="$ac_save_LIBS" | |
12425 | ||
12426 | fi | |
12427 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12428 | echo "$ac_t""yes" 1>&6 | |
12429 | ||
12430 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
12431 | #define HAVE_WCSLEN 1 |
12432 | EOF | |
12433 | ||
12434 | WCHAR_LINK="" | |
698dcdb6 | 12435 | |
10f2d63a | 12436 | else |
698dcdb6 | 12437 | echo "$ac_t""no" 1>&6 |
10f2d63a | 12438 | |
698dcdb6 | 12439 | echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6 |
29fd3c0c | 12440 | echo "configure:12441: checking for wcslen in -lw" >&5 |
698dcdb6 VZ |
12441 | ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'` |
12442 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12443 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12444 | else |
698dcdb6 | 12445 | ac_save_LIBS="$LIBS" |
10f2d63a | 12446 | LIBS="-lw $LIBS" |
698dcdb6 | 12447 | cat > conftest.$ac_ext <<EOF |
29fd3c0c | 12448 | #line 12449 "configure" |
10f2d63a VZ |
12449 | #include "confdefs.h" |
12450 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12451 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12452 | builtin and then its argument prototype would still apply. */ |
12453 | char wcslen(); | |
12454 | ||
12455 | int main() { | |
12456 | wcslen() | |
12457 | ; return 0; } | |
12458 | EOF | |
29fd3c0c | 12459 | if { (eval echo configure:12460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12460 | rm -rf conftest* |
12461 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12462 | else | |
12463 | echo "configure: failed program was:" >&5 | |
12464 | cat conftest.$ac_ext >&5 | |
12465 | rm -rf conftest* | |
12466 | eval "ac_cv_lib_$ac_lib_var=no" | |
12467 | fi | |
12468 | rm -f conftest* | |
12469 | LIBS="$ac_save_LIBS" | |
12470 | ||
12471 | fi | |
12472 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12473 | echo "$ac_t""yes" 1>&6 | |
12474 | ||
12475 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
12476 | #define HAVE_WCSLEN 1 |
12477 | EOF | |
12478 | ||
12479 | WCHAR_LINK="-lw" | |
698dcdb6 VZ |
12480 | |
12481 | else | |
12482 | echo "$ac_t""no" 1>&6 | |
6232543b | 12483 | fi |
10f2d63a | 12484 | |
698dcdb6 | 12485 | |
1e487827 | 12486 | fi |
703e0a69 | 12487 | |
698dcdb6 VZ |
12488 | |
12489 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 | |
29fd3c0c | 12490 | echo "configure:12491: checking for vprintf" >&5 |
698dcdb6 VZ |
12491 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
12492 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12493 | else | |
12494 | cat > conftest.$ac_ext <<EOF | |
29fd3c0c | 12495 | #line 12496 "configure" |
10f2d63a VZ |
12496 | #include "confdefs.h" |
12497 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 12498 | which can conflict with char vprintf(); below. */ |
10f2d63a VZ |
12499 | #include <assert.h> |
12500 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12501 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12502 | builtin and then its argument prototype would still apply. */ |
12503 | char vprintf(); | |
12504 | ||
12505 | int main() { | |
10f2d63a VZ |
12506 | |
12507 | /* The GNU C library defines this for functions which it implements | |
12508 | to always fail with ENOSYS. Some functions are actually named | |
12509 | something starting with __ and the normal name is an alias. */ | |
698dcdb6 | 12510 | #if defined (__stub_vprintf) || defined (__stub___vprintf) |
10f2d63a VZ |
12511 | choke me |
12512 | #else | |
698dcdb6 | 12513 | vprintf(); |
10f2d63a VZ |
12514 | #endif |
12515 | ||
698dcdb6 VZ |
12516 | ; return 0; } |
12517 | EOF | |
29fd3c0c | 12518 | if { (eval echo configure:12519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12519 | rm -rf conftest* |
12520 | eval "ac_cv_func_vprintf=yes" | |
12521 | else | |
12522 | echo "configure: failed program was:" >&5 | |
12523 | cat conftest.$ac_ext >&5 | |
12524 | rm -rf conftest* | |
12525 | eval "ac_cv_func_vprintf=no" | |
12526 | fi | |
12527 | rm -f conftest* | |
12528 | fi | |
12529 | ||
12530 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then | |
12531 | echo "$ac_t""yes" 1>&6 | |
12532 | cat >> confdefs.h <<\EOF | |
12533 | #define HAVE_VPRINTF 1 | |
12534 | EOF | |
12535 | ||
12536 | else | |
12537 | echo "$ac_t""no" 1>&6 | |
12538 | fi | |
12539 | ||
12540 | if test "$ac_cv_func_vprintf" != yes; then | |
12541 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | |
29fd3c0c | 12542 | echo "configure:12543: checking for _doprnt" >&5 |
698dcdb6 VZ |
12543 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
12544 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12545 | else | |
12546 | cat > conftest.$ac_ext <<EOF | |
29fd3c0c | 12547 | #line 12548 "configure" |
10f2d63a VZ |
12548 | #include "confdefs.h" |
12549 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 12550 | which can conflict with char _doprnt(); below. */ |
10f2d63a VZ |
12551 | #include <assert.h> |
12552 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12553 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12554 | builtin and then its argument prototype would still apply. */ |
12555 | char _doprnt(); | |
12556 | ||
12557 | int main() { | |
10f2d63a VZ |
12558 | |
12559 | /* The GNU C library defines this for functions which it implements | |
12560 | to always fail with ENOSYS. Some functions are actually named | |
12561 | something starting with __ and the normal name is an alias. */ | |
12562 | #if defined (__stub__doprnt) || defined (__stub____doprnt) | |
12563 | choke me | |
12564 | #else | |
698dcdb6 | 12565 | _doprnt(); |
10f2d63a VZ |
12566 | #endif |
12567 | ||
698dcdb6 VZ |
12568 | ; return 0; } |
12569 | EOF | |
29fd3c0c | 12570 | if { (eval echo configure:12571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12571 | rm -rf conftest* |
12572 | eval "ac_cv_func__doprnt=yes" | |
12573 | else | |
12574 | echo "configure: failed program was:" >&5 | |
12575 | cat conftest.$ac_ext >&5 | |
12576 | rm -rf conftest* | |
12577 | eval "ac_cv_func__doprnt=no" | |
12578 | fi | |
12579 | rm -f conftest* | |
12580 | fi | |
12581 | ||
12582 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then | |
12583 | echo "$ac_t""yes" 1>&6 | |
12584 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
12585 | #define HAVE_DOPRNT 1 |
12586 | EOF | |
12587 | ||
698dcdb6 VZ |
12588 | else |
12589 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
12590 | fi |
12591 | ||
12592 | fi | |
12593 | ||
1e487827 | 12594 | |
698dcdb6 VZ |
12595 | |
12596 | ||
12597 | ||
12598 | ||
12599 | ||
12600 | echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6 | |
29fd3c0c | 12601 | echo "configure:12602: checking for vsnprintf" >&5 |
698dcdb6 VZ |
12602 | if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then |
12603 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12604 | else | |
12605 | ||
12606 | cat > conftest.$ac_ext <<EOF | |
29fd3c0c | 12607 | #line 12608 "configure" |
f6bcfd97 BP |
12608 | #include "confdefs.h" |
12609 | ||
12610 | #include <stdio.h> | |
698dcdb6 VZ |
12611 | #include <stdarg.h> |
12612 | ||
12613 | int main() { | |
10f2d63a | 12614 | |
f6bcfd97 | 12615 | int wx_test_vsnprintf(const char *, ...); |
10f2d63a | 12616 | |
f6bcfd97 BP |
12617 | wx_test_vsnprintf("%s"); |
12618 | return 0; | |
12619 | } | |
12620 | ||
12621 | int wx_test_vsnprintf(const char *fmt, ...) | |
12622 | { | |
12623 | char *s; | |
12624 | ||
12625 | va_list argp; | |
12626 | va_start(argp, fmt); | |
12627 | vsnprintf(s, 42, fmt, argp); | |
12628 | va_end(argp); | |
698dcdb6 VZ |
12629 | |
12630 | ; return 0; } | |
12631 | EOF | |
29fd3c0c | 12632 | if { (eval echo configure:12633: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
12633 | rm -rf conftest* |
12634 | ||
f6bcfd97 | 12635 | wx_cv_func_vsnprintf=yes |
698dcdb6 | 12636 | |
10f2d63a | 12637 | else |
698dcdb6 VZ |
12638 | echo "configure: failed program was:" >&5 |
12639 | cat conftest.$ac_ext >&5 | |
12640 | rm -rf conftest* | |
12641 | ||
12642 | cat > conftest.$ac_ext <<EOF | |
29fd3c0c | 12643 | #line 12644 "configure" |
c521c494 RL |
12644 | #include "confdefs.h" |
12645 | ||
12646 | #include <stdio.h> | |
12647 | #include <stdarg.h> | |
698dcdb6 VZ |
12648 | |
12649 | int main() { | |
c521c494 RL |
12650 | |
12651 | int wx_test_vsnprintf(const char *, ...); | |
12652 | ||
12653 | wx_test_vsnprintf("%s"); | |
12654 | return 0; | |
12655 | } | |
12656 | ||
12657 | int wx_test_vsnprintf(const char *fmt, ...) | |
12658 | { | |
12659 | char *s; | |
12660 | ||
12661 | va_list argp; | |
12662 | va_start(argp, fmt); | |
12663 | _vsnprintf(s, 42, fmt, argp); | |
12664 | va_end(argp); | |
698dcdb6 VZ |
12665 | |
12666 | ; return 0; } | |
12667 | EOF | |
29fd3c0c | 12668 | if { (eval echo configure:12669: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
12669 | rm -rf conftest* |
12670 | ||
c521c494 | 12671 | wx_cv_func_vsnprintf=yes |
698dcdb6 | 12672 | |
c521c494 | 12673 | else |
698dcdb6 VZ |
12674 | echo "configure: failed program was:" >&5 |
12675 | cat conftest.$ac_ext >&5 | |
12676 | rm -rf conftest* | |
12677 | ||
c521c494 | 12678 | wx_cv_func_vsnprintf=no |
698dcdb6 | 12679 | |
10f2d63a | 12680 | fi |
698dcdb6 VZ |
12681 | rm -f conftest* |
12682 | ||
6232543b | 12683 | fi |
698dcdb6 | 12684 | rm -f conftest* |
703e0a69 | 12685 | |
1e487827 | 12686 | fi |
698dcdb6 VZ |
12687 | |
12688 | echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6 | |
10f2d63a | 12689 | |
9d8deca0 | 12690 | if test "$wx_cv_func_vsnprintf" = yes; then |
698dcdb6 | 12691 | cat >> confdefs.h <<\EOF |
9d8deca0 VZ |
12692 | #define HAVE_VSNPRINTF 1 |
12693 | EOF | |
12694 | ||
12695 | else | |
698dcdb6 | 12696 | echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2 |
9d8deca0 VZ |
12697 | fi |
12698 | ||
698dcdb6 | 12699 | echo $ac_n "checking for vsscanf""... $ac_c" 1>&6 |
29fd3c0c | 12700 | echo "configure:12701: checking for vsscanf" >&5 |
698dcdb6 VZ |
12701 | if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then |
12702 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12703 | else |
698dcdb6 VZ |
12704 | |
12705 | cat > conftest.$ac_ext <<EOF | |
29fd3c0c | 12706 | #line 12707 "configure" |
10f2d63a | 12707 | #include "confdefs.h" |
10f2d63a | 12708 | |
f6bcfd97 BP |
12709 | #include <stdio.h> |
12710 | #include <stdarg.h> | |
698dcdb6 VZ |
12711 | |
12712 | int main() { | |
10f2d63a | 12713 | |
f6bcfd97 | 12714 | int wx_test_vsscanf(const char *, ...); |
10f2d63a | 12715 | |
f6bcfd97 BP |
12716 | wx_test_vsscanf("%d"); |
12717 | return 0; | |
10f2d63a VZ |
12718 | } |
12719 | ||
f6bcfd97 | 12720 | int wx_test_vsscanf(const char *fmt, ...) |
10f2d63a | 12721 | { |
f6bcfd97 BP |
12722 | va_list argp; |
12723 | va_start(argp, fmt); | |
12724 | vsscanf("42", fmt, argp); | |
12725 | va_end(argp); | |
698dcdb6 VZ |
12726 | |
12727 | ; return 0; } | |
12728 | EOF | |
29fd3c0c | 12729 | if { (eval echo configure:12730: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
12730 | rm -rf conftest* |
12731 | ||
f6bcfd97 | 12732 | wx_cv_func_vsscanf=yes |
698dcdb6 | 12733 | |
10f2d63a | 12734 | else |
698dcdb6 VZ |
12735 | echo "configure: failed program was:" >&5 |
12736 | cat conftest.$ac_ext >&5 | |
12737 | rm -rf conftest* | |
12738 | ||
f6bcfd97 | 12739 | wx_cv_func_vsscanf=no |
698dcdb6 | 12740 | |
6232543b | 12741 | fi |
698dcdb6 | 12742 | rm -f conftest* |
703e0a69 | 12743 | |
1e487827 | 12744 | fi |
698dcdb6 VZ |
12745 | |
12746 | echo "$ac_t""$wx_cv_func_vsscanf" 1>&6 | |
10f2d63a | 12747 | |
9d8deca0 | 12748 | if test "$wx_cv_func_vsscanf" = yes; then |
698dcdb6 | 12749 | cat >> confdefs.h <<\EOF |
9d8deca0 VZ |
12750 | #define HAVE_VSSCANF 1 |
12751 | EOF | |
12752 | ||
12753 | fi | |
12754 | ||
95c8801c VS |
12755 | if test "$TOOLKIT" != "MSW"; then |
12756 | ||
12757 | ||
12758 | ||
698dcdb6 VZ |
12759 | ac_ext=C |
12760 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
12761 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12762 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
12763 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12764 | cross_compiling=$ac_cv_prog_cxx_cross | |
12765 | ||
12766 | echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6 | |
29fd3c0c | 12767 | echo "configure:12768: checking if iconv() takes char**" >&5 |
698dcdb6 VZ |
12768 | if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then |
12769 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12770 | else | |
12771 | ||
12772 | cat > conftest.$ac_ext <<EOF | |
29fd3c0c | 12773 | #line 12774 "configure" |
95c8801c VS |
12774 | #include "confdefs.h" |
12775 | #include <iconv.h> | |
698dcdb6 | 12776 | int main() { |
95c8801c VS |
12777 | |
12778 | char **inbuf, **outbuf; | |
19af3b06 VZ |
12779 | iconv_t cd; |
12780 | size_t insz, outsz; | |
12781 | iconv(cd, inbuf, &insz, outbuf, &outsz); | |
698dcdb6 VZ |
12782 | |
12783 | ; return 0; } | |
12784 | EOF | |
29fd3c0c | 12785 | if { (eval echo configure:12786: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 12786 | rm -rf conftest* |
95c8801c VS |
12787 | wx_cv_iconv_takes_char=yes |
12788 | else | |
698dcdb6 VZ |
12789 | echo "configure: failed program was:" >&5 |
12790 | cat conftest.$ac_ext >&5 | |
12791 | rm -rf conftest* | |
12792 | wx_cv_iconv_takes_char=no | |
95c8801c | 12793 | fi |
698dcdb6 | 12794 | rm -f conftest* |
95c8801c VS |
12795 | |
12796 | fi | |
698dcdb6 VZ |
12797 | |
12798 | echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6 | |
10f2d63a | 12799 | ac_ext=c |
698dcdb6 | 12800 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 12801 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
12802 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12803 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12804 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a | 12805 | |
95c8801c | 12806 | if test "$wx_cv_iconv_takes_char" = yes ; then |
698dcdb6 | 12807 | cat >> confdefs.h <<\EOF |
95c8801c VS |
12808 | #define WX_ICONV_TAKES_CHAR 1 |
12809 | EOF | |
12810 | ||
12811 | fi | |
10f2d63a | 12812 | |
1e487827 | 12813 | |
698dcdb6 VZ |
12814 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
12815 | for ac_func in sigaction | |
eb4efbdc | 12816 | do |
698dcdb6 | 12817 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
29fd3c0c | 12818 | echo "configure:12819: checking for $ac_func" >&5 |
698dcdb6 VZ |
12819 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
12820 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12821 | else | |
12822 | cat > conftest.$ac_ext <<EOF | |
29fd3c0c | 12823 | #line 12824 "configure" |
eb4efbdc VZ |
12824 | #include "confdefs.h" |
12825 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 12826 | which can conflict with char $ac_func(); below. */ |
eb4efbdc VZ |
12827 | #include <assert.h> |
12828 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12829 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12830 | builtin and then its argument prototype would still apply. */ |
12831 | char $ac_func(); | |
12832 | ||
12833 | int main() { | |
eb4efbdc VZ |
12834 | |
12835 | /* The GNU C library defines this for functions which it implements | |
12836 | to always fail with ENOSYS. Some functions are actually named | |
12837 | something starting with __ and the normal name is an alias. */ | |
12838 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12839 | choke me | |
12840 | #else | |
698dcdb6 | 12841 | $ac_func(); |
eb4efbdc VZ |
12842 | #endif |
12843 | ||
698dcdb6 | 12844 | ; return 0; } |
eb4efbdc | 12845 | EOF |
29fd3c0c | 12846 | if { (eval echo configure:12847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12847 | rm -rf conftest* |
12848 | eval "ac_cv_func_$ac_func=yes" | |
12849 | else | |
12850 | echo "configure: failed program was:" >&5 | |
12851 | cat conftest.$ac_ext >&5 | |
12852 | rm -rf conftest* | |
12853 | eval "ac_cv_func_$ac_func=no" | |
12854 | fi | |
12855 | rm -f conftest* | |
12856 | fi | |
eb4efbdc | 12857 | |
698dcdb6 VZ |
12858 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
12859 | echo "$ac_t""yes" 1>&6 | |
12860 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12861 | cat >> confdefs.h <<EOF | |
12862 | #define $ac_tr_func 1 | |
12863 | EOF | |
12864 | ||
12865 | else | |
12866 | echo "$ac_t""no" 1>&6 | |
eb4efbdc VZ |
12867 | fi |
12868 | done | |
12869 | ||
698dcdb6 | 12870 | |
eb4efbdc | 12871 | if test "$ac_cv_func_sigaction" = "no"; then |
698dcdb6 | 12872 | echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2 |
eb4efbdc VZ |
12873 | wxUSE_ON_FATAL_EXCEPTION=no |
12874 | fi | |
f6bcfd97 BP |
12875 | |
12876 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
698dcdb6 VZ |
12877 | |
12878 | ac_ext=C | |
12879 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 12880 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
12881 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12882 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12883 | cross_compiling=$ac_cv_prog_cxx_cross | |
6232543b | 12884 | |
1e487827 | 12885 | |
698dcdb6 | 12886 | echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6 |
29fd3c0c | 12887 | echo "configure:12888: checking for sa_handler type" >&5 |
698dcdb6 VZ |
12888 | if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then |
12889 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12890 | else | |
12891 | ||
12892 | cat > conftest.$ac_ext <<EOF | |
29fd3c0c | 12893 | #line 12894 "configure" |
f6bcfd97 BP |
12894 | #include "confdefs.h" |
12895 | #include <signal.h> | |
698dcdb6 | 12896 | int main() { |
f6bcfd97 BP |
12897 | |
12898 | extern void testSigHandler(int); | |
12899 | ||
12900 | struct sigaction sa; | |
12901 | sa.sa_handler = testSigHandler; | |
698dcdb6 VZ |
12902 | |
12903 | ; return 0; } | |
12904 | EOF | |
29fd3c0c | 12905 | if { (eval echo configure:12906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
12906 | rm -rf conftest* |
12907 | ||
f6bcfd97 | 12908 | wx_cv_type_sa_handler=int |
698dcdb6 | 12909 | |
f6bcfd97 | 12910 | else |
698dcdb6 VZ |
12911 | echo "configure: failed program was:" >&5 |
12912 | cat conftest.$ac_ext >&5 | |
12913 | rm -rf conftest* | |
12914 | ||
f6bcfd97 | 12915 | wx_cv_type_sa_handler=void |
698dcdb6 | 12916 | |
6232543b | 12917 | fi |
698dcdb6 VZ |
12918 | rm -f conftest* |
12919 | ||
1e487827 | 12920 | fi |
698dcdb6 VZ |
12921 | |
12922 | echo "$ac_t""$wx_cv_type_sa_handler" 1>&6 | |
f6bcfd97 BP |
12923 | |
12924 | ac_ext=c | |
698dcdb6 | 12925 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
f6bcfd97 | 12926 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
12927 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12928 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12929 | cross_compiling=$ac_cv_prog_cc_cross | |
12930 | ||
703e0a69 | 12931 | |
698dcdb6 | 12932 | cat >> confdefs.h <<EOF |
f6bcfd97 BP |
12933 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler |
12934 | EOF | |
12935 | ||
12936 | fi | |
eb4efbdc VZ |
12937 | fi |
12938 | ||
10f2d63a VZ |
12939 | for ac_func in vfork |
12940 | do | |
698dcdb6 | 12941 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
29fd3c0c | 12942 | echo "configure:12943: checking for $ac_func" >&5 |
698dcdb6 VZ |
12943 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
12944 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12945 | else | |
12946 | cat > conftest.$ac_ext <<EOF | |
29fd3c0c | 12947 | #line 12948 "configure" |
10f2d63a VZ |
12948 | #include "confdefs.h" |
12949 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 12950 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
12951 | #include <assert.h> |
12952 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12953 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12954 | builtin and then its argument prototype would still apply. */ |
12955 | char $ac_func(); | |
12956 | ||
12957 | int main() { | |
10f2d63a VZ |
12958 | |
12959 | /* The GNU C library defines this for functions which it implements | |
12960 | to always fail with ENOSYS. Some functions are actually named | |
12961 | something starting with __ and the normal name is an alias. */ | |
12962 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12963 | choke me | |
12964 | #else | |
698dcdb6 | 12965 | $ac_func(); |
10f2d63a VZ |
12966 | #endif |
12967 | ||
698dcdb6 | 12968 | ; return 0; } |
10f2d63a | 12969 | EOF |
29fd3c0c | 12970 | if { (eval echo configure:12971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12971 | rm -rf conftest* |
12972 | eval "ac_cv_func_$ac_func=yes" | |
12973 | else | |
12974 | echo "configure: failed program was:" >&5 | |
12975 | cat conftest.$ac_ext >&5 | |
12976 | rm -rf conftest* | |
12977 | eval "ac_cv_func_$ac_func=no" | |
12978 | fi | |
12979 | rm -f conftest* | |
12980 | fi | |
270a909e | 12981 | |
698dcdb6 VZ |
12982 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
12983 | echo "$ac_t""yes" 1>&6 | |
12984 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12985 | cat >> confdefs.h <<EOF | |
12986 | #define $ac_tr_func 1 | |
12987 | EOF | |
12988 | ||
12989 | else | |
12990 | echo "$ac_t""no" 1>&6 | |
270a909e VZ |
12991 | fi |
12992 | done | |
12993 | ||
1e487827 | 12994 | |
698dcdb6 VZ |
12995 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
12996 | for ac_func in fcntl flock | |
4f3c5f06 | 12997 | do |
698dcdb6 | 12998 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
29fd3c0c | 12999 | echo "configure:13000: checking for $ac_func" >&5 |
698dcdb6 VZ |
13000 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13001 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13002 | else | |
13003 | cat > conftest.$ac_ext <<EOF | |
29fd3c0c | 13004 | #line 13005 "configure" |
4f3c5f06 VZ |
13005 | #include "confdefs.h" |
13006 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13007 | which can conflict with char $ac_func(); below. */ |
4f3c5f06 VZ |
13008 | #include <assert.h> |
13009 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13010 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13011 | builtin and then its argument prototype would still apply. */ |
13012 | char $ac_func(); | |
13013 | ||
13014 | int main() { | |
4f3c5f06 VZ |
13015 | |
13016 | /* The GNU C library defines this for functions which it implements | |
13017 | to always fail with ENOSYS. Some functions are actually named | |
13018 | something starting with __ and the normal name is an alias. */ | |
13019 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13020 | choke me | |
13021 | #else | |
698dcdb6 | 13022 | $ac_func(); |
4f3c5f06 VZ |
13023 | #endif |
13024 | ||
698dcdb6 VZ |
13025 | ; return 0; } |
13026 | EOF | |
29fd3c0c | 13027 | if { (eval echo configure:13028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13028 | rm -rf conftest* |
13029 | eval "ac_cv_func_$ac_func=yes" | |
13030 | else | |
13031 | echo "configure: failed program was:" >&5 | |
13032 | cat conftest.$ac_ext >&5 | |
13033 | rm -rf conftest* | |
13034 | eval "ac_cv_func_$ac_func=no" | |
13035 | fi | |
13036 | rm -f conftest* | |
13037 | fi | |
13038 | ||
13039 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13040 | echo "$ac_t""yes" 1>&6 | |
13041 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13042 | cat >> confdefs.h <<EOF | |
13043 | #define $ac_tr_func 1 | |
4f3c5f06 VZ |
13044 | EOF |
13045 | break | |
698dcdb6 VZ |
13046 | else |
13047 | echo "$ac_t""no" 1>&6 | |
4f3c5f06 VZ |
13048 | fi |
13049 | done | |
13050 | ||
698dcdb6 | 13051 | |
4f3c5f06 | 13052 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then |
698dcdb6 | 13053 | echo "configure: warning: wxSingleInstanceChecker not available" 1>&2 |
4f3c5f06 VZ |
13054 | wxUSE_SNGLINST_CHECKER=no |
13055 | fi | |
13056 | fi | |
13057 | ||
270a909e VZ |
13058 | for ac_func in timegm |
13059 | do | |
698dcdb6 | 13060 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
29fd3c0c | 13061 | echo "configure:13062: checking for $ac_func" >&5 |
698dcdb6 VZ |
13062 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13063 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13064 | else | |
13065 | cat > conftest.$ac_ext <<EOF | |
29fd3c0c | 13066 | #line 13067 "configure" |
270a909e VZ |
13067 | #include "confdefs.h" |
13068 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13069 | which can conflict with char $ac_func(); below. */ |
270a909e VZ |
13070 | #include <assert.h> |
13071 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13072 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13073 | builtin and then its argument prototype would still apply. */ |
13074 | char $ac_func(); | |
13075 | ||
13076 | int main() { | |
270a909e VZ |
13077 | |
13078 | /* The GNU C library defines this for functions which it implements | |
13079 | to always fail with ENOSYS. Some functions are actually named | |
13080 | something starting with __ and the normal name is an alias. */ | |
13081 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13082 | choke me | |
13083 | #else | |
698dcdb6 | 13084 | $ac_func(); |
270a909e VZ |
13085 | #endif |
13086 | ||
698dcdb6 | 13087 | ; return 0; } |
270a909e | 13088 | EOF |
29fd3c0c | 13089 | if { (eval echo configure:13090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13090 | rm -rf conftest* |
13091 | eval "ac_cv_func_$ac_func=yes" | |
13092 | else | |
13093 | echo "configure: failed program was:" >&5 | |
13094 | cat conftest.$ac_ext >&5 | |
13095 | rm -rf conftest* | |
13096 | eval "ac_cv_func_$ac_func=no" | |
13097 | fi | |
13098 | rm -f conftest* | |
13099 | fi | |
10f2d63a | 13100 | |
698dcdb6 VZ |
13101 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
13102 | echo "$ac_t""yes" 1>&6 | |
13103 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13104 | cat >> confdefs.h <<EOF | |
13105 | #define $ac_tr_func 1 | |
13106 | EOF | |
13107 | ||
13108 | else | |
13109 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13110 | fi |
13111 | done | |
13112 | ||
698dcdb6 | 13113 | |
8fd0d89b VZ |
13114 | for ac_func in putenv setenv |
13115 | do | |
698dcdb6 | 13116 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
29fd3c0c | 13117 | echo "configure:13118: checking for $ac_func" >&5 |
698dcdb6 VZ |
13118 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13119 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13120 | else | |
13121 | cat > conftest.$ac_ext <<EOF | |
29fd3c0c | 13122 | #line 13123 "configure" |
8fd0d89b VZ |
13123 | #include "confdefs.h" |
13124 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13125 | which can conflict with char $ac_func(); below. */ |
8fd0d89b VZ |
13126 | #include <assert.h> |
13127 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13128 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13129 | builtin and then its argument prototype would still apply. */ |
13130 | char $ac_func(); | |
13131 | ||
13132 | int main() { | |
8fd0d89b VZ |
13133 | |
13134 | /* The GNU C library defines this for functions which it implements | |
13135 | to always fail with ENOSYS. Some functions are actually named | |
13136 | something starting with __ and the normal name is an alias. */ | |
13137 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13138 | choke me | |
13139 | #else | |
698dcdb6 | 13140 | $ac_func(); |
8fd0d89b VZ |
13141 | #endif |
13142 | ||
698dcdb6 VZ |
13143 | ; return 0; } |
13144 | EOF | |
29fd3c0c | 13145 | if { (eval echo configure:13146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13146 | rm -rf conftest* |
13147 | eval "ac_cv_func_$ac_func=yes" | |
13148 | else | |
13149 | echo "configure: failed program was:" >&5 | |
13150 | cat conftest.$ac_ext >&5 | |
13151 | rm -rf conftest* | |
13152 | eval "ac_cv_func_$ac_func=no" | |
13153 | fi | |
13154 | rm -f conftest* | |
13155 | fi | |
13156 | ||
13157 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13158 | echo "$ac_t""yes" 1>&6 | |
13159 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13160 | cat >> confdefs.h <<EOF | |
13161 | #define $ac_tr_func 1 | |
8fd0d89b VZ |
13162 | EOF |
13163 | break | |
698dcdb6 VZ |
13164 | else |
13165 | echo "$ac_t""no" 1>&6 | |
8fd0d89b VZ |
13166 | fi |
13167 | done | |
13168 | ||
698dcdb6 | 13169 | |
b12915c1 VZ |
13170 | HAVE_SOME_SLEEP_FUNC=0 |
13171 | if test "$USE_BEOS" = 1; then | |
698dcdb6 | 13172 | cat >> confdefs.h <<\EOF |
b12915c1 VZ |
13173 | #define HAVE_SLEEP 1 |
13174 | EOF | |
13175 | ||
13176 | HAVE_SOME_SLEEP_FUNC=1 | |
13177 | fi | |
13178 | ||
b4085ce6 | 13179 | if test "$USE_MAC" = 1; then |
698dcdb6 | 13180 | cat >> confdefs.h <<\EOF |
b4085ce6 GD |
13181 | #define HAVE_USLEEP 1 |
13182 | EOF | |
13183 | ||
13184 | HAVE_SOME_SLEEP_FUNC=1 | |
13185 | fi | |
13186 | ||
b12915c1 VZ |
13187 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then |
13188 | POSIX4_LINK= | |
698dcdb6 | 13189 | for ac_func in nanosleep |
10f2d63a | 13190 | do |
698dcdb6 | 13191 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
29fd3c0c | 13192 | echo "configure:13193: checking for $ac_func" >&5 |
698dcdb6 VZ |
13193 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13194 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13195 | else | |
13196 | cat > conftest.$ac_ext <<EOF | |
29fd3c0c | 13197 | #line 13198 "configure" |
10f2d63a VZ |
13198 | #include "confdefs.h" |
13199 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13200 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
13201 | #include <assert.h> |
13202 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13203 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13204 | builtin and then its argument prototype would still apply. */ |
13205 | char $ac_func(); | |
13206 | ||
13207 | int main() { | |
10f2d63a VZ |
13208 | |
13209 | /* The GNU C library defines this for functions which it implements | |
13210 | to always fail with ENOSYS. Some functions are actually named | |
13211 | something starting with __ and the normal name is an alias. */ | |
13212 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13213 | choke me | |
13214 | #else | |
698dcdb6 | 13215 | $ac_func(); |
10f2d63a VZ |
13216 | #endif |
13217 | ||
698dcdb6 VZ |
13218 | ; return 0; } |
13219 | EOF | |
29fd3c0c | 13220 | if { (eval echo configure:13221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13221 | rm -rf conftest* |
13222 | eval "ac_cv_func_$ac_func=yes" | |
13223 | else | |
13224 | echo "configure: failed program was:" >&5 | |
13225 | cat conftest.$ac_ext >&5 | |
13226 | rm -rf conftest* | |
13227 | eval "ac_cv_func_$ac_func=no" | |
13228 | fi | |
13229 | rm -f conftest* | |
13230 | fi | |
13231 | ||
13232 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13233 | echo "$ac_t""yes" 1>&6 | |
13234 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13235 | cat >> confdefs.h <<EOF | |
13236 | #define $ac_tr_func 1 | |
13237 | EOF | |
13238 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
13239 | #define HAVE_NANOSLEEP 1 |
13240 | EOF | |
13241 | ||
13242 | else | |
698dcdb6 VZ |
13243 | echo "$ac_t""no" 1>&6 |
13244 | echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 | |
29fd3c0c | 13245 | echo "configure:13246: checking for nanosleep in -lposix4" >&5 |
698dcdb6 VZ |
13246 | ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` |
13247 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13248 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13249 | else |
698dcdb6 | 13250 | ac_save_LIBS="$LIBS" |
10f2d63a | 13251 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 13252 | cat > conftest.$ac_ext <<EOF |
29fd3c0c | 13253 | #line 13254 "configure" |
10f2d63a VZ |
13254 | #include "confdefs.h" |
13255 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13256 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13257 | builtin and then its argument prototype would still apply. */ |
13258 | char nanosleep(); | |
13259 | ||
13260 | int main() { | |
13261 | nanosleep() | |
13262 | ; return 0; } | |
13263 | EOF | |
29fd3c0c | 13264 | if { (eval echo configure:13265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13265 | rm -rf conftest* |
13266 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13267 | else | |
13268 | echo "configure: failed program was:" >&5 | |
13269 | cat conftest.$ac_ext >&5 | |
13270 | rm -rf conftest* | |
13271 | eval "ac_cv_lib_$ac_lib_var=no" | |
13272 | fi | |
13273 | rm -f conftest* | |
13274 | LIBS="$ac_save_LIBS" | |
13275 | ||
13276 | fi | |
13277 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13278 | echo "$ac_t""yes" 1>&6 | |
13279 | ||
13280 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
13281 | #define HAVE_NANOSLEEP 1 |
13282 | EOF | |
13283 | ||
b12915c1 | 13284 | POSIX4_LINK="-lposix4" |
698dcdb6 | 13285 | |
10f2d63a | 13286 | else |
698dcdb6 | 13287 | echo "$ac_t""no" 1>&6 |
10f2d63a | 13288 | |
698dcdb6 | 13289 | for ac_func in usleep |
10f2d63a | 13290 | do |
698dcdb6 | 13291 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
29fd3c0c | 13292 | echo "configure:13293: checking for $ac_func" >&5 |
698dcdb6 VZ |
13293 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13294 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13295 | else | |
13296 | cat > conftest.$ac_ext <<EOF | |
29fd3c0c | 13297 | #line 13298 "configure" |
10f2d63a VZ |
13298 | #include "confdefs.h" |
13299 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13300 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
13301 | #include <assert.h> |
13302 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13303 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13304 | builtin and then its argument prototype would still apply. */ |
13305 | char $ac_func(); | |
13306 | ||
13307 | int main() { | |
10f2d63a VZ |
13308 | |
13309 | /* The GNU C library defines this for functions which it implements | |
13310 | to always fail with ENOSYS. Some functions are actually named | |
13311 | something starting with __ and the normal name is an alias. */ | |
13312 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13313 | choke me | |
13314 | #else | |
698dcdb6 | 13315 | $ac_func(); |
10f2d63a VZ |
13316 | #endif |
13317 | ||
698dcdb6 VZ |
13318 | ; return 0; } |
13319 | EOF | |
29fd3c0c | 13320 | if { (eval echo configure:13321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13321 | rm -rf conftest* |
13322 | eval "ac_cv_func_$ac_func=yes" | |
13323 | else | |
13324 | echo "configure: failed program was:" >&5 | |
13325 | cat conftest.$ac_ext >&5 | |
13326 | rm -rf conftest* | |
13327 | eval "ac_cv_func_$ac_func=no" | |
13328 | fi | |
13329 | rm -f conftest* | |
13330 | fi | |
13331 | ||
13332 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13333 | echo "$ac_t""yes" 1>&6 | |
13334 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13335 | cat >> confdefs.h <<EOF | |
13336 | #define $ac_tr_func 1 | |
13337 | EOF | |
13338 | cat >> confdefs.h <<\EOF | |
b4085ce6 GD |
13339 | #define HAVE_USLEEP 1 |
13340 | EOF | |
13341 | ||
10f2d63a | 13342 | else |
698dcdb6 VZ |
13343 | echo "$ac_t""no" 1>&6 |
13344 | echo "configure: warning: wxSleep() function will not work" 1>&2 | |
13345 | ||
10f2d63a VZ |
13346 | fi |
13347 | done | |
13348 | ||
698dcdb6 VZ |
13349 | |
13350 | ||
10f2d63a VZ |
13351 | fi |
13352 | ||
698dcdb6 VZ |
13353 | |
13354 | ||
10f2d63a VZ |
13355 | fi |
13356 | done | |
13357 | ||
b12915c1 | 13358 | fi |
10f2d63a VZ |
13359 | |
13360 | for ac_func in uname gethostname | |
13361 | do | |
698dcdb6 | 13362 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
29fd3c0c | 13363 | echo "configure:13364: checking for $ac_func" >&5 |
698dcdb6 VZ |
13364 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13365 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13366 | else | |
13367 | cat > conftest.$ac_ext <<EOF | |
29fd3c0c | 13368 | #line 13369 "configure" |
10f2d63a VZ |
13369 | #include "confdefs.h" |
13370 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13371 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
13372 | #include <assert.h> |
13373 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13374 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13375 | builtin and then its argument prototype would still apply. */ |
13376 | char $ac_func(); | |
13377 | ||
13378 | int main() { | |
10f2d63a VZ |
13379 | |
13380 | /* The GNU C library defines this for functions which it implements | |
13381 | to always fail with ENOSYS. Some functions are actually named | |
13382 | something starting with __ and the normal name is an alias. */ | |
13383 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13384 | choke me | |
13385 | #else | |
698dcdb6 | 13386 | $ac_func(); |
10f2d63a VZ |
13387 | #endif |
13388 | ||
698dcdb6 VZ |
13389 | ; return 0; } |
13390 | EOF | |
29fd3c0c | 13391 | if { (eval echo configure:13392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13392 | rm -rf conftest* |
13393 | eval "ac_cv_func_$ac_func=yes" | |
13394 | else | |
13395 | echo "configure: failed program was:" >&5 | |
13396 | cat conftest.$ac_ext >&5 | |
13397 | rm -rf conftest* | |
13398 | eval "ac_cv_func_$ac_func=no" | |
13399 | fi | |
13400 | rm -f conftest* | |
13401 | fi | |
13402 | ||
13403 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13404 | echo "$ac_t""yes" 1>&6 | |
13405 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13406 | cat >> confdefs.h <<EOF | |
13407 | #define $ac_tr_func 1 | |
10f2d63a VZ |
13408 | EOF |
13409 | break | |
698dcdb6 VZ |
13410 | else |
13411 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13412 | fi |
13413 | done | |
13414 | ||
698dcdb6 VZ |
13415 | |
13416 | ||
13417 | ac_ext=C | |
13418 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6098c7f9 | 13419 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
13420 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
13421 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13422 | cross_compiling=$ac_cv_prog_cxx_cross | |
13423 | ||
6098c7f9 | 13424 | |
10f2d63a VZ |
13425 | for ac_func in strtok_r |
13426 | do | |
698dcdb6 | 13427 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
29fd3c0c | 13428 | echo "configure:13429: checking for $ac_func" >&5 |
698dcdb6 VZ |
13429 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13430 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13431 | else | |
13432 | cat > conftest.$ac_ext <<EOF | |
29fd3c0c | 13433 | #line 13434 "configure" |
10f2d63a VZ |
13434 | #include "confdefs.h" |
13435 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13436 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
13437 | #include <assert.h> |
13438 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6098c7f9 VZ |
13439 | #ifdef __cplusplus |
13440 | extern "C" | |
13441 | #endif | |
10f2d63a | 13442 | /* We use char because int might match the return type of a gcc2 |
698dcdb6 VZ |
13443 | builtin and then its argument prototype would still apply. */ |
13444 | char $ac_func(); | |
13445 | ||
13446 | int main() { | |
10f2d63a VZ |
13447 | |
13448 | /* The GNU C library defines this for functions which it implements | |
13449 | to always fail with ENOSYS. Some functions are actually named | |
13450 | something starting with __ and the normal name is an alias. */ | |
13451 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13452 | choke me | |
13453 | #else | |
698dcdb6 | 13454 | $ac_func(); |
10f2d63a VZ |
13455 | #endif |
13456 | ||
698dcdb6 | 13457 | ; return 0; } |
10f2d63a | 13458 | EOF |
29fd3c0c | 13459 | if { (eval echo configure:13460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13460 | rm -rf conftest* |
13461 | eval "ac_cv_func_$ac_func=yes" | |
13462 | else | |
13463 | echo "configure: failed program was:" >&5 | |
13464 | cat conftest.$ac_ext >&5 | |
13465 | rm -rf conftest* | |
13466 | eval "ac_cv_func_$ac_func=no" | |
13467 | fi | |
13468 | rm -f conftest* | |
13469 | fi | |
10f2d63a | 13470 | |
698dcdb6 VZ |
13471 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
13472 | echo "$ac_t""yes" 1>&6 | |
13473 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13474 | cat >> confdefs.h <<EOF | |
13475 | #define $ac_tr_func 1 | |
13476 | EOF | |
13477 | ||
13478 | else | |
13479 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13480 | fi |
13481 | done | |
13482 | ||
698dcdb6 | 13483 | |
6098c7f9 | 13484 | ac_ext=c |
698dcdb6 | 13485 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
6098c7f9 | 13486 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
13487 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
13488 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13489 | cross_compiling=$ac_cv_prog_cc_cross | |
6232543b | 13490 | |
1e487827 | 13491 | |
698dcdb6 | 13492 | INET_LINK= |
10f2d63a VZ |
13493 | for ac_func in inet_addr |
13494 | do | |
698dcdb6 | 13495 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
29fd3c0c | 13496 | echo "configure:13497: checking for $ac_func" >&5 |
698dcdb6 VZ |
13497 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13498 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13499 | else | |
13500 | cat > conftest.$ac_ext <<EOF | |
29fd3c0c | 13501 | #line 13502 "configure" |
10f2d63a VZ |
13502 | #include "confdefs.h" |
13503 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 VZ |
13504 | which can conflict with char $ac_func(); below. */ |
13505 | #include <assert.h> | |
13506 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10f2d63a | 13507 | /* We use char because int might match the return type of a gcc2 |
698dcdb6 VZ |
13508 | builtin and then its argument prototype would still apply. */ |
13509 | char $ac_func(); | |
13510 | ||
13511 | int main() { | |
10f2d63a VZ |
13512 | |
13513 | /* The GNU C library defines this for functions which it implements | |
13514 | to always fail with ENOSYS. Some functions are actually named | |
1e487827 VS |
13515 | something starting with __ and the normal name is an alias. */ |
13516 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13517 | choke me | |
13518 | #else | |
698dcdb6 | 13519 | $ac_func(); |
1e487827 | 13520 | #endif |
703e0a69 | 13521 | |
698dcdb6 VZ |
13522 | ; return 0; } |
13523 | EOF | |
29fd3c0c | 13524 | if { (eval echo configure:13525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13525 | rm -rf conftest* |
13526 | eval "ac_cv_func_$ac_func=yes" | |
13527 | else | |
13528 | echo "configure: failed program was:" >&5 | |
13529 | cat conftest.$ac_ext >&5 | |
13530 | rm -rf conftest* | |
13531 | eval "ac_cv_func_$ac_func=no" | |
13532 | fi | |
13533 | rm -f conftest* | |
13534 | fi | |
13535 | ||
13536 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13537 | echo "$ac_t""yes" 1>&6 | |
13538 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13539 | cat >> confdefs.h <<EOF | |
13540 | #define $ac_tr_func 1 | |
13541 | EOF | |
13542 | cat >> confdefs.h <<\EOF | |
c63c7106 VZ |
13543 | #define HAVE_INET_ADDR 1 |
13544 | EOF | |
13545 | ||
10f2d63a | 13546 | else |
698dcdb6 VZ |
13547 | echo "$ac_t""no" 1>&6 |
13548 | echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6 | |
29fd3c0c | 13549 | echo "configure:13550: checking for inet_addr in -lnsl" >&5 |
698dcdb6 VZ |
13550 | ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'` |
13551 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13552 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 13553 | else |
698dcdb6 | 13554 | ac_save_LIBS="$LIBS" |
c63c7106 | 13555 | LIBS="-lnsl $LIBS" |
698dcdb6 | 13556 | cat > conftest.$ac_ext <<EOF |
29fd3c0c | 13557 | #line 13558 "configure" |
c63c7106 VZ |
13558 | #include "confdefs.h" |
13559 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13560 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13561 | builtin and then its argument prototype would still apply. */ |
13562 | char inet_addr(); | |
13563 | ||
13564 | int main() { | |
13565 | inet_addr() | |
13566 | ; return 0; } | |
13567 | EOF | |
29fd3c0c | 13568 | if { (eval echo configure:13569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13569 | rm -rf conftest* |
13570 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13571 | else | |
13572 | echo "configure: failed program was:" >&5 | |
13573 | cat conftest.$ac_ext >&5 | |
13574 | rm -rf conftest* | |
13575 | eval "ac_cv_lib_$ac_lib_var=no" | |
13576 | fi | |
13577 | rm -f conftest* | |
13578 | LIBS="$ac_save_LIBS" | |
13579 | ||
13580 | fi | |
13581 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13582 | echo "$ac_t""yes" 1>&6 | |
c63c7106 VZ |
13583 | INET_LINK="nsl" |
13584 | else | |
698dcdb6 VZ |
13585 | echo "$ac_t""no" 1>&6 |
13586 | echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6 | |
29fd3c0c | 13587 | echo "configure:13588: checking for inet_addr in -lresolv" >&5 |
698dcdb6 VZ |
13588 | ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'` |
13589 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13590 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 13591 | else |
698dcdb6 | 13592 | ac_save_LIBS="$LIBS" |
c63c7106 | 13593 | LIBS="-lresolv $LIBS" |
698dcdb6 | 13594 | cat > conftest.$ac_ext <<EOF |
29fd3c0c | 13595 | #line 13596 "configure" |
c63c7106 VZ |
13596 | #include "confdefs.h" |
13597 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13598 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13599 | builtin and then its argument prototype would still apply. */ |
13600 | char inet_addr(); | |
13601 | ||
13602 | int main() { | |
13603 | inet_addr() | |
13604 | ; return 0; } | |
13605 | EOF | |
29fd3c0c | 13606 | if { (eval echo configure:13607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13607 | rm -rf conftest* |
13608 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13609 | else | |
13610 | echo "configure: failed program was:" >&5 | |
13611 | cat conftest.$ac_ext >&5 | |
13612 | rm -rf conftest* | |
13613 | eval "ac_cv_lib_$ac_lib_var=no" | |
13614 | fi | |
13615 | rm -f conftest* | |
13616 | LIBS="$ac_save_LIBS" | |
c63c7106 | 13617 | |
6232543b | 13618 | fi |
698dcdb6 VZ |
13619 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
13620 | echo "$ac_t""yes" 1>&6 | |
13621 | INET_LINK="resolv" | |
13622 | ||
13623 | else | |
13624 | echo "$ac_t""no" 1>&6 | |
13625 | fi | |
c63c7106 | 13626 | |
698dcdb6 | 13627 | |
1e487827 | 13628 | fi |
703e0a69 | 13629 | |
698dcdb6 VZ |
13630 | |
13631 | ||
10f2d63a VZ |
13632 | fi |
13633 | done | |
13634 | ||
698dcdb6 | 13635 | |
10f2d63a VZ |
13636 | for ac_func in inet_aton |
13637 | do | |
698dcdb6 | 13638 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
29fd3c0c | 13639 | echo "configure:13640: checking for $ac_func" >&5 |
698dcdb6 VZ |
13640 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13641 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13642 | else | |
13643 | cat > conftest.$ac_ext <<EOF | |
29fd3c0c | 13644 | #line 13645 "configure" |
10f2d63a VZ |
13645 | #include "confdefs.h" |
13646 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13647 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
13648 | #include <assert.h> |
13649 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13650 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13651 | builtin and then its argument prototype would still apply. */ |
13652 | char $ac_func(); | |
13653 | ||
13654 | int main() { | |
10f2d63a VZ |
13655 | |
13656 | /* The GNU C library defines this for functions which it implements | |
13657 | to always fail with ENOSYS. Some functions are actually named | |
13658 | something starting with __ and the normal name is an alias. */ | |
13659 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13660 | choke me | |
13661 | #else | |
698dcdb6 | 13662 | $ac_func(); |
10f2d63a VZ |
13663 | #endif |
13664 | ||
698dcdb6 VZ |
13665 | ; return 0; } |
13666 | EOF | |
29fd3c0c | 13667 | if { (eval echo configure:13668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13668 | rm -rf conftest* |
13669 | eval "ac_cv_func_$ac_func=yes" | |
13670 | else | |
13671 | echo "configure: failed program was:" >&5 | |
13672 | cat conftest.$ac_ext >&5 | |
13673 | rm -rf conftest* | |
13674 | eval "ac_cv_func_$ac_func=no" | |
13675 | fi | |
13676 | rm -f conftest* | |
13677 | fi | |
13678 | ||
13679 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13680 | echo "$ac_t""yes" 1>&6 | |
13681 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13682 | cat >> confdefs.h <<EOF | |
13683 | #define $ac_tr_func 1 | |
13684 | EOF | |
13685 | cat >> confdefs.h <<\EOF | |
c63c7106 VZ |
13686 | #define HAVE_INET_ATON 1 |
13687 | EOF | |
13688 | ||
10f2d63a | 13689 | else |
698dcdb6 VZ |
13690 | echo "$ac_t""no" 1>&6 |
13691 | echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6 | |
29fd3c0c | 13692 | echo "configure:13693: checking for inet_aton in -l$INET_LINK" >&5 |
698dcdb6 VZ |
13693 | ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'` |
13694 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13695 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13696 | else |
698dcdb6 | 13697 | ac_save_LIBS="$LIBS" |
c63c7106 | 13698 | LIBS="-l$INET_LINK $LIBS" |
698dcdb6 | 13699 | cat > conftest.$ac_ext <<EOF |
29fd3c0c | 13700 | #line 13701 "configure" |
10f2d63a VZ |
13701 | #include "confdefs.h" |
13702 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13703 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13704 | builtin and then its argument prototype would still apply. */ |
13705 | char inet_aton(); | |
13706 | ||
13707 | int main() { | |
13708 | inet_aton() | |
13709 | ; return 0; } | |
13710 | EOF | |
29fd3c0c | 13711 | if { (eval echo configure:13712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13712 | rm -rf conftest* |
13713 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13714 | else | |
13715 | echo "configure: failed program was:" >&5 | |
13716 | cat conftest.$ac_ext >&5 | |
13717 | rm -rf conftest* | |
13718 | eval "ac_cv_lib_$ac_lib_var=no" | |
13719 | fi | |
13720 | rm -f conftest* | |
13721 | LIBS="$ac_save_LIBS" | |
13722 | ||
13723 | fi | |
13724 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13725 | echo "$ac_t""yes" 1>&6 | |
13726 | cat >> confdefs.h <<\EOF | |
c63c7106 | 13727 | #define HAVE_INET_ATON 1 |
10f2d63a VZ |
13728 | EOF |
13729 | ||
698dcdb6 VZ |
13730 | else |
13731 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13732 | fi |
13733 | ||
698dcdb6 | 13734 | |
c63c7106 VZ |
13735 | fi |
13736 | done | |
13737 | ||
698dcdb6 | 13738 | |
c63c7106 | 13739 | if test "x$INET_LINK" != "x"; then |
698dcdb6 | 13740 | cat >> confdefs.h <<\EOF |
c63c7106 VZ |
13741 | #define HAVE_INET_ADDR 1 |
13742 | EOF | |
13743 | ||
13744 | INET_LINK="-l$INET_LINK" | |
13745 | fi | |
10f2d63a VZ |
13746 | |
13747 | fi | |
13748 | ||
698dcdb6 VZ |
13749 | |
13750 | cat > confcache <<\EOF | |
10f2d63a VZ |
13751 | # This file is a shell script that caches the results of configure |
13752 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
13753 | # scripts and configure runs. It is not useful on other systems. |
13754 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 13755 | # |
698dcdb6 VZ |
13756 | # By default, configure uses ./config.cache as the cache file, |
13757 | # creating it if it does not exist already. You can give configure | |
13758 | # the --cache-file=FILE option to use a different cache file; that is | |
13759 | # what configure does when it calls configure scripts in | |
13760 | # subdirectories, so they share the cache. | |
13761 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
13762 | # config.status only pays attention to the cache file if you give it the | |
13763 | # --recheck option to rerun configure. | |
10f2d63a | 13764 | # |
698dcdb6 | 13765 | EOF |
10f2d63a VZ |
13766 | # The following way of writing the cache mishandles newlines in values, |
13767 | # but we know of no workaround that is simple, portable, and efficient. | |
13768 | # So, don't put newlines in cache variables' values. | |
13769 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
13770 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
13771 | (set) 2>&1 | |
13772 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
13773 | *ac_space=\ *) | |
13774 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
13775 | # turns \\\\ into \\, and sed turns \\ into \). | |
13776 | sed -n \ | |
13777 | -e "s/'/'\\\\''/g" \ | |
13778 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
13779 | ;; | |
13780 | *) | |
13781 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
13782 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
13783 | ;; | |
13784 | esac >> confcache | |
13785 | if cmp -s $cache_file confcache; then | |
13786 | : | |
13787 | else | |
10f2d63a | 13788 | if test -w $cache_file; then |
698dcdb6 VZ |
13789 | echo "updating cache $cache_file" |
13790 | cat confcache > $cache_file | |
10f2d63a VZ |
13791 | else |
13792 | echo "not updating unwritable cache $cache_file" | |
13793 | fi | |
13794 | fi | |
13795 | rm -f confcache | |
13796 | ||
698dcdb6 VZ |
13797 | |
13798 | ||
b089607b | 13799 | if test "$TOOLKIT" != "MSW"; then |
10f2d63a | 13800 | |
698dcdb6 | 13801 | |
10f2d63a VZ |
13802 | THREADS_LINK="" |
13803 | THREADS_OBJ="" | |
13804 | ||
13805 | if test "$wxUSE_THREADS" = "yes" ; then | |
13806 | if test "$wxUSE_WINE" = 1 ; then | |
698dcdb6 | 13807 | echo "configure: warning: Threads are not supported under WINE" 1>&2 |
10f2d63a | 13808 | wxUSE_THREADS="no" |
b12915c1 | 13809 | elif test "$USE_BEOS" = 1; then |
698dcdb6 | 13810 | echo "configure: warning: BeOS threads are not yet supported" 1>&2 |
b12915c1 | 13811 | wxUSE_THREADS="no" |
10f2d63a VZ |
13812 | fi |
13813 | fi | |
13814 | ||
13815 | if test "$wxUSE_THREADS" = "yes" ; then | |
698dcdb6 | 13816 | |
186837b0 | 13817 | if test "$USE_AIX" = 1; then |
f6bcfd97 BP |
13818 | THREADS_LIB=pthreads |
13819 | else | |
13820 | THREADS_LIB=pthread | |
13821 | fi | |
13822 | ||
698dcdb6 | 13823 | echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6 |
29fd3c0c | 13824 | echo "configure:13825: checking for pthread_create in -l$THREADS_LIB" >&5 |
698dcdb6 VZ |
13825 | ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'` |
13826 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13827 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13828 | else |
698dcdb6 | 13829 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 13830 | LIBS="-l$THREADS_LIB $LIBS" |
698dcdb6 | 13831 | cat > conftest.$ac_ext <<EOF |
29fd3c0c | 13832 | #line 13833 "configure" |
10f2d63a VZ |
13833 | #include "confdefs.h" |
13834 | /* Override any gcc2 internal prototype to avoid an error. */ | |
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 pthread_create(); | |
13838 | ||
13839 | int main() { | |
13840 | pthread_create() | |
13841 | ; return 0; } | |
13842 | EOF | |
29fd3c0c | 13843 | if { (eval echo configure:13844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13844 | rm -rf conftest* |
13845 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13846 | else | |
13847 | echo "configure: failed program was:" >&5 | |
13848 | cat conftest.$ac_ext >&5 | |
13849 | rm -rf conftest* | |
13850 | eval "ac_cv_lib_$ac_lib_var=no" | |
13851 | fi | |
13852 | rm -f conftest* | |
13853 | LIBS="$ac_save_LIBS" | |
10f2d63a | 13854 | |
698dcdb6 VZ |
13855 | fi |
13856 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13857 | echo "$ac_t""yes" 1>&6 | |
13858 | ||
10f2d63a | 13859 | THREADS_OBJ="threadpsx.lo" |
f6bcfd97 | 13860 | THREADS_LINK=$THREADS_LIB |
698dcdb6 | 13861 | |
10f2d63a | 13862 | else |
698dcdb6 | 13863 | echo "$ac_t""no" 1>&6 |
10f2d63a | 13864 | |
698dcdb6 | 13865 | echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 |
29fd3c0c | 13866 | echo "configure:13867: checking for pthread_create in -lc_r" >&5 |
698dcdb6 VZ |
13867 | ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` |
13868 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13869 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13870 | else |
698dcdb6 | 13871 | ac_save_LIBS="$LIBS" |
10f2d63a | 13872 | LIBS="-lc_r $LIBS" |
698dcdb6 | 13873 | cat > conftest.$ac_ext <<EOF |
29fd3c0c | 13874 | #line 13875 "configure" |
10f2d63a VZ |
13875 | #include "confdefs.h" |
13876 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13877 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13878 | builtin and then its argument prototype would still apply. */ |
13879 | char pthread_create(); | |
13880 | ||
13881 | int main() { | |
13882 | pthread_create() | |
13883 | ; return 0; } | |
13884 | EOF | |
29fd3c0c | 13885 | if { (eval echo configure:13886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13886 | rm -rf conftest* |
13887 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13888 | else | |
13889 | echo "configure: failed program was:" >&5 | |
13890 | cat conftest.$ac_ext >&5 | |
13891 | rm -rf conftest* | |
13892 | eval "ac_cv_lib_$ac_lib_var=no" | |
13893 | fi | |
13894 | rm -f conftest* | |
13895 | LIBS="$ac_save_LIBS" | |
10f2d63a | 13896 | |
698dcdb6 VZ |
13897 | fi |
13898 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13899 | echo "$ac_t""yes" 1>&6 | |
13900 | ||
10f2d63a VZ |
13901 | THREADS_OBJ="threadpsx.lo" |
13902 | THREADS_LINK="c_r" | |
698dcdb6 | 13903 | |
10f2d63a | 13904 | else |
698dcdb6 | 13905 | echo "$ac_t""no" 1>&6 |
10f2d63a | 13906 | |
698dcdb6 VZ |
13907 | ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'` |
13908 | echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6 | |
29fd3c0c | 13909 | echo "configure:13910: checking for sys/prctl.h" >&5 |
698dcdb6 VZ |
13910 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13911 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13912 | else |
698dcdb6 | 13913 | cat > conftest.$ac_ext <<EOF |
29fd3c0c | 13914 | #line 13915 "configure" |
10f2d63a VZ |
13915 | #include "confdefs.h" |
13916 | #include <sys/prctl.h> | |
698dcdb6 VZ |
13917 | EOF |
13918 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
29fd3c0c | 13919 | { (eval echo configure:13920: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13920 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13921 | if test -z "$ac_err"; then | |
13922 | rm -rf conftest* | |
13923 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 13924 | else |
698dcdb6 VZ |
13925 | echo "$ac_err" >&5 |
13926 | echo "configure: failed program was:" >&5 | |
10f2d63a | 13927 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13928 | rm -rf conftest* |
13929 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 13930 | fi |
698dcdb6 | 13931 | rm -f conftest* |
10f2d63a | 13932 | fi |
698dcdb6 VZ |
13933 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13934 | echo "$ac_t""yes" 1>&6 | |
13935 | ||
1f8ae82f | 13936 | THREADS_OBJ="threadsgi.lo" |
698dcdb6 VZ |
13937 | |
13938 | else | |
13939 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13940 | fi |
13941 | ||
698dcdb6 | 13942 | |
6232543b | 13943 | fi |
10f2d63a | 13944 | |
698dcdb6 | 13945 | |
1e487827 | 13946 | fi |
703e0a69 | 13947 | |
698dcdb6 | 13948 | |
10f2d63a VZ |
13949 | if test -z "$THREADS_OBJ" ; then |
13950 | wxUSE_THREADS=no | |
698dcdb6 | 13951 | echo "configure: warning: No thread support on this system" 1>&2 |
10f2d63a VZ |
13952 | fi |
13953 | fi | |
13954 | ||
13955 | if test "$wxUSE_THREADS" = "yes" ; then | |
698dcdb6 | 13956 | for ac_func in thr_setconcurrency |
70846f0a | 13957 | do |
698dcdb6 | 13958 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
29fd3c0c | 13959 | echo "configure:13960: checking for $ac_func" >&5 |
698dcdb6 VZ |
13960 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13961 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13962 | else | |
13963 | cat > conftest.$ac_ext <<EOF | |
29fd3c0c | 13964 | #line 13965 "configure" |
70846f0a VZ |
13965 | #include "confdefs.h" |
13966 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13967 | which can conflict with char $ac_func(); below. */ |
70846f0a VZ |
13968 | #include <assert.h> |
13969 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13970 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13971 | builtin and then its argument prototype would still apply. */ |
13972 | char $ac_func(); | |
13973 | ||
13974 | int main() { | |
70846f0a VZ |
13975 | |
13976 | /* The GNU C library defines this for functions which it implements | |
13977 | to always fail with ENOSYS. Some functions are actually named | |
13978 | something starting with __ and the normal name is an alias. */ | |
13979 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13980 | choke me | |
13981 | #else | |
698dcdb6 | 13982 | $ac_func(); |
70846f0a VZ |
13983 | #endif |
13984 | ||
698dcdb6 | 13985 | ; return 0; } |
70846f0a | 13986 | EOF |
29fd3c0c | 13987 | if { (eval echo configure:13988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13988 | rm -rf conftest* |
13989 | eval "ac_cv_func_$ac_func=yes" | |
13990 | else | |
13991 | echo "configure: failed program was:" >&5 | |
13992 | cat conftest.$ac_ext >&5 | |
13993 | rm -rf conftest* | |
13994 | eval "ac_cv_func_$ac_func=no" | |
13995 | fi | |
13996 | rm -f conftest* | |
13997 | fi | |
70846f0a | 13998 | |
698dcdb6 VZ |
13999 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
14000 | echo "$ac_t""yes" 1>&6 | |
14001 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14002 | cat >> confdefs.h <<EOF | |
14003 | #define $ac_tr_func 1 | |
14004 | EOF | |
14005 | ||
14006 | else | |
14007 | echo "$ac_t""no" 1>&6 | |
70846f0a VZ |
14008 | fi |
14009 | done | |
14010 | ||
698dcdb6 VZ |
14011 | |
14012 | ||
14013 | for ac_hdr in sched.h | |
10f2d63a | 14014 | do |
698dcdb6 VZ |
14015 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
14016 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
29fd3c0c | 14017 | echo "configure:14018: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
14018 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
14019 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14020 | else | |
14021 | cat > conftest.$ac_ext <<EOF | |
29fd3c0c | 14022 | #line 14023 "configure" |
10f2d63a | 14023 | #include "confdefs.h" |
698dcdb6 VZ |
14024 | #include <$ac_hdr> |
14025 | EOF | |
14026 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
29fd3c0c | 14027 | { (eval echo configure:14028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
14028 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14029 | if test -z "$ac_err"; then | |
14030 | rm -rf conftest* | |
14031 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 14032 | else |
698dcdb6 VZ |
14033 | echo "$ac_err" >&5 |
14034 | echo "configure: failed program was:" >&5 | |
10f2d63a | 14035 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
14036 | rm -rf conftest* |
14037 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 14038 | fi |
698dcdb6 | 14039 | rm -f conftest* |
10f2d63a | 14040 | fi |
698dcdb6 VZ |
14041 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
14042 | echo "$ac_t""yes" 1>&6 | |
14043 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
14044 | cat >> confdefs.h <<EOF | |
14045 | #define $ac_tr_hdr 1 | |
10f2d63a | 14046 | EOF |
698dcdb6 VZ |
14047 | |
14048 | else | |
14049 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
14050 | fi |
14051 | done | |
14052 | ||
698dcdb6 VZ |
14053 | |
14054 | echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6 | |
29fd3c0c | 14055 | echo "configure:14056: checking for sched_yield in -l$THREADS_LINK" >&5 |
698dcdb6 VZ |
14056 | ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'` |
14057 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14058 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14059 | else |
698dcdb6 | 14060 | ac_save_LIBS="$LIBS" |
10f2d63a | 14061 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 14062 | cat > conftest.$ac_ext <<EOF |
29fd3c0c | 14063 | #line 14064 "configure" |
10f2d63a VZ |
14064 | #include "confdefs.h" |
14065 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14066 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14067 | builtin and then its argument prototype would still apply. */ |
14068 | char sched_yield(); | |
14069 | ||
14070 | int main() { | |
14071 | sched_yield() | |
14072 | ; return 0; } | |
14073 | EOF | |
29fd3c0c | 14074 | if { (eval echo configure:14075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14075 | rm -rf conftest* |
14076 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14077 | else | |
14078 | echo "configure: failed program was:" >&5 | |
14079 | cat conftest.$ac_ext >&5 | |
14080 | rm -rf conftest* | |
14081 | eval "ac_cv_lib_$ac_lib_var=no" | |
14082 | fi | |
14083 | rm -f conftest* | |
14084 | LIBS="$ac_save_LIBS" | |
14085 | ||
14086 | fi | |
14087 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14088 | echo "$ac_t""yes" 1>&6 | |
14089 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
14090 | #define HAVE_SCHED_YIELD 1 |
14091 | EOF | |
14092 | ||
14093 | else | |
698dcdb6 VZ |
14094 | echo "$ac_t""no" 1>&6 |
14095 | echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6 | |
29fd3c0c | 14096 | echo "configure:14097: checking for sched_yield in -lposix4" >&5 |
698dcdb6 VZ |
14097 | ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'` |
14098 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14099 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14100 | else |
698dcdb6 | 14101 | ac_save_LIBS="$LIBS" |
1e487827 | 14102 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 14103 | cat > conftest.$ac_ext <<EOF |
29fd3c0c | 14104 | #line 14105 "configure" |
10f2d63a VZ |
14105 | #include "confdefs.h" |
14106 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14107 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14108 | builtin and then its argument prototype would still apply. */ |
14109 | char sched_yield(); | |
14110 | ||
14111 | int main() { | |
14112 | sched_yield() | |
14113 | ; return 0; } | |
14114 | EOF | |
29fd3c0c | 14115 | if { (eval echo configure:14116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14116 | rm -rf conftest* |
14117 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14118 | else | |
14119 | echo "configure: failed program was:" >&5 | |
14120 | cat conftest.$ac_ext >&5 | |
14121 | rm -rf conftest* | |
14122 | eval "ac_cv_lib_$ac_lib_var=no" | |
14123 | fi | |
14124 | rm -f conftest* | |
14125 | LIBS="$ac_save_LIBS" | |
14126 | ||
14127 | fi | |
14128 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14129 | echo "$ac_t""yes" 1>&6 | |
14130 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
14131 | #define HAVE_SCHED_YIELD 1 |
14132 | EOF | |
14133 | POSIX4_LINK="-lposix4" | |
14134 | else | |
698dcdb6 VZ |
14135 | echo "$ac_t""no" 1>&6 |
14136 | echo "configure: warning: wxThread::Yield will not work properly" 1>&2 | |
14137 | ||
6232543b | 14138 | fi |
10f2d63a | 14139 | |
698dcdb6 | 14140 | |
1e487827 | 14141 | fi |
703e0a69 | 14142 | |
698dcdb6 | 14143 | |
f6bcfd97 | 14144 | HAVE_PRIOR_FUNCS=0 |
698dcdb6 | 14145 | echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6 |
29fd3c0c | 14146 | echo "configure:14147: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5 |
698dcdb6 VZ |
14147 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'` |
14148 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14149 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14150 | else |
698dcdb6 | 14151 | ac_save_LIBS="$LIBS" |
10f2d63a | 14152 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 14153 | cat > conftest.$ac_ext <<EOF |
29fd3c0c | 14154 | #line 14155 "configure" |
10f2d63a VZ |
14155 | #include "confdefs.h" |
14156 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14157 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14158 | builtin and then its argument prototype would still apply. */ |
14159 | char pthread_attr_getschedpolicy(); | |
14160 | ||
14161 | int main() { | |
14162 | pthread_attr_getschedpolicy() | |
14163 | ; return 0; } | |
14164 | EOF | |
29fd3c0c | 14165 | if { (eval echo configure:14166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14166 | rm -rf conftest* |
14167 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14168 | else | |
14169 | echo "configure: failed program was:" >&5 | |
14170 | cat conftest.$ac_ext >&5 | |
14171 | rm -rf conftest* | |
14172 | eval "ac_cv_lib_$ac_lib_var=no" | |
14173 | fi | |
14174 | rm -f conftest* | |
14175 | LIBS="$ac_save_LIBS" | |
14176 | ||
14177 | fi | |
14178 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14179 | echo "$ac_t""yes" 1>&6 | |
14180 | echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6 | |
29fd3c0c | 14181 | echo "configure:14182: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5 |
698dcdb6 VZ |
14182 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'` |
14183 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14184 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14185 | else | |
14186 | ac_save_LIBS="$LIBS" | |
f6bcfd97 | 14187 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 14188 | cat > conftest.$ac_ext <<EOF |
29fd3c0c | 14189 | #line 14190 "configure" |
f6bcfd97 BP |
14190 | #include "confdefs.h" |
14191 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14192 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14193 | builtin and then its argument prototype would still apply. */ |
14194 | char pthread_attr_setschedparam(); | |
14195 | ||
14196 | int main() { | |
14197 | pthread_attr_setschedparam() | |
14198 | ; return 0; } | |
14199 | EOF | |
29fd3c0c | 14200 | if { (eval echo configure:14201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14201 | rm -rf conftest* |
14202 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14203 | else | |
14204 | echo "configure: failed program was:" >&5 | |
14205 | cat conftest.$ac_ext >&5 | |
14206 | rm -rf conftest* | |
14207 | eval "ac_cv_lib_$ac_lib_var=no" | |
14208 | fi | |
14209 | rm -f conftest* | |
14210 | LIBS="$ac_save_LIBS" | |
14211 | ||
14212 | fi | |
14213 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14214 | echo "$ac_t""yes" 1>&6 | |
14215 | echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6 | |
29fd3c0c | 14216 | echo "configure:14217: checking for sched_get_priority_max in -l$THREADS_LINK" >&5 |
698dcdb6 VZ |
14217 | ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
14218 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14219 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14220 | else | |
14221 | ac_save_LIBS="$LIBS" | |
f6bcfd97 | 14222 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 14223 | cat > conftest.$ac_ext <<EOF |
29fd3c0c | 14224 | #line 14225 "configure" |
f6bcfd97 BP |
14225 | #include "confdefs.h" |
14226 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14227 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14228 | builtin and then its argument prototype would still apply. */ |
14229 | char sched_get_priority_max(); | |
14230 | ||
14231 | int main() { | |
14232 | sched_get_priority_max() | |
14233 | ; return 0; } | |
14234 | EOF | |
29fd3c0c | 14235 | if { (eval echo configure:14236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14236 | rm -rf conftest* |
14237 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14238 | else | |
14239 | echo "configure: failed program was:" >&5 | |
14240 | cat conftest.$ac_ext >&5 | |
14241 | rm -rf conftest* | |
14242 | eval "ac_cv_lib_$ac_lib_var=no" | |
14243 | fi | |
14244 | rm -f conftest* | |
14245 | LIBS="$ac_save_LIBS" | |
14246 | ||
14247 | fi | |
14248 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14249 | echo "$ac_t""yes" 1>&6 | |
f6bcfd97 | 14250 | HAVE_PRIOR_FUNCS=1 |
10f2d63a | 14251 | else |
698dcdb6 VZ |
14252 | echo "$ac_t""no" 1>&6 |
14253 | echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6 | |
29fd3c0c | 14254 | echo "configure:14255: checking for sched_get_priority_max in -lposix4" >&5 |
698dcdb6 VZ |
14255 | ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
14256 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14257 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 14258 | else |
698dcdb6 | 14259 | ac_save_LIBS="$LIBS" |
1e487827 | 14260 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 14261 | cat > conftest.$ac_ext <<EOF |
29fd3c0c | 14262 | #line 14263 "configure" |
10f2d63a | 14263 | #include "confdefs.h" |
6232543b | 14264 | /* Override any gcc2 internal prototype to avoid an error. */ |
6232543b | 14265 | /* We use char because int might match the return type of a gcc2 |
698dcdb6 VZ |
14266 | builtin and then its argument prototype would still apply. */ |
14267 | char sched_get_priority_max(); | |
14268 | ||
14269 | int main() { | |
14270 | sched_get_priority_max() | |
14271 | ; return 0; } | |
14272 | EOF | |
29fd3c0c | 14273 | if { (eval echo configure:14274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14274 | rm -rf conftest* |
14275 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14276 | else | |
14277 | echo "configure: failed program was:" >&5 | |
14278 | cat conftest.$ac_ext >&5 | |
14279 | rm -rf conftest* | |
14280 | eval "ac_cv_lib_$ac_lib_var=no" | |
14281 | fi | |
14282 | rm -f conftest* | |
14283 | LIBS="$ac_save_LIBS" | |
10f2d63a | 14284 | |
698dcdb6 VZ |
14285 | fi |
14286 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14287 | echo "$ac_t""yes" 1>&6 | |
14288 | ||
f6bcfd97 BP |
14289 | HAVE_PRIOR_FUNCS=1 |
14290 | POSIX4_LINK="-lposix4" | |
698dcdb6 VZ |
14291 | |
14292 | else | |
14293 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
14294 | fi |
14295 | ||
698dcdb6 | 14296 | |
10f2d63a VZ |
14297 | fi |
14298 | ||
698dcdb6 VZ |
14299 | |
14300 | else | |
14301 | echo "$ac_t""no" 1>&6 | |
6232543b | 14302 | fi |
10f2d63a | 14303 | |
698dcdb6 VZ |
14304 | |
14305 | else | |
14306 | echo "$ac_t""no" 1>&6 | |
1e487827 | 14307 | fi |
703e0a69 | 14308 | |
698dcdb6 | 14309 | |
f6bcfd97 | 14310 | if test "$HAVE_PRIOR_FUNCS" = 1; then |
698dcdb6 | 14311 | cat >> confdefs.h <<\EOF |
f6bcfd97 BP |
14312 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 |
14313 | EOF | |
14314 | ||
14315 | else | |
698dcdb6 | 14316 | echo "configure: warning: Setting thread priority will not work" 1>&2 |
f6bcfd97 BP |
14317 | fi |
14318 | ||
698dcdb6 | 14319 | echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6 |
29fd3c0c | 14320 | echo "configure:14321: checking for pthread_cancel in -l$THREADS_LINK" >&5 |
698dcdb6 VZ |
14321 | ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'` |
14322 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14323 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14324 | else |
698dcdb6 | 14325 | ac_save_LIBS="$LIBS" |
10f2d63a | 14326 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 14327 | cat > conftest.$ac_ext <<EOF |
29fd3c0c | 14328 | #line 14329 "configure" |
10f2d63a VZ |
14329 | #include "confdefs.h" |
14330 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14331 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14332 | builtin and then its argument prototype would still apply. */ |
14333 | char pthread_cancel(); | |
14334 | ||
14335 | int main() { | |
14336 | pthread_cancel() | |
14337 | ; return 0; } | |
14338 | EOF | |
29fd3c0c | 14339 | if { (eval echo configure:14340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14340 | rm -rf conftest* |
14341 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14342 | else | |
14343 | echo "configure: failed program was:" >&5 | |
14344 | cat conftest.$ac_ext >&5 | |
14345 | rm -rf conftest* | |
14346 | eval "ac_cv_lib_$ac_lib_var=no" | |
14347 | fi | |
14348 | rm -f conftest* | |
14349 | LIBS="$ac_save_LIBS" | |
14350 | ||
14351 | fi | |
14352 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14353 | echo "$ac_t""yes" 1>&6 | |
14354 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
14355 | #define HAVE_PTHREAD_CANCEL 1 |
14356 | EOF | |
14357 | ||
14358 | else | |
698dcdb6 VZ |
14359 | echo "$ac_t""no" 1>&6 |
14360 | echo "configure: warning: wxThread::Kill() will not work properly" 1>&2 | |
10f2d63a VZ |
14361 | fi |
14362 | ||
1e487827 | 14363 | |
698dcdb6 | 14364 | echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6 |
29fd3c0c | 14365 | echo "configure:14366: checking for pthread_cleanup_push/pop" >&5 |
698dcdb6 VZ |
14366 | if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then |
14367 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14368 | else | |
14369 | ||
14370 | cat > conftest.$ac_ext <<EOF | |
29fd3c0c | 14371 | #line 14372 "configure" |
10f2d63a VZ |
14372 | #include "confdefs.h" |
14373 | #include <pthread.h> | |
698dcdb6 | 14374 | int main() { |
10f2d63a VZ |
14375 | |
14376 | pthread_cleanup_push(NULL, NULL); | |
14377 | pthread_cleanup_pop(0); | |
698dcdb6 VZ |
14378 | |
14379 | ; return 0; } | |
14380 | EOF | |
29fd3c0c | 14381 | if { (eval echo configure:14382: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
14382 | rm -rf conftest* |
14383 | ||
10f2d63a | 14384 | wx_cv_func_pthread_cleanup_push=yes |
698dcdb6 | 14385 | |
10f2d63a | 14386 | else |
698dcdb6 VZ |
14387 | echo "configure: failed program was:" >&5 |
14388 | cat conftest.$ac_ext >&5 | |
14389 | rm -rf conftest* | |
14390 | ||
10f2d63a | 14391 | wx_cv_func_pthread_cleanup_push=no |
698dcdb6 | 14392 | |
6232543b | 14393 | fi |
698dcdb6 VZ |
14394 | rm -f conftest* |
14395 | ||
1e487827 | 14396 | fi |
698dcdb6 VZ |
14397 | |
14398 | echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6 | |
10f2d63a | 14399 | |
d9b9876f | 14400 | if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then |
698dcdb6 | 14401 | cat >> confdefs.h <<\EOF |
d9b9876f VZ |
14402 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 |
14403 | EOF | |
14404 | ||
14405 | fi | |
14406 | ||
698dcdb6 VZ |
14407 | |
14408 | echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6 | |
29fd3c0c | 14409 | echo "configure:14410: checking for pthread_mutexattr_t" >&5 |
698dcdb6 VZ |
14410 | if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then |
14411 | echo $ac_n "(cached) $ac_c" 1>&6 | |
d9b9876f | 14412 | else |
698dcdb6 VZ |
14413 | |
14414 | cat > conftest.$ac_ext <<EOF | |
29fd3c0c | 14415 | #line 14416 "configure" |
d9b9876f VZ |
14416 | #include "confdefs.h" |
14417 | #include <pthread.h> | |
698dcdb6 | 14418 | int main() { |
d9b9876f VZ |
14419 | |
14420 | pthread_mutexattr_t attr; | |
14421 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
698dcdb6 VZ |
14422 | |
14423 | ; return 0; } | |
14424 | EOF | |
29fd3c0c | 14425 | if { (eval echo configure:14426: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
14426 | rm -rf conftest* |
14427 | ||
d9b9876f | 14428 | wx_cv_type_pthread_mutexattr_t=yes |
698dcdb6 | 14429 | |
d9b9876f | 14430 | else |
698dcdb6 VZ |
14431 | echo "configure: failed program was:" >&5 |
14432 | cat conftest.$ac_ext >&5 | |
14433 | rm -rf conftest* | |
14434 | ||
d9b9876f | 14435 | wx_cv_type_pthread_mutexattr_t=no |
698dcdb6 VZ |
14436 | |
14437 | ||
6232543b | 14438 | fi |
698dcdb6 VZ |
14439 | rm -f conftest* |
14440 | ||
1e487827 | 14441 | fi |
698dcdb6 VZ |
14442 | |
14443 | echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6 | |
d9b9876f VZ |
14444 | |
14445 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then | |
698dcdb6 | 14446 | cat >> confdefs.h <<\EOF |
d9b9876f VZ |
14447 | #define HAVE_PTHREAD_MUTEXATTR_T 1 |
14448 | EOF | |
14449 | ||
14450 | else | |
698dcdb6 | 14451 | echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6 |
29fd3c0c | 14452 | echo "configure:14453: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 |
698dcdb6 VZ |
14453 | if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then |
14454 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14455 | else | |
14456 | ||
14457 | cat > conftest.$ac_ext <<EOF | |
29fd3c0c | 14458 | #line 14459 "configure" |
d9b9876f VZ |
14459 | #include "confdefs.h" |
14460 | #include <pthread.h> | |
698dcdb6 | 14461 | int main() { |
d9b9876f VZ |
14462 | |
14463 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; | |
698dcdb6 VZ |
14464 | |
14465 | ; return 0; } | |
14466 | EOF | |
29fd3c0c | 14467 | if { (eval echo configure:14468: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
14468 | rm -rf conftest* |
14469 | ||
d9b9876f | 14470 | wx_cv_type_pthread_rec_mutex_init=yes |
698dcdb6 | 14471 | |
d9b9876f | 14472 | else |
698dcdb6 VZ |
14473 | echo "configure: failed program was:" >&5 |
14474 | cat conftest.$ac_ext >&5 | |
14475 | rm -rf conftest* | |
14476 | ||
d9b9876f | 14477 | wx_cv_type_pthread_rec_mutex_init=no |
698dcdb6 VZ |
14478 | |
14479 | ||
6232543b | 14480 | fi |
698dcdb6 VZ |
14481 | rm -f conftest* |
14482 | ||
1e487827 | 14483 | fi |
698dcdb6 VZ |
14484 | |
14485 | echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6 | |
3765e936 | 14486 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then |
698dcdb6 | 14487 | cat >> confdefs.h <<\EOF |
d9b9876f VZ |
14488 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 |
14489 | EOF | |
14490 | ||
14491 | else | |
698dcdb6 | 14492 | echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2 |
d9b9876f VZ |
14493 | fi |
14494 | fi | |
14495 | ||
10f2d63a | 14496 | THREADS_LINK="-l$THREADS_LINK" |
186837b0 VZ |
14497 | |
14498 | if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then | |
14499 | CFLAGS="${CFLAGS} -mt" | |
14500 | CXXFLAGS="${CXXFLAGS} -mt" | |
14501 | LDFLAGS="${LDFLAGS} -mt" | |
14502 | fi | |
10f2d63a VZ |
14503 | fi |
14504 | ||
14505 | fi | |
14506 | ||
14507 | if test "$wxUSE_THREADS" = "yes"; then | |
698dcdb6 | 14508 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
14509 | #define wxUSE_THREADS 1 |
14510 | EOF | |
14511 | ||
698dcdb6 | 14512 | |
2c6025bc | 14513 | if test "$wxUSE_MAC" = "0"; then |
10f2d63a | 14514 | CFLAGS="${CFLAGS} -D_REENTRANT" |
2c6025bc GD |
14515 | CXXFLAGS="${CXXFLAGS} -D_REENTRANT" |
14516 | fi | |
10f2d63a VZ |
14517 | |
14518 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
14519 | else | |
14520 | if test "$ac_cv_func_strtok_r" = "yes"; then | |
698dcdb6 | 14521 | echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6 |
29fd3c0c | 14522 | echo "configure:14523: checking if -D_REENTRANT is needed" >&5 |
ab9b9eab VZ |
14523 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
14524 | CFLAGS="${CFLAGS} -D_REENTRANT" | |
14525 | CXXFLAGS="${CXXFLAGS} -D_REENTRANT" | |
698dcdb6 | 14526 | echo "$ac_t""yes" 1>&6 |
ab9b9eab | 14527 | else |
698dcdb6 | 14528 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
14529 | fi |
14530 | fi | |
14531 | fi | |
14532 | ||
6f72b082 | 14533 | if test "$WXGTK20" = 1 ; then |
698dcdb6 | 14534 | cat >> confdefs.h <<EOF |
6f72b082 | 14535 | #define __WXGTK20__ $WXGTK20 |
13111b2a VZ |
14536 | EOF |
14537 | ||
14538 | WXGTK12=1 | |
14539 | fi | |
14540 | ||
10f2d63a | 14541 | if test "$WXGTK12" = 1 ; then |
698dcdb6 | 14542 | cat >> confdefs.h <<EOF |
10f2d63a VZ |
14543 | #define __WXGTK12__ $WXGTK12 |
14544 | EOF | |
14545 | ||
14546 | fi | |
14547 | ||
f6bcfd97 | 14548 | if test "$WXGTK127" = 1 ; then |
698dcdb6 | 14549 | cat >> confdefs.h <<EOF |
f6bcfd97 BP |
14550 | #define __WXGTK127__ $WXGTK127 |
14551 | EOF | |
14552 | ||
14553 | fi | |
14554 | ||
10f2d63a VZ |
14555 | if test "$WXWINE" = 1 ; then |
14556 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__" | |
14557 | fi | |
14558 | ||
b4085ce6 | 14559 | if test "$wxUSE_MAC" = 1 ; then |
2c6025bc | 14560 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__UNIX__ -D__POWERPC__ -DTARGET_CARBON" |
ea5999b9 | 14561 | CFLAGS="${CFLAGS} -fno-common -fpascal-strings" |
0c451ef3 | 14562 | CPPFLAGS="${CPPFLAGS} -cpp-precomp -fno-common -fpascal-strings" |
2f51a9ec GD |
14563 | # Extract the first word of "Rez", so it can be a program name with args. |
14564 | set dummy Rez; ac_word=$2 | |
698dcdb6 | 14565 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
29fd3c0c | 14566 | echo "configure:14567: checking for $ac_word" >&5 |
698dcdb6 VZ |
14567 | if eval "test \"`echo '$''{'ac_cv_prog_REZ'+set}'`\" = set"; then |
14568 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2f51a9ec GD |
14569 | else |
14570 | if test -n "$REZ"; then | |
14571 | ac_cv_prog_REZ="$REZ" # Let the user override the test. | |
14572 | else | |
698dcdb6 VZ |
14573 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
14574 | ac_dummy="$PATH" | |
14575 | for ac_dir in $ac_dummy; do | |
14576 | test -z "$ac_dir" && ac_dir=. | |
14577 | if test -f $ac_dir/$ac_word; then | |
14578 | ac_cv_prog_REZ="Rez" | |
14579 | break | |
14580 | fi | |
14581 | done | |
14582 | IFS="$ac_save_ifs" | |
2f51a9ec GD |
14583 | test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez" |
14584 | fi | |
14585 | fi | |
698dcdb6 | 14586 | REZ="$ac_cv_prog_REZ" |
2f51a9ec | 14587 | if test -n "$REZ"; then |
698dcdb6 | 14588 | echo "$ac_t""$REZ" 1>&6 |
2f51a9ec | 14589 | else |
698dcdb6 | 14590 | echo "$ac_t""no" 1>&6 |
2f51a9ec GD |
14591 | fi |
14592 | ||
14593 | # Extract the first word of "Derez", so it can be a program name with args. | |
14594 | set dummy Derez; ac_word=$2 | |
698dcdb6 | 14595 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
29fd3c0c | 14596 | echo "configure:14597: checking for $ac_word" >&5 |
698dcdb6 VZ |
14597 | if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then |
14598 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2f51a9ec GD |
14599 | else |
14600 | if test -n "$DEREZ"; then | |
14601 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
14602 | else | |
698dcdb6 VZ |
14603 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
14604 | ac_dummy="$PATH" | |
14605 | for ac_dir in $ac_dummy; do | |
14606 | test -z "$ac_dir" && ac_dir=. | |
14607 | if test -f $ac_dir/$ac_word; then | |
14608 | ac_cv_prog_DEREZ="Derez" | |
14609 | break | |
14610 | fi | |
14611 | done | |
14612 | IFS="$ac_save_ifs" | |
2f51a9ec GD |
14613 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/Derez" |
14614 | fi | |
14615 | fi | |
698dcdb6 | 14616 | DEREZ="$ac_cv_prog_DEREZ" |
2f51a9ec | 14617 | if test -n "$DEREZ"; then |
698dcdb6 | 14618 | echo "$ac_t""$DEREZ" 1>&6 |
2f51a9ec | 14619 | else |
698dcdb6 | 14620 | echo "$ac_t""no" 1>&6 |
2f51a9ec GD |
14621 | fi |
14622 | ||
14623 | RESCOMP=${REZ} | |
14624 | REZFLAGS="-d __UNIX__ -useDF" | |
14625 | DEREZFLAGS="Carbon.r -useDF" | |
14626 | RESFLAGS="Carbon.r -t APPL" | |
14627 | LIBWXMACRES="\$(LIBWX_MACRES)" | |
14628 | LIBWXMACRESCOMP="\$(LIBWX_MACRESCOMP)" | |
b4085ce6 GD |
14629 | fi |
14630 | ||
10f2d63a VZ |
14631 | if test "$wxUSE_CYGWIN" = 1 ; then |
14632 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__" | |
14633 | fi | |
14634 | ||
14635 | WXDEBUG= | |
14636 | ||
14637 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
14638 | WXDEBUG="-g" | |
14639 | wxUSE_OPTIMISE=no | |
14640 | fi | |
14641 | ||
14642 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
14643 | wxUSE_DEBUG_INFO=yes | |
14644 | WXDEBUG="-ggdb" | |
14645 | fi | |
14646 | ||
14647 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
698dcdb6 | 14648 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
14649 | #define WXDEBUG 1 |
14650 | EOF | |
14651 | ||
14652 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
14653 | else | |
14654 | if test "$wxUSE_GTK" = 1 ; then | |
14655 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
14656 | fi | |
14657 | fi | |
14658 | ||
14659 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
698dcdb6 | 14660 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
14661 | #define wxUSE_MEMORY_TRACING 1 |
14662 | EOF | |
14663 | ||
698dcdb6 | 14664 | cat >> confdefs.h <<\EOF |
10f2d63a | 14665 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 |
47c13eb7 VS |
14666 | EOF |
14667 | ||
698dcdb6 | 14668 | cat >> confdefs.h <<\EOF |
47c13eb7 | 14669 | #define wxUSE_DEBUG_NEW_ALWAYS 1 |
10f2d63a VZ |
14670 | EOF |
14671 | ||
14672 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
14673 | fi | |
14674 | ||
14675 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
14676 | DMALLOC_LINK="-ldmalloc" | |
14677 | fi | |
14678 | ||
14679 | PROFILE= | |
14680 | if test "$wxUSE_PROFILE" = "yes" ; then | |
14681 | PROFILE="-pg" | |
14682 | fi | |
14683 | ||
14684 | DEP_INFO_FLAGS= | |
caa2c79b | 14685 | CODE_GEN_FLAGS= |
0f3f1cbc | 14686 | CODE_GEN_FLAGS_CXX= |
10f2d63a VZ |
14687 | if test "$GCC" = yes ; then |
14688 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
0f3f1cbc | 14689 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-rtti" |
10f2d63a VZ |
14690 | fi |
14691 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
0f3f1cbc | 14692 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-exceptions" |
10f2d63a VZ |
14693 | fi |
14694 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
caa2c79b | 14695 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" |
10f2d63a VZ |
14696 | fi |
14697 | if test "$wxUSE_NO_DEPS" = "no" ; then | |
14698 | DEP_INFO_FLAGS="-MMD" | |
14699 | fi | |
14700 | fi | |
14701 | ||
698dcdb6 | 14702 | |
10f2d63a VZ |
14703 | CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" ` |
14704 | CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" ` | |
14705 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
14706 | OPTIMISE= | |
14707 | else | |
14708 | if test "$GCC" = yes ; then | |
14709 | OPTIMISE="-O2" | |
14710 | case "${host}" in | |
14711 | i586-*-*|i686-*-* ) | |
14712 | OPTIMISE="${OPTIMISE} " | |
14713 | ;; | |
14714 | esac | |
14715 | else | |
14716 | OPTIMISE="-O" | |
14717 | fi | |
14718 | fi | |
14719 | ||
54276ccf VZ |
14720 | if test "$WXWIN_COMPATIBILITY_2" = "yes"; then |
14721 | cat >> confdefs.h <<\EOF | |
14722 | #define WXWIN_COMPATIBILITY_2 1 | |
14723 | EOF | |
14724 | ||
14725 | ||
14726 | WXWIN_COMPATIBILITY_2_2="yes" | |
14727 | fi | |
14728 | ||
14729 | if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then | |
14730 | cat >> confdefs.h <<\EOF | |
14731 | #define WXWIN_COMPATIBILITY_2_2 1 | |
14732 | EOF | |
14733 | ||
14734 | fi | |
14735 | ||
698dcdb6 | 14736 | |
10f2d63a | 14737 | ZLIB_INCLUDE= |
422107f9 | 14738 | if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then |
698dcdb6 | 14739 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
14740 | #define wxUSE_ZLIB 1 |
14741 | EOF | |
14742 | ||
422107f9 VZ |
14743 | if test "$wxUSE_ZLIB" = "yes" ; then |
14744 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
14745 | else | |
14746 | ZLIB_LINK= | |
698dcdb6 VZ |
14747 | ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'` |
14748 | echo $ac_n "checking for zlib.h""... $ac_c" 1>&6 | |
29fd3c0c | 14749 | echo "configure:14750: checking for zlib.h" >&5 |
698dcdb6 VZ |
14750 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
14751 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14752 | else | |
14753 | cat > conftest.$ac_ext <<EOF | |
29fd3c0c | 14754 | #line 14755 "configure" |
422107f9 VZ |
14755 | #include "confdefs.h" |
14756 | #include <zlib.h> | |
698dcdb6 VZ |
14757 | EOF |
14758 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
29fd3c0c | 14759 | { (eval echo configure:14760: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
14760 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14761 | if test -z "$ac_err"; then | |
14762 | rm -rf conftest* | |
14763 | eval "ac_cv_header_$ac_safe=yes" | |
422107f9 | 14764 | else |
698dcdb6 VZ |
14765 | echo "$ac_err" >&5 |
14766 | echo "configure: failed program was:" >&5 | |
422107f9 | 14767 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
14768 | rm -rf conftest* |
14769 | eval "ac_cv_header_$ac_safe=no" | |
422107f9 | 14770 | fi |
698dcdb6 | 14771 | rm -f conftest* |
422107f9 | 14772 | fi |
698dcdb6 VZ |
14773 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
14774 | echo "$ac_t""yes" 1>&6 | |
14775 | echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6 | |
29fd3c0c | 14776 | echo "configure:14777: checking for deflate in -lz" >&5 |
698dcdb6 VZ |
14777 | ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'` |
14778 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14779 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 14780 | else |
698dcdb6 | 14781 | ac_save_LIBS="$LIBS" |
422107f9 | 14782 | LIBS="-lz $LIBS" |
698dcdb6 | 14783 | cat > conftest.$ac_ext <<EOF |
29fd3c0c | 14784 | #line 14785 "configure" |
422107f9 VZ |
14785 | #include "confdefs.h" |
14786 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14787 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14788 | builtin and then its argument prototype would still apply. */ |
14789 | char deflate(); | |
14790 | ||
14791 | int main() { | |
14792 | deflate() | |
14793 | ; return 0; } | |
14794 | EOF | |
29fd3c0c | 14795 | if { (eval echo configure:14796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14796 | rm -rf conftest* |
14797 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14798 | else | |
14799 | echo "configure: failed program was:" >&5 | |
14800 | cat conftest.$ac_ext >&5 | |
14801 | rm -rf conftest* | |
14802 | eval "ac_cv_lib_$ac_lib_var=no" | |
14803 | fi | |
14804 | rm -f conftest* | |
14805 | LIBS="$ac_save_LIBS" | |
14806 | ||
14807 | fi | |
14808 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14809 | echo "$ac_t""yes" 1>&6 | |
422107f9 | 14810 | ZLIB_LINK="-lz" |
698dcdb6 VZ |
14811 | else |
14812 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
14813 | fi |
14814 | ||
698dcdb6 VZ |
14815 | else |
14816 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
14817 | fi |
14818 | ||
14819 | if test "x$ZLIB_LINK" = "x" ; then | |
698dcdb6 | 14820 | { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; } |
422107f9 VZ |
14821 | fi |
14822 | fi | |
10f2d63a VZ |
14823 | fi |
14824 | ||
14825 | PNG_INCLUDE= | |
422107f9 | 14826 | if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then |
698dcdb6 | 14827 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
14828 | #define wxUSE_LIBPNG 1 |
14829 | EOF | |
14830 | ||
41fd4136 | 14831 | if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then |
698dcdb6 | 14832 | echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2 |
422107f9 VZ |
14833 | wxUSE_LIBPNG=yes |
14834 | fi | |
14835 | ||
14836 | if test "$wxUSE_LIBPNG" = "yes" ; then | |
14837 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
14838 | else | |
14839 | PNG_LINK= | |
698dcdb6 VZ |
14840 | ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` |
14841 | echo $ac_n "checking for png.h""... $ac_c" 1>&6 | |
29fd3c0c | 14842 | echo "configure:14843: checking for png.h" >&5 |
698dcdb6 VZ |
14843 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
14844 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14845 | else | |
14846 | cat > conftest.$ac_ext <<EOF | |
29fd3c0c | 14847 | #line 14848 "configure" |
422107f9 VZ |
14848 | #include "confdefs.h" |
14849 | #include <png.h> | |
698dcdb6 VZ |
14850 | EOF |
14851 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
29fd3c0c | 14852 | { (eval echo configure:14853: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
14853 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14854 | if test -z "$ac_err"; then | |
14855 | rm -rf conftest* | |
14856 | eval "ac_cv_header_$ac_safe=yes" | |
422107f9 | 14857 | else |
698dcdb6 VZ |
14858 | echo "$ac_err" >&5 |
14859 | echo "configure: failed program was:" >&5 | |
422107f9 | 14860 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
14861 | rm -rf conftest* |
14862 | eval "ac_cv_header_$ac_safe=no" | |
422107f9 | 14863 | fi |
698dcdb6 | 14864 | rm -f conftest* |
422107f9 | 14865 | fi |
698dcdb6 VZ |
14866 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
14867 | echo "$ac_t""yes" 1>&6 | |
14868 | echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6 | |
29fd3c0c | 14869 | echo "configure:14870: checking for png_check_sig in -lpng" >&5 |
698dcdb6 VZ |
14870 | ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'` |
14871 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14872 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 14873 | else |
698dcdb6 | 14874 | ac_save_LIBS="$LIBS" |
422107f9 | 14875 | LIBS="-lpng -lz -lm $LIBS" |
698dcdb6 | 14876 | cat > conftest.$ac_ext <<EOF |
29fd3c0c | 14877 | #line 14878 "configure" |
422107f9 VZ |
14878 | #include "confdefs.h" |
14879 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14880 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14881 | builtin and then its argument prototype would still apply. */ |
14882 | char png_check_sig(); | |
14883 | ||
14884 | int main() { | |
14885 | png_check_sig() | |
14886 | ; return 0; } | |
14887 | EOF | |
29fd3c0c | 14888 | if { (eval echo configure:14889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14889 | rm -rf conftest* |
14890 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14891 | else | |
14892 | echo "configure: failed program was:" >&5 | |
14893 | cat conftest.$ac_ext >&5 | |
14894 | rm -rf conftest* | |
14895 | eval "ac_cv_lib_$ac_lib_var=no" | |
14896 | fi | |
14897 | rm -f conftest* | |
14898 | LIBS="$ac_save_LIBS" | |
14899 | ||
14900 | fi | |
14901 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14902 | echo "$ac_t""yes" 1>&6 | |
422107f9 | 14903 | PNG_LINK="-lpng" |
698dcdb6 VZ |
14904 | else |
14905 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
14906 | fi |
14907 | ||
698dcdb6 VZ |
14908 | |
14909 | else | |
14910 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
14911 | fi |
14912 | ||
14913 | if test "x$PNG_LINK" = "x" ; then | |
698dcdb6 | 14914 | { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; } |
422107f9 VZ |
14915 | fi |
14916 | fi | |
14917 | ||
10f2d63a VZ |
14918 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" |
14919 | fi | |
14920 | ||
14921 | JPEG_INCLUDE= | |
422107f9 | 14922 | if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then |
698dcdb6 | 14923 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
14924 | #define wxUSE_LIBJPEG 1 |
14925 | EOF | |
14926 | ||
422107f9 VZ |
14927 | if test "$wxUSE_LIBJPEG" = "yes" ; then |
14928 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
14929 | else | |
14930 | JPEG_LINK= | |
463abc64 | 14931 | echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 |
29fd3c0c | 14932 | echo "configure:14933: checking for jpeglib.h" >&5 |
463abc64 | 14933 | if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then |
698dcdb6 VZ |
14934 | echo $ac_n "(cached) $ac_c" 1>&6 |
14935 | else | |
14936 | cat > conftest.$ac_ext <<EOF | |
29fd3c0c | 14937 | #line 14938 "configure" |
422107f9 | 14938 | #include "confdefs.h" |
463abc64 VZ |
14939 | |
14940 | #undef HAVE_STDLIB_H | |
14941 | #include <stdio.h> | |
14942 | #include <jpeglib.h> | |
14943 | ||
14944 | int main() { | |
14945 | ||
14946 | ||
14947 | ; return 0; } | |
698dcdb6 | 14948 | EOF |
29fd3c0c | 14949 | if { (eval echo configure:14950: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 14950 | rm -rf conftest* |
463abc64 | 14951 | ac_cv_header_jpeglib_h=yes |
6232543b | 14952 | else |
698dcdb6 | 14953 | echo "configure: failed program was:" >&5 |
422107f9 | 14954 | cat conftest.$ac_ext >&5 |
698dcdb6 | 14955 | rm -rf conftest* |
463abc64 VZ |
14956 | ac_cv_header_jpeglib_h=no |
14957 | ||
422107f9 | 14958 | fi |
698dcdb6 | 14959 | rm -f conftest* |
463abc64 | 14960 | |
422107f9 | 14961 | fi |
463abc64 VZ |
14962 | |
14963 | echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6 | |
14964 | ||
14965 | if test "$ac_cv_header_jpeglib_h" = "yes"; then | |
14966 | echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6 | |
29fd3c0c | 14967 | echo "configure:14968: checking for jpeg_read_header in -ljpeg" >&5 |
698dcdb6 VZ |
14968 | ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'` |
14969 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14970 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 14971 | else |
698dcdb6 | 14972 | ac_save_LIBS="$LIBS" |
422107f9 | 14973 | LIBS="-ljpeg $LIBS" |
698dcdb6 | 14974 | cat > conftest.$ac_ext <<EOF |
29fd3c0c | 14975 | #line 14976 "configure" |
422107f9 VZ |
14976 | #include "confdefs.h" |
14977 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14978 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14979 | builtin and then its argument prototype would still apply. */ |
14980 | char jpeg_read_header(); | |
14981 | ||
14982 | int main() { | |
14983 | jpeg_read_header() | |
14984 | ; return 0; } | |
14985 | EOF | |
29fd3c0c | 14986 | if { (eval echo configure:14987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14987 | rm -rf conftest* |
14988 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14989 | else | |
14990 | echo "configure: failed program was:" >&5 | |
14991 | cat conftest.$ac_ext >&5 | |
14992 | rm -rf conftest* | |
14993 | eval "ac_cv_lib_$ac_lib_var=no" | |
14994 | fi | |
14995 | rm -f conftest* | |
14996 | LIBS="$ac_save_LIBS" | |
14997 | ||
14998 | fi | |
14999 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15000 | echo "$ac_t""yes" 1>&6 | |
422107f9 | 15001 | JPEG_LINK="-ljpeg" |
698dcdb6 VZ |
15002 | else |
15003 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
15004 | fi |
15005 | ||
463abc64 | 15006 | fi |
422107f9 VZ |
15007 | |
15008 | if test "x$JPEG_LINK" = "x" ; then | |
698dcdb6 | 15009 | { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; } |
422107f9 VZ |
15010 | fi |
15011 | fi | |
10f2d63a VZ |
15012 | fi |
15013 | ||
c7a2bf27 | 15014 | TIFF_INCLUDE= |
0dcf9893 | 15015 | if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then |
698dcdb6 | 15016 | cat >> confdefs.h <<\EOF |
c7a2bf27 RR |
15017 | #define wxUSE_LIBTIFF 1 |
15018 | EOF | |
15019 | ||
665bbe97 | 15020 | if test "$wxUSE_LIBTIFF" = "yes" ; then |
0dcf9893 VZ |
15021 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" |
15022 | else | |
15023 | TIFF_LINK= | |
698dcdb6 VZ |
15024 | ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` |
15025 | echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | |
29fd3c0c | 15026 | echo "configure:15027: checking for tiffio.h" >&5 |
698dcdb6 VZ |
15027 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
15028 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15029 | else | |
15030 | cat > conftest.$ac_ext <<EOF | |
29fd3c0c | 15031 | #line 15032 "configure" |
0dcf9893 VZ |
15032 | #include "confdefs.h" |
15033 | #include <tiffio.h> | |
698dcdb6 VZ |
15034 | EOF |
15035 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
29fd3c0c | 15036 | { (eval echo configure:15037: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
15037 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15038 | if test -z "$ac_err"; then | |
15039 | rm -rf conftest* | |
15040 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 15041 | else |
698dcdb6 VZ |
15042 | echo "$ac_err" >&5 |
15043 | echo "configure: failed program was:" >&5 | |
0dcf9893 | 15044 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
15045 | rm -rf conftest* |
15046 | eval "ac_cv_header_$ac_safe=no" | |
0dcf9893 | 15047 | fi |
698dcdb6 | 15048 | rm -f conftest* |
0dcf9893 | 15049 | fi |
698dcdb6 VZ |
15050 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
15051 | echo "$ac_t""yes" 1>&6 | |
15052 | echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6 | |
29fd3c0c | 15053 | echo "configure:15054: checking for TIFFError in -ltiff" >&5 |
698dcdb6 VZ |
15054 | ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'` |
15055 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15056 | echo $ac_n "(cached) $ac_c" 1>&6 | |
0dcf9893 | 15057 | else |
698dcdb6 | 15058 | ac_save_LIBS="$LIBS" |
0dcf9893 | 15059 | LIBS="-ltiff -lm $LIBS" |
698dcdb6 | 15060 | cat > conftest.$ac_ext <<EOF |
29fd3c0c | 15061 | #line 15062 "configure" |
0dcf9893 VZ |
15062 | #include "confdefs.h" |
15063 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15064 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15065 | builtin and then its argument prototype would still apply. */ |
15066 | char TIFFError(); | |
15067 | ||
15068 | int main() { | |
15069 | TIFFError() | |
15070 | ; return 0; } | |
15071 | EOF | |
29fd3c0c | 15072 | if { (eval echo configure:15073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15073 | rm -rf conftest* |
15074 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15075 | else | |
15076 | echo "configure: failed program was:" >&5 | |
15077 | cat conftest.$ac_ext >&5 | |
15078 | rm -rf conftest* | |
15079 | eval "ac_cv_lib_$ac_lib_var=no" | |
15080 | fi | |
15081 | rm -f conftest* | |
15082 | LIBS="$ac_save_LIBS" | |
15083 | ||
15084 | fi | |
15085 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15086 | echo "$ac_t""yes" 1>&6 | |
0dcf9893 | 15087 | TIFF_LINK="-ltiff" |
698dcdb6 VZ |
15088 | else |
15089 | echo "$ac_t""no" 1>&6 | |
0dcf9893 VZ |
15090 | fi |
15091 | ||
698dcdb6 VZ |
15092 | else |
15093 | echo "$ac_t""no" 1>&6 | |
0dcf9893 VZ |
15094 | fi |
15095 | ||
15096 | if test "x$TIFF_LINK" = "x" ; then | |
698dcdb6 | 15097 | { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; } |
0dcf9893 VZ |
15098 | fi |
15099 | fi | |
c7a2bf27 RR |
15100 | fi |
15101 | ||
3fed1840 RR |
15102 | FREETYPE_INCLUDE= |
15103 | if test "$wxUSE_FREETYPE" = "yes" -o "$wxUSE_FREETYPE" = "sys" ; then | |
698dcdb6 | 15104 | cat >> confdefs.h <<\EOF |
3fed1840 RR |
15105 | #define wxUSE_FREETYPE 1 |
15106 | EOF | |
15107 | ||
15108 | if test "$wxUSE_FREETYPE" = "yes" ; then | |
15109 | FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype" | |
15110 | else | |
15111 | FREETYPE_LINK= | |
698dcdb6 VZ |
15112 | ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'` |
15113 | echo $ac_n "checking for freetype.h""... $ac_c" 1>&6 | |
29fd3c0c | 15114 | echo "configure:15115: checking for freetype.h" >&5 |
698dcdb6 VZ |
15115 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
15116 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15117 | else | |
15118 | cat > conftest.$ac_ext <<EOF | |
29fd3c0c | 15119 | #line 15120 "configure" |
3fed1840 RR |
15120 | #include "confdefs.h" |
15121 | #include <freetype.h> | |
698dcdb6 VZ |
15122 | EOF |
15123 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
29fd3c0c | 15124 | { (eval echo configure:15125: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
15125 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15126 | if test -z "$ac_err"; then | |
15127 | rm -rf conftest* | |
15128 | eval "ac_cv_header_$ac_safe=yes" | |
3fed1840 | 15129 | else |
698dcdb6 VZ |
15130 | echo "$ac_err" >&5 |
15131 | echo "configure: failed program was:" >&5 | |
3fed1840 | 15132 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
15133 | rm -rf conftest* |
15134 | eval "ac_cv_header_$ac_safe=no" | |
3fed1840 | 15135 | fi |
698dcdb6 | 15136 | rm -f conftest* |
3fed1840 | 15137 | fi |
698dcdb6 VZ |
15138 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
15139 | echo "$ac_t""yes" 1>&6 | |
15140 | echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6 | |
29fd3c0c | 15141 | echo "configure:15142: checking for FT_Render_Glyph in -lfreetype" >&5 |
698dcdb6 VZ |
15142 | ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'` |
15143 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15144 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3fed1840 | 15145 | else |
698dcdb6 | 15146 | ac_save_LIBS="$LIBS" |
3fed1840 | 15147 | LIBS="-lfreetype -lm $LIBS" |
698dcdb6 | 15148 | cat > conftest.$ac_ext <<EOF |
29fd3c0c | 15149 | #line 15150 "configure" |
3fed1840 RR |
15150 | #include "confdefs.h" |
15151 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15152 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15153 | builtin and then its argument prototype would still apply. */ |
15154 | char FT_Render_Glyph(); | |
15155 | ||
15156 | int main() { | |
15157 | FT_Render_Glyph() | |
15158 | ; return 0; } | |
15159 | EOF | |
29fd3c0c | 15160 | if { (eval echo configure:15161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15161 | rm -rf conftest* |
15162 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15163 | else | |
15164 | echo "configure: failed program was:" >&5 | |
15165 | cat conftest.$ac_ext >&5 | |
15166 | rm -rf conftest* | |
15167 | eval "ac_cv_lib_$ac_lib_var=no" | |
15168 | fi | |
15169 | rm -f conftest* | |
15170 | LIBS="$ac_save_LIBS" | |
15171 | ||
15172 | fi | |
15173 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15174 | echo "$ac_t""yes" 1>&6 | |
3fed1840 | 15175 | FREETYPE_LINK="-lfreetype" |
698dcdb6 VZ |
15176 | else |
15177 | echo "$ac_t""no" 1>&6 | |
3fed1840 RR |
15178 | fi |
15179 | ||
698dcdb6 VZ |
15180 | |
15181 | else | |
15182 | echo "$ac_t""no" 1>&6 | |
3fed1840 RR |
15183 | fi |
15184 | ||
15185 | if test "x$FREETYPE_LINK" = "x" ; then | |
698dcdb6 | 15186 | { echo "configure: error: system freetype library not found! Use --with-freetype=yes to use the built-in freetype" 1>&2; exit 1; } |
3fed1840 RR |
15187 | fi |
15188 | fi | |
15189 | fi | |
15190 | ||
10f2d63a | 15191 | if test "$wxUSE_OPENGL" = "yes"; then |
698dcdb6 VZ |
15192 | ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'` |
15193 | echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6 | |
29fd3c0c | 15194 | echo "configure:15195: checking for GL/gl.h" >&5 |
698dcdb6 VZ |
15195 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
15196 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15197 | else | |
15198 | cat > conftest.$ac_ext <<EOF | |
29fd3c0c | 15199 | #line 15200 "configure" |
10f2d63a VZ |
15200 | #include "confdefs.h" |
15201 | #include <GL/gl.h> | |
698dcdb6 VZ |
15202 | EOF |
15203 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
29fd3c0c | 15204 | { (eval echo configure:15205: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
15205 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15206 | if test -z "$ac_err"; then | |
15207 | rm -rf conftest* | |
15208 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 15209 | else |
698dcdb6 VZ |
15210 | echo "$ac_err" >&5 |
15211 | echo "configure: failed program was:" >&5 | |
10f2d63a | 15212 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
15213 | rm -rf conftest* |
15214 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 15215 | fi |
698dcdb6 | 15216 | rm -f conftest* |
10f2d63a | 15217 | fi |
698dcdb6 VZ |
15218 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
15219 | echo "$ac_t""yes" 1>&6 | |
15220 | ||
15221 | cat >> confdefs.h <<\EOF | |
bdad4e7e RR |
15222 | #define wxUSE_OPENGL 1 |
15223 | EOF | |
15224 | ||
698dcdb6 | 15225 | cat >> confdefs.h <<\EOF |
bdad4e7e RR |
15226 | #define wxUSE_GLCANVAS 1 |
15227 | EOF | |
15228 | ||
698dcdb6 | 15229 | echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6 |
29fd3c0c | 15230 | echo "configure:15231: checking for glFlush in -lGL" >&5 |
698dcdb6 VZ |
15231 | ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'` |
15232 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15233 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 15234 | else |
698dcdb6 | 15235 | ac_save_LIBS="$LIBS" |
bdad4e7e | 15236 | LIBS="-lGL $LIBS" |
698dcdb6 | 15237 | cat > conftest.$ac_ext <<EOF |
29fd3c0c | 15238 | #line 15239 "configure" |
10f2d63a VZ |
15239 | #include "confdefs.h" |
15240 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15241 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15242 | builtin and then its argument prototype would still apply. */ |
15243 | char glFlush(); | |
6232543b | 15244 | |
698dcdb6 VZ |
15245 | int main() { |
15246 | glFlush() | |
15247 | ; return 0; } | |
15248 | EOF | |
29fd3c0c | 15249 | if { (eval echo configure:15250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15250 | rm -rf conftest* |
15251 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15252 | else | |
15253 | echo "configure: failed program was:" >&5 | |
15254 | cat conftest.$ac_ext >&5 | |
15255 | rm -rf conftest* | |
15256 | eval "ac_cv_lib_$ac_lib_var=no" | |
15257 | fi | |
15258 | rm -f conftest* | |
15259 | LIBS="$ac_save_LIBS" | |
1e487827 | 15260 | |
698dcdb6 VZ |
15261 | fi |
15262 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15263 | echo "$ac_t""yes" 1>&6 | |
15264 | ||
15265 | OPENGL_LINK="-lGL -lGLU" | |
15266 | ||
10f2d63a | 15267 | else |
698dcdb6 | 15268 | echo "$ac_t""no" 1>&6 |
10f2d63a | 15269 | |
698dcdb6 | 15270 | echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6 |
29fd3c0c | 15271 | echo "configure:15272: checking for glFlush in -lMesaGL" >&5 |
698dcdb6 VZ |
15272 | ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'` |
15273 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15274 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 15275 | else |
698dcdb6 | 15276 | ac_save_LIBS="$LIBS" |
10f2d63a | 15277 | LIBS="-lMesaGL $LIBS" |
698dcdb6 | 15278 | cat > conftest.$ac_ext <<EOF |
29fd3c0c | 15279 | #line 15280 "configure" |
10f2d63a VZ |
15280 | #include "confdefs.h" |
15281 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15282 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15283 | builtin and then its argument prototype would still apply. */ |
15284 | char glFlush(); | |
15285 | ||
15286 | int main() { | |
15287 | glFlush() | |
15288 | ; return 0; } | |
15289 | EOF | |
29fd3c0c | 15290 | if { (eval echo configure:15291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15291 | rm -rf conftest* |
15292 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15293 | else | |
15294 | echo "configure: failed program was:" >&5 | |
15295 | cat conftest.$ac_ext >&5 | |
15296 | rm -rf conftest* | |
15297 | eval "ac_cv_lib_$ac_lib_var=no" | |
15298 | fi | |
15299 | rm -f conftest* | |
15300 | LIBS="$ac_save_LIBS" | |
10f2d63a | 15301 | |
698dcdb6 VZ |
15302 | fi |
15303 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15304 | echo "$ac_t""yes" 1>&6 | |
15305 | ||
f6bcfd97 | 15306 | OPENGL_LINK="-lMesaGL -lMesaGLU" |
698dcdb6 VZ |
15307 | |
15308 | else | |
15309 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
15310 | fi |
15311 | ||
698dcdb6 | 15312 | |
10f2d63a VZ |
15313 | fi |
15314 | ||
698dcdb6 | 15315 | |
10f2d63a | 15316 | else |
698dcdb6 VZ |
15317 | echo "$ac_t""no" 1>&6 |
15318 | wxUSE_OPENGL=0 | |
10f2d63a VZ |
15319 | fi |
15320 | ||
15321 | fi | |
15322 | ||
698dcdb6 | 15323 | |
10f2d63a | 15324 | if test "$wxUSE_GUI" = "yes"; then |
698dcdb6 | 15325 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15326 | #define wxUSE_GUI 1 |
15327 | EOF | |
15328 | ||
698dcdb6 | 15329 | |
10f2d63a | 15330 | else |
698dcdb6 | 15331 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15332 | #define wxUSE_NOGUI 1 |
15333 | EOF | |
15334 | ||
15335 | fi | |
15336 | ||
698dcdb6 | 15337 | |
10f2d63a | 15338 | if test "$wxUSE_UNIX" = "yes"; then |
698dcdb6 | 15339 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15340 | #define wxUSE_UNIX 1 |
15341 | EOF | |
15342 | ||
15343 | fi | |
15344 | ||
698dcdb6 | 15345 | |
10f2d63a | 15346 | if test "$wxUSE_APPLE_IEEE" = "yes"; then |
698dcdb6 | 15347 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15348 | #define wxUSE_APPLE_IEEE 1 |
15349 | EOF | |
15350 | ||
15351 | fi | |
15352 | ||
1e6feb95 VZ |
15353 | if test "$wxUSE_TIMER" = "yes"; then |
15354 | cat >> confdefs.h <<\EOF | |
15355 | #define wxUSE_TIMER 1 | |
15356 | EOF | |
15357 | ||
15358 | fi | |
15359 | ||
10f2d63a | 15360 | if test "$wxUSE_WAVE" = "yes"; then |
698dcdb6 | 15361 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15362 | #define wxUSE_WAVE 1 |
15363 | EOF | |
15364 | ||
15365 | fi | |
15366 | ||
1e6feb95 VZ |
15367 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
15368 | cat >> confdefs.h <<\EOF | |
15369 | #define wxUSE_CMDLINE_PARSER 1 | |
15370 | EOF | |
15371 | ||
15372 | fi | |
15373 | ||
15374 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
15375 | cat >> confdefs.h <<\EOF | |
15376 | #define wxUSE_STOPWATCH 1 | |
15377 | EOF | |
15378 | ||
15379 | fi | |
15380 | ||
15381 | if test "$wxUSE_DATETIME" = "yes"; then | |
15382 | cat >> confdefs.h <<\EOF | |
15383 | #define wxUSE_DATETIME 1 | |
15384 | EOF | |
15385 | ||
15386 | fi | |
15387 | ||
15388 | if test "$wxUSE_TIMEDATE" = "yes"; then | |
15389 | cat >> confdefs.h <<\EOF | |
15390 | #define wxUSE_TIMEDATE 1 | |
15391 | EOF | |
15392 | ||
15393 | fi | |
15394 | ||
10f2d63a | 15395 | if test "$wxUSE_FILE" = "yes"; then |
698dcdb6 | 15396 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15397 | #define wxUSE_FILE 1 |
15398 | EOF | |
15399 | ||
15400 | fi | |
15401 | ||
1e6feb95 VZ |
15402 | if test "$wxUSE_FFILE" = "yes"; then |
15403 | cat >> confdefs.h <<\EOF | |
15404 | #define wxUSE_FFILE 1 | |
15405 | EOF | |
15406 | ||
15407 | fi | |
15408 | ||
24528b0c | 15409 | if test "$wxUSE_FILESYSTEM" = "yes"; then |
698dcdb6 | 15410 | cat >> confdefs.h <<\EOF |
24528b0c VS |
15411 | #define wxUSE_FILESYSTEM 1 |
15412 | EOF | |
15413 | ||
15414 | fi | |
15415 | ||
10f2d63a | 15416 | if test "$wxUSE_FS_INET" = "yes"; then |
698dcdb6 | 15417 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15418 | #define wxUSE_FS_INET 1 |
15419 | EOF | |
15420 | ||
15421 | fi | |
15422 | ||
15423 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
698dcdb6 | 15424 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15425 | #define wxUSE_FS_ZIP 1 |
15426 | EOF | |
15427 | ||
15428 | fi | |
15429 | ||
15430 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
698dcdb6 | 15431 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15432 | #define wxUSE_ZIPSTREAM 1 |
15433 | EOF | |
15434 | ||
15435 | fi | |
15436 | ||
eb4efbdc | 15437 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
698dcdb6 | 15438 | cat >> confdefs.h <<\EOF |
eb4efbdc VZ |
15439 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
15440 | EOF | |
15441 | ||
15442 | fi | |
15443 | ||
4f3c5f06 | 15444 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
698dcdb6 | 15445 | cat >> confdefs.h <<\EOF |
4f3c5f06 VZ |
15446 | #define wxUSE_SNGLINST_CHECKER 1 |
15447 | EOF | |
15448 | ||
15449 | fi | |
15450 | ||
10f2d63a | 15451 | if test "$wxUSE_BUSYINFO" = "yes"; then |
698dcdb6 | 15452 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15453 | #define wxUSE_BUSYINFO 1 |
15454 | EOF | |
15455 | ||
15456 | fi | |
15457 | ||
15458 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
698dcdb6 | 15459 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15460 | #define wxUSE_STD_IOSTREAM 1 |
15461 | EOF | |
15462 | ||
15463 | fi | |
15464 | ||
15465 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
15466 | if test "$wxUSE_FILE" != "yes"; then | |
698dcdb6 | 15467 | echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2 |
10f2d63a | 15468 | else |
698dcdb6 | 15469 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15470 | #define wxUSE_TEXTFILE 1 |
15471 | EOF | |
15472 | ||
15473 | fi | |
15474 | fi | |
15475 | ||
15476 | if test "$wxUSE_CONFIG" = "yes" ; then | |
15477 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
698dcdb6 | 15478 | echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2 |
10f2d63a | 15479 | else |
698dcdb6 | 15480 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15481 | #define wxUSE_CONFIG 1 |
15482 | EOF | |
15483 | ||
15484 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
15485 | fi | |
15486 | fi | |
15487 | ||
15488 | if test "$wxUSE_INTL" = "yes" ; then | |
15489 | if test "$wxUSE_FILE" != "yes"; then | |
698dcdb6 | 15490 | echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2 |
10f2d63a | 15491 | else |
698dcdb6 | 15492 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15493 | #define wxUSE_INTL 1 |
15494 | EOF | |
15495 | ||
15496 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
f6bcfd97 | 15497 | GUIDIST="$GUIDIST INTL_DIST" |
10f2d63a VZ |
15498 | fi |
15499 | fi | |
15500 | ||
15501 | if test "$wxUSE_LOG" = "yes"; then | |
698dcdb6 | 15502 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15503 | #define wxUSE_LOG 1 |
15504 | EOF | |
15505 | ||
d73be714 VZ |
15506 | |
15507 | if test "$wxUSE_LOGGUI" = "yes"; then | |
15508 | cat >> confdefs.h <<\EOF | |
15509 | #define wxUSE_LOGGUI 1 | |
15510 | EOF | |
15511 | ||
15512 | fi | |
15513 | ||
15514 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
15515 | cat >> confdefs.h <<\EOF | |
15516 | #define wxUSE_LOGWINDOW 1 | |
15517 | EOF | |
15518 | ||
15519 | fi | |
10f2d63a VZ |
15520 | fi |
15521 | ||
15522 | if test "$wxUSE_LONGLONG" = "yes"; then | |
698dcdb6 | 15523 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15524 | #define wxUSE_LONGLONG 1 |
15525 | EOF | |
15526 | ||
15527 | fi | |
15528 | ||
e8f65ba6 | 15529 | if test "$wxUSE_GEOMETRY" = "yes"; then |
698dcdb6 | 15530 | cat >> confdefs.h <<\EOF |
e8f65ba6 RR |
15531 | #define wxUSE_GEOMETRY 1 |
15532 | EOF | |
15533 | ||
15534 | fi | |
15535 | ||
10f2d63a | 15536 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
698dcdb6 | 15537 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15538 | #define wxUSE_DIALUP_MANAGER 1 |
15539 | EOF | |
15540 | ||
70f7a477 | 15541 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" |
10f2d63a VZ |
15542 | fi |
15543 | ||
15544 | if test "$wxUSE_STREAMS" = "yes" ; then | |
698dcdb6 | 15545 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15546 | #define wxUSE_STREAMS 1 |
15547 | EOF | |
15548 | ||
15549 | fi | |
15550 | ||
1e487827 | 15551 | |
1e6feb95 | 15552 | if test "$wxUSE_DATETIME" = "yes"; then |
698dcdb6 | 15553 | for ac_func in strptime |
83307f33 | 15554 | do |
698dcdb6 | 15555 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
29fd3c0c | 15556 | echo "configure:15557: checking for $ac_func" >&5 |
698dcdb6 VZ |
15557 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15558 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15559 | else | |
15560 | cat > conftest.$ac_ext <<EOF | |
29fd3c0c | 15561 | #line 15562 "configure" |
83307f33 VZ |
15562 | #include "confdefs.h" |
15563 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 15564 | which can conflict with char $ac_func(); below. */ |
83307f33 VZ |
15565 | #include <assert.h> |
15566 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15567 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15568 | builtin and then its argument prototype would still apply. */ |
15569 | char $ac_func(); | |
15570 | ||
15571 | int main() { | |
83307f33 VZ |
15572 | |
15573 | /* The GNU C library defines this for functions which it implements | |
15574 | to always fail with ENOSYS. Some functions are actually named | |
15575 | something starting with __ and the normal name is an alias. */ | |
15576 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15577 | choke me | |
15578 | #else | |
698dcdb6 | 15579 | $ac_func(); |
83307f33 VZ |
15580 | #endif |
15581 | ||
698dcdb6 | 15582 | ; return 0; } |
83307f33 | 15583 | EOF |
29fd3c0c | 15584 | if { (eval echo configure:15585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15585 | rm -rf conftest* |
15586 | eval "ac_cv_func_$ac_func=yes" | |
15587 | else | |
15588 | echo "configure: failed program was:" >&5 | |
15589 | cat conftest.$ac_ext >&5 | |
15590 | rm -rf conftest* | |
15591 | eval "ac_cv_func_$ac_func=no" | |
15592 | fi | |
15593 | rm -f conftest* | |
15594 | fi | |
83307f33 | 15595 | |
698dcdb6 VZ |
15596 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
15597 | echo "$ac_t""yes" 1>&6 | |
15598 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15599 | cat >> confdefs.h <<EOF | |
15600 | #define $ac_tr_func 1 | |
15601 | EOF | |
15602 | ||
15603 | else | |
15604 | echo "$ac_t""no" 1>&6 | |
83307f33 VZ |
15605 | fi |
15606 | done | |
15607 | ||
1e487827 | 15608 | |
698dcdb6 | 15609 | echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6 |
29fd3c0c | 15610 | echo "configure:15611: checking for timezone variable in <time.h>" >&5 |
698dcdb6 VZ |
15611 | if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then |
15612 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15613 | else | |
15614 | ||
15615 | cat > conftest.$ac_ext <<EOF | |
29fd3c0c | 15616 | #line 15617 "configure" |
360d6699 VZ |
15617 | #include "confdefs.h" |
15618 | ||
b4085ce6 | 15619 | #include <time.h> |
698dcdb6 VZ |
15620 | |
15621 | int main() { | |
360d6699 VZ |
15622 | |
15623 | int tz; | |
4f11a343 | 15624 | tz = timezone; |
698dcdb6 VZ |
15625 | |
15626 | ; return 0; } | |
15627 | EOF | |
29fd3c0c | 15628 | if { (eval echo configure:15629: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
15629 | rm -rf conftest* |
15630 | ||
4f11a343 | 15631 | wx_cv_var_timezone=timezone |
698dcdb6 | 15632 | |
360d6699 | 15633 | else |
698dcdb6 VZ |
15634 | echo "configure: failed program was:" >&5 |
15635 | cat conftest.$ac_ext >&5 | |
15636 | rm -rf conftest* | |
15637 | ||
15638 | cat > conftest.$ac_ext <<EOF | |
29fd3c0c | 15639 | #line 15640 "configure" |
360d6699 VZ |
15640 | #include "confdefs.h" |
15641 | ||
b4085ce6 | 15642 | #include <time.h> |
698dcdb6 VZ |
15643 | |
15644 | int main() { | |
360d6699 VZ |
15645 | |
15646 | int tz; | |
15647 | tz = _timezone; | |
698dcdb6 VZ |
15648 | |
15649 | ; return 0; } | |
15650 | EOF | |
29fd3c0c | 15651 | if { (eval echo configure:15652: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
15652 | rm -rf conftest* |
15653 | ||
360d6699 | 15654 | wx_cv_var_timezone=_timezone |
698dcdb6 | 15655 | |
5357c8e8 | 15656 | else |
698dcdb6 VZ |
15657 | echo "configure: failed program was:" >&5 |
15658 | cat conftest.$ac_ext >&5 | |
15659 | rm -rf conftest* | |
15660 | ||
15661 | cat > conftest.$ac_ext <<EOF | |
29fd3c0c | 15662 | #line 15663 "configure" |
5357c8e8 VZ |
15663 | #include "confdefs.h" |
15664 | ||
b4085ce6 | 15665 | #include <time.h> |
698dcdb6 VZ |
15666 | |
15667 | int main() { | |
5357c8e8 VZ |
15668 | |
15669 | int tz; | |
4f11a343 | 15670 | tz = __timezone; |
698dcdb6 VZ |
15671 | |
15672 | ; return 0; } | |
15673 | EOF | |
29fd3c0c | 15674 | if { (eval echo configure:15675: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
15675 | rm -rf conftest* |
15676 | ||
4f11a343 | 15677 | wx_cv_var_timezone=__timezone |
698dcdb6 | 15678 | |
360d6699 | 15679 | else |
698dcdb6 VZ |
15680 | echo "configure: failed program was:" >&5 |
15681 | cat conftest.$ac_ext >&5 | |
15682 | rm -rf conftest* | |
15683 | { echo "configure: error: no timezone variable" 1>&2; exit 1; } | |
15684 | ||
360d6699 | 15685 | fi |
698dcdb6 VZ |
15686 | rm -f conftest* |
15687 | ||
15688 | ||
360d6699 | 15689 | fi |
698dcdb6 VZ |
15690 | rm -f conftest* |
15691 | ||
15692 | ||
6232543b | 15693 | fi |
698dcdb6 VZ |
15694 | rm -f conftest* |
15695 | ||
15696 | ||
1e487827 | 15697 | fi |
703e0a69 | 15698 | |
698dcdb6 VZ |
15699 | echo "$ac_t""$wx_cv_var_timezone" 1>&6 |
15700 | ||
15701 | cat >> confdefs.h <<EOF | |
360d6699 VZ |
15702 | #define WX_TIMEZONE $wx_cv_var_timezone |
15703 | EOF | |
15704 | ||
698dcdb6 VZ |
15705 | |
15706 | for ac_func in localtime | |
afc31813 | 15707 | do |
698dcdb6 | 15708 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
29fd3c0c | 15709 | echo "configure:15710: checking for $ac_func" >&5 |
698dcdb6 VZ |
15710 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15711 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15712 | else | |
15713 | cat > conftest.$ac_ext <<EOF | |
29fd3c0c | 15714 | #line 15715 "configure" |
10f2d63a | 15715 | #include "confdefs.h" |
afc31813 | 15716 | /* System header to define __stub macros and hopefully few prototypes, |
698dcdb6 | 15717 | which can conflict with char $ac_func(); below. */ |
afc31813 VZ |
15718 | #include <assert.h> |
15719 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15720 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15721 | builtin and then its argument prototype would still apply. */ |
15722 | char $ac_func(); | |
15723 | ||
15724 | int main() { | |
afc31813 VZ |
15725 | |
15726 | /* The GNU C library defines this for functions which it implements | |
15727 | to always fail with ENOSYS. Some functions are actually named | |
15728 | something starting with __ and the normal name is an alias. */ | |
15729 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15730 | choke me | |
15731 | #else | |
698dcdb6 | 15732 | $ac_func(); |
afc31813 VZ |
15733 | #endif |
15734 | ||
698dcdb6 | 15735 | ; return 0; } |
10f2d63a | 15736 | EOF |
29fd3c0c | 15737 | if { (eval echo configure:15738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15738 | rm -rf conftest* |
15739 | eval "ac_cv_func_$ac_func=yes" | |
15740 | else | |
15741 | echo "configure: failed program was:" >&5 | |
15742 | cat conftest.$ac_ext >&5 | |
15743 | rm -rf conftest* | |
15744 | eval "ac_cv_func_$ac_func=no" | |
15745 | fi | |
15746 | rm -f conftest* | |
15747 | fi | |
afc31813 | 15748 | |
698dcdb6 VZ |
15749 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
15750 | echo "$ac_t""yes" 1>&6 | |
15751 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15752 | cat >> confdefs.h <<EOF | |
15753 | #define $ac_tr_func 1 | |
15754 | EOF | |
15755 | ||
15756 | else | |
15757 | echo "$ac_t""no" 1>&6 | |
afc31813 VZ |
15758 | fi |
15759 | done | |
15760 | ||
1e487827 | 15761 | |
698dcdb6 VZ |
15762 | if test "$ac_cv_func_localtime" = "yes"; then |
15763 | echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 | |
29fd3c0c | 15764 | echo "configure:15765: checking for tm_gmtoff in struct tm" >&5 |
698dcdb6 VZ |
15765 | if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then |
15766 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15767 | else | |
15768 | ||
15769 | cat > conftest.$ac_ext <<EOF | |
29fd3c0c | 15770 | #line 15771 "configure" |
0470b1e6 VZ |
15771 | #include "confdefs.h" |
15772 | ||
b4085ce6 | 15773 | #include <time.h> |
698dcdb6 VZ |
15774 | |
15775 | int main() { | |
0470b1e6 VZ |
15776 | |
15777 | struct tm tm; | |
15778 | tm.tm_gmtoff++; | |
698dcdb6 VZ |
15779 | |
15780 | ; return 0; } | |
15781 | EOF | |
29fd3c0c | 15782 | if { (eval echo configure:15783: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
15783 | rm -rf conftest* |
15784 | ||
f03a98d8 | 15785 | wx_cv_struct_tm_has_gmtoff=yes |
698dcdb6 | 15786 | |
0470b1e6 | 15787 | else |
698dcdb6 VZ |
15788 | echo "configure: failed program was:" >&5 |
15789 | cat conftest.$ac_ext >&5 | |
15790 | rm -rf conftest* | |
15791 | wx_cv_struct_tm_has_gmtoff=no | |
15792 | ||
0470b1e6 | 15793 | fi |
698dcdb6 VZ |
15794 | rm -f conftest* |
15795 | ||
1e487827 | 15796 | fi |
698dcdb6 VZ |
15797 | |
15798 | echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6 | |
6232543b VS |
15799 | fi |
15800 | ||
15801 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
698dcdb6 | 15802 | cat >> confdefs.h <<\EOF |
6232543b VS |
15803 | #define WX_GMTOFF_IN_TM 1 |
15804 | EOF | |
0470b1e6 | 15805 | |
3fcdd07b VZ |
15806 | fi |
15807 | ||
698dcdb6 | 15808 | for ac_func in gettimeofday ftime |
3fcdd07b | 15809 | do |
698dcdb6 | 15810 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
29fd3c0c | 15811 | echo "configure:15812: checking for $ac_func" >&5 |
698dcdb6 VZ |
15812 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15813 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15814 | else | |
15815 | cat > conftest.$ac_ext <<EOF | |
29fd3c0c | 15816 | #line 15817 "configure" |
3fcdd07b VZ |
15817 | #include "confdefs.h" |
15818 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 15819 | which can conflict with char $ac_func(); below. */ |
3fcdd07b VZ |
15820 | #include <assert.h> |
15821 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15822 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15823 | builtin and then its argument prototype would still apply. */ |
15824 | char $ac_func(); | |
15825 | ||
15826 | int main() { | |
3fcdd07b VZ |
15827 | |
15828 | /* The GNU C library defines this for functions which it implements | |
15829 | to always fail with ENOSYS. Some functions are actually named | |
15830 | something starting with __ and the normal name is an alias. */ | |
15831 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15832 | choke me | |
15833 | #else | |
698dcdb6 | 15834 | $ac_func(); |
3fcdd07b VZ |
15835 | #endif |
15836 | ||
698dcdb6 VZ |
15837 | ; return 0; } |
15838 | EOF | |
29fd3c0c | 15839 | if { (eval echo configure:15840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15840 | rm -rf conftest* |
15841 | eval "ac_cv_func_$ac_func=yes" | |
15842 | else | |
15843 | echo "configure: failed program was:" >&5 | |
15844 | cat conftest.$ac_ext >&5 | |
15845 | rm -rf conftest* | |
15846 | eval "ac_cv_func_$ac_func=no" | |
15847 | fi | |
15848 | rm -f conftest* | |
15849 | fi | |
15850 | ||
15851 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
15852 | echo "$ac_t""yes" 1>&6 | |
15853 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15854 | cat >> confdefs.h <<EOF | |
15855 | #define $ac_tr_func 1 | |
3fcdd07b VZ |
15856 | EOF |
15857 | break | |
698dcdb6 VZ |
15858 | else |
15859 | echo "$ac_t""no" 1>&6 | |
3fcdd07b VZ |
15860 | fi |
15861 | done | |
15862 | ||
afc31813 | 15863 | |
698dcdb6 VZ |
15864 | if test "$ac_cv_func_gettimeofday" = "yes"; then |
15865 | echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6 | |
29fd3c0c | 15866 | echo "configure:15867: checking whether gettimeofday takes two arguments" >&5 |
698dcdb6 VZ |
15867 | if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then |
15868 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15869 | else | |
15870 | ||
15871 | ||
15872 | ac_ext=C | |
15873 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 15874 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
15875 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
15876 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15877 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 15878 | |
698dcdb6 VZ |
15879 | |
15880 | cat > conftest.$ac_ext <<EOF | |
29fd3c0c | 15881 | #line 15882 "configure" |
10f2d63a | 15882 | #include "confdefs.h" |
afc31813 VZ |
15883 | |
15884 | #include <sys/time.h> | |
15885 | #include <unistd.h> | |
698dcdb6 VZ |
15886 | |
15887 | int main() { | |
afc31813 VZ |
15888 | |
15889 | struct timeval tv; | |
15890 | struct timezone tz; | |
15891 | gettimeofday(&tv, &tz); | |
698dcdb6 VZ |
15892 | |
15893 | ; return 0; } | |
15894 | EOF | |
29fd3c0c | 15895 | if { (eval echo configure:15896: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 15896 | rm -rf conftest* |
afc31813 | 15897 | wx_cv_func_gettimeofday_has_2_args=yes |
10f2d63a | 15898 | else |
698dcdb6 VZ |
15899 | echo "configure: failed program was:" >&5 |
15900 | cat conftest.$ac_ext >&5 | |
15901 | rm -rf conftest* | |
15902 | cat > conftest.$ac_ext <<EOF | |
29fd3c0c | 15903 | #line 15904 "configure" |
10f2d63a | 15904 | #include "confdefs.h" |
afc31813 VZ |
15905 | |
15906 | #include <sys/time.h> | |
15907 | #include <unistd.h> | |
698dcdb6 VZ |
15908 | |
15909 | int main() { | |
afc31813 VZ |
15910 | |
15911 | struct timeval tv; | |
15912 | gettimeofday(&tv); | |
698dcdb6 VZ |
15913 | |
15914 | ; return 0; } | |
15915 | EOF | |
29fd3c0c | 15916 | if { (eval echo configure:15917: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 15917 | rm -rf conftest* |
afc31813 | 15918 | wx_cv_func_gettimeofday_has_2_args=no |
10f2d63a | 15919 | else |
698dcdb6 VZ |
15920 | echo "configure: failed program was:" >&5 |
15921 | cat conftest.$ac_ext >&5 | |
15922 | rm -rf conftest* | |
15923 | wx_cv_func_gettimeofday_has_2_args=unknown | |
15924 | ||
10f2d63a | 15925 | fi |
698dcdb6 VZ |
15926 | rm -f conftest* |
15927 | ||
10f2d63a | 15928 | fi |
698dcdb6 | 15929 | rm -f conftest* |
afc31813 | 15930 | ac_ext=c |
698dcdb6 | 15931 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 15932 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
15933 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
15934 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15935 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a | 15936 | |
698dcdb6 | 15937 | |
afc31813 | 15938 | fi |
698dcdb6 VZ |
15939 | |
15940 | echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6 | |
c63c7106 | 15941 | |
afc31813 | 15942 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then |
698dcdb6 | 15943 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
15944 | #define WX_GETTIMEOFDAY_NO_TZ 1 |
15945 | EOF | |
15946 | ||
15947 | fi | |
15948 | fi | |
15949 | ||
698dcdb6 | 15950 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
15951 | #define wxUSE_TIMEDATE 1 |
15952 | EOF | |
15953 | ||
15954 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
15955 | fi | |
15956 | ||
698dcdb6 | 15957 | |
b089607b VZ |
15958 | if test "$TOOLKIT" != "MSW"; then |
15959 | ||
afc31813 | 15960 | if test "$wxUSE_SOCKETS" = "yes"; then |
698dcdb6 | 15961 | echo $ac_n "checking for socket""... $ac_c" 1>&6 |
29fd3c0c | 15962 | echo "configure:15963: checking for socket" >&5 |
698dcdb6 VZ |
15963 | if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
15964 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 15965 | else |
698dcdb6 | 15966 | cat > conftest.$ac_ext <<EOF |
29fd3c0c | 15967 | #line 15968 "configure" |
c63c7106 VZ |
15968 | #include "confdefs.h" |
15969 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 15970 | which can conflict with char socket(); below. */ |
c63c7106 VZ |
15971 | #include <assert.h> |
15972 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15973 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15974 | builtin and then its argument prototype would still apply. */ |
15975 | char socket(); | |
15976 | ||
15977 | int main() { | |
c63c7106 VZ |
15978 | |
15979 | /* The GNU C library defines this for functions which it implements | |
15980 | to always fail with ENOSYS. Some functions are actually named | |
15981 | something starting with __ and the normal name is an alias. */ | |
15982 | #if defined (__stub_socket) || defined (__stub___socket) | |
15983 | choke me | |
15984 | #else | |
698dcdb6 | 15985 | socket(); |
c63c7106 VZ |
15986 | #endif |
15987 | ||
698dcdb6 VZ |
15988 | ; return 0; } |
15989 | EOF | |
29fd3c0c | 15990 | if { (eval echo configure:15991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15991 | rm -rf conftest* |
15992 | eval "ac_cv_func_socket=yes" | |
15993 | else | |
15994 | echo "configure: failed program was:" >&5 | |
15995 | cat conftest.$ac_ext >&5 | |
15996 | rm -rf conftest* | |
15997 | eval "ac_cv_func_socket=no" | |
15998 | fi | |
15999 | rm -f conftest* | |
16000 | fi | |
16001 | ||
16002 | if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
16003 | echo "$ac_t""yes" 1>&6 | |
c63c7106 VZ |
16004 | : |
16005 | else | |
698dcdb6 VZ |
16006 | echo "$ac_t""no" 1>&6 |
16007 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | |
29fd3c0c | 16008 | echo "configure:16009: checking for socket in -lsocket" >&5 |
698dcdb6 VZ |
16009 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
16010 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16011 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 16012 | else |
698dcdb6 | 16013 | ac_save_LIBS="$LIBS" |
c63c7106 | 16014 | LIBS="-lsocket $LIBS" |
698dcdb6 | 16015 | cat > conftest.$ac_ext <<EOF |
29fd3c0c | 16016 | #line 16017 "configure" |
c63c7106 VZ |
16017 | #include "confdefs.h" |
16018 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16019 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16020 | builtin and then its argument prototype would still apply. */ |
16021 | char socket(); | |
16022 | ||
16023 | int main() { | |
16024 | socket() | |
16025 | ; return 0; } | |
16026 | EOF | |
29fd3c0c | 16027 | if { (eval echo configure:16028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16028 | rm -rf conftest* |
16029 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16030 | else | |
16031 | echo "configure: failed program was:" >&5 | |
16032 | cat conftest.$ac_ext >&5 | |
16033 | rm -rf conftest* | |
16034 | eval "ac_cv_lib_$ac_lib_var=no" | |
16035 | fi | |
16036 | rm -f conftest* | |
16037 | LIBS="$ac_save_LIBS" | |
16038 | ||
16039 | fi | |
16040 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16041 | echo "$ac_t""yes" 1>&6 | |
c63c7106 | 16042 | INET_LINK="$INET_LINK -lsocket" |
c63c7106 | 16043 | else |
698dcdb6 | 16044 | echo "$ac_t""no" 1>&6 |
afc31813 | 16045 | |
698dcdb6 | 16046 | echo "configure: warning: socket library not found - sockets will be disabled" 1>&2 |
afc31813 | 16047 | wxUSE_SOCKETS=no |
698dcdb6 VZ |
16048 | |
16049 | ||
10f2d63a VZ |
16050 | fi |
16051 | ||
698dcdb6 | 16052 | |
6232543b | 16053 | fi |
b089607b | 16054 | |
1e487827 | 16055 | fi |
afc31813 | 16056 | |
51a9faba | 16057 | |
698dcdb6 VZ |
16058 | if test "$wxUSE_SOCKETS" = "yes" ; then |
16059 | echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6 | |
29fd3c0c | 16060 | echo "configure:16061: checking what is the type of the third argument of getsockname" >&5 |
698dcdb6 VZ |
16061 | if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then |
16062 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16063 | else | |
16064 | ||
16065 | ||
16066 | ac_ext=C | |
16067 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 16068 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
16069 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16070 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16071 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 16072 | |
698dcdb6 VZ |
16073 | |
16074 | cat > conftest.$ac_ext <<EOF | |
29fd3c0c | 16075 | #line 16076 "configure" |
afc31813 | 16076 | #include "confdefs.h" |
51a9faba | 16077 | |
3ace2e6d | 16078 | #include <sys/types.h> |
51a9faba | 16079 | #include <sys/socket.h> |
698dcdb6 VZ |
16080 | |
16081 | int main() { | |
51a9faba VZ |
16082 | |
16083 | socklen_t len; | |
16084 | getsockname(0, 0, &len); | |
698dcdb6 VZ |
16085 | |
16086 | ; return 0; } | |
16087 | EOF | |
29fd3c0c | 16088 | if { (eval echo configure:16089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 16089 | rm -rf conftest* |
51a9faba | 16090 | wx_cv_type_getsockname3=socklen_t |
afc31813 | 16091 | else |
698dcdb6 VZ |
16092 | echo "configure: failed program was:" >&5 |
16093 | cat conftest.$ac_ext >&5 | |
16094 | rm -rf conftest* | |
16095 | cat > conftest.$ac_ext <<EOF | |
29fd3c0c | 16096 | #line 16097 "configure" |
afc31813 | 16097 | #include "confdefs.h" |
51a9faba | 16098 | |
3ace2e6d | 16099 | #include <sys/types.h> |
51a9faba | 16100 | #include <sys/socket.h> |
698dcdb6 VZ |
16101 | |
16102 | int main() { | |
51a9faba VZ |
16103 | |
16104 | size_t len; | |
16105 | getsockname(0, 0, &len); | |
698dcdb6 VZ |
16106 | |
16107 | ; return 0; } | |
16108 | EOF | |
29fd3c0c | 16109 | if { (eval echo configure:16110: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 16110 | rm -rf conftest* |
51a9faba | 16111 | wx_cv_type_getsockname3=size_t |
afc31813 | 16112 | else |
698dcdb6 VZ |
16113 | echo "configure: failed program was:" >&5 |
16114 | cat conftest.$ac_ext >&5 | |
16115 | rm -rf conftest* | |
16116 | cat > conftest.$ac_ext <<EOF | |
29fd3c0c | 16117 | #line 16118 "configure" |
afc31813 | 16118 | #include "confdefs.h" |
51a9faba | 16119 | |
3ace2e6d | 16120 | #include <sys/types.h> |
51a9faba | 16121 | #include <sys/socket.h> |
698dcdb6 VZ |
16122 | |
16123 | int main() { | |
51a9faba VZ |
16124 | |
16125 | int len; | |
16126 | getsockname(0, 0, &len); | |
698dcdb6 VZ |
16127 | |
16128 | ; return 0; } | |
16129 | EOF | |
29fd3c0c | 16130 | if { (eval echo configure:16131: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 16131 | rm -rf conftest* |
51a9faba | 16132 | wx_cv_type_getsockname3=int |
afc31813 | 16133 | else |
698dcdb6 VZ |
16134 | echo "configure: failed program was:" >&5 |
16135 | cat conftest.$ac_ext >&5 | |
16136 | rm -rf conftest* | |
16137 | wx_cv_type_getsockname3=unknown | |
16138 | ||
afc31813 | 16139 | fi |
698dcdb6 VZ |
16140 | rm -f conftest* |
16141 | ||
afc31813 | 16142 | fi |
698dcdb6 VZ |
16143 | rm -f conftest* |
16144 | ||
afc31813 | 16145 | fi |
698dcdb6 | 16146 | rm -f conftest* |
51a9faba VZ |
16147 | |
16148 | ac_ext=c | |
698dcdb6 | 16149 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
afc31813 | 16150 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
16151 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16152 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16153 | cross_compiling=$ac_cv_prog_cc_cross | |
afc31813 | 16154 | |
698dcdb6 | 16155 | |
51a9faba | 16156 | fi |
698dcdb6 VZ |
16157 | |
16158 | echo "$ac_t""$wx_cv_type_getsockname3" 1>&6 | |
51a9faba VZ |
16159 | |
16160 | if test "$wx_cv_type_getsockname3" = "unknown"; then | |
16161 | wxUSE_SOCKETS=no | |
698dcdb6 | 16162 | echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2 |
51a9faba | 16163 | else |
698dcdb6 | 16164 | cat >> confdefs.h <<EOF |
51a9faba VZ |
16165 | #define SOCKLEN_T $wx_cv_type_getsockname3 |
16166 | EOF | |
16167 | ||
16168 | fi | |
16169 | fi | |
afc31813 | 16170 | |
c521c494 RL |
16171 | fi |
16172 | ||
51a9faba | 16173 | if test "$wxUSE_SOCKETS" = "yes" ; then |
698dcdb6 | 16174 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
16175 | #define wxUSE_SOCKETS 1 |
16176 | EOF | |
16177 | ||
70f7a477 | 16178 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" |
afc31813 VZ |
16179 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol" |
16180 | fi | |
16181 | ||
698dcdb6 | 16182 | |
dc3d889d VZ |
16183 | if test "$wxUSE_GUI" = "yes"; then |
16184 | ||
b089607b VZ |
16185 | if test "$TOOLKIT" != "MSW"; then |
16186 | ||
ceded8b9 | 16187 | if test "$wxUSE_JOYSTICK" = "yes"; then |
698dcdb6 | 16188 | for ac_hdr in linux/joystick.h |
10f2d63a | 16189 | do |
698dcdb6 VZ |
16190 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
16191 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
29fd3c0c | 16192 | echo "configure:16193: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
16193 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
16194 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16195 | else | |
16196 | cat > conftest.$ac_ext <<EOF | |
29fd3c0c | 16197 | #line 16198 "configure" |
10f2d63a | 16198 | #include "confdefs.h" |
698dcdb6 VZ |
16199 | #include <$ac_hdr> |
16200 | EOF | |
16201 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
29fd3c0c | 16202 | { (eval echo configure:16203: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
16203 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
16204 | if test -z "$ac_err"; then | |
16205 | rm -rf conftest* | |
16206 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 16207 | else |
698dcdb6 VZ |
16208 | echo "$ac_err" >&5 |
16209 | echo "configure: failed program was:" >&5 | |
10f2d63a | 16210 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
16211 | rm -rf conftest* |
16212 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 16213 | fi |
698dcdb6 | 16214 | rm -f conftest* |
10f2d63a | 16215 | fi |
698dcdb6 VZ |
16216 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
16217 | echo "$ac_t""yes" 1>&6 | |
16218 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
16219 | cat >> confdefs.h <<EOF | |
16220 | #define $ac_tr_hdr 1 | |
10f2d63a | 16221 | EOF |
698dcdb6 VZ |
16222 | |
16223 | else | |
16224 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
16225 | fi |
16226 | done | |
16227 | ||
b089607b | 16228 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then |
ceded8b9 | 16229 | wxUSE_JOYSTICK=no |
698dcdb6 | 16230 | echo "configure: warning: Joystick not supported by this system" 1>&2 |
b089607b VZ |
16231 | fi |
16232 | fi | |
16233 | ||
16234 | fi | |
16235 | ||
ceded8b9 | 16236 | if test "$wxUSE_JOYSTICK" = "yes"; then |
698dcdb6 | 16237 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16238 | #define wxUSE_JOYSTICK 1 |
16239 | EOF | |
16240 | ||
16241 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" | |
10f2d63a VZ |
16242 | fi |
16243 | ||
dc3d889d VZ |
16244 | fi |
16245 | ||
698dcdb6 | 16246 | |
b089607b VZ |
16247 | if test "$TOOLKIT" != "MSW"; then |
16248 | ||
10f2d63a VZ |
16249 | HAVE_DL_FUNCS=0 |
16250 | HAVE_SHL_FUNCS=0 | |
16251 | if test "$wxUSE_DYNLIB_CLASS" = "yes"; then | |
b4085ce6 GD |
16252 | if test "$USE_MAC" = 1; then |
16253 | HAVE_DL_FUNCS=1 | |
16254 | else | |
698dcdb6 | 16255 | for ac_func in dlopen |
10f2d63a | 16256 | do |
698dcdb6 | 16257 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
29fd3c0c | 16258 | echo "configure:16259: checking for $ac_func" >&5 |
698dcdb6 VZ |
16259 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16260 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16261 | else | |
16262 | cat > conftest.$ac_ext <<EOF | |
29fd3c0c | 16263 | #line 16264 "configure" |
10f2d63a VZ |
16264 | #include "confdefs.h" |
16265 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16266 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
16267 | #include <assert.h> |
16268 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16269 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16270 | builtin and then its argument prototype would still apply. */ |
16271 | char $ac_func(); | |
16272 | ||
16273 | int main() { | |
10f2d63a VZ |
16274 | |
16275 | /* The GNU C library defines this for functions which it implements | |
16276 | to always fail with ENOSYS. Some functions are actually named | |
16277 | something starting with __ and the normal name is an alias. */ | |
16278 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16279 | choke me | |
16280 | #else | |
698dcdb6 | 16281 | $ac_func(); |
10f2d63a VZ |
16282 | #endif |
16283 | ||
698dcdb6 VZ |
16284 | ; return 0; } |
16285 | EOF | |
29fd3c0c | 16286 | if { (eval echo configure:16287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16287 | rm -rf conftest* |
16288 | eval "ac_cv_func_$ac_func=yes" | |
16289 | else | |
16290 | echo "configure: failed program was:" >&5 | |
16291 | cat conftest.$ac_ext >&5 | |
16292 | rm -rf conftest* | |
16293 | eval "ac_cv_func_$ac_func=no" | |
16294 | fi | |
16295 | rm -f conftest* | |
16296 | fi | |
16297 | ||
16298 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16299 | echo "$ac_t""yes" 1>&6 | |
16300 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16301 | cat >> confdefs.h <<EOF | |
16302 | #define $ac_tr_func 1 | |
16303 | EOF | |
16304 | ||
16305 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
16306 | #define HAVE_DLOPEN 1 |
16307 | EOF | |
16308 | ||
16309 | HAVE_DL_FUNCS=1 | |
698dcdb6 | 16310 | |
10f2d63a | 16311 | else |
698dcdb6 VZ |
16312 | echo "$ac_t""no" 1>&6 |
16313 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
29fd3c0c | 16314 | echo "configure:16315: checking for dlopen in -ldl" >&5 |
698dcdb6 VZ |
16315 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
16316 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16317 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 16318 | else |
698dcdb6 | 16319 | ac_save_LIBS="$LIBS" |
10f2d63a | 16320 | LIBS="-ldl $LIBS" |
698dcdb6 | 16321 | cat > conftest.$ac_ext <<EOF |
29fd3c0c | 16322 | #line 16323 "configure" |
10f2d63a VZ |
16323 | #include "confdefs.h" |
16324 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16325 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16326 | builtin and then its argument prototype would still apply. */ |
16327 | char dlopen(); | |
16328 | ||
16329 | int main() { | |
16330 | dlopen() | |
16331 | ; return 0; } | |
16332 | EOF | |
29fd3c0c | 16333 | if { (eval echo configure:16334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16334 | rm -rf conftest* |
16335 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16336 | else | |
16337 | echo "configure: failed program was:" >&5 | |
16338 | cat conftest.$ac_ext >&5 | |
16339 | rm -rf conftest* | |
16340 | eval "ac_cv_lib_$ac_lib_var=no" | |
16341 | fi | |
16342 | rm -f conftest* | |
16343 | LIBS="$ac_save_LIBS" | |
16344 | ||
16345 | fi | |
16346 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16347 | echo "$ac_t""yes" 1>&6 | |
16348 | ||
16349 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
16350 | #define HAVE_DLOPEN 1 |
16351 | EOF | |
16352 | ||
16353 | HAVE_DL_FUNCS=1 | |
16354 | LIBS="$LIBS -ldl" | |
698dcdb6 | 16355 | |
10f2d63a | 16356 | else |
698dcdb6 | 16357 | echo "$ac_t""no" 1>&6 |
10f2d63a | 16358 | |
698dcdb6 | 16359 | for ac_func in shl_load |
10f2d63a | 16360 | do |
698dcdb6 | 16361 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
29fd3c0c | 16362 | echo "configure:16363: checking for $ac_func" >&5 |
698dcdb6 VZ |
16363 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16364 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16365 | else | |
16366 | cat > conftest.$ac_ext <<EOF | |
29fd3c0c | 16367 | #line 16368 "configure" |
10f2d63a VZ |
16368 | #include "confdefs.h" |
16369 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16370 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
16371 | #include <assert.h> |
16372 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16373 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16374 | builtin and then its argument prototype would still apply. */ |
16375 | char $ac_func(); | |
16376 | ||
16377 | int main() { | |
10f2d63a VZ |
16378 | |
16379 | /* The GNU C library defines this for functions which it implements | |
16380 | to always fail with ENOSYS. Some functions are actually named | |
16381 | something starting with __ and the normal name is an alias. */ | |
16382 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16383 | choke me | |
16384 | #else | |
698dcdb6 | 16385 | $ac_func(); |
10f2d63a VZ |
16386 | #endif |
16387 | ||
698dcdb6 VZ |
16388 | ; return 0; } |
16389 | EOF | |
29fd3c0c | 16390 | if { (eval echo configure:16391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16391 | rm -rf conftest* |
16392 | eval "ac_cv_func_$ac_func=yes" | |
16393 | else | |
16394 | echo "configure: failed program was:" >&5 | |
16395 | cat conftest.$ac_ext >&5 | |
16396 | rm -rf conftest* | |
16397 | eval "ac_cv_func_$ac_func=no" | |
16398 | fi | |
16399 | rm -f conftest* | |
16400 | fi | |
16401 | ||
16402 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16403 | echo "$ac_t""yes" 1>&6 | |
16404 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16405 | cat >> confdefs.h <<EOF | |
16406 | #define $ac_tr_func 1 | |
16407 | EOF | |
16408 | ||
16409 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
16410 | #define HAVE_SHL_LOAD 1 |
16411 | EOF | |
16412 | ||
16413 | HAVE_SHL_FUNCS=1 | |
698dcdb6 | 16414 | |
10f2d63a | 16415 | else |
698dcdb6 VZ |
16416 | echo "$ac_t""no" 1>&6 |
16417 | echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6 | |
29fd3c0c | 16418 | echo "configure:16419: checking for dld in -lshl_load" >&5 |
698dcdb6 VZ |
16419 | ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'` |
16420 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16421 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 16422 | else |
698dcdb6 | 16423 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 16424 | LIBS="-lshl_load $LIBS" |
698dcdb6 | 16425 | cat > conftest.$ac_ext <<EOF |
29fd3c0c | 16426 | #line 16427 "configure" |
f6bcfd97 BP |
16427 | #include "confdefs.h" |
16428 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16429 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16430 | builtin and then its argument prototype would still apply. */ |
16431 | char dld(); | |
16432 | ||
16433 | int main() { | |
16434 | dld() | |
16435 | ; return 0; } | |
16436 | EOF | |
29fd3c0c | 16437 | if { (eval echo configure:16438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16438 | rm -rf conftest* |
16439 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16440 | else | |
16441 | echo "configure: failed program was:" >&5 | |
16442 | cat conftest.$ac_ext >&5 | |
16443 | rm -rf conftest* | |
16444 | eval "ac_cv_lib_$ac_lib_var=no" | |
16445 | fi | |
16446 | rm -f conftest* | |
16447 | LIBS="$ac_save_LIBS" | |
f6bcfd97 | 16448 | |
698dcdb6 VZ |
16449 | fi |
16450 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16451 | echo "$ac_t""yes" 1>&6 | |
16452 | ||
f6bcfd97 BP |
16453 | HAVE_SHL_FUNCS=1 |
16454 | LIBS="$LIBS -ldld" | |
698dcdb6 VZ |
16455 | |
16456 | else | |
16457 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
16458 | fi |
16459 | ||
698dcdb6 | 16460 | |
10f2d63a VZ |
16461 | fi |
16462 | done | |
16463 | ||
698dcdb6 | 16464 | |
10f2d63a VZ |
16465 | fi |
16466 | ||
698dcdb6 | 16467 | |
10f2d63a VZ |
16468 | fi |
16469 | done | |
16470 | ||
1e487827 | 16471 | |
698dcdb6 VZ |
16472 | if test "$HAVE_DL_FUNCS" = 1; then |
16473 | for ac_func in dlerror | |
f6bcfd97 | 16474 | do |
698dcdb6 | 16475 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
29fd3c0c | 16476 | echo "configure:16477: checking for $ac_func" >&5 |
698dcdb6 VZ |
16477 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16478 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16479 | else | |
16480 | cat > conftest.$ac_ext <<EOF | |
29fd3c0c | 16481 | #line 16482 "configure" |
f6bcfd97 BP |
16482 | #include "confdefs.h" |
16483 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16484 | which can conflict with char $ac_func(); below. */ |
f6bcfd97 BP |
16485 | #include <assert.h> |
16486 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16487 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16488 | builtin and then its argument prototype would still apply. */ |
16489 | char $ac_func(); | |
16490 | ||
16491 | int main() { | |
f6bcfd97 BP |
16492 | |
16493 | /* The GNU C library defines this for functions which it implements | |
16494 | to always fail with ENOSYS. Some functions are actually named | |
16495 | something starting with __ and the normal name is an alias. */ | |
16496 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16497 | choke me | |
16498 | #else | |
698dcdb6 | 16499 | $ac_func(); |
f6bcfd97 BP |
16500 | #endif |
16501 | ||
698dcdb6 VZ |
16502 | ; return 0; } |
16503 | EOF | |
29fd3c0c | 16504 | if { (eval echo configure:16505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16505 | rm -rf conftest* |
16506 | eval "ac_cv_func_$ac_func=yes" | |
16507 | else | |
16508 | echo "configure: failed program was:" >&5 | |
16509 | cat conftest.$ac_ext >&5 | |
16510 | rm -rf conftest* | |
16511 | eval "ac_cv_func_$ac_func=no" | |
16512 | fi | |
16513 | rm -f conftest* | |
16514 | fi | |
16515 | ||
16516 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16517 | echo "$ac_t""yes" 1>&6 | |
16518 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16519 | cat >> confdefs.h <<EOF | |
16520 | #define $ac_tr_func 1 | |
16521 | EOF | |
16522 | cat >> confdefs.h <<\EOF | |
f6bcfd97 BP |
16523 | #define HAVE_DLERROR 1 |
16524 | EOF | |
16525 | ||
16526 | else | |
698dcdb6 VZ |
16527 | echo "$ac_t""no" 1>&6 |
16528 | echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6 | |
29fd3c0c | 16529 | echo "configure:16530: checking for dlerror in -ldl" >&5 |
698dcdb6 VZ |
16530 | ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'` |
16531 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16532 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 16533 | else |
698dcdb6 | 16534 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 16535 | LIBS="-ldl $LIBS" |
698dcdb6 | 16536 | cat > conftest.$ac_ext <<EOF |
29fd3c0c | 16537 | #line 16538 "configure" |
f6bcfd97 BP |
16538 | #include "confdefs.h" |
16539 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16540 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16541 | builtin and then its argument prototype would still apply. */ |
16542 | char dlerror(); | |
16543 | ||
16544 | int main() { | |
16545 | dlerror() | |
16546 | ; return 0; } | |
16547 | EOF | |
29fd3c0c | 16548 | if { (eval echo configure:16549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16549 | rm -rf conftest* |
16550 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16551 | else | |
16552 | echo "configure: failed program was:" >&5 | |
16553 | cat conftest.$ac_ext >&5 | |
16554 | rm -rf conftest* | |
16555 | eval "ac_cv_lib_$ac_lib_var=no" | |
16556 | fi | |
16557 | rm -f conftest* | |
16558 | LIBS="$ac_save_LIBS" | |
16559 | ||
16560 | fi | |
16561 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16562 | echo "$ac_t""yes" 1>&6 | |
16563 | cat >> confdefs.h <<\EOF | |
f6bcfd97 BP |
16564 | #define HAVE_DLERROR 1 |
16565 | EOF | |
16566 | ||
698dcdb6 VZ |
16567 | else |
16568 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
16569 | fi |
16570 | ||
16571 | fi | |
16572 | done | |
16573 | ||
16574 | fi | |
b4085ce6 | 16575 | fi |
f6bcfd97 | 16576 | |
10f2d63a VZ |
16577 | if test "$HAVE_DL_FUNCS" = 0; then |
16578 | if test "$HAVE_SHL_FUNCS" = 0; then | |
16579 | if test "$USE_UNIX" = 1; then | |
698dcdb6 | 16580 | echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2 |
10f2d63a VZ |
16581 | wxUSE_DYNLIB_CLASS=no |
16582 | else | |
698dcdb6 | 16583 | echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2 |
10f2d63a VZ |
16584 | fi |
16585 | fi | |
16586 | fi | |
16587 | fi | |
16588 | ||
b089607b VZ |
16589 | fi |
16590 | ||
10f2d63a | 16591 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then |
698dcdb6 | 16592 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16593 | #define wxUSE_DYNLIB_CLASS 1 |
16594 | EOF | |
16595 | ||
b12915c1 VZ |
16596 | else |
16597 | wxUSE_ODBC=no | |
16598 | wxUSE_SERIAL=no | |
10f2d63a VZ |
16599 | fi |
16600 | ||
698dcdb6 | 16601 | |
1e6feb95 VZ |
16602 | if test "$wxUSE_FONTMAP" = "yes" ; then |
16603 | cat >> confdefs.h <<\EOF | |
16604 | #define wxUSE_FONTMAP 1 | |
16605 | EOF | |
16606 | ||
16607 | fi | |
16608 | ||
10f2d63a | 16609 | if test "$wxUSE_UNICODE" = "yes" ; then |
698dcdb6 | 16610 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16611 | #define wxUSE_UNICODE 1 |
16612 | EOF | |
16613 | ||
16614 | fi | |
16615 | ||
16616 | if test "$wxUSE_WCSRTOMBS" = "yes" ; then | |
698dcdb6 | 16617 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16618 | #define wxUSE_WCSRTOMBS 1 |
16619 | EOF | |
16620 | ||
16621 | fi | |
16622 | ||
16623 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then | |
698dcdb6 | 16624 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16625 | #define wxUSE_EXPERIMENTAL_PRINTF 1 |
16626 | EOF | |
16627 | ||
16628 | fi | |
16629 | ||
698dcdb6 | 16630 | |
b12915c1 | 16631 | if test "$wxUSE_SERIAL" = "yes" ; then |
698dcdb6 | 16632 | cat >> confdefs.h <<\EOF |
b12915c1 VZ |
16633 | #define wxUSE_SERIAL 1 |
16634 | EOF | |
16635 | ||
16636 | fi | |
16637 | ||
698dcdb6 | 16638 | |
10f2d63a VZ |
16639 | IODBC_C_SRC="" |
16640 | if test "$wxUSE_ODBC" = "yes" ; then | |
698dcdb6 | 16641 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16642 | #define wxUSE_ODBC 1 |
16643 | EOF | |
16644 | ||
16645 | WXODBCFLAG="-D_IODBC_" | |
16646 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
10f2d63a VZ |
16647 | fi |
16648 | ||
698dcdb6 | 16649 | |
10f2d63a | 16650 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then |
698dcdb6 | 16651 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16652 | #define wxUSE_POSTSCRIPT 1 |
16653 | EOF | |
16654 | ||
16655 | fi | |
16656 | ||
698dcdb6 | 16657 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16658 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 |
16659 | EOF | |
16660 | ||
698dcdb6 VZ |
16661 | |
16662 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
16663 | #define wxUSE_NORMALIZED_PS_FONTS 1 |
16664 | EOF | |
16665 | ||
698dcdb6 VZ |
16666 | |
16667 | ||
10f2d63a | 16668 | if test "$wxUSE_CONSTRAINTS" = "yes"; then |
698dcdb6 | 16669 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16670 | #define wxUSE_CONSTRAINTS 1 |
16671 | EOF | |
16672 | ||
16673 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
16674 | fi | |
16675 | ||
16676 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
698dcdb6 | 16677 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16678 | #define wxUSE_MDI_ARCHITECTURE 1 |
16679 | EOF | |
16680 | ||
16681 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" | |
16682 | fi | |
16683 | ||
16684 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
698dcdb6 | 16685 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16686 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 |
16687 | EOF | |
16688 | ||
16689 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
16690 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
16691 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
16692 | fi | |
16693 | fi | |
16694 | ||
16695 | if test "$wxUSE_HELP" = "yes"; then | |
698dcdb6 | 16696 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16697 | #define wxUSE_HELP 1 |
16698 | EOF | |
16699 | ||
16700 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
3379ed37 VZ |
16701 | |
16702 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
16703 | cat >> confdefs.h <<\EOF | |
16704 | #define wxUSE_WXHTML_HELP 1 | |
16705 | EOF | |
16706 | ||
29fd3c0c VS |
16707 | ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'` |
16708 | echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6 | |
16709 | echo "configure:16710: checking for htmlhelp.h" >&5 | |
16710 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
16711 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16712 | else | |
16713 | cat > conftest.$ac_ext <<EOF | |
16714 | #line 16715 "configure" | |
16715 | #include "confdefs.h" | |
16716 | #include <htmlhelp.h> | |
16717 | EOF | |
16718 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
16719 | { (eval echo configure:16720: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
16720 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
16721 | if test -z "$ac_err"; then | |
16722 | rm -rf conftest* | |
16723 | eval "ac_cv_header_$ac_safe=yes" | |
16724 | else | |
16725 | echo "$ac_err" >&5 | |
16726 | echo "configure: failed program was:" >&5 | |
16727 | cat conftest.$ac_ext >&5 | |
16728 | rm -rf conftest* | |
16729 | eval "ac_cv_header_$ac_safe=no" | |
16730 | fi | |
16731 | rm -f conftest* | |
16732 | fi | |
16733 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
16734 | echo "$ac_t""yes" 1>&6 | |
16735 | ||
16736 | cat >> confdefs.h <<\EOF | |
16737 | #define wxUSE_MS_HTML_HELP 1 | |
16738 | EOF | |
16739 | ||
16740 | ||
16741 | else | |
16742 | echo "$ac_t""no" 1>&6 | |
16743 | ||
16744 | echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h so it won't be compiled without it" 1>&2 | |
16745 | wxUSE_MS_HTML_HELP=no | |
16746 | ||
16747 | fi | |
16748 | ||
3379ed37 | 16749 | fi |
10f2d63a VZ |
16750 | fi |
16751 | ||
16752 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
16753 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
698dcdb6 | 16754 | echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2 |
10f2d63a | 16755 | else |
698dcdb6 | 16756 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16757 | #define wxUSE_PRINTING_ARCHITECTURE 1 |
16758 | EOF | |
16759 | ||
16760 | fi | |
16761 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
16762 | fi | |
16763 | ||
16764 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
698dcdb6 | 16765 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16766 | #define wxUSE_PROLOGIO 1 |
16767 | EOF | |
16768 | ||
16769 | fi | |
16770 | ||
16771 | if test "$wxUSE_RESOURCES" = "yes" ; then | |
3379ed37 | 16772 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16773 | #define wxUSE_RESOURCES 1 |
16774 | EOF | |
16775 | ||
3379ed37 | 16776 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource" |
10f2d63a VZ |
16777 | fi |
16778 | ||
16779 | if test "$wxUSE_X_RESOURCES" = "yes"; then | |
698dcdb6 | 16780 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16781 | #define wxUSE_X_RESOURCES 1 |
16782 | EOF | |
16783 | ||
16784 | fi | |
16785 | ||
698dcdb6 | 16786 | |
10f2d63a | 16787 | if test "$wxUSE_IPC" = "yes"; then |
eb4efbdc | 16788 | if test "$wxUSE_SOCKETS" != "yes"; then |
698dcdb6 | 16789 | echo "configure: warning: wxWindows IPC classes require sockets" 1>&2 |
eb4efbdc VZ |
16790 | fi |
16791 | ||
698dcdb6 | 16792 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16793 | #define wxUSE_IPC 1 |
16794 | EOF | |
16795 | ||
16796 | fi | |
16797 | ||
16798 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
698dcdb6 | 16799 | cat >> confdefs.h <<\EOF |
10f2d63a | 16800 | #define wxUSE_CLIPBOARD 1 |
1e6feb95 VZ |
16801 | EOF |
16802 | ||
16803 | cat >> confdefs.h <<\EOF | |
16804 | #define wxUSE_DATAOBJ 1 | |
10f2d63a VZ |
16805 | EOF |
16806 | ||
16807 | fi | |
16808 | ||
16809 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
16810 | if test "$wxUSE_GTK" = 1; then | |
16811 | if test "$WXGTK12" != 1; then | |
698dcdb6 | 16812 | echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2 |
10f2d63a VZ |
16813 | wxUSE_DRAG_AND_DROP=no |
16814 | fi | |
16815 | fi | |
16816 | ||
16817 | if test "$wxUSE_MOTIF" = 1; then | |
698dcdb6 | 16818 | echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2 |
10f2d63a VZ |
16819 | wxUSE_DRAG_AND_DROP=no |
16820 | fi | |
16821 | ||
2c6025bc | 16822 | if test "$wxUSE_MAC" = 1; then |
698dcdb6 | 16823 | echo "configure: warning: Drag and drop is not yet supported under Mac OS X" 1>&2 |
2c6025bc GD |
16824 | wxUSE_DRAG_AND_DROP=no |
16825 | fi | |
16826 | ||
10f2d63a | 16827 | if test "$USE_WIN32" = 1; then |
698dcdb6 VZ |
16828 | |
16829 | for ac_hdr in ole2.h | |
10f2d63a | 16830 | do |
698dcdb6 VZ |
16831 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
16832 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
29fd3c0c | 16833 | echo "configure:16834: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
16834 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
16835 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16836 | else | |
16837 | cat > conftest.$ac_ext <<EOF | |
29fd3c0c | 16838 | #line 16839 "configure" |
10f2d63a | 16839 | #include "confdefs.h" |
698dcdb6 VZ |
16840 | #include <$ac_hdr> |
16841 | EOF | |
16842 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
29fd3c0c | 16843 | { (eval echo configure:16844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
16844 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
16845 | if test -z "$ac_err"; then | |
16846 | rm -rf conftest* | |
16847 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 16848 | else |
698dcdb6 VZ |
16849 | echo "$ac_err" >&5 |
16850 | echo "configure: failed program was:" >&5 | |
10f2d63a | 16851 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
16852 | rm -rf conftest* |
16853 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 16854 | fi |
698dcdb6 | 16855 | rm -f conftest* |
10f2d63a | 16856 | fi |
698dcdb6 VZ |
16857 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
16858 | echo "$ac_t""yes" 1>&6 | |
16859 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
16860 | cat >> confdefs.h <<EOF | |
16861 | #define $ac_tr_hdr 1 | |
10f2d63a | 16862 | EOF |
698dcdb6 VZ |
16863 | |
16864 | else | |
16865 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
16866 | fi |
16867 | done | |
16868 | ||
698dcdb6 | 16869 | |
57fe5ed0 | 16870 | if test "$ac_cv_header_ole2_h" = "yes" ; then |
c521c494 | 16871 | if test "$GCC" = yes ; then |
b64f0a5f RL |
16872 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" |
16873 | ALL_DEPFILES="$ALL_DEPFILES \$(OLEDEPS)" | |
c521c494 | 16874 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" |
b64f0a5f | 16875 | LIBS="$LIBS -lole32 -luuid" |
4f11a343 VS |
16876 | cat >> confdefs.h <<\EOF |
16877 | #define wxUSE_OLE 1 | |
16878 | EOF | |
16879 | ||
b64f0a5f RL |
16880 | |
16881 | if test "$wxUSE_METAFILE" = "yes"; then | |
698dcdb6 | 16882 | cat >> confdefs.h <<\EOF |
b64f0a5f RL |
16883 | #define wxUSE_METAFILE 1 |
16884 | EOF | |
16885 | ||
698dcdb6 | 16886 | cat >> confdefs.h <<\EOF |
b64f0a5f RL |
16887 | #define wxUSE_ENH_METAFILE 1 |
16888 | EOF | |
16889 | ||
16890 | fi | |
c521c494 RL |
16891 | fi |
16892 | else | |
698dcdb6 | 16893 | echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2 |
10f2d63a VZ |
16894 | wxUSE_DRAG_AND_DROP=no |
16895 | fi | |
16896 | fi | |
16897 | ||
16898 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
698dcdb6 | 16899 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16900 | #define wxUSE_DRAG_AND_DROP 1 |
16901 | EOF | |
16902 | ||
16903 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
16904 | fi | |
16905 | ||
16906 | fi | |
16907 | ||
16908 | if test "$wxUSE_SPLINES" = "yes" ; then | |
698dcdb6 | 16909 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16910 | #define wxUSE_SPLINES 1 |
16911 | EOF | |
16912 | ||
16913 | fi | |
16914 | ||
698dcdb6 | 16915 | |
1e6feb95 VZ |
16916 | USES_CONTROLS=0 |
16917 | if test "$wxUSE_CONTROLS" = "yes"; then | |
16918 | USES_CONTROLS=1 | |
16919 | fi | |
16920 | ||
10f2d63a | 16921 | if test "$wxUSE_ACCEL" = "yes"; then |
698dcdb6 | 16922 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16923 | #define wxUSE_ACCEL 1 |
16924 | EOF | |
16925 | ||
1e6feb95 VZ |
16926 | USES_CONTROLS=1 |
16927 | fi | |
16928 | ||
16929 | if test "$wxUSE_BUTTON" = "yes"; then | |
16930 | cat >> confdefs.h <<\EOF | |
16931 | #define wxUSE_BUTTON 1 | |
16932 | EOF | |
16933 | ||
16934 | USES_CONTROLS=1 | |
16935 | fi | |
16936 | ||
16937 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
16938 | cat >> confdefs.h <<\EOF | |
16939 | #define wxUSE_BMPBUTTON 1 | |
16940 | EOF | |
16941 | ||
16942 | USES_CONTROLS=1 | |
16943 | fi | |
16944 | ||
16945 | if test "$wxUSE_CALCTRL" = "yes"; then | |
16946 | cat >> confdefs.h <<\EOF | |
16947 | #define wxUSE_CALENDARCTRL 1 | |
16948 | EOF | |
16949 | ||
16950 | USES_CONTROLS=1 | |
16951 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
10f2d63a VZ |
16952 | fi |
16953 | ||
16954 | if test "$wxUSE_CARET" = "yes"; then | |
698dcdb6 | 16955 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16956 | #define wxUSE_CARET 1 |
16957 | EOF | |
16958 | ||
1e6feb95 | 16959 | USES_CONTROLS=1 |
10f2d63a VZ |
16960 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" |
16961 | fi | |
16962 | ||
16963 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
698dcdb6 | 16964 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16965 | #define wxUSE_COMBOBOX 1 |
16966 | EOF | |
16967 | ||
1e6feb95 | 16968 | USES_CONTROLS=1 |
10f2d63a VZ |
16969 | fi |
16970 | ||
16971 | if test "$wxUSE_CHOICE" = "yes"; then | |
698dcdb6 | 16972 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16973 | #define wxUSE_CHOICE 1 |
16974 | EOF | |
16975 | ||
1e6feb95 | 16976 | USES_CONTROLS=1 |
10f2d63a VZ |
16977 | fi |
16978 | ||
16979 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
698dcdb6 | 16980 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16981 | #define wxUSE_CHECKBOX 1 |
16982 | EOF | |
16983 | ||
1e6feb95 | 16984 | USES_CONTROLS=1 |
10f2d63a VZ |
16985 | fi |
16986 | ||
16987 | if test "$wxUSE_CHECKLST" = "yes"; then | |
698dcdb6 | 16988 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16989 | #define wxUSE_CHECKLISTBOX 1 |
16990 | EOF | |
16991 | ||
1e6feb95 | 16992 | USES_CONTROLS=1 |
10f2d63a VZ |
16993 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" |
16994 | fi | |
16995 | ||
16996 | if test "$wxUSE_GAUGE" = "yes"; then | |
698dcdb6 | 16997 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16998 | #define wxUSE_GAUGE 1 |
16999 | EOF | |
17000 | ||
1e6feb95 | 17001 | USES_CONTROLS=1 |
10f2d63a VZ |
17002 | fi |
17003 | ||
d6a55c4b VZ |
17004 | if test "$wxUSE_NEW_GRID" = "yes"; then |
17005 | wxUSE_GRID="yes" | |
698dcdb6 | 17006 | cat >> confdefs.h <<\EOF |
d6a55c4b | 17007 | #define wxUSE_NEW_GRID 1 |
10f2d63a VZ |
17008 | EOF |
17009 | ||
1e6feb95 | 17010 | USES_CONTROLS=1 |
d6a55c4b | 17011 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid" |
10f2d63a VZ |
17012 | fi |
17013 | ||
d6a55c4b | 17014 | if test "$wxUSE_GRID" = "yes"; then |
698dcdb6 | 17015 | cat >> confdefs.h <<\EOF |
d6a55c4b | 17016 | #define wxUSE_GRID 1 |
10f2d63a VZ |
17017 | EOF |
17018 | ||
1e6feb95 | 17019 | USES_CONTROLS=1 |
d6a55c4b | 17020 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" |
10f2d63a VZ |
17021 | fi |
17022 | ||
17023 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 17024 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17025 | #define wxUSE_IMAGLIST 1 |
17026 | EOF | |
17027 | ||
17028 | fi | |
17029 | ||
17030 | if test "$wxUSE_LISTBOX" = "yes"; then | |
698dcdb6 | 17031 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17032 | #define wxUSE_LISTBOX 1 |
17033 | EOF | |
17034 | ||
1e6feb95 | 17035 | USES_CONTROLS=1 |
10f2d63a VZ |
17036 | fi |
17037 | ||
17038 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
17039 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 17040 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17041 | #define wxUSE_LISTCTRL 1 |
17042 | EOF | |
17043 | ||
1e6feb95 | 17044 | USES_CONTROLS=1 |
10f2d63a VZ |
17045 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" |
17046 | else | |
698dcdb6 | 17047 | echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
17048 | fi |
17049 | fi | |
17050 | ||
17051 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
698dcdb6 | 17052 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17053 | #define wxUSE_NOTEBOOK 1 |
17054 | EOF | |
17055 | ||
1e6feb95 | 17056 | USES_CONTROLS=1 |
10f2d63a VZ |
17057 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" |
17058 | fi | |
17059 | ||
17060 | if test "$wxUSE_RADIOBOX" = "yes"; then | |
698dcdb6 | 17061 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17062 | #define wxUSE_RADIOBOX 1 |
17063 | EOF | |
17064 | ||
1e6feb95 | 17065 | USES_CONTROLS=1 |
10f2d63a VZ |
17066 | fi |
17067 | ||
17068 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
698dcdb6 | 17069 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17070 | #define wxUSE_RADIOBTN 1 |
17071 | EOF | |
17072 | ||
1e6feb95 | 17073 | USES_CONTROLS=1 |
10f2d63a VZ |
17074 | fi |
17075 | ||
17076 | if test "$wxUSE_SASH" = "yes"; then | |
698dcdb6 | 17077 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17078 | #define wxUSE_SASH 1 |
17079 | EOF | |
17080 | ||
17081 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
17082 | fi | |
17083 | ||
17084 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
698dcdb6 | 17085 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17086 | #define wxUSE_SCROLLBAR 1 |
17087 | EOF | |
17088 | ||
1e6feb95 | 17089 | USES_CONTROLS=1 |
741a9306 | 17090 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
17091 | fi |
17092 | ||
17093 | if test "$wxUSE_SLIDER" = "yes"; then | |
698dcdb6 | 17094 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17095 | #define wxUSE_SLIDER 1 |
17096 | EOF | |
17097 | ||
1e6feb95 | 17098 | USES_CONTROLS=1 |
10f2d63a VZ |
17099 | fi |
17100 | ||
17101 | if test "$wxUSE_SPINBTN" = "yes"; then | |
698dcdb6 | 17102 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17103 | #define wxUSE_SPINBTN 1 |
17104 | EOF | |
17105 | ||
1e6feb95 | 17106 | USES_CONTROLS=1 |
10f2d63a VZ |
17107 | fi |
17108 | ||
56cfaa52 | 17109 | if test "$wxUSE_SPINCTRL" = "yes"; then |
698dcdb6 | 17110 | cat >> confdefs.h <<\EOF |
56cfaa52 RR |
17111 | #define wxUSE_SPINCTRL 1 |
17112 | EOF | |
17113 | ||
1e6feb95 | 17114 | USES_CONTROLS=1 |
56cfaa52 RR |
17115 | fi |
17116 | ||
10f2d63a | 17117 | if test "$wxUSE_SPLITTER" = "yes"; then |
698dcdb6 | 17118 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17119 | #define wxUSE_SPLITTER 1 |
17120 | EOF | |
17121 | ||
17122 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
17123 | fi | |
17124 | ||
17125 | if test "$wxUSE_STATBMP" = "yes"; then | |
698dcdb6 | 17126 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17127 | #define wxUSE_STATBMP 1 |
17128 | EOF | |
17129 | ||
1e6feb95 | 17130 | USES_CONTROLS=1 |
10f2d63a VZ |
17131 | fi |
17132 | ||
17133 | if test "$wxUSE_STATBOX" = "yes"; then | |
698dcdb6 | 17134 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17135 | #define wxUSE_STATBOX 1 |
17136 | EOF | |
17137 | ||
1e6feb95 VZ |
17138 | USES_CONTROLS=1 |
17139 | fi | |
17140 | ||
17141 | if test "$wxUSE_STATTEXT" = "yes"; then | |
17142 | cat >> confdefs.h <<\EOF | |
17143 | #define wxUSE_STATTEXT 1 | |
17144 | EOF | |
17145 | ||
17146 | USES_CONTROLS=1 | |
10f2d63a VZ |
17147 | fi |
17148 | ||
17149 | if test "$wxUSE_STATLINE" = "yes"; then | |
17150 | if test "$wxUSE_WINE" = 1 ; then | |
698dcdb6 | 17151 | echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2 |
10f2d63a | 17152 | else |
698dcdb6 | 17153 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17154 | #define wxUSE_STATLINE 1 |
17155 | EOF | |
17156 | ||
1e6feb95 | 17157 | USES_CONTROLS=1 |
10f2d63a VZ |
17158 | fi |
17159 | fi | |
17160 | ||
17161 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
698dcdb6 | 17162 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17163 | #define wxUSE_STATUSBAR 1 |
17164 | EOF | |
17165 | ||
1e6feb95 | 17166 | USES_CONTROLS=1 |
698dcdb6 | 17167 | |
2286341c | 17168 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" |
10f2d63a VZ |
17169 | fi |
17170 | ||
17171 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
698dcdb6 | 17172 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17173 | #define wxUSE_TAB_DIALOG 1 |
17174 | EOF | |
17175 | ||
17176 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
17177 | fi | |
17178 | ||
1e6feb95 VZ |
17179 | if test "$wxUSE_TEXTCTRL" = "yes"; then |
17180 | cat >> confdefs.h <<\EOF | |
17181 | #define wxUSE_TEXTCTRL 1 | |
17182 | EOF | |
17183 | ||
17184 | USES_CONTROLS=1 | |
17185 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
17186 | fi | |
17187 | ||
1db8dc4a | 17188 | if test "$wxUSE_TOGGLEBTN" = "yes"; then |
a45d7ab7 GD |
17189 | if test "$wxUSE_MAC" = 1; then |
17190 | echo "configure: warning: Toggle button is not yet supported under Mac OS X" 1>&2 | |
17191 | wxUSE_TOGGLEBTN=no | |
17192 | fi | |
17193 | ||
17194 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
17195 | cat >> confdefs.h <<\EOF | |
1db8dc4a VZ |
17196 | #define wxUSE_TOGGLEBTN 1 |
17197 | EOF | |
17198 | ||
1e6feb95 | 17199 | USES_CONTROLS=1 |
a45d7ab7 | 17200 | fi |
1db8dc4a VZ |
17201 | fi |
17202 | ||
360d6699 | 17203 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
698dcdb6 | 17204 | cat >> confdefs.h <<\EOF |
360d6699 VZ |
17205 | #define wxUSE_TOOLBAR_SIMPLE 1 |
17206 | EOF | |
17207 | ||
17208 | wxUSE_TOOLBAR="yes" | |
1e6feb95 | 17209 | USES_CONTROLS=1 |
360d6699 VZ |
17210 | fi |
17211 | ||
10f2d63a | 17212 | if test "$wxUSE_TOOLBAR" = "yes"; then |
698dcdb6 | 17213 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17214 | #define wxUSE_TOOLBAR 1 |
17215 | EOF | |
17216 | ||
1e6feb95 | 17217 | USES_CONTROLS=1 |
698dcdb6 | 17218 | |
360d6699 VZ |
17219 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then |
17220 | wxUSE_TOOLBAR_NATIVE="yes" | |
17221 | fi | |
17222 | ||
1e6feb95 VZ |
17223 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
17224 | cat >> confdefs.h <<\EOF | |
360d6699 VZ |
17225 | #define wxUSE_TOOLBAR_NATIVE 1 |
17226 | EOF | |
17227 | ||
1e6feb95 VZ |
17228 | USES_CONTROLS=1 |
17229 | fi | |
17230 | ||
17231 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
360d6699 VZ |
17232 | fi |
17233 | ||
10f2d63a VZ |
17234 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
17235 | if test "$wxUSE_MOTIF" = 1; then | |
698dcdb6 | 17236 | echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2 |
10f2d63a VZ |
17237 | else |
17238 | if test "$wxUSE_WINE" = 1; then | |
698dcdb6 | 17239 | echo "configure: warning: wxTooltip not supported under WINE" 1>&2 |
10f2d63a | 17240 | else |
698dcdb6 | 17241 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17242 | #define wxUSE_TOOLTIPS 1 |
17243 | EOF | |
17244 | ||
17245 | fi | |
17246 | fi | |
17247 | fi | |
17248 | ||
17249 | if test "$wxUSE_TREECTRL" = "yes"; then | |
17250 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 17251 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17252 | #define wxUSE_TREECTRL 1 |
17253 | EOF | |
17254 | ||
1e6feb95 | 17255 | USES_CONTROLS=1 |
10f2d63a VZ |
17256 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" |
17257 | else | |
698dcdb6 | 17258 | echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
17259 | fi |
17260 | fi | |
17261 | ||
9f41d601 | 17262 | if test "$wxUSE_POPUPWIN" = "yes"; then |
6abe4b65 GD |
17263 | if test "$wxUSE_MAC" = 1; then |
17264 | echo "configure: warning: Popup window is not yet supported under Mac OS" 1>&2 | |
17265 | else | |
17266 | cat >> confdefs.h <<\EOF | |
9f41d601 RR |
17267 | #define wxUSE_POPUPWIN 1 |
17268 | EOF | |
17269 | ||
6abe4b65 GD |
17270 | USES_CONTROLS=1 |
17271 | fi | |
9f41d601 RR |
17272 | fi |
17273 | ||
1e6feb95 VZ |
17274 | if test "$USES_CONTROLS" = 1; then |
17275 | cat >> confdefs.h <<\EOF | |
17276 | #define wxUSE_CONTROLS 1 | |
10f2d63a VZ |
17277 | EOF |
17278 | ||
10f2d63a VZ |
17279 | fi |
17280 | ||
1e6feb95 VZ |
17281 | |
17282 | ||
24fd6d87 VZ |
17283 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
17284 | cat >> confdefs.h <<\EOF | |
17285 | #define wxUSE_DRAGIMAGE 1 | |
17286 | EOF | |
17287 | ||
17288 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
17289 | fi | |
17290 | ||
1e6feb95 | 17291 | if test "$wxUSE_MENUS" = "yes"; then |
698dcdb6 | 17292 | cat >> confdefs.h <<\EOF |
1e6feb95 | 17293 | #define wxUSE_MENUS 1 |
10f2d63a VZ |
17294 | EOF |
17295 | ||
1e6feb95 | 17296 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" |
10f2d63a VZ |
17297 | fi |
17298 | ||
1e6feb95 VZ |
17299 | if test "$wxUSE_METAFILE" = "yes"; then |
17300 | cat >> confdefs.h <<\EOF | |
17301 | #define wxUSE_METAFILE 1 | |
10f2d63a VZ |
17302 | EOF |
17303 | ||
10f2d63a VZ |
17304 | fi |
17305 | ||
1e6feb95 VZ |
17306 | if test "$wxUSE_MIMETYPE" = "yes"; then |
17307 | cat >> confdefs.h <<\EOF | |
17308 | #define wxUSE_MIMETYPE 1 | |
10f2d63a VZ |
17309 | EOF |
17310 | ||
10f2d63a VZ |
17311 | fi |
17312 | ||
17313 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
698dcdb6 | 17314 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17315 | #define wxUSE_MINIFRAME 1 |
17316 | EOF | |
17317 | ||
17318 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
17319 | fi | |
17320 | ||
17321 | if test "$wxUSE_HTML" = "yes"; then | |
698dcdb6 | 17322 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17323 | #define wxUSE_HTML 1 |
17324 | EOF | |
17325 | ||
17326 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html" | |
17327 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html" | |
17328 | fi | |
17329 | ||
17330 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
698dcdb6 | 17331 | cat >> confdefs.h <<\EOF |
1e487827 VS |
17332 | #define wxUSE_VALIDATORS 1 |
17333 | EOF | |
703e0a69 | 17334 | |
698dcdb6 VZ |
17335 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" |
17336 | fi | |
17337 | ||
17338 | if test "$wxUSE_IMAGE" = "yes" ; then | |
17339 | cat >> confdefs.h <<\EOF | |
17340 | #define wxUSE_IMAGE 1 | |
17341 | EOF | |
17342 | ||
17343 | fi | |
17344 | ||
17345 | if test "$wxUSE_GIF" = "yes" ; then | |
17346 | cat >> confdefs.h <<\EOF | |
17347 | #define wxUSE_GIF 1 | |
17348 | EOF | |
17349 | ||
17350 | fi | |
17351 | ||
17352 | if test "$wxUSE_PCX" = "yes" ; then | |
17353 | cat >> confdefs.h <<\EOF | |
17354 | #define wxUSE_PCX 1 | |
17355 | EOF | |
17356 | ||
17357 | fi | |
17358 | ||
17359 | if test "$wxUSE_PNM" = "yes" ; then | |
17360 | cat >> confdefs.h <<\EOF | |
17361 | #define wxUSE_PNM 1 | |
17362 | EOF | |
17363 | ||
17364 | fi | |
17365 | ||
17366 | if test "$wxUSE_XPM" = "yes" ; then | |
17367 | cat >> confdefs.h <<\EOF | |
17368 | #define wxUSE_XPM 1 | |
17369 | EOF | |
17370 | ||
17371 | fi | |
17372 | ||
17373 | ||
1e6feb95 VZ |
17374 | if test "$wxUSE_CHOICEDLG" = "yes"; then |
17375 | cat >> confdefs.h <<\EOF | |
17376 | #define wxUSE_CHOICEDLG 1 | |
17377 | EOF | |
17378 | ||
17379 | fi | |
17380 | ||
17381 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
17382 | cat >> confdefs.h <<\EOF | |
17383 | #define wxUSE_COLOURDLG 1 | |
17384 | EOF | |
17385 | ||
17386 | fi | |
17387 | ||
17388 | if test "$wxUSE_FILEDLG" = "yes"; then | |
17389 | cat >> confdefs.h <<\EOF | |
17390 | #define wxUSE_FILEDLG 1 | |
17391 | EOF | |
17392 | ||
17393 | fi | |
17394 | ||
17395 | if test "$wxUSE_FONTDLG" = "yes"; then | |
17396 | cat >> confdefs.h <<\EOF | |
17397 | #define wxUSE_FONTDLG 1 | |
17398 | EOF | |
17399 | ||
17400 | fi | |
17401 | ||
17402 | if test "$wxUSE_DIRDLG" = "yes"; then | |
17403 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
17404 | echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2 | |
17405 | else | |
17406 | if test "$wxUSE_TREECTRL" != "yes"; then | |
17407 | echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2 | |
17408 | else | |
17409 | cat >> confdefs.h <<\EOF | |
17410 | #define wxUSE_DIRDLG 1 | |
17411 | EOF | |
17412 | ||
17413 | fi | |
17414 | fi | |
17415 | fi | |
17416 | ||
17417 | if test "$wxUSE_MSGDLG" = "yes"; then | |
17418 | cat >> confdefs.h <<\EOF | |
17419 | #define wxUSE_MSGDLG 1 | |
17420 | EOF | |
17421 | ||
17422 | fi | |
17423 | ||
17424 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
17425 | cat >> confdefs.h <<\EOF | |
17426 | #define wxUSE_NUMBERDLG 1 | |
17427 | EOF | |
17428 | ||
17429 | fi | |
17430 | ||
17431 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
17432 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
17433 | echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2 | |
17434 | else | |
17435 | cat >> confdefs.h <<\EOF | |
17436 | #define wxUSE_PROGRESSDLG 1 | |
17437 | EOF | |
17438 | ||
17439 | fi | |
17440 | fi | |
17441 | ||
17442 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then | |
17443 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
17444 | echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2 | |
17445 | else | |
17446 | cat >> confdefs.h <<\EOF | |
17447 | #define wxUSE_STARTUP_TIPS 1 | |
17448 | EOF | |
17449 | ||
17450 | fi | |
17451 | fi | |
17452 | ||
17453 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
17454 | cat >> confdefs.h <<\EOF | |
17455 | #define wxUSE_TEXTDLG 1 | |
17456 | EOF | |
17457 | ||
17458 | fi | |
17459 | ||
b1f5d087 VZ |
17460 | if test "$wxUSE_WIZARDDLG" = "yes"; then |
17461 | cat >> confdefs.h <<\EOF | |
17462 | #define wxUSE_WIZARDDLG 1 | |
17463 | EOF | |
17464 | ||
17465 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
17466 | fi | |
17467 | ||
1e6feb95 | 17468 | |
698dcdb6 VZ |
17469 | if test "$cross_compiling" = "yes"; then |
17470 | OSINFO="\"$host\"" | |
17471 | else | |
17472 | OSINFO=`uname -s -r -m` | |
17473 | OSINFO="\"$OSINFO\"" | |
17474 | fi | |
17475 | ||
17476 | cat >> confdefs.h <<EOF | |
17477 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
17478 | EOF | |
17479 | ||
17480 | ||
17481 | ||
17482 | GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK" | |
17483 | OPENGL_LIBS="$OPENGL_LINK" | |
17484 | ||
17485 | EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm" | |
17486 | if test "$USE_MAC" = 1 ; then | |
17487 | EXTRA_LIBS="$EXTRA_LIBS -framework Carbon -framework System" | |
17488 | fi | |
17489 | if test "$wxUSE_GUI" = "yes"; then | |
17490 | EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $FREETYPE_LINK $EXTRA_LIBS" | |
17491 | fi | |
17492 | ||
17493 | LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS" | |
17494 | ||
17495 | INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $FREETYPE_INCLUDE $TOOLKIT_INCLUDE" | |
17496 | ||
17497 | if test "$wxUSE_GTK" = 1; then | |
17498 | WXCONFIG_INCLUDE="" | |
17499 | else | |
17500 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
17501 | fi | |
17502 | ||
17503 | if test "$GXX" = yes ; then | |
17504 | CXXWARNINGS="-Wall" | |
17505 | fi | |
17506 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES" | |
17507 | ||
17508 | CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` | |
17509 | CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
17510 | ||
17511 | LDFLAGS="$LDFLAGS $PROFILE" | |
17512 | ||
17513 | if test "$wxUSE_GUI" = "yes"; then | |
17514 | ||
24fd6d87 | 17515 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \ |
1e6feb95 VZ |
17516 | drawing dynamic event font fractal image \ |
17517 | minimal richedit widgets" | |
17518 | ||
17519 | if test "$wxUSE_UNIVERSAL" = "yes" ; then | |
17520 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS univ" | |
17521 | fi | |
698dcdb6 VZ |
17522 | |
17523 | CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)" | |
17524 | else | |
17525 | SAMPLES_SUBDIRS="" | |
17526 | fi | |
17527 | ||
17528 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
17529 | ||
17530 | ||
17531 | ||
17532 | ||
17533 | ||
17534 | ||
17535 | ||
17536 | ||
17537 | ||
17538 | ||
17539 | ||
17540 | ||
17541 | ||
17542 | ||
17543 | ||
17544 | ||
17545 | ||
17546 | ||
17547 | ||
17548 | ||
17549 | ||
17550 | ||
17551 | ||
17552 | ||
17553 | ||
17554 | ||
17555 | ||
17556 | ||
17557 | ||
17558 | ||
17559 | ||
17560 | ||
17561 | ||
17562 | ||
17563 | ||
17564 | ||
17565 | ||
17566 | ||
17567 | ||
17568 | ||
17569 | ||
17570 | ||
17571 | ||
17572 | ||
17573 | ||
17574 | ||
17575 | ||
17576 | ||
17577 | ||
17578 | ||
17579 | ||
17580 | ||
17581 | ||
17582 | ||
17583 | ||
17584 | ||
17585 | ||
17586 | ||
17587 | ||
17588 | ||
17589 | ||
17590 | ||
17591 | ||
17592 | ||
17593 | ||
17594 | ||
17595 | ||
32832908 VZ |
17596 | |
17597 | ||
17598 | ||
17599 | ||
17600 | ||
17601 | ||
17602 | ||
2224580a | 17603 | |
dad6c0ea | 17604 | |
f6bcfd97 BP |
17605 | |
17606 | ||
17607 | ||
2f51a9ec GD |
17608 | |
17609 | ||
17610 | ||
17611 | ||
17612 | ||
17613 | ||
f6bcfd97 | 17614 | |
dad6c0ea | 17615 | |
caa2c79b | 17616 | |
3711412e | 17617 | |
1e6feb95 VZ |
17618 | |
17619 | ||
0f3f1cbc | 17620 | |
10f2d63a VZ |
17621 | |
17622 | ||
698dcdb6 | 17623 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
29fd3c0c | 17624 | echo "configure:17625: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
698dcdb6 VZ |
17625 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
17626 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
17627 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 17628 | else |
698dcdb6 | 17629 | cat > conftestmake <<\EOF |
10f2d63a VZ |
17630 | all: |
17631 | @echo 'ac_maketemp="${MAKE}"' | |
17632 | EOF | |
17633 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
698dcdb6 | 17634 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
10f2d63a VZ |
17635 | if test -n "$ac_maketemp"; then |
17636 | eval ac_cv_prog_make_${ac_make}_set=yes | |
17637 | else | |
17638 | eval ac_cv_prog_make_${ac_make}_set=no | |
17639 | fi | |
698dcdb6 | 17640 | rm -f conftestmake |
10f2d63a VZ |
17641 | fi |
17642 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
698dcdb6 | 17643 | echo "$ac_t""yes" 1>&6 |
10f2d63a VZ |
17644 | SET_MAKE= |
17645 | else | |
698dcdb6 | 17646 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
17647 | SET_MAKE="MAKE=${MAKE-make}" |
17648 | fi | |
17649 | ||
698dcdb6 | 17650 | |
00cf1208 RR |
17651 | if test -d include; then |
17652 | if test -d include/wx; then | |
1e6feb95 VZ |
17653 | if test -d include/wx/${SETUPH_DIR}; then |
17654 | if test -f include/wx/${SETUPH_DIR}/setup.h; then | |
17655 | mv -f include/wx/${SETUPH_DIR}/setup.h setup.h | |
00cf1208 RR |
17656 | fi |
17657 | fi | |
17658 | fi | |
17659 | fi | |
665bbe97 | 17660 | |
698dcdb6 | 17661 | |
10f2d63a | 17662 | |
2224580a | 17663 | if test "$wxUSE_GUI" = "yes"; then |
ec90f5e5 | 17664 | wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS |
e8482f24 GL |
17665 | wx_cv_path_ifs=$PATH_IFS |
17666 | wx_cv_program_ext=$PROGRAM_EXT | |
17667 | wx_cv_target_library=$WX_TARGET_LIBRARY | |
3711412e | 17668 | wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE |
93a20a27 VS |
17669 | export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \ |
17670 | wx_cv_target_library wx_cv_target_libtype | |
698dcdb6 | 17671 | subdirs="demos samples utils contrib" |
2224580a VZ |
17672 | |
17673 | fi | |
10f2d63a | 17674 | |
698dcdb6 VZ |
17675 | trap '' 1 2 15 |
17676 | cat > confcache <<\EOF | |
10f2d63a VZ |
17677 | # This file is a shell script that caches the results of configure |
17678 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
17679 | # scripts and configure runs. It is not useful on other systems. |
17680 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 17681 | # |
698dcdb6 VZ |
17682 | # By default, configure uses ./config.cache as the cache file, |
17683 | # creating it if it does not exist already. You can give configure | |
17684 | # the --cache-file=FILE option to use a different cache file; that is | |
17685 | # what configure does when it calls configure scripts in | |
17686 | # subdirectories, so they share the cache. | |
17687 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
17688 | # config.status only pays attention to the cache file if you give it the | |
17689 | # --recheck option to rerun configure. | |
10f2d63a | 17690 | # |
698dcdb6 | 17691 | EOF |
10f2d63a VZ |
17692 | # The following way of writing the cache mishandles newlines in values, |
17693 | # but we know of no workaround that is simple, portable, and efficient. | |
17694 | # So, don't put newlines in cache variables' values. | |
17695 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
17696 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
17697 | (set) 2>&1 | |
17698 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
17699 | *ac_space=\ *) | |
17700 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
17701 | # turns \\\\ into \\, and sed turns \\ into \). | |
17702 | sed -n \ | |
17703 | -e "s/'/'\\\\''/g" \ | |
17704 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
17705 | ;; | |
17706 | *) | |
17707 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
17708 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
17709 | ;; | |
17710 | esac >> confcache | |
17711 | if cmp -s $cache_file confcache; then | |
17712 | : | |
17713 | else | |
10f2d63a | 17714 | if test -w $cache_file; then |
698dcdb6 VZ |
17715 | echo "updating cache $cache_file" |
17716 | cat confcache > $cache_file | |
10f2d63a VZ |
17717 | else |
17718 | echo "not updating unwritable cache $cache_file" | |
17719 | fi | |
17720 | fi | |
17721 | rm -f confcache | |
17722 | ||
698dcdb6 VZ |
17723 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
17724 | ||
10f2d63a VZ |
17725 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
17726 | # Let make expand exec_prefix. | |
17727 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
17728 | ||
698dcdb6 VZ |
17729 | # Any assignment to VPATH causes Sun make to only execute |
17730 | # the first set of double-colon rules, so remove it if not needed. | |
17731 | # If there is a colon in the path, we need to keep it. | |
10f2d63a | 17732 | if test "x$srcdir" = x.; then |
698dcdb6 | 17733 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
10f2d63a VZ |
17734 | fi |
17735 | ||
698dcdb6 VZ |
17736 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
17737 | ||
10f2d63a VZ |
17738 | DEFS=-DHAVE_CONFIG_H |
17739 | ||
698dcdb6 | 17740 | # Without the "./", some shells look in PATH for config.status. |
10f2d63a | 17741 | : ${CONFIG_STATUS=./config.status} |
698dcdb6 VZ |
17742 | |
17743 | echo creating $CONFIG_STATUS | |
17744 | rm -f $CONFIG_STATUS | |
17745 | cat > $CONFIG_STATUS <<EOF | |
17746 | #! /bin/sh | |
10f2d63a VZ |
17747 | # Generated automatically by configure. |
17748 | # Run this file to recreate the current configuration. | |
698dcdb6 VZ |
17749 | # This directory was configured as follows, |
17750 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
17751 | # | |
17752 | # $0 $ac_configure_args | |
17753 | # | |
10f2d63a | 17754 | # Compiler output produced by configure, useful for debugging |
698dcdb6 | 17755 | # configure, is in ./config.log if it exists. |
1e487827 | 17756 | |
698dcdb6 VZ |
17757 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
17758 | for ac_option | |
10f2d63a | 17759 | do |
698dcdb6 | 17760 | case "\$ac_option" in |
10f2d63a | 17761 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
698dcdb6 VZ |
17762 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
17763 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
17764 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
17765 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | |
17766 | exit 0 ;; | |
17767 | -help | --help | --hel | --he | --h) | |
17768 | echo "\$ac_cs_usage"; exit 0 ;; | |
17769 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
10f2d63a VZ |
17770 | esac |
17771 | done | |
17772 | ||
698dcdb6 VZ |
17773 | ac_given_srcdir=$srcdir |
17774 | ac_given_INSTALL="$INSTALL" | |
703e0a69 | 17775 | |
698dcdb6 VZ |
17776 | trap 'rm -fr `echo " |
17777 | wx-config | |
17778 | src/make.env | |
17779 | src/makeprog.env | |
17780 | src/makelib.env | |
17781 | Makefile | |
17782 | setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
1e487827 | 17783 | EOF |
698dcdb6 | 17784 | cat >> $CONFIG_STATUS <<EOF |
1e487827 | 17785 | |
698dcdb6 VZ |
17786 | # Protect against being on the right side of a sed subst in config.status. |
17787 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
17788 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
17789 | $ac_vpsub | |
17790 | $extrasub | |
17791 | s%@SHELL@%$SHELL%g | |
17792 | s%@CFLAGS@%$CFLAGS%g | |
17793 | s%@CPPFLAGS@%$CPPFLAGS%g | |
17794 | s%@CXXFLAGS@%$CXXFLAGS%g | |
17795 | s%@FFLAGS@%$FFLAGS%g | |
17796 | s%@DEFS@%$DEFS%g | |
17797 | s%@LDFLAGS@%$LDFLAGS%g | |
17798 | s%@LIBS@%$LIBS%g | |
17799 | s%@exec_prefix@%$exec_prefix%g | |
17800 | s%@prefix@%$prefix%g | |
17801 | s%@program_transform_name@%$program_transform_name%g | |
17802 | s%@bindir@%$bindir%g | |
17803 | s%@sbindir@%$sbindir%g | |
17804 | s%@libexecdir@%$libexecdir%g | |
17805 | s%@datadir@%$datadir%g | |
17806 | s%@sysconfdir@%$sysconfdir%g | |
17807 | s%@sharedstatedir@%$sharedstatedir%g | |
17808 | s%@localstatedir@%$localstatedir%g | |
17809 | s%@libdir@%$libdir%g | |
17810 | s%@includedir@%$includedir%g | |
17811 | s%@oldincludedir@%$oldincludedir%g | |
17812 | s%@infodir@%$infodir%g | |
17813 | s%@mandir@%$mandir%g | |
17814 | s%@host@%$host%g | |
17815 | s%@host_alias@%$host_alias%g | |
17816 | s%@host_cpu@%$host_cpu%g | |
17817 | s%@host_vendor@%$host_vendor%g | |
17818 | s%@host_os@%$host_os%g | |
17819 | s%@target@%$target%g | |
17820 | s%@target_alias@%$target_alias%g | |
17821 | s%@target_cpu@%$target_cpu%g | |
17822 | s%@target_vendor@%$target_vendor%g | |
17823 | s%@target_os@%$target_os%g | |
17824 | s%@build@%$build%g | |
17825 | s%@build_alias@%$build_alias%g | |
17826 | s%@build_cpu@%$build_cpu%g | |
17827 | s%@build_vendor@%$build_vendor%g | |
17828 | s%@build_os@%$build_os%g | |
17829 | s%@CC@%$CC%g | |
17830 | s%@CPP@%$CPP%g | |
17831 | s%@CXX@%$CXX%g | |
17832 | s%@CXXCPP@%$CXXCPP%g | |
17833 | s%@RANLIB@%$RANLIB%g | |
17834 | s%@AR@%$AR%g | |
17835 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
17836 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | |
17837 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
17838 | s%@STRIP@%$STRIP%g | |
17839 | s%@YACC@%$YACC%g | |
17840 | s%@LEX@%$LEX%g | |
17841 | s%@LEXLIB@%$LEXLIB%g | |
17842 | s%@LN_S@%$LN_S%g | |
17843 | s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g | |
698dcdb6 VZ |
17844 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g |
17845 | s%@GTK_LIBS@%$GTK_LIBS%g | |
8168de4c | 17846 | s%@GTK_CONFIG@%$GTK_CONFIG%g |
698dcdb6 VZ |
17847 | s%@X_CFLAGS@%$X_CFLAGS%g |
17848 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
17849 | s%@X_LIBS@%$X_LIBS%g | |
17850 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
17851 | s%@REZ@%$REZ%g | |
17852 | s%@DEREZ@%$DEREZ%g | |
17853 | s%@LEX_STEM@%$LEX_STEM%g | |
17854 | s%@PATH_IFS@%$PATH_IFS%g | |
17855 | s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g | |
17856 | s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g | |
17857 | s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g | |
17858 | s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g | |
17859 | s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g | |
17860 | s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g | |
17861 | s%@WX_LIBRARY@%$WX_LIBRARY%g | |
17862 | s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g | |
17863 | s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g | |
17864 | s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g | |
17865 | s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g | |
17866 | s%@PROGRAM_EXT@%$PROGRAM_EXT%g | |
17867 | s%@WX_LIBRARY_NAME_GL@%$WX_LIBRARY_NAME_GL%g | |
17868 | s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g | |
17869 | s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g | |
17870 | s%@WX_LIBRARY_GL@%$WX_LIBRARY_GL%g | |
17871 | s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g | |
17872 | s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g | |
17873 | s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g | |
17874 | s%@WX_LIBRARY_LINK3_GL@%$WX_LIBRARY_LINK3_GL%g | |
17875 | s%@WX_ALL@%$WX_ALL%g | |
17876 | s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g | |
17877 | s%@SHARED_LD@%$SHARED_LD%g | |
17878 | s%@PIC_FLAG@%$PIC_FLAG%g | |
17879 | s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g | |
17880 | s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g | |
17881 | s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g | |
17882 | s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g | |
17883 | s%@BURNT_LIBRARY_NAME_GL@%$BURNT_LIBRARY_NAME_GL%g | |
17884 | s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g | |
17885 | s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g | |
17886 | s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g | |
17887 | s%@USE_GUI@%$USE_GUI%g | |
17888 | s%@AFMINSTALL@%$AFMINSTALL%g | |
1e6feb95 | 17889 | s%@SETUPH_DIR@%$SETUPH_DIR%g |
698dcdb6 VZ |
17890 | s%@TOOLKIT@%$TOOLKIT%g |
17891 | s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g | |
17892 | s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g | |
17893 | s%@TOOLKIT_NAME@%$TOOLKIT_NAME%g | |
17894 | s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g | |
1e6feb95 | 17895 | s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g |
698dcdb6 VZ |
17896 | s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g |
17897 | s%@ALL_OBJECTS@%$ALL_OBJECTS%g | |
17898 | s%@ALL_DEPFILES@%$ALL_DEPFILES%g | |
17899 | s%@GUIDIST@%$GUIDIST%g | |
17900 | s%@PORT_FILES@%$PORT_FILES%g | |
17901 | s%@DISTDIR@%$DISTDIR%g | |
17902 | s%@RPM_SPEC@%$RPM_SPEC%g | |
17903 | s%@RPM_FILES@%$RPM_FILES%g | |
17904 | s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g | |
17905 | s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g | |
17906 | s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g | |
17907 | s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g | |
17908 | s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g | |
17909 | s%@USER_SUBDIRS@%$USER_SUBDIRS%g | |
17910 | s%@EXTRA_LIBS@%$EXTRA_LIBS%g | |
17911 | s%@OPENGL_LIBS@%$OPENGL_LIBS%g | |
17912 | s%@EXTRADEFS@%$EXTRADEFS%g | |
17913 | s%@LD_LIBS@%$LD_LIBS%g | |
17914 | s%@RCINPUTSWITCH@%$RCINPUTSWITCH%g | |
17915 | s%@RCOUTPUTSWITCH@%$RCOUTPUTSWITCH%g | |
17916 | s%@RESPROGRAM@%$RESPROGRAM%g | |
17917 | s%@RESCOMP@%$RESCOMP%g | |
17918 | s%@RESFLAGS@%$RESFLAGS%g | |
17919 | s%@REZFLAGS@%$REZFLAGS%g | |
17920 | s%@DEREZFLAGS@%$DEREZFLAGS%g | |
17921 | s%@LIBWXMACRES@%$LIBWXMACRES%g | |
17922 | s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g | |
17923 | s%@DLLTOOL@%$DLLTOOL%g | |
17924 | s%@AS@%$AS%g | |
17925 | s%@NM@%$NM%g | |
17926 | s%@LD@%$LD%g | |
17927 | s%@MAKEINFO@%$MAKEINFO%g | |
17928 | s%@SET_MAKE@%$SET_MAKE%g | |
17929 | s%@subdirs@%$subdirs%g | |
1e487827 | 17930 | |
1e487827 | 17931 | CEOF |
1e487827 VS |
17932 | EOF |
17933 | ||
698dcdb6 VZ |
17934 | cat >> $CONFIG_STATUS <<\EOF |
17935 | ||
17936 | # Split the substitutions into bite-sized pieces for seds with | |
17937 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
17938 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
17939 | ac_file=1 # Number of current file. | |
17940 | ac_beg=1 # First line for current file. | |
17941 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
17942 | ac_more_lines=: | |
17943 | ac_sed_cmds="" | |
17944 | while $ac_more_lines; do | |
17945 | if test $ac_beg -gt 1; then | |
17946 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
17947 | else | |
17948 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
17949 | fi | |
17950 | if test ! -s conftest.s$ac_file; then | |
17951 | ac_more_lines=false | |
17952 | rm -f conftest.s$ac_file | |
17953 | else | |
17954 | if test -z "$ac_sed_cmds"; then | |
17955 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
10f2d63a | 17956 | else |
698dcdb6 | 17957 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
10f2d63a | 17958 | fi |
698dcdb6 VZ |
17959 | ac_file=`expr $ac_file + 1` |
17960 | ac_beg=$ac_end | |
17961 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
10f2d63a | 17962 | fi |
698dcdb6 VZ |
17963 | done |
17964 | if test -z "$ac_sed_cmds"; then | |
17965 | ac_sed_cmds=cat | |
17966 | fi | |
17967 | EOF | |
10f2d63a | 17968 | |
698dcdb6 VZ |
17969 | cat >> $CONFIG_STATUS <<EOF |
17970 | ||
17971 | CONFIG_FILES=\${CONFIG_FILES-"wx-config | |
17972 | src/make.env | |
17973 | src/makeprog.env | |
17974 | src/makelib.env | |
17975 | Makefile | |
17976 | "} | |
10f2d63a | 17977 | EOF |
698dcdb6 VZ |
17978 | cat >> $CONFIG_STATUS <<\EOF |
17979 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
10f2d63a | 17980 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
698dcdb6 VZ |
17981 | case "$ac_file" in |
17982 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
17983 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
17984 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
17985 | esac |
17986 | ||
698dcdb6 | 17987 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
1e487827 | 17988 | |
698dcdb6 VZ |
17989 | # Remove last slash and all that follows it. Not all systems have dirname. |
17990 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
17991 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
17992 | # The file is in a subdirectory. | |
17993 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
17994 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
10f2d63a | 17995 | # A "../" for each directory in $ac_dir_suffix. |
698dcdb6 | 17996 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
10f2d63a VZ |
17997 | else |
17998 | ac_dir_suffix= ac_dots= | |
17999 | fi | |
18000 | ||
698dcdb6 VZ |
18001 | case "$ac_given_srcdir" in |
18002 | .) srcdir=. | |
18003 | if test -z "$ac_dots"; then top_srcdir=. | |
18004 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
18005 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
10f2d63a | 18006 | *) # Relative path. |
698dcdb6 VZ |
18007 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
18008 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
10f2d63a VZ |
18009 | esac |
18010 | ||
698dcdb6 VZ |
18011 | case "$ac_given_INSTALL" in |
18012 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
18013 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
10f2d63a VZ |
18014 | esac |
18015 | ||
698dcdb6 VZ |
18016 | echo creating "$ac_file" |
18017 | rm -f "$ac_file" | |
18018 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
18019 | case "$ac_file" in | |
18020 | *Makefile*) ac_comsub="1i\\ | |
18021 | # $configure_input" ;; | |
18022 | *) ac_comsub= ;; | |
18023 | esac | |
10f2d63a | 18024 | |
698dcdb6 VZ |
18025 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
18026 | sed -e "$ac_comsub | |
18027 | s%@configure_input@%$configure_input%g | |
18028 | s%@srcdir@%$srcdir%g | |
18029 | s%@top_srcdir@%$top_srcdir%g | |
18030 | s%@INSTALL@%$INSTALL%g | |
18031 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
18032 | fi; done | |
18033 | rm -f conftest.s* | |
10f2d63a VZ |
18034 | |
18035 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
18036 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
18037 | # | |
18038 | # ac_d sets the value in "#define NAME VALUE" lines. | |
698dcdb6 VZ |
18039 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
18040 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
18041 | ac_dC='\3' | |
18042 | ac_dD='%g' | |
18043 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
18044 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
18045 | ac_uB='\([ ]\)%\1#\2define\3' | |
10f2d63a | 18046 | ac_uC=' ' |
698dcdb6 VZ |
18047 | ac_uD='\4%g' |
18048 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
18049 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
18050 | ac_eB='$%\1#\2define\3' | |
18051 | ac_eC=' ' | |
18052 | ac_eD='%g' | |
10f2d63a | 18053 | |
698dcdb6 VZ |
18054 | if test "${CONFIG_HEADERS+set}" != set; then |
18055 | EOF | |
18056 | cat >> $CONFIG_STATUS <<EOF | |
18057 | CONFIG_HEADERS="setup.h:setup.h.in" | |
18058 | EOF | |
18059 | cat >> $CONFIG_STATUS <<\EOF | |
18060 | fi | |
18061 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
10f2d63a | 18062 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
698dcdb6 VZ |
18063 | case "$ac_file" in |
18064 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
18065 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
18066 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
18067 | esac |
18068 | ||
698dcdb6 VZ |
18069 | echo creating $ac_file |
18070 | ||
18071 | rm -f conftest.frag conftest.in conftest.out | |
18072 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
18073 | cat $ac_file_inputs > conftest.in | |
18074 | ||
18075 | EOF | |
18076 | ||
18077 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
18078 | # the proper values into config.h.in to produce config.h. And first: | |
18079 | # Protect against being on the right side of a sed subst in config.status. | |
18080 | # Protect against being in an unquoted here document in config.status. | |
18081 | rm -f conftest.vals | |
18082 | cat > conftest.hdr <<\EOF | |
18083 | s/[\\&%]/\\&/g | |
18084 | s%[\\$`]%\\&%g | |
18085 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
18086 | s%ac_d%ac_u%gp | |
18087 | s%ac_u%ac_e%gp | |
18088 | EOF | |
18089 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
18090 | rm -f conftest.hdr | |
10f2d63a VZ |
18091 | |
18092 | # This sed command replaces #undef with comments. This is necessary, for | |
18093 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
18094 | # on some systems where configure will not decide to define it. | |
698dcdb6 VZ |
18095 | cat >> conftest.vals <<\EOF |
18096 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
10f2d63a VZ |
18097 | EOF |
18098 | ||
698dcdb6 VZ |
18099 | # Break up conftest.vals because some shells have a limit on |
18100 | # the size of here documents, and old seds have small limits too. | |
10f2d63a VZ |
18101 | |
18102 | rm -f conftest.tail | |
698dcdb6 | 18103 | while : |
10f2d63a | 18104 | do |
698dcdb6 VZ |
18105 | ac_lines=`grep -c . conftest.vals` |
18106 | # grep -c gives empty output for an empty file on some AIX systems. | |
18107 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
18108 | # Write a limited-size here document to conftest.frag. | |
18109 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
18110 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
10f2d63a | 18111 | echo 'CEOF |
698dcdb6 VZ |
18112 | sed -f conftest.frag conftest.in > conftest.out |
18113 | rm -f conftest.in | |
18114 | mv conftest.out conftest.in | |
18115 | ' >> $CONFIG_STATUS | |
18116 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
18117 | rm -f conftest.vals | |
18118 | mv conftest.tail conftest.vals | |
10f2d63a | 18119 | done |
698dcdb6 VZ |
18120 | rm -f conftest.vals |
18121 | ||
18122 | cat >> $CONFIG_STATUS <<\EOF | |
18123 | rm -f conftest.frag conftest.h | |
18124 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
18125 | cat conftest.in >> conftest.h | |
18126 | rm -f conftest.in | |
18127 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
18128 | echo "$ac_file is unchanged" | |
18129 | rm -f conftest.h | |
10f2d63a | 18130 | else |
698dcdb6 VZ |
18131 | # Remove last slash and all that follows it. Not all systems have dirname. |
18132 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
10f2d63a | 18133 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
698dcdb6 VZ |
18134 | # The file is in a subdirectory. |
18135 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
10f2d63a | 18136 | fi |
698dcdb6 VZ |
18137 | rm -f $ac_file |
18138 | mv conftest.h $ac_file | |
10f2d63a | 18139 | fi |
698dcdb6 VZ |
18140 | fi; done |
18141 | ||
10f2d63a | 18142 | EOF |
698dcdb6 | 18143 | cat >> $CONFIG_STATUS <<EOF |
10f2d63a | 18144 | |
1e6feb95 | 18145 | SETUPH_DIR="${SETUPH_DIR}" |
698dcdb6 VZ |
18146 | TOOLKIT_NAME="${TOOLKIT_NAME}" |
18147 | LN_S="${LN_S}" | |
18148 | ||
18149 | ||
18150 | EOF | |
18151 | cat >> $CONFIG_STATUS <<\EOF | |
10f2d63a | 18152 | |
6ef41520 | 18153 | if test ! -f wx${TOOLKIT_NAME}-config; then |
991a5759 VZ |
18154 | chmod +x wx-config |
18155 | mv wx-config wx${TOOLKIT_NAME}-config | |
18156 | ${LN_S} wx${TOOLKIT_NAME}-config wx-config | |
18157 | fi | |
665bbe97 | 18158 | |
698dcdb6 | 18159 | |
00cf1208 RR |
18160 | if test ! -d lib; then |
18161 | mkdir lib | |
18162 | fi | |
18163 | if test ! -d lib/wx; then | |
18164 | mkdir lib/wx | |
18165 | fi | |
18166 | if test ! -d lib/wx/include; then | |
18167 | mkdir lib/wx/include | |
18168 | fi | |
18169 | if test ! -d lib/wx/include/wx; then | |
18170 | mkdir lib/wx/include/wx | |
18171 | fi | |
f6bcfd97 BP |
18172 | if test ! -d lib/wx/include/wx/${TOOLKIT_NAME}; then |
18173 | mkdir lib/wx/include/wx/${TOOLKIT_NAME} | |
00cf1208 RR |
18174 | fi |
18175 | if test -f setup.h; then | |
066b00aa | 18176 | cp -fp setup.h lib/wx/include/wx/${TOOLKIT_NAME}/setup.h |
00cf1208 | 18177 | fi |
07eb77a6 | 18178 | |
698dcdb6 | 18179 | |
10f2d63a VZ |
18180 | if test ! -d include; then |
18181 | mkdir include | |
18182 | fi | |
18183 | if test ! -d include/wx; then | |
18184 | mkdir include/wx | |
18185 | fi | |
1e6feb95 VZ |
18186 | if test ! -d include/wx/${SETUPH_DIR}; then |
18187 | mkdir include/wx/${SETUPH_DIR} | |
10f2d63a | 18188 | fi |
afc31813 | 18189 | if test -f setup.h; then |
1e6feb95 | 18190 | cp -fp setup.h include/wx/${SETUPH_DIR}/setup.h |
afc31813 | 18191 | fi |
665bbe97 | 18192 | |
698dcdb6 VZ |
18193 | |
18194 | exit 0 | |
10f2d63a VZ |
18195 | EOF |
18196 | chmod +x $CONFIG_STATUS | |
698dcdb6 VZ |
18197 | rm -fr confdefs* $ac_clean_files |
18198 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
10f2d63a | 18199 | |
2224580a VZ |
18200 | if test "$no_recursion" != yes; then |
18201 | ||
18202 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
18203 | ac_sub_configure_args= | |
18204 | ac_prev= | |
18205 | for ac_arg in $ac_configure_args; do | |
18206 | if test -n "$ac_prev"; then | |
18207 | ac_prev= | |
18208 | continue | |
18209 | fi | |
698dcdb6 | 18210 | case "$ac_arg" in |
2224580a VZ |
18211 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
18212 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
18213 | ac_prev=cache_file ;; | |
18214 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
698dcdb6 | 18215 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
2224580a VZ |
18216 | ;; |
18217 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
18218 | ac_prev=srcdir ;; | |
18219 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
18220 | ;; | |
18221 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
18222 | esac | |
18223 | done | |
18224 | ||
698dcdb6 | 18225 | for ac_config_dir in demos samples utils contrib; do |
2224580a VZ |
18226 | |
18227 | # Do not complain, so a configure script can configure whichever | |
18228 | # parts of a large source tree are present. | |
698dcdb6 VZ |
18229 | if test ! -d $srcdir/$ac_config_dir; then |
18230 | continue | |
18231 | fi | |
18232 | ||
18233 | echo configuring in $ac_config_dir | |
2224580a | 18234 | |
698dcdb6 | 18235 | case "$srcdir" in |
2224580a VZ |
18236 | .) ;; |
18237 | *) | |
698dcdb6 VZ |
18238 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; |
18239 | else | |
18240 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
18241 | fi | |
18242 | ;; | |
2224580a VZ |
18243 | esac |
18244 | ||
18245 | ac_popdir=`pwd` | |
698dcdb6 | 18246 | cd $ac_config_dir |
2224580a | 18247 | |
698dcdb6 VZ |
18248 | # A "../" for each directory in /$ac_config_dir. |
18249 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
2224580a | 18250 | |
698dcdb6 | 18251 | case "$srcdir" in |
2224580a VZ |
18252 | .) # No --srcdir option. We are building in place. |
18253 | ac_sub_srcdir=$srcdir ;; | |
698dcdb6 VZ |
18254 | /*) # Absolute path. |
18255 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
2224580a | 18256 | *) # Relative path. |
698dcdb6 | 18257 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; |
2224580a VZ |
18258 | esac |
18259 | ||
18260 | # Check for guested configure; otherwise get Cygnus style configure. | |
698dcdb6 VZ |
18261 | if test -f $ac_sub_srcdir/configure; then |
18262 | ac_sub_configure=$ac_sub_srcdir/configure | |
2224580a VZ |
18263 | elif test -f $ac_sub_srcdir/configure.in; then |
18264 | ac_sub_configure=$ac_configure | |
18265 | else | |
698dcdb6 | 18266 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 |
2224580a VZ |
18267 | ac_sub_configure= |
18268 | fi | |
18269 | ||
18270 | # The recursion is here. | |
18271 | if test -n "$ac_sub_configure"; then | |
698dcdb6 | 18272 | |
2224580a | 18273 | # Make the cache file name correct relative to the subdirectory. |
698dcdb6 VZ |
18274 | case "$cache_file" in |
18275 | /*) ac_sub_cache_file=$cache_file ;; | |
2224580a | 18276 | *) # Relative path. |
698dcdb6 | 18277 | ac_sub_cache_file="$ac_dots$cache_file" ;; |
2224580a | 18278 | esac |
698dcdb6 VZ |
18279 | case "$ac_given_INSTALL" in |
18280 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
18281 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
18282 | esac | |
2224580a | 18283 | |
698dcdb6 | 18284 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" |
2224580a | 18285 | # The eval makes quoting arguments work. |
698dcdb6 VZ |
18286 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir |
18287 | then : | |
18288 | else | |
18289 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
18290 | fi | |
2224580a VZ |
18291 | fi |
18292 | ||
18293 | cd $ac_popdir | |
18294 | done | |
18295 | fi | |
18296 | ||
698dcdb6 | 18297 |