]>
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 VZ |
201 | --enable-help use help subsystem" |
202 | ac_help="$ac_help | |
203 | --enable-html use wxHTML sub-library" | |
204 | ac_help="$ac_help | |
205 | --enable-htmlhelp use wxHTML-based help" | |
698dcdb6 | 206 | ac_help="$ac_help |
8168de4c | 207 | --enable-constraints use layout-constraints system" |
698dcdb6 | 208 | ac_help="$ac_help |
8168de4c | 209 | --enable-printarch use printing architecture" |
698dcdb6 | 210 | ac_help="$ac_help |
8168de4c | 211 | --enable-mdi use multiple document interface architecture" |
698dcdb6 | 212 | ac_help="$ac_help |
8168de4c | 213 | --enable-loggui use standard GUI logger" |
1e6feb95 | 214 | ac_help="$ac_help |
8168de4c | 215 | --enable-logwin use wxLogWindow" |
1e6feb95 | 216 | ac_help="$ac_help |
8168de4c | 217 | --enable-postscript use wxPostscriptDC device context (default for gtk+)" |
698dcdb6 | 218 | ac_help="$ac_help |
8168de4c | 219 | --enable-prologio use Prolog IO library" |
698dcdb6 | 220 | ac_help="$ac_help |
8168de4c | 221 | --enable-resources use wxWindows resources" |
698dcdb6 | 222 | ac_help="$ac_help |
8168de4c | 223 | --enable-xresources use X resources for save (default for gtk+)" |
698dcdb6 | 224 | ac_help="$ac_help |
8168de4c | 225 | --enable-clipboard use wxClipboard classes" |
698dcdb6 | 226 | ac_help="$ac_help |
8168de4c | 227 | --enable-dnd use Drag'n'Drop classes" |
698dcdb6 | 228 | ac_help="$ac_help |
8168de4c | 229 | --enable-metafile use win32 metafiles" |
698dcdb6 | 230 | ac_help="$ac_help |
8168de4c | 231 | --enable-wxtree make wxTree library" |
698dcdb6 | 232 | ac_help="$ac_help |
8168de4c | 233 | --enable-controls use all usual controls" |
698dcdb6 | 234 | ac_help="$ac_help |
8168de4c | 235 | --enable-accel use accelerators" |
698dcdb6 | 236 | ac_help="$ac_help |
8168de4c | 237 | --enable-button use wxButton class" |
698dcdb6 | 238 | ac_help="$ac_help |
8168de4c | 239 | --enable-bmpbutton use wxBitmapButton class" |
698dcdb6 | 240 | ac_help="$ac_help |
8168de4c | 241 | --enable-calendar use wxCalendarCtrl class" |
1e6feb95 | 242 | ac_help="$ac_help |
8168de4c | 243 | --enable-caret use wxCaret class" |
1e6feb95 | 244 | ac_help="$ac_help |
8168de4c | 245 | --enable-checkbox use wxCheckBox class" |
698dcdb6 | 246 | ac_help="$ac_help |
8168de4c | 247 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class" |
698dcdb6 | 248 | ac_help="$ac_help |
8168de4c | 249 | --enable-choice use wxChoice class" |
698dcdb6 | 250 | ac_help="$ac_help |
8168de4c | 251 | --enable-combobox use wxComboBox classes" |
698dcdb6 | 252 | ac_help="$ac_help |
8168de4c | 253 | --enable-gauge use wxGauge class" |
698dcdb6 | 254 | ac_help="$ac_help |
8168de4c | 255 | --enable-grid use wxGrid class" |
698dcdb6 | 256 | ac_help="$ac_help |
8168de4c | 257 | --enable-newgrid use new wxGrid class" |
698dcdb6 | 258 | ac_help="$ac_help |
8168de4c | 259 | --enable-imaglist use wxImageList class" |
698dcdb6 | 260 | ac_help="$ac_help |
8168de4c | 261 | --enable-listbox use wxListBox class" |
698dcdb6 | 262 | ac_help="$ac_help |
8168de4c | 263 | --enable-listctrl use wxListCtrl class" |
698dcdb6 | 264 | ac_help="$ac_help |
8168de4c | 265 | --enable-notebook use wxNotebook class" |
698dcdb6 | 266 | ac_help="$ac_help |
8168de4c | 267 | --enable-radiobox use wxRadioBox class" |
698dcdb6 | 268 | ac_help="$ac_help |
8168de4c | 269 | --enable-radiobtn use wxRadioButton class" |
698dcdb6 | 270 | ac_help="$ac_help |
8168de4c | 271 | --enable-sash use wxSashWindow class" |
698dcdb6 | 272 | ac_help="$ac_help |
8168de4c | 273 | --enable-scrollbar use wxScrollBar class and scrollable windows" |
698dcdb6 | 274 | ac_help="$ac_help |
8168de4c | 275 | --enable-slider use wxSlider class" |
698dcdb6 | 276 | ac_help="$ac_help |
8168de4c | 277 | --enable-spinbtn use wxSpinButton class" |
698dcdb6 | 278 | ac_help="$ac_help |
8168de4c | 279 | --enable-spinctrl use wxSpinCtrl class" |
698dcdb6 | 280 | ac_help="$ac_help |
8168de4c | 281 | --enable-splitter use wxSplitterWindow class" |
698dcdb6 | 282 | ac_help="$ac_help |
8168de4c | 283 | --enable-statbmp use wxStaticBitmap class" |
698dcdb6 | 284 | ac_help="$ac_help |
8168de4c | 285 | --enable-statbox use wxStaticBox class" |
698dcdb6 | 286 | ac_help="$ac_help |
8168de4c | 287 | --enable-statline use wxStaticLine class" |
698dcdb6 | 288 | ac_help="$ac_help |
8168de4c | 289 | --enable-stattext use wxStaticText class" |
1e6feb95 | 290 | ac_help="$ac_help |
8168de4c | 291 | --enable-statusbar use wxStatusBar class" |
698dcdb6 | 292 | ac_help="$ac_help |
8168de4c | 293 | --enable-tabdialog use wxTabControl class" |
698dcdb6 | 294 | ac_help="$ac_help |
8168de4c | 295 | --enable-textctrl use wxTextCtrl class" |
1e6feb95 | 296 | ac_help="$ac_help |
8168de4c | 297 | --enable-togglebtn use wxToggleButton class" |
698dcdb6 | 298 | ac_help="$ac_help |
8168de4c | 299 | --enable-toolbar use wxToolBar class" |
698dcdb6 | 300 | ac_help="$ac_help |
8168de4c | 301 | --enable-tbarnative use native wxToolBar class" |
698dcdb6 | 302 | ac_help="$ac_help |
8168de4c | 303 | --enable-tbarsmpl use wxToolBarSimple class" |
698dcdb6 | 304 | ac_help="$ac_help |
8168de4c | 305 | --enable-treectrl use wxTreeCtrl class" |
698dcdb6 | 306 | ac_help="$ac_help |
8168de4c | 307 | --enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)" |
698dcdb6 | 308 | ac_help="$ac_help |
8168de4c | 309 | --enable-choicedlg use wxChoiceDialog" |
1e6feb95 | 310 | ac_help="$ac_help |
8168de4c | 311 | --enable-coldlg use wxColourDialog" |
1e6feb95 | 312 | ac_help="$ac_help |
8168de4c | 313 | --enable-filedlg use wxFileDialog" |
1e6feb95 | 314 | ac_help="$ac_help |
8168de4c | 315 | --enable-fontdlg use wxFontDialog" |
1e6feb95 | 316 | ac_help="$ac_help |
8168de4c | 317 | --enable-dirdlg use wxDirDialog" |
698dcdb6 | 318 | ac_help="$ac_help |
8168de4c | 319 | --enable-msgdlg use wxMessageDialog" |
1e6feb95 | 320 | ac_help="$ac_help |
8168de4c | 321 | --enable-numberdlg use wxNumberEntryDialog" |
1e6feb95 | 322 | ac_help="$ac_help |
8168de4c | 323 | --enable-textdlg use wxTextDialog" |
698dcdb6 | 324 | ac_help="$ac_help |
8168de4c | 325 | --enable-tipdlg use startup tips" |
698dcdb6 | 326 | ac_help="$ac_help |
8168de4c | 327 | --enable-progressdlg use wxProgressDialog" |
b1f5d087 VZ |
328 | ac_help="$ac_help |
329 | --enable-wizarddlg use wxWizard" | |
698dcdb6 | 330 | ac_help="$ac_help |
8168de4c | 331 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes" |
1e6feb95 | 332 | ac_help="$ac_help |
8168de4c | 333 | --enable-miniframe use wxMiniFrame class" |
698dcdb6 | 334 | ac_help="$ac_help |
8168de4c | 335 | --enable-tooltips use wxToolTip class" |
698dcdb6 | 336 | ac_help="$ac_help |
8168de4c | 337 | --enable-splines use spline drawing code" |
698dcdb6 | 338 | ac_help="$ac_help |
8168de4c | 339 | --enable-validators use wxValidator and derived classes" |
698dcdb6 | 340 | ac_help="$ac_help |
8168de4c | 341 | --enable-busyinfo use wxBusyInfo" |
698dcdb6 | 342 | ac_help="$ac_help |
8168de4c | 343 | --enable-joystick compile in joystick support (Linux only)" |
698dcdb6 | 344 | ac_help="$ac_help |
8168de4c | 345 | --enable-metafiles use wxMetaFile (Windows only)" |
24fd6d87 VZ |
346 | ac_help="$ac_help |
347 | --enable-dragimage use wxDragImage" | |
1e6feb95 | 348 | ac_help="$ac_help |
8168de4c | 349 | --enable-image use wxImage class" |
698dcdb6 | 350 | ac_help="$ac_help |
8168de4c | 351 | --enable-gif use gif images (GIF file format)" |
698dcdb6 | 352 | ac_help="$ac_help |
8168de4c | 353 | --enable-pcx use pcx images (PCX file format)" |
698dcdb6 | 354 | ac_help="$ac_help |
8168de4c | 355 | --enable-pnm use pnm images (PNM file format)" |
698dcdb6 | 356 | ac_help="$ac_help |
8168de4c | 357 | --enable-xpm use xpm images (XPM file format)" |
698dcdb6 VZ |
358 | ac_help="$ac_help |
359 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
360 | ac_help="$ac_help | |
361 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
362 | ac_help="$ac_help | |
363 | --disable-gtktest Do not try to compile and run a test GTK program" | |
364 | ac_help="$ac_help | |
365 | --with-x use the X Window System" | |
10f2d63a VZ |
366 | |
367 | # Initialize some variables set by options. | |
368 | # The variables have the same names as the options, with | |
369 | # dashes changed to underlines. | |
698dcdb6 VZ |
370 | build=NONE |
371 | cache_file=./config.cache | |
10f2d63a | 372 | exec_prefix=NONE |
698dcdb6 | 373 | host=NONE |
10f2d63a | 374 | no_create= |
698dcdb6 | 375 | nonopt=NONE |
10f2d63a VZ |
376 | no_recursion= |
377 | prefix=NONE | |
378 | program_prefix=NONE | |
379 | program_suffix=NONE | |
380 | program_transform_name=s,x,x, | |
381 | silent= | |
382 | site= | |
383 | srcdir= | |
698dcdb6 | 384 | target=NONE |
10f2d63a VZ |
385 | verbose= |
386 | x_includes=NONE | |
387 | x_libraries=NONE | |
388 | bindir='${exec_prefix}/bin' | |
389 | sbindir='${exec_prefix}/sbin' | |
390 | libexecdir='${exec_prefix}/libexec' | |
391 | datadir='${prefix}/share' | |
392 | sysconfdir='${prefix}/etc' | |
393 | sharedstatedir='${prefix}/com' | |
394 | localstatedir='${prefix}/var' | |
395 | libdir='${exec_prefix}/lib' | |
396 | includedir='${prefix}/include' | |
397 | oldincludedir='/usr/include' | |
398 | infodir='${prefix}/info' | |
399 | mandir='${prefix}/man' | |
400 | ||
698dcdb6 VZ |
401 | # Initialize some other variables. |
402 | subdirs= | |
403 | MFLAGS= MAKEFLAGS= | |
404 | SHELL=${CONFIG_SHELL-/bin/sh} | |
405 | # Maximum number of lines to put in a shell here document. | |
406 | ac_max_here_lines=12 | |
10f2d63a VZ |
407 | |
408 | ac_prev= | |
409 | for ac_option | |
410 | do | |
698dcdb6 | 411 | |
10f2d63a VZ |
412 | # If the previous option needs an argument, assign it. |
413 | if test -n "$ac_prev"; then | |
414 | eval "$ac_prev=\$ac_option" | |
415 | ac_prev= | |
416 | continue | |
417 | fi | |
418 | ||
698dcdb6 VZ |
419 | case "$ac_option" in |
420 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
421 | *) ac_optarg= ;; | |
422 | esac | |
10f2d63a VZ |
423 | |
424 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
425 | ||
698dcdb6 | 426 | case "$ac_option" in |
10f2d63a VZ |
427 | |
428 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
429 | ac_prev=bindir ;; | |
430 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
698dcdb6 | 431 | bindir="$ac_optarg" ;; |
10f2d63a VZ |
432 | |
433 | -build | --build | --buil | --bui | --bu) | |
698dcdb6 | 434 | ac_prev=build ;; |
10f2d63a | 435 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
698dcdb6 | 436 | build="$ac_optarg" ;; |
10f2d63a VZ |
437 | |
438 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
439 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
440 | ac_prev=cache_file ;; | |
441 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
442 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
698dcdb6 | 443 | cache_file="$ac_optarg" ;; |
10f2d63a VZ |
444 | |
445 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
446 | ac_prev=datadir ;; | |
447 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
448 | | --da=*) | |
698dcdb6 | 449 | datadir="$ac_optarg" ;; |
10f2d63a VZ |
450 | |
451 | -disable-* | --disable-*) | |
698dcdb6 | 452 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
10f2d63a | 453 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
454 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
455 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
456 | fi | |
457 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
458 | eval "enable_${ac_feature}=no" ;; | |
10f2d63a VZ |
459 | |
460 | -enable-* | --enable-*) | |
698dcdb6 | 461 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
10f2d63a | 462 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
463 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
464 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
465 | fi | |
466 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
467 | case "$ac_option" in | |
468 | *=*) ;; | |
10f2d63a VZ |
469 | *) ac_optarg=yes ;; |
470 | esac | |
698dcdb6 | 471 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
10f2d63a VZ |
472 | |
473 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
474 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
475 | | --exec | --exe | --ex) | |
476 | ac_prev=exec_prefix ;; | |
477 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
478 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
479 | | --exec=* | --exe=* | --ex=*) | |
698dcdb6 | 480 | exec_prefix="$ac_optarg" ;; |
10f2d63a VZ |
481 | |
482 | -gas | --gas | --ga | --g) | |
483 | # Obsolete; use --with-gas. | |
484 | with_gas=yes ;; | |
485 | ||
698dcdb6 VZ |
486 | -help | --help | --hel | --he) |
487 | # Omit some internal or obsolete options to make the list less imposing. | |
488 | # This message is too long to be a string in the A/UX 3.1 sh. | |
489 | cat << EOF | |
490 | Usage: configure [options] [host] | |
491 | Options: [defaults in brackets after descriptions] | |
492 | Configuration: | |
493 | --cache-file=FILE cache test results in FILE | |
494 | --help print this message | |
495 | --no-create do not create output files | |
496 | --quiet, --silent do not print \`checking...' messages | |
497 | --version print the version of autoconf that created configure | |
498 | Directory and file names: | |
499 | --prefix=PREFIX install architecture-independent files in PREFIX | |
500 | [$ac_default_prefix] | |
501 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
502 | [same as prefix] | |
503 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
504 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
505 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
506 | --datadir=DIR read-only architecture-independent data in DIR | |
507 | [PREFIX/share] | |
508 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
509 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
510 | [PREFIX/com] | |
511 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
512 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
513 | --includedir=DIR C header files in DIR [PREFIX/include] | |
514 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
515 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
516 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
517 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
518 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
519 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
520 | --program-transform-name=PROGRAM | |
521 | run sed PROGRAM on installed program names | |
522 | EOF | |
523 | cat << EOF | |
524 | Host type: | |
525 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
526 | --host=HOST configure for HOST [guessed] | |
527 | --target=TARGET configure for TARGET [TARGET=HOST] | |
528 | Features and packages: | |
529 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
530 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
531 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
532 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
533 | --x-includes=DIR X include files are in DIR | |
534 | --x-libraries=DIR X library files are in DIR | |
535 | EOF | |
536 | if test -n "$ac_help"; then | |
537 | echo "--enable and --with options recognized:$ac_help" | |
538 | fi | |
539 | exit 0 ;; | |
10f2d63a VZ |
540 | |
541 | -host | --host | --hos | --ho) | |
698dcdb6 | 542 | ac_prev=host ;; |
10f2d63a | 543 | -host=* | --host=* | --hos=* | --ho=*) |
698dcdb6 | 544 | host="$ac_optarg" ;; |
10f2d63a VZ |
545 | |
546 | -includedir | --includedir | --includedi | --included | --include \ | |
547 | | --includ | --inclu | --incl | --inc) | |
548 | ac_prev=includedir ;; | |
549 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
550 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
698dcdb6 | 551 | includedir="$ac_optarg" ;; |
10f2d63a VZ |
552 | |
553 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
554 | ac_prev=infodir ;; | |
555 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
698dcdb6 | 556 | infodir="$ac_optarg" ;; |
10f2d63a VZ |
557 | |
558 | -libdir | --libdir | --libdi | --libd) | |
559 | ac_prev=libdir ;; | |
560 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
698dcdb6 | 561 | libdir="$ac_optarg" ;; |
10f2d63a VZ |
562 | |
563 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
564 | | --libexe | --libex | --libe) | |
565 | ac_prev=libexecdir ;; | |
566 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
567 | | --libexe=* | --libex=* | --libe=*) | |
698dcdb6 | 568 | libexecdir="$ac_optarg" ;; |
10f2d63a VZ |
569 | |
570 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
571 | | --localstate | --localstat | --localsta | --localst \ | |
572 | | --locals | --local | --loca | --loc | --lo) | |
573 | ac_prev=localstatedir ;; | |
574 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
575 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
576 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
698dcdb6 | 577 | localstatedir="$ac_optarg" ;; |
10f2d63a VZ |
578 | |
579 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
580 | ac_prev=mandir ;; | |
581 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
698dcdb6 | 582 | mandir="$ac_optarg" ;; |
10f2d63a VZ |
583 | |
584 | -nfp | --nfp | --nf) | |
585 | # Obsolete; use --without-fp. | |
586 | with_fp=no ;; | |
587 | ||
588 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
589 | | --no-cr | --no-c) | |
590 | no_create=yes ;; | |
591 | ||
592 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
593 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
594 | no_recursion=yes ;; | |
595 | ||
596 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
597 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
598 | | --oldin | --oldi | --old | --ol | --o) | |
599 | ac_prev=oldincludedir ;; | |
600 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
601 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
602 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
698dcdb6 | 603 | oldincludedir="$ac_optarg" ;; |
10f2d63a VZ |
604 | |
605 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
606 | ac_prev=prefix ;; | |
607 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
698dcdb6 | 608 | prefix="$ac_optarg" ;; |
10f2d63a VZ |
609 | |
610 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
611 | | --program-pre | --program-pr | --program-p) | |
612 | ac_prev=program_prefix ;; | |
613 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
614 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
698dcdb6 | 615 | program_prefix="$ac_optarg" ;; |
10f2d63a VZ |
616 | |
617 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
618 | | --program-suf | --program-su | --program-s) | |
619 | ac_prev=program_suffix ;; | |
620 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
621 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
698dcdb6 | 622 | program_suffix="$ac_optarg" ;; |
10f2d63a VZ |
623 | |
624 | -program-transform-name | --program-transform-name \ | |
625 | | --program-transform-nam | --program-transform-na \ | |
626 | | --program-transform-n | --program-transform- \ | |
627 | | --program-transform | --program-transfor \ | |
628 | | --program-transfo | --program-transf \ | |
629 | | --program-trans | --program-tran \ | |
630 | | --progr-tra | --program-tr | --program-t) | |
631 | ac_prev=program_transform_name ;; | |
632 | -program-transform-name=* | --program-transform-name=* \ | |
633 | | --program-transform-nam=* | --program-transform-na=* \ | |
634 | | --program-transform-n=* | --program-transform-=* \ | |
635 | | --program-transform=* | --program-transfor=* \ | |
636 | | --program-transfo=* | --program-transf=* \ | |
637 | | --program-trans=* | --program-tran=* \ | |
638 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
698dcdb6 | 639 | program_transform_name="$ac_optarg" ;; |
10f2d63a VZ |
640 | |
641 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
642 | | -silent | --silent | --silen | --sile | --sil) | |
643 | silent=yes ;; | |
644 | ||
645 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
646 | ac_prev=sbindir ;; | |
647 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
648 | | --sbi=* | --sb=*) | |
698dcdb6 | 649 | sbindir="$ac_optarg" ;; |
10f2d63a VZ |
650 | |
651 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
652 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
653 | | --sharedst | --shareds | --shared | --share | --shar \ | |
654 | | --sha | --sh) | |
655 | ac_prev=sharedstatedir ;; | |
656 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
657 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
658 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
659 | | --sha=* | --sh=*) | |
698dcdb6 | 660 | sharedstatedir="$ac_optarg" ;; |
10f2d63a VZ |
661 | |
662 | -site | --site | --sit) | |
663 | ac_prev=site ;; | |
664 | -site=* | --site=* | --sit=*) | |
698dcdb6 | 665 | site="$ac_optarg" ;; |
10f2d63a VZ |
666 | |
667 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
668 | ac_prev=srcdir ;; | |
669 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
698dcdb6 | 670 | srcdir="$ac_optarg" ;; |
10f2d63a VZ |
671 | |
672 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
673 | | --syscon | --sysco | --sysc | --sys | --sy) | |
674 | ac_prev=sysconfdir ;; | |
675 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
676 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
698dcdb6 | 677 | sysconfdir="$ac_optarg" ;; |
10f2d63a VZ |
678 | |
679 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
698dcdb6 | 680 | ac_prev=target ;; |
10f2d63a | 681 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
698dcdb6 | 682 | target="$ac_optarg" ;; |
10f2d63a VZ |
683 | |
684 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
685 | verbose=yes ;; | |
686 | ||
698dcdb6 VZ |
687 | -version | --version | --versio | --versi | --vers) |
688 | echo "configure generated by autoconf version 2.13" | |
689 | exit 0 ;; | |
10f2d63a VZ |
690 | |
691 | -with-* | --with-*) | |
698dcdb6 | 692 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
10f2d63a | 693 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
694 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
695 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
696 | fi | |
10f2d63a | 697 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
698dcdb6 VZ |
698 | case "$ac_option" in |
699 | *=*) ;; | |
10f2d63a VZ |
700 | *) ac_optarg=yes ;; |
701 | esac | |
698dcdb6 | 702 | eval "with_${ac_package}='$ac_optarg'" ;; |
10f2d63a VZ |
703 | |
704 | -without-* | --without-*) | |
698dcdb6 | 705 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
10f2d63a | 706 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
707 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
708 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
709 | fi | |
710 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
711 | eval "with_${ac_package}=no" ;; | |
10f2d63a VZ |
712 | |
713 | --x) | |
714 | # Obsolete; use --with-x. | |
715 | with_x=yes ;; | |
716 | ||
717 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
718 | | --x-incl | --x-inc | --x-in | --x-i) | |
719 | ac_prev=x_includes ;; | |
720 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
721 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
698dcdb6 | 722 | x_includes="$ac_optarg" ;; |
10f2d63a VZ |
723 | |
724 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
725 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
726 | ac_prev=x_libraries ;; | |
727 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
728 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
698dcdb6 | 729 | x_libraries="$ac_optarg" ;; |
10f2d63a | 730 | |
698dcdb6 | 731 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
10f2d63a VZ |
732 | ;; |
733 | ||
734 | *) | |
698dcdb6 VZ |
735 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
736 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
737 | fi | |
738 | if test "x$nonopt" != xNONE; then | |
739 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
740 | fi | |
741 | nonopt="$ac_option" | |
10f2d63a VZ |
742 | ;; |
743 | ||
744 | esac | |
745 | done | |
746 | ||
747 | if test -n "$ac_prev"; then | |
698dcdb6 VZ |
748 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
749 | fi | |
750 | ||
751 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
752 | ||
753 | # File descriptor usage: | |
754 | # 0 standard input | |
755 | # 1 file creation | |
756 | # 2 errors and warnings | |
757 | # 3 some systems may open it to /dev/tty | |
758 | # 4 used on the Kubota Titan | |
759 | # 6 checking for... messages and results | |
760 | # 5 compiler messages saved in config.log | |
761 | if test "$silent" = yes; then | |
762 | exec 6>/dev/null | |
763 | else | |
764 | exec 6>&1 | |
10f2d63a | 765 | fi |
698dcdb6 VZ |
766 | exec 5>./config.log |
767 | ||
768 | echo "\ | |
769 | This file contains any messages produced by compilers while | |
770 | running configure, to aid debugging if configure makes a mistake. | |
771 | " 1>&5 | |
10f2d63a | 772 | |
698dcdb6 VZ |
773 | # Strip out --no-create and --no-recursion so they do not pile up. |
774 | # Also quote any args containing shell metacharacters. | |
775 | ac_configure_args= | |
776 | for ac_arg | |
10f2d63a | 777 | do |
698dcdb6 VZ |
778 | case "$ac_arg" in |
779 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
780 | | --no-cr | --no-c) ;; | |
781 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
782 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
783 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
784 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
785 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
10f2d63a VZ |
786 | esac |
787 | done | |
788 | ||
698dcdb6 VZ |
789 | # NLS nuisances. |
790 | # Only set these to C if already set. These must not be set unconditionally | |
791 | # because not all systems understand e.g. LANG=C (notably SCO). | |
792 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
793 | # Non-C LC_CTYPE values break the ctype check. | |
794 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
795 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
796 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
797 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
10f2d63a | 798 | |
698dcdb6 VZ |
799 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
800 | rm -rf conftest* confdefs.h | |
801 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
802 | echo > confdefs.h | |
10f2d63a | 803 | |
698dcdb6 VZ |
804 | # A filename unique to this package, relative to the directory that |
805 | # configure is in, which we can look for to find out if srcdir is correct. | |
806 | ac_unique_file=wx-config.in | |
10f2d63a VZ |
807 | |
808 | # Find the source files, if location was not specified. | |
809 | if test -z "$srcdir"; then | |
810 | ac_srcdir_defaulted=yes | |
811 | # Try the directory containing this script, then its parent. | |
812 | ac_prog=$0 | |
698dcdb6 | 813 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
10f2d63a VZ |
814 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
815 | srcdir=$ac_confdir | |
816 | if test ! -r $srcdir/$ac_unique_file; then | |
817 | srcdir=.. | |
818 | fi | |
819 | else | |
820 | ac_srcdir_defaulted=no | |
821 | fi | |
822 | if test ! -r $srcdir/$ac_unique_file; then | |
823 | if test "$ac_srcdir_defaulted" = yes; then | |
698dcdb6 | 824 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
10f2d63a | 825 | else |
698dcdb6 | 826 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
10f2d63a VZ |
827 | fi |
828 | fi | |
698dcdb6 | 829 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
10f2d63a VZ |
830 | |
831 | # Prefer explicitly selected file to automatically selected ones. | |
832 | if test -z "$CONFIG_SITE"; then | |
833 | if test "x$prefix" != xNONE; then | |
834 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
835 | else | |
836 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
837 | fi | |
838 | fi | |
839 | for ac_site_file in $CONFIG_SITE; do | |
840 | if test -r "$ac_site_file"; then | |
698dcdb6 | 841 | echo "loading site script $ac_site_file" |
10f2d63a VZ |
842 | . "$ac_site_file" |
843 | fi | |
844 | done | |
845 | ||
846 | if test -r "$cache_file"; then | |
698dcdb6 VZ |
847 | echo "loading cache $cache_file" |
848 | . $cache_file | |
10f2d63a | 849 | else |
698dcdb6 VZ |
850 | echo "creating cache $cache_file" |
851 | > $cache_file | |
10f2d63a VZ |
852 | fi |
853 | ||
854 | ac_ext=c | |
698dcdb6 | 855 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 856 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
857 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
858 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
859 | cross_compiling=$ac_cv_prog_cc_cross | |
860 | ||
861 | ac_exeext= | |
862 | ac_objext=o | |
863 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
864 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
865 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
866 | ac_n= ac_c=' | |
867 | ' ac_t=' ' | |
868 | else | |
869 | ac_n=-n ac_c= ac_t= | |
870 | fi | |
10f2d63a | 871 | else |
698dcdb6 | 872 | ac_n= ac_c='\c' ac_t= |
10f2d63a | 873 | fi |
698dcdb6 VZ |
874 | |
875 | ||
10f2d63a | 876 | |
7c66a493 VZ |
877 | ac_aux_dir= |
878 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
879 | if test -f $ac_dir/install-sh; then | |
880 | ac_aux_dir=$ac_dir | |
881 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
882 | break | |
883 | elif 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 | fi | |
888 | done | |
889 | if test -z "$ac_aux_dir"; then | |
698dcdb6 | 890 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
7c66a493 | 891 | fi |
698dcdb6 VZ |
892 | ac_config_guess=$ac_aux_dir/config.guess |
893 | ac_config_sub=$ac_aux_dir/config.sub | |
894 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
703e0a69 | 895 | |
698dcdb6 VZ |
896 | |
897 | # Do some error checking and defaulting for the host and target type. | |
898 | # The inputs are: | |
899 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
900 | # | |
901 | # The rules are: | |
902 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
903 | # same time. | |
904 | # 2. Host defaults to nonopt. | |
905 | # 3. If nonopt is not specified, then host defaults to the current host, | |
906 | # as determined by config.guess. | |
907 | # 4. Target and build default to nonopt. | |
908 | # 5. If nonopt is not specified, then target and build default to host. | |
7c66a493 VZ |
909 | |
910 | # The aliases save the names the user supplied, while $host etc. | |
911 | # will get canonicalized. | |
698dcdb6 VZ |
912 | case $host---$target---$nonopt in |
913 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
914 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
915 | esac | |
916 | ||
917 | ||
918 | # Make sure we can run config.sub. | |
919 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
920 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
921 | fi | |
922 | ||
923 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
3379ed37 | 924 | echo "configure:925: checking host system type" >&5 |
698dcdb6 VZ |
925 | |
926 | host_alias=$host | |
927 | case "$host_alias" in | |
928 | NONE) | |
929 | case $nonopt in | |
930 | NONE) | |
931 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
932 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
933 | fi ;; | |
934 | *) host_alias=$nonopt ;; | |
935 | esac ;; | |
936 | esac | |
937 | ||
938 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
939 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
940 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
941 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
942 | echo "$ac_t""$host" 1>&6 | |
943 | ||
944 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
3379ed37 | 945 | echo "configure:946: checking target system type" >&5 |
698dcdb6 VZ |
946 | |
947 | target_alias=$target | |
948 | case "$target_alias" in | |
949 | NONE) | |
950 | case $nonopt in | |
951 | NONE) target_alias=$host_alias ;; | |
952 | *) target_alias=$nonopt ;; | |
953 | esac ;; | |
954 | esac | |
955 | ||
956 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
957 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
958 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
959 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
960 | echo "$ac_t""$target" 1>&6 | |
961 | ||
962 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
3379ed37 | 963 | echo "configure:964: checking build system type" >&5 |
698dcdb6 VZ |
964 | |
965 | build_alias=$build | |
966 | case "$build_alias" in | |
967 | NONE) | |
968 | case $nonopt in | |
969 | NONE) build_alias=$host_alias ;; | |
970 | *) build_alias=$nonopt ;; | |
971 | esac ;; | |
972 | esac | |
973 | ||
974 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
975 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
976 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
977 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
978 | echo "$ac_t""$build" 1>&6 | |
979 | ||
980 | test "$host_alias" != "$target_alias" && | |
7c66a493 VZ |
981 | test "$program_prefix$program_suffix$program_transform_name" = \ |
982 | NONENONEs,x,x, && | |
983 | program_prefix=${target_alias}- | |
984 | ||
698dcdb6 VZ |
985 | |
986 | ||
10f2d63a | 987 | WX_MAJOR_VERSION_NUMBER=2 |
37d403aa | 988 | WX_MINOR_VERSION_NUMBER=3 |
6c01ec02 | 989 | WX_RELEASE_NUMBER=2 |
10f2d63a | 990 | |
10f2d63a | 991 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER |
10f2d63a | 992 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER |
6426998c | 993 | |
6c01ec02 | 994 | WX_CURRENT=1 |
6426998c RL |
995 | WX_REVISION=0 |
996 | WX_AGE=0 | |
997 | ||
698dcdb6 VZ |
998 | |
999 | ||
10f2d63a VZ |
1000 | USE_UNIX=1 |
1001 | USE_WIN32=0 | |
b12915c1 | 1002 | USE_BEOS=0 |
1216f52d | 1003 | USE_MAC=0 |
b12915c1 | 1004 | |
10f2d63a VZ |
1005 | USE_LINUX= |
1006 | USE_SGI= | |
1007 | USE_HPUX= | |
1008 | USE_SYSV= | |
1009 | USE_SVR4= | |
1010 | USE_AIX= | |
1011 | USE_SUN= | |
1012 | USE_SOLARIS= | |
1013 | USE_SUNOS= | |
1014 | USE_ALPHA= | |
1015 | USE_OSF= | |
1016 | USE_BSD= | |
1017 | USE_FREEBSD= | |
95c8801c | 1018 | USE_OPENBSD= |
f6bcfd97 | 1019 | USE_NETBSD= |
10f2d63a VZ |
1020 | USE_VMS= |
1021 | USE_ULTRIX= | |
1022 | USE_CYGWIN= | |
1023 | USE_MINGW= | |
1024 | USE_DATA_GENERAL= | |
1025 | ||
ab9b9eab VZ |
1026 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 |
1027 | ||
1e6feb95 | 1028 | ALL_TOOLKITS="CYGWIN GTK MAC MGL MINGW MOTIF PM WINE" |
10f2d63a VZ |
1029 | |
1030 | DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1031 | DEFAULT_wxUSE_MAC=0 |
1032 | DEFAULT_wxUSE_MGL=0 | |
10f2d63a VZ |
1033 | DEFAULT_wxUSE_MOTIF=0 |
1034 | DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1035 | DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1036 | DEFAULT_wxUSE_WINE=0 |
10f2d63a VZ |
1037 | |
1038 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1039 | DEFAULT_DEFAULT_wxUSE_MAC=0 |
1040 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
10f2d63a VZ |
1041 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 |
1042 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1043 | DEFAULT_DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1044 | DEFAULT_DEFAULT_wxUSE_WINE=0 |
10f2d63a | 1045 | |
d6a55c4b VZ |
1046 | PROGRAM_EXT= |
1047 | ||
10f2d63a VZ |
1048 | case "${host}" in |
1049 | *-hp-hpux* ) | |
1050 | USE_HPUX=1 | |
1051 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1052 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
698dcdb6 | 1053 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1054 | #define __HPUX__ 1 |
1055 | EOF | |
1056 | ||
1057 | ;; | |
1058 | *-*-linux* ) | |
1059 | USE_LINUX=1 | |
698dcdb6 | 1060 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1061 | #define __LINUX__ 1 |
1062 | EOF | |
1063 | ||
1064 | TMP=`uname -m` | |
1065 | if test "x$TMP" = "xalpha"; then | |
1066 | USE_ALPHA=1 | |
698dcdb6 | 1067 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1068 | #define __ALPHA__ 1 |
1069 | EOF | |
1070 | ||
1071 | fi | |
1072 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1073 | ;; | |
1074 | *-*-irix5* | *-*-irix6* ) | |
1075 | USE_SGI=1 | |
1076 | USE_SVR4=1 | |
698dcdb6 | 1077 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1078 | #define __SGI__ 1 |
1079 | EOF | |
1080 | ||
698dcdb6 | 1081 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1082 | #define __SVR4__ 1 |
1083 | EOF | |
1084 | ||
1085 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1086 | ;; | |
1087 | *-*-solaris2* ) | |
1088 | USE_SUN=1 | |
1089 | USE_SOLARIS=1 | |
1090 | USE_SVR4=1 | |
698dcdb6 | 1091 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1092 | #define __SUN__ 1 |
1093 | EOF | |
1094 | ||
698dcdb6 | 1095 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1096 | #define __SOLARIS__ 1 |
1097 | EOF | |
1098 | ||
698dcdb6 | 1099 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1100 | #define __SVR4__ 1 |
1101 | EOF | |
1102 | ||
1103 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1104 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1105 | ;; |
1106 | *-*-sunos4* ) | |
1107 | USE_SUN=1 | |
1108 | USE_SUNOS=1 | |
1109 | USE_BSD=1 | |
698dcdb6 | 1110 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1111 | #define __SUN__ 1 |
1112 | EOF | |
1113 | ||
698dcdb6 | 1114 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1115 | #define __SUNOS__ 1 |
1116 | EOF | |
1117 | ||
698dcdb6 | 1118 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1119 | #define __BSD__ 1 |
1120 | EOF | |
1121 | ||
1122 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1123 | ;; | |
f6bcfd97 | 1124 | *-*-freebsd*) |
10f2d63a VZ |
1125 | USE_BSD=1 |
1126 | USE_FREEBSD=1 | |
698dcdb6 | 1127 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1128 | #define __FREEBSD__ 1 |
1129 | EOF | |
1130 | ||
698dcdb6 | 1131 | cat >> confdefs.h <<\EOF |
10f2d63a | 1132 | #define __BSD__ 1 |
95c8801c VS |
1133 | EOF |
1134 | ||
1135 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1136 | ;; | |
1137 | *-*-openbsd*) | |
1138 | USE_BSD=1 | |
1139 | USE_OPENBSD=1 | |
698dcdb6 | 1140 | cat >> confdefs.h <<\EOF |
95c8801c VS |
1141 | #define __FREEBSD__ 1 |
1142 | EOF | |
1143 | ||
698dcdb6 | 1144 | cat >> confdefs.h <<\EOF |
95c8801c | 1145 | #define __OPENBSD__ 1 |
f6bcfd97 BP |
1146 | EOF |
1147 | ||
1148 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1149 | ;; | |
1150 | *-*-netbsd*) | |
1151 | USE_BSD=1 | |
1152 | USE_NETBSD=1 | |
698dcdb6 | 1153 | cat >> confdefs.h <<\EOF |
f6bcfd97 BP |
1154 | #define __FREEBSD__ 1 |
1155 | EOF | |
1156 | ||
698dcdb6 | 1157 | cat >> confdefs.h <<\EOF |
f6bcfd97 | 1158 | #define __NETBSD__ 1 |
10f2d63a VZ |
1159 | EOF |
1160 | ||
1161 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1162 | ;; | |
1163 | *-*-osf* ) | |
1164 | USE_ALPHA=1 | |
1165 | USE_OSF=1 | |
698dcdb6 | 1166 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1167 | #define __ALPHA__ 1 |
1168 | EOF | |
1169 | ||
698dcdb6 | 1170 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1171 | #define __OSF__ 1 |
1172 | EOF | |
1173 | ||
1174 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
f6bcfd97 | 1175 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1176 | ;; |
1177 | *-*-dgux5* ) | |
1178 | USE_ALPHA=1 | |
1179 | USE_SVR4=1 | |
698dcdb6 | 1180 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1181 | #define __ALPHA__ 1 |
1182 | EOF | |
1183 | ||
698dcdb6 | 1184 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1185 | #define __SVR4__ 1 |
1186 | EOF | |
1187 | ||
1188 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1189 | ;; | |
1190 | *-*-sysv5* ) | |
1191 | USE_SYSV=1 | |
1192 | USE_SVR4=1 | |
698dcdb6 | 1193 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1194 | #define __SYSV__ 1 |
1195 | EOF | |
1196 | ||
698dcdb6 | 1197 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1198 | #define __SVR4__ 1 |
1199 | EOF | |
1200 | ||
1201 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1202 | ;; | |
1203 | *-*-aix* ) | |
1204 | USE_AIX=1 | |
1205 | USE_SYSV=1 | |
1206 | USE_SVR4=1 | |
698dcdb6 | 1207 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1208 | #define __AIX__ 1 |
1209 | EOF | |
1210 | ||
698dcdb6 | 1211 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1212 | #define __SYSV__ 1 |
1213 | EOF | |
1214 | ||
698dcdb6 | 1215 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1216 | #define __SVR4__ 1 |
1217 | EOF | |
1218 | ||
1219 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1220 | ;; | |
1221 | ||
1c8183e2 | 1222 | *-*-cygwin* | *-*-mingw32* ) |
10f2d63a VZ |
1223 | USE_UNIX=0 |
1224 | USE_WIN32=1 | |
698dcdb6 | 1225 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1226 | #define __WIN32__ 1 |
1227 | EOF | |
1228 | ||
698dcdb6 | 1229 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1230 | #define __WIN95__ 1 |
1231 | EOF | |
1232 | ||
698dcdb6 | 1233 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1234 | #define __WINDOWS__ 1 |
1235 | EOF | |
1236 | ||
698dcdb6 | 1237 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1238 | #define __GNUWIN32__ 1 |
1239 | EOF | |
1240 | ||
698dcdb6 | 1241 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1242 | #define STRICT 1 |
1243 | EOF | |
1244 | ||
698dcdb6 | 1245 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1246 | #define WINVER 0x0400 |
1247 | EOF | |
1248 | ||
cf27ef00 | 1249 | PROGRAM_EXT=".exe" |
10f2d63a VZ |
1250 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
1251 | ;; | |
1252 | ||
1253 | *-pc-os2_emx ) | |
698dcdb6 | 1254 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1255 | #define __EMX__ 1 |
1256 | EOF | |
1257 | ||
cf27ef00 | 1258 | PROGRAM_EXT=".exe" |
e07802fc | 1259 | DEFAULT_DEFAULT_wxUSE_PM=1 |
10f2d63a VZ |
1260 | ;; |
1261 | ||
b4085ce6 GD |
1262 | *-*-darwin* ) |
1263 | USE_BSD=1 | |
1264 | USE_MAC=1 | |
698dcdb6 | 1265 | cat >> confdefs.h <<\EOF |
b4085ce6 GD |
1266 | #define __MAC__ 1 |
1267 | EOF | |
1268 | ||
698dcdb6 | 1269 | cat >> confdefs.h <<\EOF |
b4085ce6 GD |
1270 | #define __BSD__ 1 |
1271 | EOF | |
1272 | ||
698dcdb6 | 1273 | cat >> confdefs.h <<\EOF |
b4085ce6 GD |
1274 | #define __UNIX__ 1 |
1275 | EOF | |
1276 | ||
1277 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1278 | ;; | |
1279 | ||
b12915c1 VZ |
1280 | *-*-beos* ) |
1281 | USE_BEOS=1 | |
698dcdb6 | 1282 | cat >> confdefs.h <<\EOF |
b12915c1 VZ |
1283 | #define __BEOS__ 1 |
1284 | EOF | |
1285 | ||
1286 | ;; | |
1287 | ||
10f2d63a | 1288 | *) |
698dcdb6 | 1289 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } |
10f2d63a VZ |
1290 | esac |
1291 | ||
1292 | if test "$USE_UNIX" = 1 ; then | |
b12915c1 | 1293 | wxUSE_UNIX=yes |
698dcdb6 | 1294 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1295 | #define __UNIX__ 1 |
1296 | EOF | |
1297 | ||
698dcdb6 | 1298 | |
b12915c1 VZ |
1299 | SRC_SUBDIRS="$SRC_SUBDIRS unix" |
1300 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix" | |
1301 | fi | |
1302 | ||
1303 | if test "$USE_BEOS" = 1; then | |
1304 | SRC_SUBDIRS="$SRC_SUBDIRS be" | |
1305 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be" | |
10f2d63a VZ |
1306 | fi |
1307 | ||
1308 | if test "$USE_LINUX" = 1; then | |
698dcdb6 | 1309 | echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6 |
3379ed37 | 1310 | echo "configure:1311: checking for gettext in -lc" >&5 |
698dcdb6 VZ |
1311 | ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'` |
1312 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1313 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 1314 | else |
698dcdb6 VZ |
1315 | ac_save_LIBS="$LIBS" |
1316 | LIBS="-lc $LIBS" | |
1317 | cat > conftest.$ac_ext <<EOF | |
3379ed37 | 1318 | #line 1319 "configure" |
698dcdb6 VZ |
1319 | #include "confdefs.h" |
1320 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1321 | /* We use char because int might match the return type of a gcc2 | |
1322 | builtin and then its argument prototype would still apply. */ | |
1323 | char gettext(); | |
10f2d63a | 1324 | |
698dcdb6 VZ |
1325 | int main() { |
1326 | gettext() | |
1327 | ; return 0; } | |
1328 | EOF | |
3379ed37 | 1329 | if { (eval echo configure:1330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
1330 | rm -rf conftest* |
1331 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 1332 | else |
698dcdb6 VZ |
1333 | echo "configure: failed program was:" >&5 |
1334 | cat conftest.$ac_ext >&5 | |
1335 | rm -rf conftest* | |
1336 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 1337 | fi |
698dcdb6 VZ |
1338 | rm -f conftest* |
1339 | LIBS="$ac_save_LIBS" | |
10f2d63a VZ |
1340 | |
1341 | fi | |
698dcdb6 VZ |
1342 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
1343 | echo "$ac_t""yes" 1>&6 | |
1344 | cat >> confdefs.h <<\EOF | |
1345 | #define wxHAVE_GLIBC2 1 | |
1346 | EOF | |
10f2d63a VZ |
1347 | |
1348 | else | |
698dcdb6 | 1349 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
1350 | fi |
1351 | ||
1352 | fi | |
1353 | ||
1e487827 | 1354 | |
1e487827 | 1355 | |
6232543b | 1356 | |
10f2d63a VZ |
1357 | wx_arg_cache_file="configarg.cache" |
1358 | echo "loading argument cache $wx_arg_cache_file" | |
1359 | rm -f ${wx_arg_cache_file}.tmp | |
1360 | touch ${wx_arg_cache_file}.tmp | |
1361 | touch ${wx_arg_cache_file} | |
698dcdb6 | 1362 | |
10f2d63a VZ |
1363 | |
1364 | DEBUG_CONFIGURE=0 | |
1365 | if test $DEBUG_CONFIGURE = 1; then | |
1e6feb95 VZ |
1366 | DEFAULT_wxUSE_UNIVERSAL=no |
1367 | ||
10f2d63a VZ |
1368 | DEFAULT_wxUSE_THREADS=yes |
1369 | ||
1370 | DEFAULT_wxUSE_SHARED=yes | |
00cf1208 | 1371 | DEFAULT_wxUSE_BURNT_NAME=no |
1e6feb95 | 1372 | DEFAULT_wxUSE_OPTIMISE=no |
10f2d63a VZ |
1373 | DEFAULT_wxUSE_PROFILE=no |
1374 | DEFAULT_wxUSE_NO_DEPS=no | |
1375 | DEFAULT_wxUSE_NO_RTTI=no | |
1376 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
1377 | DEFAULT_wxUSE_PERMISSIVE=no | |
1378 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1379 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1380 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1381 | DEFAULT_wxUSE_MEM_TRACING=no | |
1382 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1383 | DEFAULT_wxUSE_DMALLOC=no | |
1384 | DEFAULT_wxUSE_APPLE_IEEE=no | |
1385 | ||
1386 | DEFAULT_wxUSE_LOG=yes | |
1e6feb95 VZ |
1387 | DEFAULT_wxUSE_LOGWINDOW=no |
1388 | DEFAULT_wxUSE_LOGGUI=no | |
10f2d63a VZ |
1389 | |
1390 | DEFAULT_wxUSE_GUI=yes | |
1e6feb95 | 1391 | DEFAULT_wxUSE_CONTROLS=no |
10f2d63a VZ |
1392 | |
1393 | DEFAULT_wxUSE_ZLIB=no | |
1394 | DEFAULT_wxUSE_LIBPNG=no | |
1395 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 1396 | DEFAULT_wxUSE_LIBTIFF=no |
10f2d63a | 1397 | DEFAULT_wxUSE_ODBC=no |
3fed1840 | 1398 | DEFAULT_wxUSE_FREETYPE=no |
bdad4e7e | 1399 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1400 | |
eb4efbdc | 1401 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no |
4f3c5f06 | 1402 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
10f2d63a | 1403 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1404 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
1405 | DEFAULT_wxUSE_DATETIME=no | |
1406 | DEFAULT_wxUSE_TIMEDATE=no | |
1407 | DEFAULT_wxUSE_TIMER=no | |
1408 | DEFAULT_wxUSE_STOPWATCH=no | |
10f2d63a | 1409 | DEFAULT_wxUSE_FILE=no |
1e6feb95 | 1410 | DEFAULT_wxUSE_FFILE=no |
10f2d63a | 1411 | DEFAULT_wxUSE_TEXTFILE=no |
10f2d63a VZ |
1412 | DEFAULT_wxUSE_WAVE=no |
1413 | DEFAULT_wxUSE_INTL=no | |
1414 | DEFAULT_wxUSE_CONFIG=no | |
1e6feb95 | 1415 | DEFAULT_wxUSE_FONTMAP=no |
10f2d63a VZ |
1416 | DEFAULT_wxUSE_STREAMS=no |
1417 | DEFAULT_wxUSE_SOCKETS=no | |
1418 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
1419 | DEFAULT_wxUSE_SERIAL=no | |
1420 | DEFAULT_wxUSE_JOYSTICK=no | |
1421 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
1422 | DEFAULT_wxUSE_LONGLONG=no | |
e8f65ba6 | 1423 | DEFAULT_wxUSE_GEOMETRY=no |
10f2d63a VZ |
1424 | |
1425 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1426 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1427 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1428 | ||
1429 | DEFAULT_wxUSE_X_RESOURCES=no | |
1430 | DEFAULT_wxUSE_CLIPBOARD=no | |
1431 | DEFAULT_wxUSE_TOOLTIPS=no | |
1432 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
24fd6d87 | 1433 | DEFAULT_wxUSE_DRAGIMAGE=no |
10f2d63a VZ |
1434 | DEFAULT_wxUSE_SPLINES=no |
1435 | ||
1436 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1437 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1438 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1439 | ||
1440 | DEFAULT_wxUSE_PROLOGIO=no | |
1441 | DEFAULT_wxUSE_RESOURCES=no | |
1442 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1443 | DEFAULT_wxUSE_IPC=no | |
1444 | DEFAULT_wxUSE_HELP=no | |
3379ed37 | 1445 | DEFAULT_wxUSE_WXHTML_HELP=no |
10f2d63a VZ |
1446 | DEFAULT_wxUSE_WXTREE=no |
1447 | DEFAULT_wxUSE_METAFILE=no | |
1e6feb95 | 1448 | DEFAULT_wxUSE_MIMETYPE=no |
10f2d63a VZ |
1449 | |
1450 | DEFAULT_wxUSE_COMMONDLGS=no | |
1e6feb95 VZ |
1451 | DEFAULT_wxUSE_CHOICEDLG=no |
1452 | DEFAULT_wxUSE_COLOURDLG=no | |
10f2d63a | 1453 | DEFAULT_wxUSE_DIRDLG=no |
1e6feb95 VZ |
1454 | DEFAULT_wxUSE_FILEDLG=no |
1455 | DEFAULT_wxUSE_FONTDLG=no | |
1456 | DEFAULT_wxUSE_MSGDLG=no | |
1457 | DEFAULT_wxUSE_NUMBERDLG=no | |
10f2d63a VZ |
1458 | DEFAULT_wxUSE_TEXTDLG=no |
1459 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
1460 | DEFAULT_wxUSE_PROGRESSDLG=no | |
b1f5d087 VZ |
1461 | DEFAULT_wxUSE_WIZARDDLG=no |
1462 | ||
1e6feb95 | 1463 | DEFAULT_wxUSE_MENUS=no |
10f2d63a VZ |
1464 | DEFAULT_wxUSE_MINIFRAME=no |
1465 | DEFAULT_wxUSE_HTML=no | |
24528b0c | 1466 | DEFAULT_wxUSE_FILESYSTEM=no |
10f2d63a VZ |
1467 | DEFAULT_wxUSE_FS_INET=no |
1468 | DEFAULT_wxUSE_FS_ZIP=no | |
1469 | DEFAULT_wxUSE_BUSYINFO=no | |
1470 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1e6feb95 | 1471 | DEFAULT_wxUSE_VALIDATORS=no |
10f2d63a VZ |
1472 | |
1473 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 | 1474 | DEFAULT_wxUSE_BUTTON=no |
10f2d63a | 1475 | DEFAULT_wxUSE_BMPBUTTON=no |
1e6feb95 VZ |
1476 | DEFAULT_wxUSE_CALCTRL=no |
1477 | DEFAULT_wxUSE_CARET=no | |
10f2d63a VZ |
1478 | DEFAULT_wxUSE_CHECKBOX=no |
1479 | DEFAULT_wxUSE_CHECKLST=no | |
1e6feb95 | 1480 | DEFAULT_wxUSE_CHOICE=no |
10f2d63a VZ |
1481 | DEFAULT_wxUSE_COMBOBOX=no |
1482 | DEFAULT_wxUSE_GAUGE=no | |
1483 | DEFAULT_wxUSE_GRID=no | |
1484 | DEFAULT_wxUSE_NEW_GRID=no | |
1485 | DEFAULT_wxUSE_IMAGLIST=no | |
1486 | DEFAULT_wxUSE_LISTBOX=no | |
1487 | DEFAULT_wxUSE_LISTCTRL=no | |
1488 | DEFAULT_wxUSE_NOTEBOOK=no | |
1489 | DEFAULT_wxUSE_RADIOBOX=no | |
1490 | DEFAULT_wxUSE_RADIOBTN=no | |
1491 | DEFAULT_wxUSE_SASH=no | |
1492 | DEFAULT_wxUSE_SCROLLBAR=no | |
1493 | DEFAULT_wxUSE_SLIDER=no | |
1494 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 1495 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
1496 | DEFAULT_wxUSE_SPLITTER=no |
1497 | DEFAULT_wxUSE_STATBMP=no | |
1498 | DEFAULT_wxUSE_STATBOX=no | |
1499 | DEFAULT_wxUSE_STATLINE=no | |
1e6feb95 | 1500 | DEFAULT_wxUSE_STATTEXT=no |
10f2d63a VZ |
1501 | DEFAULT_wxUSE_STATUSBAR=yes |
1502 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1503 | DEFAULT_wxUSE_TEXTCTRL=no |
1db8dc4a | 1504 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 1505 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
1506 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
1507 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
1508 | DEFAULT_wxUSE_TREECTRL=no |
1509 | ||
1510 | DEFAULT_wxUSE_UNICODE=no | |
1511 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1512 | ||
0046ff7c | 1513 | DEFAULT_wxUSE_IMAGE=no |
10f2d63a VZ |
1514 | DEFAULT_wxUSE_GIF=no |
1515 | DEFAULT_wxUSE_PCX=no | |
1516 | DEFAULT_wxUSE_PNM=no | |
0046ff7c | 1517 | DEFAULT_wxUSE_XPM=no |
10f2d63a | 1518 | else |
1e6feb95 VZ |
1519 | DEFAULT_wxUSE_UNIVERSAL=no |
1520 | ||
10f2d63a VZ |
1521 | DEFAULT_wxUSE_THREADS=yes |
1522 | ||
1523 | DEFAULT_wxUSE_SHARED=yes | |
00cf1208 | 1524 | DEFAULT_wxUSE_BURNT_NAME=no |
10f2d63a VZ |
1525 | DEFAULT_wxUSE_OPTIMISE=yes |
1526 | DEFAULT_wxUSE_PROFILE=no | |
1527 | DEFAULT_wxUSE_NO_DEPS=no | |
1528 | DEFAULT_wxUSE_NO_RTTI=no | |
1529 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
1530 | DEFAULT_wxUSE_PERMISSIVE=no | |
1531 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1532 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1533 | DEFAULT_wxUSE_DEBUG_GDB=no | |
1534 | DEFAULT_wxUSE_MEM_TRACING=no | |
1535 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1536 | DEFAULT_wxUSE_DMALLOC=no | |
1537 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
1538 | ||
1539 | DEFAULT_wxUSE_LOG=yes | |
d73be714 VZ |
1540 | DEFAULT_wxUSE_LOGWINDOW=yes |
1541 | DEFAULT_wxUSE_LOGGUI=yes | |
10f2d63a VZ |
1542 | |
1543 | DEFAULT_wxUSE_GUI=yes | |
1544 | ||
1545 | DEFAULT_wxUSE_ZLIB=yes | |
1546 | DEFAULT_wxUSE_LIBPNG=yes | |
1547 | DEFAULT_wxUSE_LIBJPEG=yes | |
b47c832e | 1548 | DEFAULT_wxUSE_LIBTIFF=yes |
16b52fa1 | 1549 | DEFAULT_wxUSE_ODBC=no |
3fed1840 | 1550 | DEFAULT_wxUSE_FREETYPE=no |
bdad4e7e | 1551 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1552 | |
eb4efbdc | 1553 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes |
4f3c5f06 | 1554 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
10f2d63a | 1555 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1556 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
1557 | DEFAULT_wxUSE_DATETIME=yes | |
1558 | DEFAULT_wxUSE_TIMEDATE=no | |
1559 | DEFAULT_wxUSE_TIMER=yes | |
1560 | DEFAULT_wxUSE_STOPWATCH=yes | |
10f2d63a | 1561 | DEFAULT_wxUSE_FILE=yes |
1e6feb95 | 1562 | DEFAULT_wxUSE_FFILE=yes |
10f2d63a | 1563 | DEFAULT_wxUSE_TEXTFILE=yes |
10f2d63a VZ |
1564 | DEFAULT_wxUSE_WAVE=no |
1565 | DEFAULT_wxUSE_INTL=yes | |
1566 | DEFAULT_wxUSE_CONFIG=yes | |
1e6feb95 | 1567 | DEFAULT_wxUSE_FONTMAP=yes |
10f2d63a VZ |
1568 | DEFAULT_wxUSE_STREAMS=yes |
1569 | DEFAULT_wxUSE_SOCKETS=yes | |
1570 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
1571 | DEFAULT_wxUSE_SERIAL=yes | |
1572 | DEFAULT_wxUSE_JOYSTICK=yes | |
1573 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
b685cd9b | 1574 | DEFAULT_wxUSE_LONGLONG=yes |
e8f65ba6 | 1575 | DEFAULT_wxUSE_GEOMETRY=yes |
10f2d63a VZ |
1576 | |
1577 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
1578 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
1579 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
1580 | ||
1581 | DEFAULT_wxUSE_X_RESOURCES=no | |
1582 | DEFAULT_wxUSE_CLIPBOARD=yes | |
1583 | DEFAULT_wxUSE_TOOLTIPS=yes | |
1584 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
24fd6d87 | 1585 | DEFAULT_wxUSE_DRAGIMAGE=yes |
10f2d63a VZ |
1586 | DEFAULT_wxUSE_SPLINES=yes |
1587 | ||
1588 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
1589 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
1590 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
1591 | ||
1592 | DEFAULT_wxUSE_PROLOGIO=yes | |
1593 | DEFAULT_wxUSE_RESOURCES=yes | |
1594 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
1595 | DEFAULT_wxUSE_IPC=yes | |
1596 | DEFAULT_wxUSE_HELP=yes | |
3379ed37 | 1597 | DEFAULT_wxUSE_WXHTML_HELP=yes |
10f2d63a VZ |
1598 | DEFAULT_wxUSE_WXTREE=yes |
1599 | DEFAULT_wxUSE_METAFILE=yes | |
1e6feb95 | 1600 | DEFAULT_wxUSE_MIMETYPE=yes |
10f2d63a VZ |
1601 | |
1602 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1e6feb95 VZ |
1603 | DEFAULT_wxUSE_CHOICEDLG=yes |
1604 | DEFAULT_wxUSE_COLOURDLG=yes | |
10f2d63a | 1605 | DEFAULT_wxUSE_DIRDLG=yes |
1e6feb95 VZ |
1606 | DEFAULT_wxUSE_FILEDLG=yes |
1607 | DEFAULT_wxUSE_FONTDLG=yes | |
1608 | DEFAULT_wxUSE_MSGDLG=yes | |
1609 | DEFAULT_wxUSE_NUMBERDLG=yes | |
10f2d63a VZ |
1610 | DEFAULT_wxUSE_TEXTDLG=yes |
1611 | DEFAULT_wxUSE_STARTUP_TIPS=yes | |
1612 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
f33f19dd VZ |
1613 | DEFAULT_wxUSE_WIZARDDLG=yes |
1614 | ||
1e6feb95 | 1615 | DEFAULT_wxUSE_MENUS=yes |
10f2d63a VZ |
1616 | DEFAULT_wxUSE_MINIFRAME=yes |
1617 | DEFAULT_wxUSE_HTML=yes | |
24528b0c | 1618 | DEFAULT_wxUSE_FILESYSTEM=yes |
10f2d63a VZ |
1619 | DEFAULT_wxUSE_FS_INET=yes |
1620 | DEFAULT_wxUSE_FS_ZIP=yes | |
1621 | DEFAULT_wxUSE_BUSYINFO=yes | |
1622 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
1623 | DEFAULT_wxUSE_VALIDATORS=yes | |
1624 | ||
1625 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 | 1626 | DEFAULT_wxUSE_BUTTON=yes |
10f2d63a | 1627 | DEFAULT_wxUSE_BMPBUTTON=yes |
1e6feb95 VZ |
1628 | DEFAULT_wxUSE_CALCTRL=yes |
1629 | DEFAULT_wxUSE_CARET=yes | |
10f2d63a VZ |
1630 | DEFAULT_wxUSE_CHECKBOX=yes |
1631 | DEFAULT_wxUSE_CHECKLST=yes | |
1632 | DEFAULT_wxUSE_CHOICE=yes | |
1633 | DEFAULT_wxUSE_COMBOBOX=yes | |
1634 | DEFAULT_wxUSE_GAUGE=yes | |
1635 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 1636 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
1637 | DEFAULT_wxUSE_IMAGLIST=yes |
1638 | DEFAULT_wxUSE_LISTBOX=yes | |
1639 | DEFAULT_wxUSE_LISTCTRL=yes | |
1640 | DEFAULT_wxUSE_NOTEBOOK=yes | |
1641 | DEFAULT_wxUSE_RADIOBOX=yes | |
1642 | DEFAULT_wxUSE_RADIOBTN=yes | |
1643 | DEFAULT_wxUSE_SASH=yes | |
1644 | DEFAULT_wxUSE_SCROLLBAR=yes | |
1645 | DEFAULT_wxUSE_SLIDER=yes | |
1646 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 1647 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
1648 | DEFAULT_wxUSE_SPLITTER=yes |
1649 | DEFAULT_wxUSE_STATBMP=yes | |
1650 | DEFAULT_wxUSE_STATBOX=yes | |
1651 | DEFAULT_wxUSE_STATLINE=yes | |
1e6feb95 | 1652 | DEFAULT_wxUSE_STATTEXT=yes |
10f2d63a VZ |
1653 | DEFAULT_wxUSE_STATUSBAR=yes |
1654 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1655 | DEFAULT_wxUSE_TEXTCTRL=yes |
1db8dc4a | 1656 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 1657 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
1658 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
1659 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
1660 | DEFAULT_wxUSE_TREECTRL=yes |
1661 | ||
1662 | DEFAULT_wxUSE_UNICODE=no | |
1663 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1664 | ||
0046ff7c | 1665 | DEFAULT_wxUSE_IMAGE=yes |
10f2d63a VZ |
1666 | DEFAULT_wxUSE_GIF=yes |
1667 | DEFAULT_wxUSE_PCX=yes | |
1668 | DEFAULT_wxUSE_PNM=yes | |
0046ff7c | 1669 | DEFAULT_wxUSE_XPM=yes |
10f2d63a VZ |
1670 | fi |
1671 | ||
698dcdb6 VZ |
1672 | |
1673 | ||
10f2d63a VZ |
1674 | for toolkit in `echo $ALL_TOOLKITS`; do |
1675 | LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}` | |
1676 | if test "x$LINE" != x ; then | |
1677 | has_toolkit_in_cache=1 | |
1678 | eval "DEFAULT_$LINE" | |
1679 | eval "CACHE_$toolkit=1" | |
1680 | fi | |
1681 | done | |
1682 | ||
698dcdb6 VZ |
1683 | |
1684 | ||
1685 | echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6 | |
3379ed37 | 1686 | echo "configure:1687: checking for --enable-gui" >&5 |
10f2d63a VZ |
1687 | no_cache=0 |
1688 | # Check whether --enable-gui or --disable-gui was given. | |
1689 | if test "${enable_gui+set}" = set; then | |
1690 | enableval="$enable_gui" | |
698dcdb6 | 1691 | |
10f2d63a VZ |
1692 | if test "$enableval" = yes; then |
1693 | ac_cv_use_gui='wxUSE_GUI=yes' | |
1694 | else | |
1695 | ac_cv_use_gui='wxUSE_GUI=no' | |
1696 | fi | |
698dcdb6 | 1697 | |
10f2d63a | 1698 | else |
698dcdb6 | 1699 | |
10f2d63a VZ |
1700 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` |
1701 | if test "x$LINE" != x ; then | |
1702 | eval "DEFAULT_$LINE" | |
1703 | else | |
1704 | no_cache=1 | |
1705 | fi | |
1706 | ||
1707 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
698dcdb6 VZ |
1708 | |
1709 | fi | |
10f2d63a VZ |
1710 | |
1711 | ||
1712 | eval "$ac_cv_use_gui" | |
1713 | if test "$no_cache" != 1; then | |
1714 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
1715 | fi | |
1716 | ||
1717 | if test "$wxUSE_GUI" = yes; then | |
698dcdb6 | 1718 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 1719 | else |
698dcdb6 | 1720 | echo "$ac_t""no" 1>&6 |
10f2d63a | 1721 | fi |
698dcdb6 | 1722 | |
10f2d63a | 1723 | |
b12915c1 | 1724 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a | 1725 | |
1e6feb95 VZ |
1726 | |
1727 | echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6 | |
3379ed37 | 1728 | echo "configure:1729: checking for --enable-universal" >&5 |
1e6feb95 VZ |
1729 | no_cache=0 |
1730 | # Check whether --enable-universal or --disable-universal was given. | |
1731 | if test "${enable_universal+set}" = set; then | |
1732 | enableval="$enable_universal" | |
1733 | ||
1734 | if test "$enableval" = yes; then | |
1735 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
1736 | else | |
1737 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
1738 | fi | |
1739 | ||
1740 | else | |
1741 | ||
1742 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
1743 | if test "x$LINE" != x ; then | |
1744 | eval "DEFAULT_$LINE" | |
1745 | else | |
1746 | no_cache=1 | |
1747 | fi | |
1748 | ||
1749 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
1750 | ||
1751 | fi | |
1752 | ||
1753 | ||
1754 | eval "$ac_cv_use_universal" | |
1755 | if test "$no_cache" != 1; then | |
1756 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
1757 | fi | |
1758 | ||
1759 | if test "$wxUSE_UNIVERSAL" = yes; then | |
1760 | echo "$ac_t""yes" 1>&6 | |
1761 | else | |
1762 | echo "$ac_t""no" 1>&6 | |
1763 | fi | |
1764 | ||
10f2d63a VZ |
1765 | # Check whether --with-gtk or --without-gtk was given. |
1766 | if test "${with_gtk+set}" = set; then | |
1767 | withval="$with_gtk" | |
1768 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1769 | fi |
10f2d63a VZ |
1770 | |
1771 | # Check whether --with-motif or --without-motif was given. | |
1772 | if test "${with_motif+set}" = set; then | |
1773 | withval="$with_motif" | |
1774 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1775 | fi |
10f2d63a | 1776 | |
b4085ce6 GD |
1777 | # Check whether --with-mac or --without-mac was given. |
1778 | if test "${with_mac+set}" = set; then | |
1779 | withval="$with_mac" | |
1780 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
698dcdb6 | 1781 | fi |
b4085ce6 | 1782 | |
10f2d63a VZ |
1783 | # Check whether --with-wine or --without-wine was given. |
1784 | if test "${with_wine+set}" = set; then | |
1785 | withval="$with_wine" | |
1786 | wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1787 | fi |
10f2d63a VZ |
1788 | |
1789 | # Check whether --with-cygwin or --without-cygwin was given. | |
1790 | if test "${with_cygwin+set}" = set; then | |
1791 | withval="$with_cygwin" | |
1792 | wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1793 | fi |
10f2d63a VZ |
1794 | |
1795 | # Check whether --with-mingw or --without-mingw was given. | |
1796 | if test "${with_mingw+set}" = set; then | |
1797 | withval="$with_mingw" | |
1798 | wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1799 | fi |
10f2d63a | 1800 | |
e07802fc VZ |
1801 | # Check whether --with-pm or --without-pm was given. |
1802 | if test "${with_pm+set}" = set; then | |
1803 | withval="$with_pm" | |
1804 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
698dcdb6 VZ |
1805 | fi |
1806 | ||
1e6feb95 VZ |
1807 | # Check whether --with-mgl or --without-mgl was given. |
1808 | if test "${with_mgl+set}" = set; then | |
1809 | withval="$with_mgl" | |
1810 | wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1 | |
1811 | fi | |
1812 | ||
10f2d63a | 1813 | |
8168de4c VZ |
1814 | # Check whether --enable-gtk2 or --disable-gtk2 was given. |
1815 | if test "${enable_gtk2+set}" = set; then | |
1816 | enableval="$enable_gtk2" | |
1817 | wxUSE_GTK2=1 | |
10f2d63a | 1818 | else |
8168de4c | 1819 | wxUSE_GTK2=0 |
698dcdb6 VZ |
1820 | fi |
1821 | ||
703e0a69 | 1822 | |
1e487827 | 1823 | |
698dcdb6 | 1824 | echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6 |
3379ed37 | 1825 | echo "configure:1826: checking for --with-libpng" >&5 |
698dcdb6 VZ |
1826 | no_cache=0 |
1827 | # Check whether --with-libpng or --without-libpng was given. | |
b12915c1 VZ |
1828 | if test "${with_libpng+set}" = set; then |
1829 | withval="$with_libpng" | |
698dcdb6 | 1830 | |
10f2d63a | 1831 | if test "$withval" = yes; then |
b12915c1 | 1832 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
422107f9 | 1833 | elif test "$withval" = no; then |
b12915c1 | 1834 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
422107f9 VZ |
1835 | elif test "$withval" = sys; then |
1836 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
1837 | else | |
698dcdb6 | 1838 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1839 | fi |
698dcdb6 | 1840 | |
10f2d63a | 1841 | else |
698dcdb6 | 1842 | |
b12915c1 | 1843 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
1844 | if test "x$LINE" != x ; then |
1845 | eval "DEFAULT_$LINE" | |
1846 | else | |
1847 | no_cache=1 | |
1848 | fi | |
1849 | ||
b12915c1 | 1850 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
698dcdb6 VZ |
1851 | |
1852 | fi | |
10f2d63a VZ |
1853 | |
1854 | ||
b12915c1 | 1855 | eval "$ac_cv_use_libpng" |
10f2d63a | 1856 | if test "$no_cache" != 1; then |
b12915c1 | 1857 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1858 | fi |
1859 | ||
b12915c1 | 1860 | if test "$wxUSE_LIBPNG" = yes; then |
698dcdb6 | 1861 | echo "$ac_t""yes" 1>&6 |
422107f9 | 1862 | elif test "$wxUSE_LIBPNG" = no; then |
698dcdb6 | 1863 | echo "$ac_t""no" 1>&6 |
422107f9 | 1864 | elif test "$wxUSE_LIBPNG" = sys; then |
698dcdb6 | 1865 | echo "$ac_t""system version" 1>&6 |
422107f9 | 1866 | else |
698dcdb6 | 1867 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1868 | fi |
698dcdb6 | 1869 | |
10f2d63a | 1870 | |
698dcdb6 | 1871 | echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6 |
3379ed37 | 1872 | echo "configure:1873: checking for --with-libjpeg" >&5 |
10f2d63a | 1873 | no_cache=0 |
698dcdb6 | 1874 | # Check whether --with-libjpeg or --without-libjpeg was given. |
b12915c1 VZ |
1875 | if test "${with_libjpeg+set}" = set; then |
1876 | withval="$with_libjpeg" | |
698dcdb6 | 1877 | |
10f2d63a | 1878 | if test "$withval" = yes; then |
b12915c1 | 1879 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
422107f9 | 1880 | elif test "$withval" = no; then |
b12915c1 | 1881 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
422107f9 VZ |
1882 | elif test "$withval" = sys; then |
1883 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
1884 | else | |
698dcdb6 | 1885 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1886 | fi |
698dcdb6 | 1887 | |
10f2d63a | 1888 | else |
698dcdb6 | 1889 | |
b12915c1 | 1890 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
1891 | if test "x$LINE" != x ; then |
1892 | eval "DEFAULT_$LINE" | |
1893 | else | |
1894 | no_cache=1 | |
1895 | fi | |
1896 | ||
b12915c1 | 1897 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
698dcdb6 VZ |
1898 | |
1899 | fi | |
10f2d63a VZ |
1900 | |
1901 | ||
b12915c1 | 1902 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 1903 | if test "$no_cache" != 1; then |
b12915c1 | 1904 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1905 | fi |
1906 | ||
b12915c1 | 1907 | if test "$wxUSE_LIBJPEG" = yes; then |
698dcdb6 | 1908 | echo "$ac_t""yes" 1>&6 |
422107f9 | 1909 | elif test "$wxUSE_LIBJPEG" = no; then |
698dcdb6 | 1910 | echo "$ac_t""no" 1>&6 |
422107f9 | 1911 | elif test "$wxUSE_LIBJPEG" = sys; then |
698dcdb6 | 1912 | echo "$ac_t""system version" 1>&6 |
422107f9 | 1913 | else |
698dcdb6 | 1914 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1915 | fi |
698dcdb6 | 1916 | |
10f2d63a | 1917 | |
698dcdb6 | 1918 | echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6 |
3379ed37 | 1919 | echo "configure:1920: checking for --with-libtiff" >&5 |
10f2d63a | 1920 | no_cache=0 |
698dcdb6 | 1921 | # Check whether --with-libtiff or --without-libtiff was given. |
b12915c1 VZ |
1922 | if test "${with_libtiff+set}" = set; then |
1923 | withval="$with_libtiff" | |
698dcdb6 | 1924 | |
10f2d63a | 1925 | if test "$withval" = yes; then |
b12915c1 | 1926 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
0dcf9893 | 1927 | elif test "$withval" = no; then |
b12915c1 | 1928 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
0dcf9893 VZ |
1929 | elif test "$withval" = sys; then |
1930 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
1931 | else | |
698dcdb6 | 1932 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1933 | fi |
698dcdb6 | 1934 | |
10f2d63a | 1935 | else |
698dcdb6 | 1936 | |
b12915c1 | 1937 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
1938 | if test "x$LINE" != x ; then |
1939 | eval "DEFAULT_$LINE" | |
1940 | else | |
1941 | no_cache=1 | |
1942 | fi | |
1943 | ||
b12915c1 | 1944 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
698dcdb6 VZ |
1945 | |
1946 | fi | |
10f2d63a VZ |
1947 | |
1948 | ||
b12915c1 | 1949 | eval "$ac_cv_use_libtiff" |
10f2d63a | 1950 | if test "$no_cache" != 1; then |
b12915c1 | 1951 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1952 | fi |
1953 | ||
b12915c1 | 1954 | if test "$wxUSE_LIBTIFF" = yes; then |
698dcdb6 | 1955 | echo "$ac_t""yes" 1>&6 |
0dcf9893 | 1956 | elif test "$wxUSE_LIBTIFF" = no; then |
698dcdb6 | 1957 | echo "$ac_t""no" 1>&6 |
0dcf9893 | 1958 | elif test "$wxUSE_LIBTIFF" = sys; then |
698dcdb6 | 1959 | echo "$ac_t""system version" 1>&6 |
0dcf9893 | 1960 | else |
698dcdb6 | 1961 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1962 | fi |
698dcdb6 | 1963 | |
10f2d63a | 1964 | |
698dcdb6 | 1965 | echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6 |
3379ed37 | 1966 | echo "configure:1967: checking for --with-freetype" >&5 |
3fed1840 | 1967 | no_cache=0 |
698dcdb6 | 1968 | # Check whether --with-freetype or --without-freetype was given. |
3fed1840 RR |
1969 | if test "${with_freetype+set}" = set; then |
1970 | withval="$with_freetype" | |
698dcdb6 | 1971 | |
3fed1840 RR |
1972 | if test "$withval" = yes; then |
1973 | ac_cv_use_freetype='wxUSE_FREETYPE=yes' | |
1974 | elif test "$withval" = no; then | |
1975 | ac_cv_use_freetype='wxUSE_FREETYPE=no' | |
1976 | elif test "$withval" = sys; then | |
1977 | ac_cv_use_freetype='wxUSE_FREETYPE=sys' | |
1978 | else | |
698dcdb6 | 1979 | { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; } |
3fed1840 | 1980 | fi |
698dcdb6 | 1981 | |
3fed1840 | 1982 | else |
698dcdb6 | 1983 | |
3fed1840 RR |
1984 | LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}` |
1985 | if test "x$LINE" != x ; then | |
1986 | eval "DEFAULT_$LINE" | |
1987 | else | |
1988 | no_cache=1 | |
1989 | fi | |
1990 | ||
1991 | ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE | |
698dcdb6 VZ |
1992 | |
1993 | fi | |
3fed1840 RR |
1994 | |
1995 | ||
1996 | eval "$ac_cv_use_freetype" | |
1997 | if test "$no_cache" != 1; then | |
1998 | echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp | |
1999 | fi | |
2000 | ||
2001 | if test "$wxUSE_FREETYPE" = yes; then | |
698dcdb6 | 2002 | echo "$ac_t""yes" 1>&6 |
3fed1840 | 2003 | elif test "$wxUSE_FREETYPE" = no; then |
698dcdb6 | 2004 | echo "$ac_t""no" 1>&6 |
3fed1840 | 2005 | elif test "$wxUSE_FREETYPE" = sys; then |
698dcdb6 | 2006 | echo "$ac_t""system version" 1>&6 |
3fed1840 | 2007 | else |
698dcdb6 | 2008 | { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; } |
3fed1840 | 2009 | fi |
698dcdb6 | 2010 | |
3fed1840 | 2011 | |
698dcdb6 | 2012 | echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6 |
3379ed37 | 2013 | echo "configure:2014: checking for --with-opengl" >&5 |
10f2d63a | 2014 | no_cache=0 |
698dcdb6 | 2015 | # Check whether --with-opengl or --without-opengl was given. |
b12915c1 VZ |
2016 | if test "${with_opengl+set}" = set; then |
2017 | withval="$with_opengl" | |
698dcdb6 | 2018 | |
10f2d63a | 2019 | if test "$withval" = yes; then |
b12915c1 | 2020 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 2021 | else |
b12915c1 | 2022 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a | 2023 | fi |
698dcdb6 | 2024 | |
10f2d63a | 2025 | else |
698dcdb6 | 2026 | |
b12915c1 | 2027 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` |
10f2d63a VZ |
2028 | if test "x$LINE" != x ; then |
2029 | eval "DEFAULT_$LINE" | |
2030 | else | |
2031 | no_cache=1 | |
2032 | fi | |
2033 | ||
b12915c1 | 2034 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
698dcdb6 VZ |
2035 | |
2036 | fi | |
10f2d63a VZ |
2037 | |
2038 | ||
b12915c1 | 2039 | eval "$ac_cv_use_opengl" |
10f2d63a | 2040 | if test "$no_cache" != 1; then |
b12915c1 | 2041 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2042 | fi |
2043 | ||
b12915c1 | 2044 | if test "$wxUSE_OPENGL" = yes; then |
698dcdb6 | 2045 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2046 | else |
698dcdb6 | 2047 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2048 | fi |
698dcdb6 | 2049 | |
10f2d63a | 2050 | |
b12915c1 VZ |
2051 | fi |
2052 | ||
1e487827 | 2053 | |
698dcdb6 | 2054 | echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6 |
3379ed37 | 2055 | echo "configure:2056: checking for --with-dmalloc" >&5 |
698dcdb6 VZ |
2056 | no_cache=0 |
2057 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
b12915c1 VZ |
2058 | if test "${with_dmalloc+set}" = set; then |
2059 | withval="$with_dmalloc" | |
698dcdb6 | 2060 | |
c7a2bf27 | 2061 | if test "$withval" = yes; then |
b12915c1 | 2062 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 2063 | else |
b12915c1 | 2064 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 | 2065 | fi |
698dcdb6 | 2066 | |
c7a2bf27 | 2067 | else |
698dcdb6 | 2068 | |
b12915c1 | 2069 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
2070 | if test "x$LINE" != x ; then |
2071 | eval "DEFAULT_$LINE" | |
2072 | else | |
2073 | no_cache=1 | |
2074 | fi | |
2075 | ||
b12915c1 | 2076 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
698dcdb6 VZ |
2077 | |
2078 | fi | |
c7a2bf27 RR |
2079 | |
2080 | ||
b12915c1 | 2081 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 2082 | if test "$no_cache" != 1; then |
b12915c1 | 2083 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
2084 | fi |
2085 | ||
b12915c1 | 2086 | if test "$wxUSE_DMALLOC" = yes; then |
698dcdb6 | 2087 | echo "$ac_t""yes" 1>&6 |
c7a2bf27 | 2088 | else |
698dcdb6 | 2089 | echo "$ac_t""no" 1>&6 |
c7a2bf27 | 2090 | fi |
698dcdb6 | 2091 | |
c7a2bf27 | 2092 | |
698dcdb6 | 2093 | echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6 |
3379ed37 | 2094 | echo "configure:2095: checking for --with-zlib" >&5 |
10f2d63a | 2095 | no_cache=0 |
698dcdb6 | 2096 | # Check whether --with-zlib or --without-zlib was given. |
b12915c1 VZ |
2097 | if test "${with_zlib+set}" = set; then |
2098 | withval="$with_zlib" | |
698dcdb6 | 2099 | |
10f2d63a | 2100 | if test "$withval" = yes; then |
b12915c1 | 2101 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
422107f9 | 2102 | elif test "$withval" = no; then |
b12915c1 | 2103 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
422107f9 VZ |
2104 | elif test "$withval" = sys; then |
2105 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
2106 | else | |
698dcdb6 | 2107 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 2108 | fi |
698dcdb6 | 2109 | |
10f2d63a | 2110 | else |
698dcdb6 | 2111 | |
b12915c1 | 2112 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
2113 | if test "x$LINE" != x ; then |
2114 | eval "DEFAULT_$LINE" | |
2115 | else | |
2116 | no_cache=1 | |
2117 | fi | |
2118 | ||
b12915c1 | 2119 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
698dcdb6 VZ |
2120 | |
2121 | fi | |
10f2d63a VZ |
2122 | |
2123 | ||
b12915c1 | 2124 | eval "$ac_cv_use_zlib" |
10f2d63a | 2125 | if test "$no_cache" != 1; then |
b12915c1 | 2126 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2127 | fi |
2128 | ||
b12915c1 | 2129 | if test "$wxUSE_ZLIB" = yes; then |
698dcdb6 | 2130 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2131 | elif test "$wxUSE_ZLIB" = no; then |
698dcdb6 | 2132 | echo "$ac_t""no" 1>&6 |
422107f9 | 2133 | elif test "$wxUSE_ZLIB" = sys; then |
698dcdb6 | 2134 | echo "$ac_t""system version" 1>&6 |
422107f9 | 2135 | else |
698dcdb6 | 2136 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 2137 | fi |
698dcdb6 | 2138 | |
10f2d63a | 2139 | |
698dcdb6 | 2140 | echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6 |
3379ed37 | 2141 | echo "configure:2142: checking for --with-odbc" >&5 |
10f2d63a | 2142 | no_cache=0 |
698dcdb6 | 2143 | # Check whether --with-odbc or --without-odbc was given. |
10f2d63a VZ |
2144 | if test "${with_odbc+set}" = set; then |
2145 | withval="$with_odbc" | |
698dcdb6 | 2146 | |
10f2d63a VZ |
2147 | if test "$withval" = yes; then |
2148 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
2149 | else | |
2150 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
2151 | fi | |
698dcdb6 | 2152 | |
10f2d63a | 2153 | else |
698dcdb6 | 2154 | |
10f2d63a VZ |
2155 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` |
2156 | if test "x$LINE" != x ; then | |
2157 | eval "DEFAULT_$LINE" | |
2158 | else | |
2159 | no_cache=1 | |
2160 | fi | |
2161 | ||
2162 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
698dcdb6 VZ |
2163 | |
2164 | fi | |
10f2d63a VZ |
2165 | |
2166 | ||
2167 | eval "$ac_cv_use_odbc" | |
2168 | if test "$no_cache" != 1; then | |
2169 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
2170 | fi | |
2171 | ||
2172 | if test "$wxUSE_ODBC" = yes; then | |
698dcdb6 | 2173 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2174 | else |
698dcdb6 | 2175 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2176 | fi |
698dcdb6 VZ |
2177 | |
2178 | ||
10f2d63a | 2179 | |
698dcdb6 VZ |
2180 | |
2181 | ||
2182 | echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6 | |
3379ed37 | 2183 | echo "configure:2184: checking for --enable-shared" >&5 |
10f2d63a VZ |
2184 | no_cache=0 |
2185 | # Check whether --enable-shared or --disable-shared was given. | |
2186 | if test "${enable_shared+set}" = set; then | |
2187 | enableval="$enable_shared" | |
698dcdb6 | 2188 | |
10f2d63a VZ |
2189 | if test "$enableval" = yes; then |
2190 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
2191 | else | |
2192 | ac_cv_use_shared='wxUSE_SHARED=no' | |
2193 | fi | |
698dcdb6 | 2194 | |
10f2d63a | 2195 | else |
698dcdb6 | 2196 | |
10f2d63a VZ |
2197 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` |
2198 | if test "x$LINE" != x ; then | |
2199 | eval "DEFAULT_$LINE" | |
2200 | else | |
2201 | no_cache=1 | |
2202 | fi | |
2203 | ||
2204 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
698dcdb6 VZ |
2205 | |
2206 | fi | |
10f2d63a VZ |
2207 | |
2208 | ||
2209 | eval "$ac_cv_use_shared" | |
2210 | if test "$no_cache" != 1; then | |
2211 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
2212 | fi | |
2213 | ||
2214 | if test "$wxUSE_SHARED" = yes; then | |
698dcdb6 | 2215 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2216 | else |
698dcdb6 | 2217 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2218 | fi |
698dcdb6 | 2219 | |
10f2d63a | 2220 | |
698dcdb6 | 2221 | echo $ac_n "checking for --enable-burnt_name""... $ac_c" 1>&6 |
3379ed37 | 2222 | echo "configure:2223: checking for --enable-burnt_name" >&5 |
00cf1208 RR |
2223 | no_cache=0 |
2224 | # Check whether --enable-burnt_name or --disable-burnt_name was given. | |
2225 | if test "${enable_burnt_name+set}" = set; then | |
2226 | enableval="$enable_burnt_name" | |
698dcdb6 | 2227 | |
00cf1208 RR |
2228 | if test "$enableval" = yes; then |
2229 | ac_cv_use_burnt_name='wxUSE_BURNT_NAME=yes' | |
2230 | else | |
2231 | ac_cv_use_burnt_name='wxUSE_BURNT_NAME=no' | |
2232 | fi | |
698dcdb6 | 2233 | |
00cf1208 | 2234 | else |
698dcdb6 | 2235 | |
00cf1208 RR |
2236 | LINE=`grep "wxUSE_BURNT_NAME" ${wx_arg_cache_file}` |
2237 | if test "x$LINE" != x ; then | |
2238 | eval "DEFAULT_$LINE" | |
2239 | else | |
2240 | no_cache=1 | |
2241 | fi | |
2242 | ||
2243 | ac_cv_use_burnt_name='wxUSE_BURNT_NAME='$DEFAULT_wxUSE_BURNT_NAME | |
698dcdb6 VZ |
2244 | |
2245 | fi | |
00cf1208 RR |
2246 | |
2247 | ||
2248 | eval "$ac_cv_use_burnt_name" | |
2249 | if test "$no_cache" != 1; then | |
2250 | echo $ac_cv_use_burnt_name >> ${wx_arg_cache_file}.tmp | |
2251 | fi | |
2252 | ||
2253 | if test "$wxUSE_BURNT_NAME" = yes; then | |
698dcdb6 | 2254 | echo "$ac_t""yes" 1>&6 |
00cf1208 | 2255 | else |
698dcdb6 | 2256 | echo "$ac_t""no" 1>&6 |
00cf1208 | 2257 | fi |
698dcdb6 | 2258 | |
00cf1208 | 2259 | |
698dcdb6 | 2260 | echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6 |
3379ed37 | 2261 | echo "configure:2262: checking for --enable-optimise" >&5 |
10f2d63a VZ |
2262 | no_cache=0 |
2263 | # Check whether --enable-optimise or --disable-optimise was given. | |
2264 | if test "${enable_optimise+set}" = set; then | |
2265 | enableval="$enable_optimise" | |
698dcdb6 | 2266 | |
10f2d63a VZ |
2267 | if test "$enableval" = yes; then |
2268 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
2269 | else | |
2270 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
2271 | fi | |
698dcdb6 | 2272 | |
10f2d63a | 2273 | else |
698dcdb6 | 2274 | |
10f2d63a VZ |
2275 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` |
2276 | if test "x$LINE" != x ; then | |
2277 | eval "DEFAULT_$LINE" | |
2278 | else | |
2279 | no_cache=1 | |
2280 | fi | |
2281 | ||
2282 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
698dcdb6 VZ |
2283 | |
2284 | fi | |
10f2d63a VZ |
2285 | |
2286 | ||
2287 | eval "$ac_cv_use_optimise" | |
2288 | if test "$no_cache" != 1; then | |
2289 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
2290 | fi | |
2291 | ||
2292 | if test "$wxUSE_OPTIMISE" = yes; then | |
698dcdb6 | 2293 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2294 | else |
698dcdb6 | 2295 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2296 | fi |
698dcdb6 | 2297 | |
10f2d63a | 2298 | |
698dcdb6 | 2299 | echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6 |
3379ed37 | 2300 | echo "configure:2301: checking for --enable-debug" >&5 |
10f2d63a VZ |
2301 | no_cache=0 |
2302 | # Check whether --enable-debug or --disable-debug was given. | |
2303 | if test "${enable_debug+set}" = set; then | |
2304 | enableval="$enable_debug" | |
698dcdb6 | 2305 | |
10f2d63a VZ |
2306 | if test "$enableval" = yes; then |
2307 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
2308 | else | |
2309 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
2310 | fi | |
698dcdb6 | 2311 | |
10f2d63a | 2312 | else |
698dcdb6 | 2313 | |
10f2d63a VZ |
2314 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` |
2315 | if test "x$LINE" != x ; then | |
2316 | eval "DEFAULT_$LINE" | |
2317 | else | |
2318 | no_cache=1 | |
2319 | fi | |
2320 | ||
2321 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
698dcdb6 VZ |
2322 | |
2323 | fi | |
10f2d63a VZ |
2324 | |
2325 | ||
2326 | eval "$ac_cv_use_debug" | |
2327 | if test "$no_cache" != 1; then | |
2328 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
2329 | fi | |
2330 | ||
2331 | if test "$wxUSE_DEBUG" = yes; then | |
698dcdb6 | 2332 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2333 | else |
698dcdb6 | 2334 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2335 | fi |
698dcdb6 | 2336 | |
10f2d63a VZ |
2337 | |
2338 | if test "$wxUSE_DEBUG" = "yes"; then | |
2339 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2340 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2341 | elif test "$wxUSE_DEBUG" = "no"; then | |
2342 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2343 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2344 | fi | |
2345 | ||
698dcdb6 VZ |
2346 | |
2347 | echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6 | |
3379ed37 | 2348 | echo "configure:2349: checking for --enable-debug_flag" >&5 |
10f2d63a VZ |
2349 | no_cache=0 |
2350 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
2351 | if test "${enable_debug_flag+set}" = set; then | |
2352 | enableval="$enable_debug_flag" | |
698dcdb6 | 2353 | |
10f2d63a VZ |
2354 | if test "$enableval" = yes; then |
2355 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
2356 | else | |
2357 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
2358 | fi | |
698dcdb6 | 2359 | |
10f2d63a | 2360 | else |
698dcdb6 | 2361 | |
10f2d63a VZ |
2362 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` |
2363 | if test "x$LINE" != x ; then | |
2364 | eval "DEFAULT_$LINE" | |
2365 | else | |
2366 | no_cache=1 | |
2367 | fi | |
2368 | ||
2369 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
698dcdb6 VZ |
2370 | |
2371 | fi | |
10f2d63a VZ |
2372 | |
2373 | ||
2374 | eval "$ac_cv_use_debug_flag" | |
2375 | if test "$no_cache" != 1; then | |
2376 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
2377 | fi | |
2378 | ||
2379 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
698dcdb6 | 2380 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2381 | else |
698dcdb6 | 2382 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2383 | fi |
698dcdb6 | 2384 | |
10f2d63a | 2385 | |
698dcdb6 | 2386 | echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6 |
3379ed37 | 2387 | echo "configure:2388: checking for --enable-debug_info" >&5 |
10f2d63a VZ |
2388 | no_cache=0 |
2389 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
2390 | if test "${enable_debug_info+set}" = set; then | |
2391 | enableval="$enable_debug_info" | |
698dcdb6 | 2392 | |
10f2d63a VZ |
2393 | if test "$enableval" = yes; then |
2394 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
2395 | else | |
2396 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
2397 | fi | |
698dcdb6 | 2398 | |
10f2d63a | 2399 | else |
698dcdb6 | 2400 | |
10f2d63a VZ |
2401 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` |
2402 | if test "x$LINE" != x ; then | |
2403 | eval "DEFAULT_$LINE" | |
2404 | else | |
2405 | no_cache=1 | |
2406 | fi | |
2407 | ||
2408 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
698dcdb6 VZ |
2409 | |
2410 | fi | |
10f2d63a VZ |
2411 | |
2412 | ||
2413 | eval "$ac_cv_use_debug_info" | |
2414 | if test "$no_cache" != 1; then | |
2415 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
2416 | fi | |
2417 | ||
2418 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
698dcdb6 | 2419 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2420 | else |
698dcdb6 | 2421 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2422 | fi |
698dcdb6 | 2423 | |
10f2d63a | 2424 | |
698dcdb6 | 2425 | echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6 |
3379ed37 | 2426 | echo "configure:2427: checking for --enable-debug_gdb" >&5 |
10f2d63a VZ |
2427 | no_cache=0 |
2428 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
2429 | if test "${enable_debug_gdb+set}" = set; then | |
2430 | enableval="$enable_debug_gdb" | |
698dcdb6 | 2431 | |
10f2d63a VZ |
2432 | if test "$enableval" = yes; then |
2433 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
2434 | else | |
2435 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
2436 | fi | |
698dcdb6 | 2437 | |
10f2d63a | 2438 | else |
698dcdb6 | 2439 | |
10f2d63a VZ |
2440 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` |
2441 | if test "x$LINE" != x ; then | |
2442 | eval "DEFAULT_$LINE" | |
2443 | else | |
2444 | no_cache=1 | |
2445 | fi | |
2446 | ||
2447 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
698dcdb6 VZ |
2448 | |
2449 | fi | |
10f2d63a VZ |
2450 | |
2451 | ||
2452 | eval "$ac_cv_use_debug_gdb" | |
2453 | if test "$no_cache" != 1; then | |
2454 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
2455 | fi | |
2456 | ||
2457 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
698dcdb6 | 2458 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2459 | else |
698dcdb6 | 2460 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2461 | fi |
698dcdb6 | 2462 | |
10f2d63a | 2463 | |
698dcdb6 | 2464 | echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6 |
3379ed37 | 2465 | echo "configure:2466: checking for --enable-debug_cntxt" >&5 |
10f2d63a VZ |
2466 | no_cache=0 |
2467 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
2468 | if test "${enable_debug_cntxt+set}" = set; then | |
2469 | enableval="$enable_debug_cntxt" | |
698dcdb6 | 2470 | |
10f2d63a VZ |
2471 | if test "$enableval" = yes; then |
2472 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
2473 | else | |
2474 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
2475 | fi | |
698dcdb6 | 2476 | |
10f2d63a | 2477 | else |
698dcdb6 | 2478 | |
10f2d63a VZ |
2479 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` |
2480 | if test "x$LINE" != x ; then | |
2481 | eval "DEFAULT_$LINE" | |
2482 | else | |
2483 | no_cache=1 | |
2484 | fi | |
2485 | ||
2486 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
698dcdb6 VZ |
2487 | |
2488 | fi | |
10f2d63a VZ |
2489 | |
2490 | ||
2491 | eval "$ac_cv_use_debug_cntxt" | |
2492 | if test "$no_cache" != 1; then | |
2493 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
2494 | fi | |
2495 | ||
2496 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
698dcdb6 | 2497 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2498 | else |
698dcdb6 | 2499 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2500 | fi |
698dcdb6 | 2501 | |
10f2d63a | 2502 | |
698dcdb6 | 2503 | echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6 |
3379ed37 | 2504 | echo "configure:2505: checking for --enable-mem_tracing" >&5 |
10f2d63a VZ |
2505 | no_cache=0 |
2506 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
2507 | if test "${enable_mem_tracing+set}" = set; then | |
2508 | enableval="$enable_mem_tracing" | |
698dcdb6 | 2509 | |
10f2d63a VZ |
2510 | if test "$enableval" = yes; then |
2511 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
2512 | else | |
2513 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
2514 | fi | |
698dcdb6 | 2515 | |
10f2d63a | 2516 | else |
698dcdb6 | 2517 | |
10f2d63a VZ |
2518 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` |
2519 | if test "x$LINE" != x ; then | |
2520 | eval "DEFAULT_$LINE" | |
2521 | else | |
2522 | no_cache=1 | |
2523 | fi | |
2524 | ||
2525 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
698dcdb6 VZ |
2526 | |
2527 | fi | |
10f2d63a VZ |
2528 | |
2529 | ||
2530 | eval "$ac_cv_use_mem_tracing" | |
2531 | if test "$no_cache" != 1; then | |
2532 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
2533 | fi | |
2534 | ||
2535 | if test "$wxUSE_MEM_TRACING" = yes; then | |
698dcdb6 | 2536 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2537 | else |
698dcdb6 | 2538 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2539 | fi |
698dcdb6 | 2540 | |
10f2d63a | 2541 | |
698dcdb6 | 2542 | echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6 |
3379ed37 | 2543 | echo "configure:2544: checking for --enable-profile" >&5 |
10f2d63a VZ |
2544 | no_cache=0 |
2545 | # Check whether --enable-profile or --disable-profile was given. | |
2546 | if test "${enable_profile+set}" = set; then | |
2547 | enableval="$enable_profile" | |
698dcdb6 | 2548 | |
10f2d63a VZ |
2549 | if test "$enableval" = yes; then |
2550 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
2551 | else | |
2552 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
2553 | fi | |
698dcdb6 | 2554 | |
10f2d63a | 2555 | else |
698dcdb6 | 2556 | |
10f2d63a VZ |
2557 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` |
2558 | if test "x$LINE" != x ; then | |
2559 | eval "DEFAULT_$LINE" | |
2560 | else | |
2561 | no_cache=1 | |
2562 | fi | |
2563 | ||
2564 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
698dcdb6 VZ |
2565 | |
2566 | fi | |
10f2d63a VZ |
2567 | |
2568 | ||
2569 | eval "$ac_cv_use_profile" | |
2570 | if test "$no_cache" != 1; then | |
2571 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
2572 | fi | |
2573 | ||
2574 | if test "$wxUSE_PROFILE" = yes; then | |
698dcdb6 | 2575 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2576 | else |
698dcdb6 | 2577 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2578 | fi |
698dcdb6 | 2579 | |
10f2d63a | 2580 | |
698dcdb6 | 2581 | echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6 |
3379ed37 | 2582 | echo "configure:2583: checking for --enable-no_rtti" >&5 |
10f2d63a VZ |
2583 | no_cache=0 |
2584 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
2585 | if test "${enable_no_rtti+set}" = set; then | |
2586 | enableval="$enable_no_rtti" | |
698dcdb6 | 2587 | |
10f2d63a VZ |
2588 | if test "$enableval" = yes; then |
2589 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
2590 | else | |
2591 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
2592 | fi | |
698dcdb6 | 2593 | |
10f2d63a | 2594 | else |
698dcdb6 | 2595 | |
10f2d63a VZ |
2596 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` |
2597 | if test "x$LINE" != x ; then | |
2598 | eval "DEFAULT_$LINE" | |
2599 | else | |
2600 | no_cache=1 | |
2601 | fi | |
2602 | ||
2603 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
698dcdb6 VZ |
2604 | |
2605 | fi | |
10f2d63a VZ |
2606 | |
2607 | ||
2608 | eval "$ac_cv_use_no_rtti" | |
2609 | if test "$no_cache" != 1; then | |
2610 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
2611 | fi | |
2612 | ||
2613 | if test "$wxUSE_NO_RTTI" = yes; then | |
698dcdb6 | 2614 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2615 | else |
698dcdb6 | 2616 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2617 | fi |
698dcdb6 | 2618 | |
10f2d63a | 2619 | |
698dcdb6 | 2620 | echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6 |
3379ed37 | 2621 | echo "configure:2622: checking for --enable-no_exceptions" >&5 |
10f2d63a VZ |
2622 | no_cache=0 |
2623 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
2624 | if test "${enable_no_exceptions+set}" = set; then | |
2625 | enableval="$enable_no_exceptions" | |
698dcdb6 | 2626 | |
10f2d63a VZ |
2627 | if test "$enableval" = yes; then |
2628 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
2629 | else | |
2630 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
2631 | fi | |
698dcdb6 | 2632 | |
10f2d63a | 2633 | else |
698dcdb6 | 2634 | |
10f2d63a VZ |
2635 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` |
2636 | if test "x$LINE" != x ; then | |
2637 | eval "DEFAULT_$LINE" | |
2638 | else | |
2639 | no_cache=1 | |
2640 | fi | |
2641 | ||
2642 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
698dcdb6 VZ |
2643 | |
2644 | fi | |
10f2d63a VZ |
2645 | |
2646 | ||
2647 | eval "$ac_cv_use_no_exceptions" | |
2648 | if test "$no_cache" != 1; then | |
2649 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
2650 | fi | |
2651 | ||
2652 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
698dcdb6 | 2653 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2654 | else |
698dcdb6 | 2655 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2656 | fi |
698dcdb6 | 2657 | |
10f2d63a | 2658 | |
698dcdb6 | 2659 | echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6 |
3379ed37 | 2660 | echo "configure:2661: checking for --enable-permissive" >&5 |
10f2d63a VZ |
2661 | no_cache=0 |
2662 | # Check whether --enable-permissive or --disable-permissive was given. | |
2663 | if test "${enable_permissive+set}" = set; then | |
2664 | enableval="$enable_permissive" | |
698dcdb6 | 2665 | |
10f2d63a VZ |
2666 | if test "$enableval" = yes; then |
2667 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
2668 | else | |
2669 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
2670 | fi | |
698dcdb6 | 2671 | |
10f2d63a | 2672 | else |
698dcdb6 | 2673 | |
10f2d63a VZ |
2674 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` |
2675 | if test "x$LINE" != x ; then | |
2676 | eval "DEFAULT_$LINE" | |
2677 | else | |
2678 | no_cache=1 | |
2679 | fi | |
2680 | ||
2681 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
698dcdb6 VZ |
2682 | |
2683 | fi | |
10f2d63a VZ |
2684 | |
2685 | ||
2686 | eval "$ac_cv_use_permissive" | |
2687 | if test "$no_cache" != 1; then | |
2688 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
2689 | fi | |
2690 | ||
2691 | if test "$wxUSE_PERMISSIVE" = yes; then | |
698dcdb6 | 2692 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2693 | else |
698dcdb6 | 2694 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2695 | fi |
698dcdb6 | 2696 | |
10f2d63a | 2697 | |
698dcdb6 | 2698 | echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6 |
3379ed37 | 2699 | echo "configure:2700: checking for --enable-no_deps" >&5 |
10f2d63a VZ |
2700 | no_cache=0 |
2701 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
2702 | if test "${enable_no_deps+set}" = set; then | |
2703 | enableval="$enable_no_deps" | |
698dcdb6 | 2704 | |
10f2d63a VZ |
2705 | if test "$enableval" = yes; then |
2706 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
2707 | else | |
2708 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
2709 | fi | |
698dcdb6 | 2710 | |
10f2d63a | 2711 | else |
698dcdb6 | 2712 | |
10f2d63a VZ |
2713 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` |
2714 | if test "x$LINE" != x ; then | |
2715 | eval "DEFAULT_$LINE" | |
2716 | else | |
2717 | no_cache=1 | |
2718 | fi | |
2719 | ||
2720 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
698dcdb6 VZ |
2721 | |
2722 | fi | |
10f2d63a VZ |
2723 | |
2724 | ||
2725 | eval "$ac_cv_use_no_deps" | |
2726 | if test "$no_cache" != 1; then | |
2727 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
2728 | fi | |
2729 | ||
2730 | if test "$wxUSE_NO_DEPS" = yes; then | |
698dcdb6 | 2731 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2732 | else |
698dcdb6 | 2733 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2734 | fi |
698dcdb6 VZ |
2735 | |
2736 | ||
10f2d63a | 2737 | |
54276ccf | 2738 | echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6 |
3379ed37 | 2739 | echo "configure:2740: checking for --enable-compat20" >&5 |
54276ccf VZ |
2740 | no_cache=0 |
2741 | # Check whether --enable-compat20 or --disable-compat20 was given. | |
2742 | if test "${enable_compat20+set}" = set; then | |
2743 | enableval="$enable_compat20" | |
2744 | ||
2745 | if test "$enableval" = yes; then | |
2746 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes' | |
2747 | else | |
2748 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no' | |
2749 | fi | |
2750 | ||
2751 | else | |
2752 | ||
2753 | LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}` | |
2754 | if test "x$LINE" != x ; then | |
2755 | eval "DEFAULT_$LINE" | |
2756 | else | |
2757 | no_cache=1 | |
2758 | fi | |
2759 | ||
2760 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2 | |
2761 | ||
2762 | fi | |
2763 | ||
2764 | ||
2765 | eval "$ac_cv_use_compat20" | |
2766 | if test "$no_cache" != 1; then | |
2767 | echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp | |
2768 | fi | |
2769 | ||
2770 | if test "$WXWIN_COMPATIBILITY_2" = yes; then | |
2771 | echo "$ac_t""yes" 1>&6 | |
2772 | else | |
2773 | echo "$ac_t""no" 1>&6 | |
2774 | fi | |
2775 | ||
2776 | ||
2777 | echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6 | |
3379ed37 | 2778 | echo "configure:2779: checking for --enable-compat22" >&5 |
54276ccf VZ |
2779 | no_cache=0 |
2780 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
2781 | if test "${enable_compat22+set}" = set; then | |
2782 | enableval="$enable_compat22" | |
2783 | ||
2784 | if test "$enableval" = yes; then | |
2785 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
2786 | else | |
2787 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
2788 | fi | |
2789 | ||
2790 | else | |
2791 | ||
2792 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` | |
2793 | if test "x$LINE" != x ; then | |
2794 | eval "DEFAULT_$LINE" | |
2795 | else | |
2796 | no_cache=1 | |
2797 | fi | |
2798 | ||
2799 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
2800 | ||
2801 | fi | |
2802 | ||
2803 | ||
2804 | eval "$ac_cv_use_compat22" | |
2805 | if test "$no_cache" != 1; then | |
2806 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
2807 | fi | |
2808 | ||
2809 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
2810 | echo "$ac_t""yes" 1>&6 | |
2811 | else | |
2812 | echo "$ac_t""no" 1>&6 | |
2813 | fi | |
2814 | ||
2815 | ||
2816 | ||
698dcdb6 VZ |
2817 | |
2818 | echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6 | |
3379ed37 | 2819 | echo "configure:2820: checking for --enable-intl" >&5 |
10f2d63a VZ |
2820 | no_cache=0 |
2821 | # Check whether --enable-intl or --disable-intl was given. | |
2822 | if test "${enable_intl+set}" = set; then | |
2823 | enableval="$enable_intl" | |
698dcdb6 | 2824 | |
10f2d63a VZ |
2825 | if test "$enableval" = yes; then |
2826 | ac_cv_use_intl='wxUSE_INTL=yes' | |
2827 | else | |
2828 | ac_cv_use_intl='wxUSE_INTL=no' | |
2829 | fi | |
698dcdb6 | 2830 | |
10f2d63a | 2831 | else |
698dcdb6 | 2832 | |
10f2d63a VZ |
2833 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` |
2834 | if test "x$LINE" != x ; then | |
2835 | eval "DEFAULT_$LINE" | |
2836 | else | |
2837 | no_cache=1 | |
2838 | fi | |
2839 | ||
2840 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
698dcdb6 VZ |
2841 | |
2842 | fi | |
10f2d63a VZ |
2843 | |
2844 | ||
2845 | eval "$ac_cv_use_intl" | |
2846 | if test "$no_cache" != 1; then | |
2847 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
2848 | fi | |
2849 | ||
2850 | if test "$wxUSE_INTL" = yes; then | |
698dcdb6 | 2851 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2852 | else |
698dcdb6 | 2853 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2854 | fi |
698dcdb6 | 2855 | |
10f2d63a | 2856 | |
698dcdb6 | 2857 | echo $ac_n "checking for --enable-config""... $ac_c" 1>&6 |
3379ed37 | 2858 | echo "configure:2859: checking for --enable-config" >&5 |
10f2d63a VZ |
2859 | no_cache=0 |
2860 | # Check whether --enable-config or --disable-config was given. | |
2861 | if test "${enable_config+set}" = set; then | |
2862 | enableval="$enable_config" | |
698dcdb6 | 2863 | |
10f2d63a VZ |
2864 | if test "$enableval" = yes; then |
2865 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
2866 | else | |
2867 | ac_cv_use_config='wxUSE_CONFIG=no' | |
2868 | fi | |
698dcdb6 | 2869 | |
10f2d63a | 2870 | else |
698dcdb6 | 2871 | |
10f2d63a VZ |
2872 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` |
2873 | if test "x$LINE" != x ; then | |
2874 | eval "DEFAULT_$LINE" | |
2875 | else | |
2876 | no_cache=1 | |
2877 | fi | |
2878 | ||
2879 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
698dcdb6 VZ |
2880 | |
2881 | fi | |
10f2d63a VZ |
2882 | |
2883 | ||
2884 | eval "$ac_cv_use_config" | |
2885 | if test "$no_cache" != 1; then | |
2886 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
2887 | fi | |
2888 | ||
2889 | if test "$wxUSE_CONFIG" = yes; then | |
698dcdb6 | 2890 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2891 | else |
698dcdb6 | 2892 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2893 | fi |
698dcdb6 VZ |
2894 | |
2895 | ||
b12915c1 | 2896 | |
698dcdb6 | 2897 | echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6 |
3379ed37 | 2898 | echo "configure:2899: checking for --enable-sockets" >&5 |
10f2d63a VZ |
2899 | no_cache=0 |
2900 | # Check whether --enable-sockets or --disable-sockets was given. | |
2901 | if test "${enable_sockets+set}" = set; then | |
2902 | enableval="$enable_sockets" | |
698dcdb6 | 2903 | |
10f2d63a VZ |
2904 | if test "$enableval" = yes; then |
2905 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
2906 | else | |
2907 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
2908 | fi | |
698dcdb6 | 2909 | |
10f2d63a | 2910 | else |
698dcdb6 | 2911 | |
10f2d63a VZ |
2912 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` |
2913 | if test "x$LINE" != x ; then | |
2914 | eval "DEFAULT_$LINE" | |
2915 | else | |
2916 | no_cache=1 | |
2917 | fi | |
2918 | ||
2919 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
698dcdb6 VZ |
2920 | |
2921 | fi | |
10f2d63a VZ |
2922 | |
2923 | ||
2924 | eval "$ac_cv_use_sockets" | |
2925 | if test "$no_cache" != 1; then | |
2926 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
2927 | fi | |
2928 | ||
2929 | if test "$wxUSE_SOCKETS" = yes; then | |
698dcdb6 | 2930 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2931 | else |
698dcdb6 | 2932 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2933 | fi |
698dcdb6 | 2934 | |
b12915c1 | 2935 | |
698dcdb6 VZ |
2936 | |
2937 | echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6 | |
3379ed37 | 2938 | echo "configure:2939: checking for --enable-ipc" >&5 |
10f2d63a | 2939 | no_cache=0 |
eb4efbdc VZ |
2940 | # Check whether --enable-ipc or --disable-ipc was given. |
2941 | if test "${enable_ipc+set}" = set; then | |
2942 | enableval="$enable_ipc" | |
698dcdb6 | 2943 | |
10f2d63a | 2944 | if test "$enableval" = yes; then |
eb4efbdc | 2945 | ac_cv_use_ipc='wxUSE_IPC=yes' |
10f2d63a | 2946 | else |
eb4efbdc | 2947 | ac_cv_use_ipc='wxUSE_IPC=no' |
10f2d63a | 2948 | fi |
698dcdb6 | 2949 | |
10f2d63a | 2950 | else |
698dcdb6 | 2951 | |
eb4efbdc | 2952 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` |
10f2d63a VZ |
2953 | if test "x$LINE" != x ; then |
2954 | eval "DEFAULT_$LINE" | |
2955 | else | |
2956 | no_cache=1 | |
2957 | fi | |
2958 | ||
eb4efbdc | 2959 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC |
698dcdb6 VZ |
2960 | |
2961 | fi | |
10f2d63a VZ |
2962 | |
2963 | ||
eb4efbdc | 2964 | eval "$ac_cv_use_ipc" |
10f2d63a | 2965 | if test "$no_cache" != 1; then |
eb4efbdc | 2966 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2967 | fi |
2968 | ||
eb4efbdc | 2969 | if test "$wxUSE_IPC" = yes; then |
698dcdb6 | 2970 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2971 | else |
698dcdb6 | 2972 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2973 | fi |
698dcdb6 VZ |
2974 | |
2975 | ||
eb4efbdc | 2976 | |
1e6feb95 | 2977 | echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6 |
3379ed37 | 2978 | echo "configure:2979: checking for --enable-cmdline" >&5 |
1e6feb95 VZ |
2979 | no_cache=0 |
2980 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
2981 | if test "${enable_cmdline+set}" = set; then | |
2982 | enableval="$enable_cmdline" | |
2983 | ||
2984 | if test "$enableval" = yes; then | |
2985 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
2986 | else | |
2987 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
2988 | fi | |
2989 | ||
2990 | else | |
2991 | ||
2992 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
2993 | if test "x$LINE" != x ; then | |
2994 | eval "DEFAULT_$LINE" | |
2995 | else | |
2996 | no_cache=1 | |
2997 | fi | |
2998 | ||
2999 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
3000 | ||
3001 | fi | |
3002 | ||
3003 | ||
3004 | eval "$ac_cv_use_cmdline" | |
3005 | if test "$no_cache" != 1; then | |
3006 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
3007 | fi | |
3008 | ||
3009 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
3010 | echo "$ac_t""yes" 1>&6 | |
3011 | else | |
3012 | echo "$ac_t""no" 1>&6 | |
3013 | fi | |
3014 | ||
3015 | ||
3016 | echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6 | |
3379ed37 | 3017 | echo "configure:3018: checking for --enable-datetime" >&5 |
1e6feb95 VZ |
3018 | no_cache=0 |
3019 | # Check whether --enable-datetime or --disable-datetime was given. | |
3020 | if test "${enable_datetime+set}" = set; then | |
3021 | enableval="$enable_datetime" | |
3022 | ||
3023 | if test "$enableval" = yes; then | |
3024 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
3025 | else | |
3026 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
3027 | fi | |
3028 | ||
3029 | else | |
3030 | ||
3031 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
3032 | if test "x$LINE" != x ; then | |
3033 | eval "DEFAULT_$LINE" | |
3034 | else | |
3035 | no_cache=1 | |
3036 | fi | |
3037 | ||
3038 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
3039 | ||
3040 | fi | |
3041 | ||
3042 | ||
3043 | eval "$ac_cv_use_datetime" | |
3044 | if test "$no_cache" != 1; then | |
3045 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
3046 | fi | |
3047 | ||
3048 | if test "$wxUSE_DATETIME" = yes; then | |
3049 | echo "$ac_t""yes" 1>&6 | |
3050 | else | |
3051 | echo "$ac_t""no" 1>&6 | |
3052 | fi | |
3053 | ||
3054 | ||
3055 | echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6 | |
3379ed37 | 3056 | echo "configure:3057: checking for --enable-timedate" >&5 |
1e6feb95 VZ |
3057 | no_cache=0 |
3058 | # Check whether --enable-timedate or --disable-timedate was given. | |
3059 | if test "${enable_timedate+set}" = set; then | |
3060 | enableval="$enable_timedate" | |
3061 | ||
3062 | if test "$enableval" = yes; then | |
3063 | ac_cv_use_timedate='wxUSE_TIMEDATE=yes' | |
3064 | else | |
3065 | ac_cv_use_timedate='wxUSE_TIMEDATE=no' | |
3066 | fi | |
3067 | ||
3068 | else | |
3069 | ||
3070 | LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}` | |
3071 | if test "x$LINE" != x ; then | |
3072 | eval "DEFAULT_$LINE" | |
3073 | else | |
3074 | no_cache=1 | |
3075 | fi | |
3076 | ||
3077 | ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE | |
3078 | ||
3079 | fi | |
3080 | ||
3081 | ||
3082 | eval "$ac_cv_use_timedate" | |
3083 | if test "$no_cache" != 1; then | |
3084 | echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp | |
3085 | fi | |
3086 | ||
3087 | if test "$wxUSE_TIMEDATE" = yes; then | |
3088 | echo "$ac_t""yes" 1>&6 | |
3089 | else | |
3090 | echo "$ac_t""no" 1>&6 | |
3091 | fi | |
3092 | ||
3093 | ||
3094 | echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6 | |
3379ed37 | 3095 | echo "configure:3096: checking for --enable-stopwatch" >&5 |
1e6feb95 VZ |
3096 | no_cache=0 |
3097 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
3098 | if test "${enable_stopwatch+set}" = set; then | |
3099 | enableval="$enable_stopwatch" | |
3100 | ||
3101 | if test "$enableval" = yes; then | |
3102 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
3103 | else | |
3104 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
3105 | fi | |
3106 | ||
3107 | else | |
3108 | ||
3109 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` | |
3110 | if test "x$LINE" != x ; then | |
3111 | eval "DEFAULT_$LINE" | |
3112 | else | |
3113 | no_cache=1 | |
3114 | fi | |
3115 | ||
3116 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
3117 | ||
3118 | fi | |
3119 | ||
3120 | ||
3121 | eval "$ac_cv_use_stopwatch" | |
3122 | if test "$no_cache" != 1; then | |
3123 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
3124 | fi | |
3125 | ||
3126 | if test "$wxUSE_STOPWATCH" = yes; then | |
3127 | echo "$ac_t""yes" 1>&6 | |
3128 | else | |
3129 | echo "$ac_t""no" 1>&6 | |
3130 | fi | |
3131 | ||
3132 | ||
698dcdb6 | 3133 | echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6 |
3379ed37 | 3134 | echo "configure:3135: checking for --enable-dialupman" >&5 |
10f2d63a | 3135 | no_cache=0 |
eb4efbdc VZ |
3136 | # Check whether --enable-dialupman or --disable-dialupman was given. |
3137 | if test "${enable_dialupman+set}" = set; then | |
3138 | enableval="$enable_dialupman" | |
698dcdb6 | 3139 | |
10f2d63a | 3140 | if test "$enableval" = yes; then |
eb4efbdc | 3141 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' |
10f2d63a | 3142 | else |
eb4efbdc | 3143 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' |
10f2d63a | 3144 | fi |
698dcdb6 | 3145 | |
10f2d63a | 3146 | else |
698dcdb6 | 3147 | |
eb4efbdc | 3148 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3149 | if test "x$LINE" != x ; then |
3150 | eval "DEFAULT_$LINE" | |
3151 | else | |
3152 | no_cache=1 | |
3153 | fi | |
3154 | ||
eb4efbdc | 3155 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER |
698dcdb6 VZ |
3156 | |
3157 | fi | |
10f2d63a VZ |
3158 | |
3159 | ||
eb4efbdc | 3160 | eval "$ac_cv_use_dialupman" |
10f2d63a | 3161 | if test "$no_cache" != 1; then |
eb4efbdc | 3162 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3163 | fi |
3164 | ||
eb4efbdc | 3165 | if test "$wxUSE_DIALUP_MANAGER" = yes; then |
698dcdb6 | 3166 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3167 | else |
698dcdb6 | 3168 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3169 | fi |
698dcdb6 | 3170 | |
10f2d63a | 3171 | |
698dcdb6 | 3172 | echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6 |
3379ed37 | 3173 | echo "configure:3174: checking for --enable-apple_ieee" >&5 |
10f2d63a VZ |
3174 | no_cache=0 |
3175 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
3176 | if test "${enable_apple_ieee+set}" = set; then | |
3177 | enableval="$enable_apple_ieee" | |
698dcdb6 | 3178 | |
10f2d63a VZ |
3179 | if test "$enableval" = yes; then |
3180 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
3181 | else | |
3182 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
3183 | fi | |
698dcdb6 | 3184 | |
10f2d63a | 3185 | else |
698dcdb6 | 3186 | |
10f2d63a VZ |
3187 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` |
3188 | if test "x$LINE" != x ; then | |
3189 | eval "DEFAULT_$LINE" | |
3190 | else | |
3191 | no_cache=1 | |
3192 | fi | |
3193 | ||
3194 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
698dcdb6 VZ |
3195 | |
3196 | fi | |
10f2d63a VZ |
3197 | |
3198 | ||
3199 | eval "$ac_cv_use_apple_ieee" | |
3200 | if test "$no_cache" != 1; then | |
3201 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
3202 | fi | |
3203 | ||
3204 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
698dcdb6 | 3205 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3206 | else |
698dcdb6 | 3207 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3208 | fi |
698dcdb6 | 3209 | |
10f2d63a | 3210 | |
1e6feb95 | 3211 | echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6 |
3379ed37 | 3212 | echo "configure:3213: checking for --enable-timer" >&5 |
10f2d63a | 3213 | no_cache=0 |
1e6feb95 VZ |
3214 | # Check whether --enable-timer or --disable-timer was given. |
3215 | if test "${enable_timer+set}" = set; then | |
3216 | enableval="$enable_timer" | |
698dcdb6 | 3217 | |
10f2d63a | 3218 | if test "$enableval" = yes; then |
1e6feb95 | 3219 | ac_cv_use_timer='wxUSE_TIMER=yes' |
10f2d63a | 3220 | else |
1e6feb95 | 3221 | ac_cv_use_timer='wxUSE_TIMER=no' |
10f2d63a | 3222 | fi |
698dcdb6 | 3223 | |
10f2d63a | 3224 | else |
698dcdb6 | 3225 | |
1e6feb95 | 3226 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3227 | if test "x$LINE" != x ; then |
3228 | eval "DEFAULT_$LINE" | |
3229 | else | |
3230 | no_cache=1 | |
3231 | fi | |
3232 | ||
1e6feb95 | 3233 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER |
698dcdb6 VZ |
3234 | |
3235 | fi | |
10f2d63a VZ |
3236 | |
3237 | ||
1e6feb95 | 3238 | eval "$ac_cv_use_timer" |
10f2d63a | 3239 | if test "$no_cache" != 1; then |
1e6feb95 | 3240 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3241 | fi |
3242 | ||
1e6feb95 | 3243 | if test "$wxUSE_TIMER" = yes; then |
698dcdb6 | 3244 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3245 | else |
698dcdb6 | 3246 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3247 | fi |
698dcdb6 | 3248 | |
10f2d63a | 3249 | |
698dcdb6 | 3250 | echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6 |
3379ed37 | 3251 | echo "configure:3252: checking for --enable-wave" >&5 |
10f2d63a VZ |
3252 | no_cache=0 |
3253 | # Check whether --enable-wave or --disable-wave was given. | |
3254 | if test "${enable_wave+set}" = set; then | |
3255 | enableval="$enable_wave" | |
698dcdb6 | 3256 | |
10f2d63a VZ |
3257 | if test "$enableval" = yes; then |
3258 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
3259 | else | |
3260 | ac_cv_use_wave='wxUSE_WAVE=no' | |
3261 | fi | |
698dcdb6 | 3262 | |
10f2d63a | 3263 | else |
698dcdb6 | 3264 | |
10f2d63a VZ |
3265 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` |
3266 | if test "x$LINE" != x ; then | |
3267 | eval "DEFAULT_$LINE" | |
3268 | else | |
3269 | no_cache=1 | |
3270 | fi | |
3271 | ||
3272 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
698dcdb6 VZ |
3273 | |
3274 | fi | |
10f2d63a VZ |
3275 | |
3276 | ||
3277 | eval "$ac_cv_use_wave" | |
3278 | if test "$no_cache" != 1; then | |
3279 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
3280 | fi | |
3281 | ||
3282 | if test "$wxUSE_WAVE" = yes; then | |
698dcdb6 | 3283 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3284 | else |
698dcdb6 | 3285 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3286 | fi |
698dcdb6 | 3287 | |
10f2d63a | 3288 | |
698dcdb6 | 3289 | echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6 |
3379ed37 | 3290 | echo "configure:3291: checking for --enable-fraction" >&5 |
10f2d63a VZ |
3291 | no_cache=0 |
3292 | # Check whether --enable-fraction or --disable-fraction was given. | |
3293 | if test "${enable_fraction+set}" = set; then | |
3294 | enableval="$enable_fraction" | |
698dcdb6 | 3295 | |
10f2d63a VZ |
3296 | if test "$enableval" = yes; then |
3297 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
3298 | else | |
3299 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
3300 | fi | |
698dcdb6 | 3301 | |
10f2d63a | 3302 | else |
698dcdb6 | 3303 | |
10f2d63a VZ |
3304 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` |
3305 | if test "x$LINE" != x ; then | |
3306 | eval "DEFAULT_$LINE" | |
3307 | else | |
3308 | no_cache=1 | |
3309 | fi | |
3310 | ||
3311 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
698dcdb6 VZ |
3312 | |
3313 | fi | |
10f2d63a VZ |
3314 | |
3315 | ||
3316 | eval "$ac_cv_use_fraction" | |
3317 | if test "$no_cache" != 1; then | |
3318 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
3319 | fi | |
3320 | ||
3321 | if test "$wxUSE_FRACTION" = yes; then | |
698dcdb6 | 3322 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3323 | else |
698dcdb6 | 3324 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3325 | fi |
698dcdb6 | 3326 | |
10f2d63a | 3327 | |
698dcdb6 | 3328 | echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6 |
3379ed37 | 3329 | echo "configure:3330: checking for --enable-dynlib" >&5 |
10f2d63a VZ |
3330 | no_cache=0 |
3331 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
3332 | if test "${enable_dynlib+set}" = set; then | |
3333 | enableval="$enable_dynlib" | |
698dcdb6 | 3334 | |
10f2d63a VZ |
3335 | if test "$enableval" = yes; then |
3336 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
3337 | else | |
3338 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
3339 | fi | |
698dcdb6 | 3340 | |
10f2d63a | 3341 | else |
698dcdb6 | 3342 | |
10f2d63a VZ |
3343 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` |
3344 | if test "x$LINE" != x ; then | |
3345 | eval "DEFAULT_$LINE" | |
3346 | else | |
3347 | no_cache=1 | |
3348 | fi | |
3349 | ||
3350 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
698dcdb6 VZ |
3351 | |
3352 | fi | |
10f2d63a VZ |
3353 | |
3354 | ||
3355 | eval "$ac_cv_use_dynlib" | |
3356 | if test "$no_cache" != 1; then | |
3357 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
3358 | fi | |
3359 | ||
3360 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
698dcdb6 | 3361 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3362 | else |
698dcdb6 | 3363 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3364 | fi |
698dcdb6 | 3365 | |
10f2d63a | 3366 | |
698dcdb6 | 3367 | echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6 |
3379ed37 | 3368 | echo "configure:3369: checking for --enable-longlong" >&5 |
10f2d63a VZ |
3369 | no_cache=0 |
3370 | # Check whether --enable-longlong or --disable-longlong was given. | |
3371 | if test "${enable_longlong+set}" = set; then | |
3372 | enableval="$enable_longlong" | |
698dcdb6 | 3373 | |
10f2d63a VZ |
3374 | if test "$enableval" = yes; then |
3375 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
3376 | else | |
3377 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
3378 | fi | |
698dcdb6 | 3379 | |
10f2d63a | 3380 | else |
698dcdb6 | 3381 | |
10f2d63a VZ |
3382 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` |
3383 | if test "x$LINE" != x ; then | |
3384 | eval "DEFAULT_$LINE" | |
3385 | else | |
3386 | no_cache=1 | |
3387 | fi | |
3388 | ||
3389 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
698dcdb6 VZ |
3390 | |
3391 | fi | |
10f2d63a VZ |
3392 | |
3393 | ||
3394 | eval "$ac_cv_use_longlong" | |
3395 | if test "$no_cache" != 1; then | |
3396 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
3397 | fi | |
3398 | ||
3399 | if test "$wxUSE_LONGLONG" = yes; then | |
698dcdb6 | 3400 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3401 | else |
698dcdb6 | 3402 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3403 | fi |
698dcdb6 | 3404 | |
10f2d63a | 3405 | |
698dcdb6 | 3406 | echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6 |
3379ed37 | 3407 | echo "configure:3408: checking for --enable-geometry" >&5 |
e8f65ba6 RR |
3408 | no_cache=0 |
3409 | # Check whether --enable-geometry or --disable-geometry was given. | |
3410 | if test "${enable_geometry+set}" = set; then | |
3411 | enableval="$enable_geometry" | |
698dcdb6 | 3412 | |
e8f65ba6 RR |
3413 | if test "$enableval" = yes; then |
3414 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
3415 | else | |
3416 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
3417 | fi | |
698dcdb6 | 3418 | |
e8f65ba6 | 3419 | else |
698dcdb6 | 3420 | |
e8f65ba6 RR |
3421 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` |
3422 | if test "x$LINE" != x ; then | |
3423 | eval "DEFAULT_$LINE" | |
3424 | else | |
3425 | no_cache=1 | |
3426 | fi | |
3427 | ||
3428 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
698dcdb6 VZ |
3429 | |
3430 | fi | |
e8f65ba6 RR |
3431 | |
3432 | ||
3433 | eval "$ac_cv_use_geometry" | |
3434 | if test "$no_cache" != 1; then | |
3435 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
3436 | fi | |
3437 | ||
3438 | if test "$wxUSE_GEOMETRY" = yes; then | |
698dcdb6 | 3439 | echo "$ac_t""yes" 1>&6 |
e8f65ba6 | 3440 | else |
698dcdb6 | 3441 | echo "$ac_t""no" 1>&6 |
e8f65ba6 | 3442 | fi |
698dcdb6 | 3443 | |
e8f65ba6 | 3444 | |
698dcdb6 | 3445 | echo $ac_n "checking for --enable-log""... $ac_c" 1>&6 |
3379ed37 | 3446 | echo "configure:3447: checking for --enable-log" >&5 |
10f2d63a VZ |
3447 | no_cache=0 |
3448 | # Check whether --enable-log or --disable-log was given. | |
3449 | if test "${enable_log+set}" = set; then | |
3450 | enableval="$enable_log" | |
698dcdb6 | 3451 | |
10f2d63a VZ |
3452 | if test "$enableval" = yes; then |
3453 | ac_cv_use_log='wxUSE_LOG=yes' | |
3454 | else | |
3455 | ac_cv_use_log='wxUSE_LOG=no' | |
3456 | fi | |
698dcdb6 | 3457 | |
10f2d63a | 3458 | else |
698dcdb6 | 3459 | |
10f2d63a VZ |
3460 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` |
3461 | if test "x$LINE" != x ; then | |
3462 | eval "DEFAULT_$LINE" | |
3463 | else | |
3464 | no_cache=1 | |
3465 | fi | |
3466 | ||
3467 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
698dcdb6 VZ |
3468 | |
3469 | fi | |
10f2d63a VZ |
3470 | |
3471 | ||
3472 | eval "$ac_cv_use_log" | |
3473 | if test "$no_cache" != 1; then | |
3474 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
3475 | fi | |
3476 | ||
3477 | if test "$wxUSE_LOG" = yes; then | |
698dcdb6 | 3478 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3479 | else |
698dcdb6 | 3480 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3481 | fi |
698dcdb6 | 3482 | |
10f2d63a | 3483 | |
698dcdb6 | 3484 | echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6 |
3379ed37 | 3485 | echo "configure:3486: checking for --enable-streams" >&5 |
10f2d63a VZ |
3486 | no_cache=0 |
3487 | # Check whether --enable-streams or --disable-streams was given. | |
3488 | if test "${enable_streams+set}" = set; then | |
3489 | enableval="$enable_streams" | |
698dcdb6 | 3490 | |
10f2d63a VZ |
3491 | if test "$enableval" = yes; then |
3492 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
3493 | else | |
3494 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
3495 | fi | |
698dcdb6 | 3496 | |
10f2d63a | 3497 | else |
698dcdb6 | 3498 | |
10f2d63a VZ |
3499 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` |
3500 | if test "x$LINE" != x ; then | |
3501 | eval "DEFAULT_$LINE" | |
3502 | else | |
3503 | no_cache=1 | |
3504 | fi | |
3505 | ||
3506 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
698dcdb6 VZ |
3507 | |
3508 | fi | |
10f2d63a VZ |
3509 | |
3510 | ||
3511 | eval "$ac_cv_use_streams" | |
3512 | if test "$no_cache" != 1; then | |
3513 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
3514 | fi | |
3515 | ||
3516 | if test "$wxUSE_STREAMS" = yes; then | |
698dcdb6 | 3517 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3518 | else |
698dcdb6 | 3519 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3520 | fi |
698dcdb6 | 3521 | |
10f2d63a | 3522 | |
698dcdb6 | 3523 | echo $ac_n "checking for --enable-file""... $ac_c" 1>&6 |
3379ed37 | 3524 | echo "configure:3525: checking for --enable-file" >&5 |
10f2d63a VZ |
3525 | no_cache=0 |
3526 | # Check whether --enable-file or --disable-file was given. | |
3527 | if test "${enable_file+set}" = set; then | |
3528 | enableval="$enable_file" | |
698dcdb6 | 3529 | |
10f2d63a VZ |
3530 | if test "$enableval" = yes; then |
3531 | ac_cv_use_file='wxUSE_FILE=yes' | |
3532 | else | |
3533 | ac_cv_use_file='wxUSE_FILE=no' | |
3534 | fi | |
698dcdb6 | 3535 | |
10f2d63a | 3536 | else |
698dcdb6 | 3537 | |
10f2d63a VZ |
3538 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` |
3539 | if test "x$LINE" != x ; then | |
3540 | eval "DEFAULT_$LINE" | |
3541 | else | |
3542 | no_cache=1 | |
3543 | fi | |
3544 | ||
3545 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
698dcdb6 VZ |
3546 | |
3547 | fi | |
10f2d63a VZ |
3548 | |
3549 | ||
3550 | eval "$ac_cv_use_file" | |
3551 | if test "$no_cache" != 1; then | |
3552 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
3553 | fi | |
3554 | ||
3555 | if test "$wxUSE_FILE" = yes; then | |
698dcdb6 | 3556 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3557 | else |
698dcdb6 | 3558 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3559 | fi |
698dcdb6 | 3560 | |
10f2d63a | 3561 | |
1e6feb95 | 3562 | echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6 |
3379ed37 | 3563 | echo "configure:3564: checking for --enable-ffile" >&5 |
10f2d63a | 3564 | no_cache=0 |
1e6feb95 VZ |
3565 | # Check whether --enable-ffile or --disable-ffile was given. |
3566 | if test "${enable_ffile+set}" = set; then | |
3567 | enableval="$enable_ffile" | |
698dcdb6 | 3568 | |
10f2d63a | 3569 | if test "$enableval" = yes; then |
1e6feb95 | 3570 | ac_cv_use_ffile='wxUSE_FFILE=yes' |
10f2d63a | 3571 | else |
1e6feb95 | 3572 | ac_cv_use_ffile='wxUSE_FFILE=no' |
10f2d63a | 3573 | fi |
698dcdb6 | 3574 | |
10f2d63a | 3575 | else |
698dcdb6 | 3576 | |
1e6feb95 | 3577 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
3578 | if test "x$LINE" != x ; then |
3579 | eval "DEFAULT_$LINE" | |
3580 | else | |
3581 | no_cache=1 | |
3582 | fi | |
3583 | ||
1e6feb95 | 3584 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE |
698dcdb6 VZ |
3585 | |
3586 | fi | |
10f2d63a VZ |
3587 | |
3588 | ||
1e6feb95 | 3589 | eval "$ac_cv_use_ffile" |
10f2d63a | 3590 | if test "$no_cache" != 1; then |
1e6feb95 | 3591 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3592 | fi |
3593 | ||
1e6feb95 | 3594 | if test "$wxUSE_FFILE" = yes; then |
698dcdb6 | 3595 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3596 | else |
698dcdb6 | 3597 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3598 | fi |
698dcdb6 | 3599 | |
10f2d63a | 3600 | |
1e6feb95 | 3601 | echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6 |
3379ed37 | 3602 | echo "configure:3603: checking for --enable-textfile" >&5 |
10f2d63a | 3603 | no_cache=0 |
1e6feb95 VZ |
3604 | # Check whether --enable-textfile or --disable-textfile was given. |
3605 | if test "${enable_textfile+set}" = set; then | |
3606 | enableval="$enable_textfile" | |
698dcdb6 | 3607 | |
10f2d63a | 3608 | if test "$enableval" = yes; then |
1e6feb95 | 3609 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' |
10f2d63a | 3610 | else |
1e6feb95 | 3611 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' |
10f2d63a | 3612 | fi |
698dcdb6 | 3613 | |
10f2d63a | 3614 | else |
698dcdb6 | 3615 | |
1e6feb95 | 3616 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
3617 | if test "x$LINE" != x ; then |
3618 | eval "DEFAULT_$LINE" | |
3619 | else | |
3620 | no_cache=1 | |
3621 | fi | |
3622 | ||
1e6feb95 | 3623 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE |
698dcdb6 VZ |
3624 | |
3625 | fi | |
10f2d63a VZ |
3626 | |
3627 | ||
1e6feb95 | 3628 | eval "$ac_cv_use_textfile" |
10f2d63a | 3629 | if test "$no_cache" != 1; then |
1e6feb95 | 3630 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3631 | fi |
3632 | ||
1e6feb95 | 3633 | if test "$wxUSE_TEXTFILE" = yes; then |
698dcdb6 | 3634 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3635 | else |
698dcdb6 | 3636 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3637 | fi |
698dcdb6 | 3638 | |
10f2d63a | 3639 | |
1e6feb95 | 3640 | echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6 |
3379ed37 | 3641 | echo "configure:3642: checking for --enable-fontmap" >&5 |
10f2d63a | 3642 | no_cache=0 |
1e6feb95 VZ |
3643 | # Check whether --enable-fontmap or --disable-fontmap was given. |
3644 | if test "${enable_fontmap+set}" = set; then | |
3645 | enableval="$enable_fontmap" | |
698dcdb6 | 3646 | |
10f2d63a | 3647 | if test "$enableval" = yes; then |
1e6feb95 | 3648 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' |
10f2d63a | 3649 | else |
1e6feb95 | 3650 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' |
10f2d63a | 3651 | fi |
698dcdb6 | 3652 | |
10f2d63a | 3653 | else |
698dcdb6 | 3654 | |
1e6feb95 | 3655 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` |
10f2d63a VZ |
3656 | if test "x$LINE" != x ; then |
3657 | eval "DEFAULT_$LINE" | |
3658 | else | |
3659 | no_cache=1 | |
3660 | fi | |
3661 | ||
1e6feb95 | 3662 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP |
698dcdb6 VZ |
3663 | |
3664 | fi | |
10f2d63a VZ |
3665 | |
3666 | ||
1e6feb95 | 3667 | eval "$ac_cv_use_fontmap" |
10f2d63a | 3668 | if test "$no_cache" != 1; then |
1e6feb95 | 3669 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3670 | fi |
3671 | ||
1e6feb95 | 3672 | if test "$wxUSE_FONTMAP" = yes; then |
698dcdb6 | 3673 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3674 | else |
698dcdb6 | 3675 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3676 | fi |
698dcdb6 | 3677 | |
10f2d63a | 3678 | |
1e6feb95 | 3679 | echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6 |
3379ed37 | 3680 | echo "configure:3681: checking for --enable-unicode" >&5 |
10f2d63a | 3681 | no_cache=0 |
1e6feb95 VZ |
3682 | # Check whether --enable-unicode or --disable-unicode was given. |
3683 | if test "${enable_unicode+set}" = set; then | |
3684 | enableval="$enable_unicode" | |
3685 | ||
3686 | if test "$enableval" = yes; then | |
3687 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
3688 | else | |
3689 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
3690 | fi | |
3691 | ||
3692 | else | |
3693 | ||
3694 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
3695 | if test "x$LINE" != x ; then | |
3696 | eval "DEFAULT_$LINE" | |
3697 | else | |
3698 | no_cache=1 | |
3699 | fi | |
3700 | ||
3701 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
3702 | ||
3703 | fi | |
3704 | ||
3705 | ||
3706 | eval "$ac_cv_use_unicode" | |
3707 | if test "$no_cache" != 1; then | |
3708 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
3709 | fi | |
3710 | ||
3711 | if test "$wxUSE_UNICODE" = yes; then | |
3712 | echo "$ac_t""yes" 1>&6 | |
3713 | else | |
3714 | echo "$ac_t""no" 1>&6 | |
3715 | fi | |
3716 | ||
3717 | ||
3718 | echo $ac_n "checking for --enable-wcsrtombs""... $ac_c" 1>&6 | |
3379ed37 | 3719 | echo "configure:3720: checking for --enable-wcsrtombs" >&5 |
1e6feb95 VZ |
3720 | no_cache=0 |
3721 | # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given. | |
3722 | if test "${enable_wcsrtombs+set}" = set; then | |
3723 | enableval="$enable_wcsrtombs" | |
3724 | ||
3725 | if test "$enableval" = yes; then | |
3726 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes' | |
3727 | else | |
3728 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no' | |
3729 | fi | |
3730 | ||
3731 | else | |
3732 | ||
3733 | LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}` | |
3734 | if test "x$LINE" != x ; then | |
3735 | eval "DEFAULT_$LINE" | |
3736 | else | |
3737 | no_cache=1 | |
3738 | fi | |
3739 | ||
3740 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS | |
3741 | ||
3742 | fi | |
3743 | ||
3744 | ||
3745 | eval "$ac_cv_use_wcsrtombs" | |
3746 | if test "$no_cache" != 1; then | |
3747 | echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp | |
3748 | fi | |
3749 | ||
3750 | if test "$wxUSE_WCSRTOMBS" = yes; then | |
3751 | echo "$ac_t""yes" 1>&6 | |
3752 | else | |
3753 | echo "$ac_t""no" 1>&6 | |
3754 | fi | |
3755 | ||
3756 | ||
3757 | echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6 | |
3379ed37 | 3758 | echo "configure:3759: checking for --enable-wxprintfv" >&5 |
1e6feb95 VZ |
3759 | no_cache=0 |
3760 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
3761 | if test "${enable_wxprintfv+set}" = set; then | |
3762 | enableval="$enable_wxprintfv" | |
3763 | ||
3764 | if test "$enableval" = yes; then | |
10f2d63a VZ |
3765 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' |
3766 | else | |
3767 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
3768 | fi | |
698dcdb6 | 3769 | |
10f2d63a | 3770 | else |
698dcdb6 | 3771 | |
10f2d63a VZ |
3772 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` |
3773 | if test "x$LINE" != x ; then | |
3774 | eval "DEFAULT_$LINE" | |
3775 | else | |
3776 | no_cache=1 | |
3777 | fi | |
3778 | ||
3779 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
698dcdb6 VZ |
3780 | |
3781 | fi | |
10f2d63a VZ |
3782 | |
3783 | ||
3784 | eval "$ac_cv_use_wxprintfv" | |
3785 | if test "$no_cache" != 1; then | |
3786 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
3787 | fi | |
3788 | ||
3789 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
698dcdb6 | 3790 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3791 | else |
698dcdb6 | 3792 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3793 | fi |
698dcdb6 | 3794 | |
10f2d63a | 3795 | |
698dcdb6 | 3796 | echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6 |
3379ed37 | 3797 | echo "configure:3798: checking for --enable-std_iostreams" >&5 |
10f2d63a VZ |
3798 | no_cache=0 |
3799 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
3800 | if test "${enable_std_iostreams+set}" = set; then | |
3801 | enableval="$enable_std_iostreams" | |
698dcdb6 | 3802 | |
10f2d63a VZ |
3803 | if test "$enableval" = yes; then |
3804 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
3805 | else | |
3806 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
3807 | fi | |
698dcdb6 | 3808 | |
10f2d63a | 3809 | else |
698dcdb6 | 3810 | |
10f2d63a VZ |
3811 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
3812 | if test "x$LINE" != x ; then | |
3813 | eval "DEFAULT_$LINE" | |
3814 | else | |
3815 | no_cache=1 | |
3816 | fi | |
3817 | ||
3818 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
698dcdb6 VZ |
3819 | |
3820 | fi | |
10f2d63a VZ |
3821 | |
3822 | ||
3823 | eval "$ac_cv_use_std_iostreams" | |
3824 | if test "$no_cache" != 1; then | |
3825 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
3826 | fi | |
3827 | ||
3828 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
698dcdb6 | 3829 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3830 | else |
698dcdb6 | 3831 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3832 | fi |
698dcdb6 | 3833 | |
10f2d63a | 3834 | |
698dcdb6 | 3835 | echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6 |
3379ed37 | 3836 | echo "configure:3837: checking for --enable-filesystem" >&5 |
24528b0c VS |
3837 | no_cache=0 |
3838 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
3839 | if test "${enable_filesystem+set}" = set; then | |
3840 | enableval="$enable_filesystem" | |
698dcdb6 | 3841 | |
24528b0c VS |
3842 | if test "$enableval" = yes; then |
3843 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
3844 | else | |
3845 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
3846 | fi | |
698dcdb6 | 3847 | |
24528b0c | 3848 | else |
698dcdb6 | 3849 | |
24528b0c VS |
3850 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` |
3851 | if test "x$LINE" != x ; then | |
3852 | eval "DEFAULT_$LINE" | |
3853 | else | |
3854 | no_cache=1 | |
3855 | fi | |
3856 | ||
3857 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
698dcdb6 VZ |
3858 | |
3859 | fi | |
24528b0c VS |
3860 | |
3861 | ||
3862 | eval "$ac_cv_use_filesystem" | |
3863 | if test "$no_cache" != 1; then | |
3864 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
3865 | fi | |
3866 | ||
3867 | if test "$wxUSE_FILESYSTEM" = yes; then | |
698dcdb6 | 3868 | echo "$ac_t""yes" 1>&6 |
24528b0c | 3869 | else |
698dcdb6 | 3870 | echo "$ac_t""no" 1>&6 |
24528b0c | 3871 | fi |
698dcdb6 | 3872 | |
24528b0c | 3873 | |
698dcdb6 | 3874 | echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6 |
3379ed37 | 3875 | echo "configure:3876: checking for --enable-fs_inet" >&5 |
10f2d63a VZ |
3876 | no_cache=0 |
3877 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
3878 | if test "${enable_fs_inet+set}" = set; then | |
3879 | enableval="$enable_fs_inet" | |
698dcdb6 | 3880 | |
10f2d63a VZ |
3881 | if test "$enableval" = yes; then |
3882 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
3883 | else | |
3884 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
3885 | fi | |
698dcdb6 | 3886 | |
10f2d63a | 3887 | else |
698dcdb6 | 3888 | |
10f2d63a VZ |
3889 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` |
3890 | if test "x$LINE" != x ; then | |
3891 | eval "DEFAULT_$LINE" | |
3892 | else | |
3893 | no_cache=1 | |
3894 | fi | |
3895 | ||
3896 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
698dcdb6 VZ |
3897 | |
3898 | fi | |
10f2d63a VZ |
3899 | |
3900 | ||
3901 | eval "$ac_cv_use_fs_inet" | |
3902 | if test "$no_cache" != 1; then | |
3903 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
3904 | fi | |
3905 | ||
3906 | if test "$wxUSE_FS_INET" = yes; then | |
698dcdb6 | 3907 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3908 | else |
698dcdb6 | 3909 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3910 | fi |
698dcdb6 | 3911 | |
10f2d63a | 3912 | |
698dcdb6 | 3913 | echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6 |
3379ed37 | 3914 | echo "configure:3915: checking for --enable-fs_zip" >&5 |
10f2d63a VZ |
3915 | no_cache=0 |
3916 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
3917 | if test "${enable_fs_zip+set}" = set; then | |
3918 | enableval="$enable_fs_zip" | |
698dcdb6 | 3919 | |
10f2d63a VZ |
3920 | if test "$enableval" = yes; then |
3921 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
3922 | else | |
3923 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
3924 | fi | |
698dcdb6 | 3925 | |
10f2d63a | 3926 | else |
698dcdb6 | 3927 | |
10f2d63a VZ |
3928 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` |
3929 | if test "x$LINE" != x ; then | |
3930 | eval "DEFAULT_$LINE" | |
3931 | else | |
3932 | no_cache=1 | |
3933 | fi | |
3934 | ||
3935 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
698dcdb6 VZ |
3936 | |
3937 | fi | |
10f2d63a VZ |
3938 | |
3939 | ||
3940 | eval "$ac_cv_use_fs_zip" | |
3941 | if test "$no_cache" != 1; then | |
3942 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
3943 | fi | |
3944 | ||
3945 | if test "$wxUSE_FS_ZIP" = yes; then | |
698dcdb6 | 3946 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3947 | else |
698dcdb6 | 3948 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3949 | fi |
698dcdb6 | 3950 | |
10f2d63a | 3951 | |
698dcdb6 | 3952 | echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6 |
3379ed37 | 3953 | echo "configure:3954: checking for --enable-zipstream" >&5 |
10f2d63a VZ |
3954 | no_cache=0 |
3955 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
3956 | if test "${enable_zipstream+set}" = set; then | |
3957 | enableval="$enable_zipstream" | |
698dcdb6 | 3958 | |
10f2d63a VZ |
3959 | if test "$enableval" = yes; then |
3960 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
3961 | else | |
3962 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
3963 | fi | |
698dcdb6 | 3964 | |
10f2d63a | 3965 | else |
698dcdb6 | 3966 | |
10f2d63a VZ |
3967 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` |
3968 | if test "x$LINE" != x ; then | |
3969 | eval "DEFAULT_$LINE" | |
3970 | else | |
3971 | no_cache=1 | |
3972 | fi | |
3973 | ||
3974 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
698dcdb6 VZ |
3975 | |
3976 | fi | |
10f2d63a VZ |
3977 | |
3978 | ||
3979 | eval "$ac_cv_use_zipstream" | |
3980 | if test "$no_cache" != 1; then | |
3981 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
3982 | fi | |
3983 | ||
3984 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
698dcdb6 | 3985 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3986 | else |
698dcdb6 | 3987 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3988 | fi |
698dcdb6 | 3989 | |
10f2d63a | 3990 | |
698dcdb6 VZ |
3991 | |
3992 | echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6 | |
3379ed37 | 3993 | echo "configure:3994: checking for --enable-catch_segvs" >&5 |
eb4efbdc VZ |
3994 | no_cache=0 |
3995 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
3996 | if test "${enable_catch_segvs+set}" = set; then | |
3997 | enableval="$enable_catch_segvs" | |
698dcdb6 | 3998 | |
eb4efbdc VZ |
3999 | if test "$enableval" = yes; then |
4000 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
4001 | else | |
4002 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
4003 | fi | |
698dcdb6 | 4004 | |
eb4efbdc | 4005 | else |
698dcdb6 | 4006 | |
eb4efbdc VZ |
4007 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
4008 | if test "x$LINE" != x ; then | |
4009 | eval "DEFAULT_$LINE" | |
4010 | else | |
4011 | no_cache=1 | |
4012 | fi | |
4013 | ||
4014 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
698dcdb6 VZ |
4015 | |
4016 | fi | |
eb4efbdc VZ |
4017 | |
4018 | ||
4019 | eval "$ac_cv_use_catch_segvs" | |
4020 | if test "$no_cache" != 1; then | |
4021 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
4022 | fi | |
4023 | ||
4024 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
698dcdb6 | 4025 | echo "$ac_t""yes" 1>&6 |
eb4efbdc | 4026 | else |
698dcdb6 | 4027 | echo "$ac_t""no" 1>&6 |
eb4efbdc | 4028 | fi |
698dcdb6 | 4029 | |
eb4efbdc | 4030 | |
698dcdb6 | 4031 | echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6 |
3379ed37 | 4032 | echo "configure:4033: checking for --enable-snglinst" >&5 |
4f3c5f06 VZ |
4033 | no_cache=0 |
4034 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
4035 | if test "${enable_snglinst+set}" = set; then | |
4036 | enableval="$enable_snglinst" | |
698dcdb6 | 4037 | |
4f3c5f06 VZ |
4038 | if test "$enableval" = yes; then |
4039 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
4040 | else | |
4041 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
4042 | fi | |
698dcdb6 | 4043 | |
4f3c5f06 | 4044 | else |
698dcdb6 | 4045 | |
4f3c5f06 VZ |
4046 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` |
4047 | if test "x$LINE" != x ; then | |
4048 | eval "DEFAULT_$LINE" | |
4049 | else | |
4050 | no_cache=1 | |
4051 | fi | |
4052 | ||
4053 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
698dcdb6 VZ |
4054 | |
4055 | fi | |
4f3c5f06 VZ |
4056 | |
4057 | ||
4058 | eval "$ac_cv_use_snglinst" | |
4059 | if test "$no_cache" != 1; then | |
4060 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
4061 | fi | |
4062 | ||
4063 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
698dcdb6 | 4064 | echo "$ac_t""yes" 1>&6 |
4f3c5f06 | 4065 | else |
698dcdb6 | 4066 | echo "$ac_t""no" 1>&6 |
4f3c5f06 | 4067 | fi |
698dcdb6 VZ |
4068 | |
4069 | ||
eb4efbdc | 4070 | |
1e6feb95 | 4071 | echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6 |
3379ed37 | 4072 | echo "configure:4073: checking for --enable-mimetype" >&5 |
1e6feb95 VZ |
4073 | no_cache=0 |
4074 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
4075 | if test "${enable_mimetype+set}" = set; then | |
4076 | enableval="$enable_mimetype" | |
4077 | ||
4078 | if test "$enableval" = yes; then | |
4079 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
4080 | else | |
4081 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
4082 | fi | |
4083 | ||
4084 | else | |
4085 | ||
4086 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
4087 | if test "x$LINE" != x ; then | |
4088 | eval "DEFAULT_$LINE" | |
4089 | else | |
4090 | no_cache=1 | |
4091 | fi | |
4092 | ||
4093 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
4094 | ||
4095 | fi | |
4096 | ||
4097 | ||
4098 | eval "$ac_cv_use_mimetype" | |
4099 | if test "$no_cache" != 1; then | |
4100 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
4101 | fi | |
4102 | ||
4103 | if test "$wxUSE_MIMETYPE" = yes; then | |
4104 | echo "$ac_t""yes" 1>&6 | |
4105 | else | |
4106 | echo "$ac_t""no" 1>&6 | |
4107 | fi | |
4108 | ||
4109 | ||
4110 | ||
698dcdb6 VZ |
4111 | |
4112 | echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6 | |
3379ed37 | 4113 | echo "configure:4114: checking for --enable-threads" >&5 |
10f2d63a VZ |
4114 | no_cache=0 |
4115 | # Check whether --enable-threads or --disable-threads was given. | |
4116 | if test "${enable_threads+set}" = set; then | |
4117 | enableval="$enable_threads" | |
698dcdb6 | 4118 | |
10f2d63a VZ |
4119 | if test "$enableval" = yes; then |
4120 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
4121 | else | |
4122 | ac_cv_use_threads='wxUSE_THREADS=no' | |
4123 | fi | |
698dcdb6 | 4124 | |
10f2d63a | 4125 | else |
698dcdb6 | 4126 | |
10f2d63a VZ |
4127 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` |
4128 | if test "x$LINE" != x ; then | |
4129 | eval "DEFAULT_$LINE" | |
4130 | else | |
4131 | no_cache=1 | |
4132 | fi | |
4133 | ||
4134 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
698dcdb6 VZ |
4135 | |
4136 | fi | |
10f2d63a VZ |
4137 | |
4138 | ||
4139 | eval "$ac_cv_use_threads" | |
4140 | if test "$no_cache" != 1; then | |
4141 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
4142 | fi | |
4143 | ||
4144 | if test "$wxUSE_THREADS" = yes; then | |
698dcdb6 | 4145 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4146 | else |
698dcdb6 | 4147 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4148 | fi |
698dcdb6 | 4149 | |
10f2d63a | 4150 | |
698dcdb6 | 4151 | echo $ac_n "checking for --enable-serial""... $ac_c" 1>&6 |
3379ed37 | 4152 | echo "configure:4153: checking for --enable-serial" >&5 |
10f2d63a VZ |
4153 | no_cache=0 |
4154 | # Check whether --enable-serial or --disable-serial was given. | |
4155 | if test "${enable_serial+set}" = set; then | |
4156 | enableval="$enable_serial" | |
698dcdb6 | 4157 | |
10f2d63a VZ |
4158 | if test "$enableval" = yes; then |
4159 | ac_cv_use_serial='wxUSE_SERIAL=yes' | |
4160 | else | |
4161 | ac_cv_use_serial='wxUSE_SERIAL=no' | |
4162 | fi | |
698dcdb6 | 4163 | |
10f2d63a | 4164 | else |
698dcdb6 | 4165 | |
10f2d63a VZ |
4166 | LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}` |
4167 | if test "x$LINE" != x ; then | |
4168 | eval "DEFAULT_$LINE" | |
4169 | else | |
4170 | no_cache=1 | |
4171 | fi | |
4172 | ||
4173 | ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL | |
698dcdb6 VZ |
4174 | |
4175 | fi | |
10f2d63a VZ |
4176 | |
4177 | ||
4178 | eval "$ac_cv_use_serial" | |
4179 | if test "$no_cache" != 1; then | |
4180 | echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp | |
4181 | fi | |
4182 | ||
4183 | if test "$wxUSE_SERIAL" = yes; then | |
698dcdb6 | 4184 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4185 | else |
698dcdb6 | 4186 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4187 | fi |
698dcdb6 | 4188 | |
10f2d63a | 4189 | |
b12915c1 VZ |
4190 | if test "$wxUSE_GUI" = "yes"; then |
4191 | ||
698dcdb6 VZ |
4192 | |
4193 | ||
4194 | echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6 | |
3379ed37 | 4195 | echo "configure:4196: checking for --enable-docview" >&5 |
10f2d63a VZ |
4196 | no_cache=0 |
4197 | # Check whether --enable-docview or --disable-docview was given. | |
4198 | if test "${enable_docview+set}" = set; then | |
4199 | enableval="$enable_docview" | |
698dcdb6 | 4200 | |
10f2d63a VZ |
4201 | if test "$enableval" = yes; then |
4202 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
4203 | else | |
4204 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
4205 | fi | |
698dcdb6 | 4206 | |
10f2d63a | 4207 | else |
698dcdb6 | 4208 | |
10f2d63a VZ |
4209 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` |
4210 | if test "x$LINE" != x ; then | |
4211 | eval "DEFAULT_$LINE" | |
4212 | else | |
4213 | no_cache=1 | |
4214 | fi | |
4215 | ||
4216 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
698dcdb6 VZ |
4217 | |
4218 | fi | |
10f2d63a VZ |
4219 | |
4220 | ||
4221 | eval "$ac_cv_use_docview" | |
4222 | if test "$no_cache" != 1; then | |
4223 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
4224 | fi | |
4225 | ||
4226 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
698dcdb6 | 4227 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4228 | else |
698dcdb6 | 4229 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4230 | fi |
698dcdb6 | 4231 | |
10f2d63a | 4232 | |
698dcdb6 | 4233 | echo $ac_n "checking for --enable-help""... $ac_c" 1>&6 |
3379ed37 | 4234 | echo "configure:4235: checking for --enable-help" >&5 |
10f2d63a VZ |
4235 | no_cache=0 |
4236 | # Check whether --enable-help or --disable-help was given. | |
4237 | if test "${enable_help+set}" = set; then | |
4238 | enableval="$enable_help" | |
698dcdb6 | 4239 | |
10f2d63a VZ |
4240 | if test "$enableval" = yes; then |
4241 | ac_cv_use_help='wxUSE_HELP=yes' | |
4242 | else | |
4243 | ac_cv_use_help='wxUSE_HELP=no' | |
4244 | fi | |
698dcdb6 | 4245 | |
10f2d63a | 4246 | else |
698dcdb6 | 4247 | |
10f2d63a VZ |
4248 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` |
4249 | if test "x$LINE" != x ; then | |
4250 | eval "DEFAULT_$LINE" | |
4251 | else | |
4252 | no_cache=1 | |
4253 | fi | |
4254 | ||
4255 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
698dcdb6 VZ |
4256 | |
4257 | fi | |
10f2d63a VZ |
4258 | |
4259 | ||
4260 | eval "$ac_cv_use_help" | |
4261 | if test "$no_cache" != 1; then | |
4262 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
4263 | fi | |
4264 | ||
4265 | if test "$wxUSE_HELP" = yes; then | |
698dcdb6 | 4266 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4267 | else |
698dcdb6 | 4268 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4269 | fi |
698dcdb6 | 4270 | |
10f2d63a | 4271 | |
3379ed37 VZ |
4272 | echo $ac_n "checking for --enable-html""... $ac_c" 1>&6 |
4273 | echo "configure:4274: checking for --enable-html" >&5 | |
4274 | no_cache=0 | |
4275 | # Check whether --enable-html or --disable-html was given. | |
4276 | if test "${enable_html+set}" = set; then | |
4277 | enableval="$enable_html" | |
4278 | ||
4279 | if test "$enableval" = yes; then | |
4280 | ac_cv_use_html='wxUSE_HTML=yes' | |
4281 | else | |
4282 | ac_cv_use_html='wxUSE_HTML=no' | |
4283 | fi | |
4284 | ||
4285 | else | |
4286 | ||
4287 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
4288 | if test "x$LINE" != x ; then | |
4289 | eval "DEFAULT_$LINE" | |
4290 | else | |
4291 | no_cache=1 | |
4292 | fi | |
4293 | ||
4294 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
4295 | ||
4296 | fi | |
4297 | ||
4298 | ||
4299 | eval "$ac_cv_use_html" | |
4300 | if test "$no_cache" != 1; then | |
4301 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
4302 | fi | |
4303 | ||
4304 | if test "$wxUSE_HTML" = yes; then | |
4305 | echo "$ac_t""yes" 1>&6 | |
4306 | else | |
4307 | echo "$ac_t""no" 1>&6 | |
4308 | fi | |
4309 | ||
4310 | ||
4311 | echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6 | |
4312 | echo "configure:4313: checking for --enable-htmlhelp" >&5 | |
4313 | no_cache=0 | |
4314 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
4315 | if test "${enable_htmlhelp+set}" = set; then | |
4316 | enableval="$enable_htmlhelp" | |
4317 | ||
4318 | if test "$enableval" = yes; then | |
4319 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
4320 | else | |
4321 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
4322 | fi | |
4323 | ||
4324 | else | |
4325 | ||
4326 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` | |
4327 | if test "x$LINE" != x ; then | |
4328 | eval "DEFAULT_$LINE" | |
4329 | else | |
4330 | no_cache=1 | |
4331 | fi | |
4332 | ||
4333 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
4334 | ||
4335 | fi | |
4336 | ||
4337 | ||
4338 | eval "$ac_cv_use_htmlhelp" | |
4339 | if test "$no_cache" != 1; then | |
4340 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
4341 | fi | |
4342 | ||
4343 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
4344 | echo "$ac_t""yes" 1>&6 | |
4345 | else | |
4346 | echo "$ac_t""no" 1>&6 | |
4347 | fi | |
4348 | ||
4349 | ||
698dcdb6 | 4350 | echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6 |
3379ed37 | 4351 | echo "configure:4352: checking for --enable-constraints" >&5 |
10f2d63a VZ |
4352 | no_cache=0 |
4353 | # Check whether --enable-constraints or --disable-constraints was given. | |
4354 | if test "${enable_constraints+set}" = set; then | |
4355 | enableval="$enable_constraints" | |
698dcdb6 | 4356 | |
10f2d63a VZ |
4357 | if test "$enableval" = yes; then |
4358 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
4359 | else | |
4360 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
4361 | fi | |
698dcdb6 | 4362 | |
10f2d63a | 4363 | else |
698dcdb6 | 4364 | |
10f2d63a VZ |
4365 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` |
4366 | if test "x$LINE" != x ; then | |
4367 | eval "DEFAULT_$LINE" | |
4368 | else | |
4369 | no_cache=1 | |
4370 | fi | |
4371 | ||
4372 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
698dcdb6 VZ |
4373 | |
4374 | fi | |
10f2d63a VZ |
4375 | |
4376 | ||
4377 | eval "$ac_cv_use_constraints" | |
4378 | if test "$no_cache" != 1; then | |
4379 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
4380 | fi | |
4381 | ||
4382 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
698dcdb6 | 4383 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4384 | else |
698dcdb6 | 4385 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4386 | fi |
698dcdb6 | 4387 | |
10f2d63a | 4388 | |
698dcdb6 | 4389 | echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6 |
3379ed37 | 4390 | echo "configure:4391: checking for --enable-printarch" >&5 |
10f2d63a VZ |
4391 | no_cache=0 |
4392 | # Check whether --enable-printarch or --disable-printarch was given. | |
4393 | if test "${enable_printarch+set}" = set; then | |
4394 | enableval="$enable_printarch" | |
698dcdb6 | 4395 | |
10f2d63a VZ |
4396 | if test "$enableval" = yes; then |
4397 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
4398 | else | |
4399 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
4400 | fi | |
698dcdb6 | 4401 | |
10f2d63a | 4402 | else |
698dcdb6 | 4403 | |
10f2d63a VZ |
4404 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` |
4405 | if test "x$LINE" != x ; then | |
4406 | eval "DEFAULT_$LINE" | |
4407 | else | |
4408 | no_cache=1 | |
4409 | fi | |
4410 | ||
4411 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
698dcdb6 VZ |
4412 | |
4413 | fi | |
10f2d63a VZ |
4414 | |
4415 | ||
4416 | eval "$ac_cv_use_printarch" | |
4417 | if test "$no_cache" != 1; then | |
4418 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
4419 | fi | |
4420 | ||
4421 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
698dcdb6 | 4422 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4423 | else |
698dcdb6 | 4424 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4425 | fi |
698dcdb6 | 4426 | |
10f2d63a | 4427 | |
698dcdb6 | 4428 | echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6 |
3379ed37 | 4429 | echo "configure:4430: checking for --enable-mdi" >&5 |
10f2d63a VZ |
4430 | no_cache=0 |
4431 | # Check whether --enable-mdi or --disable-mdi was given. | |
4432 | if test "${enable_mdi+set}" = set; then | |
4433 | enableval="$enable_mdi" | |
698dcdb6 | 4434 | |
10f2d63a VZ |
4435 | if test "$enableval" = yes; then |
4436 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
4437 | else | |
4438 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
4439 | fi | |
698dcdb6 | 4440 | |
10f2d63a | 4441 | else |
698dcdb6 | 4442 | |
10f2d63a VZ |
4443 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` |
4444 | if test "x$LINE" != x ; then | |
4445 | eval "DEFAULT_$LINE" | |
4446 | else | |
4447 | no_cache=1 | |
4448 | fi | |
4449 | ||
4450 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
698dcdb6 VZ |
4451 | |
4452 | fi | |
10f2d63a VZ |
4453 | |
4454 | ||
4455 | eval "$ac_cv_use_mdi" | |
4456 | if test "$no_cache" != 1; then | |
4457 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
4458 | fi | |
4459 | ||
4460 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
698dcdb6 | 4461 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4462 | else |
698dcdb6 | 4463 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4464 | fi |
698dcdb6 VZ |
4465 | |
4466 | ||
1e6feb95 | 4467 | echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6 |
3379ed37 | 4468 | echo "configure:4469: checking for --enable-loggui" >&5 |
1e6feb95 VZ |
4469 | no_cache=0 |
4470 | # Check whether --enable-loggui or --disable-loggui was given. | |
4471 | if test "${enable_loggui+set}" = set; then | |
4472 | enableval="$enable_loggui" | |
4473 | ||
4474 | if test "$enableval" = yes; then | |
4475 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
4476 | else | |
4477 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
4478 | fi | |
4479 | ||
4480 | else | |
4481 | ||
4482 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
4483 | if test "x$LINE" != x ; then | |
4484 | eval "DEFAULT_$LINE" | |
4485 | else | |
4486 | no_cache=1 | |
4487 | fi | |
4488 | ||
4489 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
4490 | ||
4491 | fi | |
4492 | ||
4493 | ||
4494 | eval "$ac_cv_use_loggui" | |
4495 | if test "$no_cache" != 1; then | |
4496 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
4497 | fi | |
4498 | ||
4499 | if test "$wxUSE_LOGGUI" = yes; then | |
4500 | echo "$ac_t""yes" 1>&6 | |
4501 | else | |
4502 | echo "$ac_t""no" 1>&6 | |
4503 | fi | |
4504 | ||
4505 | ||
4506 | echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6 | |
3379ed37 | 4507 | echo "configure:4508: checking for --enable-logwin" >&5 |
1e6feb95 VZ |
4508 | no_cache=0 |
4509 | # Check whether --enable-logwin or --disable-logwin was given. | |
4510 | if test "${enable_logwin+set}" = set; then | |
4511 | enableval="$enable_logwin" | |
4512 | ||
4513 | if test "$enableval" = yes; then | |
4514 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
4515 | else | |
4516 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
4517 | fi | |
4518 | ||
4519 | else | |
4520 | ||
4521 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` | |
4522 | if test "x$LINE" != x ; then | |
4523 | eval "DEFAULT_$LINE" | |
4524 | else | |
4525 | no_cache=1 | |
4526 | fi | |
4527 | ||
4528 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
4529 | ||
4530 | fi | |
4531 | ||
4532 | ||
4533 | eval "$ac_cv_use_logwin" | |
4534 | if test "$no_cache" != 1; then | |
4535 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
4536 | fi | |
4537 | ||
4538 | if test "$wxUSE_LOGWINDOW" = yes; then | |
4539 | echo "$ac_t""yes" 1>&6 | |
4540 | else | |
4541 | echo "$ac_t""no" 1>&6 | |
4542 | fi | |
4543 | ||
4544 | ||
10f2d63a | 4545 | |
698dcdb6 | 4546 | echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6 |
3379ed37 | 4547 | echo "configure:4548: checking for --enable-postscript" >&5 |
10f2d63a VZ |
4548 | no_cache=0 |
4549 | # Check whether --enable-postscript or --disable-postscript was given. | |
4550 | if test "${enable_postscript+set}" = set; then | |
4551 | enableval="$enable_postscript" | |
698dcdb6 | 4552 | |
10f2d63a VZ |
4553 | if test "$enableval" = yes; then |
4554 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
4555 | else | |
4556 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
4557 | fi | |
698dcdb6 | 4558 | |
10f2d63a | 4559 | else |
698dcdb6 | 4560 | |
10f2d63a VZ |
4561 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` |
4562 | if test "x$LINE" != x ; then | |
4563 | eval "DEFAULT_$LINE" | |
4564 | else | |
4565 | no_cache=1 | |
4566 | fi | |
4567 | ||
4568 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
698dcdb6 VZ |
4569 | |
4570 | fi | |
10f2d63a VZ |
4571 | |
4572 | ||
4573 | eval "$ac_cv_use_postscript" | |
4574 | if test "$no_cache" != 1; then | |
4575 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
4576 | fi | |
4577 | ||
4578 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
698dcdb6 | 4579 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4580 | else |
698dcdb6 | 4581 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4582 | fi |
698dcdb6 VZ |
4583 | |
4584 | ||
4585 | ||
10f2d63a | 4586 | |
1e6feb95 | 4587 | |
698dcdb6 | 4588 | echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6 |
3379ed37 | 4589 | echo "configure:4590: checking for --enable-prologio" >&5 |
10f2d63a VZ |
4590 | no_cache=0 |
4591 | # Check whether --enable-prologio or --disable-prologio was given. | |
4592 | if test "${enable_prologio+set}" = set; then | |
4593 | enableval="$enable_prologio" | |
698dcdb6 | 4594 | |
10f2d63a VZ |
4595 | if test "$enableval" = yes; then |
4596 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
4597 | else | |
4598 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
4599 | fi | |
698dcdb6 | 4600 | |
10f2d63a | 4601 | else |
698dcdb6 | 4602 | |
10f2d63a VZ |
4603 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` |
4604 | if test "x$LINE" != x ; then | |
4605 | eval "DEFAULT_$LINE" | |
4606 | else | |
4607 | no_cache=1 | |
4608 | fi | |
4609 | ||
4610 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
698dcdb6 VZ |
4611 | |
4612 | fi | |
10f2d63a VZ |
4613 | |
4614 | ||
4615 | eval "$ac_cv_use_prologio" | |
4616 | if test "$no_cache" != 1; then | |
4617 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
4618 | fi | |
4619 | ||
4620 | if test "$wxUSE_PROLOGIO" = yes; then | |
698dcdb6 | 4621 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4622 | else |
698dcdb6 | 4623 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4624 | fi |
698dcdb6 | 4625 | |
10f2d63a | 4626 | |
698dcdb6 | 4627 | echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6 |
3379ed37 | 4628 | echo "configure:4629: checking for --enable-resources" >&5 |
10f2d63a VZ |
4629 | no_cache=0 |
4630 | # Check whether --enable-resources or --disable-resources was given. | |
4631 | if test "${enable_resources+set}" = set; then | |
4632 | enableval="$enable_resources" | |
698dcdb6 | 4633 | |
10f2d63a VZ |
4634 | if test "$enableval" = yes; then |
4635 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
4636 | else | |
4637 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
4638 | fi | |
698dcdb6 | 4639 | |
10f2d63a | 4640 | else |
698dcdb6 | 4641 | |
10f2d63a VZ |
4642 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` |
4643 | if test "x$LINE" != x ; then | |
4644 | eval "DEFAULT_$LINE" | |
4645 | else | |
4646 | no_cache=1 | |
4647 | fi | |
4648 | ||
4649 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
698dcdb6 VZ |
4650 | |
4651 | fi | |
10f2d63a VZ |
4652 | |
4653 | ||
4654 | eval "$ac_cv_use_resources" | |
4655 | if test "$no_cache" != 1; then | |
4656 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
4657 | fi | |
4658 | ||
4659 | if test "$wxUSE_RESOURCES" = yes; then | |
698dcdb6 | 4660 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4661 | else |
698dcdb6 | 4662 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4663 | fi |
698dcdb6 | 4664 | |
10f2d63a | 4665 | |
698dcdb6 VZ |
4666 | |
4667 | echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6 | |
3379ed37 | 4668 | echo "configure:4669: checking for --enable-xresources" >&5 |
10f2d63a VZ |
4669 | no_cache=0 |
4670 | # Check whether --enable-xresources or --disable-xresources was given. | |
4671 | if test "${enable_xresources+set}" = set; then | |
4672 | enableval="$enable_xresources" | |
698dcdb6 | 4673 | |
10f2d63a VZ |
4674 | if test "$enableval" = yes; then |
4675 | ac_cv_use_xresources='wxUSE_X_RESOURCES=yes' | |
4676 | else | |
4677 | ac_cv_use_xresources='wxUSE_X_RESOURCES=no' | |
4678 | fi | |
698dcdb6 | 4679 | |
10f2d63a | 4680 | else |
698dcdb6 | 4681 | |
10f2d63a VZ |
4682 | LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}` |
4683 | if test "x$LINE" != x ; then | |
4684 | eval "DEFAULT_$LINE" | |
4685 | else | |
4686 | no_cache=1 | |
4687 | fi | |
4688 | ||
4689 | ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES | |
698dcdb6 VZ |
4690 | |
4691 | fi | |
10f2d63a VZ |
4692 | |
4693 | ||
4694 | eval "$ac_cv_use_xresources" | |
4695 | if test "$no_cache" != 1; then | |
4696 | echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp | |
4697 | fi | |
4698 | ||
4699 | if test "$wxUSE_X_RESOURCES" = yes; then | |
698dcdb6 | 4700 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4701 | else |
698dcdb6 | 4702 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4703 | fi |
698dcdb6 VZ |
4704 | |
4705 | ||
10f2d63a | 4706 | |
698dcdb6 VZ |
4707 | |
4708 | echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6 | |
3379ed37 | 4709 | echo "configure:4710: checking for --enable-clipboard" >&5 |
10f2d63a VZ |
4710 | no_cache=0 |
4711 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
4712 | if test "${enable_clipboard+set}" = set; then | |
4713 | enableval="$enable_clipboard" | |
698dcdb6 | 4714 | |
10f2d63a VZ |
4715 | if test "$enableval" = yes; then |
4716 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
4717 | else | |
4718 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
4719 | fi | |
698dcdb6 | 4720 | |
10f2d63a | 4721 | else |
698dcdb6 | 4722 | |
10f2d63a VZ |
4723 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` |
4724 | if test "x$LINE" != x ; then | |
4725 | eval "DEFAULT_$LINE" | |
4726 | else | |
4727 | no_cache=1 | |
4728 | fi | |
4729 | ||
4730 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
698dcdb6 VZ |
4731 | |
4732 | fi | |
10f2d63a VZ |
4733 | |
4734 | ||
4735 | eval "$ac_cv_use_clipboard" | |
4736 | if test "$no_cache" != 1; then | |
4737 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
4738 | fi | |
4739 | ||
4740 | if test "$wxUSE_CLIPBOARD" = yes; then | |
698dcdb6 | 4741 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4742 | else |
698dcdb6 | 4743 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4744 | fi |
698dcdb6 | 4745 | |
10f2d63a | 4746 | |
698dcdb6 | 4747 | echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6 |
3379ed37 | 4748 | echo "configure:4749: checking for --enable-dnd" >&5 |
10f2d63a VZ |
4749 | no_cache=0 |
4750 | # Check whether --enable-dnd or --disable-dnd was given. | |
4751 | if test "${enable_dnd+set}" = set; then | |
4752 | enableval="$enable_dnd" | |
698dcdb6 | 4753 | |
10f2d63a VZ |
4754 | if test "$enableval" = yes; then |
4755 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
4756 | else | |
4757 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
4758 | fi | |
698dcdb6 | 4759 | |
10f2d63a | 4760 | else |
698dcdb6 | 4761 | |
10f2d63a VZ |
4762 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` |
4763 | if test "x$LINE" != x ; then | |
4764 | eval "DEFAULT_$LINE" | |
4765 | else | |
4766 | no_cache=1 | |
4767 | fi | |
4768 | ||
4769 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
698dcdb6 VZ |
4770 | |
4771 | fi | |
10f2d63a VZ |
4772 | |
4773 | ||
4774 | eval "$ac_cv_use_dnd" | |
4775 | if test "$no_cache" != 1; then | |
4776 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
4777 | fi | |
4778 | ||
4779 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
698dcdb6 | 4780 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4781 | else |
698dcdb6 | 4782 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4783 | fi |
698dcdb6 | 4784 | |
10f2d63a | 4785 | |
698dcdb6 | 4786 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
3379ed37 | 4787 | echo "configure:4788: checking for --enable-metafile" >&5 |
b64f0a5f RL |
4788 | no_cache=0 |
4789 | # Check whether --enable-metafile or --disable-metafile was given. | |
4790 | if test "${enable_metafile+set}" = set; then | |
4791 | enableval="$enable_metafile" | |
698dcdb6 | 4792 | |
b64f0a5f RL |
4793 | if test "$enableval" = yes; then |
4794 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
4795 | else | |
4796 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
4797 | fi | |
698dcdb6 | 4798 | |
b64f0a5f | 4799 | else |
698dcdb6 | 4800 | |
b64f0a5f RL |
4801 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
4802 | if test "x$LINE" != x ; then | |
4803 | eval "DEFAULT_$LINE" | |
4804 | else | |
4805 | no_cache=1 | |
4806 | fi | |
4807 | ||
4808 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
698dcdb6 VZ |
4809 | |
4810 | fi | |
b64f0a5f RL |
4811 | |
4812 | ||
4813 | eval "$ac_cv_use_metafile" | |
4814 | if test "$no_cache" != 1; then | |
4815 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
4816 | fi | |
4817 | ||
4818 | if test "$wxUSE_METAFILE" = yes; then | |
698dcdb6 | 4819 | echo "$ac_t""yes" 1>&6 |
b64f0a5f | 4820 | else |
698dcdb6 | 4821 | echo "$ac_t""no" 1>&6 |
b64f0a5f | 4822 | fi |
698dcdb6 VZ |
4823 | |
4824 | ||
10f2d63a | 4825 | |
698dcdb6 | 4826 | echo $ac_n "checking for --enable-wxtree""... $ac_c" 1>&6 |
3379ed37 | 4827 | echo "configure:4828: checking for --enable-wxtree" >&5 |
10f2d63a VZ |
4828 | no_cache=0 |
4829 | # Check whether --enable-wxtree or --disable-wxtree was given. | |
4830 | if test "${enable_wxtree+set}" = set; then | |
4831 | enableval="$enable_wxtree" | |
698dcdb6 | 4832 | |
10f2d63a VZ |
4833 | if test "$enableval" = yes; then |
4834 | ac_cv_use_wxtree='wxUSE_WXTREE=yes' | |
4835 | else | |
4836 | ac_cv_use_wxtree='wxUSE_WXTREE=no' | |
4837 | fi | |
698dcdb6 | 4838 | |
10f2d63a | 4839 | else |
698dcdb6 | 4840 | |
10f2d63a VZ |
4841 | LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}` |
4842 | if test "x$LINE" != x ; then | |
4843 | eval "DEFAULT_$LINE" | |
4844 | else | |
4845 | no_cache=1 | |
4846 | fi | |
4847 | ||
4848 | ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE | |
698dcdb6 VZ |
4849 | |
4850 | fi | |
10f2d63a VZ |
4851 | |
4852 | ||
4853 | eval "$ac_cv_use_wxtree" | |
4854 | if test "$no_cache" != 1; then | |
4855 | echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp | |
4856 | fi | |
4857 | ||
4858 | if test "$wxUSE_WXTREE" = yes; then | |
698dcdb6 | 4859 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4860 | else |
698dcdb6 | 4861 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4862 | fi |
698dcdb6 | 4863 | |
10f2d63a | 4864 | |
698dcdb6 VZ |
4865 | |
4866 | ||
4867 | echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6 | |
3379ed37 | 4868 | echo "configure:4869: checking for --enable-controls" >&5 |
10f2d63a VZ |
4869 | no_cache=0 |
4870 | # Check whether --enable-controls or --disable-controls was given. | |
4871 | if test "${enable_controls+set}" = set; then | |
4872 | enableval="$enable_controls" | |
698dcdb6 | 4873 | |
10f2d63a VZ |
4874 | if test "$enableval" = yes; then |
4875 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
4876 | else | |
4877 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
4878 | fi | |
698dcdb6 | 4879 | |
10f2d63a | 4880 | else |
698dcdb6 | 4881 | |
10f2d63a VZ |
4882 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` |
4883 | if test "x$LINE" != x ; then | |
4884 | eval "DEFAULT_$LINE" | |
4885 | else | |
4886 | no_cache=1 | |
4887 | fi | |
4888 | ||
4889 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
698dcdb6 VZ |
4890 | |
4891 | fi | |
10f2d63a VZ |
4892 | |
4893 | ||
4894 | eval "$ac_cv_use_controls" | |
4895 | if test "$no_cache" != 1; then | |
4896 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
4897 | fi | |
4898 | ||
4899 | if test "$wxUSE_CONTROLS" = yes; then | |
698dcdb6 | 4900 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4901 | else |
698dcdb6 | 4902 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4903 | fi |
698dcdb6 | 4904 | |
10f2d63a VZ |
4905 | |
4906 | if test "$wxUSE_CONTROLS" = "yes"; then | |
4907 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 VZ |
4908 | DEFAULT_wxUSE_BMPBUTTON=yes |
4909 | DEFAULT_wxUSE_BUTTON=yes | |
4910 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
4911 | DEFAULT_wxUSE_CARET=yes |
4912 | DEFAULT_wxUSE_COMBOBOX=yes | |
10f2d63a VZ |
4913 | DEFAULT_wxUSE_CHECKBOX=yes |
4914 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
4915 | DEFAULT_wxUSE_CHOICE=yes | |
4916 | DEFAULT_wxUSE_GAUGE=yes | |
4917 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 4918 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
4919 | DEFAULT_wxUSE_IMAGLIST=yes |
4920 | DEFAULT_wxUSE_LISTBOX=yes | |
4921 | DEFAULT_wxUSE_LISTCTRL=yes | |
4922 | DEFAULT_wxUSE_NOTEBOOK=yes | |
4923 | DEFAULT_wxUSE_RADIOBOX=yes | |
4924 | DEFAULT_wxUSE_RADIOBTN=yes | |
4925 | DEFAULT_wxUSE_SASH=yes | |
4926 | DEFAULT_wxUSE_SCROLLBAR=yes | |
4927 | DEFAULT_wxUSE_SLIDER=yes | |
4928 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 4929 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
4930 | DEFAULT_wxUSE_SPLITTER=yes |
4931 | DEFAULT_wxUSE_STATBMP=yes | |
4932 | DEFAULT_wxUSE_STATBOX=yes | |
4933 | DEFAULT_wxUSE_STATLINE=yes | |
4934 | DEFAULT_wxUSE_STATUSBAR=yes | |
4935 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
1db8dc4a | 4936 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 4937 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
4938 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
4939 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
4940 | DEFAULT_wxUSE_TOOLTIPS=yes |
4941 | DEFAULT_wxUSE_TREECTRL=yes | |
4942 | elif test "$wxUSE_CONTROLS" = "no"; then | |
4943 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 VZ |
4944 | DEFAULT_wxUSE_BMPBUTTON=no |
4945 | DEFAULT_wxUSE_BUTTON=no | |
4946 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
4947 | DEFAULT_wxUSE_CARET=no |
4948 | DEFAULT_wxUSE_COMBOBOX=no | |
10f2d63a VZ |
4949 | DEFAULT_wxUSE_CHECKBOX=no |
4950 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
4951 | DEFAULT_wxUSE_CHOICE=no | |
4952 | DEFAULT_wxUSE_GAUGE=no | |
4953 | DEFAULT_wxUSE_GRID=no | |
4954 | DEFAULT_wxUSE_NEW_GRID=no | |
4955 | DEFAULT_wxUSE_IMAGLIST=no | |
4956 | DEFAULT_wxUSE_LISTBOX=no | |
4957 | DEFAULT_wxUSE_LISTCTRL=no | |
4958 | DEFAULT_wxUSE_NOTEBOOK=no | |
4959 | DEFAULT_wxUSE_RADIOBOX=no | |
4960 | DEFAULT_wxUSE_RADIOBTN=no | |
4961 | DEFAULT_wxUSE_SASH=no | |
4962 | DEFAULT_wxUSE_SCROLLBAR=no | |
4963 | DEFAULT_wxUSE_SLIDER=no | |
4964 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 4965 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
4966 | DEFAULT_wxUSE_SPLITTER=no |
4967 | DEFAULT_wxUSE_STATBMP=no | |
4968 | DEFAULT_wxUSE_STATBOX=no | |
4969 | DEFAULT_wxUSE_STATLINE=no | |
4970 | DEFAULT_wxUSE_STATUSBAR=no | |
4971 | DEFAULT_wxUSE_TAB_DIALOG=no | |
1db8dc4a | 4972 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 4973 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
4974 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
4975 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
4976 | DEFAULT_wxUSE_TOOLTIPS=no |
4977 | DEFAULT_wxUSE_TREECTRL=no | |
4978 | fi | |
4979 | ||
698dcdb6 VZ |
4980 | |
4981 | echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6 | |
3379ed37 | 4982 | echo "configure:4983: checking for --enable-accel" >&5 |
10f2d63a VZ |
4983 | no_cache=0 |
4984 | # Check whether --enable-accel or --disable-accel was given. | |
4985 | if test "${enable_accel+set}" = set; then | |
4986 | enableval="$enable_accel" | |
698dcdb6 | 4987 | |
10f2d63a VZ |
4988 | if test "$enableval" = yes; then |
4989 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
4990 | else | |
4991 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
4992 | fi | |
698dcdb6 | 4993 | |
10f2d63a | 4994 | else |
698dcdb6 | 4995 | |
10f2d63a VZ |
4996 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` |
4997 | if test "x$LINE" != x ; then | |
4998 | eval "DEFAULT_$LINE" | |
4999 | else | |
5000 | no_cache=1 | |
5001 | fi | |
5002 | ||
5003 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
698dcdb6 VZ |
5004 | |
5005 | fi | |
10f2d63a VZ |
5006 | |
5007 | ||
5008 | eval "$ac_cv_use_accel" | |
5009 | if test "$no_cache" != 1; then | |
5010 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
5011 | fi | |
5012 | ||
5013 | if test "$wxUSE_ACCEL" = yes; then | |
698dcdb6 | 5014 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5015 | else |
698dcdb6 | 5016 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5017 | fi |
698dcdb6 | 5018 | |
10f2d63a | 5019 | |
1e6feb95 | 5020 | echo $ac_n "checking for --enable-button""... $ac_c" 1>&6 |
3379ed37 | 5021 | echo "configure:5022: checking for --enable-button" >&5 |
10f2d63a | 5022 | no_cache=0 |
1e6feb95 VZ |
5023 | # Check whether --enable-button or --disable-button was given. |
5024 | if test "${enable_button+set}" = set; then | |
5025 | enableval="$enable_button" | |
698dcdb6 | 5026 | |
10f2d63a | 5027 | if test "$enableval" = yes; then |
1e6feb95 | 5028 | ac_cv_use_button='wxUSE_BUTTON=yes' |
10f2d63a | 5029 | else |
1e6feb95 | 5030 | ac_cv_use_button='wxUSE_BUTTON=no' |
10f2d63a | 5031 | fi |
698dcdb6 | 5032 | |
10f2d63a | 5033 | else |
698dcdb6 | 5034 | |
1e6feb95 | 5035 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` |
10f2d63a VZ |
5036 | if test "x$LINE" != x ; then |
5037 | eval "DEFAULT_$LINE" | |
5038 | else | |
5039 | no_cache=1 | |
5040 | fi | |
5041 | ||
1e6feb95 | 5042 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON |
698dcdb6 VZ |
5043 | |
5044 | fi | |
10f2d63a VZ |
5045 | |
5046 | ||
1e6feb95 | 5047 | eval "$ac_cv_use_button" |
10f2d63a | 5048 | if test "$no_cache" != 1; then |
1e6feb95 | 5049 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5050 | fi |
5051 | ||
1e6feb95 | 5052 | if test "$wxUSE_BUTTON" = yes; then |
698dcdb6 | 5053 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5054 | else |
698dcdb6 | 5055 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5056 | fi |
698dcdb6 | 5057 | |
10f2d63a | 5058 | |
698dcdb6 | 5059 | echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6 |
3379ed37 | 5060 | echo "configure:5061: checking for --enable-bmpbutton" >&5 |
10f2d63a VZ |
5061 | no_cache=0 |
5062 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
5063 | if test "${enable_bmpbutton+set}" = set; then | |
5064 | enableval="$enable_bmpbutton" | |
698dcdb6 | 5065 | |
10f2d63a VZ |
5066 | if test "$enableval" = yes; then |
5067 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
5068 | else | |
5069 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
5070 | fi | |
698dcdb6 | 5071 | |
10f2d63a | 5072 | else |
698dcdb6 | 5073 | |
10f2d63a VZ |
5074 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` |
5075 | if test "x$LINE" != x ; then | |
5076 | eval "DEFAULT_$LINE" | |
5077 | else | |
5078 | no_cache=1 | |
5079 | fi | |
5080 | ||
5081 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
698dcdb6 VZ |
5082 | |
5083 | fi | |
10f2d63a VZ |
5084 | |
5085 | ||
5086 | eval "$ac_cv_use_bmpbutton" | |
5087 | if test "$no_cache" != 1; then | |
5088 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
5089 | fi | |
5090 | ||
5091 | if test "$wxUSE_BMPBUTTON" = yes; then | |
698dcdb6 | 5092 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5093 | else |
698dcdb6 | 5094 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5095 | fi |
698dcdb6 | 5096 | |
10f2d63a | 5097 | |
1e6feb95 | 5098 | echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6 |
3379ed37 | 5099 | echo "configure:5100: checking for --enable-calendar" >&5 |
1e6feb95 VZ |
5100 | no_cache=0 |
5101 | # Check whether --enable-calendar or --disable-calendar was given. | |
5102 | if test "${enable_calendar+set}" = set; then | |
5103 | enableval="$enable_calendar" | |
5104 | ||
5105 | if test "$enableval" = yes; then | |
5106 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
5107 | else | |
5108 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
5109 | fi | |
5110 | ||
5111 | else | |
5112 | ||
5113 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
5114 | if test "x$LINE" != x ; then | |
5115 | eval "DEFAULT_$LINE" | |
5116 | else | |
5117 | no_cache=1 | |
5118 | fi | |
5119 | ||
5120 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
5121 | ||
5122 | fi | |
5123 | ||
5124 | ||
5125 | eval "$ac_cv_use_calendar" | |
5126 | if test "$no_cache" != 1; then | |
5127 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
5128 | fi | |
5129 | ||
5130 | if test "$wxUSE_CALCTRL" = yes; then | |
5131 | echo "$ac_t""yes" 1>&6 | |
5132 | else | |
5133 | echo "$ac_t""no" 1>&6 | |
5134 | fi | |
5135 | ||
5136 | ||
5137 | echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6 | |
3379ed37 | 5138 | echo "configure:5139: checking for --enable-caret" >&5 |
1e6feb95 VZ |
5139 | no_cache=0 |
5140 | # Check whether --enable-caret or --disable-caret was given. | |
5141 | if test "${enable_caret+set}" = set; then | |
5142 | enableval="$enable_caret" | |
5143 | ||
5144 | if test "$enableval" = yes; then | |
5145 | ac_cv_use_caret='wxUSE_CARET=yes' | |
5146 | else | |
5147 | ac_cv_use_caret='wxUSE_CARET=no' | |
5148 | fi | |
5149 | ||
5150 | else | |
5151 | ||
5152 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
5153 | if test "x$LINE" != x ; then | |
5154 | eval "DEFAULT_$LINE" | |
5155 | else | |
5156 | no_cache=1 | |
5157 | fi | |
5158 | ||
5159 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
5160 | ||
5161 | fi | |
5162 | ||
5163 | ||
5164 | eval "$ac_cv_use_caret" | |
5165 | if test "$no_cache" != 1; then | |
5166 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
5167 | fi | |
5168 | ||
5169 | if test "$wxUSE_CARET" = yes; then | |
5170 | echo "$ac_t""yes" 1>&6 | |
5171 | else | |
5172 | echo "$ac_t""no" 1>&6 | |
5173 | fi | |
5174 | ||
5175 | ||
698dcdb6 | 5176 | echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6 |
3379ed37 | 5177 | echo "configure:5178: checking for --enable-checkbox" >&5 |
10f2d63a VZ |
5178 | no_cache=0 |
5179 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
5180 | if test "${enable_checkbox+set}" = set; then | |
5181 | enableval="$enable_checkbox" | |
698dcdb6 | 5182 | |
10f2d63a VZ |
5183 | if test "$enableval" = yes; then |
5184 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
5185 | else | |
5186 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
5187 | fi | |
698dcdb6 | 5188 | |
10f2d63a | 5189 | else |
698dcdb6 | 5190 | |
10f2d63a VZ |
5191 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` |
5192 | if test "x$LINE" != x ; then | |
5193 | eval "DEFAULT_$LINE" | |
5194 | else | |
5195 | no_cache=1 | |
5196 | fi | |
5197 | ||
5198 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
698dcdb6 VZ |
5199 | |
5200 | fi | |
10f2d63a VZ |
5201 | |
5202 | ||
5203 | eval "$ac_cv_use_checkbox" | |
5204 | if test "$no_cache" != 1; then | |
5205 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
5206 | fi | |
5207 | ||
5208 | if test "$wxUSE_CHECKBOX" = yes; then | |
698dcdb6 | 5209 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5210 | else |
698dcdb6 | 5211 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5212 | fi |
698dcdb6 | 5213 | |
10f2d63a | 5214 | |
698dcdb6 | 5215 | echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6 |
3379ed37 | 5216 | echo "configure:5217: checking for --enable-checklst" >&5 |
10f2d63a VZ |
5217 | no_cache=0 |
5218 | # Check whether --enable-checklst or --disable-checklst was given. | |
5219 | if test "${enable_checklst+set}" = set; then | |
5220 | enableval="$enable_checklst" | |
698dcdb6 | 5221 | |
10f2d63a VZ |
5222 | if test "$enableval" = yes; then |
5223 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
5224 | else | |
5225 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
5226 | fi | |
698dcdb6 | 5227 | |
10f2d63a | 5228 | else |
698dcdb6 | 5229 | |
10f2d63a VZ |
5230 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` |
5231 | if test "x$LINE" != x ; then | |
5232 | eval "DEFAULT_$LINE" | |
5233 | else | |
5234 | no_cache=1 | |
5235 | fi | |
5236 | ||
5237 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
698dcdb6 VZ |
5238 | |
5239 | fi | |
10f2d63a VZ |
5240 | |
5241 | ||
5242 | eval "$ac_cv_use_checklst" | |
5243 | if test "$no_cache" != 1; then | |
5244 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
5245 | fi | |
5246 | ||
5247 | if test "$wxUSE_CHECKLST" = yes; then | |
698dcdb6 | 5248 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5249 | else |
698dcdb6 | 5250 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5251 | fi |
698dcdb6 | 5252 | |
10f2d63a | 5253 | |
698dcdb6 | 5254 | echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6 |
3379ed37 | 5255 | echo "configure:5256: checking for --enable-choice" >&5 |
10f2d63a VZ |
5256 | no_cache=0 |
5257 | # Check whether --enable-choice or --disable-choice was given. | |
5258 | if test "${enable_choice+set}" = set; then | |
5259 | enableval="$enable_choice" | |
698dcdb6 | 5260 | |
10f2d63a VZ |
5261 | if test "$enableval" = yes; then |
5262 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
5263 | else | |
5264 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
5265 | fi | |
698dcdb6 | 5266 | |
10f2d63a | 5267 | else |
698dcdb6 | 5268 | |
10f2d63a VZ |
5269 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` |
5270 | if test "x$LINE" != x ; then | |
5271 | eval "DEFAULT_$LINE" | |
5272 | else | |
5273 | no_cache=1 | |
5274 | fi | |
5275 | ||
5276 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
698dcdb6 VZ |
5277 | |
5278 | fi | |
10f2d63a VZ |
5279 | |
5280 | ||
5281 | eval "$ac_cv_use_choice" | |
5282 | if test "$no_cache" != 1; then | |
5283 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
5284 | fi | |
5285 | ||
5286 | if test "$wxUSE_CHOICE" = yes; then | |
698dcdb6 | 5287 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5288 | else |
698dcdb6 | 5289 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5290 | fi |
698dcdb6 | 5291 | |
10f2d63a | 5292 | |
698dcdb6 | 5293 | echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6 |
3379ed37 | 5294 | echo "configure:5295: checking for --enable-combobox" >&5 |
10f2d63a VZ |
5295 | no_cache=0 |
5296 | # Check whether --enable-combobox or --disable-combobox was given. | |
5297 | if test "${enable_combobox+set}" = set; then | |
5298 | enableval="$enable_combobox" | |
698dcdb6 | 5299 | |
10f2d63a VZ |
5300 | if test "$enableval" = yes; then |
5301 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
5302 | else | |
5303 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
5304 | fi | |
698dcdb6 | 5305 | |
10f2d63a | 5306 | else |
698dcdb6 | 5307 | |
10f2d63a VZ |
5308 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` |
5309 | if test "x$LINE" != x ; then | |
5310 | eval "DEFAULT_$LINE" | |
5311 | else | |
5312 | no_cache=1 | |
5313 | fi | |
5314 | ||
5315 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
698dcdb6 VZ |
5316 | |
5317 | fi | |
10f2d63a VZ |
5318 | |
5319 | ||
5320 | eval "$ac_cv_use_combobox" | |
5321 | if test "$no_cache" != 1; then | |
5322 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
5323 | fi | |
5324 | ||
5325 | if test "$wxUSE_COMBOBOX" = yes; then | |
698dcdb6 | 5326 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5327 | else |
698dcdb6 | 5328 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5329 | fi |
698dcdb6 | 5330 | |
10f2d63a | 5331 | |
698dcdb6 | 5332 | echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6 |
3379ed37 | 5333 | echo "configure:5334: checking for --enable-gauge" >&5 |
10f2d63a VZ |
5334 | no_cache=0 |
5335 | # Check whether --enable-gauge or --disable-gauge was given. | |
5336 | if test "${enable_gauge+set}" = set; then | |
5337 | enableval="$enable_gauge" | |
698dcdb6 | 5338 | |
10f2d63a VZ |
5339 | if test "$enableval" = yes; then |
5340 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
5341 | else | |
5342 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
5343 | fi | |
698dcdb6 | 5344 | |
10f2d63a | 5345 | else |
698dcdb6 | 5346 | |
10f2d63a VZ |
5347 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` |
5348 | if test "x$LINE" != x ; then | |
5349 | eval "DEFAULT_$LINE" | |
5350 | else | |
5351 | no_cache=1 | |
5352 | fi | |
5353 | ||
5354 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
698dcdb6 VZ |
5355 | |
5356 | fi | |
10f2d63a VZ |
5357 | |
5358 | ||
5359 | eval "$ac_cv_use_gauge" | |
5360 | if test "$no_cache" != 1; then | |
5361 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
5362 | fi | |
5363 | ||
5364 | if test "$wxUSE_GAUGE" = yes; then | |
698dcdb6 | 5365 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5366 | else |
698dcdb6 | 5367 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5368 | fi |
698dcdb6 | 5369 | |
10f2d63a | 5370 | |
698dcdb6 | 5371 | echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6 |
3379ed37 | 5372 | echo "configure:5373: checking for --enable-grid" >&5 |
10f2d63a VZ |
5373 | no_cache=0 |
5374 | # Check whether --enable-grid or --disable-grid was given. | |
5375 | if test "${enable_grid+set}" = set; then | |
5376 | enableval="$enable_grid" | |
698dcdb6 | 5377 | |
10f2d63a VZ |
5378 | if test "$enableval" = yes; then |
5379 | ac_cv_use_grid='wxUSE_GRID=yes' | |
5380 | else | |
5381 | ac_cv_use_grid='wxUSE_GRID=no' | |
5382 | fi | |
698dcdb6 | 5383 | |
10f2d63a | 5384 | else |
698dcdb6 | 5385 | |
10f2d63a VZ |
5386 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` |
5387 | if test "x$LINE" != x ; then | |
5388 | eval "DEFAULT_$LINE" | |
5389 | else | |
5390 | no_cache=1 | |
5391 | fi | |
5392 | ||
5393 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
698dcdb6 VZ |
5394 | |
5395 | fi | |
10f2d63a VZ |
5396 | |
5397 | ||
5398 | eval "$ac_cv_use_grid" | |
5399 | if test "$no_cache" != 1; then | |
5400 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
5401 | fi | |
5402 | ||
5403 | if test "$wxUSE_GRID" = yes; then | |
698dcdb6 | 5404 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5405 | else |
698dcdb6 | 5406 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5407 | fi |
698dcdb6 | 5408 | |
10f2d63a | 5409 | |
698dcdb6 | 5410 | echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6 |
3379ed37 | 5411 | echo "configure:5412: checking for --enable-newgrid" >&5 |
10f2d63a VZ |
5412 | no_cache=0 |
5413 | # Check whether --enable-newgrid or --disable-newgrid was given. | |
5414 | if test "${enable_newgrid+set}" = set; then | |
5415 | enableval="$enable_newgrid" | |
698dcdb6 | 5416 | |
10f2d63a VZ |
5417 | if test "$enableval" = yes; then |
5418 | ac_cv_use_newgrid='wxUSE_NEW_GRID=yes' | |
5419 | else | |
5420 | ac_cv_use_newgrid='wxUSE_NEW_GRID=no' | |
5421 | fi | |
698dcdb6 | 5422 | |
10f2d63a | 5423 | else |
698dcdb6 | 5424 | |
10f2d63a VZ |
5425 | LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}` |
5426 | if test "x$LINE" != x ; then | |
5427 | eval "DEFAULT_$LINE" | |
5428 | else | |
5429 | no_cache=1 | |
5430 | fi | |
5431 | ||
5432 | ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID | |
698dcdb6 VZ |
5433 | |
5434 | fi | |
10f2d63a VZ |
5435 | |
5436 | ||
5437 | eval "$ac_cv_use_newgrid" | |
5438 | if test "$no_cache" != 1; then | |
5439 | echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp | |
5440 | fi | |
5441 | ||
5442 | if test "$wxUSE_NEW_GRID" = yes; then | |
698dcdb6 | 5443 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5444 | else |
698dcdb6 | 5445 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5446 | fi |
698dcdb6 | 5447 | |
10f2d63a | 5448 | |
698dcdb6 | 5449 | echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6 |
3379ed37 | 5450 | echo "configure:5451: checking for --enable-imaglist" >&5 |
10f2d63a VZ |
5451 | no_cache=0 |
5452 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
5453 | if test "${enable_imaglist+set}" = set; then | |
5454 | enableval="$enable_imaglist" | |
698dcdb6 | 5455 | |
10f2d63a VZ |
5456 | if test "$enableval" = yes; then |
5457 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
5458 | else | |
5459 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
5460 | fi | |
698dcdb6 | 5461 | |
10f2d63a | 5462 | else |
698dcdb6 | 5463 | |
10f2d63a VZ |
5464 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` |
5465 | if test "x$LINE" != x ; then | |
5466 | eval "DEFAULT_$LINE" | |
5467 | else | |
5468 | no_cache=1 | |
5469 | fi | |
5470 | ||
5471 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
698dcdb6 VZ |
5472 | |
5473 | fi | |
10f2d63a VZ |
5474 | |
5475 | ||
5476 | eval "$ac_cv_use_imaglist" | |
5477 | if test "$no_cache" != 1; then | |
5478 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
5479 | fi | |
5480 | ||
5481 | if test "$wxUSE_IMAGLIST" = yes; then | |
698dcdb6 | 5482 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5483 | else |
698dcdb6 | 5484 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5485 | fi |
698dcdb6 | 5486 | |
10f2d63a | 5487 | |
698dcdb6 | 5488 | echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6 |
3379ed37 | 5489 | echo "configure:5490: checking for --enable-listbox" >&5 |
10f2d63a VZ |
5490 | no_cache=0 |
5491 | # Check whether --enable-listbox or --disable-listbox was given. | |
5492 | if test "${enable_listbox+set}" = set; then | |
5493 | enableval="$enable_listbox" | |
698dcdb6 | 5494 | |
10f2d63a VZ |
5495 | if test "$enableval" = yes; then |
5496 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
5497 | else | |
5498 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
5499 | fi | |
698dcdb6 | 5500 | |
10f2d63a | 5501 | else |
698dcdb6 | 5502 | |
10f2d63a VZ |
5503 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` |
5504 | if test "x$LINE" != x ; then | |
5505 | eval "DEFAULT_$LINE" | |
5506 | else | |
5507 | no_cache=1 | |
5508 | fi | |
5509 | ||
5510 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
698dcdb6 VZ |
5511 | |
5512 | fi | |
10f2d63a VZ |
5513 | |
5514 | ||
5515 | eval "$ac_cv_use_listbox" | |
5516 | if test "$no_cache" != 1; then | |
5517 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
5518 | fi | |
5519 | ||
5520 | if test "$wxUSE_LISTBOX" = yes; then | |
698dcdb6 | 5521 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5522 | else |
698dcdb6 | 5523 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5524 | fi |
698dcdb6 | 5525 | |
10f2d63a | 5526 | |
698dcdb6 | 5527 | echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6 |
3379ed37 | 5528 | echo "configure:5529: checking for --enable-listctrl" >&5 |
10f2d63a VZ |
5529 | no_cache=0 |
5530 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
5531 | if test "${enable_listctrl+set}" = set; then | |
5532 | enableval="$enable_listctrl" | |
698dcdb6 | 5533 | |
10f2d63a VZ |
5534 | if test "$enableval" = yes; then |
5535 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
5536 | else | |
5537 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
5538 | fi | |
698dcdb6 | 5539 | |
10f2d63a | 5540 | else |
698dcdb6 | 5541 | |
10f2d63a VZ |
5542 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` |
5543 | if test "x$LINE" != x ; then | |
5544 | eval "DEFAULT_$LINE" | |
5545 | else | |
5546 | no_cache=1 | |
5547 | fi | |
5548 | ||
5549 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
698dcdb6 VZ |
5550 | |
5551 | fi | |
10f2d63a VZ |
5552 | |
5553 | ||
5554 | eval "$ac_cv_use_listctrl" | |
5555 | if test "$no_cache" != 1; then | |
5556 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
5557 | fi | |
5558 | ||
5559 | if test "$wxUSE_LISTCTRL" = yes; then | |
698dcdb6 | 5560 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5561 | else |
698dcdb6 | 5562 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5563 | fi |
698dcdb6 | 5564 | |
10f2d63a | 5565 | |
698dcdb6 | 5566 | echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6 |
3379ed37 | 5567 | echo "configure:5568: checking for --enable-notebook" >&5 |
10f2d63a VZ |
5568 | no_cache=0 |
5569 | # Check whether --enable-notebook or --disable-notebook was given. | |
5570 | if test "${enable_notebook+set}" = set; then | |
5571 | enableval="$enable_notebook" | |
698dcdb6 | 5572 | |
10f2d63a VZ |
5573 | if test "$enableval" = yes; then |
5574 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
5575 | else | |
5576 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
5577 | fi | |
698dcdb6 | 5578 | |
10f2d63a | 5579 | else |
698dcdb6 | 5580 | |
10f2d63a VZ |
5581 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` |
5582 | if test "x$LINE" != x ; then | |
5583 | eval "DEFAULT_$LINE" | |
5584 | else | |
5585 | no_cache=1 | |
5586 | fi | |
5587 | ||
5588 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
698dcdb6 VZ |
5589 | |
5590 | fi | |
10f2d63a VZ |
5591 | |
5592 | ||
5593 | eval "$ac_cv_use_notebook" | |
5594 | if test "$no_cache" != 1; then | |
5595 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
5596 | fi | |
5597 | ||
5598 | if test "$wxUSE_NOTEBOOK" = yes; then | |
698dcdb6 | 5599 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5600 | else |
698dcdb6 | 5601 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5602 | fi |
698dcdb6 | 5603 | |
10f2d63a | 5604 | |
698dcdb6 | 5605 | echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6 |
3379ed37 | 5606 | echo "configure:5607: checking for --enable-radiobox" >&5 |
10f2d63a VZ |
5607 | no_cache=0 |
5608 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
5609 | if test "${enable_radiobox+set}" = set; then | |
5610 | enableval="$enable_radiobox" | |
698dcdb6 | 5611 | |
10f2d63a VZ |
5612 | if test "$enableval" = yes; then |
5613 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
5614 | else | |
5615 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
5616 | fi | |
698dcdb6 | 5617 | |
10f2d63a | 5618 | else |
698dcdb6 | 5619 | |
10f2d63a VZ |
5620 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` |
5621 | if test "x$LINE" != x ; then | |
5622 | eval "DEFAULT_$LINE" | |
5623 | else | |
5624 | no_cache=1 | |
5625 | fi | |
5626 | ||
5627 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
698dcdb6 VZ |
5628 | |
5629 | fi | |
10f2d63a VZ |
5630 | |
5631 | ||
5632 | eval "$ac_cv_use_radiobox" | |
5633 | if test "$no_cache" != 1; then | |
5634 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
5635 | fi | |
5636 | ||
5637 | if test "$wxUSE_RADIOBOX" = yes; then | |
698dcdb6 | 5638 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5639 | else |
698dcdb6 | 5640 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5641 | fi |
698dcdb6 | 5642 | |
10f2d63a | 5643 | |
698dcdb6 | 5644 | echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6 |
3379ed37 | 5645 | echo "configure:5646: checking for --enable-radiobtn" >&5 |
10f2d63a VZ |
5646 | no_cache=0 |
5647 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
5648 | if test "${enable_radiobtn+set}" = set; then | |
5649 | enableval="$enable_radiobtn" | |
698dcdb6 | 5650 | |
10f2d63a VZ |
5651 | if test "$enableval" = yes; then |
5652 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
5653 | else | |
5654 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
5655 | fi | |
698dcdb6 | 5656 | |
10f2d63a | 5657 | else |
698dcdb6 | 5658 | |
10f2d63a VZ |
5659 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` |
5660 | if test "x$LINE" != x ; then | |
5661 | eval "DEFAULT_$LINE" | |
5662 | else | |
5663 | no_cache=1 | |
5664 | fi | |
5665 | ||
5666 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
698dcdb6 VZ |
5667 | |
5668 | fi | |
10f2d63a VZ |
5669 | |
5670 | ||
5671 | eval "$ac_cv_use_radiobtn" | |
5672 | if test "$no_cache" != 1; then | |
5673 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
5674 | fi | |
5675 | ||
5676 | if test "$wxUSE_RADIOBTN" = yes; then | |
698dcdb6 | 5677 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5678 | else |
698dcdb6 | 5679 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5680 | fi |
698dcdb6 | 5681 | |
10f2d63a | 5682 | |
698dcdb6 | 5683 | echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6 |
3379ed37 | 5684 | echo "configure:5685: checking for --enable-sash" >&5 |
10f2d63a VZ |
5685 | no_cache=0 |
5686 | # Check whether --enable-sash or --disable-sash was given. | |
5687 | if test "${enable_sash+set}" = set; then | |
5688 | enableval="$enable_sash" | |
698dcdb6 | 5689 | |
10f2d63a VZ |
5690 | if test "$enableval" = yes; then |
5691 | ac_cv_use_sash='wxUSE_SASH=yes' | |
5692 | else | |
5693 | ac_cv_use_sash='wxUSE_SASH=no' | |
5694 | fi | |
698dcdb6 | 5695 | |
10f2d63a | 5696 | else |
698dcdb6 | 5697 | |
10f2d63a VZ |
5698 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` |
5699 | if test "x$LINE" != x ; then | |
5700 | eval "DEFAULT_$LINE" | |
5701 | else | |
5702 | no_cache=1 | |
5703 | fi | |
5704 | ||
5705 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
698dcdb6 VZ |
5706 | |
5707 | fi | |
10f2d63a VZ |
5708 | |
5709 | ||
5710 | eval "$ac_cv_use_sash" | |
5711 | if test "$no_cache" != 1; then | |
5712 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
5713 | fi | |
5714 | ||
5715 | if test "$wxUSE_SASH" = yes; then | |
698dcdb6 | 5716 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5717 | else |
698dcdb6 | 5718 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5719 | fi |
698dcdb6 | 5720 | |
10f2d63a | 5721 | |
698dcdb6 | 5722 | echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6 |
3379ed37 | 5723 | echo "configure:5724: checking for --enable-scrollbar" >&5 |
10f2d63a VZ |
5724 | no_cache=0 |
5725 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
5726 | if test "${enable_scrollbar+set}" = set; then | |
5727 | enableval="$enable_scrollbar" | |
698dcdb6 | 5728 | |
10f2d63a VZ |
5729 | if test "$enableval" = yes; then |
5730 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
5731 | else | |
5732 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
5733 | fi | |
698dcdb6 | 5734 | |
10f2d63a | 5735 | else |
698dcdb6 | 5736 | |
10f2d63a VZ |
5737 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` |
5738 | if test "x$LINE" != x ; then | |
5739 | eval "DEFAULT_$LINE" | |
5740 | else | |
5741 | no_cache=1 | |
5742 | fi | |
5743 | ||
5744 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
698dcdb6 VZ |
5745 | |
5746 | fi | |
10f2d63a VZ |
5747 | |
5748 | ||
5749 | eval "$ac_cv_use_scrollbar" | |
5750 | if test "$no_cache" != 1; then | |
5751 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
5752 | fi | |
5753 | ||
5754 | if test "$wxUSE_SCROLLBAR" = yes; then | |
698dcdb6 | 5755 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5756 | else |
698dcdb6 | 5757 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5758 | fi |
698dcdb6 | 5759 | |
10f2d63a | 5760 | |
698dcdb6 | 5761 | echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6 |
3379ed37 | 5762 | echo "configure:5763: checking for --enable-slider" >&5 |
10f2d63a VZ |
5763 | no_cache=0 |
5764 | # Check whether --enable-slider or --disable-slider was given. | |
5765 | if test "${enable_slider+set}" = set; then | |
5766 | enableval="$enable_slider" | |
698dcdb6 | 5767 | |
10f2d63a VZ |
5768 | if test "$enableval" = yes; then |
5769 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
5770 | else | |
5771 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
5772 | fi | |
698dcdb6 | 5773 | |
10f2d63a | 5774 | else |
698dcdb6 | 5775 | |
10f2d63a VZ |
5776 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` |
5777 | if test "x$LINE" != x ; then | |
5778 | eval "DEFAULT_$LINE" | |
5779 | else | |
5780 | no_cache=1 | |
5781 | fi | |
5782 | ||
5783 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
698dcdb6 VZ |
5784 | |
5785 | fi | |
10f2d63a VZ |
5786 | |
5787 | ||
5788 | eval "$ac_cv_use_slider" | |
5789 | if test "$no_cache" != 1; then | |
5790 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
5791 | fi | |
5792 | ||
5793 | if test "$wxUSE_SLIDER" = yes; then | |
698dcdb6 | 5794 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5795 | else |
698dcdb6 | 5796 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5797 | fi |
698dcdb6 | 5798 | |
10f2d63a | 5799 | |
698dcdb6 | 5800 | echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6 |
3379ed37 | 5801 | echo "configure:5802: checking for --enable-spinbtn" >&5 |
10f2d63a VZ |
5802 | no_cache=0 |
5803 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
5804 | if test "${enable_spinbtn+set}" = set; then | |
5805 | enableval="$enable_spinbtn" | |
698dcdb6 | 5806 | |
10f2d63a VZ |
5807 | if test "$enableval" = yes; then |
5808 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
5809 | else | |
5810 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
5811 | fi | |
698dcdb6 | 5812 | |
10f2d63a | 5813 | else |
698dcdb6 | 5814 | |
10f2d63a VZ |
5815 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` |
5816 | if test "x$LINE" != x ; then | |
5817 | eval "DEFAULT_$LINE" | |
5818 | else | |
5819 | no_cache=1 | |
5820 | fi | |
5821 | ||
5822 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
698dcdb6 VZ |
5823 | |
5824 | fi | |
10f2d63a VZ |
5825 | |
5826 | ||
5827 | eval "$ac_cv_use_spinbtn" | |
5828 | if test "$no_cache" != 1; then | |
5829 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
5830 | fi | |
5831 | ||
5832 | if test "$wxUSE_SPINBTN" = yes; then | |
698dcdb6 | 5833 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5834 | else |
698dcdb6 | 5835 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5836 | fi |
698dcdb6 | 5837 | |
10f2d63a | 5838 | |
698dcdb6 | 5839 | echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6 |
3379ed37 | 5840 | echo "configure:5841: checking for --enable-spinctrl" >&5 |
56cfaa52 RR |
5841 | no_cache=0 |
5842 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
5843 | if test "${enable_spinctrl+set}" = set; then | |
5844 | enableval="$enable_spinctrl" | |
698dcdb6 | 5845 | |
56cfaa52 RR |
5846 | if test "$enableval" = yes; then |
5847 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
5848 | else | |
5849 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
5850 | fi | |
698dcdb6 | 5851 | |
56cfaa52 | 5852 | else |
698dcdb6 | 5853 | |
56cfaa52 RR |
5854 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` |
5855 | if test "x$LINE" != x ; then | |
5856 | eval "DEFAULT_$LINE" | |
5857 | else | |
5858 | no_cache=1 | |
5859 | fi | |
5860 | ||
5861 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
698dcdb6 VZ |
5862 | |
5863 | fi | |
56cfaa52 RR |
5864 | |
5865 | ||
5866 | eval "$ac_cv_use_spinctrl" | |
5867 | if test "$no_cache" != 1; then | |
5868 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
5869 | fi | |
5870 | ||
5871 | if test "$wxUSE_SPINCTRL" = yes; then | |
698dcdb6 | 5872 | echo "$ac_t""yes" 1>&6 |
56cfaa52 | 5873 | else |
698dcdb6 | 5874 | echo "$ac_t""no" 1>&6 |
56cfaa52 | 5875 | fi |
698dcdb6 | 5876 | |
56cfaa52 | 5877 | |
698dcdb6 | 5878 | echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6 |
3379ed37 | 5879 | echo "configure:5880: checking for --enable-splitter" >&5 |
10f2d63a VZ |
5880 | no_cache=0 |
5881 | # Check whether --enable-splitter or --disable-splitter was given. | |
5882 | if test "${enable_splitter+set}" = set; then | |
5883 | enableval="$enable_splitter" | |
698dcdb6 | 5884 | |
10f2d63a VZ |
5885 | if test "$enableval" = yes; then |
5886 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
5887 | else | |
5888 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
5889 | fi | |
698dcdb6 | 5890 | |
10f2d63a | 5891 | else |
698dcdb6 | 5892 | |
10f2d63a VZ |
5893 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` |
5894 | if test "x$LINE" != x ; then | |
5895 | eval "DEFAULT_$LINE" | |
5896 | else | |
5897 | no_cache=1 | |
5898 | fi | |
5899 | ||
5900 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
698dcdb6 VZ |
5901 | |
5902 | fi | |
10f2d63a VZ |
5903 | |
5904 | ||
5905 | eval "$ac_cv_use_splitter" | |
5906 | if test "$no_cache" != 1; then | |
5907 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
5908 | fi | |
5909 | ||
5910 | if test "$wxUSE_SPLITTER" = yes; then | |
698dcdb6 | 5911 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5912 | else |
698dcdb6 | 5913 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5914 | fi |
698dcdb6 | 5915 | |
10f2d63a | 5916 | |
698dcdb6 | 5917 | echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6 |
3379ed37 | 5918 | echo "configure:5919: checking for --enable-statbmp" >&5 |
10f2d63a VZ |
5919 | no_cache=0 |
5920 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
5921 | if test "${enable_statbmp+set}" = set; then | |
5922 | enableval="$enable_statbmp" | |
698dcdb6 | 5923 | |
10f2d63a VZ |
5924 | if test "$enableval" = yes; then |
5925 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
5926 | else | |
5927 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
5928 | fi | |
698dcdb6 | 5929 | |
10f2d63a | 5930 | else |
698dcdb6 | 5931 | |
10f2d63a VZ |
5932 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` |
5933 | if test "x$LINE" != x ; then | |
5934 | eval "DEFAULT_$LINE" | |
5935 | else | |
5936 | no_cache=1 | |
5937 | fi | |
5938 | ||
5939 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
698dcdb6 VZ |
5940 | |
5941 | fi | |
10f2d63a VZ |
5942 | |
5943 | ||
5944 | eval "$ac_cv_use_statbmp" | |
5945 | if test "$no_cache" != 1; then | |
5946 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
5947 | fi | |
5948 | ||
5949 | if test "$wxUSE_STATBMP" = yes; then | |
698dcdb6 | 5950 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5951 | else |
698dcdb6 | 5952 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5953 | fi |
698dcdb6 | 5954 | |
10f2d63a | 5955 | |
698dcdb6 | 5956 | echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6 |
3379ed37 | 5957 | echo "configure:5958: checking for --enable-statbox" >&5 |
10f2d63a VZ |
5958 | no_cache=0 |
5959 | # Check whether --enable-statbox or --disable-statbox was given. | |
5960 | if test "${enable_statbox+set}" = set; then | |
5961 | enableval="$enable_statbox" | |
698dcdb6 | 5962 | |
10f2d63a VZ |
5963 | if test "$enableval" = yes; then |
5964 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
5965 | else | |
5966 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
5967 | fi | |
698dcdb6 | 5968 | |
10f2d63a | 5969 | else |
698dcdb6 | 5970 | |
10f2d63a VZ |
5971 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` |
5972 | if test "x$LINE" != x ; then | |
5973 | eval "DEFAULT_$LINE" | |
5974 | else | |
5975 | no_cache=1 | |
5976 | fi | |
5977 | ||
5978 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
698dcdb6 VZ |
5979 | |
5980 | fi | |
10f2d63a VZ |
5981 | |
5982 | ||
5983 | eval "$ac_cv_use_statbox" | |
5984 | if test "$no_cache" != 1; then | |
5985 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
5986 | fi | |
5987 | ||
5988 | if test "$wxUSE_STATBOX" = yes; then | |
698dcdb6 | 5989 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5990 | else |
698dcdb6 | 5991 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5992 | fi |
698dcdb6 | 5993 | |
10f2d63a | 5994 | |
698dcdb6 | 5995 | echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6 |
3379ed37 | 5996 | echo "configure:5997: checking for --enable-statline" >&5 |
10f2d63a VZ |
5997 | no_cache=0 |
5998 | # Check whether --enable-statline or --disable-statline was given. | |
5999 | if test "${enable_statline+set}" = set; then | |
6000 | enableval="$enable_statline" | |
698dcdb6 | 6001 | |
10f2d63a VZ |
6002 | if test "$enableval" = yes; then |
6003 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
6004 | else | |
6005 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
6006 | fi | |
698dcdb6 | 6007 | |
10f2d63a | 6008 | else |
698dcdb6 | 6009 | |
10f2d63a VZ |
6010 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` |
6011 | if test "x$LINE" != x ; then | |
6012 | eval "DEFAULT_$LINE" | |
6013 | else | |
6014 | no_cache=1 | |
6015 | fi | |
6016 | ||
6017 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
698dcdb6 VZ |
6018 | |
6019 | fi | |
10f2d63a VZ |
6020 | |
6021 | ||
6022 | eval "$ac_cv_use_statline" | |
6023 | if test "$no_cache" != 1; then | |
6024 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
6025 | fi | |
6026 | ||
6027 | if test "$wxUSE_STATLINE" = yes; then | |
698dcdb6 | 6028 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6029 | else |
698dcdb6 | 6030 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6031 | fi |
698dcdb6 | 6032 | |
10f2d63a | 6033 | |
1e6feb95 | 6034 | echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6 |
3379ed37 | 6035 | echo "configure:6036: checking for --enable-stattext" >&5 |
1e6feb95 VZ |
6036 | no_cache=0 |
6037 | # Check whether --enable-stattext or --disable-stattext was given. | |
6038 | if test "${enable_stattext+set}" = set; then | |
6039 | enableval="$enable_stattext" | |
6040 | ||
6041 | if test "$enableval" = yes; then | |
6042 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
6043 | else | |
6044 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
6045 | fi | |
6046 | ||
6047 | else | |
6048 | ||
6049 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
6050 | if test "x$LINE" != x ; then | |
6051 | eval "DEFAULT_$LINE" | |
6052 | else | |
6053 | no_cache=1 | |
6054 | fi | |
6055 | ||
6056 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
6057 | ||
6058 | fi | |
6059 | ||
6060 | ||
6061 | eval "$ac_cv_use_stattext" | |
6062 | if test "$no_cache" != 1; then | |
6063 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
6064 | fi | |
6065 | ||
6066 | if test "$wxUSE_STATTEXT" = yes; then | |
6067 | echo "$ac_t""yes" 1>&6 | |
6068 | else | |
6069 | echo "$ac_t""no" 1>&6 | |
6070 | fi | |
6071 | ||
6072 | ||
698dcdb6 | 6073 | echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6 |
3379ed37 | 6074 | echo "configure:6075: checking for --enable-statusbar" >&5 |
10f2d63a VZ |
6075 | no_cache=0 |
6076 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
6077 | if test "${enable_statusbar+set}" = set; then | |
6078 | enableval="$enable_statusbar" | |
698dcdb6 | 6079 | |
10f2d63a VZ |
6080 | if test "$enableval" = yes; then |
6081 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
6082 | else | |
6083 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
6084 | fi | |
698dcdb6 | 6085 | |
10f2d63a | 6086 | else |
698dcdb6 | 6087 | |
10f2d63a VZ |
6088 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` |
6089 | if test "x$LINE" != x ; then | |
6090 | eval "DEFAULT_$LINE" | |
6091 | else | |
6092 | no_cache=1 | |
6093 | fi | |
6094 | ||
6095 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
698dcdb6 VZ |
6096 | |
6097 | fi | |
10f2d63a VZ |
6098 | |
6099 | ||
6100 | eval "$ac_cv_use_statusbar" | |
6101 | if test "$no_cache" != 1; then | |
6102 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
6103 | fi | |
6104 | ||
6105 | if test "$wxUSE_STATUSBAR" = yes; then | |
698dcdb6 | 6106 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6107 | else |
698dcdb6 | 6108 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6109 | fi |
698dcdb6 | 6110 | |
10f2d63a | 6111 | |
698dcdb6 | 6112 | echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6 |
3379ed37 | 6113 | echo "configure:6114: checking for --enable-tabdialog" >&5 |
10f2d63a VZ |
6114 | no_cache=0 |
6115 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
6116 | if test "${enable_tabdialog+set}" = set; then | |
6117 | enableval="$enable_tabdialog" | |
698dcdb6 | 6118 | |
10f2d63a VZ |
6119 | if test "$enableval" = yes; then |
6120 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
6121 | else | |
6122 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
6123 | fi | |
698dcdb6 | 6124 | |
10f2d63a | 6125 | else |
698dcdb6 | 6126 | |
10f2d63a VZ |
6127 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` |
6128 | if test "x$LINE" != x ; then | |
6129 | eval "DEFAULT_$LINE" | |
6130 | else | |
6131 | no_cache=1 | |
6132 | fi | |
6133 | ||
6134 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
698dcdb6 VZ |
6135 | |
6136 | fi | |
10f2d63a VZ |
6137 | |
6138 | ||
6139 | eval "$ac_cv_use_tabdialog" | |
6140 | if test "$no_cache" != 1; then | |
6141 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
6142 | fi | |
6143 | ||
6144 | if test "$wxUSE_TABDIALOG" = yes; then | |
698dcdb6 | 6145 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6146 | else |
698dcdb6 | 6147 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6148 | fi |
698dcdb6 | 6149 | |
10f2d63a | 6150 | |
1e6feb95 | 6151 | echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6 |
3379ed37 | 6152 | echo "configure:6153: checking for --enable-textctrl" >&5 |
1e6feb95 VZ |
6153 | no_cache=0 |
6154 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
6155 | if test "${enable_textctrl+set}" = set; then | |
6156 | enableval="$enable_textctrl" | |
6157 | ||
6158 | if test "$enableval" = yes; then | |
6159 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
6160 | else | |
6161 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
6162 | fi | |
6163 | ||
6164 | else | |
6165 | ||
6166 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
6167 | if test "x$LINE" != x ; then | |
6168 | eval "DEFAULT_$LINE" | |
6169 | else | |
6170 | no_cache=1 | |
6171 | fi | |
6172 | ||
6173 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
6174 | ||
6175 | fi | |
6176 | ||
6177 | ||
6178 | eval "$ac_cv_use_textctrl" | |
6179 | if test "$no_cache" != 1; then | |
6180 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
6181 | fi | |
6182 | ||
6183 | if test "$wxUSE_TEXTCTRL" = yes; then | |
6184 | echo "$ac_t""yes" 1>&6 | |
6185 | else | |
6186 | echo "$ac_t""no" 1>&6 | |
6187 | fi | |
6188 | ||
6189 | ||
698dcdb6 | 6190 | echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6 |
3379ed37 | 6191 | echo "configure:6192: checking for --enable-togglebtn" >&5 |
1db8dc4a VZ |
6192 | no_cache=0 |
6193 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
6194 | if test "${enable_togglebtn+set}" = set; then | |
6195 | enableval="$enable_togglebtn" | |
698dcdb6 | 6196 | |
1db8dc4a VZ |
6197 | if test "$enableval" = yes; then |
6198 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
6199 | else | |
6200 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
6201 | fi | |
698dcdb6 | 6202 | |
1db8dc4a | 6203 | else |
698dcdb6 | 6204 | |
1db8dc4a VZ |
6205 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` |
6206 | if test "x$LINE" != x ; then | |
6207 | eval "DEFAULT_$LINE" | |
6208 | else | |
6209 | no_cache=1 | |
6210 | fi | |
6211 | ||
6212 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
698dcdb6 VZ |
6213 | |
6214 | fi | |
1db8dc4a VZ |
6215 | |
6216 | ||
6217 | eval "$ac_cv_use_togglebtn" | |
6218 | if test "$no_cache" != 1; then | |
6219 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
6220 | fi | |
6221 | ||
6222 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
698dcdb6 | 6223 | echo "$ac_t""yes" 1>&6 |
1db8dc4a | 6224 | else |
698dcdb6 | 6225 | echo "$ac_t""no" 1>&6 |
1db8dc4a | 6226 | fi |
698dcdb6 | 6227 | |
1db8dc4a | 6228 | |
698dcdb6 | 6229 | echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6 |
3379ed37 | 6230 | echo "configure:6231: checking for --enable-toolbar" >&5 |
10f2d63a VZ |
6231 | no_cache=0 |
6232 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
6233 | if test "${enable_toolbar+set}" = set; then | |
6234 | enableval="$enable_toolbar" | |
698dcdb6 | 6235 | |
10f2d63a VZ |
6236 | if test "$enableval" = yes; then |
6237 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
6238 | else | |
6239 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
6240 | fi | |
698dcdb6 | 6241 | |
10f2d63a | 6242 | else |
698dcdb6 | 6243 | |
10f2d63a VZ |
6244 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` |
6245 | if test "x$LINE" != x ; then | |
6246 | eval "DEFAULT_$LINE" | |
6247 | else | |
6248 | no_cache=1 | |
6249 | fi | |
6250 | ||
6251 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
698dcdb6 VZ |
6252 | |
6253 | fi | |
10f2d63a VZ |
6254 | |
6255 | ||
6256 | eval "$ac_cv_use_toolbar" | |
6257 | if test "$no_cache" != 1; then | |
6258 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
6259 | fi | |
6260 | ||
6261 | if test "$wxUSE_TOOLBAR" = yes; then | |
698dcdb6 | 6262 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6263 | else |
698dcdb6 | 6264 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6265 | fi |
698dcdb6 | 6266 | |
10f2d63a | 6267 | |
698dcdb6 | 6268 | echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6 |
3379ed37 | 6269 | echo "configure:6270: checking for --enable-tbarnative" >&5 |
360d6699 VZ |
6270 | no_cache=0 |
6271 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
6272 | if test "${enable_tbarnative+set}" = set; then | |
6273 | enableval="$enable_tbarnative" | |
698dcdb6 | 6274 | |
360d6699 VZ |
6275 | if test "$enableval" = yes; then |
6276 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
6277 | else | |
6278 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
6279 | fi | |
698dcdb6 | 6280 | |
360d6699 | 6281 | else |
698dcdb6 | 6282 | |
360d6699 VZ |
6283 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` |
6284 | if test "x$LINE" != x ; then | |
6285 | eval "DEFAULT_$LINE" | |
6286 | else | |
6287 | no_cache=1 | |
6288 | fi | |
6289 | ||
6290 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
698dcdb6 VZ |
6291 | |
6292 | fi | |
360d6699 VZ |
6293 | |
6294 | ||
6295 | eval "$ac_cv_use_tbarnative" | |
6296 | if test "$no_cache" != 1; then | |
6297 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
6298 | fi | |
6299 | ||
6300 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
698dcdb6 | 6301 | echo "$ac_t""yes" 1>&6 |
360d6699 | 6302 | else |
698dcdb6 | 6303 | echo "$ac_t""no" 1>&6 |
360d6699 | 6304 | fi |
698dcdb6 | 6305 | |
360d6699 | 6306 | |
698dcdb6 | 6307 | echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6 |
3379ed37 | 6308 | echo "configure:6309: checking for --enable-tbarsmpl" >&5 |
360d6699 VZ |
6309 | no_cache=0 |
6310 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
6311 | if test "${enable_tbarsmpl+set}" = set; then | |
6312 | enableval="$enable_tbarsmpl" | |
698dcdb6 | 6313 | |
360d6699 VZ |
6314 | if test "$enableval" = yes; then |
6315 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
6316 | else | |
6317 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
6318 | fi | |
698dcdb6 | 6319 | |
360d6699 | 6320 | else |
698dcdb6 | 6321 | |
360d6699 VZ |
6322 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` |
6323 | if test "x$LINE" != x ; then | |
6324 | eval "DEFAULT_$LINE" | |
6325 | else | |
6326 | no_cache=1 | |
6327 | fi | |
6328 | ||
6329 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
698dcdb6 VZ |
6330 | |
6331 | fi | |
360d6699 VZ |
6332 | |
6333 | ||
6334 | eval "$ac_cv_use_tbarsmpl" | |
6335 | if test "$no_cache" != 1; then | |
6336 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
6337 | fi | |
6338 | ||
6339 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
698dcdb6 | 6340 | echo "$ac_t""yes" 1>&6 |
360d6699 | 6341 | else |
698dcdb6 | 6342 | echo "$ac_t""no" 1>&6 |
360d6699 | 6343 | fi |
698dcdb6 | 6344 | |
360d6699 | 6345 | |
698dcdb6 | 6346 | echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6 |
3379ed37 | 6347 | echo "configure:6348: checking for --enable-treectrl" >&5 |
10f2d63a VZ |
6348 | no_cache=0 |
6349 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
6350 | if test "${enable_treectrl+set}" = set; then | |
6351 | enableval="$enable_treectrl" | |
698dcdb6 | 6352 | |
10f2d63a VZ |
6353 | if test "$enableval" = yes; then |
6354 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
6355 | else | |
6356 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
6357 | fi | |
698dcdb6 | 6358 | |
10f2d63a | 6359 | else |
698dcdb6 | 6360 | |
10f2d63a VZ |
6361 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` |
6362 | if test "x$LINE" != x ; then | |
6363 | eval "DEFAULT_$LINE" | |
6364 | else | |
6365 | no_cache=1 | |
6366 | fi | |
6367 | ||
6368 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
698dcdb6 VZ |
6369 | |
6370 | fi | |
10f2d63a VZ |
6371 | |
6372 | ||
1e6feb95 VZ |
6373 | eval "$ac_cv_use_treectrl" |
6374 | if test "$no_cache" != 1; then | |
6375 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
6376 | fi | |
6377 | ||
6378 | if test "$wxUSE_TREECTRL" = yes; then | |
6379 | echo "$ac_t""yes" 1>&6 | |
6380 | else | |
6381 | echo "$ac_t""no" 1>&6 | |
6382 | fi | |
6383 | ||
6384 | ||
6385 | ||
6386 | ||
6387 | echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6 | |
3379ed37 | 6388 | echo "configure:6389: checking for --enable-commondlg" >&5 |
1e6feb95 VZ |
6389 | no_cache=0 |
6390 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
6391 | if test "${enable_commondlg+set}" = set; then | |
6392 | enableval="$enable_commondlg" | |
6393 | ||
6394 | if test "$enableval" = yes; then | |
6395 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
6396 | else | |
6397 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
6398 | fi | |
6399 | ||
6400 | else | |
6401 | ||
6402 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
6403 | if test "x$LINE" != x ; then | |
6404 | eval "DEFAULT_$LINE" | |
6405 | else | |
6406 | no_cache=1 | |
6407 | fi | |
6408 | ||
6409 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
6410 | ||
6411 | fi | |
6412 | ||
6413 | ||
6414 | eval "$ac_cv_use_commondlg" | |
6415 | if test "$no_cache" != 1; then | |
6416 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
6417 | fi | |
6418 | ||
6419 | if test "$wxUSE_COMMONDLGS" = yes; then | |
6420 | echo "$ac_t""yes" 1>&6 | |
6421 | else | |
6422 | echo "$ac_t""no" 1>&6 | |
6423 | fi | |
6424 | ||
6425 | ||
6426 | echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6 | |
3379ed37 | 6427 | echo "configure:6428: checking for --enable-choicedlg" >&5 |
1e6feb95 VZ |
6428 | no_cache=0 |
6429 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
6430 | if test "${enable_choicedlg+set}" = set; then | |
6431 | enableval="$enable_choicedlg" | |
6432 | ||
6433 | if test "$enableval" = yes; then | |
6434 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
6435 | else | |
6436 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
6437 | fi | |
6438 | ||
6439 | else | |
6440 | ||
6441 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
6442 | if test "x$LINE" != x ; then | |
6443 | eval "DEFAULT_$LINE" | |
6444 | else | |
6445 | no_cache=1 | |
6446 | fi | |
6447 | ||
6448 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
6449 | ||
6450 | fi | |
6451 | ||
6452 | ||
6453 | eval "$ac_cv_use_choicedlg" | |
6454 | if test "$no_cache" != 1; then | |
6455 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
6456 | fi | |
6457 | ||
6458 | if test "$wxUSE_CHOICEDLG" = yes; then | |
6459 | echo "$ac_t""yes" 1>&6 | |
6460 | else | |
6461 | echo "$ac_t""no" 1>&6 | |
6462 | fi | |
6463 | ||
6464 | ||
6465 | echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6 | |
3379ed37 | 6466 | echo "configure:6467: checking for --enable-coldlg" >&5 |
1e6feb95 VZ |
6467 | no_cache=0 |
6468 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
6469 | if test "${enable_coldlg+set}" = set; then | |
6470 | enableval="$enable_coldlg" | |
6471 | ||
6472 | if test "$enableval" = yes; then | |
6473 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
6474 | else | |
6475 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
6476 | fi | |
6477 | ||
6478 | else | |
6479 | ||
6480 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
6481 | if test "x$LINE" != x ; then | |
6482 | eval "DEFAULT_$LINE" | |
6483 | else | |
6484 | no_cache=1 | |
6485 | fi | |
6486 | ||
6487 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
6488 | ||
6489 | fi | |
6490 | ||
6491 | ||
6492 | eval "$ac_cv_use_coldlg" | |
6493 | if test "$no_cache" != 1; then | |
6494 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
6495 | fi | |
6496 | ||
6497 | if test "$wxUSE_COLOURDLG" = yes; then | |
6498 | echo "$ac_t""yes" 1>&6 | |
6499 | else | |
6500 | echo "$ac_t""no" 1>&6 | |
6501 | fi | |
6502 | ||
6503 | ||
6504 | echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6 | |
3379ed37 | 6505 | echo "configure:6506: checking for --enable-filedlg" >&5 |
1e6feb95 VZ |
6506 | no_cache=0 |
6507 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
6508 | if test "${enable_filedlg+set}" = set; then | |
6509 | enableval="$enable_filedlg" | |
6510 | ||
6511 | if test "$enableval" = yes; then | |
6512 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
6513 | else | |
6514 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
6515 | fi | |
6516 | ||
6517 | else | |
6518 | ||
6519 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
6520 | if test "x$LINE" != x ; then | |
6521 | eval "DEFAULT_$LINE" | |
6522 | else | |
6523 | no_cache=1 | |
6524 | fi | |
6525 | ||
6526 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
6527 | ||
6528 | fi | |
6529 | ||
6530 | ||
6531 | eval "$ac_cv_use_filedlg" | |
6532 | if test "$no_cache" != 1; then | |
6533 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
6534 | fi | |
6535 | ||
6536 | if test "$wxUSE_FILEDLG" = yes; then | |
6537 | echo "$ac_t""yes" 1>&6 | |
6538 | else | |
6539 | echo "$ac_t""no" 1>&6 | |
6540 | fi | |
6541 | ||
6542 | ||
6543 | echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6 | |
3379ed37 | 6544 | echo "configure:6545: checking for --enable-fontdlg" >&5 |
1e6feb95 VZ |
6545 | no_cache=0 |
6546 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
6547 | if test "${enable_fontdlg+set}" = set; then | |
6548 | enableval="$enable_fontdlg" | |
6549 | ||
6550 | if test "$enableval" = yes; then | |
6551 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
6552 | else | |
6553 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
6554 | fi | |
6555 | ||
6556 | else | |
6557 | ||
6558 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
6559 | if test "x$LINE" != x ; then | |
6560 | eval "DEFAULT_$LINE" | |
6561 | else | |
6562 | no_cache=1 | |
6563 | fi | |
6564 | ||
6565 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
6566 | ||
6567 | fi | |
6568 | ||
6569 | ||
6570 | eval "$ac_cv_use_fontdlg" | |
6571 | if test "$no_cache" != 1; then | |
6572 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
6573 | fi | |
6574 | ||
6575 | if test "$wxUSE_FONTDLG" = yes; then | |
6576 | echo "$ac_t""yes" 1>&6 | |
6577 | else | |
6578 | echo "$ac_t""no" 1>&6 | |
6579 | fi | |
6580 | ||
6581 | ||
6582 | echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6 | |
3379ed37 | 6583 | echo "configure:6584: checking for --enable-dirdlg" >&5 |
1e6feb95 VZ |
6584 | no_cache=0 |
6585 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
6586 | if test "${enable_dirdlg+set}" = set; then | |
6587 | enableval="$enable_dirdlg" | |
6588 | ||
6589 | if test "$enableval" = yes; then | |
6590 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
6591 | else | |
6592 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
6593 | fi | |
6594 | ||
6595 | else | |
6596 | ||
6597 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
6598 | if test "x$LINE" != x ; then | |
6599 | eval "DEFAULT_$LINE" | |
6600 | else | |
6601 | no_cache=1 | |
6602 | fi | |
6603 | ||
6604 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
6605 | ||
6606 | fi | |
6607 | ||
6608 | ||
6609 | eval "$ac_cv_use_dirdlg" | |
10f2d63a | 6610 | if test "$no_cache" != 1; then |
1e6feb95 | 6611 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6612 | fi |
6613 | ||
1e6feb95 | 6614 | if test "$wxUSE_DIRDLG" = yes; then |
698dcdb6 | 6615 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6616 | else |
698dcdb6 | 6617 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6618 | fi |
698dcdb6 VZ |
6619 | |
6620 | ||
1e6feb95 | 6621 | echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6 |
3379ed37 | 6622 | echo "configure:6623: checking for --enable-msgdlg" >&5 |
10f2d63a | 6623 | no_cache=0 |
1e6feb95 VZ |
6624 | # Check whether --enable-msgdlg or --disable-msgdlg was given. |
6625 | if test "${enable_msgdlg+set}" = set; then | |
6626 | enableval="$enable_msgdlg" | |
698dcdb6 | 6627 | |
10f2d63a | 6628 | if test "$enableval" = yes; then |
1e6feb95 | 6629 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' |
10f2d63a | 6630 | else |
1e6feb95 | 6631 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' |
10f2d63a | 6632 | fi |
698dcdb6 | 6633 | |
10f2d63a | 6634 | else |
698dcdb6 | 6635 | |
1e6feb95 | 6636 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
6637 | if test "x$LINE" != x ; then |
6638 | eval "DEFAULT_$LINE" | |
6639 | else | |
6640 | no_cache=1 | |
6641 | fi | |
6642 | ||
1e6feb95 | 6643 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG |
698dcdb6 VZ |
6644 | |
6645 | fi | |
10f2d63a VZ |
6646 | |
6647 | ||
1e6feb95 | 6648 | eval "$ac_cv_use_msgdlg" |
10f2d63a | 6649 | if test "$no_cache" != 1; then |
1e6feb95 | 6650 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6651 | fi |
6652 | ||
1e6feb95 | 6653 | if test "$wxUSE_MSGDLG" = yes; then |
698dcdb6 | 6654 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6655 | else |
698dcdb6 | 6656 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6657 | fi |
698dcdb6 | 6658 | |
10f2d63a | 6659 | |
1e6feb95 | 6660 | echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6 |
3379ed37 | 6661 | echo "configure:6662: checking for --enable-numberdlg" >&5 |
10f2d63a | 6662 | no_cache=0 |
1e6feb95 VZ |
6663 | # Check whether --enable-numberdlg or --disable-numberdlg was given. |
6664 | if test "${enable_numberdlg+set}" = set; then | |
6665 | enableval="$enable_numberdlg" | |
698dcdb6 | 6666 | |
10f2d63a | 6667 | if test "$enableval" = yes; then |
1e6feb95 | 6668 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' |
10f2d63a | 6669 | else |
1e6feb95 | 6670 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' |
10f2d63a | 6671 | fi |
698dcdb6 | 6672 | |
10f2d63a | 6673 | else |
698dcdb6 | 6674 | |
1e6feb95 | 6675 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
6676 | if test "x$LINE" != x ; then |
6677 | eval "DEFAULT_$LINE" | |
6678 | else | |
6679 | no_cache=1 | |
6680 | fi | |
6681 | ||
1e6feb95 | 6682 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG |
698dcdb6 VZ |
6683 | |
6684 | fi | |
10f2d63a VZ |
6685 | |
6686 | ||
1e6feb95 | 6687 | eval "$ac_cv_use_numberdlg" |
10f2d63a | 6688 | if test "$no_cache" != 1; then |
1e6feb95 | 6689 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6690 | fi |
6691 | ||
1e6feb95 | 6692 | if test "$wxUSE_NUMBERDLG" = yes; then |
698dcdb6 | 6693 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6694 | else |
698dcdb6 | 6695 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6696 | fi |
698dcdb6 | 6697 | |
10f2d63a | 6698 | |
698dcdb6 | 6699 | echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6 |
3379ed37 | 6700 | echo "configure:6701: checking for --enable-textdlg" >&5 |
10f2d63a VZ |
6701 | no_cache=0 |
6702 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
6703 | if test "${enable_textdlg+set}" = set; then | |
6704 | enableval="$enable_textdlg" | |
698dcdb6 | 6705 | |
10f2d63a VZ |
6706 | if test "$enableval" = yes; then |
6707 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
6708 | else | |
6709 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
6710 | fi | |
698dcdb6 | 6711 | |
10f2d63a | 6712 | else |
698dcdb6 | 6713 | |
10f2d63a VZ |
6714 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` |
6715 | if test "x$LINE" != x ; then | |
6716 | eval "DEFAULT_$LINE" | |
6717 | else | |
6718 | no_cache=1 | |
6719 | fi | |
6720 | ||
6721 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
698dcdb6 VZ |
6722 | |
6723 | fi | |
10f2d63a VZ |
6724 | |
6725 | ||
6726 | eval "$ac_cv_use_textdlg" | |
6727 | if test "$no_cache" != 1; then | |
6728 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
6729 | fi | |
6730 | ||
6731 | if test "$wxUSE_TEXTDLG" = yes; then | |
698dcdb6 | 6732 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6733 | else |
698dcdb6 | 6734 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6735 | fi |
698dcdb6 | 6736 | |
10f2d63a | 6737 | |
698dcdb6 | 6738 | echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6 |
3379ed37 | 6739 | echo "configure:6740: checking for --enable-tipdlg" >&5 |
10f2d63a VZ |
6740 | no_cache=0 |
6741 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
6742 | if test "${enable_tipdlg+set}" = set; then | |
6743 | enableval="$enable_tipdlg" | |
698dcdb6 | 6744 | |
10f2d63a VZ |
6745 | if test "$enableval" = yes; then |
6746 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
6747 | else | |
6748 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
6749 | fi | |
698dcdb6 | 6750 | |
10f2d63a | 6751 | else |
698dcdb6 | 6752 | |
10f2d63a VZ |
6753 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` |
6754 | if test "x$LINE" != x ; then | |
6755 | eval "DEFAULT_$LINE" | |
6756 | else | |
6757 | no_cache=1 | |
6758 | fi | |
6759 | ||
6760 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
698dcdb6 VZ |
6761 | |
6762 | fi | |
10f2d63a VZ |
6763 | |
6764 | ||
6765 | eval "$ac_cv_use_tipdlg" | |
6766 | if test "$no_cache" != 1; then | |
6767 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
6768 | fi | |
6769 | ||
6770 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
698dcdb6 | 6771 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6772 | else |
698dcdb6 | 6773 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6774 | fi |
698dcdb6 | 6775 | |
10f2d63a | 6776 | |
698dcdb6 | 6777 | echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6 |
3379ed37 | 6778 | echo "configure:6779: checking for --enable-progressdlg" >&5 |
10f2d63a VZ |
6779 | no_cache=0 |
6780 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
6781 | if test "${enable_progressdlg+set}" = set; then | |
6782 | enableval="$enable_progressdlg" | |
698dcdb6 | 6783 | |
10f2d63a VZ |
6784 | if test "$enableval" = yes; then |
6785 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
6786 | else | |
6787 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
6788 | fi | |
698dcdb6 | 6789 | |
10f2d63a | 6790 | else |
698dcdb6 | 6791 | |
10f2d63a VZ |
6792 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` |
6793 | if test "x$LINE" != x ; then | |
6794 | eval "DEFAULT_$LINE" | |
6795 | else | |
6796 | no_cache=1 | |
6797 | fi | |
6798 | ||
6799 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
698dcdb6 VZ |
6800 | |
6801 | fi | |
10f2d63a VZ |
6802 | |
6803 | ||
6804 | eval "$ac_cv_use_progressdlg" | |
6805 | if test "$no_cache" != 1; then | |
6806 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
6807 | fi | |
6808 | ||
6809 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
698dcdb6 | 6810 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6811 | else |
698dcdb6 | 6812 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6813 | fi |
698dcdb6 | 6814 | |
10f2d63a | 6815 | |
b1f5d087 | 6816 | echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6 |
3379ed37 | 6817 | echo "configure:6818: checking for --enable-wizarddlg" >&5 |
b1f5d087 VZ |
6818 | no_cache=0 |
6819 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
6820 | if test "${enable_wizarddlg+set}" = set; then | |
6821 | enableval="$enable_wizarddlg" | |
6822 | ||
6823 | if test "$enableval" = yes; then | |
6824 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
6825 | else | |
6826 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
6827 | fi | |
6828 | ||
6829 | else | |
6830 | ||
6831 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` | |
6832 | if test "x$LINE" != x ; then | |
6833 | eval "DEFAULT_$LINE" | |
6834 | else | |
6835 | no_cache=1 | |
6836 | fi | |
6837 | ||
6838 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
6839 | ||
6840 | fi | |
6841 | ||
6842 | ||
6843 | eval "$ac_cv_use_wizarddlg" | |
6844 | if test "$no_cache" != 1; then | |
6845 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
6846 | fi | |
6847 | ||
6848 | if test "$wxUSE_WIZARDDLG" = yes; then | |
6849 | echo "$ac_t""yes" 1>&6 | |
6850 | else | |
6851 | echo "$ac_t""no" 1>&6 | |
6852 | fi | |
6853 | ||
6854 | ||
6855 | ||
6856 | ||
1e6feb95 | 6857 | echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6 |
3379ed37 | 6858 | echo "configure:6859: checking for --enable-menus" >&5 |
1e6feb95 VZ |
6859 | no_cache=0 |
6860 | # Check whether --enable-menus or --disable-menus was given. | |
6861 | if test "${enable_menus+set}" = set; then | |
6862 | enableval="$enable_menus" | |
6863 | ||
6864 | if test "$enableval" = yes; then | |
6865 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
6866 | else | |
6867 | ac_cv_use_menus='wxUSE_MENUS=no' | |
6868 | fi | |
6869 | ||
6870 | else | |
6871 | ||
6872 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
6873 | if test "x$LINE" != x ; then | |
6874 | eval "DEFAULT_$LINE" | |
6875 | else | |
6876 | no_cache=1 | |
6877 | fi | |
6878 | ||
6879 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
6880 | ||
6881 | fi | |
6882 | ||
6883 | ||
6884 | eval "$ac_cv_use_menus" | |
6885 | if test "$no_cache" != 1; then | |
6886 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
6887 | fi | |
6888 | ||
6889 | if test "$wxUSE_MENUS" = yes; then | |
6890 | echo "$ac_t""yes" 1>&6 | |
6891 | else | |
6892 | echo "$ac_t""no" 1>&6 | |
6893 | fi | |
6894 | ||
6895 | ||
698dcdb6 | 6896 | echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6 |
3379ed37 | 6897 | echo "configure:6898: checking for --enable-miniframe" >&5 |
10f2d63a VZ |
6898 | no_cache=0 |
6899 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
6900 | if test "${enable_miniframe+set}" = set; then | |
6901 | enableval="$enable_miniframe" | |
698dcdb6 | 6902 | |
10f2d63a VZ |
6903 | if test "$enableval" = yes; then |
6904 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
6905 | else | |
6906 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
6907 | fi | |
698dcdb6 | 6908 | |
10f2d63a | 6909 | else |
698dcdb6 | 6910 | |
10f2d63a VZ |
6911 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` |
6912 | if test "x$LINE" != x ; then | |
6913 | eval "DEFAULT_$LINE" | |
6914 | else | |
6915 | no_cache=1 | |
6916 | fi | |
6917 | ||
6918 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
698dcdb6 VZ |
6919 | |
6920 | fi | |
10f2d63a VZ |
6921 | |
6922 | ||
6923 | eval "$ac_cv_use_miniframe" | |
6924 | if test "$no_cache" != 1; then | |
6925 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
6926 | fi | |
6927 | ||
6928 | if test "$wxUSE_MINIFRAME" = yes; then | |
698dcdb6 | 6929 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6930 | else |
698dcdb6 | 6931 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6932 | fi |
698dcdb6 | 6933 | |
10f2d63a | 6934 | |
698dcdb6 | 6935 | echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6 |
3379ed37 | 6936 | echo "configure:6937: checking for --enable-tooltips" >&5 |
10f2d63a VZ |
6937 | no_cache=0 |
6938 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
6939 | if test "${enable_tooltips+set}" = set; then | |
6940 | enableval="$enable_tooltips" | |
698dcdb6 | 6941 | |
10f2d63a VZ |
6942 | if test "$enableval" = yes; then |
6943 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
6944 | else | |
6945 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
6946 | fi | |
698dcdb6 | 6947 | |
10f2d63a | 6948 | else |
698dcdb6 | 6949 | |
10f2d63a VZ |
6950 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` |
6951 | if test "x$LINE" != x ; then | |
6952 | eval "DEFAULT_$LINE" | |
6953 | else | |
6954 | no_cache=1 | |
6955 | fi | |
6956 | ||
6957 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
698dcdb6 VZ |
6958 | |
6959 | fi | |
10f2d63a VZ |
6960 | |
6961 | ||
6962 | eval "$ac_cv_use_tooltips" | |
6963 | if test "$no_cache" != 1; then | |
6964 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
6965 | fi | |
6966 | ||
6967 | if test "$wxUSE_TOOLTIPS" = yes; then | |
698dcdb6 | 6968 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6969 | else |
698dcdb6 | 6970 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6971 | fi |
698dcdb6 | 6972 | |
10f2d63a | 6973 | |
698dcdb6 | 6974 | echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6 |
3379ed37 | 6975 | echo "configure:6976: checking for --enable-splines" >&5 |
10f2d63a VZ |
6976 | no_cache=0 |
6977 | # Check whether --enable-splines or --disable-splines was given. | |
6978 | if test "${enable_splines+set}" = set; then | |
6979 | enableval="$enable_splines" | |
698dcdb6 | 6980 | |
10f2d63a VZ |
6981 | if test "$enableval" = yes; then |
6982 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
6983 | else | |
6984 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
6985 | fi | |
698dcdb6 | 6986 | |
10f2d63a | 6987 | else |
698dcdb6 | 6988 | |
10f2d63a VZ |
6989 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` |
6990 | if test "x$LINE" != x ; then | |
6991 | eval "DEFAULT_$LINE" | |
6992 | else | |
6993 | no_cache=1 | |
6994 | fi | |
6995 | ||
6996 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
698dcdb6 VZ |
6997 | |
6998 | fi | |
10f2d63a VZ |
6999 | |
7000 | ||
7001 | eval "$ac_cv_use_splines" | |
7002 | if test "$no_cache" != 1; then | |
7003 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
7004 | fi | |
7005 | ||
7006 | if test "$wxUSE_SPLINES" = yes; then | |
698dcdb6 | 7007 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7008 | else |
698dcdb6 | 7009 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7010 | fi |
698dcdb6 | 7011 | |
10f2d63a | 7012 | |
698dcdb6 | 7013 | echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6 |
3379ed37 | 7014 | echo "configure:7015: checking for --enable-validators" >&5 |
10f2d63a VZ |
7015 | no_cache=0 |
7016 | # Check whether --enable-validators or --disable-validators was given. | |
7017 | if test "${enable_validators+set}" = set; then | |
7018 | enableval="$enable_validators" | |
698dcdb6 | 7019 | |
10f2d63a VZ |
7020 | if test "$enableval" = yes; then |
7021 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
7022 | else | |
7023 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
7024 | fi | |
698dcdb6 | 7025 | |
10f2d63a | 7026 | else |
698dcdb6 | 7027 | |
10f2d63a VZ |
7028 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` |
7029 | if test "x$LINE" != x ; then | |
7030 | eval "DEFAULT_$LINE" | |
7031 | else | |
7032 | no_cache=1 | |
7033 | fi | |
7034 | ||
7035 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
698dcdb6 VZ |
7036 | |
7037 | fi | |
10f2d63a VZ |
7038 | |
7039 | ||
7040 | eval "$ac_cv_use_validators" | |
7041 | if test "$no_cache" != 1; then | |
7042 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
7043 | fi | |
7044 | ||
7045 | if test "$wxUSE_VALIDATORS" = yes; then | |
698dcdb6 | 7046 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7047 | else |
698dcdb6 | 7048 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7049 | fi |
698dcdb6 | 7050 | |
10f2d63a | 7051 | |
698dcdb6 | 7052 | echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6 |
3379ed37 | 7053 | echo "configure:7054: checking for --enable-busyinfo" >&5 |
10f2d63a VZ |
7054 | no_cache=0 |
7055 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
7056 | if test "${enable_busyinfo+set}" = set; then | |
7057 | enableval="$enable_busyinfo" | |
698dcdb6 | 7058 | |
10f2d63a VZ |
7059 | if test "$enableval" = yes; then |
7060 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
7061 | else | |
7062 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
7063 | fi | |
698dcdb6 | 7064 | |
10f2d63a | 7065 | else |
698dcdb6 | 7066 | |
10f2d63a VZ |
7067 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` |
7068 | if test "x$LINE" != x ; then | |
7069 | eval "DEFAULT_$LINE" | |
7070 | else | |
7071 | no_cache=1 | |
7072 | fi | |
7073 | ||
7074 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
698dcdb6 VZ |
7075 | |
7076 | fi | |
10f2d63a VZ |
7077 | |
7078 | ||
7079 | eval "$ac_cv_use_busyinfo" | |
7080 | if test "$no_cache" != 1; then | |
7081 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
7082 | fi | |
7083 | ||
7084 | if test "$wxUSE_BUSYINFO" = yes; then | |
698dcdb6 | 7085 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7086 | else |
698dcdb6 | 7087 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7088 | fi |
698dcdb6 | 7089 | |
10f2d63a | 7090 | |
698dcdb6 | 7091 | echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6 |
3379ed37 | 7092 | echo "configure:7093: checking for --enable-joystick" >&5 |
f6bcfd97 BP |
7093 | no_cache=0 |
7094 | # Check whether --enable-joystick or --disable-joystick was given. | |
7095 | if test "${enable_joystick+set}" = set; then | |
7096 | enableval="$enable_joystick" | |
698dcdb6 | 7097 | |
f6bcfd97 BP |
7098 | if test "$enableval" = yes; then |
7099 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
7100 | else | |
7101 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
7102 | fi | |
698dcdb6 | 7103 | |
f6bcfd97 | 7104 | else |
698dcdb6 | 7105 | |
f6bcfd97 BP |
7106 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` |
7107 | if test "x$LINE" != x ; then | |
7108 | eval "DEFAULT_$LINE" | |
7109 | else | |
7110 | no_cache=1 | |
7111 | fi | |
7112 | ||
7113 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
698dcdb6 VZ |
7114 | |
7115 | fi | |
f6bcfd97 BP |
7116 | |
7117 | ||
7118 | eval "$ac_cv_use_joystick" | |
7119 | if test "$no_cache" != 1; then | |
7120 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
7121 | fi | |
7122 | ||
7123 | if test "$wxUSE_JOYSTICK" = yes; then | |
698dcdb6 | 7124 | echo "$ac_t""yes" 1>&6 |
f6bcfd97 | 7125 | else |
698dcdb6 | 7126 | echo "$ac_t""no" 1>&6 |
f6bcfd97 | 7127 | fi |
698dcdb6 VZ |
7128 | |
7129 | ||
1e6feb95 | 7130 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
3379ed37 | 7131 | echo "configure:7132: checking for --enable-metafile" >&5 |
1e6feb95 VZ |
7132 | no_cache=0 |
7133 | # Check whether --enable-metafile or --disable-metafile was given. | |
7134 | if test "${enable_metafile+set}" = set; then | |
7135 | enableval="$enable_metafile" | |
7136 | ||
7137 | if test "$enableval" = yes; then | |
7138 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
7139 | else | |
7140 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
7141 | fi | |
7142 | ||
7143 | else | |
7144 | ||
7145 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
7146 | if test "x$LINE" != x ; then | |
7147 | eval "DEFAULT_$LINE" | |
7148 | else | |
7149 | no_cache=1 | |
7150 | fi | |
7151 | ||
7152 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
7153 | ||
7154 | fi | |
7155 | ||
7156 | ||
7157 | eval "$ac_cv_use_metafile" | |
7158 | if test "$no_cache" != 1; then | |
7159 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
7160 | fi | |
7161 | ||
7162 | if test "$wxUSE_METAFILE" = yes; then | |
7163 | echo "$ac_t""yes" 1>&6 | |
7164 | else | |
7165 | echo "$ac_t""no" 1>&6 | |
7166 | fi | |
7167 | ||
7168 | ||
24fd6d87 | 7169 | echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6 |
3379ed37 | 7170 | echo "configure:7171: checking for --enable-dragimage" >&5 |
24fd6d87 VZ |
7171 | no_cache=0 |
7172 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
7173 | if test "${enable_dragimage+set}" = set; then | |
7174 | enableval="$enable_dragimage" | |
7175 | ||
7176 | if test "$enableval" = yes; then | |
7177 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
7178 | else | |
7179 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
7180 | fi | |
7181 | ||
7182 | else | |
7183 | ||
7184 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` | |
7185 | if test "x$LINE" != x ; then | |
7186 | eval "DEFAULT_$LINE" | |
7187 | else | |
7188 | no_cache=1 | |
7189 | fi | |
7190 | ||
7191 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
7192 | ||
7193 | fi | |
7194 | ||
7195 | ||
7196 | eval "$ac_cv_use_dragimage" | |
7197 | if test "$no_cache" != 1; then | |
7198 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
7199 | fi | |
7200 | ||
7201 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
7202 | echo "$ac_t""yes" 1>&6 | |
7203 | else | |
7204 | echo "$ac_t""no" 1>&6 | |
7205 | fi | |
7206 | ||
7207 | ||
10f2d63a | 7208 | |
698dcdb6 VZ |
7209 | |
7210 | echo $ac_n "checking for --enable-image""... $ac_c" 1>&6 | |
3379ed37 | 7211 | echo "configure:7212: checking for --enable-image" >&5 |
0046ff7c VS |
7212 | no_cache=0 |
7213 | # Check whether --enable-image or --disable-image was given. | |
7214 | if test "${enable_image+set}" = set; then | |
7215 | enableval="$enable_image" | |
698dcdb6 | 7216 | |
0046ff7c VS |
7217 | if test "$enableval" = yes; then |
7218 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
7219 | else | |
7220 | ac_cv_use_image='wxUSE_IMAGE=no' | |
7221 | fi | |
698dcdb6 | 7222 | |
0046ff7c | 7223 | else |
698dcdb6 | 7224 | |
0046ff7c VS |
7225 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` |
7226 | if test "x$LINE" != x ; then | |
7227 | eval "DEFAULT_$LINE" | |
7228 | else | |
7229 | no_cache=1 | |
7230 | fi | |
7231 | ||
7232 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
698dcdb6 VZ |
7233 | |
7234 | fi | |
0046ff7c VS |
7235 | |
7236 | ||
7237 | eval "$ac_cv_use_image" | |
7238 | if test "$no_cache" != 1; then | |
7239 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
7240 | fi | |
7241 | ||
7242 | if test "$wxUSE_IMAGE" = yes; then | |
698dcdb6 | 7243 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 7244 | else |
698dcdb6 | 7245 | echo "$ac_t""no" 1>&6 |
0046ff7c | 7246 | fi |
698dcdb6 | 7247 | |
0046ff7c | 7248 | |
698dcdb6 | 7249 | echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6 |
3379ed37 | 7250 | echo "configure:7251: checking for --enable-gif" >&5 |
10f2d63a VZ |
7251 | no_cache=0 |
7252 | # Check whether --enable-gif or --disable-gif was given. | |
7253 | if test "${enable_gif+set}" = set; then | |
7254 | enableval="$enable_gif" | |
698dcdb6 | 7255 | |
10f2d63a VZ |
7256 | if test "$enableval" = yes; then |
7257 | ac_cv_use_gif='wxUSE_GIF=yes' | |
7258 | else | |
7259 | ac_cv_use_gif='wxUSE_GIF=no' | |
7260 | fi | |
698dcdb6 | 7261 | |
10f2d63a | 7262 | else |
698dcdb6 | 7263 | |
10f2d63a VZ |
7264 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` |
7265 | if test "x$LINE" != x ; then | |
7266 | eval "DEFAULT_$LINE" | |
7267 | else | |
7268 | no_cache=1 | |
7269 | fi | |
7270 | ||
7271 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
698dcdb6 VZ |
7272 | |
7273 | fi | |
10f2d63a VZ |
7274 | |
7275 | ||
7276 | eval "$ac_cv_use_gif" | |
7277 | if test "$no_cache" != 1; then | |
7278 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
7279 | fi | |
7280 | ||
7281 | if test "$wxUSE_GIF" = yes; then | |
698dcdb6 | 7282 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7283 | else |
698dcdb6 | 7284 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7285 | fi |
698dcdb6 | 7286 | |
10f2d63a | 7287 | |
698dcdb6 | 7288 | echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6 |
3379ed37 | 7289 | echo "configure:7290: checking for --enable-pcx" >&5 |
10f2d63a VZ |
7290 | no_cache=0 |
7291 | # Check whether --enable-pcx or --disable-pcx was given. | |
7292 | if test "${enable_pcx+set}" = set; then | |
7293 | enableval="$enable_pcx" | |
698dcdb6 | 7294 | |
10f2d63a VZ |
7295 | if test "$enableval" = yes; then |
7296 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
7297 | else | |
7298 | ac_cv_use_pcx='wxUSE_PCX=no' | |
7299 | fi | |
698dcdb6 | 7300 | |
10f2d63a | 7301 | else |
698dcdb6 | 7302 | |
10f2d63a VZ |
7303 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` |
7304 | if test "x$LINE" != x ; then | |
7305 | eval "DEFAULT_$LINE" | |
7306 | else | |
7307 | no_cache=1 | |
7308 | fi | |
7309 | ||
7310 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
698dcdb6 VZ |
7311 | |
7312 | fi | |
10f2d63a VZ |
7313 | |
7314 | ||
7315 | eval "$ac_cv_use_pcx" | |
7316 | if test "$no_cache" != 1; then | |
7317 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
7318 | fi | |
7319 | ||
7320 | if test "$wxUSE_PCX" = yes; then | |
698dcdb6 | 7321 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7322 | else |
698dcdb6 | 7323 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7324 | fi |
698dcdb6 | 7325 | |
10f2d63a | 7326 | |
698dcdb6 | 7327 | echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6 |
3379ed37 | 7328 | echo "configure:7329: checking for --enable-pnm" >&5 |
10f2d63a VZ |
7329 | no_cache=0 |
7330 | # Check whether --enable-pnm or --disable-pnm was given. | |
7331 | if test "${enable_pnm+set}" = set; then | |
7332 | enableval="$enable_pnm" | |
698dcdb6 | 7333 | |
10f2d63a VZ |
7334 | if test "$enableval" = yes; then |
7335 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
7336 | else | |
7337 | ac_cv_use_pnm='wxUSE_PNM=no' | |
7338 | fi | |
698dcdb6 | 7339 | |
10f2d63a | 7340 | else |
698dcdb6 | 7341 | |
10f2d63a VZ |
7342 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` |
7343 | if test "x$LINE" != x ; then | |
7344 | eval "DEFAULT_$LINE" | |
7345 | else | |
7346 | no_cache=1 | |
7347 | fi | |
7348 | ||
7349 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
698dcdb6 VZ |
7350 | |
7351 | fi | |
10f2d63a VZ |
7352 | |
7353 | ||
7354 | eval "$ac_cv_use_pnm" | |
7355 | if test "$no_cache" != 1; then | |
7356 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
7357 | fi | |
7358 | ||
7359 | if test "$wxUSE_PNM" = yes; then | |
698dcdb6 | 7360 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7361 | else |
698dcdb6 | 7362 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7363 | fi |
698dcdb6 | 7364 | |
10f2d63a | 7365 | |
698dcdb6 | 7366 | echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6 |
3379ed37 | 7367 | echo "configure:7368: checking for --enable-pnm" >&5 |
0046ff7c VS |
7368 | no_cache=0 |
7369 | # Check whether --enable-pnm or --disable-pnm was given. | |
7370 | if test "${enable_pnm+set}" = set; then | |
7371 | enableval="$enable_pnm" | |
698dcdb6 | 7372 | |
0046ff7c VS |
7373 | if test "$enableval" = yes; then |
7374 | ac_cv_use_pnm='wxUSE_XPM=yes' | |
7375 | else | |
7376 | ac_cv_use_pnm='wxUSE_XPM=no' | |
7377 | fi | |
698dcdb6 | 7378 | |
0046ff7c | 7379 | else |
698dcdb6 | 7380 | |
0046ff7c VS |
7381 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` |
7382 | if test "x$LINE" != x ; then | |
7383 | eval "DEFAULT_$LINE" | |
7384 | else | |
7385 | no_cache=1 | |
7386 | fi | |
7387 | ||
7388 | ac_cv_use_pnm='wxUSE_XPM='$DEFAULT_wxUSE_XPM | |
698dcdb6 VZ |
7389 | |
7390 | fi | |
0046ff7c VS |
7391 | |
7392 | ||
7393 | eval "$ac_cv_use_pnm" | |
7394 | if test "$no_cache" != 1; then | |
7395 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
7396 | fi | |
7397 | ||
7398 | if test "$wxUSE_XPM" = yes; then | |
698dcdb6 | 7399 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 7400 | else |
698dcdb6 | 7401 | echo "$ac_t""no" 1>&6 |
0046ff7c | 7402 | fi |
698dcdb6 | 7403 | |
0046ff7c | 7404 | |
b12915c1 VZ |
7405 | fi |
7406 | ||
698dcdb6 | 7407 | |
10f2d63a VZ |
7408 | echo "saving argument cache $wx_arg_cache_file" |
7409 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
698dcdb6 | 7410 | |
10f2d63a | 7411 | |
698dcdb6 VZ |
7412 | |
7413 | echo $ac_n "checking for toolkit""... $ac_c" 1>&6 | |
3379ed37 | 7414 | echo "configure:7415: checking for toolkit" >&5 |
10f2d63a VZ |
7415 | |
7416 | if test "$wxUSE_GUI" = "yes"; then | |
7417 | ||
b12915c1 | 7418 | if test "$USE_BEOS" = 1; then |
698dcdb6 | 7419 | { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; } |
b12915c1 VZ |
7420 | fi |
7421 | ||
10f2d63a VZ |
7422 | if test "$TOOLKIT_GIVEN" = 1; then |
7423 | for toolkit in `echo $ALL_TOOLKITS`; do | |
7424 | var=wxUSE_$toolkit | |
7425 | eval "value=\$${var}" | |
7426 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
7427 | done | |
7428 | else | |
7429 | for toolkit in `echo $ALL_TOOLKITS`; do | |
7430 | if test "$has_toolkit_in_cache" != 1; then | |
7431 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
7432 | else | |
7433 | var=DEFAULT_wxUSE_$toolkit | |
7434 | fi | |
7435 | eval "wxUSE_$toolkit=\$${var}" | |
7436 | done | |
7437 | fi | |
7438 | ||
1e6feb95 | 7439 | 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 | 7440 | |
ec14dd32 VZ |
7441 | case "${host}" in |
7442 | *-pc-os2_emx ) | |
7443 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
7444 | # PATH_IFS is autodetected by OS/2's configure (usually ';') | |
7445 | LEX_STEM="lexyy" | |
7446 | ;; | |
7447 | *) | |
7448 | PATH_IFS=':' | |
7449 | LEX_STEM="lex.yy" | |
7450 | ;; | |
7451 | esac | |
10f2d63a VZ |
7452 | |
7453 | case "$NUM_TOOLKITS" in | |
7454 | 1) | |
7455 | ;; | |
7456 | 0) | |
698dcdb6 | 7457 | { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; } |
10f2d63a VZ |
7458 | ;; |
7459 | *) | |
698dcdb6 | 7460 | { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; } |
10f2d63a VZ |
7461 | esac |
7462 | ||
7463 | for toolkit in `echo $ALL_TOOLKITS`; do | |
7464 | var=wxUSE_$toolkit | |
7465 | eval "value=\$${var}" | |
7466 | if test "x$value" != x; then | |
7467 | cache_var=CACHE_$toolkit | |
7468 | eval "cache=\$${cache_var}" | |
7469 | if test "$cache" = 1; then | |
7470 | echo "$var=$value" >> ${wx_arg_cache_file} | |
7471 | fi | |
7472 | if test "$value" = 1; then | |
8168de4c VZ |
7473 | toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]` |
7474 | echo "$ac_t""$toolkit_echo" 1>&6 | |
10f2d63a VZ |
7475 | fi |
7476 | fi | |
7477 | done | |
7478 | ||
7479 | else | |
cf27ef00 | 7480 | PATH_IFS=':' |
698dcdb6 | 7481 | echo "$ac_t""base only" 1>&6 |
10f2d63a VZ |
7482 | fi |
7483 | ||
698dcdb6 VZ |
7484 | |
7485 | cat > confcache <<\EOF | |
10f2d63a VZ |
7486 | # This file is a shell script that caches the results of configure |
7487 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
7488 | # scripts and configure runs. It is not useful on other systems. |
7489 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 7490 | # |
698dcdb6 VZ |
7491 | # By default, configure uses ./config.cache as the cache file, |
7492 | # creating it if it does not exist already. You can give configure | |
7493 | # the --cache-file=FILE option to use a different cache file; that is | |
7494 | # what configure does when it calls configure scripts in | |
7495 | # subdirectories, so they share the cache. | |
7496 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
7497 | # config.status only pays attention to the cache file if you give it the | |
7498 | # --recheck option to rerun configure. | |
10f2d63a | 7499 | # |
698dcdb6 | 7500 | EOF |
10f2d63a VZ |
7501 | # The following way of writing the cache mishandles newlines in values, |
7502 | # but we know of no workaround that is simple, portable, and efficient. | |
7503 | # So, don't put newlines in cache variables' values. | |
7504 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
7505 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
7506 | (set) 2>&1 | |
7507 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
7508 | *ac_space=\ *) | |
7509 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
7510 | # turns \\\\ into \\, and sed turns \\ into \). | |
7511 | sed -n \ | |
7512 | -e "s/'/'\\\\''/g" \ | |
7513 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
7514 | ;; | |
7515 | *) | |
7516 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7517 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
7518 | ;; | |
7519 | esac >> confcache | |
7520 | if cmp -s $cache_file confcache; then | |
7521 | : | |
7522 | else | |
10f2d63a | 7523 | if test -w $cache_file; then |
698dcdb6 VZ |
7524 | echo "updating cache $cache_file" |
7525 | cat confcache > $cache_file | |
10f2d63a VZ |
7526 | else |
7527 | echo "not updating unwritable cache $cache_file" | |
7528 | fi | |
7529 | fi | |
7530 | rm -f confcache | |
7531 | ||
698dcdb6 | 7532 | |
e59890c3 | 7533 | if test "$build" != "$host" ; then |
10f2d63a VZ |
7534 | CC=$host_alias-gcc |
7535 | CXX=$host_alias-c++ | |
7536 | AR=$host_alias-ar | |
7537 | RANLIB=$host_alias-ranlib | |
7538 | DLLTOOL=$host_alias-dlltool | |
32832908 | 7539 | RESCOMP=$host_alias-windres |
10f2d63a VZ |
7540 | LD=$host_alias-ld |
7541 | NM=$host_alias-nm | |
7542 | STRIP=$host_alias-strip | |
10f2d63a VZ |
7543 | fi |
7544 | ||
698dcdb6 | 7545 | # Extract the first word of "gcc", so it can be a program name with args. |
1e487827 | 7546 | set dummy gcc; ac_word=$2 |
698dcdb6 | 7547 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
3379ed37 | 7548 | echo "configure:7549: checking for $ac_word" >&5 |
698dcdb6 VZ |
7549 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
7550 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6232543b VS |
7551 | else |
7552 | if test -n "$CC"; then | |
7553 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10f2d63a | 7554 | else |
698dcdb6 VZ |
7555 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
7556 | ac_dummy="$PATH" | |
7557 | for ac_dir in $ac_dummy; do | |
7558 | test -z "$ac_dir" && ac_dir=. | |
7559 | if test -f $ac_dir/$ac_word; then | |
7560 | ac_cv_prog_CC="gcc" | |
7561 | break | |
7562 | fi | |
7563 | done | |
7564 | IFS="$ac_save_ifs" | |
10f2d63a | 7565 | fi |
6232543b | 7566 | fi |
698dcdb6 | 7567 | CC="$ac_cv_prog_CC" |
6232543b | 7568 | if test -n "$CC"; then |
698dcdb6 | 7569 | echo "$ac_t""$CC" 1>&6 |
1e487827 | 7570 | else |
698dcdb6 | 7571 | echo "$ac_t""no" 1>&6 |
1e487827 | 7572 | fi |
6232543b | 7573 | |
1e487827 VS |
7574 | if test -z "$CC"; then |
7575 | # Extract the first word of "cc", so it can be a program name with args. | |
7576 | set dummy cc; ac_word=$2 | |
698dcdb6 | 7577 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
3379ed37 | 7578 | echo "configure:7579: checking for $ac_word" >&5 |
698dcdb6 VZ |
7579 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
7580 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 VS |
7581 | else |
7582 | if test -n "$CC"; then | |
7583 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
7584 | else | |
698dcdb6 | 7585 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1e487827 | 7586 | ac_prog_rejected=no |
698dcdb6 VZ |
7587 | ac_dummy="$PATH" |
7588 | for ac_dir in $ac_dummy; do | |
7589 | test -z "$ac_dir" && ac_dir=. | |
7590 | if test -f $ac_dir/$ac_word; then | |
7591 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
7592 | ac_prog_rejected=yes | |
7593 | continue | |
7594 | fi | |
7595 | ac_cv_prog_CC="cc" | |
7596 | break | |
7597 | fi | |
7598 | done | |
7599 | IFS="$ac_save_ifs" | |
1e487827 VS |
7600 | if test $ac_prog_rejected = yes; then |
7601 | # We found a bogon in the path, so make sure we never use it. | |
7602 | set dummy $ac_cv_prog_CC | |
7603 | shift | |
698dcdb6 | 7604 | if test $# -gt 0; then |
1e487827 VS |
7605 | # We chose a different compiler from the bogus one. |
7606 | # However, it has the same basename, so the bogon will be chosen | |
7607 | # first if we set CC to just the basename; use the full file name. | |
7608 | shift | |
698dcdb6 | 7609 | set dummy "$ac_dir/$ac_word" "$@" |
1e487827 VS |
7610 | shift |
7611 | ac_cv_prog_CC="$@" | |
703e0a69 | 7612 | fi |
1e487827 VS |
7613 | fi |
7614 | fi | |
7615 | fi | |
698dcdb6 | 7616 | CC="$ac_cv_prog_CC" |
1e487827 | 7617 | if test -n "$CC"; then |
698dcdb6 | 7618 | echo "$ac_t""$CC" 1>&6 |
703e0a69 | 7619 | else |
698dcdb6 | 7620 | echo "$ac_t""no" 1>&6 |
703e0a69 | 7621 | fi |
1e487827 | 7622 | |
698dcdb6 VZ |
7623 | if test -z "$CC"; then |
7624 | case "`uname -s`" in | |
7625 | *win32* | *WIN32*) | |
7626 | # Extract the first word of "cl", so it can be a program name with args. | |
7627 | set dummy cl; ac_word=$2 | |
7628 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
3379ed37 | 7629 | echo "configure:7630: checking for $ac_word" >&5 |
698dcdb6 VZ |
7630 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
7631 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 VS |
7632 | else |
7633 | if test -n "$CC"; then | |
7634 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
703e0a69 | 7635 | else |
698dcdb6 VZ |
7636 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
7637 | ac_dummy="$PATH" | |
7638 | for ac_dir in $ac_dummy; do | |
7639 | test -z "$ac_dir" && ac_dir=. | |
7640 | if test -f $ac_dir/$ac_word; then | |
7641 | ac_cv_prog_CC="cl" | |
7642 | break | |
7643 | fi | |
7644 | done | |
7645 | IFS="$ac_save_ifs" | |
703e0a69 | 7646 | fi |
1e487827 | 7647 | fi |
698dcdb6 | 7648 | CC="$ac_cv_prog_CC" |
1e487827 | 7649 | if test -n "$CC"; then |
698dcdb6 | 7650 | echo "$ac_t""$CC" 1>&6 |
1e487827 | 7651 | else |
698dcdb6 | 7652 | echo "$ac_t""no" 1>&6 |
1e487827 | 7653 | fi |
698dcdb6 VZ |
7654 | ;; |
7655 | esac | |
7656 | fi | |
7657 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
1e487827 VS |
7658 | fi |
7659 | ||
698dcdb6 | 7660 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
3379ed37 | 7661 | echo "configure:7662: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
1e487827 | 7662 | |
698dcdb6 VZ |
7663 | ac_ext=c |
7664 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
7665 | ac_cpp='$CPP $CPPFLAGS' | |
7666 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
7667 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7668 | cross_compiling=$ac_cv_prog_cc_cross | |
6232543b | 7669 | |
698dcdb6 | 7670 | cat > conftest.$ac_ext << EOF |
1e487827 | 7671 | |
3379ed37 | 7672 | #line 7673 "configure" |
1e487827 VS |
7673 | #include "confdefs.h" |
7674 | ||
698dcdb6 VZ |
7675 | main(){return(0);} |
7676 | EOF | |
3379ed37 | 7677 | if { (eval echo configure:7678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
7678 | ac_cv_prog_cc_works=yes |
7679 | # If we can't run a trivial program, we are probably using a cross compiler. | |
7680 | if (./conftest; exit) 2>/dev/null; then | |
7681 | ac_cv_prog_cc_cross=no | |
7682 | else | |
7683 | ac_cv_prog_cc_cross=yes | |
7684 | fi | |
7685 | else | |
7686 | echo "configure: failed program was:" >&5 | |
7687 | cat conftest.$ac_ext >&5 | |
7688 | ac_cv_prog_cc_works=no | |
7689 | fi | |
7690 | rm -fr conftest* | |
7691 | ac_ext=c | |
7692 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
7693 | ac_cpp='$CPP $CPPFLAGS' | |
7694 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
7695 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7696 | cross_compiling=$ac_cv_prog_cc_cross | |
7697 | ||
7698 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
7699 | if test $ac_cv_prog_cc_works = no; then | |
7700 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
7701 | fi | |
7702 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
3379ed37 | 7703 | echo "configure:7704: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
698dcdb6 VZ |
7704 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
7705 | cross_compiling=$ac_cv_prog_cc_cross | |
7706 | ||
7707 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
3379ed37 | 7708 | echo "configure:7709: checking whether we are using GNU C" >&5 |
698dcdb6 VZ |
7709 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
7710 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7711 | else | |
7712 | cat > conftest.c <<EOF | |
7713 | #ifdef __GNUC__ | |
7714 | yes; | |
1e487827 | 7715 | #endif |
698dcdb6 | 7716 | EOF |
3379ed37 | 7717 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:7718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
698dcdb6 VZ |
7718 | ac_cv_prog_gcc=yes |
7719 | else | |
7720 | ac_cv_prog_gcc=no | |
7721 | fi | |
7722 | fi | |
1e487827 | 7723 | |
698dcdb6 | 7724 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
1e487827 | 7725 | |
698dcdb6 VZ |
7726 | if test $ac_cv_prog_gcc = yes; then |
7727 | GCC=yes | |
7728 | else | |
7729 | GCC= | |
7730 | fi | |
1e487827 | 7731 | |
698dcdb6 VZ |
7732 | ac_test_CFLAGS="${CFLAGS+set}" |
7733 | ac_save_CFLAGS="$CFLAGS" | |
7734 | CFLAGS= | |
7735 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
3379ed37 | 7736 | echo "configure:7737: checking whether ${CC-cc} accepts -g" >&5 |
698dcdb6 VZ |
7737 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
7738 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7739 | else | |
7740 | echo 'void f(){}' > conftest.c | |
7741 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
10f2d63a VZ |
7742 | ac_cv_prog_cc_g=yes |
7743 | else | |
698dcdb6 | 7744 | ac_cv_prog_cc_g=no |
10f2d63a | 7745 | fi |
698dcdb6 VZ |
7746 | rm -f conftest* |
7747 | ||
10f2d63a | 7748 | fi |
698dcdb6 VZ |
7749 | |
7750 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
10f2d63a | 7751 | if test "$ac_test_CFLAGS" = set; then |
698dcdb6 | 7752 | CFLAGS="$ac_save_CFLAGS" |
10f2d63a VZ |
7753 | elif test $ac_cv_prog_cc_g = yes; then |
7754 | if test "$GCC" = yes; then | |
7755 | CFLAGS="-g -O2" | |
7756 | else | |
7757 | CFLAGS="-g" | |
7758 | fi | |
7759 | else | |
7760 | if test "$GCC" = yes; then | |
7761 | CFLAGS="-O2" | |
7762 | else | |
7763 | CFLAGS= | |
7764 | fi | |
7765 | fi | |
7766 | ||
7767 | ||
7768 | CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'` | |
7769 | ||
698dcdb6 | 7770 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
3379ed37 | 7771 | echo "configure:7772: checking how to run the C preprocessor" >&5 |
10f2d63a VZ |
7772 | # On Suns, sometimes $CPP names a directory. |
7773 | if test -n "$CPP" && test -d "$CPP"; then | |
7774 | CPP= | |
7775 | fi | |
7776 | if test -z "$CPP"; then | |
698dcdb6 VZ |
7777 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
7778 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7779 | else | |
7780 | # This must be in double quotes, not single quotes, because CPP may get | |
7781 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
7782 | CPP="${CC-cc} -E" | |
10f2d63a | 7783 | # On the NeXT, cc -E runs the code through the compiler's parser, |
698dcdb6 VZ |
7784 | # not just through cpp. |
7785 | cat > conftest.$ac_ext <<EOF | |
3379ed37 | 7786 | #line 7787 "configure" |
10f2d63a VZ |
7787 | #include "confdefs.h" |
7788 | #include <assert.h> | |
698dcdb6 VZ |
7789 | Syntax Error |
7790 | EOF | |
7791 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3379ed37 | 7792 | { (eval echo configure:7793: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
7793 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7794 | if test -z "$ac_err"; then | |
10f2d63a VZ |
7795 | : |
7796 | else | |
698dcdb6 VZ |
7797 | echo "$ac_err" >&5 |
7798 | echo "configure: failed program was:" >&5 | |
10f2d63a | 7799 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
7800 | rm -rf conftest* |
7801 | CPP="${CC-cc} -E -traditional-cpp" | |
7802 | cat > conftest.$ac_ext <<EOF | |
3379ed37 | 7803 | #line 7804 "configure" |
10f2d63a | 7804 | #include "confdefs.h" |
698dcdb6 VZ |
7805 | #include <assert.h> |
7806 | Syntax Error | |
7807 | EOF | |
7808 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3379ed37 | 7809 | { (eval echo configure:7810: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
7810 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7811 | if test -z "$ac_err"; then | |
7812 | : | |
10f2d63a | 7813 | else |
698dcdb6 VZ |
7814 | echo "$ac_err" >&5 |
7815 | echo "configure: failed program was:" >&5 | |
10f2d63a | 7816 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
7817 | rm -rf conftest* |
7818 | CPP="${CC-cc} -nologo -E" | |
7819 | cat > conftest.$ac_ext <<EOF | |
3379ed37 | 7820 | #line 7821 "configure" |
10f2d63a VZ |
7821 | #include "confdefs.h" |
7822 | #include <assert.h> | |
698dcdb6 VZ |
7823 | Syntax Error |
7824 | EOF | |
7825 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3379ed37 | 7826 | { (eval echo configure:7827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
7827 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7828 | if test -z "$ac_err"; then | |
10f2d63a VZ |
7829 | : |
7830 | else | |
698dcdb6 VZ |
7831 | echo "$ac_err" >&5 |
7832 | echo "configure: failed program was:" >&5 | |
10f2d63a | 7833 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
7834 | rm -rf conftest* |
7835 | CPP=/lib/cpp | |
10f2d63a | 7836 | fi |
698dcdb6 | 7837 | rm -f conftest* |
10f2d63a | 7838 | fi |
698dcdb6 | 7839 | rm -f conftest* |
703e0a69 | 7840 | fi |
698dcdb6 VZ |
7841 | rm -f conftest* |
7842 | ac_cv_prog_CPP="$CPP" | |
7843 | fi | |
7844 | CPP="$ac_cv_prog_CPP" | |
10f2d63a | 7845 | else |
698dcdb6 | 7846 | ac_cv_prog_CPP="$CPP" |
10f2d63a | 7847 | fi |
698dcdb6 | 7848 | echo "$ac_t""$CPP" 1>&6 |
10f2d63a VZ |
7849 | |
7850 | ||
698dcdb6 VZ |
7851 | if test $ac_cv_prog_gcc = yes; then |
7852 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
3379ed37 | 7853 | echo "configure:7854: checking whether ${CC-cc} needs -traditional" >&5 |
698dcdb6 VZ |
7854 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
7855 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
7856 | else |
7857 | ac_pattern="Autoconf.*'x'" | |
698dcdb6 | 7858 | cat > conftest.$ac_ext <<EOF |
3379ed37 | 7859 | #line 7860 "configure" |
10f2d63a VZ |
7860 | #include "confdefs.h" |
7861 | #include <sgtty.h> | |
7862 | Autoconf TIOCGETP | |
698dcdb6 | 7863 | EOF |
10f2d63a VZ |
7864 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
7865 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
698dcdb6 | 7866 | rm -rf conftest* |
10f2d63a VZ |
7867 | ac_cv_prog_gcc_traditional=yes |
7868 | else | |
698dcdb6 | 7869 | rm -rf conftest* |
10f2d63a VZ |
7870 | ac_cv_prog_gcc_traditional=no |
7871 | fi | |
7872 | rm -f conftest* | |
7873 | ||
698dcdb6 | 7874 | |
10f2d63a | 7875 | if test $ac_cv_prog_gcc_traditional = no; then |
698dcdb6 | 7876 | cat > conftest.$ac_ext <<EOF |
3379ed37 | 7877 | #line 7878 "configure" |
10f2d63a VZ |
7878 | #include "confdefs.h" |
7879 | #include <termio.h> | |
7880 | Autoconf TCGETA | |
698dcdb6 | 7881 | EOF |
10f2d63a VZ |
7882 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
7883 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
698dcdb6 | 7884 | rm -rf conftest* |
10f2d63a VZ |
7885 | ac_cv_prog_gcc_traditional=yes |
7886 | fi | |
7887 | rm -f conftest* | |
7888 | ||
7889 | fi | |
7890 | fi | |
698dcdb6 VZ |
7891 | |
7892 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
10f2d63a VZ |
7893 | if test $ac_cv_prog_gcc_traditional = yes; then |
7894 | CC="$CC -traditional" | |
7895 | fi | |
7896 | fi | |
7897 | ||
703e0a69 | 7898 | |
698dcdb6 VZ |
7899 | |
7900 | ac_ext=C | |
7901 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 7902 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
7903 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
7904 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7905 | cross_compiling=$ac_cv_prog_cxx_cross | |
7906 | ||
7907 | ||
7908 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | |
7909 | do | |
7910 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
7911 | set dummy $ac_prog; ac_word=$2 | |
7912 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
3379ed37 | 7913 | echo "configure:7914: checking for $ac_word" >&5 |
698dcdb6 VZ |
7914 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
7915 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
7916 | else |
7917 | if test -n "$CXX"; then | |
7918 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
7919 | else | |
698dcdb6 VZ |
7920 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
7921 | ac_dummy="$PATH" | |
7922 | for ac_dir in $ac_dummy; do | |
7923 | test -z "$ac_dir" && ac_dir=. | |
7924 | if test -f $ac_dir/$ac_word; then | |
7925 | ac_cv_prog_CXX="$ac_prog" | |
7926 | break | |
7927 | fi | |
7928 | done | |
7929 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
7930 | fi |
7931 | fi | |
698dcdb6 | 7932 | CXX="$ac_cv_prog_CXX" |
10f2d63a | 7933 | if test -n "$CXX"; then |
698dcdb6 | 7934 | echo "$ac_t""$CXX" 1>&6 |
10f2d63a | 7935 | else |
698dcdb6 | 7936 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
7937 | fi |
7938 | ||
698dcdb6 | 7939 | test -n "$CXX" && break |
10f2d63a | 7940 | done |
698dcdb6 | 7941 | test -n "$CXX" || CXX="gcc" |
10f2d63a VZ |
7942 | |
7943 | ||
698dcdb6 | 7944 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
3379ed37 | 7945 | echo "configure:7946: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
10f2d63a | 7946 | |
698dcdb6 VZ |
7947 | ac_ext=C |
7948 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
7949 | ac_cpp='$CXXCPP $CPPFLAGS' | |
7950 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
7951 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7952 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 7953 | |
698dcdb6 VZ |
7954 | cat > conftest.$ac_ext << EOF |
7955 | ||
3379ed37 | 7956 | #line 7957 "configure" |
10f2d63a VZ |
7957 | #include "confdefs.h" |
7958 | ||
698dcdb6 VZ |
7959 | int main(){return(0);} |
7960 | EOF | |
3379ed37 | 7961 | if { (eval echo configure:7962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
7962 | ac_cv_prog_cxx_works=yes |
7963 | # If we can't run a trivial program, we are probably using a cross compiler. | |
7964 | if (./conftest; exit) 2>/dev/null; then | |
7965 | ac_cv_prog_cxx_cross=no | |
7966 | else | |
7967 | ac_cv_prog_cxx_cross=yes | |
7968 | fi | |
7969 | else | |
7970 | echo "configure: failed program was:" >&5 | |
7971 | cat conftest.$ac_ext >&5 | |
7972 | ac_cv_prog_cxx_works=no | |
7973 | fi | |
7974 | rm -fr conftest* | |
7975 | ac_ext=C | |
7976 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
7977 | ac_cpp='$CXXCPP $CPPFLAGS' | |
7978 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
7979 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7980 | cross_compiling=$ac_cv_prog_cxx_cross | |
7981 | ||
7982 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 | |
7983 | if test $ac_cv_prog_cxx_works = no; then | |
7984 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
7985 | fi | |
7986 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
3379ed37 | 7987 | echo "configure:7988: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
698dcdb6 VZ |
7988 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
7989 | cross_compiling=$ac_cv_prog_cxx_cross | |
7990 | ||
7991 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 | |
3379ed37 | 7992 | echo "configure:7993: checking whether we are using GNU C++" >&5 |
698dcdb6 VZ |
7993 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
7994 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7995 | else | |
7996 | cat > conftest.C <<EOF | |
7997 | #ifdef __GNUC__ | |
7998 | yes; | |
10f2d63a | 7999 | #endif |
698dcdb6 | 8000 | EOF |
3379ed37 | 8001 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:8002: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
698dcdb6 VZ |
8002 | ac_cv_prog_gxx=yes |
8003 | else | |
8004 | ac_cv_prog_gxx=no | |
8005 | fi | |
8006 | fi | |
10f2d63a | 8007 | |
698dcdb6 | 8008 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
10f2d63a | 8009 | |
698dcdb6 VZ |
8010 | if test $ac_cv_prog_gxx = yes; then |
8011 | GXX=yes | |
8012 | else | |
8013 | GXX= | |
8014 | fi | |
10f2d63a | 8015 | |
698dcdb6 VZ |
8016 | ac_test_CXXFLAGS="${CXXFLAGS+set}" |
8017 | ac_save_CXXFLAGS="$CXXFLAGS" | |
8018 | CXXFLAGS= | |
8019 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
3379ed37 | 8020 | echo "configure:8021: checking whether ${CXX-g++} accepts -g" >&5 |
698dcdb6 VZ |
8021 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
8022 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8023 | else | |
8024 | echo 'void f(){}' > conftest.cc | |
8025 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
10f2d63a VZ |
8026 | ac_cv_prog_cxx_g=yes |
8027 | else | |
698dcdb6 | 8028 | ac_cv_prog_cxx_g=no |
10f2d63a | 8029 | fi |
698dcdb6 VZ |
8030 | rm -f conftest* |
8031 | ||
10f2d63a | 8032 | fi |
698dcdb6 VZ |
8033 | |
8034 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
10f2d63a | 8035 | if test "$ac_test_CXXFLAGS" = set; then |
698dcdb6 | 8036 | CXXFLAGS="$ac_save_CXXFLAGS" |
10f2d63a VZ |
8037 | elif test $ac_cv_prog_cxx_g = yes; then |
8038 | if test "$GXX" = yes; then | |
8039 | CXXFLAGS="-g -O2" | |
8040 | else | |
8041 | CXXFLAGS="-g" | |
8042 | fi | |
8043 | else | |
8044 | if test "$GXX" = yes; then | |
8045 | CXXFLAGS="-O2" | |
8046 | else | |
8047 | CXXFLAGS= | |
8048 | fi | |
8049 | fi | |
8050 | ||
8051 | ||
698dcdb6 | 8052 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 |
3379ed37 | 8053 | echo "configure:8054: checking how to run the C++ preprocessor" >&5 |
1e487827 | 8054 | if test -z "$CXXCPP"; then |
698dcdb6 VZ |
8055 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then |
8056 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 8057 | else |
698dcdb6 VZ |
8058 | ac_ext=C |
8059 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8060 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8061 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8062 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8063 | cross_compiling=$ac_cv_prog_cxx_cross | |
8064 | CXXCPP="${CXX-g++} -E" | |
8065 | cat > conftest.$ac_ext <<EOF | |
3379ed37 | 8066 | #line 8067 "configure" |
1e487827 | 8067 | #include "confdefs.h" |
698dcdb6 VZ |
8068 | #include <stdlib.h> |
8069 | EOF | |
8070 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3379ed37 | 8071 | { (eval echo configure:8072: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8072 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8073 | if test -z "$ac_err"; then | |
1e487827 VS |
8074 | : |
8075 | else | |
698dcdb6 VZ |
8076 | echo "$ac_err" >&5 |
8077 | echo "configure: failed program was:" >&5 | |
1e487827 | 8078 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8079 | rm -rf conftest* |
8080 | CXXCPP=/lib/cpp | |
1e487827 | 8081 | fi |
698dcdb6 VZ |
8082 | rm -f conftest* |
8083 | ac_cv_prog_CXXCPP="$CXXCPP" | |
8084 | ac_ext=C | |
8085 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8086 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8087 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8088 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8089 | cross_compiling=$ac_cv_prog_cxx_cross | |
1e487827 | 8090 | fi |
1e487827 | 8091 | fi |
698dcdb6 VZ |
8092 | CXXCPP="$ac_cv_prog_CXXCPP" |
8093 | echo "$ac_t""$CXXCPP" 1>&6 | |
1e487827 | 8094 | |
10f2d63a VZ |
8095 | |
8096 | CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'` | |
8097 | ||
8098 | ac_ext=c | |
698dcdb6 | 8099 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 8100 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
8101 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
8102 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8103 | cross_compiling=$ac_cv_prog_cc_cross | |
8104 | ||
8105 | ||
8106 | # Extract the first word of "ranlib", so it can be a program name with args. | |
8107 | set dummy ranlib; ac_word=$2 | |
8108 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
3379ed37 | 8109 | echo "configure:8110: checking for $ac_word" >&5 |
698dcdb6 VZ |
8110 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
8111 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8112 | else |
8113 | if test -n "$RANLIB"; then | |
8114 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8115 | else | |
698dcdb6 VZ |
8116 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8117 | ac_dummy="$PATH" | |
8118 | for ac_dir in $ac_dummy; do | |
8119 | test -z "$ac_dir" && ac_dir=. | |
8120 | if test -f $ac_dir/$ac_word; then | |
8121 | ac_cv_prog_RANLIB="ranlib" | |
8122 | break | |
8123 | fi | |
8124 | done | |
8125 | IFS="$ac_save_ifs" | |
8126 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
10f2d63a VZ |
8127 | fi |
8128 | fi | |
698dcdb6 | 8129 | RANLIB="$ac_cv_prog_RANLIB" |
10f2d63a | 8130 | if test -n "$RANLIB"; then |
698dcdb6 | 8131 | echo "$ac_t""$RANLIB" 1>&6 |
10f2d63a | 8132 | else |
698dcdb6 | 8133 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8134 | fi |
8135 | ||
8136 | ||
8137 | # Extract the first word of "ar", so it can be a program name with args. | |
8138 | set dummy ar; ac_word=$2 | |
698dcdb6 | 8139 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
3379ed37 | 8140 | echo "configure:8141: checking for $ac_word" >&5 |
698dcdb6 VZ |
8141 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
8142 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8143 | else |
8144 | if test -n "$AR"; then | |
8145 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8146 | else | |
698dcdb6 VZ |
8147 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8148 | ac_dummy="$PATH" | |
8149 | for ac_dir in $ac_dummy; do | |
8150 | test -z "$ac_dir" && ac_dir=. | |
8151 | if test -f $ac_dir/$ac_word; then | |
8152 | ac_cv_prog_AR="ar" | |
8153 | break | |
8154 | fi | |
8155 | done | |
8156 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8157 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
8158 | fi | |
8159 | fi | |
698dcdb6 | 8160 | AR="$ac_cv_prog_AR" |
10f2d63a | 8161 | if test -n "$AR"; then |
698dcdb6 | 8162 | echo "$ac_t""$AR" 1>&6 |
10f2d63a | 8163 | else |
698dcdb6 | 8164 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8165 | fi |
8166 | ||
698dcdb6 | 8167 | |
10f2d63a VZ |
8168 | # Find a good install program. We prefer a C program (faster), |
8169 | # so one script is as good as another. But avoid the broken or | |
8170 | # incompatible versions: | |
8171 | # SysV /etc/install, /usr/sbin/install | |
8172 | # SunOS /usr/etc/install | |
8173 | # IRIX /sbin/install | |
8174 | # AIX /bin/install | |
8175 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
8176 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
8177 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
8178 | # ./install, which can be erroneously created by make from ./install.sh. | |
698dcdb6 | 8179 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
3379ed37 | 8180 | echo "configure:8181: checking for a BSD compatible install" >&5 |
10f2d63a | 8181 | if test -z "$INSTALL"; then |
698dcdb6 VZ |
8182 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
8183 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 8184 | else |
698dcdb6 | 8185 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
10f2d63a VZ |
8186 | for ac_dir in $PATH; do |
8187 | # Account for people who put trailing slashes in PATH elements. | |
698dcdb6 VZ |
8188 | case "$ac_dir/" in |
8189 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
10f2d63a VZ |
8190 | *) |
8191 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
8192 | # Don't use installbsd from OSF since it installs stuff as root | |
8193 | # by default. | |
8194 | for ac_prog in ginstall scoinst install; do | |
698dcdb6 | 8195 | if test -f $ac_dir/$ac_prog; then |
10f2d63a | 8196 | if test $ac_prog = install && |
698dcdb6 | 8197 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
10f2d63a VZ |
8198 | # AIX install. It has an incompatible calling convention. |
8199 | : | |
8200 | else | |
8201 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
8202 | break 2 | |
8203 | fi | |
8204 | fi | |
8205 | done | |
8206 | ;; | |
8207 | esac | |
8208 | done | |
698dcdb6 | 8209 | IFS="$ac_save_IFS" |
10f2d63a VZ |
8210 | |
8211 | fi | |
8212 | if test "${ac_cv_path_install+set}" = set; then | |
698dcdb6 | 8213 | INSTALL="$ac_cv_path_install" |
10f2d63a VZ |
8214 | else |
8215 | # As a last resort, use the slow shell script. We don't cache a | |
8216 | # path for INSTALL within a source directory, because that will | |
8217 | # break other packages using the cache if that directory is | |
8218 | # removed, or if the path is relative. | |
698dcdb6 | 8219 | INSTALL="$ac_install_sh" |
10f2d63a VZ |
8220 | fi |
8221 | fi | |
698dcdb6 | 8222 | echo "$ac_t""$INSTALL" 1>&6 |
10f2d63a VZ |
8223 | |
8224 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
8225 | # It thinks the first close brace ends the variable substitution. | |
8226 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
8227 | ||
698dcdb6 | 8228 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
10f2d63a VZ |
8229 | |
8230 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
8231 | ||
698dcdb6 | 8232 | |
10f2d63a VZ |
8233 | # Extract the first word of "strip", so it can be a program name with args. |
8234 | set dummy strip; ac_word=$2 | |
698dcdb6 | 8235 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
3379ed37 | 8236 | echo "configure:8237: checking for $ac_word" >&5 |
698dcdb6 VZ |
8237 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
8238 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8239 | else |
8240 | if test -n "$STRIP"; then | |
8241 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
8242 | else | |
698dcdb6 VZ |
8243 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8244 | ac_dummy="$PATH" | |
8245 | for ac_dir in $ac_dummy; do | |
8246 | test -z "$ac_dir" && ac_dir=. | |
8247 | if test -f $ac_dir/$ac_word; then | |
8248 | ac_cv_prog_STRIP="strip" | |
8249 | break | |
8250 | fi | |
8251 | done | |
8252 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8253 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
8254 | fi | |
8255 | fi | |
698dcdb6 | 8256 | STRIP="$ac_cv_prog_STRIP" |
10f2d63a | 8257 | if test -n "$STRIP"; then |
698dcdb6 | 8258 | echo "$ac_t""$STRIP" 1>&6 |
10f2d63a | 8259 | else |
698dcdb6 | 8260 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8261 | fi |
8262 | ||
698dcdb6 VZ |
8263 | |
8264 | echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6 | |
3379ed37 | 8265 | echo "configure:8266: checking make for VPATH support" >&5 |
10f2d63a VZ |
8266 | cat - << EOF > confMake |
8267 | check : file | |
8268 | cp \$? \$@ | |
8269 | cp \$? final_file | |
8270 | EOF | |
8271 | ||
8272 | if test ! -d sub ; then | |
8273 | mkdir sub | |
8274 | fi | |
8275 | echo dummy > sub/file | |
f6bcfd97 | 8276 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null |
10f2d63a VZ |
8277 | RESULT=$? |
8278 | rm -f sub/file check final_file confMake | |
8279 | rmdir sub | |
8280 | if test "$RESULT" = 0; then | |
698dcdb6 | 8281 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8282 | else |
698dcdb6 VZ |
8283 | echo "$ac_t""no" 1>&6 |
8284 | { echo "configure: error: | |
1e487827 VS |
8285 | You need a make-utility that is able to use the variable |
8286 | VPATH correctly. | |
8287 | If your version of make does not support VPATH correctly, | |
8288 | please install GNU-make (possibly as gmake), and start | |
8289 | configure with the following command: | |
8290 | export MAKE=gmake; ./configure for sh-type shells | |
8291 | setenv MAKE gmake; ./configure for csh-type shells | |
8292 | Also please do remember to use gmake in this case every time | |
8293 | you are trying to compile. | |
698dcdb6 | 8294 | " 1>&2; exit 1; } |
10f2d63a VZ |
8295 | fi |
8296 | ||
8297 | for ac_prog in 'bison -y' byacc | |
8298 | do | |
698dcdb6 | 8299 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
10f2d63a | 8300 | set dummy $ac_prog; ac_word=$2 |
698dcdb6 | 8301 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
3379ed37 | 8302 | echo "configure:8303: checking for $ac_word" >&5 |
698dcdb6 VZ |
8303 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
8304 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8305 | else |
8306 | if test -n "$YACC"; then | |
8307 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
8308 | else | |
698dcdb6 VZ |
8309 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8310 | ac_dummy="$PATH" | |
8311 | for ac_dir in $ac_dummy; do | |
8312 | test -z "$ac_dir" && ac_dir=. | |
8313 | if test -f $ac_dir/$ac_word; then | |
8314 | ac_cv_prog_YACC="$ac_prog" | |
8315 | break | |
8316 | fi | |
8317 | done | |
8318 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8319 | fi |
8320 | fi | |
698dcdb6 | 8321 | YACC="$ac_cv_prog_YACC" |
10f2d63a | 8322 | if test -n "$YACC"; then |
698dcdb6 | 8323 | echo "$ac_t""$YACC" 1>&6 |
10f2d63a | 8324 | else |
698dcdb6 | 8325 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8326 | fi |
8327 | ||
698dcdb6 | 8328 | test -n "$YACC" && break |
10f2d63a VZ |
8329 | done |
8330 | test -n "$YACC" || YACC="yacc" | |
8331 | ||
698dcdb6 VZ |
8332 | |
8333 | # Extract the first word of "flex", so it can be a program name with args. | |
8334 | set dummy flex; ac_word=$2 | |
8335 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
3379ed37 | 8336 | echo "configure:8337: checking for $ac_word" >&5 |
698dcdb6 VZ |
8337 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
8338 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8339 | else |
8340 | if test -n "$LEX"; then | |
8341 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
8342 | else | |
698dcdb6 VZ |
8343 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8344 | ac_dummy="$PATH" | |
8345 | for ac_dir in $ac_dummy; do | |
8346 | test -z "$ac_dir" && ac_dir=. | |
8347 | if test -f $ac_dir/$ac_word; then | |
8348 | ac_cv_prog_LEX="flex" | |
8349 | break | |
8350 | fi | |
8351 | done | |
8352 | IFS="$ac_save_ifs" | |
8353 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
10f2d63a VZ |
8354 | fi |
8355 | fi | |
698dcdb6 | 8356 | LEX="$ac_cv_prog_LEX" |
10f2d63a | 8357 | if test -n "$LEX"; then |
698dcdb6 | 8358 | echo "$ac_t""$LEX" 1>&6 |
10f2d63a | 8359 | else |
698dcdb6 | 8360 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8361 | fi |
8362 | ||
8363 | if test -z "$LEXLIB" | |
8364 | then | |
698dcdb6 VZ |
8365 | case "$LEX" in |
8366 | flex*) ac_lib=fl ;; | |
8367 | *) ac_lib=l ;; | |
8368 | esac | |
8369 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
3379ed37 | 8370 | echo "configure:8371: checking for yywrap in -l$ac_lib" >&5 |
698dcdb6 VZ |
8371 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
8372 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
8373 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8374 | else | |
8375 | ac_save_LIBS="$LIBS" | |
8376 | LIBS="-l$ac_lib $LIBS" | |
8377 | cat > conftest.$ac_ext <<EOF | |
3379ed37 | 8378 | #line 8379 "configure" |
10f2d63a VZ |
8379 | #include "confdefs.h" |
8380 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8381 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
8382 | builtin and then its argument prototype would still apply. */ |
8383 | char yywrap(); | |
10f2d63a | 8384 | |
698dcdb6 VZ |
8385 | int main() { |
8386 | yywrap() | |
8387 | ; return 0; } | |
8388 | EOF | |
3379ed37 | 8389 | if { (eval echo configure:8390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
8390 | rm -rf conftest* |
8391 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 8392 | else |
698dcdb6 VZ |
8393 | echo "configure: failed program was:" >&5 |
8394 | cat conftest.$ac_ext >&5 | |
8395 | rm -rf conftest* | |
8396 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 8397 | fi |
698dcdb6 VZ |
8398 | rm -f conftest* |
8399 | LIBS="$ac_save_LIBS" | |
8400 | ||
10f2d63a | 8401 | fi |
698dcdb6 VZ |
8402 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
8403 | echo "$ac_t""yes" 1>&6 | |
8404 | LEXLIB="-l$ac_lib" | |
8405 | else | |
8406 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
8407 | fi |
8408 | ||
8409 | fi | |
8410 | ||
8411 | ||
698dcdb6 | 8412 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
3379ed37 | 8413 | echo "configure:8414: checking whether ln -s works" >&5 |
698dcdb6 VZ |
8414 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
8415 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 8416 | else |
698dcdb6 VZ |
8417 | rm -f conftestdata |
8418 | if ln -s X conftestdata 2>/dev/null | |
8419 | then | |
8420 | rm -f conftestdata | |
8421 | ac_cv_prog_LN_S="ln -s" | |
10f2d63a | 8422 | else |
698dcdb6 | 8423 | ac_cv_prog_LN_S=ln |
10f2d63a VZ |
8424 | fi |
8425 | fi | |
698dcdb6 VZ |
8426 | LN_S="$ac_cv_prog_LN_S" |
8427 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
8428 | echo "$ac_t""yes" 1>&6 | |
10f2d63a | 8429 | else |
698dcdb6 | 8430 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8431 | fi |
8432 | ||
8433 | ||
8434 | ||
8435 | SEARCH_INCLUDE="\ | |
8436 | /usr/local/include \ | |
8437 | \ | |
8438 | /usr/Motif-1.2/include \ | |
8439 | /usr/Motif-2.1/include \ | |
8440 | \ | |
8441 | /usr/include/Motif1.2 \ | |
8442 | /opt/xpm/include/X11 \ | |
8443 | /opt/GBxpm/include/ \ | |
8444 | /opt/GBxpm/X11/include/ \ | |
8445 | \ | |
8446 | /usr/Motif1.2/include \ | |
8447 | /usr/dt/include \ | |
afc31813 VZ |
8448 | /usr/openwin/include \ |
8449 | \ | |
10f2d63a VZ |
8450 | /usr/include/Xm \ |
8451 | \ | |
8452 | /usr/X11R6/include \ | |
afc31813 | 8453 | /usr/X11R6.4/include \ |
10f2d63a VZ |
8454 | /usr/X11R5/include \ |
8455 | /usr/X11R4/include \ | |
8456 | \ | |
10f2d63a VZ |
8457 | /usr/include/X11R6 \ |
8458 | /usr/include/X11R5 \ | |
8459 | /usr/include/X11R4 \ | |
8460 | \ | |
8461 | /usr/local/X11R6/include \ | |
8462 | /usr/local/X11R5/include \ | |
8463 | /usr/local/X11R4/include \ | |
8464 | \ | |
8465 | /usr/local/include/X11R6 \ | |
8466 | /usr/local/include/X11R5 \ | |
8467 | /usr/local/include/X11R4 \ | |
8468 | \ | |
8469 | /usr/X11/include \ | |
8470 | /usr/include/X11 \ | |
8471 | /usr/local/X11/include \ | |
8472 | /usr/local/include/X11 \ | |
8473 | \ | |
8474 | /usr/X386/include \ | |
8475 | /usr/x386/include \ | |
8476 | /usr/XFree86/include/X11 \ | |
8477 | \ | |
cf27ef00 | 8478 | X:/XFree86/include \ |
ec14dd32 VZ |
8479 | X:/XFree86/include/X11 \ |
8480 | \ | |
10f2d63a VZ |
8481 | /usr/include/gtk \ |
8482 | /usr/local/include/gtk \ | |
8483 | /usr/include/glib \ | |
8484 | /usr/local/include/glib \ | |
8485 | \ | |
8486 | /usr/include/qt \ | |
8487 | /usr/local/include/qt \ | |
8488 | \ | |
8489 | /usr/include/windows \ | |
8490 | /usr/include/wine \ | |
8491 | /usr/local/include/wine \ | |
8492 | \ | |
8493 | /usr/unsupported/include \ | |
8494 | /usr/athena/include \ | |
8495 | /usr/local/x11r5/include \ | |
8496 | /usr/lpp/Xamples/include \ | |
8497 | \ | |
10f2d63a | 8498 | /usr/openwin/share/include \ |
928b5c08 VZ |
8499 | \ |
8500 | /usr/include" | |
10f2d63a VZ |
8501 | |
8502 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
8503 | ||
698dcdb6 VZ |
8504 | |
8505 | cat > confcache <<\EOF | |
10f2d63a VZ |
8506 | # This file is a shell script that caches the results of configure |
8507 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
8508 | # scripts and configure runs. It is not useful on other systems. |
8509 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 8510 | # |
698dcdb6 VZ |
8511 | # By default, configure uses ./config.cache as the cache file, |
8512 | # creating it if it does not exist already. You can give configure | |
8513 | # the --cache-file=FILE option to use a different cache file; that is | |
8514 | # what configure does when it calls configure scripts in | |
8515 | # subdirectories, so they share the cache. | |
8516 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
8517 | # config.status only pays attention to the cache file if you give it the | |
8518 | # --recheck option to rerun configure. | |
10f2d63a | 8519 | # |
698dcdb6 | 8520 | EOF |
10f2d63a VZ |
8521 | # The following way of writing the cache mishandles newlines in values, |
8522 | # but we know of no workaround that is simple, portable, and efficient. | |
8523 | # So, don't put newlines in cache variables' values. | |
8524 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
8525 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
8526 | (set) 2>&1 | |
8527 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
8528 | *ac_space=\ *) | |
8529 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
8530 | # turns \\\\ into \\, and sed turns \\ into \). | |
8531 | sed -n \ | |
8532 | -e "s/'/'\\\\''/g" \ | |
8533 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
8534 | ;; | |
8535 | *) | |
8536 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
8537 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
8538 | ;; | |
8539 | esac >> confcache | |
8540 | if cmp -s $cache_file confcache; then | |
8541 | : | |
8542 | else | |
10f2d63a | 8543 | if test -w $cache_file; then |
698dcdb6 VZ |
8544 | echo "updating cache $cache_file" |
8545 | cat confcache > $cache_file | |
10f2d63a VZ |
8546 | else |
8547 | echo "not updating unwritable cache $cache_file" | |
8548 | fi | |
8549 | fi | |
8550 | rm -f confcache | |
8551 | ||
698dcdb6 VZ |
8552 | |
8553 | ||
dad6c0ea VZ |
8554 | AFMINSTALL= |
8555 | ||
10f2d63a | 8556 | if test "$wxUSE_GUI" = "yes"; then |
1e6feb95 | 8557 | USE_GUI=1 |
10f2d63a | 8558 | |
1e6feb95 VZ |
8559 | TOOLKIT= |
8560 | TOOLKIT_INCLUDE= | |
10f2d63a | 8561 | |
1e6feb95 VZ |
8562 | GUI_TK_LIBRARY= |
8563 | GUI_TK_LINK= | |
10f2d63a | 8564 | |
1e6feb95 VZ |
8565 | WXGTK12= |
8566 | WXGTK127= | |
8567 | WXGTK20= | |
10f2d63a | 8568 | |
1e6feb95 | 8569 | WXWINE= |
10f2d63a | 8570 | |
1e6feb95 VZ |
8571 | if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then |
8572 | if test "$cross_compiling" = "yes" ; then | |
8573 | echo "configure: warning: skipping windows.h check for cross-compilation" 1>&2 | |
8574 | else | |
8575 | echo $ac_n "checking for Windows headers""... $ac_c" 1>&6 | |
3379ed37 | 8576 | echo "configure:8577: checking for Windows headers" >&5 |
1e6feb95 | 8577 | |
10f2d63a VZ |
8578 | ac_find_includes= |
8579 | for ac_dir in $SEARCH_INCLUDE; | |
8580 | do | |
8581 | if test -f "$ac_dir/windows.h"; then | |
8582 | ac_find_includes=$ac_dir | |
8583 | break | |
8584 | fi | |
8585 | done | |
8586 | ||
1e6feb95 VZ |
8587 | if test "$ac_find_includes" != "" ; then |
8588 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
8589 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes" | |
8590 | else | |
8591 | echo "$ac_t""no" 1>&6 | |
8592 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
8593 | fi | |
10f2d63a | 8594 | fi |
10f2d63a | 8595 | |
1e6feb95 VZ |
8596 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw" |
8597 | LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32" | |
f6bcfd97 | 8598 | |
1e6feb95 VZ |
8599 | if test "$wxUSE_ODBC" = "yes" ; then |
8600 | LIBS="$LIBS -lodbc32 -lole32 -loleaut32" | |
8601 | fi | |
10f2d63a | 8602 | |
1e6feb95 VZ |
8603 | if test "$wxUSE_MINGW" = 1; then |
8604 | LDFLAGS="$LDFLAGS -mwindows" | |
8605 | fi | |
32832908 | 8606 | |
1e6feb95 VZ |
8607 | TOOLKIT=MSW |
8608 | GUIDIST=MSW_DIST | |
32832908 | 8609 | |
1e6feb95 VZ |
8610 | RCINCSWITCH="--include-dir" |
8611 | RCDEFSWITCH="--define" | |
8612 | RCPREPROCESSOR="--preprocessor \"\$(CC) -c -E -xc-header -DRC_INVOKED\"" | |
8613 | RCINPUTSWITCH="-i" | |
8614 | RCOUTPUTSWITCH="-o" | |
8615 | RESFLAGS="$RCPREPROCESSOR $RCINCSWITCH \$(top_srcdir)/include $RCINCSWITCH \$(top_srcdir)/\$(program_dir) $RCDEFSWITCH __WIN32__ $RCDEFSWITCH __WIN95__ $RCDEFSWITCH __GNUWIN32__" | |
32832908 | 8616 | |
1e6feb95 VZ |
8617 | RESPROGRAM="\$(RES_PROGRAM)" |
8618 | fi | |
10f2d63a | 8619 | |
1e6feb95 | 8620 | if test "$wxUSE_GTK" = 1; then |
8168de4c | 8621 | echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6 |
3379ed37 | 8622 | echo "configure:8623: checking for GTK+ version" >&5 |
8168de4c VZ |
8623 | |
8624 | gtk_version_cached=1 | |
8625 | if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then | |
8626 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8627 | else | |
8628 | ||
8629 | gtk_version_cached=0 | |
8630 | echo "$ac_t""""" 1>&6 | |
8631 | ||
8632 | wx_cv_lib_gtk= | |
8633 | if test "x$wxUSE_GTK2" = "xyes"; then | |
8634 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
6f72b082 OK |
8635 | if test "${with_gtk_prefix+set}" = set; then |
8636 | withval="$with_gtk_prefix" | |
8637 | gtk_config_prefix="$withval" | |
8638 | else | |
8639 | gtk_config_prefix="" | |
698dcdb6 | 8640 | fi |
6f72b082 OK |
8641 | |
8642 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
8643 | if test "${with_gtk_exec_prefix+set}" = set; then | |
8644 | withval="$with_gtk_exec_prefix" | |
8645 | gtk_config_exec_prefix="$withval" | |
8646 | else | |
8647 | gtk_config_exec_prefix="" | |
698dcdb6 VZ |
8648 | fi |
8649 | ||
6f72b082 OK |
8650 | # Check whether --enable-gtktest or --disable-gtktest was given. |
8651 | if test "${enable_gtktest+set}" = set; then | |
8652 | enableval="$enable_gtktest" | |
698dcdb6 | 8653 | : |
6f72b082 OK |
8654 | else |
8655 | enable_gtktest=yes | |
698dcdb6 VZ |
8656 | fi |
8657 | ||
6f72b082 | 8658 | |
8168de4c | 8659 | for module in . |
6f72b082 OK |
8660 | do |
8661 | case "$module" in | |
8168de4c | 8662 | gthread) |
6f72b082 OK |
8663 | gtk_config_args="$gtk_config_args gthread" |
8664 | ;; | |
8665 | esac | |
8666 | done | |
8667 | ||
8668 | if test x$gtk_config_exec_prefix != x ; then | |
8669 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
8670 | if test x${GTK_CONFIG_2_0+set} != xset ; then | |
8671 | GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0 | |
8672 | fi | |
8673 | fi | |
8674 | if test x$gtk_config_prefix != x ; then | |
8675 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
8676 | if test x${GTK_CONFIG_2_0+set} != xset ; then | |
8677 | GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0 | |
8678 | fi | |
8679 | fi | |
8680 | ||
8681 | # Extract the first word of "gtk-config-2.0", so it can be a program name with args. | |
8682 | set dummy gtk-config-2.0; ac_word=$2 | |
698dcdb6 | 8683 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
3379ed37 | 8684 | echo "configure:8685: checking for $ac_word" >&5 |
698dcdb6 VZ |
8685 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then |
8686 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6f72b082 | 8687 | else |
698dcdb6 VZ |
8688 | case "$GTK_CONFIG_2_0" in |
8689 | /*) | |
6f72b082 OK |
8690 | ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path. |
8691 | ;; | |
698dcdb6 VZ |
8692 | ?:/*) |
8693 | ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path. | |
8694 | ;; | |
6f72b082 | 8695 | *) |
698dcdb6 VZ |
8696 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8697 | ac_dummy="$PATH" | |
8698 | for ac_dir in $ac_dummy; do | |
8699 | test -z "$ac_dir" && ac_dir=. | |
8700 | if test -f $ac_dir/$ac_word; then | |
8701 | ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word" | |
8702 | break | |
8703 | fi | |
8704 | done | |
8705 | IFS="$ac_save_ifs" | |
6f72b082 OK |
8706 | test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no" |
8707 | ;; | |
8708 | esac | |
8709 | fi | |
698dcdb6 | 8710 | GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0" |
6f72b082 | 8711 | if test -n "$GTK_CONFIG_2_0"; then |
698dcdb6 | 8712 | echo "$ac_t""$GTK_CONFIG_2_0" 1>&6 |
6f72b082 | 8713 | else |
698dcdb6 | 8714 | echo "$ac_t""no" 1>&6 |
6f72b082 OK |
8715 | fi |
8716 | ||
8717 | min_gtk_version=1.3.1 | |
698dcdb6 | 8718 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
3379ed37 | 8719 | echo "configure:8720: checking for GTK - version >= $min_gtk_version" >&5 |
6f72b082 OK |
8720 | no_gtk="" |
8721 | if test "$GTK_CONFIG_2_0" = "no" ; then | |
8722 | no_gtk=yes | |
8723 | else | |
8724 | GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags` | |
8725 | GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs` | |
8726 | gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
8727 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
8728 | gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
8729 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
8730 | gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
8731 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
8732 | if test "x$enable_gtktest" = "xyes" ; then | |
8733 | ac_save_CFLAGS="$CFLAGS" | |
8734 | ac_save_LIBS="$LIBS" | |
8735 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
8736 | LIBS="$GTK_LIBS $LIBS" | |
8737 | rm -f conf.gtktest | |
8738 | if test "$cross_compiling" = yes; then | |
8739 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
8740 | else | |
698dcdb6 | 8741 | cat > conftest.$ac_ext <<EOF |
3379ed37 | 8742 | #line 8743 "configure" |
6f72b082 OK |
8743 | #include "confdefs.h" |
8744 | ||
8745 | #include <gtk/gtk.h> | |
8746 | #include <stdio.h> | |
8747 | #include <stdlib.h> | |
8748 | ||
8168de4c | 8749 | int |
6f72b082 OK |
8750 | main () |
8751 | { | |
8752 | int major, minor, micro; | |
8753 | char *tmp_version; | |
8754 | ||
8755 | system ("touch conf.gtktest"); | |
8756 | ||
8757 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
8758 | tmp_version = g_strdup("$min_gtk_version"); | |
8759 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
8760 | printf("%s, bad version string\n", "$min_gtk_version"); | |
8761 | exit(1); | |
8762 | } | |
8763 | ||
8764 | if ((gtk_major_version != $gtk_config_major_version) || | |
8765 | (gtk_minor_version != $gtk_config_minor_version) || | |
8766 | (gtk_micro_version != $gtk_config_micro_version)) | |
8767 | { | |
8168de4c | 8768 | printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
6f72b082 OK |
8769 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
8770 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
8771 | printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n"); | |
8772 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
8773 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
8774 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
8775 | printf("*** required on your system.\n"); | |
8776 | printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n"); | |
8777 | printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n"); | |
8778 | printf("*** before re-running configure\n"); | |
8168de4c | 8779 | } |
6f72b082 OK |
8780 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
8781 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
8168de4c | 8782 | (gtk_minor_version != GTK_MINOR_VERSION) || |
6f72b082 OK |
8783 | (gtk_micro_version != GTK_MICRO_VERSION)) |
8784 | { | |
8785 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
8168de4c | 8786 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); |
6f72b082 | 8787 | printf("*** library (version %d.%d.%d)\n", |
8168de4c | 8788 | gtk_major_version, gtk_minor_version, gtk_micro_version); |
6f72b082 OK |
8789 | } |
8790 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
8791 | else | |
8792 | { | |
8793 | if ((gtk_major_version > major) || | |
8794 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
8795 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
8796 | { | |
8797 | return 0; | |
8798 | } | |
8799 | else | |
8800 | { | |
8801 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
8802 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
8803 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
8168de4c | 8804 | major, minor, micro); |
6f72b082 OK |
8805 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); |
8806 | printf("***\n"); | |
8807 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
8808 | printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n"); | |
8809 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
8810 | printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n"); | |
8811 | printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n"); | |
8812 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
8813 | printf("*** so that the correct libraries are found at run-time))\n"); | |
8814 | } | |
8815 | } | |
8816 | return 1; | |
8817 | } | |
8818 | ||
698dcdb6 | 8819 | EOF |
3379ed37 | 8820 | if { (eval echo configure:8821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 8821 | then |
6f72b082 OK |
8822 | : |
8823 | else | |
698dcdb6 VZ |
8824 | echo "configure: failed program was:" >&5 |
8825 | cat conftest.$ac_ext >&5 | |
8826 | rm -fr conftest* | |
8827 | no_gtk=yes | |
6f72b082 | 8828 | fi |
698dcdb6 | 8829 | rm -fr conftest* |
6f72b082 | 8830 | fi |
698dcdb6 | 8831 | |
6f72b082 OK |
8832 | CFLAGS="$ac_save_CFLAGS" |
8833 | LIBS="$ac_save_LIBS" | |
8834 | fi | |
8835 | fi | |
8836 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 8837 | echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6 |
8168de4c | 8838 | wx_cv_lib_gtk=2.0 |
6f72b082 | 8839 | else |
698dcdb6 | 8840 | echo "$ac_t""no" 1>&6 |
6f72b082 OK |
8841 | if test "$GTK_CONFIG_2_0" = "no" ; then |
8842 | echo "*** The gtk-config-2.0 script installed by GTK could not be found" | |
8843 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
8844 | echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the" | |
8845 | echo "*** full path to gtk-config-2.0." | |
8846 | else | |
8847 | if test -f conf.gtktest ; then | |
8848 | : | |
8849 | else | |
8850 | echo "*** Could not run GTK test program, checking why..." | |
8851 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
8852 | LIBS="$LIBS $GTK_LIBS" | |
698dcdb6 | 8853 | cat > conftest.$ac_ext <<EOF |
3379ed37 | 8854 | #line 8855 "configure" |
6f72b082 OK |
8855 | #include "confdefs.h" |
8856 | ||
8857 | #include <gtk/gtk.h> | |
8858 | #include <stdio.h> | |
8859 | ||
698dcdb6 VZ |
8860 | int main() { |
8861 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
8862 | ; return 0; } | |
8863 | EOF | |
3379ed37 | 8864 | if { (eval echo configure:8865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 8865 | rm -rf conftest* |
6f72b082 OK |
8866 | echo "*** The test program compiled, but did not run. This usually means" |
8867 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
8868 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
8869 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
8870 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
8871 | echo "*** is required on your system" | |
8168de4c | 8872 | echo "***" |
6f72b082 OK |
8873 | echo "*** If you have an old version installed, it is best to remove it, although" |
8874 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
8875 | echo "***" | |
8876 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
8877 | echo "*** came with the system with the command" | |
8878 | echo "***" | |
698dcdb6 | 8879 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
6f72b082 | 8880 | else |
698dcdb6 VZ |
8881 | echo "configure: failed program was:" >&5 |
8882 | cat conftest.$ac_ext >&5 | |
8883 | rm -rf conftest* | |
8884 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
6f72b082 OK |
8885 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
8886 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
698dcdb6 | 8887 | echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0" |
6f72b082 | 8888 | fi |
698dcdb6 | 8889 | rm -f conftest* |
6f72b082 OK |
8890 | CFLAGS="$ac_save_CFLAGS" |
8891 | LIBS="$ac_save_LIBS" | |
8892 | fi | |
8893 | fi | |
8894 | GTK_CFLAGS="" | |
8895 | GTK_LIBS="" | |
8168de4c VZ |
8896 | gthread |
8897 | fi | |
8898 | ||
8899 | ||
8900 | rm -f conf.gtktest | |
8901 | ||
8902 | fi | |
8903 | ||
8904 | if test -z "$wx_cv_lib_gtk"; then | |
8905 | ||
10f2d63a VZ |
8906 | if test x$gtk_config_exec_prefix != x ; then |
8907 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
8908 | if test x${GTK_CONFIG+set} != xset ; then | |
8909 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
8910 | fi | |
8911 | fi | |
8912 | if test x$gtk_config_prefix != x ; then | |
8913 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
8914 | if test x${GTK_CONFIG+set} != xset ; then | |
8915 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
8916 | fi | |
8917 | fi | |
8918 | ||
8919 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
8920 | set dummy gtk-config; ac_word=$2 | |
698dcdb6 | 8921 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
3379ed37 | 8922 | echo "configure:8923: checking for $ac_word" >&5 |
698dcdb6 VZ |
8923 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
8924 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 8925 | else |
698dcdb6 VZ |
8926 | case "$GTK_CONFIG" in |
8927 | /*) | |
f6bcfd97 BP |
8928 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
8929 | ;; | |
698dcdb6 VZ |
8930 | ?:/*) |
8931 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
8932 | ;; | |
f6bcfd97 | 8933 | *) |
698dcdb6 VZ |
8934 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8935 | ac_dummy="$PATH" | |
8936 | for ac_dir in $ac_dummy; do | |
8937 | test -z "$ac_dir" && ac_dir=. | |
8938 | if test -f $ac_dir/$ac_word; then | |
8939 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
8940 | break | |
8941 | fi | |
8942 | done | |
8943 | IFS="$ac_save_ifs" | |
f6bcfd97 BP |
8944 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
8945 | ;; | |
8946 | esac | |
8947 | fi | |
698dcdb6 | 8948 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
f6bcfd97 | 8949 | if test -n "$GTK_CONFIG"; then |
698dcdb6 | 8950 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
f6bcfd97 | 8951 | else |
698dcdb6 | 8952 | echo "$ac_t""no" 1>&6 |
f6bcfd97 BP |
8953 | fi |
8954 | ||
8955 | min_gtk_version=1.2.7 | |
698dcdb6 | 8956 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
3379ed37 | 8957 | echo "configure:8958: checking for GTK - version >= $min_gtk_version" >&5 |
f6bcfd97 BP |
8958 | no_gtk="" |
8959 | if test "$GTK_CONFIG" != "no" ; then | |
8960 | GTK_CFLAGS=`$GTK_CONFIG --cflags` | |
8961 | GTK_LIBS=`$GTK_CONFIG --libs gthread` | |
8962 | ac_save_CFLAGS="$CFLAGS" | |
8963 | ac_save_LIBS="$LIBS" | |
8964 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
8965 | LIBS="$LIBS $GTK_LIBS" | |
8966 | if test "$cross_compiling" = yes; then | |
8967 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
8968 | else | |
698dcdb6 | 8969 | cat > conftest.$ac_ext <<EOF |
3379ed37 | 8970 | #line 8971 "configure" |
f6bcfd97 BP |
8971 | #include "confdefs.h" |
8972 | ||
8973 | #include <gtk/gtk.h> | |
8974 | #include <gtk/gtkfeatures.h> | |
8975 | #include <stdio.h> | |
8976 | #include <stdlib.h> | |
8977 | ||
8978 | int | |
8979 | main () | |
8980 | { | |
8981 | int major, minor, micro; | |
8982 | ||
8983 | if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) { | |
8984 | printf("%s, bad version string\n", "$min_gtk_version"); | |
8985 | exit(1); | |
8986 | } | |
8987 | ||
8988 | if ((GTK_MAJOR_VERSION != gtk_major_version) || | |
8989 | (GTK_MINOR_VERSION != gtk_minor_version) || | |
8990 | (GTK_MICRO_VERSION != gtk_micro_version)) { | |
8991 | printf("Headers vs. library version mismatch!\n"); | |
8992 | exit(1); | |
8993 | } | |
8994 | ||
8995 | if (gtk_minor_version == 1) return FALSE; | |
8996 | ||
8997 | return !((gtk_major_version > major) || | |
8998 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
8999 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))); | |
9000 | } | |
9001 | ||
698dcdb6 | 9002 | EOF |
3379ed37 | 9003 | if { (eval echo configure:9004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 9004 | then |
f6bcfd97 BP |
9005 | : |
9006 | else | |
698dcdb6 VZ |
9007 | echo "configure: failed program was:" >&5 |
9008 | cat conftest.$ac_ext >&5 | |
9009 | rm -fr conftest* | |
9010 | no_gtk=yes | |
f6bcfd97 | 9011 | fi |
698dcdb6 | 9012 | rm -fr conftest* |
f6bcfd97 | 9013 | fi |
698dcdb6 | 9014 | |
f6bcfd97 BP |
9015 | CFLAGS="$ac_save_CFLAGS" |
9016 | LIBS="$ac_save_LIBS" | |
9017 | else | |
9018 | no_gtk=yes | |
9019 | fi | |
9020 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 9021 | echo "$ac_t""yes" 1>&6 |
8168de4c | 9022 | wx_cv_lib_gtk=1.2.7 |
f6bcfd97 | 9023 | else |
698dcdb6 | 9024 | echo "$ac_t""no" 1>&6 |
f6bcfd97 BP |
9025 | GTK_CFLAGS="" |
9026 | GTK_LIBS="" | |
9027 | : | |
9028 | fi | |
698dcdb6 VZ |
9029 | |
9030 | ||
f6bcfd97 | 9031 | |
8168de4c VZ |
9032 | fi |
9033 | ||
9034 | if test -z "$wx_cv_lib_gtk"; then | |
9035 | ||
f6bcfd97 BP |
9036 | if test x$gtk_config_exec_prefix != x ; then |
9037 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
9038 | if test x${GTK_CONFIG+set} != xset ; then | |
9039 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
9040 | fi | |
9041 | fi | |
9042 | if test x$gtk_config_prefix != x ; then | |
9043 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
9044 | if test x${GTK_CONFIG+set} != xset ; then | |
9045 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
9046 | fi | |
9047 | fi | |
9048 | ||
9049 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
9050 | set dummy gtk-config; ac_word=$2 | |
698dcdb6 | 9051 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
3379ed37 | 9052 | echo "configure:9053: checking for $ac_word" >&5 |
698dcdb6 VZ |
9053 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
9054 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 9055 | else |
698dcdb6 VZ |
9056 | case "$GTK_CONFIG" in |
9057 | /*) | |
10f2d63a VZ |
9058 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
9059 | ;; | |
698dcdb6 VZ |
9060 | ?:/*) |
9061 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
9062 | ;; | |
10f2d63a | 9063 | *) |
698dcdb6 VZ |
9064 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9065 | ac_dummy="$PATH" | |
9066 | for ac_dir in $ac_dummy; do | |
9067 | test -z "$ac_dir" && ac_dir=. | |
9068 | if test -f $ac_dir/$ac_word; then | |
9069 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
9070 | break | |
9071 | fi | |
9072 | done | |
9073 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9074 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
9075 | ;; | |
9076 | esac | |
9077 | fi | |
698dcdb6 | 9078 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
10f2d63a | 9079 | if test -n "$GTK_CONFIG"; then |
698dcdb6 | 9080 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
10f2d63a | 9081 | else |
698dcdb6 | 9082 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9083 | fi |
9084 | ||
04165bec | 9085 | min_gtk_version=1.2.3 |
698dcdb6 | 9086 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
3379ed37 | 9087 | echo "configure:9088: checking for GTK - version >= $min_gtk_version" >&5 |
10f2d63a VZ |
9088 | no_gtk="" |
9089 | if test "$GTK_CONFIG" != "no" ; then | |
9090 | GTK_CFLAGS=`$GTK_CONFIG --cflags` | |
2224580a | 9091 | GTK_LIBS=`$GTK_CONFIG --libs gthread` |
10f2d63a VZ |
9092 | ac_save_CFLAGS="$CFLAGS" |
9093 | ac_save_LIBS="$LIBS" | |
9094 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
9095 | LIBS="$LIBS $GTK_LIBS" | |
9096 | if test "$cross_compiling" = yes; then | |
9097 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
9098 | else | |
698dcdb6 | 9099 | cat > conftest.$ac_ext <<EOF |
3379ed37 | 9100 | #line 9101 "configure" |
10f2d63a VZ |
9101 | #include "confdefs.h" |
9102 | ||
9103 | #include <gtk/gtk.h> | |
f49f2b0c | 9104 | #include <gtk/gtkfeatures.h> |
10f2d63a | 9105 | #include <stdio.h> |
32832908 | 9106 | #include <stdlib.h> |
10f2d63a VZ |
9107 | |
9108 | int | |
9109 | main () | |
9110 | { | |
9111 | int major, minor, micro; | |
9112 | ||
9113 | if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) { | |
9114 | printf("%s, bad version string\n", "$min_gtk_version"); | |
9115 | exit(1); | |
9116 | } | |
9117 | ||
f49f2b0c RR |
9118 | if ((GTK_MAJOR_VERSION != gtk_major_version) || |
9119 | (GTK_MINOR_VERSION != gtk_minor_version) || | |
9120 | (GTK_MICRO_VERSION != gtk_micro_version)) { | |
9121 | printf("Headers vs. library version mismatch!\n"); | |
9122 | exit(1); | |
9123 | } | |
9124 | ||
10f2d63a VZ |
9125 | if (gtk_minor_version == 1) return FALSE; |
9126 | ||
9127 | return !((gtk_major_version > major) || | |
9128 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
9129 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))); | |
9130 | } | |
9131 | ||
698dcdb6 | 9132 | EOF |
3379ed37 | 9133 | if { (eval echo configure:9134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 9134 | then |
10f2d63a VZ |
9135 | : |
9136 | else | |
698dcdb6 VZ |
9137 | echo "configure: failed program was:" >&5 |
9138 | cat conftest.$ac_ext >&5 | |
9139 | rm -fr conftest* | |
9140 | no_gtk=yes | |
10f2d63a | 9141 | fi |
698dcdb6 | 9142 | rm -fr conftest* |
10f2d63a | 9143 | fi |
698dcdb6 | 9144 | |
10f2d63a VZ |
9145 | CFLAGS="$ac_save_CFLAGS" |
9146 | LIBS="$ac_save_LIBS" | |
9147 | else | |
9148 | no_gtk=yes | |
9149 | fi | |
9150 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 9151 | echo "$ac_t""yes" 1>&6 |
8168de4c | 9152 | wx_cv_lib_gtk=1.2.3 |
10f2d63a | 9153 | else |
698dcdb6 | 9154 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9155 | GTK_CFLAGS="" |
9156 | GTK_LIBS="" | |
7e99ad86 | 9157 | : |
10f2d63a | 9158 | fi |
698dcdb6 VZ |
9159 | |
9160 | ||
10f2d63a | 9161 | |
8168de4c VZ |
9162 | fi |
9163 | ||
9164 | if test -z "$wx_cv_lib_gtk"; then | |
9165 | wx_cv_lib_gtk=none | |
138be253 VZ |
9166 | else |
9167 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
9168 | wx_cv_libs_gtk=$GTK_LIBS | |
8168de4c VZ |
9169 | fi |
9170 | ||
1e6feb95 | 9171 | |
8168de4c | 9172 | fi |
703e0a69 | 9173 | |
698dcdb6 | 9174 | |
8168de4c VZ |
9175 | if test "$gtk_version_cached" = 1; then |
9176 | echo "$ac_t""$wx_cv_lib_gtk" 1>&6 | |
1e6feb95 | 9177 | fi |
698dcdb6 | 9178 | |
8168de4c VZ |
9179 | case "$wx_cv_lib_gtk" in |
9180 | 2.0) WXGTK20=1 | |
9181 | ;; | |
9182 | 1.2.7) WXGTK127=1 | |
d1a8d972 | 9183 | WXGTK12=1 |
8168de4c VZ |
9184 | ;; |
9185 | 1.2.3) WXGTK12=1 | |
9186 | ;; | |
9187 | *) { echo "configure: error: | |
9188 | Please check that gtk-config is in path, the directory | |
9189 | where GTK+ libraries are installed (returned by | |
9190 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
9191 | equivalent variable and GTK+ is version 1.2.3 or above. | |
9192 | " 1>&2; exit 1; } | |
9193 | ;; | |
9194 | esac | |
2224580a | 9195 | |
138be253 | 9196 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" |
11dfaa5f | 9197 | GUI_TK_LIBRARY="$wx_cv_libs_gtk" |
698dcdb6 | 9198 | |
1e6feb95 VZ |
9199 | AFMINSTALL=afminstall |
9200 | TOOLKIT=GTK | |
9201 | GUIDIST=GTK_DIST | |
7ec2881a | 9202 | |
1e6feb95 | 9203 | echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6 |
3379ed37 | 9204 | echo "configure:9205: checking for gdk_im_open in -lgdk" >&5 |
698dcdb6 VZ |
9205 | ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'` |
9206 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9207 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7ec2881a | 9208 | else |
698dcdb6 | 9209 | ac_save_LIBS="$LIBS" |
7ec2881a | 9210 | LIBS="-lgdk $LIBS" |
698dcdb6 | 9211 | cat > conftest.$ac_ext <<EOF |
3379ed37 | 9212 | #line 9213 "configure" |
7ec2881a RR |
9213 | #include "confdefs.h" |
9214 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9215 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9216 | builtin and then its argument prototype would still apply. */ |
9217 | char gdk_im_open(); | |
9218 | ||
9219 | int main() { | |
9220 | gdk_im_open() | |
9221 | ; return 0; } | |
9222 | EOF | |
3379ed37 | 9223 | if { (eval echo configure:9224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9224 | rm -rf conftest* |
9225 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9226 | else | |
9227 | echo "configure: failed program was:" >&5 | |
9228 | cat conftest.$ac_ext >&5 | |
9229 | rm -rf conftest* | |
9230 | eval "ac_cv_lib_$ac_lib_var=no" | |
9231 | fi | |
9232 | rm -f conftest* | |
9233 | LIBS="$ac_save_LIBS" | |
9234 | ||
9235 | fi | |
9236 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9237 | echo "$ac_t""yes" 1>&6 | |
9238 | cat >> confdefs.h <<\EOF | |
7ec2881a RR |
9239 | #define HAVE_XIM 1 |
9240 | EOF | |
9241 | ||
698dcdb6 VZ |
9242 | else |
9243 | echo "$ac_t""no" 1>&6 | |
7ec2881a RR |
9244 | fi |
9245 | ||
1e6feb95 | 9246 | fi |
10f2d63a | 9247 | |
1e6feb95 VZ |
9248 | if test "$wxUSE_MGL" = 1; then |
9249 | ||
9250 | echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6 | |
3379ed37 | 9251 | echo "configure:9252: checking for SciTech MGL library" >&5 |
1e6feb95 VZ |
9252 | if test "x$MGL_ROOT" = x ; then |
9253 | echo "$ac_t""not found" 1>&6 | |
9254 | { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; } | |
9255 | else | |
9256 | echo "$ac_t""$MGL_ROOT" 1>&6 | |
9257 | fi | |
9258 | ||
9259 | MGL_OS=linux/gcc/glibc | |
9260 | MGL_LIB_TYPE="" | |
9261 | ||
9262 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
9263 | if test -f $MGL_ROOT/lib/debug/$MGL_OS/libmgl.a ; then | |
9264 | MGL_LIB_TYPE=debug | |
9265 | fi | |
9266 | fi | |
9267 | if test "x$MGL_LIB_TYPE" = x ; then | |
9268 | if test -f $MGL_ROOT/lib/release/$MGL_OS/libmgl.a ; then | |
9269 | MGL_LIB_TYPE=release | |
9270 | else | |
9271 | { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; } | |
9272 | fi | |
9273 | fi | |
9274 | ||
9275 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" | |
9276 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$MGL_LIB_TYPE/$MGL_OS -lmgl -lmglcpp -lpm" | |
9277 | ||
9278 | AFMINSTALL=afminstall | |
9279 | TOOLKIT=MGL | |
9280 | GUIDIST=MGL_DIST | |
9281 | fi | |
9282 | ||
9283 | if test "$wxUSE_WINE" = 1; then | |
9284 | echo $ac_n "checking for WINE includes""... $ac_c" 1>&6 | |
3379ed37 | 9285 | echo "configure:9286: checking for WINE includes" >&5 |
1e6feb95 | 9286 | |
10f2d63a VZ |
9287 | ac_find_includes= |
9288 | for ac_dir in $SEARCH_INCLUDE; | |
9289 | do | |
9290 | if test -f "$ac_dir/windows.h"; then | |
9291 | ac_find_includes=$ac_dir | |
9292 | break | |
9293 | fi | |
9294 | done | |
9295 | ||
1e6feb95 VZ |
9296 | if test "$ac_find_includes" != "" ; then |
9297 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
9298 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes" | |
9299 | else | |
9300 | echo "$ac_t""no" 1>&6 | |
9301 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
9302 | fi | |
10f2d63a | 9303 | |
1e6feb95 VZ |
9304 | XPM_LINK="" |
9305 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
3379ed37 | 9306 | echo "configure:9307: checking for Xpm library" >&5 |
1e6feb95 | 9307 | |
10f2d63a VZ |
9308 | ac_find_libraries= |
9309 | for ac_dir in $SEARCH_LIB; | |
9310 | do | |
9311 | for ac_extension in a so sl; do | |
9312 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
9313 | ac_find_libraries=$ac_dir | |
9314 | break 2 | |
9315 | fi | |
9316 | done | |
9317 | done | |
9318 | ||
1e6feb95 VZ |
9319 | if test "$ac_find_libraries" != "" ; then |
9320 | GUI_TK_LIBRARY="-L$ac_find_libraries" | |
9321 | XPM_LINK="-lXpm" | |
9322 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
9323 | #define wxHAVE_LIB_XPM 1 |
9324 | EOF | |
9325 | ||
1e6feb95 VZ |
9326 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
9327 | else | |
9328 | echo "$ac_t""no" 1>&6 | |
9329 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
9330 | fi | |
10f2d63a | 9331 | |
1e6feb95 VZ |
9332 | MESA_LINK="" |
9333 | echo $ac_n "checking for Mesa library""... $ac_c" 1>&6 | |
3379ed37 | 9334 | echo "configure:9335: checking for Mesa library" >&5 |
1e6feb95 | 9335 | |
10f2d63a VZ |
9336 | ac_find_libraries= |
9337 | for ac_dir in $SEARCH_LIB; | |
9338 | do | |
9339 | for ac_extension in a so sl; do | |
9340 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
9341 | ac_find_libraries=$ac_dir | |
9342 | break 2 | |
9343 | fi | |
9344 | done | |
9345 | done | |
9346 | ||
1e6feb95 VZ |
9347 | if test "$ac_find_libraries" != "" ; then |
9348 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries" | |
9349 | MESA_LINK="-lMesaGL" | |
9350 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
9351 | else | |
9352 | { echo "configure: error: no" 1>&2; exit 1; } | |
9353 | fi | |
10f2d63a | 9354 | |
1e6feb95 VZ |
9355 | GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses" |
9356 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK" | |
9357 | WXWINE=1 | |
9358 | TOOLKIT=MSW | |
9359 | GUIDIST=MSW_DIST | |
9360 | fi | |
698dcdb6 | 9361 | |
1e6feb95 VZ |
9362 | |
9363 | # If we find X, set shell vars x_includes and x_libraries to the | |
698dcdb6 VZ |
9364 | # paths, otherwise set no_x=yes. |
9365 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
9366 | # --without-x overrides everything else, but does not touch the cache. | |
9367 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
3379ed37 | 9368 | echo "configure:9369: checking for X" >&5 |
ab9b9eab VZ |
9369 | |
9370 | # Check whether --with-x or --without-x was given. | |
9371 | if test "${with_x+set}" = set; then | |
9372 | withval="$with_x" | |
698dcdb6 VZ |
9373 | : |
9374 | fi | |
ba337fe7 | 9375 | |
ab9b9eab VZ |
9376 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
9377 | if test "x$with_x" = xno; then | |
9378 | # The user explicitly disabled X. | |
9379 | have_x=disabled | |
9380 | else | |
9381 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
9382 | # Both variables are already set. | |
9383 | have_x=yes | |
9384 | else | |
698dcdb6 VZ |
9385 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then |
9386 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab VZ |
9387 | else |
9388 | # One or both of the vars are not set, and there is no cached value. | |
698dcdb6 VZ |
9389 | ac_x_includes=NO ac_x_libraries=NO |
9390 | rm -fr conftestdir | |
9391 | if mkdir conftestdir; then | |
9392 | cd conftestdir | |
ab9b9eab | 9393 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
698dcdb6 | 9394 | cat > Imakefile <<'EOF' |
ab9b9eab VZ |
9395 | acfindx: |
9396 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
9397 | EOF | |
9398 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
9399 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
9400 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
9401 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
10f2d63a | 9402 | for ac_extension in a so sl; do |
ab9b9eab | 9403 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
698dcdb6 | 9404 | test -f $ac_im_libdir/libX11.$ac_extension; then |
ab9b9eab | 9405 | ac_im_usrlibdir=$ac_im_libdir; break |
10f2d63a VZ |
9406 | fi |
9407 | done | |
ab9b9eab VZ |
9408 | # Screen out bogus values from the imake configuration. They are |
9409 | # bogus both because they are the default anyway, and because | |
9410 | # using them would break gcc on systems where it needs fixed includes. | |
698dcdb6 | 9411 | case "$ac_im_incroot" in |
ab9b9eab | 9412 | /usr/include) ;; |
698dcdb6 | 9413 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; |
ab9b9eab | 9414 | esac |
698dcdb6 | 9415 | case "$ac_im_usrlibdir" in |
ab9b9eab | 9416 | /usr/lib | /lib) ;; |
698dcdb6 | 9417 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; |
ab9b9eab | 9418 | esac |
ba337fe7 | 9419 | fi |
ab9b9eab | 9420 | cd .. |
698dcdb6 | 9421 | rm -fr conftestdir |
ab9b9eab | 9422 | fi |
10f2d63a | 9423 | |
698dcdb6 VZ |
9424 | if test "$ac_x_includes" = NO; then |
9425 | # Guess where to find include files, by looking for this one X11 .h file. | |
9426 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
9427 | ||
ab9b9eab | 9428 | # First, try using that file with no special directory specified. |
698dcdb6 | 9429 | cat > conftest.$ac_ext <<EOF |
3379ed37 | 9430 | #line 9431 "configure" |
ab9b9eab | 9431 | #include "confdefs.h" |
698dcdb6 VZ |
9432 | #include <$x_direct_test_include> |
9433 | EOF | |
9434 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3379ed37 | 9435 | { (eval echo configure:9436: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
9436 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9437 | if test -z "$ac_err"; then | |
9438 | rm -rf conftest* | |
ab9b9eab VZ |
9439 | # We can compile using X headers with no special include directory. |
9440 | ac_x_includes= | |
9441 | else | |
698dcdb6 VZ |
9442 | echo "$ac_err" >&5 |
9443 | echo "configure: failed program was:" >&5 | |
ab9b9eab | 9444 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
9445 | rm -rf conftest* |
9446 | # Look for the header file in a standard set of common directories. | |
9447 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
9448 | for ac_dir in \ | |
9449 | /usr/X11/include \ | |
9450 | /usr/X11R6/include \ | |
9451 | /usr/X11R5/include \ | |
9452 | /usr/X11R4/include \ | |
9453 | \ | |
9454 | /usr/include/X11 \ | |
9455 | /usr/include/X11R6 \ | |
9456 | /usr/include/X11R5 \ | |
9457 | /usr/include/X11R4 \ | |
9458 | \ | |
9459 | /usr/local/X11/include \ | |
9460 | /usr/local/X11R6/include \ | |
9461 | /usr/local/X11R5/include \ | |
9462 | /usr/local/X11R4/include \ | |
9463 | \ | |
9464 | /usr/local/include/X11 \ | |
9465 | /usr/local/include/X11R6 \ | |
9466 | /usr/local/include/X11R5 \ | |
9467 | /usr/local/include/X11R4 \ | |
9468 | \ | |
9469 | /usr/X386/include \ | |
9470 | /usr/x386/include \ | |
9471 | /usr/XFree86/include/X11 \ | |
9472 | \ | |
9473 | /usr/include \ | |
9474 | /usr/local/include \ | |
9475 | /usr/unsupported/include \ | |
9476 | /usr/athena/include \ | |
9477 | /usr/local/x11r5/include \ | |
9478 | /usr/lpp/Xamples/include \ | |
9479 | \ | |
9480 | /usr/openwin/include \ | |
9481 | /usr/openwin/share/include \ | |
9482 | ; \ | |
9483 | do | |
9484 | if test -r "$ac_dir/$x_direct_test_include"; then | |
9485 | ac_x_includes=$ac_dir | |
9486 | break | |
9487 | fi | |
9488 | done | |
ab9b9eab | 9489 | fi |
698dcdb6 VZ |
9490 | rm -f conftest* |
9491 | fi # $ac_x_includes = NO | |
10f2d63a | 9492 | |
698dcdb6 | 9493 | if test "$ac_x_libraries" = NO; then |
ab9b9eab | 9494 | # Check for the libraries. |
698dcdb6 VZ |
9495 | |
9496 | test -z "$x_direct_test_library" && x_direct_test_library=Xt | |
9497 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
9498 | ||
ab9b9eab VZ |
9499 | # See if we find them without any special options. |
9500 | # Don't add to $LIBS permanently. | |
698dcdb6 VZ |
9501 | ac_save_LIBS="$LIBS" |
9502 | LIBS="-l$x_direct_test_library $LIBS" | |
9503 | cat > conftest.$ac_ext <<EOF | |
3379ed37 | 9504 | #line 9505 "configure" |
ab9b9eab | 9505 | #include "confdefs.h" |
698dcdb6 VZ |
9506 | |
9507 | int main() { | |
9508 | ${x_direct_test_function}() | |
9509 | ; return 0; } | |
9510 | EOF | |
3379ed37 | 9511 | if { (eval echo configure:9512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9512 | rm -rf conftest* |
9513 | LIBS="$ac_save_LIBS" | |
ab9b9eab VZ |
9514 | # We can link X programs with no special library path. |
9515 | ac_x_libraries= | |
9516 | else | |
698dcdb6 VZ |
9517 | echo "configure: failed program was:" >&5 |
9518 | cat conftest.$ac_ext >&5 | |
9519 | rm -rf conftest* | |
9520 | LIBS="$ac_save_LIBS" | |
9521 | # First see if replacing the include by lib works. | |
9522 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
9523 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
9524 | /usr/X11/lib \ | |
9525 | /usr/X11R6/lib \ | |
9526 | /usr/X11R5/lib \ | |
9527 | /usr/X11R4/lib \ | |
9528 | \ | |
9529 | /usr/lib/X11 \ | |
9530 | /usr/lib/X11R6 \ | |
9531 | /usr/lib/X11R5 \ | |
9532 | /usr/lib/X11R4 \ | |
9533 | \ | |
9534 | /usr/local/X11/lib \ | |
9535 | /usr/local/X11R6/lib \ | |
9536 | /usr/local/X11R5/lib \ | |
9537 | /usr/local/X11R4/lib \ | |
9538 | \ | |
9539 | /usr/local/lib/X11 \ | |
9540 | /usr/local/lib/X11R6 \ | |
9541 | /usr/local/lib/X11R5 \ | |
9542 | /usr/local/lib/X11R4 \ | |
9543 | \ | |
9544 | /usr/X386/lib \ | |
9545 | /usr/x386/lib \ | |
9546 | /usr/XFree86/lib/X11 \ | |
9547 | \ | |
9548 | /usr/lib \ | |
9549 | /usr/local/lib \ | |
9550 | /usr/unsupported/lib \ | |
9551 | /usr/athena/lib \ | |
9552 | /usr/local/x11r5/lib \ | |
9553 | /usr/lpp/Xamples/lib \ | |
9554 | /lib/usr/lib/X11 \ | |
9555 | \ | |
9556 | /usr/openwin/lib \ | |
9557 | /usr/openwin/share/lib \ | |
9558 | ; \ | |
ab9b9eab VZ |
9559 | do |
9560 | for ac_extension in a so sl; do | |
698dcdb6 | 9561 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then |
ab9b9eab VZ |
9562 | ac_x_libraries=$ac_dir |
9563 | break 2 | |
10f2d63a | 9564 | fi |
10f2d63a | 9565 | done |
ab9b9eab VZ |
9566 | done |
9567 | fi | |
698dcdb6 VZ |
9568 | rm -f conftest* |
9569 | fi # $ac_x_libraries = NO | |
10f2d63a | 9570 | |
698dcdb6 | 9571 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
ab9b9eab VZ |
9572 | # Didn't find X anywhere. Cache the known absence of X. |
9573 | ac_cv_have_x="have_x=no" | |
9574 | else | |
9575 | # Record where we found X for the cache. | |
9576 | ac_cv_have_x="have_x=yes \ | |
9577 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
9578 | fi | |
9579 | fi | |
10f2d63a | 9580 | fi |
ab9b9eab VZ |
9581 | eval "$ac_cv_have_x" |
9582 | fi # $with_x != no | |
10f2d63a | 9583 | |
ab9b9eab | 9584 | if test "$have_x" != yes; then |
698dcdb6 | 9585 | echo "$ac_t""$have_x" 1>&6 |
ab9b9eab VZ |
9586 | no_x=yes |
9587 | else | |
9588 | # If each of the values was on the command line, it overrides each guess. | |
9589 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
9590 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
9591 | # Update the cache value to reflect the command line values. | |
9592 | ac_cv_have_x="have_x=yes \ | |
9593 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
698dcdb6 | 9594 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 |
ab9b9eab | 9595 | fi |
10f2d63a | 9596 | |
ab9b9eab VZ |
9597 | if test "$no_x" = yes; then |
9598 | # Not all programs may use this symbol, but it does not hurt to define it. | |
698dcdb6 | 9599 | cat >> confdefs.h <<\EOF |
ab9b9eab VZ |
9600 | #define X_DISPLAY_MISSING 1 |
9601 | EOF | |
10f2d63a | 9602 | |
ab9b9eab VZ |
9603 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
9604 | else | |
9605 | if test -n "$x_includes"; then | |
9606 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
10f2d63a VZ |
9607 | fi |
9608 | ||
ab9b9eab VZ |
9609 | # It would also be nice to do this for all -L options, not just this one. |
9610 | if test -n "$x_libraries"; then | |
9611 | X_LIBS="$X_LIBS -L$x_libraries" | |
9612 | # For Solaris; some versions of Sun CC require a space after -R and | |
9613 | # others require no space. Words are not sufficient . . . . | |
698dcdb6 | 9614 | case "`(uname -sr) 2>/dev/null`" in |
ab9b9eab | 9615 | "SunOS 5"*) |
698dcdb6 | 9616 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 |
3379ed37 | 9617 | echo "configure:9618: checking whether -R must be followed by a space" >&5 |
698dcdb6 VZ |
9618 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
9619 | cat > conftest.$ac_ext <<EOF | |
3379ed37 | 9620 | #line 9621 "configure" |
ab9b9eab | 9621 | #include "confdefs.h" |
10f2d63a | 9622 | |
698dcdb6 | 9623 | int main() { |
788deba1 | 9624 | |
698dcdb6 VZ |
9625 | ; return 0; } |
9626 | EOF | |
3379ed37 | 9627 | if { (eval echo configure:9628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 9628 | rm -rf conftest* |
ab9b9eab VZ |
9629 | ac_R_nospace=yes |
9630 | else | |
698dcdb6 VZ |
9631 | echo "configure: failed program was:" >&5 |
9632 | cat conftest.$ac_ext >&5 | |
9633 | rm -rf conftest* | |
9634 | ac_R_nospace=no | |
ab9b9eab | 9635 | fi |
698dcdb6 | 9636 | rm -f conftest* |
ab9b9eab | 9637 | if test $ac_R_nospace = yes; then |
698dcdb6 | 9638 | echo "$ac_t""no" 1>&6 |
ab9b9eab VZ |
9639 | X_LIBS="$X_LIBS -R$x_libraries" |
9640 | else | |
9641 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
698dcdb6 | 9642 | cat > conftest.$ac_ext <<EOF |
3379ed37 | 9643 | #line 9644 "configure" |
ab9b9eab | 9644 | #include "confdefs.h" |
788deba1 | 9645 | |
698dcdb6 | 9646 | int main() { |
ab9b9eab | 9647 | |
698dcdb6 VZ |
9648 | ; return 0; } |
9649 | EOF | |
3379ed37 | 9650 | if { (eval echo configure:9651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 9651 | rm -rf conftest* |
ab9b9eab VZ |
9652 | ac_R_space=yes |
9653 | else | |
698dcdb6 VZ |
9654 | echo "configure: failed program was:" >&5 |
9655 | cat conftest.$ac_ext >&5 | |
9656 | rm -rf conftest* | |
9657 | ac_R_space=no | |
ab9b9eab | 9658 | fi |
698dcdb6 | 9659 | rm -f conftest* |
ab9b9eab | 9660 | if test $ac_R_space = yes; then |
698dcdb6 | 9661 | echo "$ac_t""yes" 1>&6 |
ab9b9eab VZ |
9662 | X_LIBS="$X_LIBS -R $x_libraries" |
9663 | else | |
698dcdb6 | 9664 | echo "$ac_t""neither works" 1>&6 |
ab9b9eab VZ |
9665 | fi |
9666 | fi | |
698dcdb6 | 9667 | LIBS="$ac_xsave_LIBS" |
ab9b9eab VZ |
9668 | esac |
9669 | fi | |
9670 | ||
9671 | # Check for system-dependent libraries X programs must link with. | |
9672 | # Do this before checking for the system-independent R6 libraries | |
9673 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
9674 | ||
9675 | if test "$ISC" = yes; then | |
9676 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
9677 | else | |
698dcdb6 VZ |
9678 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X |
9679 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
ab9b9eab | 9680 | # the Alpha needs dnet_stub (dnet does not exist). |
698dcdb6 | 9681 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
3379ed37 | 9682 | echo "configure:9683: checking for dnet_ntoa in -ldnet" >&5 |
698dcdb6 VZ |
9683 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
9684 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9685 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 9686 | else |
698dcdb6 | 9687 | ac_save_LIBS="$LIBS" |
ab9b9eab | 9688 | LIBS="-ldnet $LIBS" |
698dcdb6 | 9689 | cat > conftest.$ac_ext <<EOF |
3379ed37 | 9690 | #line 9691 "configure" |
ab9b9eab VZ |
9691 | #include "confdefs.h" |
9692 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9693 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9694 | builtin and then its argument prototype would still apply. */ |
9695 | char dnet_ntoa(); | |
9696 | ||
9697 | int main() { | |
9698 | dnet_ntoa() | |
9699 | ; return 0; } | |
9700 | EOF | |
3379ed37 | 9701 | if { (eval echo configure:9702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9702 | rm -rf conftest* |
9703 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9704 | else | |
9705 | echo "configure: failed program was:" >&5 | |
9706 | cat conftest.$ac_ext >&5 | |
9707 | rm -rf conftest* | |
9708 | eval "ac_cv_lib_$ac_lib_var=no" | |
9709 | fi | |
9710 | rm -f conftest* | |
9711 | LIBS="$ac_save_LIBS" | |
9712 | ||
9713 | fi | |
9714 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9715 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 9716 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
698dcdb6 VZ |
9717 | else |
9718 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
9719 | fi |
9720 | ||
9721 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
698dcdb6 | 9722 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
3379ed37 | 9723 | echo "configure:9724: checking for dnet_ntoa in -ldnet_stub" >&5 |
698dcdb6 VZ |
9724 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
9725 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9726 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 9727 | else |
698dcdb6 | 9728 | ac_save_LIBS="$LIBS" |
ab9b9eab | 9729 | LIBS="-ldnet_stub $LIBS" |
698dcdb6 | 9730 | cat > conftest.$ac_ext <<EOF |
3379ed37 | 9731 | #line 9732 "configure" |
ab9b9eab VZ |
9732 | #include "confdefs.h" |
9733 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9734 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9735 | builtin and then its argument prototype would still apply. */ |
9736 | char dnet_ntoa(); | |
9737 | ||
9738 | int main() { | |
9739 | dnet_ntoa() | |
9740 | ; return 0; } | |
9741 | EOF | |
3379ed37 | 9742 | if { (eval echo configure:9743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9743 | rm -rf conftest* |
9744 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9745 | else | |
9746 | echo "configure: failed program was:" >&5 | |
9747 | cat conftest.$ac_ext >&5 | |
9748 | rm -rf conftest* | |
9749 | eval "ac_cv_lib_$ac_lib_var=no" | |
9750 | fi | |
9751 | rm -f conftest* | |
9752 | LIBS="$ac_save_LIBS" | |
9753 | ||
9754 | fi | |
9755 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9756 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 9757 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
698dcdb6 VZ |
9758 | else |
9759 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
9760 | fi |
9761 | ||
9762 | fi | |
9763 | ||
9764 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
9765 | # to get the SysV transport functions. | |
698dcdb6 | 9766 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
ab9b9eab VZ |
9767 | # needs -lnsl. |
9768 | # The nsl library prevents programs from opening the X display | |
698dcdb6 VZ |
9769 | # on Irix 5.2, according to dickey@clark.net. |
9770 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
3379ed37 | 9771 | echo "configure:9772: checking for gethostbyname" >&5 |
698dcdb6 VZ |
9772 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
9773 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9774 | else | |
9775 | cat > conftest.$ac_ext <<EOF | |
3379ed37 | 9776 | #line 9777 "configure" |
ab9b9eab VZ |
9777 | #include "confdefs.h" |
9778 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 9779 | which can conflict with char gethostbyname(); below. */ |
ab9b9eab VZ |
9780 | #include <assert.h> |
9781 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9782 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9783 | builtin and then its argument prototype would still apply. */ |
9784 | char gethostbyname(); | |
9785 | ||
9786 | int main() { | |
ab9b9eab VZ |
9787 | |
9788 | /* The GNU C library defines this for functions which it implements | |
9789 | to always fail with ENOSYS. Some functions are actually named | |
9790 | something starting with __ and the normal name is an alias. */ | |
9791 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
9792 | choke me | |
9793 | #else | |
698dcdb6 | 9794 | gethostbyname(); |
ab9b9eab VZ |
9795 | #endif |
9796 | ||
698dcdb6 VZ |
9797 | ; return 0; } |
9798 | EOF | |
3379ed37 | 9799 | if { (eval echo configure:9800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9800 | rm -rf conftest* |
9801 | eval "ac_cv_func_gethostbyname=yes" | |
9802 | else | |
9803 | echo "configure: failed program was:" >&5 | |
9804 | cat conftest.$ac_ext >&5 | |
9805 | rm -rf conftest* | |
9806 | eval "ac_cv_func_gethostbyname=no" | |
9807 | fi | |
9808 | rm -f conftest* | |
9809 | fi | |
9810 | ||
9811 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
9812 | echo "$ac_t""yes" 1>&6 | |
9813 | : | |
9814 | else | |
9815 | echo "$ac_t""no" 1>&6 | |
9816 | fi | |
ab9b9eab VZ |
9817 | |
9818 | if test $ac_cv_func_gethostbyname = no; then | |
698dcdb6 | 9819 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
3379ed37 | 9820 | echo "configure:9821: checking for gethostbyname in -lnsl" >&5 |
698dcdb6 VZ |
9821 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
9822 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9823 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 9824 | else |
698dcdb6 | 9825 | ac_save_LIBS="$LIBS" |
ab9b9eab | 9826 | LIBS="-lnsl $LIBS" |
698dcdb6 | 9827 | cat > conftest.$ac_ext <<EOF |
3379ed37 | 9828 | #line 9829 "configure" |
ab9b9eab VZ |
9829 | #include "confdefs.h" |
9830 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9831 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9832 | builtin and then its argument prototype would still apply. */ |
9833 | char gethostbyname(); | |
6232543b | 9834 | |
698dcdb6 VZ |
9835 | int main() { |
9836 | gethostbyname() | |
9837 | ; return 0; } | |
9838 | EOF | |
3379ed37 | 9839 | if { (eval echo configure:9840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9840 | rm -rf conftest* |
9841 | eval "ac_cv_lib_$ac_lib_var=yes" | |
703e0a69 | 9842 | else |
698dcdb6 VZ |
9843 | echo "configure: failed program was:" >&5 |
9844 | cat conftest.$ac_ext >&5 | |
9845 | rm -rf conftest* | |
9846 | eval "ac_cv_lib_$ac_lib_var=no" | |
9847 | fi | |
9848 | rm -f conftest* | |
9849 | LIBS="$ac_save_LIBS" | |
1e487827 | 9850 | |
698dcdb6 VZ |
9851 | fi |
9852 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9853 | echo "$ac_t""yes" 1>&6 | |
9854 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
9855 | else | |
9856 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
9857 | fi |
9858 | ||
9859 | fi | |
9860 | ||
9861 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
9862 | # socket/setsockopt and other routines are undefined under SCO ODT | |
9863 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
698dcdb6 VZ |
9864 | # on later versions), says simon@lia.di.epfl.ch: it contains |
9865 | # gethostby* variants that don't use the nameserver (or something). | |
9866 | # -lsocket must be given before -lnsl if both are needed. | |
9867 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
9868 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
3379ed37 | 9869 | echo "configure:9870: checking for connect" >&5 |
698dcdb6 VZ |
9870 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
9871 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9872 | else | |
9873 | cat > conftest.$ac_ext <<EOF | |
3379ed37 | 9874 | #line 9875 "configure" |
ab9b9eab VZ |
9875 | #include "confdefs.h" |
9876 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 9877 | which can conflict with char connect(); below. */ |
ab9b9eab VZ |
9878 | #include <assert.h> |
9879 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9880 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9881 | builtin and then its argument prototype would still apply. */ |
9882 | char connect(); | |
9883 | ||
9884 | int main() { | |
ab9b9eab VZ |
9885 | |
9886 | /* The GNU C library defines this for functions which it implements | |
9887 | to always fail with ENOSYS. Some functions are actually named | |
9888 | something starting with __ and the normal name is an alias. */ | |
9889 | #if defined (__stub_connect) || defined (__stub___connect) | |
9890 | choke me | |
9891 | #else | |
698dcdb6 | 9892 | connect(); |
ab9b9eab VZ |
9893 | #endif |
9894 | ||
698dcdb6 VZ |
9895 | ; return 0; } |
9896 | EOF | |
3379ed37 | 9897 | if { (eval echo configure:9898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9898 | rm -rf conftest* |
9899 | eval "ac_cv_func_connect=yes" | |
9900 | else | |
9901 | echo "configure: failed program was:" >&5 | |
9902 | cat conftest.$ac_ext >&5 | |
9903 | rm -rf conftest* | |
9904 | eval "ac_cv_func_connect=no" | |
9905 | fi | |
9906 | rm -f conftest* | |
9907 | fi | |
9908 | ||
9909 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
9910 | echo "$ac_t""yes" 1>&6 | |
9911 | : | |
9912 | else | |
9913 | echo "$ac_t""no" 1>&6 | |
9914 | fi | |
ab9b9eab VZ |
9915 | |
9916 | if test $ac_cv_func_connect = no; then | |
698dcdb6 | 9917 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
3379ed37 | 9918 | echo "configure:9919: checking for connect in -lsocket" >&5 |
698dcdb6 VZ |
9919 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
9920 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9921 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 9922 | else |
698dcdb6 | 9923 | ac_save_LIBS="$LIBS" |
ab9b9eab | 9924 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
698dcdb6 | 9925 | cat > conftest.$ac_ext <<EOF |
3379ed37 | 9926 | #line 9927 "configure" |
ab9b9eab VZ |
9927 | #include "confdefs.h" |
9928 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9929 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9930 | builtin and then its argument prototype would still apply. */ |
9931 | char connect(); | |
9932 | ||
9933 | int main() { | |
9934 | connect() | |
9935 | ; return 0; } | |
9936 | EOF | |
3379ed37 | 9937 | if { (eval echo configure:9938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9938 | rm -rf conftest* |
9939 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9940 | else | |
9941 | echo "configure: failed program was:" >&5 | |
9942 | cat conftest.$ac_ext >&5 | |
9943 | rm -rf conftest* | |
9944 | eval "ac_cv_lib_$ac_lib_var=no" | |
9945 | fi | |
9946 | rm -f conftest* | |
9947 | LIBS="$ac_save_LIBS" | |
9948 | ||
9949 | fi | |
9950 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9951 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 9952 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
698dcdb6 VZ |
9953 | else |
9954 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
9955 | fi |
9956 | ||
9957 | fi | |
9958 | ||
698dcdb6 VZ |
9959 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
9960 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
3379ed37 | 9961 | echo "configure:9962: checking for remove" >&5 |
698dcdb6 VZ |
9962 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
9963 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 9964 | else |
698dcdb6 | 9965 | cat > conftest.$ac_ext <<EOF |
3379ed37 | 9966 | #line 9967 "configure" |
ab9b9eab VZ |
9967 | #include "confdefs.h" |
9968 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 9969 | which can conflict with char remove(); below. */ |
ab9b9eab VZ |
9970 | #include <assert.h> |
9971 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9972 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9973 | builtin and then its argument prototype would still apply. */ |
9974 | char remove(); | |
9975 | ||
9976 | int main() { | |
ab9b9eab VZ |
9977 | |
9978 | /* The GNU C library defines this for functions which it implements | |
9979 | to always fail with ENOSYS. Some functions are actually named | |
9980 | something starting with __ and the normal name is an alias. */ | |
9981 | #if defined (__stub_remove) || defined (__stub___remove) | |
9982 | choke me | |
9983 | #else | |
698dcdb6 | 9984 | remove(); |
ab9b9eab VZ |
9985 | #endif |
9986 | ||
698dcdb6 VZ |
9987 | ; return 0; } |
9988 | EOF | |
3379ed37 | 9989 | if { (eval echo configure:9990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9990 | rm -rf conftest* |
9991 | eval "ac_cv_func_remove=yes" | |
9992 | else | |
9993 | echo "configure: failed program was:" >&5 | |
9994 | cat conftest.$ac_ext >&5 | |
9995 | rm -rf conftest* | |
9996 | eval "ac_cv_func_remove=no" | |
9997 | fi | |
9998 | rm -f conftest* | |
9999 | fi | |
10000 | ||
10001 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
10002 | echo "$ac_t""yes" 1>&6 | |
10003 | : | |
10004 | else | |
10005 | echo "$ac_t""no" 1>&6 | |
10006 | fi | |
ab9b9eab VZ |
10007 | |
10008 | if test $ac_cv_func_remove = no; then | |
698dcdb6 | 10009 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
3379ed37 | 10010 | echo "configure:10011: checking for remove in -lposix" >&5 |
698dcdb6 VZ |
10011 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
10012 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10013 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 10014 | else |
698dcdb6 | 10015 | ac_save_LIBS="$LIBS" |
ab9b9eab | 10016 | LIBS="-lposix $LIBS" |
698dcdb6 | 10017 | cat > conftest.$ac_ext <<EOF |
3379ed37 | 10018 | #line 10019 "configure" |
ab9b9eab VZ |
10019 | #include "confdefs.h" |
10020 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10021 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10022 | builtin and then its argument prototype would still apply. */ |
10023 | char remove(); | |
10024 | ||
10025 | int main() { | |
10026 | remove() | |
10027 | ; return 0; } | |
10028 | EOF | |
3379ed37 | 10029 | if { (eval echo configure:10030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10030 | rm -rf conftest* |
10031 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10032 | else | |
10033 | echo "configure: failed program was:" >&5 | |
10034 | cat conftest.$ac_ext >&5 | |
10035 | rm -rf conftest* | |
10036 | eval "ac_cv_lib_$ac_lib_var=no" | |
10037 | fi | |
10038 | rm -f conftest* | |
10039 | LIBS="$ac_save_LIBS" | |
10040 | ||
10041 | fi | |
10042 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10043 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 10044 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
698dcdb6 VZ |
10045 | else |
10046 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
10047 | fi |
10048 | ||
10049 | fi | |
10050 | ||
10051 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
698dcdb6 | 10052 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
3379ed37 | 10053 | echo "configure:10054: checking for shmat" >&5 |
698dcdb6 VZ |
10054 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
10055 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 10056 | else |
698dcdb6 | 10057 | cat > conftest.$ac_ext <<EOF |
3379ed37 | 10058 | #line 10059 "configure" |
ab9b9eab VZ |
10059 | #include "confdefs.h" |
10060 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 10061 | which can conflict with char shmat(); below. */ |
ab9b9eab VZ |
10062 | #include <assert.h> |
10063 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10064 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10065 | builtin and then its argument prototype would still apply. */ |
10066 | char shmat(); | |
10067 | ||
10068 | int main() { | |
ab9b9eab VZ |
10069 | |
10070 | /* The GNU C library defines this for functions which it implements | |
10071 | to always fail with ENOSYS. Some functions are actually named | |
10072 | something starting with __ and the normal name is an alias. */ | |
10073 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
10074 | choke me | |
10075 | #else | |
698dcdb6 | 10076 | shmat(); |
ab9b9eab VZ |
10077 | #endif |
10078 | ||
698dcdb6 VZ |
10079 | ; return 0; } |
10080 | EOF | |
3379ed37 | 10081 | if { (eval echo configure:10082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10082 | rm -rf conftest* |
10083 | eval "ac_cv_func_shmat=yes" | |
10084 | else | |
10085 | echo "configure: failed program was:" >&5 | |
10086 | cat conftest.$ac_ext >&5 | |
10087 | rm -rf conftest* | |
10088 | eval "ac_cv_func_shmat=no" | |
10089 | fi | |
10090 | rm -f conftest* | |
10091 | fi | |
10092 | ||
10093 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
10094 | echo "$ac_t""yes" 1>&6 | |
10095 | : | |
10096 | else | |
10097 | echo "$ac_t""no" 1>&6 | |
10098 | fi | |
ab9b9eab VZ |
10099 | |
10100 | if test $ac_cv_func_shmat = no; then | |
698dcdb6 | 10101 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
3379ed37 | 10102 | echo "configure:10103: checking for shmat in -lipc" >&5 |
698dcdb6 VZ |
10103 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
10104 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10105 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 10106 | else |
698dcdb6 | 10107 | ac_save_LIBS="$LIBS" |
ab9b9eab | 10108 | LIBS="-lipc $LIBS" |
698dcdb6 | 10109 | cat > conftest.$ac_ext <<EOF |
3379ed37 | 10110 | #line 10111 "configure" |
ab9b9eab VZ |
10111 | #include "confdefs.h" |
10112 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10113 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10114 | builtin and then its argument prototype would still apply. */ |
10115 | char shmat(); | |
10116 | ||
10117 | int main() { | |
10118 | shmat() | |
10119 | ; return 0; } | |
10120 | EOF | |
3379ed37 | 10121 | if { (eval echo configure:10122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10122 | rm -rf conftest* |
10123 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10124 | else | |
10125 | echo "configure: failed program was:" >&5 | |
10126 | cat conftest.$ac_ext >&5 | |
10127 | rm -rf conftest* | |
10128 | eval "ac_cv_lib_$ac_lib_var=no" | |
10129 | fi | |
10130 | rm -f conftest* | |
10131 | LIBS="$ac_save_LIBS" | |
10132 | ||
10133 | fi | |
10134 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10135 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 10136 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
698dcdb6 VZ |
10137 | else |
10138 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
10139 | fi |
10140 | ||
10141 | fi | |
10142 | fi | |
10143 | ||
10144 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
698dcdb6 | 10145 | ac_save_LDFLAGS="$LDFLAGS" |
ab9b9eab VZ |
10146 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
10147 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
10148 | # check for ICE first), but we must link in the order -lSM -lICE or | |
10149 | # we get undefined symbols. So assume we have SM if we have ICE. | |
10150 | # These have to be linked with before -lX11, unlike the other | |
10151 | # libraries we check for below, so use a different variable. | |
698dcdb6 VZ |
10152 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
10153 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
3379ed37 | 10154 | echo "configure:10155: checking for IceConnectionNumber in -lICE" >&5 |
698dcdb6 VZ |
10155 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
10156 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10157 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10158 | else | |
10159 | ac_save_LIBS="$LIBS" | |
ab9b9eab | 10160 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
698dcdb6 | 10161 | cat > conftest.$ac_ext <<EOF |
3379ed37 | 10162 | #line 10163 "configure" |
ab9b9eab VZ |
10163 | #include "confdefs.h" |
10164 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10165 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10166 | builtin and then its argument prototype would still apply. */ |
10167 | char IceConnectionNumber(); | |
10168 | ||
10169 | int main() { | |
10170 | IceConnectionNumber() | |
10171 | ; return 0; } | |
10172 | EOF | |
3379ed37 | 10173 | if { (eval echo configure:10174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10174 | rm -rf conftest* |
10175 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10176 | else | |
10177 | echo "configure: failed program was:" >&5 | |
10178 | cat conftest.$ac_ext >&5 | |
10179 | rm -rf conftest* | |
10180 | eval "ac_cv_lib_$ac_lib_var=no" | |
10181 | fi | |
10182 | rm -f conftest* | |
10183 | LIBS="$ac_save_LIBS" | |
10184 | ||
10185 | fi | |
10186 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10187 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 10188 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
698dcdb6 VZ |
10189 | else |
10190 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
10191 | fi |
10192 | ||
698dcdb6 | 10193 | LDFLAGS="$ac_save_LDFLAGS" |
ab9b9eab VZ |
10194 | |
10195 | fi | |
10196 | ||
1e6feb95 VZ |
10197 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
10198 | LDFLAGS="$LDFLAGS $X_LIBS" | |
ab9b9eab | 10199 | |
1e6feb95 VZ |
10200 | if test "$wxUSE_MOTIF" = 1; then |
10201 | if test "$no_x" = "yes"; then | |
10202 | { echo "configure: error: X11 not found" 1>&2; exit 1; } | |
10203 | fi | |
ab9b9eab | 10204 | |
1e6feb95 VZ |
10205 | GUI_TK_LIBRARY="$X_LIBS" |
10206 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
ab9b9eab | 10207 | |
1e6feb95 | 10208 | AFMINSTALL=afminstall |
dad6c0ea | 10209 | |
1e6feb95 VZ |
10210 | |
10211 | COMPILED_X_PROGRAM=0 | |
cd6d6d5b | 10212 | |
1e6feb95 | 10213 | echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6 |
3379ed37 | 10214 | echo "configure:10215: checking for Motif/Lesstif headers" >&5 |
1e6feb95 | 10215 | |
ab9b9eab VZ |
10216 | ac_find_includes= |
10217 | for ac_dir in $SEARCH_INCLUDE; | |
10218 | do | |
10219 | if test -f "$ac_dir/Xm/Xm.h"; then | |
10220 | ac_find_includes=$ac_dir | |
10221 | break | |
10222 | fi | |
10223 | done | |
10224 | ||
1e6feb95 VZ |
10225 | if test "$ac_find_includes" != "" ; then |
10226 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
10227 | else | |
10228 | cat > conftest.$ac_ext <<EOF | |
3379ed37 | 10229 | #line 10230 "configure" |
cd6d6d5b VZ |
10230 | #include "confdefs.h" |
10231 | ||
1e6feb95 VZ |
10232 | #include <Xm/Xm.h> |
10233 | ||
698dcdb6 | 10234 | int main() { |
cd6d6d5b | 10235 | |
1e6feb95 | 10236 | int version; |
cd6d6d5b | 10237 | |
1e6feb95 VZ |
10238 | version = xmUseVersion; |
10239 | ||
698dcdb6 VZ |
10240 | ; return 0; } |
10241 | EOF | |
3379ed37 | 10242 | if { (eval echo configure:10243: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
10243 | rm -rf conftest* |
10244 | ||
1e6feb95 VZ |
10245 | echo "$ac_t""found in default search path" 1>&6 |
10246 | COMPILED_X_PROGRAM=1 | |
10247 | ||
cd6d6d5b | 10248 | else |
698dcdb6 VZ |
10249 | echo "configure: failed program was:" >&5 |
10250 | cat conftest.$ac_ext >&5 | |
10251 | rm -rf conftest* | |
10252 | ||
1e6feb95 VZ |
10253 | echo "$ac_t""no" 1>&6 |
10254 | { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; } | |
10255 | ||
698dcdb6 | 10256 | |
cd6d6d5b | 10257 | fi |
698dcdb6 | 10258 | rm -f conftest* |
1e6feb95 | 10259 | fi |
ab9b9eab | 10260 | |
1e6feb95 VZ |
10261 | if test "$COMPILED_X_PROGRAM" = 0; then |
10262 | echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6 | |
3379ed37 | 10263 | echo "configure:10264: checking for Motif/Lesstif library" >&5 |
1e6feb95 | 10264 | |
ab9b9eab VZ |
10265 | ac_find_libraries= |
10266 | for ac_dir in $SEARCH_LIB; | |
10267 | do | |
10268 | for ac_extension in a so sl; do | |
10269 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
10270 | ac_find_libraries=$ac_dir | |
10271 | break 2 | |
10272 | fi | |
10273 | done | |
10274 | done | |
10275 | ||
1e6feb95 VZ |
10276 | if test "$ac_find_libraries" != "" ; then |
10277 | ||
ab9b9eab VZ |
10278 | ac_path_to_include=$ac_find_includes |
10279 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
10280 | result=$? | |
10281 | if test $result = 0; then | |
10282 | ac_path_to_include="" | |
10283 | else | |
10284 | ac_path_to_include="-I$ac_find_includes" | |
10285 | fi | |
10286 | ||
1e6feb95 | 10287 | |
ab9b9eab VZ |
10288 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
10289 | result=$? | |
10290 | if test $result = 0; then | |
10291 | ac_path_to_link="" | |
10292 | else | |
10293 | ac_path_to_link="-L$ac_find_libraries" | |
10294 | fi | |
10295 | ||
698dcdb6 | 10296 | |
1e6feb95 VZ |
10297 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" |
10298 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include" | |
10299 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
10300 | else | |
10301 | cat > conftest.$ac_ext <<EOF | |
3379ed37 | 10302 | #line 10303 "configure" |
cd6d6d5b | 10303 | #include "confdefs.h" |
ab9b9eab | 10304 | |
1e6feb95 VZ |
10305 | #include <Xm/Xm.h> |
10306 | ||
698dcdb6 | 10307 | int main() { |
ab9b9eab | 10308 | |
1e6feb95 | 10309 | int version; |
ab9b9eab | 10310 | |
1e6feb95 VZ |
10311 | version = xmUseVersion; |
10312 | ||
698dcdb6 VZ |
10313 | ; return 0; } |
10314 | EOF | |
3379ed37 | 10315 | if { (eval echo configure:10316: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
10316 | rm -rf conftest* |
10317 | ||
1e6feb95 VZ |
10318 | echo "$ac_t""found in default search path" 1>&6 |
10319 | COMPILED_X_PROGRAM=1 | |
10320 | ||
cd6d6d5b | 10321 | else |
698dcdb6 VZ |
10322 | echo "configure: failed program was:" >&5 |
10323 | cat conftest.$ac_ext >&5 | |
10324 | rm -rf conftest* | |
10325 | ||
1e6feb95 VZ |
10326 | echo "$ac_t""no" 1>&6 |
10327 | { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; } | |
10328 | ||
698dcdb6 | 10329 | |
cd6d6d5b | 10330 | fi |
698dcdb6 | 10331 | rm -f conftest* |
1e6feb95 | 10332 | fi |
cd6d6d5b | 10333 | fi |
ab9b9eab | 10334 | |
1e6feb95 VZ |
10335 | |
10336 | XPM_LINK="" | |
10337 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
3379ed37 | 10338 | echo "configure:10339: checking for Xpm library" >&5 |
1e6feb95 | 10339 | |
ab9b9eab VZ |
10340 | ac_find_libraries= |
10341 | for ac_dir in $SEARCH_LIB; | |
10342 | do | |
10343 | for ac_extension in a so sl; do | |
10344 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
10345 | ac_find_libraries=$ac_dir | |
10346 | break 2 | |
10347 | fi | |
10348 | done | |
10349 | done | |
10350 | ||
1e6feb95 VZ |
10351 | if test "$ac_find_libraries" != "" ; then |
10352 | ||
ab9b9eab VZ |
10353 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
10354 | result=$? | |
10355 | if test $result = 0; then | |
10356 | ac_path_to_link="" | |
10357 | else | |
10358 | ac_path_to_link="-L$ac_find_libraries" | |
10359 | fi | |
10360 | ||
1e6feb95 VZ |
10361 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" |
10362 | XPM_LINK="-lXpm " | |
10363 | cat >> confdefs.h <<\EOF | |
ab9b9eab VZ |
10364 | #define wxHAVE_LIB_XPM 1 |
10365 | EOF | |
10366 | ||
1e6feb95 VZ |
10367 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
10368 | else | |
10369 | cat > conftest.$ac_ext <<EOF | |
3379ed37 | 10370 | #line 10371 "configure" |
cd6d6d5b VZ |
10371 | #include "confdefs.h" |
10372 | ||
1e6feb95 VZ |
10373 | #include <X11/xpm.h> |
10374 | ||
698dcdb6 | 10375 | int main() { |
cd6d6d5b | 10376 | |
1e6feb95 | 10377 | int version; |
cd6d6d5b | 10378 | |
1e6feb95 VZ |
10379 | version = XpmLibraryVersion(); |
10380 | ||
698dcdb6 VZ |
10381 | ; return 0; } |
10382 | EOF | |
3379ed37 | 10383 | if { (eval echo configure:10384: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
10384 | rm -rf conftest* |
10385 | ||
1e6feb95 VZ |
10386 | XPM_LINK="-lXpm " |
10387 | cat >> confdefs.h <<\EOF | |
3ace2e6d SN |
10388 | #define wxHAVE_LIB_XPM 1 |
10389 | EOF | |
10390 | ||
1e6feb95 VZ |
10391 | echo "$ac_t""found in default search path" 1>&6 |
10392 | COMPILED_X_PROGRAM=0 | |
10393 | ||
cd6d6d5b | 10394 | else |
698dcdb6 VZ |
10395 | echo "configure: failed program was:" >&5 |
10396 | cat conftest.$ac_ext >&5 | |
10397 | rm -rf conftest* | |
10398 | ||
1e6feb95 VZ |
10399 | echo "$ac_t""no" 1>&6 |
10400 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
10401 | ||
698dcdb6 | 10402 | |
cd6d6d5b | 10403 | fi |
698dcdb6 | 10404 | rm -f conftest* |
1e6feb95 VZ |
10405 | fi |
10406 | ||
10407 | GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11" | |
10408 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK" | |
10409 | TOOLKIT=MOTIF | |
10410 | GUIDIST=MOTIF_DIST | |
ab9b9eab VZ |
10411 | fi |
10412 | ||
1e6feb95 VZ |
10413 | if test "$wxUSE_MAC" = 1; then |
10414 | TOOLKIT=MAC | |
10415 | GUIDIST=MACX_DIST | |
10416 | fi | |
10f2d63a | 10417 | |
1e6feb95 VZ |
10418 | if test "$wxUSE_PM" = 1; then |
10419 | TOOLKIT=PM | |
10420 | GUIDIST=GTK_DIST | |
10421 | fi | |
b4085ce6 | 10422 | |
1e6feb95 VZ |
10423 | if test "$TOOLKIT" != "PM" ; then |
10424 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
10425 | else | |
10426 | TOOLKIT_DIR="os2" | |
10427 | fi | |
e07802fc | 10428 | |
1e6feb95 | 10429 | TOOLKIT_NAME="${TOOLKIT_DIR}" |
10f2d63a | 10430 | |
1e6feb95 VZ |
10431 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" |
10432 | ||
10433 | if test "$TOOLKIT_NAME" = "motif"; then | |
10434 | TOOLKIT_VPATH="${TOOLKIT_VPATH}${PATH_IFS}\${top_srcdir}/src/motif/xmcombo" | |
10435 | fi | |
10436 | ||
10437 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
10438 | TOOLKIT_NAME="${TOOLKIT_NAME}univ" | |
10439 | UNIV_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes" | |
10440 | TOOLKIT_VPATH="${UNIV_VPATH}${PATH_IFS}${TOOLKIT_VPATH}" | |
10441 | SETUPH_DIR="univ" | |
f6bcfd97 | 10442 | else |
1e6feb95 VZ |
10443 | SETUPH_DIR="${TOOLKIT_DIR}" |
10444 | fi | |
10445 | ||
10446 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
10447 | TOOLKIT_NAME="${TOOLKIT_NAME}d" | |
f6bcfd97 BP |
10448 | fi |
10449 | ||
2224580a | 10450 | TOOLKIT_DEF="-D__WX${TOOLKIT}__" |
1e6feb95 VZ |
10451 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
10452 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXUNIVERSAL__" | |
10453 | fi | |
10f2d63a | 10454 | |
f6bcfd97 | 10455 | WX_LIBRARY="wx_${TOOLKIT_NAME}" |
10f2d63a | 10456 | |
1e6feb95 VZ |
10457 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
10458 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
10459 | else | |
10460 | ALL_OBJECTS="\$(GUIOBJS)" | |
10461 | fi | |
10462 | ||
10463 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" | |
10464 | ||
10465 | if test "$TOOLKIT" != "MSW"; then | |
10466 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" | |
10467 | fi | |
10468 | ||
10469 | if test "$wxUSE_HTML" = "yes"; then | |
10470 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
10471 | fi | |
3fcdd07b | 10472 | |
1e6feb95 VZ |
10473 | if test "$TOOLKIT" != "MSW"; then |
10474 | if test "$wxUSE_ODBC" = "yes" ; then | |
10475 | ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)" | |
10476 | fi | |
3fcdd07b VZ |
10477 | fi |
10478 | ||
d9d8273d | 10479 | if test "$wxUSE_LIBJPEG" = "yes" ; then |
2224580a | 10480 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" |
d9d8273d RR |
10481 | fi |
10482 | if test "$wxUSE_LIBTIFF" = "yes" ; then | |
10483 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
10484 | fi | |
10485 | if test "$wxUSE_LIBPNG" = "yes" ; then | |
10486 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
10487 | fi | |
10488 | if test "$wxUSE_ZLIB" = "yes" ; then | |
10489 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
10490 | fi | |
3fed1840 RR |
10491 | if test "$wxUSE_FREETYPE" = "yes" ; then |
10492 | ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)" | |
10493 | fi | |
2224580a | 10494 | |
1e6feb95 VZ |
10495 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
10496 | ALL_DEPFILES="\$(GUI_LOWLEVEL_DEPS) \$(UNIVDEPS)" | |
10497 | else | |
10498 | ALL_DEPFILES="\$(GUIDEPS)" | |
10499 | fi | |
10500 | ||
10501 | ALL_DEPFILES="${ALL_DEPFILES} \$(COMMONDEPS) \$(GENERICDEPS)" | |
10502 | ||
10503 | if test "$TOOLKIT" != "MSW"; then | |
10504 | ALL_DEPFILES="${ALL_DEPFILES} \$(UNIXDEPS)" | |
10505 | fi | |
10506 | ||
10507 | if test "$wxUSE_HTML" = "yes"; then | |
10508 | ALL_DEPFILES="${ALL_DEPFILES} \$(HTMLDEPS)" | |
10509 | fi | |
10510 | ||
879df073 | 10511 | PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst" |
1e6feb95 | 10512 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
879df073 | 10513 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" |
1e6feb95 | 10514 | fi |
2224580a VZ |
10515 | RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst" |
10516 | RPM_SPEC="wx\$(TOOLKIT).spec" | |
10517 | ||
10518 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
10519 | DISTDIR="wx\$(TOOLKIT)" | |
10f2d63a | 10520 | else |
dad6c0ea VZ |
10521 | USE_GUI=0 |
10522 | ||
f6bcfd97 BP |
10523 | TOOLKIT_DIR="base" |
10524 | ||
10525 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
10526 | TOOLKIT_NAME="${TOOLKIT_DIR}d" | |
10527 | else | |
10528 | TOOLKIT_NAME="${TOOLKIT_DIR}" | |
10529 | fi | |
10530 | ||
07eb77a6 RL |
10531 | TOOLKIT_DEF="-D__WXBASE__" |
10532 | ||
b4085ce6 GD |
10533 | ALL_OBJECTS="\$(BASE_OBJS) \$(BASE_UNIX_OBJS)" |
10534 | ALL_DEPFILES="\$(BASE_DEPS) \$(BASE_UNIX_DEPS)" | |
10f2d63a | 10535 | |
a20b6d3a VZ |
10536 | if test "$wxUSE_ZLIB" = "yes" ; then |
10537 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
10538 | fi | |
10539 | ||
f6bcfd97 | 10540 | WX_LIBRARY="wx_${TOOLKIT_NAME}" |
2224580a VZ |
10541 | |
10542 | PORT_FILES="src/files.lst" | |
10543 | RPM_FILES="src/rpmfiles.lst" | |
10544 | RPM_SPEC="wxBase.spec" | |
10545 | ||
10546 | GUIDIST="BASE_DIST" | |
10547 | DISTDIR="wxBase" | |
10f2d63a VZ |
10548 | fi |
10549 | ||
10550 | WX_LIBRARY_NAME="lib${WX_LIBRARY}.la" | |
bdad4e7e | 10551 | WX_LIBRARY_NAME_GL="lib${WX_LIBRARY}_gl.la" |
10f2d63a VZ |
10552 | |
10553 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
bdad4e7e | 10554 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY}_gl.a" |
10f2d63a VZ |
10555 | |
10556 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
bdad4e7e | 10557 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" |
10f2d63a VZ |
10558 | |
10559 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}" | |
10560 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so" | |
10561 | WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so" | |
bdad4e7e RR |
10562 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}" |
10563 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so" | |
10564 | WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.so" | |
10f2d63a VZ |
10565 | |
10566 | SHARED_LD= | |
10567 | PIC_FLAG= | |
10568 | WX_ALL= | |
10569 | WX_ALL_INSTALLED= | |
1d62a8b4 | 10570 | BURNT_LIBRARY_NAME= |
f6bcfd97 | 10571 | WX_TARGET_LIBRARY_SONAME= |
10f2d63a | 10572 | |
698dcdb6 | 10573 | |
10f2d63a VZ |
10574 | if test "$wxUSE_SHARED" = "yes"; then |
10575 | case "${host}" in | |
10576 | *-hp-hpux* ) | |
10577 | if test "$GCC" = yes ; then | |
69ffe1d2 | 10578 | SHARED_LD="${CC} -shared -fPIC -o" |
10f2d63a VZ |
10579 | PIC_FLAG="-fPIC" |
10580 | else | |
f6bcfd97 BP |
10581 | LDFLAGS="-L/usr/lib" |
10582 | ||
10f2d63a VZ |
10583 | SHARED_LD="${CXX} -b -o" |
10584 | PIC_FLAG="+Z" | |
10585 | fi | |
f6bcfd97 BP |
10586 | WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_NAME}.sl" |
10587 | WX_LIBRARY_NAME_SHARED_GL="libwx_${TOOLKIT_NAME}_gl.sl" | |
c661ecca | 10588 | if test "$wxUSE_OPENGL" = "yes"; then |
f6bcfd97 | 10589 | WX_ALL_INSTALLED="preinstall_gl" |
c661ecca RR |
10590 | WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}" |
10591 | else | |
10592 | WX_ALL="${WX_LIBRARY_NAME_SHARED}" | |
10593 | fi | |
10f2d63a | 10594 | ;; |
b12915c1 VZ |
10595 | |
10596 | *-*-linux* ) | |
10f2d63a VZ |
10597 | SHARED_LD="${CC} -shared -o" |
10598 | PIC_FLAG="-fPIC" | |
00cf1208 | 10599 | if test "$wxUSE_BURNT_NAME" = "yes" ; then |
05cdfc6f | 10600 | BURNT_LIBRARY_NAME="-Wl,-soname,${WX_LIBRARY_LINK1}" |
bdad4e7e | 10601 | BURNT_LIBRARY_NAME_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}" |
f6bcfd97 | 10602 | WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)" |
00cf1208 | 10603 | fi |
c661ecca RR |
10604 | if test "$wxUSE_OPENGL" = "yes"; then |
10605 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
10606 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
10607 | else | |
10608 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10609 | WX_ALL="CREATE_LINKS" | |
422107f9 | 10610 | fi |
00cf1208 | 10611 | ;; |
10f2d63a VZ |
10612 | *-*-irix5* | *-*-irix6* ) |
10613 | if test "$GCC" = yes ; then | |
10614 | SHARED_LD="${CC} -shared -o" | |
10615 | PIC_FLAG="-fPIC" | |
10616 | else | |
10617 | SHARED_LD="${CXX} -shared -o" | |
10618 | fi | |
c661ecca RR |
10619 | if test "$wxUSE_OPENGL" = "yes"; then |
10620 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
10621 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
10622 | else | |
10623 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10624 | WX_ALL="CREATE_LINKS" | |
422107f9 | 10625 | fi |
10f2d63a VZ |
10626 | ;; |
10627 | *-*-solaris2* ) | |
10628 | if test "$GCC" = yes ; then | |
10629 | SHARED_LD="${CC} -shared -o" | |
10630 | PIC_FLAG="-fPIC" | |
f6bcfd97 BP |
10631 | |
10632 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
10f2d63a VZ |
10633 | else |
10634 | SHARED_LD="${CXX} -G -o" | |
10635 | PIC_FLAG="-KPIC" | |
10636 | fi | |
c661ecca RR |
10637 | if test "$wxUSE_OPENGL" = "yes"; then |
10638 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
10639 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
10640 | else | |
10641 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10642 | WX_ALL="CREATE_LINKS" | |
10643 | fi | |
10f2d63a VZ |
10644 | ;; |
10645 | *-*-sunos4* ) | |
10646 | SHARED_LD="${CC} -shared -o" | |
10647 | PIC_FLAG="-fPIC" | |
10648 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10649 | WX_ALL="CREATE_LINKS" | |
10650 | ;; | |
95c8801c | 10651 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* ) |
10f2d63a VZ |
10652 | SHARED_LD="${CC} -shared -o" |
10653 | PIC_FLAG="-fPIC" | |
37d403aa JS |
10654 | if test "$wxUSE_OPENGL" = "yes"; then |
10655 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
10656 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
10657 | else | |
10658 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10659 | WX_ALL="CREATE_LINKS" | |
10660 | fi | |
10f2d63a | 10661 | ;; |
b4085ce6 | 10662 | *-*-darwin* ) |
ea5999b9 GD |
10663 | SHARED_LD="${CXX} -dynamiclib -o" |
10664 | PIC_FLAG="-dynamic -fPIC" | |
b4085ce6 GD |
10665 | if test "$wxUSE_OPENGL" = "yes"; then |
10666 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
10667 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
10668 | else | |
10669 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10670 | WX_ALL="CREATE_LINKS" | |
10671 | fi | |
1e6feb95 VZ |
10672 | WX_ALL="${WX_ALL} ./lib/lib${WX_LIBRARY}-${WX_RELEASE}.r" |
10673 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
10674 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
10675 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}" | |
10676 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.dylib" | |
10677 | WX_LIBRARY_LINK3="lib${WX_LIBRARY}.dylib" | |
10678 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}" | |
10679 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib" | |
10680 | WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.dylib" | |
b4085ce6 | 10681 | ;; |
10f2d63a VZ |
10682 | *-*-osf* ) |
10683 | SHARED_LD="${CXX} -shared -o" | |
10684 | PIC_FLAG="-fPIC" | |
10685 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10686 | WX_ALL="CREATE_LINKS" | |
10687 | ;; | |
10688 | *-*-dgux5* ) | |
10689 | SHARED_LD="${CXX} -shared -o" | |
10690 | PIC_FLAG="-fPIC" | |
10691 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10692 | WX_ALL="CREATE_LINKS" | |
10693 | ;; | |
10694 | *-*-sysv5* ) | |
10695 | SHARED_LD="${CC} -shared -o" | |
10696 | PIC_FLAG="-fPIC" | |
10697 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10698 | WX_ALL="CREATE_LINKS" | |
10699 | ;; | |
10700 | *-*-aix* ) | |
10701 | SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o" | |
10702 | WX_ALL=${WX_LIBRARY_NAME_SHARED} | |
10703 | ;; | |
1c8183e2 | 10704 | *-*-cygwin* ) |
10f2d63a | 10705 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" |
bdad4e7e | 10706 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" |
f6bcfd97 BP |
10707 | if test "$wxUSE_OPENGL" = "yes"; then |
10708 | WX_ALL_INSTALLED="preinstall_gl" | |
10709 | WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}" | |
10710 | else | |
10711 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
10712 | fi | |
10f2d63a | 10713 | ;; |
b12915c1 | 10714 | *-*-mingw32* ) |
10f2d63a | 10715 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" |
bdad4e7e | 10716 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" |
f6bcfd97 BP |
10717 | if test "$wxUSE_OPENGL" = "yes"; then |
10718 | WX_ALL_INSTALLED="preinstall_gl" | |
10719 | WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}" | |
10720 | else | |
10721 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
10722 | fi | |
10f2d63a VZ |
10723 | ;; |
10724 | *-pc-os2_emx ) | |
e07802fc VZ |
10725 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" |
10726 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
10f2d63a | 10727 | ;; |
b12915c1 | 10728 | *-*-beos* ) |
e2b8b066 | 10729 | SHARED_LD="${LD} -shared -o" |
b12915c1 VZ |
10730 | PIC_FLAG="-fPIC" |
10731 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10732 | WX_ALL="CREATE_LINKS" | |
10733 | ;; | |
10f2d63a | 10734 | *) |
698dcdb6 | 10735 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } |
10f2d63a VZ |
10736 | esac |
10737 | ||
10738 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
10739 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
bdad4e7e | 10740 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" |
10f2d63a | 10741 | fi |
3711412e | 10742 | WX_TARGET_LIBRARY_TYPE="so" |
10f2d63a VZ |
10743 | else |
10744 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
bdad4e7e | 10745 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" |
f6bcfd97 BP |
10746 | |
10747 | if test "$wxUSE_OPENGL" = "yes"; then | |
10748 | WX_ALL_INSTALLED="preinstall_gl" | |
10749 | WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}" | |
10750 | else | |
10751 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
10752 | fi | |
10753 | ||
10754 | if test "$wxUSE_GUI" = "no"; then | |
10755 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
10756 | fi | |
10757 | ||
3711412e | 10758 | WX_TARGET_LIBRARY_TYPE="a" |
10f2d63a VZ |
10759 | fi |
10760 | ||
698dcdb6 VZ |
10761 | |
10762 | for ac_hdr in strings.h | |
10f2d63a | 10763 | do |
698dcdb6 VZ |
10764 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10765 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3379ed37 | 10766 | echo "configure:10767: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
10767 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10768 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10769 | else | |
10770 | cat > conftest.$ac_ext <<EOF | |
3379ed37 | 10771 | #line 10772 "configure" |
10f2d63a | 10772 | #include "confdefs.h" |
698dcdb6 VZ |
10773 | #include <$ac_hdr> |
10774 | EOF | |
10775 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3379ed37 | 10776 | { (eval echo configure:10777: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
10777 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10778 | if test -z "$ac_err"; then | |
10779 | rm -rf conftest* | |
10780 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 10781 | else |
698dcdb6 VZ |
10782 | echo "$ac_err" >&5 |
10783 | echo "configure: failed program was:" >&5 | |
10f2d63a | 10784 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
10785 | rm -rf conftest* |
10786 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 10787 | fi |
698dcdb6 | 10788 | rm -f conftest* |
10f2d63a | 10789 | fi |
698dcdb6 VZ |
10790 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10791 | echo "$ac_t""yes" 1>&6 | |
10792 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10793 | cat >> confdefs.h <<EOF | |
10794 | #define $ac_tr_hdr 1 | |
10f2d63a | 10795 | EOF |
698dcdb6 VZ |
10796 | |
10797 | else | |
10798 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
10799 | fi |
10800 | done | |
10801 | ||
698dcdb6 | 10802 | for ac_hdr in stdlib.h |
9cfadba2 | 10803 | do |
698dcdb6 VZ |
10804 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10805 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3379ed37 | 10806 | echo "configure:10807: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
10807 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10808 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10809 | else | |
10810 | cat > conftest.$ac_ext <<EOF | |
3379ed37 | 10811 | #line 10812 "configure" |
9cfadba2 | 10812 | #include "confdefs.h" |
698dcdb6 VZ |
10813 | #include <$ac_hdr> |
10814 | EOF | |
10815 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3379ed37 | 10816 | { (eval echo configure:10817: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
10817 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10818 | if test -z "$ac_err"; then | |
10819 | rm -rf conftest* | |
10820 | eval "ac_cv_header_$ac_safe=yes" | |
6232543b | 10821 | else |
698dcdb6 VZ |
10822 | echo "$ac_err" >&5 |
10823 | echo "configure: failed program was:" >&5 | |
9cfadba2 | 10824 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
10825 | rm -rf conftest* |
10826 | eval "ac_cv_header_$ac_safe=no" | |
9cfadba2 | 10827 | fi |
698dcdb6 | 10828 | rm -f conftest* |
9cfadba2 | 10829 | fi |
698dcdb6 VZ |
10830 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10831 | echo "$ac_t""yes" 1>&6 | |
10832 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10833 | cat >> confdefs.h <<EOF | |
10834 | #define $ac_tr_hdr 1 | |
9cfadba2 | 10835 | EOF |
698dcdb6 VZ |
10836 | |
10837 | else | |
10838 | echo "$ac_t""no" 1>&6 | |
9cfadba2 VZ |
10839 | fi |
10840 | done | |
10f2d63a | 10841 | |
698dcdb6 | 10842 | for ac_hdr in unistd.h |
10f2d63a | 10843 | do |
698dcdb6 VZ |
10844 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10845 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3379ed37 | 10846 | echo "configure:10847: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
10847 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10848 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10849 | else | |
10850 | cat > conftest.$ac_ext <<EOF | |
3379ed37 | 10851 | #line 10852 "configure" |
10f2d63a | 10852 | #include "confdefs.h" |
698dcdb6 VZ |
10853 | #include <$ac_hdr> |
10854 | EOF | |
10855 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3379ed37 | 10856 | { (eval echo configure:10857: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
10857 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10858 | if test -z "$ac_err"; then | |
10859 | rm -rf conftest* | |
10860 | eval "ac_cv_header_$ac_safe=yes" | |
6232543b | 10861 | else |
698dcdb6 VZ |
10862 | echo "$ac_err" >&5 |
10863 | echo "configure: failed program was:" >&5 | |
10f2d63a | 10864 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
10865 | rm -rf conftest* |
10866 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 10867 | fi |
698dcdb6 | 10868 | rm -f conftest* |
10f2d63a | 10869 | fi |
698dcdb6 VZ |
10870 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10871 | echo "$ac_t""yes" 1>&6 | |
10872 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10873 | cat >> confdefs.h <<EOF | |
10874 | #define $ac_tr_hdr 1 | |
10f2d63a | 10875 | EOF |
698dcdb6 VZ |
10876 | |
10877 | else | |
10878 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
10879 | fi |
10880 | done | |
10881 | ||
698dcdb6 | 10882 | for ac_hdr in wchar.h |
10f2d63a | 10883 | do |
698dcdb6 VZ |
10884 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10885 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3379ed37 | 10886 | echo "configure:10887: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
10887 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10888 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10889 | else | |
10890 | cat > conftest.$ac_ext <<EOF | |
3379ed37 | 10891 | #line 10892 "configure" |
10f2d63a | 10892 | #include "confdefs.h" |
698dcdb6 VZ |
10893 | #include <$ac_hdr> |
10894 | EOF | |
10895 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3379ed37 | 10896 | { (eval echo configure:10897: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
10897 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10898 | if test -z "$ac_err"; then | |
10899 | rm -rf conftest* | |
10900 | eval "ac_cv_header_$ac_safe=yes" | |
6f72b082 | 10901 | else |
698dcdb6 VZ |
10902 | echo "$ac_err" >&5 |
10903 | echo "configure: failed program was:" >&5 | |
6f72b082 | 10904 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
10905 | rm -rf conftest* |
10906 | eval "ac_cv_header_$ac_safe=no" | |
6f72b082 | 10907 | fi |
698dcdb6 | 10908 | rm -f conftest* |
6f72b082 | 10909 | fi |
698dcdb6 VZ |
10910 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10911 | echo "$ac_t""yes" 1>&6 | |
10912 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10913 | cat >> confdefs.h <<EOF | |
10914 | #define $ac_tr_hdr 1 | |
6f72b082 | 10915 | EOF |
698dcdb6 VZ |
10916 | |
10917 | else | |
10918 | echo "$ac_t""no" 1>&6 | |
6f72b082 OK |
10919 | fi |
10920 | done | |
10921 | ||
698dcdb6 | 10922 | for ac_hdr in wcstr.h |
6f72b082 | 10923 | do |
698dcdb6 VZ |
10924 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10925 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3379ed37 | 10926 | echo "configure:10927: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
10927 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10928 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10929 | else | |
10930 | cat > conftest.$ac_ext <<EOF | |
3379ed37 | 10931 | #line 10932 "configure" |
6f72b082 | 10932 | #include "confdefs.h" |
698dcdb6 VZ |
10933 | #include <$ac_hdr> |
10934 | EOF | |
10935 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3379ed37 | 10936 | { (eval echo configure:10937: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
10937 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10938 | if test -z "$ac_err"; then | |
10939 | rm -rf conftest* | |
10940 | eval "ac_cv_header_$ac_safe=yes" | |
6f72b082 | 10941 | else |
698dcdb6 VZ |
10942 | echo "$ac_err" >&5 |
10943 | echo "configure: failed program was:" >&5 | |
6f72b082 | 10944 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
10945 | rm -rf conftest* |
10946 | eval "ac_cv_header_$ac_safe=no" | |
6f72b082 | 10947 | fi |
698dcdb6 | 10948 | rm -f conftest* |
6f72b082 | 10949 | fi |
698dcdb6 VZ |
10950 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10951 | echo "$ac_t""yes" 1>&6 | |
10952 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10953 | cat >> confdefs.h <<EOF | |
10954 | #define $ac_tr_hdr 1 | |
6f72b082 | 10955 | EOF |
698dcdb6 VZ |
10956 | |
10957 | else | |
10958 | echo "$ac_t""no" 1>&6 | |
6f72b082 OK |
10959 | fi |
10960 | done | |
10961 | ||
698dcdb6 | 10962 | for ac_hdr in fnmatch.h |
6f72b082 | 10963 | do |
698dcdb6 VZ |
10964 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10965 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3379ed37 | 10966 | echo "configure:10967: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
10967 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10968 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10969 | else | |
10970 | cat > conftest.$ac_ext <<EOF | |
3379ed37 | 10971 | #line 10972 "configure" |
6f72b082 | 10972 | #include "confdefs.h" |
698dcdb6 VZ |
10973 | #include <$ac_hdr> |
10974 | EOF | |
10975 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3379ed37 | 10976 | { (eval echo configure:10977: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
10977 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10978 | if test -z "$ac_err"; then | |
10979 | rm -rf conftest* | |
10980 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 10981 | else |
698dcdb6 VZ |
10982 | echo "$ac_err" >&5 |
10983 | echo "configure: failed program was:" >&5 | |
10f2d63a | 10984 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
10985 | rm -rf conftest* |
10986 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 10987 | fi |
698dcdb6 | 10988 | rm -f conftest* |
10f2d63a | 10989 | fi |
698dcdb6 VZ |
10990 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10991 | echo "$ac_t""yes" 1>&6 | |
10992 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10993 | cat >> confdefs.h <<EOF | |
10994 | #define $ac_tr_hdr 1 | |
10f2d63a | 10995 | EOF |
698dcdb6 VZ |
10996 | |
10997 | else | |
10998 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
10999 | fi |
11000 | done | |
11001 | ||
698dcdb6 | 11002 | for ac_hdr in iconv.h |
0fb0dd83 | 11003 | do |
698dcdb6 VZ |
11004 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11005 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3379ed37 | 11006 | echo "configure:11007: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
11007 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11008 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11009 | else | |
11010 | cat > conftest.$ac_ext <<EOF | |
3379ed37 | 11011 | #line 11012 "configure" |
0fb0dd83 | 11012 | #include "confdefs.h" |
698dcdb6 VZ |
11013 | #include <$ac_hdr> |
11014 | EOF | |
11015 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3379ed37 | 11016 | { (eval echo configure:11017: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11017 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11018 | if test -z "$ac_err"; then | |
11019 | rm -rf conftest* | |
11020 | eval "ac_cv_header_$ac_safe=yes" | |
0fb0dd83 | 11021 | else |
698dcdb6 VZ |
11022 | echo "$ac_err" >&5 |
11023 | echo "configure: failed program was:" >&5 | |
0fb0dd83 | 11024 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11025 | rm -rf conftest* |
11026 | eval "ac_cv_header_$ac_safe=no" | |
0fb0dd83 | 11027 | fi |
698dcdb6 | 11028 | rm -f conftest* |
0fb0dd83 | 11029 | fi |
698dcdb6 VZ |
11030 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11031 | echo "$ac_t""yes" 1>&6 | |
11032 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11033 | cat >> confdefs.h <<EOF | |
11034 | #define $ac_tr_hdr 1 | |
0fb0dd83 | 11035 | EOF |
698dcdb6 VZ |
11036 | |
11037 | else | |
11038 | echo "$ac_t""no" 1>&6 | |
0fb0dd83 RR |
11039 | fi |
11040 | done | |
11041 | ||
698dcdb6 | 11042 | for ac_hdr in langinfo.h |
1f8ae82f | 11043 | do |
698dcdb6 VZ |
11044 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11045 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3379ed37 | 11046 | echo "configure:11047: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
11047 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11048 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11049 | else | |
11050 | cat > conftest.$ac_ext <<EOF | |
3379ed37 | 11051 | #line 11052 "configure" |
1f8ae82f | 11052 | #include "confdefs.h" |
698dcdb6 VZ |
11053 | #include <$ac_hdr> |
11054 | EOF | |
11055 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3379ed37 | 11056 | { (eval echo configure:11057: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11057 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11058 | if test -z "$ac_err"; then | |
11059 | rm -rf conftest* | |
11060 | eval "ac_cv_header_$ac_safe=yes" | |
1f8ae82f | 11061 | else |
698dcdb6 VZ |
11062 | echo "$ac_err" >&5 |
11063 | echo "configure: failed program was:" >&5 | |
1f8ae82f | 11064 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11065 | rm -rf conftest* |
11066 | eval "ac_cv_header_$ac_safe=no" | |
1f8ae82f | 11067 | fi |
698dcdb6 | 11068 | rm -f conftest* |
1f8ae82f | 11069 | fi |
698dcdb6 VZ |
11070 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11071 | echo "$ac_t""yes" 1>&6 | |
11072 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11073 | cat >> confdefs.h <<EOF | |
11074 | #define $ac_tr_hdr 1 | |
1f8ae82f | 11075 | EOF |
698dcdb6 VZ |
11076 | |
11077 | else | |
11078 | echo "$ac_t""no" 1>&6 | |
1f8ae82f GD |
11079 | fi |
11080 | done | |
11081 | ||
698dcdb6 | 11082 | |
73fd4a60 VZ |
11083 | if test "$wxUSE_GUI" = "yes"; then |
11084 | if test "$wxUSE_UNIX" = "yes"; then | |
698dcdb6 | 11085 | for ac_hdr in X11/XKBlib.h |
10f2d63a | 11086 | do |
698dcdb6 VZ |
11087 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11088 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3379ed37 | 11089 | echo "configure:11090: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
11090 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11091 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11092 | else | |
11093 | cat > conftest.$ac_ext <<EOF | |
3379ed37 | 11094 | #line 11095 "configure" |
10f2d63a | 11095 | #include "confdefs.h" |
698dcdb6 VZ |
11096 | #include <$ac_hdr> |
11097 | EOF | |
11098 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3379ed37 | 11099 | { (eval echo configure:11100: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11100 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11101 | if test -z "$ac_err"; then | |
11102 | rm -rf conftest* | |
11103 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 11104 | else |
698dcdb6 VZ |
11105 | echo "$ac_err" >&5 |
11106 | echo "configure: failed program was:" >&5 | |
10f2d63a | 11107 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11108 | rm -rf conftest* |
11109 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 11110 | fi |
698dcdb6 | 11111 | rm -f conftest* |
10f2d63a | 11112 | fi |
698dcdb6 VZ |
11113 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11114 | echo "$ac_t""yes" 1>&6 | |
11115 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11116 | cat >> confdefs.h <<EOF | |
11117 | #define $ac_tr_hdr 1 | |
10f2d63a | 11118 | EOF |
698dcdb6 VZ |
11119 | |
11120 | else | |
11121 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
11122 | fi |
11123 | done | |
11124 | ||
73fd4a60 | 11125 | fi |
10f2d63a VZ |
11126 | fi |
11127 | ||
698dcdb6 VZ |
11128 | |
11129 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | |
3379ed37 | 11130 | echo "configure:11131: checking for ANSI C header files" >&5 |
698dcdb6 VZ |
11131 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
11132 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11133 | else |
698dcdb6 | 11134 | cat > conftest.$ac_ext <<EOF |
3379ed37 | 11135 | #line 11136 "configure" |
10f2d63a VZ |
11136 | #include "confdefs.h" |
11137 | #include <stdlib.h> | |
11138 | #include <stdarg.h> | |
11139 | #include <string.h> | |
11140 | #include <float.h> | |
698dcdb6 VZ |
11141 | EOF |
11142 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3379ed37 | 11143 | { (eval echo configure:11144: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11144 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11145 | if test -z "$ac_err"; then | |
11146 | rm -rf conftest* | |
10f2d63a VZ |
11147 | ac_cv_header_stdc=yes |
11148 | else | |
698dcdb6 VZ |
11149 | echo "$ac_err" >&5 |
11150 | echo "configure: failed program was:" >&5 | |
10f2d63a | 11151 | cat conftest.$ac_ext >&5 |
698dcdb6 | 11152 | rm -rf conftest* |
10f2d63a VZ |
11153 | ac_cv_header_stdc=no |
11154 | fi | |
698dcdb6 | 11155 | rm -f conftest* |
10f2d63a VZ |
11156 | |
11157 | if test $ac_cv_header_stdc = yes; then | |
11158 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
698dcdb6 | 11159 | cat > conftest.$ac_ext <<EOF |
3379ed37 | 11160 | #line 11161 "configure" |
10f2d63a VZ |
11161 | #include "confdefs.h" |
11162 | #include <string.h> | |
698dcdb6 | 11163 | EOF |
10f2d63a VZ |
11164 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
11165 | egrep "memchr" >/dev/null 2>&1; then | |
11166 | : | |
11167 | else | |
698dcdb6 | 11168 | rm -rf conftest* |
10f2d63a VZ |
11169 | ac_cv_header_stdc=no |
11170 | fi | |
11171 | rm -f conftest* | |
11172 | ||
11173 | fi | |
11174 | ||
11175 | if test $ac_cv_header_stdc = yes; then | |
11176 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
698dcdb6 | 11177 | cat > conftest.$ac_ext <<EOF |
3379ed37 | 11178 | #line 11179 "configure" |
10f2d63a VZ |
11179 | #include "confdefs.h" |
11180 | #include <stdlib.h> | |
698dcdb6 | 11181 | EOF |
10f2d63a VZ |
11182 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
11183 | egrep "free" >/dev/null 2>&1; then | |
11184 | : | |
11185 | else | |
698dcdb6 | 11186 | rm -rf conftest* |
10f2d63a VZ |
11187 | ac_cv_header_stdc=no |
11188 | fi | |
11189 | rm -f conftest* | |
11190 | ||
11191 | fi | |
11192 | ||
11193 | if test $ac_cv_header_stdc = yes; then | |
11194 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
698dcdb6 | 11195 | if test "$cross_compiling" = yes; then |
10f2d63a VZ |
11196 | : |
11197 | else | |
698dcdb6 | 11198 | cat > conftest.$ac_ext <<EOF |
3379ed37 | 11199 | #line 11200 "configure" |
10f2d63a VZ |
11200 | #include "confdefs.h" |
11201 | #include <ctype.h> | |
698dcdb6 VZ |
11202 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
11203 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
1e487827 | 11204 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
698dcdb6 VZ |
11205 | int main () { int i; for (i = 0; i < 256; i++) |
11206 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
11207 | exit (0); } | |
11208 | ||
11209 | EOF | |
3379ed37 | 11210 | if { (eval echo configure:11211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 11211 | then |
10f2d63a VZ |
11212 | : |
11213 | else | |
698dcdb6 VZ |
11214 | echo "configure: failed program was:" >&5 |
11215 | cat conftest.$ac_ext >&5 | |
11216 | rm -fr conftest* | |
11217 | ac_cv_header_stdc=no | |
10f2d63a | 11218 | fi |
698dcdb6 | 11219 | rm -fr conftest* |
10f2d63a | 11220 | fi |
698dcdb6 | 11221 | |
10f2d63a VZ |
11222 | fi |
11223 | fi | |
1e487827 | 11224 | |
698dcdb6 VZ |
11225 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
11226 | if test $ac_cv_header_stdc = yes; then | |
11227 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11228 | #define STDC_HEADERS 1 |
11229 | EOF | |
11230 | ||
11231 | fi | |
11232 | ||
698dcdb6 | 11233 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
3379ed37 | 11234 | echo "configure:11235: checking for mode_t" >&5 |
698dcdb6 VZ |
11235 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
11236 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 11237 | else |
698dcdb6 | 11238 | cat > conftest.$ac_ext <<EOF |
3379ed37 | 11239 | #line 11240 "configure" |
1e487827 | 11240 | #include "confdefs.h" |
698dcdb6 VZ |
11241 | #include <sys/types.h> |
11242 | #if STDC_HEADERS | |
11243 | #include <stdlib.h> | |
11244 | #include <stddef.h> | |
11245 | #endif | |
11246 | EOF | |
11247 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11248 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
11249 | rm -rf conftest* | |
10f2d63a VZ |
11250 | ac_cv_type_mode_t=yes |
11251 | else | |
698dcdb6 VZ |
11252 | rm -rf conftest* |
11253 | ac_cv_type_mode_t=no | |
703e0a69 | 11254 | fi |
698dcdb6 | 11255 | rm -f conftest* |
1e487827 | 11256 | |
698dcdb6 VZ |
11257 | fi |
11258 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 | |
11259 | if test $ac_cv_type_mode_t = no; then | |
11260 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11261 | #define mode_t int |
11262 | EOF | |
11263 | ||
11264 | fi | |
11265 | ||
698dcdb6 | 11266 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 |
3379ed37 | 11267 | echo "configure:11268: checking for off_t" >&5 |
698dcdb6 VZ |
11268 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
11269 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11270 | else |
698dcdb6 | 11271 | cat > conftest.$ac_ext <<EOF |
3379ed37 | 11272 | #line 11273 "configure" |
10f2d63a | 11273 | #include "confdefs.h" |
698dcdb6 VZ |
11274 | #include <sys/types.h> |
11275 | #if STDC_HEADERS | |
11276 | #include <stdlib.h> | |
11277 | #include <stddef.h> | |
11278 | #endif | |
11279 | EOF | |
11280 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11281 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
11282 | rm -rf conftest* | |
10f2d63a VZ |
11283 | ac_cv_type_off_t=yes |
11284 | else | |
698dcdb6 VZ |
11285 | rm -rf conftest* |
11286 | ac_cv_type_off_t=no | |
703e0a69 | 11287 | fi |
698dcdb6 | 11288 | rm -f conftest* |
1e487827 | 11289 | |
698dcdb6 VZ |
11290 | fi |
11291 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
11292 | if test $ac_cv_type_off_t = no; then | |
11293 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11294 | #define off_t long |
11295 | EOF | |
11296 | ||
11297 | fi | |
11298 | ||
698dcdb6 | 11299 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
3379ed37 | 11300 | echo "configure:11301: checking for pid_t" >&5 |
698dcdb6 VZ |
11301 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
11302 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11303 | else |
698dcdb6 | 11304 | cat > conftest.$ac_ext <<EOF |
3379ed37 | 11305 | #line 11306 "configure" |
10f2d63a | 11306 | #include "confdefs.h" |
698dcdb6 VZ |
11307 | #include <sys/types.h> |
11308 | #if STDC_HEADERS | |
11309 | #include <stdlib.h> | |
11310 | #include <stddef.h> | |
11311 | #endif | |
11312 | EOF | |
11313 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11314 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
11315 | rm -rf conftest* | |
10f2d63a VZ |
11316 | ac_cv_type_pid_t=yes |
11317 | else | |
698dcdb6 VZ |
11318 | rm -rf conftest* |
11319 | ac_cv_type_pid_t=no | |
703e0a69 | 11320 | fi |
698dcdb6 | 11321 | rm -f conftest* |
1e487827 | 11322 | |
698dcdb6 VZ |
11323 | fi |
11324 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
11325 | if test $ac_cv_type_pid_t = no; then | |
11326 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11327 | #define pid_t int |
11328 | EOF | |
11329 | ||
11330 | fi | |
11331 | ||
698dcdb6 | 11332 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
3379ed37 | 11333 | echo "configure:11334: checking for size_t" >&5 |
698dcdb6 VZ |
11334 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
11335 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11336 | else |
698dcdb6 | 11337 | cat > conftest.$ac_ext <<EOF |
3379ed37 | 11338 | #line 11339 "configure" |
10f2d63a | 11339 | #include "confdefs.h" |
698dcdb6 VZ |
11340 | #include <sys/types.h> |
11341 | #if STDC_HEADERS | |
11342 | #include <stdlib.h> | |
11343 | #include <stddef.h> | |
11344 | #endif | |
11345 | EOF | |
11346 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11347 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
11348 | rm -rf conftest* | |
10f2d63a VZ |
11349 | ac_cv_type_size_t=yes |
11350 | else | |
698dcdb6 VZ |
11351 | rm -rf conftest* |
11352 | ac_cv_type_size_t=no | |
703e0a69 | 11353 | fi |
698dcdb6 | 11354 | rm -f conftest* |
1e487827 | 11355 | |
698dcdb6 VZ |
11356 | fi |
11357 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
11358 | if test $ac_cv_type_size_t = no; then | |
11359 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11360 | #define size_t unsigned |
11361 | EOF | |
11362 | ||
11363 | fi | |
11364 | ||
698dcdb6 | 11365 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
3379ed37 | 11366 | echo "configure:11367: checking for uid_t in sys/types.h" >&5 |
698dcdb6 VZ |
11367 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
11368 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11369 | else |
698dcdb6 | 11370 | cat > conftest.$ac_ext <<EOF |
3379ed37 | 11371 | #line 11372 "configure" |
10f2d63a VZ |
11372 | #include "confdefs.h" |
11373 | #include <sys/types.h> | |
698dcdb6 | 11374 | EOF |
10f2d63a VZ |
11375 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
11376 | egrep "uid_t" >/dev/null 2>&1; then | |
698dcdb6 | 11377 | rm -rf conftest* |
10f2d63a VZ |
11378 | ac_cv_type_uid_t=yes |
11379 | else | |
698dcdb6 | 11380 | rm -rf conftest* |
10f2d63a VZ |
11381 | ac_cv_type_uid_t=no |
11382 | fi | |
11383 | rm -f conftest* | |
11384 | ||
11385 | fi | |
1e487827 | 11386 | |
698dcdb6 VZ |
11387 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
11388 | if test $ac_cv_type_uid_t = no; then | |
11389 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11390 | #define uid_t int |
11391 | EOF | |
11392 | ||
698dcdb6 | 11393 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
11394 | #define gid_t int |
11395 | EOF | |
11396 | ||
11397 | fi | |
11398 | ||
1e487827 | 11399 | |
698dcdb6 | 11400 | echo $ac_n "checking for wchar_t""... $ac_c" 1>&6 |
3379ed37 | 11401 | echo "configure:11402: checking for wchar_t" >&5 |
698dcdb6 VZ |
11402 | if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then |
11403 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11404 | else | |
11405 | ||
11406 | cat > conftest.$ac_ext <<EOF | |
3379ed37 | 11407 | #line 11408 "configure" |
0046ff7c VS |
11408 | #include "confdefs.h" |
11409 | #include <wchar.h> | |
698dcdb6 | 11410 | int main() { |
0046ff7c | 11411 | |
d836ee96 VZ |
11412 | wchar_t wc, *ws; |
11413 | wc = L'a'; | |
11414 | ws = L"Hello, world!"; | |
698dcdb6 VZ |
11415 | |
11416 | ; return 0; } | |
11417 | EOF | |
3379ed37 | 11418 | if { (eval echo configure:11419: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 11419 | rm -rf conftest* |
1f8ae82f GD |
11420 | wx_cv_type_wchar_t=yes |
11421 | else | |
698dcdb6 VZ |
11422 | echo "configure: failed program was:" >&5 |
11423 | cat conftest.$ac_ext >&5 | |
11424 | rm -rf conftest* | |
11425 | cat > conftest.$ac_ext <<EOF | |
3379ed37 | 11426 | #line 11427 "configure" |
1f8ae82f GD |
11427 | #include "confdefs.h" |
11428 | #include <stdlib.h> | |
698dcdb6 | 11429 | int main() { |
1f8ae82f | 11430 | |
d836ee96 VZ |
11431 | wchar_t wc, *ws; |
11432 | wc = L'a'; | |
11433 | ws = L"Hello, world!"; | |
698dcdb6 VZ |
11434 | |
11435 | ; return 0; } | |
11436 | EOF | |
3379ed37 | 11437 | if { (eval echo configure:11438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 11438 | rm -rf conftest* |
0046ff7c VS |
11439 | wx_cv_type_wchar_t=yes |
11440 | else | |
698dcdb6 VZ |
11441 | echo "configure: failed program was:" >&5 |
11442 | cat conftest.$ac_ext >&5 | |
11443 | rm -rf conftest* | |
11444 | wx_cv_type_wchar_t=no | |
0046ff7c | 11445 | fi |
698dcdb6 | 11446 | rm -f conftest* |
d836ee96 | 11447 | |
6232543b | 11448 | fi |
698dcdb6 | 11449 | rm -f conftest* |
703e0a69 | 11450 | |
1e487827 | 11451 | fi |
698dcdb6 VZ |
11452 | |
11453 | echo "$ac_t""$wx_cv_type_wchar_t" 1>&6 | |
d836ee96 VZ |
11454 | |
11455 | if test "$wx_cv_type_wchar_t" = "yes"; then | |
698dcdb6 | 11456 | cat >> confdefs.h <<\EOF |
0046ff7c VS |
11457 | #define wxUSE_WCHAR_T 1 |
11458 | EOF | |
11459 | ||
11460 | fi | |
11461 | ||
19af3b06 VZ |
11462 | |
11463 | ac_ext=C | |
11464 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11465 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11466 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11467 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11468 | cross_compiling=$ac_cv_prog_cxx_cross | |
11469 | ||
d836ee96 | 11470 | echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6 |
3379ed37 | 11471 | echo "configure:11472: checking if size_t is unsigned int" >&5 |
d836ee96 VZ |
11472 | if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then |
11473 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11474 | else | |
dd2c8b7c | 11475 | cat > conftest.$ac_ext <<EOF |
3379ed37 | 11476 | #line 11477 "configure" |
d836ee96 VZ |
11477 | #include "confdefs.h" |
11478 | #include <stddef.h> | |
11479 | int main() { | |
11480 | ||
dd2c8b7c VZ |
11481 | return 0; } |
11482 | ||
d836ee96 | 11483 | struct Foo { void foo(size_t); void foo(unsigned int); }; |
dd2c8b7c VZ |
11484 | |
11485 | int bar() { | |
d836ee96 VZ |
11486 | |
11487 | ; return 0; } | |
11488 | EOF | |
3379ed37 | 11489 | if { (eval echo configure:11490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
d836ee96 VZ |
11490 | rm -rf conftest* |
11491 | wx_cv_size_t_is_uint=no | |
11492 | else | |
11493 | echo "configure: failed program was:" >&5 | |
11494 | cat conftest.$ac_ext >&5 | |
11495 | rm -rf conftest* | |
11496 | wx_cv_size_t_is_uint=yes | |
11497 | ||
11498 | fi | |
11499 | rm -f conftest* | |
11500 | ||
11501 | fi | |
11502 | ||
11503 | echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6 | |
11504 | ||
11505 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
11506 | cat >> confdefs.h <<\EOF | |
11507 | #define wxSIZE_T_IS_UINT 1 | |
11508 | EOF | |
11509 | ||
11510 | else | |
11511 | echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6 | |
3379ed37 | 11512 | echo "configure:11513: checking if size_t is unsigned long" >&5 |
d836ee96 VZ |
11513 | if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then |
11514 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11515 | else | |
11516 | cat > conftest.$ac_ext <<EOF | |
3379ed37 | 11517 | #line 11518 "configure" |
d836ee96 VZ |
11518 | #include "confdefs.h" |
11519 | #include <stddef.h> | |
11520 | int main() { | |
11521 | ||
dd2c8b7c VZ |
11522 | return 0; } |
11523 | ||
d836ee96 | 11524 | struct Foo { void foo(size_t); void foo(unsigned long); }; |
dd2c8b7c VZ |
11525 | |
11526 | int bar() { | |
d836ee96 VZ |
11527 | |
11528 | ; return 0; } | |
11529 | EOF | |
3379ed37 | 11530 | if { (eval echo configure:11531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
d836ee96 VZ |
11531 | rm -rf conftest* |
11532 | wx_cv_size_t_is_ulong=no | |
11533 | else | |
11534 | echo "configure: failed program was:" >&5 | |
11535 | cat conftest.$ac_ext >&5 | |
11536 | rm -rf conftest* | |
11537 | wx_cv_size_t_is_ulong=yes | |
11538 | ||
11539 | fi | |
11540 | rm -f conftest* | |
11541 | ||
11542 | fi | |
11543 | ||
11544 | echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6 | |
11545 | ||
11546 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
11547 | cat >> confdefs.h <<\EOF | |
11548 | #define wxSIZE_T_IS_ULONG 1 | |
11549 | EOF | |
11550 | ||
11551 | fi | |
11552 | fi | |
11553 | ||
19af3b06 VZ |
11554 | ac_ext=c |
11555 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11556 | ac_cpp='$CPP $CPPFLAGS' | |
11557 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11558 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11559 | cross_compiling=$ac_cv_prog_cc_cross | |
11560 | ||
11561 | ||
1e487827 | 11562 | |
698dcdb6 | 11563 | echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6 |
3379ed37 | 11564 | echo "configure:11565: checking for pw_gecos in struct passwd" >&5 |
698dcdb6 VZ |
11565 | if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then |
11566 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11567 | else | |
11568 | ||
11569 | cat > conftest.$ac_ext <<EOF | |
3379ed37 | 11570 | #line 11571 "configure" |
b12915c1 VZ |
11571 | #include "confdefs.h" |
11572 | #include <pwd.h> | |
698dcdb6 | 11573 | int main() { |
b12915c1 VZ |
11574 | |
11575 | char *p; | |
11576 | struct passwd *pw; | |
11577 | p = pw->pw_gecos; | |
698dcdb6 VZ |
11578 | |
11579 | ; return 0; } | |
11580 | EOF | |
3379ed37 | 11581 | if { (eval echo configure:11582: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
11582 | rm -rf conftest* |
11583 | ||
b12915c1 | 11584 | wx_cv_struct_pw_gecos=yes |
698dcdb6 | 11585 | |
b12915c1 | 11586 | else |
698dcdb6 VZ |
11587 | echo "configure: failed program was:" >&5 |
11588 | cat conftest.$ac_ext >&5 | |
11589 | rm -rf conftest* | |
11590 | ||
b12915c1 | 11591 | wx_cv_struct_pw_gecos=no |
698dcdb6 VZ |
11592 | |
11593 | ||
6232543b | 11594 | fi |
698dcdb6 VZ |
11595 | rm -f conftest* |
11596 | ||
703e0a69 | 11597 | |
1e487827 | 11598 | fi |
698dcdb6 VZ |
11599 | |
11600 | echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6 | |
b12915c1 | 11601 | |
bd3277fe | 11602 | if test "$wx_cv_struct_pw_gecos" = "yes"; then |
698dcdb6 | 11603 | cat >> confdefs.h <<\EOF |
bd3277fe VZ |
11604 | #define HAVE_PW_GECOS 1 |
11605 | EOF | |
11606 | ||
11607 | fi | |
11608 | ||
698dcdb6 VZ |
11609 | |
11610 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
3379ed37 | 11611 | echo "configure:11612: checking for working const" >&5 |
698dcdb6 VZ |
11612 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
11613 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11614 | else |
698dcdb6 | 11615 | cat > conftest.$ac_ext <<EOF |
3379ed37 | 11616 | #line 11617 "configure" |
10f2d63a | 11617 | #include "confdefs.h" |
698dcdb6 VZ |
11618 | |
11619 | int main() { | |
11620 | ||
11621 | /* Ultrix mips cc rejects this. */ | |
11622 | typedef int charset[2]; const charset x; | |
11623 | /* SunOS 4.1.1 cc rejects this. */ | |
11624 | char const *const *ccp; | |
11625 | char **p; | |
11626 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
11627 | struct point {int x, y;}; | |
11628 | static struct point const zero = {0,0}; | |
11629 | /* AIX XL C 1.02.0.0 rejects this. | |
11630 | It does not let you subtract one const X* pointer from another in an arm | |
11631 | of an if-expression whose if-part is not a constant expression */ | |
11632 | const char *g = "string"; | |
11633 | ccp = &g + (g ? g-g : 0); | |
11634 | /* HPUX 7.0 cc rejects these. */ | |
11635 | ++ccp; | |
11636 | p = (char**) ccp; | |
11637 | ccp = (char const *const *) p; | |
11638 | { /* SCO 3.2v4 cc rejects this. */ | |
11639 | char *t; | |
11640 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
11641 | ||
11642 | *t++ = 0; | |
10f2d63a | 11643 | } |
698dcdb6 VZ |
11644 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
11645 | int x[] = {25, 17}; | |
11646 | const int *foo = &x[0]; | |
11647 | ++foo; | |
703e0a69 | 11648 | } |
698dcdb6 VZ |
11649 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
11650 | typedef const int *iptr; | |
11651 | iptr p = 0; | |
11652 | ++p; | |
6232543b | 11653 | } |
698dcdb6 VZ |
11654 | { /* AIX XL C 1.02.0.0 rejects this saying |
11655 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
11656 | struct s { int j; const int *ap[3]; }; | |
11657 | struct s *b; b->j = 5; | |
1e487827 | 11658 | } |
698dcdb6 VZ |
11659 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
11660 | const int foo = 10; | |
11661 | } | |
11662 | ||
11663 | ; return 0; } | |
11664 | EOF | |
3379ed37 | 11665 | if { (eval echo configure:11666: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 11666 | rm -rf conftest* |
10f2d63a VZ |
11667 | ac_cv_c_const=yes |
11668 | else | |
698dcdb6 VZ |
11669 | echo "configure: failed program was:" >&5 |
11670 | cat conftest.$ac_ext >&5 | |
11671 | rm -rf conftest* | |
11672 | ac_cv_c_const=no | |
10f2d63a | 11673 | fi |
698dcdb6 | 11674 | rm -f conftest* |
10f2d63a | 11675 | fi |
1e487827 | 11676 | |
698dcdb6 VZ |
11677 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
11678 | if test $ac_cv_c_const = no; then | |
11679 | cat >> confdefs.h <<\EOF | |
11680 | #define const | |
10f2d63a VZ |
11681 | EOF |
11682 | ||
11683 | fi | |
11684 | ||
698dcdb6 | 11685 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
3379ed37 | 11686 | echo "configure:11687: checking for inline" >&5 |
698dcdb6 VZ |
11687 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
11688 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
11689 | else |
11690 | ac_cv_c_inline=no | |
11691 | for ac_kw in inline __inline__ __inline; do | |
698dcdb6 | 11692 | cat > conftest.$ac_ext <<EOF |
3379ed37 | 11693 | #line 11694 "configure" |
10f2d63a VZ |
11694 | #include "confdefs.h" |
11695 | ||
698dcdb6 VZ |
11696 | int main() { |
11697 | } $ac_kw foo() { | |
11698 | ; return 0; } | |
11699 | EOF | |
3379ed37 | 11700 | if { (eval echo configure:11701: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 11701 | rm -rf conftest* |
10f2d63a VZ |
11702 | ac_cv_c_inline=$ac_kw; break |
11703 | else | |
698dcdb6 VZ |
11704 | echo "configure: failed program was:" >&5 |
11705 | cat conftest.$ac_ext >&5 | |
10f2d63a | 11706 | fi |
698dcdb6 | 11707 | rm -f conftest* |
10f2d63a VZ |
11708 | done |
11709 | ||
11710 | fi | |
698dcdb6 VZ |
11711 | |
11712 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | |
11713 | case "$ac_cv_c_inline" in | |
10f2d63a | 11714 | inline | yes) ;; |
698dcdb6 VZ |
11715 | no) cat >> confdefs.h <<\EOF |
11716 | #define inline | |
10f2d63a VZ |
11717 | EOF |
11718 | ;; | |
698dcdb6 | 11719 | *) cat >> confdefs.h <<EOF |
10f2d63a VZ |
11720 | #define inline $ac_cv_c_inline |
11721 | EOF | |
11722 | ;; | |
11723 | esac | |
11724 | ||
698dcdb6 VZ |
11725 | |
11726 | echo $ac_n "checking size of char""... $ac_c" 1>&6 | |
3379ed37 | 11727 | echo "configure:11728: checking size of char" >&5 |
698dcdb6 VZ |
11728 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
11729 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6232543b | 11730 | else |
1e487827 | 11731 | if test "$cross_compiling" = yes; then |
698dcdb6 | 11732 | ac_cv_sizeof_char=1 |
1e487827 | 11733 | else |
698dcdb6 | 11734 | cat > conftest.$ac_ext <<EOF |
3379ed37 | 11735 | #line 11736 "configure" |
1e487827 | 11736 | #include "confdefs.h" |
698dcdb6 VZ |
11737 | #include <stdio.h> |
11738 | main() | |
1e487827 | 11739 | { |
698dcdb6 VZ |
11740 | FILE *f=fopen("conftestval", "w"); |
11741 | if (!f) exit(1); | |
11742 | fprintf(f, "%d\n", sizeof(char)); | |
11743 | exit(0); | |
1e487827 | 11744 | } |
698dcdb6 | 11745 | EOF |
3379ed37 | 11746 | if { (eval echo configure:11747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
11747 | then |
11748 | ac_cv_sizeof_char=`cat conftestval` | |
1e487827 | 11749 | else |
698dcdb6 VZ |
11750 | echo "configure: failed program was:" >&5 |
11751 | cat conftest.$ac_ext >&5 | |
11752 | rm -fr conftest* | |
1e487827 VS |
11753 | ac_cv_sizeof_char=0 |
11754 | fi | |
698dcdb6 | 11755 | rm -fr conftest* |
1e487827 | 11756 | fi |
10f2d63a | 11757 | |
1e487827 | 11758 | fi |
698dcdb6 VZ |
11759 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 |
11760 | cat >> confdefs.h <<EOF | |
11761 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
1e487827 | 11762 | EOF |
6232543b | 11763 | |
703e0a69 | 11764 | |
698dcdb6 | 11765 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
3379ed37 | 11766 | echo "configure:11767: checking size of short" >&5 |
698dcdb6 VZ |
11767 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
11768 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 11769 | else |
1e487827 | 11770 | if test "$cross_compiling" = yes; then |
698dcdb6 | 11771 | ac_cv_sizeof_short=2 |
1e487827 | 11772 | else |
698dcdb6 | 11773 | cat > conftest.$ac_ext <<EOF |
3379ed37 | 11774 | #line 11775 "configure" |
1e487827 | 11775 | #include "confdefs.h" |
698dcdb6 VZ |
11776 | #include <stdio.h> |
11777 | main() | |
1e487827 | 11778 | { |
698dcdb6 VZ |
11779 | FILE *f=fopen("conftestval", "w"); |
11780 | if (!f) exit(1); | |
11781 | fprintf(f, "%d\n", sizeof(short)); | |
11782 | exit(0); | |
1e487827 | 11783 | } |
698dcdb6 | 11784 | EOF |
3379ed37 | 11785 | if { (eval echo configure:11786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
11786 | then |
11787 | ac_cv_sizeof_short=`cat conftestval` | |
1e487827 | 11788 | else |
698dcdb6 VZ |
11789 | echo "configure: failed program was:" >&5 |
11790 | cat conftest.$ac_ext >&5 | |
11791 | rm -fr conftest* | |
11792 | ac_cv_sizeof_short=0 | |
1e487827 | 11793 | fi |
698dcdb6 | 11794 | rm -fr conftest* |
1e487827 | 11795 | fi |
698dcdb6 | 11796 | |
1e487827 | 11797 | fi |
698dcdb6 VZ |
11798 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
11799 | cat >> confdefs.h <<EOF | |
11800 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
11801 | EOF | |
11802 | ||
11803 | ||
11804 | echo $ac_n "checking size of int *""... $ac_c" 1>&6 | |
3379ed37 | 11805 | echo "configure:11806: checking size of int *" >&5 |
698dcdb6 VZ |
11806 | if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then |
11807 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
11808 | else |
11809 | if test "$cross_compiling" = yes; then | |
698dcdb6 | 11810 | ac_cv_sizeof_int_p=4 |
10f2d63a | 11811 | else |
698dcdb6 | 11812 | cat > conftest.$ac_ext <<EOF |
3379ed37 | 11813 | #line 11814 "configure" |
10f2d63a | 11814 | #include "confdefs.h" |
698dcdb6 VZ |
11815 | #include <stdio.h> |
11816 | main() | |
10f2d63a | 11817 | { |
698dcdb6 VZ |
11818 | FILE *f=fopen("conftestval", "w"); |
11819 | if (!f) exit(1); | |
11820 | fprintf(f, "%d\n", sizeof(int *)); | |
11821 | exit(0); | |
10f2d63a | 11822 | } |
698dcdb6 | 11823 | EOF |
3379ed37 | 11824 | if { (eval echo configure:11825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
11825 | then |
11826 | ac_cv_sizeof_int_p=`cat conftestval` | |
10f2d63a | 11827 | else |
698dcdb6 VZ |
11828 | echo "configure: failed program was:" >&5 |
11829 | cat conftest.$ac_ext >&5 | |
11830 | rm -fr conftest* | |
11831 | ac_cv_sizeof_int_p=0 | |
6232543b | 11832 | fi |
698dcdb6 | 11833 | rm -fr conftest* |
1e487827 | 11834 | fi |
698dcdb6 | 11835 | |
1e487827 | 11836 | fi |
698dcdb6 VZ |
11837 | echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6 |
11838 | cat >> confdefs.h <<EOF | |
11839 | #define SIZEOF_INT_P $ac_cv_sizeof_int_p | |
10f2d63a VZ |
11840 | EOF |
11841 | ||
698dcdb6 VZ |
11842 | |
11843 | echo $ac_n "checking size of int""... $ac_c" 1>&6 | |
3379ed37 | 11844 | echo "configure:11845: checking size of int" >&5 |
698dcdb6 VZ |
11845 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
11846 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
11847 | else |
11848 | if test "$cross_compiling" = yes; then | |
698dcdb6 | 11849 | ac_cv_sizeof_int=4 |
703e0a69 | 11850 | else |
698dcdb6 | 11851 | cat > conftest.$ac_ext <<EOF |
3379ed37 | 11852 | #line 11853 "configure" |
1e487827 | 11853 | #include "confdefs.h" |
698dcdb6 VZ |
11854 | #include <stdio.h> |
11855 | main() | |
1e487827 | 11856 | { |
698dcdb6 VZ |
11857 | FILE *f=fopen("conftestval", "w"); |
11858 | if (!f) exit(1); | |
11859 | fprintf(f, "%d\n", sizeof(int)); | |
11860 | exit(0); | |
1e487827 | 11861 | } |
698dcdb6 | 11862 | EOF |
3379ed37 | 11863 | if { (eval echo configure:11864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
11864 | then |
11865 | ac_cv_sizeof_int=`cat conftestval` | |
11866 | else | |
11867 | echo "configure: failed program was:" >&5 | |
11868 | cat conftest.$ac_ext >&5 | |
11869 | rm -fr conftest* | |
11870 | ac_cv_sizeof_int=0 | |
703e0a69 | 11871 | fi |
698dcdb6 VZ |
11872 | rm -fr conftest* |
11873 | fi | |
11874 | ||
11875 | fi | |
11876 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | |
11877 | cat >> confdefs.h <<EOF | |
11878 | #define SIZEOF_INT $ac_cv_sizeof_int | |
11879 | EOF | |
11880 | ||
11881 | ||
11882 | echo $ac_n "checking size of long""... $ac_c" 1>&6 | |
3379ed37 | 11883 | echo "configure:11884: checking size of long" >&5 |
698dcdb6 VZ |
11884 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
11885 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
11886 | else |
11887 | if test "$cross_compiling" = yes; then | |
698dcdb6 | 11888 | ac_cv_sizeof_long=4 |
10f2d63a | 11889 | else |
698dcdb6 | 11890 | cat > conftest.$ac_ext <<EOF |
3379ed37 | 11891 | #line 11892 "configure" |
10f2d63a | 11892 | #include "confdefs.h" |
698dcdb6 VZ |
11893 | #include <stdio.h> |
11894 | main() | |
10f2d63a | 11895 | { |
698dcdb6 VZ |
11896 | FILE *f=fopen("conftestval", "w"); |
11897 | if (!f) exit(1); | |
11898 | fprintf(f, "%d\n", sizeof(long)); | |
11899 | exit(0); | |
10f2d63a | 11900 | } |
698dcdb6 | 11901 | EOF |
3379ed37 | 11902 | if { (eval echo configure:11903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
11903 | then |
11904 | ac_cv_sizeof_long=`cat conftestval` | |
10f2d63a | 11905 | else |
698dcdb6 VZ |
11906 | echo "configure: failed program was:" >&5 |
11907 | cat conftest.$ac_ext >&5 | |
11908 | rm -fr conftest* | |
11909 | ac_cv_sizeof_long=0 | |
10f2d63a | 11910 | fi |
698dcdb6 | 11911 | rm -fr conftest* |
10f2d63a | 11912 | fi |
698dcdb6 | 11913 | |
10f2d63a | 11914 | fi |
698dcdb6 VZ |
11915 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 |
11916 | cat >> confdefs.h <<EOF | |
11917 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
11918 | EOF | |
11919 | ||
11920 | ||
11921 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
3379ed37 | 11922 | echo "configure:11923: checking size of long long" >&5 |
698dcdb6 VZ |
11923 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
11924 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11925 | else | |
11926 | if test "$cross_compiling" = yes; then | |
11927 | ac_cv_sizeof_long_long=0 | |
11928 | else | |
11929 | cat > conftest.$ac_ext <<EOF | |
3379ed37 | 11930 | #line 11931 "configure" |
698dcdb6 VZ |
11931 | #include "confdefs.h" |
11932 | #include <stdio.h> | |
11933 | main() | |
11934 | { | |
11935 | FILE *f=fopen("conftestval", "w"); | |
11936 | if (!f) exit(1); | |
11937 | fprintf(f, "%d\n", sizeof(long long)); | |
11938 | exit(0); | |
11939 | } | |
11940 | EOF | |
3379ed37 | 11941 | if { (eval echo configure:11942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
11942 | then |
11943 | ac_cv_sizeof_long_long=`cat conftestval` | |
6232543b | 11944 | else |
698dcdb6 VZ |
11945 | echo "configure: failed program was:" >&5 |
11946 | cat conftest.$ac_ext >&5 | |
11947 | rm -fr conftest* | |
6232543b VS |
11948 | ac_cv_sizeof_long_long=0 |
11949 | fi | |
698dcdb6 VZ |
11950 | rm -fr conftest* |
11951 | fi | |
11952 | ||
703e0a69 | 11953 | fi |
698dcdb6 VZ |
11954 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
11955 | cat >> confdefs.h <<EOF | |
10f2d63a VZ |
11956 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
11957 | EOF | |
11958 | ||
1e487827 | 11959 | |
698dcdb6 VZ |
11960 | |
11961 | echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6 | |
3379ed37 | 11962 | echo "configure:11963: checking size of wchar_t" >&5 |
698dcdb6 VZ |
11963 | if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then |
11964 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11965 | else | |
11966 | ||
b93d0d08 VS |
11967 | if test "$cross_compiling" = yes; then |
11968 | wx_cv_sizeof_wchar_t=4 | |
1e6feb95 | 11969 | |
b93d0d08 | 11970 | else |
698dcdb6 | 11971 | cat > conftest.$ac_ext <<EOF |
3379ed37 | 11972 | #line 11973 "configure" |
b93d0d08 VS |
11973 | #include "confdefs.h" |
11974 | ||
1e6feb95 VZ |
11975 | #ifdef HAVE_WCHAR_H |
11976 | # include <wchar.h> | |
11977 | #endif | |
11978 | #ifdef HAVE_STDLIB_H | |
11979 | # include <stdlib.h> | |
11980 | #endif | |
11981 | #include <stdio.h> | |
11982 | int main() | |
11983 | { | |
11984 | FILE *f=fopen("conftestval", "w"); | |
11985 | if (!f) exit(1); | |
11986 | fprintf(f, "%i", sizeof(wchar_t)); | |
11987 | exit(0); | |
11988 | } | |
698dcdb6 VZ |
11989 | |
11990 | EOF | |
3379ed37 | 11991 | if { (eval echo configure:11992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 11992 | then |
b93d0d08 VS |
11993 | wx_cv_sizeof_wchar_t=`cat conftestval` |
11994 | else | |
698dcdb6 VZ |
11995 | echo "configure: failed program was:" >&5 |
11996 | cat conftest.$ac_ext >&5 | |
11997 | rm -fr conftest* | |
11998 | wx_cv_sizeof_wchar_t=0 | |
b93d0d08 | 11999 | fi |
698dcdb6 | 12000 | rm -fr conftest* |
b93d0d08 VS |
12001 | fi |
12002 | ||
698dcdb6 | 12003 | |
b93d0d08 VS |
12004 | fi |
12005 | ||
698dcdb6 VZ |
12006 | echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6 |
12007 | ||
12008 | cat >> confdefs.h <<EOF | |
28c6addc | 12009 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t |
b93d0d08 VS |
12010 | EOF |
12011 | ||
698dcdb6 | 12012 | |
698dcdb6 | 12013 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
3379ed37 | 12014 | echo "configure:12015: checking whether byte ordering is bigendian" >&5 |
698dcdb6 VZ |
12015 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
12016 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
12017 | else |
12018 | ac_cv_c_bigendian=unknown | |
12019 | # See if sys/param.h defines the BYTE_ORDER macro. | |
698dcdb6 | 12020 | cat > conftest.$ac_ext <<EOF |
3379ed37 | 12021 | #line 12022 "configure" |
10f2d63a VZ |
12022 | #include "confdefs.h" |
12023 | #include <sys/types.h> | |
12024 | #include <sys/param.h> | |
698dcdb6 | 12025 | int main() { |
10f2d63a VZ |
12026 | |
12027 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
12028 | bogus endian macros | |
12029 | #endif | |
698dcdb6 VZ |
12030 | ; return 0; } |
12031 | EOF | |
3379ed37 | 12032 | if { (eval echo configure:12033: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 12033 | rm -rf conftest* |
10f2d63a | 12034 | # It does; now see whether it defined to BIG_ENDIAN or not. |
698dcdb6 | 12035 | cat > conftest.$ac_ext <<EOF |
3379ed37 | 12036 | #line 12037 "configure" |
10f2d63a VZ |
12037 | #include "confdefs.h" |
12038 | #include <sys/types.h> | |
12039 | #include <sys/param.h> | |
698dcdb6 | 12040 | int main() { |
10f2d63a VZ |
12041 | |
12042 | #if BYTE_ORDER != BIG_ENDIAN | |
12043 | not big endian | |
12044 | #endif | |
698dcdb6 VZ |
12045 | ; return 0; } |
12046 | EOF | |
3379ed37 | 12047 | if { (eval echo configure:12048: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 12048 | rm -rf conftest* |
10f2d63a VZ |
12049 | ac_cv_c_bigendian=yes |
12050 | else | |
698dcdb6 VZ |
12051 | echo "configure: failed program was:" >&5 |
12052 | cat conftest.$ac_ext >&5 | |
12053 | rm -rf conftest* | |
12054 | ac_cv_c_bigendian=no | |
10f2d63a | 12055 | fi |
698dcdb6 | 12056 | rm -f conftest* |
10f2d63a | 12057 | else |
698dcdb6 VZ |
12058 | echo "configure: failed program was:" >&5 |
12059 | cat conftest.$ac_ext >&5 | |
10f2d63a | 12060 | fi |
698dcdb6 | 12061 | rm -f conftest* |
10f2d63a VZ |
12062 | if test $ac_cv_c_bigendian = unknown; then |
12063 | if test "$cross_compiling" = yes; then | |
12064 | ac_cv_c_bigendian=unknown | |
12065 | else | |
698dcdb6 | 12066 | cat > conftest.$ac_ext <<EOF |
3379ed37 | 12067 | #line 12068 "configure" |
10f2d63a VZ |
12068 | #include "confdefs.h" |
12069 | main () { | |
12070 | /* Are we little or big endian? From Harbison&Steele. */ | |
12071 | union | |
12072 | { | |
12073 | long l; | |
12074 | char c[sizeof (long)]; | |
12075 | } u; | |
12076 | u.l = 1; | |
12077 | exit (u.c[sizeof (long) - 1] == 1); | |
12078 | } | |
698dcdb6 | 12079 | EOF |
3379ed37 | 12080 | if { (eval echo configure:12081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 12081 | then |
10f2d63a VZ |
12082 | ac_cv_c_bigendian=no |
12083 | else | |
698dcdb6 VZ |
12084 | echo "configure: failed program was:" >&5 |
12085 | cat conftest.$ac_ext >&5 | |
12086 | rm -fr conftest* | |
12087 | ac_cv_c_bigendian=yes | |
10f2d63a | 12088 | fi |
698dcdb6 | 12089 | rm -fr conftest* |
10f2d63a | 12090 | fi |
698dcdb6 | 12091 | |
10f2d63a VZ |
12092 | fi |
12093 | fi | |
698dcdb6 VZ |
12094 | |
12095 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | |
10f2d63a | 12096 | if test $ac_cv_c_bigendian = unknown; then |
698dcdb6 | 12097 | 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 |
12098 | fi |
12099 | if test $ac_cv_c_bigendian = yes; then | |
698dcdb6 | 12100 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
12101 | #define WORDS_BIGENDIAN 1 |
12102 | EOF | |
12103 | ||
12104 | fi | |
12105 | ||
698dcdb6 VZ |
12106 | |
12107 | ||
10f2d63a | 12108 | if test "$cross_compiling" = "yes"; then |
698dcdb6 | 12109 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
12110 | #define wxUSE_IOSTREAMH 1 |
12111 | EOF | |
12112 | ||
12113 | else | |
698dcdb6 VZ |
12114 | |
12115 | ac_ext=C | |
12116 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 12117 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
12118 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12119 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12120 | cross_compiling=$ac_cv_prog_cxx_cross | |
12121 | ||
703e0a69 | 12122 | |
698dcdb6 | 12123 | for ac_hdr in iostream |
10f2d63a | 12124 | do |
698dcdb6 VZ |
12125 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12126 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3379ed37 | 12127 | echo "configure:12128: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
12128 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12129 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12130 | else | |
12131 | cat > conftest.$ac_ext <<EOF | |
3379ed37 | 12132 | #line 12133 "configure" |
10f2d63a | 12133 | #include "confdefs.h" |
698dcdb6 VZ |
12134 | #include <$ac_hdr> |
12135 | EOF | |
12136 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3379ed37 | 12137 | { (eval echo configure:12138: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
12138 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12139 | if test -z "$ac_err"; then | |
12140 | rm -rf conftest* | |
12141 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 12142 | else |
698dcdb6 VZ |
12143 | echo "$ac_err" >&5 |
12144 | echo "configure: failed program was:" >&5 | |
10f2d63a | 12145 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
12146 | rm -rf conftest* |
12147 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 12148 | fi |
698dcdb6 | 12149 | rm -f conftest* |
10f2d63a | 12150 | fi |
698dcdb6 VZ |
12151 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12152 | echo "$ac_t""yes" 1>&6 | |
12153 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12154 | cat >> confdefs.h <<EOF | |
12155 | #define $ac_tr_hdr 1 | |
10f2d63a | 12156 | EOF |
698dcdb6 VZ |
12157 | |
12158 | else | |
12159 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
12160 | fi |
12161 | done | |
12162 | ||
698dcdb6 | 12163 | |
57fe5ed0 VZ |
12164 | if test "$ac_cv_header_iostream" = "yes" ; then |
12165 | : | |
12166 | else | |
698dcdb6 | 12167 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
12168 | #define wxUSE_IOSTREAMH 1 |
12169 | EOF | |
12170 | ||
10f2d63a VZ |
12171 | fi |
12172 | ||
12173 | ac_ext=c | |
698dcdb6 | 12174 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 12175 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
12176 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12177 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12178 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a VZ |
12179 | |
12180 | fi | |
12181 | ||
703e0a69 | 12182 | |
698dcdb6 VZ |
12183 | |
12184 | echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6 | |
3379ed37 | 12185 | echo "configure:12186: checking if C++ compiler supports bool" >&5 |
698dcdb6 VZ |
12186 | if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then |
12187 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12188 | else | |
12189 | ||
12190 | ||
12191 | ac_ext=C | |
12192 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 12193 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
12194 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12195 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12196 | cross_compiling=$ac_cv_prog_cxx_cross | |
10f2d63a | 12197 | |
698dcdb6 VZ |
12198 | |
12199 | cat > conftest.$ac_ext <<EOF | |
3379ed37 | 12200 | #line 12201 "configure" |
10f2d63a VZ |
12201 | #include "confdefs.h" |
12202 | ||
698dcdb6 VZ |
12203 | |
12204 | int main() { | |
10f2d63a VZ |
12205 | |
12206 | bool b = true; | |
12207 | ||
12208 | return 0; | |
698dcdb6 VZ |
12209 | |
12210 | ; return 0; } | |
12211 | EOF | |
3379ed37 | 12212 | if { (eval echo configure:12213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
12213 | rm -rf conftest* |
12214 | ||
10f2d63a | 12215 | wx_cv_cpp_bool=yes |
698dcdb6 | 12216 | |
10f2d63a | 12217 | else |
698dcdb6 VZ |
12218 | echo "configure: failed program was:" >&5 |
12219 | cat conftest.$ac_ext >&5 | |
12220 | rm -rf conftest* | |
12221 | ||
10f2d63a | 12222 | wx_cv_cpp_bool=no |
698dcdb6 VZ |
12223 | |
12224 | ||
10f2d63a | 12225 | fi |
698dcdb6 | 12226 | rm -f conftest* |
10f2d63a VZ |
12227 | |
12228 | ac_ext=c | |
698dcdb6 | 12229 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 12230 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
12231 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12232 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12233 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a | 12234 | |
698dcdb6 | 12235 | |
10f2d63a | 12236 | fi |
698dcdb6 VZ |
12237 | |
12238 | echo "$ac_t""$wx_cv_cpp_bool" 1>&6 | |
10f2d63a VZ |
12239 | |
12240 | if test "$wx_cv_cpp_bool" = "yes"; then | |
698dcdb6 | 12241 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
12242 | #define HAVE_BOOL 1 |
12243 | EOF | |
12244 | ||
12245 | fi | |
12246 | ||
1e487827 | 12247 | |
698dcdb6 | 12248 | |
698dcdb6 | 12249 | echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6 |
3379ed37 | 12250 | echo "configure:12251: checking for wcslen in -lc" >&5 |
698dcdb6 VZ |
12251 | ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'` |
12252 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12253 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12254 | else |
698dcdb6 | 12255 | ac_save_LIBS="$LIBS" |
10f2d63a | 12256 | LIBS="-lc $LIBS" |
698dcdb6 | 12257 | cat > conftest.$ac_ext <<EOF |
3379ed37 | 12258 | #line 12259 "configure" |
10f2d63a VZ |
12259 | #include "confdefs.h" |
12260 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12261 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12262 | builtin and then its argument prototype would still apply. */ |
12263 | char wcslen(); | |
12264 | ||
12265 | int main() { | |
12266 | wcslen() | |
12267 | ; return 0; } | |
12268 | EOF | |
3379ed37 | 12269 | if { (eval echo configure:12270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12270 | rm -rf conftest* |
12271 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12272 | else | |
12273 | echo "configure: failed program was:" >&5 | |
12274 | cat conftest.$ac_ext >&5 | |
12275 | rm -rf conftest* | |
12276 | eval "ac_cv_lib_$ac_lib_var=no" | |
12277 | fi | |
12278 | rm -f conftest* | |
12279 | LIBS="$ac_save_LIBS" | |
12280 | ||
12281 | fi | |
12282 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12283 | echo "$ac_t""yes" 1>&6 | |
12284 | ||
12285 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
12286 | #define HAVE_WCSLEN 1 |
12287 | EOF | |
12288 | ||
12289 | WCHAR_LINK="" | |
698dcdb6 | 12290 | |
10f2d63a | 12291 | else |
698dcdb6 | 12292 | echo "$ac_t""no" 1>&6 |
10f2d63a | 12293 | |
698dcdb6 | 12294 | echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6 |
3379ed37 | 12295 | echo "configure:12296: checking for wcslen in -lw" >&5 |
698dcdb6 VZ |
12296 | ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'` |
12297 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12298 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12299 | else |
698dcdb6 | 12300 | ac_save_LIBS="$LIBS" |
10f2d63a | 12301 | LIBS="-lw $LIBS" |
698dcdb6 | 12302 | cat > conftest.$ac_ext <<EOF |
3379ed37 | 12303 | #line 12304 "configure" |
10f2d63a VZ |
12304 | #include "confdefs.h" |
12305 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12306 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12307 | builtin and then its argument prototype would still apply. */ |
12308 | char wcslen(); | |
12309 | ||
12310 | int main() { | |
12311 | wcslen() | |
12312 | ; return 0; } | |
12313 | EOF | |
3379ed37 | 12314 | if { (eval echo configure:12315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12315 | rm -rf conftest* |
12316 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12317 | else | |
12318 | echo "configure: failed program was:" >&5 | |
12319 | cat conftest.$ac_ext >&5 | |
12320 | rm -rf conftest* | |
12321 | eval "ac_cv_lib_$ac_lib_var=no" | |
12322 | fi | |
12323 | rm -f conftest* | |
12324 | LIBS="$ac_save_LIBS" | |
12325 | ||
12326 | fi | |
12327 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12328 | echo "$ac_t""yes" 1>&6 | |
12329 | ||
12330 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
12331 | #define HAVE_WCSLEN 1 |
12332 | EOF | |
12333 | ||
12334 | WCHAR_LINK="-lw" | |
698dcdb6 VZ |
12335 | |
12336 | else | |
12337 | echo "$ac_t""no" 1>&6 | |
6232543b | 12338 | fi |
10f2d63a | 12339 | |
698dcdb6 | 12340 | |
1e487827 | 12341 | fi |
703e0a69 | 12342 | |
698dcdb6 VZ |
12343 | |
12344 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 | |
3379ed37 | 12345 | echo "configure:12346: checking for vprintf" >&5 |
698dcdb6 VZ |
12346 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
12347 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12348 | else | |
12349 | cat > conftest.$ac_ext <<EOF | |
3379ed37 | 12350 | #line 12351 "configure" |
10f2d63a VZ |
12351 | #include "confdefs.h" |
12352 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 12353 | which can conflict with char vprintf(); below. */ |
10f2d63a VZ |
12354 | #include <assert.h> |
12355 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12356 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12357 | builtin and then its argument prototype would still apply. */ |
12358 | char vprintf(); | |
12359 | ||
12360 | int main() { | |
10f2d63a VZ |
12361 | |
12362 | /* The GNU C library defines this for functions which it implements | |
12363 | to always fail with ENOSYS. Some functions are actually named | |
12364 | something starting with __ and the normal name is an alias. */ | |
698dcdb6 | 12365 | #if defined (__stub_vprintf) || defined (__stub___vprintf) |
10f2d63a VZ |
12366 | choke me |
12367 | #else | |
698dcdb6 | 12368 | vprintf(); |
10f2d63a VZ |
12369 | #endif |
12370 | ||
698dcdb6 VZ |
12371 | ; return 0; } |
12372 | EOF | |
3379ed37 | 12373 | if { (eval echo configure:12374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12374 | rm -rf conftest* |
12375 | eval "ac_cv_func_vprintf=yes" | |
12376 | else | |
12377 | echo "configure: failed program was:" >&5 | |
12378 | cat conftest.$ac_ext >&5 | |
12379 | rm -rf conftest* | |
12380 | eval "ac_cv_func_vprintf=no" | |
12381 | fi | |
12382 | rm -f conftest* | |
12383 | fi | |
12384 | ||
12385 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then | |
12386 | echo "$ac_t""yes" 1>&6 | |
12387 | cat >> confdefs.h <<\EOF | |
12388 | #define HAVE_VPRINTF 1 | |
12389 | EOF | |
12390 | ||
12391 | else | |
12392 | echo "$ac_t""no" 1>&6 | |
12393 | fi | |
12394 | ||
12395 | if test "$ac_cv_func_vprintf" != yes; then | |
12396 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | |
3379ed37 | 12397 | echo "configure:12398: checking for _doprnt" >&5 |
698dcdb6 VZ |
12398 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
12399 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12400 | else | |
12401 | cat > conftest.$ac_ext <<EOF | |
3379ed37 | 12402 | #line 12403 "configure" |
10f2d63a VZ |
12403 | #include "confdefs.h" |
12404 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 12405 | which can conflict with char _doprnt(); below. */ |
10f2d63a VZ |
12406 | #include <assert.h> |
12407 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12408 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12409 | builtin and then its argument prototype would still apply. */ |
12410 | char _doprnt(); | |
12411 | ||
12412 | int main() { | |
10f2d63a VZ |
12413 | |
12414 | /* The GNU C library defines this for functions which it implements | |
12415 | to always fail with ENOSYS. Some functions are actually named | |
12416 | something starting with __ and the normal name is an alias. */ | |
12417 | #if defined (__stub__doprnt) || defined (__stub____doprnt) | |
12418 | choke me | |
12419 | #else | |
698dcdb6 | 12420 | _doprnt(); |
10f2d63a VZ |
12421 | #endif |
12422 | ||
698dcdb6 VZ |
12423 | ; return 0; } |
12424 | EOF | |
3379ed37 | 12425 | if { (eval echo configure:12426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12426 | rm -rf conftest* |
12427 | eval "ac_cv_func__doprnt=yes" | |
12428 | else | |
12429 | echo "configure: failed program was:" >&5 | |
12430 | cat conftest.$ac_ext >&5 | |
12431 | rm -rf conftest* | |
12432 | eval "ac_cv_func__doprnt=no" | |
12433 | fi | |
12434 | rm -f conftest* | |
12435 | fi | |
12436 | ||
12437 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then | |
12438 | echo "$ac_t""yes" 1>&6 | |
12439 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
12440 | #define HAVE_DOPRNT 1 |
12441 | EOF | |
12442 | ||
698dcdb6 VZ |
12443 | else |
12444 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
12445 | fi |
12446 | ||
12447 | fi | |
12448 | ||
1e487827 | 12449 | |
698dcdb6 VZ |
12450 | |
12451 | ||
12452 | ||
12453 | ||
12454 | ||
12455 | echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6 | |
3379ed37 | 12456 | echo "configure:12457: checking for vsnprintf" >&5 |
698dcdb6 VZ |
12457 | if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then |
12458 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12459 | else | |
12460 | ||
12461 | cat > conftest.$ac_ext <<EOF | |
3379ed37 | 12462 | #line 12463 "configure" |
f6bcfd97 BP |
12463 | #include "confdefs.h" |
12464 | ||
12465 | #include <stdio.h> | |
698dcdb6 VZ |
12466 | #include <stdarg.h> |
12467 | ||
12468 | int main() { | |
10f2d63a | 12469 | |
f6bcfd97 | 12470 | int wx_test_vsnprintf(const char *, ...); |
10f2d63a | 12471 | |
f6bcfd97 BP |
12472 | wx_test_vsnprintf("%s"); |
12473 | return 0; | |
12474 | } | |
12475 | ||
12476 | int wx_test_vsnprintf(const char *fmt, ...) | |
12477 | { | |
12478 | char *s; | |
12479 | ||
12480 | va_list argp; | |
12481 | va_start(argp, fmt); | |
12482 | vsnprintf(s, 42, fmt, argp); | |
12483 | va_end(argp); | |
698dcdb6 VZ |
12484 | |
12485 | ; return 0; } | |
12486 | EOF | |
3379ed37 | 12487 | if { (eval echo configure:12488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
12488 | rm -rf conftest* |
12489 | ||
f6bcfd97 | 12490 | wx_cv_func_vsnprintf=yes |
698dcdb6 | 12491 | |
10f2d63a | 12492 | else |
698dcdb6 VZ |
12493 | echo "configure: failed program was:" >&5 |
12494 | cat conftest.$ac_ext >&5 | |
12495 | rm -rf conftest* | |
12496 | ||
12497 | cat > conftest.$ac_ext <<EOF | |
3379ed37 | 12498 | #line 12499 "configure" |
c521c494 RL |
12499 | #include "confdefs.h" |
12500 | ||
12501 | #include <stdio.h> | |
12502 | #include <stdarg.h> | |
698dcdb6 VZ |
12503 | |
12504 | int main() { | |
c521c494 RL |
12505 | |
12506 | int wx_test_vsnprintf(const char *, ...); | |
12507 | ||
12508 | wx_test_vsnprintf("%s"); | |
12509 | return 0; | |
12510 | } | |
12511 | ||
12512 | int wx_test_vsnprintf(const char *fmt, ...) | |
12513 | { | |
12514 | char *s; | |
12515 | ||
12516 | va_list argp; | |
12517 | va_start(argp, fmt); | |
12518 | _vsnprintf(s, 42, fmt, argp); | |
12519 | va_end(argp); | |
698dcdb6 VZ |
12520 | |
12521 | ; return 0; } | |
12522 | EOF | |
3379ed37 | 12523 | if { (eval echo configure:12524: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
12524 | rm -rf conftest* |
12525 | ||
c521c494 | 12526 | wx_cv_func_vsnprintf=yes |
698dcdb6 | 12527 | |
c521c494 | 12528 | else |
698dcdb6 VZ |
12529 | echo "configure: failed program was:" >&5 |
12530 | cat conftest.$ac_ext >&5 | |
12531 | rm -rf conftest* | |
12532 | ||
c521c494 | 12533 | wx_cv_func_vsnprintf=no |
698dcdb6 | 12534 | |
10f2d63a | 12535 | fi |
698dcdb6 VZ |
12536 | rm -f conftest* |
12537 | ||
6232543b | 12538 | fi |
698dcdb6 | 12539 | rm -f conftest* |
703e0a69 | 12540 | |
1e487827 | 12541 | fi |
698dcdb6 VZ |
12542 | |
12543 | echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6 | |
10f2d63a | 12544 | |
9d8deca0 | 12545 | if test "$wx_cv_func_vsnprintf" = yes; then |
698dcdb6 | 12546 | cat >> confdefs.h <<\EOF |
9d8deca0 VZ |
12547 | #define HAVE_VSNPRINTF 1 |
12548 | EOF | |
12549 | ||
12550 | else | |
698dcdb6 | 12551 | echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2 |
9d8deca0 VZ |
12552 | fi |
12553 | ||
698dcdb6 | 12554 | echo $ac_n "checking for vsscanf""... $ac_c" 1>&6 |
3379ed37 | 12555 | echo "configure:12556: checking for vsscanf" >&5 |
698dcdb6 VZ |
12556 | if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then |
12557 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12558 | else |
698dcdb6 VZ |
12559 | |
12560 | cat > conftest.$ac_ext <<EOF | |
3379ed37 | 12561 | #line 12562 "configure" |
10f2d63a | 12562 | #include "confdefs.h" |
10f2d63a | 12563 | |
f6bcfd97 BP |
12564 | #include <stdio.h> |
12565 | #include <stdarg.h> | |
698dcdb6 VZ |
12566 | |
12567 | int main() { | |
10f2d63a | 12568 | |
f6bcfd97 | 12569 | int wx_test_vsscanf(const char *, ...); |
10f2d63a | 12570 | |
f6bcfd97 BP |
12571 | wx_test_vsscanf("%d"); |
12572 | return 0; | |
10f2d63a VZ |
12573 | } |
12574 | ||
f6bcfd97 | 12575 | int wx_test_vsscanf(const char *fmt, ...) |
10f2d63a | 12576 | { |
f6bcfd97 BP |
12577 | va_list argp; |
12578 | va_start(argp, fmt); | |
12579 | vsscanf("42", fmt, argp); | |
12580 | va_end(argp); | |
698dcdb6 VZ |
12581 | |
12582 | ; return 0; } | |
12583 | EOF | |
3379ed37 | 12584 | if { (eval echo configure:12585: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
12585 | rm -rf conftest* |
12586 | ||
f6bcfd97 | 12587 | wx_cv_func_vsscanf=yes |
698dcdb6 | 12588 | |
10f2d63a | 12589 | else |
698dcdb6 VZ |
12590 | echo "configure: failed program was:" >&5 |
12591 | cat conftest.$ac_ext >&5 | |
12592 | rm -rf conftest* | |
12593 | ||
f6bcfd97 | 12594 | wx_cv_func_vsscanf=no |
698dcdb6 | 12595 | |
6232543b | 12596 | fi |
698dcdb6 | 12597 | rm -f conftest* |
703e0a69 | 12598 | |
1e487827 | 12599 | fi |
698dcdb6 VZ |
12600 | |
12601 | echo "$ac_t""$wx_cv_func_vsscanf" 1>&6 | |
10f2d63a | 12602 | |
9d8deca0 | 12603 | if test "$wx_cv_func_vsscanf" = yes; then |
698dcdb6 | 12604 | cat >> confdefs.h <<\EOF |
9d8deca0 VZ |
12605 | #define HAVE_VSSCANF 1 |
12606 | EOF | |
12607 | ||
12608 | fi | |
12609 | ||
95c8801c VS |
12610 | if test "$TOOLKIT" != "MSW"; then |
12611 | ||
12612 | ||
12613 | ||
698dcdb6 VZ |
12614 | ac_ext=C |
12615 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
12616 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12617 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
12618 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12619 | cross_compiling=$ac_cv_prog_cxx_cross | |
12620 | ||
12621 | echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6 | |
3379ed37 | 12622 | echo "configure:12623: checking if iconv() takes char**" >&5 |
698dcdb6 VZ |
12623 | if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then |
12624 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12625 | else | |
12626 | ||
12627 | cat > conftest.$ac_ext <<EOF | |
3379ed37 | 12628 | #line 12629 "configure" |
95c8801c VS |
12629 | #include "confdefs.h" |
12630 | #include <iconv.h> | |
698dcdb6 | 12631 | int main() { |
95c8801c VS |
12632 | |
12633 | char **inbuf, **outbuf; | |
19af3b06 VZ |
12634 | iconv_t cd; |
12635 | size_t insz, outsz; | |
12636 | iconv(cd, inbuf, &insz, outbuf, &outsz); | |
698dcdb6 VZ |
12637 | |
12638 | ; return 0; } | |
12639 | EOF | |
3379ed37 | 12640 | if { (eval echo configure:12641: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 12641 | rm -rf conftest* |
95c8801c VS |
12642 | wx_cv_iconv_takes_char=yes |
12643 | else | |
698dcdb6 VZ |
12644 | echo "configure: failed program was:" >&5 |
12645 | cat conftest.$ac_ext >&5 | |
12646 | rm -rf conftest* | |
12647 | wx_cv_iconv_takes_char=no | |
95c8801c | 12648 | fi |
698dcdb6 | 12649 | rm -f conftest* |
95c8801c VS |
12650 | |
12651 | fi | |
698dcdb6 VZ |
12652 | |
12653 | echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6 | |
10f2d63a | 12654 | ac_ext=c |
698dcdb6 | 12655 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 12656 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
12657 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12658 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12659 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a | 12660 | |
95c8801c | 12661 | if test "$wx_cv_iconv_takes_char" = yes ; then |
698dcdb6 | 12662 | cat >> confdefs.h <<\EOF |
95c8801c VS |
12663 | #define WX_ICONV_TAKES_CHAR 1 |
12664 | EOF | |
12665 | ||
12666 | fi | |
10f2d63a | 12667 | |
1e487827 | 12668 | |
698dcdb6 VZ |
12669 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
12670 | for ac_func in sigaction | |
eb4efbdc | 12671 | do |
698dcdb6 | 12672 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3379ed37 | 12673 | echo "configure:12674: checking for $ac_func" >&5 |
698dcdb6 VZ |
12674 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
12675 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12676 | else | |
12677 | cat > conftest.$ac_ext <<EOF | |
3379ed37 | 12678 | #line 12679 "configure" |
eb4efbdc VZ |
12679 | #include "confdefs.h" |
12680 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 12681 | which can conflict with char $ac_func(); below. */ |
eb4efbdc VZ |
12682 | #include <assert.h> |
12683 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12684 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12685 | builtin and then its argument prototype would still apply. */ |
12686 | char $ac_func(); | |
12687 | ||
12688 | int main() { | |
eb4efbdc VZ |
12689 | |
12690 | /* The GNU C library defines this for functions which it implements | |
12691 | to always fail with ENOSYS. Some functions are actually named | |
12692 | something starting with __ and the normal name is an alias. */ | |
12693 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12694 | choke me | |
12695 | #else | |
698dcdb6 | 12696 | $ac_func(); |
eb4efbdc VZ |
12697 | #endif |
12698 | ||
698dcdb6 | 12699 | ; return 0; } |
eb4efbdc | 12700 | EOF |
3379ed37 | 12701 | if { (eval echo configure:12702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12702 | rm -rf conftest* |
12703 | eval "ac_cv_func_$ac_func=yes" | |
12704 | else | |
12705 | echo "configure: failed program was:" >&5 | |
12706 | cat conftest.$ac_ext >&5 | |
12707 | rm -rf conftest* | |
12708 | eval "ac_cv_func_$ac_func=no" | |
12709 | fi | |
12710 | rm -f conftest* | |
12711 | fi | |
eb4efbdc | 12712 | |
698dcdb6 VZ |
12713 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
12714 | echo "$ac_t""yes" 1>&6 | |
12715 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12716 | cat >> confdefs.h <<EOF | |
12717 | #define $ac_tr_func 1 | |
12718 | EOF | |
12719 | ||
12720 | else | |
12721 | echo "$ac_t""no" 1>&6 | |
eb4efbdc VZ |
12722 | fi |
12723 | done | |
12724 | ||
698dcdb6 | 12725 | |
eb4efbdc | 12726 | if test "$ac_cv_func_sigaction" = "no"; then |
698dcdb6 | 12727 | echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2 |
eb4efbdc VZ |
12728 | wxUSE_ON_FATAL_EXCEPTION=no |
12729 | fi | |
f6bcfd97 BP |
12730 | |
12731 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
698dcdb6 VZ |
12732 | |
12733 | ac_ext=C | |
12734 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 12735 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
12736 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12737 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12738 | cross_compiling=$ac_cv_prog_cxx_cross | |
6232543b | 12739 | |
1e487827 | 12740 | |
698dcdb6 | 12741 | echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6 |
3379ed37 | 12742 | echo "configure:12743: checking for sa_handler type" >&5 |
698dcdb6 VZ |
12743 | if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then |
12744 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12745 | else | |
12746 | ||
12747 | cat > conftest.$ac_ext <<EOF | |
3379ed37 | 12748 | #line 12749 "configure" |
f6bcfd97 BP |
12749 | #include "confdefs.h" |
12750 | #include <signal.h> | |
698dcdb6 | 12751 | int main() { |
f6bcfd97 BP |
12752 | |
12753 | extern void testSigHandler(int); | |
12754 | ||
12755 | struct sigaction sa; | |
12756 | sa.sa_handler = testSigHandler; | |
698dcdb6 VZ |
12757 | |
12758 | ; return 0; } | |
12759 | EOF | |
3379ed37 | 12760 | if { (eval echo configure:12761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
12761 | rm -rf conftest* |
12762 | ||
f6bcfd97 | 12763 | wx_cv_type_sa_handler=int |
698dcdb6 | 12764 | |
f6bcfd97 | 12765 | else |
698dcdb6 VZ |
12766 | echo "configure: failed program was:" >&5 |
12767 | cat conftest.$ac_ext >&5 | |
12768 | rm -rf conftest* | |
12769 | ||
f6bcfd97 | 12770 | wx_cv_type_sa_handler=void |
698dcdb6 | 12771 | |
6232543b | 12772 | fi |
698dcdb6 VZ |
12773 | rm -f conftest* |
12774 | ||
1e487827 | 12775 | fi |
698dcdb6 VZ |
12776 | |
12777 | echo "$ac_t""$wx_cv_type_sa_handler" 1>&6 | |
f6bcfd97 BP |
12778 | |
12779 | ac_ext=c | |
698dcdb6 | 12780 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
f6bcfd97 | 12781 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
12782 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12783 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12784 | cross_compiling=$ac_cv_prog_cc_cross | |
12785 | ||
703e0a69 | 12786 | |
698dcdb6 | 12787 | cat >> confdefs.h <<EOF |
f6bcfd97 BP |
12788 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler |
12789 | EOF | |
12790 | ||
12791 | fi | |
eb4efbdc VZ |
12792 | fi |
12793 | ||
10f2d63a VZ |
12794 | for ac_func in vfork |
12795 | do | |
698dcdb6 | 12796 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3379ed37 | 12797 | echo "configure:12798: checking for $ac_func" >&5 |
698dcdb6 VZ |
12798 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
12799 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12800 | else | |
12801 | cat > conftest.$ac_ext <<EOF | |
3379ed37 | 12802 | #line 12803 "configure" |
10f2d63a VZ |
12803 | #include "confdefs.h" |
12804 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 12805 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
12806 | #include <assert.h> |
12807 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12808 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12809 | builtin and then its argument prototype would still apply. */ |
12810 | char $ac_func(); | |
12811 | ||
12812 | int main() { | |
10f2d63a VZ |
12813 | |
12814 | /* The GNU C library defines this for functions which it implements | |
12815 | to always fail with ENOSYS. Some functions are actually named | |
12816 | something starting with __ and the normal name is an alias. */ | |
12817 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12818 | choke me | |
12819 | #else | |
698dcdb6 | 12820 | $ac_func(); |
10f2d63a VZ |
12821 | #endif |
12822 | ||
698dcdb6 | 12823 | ; return 0; } |
10f2d63a | 12824 | EOF |
3379ed37 | 12825 | if { (eval echo configure:12826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12826 | rm -rf conftest* |
12827 | eval "ac_cv_func_$ac_func=yes" | |
12828 | else | |
12829 | echo "configure: failed program was:" >&5 | |
12830 | cat conftest.$ac_ext >&5 | |
12831 | rm -rf conftest* | |
12832 | eval "ac_cv_func_$ac_func=no" | |
12833 | fi | |
12834 | rm -f conftest* | |
12835 | fi | |
270a909e | 12836 | |
698dcdb6 VZ |
12837 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
12838 | echo "$ac_t""yes" 1>&6 | |
12839 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12840 | cat >> confdefs.h <<EOF | |
12841 | #define $ac_tr_func 1 | |
12842 | EOF | |
12843 | ||
12844 | else | |
12845 | echo "$ac_t""no" 1>&6 | |
270a909e VZ |
12846 | fi |
12847 | done | |
12848 | ||
1e487827 | 12849 | |
698dcdb6 VZ |
12850 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
12851 | for ac_func in fcntl flock | |
4f3c5f06 | 12852 | do |
698dcdb6 | 12853 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3379ed37 | 12854 | echo "configure:12855: checking for $ac_func" >&5 |
698dcdb6 VZ |
12855 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
12856 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12857 | else | |
12858 | cat > conftest.$ac_ext <<EOF | |
3379ed37 | 12859 | #line 12860 "configure" |
4f3c5f06 VZ |
12860 | #include "confdefs.h" |
12861 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 12862 | which can conflict with char $ac_func(); below. */ |
4f3c5f06 VZ |
12863 | #include <assert.h> |
12864 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12865 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12866 | builtin and then its argument prototype would still apply. */ |
12867 | char $ac_func(); | |
12868 | ||
12869 | int main() { | |
4f3c5f06 VZ |
12870 | |
12871 | /* The GNU C library defines this for functions which it implements | |
12872 | to always fail with ENOSYS. Some functions are actually named | |
12873 | something starting with __ and the normal name is an alias. */ | |
12874 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12875 | choke me | |
12876 | #else | |
698dcdb6 | 12877 | $ac_func(); |
4f3c5f06 VZ |
12878 | #endif |
12879 | ||
698dcdb6 VZ |
12880 | ; return 0; } |
12881 | EOF | |
3379ed37 | 12882 | if { (eval echo configure:12883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12883 | rm -rf conftest* |
12884 | eval "ac_cv_func_$ac_func=yes" | |
12885 | else | |
12886 | echo "configure: failed program was:" >&5 | |
12887 | cat conftest.$ac_ext >&5 | |
12888 | rm -rf conftest* | |
12889 | eval "ac_cv_func_$ac_func=no" | |
12890 | fi | |
12891 | rm -f conftest* | |
12892 | fi | |
12893 | ||
12894 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
12895 | echo "$ac_t""yes" 1>&6 | |
12896 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12897 | cat >> confdefs.h <<EOF | |
12898 | #define $ac_tr_func 1 | |
4f3c5f06 VZ |
12899 | EOF |
12900 | break | |
698dcdb6 VZ |
12901 | else |
12902 | echo "$ac_t""no" 1>&6 | |
4f3c5f06 VZ |
12903 | fi |
12904 | done | |
12905 | ||
698dcdb6 | 12906 | |
4f3c5f06 | 12907 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then |
698dcdb6 | 12908 | echo "configure: warning: wxSingleInstanceChecker not available" 1>&2 |
4f3c5f06 VZ |
12909 | wxUSE_SNGLINST_CHECKER=no |
12910 | fi | |
12911 | fi | |
12912 | ||
270a909e VZ |
12913 | for ac_func in timegm |
12914 | do | |
698dcdb6 | 12915 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3379ed37 | 12916 | echo "configure:12917: checking for $ac_func" >&5 |
698dcdb6 VZ |
12917 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
12918 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12919 | else | |
12920 | cat > conftest.$ac_ext <<EOF | |
3379ed37 | 12921 | #line 12922 "configure" |
270a909e VZ |
12922 | #include "confdefs.h" |
12923 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 12924 | which can conflict with char $ac_func(); below. */ |
270a909e VZ |
12925 | #include <assert.h> |
12926 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12927 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12928 | builtin and then its argument prototype would still apply. */ |
12929 | char $ac_func(); | |
12930 | ||
12931 | int main() { | |
270a909e VZ |
12932 | |
12933 | /* The GNU C library defines this for functions which it implements | |
12934 | to always fail with ENOSYS. Some functions are actually named | |
12935 | something starting with __ and the normal name is an alias. */ | |
12936 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12937 | choke me | |
12938 | #else | |
698dcdb6 | 12939 | $ac_func(); |
270a909e VZ |
12940 | #endif |
12941 | ||
698dcdb6 | 12942 | ; return 0; } |
270a909e | 12943 | EOF |
3379ed37 | 12944 | if { (eval echo configure:12945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12945 | rm -rf conftest* |
12946 | eval "ac_cv_func_$ac_func=yes" | |
12947 | else | |
12948 | echo "configure: failed program was:" >&5 | |
12949 | cat conftest.$ac_ext >&5 | |
12950 | rm -rf conftest* | |
12951 | eval "ac_cv_func_$ac_func=no" | |
12952 | fi | |
12953 | rm -f conftest* | |
12954 | fi | |
10f2d63a | 12955 | |
698dcdb6 VZ |
12956 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
12957 | echo "$ac_t""yes" 1>&6 | |
12958 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12959 | cat >> confdefs.h <<EOF | |
12960 | #define $ac_tr_func 1 | |
12961 | EOF | |
12962 | ||
12963 | else | |
12964 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
12965 | fi |
12966 | done | |
12967 | ||
698dcdb6 | 12968 | |
8fd0d89b VZ |
12969 | for ac_func in putenv setenv |
12970 | do | |
698dcdb6 | 12971 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3379ed37 | 12972 | echo "configure:12973: checking for $ac_func" >&5 |
698dcdb6 VZ |
12973 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
12974 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12975 | else | |
12976 | cat > conftest.$ac_ext <<EOF | |
3379ed37 | 12977 | #line 12978 "configure" |
8fd0d89b VZ |
12978 | #include "confdefs.h" |
12979 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 12980 | which can conflict with char $ac_func(); below. */ |
8fd0d89b VZ |
12981 | #include <assert.h> |
12982 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12983 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12984 | builtin and then its argument prototype would still apply. */ |
12985 | char $ac_func(); | |
12986 | ||
12987 | int main() { | |
8fd0d89b VZ |
12988 | |
12989 | /* The GNU C library defines this for functions which it implements | |
12990 | to always fail with ENOSYS. Some functions are actually named | |
12991 | something starting with __ and the normal name is an alias. */ | |
12992 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12993 | choke me | |
12994 | #else | |
698dcdb6 | 12995 | $ac_func(); |
8fd0d89b VZ |
12996 | #endif |
12997 | ||
698dcdb6 VZ |
12998 | ; return 0; } |
12999 | EOF | |
3379ed37 | 13000 | if { (eval echo configure:13001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13001 | rm -rf conftest* |
13002 | eval "ac_cv_func_$ac_func=yes" | |
13003 | else | |
13004 | echo "configure: failed program was:" >&5 | |
13005 | cat conftest.$ac_ext >&5 | |
13006 | rm -rf conftest* | |
13007 | eval "ac_cv_func_$ac_func=no" | |
13008 | fi | |
13009 | rm -f conftest* | |
13010 | fi | |
13011 | ||
13012 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13013 | echo "$ac_t""yes" 1>&6 | |
13014 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13015 | cat >> confdefs.h <<EOF | |
13016 | #define $ac_tr_func 1 | |
8fd0d89b VZ |
13017 | EOF |
13018 | break | |
698dcdb6 VZ |
13019 | else |
13020 | echo "$ac_t""no" 1>&6 | |
8fd0d89b VZ |
13021 | fi |
13022 | done | |
13023 | ||
698dcdb6 | 13024 | |
b12915c1 VZ |
13025 | HAVE_SOME_SLEEP_FUNC=0 |
13026 | if test "$USE_BEOS" = 1; then | |
698dcdb6 | 13027 | cat >> confdefs.h <<\EOF |
b12915c1 VZ |
13028 | #define HAVE_SLEEP 1 |
13029 | EOF | |
13030 | ||
13031 | HAVE_SOME_SLEEP_FUNC=1 | |
13032 | fi | |
13033 | ||
b4085ce6 | 13034 | if test "$USE_MAC" = 1; then |
698dcdb6 | 13035 | cat >> confdefs.h <<\EOF |
b4085ce6 GD |
13036 | #define HAVE_USLEEP 1 |
13037 | EOF | |
13038 | ||
13039 | HAVE_SOME_SLEEP_FUNC=1 | |
13040 | fi | |
13041 | ||
b12915c1 VZ |
13042 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then |
13043 | POSIX4_LINK= | |
698dcdb6 | 13044 | for ac_func in nanosleep |
10f2d63a | 13045 | do |
698dcdb6 | 13046 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3379ed37 | 13047 | echo "configure:13048: checking for $ac_func" >&5 |
698dcdb6 VZ |
13048 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13049 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13050 | else | |
13051 | cat > conftest.$ac_ext <<EOF | |
3379ed37 | 13052 | #line 13053 "configure" |
10f2d63a VZ |
13053 | #include "confdefs.h" |
13054 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13055 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
13056 | #include <assert.h> |
13057 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13058 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13059 | builtin and then its argument prototype would still apply. */ |
13060 | char $ac_func(); | |
13061 | ||
13062 | int main() { | |
10f2d63a VZ |
13063 | |
13064 | /* The GNU C library defines this for functions which it implements | |
13065 | to always fail with ENOSYS. Some functions are actually named | |
13066 | something starting with __ and the normal name is an alias. */ | |
13067 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13068 | choke me | |
13069 | #else | |
698dcdb6 | 13070 | $ac_func(); |
10f2d63a VZ |
13071 | #endif |
13072 | ||
698dcdb6 VZ |
13073 | ; return 0; } |
13074 | EOF | |
3379ed37 | 13075 | if { (eval echo configure:13076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13076 | rm -rf conftest* |
13077 | eval "ac_cv_func_$ac_func=yes" | |
13078 | else | |
13079 | echo "configure: failed program was:" >&5 | |
13080 | cat conftest.$ac_ext >&5 | |
13081 | rm -rf conftest* | |
13082 | eval "ac_cv_func_$ac_func=no" | |
13083 | fi | |
13084 | rm -f conftest* | |
13085 | fi | |
13086 | ||
13087 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13088 | echo "$ac_t""yes" 1>&6 | |
13089 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13090 | cat >> confdefs.h <<EOF | |
13091 | #define $ac_tr_func 1 | |
13092 | EOF | |
13093 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
13094 | #define HAVE_NANOSLEEP 1 |
13095 | EOF | |
13096 | ||
13097 | else | |
698dcdb6 VZ |
13098 | echo "$ac_t""no" 1>&6 |
13099 | echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 | |
3379ed37 | 13100 | echo "configure:13101: checking for nanosleep in -lposix4" >&5 |
698dcdb6 VZ |
13101 | ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` |
13102 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13103 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13104 | else |
698dcdb6 | 13105 | ac_save_LIBS="$LIBS" |
10f2d63a | 13106 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 13107 | cat > conftest.$ac_ext <<EOF |
3379ed37 | 13108 | #line 13109 "configure" |
10f2d63a VZ |
13109 | #include "confdefs.h" |
13110 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13111 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13112 | builtin and then its argument prototype would still apply. */ |
13113 | char nanosleep(); | |
13114 | ||
13115 | int main() { | |
13116 | nanosleep() | |
13117 | ; return 0; } | |
13118 | EOF | |
3379ed37 | 13119 | if { (eval echo configure:13120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13120 | rm -rf conftest* |
13121 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13122 | else | |
13123 | echo "configure: failed program was:" >&5 | |
13124 | cat conftest.$ac_ext >&5 | |
13125 | rm -rf conftest* | |
13126 | eval "ac_cv_lib_$ac_lib_var=no" | |
13127 | fi | |
13128 | rm -f conftest* | |
13129 | LIBS="$ac_save_LIBS" | |
13130 | ||
13131 | fi | |
13132 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13133 | echo "$ac_t""yes" 1>&6 | |
13134 | ||
13135 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
13136 | #define HAVE_NANOSLEEP 1 |
13137 | EOF | |
13138 | ||
b12915c1 | 13139 | POSIX4_LINK="-lposix4" |
698dcdb6 | 13140 | |
10f2d63a | 13141 | else |
698dcdb6 | 13142 | echo "$ac_t""no" 1>&6 |
10f2d63a | 13143 | |
698dcdb6 | 13144 | for ac_func in usleep |
10f2d63a | 13145 | do |
698dcdb6 | 13146 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3379ed37 | 13147 | echo "configure:13148: checking for $ac_func" >&5 |
698dcdb6 VZ |
13148 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13149 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13150 | else | |
13151 | cat > conftest.$ac_ext <<EOF | |
3379ed37 | 13152 | #line 13153 "configure" |
10f2d63a VZ |
13153 | #include "confdefs.h" |
13154 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13155 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
13156 | #include <assert.h> |
13157 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13158 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13159 | builtin and then its argument prototype would still apply. */ |
13160 | char $ac_func(); | |
13161 | ||
13162 | int main() { | |
10f2d63a VZ |
13163 | |
13164 | /* The GNU C library defines this for functions which it implements | |
13165 | to always fail with ENOSYS. Some functions are actually named | |
13166 | something starting with __ and the normal name is an alias. */ | |
13167 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13168 | choke me | |
13169 | #else | |
698dcdb6 | 13170 | $ac_func(); |
10f2d63a VZ |
13171 | #endif |
13172 | ||
698dcdb6 VZ |
13173 | ; return 0; } |
13174 | EOF | |
3379ed37 | 13175 | if { (eval echo configure:13176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13176 | rm -rf conftest* |
13177 | eval "ac_cv_func_$ac_func=yes" | |
13178 | else | |
13179 | echo "configure: failed program was:" >&5 | |
13180 | cat conftest.$ac_ext >&5 | |
13181 | rm -rf conftest* | |
13182 | eval "ac_cv_func_$ac_func=no" | |
13183 | fi | |
13184 | rm -f conftest* | |
13185 | fi | |
13186 | ||
13187 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13188 | echo "$ac_t""yes" 1>&6 | |
13189 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13190 | cat >> confdefs.h <<EOF | |
13191 | #define $ac_tr_func 1 | |
13192 | EOF | |
13193 | cat >> confdefs.h <<\EOF | |
b4085ce6 GD |
13194 | #define HAVE_USLEEP 1 |
13195 | EOF | |
13196 | ||
10f2d63a | 13197 | else |
698dcdb6 VZ |
13198 | echo "$ac_t""no" 1>&6 |
13199 | echo "configure: warning: wxSleep() function will not work" 1>&2 | |
13200 | ||
10f2d63a VZ |
13201 | fi |
13202 | done | |
13203 | ||
698dcdb6 VZ |
13204 | |
13205 | ||
10f2d63a VZ |
13206 | fi |
13207 | ||
698dcdb6 VZ |
13208 | |
13209 | ||
10f2d63a VZ |
13210 | fi |
13211 | done | |
13212 | ||
b12915c1 | 13213 | fi |
10f2d63a VZ |
13214 | |
13215 | for ac_func in uname gethostname | |
13216 | do | |
698dcdb6 | 13217 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3379ed37 | 13218 | echo "configure:13219: checking for $ac_func" >&5 |
698dcdb6 VZ |
13219 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13220 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13221 | else | |
13222 | cat > conftest.$ac_ext <<EOF | |
3379ed37 | 13223 | #line 13224 "configure" |
10f2d63a VZ |
13224 | #include "confdefs.h" |
13225 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13226 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
13227 | #include <assert.h> |
13228 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13229 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13230 | builtin and then its argument prototype would still apply. */ |
13231 | char $ac_func(); | |
13232 | ||
13233 | int main() { | |
10f2d63a VZ |
13234 | |
13235 | /* The GNU C library defines this for functions which it implements | |
13236 | to always fail with ENOSYS. Some functions are actually named | |
13237 | something starting with __ and the normal name is an alias. */ | |
13238 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13239 | choke me | |
13240 | #else | |
698dcdb6 | 13241 | $ac_func(); |
10f2d63a VZ |
13242 | #endif |
13243 | ||
698dcdb6 VZ |
13244 | ; return 0; } |
13245 | EOF | |
3379ed37 | 13246 | if { (eval echo configure:13247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13247 | rm -rf conftest* |
13248 | eval "ac_cv_func_$ac_func=yes" | |
13249 | else | |
13250 | echo "configure: failed program was:" >&5 | |
13251 | cat conftest.$ac_ext >&5 | |
13252 | rm -rf conftest* | |
13253 | eval "ac_cv_func_$ac_func=no" | |
13254 | fi | |
13255 | rm -f conftest* | |
13256 | fi | |
13257 | ||
13258 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13259 | echo "$ac_t""yes" 1>&6 | |
13260 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13261 | cat >> confdefs.h <<EOF | |
13262 | #define $ac_tr_func 1 | |
10f2d63a VZ |
13263 | EOF |
13264 | break | |
698dcdb6 VZ |
13265 | else |
13266 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13267 | fi |
13268 | done | |
13269 | ||
698dcdb6 VZ |
13270 | |
13271 | ||
13272 | ac_ext=C | |
13273 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6098c7f9 | 13274 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
13275 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
13276 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13277 | cross_compiling=$ac_cv_prog_cxx_cross | |
13278 | ||
6098c7f9 | 13279 | |
10f2d63a VZ |
13280 | for ac_func in strtok_r |
13281 | do | |
698dcdb6 | 13282 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3379ed37 | 13283 | echo "configure:13284: checking for $ac_func" >&5 |
698dcdb6 VZ |
13284 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13285 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13286 | else | |
13287 | cat > conftest.$ac_ext <<EOF | |
3379ed37 | 13288 | #line 13289 "configure" |
10f2d63a VZ |
13289 | #include "confdefs.h" |
13290 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13291 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
13292 | #include <assert.h> |
13293 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6098c7f9 VZ |
13294 | #ifdef __cplusplus |
13295 | extern "C" | |
13296 | #endif | |
10f2d63a | 13297 | /* We use char because int might match the return type of a gcc2 |
698dcdb6 VZ |
13298 | builtin and then its argument prototype would still apply. */ |
13299 | char $ac_func(); | |
13300 | ||
13301 | int main() { | |
10f2d63a VZ |
13302 | |
13303 | /* The GNU C library defines this for functions which it implements | |
13304 | to always fail with ENOSYS. Some functions are actually named | |
13305 | something starting with __ and the normal name is an alias. */ | |
13306 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13307 | choke me | |
13308 | #else | |
698dcdb6 | 13309 | $ac_func(); |
10f2d63a VZ |
13310 | #endif |
13311 | ||
698dcdb6 | 13312 | ; return 0; } |
10f2d63a | 13313 | EOF |
3379ed37 | 13314 | if { (eval echo configure:13315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13315 | rm -rf conftest* |
13316 | eval "ac_cv_func_$ac_func=yes" | |
13317 | else | |
13318 | echo "configure: failed program was:" >&5 | |
13319 | cat conftest.$ac_ext >&5 | |
13320 | rm -rf conftest* | |
13321 | eval "ac_cv_func_$ac_func=no" | |
13322 | fi | |
13323 | rm -f conftest* | |
13324 | fi | |
10f2d63a | 13325 | |
698dcdb6 VZ |
13326 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
13327 | echo "$ac_t""yes" 1>&6 | |
13328 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13329 | cat >> confdefs.h <<EOF | |
13330 | #define $ac_tr_func 1 | |
13331 | EOF | |
13332 | ||
13333 | else | |
13334 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13335 | fi |
13336 | done | |
13337 | ||
698dcdb6 | 13338 | |
6098c7f9 | 13339 | ac_ext=c |
698dcdb6 | 13340 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
6098c7f9 | 13341 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
13342 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
13343 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13344 | cross_compiling=$ac_cv_prog_cc_cross | |
6232543b | 13345 | |
1e487827 | 13346 | |
698dcdb6 | 13347 | INET_LINK= |
10f2d63a VZ |
13348 | for ac_func in inet_addr |
13349 | do | |
698dcdb6 | 13350 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3379ed37 | 13351 | echo "configure:13352: checking for $ac_func" >&5 |
698dcdb6 VZ |
13352 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13353 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13354 | else | |
13355 | cat > conftest.$ac_ext <<EOF | |
3379ed37 | 13356 | #line 13357 "configure" |
10f2d63a VZ |
13357 | #include "confdefs.h" |
13358 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 VZ |
13359 | which can conflict with char $ac_func(); below. */ |
13360 | #include <assert.h> | |
13361 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10f2d63a | 13362 | /* We use char because int might match the return type of a gcc2 |
698dcdb6 VZ |
13363 | builtin and then its argument prototype would still apply. */ |
13364 | char $ac_func(); | |
13365 | ||
13366 | int main() { | |
10f2d63a VZ |
13367 | |
13368 | /* The GNU C library defines this for functions which it implements | |
13369 | to always fail with ENOSYS. Some functions are actually named | |
1e487827 VS |
13370 | something starting with __ and the normal name is an alias. */ |
13371 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13372 | choke me | |
13373 | #else | |
698dcdb6 | 13374 | $ac_func(); |
1e487827 | 13375 | #endif |
703e0a69 | 13376 | |
698dcdb6 VZ |
13377 | ; return 0; } |
13378 | EOF | |
3379ed37 | 13379 | if { (eval echo configure:13380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13380 | rm -rf conftest* |
13381 | eval "ac_cv_func_$ac_func=yes" | |
13382 | else | |
13383 | echo "configure: failed program was:" >&5 | |
13384 | cat conftest.$ac_ext >&5 | |
13385 | rm -rf conftest* | |
13386 | eval "ac_cv_func_$ac_func=no" | |
13387 | fi | |
13388 | rm -f conftest* | |
13389 | fi | |
13390 | ||
13391 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13392 | echo "$ac_t""yes" 1>&6 | |
13393 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13394 | cat >> confdefs.h <<EOF | |
13395 | #define $ac_tr_func 1 | |
13396 | EOF | |
13397 | cat >> confdefs.h <<\EOF | |
c63c7106 VZ |
13398 | #define HAVE_INET_ADDR 1 |
13399 | EOF | |
13400 | ||
10f2d63a | 13401 | else |
698dcdb6 VZ |
13402 | echo "$ac_t""no" 1>&6 |
13403 | echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6 | |
3379ed37 | 13404 | echo "configure:13405: checking for inet_addr in -lnsl" >&5 |
698dcdb6 VZ |
13405 | ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'` |
13406 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13407 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 13408 | else |
698dcdb6 | 13409 | ac_save_LIBS="$LIBS" |
c63c7106 | 13410 | LIBS="-lnsl $LIBS" |
698dcdb6 | 13411 | cat > conftest.$ac_ext <<EOF |
3379ed37 | 13412 | #line 13413 "configure" |
c63c7106 VZ |
13413 | #include "confdefs.h" |
13414 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13415 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13416 | builtin and then its argument prototype would still apply. */ |
13417 | char inet_addr(); | |
13418 | ||
13419 | int main() { | |
13420 | inet_addr() | |
13421 | ; return 0; } | |
13422 | EOF | |
3379ed37 | 13423 | if { (eval echo configure:13424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13424 | rm -rf conftest* |
13425 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13426 | else | |
13427 | echo "configure: failed program was:" >&5 | |
13428 | cat conftest.$ac_ext >&5 | |
13429 | rm -rf conftest* | |
13430 | eval "ac_cv_lib_$ac_lib_var=no" | |
13431 | fi | |
13432 | rm -f conftest* | |
13433 | LIBS="$ac_save_LIBS" | |
13434 | ||
13435 | fi | |
13436 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13437 | echo "$ac_t""yes" 1>&6 | |
c63c7106 VZ |
13438 | INET_LINK="nsl" |
13439 | else | |
698dcdb6 VZ |
13440 | echo "$ac_t""no" 1>&6 |
13441 | echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6 | |
3379ed37 | 13442 | echo "configure:13443: checking for inet_addr in -lresolv" >&5 |
698dcdb6 VZ |
13443 | ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'` |
13444 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13445 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 13446 | else |
698dcdb6 | 13447 | ac_save_LIBS="$LIBS" |
c63c7106 | 13448 | LIBS="-lresolv $LIBS" |
698dcdb6 | 13449 | cat > conftest.$ac_ext <<EOF |
3379ed37 | 13450 | #line 13451 "configure" |
c63c7106 VZ |
13451 | #include "confdefs.h" |
13452 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13453 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13454 | builtin and then its argument prototype would still apply. */ |
13455 | char inet_addr(); | |
13456 | ||
13457 | int main() { | |
13458 | inet_addr() | |
13459 | ; return 0; } | |
13460 | EOF | |
3379ed37 | 13461 | if { (eval echo configure:13462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13462 | rm -rf conftest* |
13463 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13464 | else | |
13465 | echo "configure: failed program was:" >&5 | |
13466 | cat conftest.$ac_ext >&5 | |
13467 | rm -rf conftest* | |
13468 | eval "ac_cv_lib_$ac_lib_var=no" | |
13469 | fi | |
13470 | rm -f conftest* | |
13471 | LIBS="$ac_save_LIBS" | |
c63c7106 | 13472 | |
6232543b | 13473 | fi |
698dcdb6 VZ |
13474 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
13475 | echo "$ac_t""yes" 1>&6 | |
13476 | INET_LINK="resolv" | |
13477 | ||
13478 | else | |
13479 | echo "$ac_t""no" 1>&6 | |
13480 | fi | |
c63c7106 | 13481 | |
698dcdb6 | 13482 | |
1e487827 | 13483 | fi |
703e0a69 | 13484 | |
698dcdb6 VZ |
13485 | |
13486 | ||
10f2d63a VZ |
13487 | fi |
13488 | done | |
13489 | ||
698dcdb6 | 13490 | |
10f2d63a VZ |
13491 | for ac_func in inet_aton |
13492 | do | |
698dcdb6 | 13493 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3379ed37 | 13494 | echo "configure:13495: checking for $ac_func" >&5 |
698dcdb6 VZ |
13495 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13496 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13497 | else | |
13498 | cat > conftest.$ac_ext <<EOF | |
3379ed37 | 13499 | #line 13500 "configure" |
10f2d63a VZ |
13500 | #include "confdefs.h" |
13501 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13502 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
13503 | #include <assert.h> |
13504 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13505 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13506 | builtin and then its argument prototype would still apply. */ |
13507 | char $ac_func(); | |
13508 | ||
13509 | int main() { | |
10f2d63a VZ |
13510 | |
13511 | /* The GNU C library defines this for functions which it implements | |
13512 | to always fail with ENOSYS. Some functions are actually named | |
13513 | something starting with __ and the normal name is an alias. */ | |
13514 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13515 | choke me | |
13516 | #else | |
698dcdb6 | 13517 | $ac_func(); |
10f2d63a VZ |
13518 | #endif |
13519 | ||
698dcdb6 VZ |
13520 | ; return 0; } |
13521 | EOF | |
3379ed37 | 13522 | if { (eval echo configure:13523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13523 | rm -rf conftest* |
13524 | eval "ac_cv_func_$ac_func=yes" | |
13525 | else | |
13526 | echo "configure: failed program was:" >&5 | |
13527 | cat conftest.$ac_ext >&5 | |
13528 | rm -rf conftest* | |
13529 | eval "ac_cv_func_$ac_func=no" | |
13530 | fi | |
13531 | rm -f conftest* | |
13532 | fi | |
13533 | ||
13534 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13535 | echo "$ac_t""yes" 1>&6 | |
13536 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13537 | cat >> confdefs.h <<EOF | |
13538 | #define $ac_tr_func 1 | |
13539 | EOF | |
13540 | cat >> confdefs.h <<\EOF | |
c63c7106 VZ |
13541 | #define HAVE_INET_ATON 1 |
13542 | EOF | |
13543 | ||
10f2d63a | 13544 | else |
698dcdb6 VZ |
13545 | echo "$ac_t""no" 1>&6 |
13546 | echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6 | |
3379ed37 | 13547 | echo "configure:13548: checking for inet_aton in -l$INET_LINK" >&5 |
698dcdb6 VZ |
13548 | ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'` |
13549 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13550 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13551 | else |
698dcdb6 | 13552 | ac_save_LIBS="$LIBS" |
c63c7106 | 13553 | LIBS="-l$INET_LINK $LIBS" |
698dcdb6 | 13554 | cat > conftest.$ac_ext <<EOF |
3379ed37 | 13555 | #line 13556 "configure" |
10f2d63a VZ |
13556 | #include "confdefs.h" |
13557 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13558 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13559 | builtin and then its argument prototype would still apply. */ |
13560 | char inet_aton(); | |
13561 | ||
13562 | int main() { | |
13563 | inet_aton() | |
13564 | ; return 0; } | |
13565 | EOF | |
3379ed37 | 13566 | if { (eval echo configure:13567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13567 | rm -rf conftest* |
13568 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13569 | else | |
13570 | echo "configure: failed program was:" >&5 | |
13571 | cat conftest.$ac_ext >&5 | |
13572 | rm -rf conftest* | |
13573 | eval "ac_cv_lib_$ac_lib_var=no" | |
13574 | fi | |
13575 | rm -f conftest* | |
13576 | LIBS="$ac_save_LIBS" | |
13577 | ||
13578 | fi | |
13579 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13580 | echo "$ac_t""yes" 1>&6 | |
13581 | cat >> confdefs.h <<\EOF | |
c63c7106 | 13582 | #define HAVE_INET_ATON 1 |
10f2d63a VZ |
13583 | EOF |
13584 | ||
698dcdb6 VZ |
13585 | else |
13586 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13587 | fi |
13588 | ||
698dcdb6 | 13589 | |
c63c7106 VZ |
13590 | fi |
13591 | done | |
13592 | ||
698dcdb6 | 13593 | |
c63c7106 | 13594 | if test "x$INET_LINK" != "x"; then |
698dcdb6 | 13595 | cat >> confdefs.h <<\EOF |
c63c7106 VZ |
13596 | #define HAVE_INET_ADDR 1 |
13597 | EOF | |
13598 | ||
13599 | INET_LINK="-l$INET_LINK" | |
13600 | fi | |
10f2d63a VZ |
13601 | |
13602 | fi | |
13603 | ||
698dcdb6 VZ |
13604 | |
13605 | cat > confcache <<\EOF | |
10f2d63a VZ |
13606 | # This file is a shell script that caches the results of configure |
13607 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
13608 | # scripts and configure runs. It is not useful on other systems. |
13609 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 13610 | # |
698dcdb6 VZ |
13611 | # By default, configure uses ./config.cache as the cache file, |
13612 | # creating it if it does not exist already. You can give configure | |
13613 | # the --cache-file=FILE option to use a different cache file; that is | |
13614 | # what configure does when it calls configure scripts in | |
13615 | # subdirectories, so they share the cache. | |
13616 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
13617 | # config.status only pays attention to the cache file if you give it the | |
13618 | # --recheck option to rerun configure. | |
10f2d63a | 13619 | # |
698dcdb6 | 13620 | EOF |
10f2d63a VZ |
13621 | # The following way of writing the cache mishandles newlines in values, |
13622 | # but we know of no workaround that is simple, portable, and efficient. | |
13623 | # So, don't put newlines in cache variables' values. | |
13624 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
13625 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
13626 | (set) 2>&1 | |
13627 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
13628 | *ac_space=\ *) | |
13629 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
13630 | # turns \\\\ into \\, and sed turns \\ into \). | |
13631 | sed -n \ | |
13632 | -e "s/'/'\\\\''/g" \ | |
13633 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
13634 | ;; | |
13635 | *) | |
13636 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
13637 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
13638 | ;; | |
13639 | esac >> confcache | |
13640 | if cmp -s $cache_file confcache; then | |
13641 | : | |
13642 | else | |
10f2d63a | 13643 | if test -w $cache_file; then |
698dcdb6 VZ |
13644 | echo "updating cache $cache_file" |
13645 | cat confcache > $cache_file | |
10f2d63a VZ |
13646 | else |
13647 | echo "not updating unwritable cache $cache_file" | |
13648 | fi | |
13649 | fi | |
13650 | rm -f confcache | |
13651 | ||
698dcdb6 VZ |
13652 | |
13653 | ||
b089607b | 13654 | if test "$TOOLKIT" != "MSW"; then |
10f2d63a | 13655 | |
698dcdb6 | 13656 | |
10f2d63a VZ |
13657 | THREADS_LINK="" |
13658 | THREADS_OBJ="" | |
13659 | ||
13660 | if test "$wxUSE_THREADS" = "yes" ; then | |
13661 | if test "$wxUSE_WINE" = 1 ; then | |
698dcdb6 | 13662 | echo "configure: warning: Threads are not supported under WINE" 1>&2 |
10f2d63a | 13663 | wxUSE_THREADS="no" |
b12915c1 | 13664 | elif test "$USE_BEOS" = 1; then |
698dcdb6 | 13665 | echo "configure: warning: BeOS threads are not yet supported" 1>&2 |
b12915c1 | 13666 | wxUSE_THREADS="no" |
10f2d63a VZ |
13667 | fi |
13668 | fi | |
13669 | ||
13670 | if test "$wxUSE_THREADS" = "yes" ; then | |
698dcdb6 | 13671 | |
186837b0 | 13672 | if test "$USE_AIX" = 1; then |
f6bcfd97 BP |
13673 | THREADS_LIB=pthreads |
13674 | else | |
13675 | THREADS_LIB=pthread | |
13676 | fi | |
13677 | ||
698dcdb6 | 13678 | echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6 |
3379ed37 | 13679 | echo "configure:13680: checking for pthread_create in -l$THREADS_LIB" >&5 |
698dcdb6 VZ |
13680 | ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'` |
13681 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13682 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13683 | else |
698dcdb6 | 13684 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 13685 | LIBS="-l$THREADS_LIB $LIBS" |
698dcdb6 | 13686 | cat > conftest.$ac_ext <<EOF |
3379ed37 | 13687 | #line 13688 "configure" |
10f2d63a VZ |
13688 | #include "confdefs.h" |
13689 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13690 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13691 | builtin and then its argument prototype would still apply. */ |
13692 | char pthread_create(); | |
13693 | ||
13694 | int main() { | |
13695 | pthread_create() | |
13696 | ; return 0; } | |
13697 | EOF | |
3379ed37 | 13698 | if { (eval echo configure:13699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13699 | rm -rf conftest* |
13700 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13701 | else | |
13702 | echo "configure: failed program was:" >&5 | |
13703 | cat conftest.$ac_ext >&5 | |
13704 | rm -rf conftest* | |
13705 | eval "ac_cv_lib_$ac_lib_var=no" | |
13706 | fi | |
13707 | rm -f conftest* | |
13708 | LIBS="$ac_save_LIBS" | |
10f2d63a | 13709 | |
698dcdb6 VZ |
13710 | fi |
13711 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13712 | echo "$ac_t""yes" 1>&6 | |
13713 | ||
10f2d63a | 13714 | THREADS_OBJ="threadpsx.lo" |
f6bcfd97 | 13715 | THREADS_LINK=$THREADS_LIB |
698dcdb6 | 13716 | |
10f2d63a | 13717 | else |
698dcdb6 | 13718 | echo "$ac_t""no" 1>&6 |
10f2d63a | 13719 | |
698dcdb6 | 13720 | echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 |
3379ed37 | 13721 | echo "configure:13722: checking for pthread_create in -lc_r" >&5 |
698dcdb6 VZ |
13722 | ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` |
13723 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13724 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13725 | else |
698dcdb6 | 13726 | ac_save_LIBS="$LIBS" |
10f2d63a | 13727 | LIBS="-lc_r $LIBS" |
698dcdb6 | 13728 | cat > conftest.$ac_ext <<EOF |
3379ed37 | 13729 | #line 13730 "configure" |
10f2d63a VZ |
13730 | #include "confdefs.h" |
13731 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13732 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13733 | builtin and then its argument prototype would still apply. */ |
13734 | char pthread_create(); | |
13735 | ||
13736 | int main() { | |
13737 | pthread_create() | |
13738 | ; return 0; } | |
13739 | EOF | |
3379ed37 | 13740 | if { (eval echo configure:13741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13741 | rm -rf conftest* |
13742 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13743 | else | |
13744 | echo "configure: failed program was:" >&5 | |
13745 | cat conftest.$ac_ext >&5 | |
13746 | rm -rf conftest* | |
13747 | eval "ac_cv_lib_$ac_lib_var=no" | |
13748 | fi | |
13749 | rm -f conftest* | |
13750 | LIBS="$ac_save_LIBS" | |
10f2d63a | 13751 | |
698dcdb6 VZ |
13752 | fi |
13753 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13754 | echo "$ac_t""yes" 1>&6 | |
13755 | ||
10f2d63a VZ |
13756 | THREADS_OBJ="threadpsx.lo" |
13757 | THREADS_LINK="c_r" | |
698dcdb6 | 13758 | |
10f2d63a | 13759 | else |
698dcdb6 | 13760 | echo "$ac_t""no" 1>&6 |
10f2d63a | 13761 | |
698dcdb6 VZ |
13762 | ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'` |
13763 | echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6 | |
3379ed37 | 13764 | echo "configure:13765: checking for sys/prctl.h" >&5 |
698dcdb6 VZ |
13765 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13766 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13767 | else |
698dcdb6 | 13768 | cat > conftest.$ac_ext <<EOF |
3379ed37 | 13769 | #line 13770 "configure" |
10f2d63a VZ |
13770 | #include "confdefs.h" |
13771 | #include <sys/prctl.h> | |
698dcdb6 VZ |
13772 | EOF |
13773 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3379ed37 | 13774 | { (eval echo configure:13775: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13775 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13776 | if test -z "$ac_err"; then | |
13777 | rm -rf conftest* | |
13778 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 13779 | else |
698dcdb6 VZ |
13780 | echo "$ac_err" >&5 |
13781 | echo "configure: failed program was:" >&5 | |
10f2d63a | 13782 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13783 | rm -rf conftest* |
13784 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 13785 | fi |
698dcdb6 | 13786 | rm -f conftest* |
10f2d63a | 13787 | fi |
698dcdb6 VZ |
13788 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13789 | echo "$ac_t""yes" 1>&6 | |
13790 | ||
1f8ae82f | 13791 | THREADS_OBJ="threadsgi.lo" |
698dcdb6 VZ |
13792 | |
13793 | else | |
13794 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13795 | fi |
13796 | ||
698dcdb6 | 13797 | |
6232543b | 13798 | fi |
10f2d63a | 13799 | |
698dcdb6 | 13800 | |
1e487827 | 13801 | fi |
703e0a69 | 13802 | |
698dcdb6 | 13803 | |
10f2d63a VZ |
13804 | if test -z "$THREADS_OBJ" ; then |
13805 | wxUSE_THREADS=no | |
698dcdb6 | 13806 | echo "configure: warning: No thread support on this system" 1>&2 |
10f2d63a VZ |
13807 | fi |
13808 | fi | |
13809 | ||
13810 | if test "$wxUSE_THREADS" = "yes" ; then | |
698dcdb6 | 13811 | for ac_func in thr_setconcurrency |
70846f0a | 13812 | do |
698dcdb6 | 13813 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3379ed37 | 13814 | echo "configure:13815: checking for $ac_func" >&5 |
698dcdb6 VZ |
13815 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13816 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13817 | else | |
13818 | cat > conftest.$ac_ext <<EOF | |
3379ed37 | 13819 | #line 13820 "configure" |
70846f0a VZ |
13820 | #include "confdefs.h" |
13821 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13822 | which can conflict with char $ac_func(); below. */ |
70846f0a VZ |
13823 | #include <assert.h> |
13824 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13825 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13826 | builtin and then its argument prototype would still apply. */ |
13827 | char $ac_func(); | |
13828 | ||
13829 | int main() { | |
70846f0a VZ |
13830 | |
13831 | /* The GNU C library defines this for functions which it implements | |
13832 | to always fail with ENOSYS. Some functions are actually named | |
13833 | something starting with __ and the normal name is an alias. */ | |
13834 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13835 | choke me | |
13836 | #else | |
698dcdb6 | 13837 | $ac_func(); |
70846f0a VZ |
13838 | #endif |
13839 | ||
698dcdb6 | 13840 | ; return 0; } |
70846f0a | 13841 | EOF |
3379ed37 | 13842 | if { (eval echo configure:13843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13843 | rm -rf conftest* |
13844 | eval "ac_cv_func_$ac_func=yes" | |
13845 | else | |
13846 | echo "configure: failed program was:" >&5 | |
13847 | cat conftest.$ac_ext >&5 | |
13848 | rm -rf conftest* | |
13849 | eval "ac_cv_func_$ac_func=no" | |
13850 | fi | |
13851 | rm -f conftest* | |
13852 | fi | |
70846f0a | 13853 | |
698dcdb6 VZ |
13854 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
13855 | echo "$ac_t""yes" 1>&6 | |
13856 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13857 | cat >> confdefs.h <<EOF | |
13858 | #define $ac_tr_func 1 | |
13859 | EOF | |
13860 | ||
13861 | else | |
13862 | echo "$ac_t""no" 1>&6 | |
70846f0a VZ |
13863 | fi |
13864 | done | |
13865 | ||
698dcdb6 VZ |
13866 | |
13867 | ||
13868 | for ac_hdr in sched.h | |
10f2d63a | 13869 | do |
698dcdb6 VZ |
13870 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
13871 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3379ed37 | 13872 | echo "configure:13873: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
13873 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13874 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13875 | else | |
13876 | cat > conftest.$ac_ext <<EOF | |
3379ed37 | 13877 | #line 13878 "configure" |
10f2d63a | 13878 | #include "confdefs.h" |
698dcdb6 VZ |
13879 | #include <$ac_hdr> |
13880 | EOF | |
13881 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3379ed37 | 13882 | { (eval echo configure:13883: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13883 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13884 | if test -z "$ac_err"; then | |
13885 | rm -rf conftest* | |
13886 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 13887 | else |
698dcdb6 VZ |
13888 | echo "$ac_err" >&5 |
13889 | echo "configure: failed program was:" >&5 | |
10f2d63a | 13890 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13891 | rm -rf conftest* |
13892 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 13893 | fi |
698dcdb6 | 13894 | rm -f conftest* |
10f2d63a | 13895 | fi |
698dcdb6 VZ |
13896 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13897 | echo "$ac_t""yes" 1>&6 | |
13898 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13899 | cat >> confdefs.h <<EOF | |
13900 | #define $ac_tr_hdr 1 | |
10f2d63a | 13901 | EOF |
698dcdb6 VZ |
13902 | |
13903 | else | |
13904 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13905 | fi |
13906 | done | |
13907 | ||
698dcdb6 VZ |
13908 | |
13909 | echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6 | |
3379ed37 | 13910 | echo "configure:13911: checking for sched_yield in -l$THREADS_LINK" >&5 |
698dcdb6 VZ |
13911 | ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'` |
13912 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13913 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13914 | else |
698dcdb6 | 13915 | ac_save_LIBS="$LIBS" |
10f2d63a | 13916 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 13917 | cat > conftest.$ac_ext <<EOF |
3379ed37 | 13918 | #line 13919 "configure" |
10f2d63a VZ |
13919 | #include "confdefs.h" |
13920 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13921 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13922 | builtin and then its argument prototype would still apply. */ |
13923 | char sched_yield(); | |
13924 | ||
13925 | int main() { | |
13926 | sched_yield() | |
13927 | ; return 0; } | |
13928 | EOF | |
3379ed37 | 13929 | if { (eval echo configure:13930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13930 | rm -rf conftest* |
13931 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13932 | else | |
13933 | echo "configure: failed program was:" >&5 | |
13934 | cat conftest.$ac_ext >&5 | |
13935 | rm -rf conftest* | |
13936 | eval "ac_cv_lib_$ac_lib_var=no" | |
13937 | fi | |
13938 | rm -f conftest* | |
13939 | LIBS="$ac_save_LIBS" | |
13940 | ||
13941 | fi | |
13942 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13943 | echo "$ac_t""yes" 1>&6 | |
13944 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
13945 | #define HAVE_SCHED_YIELD 1 |
13946 | EOF | |
13947 | ||
13948 | else | |
698dcdb6 VZ |
13949 | echo "$ac_t""no" 1>&6 |
13950 | echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6 | |
3379ed37 | 13951 | echo "configure:13952: checking for sched_yield in -lposix4" >&5 |
698dcdb6 VZ |
13952 | ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'` |
13953 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13954 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13955 | else |
698dcdb6 | 13956 | ac_save_LIBS="$LIBS" |
1e487827 | 13957 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 13958 | cat > conftest.$ac_ext <<EOF |
3379ed37 | 13959 | #line 13960 "configure" |
10f2d63a VZ |
13960 | #include "confdefs.h" |
13961 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13962 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13963 | builtin and then its argument prototype would still apply. */ |
13964 | char sched_yield(); | |
13965 | ||
13966 | int main() { | |
13967 | sched_yield() | |
13968 | ; return 0; } | |
13969 | EOF | |
3379ed37 | 13970 | if { (eval echo configure:13971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13971 | rm -rf conftest* |
13972 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13973 | else | |
13974 | echo "configure: failed program was:" >&5 | |
13975 | cat conftest.$ac_ext >&5 | |
13976 | rm -rf conftest* | |
13977 | eval "ac_cv_lib_$ac_lib_var=no" | |
13978 | fi | |
13979 | rm -f conftest* | |
13980 | LIBS="$ac_save_LIBS" | |
13981 | ||
13982 | fi | |
13983 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13984 | echo "$ac_t""yes" 1>&6 | |
13985 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
13986 | #define HAVE_SCHED_YIELD 1 |
13987 | EOF | |
13988 | POSIX4_LINK="-lposix4" | |
13989 | else | |
698dcdb6 VZ |
13990 | echo "$ac_t""no" 1>&6 |
13991 | echo "configure: warning: wxThread::Yield will not work properly" 1>&2 | |
13992 | ||
6232543b | 13993 | fi |
10f2d63a | 13994 | |
698dcdb6 | 13995 | |
1e487827 | 13996 | fi |
703e0a69 | 13997 | |
698dcdb6 | 13998 | |
f6bcfd97 | 13999 | HAVE_PRIOR_FUNCS=0 |
698dcdb6 | 14000 | echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6 |
3379ed37 | 14001 | echo "configure:14002: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5 |
698dcdb6 VZ |
14002 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'` |
14003 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14004 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14005 | else |
698dcdb6 | 14006 | ac_save_LIBS="$LIBS" |
10f2d63a | 14007 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 14008 | cat > conftest.$ac_ext <<EOF |
3379ed37 | 14009 | #line 14010 "configure" |
10f2d63a VZ |
14010 | #include "confdefs.h" |
14011 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14012 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14013 | builtin and then its argument prototype would still apply. */ |
14014 | char pthread_attr_getschedpolicy(); | |
14015 | ||
14016 | int main() { | |
14017 | pthread_attr_getschedpolicy() | |
14018 | ; return 0; } | |
14019 | EOF | |
3379ed37 | 14020 | if { (eval echo configure:14021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14021 | rm -rf conftest* |
14022 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14023 | else | |
14024 | echo "configure: failed program was:" >&5 | |
14025 | cat conftest.$ac_ext >&5 | |
14026 | rm -rf conftest* | |
14027 | eval "ac_cv_lib_$ac_lib_var=no" | |
14028 | fi | |
14029 | rm -f conftest* | |
14030 | LIBS="$ac_save_LIBS" | |
14031 | ||
14032 | fi | |
14033 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14034 | echo "$ac_t""yes" 1>&6 | |
14035 | echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6 | |
3379ed37 | 14036 | echo "configure:14037: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5 |
698dcdb6 VZ |
14037 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'` |
14038 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14039 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14040 | else | |
14041 | ac_save_LIBS="$LIBS" | |
f6bcfd97 | 14042 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 14043 | cat > conftest.$ac_ext <<EOF |
3379ed37 | 14044 | #line 14045 "configure" |
f6bcfd97 BP |
14045 | #include "confdefs.h" |
14046 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14047 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14048 | builtin and then its argument prototype would still apply. */ |
14049 | char pthread_attr_setschedparam(); | |
14050 | ||
14051 | int main() { | |
14052 | pthread_attr_setschedparam() | |
14053 | ; return 0; } | |
14054 | EOF | |
3379ed37 | 14055 | if { (eval echo configure:14056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14056 | rm -rf conftest* |
14057 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14058 | else | |
14059 | echo "configure: failed program was:" >&5 | |
14060 | cat conftest.$ac_ext >&5 | |
14061 | rm -rf conftest* | |
14062 | eval "ac_cv_lib_$ac_lib_var=no" | |
14063 | fi | |
14064 | rm -f conftest* | |
14065 | LIBS="$ac_save_LIBS" | |
14066 | ||
14067 | fi | |
14068 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14069 | echo "$ac_t""yes" 1>&6 | |
14070 | echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6 | |
3379ed37 | 14071 | echo "configure:14072: checking for sched_get_priority_max in -l$THREADS_LINK" >&5 |
698dcdb6 VZ |
14072 | ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
14073 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14074 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14075 | else | |
14076 | ac_save_LIBS="$LIBS" | |
f6bcfd97 | 14077 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 14078 | cat > conftest.$ac_ext <<EOF |
3379ed37 | 14079 | #line 14080 "configure" |
f6bcfd97 BP |
14080 | #include "confdefs.h" |
14081 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14082 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14083 | builtin and then its argument prototype would still apply. */ |
14084 | char sched_get_priority_max(); | |
14085 | ||
14086 | int main() { | |
14087 | sched_get_priority_max() | |
14088 | ; return 0; } | |
14089 | EOF | |
3379ed37 | 14090 | if { (eval echo configure:14091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14091 | rm -rf conftest* |
14092 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14093 | else | |
14094 | echo "configure: failed program was:" >&5 | |
14095 | cat conftest.$ac_ext >&5 | |
14096 | rm -rf conftest* | |
14097 | eval "ac_cv_lib_$ac_lib_var=no" | |
14098 | fi | |
14099 | rm -f conftest* | |
14100 | LIBS="$ac_save_LIBS" | |
14101 | ||
14102 | fi | |
14103 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14104 | echo "$ac_t""yes" 1>&6 | |
f6bcfd97 | 14105 | HAVE_PRIOR_FUNCS=1 |
10f2d63a | 14106 | else |
698dcdb6 VZ |
14107 | echo "$ac_t""no" 1>&6 |
14108 | echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6 | |
3379ed37 | 14109 | echo "configure:14110: checking for sched_get_priority_max in -lposix4" >&5 |
698dcdb6 VZ |
14110 | ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
14111 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14112 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 14113 | else |
698dcdb6 | 14114 | ac_save_LIBS="$LIBS" |
1e487827 | 14115 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 14116 | cat > conftest.$ac_ext <<EOF |
3379ed37 | 14117 | #line 14118 "configure" |
10f2d63a | 14118 | #include "confdefs.h" |
6232543b | 14119 | /* Override any gcc2 internal prototype to avoid an error. */ |
6232543b | 14120 | /* We use char because int might match the return type of a gcc2 |
698dcdb6 VZ |
14121 | builtin and then its argument prototype would still apply. */ |
14122 | char sched_get_priority_max(); | |
14123 | ||
14124 | int main() { | |
14125 | sched_get_priority_max() | |
14126 | ; return 0; } | |
14127 | EOF | |
3379ed37 | 14128 | if { (eval echo configure:14129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14129 | rm -rf conftest* |
14130 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14131 | else | |
14132 | echo "configure: failed program was:" >&5 | |
14133 | cat conftest.$ac_ext >&5 | |
14134 | rm -rf conftest* | |
14135 | eval "ac_cv_lib_$ac_lib_var=no" | |
14136 | fi | |
14137 | rm -f conftest* | |
14138 | LIBS="$ac_save_LIBS" | |
10f2d63a | 14139 | |
698dcdb6 VZ |
14140 | fi |
14141 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14142 | echo "$ac_t""yes" 1>&6 | |
14143 | ||
f6bcfd97 BP |
14144 | HAVE_PRIOR_FUNCS=1 |
14145 | POSIX4_LINK="-lposix4" | |
698dcdb6 VZ |
14146 | |
14147 | else | |
14148 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
14149 | fi |
14150 | ||
698dcdb6 | 14151 | |
10f2d63a VZ |
14152 | fi |
14153 | ||
698dcdb6 VZ |
14154 | |
14155 | else | |
14156 | echo "$ac_t""no" 1>&6 | |
6232543b | 14157 | fi |
10f2d63a | 14158 | |
698dcdb6 VZ |
14159 | |
14160 | else | |
14161 | echo "$ac_t""no" 1>&6 | |
1e487827 | 14162 | fi |
703e0a69 | 14163 | |
698dcdb6 | 14164 | |
f6bcfd97 | 14165 | if test "$HAVE_PRIOR_FUNCS" = 1; then |
698dcdb6 | 14166 | cat >> confdefs.h <<\EOF |
f6bcfd97 BP |
14167 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 |
14168 | EOF | |
14169 | ||
14170 | else | |
698dcdb6 | 14171 | echo "configure: warning: Setting thread priority will not work" 1>&2 |
f6bcfd97 BP |
14172 | fi |
14173 | ||
698dcdb6 | 14174 | echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6 |
3379ed37 | 14175 | echo "configure:14176: checking for pthread_cancel in -l$THREADS_LINK" >&5 |
698dcdb6 VZ |
14176 | ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'` |
14177 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14178 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14179 | else |
698dcdb6 | 14180 | ac_save_LIBS="$LIBS" |
10f2d63a | 14181 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 14182 | cat > conftest.$ac_ext <<EOF |
3379ed37 | 14183 | #line 14184 "configure" |
10f2d63a VZ |
14184 | #include "confdefs.h" |
14185 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14186 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14187 | builtin and then its argument prototype would still apply. */ |
14188 | char pthread_cancel(); | |
14189 | ||
14190 | int main() { | |
14191 | pthread_cancel() | |
14192 | ; return 0; } | |
14193 | EOF | |
3379ed37 | 14194 | if { (eval echo configure:14195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14195 | rm -rf conftest* |
14196 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14197 | else | |
14198 | echo "configure: failed program was:" >&5 | |
14199 | cat conftest.$ac_ext >&5 | |
14200 | rm -rf conftest* | |
14201 | eval "ac_cv_lib_$ac_lib_var=no" | |
14202 | fi | |
14203 | rm -f conftest* | |
14204 | LIBS="$ac_save_LIBS" | |
14205 | ||
14206 | fi | |
14207 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14208 | echo "$ac_t""yes" 1>&6 | |
14209 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
14210 | #define HAVE_PTHREAD_CANCEL 1 |
14211 | EOF | |
14212 | ||
14213 | else | |
698dcdb6 VZ |
14214 | echo "$ac_t""no" 1>&6 |
14215 | echo "configure: warning: wxThread::Kill() will not work properly" 1>&2 | |
10f2d63a VZ |
14216 | fi |
14217 | ||
1e487827 | 14218 | |
698dcdb6 | 14219 | echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6 |
3379ed37 | 14220 | echo "configure:14221: checking for pthread_cleanup_push/pop" >&5 |
698dcdb6 VZ |
14221 | if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then |
14222 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14223 | else | |
14224 | ||
14225 | cat > conftest.$ac_ext <<EOF | |
3379ed37 | 14226 | #line 14227 "configure" |
10f2d63a VZ |
14227 | #include "confdefs.h" |
14228 | #include <pthread.h> | |
698dcdb6 | 14229 | int main() { |
10f2d63a VZ |
14230 | |
14231 | pthread_cleanup_push(NULL, NULL); | |
14232 | pthread_cleanup_pop(0); | |
698dcdb6 VZ |
14233 | |
14234 | ; return 0; } | |
14235 | EOF | |
3379ed37 | 14236 | if { (eval echo configure:14237: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
14237 | rm -rf conftest* |
14238 | ||
10f2d63a | 14239 | wx_cv_func_pthread_cleanup_push=yes |
698dcdb6 | 14240 | |
10f2d63a | 14241 | else |
698dcdb6 VZ |
14242 | echo "configure: failed program was:" >&5 |
14243 | cat conftest.$ac_ext >&5 | |
14244 | rm -rf conftest* | |
14245 | ||
10f2d63a | 14246 | wx_cv_func_pthread_cleanup_push=no |
698dcdb6 | 14247 | |
6232543b | 14248 | fi |
698dcdb6 VZ |
14249 | rm -f conftest* |
14250 | ||
1e487827 | 14251 | fi |
698dcdb6 VZ |
14252 | |
14253 | echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6 | |
10f2d63a | 14254 | |
d9b9876f | 14255 | if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then |
698dcdb6 | 14256 | cat >> confdefs.h <<\EOF |
d9b9876f VZ |
14257 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 |
14258 | EOF | |
14259 | ||
14260 | fi | |
14261 | ||
698dcdb6 VZ |
14262 | |
14263 | echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6 | |
3379ed37 | 14264 | echo "configure:14265: checking for pthread_mutexattr_t" >&5 |
698dcdb6 VZ |
14265 | if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then |
14266 | echo $ac_n "(cached) $ac_c" 1>&6 | |
d9b9876f | 14267 | else |
698dcdb6 VZ |
14268 | |
14269 | cat > conftest.$ac_ext <<EOF | |
3379ed37 | 14270 | #line 14271 "configure" |
d9b9876f VZ |
14271 | #include "confdefs.h" |
14272 | #include <pthread.h> | |
698dcdb6 | 14273 | int main() { |
d9b9876f VZ |
14274 | |
14275 | pthread_mutexattr_t attr; | |
14276 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
698dcdb6 VZ |
14277 | |
14278 | ; return 0; } | |
14279 | EOF | |
3379ed37 | 14280 | if { (eval echo configure:14281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
14281 | rm -rf conftest* |
14282 | ||
d9b9876f | 14283 | wx_cv_type_pthread_mutexattr_t=yes |
698dcdb6 | 14284 | |
d9b9876f | 14285 | else |
698dcdb6 VZ |
14286 | echo "configure: failed program was:" >&5 |
14287 | cat conftest.$ac_ext >&5 | |
14288 | rm -rf conftest* | |
14289 | ||
d9b9876f | 14290 | wx_cv_type_pthread_mutexattr_t=no |
698dcdb6 VZ |
14291 | |
14292 | ||
6232543b | 14293 | fi |
698dcdb6 VZ |
14294 | rm -f conftest* |
14295 | ||
1e487827 | 14296 | fi |
698dcdb6 VZ |
14297 | |
14298 | echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6 | |
d9b9876f VZ |
14299 | |
14300 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then | |
698dcdb6 | 14301 | cat >> confdefs.h <<\EOF |
d9b9876f VZ |
14302 | #define HAVE_PTHREAD_MUTEXATTR_T 1 |
14303 | EOF | |
14304 | ||
14305 | else | |
698dcdb6 | 14306 | echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6 |
3379ed37 | 14307 | echo "configure:14308: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 |
698dcdb6 VZ |
14308 | if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then |
14309 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14310 | else | |
14311 | ||
14312 | cat > conftest.$ac_ext <<EOF | |
3379ed37 | 14313 | #line 14314 "configure" |
d9b9876f VZ |
14314 | #include "confdefs.h" |
14315 | #include <pthread.h> | |
698dcdb6 | 14316 | int main() { |
d9b9876f VZ |
14317 | |
14318 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; | |
698dcdb6 VZ |
14319 | |
14320 | ; return 0; } | |
14321 | EOF | |
3379ed37 | 14322 | if { (eval echo configure:14323: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
14323 | rm -rf conftest* |
14324 | ||
d9b9876f | 14325 | wx_cv_type_pthread_rec_mutex_init=yes |
698dcdb6 | 14326 | |
d9b9876f | 14327 | else |
698dcdb6 VZ |
14328 | echo "configure: failed program was:" >&5 |
14329 | cat conftest.$ac_ext >&5 | |
14330 | rm -rf conftest* | |
14331 | ||
d9b9876f | 14332 | wx_cv_type_pthread_rec_mutex_init=no |
698dcdb6 VZ |
14333 | |
14334 | ||
6232543b | 14335 | fi |
698dcdb6 VZ |
14336 | rm -f conftest* |
14337 | ||
1e487827 | 14338 | fi |
698dcdb6 VZ |
14339 | |
14340 | echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6 | |
3765e936 | 14341 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then |
698dcdb6 | 14342 | cat >> confdefs.h <<\EOF |
d9b9876f VZ |
14343 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 |
14344 | EOF | |
14345 | ||
14346 | else | |
698dcdb6 | 14347 | echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2 |
d9b9876f VZ |
14348 | fi |
14349 | fi | |
14350 | ||
10f2d63a | 14351 | THREADS_LINK="-l$THREADS_LINK" |
186837b0 VZ |
14352 | |
14353 | if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then | |
14354 | CFLAGS="${CFLAGS} -mt" | |
14355 | CXXFLAGS="${CXXFLAGS} -mt" | |
14356 | LDFLAGS="${LDFLAGS} -mt" | |
14357 | fi | |
10f2d63a VZ |
14358 | fi |
14359 | ||
14360 | fi | |
14361 | ||
14362 | if test "$wxUSE_THREADS" = "yes"; then | |
698dcdb6 | 14363 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
14364 | #define wxUSE_THREADS 1 |
14365 | EOF | |
14366 | ||
698dcdb6 | 14367 | |
2c6025bc | 14368 | if test "$wxUSE_MAC" = "0"; then |
10f2d63a | 14369 | CFLAGS="${CFLAGS} -D_REENTRANT" |
2c6025bc GD |
14370 | CXXFLAGS="${CXXFLAGS} -D_REENTRANT" |
14371 | fi | |
10f2d63a VZ |
14372 | |
14373 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
14374 | else | |
14375 | if test "$ac_cv_func_strtok_r" = "yes"; then | |
698dcdb6 | 14376 | echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6 |
3379ed37 | 14377 | echo "configure:14378: checking if -D_REENTRANT is needed" >&5 |
ab9b9eab VZ |
14378 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
14379 | CFLAGS="${CFLAGS} -D_REENTRANT" | |
14380 | CXXFLAGS="${CXXFLAGS} -D_REENTRANT" | |
698dcdb6 | 14381 | echo "$ac_t""yes" 1>&6 |
ab9b9eab | 14382 | else |
698dcdb6 | 14383 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
14384 | fi |
14385 | fi | |
14386 | fi | |
14387 | ||
6f72b082 | 14388 | if test "$WXGTK20" = 1 ; then |
698dcdb6 | 14389 | cat >> confdefs.h <<EOF |
6f72b082 | 14390 | #define __WXGTK20__ $WXGTK20 |
13111b2a VZ |
14391 | EOF |
14392 | ||
14393 | WXGTK12=1 | |
14394 | fi | |
14395 | ||
10f2d63a | 14396 | if test "$WXGTK12" = 1 ; then |
698dcdb6 | 14397 | cat >> confdefs.h <<EOF |
10f2d63a VZ |
14398 | #define __WXGTK12__ $WXGTK12 |
14399 | EOF | |
14400 | ||
14401 | fi | |
14402 | ||
f6bcfd97 | 14403 | if test "$WXGTK127" = 1 ; then |
698dcdb6 | 14404 | cat >> confdefs.h <<EOF |
f6bcfd97 BP |
14405 | #define __WXGTK127__ $WXGTK127 |
14406 | EOF | |
14407 | ||
14408 | fi | |
14409 | ||
10f2d63a VZ |
14410 | if test "$WXWINE" = 1 ; then |
14411 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__" | |
14412 | fi | |
14413 | ||
b4085ce6 | 14414 | if test "$wxUSE_MAC" = 1 ; then |
2c6025bc | 14415 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__UNIX__ -D__POWERPC__ -DTARGET_CARBON" |
ea5999b9 | 14416 | CFLAGS="${CFLAGS} -fno-common -fpascal-strings" |
0c451ef3 | 14417 | CPPFLAGS="${CPPFLAGS} -cpp-precomp -fno-common -fpascal-strings" |
2f51a9ec GD |
14418 | # Extract the first word of "Rez", so it can be a program name with args. |
14419 | set dummy Rez; ac_word=$2 | |
698dcdb6 | 14420 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
3379ed37 | 14421 | echo "configure:14422: checking for $ac_word" >&5 |
698dcdb6 VZ |
14422 | if eval "test \"`echo '$''{'ac_cv_prog_REZ'+set}'`\" = set"; then |
14423 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2f51a9ec GD |
14424 | else |
14425 | if test -n "$REZ"; then | |
14426 | ac_cv_prog_REZ="$REZ" # Let the user override the test. | |
14427 | else | |
698dcdb6 VZ |
14428 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
14429 | ac_dummy="$PATH" | |
14430 | for ac_dir in $ac_dummy; do | |
14431 | test -z "$ac_dir" && ac_dir=. | |
14432 | if test -f $ac_dir/$ac_word; then | |
14433 | ac_cv_prog_REZ="Rez" | |
14434 | break | |
14435 | fi | |
14436 | done | |
14437 | IFS="$ac_save_ifs" | |
2f51a9ec GD |
14438 | test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez" |
14439 | fi | |
14440 | fi | |
698dcdb6 | 14441 | REZ="$ac_cv_prog_REZ" |
2f51a9ec | 14442 | if test -n "$REZ"; then |
698dcdb6 | 14443 | echo "$ac_t""$REZ" 1>&6 |
2f51a9ec | 14444 | else |
698dcdb6 | 14445 | echo "$ac_t""no" 1>&6 |
2f51a9ec GD |
14446 | fi |
14447 | ||
14448 | # Extract the first word of "Derez", so it can be a program name with args. | |
14449 | set dummy Derez; ac_word=$2 | |
698dcdb6 | 14450 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
3379ed37 | 14451 | echo "configure:14452: checking for $ac_word" >&5 |
698dcdb6 VZ |
14452 | if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then |
14453 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2f51a9ec GD |
14454 | else |
14455 | if test -n "$DEREZ"; then | |
14456 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
14457 | else | |
698dcdb6 VZ |
14458 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
14459 | ac_dummy="$PATH" | |
14460 | for ac_dir in $ac_dummy; do | |
14461 | test -z "$ac_dir" && ac_dir=. | |
14462 | if test -f $ac_dir/$ac_word; then | |
14463 | ac_cv_prog_DEREZ="Derez" | |
14464 | break | |
14465 | fi | |
14466 | done | |
14467 | IFS="$ac_save_ifs" | |
2f51a9ec GD |
14468 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/Derez" |
14469 | fi | |
14470 | fi | |
698dcdb6 | 14471 | DEREZ="$ac_cv_prog_DEREZ" |
2f51a9ec | 14472 | if test -n "$DEREZ"; then |
698dcdb6 | 14473 | echo "$ac_t""$DEREZ" 1>&6 |
2f51a9ec | 14474 | else |
698dcdb6 | 14475 | echo "$ac_t""no" 1>&6 |
2f51a9ec GD |
14476 | fi |
14477 | ||
14478 | RESCOMP=${REZ} | |
14479 | REZFLAGS="-d __UNIX__ -useDF" | |
14480 | DEREZFLAGS="Carbon.r -useDF" | |
14481 | RESFLAGS="Carbon.r -t APPL" | |
14482 | LIBWXMACRES="\$(LIBWX_MACRES)" | |
14483 | LIBWXMACRESCOMP="\$(LIBWX_MACRESCOMP)" | |
b4085ce6 GD |
14484 | fi |
14485 | ||
10f2d63a VZ |
14486 | if test "$wxUSE_CYGWIN" = 1 ; then |
14487 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__" | |
14488 | fi | |
14489 | ||
14490 | WXDEBUG= | |
14491 | ||
14492 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
14493 | WXDEBUG="-g" | |
14494 | wxUSE_OPTIMISE=no | |
14495 | fi | |
14496 | ||
14497 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
14498 | wxUSE_DEBUG_INFO=yes | |
14499 | WXDEBUG="-ggdb" | |
14500 | fi | |
14501 | ||
14502 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
698dcdb6 | 14503 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
14504 | #define WXDEBUG 1 |
14505 | EOF | |
14506 | ||
14507 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
14508 | else | |
14509 | if test "$wxUSE_GTK" = 1 ; then | |
14510 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
14511 | fi | |
14512 | fi | |
14513 | ||
14514 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
698dcdb6 | 14515 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
14516 | #define wxUSE_MEMORY_TRACING 1 |
14517 | EOF | |
14518 | ||
698dcdb6 | 14519 | cat >> confdefs.h <<\EOF |
10f2d63a | 14520 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 |
47c13eb7 VS |
14521 | EOF |
14522 | ||
698dcdb6 | 14523 | cat >> confdefs.h <<\EOF |
47c13eb7 | 14524 | #define wxUSE_DEBUG_NEW_ALWAYS 1 |
10f2d63a VZ |
14525 | EOF |
14526 | ||
14527 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
14528 | fi | |
14529 | ||
14530 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
14531 | DMALLOC_LINK="-ldmalloc" | |
14532 | fi | |
14533 | ||
14534 | PROFILE= | |
14535 | if test "$wxUSE_PROFILE" = "yes" ; then | |
14536 | PROFILE="-pg" | |
14537 | fi | |
14538 | ||
14539 | DEP_INFO_FLAGS= | |
caa2c79b | 14540 | CODE_GEN_FLAGS= |
0f3f1cbc | 14541 | CODE_GEN_FLAGS_CXX= |
10f2d63a VZ |
14542 | if test "$GCC" = yes ; then |
14543 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
0f3f1cbc | 14544 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-rtti" |
10f2d63a VZ |
14545 | fi |
14546 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
0f3f1cbc | 14547 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-exceptions" |
10f2d63a VZ |
14548 | fi |
14549 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
caa2c79b | 14550 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" |
10f2d63a VZ |
14551 | fi |
14552 | if test "$wxUSE_NO_DEPS" = "no" ; then | |
14553 | DEP_INFO_FLAGS="-MMD" | |
14554 | fi | |
14555 | fi | |
14556 | ||
698dcdb6 | 14557 | |
10f2d63a VZ |
14558 | CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" ` |
14559 | CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" ` | |
14560 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
14561 | OPTIMISE= | |
14562 | else | |
14563 | if test "$GCC" = yes ; then | |
14564 | OPTIMISE="-O2" | |
14565 | case "${host}" in | |
14566 | i586-*-*|i686-*-* ) | |
14567 | OPTIMISE="${OPTIMISE} " | |
14568 | ;; | |
14569 | esac | |
14570 | else | |
14571 | OPTIMISE="-O" | |
14572 | fi | |
14573 | fi | |
14574 | ||
54276ccf VZ |
14575 | if test "$WXWIN_COMPATIBILITY_2" = "yes"; then |
14576 | cat >> confdefs.h <<\EOF | |
14577 | #define WXWIN_COMPATIBILITY_2 1 | |
14578 | EOF | |
14579 | ||
14580 | ||
14581 | WXWIN_COMPATIBILITY_2_2="yes" | |
14582 | fi | |
14583 | ||
14584 | if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then | |
14585 | cat >> confdefs.h <<\EOF | |
14586 | #define WXWIN_COMPATIBILITY_2_2 1 | |
14587 | EOF | |
14588 | ||
14589 | fi | |
14590 | ||
698dcdb6 | 14591 | |
10f2d63a | 14592 | ZLIB_INCLUDE= |
422107f9 | 14593 | if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then |
698dcdb6 | 14594 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
14595 | #define wxUSE_ZLIB 1 |
14596 | EOF | |
14597 | ||
422107f9 VZ |
14598 | if test "$wxUSE_ZLIB" = "yes" ; then |
14599 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
14600 | else | |
14601 | ZLIB_LINK= | |
698dcdb6 VZ |
14602 | ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'` |
14603 | echo $ac_n "checking for zlib.h""... $ac_c" 1>&6 | |
3379ed37 | 14604 | echo "configure:14605: checking for zlib.h" >&5 |
698dcdb6 VZ |
14605 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
14606 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14607 | else | |
14608 | cat > conftest.$ac_ext <<EOF | |
3379ed37 | 14609 | #line 14610 "configure" |
422107f9 VZ |
14610 | #include "confdefs.h" |
14611 | #include <zlib.h> | |
698dcdb6 VZ |
14612 | EOF |
14613 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3379ed37 | 14614 | { (eval echo configure:14615: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
14615 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14616 | if test -z "$ac_err"; then | |
14617 | rm -rf conftest* | |
14618 | eval "ac_cv_header_$ac_safe=yes" | |
422107f9 | 14619 | else |
698dcdb6 VZ |
14620 | echo "$ac_err" >&5 |
14621 | echo "configure: failed program was:" >&5 | |
422107f9 | 14622 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
14623 | rm -rf conftest* |
14624 | eval "ac_cv_header_$ac_safe=no" | |
422107f9 | 14625 | fi |
698dcdb6 | 14626 | rm -f conftest* |
422107f9 | 14627 | fi |
698dcdb6 VZ |
14628 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
14629 | echo "$ac_t""yes" 1>&6 | |
14630 | echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6 | |
3379ed37 | 14631 | echo "configure:14632: checking for deflate in -lz" >&5 |
698dcdb6 VZ |
14632 | ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'` |
14633 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14634 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 14635 | else |
698dcdb6 | 14636 | ac_save_LIBS="$LIBS" |
422107f9 | 14637 | LIBS="-lz $LIBS" |
698dcdb6 | 14638 | cat > conftest.$ac_ext <<EOF |
3379ed37 | 14639 | #line 14640 "configure" |
422107f9 VZ |
14640 | #include "confdefs.h" |
14641 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14642 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14643 | builtin and then its argument prototype would still apply. */ |
14644 | char deflate(); | |
14645 | ||
14646 | int main() { | |
14647 | deflate() | |
14648 | ; return 0; } | |
14649 | EOF | |
3379ed37 | 14650 | if { (eval echo configure:14651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14651 | rm -rf conftest* |
14652 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14653 | else | |
14654 | echo "configure: failed program was:" >&5 | |
14655 | cat conftest.$ac_ext >&5 | |
14656 | rm -rf conftest* | |
14657 | eval "ac_cv_lib_$ac_lib_var=no" | |
14658 | fi | |
14659 | rm -f conftest* | |
14660 | LIBS="$ac_save_LIBS" | |
14661 | ||
14662 | fi | |
14663 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14664 | echo "$ac_t""yes" 1>&6 | |
422107f9 | 14665 | ZLIB_LINK="-lz" |
698dcdb6 VZ |
14666 | else |
14667 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
14668 | fi |
14669 | ||
698dcdb6 VZ |
14670 | else |
14671 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
14672 | fi |
14673 | ||
14674 | if test "x$ZLIB_LINK" = "x" ; then | |
698dcdb6 | 14675 | { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; } |
422107f9 VZ |
14676 | fi |
14677 | fi | |
10f2d63a VZ |
14678 | fi |
14679 | ||
14680 | PNG_INCLUDE= | |
422107f9 | 14681 | if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then |
698dcdb6 | 14682 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
14683 | #define wxUSE_LIBPNG 1 |
14684 | EOF | |
14685 | ||
41fd4136 | 14686 | if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then |
698dcdb6 | 14687 | echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2 |
422107f9 VZ |
14688 | wxUSE_LIBPNG=yes |
14689 | fi | |
14690 | ||
14691 | if test "$wxUSE_LIBPNG" = "yes" ; then | |
14692 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
14693 | else | |
14694 | PNG_LINK= | |
698dcdb6 VZ |
14695 | ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` |
14696 | echo $ac_n "checking for png.h""... $ac_c" 1>&6 | |
3379ed37 | 14697 | echo "configure:14698: checking for png.h" >&5 |
698dcdb6 VZ |
14698 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
14699 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14700 | else | |
14701 | cat > conftest.$ac_ext <<EOF | |
3379ed37 | 14702 | #line 14703 "configure" |
422107f9 VZ |
14703 | #include "confdefs.h" |
14704 | #include <png.h> | |
698dcdb6 VZ |
14705 | EOF |
14706 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3379ed37 | 14707 | { (eval echo configure:14708: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
14708 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14709 | if test -z "$ac_err"; then | |
14710 | rm -rf conftest* | |
14711 | eval "ac_cv_header_$ac_safe=yes" | |
422107f9 | 14712 | else |
698dcdb6 VZ |
14713 | echo "$ac_err" >&5 |
14714 | echo "configure: failed program was:" >&5 | |
422107f9 | 14715 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
14716 | rm -rf conftest* |
14717 | eval "ac_cv_header_$ac_safe=no" | |
422107f9 | 14718 | fi |
698dcdb6 | 14719 | rm -f conftest* |
422107f9 | 14720 | fi |
698dcdb6 VZ |
14721 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
14722 | echo "$ac_t""yes" 1>&6 | |
14723 | echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6 | |
3379ed37 | 14724 | echo "configure:14725: checking for png_check_sig in -lpng" >&5 |
698dcdb6 VZ |
14725 | ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'` |
14726 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14727 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 14728 | else |
698dcdb6 | 14729 | ac_save_LIBS="$LIBS" |
422107f9 | 14730 | LIBS="-lpng -lz -lm $LIBS" |
698dcdb6 | 14731 | cat > conftest.$ac_ext <<EOF |
3379ed37 | 14732 | #line 14733 "configure" |
422107f9 VZ |
14733 | #include "confdefs.h" |
14734 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14735 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14736 | builtin and then its argument prototype would still apply. */ |
14737 | char png_check_sig(); | |
14738 | ||
14739 | int main() { | |
14740 | png_check_sig() | |
14741 | ; return 0; } | |
14742 | EOF | |
3379ed37 | 14743 | if { (eval echo configure:14744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14744 | rm -rf conftest* |
14745 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14746 | else | |
14747 | echo "configure: failed program was:" >&5 | |
14748 | cat conftest.$ac_ext >&5 | |
14749 | rm -rf conftest* | |
14750 | eval "ac_cv_lib_$ac_lib_var=no" | |
14751 | fi | |
14752 | rm -f conftest* | |
14753 | LIBS="$ac_save_LIBS" | |
14754 | ||
14755 | fi | |
14756 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14757 | echo "$ac_t""yes" 1>&6 | |
422107f9 | 14758 | PNG_LINK="-lpng" |
698dcdb6 VZ |
14759 | else |
14760 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
14761 | fi |
14762 | ||
698dcdb6 VZ |
14763 | |
14764 | else | |
14765 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
14766 | fi |
14767 | ||
14768 | if test "x$PNG_LINK" = "x" ; then | |
698dcdb6 | 14769 | { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; } |
422107f9 VZ |
14770 | fi |
14771 | fi | |
14772 | ||
10f2d63a VZ |
14773 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" |
14774 | fi | |
14775 | ||
14776 | JPEG_INCLUDE= | |
422107f9 | 14777 | if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then |
698dcdb6 | 14778 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
14779 | #define wxUSE_LIBJPEG 1 |
14780 | EOF | |
14781 | ||
422107f9 VZ |
14782 | if test "$wxUSE_LIBJPEG" = "yes" ; then |
14783 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
14784 | else | |
14785 | JPEG_LINK= | |
463abc64 | 14786 | echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 |
3379ed37 | 14787 | echo "configure:14788: checking for jpeglib.h" >&5 |
463abc64 | 14788 | if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then |
698dcdb6 VZ |
14789 | echo $ac_n "(cached) $ac_c" 1>&6 |
14790 | else | |
14791 | cat > conftest.$ac_ext <<EOF | |
3379ed37 | 14792 | #line 14793 "configure" |
422107f9 | 14793 | #include "confdefs.h" |
463abc64 VZ |
14794 | |
14795 | #undef HAVE_STDLIB_H | |
14796 | #include <stdio.h> | |
14797 | #include <jpeglib.h> | |
14798 | ||
14799 | int main() { | |
14800 | ||
14801 | ||
14802 | ; return 0; } | |
698dcdb6 | 14803 | EOF |
3379ed37 | 14804 | if { (eval echo configure:14805: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 14805 | rm -rf conftest* |
463abc64 | 14806 | ac_cv_header_jpeglib_h=yes |
6232543b | 14807 | else |
698dcdb6 | 14808 | echo "configure: failed program was:" >&5 |
422107f9 | 14809 | cat conftest.$ac_ext >&5 |
698dcdb6 | 14810 | rm -rf conftest* |
463abc64 VZ |
14811 | ac_cv_header_jpeglib_h=no |
14812 | ||
422107f9 | 14813 | fi |
698dcdb6 | 14814 | rm -f conftest* |
463abc64 | 14815 | |
422107f9 | 14816 | fi |
463abc64 VZ |
14817 | |
14818 | echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6 | |
14819 | ||
14820 | if test "$ac_cv_header_jpeglib_h" = "yes"; then | |
14821 | echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6 | |
3379ed37 | 14822 | echo "configure:14823: checking for jpeg_read_header in -ljpeg" >&5 |
698dcdb6 VZ |
14823 | ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'` |
14824 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14825 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 14826 | else |
698dcdb6 | 14827 | ac_save_LIBS="$LIBS" |
422107f9 | 14828 | LIBS="-ljpeg $LIBS" |
698dcdb6 | 14829 | cat > conftest.$ac_ext <<EOF |
3379ed37 | 14830 | #line 14831 "configure" |
422107f9 VZ |
14831 | #include "confdefs.h" |
14832 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14833 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14834 | builtin and then its argument prototype would still apply. */ |
14835 | char jpeg_read_header(); | |
14836 | ||
14837 | int main() { | |
14838 | jpeg_read_header() | |
14839 | ; return 0; } | |
14840 | EOF | |
3379ed37 | 14841 | if { (eval echo configure:14842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14842 | rm -rf conftest* |
14843 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14844 | else | |
14845 | echo "configure: failed program was:" >&5 | |
14846 | cat conftest.$ac_ext >&5 | |
14847 | rm -rf conftest* | |
14848 | eval "ac_cv_lib_$ac_lib_var=no" | |
14849 | fi | |
14850 | rm -f conftest* | |
14851 | LIBS="$ac_save_LIBS" | |
14852 | ||
14853 | fi | |
14854 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14855 | echo "$ac_t""yes" 1>&6 | |
422107f9 | 14856 | JPEG_LINK="-ljpeg" |
698dcdb6 VZ |
14857 | else |
14858 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
14859 | fi |
14860 | ||
463abc64 | 14861 | fi |
422107f9 VZ |
14862 | |
14863 | if test "x$JPEG_LINK" = "x" ; then | |
698dcdb6 | 14864 | { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; } |
422107f9 VZ |
14865 | fi |
14866 | fi | |
10f2d63a VZ |
14867 | fi |
14868 | ||
c7a2bf27 | 14869 | TIFF_INCLUDE= |
0dcf9893 | 14870 | if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then |
698dcdb6 | 14871 | cat >> confdefs.h <<\EOF |
c7a2bf27 RR |
14872 | #define wxUSE_LIBTIFF 1 |
14873 | EOF | |
14874 | ||
665bbe97 | 14875 | if test "$wxUSE_LIBTIFF" = "yes" ; then |
0dcf9893 VZ |
14876 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" |
14877 | else | |
14878 | TIFF_LINK= | |
698dcdb6 VZ |
14879 | ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` |
14880 | echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | |
3379ed37 | 14881 | echo "configure:14882: checking for tiffio.h" >&5 |
698dcdb6 VZ |
14882 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
14883 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14884 | else | |
14885 | cat > conftest.$ac_ext <<EOF | |
3379ed37 | 14886 | #line 14887 "configure" |
0dcf9893 VZ |
14887 | #include "confdefs.h" |
14888 | #include <tiffio.h> | |
698dcdb6 VZ |
14889 | EOF |
14890 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3379ed37 | 14891 | { (eval echo configure:14892: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
14892 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14893 | if test -z "$ac_err"; then | |
14894 | rm -rf conftest* | |
14895 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 14896 | else |
698dcdb6 VZ |
14897 | echo "$ac_err" >&5 |
14898 | echo "configure: failed program was:" >&5 | |
0dcf9893 | 14899 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
14900 | rm -rf conftest* |
14901 | eval "ac_cv_header_$ac_safe=no" | |
0dcf9893 | 14902 | fi |
698dcdb6 | 14903 | rm -f conftest* |
0dcf9893 | 14904 | fi |
698dcdb6 VZ |
14905 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
14906 | echo "$ac_t""yes" 1>&6 | |
14907 | echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6 | |
3379ed37 | 14908 | echo "configure:14909: checking for TIFFError in -ltiff" >&5 |
698dcdb6 VZ |
14909 | ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'` |
14910 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14911 | echo $ac_n "(cached) $ac_c" 1>&6 | |
0dcf9893 | 14912 | else |
698dcdb6 | 14913 | ac_save_LIBS="$LIBS" |
0dcf9893 | 14914 | LIBS="-ltiff -lm $LIBS" |
698dcdb6 | 14915 | cat > conftest.$ac_ext <<EOF |
3379ed37 | 14916 | #line 14917 "configure" |
0dcf9893 VZ |
14917 | #include "confdefs.h" |
14918 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14919 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14920 | builtin and then its argument prototype would still apply. */ |
14921 | char TIFFError(); | |
14922 | ||
14923 | int main() { | |
14924 | TIFFError() | |
14925 | ; return 0; } | |
14926 | EOF | |
3379ed37 | 14927 | if { (eval echo configure:14928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14928 | rm -rf conftest* |
14929 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14930 | else | |
14931 | echo "configure: failed program was:" >&5 | |
14932 | cat conftest.$ac_ext >&5 | |
14933 | rm -rf conftest* | |
14934 | eval "ac_cv_lib_$ac_lib_var=no" | |
14935 | fi | |
14936 | rm -f conftest* | |
14937 | LIBS="$ac_save_LIBS" | |
14938 | ||
14939 | fi | |
14940 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14941 | echo "$ac_t""yes" 1>&6 | |
0dcf9893 | 14942 | TIFF_LINK="-ltiff" |
698dcdb6 VZ |
14943 | else |
14944 | echo "$ac_t""no" 1>&6 | |
0dcf9893 VZ |
14945 | fi |
14946 | ||
698dcdb6 VZ |
14947 | else |
14948 | echo "$ac_t""no" 1>&6 | |
0dcf9893 VZ |
14949 | fi |
14950 | ||
14951 | if test "x$TIFF_LINK" = "x" ; then | |
698dcdb6 | 14952 | { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; } |
0dcf9893 VZ |
14953 | fi |
14954 | fi | |
c7a2bf27 RR |
14955 | fi |
14956 | ||
3fed1840 RR |
14957 | FREETYPE_INCLUDE= |
14958 | if test "$wxUSE_FREETYPE" = "yes" -o "$wxUSE_FREETYPE" = "sys" ; then | |
698dcdb6 | 14959 | cat >> confdefs.h <<\EOF |
3fed1840 RR |
14960 | #define wxUSE_FREETYPE 1 |
14961 | EOF | |
14962 | ||
14963 | if test "$wxUSE_FREETYPE" = "yes" ; then | |
14964 | FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype" | |
14965 | else | |
14966 | FREETYPE_LINK= | |
698dcdb6 VZ |
14967 | ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'` |
14968 | echo $ac_n "checking for freetype.h""... $ac_c" 1>&6 | |
3379ed37 | 14969 | echo "configure:14970: checking for freetype.h" >&5 |
698dcdb6 VZ |
14970 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
14971 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14972 | else | |
14973 | cat > conftest.$ac_ext <<EOF | |
3379ed37 | 14974 | #line 14975 "configure" |
3fed1840 RR |
14975 | #include "confdefs.h" |
14976 | #include <freetype.h> | |
698dcdb6 VZ |
14977 | EOF |
14978 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3379ed37 | 14979 | { (eval echo configure:14980: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
14980 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14981 | if test -z "$ac_err"; then | |
14982 | rm -rf conftest* | |
14983 | eval "ac_cv_header_$ac_safe=yes" | |
3fed1840 | 14984 | else |
698dcdb6 VZ |
14985 | echo "$ac_err" >&5 |
14986 | echo "configure: failed program was:" >&5 | |
3fed1840 | 14987 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
14988 | rm -rf conftest* |
14989 | eval "ac_cv_header_$ac_safe=no" | |
3fed1840 | 14990 | fi |
698dcdb6 | 14991 | rm -f conftest* |
3fed1840 | 14992 | fi |
698dcdb6 VZ |
14993 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
14994 | echo "$ac_t""yes" 1>&6 | |
14995 | echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6 | |
3379ed37 | 14996 | echo "configure:14997: checking for FT_Render_Glyph in -lfreetype" >&5 |
698dcdb6 VZ |
14997 | ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'` |
14998 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14999 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3fed1840 | 15000 | else |
698dcdb6 | 15001 | ac_save_LIBS="$LIBS" |
3fed1840 | 15002 | LIBS="-lfreetype -lm $LIBS" |
698dcdb6 | 15003 | cat > conftest.$ac_ext <<EOF |
3379ed37 | 15004 | #line 15005 "configure" |
3fed1840 RR |
15005 | #include "confdefs.h" |
15006 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15007 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15008 | builtin and then its argument prototype would still apply. */ |
15009 | char FT_Render_Glyph(); | |
15010 | ||
15011 | int main() { | |
15012 | FT_Render_Glyph() | |
15013 | ; return 0; } | |
15014 | EOF | |
3379ed37 | 15015 | if { (eval echo configure:15016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15016 | rm -rf conftest* |
15017 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15018 | else | |
15019 | echo "configure: failed program was:" >&5 | |
15020 | cat conftest.$ac_ext >&5 | |
15021 | rm -rf conftest* | |
15022 | eval "ac_cv_lib_$ac_lib_var=no" | |
15023 | fi | |
15024 | rm -f conftest* | |
15025 | LIBS="$ac_save_LIBS" | |
15026 | ||
15027 | fi | |
15028 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15029 | echo "$ac_t""yes" 1>&6 | |
3fed1840 | 15030 | FREETYPE_LINK="-lfreetype" |
698dcdb6 VZ |
15031 | else |
15032 | echo "$ac_t""no" 1>&6 | |
3fed1840 RR |
15033 | fi |
15034 | ||
698dcdb6 VZ |
15035 | |
15036 | else | |
15037 | echo "$ac_t""no" 1>&6 | |
3fed1840 RR |
15038 | fi |
15039 | ||
15040 | if test "x$FREETYPE_LINK" = "x" ; then | |
698dcdb6 | 15041 | { echo "configure: error: system freetype library not found! Use --with-freetype=yes to use the built-in freetype" 1>&2; exit 1; } |
3fed1840 RR |
15042 | fi |
15043 | fi | |
15044 | fi | |
15045 | ||
10f2d63a | 15046 | if test "$wxUSE_OPENGL" = "yes"; then |
698dcdb6 VZ |
15047 | ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'` |
15048 | echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6 | |
3379ed37 | 15049 | echo "configure:15050: checking for GL/gl.h" >&5 |
698dcdb6 VZ |
15050 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
15051 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15052 | else | |
15053 | cat > conftest.$ac_ext <<EOF | |
3379ed37 | 15054 | #line 15055 "configure" |
10f2d63a VZ |
15055 | #include "confdefs.h" |
15056 | #include <GL/gl.h> | |
698dcdb6 VZ |
15057 | EOF |
15058 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3379ed37 | 15059 | { (eval echo configure:15060: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
15060 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15061 | if test -z "$ac_err"; then | |
15062 | rm -rf conftest* | |
15063 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 15064 | else |
698dcdb6 VZ |
15065 | echo "$ac_err" >&5 |
15066 | echo "configure: failed program was:" >&5 | |
10f2d63a | 15067 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
15068 | rm -rf conftest* |
15069 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 15070 | fi |
698dcdb6 | 15071 | rm -f conftest* |
10f2d63a | 15072 | fi |
698dcdb6 VZ |
15073 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
15074 | echo "$ac_t""yes" 1>&6 | |
15075 | ||
15076 | cat >> confdefs.h <<\EOF | |
bdad4e7e RR |
15077 | #define wxUSE_OPENGL 1 |
15078 | EOF | |
15079 | ||
698dcdb6 | 15080 | cat >> confdefs.h <<\EOF |
bdad4e7e RR |
15081 | #define wxUSE_GLCANVAS 1 |
15082 | EOF | |
15083 | ||
698dcdb6 | 15084 | echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6 |
3379ed37 | 15085 | echo "configure:15086: checking for glFlush in -lGL" >&5 |
698dcdb6 VZ |
15086 | ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'` |
15087 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15088 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 15089 | else |
698dcdb6 | 15090 | ac_save_LIBS="$LIBS" |
bdad4e7e | 15091 | LIBS="-lGL $LIBS" |
698dcdb6 | 15092 | cat > conftest.$ac_ext <<EOF |
3379ed37 | 15093 | #line 15094 "configure" |
10f2d63a VZ |
15094 | #include "confdefs.h" |
15095 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15096 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15097 | builtin and then its argument prototype would still apply. */ |
15098 | char glFlush(); | |
6232543b | 15099 | |
698dcdb6 VZ |
15100 | int main() { |
15101 | glFlush() | |
15102 | ; return 0; } | |
15103 | EOF | |
3379ed37 | 15104 | if { (eval echo configure:15105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15105 | rm -rf conftest* |
15106 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15107 | else | |
15108 | echo "configure: failed program was:" >&5 | |
15109 | cat conftest.$ac_ext >&5 | |
15110 | rm -rf conftest* | |
15111 | eval "ac_cv_lib_$ac_lib_var=no" | |
15112 | fi | |
15113 | rm -f conftest* | |
15114 | LIBS="$ac_save_LIBS" | |
1e487827 | 15115 | |
698dcdb6 VZ |
15116 | fi |
15117 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15118 | echo "$ac_t""yes" 1>&6 | |
15119 | ||
15120 | OPENGL_LINK="-lGL -lGLU" | |
15121 | ||
10f2d63a | 15122 | else |
698dcdb6 | 15123 | echo "$ac_t""no" 1>&6 |
10f2d63a | 15124 | |
698dcdb6 | 15125 | echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6 |
3379ed37 | 15126 | echo "configure:15127: checking for glFlush in -lMesaGL" >&5 |
698dcdb6 VZ |
15127 | ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'` |
15128 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15129 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 15130 | else |
698dcdb6 | 15131 | ac_save_LIBS="$LIBS" |
10f2d63a | 15132 | LIBS="-lMesaGL $LIBS" |
698dcdb6 | 15133 | cat > conftest.$ac_ext <<EOF |
3379ed37 | 15134 | #line 15135 "configure" |
10f2d63a VZ |
15135 | #include "confdefs.h" |
15136 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15137 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15138 | builtin and then its argument prototype would still apply. */ |
15139 | char glFlush(); | |
15140 | ||
15141 | int main() { | |
15142 | glFlush() | |
15143 | ; return 0; } | |
15144 | EOF | |
3379ed37 | 15145 | if { (eval echo configure:15146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15146 | rm -rf conftest* |
15147 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15148 | else | |
15149 | echo "configure: failed program was:" >&5 | |
15150 | cat conftest.$ac_ext >&5 | |
15151 | rm -rf conftest* | |
15152 | eval "ac_cv_lib_$ac_lib_var=no" | |
15153 | fi | |
15154 | rm -f conftest* | |
15155 | LIBS="$ac_save_LIBS" | |
10f2d63a | 15156 | |
698dcdb6 VZ |
15157 | fi |
15158 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15159 | echo "$ac_t""yes" 1>&6 | |
15160 | ||
f6bcfd97 | 15161 | OPENGL_LINK="-lMesaGL -lMesaGLU" |
698dcdb6 VZ |
15162 | |
15163 | else | |
15164 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
15165 | fi |
15166 | ||
698dcdb6 | 15167 | |
10f2d63a VZ |
15168 | fi |
15169 | ||
698dcdb6 | 15170 | |
10f2d63a | 15171 | else |
698dcdb6 VZ |
15172 | echo "$ac_t""no" 1>&6 |
15173 | wxUSE_OPENGL=0 | |
10f2d63a VZ |
15174 | fi |
15175 | ||
15176 | fi | |
15177 | ||
698dcdb6 | 15178 | |
10f2d63a | 15179 | if test "$wxUSE_GUI" = "yes"; then |
698dcdb6 | 15180 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15181 | #define wxUSE_GUI 1 |
15182 | EOF | |
15183 | ||
698dcdb6 | 15184 | |
10f2d63a | 15185 | else |
698dcdb6 | 15186 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15187 | #define wxUSE_NOGUI 1 |
15188 | EOF | |
15189 | ||
15190 | fi | |
15191 | ||
698dcdb6 | 15192 | |
10f2d63a | 15193 | if test "$wxUSE_UNIX" = "yes"; then |
698dcdb6 | 15194 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15195 | #define wxUSE_UNIX 1 |
15196 | EOF | |
15197 | ||
15198 | fi | |
15199 | ||
698dcdb6 | 15200 | |
10f2d63a | 15201 | if test "$wxUSE_APPLE_IEEE" = "yes"; then |
698dcdb6 | 15202 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15203 | #define wxUSE_APPLE_IEEE 1 |
15204 | EOF | |
15205 | ||
15206 | fi | |
15207 | ||
1e6feb95 VZ |
15208 | if test "$wxUSE_TIMER" = "yes"; then |
15209 | cat >> confdefs.h <<\EOF | |
15210 | #define wxUSE_TIMER 1 | |
15211 | EOF | |
15212 | ||
15213 | fi | |
15214 | ||
10f2d63a | 15215 | if test "$wxUSE_WAVE" = "yes"; then |
698dcdb6 | 15216 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15217 | #define wxUSE_WAVE 1 |
15218 | EOF | |
15219 | ||
15220 | fi | |
15221 | ||
1e6feb95 VZ |
15222 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
15223 | cat >> confdefs.h <<\EOF | |
15224 | #define wxUSE_CMDLINE_PARSER 1 | |
15225 | EOF | |
15226 | ||
15227 | fi | |
15228 | ||
15229 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
15230 | cat >> confdefs.h <<\EOF | |
15231 | #define wxUSE_STOPWATCH 1 | |
15232 | EOF | |
15233 | ||
15234 | fi | |
15235 | ||
15236 | if test "$wxUSE_DATETIME" = "yes"; then | |
15237 | cat >> confdefs.h <<\EOF | |
15238 | #define wxUSE_DATETIME 1 | |
15239 | EOF | |
15240 | ||
15241 | fi | |
15242 | ||
15243 | if test "$wxUSE_TIMEDATE" = "yes"; then | |
15244 | cat >> confdefs.h <<\EOF | |
15245 | #define wxUSE_TIMEDATE 1 | |
15246 | EOF | |
15247 | ||
15248 | fi | |
15249 | ||
10f2d63a | 15250 | if test "$wxUSE_FILE" = "yes"; then |
698dcdb6 | 15251 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15252 | #define wxUSE_FILE 1 |
15253 | EOF | |
15254 | ||
15255 | fi | |
15256 | ||
1e6feb95 VZ |
15257 | if test "$wxUSE_FFILE" = "yes"; then |
15258 | cat >> confdefs.h <<\EOF | |
15259 | #define wxUSE_FFILE 1 | |
15260 | EOF | |
15261 | ||
15262 | fi | |
15263 | ||
24528b0c | 15264 | if test "$wxUSE_FILESYSTEM" = "yes"; then |
698dcdb6 | 15265 | cat >> confdefs.h <<\EOF |
24528b0c VS |
15266 | #define wxUSE_FILESYSTEM 1 |
15267 | EOF | |
15268 | ||
15269 | fi | |
15270 | ||
10f2d63a | 15271 | if test "$wxUSE_FS_INET" = "yes"; then |
698dcdb6 | 15272 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15273 | #define wxUSE_FS_INET 1 |
15274 | EOF | |
15275 | ||
15276 | fi | |
15277 | ||
15278 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
698dcdb6 | 15279 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15280 | #define wxUSE_FS_ZIP 1 |
15281 | EOF | |
15282 | ||
15283 | fi | |
15284 | ||
15285 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
698dcdb6 | 15286 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15287 | #define wxUSE_ZIPSTREAM 1 |
15288 | EOF | |
15289 | ||
15290 | fi | |
15291 | ||
eb4efbdc | 15292 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
698dcdb6 | 15293 | cat >> confdefs.h <<\EOF |
eb4efbdc VZ |
15294 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
15295 | EOF | |
15296 | ||
15297 | fi | |
15298 | ||
4f3c5f06 | 15299 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
698dcdb6 | 15300 | cat >> confdefs.h <<\EOF |
4f3c5f06 VZ |
15301 | #define wxUSE_SNGLINST_CHECKER 1 |
15302 | EOF | |
15303 | ||
15304 | fi | |
15305 | ||
10f2d63a | 15306 | if test "$wxUSE_BUSYINFO" = "yes"; then |
698dcdb6 | 15307 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15308 | #define wxUSE_BUSYINFO 1 |
15309 | EOF | |
15310 | ||
15311 | fi | |
15312 | ||
15313 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
698dcdb6 | 15314 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15315 | #define wxUSE_STD_IOSTREAM 1 |
15316 | EOF | |
15317 | ||
15318 | fi | |
15319 | ||
15320 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
15321 | if test "$wxUSE_FILE" != "yes"; then | |
698dcdb6 | 15322 | echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2 |
10f2d63a | 15323 | else |
698dcdb6 | 15324 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15325 | #define wxUSE_TEXTFILE 1 |
15326 | EOF | |
15327 | ||
15328 | fi | |
15329 | fi | |
15330 | ||
15331 | if test "$wxUSE_CONFIG" = "yes" ; then | |
15332 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
698dcdb6 | 15333 | echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2 |
10f2d63a | 15334 | else |
698dcdb6 | 15335 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15336 | #define wxUSE_CONFIG 1 |
15337 | EOF | |
15338 | ||
15339 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
15340 | fi | |
15341 | fi | |
15342 | ||
15343 | if test "$wxUSE_INTL" = "yes" ; then | |
15344 | if test "$wxUSE_FILE" != "yes"; then | |
698dcdb6 | 15345 | echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2 |
10f2d63a | 15346 | else |
698dcdb6 | 15347 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15348 | #define wxUSE_INTL 1 |
15349 | EOF | |
15350 | ||
15351 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
f6bcfd97 | 15352 | GUIDIST="$GUIDIST INTL_DIST" |
10f2d63a VZ |
15353 | fi |
15354 | fi | |
15355 | ||
15356 | if test "$wxUSE_LOG" = "yes"; then | |
698dcdb6 | 15357 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15358 | #define wxUSE_LOG 1 |
15359 | EOF | |
15360 | ||
d73be714 VZ |
15361 | |
15362 | if test "$wxUSE_LOGGUI" = "yes"; then | |
15363 | cat >> confdefs.h <<\EOF | |
15364 | #define wxUSE_LOGGUI 1 | |
15365 | EOF | |
15366 | ||
15367 | fi | |
15368 | ||
15369 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
15370 | cat >> confdefs.h <<\EOF | |
15371 | #define wxUSE_LOGWINDOW 1 | |
15372 | EOF | |
15373 | ||
15374 | fi | |
10f2d63a VZ |
15375 | fi |
15376 | ||
15377 | if test "$wxUSE_LONGLONG" = "yes"; then | |
698dcdb6 | 15378 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15379 | #define wxUSE_LONGLONG 1 |
15380 | EOF | |
15381 | ||
15382 | fi | |
15383 | ||
e8f65ba6 | 15384 | if test "$wxUSE_GEOMETRY" = "yes"; then |
698dcdb6 | 15385 | cat >> confdefs.h <<\EOF |
e8f65ba6 RR |
15386 | #define wxUSE_GEOMETRY 1 |
15387 | EOF | |
15388 | ||
15389 | fi | |
15390 | ||
10f2d63a | 15391 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
698dcdb6 | 15392 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15393 | #define wxUSE_DIALUP_MANAGER 1 |
15394 | EOF | |
15395 | ||
70f7a477 | 15396 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" |
10f2d63a VZ |
15397 | fi |
15398 | ||
15399 | if test "$wxUSE_STREAMS" = "yes" ; then | |
698dcdb6 | 15400 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15401 | #define wxUSE_STREAMS 1 |
15402 | EOF | |
15403 | ||
15404 | fi | |
15405 | ||
1e487827 | 15406 | |
1e6feb95 | 15407 | if test "$wxUSE_DATETIME" = "yes"; then |
698dcdb6 | 15408 | for ac_func in strptime |
83307f33 | 15409 | do |
698dcdb6 | 15410 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3379ed37 | 15411 | echo "configure:15412: checking for $ac_func" >&5 |
698dcdb6 VZ |
15412 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15413 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15414 | else | |
15415 | cat > conftest.$ac_ext <<EOF | |
3379ed37 | 15416 | #line 15417 "configure" |
83307f33 VZ |
15417 | #include "confdefs.h" |
15418 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 15419 | which can conflict with char $ac_func(); below. */ |
83307f33 VZ |
15420 | #include <assert.h> |
15421 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15422 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15423 | builtin and then its argument prototype would still apply. */ |
15424 | char $ac_func(); | |
15425 | ||
15426 | int main() { | |
83307f33 VZ |
15427 | |
15428 | /* The GNU C library defines this for functions which it implements | |
15429 | to always fail with ENOSYS. Some functions are actually named | |
15430 | something starting with __ and the normal name is an alias. */ | |
15431 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15432 | choke me | |
15433 | #else | |
698dcdb6 | 15434 | $ac_func(); |
83307f33 VZ |
15435 | #endif |
15436 | ||
698dcdb6 | 15437 | ; return 0; } |
83307f33 | 15438 | EOF |
3379ed37 | 15439 | if { (eval echo configure:15440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15440 | rm -rf conftest* |
15441 | eval "ac_cv_func_$ac_func=yes" | |
15442 | else | |
15443 | echo "configure: failed program was:" >&5 | |
15444 | cat conftest.$ac_ext >&5 | |
15445 | rm -rf conftest* | |
15446 | eval "ac_cv_func_$ac_func=no" | |
15447 | fi | |
15448 | rm -f conftest* | |
15449 | fi | |
83307f33 | 15450 | |
698dcdb6 VZ |
15451 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
15452 | echo "$ac_t""yes" 1>&6 | |
15453 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15454 | cat >> confdefs.h <<EOF | |
15455 | #define $ac_tr_func 1 | |
15456 | EOF | |
15457 | ||
15458 | else | |
15459 | echo "$ac_t""no" 1>&6 | |
83307f33 VZ |
15460 | fi |
15461 | done | |
15462 | ||
1e487827 | 15463 | |
698dcdb6 | 15464 | echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6 |
3379ed37 | 15465 | echo "configure:15466: checking for timezone variable in <time.h>" >&5 |
698dcdb6 VZ |
15466 | if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then |
15467 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15468 | else | |
15469 | ||
15470 | cat > conftest.$ac_ext <<EOF | |
3379ed37 | 15471 | #line 15472 "configure" |
360d6699 VZ |
15472 | #include "confdefs.h" |
15473 | ||
b4085ce6 | 15474 | #include <time.h> |
698dcdb6 VZ |
15475 | |
15476 | int main() { | |
360d6699 VZ |
15477 | |
15478 | int tz; | |
15479 | tz = __timezone; | |
698dcdb6 VZ |
15480 | |
15481 | ; return 0; } | |
15482 | EOF | |
3379ed37 | 15483 | if { (eval echo configure:15484: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
15484 | rm -rf conftest* |
15485 | ||
360d6699 | 15486 | wx_cv_var_timezone=__timezone |
698dcdb6 | 15487 | |
360d6699 | 15488 | else |
698dcdb6 VZ |
15489 | echo "configure: failed program was:" >&5 |
15490 | cat conftest.$ac_ext >&5 | |
15491 | rm -rf conftest* | |
15492 | ||
15493 | cat > conftest.$ac_ext <<EOF | |
3379ed37 | 15494 | #line 15495 "configure" |
360d6699 VZ |
15495 | #include "confdefs.h" |
15496 | ||
b4085ce6 | 15497 | #include <time.h> |
698dcdb6 VZ |
15498 | |
15499 | int main() { | |
360d6699 VZ |
15500 | |
15501 | int tz; | |
15502 | tz = _timezone; | |
698dcdb6 VZ |
15503 | |
15504 | ; return 0; } | |
15505 | EOF | |
3379ed37 | 15506 | if { (eval echo configure:15507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
15507 | rm -rf conftest* |
15508 | ||
360d6699 | 15509 | wx_cv_var_timezone=_timezone |
698dcdb6 | 15510 | |
5357c8e8 | 15511 | else |
698dcdb6 VZ |
15512 | echo "configure: failed program was:" >&5 |
15513 | cat conftest.$ac_ext >&5 | |
15514 | rm -rf conftest* | |
15515 | ||
15516 | cat > conftest.$ac_ext <<EOF | |
3379ed37 | 15517 | #line 15518 "configure" |
5357c8e8 VZ |
15518 | #include "confdefs.h" |
15519 | ||
b4085ce6 | 15520 | #include <time.h> |
698dcdb6 VZ |
15521 | |
15522 | int main() { | |
5357c8e8 VZ |
15523 | |
15524 | int tz; | |
15525 | tz = timezone; | |
698dcdb6 VZ |
15526 | |
15527 | ; return 0; } | |
15528 | EOF | |
3379ed37 | 15529 | if { (eval echo configure:15530: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
15530 | rm -rf conftest* |
15531 | ||
5357c8e8 | 15532 | wx_cv_var_timezone=timezone |
698dcdb6 | 15533 | |
360d6699 | 15534 | else |
698dcdb6 VZ |
15535 | echo "configure: failed program was:" >&5 |
15536 | cat conftest.$ac_ext >&5 | |
15537 | rm -rf conftest* | |
15538 | { echo "configure: error: no timezone variable" 1>&2; exit 1; } | |
15539 | ||
360d6699 | 15540 | fi |
698dcdb6 VZ |
15541 | rm -f conftest* |
15542 | ||
15543 | ||
360d6699 | 15544 | fi |
698dcdb6 VZ |
15545 | rm -f conftest* |
15546 | ||
15547 | ||
6232543b | 15548 | fi |
698dcdb6 VZ |
15549 | rm -f conftest* |
15550 | ||
15551 | ||
1e487827 | 15552 | fi |
703e0a69 | 15553 | |
698dcdb6 VZ |
15554 | echo "$ac_t""$wx_cv_var_timezone" 1>&6 |
15555 | ||
15556 | cat >> confdefs.h <<EOF | |
360d6699 VZ |
15557 | #define WX_TIMEZONE $wx_cv_var_timezone |
15558 | EOF | |
15559 | ||
698dcdb6 VZ |
15560 | |
15561 | for ac_func in localtime | |
afc31813 | 15562 | do |
698dcdb6 | 15563 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3379ed37 | 15564 | echo "configure:15565: checking for $ac_func" >&5 |
698dcdb6 VZ |
15565 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15566 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15567 | else | |
15568 | cat > conftest.$ac_ext <<EOF | |
3379ed37 | 15569 | #line 15570 "configure" |
10f2d63a | 15570 | #include "confdefs.h" |
afc31813 | 15571 | /* System header to define __stub macros and hopefully few prototypes, |
698dcdb6 | 15572 | which can conflict with char $ac_func(); below. */ |
afc31813 VZ |
15573 | #include <assert.h> |
15574 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15575 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15576 | builtin and then its argument prototype would still apply. */ |
15577 | char $ac_func(); | |
15578 | ||
15579 | int main() { | |
afc31813 VZ |
15580 | |
15581 | /* The GNU C library defines this for functions which it implements | |
15582 | to always fail with ENOSYS. Some functions are actually named | |
15583 | something starting with __ and the normal name is an alias. */ | |
15584 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15585 | choke me | |
15586 | #else | |
698dcdb6 | 15587 | $ac_func(); |
afc31813 VZ |
15588 | #endif |
15589 | ||
698dcdb6 | 15590 | ; return 0; } |
10f2d63a | 15591 | EOF |
3379ed37 | 15592 | if { (eval echo configure:15593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15593 | rm -rf conftest* |
15594 | eval "ac_cv_func_$ac_func=yes" | |
15595 | else | |
15596 | echo "configure: failed program was:" >&5 | |
15597 | cat conftest.$ac_ext >&5 | |
15598 | rm -rf conftest* | |
15599 | eval "ac_cv_func_$ac_func=no" | |
15600 | fi | |
15601 | rm -f conftest* | |
15602 | fi | |
afc31813 | 15603 | |
698dcdb6 VZ |
15604 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
15605 | echo "$ac_t""yes" 1>&6 | |
15606 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15607 | cat >> confdefs.h <<EOF | |
15608 | #define $ac_tr_func 1 | |
15609 | EOF | |
15610 | ||
15611 | else | |
15612 | echo "$ac_t""no" 1>&6 | |
afc31813 VZ |
15613 | fi |
15614 | done | |
15615 | ||
1e487827 | 15616 | |
698dcdb6 VZ |
15617 | if test "$ac_cv_func_localtime" = "yes"; then |
15618 | echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 | |
3379ed37 | 15619 | echo "configure:15620: checking for tm_gmtoff in struct tm" >&5 |
698dcdb6 VZ |
15620 | if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then |
15621 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15622 | else | |
15623 | ||
15624 | cat > conftest.$ac_ext <<EOF | |
3379ed37 | 15625 | #line 15626 "configure" |
0470b1e6 VZ |
15626 | #include "confdefs.h" |
15627 | ||
b4085ce6 | 15628 | #include <time.h> |
698dcdb6 VZ |
15629 | |
15630 | int main() { | |
0470b1e6 VZ |
15631 | |
15632 | struct tm tm; | |
15633 | tm.tm_gmtoff++; | |
698dcdb6 VZ |
15634 | |
15635 | ; return 0; } | |
15636 | EOF | |
3379ed37 | 15637 | if { (eval echo configure:15638: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
15638 | rm -rf conftest* |
15639 | ||
f03a98d8 | 15640 | wx_cv_struct_tm_has_gmtoff=yes |
698dcdb6 | 15641 | |
0470b1e6 | 15642 | else |
698dcdb6 VZ |
15643 | echo "configure: failed program was:" >&5 |
15644 | cat conftest.$ac_ext >&5 | |
15645 | rm -rf conftest* | |
15646 | wx_cv_struct_tm_has_gmtoff=no | |
15647 | ||
0470b1e6 | 15648 | fi |
698dcdb6 VZ |
15649 | rm -f conftest* |
15650 | ||
1e487827 | 15651 | fi |
698dcdb6 VZ |
15652 | |
15653 | echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6 | |
6232543b VS |
15654 | fi |
15655 | ||
15656 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
698dcdb6 | 15657 | cat >> confdefs.h <<\EOF |
6232543b VS |
15658 | #define WX_GMTOFF_IN_TM 1 |
15659 | EOF | |
0470b1e6 | 15660 | |
3fcdd07b VZ |
15661 | fi |
15662 | ||
698dcdb6 | 15663 | for ac_func in gettimeofday ftime |
3fcdd07b | 15664 | do |
698dcdb6 | 15665 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3379ed37 | 15666 | echo "configure:15667: checking for $ac_func" >&5 |
698dcdb6 VZ |
15667 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15668 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15669 | else | |
15670 | cat > conftest.$ac_ext <<EOF | |
3379ed37 | 15671 | #line 15672 "configure" |
3fcdd07b VZ |
15672 | #include "confdefs.h" |
15673 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 15674 | which can conflict with char $ac_func(); below. */ |
3fcdd07b VZ |
15675 | #include <assert.h> |
15676 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15677 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15678 | builtin and then its argument prototype would still apply. */ |
15679 | char $ac_func(); | |
15680 | ||
15681 | int main() { | |
3fcdd07b VZ |
15682 | |
15683 | /* The GNU C library defines this for functions which it implements | |
15684 | to always fail with ENOSYS. Some functions are actually named | |
15685 | something starting with __ and the normal name is an alias. */ | |
15686 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15687 | choke me | |
15688 | #else | |
698dcdb6 | 15689 | $ac_func(); |
3fcdd07b VZ |
15690 | #endif |
15691 | ||
698dcdb6 VZ |
15692 | ; return 0; } |
15693 | EOF | |
3379ed37 | 15694 | if { (eval echo configure:15695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15695 | rm -rf conftest* |
15696 | eval "ac_cv_func_$ac_func=yes" | |
15697 | else | |
15698 | echo "configure: failed program was:" >&5 | |
15699 | cat conftest.$ac_ext >&5 | |
15700 | rm -rf conftest* | |
15701 | eval "ac_cv_func_$ac_func=no" | |
15702 | fi | |
15703 | rm -f conftest* | |
15704 | fi | |
15705 | ||
15706 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
15707 | echo "$ac_t""yes" 1>&6 | |
15708 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15709 | cat >> confdefs.h <<EOF | |
15710 | #define $ac_tr_func 1 | |
3fcdd07b VZ |
15711 | EOF |
15712 | break | |
698dcdb6 VZ |
15713 | else |
15714 | echo "$ac_t""no" 1>&6 | |
3fcdd07b VZ |
15715 | fi |
15716 | done | |
15717 | ||
afc31813 | 15718 | |
698dcdb6 VZ |
15719 | if test "$ac_cv_func_gettimeofday" = "yes"; then |
15720 | echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6 | |
3379ed37 | 15721 | echo "configure:15722: checking whether gettimeofday takes two arguments" >&5 |
698dcdb6 VZ |
15722 | if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then |
15723 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15724 | else | |
15725 | ||
15726 | ||
15727 | ac_ext=C | |
15728 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 15729 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
15730 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
15731 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15732 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 15733 | |
698dcdb6 VZ |
15734 | |
15735 | cat > conftest.$ac_ext <<EOF | |
3379ed37 | 15736 | #line 15737 "configure" |
10f2d63a | 15737 | #include "confdefs.h" |
afc31813 VZ |
15738 | |
15739 | #include <sys/time.h> | |
15740 | #include <unistd.h> | |
698dcdb6 VZ |
15741 | |
15742 | int main() { | |
afc31813 VZ |
15743 | |
15744 | struct timeval tv; | |
15745 | struct timezone tz; | |
15746 | gettimeofday(&tv, &tz); | |
698dcdb6 VZ |
15747 | |
15748 | ; return 0; } | |
15749 | EOF | |
3379ed37 | 15750 | if { (eval echo configure:15751: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 15751 | rm -rf conftest* |
afc31813 | 15752 | wx_cv_func_gettimeofday_has_2_args=yes |
10f2d63a | 15753 | else |
698dcdb6 VZ |
15754 | echo "configure: failed program was:" >&5 |
15755 | cat conftest.$ac_ext >&5 | |
15756 | rm -rf conftest* | |
15757 | cat > conftest.$ac_ext <<EOF | |
3379ed37 | 15758 | #line 15759 "configure" |
10f2d63a | 15759 | #include "confdefs.h" |
afc31813 VZ |
15760 | |
15761 | #include <sys/time.h> | |
15762 | #include <unistd.h> | |
698dcdb6 VZ |
15763 | |
15764 | int main() { | |
afc31813 VZ |
15765 | |
15766 | struct timeval tv; | |
15767 | gettimeofday(&tv); | |
698dcdb6 VZ |
15768 | |
15769 | ; return 0; } | |
15770 | EOF | |
3379ed37 | 15771 | if { (eval echo configure:15772: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 15772 | rm -rf conftest* |
afc31813 | 15773 | wx_cv_func_gettimeofday_has_2_args=no |
10f2d63a | 15774 | else |
698dcdb6 VZ |
15775 | echo "configure: failed program was:" >&5 |
15776 | cat conftest.$ac_ext >&5 | |
15777 | rm -rf conftest* | |
15778 | wx_cv_func_gettimeofday_has_2_args=unknown | |
15779 | ||
10f2d63a | 15780 | fi |
698dcdb6 VZ |
15781 | rm -f conftest* |
15782 | ||
10f2d63a | 15783 | fi |
698dcdb6 | 15784 | rm -f conftest* |
afc31813 | 15785 | ac_ext=c |
698dcdb6 | 15786 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 15787 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
15788 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
15789 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15790 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a | 15791 | |
698dcdb6 | 15792 | |
afc31813 | 15793 | fi |
698dcdb6 VZ |
15794 | |
15795 | echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6 | |
c63c7106 | 15796 | |
afc31813 | 15797 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then |
698dcdb6 | 15798 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
15799 | #define WX_GETTIMEOFDAY_NO_TZ 1 |
15800 | EOF | |
15801 | ||
15802 | fi | |
15803 | fi | |
15804 | ||
698dcdb6 | 15805 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
15806 | #define wxUSE_TIMEDATE 1 |
15807 | EOF | |
15808 | ||
15809 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
15810 | fi | |
15811 | ||
698dcdb6 | 15812 | |
b089607b VZ |
15813 | if test "$TOOLKIT" != "MSW"; then |
15814 | ||
afc31813 | 15815 | if test "$wxUSE_SOCKETS" = "yes"; then |
698dcdb6 | 15816 | echo $ac_n "checking for socket""... $ac_c" 1>&6 |
3379ed37 | 15817 | echo "configure:15818: checking for socket" >&5 |
698dcdb6 VZ |
15818 | if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
15819 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 15820 | else |
698dcdb6 | 15821 | cat > conftest.$ac_ext <<EOF |
3379ed37 | 15822 | #line 15823 "configure" |
c63c7106 VZ |
15823 | #include "confdefs.h" |
15824 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 15825 | which can conflict with char socket(); below. */ |
c63c7106 VZ |
15826 | #include <assert.h> |
15827 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15828 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15829 | builtin and then its argument prototype would still apply. */ |
15830 | char socket(); | |
15831 | ||
15832 | int main() { | |
c63c7106 VZ |
15833 | |
15834 | /* The GNU C library defines this for functions which it implements | |
15835 | to always fail with ENOSYS. Some functions are actually named | |
15836 | something starting with __ and the normal name is an alias. */ | |
15837 | #if defined (__stub_socket) || defined (__stub___socket) | |
15838 | choke me | |
15839 | #else | |
698dcdb6 | 15840 | socket(); |
c63c7106 VZ |
15841 | #endif |
15842 | ||
698dcdb6 VZ |
15843 | ; return 0; } |
15844 | EOF | |
3379ed37 | 15845 | if { (eval echo configure:15846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15846 | rm -rf conftest* |
15847 | eval "ac_cv_func_socket=yes" | |
15848 | else | |
15849 | echo "configure: failed program was:" >&5 | |
15850 | cat conftest.$ac_ext >&5 | |
15851 | rm -rf conftest* | |
15852 | eval "ac_cv_func_socket=no" | |
15853 | fi | |
15854 | rm -f conftest* | |
15855 | fi | |
15856 | ||
15857 | if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
15858 | echo "$ac_t""yes" 1>&6 | |
c63c7106 VZ |
15859 | : |
15860 | else | |
698dcdb6 VZ |
15861 | echo "$ac_t""no" 1>&6 |
15862 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | |
3379ed37 | 15863 | echo "configure:15864: checking for socket in -lsocket" >&5 |
698dcdb6 VZ |
15864 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
15865 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15866 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 15867 | else |
698dcdb6 | 15868 | ac_save_LIBS="$LIBS" |
c63c7106 | 15869 | LIBS="-lsocket $LIBS" |
698dcdb6 | 15870 | cat > conftest.$ac_ext <<EOF |
3379ed37 | 15871 | #line 15872 "configure" |
c63c7106 VZ |
15872 | #include "confdefs.h" |
15873 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15874 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15875 | builtin and then its argument prototype would still apply. */ |
15876 | char socket(); | |
15877 | ||
15878 | int main() { | |
15879 | socket() | |
15880 | ; return 0; } | |
15881 | EOF | |
3379ed37 | 15882 | if { (eval echo configure:15883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15883 | rm -rf conftest* |
15884 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15885 | else | |
15886 | echo "configure: failed program was:" >&5 | |
15887 | cat conftest.$ac_ext >&5 | |
15888 | rm -rf conftest* | |
15889 | eval "ac_cv_lib_$ac_lib_var=no" | |
15890 | fi | |
15891 | rm -f conftest* | |
15892 | LIBS="$ac_save_LIBS" | |
15893 | ||
15894 | fi | |
15895 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15896 | echo "$ac_t""yes" 1>&6 | |
c63c7106 | 15897 | INET_LINK="$INET_LINK -lsocket" |
c63c7106 | 15898 | else |
698dcdb6 | 15899 | echo "$ac_t""no" 1>&6 |
afc31813 | 15900 | |
698dcdb6 | 15901 | echo "configure: warning: socket library not found - sockets will be disabled" 1>&2 |
afc31813 | 15902 | wxUSE_SOCKETS=no |
698dcdb6 VZ |
15903 | |
15904 | ||
10f2d63a VZ |
15905 | fi |
15906 | ||
698dcdb6 | 15907 | |
6232543b | 15908 | fi |
b089607b | 15909 | |
1e487827 | 15910 | fi |
afc31813 | 15911 | |
51a9faba | 15912 | |
698dcdb6 VZ |
15913 | if test "$wxUSE_SOCKETS" = "yes" ; then |
15914 | echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6 | |
3379ed37 | 15915 | echo "configure:15916: checking what is the type of the third argument of getsockname" >&5 |
698dcdb6 VZ |
15916 | if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then |
15917 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15918 | else | |
15919 | ||
15920 | ||
15921 | ac_ext=C | |
15922 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 15923 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
15924 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
15925 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15926 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 15927 | |
698dcdb6 VZ |
15928 | |
15929 | cat > conftest.$ac_ext <<EOF | |
3379ed37 | 15930 | #line 15931 "configure" |
afc31813 | 15931 | #include "confdefs.h" |
51a9faba | 15932 | |
3ace2e6d | 15933 | #include <sys/types.h> |
51a9faba | 15934 | #include <sys/socket.h> |
698dcdb6 VZ |
15935 | |
15936 | int main() { | |
51a9faba VZ |
15937 | |
15938 | socklen_t len; | |
15939 | getsockname(0, 0, &len); | |
698dcdb6 VZ |
15940 | |
15941 | ; return 0; } | |
15942 | EOF | |
3379ed37 | 15943 | if { (eval echo configure:15944: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 15944 | rm -rf conftest* |
51a9faba | 15945 | wx_cv_type_getsockname3=socklen_t |
afc31813 | 15946 | else |
698dcdb6 VZ |
15947 | echo "configure: failed program was:" >&5 |
15948 | cat conftest.$ac_ext >&5 | |
15949 | rm -rf conftest* | |
15950 | cat > conftest.$ac_ext <<EOF | |
3379ed37 | 15951 | #line 15952 "configure" |
afc31813 | 15952 | #include "confdefs.h" |
51a9faba | 15953 | |
3ace2e6d | 15954 | #include <sys/types.h> |
51a9faba | 15955 | #include <sys/socket.h> |
698dcdb6 VZ |
15956 | |
15957 | int main() { | |
51a9faba VZ |
15958 | |
15959 | size_t len; | |
15960 | getsockname(0, 0, &len); | |
698dcdb6 VZ |
15961 | |
15962 | ; return 0; } | |
15963 | EOF | |
3379ed37 | 15964 | if { (eval echo configure:15965: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 15965 | rm -rf conftest* |
51a9faba | 15966 | wx_cv_type_getsockname3=size_t |
afc31813 | 15967 | else |
698dcdb6 VZ |
15968 | echo "configure: failed program was:" >&5 |
15969 | cat conftest.$ac_ext >&5 | |
15970 | rm -rf conftest* | |
15971 | cat > conftest.$ac_ext <<EOF | |
3379ed37 | 15972 | #line 15973 "configure" |
afc31813 | 15973 | #include "confdefs.h" |
51a9faba | 15974 | |
3ace2e6d | 15975 | #include <sys/types.h> |
51a9faba | 15976 | #include <sys/socket.h> |
698dcdb6 VZ |
15977 | |
15978 | int main() { | |
51a9faba VZ |
15979 | |
15980 | int len; | |
15981 | getsockname(0, 0, &len); | |
698dcdb6 VZ |
15982 | |
15983 | ; return 0; } | |
15984 | EOF | |
3379ed37 | 15985 | if { (eval echo configure:15986: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 15986 | rm -rf conftest* |
51a9faba | 15987 | wx_cv_type_getsockname3=int |
afc31813 | 15988 | else |
698dcdb6 VZ |
15989 | echo "configure: failed program was:" >&5 |
15990 | cat conftest.$ac_ext >&5 | |
15991 | rm -rf conftest* | |
15992 | wx_cv_type_getsockname3=unknown | |
15993 | ||
afc31813 | 15994 | fi |
698dcdb6 VZ |
15995 | rm -f conftest* |
15996 | ||
afc31813 | 15997 | fi |
698dcdb6 VZ |
15998 | rm -f conftest* |
15999 | ||
afc31813 | 16000 | fi |
698dcdb6 | 16001 | rm -f conftest* |
51a9faba VZ |
16002 | |
16003 | ac_ext=c | |
698dcdb6 | 16004 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
afc31813 | 16005 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
16006 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16007 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16008 | cross_compiling=$ac_cv_prog_cc_cross | |
afc31813 | 16009 | |
698dcdb6 | 16010 | |
51a9faba | 16011 | fi |
698dcdb6 VZ |
16012 | |
16013 | echo "$ac_t""$wx_cv_type_getsockname3" 1>&6 | |
51a9faba VZ |
16014 | |
16015 | if test "$wx_cv_type_getsockname3" = "unknown"; then | |
16016 | wxUSE_SOCKETS=no | |
698dcdb6 | 16017 | echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2 |
51a9faba | 16018 | else |
698dcdb6 | 16019 | cat >> confdefs.h <<EOF |
51a9faba VZ |
16020 | #define SOCKLEN_T $wx_cv_type_getsockname3 |
16021 | EOF | |
16022 | ||
16023 | fi | |
16024 | fi | |
afc31813 | 16025 | |
c521c494 RL |
16026 | fi |
16027 | ||
51a9faba | 16028 | if test "$wxUSE_SOCKETS" = "yes" ; then |
698dcdb6 | 16029 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
16030 | #define wxUSE_SOCKETS 1 |
16031 | EOF | |
16032 | ||
70f7a477 | 16033 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" |
afc31813 VZ |
16034 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol" |
16035 | fi | |
16036 | ||
698dcdb6 | 16037 | |
dc3d889d VZ |
16038 | if test "$wxUSE_GUI" = "yes"; then |
16039 | ||
b089607b VZ |
16040 | if test "$TOOLKIT" != "MSW"; then |
16041 | ||
ceded8b9 | 16042 | if test "$wxUSE_JOYSTICK" = "yes"; then |
698dcdb6 | 16043 | for ac_hdr in linux/joystick.h |
10f2d63a | 16044 | do |
698dcdb6 VZ |
16045 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
16046 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3379ed37 | 16047 | echo "configure:16048: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
16048 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
16049 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16050 | else | |
16051 | cat > conftest.$ac_ext <<EOF | |
3379ed37 | 16052 | #line 16053 "configure" |
10f2d63a | 16053 | #include "confdefs.h" |
698dcdb6 VZ |
16054 | #include <$ac_hdr> |
16055 | EOF | |
16056 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3379ed37 | 16057 | { (eval echo configure:16058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
16058 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
16059 | if test -z "$ac_err"; then | |
16060 | rm -rf conftest* | |
16061 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 16062 | else |
698dcdb6 VZ |
16063 | echo "$ac_err" >&5 |
16064 | echo "configure: failed program was:" >&5 | |
10f2d63a | 16065 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
16066 | rm -rf conftest* |
16067 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 16068 | fi |
698dcdb6 | 16069 | rm -f conftest* |
10f2d63a | 16070 | fi |
698dcdb6 VZ |
16071 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
16072 | echo "$ac_t""yes" 1>&6 | |
16073 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
16074 | cat >> confdefs.h <<EOF | |
16075 | #define $ac_tr_hdr 1 | |
10f2d63a | 16076 | EOF |
698dcdb6 VZ |
16077 | |
16078 | else | |
16079 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
16080 | fi |
16081 | done | |
16082 | ||
b089607b | 16083 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then |
ceded8b9 | 16084 | wxUSE_JOYSTICK=no |
698dcdb6 | 16085 | echo "configure: warning: Joystick not supported by this system" 1>&2 |
b089607b VZ |
16086 | fi |
16087 | fi | |
16088 | ||
16089 | fi | |
16090 | ||
ceded8b9 | 16091 | if test "$wxUSE_JOYSTICK" = "yes"; then |
698dcdb6 | 16092 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16093 | #define wxUSE_JOYSTICK 1 |
16094 | EOF | |
16095 | ||
16096 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" | |
10f2d63a VZ |
16097 | fi |
16098 | ||
dc3d889d VZ |
16099 | fi |
16100 | ||
698dcdb6 | 16101 | |
b089607b VZ |
16102 | if test "$TOOLKIT" != "MSW"; then |
16103 | ||
10f2d63a VZ |
16104 | HAVE_DL_FUNCS=0 |
16105 | HAVE_SHL_FUNCS=0 | |
16106 | if test "$wxUSE_DYNLIB_CLASS" = "yes"; then | |
b4085ce6 GD |
16107 | if test "$USE_MAC" = 1; then |
16108 | HAVE_DL_FUNCS=1 | |
16109 | else | |
698dcdb6 | 16110 | for ac_func in dlopen |
10f2d63a | 16111 | do |
698dcdb6 | 16112 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3379ed37 | 16113 | echo "configure:16114: checking for $ac_func" >&5 |
698dcdb6 VZ |
16114 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16115 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16116 | else | |
16117 | cat > conftest.$ac_ext <<EOF | |
3379ed37 | 16118 | #line 16119 "configure" |
10f2d63a VZ |
16119 | #include "confdefs.h" |
16120 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16121 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
16122 | #include <assert.h> |
16123 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16124 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16125 | builtin and then its argument prototype would still apply. */ |
16126 | char $ac_func(); | |
16127 | ||
16128 | int main() { | |
10f2d63a VZ |
16129 | |
16130 | /* The GNU C library defines this for functions which it implements | |
16131 | to always fail with ENOSYS. Some functions are actually named | |
16132 | something starting with __ and the normal name is an alias. */ | |
16133 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16134 | choke me | |
16135 | #else | |
698dcdb6 | 16136 | $ac_func(); |
10f2d63a VZ |
16137 | #endif |
16138 | ||
698dcdb6 VZ |
16139 | ; return 0; } |
16140 | EOF | |
3379ed37 | 16141 | if { (eval echo configure:16142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16142 | rm -rf conftest* |
16143 | eval "ac_cv_func_$ac_func=yes" | |
16144 | else | |
16145 | echo "configure: failed program was:" >&5 | |
16146 | cat conftest.$ac_ext >&5 | |
16147 | rm -rf conftest* | |
16148 | eval "ac_cv_func_$ac_func=no" | |
16149 | fi | |
16150 | rm -f conftest* | |
16151 | fi | |
16152 | ||
16153 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16154 | echo "$ac_t""yes" 1>&6 | |
16155 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16156 | cat >> confdefs.h <<EOF | |
16157 | #define $ac_tr_func 1 | |
16158 | EOF | |
16159 | ||
16160 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
16161 | #define HAVE_DLOPEN 1 |
16162 | EOF | |
16163 | ||
16164 | HAVE_DL_FUNCS=1 | |
698dcdb6 | 16165 | |
10f2d63a | 16166 | else |
698dcdb6 VZ |
16167 | echo "$ac_t""no" 1>&6 |
16168 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
3379ed37 | 16169 | echo "configure:16170: checking for dlopen in -ldl" >&5 |
698dcdb6 VZ |
16170 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
16171 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16172 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 16173 | else |
698dcdb6 | 16174 | ac_save_LIBS="$LIBS" |
10f2d63a | 16175 | LIBS="-ldl $LIBS" |
698dcdb6 | 16176 | cat > conftest.$ac_ext <<EOF |
3379ed37 | 16177 | #line 16178 "configure" |
10f2d63a VZ |
16178 | #include "confdefs.h" |
16179 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16180 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16181 | builtin and then its argument prototype would still apply. */ |
16182 | char dlopen(); | |
16183 | ||
16184 | int main() { | |
16185 | dlopen() | |
16186 | ; return 0; } | |
16187 | EOF | |
3379ed37 | 16188 | if { (eval echo configure:16189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16189 | rm -rf conftest* |
16190 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16191 | else | |
16192 | echo "configure: failed program was:" >&5 | |
16193 | cat conftest.$ac_ext >&5 | |
16194 | rm -rf conftest* | |
16195 | eval "ac_cv_lib_$ac_lib_var=no" | |
16196 | fi | |
16197 | rm -f conftest* | |
16198 | LIBS="$ac_save_LIBS" | |
16199 | ||
16200 | fi | |
16201 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16202 | echo "$ac_t""yes" 1>&6 | |
16203 | ||
16204 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
16205 | #define HAVE_DLOPEN 1 |
16206 | EOF | |
16207 | ||
16208 | HAVE_DL_FUNCS=1 | |
16209 | LIBS="$LIBS -ldl" | |
698dcdb6 | 16210 | |
10f2d63a | 16211 | else |
698dcdb6 | 16212 | echo "$ac_t""no" 1>&6 |
10f2d63a | 16213 | |
698dcdb6 | 16214 | for ac_func in shl_load |
10f2d63a | 16215 | do |
698dcdb6 | 16216 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3379ed37 | 16217 | echo "configure:16218: checking for $ac_func" >&5 |
698dcdb6 VZ |
16218 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16219 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16220 | else | |
16221 | cat > conftest.$ac_ext <<EOF | |
3379ed37 | 16222 | #line 16223 "configure" |
10f2d63a VZ |
16223 | #include "confdefs.h" |
16224 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16225 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
16226 | #include <assert.h> |
16227 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16228 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16229 | builtin and then its argument prototype would still apply. */ |
16230 | char $ac_func(); | |
16231 | ||
16232 | int main() { | |
10f2d63a VZ |
16233 | |
16234 | /* The GNU C library defines this for functions which it implements | |
16235 | to always fail with ENOSYS. Some functions are actually named | |
16236 | something starting with __ and the normal name is an alias. */ | |
16237 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16238 | choke me | |
16239 | #else | |
698dcdb6 | 16240 | $ac_func(); |
10f2d63a VZ |
16241 | #endif |
16242 | ||
698dcdb6 VZ |
16243 | ; return 0; } |
16244 | EOF | |
3379ed37 | 16245 | if { (eval echo configure:16246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16246 | rm -rf conftest* |
16247 | eval "ac_cv_func_$ac_func=yes" | |
16248 | else | |
16249 | echo "configure: failed program was:" >&5 | |
16250 | cat conftest.$ac_ext >&5 | |
16251 | rm -rf conftest* | |
16252 | eval "ac_cv_func_$ac_func=no" | |
16253 | fi | |
16254 | rm -f conftest* | |
16255 | fi | |
16256 | ||
16257 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16258 | echo "$ac_t""yes" 1>&6 | |
16259 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16260 | cat >> confdefs.h <<EOF | |
16261 | #define $ac_tr_func 1 | |
16262 | EOF | |
16263 | ||
16264 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
16265 | #define HAVE_SHL_LOAD 1 |
16266 | EOF | |
16267 | ||
16268 | HAVE_SHL_FUNCS=1 | |
698dcdb6 | 16269 | |
10f2d63a | 16270 | else |
698dcdb6 VZ |
16271 | echo "$ac_t""no" 1>&6 |
16272 | echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6 | |
3379ed37 | 16273 | echo "configure:16274: checking for dld in -lshl_load" >&5 |
698dcdb6 VZ |
16274 | ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'` |
16275 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16276 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 16277 | else |
698dcdb6 | 16278 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 16279 | LIBS="-lshl_load $LIBS" |
698dcdb6 | 16280 | cat > conftest.$ac_ext <<EOF |
3379ed37 | 16281 | #line 16282 "configure" |
f6bcfd97 BP |
16282 | #include "confdefs.h" |
16283 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16284 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16285 | builtin and then its argument prototype would still apply. */ |
16286 | char dld(); | |
16287 | ||
16288 | int main() { | |
16289 | dld() | |
16290 | ; return 0; } | |
16291 | EOF | |
3379ed37 | 16292 | if { (eval echo configure:16293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16293 | rm -rf conftest* |
16294 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16295 | else | |
16296 | echo "configure: failed program was:" >&5 | |
16297 | cat conftest.$ac_ext >&5 | |
16298 | rm -rf conftest* | |
16299 | eval "ac_cv_lib_$ac_lib_var=no" | |
16300 | fi | |
16301 | rm -f conftest* | |
16302 | LIBS="$ac_save_LIBS" | |
f6bcfd97 | 16303 | |
698dcdb6 VZ |
16304 | fi |
16305 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16306 | echo "$ac_t""yes" 1>&6 | |
16307 | ||
f6bcfd97 BP |
16308 | HAVE_SHL_FUNCS=1 |
16309 | LIBS="$LIBS -ldld" | |
698dcdb6 VZ |
16310 | |
16311 | else | |
16312 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
16313 | fi |
16314 | ||
698dcdb6 | 16315 | |
10f2d63a VZ |
16316 | fi |
16317 | done | |
16318 | ||
698dcdb6 | 16319 | |
10f2d63a VZ |
16320 | fi |
16321 | ||
698dcdb6 | 16322 | |
10f2d63a VZ |
16323 | fi |
16324 | done | |
16325 | ||
1e487827 | 16326 | |
698dcdb6 VZ |
16327 | if test "$HAVE_DL_FUNCS" = 1; then |
16328 | for ac_func in dlerror | |
f6bcfd97 | 16329 | do |
698dcdb6 | 16330 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3379ed37 | 16331 | echo "configure:16332: checking for $ac_func" >&5 |
698dcdb6 VZ |
16332 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16333 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16334 | else | |
16335 | cat > conftest.$ac_ext <<EOF | |
3379ed37 | 16336 | #line 16337 "configure" |
f6bcfd97 BP |
16337 | #include "confdefs.h" |
16338 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16339 | which can conflict with char $ac_func(); below. */ |
f6bcfd97 BP |
16340 | #include <assert.h> |
16341 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16342 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16343 | builtin and then its argument prototype would still apply. */ |
16344 | char $ac_func(); | |
16345 | ||
16346 | int main() { | |
f6bcfd97 BP |
16347 | |
16348 | /* The GNU C library defines this for functions which it implements | |
16349 | to always fail with ENOSYS. Some functions are actually named | |
16350 | something starting with __ and the normal name is an alias. */ | |
16351 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16352 | choke me | |
16353 | #else | |
698dcdb6 | 16354 | $ac_func(); |
f6bcfd97 BP |
16355 | #endif |
16356 | ||
698dcdb6 VZ |
16357 | ; return 0; } |
16358 | EOF | |
3379ed37 | 16359 | if { (eval echo configure:16360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16360 | rm -rf conftest* |
16361 | eval "ac_cv_func_$ac_func=yes" | |
16362 | else | |
16363 | echo "configure: failed program was:" >&5 | |
16364 | cat conftest.$ac_ext >&5 | |
16365 | rm -rf conftest* | |
16366 | eval "ac_cv_func_$ac_func=no" | |
16367 | fi | |
16368 | rm -f conftest* | |
16369 | fi | |
16370 | ||
16371 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16372 | echo "$ac_t""yes" 1>&6 | |
16373 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16374 | cat >> confdefs.h <<EOF | |
16375 | #define $ac_tr_func 1 | |
16376 | EOF | |
16377 | cat >> confdefs.h <<\EOF | |
f6bcfd97 BP |
16378 | #define HAVE_DLERROR 1 |
16379 | EOF | |
16380 | ||
16381 | else | |
698dcdb6 VZ |
16382 | echo "$ac_t""no" 1>&6 |
16383 | echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6 | |
3379ed37 | 16384 | echo "configure:16385: checking for dlerror in -ldl" >&5 |
698dcdb6 VZ |
16385 | ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'` |
16386 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16387 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 16388 | else |
698dcdb6 | 16389 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 16390 | LIBS="-ldl $LIBS" |
698dcdb6 | 16391 | cat > conftest.$ac_ext <<EOF |
3379ed37 | 16392 | #line 16393 "configure" |
f6bcfd97 BP |
16393 | #include "confdefs.h" |
16394 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16395 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16396 | builtin and then its argument prototype would still apply. */ |
16397 | char dlerror(); | |
16398 | ||
16399 | int main() { | |
16400 | dlerror() | |
16401 | ; return 0; } | |
16402 | EOF | |
3379ed37 | 16403 | if { (eval echo configure:16404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16404 | rm -rf conftest* |
16405 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16406 | else | |
16407 | echo "configure: failed program was:" >&5 | |
16408 | cat conftest.$ac_ext >&5 | |
16409 | rm -rf conftest* | |
16410 | eval "ac_cv_lib_$ac_lib_var=no" | |
16411 | fi | |
16412 | rm -f conftest* | |
16413 | LIBS="$ac_save_LIBS" | |
16414 | ||
16415 | fi | |
16416 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16417 | echo "$ac_t""yes" 1>&6 | |
16418 | cat >> confdefs.h <<\EOF | |
f6bcfd97 BP |
16419 | #define HAVE_DLERROR 1 |
16420 | EOF | |
16421 | ||
698dcdb6 VZ |
16422 | else |
16423 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
16424 | fi |
16425 | ||
16426 | fi | |
16427 | done | |
16428 | ||
16429 | fi | |
b4085ce6 | 16430 | fi |
f6bcfd97 | 16431 | |
10f2d63a VZ |
16432 | if test "$HAVE_DL_FUNCS" = 0; then |
16433 | if test "$HAVE_SHL_FUNCS" = 0; then | |
16434 | if test "$USE_UNIX" = 1; then | |
698dcdb6 | 16435 | echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2 |
10f2d63a VZ |
16436 | wxUSE_DYNLIB_CLASS=no |
16437 | else | |
698dcdb6 | 16438 | echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2 |
10f2d63a VZ |
16439 | fi |
16440 | fi | |
16441 | fi | |
16442 | fi | |
16443 | ||
b089607b VZ |
16444 | fi |
16445 | ||
10f2d63a | 16446 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then |
698dcdb6 | 16447 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16448 | #define wxUSE_DYNLIB_CLASS 1 |
16449 | EOF | |
16450 | ||
b12915c1 VZ |
16451 | else |
16452 | wxUSE_ODBC=no | |
16453 | wxUSE_SERIAL=no | |
10f2d63a VZ |
16454 | fi |
16455 | ||
698dcdb6 | 16456 | |
1e6feb95 VZ |
16457 | if test "$wxUSE_FONTMAP" = "yes" ; then |
16458 | cat >> confdefs.h <<\EOF | |
16459 | #define wxUSE_FONTMAP 1 | |
16460 | EOF | |
16461 | ||
16462 | fi | |
16463 | ||
10f2d63a | 16464 | if test "$wxUSE_UNICODE" = "yes" ; then |
698dcdb6 | 16465 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16466 | #define wxUSE_UNICODE 1 |
16467 | EOF | |
16468 | ||
16469 | fi | |
16470 | ||
16471 | if test "$wxUSE_WCSRTOMBS" = "yes" ; then | |
698dcdb6 | 16472 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16473 | #define wxUSE_WCSRTOMBS 1 |
16474 | EOF | |
16475 | ||
16476 | fi | |
16477 | ||
16478 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then | |
698dcdb6 | 16479 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16480 | #define wxUSE_EXPERIMENTAL_PRINTF 1 |
16481 | EOF | |
16482 | ||
16483 | fi | |
16484 | ||
698dcdb6 | 16485 | |
b12915c1 | 16486 | if test "$wxUSE_SERIAL" = "yes" ; then |
698dcdb6 | 16487 | cat >> confdefs.h <<\EOF |
b12915c1 VZ |
16488 | #define wxUSE_SERIAL 1 |
16489 | EOF | |
16490 | ||
16491 | fi | |
16492 | ||
698dcdb6 | 16493 | |
10f2d63a VZ |
16494 | IODBC_C_SRC="" |
16495 | if test "$wxUSE_ODBC" = "yes" ; then | |
698dcdb6 | 16496 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16497 | #define wxUSE_ODBC 1 |
16498 | EOF | |
16499 | ||
16500 | WXODBCFLAG="-D_IODBC_" | |
16501 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
10f2d63a VZ |
16502 | fi |
16503 | ||
698dcdb6 | 16504 | |
10f2d63a | 16505 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then |
698dcdb6 | 16506 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16507 | #define wxUSE_POSTSCRIPT 1 |
16508 | EOF | |
16509 | ||
16510 | fi | |
16511 | ||
698dcdb6 | 16512 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16513 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 |
16514 | EOF | |
16515 | ||
698dcdb6 VZ |
16516 | |
16517 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
16518 | #define wxUSE_NORMALIZED_PS_FONTS 1 |
16519 | EOF | |
16520 | ||
698dcdb6 VZ |
16521 | |
16522 | ||
10f2d63a | 16523 | if test "$wxUSE_CONSTRAINTS" = "yes"; then |
698dcdb6 | 16524 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16525 | #define wxUSE_CONSTRAINTS 1 |
16526 | EOF | |
16527 | ||
16528 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
16529 | fi | |
16530 | ||
16531 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
698dcdb6 | 16532 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16533 | #define wxUSE_MDI_ARCHITECTURE 1 |
16534 | EOF | |
16535 | ||
16536 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" | |
16537 | fi | |
16538 | ||
16539 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
698dcdb6 | 16540 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16541 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 |
16542 | EOF | |
16543 | ||
16544 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
16545 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
16546 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
16547 | fi | |
16548 | fi | |
16549 | ||
16550 | if test "$wxUSE_HELP" = "yes"; then | |
698dcdb6 | 16551 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16552 | #define wxUSE_HELP 1 |
16553 | EOF | |
16554 | ||
16555 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
3379ed37 VZ |
16556 | |
16557 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
16558 | cat >> confdefs.h <<\EOF | |
16559 | #define wxUSE_WXHTML_HELP 1 | |
16560 | EOF | |
16561 | ||
16562 | fi | |
10f2d63a VZ |
16563 | fi |
16564 | ||
16565 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
16566 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
698dcdb6 | 16567 | echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2 |
10f2d63a | 16568 | else |
698dcdb6 | 16569 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16570 | #define wxUSE_PRINTING_ARCHITECTURE 1 |
16571 | EOF | |
16572 | ||
16573 | fi | |
16574 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
16575 | fi | |
16576 | ||
16577 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
698dcdb6 | 16578 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16579 | #define wxUSE_PROLOGIO 1 |
16580 | EOF | |
16581 | ||
16582 | fi | |
16583 | ||
16584 | if test "$wxUSE_RESOURCES" = "yes" ; then | |
3379ed37 | 16585 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16586 | #define wxUSE_RESOURCES 1 |
16587 | EOF | |
16588 | ||
3379ed37 | 16589 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource" |
10f2d63a VZ |
16590 | fi |
16591 | ||
16592 | if test "$wxUSE_X_RESOURCES" = "yes"; then | |
698dcdb6 | 16593 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16594 | #define wxUSE_X_RESOURCES 1 |
16595 | EOF | |
16596 | ||
16597 | fi | |
16598 | ||
698dcdb6 | 16599 | |
10f2d63a | 16600 | if test "$wxUSE_IPC" = "yes"; then |
eb4efbdc | 16601 | if test "$wxUSE_SOCKETS" != "yes"; then |
698dcdb6 | 16602 | echo "configure: warning: wxWindows IPC classes require sockets" 1>&2 |
eb4efbdc VZ |
16603 | fi |
16604 | ||
698dcdb6 | 16605 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16606 | #define wxUSE_IPC 1 |
16607 | EOF | |
16608 | ||
16609 | fi | |
16610 | ||
16611 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
698dcdb6 | 16612 | cat >> confdefs.h <<\EOF |
10f2d63a | 16613 | #define wxUSE_CLIPBOARD 1 |
1e6feb95 VZ |
16614 | EOF |
16615 | ||
16616 | cat >> confdefs.h <<\EOF | |
16617 | #define wxUSE_DATAOBJ 1 | |
10f2d63a VZ |
16618 | EOF |
16619 | ||
16620 | fi | |
16621 | ||
16622 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
16623 | if test "$wxUSE_GTK" = 1; then | |
16624 | if test "$WXGTK12" != 1; then | |
698dcdb6 | 16625 | echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2 |
10f2d63a VZ |
16626 | wxUSE_DRAG_AND_DROP=no |
16627 | fi | |
16628 | fi | |
16629 | ||
16630 | if test "$wxUSE_MOTIF" = 1; then | |
698dcdb6 | 16631 | echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2 |
10f2d63a VZ |
16632 | wxUSE_DRAG_AND_DROP=no |
16633 | fi | |
16634 | ||
2c6025bc | 16635 | if test "$wxUSE_MAC" = 1; then |
698dcdb6 | 16636 | echo "configure: warning: Drag and drop is not yet supported under Mac OS X" 1>&2 |
2c6025bc GD |
16637 | wxUSE_DRAG_AND_DROP=no |
16638 | fi | |
16639 | ||
10f2d63a | 16640 | if test "$USE_WIN32" = 1; then |
698dcdb6 VZ |
16641 | |
16642 | for ac_hdr in ole2.h | |
10f2d63a | 16643 | do |
698dcdb6 VZ |
16644 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
16645 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3379ed37 | 16646 | echo "configure:16647: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
16647 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
16648 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16649 | else | |
16650 | cat > conftest.$ac_ext <<EOF | |
3379ed37 | 16651 | #line 16652 "configure" |
10f2d63a | 16652 | #include "confdefs.h" |
698dcdb6 VZ |
16653 | #include <$ac_hdr> |
16654 | EOF | |
16655 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3379ed37 | 16656 | { (eval echo configure:16657: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
16657 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
16658 | if test -z "$ac_err"; then | |
16659 | rm -rf conftest* | |
16660 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 16661 | else |
698dcdb6 VZ |
16662 | echo "$ac_err" >&5 |
16663 | echo "configure: failed program was:" >&5 | |
10f2d63a | 16664 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
16665 | rm -rf conftest* |
16666 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 16667 | fi |
698dcdb6 | 16668 | rm -f conftest* |
10f2d63a | 16669 | fi |
698dcdb6 VZ |
16670 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
16671 | echo "$ac_t""yes" 1>&6 | |
16672 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
16673 | cat >> confdefs.h <<EOF | |
16674 | #define $ac_tr_hdr 1 | |
10f2d63a | 16675 | EOF |
698dcdb6 VZ |
16676 | |
16677 | else | |
16678 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
16679 | fi |
16680 | done | |
16681 | ||
698dcdb6 | 16682 | |
57fe5ed0 | 16683 | if test "$ac_cv_header_ole2_h" = "yes" ; then |
c521c494 | 16684 | if test "$GCC" = yes ; then |
b64f0a5f RL |
16685 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" |
16686 | ALL_DEPFILES="$ALL_DEPFILES \$(OLEDEPS)" | |
c521c494 | 16687 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" |
b64f0a5f RL |
16688 | LIBS="$LIBS -lole32 -luuid" |
16689 | ||
16690 | if test "$wxUSE_METAFILE" = "yes"; then | |
698dcdb6 | 16691 | cat >> confdefs.h <<\EOF |
b64f0a5f RL |
16692 | #define wxUSE_METAFILE 1 |
16693 | EOF | |
16694 | ||
698dcdb6 | 16695 | cat >> confdefs.h <<\EOF |
b64f0a5f RL |
16696 | #define wxUSE_ENH_METAFILE 1 |
16697 | EOF | |
16698 | ||
16699 | fi | |
c521c494 RL |
16700 | fi |
16701 | else | |
698dcdb6 | 16702 | echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2 |
10f2d63a VZ |
16703 | wxUSE_DRAG_AND_DROP=no |
16704 | fi | |
16705 | fi | |
16706 | ||
16707 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
698dcdb6 | 16708 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16709 | #define wxUSE_DRAG_AND_DROP 1 |
16710 | EOF | |
16711 | ||
16712 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
16713 | fi | |
16714 | ||
16715 | fi | |
16716 | ||
16717 | if test "$wxUSE_SPLINES" = "yes" ; then | |
698dcdb6 | 16718 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16719 | #define wxUSE_SPLINES 1 |
16720 | EOF | |
16721 | ||
16722 | fi | |
16723 | ||
698dcdb6 | 16724 | |
1e6feb95 VZ |
16725 | USES_CONTROLS=0 |
16726 | if test "$wxUSE_CONTROLS" = "yes"; then | |
16727 | USES_CONTROLS=1 | |
16728 | fi | |
16729 | ||
10f2d63a | 16730 | if test "$wxUSE_ACCEL" = "yes"; then |
698dcdb6 | 16731 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16732 | #define wxUSE_ACCEL 1 |
16733 | EOF | |
16734 | ||
1e6feb95 VZ |
16735 | USES_CONTROLS=1 |
16736 | fi | |
16737 | ||
16738 | if test "$wxUSE_BUTTON" = "yes"; then | |
16739 | cat >> confdefs.h <<\EOF | |
16740 | #define wxUSE_BUTTON 1 | |
16741 | EOF | |
16742 | ||
16743 | USES_CONTROLS=1 | |
16744 | fi | |
16745 | ||
16746 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
16747 | cat >> confdefs.h <<\EOF | |
16748 | #define wxUSE_BMPBUTTON 1 | |
16749 | EOF | |
16750 | ||
16751 | USES_CONTROLS=1 | |
16752 | fi | |
16753 | ||
16754 | if test "$wxUSE_CALCTRL" = "yes"; then | |
16755 | cat >> confdefs.h <<\EOF | |
16756 | #define wxUSE_CALENDARCTRL 1 | |
16757 | EOF | |
16758 | ||
16759 | USES_CONTROLS=1 | |
16760 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
10f2d63a VZ |
16761 | fi |
16762 | ||
16763 | if test "$wxUSE_CARET" = "yes"; then | |
698dcdb6 | 16764 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16765 | #define wxUSE_CARET 1 |
16766 | EOF | |
16767 | ||
1e6feb95 | 16768 | USES_CONTROLS=1 |
10f2d63a VZ |
16769 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" |
16770 | fi | |
16771 | ||
16772 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
698dcdb6 | 16773 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16774 | #define wxUSE_COMBOBOX 1 |
16775 | EOF | |
16776 | ||
1e6feb95 | 16777 | USES_CONTROLS=1 |
10f2d63a VZ |
16778 | fi |
16779 | ||
16780 | if test "$wxUSE_CHOICE" = "yes"; then | |
698dcdb6 | 16781 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16782 | #define wxUSE_CHOICE 1 |
16783 | EOF | |
16784 | ||
1e6feb95 | 16785 | USES_CONTROLS=1 |
10f2d63a VZ |
16786 | fi |
16787 | ||
16788 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
698dcdb6 | 16789 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16790 | #define wxUSE_CHECKBOX 1 |
16791 | EOF | |
16792 | ||
1e6feb95 | 16793 | USES_CONTROLS=1 |
10f2d63a VZ |
16794 | fi |
16795 | ||
16796 | if test "$wxUSE_CHECKLST" = "yes"; then | |
698dcdb6 | 16797 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16798 | #define wxUSE_CHECKLISTBOX 1 |
16799 | EOF | |
16800 | ||
1e6feb95 | 16801 | USES_CONTROLS=1 |
10f2d63a VZ |
16802 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" |
16803 | fi | |
16804 | ||
16805 | if test "$wxUSE_GAUGE" = "yes"; then | |
698dcdb6 | 16806 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16807 | #define wxUSE_GAUGE 1 |
16808 | EOF | |
16809 | ||
1e6feb95 | 16810 | USES_CONTROLS=1 |
10f2d63a VZ |
16811 | fi |
16812 | ||
d6a55c4b VZ |
16813 | if test "$wxUSE_NEW_GRID" = "yes"; then |
16814 | wxUSE_GRID="yes" | |
698dcdb6 | 16815 | cat >> confdefs.h <<\EOF |
d6a55c4b | 16816 | #define wxUSE_NEW_GRID 1 |
10f2d63a VZ |
16817 | EOF |
16818 | ||
1e6feb95 | 16819 | USES_CONTROLS=1 |
d6a55c4b | 16820 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid" |
10f2d63a VZ |
16821 | fi |
16822 | ||
d6a55c4b | 16823 | if test "$wxUSE_GRID" = "yes"; then |
698dcdb6 | 16824 | cat >> confdefs.h <<\EOF |
d6a55c4b | 16825 | #define wxUSE_GRID 1 |
10f2d63a VZ |
16826 | EOF |
16827 | ||
1e6feb95 | 16828 | USES_CONTROLS=1 |
d6a55c4b | 16829 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" |
10f2d63a VZ |
16830 | fi |
16831 | ||
16832 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 16833 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16834 | #define wxUSE_IMAGLIST 1 |
16835 | EOF | |
16836 | ||
16837 | fi | |
16838 | ||
16839 | if test "$wxUSE_LISTBOX" = "yes"; then | |
698dcdb6 | 16840 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16841 | #define wxUSE_LISTBOX 1 |
16842 | EOF | |
16843 | ||
1e6feb95 | 16844 | USES_CONTROLS=1 |
10f2d63a VZ |
16845 | fi |
16846 | ||
16847 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
16848 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 16849 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16850 | #define wxUSE_LISTCTRL 1 |
16851 | EOF | |
16852 | ||
1e6feb95 | 16853 | USES_CONTROLS=1 |
10f2d63a VZ |
16854 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" |
16855 | else | |
698dcdb6 | 16856 | echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
16857 | fi |
16858 | fi | |
16859 | ||
16860 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
698dcdb6 | 16861 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16862 | #define wxUSE_NOTEBOOK 1 |
16863 | EOF | |
16864 | ||
1e6feb95 | 16865 | USES_CONTROLS=1 |
10f2d63a VZ |
16866 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" |
16867 | fi | |
16868 | ||
16869 | if test "$wxUSE_RADIOBOX" = "yes"; then | |
698dcdb6 | 16870 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16871 | #define wxUSE_RADIOBOX 1 |
16872 | EOF | |
16873 | ||
1e6feb95 | 16874 | USES_CONTROLS=1 |
10f2d63a VZ |
16875 | fi |
16876 | ||
16877 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
698dcdb6 | 16878 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16879 | #define wxUSE_RADIOBTN 1 |
16880 | EOF | |
16881 | ||
1e6feb95 | 16882 | USES_CONTROLS=1 |
10f2d63a VZ |
16883 | fi |
16884 | ||
16885 | if test "$wxUSE_SASH" = "yes"; then | |
698dcdb6 | 16886 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16887 | #define wxUSE_SASH 1 |
16888 | EOF | |
16889 | ||
16890 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
16891 | fi | |
16892 | ||
16893 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
698dcdb6 | 16894 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16895 | #define wxUSE_SCROLLBAR 1 |
16896 | EOF | |
16897 | ||
1e6feb95 | 16898 | USES_CONTROLS=1 |
741a9306 | 16899 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
16900 | fi |
16901 | ||
16902 | if test "$wxUSE_SLIDER" = "yes"; then | |
698dcdb6 | 16903 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16904 | #define wxUSE_SLIDER 1 |
16905 | EOF | |
16906 | ||
1e6feb95 | 16907 | USES_CONTROLS=1 |
10f2d63a VZ |
16908 | fi |
16909 | ||
16910 | if test "$wxUSE_SPINBTN" = "yes"; then | |
698dcdb6 | 16911 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16912 | #define wxUSE_SPINBTN 1 |
16913 | EOF | |
16914 | ||
1e6feb95 | 16915 | USES_CONTROLS=1 |
10f2d63a VZ |
16916 | fi |
16917 | ||
56cfaa52 | 16918 | if test "$wxUSE_SPINCTRL" = "yes"; then |
698dcdb6 | 16919 | cat >> confdefs.h <<\EOF |
56cfaa52 RR |
16920 | #define wxUSE_SPINCTRL 1 |
16921 | EOF | |
16922 | ||
1e6feb95 | 16923 | USES_CONTROLS=1 |
56cfaa52 RR |
16924 | fi |
16925 | ||
10f2d63a | 16926 | if test "$wxUSE_SPLITTER" = "yes"; then |
698dcdb6 | 16927 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16928 | #define wxUSE_SPLITTER 1 |
16929 | EOF | |
16930 | ||
16931 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
16932 | fi | |
16933 | ||
16934 | if test "$wxUSE_STATBMP" = "yes"; then | |
698dcdb6 | 16935 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16936 | #define wxUSE_STATBMP 1 |
16937 | EOF | |
16938 | ||
1e6feb95 | 16939 | USES_CONTROLS=1 |
10f2d63a VZ |
16940 | fi |
16941 | ||
16942 | if test "$wxUSE_STATBOX" = "yes"; then | |
698dcdb6 | 16943 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16944 | #define wxUSE_STATBOX 1 |
16945 | EOF | |
16946 | ||
1e6feb95 VZ |
16947 | USES_CONTROLS=1 |
16948 | fi | |
16949 | ||
16950 | if test "$wxUSE_STATTEXT" = "yes"; then | |
16951 | cat >> confdefs.h <<\EOF | |
16952 | #define wxUSE_STATTEXT 1 | |
16953 | EOF | |
16954 | ||
16955 | USES_CONTROLS=1 | |
10f2d63a VZ |
16956 | fi |
16957 | ||
16958 | if test "$wxUSE_STATLINE" = "yes"; then | |
16959 | if test "$wxUSE_WINE" = 1 ; then | |
698dcdb6 | 16960 | echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2 |
10f2d63a | 16961 | else |
698dcdb6 | 16962 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16963 | #define wxUSE_STATLINE 1 |
16964 | EOF | |
16965 | ||
1e6feb95 | 16966 | USES_CONTROLS=1 |
10f2d63a VZ |
16967 | fi |
16968 | fi | |
16969 | ||
16970 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
698dcdb6 | 16971 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16972 | #define wxUSE_STATUSBAR 1 |
16973 | EOF | |
16974 | ||
1e6feb95 | 16975 | USES_CONTROLS=1 |
698dcdb6 | 16976 | |
2286341c | 16977 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" |
10f2d63a VZ |
16978 | fi |
16979 | ||
16980 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
698dcdb6 | 16981 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16982 | #define wxUSE_TAB_DIALOG 1 |
16983 | EOF | |
16984 | ||
16985 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
16986 | fi | |
16987 | ||
1e6feb95 VZ |
16988 | if test "$wxUSE_TEXTCTRL" = "yes"; then |
16989 | cat >> confdefs.h <<\EOF | |
16990 | #define wxUSE_TEXTCTRL 1 | |
16991 | EOF | |
16992 | ||
16993 | USES_CONTROLS=1 | |
16994 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
16995 | fi | |
16996 | ||
1db8dc4a | 16997 | if test "$wxUSE_TOGGLEBTN" = "yes"; then |
a45d7ab7 GD |
16998 | if test "$wxUSE_MAC" = 1; then |
16999 | echo "configure: warning: Toggle button is not yet supported under Mac OS X" 1>&2 | |
17000 | wxUSE_TOGGLEBTN=no | |
17001 | fi | |
17002 | ||
17003 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
17004 | cat >> confdefs.h <<\EOF | |
1db8dc4a VZ |
17005 | #define wxUSE_TOGGLEBTN 1 |
17006 | EOF | |
17007 | ||
1e6feb95 | 17008 | USES_CONTROLS=1 |
a45d7ab7 | 17009 | fi |
1db8dc4a VZ |
17010 | fi |
17011 | ||
360d6699 | 17012 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
698dcdb6 | 17013 | cat >> confdefs.h <<\EOF |
360d6699 VZ |
17014 | #define wxUSE_TOOLBAR_SIMPLE 1 |
17015 | EOF | |
17016 | ||
17017 | wxUSE_TOOLBAR="yes" | |
1e6feb95 | 17018 | USES_CONTROLS=1 |
360d6699 VZ |
17019 | fi |
17020 | ||
10f2d63a | 17021 | if test "$wxUSE_TOOLBAR" = "yes"; then |
698dcdb6 | 17022 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17023 | #define wxUSE_TOOLBAR 1 |
17024 | EOF | |
17025 | ||
1e6feb95 | 17026 | USES_CONTROLS=1 |
698dcdb6 | 17027 | |
360d6699 VZ |
17028 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then |
17029 | wxUSE_TOOLBAR_NATIVE="yes" | |
17030 | fi | |
17031 | ||
1e6feb95 VZ |
17032 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
17033 | cat >> confdefs.h <<\EOF | |
360d6699 VZ |
17034 | #define wxUSE_TOOLBAR_NATIVE 1 |
17035 | EOF | |
17036 | ||
1e6feb95 VZ |
17037 | USES_CONTROLS=1 |
17038 | fi | |
17039 | ||
17040 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
360d6699 VZ |
17041 | fi |
17042 | ||
10f2d63a VZ |
17043 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
17044 | if test "$wxUSE_MOTIF" = 1; then | |
698dcdb6 | 17045 | echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2 |
10f2d63a VZ |
17046 | else |
17047 | if test "$wxUSE_WINE" = 1; then | |
698dcdb6 | 17048 | echo "configure: warning: wxTooltip not supported under WINE" 1>&2 |
10f2d63a | 17049 | else |
698dcdb6 | 17050 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17051 | #define wxUSE_TOOLTIPS 1 |
17052 | EOF | |
17053 | ||
17054 | fi | |
17055 | fi | |
17056 | fi | |
17057 | ||
17058 | if test "$wxUSE_TREECTRL" = "yes"; then | |
17059 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 17060 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17061 | #define wxUSE_TREECTRL 1 |
17062 | EOF | |
17063 | ||
1e6feb95 | 17064 | USES_CONTROLS=1 |
10f2d63a VZ |
17065 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" |
17066 | else | |
698dcdb6 | 17067 | echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
17068 | fi |
17069 | fi | |
17070 | ||
1e6feb95 VZ |
17071 | if test "$USES_CONTROLS" = 1; then |
17072 | cat >> confdefs.h <<\EOF | |
17073 | #define wxUSE_CONTROLS 1 | |
10f2d63a VZ |
17074 | EOF |
17075 | ||
10f2d63a VZ |
17076 | fi |
17077 | ||
1e6feb95 VZ |
17078 | |
17079 | ||
24fd6d87 VZ |
17080 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
17081 | cat >> confdefs.h <<\EOF | |
17082 | #define wxUSE_DRAGIMAGE 1 | |
17083 | EOF | |
17084 | ||
17085 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
17086 | fi | |
17087 | ||
1e6feb95 | 17088 | if test "$wxUSE_MENUS" = "yes"; then |
698dcdb6 | 17089 | cat >> confdefs.h <<\EOF |
1e6feb95 | 17090 | #define wxUSE_MENUS 1 |
10f2d63a VZ |
17091 | EOF |
17092 | ||
1e6feb95 | 17093 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" |
10f2d63a VZ |
17094 | fi |
17095 | ||
1e6feb95 VZ |
17096 | if test "$wxUSE_METAFILE" = "yes"; then |
17097 | cat >> confdefs.h <<\EOF | |
17098 | #define wxUSE_METAFILE 1 | |
10f2d63a VZ |
17099 | EOF |
17100 | ||
10f2d63a VZ |
17101 | fi |
17102 | ||
1e6feb95 VZ |
17103 | if test "$wxUSE_MIMETYPE" = "yes"; then |
17104 | cat >> confdefs.h <<\EOF | |
17105 | #define wxUSE_MIMETYPE 1 | |
10f2d63a VZ |
17106 | EOF |
17107 | ||
10f2d63a VZ |
17108 | fi |
17109 | ||
17110 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
698dcdb6 | 17111 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17112 | #define wxUSE_MINIFRAME 1 |
17113 | EOF | |
17114 | ||
17115 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
17116 | fi | |
17117 | ||
17118 | if test "$wxUSE_HTML" = "yes"; then | |
698dcdb6 | 17119 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17120 | #define wxUSE_HTML 1 |
17121 | EOF | |
17122 | ||
17123 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html" | |
17124 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html" | |
17125 | fi | |
17126 | ||
17127 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
698dcdb6 | 17128 | cat >> confdefs.h <<\EOF |
1e487827 VS |
17129 | #define wxUSE_VALIDATORS 1 |
17130 | EOF | |
703e0a69 | 17131 | |
698dcdb6 VZ |
17132 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" |
17133 | fi | |
17134 | ||
17135 | if test "$wxUSE_IMAGE" = "yes" ; then | |
17136 | cat >> confdefs.h <<\EOF | |
17137 | #define wxUSE_IMAGE 1 | |
17138 | EOF | |
17139 | ||
17140 | fi | |
17141 | ||
17142 | if test "$wxUSE_GIF" = "yes" ; then | |
17143 | cat >> confdefs.h <<\EOF | |
17144 | #define wxUSE_GIF 1 | |
17145 | EOF | |
17146 | ||
17147 | fi | |
17148 | ||
17149 | if test "$wxUSE_PCX" = "yes" ; then | |
17150 | cat >> confdefs.h <<\EOF | |
17151 | #define wxUSE_PCX 1 | |
17152 | EOF | |
17153 | ||
17154 | fi | |
17155 | ||
17156 | if test "$wxUSE_PNM" = "yes" ; then | |
17157 | cat >> confdefs.h <<\EOF | |
17158 | #define wxUSE_PNM 1 | |
17159 | EOF | |
17160 | ||
17161 | fi | |
17162 | ||
17163 | if test "$wxUSE_XPM" = "yes" ; then | |
17164 | cat >> confdefs.h <<\EOF | |
17165 | #define wxUSE_XPM 1 | |
17166 | EOF | |
17167 | ||
17168 | fi | |
17169 | ||
17170 | ||
1e6feb95 VZ |
17171 | if test "$wxUSE_CHOICEDLG" = "yes"; then |
17172 | cat >> confdefs.h <<\EOF | |
17173 | #define wxUSE_CHOICEDLG 1 | |
17174 | EOF | |
17175 | ||
17176 | fi | |
17177 | ||
17178 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
17179 | cat >> confdefs.h <<\EOF | |
17180 | #define wxUSE_COLOURDLG 1 | |
17181 | EOF | |
17182 | ||
17183 | fi | |
17184 | ||
17185 | if test "$wxUSE_FILEDLG" = "yes"; then | |
17186 | cat >> confdefs.h <<\EOF | |
17187 | #define wxUSE_FILEDLG 1 | |
17188 | EOF | |
17189 | ||
17190 | fi | |
17191 | ||
17192 | if test "$wxUSE_FONTDLG" = "yes"; then | |
17193 | cat >> confdefs.h <<\EOF | |
17194 | #define wxUSE_FONTDLG 1 | |
17195 | EOF | |
17196 | ||
17197 | fi | |
17198 | ||
17199 | if test "$wxUSE_DIRDLG" = "yes"; then | |
17200 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
17201 | echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2 | |
17202 | else | |
17203 | if test "$wxUSE_TREECTRL" != "yes"; then | |
17204 | echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2 | |
17205 | else | |
17206 | cat >> confdefs.h <<\EOF | |
17207 | #define wxUSE_DIRDLG 1 | |
17208 | EOF | |
17209 | ||
17210 | fi | |
17211 | fi | |
17212 | fi | |
17213 | ||
17214 | if test "$wxUSE_MSGDLG" = "yes"; then | |
17215 | cat >> confdefs.h <<\EOF | |
17216 | #define wxUSE_MSGDLG 1 | |
17217 | EOF | |
17218 | ||
17219 | fi | |
17220 | ||
17221 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
17222 | cat >> confdefs.h <<\EOF | |
17223 | #define wxUSE_NUMBERDLG 1 | |
17224 | EOF | |
17225 | ||
17226 | fi | |
17227 | ||
17228 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
17229 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
17230 | echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2 | |
17231 | else | |
17232 | cat >> confdefs.h <<\EOF | |
17233 | #define wxUSE_PROGRESSDLG 1 | |
17234 | EOF | |
17235 | ||
17236 | fi | |
17237 | fi | |
17238 | ||
17239 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then | |
17240 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
17241 | echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2 | |
17242 | else | |
17243 | cat >> confdefs.h <<\EOF | |
17244 | #define wxUSE_STARTUP_TIPS 1 | |
17245 | EOF | |
17246 | ||
17247 | fi | |
17248 | fi | |
17249 | ||
17250 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
17251 | cat >> confdefs.h <<\EOF | |
17252 | #define wxUSE_TEXTDLG 1 | |
17253 | EOF | |
17254 | ||
17255 | fi | |
17256 | ||
b1f5d087 VZ |
17257 | if test "$wxUSE_WIZARDDLG" = "yes"; then |
17258 | cat >> confdefs.h <<\EOF | |
17259 | #define wxUSE_WIZARDDLG 1 | |
17260 | EOF | |
17261 | ||
17262 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
17263 | fi | |
17264 | ||
1e6feb95 | 17265 | |
698dcdb6 VZ |
17266 | if test "$cross_compiling" = "yes"; then |
17267 | OSINFO="\"$host\"" | |
17268 | else | |
17269 | OSINFO=`uname -s -r -m` | |
17270 | OSINFO="\"$OSINFO\"" | |
17271 | fi | |
17272 | ||
17273 | cat >> confdefs.h <<EOF | |
17274 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
17275 | EOF | |
17276 | ||
17277 | ||
17278 | ||
17279 | GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK" | |
17280 | OPENGL_LIBS="$OPENGL_LINK" | |
17281 | ||
17282 | EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm" | |
17283 | if test "$USE_MAC" = 1 ; then | |
17284 | EXTRA_LIBS="$EXTRA_LIBS -framework Carbon -framework System" | |
17285 | fi | |
17286 | if test "$wxUSE_GUI" = "yes"; then | |
17287 | EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $FREETYPE_LINK $EXTRA_LIBS" | |
17288 | fi | |
17289 | ||
17290 | LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS" | |
17291 | ||
17292 | INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $FREETYPE_INCLUDE $TOOLKIT_INCLUDE" | |
17293 | ||
17294 | if test "$wxUSE_GTK" = 1; then | |
17295 | WXCONFIG_INCLUDE="" | |
17296 | else | |
17297 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
17298 | fi | |
17299 | ||
17300 | if test "$GXX" = yes ; then | |
17301 | CXXWARNINGS="-Wall" | |
17302 | fi | |
17303 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES" | |
17304 | ||
17305 | CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` | |
17306 | CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
17307 | ||
17308 | LDFLAGS="$LDFLAGS $PROFILE" | |
17309 | ||
17310 | if test "$wxUSE_GUI" = "yes"; then | |
17311 | ||
24fd6d87 | 17312 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \ |
1e6feb95 VZ |
17313 | drawing dynamic event font fractal image \ |
17314 | minimal richedit widgets" | |
17315 | ||
17316 | if test "$wxUSE_UNIVERSAL" = "yes" ; then | |
17317 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS univ" | |
17318 | fi | |
698dcdb6 VZ |
17319 | |
17320 | CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)" | |
17321 | else | |
17322 | SAMPLES_SUBDIRS="" | |
17323 | fi | |
17324 | ||
17325 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
17326 | ||
17327 | ||
17328 | ||
17329 | ||
17330 | ||
17331 | ||
17332 | ||
17333 | ||
17334 | ||
17335 | ||
17336 | ||
17337 | ||
17338 | ||
17339 | ||
17340 | ||
17341 | ||
17342 | ||
17343 | ||
17344 | ||
17345 | ||
17346 | ||
17347 | ||
17348 | ||
17349 | ||
17350 | ||
17351 | ||
17352 | ||
17353 | ||
17354 | ||
17355 | ||
17356 | ||
17357 | ||
17358 | ||
17359 | ||
17360 | ||
17361 | ||
17362 | ||
17363 | ||
17364 | ||
17365 | ||
17366 | ||
17367 | ||
17368 | ||
17369 | ||
17370 | ||
17371 | ||
17372 | ||
17373 | ||
17374 | ||
17375 | ||
17376 | ||
17377 | ||
17378 | ||
17379 | ||
17380 | ||
17381 | ||
17382 | ||
17383 | ||
17384 | ||
17385 | ||
17386 | ||
17387 | ||
17388 | ||
17389 | ||
17390 | ||
17391 | ||
17392 | ||
32832908 VZ |
17393 | |
17394 | ||
17395 | ||
17396 | ||
17397 | ||
17398 | ||
17399 | ||
2224580a | 17400 | |
dad6c0ea | 17401 | |
f6bcfd97 BP |
17402 | |
17403 | ||
17404 | ||
2f51a9ec GD |
17405 | |
17406 | ||
17407 | ||
17408 | ||
17409 | ||
17410 | ||
f6bcfd97 | 17411 | |
dad6c0ea | 17412 | |
caa2c79b | 17413 | |
3711412e | 17414 | |
1e6feb95 VZ |
17415 | |
17416 | ||
0f3f1cbc | 17417 | |
10f2d63a VZ |
17418 | |
17419 | ||
698dcdb6 | 17420 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
3379ed37 | 17421 | echo "configure:17422: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
698dcdb6 VZ |
17422 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
17423 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
17424 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 17425 | else |
698dcdb6 | 17426 | cat > conftestmake <<\EOF |
10f2d63a VZ |
17427 | all: |
17428 | @echo 'ac_maketemp="${MAKE}"' | |
17429 | EOF | |
17430 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
698dcdb6 | 17431 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
10f2d63a VZ |
17432 | if test -n "$ac_maketemp"; then |
17433 | eval ac_cv_prog_make_${ac_make}_set=yes | |
17434 | else | |
17435 | eval ac_cv_prog_make_${ac_make}_set=no | |
17436 | fi | |
698dcdb6 | 17437 | rm -f conftestmake |
10f2d63a VZ |
17438 | fi |
17439 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
698dcdb6 | 17440 | echo "$ac_t""yes" 1>&6 |
10f2d63a VZ |
17441 | SET_MAKE= |
17442 | else | |
698dcdb6 | 17443 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
17444 | SET_MAKE="MAKE=${MAKE-make}" |
17445 | fi | |
17446 | ||
698dcdb6 | 17447 | |
00cf1208 RR |
17448 | if test -d include; then |
17449 | if test -d include/wx; then | |
1e6feb95 VZ |
17450 | if test -d include/wx/${SETUPH_DIR}; then |
17451 | if test -f include/wx/${SETUPH_DIR}/setup.h; then | |
17452 | mv -f include/wx/${SETUPH_DIR}/setup.h setup.h | |
00cf1208 RR |
17453 | fi |
17454 | fi | |
17455 | fi | |
17456 | fi | |
665bbe97 | 17457 | |
698dcdb6 | 17458 | |
10f2d63a | 17459 | |
2224580a | 17460 | if test "$wxUSE_GUI" = "yes"; then |
ec90f5e5 | 17461 | wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS |
e8482f24 GL |
17462 | wx_cv_path_ifs=$PATH_IFS |
17463 | wx_cv_program_ext=$PROGRAM_EXT | |
17464 | wx_cv_target_library=$WX_TARGET_LIBRARY | |
3711412e | 17465 | wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE |
93a20a27 VS |
17466 | export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \ |
17467 | wx_cv_target_library wx_cv_target_libtype | |
698dcdb6 | 17468 | subdirs="demos samples utils contrib" |
2224580a VZ |
17469 | |
17470 | fi | |
10f2d63a | 17471 | |
698dcdb6 VZ |
17472 | trap '' 1 2 15 |
17473 | cat > confcache <<\EOF | |
10f2d63a VZ |
17474 | # This file is a shell script that caches the results of configure |
17475 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
17476 | # scripts and configure runs. It is not useful on other systems. |
17477 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 17478 | # |
698dcdb6 VZ |
17479 | # By default, configure uses ./config.cache as the cache file, |
17480 | # creating it if it does not exist already. You can give configure | |
17481 | # the --cache-file=FILE option to use a different cache file; that is | |
17482 | # what configure does when it calls configure scripts in | |
17483 | # subdirectories, so they share the cache. | |
17484 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
17485 | # config.status only pays attention to the cache file if you give it the | |
17486 | # --recheck option to rerun configure. | |
10f2d63a | 17487 | # |
698dcdb6 | 17488 | EOF |
10f2d63a VZ |
17489 | # The following way of writing the cache mishandles newlines in values, |
17490 | # but we know of no workaround that is simple, portable, and efficient. | |
17491 | # So, don't put newlines in cache variables' values. | |
17492 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
17493 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
17494 | (set) 2>&1 | |
17495 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
17496 | *ac_space=\ *) | |
17497 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
17498 | # turns \\\\ into \\, and sed turns \\ into \). | |
17499 | sed -n \ | |
17500 | -e "s/'/'\\\\''/g" \ | |
17501 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
17502 | ;; | |
17503 | *) | |
17504 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
17505 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
17506 | ;; | |
17507 | esac >> confcache | |
17508 | if cmp -s $cache_file confcache; then | |
17509 | : | |
17510 | else | |
10f2d63a | 17511 | if test -w $cache_file; then |
698dcdb6 VZ |
17512 | echo "updating cache $cache_file" |
17513 | cat confcache > $cache_file | |
10f2d63a VZ |
17514 | else |
17515 | echo "not updating unwritable cache $cache_file" | |
17516 | fi | |
17517 | fi | |
17518 | rm -f confcache | |
17519 | ||
698dcdb6 VZ |
17520 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
17521 | ||
10f2d63a VZ |
17522 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
17523 | # Let make expand exec_prefix. | |
17524 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
17525 | ||
698dcdb6 VZ |
17526 | # Any assignment to VPATH causes Sun make to only execute |
17527 | # the first set of double-colon rules, so remove it if not needed. | |
17528 | # If there is a colon in the path, we need to keep it. | |
10f2d63a | 17529 | if test "x$srcdir" = x.; then |
698dcdb6 | 17530 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
10f2d63a VZ |
17531 | fi |
17532 | ||
698dcdb6 VZ |
17533 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
17534 | ||
10f2d63a VZ |
17535 | DEFS=-DHAVE_CONFIG_H |
17536 | ||
698dcdb6 | 17537 | # Without the "./", some shells look in PATH for config.status. |
10f2d63a | 17538 | : ${CONFIG_STATUS=./config.status} |
698dcdb6 VZ |
17539 | |
17540 | echo creating $CONFIG_STATUS | |
17541 | rm -f $CONFIG_STATUS | |
17542 | cat > $CONFIG_STATUS <<EOF | |
17543 | #! /bin/sh | |
10f2d63a VZ |
17544 | # Generated automatically by configure. |
17545 | # Run this file to recreate the current configuration. | |
698dcdb6 VZ |
17546 | # This directory was configured as follows, |
17547 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
17548 | # | |
17549 | # $0 $ac_configure_args | |
17550 | # | |
10f2d63a | 17551 | # Compiler output produced by configure, useful for debugging |
698dcdb6 | 17552 | # configure, is in ./config.log if it exists. |
1e487827 | 17553 | |
698dcdb6 VZ |
17554 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
17555 | for ac_option | |
10f2d63a | 17556 | do |
698dcdb6 | 17557 | case "\$ac_option" in |
10f2d63a | 17558 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
698dcdb6 VZ |
17559 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
17560 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
17561 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
17562 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | |
17563 | exit 0 ;; | |
17564 | -help | --help | --hel | --he | --h) | |
17565 | echo "\$ac_cs_usage"; exit 0 ;; | |
17566 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
10f2d63a VZ |
17567 | esac |
17568 | done | |
17569 | ||
698dcdb6 VZ |
17570 | ac_given_srcdir=$srcdir |
17571 | ac_given_INSTALL="$INSTALL" | |
703e0a69 | 17572 | |
698dcdb6 VZ |
17573 | trap 'rm -fr `echo " |
17574 | wx-config | |
17575 | src/make.env | |
17576 | src/makeprog.env | |
17577 | src/makelib.env | |
17578 | Makefile | |
17579 | setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
1e487827 | 17580 | EOF |
698dcdb6 | 17581 | cat >> $CONFIG_STATUS <<EOF |
1e487827 | 17582 | |
698dcdb6 VZ |
17583 | # Protect against being on the right side of a sed subst in config.status. |
17584 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
17585 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
17586 | $ac_vpsub | |
17587 | $extrasub | |
17588 | s%@SHELL@%$SHELL%g | |
17589 | s%@CFLAGS@%$CFLAGS%g | |
17590 | s%@CPPFLAGS@%$CPPFLAGS%g | |
17591 | s%@CXXFLAGS@%$CXXFLAGS%g | |
17592 | s%@FFLAGS@%$FFLAGS%g | |
17593 | s%@DEFS@%$DEFS%g | |
17594 | s%@LDFLAGS@%$LDFLAGS%g | |
17595 | s%@LIBS@%$LIBS%g | |
17596 | s%@exec_prefix@%$exec_prefix%g | |
17597 | s%@prefix@%$prefix%g | |
17598 | s%@program_transform_name@%$program_transform_name%g | |
17599 | s%@bindir@%$bindir%g | |
17600 | s%@sbindir@%$sbindir%g | |
17601 | s%@libexecdir@%$libexecdir%g | |
17602 | s%@datadir@%$datadir%g | |
17603 | s%@sysconfdir@%$sysconfdir%g | |
17604 | s%@sharedstatedir@%$sharedstatedir%g | |
17605 | s%@localstatedir@%$localstatedir%g | |
17606 | s%@libdir@%$libdir%g | |
17607 | s%@includedir@%$includedir%g | |
17608 | s%@oldincludedir@%$oldincludedir%g | |
17609 | s%@infodir@%$infodir%g | |
17610 | s%@mandir@%$mandir%g | |
17611 | s%@host@%$host%g | |
17612 | s%@host_alias@%$host_alias%g | |
17613 | s%@host_cpu@%$host_cpu%g | |
17614 | s%@host_vendor@%$host_vendor%g | |
17615 | s%@host_os@%$host_os%g | |
17616 | s%@target@%$target%g | |
17617 | s%@target_alias@%$target_alias%g | |
17618 | s%@target_cpu@%$target_cpu%g | |
17619 | s%@target_vendor@%$target_vendor%g | |
17620 | s%@target_os@%$target_os%g | |
17621 | s%@build@%$build%g | |
17622 | s%@build_alias@%$build_alias%g | |
17623 | s%@build_cpu@%$build_cpu%g | |
17624 | s%@build_vendor@%$build_vendor%g | |
17625 | s%@build_os@%$build_os%g | |
17626 | s%@CC@%$CC%g | |
17627 | s%@CPP@%$CPP%g | |
17628 | s%@CXX@%$CXX%g | |
17629 | s%@CXXCPP@%$CXXCPP%g | |
17630 | s%@RANLIB@%$RANLIB%g | |
17631 | s%@AR@%$AR%g | |
17632 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
17633 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | |
17634 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
17635 | s%@STRIP@%$STRIP%g | |
17636 | s%@YACC@%$YACC%g | |
17637 | s%@LEX@%$LEX%g | |
17638 | s%@LEXLIB@%$LEXLIB%g | |
17639 | s%@LN_S@%$LN_S%g | |
17640 | s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g | |
698dcdb6 VZ |
17641 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g |
17642 | s%@GTK_LIBS@%$GTK_LIBS%g | |
8168de4c | 17643 | s%@GTK_CONFIG@%$GTK_CONFIG%g |
698dcdb6 VZ |
17644 | s%@X_CFLAGS@%$X_CFLAGS%g |
17645 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
17646 | s%@X_LIBS@%$X_LIBS%g | |
17647 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
17648 | s%@REZ@%$REZ%g | |
17649 | s%@DEREZ@%$DEREZ%g | |
17650 | s%@LEX_STEM@%$LEX_STEM%g | |
17651 | s%@PATH_IFS@%$PATH_IFS%g | |
17652 | s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g | |
17653 | s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g | |
17654 | s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g | |
17655 | s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g | |
17656 | s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g | |
17657 | s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g | |
17658 | s%@WX_LIBRARY@%$WX_LIBRARY%g | |
17659 | s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g | |
17660 | s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g | |
17661 | s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g | |
17662 | s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g | |
17663 | s%@PROGRAM_EXT@%$PROGRAM_EXT%g | |
17664 | s%@WX_LIBRARY_NAME_GL@%$WX_LIBRARY_NAME_GL%g | |
17665 | s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g | |
17666 | s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g | |
17667 | s%@WX_LIBRARY_GL@%$WX_LIBRARY_GL%g | |
17668 | s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g | |
17669 | s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g | |
17670 | s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g | |
17671 | s%@WX_LIBRARY_LINK3_GL@%$WX_LIBRARY_LINK3_GL%g | |
17672 | s%@WX_ALL@%$WX_ALL%g | |
17673 | s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g | |
17674 | s%@SHARED_LD@%$SHARED_LD%g | |
17675 | s%@PIC_FLAG@%$PIC_FLAG%g | |
17676 | s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g | |
17677 | s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g | |
17678 | s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g | |
17679 | s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g | |
17680 | s%@BURNT_LIBRARY_NAME_GL@%$BURNT_LIBRARY_NAME_GL%g | |
17681 | s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g | |
17682 | s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g | |
17683 | s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g | |
17684 | s%@USE_GUI@%$USE_GUI%g | |
17685 | s%@AFMINSTALL@%$AFMINSTALL%g | |
1e6feb95 | 17686 | s%@SETUPH_DIR@%$SETUPH_DIR%g |
698dcdb6 VZ |
17687 | s%@TOOLKIT@%$TOOLKIT%g |
17688 | s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g | |
17689 | s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g | |
17690 | s%@TOOLKIT_NAME@%$TOOLKIT_NAME%g | |
17691 | s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g | |
1e6feb95 | 17692 | s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g |
698dcdb6 VZ |
17693 | s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g |
17694 | s%@ALL_OBJECTS@%$ALL_OBJECTS%g | |
17695 | s%@ALL_DEPFILES@%$ALL_DEPFILES%g | |
17696 | s%@GUIDIST@%$GUIDIST%g | |
17697 | s%@PORT_FILES@%$PORT_FILES%g | |
17698 | s%@DISTDIR@%$DISTDIR%g | |
17699 | s%@RPM_SPEC@%$RPM_SPEC%g | |
17700 | s%@RPM_FILES@%$RPM_FILES%g | |
17701 | s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g | |
17702 | s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g | |
17703 | s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g | |
17704 | s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g | |
17705 | s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g | |
17706 | s%@USER_SUBDIRS@%$USER_SUBDIRS%g | |
17707 | s%@EXTRA_LIBS@%$EXTRA_LIBS%g | |
17708 | s%@OPENGL_LIBS@%$OPENGL_LIBS%g | |
17709 | s%@EXTRADEFS@%$EXTRADEFS%g | |
17710 | s%@LD_LIBS@%$LD_LIBS%g | |
17711 | s%@RCINPUTSWITCH@%$RCINPUTSWITCH%g | |
17712 | s%@RCOUTPUTSWITCH@%$RCOUTPUTSWITCH%g | |
17713 | s%@RESPROGRAM@%$RESPROGRAM%g | |
17714 | s%@RESCOMP@%$RESCOMP%g | |
17715 | s%@RESFLAGS@%$RESFLAGS%g | |
17716 | s%@REZFLAGS@%$REZFLAGS%g | |
17717 | s%@DEREZFLAGS@%$DEREZFLAGS%g | |
17718 | s%@LIBWXMACRES@%$LIBWXMACRES%g | |
17719 | s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g | |
17720 | s%@DLLTOOL@%$DLLTOOL%g | |
17721 | s%@AS@%$AS%g | |
17722 | s%@NM@%$NM%g | |
17723 | s%@LD@%$LD%g | |
17724 | s%@MAKEINFO@%$MAKEINFO%g | |
17725 | s%@SET_MAKE@%$SET_MAKE%g | |
17726 | s%@subdirs@%$subdirs%g | |
1e487827 | 17727 | |
1e487827 | 17728 | CEOF |
1e487827 VS |
17729 | EOF |
17730 | ||
698dcdb6 VZ |
17731 | cat >> $CONFIG_STATUS <<\EOF |
17732 | ||
17733 | # Split the substitutions into bite-sized pieces for seds with | |
17734 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
17735 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
17736 | ac_file=1 # Number of current file. | |
17737 | ac_beg=1 # First line for current file. | |
17738 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
17739 | ac_more_lines=: | |
17740 | ac_sed_cmds="" | |
17741 | while $ac_more_lines; do | |
17742 | if test $ac_beg -gt 1; then | |
17743 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
17744 | else | |
17745 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
17746 | fi | |
17747 | if test ! -s conftest.s$ac_file; then | |
17748 | ac_more_lines=false | |
17749 | rm -f conftest.s$ac_file | |
17750 | else | |
17751 | if test -z "$ac_sed_cmds"; then | |
17752 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
10f2d63a | 17753 | else |
698dcdb6 | 17754 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
10f2d63a | 17755 | fi |
698dcdb6 VZ |
17756 | ac_file=`expr $ac_file + 1` |
17757 | ac_beg=$ac_end | |
17758 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
10f2d63a | 17759 | fi |
698dcdb6 VZ |
17760 | done |
17761 | if test -z "$ac_sed_cmds"; then | |
17762 | ac_sed_cmds=cat | |
17763 | fi | |
17764 | EOF | |
10f2d63a | 17765 | |
698dcdb6 VZ |
17766 | cat >> $CONFIG_STATUS <<EOF |
17767 | ||
17768 | CONFIG_FILES=\${CONFIG_FILES-"wx-config | |
17769 | src/make.env | |
17770 | src/makeprog.env | |
17771 | src/makelib.env | |
17772 | Makefile | |
17773 | "} | |
10f2d63a | 17774 | EOF |
698dcdb6 VZ |
17775 | cat >> $CONFIG_STATUS <<\EOF |
17776 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
10f2d63a | 17777 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
698dcdb6 VZ |
17778 | case "$ac_file" in |
17779 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
17780 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
17781 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
17782 | esac |
17783 | ||
698dcdb6 | 17784 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
1e487827 | 17785 | |
698dcdb6 VZ |
17786 | # Remove last slash and all that follows it. Not all systems have dirname. |
17787 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
17788 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
17789 | # The file is in a subdirectory. | |
17790 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
17791 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
10f2d63a | 17792 | # A "../" for each directory in $ac_dir_suffix. |
698dcdb6 | 17793 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
10f2d63a VZ |
17794 | else |
17795 | ac_dir_suffix= ac_dots= | |
17796 | fi | |
17797 | ||
698dcdb6 VZ |
17798 | case "$ac_given_srcdir" in |
17799 | .) srcdir=. | |
17800 | if test -z "$ac_dots"; then top_srcdir=. | |
17801 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
17802 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
10f2d63a | 17803 | *) # Relative path. |
698dcdb6 VZ |
17804 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
17805 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
10f2d63a VZ |
17806 | esac |
17807 | ||
698dcdb6 VZ |
17808 | case "$ac_given_INSTALL" in |
17809 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
17810 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
10f2d63a VZ |
17811 | esac |
17812 | ||
698dcdb6 VZ |
17813 | echo creating "$ac_file" |
17814 | rm -f "$ac_file" | |
17815 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
17816 | case "$ac_file" in | |
17817 | *Makefile*) ac_comsub="1i\\ | |
17818 | # $configure_input" ;; | |
17819 | *) ac_comsub= ;; | |
17820 | esac | |
10f2d63a | 17821 | |
698dcdb6 VZ |
17822 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
17823 | sed -e "$ac_comsub | |
17824 | s%@configure_input@%$configure_input%g | |
17825 | s%@srcdir@%$srcdir%g | |
17826 | s%@top_srcdir@%$top_srcdir%g | |
17827 | s%@INSTALL@%$INSTALL%g | |
17828 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
17829 | fi; done | |
17830 | rm -f conftest.s* | |
10f2d63a VZ |
17831 | |
17832 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
17833 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
17834 | # | |
17835 | # ac_d sets the value in "#define NAME VALUE" lines. | |
698dcdb6 VZ |
17836 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
17837 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
17838 | ac_dC='\3' | |
17839 | ac_dD='%g' | |
17840 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
17841 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
17842 | ac_uB='\([ ]\)%\1#\2define\3' | |
10f2d63a | 17843 | ac_uC=' ' |
698dcdb6 VZ |
17844 | ac_uD='\4%g' |
17845 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
17846 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
17847 | ac_eB='$%\1#\2define\3' | |
17848 | ac_eC=' ' | |
17849 | ac_eD='%g' | |
10f2d63a | 17850 | |
698dcdb6 VZ |
17851 | if test "${CONFIG_HEADERS+set}" != set; then |
17852 | EOF | |
17853 | cat >> $CONFIG_STATUS <<EOF | |
17854 | CONFIG_HEADERS="setup.h:setup.h.in" | |
17855 | EOF | |
17856 | cat >> $CONFIG_STATUS <<\EOF | |
17857 | fi | |
17858 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
10f2d63a | 17859 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
698dcdb6 VZ |
17860 | case "$ac_file" in |
17861 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
17862 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
17863 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
17864 | esac |
17865 | ||
698dcdb6 VZ |
17866 | echo creating $ac_file |
17867 | ||
17868 | rm -f conftest.frag conftest.in conftest.out | |
17869 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
17870 | cat $ac_file_inputs > conftest.in | |
17871 | ||
17872 | EOF | |
17873 | ||
17874 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
17875 | # the proper values into config.h.in to produce config.h. And first: | |
17876 | # Protect against being on the right side of a sed subst in config.status. | |
17877 | # Protect against being in an unquoted here document in config.status. | |
17878 | rm -f conftest.vals | |
17879 | cat > conftest.hdr <<\EOF | |
17880 | s/[\\&%]/\\&/g | |
17881 | s%[\\$`]%\\&%g | |
17882 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
17883 | s%ac_d%ac_u%gp | |
17884 | s%ac_u%ac_e%gp | |
17885 | EOF | |
17886 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
17887 | rm -f conftest.hdr | |
10f2d63a VZ |
17888 | |
17889 | # This sed command replaces #undef with comments. This is necessary, for | |
17890 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
17891 | # on some systems where configure will not decide to define it. | |
698dcdb6 VZ |
17892 | cat >> conftest.vals <<\EOF |
17893 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
10f2d63a VZ |
17894 | EOF |
17895 | ||
698dcdb6 VZ |
17896 | # Break up conftest.vals because some shells have a limit on |
17897 | # the size of here documents, and old seds have small limits too. | |
10f2d63a VZ |
17898 | |
17899 | rm -f conftest.tail | |
698dcdb6 | 17900 | while : |
10f2d63a | 17901 | do |
698dcdb6 VZ |
17902 | ac_lines=`grep -c . conftest.vals` |
17903 | # grep -c gives empty output for an empty file on some AIX systems. | |
17904 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
17905 | # Write a limited-size here document to conftest.frag. | |
17906 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
17907 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
10f2d63a | 17908 | echo 'CEOF |
698dcdb6 VZ |
17909 | sed -f conftest.frag conftest.in > conftest.out |
17910 | rm -f conftest.in | |
17911 | mv conftest.out conftest.in | |
17912 | ' >> $CONFIG_STATUS | |
17913 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
17914 | rm -f conftest.vals | |
17915 | mv conftest.tail conftest.vals | |
10f2d63a | 17916 | done |
698dcdb6 VZ |
17917 | rm -f conftest.vals |
17918 | ||
17919 | cat >> $CONFIG_STATUS <<\EOF | |
17920 | rm -f conftest.frag conftest.h | |
17921 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
17922 | cat conftest.in >> conftest.h | |
17923 | rm -f conftest.in | |
17924 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
17925 | echo "$ac_file is unchanged" | |
17926 | rm -f conftest.h | |
10f2d63a | 17927 | else |
698dcdb6 VZ |
17928 | # Remove last slash and all that follows it. Not all systems have dirname. |
17929 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
10f2d63a | 17930 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
698dcdb6 VZ |
17931 | # The file is in a subdirectory. |
17932 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
10f2d63a | 17933 | fi |
698dcdb6 VZ |
17934 | rm -f $ac_file |
17935 | mv conftest.h $ac_file | |
10f2d63a | 17936 | fi |
698dcdb6 VZ |
17937 | fi; done |
17938 | ||
10f2d63a | 17939 | EOF |
698dcdb6 | 17940 | cat >> $CONFIG_STATUS <<EOF |
10f2d63a | 17941 | |
1e6feb95 | 17942 | SETUPH_DIR="${SETUPH_DIR}" |
698dcdb6 VZ |
17943 | TOOLKIT_NAME="${TOOLKIT_NAME}" |
17944 | LN_S="${LN_S}" | |
17945 | ||
17946 | ||
17947 | EOF | |
17948 | cat >> $CONFIG_STATUS <<\EOF | |
10f2d63a | 17949 | |
6ef41520 | 17950 | if test ! -f wx${TOOLKIT_NAME}-config; then |
991a5759 VZ |
17951 | chmod +x wx-config |
17952 | mv wx-config wx${TOOLKIT_NAME}-config | |
17953 | ${LN_S} wx${TOOLKIT_NAME}-config wx-config | |
17954 | fi | |
665bbe97 | 17955 | |
698dcdb6 | 17956 | |
00cf1208 RR |
17957 | if test ! -d lib; then |
17958 | mkdir lib | |
17959 | fi | |
17960 | if test ! -d lib/wx; then | |
17961 | mkdir lib/wx | |
17962 | fi | |
17963 | if test ! -d lib/wx/include; then | |
17964 | mkdir lib/wx/include | |
17965 | fi | |
17966 | if test ! -d lib/wx/include/wx; then | |
17967 | mkdir lib/wx/include/wx | |
17968 | fi | |
f6bcfd97 BP |
17969 | if test ! -d lib/wx/include/wx/${TOOLKIT_NAME}; then |
17970 | mkdir lib/wx/include/wx/${TOOLKIT_NAME} | |
00cf1208 RR |
17971 | fi |
17972 | if test -f setup.h; then | |
066b00aa | 17973 | cp -fp setup.h lib/wx/include/wx/${TOOLKIT_NAME}/setup.h |
00cf1208 | 17974 | fi |
07eb77a6 | 17975 | |
698dcdb6 | 17976 | |
10f2d63a VZ |
17977 | if test ! -d include; then |
17978 | mkdir include | |
17979 | fi | |
17980 | if test ! -d include/wx; then | |
17981 | mkdir include/wx | |
17982 | fi | |
1e6feb95 VZ |
17983 | if test ! -d include/wx/${SETUPH_DIR}; then |
17984 | mkdir include/wx/${SETUPH_DIR} | |
10f2d63a | 17985 | fi |
afc31813 | 17986 | if test -f setup.h; then |
1e6feb95 | 17987 | cp -fp setup.h include/wx/${SETUPH_DIR}/setup.h |
afc31813 | 17988 | fi |
665bbe97 | 17989 | |
698dcdb6 VZ |
17990 | |
17991 | exit 0 | |
10f2d63a VZ |
17992 | EOF |
17993 | chmod +x $CONFIG_STATUS | |
698dcdb6 VZ |
17994 | rm -fr confdefs* $ac_clean_files |
17995 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
10f2d63a | 17996 | |
2224580a VZ |
17997 | if test "$no_recursion" != yes; then |
17998 | ||
17999 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
18000 | ac_sub_configure_args= | |
18001 | ac_prev= | |
18002 | for ac_arg in $ac_configure_args; do | |
18003 | if test -n "$ac_prev"; then | |
18004 | ac_prev= | |
18005 | continue | |
18006 | fi | |
698dcdb6 | 18007 | case "$ac_arg" in |
2224580a VZ |
18008 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
18009 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
18010 | ac_prev=cache_file ;; | |
18011 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
698dcdb6 | 18012 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
2224580a VZ |
18013 | ;; |
18014 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
18015 | ac_prev=srcdir ;; | |
18016 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
18017 | ;; | |
18018 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
18019 | esac | |
18020 | done | |
18021 | ||
698dcdb6 | 18022 | for ac_config_dir in demos samples utils contrib; do |
2224580a VZ |
18023 | |
18024 | # Do not complain, so a configure script can configure whichever | |
18025 | # parts of a large source tree are present. | |
698dcdb6 VZ |
18026 | if test ! -d $srcdir/$ac_config_dir; then |
18027 | continue | |
18028 | fi | |
18029 | ||
18030 | echo configuring in $ac_config_dir | |
2224580a | 18031 | |
698dcdb6 | 18032 | case "$srcdir" in |
2224580a VZ |
18033 | .) ;; |
18034 | *) | |
698dcdb6 VZ |
18035 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; |
18036 | else | |
18037 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
18038 | fi | |
18039 | ;; | |
2224580a VZ |
18040 | esac |
18041 | ||
18042 | ac_popdir=`pwd` | |
698dcdb6 | 18043 | cd $ac_config_dir |
2224580a | 18044 | |
698dcdb6 VZ |
18045 | # A "../" for each directory in /$ac_config_dir. |
18046 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
2224580a | 18047 | |
698dcdb6 | 18048 | case "$srcdir" in |
2224580a VZ |
18049 | .) # No --srcdir option. We are building in place. |
18050 | ac_sub_srcdir=$srcdir ;; | |
698dcdb6 VZ |
18051 | /*) # Absolute path. |
18052 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
2224580a | 18053 | *) # Relative path. |
698dcdb6 | 18054 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; |
2224580a VZ |
18055 | esac |
18056 | ||
18057 | # Check for guested configure; otherwise get Cygnus style configure. | |
698dcdb6 VZ |
18058 | if test -f $ac_sub_srcdir/configure; then |
18059 | ac_sub_configure=$ac_sub_srcdir/configure | |
2224580a VZ |
18060 | elif test -f $ac_sub_srcdir/configure.in; then |
18061 | ac_sub_configure=$ac_configure | |
18062 | else | |
698dcdb6 | 18063 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 |
2224580a VZ |
18064 | ac_sub_configure= |
18065 | fi | |
18066 | ||
18067 | # The recursion is here. | |
18068 | if test -n "$ac_sub_configure"; then | |
698dcdb6 | 18069 | |
2224580a | 18070 | # Make the cache file name correct relative to the subdirectory. |
698dcdb6 VZ |
18071 | case "$cache_file" in |
18072 | /*) ac_sub_cache_file=$cache_file ;; | |
2224580a | 18073 | *) # Relative path. |
698dcdb6 | 18074 | ac_sub_cache_file="$ac_dots$cache_file" ;; |
2224580a | 18075 | esac |
698dcdb6 VZ |
18076 | case "$ac_given_INSTALL" in |
18077 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
18078 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
18079 | esac | |
2224580a | 18080 | |
698dcdb6 | 18081 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" |
2224580a | 18082 | # The eval makes quoting arguments work. |
698dcdb6 VZ |
18083 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir |
18084 | then : | |
18085 | else | |
18086 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
18087 | fi | |
2224580a VZ |
18088 | fi |
18089 | ||
18090 | cd $ac_popdir | |
18091 | done | |
18092 | fi | |
18093 | ||
698dcdb6 | 18094 |