]>
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 |
8168de4c | 201 | --enable-help use help (using external browser at present)" |
698dcdb6 | 202 | ac_help="$ac_help |
8168de4c | 203 | --enable-constraints use layout-constraints system" |
698dcdb6 | 204 | ac_help="$ac_help |
8168de4c | 205 | --enable-printarch use printing architecture" |
698dcdb6 | 206 | ac_help="$ac_help |
8168de4c | 207 | --enable-mdi use multiple document interface architecture" |
698dcdb6 | 208 | ac_help="$ac_help |
8168de4c | 209 | --enable-loggui use standard GUI logger" |
1e6feb95 | 210 | ac_help="$ac_help |
8168de4c | 211 | --enable-logwin use wxLogWindow" |
1e6feb95 | 212 | ac_help="$ac_help |
8168de4c | 213 | --enable-postscript use wxPostscriptDC device context (default for gtk+)" |
698dcdb6 | 214 | ac_help="$ac_help |
8168de4c | 215 | --enable-prologio use Prolog IO library" |
698dcdb6 | 216 | ac_help="$ac_help |
8168de4c | 217 | --enable-resources use wxWindows resources" |
698dcdb6 | 218 | ac_help="$ac_help |
8168de4c | 219 | --enable-xresources use X resources for save (default for gtk+)" |
698dcdb6 | 220 | ac_help="$ac_help |
8168de4c | 221 | --enable-clipboard use wxClipboard classes" |
698dcdb6 | 222 | ac_help="$ac_help |
8168de4c | 223 | --enable-dnd use Drag'n'Drop classes" |
698dcdb6 | 224 | ac_help="$ac_help |
8168de4c | 225 | --enable-metafile use win32 metafiles" |
698dcdb6 | 226 | ac_help="$ac_help |
8168de4c | 227 | --enable-wxtree make wxTree library" |
698dcdb6 | 228 | ac_help="$ac_help |
8168de4c | 229 | --enable-controls use all usual controls" |
698dcdb6 | 230 | ac_help="$ac_help |
8168de4c | 231 | --enable-accel use accelerators" |
698dcdb6 | 232 | ac_help="$ac_help |
8168de4c | 233 | --enable-button use wxButton class" |
698dcdb6 | 234 | ac_help="$ac_help |
8168de4c | 235 | --enable-bmpbutton use wxBitmapButton class" |
698dcdb6 | 236 | ac_help="$ac_help |
8168de4c | 237 | --enable-calendar use wxCalendarCtrl class" |
1e6feb95 | 238 | ac_help="$ac_help |
8168de4c | 239 | --enable-caret use wxCaret class" |
1e6feb95 | 240 | ac_help="$ac_help |
8168de4c | 241 | --enable-checkbox use wxCheckBox class" |
698dcdb6 | 242 | ac_help="$ac_help |
8168de4c | 243 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class" |
698dcdb6 | 244 | ac_help="$ac_help |
8168de4c | 245 | --enable-choice use wxChoice class" |
698dcdb6 | 246 | ac_help="$ac_help |
8168de4c | 247 | --enable-combobox use wxComboBox classes" |
698dcdb6 | 248 | ac_help="$ac_help |
8168de4c | 249 | --enable-gauge use wxGauge class" |
698dcdb6 | 250 | ac_help="$ac_help |
8168de4c | 251 | --enable-grid use wxGrid class" |
698dcdb6 | 252 | ac_help="$ac_help |
8168de4c | 253 | --enable-newgrid use new wxGrid class" |
698dcdb6 | 254 | ac_help="$ac_help |
8168de4c | 255 | --enable-imaglist use wxImageList class" |
698dcdb6 | 256 | ac_help="$ac_help |
8168de4c | 257 | --enable-listbox use wxListBox class" |
698dcdb6 | 258 | ac_help="$ac_help |
8168de4c | 259 | --enable-listctrl use wxListCtrl class" |
698dcdb6 | 260 | ac_help="$ac_help |
8168de4c | 261 | --enable-notebook use wxNotebook class" |
698dcdb6 | 262 | ac_help="$ac_help |
8168de4c | 263 | --enable-radiobox use wxRadioBox class" |
698dcdb6 | 264 | ac_help="$ac_help |
8168de4c | 265 | --enable-radiobtn use wxRadioButton class" |
698dcdb6 | 266 | ac_help="$ac_help |
8168de4c | 267 | --enable-sash use wxSashWindow class" |
698dcdb6 | 268 | ac_help="$ac_help |
8168de4c | 269 | --enable-scrollbar use wxScrollBar class and scrollable windows" |
698dcdb6 | 270 | ac_help="$ac_help |
8168de4c | 271 | --enable-slider use wxSlider class" |
698dcdb6 | 272 | ac_help="$ac_help |
8168de4c | 273 | --enable-spinbtn use wxSpinButton class" |
698dcdb6 | 274 | ac_help="$ac_help |
8168de4c | 275 | --enable-spinctrl use wxSpinCtrl class" |
698dcdb6 | 276 | ac_help="$ac_help |
8168de4c | 277 | --enable-splitter use wxSplitterWindow class" |
698dcdb6 | 278 | ac_help="$ac_help |
8168de4c | 279 | --enable-statbmp use wxStaticBitmap class" |
698dcdb6 | 280 | ac_help="$ac_help |
8168de4c | 281 | --enable-statbox use wxStaticBox class" |
698dcdb6 | 282 | ac_help="$ac_help |
8168de4c | 283 | --enable-statline use wxStaticLine class" |
698dcdb6 | 284 | ac_help="$ac_help |
8168de4c | 285 | --enable-stattext use wxStaticText class" |
1e6feb95 | 286 | ac_help="$ac_help |
8168de4c | 287 | --enable-statusbar use wxStatusBar class" |
698dcdb6 | 288 | ac_help="$ac_help |
8168de4c | 289 | --enable-tabdialog use wxTabControl class" |
698dcdb6 | 290 | ac_help="$ac_help |
8168de4c | 291 | --enable-textctrl use wxTextCtrl class" |
1e6feb95 | 292 | ac_help="$ac_help |
8168de4c | 293 | --enable-togglebtn use wxToggleButton class" |
698dcdb6 | 294 | ac_help="$ac_help |
8168de4c | 295 | --enable-toolbar use wxToolBar class" |
698dcdb6 | 296 | ac_help="$ac_help |
8168de4c | 297 | --enable-tbarnative use native wxToolBar class" |
698dcdb6 | 298 | ac_help="$ac_help |
8168de4c | 299 | --enable-tbarsmpl use wxToolBarSimple class" |
698dcdb6 | 300 | ac_help="$ac_help |
8168de4c | 301 | --enable-treectrl use wxTreeCtrl class" |
698dcdb6 | 302 | ac_help="$ac_help |
8168de4c | 303 | --enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)" |
698dcdb6 | 304 | ac_help="$ac_help |
8168de4c | 305 | --enable-choicedlg use wxChoiceDialog" |
1e6feb95 | 306 | ac_help="$ac_help |
8168de4c | 307 | --enable-coldlg use wxColourDialog" |
1e6feb95 | 308 | ac_help="$ac_help |
8168de4c | 309 | --enable-filedlg use wxFileDialog" |
1e6feb95 | 310 | ac_help="$ac_help |
8168de4c | 311 | --enable-fontdlg use wxFontDialog" |
1e6feb95 | 312 | ac_help="$ac_help |
8168de4c | 313 | --enable-dirdlg use wxDirDialog" |
698dcdb6 | 314 | ac_help="$ac_help |
8168de4c | 315 | --enable-msgdlg use wxMessageDialog" |
1e6feb95 | 316 | ac_help="$ac_help |
8168de4c | 317 | --enable-numberdlg use wxNumberEntryDialog" |
1e6feb95 | 318 | ac_help="$ac_help |
8168de4c | 319 | --enable-textdlg use wxTextDialog" |
698dcdb6 | 320 | ac_help="$ac_help |
8168de4c | 321 | --enable-tipdlg use startup tips" |
698dcdb6 | 322 | ac_help="$ac_help |
8168de4c | 323 | --enable-progressdlg use wxProgressDialog" |
b1f5d087 VZ |
324 | ac_help="$ac_help |
325 | --enable-wizarddlg use wxWizard" | |
698dcdb6 | 326 | ac_help="$ac_help |
8168de4c | 327 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes" |
1e6feb95 | 328 | ac_help="$ac_help |
8168de4c | 329 | --enable-miniframe use wxMiniFrame class" |
698dcdb6 | 330 | ac_help="$ac_help |
8168de4c | 331 | --enable-html use wxHTML sub-library" |
698dcdb6 | 332 | ac_help="$ac_help |
8168de4c | 333 | --enable-tooltips use wxToolTip class" |
698dcdb6 | 334 | ac_help="$ac_help |
8168de4c | 335 | --enable-splines use spline drawing code" |
698dcdb6 | 336 | ac_help="$ac_help |
8168de4c | 337 | --enable-validators use wxValidator and derived classes" |
698dcdb6 | 338 | ac_help="$ac_help |
8168de4c | 339 | --enable-busyinfo use wxBusyInfo" |
698dcdb6 | 340 | ac_help="$ac_help |
8168de4c | 341 | --enable-joystick compile in joystick support (Linux only)" |
698dcdb6 | 342 | ac_help="$ac_help |
8168de4c | 343 | --enable-metafiles use wxMetaFile (Windows only)" |
24fd6d87 VZ |
344 | ac_help="$ac_help |
345 | --enable-dragimage use wxDragImage" | |
1e6feb95 | 346 | ac_help="$ac_help |
8168de4c | 347 | --enable-image use wxImage class" |
698dcdb6 | 348 | ac_help="$ac_help |
8168de4c | 349 | --enable-gif use gif images (GIF file format)" |
698dcdb6 | 350 | ac_help="$ac_help |
8168de4c | 351 | --enable-pcx use pcx images (PCX file format)" |
698dcdb6 | 352 | ac_help="$ac_help |
8168de4c | 353 | --enable-pnm use pnm images (PNM file format)" |
698dcdb6 | 354 | ac_help="$ac_help |
8168de4c | 355 | --enable-xpm use xpm images (XPM file format)" |
698dcdb6 VZ |
356 | ac_help="$ac_help |
357 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
358 | ac_help="$ac_help | |
359 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
360 | ac_help="$ac_help | |
361 | --disable-gtktest Do not try to compile and run a test GTK program" | |
362 | ac_help="$ac_help | |
363 | --with-x use the X Window System" | |
10f2d63a VZ |
364 | |
365 | # Initialize some variables set by options. | |
366 | # The variables have the same names as the options, with | |
367 | # dashes changed to underlines. | |
698dcdb6 VZ |
368 | build=NONE |
369 | cache_file=./config.cache | |
10f2d63a | 370 | exec_prefix=NONE |
698dcdb6 | 371 | host=NONE |
10f2d63a | 372 | no_create= |
698dcdb6 | 373 | nonopt=NONE |
10f2d63a VZ |
374 | no_recursion= |
375 | prefix=NONE | |
376 | program_prefix=NONE | |
377 | program_suffix=NONE | |
378 | program_transform_name=s,x,x, | |
379 | silent= | |
380 | site= | |
381 | srcdir= | |
698dcdb6 | 382 | target=NONE |
10f2d63a VZ |
383 | verbose= |
384 | x_includes=NONE | |
385 | x_libraries=NONE | |
386 | bindir='${exec_prefix}/bin' | |
387 | sbindir='${exec_prefix}/sbin' | |
388 | libexecdir='${exec_prefix}/libexec' | |
389 | datadir='${prefix}/share' | |
390 | sysconfdir='${prefix}/etc' | |
391 | sharedstatedir='${prefix}/com' | |
392 | localstatedir='${prefix}/var' | |
393 | libdir='${exec_prefix}/lib' | |
394 | includedir='${prefix}/include' | |
395 | oldincludedir='/usr/include' | |
396 | infodir='${prefix}/info' | |
397 | mandir='${prefix}/man' | |
398 | ||
698dcdb6 VZ |
399 | # Initialize some other variables. |
400 | subdirs= | |
401 | MFLAGS= MAKEFLAGS= | |
402 | SHELL=${CONFIG_SHELL-/bin/sh} | |
403 | # Maximum number of lines to put in a shell here document. | |
404 | ac_max_here_lines=12 | |
10f2d63a VZ |
405 | |
406 | ac_prev= | |
407 | for ac_option | |
408 | do | |
698dcdb6 | 409 | |
10f2d63a VZ |
410 | # If the previous option needs an argument, assign it. |
411 | if test -n "$ac_prev"; then | |
412 | eval "$ac_prev=\$ac_option" | |
413 | ac_prev= | |
414 | continue | |
415 | fi | |
416 | ||
698dcdb6 VZ |
417 | case "$ac_option" in |
418 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
419 | *) ac_optarg= ;; | |
420 | esac | |
10f2d63a VZ |
421 | |
422 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
423 | ||
698dcdb6 | 424 | case "$ac_option" in |
10f2d63a VZ |
425 | |
426 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
427 | ac_prev=bindir ;; | |
428 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
698dcdb6 | 429 | bindir="$ac_optarg" ;; |
10f2d63a VZ |
430 | |
431 | -build | --build | --buil | --bui | --bu) | |
698dcdb6 | 432 | ac_prev=build ;; |
10f2d63a | 433 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
698dcdb6 | 434 | build="$ac_optarg" ;; |
10f2d63a VZ |
435 | |
436 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
437 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
438 | ac_prev=cache_file ;; | |
439 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
440 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
698dcdb6 | 441 | cache_file="$ac_optarg" ;; |
10f2d63a VZ |
442 | |
443 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
444 | ac_prev=datadir ;; | |
445 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
446 | | --da=*) | |
698dcdb6 | 447 | datadir="$ac_optarg" ;; |
10f2d63a VZ |
448 | |
449 | -disable-* | --disable-*) | |
698dcdb6 | 450 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
10f2d63a | 451 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
452 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
453 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
454 | fi | |
455 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
456 | eval "enable_${ac_feature}=no" ;; | |
10f2d63a VZ |
457 | |
458 | -enable-* | --enable-*) | |
698dcdb6 | 459 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
10f2d63a | 460 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
461 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
462 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
463 | fi | |
464 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
465 | case "$ac_option" in | |
466 | *=*) ;; | |
10f2d63a VZ |
467 | *) ac_optarg=yes ;; |
468 | esac | |
698dcdb6 | 469 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
10f2d63a VZ |
470 | |
471 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
472 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
473 | | --exec | --exe | --ex) | |
474 | ac_prev=exec_prefix ;; | |
475 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
476 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
477 | | --exec=* | --exe=* | --ex=*) | |
698dcdb6 | 478 | exec_prefix="$ac_optarg" ;; |
10f2d63a VZ |
479 | |
480 | -gas | --gas | --ga | --g) | |
481 | # Obsolete; use --with-gas. | |
482 | with_gas=yes ;; | |
483 | ||
698dcdb6 VZ |
484 | -help | --help | --hel | --he) |
485 | # Omit some internal or obsolete options to make the list less imposing. | |
486 | # This message is too long to be a string in the A/UX 3.1 sh. | |
487 | cat << EOF | |
488 | Usage: configure [options] [host] | |
489 | Options: [defaults in brackets after descriptions] | |
490 | Configuration: | |
491 | --cache-file=FILE cache test results in FILE | |
492 | --help print this message | |
493 | --no-create do not create output files | |
494 | --quiet, --silent do not print \`checking...' messages | |
495 | --version print the version of autoconf that created configure | |
496 | Directory and file names: | |
497 | --prefix=PREFIX install architecture-independent files in PREFIX | |
498 | [$ac_default_prefix] | |
499 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
500 | [same as prefix] | |
501 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
502 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
503 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
504 | --datadir=DIR read-only architecture-independent data in DIR | |
505 | [PREFIX/share] | |
506 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
507 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
508 | [PREFIX/com] | |
509 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
510 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
511 | --includedir=DIR C header files in DIR [PREFIX/include] | |
512 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
513 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
514 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
515 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
516 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
517 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
518 | --program-transform-name=PROGRAM | |
519 | run sed PROGRAM on installed program names | |
520 | EOF | |
521 | cat << EOF | |
522 | Host type: | |
523 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
524 | --host=HOST configure for HOST [guessed] | |
525 | --target=TARGET configure for TARGET [TARGET=HOST] | |
526 | Features and packages: | |
527 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
528 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
529 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
530 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
531 | --x-includes=DIR X include files are in DIR | |
532 | --x-libraries=DIR X library files are in DIR | |
533 | EOF | |
534 | if test -n "$ac_help"; then | |
535 | echo "--enable and --with options recognized:$ac_help" | |
536 | fi | |
537 | exit 0 ;; | |
10f2d63a VZ |
538 | |
539 | -host | --host | --hos | --ho) | |
698dcdb6 | 540 | ac_prev=host ;; |
10f2d63a | 541 | -host=* | --host=* | --hos=* | --ho=*) |
698dcdb6 | 542 | host="$ac_optarg" ;; |
10f2d63a VZ |
543 | |
544 | -includedir | --includedir | --includedi | --included | --include \ | |
545 | | --includ | --inclu | --incl | --inc) | |
546 | ac_prev=includedir ;; | |
547 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
548 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
698dcdb6 | 549 | includedir="$ac_optarg" ;; |
10f2d63a VZ |
550 | |
551 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
552 | ac_prev=infodir ;; | |
553 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
698dcdb6 | 554 | infodir="$ac_optarg" ;; |
10f2d63a VZ |
555 | |
556 | -libdir | --libdir | --libdi | --libd) | |
557 | ac_prev=libdir ;; | |
558 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
698dcdb6 | 559 | libdir="$ac_optarg" ;; |
10f2d63a VZ |
560 | |
561 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
562 | | --libexe | --libex | --libe) | |
563 | ac_prev=libexecdir ;; | |
564 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
565 | | --libexe=* | --libex=* | --libe=*) | |
698dcdb6 | 566 | libexecdir="$ac_optarg" ;; |
10f2d63a VZ |
567 | |
568 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
569 | | --localstate | --localstat | --localsta | --localst \ | |
570 | | --locals | --local | --loca | --loc | --lo) | |
571 | ac_prev=localstatedir ;; | |
572 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
573 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
574 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
698dcdb6 | 575 | localstatedir="$ac_optarg" ;; |
10f2d63a VZ |
576 | |
577 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
578 | ac_prev=mandir ;; | |
579 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
698dcdb6 | 580 | mandir="$ac_optarg" ;; |
10f2d63a VZ |
581 | |
582 | -nfp | --nfp | --nf) | |
583 | # Obsolete; use --without-fp. | |
584 | with_fp=no ;; | |
585 | ||
586 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
587 | | --no-cr | --no-c) | |
588 | no_create=yes ;; | |
589 | ||
590 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
591 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
592 | no_recursion=yes ;; | |
593 | ||
594 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
595 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
596 | | --oldin | --oldi | --old | --ol | --o) | |
597 | ac_prev=oldincludedir ;; | |
598 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
599 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
600 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
698dcdb6 | 601 | oldincludedir="$ac_optarg" ;; |
10f2d63a VZ |
602 | |
603 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
604 | ac_prev=prefix ;; | |
605 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
698dcdb6 | 606 | prefix="$ac_optarg" ;; |
10f2d63a VZ |
607 | |
608 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
609 | | --program-pre | --program-pr | --program-p) | |
610 | ac_prev=program_prefix ;; | |
611 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
612 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
698dcdb6 | 613 | program_prefix="$ac_optarg" ;; |
10f2d63a VZ |
614 | |
615 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
616 | | --program-suf | --program-su | --program-s) | |
617 | ac_prev=program_suffix ;; | |
618 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
619 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
698dcdb6 | 620 | program_suffix="$ac_optarg" ;; |
10f2d63a VZ |
621 | |
622 | -program-transform-name | --program-transform-name \ | |
623 | | --program-transform-nam | --program-transform-na \ | |
624 | | --program-transform-n | --program-transform- \ | |
625 | | --program-transform | --program-transfor \ | |
626 | | --program-transfo | --program-transf \ | |
627 | | --program-trans | --program-tran \ | |
628 | | --progr-tra | --program-tr | --program-t) | |
629 | ac_prev=program_transform_name ;; | |
630 | -program-transform-name=* | --program-transform-name=* \ | |
631 | | --program-transform-nam=* | --program-transform-na=* \ | |
632 | | --program-transform-n=* | --program-transform-=* \ | |
633 | | --program-transform=* | --program-transfor=* \ | |
634 | | --program-transfo=* | --program-transf=* \ | |
635 | | --program-trans=* | --program-tran=* \ | |
636 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
698dcdb6 | 637 | program_transform_name="$ac_optarg" ;; |
10f2d63a VZ |
638 | |
639 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
640 | | -silent | --silent | --silen | --sile | --sil) | |
641 | silent=yes ;; | |
642 | ||
643 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
644 | ac_prev=sbindir ;; | |
645 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
646 | | --sbi=* | --sb=*) | |
698dcdb6 | 647 | sbindir="$ac_optarg" ;; |
10f2d63a VZ |
648 | |
649 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
650 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
651 | | --sharedst | --shareds | --shared | --share | --shar \ | |
652 | | --sha | --sh) | |
653 | ac_prev=sharedstatedir ;; | |
654 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
655 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
656 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
657 | | --sha=* | --sh=*) | |
698dcdb6 | 658 | sharedstatedir="$ac_optarg" ;; |
10f2d63a VZ |
659 | |
660 | -site | --site | --sit) | |
661 | ac_prev=site ;; | |
662 | -site=* | --site=* | --sit=*) | |
698dcdb6 | 663 | site="$ac_optarg" ;; |
10f2d63a VZ |
664 | |
665 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
666 | ac_prev=srcdir ;; | |
667 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
698dcdb6 | 668 | srcdir="$ac_optarg" ;; |
10f2d63a VZ |
669 | |
670 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
671 | | --syscon | --sysco | --sysc | --sys | --sy) | |
672 | ac_prev=sysconfdir ;; | |
673 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
674 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
698dcdb6 | 675 | sysconfdir="$ac_optarg" ;; |
10f2d63a VZ |
676 | |
677 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
698dcdb6 | 678 | ac_prev=target ;; |
10f2d63a | 679 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
698dcdb6 | 680 | target="$ac_optarg" ;; |
10f2d63a VZ |
681 | |
682 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
683 | verbose=yes ;; | |
684 | ||
698dcdb6 VZ |
685 | -version | --version | --versio | --versi | --vers) |
686 | echo "configure generated by autoconf version 2.13" | |
687 | exit 0 ;; | |
10f2d63a VZ |
688 | |
689 | -with-* | --with-*) | |
698dcdb6 | 690 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
10f2d63a | 691 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
692 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
693 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
694 | fi | |
10f2d63a | 695 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
698dcdb6 VZ |
696 | case "$ac_option" in |
697 | *=*) ;; | |
10f2d63a VZ |
698 | *) ac_optarg=yes ;; |
699 | esac | |
698dcdb6 | 700 | eval "with_${ac_package}='$ac_optarg'" ;; |
10f2d63a VZ |
701 | |
702 | -without-* | --without-*) | |
698dcdb6 | 703 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
10f2d63a | 704 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
705 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
706 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
707 | fi | |
708 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
709 | eval "with_${ac_package}=no" ;; | |
10f2d63a VZ |
710 | |
711 | --x) | |
712 | # Obsolete; use --with-x. | |
713 | with_x=yes ;; | |
714 | ||
715 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
716 | | --x-incl | --x-inc | --x-in | --x-i) | |
717 | ac_prev=x_includes ;; | |
718 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
719 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
698dcdb6 | 720 | x_includes="$ac_optarg" ;; |
10f2d63a VZ |
721 | |
722 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
723 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
724 | ac_prev=x_libraries ;; | |
725 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
726 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
698dcdb6 | 727 | x_libraries="$ac_optarg" ;; |
10f2d63a | 728 | |
698dcdb6 | 729 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
10f2d63a VZ |
730 | ;; |
731 | ||
732 | *) | |
698dcdb6 VZ |
733 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
734 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
735 | fi | |
736 | if test "x$nonopt" != xNONE; then | |
737 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
738 | fi | |
739 | nonopt="$ac_option" | |
10f2d63a VZ |
740 | ;; |
741 | ||
742 | esac | |
743 | done | |
744 | ||
745 | if test -n "$ac_prev"; then | |
698dcdb6 VZ |
746 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
747 | fi | |
748 | ||
749 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
750 | ||
751 | # File descriptor usage: | |
752 | # 0 standard input | |
753 | # 1 file creation | |
754 | # 2 errors and warnings | |
755 | # 3 some systems may open it to /dev/tty | |
756 | # 4 used on the Kubota Titan | |
757 | # 6 checking for... messages and results | |
758 | # 5 compiler messages saved in config.log | |
759 | if test "$silent" = yes; then | |
760 | exec 6>/dev/null | |
761 | else | |
762 | exec 6>&1 | |
10f2d63a | 763 | fi |
698dcdb6 VZ |
764 | exec 5>./config.log |
765 | ||
766 | echo "\ | |
767 | This file contains any messages produced by compilers while | |
768 | running configure, to aid debugging if configure makes a mistake. | |
769 | " 1>&5 | |
10f2d63a | 770 | |
698dcdb6 VZ |
771 | # Strip out --no-create and --no-recursion so they do not pile up. |
772 | # Also quote any args containing shell metacharacters. | |
773 | ac_configure_args= | |
774 | for ac_arg | |
10f2d63a | 775 | do |
698dcdb6 VZ |
776 | case "$ac_arg" in |
777 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
778 | | --no-cr | --no-c) ;; | |
779 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
780 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
781 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
782 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
783 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
10f2d63a VZ |
784 | esac |
785 | done | |
786 | ||
698dcdb6 VZ |
787 | # NLS nuisances. |
788 | # Only set these to C if already set. These must not be set unconditionally | |
789 | # because not all systems understand e.g. LANG=C (notably SCO). | |
790 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
791 | # Non-C LC_CTYPE values break the ctype check. | |
792 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
793 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
794 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
795 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
10f2d63a | 796 | |
698dcdb6 VZ |
797 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
798 | rm -rf conftest* confdefs.h | |
799 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
800 | echo > confdefs.h | |
10f2d63a | 801 | |
698dcdb6 VZ |
802 | # A filename unique to this package, relative to the directory that |
803 | # configure is in, which we can look for to find out if srcdir is correct. | |
804 | ac_unique_file=wx-config.in | |
10f2d63a VZ |
805 | |
806 | # Find the source files, if location was not specified. | |
807 | if test -z "$srcdir"; then | |
808 | ac_srcdir_defaulted=yes | |
809 | # Try the directory containing this script, then its parent. | |
810 | ac_prog=$0 | |
698dcdb6 | 811 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
10f2d63a VZ |
812 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
813 | srcdir=$ac_confdir | |
814 | if test ! -r $srcdir/$ac_unique_file; then | |
815 | srcdir=.. | |
816 | fi | |
817 | else | |
818 | ac_srcdir_defaulted=no | |
819 | fi | |
820 | if test ! -r $srcdir/$ac_unique_file; then | |
821 | if test "$ac_srcdir_defaulted" = yes; then | |
698dcdb6 | 822 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
10f2d63a | 823 | else |
698dcdb6 | 824 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
10f2d63a VZ |
825 | fi |
826 | fi | |
698dcdb6 | 827 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
10f2d63a VZ |
828 | |
829 | # Prefer explicitly selected file to automatically selected ones. | |
830 | if test -z "$CONFIG_SITE"; then | |
831 | if test "x$prefix" != xNONE; then | |
832 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
833 | else | |
834 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
835 | fi | |
836 | fi | |
837 | for ac_site_file in $CONFIG_SITE; do | |
838 | if test -r "$ac_site_file"; then | |
698dcdb6 | 839 | echo "loading site script $ac_site_file" |
10f2d63a VZ |
840 | . "$ac_site_file" |
841 | fi | |
842 | done | |
843 | ||
844 | if test -r "$cache_file"; then | |
698dcdb6 VZ |
845 | echo "loading cache $cache_file" |
846 | . $cache_file | |
10f2d63a | 847 | else |
698dcdb6 VZ |
848 | echo "creating cache $cache_file" |
849 | > $cache_file | |
10f2d63a VZ |
850 | fi |
851 | ||
852 | ac_ext=c | |
698dcdb6 | 853 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 854 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
855 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
856 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
857 | cross_compiling=$ac_cv_prog_cc_cross | |
858 | ||
859 | ac_exeext= | |
860 | ac_objext=o | |
861 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
862 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
863 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
864 | ac_n= ac_c=' | |
865 | ' ac_t=' ' | |
866 | else | |
867 | ac_n=-n ac_c= ac_t= | |
868 | fi | |
10f2d63a | 869 | else |
698dcdb6 | 870 | ac_n= ac_c='\c' ac_t= |
10f2d63a | 871 | fi |
698dcdb6 VZ |
872 | |
873 | ||
10f2d63a | 874 | |
7c66a493 VZ |
875 | ac_aux_dir= |
876 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
877 | if test -f $ac_dir/install-sh; then | |
878 | ac_aux_dir=$ac_dir | |
879 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
880 | break | |
881 | elif test -f $ac_dir/install.sh; then | |
882 | ac_aux_dir=$ac_dir | |
883 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
884 | break | |
885 | fi | |
886 | done | |
887 | if test -z "$ac_aux_dir"; then | |
698dcdb6 | 888 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
7c66a493 | 889 | fi |
698dcdb6 VZ |
890 | ac_config_guess=$ac_aux_dir/config.guess |
891 | ac_config_sub=$ac_aux_dir/config.sub | |
892 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
703e0a69 | 893 | |
698dcdb6 VZ |
894 | |
895 | # Do some error checking and defaulting for the host and target type. | |
896 | # The inputs are: | |
897 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
898 | # | |
899 | # The rules are: | |
900 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
901 | # same time. | |
902 | # 2. Host defaults to nonopt. | |
903 | # 3. If nonopt is not specified, then host defaults to the current host, | |
904 | # as determined by config.guess. | |
905 | # 4. Target and build default to nonopt. | |
906 | # 5. If nonopt is not specified, then target and build default to host. | |
7c66a493 VZ |
907 | |
908 | # The aliases save the names the user supplied, while $host etc. | |
909 | # will get canonicalized. | |
698dcdb6 VZ |
910 | case $host---$target---$nonopt in |
911 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
912 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
913 | esac | |
914 | ||
915 | ||
916 | # Make sure we can run config.sub. | |
917 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
918 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
919 | fi | |
920 | ||
921 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
b1f5d087 | 922 | echo "configure:923: checking host system type" >&5 |
698dcdb6 VZ |
923 | |
924 | host_alias=$host | |
925 | case "$host_alias" in | |
926 | NONE) | |
927 | case $nonopt in | |
928 | NONE) | |
929 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
930 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
931 | fi ;; | |
932 | *) host_alias=$nonopt ;; | |
933 | esac ;; | |
934 | esac | |
935 | ||
936 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
937 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
938 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
939 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
940 | echo "$ac_t""$host" 1>&6 | |
941 | ||
942 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
b1f5d087 | 943 | echo "configure:944: checking target system type" >&5 |
698dcdb6 VZ |
944 | |
945 | target_alias=$target | |
946 | case "$target_alias" in | |
947 | NONE) | |
948 | case $nonopt in | |
949 | NONE) target_alias=$host_alias ;; | |
950 | *) target_alias=$nonopt ;; | |
951 | esac ;; | |
952 | esac | |
953 | ||
954 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
955 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
956 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
957 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
958 | echo "$ac_t""$target" 1>&6 | |
959 | ||
960 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
b1f5d087 | 961 | echo "configure:962: checking build system type" >&5 |
698dcdb6 VZ |
962 | |
963 | build_alias=$build | |
964 | case "$build_alias" in | |
965 | NONE) | |
966 | case $nonopt in | |
967 | NONE) build_alias=$host_alias ;; | |
968 | *) build_alias=$nonopt ;; | |
969 | esac ;; | |
970 | esac | |
971 | ||
972 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
973 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
974 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
975 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
976 | echo "$ac_t""$build" 1>&6 | |
977 | ||
978 | test "$host_alias" != "$target_alias" && | |
7c66a493 VZ |
979 | test "$program_prefix$program_suffix$program_transform_name" = \ |
980 | NONENONEs,x,x, && | |
981 | program_prefix=${target_alias}- | |
982 | ||
698dcdb6 VZ |
983 | |
984 | ||
10f2d63a | 985 | WX_MAJOR_VERSION_NUMBER=2 |
37d403aa | 986 | WX_MINOR_VERSION_NUMBER=3 |
665bbe97 | 987 | WX_RELEASE_NUMBER=1 |
10f2d63a | 988 | |
10f2d63a | 989 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER |
10f2d63a | 990 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER |
6426998c RL |
991 | |
992 | WX_CURRENT=0 | |
993 | WX_REVISION=0 | |
994 | WX_AGE=0 | |
995 | ||
698dcdb6 VZ |
996 | |
997 | ||
10f2d63a VZ |
998 | USE_UNIX=1 |
999 | USE_WIN32=0 | |
b12915c1 | 1000 | USE_BEOS=0 |
1216f52d | 1001 | USE_MAC=0 |
b12915c1 | 1002 | |
10f2d63a VZ |
1003 | USE_LINUX= |
1004 | USE_SGI= | |
1005 | USE_HPUX= | |
1006 | USE_SYSV= | |
1007 | USE_SVR4= | |
1008 | USE_AIX= | |
1009 | USE_SUN= | |
1010 | USE_SOLARIS= | |
1011 | USE_SUNOS= | |
1012 | USE_ALPHA= | |
1013 | USE_OSF= | |
1014 | USE_BSD= | |
1015 | USE_FREEBSD= | |
95c8801c | 1016 | USE_OPENBSD= |
f6bcfd97 | 1017 | USE_NETBSD= |
10f2d63a VZ |
1018 | USE_VMS= |
1019 | USE_ULTRIX= | |
1020 | USE_CYGWIN= | |
1021 | USE_MINGW= | |
1022 | USE_DATA_GENERAL= | |
1023 | ||
ab9b9eab VZ |
1024 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 |
1025 | ||
1e6feb95 | 1026 | ALL_TOOLKITS="CYGWIN GTK MAC MGL MINGW MOTIF PM WINE" |
10f2d63a VZ |
1027 | |
1028 | DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1029 | DEFAULT_wxUSE_MAC=0 |
1030 | DEFAULT_wxUSE_MGL=0 | |
10f2d63a VZ |
1031 | DEFAULT_wxUSE_MOTIF=0 |
1032 | DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1033 | DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1034 | DEFAULT_wxUSE_WINE=0 |
10f2d63a VZ |
1035 | |
1036 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1037 | DEFAULT_DEFAULT_wxUSE_MAC=0 |
1038 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
10f2d63a VZ |
1039 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 |
1040 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1041 | DEFAULT_DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1042 | DEFAULT_DEFAULT_wxUSE_WINE=0 |
10f2d63a | 1043 | |
d6a55c4b VZ |
1044 | PROGRAM_EXT= |
1045 | ||
10f2d63a VZ |
1046 | case "${host}" in |
1047 | *-hp-hpux* ) | |
1048 | USE_HPUX=1 | |
1049 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1050 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
698dcdb6 | 1051 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1052 | #define __HPUX__ 1 |
1053 | EOF | |
1054 | ||
1055 | ;; | |
1056 | *-*-linux* ) | |
1057 | USE_LINUX=1 | |
698dcdb6 | 1058 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1059 | #define __LINUX__ 1 |
1060 | EOF | |
1061 | ||
1062 | TMP=`uname -m` | |
1063 | if test "x$TMP" = "xalpha"; then | |
1064 | USE_ALPHA=1 | |
698dcdb6 | 1065 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1066 | #define __ALPHA__ 1 |
1067 | EOF | |
1068 | ||
1069 | fi | |
1070 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1071 | ;; | |
1072 | *-*-irix5* | *-*-irix6* ) | |
1073 | USE_SGI=1 | |
1074 | USE_SVR4=1 | |
698dcdb6 | 1075 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1076 | #define __SGI__ 1 |
1077 | EOF | |
1078 | ||
698dcdb6 | 1079 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1080 | #define __SVR4__ 1 |
1081 | EOF | |
1082 | ||
1083 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1084 | ;; | |
1085 | *-*-solaris2* ) | |
1086 | USE_SUN=1 | |
1087 | USE_SOLARIS=1 | |
1088 | USE_SVR4=1 | |
698dcdb6 | 1089 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1090 | #define __SUN__ 1 |
1091 | EOF | |
1092 | ||
698dcdb6 | 1093 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1094 | #define __SOLARIS__ 1 |
1095 | EOF | |
1096 | ||
698dcdb6 | 1097 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1098 | #define __SVR4__ 1 |
1099 | EOF | |
1100 | ||
1101 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1102 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1103 | ;; |
1104 | *-*-sunos4* ) | |
1105 | USE_SUN=1 | |
1106 | USE_SUNOS=1 | |
1107 | USE_BSD=1 | |
698dcdb6 | 1108 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1109 | #define __SUN__ 1 |
1110 | EOF | |
1111 | ||
698dcdb6 | 1112 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1113 | #define __SUNOS__ 1 |
1114 | EOF | |
1115 | ||
698dcdb6 | 1116 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1117 | #define __BSD__ 1 |
1118 | EOF | |
1119 | ||
1120 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1121 | ;; | |
f6bcfd97 | 1122 | *-*-freebsd*) |
10f2d63a VZ |
1123 | USE_BSD=1 |
1124 | USE_FREEBSD=1 | |
698dcdb6 | 1125 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1126 | #define __FREEBSD__ 1 |
1127 | EOF | |
1128 | ||
698dcdb6 | 1129 | cat >> confdefs.h <<\EOF |
10f2d63a | 1130 | #define __BSD__ 1 |
95c8801c VS |
1131 | EOF |
1132 | ||
1133 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1134 | ;; | |
1135 | *-*-openbsd*) | |
1136 | USE_BSD=1 | |
1137 | USE_OPENBSD=1 | |
698dcdb6 | 1138 | cat >> confdefs.h <<\EOF |
95c8801c VS |
1139 | #define __FREEBSD__ 1 |
1140 | EOF | |
1141 | ||
698dcdb6 | 1142 | cat >> confdefs.h <<\EOF |
95c8801c | 1143 | #define __OPENBSD__ 1 |
f6bcfd97 BP |
1144 | EOF |
1145 | ||
1146 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1147 | ;; | |
1148 | *-*-netbsd*) | |
1149 | USE_BSD=1 | |
1150 | USE_NETBSD=1 | |
698dcdb6 | 1151 | cat >> confdefs.h <<\EOF |
f6bcfd97 BP |
1152 | #define __FREEBSD__ 1 |
1153 | EOF | |
1154 | ||
698dcdb6 | 1155 | cat >> confdefs.h <<\EOF |
f6bcfd97 | 1156 | #define __NETBSD__ 1 |
10f2d63a VZ |
1157 | EOF |
1158 | ||
1159 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1160 | ;; | |
1161 | *-*-osf* ) | |
1162 | USE_ALPHA=1 | |
1163 | USE_OSF=1 | |
698dcdb6 | 1164 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1165 | #define __ALPHA__ 1 |
1166 | EOF | |
1167 | ||
698dcdb6 | 1168 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1169 | #define __OSF__ 1 |
1170 | EOF | |
1171 | ||
1172 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
f6bcfd97 | 1173 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1174 | ;; |
1175 | *-*-dgux5* ) | |
1176 | USE_ALPHA=1 | |
1177 | USE_SVR4=1 | |
698dcdb6 | 1178 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1179 | #define __ALPHA__ 1 |
1180 | EOF | |
1181 | ||
698dcdb6 | 1182 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1183 | #define __SVR4__ 1 |
1184 | EOF | |
1185 | ||
1186 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1187 | ;; | |
1188 | *-*-sysv5* ) | |
1189 | USE_SYSV=1 | |
1190 | USE_SVR4=1 | |
698dcdb6 | 1191 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1192 | #define __SYSV__ 1 |
1193 | EOF | |
1194 | ||
698dcdb6 | 1195 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1196 | #define __SVR4__ 1 |
1197 | EOF | |
1198 | ||
1199 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1200 | ;; | |
1201 | *-*-aix* ) | |
1202 | USE_AIX=1 | |
1203 | USE_SYSV=1 | |
1204 | USE_SVR4=1 | |
698dcdb6 | 1205 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1206 | #define __AIX__ 1 |
1207 | EOF | |
1208 | ||
698dcdb6 | 1209 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1210 | #define __SYSV__ 1 |
1211 | EOF | |
1212 | ||
698dcdb6 | 1213 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1214 | #define __SVR4__ 1 |
1215 | EOF | |
1216 | ||
1217 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1218 | ;; | |
1219 | ||
1c8183e2 | 1220 | *-*-cygwin* | *-*-mingw32* ) |
10f2d63a VZ |
1221 | USE_UNIX=0 |
1222 | USE_WIN32=1 | |
698dcdb6 | 1223 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1224 | #define __WIN32__ 1 |
1225 | EOF | |
1226 | ||
698dcdb6 | 1227 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1228 | #define __WIN95__ 1 |
1229 | EOF | |
1230 | ||
698dcdb6 | 1231 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1232 | #define __WINDOWS__ 1 |
1233 | EOF | |
1234 | ||
698dcdb6 | 1235 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1236 | #define __GNUWIN32__ 1 |
1237 | EOF | |
1238 | ||
698dcdb6 | 1239 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1240 | #define STRICT 1 |
1241 | EOF | |
1242 | ||
698dcdb6 | 1243 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1244 | #define WINVER 0x0400 |
1245 | EOF | |
1246 | ||
cf27ef00 | 1247 | PROGRAM_EXT=".exe" |
10f2d63a VZ |
1248 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
1249 | ;; | |
1250 | ||
1251 | *-pc-os2_emx ) | |
698dcdb6 | 1252 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1253 | #define __EMX__ 1 |
1254 | EOF | |
1255 | ||
cf27ef00 | 1256 | PROGRAM_EXT=".exe" |
e07802fc | 1257 | DEFAULT_DEFAULT_wxUSE_PM=1 |
10f2d63a VZ |
1258 | ;; |
1259 | ||
b4085ce6 GD |
1260 | *-*-darwin* ) |
1261 | USE_BSD=1 | |
1262 | USE_MAC=1 | |
698dcdb6 | 1263 | cat >> confdefs.h <<\EOF |
b4085ce6 GD |
1264 | #define __MAC__ 1 |
1265 | EOF | |
1266 | ||
698dcdb6 | 1267 | cat >> confdefs.h <<\EOF |
b4085ce6 GD |
1268 | #define __BSD__ 1 |
1269 | EOF | |
1270 | ||
698dcdb6 | 1271 | cat >> confdefs.h <<\EOF |
b4085ce6 GD |
1272 | #define __UNIX__ 1 |
1273 | EOF | |
1274 | ||
1275 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1276 | ;; | |
1277 | ||
b12915c1 VZ |
1278 | *-*-beos* ) |
1279 | USE_BEOS=1 | |
698dcdb6 | 1280 | cat >> confdefs.h <<\EOF |
b12915c1 VZ |
1281 | #define __BEOS__ 1 |
1282 | EOF | |
1283 | ||
1284 | ;; | |
1285 | ||
10f2d63a | 1286 | *) |
698dcdb6 | 1287 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } |
10f2d63a VZ |
1288 | esac |
1289 | ||
1290 | if test "$USE_UNIX" = 1 ; then | |
b12915c1 | 1291 | wxUSE_UNIX=yes |
698dcdb6 | 1292 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1293 | #define __UNIX__ 1 |
1294 | EOF | |
1295 | ||
698dcdb6 | 1296 | |
b12915c1 VZ |
1297 | SRC_SUBDIRS="$SRC_SUBDIRS unix" |
1298 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix" | |
1299 | fi | |
1300 | ||
1301 | if test "$USE_BEOS" = 1; then | |
1302 | SRC_SUBDIRS="$SRC_SUBDIRS be" | |
1303 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be" | |
10f2d63a VZ |
1304 | fi |
1305 | ||
1306 | if test "$USE_LINUX" = 1; then | |
698dcdb6 | 1307 | echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6 |
b1f5d087 | 1308 | echo "configure:1309: checking for gettext in -lc" >&5 |
698dcdb6 VZ |
1309 | ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'` |
1310 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1311 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 1312 | else |
698dcdb6 VZ |
1313 | ac_save_LIBS="$LIBS" |
1314 | LIBS="-lc $LIBS" | |
1315 | cat > conftest.$ac_ext <<EOF | |
b1f5d087 | 1316 | #line 1317 "configure" |
698dcdb6 VZ |
1317 | #include "confdefs.h" |
1318 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1319 | /* We use char because int might match the return type of a gcc2 | |
1320 | builtin and then its argument prototype would still apply. */ | |
1321 | char gettext(); | |
10f2d63a | 1322 | |
698dcdb6 VZ |
1323 | int main() { |
1324 | gettext() | |
1325 | ; return 0; } | |
1326 | EOF | |
b1f5d087 | 1327 | if { (eval echo configure:1328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
1328 | rm -rf conftest* |
1329 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 1330 | else |
698dcdb6 VZ |
1331 | echo "configure: failed program was:" >&5 |
1332 | cat conftest.$ac_ext >&5 | |
1333 | rm -rf conftest* | |
1334 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 1335 | fi |
698dcdb6 VZ |
1336 | rm -f conftest* |
1337 | LIBS="$ac_save_LIBS" | |
10f2d63a VZ |
1338 | |
1339 | fi | |
698dcdb6 VZ |
1340 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
1341 | echo "$ac_t""yes" 1>&6 | |
1342 | cat >> confdefs.h <<\EOF | |
1343 | #define wxHAVE_GLIBC2 1 | |
1344 | EOF | |
10f2d63a VZ |
1345 | |
1346 | else | |
698dcdb6 | 1347 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
1348 | fi |
1349 | ||
1350 | fi | |
1351 | ||
1e487827 | 1352 | |
1e487827 | 1353 | |
6232543b | 1354 | |
10f2d63a VZ |
1355 | wx_arg_cache_file="configarg.cache" |
1356 | echo "loading argument cache $wx_arg_cache_file" | |
1357 | rm -f ${wx_arg_cache_file}.tmp | |
1358 | touch ${wx_arg_cache_file}.tmp | |
1359 | touch ${wx_arg_cache_file} | |
698dcdb6 | 1360 | |
10f2d63a VZ |
1361 | |
1362 | DEBUG_CONFIGURE=0 | |
1363 | if test $DEBUG_CONFIGURE = 1; then | |
1e6feb95 VZ |
1364 | DEFAULT_wxUSE_UNIVERSAL=no |
1365 | ||
10f2d63a VZ |
1366 | DEFAULT_wxUSE_THREADS=yes |
1367 | ||
1368 | DEFAULT_wxUSE_SHARED=yes | |
00cf1208 | 1369 | DEFAULT_wxUSE_BURNT_NAME=no |
1e6feb95 | 1370 | DEFAULT_wxUSE_OPTIMISE=no |
10f2d63a VZ |
1371 | DEFAULT_wxUSE_PROFILE=no |
1372 | DEFAULT_wxUSE_NO_DEPS=no | |
1373 | DEFAULT_wxUSE_NO_RTTI=no | |
1374 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
1375 | DEFAULT_wxUSE_PERMISSIVE=no | |
1376 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1377 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1378 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1379 | DEFAULT_wxUSE_MEM_TRACING=no | |
1380 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1381 | DEFAULT_wxUSE_DMALLOC=no | |
1382 | DEFAULT_wxUSE_APPLE_IEEE=no | |
1383 | ||
1384 | DEFAULT_wxUSE_LOG=yes | |
1e6feb95 VZ |
1385 | DEFAULT_wxUSE_LOGWINDOW=no |
1386 | DEFAULT_wxUSE_LOGGUI=no | |
10f2d63a VZ |
1387 | |
1388 | DEFAULT_wxUSE_GUI=yes | |
1e6feb95 | 1389 | DEFAULT_wxUSE_CONTROLS=no |
10f2d63a VZ |
1390 | |
1391 | DEFAULT_wxUSE_ZLIB=no | |
1392 | DEFAULT_wxUSE_LIBPNG=no | |
1393 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 1394 | DEFAULT_wxUSE_LIBTIFF=no |
10f2d63a | 1395 | DEFAULT_wxUSE_ODBC=no |
3fed1840 | 1396 | DEFAULT_wxUSE_FREETYPE=no |
bdad4e7e | 1397 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1398 | |
eb4efbdc | 1399 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no |
4f3c5f06 | 1400 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
10f2d63a | 1401 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1402 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
1403 | DEFAULT_wxUSE_DATETIME=no | |
1404 | DEFAULT_wxUSE_TIMEDATE=no | |
1405 | DEFAULT_wxUSE_TIMER=no | |
1406 | DEFAULT_wxUSE_STOPWATCH=no | |
10f2d63a | 1407 | DEFAULT_wxUSE_FILE=no |
1e6feb95 | 1408 | DEFAULT_wxUSE_FFILE=no |
10f2d63a | 1409 | DEFAULT_wxUSE_TEXTFILE=no |
10f2d63a VZ |
1410 | DEFAULT_wxUSE_WAVE=no |
1411 | DEFAULT_wxUSE_INTL=no | |
1412 | DEFAULT_wxUSE_CONFIG=no | |
1e6feb95 | 1413 | DEFAULT_wxUSE_FONTMAP=no |
10f2d63a VZ |
1414 | DEFAULT_wxUSE_STREAMS=no |
1415 | DEFAULT_wxUSE_SOCKETS=no | |
1416 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
1417 | DEFAULT_wxUSE_SERIAL=no | |
1418 | DEFAULT_wxUSE_JOYSTICK=no | |
1419 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
1420 | DEFAULT_wxUSE_LONGLONG=no | |
e8f65ba6 | 1421 | DEFAULT_wxUSE_GEOMETRY=no |
10f2d63a VZ |
1422 | |
1423 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1424 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1425 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1426 | ||
1427 | DEFAULT_wxUSE_X_RESOURCES=no | |
1428 | DEFAULT_wxUSE_CLIPBOARD=no | |
1429 | DEFAULT_wxUSE_TOOLTIPS=no | |
1430 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
24fd6d87 | 1431 | DEFAULT_wxUSE_DRAGIMAGE=no |
10f2d63a VZ |
1432 | DEFAULT_wxUSE_SPLINES=no |
1433 | ||
1434 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1435 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1436 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1437 | ||
1438 | DEFAULT_wxUSE_PROLOGIO=no | |
1439 | DEFAULT_wxUSE_RESOURCES=no | |
1440 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1441 | DEFAULT_wxUSE_IPC=no | |
1442 | DEFAULT_wxUSE_HELP=no | |
1443 | DEFAULT_wxUSE_WXTREE=no | |
1444 | DEFAULT_wxUSE_METAFILE=no | |
1e6feb95 | 1445 | DEFAULT_wxUSE_MIMETYPE=no |
10f2d63a VZ |
1446 | |
1447 | DEFAULT_wxUSE_COMMONDLGS=no | |
1e6feb95 VZ |
1448 | DEFAULT_wxUSE_CHOICEDLG=no |
1449 | DEFAULT_wxUSE_COLOURDLG=no | |
10f2d63a | 1450 | DEFAULT_wxUSE_DIRDLG=no |
1e6feb95 VZ |
1451 | DEFAULT_wxUSE_FILEDLG=no |
1452 | DEFAULT_wxUSE_FONTDLG=no | |
1453 | DEFAULT_wxUSE_MSGDLG=no | |
1454 | DEFAULT_wxUSE_NUMBERDLG=no | |
10f2d63a VZ |
1455 | DEFAULT_wxUSE_TEXTDLG=no |
1456 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
1457 | DEFAULT_wxUSE_PROGRESSDLG=no | |
b1f5d087 VZ |
1458 | DEFAULT_wxUSE_WIZARDDLG=no |
1459 | ||
1e6feb95 | 1460 | DEFAULT_wxUSE_MENUS=no |
10f2d63a VZ |
1461 | DEFAULT_wxUSE_MINIFRAME=no |
1462 | DEFAULT_wxUSE_HTML=no | |
24528b0c | 1463 | DEFAULT_wxUSE_FILESYSTEM=no |
10f2d63a VZ |
1464 | DEFAULT_wxUSE_FS_INET=no |
1465 | DEFAULT_wxUSE_FS_ZIP=no | |
1466 | DEFAULT_wxUSE_BUSYINFO=no | |
1467 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1e6feb95 | 1468 | DEFAULT_wxUSE_VALIDATORS=no |
10f2d63a VZ |
1469 | |
1470 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 | 1471 | DEFAULT_wxUSE_BUTTON=no |
10f2d63a | 1472 | DEFAULT_wxUSE_BMPBUTTON=no |
1e6feb95 VZ |
1473 | DEFAULT_wxUSE_CALCTRL=no |
1474 | DEFAULT_wxUSE_CARET=no | |
10f2d63a VZ |
1475 | DEFAULT_wxUSE_CHECKBOX=no |
1476 | DEFAULT_wxUSE_CHECKLST=no | |
1e6feb95 | 1477 | DEFAULT_wxUSE_CHOICE=no |
10f2d63a VZ |
1478 | DEFAULT_wxUSE_COMBOBOX=no |
1479 | DEFAULT_wxUSE_GAUGE=no | |
1480 | DEFAULT_wxUSE_GRID=no | |
1481 | DEFAULT_wxUSE_NEW_GRID=no | |
1482 | DEFAULT_wxUSE_IMAGLIST=no | |
1483 | DEFAULT_wxUSE_LISTBOX=no | |
1484 | DEFAULT_wxUSE_LISTCTRL=no | |
1485 | DEFAULT_wxUSE_NOTEBOOK=no | |
1486 | DEFAULT_wxUSE_RADIOBOX=no | |
1487 | DEFAULT_wxUSE_RADIOBTN=no | |
1488 | DEFAULT_wxUSE_SASH=no | |
1489 | DEFAULT_wxUSE_SCROLLBAR=no | |
1490 | DEFAULT_wxUSE_SLIDER=no | |
1491 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 1492 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
1493 | DEFAULT_wxUSE_SPLITTER=no |
1494 | DEFAULT_wxUSE_STATBMP=no | |
1495 | DEFAULT_wxUSE_STATBOX=no | |
1496 | DEFAULT_wxUSE_STATLINE=no | |
1e6feb95 | 1497 | DEFAULT_wxUSE_STATTEXT=no |
10f2d63a VZ |
1498 | DEFAULT_wxUSE_STATUSBAR=yes |
1499 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1500 | DEFAULT_wxUSE_TEXTCTRL=no |
1db8dc4a | 1501 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 1502 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
1503 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
1504 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
1505 | DEFAULT_wxUSE_TREECTRL=no |
1506 | ||
1507 | DEFAULT_wxUSE_UNICODE=no | |
1508 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1509 | ||
0046ff7c | 1510 | DEFAULT_wxUSE_IMAGE=no |
10f2d63a VZ |
1511 | DEFAULT_wxUSE_GIF=no |
1512 | DEFAULT_wxUSE_PCX=no | |
1513 | DEFAULT_wxUSE_PNM=no | |
0046ff7c | 1514 | DEFAULT_wxUSE_XPM=no |
10f2d63a | 1515 | else |
1e6feb95 VZ |
1516 | DEFAULT_wxUSE_UNIVERSAL=no |
1517 | ||
10f2d63a VZ |
1518 | DEFAULT_wxUSE_THREADS=yes |
1519 | ||
1520 | DEFAULT_wxUSE_SHARED=yes | |
00cf1208 | 1521 | DEFAULT_wxUSE_BURNT_NAME=no |
10f2d63a VZ |
1522 | DEFAULT_wxUSE_OPTIMISE=yes |
1523 | DEFAULT_wxUSE_PROFILE=no | |
1524 | DEFAULT_wxUSE_NO_DEPS=no | |
1525 | DEFAULT_wxUSE_NO_RTTI=no | |
1526 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
1527 | DEFAULT_wxUSE_PERMISSIVE=no | |
1528 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1529 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1530 | DEFAULT_wxUSE_DEBUG_GDB=no | |
1531 | DEFAULT_wxUSE_MEM_TRACING=no | |
1532 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1533 | DEFAULT_wxUSE_DMALLOC=no | |
1534 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
1535 | ||
1536 | DEFAULT_wxUSE_LOG=yes | |
d73be714 VZ |
1537 | DEFAULT_wxUSE_LOGWINDOW=yes |
1538 | DEFAULT_wxUSE_LOGGUI=yes | |
10f2d63a VZ |
1539 | |
1540 | DEFAULT_wxUSE_GUI=yes | |
1541 | ||
1542 | DEFAULT_wxUSE_ZLIB=yes | |
1543 | DEFAULT_wxUSE_LIBPNG=yes | |
1544 | DEFAULT_wxUSE_LIBJPEG=yes | |
b47c832e | 1545 | DEFAULT_wxUSE_LIBTIFF=yes |
16b52fa1 | 1546 | DEFAULT_wxUSE_ODBC=no |
3fed1840 | 1547 | DEFAULT_wxUSE_FREETYPE=no |
bdad4e7e | 1548 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1549 | |
eb4efbdc | 1550 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes |
4f3c5f06 | 1551 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
10f2d63a | 1552 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1553 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
1554 | DEFAULT_wxUSE_DATETIME=yes | |
1555 | DEFAULT_wxUSE_TIMEDATE=no | |
1556 | DEFAULT_wxUSE_TIMER=yes | |
1557 | DEFAULT_wxUSE_STOPWATCH=yes | |
10f2d63a | 1558 | DEFAULT_wxUSE_FILE=yes |
1e6feb95 | 1559 | DEFAULT_wxUSE_FFILE=yes |
10f2d63a | 1560 | DEFAULT_wxUSE_TEXTFILE=yes |
10f2d63a VZ |
1561 | DEFAULT_wxUSE_WAVE=no |
1562 | DEFAULT_wxUSE_INTL=yes | |
1563 | DEFAULT_wxUSE_CONFIG=yes | |
1e6feb95 | 1564 | DEFAULT_wxUSE_FONTMAP=yes |
10f2d63a VZ |
1565 | DEFAULT_wxUSE_STREAMS=yes |
1566 | DEFAULT_wxUSE_SOCKETS=yes | |
1567 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
1568 | DEFAULT_wxUSE_SERIAL=yes | |
1569 | DEFAULT_wxUSE_JOYSTICK=yes | |
1570 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
b685cd9b | 1571 | DEFAULT_wxUSE_LONGLONG=yes |
e8f65ba6 | 1572 | DEFAULT_wxUSE_GEOMETRY=yes |
10f2d63a VZ |
1573 | |
1574 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
1575 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
1576 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
1577 | ||
1578 | DEFAULT_wxUSE_X_RESOURCES=no | |
1579 | DEFAULT_wxUSE_CLIPBOARD=yes | |
1580 | DEFAULT_wxUSE_TOOLTIPS=yes | |
1581 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
24fd6d87 | 1582 | DEFAULT_wxUSE_DRAGIMAGE=yes |
10f2d63a VZ |
1583 | DEFAULT_wxUSE_SPLINES=yes |
1584 | ||
1585 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
1586 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
1587 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
1588 | ||
1589 | DEFAULT_wxUSE_PROLOGIO=yes | |
1590 | DEFAULT_wxUSE_RESOURCES=yes | |
1591 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
1592 | DEFAULT_wxUSE_IPC=yes | |
1593 | DEFAULT_wxUSE_HELP=yes | |
1594 | DEFAULT_wxUSE_WXTREE=yes | |
1595 | DEFAULT_wxUSE_METAFILE=yes | |
1e6feb95 | 1596 | DEFAULT_wxUSE_MIMETYPE=yes |
10f2d63a VZ |
1597 | |
1598 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1e6feb95 VZ |
1599 | DEFAULT_wxUSE_CHOICEDLG=yes |
1600 | DEFAULT_wxUSE_COLOURDLG=yes | |
10f2d63a | 1601 | DEFAULT_wxUSE_DIRDLG=yes |
1e6feb95 VZ |
1602 | DEFAULT_wxUSE_FILEDLG=yes |
1603 | DEFAULT_wxUSE_FONTDLG=yes | |
1604 | DEFAULT_wxUSE_MSGDLG=yes | |
1605 | DEFAULT_wxUSE_NUMBERDLG=yes | |
10f2d63a VZ |
1606 | DEFAULT_wxUSE_TEXTDLG=yes |
1607 | DEFAULT_wxUSE_STARTUP_TIPS=yes | |
1608 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
1e6feb95 | 1609 | DEFAULT_wxUSE_MENUS=yes |
10f2d63a VZ |
1610 | DEFAULT_wxUSE_MINIFRAME=yes |
1611 | DEFAULT_wxUSE_HTML=yes | |
24528b0c | 1612 | DEFAULT_wxUSE_FILESYSTEM=yes |
10f2d63a VZ |
1613 | DEFAULT_wxUSE_FS_INET=yes |
1614 | DEFAULT_wxUSE_FS_ZIP=yes | |
1615 | DEFAULT_wxUSE_BUSYINFO=yes | |
1616 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
1617 | DEFAULT_wxUSE_VALIDATORS=yes | |
1618 | ||
1619 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 | 1620 | DEFAULT_wxUSE_BUTTON=yes |
10f2d63a | 1621 | DEFAULT_wxUSE_BMPBUTTON=yes |
1e6feb95 VZ |
1622 | DEFAULT_wxUSE_CALCTRL=yes |
1623 | DEFAULT_wxUSE_CARET=yes | |
10f2d63a VZ |
1624 | DEFAULT_wxUSE_CHECKBOX=yes |
1625 | DEFAULT_wxUSE_CHECKLST=yes | |
1626 | DEFAULT_wxUSE_CHOICE=yes | |
1627 | DEFAULT_wxUSE_COMBOBOX=yes | |
1628 | DEFAULT_wxUSE_GAUGE=yes | |
1629 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 1630 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
1631 | DEFAULT_wxUSE_IMAGLIST=yes |
1632 | DEFAULT_wxUSE_LISTBOX=yes | |
1633 | DEFAULT_wxUSE_LISTCTRL=yes | |
1634 | DEFAULT_wxUSE_NOTEBOOK=yes | |
1635 | DEFAULT_wxUSE_RADIOBOX=yes | |
1636 | DEFAULT_wxUSE_RADIOBTN=yes | |
1637 | DEFAULT_wxUSE_SASH=yes | |
1638 | DEFAULT_wxUSE_SCROLLBAR=yes | |
1639 | DEFAULT_wxUSE_SLIDER=yes | |
1640 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 1641 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
1642 | DEFAULT_wxUSE_SPLITTER=yes |
1643 | DEFAULT_wxUSE_STATBMP=yes | |
1644 | DEFAULT_wxUSE_STATBOX=yes | |
1645 | DEFAULT_wxUSE_STATLINE=yes | |
1e6feb95 | 1646 | DEFAULT_wxUSE_STATTEXT=yes |
10f2d63a VZ |
1647 | DEFAULT_wxUSE_STATUSBAR=yes |
1648 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1649 | DEFAULT_wxUSE_TEXTCTRL=yes |
1db8dc4a | 1650 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 1651 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
1652 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
1653 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
1654 | DEFAULT_wxUSE_TREECTRL=yes |
1655 | ||
1656 | DEFAULT_wxUSE_UNICODE=no | |
1657 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1658 | ||
0046ff7c | 1659 | DEFAULT_wxUSE_IMAGE=yes |
10f2d63a VZ |
1660 | DEFAULT_wxUSE_GIF=yes |
1661 | DEFAULT_wxUSE_PCX=yes | |
1662 | DEFAULT_wxUSE_PNM=yes | |
0046ff7c | 1663 | DEFAULT_wxUSE_XPM=yes |
10f2d63a VZ |
1664 | fi |
1665 | ||
698dcdb6 VZ |
1666 | |
1667 | ||
10f2d63a VZ |
1668 | for toolkit in `echo $ALL_TOOLKITS`; do |
1669 | LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}` | |
1670 | if test "x$LINE" != x ; then | |
1671 | has_toolkit_in_cache=1 | |
1672 | eval "DEFAULT_$LINE" | |
1673 | eval "CACHE_$toolkit=1" | |
1674 | fi | |
1675 | done | |
1676 | ||
698dcdb6 VZ |
1677 | |
1678 | ||
1679 | echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6 | |
b1f5d087 | 1680 | echo "configure:1681: checking for --enable-gui" >&5 |
10f2d63a VZ |
1681 | no_cache=0 |
1682 | # Check whether --enable-gui or --disable-gui was given. | |
1683 | if test "${enable_gui+set}" = set; then | |
1684 | enableval="$enable_gui" | |
698dcdb6 | 1685 | |
10f2d63a VZ |
1686 | if test "$enableval" = yes; then |
1687 | ac_cv_use_gui='wxUSE_GUI=yes' | |
1688 | else | |
1689 | ac_cv_use_gui='wxUSE_GUI=no' | |
1690 | fi | |
698dcdb6 | 1691 | |
10f2d63a | 1692 | else |
698dcdb6 | 1693 | |
10f2d63a VZ |
1694 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` |
1695 | if test "x$LINE" != x ; then | |
1696 | eval "DEFAULT_$LINE" | |
1697 | else | |
1698 | no_cache=1 | |
1699 | fi | |
1700 | ||
1701 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
698dcdb6 VZ |
1702 | |
1703 | fi | |
10f2d63a VZ |
1704 | |
1705 | ||
1706 | eval "$ac_cv_use_gui" | |
1707 | if test "$no_cache" != 1; then | |
1708 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
1709 | fi | |
1710 | ||
1711 | if test "$wxUSE_GUI" = yes; then | |
698dcdb6 | 1712 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 1713 | else |
698dcdb6 | 1714 | echo "$ac_t""no" 1>&6 |
10f2d63a | 1715 | fi |
698dcdb6 | 1716 | |
10f2d63a | 1717 | |
b12915c1 | 1718 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a | 1719 | |
1e6feb95 VZ |
1720 | |
1721 | echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6 | |
b1f5d087 | 1722 | echo "configure:1723: checking for --enable-universal" >&5 |
1e6feb95 VZ |
1723 | no_cache=0 |
1724 | # Check whether --enable-universal or --disable-universal was given. | |
1725 | if test "${enable_universal+set}" = set; then | |
1726 | enableval="$enable_universal" | |
1727 | ||
1728 | if test "$enableval" = yes; then | |
1729 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
1730 | else | |
1731 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
1732 | fi | |
1733 | ||
1734 | else | |
1735 | ||
1736 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
1737 | if test "x$LINE" != x ; then | |
1738 | eval "DEFAULT_$LINE" | |
1739 | else | |
1740 | no_cache=1 | |
1741 | fi | |
1742 | ||
1743 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
1744 | ||
1745 | fi | |
1746 | ||
1747 | ||
1748 | eval "$ac_cv_use_universal" | |
1749 | if test "$no_cache" != 1; then | |
1750 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
1751 | fi | |
1752 | ||
1753 | if test "$wxUSE_UNIVERSAL" = yes; then | |
1754 | echo "$ac_t""yes" 1>&6 | |
1755 | else | |
1756 | echo "$ac_t""no" 1>&6 | |
1757 | fi | |
1758 | ||
10f2d63a VZ |
1759 | # Check whether --with-gtk or --without-gtk was given. |
1760 | if test "${with_gtk+set}" = set; then | |
1761 | withval="$with_gtk" | |
1762 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1763 | fi |
10f2d63a VZ |
1764 | |
1765 | # Check whether --with-motif or --without-motif was given. | |
1766 | if test "${with_motif+set}" = set; then | |
1767 | withval="$with_motif" | |
1768 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1769 | fi |
10f2d63a | 1770 | |
b4085ce6 GD |
1771 | # Check whether --with-mac or --without-mac was given. |
1772 | if test "${with_mac+set}" = set; then | |
1773 | withval="$with_mac" | |
1774 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
698dcdb6 | 1775 | fi |
b4085ce6 | 1776 | |
10f2d63a VZ |
1777 | # Check whether --with-wine or --without-wine was given. |
1778 | if test "${with_wine+set}" = set; then | |
1779 | withval="$with_wine" | |
1780 | wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1781 | fi |
10f2d63a VZ |
1782 | |
1783 | # Check whether --with-cygwin or --without-cygwin was given. | |
1784 | if test "${with_cygwin+set}" = set; then | |
1785 | withval="$with_cygwin" | |
1786 | wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1787 | fi |
10f2d63a VZ |
1788 | |
1789 | # Check whether --with-mingw or --without-mingw was given. | |
1790 | if test "${with_mingw+set}" = set; then | |
1791 | withval="$with_mingw" | |
1792 | wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1793 | fi |
10f2d63a | 1794 | |
e07802fc VZ |
1795 | # Check whether --with-pm or --without-pm was given. |
1796 | if test "${with_pm+set}" = set; then | |
1797 | withval="$with_pm" | |
1798 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
698dcdb6 VZ |
1799 | fi |
1800 | ||
1e6feb95 VZ |
1801 | # Check whether --with-mgl or --without-mgl was given. |
1802 | if test "${with_mgl+set}" = set; then | |
1803 | withval="$with_mgl" | |
1804 | wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1 | |
1805 | fi | |
1806 | ||
10f2d63a | 1807 | |
8168de4c VZ |
1808 | # Check whether --enable-gtk2 or --disable-gtk2 was given. |
1809 | if test "${enable_gtk2+set}" = set; then | |
1810 | enableval="$enable_gtk2" | |
1811 | wxUSE_GTK2=1 | |
10f2d63a | 1812 | else |
8168de4c | 1813 | wxUSE_GTK2=0 |
698dcdb6 VZ |
1814 | fi |
1815 | ||
703e0a69 | 1816 | |
1e487827 | 1817 | |
698dcdb6 | 1818 | echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6 |
b1f5d087 | 1819 | echo "configure:1820: checking for --with-libpng" >&5 |
698dcdb6 VZ |
1820 | no_cache=0 |
1821 | # Check whether --with-libpng or --without-libpng was given. | |
b12915c1 VZ |
1822 | if test "${with_libpng+set}" = set; then |
1823 | withval="$with_libpng" | |
698dcdb6 | 1824 | |
10f2d63a | 1825 | if test "$withval" = yes; then |
b12915c1 | 1826 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
422107f9 | 1827 | elif test "$withval" = no; then |
b12915c1 | 1828 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
422107f9 VZ |
1829 | elif test "$withval" = sys; then |
1830 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
1831 | else | |
698dcdb6 | 1832 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1833 | fi |
698dcdb6 | 1834 | |
10f2d63a | 1835 | else |
698dcdb6 | 1836 | |
b12915c1 | 1837 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
1838 | if test "x$LINE" != x ; then |
1839 | eval "DEFAULT_$LINE" | |
1840 | else | |
1841 | no_cache=1 | |
1842 | fi | |
1843 | ||
b12915c1 | 1844 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
698dcdb6 VZ |
1845 | |
1846 | fi | |
10f2d63a VZ |
1847 | |
1848 | ||
b12915c1 | 1849 | eval "$ac_cv_use_libpng" |
10f2d63a | 1850 | if test "$no_cache" != 1; then |
b12915c1 | 1851 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1852 | fi |
1853 | ||
b12915c1 | 1854 | if test "$wxUSE_LIBPNG" = yes; then |
698dcdb6 | 1855 | echo "$ac_t""yes" 1>&6 |
422107f9 | 1856 | elif test "$wxUSE_LIBPNG" = no; then |
698dcdb6 | 1857 | echo "$ac_t""no" 1>&6 |
422107f9 | 1858 | elif test "$wxUSE_LIBPNG" = sys; then |
698dcdb6 | 1859 | echo "$ac_t""system version" 1>&6 |
422107f9 | 1860 | else |
698dcdb6 | 1861 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1862 | fi |
698dcdb6 | 1863 | |
10f2d63a | 1864 | |
698dcdb6 | 1865 | echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6 |
b1f5d087 | 1866 | echo "configure:1867: checking for --with-libjpeg" >&5 |
10f2d63a | 1867 | no_cache=0 |
698dcdb6 | 1868 | # Check whether --with-libjpeg or --without-libjpeg was given. |
b12915c1 VZ |
1869 | if test "${with_libjpeg+set}" = set; then |
1870 | withval="$with_libjpeg" | |
698dcdb6 | 1871 | |
10f2d63a | 1872 | if test "$withval" = yes; then |
b12915c1 | 1873 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
422107f9 | 1874 | elif test "$withval" = no; then |
b12915c1 | 1875 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
422107f9 VZ |
1876 | elif test "$withval" = sys; then |
1877 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
1878 | else | |
698dcdb6 | 1879 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1880 | fi |
698dcdb6 | 1881 | |
10f2d63a | 1882 | else |
698dcdb6 | 1883 | |
b12915c1 | 1884 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
1885 | if test "x$LINE" != x ; then |
1886 | eval "DEFAULT_$LINE" | |
1887 | else | |
1888 | no_cache=1 | |
1889 | fi | |
1890 | ||
b12915c1 | 1891 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
698dcdb6 VZ |
1892 | |
1893 | fi | |
10f2d63a VZ |
1894 | |
1895 | ||
b12915c1 | 1896 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 1897 | if test "$no_cache" != 1; then |
b12915c1 | 1898 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1899 | fi |
1900 | ||
b12915c1 | 1901 | if test "$wxUSE_LIBJPEG" = yes; then |
698dcdb6 | 1902 | echo "$ac_t""yes" 1>&6 |
422107f9 | 1903 | elif test "$wxUSE_LIBJPEG" = no; then |
698dcdb6 | 1904 | echo "$ac_t""no" 1>&6 |
422107f9 | 1905 | elif test "$wxUSE_LIBJPEG" = sys; then |
698dcdb6 | 1906 | echo "$ac_t""system version" 1>&6 |
422107f9 | 1907 | else |
698dcdb6 | 1908 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1909 | fi |
698dcdb6 | 1910 | |
10f2d63a | 1911 | |
698dcdb6 | 1912 | echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6 |
b1f5d087 | 1913 | echo "configure:1914: checking for --with-libtiff" >&5 |
10f2d63a | 1914 | no_cache=0 |
698dcdb6 | 1915 | # Check whether --with-libtiff or --without-libtiff was given. |
b12915c1 VZ |
1916 | if test "${with_libtiff+set}" = set; then |
1917 | withval="$with_libtiff" | |
698dcdb6 | 1918 | |
10f2d63a | 1919 | if test "$withval" = yes; then |
b12915c1 | 1920 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
0dcf9893 | 1921 | elif test "$withval" = no; then |
b12915c1 | 1922 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
0dcf9893 VZ |
1923 | elif test "$withval" = sys; then |
1924 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
1925 | else | |
698dcdb6 | 1926 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1927 | fi |
698dcdb6 | 1928 | |
10f2d63a | 1929 | else |
698dcdb6 | 1930 | |
b12915c1 | 1931 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
1932 | if test "x$LINE" != x ; then |
1933 | eval "DEFAULT_$LINE" | |
1934 | else | |
1935 | no_cache=1 | |
1936 | fi | |
1937 | ||
b12915c1 | 1938 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
698dcdb6 VZ |
1939 | |
1940 | fi | |
10f2d63a VZ |
1941 | |
1942 | ||
b12915c1 | 1943 | eval "$ac_cv_use_libtiff" |
10f2d63a | 1944 | if test "$no_cache" != 1; then |
b12915c1 | 1945 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1946 | fi |
1947 | ||
b12915c1 | 1948 | if test "$wxUSE_LIBTIFF" = yes; then |
698dcdb6 | 1949 | echo "$ac_t""yes" 1>&6 |
0dcf9893 | 1950 | elif test "$wxUSE_LIBTIFF" = no; then |
698dcdb6 | 1951 | echo "$ac_t""no" 1>&6 |
0dcf9893 | 1952 | elif test "$wxUSE_LIBTIFF" = sys; then |
698dcdb6 | 1953 | echo "$ac_t""system version" 1>&6 |
0dcf9893 | 1954 | else |
698dcdb6 | 1955 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1956 | fi |
698dcdb6 | 1957 | |
10f2d63a | 1958 | |
698dcdb6 | 1959 | echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6 |
b1f5d087 | 1960 | echo "configure:1961: checking for --with-freetype" >&5 |
3fed1840 | 1961 | no_cache=0 |
698dcdb6 | 1962 | # Check whether --with-freetype or --without-freetype was given. |
3fed1840 RR |
1963 | if test "${with_freetype+set}" = set; then |
1964 | withval="$with_freetype" | |
698dcdb6 | 1965 | |
3fed1840 RR |
1966 | if test "$withval" = yes; then |
1967 | ac_cv_use_freetype='wxUSE_FREETYPE=yes' | |
1968 | elif test "$withval" = no; then | |
1969 | ac_cv_use_freetype='wxUSE_FREETYPE=no' | |
1970 | elif test "$withval" = sys; then | |
1971 | ac_cv_use_freetype='wxUSE_FREETYPE=sys' | |
1972 | else | |
698dcdb6 | 1973 | { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; } |
3fed1840 | 1974 | fi |
698dcdb6 | 1975 | |
3fed1840 | 1976 | else |
698dcdb6 | 1977 | |
3fed1840 RR |
1978 | LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}` |
1979 | if test "x$LINE" != x ; then | |
1980 | eval "DEFAULT_$LINE" | |
1981 | else | |
1982 | no_cache=1 | |
1983 | fi | |
1984 | ||
1985 | ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE | |
698dcdb6 VZ |
1986 | |
1987 | fi | |
3fed1840 RR |
1988 | |
1989 | ||
1990 | eval "$ac_cv_use_freetype" | |
1991 | if test "$no_cache" != 1; then | |
1992 | echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp | |
1993 | fi | |
1994 | ||
1995 | if test "$wxUSE_FREETYPE" = yes; then | |
698dcdb6 | 1996 | echo "$ac_t""yes" 1>&6 |
3fed1840 | 1997 | elif test "$wxUSE_FREETYPE" = no; then |
698dcdb6 | 1998 | echo "$ac_t""no" 1>&6 |
3fed1840 | 1999 | elif test "$wxUSE_FREETYPE" = sys; then |
698dcdb6 | 2000 | echo "$ac_t""system version" 1>&6 |
3fed1840 | 2001 | else |
698dcdb6 | 2002 | { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; } |
3fed1840 | 2003 | fi |
698dcdb6 | 2004 | |
3fed1840 | 2005 | |
698dcdb6 | 2006 | echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6 |
b1f5d087 | 2007 | echo "configure:2008: checking for --with-opengl" >&5 |
10f2d63a | 2008 | no_cache=0 |
698dcdb6 | 2009 | # Check whether --with-opengl or --without-opengl was given. |
b12915c1 VZ |
2010 | if test "${with_opengl+set}" = set; then |
2011 | withval="$with_opengl" | |
698dcdb6 | 2012 | |
10f2d63a | 2013 | if test "$withval" = yes; then |
b12915c1 | 2014 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 2015 | else |
b12915c1 | 2016 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a | 2017 | fi |
698dcdb6 | 2018 | |
10f2d63a | 2019 | else |
698dcdb6 | 2020 | |
b12915c1 | 2021 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` |
10f2d63a VZ |
2022 | if test "x$LINE" != x ; then |
2023 | eval "DEFAULT_$LINE" | |
2024 | else | |
2025 | no_cache=1 | |
2026 | fi | |
2027 | ||
b12915c1 | 2028 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
698dcdb6 VZ |
2029 | |
2030 | fi | |
10f2d63a VZ |
2031 | |
2032 | ||
b12915c1 | 2033 | eval "$ac_cv_use_opengl" |
10f2d63a | 2034 | if test "$no_cache" != 1; then |
b12915c1 | 2035 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2036 | fi |
2037 | ||
b12915c1 | 2038 | if test "$wxUSE_OPENGL" = yes; then |
698dcdb6 | 2039 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2040 | else |
698dcdb6 | 2041 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2042 | fi |
698dcdb6 | 2043 | |
10f2d63a | 2044 | |
b12915c1 VZ |
2045 | fi |
2046 | ||
1e487827 | 2047 | |
698dcdb6 | 2048 | echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6 |
b1f5d087 | 2049 | echo "configure:2050: checking for --with-dmalloc" >&5 |
698dcdb6 VZ |
2050 | no_cache=0 |
2051 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
b12915c1 VZ |
2052 | if test "${with_dmalloc+set}" = set; then |
2053 | withval="$with_dmalloc" | |
698dcdb6 | 2054 | |
c7a2bf27 | 2055 | if test "$withval" = yes; then |
b12915c1 | 2056 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 2057 | else |
b12915c1 | 2058 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 | 2059 | fi |
698dcdb6 | 2060 | |
c7a2bf27 | 2061 | else |
698dcdb6 | 2062 | |
b12915c1 | 2063 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
2064 | if test "x$LINE" != x ; then |
2065 | eval "DEFAULT_$LINE" | |
2066 | else | |
2067 | no_cache=1 | |
2068 | fi | |
2069 | ||
b12915c1 | 2070 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
698dcdb6 VZ |
2071 | |
2072 | fi | |
c7a2bf27 RR |
2073 | |
2074 | ||
b12915c1 | 2075 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 2076 | if test "$no_cache" != 1; then |
b12915c1 | 2077 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
2078 | fi |
2079 | ||
b12915c1 | 2080 | if test "$wxUSE_DMALLOC" = yes; then |
698dcdb6 | 2081 | echo "$ac_t""yes" 1>&6 |
c7a2bf27 | 2082 | else |
698dcdb6 | 2083 | echo "$ac_t""no" 1>&6 |
c7a2bf27 | 2084 | fi |
698dcdb6 | 2085 | |
c7a2bf27 | 2086 | |
698dcdb6 | 2087 | echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6 |
b1f5d087 | 2088 | echo "configure:2089: checking for --with-zlib" >&5 |
10f2d63a | 2089 | no_cache=0 |
698dcdb6 | 2090 | # Check whether --with-zlib or --without-zlib was given. |
b12915c1 VZ |
2091 | if test "${with_zlib+set}" = set; then |
2092 | withval="$with_zlib" | |
698dcdb6 | 2093 | |
10f2d63a | 2094 | if test "$withval" = yes; then |
b12915c1 | 2095 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
422107f9 | 2096 | elif test "$withval" = no; then |
b12915c1 | 2097 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
422107f9 VZ |
2098 | elif test "$withval" = sys; then |
2099 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
2100 | else | |
698dcdb6 | 2101 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 2102 | fi |
698dcdb6 | 2103 | |
10f2d63a | 2104 | else |
698dcdb6 | 2105 | |
b12915c1 | 2106 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
2107 | if test "x$LINE" != x ; then |
2108 | eval "DEFAULT_$LINE" | |
2109 | else | |
2110 | no_cache=1 | |
2111 | fi | |
2112 | ||
b12915c1 | 2113 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
698dcdb6 VZ |
2114 | |
2115 | fi | |
10f2d63a VZ |
2116 | |
2117 | ||
b12915c1 | 2118 | eval "$ac_cv_use_zlib" |
10f2d63a | 2119 | if test "$no_cache" != 1; then |
b12915c1 | 2120 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2121 | fi |
2122 | ||
b12915c1 | 2123 | if test "$wxUSE_ZLIB" = yes; then |
698dcdb6 | 2124 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2125 | elif test "$wxUSE_ZLIB" = no; then |
698dcdb6 | 2126 | echo "$ac_t""no" 1>&6 |
422107f9 | 2127 | elif test "$wxUSE_ZLIB" = sys; then |
698dcdb6 | 2128 | echo "$ac_t""system version" 1>&6 |
422107f9 | 2129 | else |
698dcdb6 | 2130 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 2131 | fi |
698dcdb6 | 2132 | |
10f2d63a | 2133 | |
698dcdb6 | 2134 | echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6 |
b1f5d087 | 2135 | echo "configure:2136: checking for --with-odbc" >&5 |
10f2d63a | 2136 | no_cache=0 |
698dcdb6 | 2137 | # Check whether --with-odbc or --without-odbc was given. |
10f2d63a VZ |
2138 | if test "${with_odbc+set}" = set; then |
2139 | withval="$with_odbc" | |
698dcdb6 | 2140 | |
10f2d63a VZ |
2141 | if test "$withval" = yes; then |
2142 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
2143 | else | |
2144 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
2145 | fi | |
698dcdb6 | 2146 | |
10f2d63a | 2147 | else |
698dcdb6 | 2148 | |
10f2d63a VZ |
2149 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` |
2150 | if test "x$LINE" != x ; then | |
2151 | eval "DEFAULT_$LINE" | |
2152 | else | |
2153 | no_cache=1 | |
2154 | fi | |
2155 | ||
2156 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
698dcdb6 VZ |
2157 | |
2158 | fi | |
10f2d63a VZ |
2159 | |
2160 | ||
2161 | eval "$ac_cv_use_odbc" | |
2162 | if test "$no_cache" != 1; then | |
2163 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
2164 | fi | |
2165 | ||
2166 | if test "$wxUSE_ODBC" = yes; then | |
698dcdb6 | 2167 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2168 | else |
698dcdb6 | 2169 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2170 | fi |
698dcdb6 VZ |
2171 | |
2172 | ||
10f2d63a | 2173 | |
698dcdb6 VZ |
2174 | |
2175 | ||
2176 | echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6 | |
b1f5d087 | 2177 | echo "configure:2178: checking for --enable-shared" >&5 |
10f2d63a VZ |
2178 | no_cache=0 |
2179 | # Check whether --enable-shared or --disable-shared was given. | |
2180 | if test "${enable_shared+set}" = set; then | |
2181 | enableval="$enable_shared" | |
698dcdb6 | 2182 | |
10f2d63a VZ |
2183 | if test "$enableval" = yes; then |
2184 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
2185 | else | |
2186 | ac_cv_use_shared='wxUSE_SHARED=no' | |
2187 | fi | |
698dcdb6 | 2188 | |
10f2d63a | 2189 | else |
698dcdb6 | 2190 | |
10f2d63a VZ |
2191 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` |
2192 | if test "x$LINE" != x ; then | |
2193 | eval "DEFAULT_$LINE" | |
2194 | else | |
2195 | no_cache=1 | |
2196 | fi | |
2197 | ||
2198 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
698dcdb6 VZ |
2199 | |
2200 | fi | |
10f2d63a VZ |
2201 | |
2202 | ||
2203 | eval "$ac_cv_use_shared" | |
2204 | if test "$no_cache" != 1; then | |
2205 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
2206 | fi | |
2207 | ||
2208 | if test "$wxUSE_SHARED" = yes; then | |
698dcdb6 | 2209 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2210 | else |
698dcdb6 | 2211 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2212 | fi |
698dcdb6 | 2213 | |
10f2d63a | 2214 | |
698dcdb6 | 2215 | echo $ac_n "checking for --enable-burnt_name""... $ac_c" 1>&6 |
b1f5d087 | 2216 | echo "configure:2217: checking for --enable-burnt_name" >&5 |
00cf1208 RR |
2217 | no_cache=0 |
2218 | # Check whether --enable-burnt_name or --disable-burnt_name was given. | |
2219 | if test "${enable_burnt_name+set}" = set; then | |
2220 | enableval="$enable_burnt_name" | |
698dcdb6 | 2221 | |
00cf1208 RR |
2222 | if test "$enableval" = yes; then |
2223 | ac_cv_use_burnt_name='wxUSE_BURNT_NAME=yes' | |
2224 | else | |
2225 | ac_cv_use_burnt_name='wxUSE_BURNT_NAME=no' | |
2226 | fi | |
698dcdb6 | 2227 | |
00cf1208 | 2228 | else |
698dcdb6 | 2229 | |
00cf1208 RR |
2230 | LINE=`grep "wxUSE_BURNT_NAME" ${wx_arg_cache_file}` |
2231 | if test "x$LINE" != x ; then | |
2232 | eval "DEFAULT_$LINE" | |
2233 | else | |
2234 | no_cache=1 | |
2235 | fi | |
2236 | ||
2237 | ac_cv_use_burnt_name='wxUSE_BURNT_NAME='$DEFAULT_wxUSE_BURNT_NAME | |
698dcdb6 VZ |
2238 | |
2239 | fi | |
00cf1208 RR |
2240 | |
2241 | ||
2242 | eval "$ac_cv_use_burnt_name" | |
2243 | if test "$no_cache" != 1; then | |
2244 | echo $ac_cv_use_burnt_name >> ${wx_arg_cache_file}.tmp | |
2245 | fi | |
2246 | ||
2247 | if test "$wxUSE_BURNT_NAME" = yes; then | |
698dcdb6 | 2248 | echo "$ac_t""yes" 1>&6 |
00cf1208 | 2249 | else |
698dcdb6 | 2250 | echo "$ac_t""no" 1>&6 |
00cf1208 | 2251 | fi |
698dcdb6 | 2252 | |
00cf1208 | 2253 | |
698dcdb6 | 2254 | echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6 |
b1f5d087 | 2255 | echo "configure:2256: checking for --enable-optimise" >&5 |
10f2d63a VZ |
2256 | no_cache=0 |
2257 | # Check whether --enable-optimise or --disable-optimise was given. | |
2258 | if test "${enable_optimise+set}" = set; then | |
2259 | enableval="$enable_optimise" | |
698dcdb6 | 2260 | |
10f2d63a VZ |
2261 | if test "$enableval" = yes; then |
2262 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
2263 | else | |
2264 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
2265 | fi | |
698dcdb6 | 2266 | |
10f2d63a | 2267 | else |
698dcdb6 | 2268 | |
10f2d63a VZ |
2269 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` |
2270 | if test "x$LINE" != x ; then | |
2271 | eval "DEFAULT_$LINE" | |
2272 | else | |
2273 | no_cache=1 | |
2274 | fi | |
2275 | ||
2276 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
698dcdb6 VZ |
2277 | |
2278 | fi | |
10f2d63a VZ |
2279 | |
2280 | ||
2281 | eval "$ac_cv_use_optimise" | |
2282 | if test "$no_cache" != 1; then | |
2283 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
2284 | fi | |
2285 | ||
2286 | if test "$wxUSE_OPTIMISE" = yes; then | |
698dcdb6 | 2287 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2288 | else |
698dcdb6 | 2289 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2290 | fi |
698dcdb6 | 2291 | |
10f2d63a | 2292 | |
698dcdb6 | 2293 | echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6 |
b1f5d087 | 2294 | echo "configure:2295: checking for --enable-debug" >&5 |
10f2d63a VZ |
2295 | no_cache=0 |
2296 | # Check whether --enable-debug or --disable-debug was given. | |
2297 | if test "${enable_debug+set}" = set; then | |
2298 | enableval="$enable_debug" | |
698dcdb6 | 2299 | |
10f2d63a VZ |
2300 | if test "$enableval" = yes; then |
2301 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
2302 | else | |
2303 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
2304 | fi | |
698dcdb6 | 2305 | |
10f2d63a | 2306 | else |
698dcdb6 | 2307 | |
10f2d63a VZ |
2308 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` |
2309 | if test "x$LINE" != x ; then | |
2310 | eval "DEFAULT_$LINE" | |
2311 | else | |
2312 | no_cache=1 | |
2313 | fi | |
2314 | ||
2315 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
698dcdb6 VZ |
2316 | |
2317 | fi | |
10f2d63a VZ |
2318 | |
2319 | ||
2320 | eval "$ac_cv_use_debug" | |
2321 | if test "$no_cache" != 1; then | |
2322 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
2323 | fi | |
2324 | ||
2325 | if test "$wxUSE_DEBUG" = yes; then | |
698dcdb6 | 2326 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2327 | else |
698dcdb6 | 2328 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2329 | fi |
698dcdb6 | 2330 | |
10f2d63a VZ |
2331 | |
2332 | if test "$wxUSE_DEBUG" = "yes"; then | |
2333 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2334 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2335 | elif test "$wxUSE_DEBUG" = "no"; then | |
2336 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2337 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2338 | fi | |
2339 | ||
698dcdb6 VZ |
2340 | |
2341 | echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6 | |
b1f5d087 | 2342 | echo "configure:2343: checking for --enable-debug_flag" >&5 |
10f2d63a VZ |
2343 | no_cache=0 |
2344 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
2345 | if test "${enable_debug_flag+set}" = set; then | |
2346 | enableval="$enable_debug_flag" | |
698dcdb6 | 2347 | |
10f2d63a VZ |
2348 | if test "$enableval" = yes; then |
2349 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
2350 | else | |
2351 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
2352 | fi | |
698dcdb6 | 2353 | |
10f2d63a | 2354 | else |
698dcdb6 | 2355 | |
10f2d63a VZ |
2356 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` |
2357 | if test "x$LINE" != x ; then | |
2358 | eval "DEFAULT_$LINE" | |
2359 | else | |
2360 | no_cache=1 | |
2361 | fi | |
2362 | ||
2363 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
698dcdb6 VZ |
2364 | |
2365 | fi | |
10f2d63a VZ |
2366 | |
2367 | ||
2368 | eval "$ac_cv_use_debug_flag" | |
2369 | if test "$no_cache" != 1; then | |
2370 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
2371 | fi | |
2372 | ||
2373 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
698dcdb6 | 2374 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2375 | else |
698dcdb6 | 2376 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2377 | fi |
698dcdb6 | 2378 | |
10f2d63a | 2379 | |
698dcdb6 | 2380 | echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6 |
b1f5d087 | 2381 | echo "configure:2382: checking for --enable-debug_info" >&5 |
10f2d63a VZ |
2382 | no_cache=0 |
2383 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
2384 | if test "${enable_debug_info+set}" = set; then | |
2385 | enableval="$enable_debug_info" | |
698dcdb6 | 2386 | |
10f2d63a VZ |
2387 | if test "$enableval" = yes; then |
2388 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
2389 | else | |
2390 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
2391 | fi | |
698dcdb6 | 2392 | |
10f2d63a | 2393 | else |
698dcdb6 | 2394 | |
10f2d63a VZ |
2395 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` |
2396 | if test "x$LINE" != x ; then | |
2397 | eval "DEFAULT_$LINE" | |
2398 | else | |
2399 | no_cache=1 | |
2400 | fi | |
2401 | ||
2402 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
698dcdb6 VZ |
2403 | |
2404 | fi | |
10f2d63a VZ |
2405 | |
2406 | ||
2407 | eval "$ac_cv_use_debug_info" | |
2408 | if test "$no_cache" != 1; then | |
2409 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
2410 | fi | |
2411 | ||
2412 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
698dcdb6 | 2413 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2414 | else |
698dcdb6 | 2415 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2416 | fi |
698dcdb6 | 2417 | |
10f2d63a | 2418 | |
698dcdb6 | 2419 | echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6 |
b1f5d087 | 2420 | echo "configure:2421: checking for --enable-debug_gdb" >&5 |
10f2d63a VZ |
2421 | no_cache=0 |
2422 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
2423 | if test "${enable_debug_gdb+set}" = set; then | |
2424 | enableval="$enable_debug_gdb" | |
698dcdb6 | 2425 | |
10f2d63a VZ |
2426 | if test "$enableval" = yes; then |
2427 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
2428 | else | |
2429 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
2430 | fi | |
698dcdb6 | 2431 | |
10f2d63a | 2432 | else |
698dcdb6 | 2433 | |
10f2d63a VZ |
2434 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` |
2435 | if test "x$LINE" != x ; then | |
2436 | eval "DEFAULT_$LINE" | |
2437 | else | |
2438 | no_cache=1 | |
2439 | fi | |
2440 | ||
2441 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
698dcdb6 VZ |
2442 | |
2443 | fi | |
10f2d63a VZ |
2444 | |
2445 | ||
2446 | eval "$ac_cv_use_debug_gdb" | |
2447 | if test "$no_cache" != 1; then | |
2448 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
2449 | fi | |
2450 | ||
2451 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
698dcdb6 | 2452 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2453 | else |
698dcdb6 | 2454 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2455 | fi |
698dcdb6 | 2456 | |
10f2d63a | 2457 | |
698dcdb6 | 2458 | echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6 |
b1f5d087 | 2459 | echo "configure:2460: checking for --enable-debug_cntxt" >&5 |
10f2d63a VZ |
2460 | no_cache=0 |
2461 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
2462 | if test "${enable_debug_cntxt+set}" = set; then | |
2463 | enableval="$enable_debug_cntxt" | |
698dcdb6 | 2464 | |
10f2d63a VZ |
2465 | if test "$enableval" = yes; then |
2466 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
2467 | else | |
2468 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
2469 | fi | |
698dcdb6 | 2470 | |
10f2d63a | 2471 | else |
698dcdb6 | 2472 | |
10f2d63a VZ |
2473 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` |
2474 | if test "x$LINE" != x ; then | |
2475 | eval "DEFAULT_$LINE" | |
2476 | else | |
2477 | no_cache=1 | |
2478 | fi | |
2479 | ||
2480 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
698dcdb6 VZ |
2481 | |
2482 | fi | |
10f2d63a VZ |
2483 | |
2484 | ||
2485 | eval "$ac_cv_use_debug_cntxt" | |
2486 | if test "$no_cache" != 1; then | |
2487 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
2488 | fi | |
2489 | ||
2490 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
698dcdb6 | 2491 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2492 | else |
698dcdb6 | 2493 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2494 | fi |
698dcdb6 | 2495 | |
10f2d63a | 2496 | |
698dcdb6 | 2497 | echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6 |
b1f5d087 | 2498 | echo "configure:2499: checking for --enable-mem_tracing" >&5 |
10f2d63a VZ |
2499 | no_cache=0 |
2500 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
2501 | if test "${enable_mem_tracing+set}" = set; then | |
2502 | enableval="$enable_mem_tracing" | |
698dcdb6 | 2503 | |
10f2d63a VZ |
2504 | if test "$enableval" = yes; then |
2505 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
2506 | else | |
2507 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
2508 | fi | |
698dcdb6 | 2509 | |
10f2d63a | 2510 | else |
698dcdb6 | 2511 | |
10f2d63a VZ |
2512 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` |
2513 | if test "x$LINE" != x ; then | |
2514 | eval "DEFAULT_$LINE" | |
2515 | else | |
2516 | no_cache=1 | |
2517 | fi | |
2518 | ||
2519 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
698dcdb6 VZ |
2520 | |
2521 | fi | |
10f2d63a VZ |
2522 | |
2523 | ||
2524 | eval "$ac_cv_use_mem_tracing" | |
2525 | if test "$no_cache" != 1; then | |
2526 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
2527 | fi | |
2528 | ||
2529 | if test "$wxUSE_MEM_TRACING" = yes; then | |
698dcdb6 | 2530 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2531 | else |
698dcdb6 | 2532 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2533 | fi |
698dcdb6 | 2534 | |
10f2d63a | 2535 | |
698dcdb6 | 2536 | echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6 |
b1f5d087 | 2537 | echo "configure:2538: checking for --enable-profile" >&5 |
10f2d63a VZ |
2538 | no_cache=0 |
2539 | # Check whether --enable-profile or --disable-profile was given. | |
2540 | if test "${enable_profile+set}" = set; then | |
2541 | enableval="$enable_profile" | |
698dcdb6 | 2542 | |
10f2d63a VZ |
2543 | if test "$enableval" = yes; then |
2544 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
2545 | else | |
2546 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
2547 | fi | |
698dcdb6 | 2548 | |
10f2d63a | 2549 | else |
698dcdb6 | 2550 | |
10f2d63a VZ |
2551 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` |
2552 | if test "x$LINE" != x ; then | |
2553 | eval "DEFAULT_$LINE" | |
2554 | else | |
2555 | no_cache=1 | |
2556 | fi | |
2557 | ||
2558 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
698dcdb6 VZ |
2559 | |
2560 | fi | |
10f2d63a VZ |
2561 | |
2562 | ||
2563 | eval "$ac_cv_use_profile" | |
2564 | if test "$no_cache" != 1; then | |
2565 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
2566 | fi | |
2567 | ||
2568 | if test "$wxUSE_PROFILE" = yes; then | |
698dcdb6 | 2569 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2570 | else |
698dcdb6 | 2571 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2572 | fi |
698dcdb6 | 2573 | |
10f2d63a | 2574 | |
698dcdb6 | 2575 | echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6 |
b1f5d087 | 2576 | echo "configure:2577: checking for --enable-no_rtti" >&5 |
10f2d63a VZ |
2577 | no_cache=0 |
2578 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
2579 | if test "${enable_no_rtti+set}" = set; then | |
2580 | enableval="$enable_no_rtti" | |
698dcdb6 | 2581 | |
10f2d63a VZ |
2582 | if test "$enableval" = yes; then |
2583 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
2584 | else | |
2585 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
2586 | fi | |
698dcdb6 | 2587 | |
10f2d63a | 2588 | else |
698dcdb6 | 2589 | |
10f2d63a VZ |
2590 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` |
2591 | if test "x$LINE" != x ; then | |
2592 | eval "DEFAULT_$LINE" | |
2593 | else | |
2594 | no_cache=1 | |
2595 | fi | |
2596 | ||
2597 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
698dcdb6 VZ |
2598 | |
2599 | fi | |
10f2d63a VZ |
2600 | |
2601 | ||
2602 | eval "$ac_cv_use_no_rtti" | |
2603 | if test "$no_cache" != 1; then | |
2604 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
2605 | fi | |
2606 | ||
2607 | if test "$wxUSE_NO_RTTI" = yes; then | |
698dcdb6 | 2608 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2609 | else |
698dcdb6 | 2610 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2611 | fi |
698dcdb6 | 2612 | |
10f2d63a | 2613 | |
698dcdb6 | 2614 | echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6 |
b1f5d087 | 2615 | echo "configure:2616: checking for --enable-no_exceptions" >&5 |
10f2d63a VZ |
2616 | no_cache=0 |
2617 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
2618 | if test "${enable_no_exceptions+set}" = set; then | |
2619 | enableval="$enable_no_exceptions" | |
698dcdb6 | 2620 | |
10f2d63a VZ |
2621 | if test "$enableval" = yes; then |
2622 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
2623 | else | |
2624 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
2625 | fi | |
698dcdb6 | 2626 | |
10f2d63a | 2627 | else |
698dcdb6 | 2628 | |
10f2d63a VZ |
2629 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` |
2630 | if test "x$LINE" != x ; then | |
2631 | eval "DEFAULT_$LINE" | |
2632 | else | |
2633 | no_cache=1 | |
2634 | fi | |
2635 | ||
2636 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
698dcdb6 VZ |
2637 | |
2638 | fi | |
10f2d63a VZ |
2639 | |
2640 | ||
2641 | eval "$ac_cv_use_no_exceptions" | |
2642 | if test "$no_cache" != 1; then | |
2643 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
2644 | fi | |
2645 | ||
2646 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
698dcdb6 | 2647 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2648 | else |
698dcdb6 | 2649 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2650 | fi |
698dcdb6 | 2651 | |
10f2d63a | 2652 | |
698dcdb6 | 2653 | echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6 |
b1f5d087 | 2654 | echo "configure:2655: checking for --enable-permissive" >&5 |
10f2d63a VZ |
2655 | no_cache=0 |
2656 | # Check whether --enable-permissive or --disable-permissive was given. | |
2657 | if test "${enable_permissive+set}" = set; then | |
2658 | enableval="$enable_permissive" | |
698dcdb6 | 2659 | |
10f2d63a VZ |
2660 | if test "$enableval" = yes; then |
2661 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
2662 | else | |
2663 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
2664 | fi | |
698dcdb6 | 2665 | |
10f2d63a | 2666 | else |
698dcdb6 | 2667 | |
10f2d63a VZ |
2668 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` |
2669 | if test "x$LINE" != x ; then | |
2670 | eval "DEFAULT_$LINE" | |
2671 | else | |
2672 | no_cache=1 | |
2673 | fi | |
2674 | ||
2675 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
698dcdb6 VZ |
2676 | |
2677 | fi | |
10f2d63a VZ |
2678 | |
2679 | ||
2680 | eval "$ac_cv_use_permissive" | |
2681 | if test "$no_cache" != 1; then | |
2682 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
2683 | fi | |
2684 | ||
2685 | if test "$wxUSE_PERMISSIVE" = yes; then | |
698dcdb6 | 2686 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2687 | else |
698dcdb6 | 2688 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2689 | fi |
698dcdb6 | 2690 | |
10f2d63a | 2691 | |
698dcdb6 | 2692 | echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6 |
b1f5d087 | 2693 | echo "configure:2694: checking for --enable-no_deps" >&5 |
10f2d63a VZ |
2694 | no_cache=0 |
2695 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
2696 | if test "${enable_no_deps+set}" = set; then | |
2697 | enableval="$enable_no_deps" | |
698dcdb6 | 2698 | |
10f2d63a VZ |
2699 | if test "$enableval" = yes; then |
2700 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
2701 | else | |
2702 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
2703 | fi | |
698dcdb6 | 2704 | |
10f2d63a | 2705 | else |
698dcdb6 | 2706 | |
10f2d63a VZ |
2707 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` |
2708 | if test "x$LINE" != x ; then | |
2709 | eval "DEFAULT_$LINE" | |
2710 | else | |
2711 | no_cache=1 | |
2712 | fi | |
2713 | ||
2714 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
698dcdb6 VZ |
2715 | |
2716 | fi | |
10f2d63a VZ |
2717 | |
2718 | ||
2719 | eval "$ac_cv_use_no_deps" | |
2720 | if test "$no_cache" != 1; then | |
2721 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
2722 | fi | |
2723 | ||
2724 | if test "$wxUSE_NO_DEPS" = yes; then | |
698dcdb6 | 2725 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2726 | else |
698dcdb6 | 2727 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2728 | fi |
698dcdb6 VZ |
2729 | |
2730 | ||
10f2d63a | 2731 | |
54276ccf | 2732 | echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6 |
b1f5d087 | 2733 | echo "configure:2734: checking for --enable-compat20" >&5 |
54276ccf VZ |
2734 | no_cache=0 |
2735 | # Check whether --enable-compat20 or --disable-compat20 was given. | |
2736 | if test "${enable_compat20+set}" = set; then | |
2737 | enableval="$enable_compat20" | |
2738 | ||
2739 | if test "$enableval" = yes; then | |
2740 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes' | |
2741 | else | |
2742 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no' | |
2743 | fi | |
2744 | ||
2745 | else | |
2746 | ||
2747 | LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}` | |
2748 | if test "x$LINE" != x ; then | |
2749 | eval "DEFAULT_$LINE" | |
2750 | else | |
2751 | no_cache=1 | |
2752 | fi | |
2753 | ||
2754 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2 | |
2755 | ||
2756 | fi | |
2757 | ||
2758 | ||
2759 | eval "$ac_cv_use_compat20" | |
2760 | if test "$no_cache" != 1; then | |
2761 | echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp | |
2762 | fi | |
2763 | ||
2764 | if test "$WXWIN_COMPATIBILITY_2" = yes; then | |
2765 | echo "$ac_t""yes" 1>&6 | |
2766 | else | |
2767 | echo "$ac_t""no" 1>&6 | |
2768 | fi | |
2769 | ||
2770 | ||
2771 | echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6 | |
b1f5d087 | 2772 | echo "configure:2773: checking for --enable-compat22" >&5 |
54276ccf VZ |
2773 | no_cache=0 |
2774 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
2775 | if test "${enable_compat22+set}" = set; then | |
2776 | enableval="$enable_compat22" | |
2777 | ||
2778 | if test "$enableval" = yes; then | |
2779 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
2780 | else | |
2781 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
2782 | fi | |
2783 | ||
2784 | else | |
2785 | ||
2786 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` | |
2787 | if test "x$LINE" != x ; then | |
2788 | eval "DEFAULT_$LINE" | |
2789 | else | |
2790 | no_cache=1 | |
2791 | fi | |
2792 | ||
2793 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
2794 | ||
2795 | fi | |
2796 | ||
2797 | ||
2798 | eval "$ac_cv_use_compat22" | |
2799 | if test "$no_cache" != 1; then | |
2800 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
2801 | fi | |
2802 | ||
2803 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
2804 | echo "$ac_t""yes" 1>&6 | |
2805 | else | |
2806 | echo "$ac_t""no" 1>&6 | |
2807 | fi | |
2808 | ||
2809 | ||
2810 | ||
698dcdb6 VZ |
2811 | |
2812 | echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6 | |
b1f5d087 | 2813 | echo "configure:2814: checking for --enable-intl" >&5 |
10f2d63a VZ |
2814 | no_cache=0 |
2815 | # Check whether --enable-intl or --disable-intl was given. | |
2816 | if test "${enable_intl+set}" = set; then | |
2817 | enableval="$enable_intl" | |
698dcdb6 | 2818 | |
10f2d63a VZ |
2819 | if test "$enableval" = yes; then |
2820 | ac_cv_use_intl='wxUSE_INTL=yes' | |
2821 | else | |
2822 | ac_cv_use_intl='wxUSE_INTL=no' | |
2823 | fi | |
698dcdb6 | 2824 | |
10f2d63a | 2825 | else |
698dcdb6 | 2826 | |
10f2d63a VZ |
2827 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` |
2828 | if test "x$LINE" != x ; then | |
2829 | eval "DEFAULT_$LINE" | |
2830 | else | |
2831 | no_cache=1 | |
2832 | fi | |
2833 | ||
2834 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
698dcdb6 VZ |
2835 | |
2836 | fi | |
10f2d63a VZ |
2837 | |
2838 | ||
2839 | eval "$ac_cv_use_intl" | |
2840 | if test "$no_cache" != 1; then | |
2841 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
2842 | fi | |
2843 | ||
2844 | if test "$wxUSE_INTL" = yes; then | |
698dcdb6 | 2845 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2846 | else |
698dcdb6 | 2847 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2848 | fi |
698dcdb6 | 2849 | |
10f2d63a | 2850 | |
698dcdb6 | 2851 | echo $ac_n "checking for --enable-config""... $ac_c" 1>&6 |
b1f5d087 | 2852 | echo "configure:2853: checking for --enable-config" >&5 |
10f2d63a VZ |
2853 | no_cache=0 |
2854 | # Check whether --enable-config or --disable-config was given. | |
2855 | if test "${enable_config+set}" = set; then | |
2856 | enableval="$enable_config" | |
698dcdb6 | 2857 | |
10f2d63a VZ |
2858 | if test "$enableval" = yes; then |
2859 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
2860 | else | |
2861 | ac_cv_use_config='wxUSE_CONFIG=no' | |
2862 | fi | |
698dcdb6 | 2863 | |
10f2d63a | 2864 | else |
698dcdb6 | 2865 | |
10f2d63a VZ |
2866 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` |
2867 | if test "x$LINE" != x ; then | |
2868 | eval "DEFAULT_$LINE" | |
2869 | else | |
2870 | no_cache=1 | |
2871 | fi | |
2872 | ||
2873 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
698dcdb6 VZ |
2874 | |
2875 | fi | |
10f2d63a VZ |
2876 | |
2877 | ||
2878 | eval "$ac_cv_use_config" | |
2879 | if test "$no_cache" != 1; then | |
2880 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
2881 | fi | |
2882 | ||
2883 | if test "$wxUSE_CONFIG" = yes; then | |
698dcdb6 | 2884 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2885 | else |
698dcdb6 | 2886 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2887 | fi |
698dcdb6 VZ |
2888 | |
2889 | ||
b12915c1 | 2890 | |
698dcdb6 | 2891 | echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6 |
b1f5d087 | 2892 | echo "configure:2893: checking for --enable-sockets" >&5 |
10f2d63a VZ |
2893 | no_cache=0 |
2894 | # Check whether --enable-sockets or --disable-sockets was given. | |
2895 | if test "${enable_sockets+set}" = set; then | |
2896 | enableval="$enable_sockets" | |
698dcdb6 | 2897 | |
10f2d63a VZ |
2898 | if test "$enableval" = yes; then |
2899 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
2900 | else | |
2901 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
2902 | fi | |
698dcdb6 | 2903 | |
10f2d63a | 2904 | else |
698dcdb6 | 2905 | |
10f2d63a VZ |
2906 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` |
2907 | if test "x$LINE" != x ; then | |
2908 | eval "DEFAULT_$LINE" | |
2909 | else | |
2910 | no_cache=1 | |
2911 | fi | |
2912 | ||
2913 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
698dcdb6 VZ |
2914 | |
2915 | fi | |
10f2d63a VZ |
2916 | |
2917 | ||
2918 | eval "$ac_cv_use_sockets" | |
2919 | if test "$no_cache" != 1; then | |
2920 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
2921 | fi | |
2922 | ||
2923 | if test "$wxUSE_SOCKETS" = yes; then | |
698dcdb6 | 2924 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2925 | else |
698dcdb6 | 2926 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2927 | fi |
698dcdb6 | 2928 | |
b12915c1 | 2929 | |
698dcdb6 VZ |
2930 | |
2931 | echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6 | |
b1f5d087 | 2932 | echo "configure:2933: checking for --enable-ipc" >&5 |
10f2d63a | 2933 | no_cache=0 |
eb4efbdc VZ |
2934 | # Check whether --enable-ipc or --disable-ipc was given. |
2935 | if test "${enable_ipc+set}" = set; then | |
2936 | enableval="$enable_ipc" | |
698dcdb6 | 2937 | |
10f2d63a | 2938 | if test "$enableval" = yes; then |
eb4efbdc | 2939 | ac_cv_use_ipc='wxUSE_IPC=yes' |
10f2d63a | 2940 | else |
eb4efbdc | 2941 | ac_cv_use_ipc='wxUSE_IPC=no' |
10f2d63a | 2942 | fi |
698dcdb6 | 2943 | |
10f2d63a | 2944 | else |
698dcdb6 | 2945 | |
eb4efbdc | 2946 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` |
10f2d63a VZ |
2947 | if test "x$LINE" != x ; then |
2948 | eval "DEFAULT_$LINE" | |
2949 | else | |
2950 | no_cache=1 | |
2951 | fi | |
2952 | ||
eb4efbdc | 2953 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC |
698dcdb6 VZ |
2954 | |
2955 | fi | |
10f2d63a VZ |
2956 | |
2957 | ||
eb4efbdc | 2958 | eval "$ac_cv_use_ipc" |
10f2d63a | 2959 | if test "$no_cache" != 1; then |
eb4efbdc | 2960 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2961 | fi |
2962 | ||
eb4efbdc | 2963 | if test "$wxUSE_IPC" = yes; then |
698dcdb6 | 2964 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2965 | else |
698dcdb6 | 2966 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2967 | fi |
698dcdb6 VZ |
2968 | |
2969 | ||
eb4efbdc | 2970 | |
1e6feb95 | 2971 | echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6 |
b1f5d087 | 2972 | echo "configure:2973: checking for --enable-cmdline" >&5 |
1e6feb95 VZ |
2973 | no_cache=0 |
2974 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
2975 | if test "${enable_cmdline+set}" = set; then | |
2976 | enableval="$enable_cmdline" | |
2977 | ||
2978 | if test "$enableval" = yes; then | |
2979 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
2980 | else | |
2981 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
2982 | fi | |
2983 | ||
2984 | else | |
2985 | ||
2986 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
2987 | if test "x$LINE" != x ; then | |
2988 | eval "DEFAULT_$LINE" | |
2989 | else | |
2990 | no_cache=1 | |
2991 | fi | |
2992 | ||
2993 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
2994 | ||
2995 | fi | |
2996 | ||
2997 | ||
2998 | eval "$ac_cv_use_cmdline" | |
2999 | if test "$no_cache" != 1; then | |
3000 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
3001 | fi | |
3002 | ||
3003 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
3004 | echo "$ac_t""yes" 1>&6 | |
3005 | else | |
3006 | echo "$ac_t""no" 1>&6 | |
3007 | fi | |
3008 | ||
3009 | ||
3010 | echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6 | |
b1f5d087 | 3011 | echo "configure:3012: checking for --enable-datetime" >&5 |
1e6feb95 VZ |
3012 | no_cache=0 |
3013 | # Check whether --enable-datetime or --disable-datetime was given. | |
3014 | if test "${enable_datetime+set}" = set; then | |
3015 | enableval="$enable_datetime" | |
3016 | ||
3017 | if test "$enableval" = yes; then | |
3018 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
3019 | else | |
3020 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
3021 | fi | |
3022 | ||
3023 | else | |
3024 | ||
3025 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
3026 | if test "x$LINE" != x ; then | |
3027 | eval "DEFAULT_$LINE" | |
3028 | else | |
3029 | no_cache=1 | |
3030 | fi | |
3031 | ||
3032 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
3033 | ||
3034 | fi | |
3035 | ||
3036 | ||
3037 | eval "$ac_cv_use_datetime" | |
3038 | if test "$no_cache" != 1; then | |
3039 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
3040 | fi | |
3041 | ||
3042 | if test "$wxUSE_DATETIME" = yes; then | |
3043 | echo "$ac_t""yes" 1>&6 | |
3044 | else | |
3045 | echo "$ac_t""no" 1>&6 | |
3046 | fi | |
3047 | ||
3048 | ||
3049 | echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6 | |
b1f5d087 | 3050 | echo "configure:3051: checking for --enable-timedate" >&5 |
1e6feb95 VZ |
3051 | no_cache=0 |
3052 | # Check whether --enable-timedate or --disable-timedate was given. | |
3053 | if test "${enable_timedate+set}" = set; then | |
3054 | enableval="$enable_timedate" | |
3055 | ||
3056 | if test "$enableval" = yes; then | |
3057 | ac_cv_use_timedate='wxUSE_TIMEDATE=yes' | |
3058 | else | |
3059 | ac_cv_use_timedate='wxUSE_TIMEDATE=no' | |
3060 | fi | |
3061 | ||
3062 | else | |
3063 | ||
3064 | LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}` | |
3065 | if test "x$LINE" != x ; then | |
3066 | eval "DEFAULT_$LINE" | |
3067 | else | |
3068 | no_cache=1 | |
3069 | fi | |
3070 | ||
3071 | ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE | |
3072 | ||
3073 | fi | |
3074 | ||
3075 | ||
3076 | eval "$ac_cv_use_timedate" | |
3077 | if test "$no_cache" != 1; then | |
3078 | echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp | |
3079 | fi | |
3080 | ||
3081 | if test "$wxUSE_TIMEDATE" = yes; then | |
3082 | echo "$ac_t""yes" 1>&6 | |
3083 | else | |
3084 | echo "$ac_t""no" 1>&6 | |
3085 | fi | |
3086 | ||
3087 | ||
3088 | echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6 | |
b1f5d087 | 3089 | echo "configure:3090: checking for --enable-stopwatch" >&5 |
1e6feb95 VZ |
3090 | no_cache=0 |
3091 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
3092 | if test "${enable_stopwatch+set}" = set; then | |
3093 | enableval="$enable_stopwatch" | |
3094 | ||
3095 | if test "$enableval" = yes; then | |
3096 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
3097 | else | |
3098 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
3099 | fi | |
3100 | ||
3101 | else | |
3102 | ||
3103 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` | |
3104 | if test "x$LINE" != x ; then | |
3105 | eval "DEFAULT_$LINE" | |
3106 | else | |
3107 | no_cache=1 | |
3108 | fi | |
3109 | ||
3110 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
3111 | ||
3112 | fi | |
3113 | ||
3114 | ||
3115 | eval "$ac_cv_use_stopwatch" | |
3116 | if test "$no_cache" != 1; then | |
3117 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
3118 | fi | |
3119 | ||
3120 | if test "$wxUSE_STOPWATCH" = yes; then | |
3121 | echo "$ac_t""yes" 1>&6 | |
3122 | else | |
3123 | echo "$ac_t""no" 1>&6 | |
3124 | fi | |
3125 | ||
3126 | ||
698dcdb6 | 3127 | echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6 |
b1f5d087 | 3128 | echo "configure:3129: checking for --enable-dialupman" >&5 |
10f2d63a | 3129 | no_cache=0 |
eb4efbdc VZ |
3130 | # Check whether --enable-dialupman or --disable-dialupman was given. |
3131 | if test "${enable_dialupman+set}" = set; then | |
3132 | enableval="$enable_dialupman" | |
698dcdb6 | 3133 | |
10f2d63a | 3134 | if test "$enableval" = yes; then |
eb4efbdc | 3135 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' |
10f2d63a | 3136 | else |
eb4efbdc | 3137 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' |
10f2d63a | 3138 | fi |
698dcdb6 | 3139 | |
10f2d63a | 3140 | else |
698dcdb6 | 3141 | |
eb4efbdc | 3142 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3143 | if test "x$LINE" != x ; then |
3144 | eval "DEFAULT_$LINE" | |
3145 | else | |
3146 | no_cache=1 | |
3147 | fi | |
3148 | ||
eb4efbdc | 3149 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER |
698dcdb6 VZ |
3150 | |
3151 | fi | |
10f2d63a VZ |
3152 | |
3153 | ||
eb4efbdc | 3154 | eval "$ac_cv_use_dialupman" |
10f2d63a | 3155 | if test "$no_cache" != 1; then |
eb4efbdc | 3156 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3157 | fi |
3158 | ||
eb4efbdc | 3159 | if test "$wxUSE_DIALUP_MANAGER" = yes; then |
698dcdb6 | 3160 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3161 | else |
698dcdb6 | 3162 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3163 | fi |
698dcdb6 | 3164 | |
10f2d63a | 3165 | |
698dcdb6 | 3166 | echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6 |
b1f5d087 | 3167 | echo "configure:3168: checking for --enable-apple_ieee" >&5 |
10f2d63a VZ |
3168 | no_cache=0 |
3169 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
3170 | if test "${enable_apple_ieee+set}" = set; then | |
3171 | enableval="$enable_apple_ieee" | |
698dcdb6 | 3172 | |
10f2d63a VZ |
3173 | if test "$enableval" = yes; then |
3174 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
3175 | else | |
3176 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
3177 | fi | |
698dcdb6 | 3178 | |
10f2d63a | 3179 | else |
698dcdb6 | 3180 | |
10f2d63a VZ |
3181 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` |
3182 | if test "x$LINE" != x ; then | |
3183 | eval "DEFAULT_$LINE" | |
3184 | else | |
3185 | no_cache=1 | |
3186 | fi | |
3187 | ||
3188 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
698dcdb6 VZ |
3189 | |
3190 | fi | |
10f2d63a VZ |
3191 | |
3192 | ||
3193 | eval "$ac_cv_use_apple_ieee" | |
3194 | if test "$no_cache" != 1; then | |
3195 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
3196 | fi | |
3197 | ||
3198 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
698dcdb6 | 3199 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3200 | else |
698dcdb6 | 3201 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3202 | fi |
698dcdb6 | 3203 | |
10f2d63a | 3204 | |
1e6feb95 | 3205 | echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6 |
b1f5d087 | 3206 | echo "configure:3207: checking for --enable-timer" >&5 |
10f2d63a | 3207 | no_cache=0 |
1e6feb95 VZ |
3208 | # Check whether --enable-timer or --disable-timer was given. |
3209 | if test "${enable_timer+set}" = set; then | |
3210 | enableval="$enable_timer" | |
698dcdb6 | 3211 | |
10f2d63a | 3212 | if test "$enableval" = yes; then |
1e6feb95 | 3213 | ac_cv_use_timer='wxUSE_TIMER=yes' |
10f2d63a | 3214 | else |
1e6feb95 | 3215 | ac_cv_use_timer='wxUSE_TIMER=no' |
10f2d63a | 3216 | fi |
698dcdb6 | 3217 | |
10f2d63a | 3218 | else |
698dcdb6 | 3219 | |
1e6feb95 | 3220 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3221 | if test "x$LINE" != x ; then |
3222 | eval "DEFAULT_$LINE" | |
3223 | else | |
3224 | no_cache=1 | |
3225 | fi | |
3226 | ||
1e6feb95 | 3227 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER |
698dcdb6 VZ |
3228 | |
3229 | fi | |
10f2d63a VZ |
3230 | |
3231 | ||
1e6feb95 | 3232 | eval "$ac_cv_use_timer" |
10f2d63a | 3233 | if test "$no_cache" != 1; then |
1e6feb95 | 3234 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3235 | fi |
3236 | ||
1e6feb95 | 3237 | if test "$wxUSE_TIMER" = yes; then |
698dcdb6 | 3238 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3239 | else |
698dcdb6 | 3240 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3241 | fi |
698dcdb6 | 3242 | |
10f2d63a | 3243 | |
698dcdb6 | 3244 | echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6 |
b1f5d087 | 3245 | echo "configure:3246: checking for --enable-wave" >&5 |
10f2d63a VZ |
3246 | no_cache=0 |
3247 | # Check whether --enable-wave or --disable-wave was given. | |
3248 | if test "${enable_wave+set}" = set; then | |
3249 | enableval="$enable_wave" | |
698dcdb6 | 3250 | |
10f2d63a VZ |
3251 | if test "$enableval" = yes; then |
3252 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
3253 | else | |
3254 | ac_cv_use_wave='wxUSE_WAVE=no' | |
3255 | fi | |
698dcdb6 | 3256 | |
10f2d63a | 3257 | else |
698dcdb6 | 3258 | |
10f2d63a VZ |
3259 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` |
3260 | if test "x$LINE" != x ; then | |
3261 | eval "DEFAULT_$LINE" | |
3262 | else | |
3263 | no_cache=1 | |
3264 | fi | |
3265 | ||
3266 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
698dcdb6 VZ |
3267 | |
3268 | fi | |
10f2d63a VZ |
3269 | |
3270 | ||
3271 | eval "$ac_cv_use_wave" | |
3272 | if test "$no_cache" != 1; then | |
3273 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
3274 | fi | |
3275 | ||
3276 | if test "$wxUSE_WAVE" = yes; then | |
698dcdb6 | 3277 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3278 | else |
698dcdb6 | 3279 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3280 | fi |
698dcdb6 | 3281 | |
10f2d63a | 3282 | |
698dcdb6 | 3283 | echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6 |
b1f5d087 | 3284 | echo "configure:3285: checking for --enable-fraction" >&5 |
10f2d63a VZ |
3285 | no_cache=0 |
3286 | # Check whether --enable-fraction or --disable-fraction was given. | |
3287 | if test "${enable_fraction+set}" = set; then | |
3288 | enableval="$enable_fraction" | |
698dcdb6 | 3289 | |
10f2d63a VZ |
3290 | if test "$enableval" = yes; then |
3291 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
3292 | else | |
3293 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
3294 | fi | |
698dcdb6 | 3295 | |
10f2d63a | 3296 | else |
698dcdb6 | 3297 | |
10f2d63a VZ |
3298 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` |
3299 | if test "x$LINE" != x ; then | |
3300 | eval "DEFAULT_$LINE" | |
3301 | else | |
3302 | no_cache=1 | |
3303 | fi | |
3304 | ||
3305 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
698dcdb6 VZ |
3306 | |
3307 | fi | |
10f2d63a VZ |
3308 | |
3309 | ||
3310 | eval "$ac_cv_use_fraction" | |
3311 | if test "$no_cache" != 1; then | |
3312 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
3313 | fi | |
3314 | ||
3315 | if test "$wxUSE_FRACTION" = yes; then | |
698dcdb6 | 3316 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3317 | else |
698dcdb6 | 3318 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3319 | fi |
698dcdb6 | 3320 | |
10f2d63a | 3321 | |
698dcdb6 | 3322 | echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6 |
b1f5d087 | 3323 | echo "configure:3324: checking for --enable-dynlib" >&5 |
10f2d63a VZ |
3324 | no_cache=0 |
3325 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
3326 | if test "${enable_dynlib+set}" = set; then | |
3327 | enableval="$enable_dynlib" | |
698dcdb6 | 3328 | |
10f2d63a VZ |
3329 | if test "$enableval" = yes; then |
3330 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
3331 | else | |
3332 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
3333 | fi | |
698dcdb6 | 3334 | |
10f2d63a | 3335 | else |
698dcdb6 | 3336 | |
10f2d63a VZ |
3337 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` |
3338 | if test "x$LINE" != x ; then | |
3339 | eval "DEFAULT_$LINE" | |
3340 | else | |
3341 | no_cache=1 | |
3342 | fi | |
3343 | ||
3344 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
698dcdb6 VZ |
3345 | |
3346 | fi | |
10f2d63a VZ |
3347 | |
3348 | ||
3349 | eval "$ac_cv_use_dynlib" | |
3350 | if test "$no_cache" != 1; then | |
3351 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
3352 | fi | |
3353 | ||
3354 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
698dcdb6 | 3355 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3356 | else |
698dcdb6 | 3357 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3358 | fi |
698dcdb6 | 3359 | |
10f2d63a | 3360 | |
698dcdb6 | 3361 | echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6 |
b1f5d087 | 3362 | echo "configure:3363: checking for --enable-longlong" >&5 |
10f2d63a VZ |
3363 | no_cache=0 |
3364 | # Check whether --enable-longlong or --disable-longlong was given. | |
3365 | if test "${enable_longlong+set}" = set; then | |
3366 | enableval="$enable_longlong" | |
698dcdb6 | 3367 | |
10f2d63a VZ |
3368 | if test "$enableval" = yes; then |
3369 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
3370 | else | |
3371 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
3372 | fi | |
698dcdb6 | 3373 | |
10f2d63a | 3374 | else |
698dcdb6 | 3375 | |
10f2d63a VZ |
3376 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` |
3377 | if test "x$LINE" != x ; then | |
3378 | eval "DEFAULT_$LINE" | |
3379 | else | |
3380 | no_cache=1 | |
3381 | fi | |
3382 | ||
3383 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
698dcdb6 VZ |
3384 | |
3385 | fi | |
10f2d63a VZ |
3386 | |
3387 | ||
3388 | eval "$ac_cv_use_longlong" | |
3389 | if test "$no_cache" != 1; then | |
3390 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
3391 | fi | |
3392 | ||
3393 | if test "$wxUSE_LONGLONG" = yes; then | |
698dcdb6 | 3394 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3395 | else |
698dcdb6 | 3396 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3397 | fi |
698dcdb6 | 3398 | |
10f2d63a | 3399 | |
698dcdb6 | 3400 | echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6 |
b1f5d087 | 3401 | echo "configure:3402: checking for --enable-geometry" >&5 |
e8f65ba6 RR |
3402 | no_cache=0 |
3403 | # Check whether --enable-geometry or --disable-geometry was given. | |
3404 | if test "${enable_geometry+set}" = set; then | |
3405 | enableval="$enable_geometry" | |
698dcdb6 | 3406 | |
e8f65ba6 RR |
3407 | if test "$enableval" = yes; then |
3408 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
3409 | else | |
3410 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
3411 | fi | |
698dcdb6 | 3412 | |
e8f65ba6 | 3413 | else |
698dcdb6 | 3414 | |
e8f65ba6 RR |
3415 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` |
3416 | if test "x$LINE" != x ; then | |
3417 | eval "DEFAULT_$LINE" | |
3418 | else | |
3419 | no_cache=1 | |
3420 | fi | |
3421 | ||
3422 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
698dcdb6 VZ |
3423 | |
3424 | fi | |
e8f65ba6 RR |
3425 | |
3426 | ||
3427 | eval "$ac_cv_use_geometry" | |
3428 | if test "$no_cache" != 1; then | |
3429 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
3430 | fi | |
3431 | ||
3432 | if test "$wxUSE_GEOMETRY" = yes; then | |
698dcdb6 | 3433 | echo "$ac_t""yes" 1>&6 |
e8f65ba6 | 3434 | else |
698dcdb6 | 3435 | echo "$ac_t""no" 1>&6 |
e8f65ba6 | 3436 | fi |
698dcdb6 | 3437 | |
e8f65ba6 | 3438 | |
698dcdb6 | 3439 | echo $ac_n "checking for --enable-log""... $ac_c" 1>&6 |
b1f5d087 | 3440 | echo "configure:3441: checking for --enable-log" >&5 |
10f2d63a VZ |
3441 | no_cache=0 |
3442 | # Check whether --enable-log or --disable-log was given. | |
3443 | if test "${enable_log+set}" = set; then | |
3444 | enableval="$enable_log" | |
698dcdb6 | 3445 | |
10f2d63a VZ |
3446 | if test "$enableval" = yes; then |
3447 | ac_cv_use_log='wxUSE_LOG=yes' | |
3448 | else | |
3449 | ac_cv_use_log='wxUSE_LOG=no' | |
3450 | fi | |
698dcdb6 | 3451 | |
10f2d63a | 3452 | else |
698dcdb6 | 3453 | |
10f2d63a VZ |
3454 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` |
3455 | if test "x$LINE" != x ; then | |
3456 | eval "DEFAULT_$LINE" | |
3457 | else | |
3458 | no_cache=1 | |
3459 | fi | |
3460 | ||
3461 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
698dcdb6 VZ |
3462 | |
3463 | fi | |
10f2d63a VZ |
3464 | |
3465 | ||
3466 | eval "$ac_cv_use_log" | |
3467 | if test "$no_cache" != 1; then | |
3468 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
3469 | fi | |
3470 | ||
3471 | if test "$wxUSE_LOG" = yes; then | |
698dcdb6 | 3472 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3473 | else |
698dcdb6 | 3474 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3475 | fi |
698dcdb6 | 3476 | |
10f2d63a | 3477 | |
698dcdb6 | 3478 | echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6 |
b1f5d087 | 3479 | echo "configure:3480: checking for --enable-streams" >&5 |
10f2d63a VZ |
3480 | no_cache=0 |
3481 | # Check whether --enable-streams or --disable-streams was given. | |
3482 | if test "${enable_streams+set}" = set; then | |
3483 | enableval="$enable_streams" | |
698dcdb6 | 3484 | |
10f2d63a VZ |
3485 | if test "$enableval" = yes; then |
3486 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
3487 | else | |
3488 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
3489 | fi | |
698dcdb6 | 3490 | |
10f2d63a | 3491 | else |
698dcdb6 | 3492 | |
10f2d63a VZ |
3493 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` |
3494 | if test "x$LINE" != x ; then | |
3495 | eval "DEFAULT_$LINE" | |
3496 | else | |
3497 | no_cache=1 | |
3498 | fi | |
3499 | ||
3500 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
698dcdb6 VZ |
3501 | |
3502 | fi | |
10f2d63a VZ |
3503 | |
3504 | ||
3505 | eval "$ac_cv_use_streams" | |
3506 | if test "$no_cache" != 1; then | |
3507 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
3508 | fi | |
3509 | ||
3510 | if test "$wxUSE_STREAMS" = yes; then | |
698dcdb6 | 3511 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3512 | else |
698dcdb6 | 3513 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3514 | fi |
698dcdb6 | 3515 | |
10f2d63a | 3516 | |
698dcdb6 | 3517 | echo $ac_n "checking for --enable-file""... $ac_c" 1>&6 |
b1f5d087 | 3518 | echo "configure:3519: checking for --enable-file" >&5 |
10f2d63a VZ |
3519 | no_cache=0 |
3520 | # Check whether --enable-file or --disable-file was given. | |
3521 | if test "${enable_file+set}" = set; then | |
3522 | enableval="$enable_file" | |
698dcdb6 | 3523 | |
10f2d63a VZ |
3524 | if test "$enableval" = yes; then |
3525 | ac_cv_use_file='wxUSE_FILE=yes' | |
3526 | else | |
3527 | ac_cv_use_file='wxUSE_FILE=no' | |
3528 | fi | |
698dcdb6 | 3529 | |
10f2d63a | 3530 | else |
698dcdb6 | 3531 | |
10f2d63a VZ |
3532 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` |
3533 | if test "x$LINE" != x ; then | |
3534 | eval "DEFAULT_$LINE" | |
3535 | else | |
3536 | no_cache=1 | |
3537 | fi | |
3538 | ||
3539 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
698dcdb6 VZ |
3540 | |
3541 | fi | |
10f2d63a VZ |
3542 | |
3543 | ||
3544 | eval "$ac_cv_use_file" | |
3545 | if test "$no_cache" != 1; then | |
3546 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
3547 | fi | |
3548 | ||
3549 | if test "$wxUSE_FILE" = yes; then | |
698dcdb6 | 3550 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3551 | else |
698dcdb6 | 3552 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3553 | fi |
698dcdb6 | 3554 | |
10f2d63a | 3555 | |
1e6feb95 | 3556 | echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6 |
b1f5d087 | 3557 | echo "configure:3558: checking for --enable-ffile" >&5 |
10f2d63a | 3558 | no_cache=0 |
1e6feb95 VZ |
3559 | # Check whether --enable-ffile or --disable-ffile was given. |
3560 | if test "${enable_ffile+set}" = set; then | |
3561 | enableval="$enable_ffile" | |
698dcdb6 | 3562 | |
10f2d63a | 3563 | if test "$enableval" = yes; then |
1e6feb95 | 3564 | ac_cv_use_ffile='wxUSE_FFILE=yes' |
10f2d63a | 3565 | else |
1e6feb95 | 3566 | ac_cv_use_ffile='wxUSE_FFILE=no' |
10f2d63a | 3567 | fi |
698dcdb6 | 3568 | |
10f2d63a | 3569 | else |
698dcdb6 | 3570 | |
1e6feb95 | 3571 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
3572 | if test "x$LINE" != x ; then |
3573 | eval "DEFAULT_$LINE" | |
3574 | else | |
3575 | no_cache=1 | |
3576 | fi | |
3577 | ||
1e6feb95 | 3578 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE |
698dcdb6 VZ |
3579 | |
3580 | fi | |
10f2d63a VZ |
3581 | |
3582 | ||
1e6feb95 | 3583 | eval "$ac_cv_use_ffile" |
10f2d63a | 3584 | if test "$no_cache" != 1; then |
1e6feb95 | 3585 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3586 | fi |
3587 | ||
1e6feb95 | 3588 | if test "$wxUSE_FFILE" = yes; then |
698dcdb6 | 3589 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3590 | else |
698dcdb6 | 3591 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3592 | fi |
698dcdb6 | 3593 | |
10f2d63a | 3594 | |
1e6feb95 | 3595 | echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6 |
b1f5d087 | 3596 | echo "configure:3597: checking for --enable-textfile" >&5 |
10f2d63a | 3597 | no_cache=0 |
1e6feb95 VZ |
3598 | # Check whether --enable-textfile or --disable-textfile was given. |
3599 | if test "${enable_textfile+set}" = set; then | |
3600 | enableval="$enable_textfile" | |
698dcdb6 | 3601 | |
10f2d63a | 3602 | if test "$enableval" = yes; then |
1e6feb95 | 3603 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' |
10f2d63a | 3604 | else |
1e6feb95 | 3605 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' |
10f2d63a | 3606 | fi |
698dcdb6 | 3607 | |
10f2d63a | 3608 | else |
698dcdb6 | 3609 | |
1e6feb95 | 3610 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
3611 | if test "x$LINE" != x ; then |
3612 | eval "DEFAULT_$LINE" | |
3613 | else | |
3614 | no_cache=1 | |
3615 | fi | |
3616 | ||
1e6feb95 | 3617 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE |
698dcdb6 VZ |
3618 | |
3619 | fi | |
10f2d63a VZ |
3620 | |
3621 | ||
1e6feb95 | 3622 | eval "$ac_cv_use_textfile" |
10f2d63a | 3623 | if test "$no_cache" != 1; then |
1e6feb95 | 3624 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3625 | fi |
3626 | ||
1e6feb95 | 3627 | if test "$wxUSE_TEXTFILE" = yes; then |
698dcdb6 | 3628 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3629 | else |
698dcdb6 | 3630 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3631 | fi |
698dcdb6 | 3632 | |
10f2d63a | 3633 | |
1e6feb95 | 3634 | echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6 |
b1f5d087 | 3635 | echo "configure:3636: checking for --enable-fontmap" >&5 |
10f2d63a | 3636 | no_cache=0 |
1e6feb95 VZ |
3637 | # Check whether --enable-fontmap or --disable-fontmap was given. |
3638 | if test "${enable_fontmap+set}" = set; then | |
3639 | enableval="$enable_fontmap" | |
698dcdb6 | 3640 | |
10f2d63a | 3641 | if test "$enableval" = yes; then |
1e6feb95 | 3642 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' |
10f2d63a | 3643 | else |
1e6feb95 | 3644 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' |
10f2d63a | 3645 | fi |
698dcdb6 | 3646 | |
10f2d63a | 3647 | else |
698dcdb6 | 3648 | |
1e6feb95 | 3649 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` |
10f2d63a VZ |
3650 | if test "x$LINE" != x ; then |
3651 | eval "DEFAULT_$LINE" | |
3652 | else | |
3653 | no_cache=1 | |
3654 | fi | |
3655 | ||
1e6feb95 | 3656 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP |
698dcdb6 VZ |
3657 | |
3658 | fi | |
10f2d63a VZ |
3659 | |
3660 | ||
1e6feb95 | 3661 | eval "$ac_cv_use_fontmap" |
10f2d63a | 3662 | if test "$no_cache" != 1; then |
1e6feb95 | 3663 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3664 | fi |
3665 | ||
1e6feb95 | 3666 | if test "$wxUSE_FONTMAP" = yes; then |
698dcdb6 | 3667 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3668 | else |
698dcdb6 | 3669 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3670 | fi |
698dcdb6 | 3671 | |
10f2d63a | 3672 | |
1e6feb95 | 3673 | echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6 |
b1f5d087 | 3674 | echo "configure:3675: checking for --enable-unicode" >&5 |
10f2d63a | 3675 | no_cache=0 |
1e6feb95 VZ |
3676 | # Check whether --enable-unicode or --disable-unicode was given. |
3677 | if test "${enable_unicode+set}" = set; then | |
3678 | enableval="$enable_unicode" | |
3679 | ||
3680 | if test "$enableval" = yes; then | |
3681 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
3682 | else | |
3683 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
3684 | fi | |
3685 | ||
3686 | else | |
3687 | ||
3688 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
3689 | if test "x$LINE" != x ; then | |
3690 | eval "DEFAULT_$LINE" | |
3691 | else | |
3692 | no_cache=1 | |
3693 | fi | |
3694 | ||
3695 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
3696 | ||
3697 | fi | |
3698 | ||
3699 | ||
3700 | eval "$ac_cv_use_unicode" | |
3701 | if test "$no_cache" != 1; then | |
3702 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
3703 | fi | |
3704 | ||
3705 | if test "$wxUSE_UNICODE" = yes; then | |
3706 | echo "$ac_t""yes" 1>&6 | |
3707 | else | |
3708 | echo "$ac_t""no" 1>&6 | |
3709 | fi | |
3710 | ||
3711 | ||
3712 | echo $ac_n "checking for --enable-wcsrtombs""... $ac_c" 1>&6 | |
b1f5d087 | 3713 | echo "configure:3714: checking for --enable-wcsrtombs" >&5 |
1e6feb95 VZ |
3714 | no_cache=0 |
3715 | # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given. | |
3716 | if test "${enable_wcsrtombs+set}" = set; then | |
3717 | enableval="$enable_wcsrtombs" | |
3718 | ||
3719 | if test "$enableval" = yes; then | |
3720 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes' | |
3721 | else | |
3722 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no' | |
3723 | fi | |
3724 | ||
3725 | else | |
3726 | ||
3727 | LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}` | |
3728 | if test "x$LINE" != x ; then | |
3729 | eval "DEFAULT_$LINE" | |
3730 | else | |
3731 | no_cache=1 | |
3732 | fi | |
3733 | ||
3734 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS | |
3735 | ||
3736 | fi | |
3737 | ||
3738 | ||
3739 | eval "$ac_cv_use_wcsrtombs" | |
3740 | if test "$no_cache" != 1; then | |
3741 | echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp | |
3742 | fi | |
3743 | ||
3744 | if test "$wxUSE_WCSRTOMBS" = yes; then | |
3745 | echo "$ac_t""yes" 1>&6 | |
3746 | else | |
3747 | echo "$ac_t""no" 1>&6 | |
3748 | fi | |
3749 | ||
3750 | ||
3751 | echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6 | |
b1f5d087 | 3752 | echo "configure:3753: checking for --enable-wxprintfv" >&5 |
1e6feb95 VZ |
3753 | no_cache=0 |
3754 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
3755 | if test "${enable_wxprintfv+set}" = set; then | |
3756 | enableval="$enable_wxprintfv" | |
3757 | ||
3758 | if test "$enableval" = yes; then | |
10f2d63a VZ |
3759 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' |
3760 | else | |
3761 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
3762 | fi | |
698dcdb6 | 3763 | |
10f2d63a | 3764 | else |
698dcdb6 | 3765 | |
10f2d63a VZ |
3766 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` |
3767 | if test "x$LINE" != x ; then | |
3768 | eval "DEFAULT_$LINE" | |
3769 | else | |
3770 | no_cache=1 | |
3771 | fi | |
3772 | ||
3773 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
698dcdb6 VZ |
3774 | |
3775 | fi | |
10f2d63a VZ |
3776 | |
3777 | ||
3778 | eval "$ac_cv_use_wxprintfv" | |
3779 | if test "$no_cache" != 1; then | |
3780 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
3781 | fi | |
3782 | ||
3783 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
698dcdb6 | 3784 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3785 | else |
698dcdb6 | 3786 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3787 | fi |
698dcdb6 | 3788 | |
10f2d63a | 3789 | |
698dcdb6 | 3790 | echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6 |
b1f5d087 | 3791 | echo "configure:3792: checking for --enable-std_iostreams" >&5 |
10f2d63a VZ |
3792 | no_cache=0 |
3793 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
3794 | if test "${enable_std_iostreams+set}" = set; then | |
3795 | enableval="$enable_std_iostreams" | |
698dcdb6 | 3796 | |
10f2d63a VZ |
3797 | if test "$enableval" = yes; then |
3798 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
3799 | else | |
3800 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
3801 | fi | |
698dcdb6 | 3802 | |
10f2d63a | 3803 | else |
698dcdb6 | 3804 | |
10f2d63a VZ |
3805 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
3806 | if test "x$LINE" != x ; then | |
3807 | eval "DEFAULT_$LINE" | |
3808 | else | |
3809 | no_cache=1 | |
3810 | fi | |
3811 | ||
3812 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
698dcdb6 VZ |
3813 | |
3814 | fi | |
10f2d63a VZ |
3815 | |
3816 | ||
3817 | eval "$ac_cv_use_std_iostreams" | |
3818 | if test "$no_cache" != 1; then | |
3819 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
3820 | fi | |
3821 | ||
3822 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
698dcdb6 | 3823 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3824 | else |
698dcdb6 | 3825 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3826 | fi |
698dcdb6 | 3827 | |
10f2d63a | 3828 | |
698dcdb6 | 3829 | echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6 |
b1f5d087 | 3830 | echo "configure:3831: checking for --enable-filesystem" >&5 |
24528b0c VS |
3831 | no_cache=0 |
3832 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
3833 | if test "${enable_filesystem+set}" = set; then | |
3834 | enableval="$enable_filesystem" | |
698dcdb6 | 3835 | |
24528b0c VS |
3836 | if test "$enableval" = yes; then |
3837 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
3838 | else | |
3839 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
3840 | fi | |
698dcdb6 | 3841 | |
24528b0c | 3842 | else |
698dcdb6 | 3843 | |
24528b0c VS |
3844 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` |
3845 | if test "x$LINE" != x ; then | |
3846 | eval "DEFAULT_$LINE" | |
3847 | else | |
3848 | no_cache=1 | |
3849 | fi | |
3850 | ||
3851 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
698dcdb6 VZ |
3852 | |
3853 | fi | |
24528b0c VS |
3854 | |
3855 | ||
3856 | eval "$ac_cv_use_filesystem" | |
3857 | if test "$no_cache" != 1; then | |
3858 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
3859 | fi | |
3860 | ||
3861 | if test "$wxUSE_FILESYSTEM" = yes; then | |
698dcdb6 | 3862 | echo "$ac_t""yes" 1>&6 |
24528b0c | 3863 | else |
698dcdb6 | 3864 | echo "$ac_t""no" 1>&6 |
24528b0c | 3865 | fi |
698dcdb6 | 3866 | |
24528b0c | 3867 | |
698dcdb6 | 3868 | echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6 |
b1f5d087 | 3869 | echo "configure:3870: checking for --enable-fs_inet" >&5 |
10f2d63a VZ |
3870 | no_cache=0 |
3871 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
3872 | if test "${enable_fs_inet+set}" = set; then | |
3873 | enableval="$enable_fs_inet" | |
698dcdb6 | 3874 | |
10f2d63a VZ |
3875 | if test "$enableval" = yes; then |
3876 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
3877 | else | |
3878 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
3879 | fi | |
698dcdb6 | 3880 | |
10f2d63a | 3881 | else |
698dcdb6 | 3882 | |
10f2d63a VZ |
3883 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` |
3884 | if test "x$LINE" != x ; then | |
3885 | eval "DEFAULT_$LINE" | |
3886 | else | |
3887 | no_cache=1 | |
3888 | fi | |
3889 | ||
3890 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
698dcdb6 VZ |
3891 | |
3892 | fi | |
10f2d63a VZ |
3893 | |
3894 | ||
3895 | eval "$ac_cv_use_fs_inet" | |
3896 | if test "$no_cache" != 1; then | |
3897 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
3898 | fi | |
3899 | ||
3900 | if test "$wxUSE_FS_INET" = yes; then | |
698dcdb6 | 3901 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3902 | else |
698dcdb6 | 3903 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3904 | fi |
698dcdb6 | 3905 | |
10f2d63a | 3906 | |
698dcdb6 | 3907 | echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6 |
b1f5d087 | 3908 | echo "configure:3909: checking for --enable-fs_zip" >&5 |
10f2d63a VZ |
3909 | no_cache=0 |
3910 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
3911 | if test "${enable_fs_zip+set}" = set; then | |
3912 | enableval="$enable_fs_zip" | |
698dcdb6 | 3913 | |
10f2d63a VZ |
3914 | if test "$enableval" = yes; then |
3915 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
3916 | else | |
3917 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
3918 | fi | |
698dcdb6 | 3919 | |
10f2d63a | 3920 | else |
698dcdb6 | 3921 | |
10f2d63a VZ |
3922 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` |
3923 | if test "x$LINE" != x ; then | |
3924 | eval "DEFAULT_$LINE" | |
3925 | else | |
3926 | no_cache=1 | |
3927 | fi | |
3928 | ||
3929 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
698dcdb6 VZ |
3930 | |
3931 | fi | |
10f2d63a VZ |
3932 | |
3933 | ||
3934 | eval "$ac_cv_use_fs_zip" | |
3935 | if test "$no_cache" != 1; then | |
3936 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
3937 | fi | |
3938 | ||
3939 | if test "$wxUSE_FS_ZIP" = yes; then | |
698dcdb6 | 3940 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3941 | else |
698dcdb6 | 3942 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3943 | fi |
698dcdb6 | 3944 | |
10f2d63a | 3945 | |
698dcdb6 | 3946 | echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6 |
b1f5d087 | 3947 | echo "configure:3948: checking for --enable-zipstream" >&5 |
10f2d63a VZ |
3948 | no_cache=0 |
3949 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
3950 | if test "${enable_zipstream+set}" = set; then | |
3951 | enableval="$enable_zipstream" | |
698dcdb6 | 3952 | |
10f2d63a VZ |
3953 | if test "$enableval" = yes; then |
3954 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
3955 | else | |
3956 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
3957 | fi | |
698dcdb6 | 3958 | |
10f2d63a | 3959 | else |
698dcdb6 | 3960 | |
10f2d63a VZ |
3961 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` |
3962 | if test "x$LINE" != x ; then | |
3963 | eval "DEFAULT_$LINE" | |
3964 | else | |
3965 | no_cache=1 | |
3966 | fi | |
3967 | ||
3968 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
698dcdb6 VZ |
3969 | |
3970 | fi | |
10f2d63a VZ |
3971 | |
3972 | ||
3973 | eval "$ac_cv_use_zipstream" | |
3974 | if test "$no_cache" != 1; then | |
3975 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
3976 | fi | |
3977 | ||
3978 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
698dcdb6 | 3979 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3980 | else |
698dcdb6 | 3981 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3982 | fi |
698dcdb6 | 3983 | |
10f2d63a | 3984 | |
698dcdb6 VZ |
3985 | |
3986 | echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6 | |
b1f5d087 | 3987 | echo "configure:3988: checking for --enable-catch_segvs" >&5 |
eb4efbdc VZ |
3988 | no_cache=0 |
3989 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
3990 | if test "${enable_catch_segvs+set}" = set; then | |
3991 | enableval="$enable_catch_segvs" | |
698dcdb6 | 3992 | |
eb4efbdc VZ |
3993 | if test "$enableval" = yes; then |
3994 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
3995 | else | |
3996 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
3997 | fi | |
698dcdb6 | 3998 | |
eb4efbdc | 3999 | else |
698dcdb6 | 4000 | |
eb4efbdc VZ |
4001 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
4002 | if test "x$LINE" != x ; then | |
4003 | eval "DEFAULT_$LINE" | |
4004 | else | |
4005 | no_cache=1 | |
4006 | fi | |
4007 | ||
4008 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
698dcdb6 VZ |
4009 | |
4010 | fi | |
eb4efbdc VZ |
4011 | |
4012 | ||
4013 | eval "$ac_cv_use_catch_segvs" | |
4014 | if test "$no_cache" != 1; then | |
4015 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
4016 | fi | |
4017 | ||
4018 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
698dcdb6 | 4019 | echo "$ac_t""yes" 1>&6 |
eb4efbdc | 4020 | else |
698dcdb6 | 4021 | echo "$ac_t""no" 1>&6 |
eb4efbdc | 4022 | fi |
698dcdb6 | 4023 | |
eb4efbdc | 4024 | |
698dcdb6 | 4025 | echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6 |
b1f5d087 | 4026 | echo "configure:4027: checking for --enable-snglinst" >&5 |
4f3c5f06 VZ |
4027 | no_cache=0 |
4028 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
4029 | if test "${enable_snglinst+set}" = set; then | |
4030 | enableval="$enable_snglinst" | |
698dcdb6 | 4031 | |
4f3c5f06 VZ |
4032 | if test "$enableval" = yes; then |
4033 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
4034 | else | |
4035 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
4036 | fi | |
698dcdb6 | 4037 | |
4f3c5f06 | 4038 | else |
698dcdb6 | 4039 | |
4f3c5f06 VZ |
4040 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` |
4041 | if test "x$LINE" != x ; then | |
4042 | eval "DEFAULT_$LINE" | |
4043 | else | |
4044 | no_cache=1 | |
4045 | fi | |
4046 | ||
4047 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
698dcdb6 VZ |
4048 | |
4049 | fi | |
4f3c5f06 VZ |
4050 | |
4051 | ||
4052 | eval "$ac_cv_use_snglinst" | |
4053 | if test "$no_cache" != 1; then | |
4054 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
4055 | fi | |
4056 | ||
4057 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
698dcdb6 | 4058 | echo "$ac_t""yes" 1>&6 |
4f3c5f06 | 4059 | else |
698dcdb6 | 4060 | echo "$ac_t""no" 1>&6 |
4f3c5f06 | 4061 | fi |
698dcdb6 VZ |
4062 | |
4063 | ||
eb4efbdc | 4064 | |
1e6feb95 | 4065 | echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6 |
b1f5d087 | 4066 | echo "configure:4067: checking for --enable-mimetype" >&5 |
1e6feb95 VZ |
4067 | no_cache=0 |
4068 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
4069 | if test "${enable_mimetype+set}" = set; then | |
4070 | enableval="$enable_mimetype" | |
4071 | ||
4072 | if test "$enableval" = yes; then | |
4073 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
4074 | else | |
4075 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
4076 | fi | |
4077 | ||
4078 | else | |
4079 | ||
4080 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
4081 | if test "x$LINE" != x ; then | |
4082 | eval "DEFAULT_$LINE" | |
4083 | else | |
4084 | no_cache=1 | |
4085 | fi | |
4086 | ||
4087 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
4088 | ||
4089 | fi | |
4090 | ||
4091 | ||
4092 | eval "$ac_cv_use_mimetype" | |
4093 | if test "$no_cache" != 1; then | |
4094 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
4095 | fi | |
4096 | ||
4097 | if test "$wxUSE_MIMETYPE" = yes; then | |
4098 | echo "$ac_t""yes" 1>&6 | |
4099 | else | |
4100 | echo "$ac_t""no" 1>&6 | |
4101 | fi | |
4102 | ||
4103 | ||
4104 | ||
698dcdb6 VZ |
4105 | |
4106 | echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6 | |
b1f5d087 | 4107 | echo "configure:4108: checking for --enable-threads" >&5 |
10f2d63a VZ |
4108 | no_cache=0 |
4109 | # Check whether --enable-threads or --disable-threads was given. | |
4110 | if test "${enable_threads+set}" = set; then | |
4111 | enableval="$enable_threads" | |
698dcdb6 | 4112 | |
10f2d63a VZ |
4113 | if test "$enableval" = yes; then |
4114 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
4115 | else | |
4116 | ac_cv_use_threads='wxUSE_THREADS=no' | |
4117 | fi | |
698dcdb6 | 4118 | |
10f2d63a | 4119 | else |
698dcdb6 | 4120 | |
10f2d63a VZ |
4121 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` |
4122 | if test "x$LINE" != x ; then | |
4123 | eval "DEFAULT_$LINE" | |
4124 | else | |
4125 | no_cache=1 | |
4126 | fi | |
4127 | ||
4128 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
698dcdb6 VZ |
4129 | |
4130 | fi | |
10f2d63a VZ |
4131 | |
4132 | ||
4133 | eval "$ac_cv_use_threads" | |
4134 | if test "$no_cache" != 1; then | |
4135 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
4136 | fi | |
4137 | ||
4138 | if test "$wxUSE_THREADS" = yes; then | |
698dcdb6 | 4139 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4140 | else |
698dcdb6 | 4141 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4142 | fi |
698dcdb6 | 4143 | |
10f2d63a | 4144 | |
698dcdb6 | 4145 | echo $ac_n "checking for --enable-serial""... $ac_c" 1>&6 |
b1f5d087 | 4146 | echo "configure:4147: checking for --enable-serial" >&5 |
10f2d63a VZ |
4147 | no_cache=0 |
4148 | # Check whether --enable-serial or --disable-serial was given. | |
4149 | if test "${enable_serial+set}" = set; then | |
4150 | enableval="$enable_serial" | |
698dcdb6 | 4151 | |
10f2d63a VZ |
4152 | if test "$enableval" = yes; then |
4153 | ac_cv_use_serial='wxUSE_SERIAL=yes' | |
4154 | else | |
4155 | ac_cv_use_serial='wxUSE_SERIAL=no' | |
4156 | fi | |
698dcdb6 | 4157 | |
10f2d63a | 4158 | else |
698dcdb6 | 4159 | |
10f2d63a VZ |
4160 | LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}` |
4161 | if test "x$LINE" != x ; then | |
4162 | eval "DEFAULT_$LINE" | |
4163 | else | |
4164 | no_cache=1 | |
4165 | fi | |
4166 | ||
4167 | ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL | |
698dcdb6 VZ |
4168 | |
4169 | fi | |
10f2d63a VZ |
4170 | |
4171 | ||
4172 | eval "$ac_cv_use_serial" | |
4173 | if test "$no_cache" != 1; then | |
4174 | echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp | |
4175 | fi | |
4176 | ||
4177 | if test "$wxUSE_SERIAL" = yes; then | |
698dcdb6 | 4178 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4179 | else |
698dcdb6 | 4180 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4181 | fi |
698dcdb6 | 4182 | |
10f2d63a | 4183 | |
b12915c1 VZ |
4184 | if test "$wxUSE_GUI" = "yes"; then |
4185 | ||
698dcdb6 VZ |
4186 | |
4187 | ||
4188 | echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6 | |
b1f5d087 | 4189 | echo "configure:4190: checking for --enable-docview" >&5 |
10f2d63a VZ |
4190 | no_cache=0 |
4191 | # Check whether --enable-docview or --disable-docview was given. | |
4192 | if test "${enable_docview+set}" = set; then | |
4193 | enableval="$enable_docview" | |
698dcdb6 | 4194 | |
10f2d63a VZ |
4195 | if test "$enableval" = yes; then |
4196 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
4197 | else | |
4198 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
4199 | fi | |
698dcdb6 | 4200 | |
10f2d63a | 4201 | else |
698dcdb6 | 4202 | |
10f2d63a VZ |
4203 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` |
4204 | if test "x$LINE" != x ; then | |
4205 | eval "DEFAULT_$LINE" | |
4206 | else | |
4207 | no_cache=1 | |
4208 | fi | |
4209 | ||
4210 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
698dcdb6 VZ |
4211 | |
4212 | fi | |
10f2d63a VZ |
4213 | |
4214 | ||
4215 | eval "$ac_cv_use_docview" | |
4216 | if test "$no_cache" != 1; then | |
4217 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
4218 | fi | |
4219 | ||
4220 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
698dcdb6 | 4221 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4222 | else |
698dcdb6 | 4223 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4224 | fi |
698dcdb6 | 4225 | |
10f2d63a | 4226 | |
698dcdb6 | 4227 | echo $ac_n "checking for --enable-help""... $ac_c" 1>&6 |
b1f5d087 | 4228 | echo "configure:4229: checking for --enable-help" >&5 |
10f2d63a VZ |
4229 | no_cache=0 |
4230 | # Check whether --enable-help or --disable-help was given. | |
4231 | if test "${enable_help+set}" = set; then | |
4232 | enableval="$enable_help" | |
698dcdb6 | 4233 | |
10f2d63a VZ |
4234 | if test "$enableval" = yes; then |
4235 | ac_cv_use_help='wxUSE_HELP=yes' | |
4236 | else | |
4237 | ac_cv_use_help='wxUSE_HELP=no' | |
4238 | fi | |
698dcdb6 | 4239 | |
10f2d63a | 4240 | else |
698dcdb6 | 4241 | |
10f2d63a VZ |
4242 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` |
4243 | if test "x$LINE" != x ; then | |
4244 | eval "DEFAULT_$LINE" | |
4245 | else | |
4246 | no_cache=1 | |
4247 | fi | |
4248 | ||
4249 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
698dcdb6 VZ |
4250 | |
4251 | fi | |
10f2d63a VZ |
4252 | |
4253 | ||
4254 | eval "$ac_cv_use_help" | |
4255 | if test "$no_cache" != 1; then | |
4256 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
4257 | fi | |
4258 | ||
4259 | if test "$wxUSE_HELP" = yes; then | |
698dcdb6 | 4260 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4261 | else |
698dcdb6 | 4262 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4263 | fi |
698dcdb6 | 4264 | |
10f2d63a | 4265 | |
698dcdb6 | 4266 | echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6 |
b1f5d087 | 4267 | echo "configure:4268: checking for --enable-constraints" >&5 |
10f2d63a VZ |
4268 | no_cache=0 |
4269 | # Check whether --enable-constraints or --disable-constraints was given. | |
4270 | if test "${enable_constraints+set}" = set; then | |
4271 | enableval="$enable_constraints" | |
698dcdb6 | 4272 | |
10f2d63a VZ |
4273 | if test "$enableval" = yes; then |
4274 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
4275 | else | |
4276 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
4277 | fi | |
698dcdb6 | 4278 | |
10f2d63a | 4279 | else |
698dcdb6 | 4280 | |
10f2d63a VZ |
4281 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` |
4282 | if test "x$LINE" != x ; then | |
4283 | eval "DEFAULT_$LINE" | |
4284 | else | |
4285 | no_cache=1 | |
4286 | fi | |
4287 | ||
4288 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
698dcdb6 VZ |
4289 | |
4290 | fi | |
10f2d63a VZ |
4291 | |
4292 | ||
4293 | eval "$ac_cv_use_constraints" | |
4294 | if test "$no_cache" != 1; then | |
4295 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
4296 | fi | |
4297 | ||
4298 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
698dcdb6 | 4299 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4300 | else |
698dcdb6 | 4301 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4302 | fi |
698dcdb6 | 4303 | |
10f2d63a | 4304 | |
698dcdb6 | 4305 | echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6 |
b1f5d087 | 4306 | echo "configure:4307: checking for --enable-printarch" >&5 |
10f2d63a VZ |
4307 | no_cache=0 |
4308 | # Check whether --enable-printarch or --disable-printarch was given. | |
4309 | if test "${enable_printarch+set}" = set; then | |
4310 | enableval="$enable_printarch" | |
698dcdb6 | 4311 | |
10f2d63a VZ |
4312 | if test "$enableval" = yes; then |
4313 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
4314 | else | |
4315 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
4316 | fi | |
698dcdb6 | 4317 | |
10f2d63a | 4318 | else |
698dcdb6 | 4319 | |
10f2d63a VZ |
4320 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` |
4321 | if test "x$LINE" != x ; then | |
4322 | eval "DEFAULT_$LINE" | |
4323 | else | |
4324 | no_cache=1 | |
4325 | fi | |
4326 | ||
4327 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
698dcdb6 VZ |
4328 | |
4329 | fi | |
10f2d63a VZ |
4330 | |
4331 | ||
4332 | eval "$ac_cv_use_printarch" | |
4333 | if test "$no_cache" != 1; then | |
4334 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
4335 | fi | |
4336 | ||
4337 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
698dcdb6 | 4338 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4339 | else |
698dcdb6 | 4340 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4341 | fi |
698dcdb6 | 4342 | |
10f2d63a | 4343 | |
698dcdb6 | 4344 | echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6 |
b1f5d087 | 4345 | echo "configure:4346: checking for --enable-mdi" >&5 |
10f2d63a VZ |
4346 | no_cache=0 |
4347 | # Check whether --enable-mdi or --disable-mdi was given. | |
4348 | if test "${enable_mdi+set}" = set; then | |
4349 | enableval="$enable_mdi" | |
698dcdb6 | 4350 | |
10f2d63a VZ |
4351 | if test "$enableval" = yes; then |
4352 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
4353 | else | |
4354 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
4355 | fi | |
698dcdb6 | 4356 | |
10f2d63a | 4357 | else |
698dcdb6 | 4358 | |
10f2d63a VZ |
4359 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` |
4360 | if test "x$LINE" != x ; then | |
4361 | eval "DEFAULT_$LINE" | |
4362 | else | |
4363 | no_cache=1 | |
4364 | fi | |
4365 | ||
4366 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
698dcdb6 VZ |
4367 | |
4368 | fi | |
10f2d63a VZ |
4369 | |
4370 | ||
4371 | eval "$ac_cv_use_mdi" | |
4372 | if test "$no_cache" != 1; then | |
4373 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
4374 | fi | |
4375 | ||
4376 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
698dcdb6 | 4377 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4378 | else |
698dcdb6 | 4379 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4380 | fi |
698dcdb6 VZ |
4381 | |
4382 | ||
1e6feb95 | 4383 | echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6 |
b1f5d087 | 4384 | echo "configure:4385: checking for --enable-loggui" >&5 |
1e6feb95 VZ |
4385 | no_cache=0 |
4386 | # Check whether --enable-loggui or --disable-loggui was given. | |
4387 | if test "${enable_loggui+set}" = set; then | |
4388 | enableval="$enable_loggui" | |
4389 | ||
4390 | if test "$enableval" = yes; then | |
4391 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
4392 | else | |
4393 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
4394 | fi | |
4395 | ||
4396 | else | |
4397 | ||
4398 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
4399 | if test "x$LINE" != x ; then | |
4400 | eval "DEFAULT_$LINE" | |
4401 | else | |
4402 | no_cache=1 | |
4403 | fi | |
4404 | ||
4405 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
4406 | ||
4407 | fi | |
4408 | ||
4409 | ||
4410 | eval "$ac_cv_use_loggui" | |
4411 | if test "$no_cache" != 1; then | |
4412 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
4413 | fi | |
4414 | ||
4415 | if test "$wxUSE_LOGGUI" = yes; then | |
4416 | echo "$ac_t""yes" 1>&6 | |
4417 | else | |
4418 | echo "$ac_t""no" 1>&6 | |
4419 | fi | |
4420 | ||
4421 | ||
4422 | echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6 | |
b1f5d087 | 4423 | echo "configure:4424: checking for --enable-logwin" >&5 |
1e6feb95 VZ |
4424 | no_cache=0 |
4425 | # Check whether --enable-logwin or --disable-logwin was given. | |
4426 | if test "${enable_logwin+set}" = set; then | |
4427 | enableval="$enable_logwin" | |
4428 | ||
4429 | if test "$enableval" = yes; then | |
4430 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
4431 | else | |
4432 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
4433 | fi | |
4434 | ||
4435 | else | |
4436 | ||
4437 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` | |
4438 | if test "x$LINE" != x ; then | |
4439 | eval "DEFAULT_$LINE" | |
4440 | else | |
4441 | no_cache=1 | |
4442 | fi | |
4443 | ||
4444 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
4445 | ||
4446 | fi | |
4447 | ||
4448 | ||
4449 | eval "$ac_cv_use_logwin" | |
4450 | if test "$no_cache" != 1; then | |
4451 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
4452 | fi | |
4453 | ||
4454 | if test "$wxUSE_LOGWINDOW" = yes; then | |
4455 | echo "$ac_t""yes" 1>&6 | |
4456 | else | |
4457 | echo "$ac_t""no" 1>&6 | |
4458 | fi | |
4459 | ||
4460 | ||
10f2d63a | 4461 | |
698dcdb6 | 4462 | echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6 |
b1f5d087 | 4463 | echo "configure:4464: checking for --enable-postscript" >&5 |
10f2d63a VZ |
4464 | no_cache=0 |
4465 | # Check whether --enable-postscript or --disable-postscript was given. | |
4466 | if test "${enable_postscript+set}" = set; then | |
4467 | enableval="$enable_postscript" | |
698dcdb6 | 4468 | |
10f2d63a VZ |
4469 | if test "$enableval" = yes; then |
4470 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
4471 | else | |
4472 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
4473 | fi | |
698dcdb6 | 4474 | |
10f2d63a | 4475 | else |
698dcdb6 | 4476 | |
10f2d63a VZ |
4477 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` |
4478 | if test "x$LINE" != x ; then | |
4479 | eval "DEFAULT_$LINE" | |
4480 | else | |
4481 | no_cache=1 | |
4482 | fi | |
4483 | ||
4484 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
698dcdb6 VZ |
4485 | |
4486 | fi | |
10f2d63a VZ |
4487 | |
4488 | ||
4489 | eval "$ac_cv_use_postscript" | |
4490 | if test "$no_cache" != 1; then | |
4491 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
4492 | fi | |
4493 | ||
4494 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
698dcdb6 | 4495 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4496 | else |
698dcdb6 | 4497 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4498 | fi |
698dcdb6 VZ |
4499 | |
4500 | ||
4501 | ||
10f2d63a | 4502 | |
1e6feb95 | 4503 | |
698dcdb6 | 4504 | echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6 |
b1f5d087 | 4505 | echo "configure:4506: checking for --enable-prologio" >&5 |
10f2d63a VZ |
4506 | no_cache=0 |
4507 | # Check whether --enable-prologio or --disable-prologio was given. | |
4508 | if test "${enable_prologio+set}" = set; then | |
4509 | enableval="$enable_prologio" | |
698dcdb6 | 4510 | |
10f2d63a VZ |
4511 | if test "$enableval" = yes; then |
4512 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
4513 | else | |
4514 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
4515 | fi | |
698dcdb6 | 4516 | |
10f2d63a | 4517 | else |
698dcdb6 | 4518 | |
10f2d63a VZ |
4519 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` |
4520 | if test "x$LINE" != x ; then | |
4521 | eval "DEFAULT_$LINE" | |
4522 | else | |
4523 | no_cache=1 | |
4524 | fi | |
4525 | ||
4526 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
698dcdb6 VZ |
4527 | |
4528 | fi | |
10f2d63a VZ |
4529 | |
4530 | ||
4531 | eval "$ac_cv_use_prologio" | |
4532 | if test "$no_cache" != 1; then | |
4533 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
4534 | fi | |
4535 | ||
4536 | if test "$wxUSE_PROLOGIO" = yes; then | |
698dcdb6 | 4537 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4538 | else |
698dcdb6 | 4539 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4540 | fi |
698dcdb6 | 4541 | |
10f2d63a | 4542 | |
698dcdb6 | 4543 | echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6 |
b1f5d087 | 4544 | echo "configure:4545: checking for --enable-resources" >&5 |
10f2d63a VZ |
4545 | no_cache=0 |
4546 | # Check whether --enable-resources or --disable-resources was given. | |
4547 | if test "${enable_resources+set}" = set; then | |
4548 | enableval="$enable_resources" | |
698dcdb6 | 4549 | |
10f2d63a VZ |
4550 | if test "$enableval" = yes; then |
4551 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
4552 | else | |
4553 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
4554 | fi | |
698dcdb6 | 4555 | |
10f2d63a | 4556 | else |
698dcdb6 | 4557 | |
10f2d63a VZ |
4558 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` |
4559 | if test "x$LINE" != x ; then | |
4560 | eval "DEFAULT_$LINE" | |
4561 | else | |
4562 | no_cache=1 | |
4563 | fi | |
4564 | ||
4565 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
698dcdb6 VZ |
4566 | |
4567 | fi | |
10f2d63a VZ |
4568 | |
4569 | ||
4570 | eval "$ac_cv_use_resources" | |
4571 | if test "$no_cache" != 1; then | |
4572 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
4573 | fi | |
4574 | ||
4575 | if test "$wxUSE_RESOURCES" = yes; then | |
698dcdb6 | 4576 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4577 | else |
698dcdb6 | 4578 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4579 | fi |
698dcdb6 | 4580 | |
10f2d63a | 4581 | |
698dcdb6 VZ |
4582 | |
4583 | echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6 | |
b1f5d087 | 4584 | echo "configure:4585: checking for --enable-xresources" >&5 |
10f2d63a VZ |
4585 | no_cache=0 |
4586 | # Check whether --enable-xresources or --disable-xresources was given. | |
4587 | if test "${enable_xresources+set}" = set; then | |
4588 | enableval="$enable_xresources" | |
698dcdb6 | 4589 | |
10f2d63a VZ |
4590 | if test "$enableval" = yes; then |
4591 | ac_cv_use_xresources='wxUSE_X_RESOURCES=yes' | |
4592 | else | |
4593 | ac_cv_use_xresources='wxUSE_X_RESOURCES=no' | |
4594 | fi | |
698dcdb6 | 4595 | |
10f2d63a | 4596 | else |
698dcdb6 | 4597 | |
10f2d63a VZ |
4598 | LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}` |
4599 | if test "x$LINE" != x ; then | |
4600 | eval "DEFAULT_$LINE" | |
4601 | else | |
4602 | no_cache=1 | |
4603 | fi | |
4604 | ||
4605 | ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES | |
698dcdb6 VZ |
4606 | |
4607 | fi | |
10f2d63a VZ |
4608 | |
4609 | ||
4610 | eval "$ac_cv_use_xresources" | |
4611 | if test "$no_cache" != 1; then | |
4612 | echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp | |
4613 | fi | |
4614 | ||
4615 | if test "$wxUSE_X_RESOURCES" = yes; then | |
698dcdb6 | 4616 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4617 | else |
698dcdb6 | 4618 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4619 | fi |
698dcdb6 VZ |
4620 | |
4621 | ||
10f2d63a | 4622 | |
698dcdb6 VZ |
4623 | |
4624 | echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6 | |
b1f5d087 | 4625 | echo "configure:4626: checking for --enable-clipboard" >&5 |
10f2d63a VZ |
4626 | no_cache=0 |
4627 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
4628 | if test "${enable_clipboard+set}" = set; then | |
4629 | enableval="$enable_clipboard" | |
698dcdb6 | 4630 | |
10f2d63a VZ |
4631 | if test "$enableval" = yes; then |
4632 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
4633 | else | |
4634 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
4635 | fi | |
698dcdb6 | 4636 | |
10f2d63a | 4637 | else |
698dcdb6 | 4638 | |
10f2d63a VZ |
4639 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` |
4640 | if test "x$LINE" != x ; then | |
4641 | eval "DEFAULT_$LINE" | |
4642 | else | |
4643 | no_cache=1 | |
4644 | fi | |
4645 | ||
4646 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
698dcdb6 VZ |
4647 | |
4648 | fi | |
10f2d63a VZ |
4649 | |
4650 | ||
4651 | eval "$ac_cv_use_clipboard" | |
4652 | if test "$no_cache" != 1; then | |
4653 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
4654 | fi | |
4655 | ||
4656 | if test "$wxUSE_CLIPBOARD" = yes; then | |
698dcdb6 | 4657 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4658 | else |
698dcdb6 | 4659 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4660 | fi |
698dcdb6 | 4661 | |
10f2d63a | 4662 | |
698dcdb6 | 4663 | echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6 |
b1f5d087 | 4664 | echo "configure:4665: checking for --enable-dnd" >&5 |
10f2d63a VZ |
4665 | no_cache=0 |
4666 | # Check whether --enable-dnd or --disable-dnd was given. | |
4667 | if test "${enable_dnd+set}" = set; then | |
4668 | enableval="$enable_dnd" | |
698dcdb6 | 4669 | |
10f2d63a VZ |
4670 | if test "$enableval" = yes; then |
4671 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
4672 | else | |
4673 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
4674 | fi | |
698dcdb6 | 4675 | |
10f2d63a | 4676 | else |
698dcdb6 | 4677 | |
10f2d63a VZ |
4678 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` |
4679 | if test "x$LINE" != x ; then | |
4680 | eval "DEFAULT_$LINE" | |
4681 | else | |
4682 | no_cache=1 | |
4683 | fi | |
4684 | ||
4685 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
698dcdb6 VZ |
4686 | |
4687 | fi | |
10f2d63a VZ |
4688 | |
4689 | ||
4690 | eval "$ac_cv_use_dnd" | |
4691 | if test "$no_cache" != 1; then | |
4692 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
4693 | fi | |
4694 | ||
4695 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
698dcdb6 | 4696 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4697 | else |
698dcdb6 | 4698 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4699 | fi |
698dcdb6 | 4700 | |
10f2d63a | 4701 | |
698dcdb6 | 4702 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
b1f5d087 | 4703 | echo "configure:4704: checking for --enable-metafile" >&5 |
b64f0a5f RL |
4704 | no_cache=0 |
4705 | # Check whether --enable-metafile or --disable-metafile was given. | |
4706 | if test "${enable_metafile+set}" = set; then | |
4707 | enableval="$enable_metafile" | |
698dcdb6 | 4708 | |
b64f0a5f RL |
4709 | if test "$enableval" = yes; then |
4710 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
4711 | else | |
4712 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
4713 | fi | |
698dcdb6 | 4714 | |
b64f0a5f | 4715 | else |
698dcdb6 | 4716 | |
b64f0a5f RL |
4717 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
4718 | if test "x$LINE" != x ; then | |
4719 | eval "DEFAULT_$LINE" | |
4720 | else | |
4721 | no_cache=1 | |
4722 | fi | |
4723 | ||
4724 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
698dcdb6 VZ |
4725 | |
4726 | fi | |
b64f0a5f RL |
4727 | |
4728 | ||
4729 | eval "$ac_cv_use_metafile" | |
4730 | if test "$no_cache" != 1; then | |
4731 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
4732 | fi | |
4733 | ||
4734 | if test "$wxUSE_METAFILE" = yes; then | |
698dcdb6 | 4735 | echo "$ac_t""yes" 1>&6 |
b64f0a5f | 4736 | else |
698dcdb6 | 4737 | echo "$ac_t""no" 1>&6 |
b64f0a5f | 4738 | fi |
698dcdb6 VZ |
4739 | |
4740 | ||
10f2d63a | 4741 | |
698dcdb6 | 4742 | echo $ac_n "checking for --enable-wxtree""... $ac_c" 1>&6 |
b1f5d087 | 4743 | echo "configure:4744: checking for --enable-wxtree" >&5 |
10f2d63a VZ |
4744 | no_cache=0 |
4745 | # Check whether --enable-wxtree or --disable-wxtree was given. | |
4746 | if test "${enable_wxtree+set}" = set; then | |
4747 | enableval="$enable_wxtree" | |
698dcdb6 | 4748 | |
10f2d63a VZ |
4749 | if test "$enableval" = yes; then |
4750 | ac_cv_use_wxtree='wxUSE_WXTREE=yes' | |
4751 | else | |
4752 | ac_cv_use_wxtree='wxUSE_WXTREE=no' | |
4753 | fi | |
698dcdb6 | 4754 | |
10f2d63a | 4755 | else |
698dcdb6 | 4756 | |
10f2d63a VZ |
4757 | LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}` |
4758 | if test "x$LINE" != x ; then | |
4759 | eval "DEFAULT_$LINE" | |
4760 | else | |
4761 | no_cache=1 | |
4762 | fi | |
4763 | ||
4764 | ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE | |
698dcdb6 VZ |
4765 | |
4766 | fi | |
10f2d63a VZ |
4767 | |
4768 | ||
4769 | eval "$ac_cv_use_wxtree" | |
4770 | if test "$no_cache" != 1; then | |
4771 | echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp | |
4772 | fi | |
4773 | ||
4774 | if test "$wxUSE_WXTREE" = yes; then | |
698dcdb6 | 4775 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4776 | else |
698dcdb6 | 4777 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4778 | fi |
698dcdb6 | 4779 | |
10f2d63a | 4780 | |
698dcdb6 VZ |
4781 | |
4782 | ||
4783 | echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6 | |
b1f5d087 | 4784 | echo "configure:4785: checking for --enable-controls" >&5 |
10f2d63a VZ |
4785 | no_cache=0 |
4786 | # Check whether --enable-controls or --disable-controls was given. | |
4787 | if test "${enable_controls+set}" = set; then | |
4788 | enableval="$enable_controls" | |
698dcdb6 | 4789 | |
10f2d63a VZ |
4790 | if test "$enableval" = yes; then |
4791 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
4792 | else | |
4793 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
4794 | fi | |
698dcdb6 | 4795 | |
10f2d63a | 4796 | else |
698dcdb6 | 4797 | |
10f2d63a VZ |
4798 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` |
4799 | if test "x$LINE" != x ; then | |
4800 | eval "DEFAULT_$LINE" | |
4801 | else | |
4802 | no_cache=1 | |
4803 | fi | |
4804 | ||
4805 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
698dcdb6 VZ |
4806 | |
4807 | fi | |
10f2d63a VZ |
4808 | |
4809 | ||
4810 | eval "$ac_cv_use_controls" | |
4811 | if test "$no_cache" != 1; then | |
4812 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
4813 | fi | |
4814 | ||
4815 | if test "$wxUSE_CONTROLS" = yes; then | |
698dcdb6 | 4816 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4817 | else |
698dcdb6 | 4818 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4819 | fi |
698dcdb6 | 4820 | |
10f2d63a VZ |
4821 | |
4822 | if test "$wxUSE_CONTROLS" = "yes"; then | |
4823 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 VZ |
4824 | DEFAULT_wxUSE_BMPBUTTON=yes |
4825 | DEFAULT_wxUSE_BUTTON=yes | |
4826 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
4827 | DEFAULT_wxUSE_CARET=yes |
4828 | DEFAULT_wxUSE_COMBOBOX=yes | |
10f2d63a VZ |
4829 | DEFAULT_wxUSE_CHECKBOX=yes |
4830 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
4831 | DEFAULT_wxUSE_CHOICE=yes | |
4832 | DEFAULT_wxUSE_GAUGE=yes | |
4833 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 4834 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
4835 | DEFAULT_wxUSE_IMAGLIST=yes |
4836 | DEFAULT_wxUSE_LISTBOX=yes | |
4837 | DEFAULT_wxUSE_LISTCTRL=yes | |
4838 | DEFAULT_wxUSE_NOTEBOOK=yes | |
4839 | DEFAULT_wxUSE_RADIOBOX=yes | |
4840 | DEFAULT_wxUSE_RADIOBTN=yes | |
4841 | DEFAULT_wxUSE_SASH=yes | |
4842 | DEFAULT_wxUSE_SCROLLBAR=yes | |
4843 | DEFAULT_wxUSE_SLIDER=yes | |
4844 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 4845 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
4846 | DEFAULT_wxUSE_SPLITTER=yes |
4847 | DEFAULT_wxUSE_STATBMP=yes | |
4848 | DEFAULT_wxUSE_STATBOX=yes | |
4849 | DEFAULT_wxUSE_STATLINE=yes | |
4850 | DEFAULT_wxUSE_STATUSBAR=yes | |
4851 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
1db8dc4a | 4852 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 4853 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
4854 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
4855 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
4856 | DEFAULT_wxUSE_TOOLTIPS=yes |
4857 | DEFAULT_wxUSE_TREECTRL=yes | |
4858 | elif test "$wxUSE_CONTROLS" = "no"; then | |
4859 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 VZ |
4860 | DEFAULT_wxUSE_BMPBUTTON=no |
4861 | DEFAULT_wxUSE_BUTTON=no | |
4862 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
4863 | DEFAULT_wxUSE_CARET=no |
4864 | DEFAULT_wxUSE_COMBOBOX=no | |
10f2d63a VZ |
4865 | DEFAULT_wxUSE_CHECKBOX=no |
4866 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
4867 | DEFAULT_wxUSE_CHOICE=no | |
4868 | DEFAULT_wxUSE_GAUGE=no | |
4869 | DEFAULT_wxUSE_GRID=no | |
4870 | DEFAULT_wxUSE_NEW_GRID=no | |
4871 | DEFAULT_wxUSE_IMAGLIST=no | |
4872 | DEFAULT_wxUSE_LISTBOX=no | |
4873 | DEFAULT_wxUSE_LISTCTRL=no | |
4874 | DEFAULT_wxUSE_NOTEBOOK=no | |
4875 | DEFAULT_wxUSE_RADIOBOX=no | |
4876 | DEFAULT_wxUSE_RADIOBTN=no | |
4877 | DEFAULT_wxUSE_SASH=no | |
4878 | DEFAULT_wxUSE_SCROLLBAR=no | |
4879 | DEFAULT_wxUSE_SLIDER=no | |
4880 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 4881 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
4882 | DEFAULT_wxUSE_SPLITTER=no |
4883 | DEFAULT_wxUSE_STATBMP=no | |
4884 | DEFAULT_wxUSE_STATBOX=no | |
4885 | DEFAULT_wxUSE_STATLINE=no | |
4886 | DEFAULT_wxUSE_STATUSBAR=no | |
4887 | DEFAULT_wxUSE_TAB_DIALOG=no | |
1db8dc4a | 4888 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 4889 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
4890 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
4891 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
4892 | DEFAULT_wxUSE_TOOLTIPS=no |
4893 | DEFAULT_wxUSE_TREECTRL=no | |
4894 | fi | |
4895 | ||
698dcdb6 VZ |
4896 | |
4897 | echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6 | |
b1f5d087 | 4898 | echo "configure:4899: checking for --enable-accel" >&5 |
10f2d63a VZ |
4899 | no_cache=0 |
4900 | # Check whether --enable-accel or --disable-accel was given. | |
4901 | if test "${enable_accel+set}" = set; then | |
4902 | enableval="$enable_accel" | |
698dcdb6 | 4903 | |
10f2d63a VZ |
4904 | if test "$enableval" = yes; then |
4905 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
4906 | else | |
4907 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
4908 | fi | |
698dcdb6 | 4909 | |
10f2d63a | 4910 | else |
698dcdb6 | 4911 | |
10f2d63a VZ |
4912 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` |
4913 | if test "x$LINE" != x ; then | |
4914 | eval "DEFAULT_$LINE" | |
4915 | else | |
4916 | no_cache=1 | |
4917 | fi | |
4918 | ||
4919 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
698dcdb6 VZ |
4920 | |
4921 | fi | |
10f2d63a VZ |
4922 | |
4923 | ||
4924 | eval "$ac_cv_use_accel" | |
4925 | if test "$no_cache" != 1; then | |
4926 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
4927 | fi | |
4928 | ||
4929 | if test "$wxUSE_ACCEL" = yes; then | |
698dcdb6 | 4930 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4931 | else |
698dcdb6 | 4932 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4933 | fi |
698dcdb6 | 4934 | |
10f2d63a | 4935 | |
1e6feb95 | 4936 | echo $ac_n "checking for --enable-button""... $ac_c" 1>&6 |
b1f5d087 | 4937 | echo "configure:4938: checking for --enable-button" >&5 |
10f2d63a | 4938 | no_cache=0 |
1e6feb95 VZ |
4939 | # Check whether --enable-button or --disable-button was given. |
4940 | if test "${enable_button+set}" = set; then | |
4941 | enableval="$enable_button" | |
698dcdb6 | 4942 | |
10f2d63a | 4943 | if test "$enableval" = yes; then |
1e6feb95 | 4944 | ac_cv_use_button='wxUSE_BUTTON=yes' |
10f2d63a | 4945 | else |
1e6feb95 | 4946 | ac_cv_use_button='wxUSE_BUTTON=no' |
10f2d63a | 4947 | fi |
698dcdb6 | 4948 | |
10f2d63a | 4949 | else |
698dcdb6 | 4950 | |
1e6feb95 | 4951 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` |
10f2d63a VZ |
4952 | if test "x$LINE" != x ; then |
4953 | eval "DEFAULT_$LINE" | |
4954 | else | |
4955 | no_cache=1 | |
4956 | fi | |
4957 | ||
1e6feb95 | 4958 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON |
698dcdb6 VZ |
4959 | |
4960 | fi | |
10f2d63a VZ |
4961 | |
4962 | ||
1e6feb95 | 4963 | eval "$ac_cv_use_button" |
10f2d63a | 4964 | if test "$no_cache" != 1; then |
1e6feb95 | 4965 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4966 | fi |
4967 | ||
1e6feb95 | 4968 | if test "$wxUSE_BUTTON" = yes; then |
698dcdb6 | 4969 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4970 | else |
698dcdb6 | 4971 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4972 | fi |
698dcdb6 | 4973 | |
10f2d63a | 4974 | |
698dcdb6 | 4975 | echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6 |
b1f5d087 | 4976 | echo "configure:4977: checking for --enable-bmpbutton" >&5 |
10f2d63a VZ |
4977 | no_cache=0 |
4978 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
4979 | if test "${enable_bmpbutton+set}" = set; then | |
4980 | enableval="$enable_bmpbutton" | |
698dcdb6 | 4981 | |
10f2d63a VZ |
4982 | if test "$enableval" = yes; then |
4983 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
4984 | else | |
4985 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
4986 | fi | |
698dcdb6 | 4987 | |
10f2d63a | 4988 | else |
698dcdb6 | 4989 | |
10f2d63a VZ |
4990 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` |
4991 | if test "x$LINE" != x ; then | |
4992 | eval "DEFAULT_$LINE" | |
4993 | else | |
4994 | no_cache=1 | |
4995 | fi | |
4996 | ||
4997 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
698dcdb6 VZ |
4998 | |
4999 | fi | |
10f2d63a VZ |
5000 | |
5001 | ||
5002 | eval "$ac_cv_use_bmpbutton" | |
5003 | if test "$no_cache" != 1; then | |
5004 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
5005 | fi | |
5006 | ||
5007 | if test "$wxUSE_BMPBUTTON" = yes; then | |
698dcdb6 | 5008 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5009 | else |
698dcdb6 | 5010 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5011 | fi |
698dcdb6 | 5012 | |
10f2d63a | 5013 | |
1e6feb95 | 5014 | echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6 |
b1f5d087 | 5015 | echo "configure:5016: checking for --enable-calendar" >&5 |
1e6feb95 VZ |
5016 | no_cache=0 |
5017 | # Check whether --enable-calendar or --disable-calendar was given. | |
5018 | if test "${enable_calendar+set}" = set; then | |
5019 | enableval="$enable_calendar" | |
5020 | ||
5021 | if test "$enableval" = yes; then | |
5022 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
5023 | else | |
5024 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
5025 | fi | |
5026 | ||
5027 | else | |
5028 | ||
5029 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
5030 | if test "x$LINE" != x ; then | |
5031 | eval "DEFAULT_$LINE" | |
5032 | else | |
5033 | no_cache=1 | |
5034 | fi | |
5035 | ||
5036 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
5037 | ||
5038 | fi | |
5039 | ||
5040 | ||
5041 | eval "$ac_cv_use_calendar" | |
5042 | if test "$no_cache" != 1; then | |
5043 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
5044 | fi | |
5045 | ||
5046 | if test "$wxUSE_CALCTRL" = yes; then | |
5047 | echo "$ac_t""yes" 1>&6 | |
5048 | else | |
5049 | echo "$ac_t""no" 1>&6 | |
5050 | fi | |
5051 | ||
5052 | ||
5053 | echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6 | |
b1f5d087 | 5054 | echo "configure:5055: checking for --enable-caret" >&5 |
1e6feb95 VZ |
5055 | no_cache=0 |
5056 | # Check whether --enable-caret or --disable-caret was given. | |
5057 | if test "${enable_caret+set}" = set; then | |
5058 | enableval="$enable_caret" | |
5059 | ||
5060 | if test "$enableval" = yes; then | |
5061 | ac_cv_use_caret='wxUSE_CARET=yes' | |
5062 | else | |
5063 | ac_cv_use_caret='wxUSE_CARET=no' | |
5064 | fi | |
5065 | ||
5066 | else | |
5067 | ||
5068 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
5069 | if test "x$LINE" != x ; then | |
5070 | eval "DEFAULT_$LINE" | |
5071 | else | |
5072 | no_cache=1 | |
5073 | fi | |
5074 | ||
5075 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
5076 | ||
5077 | fi | |
5078 | ||
5079 | ||
5080 | eval "$ac_cv_use_caret" | |
5081 | if test "$no_cache" != 1; then | |
5082 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
5083 | fi | |
5084 | ||
5085 | if test "$wxUSE_CARET" = yes; then | |
5086 | echo "$ac_t""yes" 1>&6 | |
5087 | else | |
5088 | echo "$ac_t""no" 1>&6 | |
5089 | fi | |
5090 | ||
5091 | ||
698dcdb6 | 5092 | echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6 |
b1f5d087 | 5093 | echo "configure:5094: checking for --enable-checkbox" >&5 |
10f2d63a VZ |
5094 | no_cache=0 |
5095 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
5096 | if test "${enable_checkbox+set}" = set; then | |
5097 | enableval="$enable_checkbox" | |
698dcdb6 | 5098 | |
10f2d63a VZ |
5099 | if test "$enableval" = yes; then |
5100 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
5101 | else | |
5102 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
5103 | fi | |
698dcdb6 | 5104 | |
10f2d63a | 5105 | else |
698dcdb6 | 5106 | |
10f2d63a VZ |
5107 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` |
5108 | if test "x$LINE" != x ; then | |
5109 | eval "DEFAULT_$LINE" | |
5110 | else | |
5111 | no_cache=1 | |
5112 | fi | |
5113 | ||
5114 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
698dcdb6 VZ |
5115 | |
5116 | fi | |
10f2d63a VZ |
5117 | |
5118 | ||
5119 | eval "$ac_cv_use_checkbox" | |
5120 | if test "$no_cache" != 1; then | |
5121 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
5122 | fi | |
5123 | ||
5124 | if test "$wxUSE_CHECKBOX" = yes; then | |
698dcdb6 | 5125 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5126 | else |
698dcdb6 | 5127 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5128 | fi |
698dcdb6 | 5129 | |
10f2d63a | 5130 | |
698dcdb6 | 5131 | echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6 |
b1f5d087 | 5132 | echo "configure:5133: checking for --enable-checklst" >&5 |
10f2d63a VZ |
5133 | no_cache=0 |
5134 | # Check whether --enable-checklst or --disable-checklst was given. | |
5135 | if test "${enable_checklst+set}" = set; then | |
5136 | enableval="$enable_checklst" | |
698dcdb6 | 5137 | |
10f2d63a VZ |
5138 | if test "$enableval" = yes; then |
5139 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
5140 | else | |
5141 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
5142 | fi | |
698dcdb6 | 5143 | |
10f2d63a | 5144 | else |
698dcdb6 | 5145 | |
10f2d63a VZ |
5146 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` |
5147 | if test "x$LINE" != x ; then | |
5148 | eval "DEFAULT_$LINE" | |
5149 | else | |
5150 | no_cache=1 | |
5151 | fi | |
5152 | ||
5153 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
698dcdb6 VZ |
5154 | |
5155 | fi | |
10f2d63a VZ |
5156 | |
5157 | ||
5158 | eval "$ac_cv_use_checklst" | |
5159 | if test "$no_cache" != 1; then | |
5160 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
5161 | fi | |
5162 | ||
5163 | if test "$wxUSE_CHECKLST" = yes; then | |
698dcdb6 | 5164 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5165 | else |
698dcdb6 | 5166 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5167 | fi |
698dcdb6 | 5168 | |
10f2d63a | 5169 | |
698dcdb6 | 5170 | echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6 |
b1f5d087 | 5171 | echo "configure:5172: checking for --enable-choice" >&5 |
10f2d63a VZ |
5172 | no_cache=0 |
5173 | # Check whether --enable-choice or --disable-choice was given. | |
5174 | if test "${enable_choice+set}" = set; then | |
5175 | enableval="$enable_choice" | |
698dcdb6 | 5176 | |
10f2d63a VZ |
5177 | if test "$enableval" = yes; then |
5178 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
5179 | else | |
5180 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
5181 | fi | |
698dcdb6 | 5182 | |
10f2d63a | 5183 | else |
698dcdb6 | 5184 | |
10f2d63a VZ |
5185 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` |
5186 | if test "x$LINE" != x ; then | |
5187 | eval "DEFAULT_$LINE" | |
5188 | else | |
5189 | no_cache=1 | |
5190 | fi | |
5191 | ||
5192 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
698dcdb6 VZ |
5193 | |
5194 | fi | |
10f2d63a VZ |
5195 | |
5196 | ||
5197 | eval "$ac_cv_use_choice" | |
5198 | if test "$no_cache" != 1; then | |
5199 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
5200 | fi | |
5201 | ||
5202 | if test "$wxUSE_CHOICE" = yes; then | |
698dcdb6 | 5203 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5204 | else |
698dcdb6 | 5205 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5206 | fi |
698dcdb6 | 5207 | |
10f2d63a | 5208 | |
698dcdb6 | 5209 | echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6 |
b1f5d087 | 5210 | echo "configure:5211: checking for --enable-combobox" >&5 |
10f2d63a VZ |
5211 | no_cache=0 |
5212 | # Check whether --enable-combobox or --disable-combobox was given. | |
5213 | if test "${enable_combobox+set}" = set; then | |
5214 | enableval="$enable_combobox" | |
698dcdb6 | 5215 | |
10f2d63a VZ |
5216 | if test "$enableval" = yes; then |
5217 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
5218 | else | |
5219 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
5220 | fi | |
698dcdb6 | 5221 | |
10f2d63a | 5222 | else |
698dcdb6 | 5223 | |
10f2d63a VZ |
5224 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` |
5225 | if test "x$LINE" != x ; then | |
5226 | eval "DEFAULT_$LINE" | |
5227 | else | |
5228 | no_cache=1 | |
5229 | fi | |
5230 | ||
5231 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
698dcdb6 VZ |
5232 | |
5233 | fi | |
10f2d63a VZ |
5234 | |
5235 | ||
5236 | eval "$ac_cv_use_combobox" | |
5237 | if test "$no_cache" != 1; then | |
5238 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
5239 | fi | |
5240 | ||
5241 | if test "$wxUSE_COMBOBOX" = yes; then | |
698dcdb6 | 5242 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5243 | else |
698dcdb6 | 5244 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5245 | fi |
698dcdb6 | 5246 | |
10f2d63a | 5247 | |
698dcdb6 | 5248 | echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6 |
b1f5d087 | 5249 | echo "configure:5250: checking for --enable-gauge" >&5 |
10f2d63a VZ |
5250 | no_cache=0 |
5251 | # Check whether --enable-gauge or --disable-gauge was given. | |
5252 | if test "${enable_gauge+set}" = set; then | |
5253 | enableval="$enable_gauge" | |
698dcdb6 | 5254 | |
10f2d63a VZ |
5255 | if test "$enableval" = yes; then |
5256 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
5257 | else | |
5258 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
5259 | fi | |
698dcdb6 | 5260 | |
10f2d63a | 5261 | else |
698dcdb6 | 5262 | |
10f2d63a VZ |
5263 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` |
5264 | if test "x$LINE" != x ; then | |
5265 | eval "DEFAULT_$LINE" | |
5266 | else | |
5267 | no_cache=1 | |
5268 | fi | |
5269 | ||
5270 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
698dcdb6 VZ |
5271 | |
5272 | fi | |
10f2d63a VZ |
5273 | |
5274 | ||
5275 | eval "$ac_cv_use_gauge" | |
5276 | if test "$no_cache" != 1; then | |
5277 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
5278 | fi | |
5279 | ||
5280 | if test "$wxUSE_GAUGE" = yes; then | |
698dcdb6 | 5281 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5282 | else |
698dcdb6 | 5283 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5284 | fi |
698dcdb6 | 5285 | |
10f2d63a | 5286 | |
698dcdb6 | 5287 | echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6 |
b1f5d087 | 5288 | echo "configure:5289: checking for --enable-grid" >&5 |
10f2d63a VZ |
5289 | no_cache=0 |
5290 | # Check whether --enable-grid or --disable-grid was given. | |
5291 | if test "${enable_grid+set}" = set; then | |
5292 | enableval="$enable_grid" | |
698dcdb6 | 5293 | |
10f2d63a VZ |
5294 | if test "$enableval" = yes; then |
5295 | ac_cv_use_grid='wxUSE_GRID=yes' | |
5296 | else | |
5297 | ac_cv_use_grid='wxUSE_GRID=no' | |
5298 | fi | |
698dcdb6 | 5299 | |
10f2d63a | 5300 | else |
698dcdb6 | 5301 | |
10f2d63a VZ |
5302 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` |
5303 | if test "x$LINE" != x ; then | |
5304 | eval "DEFAULT_$LINE" | |
5305 | else | |
5306 | no_cache=1 | |
5307 | fi | |
5308 | ||
5309 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
698dcdb6 VZ |
5310 | |
5311 | fi | |
10f2d63a VZ |
5312 | |
5313 | ||
5314 | eval "$ac_cv_use_grid" | |
5315 | if test "$no_cache" != 1; then | |
5316 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
5317 | fi | |
5318 | ||
5319 | if test "$wxUSE_GRID" = yes; then | |
698dcdb6 | 5320 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5321 | else |
698dcdb6 | 5322 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5323 | fi |
698dcdb6 | 5324 | |
10f2d63a | 5325 | |
698dcdb6 | 5326 | echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6 |
b1f5d087 | 5327 | echo "configure:5328: checking for --enable-newgrid" >&5 |
10f2d63a VZ |
5328 | no_cache=0 |
5329 | # Check whether --enable-newgrid or --disable-newgrid was given. | |
5330 | if test "${enable_newgrid+set}" = set; then | |
5331 | enableval="$enable_newgrid" | |
698dcdb6 | 5332 | |
10f2d63a VZ |
5333 | if test "$enableval" = yes; then |
5334 | ac_cv_use_newgrid='wxUSE_NEW_GRID=yes' | |
5335 | else | |
5336 | ac_cv_use_newgrid='wxUSE_NEW_GRID=no' | |
5337 | fi | |
698dcdb6 | 5338 | |
10f2d63a | 5339 | else |
698dcdb6 | 5340 | |
10f2d63a VZ |
5341 | LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}` |
5342 | if test "x$LINE" != x ; then | |
5343 | eval "DEFAULT_$LINE" | |
5344 | else | |
5345 | no_cache=1 | |
5346 | fi | |
5347 | ||
5348 | ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID | |
698dcdb6 VZ |
5349 | |
5350 | fi | |
10f2d63a VZ |
5351 | |
5352 | ||
5353 | eval "$ac_cv_use_newgrid" | |
5354 | if test "$no_cache" != 1; then | |
5355 | echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp | |
5356 | fi | |
5357 | ||
5358 | if test "$wxUSE_NEW_GRID" = yes; then | |
698dcdb6 | 5359 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5360 | else |
698dcdb6 | 5361 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5362 | fi |
698dcdb6 | 5363 | |
10f2d63a | 5364 | |
698dcdb6 | 5365 | echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6 |
b1f5d087 | 5366 | echo "configure:5367: checking for --enable-imaglist" >&5 |
10f2d63a VZ |
5367 | no_cache=0 |
5368 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
5369 | if test "${enable_imaglist+set}" = set; then | |
5370 | enableval="$enable_imaglist" | |
698dcdb6 | 5371 | |
10f2d63a VZ |
5372 | if test "$enableval" = yes; then |
5373 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
5374 | else | |
5375 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
5376 | fi | |
698dcdb6 | 5377 | |
10f2d63a | 5378 | else |
698dcdb6 | 5379 | |
10f2d63a VZ |
5380 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` |
5381 | if test "x$LINE" != x ; then | |
5382 | eval "DEFAULT_$LINE" | |
5383 | else | |
5384 | no_cache=1 | |
5385 | fi | |
5386 | ||
5387 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
698dcdb6 VZ |
5388 | |
5389 | fi | |
10f2d63a VZ |
5390 | |
5391 | ||
5392 | eval "$ac_cv_use_imaglist" | |
5393 | if test "$no_cache" != 1; then | |
5394 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
5395 | fi | |
5396 | ||
5397 | if test "$wxUSE_IMAGLIST" = yes; then | |
698dcdb6 | 5398 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5399 | else |
698dcdb6 | 5400 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5401 | fi |
698dcdb6 | 5402 | |
10f2d63a | 5403 | |
698dcdb6 | 5404 | echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6 |
b1f5d087 | 5405 | echo "configure:5406: checking for --enable-listbox" >&5 |
10f2d63a VZ |
5406 | no_cache=0 |
5407 | # Check whether --enable-listbox or --disable-listbox was given. | |
5408 | if test "${enable_listbox+set}" = set; then | |
5409 | enableval="$enable_listbox" | |
698dcdb6 | 5410 | |
10f2d63a VZ |
5411 | if test "$enableval" = yes; then |
5412 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
5413 | else | |
5414 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
5415 | fi | |
698dcdb6 | 5416 | |
10f2d63a | 5417 | else |
698dcdb6 | 5418 | |
10f2d63a VZ |
5419 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` |
5420 | if test "x$LINE" != x ; then | |
5421 | eval "DEFAULT_$LINE" | |
5422 | else | |
5423 | no_cache=1 | |
5424 | fi | |
5425 | ||
5426 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
698dcdb6 VZ |
5427 | |
5428 | fi | |
10f2d63a VZ |
5429 | |
5430 | ||
5431 | eval "$ac_cv_use_listbox" | |
5432 | if test "$no_cache" != 1; then | |
5433 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
5434 | fi | |
5435 | ||
5436 | if test "$wxUSE_LISTBOX" = yes; then | |
698dcdb6 | 5437 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5438 | else |
698dcdb6 | 5439 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5440 | fi |
698dcdb6 | 5441 | |
10f2d63a | 5442 | |
698dcdb6 | 5443 | echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6 |
b1f5d087 | 5444 | echo "configure:5445: checking for --enable-listctrl" >&5 |
10f2d63a VZ |
5445 | no_cache=0 |
5446 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
5447 | if test "${enable_listctrl+set}" = set; then | |
5448 | enableval="$enable_listctrl" | |
698dcdb6 | 5449 | |
10f2d63a VZ |
5450 | if test "$enableval" = yes; then |
5451 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
5452 | else | |
5453 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
5454 | fi | |
698dcdb6 | 5455 | |
10f2d63a | 5456 | else |
698dcdb6 | 5457 | |
10f2d63a VZ |
5458 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` |
5459 | if test "x$LINE" != x ; then | |
5460 | eval "DEFAULT_$LINE" | |
5461 | else | |
5462 | no_cache=1 | |
5463 | fi | |
5464 | ||
5465 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
698dcdb6 VZ |
5466 | |
5467 | fi | |
10f2d63a VZ |
5468 | |
5469 | ||
5470 | eval "$ac_cv_use_listctrl" | |
5471 | if test "$no_cache" != 1; then | |
5472 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
5473 | fi | |
5474 | ||
5475 | if test "$wxUSE_LISTCTRL" = yes; then | |
698dcdb6 | 5476 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5477 | else |
698dcdb6 | 5478 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5479 | fi |
698dcdb6 | 5480 | |
10f2d63a | 5481 | |
698dcdb6 | 5482 | echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6 |
b1f5d087 | 5483 | echo "configure:5484: checking for --enable-notebook" >&5 |
10f2d63a VZ |
5484 | no_cache=0 |
5485 | # Check whether --enable-notebook or --disable-notebook was given. | |
5486 | if test "${enable_notebook+set}" = set; then | |
5487 | enableval="$enable_notebook" | |
698dcdb6 | 5488 | |
10f2d63a VZ |
5489 | if test "$enableval" = yes; then |
5490 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
5491 | else | |
5492 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
5493 | fi | |
698dcdb6 | 5494 | |
10f2d63a | 5495 | else |
698dcdb6 | 5496 | |
10f2d63a VZ |
5497 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` |
5498 | if test "x$LINE" != x ; then | |
5499 | eval "DEFAULT_$LINE" | |
5500 | else | |
5501 | no_cache=1 | |
5502 | fi | |
5503 | ||
5504 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
698dcdb6 VZ |
5505 | |
5506 | fi | |
10f2d63a VZ |
5507 | |
5508 | ||
5509 | eval "$ac_cv_use_notebook" | |
5510 | if test "$no_cache" != 1; then | |
5511 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
5512 | fi | |
5513 | ||
5514 | if test "$wxUSE_NOTEBOOK" = yes; then | |
698dcdb6 | 5515 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5516 | else |
698dcdb6 | 5517 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5518 | fi |
698dcdb6 | 5519 | |
10f2d63a | 5520 | |
698dcdb6 | 5521 | echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6 |
b1f5d087 | 5522 | echo "configure:5523: checking for --enable-radiobox" >&5 |
10f2d63a VZ |
5523 | no_cache=0 |
5524 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
5525 | if test "${enable_radiobox+set}" = set; then | |
5526 | enableval="$enable_radiobox" | |
698dcdb6 | 5527 | |
10f2d63a VZ |
5528 | if test "$enableval" = yes; then |
5529 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
5530 | else | |
5531 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
5532 | fi | |
698dcdb6 | 5533 | |
10f2d63a | 5534 | else |
698dcdb6 | 5535 | |
10f2d63a VZ |
5536 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` |
5537 | if test "x$LINE" != x ; then | |
5538 | eval "DEFAULT_$LINE" | |
5539 | else | |
5540 | no_cache=1 | |
5541 | fi | |
5542 | ||
5543 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
698dcdb6 VZ |
5544 | |
5545 | fi | |
10f2d63a VZ |
5546 | |
5547 | ||
5548 | eval "$ac_cv_use_radiobox" | |
5549 | if test "$no_cache" != 1; then | |
5550 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
5551 | fi | |
5552 | ||
5553 | if test "$wxUSE_RADIOBOX" = yes; then | |
698dcdb6 | 5554 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5555 | else |
698dcdb6 | 5556 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5557 | fi |
698dcdb6 | 5558 | |
10f2d63a | 5559 | |
698dcdb6 | 5560 | echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6 |
b1f5d087 | 5561 | echo "configure:5562: checking for --enable-radiobtn" >&5 |
10f2d63a VZ |
5562 | no_cache=0 |
5563 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
5564 | if test "${enable_radiobtn+set}" = set; then | |
5565 | enableval="$enable_radiobtn" | |
698dcdb6 | 5566 | |
10f2d63a VZ |
5567 | if test "$enableval" = yes; then |
5568 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
5569 | else | |
5570 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
5571 | fi | |
698dcdb6 | 5572 | |
10f2d63a | 5573 | else |
698dcdb6 | 5574 | |
10f2d63a VZ |
5575 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` |
5576 | if test "x$LINE" != x ; then | |
5577 | eval "DEFAULT_$LINE" | |
5578 | else | |
5579 | no_cache=1 | |
5580 | fi | |
5581 | ||
5582 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
698dcdb6 VZ |
5583 | |
5584 | fi | |
10f2d63a VZ |
5585 | |
5586 | ||
5587 | eval "$ac_cv_use_radiobtn" | |
5588 | if test "$no_cache" != 1; then | |
5589 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
5590 | fi | |
5591 | ||
5592 | if test "$wxUSE_RADIOBTN" = yes; then | |
698dcdb6 | 5593 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5594 | else |
698dcdb6 | 5595 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5596 | fi |
698dcdb6 | 5597 | |
10f2d63a | 5598 | |
698dcdb6 | 5599 | echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6 |
b1f5d087 | 5600 | echo "configure:5601: checking for --enable-sash" >&5 |
10f2d63a VZ |
5601 | no_cache=0 |
5602 | # Check whether --enable-sash or --disable-sash was given. | |
5603 | if test "${enable_sash+set}" = set; then | |
5604 | enableval="$enable_sash" | |
698dcdb6 | 5605 | |
10f2d63a VZ |
5606 | if test "$enableval" = yes; then |
5607 | ac_cv_use_sash='wxUSE_SASH=yes' | |
5608 | else | |
5609 | ac_cv_use_sash='wxUSE_SASH=no' | |
5610 | fi | |
698dcdb6 | 5611 | |
10f2d63a | 5612 | else |
698dcdb6 | 5613 | |
10f2d63a VZ |
5614 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` |
5615 | if test "x$LINE" != x ; then | |
5616 | eval "DEFAULT_$LINE" | |
5617 | else | |
5618 | no_cache=1 | |
5619 | fi | |
5620 | ||
5621 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
698dcdb6 VZ |
5622 | |
5623 | fi | |
10f2d63a VZ |
5624 | |
5625 | ||
5626 | eval "$ac_cv_use_sash" | |
5627 | if test "$no_cache" != 1; then | |
5628 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
5629 | fi | |
5630 | ||
5631 | if test "$wxUSE_SASH" = yes; then | |
698dcdb6 | 5632 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5633 | else |
698dcdb6 | 5634 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5635 | fi |
698dcdb6 | 5636 | |
10f2d63a | 5637 | |
698dcdb6 | 5638 | echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6 |
b1f5d087 | 5639 | echo "configure:5640: checking for --enable-scrollbar" >&5 |
10f2d63a VZ |
5640 | no_cache=0 |
5641 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
5642 | if test "${enable_scrollbar+set}" = set; then | |
5643 | enableval="$enable_scrollbar" | |
698dcdb6 | 5644 | |
10f2d63a VZ |
5645 | if test "$enableval" = yes; then |
5646 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
5647 | else | |
5648 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
5649 | fi | |
698dcdb6 | 5650 | |
10f2d63a | 5651 | else |
698dcdb6 | 5652 | |
10f2d63a VZ |
5653 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` |
5654 | if test "x$LINE" != x ; then | |
5655 | eval "DEFAULT_$LINE" | |
5656 | else | |
5657 | no_cache=1 | |
5658 | fi | |
5659 | ||
5660 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
698dcdb6 VZ |
5661 | |
5662 | fi | |
10f2d63a VZ |
5663 | |
5664 | ||
5665 | eval "$ac_cv_use_scrollbar" | |
5666 | if test "$no_cache" != 1; then | |
5667 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
5668 | fi | |
5669 | ||
5670 | if test "$wxUSE_SCROLLBAR" = yes; then | |
698dcdb6 | 5671 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5672 | else |
698dcdb6 | 5673 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5674 | fi |
698dcdb6 | 5675 | |
10f2d63a | 5676 | |
698dcdb6 | 5677 | echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6 |
b1f5d087 | 5678 | echo "configure:5679: checking for --enable-slider" >&5 |
10f2d63a VZ |
5679 | no_cache=0 |
5680 | # Check whether --enable-slider or --disable-slider was given. | |
5681 | if test "${enable_slider+set}" = set; then | |
5682 | enableval="$enable_slider" | |
698dcdb6 | 5683 | |
10f2d63a VZ |
5684 | if test "$enableval" = yes; then |
5685 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
5686 | else | |
5687 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
5688 | fi | |
698dcdb6 | 5689 | |
10f2d63a | 5690 | else |
698dcdb6 | 5691 | |
10f2d63a VZ |
5692 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` |
5693 | if test "x$LINE" != x ; then | |
5694 | eval "DEFAULT_$LINE" | |
5695 | else | |
5696 | no_cache=1 | |
5697 | fi | |
5698 | ||
5699 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
698dcdb6 VZ |
5700 | |
5701 | fi | |
10f2d63a VZ |
5702 | |
5703 | ||
5704 | eval "$ac_cv_use_slider" | |
5705 | if test "$no_cache" != 1; then | |
5706 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
5707 | fi | |
5708 | ||
5709 | if test "$wxUSE_SLIDER" = yes; then | |
698dcdb6 | 5710 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5711 | else |
698dcdb6 | 5712 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5713 | fi |
698dcdb6 | 5714 | |
10f2d63a | 5715 | |
698dcdb6 | 5716 | echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6 |
b1f5d087 | 5717 | echo "configure:5718: checking for --enable-spinbtn" >&5 |
10f2d63a VZ |
5718 | no_cache=0 |
5719 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
5720 | if test "${enable_spinbtn+set}" = set; then | |
5721 | enableval="$enable_spinbtn" | |
698dcdb6 | 5722 | |
10f2d63a VZ |
5723 | if test "$enableval" = yes; then |
5724 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
5725 | else | |
5726 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
5727 | fi | |
698dcdb6 | 5728 | |
10f2d63a | 5729 | else |
698dcdb6 | 5730 | |
10f2d63a VZ |
5731 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` |
5732 | if test "x$LINE" != x ; then | |
5733 | eval "DEFAULT_$LINE" | |
5734 | else | |
5735 | no_cache=1 | |
5736 | fi | |
5737 | ||
5738 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
698dcdb6 VZ |
5739 | |
5740 | fi | |
10f2d63a VZ |
5741 | |
5742 | ||
5743 | eval "$ac_cv_use_spinbtn" | |
5744 | if test "$no_cache" != 1; then | |
5745 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
5746 | fi | |
5747 | ||
5748 | if test "$wxUSE_SPINBTN" = yes; then | |
698dcdb6 | 5749 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5750 | else |
698dcdb6 | 5751 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5752 | fi |
698dcdb6 | 5753 | |
10f2d63a | 5754 | |
698dcdb6 | 5755 | echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6 |
b1f5d087 | 5756 | echo "configure:5757: checking for --enable-spinctrl" >&5 |
56cfaa52 RR |
5757 | no_cache=0 |
5758 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
5759 | if test "${enable_spinctrl+set}" = set; then | |
5760 | enableval="$enable_spinctrl" | |
698dcdb6 | 5761 | |
56cfaa52 RR |
5762 | if test "$enableval" = yes; then |
5763 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
5764 | else | |
5765 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
5766 | fi | |
698dcdb6 | 5767 | |
56cfaa52 | 5768 | else |
698dcdb6 | 5769 | |
56cfaa52 RR |
5770 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` |
5771 | if test "x$LINE" != x ; then | |
5772 | eval "DEFAULT_$LINE" | |
5773 | else | |
5774 | no_cache=1 | |
5775 | fi | |
5776 | ||
5777 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
698dcdb6 VZ |
5778 | |
5779 | fi | |
56cfaa52 RR |
5780 | |
5781 | ||
5782 | eval "$ac_cv_use_spinctrl" | |
5783 | if test "$no_cache" != 1; then | |
5784 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
5785 | fi | |
5786 | ||
5787 | if test "$wxUSE_SPINCTRL" = yes; then | |
698dcdb6 | 5788 | echo "$ac_t""yes" 1>&6 |
56cfaa52 | 5789 | else |
698dcdb6 | 5790 | echo "$ac_t""no" 1>&6 |
56cfaa52 | 5791 | fi |
698dcdb6 | 5792 | |
56cfaa52 | 5793 | |
698dcdb6 | 5794 | echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6 |
b1f5d087 | 5795 | echo "configure:5796: checking for --enable-splitter" >&5 |
10f2d63a VZ |
5796 | no_cache=0 |
5797 | # Check whether --enable-splitter or --disable-splitter was given. | |
5798 | if test "${enable_splitter+set}" = set; then | |
5799 | enableval="$enable_splitter" | |
698dcdb6 | 5800 | |
10f2d63a VZ |
5801 | if test "$enableval" = yes; then |
5802 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
5803 | else | |
5804 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
5805 | fi | |
698dcdb6 | 5806 | |
10f2d63a | 5807 | else |
698dcdb6 | 5808 | |
10f2d63a VZ |
5809 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` |
5810 | if test "x$LINE" != x ; then | |
5811 | eval "DEFAULT_$LINE" | |
5812 | else | |
5813 | no_cache=1 | |
5814 | fi | |
5815 | ||
5816 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
698dcdb6 VZ |
5817 | |
5818 | fi | |
10f2d63a VZ |
5819 | |
5820 | ||
5821 | eval "$ac_cv_use_splitter" | |
5822 | if test "$no_cache" != 1; then | |
5823 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
5824 | fi | |
5825 | ||
5826 | if test "$wxUSE_SPLITTER" = yes; then | |
698dcdb6 | 5827 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5828 | else |
698dcdb6 | 5829 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5830 | fi |
698dcdb6 | 5831 | |
10f2d63a | 5832 | |
698dcdb6 | 5833 | echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6 |
b1f5d087 | 5834 | echo "configure:5835: checking for --enable-statbmp" >&5 |
10f2d63a VZ |
5835 | no_cache=0 |
5836 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
5837 | if test "${enable_statbmp+set}" = set; then | |
5838 | enableval="$enable_statbmp" | |
698dcdb6 | 5839 | |
10f2d63a VZ |
5840 | if test "$enableval" = yes; then |
5841 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
5842 | else | |
5843 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
5844 | fi | |
698dcdb6 | 5845 | |
10f2d63a | 5846 | else |
698dcdb6 | 5847 | |
10f2d63a VZ |
5848 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` |
5849 | if test "x$LINE" != x ; then | |
5850 | eval "DEFAULT_$LINE" | |
5851 | else | |
5852 | no_cache=1 | |
5853 | fi | |
5854 | ||
5855 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
698dcdb6 VZ |
5856 | |
5857 | fi | |
10f2d63a VZ |
5858 | |
5859 | ||
5860 | eval "$ac_cv_use_statbmp" | |
5861 | if test "$no_cache" != 1; then | |
5862 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
5863 | fi | |
5864 | ||
5865 | if test "$wxUSE_STATBMP" = yes; then | |
698dcdb6 | 5866 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5867 | else |
698dcdb6 | 5868 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5869 | fi |
698dcdb6 | 5870 | |
10f2d63a | 5871 | |
698dcdb6 | 5872 | echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6 |
b1f5d087 | 5873 | echo "configure:5874: checking for --enable-statbox" >&5 |
10f2d63a VZ |
5874 | no_cache=0 |
5875 | # Check whether --enable-statbox or --disable-statbox was given. | |
5876 | if test "${enable_statbox+set}" = set; then | |
5877 | enableval="$enable_statbox" | |
698dcdb6 | 5878 | |
10f2d63a VZ |
5879 | if test "$enableval" = yes; then |
5880 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
5881 | else | |
5882 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
5883 | fi | |
698dcdb6 | 5884 | |
10f2d63a | 5885 | else |
698dcdb6 | 5886 | |
10f2d63a VZ |
5887 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` |
5888 | if test "x$LINE" != x ; then | |
5889 | eval "DEFAULT_$LINE" | |
5890 | else | |
5891 | no_cache=1 | |
5892 | fi | |
5893 | ||
5894 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
698dcdb6 VZ |
5895 | |
5896 | fi | |
10f2d63a VZ |
5897 | |
5898 | ||
5899 | eval "$ac_cv_use_statbox" | |
5900 | if test "$no_cache" != 1; then | |
5901 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
5902 | fi | |
5903 | ||
5904 | if test "$wxUSE_STATBOX" = yes; then | |
698dcdb6 | 5905 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5906 | else |
698dcdb6 | 5907 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5908 | fi |
698dcdb6 | 5909 | |
10f2d63a | 5910 | |
698dcdb6 | 5911 | echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6 |
b1f5d087 | 5912 | echo "configure:5913: checking for --enable-statline" >&5 |
10f2d63a VZ |
5913 | no_cache=0 |
5914 | # Check whether --enable-statline or --disable-statline was given. | |
5915 | if test "${enable_statline+set}" = set; then | |
5916 | enableval="$enable_statline" | |
698dcdb6 | 5917 | |
10f2d63a VZ |
5918 | if test "$enableval" = yes; then |
5919 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
5920 | else | |
5921 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
5922 | fi | |
698dcdb6 | 5923 | |
10f2d63a | 5924 | else |
698dcdb6 | 5925 | |
10f2d63a VZ |
5926 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` |
5927 | if test "x$LINE" != x ; then | |
5928 | eval "DEFAULT_$LINE" | |
5929 | else | |
5930 | no_cache=1 | |
5931 | fi | |
5932 | ||
5933 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
698dcdb6 VZ |
5934 | |
5935 | fi | |
10f2d63a VZ |
5936 | |
5937 | ||
5938 | eval "$ac_cv_use_statline" | |
5939 | if test "$no_cache" != 1; then | |
5940 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
5941 | fi | |
5942 | ||
5943 | if test "$wxUSE_STATLINE" = yes; then | |
698dcdb6 | 5944 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5945 | else |
698dcdb6 | 5946 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5947 | fi |
698dcdb6 | 5948 | |
10f2d63a | 5949 | |
1e6feb95 | 5950 | echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6 |
b1f5d087 | 5951 | echo "configure:5952: checking for --enable-stattext" >&5 |
1e6feb95 VZ |
5952 | no_cache=0 |
5953 | # Check whether --enable-stattext or --disable-stattext was given. | |
5954 | if test "${enable_stattext+set}" = set; then | |
5955 | enableval="$enable_stattext" | |
5956 | ||
5957 | if test "$enableval" = yes; then | |
5958 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
5959 | else | |
5960 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
5961 | fi | |
5962 | ||
5963 | else | |
5964 | ||
5965 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
5966 | if test "x$LINE" != x ; then | |
5967 | eval "DEFAULT_$LINE" | |
5968 | else | |
5969 | no_cache=1 | |
5970 | fi | |
5971 | ||
5972 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
5973 | ||
5974 | fi | |
5975 | ||
5976 | ||
5977 | eval "$ac_cv_use_stattext" | |
5978 | if test "$no_cache" != 1; then | |
5979 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
5980 | fi | |
5981 | ||
5982 | if test "$wxUSE_STATTEXT" = yes; then | |
5983 | echo "$ac_t""yes" 1>&6 | |
5984 | else | |
5985 | echo "$ac_t""no" 1>&6 | |
5986 | fi | |
5987 | ||
5988 | ||
698dcdb6 | 5989 | echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6 |
b1f5d087 | 5990 | echo "configure:5991: checking for --enable-statusbar" >&5 |
10f2d63a VZ |
5991 | no_cache=0 |
5992 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
5993 | if test "${enable_statusbar+set}" = set; then | |
5994 | enableval="$enable_statusbar" | |
698dcdb6 | 5995 | |
10f2d63a VZ |
5996 | if test "$enableval" = yes; then |
5997 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
5998 | else | |
5999 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
6000 | fi | |
698dcdb6 | 6001 | |
10f2d63a | 6002 | else |
698dcdb6 | 6003 | |
10f2d63a VZ |
6004 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` |
6005 | if test "x$LINE" != x ; then | |
6006 | eval "DEFAULT_$LINE" | |
6007 | else | |
6008 | no_cache=1 | |
6009 | fi | |
6010 | ||
6011 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
698dcdb6 VZ |
6012 | |
6013 | fi | |
10f2d63a VZ |
6014 | |
6015 | ||
6016 | eval "$ac_cv_use_statusbar" | |
6017 | if test "$no_cache" != 1; then | |
6018 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
6019 | fi | |
6020 | ||
6021 | if test "$wxUSE_STATUSBAR" = yes; then | |
698dcdb6 | 6022 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6023 | else |
698dcdb6 | 6024 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6025 | fi |
698dcdb6 | 6026 | |
10f2d63a | 6027 | |
698dcdb6 | 6028 | echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6 |
b1f5d087 | 6029 | echo "configure:6030: checking for --enable-tabdialog" >&5 |
10f2d63a VZ |
6030 | no_cache=0 |
6031 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
6032 | if test "${enable_tabdialog+set}" = set; then | |
6033 | enableval="$enable_tabdialog" | |
698dcdb6 | 6034 | |
10f2d63a VZ |
6035 | if test "$enableval" = yes; then |
6036 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
6037 | else | |
6038 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
6039 | fi | |
698dcdb6 | 6040 | |
10f2d63a | 6041 | else |
698dcdb6 | 6042 | |
10f2d63a VZ |
6043 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` |
6044 | if test "x$LINE" != x ; then | |
6045 | eval "DEFAULT_$LINE" | |
6046 | else | |
6047 | no_cache=1 | |
6048 | fi | |
6049 | ||
6050 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
698dcdb6 VZ |
6051 | |
6052 | fi | |
10f2d63a VZ |
6053 | |
6054 | ||
6055 | eval "$ac_cv_use_tabdialog" | |
6056 | if test "$no_cache" != 1; then | |
6057 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
6058 | fi | |
6059 | ||
6060 | if test "$wxUSE_TABDIALOG" = yes; then | |
698dcdb6 | 6061 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6062 | else |
698dcdb6 | 6063 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6064 | fi |
698dcdb6 | 6065 | |
10f2d63a | 6066 | |
1e6feb95 | 6067 | echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6 |
b1f5d087 | 6068 | echo "configure:6069: checking for --enable-textctrl" >&5 |
1e6feb95 VZ |
6069 | no_cache=0 |
6070 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
6071 | if test "${enable_textctrl+set}" = set; then | |
6072 | enableval="$enable_textctrl" | |
6073 | ||
6074 | if test "$enableval" = yes; then | |
6075 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
6076 | else | |
6077 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
6078 | fi | |
6079 | ||
6080 | else | |
6081 | ||
6082 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
6083 | if test "x$LINE" != x ; then | |
6084 | eval "DEFAULT_$LINE" | |
6085 | else | |
6086 | no_cache=1 | |
6087 | fi | |
6088 | ||
6089 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
6090 | ||
6091 | fi | |
6092 | ||
6093 | ||
6094 | eval "$ac_cv_use_textctrl" | |
6095 | if test "$no_cache" != 1; then | |
6096 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
6097 | fi | |
6098 | ||
6099 | if test "$wxUSE_TEXTCTRL" = yes; then | |
6100 | echo "$ac_t""yes" 1>&6 | |
6101 | else | |
6102 | echo "$ac_t""no" 1>&6 | |
6103 | fi | |
6104 | ||
6105 | ||
698dcdb6 | 6106 | echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6 |
b1f5d087 | 6107 | echo "configure:6108: checking for --enable-togglebtn" >&5 |
1db8dc4a VZ |
6108 | no_cache=0 |
6109 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
6110 | if test "${enable_togglebtn+set}" = set; then | |
6111 | enableval="$enable_togglebtn" | |
698dcdb6 | 6112 | |
1db8dc4a VZ |
6113 | if test "$enableval" = yes; then |
6114 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
6115 | else | |
6116 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
6117 | fi | |
698dcdb6 | 6118 | |
1db8dc4a | 6119 | else |
698dcdb6 | 6120 | |
1db8dc4a VZ |
6121 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` |
6122 | if test "x$LINE" != x ; then | |
6123 | eval "DEFAULT_$LINE" | |
6124 | else | |
6125 | no_cache=1 | |
6126 | fi | |
6127 | ||
6128 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
698dcdb6 VZ |
6129 | |
6130 | fi | |
1db8dc4a VZ |
6131 | |
6132 | ||
6133 | eval "$ac_cv_use_togglebtn" | |
6134 | if test "$no_cache" != 1; then | |
6135 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
6136 | fi | |
6137 | ||
6138 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
698dcdb6 | 6139 | echo "$ac_t""yes" 1>&6 |
1db8dc4a | 6140 | else |
698dcdb6 | 6141 | echo "$ac_t""no" 1>&6 |
1db8dc4a | 6142 | fi |
698dcdb6 | 6143 | |
1db8dc4a | 6144 | |
698dcdb6 | 6145 | echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6 |
b1f5d087 | 6146 | echo "configure:6147: checking for --enable-toolbar" >&5 |
10f2d63a VZ |
6147 | no_cache=0 |
6148 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
6149 | if test "${enable_toolbar+set}" = set; then | |
6150 | enableval="$enable_toolbar" | |
698dcdb6 | 6151 | |
10f2d63a VZ |
6152 | if test "$enableval" = yes; then |
6153 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
6154 | else | |
6155 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
6156 | fi | |
698dcdb6 | 6157 | |
10f2d63a | 6158 | else |
698dcdb6 | 6159 | |
10f2d63a VZ |
6160 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` |
6161 | if test "x$LINE" != x ; then | |
6162 | eval "DEFAULT_$LINE" | |
6163 | else | |
6164 | no_cache=1 | |
6165 | fi | |
6166 | ||
6167 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
698dcdb6 VZ |
6168 | |
6169 | fi | |
10f2d63a VZ |
6170 | |
6171 | ||
6172 | eval "$ac_cv_use_toolbar" | |
6173 | if test "$no_cache" != 1; then | |
6174 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
6175 | fi | |
6176 | ||
6177 | if test "$wxUSE_TOOLBAR" = yes; then | |
698dcdb6 | 6178 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6179 | else |
698dcdb6 | 6180 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6181 | fi |
698dcdb6 | 6182 | |
10f2d63a | 6183 | |
698dcdb6 | 6184 | echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6 |
b1f5d087 | 6185 | echo "configure:6186: checking for --enable-tbarnative" >&5 |
360d6699 VZ |
6186 | no_cache=0 |
6187 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
6188 | if test "${enable_tbarnative+set}" = set; then | |
6189 | enableval="$enable_tbarnative" | |
698dcdb6 | 6190 | |
360d6699 VZ |
6191 | if test "$enableval" = yes; then |
6192 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
6193 | else | |
6194 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
6195 | fi | |
698dcdb6 | 6196 | |
360d6699 | 6197 | else |
698dcdb6 | 6198 | |
360d6699 VZ |
6199 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` |
6200 | if test "x$LINE" != x ; then | |
6201 | eval "DEFAULT_$LINE" | |
6202 | else | |
6203 | no_cache=1 | |
6204 | fi | |
6205 | ||
6206 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
698dcdb6 VZ |
6207 | |
6208 | fi | |
360d6699 VZ |
6209 | |
6210 | ||
6211 | eval "$ac_cv_use_tbarnative" | |
6212 | if test "$no_cache" != 1; then | |
6213 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
6214 | fi | |
6215 | ||
6216 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
698dcdb6 | 6217 | echo "$ac_t""yes" 1>&6 |
360d6699 | 6218 | else |
698dcdb6 | 6219 | echo "$ac_t""no" 1>&6 |
360d6699 | 6220 | fi |
698dcdb6 | 6221 | |
360d6699 | 6222 | |
698dcdb6 | 6223 | echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6 |
b1f5d087 | 6224 | echo "configure:6225: checking for --enable-tbarsmpl" >&5 |
360d6699 VZ |
6225 | no_cache=0 |
6226 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
6227 | if test "${enable_tbarsmpl+set}" = set; then | |
6228 | enableval="$enable_tbarsmpl" | |
698dcdb6 | 6229 | |
360d6699 VZ |
6230 | if test "$enableval" = yes; then |
6231 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
6232 | else | |
6233 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
6234 | fi | |
698dcdb6 | 6235 | |
360d6699 | 6236 | else |
698dcdb6 | 6237 | |
360d6699 VZ |
6238 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` |
6239 | if test "x$LINE" != x ; then | |
6240 | eval "DEFAULT_$LINE" | |
6241 | else | |
6242 | no_cache=1 | |
6243 | fi | |
6244 | ||
6245 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
698dcdb6 VZ |
6246 | |
6247 | fi | |
360d6699 VZ |
6248 | |
6249 | ||
6250 | eval "$ac_cv_use_tbarsmpl" | |
6251 | if test "$no_cache" != 1; then | |
6252 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
6253 | fi | |
6254 | ||
6255 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
698dcdb6 | 6256 | echo "$ac_t""yes" 1>&6 |
360d6699 | 6257 | else |
698dcdb6 | 6258 | echo "$ac_t""no" 1>&6 |
360d6699 | 6259 | fi |
698dcdb6 | 6260 | |
360d6699 | 6261 | |
698dcdb6 | 6262 | echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6 |
b1f5d087 | 6263 | echo "configure:6264: checking for --enable-treectrl" >&5 |
10f2d63a VZ |
6264 | no_cache=0 |
6265 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
6266 | if test "${enable_treectrl+set}" = set; then | |
6267 | enableval="$enable_treectrl" | |
698dcdb6 | 6268 | |
10f2d63a VZ |
6269 | if test "$enableval" = yes; then |
6270 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
6271 | else | |
6272 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
6273 | fi | |
698dcdb6 | 6274 | |
10f2d63a | 6275 | else |
698dcdb6 | 6276 | |
10f2d63a VZ |
6277 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` |
6278 | if test "x$LINE" != x ; then | |
6279 | eval "DEFAULT_$LINE" | |
6280 | else | |
6281 | no_cache=1 | |
6282 | fi | |
6283 | ||
6284 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
698dcdb6 VZ |
6285 | |
6286 | fi | |
10f2d63a VZ |
6287 | |
6288 | ||
1e6feb95 VZ |
6289 | eval "$ac_cv_use_treectrl" |
6290 | if test "$no_cache" != 1; then | |
6291 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
6292 | fi | |
6293 | ||
6294 | if test "$wxUSE_TREECTRL" = yes; then | |
6295 | echo "$ac_t""yes" 1>&6 | |
6296 | else | |
6297 | echo "$ac_t""no" 1>&6 | |
6298 | fi | |
6299 | ||
6300 | ||
6301 | ||
6302 | ||
6303 | echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6 | |
b1f5d087 | 6304 | echo "configure:6305: checking for --enable-commondlg" >&5 |
1e6feb95 VZ |
6305 | no_cache=0 |
6306 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
6307 | if test "${enable_commondlg+set}" = set; then | |
6308 | enableval="$enable_commondlg" | |
6309 | ||
6310 | if test "$enableval" = yes; then | |
6311 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
6312 | else | |
6313 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
6314 | fi | |
6315 | ||
6316 | else | |
6317 | ||
6318 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
6319 | if test "x$LINE" != x ; then | |
6320 | eval "DEFAULT_$LINE" | |
6321 | else | |
6322 | no_cache=1 | |
6323 | fi | |
6324 | ||
6325 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
6326 | ||
6327 | fi | |
6328 | ||
6329 | ||
6330 | eval "$ac_cv_use_commondlg" | |
6331 | if test "$no_cache" != 1; then | |
6332 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
6333 | fi | |
6334 | ||
6335 | if test "$wxUSE_COMMONDLGS" = yes; then | |
6336 | echo "$ac_t""yes" 1>&6 | |
6337 | else | |
6338 | echo "$ac_t""no" 1>&6 | |
6339 | fi | |
6340 | ||
6341 | ||
6342 | echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6 | |
b1f5d087 | 6343 | echo "configure:6344: checking for --enable-choicedlg" >&5 |
1e6feb95 VZ |
6344 | no_cache=0 |
6345 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
6346 | if test "${enable_choicedlg+set}" = set; then | |
6347 | enableval="$enable_choicedlg" | |
6348 | ||
6349 | if test "$enableval" = yes; then | |
6350 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
6351 | else | |
6352 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
6353 | fi | |
6354 | ||
6355 | else | |
6356 | ||
6357 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
6358 | if test "x$LINE" != x ; then | |
6359 | eval "DEFAULT_$LINE" | |
6360 | else | |
6361 | no_cache=1 | |
6362 | fi | |
6363 | ||
6364 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
6365 | ||
6366 | fi | |
6367 | ||
6368 | ||
6369 | eval "$ac_cv_use_choicedlg" | |
6370 | if test "$no_cache" != 1; then | |
6371 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
6372 | fi | |
6373 | ||
6374 | if test "$wxUSE_CHOICEDLG" = yes; then | |
6375 | echo "$ac_t""yes" 1>&6 | |
6376 | else | |
6377 | echo "$ac_t""no" 1>&6 | |
6378 | fi | |
6379 | ||
6380 | ||
6381 | echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6 | |
b1f5d087 | 6382 | echo "configure:6383: checking for --enable-coldlg" >&5 |
1e6feb95 VZ |
6383 | no_cache=0 |
6384 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
6385 | if test "${enable_coldlg+set}" = set; then | |
6386 | enableval="$enable_coldlg" | |
6387 | ||
6388 | if test "$enableval" = yes; then | |
6389 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
6390 | else | |
6391 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
6392 | fi | |
6393 | ||
6394 | else | |
6395 | ||
6396 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
6397 | if test "x$LINE" != x ; then | |
6398 | eval "DEFAULT_$LINE" | |
6399 | else | |
6400 | no_cache=1 | |
6401 | fi | |
6402 | ||
6403 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
6404 | ||
6405 | fi | |
6406 | ||
6407 | ||
6408 | eval "$ac_cv_use_coldlg" | |
6409 | if test "$no_cache" != 1; then | |
6410 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
6411 | fi | |
6412 | ||
6413 | if test "$wxUSE_COLOURDLG" = yes; then | |
6414 | echo "$ac_t""yes" 1>&6 | |
6415 | else | |
6416 | echo "$ac_t""no" 1>&6 | |
6417 | fi | |
6418 | ||
6419 | ||
6420 | echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6 | |
b1f5d087 | 6421 | echo "configure:6422: checking for --enable-filedlg" >&5 |
1e6feb95 VZ |
6422 | no_cache=0 |
6423 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
6424 | if test "${enable_filedlg+set}" = set; then | |
6425 | enableval="$enable_filedlg" | |
6426 | ||
6427 | if test "$enableval" = yes; then | |
6428 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
6429 | else | |
6430 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
6431 | fi | |
6432 | ||
6433 | else | |
6434 | ||
6435 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
6436 | if test "x$LINE" != x ; then | |
6437 | eval "DEFAULT_$LINE" | |
6438 | else | |
6439 | no_cache=1 | |
6440 | fi | |
6441 | ||
6442 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
6443 | ||
6444 | fi | |
6445 | ||
6446 | ||
6447 | eval "$ac_cv_use_filedlg" | |
6448 | if test "$no_cache" != 1; then | |
6449 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
6450 | fi | |
6451 | ||
6452 | if test "$wxUSE_FILEDLG" = yes; then | |
6453 | echo "$ac_t""yes" 1>&6 | |
6454 | else | |
6455 | echo "$ac_t""no" 1>&6 | |
6456 | fi | |
6457 | ||
6458 | ||
6459 | echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6 | |
b1f5d087 | 6460 | echo "configure:6461: checking for --enable-fontdlg" >&5 |
1e6feb95 VZ |
6461 | no_cache=0 |
6462 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
6463 | if test "${enable_fontdlg+set}" = set; then | |
6464 | enableval="$enable_fontdlg" | |
6465 | ||
6466 | if test "$enableval" = yes; then | |
6467 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
6468 | else | |
6469 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
6470 | fi | |
6471 | ||
6472 | else | |
6473 | ||
6474 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
6475 | if test "x$LINE" != x ; then | |
6476 | eval "DEFAULT_$LINE" | |
6477 | else | |
6478 | no_cache=1 | |
6479 | fi | |
6480 | ||
6481 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
6482 | ||
6483 | fi | |
6484 | ||
6485 | ||
6486 | eval "$ac_cv_use_fontdlg" | |
6487 | if test "$no_cache" != 1; then | |
6488 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
6489 | fi | |
6490 | ||
6491 | if test "$wxUSE_FONTDLG" = yes; then | |
6492 | echo "$ac_t""yes" 1>&6 | |
6493 | else | |
6494 | echo "$ac_t""no" 1>&6 | |
6495 | fi | |
6496 | ||
6497 | ||
6498 | echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6 | |
b1f5d087 | 6499 | echo "configure:6500: checking for --enable-dirdlg" >&5 |
1e6feb95 VZ |
6500 | no_cache=0 |
6501 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
6502 | if test "${enable_dirdlg+set}" = set; then | |
6503 | enableval="$enable_dirdlg" | |
6504 | ||
6505 | if test "$enableval" = yes; then | |
6506 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
6507 | else | |
6508 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
6509 | fi | |
6510 | ||
6511 | else | |
6512 | ||
6513 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
6514 | if test "x$LINE" != x ; then | |
6515 | eval "DEFAULT_$LINE" | |
6516 | else | |
6517 | no_cache=1 | |
6518 | fi | |
6519 | ||
6520 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
6521 | ||
6522 | fi | |
6523 | ||
6524 | ||
6525 | eval "$ac_cv_use_dirdlg" | |
10f2d63a | 6526 | if test "$no_cache" != 1; then |
1e6feb95 | 6527 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6528 | fi |
6529 | ||
1e6feb95 | 6530 | if test "$wxUSE_DIRDLG" = yes; then |
698dcdb6 | 6531 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6532 | else |
698dcdb6 | 6533 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6534 | fi |
698dcdb6 VZ |
6535 | |
6536 | ||
1e6feb95 | 6537 | echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6 |
b1f5d087 | 6538 | echo "configure:6539: checking for --enable-msgdlg" >&5 |
10f2d63a | 6539 | no_cache=0 |
1e6feb95 VZ |
6540 | # Check whether --enable-msgdlg or --disable-msgdlg was given. |
6541 | if test "${enable_msgdlg+set}" = set; then | |
6542 | enableval="$enable_msgdlg" | |
698dcdb6 | 6543 | |
10f2d63a | 6544 | if test "$enableval" = yes; then |
1e6feb95 | 6545 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' |
10f2d63a | 6546 | else |
1e6feb95 | 6547 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' |
10f2d63a | 6548 | fi |
698dcdb6 | 6549 | |
10f2d63a | 6550 | else |
698dcdb6 | 6551 | |
1e6feb95 | 6552 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
6553 | if test "x$LINE" != x ; then |
6554 | eval "DEFAULT_$LINE" | |
6555 | else | |
6556 | no_cache=1 | |
6557 | fi | |
6558 | ||
1e6feb95 | 6559 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG |
698dcdb6 VZ |
6560 | |
6561 | fi | |
10f2d63a VZ |
6562 | |
6563 | ||
1e6feb95 | 6564 | eval "$ac_cv_use_msgdlg" |
10f2d63a | 6565 | if test "$no_cache" != 1; then |
1e6feb95 | 6566 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6567 | fi |
6568 | ||
1e6feb95 | 6569 | if test "$wxUSE_MSGDLG" = yes; then |
698dcdb6 | 6570 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6571 | else |
698dcdb6 | 6572 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6573 | fi |
698dcdb6 | 6574 | |
10f2d63a | 6575 | |
1e6feb95 | 6576 | echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6 |
b1f5d087 | 6577 | echo "configure:6578: checking for --enable-numberdlg" >&5 |
10f2d63a | 6578 | no_cache=0 |
1e6feb95 VZ |
6579 | # Check whether --enable-numberdlg or --disable-numberdlg was given. |
6580 | if test "${enable_numberdlg+set}" = set; then | |
6581 | enableval="$enable_numberdlg" | |
698dcdb6 | 6582 | |
10f2d63a | 6583 | if test "$enableval" = yes; then |
1e6feb95 | 6584 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' |
10f2d63a | 6585 | else |
1e6feb95 | 6586 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' |
10f2d63a | 6587 | fi |
698dcdb6 | 6588 | |
10f2d63a | 6589 | else |
698dcdb6 | 6590 | |
1e6feb95 | 6591 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
6592 | if test "x$LINE" != x ; then |
6593 | eval "DEFAULT_$LINE" | |
6594 | else | |
6595 | no_cache=1 | |
6596 | fi | |
6597 | ||
1e6feb95 | 6598 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG |
698dcdb6 VZ |
6599 | |
6600 | fi | |
10f2d63a VZ |
6601 | |
6602 | ||
1e6feb95 | 6603 | eval "$ac_cv_use_numberdlg" |
10f2d63a | 6604 | if test "$no_cache" != 1; then |
1e6feb95 | 6605 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6606 | fi |
6607 | ||
1e6feb95 | 6608 | if test "$wxUSE_NUMBERDLG" = yes; then |
698dcdb6 | 6609 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6610 | else |
698dcdb6 | 6611 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6612 | fi |
698dcdb6 | 6613 | |
10f2d63a | 6614 | |
698dcdb6 | 6615 | echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6 |
b1f5d087 | 6616 | echo "configure:6617: checking for --enable-textdlg" >&5 |
10f2d63a VZ |
6617 | no_cache=0 |
6618 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
6619 | if test "${enable_textdlg+set}" = set; then | |
6620 | enableval="$enable_textdlg" | |
698dcdb6 | 6621 | |
10f2d63a VZ |
6622 | if test "$enableval" = yes; then |
6623 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
6624 | else | |
6625 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
6626 | fi | |
698dcdb6 | 6627 | |
10f2d63a | 6628 | else |
698dcdb6 | 6629 | |
10f2d63a VZ |
6630 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` |
6631 | if test "x$LINE" != x ; then | |
6632 | eval "DEFAULT_$LINE" | |
6633 | else | |
6634 | no_cache=1 | |
6635 | fi | |
6636 | ||
6637 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
698dcdb6 VZ |
6638 | |
6639 | fi | |
10f2d63a VZ |
6640 | |
6641 | ||
6642 | eval "$ac_cv_use_textdlg" | |
6643 | if test "$no_cache" != 1; then | |
6644 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
6645 | fi | |
6646 | ||
6647 | if test "$wxUSE_TEXTDLG" = yes; then | |
698dcdb6 | 6648 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6649 | else |
698dcdb6 | 6650 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6651 | fi |
698dcdb6 | 6652 | |
10f2d63a | 6653 | |
698dcdb6 | 6654 | echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6 |
b1f5d087 | 6655 | echo "configure:6656: checking for --enable-tipdlg" >&5 |
10f2d63a VZ |
6656 | no_cache=0 |
6657 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
6658 | if test "${enable_tipdlg+set}" = set; then | |
6659 | enableval="$enable_tipdlg" | |
698dcdb6 | 6660 | |
10f2d63a VZ |
6661 | if test "$enableval" = yes; then |
6662 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
6663 | else | |
6664 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
6665 | fi | |
698dcdb6 | 6666 | |
10f2d63a | 6667 | else |
698dcdb6 | 6668 | |
10f2d63a VZ |
6669 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` |
6670 | if test "x$LINE" != x ; then | |
6671 | eval "DEFAULT_$LINE" | |
6672 | else | |
6673 | no_cache=1 | |
6674 | fi | |
6675 | ||
6676 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
698dcdb6 VZ |
6677 | |
6678 | fi | |
10f2d63a VZ |
6679 | |
6680 | ||
6681 | eval "$ac_cv_use_tipdlg" | |
6682 | if test "$no_cache" != 1; then | |
6683 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
6684 | fi | |
6685 | ||
6686 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
698dcdb6 | 6687 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6688 | else |
698dcdb6 | 6689 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6690 | fi |
698dcdb6 | 6691 | |
10f2d63a | 6692 | |
698dcdb6 | 6693 | echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6 |
b1f5d087 | 6694 | echo "configure:6695: checking for --enable-progressdlg" >&5 |
10f2d63a VZ |
6695 | no_cache=0 |
6696 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
6697 | if test "${enable_progressdlg+set}" = set; then | |
6698 | enableval="$enable_progressdlg" | |
698dcdb6 | 6699 | |
10f2d63a VZ |
6700 | if test "$enableval" = yes; then |
6701 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
6702 | else | |
6703 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
6704 | fi | |
698dcdb6 | 6705 | |
10f2d63a | 6706 | else |
698dcdb6 | 6707 | |
10f2d63a VZ |
6708 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` |
6709 | if test "x$LINE" != x ; then | |
6710 | eval "DEFAULT_$LINE" | |
6711 | else | |
6712 | no_cache=1 | |
6713 | fi | |
6714 | ||
6715 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
698dcdb6 VZ |
6716 | |
6717 | fi | |
10f2d63a VZ |
6718 | |
6719 | ||
6720 | eval "$ac_cv_use_progressdlg" | |
6721 | if test "$no_cache" != 1; then | |
6722 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
6723 | fi | |
6724 | ||
6725 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
698dcdb6 | 6726 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6727 | else |
698dcdb6 | 6728 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6729 | fi |
698dcdb6 | 6730 | |
10f2d63a | 6731 | |
b1f5d087 VZ |
6732 | echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6 |
6733 | echo "configure:6734: checking for --enable-wizarddlg" >&5 | |
6734 | no_cache=0 | |
6735 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
6736 | if test "${enable_wizarddlg+set}" = set; then | |
6737 | enableval="$enable_wizarddlg" | |
6738 | ||
6739 | if test "$enableval" = yes; then | |
6740 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
6741 | else | |
6742 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
6743 | fi | |
6744 | ||
6745 | else | |
6746 | ||
6747 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` | |
6748 | if test "x$LINE" != x ; then | |
6749 | eval "DEFAULT_$LINE" | |
6750 | else | |
6751 | no_cache=1 | |
6752 | fi | |
6753 | ||
6754 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
6755 | ||
6756 | fi | |
6757 | ||
6758 | ||
6759 | eval "$ac_cv_use_wizarddlg" | |
6760 | if test "$no_cache" != 1; then | |
6761 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
6762 | fi | |
6763 | ||
6764 | if test "$wxUSE_WIZARDDLG" = yes; then | |
6765 | echo "$ac_t""yes" 1>&6 | |
6766 | else | |
6767 | echo "$ac_t""no" 1>&6 | |
6768 | fi | |
6769 | ||
6770 | ||
6771 | ||
6772 | ||
1e6feb95 | 6773 | echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6 |
b1f5d087 | 6774 | echo "configure:6775: checking for --enable-menus" >&5 |
1e6feb95 VZ |
6775 | no_cache=0 |
6776 | # Check whether --enable-menus or --disable-menus was given. | |
6777 | if test "${enable_menus+set}" = set; then | |
6778 | enableval="$enable_menus" | |
6779 | ||
6780 | if test "$enableval" = yes; then | |
6781 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
6782 | else | |
6783 | ac_cv_use_menus='wxUSE_MENUS=no' | |
6784 | fi | |
6785 | ||
6786 | else | |
6787 | ||
6788 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
6789 | if test "x$LINE" != x ; then | |
6790 | eval "DEFAULT_$LINE" | |
6791 | else | |
6792 | no_cache=1 | |
6793 | fi | |
6794 | ||
6795 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
6796 | ||
6797 | fi | |
6798 | ||
6799 | ||
6800 | eval "$ac_cv_use_menus" | |
6801 | if test "$no_cache" != 1; then | |
6802 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
6803 | fi | |
6804 | ||
6805 | if test "$wxUSE_MENUS" = yes; then | |
6806 | echo "$ac_t""yes" 1>&6 | |
6807 | else | |
6808 | echo "$ac_t""no" 1>&6 | |
6809 | fi | |
6810 | ||
6811 | ||
698dcdb6 | 6812 | echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6 |
b1f5d087 | 6813 | echo "configure:6814: checking for --enable-miniframe" >&5 |
10f2d63a VZ |
6814 | no_cache=0 |
6815 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
6816 | if test "${enable_miniframe+set}" = set; then | |
6817 | enableval="$enable_miniframe" | |
698dcdb6 | 6818 | |
10f2d63a VZ |
6819 | if test "$enableval" = yes; then |
6820 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
6821 | else | |
6822 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
6823 | fi | |
698dcdb6 | 6824 | |
10f2d63a | 6825 | else |
698dcdb6 | 6826 | |
10f2d63a VZ |
6827 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` |
6828 | if test "x$LINE" != x ; then | |
6829 | eval "DEFAULT_$LINE" | |
6830 | else | |
6831 | no_cache=1 | |
6832 | fi | |
6833 | ||
6834 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
698dcdb6 VZ |
6835 | |
6836 | fi | |
10f2d63a VZ |
6837 | |
6838 | ||
6839 | eval "$ac_cv_use_miniframe" | |
6840 | if test "$no_cache" != 1; then | |
6841 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
6842 | fi | |
6843 | ||
6844 | if test "$wxUSE_MINIFRAME" = yes; then | |
698dcdb6 | 6845 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6846 | else |
698dcdb6 | 6847 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6848 | fi |
698dcdb6 | 6849 | |
10f2d63a | 6850 | |
698dcdb6 | 6851 | echo $ac_n "checking for --enable-html""... $ac_c" 1>&6 |
b1f5d087 | 6852 | echo "configure:6853: checking for --enable-html" >&5 |
10f2d63a VZ |
6853 | no_cache=0 |
6854 | # Check whether --enable-html or --disable-html was given. | |
6855 | if test "${enable_html+set}" = set; then | |
6856 | enableval="$enable_html" | |
698dcdb6 | 6857 | |
10f2d63a VZ |
6858 | if test "$enableval" = yes; then |
6859 | ac_cv_use_html='wxUSE_HTML=yes' | |
6860 | else | |
6861 | ac_cv_use_html='wxUSE_HTML=no' | |
6862 | fi | |
698dcdb6 | 6863 | |
10f2d63a | 6864 | else |
698dcdb6 | 6865 | |
10f2d63a VZ |
6866 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` |
6867 | if test "x$LINE" != x ; then | |
6868 | eval "DEFAULT_$LINE" | |
6869 | else | |
6870 | no_cache=1 | |
6871 | fi | |
6872 | ||
6873 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
698dcdb6 VZ |
6874 | |
6875 | fi | |
10f2d63a VZ |
6876 | |
6877 | ||
6878 | eval "$ac_cv_use_html" | |
6879 | if test "$no_cache" != 1; then | |
6880 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
6881 | fi | |
6882 | ||
6883 | if test "$wxUSE_HTML" = yes; then | |
698dcdb6 | 6884 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6885 | else |
698dcdb6 | 6886 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6887 | fi |
698dcdb6 | 6888 | |
10f2d63a | 6889 | |
698dcdb6 | 6890 | echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6 |
b1f5d087 | 6891 | echo "configure:6892: checking for --enable-tooltips" >&5 |
10f2d63a VZ |
6892 | no_cache=0 |
6893 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
6894 | if test "${enable_tooltips+set}" = set; then | |
6895 | enableval="$enable_tooltips" | |
698dcdb6 | 6896 | |
10f2d63a VZ |
6897 | if test "$enableval" = yes; then |
6898 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
6899 | else | |
6900 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
6901 | fi | |
698dcdb6 | 6902 | |
10f2d63a | 6903 | else |
698dcdb6 | 6904 | |
10f2d63a VZ |
6905 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` |
6906 | if test "x$LINE" != x ; then | |
6907 | eval "DEFAULT_$LINE" | |
6908 | else | |
6909 | no_cache=1 | |
6910 | fi | |
6911 | ||
6912 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
698dcdb6 VZ |
6913 | |
6914 | fi | |
10f2d63a VZ |
6915 | |
6916 | ||
6917 | eval "$ac_cv_use_tooltips" | |
6918 | if test "$no_cache" != 1; then | |
6919 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
6920 | fi | |
6921 | ||
6922 | if test "$wxUSE_TOOLTIPS" = yes; then | |
698dcdb6 | 6923 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6924 | else |
698dcdb6 | 6925 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6926 | fi |
698dcdb6 | 6927 | |
10f2d63a | 6928 | |
698dcdb6 | 6929 | echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6 |
b1f5d087 | 6930 | echo "configure:6931: checking for --enable-splines" >&5 |
10f2d63a VZ |
6931 | no_cache=0 |
6932 | # Check whether --enable-splines or --disable-splines was given. | |
6933 | if test "${enable_splines+set}" = set; then | |
6934 | enableval="$enable_splines" | |
698dcdb6 | 6935 | |
10f2d63a VZ |
6936 | if test "$enableval" = yes; then |
6937 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
6938 | else | |
6939 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
6940 | fi | |
698dcdb6 | 6941 | |
10f2d63a | 6942 | else |
698dcdb6 | 6943 | |
10f2d63a VZ |
6944 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` |
6945 | if test "x$LINE" != x ; then | |
6946 | eval "DEFAULT_$LINE" | |
6947 | else | |
6948 | no_cache=1 | |
6949 | fi | |
6950 | ||
6951 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
698dcdb6 VZ |
6952 | |
6953 | fi | |
10f2d63a VZ |
6954 | |
6955 | ||
6956 | eval "$ac_cv_use_splines" | |
6957 | if test "$no_cache" != 1; then | |
6958 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
6959 | fi | |
6960 | ||
6961 | if test "$wxUSE_SPLINES" = yes; then | |
698dcdb6 | 6962 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6963 | else |
698dcdb6 | 6964 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6965 | fi |
698dcdb6 | 6966 | |
10f2d63a | 6967 | |
698dcdb6 | 6968 | echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6 |
b1f5d087 | 6969 | echo "configure:6970: checking for --enable-validators" >&5 |
10f2d63a VZ |
6970 | no_cache=0 |
6971 | # Check whether --enable-validators or --disable-validators was given. | |
6972 | if test "${enable_validators+set}" = set; then | |
6973 | enableval="$enable_validators" | |
698dcdb6 | 6974 | |
10f2d63a VZ |
6975 | if test "$enableval" = yes; then |
6976 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
6977 | else | |
6978 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
6979 | fi | |
698dcdb6 | 6980 | |
10f2d63a | 6981 | else |
698dcdb6 | 6982 | |
10f2d63a VZ |
6983 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` |
6984 | if test "x$LINE" != x ; then | |
6985 | eval "DEFAULT_$LINE" | |
6986 | else | |
6987 | no_cache=1 | |
6988 | fi | |
6989 | ||
6990 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
698dcdb6 VZ |
6991 | |
6992 | fi | |
10f2d63a VZ |
6993 | |
6994 | ||
6995 | eval "$ac_cv_use_validators" | |
6996 | if test "$no_cache" != 1; then | |
6997 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
6998 | fi | |
6999 | ||
7000 | if test "$wxUSE_VALIDATORS" = yes; then | |
698dcdb6 | 7001 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7002 | else |
698dcdb6 | 7003 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7004 | fi |
698dcdb6 | 7005 | |
10f2d63a | 7006 | |
698dcdb6 | 7007 | echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6 |
b1f5d087 | 7008 | echo "configure:7009: checking for --enable-busyinfo" >&5 |
10f2d63a VZ |
7009 | no_cache=0 |
7010 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
7011 | if test "${enable_busyinfo+set}" = set; then | |
7012 | enableval="$enable_busyinfo" | |
698dcdb6 | 7013 | |
10f2d63a VZ |
7014 | if test "$enableval" = yes; then |
7015 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
7016 | else | |
7017 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
7018 | fi | |
698dcdb6 | 7019 | |
10f2d63a | 7020 | else |
698dcdb6 | 7021 | |
10f2d63a VZ |
7022 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` |
7023 | if test "x$LINE" != x ; then | |
7024 | eval "DEFAULT_$LINE" | |
7025 | else | |
7026 | no_cache=1 | |
7027 | fi | |
7028 | ||
7029 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
698dcdb6 VZ |
7030 | |
7031 | fi | |
10f2d63a VZ |
7032 | |
7033 | ||
7034 | eval "$ac_cv_use_busyinfo" | |
7035 | if test "$no_cache" != 1; then | |
7036 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
7037 | fi | |
7038 | ||
7039 | if test "$wxUSE_BUSYINFO" = yes; then | |
698dcdb6 | 7040 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7041 | else |
698dcdb6 | 7042 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7043 | fi |
698dcdb6 | 7044 | |
10f2d63a | 7045 | |
698dcdb6 | 7046 | echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6 |
b1f5d087 | 7047 | echo "configure:7048: checking for --enable-joystick" >&5 |
f6bcfd97 BP |
7048 | no_cache=0 |
7049 | # Check whether --enable-joystick or --disable-joystick was given. | |
7050 | if test "${enable_joystick+set}" = set; then | |
7051 | enableval="$enable_joystick" | |
698dcdb6 | 7052 | |
f6bcfd97 BP |
7053 | if test "$enableval" = yes; then |
7054 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
7055 | else | |
7056 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
7057 | fi | |
698dcdb6 | 7058 | |
f6bcfd97 | 7059 | else |
698dcdb6 | 7060 | |
f6bcfd97 BP |
7061 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` |
7062 | if test "x$LINE" != x ; then | |
7063 | eval "DEFAULT_$LINE" | |
7064 | else | |
7065 | no_cache=1 | |
7066 | fi | |
7067 | ||
7068 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
698dcdb6 VZ |
7069 | |
7070 | fi | |
f6bcfd97 BP |
7071 | |
7072 | ||
7073 | eval "$ac_cv_use_joystick" | |
7074 | if test "$no_cache" != 1; then | |
7075 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
7076 | fi | |
7077 | ||
7078 | if test "$wxUSE_JOYSTICK" = yes; then | |
698dcdb6 | 7079 | echo "$ac_t""yes" 1>&6 |
f6bcfd97 | 7080 | else |
698dcdb6 | 7081 | echo "$ac_t""no" 1>&6 |
f6bcfd97 | 7082 | fi |
698dcdb6 VZ |
7083 | |
7084 | ||
1e6feb95 | 7085 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
b1f5d087 | 7086 | echo "configure:7087: checking for --enable-metafile" >&5 |
1e6feb95 VZ |
7087 | no_cache=0 |
7088 | # Check whether --enable-metafile or --disable-metafile was given. | |
7089 | if test "${enable_metafile+set}" = set; then | |
7090 | enableval="$enable_metafile" | |
7091 | ||
7092 | if test "$enableval" = yes; then | |
7093 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
7094 | else | |
7095 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
7096 | fi | |
7097 | ||
7098 | else | |
7099 | ||
7100 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
7101 | if test "x$LINE" != x ; then | |
7102 | eval "DEFAULT_$LINE" | |
7103 | else | |
7104 | no_cache=1 | |
7105 | fi | |
7106 | ||
7107 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
7108 | ||
7109 | fi | |
7110 | ||
7111 | ||
7112 | eval "$ac_cv_use_metafile" | |
7113 | if test "$no_cache" != 1; then | |
7114 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
7115 | fi | |
7116 | ||
7117 | if test "$wxUSE_METAFILE" = yes; then | |
7118 | echo "$ac_t""yes" 1>&6 | |
7119 | else | |
7120 | echo "$ac_t""no" 1>&6 | |
7121 | fi | |
7122 | ||
7123 | ||
24fd6d87 | 7124 | echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6 |
b1f5d087 | 7125 | echo "configure:7126: checking for --enable-dragimage" >&5 |
24fd6d87 VZ |
7126 | no_cache=0 |
7127 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
7128 | if test "${enable_dragimage+set}" = set; then | |
7129 | enableval="$enable_dragimage" | |
7130 | ||
7131 | if test "$enableval" = yes; then | |
7132 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
7133 | else | |
7134 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
7135 | fi | |
7136 | ||
7137 | else | |
7138 | ||
7139 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` | |
7140 | if test "x$LINE" != x ; then | |
7141 | eval "DEFAULT_$LINE" | |
7142 | else | |
7143 | no_cache=1 | |
7144 | fi | |
7145 | ||
7146 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
7147 | ||
7148 | fi | |
7149 | ||
7150 | ||
7151 | eval "$ac_cv_use_dragimage" | |
7152 | if test "$no_cache" != 1; then | |
7153 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
7154 | fi | |
7155 | ||
7156 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
7157 | echo "$ac_t""yes" 1>&6 | |
7158 | else | |
7159 | echo "$ac_t""no" 1>&6 | |
7160 | fi | |
7161 | ||
7162 | ||
10f2d63a | 7163 | |
698dcdb6 VZ |
7164 | |
7165 | echo $ac_n "checking for --enable-image""... $ac_c" 1>&6 | |
b1f5d087 | 7166 | echo "configure:7167: checking for --enable-image" >&5 |
0046ff7c VS |
7167 | no_cache=0 |
7168 | # Check whether --enable-image or --disable-image was given. | |
7169 | if test "${enable_image+set}" = set; then | |
7170 | enableval="$enable_image" | |
698dcdb6 | 7171 | |
0046ff7c VS |
7172 | if test "$enableval" = yes; then |
7173 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
7174 | else | |
7175 | ac_cv_use_image='wxUSE_IMAGE=no' | |
7176 | fi | |
698dcdb6 | 7177 | |
0046ff7c | 7178 | else |
698dcdb6 | 7179 | |
0046ff7c VS |
7180 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` |
7181 | if test "x$LINE" != x ; then | |
7182 | eval "DEFAULT_$LINE" | |
7183 | else | |
7184 | no_cache=1 | |
7185 | fi | |
7186 | ||
7187 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
698dcdb6 VZ |
7188 | |
7189 | fi | |
0046ff7c VS |
7190 | |
7191 | ||
7192 | eval "$ac_cv_use_image" | |
7193 | if test "$no_cache" != 1; then | |
7194 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
7195 | fi | |
7196 | ||
7197 | if test "$wxUSE_IMAGE" = yes; then | |
698dcdb6 | 7198 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 7199 | else |
698dcdb6 | 7200 | echo "$ac_t""no" 1>&6 |
0046ff7c | 7201 | fi |
698dcdb6 | 7202 | |
0046ff7c | 7203 | |
698dcdb6 | 7204 | echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6 |
b1f5d087 | 7205 | echo "configure:7206: checking for --enable-gif" >&5 |
10f2d63a VZ |
7206 | no_cache=0 |
7207 | # Check whether --enable-gif or --disable-gif was given. | |
7208 | if test "${enable_gif+set}" = set; then | |
7209 | enableval="$enable_gif" | |
698dcdb6 | 7210 | |
10f2d63a VZ |
7211 | if test "$enableval" = yes; then |
7212 | ac_cv_use_gif='wxUSE_GIF=yes' | |
7213 | else | |
7214 | ac_cv_use_gif='wxUSE_GIF=no' | |
7215 | fi | |
698dcdb6 | 7216 | |
10f2d63a | 7217 | else |
698dcdb6 | 7218 | |
10f2d63a VZ |
7219 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` |
7220 | if test "x$LINE" != x ; then | |
7221 | eval "DEFAULT_$LINE" | |
7222 | else | |
7223 | no_cache=1 | |
7224 | fi | |
7225 | ||
7226 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
698dcdb6 VZ |
7227 | |
7228 | fi | |
10f2d63a VZ |
7229 | |
7230 | ||
7231 | eval "$ac_cv_use_gif" | |
7232 | if test "$no_cache" != 1; then | |
7233 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
7234 | fi | |
7235 | ||
7236 | if test "$wxUSE_GIF" = yes; then | |
698dcdb6 | 7237 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7238 | else |
698dcdb6 | 7239 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7240 | fi |
698dcdb6 | 7241 | |
10f2d63a | 7242 | |
698dcdb6 | 7243 | echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6 |
b1f5d087 | 7244 | echo "configure:7245: checking for --enable-pcx" >&5 |
10f2d63a VZ |
7245 | no_cache=0 |
7246 | # Check whether --enable-pcx or --disable-pcx was given. | |
7247 | if test "${enable_pcx+set}" = set; then | |
7248 | enableval="$enable_pcx" | |
698dcdb6 | 7249 | |
10f2d63a VZ |
7250 | if test "$enableval" = yes; then |
7251 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
7252 | else | |
7253 | ac_cv_use_pcx='wxUSE_PCX=no' | |
7254 | fi | |
698dcdb6 | 7255 | |
10f2d63a | 7256 | else |
698dcdb6 | 7257 | |
10f2d63a VZ |
7258 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` |
7259 | if test "x$LINE" != x ; then | |
7260 | eval "DEFAULT_$LINE" | |
7261 | else | |
7262 | no_cache=1 | |
7263 | fi | |
7264 | ||
7265 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
698dcdb6 VZ |
7266 | |
7267 | fi | |
10f2d63a VZ |
7268 | |
7269 | ||
7270 | eval "$ac_cv_use_pcx" | |
7271 | if test "$no_cache" != 1; then | |
7272 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
7273 | fi | |
7274 | ||
7275 | if test "$wxUSE_PCX" = yes; then | |
698dcdb6 | 7276 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7277 | else |
698dcdb6 | 7278 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7279 | fi |
698dcdb6 | 7280 | |
10f2d63a | 7281 | |
698dcdb6 | 7282 | echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6 |
b1f5d087 | 7283 | echo "configure:7284: checking for --enable-pnm" >&5 |
10f2d63a VZ |
7284 | no_cache=0 |
7285 | # Check whether --enable-pnm or --disable-pnm was given. | |
7286 | if test "${enable_pnm+set}" = set; then | |
7287 | enableval="$enable_pnm" | |
698dcdb6 | 7288 | |
10f2d63a VZ |
7289 | if test "$enableval" = yes; then |
7290 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
7291 | else | |
7292 | ac_cv_use_pnm='wxUSE_PNM=no' | |
7293 | fi | |
698dcdb6 | 7294 | |
10f2d63a | 7295 | else |
698dcdb6 | 7296 | |
10f2d63a VZ |
7297 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` |
7298 | if test "x$LINE" != x ; then | |
7299 | eval "DEFAULT_$LINE" | |
7300 | else | |
7301 | no_cache=1 | |
7302 | fi | |
7303 | ||
7304 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
698dcdb6 VZ |
7305 | |
7306 | fi | |
10f2d63a VZ |
7307 | |
7308 | ||
7309 | eval "$ac_cv_use_pnm" | |
7310 | if test "$no_cache" != 1; then | |
7311 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
7312 | fi | |
7313 | ||
7314 | if test "$wxUSE_PNM" = yes; then | |
698dcdb6 | 7315 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7316 | else |
698dcdb6 | 7317 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7318 | fi |
698dcdb6 | 7319 | |
10f2d63a | 7320 | |
698dcdb6 | 7321 | echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6 |
b1f5d087 | 7322 | echo "configure:7323: checking for --enable-pnm" >&5 |
0046ff7c VS |
7323 | no_cache=0 |
7324 | # Check whether --enable-pnm or --disable-pnm was given. | |
7325 | if test "${enable_pnm+set}" = set; then | |
7326 | enableval="$enable_pnm" | |
698dcdb6 | 7327 | |
0046ff7c VS |
7328 | if test "$enableval" = yes; then |
7329 | ac_cv_use_pnm='wxUSE_XPM=yes' | |
7330 | else | |
7331 | ac_cv_use_pnm='wxUSE_XPM=no' | |
7332 | fi | |
698dcdb6 | 7333 | |
0046ff7c | 7334 | else |
698dcdb6 | 7335 | |
0046ff7c VS |
7336 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` |
7337 | if test "x$LINE" != x ; then | |
7338 | eval "DEFAULT_$LINE" | |
7339 | else | |
7340 | no_cache=1 | |
7341 | fi | |
7342 | ||
7343 | ac_cv_use_pnm='wxUSE_XPM='$DEFAULT_wxUSE_XPM | |
698dcdb6 VZ |
7344 | |
7345 | fi | |
0046ff7c VS |
7346 | |
7347 | ||
7348 | eval "$ac_cv_use_pnm" | |
7349 | if test "$no_cache" != 1; then | |
7350 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
7351 | fi | |
7352 | ||
7353 | if test "$wxUSE_XPM" = yes; then | |
698dcdb6 | 7354 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 7355 | else |
698dcdb6 | 7356 | echo "$ac_t""no" 1>&6 |
0046ff7c | 7357 | fi |
698dcdb6 | 7358 | |
0046ff7c | 7359 | |
b12915c1 VZ |
7360 | fi |
7361 | ||
698dcdb6 | 7362 | |
10f2d63a VZ |
7363 | echo "saving argument cache $wx_arg_cache_file" |
7364 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
698dcdb6 | 7365 | |
10f2d63a | 7366 | |
698dcdb6 VZ |
7367 | |
7368 | echo $ac_n "checking for toolkit""... $ac_c" 1>&6 | |
b1f5d087 | 7369 | echo "configure:7370: checking for toolkit" >&5 |
10f2d63a VZ |
7370 | |
7371 | if test "$wxUSE_GUI" = "yes"; then | |
7372 | ||
b12915c1 | 7373 | if test "$USE_BEOS" = 1; then |
698dcdb6 | 7374 | { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; } |
b12915c1 VZ |
7375 | fi |
7376 | ||
10f2d63a VZ |
7377 | if test "$TOOLKIT_GIVEN" = 1; then |
7378 | for toolkit in `echo $ALL_TOOLKITS`; do | |
7379 | var=wxUSE_$toolkit | |
7380 | eval "value=\$${var}" | |
7381 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
7382 | done | |
7383 | else | |
7384 | for toolkit in `echo $ALL_TOOLKITS`; do | |
7385 | if test "$has_toolkit_in_cache" != 1; then | |
7386 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
7387 | else | |
7388 | var=DEFAULT_wxUSE_$toolkit | |
7389 | fi | |
7390 | eval "wxUSE_$toolkit=\$${var}" | |
7391 | done | |
7392 | fi | |
7393 | ||
1e6feb95 | 7394 | 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 | 7395 | |
ec14dd32 VZ |
7396 | case "${host}" in |
7397 | *-pc-os2_emx ) | |
7398 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
7399 | # PATH_IFS is autodetected by OS/2's configure (usually ';') | |
7400 | LEX_STEM="lexyy" | |
7401 | ;; | |
7402 | *) | |
7403 | PATH_IFS=':' | |
7404 | LEX_STEM="lex.yy" | |
7405 | ;; | |
7406 | esac | |
10f2d63a VZ |
7407 | |
7408 | case "$NUM_TOOLKITS" in | |
7409 | 1) | |
7410 | ;; | |
7411 | 0) | |
698dcdb6 | 7412 | { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; } |
10f2d63a VZ |
7413 | ;; |
7414 | *) | |
698dcdb6 | 7415 | { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; } |
10f2d63a VZ |
7416 | esac |
7417 | ||
7418 | for toolkit in `echo $ALL_TOOLKITS`; do | |
7419 | var=wxUSE_$toolkit | |
7420 | eval "value=\$${var}" | |
7421 | if test "x$value" != x; then | |
7422 | cache_var=CACHE_$toolkit | |
7423 | eval "cache=\$${cache_var}" | |
7424 | if test "$cache" = 1; then | |
7425 | echo "$var=$value" >> ${wx_arg_cache_file} | |
7426 | fi | |
7427 | if test "$value" = 1; then | |
8168de4c VZ |
7428 | toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]` |
7429 | echo "$ac_t""$toolkit_echo" 1>&6 | |
10f2d63a VZ |
7430 | fi |
7431 | fi | |
7432 | done | |
7433 | ||
7434 | else | |
cf27ef00 | 7435 | PATH_IFS=':' |
698dcdb6 | 7436 | echo "$ac_t""base only" 1>&6 |
10f2d63a VZ |
7437 | fi |
7438 | ||
698dcdb6 VZ |
7439 | |
7440 | cat > confcache <<\EOF | |
10f2d63a VZ |
7441 | # This file is a shell script that caches the results of configure |
7442 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
7443 | # scripts and configure runs. It is not useful on other systems. |
7444 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 7445 | # |
698dcdb6 VZ |
7446 | # By default, configure uses ./config.cache as the cache file, |
7447 | # creating it if it does not exist already. You can give configure | |
7448 | # the --cache-file=FILE option to use a different cache file; that is | |
7449 | # what configure does when it calls configure scripts in | |
7450 | # subdirectories, so they share the cache. | |
7451 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
7452 | # config.status only pays attention to the cache file if you give it the | |
7453 | # --recheck option to rerun configure. | |
10f2d63a | 7454 | # |
698dcdb6 | 7455 | EOF |
10f2d63a VZ |
7456 | # The following way of writing the cache mishandles newlines in values, |
7457 | # but we know of no workaround that is simple, portable, and efficient. | |
7458 | # So, don't put newlines in cache variables' values. | |
7459 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
7460 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
7461 | (set) 2>&1 | |
7462 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
7463 | *ac_space=\ *) | |
7464 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
7465 | # turns \\\\ into \\, and sed turns \\ into \). | |
7466 | sed -n \ | |
7467 | -e "s/'/'\\\\''/g" \ | |
7468 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
7469 | ;; | |
7470 | *) | |
7471 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7472 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
7473 | ;; | |
7474 | esac >> confcache | |
7475 | if cmp -s $cache_file confcache; then | |
7476 | : | |
7477 | else | |
10f2d63a | 7478 | if test -w $cache_file; then |
698dcdb6 VZ |
7479 | echo "updating cache $cache_file" |
7480 | cat confcache > $cache_file | |
10f2d63a VZ |
7481 | else |
7482 | echo "not updating unwritable cache $cache_file" | |
7483 | fi | |
7484 | fi | |
7485 | rm -f confcache | |
7486 | ||
698dcdb6 | 7487 | |
e59890c3 | 7488 | if test "$build" != "$host" ; then |
10f2d63a VZ |
7489 | CC=$host_alias-gcc |
7490 | CXX=$host_alias-c++ | |
7491 | AR=$host_alias-ar | |
7492 | RANLIB=$host_alias-ranlib | |
7493 | DLLTOOL=$host_alias-dlltool | |
32832908 | 7494 | RESCOMP=$host_alias-windres |
10f2d63a VZ |
7495 | LD=$host_alias-ld |
7496 | NM=$host_alias-nm | |
7497 | STRIP=$host_alias-strip | |
10f2d63a VZ |
7498 | fi |
7499 | ||
698dcdb6 | 7500 | # Extract the first word of "gcc", so it can be a program name with args. |
1e487827 | 7501 | set dummy gcc; ac_word=$2 |
698dcdb6 | 7502 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
b1f5d087 | 7503 | echo "configure:7504: checking for $ac_word" >&5 |
698dcdb6 VZ |
7504 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
7505 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6232543b VS |
7506 | else |
7507 | if test -n "$CC"; then | |
7508 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10f2d63a | 7509 | else |
698dcdb6 VZ |
7510 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
7511 | ac_dummy="$PATH" | |
7512 | for ac_dir in $ac_dummy; do | |
7513 | test -z "$ac_dir" && ac_dir=. | |
7514 | if test -f $ac_dir/$ac_word; then | |
7515 | ac_cv_prog_CC="gcc" | |
7516 | break | |
7517 | fi | |
7518 | done | |
7519 | IFS="$ac_save_ifs" | |
10f2d63a | 7520 | fi |
6232543b | 7521 | fi |
698dcdb6 | 7522 | CC="$ac_cv_prog_CC" |
6232543b | 7523 | if test -n "$CC"; then |
698dcdb6 | 7524 | echo "$ac_t""$CC" 1>&6 |
1e487827 | 7525 | else |
698dcdb6 | 7526 | echo "$ac_t""no" 1>&6 |
1e487827 | 7527 | fi |
6232543b | 7528 | |
1e487827 VS |
7529 | if test -z "$CC"; then |
7530 | # Extract the first word of "cc", so it can be a program name with args. | |
7531 | set dummy cc; ac_word=$2 | |
698dcdb6 | 7532 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
b1f5d087 | 7533 | echo "configure:7534: checking for $ac_word" >&5 |
698dcdb6 VZ |
7534 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
7535 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 VS |
7536 | else |
7537 | if test -n "$CC"; then | |
7538 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
7539 | else | |
698dcdb6 | 7540 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1e487827 | 7541 | ac_prog_rejected=no |
698dcdb6 VZ |
7542 | ac_dummy="$PATH" |
7543 | for ac_dir in $ac_dummy; do | |
7544 | test -z "$ac_dir" && ac_dir=. | |
7545 | if test -f $ac_dir/$ac_word; then | |
7546 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
7547 | ac_prog_rejected=yes | |
7548 | continue | |
7549 | fi | |
7550 | ac_cv_prog_CC="cc" | |
7551 | break | |
7552 | fi | |
7553 | done | |
7554 | IFS="$ac_save_ifs" | |
1e487827 VS |
7555 | if test $ac_prog_rejected = yes; then |
7556 | # We found a bogon in the path, so make sure we never use it. | |
7557 | set dummy $ac_cv_prog_CC | |
7558 | shift | |
698dcdb6 | 7559 | if test $# -gt 0; then |
1e487827 VS |
7560 | # We chose a different compiler from the bogus one. |
7561 | # However, it has the same basename, so the bogon will be chosen | |
7562 | # first if we set CC to just the basename; use the full file name. | |
7563 | shift | |
698dcdb6 | 7564 | set dummy "$ac_dir/$ac_word" "$@" |
1e487827 VS |
7565 | shift |
7566 | ac_cv_prog_CC="$@" | |
703e0a69 | 7567 | fi |
1e487827 VS |
7568 | fi |
7569 | fi | |
7570 | fi | |
698dcdb6 | 7571 | CC="$ac_cv_prog_CC" |
1e487827 | 7572 | if test -n "$CC"; then |
698dcdb6 | 7573 | echo "$ac_t""$CC" 1>&6 |
703e0a69 | 7574 | else |
698dcdb6 | 7575 | echo "$ac_t""no" 1>&6 |
703e0a69 | 7576 | fi |
1e487827 | 7577 | |
698dcdb6 VZ |
7578 | if test -z "$CC"; then |
7579 | case "`uname -s`" in | |
7580 | *win32* | *WIN32*) | |
7581 | # Extract the first word of "cl", so it can be a program name with args. | |
7582 | set dummy cl; ac_word=$2 | |
7583 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
b1f5d087 | 7584 | echo "configure:7585: checking for $ac_word" >&5 |
698dcdb6 VZ |
7585 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
7586 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 VS |
7587 | else |
7588 | if test -n "$CC"; then | |
7589 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
703e0a69 | 7590 | else |
698dcdb6 VZ |
7591 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
7592 | ac_dummy="$PATH" | |
7593 | for ac_dir in $ac_dummy; do | |
7594 | test -z "$ac_dir" && ac_dir=. | |
7595 | if test -f $ac_dir/$ac_word; then | |
7596 | ac_cv_prog_CC="cl" | |
7597 | break | |
7598 | fi | |
7599 | done | |
7600 | IFS="$ac_save_ifs" | |
703e0a69 | 7601 | fi |
1e487827 | 7602 | fi |
698dcdb6 | 7603 | CC="$ac_cv_prog_CC" |
1e487827 | 7604 | if test -n "$CC"; then |
698dcdb6 | 7605 | echo "$ac_t""$CC" 1>&6 |
1e487827 | 7606 | else |
698dcdb6 | 7607 | echo "$ac_t""no" 1>&6 |
1e487827 | 7608 | fi |
698dcdb6 VZ |
7609 | ;; |
7610 | esac | |
7611 | fi | |
7612 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
1e487827 VS |
7613 | fi |
7614 | ||
698dcdb6 | 7615 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
b1f5d087 | 7616 | echo "configure:7617: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
1e487827 | 7617 | |
698dcdb6 VZ |
7618 | ac_ext=c |
7619 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
7620 | ac_cpp='$CPP $CPPFLAGS' | |
7621 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
7622 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7623 | cross_compiling=$ac_cv_prog_cc_cross | |
6232543b | 7624 | |
698dcdb6 | 7625 | cat > conftest.$ac_ext << EOF |
1e487827 | 7626 | |
b1f5d087 | 7627 | #line 7628 "configure" |
1e487827 VS |
7628 | #include "confdefs.h" |
7629 | ||
698dcdb6 VZ |
7630 | main(){return(0);} |
7631 | EOF | |
b1f5d087 | 7632 | if { (eval echo configure:7633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
7633 | ac_cv_prog_cc_works=yes |
7634 | # If we can't run a trivial program, we are probably using a cross compiler. | |
7635 | if (./conftest; exit) 2>/dev/null; then | |
7636 | ac_cv_prog_cc_cross=no | |
7637 | else | |
7638 | ac_cv_prog_cc_cross=yes | |
7639 | fi | |
7640 | else | |
7641 | echo "configure: failed program was:" >&5 | |
7642 | cat conftest.$ac_ext >&5 | |
7643 | ac_cv_prog_cc_works=no | |
7644 | fi | |
7645 | rm -fr conftest* | |
7646 | ac_ext=c | |
7647 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
7648 | ac_cpp='$CPP $CPPFLAGS' | |
7649 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
7650 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7651 | cross_compiling=$ac_cv_prog_cc_cross | |
7652 | ||
7653 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
7654 | if test $ac_cv_prog_cc_works = no; then | |
7655 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
7656 | fi | |
7657 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
b1f5d087 | 7658 | echo "configure:7659: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
698dcdb6 VZ |
7659 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
7660 | cross_compiling=$ac_cv_prog_cc_cross | |
7661 | ||
7662 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
b1f5d087 | 7663 | echo "configure:7664: checking whether we are using GNU C" >&5 |
698dcdb6 VZ |
7664 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
7665 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7666 | else | |
7667 | cat > conftest.c <<EOF | |
7668 | #ifdef __GNUC__ | |
7669 | yes; | |
1e487827 | 7670 | #endif |
698dcdb6 | 7671 | EOF |
b1f5d087 | 7672 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:7673: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
698dcdb6 VZ |
7673 | ac_cv_prog_gcc=yes |
7674 | else | |
7675 | ac_cv_prog_gcc=no | |
7676 | fi | |
7677 | fi | |
1e487827 | 7678 | |
698dcdb6 | 7679 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
1e487827 | 7680 | |
698dcdb6 VZ |
7681 | if test $ac_cv_prog_gcc = yes; then |
7682 | GCC=yes | |
7683 | else | |
7684 | GCC= | |
7685 | fi | |
1e487827 | 7686 | |
698dcdb6 VZ |
7687 | ac_test_CFLAGS="${CFLAGS+set}" |
7688 | ac_save_CFLAGS="$CFLAGS" | |
7689 | CFLAGS= | |
7690 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
b1f5d087 | 7691 | echo "configure:7692: checking whether ${CC-cc} accepts -g" >&5 |
698dcdb6 VZ |
7692 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
7693 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7694 | else | |
7695 | echo 'void f(){}' > conftest.c | |
7696 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
10f2d63a VZ |
7697 | ac_cv_prog_cc_g=yes |
7698 | else | |
698dcdb6 | 7699 | ac_cv_prog_cc_g=no |
10f2d63a | 7700 | fi |
698dcdb6 VZ |
7701 | rm -f conftest* |
7702 | ||
10f2d63a | 7703 | fi |
698dcdb6 VZ |
7704 | |
7705 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
10f2d63a | 7706 | if test "$ac_test_CFLAGS" = set; then |
698dcdb6 | 7707 | CFLAGS="$ac_save_CFLAGS" |
10f2d63a VZ |
7708 | elif test $ac_cv_prog_cc_g = yes; then |
7709 | if test "$GCC" = yes; then | |
7710 | CFLAGS="-g -O2" | |
7711 | else | |
7712 | CFLAGS="-g" | |
7713 | fi | |
7714 | else | |
7715 | if test "$GCC" = yes; then | |
7716 | CFLAGS="-O2" | |
7717 | else | |
7718 | CFLAGS= | |
7719 | fi | |
7720 | fi | |
7721 | ||
7722 | ||
7723 | CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'` | |
7724 | ||
698dcdb6 | 7725 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
b1f5d087 | 7726 | echo "configure:7727: checking how to run the C preprocessor" >&5 |
10f2d63a VZ |
7727 | # On Suns, sometimes $CPP names a directory. |
7728 | if test -n "$CPP" && test -d "$CPP"; then | |
7729 | CPP= | |
7730 | fi | |
7731 | if test -z "$CPP"; then | |
698dcdb6 VZ |
7732 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
7733 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7734 | else | |
7735 | # This must be in double quotes, not single quotes, because CPP may get | |
7736 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
7737 | CPP="${CC-cc} -E" | |
10f2d63a | 7738 | # On the NeXT, cc -E runs the code through the compiler's parser, |
698dcdb6 VZ |
7739 | # not just through cpp. |
7740 | cat > conftest.$ac_ext <<EOF | |
b1f5d087 | 7741 | #line 7742 "configure" |
10f2d63a VZ |
7742 | #include "confdefs.h" |
7743 | #include <assert.h> | |
698dcdb6 VZ |
7744 | Syntax Error |
7745 | EOF | |
7746 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b1f5d087 | 7747 | { (eval echo configure:7748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
7748 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7749 | if test -z "$ac_err"; then | |
10f2d63a VZ |
7750 | : |
7751 | else | |
698dcdb6 VZ |
7752 | echo "$ac_err" >&5 |
7753 | echo "configure: failed program was:" >&5 | |
10f2d63a | 7754 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
7755 | rm -rf conftest* |
7756 | CPP="${CC-cc} -E -traditional-cpp" | |
7757 | cat > conftest.$ac_ext <<EOF | |
b1f5d087 | 7758 | #line 7759 "configure" |
10f2d63a | 7759 | #include "confdefs.h" |
698dcdb6 VZ |
7760 | #include <assert.h> |
7761 | Syntax Error | |
7762 | EOF | |
7763 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b1f5d087 | 7764 | { (eval echo configure:7765: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
7765 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7766 | if test -z "$ac_err"; then | |
7767 | : | |
10f2d63a | 7768 | else |
698dcdb6 VZ |
7769 | echo "$ac_err" >&5 |
7770 | echo "configure: failed program was:" >&5 | |
10f2d63a | 7771 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
7772 | rm -rf conftest* |
7773 | CPP="${CC-cc} -nologo -E" | |
7774 | cat > conftest.$ac_ext <<EOF | |
b1f5d087 | 7775 | #line 7776 "configure" |
10f2d63a VZ |
7776 | #include "confdefs.h" |
7777 | #include <assert.h> | |
698dcdb6 VZ |
7778 | Syntax Error |
7779 | EOF | |
7780 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b1f5d087 | 7781 | { (eval echo configure:7782: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
7782 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7783 | if test -z "$ac_err"; then | |
10f2d63a VZ |
7784 | : |
7785 | else | |
698dcdb6 VZ |
7786 | echo "$ac_err" >&5 |
7787 | echo "configure: failed program was:" >&5 | |
10f2d63a | 7788 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
7789 | rm -rf conftest* |
7790 | CPP=/lib/cpp | |
10f2d63a | 7791 | fi |
698dcdb6 | 7792 | rm -f conftest* |
10f2d63a | 7793 | fi |
698dcdb6 | 7794 | rm -f conftest* |
703e0a69 | 7795 | fi |
698dcdb6 VZ |
7796 | rm -f conftest* |
7797 | ac_cv_prog_CPP="$CPP" | |
7798 | fi | |
7799 | CPP="$ac_cv_prog_CPP" | |
10f2d63a | 7800 | else |
698dcdb6 | 7801 | ac_cv_prog_CPP="$CPP" |
10f2d63a | 7802 | fi |
698dcdb6 | 7803 | echo "$ac_t""$CPP" 1>&6 |
10f2d63a VZ |
7804 | |
7805 | ||
698dcdb6 VZ |
7806 | if test $ac_cv_prog_gcc = yes; then |
7807 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
b1f5d087 | 7808 | echo "configure:7809: checking whether ${CC-cc} needs -traditional" >&5 |
698dcdb6 VZ |
7809 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
7810 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
7811 | else |
7812 | ac_pattern="Autoconf.*'x'" | |
698dcdb6 | 7813 | cat > conftest.$ac_ext <<EOF |
b1f5d087 | 7814 | #line 7815 "configure" |
10f2d63a VZ |
7815 | #include "confdefs.h" |
7816 | #include <sgtty.h> | |
7817 | Autoconf TIOCGETP | |
698dcdb6 | 7818 | EOF |
10f2d63a VZ |
7819 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
7820 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
698dcdb6 | 7821 | rm -rf conftest* |
10f2d63a VZ |
7822 | ac_cv_prog_gcc_traditional=yes |
7823 | else | |
698dcdb6 | 7824 | rm -rf conftest* |
10f2d63a VZ |
7825 | ac_cv_prog_gcc_traditional=no |
7826 | fi | |
7827 | rm -f conftest* | |
7828 | ||
698dcdb6 | 7829 | |
10f2d63a | 7830 | if test $ac_cv_prog_gcc_traditional = no; then |
698dcdb6 | 7831 | cat > conftest.$ac_ext <<EOF |
b1f5d087 | 7832 | #line 7833 "configure" |
10f2d63a VZ |
7833 | #include "confdefs.h" |
7834 | #include <termio.h> | |
7835 | Autoconf TCGETA | |
698dcdb6 | 7836 | EOF |
10f2d63a VZ |
7837 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
7838 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
698dcdb6 | 7839 | rm -rf conftest* |
10f2d63a VZ |
7840 | ac_cv_prog_gcc_traditional=yes |
7841 | fi | |
7842 | rm -f conftest* | |
7843 | ||
7844 | fi | |
7845 | fi | |
698dcdb6 VZ |
7846 | |
7847 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
10f2d63a VZ |
7848 | if test $ac_cv_prog_gcc_traditional = yes; then |
7849 | CC="$CC -traditional" | |
7850 | fi | |
7851 | fi | |
7852 | ||
703e0a69 | 7853 | |
698dcdb6 VZ |
7854 | |
7855 | ac_ext=C | |
7856 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 7857 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
7858 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
7859 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7860 | cross_compiling=$ac_cv_prog_cxx_cross | |
7861 | ||
7862 | ||
7863 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | |
7864 | do | |
7865 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
7866 | set dummy $ac_prog; ac_word=$2 | |
7867 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
b1f5d087 | 7868 | echo "configure:7869: checking for $ac_word" >&5 |
698dcdb6 VZ |
7869 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
7870 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
7871 | else |
7872 | if test -n "$CXX"; then | |
7873 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
7874 | else | |
698dcdb6 VZ |
7875 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
7876 | ac_dummy="$PATH" | |
7877 | for ac_dir in $ac_dummy; do | |
7878 | test -z "$ac_dir" && ac_dir=. | |
7879 | if test -f $ac_dir/$ac_word; then | |
7880 | ac_cv_prog_CXX="$ac_prog" | |
7881 | break | |
7882 | fi | |
7883 | done | |
7884 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
7885 | fi |
7886 | fi | |
698dcdb6 | 7887 | CXX="$ac_cv_prog_CXX" |
10f2d63a | 7888 | if test -n "$CXX"; then |
698dcdb6 | 7889 | echo "$ac_t""$CXX" 1>&6 |
10f2d63a | 7890 | else |
698dcdb6 | 7891 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
7892 | fi |
7893 | ||
698dcdb6 | 7894 | test -n "$CXX" && break |
10f2d63a | 7895 | done |
698dcdb6 | 7896 | test -n "$CXX" || CXX="gcc" |
10f2d63a VZ |
7897 | |
7898 | ||
698dcdb6 | 7899 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
b1f5d087 | 7900 | echo "configure:7901: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
10f2d63a | 7901 | |
698dcdb6 VZ |
7902 | ac_ext=C |
7903 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
7904 | ac_cpp='$CXXCPP $CPPFLAGS' | |
7905 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
7906 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7907 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 7908 | |
698dcdb6 VZ |
7909 | cat > conftest.$ac_ext << EOF |
7910 | ||
b1f5d087 | 7911 | #line 7912 "configure" |
10f2d63a VZ |
7912 | #include "confdefs.h" |
7913 | ||
698dcdb6 VZ |
7914 | int main(){return(0);} |
7915 | EOF | |
b1f5d087 | 7916 | if { (eval echo configure:7917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
7917 | ac_cv_prog_cxx_works=yes |
7918 | # If we can't run a trivial program, we are probably using a cross compiler. | |
7919 | if (./conftest; exit) 2>/dev/null; then | |
7920 | ac_cv_prog_cxx_cross=no | |
7921 | else | |
7922 | ac_cv_prog_cxx_cross=yes | |
7923 | fi | |
7924 | else | |
7925 | echo "configure: failed program was:" >&5 | |
7926 | cat conftest.$ac_ext >&5 | |
7927 | ac_cv_prog_cxx_works=no | |
7928 | fi | |
7929 | rm -fr conftest* | |
7930 | ac_ext=C | |
7931 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
7932 | ac_cpp='$CXXCPP $CPPFLAGS' | |
7933 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
7934 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7935 | cross_compiling=$ac_cv_prog_cxx_cross | |
7936 | ||
7937 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 | |
7938 | if test $ac_cv_prog_cxx_works = no; then | |
7939 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
7940 | fi | |
7941 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
b1f5d087 | 7942 | echo "configure:7943: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
698dcdb6 VZ |
7943 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
7944 | cross_compiling=$ac_cv_prog_cxx_cross | |
7945 | ||
7946 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 | |
b1f5d087 | 7947 | echo "configure:7948: checking whether we are using GNU C++" >&5 |
698dcdb6 VZ |
7948 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
7949 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7950 | else | |
7951 | cat > conftest.C <<EOF | |
7952 | #ifdef __GNUC__ | |
7953 | yes; | |
10f2d63a | 7954 | #endif |
698dcdb6 | 7955 | EOF |
b1f5d087 | 7956 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:7957: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
698dcdb6 VZ |
7957 | ac_cv_prog_gxx=yes |
7958 | else | |
7959 | ac_cv_prog_gxx=no | |
7960 | fi | |
7961 | fi | |
10f2d63a | 7962 | |
698dcdb6 | 7963 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
10f2d63a | 7964 | |
698dcdb6 VZ |
7965 | if test $ac_cv_prog_gxx = yes; then |
7966 | GXX=yes | |
7967 | else | |
7968 | GXX= | |
7969 | fi | |
10f2d63a | 7970 | |
698dcdb6 VZ |
7971 | ac_test_CXXFLAGS="${CXXFLAGS+set}" |
7972 | ac_save_CXXFLAGS="$CXXFLAGS" | |
7973 | CXXFLAGS= | |
7974 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
b1f5d087 | 7975 | echo "configure:7976: checking whether ${CXX-g++} accepts -g" >&5 |
698dcdb6 VZ |
7976 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
7977 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7978 | else | |
7979 | echo 'void f(){}' > conftest.cc | |
7980 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
10f2d63a VZ |
7981 | ac_cv_prog_cxx_g=yes |
7982 | else | |
698dcdb6 | 7983 | ac_cv_prog_cxx_g=no |
10f2d63a | 7984 | fi |
698dcdb6 VZ |
7985 | rm -f conftest* |
7986 | ||
10f2d63a | 7987 | fi |
698dcdb6 VZ |
7988 | |
7989 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
10f2d63a | 7990 | if test "$ac_test_CXXFLAGS" = set; then |
698dcdb6 | 7991 | CXXFLAGS="$ac_save_CXXFLAGS" |
10f2d63a VZ |
7992 | elif test $ac_cv_prog_cxx_g = yes; then |
7993 | if test "$GXX" = yes; then | |
7994 | CXXFLAGS="-g -O2" | |
7995 | else | |
7996 | CXXFLAGS="-g" | |
7997 | fi | |
7998 | else | |
7999 | if test "$GXX" = yes; then | |
8000 | CXXFLAGS="-O2" | |
8001 | else | |
8002 | CXXFLAGS= | |
8003 | fi | |
8004 | fi | |
8005 | ||
8006 | ||
698dcdb6 | 8007 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 |
b1f5d087 | 8008 | echo "configure:8009: checking how to run the C++ preprocessor" >&5 |
1e487827 | 8009 | if test -z "$CXXCPP"; then |
698dcdb6 VZ |
8010 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then |
8011 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 8012 | else |
698dcdb6 VZ |
8013 | ac_ext=C |
8014 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8015 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8016 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8017 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8018 | cross_compiling=$ac_cv_prog_cxx_cross | |
8019 | CXXCPP="${CXX-g++} -E" | |
8020 | cat > conftest.$ac_ext <<EOF | |
b1f5d087 | 8021 | #line 8022 "configure" |
1e487827 | 8022 | #include "confdefs.h" |
698dcdb6 VZ |
8023 | #include <stdlib.h> |
8024 | EOF | |
8025 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b1f5d087 | 8026 | { (eval echo configure:8027: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8027 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8028 | if test -z "$ac_err"; then | |
1e487827 VS |
8029 | : |
8030 | else | |
698dcdb6 VZ |
8031 | echo "$ac_err" >&5 |
8032 | echo "configure: failed program was:" >&5 | |
1e487827 | 8033 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8034 | rm -rf conftest* |
8035 | CXXCPP=/lib/cpp | |
1e487827 | 8036 | fi |
698dcdb6 VZ |
8037 | rm -f conftest* |
8038 | ac_cv_prog_CXXCPP="$CXXCPP" | |
8039 | ac_ext=C | |
8040 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8041 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8042 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8043 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8044 | cross_compiling=$ac_cv_prog_cxx_cross | |
1e487827 | 8045 | fi |
1e487827 | 8046 | fi |
698dcdb6 VZ |
8047 | CXXCPP="$ac_cv_prog_CXXCPP" |
8048 | echo "$ac_t""$CXXCPP" 1>&6 | |
1e487827 | 8049 | |
10f2d63a VZ |
8050 | |
8051 | CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'` | |
8052 | ||
8053 | ac_ext=c | |
698dcdb6 | 8054 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 8055 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
8056 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
8057 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8058 | cross_compiling=$ac_cv_prog_cc_cross | |
8059 | ||
8060 | ||
8061 | # Extract the first word of "ranlib", so it can be a program name with args. | |
8062 | set dummy ranlib; ac_word=$2 | |
8063 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
b1f5d087 | 8064 | echo "configure:8065: checking for $ac_word" >&5 |
698dcdb6 VZ |
8065 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
8066 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8067 | else |
8068 | if test -n "$RANLIB"; then | |
8069 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8070 | else | |
698dcdb6 VZ |
8071 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8072 | ac_dummy="$PATH" | |
8073 | for ac_dir in $ac_dummy; do | |
8074 | test -z "$ac_dir" && ac_dir=. | |
8075 | if test -f $ac_dir/$ac_word; then | |
8076 | ac_cv_prog_RANLIB="ranlib" | |
8077 | break | |
8078 | fi | |
8079 | done | |
8080 | IFS="$ac_save_ifs" | |
8081 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
10f2d63a VZ |
8082 | fi |
8083 | fi | |
698dcdb6 | 8084 | RANLIB="$ac_cv_prog_RANLIB" |
10f2d63a | 8085 | if test -n "$RANLIB"; then |
698dcdb6 | 8086 | echo "$ac_t""$RANLIB" 1>&6 |
10f2d63a | 8087 | else |
698dcdb6 | 8088 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8089 | fi |
8090 | ||
8091 | ||
8092 | # Extract the first word of "ar", so it can be a program name with args. | |
8093 | set dummy ar; ac_word=$2 | |
698dcdb6 | 8094 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
b1f5d087 | 8095 | echo "configure:8096: checking for $ac_word" >&5 |
698dcdb6 VZ |
8096 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
8097 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8098 | else |
8099 | if test -n "$AR"; then | |
8100 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8101 | else | |
698dcdb6 VZ |
8102 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8103 | ac_dummy="$PATH" | |
8104 | for ac_dir in $ac_dummy; do | |
8105 | test -z "$ac_dir" && ac_dir=. | |
8106 | if test -f $ac_dir/$ac_word; then | |
8107 | ac_cv_prog_AR="ar" | |
8108 | break | |
8109 | fi | |
8110 | done | |
8111 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8112 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
8113 | fi | |
8114 | fi | |
698dcdb6 | 8115 | AR="$ac_cv_prog_AR" |
10f2d63a | 8116 | if test -n "$AR"; then |
698dcdb6 | 8117 | echo "$ac_t""$AR" 1>&6 |
10f2d63a | 8118 | else |
698dcdb6 | 8119 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8120 | fi |
8121 | ||
698dcdb6 | 8122 | |
10f2d63a VZ |
8123 | # Find a good install program. We prefer a C program (faster), |
8124 | # so one script is as good as another. But avoid the broken or | |
8125 | # incompatible versions: | |
8126 | # SysV /etc/install, /usr/sbin/install | |
8127 | # SunOS /usr/etc/install | |
8128 | # IRIX /sbin/install | |
8129 | # AIX /bin/install | |
8130 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
8131 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
8132 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
8133 | # ./install, which can be erroneously created by make from ./install.sh. | |
698dcdb6 | 8134 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
b1f5d087 | 8135 | echo "configure:8136: checking for a BSD compatible install" >&5 |
10f2d63a | 8136 | if test -z "$INSTALL"; then |
698dcdb6 VZ |
8137 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
8138 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 8139 | else |
698dcdb6 | 8140 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
10f2d63a VZ |
8141 | for ac_dir in $PATH; do |
8142 | # Account for people who put trailing slashes in PATH elements. | |
698dcdb6 VZ |
8143 | case "$ac_dir/" in |
8144 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
10f2d63a VZ |
8145 | *) |
8146 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
8147 | # Don't use installbsd from OSF since it installs stuff as root | |
8148 | # by default. | |
8149 | for ac_prog in ginstall scoinst install; do | |
698dcdb6 | 8150 | if test -f $ac_dir/$ac_prog; then |
10f2d63a | 8151 | if test $ac_prog = install && |
698dcdb6 | 8152 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
10f2d63a VZ |
8153 | # AIX install. It has an incompatible calling convention. |
8154 | : | |
8155 | else | |
8156 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
8157 | break 2 | |
8158 | fi | |
8159 | fi | |
8160 | done | |
8161 | ;; | |
8162 | esac | |
8163 | done | |
698dcdb6 | 8164 | IFS="$ac_save_IFS" |
10f2d63a VZ |
8165 | |
8166 | fi | |
8167 | if test "${ac_cv_path_install+set}" = set; then | |
698dcdb6 | 8168 | INSTALL="$ac_cv_path_install" |
10f2d63a VZ |
8169 | else |
8170 | # As a last resort, use the slow shell script. We don't cache a | |
8171 | # path for INSTALL within a source directory, because that will | |
8172 | # break other packages using the cache if that directory is | |
8173 | # removed, or if the path is relative. | |
698dcdb6 | 8174 | INSTALL="$ac_install_sh" |
10f2d63a VZ |
8175 | fi |
8176 | fi | |
698dcdb6 | 8177 | echo "$ac_t""$INSTALL" 1>&6 |
10f2d63a VZ |
8178 | |
8179 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
8180 | # It thinks the first close brace ends the variable substitution. | |
8181 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
8182 | ||
698dcdb6 | 8183 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
10f2d63a VZ |
8184 | |
8185 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
8186 | ||
698dcdb6 | 8187 | |
10f2d63a VZ |
8188 | # Extract the first word of "strip", so it can be a program name with args. |
8189 | set dummy strip; ac_word=$2 | |
698dcdb6 | 8190 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
b1f5d087 | 8191 | echo "configure:8192: checking for $ac_word" >&5 |
698dcdb6 VZ |
8192 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
8193 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8194 | else |
8195 | if test -n "$STRIP"; then | |
8196 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
8197 | else | |
698dcdb6 VZ |
8198 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8199 | ac_dummy="$PATH" | |
8200 | for ac_dir in $ac_dummy; do | |
8201 | test -z "$ac_dir" && ac_dir=. | |
8202 | if test -f $ac_dir/$ac_word; then | |
8203 | ac_cv_prog_STRIP="strip" | |
8204 | break | |
8205 | fi | |
8206 | done | |
8207 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8208 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
8209 | fi | |
8210 | fi | |
698dcdb6 | 8211 | STRIP="$ac_cv_prog_STRIP" |
10f2d63a | 8212 | if test -n "$STRIP"; then |
698dcdb6 | 8213 | echo "$ac_t""$STRIP" 1>&6 |
10f2d63a | 8214 | else |
698dcdb6 | 8215 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8216 | fi |
8217 | ||
698dcdb6 VZ |
8218 | |
8219 | echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6 | |
b1f5d087 | 8220 | echo "configure:8221: checking make for VPATH support" >&5 |
10f2d63a VZ |
8221 | cat - << EOF > confMake |
8222 | check : file | |
8223 | cp \$? \$@ | |
8224 | cp \$? final_file | |
8225 | EOF | |
8226 | ||
8227 | if test ! -d sub ; then | |
8228 | mkdir sub | |
8229 | fi | |
8230 | echo dummy > sub/file | |
f6bcfd97 | 8231 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null |
10f2d63a VZ |
8232 | RESULT=$? |
8233 | rm -f sub/file check final_file confMake | |
8234 | rmdir sub | |
8235 | if test "$RESULT" = 0; then | |
698dcdb6 | 8236 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8237 | else |
698dcdb6 VZ |
8238 | echo "$ac_t""no" 1>&6 |
8239 | { echo "configure: error: | |
1e487827 VS |
8240 | You need a make-utility that is able to use the variable |
8241 | VPATH correctly. | |
8242 | If your version of make does not support VPATH correctly, | |
8243 | please install GNU-make (possibly as gmake), and start | |
8244 | configure with the following command: | |
8245 | export MAKE=gmake; ./configure for sh-type shells | |
8246 | setenv MAKE gmake; ./configure for csh-type shells | |
8247 | Also please do remember to use gmake in this case every time | |
8248 | you are trying to compile. | |
698dcdb6 | 8249 | " 1>&2; exit 1; } |
10f2d63a VZ |
8250 | fi |
8251 | ||
8252 | for ac_prog in 'bison -y' byacc | |
8253 | do | |
698dcdb6 | 8254 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
10f2d63a | 8255 | set dummy $ac_prog; ac_word=$2 |
698dcdb6 | 8256 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
b1f5d087 | 8257 | echo "configure:8258: checking for $ac_word" >&5 |
698dcdb6 VZ |
8258 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
8259 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8260 | else |
8261 | if test -n "$YACC"; then | |
8262 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
8263 | else | |
698dcdb6 VZ |
8264 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8265 | ac_dummy="$PATH" | |
8266 | for ac_dir in $ac_dummy; do | |
8267 | test -z "$ac_dir" && ac_dir=. | |
8268 | if test -f $ac_dir/$ac_word; then | |
8269 | ac_cv_prog_YACC="$ac_prog" | |
8270 | break | |
8271 | fi | |
8272 | done | |
8273 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8274 | fi |
8275 | fi | |
698dcdb6 | 8276 | YACC="$ac_cv_prog_YACC" |
10f2d63a | 8277 | if test -n "$YACC"; then |
698dcdb6 | 8278 | echo "$ac_t""$YACC" 1>&6 |
10f2d63a | 8279 | else |
698dcdb6 | 8280 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8281 | fi |
8282 | ||
698dcdb6 | 8283 | test -n "$YACC" && break |
10f2d63a VZ |
8284 | done |
8285 | test -n "$YACC" || YACC="yacc" | |
8286 | ||
698dcdb6 VZ |
8287 | |
8288 | # Extract the first word of "flex", so it can be a program name with args. | |
8289 | set dummy flex; ac_word=$2 | |
8290 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
b1f5d087 | 8291 | echo "configure:8292: checking for $ac_word" >&5 |
698dcdb6 VZ |
8292 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
8293 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8294 | else |
8295 | if test -n "$LEX"; then | |
8296 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
8297 | else | |
698dcdb6 VZ |
8298 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8299 | ac_dummy="$PATH" | |
8300 | for ac_dir in $ac_dummy; do | |
8301 | test -z "$ac_dir" && ac_dir=. | |
8302 | if test -f $ac_dir/$ac_word; then | |
8303 | ac_cv_prog_LEX="flex" | |
8304 | break | |
8305 | fi | |
8306 | done | |
8307 | IFS="$ac_save_ifs" | |
8308 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
10f2d63a VZ |
8309 | fi |
8310 | fi | |
698dcdb6 | 8311 | LEX="$ac_cv_prog_LEX" |
10f2d63a | 8312 | if test -n "$LEX"; then |
698dcdb6 | 8313 | echo "$ac_t""$LEX" 1>&6 |
10f2d63a | 8314 | else |
698dcdb6 | 8315 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8316 | fi |
8317 | ||
8318 | if test -z "$LEXLIB" | |
8319 | then | |
698dcdb6 VZ |
8320 | case "$LEX" in |
8321 | flex*) ac_lib=fl ;; | |
8322 | *) ac_lib=l ;; | |
8323 | esac | |
8324 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
b1f5d087 | 8325 | echo "configure:8326: checking for yywrap in -l$ac_lib" >&5 |
698dcdb6 VZ |
8326 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
8327 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
8328 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8329 | else | |
8330 | ac_save_LIBS="$LIBS" | |
8331 | LIBS="-l$ac_lib $LIBS" | |
8332 | cat > conftest.$ac_ext <<EOF | |
b1f5d087 | 8333 | #line 8334 "configure" |
10f2d63a VZ |
8334 | #include "confdefs.h" |
8335 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8336 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
8337 | builtin and then its argument prototype would still apply. */ |
8338 | char yywrap(); | |
10f2d63a | 8339 | |
698dcdb6 VZ |
8340 | int main() { |
8341 | yywrap() | |
8342 | ; return 0; } | |
8343 | EOF | |
b1f5d087 | 8344 | if { (eval echo configure:8345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
8345 | rm -rf conftest* |
8346 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 8347 | else |
698dcdb6 VZ |
8348 | echo "configure: failed program was:" >&5 |
8349 | cat conftest.$ac_ext >&5 | |
8350 | rm -rf conftest* | |
8351 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 8352 | fi |
698dcdb6 VZ |
8353 | rm -f conftest* |
8354 | LIBS="$ac_save_LIBS" | |
8355 | ||
10f2d63a | 8356 | fi |
698dcdb6 VZ |
8357 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
8358 | echo "$ac_t""yes" 1>&6 | |
8359 | LEXLIB="-l$ac_lib" | |
8360 | else | |
8361 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
8362 | fi |
8363 | ||
8364 | fi | |
8365 | ||
8366 | ||
698dcdb6 | 8367 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
b1f5d087 | 8368 | echo "configure:8369: checking whether ln -s works" >&5 |
698dcdb6 VZ |
8369 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
8370 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 8371 | else |
698dcdb6 VZ |
8372 | rm -f conftestdata |
8373 | if ln -s X conftestdata 2>/dev/null | |
8374 | then | |
8375 | rm -f conftestdata | |
8376 | ac_cv_prog_LN_S="ln -s" | |
10f2d63a | 8377 | else |
698dcdb6 | 8378 | ac_cv_prog_LN_S=ln |
10f2d63a VZ |
8379 | fi |
8380 | fi | |
698dcdb6 VZ |
8381 | LN_S="$ac_cv_prog_LN_S" |
8382 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
8383 | echo "$ac_t""yes" 1>&6 | |
10f2d63a | 8384 | else |
698dcdb6 | 8385 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8386 | fi |
8387 | ||
8388 | ||
8389 | ||
8390 | SEARCH_INCLUDE="\ | |
8391 | /usr/local/include \ | |
8392 | \ | |
8393 | /usr/Motif-1.2/include \ | |
8394 | /usr/Motif-2.1/include \ | |
8395 | \ | |
8396 | /usr/include/Motif1.2 \ | |
8397 | /opt/xpm/include/X11 \ | |
8398 | /opt/GBxpm/include/ \ | |
8399 | /opt/GBxpm/X11/include/ \ | |
8400 | \ | |
8401 | /usr/Motif1.2/include \ | |
8402 | /usr/dt/include \ | |
afc31813 VZ |
8403 | /usr/openwin/include \ |
8404 | \ | |
10f2d63a VZ |
8405 | /usr/include/Xm \ |
8406 | \ | |
8407 | /usr/X11R6/include \ | |
afc31813 | 8408 | /usr/X11R6.4/include \ |
10f2d63a VZ |
8409 | /usr/X11R5/include \ |
8410 | /usr/X11R4/include \ | |
8411 | \ | |
10f2d63a VZ |
8412 | /usr/include/X11R6 \ |
8413 | /usr/include/X11R5 \ | |
8414 | /usr/include/X11R4 \ | |
8415 | \ | |
8416 | /usr/local/X11R6/include \ | |
8417 | /usr/local/X11R5/include \ | |
8418 | /usr/local/X11R4/include \ | |
8419 | \ | |
8420 | /usr/local/include/X11R6 \ | |
8421 | /usr/local/include/X11R5 \ | |
8422 | /usr/local/include/X11R4 \ | |
8423 | \ | |
8424 | /usr/X11/include \ | |
8425 | /usr/include/X11 \ | |
8426 | /usr/local/X11/include \ | |
8427 | /usr/local/include/X11 \ | |
8428 | \ | |
8429 | /usr/X386/include \ | |
8430 | /usr/x386/include \ | |
8431 | /usr/XFree86/include/X11 \ | |
8432 | \ | |
cf27ef00 | 8433 | X:/XFree86/include \ |
ec14dd32 VZ |
8434 | X:/XFree86/include/X11 \ |
8435 | \ | |
10f2d63a VZ |
8436 | /usr/include/gtk \ |
8437 | /usr/local/include/gtk \ | |
8438 | /usr/include/glib \ | |
8439 | /usr/local/include/glib \ | |
8440 | \ | |
8441 | /usr/include/qt \ | |
8442 | /usr/local/include/qt \ | |
8443 | \ | |
8444 | /usr/include/windows \ | |
8445 | /usr/include/wine \ | |
8446 | /usr/local/include/wine \ | |
8447 | \ | |
8448 | /usr/unsupported/include \ | |
8449 | /usr/athena/include \ | |
8450 | /usr/local/x11r5/include \ | |
8451 | /usr/lpp/Xamples/include \ | |
8452 | \ | |
10f2d63a | 8453 | /usr/openwin/share/include \ |
928b5c08 VZ |
8454 | \ |
8455 | /usr/include" | |
10f2d63a VZ |
8456 | |
8457 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
8458 | ||
698dcdb6 VZ |
8459 | |
8460 | cat > confcache <<\EOF | |
10f2d63a VZ |
8461 | # This file is a shell script that caches the results of configure |
8462 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
8463 | # scripts and configure runs. It is not useful on other systems. |
8464 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 8465 | # |
698dcdb6 VZ |
8466 | # By default, configure uses ./config.cache as the cache file, |
8467 | # creating it if it does not exist already. You can give configure | |
8468 | # the --cache-file=FILE option to use a different cache file; that is | |
8469 | # what configure does when it calls configure scripts in | |
8470 | # subdirectories, so they share the cache. | |
8471 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
8472 | # config.status only pays attention to the cache file if you give it the | |
8473 | # --recheck option to rerun configure. | |
10f2d63a | 8474 | # |
698dcdb6 | 8475 | EOF |
10f2d63a VZ |
8476 | # The following way of writing the cache mishandles newlines in values, |
8477 | # but we know of no workaround that is simple, portable, and efficient. | |
8478 | # So, don't put newlines in cache variables' values. | |
8479 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
8480 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
8481 | (set) 2>&1 | |
8482 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
8483 | *ac_space=\ *) | |
8484 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
8485 | # turns \\\\ into \\, and sed turns \\ into \). | |
8486 | sed -n \ | |
8487 | -e "s/'/'\\\\''/g" \ | |
8488 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
8489 | ;; | |
8490 | *) | |
8491 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
8492 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
8493 | ;; | |
8494 | esac >> confcache | |
8495 | if cmp -s $cache_file confcache; then | |
8496 | : | |
8497 | else | |
10f2d63a | 8498 | if test -w $cache_file; then |
698dcdb6 VZ |
8499 | echo "updating cache $cache_file" |
8500 | cat confcache > $cache_file | |
10f2d63a VZ |
8501 | else |
8502 | echo "not updating unwritable cache $cache_file" | |
8503 | fi | |
8504 | fi | |
8505 | rm -f confcache | |
8506 | ||
698dcdb6 VZ |
8507 | |
8508 | ||
dad6c0ea VZ |
8509 | AFMINSTALL= |
8510 | ||
10f2d63a | 8511 | if test "$wxUSE_GUI" = "yes"; then |
1e6feb95 | 8512 | USE_GUI=1 |
10f2d63a | 8513 | |
1e6feb95 VZ |
8514 | TOOLKIT= |
8515 | TOOLKIT_INCLUDE= | |
10f2d63a | 8516 | |
1e6feb95 VZ |
8517 | GUI_TK_LIBRARY= |
8518 | GUI_TK_LINK= | |
10f2d63a | 8519 | |
1e6feb95 VZ |
8520 | WXGTK12= |
8521 | WXGTK127= | |
8522 | WXGTK20= | |
10f2d63a | 8523 | |
1e6feb95 | 8524 | WXWINE= |
10f2d63a | 8525 | |
1e6feb95 VZ |
8526 | if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then |
8527 | if test "$cross_compiling" = "yes" ; then | |
8528 | echo "configure: warning: skipping windows.h check for cross-compilation" 1>&2 | |
8529 | else | |
8530 | echo $ac_n "checking for Windows headers""... $ac_c" 1>&6 | |
b1f5d087 | 8531 | echo "configure:8532: checking for Windows headers" >&5 |
1e6feb95 | 8532 | |
10f2d63a VZ |
8533 | ac_find_includes= |
8534 | for ac_dir in $SEARCH_INCLUDE; | |
8535 | do | |
8536 | if test -f "$ac_dir/windows.h"; then | |
8537 | ac_find_includes=$ac_dir | |
8538 | break | |
8539 | fi | |
8540 | done | |
8541 | ||
1e6feb95 VZ |
8542 | if test "$ac_find_includes" != "" ; then |
8543 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
8544 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes" | |
8545 | else | |
8546 | echo "$ac_t""no" 1>&6 | |
8547 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
8548 | fi | |
10f2d63a | 8549 | fi |
10f2d63a | 8550 | |
1e6feb95 VZ |
8551 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw" |
8552 | LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32" | |
f6bcfd97 | 8553 | |
1e6feb95 VZ |
8554 | if test "$wxUSE_ODBC" = "yes" ; then |
8555 | LIBS="$LIBS -lodbc32 -lole32 -loleaut32" | |
8556 | fi | |
10f2d63a | 8557 | |
1e6feb95 VZ |
8558 | if test "$wxUSE_MINGW" = 1; then |
8559 | LDFLAGS="$LDFLAGS -mwindows" | |
8560 | fi | |
32832908 | 8561 | |
1e6feb95 VZ |
8562 | TOOLKIT=MSW |
8563 | GUIDIST=MSW_DIST | |
32832908 | 8564 | |
1e6feb95 VZ |
8565 | RCINCSWITCH="--include-dir" |
8566 | RCDEFSWITCH="--define" | |
8567 | RCPREPROCESSOR="--preprocessor \"\$(CC) -c -E -xc-header -DRC_INVOKED\"" | |
8568 | RCINPUTSWITCH="-i" | |
8569 | RCOUTPUTSWITCH="-o" | |
8570 | RESFLAGS="$RCPREPROCESSOR $RCINCSWITCH \$(top_srcdir)/include $RCINCSWITCH \$(top_srcdir)/\$(program_dir) $RCDEFSWITCH __WIN32__ $RCDEFSWITCH __WIN95__ $RCDEFSWITCH __GNUWIN32__" | |
32832908 | 8571 | |
1e6feb95 VZ |
8572 | RESPROGRAM="\$(RES_PROGRAM)" |
8573 | fi | |
10f2d63a | 8574 | |
1e6feb95 | 8575 | if test "$wxUSE_GTK" = 1; then |
8168de4c | 8576 | echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6 |
b1f5d087 | 8577 | echo "configure:8578: checking for GTK+ version" >&5 |
8168de4c VZ |
8578 | |
8579 | gtk_version_cached=1 | |
8580 | if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then | |
8581 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8582 | else | |
8583 | ||
8584 | gtk_version_cached=0 | |
8585 | echo "$ac_t""""" 1>&6 | |
8586 | ||
8587 | wx_cv_lib_gtk= | |
8588 | if test "x$wxUSE_GTK2" = "xyes"; then | |
8589 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
6f72b082 OK |
8590 | if test "${with_gtk_prefix+set}" = set; then |
8591 | withval="$with_gtk_prefix" | |
8592 | gtk_config_prefix="$withval" | |
8593 | else | |
8594 | gtk_config_prefix="" | |
698dcdb6 | 8595 | fi |
6f72b082 OK |
8596 | |
8597 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
8598 | if test "${with_gtk_exec_prefix+set}" = set; then | |
8599 | withval="$with_gtk_exec_prefix" | |
8600 | gtk_config_exec_prefix="$withval" | |
8601 | else | |
8602 | gtk_config_exec_prefix="" | |
698dcdb6 VZ |
8603 | fi |
8604 | ||
6f72b082 OK |
8605 | # Check whether --enable-gtktest or --disable-gtktest was given. |
8606 | if test "${enable_gtktest+set}" = set; then | |
8607 | enableval="$enable_gtktest" | |
698dcdb6 | 8608 | : |
6f72b082 OK |
8609 | else |
8610 | enable_gtktest=yes | |
698dcdb6 VZ |
8611 | fi |
8612 | ||
6f72b082 | 8613 | |
8168de4c | 8614 | for module in . |
6f72b082 OK |
8615 | do |
8616 | case "$module" in | |
8168de4c | 8617 | gthread) |
6f72b082 OK |
8618 | gtk_config_args="$gtk_config_args gthread" |
8619 | ;; | |
8620 | esac | |
8621 | done | |
8622 | ||
8623 | if test x$gtk_config_exec_prefix != x ; then | |
8624 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
8625 | if test x${GTK_CONFIG_2_0+set} != xset ; then | |
8626 | GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0 | |
8627 | fi | |
8628 | fi | |
8629 | if test x$gtk_config_prefix != x ; then | |
8630 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
8631 | if test x${GTK_CONFIG_2_0+set} != xset ; then | |
8632 | GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0 | |
8633 | fi | |
8634 | fi | |
8635 | ||
8636 | # Extract the first word of "gtk-config-2.0", so it can be a program name with args. | |
8637 | set dummy gtk-config-2.0; ac_word=$2 | |
698dcdb6 | 8638 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
b1f5d087 | 8639 | echo "configure:8640: checking for $ac_word" >&5 |
698dcdb6 VZ |
8640 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then |
8641 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6f72b082 | 8642 | else |
698dcdb6 VZ |
8643 | case "$GTK_CONFIG_2_0" in |
8644 | /*) | |
6f72b082 OK |
8645 | ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path. |
8646 | ;; | |
698dcdb6 VZ |
8647 | ?:/*) |
8648 | ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path. | |
8649 | ;; | |
6f72b082 | 8650 | *) |
698dcdb6 VZ |
8651 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8652 | ac_dummy="$PATH" | |
8653 | for ac_dir in $ac_dummy; do | |
8654 | test -z "$ac_dir" && ac_dir=. | |
8655 | if test -f $ac_dir/$ac_word; then | |
8656 | ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word" | |
8657 | break | |
8658 | fi | |
8659 | done | |
8660 | IFS="$ac_save_ifs" | |
6f72b082 OK |
8661 | test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no" |
8662 | ;; | |
8663 | esac | |
8664 | fi | |
698dcdb6 | 8665 | GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0" |
6f72b082 | 8666 | if test -n "$GTK_CONFIG_2_0"; then |
698dcdb6 | 8667 | echo "$ac_t""$GTK_CONFIG_2_0" 1>&6 |
6f72b082 | 8668 | else |
698dcdb6 | 8669 | echo "$ac_t""no" 1>&6 |
6f72b082 OK |
8670 | fi |
8671 | ||
8672 | min_gtk_version=1.3.1 | |
698dcdb6 | 8673 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
b1f5d087 | 8674 | echo "configure:8675: checking for GTK - version >= $min_gtk_version" >&5 |
6f72b082 OK |
8675 | no_gtk="" |
8676 | if test "$GTK_CONFIG_2_0" = "no" ; then | |
8677 | no_gtk=yes | |
8678 | else | |
8679 | GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags` | |
8680 | GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs` | |
8681 | gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
8682 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
8683 | gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
8684 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
8685 | gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
8686 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
8687 | if test "x$enable_gtktest" = "xyes" ; then | |
8688 | ac_save_CFLAGS="$CFLAGS" | |
8689 | ac_save_LIBS="$LIBS" | |
8690 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
8691 | LIBS="$GTK_LIBS $LIBS" | |
8692 | rm -f conf.gtktest | |
8693 | if test "$cross_compiling" = yes; then | |
8694 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
8695 | else | |
698dcdb6 | 8696 | cat > conftest.$ac_ext <<EOF |
b1f5d087 | 8697 | #line 8698 "configure" |
6f72b082 OK |
8698 | #include "confdefs.h" |
8699 | ||
8700 | #include <gtk/gtk.h> | |
8701 | #include <stdio.h> | |
8702 | #include <stdlib.h> | |
8703 | ||
8168de4c | 8704 | int |
6f72b082 OK |
8705 | main () |
8706 | { | |
8707 | int major, minor, micro; | |
8708 | char *tmp_version; | |
8709 | ||
8710 | system ("touch conf.gtktest"); | |
8711 | ||
8712 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
8713 | tmp_version = g_strdup("$min_gtk_version"); | |
8714 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
8715 | printf("%s, bad version string\n", "$min_gtk_version"); | |
8716 | exit(1); | |
8717 | } | |
8718 | ||
8719 | if ((gtk_major_version != $gtk_config_major_version) || | |
8720 | (gtk_minor_version != $gtk_config_minor_version) || | |
8721 | (gtk_micro_version != $gtk_config_micro_version)) | |
8722 | { | |
8168de4c | 8723 | printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
6f72b082 OK |
8724 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
8725 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
8726 | printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n"); | |
8727 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
8728 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
8729 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
8730 | printf("*** required on your system.\n"); | |
8731 | printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n"); | |
8732 | printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n"); | |
8733 | printf("*** before re-running configure\n"); | |
8168de4c | 8734 | } |
6f72b082 OK |
8735 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
8736 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
8168de4c | 8737 | (gtk_minor_version != GTK_MINOR_VERSION) || |
6f72b082 OK |
8738 | (gtk_micro_version != GTK_MICRO_VERSION)) |
8739 | { | |
8740 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
8168de4c | 8741 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); |
6f72b082 | 8742 | printf("*** library (version %d.%d.%d)\n", |
8168de4c | 8743 | gtk_major_version, gtk_minor_version, gtk_micro_version); |
6f72b082 OK |
8744 | } |
8745 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
8746 | else | |
8747 | { | |
8748 | if ((gtk_major_version > major) || | |
8749 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
8750 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
8751 | { | |
8752 | return 0; | |
8753 | } | |
8754 | else | |
8755 | { | |
8756 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
8757 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
8758 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
8168de4c | 8759 | major, minor, micro); |
6f72b082 OK |
8760 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); |
8761 | printf("***\n"); | |
8762 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
8763 | printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n"); | |
8764 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
8765 | printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n"); | |
8766 | printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n"); | |
8767 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
8768 | printf("*** so that the correct libraries are found at run-time))\n"); | |
8769 | } | |
8770 | } | |
8771 | return 1; | |
8772 | } | |
8773 | ||
698dcdb6 | 8774 | EOF |
b1f5d087 | 8775 | if { (eval echo configure:8776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 8776 | then |
6f72b082 OK |
8777 | : |
8778 | else | |
698dcdb6 VZ |
8779 | echo "configure: failed program was:" >&5 |
8780 | cat conftest.$ac_ext >&5 | |
8781 | rm -fr conftest* | |
8782 | no_gtk=yes | |
6f72b082 | 8783 | fi |
698dcdb6 | 8784 | rm -fr conftest* |
6f72b082 | 8785 | fi |
698dcdb6 | 8786 | |
6f72b082 OK |
8787 | CFLAGS="$ac_save_CFLAGS" |
8788 | LIBS="$ac_save_LIBS" | |
8789 | fi | |
8790 | fi | |
8791 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 8792 | echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6 |
8168de4c | 8793 | wx_cv_lib_gtk=2.0 |
6f72b082 | 8794 | else |
698dcdb6 | 8795 | echo "$ac_t""no" 1>&6 |
6f72b082 OK |
8796 | if test "$GTK_CONFIG_2_0" = "no" ; then |
8797 | echo "*** The gtk-config-2.0 script installed by GTK could not be found" | |
8798 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
8799 | echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the" | |
8800 | echo "*** full path to gtk-config-2.0." | |
8801 | else | |
8802 | if test -f conf.gtktest ; then | |
8803 | : | |
8804 | else | |
8805 | echo "*** Could not run GTK test program, checking why..." | |
8806 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
8807 | LIBS="$LIBS $GTK_LIBS" | |
698dcdb6 | 8808 | cat > conftest.$ac_ext <<EOF |
b1f5d087 | 8809 | #line 8810 "configure" |
6f72b082 OK |
8810 | #include "confdefs.h" |
8811 | ||
8812 | #include <gtk/gtk.h> | |
8813 | #include <stdio.h> | |
8814 | ||
698dcdb6 VZ |
8815 | int main() { |
8816 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
8817 | ; return 0; } | |
8818 | EOF | |
b1f5d087 | 8819 | if { (eval echo configure:8820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 8820 | rm -rf conftest* |
6f72b082 OK |
8821 | echo "*** The test program compiled, but did not run. This usually means" |
8822 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
8823 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
8824 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
8825 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
8826 | echo "*** is required on your system" | |
8168de4c | 8827 | echo "***" |
6f72b082 OK |
8828 | echo "*** If you have an old version installed, it is best to remove it, although" |
8829 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
8830 | echo "***" | |
8831 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
8832 | echo "*** came with the system with the command" | |
8833 | echo "***" | |
698dcdb6 | 8834 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
6f72b082 | 8835 | else |
698dcdb6 VZ |
8836 | echo "configure: failed program was:" >&5 |
8837 | cat conftest.$ac_ext >&5 | |
8838 | rm -rf conftest* | |
8839 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
6f72b082 OK |
8840 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
8841 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
698dcdb6 | 8842 | echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0" |
6f72b082 | 8843 | fi |
698dcdb6 | 8844 | rm -f conftest* |
6f72b082 OK |
8845 | CFLAGS="$ac_save_CFLAGS" |
8846 | LIBS="$ac_save_LIBS" | |
8847 | fi | |
8848 | fi | |
8849 | GTK_CFLAGS="" | |
8850 | GTK_LIBS="" | |
8168de4c VZ |
8851 | gthread |
8852 | fi | |
8853 | ||
8854 | ||
8855 | rm -f conf.gtktest | |
8856 | ||
8857 | fi | |
8858 | ||
8859 | if test -z "$wx_cv_lib_gtk"; then | |
8860 | ||
10f2d63a VZ |
8861 | if test x$gtk_config_exec_prefix != x ; then |
8862 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
8863 | if test x${GTK_CONFIG+set} != xset ; then | |
8864 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
8865 | fi | |
8866 | fi | |
8867 | if test x$gtk_config_prefix != x ; then | |
8868 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
8869 | if test x${GTK_CONFIG+set} != xset ; then | |
8870 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
8871 | fi | |
8872 | fi | |
8873 | ||
8874 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
8875 | set dummy gtk-config; ac_word=$2 | |
698dcdb6 | 8876 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
b1f5d087 | 8877 | echo "configure:8878: checking for $ac_word" >&5 |
698dcdb6 VZ |
8878 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
8879 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 8880 | else |
698dcdb6 VZ |
8881 | case "$GTK_CONFIG" in |
8882 | /*) | |
f6bcfd97 BP |
8883 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
8884 | ;; | |
698dcdb6 VZ |
8885 | ?:/*) |
8886 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
8887 | ;; | |
f6bcfd97 | 8888 | *) |
698dcdb6 VZ |
8889 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8890 | ac_dummy="$PATH" | |
8891 | for ac_dir in $ac_dummy; do | |
8892 | test -z "$ac_dir" && ac_dir=. | |
8893 | if test -f $ac_dir/$ac_word; then | |
8894 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
8895 | break | |
8896 | fi | |
8897 | done | |
8898 | IFS="$ac_save_ifs" | |
f6bcfd97 BP |
8899 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
8900 | ;; | |
8901 | esac | |
8902 | fi | |
698dcdb6 | 8903 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
f6bcfd97 | 8904 | if test -n "$GTK_CONFIG"; then |
698dcdb6 | 8905 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
f6bcfd97 | 8906 | else |
698dcdb6 | 8907 | echo "$ac_t""no" 1>&6 |
f6bcfd97 BP |
8908 | fi |
8909 | ||
8910 | min_gtk_version=1.2.7 | |
698dcdb6 | 8911 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
b1f5d087 | 8912 | echo "configure:8913: checking for GTK - version >= $min_gtk_version" >&5 |
f6bcfd97 BP |
8913 | no_gtk="" |
8914 | if test "$GTK_CONFIG" != "no" ; then | |
8915 | GTK_CFLAGS=`$GTK_CONFIG --cflags` | |
8916 | GTK_LIBS=`$GTK_CONFIG --libs gthread` | |
8917 | ac_save_CFLAGS="$CFLAGS" | |
8918 | ac_save_LIBS="$LIBS" | |
8919 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
8920 | LIBS="$LIBS $GTK_LIBS" | |
8921 | if test "$cross_compiling" = yes; then | |
8922 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
8923 | else | |
698dcdb6 | 8924 | cat > conftest.$ac_ext <<EOF |
b1f5d087 | 8925 | #line 8926 "configure" |
f6bcfd97 BP |
8926 | #include "confdefs.h" |
8927 | ||
8928 | #include <gtk/gtk.h> | |
8929 | #include <gtk/gtkfeatures.h> | |
8930 | #include <stdio.h> | |
8931 | #include <stdlib.h> | |
8932 | ||
8933 | int | |
8934 | main () | |
8935 | { | |
8936 | int major, minor, micro; | |
8937 | ||
8938 | if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) { | |
8939 | printf("%s, bad version string\n", "$min_gtk_version"); | |
8940 | exit(1); | |
8941 | } | |
8942 | ||
8943 | if ((GTK_MAJOR_VERSION != gtk_major_version) || | |
8944 | (GTK_MINOR_VERSION != gtk_minor_version) || | |
8945 | (GTK_MICRO_VERSION != gtk_micro_version)) { | |
8946 | printf("Headers vs. library version mismatch!\n"); | |
8947 | exit(1); | |
8948 | } | |
8949 | ||
8950 | if (gtk_minor_version == 1) return FALSE; | |
8951 | ||
8952 | return !((gtk_major_version > major) || | |
8953 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
8954 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))); | |
8955 | } | |
8956 | ||
698dcdb6 | 8957 | EOF |
b1f5d087 | 8958 | if { (eval echo configure:8959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 8959 | then |
f6bcfd97 BP |
8960 | : |
8961 | else | |
698dcdb6 VZ |
8962 | echo "configure: failed program was:" >&5 |
8963 | cat conftest.$ac_ext >&5 | |
8964 | rm -fr conftest* | |
8965 | no_gtk=yes | |
f6bcfd97 | 8966 | fi |
698dcdb6 | 8967 | rm -fr conftest* |
f6bcfd97 | 8968 | fi |
698dcdb6 | 8969 | |
f6bcfd97 BP |
8970 | CFLAGS="$ac_save_CFLAGS" |
8971 | LIBS="$ac_save_LIBS" | |
8972 | else | |
8973 | no_gtk=yes | |
8974 | fi | |
8975 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 8976 | echo "$ac_t""yes" 1>&6 |
8168de4c | 8977 | wx_cv_lib_gtk=1.2.7 |
f6bcfd97 | 8978 | else |
698dcdb6 | 8979 | echo "$ac_t""no" 1>&6 |
f6bcfd97 BP |
8980 | GTK_CFLAGS="" |
8981 | GTK_LIBS="" | |
8982 | : | |
8983 | fi | |
698dcdb6 VZ |
8984 | |
8985 | ||
f6bcfd97 | 8986 | |
8168de4c VZ |
8987 | fi |
8988 | ||
8989 | if test -z "$wx_cv_lib_gtk"; then | |
8990 | ||
f6bcfd97 BP |
8991 | if test x$gtk_config_exec_prefix != x ; then |
8992 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
8993 | if test x${GTK_CONFIG+set} != xset ; then | |
8994 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
8995 | fi | |
8996 | fi | |
8997 | if test x$gtk_config_prefix != x ; then | |
8998 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
8999 | if test x${GTK_CONFIG+set} != xset ; then | |
9000 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
9001 | fi | |
9002 | fi | |
9003 | ||
9004 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
9005 | set dummy gtk-config; ac_word=$2 | |
698dcdb6 | 9006 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
b1f5d087 | 9007 | echo "configure:9008: checking for $ac_word" >&5 |
698dcdb6 VZ |
9008 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
9009 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 9010 | else |
698dcdb6 VZ |
9011 | case "$GTK_CONFIG" in |
9012 | /*) | |
10f2d63a VZ |
9013 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
9014 | ;; | |
698dcdb6 VZ |
9015 | ?:/*) |
9016 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
9017 | ;; | |
10f2d63a | 9018 | *) |
698dcdb6 VZ |
9019 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9020 | ac_dummy="$PATH" | |
9021 | for ac_dir in $ac_dummy; do | |
9022 | test -z "$ac_dir" && ac_dir=. | |
9023 | if test -f $ac_dir/$ac_word; then | |
9024 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
9025 | break | |
9026 | fi | |
9027 | done | |
9028 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9029 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
9030 | ;; | |
9031 | esac | |
9032 | fi | |
698dcdb6 | 9033 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
10f2d63a | 9034 | if test -n "$GTK_CONFIG"; then |
698dcdb6 | 9035 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
10f2d63a | 9036 | else |
698dcdb6 | 9037 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9038 | fi |
9039 | ||
04165bec | 9040 | min_gtk_version=1.2.3 |
698dcdb6 | 9041 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
b1f5d087 | 9042 | echo "configure:9043: checking for GTK - version >= $min_gtk_version" >&5 |
10f2d63a VZ |
9043 | no_gtk="" |
9044 | if test "$GTK_CONFIG" != "no" ; then | |
9045 | GTK_CFLAGS=`$GTK_CONFIG --cflags` | |
2224580a | 9046 | GTK_LIBS=`$GTK_CONFIG --libs gthread` |
10f2d63a VZ |
9047 | ac_save_CFLAGS="$CFLAGS" |
9048 | ac_save_LIBS="$LIBS" | |
9049 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
9050 | LIBS="$LIBS $GTK_LIBS" | |
9051 | if test "$cross_compiling" = yes; then | |
9052 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
9053 | else | |
698dcdb6 | 9054 | cat > conftest.$ac_ext <<EOF |
b1f5d087 | 9055 | #line 9056 "configure" |
10f2d63a VZ |
9056 | #include "confdefs.h" |
9057 | ||
9058 | #include <gtk/gtk.h> | |
f49f2b0c | 9059 | #include <gtk/gtkfeatures.h> |
10f2d63a | 9060 | #include <stdio.h> |
32832908 | 9061 | #include <stdlib.h> |
10f2d63a VZ |
9062 | |
9063 | int | |
9064 | main () | |
9065 | { | |
9066 | int major, minor, micro; | |
9067 | ||
9068 | if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) { | |
9069 | printf("%s, bad version string\n", "$min_gtk_version"); | |
9070 | exit(1); | |
9071 | } | |
9072 | ||
f49f2b0c RR |
9073 | if ((GTK_MAJOR_VERSION != gtk_major_version) || |
9074 | (GTK_MINOR_VERSION != gtk_minor_version) || | |
9075 | (GTK_MICRO_VERSION != gtk_micro_version)) { | |
9076 | printf("Headers vs. library version mismatch!\n"); | |
9077 | exit(1); | |
9078 | } | |
9079 | ||
10f2d63a VZ |
9080 | if (gtk_minor_version == 1) return FALSE; |
9081 | ||
9082 | return !((gtk_major_version > major) || | |
9083 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
9084 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))); | |
9085 | } | |
9086 | ||
698dcdb6 | 9087 | EOF |
b1f5d087 | 9088 | if { (eval echo configure:9089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 9089 | then |
10f2d63a VZ |
9090 | : |
9091 | else | |
698dcdb6 VZ |
9092 | echo "configure: failed program was:" >&5 |
9093 | cat conftest.$ac_ext >&5 | |
9094 | rm -fr conftest* | |
9095 | no_gtk=yes | |
10f2d63a | 9096 | fi |
698dcdb6 | 9097 | rm -fr conftest* |
10f2d63a | 9098 | fi |
698dcdb6 | 9099 | |
10f2d63a VZ |
9100 | CFLAGS="$ac_save_CFLAGS" |
9101 | LIBS="$ac_save_LIBS" | |
9102 | else | |
9103 | no_gtk=yes | |
9104 | fi | |
9105 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 9106 | echo "$ac_t""yes" 1>&6 |
8168de4c | 9107 | wx_cv_lib_gtk=1.2.3 |
10f2d63a | 9108 | else |
698dcdb6 | 9109 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9110 | GTK_CFLAGS="" |
9111 | GTK_LIBS="" | |
7e99ad86 | 9112 | : |
10f2d63a | 9113 | fi |
698dcdb6 VZ |
9114 | |
9115 | ||
10f2d63a | 9116 | |
8168de4c VZ |
9117 | fi |
9118 | ||
9119 | if test -z "$wx_cv_lib_gtk"; then | |
9120 | wx_cv_lib_gtk=none | |
138be253 VZ |
9121 | else |
9122 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
9123 | wx_cv_libs_gtk=$GTK_LIBS | |
8168de4c VZ |
9124 | fi |
9125 | ||
1e6feb95 | 9126 | |
8168de4c | 9127 | fi |
703e0a69 | 9128 | |
698dcdb6 | 9129 | |
8168de4c VZ |
9130 | if test "$gtk_version_cached" = 1; then |
9131 | echo "$ac_t""$wx_cv_lib_gtk" 1>&6 | |
1e6feb95 | 9132 | fi |
698dcdb6 | 9133 | |
8168de4c VZ |
9134 | case "$wx_cv_lib_gtk" in |
9135 | 2.0) WXGTK20=1 | |
9136 | ;; | |
9137 | 1.2.7) WXGTK127=1 | |
9138 | ;; | |
9139 | 1.2.3) WXGTK12=1 | |
9140 | ;; | |
9141 | *) { echo "configure: error: | |
9142 | Please check that gtk-config is in path, the directory | |
9143 | where GTK+ libraries are installed (returned by | |
9144 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
9145 | equivalent variable and GTK+ is version 1.2.3 or above. | |
9146 | " 1>&2; exit 1; } | |
9147 | ;; | |
9148 | esac | |
2224580a | 9149 | |
138be253 | 9150 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" |
11dfaa5f | 9151 | GUI_TK_LIBRARY="$wx_cv_libs_gtk" |
698dcdb6 | 9152 | |
1e6feb95 VZ |
9153 | AFMINSTALL=afminstall |
9154 | TOOLKIT=GTK | |
9155 | GUIDIST=GTK_DIST | |
7ec2881a | 9156 | |
1e6feb95 | 9157 | echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6 |
b1f5d087 | 9158 | echo "configure:9159: checking for gdk_im_open in -lgdk" >&5 |
698dcdb6 VZ |
9159 | ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'` |
9160 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9161 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7ec2881a | 9162 | else |
698dcdb6 | 9163 | ac_save_LIBS="$LIBS" |
7ec2881a | 9164 | LIBS="-lgdk $LIBS" |
698dcdb6 | 9165 | cat > conftest.$ac_ext <<EOF |
b1f5d087 | 9166 | #line 9167 "configure" |
7ec2881a RR |
9167 | #include "confdefs.h" |
9168 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9169 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9170 | builtin and then its argument prototype would still apply. */ |
9171 | char gdk_im_open(); | |
9172 | ||
9173 | int main() { | |
9174 | gdk_im_open() | |
9175 | ; return 0; } | |
9176 | EOF | |
b1f5d087 | 9177 | if { (eval echo configure:9178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9178 | rm -rf conftest* |
9179 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9180 | else | |
9181 | echo "configure: failed program was:" >&5 | |
9182 | cat conftest.$ac_ext >&5 | |
9183 | rm -rf conftest* | |
9184 | eval "ac_cv_lib_$ac_lib_var=no" | |
9185 | fi | |
9186 | rm -f conftest* | |
9187 | LIBS="$ac_save_LIBS" | |
9188 | ||
9189 | fi | |
9190 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9191 | echo "$ac_t""yes" 1>&6 | |
9192 | cat >> confdefs.h <<\EOF | |
7ec2881a RR |
9193 | #define HAVE_XIM 1 |
9194 | EOF | |
9195 | ||
698dcdb6 VZ |
9196 | else |
9197 | echo "$ac_t""no" 1>&6 | |
7ec2881a RR |
9198 | fi |
9199 | ||
1e6feb95 | 9200 | fi |
10f2d63a | 9201 | |
1e6feb95 VZ |
9202 | if test "$wxUSE_MGL" = 1; then |
9203 | ||
9204 | echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6 | |
b1f5d087 | 9205 | echo "configure:9206: checking for SciTech MGL library" >&5 |
1e6feb95 VZ |
9206 | if test "x$MGL_ROOT" = x ; then |
9207 | echo "$ac_t""not found" 1>&6 | |
9208 | { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; } | |
9209 | else | |
9210 | echo "$ac_t""$MGL_ROOT" 1>&6 | |
9211 | fi | |
9212 | ||
9213 | MGL_OS=linux/gcc/glibc | |
9214 | MGL_LIB_TYPE="" | |
9215 | ||
9216 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
9217 | if test -f $MGL_ROOT/lib/debug/$MGL_OS/libmgl.a ; then | |
9218 | MGL_LIB_TYPE=debug | |
9219 | fi | |
9220 | fi | |
9221 | if test "x$MGL_LIB_TYPE" = x ; then | |
9222 | if test -f $MGL_ROOT/lib/release/$MGL_OS/libmgl.a ; then | |
9223 | MGL_LIB_TYPE=release | |
9224 | else | |
9225 | { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; } | |
9226 | fi | |
9227 | fi | |
9228 | ||
9229 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" | |
9230 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$MGL_LIB_TYPE/$MGL_OS -lmgl -lmglcpp -lpm" | |
9231 | ||
9232 | AFMINSTALL=afminstall | |
9233 | TOOLKIT=MGL | |
9234 | GUIDIST=MGL_DIST | |
9235 | fi | |
9236 | ||
9237 | if test "$wxUSE_WINE" = 1; then | |
9238 | echo $ac_n "checking for WINE includes""... $ac_c" 1>&6 | |
b1f5d087 | 9239 | echo "configure:9240: checking for WINE includes" >&5 |
1e6feb95 | 9240 | |
10f2d63a VZ |
9241 | ac_find_includes= |
9242 | for ac_dir in $SEARCH_INCLUDE; | |
9243 | do | |
9244 | if test -f "$ac_dir/windows.h"; then | |
9245 | ac_find_includes=$ac_dir | |
9246 | break | |
9247 | fi | |
9248 | done | |
9249 | ||
1e6feb95 VZ |
9250 | if test "$ac_find_includes" != "" ; then |
9251 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
9252 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes" | |
9253 | else | |
9254 | echo "$ac_t""no" 1>&6 | |
9255 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
9256 | fi | |
10f2d63a | 9257 | |
1e6feb95 VZ |
9258 | XPM_LINK="" |
9259 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
b1f5d087 | 9260 | echo "configure:9261: checking for Xpm library" >&5 |
1e6feb95 | 9261 | |
10f2d63a VZ |
9262 | ac_find_libraries= |
9263 | for ac_dir in $SEARCH_LIB; | |
9264 | do | |
9265 | for ac_extension in a so sl; do | |
9266 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
9267 | ac_find_libraries=$ac_dir | |
9268 | break 2 | |
9269 | fi | |
9270 | done | |
9271 | done | |
9272 | ||
1e6feb95 VZ |
9273 | if test "$ac_find_libraries" != "" ; then |
9274 | GUI_TK_LIBRARY="-L$ac_find_libraries" | |
9275 | XPM_LINK="-lXpm" | |
9276 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
9277 | #define wxHAVE_LIB_XPM 1 |
9278 | EOF | |
9279 | ||
1e6feb95 VZ |
9280 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
9281 | else | |
9282 | echo "$ac_t""no" 1>&6 | |
9283 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
9284 | fi | |
10f2d63a | 9285 | |
1e6feb95 VZ |
9286 | MESA_LINK="" |
9287 | echo $ac_n "checking for Mesa library""... $ac_c" 1>&6 | |
b1f5d087 | 9288 | echo "configure:9289: checking for Mesa library" >&5 |
1e6feb95 | 9289 | |
10f2d63a VZ |
9290 | ac_find_libraries= |
9291 | for ac_dir in $SEARCH_LIB; | |
9292 | do | |
9293 | for ac_extension in a so sl; do | |
9294 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
9295 | ac_find_libraries=$ac_dir | |
9296 | break 2 | |
9297 | fi | |
9298 | done | |
9299 | done | |
9300 | ||
1e6feb95 VZ |
9301 | if test "$ac_find_libraries" != "" ; then |
9302 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries" | |
9303 | MESA_LINK="-lMesaGL" | |
9304 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
9305 | else | |
9306 | { echo "configure: error: no" 1>&2; exit 1; } | |
9307 | fi | |
10f2d63a | 9308 | |
1e6feb95 VZ |
9309 | GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses" |
9310 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK" | |
9311 | WXWINE=1 | |
9312 | TOOLKIT=MSW | |
9313 | GUIDIST=MSW_DIST | |
9314 | fi | |
698dcdb6 | 9315 | |
1e6feb95 VZ |
9316 | |
9317 | # If we find X, set shell vars x_includes and x_libraries to the | |
698dcdb6 VZ |
9318 | # paths, otherwise set no_x=yes. |
9319 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
9320 | # --without-x overrides everything else, but does not touch the cache. | |
9321 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
b1f5d087 | 9322 | echo "configure:9323: checking for X" >&5 |
ab9b9eab VZ |
9323 | |
9324 | # Check whether --with-x or --without-x was given. | |
9325 | if test "${with_x+set}" = set; then | |
9326 | withval="$with_x" | |
698dcdb6 VZ |
9327 | : |
9328 | fi | |
ba337fe7 | 9329 | |
ab9b9eab VZ |
9330 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
9331 | if test "x$with_x" = xno; then | |
9332 | # The user explicitly disabled X. | |
9333 | have_x=disabled | |
9334 | else | |
9335 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
9336 | # Both variables are already set. | |
9337 | have_x=yes | |
9338 | else | |
698dcdb6 VZ |
9339 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then |
9340 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab VZ |
9341 | else |
9342 | # One or both of the vars are not set, and there is no cached value. | |
698dcdb6 VZ |
9343 | ac_x_includes=NO ac_x_libraries=NO |
9344 | rm -fr conftestdir | |
9345 | if mkdir conftestdir; then | |
9346 | cd conftestdir | |
ab9b9eab | 9347 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
698dcdb6 | 9348 | cat > Imakefile <<'EOF' |
ab9b9eab VZ |
9349 | acfindx: |
9350 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
9351 | EOF | |
9352 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
9353 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
9354 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
9355 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
10f2d63a | 9356 | for ac_extension in a so sl; do |
ab9b9eab | 9357 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
698dcdb6 | 9358 | test -f $ac_im_libdir/libX11.$ac_extension; then |
ab9b9eab | 9359 | ac_im_usrlibdir=$ac_im_libdir; break |
10f2d63a VZ |
9360 | fi |
9361 | done | |
ab9b9eab VZ |
9362 | # Screen out bogus values from the imake configuration. They are |
9363 | # bogus both because they are the default anyway, and because | |
9364 | # using them would break gcc on systems where it needs fixed includes. | |
698dcdb6 | 9365 | case "$ac_im_incroot" in |
ab9b9eab | 9366 | /usr/include) ;; |
698dcdb6 | 9367 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; |
ab9b9eab | 9368 | esac |
698dcdb6 | 9369 | case "$ac_im_usrlibdir" in |
ab9b9eab | 9370 | /usr/lib | /lib) ;; |
698dcdb6 | 9371 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; |
ab9b9eab | 9372 | esac |
ba337fe7 | 9373 | fi |
ab9b9eab | 9374 | cd .. |
698dcdb6 | 9375 | rm -fr conftestdir |
ab9b9eab | 9376 | fi |
10f2d63a | 9377 | |
698dcdb6 VZ |
9378 | if test "$ac_x_includes" = NO; then |
9379 | # Guess where to find include files, by looking for this one X11 .h file. | |
9380 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
9381 | ||
ab9b9eab | 9382 | # First, try using that file with no special directory specified. |
698dcdb6 | 9383 | cat > conftest.$ac_ext <<EOF |
b1f5d087 | 9384 | #line 9385 "configure" |
ab9b9eab | 9385 | #include "confdefs.h" |
698dcdb6 VZ |
9386 | #include <$x_direct_test_include> |
9387 | EOF | |
9388 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b1f5d087 | 9389 | { (eval echo configure:9390: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
9390 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9391 | if test -z "$ac_err"; then | |
9392 | rm -rf conftest* | |
ab9b9eab VZ |
9393 | # We can compile using X headers with no special include directory. |
9394 | ac_x_includes= | |
9395 | else | |
698dcdb6 VZ |
9396 | echo "$ac_err" >&5 |
9397 | echo "configure: failed program was:" >&5 | |
ab9b9eab | 9398 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
9399 | rm -rf conftest* |
9400 | # Look for the header file in a standard set of common directories. | |
9401 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
9402 | for ac_dir in \ | |
9403 | /usr/X11/include \ | |
9404 | /usr/X11R6/include \ | |
9405 | /usr/X11R5/include \ | |
9406 | /usr/X11R4/include \ | |
9407 | \ | |
9408 | /usr/include/X11 \ | |
9409 | /usr/include/X11R6 \ | |
9410 | /usr/include/X11R5 \ | |
9411 | /usr/include/X11R4 \ | |
9412 | \ | |
9413 | /usr/local/X11/include \ | |
9414 | /usr/local/X11R6/include \ | |
9415 | /usr/local/X11R5/include \ | |
9416 | /usr/local/X11R4/include \ | |
9417 | \ | |
9418 | /usr/local/include/X11 \ | |
9419 | /usr/local/include/X11R6 \ | |
9420 | /usr/local/include/X11R5 \ | |
9421 | /usr/local/include/X11R4 \ | |
9422 | \ | |
9423 | /usr/X386/include \ | |
9424 | /usr/x386/include \ | |
9425 | /usr/XFree86/include/X11 \ | |
9426 | \ | |
9427 | /usr/include \ | |
9428 | /usr/local/include \ | |
9429 | /usr/unsupported/include \ | |
9430 | /usr/athena/include \ | |
9431 | /usr/local/x11r5/include \ | |
9432 | /usr/lpp/Xamples/include \ | |
9433 | \ | |
9434 | /usr/openwin/include \ | |
9435 | /usr/openwin/share/include \ | |
9436 | ; \ | |
9437 | do | |
9438 | if test -r "$ac_dir/$x_direct_test_include"; then | |
9439 | ac_x_includes=$ac_dir | |
9440 | break | |
9441 | fi | |
9442 | done | |
ab9b9eab | 9443 | fi |
698dcdb6 VZ |
9444 | rm -f conftest* |
9445 | fi # $ac_x_includes = NO | |
10f2d63a | 9446 | |
698dcdb6 | 9447 | if test "$ac_x_libraries" = NO; then |
ab9b9eab | 9448 | # Check for the libraries. |
698dcdb6 VZ |
9449 | |
9450 | test -z "$x_direct_test_library" && x_direct_test_library=Xt | |
9451 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
9452 | ||
ab9b9eab VZ |
9453 | # See if we find them without any special options. |
9454 | # Don't add to $LIBS permanently. | |
698dcdb6 VZ |
9455 | ac_save_LIBS="$LIBS" |
9456 | LIBS="-l$x_direct_test_library $LIBS" | |
9457 | cat > conftest.$ac_ext <<EOF | |
b1f5d087 | 9458 | #line 9459 "configure" |
ab9b9eab | 9459 | #include "confdefs.h" |
698dcdb6 VZ |
9460 | |
9461 | int main() { | |
9462 | ${x_direct_test_function}() | |
9463 | ; return 0; } | |
9464 | EOF | |
b1f5d087 | 9465 | if { (eval echo configure:9466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9466 | rm -rf conftest* |
9467 | LIBS="$ac_save_LIBS" | |
ab9b9eab VZ |
9468 | # We can link X programs with no special library path. |
9469 | ac_x_libraries= | |
9470 | else | |
698dcdb6 VZ |
9471 | echo "configure: failed program was:" >&5 |
9472 | cat conftest.$ac_ext >&5 | |
9473 | rm -rf conftest* | |
9474 | LIBS="$ac_save_LIBS" | |
9475 | # First see if replacing the include by lib works. | |
9476 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
9477 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
9478 | /usr/X11/lib \ | |
9479 | /usr/X11R6/lib \ | |
9480 | /usr/X11R5/lib \ | |
9481 | /usr/X11R4/lib \ | |
9482 | \ | |
9483 | /usr/lib/X11 \ | |
9484 | /usr/lib/X11R6 \ | |
9485 | /usr/lib/X11R5 \ | |
9486 | /usr/lib/X11R4 \ | |
9487 | \ | |
9488 | /usr/local/X11/lib \ | |
9489 | /usr/local/X11R6/lib \ | |
9490 | /usr/local/X11R5/lib \ | |
9491 | /usr/local/X11R4/lib \ | |
9492 | \ | |
9493 | /usr/local/lib/X11 \ | |
9494 | /usr/local/lib/X11R6 \ | |
9495 | /usr/local/lib/X11R5 \ | |
9496 | /usr/local/lib/X11R4 \ | |
9497 | \ | |
9498 | /usr/X386/lib \ | |
9499 | /usr/x386/lib \ | |
9500 | /usr/XFree86/lib/X11 \ | |
9501 | \ | |
9502 | /usr/lib \ | |
9503 | /usr/local/lib \ | |
9504 | /usr/unsupported/lib \ | |
9505 | /usr/athena/lib \ | |
9506 | /usr/local/x11r5/lib \ | |
9507 | /usr/lpp/Xamples/lib \ | |
9508 | /lib/usr/lib/X11 \ | |
9509 | \ | |
9510 | /usr/openwin/lib \ | |
9511 | /usr/openwin/share/lib \ | |
9512 | ; \ | |
ab9b9eab VZ |
9513 | do |
9514 | for ac_extension in a so sl; do | |
698dcdb6 | 9515 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then |
ab9b9eab VZ |
9516 | ac_x_libraries=$ac_dir |
9517 | break 2 | |
10f2d63a | 9518 | fi |
10f2d63a | 9519 | done |
ab9b9eab VZ |
9520 | done |
9521 | fi | |
698dcdb6 VZ |
9522 | rm -f conftest* |
9523 | fi # $ac_x_libraries = NO | |
10f2d63a | 9524 | |
698dcdb6 | 9525 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
ab9b9eab VZ |
9526 | # Didn't find X anywhere. Cache the known absence of X. |
9527 | ac_cv_have_x="have_x=no" | |
9528 | else | |
9529 | # Record where we found X for the cache. | |
9530 | ac_cv_have_x="have_x=yes \ | |
9531 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
9532 | fi | |
9533 | fi | |
10f2d63a | 9534 | fi |
ab9b9eab VZ |
9535 | eval "$ac_cv_have_x" |
9536 | fi # $with_x != no | |
10f2d63a | 9537 | |
ab9b9eab | 9538 | if test "$have_x" != yes; then |
698dcdb6 | 9539 | echo "$ac_t""$have_x" 1>&6 |
ab9b9eab VZ |
9540 | no_x=yes |
9541 | else | |
9542 | # If each of the values was on the command line, it overrides each guess. | |
9543 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
9544 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
9545 | # Update the cache value to reflect the command line values. | |
9546 | ac_cv_have_x="have_x=yes \ | |
9547 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
698dcdb6 | 9548 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 |
ab9b9eab | 9549 | fi |
10f2d63a | 9550 | |
ab9b9eab VZ |
9551 | if test "$no_x" = yes; then |
9552 | # Not all programs may use this symbol, but it does not hurt to define it. | |
698dcdb6 | 9553 | cat >> confdefs.h <<\EOF |
ab9b9eab VZ |
9554 | #define X_DISPLAY_MISSING 1 |
9555 | EOF | |
10f2d63a | 9556 | |
ab9b9eab VZ |
9557 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
9558 | else | |
9559 | if test -n "$x_includes"; then | |
9560 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
10f2d63a VZ |
9561 | fi |
9562 | ||
ab9b9eab VZ |
9563 | # It would also be nice to do this for all -L options, not just this one. |
9564 | if test -n "$x_libraries"; then | |
9565 | X_LIBS="$X_LIBS -L$x_libraries" | |
9566 | # For Solaris; some versions of Sun CC require a space after -R and | |
9567 | # others require no space. Words are not sufficient . . . . | |
698dcdb6 | 9568 | case "`(uname -sr) 2>/dev/null`" in |
ab9b9eab | 9569 | "SunOS 5"*) |
698dcdb6 | 9570 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 |
b1f5d087 | 9571 | echo "configure:9572: checking whether -R must be followed by a space" >&5 |
698dcdb6 VZ |
9572 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
9573 | cat > conftest.$ac_ext <<EOF | |
b1f5d087 | 9574 | #line 9575 "configure" |
ab9b9eab | 9575 | #include "confdefs.h" |
10f2d63a | 9576 | |
698dcdb6 | 9577 | int main() { |
788deba1 | 9578 | |
698dcdb6 VZ |
9579 | ; return 0; } |
9580 | EOF | |
b1f5d087 | 9581 | if { (eval echo configure:9582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 9582 | rm -rf conftest* |
ab9b9eab VZ |
9583 | ac_R_nospace=yes |
9584 | else | |
698dcdb6 VZ |
9585 | echo "configure: failed program was:" >&5 |
9586 | cat conftest.$ac_ext >&5 | |
9587 | rm -rf conftest* | |
9588 | ac_R_nospace=no | |
ab9b9eab | 9589 | fi |
698dcdb6 | 9590 | rm -f conftest* |
ab9b9eab | 9591 | if test $ac_R_nospace = yes; then |
698dcdb6 | 9592 | echo "$ac_t""no" 1>&6 |
ab9b9eab VZ |
9593 | X_LIBS="$X_LIBS -R$x_libraries" |
9594 | else | |
9595 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
698dcdb6 | 9596 | cat > conftest.$ac_ext <<EOF |
b1f5d087 | 9597 | #line 9598 "configure" |
ab9b9eab | 9598 | #include "confdefs.h" |
788deba1 | 9599 | |
698dcdb6 | 9600 | int main() { |
ab9b9eab | 9601 | |
698dcdb6 VZ |
9602 | ; return 0; } |
9603 | EOF | |
b1f5d087 | 9604 | if { (eval echo configure:9605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 9605 | rm -rf conftest* |
ab9b9eab VZ |
9606 | ac_R_space=yes |
9607 | else | |
698dcdb6 VZ |
9608 | echo "configure: failed program was:" >&5 |
9609 | cat conftest.$ac_ext >&5 | |
9610 | rm -rf conftest* | |
9611 | ac_R_space=no | |
ab9b9eab | 9612 | fi |
698dcdb6 | 9613 | rm -f conftest* |
ab9b9eab | 9614 | if test $ac_R_space = yes; then |
698dcdb6 | 9615 | echo "$ac_t""yes" 1>&6 |
ab9b9eab VZ |
9616 | X_LIBS="$X_LIBS -R $x_libraries" |
9617 | else | |
698dcdb6 | 9618 | echo "$ac_t""neither works" 1>&6 |
ab9b9eab VZ |
9619 | fi |
9620 | fi | |
698dcdb6 | 9621 | LIBS="$ac_xsave_LIBS" |
ab9b9eab VZ |
9622 | esac |
9623 | fi | |
9624 | ||
9625 | # Check for system-dependent libraries X programs must link with. | |
9626 | # Do this before checking for the system-independent R6 libraries | |
9627 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
9628 | ||
9629 | if test "$ISC" = yes; then | |
9630 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
9631 | else | |
698dcdb6 VZ |
9632 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X |
9633 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
ab9b9eab | 9634 | # the Alpha needs dnet_stub (dnet does not exist). |
698dcdb6 | 9635 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
b1f5d087 | 9636 | echo "configure:9637: checking for dnet_ntoa in -ldnet" >&5 |
698dcdb6 VZ |
9637 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
9638 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9639 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 9640 | else |
698dcdb6 | 9641 | ac_save_LIBS="$LIBS" |
ab9b9eab | 9642 | LIBS="-ldnet $LIBS" |
698dcdb6 | 9643 | cat > conftest.$ac_ext <<EOF |
b1f5d087 | 9644 | #line 9645 "configure" |
ab9b9eab VZ |
9645 | #include "confdefs.h" |
9646 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9647 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9648 | builtin and then its argument prototype would still apply. */ |
9649 | char dnet_ntoa(); | |
9650 | ||
9651 | int main() { | |
9652 | dnet_ntoa() | |
9653 | ; return 0; } | |
9654 | EOF | |
b1f5d087 | 9655 | if { (eval echo configure:9656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9656 | rm -rf conftest* |
9657 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9658 | else | |
9659 | echo "configure: failed program was:" >&5 | |
9660 | cat conftest.$ac_ext >&5 | |
9661 | rm -rf conftest* | |
9662 | eval "ac_cv_lib_$ac_lib_var=no" | |
9663 | fi | |
9664 | rm -f conftest* | |
9665 | LIBS="$ac_save_LIBS" | |
9666 | ||
9667 | fi | |
9668 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9669 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 9670 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
698dcdb6 VZ |
9671 | else |
9672 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
9673 | fi |
9674 | ||
9675 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
698dcdb6 | 9676 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
b1f5d087 | 9677 | echo "configure:9678: checking for dnet_ntoa in -ldnet_stub" >&5 |
698dcdb6 VZ |
9678 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
9679 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9680 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 9681 | else |
698dcdb6 | 9682 | ac_save_LIBS="$LIBS" |
ab9b9eab | 9683 | LIBS="-ldnet_stub $LIBS" |
698dcdb6 | 9684 | cat > conftest.$ac_ext <<EOF |
b1f5d087 | 9685 | #line 9686 "configure" |
ab9b9eab VZ |
9686 | #include "confdefs.h" |
9687 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9688 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9689 | builtin and then its argument prototype would still apply. */ |
9690 | char dnet_ntoa(); | |
9691 | ||
9692 | int main() { | |
9693 | dnet_ntoa() | |
9694 | ; return 0; } | |
9695 | EOF | |
b1f5d087 | 9696 | if { (eval echo configure:9697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9697 | rm -rf conftest* |
9698 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9699 | else | |
9700 | echo "configure: failed program was:" >&5 | |
9701 | cat conftest.$ac_ext >&5 | |
9702 | rm -rf conftest* | |
9703 | eval "ac_cv_lib_$ac_lib_var=no" | |
9704 | fi | |
9705 | rm -f conftest* | |
9706 | LIBS="$ac_save_LIBS" | |
9707 | ||
9708 | fi | |
9709 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9710 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 9711 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
698dcdb6 VZ |
9712 | else |
9713 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
9714 | fi |
9715 | ||
9716 | fi | |
9717 | ||
9718 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
9719 | # to get the SysV transport functions. | |
698dcdb6 | 9720 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
ab9b9eab VZ |
9721 | # needs -lnsl. |
9722 | # The nsl library prevents programs from opening the X display | |
698dcdb6 VZ |
9723 | # on Irix 5.2, according to dickey@clark.net. |
9724 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
b1f5d087 | 9725 | echo "configure:9726: checking for gethostbyname" >&5 |
698dcdb6 VZ |
9726 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
9727 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9728 | else | |
9729 | cat > conftest.$ac_ext <<EOF | |
b1f5d087 | 9730 | #line 9731 "configure" |
ab9b9eab VZ |
9731 | #include "confdefs.h" |
9732 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 9733 | which can conflict with char gethostbyname(); below. */ |
ab9b9eab VZ |
9734 | #include <assert.h> |
9735 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9736 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9737 | builtin and then its argument prototype would still apply. */ |
9738 | char gethostbyname(); | |
9739 | ||
9740 | int main() { | |
ab9b9eab VZ |
9741 | |
9742 | /* The GNU C library defines this for functions which it implements | |
9743 | to always fail with ENOSYS. Some functions are actually named | |
9744 | something starting with __ and the normal name is an alias. */ | |
9745 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
9746 | choke me | |
9747 | #else | |
698dcdb6 | 9748 | gethostbyname(); |
ab9b9eab VZ |
9749 | #endif |
9750 | ||
698dcdb6 VZ |
9751 | ; return 0; } |
9752 | EOF | |
b1f5d087 | 9753 | if { (eval echo configure:9754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9754 | rm -rf conftest* |
9755 | eval "ac_cv_func_gethostbyname=yes" | |
9756 | else | |
9757 | echo "configure: failed program was:" >&5 | |
9758 | cat conftest.$ac_ext >&5 | |
9759 | rm -rf conftest* | |
9760 | eval "ac_cv_func_gethostbyname=no" | |
9761 | fi | |
9762 | rm -f conftest* | |
9763 | fi | |
9764 | ||
9765 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
9766 | echo "$ac_t""yes" 1>&6 | |
9767 | : | |
9768 | else | |
9769 | echo "$ac_t""no" 1>&6 | |
9770 | fi | |
ab9b9eab VZ |
9771 | |
9772 | if test $ac_cv_func_gethostbyname = no; then | |
698dcdb6 | 9773 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
b1f5d087 | 9774 | echo "configure:9775: checking for gethostbyname in -lnsl" >&5 |
698dcdb6 VZ |
9775 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
9776 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9777 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 9778 | else |
698dcdb6 | 9779 | ac_save_LIBS="$LIBS" |
ab9b9eab | 9780 | LIBS="-lnsl $LIBS" |
698dcdb6 | 9781 | cat > conftest.$ac_ext <<EOF |
b1f5d087 | 9782 | #line 9783 "configure" |
ab9b9eab VZ |
9783 | #include "confdefs.h" |
9784 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9785 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9786 | builtin and then its argument prototype would still apply. */ |
9787 | char gethostbyname(); | |
6232543b | 9788 | |
698dcdb6 VZ |
9789 | int main() { |
9790 | gethostbyname() | |
9791 | ; return 0; } | |
9792 | EOF | |
b1f5d087 | 9793 | if { (eval echo configure:9794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9794 | rm -rf conftest* |
9795 | eval "ac_cv_lib_$ac_lib_var=yes" | |
703e0a69 | 9796 | else |
698dcdb6 VZ |
9797 | echo "configure: failed program was:" >&5 |
9798 | cat conftest.$ac_ext >&5 | |
9799 | rm -rf conftest* | |
9800 | eval "ac_cv_lib_$ac_lib_var=no" | |
9801 | fi | |
9802 | rm -f conftest* | |
9803 | LIBS="$ac_save_LIBS" | |
1e487827 | 9804 | |
698dcdb6 VZ |
9805 | fi |
9806 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9807 | echo "$ac_t""yes" 1>&6 | |
9808 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
9809 | else | |
9810 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
9811 | fi |
9812 | ||
9813 | fi | |
9814 | ||
9815 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
9816 | # socket/setsockopt and other routines are undefined under SCO ODT | |
9817 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
698dcdb6 VZ |
9818 | # on later versions), says simon@lia.di.epfl.ch: it contains |
9819 | # gethostby* variants that don't use the nameserver (or something). | |
9820 | # -lsocket must be given before -lnsl if both are needed. | |
9821 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
9822 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
b1f5d087 | 9823 | echo "configure:9824: checking for connect" >&5 |
698dcdb6 VZ |
9824 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
9825 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9826 | else | |
9827 | cat > conftest.$ac_ext <<EOF | |
b1f5d087 | 9828 | #line 9829 "configure" |
ab9b9eab VZ |
9829 | #include "confdefs.h" |
9830 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 9831 | which can conflict with char connect(); below. */ |
ab9b9eab VZ |
9832 | #include <assert.h> |
9833 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9834 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9835 | builtin and then its argument prototype would still apply. */ |
9836 | char connect(); | |
9837 | ||
9838 | int main() { | |
ab9b9eab VZ |
9839 | |
9840 | /* The GNU C library defines this for functions which it implements | |
9841 | to always fail with ENOSYS. Some functions are actually named | |
9842 | something starting with __ and the normal name is an alias. */ | |
9843 | #if defined (__stub_connect) || defined (__stub___connect) | |
9844 | choke me | |
9845 | #else | |
698dcdb6 | 9846 | connect(); |
ab9b9eab VZ |
9847 | #endif |
9848 | ||
698dcdb6 VZ |
9849 | ; return 0; } |
9850 | EOF | |
b1f5d087 | 9851 | if { (eval echo configure:9852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9852 | rm -rf conftest* |
9853 | eval "ac_cv_func_connect=yes" | |
9854 | else | |
9855 | echo "configure: failed program was:" >&5 | |
9856 | cat conftest.$ac_ext >&5 | |
9857 | rm -rf conftest* | |
9858 | eval "ac_cv_func_connect=no" | |
9859 | fi | |
9860 | rm -f conftest* | |
9861 | fi | |
9862 | ||
9863 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
9864 | echo "$ac_t""yes" 1>&6 | |
9865 | : | |
9866 | else | |
9867 | echo "$ac_t""no" 1>&6 | |
9868 | fi | |
ab9b9eab VZ |
9869 | |
9870 | if test $ac_cv_func_connect = no; then | |
698dcdb6 | 9871 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
b1f5d087 | 9872 | echo "configure:9873: checking for connect in -lsocket" >&5 |
698dcdb6 VZ |
9873 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
9874 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9875 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 9876 | else |
698dcdb6 | 9877 | ac_save_LIBS="$LIBS" |
ab9b9eab | 9878 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
698dcdb6 | 9879 | cat > conftest.$ac_ext <<EOF |
b1f5d087 | 9880 | #line 9881 "configure" |
ab9b9eab VZ |
9881 | #include "confdefs.h" |
9882 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9883 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9884 | builtin and then its argument prototype would still apply. */ |
9885 | char connect(); | |
9886 | ||
9887 | int main() { | |
9888 | connect() | |
9889 | ; return 0; } | |
9890 | EOF | |
b1f5d087 | 9891 | if { (eval echo configure:9892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9892 | rm -rf conftest* |
9893 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9894 | else | |
9895 | echo "configure: failed program was:" >&5 | |
9896 | cat conftest.$ac_ext >&5 | |
9897 | rm -rf conftest* | |
9898 | eval "ac_cv_lib_$ac_lib_var=no" | |
9899 | fi | |
9900 | rm -f conftest* | |
9901 | LIBS="$ac_save_LIBS" | |
9902 | ||
9903 | fi | |
9904 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9905 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 9906 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
698dcdb6 VZ |
9907 | else |
9908 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
9909 | fi |
9910 | ||
9911 | fi | |
9912 | ||
698dcdb6 VZ |
9913 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
9914 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
b1f5d087 | 9915 | echo "configure:9916: checking for remove" >&5 |
698dcdb6 VZ |
9916 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
9917 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 9918 | else |
698dcdb6 | 9919 | cat > conftest.$ac_ext <<EOF |
b1f5d087 | 9920 | #line 9921 "configure" |
ab9b9eab VZ |
9921 | #include "confdefs.h" |
9922 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 9923 | which can conflict with char remove(); below. */ |
ab9b9eab VZ |
9924 | #include <assert.h> |
9925 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9926 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9927 | builtin and then its argument prototype would still apply. */ |
9928 | char remove(); | |
9929 | ||
9930 | int main() { | |
ab9b9eab VZ |
9931 | |
9932 | /* The GNU C library defines this for functions which it implements | |
9933 | to always fail with ENOSYS. Some functions are actually named | |
9934 | something starting with __ and the normal name is an alias. */ | |
9935 | #if defined (__stub_remove) || defined (__stub___remove) | |
9936 | choke me | |
9937 | #else | |
698dcdb6 | 9938 | remove(); |
ab9b9eab VZ |
9939 | #endif |
9940 | ||
698dcdb6 VZ |
9941 | ; return 0; } |
9942 | EOF | |
b1f5d087 | 9943 | if { (eval echo configure:9944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9944 | rm -rf conftest* |
9945 | eval "ac_cv_func_remove=yes" | |
9946 | else | |
9947 | echo "configure: failed program was:" >&5 | |
9948 | cat conftest.$ac_ext >&5 | |
9949 | rm -rf conftest* | |
9950 | eval "ac_cv_func_remove=no" | |
9951 | fi | |
9952 | rm -f conftest* | |
9953 | fi | |
9954 | ||
9955 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
9956 | echo "$ac_t""yes" 1>&6 | |
9957 | : | |
9958 | else | |
9959 | echo "$ac_t""no" 1>&6 | |
9960 | fi | |
ab9b9eab VZ |
9961 | |
9962 | if test $ac_cv_func_remove = no; then | |
698dcdb6 | 9963 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
b1f5d087 | 9964 | echo "configure:9965: checking for remove in -lposix" >&5 |
698dcdb6 VZ |
9965 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
9966 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9967 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 9968 | else |
698dcdb6 | 9969 | ac_save_LIBS="$LIBS" |
ab9b9eab | 9970 | LIBS="-lposix $LIBS" |
698dcdb6 | 9971 | cat > conftest.$ac_ext <<EOF |
b1f5d087 | 9972 | #line 9973 "configure" |
ab9b9eab VZ |
9973 | #include "confdefs.h" |
9974 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9975 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9976 | builtin and then its argument prototype would still apply. */ |
9977 | char remove(); | |
9978 | ||
9979 | int main() { | |
9980 | remove() | |
9981 | ; return 0; } | |
9982 | EOF | |
b1f5d087 | 9983 | if { (eval echo configure:9984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9984 | rm -rf conftest* |
9985 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9986 | else | |
9987 | echo "configure: failed program was:" >&5 | |
9988 | cat conftest.$ac_ext >&5 | |
9989 | rm -rf conftest* | |
9990 | eval "ac_cv_lib_$ac_lib_var=no" | |
9991 | fi | |
9992 | rm -f conftest* | |
9993 | LIBS="$ac_save_LIBS" | |
9994 | ||
9995 | fi | |
9996 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9997 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 9998 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
698dcdb6 VZ |
9999 | else |
10000 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
10001 | fi |
10002 | ||
10003 | fi | |
10004 | ||
10005 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
698dcdb6 | 10006 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
b1f5d087 | 10007 | echo "configure:10008: checking for shmat" >&5 |
698dcdb6 VZ |
10008 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
10009 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 10010 | else |
698dcdb6 | 10011 | cat > conftest.$ac_ext <<EOF |
b1f5d087 | 10012 | #line 10013 "configure" |
ab9b9eab VZ |
10013 | #include "confdefs.h" |
10014 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 10015 | which can conflict with char shmat(); below. */ |
ab9b9eab VZ |
10016 | #include <assert.h> |
10017 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10018 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10019 | builtin and then its argument prototype would still apply. */ |
10020 | char shmat(); | |
10021 | ||
10022 | int main() { | |
ab9b9eab VZ |
10023 | |
10024 | /* The GNU C library defines this for functions which it implements | |
10025 | to always fail with ENOSYS. Some functions are actually named | |
10026 | something starting with __ and the normal name is an alias. */ | |
10027 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
10028 | choke me | |
10029 | #else | |
698dcdb6 | 10030 | shmat(); |
ab9b9eab VZ |
10031 | #endif |
10032 | ||
698dcdb6 VZ |
10033 | ; return 0; } |
10034 | EOF | |
b1f5d087 | 10035 | if { (eval echo configure:10036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10036 | rm -rf conftest* |
10037 | eval "ac_cv_func_shmat=yes" | |
10038 | else | |
10039 | echo "configure: failed program was:" >&5 | |
10040 | cat conftest.$ac_ext >&5 | |
10041 | rm -rf conftest* | |
10042 | eval "ac_cv_func_shmat=no" | |
10043 | fi | |
10044 | rm -f conftest* | |
10045 | fi | |
10046 | ||
10047 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
10048 | echo "$ac_t""yes" 1>&6 | |
10049 | : | |
10050 | else | |
10051 | echo "$ac_t""no" 1>&6 | |
10052 | fi | |
ab9b9eab VZ |
10053 | |
10054 | if test $ac_cv_func_shmat = no; then | |
698dcdb6 | 10055 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
b1f5d087 | 10056 | echo "configure:10057: checking for shmat in -lipc" >&5 |
698dcdb6 VZ |
10057 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
10058 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10059 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 10060 | else |
698dcdb6 | 10061 | ac_save_LIBS="$LIBS" |
ab9b9eab | 10062 | LIBS="-lipc $LIBS" |
698dcdb6 | 10063 | cat > conftest.$ac_ext <<EOF |
b1f5d087 | 10064 | #line 10065 "configure" |
ab9b9eab VZ |
10065 | #include "confdefs.h" |
10066 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10067 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10068 | builtin and then its argument prototype would still apply. */ |
10069 | char shmat(); | |
10070 | ||
10071 | int main() { | |
10072 | shmat() | |
10073 | ; return 0; } | |
10074 | EOF | |
b1f5d087 | 10075 | if { (eval echo configure:10076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10076 | rm -rf conftest* |
10077 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10078 | else | |
10079 | echo "configure: failed program was:" >&5 | |
10080 | cat conftest.$ac_ext >&5 | |
10081 | rm -rf conftest* | |
10082 | eval "ac_cv_lib_$ac_lib_var=no" | |
10083 | fi | |
10084 | rm -f conftest* | |
10085 | LIBS="$ac_save_LIBS" | |
10086 | ||
10087 | fi | |
10088 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10089 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 10090 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
698dcdb6 VZ |
10091 | else |
10092 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
10093 | fi |
10094 | ||
10095 | fi | |
10096 | fi | |
10097 | ||
10098 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
698dcdb6 | 10099 | ac_save_LDFLAGS="$LDFLAGS" |
ab9b9eab VZ |
10100 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
10101 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
10102 | # check for ICE first), but we must link in the order -lSM -lICE or | |
10103 | # we get undefined symbols. So assume we have SM if we have ICE. | |
10104 | # These have to be linked with before -lX11, unlike the other | |
10105 | # libraries we check for below, so use a different variable. | |
698dcdb6 VZ |
10106 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
10107 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
b1f5d087 | 10108 | echo "configure:10109: checking for IceConnectionNumber in -lICE" >&5 |
698dcdb6 VZ |
10109 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
10110 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10111 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10112 | else | |
10113 | ac_save_LIBS="$LIBS" | |
ab9b9eab | 10114 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
698dcdb6 | 10115 | cat > conftest.$ac_ext <<EOF |
b1f5d087 | 10116 | #line 10117 "configure" |
ab9b9eab VZ |
10117 | #include "confdefs.h" |
10118 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10119 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10120 | builtin and then its argument prototype would still apply. */ |
10121 | char IceConnectionNumber(); | |
10122 | ||
10123 | int main() { | |
10124 | IceConnectionNumber() | |
10125 | ; return 0; } | |
10126 | EOF | |
b1f5d087 | 10127 | if { (eval echo configure:10128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10128 | rm -rf conftest* |
10129 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10130 | else | |
10131 | echo "configure: failed program was:" >&5 | |
10132 | cat conftest.$ac_ext >&5 | |
10133 | rm -rf conftest* | |
10134 | eval "ac_cv_lib_$ac_lib_var=no" | |
10135 | fi | |
10136 | rm -f conftest* | |
10137 | LIBS="$ac_save_LIBS" | |
10138 | ||
10139 | fi | |
10140 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10141 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 10142 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
698dcdb6 VZ |
10143 | else |
10144 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
10145 | fi |
10146 | ||
698dcdb6 | 10147 | LDFLAGS="$ac_save_LDFLAGS" |
ab9b9eab VZ |
10148 | |
10149 | fi | |
10150 | ||
1e6feb95 VZ |
10151 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
10152 | LDFLAGS="$LDFLAGS $X_LIBS" | |
ab9b9eab | 10153 | |
1e6feb95 VZ |
10154 | if test "$wxUSE_MOTIF" = 1; then |
10155 | if test "$no_x" = "yes"; then | |
10156 | { echo "configure: error: X11 not found" 1>&2; exit 1; } | |
10157 | fi | |
ab9b9eab | 10158 | |
1e6feb95 VZ |
10159 | GUI_TK_LIBRARY="$X_LIBS" |
10160 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
ab9b9eab | 10161 | |
1e6feb95 | 10162 | AFMINSTALL=afminstall |
dad6c0ea | 10163 | |
1e6feb95 VZ |
10164 | |
10165 | COMPILED_X_PROGRAM=0 | |
cd6d6d5b | 10166 | |
1e6feb95 | 10167 | echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6 |
b1f5d087 | 10168 | echo "configure:10169: checking for Motif/Lesstif headers" >&5 |
1e6feb95 | 10169 | |
ab9b9eab VZ |
10170 | ac_find_includes= |
10171 | for ac_dir in $SEARCH_INCLUDE; | |
10172 | do | |
10173 | if test -f "$ac_dir/Xm/Xm.h"; then | |
10174 | ac_find_includes=$ac_dir | |
10175 | break | |
10176 | fi | |
10177 | done | |
10178 | ||
1e6feb95 VZ |
10179 | if test "$ac_find_includes" != "" ; then |
10180 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
10181 | else | |
10182 | cat > conftest.$ac_ext <<EOF | |
b1f5d087 | 10183 | #line 10184 "configure" |
cd6d6d5b VZ |
10184 | #include "confdefs.h" |
10185 | ||
1e6feb95 VZ |
10186 | #include <Xm/Xm.h> |
10187 | ||
698dcdb6 | 10188 | int main() { |
cd6d6d5b | 10189 | |
1e6feb95 | 10190 | int version; |
cd6d6d5b | 10191 | |
1e6feb95 VZ |
10192 | version = xmUseVersion; |
10193 | ||
698dcdb6 VZ |
10194 | ; return 0; } |
10195 | EOF | |
b1f5d087 | 10196 | if { (eval echo configure:10197: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
10197 | rm -rf conftest* |
10198 | ||
1e6feb95 VZ |
10199 | echo "$ac_t""found in default search path" 1>&6 |
10200 | COMPILED_X_PROGRAM=1 | |
10201 | ||
cd6d6d5b | 10202 | else |
698dcdb6 VZ |
10203 | echo "configure: failed program was:" >&5 |
10204 | cat conftest.$ac_ext >&5 | |
10205 | rm -rf conftest* | |
10206 | ||
1e6feb95 VZ |
10207 | echo "$ac_t""no" 1>&6 |
10208 | { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; } | |
10209 | ||
698dcdb6 | 10210 | |
cd6d6d5b | 10211 | fi |
698dcdb6 | 10212 | rm -f conftest* |
1e6feb95 | 10213 | fi |
ab9b9eab | 10214 | |
1e6feb95 VZ |
10215 | if test "$COMPILED_X_PROGRAM" = 0; then |
10216 | echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6 | |
b1f5d087 | 10217 | echo "configure:10218: checking for Motif/Lesstif library" >&5 |
1e6feb95 | 10218 | |
ab9b9eab VZ |
10219 | ac_find_libraries= |
10220 | for ac_dir in $SEARCH_LIB; | |
10221 | do | |
10222 | for ac_extension in a so sl; do | |
10223 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
10224 | ac_find_libraries=$ac_dir | |
10225 | break 2 | |
10226 | fi | |
10227 | done | |
10228 | done | |
10229 | ||
1e6feb95 VZ |
10230 | if test "$ac_find_libraries" != "" ; then |
10231 | ||
ab9b9eab VZ |
10232 | ac_path_to_include=$ac_find_includes |
10233 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
10234 | result=$? | |
10235 | if test $result = 0; then | |
10236 | ac_path_to_include="" | |
10237 | else | |
10238 | ac_path_to_include="-I$ac_find_includes" | |
10239 | fi | |
10240 | ||
1e6feb95 | 10241 | |
ab9b9eab VZ |
10242 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
10243 | result=$? | |
10244 | if test $result = 0; then | |
10245 | ac_path_to_link="" | |
10246 | else | |
10247 | ac_path_to_link="-L$ac_find_libraries" | |
10248 | fi | |
10249 | ||
698dcdb6 | 10250 | |
1e6feb95 VZ |
10251 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" |
10252 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include" | |
10253 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
10254 | else | |
10255 | cat > conftest.$ac_ext <<EOF | |
b1f5d087 | 10256 | #line 10257 "configure" |
cd6d6d5b | 10257 | #include "confdefs.h" |
ab9b9eab | 10258 | |
1e6feb95 VZ |
10259 | #include <Xm/Xm.h> |
10260 | ||
698dcdb6 | 10261 | int main() { |
ab9b9eab | 10262 | |
1e6feb95 | 10263 | int version; |
ab9b9eab | 10264 | |
1e6feb95 VZ |
10265 | version = xmUseVersion; |
10266 | ||
698dcdb6 VZ |
10267 | ; return 0; } |
10268 | EOF | |
b1f5d087 | 10269 | if { (eval echo configure:10270: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
10270 | rm -rf conftest* |
10271 | ||
1e6feb95 VZ |
10272 | echo "$ac_t""found in default search path" 1>&6 |
10273 | COMPILED_X_PROGRAM=1 | |
10274 | ||
cd6d6d5b | 10275 | else |
698dcdb6 VZ |
10276 | echo "configure: failed program was:" >&5 |
10277 | cat conftest.$ac_ext >&5 | |
10278 | rm -rf conftest* | |
10279 | ||
1e6feb95 VZ |
10280 | echo "$ac_t""no" 1>&6 |
10281 | { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; } | |
10282 | ||
698dcdb6 | 10283 | |
cd6d6d5b | 10284 | fi |
698dcdb6 | 10285 | rm -f conftest* |
1e6feb95 | 10286 | fi |
cd6d6d5b | 10287 | fi |
ab9b9eab | 10288 | |
1e6feb95 VZ |
10289 | |
10290 | XPM_LINK="" | |
10291 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
b1f5d087 | 10292 | echo "configure:10293: checking for Xpm library" >&5 |
1e6feb95 | 10293 | |
ab9b9eab VZ |
10294 | ac_find_libraries= |
10295 | for ac_dir in $SEARCH_LIB; | |
10296 | do | |
10297 | for ac_extension in a so sl; do | |
10298 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
10299 | ac_find_libraries=$ac_dir | |
10300 | break 2 | |
10301 | fi | |
10302 | done | |
10303 | done | |
10304 | ||
1e6feb95 VZ |
10305 | if test "$ac_find_libraries" != "" ; then |
10306 | ||
ab9b9eab VZ |
10307 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
10308 | result=$? | |
10309 | if test $result = 0; then | |
10310 | ac_path_to_link="" | |
10311 | else | |
10312 | ac_path_to_link="-L$ac_find_libraries" | |
10313 | fi | |
10314 | ||
1e6feb95 VZ |
10315 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" |
10316 | XPM_LINK="-lXpm " | |
10317 | cat >> confdefs.h <<\EOF | |
ab9b9eab VZ |
10318 | #define wxHAVE_LIB_XPM 1 |
10319 | EOF | |
10320 | ||
1e6feb95 VZ |
10321 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
10322 | else | |
10323 | cat > conftest.$ac_ext <<EOF | |
b1f5d087 | 10324 | #line 10325 "configure" |
cd6d6d5b VZ |
10325 | #include "confdefs.h" |
10326 | ||
1e6feb95 VZ |
10327 | #include <X11/xpm.h> |
10328 | ||
698dcdb6 | 10329 | int main() { |
cd6d6d5b | 10330 | |
1e6feb95 | 10331 | int version; |
cd6d6d5b | 10332 | |
1e6feb95 VZ |
10333 | version = XpmLibraryVersion(); |
10334 | ||
698dcdb6 VZ |
10335 | ; return 0; } |
10336 | EOF | |
b1f5d087 | 10337 | if { (eval echo configure:10338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
10338 | rm -rf conftest* |
10339 | ||
1e6feb95 VZ |
10340 | XPM_LINK="-lXpm " |
10341 | cat >> confdefs.h <<\EOF | |
3ace2e6d SN |
10342 | #define wxHAVE_LIB_XPM 1 |
10343 | EOF | |
10344 | ||
1e6feb95 VZ |
10345 | echo "$ac_t""found in default search path" 1>&6 |
10346 | COMPILED_X_PROGRAM=0 | |
10347 | ||
cd6d6d5b | 10348 | else |
698dcdb6 VZ |
10349 | echo "configure: failed program was:" >&5 |
10350 | cat conftest.$ac_ext >&5 | |
10351 | rm -rf conftest* | |
10352 | ||
1e6feb95 VZ |
10353 | echo "$ac_t""no" 1>&6 |
10354 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
10355 | ||
698dcdb6 | 10356 | |
cd6d6d5b | 10357 | fi |
698dcdb6 | 10358 | rm -f conftest* |
1e6feb95 VZ |
10359 | fi |
10360 | ||
10361 | GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11" | |
10362 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK" | |
10363 | TOOLKIT=MOTIF | |
10364 | GUIDIST=MOTIF_DIST | |
ab9b9eab VZ |
10365 | fi |
10366 | ||
1e6feb95 VZ |
10367 | if test "$wxUSE_MAC" = 1; then |
10368 | TOOLKIT=MAC | |
10369 | GUIDIST=MACX_DIST | |
10370 | fi | |
10f2d63a | 10371 | |
1e6feb95 VZ |
10372 | if test "$wxUSE_PM" = 1; then |
10373 | TOOLKIT=PM | |
10374 | GUIDIST=GTK_DIST | |
10375 | fi | |
b4085ce6 | 10376 | |
1e6feb95 VZ |
10377 | if test "$TOOLKIT" != "PM" ; then |
10378 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
10379 | else | |
10380 | TOOLKIT_DIR="os2" | |
10381 | fi | |
e07802fc | 10382 | |
1e6feb95 | 10383 | TOOLKIT_NAME="${TOOLKIT_DIR}" |
10f2d63a | 10384 | |
1e6feb95 VZ |
10385 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" |
10386 | ||
10387 | if test "$TOOLKIT_NAME" = "motif"; then | |
10388 | TOOLKIT_VPATH="${TOOLKIT_VPATH}${PATH_IFS}\${top_srcdir}/src/motif/xmcombo" | |
10389 | fi | |
10390 | ||
10391 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
10392 | TOOLKIT_NAME="${TOOLKIT_NAME}univ" | |
10393 | UNIV_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes" | |
10394 | TOOLKIT_VPATH="${UNIV_VPATH}${PATH_IFS}${TOOLKIT_VPATH}" | |
10395 | SETUPH_DIR="univ" | |
f6bcfd97 | 10396 | else |
1e6feb95 VZ |
10397 | SETUPH_DIR="${TOOLKIT_DIR}" |
10398 | fi | |
10399 | ||
10400 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
10401 | TOOLKIT_NAME="${TOOLKIT_NAME}d" | |
f6bcfd97 BP |
10402 | fi |
10403 | ||
2224580a | 10404 | TOOLKIT_DEF="-D__WX${TOOLKIT}__" |
1e6feb95 VZ |
10405 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
10406 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXUNIVERSAL__" | |
10407 | fi | |
10f2d63a | 10408 | |
f6bcfd97 | 10409 | WX_LIBRARY="wx_${TOOLKIT_NAME}" |
10f2d63a | 10410 | |
1e6feb95 VZ |
10411 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
10412 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
10413 | else | |
10414 | ALL_OBJECTS="\$(GUIOBJS)" | |
10415 | fi | |
10416 | ||
10417 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" | |
10418 | ||
10419 | if test "$TOOLKIT" != "MSW"; then | |
10420 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" | |
10421 | fi | |
10422 | ||
10423 | if test "$wxUSE_HTML" = "yes"; then | |
10424 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
10425 | fi | |
3fcdd07b | 10426 | |
1e6feb95 VZ |
10427 | if test "$TOOLKIT" != "MSW"; then |
10428 | if test "$wxUSE_ODBC" = "yes" ; then | |
10429 | ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)" | |
10430 | fi | |
3fcdd07b VZ |
10431 | fi |
10432 | ||
d9d8273d | 10433 | if test "$wxUSE_LIBJPEG" = "yes" ; then |
2224580a | 10434 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" |
d9d8273d RR |
10435 | fi |
10436 | if test "$wxUSE_LIBTIFF" = "yes" ; then | |
10437 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
10438 | fi | |
10439 | if test "$wxUSE_LIBPNG" = "yes" ; then | |
10440 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
10441 | fi | |
10442 | if test "$wxUSE_ZLIB" = "yes" ; then | |
10443 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
10444 | fi | |
3fed1840 RR |
10445 | if test "$wxUSE_FREETYPE" = "yes" ; then |
10446 | ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)" | |
10447 | fi | |
2224580a | 10448 | |
1e6feb95 VZ |
10449 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
10450 | ALL_DEPFILES="\$(GUI_LOWLEVEL_DEPS) \$(UNIVDEPS)" | |
10451 | else | |
10452 | ALL_DEPFILES="\$(GUIDEPS)" | |
10453 | fi | |
10454 | ||
10455 | ALL_DEPFILES="${ALL_DEPFILES} \$(COMMONDEPS) \$(GENERICDEPS)" | |
10456 | ||
10457 | if test "$TOOLKIT" != "MSW"; then | |
10458 | ALL_DEPFILES="${ALL_DEPFILES} \$(UNIXDEPS)" | |
10459 | fi | |
10460 | ||
10461 | if test "$wxUSE_HTML" = "yes"; then | |
10462 | ALL_DEPFILES="${ALL_DEPFILES} \$(HTMLDEPS)" | |
10463 | fi | |
10464 | ||
10465 | PORT_FILES="src/\$(TOOLKITDIR)/files.lst" | |
10466 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
10467 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" | |
10468 | fi | |
2224580a VZ |
10469 | RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst" |
10470 | RPM_SPEC="wx\$(TOOLKIT).spec" | |
10471 | ||
10472 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
10473 | DISTDIR="wx\$(TOOLKIT)" | |
10f2d63a | 10474 | else |
dad6c0ea VZ |
10475 | USE_GUI=0 |
10476 | ||
f6bcfd97 BP |
10477 | TOOLKIT_DIR="base" |
10478 | ||
10479 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
10480 | TOOLKIT_NAME="${TOOLKIT_DIR}d" | |
10481 | else | |
10482 | TOOLKIT_NAME="${TOOLKIT_DIR}" | |
10483 | fi | |
10484 | ||
07eb77a6 RL |
10485 | TOOLKIT_DEF="-D__WXBASE__" |
10486 | ||
b4085ce6 GD |
10487 | ALL_OBJECTS="\$(BASE_OBJS) \$(BASE_UNIX_OBJS)" |
10488 | ALL_DEPFILES="\$(BASE_DEPS) \$(BASE_UNIX_DEPS)" | |
10f2d63a | 10489 | |
a20b6d3a VZ |
10490 | if test "$wxUSE_ZLIB" = "yes" ; then |
10491 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
10492 | fi | |
10493 | ||
f6bcfd97 | 10494 | WX_LIBRARY="wx_${TOOLKIT_NAME}" |
2224580a VZ |
10495 | |
10496 | PORT_FILES="src/files.lst" | |
10497 | RPM_FILES="src/rpmfiles.lst" | |
10498 | RPM_SPEC="wxBase.spec" | |
10499 | ||
10500 | GUIDIST="BASE_DIST" | |
10501 | DISTDIR="wxBase" | |
10f2d63a VZ |
10502 | fi |
10503 | ||
10504 | WX_LIBRARY_NAME="lib${WX_LIBRARY}.la" | |
bdad4e7e | 10505 | WX_LIBRARY_NAME_GL="lib${WX_LIBRARY}_gl.la" |
10f2d63a VZ |
10506 | |
10507 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
bdad4e7e | 10508 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY}_gl.a" |
10f2d63a VZ |
10509 | |
10510 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
bdad4e7e | 10511 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" |
10f2d63a VZ |
10512 | |
10513 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}" | |
10514 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so" | |
10515 | WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so" | |
bdad4e7e RR |
10516 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}" |
10517 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so" | |
10518 | WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.so" | |
10f2d63a VZ |
10519 | |
10520 | SHARED_LD= | |
10521 | PIC_FLAG= | |
10522 | WX_ALL= | |
10523 | WX_ALL_INSTALLED= | |
1d62a8b4 | 10524 | BURNT_LIBRARY_NAME= |
f6bcfd97 | 10525 | WX_TARGET_LIBRARY_SONAME= |
10f2d63a | 10526 | |
698dcdb6 | 10527 | |
10f2d63a VZ |
10528 | if test "$wxUSE_SHARED" = "yes"; then |
10529 | case "${host}" in | |
10530 | *-hp-hpux* ) | |
10531 | if test "$GCC" = yes ; then | |
69ffe1d2 | 10532 | SHARED_LD="${CC} -shared -fPIC -o" |
10f2d63a VZ |
10533 | PIC_FLAG="-fPIC" |
10534 | else | |
f6bcfd97 BP |
10535 | LDFLAGS="-L/usr/lib" |
10536 | ||
10f2d63a VZ |
10537 | SHARED_LD="${CXX} -b -o" |
10538 | PIC_FLAG="+Z" | |
10539 | fi | |
f6bcfd97 BP |
10540 | WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_NAME}.sl" |
10541 | WX_LIBRARY_NAME_SHARED_GL="libwx_${TOOLKIT_NAME}_gl.sl" | |
c661ecca | 10542 | if test "$wxUSE_OPENGL" = "yes"; then |
f6bcfd97 | 10543 | WX_ALL_INSTALLED="preinstall_gl" |
c661ecca RR |
10544 | WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}" |
10545 | else | |
10546 | WX_ALL="${WX_LIBRARY_NAME_SHARED}" | |
10547 | fi | |
10f2d63a | 10548 | ;; |
b12915c1 VZ |
10549 | |
10550 | *-*-linux* ) | |
10f2d63a VZ |
10551 | SHARED_LD="${CC} -shared -o" |
10552 | PIC_FLAG="-fPIC" | |
00cf1208 | 10553 | if test "$wxUSE_BURNT_NAME" = "yes" ; then |
05cdfc6f | 10554 | BURNT_LIBRARY_NAME="-Wl,-soname,${WX_LIBRARY_LINK1}" |
bdad4e7e | 10555 | BURNT_LIBRARY_NAME_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}" |
f6bcfd97 | 10556 | WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)" |
00cf1208 | 10557 | fi |
c661ecca RR |
10558 | if test "$wxUSE_OPENGL" = "yes"; then |
10559 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
10560 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
10561 | else | |
10562 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10563 | WX_ALL="CREATE_LINKS" | |
422107f9 | 10564 | fi |
00cf1208 | 10565 | ;; |
10f2d63a VZ |
10566 | *-*-irix5* | *-*-irix6* ) |
10567 | if test "$GCC" = yes ; then | |
10568 | SHARED_LD="${CC} -shared -o" | |
10569 | PIC_FLAG="-fPIC" | |
10570 | else | |
10571 | SHARED_LD="${CXX} -shared -o" | |
10572 | fi | |
c661ecca RR |
10573 | if test "$wxUSE_OPENGL" = "yes"; then |
10574 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
10575 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
10576 | else | |
10577 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10578 | WX_ALL="CREATE_LINKS" | |
422107f9 | 10579 | fi |
10f2d63a VZ |
10580 | ;; |
10581 | *-*-solaris2* ) | |
10582 | if test "$GCC" = yes ; then | |
10583 | SHARED_LD="${CC} -shared -o" | |
10584 | PIC_FLAG="-fPIC" | |
f6bcfd97 BP |
10585 | |
10586 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
10f2d63a VZ |
10587 | else |
10588 | SHARED_LD="${CXX} -G -o" | |
10589 | PIC_FLAG="-KPIC" | |
10590 | fi | |
c661ecca RR |
10591 | if test "$wxUSE_OPENGL" = "yes"; then |
10592 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
10593 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
10594 | else | |
10595 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10596 | WX_ALL="CREATE_LINKS" | |
10597 | fi | |
10f2d63a VZ |
10598 | ;; |
10599 | *-*-sunos4* ) | |
10600 | SHARED_LD="${CC} -shared -o" | |
10601 | PIC_FLAG="-fPIC" | |
10602 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10603 | WX_ALL="CREATE_LINKS" | |
10604 | ;; | |
95c8801c | 10605 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* ) |
10f2d63a VZ |
10606 | SHARED_LD="${CC} -shared -o" |
10607 | PIC_FLAG="-fPIC" | |
37d403aa JS |
10608 | if test "$wxUSE_OPENGL" = "yes"; then |
10609 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
10610 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
10611 | else | |
10612 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10613 | WX_ALL="CREATE_LINKS" | |
10614 | fi | |
10f2d63a | 10615 | ;; |
b4085ce6 | 10616 | *-*-darwin* ) |
ea5999b9 GD |
10617 | SHARED_LD="${CXX} -dynamiclib -o" |
10618 | PIC_FLAG="-dynamic -fPIC" | |
b4085ce6 GD |
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" | |
10625 | fi | |
1e6feb95 VZ |
10626 | WX_ALL="${WX_ALL} ./lib/lib${WX_LIBRARY}-${WX_RELEASE}.r" |
10627 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
10628 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
10629 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}" | |
10630 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.dylib" | |
10631 | WX_LIBRARY_LINK3="lib${WX_LIBRARY}.dylib" | |
10632 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}" | |
10633 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib" | |
10634 | WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.dylib" | |
b4085ce6 | 10635 | ;; |
10f2d63a VZ |
10636 | *-*-osf* ) |
10637 | SHARED_LD="${CXX} -shared -o" | |
10638 | PIC_FLAG="-fPIC" | |
10639 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10640 | WX_ALL="CREATE_LINKS" | |
10641 | ;; | |
10642 | *-*-dgux5* ) | |
10643 | SHARED_LD="${CXX} -shared -o" | |
10644 | PIC_FLAG="-fPIC" | |
10645 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10646 | WX_ALL="CREATE_LINKS" | |
10647 | ;; | |
10648 | *-*-sysv5* ) | |
10649 | SHARED_LD="${CC} -shared -o" | |
10650 | PIC_FLAG="-fPIC" | |
10651 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10652 | WX_ALL="CREATE_LINKS" | |
10653 | ;; | |
10654 | *-*-aix* ) | |
10655 | SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o" | |
10656 | WX_ALL=${WX_LIBRARY_NAME_SHARED} | |
10657 | ;; | |
1c8183e2 | 10658 | *-*-cygwin* ) |
10f2d63a | 10659 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" |
bdad4e7e | 10660 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" |
f6bcfd97 BP |
10661 | if test "$wxUSE_OPENGL" = "yes"; then |
10662 | WX_ALL_INSTALLED="preinstall_gl" | |
10663 | WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}" | |
10664 | else | |
10665 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
10666 | fi | |
10f2d63a | 10667 | ;; |
b12915c1 | 10668 | *-*-mingw32* ) |
10f2d63a | 10669 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" |
bdad4e7e | 10670 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" |
f6bcfd97 BP |
10671 | if test "$wxUSE_OPENGL" = "yes"; then |
10672 | WX_ALL_INSTALLED="preinstall_gl" | |
10673 | WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}" | |
10674 | else | |
10675 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
10676 | fi | |
10f2d63a VZ |
10677 | ;; |
10678 | *-pc-os2_emx ) | |
e07802fc VZ |
10679 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" |
10680 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
10f2d63a | 10681 | ;; |
b12915c1 | 10682 | *-*-beos* ) |
e2b8b066 | 10683 | SHARED_LD="${LD} -shared -o" |
b12915c1 VZ |
10684 | PIC_FLAG="-fPIC" |
10685 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10686 | WX_ALL="CREATE_LINKS" | |
10687 | ;; | |
10f2d63a | 10688 | *) |
698dcdb6 | 10689 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } |
10f2d63a VZ |
10690 | esac |
10691 | ||
10692 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
10693 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
bdad4e7e | 10694 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" |
10f2d63a | 10695 | fi |
3711412e | 10696 | WX_TARGET_LIBRARY_TYPE="so" |
10f2d63a VZ |
10697 | else |
10698 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
bdad4e7e | 10699 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" |
f6bcfd97 BP |
10700 | |
10701 | if test "$wxUSE_OPENGL" = "yes"; then | |
10702 | WX_ALL_INSTALLED="preinstall_gl" | |
10703 | WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}" | |
10704 | else | |
10705 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
10706 | fi | |
10707 | ||
10708 | if test "$wxUSE_GUI" = "no"; then | |
10709 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
10710 | fi | |
10711 | ||
3711412e | 10712 | WX_TARGET_LIBRARY_TYPE="a" |
10f2d63a VZ |
10713 | fi |
10714 | ||
698dcdb6 VZ |
10715 | |
10716 | for ac_hdr in strings.h | |
10f2d63a | 10717 | do |
698dcdb6 VZ |
10718 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10719 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
b1f5d087 | 10720 | echo "configure:10721: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
10721 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10722 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10723 | else | |
10724 | cat > conftest.$ac_ext <<EOF | |
b1f5d087 | 10725 | #line 10726 "configure" |
10f2d63a | 10726 | #include "confdefs.h" |
698dcdb6 VZ |
10727 | #include <$ac_hdr> |
10728 | EOF | |
10729 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b1f5d087 | 10730 | { (eval echo configure:10731: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
10731 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10732 | if test -z "$ac_err"; then | |
10733 | rm -rf conftest* | |
10734 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 10735 | else |
698dcdb6 VZ |
10736 | echo "$ac_err" >&5 |
10737 | echo "configure: failed program was:" >&5 | |
10f2d63a | 10738 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
10739 | rm -rf conftest* |
10740 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 10741 | fi |
698dcdb6 | 10742 | rm -f conftest* |
10f2d63a | 10743 | fi |
698dcdb6 VZ |
10744 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10745 | echo "$ac_t""yes" 1>&6 | |
10746 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10747 | cat >> confdefs.h <<EOF | |
10748 | #define $ac_tr_hdr 1 | |
10f2d63a | 10749 | EOF |
698dcdb6 VZ |
10750 | |
10751 | else | |
10752 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
10753 | fi |
10754 | done | |
10755 | ||
698dcdb6 | 10756 | for ac_hdr in stdlib.h |
9cfadba2 | 10757 | do |
698dcdb6 VZ |
10758 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10759 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
b1f5d087 | 10760 | echo "configure:10761: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
10761 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10762 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10763 | else | |
10764 | cat > conftest.$ac_ext <<EOF | |
b1f5d087 | 10765 | #line 10766 "configure" |
9cfadba2 | 10766 | #include "confdefs.h" |
698dcdb6 VZ |
10767 | #include <$ac_hdr> |
10768 | EOF | |
10769 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b1f5d087 | 10770 | { (eval echo configure:10771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
10771 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10772 | if test -z "$ac_err"; then | |
10773 | rm -rf conftest* | |
10774 | eval "ac_cv_header_$ac_safe=yes" | |
6232543b | 10775 | else |
698dcdb6 VZ |
10776 | echo "$ac_err" >&5 |
10777 | echo "configure: failed program was:" >&5 | |
9cfadba2 | 10778 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
10779 | rm -rf conftest* |
10780 | eval "ac_cv_header_$ac_safe=no" | |
9cfadba2 | 10781 | fi |
698dcdb6 | 10782 | rm -f conftest* |
9cfadba2 | 10783 | fi |
698dcdb6 VZ |
10784 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10785 | echo "$ac_t""yes" 1>&6 | |
10786 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10787 | cat >> confdefs.h <<EOF | |
10788 | #define $ac_tr_hdr 1 | |
9cfadba2 | 10789 | EOF |
698dcdb6 VZ |
10790 | |
10791 | else | |
10792 | echo "$ac_t""no" 1>&6 | |
9cfadba2 VZ |
10793 | fi |
10794 | done | |
10f2d63a | 10795 | |
698dcdb6 | 10796 | for ac_hdr in unistd.h |
10f2d63a | 10797 | do |
698dcdb6 VZ |
10798 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10799 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
b1f5d087 | 10800 | echo "configure:10801: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
10801 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10802 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10803 | else | |
10804 | cat > conftest.$ac_ext <<EOF | |
b1f5d087 | 10805 | #line 10806 "configure" |
10f2d63a | 10806 | #include "confdefs.h" |
698dcdb6 VZ |
10807 | #include <$ac_hdr> |
10808 | EOF | |
10809 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b1f5d087 | 10810 | { (eval echo configure:10811: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
10811 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10812 | if test -z "$ac_err"; then | |
10813 | rm -rf conftest* | |
10814 | eval "ac_cv_header_$ac_safe=yes" | |
6232543b | 10815 | else |
698dcdb6 VZ |
10816 | echo "$ac_err" >&5 |
10817 | echo "configure: failed program was:" >&5 | |
10f2d63a | 10818 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
10819 | rm -rf conftest* |
10820 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 10821 | fi |
698dcdb6 | 10822 | rm -f conftest* |
10f2d63a | 10823 | fi |
698dcdb6 VZ |
10824 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10825 | echo "$ac_t""yes" 1>&6 | |
10826 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10827 | cat >> confdefs.h <<EOF | |
10828 | #define $ac_tr_hdr 1 | |
10f2d63a | 10829 | EOF |
698dcdb6 VZ |
10830 | |
10831 | else | |
10832 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
10833 | fi |
10834 | done | |
10835 | ||
698dcdb6 | 10836 | for ac_hdr in wchar.h |
10f2d63a | 10837 | do |
698dcdb6 VZ |
10838 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10839 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
b1f5d087 | 10840 | echo "configure:10841: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
10841 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10842 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10843 | else | |
10844 | cat > conftest.$ac_ext <<EOF | |
b1f5d087 | 10845 | #line 10846 "configure" |
10f2d63a | 10846 | #include "confdefs.h" |
698dcdb6 VZ |
10847 | #include <$ac_hdr> |
10848 | EOF | |
10849 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b1f5d087 | 10850 | { (eval echo configure:10851: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
10851 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10852 | if test -z "$ac_err"; then | |
10853 | rm -rf conftest* | |
10854 | eval "ac_cv_header_$ac_safe=yes" | |
6f72b082 | 10855 | else |
698dcdb6 VZ |
10856 | echo "$ac_err" >&5 |
10857 | echo "configure: failed program was:" >&5 | |
6f72b082 | 10858 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
10859 | rm -rf conftest* |
10860 | eval "ac_cv_header_$ac_safe=no" | |
6f72b082 | 10861 | fi |
698dcdb6 | 10862 | rm -f conftest* |
6f72b082 | 10863 | fi |
698dcdb6 VZ |
10864 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10865 | echo "$ac_t""yes" 1>&6 | |
10866 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10867 | cat >> confdefs.h <<EOF | |
10868 | #define $ac_tr_hdr 1 | |
6f72b082 | 10869 | EOF |
698dcdb6 VZ |
10870 | |
10871 | else | |
10872 | echo "$ac_t""no" 1>&6 | |
6f72b082 OK |
10873 | fi |
10874 | done | |
10875 | ||
698dcdb6 | 10876 | for ac_hdr in wcstr.h |
6f72b082 | 10877 | do |
698dcdb6 VZ |
10878 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10879 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
b1f5d087 | 10880 | echo "configure:10881: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
10881 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10882 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10883 | else | |
10884 | cat > conftest.$ac_ext <<EOF | |
b1f5d087 | 10885 | #line 10886 "configure" |
6f72b082 | 10886 | #include "confdefs.h" |
698dcdb6 VZ |
10887 | #include <$ac_hdr> |
10888 | EOF | |
10889 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b1f5d087 | 10890 | { (eval echo configure:10891: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
10891 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10892 | if test -z "$ac_err"; then | |
10893 | rm -rf conftest* | |
10894 | eval "ac_cv_header_$ac_safe=yes" | |
6f72b082 | 10895 | else |
698dcdb6 VZ |
10896 | echo "$ac_err" >&5 |
10897 | echo "configure: failed program was:" >&5 | |
6f72b082 | 10898 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
10899 | rm -rf conftest* |
10900 | eval "ac_cv_header_$ac_safe=no" | |
6f72b082 | 10901 | fi |
698dcdb6 | 10902 | rm -f conftest* |
6f72b082 | 10903 | fi |
698dcdb6 VZ |
10904 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10905 | echo "$ac_t""yes" 1>&6 | |
10906 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10907 | cat >> confdefs.h <<EOF | |
10908 | #define $ac_tr_hdr 1 | |
6f72b082 | 10909 | EOF |
698dcdb6 VZ |
10910 | |
10911 | else | |
10912 | echo "$ac_t""no" 1>&6 | |
6f72b082 OK |
10913 | fi |
10914 | done | |
10915 | ||
698dcdb6 | 10916 | for ac_hdr in fnmatch.h |
6f72b082 | 10917 | do |
698dcdb6 VZ |
10918 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10919 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
b1f5d087 | 10920 | echo "configure:10921: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
10921 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10922 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10923 | else | |
10924 | cat > conftest.$ac_ext <<EOF | |
b1f5d087 | 10925 | #line 10926 "configure" |
6f72b082 | 10926 | #include "confdefs.h" |
698dcdb6 VZ |
10927 | #include <$ac_hdr> |
10928 | EOF | |
10929 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b1f5d087 | 10930 | { (eval echo configure:10931: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
10931 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10932 | if test -z "$ac_err"; then | |
10933 | rm -rf conftest* | |
10934 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 10935 | else |
698dcdb6 VZ |
10936 | echo "$ac_err" >&5 |
10937 | echo "configure: failed program was:" >&5 | |
10f2d63a | 10938 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
10939 | rm -rf conftest* |
10940 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 10941 | fi |
698dcdb6 | 10942 | rm -f conftest* |
10f2d63a | 10943 | fi |
698dcdb6 VZ |
10944 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10945 | echo "$ac_t""yes" 1>&6 | |
10946 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10947 | cat >> confdefs.h <<EOF | |
10948 | #define $ac_tr_hdr 1 | |
10f2d63a | 10949 | EOF |
698dcdb6 VZ |
10950 | |
10951 | else | |
10952 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
10953 | fi |
10954 | done | |
10955 | ||
698dcdb6 | 10956 | for ac_hdr in iconv.h |
0fb0dd83 | 10957 | do |
698dcdb6 VZ |
10958 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10959 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
b1f5d087 | 10960 | echo "configure:10961: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
10961 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10962 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10963 | else | |
10964 | cat > conftest.$ac_ext <<EOF | |
b1f5d087 | 10965 | #line 10966 "configure" |
0fb0dd83 | 10966 | #include "confdefs.h" |
698dcdb6 VZ |
10967 | #include <$ac_hdr> |
10968 | EOF | |
10969 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b1f5d087 | 10970 | { (eval echo configure:10971: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
10971 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10972 | if test -z "$ac_err"; then | |
10973 | rm -rf conftest* | |
10974 | eval "ac_cv_header_$ac_safe=yes" | |
0fb0dd83 | 10975 | else |
698dcdb6 VZ |
10976 | echo "$ac_err" >&5 |
10977 | echo "configure: failed program was:" >&5 | |
0fb0dd83 | 10978 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
10979 | rm -rf conftest* |
10980 | eval "ac_cv_header_$ac_safe=no" | |
0fb0dd83 | 10981 | fi |
698dcdb6 | 10982 | rm -f conftest* |
0fb0dd83 | 10983 | fi |
698dcdb6 VZ |
10984 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10985 | echo "$ac_t""yes" 1>&6 | |
10986 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10987 | cat >> confdefs.h <<EOF | |
10988 | #define $ac_tr_hdr 1 | |
0fb0dd83 | 10989 | EOF |
698dcdb6 VZ |
10990 | |
10991 | else | |
10992 | echo "$ac_t""no" 1>&6 | |
0fb0dd83 RR |
10993 | fi |
10994 | done | |
10995 | ||
698dcdb6 | 10996 | for ac_hdr in langinfo.h |
1f8ae82f | 10997 | do |
698dcdb6 VZ |
10998 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10999 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
b1f5d087 | 11000 | echo "configure:11001: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
11001 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11002 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11003 | else | |
11004 | cat > conftest.$ac_ext <<EOF | |
b1f5d087 | 11005 | #line 11006 "configure" |
1f8ae82f | 11006 | #include "confdefs.h" |
698dcdb6 VZ |
11007 | #include <$ac_hdr> |
11008 | EOF | |
11009 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b1f5d087 | 11010 | { (eval echo configure:11011: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11011 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11012 | if test -z "$ac_err"; then | |
11013 | rm -rf conftest* | |
11014 | eval "ac_cv_header_$ac_safe=yes" | |
1f8ae82f | 11015 | else |
698dcdb6 VZ |
11016 | echo "$ac_err" >&5 |
11017 | echo "configure: failed program was:" >&5 | |
1f8ae82f | 11018 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11019 | rm -rf conftest* |
11020 | eval "ac_cv_header_$ac_safe=no" | |
1f8ae82f | 11021 | fi |
698dcdb6 | 11022 | rm -f conftest* |
1f8ae82f | 11023 | fi |
698dcdb6 VZ |
11024 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11025 | echo "$ac_t""yes" 1>&6 | |
11026 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11027 | cat >> confdefs.h <<EOF | |
11028 | #define $ac_tr_hdr 1 | |
1f8ae82f | 11029 | EOF |
698dcdb6 VZ |
11030 | |
11031 | else | |
11032 | echo "$ac_t""no" 1>&6 | |
1f8ae82f GD |
11033 | fi |
11034 | done | |
11035 | ||
698dcdb6 | 11036 | |
73fd4a60 VZ |
11037 | if test "$wxUSE_GUI" = "yes"; then |
11038 | if test "$wxUSE_UNIX" = "yes"; then | |
698dcdb6 | 11039 | for ac_hdr in X11/XKBlib.h |
10f2d63a | 11040 | do |
698dcdb6 VZ |
11041 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11042 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
b1f5d087 | 11043 | echo "configure:11044: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
11044 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11045 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11046 | else | |
11047 | cat > conftest.$ac_ext <<EOF | |
b1f5d087 | 11048 | #line 11049 "configure" |
10f2d63a | 11049 | #include "confdefs.h" |
698dcdb6 VZ |
11050 | #include <$ac_hdr> |
11051 | EOF | |
11052 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b1f5d087 | 11053 | { (eval echo configure:11054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11054 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11055 | if test -z "$ac_err"; then | |
11056 | rm -rf conftest* | |
11057 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 11058 | else |
698dcdb6 VZ |
11059 | echo "$ac_err" >&5 |
11060 | echo "configure: failed program was:" >&5 | |
10f2d63a | 11061 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11062 | rm -rf conftest* |
11063 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 11064 | fi |
698dcdb6 | 11065 | rm -f conftest* |
10f2d63a | 11066 | fi |
698dcdb6 VZ |
11067 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11068 | echo "$ac_t""yes" 1>&6 | |
11069 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11070 | cat >> confdefs.h <<EOF | |
11071 | #define $ac_tr_hdr 1 | |
10f2d63a | 11072 | EOF |
698dcdb6 VZ |
11073 | |
11074 | else | |
11075 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
11076 | fi |
11077 | done | |
11078 | ||
73fd4a60 | 11079 | fi |
10f2d63a VZ |
11080 | fi |
11081 | ||
698dcdb6 VZ |
11082 | |
11083 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | |
b1f5d087 | 11084 | echo "configure:11085: checking for ANSI C header files" >&5 |
698dcdb6 VZ |
11085 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
11086 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11087 | else |
698dcdb6 | 11088 | cat > conftest.$ac_ext <<EOF |
b1f5d087 | 11089 | #line 11090 "configure" |
10f2d63a VZ |
11090 | #include "confdefs.h" |
11091 | #include <stdlib.h> | |
11092 | #include <stdarg.h> | |
11093 | #include <string.h> | |
11094 | #include <float.h> | |
698dcdb6 VZ |
11095 | EOF |
11096 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b1f5d087 | 11097 | { (eval echo configure:11098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11098 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11099 | if test -z "$ac_err"; then | |
11100 | rm -rf conftest* | |
10f2d63a VZ |
11101 | ac_cv_header_stdc=yes |
11102 | else | |
698dcdb6 VZ |
11103 | echo "$ac_err" >&5 |
11104 | echo "configure: failed program was:" >&5 | |
10f2d63a | 11105 | cat conftest.$ac_ext >&5 |
698dcdb6 | 11106 | rm -rf conftest* |
10f2d63a VZ |
11107 | ac_cv_header_stdc=no |
11108 | fi | |
698dcdb6 | 11109 | rm -f conftest* |
10f2d63a VZ |
11110 | |
11111 | if test $ac_cv_header_stdc = yes; then | |
11112 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
698dcdb6 | 11113 | cat > conftest.$ac_ext <<EOF |
b1f5d087 | 11114 | #line 11115 "configure" |
10f2d63a VZ |
11115 | #include "confdefs.h" |
11116 | #include <string.h> | |
698dcdb6 | 11117 | EOF |
10f2d63a VZ |
11118 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
11119 | egrep "memchr" >/dev/null 2>&1; then | |
11120 | : | |
11121 | else | |
698dcdb6 | 11122 | rm -rf conftest* |
10f2d63a VZ |
11123 | ac_cv_header_stdc=no |
11124 | fi | |
11125 | rm -f conftest* | |
11126 | ||
11127 | fi | |
11128 | ||
11129 | if test $ac_cv_header_stdc = yes; then | |
11130 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
698dcdb6 | 11131 | cat > conftest.$ac_ext <<EOF |
b1f5d087 | 11132 | #line 11133 "configure" |
10f2d63a VZ |
11133 | #include "confdefs.h" |
11134 | #include <stdlib.h> | |
698dcdb6 | 11135 | EOF |
10f2d63a VZ |
11136 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
11137 | egrep "free" >/dev/null 2>&1; then | |
11138 | : | |
11139 | else | |
698dcdb6 | 11140 | rm -rf conftest* |
10f2d63a VZ |
11141 | ac_cv_header_stdc=no |
11142 | fi | |
11143 | rm -f conftest* | |
11144 | ||
11145 | fi | |
11146 | ||
11147 | if test $ac_cv_header_stdc = yes; then | |
11148 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
698dcdb6 | 11149 | if test "$cross_compiling" = yes; then |
10f2d63a VZ |
11150 | : |
11151 | else | |
698dcdb6 | 11152 | cat > conftest.$ac_ext <<EOF |
b1f5d087 | 11153 | #line 11154 "configure" |
10f2d63a VZ |
11154 | #include "confdefs.h" |
11155 | #include <ctype.h> | |
698dcdb6 VZ |
11156 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
11157 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
1e487827 | 11158 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
698dcdb6 VZ |
11159 | int main () { int i; for (i = 0; i < 256; i++) |
11160 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
11161 | exit (0); } | |
11162 | ||
11163 | EOF | |
b1f5d087 | 11164 | if { (eval echo configure:11165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 11165 | then |
10f2d63a VZ |
11166 | : |
11167 | else | |
698dcdb6 VZ |
11168 | echo "configure: failed program was:" >&5 |
11169 | cat conftest.$ac_ext >&5 | |
11170 | rm -fr conftest* | |
11171 | ac_cv_header_stdc=no | |
10f2d63a | 11172 | fi |
698dcdb6 | 11173 | rm -fr conftest* |
10f2d63a | 11174 | fi |
698dcdb6 | 11175 | |
10f2d63a VZ |
11176 | fi |
11177 | fi | |
1e487827 | 11178 | |
698dcdb6 VZ |
11179 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
11180 | if test $ac_cv_header_stdc = yes; then | |
11181 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11182 | #define STDC_HEADERS 1 |
11183 | EOF | |
11184 | ||
11185 | fi | |
11186 | ||
698dcdb6 | 11187 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
b1f5d087 | 11188 | echo "configure:11189: checking for mode_t" >&5 |
698dcdb6 VZ |
11189 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
11190 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 11191 | else |
698dcdb6 | 11192 | cat > conftest.$ac_ext <<EOF |
b1f5d087 | 11193 | #line 11194 "configure" |
1e487827 | 11194 | #include "confdefs.h" |
698dcdb6 VZ |
11195 | #include <sys/types.h> |
11196 | #if STDC_HEADERS | |
11197 | #include <stdlib.h> | |
11198 | #include <stddef.h> | |
11199 | #endif | |
11200 | EOF | |
11201 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11202 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
11203 | rm -rf conftest* | |
10f2d63a VZ |
11204 | ac_cv_type_mode_t=yes |
11205 | else | |
698dcdb6 VZ |
11206 | rm -rf conftest* |
11207 | ac_cv_type_mode_t=no | |
703e0a69 | 11208 | fi |
698dcdb6 | 11209 | rm -f conftest* |
1e487827 | 11210 | |
698dcdb6 VZ |
11211 | fi |
11212 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 | |
11213 | if test $ac_cv_type_mode_t = no; then | |
11214 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11215 | #define mode_t int |
11216 | EOF | |
11217 | ||
11218 | fi | |
11219 | ||
698dcdb6 | 11220 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 |
b1f5d087 | 11221 | echo "configure:11222: checking for off_t" >&5 |
698dcdb6 VZ |
11222 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
11223 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11224 | else |
698dcdb6 | 11225 | cat > conftest.$ac_ext <<EOF |
b1f5d087 | 11226 | #line 11227 "configure" |
10f2d63a | 11227 | #include "confdefs.h" |
698dcdb6 VZ |
11228 | #include <sys/types.h> |
11229 | #if STDC_HEADERS | |
11230 | #include <stdlib.h> | |
11231 | #include <stddef.h> | |
11232 | #endif | |
11233 | EOF | |
11234 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11235 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
11236 | rm -rf conftest* | |
10f2d63a VZ |
11237 | ac_cv_type_off_t=yes |
11238 | else | |
698dcdb6 VZ |
11239 | rm -rf conftest* |
11240 | ac_cv_type_off_t=no | |
703e0a69 | 11241 | fi |
698dcdb6 | 11242 | rm -f conftest* |
1e487827 | 11243 | |
698dcdb6 VZ |
11244 | fi |
11245 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
11246 | if test $ac_cv_type_off_t = no; then | |
11247 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11248 | #define off_t long |
11249 | EOF | |
11250 | ||
11251 | fi | |
11252 | ||
698dcdb6 | 11253 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
b1f5d087 | 11254 | echo "configure:11255: checking for pid_t" >&5 |
698dcdb6 VZ |
11255 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
11256 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11257 | else |
698dcdb6 | 11258 | cat > conftest.$ac_ext <<EOF |
b1f5d087 | 11259 | #line 11260 "configure" |
10f2d63a | 11260 | #include "confdefs.h" |
698dcdb6 VZ |
11261 | #include <sys/types.h> |
11262 | #if STDC_HEADERS | |
11263 | #include <stdlib.h> | |
11264 | #include <stddef.h> | |
11265 | #endif | |
11266 | EOF | |
11267 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11268 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
11269 | rm -rf conftest* | |
10f2d63a VZ |
11270 | ac_cv_type_pid_t=yes |
11271 | else | |
698dcdb6 VZ |
11272 | rm -rf conftest* |
11273 | ac_cv_type_pid_t=no | |
703e0a69 | 11274 | fi |
698dcdb6 | 11275 | rm -f conftest* |
1e487827 | 11276 | |
698dcdb6 VZ |
11277 | fi |
11278 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
11279 | if test $ac_cv_type_pid_t = no; then | |
11280 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11281 | #define pid_t int |
11282 | EOF | |
11283 | ||
11284 | fi | |
11285 | ||
698dcdb6 | 11286 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
b1f5d087 | 11287 | echo "configure:11288: checking for size_t" >&5 |
698dcdb6 VZ |
11288 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
11289 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11290 | else |
698dcdb6 | 11291 | cat > conftest.$ac_ext <<EOF |
b1f5d087 | 11292 | #line 11293 "configure" |
10f2d63a | 11293 | #include "confdefs.h" |
698dcdb6 VZ |
11294 | #include <sys/types.h> |
11295 | #if STDC_HEADERS | |
11296 | #include <stdlib.h> | |
11297 | #include <stddef.h> | |
11298 | #endif | |
11299 | EOF | |
11300 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11301 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
11302 | rm -rf conftest* | |
10f2d63a VZ |
11303 | ac_cv_type_size_t=yes |
11304 | else | |
698dcdb6 VZ |
11305 | rm -rf conftest* |
11306 | ac_cv_type_size_t=no | |
703e0a69 | 11307 | fi |
698dcdb6 | 11308 | rm -f conftest* |
1e487827 | 11309 | |
698dcdb6 VZ |
11310 | fi |
11311 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
11312 | if test $ac_cv_type_size_t = no; then | |
11313 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11314 | #define size_t unsigned |
11315 | EOF | |
11316 | ||
11317 | fi | |
11318 | ||
698dcdb6 | 11319 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
b1f5d087 | 11320 | echo "configure:11321: checking for uid_t in sys/types.h" >&5 |
698dcdb6 VZ |
11321 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
11322 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11323 | else |
698dcdb6 | 11324 | cat > conftest.$ac_ext <<EOF |
b1f5d087 | 11325 | #line 11326 "configure" |
10f2d63a VZ |
11326 | #include "confdefs.h" |
11327 | #include <sys/types.h> | |
698dcdb6 | 11328 | EOF |
10f2d63a VZ |
11329 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
11330 | egrep "uid_t" >/dev/null 2>&1; then | |
698dcdb6 | 11331 | rm -rf conftest* |
10f2d63a VZ |
11332 | ac_cv_type_uid_t=yes |
11333 | else | |
698dcdb6 | 11334 | rm -rf conftest* |
10f2d63a VZ |
11335 | ac_cv_type_uid_t=no |
11336 | fi | |
11337 | rm -f conftest* | |
11338 | ||
11339 | fi | |
1e487827 | 11340 | |
698dcdb6 VZ |
11341 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
11342 | if test $ac_cv_type_uid_t = no; then | |
11343 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11344 | #define uid_t int |
11345 | EOF | |
11346 | ||
698dcdb6 | 11347 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
11348 | #define gid_t int |
11349 | EOF | |
11350 | ||
11351 | fi | |
11352 | ||
1e487827 | 11353 | |
698dcdb6 | 11354 | echo $ac_n "checking for wchar_t""... $ac_c" 1>&6 |
b1f5d087 | 11355 | echo "configure:11356: checking for wchar_t" >&5 |
698dcdb6 VZ |
11356 | if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then |
11357 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11358 | else | |
11359 | ||
11360 | cat > conftest.$ac_ext <<EOF | |
b1f5d087 | 11361 | #line 11362 "configure" |
0046ff7c VS |
11362 | #include "confdefs.h" |
11363 | #include <wchar.h> | |
698dcdb6 | 11364 | int main() { |
0046ff7c | 11365 | |
d836ee96 VZ |
11366 | wchar_t wc, *ws; |
11367 | wc = L'a'; | |
11368 | ws = L"Hello, world!"; | |
698dcdb6 VZ |
11369 | |
11370 | ; return 0; } | |
11371 | EOF | |
b1f5d087 | 11372 | if { (eval echo configure:11373: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 11373 | rm -rf conftest* |
1f8ae82f GD |
11374 | wx_cv_type_wchar_t=yes |
11375 | else | |
698dcdb6 VZ |
11376 | echo "configure: failed program was:" >&5 |
11377 | cat conftest.$ac_ext >&5 | |
11378 | rm -rf conftest* | |
11379 | cat > conftest.$ac_ext <<EOF | |
b1f5d087 | 11380 | #line 11381 "configure" |
1f8ae82f GD |
11381 | #include "confdefs.h" |
11382 | #include <stdlib.h> | |
698dcdb6 | 11383 | int main() { |
1f8ae82f | 11384 | |
d836ee96 VZ |
11385 | wchar_t wc, *ws; |
11386 | wc = L'a'; | |
11387 | ws = L"Hello, world!"; | |
698dcdb6 VZ |
11388 | |
11389 | ; return 0; } | |
11390 | EOF | |
b1f5d087 | 11391 | if { (eval echo configure:11392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 11392 | rm -rf conftest* |
0046ff7c VS |
11393 | wx_cv_type_wchar_t=yes |
11394 | else | |
698dcdb6 VZ |
11395 | echo "configure: failed program was:" >&5 |
11396 | cat conftest.$ac_ext >&5 | |
11397 | rm -rf conftest* | |
11398 | wx_cv_type_wchar_t=no | |
0046ff7c | 11399 | fi |
698dcdb6 | 11400 | rm -f conftest* |
d836ee96 | 11401 | |
6232543b | 11402 | fi |
698dcdb6 | 11403 | rm -f conftest* |
703e0a69 | 11404 | |
1e487827 | 11405 | fi |
698dcdb6 VZ |
11406 | |
11407 | echo "$ac_t""$wx_cv_type_wchar_t" 1>&6 | |
d836ee96 VZ |
11408 | |
11409 | if test "$wx_cv_type_wchar_t" = "yes"; then | |
698dcdb6 | 11410 | cat >> confdefs.h <<\EOF |
0046ff7c VS |
11411 | #define wxUSE_WCHAR_T 1 |
11412 | EOF | |
11413 | ||
11414 | fi | |
11415 | ||
19af3b06 VZ |
11416 | |
11417 | ac_ext=C | |
11418 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11419 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11420 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11421 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11422 | cross_compiling=$ac_cv_prog_cxx_cross | |
11423 | ||
d836ee96 | 11424 | echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6 |
b1f5d087 | 11425 | echo "configure:11426: checking if size_t is unsigned int" >&5 |
d836ee96 VZ |
11426 | if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then |
11427 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11428 | else | |
dd2c8b7c | 11429 | cat > conftest.$ac_ext <<EOF |
b1f5d087 | 11430 | #line 11431 "configure" |
d836ee96 VZ |
11431 | #include "confdefs.h" |
11432 | #include <stddef.h> | |
11433 | int main() { | |
11434 | ||
dd2c8b7c VZ |
11435 | return 0; } |
11436 | ||
d836ee96 | 11437 | struct Foo { void foo(size_t); void foo(unsigned int); }; |
dd2c8b7c VZ |
11438 | |
11439 | int bar() { | |
d836ee96 VZ |
11440 | |
11441 | ; return 0; } | |
11442 | EOF | |
b1f5d087 | 11443 | if { (eval echo configure:11444: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
d836ee96 VZ |
11444 | rm -rf conftest* |
11445 | wx_cv_size_t_is_uint=no | |
11446 | else | |
11447 | echo "configure: failed program was:" >&5 | |
11448 | cat conftest.$ac_ext >&5 | |
11449 | rm -rf conftest* | |
11450 | wx_cv_size_t_is_uint=yes | |
11451 | ||
11452 | fi | |
11453 | rm -f conftest* | |
11454 | ||
11455 | fi | |
11456 | ||
11457 | echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6 | |
11458 | ||
11459 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
11460 | cat >> confdefs.h <<\EOF | |
11461 | #define wxSIZE_T_IS_UINT 1 | |
11462 | EOF | |
11463 | ||
11464 | else | |
11465 | echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6 | |
b1f5d087 | 11466 | echo "configure:11467: checking if size_t is unsigned long" >&5 |
d836ee96 VZ |
11467 | if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then |
11468 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11469 | else | |
11470 | cat > conftest.$ac_ext <<EOF | |
b1f5d087 | 11471 | #line 11472 "configure" |
d836ee96 VZ |
11472 | #include "confdefs.h" |
11473 | #include <stddef.h> | |
11474 | int main() { | |
11475 | ||
dd2c8b7c VZ |
11476 | return 0; } |
11477 | ||
d836ee96 | 11478 | struct Foo { void foo(size_t); void foo(unsigned long); }; |
dd2c8b7c VZ |
11479 | |
11480 | int bar() { | |
d836ee96 VZ |
11481 | |
11482 | ; return 0; } | |
11483 | EOF | |
b1f5d087 | 11484 | if { (eval echo configure:11485: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
d836ee96 VZ |
11485 | rm -rf conftest* |
11486 | wx_cv_size_t_is_ulong=no | |
11487 | else | |
11488 | echo "configure: failed program was:" >&5 | |
11489 | cat conftest.$ac_ext >&5 | |
11490 | rm -rf conftest* | |
11491 | wx_cv_size_t_is_ulong=yes | |
11492 | ||
11493 | fi | |
11494 | rm -f conftest* | |
11495 | ||
11496 | fi | |
11497 | ||
11498 | echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6 | |
11499 | ||
11500 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
11501 | cat >> confdefs.h <<\EOF | |
11502 | #define wxSIZE_T_IS_ULONG 1 | |
11503 | EOF | |
11504 | ||
11505 | fi | |
11506 | fi | |
11507 | ||
19af3b06 VZ |
11508 | ac_ext=c |
11509 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11510 | ac_cpp='$CPP $CPPFLAGS' | |
11511 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11512 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11513 | cross_compiling=$ac_cv_prog_cc_cross | |
11514 | ||
11515 | ||
1e487827 | 11516 | |
698dcdb6 | 11517 | echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6 |
b1f5d087 | 11518 | echo "configure:11519: checking for pw_gecos in struct passwd" >&5 |
698dcdb6 VZ |
11519 | if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then |
11520 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11521 | else | |
11522 | ||
11523 | cat > conftest.$ac_ext <<EOF | |
b1f5d087 | 11524 | #line 11525 "configure" |
b12915c1 VZ |
11525 | #include "confdefs.h" |
11526 | #include <pwd.h> | |
698dcdb6 | 11527 | int main() { |
b12915c1 VZ |
11528 | |
11529 | char *p; | |
11530 | struct passwd *pw; | |
11531 | p = pw->pw_gecos; | |
698dcdb6 VZ |
11532 | |
11533 | ; return 0; } | |
11534 | EOF | |
b1f5d087 | 11535 | if { (eval echo configure:11536: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
11536 | rm -rf conftest* |
11537 | ||
b12915c1 | 11538 | wx_cv_struct_pw_gecos=yes |
698dcdb6 | 11539 | |
b12915c1 | 11540 | else |
698dcdb6 VZ |
11541 | echo "configure: failed program was:" >&5 |
11542 | cat conftest.$ac_ext >&5 | |
11543 | rm -rf conftest* | |
11544 | ||
b12915c1 | 11545 | wx_cv_struct_pw_gecos=no |
698dcdb6 VZ |
11546 | |
11547 | ||
6232543b | 11548 | fi |
698dcdb6 VZ |
11549 | rm -f conftest* |
11550 | ||
703e0a69 | 11551 | |
1e487827 | 11552 | fi |
698dcdb6 VZ |
11553 | |
11554 | echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6 | |
b12915c1 | 11555 | |
bd3277fe | 11556 | if test "$wx_cv_struct_pw_gecos" = "yes"; then |
698dcdb6 | 11557 | cat >> confdefs.h <<\EOF |
bd3277fe VZ |
11558 | #define HAVE_PW_GECOS 1 |
11559 | EOF | |
11560 | ||
11561 | fi | |
11562 | ||
698dcdb6 VZ |
11563 | |
11564 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
b1f5d087 | 11565 | echo "configure:11566: checking for working const" >&5 |
698dcdb6 VZ |
11566 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
11567 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11568 | else |
698dcdb6 | 11569 | cat > conftest.$ac_ext <<EOF |
b1f5d087 | 11570 | #line 11571 "configure" |
10f2d63a | 11571 | #include "confdefs.h" |
698dcdb6 VZ |
11572 | |
11573 | int main() { | |
11574 | ||
11575 | /* Ultrix mips cc rejects this. */ | |
11576 | typedef int charset[2]; const charset x; | |
11577 | /* SunOS 4.1.1 cc rejects this. */ | |
11578 | char const *const *ccp; | |
11579 | char **p; | |
11580 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
11581 | struct point {int x, y;}; | |
11582 | static struct point const zero = {0,0}; | |
11583 | /* AIX XL C 1.02.0.0 rejects this. | |
11584 | It does not let you subtract one const X* pointer from another in an arm | |
11585 | of an if-expression whose if-part is not a constant expression */ | |
11586 | const char *g = "string"; | |
11587 | ccp = &g + (g ? g-g : 0); | |
11588 | /* HPUX 7.0 cc rejects these. */ | |
11589 | ++ccp; | |
11590 | p = (char**) ccp; | |
11591 | ccp = (char const *const *) p; | |
11592 | { /* SCO 3.2v4 cc rejects this. */ | |
11593 | char *t; | |
11594 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
11595 | ||
11596 | *t++ = 0; | |
10f2d63a | 11597 | } |
698dcdb6 VZ |
11598 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
11599 | int x[] = {25, 17}; | |
11600 | const int *foo = &x[0]; | |
11601 | ++foo; | |
703e0a69 | 11602 | } |
698dcdb6 VZ |
11603 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
11604 | typedef const int *iptr; | |
11605 | iptr p = 0; | |
11606 | ++p; | |
6232543b | 11607 | } |
698dcdb6 VZ |
11608 | { /* AIX XL C 1.02.0.0 rejects this saying |
11609 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
11610 | struct s { int j; const int *ap[3]; }; | |
11611 | struct s *b; b->j = 5; | |
1e487827 | 11612 | } |
698dcdb6 VZ |
11613 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
11614 | const int foo = 10; | |
11615 | } | |
11616 | ||
11617 | ; return 0; } | |
11618 | EOF | |
b1f5d087 | 11619 | if { (eval echo configure:11620: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 11620 | rm -rf conftest* |
10f2d63a VZ |
11621 | ac_cv_c_const=yes |
11622 | else | |
698dcdb6 VZ |
11623 | echo "configure: failed program was:" >&5 |
11624 | cat conftest.$ac_ext >&5 | |
11625 | rm -rf conftest* | |
11626 | ac_cv_c_const=no | |
10f2d63a | 11627 | fi |
698dcdb6 | 11628 | rm -f conftest* |
10f2d63a | 11629 | fi |
1e487827 | 11630 | |
698dcdb6 VZ |
11631 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
11632 | if test $ac_cv_c_const = no; then | |
11633 | cat >> confdefs.h <<\EOF | |
11634 | #define const | |
10f2d63a VZ |
11635 | EOF |
11636 | ||
11637 | fi | |
11638 | ||
698dcdb6 | 11639 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
b1f5d087 | 11640 | echo "configure:11641: checking for inline" >&5 |
698dcdb6 VZ |
11641 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
11642 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
11643 | else |
11644 | ac_cv_c_inline=no | |
11645 | for ac_kw in inline __inline__ __inline; do | |
698dcdb6 | 11646 | cat > conftest.$ac_ext <<EOF |
b1f5d087 | 11647 | #line 11648 "configure" |
10f2d63a VZ |
11648 | #include "confdefs.h" |
11649 | ||
698dcdb6 VZ |
11650 | int main() { |
11651 | } $ac_kw foo() { | |
11652 | ; return 0; } | |
11653 | EOF | |
b1f5d087 | 11654 | if { (eval echo configure:11655: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 11655 | rm -rf conftest* |
10f2d63a VZ |
11656 | ac_cv_c_inline=$ac_kw; break |
11657 | else | |
698dcdb6 VZ |
11658 | echo "configure: failed program was:" >&5 |
11659 | cat conftest.$ac_ext >&5 | |
10f2d63a | 11660 | fi |
698dcdb6 | 11661 | rm -f conftest* |
10f2d63a VZ |
11662 | done |
11663 | ||
11664 | fi | |
698dcdb6 VZ |
11665 | |
11666 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | |
11667 | case "$ac_cv_c_inline" in | |
10f2d63a | 11668 | inline | yes) ;; |
698dcdb6 VZ |
11669 | no) cat >> confdefs.h <<\EOF |
11670 | #define inline | |
10f2d63a VZ |
11671 | EOF |
11672 | ;; | |
698dcdb6 | 11673 | *) cat >> confdefs.h <<EOF |
10f2d63a VZ |
11674 | #define inline $ac_cv_c_inline |
11675 | EOF | |
11676 | ;; | |
11677 | esac | |
11678 | ||
698dcdb6 VZ |
11679 | |
11680 | echo $ac_n "checking size of char""... $ac_c" 1>&6 | |
b1f5d087 | 11681 | echo "configure:11682: checking size of char" >&5 |
698dcdb6 VZ |
11682 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
11683 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6232543b | 11684 | else |
1e487827 | 11685 | if test "$cross_compiling" = yes; then |
698dcdb6 | 11686 | ac_cv_sizeof_char=1 |
1e487827 | 11687 | else |
698dcdb6 | 11688 | cat > conftest.$ac_ext <<EOF |
b1f5d087 | 11689 | #line 11690 "configure" |
1e487827 | 11690 | #include "confdefs.h" |
698dcdb6 VZ |
11691 | #include <stdio.h> |
11692 | main() | |
1e487827 | 11693 | { |
698dcdb6 VZ |
11694 | FILE *f=fopen("conftestval", "w"); |
11695 | if (!f) exit(1); | |
11696 | fprintf(f, "%d\n", sizeof(char)); | |
11697 | exit(0); | |
1e487827 | 11698 | } |
698dcdb6 | 11699 | EOF |
b1f5d087 | 11700 | if { (eval echo configure:11701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
11701 | then |
11702 | ac_cv_sizeof_char=`cat conftestval` | |
1e487827 | 11703 | else |
698dcdb6 VZ |
11704 | echo "configure: failed program was:" >&5 |
11705 | cat conftest.$ac_ext >&5 | |
11706 | rm -fr conftest* | |
1e487827 VS |
11707 | ac_cv_sizeof_char=0 |
11708 | fi | |
698dcdb6 | 11709 | rm -fr conftest* |
1e487827 | 11710 | fi |
10f2d63a | 11711 | |
1e487827 | 11712 | fi |
698dcdb6 VZ |
11713 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 |
11714 | cat >> confdefs.h <<EOF | |
11715 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
1e487827 | 11716 | EOF |
6232543b | 11717 | |
703e0a69 | 11718 | |
698dcdb6 | 11719 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
b1f5d087 | 11720 | echo "configure:11721: checking size of short" >&5 |
698dcdb6 VZ |
11721 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
11722 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 11723 | else |
1e487827 | 11724 | if test "$cross_compiling" = yes; then |
698dcdb6 | 11725 | ac_cv_sizeof_short=2 |
1e487827 | 11726 | else |
698dcdb6 | 11727 | cat > conftest.$ac_ext <<EOF |
b1f5d087 | 11728 | #line 11729 "configure" |
1e487827 | 11729 | #include "confdefs.h" |
698dcdb6 VZ |
11730 | #include <stdio.h> |
11731 | main() | |
1e487827 | 11732 | { |
698dcdb6 VZ |
11733 | FILE *f=fopen("conftestval", "w"); |
11734 | if (!f) exit(1); | |
11735 | fprintf(f, "%d\n", sizeof(short)); | |
11736 | exit(0); | |
1e487827 | 11737 | } |
698dcdb6 | 11738 | EOF |
b1f5d087 | 11739 | if { (eval echo configure:11740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
11740 | then |
11741 | ac_cv_sizeof_short=`cat conftestval` | |
1e487827 | 11742 | else |
698dcdb6 VZ |
11743 | echo "configure: failed program was:" >&5 |
11744 | cat conftest.$ac_ext >&5 | |
11745 | rm -fr conftest* | |
11746 | ac_cv_sizeof_short=0 | |
1e487827 | 11747 | fi |
698dcdb6 | 11748 | rm -fr conftest* |
1e487827 | 11749 | fi |
698dcdb6 | 11750 | |
1e487827 | 11751 | fi |
698dcdb6 VZ |
11752 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
11753 | cat >> confdefs.h <<EOF | |
11754 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
11755 | EOF | |
11756 | ||
11757 | ||
11758 | echo $ac_n "checking size of int *""... $ac_c" 1>&6 | |
b1f5d087 | 11759 | echo "configure:11760: checking size of int *" >&5 |
698dcdb6 VZ |
11760 | if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then |
11761 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
11762 | else |
11763 | if test "$cross_compiling" = yes; then | |
698dcdb6 | 11764 | ac_cv_sizeof_int_p=4 |
10f2d63a | 11765 | else |
698dcdb6 | 11766 | cat > conftest.$ac_ext <<EOF |
b1f5d087 | 11767 | #line 11768 "configure" |
10f2d63a | 11768 | #include "confdefs.h" |
698dcdb6 VZ |
11769 | #include <stdio.h> |
11770 | main() | |
10f2d63a | 11771 | { |
698dcdb6 VZ |
11772 | FILE *f=fopen("conftestval", "w"); |
11773 | if (!f) exit(1); | |
11774 | fprintf(f, "%d\n", sizeof(int *)); | |
11775 | exit(0); | |
10f2d63a | 11776 | } |
698dcdb6 | 11777 | EOF |
b1f5d087 | 11778 | if { (eval echo configure:11779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
11779 | then |
11780 | ac_cv_sizeof_int_p=`cat conftestval` | |
10f2d63a | 11781 | else |
698dcdb6 VZ |
11782 | echo "configure: failed program was:" >&5 |
11783 | cat conftest.$ac_ext >&5 | |
11784 | rm -fr conftest* | |
11785 | ac_cv_sizeof_int_p=0 | |
6232543b | 11786 | fi |
698dcdb6 | 11787 | rm -fr conftest* |
1e487827 | 11788 | fi |
698dcdb6 | 11789 | |
1e487827 | 11790 | fi |
698dcdb6 VZ |
11791 | echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6 |
11792 | cat >> confdefs.h <<EOF | |
11793 | #define SIZEOF_INT_P $ac_cv_sizeof_int_p | |
10f2d63a VZ |
11794 | EOF |
11795 | ||
698dcdb6 VZ |
11796 | |
11797 | echo $ac_n "checking size of int""... $ac_c" 1>&6 | |
b1f5d087 | 11798 | echo "configure:11799: checking size of int" >&5 |
698dcdb6 VZ |
11799 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
11800 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
11801 | else |
11802 | if test "$cross_compiling" = yes; then | |
698dcdb6 | 11803 | ac_cv_sizeof_int=4 |
703e0a69 | 11804 | else |
698dcdb6 | 11805 | cat > conftest.$ac_ext <<EOF |
b1f5d087 | 11806 | #line 11807 "configure" |
1e487827 | 11807 | #include "confdefs.h" |
698dcdb6 VZ |
11808 | #include <stdio.h> |
11809 | main() | |
1e487827 | 11810 | { |
698dcdb6 VZ |
11811 | FILE *f=fopen("conftestval", "w"); |
11812 | if (!f) exit(1); | |
11813 | fprintf(f, "%d\n", sizeof(int)); | |
11814 | exit(0); | |
1e487827 | 11815 | } |
698dcdb6 | 11816 | EOF |
b1f5d087 | 11817 | if { (eval echo configure:11818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
11818 | then |
11819 | ac_cv_sizeof_int=`cat conftestval` | |
11820 | else | |
11821 | echo "configure: failed program was:" >&5 | |
11822 | cat conftest.$ac_ext >&5 | |
11823 | rm -fr conftest* | |
11824 | ac_cv_sizeof_int=0 | |
703e0a69 | 11825 | fi |
698dcdb6 VZ |
11826 | rm -fr conftest* |
11827 | fi | |
11828 | ||
11829 | fi | |
11830 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | |
11831 | cat >> confdefs.h <<EOF | |
11832 | #define SIZEOF_INT $ac_cv_sizeof_int | |
11833 | EOF | |
11834 | ||
11835 | ||
11836 | echo $ac_n "checking size of long""... $ac_c" 1>&6 | |
b1f5d087 | 11837 | echo "configure:11838: checking size of long" >&5 |
698dcdb6 VZ |
11838 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
11839 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
11840 | else |
11841 | if test "$cross_compiling" = yes; then | |
698dcdb6 | 11842 | ac_cv_sizeof_long=4 |
10f2d63a | 11843 | else |
698dcdb6 | 11844 | cat > conftest.$ac_ext <<EOF |
b1f5d087 | 11845 | #line 11846 "configure" |
10f2d63a | 11846 | #include "confdefs.h" |
698dcdb6 VZ |
11847 | #include <stdio.h> |
11848 | main() | |
10f2d63a | 11849 | { |
698dcdb6 VZ |
11850 | FILE *f=fopen("conftestval", "w"); |
11851 | if (!f) exit(1); | |
11852 | fprintf(f, "%d\n", sizeof(long)); | |
11853 | exit(0); | |
10f2d63a | 11854 | } |
698dcdb6 | 11855 | EOF |
b1f5d087 | 11856 | if { (eval echo configure:11857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
11857 | then |
11858 | ac_cv_sizeof_long=`cat conftestval` | |
10f2d63a | 11859 | else |
698dcdb6 VZ |
11860 | echo "configure: failed program was:" >&5 |
11861 | cat conftest.$ac_ext >&5 | |
11862 | rm -fr conftest* | |
11863 | ac_cv_sizeof_long=0 | |
10f2d63a | 11864 | fi |
698dcdb6 | 11865 | rm -fr conftest* |
10f2d63a | 11866 | fi |
698dcdb6 | 11867 | |
10f2d63a | 11868 | fi |
698dcdb6 VZ |
11869 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 |
11870 | cat >> confdefs.h <<EOF | |
11871 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
11872 | EOF | |
11873 | ||
11874 | ||
11875 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
b1f5d087 | 11876 | echo "configure:11877: checking size of long long" >&5 |
698dcdb6 VZ |
11877 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
11878 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11879 | else | |
11880 | if test "$cross_compiling" = yes; then | |
11881 | ac_cv_sizeof_long_long=0 | |
11882 | else | |
11883 | cat > conftest.$ac_ext <<EOF | |
b1f5d087 | 11884 | #line 11885 "configure" |
698dcdb6 VZ |
11885 | #include "confdefs.h" |
11886 | #include <stdio.h> | |
11887 | main() | |
11888 | { | |
11889 | FILE *f=fopen("conftestval", "w"); | |
11890 | if (!f) exit(1); | |
11891 | fprintf(f, "%d\n", sizeof(long long)); | |
11892 | exit(0); | |
11893 | } | |
11894 | EOF | |
b1f5d087 | 11895 | if { (eval echo configure:11896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
11896 | then |
11897 | ac_cv_sizeof_long_long=`cat conftestval` | |
6232543b | 11898 | else |
698dcdb6 VZ |
11899 | echo "configure: failed program was:" >&5 |
11900 | cat conftest.$ac_ext >&5 | |
11901 | rm -fr conftest* | |
6232543b VS |
11902 | ac_cv_sizeof_long_long=0 |
11903 | fi | |
698dcdb6 VZ |
11904 | rm -fr conftest* |
11905 | fi | |
11906 | ||
703e0a69 | 11907 | fi |
698dcdb6 VZ |
11908 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
11909 | cat >> confdefs.h <<EOF | |
10f2d63a VZ |
11910 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
11911 | EOF | |
11912 | ||
1e487827 | 11913 | |
698dcdb6 VZ |
11914 | |
11915 | echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6 | |
b1f5d087 | 11916 | echo "configure:11917: checking size of wchar_t" >&5 |
698dcdb6 VZ |
11917 | if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then |
11918 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11919 | else | |
11920 | ||
b93d0d08 VS |
11921 | if test "$cross_compiling" = yes; then |
11922 | wx_cv_sizeof_wchar_t=4 | |
1e6feb95 | 11923 | |
b93d0d08 | 11924 | else |
698dcdb6 | 11925 | cat > conftest.$ac_ext <<EOF |
b1f5d087 | 11926 | #line 11927 "configure" |
b93d0d08 VS |
11927 | #include "confdefs.h" |
11928 | ||
1e6feb95 VZ |
11929 | #ifdef HAVE_WCHAR_H |
11930 | # include <wchar.h> | |
11931 | #endif | |
11932 | #ifdef HAVE_STDLIB_H | |
11933 | # include <stdlib.h> | |
11934 | #endif | |
11935 | #include <stdio.h> | |
11936 | int main() | |
11937 | { | |
11938 | FILE *f=fopen("conftestval", "w"); | |
11939 | if (!f) exit(1); | |
11940 | fprintf(f, "%i", sizeof(wchar_t)); | |
11941 | exit(0); | |
11942 | } | |
698dcdb6 VZ |
11943 | |
11944 | EOF | |
b1f5d087 | 11945 | if { (eval echo configure:11946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 11946 | then |
b93d0d08 VS |
11947 | wx_cv_sizeof_wchar_t=`cat conftestval` |
11948 | else | |
698dcdb6 VZ |
11949 | echo "configure: failed program was:" >&5 |
11950 | cat conftest.$ac_ext >&5 | |
11951 | rm -fr conftest* | |
11952 | wx_cv_sizeof_wchar_t=0 | |
b93d0d08 | 11953 | fi |
698dcdb6 | 11954 | rm -fr conftest* |
b93d0d08 VS |
11955 | fi |
11956 | ||
698dcdb6 | 11957 | |
b93d0d08 VS |
11958 | fi |
11959 | ||
698dcdb6 VZ |
11960 | echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6 |
11961 | ||
11962 | cat >> confdefs.h <<EOF | |
28c6addc | 11963 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t |
b93d0d08 VS |
11964 | EOF |
11965 | ||
698dcdb6 | 11966 | |
698dcdb6 | 11967 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
b1f5d087 | 11968 | echo "configure:11969: checking whether byte ordering is bigendian" >&5 |
698dcdb6 VZ |
11969 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
11970 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
11971 | else |
11972 | ac_cv_c_bigendian=unknown | |
11973 | # See if sys/param.h defines the BYTE_ORDER macro. | |
698dcdb6 | 11974 | cat > conftest.$ac_ext <<EOF |
b1f5d087 | 11975 | #line 11976 "configure" |
10f2d63a VZ |
11976 | #include "confdefs.h" |
11977 | #include <sys/types.h> | |
11978 | #include <sys/param.h> | |
698dcdb6 | 11979 | int main() { |
10f2d63a VZ |
11980 | |
11981 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
11982 | bogus endian macros | |
11983 | #endif | |
698dcdb6 VZ |
11984 | ; return 0; } |
11985 | EOF | |
b1f5d087 | 11986 | if { (eval echo configure:11987: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 11987 | rm -rf conftest* |
10f2d63a | 11988 | # It does; now see whether it defined to BIG_ENDIAN or not. |
698dcdb6 | 11989 | cat > conftest.$ac_ext <<EOF |
b1f5d087 | 11990 | #line 11991 "configure" |
10f2d63a VZ |
11991 | #include "confdefs.h" |
11992 | #include <sys/types.h> | |
11993 | #include <sys/param.h> | |
698dcdb6 | 11994 | int main() { |
10f2d63a VZ |
11995 | |
11996 | #if BYTE_ORDER != BIG_ENDIAN | |
11997 | not big endian | |
11998 | #endif | |
698dcdb6 VZ |
11999 | ; return 0; } |
12000 | EOF | |
b1f5d087 | 12001 | if { (eval echo configure:12002: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 12002 | rm -rf conftest* |
10f2d63a VZ |
12003 | ac_cv_c_bigendian=yes |
12004 | else | |
698dcdb6 VZ |
12005 | echo "configure: failed program was:" >&5 |
12006 | cat conftest.$ac_ext >&5 | |
12007 | rm -rf conftest* | |
12008 | ac_cv_c_bigendian=no | |
10f2d63a | 12009 | fi |
698dcdb6 | 12010 | rm -f conftest* |
10f2d63a | 12011 | else |
698dcdb6 VZ |
12012 | echo "configure: failed program was:" >&5 |
12013 | cat conftest.$ac_ext >&5 | |
10f2d63a | 12014 | fi |
698dcdb6 | 12015 | rm -f conftest* |
10f2d63a VZ |
12016 | if test $ac_cv_c_bigendian = unknown; then |
12017 | if test "$cross_compiling" = yes; then | |
12018 | ac_cv_c_bigendian=unknown | |
12019 | else | |
698dcdb6 | 12020 | cat > conftest.$ac_ext <<EOF |
b1f5d087 | 12021 | #line 12022 "configure" |
10f2d63a VZ |
12022 | #include "confdefs.h" |
12023 | main () { | |
12024 | /* Are we little or big endian? From Harbison&Steele. */ | |
12025 | union | |
12026 | { | |
12027 | long l; | |
12028 | char c[sizeof (long)]; | |
12029 | } u; | |
12030 | u.l = 1; | |
12031 | exit (u.c[sizeof (long) - 1] == 1); | |
12032 | } | |
698dcdb6 | 12033 | EOF |
b1f5d087 | 12034 | if { (eval echo configure:12035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 12035 | then |
10f2d63a VZ |
12036 | ac_cv_c_bigendian=no |
12037 | else | |
698dcdb6 VZ |
12038 | echo "configure: failed program was:" >&5 |
12039 | cat conftest.$ac_ext >&5 | |
12040 | rm -fr conftest* | |
12041 | ac_cv_c_bigendian=yes | |
10f2d63a | 12042 | fi |
698dcdb6 | 12043 | rm -fr conftest* |
10f2d63a | 12044 | fi |
698dcdb6 | 12045 | |
10f2d63a VZ |
12046 | fi |
12047 | fi | |
698dcdb6 VZ |
12048 | |
12049 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | |
10f2d63a | 12050 | if test $ac_cv_c_bigendian = unknown; then |
698dcdb6 | 12051 | 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 |
12052 | fi |
12053 | if test $ac_cv_c_bigendian = yes; then | |
698dcdb6 | 12054 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
12055 | #define WORDS_BIGENDIAN 1 |
12056 | EOF | |
12057 | ||
12058 | fi | |
12059 | ||
698dcdb6 VZ |
12060 | |
12061 | ||
10f2d63a | 12062 | if test "$cross_compiling" = "yes"; then |
698dcdb6 | 12063 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
12064 | #define wxUSE_IOSTREAMH 1 |
12065 | EOF | |
12066 | ||
12067 | else | |
698dcdb6 VZ |
12068 | |
12069 | ac_ext=C | |
12070 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 12071 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
12072 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12073 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12074 | cross_compiling=$ac_cv_prog_cxx_cross | |
12075 | ||
703e0a69 | 12076 | |
698dcdb6 | 12077 | for ac_hdr in iostream |
10f2d63a | 12078 | do |
698dcdb6 VZ |
12079 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12080 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
b1f5d087 | 12081 | echo "configure:12082: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
12082 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12083 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12084 | else | |
12085 | cat > conftest.$ac_ext <<EOF | |
b1f5d087 | 12086 | #line 12087 "configure" |
10f2d63a | 12087 | #include "confdefs.h" |
698dcdb6 VZ |
12088 | #include <$ac_hdr> |
12089 | EOF | |
12090 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b1f5d087 | 12091 | { (eval echo configure:12092: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
12092 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12093 | if test -z "$ac_err"; then | |
12094 | rm -rf conftest* | |
12095 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 12096 | else |
698dcdb6 VZ |
12097 | echo "$ac_err" >&5 |
12098 | echo "configure: failed program was:" >&5 | |
10f2d63a | 12099 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
12100 | rm -rf conftest* |
12101 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 12102 | fi |
698dcdb6 | 12103 | rm -f conftest* |
10f2d63a | 12104 | fi |
698dcdb6 VZ |
12105 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12106 | echo "$ac_t""yes" 1>&6 | |
12107 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12108 | cat >> confdefs.h <<EOF | |
12109 | #define $ac_tr_hdr 1 | |
10f2d63a | 12110 | EOF |
698dcdb6 VZ |
12111 | |
12112 | else | |
12113 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
12114 | fi |
12115 | done | |
12116 | ||
698dcdb6 | 12117 | |
57fe5ed0 VZ |
12118 | if test "$ac_cv_header_iostream" = "yes" ; then |
12119 | : | |
12120 | else | |
698dcdb6 | 12121 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
12122 | #define wxUSE_IOSTREAMH 1 |
12123 | EOF | |
12124 | ||
10f2d63a VZ |
12125 | fi |
12126 | ||
12127 | ac_ext=c | |
698dcdb6 | 12128 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 12129 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
12130 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12131 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12132 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a VZ |
12133 | |
12134 | fi | |
12135 | ||
703e0a69 | 12136 | |
698dcdb6 VZ |
12137 | |
12138 | echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6 | |
b1f5d087 | 12139 | echo "configure:12140: checking if C++ compiler supports bool" >&5 |
698dcdb6 VZ |
12140 | if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then |
12141 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12142 | else | |
12143 | ||
12144 | ||
12145 | ac_ext=C | |
12146 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 12147 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
12148 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12149 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12150 | cross_compiling=$ac_cv_prog_cxx_cross | |
10f2d63a | 12151 | |
698dcdb6 VZ |
12152 | |
12153 | cat > conftest.$ac_ext <<EOF | |
b1f5d087 | 12154 | #line 12155 "configure" |
10f2d63a VZ |
12155 | #include "confdefs.h" |
12156 | ||
698dcdb6 VZ |
12157 | |
12158 | int main() { | |
10f2d63a VZ |
12159 | |
12160 | bool b = true; | |
12161 | ||
12162 | return 0; | |
698dcdb6 VZ |
12163 | |
12164 | ; return 0; } | |
12165 | EOF | |
b1f5d087 | 12166 | if { (eval echo configure:12167: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
12167 | rm -rf conftest* |
12168 | ||
10f2d63a | 12169 | wx_cv_cpp_bool=yes |
698dcdb6 | 12170 | |
10f2d63a | 12171 | else |
698dcdb6 VZ |
12172 | echo "configure: failed program was:" >&5 |
12173 | cat conftest.$ac_ext >&5 | |
12174 | rm -rf conftest* | |
12175 | ||
10f2d63a | 12176 | wx_cv_cpp_bool=no |
698dcdb6 VZ |
12177 | |
12178 | ||
10f2d63a | 12179 | fi |
698dcdb6 | 12180 | rm -f conftest* |
10f2d63a VZ |
12181 | |
12182 | ac_ext=c | |
698dcdb6 | 12183 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 12184 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
12185 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12186 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12187 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a | 12188 | |
698dcdb6 | 12189 | |
10f2d63a | 12190 | fi |
698dcdb6 VZ |
12191 | |
12192 | echo "$ac_t""$wx_cv_cpp_bool" 1>&6 | |
10f2d63a VZ |
12193 | |
12194 | if test "$wx_cv_cpp_bool" = "yes"; then | |
698dcdb6 | 12195 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
12196 | #define HAVE_BOOL 1 |
12197 | EOF | |
12198 | ||
12199 | fi | |
12200 | ||
1e487827 | 12201 | |
698dcdb6 | 12202 | |
698dcdb6 | 12203 | echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6 |
b1f5d087 | 12204 | echo "configure:12205: checking for wcslen in -lc" >&5 |
698dcdb6 VZ |
12205 | ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'` |
12206 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12207 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12208 | else |
698dcdb6 | 12209 | ac_save_LIBS="$LIBS" |
10f2d63a | 12210 | LIBS="-lc $LIBS" |
698dcdb6 | 12211 | cat > conftest.$ac_ext <<EOF |
b1f5d087 | 12212 | #line 12213 "configure" |
10f2d63a VZ |
12213 | #include "confdefs.h" |
12214 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12215 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12216 | builtin and then its argument prototype would still apply. */ |
12217 | char wcslen(); | |
12218 | ||
12219 | int main() { | |
12220 | wcslen() | |
12221 | ; return 0; } | |
12222 | EOF | |
b1f5d087 | 12223 | if { (eval echo configure:12224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12224 | rm -rf conftest* |
12225 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12226 | else | |
12227 | echo "configure: failed program was:" >&5 | |
12228 | cat conftest.$ac_ext >&5 | |
12229 | rm -rf conftest* | |
12230 | eval "ac_cv_lib_$ac_lib_var=no" | |
12231 | fi | |
12232 | rm -f conftest* | |
12233 | LIBS="$ac_save_LIBS" | |
12234 | ||
12235 | fi | |
12236 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12237 | echo "$ac_t""yes" 1>&6 | |
12238 | ||
12239 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
12240 | #define HAVE_WCSLEN 1 |
12241 | EOF | |
12242 | ||
12243 | WCHAR_LINK="" | |
698dcdb6 | 12244 | |
10f2d63a | 12245 | else |
698dcdb6 | 12246 | echo "$ac_t""no" 1>&6 |
10f2d63a | 12247 | |
698dcdb6 | 12248 | echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6 |
b1f5d087 | 12249 | echo "configure:12250: checking for wcslen in -lw" >&5 |
698dcdb6 VZ |
12250 | ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'` |
12251 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12252 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12253 | else |
698dcdb6 | 12254 | ac_save_LIBS="$LIBS" |
10f2d63a | 12255 | LIBS="-lw $LIBS" |
698dcdb6 | 12256 | cat > conftest.$ac_ext <<EOF |
b1f5d087 | 12257 | #line 12258 "configure" |
10f2d63a VZ |
12258 | #include "confdefs.h" |
12259 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12260 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12261 | builtin and then its argument prototype would still apply. */ |
12262 | char wcslen(); | |
12263 | ||
12264 | int main() { | |
12265 | wcslen() | |
12266 | ; return 0; } | |
12267 | EOF | |
b1f5d087 | 12268 | if { (eval echo configure:12269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12269 | rm -rf conftest* |
12270 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12271 | else | |
12272 | echo "configure: failed program was:" >&5 | |
12273 | cat conftest.$ac_ext >&5 | |
12274 | rm -rf conftest* | |
12275 | eval "ac_cv_lib_$ac_lib_var=no" | |
12276 | fi | |
12277 | rm -f conftest* | |
12278 | LIBS="$ac_save_LIBS" | |
12279 | ||
12280 | fi | |
12281 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12282 | echo "$ac_t""yes" 1>&6 | |
12283 | ||
12284 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
12285 | #define HAVE_WCSLEN 1 |
12286 | EOF | |
12287 | ||
12288 | WCHAR_LINK="-lw" | |
698dcdb6 VZ |
12289 | |
12290 | else | |
12291 | echo "$ac_t""no" 1>&6 | |
6232543b | 12292 | fi |
10f2d63a | 12293 | |
698dcdb6 | 12294 | |
1e487827 | 12295 | fi |
703e0a69 | 12296 | |
698dcdb6 VZ |
12297 | |
12298 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 | |
b1f5d087 | 12299 | echo "configure:12300: checking for vprintf" >&5 |
698dcdb6 VZ |
12300 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
12301 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12302 | else | |
12303 | cat > conftest.$ac_ext <<EOF | |
b1f5d087 | 12304 | #line 12305 "configure" |
10f2d63a VZ |
12305 | #include "confdefs.h" |
12306 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 12307 | which can conflict with char vprintf(); below. */ |
10f2d63a VZ |
12308 | #include <assert.h> |
12309 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12310 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12311 | builtin and then its argument prototype would still apply. */ |
12312 | char vprintf(); | |
12313 | ||
12314 | int main() { | |
10f2d63a VZ |
12315 | |
12316 | /* The GNU C library defines this for functions which it implements | |
12317 | to always fail with ENOSYS. Some functions are actually named | |
12318 | something starting with __ and the normal name is an alias. */ | |
698dcdb6 | 12319 | #if defined (__stub_vprintf) || defined (__stub___vprintf) |
10f2d63a VZ |
12320 | choke me |
12321 | #else | |
698dcdb6 | 12322 | vprintf(); |
10f2d63a VZ |
12323 | #endif |
12324 | ||
698dcdb6 VZ |
12325 | ; return 0; } |
12326 | EOF | |
b1f5d087 | 12327 | if { (eval echo configure:12328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12328 | rm -rf conftest* |
12329 | eval "ac_cv_func_vprintf=yes" | |
12330 | else | |
12331 | echo "configure: failed program was:" >&5 | |
12332 | cat conftest.$ac_ext >&5 | |
12333 | rm -rf conftest* | |
12334 | eval "ac_cv_func_vprintf=no" | |
12335 | fi | |
12336 | rm -f conftest* | |
12337 | fi | |
12338 | ||
12339 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then | |
12340 | echo "$ac_t""yes" 1>&6 | |
12341 | cat >> confdefs.h <<\EOF | |
12342 | #define HAVE_VPRINTF 1 | |
12343 | EOF | |
12344 | ||
12345 | else | |
12346 | echo "$ac_t""no" 1>&6 | |
12347 | fi | |
12348 | ||
12349 | if test "$ac_cv_func_vprintf" != yes; then | |
12350 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | |
b1f5d087 | 12351 | echo "configure:12352: checking for _doprnt" >&5 |
698dcdb6 VZ |
12352 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
12353 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12354 | else | |
12355 | cat > conftest.$ac_ext <<EOF | |
b1f5d087 | 12356 | #line 12357 "configure" |
10f2d63a VZ |
12357 | #include "confdefs.h" |
12358 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 12359 | which can conflict with char _doprnt(); below. */ |
10f2d63a VZ |
12360 | #include <assert.h> |
12361 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12362 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12363 | builtin and then its argument prototype would still apply. */ |
12364 | char _doprnt(); | |
12365 | ||
12366 | int main() { | |
10f2d63a VZ |
12367 | |
12368 | /* The GNU C library defines this for functions which it implements | |
12369 | to always fail with ENOSYS. Some functions are actually named | |
12370 | something starting with __ and the normal name is an alias. */ | |
12371 | #if defined (__stub__doprnt) || defined (__stub____doprnt) | |
12372 | choke me | |
12373 | #else | |
698dcdb6 | 12374 | _doprnt(); |
10f2d63a VZ |
12375 | #endif |
12376 | ||
698dcdb6 VZ |
12377 | ; return 0; } |
12378 | EOF | |
b1f5d087 | 12379 | if { (eval echo configure:12380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12380 | rm -rf conftest* |
12381 | eval "ac_cv_func__doprnt=yes" | |
12382 | else | |
12383 | echo "configure: failed program was:" >&5 | |
12384 | cat conftest.$ac_ext >&5 | |
12385 | rm -rf conftest* | |
12386 | eval "ac_cv_func__doprnt=no" | |
12387 | fi | |
12388 | rm -f conftest* | |
12389 | fi | |
12390 | ||
12391 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then | |
12392 | echo "$ac_t""yes" 1>&6 | |
12393 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
12394 | #define HAVE_DOPRNT 1 |
12395 | EOF | |
12396 | ||
698dcdb6 VZ |
12397 | else |
12398 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
12399 | fi |
12400 | ||
12401 | fi | |
12402 | ||
1e487827 | 12403 | |
698dcdb6 VZ |
12404 | |
12405 | ||
12406 | ||
12407 | ||
12408 | ||
12409 | echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6 | |
b1f5d087 | 12410 | echo "configure:12411: checking for vsnprintf" >&5 |
698dcdb6 VZ |
12411 | if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then |
12412 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12413 | else | |
12414 | ||
12415 | cat > conftest.$ac_ext <<EOF | |
b1f5d087 | 12416 | #line 12417 "configure" |
f6bcfd97 BP |
12417 | #include "confdefs.h" |
12418 | ||
12419 | #include <stdio.h> | |
698dcdb6 VZ |
12420 | #include <stdarg.h> |
12421 | ||
12422 | int main() { | |
10f2d63a | 12423 | |
f6bcfd97 | 12424 | int wx_test_vsnprintf(const char *, ...); |
10f2d63a | 12425 | |
f6bcfd97 BP |
12426 | wx_test_vsnprintf("%s"); |
12427 | return 0; | |
12428 | } | |
12429 | ||
12430 | int wx_test_vsnprintf(const char *fmt, ...) | |
12431 | { | |
12432 | char *s; | |
12433 | ||
12434 | va_list argp; | |
12435 | va_start(argp, fmt); | |
12436 | vsnprintf(s, 42, fmt, argp); | |
12437 | va_end(argp); | |
698dcdb6 VZ |
12438 | |
12439 | ; return 0; } | |
12440 | EOF | |
b1f5d087 | 12441 | if { (eval echo configure:12442: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
12442 | rm -rf conftest* |
12443 | ||
f6bcfd97 | 12444 | wx_cv_func_vsnprintf=yes |
698dcdb6 | 12445 | |
10f2d63a | 12446 | else |
698dcdb6 VZ |
12447 | echo "configure: failed program was:" >&5 |
12448 | cat conftest.$ac_ext >&5 | |
12449 | rm -rf conftest* | |
12450 | ||
12451 | cat > conftest.$ac_ext <<EOF | |
b1f5d087 | 12452 | #line 12453 "configure" |
c521c494 RL |
12453 | #include "confdefs.h" |
12454 | ||
12455 | #include <stdio.h> | |
12456 | #include <stdarg.h> | |
698dcdb6 VZ |
12457 | |
12458 | int main() { | |
c521c494 RL |
12459 | |
12460 | int wx_test_vsnprintf(const char *, ...); | |
12461 | ||
12462 | wx_test_vsnprintf("%s"); | |
12463 | return 0; | |
12464 | } | |
12465 | ||
12466 | int wx_test_vsnprintf(const char *fmt, ...) | |
12467 | { | |
12468 | char *s; | |
12469 | ||
12470 | va_list argp; | |
12471 | va_start(argp, fmt); | |
12472 | _vsnprintf(s, 42, fmt, argp); | |
12473 | va_end(argp); | |
698dcdb6 VZ |
12474 | |
12475 | ; return 0; } | |
12476 | EOF | |
b1f5d087 | 12477 | if { (eval echo configure:12478: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
12478 | rm -rf conftest* |
12479 | ||
c521c494 | 12480 | wx_cv_func_vsnprintf=yes |
698dcdb6 | 12481 | |
c521c494 | 12482 | else |
698dcdb6 VZ |
12483 | echo "configure: failed program was:" >&5 |
12484 | cat conftest.$ac_ext >&5 | |
12485 | rm -rf conftest* | |
12486 | ||
c521c494 | 12487 | wx_cv_func_vsnprintf=no |
698dcdb6 | 12488 | |
10f2d63a | 12489 | fi |
698dcdb6 VZ |
12490 | rm -f conftest* |
12491 | ||
6232543b | 12492 | fi |
698dcdb6 | 12493 | rm -f conftest* |
703e0a69 | 12494 | |
1e487827 | 12495 | fi |
698dcdb6 VZ |
12496 | |
12497 | echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6 | |
10f2d63a | 12498 | |
9d8deca0 | 12499 | if test "$wx_cv_func_vsnprintf" = yes; then |
698dcdb6 | 12500 | cat >> confdefs.h <<\EOF |
9d8deca0 VZ |
12501 | #define HAVE_VSNPRINTF 1 |
12502 | EOF | |
12503 | ||
12504 | else | |
698dcdb6 | 12505 | echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2 |
9d8deca0 VZ |
12506 | fi |
12507 | ||
698dcdb6 | 12508 | echo $ac_n "checking for vsscanf""... $ac_c" 1>&6 |
b1f5d087 | 12509 | echo "configure:12510: checking for vsscanf" >&5 |
698dcdb6 VZ |
12510 | if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then |
12511 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12512 | else |
698dcdb6 VZ |
12513 | |
12514 | cat > conftest.$ac_ext <<EOF | |
b1f5d087 | 12515 | #line 12516 "configure" |
10f2d63a | 12516 | #include "confdefs.h" |
10f2d63a | 12517 | |
f6bcfd97 BP |
12518 | #include <stdio.h> |
12519 | #include <stdarg.h> | |
698dcdb6 VZ |
12520 | |
12521 | int main() { | |
10f2d63a | 12522 | |
f6bcfd97 | 12523 | int wx_test_vsscanf(const char *, ...); |
10f2d63a | 12524 | |
f6bcfd97 BP |
12525 | wx_test_vsscanf("%d"); |
12526 | return 0; | |
10f2d63a VZ |
12527 | } |
12528 | ||
f6bcfd97 | 12529 | int wx_test_vsscanf(const char *fmt, ...) |
10f2d63a | 12530 | { |
f6bcfd97 BP |
12531 | va_list argp; |
12532 | va_start(argp, fmt); | |
12533 | vsscanf("42", fmt, argp); | |
12534 | va_end(argp); | |
698dcdb6 VZ |
12535 | |
12536 | ; return 0; } | |
12537 | EOF | |
b1f5d087 | 12538 | if { (eval echo configure:12539: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
12539 | rm -rf conftest* |
12540 | ||
f6bcfd97 | 12541 | wx_cv_func_vsscanf=yes |
698dcdb6 | 12542 | |
10f2d63a | 12543 | else |
698dcdb6 VZ |
12544 | echo "configure: failed program was:" >&5 |
12545 | cat conftest.$ac_ext >&5 | |
12546 | rm -rf conftest* | |
12547 | ||
f6bcfd97 | 12548 | wx_cv_func_vsscanf=no |
698dcdb6 | 12549 | |
6232543b | 12550 | fi |
698dcdb6 | 12551 | rm -f conftest* |
703e0a69 | 12552 | |
1e487827 | 12553 | fi |
698dcdb6 VZ |
12554 | |
12555 | echo "$ac_t""$wx_cv_func_vsscanf" 1>&6 | |
10f2d63a | 12556 | |
9d8deca0 | 12557 | if test "$wx_cv_func_vsscanf" = yes; then |
698dcdb6 | 12558 | cat >> confdefs.h <<\EOF |
9d8deca0 VZ |
12559 | #define HAVE_VSSCANF 1 |
12560 | EOF | |
12561 | ||
12562 | fi | |
12563 | ||
95c8801c VS |
12564 | if test "$TOOLKIT" != "MSW"; then |
12565 | ||
12566 | ||
12567 | ||
698dcdb6 VZ |
12568 | ac_ext=C |
12569 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
12570 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12571 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
12572 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12573 | cross_compiling=$ac_cv_prog_cxx_cross | |
12574 | ||
12575 | echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6 | |
b1f5d087 | 12576 | echo "configure:12577: checking if iconv() takes char**" >&5 |
698dcdb6 VZ |
12577 | if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then |
12578 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12579 | else | |
12580 | ||
12581 | cat > conftest.$ac_ext <<EOF | |
b1f5d087 | 12582 | #line 12583 "configure" |
95c8801c VS |
12583 | #include "confdefs.h" |
12584 | #include <iconv.h> | |
698dcdb6 | 12585 | int main() { |
95c8801c VS |
12586 | |
12587 | char **inbuf, **outbuf; | |
19af3b06 VZ |
12588 | iconv_t cd; |
12589 | size_t insz, outsz; | |
12590 | iconv(cd, inbuf, &insz, outbuf, &outsz); | |
698dcdb6 VZ |
12591 | |
12592 | ; return 0; } | |
12593 | EOF | |
b1f5d087 | 12594 | if { (eval echo configure:12595: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 12595 | rm -rf conftest* |
95c8801c VS |
12596 | wx_cv_iconv_takes_char=yes |
12597 | else | |
698dcdb6 VZ |
12598 | echo "configure: failed program was:" >&5 |
12599 | cat conftest.$ac_ext >&5 | |
12600 | rm -rf conftest* | |
12601 | wx_cv_iconv_takes_char=no | |
95c8801c | 12602 | fi |
698dcdb6 | 12603 | rm -f conftest* |
95c8801c VS |
12604 | |
12605 | fi | |
698dcdb6 VZ |
12606 | |
12607 | echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6 | |
10f2d63a | 12608 | ac_ext=c |
698dcdb6 | 12609 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 12610 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
12611 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12612 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12613 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a | 12614 | |
95c8801c | 12615 | if test "$wx_cv_iconv_takes_char" = yes ; then |
698dcdb6 | 12616 | cat >> confdefs.h <<\EOF |
95c8801c VS |
12617 | #define WX_ICONV_TAKES_CHAR 1 |
12618 | EOF | |
12619 | ||
12620 | fi | |
10f2d63a | 12621 | |
1e487827 | 12622 | |
698dcdb6 VZ |
12623 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
12624 | for ac_func in sigaction | |
eb4efbdc | 12625 | do |
698dcdb6 | 12626 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
b1f5d087 | 12627 | echo "configure:12628: checking for $ac_func" >&5 |
698dcdb6 VZ |
12628 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
12629 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12630 | else | |
12631 | cat > conftest.$ac_ext <<EOF | |
b1f5d087 | 12632 | #line 12633 "configure" |
eb4efbdc VZ |
12633 | #include "confdefs.h" |
12634 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 12635 | which can conflict with char $ac_func(); below. */ |
eb4efbdc VZ |
12636 | #include <assert.h> |
12637 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12638 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12639 | builtin and then its argument prototype would still apply. */ |
12640 | char $ac_func(); | |
12641 | ||
12642 | int main() { | |
eb4efbdc VZ |
12643 | |
12644 | /* The GNU C library defines this for functions which it implements | |
12645 | to always fail with ENOSYS. Some functions are actually named | |
12646 | something starting with __ and the normal name is an alias. */ | |
12647 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12648 | choke me | |
12649 | #else | |
698dcdb6 | 12650 | $ac_func(); |
eb4efbdc VZ |
12651 | #endif |
12652 | ||
698dcdb6 | 12653 | ; return 0; } |
eb4efbdc | 12654 | EOF |
b1f5d087 | 12655 | if { (eval echo configure:12656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12656 | rm -rf conftest* |
12657 | eval "ac_cv_func_$ac_func=yes" | |
12658 | else | |
12659 | echo "configure: failed program was:" >&5 | |
12660 | cat conftest.$ac_ext >&5 | |
12661 | rm -rf conftest* | |
12662 | eval "ac_cv_func_$ac_func=no" | |
12663 | fi | |
12664 | rm -f conftest* | |
12665 | fi | |
eb4efbdc | 12666 | |
698dcdb6 VZ |
12667 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
12668 | echo "$ac_t""yes" 1>&6 | |
12669 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12670 | cat >> confdefs.h <<EOF | |
12671 | #define $ac_tr_func 1 | |
12672 | EOF | |
12673 | ||
12674 | else | |
12675 | echo "$ac_t""no" 1>&6 | |
eb4efbdc VZ |
12676 | fi |
12677 | done | |
12678 | ||
698dcdb6 | 12679 | |
eb4efbdc | 12680 | if test "$ac_cv_func_sigaction" = "no"; then |
698dcdb6 | 12681 | echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2 |
eb4efbdc VZ |
12682 | wxUSE_ON_FATAL_EXCEPTION=no |
12683 | fi | |
f6bcfd97 BP |
12684 | |
12685 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
698dcdb6 VZ |
12686 | |
12687 | ac_ext=C | |
12688 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 12689 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
12690 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12691 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12692 | cross_compiling=$ac_cv_prog_cxx_cross | |
6232543b | 12693 | |
1e487827 | 12694 | |
698dcdb6 | 12695 | echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6 |
b1f5d087 | 12696 | echo "configure:12697: checking for sa_handler type" >&5 |
698dcdb6 VZ |
12697 | if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then |
12698 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12699 | else | |
12700 | ||
12701 | cat > conftest.$ac_ext <<EOF | |
b1f5d087 | 12702 | #line 12703 "configure" |
f6bcfd97 BP |
12703 | #include "confdefs.h" |
12704 | #include <signal.h> | |
698dcdb6 | 12705 | int main() { |
f6bcfd97 BP |
12706 | |
12707 | extern void testSigHandler(int); | |
12708 | ||
12709 | struct sigaction sa; | |
12710 | sa.sa_handler = testSigHandler; | |
698dcdb6 VZ |
12711 | |
12712 | ; return 0; } | |
12713 | EOF | |
b1f5d087 | 12714 | if { (eval echo configure:12715: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
12715 | rm -rf conftest* |
12716 | ||
f6bcfd97 | 12717 | wx_cv_type_sa_handler=int |
698dcdb6 | 12718 | |
f6bcfd97 | 12719 | else |
698dcdb6 VZ |
12720 | echo "configure: failed program was:" >&5 |
12721 | cat conftest.$ac_ext >&5 | |
12722 | rm -rf conftest* | |
12723 | ||
f6bcfd97 | 12724 | wx_cv_type_sa_handler=void |
698dcdb6 | 12725 | |
6232543b | 12726 | fi |
698dcdb6 VZ |
12727 | rm -f conftest* |
12728 | ||
1e487827 | 12729 | fi |
698dcdb6 VZ |
12730 | |
12731 | echo "$ac_t""$wx_cv_type_sa_handler" 1>&6 | |
f6bcfd97 BP |
12732 | |
12733 | ac_ext=c | |
698dcdb6 | 12734 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
f6bcfd97 | 12735 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
12736 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12737 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12738 | cross_compiling=$ac_cv_prog_cc_cross | |
12739 | ||
703e0a69 | 12740 | |
698dcdb6 | 12741 | cat >> confdefs.h <<EOF |
f6bcfd97 BP |
12742 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler |
12743 | EOF | |
12744 | ||
12745 | fi | |
eb4efbdc VZ |
12746 | fi |
12747 | ||
10f2d63a VZ |
12748 | for ac_func in vfork |
12749 | do | |
698dcdb6 | 12750 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
b1f5d087 | 12751 | echo "configure:12752: checking for $ac_func" >&5 |
698dcdb6 VZ |
12752 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
12753 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12754 | else | |
12755 | cat > conftest.$ac_ext <<EOF | |
b1f5d087 | 12756 | #line 12757 "configure" |
10f2d63a VZ |
12757 | #include "confdefs.h" |
12758 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 12759 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
12760 | #include <assert.h> |
12761 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12762 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12763 | builtin and then its argument prototype would still apply. */ |
12764 | char $ac_func(); | |
12765 | ||
12766 | int main() { | |
10f2d63a VZ |
12767 | |
12768 | /* The GNU C library defines this for functions which it implements | |
12769 | to always fail with ENOSYS. Some functions are actually named | |
12770 | something starting with __ and the normal name is an alias. */ | |
12771 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12772 | choke me | |
12773 | #else | |
698dcdb6 | 12774 | $ac_func(); |
10f2d63a VZ |
12775 | #endif |
12776 | ||
698dcdb6 | 12777 | ; return 0; } |
10f2d63a | 12778 | EOF |
b1f5d087 | 12779 | if { (eval echo configure:12780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12780 | rm -rf conftest* |
12781 | eval "ac_cv_func_$ac_func=yes" | |
12782 | else | |
12783 | echo "configure: failed program was:" >&5 | |
12784 | cat conftest.$ac_ext >&5 | |
12785 | rm -rf conftest* | |
12786 | eval "ac_cv_func_$ac_func=no" | |
12787 | fi | |
12788 | rm -f conftest* | |
12789 | fi | |
270a909e | 12790 | |
698dcdb6 VZ |
12791 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
12792 | echo "$ac_t""yes" 1>&6 | |
12793 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12794 | cat >> confdefs.h <<EOF | |
12795 | #define $ac_tr_func 1 | |
12796 | EOF | |
12797 | ||
12798 | else | |
12799 | echo "$ac_t""no" 1>&6 | |
270a909e VZ |
12800 | fi |
12801 | done | |
12802 | ||
1e487827 | 12803 | |
698dcdb6 VZ |
12804 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
12805 | for ac_func in fcntl flock | |
4f3c5f06 | 12806 | do |
698dcdb6 | 12807 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
b1f5d087 | 12808 | echo "configure:12809: checking for $ac_func" >&5 |
698dcdb6 VZ |
12809 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
12810 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12811 | else | |
12812 | cat > conftest.$ac_ext <<EOF | |
b1f5d087 | 12813 | #line 12814 "configure" |
4f3c5f06 VZ |
12814 | #include "confdefs.h" |
12815 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 12816 | which can conflict with char $ac_func(); below. */ |
4f3c5f06 VZ |
12817 | #include <assert.h> |
12818 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12819 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12820 | builtin and then its argument prototype would still apply. */ |
12821 | char $ac_func(); | |
12822 | ||
12823 | int main() { | |
4f3c5f06 VZ |
12824 | |
12825 | /* The GNU C library defines this for functions which it implements | |
12826 | to always fail with ENOSYS. Some functions are actually named | |
12827 | something starting with __ and the normal name is an alias. */ | |
12828 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12829 | choke me | |
12830 | #else | |
698dcdb6 | 12831 | $ac_func(); |
4f3c5f06 VZ |
12832 | #endif |
12833 | ||
698dcdb6 VZ |
12834 | ; return 0; } |
12835 | EOF | |
b1f5d087 | 12836 | if { (eval echo configure:12837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12837 | rm -rf conftest* |
12838 | eval "ac_cv_func_$ac_func=yes" | |
12839 | else | |
12840 | echo "configure: failed program was:" >&5 | |
12841 | cat conftest.$ac_ext >&5 | |
12842 | rm -rf conftest* | |
12843 | eval "ac_cv_func_$ac_func=no" | |
12844 | fi | |
12845 | rm -f conftest* | |
12846 | fi | |
12847 | ||
12848 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
12849 | echo "$ac_t""yes" 1>&6 | |
12850 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12851 | cat >> confdefs.h <<EOF | |
12852 | #define $ac_tr_func 1 | |
4f3c5f06 VZ |
12853 | EOF |
12854 | break | |
698dcdb6 VZ |
12855 | else |
12856 | echo "$ac_t""no" 1>&6 | |
4f3c5f06 VZ |
12857 | fi |
12858 | done | |
12859 | ||
698dcdb6 | 12860 | |
4f3c5f06 | 12861 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then |
698dcdb6 | 12862 | echo "configure: warning: wxSingleInstanceChecker not available" 1>&2 |
4f3c5f06 VZ |
12863 | wxUSE_SNGLINST_CHECKER=no |
12864 | fi | |
12865 | fi | |
12866 | ||
270a909e VZ |
12867 | for ac_func in timegm |
12868 | do | |
698dcdb6 | 12869 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
b1f5d087 | 12870 | echo "configure:12871: checking for $ac_func" >&5 |
698dcdb6 VZ |
12871 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
12872 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12873 | else | |
12874 | cat > conftest.$ac_ext <<EOF | |
b1f5d087 | 12875 | #line 12876 "configure" |
270a909e VZ |
12876 | #include "confdefs.h" |
12877 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 12878 | which can conflict with char $ac_func(); below. */ |
270a909e VZ |
12879 | #include <assert.h> |
12880 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12881 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12882 | builtin and then its argument prototype would still apply. */ |
12883 | char $ac_func(); | |
12884 | ||
12885 | int main() { | |
270a909e VZ |
12886 | |
12887 | /* The GNU C library defines this for functions which it implements | |
12888 | to always fail with ENOSYS. Some functions are actually named | |
12889 | something starting with __ and the normal name is an alias. */ | |
12890 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12891 | choke me | |
12892 | #else | |
698dcdb6 | 12893 | $ac_func(); |
270a909e VZ |
12894 | #endif |
12895 | ||
698dcdb6 | 12896 | ; return 0; } |
270a909e | 12897 | EOF |
b1f5d087 | 12898 | if { (eval echo configure:12899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12899 | rm -rf conftest* |
12900 | eval "ac_cv_func_$ac_func=yes" | |
12901 | else | |
12902 | echo "configure: failed program was:" >&5 | |
12903 | cat conftest.$ac_ext >&5 | |
12904 | rm -rf conftest* | |
12905 | eval "ac_cv_func_$ac_func=no" | |
12906 | fi | |
12907 | rm -f conftest* | |
12908 | fi | |
10f2d63a | 12909 | |
698dcdb6 VZ |
12910 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
12911 | echo "$ac_t""yes" 1>&6 | |
12912 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12913 | cat >> confdefs.h <<EOF | |
12914 | #define $ac_tr_func 1 | |
12915 | EOF | |
12916 | ||
12917 | else | |
12918 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
12919 | fi |
12920 | done | |
12921 | ||
698dcdb6 | 12922 | |
8fd0d89b VZ |
12923 | for ac_func in putenv setenv |
12924 | do | |
698dcdb6 | 12925 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
b1f5d087 | 12926 | echo "configure:12927: checking for $ac_func" >&5 |
698dcdb6 VZ |
12927 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
12928 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12929 | else | |
12930 | cat > conftest.$ac_ext <<EOF | |
b1f5d087 | 12931 | #line 12932 "configure" |
8fd0d89b VZ |
12932 | #include "confdefs.h" |
12933 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 12934 | which can conflict with char $ac_func(); below. */ |
8fd0d89b VZ |
12935 | #include <assert.h> |
12936 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12937 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12938 | builtin and then its argument prototype would still apply. */ |
12939 | char $ac_func(); | |
12940 | ||
12941 | int main() { | |
8fd0d89b VZ |
12942 | |
12943 | /* The GNU C library defines this for functions which it implements | |
12944 | to always fail with ENOSYS. Some functions are actually named | |
12945 | something starting with __ and the normal name is an alias. */ | |
12946 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12947 | choke me | |
12948 | #else | |
698dcdb6 | 12949 | $ac_func(); |
8fd0d89b VZ |
12950 | #endif |
12951 | ||
698dcdb6 VZ |
12952 | ; return 0; } |
12953 | EOF | |
b1f5d087 | 12954 | if { (eval echo configure:12955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12955 | rm -rf conftest* |
12956 | eval "ac_cv_func_$ac_func=yes" | |
12957 | else | |
12958 | echo "configure: failed program was:" >&5 | |
12959 | cat conftest.$ac_ext >&5 | |
12960 | rm -rf conftest* | |
12961 | eval "ac_cv_func_$ac_func=no" | |
12962 | fi | |
12963 | rm -f conftest* | |
12964 | fi | |
12965 | ||
12966 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
12967 | echo "$ac_t""yes" 1>&6 | |
12968 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12969 | cat >> confdefs.h <<EOF | |
12970 | #define $ac_tr_func 1 | |
8fd0d89b VZ |
12971 | EOF |
12972 | break | |
698dcdb6 VZ |
12973 | else |
12974 | echo "$ac_t""no" 1>&6 | |
8fd0d89b VZ |
12975 | fi |
12976 | done | |
12977 | ||
698dcdb6 | 12978 | |
b12915c1 VZ |
12979 | HAVE_SOME_SLEEP_FUNC=0 |
12980 | if test "$USE_BEOS" = 1; then | |
698dcdb6 | 12981 | cat >> confdefs.h <<\EOF |
b12915c1 VZ |
12982 | #define HAVE_SLEEP 1 |
12983 | EOF | |
12984 | ||
12985 | HAVE_SOME_SLEEP_FUNC=1 | |
12986 | fi | |
12987 | ||
b4085ce6 | 12988 | if test "$USE_MAC" = 1; then |
698dcdb6 | 12989 | cat >> confdefs.h <<\EOF |
b4085ce6 GD |
12990 | #define HAVE_USLEEP 1 |
12991 | EOF | |
12992 | ||
12993 | HAVE_SOME_SLEEP_FUNC=1 | |
12994 | fi | |
12995 | ||
b12915c1 VZ |
12996 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then |
12997 | POSIX4_LINK= | |
698dcdb6 | 12998 | for ac_func in nanosleep |
10f2d63a | 12999 | do |
698dcdb6 | 13000 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
b1f5d087 | 13001 | echo "configure:13002: checking for $ac_func" >&5 |
698dcdb6 VZ |
13002 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13003 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13004 | else | |
13005 | cat > conftest.$ac_ext <<EOF | |
b1f5d087 | 13006 | #line 13007 "configure" |
10f2d63a VZ |
13007 | #include "confdefs.h" |
13008 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13009 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
13010 | #include <assert.h> |
13011 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13012 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13013 | builtin and then its argument prototype would still apply. */ |
13014 | char $ac_func(); | |
13015 | ||
13016 | int main() { | |
10f2d63a VZ |
13017 | |
13018 | /* The GNU C library defines this for functions which it implements | |
13019 | to always fail with ENOSYS. Some functions are actually named | |
13020 | something starting with __ and the normal name is an alias. */ | |
13021 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13022 | choke me | |
13023 | #else | |
698dcdb6 | 13024 | $ac_func(); |
10f2d63a VZ |
13025 | #endif |
13026 | ||
698dcdb6 VZ |
13027 | ; return 0; } |
13028 | EOF | |
b1f5d087 | 13029 | if { (eval echo configure:13030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13030 | rm -rf conftest* |
13031 | eval "ac_cv_func_$ac_func=yes" | |
13032 | else | |
13033 | echo "configure: failed program was:" >&5 | |
13034 | cat conftest.$ac_ext >&5 | |
13035 | rm -rf conftest* | |
13036 | eval "ac_cv_func_$ac_func=no" | |
13037 | fi | |
13038 | rm -f conftest* | |
13039 | fi | |
13040 | ||
13041 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13042 | echo "$ac_t""yes" 1>&6 | |
13043 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13044 | cat >> confdefs.h <<EOF | |
13045 | #define $ac_tr_func 1 | |
13046 | EOF | |
13047 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
13048 | #define HAVE_NANOSLEEP 1 |
13049 | EOF | |
13050 | ||
13051 | else | |
698dcdb6 VZ |
13052 | echo "$ac_t""no" 1>&6 |
13053 | echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 | |
b1f5d087 | 13054 | echo "configure:13055: checking for nanosleep in -lposix4" >&5 |
698dcdb6 VZ |
13055 | ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` |
13056 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13057 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13058 | else |
698dcdb6 | 13059 | ac_save_LIBS="$LIBS" |
10f2d63a | 13060 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 13061 | cat > conftest.$ac_ext <<EOF |
b1f5d087 | 13062 | #line 13063 "configure" |
10f2d63a VZ |
13063 | #include "confdefs.h" |
13064 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13065 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13066 | builtin and then its argument prototype would still apply. */ |
13067 | char nanosleep(); | |
13068 | ||
13069 | int main() { | |
13070 | nanosleep() | |
13071 | ; return 0; } | |
13072 | EOF | |
b1f5d087 | 13073 | if { (eval echo configure:13074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13074 | rm -rf conftest* |
13075 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13076 | else | |
13077 | echo "configure: failed program was:" >&5 | |
13078 | cat conftest.$ac_ext >&5 | |
13079 | rm -rf conftest* | |
13080 | eval "ac_cv_lib_$ac_lib_var=no" | |
13081 | fi | |
13082 | rm -f conftest* | |
13083 | LIBS="$ac_save_LIBS" | |
13084 | ||
13085 | fi | |
13086 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13087 | echo "$ac_t""yes" 1>&6 | |
13088 | ||
13089 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
13090 | #define HAVE_NANOSLEEP 1 |
13091 | EOF | |
13092 | ||
b12915c1 | 13093 | POSIX4_LINK="-lposix4" |
698dcdb6 | 13094 | |
10f2d63a | 13095 | else |
698dcdb6 | 13096 | echo "$ac_t""no" 1>&6 |
10f2d63a | 13097 | |
698dcdb6 | 13098 | for ac_func in usleep |
10f2d63a | 13099 | do |
698dcdb6 | 13100 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
b1f5d087 | 13101 | echo "configure:13102: checking for $ac_func" >&5 |
698dcdb6 VZ |
13102 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13103 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13104 | else | |
13105 | cat > conftest.$ac_ext <<EOF | |
b1f5d087 | 13106 | #line 13107 "configure" |
10f2d63a VZ |
13107 | #include "confdefs.h" |
13108 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13109 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
13110 | #include <assert.h> |
13111 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13112 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13113 | builtin and then its argument prototype would still apply. */ |
13114 | char $ac_func(); | |
13115 | ||
13116 | int main() { | |
10f2d63a VZ |
13117 | |
13118 | /* The GNU C library defines this for functions which it implements | |
13119 | to always fail with ENOSYS. Some functions are actually named | |
13120 | something starting with __ and the normal name is an alias. */ | |
13121 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13122 | choke me | |
13123 | #else | |
698dcdb6 | 13124 | $ac_func(); |
10f2d63a VZ |
13125 | #endif |
13126 | ||
698dcdb6 VZ |
13127 | ; return 0; } |
13128 | EOF | |
b1f5d087 | 13129 | if { (eval echo configure:13130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13130 | rm -rf conftest* |
13131 | eval "ac_cv_func_$ac_func=yes" | |
13132 | else | |
13133 | echo "configure: failed program was:" >&5 | |
13134 | cat conftest.$ac_ext >&5 | |
13135 | rm -rf conftest* | |
13136 | eval "ac_cv_func_$ac_func=no" | |
13137 | fi | |
13138 | rm -f conftest* | |
13139 | fi | |
13140 | ||
13141 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13142 | echo "$ac_t""yes" 1>&6 | |
13143 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13144 | cat >> confdefs.h <<EOF | |
13145 | #define $ac_tr_func 1 | |
13146 | EOF | |
13147 | cat >> confdefs.h <<\EOF | |
b4085ce6 GD |
13148 | #define HAVE_USLEEP 1 |
13149 | EOF | |
13150 | ||
10f2d63a | 13151 | else |
698dcdb6 VZ |
13152 | echo "$ac_t""no" 1>&6 |
13153 | echo "configure: warning: wxSleep() function will not work" 1>&2 | |
13154 | ||
10f2d63a VZ |
13155 | fi |
13156 | done | |
13157 | ||
698dcdb6 VZ |
13158 | |
13159 | ||
10f2d63a VZ |
13160 | fi |
13161 | ||
698dcdb6 VZ |
13162 | |
13163 | ||
10f2d63a VZ |
13164 | fi |
13165 | done | |
13166 | ||
b12915c1 | 13167 | fi |
10f2d63a VZ |
13168 | |
13169 | for ac_func in uname gethostname | |
13170 | do | |
698dcdb6 | 13171 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
b1f5d087 | 13172 | echo "configure:13173: checking for $ac_func" >&5 |
698dcdb6 VZ |
13173 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13174 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13175 | else | |
13176 | cat > conftest.$ac_ext <<EOF | |
b1f5d087 | 13177 | #line 13178 "configure" |
10f2d63a VZ |
13178 | #include "confdefs.h" |
13179 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13180 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
13181 | #include <assert.h> |
13182 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13183 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13184 | builtin and then its argument prototype would still apply. */ |
13185 | char $ac_func(); | |
13186 | ||
13187 | int main() { | |
10f2d63a VZ |
13188 | |
13189 | /* The GNU C library defines this for functions which it implements | |
13190 | to always fail with ENOSYS. Some functions are actually named | |
13191 | something starting with __ and the normal name is an alias. */ | |
13192 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13193 | choke me | |
13194 | #else | |
698dcdb6 | 13195 | $ac_func(); |
10f2d63a VZ |
13196 | #endif |
13197 | ||
698dcdb6 VZ |
13198 | ; return 0; } |
13199 | EOF | |
b1f5d087 | 13200 | if { (eval echo configure:13201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13201 | rm -rf conftest* |
13202 | eval "ac_cv_func_$ac_func=yes" | |
13203 | else | |
13204 | echo "configure: failed program was:" >&5 | |
13205 | cat conftest.$ac_ext >&5 | |
13206 | rm -rf conftest* | |
13207 | eval "ac_cv_func_$ac_func=no" | |
13208 | fi | |
13209 | rm -f conftest* | |
13210 | fi | |
13211 | ||
13212 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13213 | echo "$ac_t""yes" 1>&6 | |
13214 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13215 | cat >> confdefs.h <<EOF | |
13216 | #define $ac_tr_func 1 | |
10f2d63a VZ |
13217 | EOF |
13218 | break | |
698dcdb6 VZ |
13219 | else |
13220 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13221 | fi |
13222 | done | |
13223 | ||
698dcdb6 VZ |
13224 | |
13225 | ||
13226 | ac_ext=C | |
13227 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6098c7f9 | 13228 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
13229 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
13230 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13231 | cross_compiling=$ac_cv_prog_cxx_cross | |
13232 | ||
6098c7f9 | 13233 | |
10f2d63a VZ |
13234 | for ac_func in strtok_r |
13235 | do | |
698dcdb6 | 13236 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
b1f5d087 | 13237 | echo "configure:13238: checking for $ac_func" >&5 |
698dcdb6 VZ |
13238 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13239 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13240 | else | |
13241 | cat > conftest.$ac_ext <<EOF | |
b1f5d087 | 13242 | #line 13243 "configure" |
10f2d63a VZ |
13243 | #include "confdefs.h" |
13244 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13245 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
13246 | #include <assert.h> |
13247 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6098c7f9 VZ |
13248 | #ifdef __cplusplus |
13249 | extern "C" | |
13250 | #endif | |
10f2d63a | 13251 | /* We use char because int might match the return type of a gcc2 |
698dcdb6 VZ |
13252 | builtin and then its argument prototype would still apply. */ |
13253 | char $ac_func(); | |
13254 | ||
13255 | int main() { | |
10f2d63a VZ |
13256 | |
13257 | /* The GNU C library defines this for functions which it implements | |
13258 | to always fail with ENOSYS. Some functions are actually named | |
13259 | something starting with __ and the normal name is an alias. */ | |
13260 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13261 | choke me | |
13262 | #else | |
698dcdb6 | 13263 | $ac_func(); |
10f2d63a VZ |
13264 | #endif |
13265 | ||
698dcdb6 | 13266 | ; return 0; } |
10f2d63a | 13267 | EOF |
b1f5d087 | 13268 | if { (eval echo configure:13269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13269 | rm -rf conftest* |
13270 | eval "ac_cv_func_$ac_func=yes" | |
13271 | else | |
13272 | echo "configure: failed program was:" >&5 | |
13273 | cat conftest.$ac_ext >&5 | |
13274 | rm -rf conftest* | |
13275 | eval "ac_cv_func_$ac_func=no" | |
13276 | fi | |
13277 | rm -f conftest* | |
13278 | fi | |
10f2d63a | 13279 | |
698dcdb6 VZ |
13280 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
13281 | echo "$ac_t""yes" 1>&6 | |
13282 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13283 | cat >> confdefs.h <<EOF | |
13284 | #define $ac_tr_func 1 | |
13285 | EOF | |
13286 | ||
13287 | else | |
13288 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13289 | fi |
13290 | done | |
13291 | ||
698dcdb6 | 13292 | |
6098c7f9 | 13293 | ac_ext=c |
698dcdb6 | 13294 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
6098c7f9 | 13295 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
13296 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
13297 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13298 | cross_compiling=$ac_cv_prog_cc_cross | |
6232543b | 13299 | |
1e487827 | 13300 | |
698dcdb6 | 13301 | INET_LINK= |
10f2d63a VZ |
13302 | for ac_func in inet_addr |
13303 | do | |
698dcdb6 | 13304 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
b1f5d087 | 13305 | echo "configure:13306: checking for $ac_func" >&5 |
698dcdb6 VZ |
13306 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13307 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13308 | else | |
13309 | cat > conftest.$ac_ext <<EOF | |
b1f5d087 | 13310 | #line 13311 "configure" |
10f2d63a VZ |
13311 | #include "confdefs.h" |
13312 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 VZ |
13313 | which can conflict with char $ac_func(); below. */ |
13314 | #include <assert.h> | |
13315 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10f2d63a | 13316 | /* We use char because int might match the return type of a gcc2 |
698dcdb6 VZ |
13317 | builtin and then its argument prototype would still apply. */ |
13318 | char $ac_func(); | |
13319 | ||
13320 | int main() { | |
10f2d63a VZ |
13321 | |
13322 | /* The GNU C library defines this for functions which it implements | |
13323 | to always fail with ENOSYS. Some functions are actually named | |
1e487827 VS |
13324 | something starting with __ and the normal name is an alias. */ |
13325 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13326 | choke me | |
13327 | #else | |
698dcdb6 | 13328 | $ac_func(); |
1e487827 | 13329 | #endif |
703e0a69 | 13330 | |
698dcdb6 VZ |
13331 | ; return 0; } |
13332 | EOF | |
b1f5d087 | 13333 | if { (eval echo configure:13334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13334 | rm -rf conftest* |
13335 | eval "ac_cv_func_$ac_func=yes" | |
13336 | else | |
13337 | echo "configure: failed program was:" >&5 | |
13338 | cat conftest.$ac_ext >&5 | |
13339 | rm -rf conftest* | |
13340 | eval "ac_cv_func_$ac_func=no" | |
13341 | fi | |
13342 | rm -f conftest* | |
13343 | fi | |
13344 | ||
13345 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13346 | echo "$ac_t""yes" 1>&6 | |
13347 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13348 | cat >> confdefs.h <<EOF | |
13349 | #define $ac_tr_func 1 | |
13350 | EOF | |
13351 | cat >> confdefs.h <<\EOF | |
c63c7106 VZ |
13352 | #define HAVE_INET_ADDR 1 |
13353 | EOF | |
13354 | ||
10f2d63a | 13355 | else |
698dcdb6 VZ |
13356 | echo "$ac_t""no" 1>&6 |
13357 | echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6 | |
b1f5d087 | 13358 | echo "configure:13359: checking for inet_addr in -lnsl" >&5 |
698dcdb6 VZ |
13359 | ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'` |
13360 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13361 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 13362 | else |
698dcdb6 | 13363 | ac_save_LIBS="$LIBS" |
c63c7106 | 13364 | LIBS="-lnsl $LIBS" |
698dcdb6 | 13365 | cat > conftest.$ac_ext <<EOF |
b1f5d087 | 13366 | #line 13367 "configure" |
c63c7106 VZ |
13367 | #include "confdefs.h" |
13368 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13369 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13370 | builtin and then its argument prototype would still apply. */ |
13371 | char inet_addr(); | |
13372 | ||
13373 | int main() { | |
13374 | inet_addr() | |
13375 | ; return 0; } | |
13376 | EOF | |
b1f5d087 | 13377 | if { (eval echo configure:13378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13378 | rm -rf conftest* |
13379 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13380 | else | |
13381 | echo "configure: failed program was:" >&5 | |
13382 | cat conftest.$ac_ext >&5 | |
13383 | rm -rf conftest* | |
13384 | eval "ac_cv_lib_$ac_lib_var=no" | |
13385 | fi | |
13386 | rm -f conftest* | |
13387 | LIBS="$ac_save_LIBS" | |
13388 | ||
13389 | fi | |
13390 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13391 | echo "$ac_t""yes" 1>&6 | |
c63c7106 VZ |
13392 | INET_LINK="nsl" |
13393 | else | |
698dcdb6 VZ |
13394 | echo "$ac_t""no" 1>&6 |
13395 | echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6 | |
b1f5d087 | 13396 | echo "configure:13397: checking for inet_addr in -lresolv" >&5 |
698dcdb6 VZ |
13397 | ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'` |
13398 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13399 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 13400 | else |
698dcdb6 | 13401 | ac_save_LIBS="$LIBS" |
c63c7106 | 13402 | LIBS="-lresolv $LIBS" |
698dcdb6 | 13403 | cat > conftest.$ac_ext <<EOF |
b1f5d087 | 13404 | #line 13405 "configure" |
c63c7106 VZ |
13405 | #include "confdefs.h" |
13406 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13407 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13408 | builtin and then its argument prototype would still apply. */ |
13409 | char inet_addr(); | |
13410 | ||
13411 | int main() { | |
13412 | inet_addr() | |
13413 | ; return 0; } | |
13414 | EOF | |
b1f5d087 | 13415 | if { (eval echo configure:13416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13416 | rm -rf conftest* |
13417 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13418 | else | |
13419 | echo "configure: failed program was:" >&5 | |
13420 | cat conftest.$ac_ext >&5 | |
13421 | rm -rf conftest* | |
13422 | eval "ac_cv_lib_$ac_lib_var=no" | |
13423 | fi | |
13424 | rm -f conftest* | |
13425 | LIBS="$ac_save_LIBS" | |
c63c7106 | 13426 | |
6232543b | 13427 | fi |
698dcdb6 VZ |
13428 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
13429 | echo "$ac_t""yes" 1>&6 | |
13430 | INET_LINK="resolv" | |
13431 | ||
13432 | else | |
13433 | echo "$ac_t""no" 1>&6 | |
13434 | fi | |
c63c7106 | 13435 | |
698dcdb6 | 13436 | |
1e487827 | 13437 | fi |
703e0a69 | 13438 | |
698dcdb6 VZ |
13439 | |
13440 | ||
10f2d63a VZ |
13441 | fi |
13442 | done | |
13443 | ||
698dcdb6 | 13444 | |
10f2d63a VZ |
13445 | for ac_func in inet_aton |
13446 | do | |
698dcdb6 | 13447 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
b1f5d087 | 13448 | echo "configure:13449: checking for $ac_func" >&5 |
698dcdb6 VZ |
13449 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13450 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13451 | else | |
13452 | cat > conftest.$ac_ext <<EOF | |
b1f5d087 | 13453 | #line 13454 "configure" |
10f2d63a VZ |
13454 | #include "confdefs.h" |
13455 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13456 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
13457 | #include <assert.h> |
13458 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13459 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13460 | builtin and then its argument prototype would still apply. */ |
13461 | char $ac_func(); | |
13462 | ||
13463 | int main() { | |
10f2d63a VZ |
13464 | |
13465 | /* The GNU C library defines this for functions which it implements | |
13466 | to always fail with ENOSYS. Some functions are actually named | |
13467 | something starting with __ and the normal name is an alias. */ | |
13468 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13469 | choke me | |
13470 | #else | |
698dcdb6 | 13471 | $ac_func(); |
10f2d63a VZ |
13472 | #endif |
13473 | ||
698dcdb6 VZ |
13474 | ; return 0; } |
13475 | EOF | |
b1f5d087 | 13476 | if { (eval echo configure:13477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13477 | rm -rf conftest* |
13478 | eval "ac_cv_func_$ac_func=yes" | |
13479 | else | |
13480 | echo "configure: failed program was:" >&5 | |
13481 | cat conftest.$ac_ext >&5 | |
13482 | rm -rf conftest* | |
13483 | eval "ac_cv_func_$ac_func=no" | |
13484 | fi | |
13485 | rm -f conftest* | |
13486 | fi | |
13487 | ||
13488 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13489 | echo "$ac_t""yes" 1>&6 | |
13490 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13491 | cat >> confdefs.h <<EOF | |
13492 | #define $ac_tr_func 1 | |
13493 | EOF | |
13494 | cat >> confdefs.h <<\EOF | |
c63c7106 VZ |
13495 | #define HAVE_INET_ATON 1 |
13496 | EOF | |
13497 | ||
10f2d63a | 13498 | else |
698dcdb6 VZ |
13499 | echo "$ac_t""no" 1>&6 |
13500 | echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6 | |
b1f5d087 | 13501 | echo "configure:13502: checking for inet_aton in -l$INET_LINK" >&5 |
698dcdb6 VZ |
13502 | ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'` |
13503 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13504 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13505 | else |
698dcdb6 | 13506 | ac_save_LIBS="$LIBS" |
c63c7106 | 13507 | LIBS="-l$INET_LINK $LIBS" |
698dcdb6 | 13508 | cat > conftest.$ac_ext <<EOF |
b1f5d087 | 13509 | #line 13510 "configure" |
10f2d63a VZ |
13510 | #include "confdefs.h" |
13511 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13512 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13513 | builtin and then its argument prototype would still apply. */ |
13514 | char inet_aton(); | |
13515 | ||
13516 | int main() { | |
13517 | inet_aton() | |
13518 | ; return 0; } | |
13519 | EOF | |
b1f5d087 | 13520 | if { (eval echo configure:13521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13521 | rm -rf conftest* |
13522 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13523 | else | |
13524 | echo "configure: failed program was:" >&5 | |
13525 | cat conftest.$ac_ext >&5 | |
13526 | rm -rf conftest* | |
13527 | eval "ac_cv_lib_$ac_lib_var=no" | |
13528 | fi | |
13529 | rm -f conftest* | |
13530 | LIBS="$ac_save_LIBS" | |
13531 | ||
13532 | fi | |
13533 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13534 | echo "$ac_t""yes" 1>&6 | |
13535 | cat >> confdefs.h <<\EOF | |
c63c7106 | 13536 | #define HAVE_INET_ATON 1 |
10f2d63a VZ |
13537 | EOF |
13538 | ||
698dcdb6 VZ |
13539 | else |
13540 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13541 | fi |
13542 | ||
698dcdb6 | 13543 | |
c63c7106 VZ |
13544 | fi |
13545 | done | |
13546 | ||
698dcdb6 | 13547 | |
c63c7106 | 13548 | if test "x$INET_LINK" != "x"; then |
698dcdb6 | 13549 | cat >> confdefs.h <<\EOF |
c63c7106 VZ |
13550 | #define HAVE_INET_ADDR 1 |
13551 | EOF | |
13552 | ||
13553 | INET_LINK="-l$INET_LINK" | |
13554 | fi | |
10f2d63a VZ |
13555 | |
13556 | fi | |
13557 | ||
698dcdb6 VZ |
13558 | |
13559 | cat > confcache <<\EOF | |
10f2d63a VZ |
13560 | # This file is a shell script that caches the results of configure |
13561 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
13562 | # scripts and configure runs. It is not useful on other systems. |
13563 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 13564 | # |
698dcdb6 VZ |
13565 | # By default, configure uses ./config.cache as the cache file, |
13566 | # creating it if it does not exist already. You can give configure | |
13567 | # the --cache-file=FILE option to use a different cache file; that is | |
13568 | # what configure does when it calls configure scripts in | |
13569 | # subdirectories, so they share the cache. | |
13570 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
13571 | # config.status only pays attention to the cache file if you give it the | |
13572 | # --recheck option to rerun configure. | |
10f2d63a | 13573 | # |
698dcdb6 | 13574 | EOF |
10f2d63a VZ |
13575 | # The following way of writing the cache mishandles newlines in values, |
13576 | # but we know of no workaround that is simple, portable, and efficient. | |
13577 | # So, don't put newlines in cache variables' values. | |
13578 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
13579 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
13580 | (set) 2>&1 | |
13581 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
13582 | *ac_space=\ *) | |
13583 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
13584 | # turns \\\\ into \\, and sed turns \\ into \). | |
13585 | sed -n \ | |
13586 | -e "s/'/'\\\\''/g" \ | |
13587 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
13588 | ;; | |
13589 | *) | |
13590 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
13591 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
13592 | ;; | |
13593 | esac >> confcache | |
13594 | if cmp -s $cache_file confcache; then | |
13595 | : | |
13596 | else | |
10f2d63a | 13597 | if test -w $cache_file; then |
698dcdb6 VZ |
13598 | echo "updating cache $cache_file" |
13599 | cat confcache > $cache_file | |
10f2d63a VZ |
13600 | else |
13601 | echo "not updating unwritable cache $cache_file" | |
13602 | fi | |
13603 | fi | |
13604 | rm -f confcache | |
13605 | ||
698dcdb6 VZ |
13606 | |
13607 | ||
b089607b | 13608 | if test "$TOOLKIT" != "MSW"; then |
10f2d63a | 13609 | |
698dcdb6 | 13610 | |
10f2d63a VZ |
13611 | THREADS_LINK="" |
13612 | THREADS_OBJ="" | |
13613 | ||
13614 | if test "$wxUSE_THREADS" = "yes" ; then | |
13615 | if test "$wxUSE_WINE" = 1 ; then | |
698dcdb6 | 13616 | echo "configure: warning: Threads are not supported under WINE" 1>&2 |
10f2d63a | 13617 | wxUSE_THREADS="no" |
b12915c1 | 13618 | elif test "$USE_BEOS" = 1; then |
698dcdb6 | 13619 | echo "configure: warning: BeOS threads are not yet supported" 1>&2 |
b12915c1 | 13620 | wxUSE_THREADS="no" |
10f2d63a VZ |
13621 | fi |
13622 | fi | |
13623 | ||
13624 | if test "$wxUSE_THREADS" = "yes" ; then | |
698dcdb6 | 13625 | |
186837b0 | 13626 | if test "$USE_AIX" = 1; then |
f6bcfd97 BP |
13627 | THREADS_LIB=pthreads |
13628 | else | |
13629 | THREADS_LIB=pthread | |
13630 | fi | |
13631 | ||
698dcdb6 | 13632 | echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6 |
b1f5d087 | 13633 | echo "configure:13634: checking for pthread_create in -l$THREADS_LIB" >&5 |
698dcdb6 VZ |
13634 | ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'` |
13635 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13636 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13637 | else |
698dcdb6 | 13638 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 13639 | LIBS="-l$THREADS_LIB $LIBS" |
698dcdb6 | 13640 | cat > conftest.$ac_ext <<EOF |
b1f5d087 | 13641 | #line 13642 "configure" |
10f2d63a VZ |
13642 | #include "confdefs.h" |
13643 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13644 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13645 | builtin and then its argument prototype would still apply. */ |
13646 | char pthread_create(); | |
13647 | ||
13648 | int main() { | |
13649 | pthread_create() | |
13650 | ; return 0; } | |
13651 | EOF | |
b1f5d087 | 13652 | if { (eval echo configure:13653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13653 | rm -rf conftest* |
13654 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13655 | else | |
13656 | echo "configure: failed program was:" >&5 | |
13657 | cat conftest.$ac_ext >&5 | |
13658 | rm -rf conftest* | |
13659 | eval "ac_cv_lib_$ac_lib_var=no" | |
13660 | fi | |
13661 | rm -f conftest* | |
13662 | LIBS="$ac_save_LIBS" | |
10f2d63a | 13663 | |
698dcdb6 VZ |
13664 | fi |
13665 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13666 | echo "$ac_t""yes" 1>&6 | |
13667 | ||
10f2d63a | 13668 | THREADS_OBJ="threadpsx.lo" |
f6bcfd97 | 13669 | THREADS_LINK=$THREADS_LIB |
698dcdb6 | 13670 | |
10f2d63a | 13671 | else |
698dcdb6 | 13672 | echo "$ac_t""no" 1>&6 |
10f2d63a | 13673 | |
698dcdb6 | 13674 | echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 |
b1f5d087 | 13675 | echo "configure:13676: checking for pthread_create in -lc_r" >&5 |
698dcdb6 VZ |
13676 | ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` |
13677 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13678 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13679 | else |
698dcdb6 | 13680 | ac_save_LIBS="$LIBS" |
10f2d63a | 13681 | LIBS="-lc_r $LIBS" |
698dcdb6 | 13682 | cat > conftest.$ac_ext <<EOF |
b1f5d087 | 13683 | #line 13684 "configure" |
10f2d63a VZ |
13684 | #include "confdefs.h" |
13685 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13686 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13687 | builtin and then its argument prototype would still apply. */ |
13688 | char pthread_create(); | |
13689 | ||
13690 | int main() { | |
13691 | pthread_create() | |
13692 | ; return 0; } | |
13693 | EOF | |
b1f5d087 | 13694 | if { (eval echo configure:13695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13695 | rm -rf conftest* |
13696 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13697 | else | |
13698 | echo "configure: failed program was:" >&5 | |
13699 | cat conftest.$ac_ext >&5 | |
13700 | rm -rf conftest* | |
13701 | eval "ac_cv_lib_$ac_lib_var=no" | |
13702 | fi | |
13703 | rm -f conftest* | |
13704 | LIBS="$ac_save_LIBS" | |
10f2d63a | 13705 | |
698dcdb6 VZ |
13706 | fi |
13707 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13708 | echo "$ac_t""yes" 1>&6 | |
13709 | ||
10f2d63a VZ |
13710 | THREADS_OBJ="threadpsx.lo" |
13711 | THREADS_LINK="c_r" | |
698dcdb6 | 13712 | |
10f2d63a | 13713 | else |
698dcdb6 | 13714 | echo "$ac_t""no" 1>&6 |
10f2d63a | 13715 | |
698dcdb6 VZ |
13716 | ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'` |
13717 | echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6 | |
b1f5d087 | 13718 | echo "configure:13719: checking for sys/prctl.h" >&5 |
698dcdb6 VZ |
13719 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13720 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13721 | else |
698dcdb6 | 13722 | cat > conftest.$ac_ext <<EOF |
b1f5d087 | 13723 | #line 13724 "configure" |
10f2d63a VZ |
13724 | #include "confdefs.h" |
13725 | #include <sys/prctl.h> | |
698dcdb6 VZ |
13726 | EOF |
13727 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b1f5d087 | 13728 | { (eval echo configure:13729: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13729 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13730 | if test -z "$ac_err"; then | |
13731 | rm -rf conftest* | |
13732 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 13733 | else |
698dcdb6 VZ |
13734 | echo "$ac_err" >&5 |
13735 | echo "configure: failed program was:" >&5 | |
10f2d63a | 13736 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13737 | rm -rf conftest* |
13738 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 13739 | fi |
698dcdb6 | 13740 | rm -f conftest* |
10f2d63a | 13741 | fi |
698dcdb6 VZ |
13742 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13743 | echo "$ac_t""yes" 1>&6 | |
13744 | ||
1f8ae82f | 13745 | THREADS_OBJ="threadsgi.lo" |
698dcdb6 VZ |
13746 | |
13747 | else | |
13748 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13749 | fi |
13750 | ||
698dcdb6 | 13751 | |
6232543b | 13752 | fi |
10f2d63a | 13753 | |
698dcdb6 | 13754 | |
1e487827 | 13755 | fi |
703e0a69 | 13756 | |
698dcdb6 | 13757 | |
10f2d63a VZ |
13758 | if test -z "$THREADS_OBJ" ; then |
13759 | wxUSE_THREADS=no | |
698dcdb6 | 13760 | echo "configure: warning: No thread support on this system" 1>&2 |
10f2d63a VZ |
13761 | fi |
13762 | fi | |
13763 | ||
13764 | if test "$wxUSE_THREADS" = "yes" ; then | |
698dcdb6 | 13765 | for ac_func in thr_setconcurrency |
70846f0a | 13766 | do |
698dcdb6 | 13767 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
b1f5d087 | 13768 | echo "configure:13769: checking for $ac_func" >&5 |
698dcdb6 VZ |
13769 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13770 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13771 | else | |
13772 | cat > conftest.$ac_ext <<EOF | |
b1f5d087 | 13773 | #line 13774 "configure" |
70846f0a VZ |
13774 | #include "confdefs.h" |
13775 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13776 | which can conflict with char $ac_func(); below. */ |
70846f0a VZ |
13777 | #include <assert.h> |
13778 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13779 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13780 | builtin and then its argument prototype would still apply. */ |
13781 | char $ac_func(); | |
13782 | ||
13783 | int main() { | |
70846f0a VZ |
13784 | |
13785 | /* The GNU C library defines this for functions which it implements | |
13786 | to always fail with ENOSYS. Some functions are actually named | |
13787 | something starting with __ and the normal name is an alias. */ | |
13788 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13789 | choke me | |
13790 | #else | |
698dcdb6 | 13791 | $ac_func(); |
70846f0a VZ |
13792 | #endif |
13793 | ||
698dcdb6 | 13794 | ; return 0; } |
70846f0a | 13795 | EOF |
b1f5d087 | 13796 | if { (eval echo configure:13797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13797 | rm -rf conftest* |
13798 | eval "ac_cv_func_$ac_func=yes" | |
13799 | else | |
13800 | echo "configure: failed program was:" >&5 | |
13801 | cat conftest.$ac_ext >&5 | |
13802 | rm -rf conftest* | |
13803 | eval "ac_cv_func_$ac_func=no" | |
13804 | fi | |
13805 | rm -f conftest* | |
13806 | fi | |
70846f0a | 13807 | |
698dcdb6 VZ |
13808 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
13809 | echo "$ac_t""yes" 1>&6 | |
13810 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13811 | cat >> confdefs.h <<EOF | |
13812 | #define $ac_tr_func 1 | |
13813 | EOF | |
13814 | ||
13815 | else | |
13816 | echo "$ac_t""no" 1>&6 | |
70846f0a VZ |
13817 | fi |
13818 | done | |
13819 | ||
698dcdb6 VZ |
13820 | |
13821 | ||
13822 | for ac_hdr in sched.h | |
10f2d63a | 13823 | do |
698dcdb6 VZ |
13824 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
13825 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
b1f5d087 | 13826 | echo "configure:13827: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
13827 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13828 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13829 | else | |
13830 | cat > conftest.$ac_ext <<EOF | |
b1f5d087 | 13831 | #line 13832 "configure" |
10f2d63a | 13832 | #include "confdefs.h" |
698dcdb6 VZ |
13833 | #include <$ac_hdr> |
13834 | EOF | |
13835 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b1f5d087 | 13836 | { (eval echo configure:13837: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13837 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13838 | if test -z "$ac_err"; then | |
13839 | rm -rf conftest* | |
13840 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 13841 | else |
698dcdb6 VZ |
13842 | echo "$ac_err" >&5 |
13843 | echo "configure: failed program was:" >&5 | |
10f2d63a | 13844 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13845 | rm -rf conftest* |
13846 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 13847 | fi |
698dcdb6 | 13848 | rm -f conftest* |
10f2d63a | 13849 | fi |
698dcdb6 VZ |
13850 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13851 | echo "$ac_t""yes" 1>&6 | |
13852 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13853 | cat >> confdefs.h <<EOF | |
13854 | #define $ac_tr_hdr 1 | |
10f2d63a | 13855 | EOF |
698dcdb6 VZ |
13856 | |
13857 | else | |
13858 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13859 | fi |
13860 | done | |
13861 | ||
698dcdb6 VZ |
13862 | |
13863 | echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6 | |
b1f5d087 | 13864 | echo "configure:13865: checking for sched_yield in -l$THREADS_LINK" >&5 |
698dcdb6 VZ |
13865 | ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'` |
13866 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13867 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13868 | else |
698dcdb6 | 13869 | ac_save_LIBS="$LIBS" |
10f2d63a | 13870 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 13871 | cat > conftest.$ac_ext <<EOF |
b1f5d087 | 13872 | #line 13873 "configure" |
10f2d63a VZ |
13873 | #include "confdefs.h" |
13874 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13875 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13876 | builtin and then its argument prototype would still apply. */ |
13877 | char sched_yield(); | |
13878 | ||
13879 | int main() { | |
13880 | sched_yield() | |
13881 | ; return 0; } | |
13882 | EOF | |
b1f5d087 | 13883 | if { (eval echo configure:13884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13884 | rm -rf conftest* |
13885 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13886 | else | |
13887 | echo "configure: failed program was:" >&5 | |
13888 | cat conftest.$ac_ext >&5 | |
13889 | rm -rf conftest* | |
13890 | eval "ac_cv_lib_$ac_lib_var=no" | |
13891 | fi | |
13892 | rm -f conftest* | |
13893 | LIBS="$ac_save_LIBS" | |
13894 | ||
13895 | fi | |
13896 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13897 | echo "$ac_t""yes" 1>&6 | |
13898 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
13899 | #define HAVE_SCHED_YIELD 1 |
13900 | EOF | |
13901 | ||
13902 | else | |
698dcdb6 VZ |
13903 | echo "$ac_t""no" 1>&6 |
13904 | echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6 | |
b1f5d087 | 13905 | echo "configure:13906: checking for sched_yield in -lposix4" >&5 |
698dcdb6 VZ |
13906 | ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'` |
13907 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13908 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13909 | else |
698dcdb6 | 13910 | ac_save_LIBS="$LIBS" |
1e487827 | 13911 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 13912 | cat > conftest.$ac_ext <<EOF |
b1f5d087 | 13913 | #line 13914 "configure" |
10f2d63a VZ |
13914 | #include "confdefs.h" |
13915 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13916 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13917 | builtin and then its argument prototype would still apply. */ |
13918 | char sched_yield(); | |
13919 | ||
13920 | int main() { | |
13921 | sched_yield() | |
13922 | ; return 0; } | |
13923 | EOF | |
b1f5d087 | 13924 | if { (eval echo configure:13925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13925 | rm -rf conftest* |
13926 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13927 | else | |
13928 | echo "configure: failed program was:" >&5 | |
13929 | cat conftest.$ac_ext >&5 | |
13930 | rm -rf conftest* | |
13931 | eval "ac_cv_lib_$ac_lib_var=no" | |
13932 | fi | |
13933 | rm -f conftest* | |
13934 | LIBS="$ac_save_LIBS" | |
13935 | ||
13936 | fi | |
13937 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13938 | echo "$ac_t""yes" 1>&6 | |
13939 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
13940 | #define HAVE_SCHED_YIELD 1 |
13941 | EOF | |
13942 | POSIX4_LINK="-lposix4" | |
13943 | else | |
698dcdb6 VZ |
13944 | echo "$ac_t""no" 1>&6 |
13945 | echo "configure: warning: wxThread::Yield will not work properly" 1>&2 | |
13946 | ||
6232543b | 13947 | fi |
10f2d63a | 13948 | |
698dcdb6 | 13949 | |
1e487827 | 13950 | fi |
703e0a69 | 13951 | |
698dcdb6 | 13952 | |
f6bcfd97 | 13953 | HAVE_PRIOR_FUNCS=0 |
698dcdb6 | 13954 | echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6 |
b1f5d087 | 13955 | echo "configure:13956: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5 |
698dcdb6 VZ |
13956 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'` |
13957 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13958 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13959 | else |
698dcdb6 | 13960 | ac_save_LIBS="$LIBS" |
10f2d63a | 13961 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 13962 | cat > conftest.$ac_ext <<EOF |
b1f5d087 | 13963 | #line 13964 "configure" |
10f2d63a VZ |
13964 | #include "confdefs.h" |
13965 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13966 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13967 | builtin and then its argument prototype would still apply. */ |
13968 | char pthread_attr_getschedpolicy(); | |
13969 | ||
13970 | int main() { | |
13971 | pthread_attr_getschedpolicy() | |
13972 | ; return 0; } | |
13973 | EOF | |
b1f5d087 | 13974 | if { (eval echo configure:13975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13975 | rm -rf conftest* |
13976 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13977 | else | |
13978 | echo "configure: failed program was:" >&5 | |
13979 | cat conftest.$ac_ext >&5 | |
13980 | rm -rf conftest* | |
13981 | eval "ac_cv_lib_$ac_lib_var=no" | |
13982 | fi | |
13983 | rm -f conftest* | |
13984 | LIBS="$ac_save_LIBS" | |
13985 | ||
13986 | fi | |
13987 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13988 | echo "$ac_t""yes" 1>&6 | |
13989 | echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6 | |
b1f5d087 | 13990 | echo "configure:13991: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5 |
698dcdb6 VZ |
13991 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'` |
13992 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13993 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13994 | else | |
13995 | ac_save_LIBS="$LIBS" | |
f6bcfd97 | 13996 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 13997 | cat > conftest.$ac_ext <<EOF |
b1f5d087 | 13998 | #line 13999 "configure" |
f6bcfd97 BP |
13999 | #include "confdefs.h" |
14000 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14001 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14002 | builtin and then its argument prototype would still apply. */ |
14003 | char pthread_attr_setschedparam(); | |
14004 | ||
14005 | int main() { | |
14006 | pthread_attr_setschedparam() | |
14007 | ; return 0; } | |
14008 | EOF | |
b1f5d087 | 14009 | if { (eval echo configure:14010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14010 | rm -rf conftest* |
14011 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14012 | else | |
14013 | echo "configure: failed program was:" >&5 | |
14014 | cat conftest.$ac_ext >&5 | |
14015 | rm -rf conftest* | |
14016 | eval "ac_cv_lib_$ac_lib_var=no" | |
14017 | fi | |
14018 | rm -f conftest* | |
14019 | LIBS="$ac_save_LIBS" | |
14020 | ||
14021 | fi | |
14022 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14023 | echo "$ac_t""yes" 1>&6 | |
14024 | echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6 | |
b1f5d087 | 14025 | echo "configure:14026: checking for sched_get_priority_max in -l$THREADS_LINK" >&5 |
698dcdb6 VZ |
14026 | ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
14027 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14028 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14029 | else | |
14030 | ac_save_LIBS="$LIBS" | |
f6bcfd97 | 14031 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 14032 | cat > conftest.$ac_ext <<EOF |
b1f5d087 | 14033 | #line 14034 "configure" |
f6bcfd97 BP |
14034 | #include "confdefs.h" |
14035 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14036 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14037 | builtin and then its argument prototype would still apply. */ |
14038 | char sched_get_priority_max(); | |
14039 | ||
14040 | int main() { | |
14041 | sched_get_priority_max() | |
14042 | ; return 0; } | |
14043 | EOF | |
b1f5d087 | 14044 | if { (eval echo configure:14045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14045 | rm -rf conftest* |
14046 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14047 | else | |
14048 | echo "configure: failed program was:" >&5 | |
14049 | cat conftest.$ac_ext >&5 | |
14050 | rm -rf conftest* | |
14051 | eval "ac_cv_lib_$ac_lib_var=no" | |
14052 | fi | |
14053 | rm -f conftest* | |
14054 | LIBS="$ac_save_LIBS" | |
14055 | ||
14056 | fi | |
14057 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14058 | echo "$ac_t""yes" 1>&6 | |
f6bcfd97 | 14059 | HAVE_PRIOR_FUNCS=1 |
10f2d63a | 14060 | else |
698dcdb6 VZ |
14061 | echo "$ac_t""no" 1>&6 |
14062 | echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6 | |
b1f5d087 | 14063 | echo "configure:14064: checking for sched_get_priority_max in -lposix4" >&5 |
698dcdb6 VZ |
14064 | ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
14065 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14066 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 14067 | else |
698dcdb6 | 14068 | ac_save_LIBS="$LIBS" |
1e487827 | 14069 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 14070 | cat > conftest.$ac_ext <<EOF |
b1f5d087 | 14071 | #line 14072 "configure" |
10f2d63a | 14072 | #include "confdefs.h" |
6232543b | 14073 | /* Override any gcc2 internal prototype to avoid an error. */ |
6232543b | 14074 | /* We use char because int might match the return type of a gcc2 |
698dcdb6 VZ |
14075 | builtin and then its argument prototype would still apply. */ |
14076 | char sched_get_priority_max(); | |
14077 | ||
14078 | int main() { | |
14079 | sched_get_priority_max() | |
14080 | ; return 0; } | |
14081 | EOF | |
b1f5d087 | 14082 | if { (eval echo configure:14083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14083 | rm -rf conftest* |
14084 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14085 | else | |
14086 | echo "configure: failed program was:" >&5 | |
14087 | cat conftest.$ac_ext >&5 | |
14088 | rm -rf conftest* | |
14089 | eval "ac_cv_lib_$ac_lib_var=no" | |
14090 | fi | |
14091 | rm -f conftest* | |
14092 | LIBS="$ac_save_LIBS" | |
10f2d63a | 14093 | |
698dcdb6 VZ |
14094 | fi |
14095 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14096 | echo "$ac_t""yes" 1>&6 | |
14097 | ||
f6bcfd97 BP |
14098 | HAVE_PRIOR_FUNCS=1 |
14099 | POSIX4_LINK="-lposix4" | |
698dcdb6 VZ |
14100 | |
14101 | else | |
14102 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
14103 | fi |
14104 | ||
698dcdb6 | 14105 | |
10f2d63a VZ |
14106 | fi |
14107 | ||
698dcdb6 VZ |
14108 | |
14109 | else | |
14110 | echo "$ac_t""no" 1>&6 | |
6232543b | 14111 | fi |
10f2d63a | 14112 | |
698dcdb6 VZ |
14113 | |
14114 | else | |
14115 | echo "$ac_t""no" 1>&6 | |
1e487827 | 14116 | fi |
703e0a69 | 14117 | |
698dcdb6 | 14118 | |
f6bcfd97 | 14119 | if test "$HAVE_PRIOR_FUNCS" = 1; then |
698dcdb6 | 14120 | cat >> confdefs.h <<\EOF |
f6bcfd97 BP |
14121 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 |
14122 | EOF | |
14123 | ||
14124 | else | |
698dcdb6 | 14125 | echo "configure: warning: Setting thread priority will not work" 1>&2 |
f6bcfd97 BP |
14126 | fi |
14127 | ||
698dcdb6 | 14128 | echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6 |
b1f5d087 | 14129 | echo "configure:14130: checking for pthread_cancel in -l$THREADS_LINK" >&5 |
698dcdb6 VZ |
14130 | ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'` |
14131 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14132 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14133 | else |
698dcdb6 | 14134 | ac_save_LIBS="$LIBS" |
10f2d63a | 14135 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 14136 | cat > conftest.$ac_ext <<EOF |
b1f5d087 | 14137 | #line 14138 "configure" |
10f2d63a VZ |
14138 | #include "confdefs.h" |
14139 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14140 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14141 | builtin and then its argument prototype would still apply. */ |
14142 | char pthread_cancel(); | |
14143 | ||
14144 | int main() { | |
14145 | pthread_cancel() | |
14146 | ; return 0; } | |
14147 | EOF | |
b1f5d087 | 14148 | if { (eval echo configure:14149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14149 | rm -rf conftest* |
14150 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14151 | else | |
14152 | echo "configure: failed program was:" >&5 | |
14153 | cat conftest.$ac_ext >&5 | |
14154 | rm -rf conftest* | |
14155 | eval "ac_cv_lib_$ac_lib_var=no" | |
14156 | fi | |
14157 | rm -f conftest* | |
14158 | LIBS="$ac_save_LIBS" | |
14159 | ||
14160 | fi | |
14161 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14162 | echo "$ac_t""yes" 1>&6 | |
14163 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
14164 | #define HAVE_PTHREAD_CANCEL 1 |
14165 | EOF | |
14166 | ||
14167 | else | |
698dcdb6 VZ |
14168 | echo "$ac_t""no" 1>&6 |
14169 | echo "configure: warning: wxThread::Kill() will not work properly" 1>&2 | |
10f2d63a VZ |
14170 | fi |
14171 | ||
1e487827 | 14172 | |
698dcdb6 | 14173 | echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6 |
b1f5d087 | 14174 | echo "configure:14175: checking for pthread_cleanup_push/pop" >&5 |
698dcdb6 VZ |
14175 | if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then |
14176 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14177 | else | |
14178 | ||
14179 | cat > conftest.$ac_ext <<EOF | |
b1f5d087 | 14180 | #line 14181 "configure" |
10f2d63a VZ |
14181 | #include "confdefs.h" |
14182 | #include <pthread.h> | |
698dcdb6 | 14183 | int main() { |
10f2d63a VZ |
14184 | |
14185 | pthread_cleanup_push(NULL, NULL); | |
14186 | pthread_cleanup_pop(0); | |
698dcdb6 VZ |
14187 | |
14188 | ; return 0; } | |
14189 | EOF | |
b1f5d087 | 14190 | if { (eval echo configure:14191: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
14191 | rm -rf conftest* |
14192 | ||
10f2d63a | 14193 | wx_cv_func_pthread_cleanup_push=yes |
698dcdb6 | 14194 | |
10f2d63a | 14195 | else |
698dcdb6 VZ |
14196 | echo "configure: failed program was:" >&5 |
14197 | cat conftest.$ac_ext >&5 | |
14198 | rm -rf conftest* | |
14199 | ||
10f2d63a | 14200 | wx_cv_func_pthread_cleanup_push=no |
698dcdb6 | 14201 | |
6232543b | 14202 | fi |
698dcdb6 VZ |
14203 | rm -f conftest* |
14204 | ||
1e487827 | 14205 | fi |
698dcdb6 VZ |
14206 | |
14207 | echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6 | |
10f2d63a | 14208 | |
d9b9876f | 14209 | if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then |
698dcdb6 | 14210 | cat >> confdefs.h <<\EOF |
d9b9876f VZ |
14211 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 |
14212 | EOF | |
14213 | ||
14214 | fi | |
14215 | ||
698dcdb6 VZ |
14216 | |
14217 | echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6 | |
b1f5d087 | 14218 | echo "configure:14219: checking for pthread_mutexattr_t" >&5 |
698dcdb6 VZ |
14219 | if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then |
14220 | echo $ac_n "(cached) $ac_c" 1>&6 | |
d9b9876f | 14221 | else |
698dcdb6 VZ |
14222 | |
14223 | cat > conftest.$ac_ext <<EOF | |
b1f5d087 | 14224 | #line 14225 "configure" |
d9b9876f VZ |
14225 | #include "confdefs.h" |
14226 | #include <pthread.h> | |
698dcdb6 | 14227 | int main() { |
d9b9876f VZ |
14228 | |
14229 | pthread_mutexattr_t attr; | |
14230 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
698dcdb6 VZ |
14231 | |
14232 | ; return 0; } | |
14233 | EOF | |
b1f5d087 | 14234 | if { (eval echo configure:14235: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
14235 | rm -rf conftest* |
14236 | ||
d9b9876f | 14237 | wx_cv_type_pthread_mutexattr_t=yes |
698dcdb6 | 14238 | |
d9b9876f | 14239 | else |
698dcdb6 VZ |
14240 | echo "configure: failed program was:" >&5 |
14241 | cat conftest.$ac_ext >&5 | |
14242 | rm -rf conftest* | |
14243 | ||
d9b9876f | 14244 | wx_cv_type_pthread_mutexattr_t=no |
698dcdb6 VZ |
14245 | |
14246 | ||
6232543b | 14247 | fi |
698dcdb6 VZ |
14248 | rm -f conftest* |
14249 | ||
1e487827 | 14250 | fi |
698dcdb6 VZ |
14251 | |
14252 | echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6 | |
d9b9876f VZ |
14253 | |
14254 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then | |
698dcdb6 | 14255 | cat >> confdefs.h <<\EOF |
d9b9876f VZ |
14256 | #define HAVE_PTHREAD_MUTEXATTR_T 1 |
14257 | EOF | |
14258 | ||
14259 | else | |
698dcdb6 | 14260 | echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6 |
b1f5d087 | 14261 | echo "configure:14262: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 |
698dcdb6 VZ |
14262 | if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then |
14263 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14264 | else | |
14265 | ||
14266 | cat > conftest.$ac_ext <<EOF | |
b1f5d087 | 14267 | #line 14268 "configure" |
d9b9876f VZ |
14268 | #include "confdefs.h" |
14269 | #include <pthread.h> | |
698dcdb6 | 14270 | int main() { |
d9b9876f VZ |
14271 | |
14272 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; | |
698dcdb6 VZ |
14273 | |
14274 | ; return 0; } | |
14275 | EOF | |
b1f5d087 | 14276 | if { (eval echo configure:14277: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
14277 | rm -rf conftest* |
14278 | ||
d9b9876f | 14279 | wx_cv_type_pthread_rec_mutex_init=yes |
698dcdb6 | 14280 | |
d9b9876f | 14281 | else |
698dcdb6 VZ |
14282 | echo "configure: failed program was:" >&5 |
14283 | cat conftest.$ac_ext >&5 | |
14284 | rm -rf conftest* | |
14285 | ||
d9b9876f | 14286 | wx_cv_type_pthread_rec_mutex_init=no |
698dcdb6 VZ |
14287 | |
14288 | ||
6232543b | 14289 | fi |
698dcdb6 VZ |
14290 | rm -f conftest* |
14291 | ||
1e487827 | 14292 | fi |
698dcdb6 VZ |
14293 | |
14294 | echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6 | |
3765e936 | 14295 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then |
698dcdb6 | 14296 | cat >> confdefs.h <<\EOF |
d9b9876f VZ |
14297 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 |
14298 | EOF | |
14299 | ||
14300 | else | |
698dcdb6 | 14301 | echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2 |
d9b9876f VZ |
14302 | fi |
14303 | fi | |
14304 | ||
10f2d63a | 14305 | THREADS_LINK="-l$THREADS_LINK" |
186837b0 VZ |
14306 | |
14307 | if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then | |
14308 | CFLAGS="${CFLAGS} -mt" | |
14309 | CXXFLAGS="${CXXFLAGS} -mt" | |
14310 | LDFLAGS="${LDFLAGS} -mt" | |
14311 | fi | |
10f2d63a VZ |
14312 | fi |
14313 | ||
14314 | fi | |
14315 | ||
14316 | if test "$wxUSE_THREADS" = "yes"; then | |
698dcdb6 | 14317 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
14318 | #define wxUSE_THREADS 1 |
14319 | EOF | |
14320 | ||
698dcdb6 | 14321 | |
2c6025bc | 14322 | if test "$wxUSE_MAC" = "0"; then |
10f2d63a | 14323 | CFLAGS="${CFLAGS} -D_REENTRANT" |
2c6025bc GD |
14324 | CXXFLAGS="${CXXFLAGS} -D_REENTRANT" |
14325 | fi | |
10f2d63a VZ |
14326 | |
14327 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
14328 | else | |
14329 | if test "$ac_cv_func_strtok_r" = "yes"; then | |
698dcdb6 | 14330 | echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6 |
b1f5d087 | 14331 | echo "configure:14332: checking if -D_REENTRANT is needed" >&5 |
ab9b9eab VZ |
14332 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
14333 | CFLAGS="${CFLAGS} -D_REENTRANT" | |
14334 | CXXFLAGS="${CXXFLAGS} -D_REENTRANT" | |
698dcdb6 | 14335 | echo "$ac_t""yes" 1>&6 |
ab9b9eab | 14336 | else |
698dcdb6 | 14337 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
14338 | fi |
14339 | fi | |
14340 | fi | |
14341 | ||
6f72b082 | 14342 | if test "$WXGTK20" = 1 ; then |
698dcdb6 | 14343 | cat >> confdefs.h <<EOF |
6f72b082 | 14344 | #define __WXGTK20__ $WXGTK20 |
13111b2a VZ |
14345 | EOF |
14346 | ||
14347 | WXGTK12=1 | |
14348 | fi | |
14349 | ||
10f2d63a | 14350 | if test "$WXGTK12" = 1 ; then |
698dcdb6 | 14351 | cat >> confdefs.h <<EOF |
10f2d63a VZ |
14352 | #define __WXGTK12__ $WXGTK12 |
14353 | EOF | |
14354 | ||
14355 | fi | |
14356 | ||
f6bcfd97 | 14357 | if test "$WXGTK127" = 1 ; then |
698dcdb6 | 14358 | cat >> confdefs.h <<EOF |
f6bcfd97 BP |
14359 | #define __WXGTK127__ $WXGTK127 |
14360 | EOF | |
14361 | ||
14362 | fi | |
14363 | ||
10f2d63a VZ |
14364 | if test "$WXWINE" = 1 ; then |
14365 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__" | |
14366 | fi | |
14367 | ||
b4085ce6 | 14368 | if test "$wxUSE_MAC" = 1 ; then |
2c6025bc | 14369 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__UNIX__ -D__POWERPC__ -DTARGET_CARBON" |
ea5999b9 | 14370 | CFLAGS="${CFLAGS} -fno-common -fpascal-strings" |
0c451ef3 | 14371 | CPPFLAGS="${CPPFLAGS} -cpp-precomp -fno-common -fpascal-strings" |
2f51a9ec GD |
14372 | # Extract the first word of "Rez", so it can be a program name with args. |
14373 | set dummy Rez; ac_word=$2 | |
698dcdb6 | 14374 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
b1f5d087 | 14375 | echo "configure:14376: checking for $ac_word" >&5 |
698dcdb6 VZ |
14376 | if eval "test \"`echo '$''{'ac_cv_prog_REZ'+set}'`\" = set"; then |
14377 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2f51a9ec GD |
14378 | else |
14379 | if test -n "$REZ"; then | |
14380 | ac_cv_prog_REZ="$REZ" # Let the user override the test. | |
14381 | else | |
698dcdb6 VZ |
14382 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
14383 | ac_dummy="$PATH" | |
14384 | for ac_dir in $ac_dummy; do | |
14385 | test -z "$ac_dir" && ac_dir=. | |
14386 | if test -f $ac_dir/$ac_word; then | |
14387 | ac_cv_prog_REZ="Rez" | |
14388 | break | |
14389 | fi | |
14390 | done | |
14391 | IFS="$ac_save_ifs" | |
2f51a9ec GD |
14392 | test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez" |
14393 | fi | |
14394 | fi | |
698dcdb6 | 14395 | REZ="$ac_cv_prog_REZ" |
2f51a9ec | 14396 | if test -n "$REZ"; then |
698dcdb6 | 14397 | echo "$ac_t""$REZ" 1>&6 |
2f51a9ec | 14398 | else |
698dcdb6 | 14399 | echo "$ac_t""no" 1>&6 |
2f51a9ec GD |
14400 | fi |
14401 | ||
14402 | # Extract the first word of "Derez", so it can be a program name with args. | |
14403 | set dummy Derez; ac_word=$2 | |
698dcdb6 | 14404 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
b1f5d087 | 14405 | echo "configure:14406: checking for $ac_word" >&5 |
698dcdb6 VZ |
14406 | if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then |
14407 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2f51a9ec GD |
14408 | else |
14409 | if test -n "$DEREZ"; then | |
14410 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
14411 | else | |
698dcdb6 VZ |
14412 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
14413 | ac_dummy="$PATH" | |
14414 | for ac_dir in $ac_dummy; do | |
14415 | test -z "$ac_dir" && ac_dir=. | |
14416 | if test -f $ac_dir/$ac_word; then | |
14417 | ac_cv_prog_DEREZ="Derez" | |
14418 | break | |
14419 | fi | |
14420 | done | |
14421 | IFS="$ac_save_ifs" | |
2f51a9ec GD |
14422 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/Derez" |
14423 | fi | |
14424 | fi | |
698dcdb6 | 14425 | DEREZ="$ac_cv_prog_DEREZ" |
2f51a9ec | 14426 | if test -n "$DEREZ"; then |
698dcdb6 | 14427 | echo "$ac_t""$DEREZ" 1>&6 |
2f51a9ec | 14428 | else |
698dcdb6 | 14429 | echo "$ac_t""no" 1>&6 |
2f51a9ec GD |
14430 | fi |
14431 | ||
14432 | RESCOMP=${REZ} | |
14433 | REZFLAGS="-d __UNIX__ -useDF" | |
14434 | DEREZFLAGS="Carbon.r -useDF" | |
14435 | RESFLAGS="Carbon.r -t APPL" | |
14436 | LIBWXMACRES="\$(LIBWX_MACRES)" | |
14437 | LIBWXMACRESCOMP="\$(LIBWX_MACRESCOMP)" | |
b4085ce6 GD |
14438 | fi |
14439 | ||
10f2d63a VZ |
14440 | if test "$wxUSE_CYGWIN" = 1 ; then |
14441 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__" | |
14442 | fi | |
14443 | ||
14444 | WXDEBUG= | |
14445 | ||
14446 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
14447 | WXDEBUG="-g" | |
14448 | wxUSE_OPTIMISE=no | |
14449 | fi | |
14450 | ||
14451 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
14452 | wxUSE_DEBUG_INFO=yes | |
14453 | WXDEBUG="-ggdb" | |
14454 | fi | |
14455 | ||
14456 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
698dcdb6 | 14457 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
14458 | #define WXDEBUG 1 |
14459 | EOF | |
14460 | ||
14461 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
14462 | else | |
14463 | if test "$wxUSE_GTK" = 1 ; then | |
14464 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
14465 | fi | |
14466 | fi | |
14467 | ||
14468 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
698dcdb6 | 14469 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
14470 | #define wxUSE_MEMORY_TRACING 1 |
14471 | EOF | |
14472 | ||
698dcdb6 | 14473 | cat >> confdefs.h <<\EOF |
10f2d63a | 14474 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 |
47c13eb7 VS |
14475 | EOF |
14476 | ||
698dcdb6 | 14477 | cat >> confdefs.h <<\EOF |
47c13eb7 | 14478 | #define wxUSE_DEBUG_NEW_ALWAYS 1 |
10f2d63a VZ |
14479 | EOF |
14480 | ||
14481 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
14482 | fi | |
14483 | ||
14484 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
14485 | DMALLOC_LINK="-ldmalloc" | |
14486 | fi | |
14487 | ||
14488 | PROFILE= | |
14489 | if test "$wxUSE_PROFILE" = "yes" ; then | |
14490 | PROFILE="-pg" | |
14491 | fi | |
14492 | ||
14493 | DEP_INFO_FLAGS= | |
caa2c79b | 14494 | CODE_GEN_FLAGS= |
0f3f1cbc | 14495 | CODE_GEN_FLAGS_CXX= |
10f2d63a VZ |
14496 | if test "$GCC" = yes ; then |
14497 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
0f3f1cbc | 14498 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-rtti" |
10f2d63a VZ |
14499 | fi |
14500 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
0f3f1cbc | 14501 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-exceptions" |
10f2d63a VZ |
14502 | fi |
14503 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
caa2c79b | 14504 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" |
10f2d63a VZ |
14505 | fi |
14506 | if test "$wxUSE_NO_DEPS" = "no" ; then | |
14507 | DEP_INFO_FLAGS="-MMD" | |
14508 | fi | |
14509 | fi | |
14510 | ||
698dcdb6 | 14511 | |
10f2d63a VZ |
14512 | CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" ` |
14513 | CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" ` | |
14514 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
14515 | OPTIMISE= | |
14516 | else | |
14517 | if test "$GCC" = yes ; then | |
14518 | OPTIMISE="-O2" | |
14519 | case "${host}" in | |
14520 | i586-*-*|i686-*-* ) | |
14521 | OPTIMISE="${OPTIMISE} " | |
14522 | ;; | |
14523 | esac | |
14524 | else | |
14525 | OPTIMISE="-O" | |
14526 | fi | |
14527 | fi | |
14528 | ||
54276ccf VZ |
14529 | if test "$WXWIN_COMPATIBILITY_2" = "yes"; then |
14530 | cat >> confdefs.h <<\EOF | |
14531 | #define WXWIN_COMPATIBILITY_2 1 | |
14532 | EOF | |
14533 | ||
14534 | ||
14535 | WXWIN_COMPATIBILITY_2_2="yes" | |
14536 | fi | |
14537 | ||
14538 | if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then | |
14539 | cat >> confdefs.h <<\EOF | |
14540 | #define WXWIN_COMPATIBILITY_2_2 1 | |
14541 | EOF | |
14542 | ||
14543 | fi | |
14544 | ||
698dcdb6 | 14545 | |
10f2d63a | 14546 | ZLIB_INCLUDE= |
422107f9 | 14547 | if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then |
698dcdb6 | 14548 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
14549 | #define wxUSE_ZLIB 1 |
14550 | EOF | |
14551 | ||
422107f9 VZ |
14552 | if test "$wxUSE_ZLIB" = "yes" ; then |
14553 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
14554 | else | |
14555 | ZLIB_LINK= | |
698dcdb6 VZ |
14556 | ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'` |
14557 | echo $ac_n "checking for zlib.h""... $ac_c" 1>&6 | |
b1f5d087 | 14558 | echo "configure:14559: checking for zlib.h" >&5 |
698dcdb6 VZ |
14559 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
14560 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14561 | else | |
14562 | cat > conftest.$ac_ext <<EOF | |
b1f5d087 | 14563 | #line 14564 "configure" |
422107f9 VZ |
14564 | #include "confdefs.h" |
14565 | #include <zlib.h> | |
698dcdb6 VZ |
14566 | EOF |
14567 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b1f5d087 | 14568 | { (eval echo configure:14569: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
14569 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14570 | if test -z "$ac_err"; then | |
14571 | rm -rf conftest* | |
14572 | eval "ac_cv_header_$ac_safe=yes" | |
422107f9 | 14573 | else |
698dcdb6 VZ |
14574 | echo "$ac_err" >&5 |
14575 | echo "configure: failed program was:" >&5 | |
422107f9 | 14576 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
14577 | rm -rf conftest* |
14578 | eval "ac_cv_header_$ac_safe=no" | |
422107f9 | 14579 | fi |
698dcdb6 | 14580 | rm -f conftest* |
422107f9 | 14581 | fi |
698dcdb6 VZ |
14582 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
14583 | echo "$ac_t""yes" 1>&6 | |
14584 | echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6 | |
b1f5d087 | 14585 | echo "configure:14586: checking for deflate in -lz" >&5 |
698dcdb6 VZ |
14586 | ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'` |
14587 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14588 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 14589 | else |
698dcdb6 | 14590 | ac_save_LIBS="$LIBS" |
422107f9 | 14591 | LIBS="-lz $LIBS" |
698dcdb6 | 14592 | cat > conftest.$ac_ext <<EOF |
b1f5d087 | 14593 | #line 14594 "configure" |
422107f9 VZ |
14594 | #include "confdefs.h" |
14595 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14596 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14597 | builtin and then its argument prototype would still apply. */ |
14598 | char deflate(); | |
14599 | ||
14600 | int main() { | |
14601 | deflate() | |
14602 | ; return 0; } | |
14603 | EOF | |
b1f5d087 | 14604 | if { (eval echo configure:14605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14605 | rm -rf conftest* |
14606 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14607 | else | |
14608 | echo "configure: failed program was:" >&5 | |
14609 | cat conftest.$ac_ext >&5 | |
14610 | rm -rf conftest* | |
14611 | eval "ac_cv_lib_$ac_lib_var=no" | |
14612 | fi | |
14613 | rm -f conftest* | |
14614 | LIBS="$ac_save_LIBS" | |
14615 | ||
14616 | fi | |
14617 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14618 | echo "$ac_t""yes" 1>&6 | |
422107f9 | 14619 | ZLIB_LINK="-lz" |
698dcdb6 VZ |
14620 | else |
14621 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
14622 | fi |
14623 | ||
698dcdb6 VZ |
14624 | else |
14625 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
14626 | fi |
14627 | ||
14628 | if test "x$ZLIB_LINK" = "x" ; then | |
698dcdb6 | 14629 | { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; } |
422107f9 VZ |
14630 | fi |
14631 | fi | |
10f2d63a VZ |
14632 | fi |
14633 | ||
14634 | PNG_INCLUDE= | |
422107f9 | 14635 | if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then |
698dcdb6 | 14636 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
14637 | #define wxUSE_LIBPNG 1 |
14638 | EOF | |
14639 | ||
41fd4136 | 14640 | if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then |
698dcdb6 | 14641 | echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2 |
422107f9 VZ |
14642 | wxUSE_LIBPNG=yes |
14643 | fi | |
14644 | ||
14645 | if test "$wxUSE_LIBPNG" = "yes" ; then | |
14646 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
14647 | else | |
14648 | PNG_LINK= | |
698dcdb6 VZ |
14649 | ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` |
14650 | echo $ac_n "checking for png.h""... $ac_c" 1>&6 | |
b1f5d087 | 14651 | echo "configure:14652: checking for png.h" >&5 |
698dcdb6 VZ |
14652 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
14653 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14654 | else | |
14655 | cat > conftest.$ac_ext <<EOF | |
b1f5d087 | 14656 | #line 14657 "configure" |
422107f9 VZ |
14657 | #include "confdefs.h" |
14658 | #include <png.h> | |
698dcdb6 VZ |
14659 | EOF |
14660 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b1f5d087 | 14661 | { (eval echo configure:14662: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
14662 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14663 | if test -z "$ac_err"; then | |
14664 | rm -rf conftest* | |
14665 | eval "ac_cv_header_$ac_safe=yes" | |
422107f9 | 14666 | else |
698dcdb6 VZ |
14667 | echo "$ac_err" >&5 |
14668 | echo "configure: failed program was:" >&5 | |
422107f9 | 14669 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
14670 | rm -rf conftest* |
14671 | eval "ac_cv_header_$ac_safe=no" | |
422107f9 | 14672 | fi |
698dcdb6 | 14673 | rm -f conftest* |
422107f9 | 14674 | fi |
698dcdb6 VZ |
14675 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
14676 | echo "$ac_t""yes" 1>&6 | |
14677 | echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6 | |
b1f5d087 | 14678 | echo "configure:14679: checking for png_check_sig in -lpng" >&5 |
698dcdb6 VZ |
14679 | ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'` |
14680 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14681 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 14682 | else |
698dcdb6 | 14683 | ac_save_LIBS="$LIBS" |
422107f9 | 14684 | LIBS="-lpng -lz -lm $LIBS" |
698dcdb6 | 14685 | cat > conftest.$ac_ext <<EOF |
b1f5d087 | 14686 | #line 14687 "configure" |
422107f9 VZ |
14687 | #include "confdefs.h" |
14688 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14689 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14690 | builtin and then its argument prototype would still apply. */ |
14691 | char png_check_sig(); | |
14692 | ||
14693 | int main() { | |
14694 | png_check_sig() | |
14695 | ; return 0; } | |
14696 | EOF | |
b1f5d087 | 14697 | if { (eval echo configure:14698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14698 | rm -rf conftest* |
14699 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14700 | else | |
14701 | echo "configure: failed program was:" >&5 | |
14702 | cat conftest.$ac_ext >&5 | |
14703 | rm -rf conftest* | |
14704 | eval "ac_cv_lib_$ac_lib_var=no" | |
14705 | fi | |
14706 | rm -f conftest* | |
14707 | LIBS="$ac_save_LIBS" | |
14708 | ||
14709 | fi | |
14710 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14711 | echo "$ac_t""yes" 1>&6 | |
422107f9 | 14712 | PNG_LINK="-lpng" |
698dcdb6 VZ |
14713 | else |
14714 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
14715 | fi |
14716 | ||
698dcdb6 VZ |
14717 | |
14718 | else | |
14719 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
14720 | fi |
14721 | ||
14722 | if test "x$PNG_LINK" = "x" ; then | |
698dcdb6 | 14723 | { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; } |
422107f9 VZ |
14724 | fi |
14725 | fi | |
14726 | ||
10f2d63a VZ |
14727 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" |
14728 | fi | |
14729 | ||
14730 | JPEG_INCLUDE= | |
422107f9 | 14731 | if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then |
698dcdb6 | 14732 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
14733 | #define wxUSE_LIBJPEG 1 |
14734 | EOF | |
14735 | ||
422107f9 VZ |
14736 | if test "$wxUSE_LIBJPEG" = "yes" ; then |
14737 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
14738 | else | |
14739 | JPEG_LINK= | |
463abc64 | 14740 | echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 |
b1f5d087 | 14741 | echo "configure:14742: checking for jpeglib.h" >&5 |
463abc64 | 14742 | if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then |
698dcdb6 VZ |
14743 | echo $ac_n "(cached) $ac_c" 1>&6 |
14744 | else | |
14745 | cat > conftest.$ac_ext <<EOF | |
b1f5d087 | 14746 | #line 14747 "configure" |
422107f9 | 14747 | #include "confdefs.h" |
463abc64 VZ |
14748 | |
14749 | #undef HAVE_STDLIB_H | |
14750 | #include <stdio.h> | |
14751 | #include <jpeglib.h> | |
14752 | ||
14753 | int main() { | |
14754 | ||
14755 | ||
14756 | ; return 0; } | |
698dcdb6 | 14757 | EOF |
b1f5d087 | 14758 | if { (eval echo configure:14759: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 14759 | rm -rf conftest* |
463abc64 | 14760 | ac_cv_header_jpeglib_h=yes |
6232543b | 14761 | else |
698dcdb6 | 14762 | echo "configure: failed program was:" >&5 |
422107f9 | 14763 | cat conftest.$ac_ext >&5 |
698dcdb6 | 14764 | rm -rf conftest* |
463abc64 VZ |
14765 | ac_cv_header_jpeglib_h=no |
14766 | ||
422107f9 | 14767 | fi |
698dcdb6 | 14768 | rm -f conftest* |
463abc64 | 14769 | |
422107f9 | 14770 | fi |
463abc64 VZ |
14771 | |
14772 | echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6 | |
14773 | ||
14774 | if test "$ac_cv_header_jpeglib_h" = "yes"; then | |
14775 | echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6 | |
b1f5d087 | 14776 | echo "configure:14777: checking for jpeg_read_header in -ljpeg" >&5 |
698dcdb6 VZ |
14777 | ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'` |
14778 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14779 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 14780 | else |
698dcdb6 | 14781 | ac_save_LIBS="$LIBS" |
422107f9 | 14782 | LIBS="-ljpeg $LIBS" |
698dcdb6 | 14783 | cat > conftest.$ac_ext <<EOF |
b1f5d087 | 14784 | #line 14785 "configure" |
422107f9 VZ |
14785 | #include "confdefs.h" |
14786 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14787 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14788 | builtin and then its argument prototype would still apply. */ |
14789 | char jpeg_read_header(); | |
14790 | ||
14791 | int main() { | |
14792 | jpeg_read_header() | |
14793 | ; return 0; } | |
14794 | EOF | |
b1f5d087 | 14795 | if { (eval echo configure:14796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14796 | rm -rf conftest* |
14797 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14798 | else | |
14799 | echo "configure: failed program was:" >&5 | |
14800 | cat conftest.$ac_ext >&5 | |
14801 | rm -rf conftest* | |
14802 | eval "ac_cv_lib_$ac_lib_var=no" | |
14803 | fi | |
14804 | rm -f conftest* | |
14805 | LIBS="$ac_save_LIBS" | |
14806 | ||
14807 | fi | |
14808 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14809 | echo "$ac_t""yes" 1>&6 | |
422107f9 | 14810 | JPEG_LINK="-ljpeg" |
698dcdb6 VZ |
14811 | else |
14812 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
14813 | fi |
14814 | ||
463abc64 | 14815 | fi |
422107f9 VZ |
14816 | |
14817 | if test "x$JPEG_LINK" = "x" ; then | |
698dcdb6 | 14818 | { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; } |
422107f9 VZ |
14819 | fi |
14820 | fi | |
10f2d63a VZ |
14821 | fi |
14822 | ||
c7a2bf27 | 14823 | TIFF_INCLUDE= |
0dcf9893 | 14824 | if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then |
698dcdb6 | 14825 | cat >> confdefs.h <<\EOF |
c7a2bf27 RR |
14826 | #define wxUSE_LIBTIFF 1 |
14827 | EOF | |
14828 | ||
665bbe97 | 14829 | if test "$wxUSE_LIBTIFF" = "yes" ; then |
0dcf9893 VZ |
14830 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" |
14831 | else | |
14832 | TIFF_LINK= | |
698dcdb6 VZ |
14833 | ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` |
14834 | echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | |
b1f5d087 | 14835 | echo "configure:14836: checking for tiffio.h" >&5 |
698dcdb6 VZ |
14836 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
14837 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14838 | else | |
14839 | cat > conftest.$ac_ext <<EOF | |
b1f5d087 | 14840 | #line 14841 "configure" |
0dcf9893 VZ |
14841 | #include "confdefs.h" |
14842 | #include <tiffio.h> | |
698dcdb6 VZ |
14843 | EOF |
14844 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b1f5d087 | 14845 | { (eval echo configure:14846: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
14846 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14847 | if test -z "$ac_err"; then | |
14848 | rm -rf conftest* | |
14849 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 14850 | else |
698dcdb6 VZ |
14851 | echo "$ac_err" >&5 |
14852 | echo "configure: failed program was:" >&5 | |
0dcf9893 | 14853 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
14854 | rm -rf conftest* |
14855 | eval "ac_cv_header_$ac_safe=no" | |
0dcf9893 | 14856 | fi |
698dcdb6 | 14857 | rm -f conftest* |
0dcf9893 | 14858 | fi |
698dcdb6 VZ |
14859 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
14860 | echo "$ac_t""yes" 1>&6 | |
14861 | echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6 | |
b1f5d087 | 14862 | echo "configure:14863: checking for TIFFError in -ltiff" >&5 |
698dcdb6 VZ |
14863 | ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'` |
14864 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14865 | echo $ac_n "(cached) $ac_c" 1>&6 | |
0dcf9893 | 14866 | else |
698dcdb6 | 14867 | ac_save_LIBS="$LIBS" |
0dcf9893 | 14868 | LIBS="-ltiff -lm $LIBS" |
698dcdb6 | 14869 | cat > conftest.$ac_ext <<EOF |
b1f5d087 | 14870 | #line 14871 "configure" |
0dcf9893 VZ |
14871 | #include "confdefs.h" |
14872 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14873 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14874 | builtin and then its argument prototype would still apply. */ |
14875 | char TIFFError(); | |
14876 | ||
14877 | int main() { | |
14878 | TIFFError() | |
14879 | ; return 0; } | |
14880 | EOF | |
b1f5d087 | 14881 | if { (eval echo configure:14882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14882 | rm -rf conftest* |
14883 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14884 | else | |
14885 | echo "configure: failed program was:" >&5 | |
14886 | cat conftest.$ac_ext >&5 | |
14887 | rm -rf conftest* | |
14888 | eval "ac_cv_lib_$ac_lib_var=no" | |
14889 | fi | |
14890 | rm -f conftest* | |
14891 | LIBS="$ac_save_LIBS" | |
14892 | ||
14893 | fi | |
14894 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14895 | echo "$ac_t""yes" 1>&6 | |
0dcf9893 | 14896 | TIFF_LINK="-ltiff" |
698dcdb6 VZ |
14897 | else |
14898 | echo "$ac_t""no" 1>&6 | |
0dcf9893 VZ |
14899 | fi |
14900 | ||
698dcdb6 VZ |
14901 | else |
14902 | echo "$ac_t""no" 1>&6 | |
0dcf9893 VZ |
14903 | fi |
14904 | ||
14905 | if test "x$TIFF_LINK" = "x" ; then | |
698dcdb6 | 14906 | { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; } |
0dcf9893 VZ |
14907 | fi |
14908 | fi | |
c7a2bf27 RR |
14909 | fi |
14910 | ||
3fed1840 RR |
14911 | FREETYPE_INCLUDE= |
14912 | if test "$wxUSE_FREETYPE" = "yes" -o "$wxUSE_FREETYPE" = "sys" ; then | |
698dcdb6 | 14913 | cat >> confdefs.h <<\EOF |
3fed1840 RR |
14914 | #define wxUSE_FREETYPE 1 |
14915 | EOF | |
14916 | ||
14917 | if test "$wxUSE_FREETYPE" = "yes" ; then | |
14918 | FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype" | |
14919 | else | |
14920 | FREETYPE_LINK= | |
698dcdb6 VZ |
14921 | ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'` |
14922 | echo $ac_n "checking for freetype.h""... $ac_c" 1>&6 | |
b1f5d087 | 14923 | echo "configure:14924: checking for freetype.h" >&5 |
698dcdb6 VZ |
14924 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
14925 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14926 | else | |
14927 | cat > conftest.$ac_ext <<EOF | |
b1f5d087 | 14928 | #line 14929 "configure" |
3fed1840 RR |
14929 | #include "confdefs.h" |
14930 | #include <freetype.h> | |
698dcdb6 VZ |
14931 | EOF |
14932 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b1f5d087 | 14933 | { (eval echo configure:14934: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
14934 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14935 | if test -z "$ac_err"; then | |
14936 | rm -rf conftest* | |
14937 | eval "ac_cv_header_$ac_safe=yes" | |
3fed1840 | 14938 | else |
698dcdb6 VZ |
14939 | echo "$ac_err" >&5 |
14940 | echo "configure: failed program was:" >&5 | |
3fed1840 | 14941 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
14942 | rm -rf conftest* |
14943 | eval "ac_cv_header_$ac_safe=no" | |
3fed1840 | 14944 | fi |
698dcdb6 | 14945 | rm -f conftest* |
3fed1840 | 14946 | fi |
698dcdb6 VZ |
14947 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
14948 | echo "$ac_t""yes" 1>&6 | |
14949 | echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6 | |
b1f5d087 | 14950 | echo "configure:14951: checking for FT_Render_Glyph in -lfreetype" >&5 |
698dcdb6 VZ |
14951 | ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'` |
14952 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14953 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3fed1840 | 14954 | else |
698dcdb6 | 14955 | ac_save_LIBS="$LIBS" |
3fed1840 | 14956 | LIBS="-lfreetype -lm $LIBS" |
698dcdb6 | 14957 | cat > conftest.$ac_ext <<EOF |
b1f5d087 | 14958 | #line 14959 "configure" |
3fed1840 RR |
14959 | #include "confdefs.h" |
14960 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14961 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14962 | builtin and then its argument prototype would still apply. */ |
14963 | char FT_Render_Glyph(); | |
14964 | ||
14965 | int main() { | |
14966 | FT_Render_Glyph() | |
14967 | ; return 0; } | |
14968 | EOF | |
b1f5d087 | 14969 | if { (eval echo configure:14970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14970 | rm -rf conftest* |
14971 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14972 | else | |
14973 | echo "configure: failed program was:" >&5 | |
14974 | cat conftest.$ac_ext >&5 | |
14975 | rm -rf conftest* | |
14976 | eval "ac_cv_lib_$ac_lib_var=no" | |
14977 | fi | |
14978 | rm -f conftest* | |
14979 | LIBS="$ac_save_LIBS" | |
14980 | ||
14981 | fi | |
14982 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14983 | echo "$ac_t""yes" 1>&6 | |
3fed1840 | 14984 | FREETYPE_LINK="-lfreetype" |
698dcdb6 VZ |
14985 | else |
14986 | echo "$ac_t""no" 1>&6 | |
3fed1840 RR |
14987 | fi |
14988 | ||
698dcdb6 VZ |
14989 | |
14990 | else | |
14991 | echo "$ac_t""no" 1>&6 | |
3fed1840 RR |
14992 | fi |
14993 | ||
14994 | if test "x$FREETYPE_LINK" = "x" ; then | |
698dcdb6 | 14995 | { echo "configure: error: system freetype library not found! Use --with-freetype=yes to use the built-in freetype" 1>&2; exit 1; } |
3fed1840 RR |
14996 | fi |
14997 | fi | |
14998 | fi | |
14999 | ||
10f2d63a | 15000 | if test "$wxUSE_OPENGL" = "yes"; then |
698dcdb6 VZ |
15001 | ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'` |
15002 | echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6 | |
b1f5d087 | 15003 | echo "configure:15004: checking for GL/gl.h" >&5 |
698dcdb6 VZ |
15004 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
15005 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15006 | else | |
15007 | cat > conftest.$ac_ext <<EOF | |
b1f5d087 | 15008 | #line 15009 "configure" |
10f2d63a VZ |
15009 | #include "confdefs.h" |
15010 | #include <GL/gl.h> | |
698dcdb6 VZ |
15011 | EOF |
15012 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b1f5d087 | 15013 | { (eval echo configure:15014: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
15014 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15015 | if test -z "$ac_err"; then | |
15016 | rm -rf conftest* | |
15017 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 15018 | else |
698dcdb6 VZ |
15019 | echo "$ac_err" >&5 |
15020 | echo "configure: failed program was:" >&5 | |
10f2d63a | 15021 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
15022 | rm -rf conftest* |
15023 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 15024 | fi |
698dcdb6 | 15025 | rm -f conftest* |
10f2d63a | 15026 | fi |
698dcdb6 VZ |
15027 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
15028 | echo "$ac_t""yes" 1>&6 | |
15029 | ||
15030 | cat >> confdefs.h <<\EOF | |
bdad4e7e RR |
15031 | #define wxUSE_OPENGL 1 |
15032 | EOF | |
15033 | ||
698dcdb6 | 15034 | cat >> confdefs.h <<\EOF |
bdad4e7e RR |
15035 | #define wxUSE_GLCANVAS 1 |
15036 | EOF | |
15037 | ||
698dcdb6 | 15038 | echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6 |
b1f5d087 | 15039 | echo "configure:15040: checking for glFlush in -lGL" >&5 |
698dcdb6 VZ |
15040 | ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'` |
15041 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15042 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 15043 | else |
698dcdb6 | 15044 | ac_save_LIBS="$LIBS" |
bdad4e7e | 15045 | LIBS="-lGL $LIBS" |
698dcdb6 | 15046 | cat > conftest.$ac_ext <<EOF |
b1f5d087 | 15047 | #line 15048 "configure" |
10f2d63a VZ |
15048 | #include "confdefs.h" |
15049 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15050 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15051 | builtin and then its argument prototype would still apply. */ |
15052 | char glFlush(); | |
6232543b | 15053 | |
698dcdb6 VZ |
15054 | int main() { |
15055 | glFlush() | |
15056 | ; return 0; } | |
15057 | EOF | |
b1f5d087 | 15058 | if { (eval echo configure:15059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15059 | rm -rf conftest* |
15060 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15061 | else | |
15062 | echo "configure: failed program was:" >&5 | |
15063 | cat conftest.$ac_ext >&5 | |
15064 | rm -rf conftest* | |
15065 | eval "ac_cv_lib_$ac_lib_var=no" | |
15066 | fi | |
15067 | rm -f conftest* | |
15068 | LIBS="$ac_save_LIBS" | |
1e487827 | 15069 | |
698dcdb6 VZ |
15070 | fi |
15071 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15072 | echo "$ac_t""yes" 1>&6 | |
15073 | ||
15074 | OPENGL_LINK="-lGL -lGLU" | |
15075 | ||
10f2d63a | 15076 | else |
698dcdb6 | 15077 | echo "$ac_t""no" 1>&6 |
10f2d63a | 15078 | |
698dcdb6 | 15079 | echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6 |
b1f5d087 | 15080 | echo "configure:15081: checking for glFlush in -lMesaGL" >&5 |
698dcdb6 VZ |
15081 | ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'` |
15082 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15083 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 15084 | else |
698dcdb6 | 15085 | ac_save_LIBS="$LIBS" |
10f2d63a | 15086 | LIBS="-lMesaGL $LIBS" |
698dcdb6 | 15087 | cat > conftest.$ac_ext <<EOF |
b1f5d087 | 15088 | #line 15089 "configure" |
10f2d63a VZ |
15089 | #include "confdefs.h" |
15090 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15091 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15092 | builtin and then its argument prototype would still apply. */ |
15093 | char glFlush(); | |
15094 | ||
15095 | int main() { | |
15096 | glFlush() | |
15097 | ; return 0; } | |
15098 | EOF | |
b1f5d087 | 15099 | if { (eval echo configure:15100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15100 | rm -rf conftest* |
15101 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15102 | else | |
15103 | echo "configure: failed program was:" >&5 | |
15104 | cat conftest.$ac_ext >&5 | |
15105 | rm -rf conftest* | |
15106 | eval "ac_cv_lib_$ac_lib_var=no" | |
15107 | fi | |
15108 | rm -f conftest* | |
15109 | LIBS="$ac_save_LIBS" | |
10f2d63a | 15110 | |
698dcdb6 VZ |
15111 | fi |
15112 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15113 | echo "$ac_t""yes" 1>&6 | |
15114 | ||
f6bcfd97 | 15115 | OPENGL_LINK="-lMesaGL -lMesaGLU" |
698dcdb6 VZ |
15116 | |
15117 | else | |
15118 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
15119 | fi |
15120 | ||
698dcdb6 | 15121 | |
10f2d63a VZ |
15122 | fi |
15123 | ||
698dcdb6 | 15124 | |
10f2d63a | 15125 | else |
698dcdb6 VZ |
15126 | echo "$ac_t""no" 1>&6 |
15127 | wxUSE_OPENGL=0 | |
10f2d63a VZ |
15128 | fi |
15129 | ||
15130 | fi | |
15131 | ||
698dcdb6 | 15132 | |
10f2d63a | 15133 | if test "$wxUSE_GUI" = "yes"; then |
698dcdb6 | 15134 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15135 | #define wxUSE_GUI 1 |
15136 | EOF | |
15137 | ||
698dcdb6 | 15138 | |
10f2d63a | 15139 | else |
698dcdb6 | 15140 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15141 | #define wxUSE_NOGUI 1 |
15142 | EOF | |
15143 | ||
15144 | fi | |
15145 | ||
698dcdb6 | 15146 | |
10f2d63a | 15147 | if test "$wxUSE_UNIX" = "yes"; then |
698dcdb6 | 15148 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15149 | #define wxUSE_UNIX 1 |
15150 | EOF | |
15151 | ||
15152 | fi | |
15153 | ||
698dcdb6 | 15154 | |
10f2d63a | 15155 | if test "$wxUSE_APPLE_IEEE" = "yes"; then |
698dcdb6 | 15156 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15157 | #define wxUSE_APPLE_IEEE 1 |
15158 | EOF | |
15159 | ||
15160 | fi | |
15161 | ||
1e6feb95 VZ |
15162 | if test "$wxUSE_TIMER" = "yes"; then |
15163 | cat >> confdefs.h <<\EOF | |
15164 | #define wxUSE_TIMER 1 | |
15165 | EOF | |
15166 | ||
15167 | fi | |
15168 | ||
10f2d63a | 15169 | if test "$wxUSE_WAVE" = "yes"; then |
698dcdb6 | 15170 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15171 | #define wxUSE_WAVE 1 |
15172 | EOF | |
15173 | ||
15174 | fi | |
15175 | ||
1e6feb95 VZ |
15176 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
15177 | cat >> confdefs.h <<\EOF | |
15178 | #define wxUSE_CMDLINE_PARSER 1 | |
15179 | EOF | |
15180 | ||
15181 | fi | |
15182 | ||
15183 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
15184 | cat >> confdefs.h <<\EOF | |
15185 | #define wxUSE_STOPWATCH 1 | |
15186 | EOF | |
15187 | ||
15188 | fi | |
15189 | ||
15190 | if test "$wxUSE_DATETIME" = "yes"; then | |
15191 | cat >> confdefs.h <<\EOF | |
15192 | #define wxUSE_DATETIME 1 | |
15193 | EOF | |
15194 | ||
15195 | fi | |
15196 | ||
15197 | if test "$wxUSE_TIMEDATE" = "yes"; then | |
15198 | cat >> confdefs.h <<\EOF | |
15199 | #define wxUSE_TIMEDATE 1 | |
15200 | EOF | |
15201 | ||
15202 | fi | |
15203 | ||
10f2d63a | 15204 | if test "$wxUSE_FILE" = "yes"; then |
698dcdb6 | 15205 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15206 | #define wxUSE_FILE 1 |
15207 | EOF | |
15208 | ||
15209 | fi | |
15210 | ||
1e6feb95 VZ |
15211 | if test "$wxUSE_FFILE" = "yes"; then |
15212 | cat >> confdefs.h <<\EOF | |
15213 | #define wxUSE_FFILE 1 | |
15214 | EOF | |
15215 | ||
15216 | fi | |
15217 | ||
24528b0c | 15218 | if test "$wxUSE_FILESYSTEM" = "yes"; then |
698dcdb6 | 15219 | cat >> confdefs.h <<\EOF |
24528b0c VS |
15220 | #define wxUSE_FILESYSTEM 1 |
15221 | EOF | |
15222 | ||
15223 | fi | |
15224 | ||
10f2d63a | 15225 | if test "$wxUSE_FS_INET" = "yes"; then |
698dcdb6 | 15226 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15227 | #define wxUSE_FS_INET 1 |
15228 | EOF | |
15229 | ||
15230 | fi | |
15231 | ||
15232 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
698dcdb6 | 15233 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15234 | #define wxUSE_FS_ZIP 1 |
15235 | EOF | |
15236 | ||
15237 | fi | |
15238 | ||
15239 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
698dcdb6 | 15240 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15241 | #define wxUSE_ZIPSTREAM 1 |
15242 | EOF | |
15243 | ||
15244 | fi | |
15245 | ||
eb4efbdc | 15246 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
698dcdb6 | 15247 | cat >> confdefs.h <<\EOF |
eb4efbdc VZ |
15248 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
15249 | EOF | |
15250 | ||
15251 | fi | |
15252 | ||
4f3c5f06 | 15253 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
698dcdb6 | 15254 | cat >> confdefs.h <<\EOF |
4f3c5f06 VZ |
15255 | #define wxUSE_SNGLINST_CHECKER 1 |
15256 | EOF | |
15257 | ||
15258 | fi | |
15259 | ||
10f2d63a | 15260 | if test "$wxUSE_BUSYINFO" = "yes"; then |
698dcdb6 | 15261 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15262 | #define wxUSE_BUSYINFO 1 |
15263 | EOF | |
15264 | ||
15265 | fi | |
15266 | ||
15267 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
698dcdb6 | 15268 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15269 | #define wxUSE_STD_IOSTREAM 1 |
15270 | EOF | |
15271 | ||
15272 | fi | |
15273 | ||
15274 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
15275 | if test "$wxUSE_FILE" != "yes"; then | |
698dcdb6 | 15276 | echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2 |
10f2d63a | 15277 | else |
698dcdb6 | 15278 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15279 | #define wxUSE_TEXTFILE 1 |
15280 | EOF | |
15281 | ||
15282 | fi | |
15283 | fi | |
15284 | ||
15285 | if test "$wxUSE_CONFIG" = "yes" ; then | |
15286 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
698dcdb6 | 15287 | echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2 |
10f2d63a | 15288 | else |
698dcdb6 | 15289 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15290 | #define wxUSE_CONFIG 1 |
15291 | EOF | |
15292 | ||
15293 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
15294 | fi | |
15295 | fi | |
15296 | ||
15297 | if test "$wxUSE_INTL" = "yes" ; then | |
15298 | if test "$wxUSE_FILE" != "yes"; then | |
698dcdb6 | 15299 | echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2 |
10f2d63a | 15300 | else |
698dcdb6 | 15301 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15302 | #define wxUSE_INTL 1 |
15303 | EOF | |
15304 | ||
15305 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
f6bcfd97 | 15306 | GUIDIST="$GUIDIST INTL_DIST" |
10f2d63a VZ |
15307 | fi |
15308 | fi | |
15309 | ||
15310 | if test "$wxUSE_LOG" = "yes"; then | |
698dcdb6 | 15311 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15312 | #define wxUSE_LOG 1 |
15313 | EOF | |
15314 | ||
d73be714 VZ |
15315 | |
15316 | if test "$wxUSE_LOGGUI" = "yes"; then | |
15317 | cat >> confdefs.h <<\EOF | |
15318 | #define wxUSE_LOGGUI 1 | |
15319 | EOF | |
15320 | ||
15321 | fi | |
15322 | ||
15323 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
15324 | cat >> confdefs.h <<\EOF | |
15325 | #define wxUSE_LOGWINDOW 1 | |
15326 | EOF | |
15327 | ||
15328 | fi | |
10f2d63a VZ |
15329 | fi |
15330 | ||
15331 | if test "$wxUSE_LONGLONG" = "yes"; then | |
698dcdb6 | 15332 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15333 | #define wxUSE_LONGLONG 1 |
15334 | EOF | |
15335 | ||
15336 | fi | |
15337 | ||
e8f65ba6 | 15338 | if test "$wxUSE_GEOMETRY" = "yes"; then |
698dcdb6 | 15339 | cat >> confdefs.h <<\EOF |
e8f65ba6 RR |
15340 | #define wxUSE_GEOMETRY 1 |
15341 | EOF | |
15342 | ||
15343 | fi | |
15344 | ||
10f2d63a | 15345 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
698dcdb6 | 15346 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15347 | #define wxUSE_DIALUP_MANAGER 1 |
15348 | EOF | |
15349 | ||
70f7a477 | 15350 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" |
10f2d63a VZ |
15351 | fi |
15352 | ||
15353 | if test "$wxUSE_STREAMS" = "yes" ; then | |
698dcdb6 | 15354 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15355 | #define wxUSE_STREAMS 1 |
15356 | EOF | |
15357 | ||
15358 | fi | |
15359 | ||
1e487827 | 15360 | |
1e6feb95 | 15361 | if test "$wxUSE_DATETIME" = "yes"; then |
698dcdb6 | 15362 | for ac_func in strptime |
83307f33 | 15363 | do |
698dcdb6 | 15364 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
b1f5d087 | 15365 | echo "configure:15366: checking for $ac_func" >&5 |
698dcdb6 VZ |
15366 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15367 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15368 | else | |
15369 | cat > conftest.$ac_ext <<EOF | |
b1f5d087 | 15370 | #line 15371 "configure" |
83307f33 VZ |
15371 | #include "confdefs.h" |
15372 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 15373 | which can conflict with char $ac_func(); below. */ |
83307f33 VZ |
15374 | #include <assert.h> |
15375 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15376 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15377 | builtin and then its argument prototype would still apply. */ |
15378 | char $ac_func(); | |
15379 | ||
15380 | int main() { | |
83307f33 VZ |
15381 | |
15382 | /* The GNU C library defines this for functions which it implements | |
15383 | to always fail with ENOSYS. Some functions are actually named | |
15384 | something starting with __ and the normal name is an alias. */ | |
15385 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15386 | choke me | |
15387 | #else | |
698dcdb6 | 15388 | $ac_func(); |
83307f33 VZ |
15389 | #endif |
15390 | ||
698dcdb6 | 15391 | ; return 0; } |
83307f33 | 15392 | EOF |
b1f5d087 | 15393 | if { (eval echo configure:15394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15394 | rm -rf conftest* |
15395 | eval "ac_cv_func_$ac_func=yes" | |
15396 | else | |
15397 | echo "configure: failed program was:" >&5 | |
15398 | cat conftest.$ac_ext >&5 | |
15399 | rm -rf conftest* | |
15400 | eval "ac_cv_func_$ac_func=no" | |
15401 | fi | |
15402 | rm -f conftest* | |
15403 | fi | |
83307f33 | 15404 | |
698dcdb6 VZ |
15405 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
15406 | echo "$ac_t""yes" 1>&6 | |
15407 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15408 | cat >> confdefs.h <<EOF | |
15409 | #define $ac_tr_func 1 | |
15410 | EOF | |
15411 | ||
15412 | else | |
15413 | echo "$ac_t""no" 1>&6 | |
83307f33 VZ |
15414 | fi |
15415 | done | |
15416 | ||
1e487827 | 15417 | |
698dcdb6 | 15418 | echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6 |
b1f5d087 | 15419 | echo "configure:15420: checking for timezone variable in <time.h>" >&5 |
698dcdb6 VZ |
15420 | if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then |
15421 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15422 | else | |
15423 | ||
15424 | cat > conftest.$ac_ext <<EOF | |
b1f5d087 | 15425 | #line 15426 "configure" |
360d6699 VZ |
15426 | #include "confdefs.h" |
15427 | ||
b4085ce6 | 15428 | #include <time.h> |
698dcdb6 VZ |
15429 | |
15430 | int main() { | |
360d6699 VZ |
15431 | |
15432 | int tz; | |
15433 | tz = __timezone; | |
698dcdb6 VZ |
15434 | |
15435 | ; return 0; } | |
15436 | EOF | |
b1f5d087 | 15437 | if { (eval echo configure:15438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
15438 | rm -rf conftest* |
15439 | ||
360d6699 | 15440 | wx_cv_var_timezone=__timezone |
698dcdb6 | 15441 | |
360d6699 | 15442 | else |
698dcdb6 VZ |
15443 | echo "configure: failed program was:" >&5 |
15444 | cat conftest.$ac_ext >&5 | |
15445 | rm -rf conftest* | |
15446 | ||
15447 | cat > conftest.$ac_ext <<EOF | |
b1f5d087 | 15448 | #line 15449 "configure" |
360d6699 VZ |
15449 | #include "confdefs.h" |
15450 | ||
b4085ce6 | 15451 | #include <time.h> |
698dcdb6 VZ |
15452 | |
15453 | int main() { | |
360d6699 VZ |
15454 | |
15455 | int tz; | |
15456 | tz = _timezone; | |
698dcdb6 VZ |
15457 | |
15458 | ; return 0; } | |
15459 | EOF | |
b1f5d087 | 15460 | if { (eval echo configure:15461: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
15461 | rm -rf conftest* |
15462 | ||
360d6699 | 15463 | wx_cv_var_timezone=_timezone |
698dcdb6 | 15464 | |
5357c8e8 | 15465 | else |
698dcdb6 VZ |
15466 | echo "configure: failed program was:" >&5 |
15467 | cat conftest.$ac_ext >&5 | |
15468 | rm -rf conftest* | |
15469 | ||
15470 | cat > conftest.$ac_ext <<EOF | |
b1f5d087 | 15471 | #line 15472 "configure" |
5357c8e8 VZ |
15472 | #include "confdefs.h" |
15473 | ||
b4085ce6 | 15474 | #include <time.h> |
698dcdb6 VZ |
15475 | |
15476 | int main() { | |
5357c8e8 VZ |
15477 | |
15478 | int tz; | |
15479 | tz = timezone; | |
698dcdb6 VZ |
15480 | |
15481 | ; return 0; } | |
15482 | EOF | |
b1f5d087 | 15483 | if { (eval echo configure:15484: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
15484 | rm -rf conftest* |
15485 | ||
5357c8e8 | 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 | { echo "configure: error: no timezone variable" 1>&2; exit 1; } | |
15493 | ||
360d6699 | 15494 | fi |
698dcdb6 VZ |
15495 | rm -f conftest* |
15496 | ||
15497 | ||
360d6699 | 15498 | fi |
698dcdb6 VZ |
15499 | rm -f conftest* |
15500 | ||
15501 | ||
6232543b | 15502 | fi |
698dcdb6 VZ |
15503 | rm -f conftest* |
15504 | ||
15505 | ||
1e487827 | 15506 | fi |
703e0a69 | 15507 | |
698dcdb6 VZ |
15508 | echo "$ac_t""$wx_cv_var_timezone" 1>&6 |
15509 | ||
15510 | cat >> confdefs.h <<EOF | |
360d6699 VZ |
15511 | #define WX_TIMEZONE $wx_cv_var_timezone |
15512 | EOF | |
15513 | ||
698dcdb6 VZ |
15514 | |
15515 | for ac_func in localtime | |
afc31813 | 15516 | do |
698dcdb6 | 15517 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
b1f5d087 | 15518 | echo "configure:15519: checking for $ac_func" >&5 |
698dcdb6 VZ |
15519 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15520 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15521 | else | |
15522 | cat > conftest.$ac_ext <<EOF | |
b1f5d087 | 15523 | #line 15524 "configure" |
10f2d63a | 15524 | #include "confdefs.h" |
afc31813 | 15525 | /* System header to define __stub macros and hopefully few prototypes, |
698dcdb6 | 15526 | which can conflict with char $ac_func(); below. */ |
afc31813 VZ |
15527 | #include <assert.h> |
15528 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15529 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15530 | builtin and then its argument prototype would still apply. */ |
15531 | char $ac_func(); | |
15532 | ||
15533 | int main() { | |
afc31813 VZ |
15534 | |
15535 | /* The GNU C library defines this for functions which it implements | |
15536 | to always fail with ENOSYS. Some functions are actually named | |
15537 | something starting with __ and the normal name is an alias. */ | |
15538 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15539 | choke me | |
15540 | #else | |
698dcdb6 | 15541 | $ac_func(); |
afc31813 VZ |
15542 | #endif |
15543 | ||
698dcdb6 | 15544 | ; return 0; } |
10f2d63a | 15545 | EOF |
b1f5d087 | 15546 | if { (eval echo configure:15547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15547 | rm -rf conftest* |
15548 | eval "ac_cv_func_$ac_func=yes" | |
15549 | else | |
15550 | echo "configure: failed program was:" >&5 | |
15551 | cat conftest.$ac_ext >&5 | |
15552 | rm -rf conftest* | |
15553 | eval "ac_cv_func_$ac_func=no" | |
15554 | fi | |
15555 | rm -f conftest* | |
15556 | fi | |
afc31813 | 15557 | |
698dcdb6 VZ |
15558 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
15559 | echo "$ac_t""yes" 1>&6 | |
15560 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15561 | cat >> confdefs.h <<EOF | |
15562 | #define $ac_tr_func 1 | |
15563 | EOF | |
15564 | ||
15565 | else | |
15566 | echo "$ac_t""no" 1>&6 | |
afc31813 VZ |
15567 | fi |
15568 | done | |
15569 | ||
1e487827 | 15570 | |
698dcdb6 VZ |
15571 | if test "$ac_cv_func_localtime" = "yes"; then |
15572 | echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 | |
b1f5d087 | 15573 | echo "configure:15574: checking for tm_gmtoff in struct tm" >&5 |
698dcdb6 VZ |
15574 | if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then |
15575 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15576 | else | |
15577 | ||
15578 | cat > conftest.$ac_ext <<EOF | |
b1f5d087 | 15579 | #line 15580 "configure" |
0470b1e6 VZ |
15580 | #include "confdefs.h" |
15581 | ||
b4085ce6 | 15582 | #include <time.h> |
698dcdb6 VZ |
15583 | |
15584 | int main() { | |
0470b1e6 VZ |
15585 | |
15586 | struct tm tm; | |
15587 | tm.tm_gmtoff++; | |
698dcdb6 VZ |
15588 | |
15589 | ; return 0; } | |
15590 | EOF | |
b1f5d087 | 15591 | if { (eval echo configure:15592: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
15592 | rm -rf conftest* |
15593 | ||
f03a98d8 | 15594 | wx_cv_struct_tm_has_gmtoff=yes |
698dcdb6 | 15595 | |
0470b1e6 | 15596 | else |
698dcdb6 VZ |
15597 | echo "configure: failed program was:" >&5 |
15598 | cat conftest.$ac_ext >&5 | |
15599 | rm -rf conftest* | |
15600 | wx_cv_struct_tm_has_gmtoff=no | |
15601 | ||
0470b1e6 | 15602 | fi |
698dcdb6 VZ |
15603 | rm -f conftest* |
15604 | ||
1e487827 | 15605 | fi |
698dcdb6 VZ |
15606 | |
15607 | echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6 | |
6232543b VS |
15608 | fi |
15609 | ||
15610 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
698dcdb6 | 15611 | cat >> confdefs.h <<\EOF |
6232543b VS |
15612 | #define WX_GMTOFF_IN_TM 1 |
15613 | EOF | |
0470b1e6 | 15614 | |
3fcdd07b VZ |
15615 | fi |
15616 | ||
698dcdb6 | 15617 | for ac_func in gettimeofday ftime |
3fcdd07b | 15618 | do |
698dcdb6 | 15619 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
b1f5d087 | 15620 | echo "configure:15621: checking for $ac_func" >&5 |
698dcdb6 VZ |
15621 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15622 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15623 | else | |
15624 | cat > conftest.$ac_ext <<EOF | |
b1f5d087 | 15625 | #line 15626 "configure" |
3fcdd07b VZ |
15626 | #include "confdefs.h" |
15627 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 15628 | which can conflict with char $ac_func(); below. */ |
3fcdd07b VZ |
15629 | #include <assert.h> |
15630 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15631 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15632 | builtin and then its argument prototype would still apply. */ |
15633 | char $ac_func(); | |
15634 | ||
15635 | int main() { | |
3fcdd07b VZ |
15636 | |
15637 | /* The GNU C library defines this for functions which it implements | |
15638 | to always fail with ENOSYS. Some functions are actually named | |
15639 | something starting with __ and the normal name is an alias. */ | |
15640 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15641 | choke me | |
15642 | #else | |
698dcdb6 | 15643 | $ac_func(); |
3fcdd07b VZ |
15644 | #endif |
15645 | ||
698dcdb6 VZ |
15646 | ; return 0; } |
15647 | EOF | |
b1f5d087 | 15648 | if { (eval echo configure:15649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15649 | rm -rf conftest* |
15650 | eval "ac_cv_func_$ac_func=yes" | |
15651 | else | |
15652 | echo "configure: failed program was:" >&5 | |
15653 | cat conftest.$ac_ext >&5 | |
15654 | rm -rf conftest* | |
15655 | eval "ac_cv_func_$ac_func=no" | |
15656 | fi | |
15657 | rm -f conftest* | |
15658 | fi | |
15659 | ||
15660 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
15661 | echo "$ac_t""yes" 1>&6 | |
15662 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15663 | cat >> confdefs.h <<EOF | |
15664 | #define $ac_tr_func 1 | |
3fcdd07b VZ |
15665 | EOF |
15666 | break | |
698dcdb6 VZ |
15667 | else |
15668 | echo "$ac_t""no" 1>&6 | |
3fcdd07b VZ |
15669 | fi |
15670 | done | |
15671 | ||
afc31813 | 15672 | |
698dcdb6 VZ |
15673 | if test "$ac_cv_func_gettimeofday" = "yes"; then |
15674 | echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6 | |
b1f5d087 | 15675 | echo "configure:15676: checking whether gettimeofday takes two arguments" >&5 |
698dcdb6 VZ |
15676 | if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then |
15677 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15678 | else | |
15679 | ||
15680 | ||
15681 | ac_ext=C | |
15682 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 15683 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
15684 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
15685 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15686 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 15687 | |
698dcdb6 VZ |
15688 | |
15689 | cat > conftest.$ac_ext <<EOF | |
b1f5d087 | 15690 | #line 15691 "configure" |
10f2d63a | 15691 | #include "confdefs.h" |
afc31813 VZ |
15692 | |
15693 | #include <sys/time.h> | |
15694 | #include <unistd.h> | |
698dcdb6 VZ |
15695 | |
15696 | int main() { | |
afc31813 VZ |
15697 | |
15698 | struct timeval tv; | |
15699 | struct timezone tz; | |
15700 | gettimeofday(&tv, &tz); | |
698dcdb6 VZ |
15701 | |
15702 | ; return 0; } | |
15703 | EOF | |
b1f5d087 | 15704 | if { (eval echo configure:15705: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 15705 | rm -rf conftest* |
afc31813 | 15706 | wx_cv_func_gettimeofday_has_2_args=yes |
10f2d63a | 15707 | else |
698dcdb6 VZ |
15708 | echo "configure: failed program was:" >&5 |
15709 | cat conftest.$ac_ext >&5 | |
15710 | rm -rf conftest* | |
15711 | cat > conftest.$ac_ext <<EOF | |
b1f5d087 | 15712 | #line 15713 "configure" |
10f2d63a | 15713 | #include "confdefs.h" |
afc31813 VZ |
15714 | |
15715 | #include <sys/time.h> | |
15716 | #include <unistd.h> | |
698dcdb6 VZ |
15717 | |
15718 | int main() { | |
afc31813 VZ |
15719 | |
15720 | struct timeval tv; | |
15721 | gettimeofday(&tv); | |
698dcdb6 VZ |
15722 | |
15723 | ; return 0; } | |
15724 | EOF | |
b1f5d087 | 15725 | if { (eval echo configure:15726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 15726 | rm -rf conftest* |
afc31813 | 15727 | wx_cv_func_gettimeofday_has_2_args=no |
10f2d63a | 15728 | else |
698dcdb6 VZ |
15729 | echo "configure: failed program was:" >&5 |
15730 | cat conftest.$ac_ext >&5 | |
15731 | rm -rf conftest* | |
15732 | wx_cv_func_gettimeofday_has_2_args=unknown | |
15733 | ||
10f2d63a | 15734 | fi |
698dcdb6 VZ |
15735 | rm -f conftest* |
15736 | ||
10f2d63a | 15737 | fi |
698dcdb6 | 15738 | rm -f conftest* |
afc31813 | 15739 | ac_ext=c |
698dcdb6 | 15740 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 15741 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
15742 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
15743 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15744 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a | 15745 | |
698dcdb6 | 15746 | |
afc31813 | 15747 | fi |
698dcdb6 VZ |
15748 | |
15749 | echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6 | |
c63c7106 | 15750 | |
afc31813 | 15751 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then |
698dcdb6 | 15752 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
15753 | #define WX_GETTIMEOFDAY_NO_TZ 1 |
15754 | EOF | |
15755 | ||
15756 | fi | |
15757 | fi | |
15758 | ||
698dcdb6 | 15759 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
15760 | #define wxUSE_TIMEDATE 1 |
15761 | EOF | |
15762 | ||
15763 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
15764 | fi | |
15765 | ||
698dcdb6 | 15766 | |
b089607b VZ |
15767 | if test "$TOOLKIT" != "MSW"; then |
15768 | ||
afc31813 | 15769 | if test "$wxUSE_SOCKETS" = "yes"; then |
698dcdb6 | 15770 | echo $ac_n "checking for socket""... $ac_c" 1>&6 |
b1f5d087 | 15771 | echo "configure:15772: checking for socket" >&5 |
698dcdb6 VZ |
15772 | if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
15773 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 15774 | else |
698dcdb6 | 15775 | cat > conftest.$ac_ext <<EOF |
b1f5d087 | 15776 | #line 15777 "configure" |
c63c7106 VZ |
15777 | #include "confdefs.h" |
15778 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 15779 | which can conflict with char socket(); below. */ |
c63c7106 VZ |
15780 | #include <assert.h> |
15781 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15782 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15783 | builtin and then its argument prototype would still apply. */ |
15784 | char socket(); | |
15785 | ||
15786 | int main() { | |
c63c7106 VZ |
15787 | |
15788 | /* The GNU C library defines this for functions which it implements | |
15789 | to always fail with ENOSYS. Some functions are actually named | |
15790 | something starting with __ and the normal name is an alias. */ | |
15791 | #if defined (__stub_socket) || defined (__stub___socket) | |
15792 | choke me | |
15793 | #else | |
698dcdb6 | 15794 | socket(); |
c63c7106 VZ |
15795 | #endif |
15796 | ||
698dcdb6 VZ |
15797 | ; return 0; } |
15798 | EOF | |
b1f5d087 | 15799 | if { (eval echo configure:15800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15800 | rm -rf conftest* |
15801 | eval "ac_cv_func_socket=yes" | |
15802 | else | |
15803 | echo "configure: failed program was:" >&5 | |
15804 | cat conftest.$ac_ext >&5 | |
15805 | rm -rf conftest* | |
15806 | eval "ac_cv_func_socket=no" | |
15807 | fi | |
15808 | rm -f conftest* | |
15809 | fi | |
15810 | ||
15811 | if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
15812 | echo "$ac_t""yes" 1>&6 | |
c63c7106 VZ |
15813 | : |
15814 | else | |
698dcdb6 VZ |
15815 | echo "$ac_t""no" 1>&6 |
15816 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | |
b1f5d087 | 15817 | echo "configure:15818: checking for socket in -lsocket" >&5 |
698dcdb6 VZ |
15818 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
15819 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15820 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 15821 | else |
698dcdb6 | 15822 | ac_save_LIBS="$LIBS" |
c63c7106 | 15823 | LIBS="-lsocket $LIBS" |
698dcdb6 | 15824 | cat > conftest.$ac_ext <<EOF |
b1f5d087 | 15825 | #line 15826 "configure" |
c63c7106 VZ |
15826 | #include "confdefs.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() { | |
15833 | socket() | |
15834 | ; return 0; } | |
15835 | EOF | |
b1f5d087 | 15836 | if { (eval echo configure:15837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15837 | rm -rf conftest* |
15838 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15839 | else | |
15840 | echo "configure: failed program was:" >&5 | |
15841 | cat conftest.$ac_ext >&5 | |
15842 | rm -rf conftest* | |
15843 | eval "ac_cv_lib_$ac_lib_var=no" | |
15844 | fi | |
15845 | rm -f conftest* | |
15846 | LIBS="$ac_save_LIBS" | |
15847 | ||
15848 | fi | |
15849 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15850 | echo "$ac_t""yes" 1>&6 | |
c63c7106 | 15851 | INET_LINK="$INET_LINK -lsocket" |
c63c7106 | 15852 | else |
698dcdb6 | 15853 | echo "$ac_t""no" 1>&6 |
afc31813 | 15854 | |
698dcdb6 | 15855 | echo "configure: warning: socket library not found - sockets will be disabled" 1>&2 |
afc31813 | 15856 | wxUSE_SOCKETS=no |
698dcdb6 VZ |
15857 | |
15858 | ||
10f2d63a VZ |
15859 | fi |
15860 | ||
698dcdb6 | 15861 | |
6232543b | 15862 | fi |
b089607b | 15863 | |
1e487827 | 15864 | fi |
afc31813 | 15865 | |
51a9faba | 15866 | |
698dcdb6 VZ |
15867 | if test "$wxUSE_SOCKETS" = "yes" ; then |
15868 | echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6 | |
b1f5d087 | 15869 | echo "configure:15870: checking what is the type of the third argument of getsockname" >&5 |
698dcdb6 VZ |
15870 | if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then |
15871 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15872 | else | |
15873 | ||
15874 | ||
15875 | ac_ext=C | |
15876 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 15877 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
15878 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
15879 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15880 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 15881 | |
698dcdb6 VZ |
15882 | |
15883 | cat > conftest.$ac_ext <<EOF | |
b1f5d087 | 15884 | #line 15885 "configure" |
afc31813 | 15885 | #include "confdefs.h" |
51a9faba | 15886 | |
3ace2e6d | 15887 | #include <sys/types.h> |
51a9faba | 15888 | #include <sys/socket.h> |
698dcdb6 VZ |
15889 | |
15890 | int main() { | |
51a9faba VZ |
15891 | |
15892 | socklen_t len; | |
15893 | getsockname(0, 0, &len); | |
698dcdb6 VZ |
15894 | |
15895 | ; return 0; } | |
15896 | EOF | |
b1f5d087 | 15897 | if { (eval echo configure:15898: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 15898 | rm -rf conftest* |
51a9faba | 15899 | wx_cv_type_getsockname3=socklen_t |
afc31813 | 15900 | else |
698dcdb6 VZ |
15901 | echo "configure: failed program was:" >&5 |
15902 | cat conftest.$ac_ext >&5 | |
15903 | rm -rf conftest* | |
15904 | cat > conftest.$ac_ext <<EOF | |
b1f5d087 | 15905 | #line 15906 "configure" |
afc31813 | 15906 | #include "confdefs.h" |
51a9faba | 15907 | |
3ace2e6d | 15908 | #include <sys/types.h> |
51a9faba | 15909 | #include <sys/socket.h> |
698dcdb6 VZ |
15910 | |
15911 | int main() { | |
51a9faba VZ |
15912 | |
15913 | size_t len; | |
15914 | getsockname(0, 0, &len); | |
698dcdb6 VZ |
15915 | |
15916 | ; return 0; } | |
15917 | EOF | |
b1f5d087 | 15918 | if { (eval echo configure:15919: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 15919 | rm -rf conftest* |
51a9faba | 15920 | wx_cv_type_getsockname3=size_t |
afc31813 | 15921 | else |
698dcdb6 VZ |
15922 | echo "configure: failed program was:" >&5 |
15923 | cat conftest.$ac_ext >&5 | |
15924 | rm -rf conftest* | |
15925 | cat > conftest.$ac_ext <<EOF | |
b1f5d087 | 15926 | #line 15927 "configure" |
afc31813 | 15927 | #include "confdefs.h" |
51a9faba | 15928 | |
3ace2e6d | 15929 | #include <sys/types.h> |
51a9faba | 15930 | #include <sys/socket.h> |
698dcdb6 VZ |
15931 | |
15932 | int main() { | |
51a9faba VZ |
15933 | |
15934 | int len; | |
15935 | getsockname(0, 0, &len); | |
698dcdb6 VZ |
15936 | |
15937 | ; return 0; } | |
15938 | EOF | |
b1f5d087 | 15939 | if { (eval echo configure:15940: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 15940 | rm -rf conftest* |
51a9faba | 15941 | wx_cv_type_getsockname3=int |
afc31813 | 15942 | else |
698dcdb6 VZ |
15943 | echo "configure: failed program was:" >&5 |
15944 | cat conftest.$ac_ext >&5 | |
15945 | rm -rf conftest* | |
15946 | wx_cv_type_getsockname3=unknown | |
15947 | ||
afc31813 | 15948 | fi |
698dcdb6 VZ |
15949 | rm -f conftest* |
15950 | ||
afc31813 | 15951 | fi |
698dcdb6 VZ |
15952 | rm -f conftest* |
15953 | ||
afc31813 | 15954 | fi |
698dcdb6 | 15955 | rm -f conftest* |
51a9faba VZ |
15956 | |
15957 | ac_ext=c | |
698dcdb6 | 15958 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
afc31813 | 15959 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
15960 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
15961 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15962 | cross_compiling=$ac_cv_prog_cc_cross | |
afc31813 | 15963 | |
698dcdb6 | 15964 | |
51a9faba | 15965 | fi |
698dcdb6 VZ |
15966 | |
15967 | echo "$ac_t""$wx_cv_type_getsockname3" 1>&6 | |
51a9faba VZ |
15968 | |
15969 | if test "$wx_cv_type_getsockname3" = "unknown"; then | |
15970 | wxUSE_SOCKETS=no | |
698dcdb6 | 15971 | echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2 |
51a9faba | 15972 | else |
698dcdb6 | 15973 | cat >> confdefs.h <<EOF |
51a9faba VZ |
15974 | #define SOCKLEN_T $wx_cv_type_getsockname3 |
15975 | EOF | |
15976 | ||
15977 | fi | |
15978 | fi | |
afc31813 | 15979 | |
c521c494 RL |
15980 | fi |
15981 | ||
51a9faba | 15982 | if test "$wxUSE_SOCKETS" = "yes" ; then |
698dcdb6 | 15983 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
15984 | #define wxUSE_SOCKETS 1 |
15985 | EOF | |
15986 | ||
70f7a477 | 15987 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" |
afc31813 VZ |
15988 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol" |
15989 | fi | |
15990 | ||
698dcdb6 | 15991 | |
dc3d889d VZ |
15992 | if test "$wxUSE_GUI" = "yes"; then |
15993 | ||
b089607b VZ |
15994 | if test "$TOOLKIT" != "MSW"; then |
15995 | ||
ceded8b9 | 15996 | if test "$wxUSE_JOYSTICK" = "yes"; then |
698dcdb6 | 15997 | for ac_hdr in linux/joystick.h |
10f2d63a | 15998 | do |
698dcdb6 VZ |
15999 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
16000 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
b1f5d087 | 16001 | echo "configure:16002: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
16002 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
16003 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16004 | else | |
16005 | cat > conftest.$ac_ext <<EOF | |
b1f5d087 | 16006 | #line 16007 "configure" |
10f2d63a | 16007 | #include "confdefs.h" |
698dcdb6 VZ |
16008 | #include <$ac_hdr> |
16009 | EOF | |
16010 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b1f5d087 | 16011 | { (eval echo configure:16012: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
16012 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
16013 | if test -z "$ac_err"; then | |
16014 | rm -rf conftest* | |
16015 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 16016 | else |
698dcdb6 VZ |
16017 | echo "$ac_err" >&5 |
16018 | echo "configure: failed program was:" >&5 | |
10f2d63a | 16019 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
16020 | rm -rf conftest* |
16021 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 16022 | fi |
698dcdb6 | 16023 | rm -f conftest* |
10f2d63a | 16024 | fi |
698dcdb6 VZ |
16025 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
16026 | echo "$ac_t""yes" 1>&6 | |
16027 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
16028 | cat >> confdefs.h <<EOF | |
16029 | #define $ac_tr_hdr 1 | |
10f2d63a | 16030 | EOF |
698dcdb6 VZ |
16031 | |
16032 | else | |
16033 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
16034 | fi |
16035 | done | |
16036 | ||
b089607b | 16037 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then |
ceded8b9 | 16038 | wxUSE_JOYSTICK=no |
698dcdb6 | 16039 | echo "configure: warning: Joystick not supported by this system" 1>&2 |
b089607b VZ |
16040 | fi |
16041 | fi | |
16042 | ||
16043 | fi | |
16044 | ||
ceded8b9 | 16045 | if test "$wxUSE_JOYSTICK" = "yes"; then |
698dcdb6 | 16046 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16047 | #define wxUSE_JOYSTICK 1 |
16048 | EOF | |
16049 | ||
16050 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" | |
10f2d63a VZ |
16051 | fi |
16052 | ||
dc3d889d VZ |
16053 | fi |
16054 | ||
698dcdb6 | 16055 | |
b089607b VZ |
16056 | if test "$TOOLKIT" != "MSW"; then |
16057 | ||
10f2d63a VZ |
16058 | HAVE_DL_FUNCS=0 |
16059 | HAVE_SHL_FUNCS=0 | |
16060 | if test "$wxUSE_DYNLIB_CLASS" = "yes"; then | |
b4085ce6 GD |
16061 | if test "$USE_MAC" = 1; then |
16062 | HAVE_DL_FUNCS=1 | |
16063 | else | |
698dcdb6 | 16064 | for ac_func in dlopen |
10f2d63a | 16065 | do |
698dcdb6 | 16066 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
b1f5d087 | 16067 | echo "configure:16068: checking for $ac_func" >&5 |
698dcdb6 VZ |
16068 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16069 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16070 | else | |
16071 | cat > conftest.$ac_ext <<EOF | |
b1f5d087 | 16072 | #line 16073 "configure" |
10f2d63a VZ |
16073 | #include "confdefs.h" |
16074 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16075 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
16076 | #include <assert.h> |
16077 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16078 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16079 | builtin and then its argument prototype would still apply. */ |
16080 | char $ac_func(); | |
16081 | ||
16082 | int main() { | |
10f2d63a VZ |
16083 | |
16084 | /* The GNU C library defines this for functions which it implements | |
16085 | to always fail with ENOSYS. Some functions are actually named | |
16086 | something starting with __ and the normal name is an alias. */ | |
16087 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16088 | choke me | |
16089 | #else | |
698dcdb6 | 16090 | $ac_func(); |
10f2d63a VZ |
16091 | #endif |
16092 | ||
698dcdb6 VZ |
16093 | ; return 0; } |
16094 | EOF | |
b1f5d087 | 16095 | if { (eval echo configure:16096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16096 | rm -rf conftest* |
16097 | eval "ac_cv_func_$ac_func=yes" | |
16098 | else | |
16099 | echo "configure: failed program was:" >&5 | |
16100 | cat conftest.$ac_ext >&5 | |
16101 | rm -rf conftest* | |
16102 | eval "ac_cv_func_$ac_func=no" | |
16103 | fi | |
16104 | rm -f conftest* | |
16105 | fi | |
16106 | ||
16107 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16108 | echo "$ac_t""yes" 1>&6 | |
16109 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16110 | cat >> confdefs.h <<EOF | |
16111 | #define $ac_tr_func 1 | |
16112 | EOF | |
16113 | ||
16114 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
16115 | #define HAVE_DLOPEN 1 |
16116 | EOF | |
16117 | ||
16118 | HAVE_DL_FUNCS=1 | |
698dcdb6 | 16119 | |
10f2d63a | 16120 | else |
698dcdb6 VZ |
16121 | echo "$ac_t""no" 1>&6 |
16122 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
b1f5d087 | 16123 | echo "configure:16124: checking for dlopen in -ldl" >&5 |
698dcdb6 VZ |
16124 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
16125 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16126 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 16127 | else |
698dcdb6 | 16128 | ac_save_LIBS="$LIBS" |
10f2d63a | 16129 | LIBS="-ldl $LIBS" |
698dcdb6 | 16130 | cat > conftest.$ac_ext <<EOF |
b1f5d087 | 16131 | #line 16132 "configure" |
10f2d63a VZ |
16132 | #include "confdefs.h" |
16133 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16134 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16135 | builtin and then its argument prototype would still apply. */ |
16136 | char dlopen(); | |
16137 | ||
16138 | int main() { | |
16139 | dlopen() | |
16140 | ; return 0; } | |
16141 | EOF | |
b1f5d087 | 16142 | if { (eval echo configure:16143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16143 | rm -rf conftest* |
16144 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16145 | else | |
16146 | echo "configure: failed program was:" >&5 | |
16147 | cat conftest.$ac_ext >&5 | |
16148 | rm -rf conftest* | |
16149 | eval "ac_cv_lib_$ac_lib_var=no" | |
16150 | fi | |
16151 | rm -f conftest* | |
16152 | LIBS="$ac_save_LIBS" | |
16153 | ||
16154 | fi | |
16155 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16156 | echo "$ac_t""yes" 1>&6 | |
16157 | ||
16158 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
16159 | #define HAVE_DLOPEN 1 |
16160 | EOF | |
16161 | ||
16162 | HAVE_DL_FUNCS=1 | |
16163 | LIBS="$LIBS -ldl" | |
698dcdb6 | 16164 | |
10f2d63a | 16165 | else |
698dcdb6 | 16166 | echo "$ac_t""no" 1>&6 |
10f2d63a | 16167 | |
698dcdb6 | 16168 | for ac_func in shl_load |
10f2d63a | 16169 | do |
698dcdb6 | 16170 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
b1f5d087 | 16171 | echo "configure:16172: checking for $ac_func" >&5 |
698dcdb6 VZ |
16172 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16173 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16174 | else | |
16175 | cat > conftest.$ac_ext <<EOF | |
b1f5d087 | 16176 | #line 16177 "configure" |
10f2d63a VZ |
16177 | #include "confdefs.h" |
16178 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16179 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
16180 | #include <assert.h> |
16181 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16182 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16183 | builtin and then its argument prototype would still apply. */ |
16184 | char $ac_func(); | |
16185 | ||
16186 | int main() { | |
10f2d63a VZ |
16187 | |
16188 | /* The GNU C library defines this for functions which it implements | |
16189 | to always fail with ENOSYS. Some functions are actually named | |
16190 | something starting with __ and the normal name is an alias. */ | |
16191 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16192 | choke me | |
16193 | #else | |
698dcdb6 | 16194 | $ac_func(); |
10f2d63a VZ |
16195 | #endif |
16196 | ||
698dcdb6 VZ |
16197 | ; return 0; } |
16198 | EOF | |
b1f5d087 | 16199 | if { (eval echo configure:16200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16200 | rm -rf conftest* |
16201 | eval "ac_cv_func_$ac_func=yes" | |
16202 | else | |
16203 | echo "configure: failed program was:" >&5 | |
16204 | cat conftest.$ac_ext >&5 | |
16205 | rm -rf conftest* | |
16206 | eval "ac_cv_func_$ac_func=no" | |
16207 | fi | |
16208 | rm -f conftest* | |
16209 | fi | |
16210 | ||
16211 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16212 | echo "$ac_t""yes" 1>&6 | |
16213 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16214 | cat >> confdefs.h <<EOF | |
16215 | #define $ac_tr_func 1 | |
16216 | EOF | |
16217 | ||
16218 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
16219 | #define HAVE_SHL_LOAD 1 |
16220 | EOF | |
16221 | ||
16222 | HAVE_SHL_FUNCS=1 | |
698dcdb6 | 16223 | |
10f2d63a | 16224 | else |
698dcdb6 VZ |
16225 | echo "$ac_t""no" 1>&6 |
16226 | echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6 | |
b1f5d087 | 16227 | echo "configure:16228: checking for dld in -lshl_load" >&5 |
698dcdb6 VZ |
16228 | ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'` |
16229 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16230 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 16231 | else |
698dcdb6 | 16232 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 16233 | LIBS="-lshl_load $LIBS" |
698dcdb6 | 16234 | cat > conftest.$ac_ext <<EOF |
b1f5d087 | 16235 | #line 16236 "configure" |
f6bcfd97 BP |
16236 | #include "confdefs.h" |
16237 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16238 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16239 | builtin and then its argument prototype would still apply. */ |
16240 | char dld(); | |
16241 | ||
16242 | int main() { | |
16243 | dld() | |
16244 | ; return 0; } | |
16245 | EOF | |
b1f5d087 | 16246 | if { (eval echo configure:16247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16247 | rm -rf conftest* |
16248 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16249 | else | |
16250 | echo "configure: failed program was:" >&5 | |
16251 | cat conftest.$ac_ext >&5 | |
16252 | rm -rf conftest* | |
16253 | eval "ac_cv_lib_$ac_lib_var=no" | |
16254 | fi | |
16255 | rm -f conftest* | |
16256 | LIBS="$ac_save_LIBS" | |
f6bcfd97 | 16257 | |
698dcdb6 VZ |
16258 | fi |
16259 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16260 | echo "$ac_t""yes" 1>&6 | |
16261 | ||
f6bcfd97 BP |
16262 | HAVE_SHL_FUNCS=1 |
16263 | LIBS="$LIBS -ldld" | |
698dcdb6 VZ |
16264 | |
16265 | else | |
16266 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
16267 | fi |
16268 | ||
698dcdb6 | 16269 | |
10f2d63a VZ |
16270 | fi |
16271 | done | |
16272 | ||
698dcdb6 | 16273 | |
10f2d63a VZ |
16274 | fi |
16275 | ||
698dcdb6 | 16276 | |
10f2d63a VZ |
16277 | fi |
16278 | done | |
16279 | ||
1e487827 | 16280 | |
698dcdb6 VZ |
16281 | if test "$HAVE_DL_FUNCS" = 1; then |
16282 | for ac_func in dlerror | |
f6bcfd97 | 16283 | do |
698dcdb6 | 16284 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
b1f5d087 | 16285 | echo "configure:16286: checking for $ac_func" >&5 |
698dcdb6 VZ |
16286 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16287 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16288 | else | |
16289 | cat > conftest.$ac_ext <<EOF | |
b1f5d087 | 16290 | #line 16291 "configure" |
f6bcfd97 BP |
16291 | #include "confdefs.h" |
16292 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16293 | which can conflict with char $ac_func(); below. */ |
f6bcfd97 BP |
16294 | #include <assert.h> |
16295 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16296 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16297 | builtin and then its argument prototype would still apply. */ |
16298 | char $ac_func(); | |
16299 | ||
16300 | int main() { | |
f6bcfd97 BP |
16301 | |
16302 | /* The GNU C library defines this for functions which it implements | |
16303 | to always fail with ENOSYS. Some functions are actually named | |
16304 | something starting with __ and the normal name is an alias. */ | |
16305 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16306 | choke me | |
16307 | #else | |
698dcdb6 | 16308 | $ac_func(); |
f6bcfd97 BP |
16309 | #endif |
16310 | ||
698dcdb6 VZ |
16311 | ; return 0; } |
16312 | EOF | |
b1f5d087 | 16313 | if { (eval echo configure:16314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16314 | rm -rf conftest* |
16315 | eval "ac_cv_func_$ac_func=yes" | |
16316 | else | |
16317 | echo "configure: failed program was:" >&5 | |
16318 | cat conftest.$ac_ext >&5 | |
16319 | rm -rf conftest* | |
16320 | eval "ac_cv_func_$ac_func=no" | |
16321 | fi | |
16322 | rm -f conftest* | |
16323 | fi | |
16324 | ||
16325 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16326 | echo "$ac_t""yes" 1>&6 | |
16327 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16328 | cat >> confdefs.h <<EOF | |
16329 | #define $ac_tr_func 1 | |
16330 | EOF | |
16331 | cat >> confdefs.h <<\EOF | |
f6bcfd97 BP |
16332 | #define HAVE_DLERROR 1 |
16333 | EOF | |
16334 | ||
16335 | else | |
698dcdb6 VZ |
16336 | echo "$ac_t""no" 1>&6 |
16337 | echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6 | |
b1f5d087 | 16338 | echo "configure:16339: checking for dlerror in -ldl" >&5 |
698dcdb6 VZ |
16339 | ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'` |
16340 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16341 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 16342 | else |
698dcdb6 | 16343 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 16344 | LIBS="-ldl $LIBS" |
698dcdb6 | 16345 | cat > conftest.$ac_ext <<EOF |
b1f5d087 | 16346 | #line 16347 "configure" |
f6bcfd97 BP |
16347 | #include "confdefs.h" |
16348 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16349 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16350 | builtin and then its argument prototype would still apply. */ |
16351 | char dlerror(); | |
16352 | ||
16353 | int main() { | |
16354 | dlerror() | |
16355 | ; return 0; } | |
16356 | EOF | |
b1f5d087 | 16357 | if { (eval echo configure:16358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16358 | rm -rf conftest* |
16359 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16360 | else | |
16361 | echo "configure: failed program was:" >&5 | |
16362 | cat conftest.$ac_ext >&5 | |
16363 | rm -rf conftest* | |
16364 | eval "ac_cv_lib_$ac_lib_var=no" | |
16365 | fi | |
16366 | rm -f conftest* | |
16367 | LIBS="$ac_save_LIBS" | |
16368 | ||
16369 | fi | |
16370 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16371 | echo "$ac_t""yes" 1>&6 | |
16372 | cat >> confdefs.h <<\EOF | |
f6bcfd97 BP |
16373 | #define HAVE_DLERROR 1 |
16374 | EOF | |
16375 | ||
698dcdb6 VZ |
16376 | else |
16377 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
16378 | fi |
16379 | ||
16380 | fi | |
16381 | done | |
16382 | ||
16383 | fi | |
b4085ce6 | 16384 | fi |
f6bcfd97 | 16385 | |
10f2d63a VZ |
16386 | if test "$HAVE_DL_FUNCS" = 0; then |
16387 | if test "$HAVE_SHL_FUNCS" = 0; then | |
16388 | if test "$USE_UNIX" = 1; then | |
698dcdb6 | 16389 | echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2 |
10f2d63a VZ |
16390 | wxUSE_DYNLIB_CLASS=no |
16391 | else | |
698dcdb6 | 16392 | echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2 |
10f2d63a VZ |
16393 | fi |
16394 | fi | |
16395 | fi | |
16396 | fi | |
16397 | ||
b089607b VZ |
16398 | fi |
16399 | ||
10f2d63a | 16400 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then |
698dcdb6 | 16401 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16402 | #define wxUSE_DYNLIB_CLASS 1 |
16403 | EOF | |
16404 | ||
b12915c1 VZ |
16405 | else |
16406 | wxUSE_ODBC=no | |
16407 | wxUSE_SERIAL=no | |
10f2d63a VZ |
16408 | fi |
16409 | ||
698dcdb6 | 16410 | |
1e6feb95 VZ |
16411 | if test "$wxUSE_FONTMAP" = "yes" ; then |
16412 | cat >> confdefs.h <<\EOF | |
16413 | #define wxUSE_FONTMAP 1 | |
16414 | EOF | |
16415 | ||
16416 | fi | |
16417 | ||
10f2d63a | 16418 | if test "$wxUSE_UNICODE" = "yes" ; then |
698dcdb6 | 16419 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16420 | #define wxUSE_UNICODE 1 |
16421 | EOF | |
16422 | ||
16423 | fi | |
16424 | ||
16425 | if test "$wxUSE_WCSRTOMBS" = "yes" ; then | |
698dcdb6 | 16426 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16427 | #define wxUSE_WCSRTOMBS 1 |
16428 | EOF | |
16429 | ||
16430 | fi | |
16431 | ||
16432 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then | |
698dcdb6 | 16433 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16434 | #define wxUSE_EXPERIMENTAL_PRINTF 1 |
16435 | EOF | |
16436 | ||
16437 | fi | |
16438 | ||
698dcdb6 | 16439 | |
b12915c1 | 16440 | if test "$wxUSE_SERIAL" = "yes" ; then |
698dcdb6 | 16441 | cat >> confdefs.h <<\EOF |
b12915c1 VZ |
16442 | #define wxUSE_SERIAL 1 |
16443 | EOF | |
16444 | ||
16445 | fi | |
16446 | ||
698dcdb6 | 16447 | |
10f2d63a VZ |
16448 | IODBC_C_SRC="" |
16449 | if test "$wxUSE_ODBC" = "yes" ; then | |
698dcdb6 | 16450 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16451 | #define wxUSE_ODBC 1 |
16452 | EOF | |
16453 | ||
16454 | WXODBCFLAG="-D_IODBC_" | |
16455 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
10f2d63a VZ |
16456 | fi |
16457 | ||
698dcdb6 | 16458 | |
10f2d63a | 16459 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then |
698dcdb6 | 16460 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16461 | #define wxUSE_POSTSCRIPT 1 |
16462 | EOF | |
16463 | ||
16464 | fi | |
16465 | ||
698dcdb6 | 16466 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16467 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 |
16468 | EOF | |
16469 | ||
698dcdb6 VZ |
16470 | |
16471 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
16472 | #define wxUSE_NORMALIZED_PS_FONTS 1 |
16473 | EOF | |
16474 | ||
698dcdb6 VZ |
16475 | |
16476 | ||
10f2d63a | 16477 | if test "$wxUSE_CONSTRAINTS" = "yes"; then |
698dcdb6 | 16478 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16479 | #define wxUSE_CONSTRAINTS 1 |
16480 | EOF | |
16481 | ||
16482 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
16483 | fi | |
16484 | ||
16485 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
698dcdb6 | 16486 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16487 | #define wxUSE_MDI_ARCHITECTURE 1 |
16488 | EOF | |
16489 | ||
16490 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" | |
16491 | fi | |
16492 | ||
16493 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
698dcdb6 | 16494 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16495 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 |
16496 | EOF | |
16497 | ||
16498 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
16499 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
16500 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
16501 | fi | |
16502 | fi | |
16503 | ||
16504 | if test "$wxUSE_HELP" = "yes"; then | |
698dcdb6 | 16505 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16506 | #define wxUSE_HELP 1 |
16507 | EOF | |
16508 | ||
16509 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
16510 | fi | |
16511 | ||
16512 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
16513 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
698dcdb6 | 16514 | echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2 |
10f2d63a | 16515 | else |
698dcdb6 | 16516 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16517 | #define wxUSE_PRINTING_ARCHITECTURE 1 |
16518 | EOF | |
16519 | ||
16520 | fi | |
16521 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
16522 | fi | |
16523 | ||
16524 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
698dcdb6 | 16525 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16526 | #define wxUSE_PROLOGIO 1 |
16527 | EOF | |
16528 | ||
16529 | fi | |
16530 | ||
16531 | if test "$wxUSE_RESOURCES" = "yes" ; then | |
16532 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
698dcdb6 | 16533 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16534 | #define wxUSE_RESOURCES 1 |
16535 | EOF | |
16536 | ||
16537 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource" | |
16538 | else | |
698dcdb6 | 16539 | echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2 |
10f2d63a VZ |
16540 | fi |
16541 | fi | |
16542 | ||
16543 | if test "$wxUSE_X_RESOURCES" = "yes"; then | |
698dcdb6 | 16544 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16545 | #define wxUSE_X_RESOURCES 1 |
16546 | EOF | |
16547 | ||
16548 | fi | |
16549 | ||
698dcdb6 | 16550 | |
10f2d63a | 16551 | if test "$wxUSE_IPC" = "yes"; then |
eb4efbdc | 16552 | if test "$wxUSE_SOCKETS" != "yes"; then |
698dcdb6 | 16553 | echo "configure: warning: wxWindows IPC classes require sockets" 1>&2 |
eb4efbdc VZ |
16554 | fi |
16555 | ||
698dcdb6 | 16556 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16557 | #define wxUSE_IPC 1 |
16558 | EOF | |
16559 | ||
16560 | fi | |
16561 | ||
16562 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
698dcdb6 | 16563 | cat >> confdefs.h <<\EOF |
10f2d63a | 16564 | #define wxUSE_CLIPBOARD 1 |
1e6feb95 VZ |
16565 | EOF |
16566 | ||
16567 | cat >> confdefs.h <<\EOF | |
16568 | #define wxUSE_DATAOBJ 1 | |
10f2d63a VZ |
16569 | EOF |
16570 | ||
16571 | fi | |
16572 | ||
16573 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
16574 | if test "$wxUSE_GTK" = 1; then | |
16575 | if test "$WXGTK12" != 1; then | |
698dcdb6 | 16576 | echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2 |
10f2d63a VZ |
16577 | wxUSE_DRAG_AND_DROP=no |
16578 | fi | |
16579 | fi | |
16580 | ||
16581 | if test "$wxUSE_MOTIF" = 1; then | |
698dcdb6 | 16582 | echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2 |
10f2d63a VZ |
16583 | wxUSE_DRAG_AND_DROP=no |
16584 | fi | |
16585 | ||
2c6025bc | 16586 | if test "$wxUSE_MAC" = 1; then |
698dcdb6 | 16587 | echo "configure: warning: Drag and drop is not yet supported under Mac OS X" 1>&2 |
2c6025bc GD |
16588 | wxUSE_DRAG_AND_DROP=no |
16589 | fi | |
16590 | ||
10f2d63a | 16591 | if test "$USE_WIN32" = 1; then |
698dcdb6 VZ |
16592 | |
16593 | for ac_hdr in ole2.h | |
10f2d63a | 16594 | do |
698dcdb6 VZ |
16595 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
16596 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
b1f5d087 | 16597 | echo "configure:16598: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
16598 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
16599 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16600 | else | |
16601 | cat > conftest.$ac_ext <<EOF | |
b1f5d087 | 16602 | #line 16603 "configure" |
10f2d63a | 16603 | #include "confdefs.h" |
698dcdb6 VZ |
16604 | #include <$ac_hdr> |
16605 | EOF | |
16606 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b1f5d087 | 16607 | { (eval echo configure:16608: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
16608 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
16609 | if test -z "$ac_err"; then | |
16610 | rm -rf conftest* | |
16611 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 16612 | else |
698dcdb6 VZ |
16613 | echo "$ac_err" >&5 |
16614 | echo "configure: failed program was:" >&5 | |
10f2d63a | 16615 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
16616 | rm -rf conftest* |
16617 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 16618 | fi |
698dcdb6 | 16619 | rm -f conftest* |
10f2d63a | 16620 | fi |
698dcdb6 VZ |
16621 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
16622 | echo "$ac_t""yes" 1>&6 | |
16623 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
16624 | cat >> confdefs.h <<EOF | |
16625 | #define $ac_tr_hdr 1 | |
10f2d63a | 16626 | EOF |
698dcdb6 VZ |
16627 | |
16628 | else | |
16629 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
16630 | fi |
16631 | done | |
16632 | ||
698dcdb6 | 16633 | |
57fe5ed0 | 16634 | if test "$ac_cv_header_ole2_h" = "yes" ; then |
c521c494 | 16635 | if test "$GCC" = yes ; then |
b64f0a5f RL |
16636 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" |
16637 | ALL_DEPFILES="$ALL_DEPFILES \$(OLEDEPS)" | |
c521c494 | 16638 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" |
b64f0a5f RL |
16639 | LIBS="$LIBS -lole32 -luuid" |
16640 | ||
16641 | if test "$wxUSE_METAFILE" = "yes"; then | |
698dcdb6 | 16642 | cat >> confdefs.h <<\EOF |
b64f0a5f RL |
16643 | #define wxUSE_METAFILE 1 |
16644 | EOF | |
16645 | ||
698dcdb6 | 16646 | cat >> confdefs.h <<\EOF |
b64f0a5f RL |
16647 | #define wxUSE_ENH_METAFILE 1 |
16648 | EOF | |
16649 | ||
16650 | fi | |
c521c494 RL |
16651 | fi |
16652 | else | |
698dcdb6 | 16653 | echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2 |
10f2d63a VZ |
16654 | wxUSE_DRAG_AND_DROP=no |
16655 | fi | |
16656 | fi | |
16657 | ||
16658 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
698dcdb6 | 16659 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16660 | #define wxUSE_DRAG_AND_DROP 1 |
16661 | EOF | |
16662 | ||
16663 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
16664 | fi | |
16665 | ||
16666 | fi | |
16667 | ||
16668 | if test "$wxUSE_SPLINES" = "yes" ; then | |
698dcdb6 | 16669 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16670 | #define wxUSE_SPLINES 1 |
16671 | EOF | |
16672 | ||
16673 | fi | |
16674 | ||
698dcdb6 | 16675 | |
1e6feb95 VZ |
16676 | USES_CONTROLS=0 |
16677 | if test "$wxUSE_CONTROLS" = "yes"; then | |
16678 | USES_CONTROLS=1 | |
16679 | fi | |
16680 | ||
10f2d63a | 16681 | if test "$wxUSE_ACCEL" = "yes"; then |
698dcdb6 | 16682 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16683 | #define wxUSE_ACCEL 1 |
16684 | EOF | |
16685 | ||
1e6feb95 VZ |
16686 | USES_CONTROLS=1 |
16687 | fi | |
16688 | ||
16689 | if test "$wxUSE_BUTTON" = "yes"; then | |
16690 | cat >> confdefs.h <<\EOF | |
16691 | #define wxUSE_BUTTON 1 | |
16692 | EOF | |
16693 | ||
16694 | USES_CONTROLS=1 | |
16695 | fi | |
16696 | ||
16697 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
16698 | cat >> confdefs.h <<\EOF | |
16699 | #define wxUSE_BMPBUTTON 1 | |
16700 | EOF | |
16701 | ||
16702 | USES_CONTROLS=1 | |
16703 | fi | |
16704 | ||
16705 | if test "$wxUSE_CALCTRL" = "yes"; then | |
16706 | cat >> confdefs.h <<\EOF | |
16707 | #define wxUSE_CALENDARCTRL 1 | |
16708 | EOF | |
16709 | ||
16710 | USES_CONTROLS=1 | |
16711 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
10f2d63a VZ |
16712 | fi |
16713 | ||
16714 | if test "$wxUSE_CARET" = "yes"; then | |
698dcdb6 | 16715 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16716 | #define wxUSE_CARET 1 |
16717 | EOF | |
16718 | ||
1e6feb95 | 16719 | USES_CONTROLS=1 |
10f2d63a VZ |
16720 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" |
16721 | fi | |
16722 | ||
16723 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
698dcdb6 | 16724 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16725 | #define wxUSE_COMBOBOX 1 |
16726 | EOF | |
16727 | ||
1e6feb95 | 16728 | USES_CONTROLS=1 |
10f2d63a VZ |
16729 | fi |
16730 | ||
16731 | if test "$wxUSE_CHOICE" = "yes"; then | |
698dcdb6 | 16732 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16733 | #define wxUSE_CHOICE 1 |
16734 | EOF | |
16735 | ||
1e6feb95 | 16736 | USES_CONTROLS=1 |
10f2d63a VZ |
16737 | fi |
16738 | ||
16739 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
698dcdb6 | 16740 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16741 | #define wxUSE_CHECKBOX 1 |
16742 | EOF | |
16743 | ||
1e6feb95 | 16744 | USES_CONTROLS=1 |
10f2d63a VZ |
16745 | fi |
16746 | ||
16747 | if test "$wxUSE_CHECKLST" = "yes"; then | |
698dcdb6 | 16748 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16749 | #define wxUSE_CHECKLISTBOX 1 |
16750 | EOF | |
16751 | ||
1e6feb95 | 16752 | USES_CONTROLS=1 |
10f2d63a VZ |
16753 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" |
16754 | fi | |
16755 | ||
16756 | if test "$wxUSE_GAUGE" = "yes"; then | |
698dcdb6 | 16757 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16758 | #define wxUSE_GAUGE 1 |
16759 | EOF | |
16760 | ||
1e6feb95 | 16761 | USES_CONTROLS=1 |
10f2d63a VZ |
16762 | fi |
16763 | ||
d6a55c4b VZ |
16764 | if test "$wxUSE_NEW_GRID" = "yes"; then |
16765 | wxUSE_GRID="yes" | |
698dcdb6 | 16766 | cat >> confdefs.h <<\EOF |
d6a55c4b | 16767 | #define wxUSE_NEW_GRID 1 |
10f2d63a VZ |
16768 | EOF |
16769 | ||
1e6feb95 | 16770 | USES_CONTROLS=1 |
d6a55c4b | 16771 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid" |
10f2d63a VZ |
16772 | fi |
16773 | ||
d6a55c4b | 16774 | if test "$wxUSE_GRID" = "yes"; then |
698dcdb6 | 16775 | cat >> confdefs.h <<\EOF |
d6a55c4b | 16776 | #define wxUSE_GRID 1 |
10f2d63a VZ |
16777 | EOF |
16778 | ||
1e6feb95 | 16779 | USES_CONTROLS=1 |
d6a55c4b | 16780 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" |
10f2d63a VZ |
16781 | fi |
16782 | ||
16783 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 16784 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16785 | #define wxUSE_IMAGLIST 1 |
16786 | EOF | |
16787 | ||
16788 | fi | |
16789 | ||
16790 | if test "$wxUSE_LISTBOX" = "yes"; then | |
698dcdb6 | 16791 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16792 | #define wxUSE_LISTBOX 1 |
16793 | EOF | |
16794 | ||
1e6feb95 | 16795 | USES_CONTROLS=1 |
10f2d63a VZ |
16796 | fi |
16797 | ||
16798 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
16799 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 16800 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16801 | #define wxUSE_LISTCTRL 1 |
16802 | EOF | |
16803 | ||
1e6feb95 | 16804 | USES_CONTROLS=1 |
10f2d63a VZ |
16805 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" |
16806 | else | |
698dcdb6 | 16807 | echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
16808 | fi |
16809 | fi | |
16810 | ||
16811 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
698dcdb6 | 16812 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16813 | #define wxUSE_NOTEBOOK 1 |
16814 | EOF | |
16815 | ||
1e6feb95 | 16816 | USES_CONTROLS=1 |
10f2d63a VZ |
16817 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" |
16818 | fi | |
16819 | ||
16820 | if test "$wxUSE_RADIOBOX" = "yes"; then | |
698dcdb6 | 16821 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16822 | #define wxUSE_RADIOBOX 1 |
16823 | EOF | |
16824 | ||
1e6feb95 | 16825 | USES_CONTROLS=1 |
10f2d63a VZ |
16826 | fi |
16827 | ||
16828 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
698dcdb6 | 16829 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16830 | #define wxUSE_RADIOBTN 1 |
16831 | EOF | |
16832 | ||
1e6feb95 | 16833 | USES_CONTROLS=1 |
10f2d63a VZ |
16834 | fi |
16835 | ||
16836 | if test "$wxUSE_SASH" = "yes"; then | |
698dcdb6 | 16837 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16838 | #define wxUSE_SASH 1 |
16839 | EOF | |
16840 | ||
16841 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
16842 | fi | |
16843 | ||
16844 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
698dcdb6 | 16845 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16846 | #define wxUSE_SCROLLBAR 1 |
16847 | EOF | |
16848 | ||
1e6feb95 | 16849 | USES_CONTROLS=1 |
741a9306 | 16850 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
16851 | fi |
16852 | ||
16853 | if test "$wxUSE_SLIDER" = "yes"; then | |
698dcdb6 | 16854 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16855 | #define wxUSE_SLIDER 1 |
16856 | EOF | |
16857 | ||
1e6feb95 | 16858 | USES_CONTROLS=1 |
10f2d63a VZ |
16859 | fi |
16860 | ||
16861 | if test "$wxUSE_SPINBTN" = "yes"; then | |
698dcdb6 | 16862 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16863 | #define wxUSE_SPINBTN 1 |
16864 | EOF | |
16865 | ||
1e6feb95 | 16866 | USES_CONTROLS=1 |
10f2d63a VZ |
16867 | fi |
16868 | ||
56cfaa52 | 16869 | if test "$wxUSE_SPINCTRL" = "yes"; then |
698dcdb6 | 16870 | cat >> confdefs.h <<\EOF |
56cfaa52 RR |
16871 | #define wxUSE_SPINCTRL 1 |
16872 | EOF | |
16873 | ||
1e6feb95 | 16874 | USES_CONTROLS=1 |
56cfaa52 RR |
16875 | fi |
16876 | ||
10f2d63a | 16877 | if test "$wxUSE_SPLITTER" = "yes"; then |
698dcdb6 | 16878 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16879 | #define wxUSE_SPLITTER 1 |
16880 | EOF | |
16881 | ||
16882 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
16883 | fi | |
16884 | ||
16885 | if test "$wxUSE_STATBMP" = "yes"; then | |
698dcdb6 | 16886 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16887 | #define wxUSE_STATBMP 1 |
16888 | EOF | |
16889 | ||
1e6feb95 | 16890 | USES_CONTROLS=1 |
10f2d63a VZ |
16891 | fi |
16892 | ||
16893 | if test "$wxUSE_STATBOX" = "yes"; then | |
698dcdb6 | 16894 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16895 | #define wxUSE_STATBOX 1 |
16896 | EOF | |
16897 | ||
1e6feb95 VZ |
16898 | USES_CONTROLS=1 |
16899 | fi | |
16900 | ||
16901 | if test "$wxUSE_STATTEXT" = "yes"; then | |
16902 | cat >> confdefs.h <<\EOF | |
16903 | #define wxUSE_STATTEXT 1 | |
16904 | EOF | |
16905 | ||
16906 | USES_CONTROLS=1 | |
10f2d63a VZ |
16907 | fi |
16908 | ||
16909 | if test "$wxUSE_STATLINE" = "yes"; then | |
16910 | if test "$wxUSE_WINE" = 1 ; then | |
698dcdb6 | 16911 | echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2 |
10f2d63a | 16912 | else |
698dcdb6 | 16913 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16914 | #define wxUSE_STATLINE 1 |
16915 | EOF | |
16916 | ||
1e6feb95 | 16917 | USES_CONTROLS=1 |
10f2d63a VZ |
16918 | fi |
16919 | fi | |
16920 | ||
16921 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
698dcdb6 | 16922 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16923 | #define wxUSE_STATUSBAR 1 |
16924 | EOF | |
16925 | ||
1e6feb95 | 16926 | USES_CONTROLS=1 |
698dcdb6 | 16927 | |
2286341c | 16928 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" |
10f2d63a VZ |
16929 | fi |
16930 | ||
16931 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
698dcdb6 | 16932 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16933 | #define wxUSE_TAB_DIALOG 1 |
16934 | EOF | |
16935 | ||
16936 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
16937 | fi | |
16938 | ||
1e6feb95 VZ |
16939 | if test "$wxUSE_TEXTCTRL" = "yes"; then |
16940 | cat >> confdefs.h <<\EOF | |
16941 | #define wxUSE_TEXTCTRL 1 | |
16942 | EOF | |
16943 | ||
16944 | USES_CONTROLS=1 | |
16945 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
16946 | fi | |
16947 | ||
1db8dc4a | 16948 | if test "$wxUSE_TOGGLEBTN" = "yes"; then |
a45d7ab7 GD |
16949 | if test "$wxUSE_MAC" = 1; then |
16950 | echo "configure: warning: Toggle button is not yet supported under Mac OS X" 1>&2 | |
16951 | wxUSE_TOGGLEBTN=no | |
16952 | fi | |
16953 | ||
16954 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
16955 | cat >> confdefs.h <<\EOF | |
1db8dc4a VZ |
16956 | #define wxUSE_TOGGLEBTN 1 |
16957 | EOF | |
16958 | ||
1e6feb95 | 16959 | USES_CONTROLS=1 |
a45d7ab7 | 16960 | fi |
1db8dc4a VZ |
16961 | fi |
16962 | ||
360d6699 | 16963 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
698dcdb6 | 16964 | cat >> confdefs.h <<\EOF |
360d6699 VZ |
16965 | #define wxUSE_TOOLBAR_SIMPLE 1 |
16966 | EOF | |
16967 | ||
16968 | wxUSE_TOOLBAR="yes" | |
1e6feb95 | 16969 | USES_CONTROLS=1 |
360d6699 VZ |
16970 | fi |
16971 | ||
10f2d63a | 16972 | if test "$wxUSE_TOOLBAR" = "yes"; then |
698dcdb6 | 16973 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16974 | #define wxUSE_TOOLBAR 1 |
16975 | EOF | |
16976 | ||
1e6feb95 | 16977 | USES_CONTROLS=1 |
698dcdb6 | 16978 | |
360d6699 VZ |
16979 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then |
16980 | wxUSE_TOOLBAR_NATIVE="yes" | |
16981 | fi | |
16982 | ||
1e6feb95 VZ |
16983 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
16984 | cat >> confdefs.h <<\EOF | |
360d6699 VZ |
16985 | #define wxUSE_TOOLBAR_NATIVE 1 |
16986 | EOF | |
16987 | ||
1e6feb95 VZ |
16988 | USES_CONTROLS=1 |
16989 | fi | |
16990 | ||
16991 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
360d6699 VZ |
16992 | fi |
16993 | ||
10f2d63a VZ |
16994 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
16995 | if test "$wxUSE_MOTIF" = 1; then | |
698dcdb6 | 16996 | echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2 |
10f2d63a VZ |
16997 | else |
16998 | if test "$wxUSE_WINE" = 1; then | |
698dcdb6 | 16999 | echo "configure: warning: wxTooltip not supported under WINE" 1>&2 |
10f2d63a | 17000 | else |
698dcdb6 | 17001 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17002 | #define wxUSE_TOOLTIPS 1 |
17003 | EOF | |
17004 | ||
17005 | fi | |
17006 | fi | |
17007 | fi | |
17008 | ||
17009 | if test "$wxUSE_TREECTRL" = "yes"; then | |
17010 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 17011 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17012 | #define wxUSE_TREECTRL 1 |
17013 | EOF | |
17014 | ||
1e6feb95 | 17015 | USES_CONTROLS=1 |
10f2d63a VZ |
17016 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" |
17017 | else | |
698dcdb6 | 17018 | echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
17019 | fi |
17020 | fi | |
17021 | ||
1e6feb95 VZ |
17022 | if test "$USES_CONTROLS" = 1; then |
17023 | cat >> confdefs.h <<\EOF | |
17024 | #define wxUSE_CONTROLS 1 | |
10f2d63a VZ |
17025 | EOF |
17026 | ||
10f2d63a VZ |
17027 | fi |
17028 | ||
1e6feb95 VZ |
17029 | |
17030 | ||
24fd6d87 VZ |
17031 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
17032 | cat >> confdefs.h <<\EOF | |
17033 | #define wxUSE_DRAGIMAGE 1 | |
17034 | EOF | |
17035 | ||
17036 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
17037 | fi | |
17038 | ||
1e6feb95 | 17039 | if test "$wxUSE_MENUS" = "yes"; then |
698dcdb6 | 17040 | cat >> confdefs.h <<\EOF |
1e6feb95 | 17041 | #define wxUSE_MENUS 1 |
10f2d63a VZ |
17042 | EOF |
17043 | ||
1e6feb95 | 17044 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" |
10f2d63a VZ |
17045 | fi |
17046 | ||
1e6feb95 VZ |
17047 | if test "$wxUSE_METAFILE" = "yes"; then |
17048 | cat >> confdefs.h <<\EOF | |
17049 | #define wxUSE_METAFILE 1 | |
10f2d63a VZ |
17050 | EOF |
17051 | ||
10f2d63a VZ |
17052 | fi |
17053 | ||
1e6feb95 VZ |
17054 | if test "$wxUSE_MIMETYPE" = "yes"; then |
17055 | cat >> confdefs.h <<\EOF | |
17056 | #define wxUSE_MIMETYPE 1 | |
10f2d63a VZ |
17057 | EOF |
17058 | ||
10f2d63a VZ |
17059 | fi |
17060 | ||
17061 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
698dcdb6 | 17062 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17063 | #define wxUSE_MINIFRAME 1 |
17064 | EOF | |
17065 | ||
17066 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
17067 | fi | |
17068 | ||
17069 | if test "$wxUSE_HTML" = "yes"; then | |
698dcdb6 | 17070 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17071 | #define wxUSE_HTML 1 |
17072 | EOF | |
17073 | ||
17074 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html" | |
17075 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html" | |
17076 | fi | |
17077 | ||
17078 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
698dcdb6 | 17079 | cat >> confdefs.h <<\EOF |
1e487827 VS |
17080 | #define wxUSE_VALIDATORS 1 |
17081 | EOF | |
703e0a69 | 17082 | |
698dcdb6 VZ |
17083 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" |
17084 | fi | |
17085 | ||
17086 | if test "$wxUSE_IMAGE" = "yes" ; then | |
17087 | cat >> confdefs.h <<\EOF | |
17088 | #define wxUSE_IMAGE 1 | |
17089 | EOF | |
17090 | ||
17091 | fi | |
17092 | ||
17093 | if test "$wxUSE_GIF" = "yes" ; then | |
17094 | cat >> confdefs.h <<\EOF | |
17095 | #define wxUSE_GIF 1 | |
17096 | EOF | |
17097 | ||
17098 | fi | |
17099 | ||
17100 | if test "$wxUSE_PCX" = "yes" ; then | |
17101 | cat >> confdefs.h <<\EOF | |
17102 | #define wxUSE_PCX 1 | |
17103 | EOF | |
17104 | ||
17105 | fi | |
17106 | ||
17107 | if test "$wxUSE_PNM" = "yes" ; then | |
17108 | cat >> confdefs.h <<\EOF | |
17109 | #define wxUSE_PNM 1 | |
17110 | EOF | |
17111 | ||
17112 | fi | |
17113 | ||
17114 | if test "$wxUSE_XPM" = "yes" ; then | |
17115 | cat >> confdefs.h <<\EOF | |
17116 | #define wxUSE_XPM 1 | |
17117 | EOF | |
17118 | ||
17119 | fi | |
17120 | ||
17121 | ||
1e6feb95 VZ |
17122 | if test "$wxUSE_CHOICEDLG" = "yes"; then |
17123 | cat >> confdefs.h <<\EOF | |
17124 | #define wxUSE_CHOICEDLG 1 | |
17125 | EOF | |
17126 | ||
17127 | fi | |
17128 | ||
17129 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
17130 | cat >> confdefs.h <<\EOF | |
17131 | #define wxUSE_COLOURDLG 1 | |
17132 | EOF | |
17133 | ||
17134 | fi | |
17135 | ||
17136 | if test "$wxUSE_FILEDLG" = "yes"; then | |
17137 | cat >> confdefs.h <<\EOF | |
17138 | #define wxUSE_FILEDLG 1 | |
17139 | EOF | |
17140 | ||
17141 | fi | |
17142 | ||
17143 | if test "$wxUSE_FONTDLG" = "yes"; then | |
17144 | cat >> confdefs.h <<\EOF | |
17145 | #define wxUSE_FONTDLG 1 | |
17146 | EOF | |
17147 | ||
17148 | fi | |
17149 | ||
17150 | if test "$wxUSE_DIRDLG" = "yes"; then | |
17151 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
17152 | echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2 | |
17153 | else | |
17154 | if test "$wxUSE_TREECTRL" != "yes"; then | |
17155 | echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2 | |
17156 | else | |
17157 | cat >> confdefs.h <<\EOF | |
17158 | #define wxUSE_DIRDLG 1 | |
17159 | EOF | |
17160 | ||
17161 | fi | |
17162 | fi | |
17163 | fi | |
17164 | ||
17165 | if test "$wxUSE_MSGDLG" = "yes"; then | |
17166 | cat >> confdefs.h <<\EOF | |
17167 | #define wxUSE_MSGDLG 1 | |
17168 | EOF | |
17169 | ||
17170 | fi | |
17171 | ||
17172 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
17173 | cat >> confdefs.h <<\EOF | |
17174 | #define wxUSE_NUMBERDLG 1 | |
17175 | EOF | |
17176 | ||
17177 | fi | |
17178 | ||
17179 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
17180 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
17181 | echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2 | |
17182 | else | |
17183 | cat >> confdefs.h <<\EOF | |
17184 | #define wxUSE_PROGRESSDLG 1 | |
17185 | EOF | |
17186 | ||
17187 | fi | |
17188 | fi | |
17189 | ||
17190 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then | |
17191 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
17192 | echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2 | |
17193 | else | |
17194 | cat >> confdefs.h <<\EOF | |
17195 | #define wxUSE_STARTUP_TIPS 1 | |
17196 | EOF | |
17197 | ||
17198 | fi | |
17199 | fi | |
17200 | ||
17201 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
17202 | cat >> confdefs.h <<\EOF | |
17203 | #define wxUSE_TEXTDLG 1 | |
17204 | EOF | |
17205 | ||
17206 | fi | |
17207 | ||
b1f5d087 VZ |
17208 | if test "$wxUSE_WIZARDDLG" = "yes"; then |
17209 | cat >> confdefs.h <<\EOF | |
17210 | #define wxUSE_WIZARDDLG 1 | |
17211 | EOF | |
17212 | ||
17213 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
17214 | fi | |
17215 | ||
1e6feb95 | 17216 | |
698dcdb6 VZ |
17217 | if test "$cross_compiling" = "yes"; then |
17218 | OSINFO="\"$host\"" | |
17219 | else | |
17220 | OSINFO=`uname -s -r -m` | |
17221 | OSINFO="\"$OSINFO\"" | |
17222 | fi | |
17223 | ||
17224 | cat >> confdefs.h <<EOF | |
17225 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
17226 | EOF | |
17227 | ||
17228 | ||
17229 | ||
17230 | GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK" | |
17231 | OPENGL_LIBS="$OPENGL_LINK" | |
17232 | ||
17233 | EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm" | |
17234 | if test "$USE_MAC" = 1 ; then | |
17235 | EXTRA_LIBS="$EXTRA_LIBS -framework Carbon -framework System" | |
17236 | fi | |
17237 | if test "$wxUSE_GUI" = "yes"; then | |
17238 | EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $FREETYPE_LINK $EXTRA_LIBS" | |
17239 | fi | |
17240 | ||
17241 | LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS" | |
17242 | ||
17243 | INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $FREETYPE_INCLUDE $TOOLKIT_INCLUDE" | |
17244 | ||
17245 | if test "$wxUSE_GTK" = 1; then | |
17246 | WXCONFIG_INCLUDE="" | |
17247 | else | |
17248 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
17249 | fi | |
17250 | ||
17251 | if test "$GXX" = yes ; then | |
17252 | CXXWARNINGS="-Wall" | |
17253 | fi | |
17254 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES" | |
17255 | ||
17256 | CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` | |
17257 | CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
17258 | ||
17259 | LDFLAGS="$LDFLAGS $PROFILE" | |
17260 | ||
17261 | if test "$wxUSE_GUI" = "yes"; then | |
17262 | ||
24fd6d87 | 17263 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \ |
1e6feb95 VZ |
17264 | drawing dynamic event font fractal image \ |
17265 | minimal richedit widgets" | |
17266 | ||
17267 | if test "$wxUSE_UNIVERSAL" = "yes" ; then | |
17268 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS univ" | |
17269 | fi | |
698dcdb6 VZ |
17270 | |
17271 | CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)" | |
17272 | else | |
17273 | SAMPLES_SUBDIRS="" | |
17274 | fi | |
17275 | ||
17276 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
17277 | ||
17278 | ||
17279 | ||
17280 | ||
17281 | ||
17282 | ||
17283 | ||
17284 | ||
17285 | ||
17286 | ||
17287 | ||
17288 | ||
17289 | ||
17290 | ||
17291 | ||
17292 | ||
17293 | ||
17294 | ||
17295 | ||
17296 | ||
17297 | ||
17298 | ||
17299 | ||
17300 | ||
17301 | ||
17302 | ||
17303 | ||
17304 | ||
17305 | ||
17306 | ||
17307 | ||
17308 | ||
17309 | ||
17310 | ||
17311 | ||
17312 | ||
17313 | ||
17314 | ||
17315 | ||
17316 | ||
17317 | ||
17318 | ||
17319 | ||
17320 | ||
17321 | ||
17322 | ||
17323 | ||
17324 | ||
17325 | ||
17326 | ||
17327 | ||
17328 | ||
17329 | ||
17330 | ||
17331 | ||
17332 | ||
17333 | ||
17334 | ||
17335 | ||
17336 | ||
17337 | ||
17338 | ||
17339 | ||
17340 | ||
17341 | ||
17342 | ||
17343 | ||
32832908 VZ |
17344 | |
17345 | ||
17346 | ||
17347 | ||
17348 | ||
17349 | ||
17350 | ||
2224580a | 17351 | |
dad6c0ea | 17352 | |
f6bcfd97 BP |
17353 | |
17354 | ||
17355 | ||
2f51a9ec GD |
17356 | |
17357 | ||
17358 | ||
17359 | ||
17360 | ||
17361 | ||
f6bcfd97 | 17362 | |
dad6c0ea | 17363 | |
caa2c79b | 17364 | |
3711412e | 17365 | |
1e6feb95 VZ |
17366 | |
17367 | ||
0f3f1cbc | 17368 | |
10f2d63a VZ |
17369 | |
17370 | ||
698dcdb6 | 17371 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
b1f5d087 | 17372 | echo "configure:17373: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
698dcdb6 VZ |
17373 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
17374 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
17375 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 17376 | else |
698dcdb6 | 17377 | cat > conftestmake <<\EOF |
10f2d63a VZ |
17378 | all: |
17379 | @echo 'ac_maketemp="${MAKE}"' | |
17380 | EOF | |
17381 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
698dcdb6 | 17382 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
10f2d63a VZ |
17383 | if test -n "$ac_maketemp"; then |
17384 | eval ac_cv_prog_make_${ac_make}_set=yes | |
17385 | else | |
17386 | eval ac_cv_prog_make_${ac_make}_set=no | |
17387 | fi | |
698dcdb6 | 17388 | rm -f conftestmake |
10f2d63a VZ |
17389 | fi |
17390 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
698dcdb6 | 17391 | echo "$ac_t""yes" 1>&6 |
10f2d63a VZ |
17392 | SET_MAKE= |
17393 | else | |
698dcdb6 | 17394 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
17395 | SET_MAKE="MAKE=${MAKE-make}" |
17396 | fi | |
17397 | ||
698dcdb6 | 17398 | |
00cf1208 RR |
17399 | if test -d include; then |
17400 | if test -d include/wx; then | |
1e6feb95 VZ |
17401 | if test -d include/wx/${SETUPH_DIR}; then |
17402 | if test -f include/wx/${SETUPH_DIR}/setup.h; then | |
17403 | mv -f include/wx/${SETUPH_DIR}/setup.h setup.h | |
00cf1208 RR |
17404 | fi |
17405 | fi | |
17406 | fi | |
17407 | fi | |
665bbe97 | 17408 | |
698dcdb6 | 17409 | |
10f2d63a | 17410 | |
2224580a | 17411 | if test "$wxUSE_GUI" = "yes"; then |
ec90f5e5 | 17412 | wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS |
e8482f24 GL |
17413 | wx_cv_path_ifs=$PATH_IFS |
17414 | wx_cv_program_ext=$PROGRAM_EXT | |
17415 | wx_cv_target_library=$WX_TARGET_LIBRARY | |
3711412e | 17416 | wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE |
93a20a27 VS |
17417 | export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \ |
17418 | wx_cv_target_library wx_cv_target_libtype | |
698dcdb6 | 17419 | subdirs="demos samples utils contrib" |
2224580a VZ |
17420 | |
17421 | fi | |
10f2d63a | 17422 | |
698dcdb6 VZ |
17423 | trap '' 1 2 15 |
17424 | cat > confcache <<\EOF | |
10f2d63a VZ |
17425 | # This file is a shell script that caches the results of configure |
17426 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
17427 | # scripts and configure runs. It is not useful on other systems. |
17428 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 17429 | # |
698dcdb6 VZ |
17430 | # By default, configure uses ./config.cache as the cache file, |
17431 | # creating it if it does not exist already. You can give configure | |
17432 | # the --cache-file=FILE option to use a different cache file; that is | |
17433 | # what configure does when it calls configure scripts in | |
17434 | # subdirectories, so they share the cache. | |
17435 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
17436 | # config.status only pays attention to the cache file if you give it the | |
17437 | # --recheck option to rerun configure. | |
10f2d63a | 17438 | # |
698dcdb6 | 17439 | EOF |
10f2d63a VZ |
17440 | # The following way of writing the cache mishandles newlines in values, |
17441 | # but we know of no workaround that is simple, portable, and efficient. | |
17442 | # So, don't put newlines in cache variables' values. | |
17443 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
17444 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
17445 | (set) 2>&1 | |
17446 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
17447 | *ac_space=\ *) | |
17448 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
17449 | # turns \\\\ into \\, and sed turns \\ into \). | |
17450 | sed -n \ | |
17451 | -e "s/'/'\\\\''/g" \ | |
17452 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
17453 | ;; | |
17454 | *) | |
17455 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
17456 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
17457 | ;; | |
17458 | esac >> confcache | |
17459 | if cmp -s $cache_file confcache; then | |
17460 | : | |
17461 | else | |
10f2d63a | 17462 | if test -w $cache_file; then |
698dcdb6 VZ |
17463 | echo "updating cache $cache_file" |
17464 | cat confcache > $cache_file | |
10f2d63a VZ |
17465 | else |
17466 | echo "not updating unwritable cache $cache_file" | |
17467 | fi | |
17468 | fi | |
17469 | rm -f confcache | |
17470 | ||
698dcdb6 VZ |
17471 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
17472 | ||
10f2d63a VZ |
17473 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
17474 | # Let make expand exec_prefix. | |
17475 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
17476 | ||
698dcdb6 VZ |
17477 | # Any assignment to VPATH causes Sun make to only execute |
17478 | # the first set of double-colon rules, so remove it if not needed. | |
17479 | # If there is a colon in the path, we need to keep it. | |
10f2d63a | 17480 | if test "x$srcdir" = x.; then |
698dcdb6 | 17481 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
10f2d63a VZ |
17482 | fi |
17483 | ||
698dcdb6 VZ |
17484 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
17485 | ||
10f2d63a VZ |
17486 | DEFS=-DHAVE_CONFIG_H |
17487 | ||
698dcdb6 | 17488 | # Without the "./", some shells look in PATH for config.status. |
10f2d63a | 17489 | : ${CONFIG_STATUS=./config.status} |
698dcdb6 VZ |
17490 | |
17491 | echo creating $CONFIG_STATUS | |
17492 | rm -f $CONFIG_STATUS | |
17493 | cat > $CONFIG_STATUS <<EOF | |
17494 | #! /bin/sh | |
10f2d63a VZ |
17495 | # Generated automatically by configure. |
17496 | # Run this file to recreate the current configuration. | |
698dcdb6 VZ |
17497 | # This directory was configured as follows, |
17498 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
17499 | # | |
17500 | # $0 $ac_configure_args | |
17501 | # | |
10f2d63a | 17502 | # Compiler output produced by configure, useful for debugging |
698dcdb6 | 17503 | # configure, is in ./config.log if it exists. |
1e487827 | 17504 | |
698dcdb6 VZ |
17505 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
17506 | for ac_option | |
10f2d63a | 17507 | do |
698dcdb6 | 17508 | case "\$ac_option" in |
10f2d63a | 17509 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
698dcdb6 VZ |
17510 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
17511 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
17512 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
17513 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | |
17514 | exit 0 ;; | |
17515 | -help | --help | --hel | --he | --h) | |
17516 | echo "\$ac_cs_usage"; exit 0 ;; | |
17517 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
10f2d63a VZ |
17518 | esac |
17519 | done | |
17520 | ||
698dcdb6 VZ |
17521 | ac_given_srcdir=$srcdir |
17522 | ac_given_INSTALL="$INSTALL" | |
703e0a69 | 17523 | |
698dcdb6 VZ |
17524 | trap 'rm -fr `echo " |
17525 | wx-config | |
17526 | src/make.env | |
17527 | src/makeprog.env | |
17528 | src/makelib.env | |
17529 | Makefile | |
17530 | setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
1e487827 | 17531 | EOF |
698dcdb6 | 17532 | cat >> $CONFIG_STATUS <<EOF |
1e487827 | 17533 | |
698dcdb6 VZ |
17534 | # Protect against being on the right side of a sed subst in config.status. |
17535 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
17536 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
17537 | $ac_vpsub | |
17538 | $extrasub | |
17539 | s%@SHELL@%$SHELL%g | |
17540 | s%@CFLAGS@%$CFLAGS%g | |
17541 | s%@CPPFLAGS@%$CPPFLAGS%g | |
17542 | s%@CXXFLAGS@%$CXXFLAGS%g | |
17543 | s%@FFLAGS@%$FFLAGS%g | |
17544 | s%@DEFS@%$DEFS%g | |
17545 | s%@LDFLAGS@%$LDFLAGS%g | |
17546 | s%@LIBS@%$LIBS%g | |
17547 | s%@exec_prefix@%$exec_prefix%g | |
17548 | s%@prefix@%$prefix%g | |
17549 | s%@program_transform_name@%$program_transform_name%g | |
17550 | s%@bindir@%$bindir%g | |
17551 | s%@sbindir@%$sbindir%g | |
17552 | s%@libexecdir@%$libexecdir%g | |
17553 | s%@datadir@%$datadir%g | |
17554 | s%@sysconfdir@%$sysconfdir%g | |
17555 | s%@sharedstatedir@%$sharedstatedir%g | |
17556 | s%@localstatedir@%$localstatedir%g | |
17557 | s%@libdir@%$libdir%g | |
17558 | s%@includedir@%$includedir%g | |
17559 | s%@oldincludedir@%$oldincludedir%g | |
17560 | s%@infodir@%$infodir%g | |
17561 | s%@mandir@%$mandir%g | |
17562 | s%@host@%$host%g | |
17563 | s%@host_alias@%$host_alias%g | |
17564 | s%@host_cpu@%$host_cpu%g | |
17565 | s%@host_vendor@%$host_vendor%g | |
17566 | s%@host_os@%$host_os%g | |
17567 | s%@target@%$target%g | |
17568 | s%@target_alias@%$target_alias%g | |
17569 | s%@target_cpu@%$target_cpu%g | |
17570 | s%@target_vendor@%$target_vendor%g | |
17571 | s%@target_os@%$target_os%g | |
17572 | s%@build@%$build%g | |
17573 | s%@build_alias@%$build_alias%g | |
17574 | s%@build_cpu@%$build_cpu%g | |
17575 | s%@build_vendor@%$build_vendor%g | |
17576 | s%@build_os@%$build_os%g | |
17577 | s%@CC@%$CC%g | |
17578 | s%@CPP@%$CPP%g | |
17579 | s%@CXX@%$CXX%g | |
17580 | s%@CXXCPP@%$CXXCPP%g | |
17581 | s%@RANLIB@%$RANLIB%g | |
17582 | s%@AR@%$AR%g | |
17583 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
17584 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | |
17585 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
17586 | s%@STRIP@%$STRIP%g | |
17587 | s%@YACC@%$YACC%g | |
17588 | s%@LEX@%$LEX%g | |
17589 | s%@LEXLIB@%$LEXLIB%g | |
17590 | s%@LN_S@%$LN_S%g | |
17591 | s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g | |
698dcdb6 VZ |
17592 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g |
17593 | s%@GTK_LIBS@%$GTK_LIBS%g | |
8168de4c | 17594 | s%@GTK_CONFIG@%$GTK_CONFIG%g |
698dcdb6 VZ |
17595 | s%@X_CFLAGS@%$X_CFLAGS%g |
17596 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
17597 | s%@X_LIBS@%$X_LIBS%g | |
17598 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
17599 | s%@REZ@%$REZ%g | |
17600 | s%@DEREZ@%$DEREZ%g | |
17601 | s%@LEX_STEM@%$LEX_STEM%g | |
17602 | s%@PATH_IFS@%$PATH_IFS%g | |
17603 | s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g | |
17604 | s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g | |
17605 | s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g | |
17606 | s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g | |
17607 | s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g | |
17608 | s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g | |
17609 | s%@WX_LIBRARY@%$WX_LIBRARY%g | |
17610 | s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g | |
17611 | s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g | |
17612 | s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g | |
17613 | s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g | |
17614 | s%@PROGRAM_EXT@%$PROGRAM_EXT%g | |
17615 | s%@WX_LIBRARY_NAME_GL@%$WX_LIBRARY_NAME_GL%g | |
17616 | s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g | |
17617 | s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g | |
17618 | s%@WX_LIBRARY_GL@%$WX_LIBRARY_GL%g | |
17619 | s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g | |
17620 | s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g | |
17621 | s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g | |
17622 | s%@WX_LIBRARY_LINK3_GL@%$WX_LIBRARY_LINK3_GL%g | |
17623 | s%@WX_ALL@%$WX_ALL%g | |
17624 | s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g | |
17625 | s%@SHARED_LD@%$SHARED_LD%g | |
17626 | s%@PIC_FLAG@%$PIC_FLAG%g | |
17627 | s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g | |
17628 | s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g | |
17629 | s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g | |
17630 | s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g | |
17631 | s%@BURNT_LIBRARY_NAME_GL@%$BURNT_LIBRARY_NAME_GL%g | |
17632 | s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g | |
17633 | s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g | |
17634 | s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g | |
17635 | s%@USE_GUI@%$USE_GUI%g | |
17636 | s%@AFMINSTALL@%$AFMINSTALL%g | |
1e6feb95 | 17637 | s%@SETUPH_DIR@%$SETUPH_DIR%g |
698dcdb6 VZ |
17638 | s%@TOOLKIT@%$TOOLKIT%g |
17639 | s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g | |
17640 | s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g | |
17641 | s%@TOOLKIT_NAME@%$TOOLKIT_NAME%g | |
17642 | s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g | |
1e6feb95 | 17643 | s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g |
698dcdb6 VZ |
17644 | s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g |
17645 | s%@ALL_OBJECTS@%$ALL_OBJECTS%g | |
17646 | s%@ALL_DEPFILES@%$ALL_DEPFILES%g | |
17647 | s%@GUIDIST@%$GUIDIST%g | |
17648 | s%@PORT_FILES@%$PORT_FILES%g | |
17649 | s%@DISTDIR@%$DISTDIR%g | |
17650 | s%@RPM_SPEC@%$RPM_SPEC%g | |
17651 | s%@RPM_FILES@%$RPM_FILES%g | |
17652 | s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g | |
17653 | s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g | |
17654 | s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g | |
17655 | s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g | |
17656 | s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g | |
17657 | s%@USER_SUBDIRS@%$USER_SUBDIRS%g | |
17658 | s%@EXTRA_LIBS@%$EXTRA_LIBS%g | |
17659 | s%@OPENGL_LIBS@%$OPENGL_LIBS%g | |
17660 | s%@EXTRADEFS@%$EXTRADEFS%g | |
17661 | s%@LD_LIBS@%$LD_LIBS%g | |
17662 | s%@RCINPUTSWITCH@%$RCINPUTSWITCH%g | |
17663 | s%@RCOUTPUTSWITCH@%$RCOUTPUTSWITCH%g | |
17664 | s%@RESPROGRAM@%$RESPROGRAM%g | |
17665 | s%@RESCOMP@%$RESCOMP%g | |
17666 | s%@RESFLAGS@%$RESFLAGS%g | |
17667 | s%@REZFLAGS@%$REZFLAGS%g | |
17668 | s%@DEREZFLAGS@%$DEREZFLAGS%g | |
17669 | s%@LIBWXMACRES@%$LIBWXMACRES%g | |
17670 | s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g | |
17671 | s%@DLLTOOL@%$DLLTOOL%g | |
17672 | s%@AS@%$AS%g | |
17673 | s%@NM@%$NM%g | |
17674 | s%@LD@%$LD%g | |
17675 | s%@MAKEINFO@%$MAKEINFO%g | |
17676 | s%@SET_MAKE@%$SET_MAKE%g | |
17677 | s%@subdirs@%$subdirs%g | |
1e487827 | 17678 | |
1e487827 | 17679 | CEOF |
1e487827 VS |
17680 | EOF |
17681 | ||
698dcdb6 VZ |
17682 | cat >> $CONFIG_STATUS <<\EOF |
17683 | ||
17684 | # Split the substitutions into bite-sized pieces for seds with | |
17685 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
17686 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
17687 | ac_file=1 # Number of current file. | |
17688 | ac_beg=1 # First line for current file. | |
17689 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
17690 | ac_more_lines=: | |
17691 | ac_sed_cmds="" | |
17692 | while $ac_more_lines; do | |
17693 | if test $ac_beg -gt 1; then | |
17694 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
17695 | else | |
17696 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
17697 | fi | |
17698 | if test ! -s conftest.s$ac_file; then | |
17699 | ac_more_lines=false | |
17700 | rm -f conftest.s$ac_file | |
17701 | else | |
17702 | if test -z "$ac_sed_cmds"; then | |
17703 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
10f2d63a | 17704 | else |
698dcdb6 | 17705 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
10f2d63a | 17706 | fi |
698dcdb6 VZ |
17707 | ac_file=`expr $ac_file + 1` |
17708 | ac_beg=$ac_end | |
17709 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
10f2d63a | 17710 | fi |
698dcdb6 VZ |
17711 | done |
17712 | if test -z "$ac_sed_cmds"; then | |
17713 | ac_sed_cmds=cat | |
17714 | fi | |
17715 | EOF | |
10f2d63a | 17716 | |
698dcdb6 VZ |
17717 | cat >> $CONFIG_STATUS <<EOF |
17718 | ||
17719 | CONFIG_FILES=\${CONFIG_FILES-"wx-config | |
17720 | src/make.env | |
17721 | src/makeprog.env | |
17722 | src/makelib.env | |
17723 | Makefile | |
17724 | "} | |
10f2d63a | 17725 | EOF |
698dcdb6 VZ |
17726 | cat >> $CONFIG_STATUS <<\EOF |
17727 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
10f2d63a | 17728 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
698dcdb6 VZ |
17729 | case "$ac_file" in |
17730 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
17731 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
17732 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
17733 | esac |
17734 | ||
698dcdb6 | 17735 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
1e487827 | 17736 | |
698dcdb6 VZ |
17737 | # Remove last slash and all that follows it. Not all systems have dirname. |
17738 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
17739 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
17740 | # The file is in a subdirectory. | |
17741 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
17742 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
10f2d63a | 17743 | # A "../" for each directory in $ac_dir_suffix. |
698dcdb6 | 17744 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
10f2d63a VZ |
17745 | else |
17746 | ac_dir_suffix= ac_dots= | |
17747 | fi | |
17748 | ||
698dcdb6 VZ |
17749 | case "$ac_given_srcdir" in |
17750 | .) srcdir=. | |
17751 | if test -z "$ac_dots"; then top_srcdir=. | |
17752 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
17753 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
10f2d63a | 17754 | *) # Relative path. |
698dcdb6 VZ |
17755 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
17756 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
10f2d63a VZ |
17757 | esac |
17758 | ||
698dcdb6 VZ |
17759 | case "$ac_given_INSTALL" in |
17760 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
17761 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
10f2d63a VZ |
17762 | esac |
17763 | ||
698dcdb6 VZ |
17764 | echo creating "$ac_file" |
17765 | rm -f "$ac_file" | |
17766 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
17767 | case "$ac_file" in | |
17768 | *Makefile*) ac_comsub="1i\\ | |
17769 | # $configure_input" ;; | |
17770 | *) ac_comsub= ;; | |
17771 | esac | |
10f2d63a | 17772 | |
698dcdb6 VZ |
17773 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
17774 | sed -e "$ac_comsub | |
17775 | s%@configure_input@%$configure_input%g | |
17776 | s%@srcdir@%$srcdir%g | |
17777 | s%@top_srcdir@%$top_srcdir%g | |
17778 | s%@INSTALL@%$INSTALL%g | |
17779 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
17780 | fi; done | |
17781 | rm -f conftest.s* | |
10f2d63a VZ |
17782 | |
17783 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
17784 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
17785 | # | |
17786 | # ac_d sets the value in "#define NAME VALUE" lines. | |
698dcdb6 VZ |
17787 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
17788 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
17789 | ac_dC='\3' | |
17790 | ac_dD='%g' | |
17791 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
17792 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
17793 | ac_uB='\([ ]\)%\1#\2define\3' | |
10f2d63a | 17794 | ac_uC=' ' |
698dcdb6 VZ |
17795 | ac_uD='\4%g' |
17796 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
17797 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
17798 | ac_eB='$%\1#\2define\3' | |
17799 | ac_eC=' ' | |
17800 | ac_eD='%g' | |
10f2d63a | 17801 | |
698dcdb6 VZ |
17802 | if test "${CONFIG_HEADERS+set}" != set; then |
17803 | EOF | |
17804 | cat >> $CONFIG_STATUS <<EOF | |
17805 | CONFIG_HEADERS="setup.h:setup.h.in" | |
17806 | EOF | |
17807 | cat >> $CONFIG_STATUS <<\EOF | |
17808 | fi | |
17809 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
10f2d63a | 17810 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
698dcdb6 VZ |
17811 | case "$ac_file" in |
17812 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
17813 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
17814 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
17815 | esac |
17816 | ||
698dcdb6 VZ |
17817 | echo creating $ac_file |
17818 | ||
17819 | rm -f conftest.frag conftest.in conftest.out | |
17820 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
17821 | cat $ac_file_inputs > conftest.in | |
17822 | ||
17823 | EOF | |
17824 | ||
17825 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
17826 | # the proper values into config.h.in to produce config.h. And first: | |
17827 | # Protect against being on the right side of a sed subst in config.status. | |
17828 | # Protect against being in an unquoted here document in config.status. | |
17829 | rm -f conftest.vals | |
17830 | cat > conftest.hdr <<\EOF | |
17831 | s/[\\&%]/\\&/g | |
17832 | s%[\\$`]%\\&%g | |
17833 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
17834 | s%ac_d%ac_u%gp | |
17835 | s%ac_u%ac_e%gp | |
17836 | EOF | |
17837 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
17838 | rm -f conftest.hdr | |
10f2d63a VZ |
17839 | |
17840 | # This sed command replaces #undef with comments. This is necessary, for | |
17841 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
17842 | # on some systems where configure will not decide to define it. | |
698dcdb6 VZ |
17843 | cat >> conftest.vals <<\EOF |
17844 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
10f2d63a VZ |
17845 | EOF |
17846 | ||
698dcdb6 VZ |
17847 | # Break up conftest.vals because some shells have a limit on |
17848 | # the size of here documents, and old seds have small limits too. | |
10f2d63a VZ |
17849 | |
17850 | rm -f conftest.tail | |
698dcdb6 | 17851 | while : |
10f2d63a | 17852 | do |
698dcdb6 VZ |
17853 | ac_lines=`grep -c . conftest.vals` |
17854 | # grep -c gives empty output for an empty file on some AIX systems. | |
17855 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
17856 | # Write a limited-size here document to conftest.frag. | |
17857 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
17858 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
10f2d63a | 17859 | echo 'CEOF |
698dcdb6 VZ |
17860 | sed -f conftest.frag conftest.in > conftest.out |
17861 | rm -f conftest.in | |
17862 | mv conftest.out conftest.in | |
17863 | ' >> $CONFIG_STATUS | |
17864 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
17865 | rm -f conftest.vals | |
17866 | mv conftest.tail conftest.vals | |
10f2d63a | 17867 | done |
698dcdb6 VZ |
17868 | rm -f conftest.vals |
17869 | ||
17870 | cat >> $CONFIG_STATUS <<\EOF | |
17871 | rm -f conftest.frag conftest.h | |
17872 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
17873 | cat conftest.in >> conftest.h | |
17874 | rm -f conftest.in | |
17875 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
17876 | echo "$ac_file is unchanged" | |
17877 | rm -f conftest.h | |
10f2d63a | 17878 | else |
698dcdb6 VZ |
17879 | # Remove last slash and all that follows it. Not all systems have dirname. |
17880 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
10f2d63a | 17881 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
698dcdb6 VZ |
17882 | # The file is in a subdirectory. |
17883 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
10f2d63a | 17884 | fi |
698dcdb6 VZ |
17885 | rm -f $ac_file |
17886 | mv conftest.h $ac_file | |
10f2d63a | 17887 | fi |
698dcdb6 VZ |
17888 | fi; done |
17889 | ||
10f2d63a | 17890 | EOF |
698dcdb6 | 17891 | cat >> $CONFIG_STATUS <<EOF |
10f2d63a | 17892 | |
1e6feb95 | 17893 | SETUPH_DIR="${SETUPH_DIR}" |
698dcdb6 VZ |
17894 | TOOLKIT_NAME="${TOOLKIT_NAME}" |
17895 | LN_S="${LN_S}" | |
17896 | ||
17897 | ||
17898 | EOF | |
17899 | cat >> $CONFIG_STATUS <<\EOF | |
10f2d63a | 17900 | |
6ef41520 | 17901 | if test ! -f wx${TOOLKIT_NAME}-config; then |
991a5759 VZ |
17902 | chmod +x wx-config |
17903 | mv wx-config wx${TOOLKIT_NAME}-config | |
17904 | ${LN_S} wx${TOOLKIT_NAME}-config wx-config | |
17905 | fi | |
665bbe97 | 17906 | |
698dcdb6 | 17907 | |
00cf1208 RR |
17908 | if test ! -d lib; then |
17909 | mkdir lib | |
17910 | fi | |
17911 | if test ! -d lib/wx; then | |
17912 | mkdir lib/wx | |
17913 | fi | |
17914 | if test ! -d lib/wx/include; then | |
17915 | mkdir lib/wx/include | |
17916 | fi | |
17917 | if test ! -d lib/wx/include/wx; then | |
17918 | mkdir lib/wx/include/wx | |
17919 | fi | |
f6bcfd97 BP |
17920 | if test ! -d lib/wx/include/wx/${TOOLKIT_NAME}; then |
17921 | mkdir lib/wx/include/wx/${TOOLKIT_NAME} | |
00cf1208 RR |
17922 | fi |
17923 | if test -f setup.h; then | |
066b00aa | 17924 | cp -fp setup.h lib/wx/include/wx/${TOOLKIT_NAME}/setup.h |
00cf1208 | 17925 | fi |
07eb77a6 | 17926 | |
698dcdb6 | 17927 | |
10f2d63a VZ |
17928 | if test ! -d include; then |
17929 | mkdir include | |
17930 | fi | |
17931 | if test ! -d include/wx; then | |
17932 | mkdir include/wx | |
17933 | fi | |
1e6feb95 VZ |
17934 | if test ! -d include/wx/${SETUPH_DIR}; then |
17935 | mkdir include/wx/${SETUPH_DIR} | |
10f2d63a | 17936 | fi |
afc31813 | 17937 | if test -f setup.h; then |
1e6feb95 | 17938 | cp -fp setup.h include/wx/${SETUPH_DIR}/setup.h |
afc31813 | 17939 | fi |
665bbe97 | 17940 | |
698dcdb6 VZ |
17941 | |
17942 | exit 0 | |
10f2d63a VZ |
17943 | EOF |
17944 | chmod +x $CONFIG_STATUS | |
698dcdb6 VZ |
17945 | rm -fr confdefs* $ac_clean_files |
17946 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
10f2d63a | 17947 | |
2224580a VZ |
17948 | if test "$no_recursion" != yes; then |
17949 | ||
17950 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
17951 | ac_sub_configure_args= | |
17952 | ac_prev= | |
17953 | for ac_arg in $ac_configure_args; do | |
17954 | if test -n "$ac_prev"; then | |
17955 | ac_prev= | |
17956 | continue | |
17957 | fi | |
698dcdb6 | 17958 | case "$ac_arg" in |
2224580a VZ |
17959 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
17960 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
17961 | ac_prev=cache_file ;; | |
17962 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
698dcdb6 | 17963 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
2224580a VZ |
17964 | ;; |
17965 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
17966 | ac_prev=srcdir ;; | |
17967 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
17968 | ;; | |
17969 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
17970 | esac | |
17971 | done | |
17972 | ||
698dcdb6 | 17973 | for ac_config_dir in demos samples utils contrib; do |
2224580a VZ |
17974 | |
17975 | # Do not complain, so a configure script can configure whichever | |
17976 | # parts of a large source tree are present. | |
698dcdb6 VZ |
17977 | if test ! -d $srcdir/$ac_config_dir; then |
17978 | continue | |
17979 | fi | |
17980 | ||
17981 | echo configuring in $ac_config_dir | |
2224580a | 17982 | |
698dcdb6 | 17983 | case "$srcdir" in |
2224580a VZ |
17984 | .) ;; |
17985 | *) | |
698dcdb6 VZ |
17986 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; |
17987 | else | |
17988 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
17989 | fi | |
17990 | ;; | |
2224580a VZ |
17991 | esac |
17992 | ||
17993 | ac_popdir=`pwd` | |
698dcdb6 | 17994 | cd $ac_config_dir |
2224580a | 17995 | |
698dcdb6 VZ |
17996 | # A "../" for each directory in /$ac_config_dir. |
17997 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
2224580a | 17998 | |
698dcdb6 | 17999 | case "$srcdir" in |
2224580a VZ |
18000 | .) # No --srcdir option. We are building in place. |
18001 | ac_sub_srcdir=$srcdir ;; | |
698dcdb6 VZ |
18002 | /*) # Absolute path. |
18003 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
2224580a | 18004 | *) # Relative path. |
698dcdb6 | 18005 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; |
2224580a VZ |
18006 | esac |
18007 | ||
18008 | # Check for guested configure; otherwise get Cygnus style configure. | |
698dcdb6 VZ |
18009 | if test -f $ac_sub_srcdir/configure; then |
18010 | ac_sub_configure=$ac_sub_srcdir/configure | |
2224580a VZ |
18011 | elif test -f $ac_sub_srcdir/configure.in; then |
18012 | ac_sub_configure=$ac_configure | |
18013 | else | |
698dcdb6 | 18014 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 |
2224580a VZ |
18015 | ac_sub_configure= |
18016 | fi | |
18017 | ||
18018 | # The recursion is here. | |
18019 | if test -n "$ac_sub_configure"; then | |
698dcdb6 | 18020 | |
2224580a | 18021 | # Make the cache file name correct relative to the subdirectory. |
698dcdb6 VZ |
18022 | case "$cache_file" in |
18023 | /*) ac_sub_cache_file=$cache_file ;; | |
2224580a | 18024 | *) # Relative path. |
698dcdb6 | 18025 | ac_sub_cache_file="$ac_dots$cache_file" ;; |
2224580a | 18026 | esac |
698dcdb6 VZ |
18027 | case "$ac_given_INSTALL" in |
18028 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
18029 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
18030 | esac | |
2224580a | 18031 | |
698dcdb6 | 18032 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" |
2224580a | 18033 | # The eval makes quoting arguments work. |
698dcdb6 VZ |
18034 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir |
18035 | then : | |
18036 | else | |
18037 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
18038 | fi | |
2224580a VZ |
18039 | fi |
18040 | ||
18041 | cd $ac_popdir | |
18042 | done | |
18043 | fi | |
18044 | ||
698dcdb6 | 18045 |