]>
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" |
698dcdb6 | 324 | ac_help="$ac_help |
8168de4c | 325 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes" |
1e6feb95 | 326 | ac_help="$ac_help |
8168de4c | 327 | --enable-miniframe use wxMiniFrame class" |
698dcdb6 | 328 | ac_help="$ac_help |
8168de4c | 329 | --enable-html use wxHTML sub-library" |
698dcdb6 | 330 | ac_help="$ac_help |
8168de4c | 331 | --enable-tooltips use wxToolTip class" |
698dcdb6 | 332 | ac_help="$ac_help |
8168de4c | 333 | --enable-splines use spline drawing code" |
698dcdb6 | 334 | ac_help="$ac_help |
8168de4c | 335 | --enable-validators use wxValidator and derived classes" |
698dcdb6 | 336 | ac_help="$ac_help |
8168de4c | 337 | --enable-busyinfo use wxBusyInfo" |
698dcdb6 | 338 | ac_help="$ac_help |
8168de4c | 339 | --enable-joystick compile in joystick support (Linux only)" |
698dcdb6 | 340 | ac_help="$ac_help |
8168de4c | 341 | --enable-metafiles use wxMetaFile (Windows only)" |
1e6feb95 | 342 | ac_help="$ac_help |
8168de4c | 343 | --enable-image use wxImage class" |
698dcdb6 | 344 | ac_help="$ac_help |
8168de4c | 345 | --enable-gif use gif images (GIF file format)" |
698dcdb6 | 346 | ac_help="$ac_help |
8168de4c | 347 | --enable-pcx use pcx images (PCX file format)" |
698dcdb6 | 348 | ac_help="$ac_help |
8168de4c | 349 | --enable-pnm use pnm images (PNM file format)" |
698dcdb6 | 350 | ac_help="$ac_help |
8168de4c | 351 | --enable-xpm use xpm images (XPM file format)" |
698dcdb6 VZ |
352 | ac_help="$ac_help |
353 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
354 | ac_help="$ac_help | |
355 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
356 | ac_help="$ac_help | |
357 | --disable-gtktest Do not try to compile and run a test GTK program" | |
358 | ac_help="$ac_help | |
359 | --with-x use the X Window System" | |
10f2d63a VZ |
360 | |
361 | # Initialize some variables set by options. | |
362 | # The variables have the same names as the options, with | |
363 | # dashes changed to underlines. | |
698dcdb6 VZ |
364 | build=NONE |
365 | cache_file=./config.cache | |
10f2d63a | 366 | exec_prefix=NONE |
698dcdb6 | 367 | host=NONE |
10f2d63a | 368 | no_create= |
698dcdb6 | 369 | nonopt=NONE |
10f2d63a VZ |
370 | no_recursion= |
371 | prefix=NONE | |
372 | program_prefix=NONE | |
373 | program_suffix=NONE | |
374 | program_transform_name=s,x,x, | |
375 | silent= | |
376 | site= | |
377 | srcdir= | |
698dcdb6 | 378 | target=NONE |
10f2d63a VZ |
379 | verbose= |
380 | x_includes=NONE | |
381 | x_libraries=NONE | |
382 | bindir='${exec_prefix}/bin' | |
383 | sbindir='${exec_prefix}/sbin' | |
384 | libexecdir='${exec_prefix}/libexec' | |
385 | datadir='${prefix}/share' | |
386 | sysconfdir='${prefix}/etc' | |
387 | sharedstatedir='${prefix}/com' | |
388 | localstatedir='${prefix}/var' | |
389 | libdir='${exec_prefix}/lib' | |
390 | includedir='${prefix}/include' | |
391 | oldincludedir='/usr/include' | |
392 | infodir='${prefix}/info' | |
393 | mandir='${prefix}/man' | |
394 | ||
698dcdb6 VZ |
395 | # Initialize some other variables. |
396 | subdirs= | |
397 | MFLAGS= MAKEFLAGS= | |
398 | SHELL=${CONFIG_SHELL-/bin/sh} | |
399 | # Maximum number of lines to put in a shell here document. | |
400 | ac_max_here_lines=12 | |
10f2d63a VZ |
401 | |
402 | ac_prev= | |
403 | for ac_option | |
404 | do | |
698dcdb6 | 405 | |
10f2d63a VZ |
406 | # If the previous option needs an argument, assign it. |
407 | if test -n "$ac_prev"; then | |
408 | eval "$ac_prev=\$ac_option" | |
409 | ac_prev= | |
410 | continue | |
411 | fi | |
412 | ||
698dcdb6 VZ |
413 | case "$ac_option" in |
414 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
415 | *) ac_optarg= ;; | |
416 | esac | |
10f2d63a VZ |
417 | |
418 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
419 | ||
698dcdb6 | 420 | case "$ac_option" in |
10f2d63a VZ |
421 | |
422 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
423 | ac_prev=bindir ;; | |
424 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
698dcdb6 | 425 | bindir="$ac_optarg" ;; |
10f2d63a VZ |
426 | |
427 | -build | --build | --buil | --bui | --bu) | |
698dcdb6 | 428 | ac_prev=build ;; |
10f2d63a | 429 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
698dcdb6 | 430 | build="$ac_optarg" ;; |
10f2d63a VZ |
431 | |
432 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
433 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
434 | ac_prev=cache_file ;; | |
435 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
436 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
698dcdb6 | 437 | cache_file="$ac_optarg" ;; |
10f2d63a VZ |
438 | |
439 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
440 | ac_prev=datadir ;; | |
441 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
442 | | --da=*) | |
698dcdb6 | 443 | datadir="$ac_optarg" ;; |
10f2d63a VZ |
444 | |
445 | -disable-* | --disable-*) | |
698dcdb6 | 446 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
10f2d63a | 447 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
448 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
449 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
450 | fi | |
451 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
452 | eval "enable_${ac_feature}=no" ;; | |
10f2d63a VZ |
453 | |
454 | -enable-* | --enable-*) | |
698dcdb6 | 455 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
10f2d63a | 456 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
457 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
458 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
459 | fi | |
460 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
461 | case "$ac_option" in | |
462 | *=*) ;; | |
10f2d63a VZ |
463 | *) ac_optarg=yes ;; |
464 | esac | |
698dcdb6 | 465 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
10f2d63a VZ |
466 | |
467 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
468 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
469 | | --exec | --exe | --ex) | |
470 | ac_prev=exec_prefix ;; | |
471 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
472 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
473 | | --exec=* | --exe=* | --ex=*) | |
698dcdb6 | 474 | exec_prefix="$ac_optarg" ;; |
10f2d63a VZ |
475 | |
476 | -gas | --gas | --ga | --g) | |
477 | # Obsolete; use --with-gas. | |
478 | with_gas=yes ;; | |
479 | ||
698dcdb6 VZ |
480 | -help | --help | --hel | --he) |
481 | # Omit some internal or obsolete options to make the list less imposing. | |
482 | # This message is too long to be a string in the A/UX 3.1 sh. | |
483 | cat << EOF | |
484 | Usage: configure [options] [host] | |
485 | Options: [defaults in brackets after descriptions] | |
486 | Configuration: | |
487 | --cache-file=FILE cache test results in FILE | |
488 | --help print this message | |
489 | --no-create do not create output files | |
490 | --quiet, --silent do not print \`checking...' messages | |
491 | --version print the version of autoconf that created configure | |
492 | Directory and file names: | |
493 | --prefix=PREFIX install architecture-independent files in PREFIX | |
494 | [$ac_default_prefix] | |
495 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
496 | [same as prefix] | |
497 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
498 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
499 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
500 | --datadir=DIR read-only architecture-independent data in DIR | |
501 | [PREFIX/share] | |
502 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
503 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
504 | [PREFIX/com] | |
505 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
506 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
507 | --includedir=DIR C header files in DIR [PREFIX/include] | |
508 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
509 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
510 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
511 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
512 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
513 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
514 | --program-transform-name=PROGRAM | |
515 | run sed PROGRAM on installed program names | |
516 | EOF | |
517 | cat << EOF | |
518 | Host type: | |
519 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
520 | --host=HOST configure for HOST [guessed] | |
521 | --target=TARGET configure for TARGET [TARGET=HOST] | |
522 | Features and packages: | |
523 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
524 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
525 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
526 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
527 | --x-includes=DIR X include files are in DIR | |
528 | --x-libraries=DIR X library files are in DIR | |
529 | EOF | |
530 | if test -n "$ac_help"; then | |
531 | echo "--enable and --with options recognized:$ac_help" | |
532 | fi | |
533 | exit 0 ;; | |
10f2d63a VZ |
534 | |
535 | -host | --host | --hos | --ho) | |
698dcdb6 | 536 | ac_prev=host ;; |
10f2d63a | 537 | -host=* | --host=* | --hos=* | --ho=*) |
698dcdb6 | 538 | host="$ac_optarg" ;; |
10f2d63a VZ |
539 | |
540 | -includedir | --includedir | --includedi | --included | --include \ | |
541 | | --includ | --inclu | --incl | --inc) | |
542 | ac_prev=includedir ;; | |
543 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
544 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
698dcdb6 | 545 | includedir="$ac_optarg" ;; |
10f2d63a VZ |
546 | |
547 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
548 | ac_prev=infodir ;; | |
549 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
698dcdb6 | 550 | infodir="$ac_optarg" ;; |
10f2d63a VZ |
551 | |
552 | -libdir | --libdir | --libdi | --libd) | |
553 | ac_prev=libdir ;; | |
554 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
698dcdb6 | 555 | libdir="$ac_optarg" ;; |
10f2d63a VZ |
556 | |
557 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
558 | | --libexe | --libex | --libe) | |
559 | ac_prev=libexecdir ;; | |
560 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
561 | | --libexe=* | --libex=* | --libe=*) | |
698dcdb6 | 562 | libexecdir="$ac_optarg" ;; |
10f2d63a VZ |
563 | |
564 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
565 | | --localstate | --localstat | --localsta | --localst \ | |
566 | | --locals | --local | --loca | --loc | --lo) | |
567 | ac_prev=localstatedir ;; | |
568 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
569 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
570 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
698dcdb6 | 571 | localstatedir="$ac_optarg" ;; |
10f2d63a VZ |
572 | |
573 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
574 | ac_prev=mandir ;; | |
575 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
698dcdb6 | 576 | mandir="$ac_optarg" ;; |
10f2d63a VZ |
577 | |
578 | -nfp | --nfp | --nf) | |
579 | # Obsolete; use --without-fp. | |
580 | with_fp=no ;; | |
581 | ||
582 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
583 | | --no-cr | --no-c) | |
584 | no_create=yes ;; | |
585 | ||
586 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
587 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
588 | no_recursion=yes ;; | |
589 | ||
590 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
591 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
592 | | --oldin | --oldi | --old | --ol | --o) | |
593 | ac_prev=oldincludedir ;; | |
594 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
595 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
596 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
698dcdb6 | 597 | oldincludedir="$ac_optarg" ;; |
10f2d63a VZ |
598 | |
599 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
600 | ac_prev=prefix ;; | |
601 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
698dcdb6 | 602 | prefix="$ac_optarg" ;; |
10f2d63a VZ |
603 | |
604 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
605 | | --program-pre | --program-pr | --program-p) | |
606 | ac_prev=program_prefix ;; | |
607 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
608 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
698dcdb6 | 609 | program_prefix="$ac_optarg" ;; |
10f2d63a VZ |
610 | |
611 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
612 | | --program-suf | --program-su | --program-s) | |
613 | ac_prev=program_suffix ;; | |
614 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
615 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
698dcdb6 | 616 | program_suffix="$ac_optarg" ;; |
10f2d63a VZ |
617 | |
618 | -program-transform-name | --program-transform-name \ | |
619 | | --program-transform-nam | --program-transform-na \ | |
620 | | --program-transform-n | --program-transform- \ | |
621 | | --program-transform | --program-transfor \ | |
622 | | --program-transfo | --program-transf \ | |
623 | | --program-trans | --program-tran \ | |
624 | | --progr-tra | --program-tr | --program-t) | |
625 | ac_prev=program_transform_name ;; | |
626 | -program-transform-name=* | --program-transform-name=* \ | |
627 | | --program-transform-nam=* | --program-transform-na=* \ | |
628 | | --program-transform-n=* | --program-transform-=* \ | |
629 | | --program-transform=* | --program-transfor=* \ | |
630 | | --program-transfo=* | --program-transf=* \ | |
631 | | --program-trans=* | --program-tran=* \ | |
632 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
698dcdb6 | 633 | program_transform_name="$ac_optarg" ;; |
10f2d63a VZ |
634 | |
635 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
636 | | -silent | --silent | --silen | --sile | --sil) | |
637 | silent=yes ;; | |
638 | ||
639 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
640 | ac_prev=sbindir ;; | |
641 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
642 | | --sbi=* | --sb=*) | |
698dcdb6 | 643 | sbindir="$ac_optarg" ;; |
10f2d63a VZ |
644 | |
645 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
646 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
647 | | --sharedst | --shareds | --shared | --share | --shar \ | |
648 | | --sha | --sh) | |
649 | ac_prev=sharedstatedir ;; | |
650 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
651 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
652 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
653 | | --sha=* | --sh=*) | |
698dcdb6 | 654 | sharedstatedir="$ac_optarg" ;; |
10f2d63a VZ |
655 | |
656 | -site | --site | --sit) | |
657 | ac_prev=site ;; | |
658 | -site=* | --site=* | --sit=*) | |
698dcdb6 | 659 | site="$ac_optarg" ;; |
10f2d63a VZ |
660 | |
661 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
662 | ac_prev=srcdir ;; | |
663 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
698dcdb6 | 664 | srcdir="$ac_optarg" ;; |
10f2d63a VZ |
665 | |
666 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
667 | | --syscon | --sysco | --sysc | --sys | --sy) | |
668 | ac_prev=sysconfdir ;; | |
669 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
670 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
698dcdb6 | 671 | sysconfdir="$ac_optarg" ;; |
10f2d63a VZ |
672 | |
673 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
698dcdb6 | 674 | ac_prev=target ;; |
10f2d63a | 675 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
698dcdb6 | 676 | target="$ac_optarg" ;; |
10f2d63a VZ |
677 | |
678 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
679 | verbose=yes ;; | |
680 | ||
698dcdb6 VZ |
681 | -version | --version | --versio | --versi | --vers) |
682 | echo "configure generated by autoconf version 2.13" | |
683 | exit 0 ;; | |
10f2d63a VZ |
684 | |
685 | -with-* | --with-*) | |
698dcdb6 | 686 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
10f2d63a | 687 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
688 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
689 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
690 | fi | |
10f2d63a | 691 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
698dcdb6 VZ |
692 | case "$ac_option" in |
693 | *=*) ;; | |
10f2d63a VZ |
694 | *) ac_optarg=yes ;; |
695 | esac | |
698dcdb6 | 696 | eval "with_${ac_package}='$ac_optarg'" ;; |
10f2d63a VZ |
697 | |
698 | -without-* | --without-*) | |
698dcdb6 | 699 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
10f2d63a | 700 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
701 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
702 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
703 | fi | |
704 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
705 | eval "with_${ac_package}=no" ;; | |
10f2d63a VZ |
706 | |
707 | --x) | |
708 | # Obsolete; use --with-x. | |
709 | with_x=yes ;; | |
710 | ||
711 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
712 | | --x-incl | --x-inc | --x-in | --x-i) | |
713 | ac_prev=x_includes ;; | |
714 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
715 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
698dcdb6 | 716 | x_includes="$ac_optarg" ;; |
10f2d63a VZ |
717 | |
718 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
719 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
720 | ac_prev=x_libraries ;; | |
721 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
722 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
698dcdb6 | 723 | x_libraries="$ac_optarg" ;; |
10f2d63a | 724 | |
698dcdb6 | 725 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
10f2d63a VZ |
726 | ;; |
727 | ||
728 | *) | |
698dcdb6 VZ |
729 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
730 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
731 | fi | |
732 | if test "x$nonopt" != xNONE; then | |
733 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
734 | fi | |
735 | nonopt="$ac_option" | |
10f2d63a VZ |
736 | ;; |
737 | ||
738 | esac | |
739 | done | |
740 | ||
741 | if test -n "$ac_prev"; then | |
698dcdb6 VZ |
742 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
743 | fi | |
744 | ||
745 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
746 | ||
747 | # File descriptor usage: | |
748 | # 0 standard input | |
749 | # 1 file creation | |
750 | # 2 errors and warnings | |
751 | # 3 some systems may open it to /dev/tty | |
752 | # 4 used on the Kubota Titan | |
753 | # 6 checking for... messages and results | |
754 | # 5 compiler messages saved in config.log | |
755 | if test "$silent" = yes; then | |
756 | exec 6>/dev/null | |
757 | else | |
758 | exec 6>&1 | |
10f2d63a | 759 | fi |
698dcdb6 VZ |
760 | exec 5>./config.log |
761 | ||
762 | echo "\ | |
763 | This file contains any messages produced by compilers while | |
764 | running configure, to aid debugging if configure makes a mistake. | |
765 | " 1>&5 | |
10f2d63a | 766 | |
698dcdb6 VZ |
767 | # Strip out --no-create and --no-recursion so they do not pile up. |
768 | # Also quote any args containing shell metacharacters. | |
769 | ac_configure_args= | |
770 | for ac_arg | |
10f2d63a | 771 | do |
698dcdb6 VZ |
772 | case "$ac_arg" in |
773 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
774 | | --no-cr | --no-c) ;; | |
775 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
776 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
777 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
778 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
779 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
10f2d63a VZ |
780 | esac |
781 | done | |
782 | ||
698dcdb6 VZ |
783 | # NLS nuisances. |
784 | # Only set these to C if already set. These must not be set unconditionally | |
785 | # because not all systems understand e.g. LANG=C (notably SCO). | |
786 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
787 | # Non-C LC_CTYPE values break the ctype check. | |
788 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
789 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
790 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
791 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
10f2d63a | 792 | |
698dcdb6 VZ |
793 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
794 | rm -rf conftest* confdefs.h | |
795 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
796 | echo > confdefs.h | |
10f2d63a | 797 | |
698dcdb6 VZ |
798 | # A filename unique to this package, relative to the directory that |
799 | # configure is in, which we can look for to find out if srcdir is correct. | |
800 | ac_unique_file=wx-config.in | |
10f2d63a VZ |
801 | |
802 | # Find the source files, if location was not specified. | |
803 | if test -z "$srcdir"; then | |
804 | ac_srcdir_defaulted=yes | |
805 | # Try the directory containing this script, then its parent. | |
806 | ac_prog=$0 | |
698dcdb6 | 807 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
10f2d63a VZ |
808 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
809 | srcdir=$ac_confdir | |
810 | if test ! -r $srcdir/$ac_unique_file; then | |
811 | srcdir=.. | |
812 | fi | |
813 | else | |
814 | ac_srcdir_defaulted=no | |
815 | fi | |
816 | if test ! -r $srcdir/$ac_unique_file; then | |
817 | if test "$ac_srcdir_defaulted" = yes; then | |
698dcdb6 | 818 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
10f2d63a | 819 | else |
698dcdb6 | 820 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
10f2d63a VZ |
821 | fi |
822 | fi | |
698dcdb6 | 823 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
10f2d63a VZ |
824 | |
825 | # Prefer explicitly selected file to automatically selected ones. | |
826 | if test -z "$CONFIG_SITE"; then | |
827 | if test "x$prefix" != xNONE; then | |
828 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
829 | else | |
830 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
831 | fi | |
832 | fi | |
833 | for ac_site_file in $CONFIG_SITE; do | |
834 | if test -r "$ac_site_file"; then | |
698dcdb6 | 835 | echo "loading site script $ac_site_file" |
10f2d63a VZ |
836 | . "$ac_site_file" |
837 | fi | |
838 | done | |
839 | ||
840 | if test -r "$cache_file"; then | |
698dcdb6 VZ |
841 | echo "loading cache $cache_file" |
842 | . $cache_file | |
10f2d63a | 843 | else |
698dcdb6 VZ |
844 | echo "creating cache $cache_file" |
845 | > $cache_file | |
10f2d63a VZ |
846 | fi |
847 | ||
848 | ac_ext=c | |
698dcdb6 | 849 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 850 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
851 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
852 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
853 | cross_compiling=$ac_cv_prog_cc_cross | |
854 | ||
855 | ac_exeext= | |
856 | ac_objext=o | |
857 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
858 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
859 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
860 | ac_n= ac_c=' | |
861 | ' ac_t=' ' | |
862 | else | |
863 | ac_n=-n ac_c= ac_t= | |
864 | fi | |
10f2d63a | 865 | else |
698dcdb6 | 866 | ac_n= ac_c='\c' ac_t= |
10f2d63a | 867 | fi |
698dcdb6 VZ |
868 | |
869 | ||
10f2d63a | 870 | |
7c66a493 VZ |
871 | ac_aux_dir= |
872 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
873 | if test -f $ac_dir/install-sh; then | |
874 | ac_aux_dir=$ac_dir | |
875 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
876 | break | |
877 | elif 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 | fi | |
882 | done | |
883 | if test -z "$ac_aux_dir"; then | |
698dcdb6 | 884 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
7c66a493 | 885 | fi |
698dcdb6 VZ |
886 | ac_config_guess=$ac_aux_dir/config.guess |
887 | ac_config_sub=$ac_aux_dir/config.sub | |
888 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
703e0a69 | 889 | |
698dcdb6 VZ |
890 | |
891 | # Do some error checking and defaulting for the host and target type. | |
892 | # The inputs are: | |
893 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
894 | # | |
895 | # The rules are: | |
896 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
897 | # same time. | |
898 | # 2. Host defaults to nonopt. | |
899 | # 3. If nonopt is not specified, then host defaults to the current host, | |
900 | # as determined by config.guess. | |
901 | # 4. Target and build default to nonopt. | |
902 | # 5. If nonopt is not specified, then target and build default to host. | |
7c66a493 VZ |
903 | |
904 | # The aliases save the names the user supplied, while $host etc. | |
905 | # will get canonicalized. | |
698dcdb6 VZ |
906 | case $host---$target---$nonopt in |
907 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
908 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
909 | esac | |
910 | ||
911 | ||
912 | # Make sure we can run config.sub. | |
913 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
914 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
915 | fi | |
916 | ||
917 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
54276ccf | 918 | echo "configure:919: checking host system type" >&5 |
698dcdb6 VZ |
919 | |
920 | host_alias=$host | |
921 | case "$host_alias" in | |
922 | NONE) | |
923 | case $nonopt in | |
924 | NONE) | |
925 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
926 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
927 | fi ;; | |
928 | *) host_alias=$nonopt ;; | |
929 | esac ;; | |
930 | esac | |
931 | ||
932 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
933 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
934 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
935 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
936 | echo "$ac_t""$host" 1>&6 | |
937 | ||
938 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
54276ccf | 939 | echo "configure:940: checking target system type" >&5 |
698dcdb6 VZ |
940 | |
941 | target_alias=$target | |
942 | case "$target_alias" in | |
943 | NONE) | |
944 | case $nonopt in | |
945 | NONE) target_alias=$host_alias ;; | |
946 | *) target_alias=$nonopt ;; | |
947 | esac ;; | |
948 | esac | |
949 | ||
950 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
951 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
952 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
953 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
954 | echo "$ac_t""$target" 1>&6 | |
955 | ||
956 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
54276ccf | 957 | echo "configure:958: checking build system type" >&5 |
698dcdb6 VZ |
958 | |
959 | build_alias=$build | |
960 | case "$build_alias" in | |
961 | NONE) | |
962 | case $nonopt in | |
963 | NONE) build_alias=$host_alias ;; | |
964 | *) build_alias=$nonopt ;; | |
965 | esac ;; | |
966 | esac | |
967 | ||
968 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
969 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
970 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
971 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
972 | echo "$ac_t""$build" 1>&6 | |
973 | ||
974 | test "$host_alias" != "$target_alias" && | |
7c66a493 VZ |
975 | test "$program_prefix$program_suffix$program_transform_name" = \ |
976 | NONENONEs,x,x, && | |
977 | program_prefix=${target_alias}- | |
978 | ||
698dcdb6 VZ |
979 | |
980 | ||
10f2d63a | 981 | WX_MAJOR_VERSION_NUMBER=2 |
37d403aa | 982 | WX_MINOR_VERSION_NUMBER=3 |
665bbe97 | 983 | WX_RELEASE_NUMBER=1 |
10f2d63a | 984 | |
10f2d63a | 985 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER |
10f2d63a | 986 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER |
6426998c RL |
987 | |
988 | WX_CURRENT=0 | |
989 | WX_REVISION=0 | |
990 | WX_AGE=0 | |
991 | ||
698dcdb6 VZ |
992 | |
993 | ||
10f2d63a VZ |
994 | USE_UNIX=1 |
995 | USE_WIN32=0 | |
b12915c1 | 996 | USE_BEOS=0 |
1216f52d | 997 | USE_MAC=0 |
b12915c1 | 998 | |
10f2d63a VZ |
999 | USE_LINUX= |
1000 | USE_SGI= | |
1001 | USE_HPUX= | |
1002 | USE_SYSV= | |
1003 | USE_SVR4= | |
1004 | USE_AIX= | |
1005 | USE_SUN= | |
1006 | USE_SOLARIS= | |
1007 | USE_SUNOS= | |
1008 | USE_ALPHA= | |
1009 | USE_OSF= | |
1010 | USE_BSD= | |
1011 | USE_FREEBSD= | |
95c8801c | 1012 | USE_OPENBSD= |
f6bcfd97 | 1013 | USE_NETBSD= |
10f2d63a VZ |
1014 | USE_VMS= |
1015 | USE_ULTRIX= | |
1016 | USE_CYGWIN= | |
1017 | USE_MINGW= | |
1018 | USE_DATA_GENERAL= | |
1019 | ||
ab9b9eab VZ |
1020 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 |
1021 | ||
1e6feb95 | 1022 | ALL_TOOLKITS="CYGWIN GTK MAC MGL MINGW MOTIF PM WINE" |
10f2d63a VZ |
1023 | |
1024 | DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1025 | DEFAULT_wxUSE_MAC=0 |
1026 | DEFAULT_wxUSE_MGL=0 | |
10f2d63a VZ |
1027 | DEFAULT_wxUSE_MOTIF=0 |
1028 | DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1029 | DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1030 | DEFAULT_wxUSE_WINE=0 |
10f2d63a VZ |
1031 | |
1032 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1033 | DEFAULT_DEFAULT_wxUSE_MAC=0 |
1034 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
10f2d63a VZ |
1035 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 |
1036 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1037 | DEFAULT_DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1038 | DEFAULT_DEFAULT_wxUSE_WINE=0 |
10f2d63a | 1039 | |
d6a55c4b VZ |
1040 | PROGRAM_EXT= |
1041 | ||
10f2d63a VZ |
1042 | case "${host}" in |
1043 | *-hp-hpux* ) | |
1044 | USE_HPUX=1 | |
1045 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1046 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
698dcdb6 | 1047 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1048 | #define __HPUX__ 1 |
1049 | EOF | |
1050 | ||
1051 | ;; | |
1052 | *-*-linux* ) | |
1053 | USE_LINUX=1 | |
698dcdb6 | 1054 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1055 | #define __LINUX__ 1 |
1056 | EOF | |
1057 | ||
1058 | TMP=`uname -m` | |
1059 | if test "x$TMP" = "xalpha"; then | |
1060 | USE_ALPHA=1 | |
698dcdb6 | 1061 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1062 | #define __ALPHA__ 1 |
1063 | EOF | |
1064 | ||
1065 | fi | |
1066 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1067 | ;; | |
1068 | *-*-irix5* | *-*-irix6* ) | |
1069 | USE_SGI=1 | |
1070 | USE_SVR4=1 | |
698dcdb6 | 1071 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1072 | #define __SGI__ 1 |
1073 | EOF | |
1074 | ||
698dcdb6 | 1075 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1076 | #define __SVR4__ 1 |
1077 | EOF | |
1078 | ||
1079 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1080 | ;; | |
1081 | *-*-solaris2* ) | |
1082 | USE_SUN=1 | |
1083 | USE_SOLARIS=1 | |
1084 | USE_SVR4=1 | |
698dcdb6 | 1085 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1086 | #define __SUN__ 1 |
1087 | EOF | |
1088 | ||
698dcdb6 | 1089 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1090 | #define __SOLARIS__ 1 |
1091 | EOF | |
1092 | ||
698dcdb6 | 1093 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1094 | #define __SVR4__ 1 |
1095 | EOF | |
1096 | ||
1097 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1098 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1099 | ;; |
1100 | *-*-sunos4* ) | |
1101 | USE_SUN=1 | |
1102 | USE_SUNOS=1 | |
1103 | USE_BSD=1 | |
698dcdb6 | 1104 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1105 | #define __SUN__ 1 |
1106 | EOF | |
1107 | ||
698dcdb6 | 1108 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1109 | #define __SUNOS__ 1 |
1110 | EOF | |
1111 | ||
698dcdb6 | 1112 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1113 | #define __BSD__ 1 |
1114 | EOF | |
1115 | ||
1116 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1117 | ;; | |
f6bcfd97 | 1118 | *-*-freebsd*) |
10f2d63a VZ |
1119 | USE_BSD=1 |
1120 | USE_FREEBSD=1 | |
698dcdb6 | 1121 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1122 | #define __FREEBSD__ 1 |
1123 | EOF | |
1124 | ||
698dcdb6 | 1125 | cat >> confdefs.h <<\EOF |
10f2d63a | 1126 | #define __BSD__ 1 |
95c8801c VS |
1127 | EOF |
1128 | ||
1129 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1130 | ;; | |
1131 | *-*-openbsd*) | |
1132 | USE_BSD=1 | |
1133 | USE_OPENBSD=1 | |
698dcdb6 | 1134 | cat >> confdefs.h <<\EOF |
95c8801c VS |
1135 | #define __FREEBSD__ 1 |
1136 | EOF | |
1137 | ||
698dcdb6 | 1138 | cat >> confdefs.h <<\EOF |
95c8801c | 1139 | #define __OPENBSD__ 1 |
f6bcfd97 BP |
1140 | EOF |
1141 | ||
1142 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1143 | ;; | |
1144 | *-*-netbsd*) | |
1145 | USE_BSD=1 | |
1146 | USE_NETBSD=1 | |
698dcdb6 | 1147 | cat >> confdefs.h <<\EOF |
f6bcfd97 BP |
1148 | #define __FREEBSD__ 1 |
1149 | EOF | |
1150 | ||
698dcdb6 | 1151 | cat >> confdefs.h <<\EOF |
f6bcfd97 | 1152 | #define __NETBSD__ 1 |
10f2d63a VZ |
1153 | EOF |
1154 | ||
1155 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1156 | ;; | |
1157 | *-*-osf* ) | |
1158 | USE_ALPHA=1 | |
1159 | USE_OSF=1 | |
698dcdb6 | 1160 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1161 | #define __ALPHA__ 1 |
1162 | EOF | |
1163 | ||
698dcdb6 | 1164 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1165 | #define __OSF__ 1 |
1166 | EOF | |
1167 | ||
1168 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
f6bcfd97 | 1169 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1170 | ;; |
1171 | *-*-dgux5* ) | |
1172 | USE_ALPHA=1 | |
1173 | USE_SVR4=1 | |
698dcdb6 | 1174 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1175 | #define __ALPHA__ 1 |
1176 | EOF | |
1177 | ||
698dcdb6 | 1178 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1179 | #define __SVR4__ 1 |
1180 | EOF | |
1181 | ||
1182 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1183 | ;; | |
1184 | *-*-sysv5* ) | |
1185 | USE_SYSV=1 | |
1186 | USE_SVR4=1 | |
698dcdb6 | 1187 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1188 | #define __SYSV__ 1 |
1189 | EOF | |
1190 | ||
698dcdb6 | 1191 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1192 | #define __SVR4__ 1 |
1193 | EOF | |
1194 | ||
1195 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1196 | ;; | |
1197 | *-*-aix* ) | |
1198 | USE_AIX=1 | |
1199 | USE_SYSV=1 | |
1200 | USE_SVR4=1 | |
698dcdb6 | 1201 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1202 | #define __AIX__ 1 |
1203 | EOF | |
1204 | ||
698dcdb6 | 1205 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1206 | #define __SYSV__ 1 |
1207 | EOF | |
1208 | ||
698dcdb6 | 1209 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1210 | #define __SVR4__ 1 |
1211 | EOF | |
1212 | ||
1213 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1214 | ;; | |
1215 | ||
1c8183e2 | 1216 | *-*-cygwin* | *-*-mingw32* ) |
10f2d63a VZ |
1217 | USE_UNIX=0 |
1218 | USE_WIN32=1 | |
698dcdb6 | 1219 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1220 | #define __WIN32__ 1 |
1221 | EOF | |
1222 | ||
698dcdb6 | 1223 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1224 | #define __WIN95__ 1 |
1225 | EOF | |
1226 | ||
698dcdb6 | 1227 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1228 | #define __WINDOWS__ 1 |
1229 | EOF | |
1230 | ||
698dcdb6 | 1231 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1232 | #define __GNUWIN32__ 1 |
1233 | EOF | |
1234 | ||
698dcdb6 | 1235 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1236 | #define STRICT 1 |
1237 | EOF | |
1238 | ||
698dcdb6 | 1239 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1240 | #define WINVER 0x0400 |
1241 | EOF | |
1242 | ||
cf27ef00 | 1243 | PROGRAM_EXT=".exe" |
10f2d63a VZ |
1244 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
1245 | ;; | |
1246 | ||
1247 | *-pc-os2_emx ) | |
698dcdb6 | 1248 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1249 | #define __EMX__ 1 |
1250 | EOF | |
1251 | ||
cf27ef00 | 1252 | PROGRAM_EXT=".exe" |
e07802fc | 1253 | DEFAULT_DEFAULT_wxUSE_PM=1 |
10f2d63a VZ |
1254 | ;; |
1255 | ||
b4085ce6 GD |
1256 | *-*-darwin* ) |
1257 | USE_BSD=1 | |
1258 | USE_MAC=1 | |
698dcdb6 | 1259 | cat >> confdefs.h <<\EOF |
b4085ce6 GD |
1260 | #define __MAC__ 1 |
1261 | EOF | |
1262 | ||
698dcdb6 | 1263 | cat >> confdefs.h <<\EOF |
b4085ce6 GD |
1264 | #define __BSD__ 1 |
1265 | EOF | |
1266 | ||
698dcdb6 | 1267 | cat >> confdefs.h <<\EOF |
b4085ce6 GD |
1268 | #define __UNIX__ 1 |
1269 | EOF | |
1270 | ||
1271 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1272 | ;; | |
1273 | ||
b12915c1 VZ |
1274 | *-*-beos* ) |
1275 | USE_BEOS=1 | |
698dcdb6 | 1276 | cat >> confdefs.h <<\EOF |
b12915c1 VZ |
1277 | #define __BEOS__ 1 |
1278 | EOF | |
1279 | ||
1280 | ;; | |
1281 | ||
10f2d63a | 1282 | *) |
698dcdb6 | 1283 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } |
10f2d63a VZ |
1284 | esac |
1285 | ||
1286 | if test "$USE_UNIX" = 1 ; then | |
b12915c1 | 1287 | wxUSE_UNIX=yes |
698dcdb6 | 1288 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1289 | #define __UNIX__ 1 |
1290 | EOF | |
1291 | ||
698dcdb6 | 1292 | |
b12915c1 VZ |
1293 | SRC_SUBDIRS="$SRC_SUBDIRS unix" |
1294 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix" | |
1295 | fi | |
1296 | ||
1297 | if test "$USE_BEOS" = 1; then | |
1298 | SRC_SUBDIRS="$SRC_SUBDIRS be" | |
1299 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be" | |
10f2d63a VZ |
1300 | fi |
1301 | ||
1302 | if test "$USE_LINUX" = 1; then | |
698dcdb6 | 1303 | echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6 |
54276ccf | 1304 | echo "configure:1305: checking for gettext in -lc" >&5 |
698dcdb6 VZ |
1305 | ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'` |
1306 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1307 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 1308 | else |
698dcdb6 VZ |
1309 | ac_save_LIBS="$LIBS" |
1310 | LIBS="-lc $LIBS" | |
1311 | cat > conftest.$ac_ext <<EOF | |
54276ccf | 1312 | #line 1313 "configure" |
698dcdb6 VZ |
1313 | #include "confdefs.h" |
1314 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1315 | /* We use char because int might match the return type of a gcc2 | |
1316 | builtin and then its argument prototype would still apply. */ | |
1317 | char gettext(); | |
10f2d63a | 1318 | |
698dcdb6 VZ |
1319 | int main() { |
1320 | gettext() | |
1321 | ; return 0; } | |
1322 | EOF | |
54276ccf | 1323 | if { (eval echo configure:1324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
1324 | rm -rf conftest* |
1325 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 1326 | else |
698dcdb6 VZ |
1327 | echo "configure: failed program was:" >&5 |
1328 | cat conftest.$ac_ext >&5 | |
1329 | rm -rf conftest* | |
1330 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 1331 | fi |
698dcdb6 VZ |
1332 | rm -f conftest* |
1333 | LIBS="$ac_save_LIBS" | |
10f2d63a VZ |
1334 | |
1335 | fi | |
698dcdb6 VZ |
1336 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
1337 | echo "$ac_t""yes" 1>&6 | |
1338 | cat >> confdefs.h <<\EOF | |
1339 | #define wxHAVE_GLIBC2 1 | |
1340 | EOF | |
10f2d63a VZ |
1341 | |
1342 | else | |
698dcdb6 | 1343 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
1344 | fi |
1345 | ||
1346 | fi | |
1347 | ||
1e487827 | 1348 | |
1e487827 | 1349 | |
6232543b | 1350 | |
10f2d63a VZ |
1351 | wx_arg_cache_file="configarg.cache" |
1352 | echo "loading argument cache $wx_arg_cache_file" | |
1353 | rm -f ${wx_arg_cache_file}.tmp | |
1354 | touch ${wx_arg_cache_file}.tmp | |
1355 | touch ${wx_arg_cache_file} | |
698dcdb6 | 1356 | |
10f2d63a VZ |
1357 | |
1358 | DEBUG_CONFIGURE=0 | |
1359 | if test $DEBUG_CONFIGURE = 1; then | |
1e6feb95 VZ |
1360 | DEFAULT_wxUSE_UNIVERSAL=no |
1361 | ||
10f2d63a VZ |
1362 | DEFAULT_wxUSE_THREADS=yes |
1363 | ||
1364 | DEFAULT_wxUSE_SHARED=yes | |
00cf1208 | 1365 | DEFAULT_wxUSE_BURNT_NAME=no |
1e6feb95 | 1366 | DEFAULT_wxUSE_OPTIMISE=no |
10f2d63a VZ |
1367 | DEFAULT_wxUSE_PROFILE=no |
1368 | DEFAULT_wxUSE_NO_DEPS=no | |
1369 | DEFAULT_wxUSE_NO_RTTI=no | |
1370 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
1371 | DEFAULT_wxUSE_PERMISSIVE=no | |
1372 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1373 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1374 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1375 | DEFAULT_wxUSE_MEM_TRACING=no | |
1376 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1377 | DEFAULT_wxUSE_DMALLOC=no | |
1378 | DEFAULT_wxUSE_APPLE_IEEE=no | |
1379 | ||
1380 | DEFAULT_wxUSE_LOG=yes | |
1e6feb95 VZ |
1381 | DEFAULT_wxUSE_LOGWINDOW=no |
1382 | DEFAULT_wxUSE_LOGGUI=no | |
10f2d63a VZ |
1383 | |
1384 | DEFAULT_wxUSE_GUI=yes | |
1e6feb95 | 1385 | DEFAULT_wxUSE_CONTROLS=no |
10f2d63a VZ |
1386 | |
1387 | DEFAULT_wxUSE_ZLIB=no | |
1388 | DEFAULT_wxUSE_LIBPNG=no | |
1389 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 1390 | DEFAULT_wxUSE_LIBTIFF=no |
10f2d63a | 1391 | DEFAULT_wxUSE_ODBC=no |
3fed1840 | 1392 | DEFAULT_wxUSE_FREETYPE=no |
bdad4e7e | 1393 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1394 | |
eb4efbdc | 1395 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no |
4f3c5f06 | 1396 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
10f2d63a | 1397 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1398 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
1399 | DEFAULT_wxUSE_DATETIME=no | |
1400 | DEFAULT_wxUSE_TIMEDATE=no | |
1401 | DEFAULT_wxUSE_TIMER=no | |
1402 | DEFAULT_wxUSE_STOPWATCH=no | |
10f2d63a | 1403 | DEFAULT_wxUSE_FILE=no |
1e6feb95 | 1404 | DEFAULT_wxUSE_FFILE=no |
10f2d63a | 1405 | DEFAULT_wxUSE_TEXTFILE=no |
10f2d63a VZ |
1406 | DEFAULT_wxUSE_WAVE=no |
1407 | DEFAULT_wxUSE_INTL=no | |
1408 | DEFAULT_wxUSE_CONFIG=no | |
1e6feb95 | 1409 | DEFAULT_wxUSE_FONTMAP=no |
10f2d63a VZ |
1410 | DEFAULT_wxUSE_STREAMS=no |
1411 | DEFAULT_wxUSE_SOCKETS=no | |
1412 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
1413 | DEFAULT_wxUSE_SERIAL=no | |
1414 | DEFAULT_wxUSE_JOYSTICK=no | |
1415 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
1416 | DEFAULT_wxUSE_LONGLONG=no | |
e8f65ba6 | 1417 | DEFAULT_wxUSE_GEOMETRY=no |
10f2d63a VZ |
1418 | |
1419 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1420 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1421 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1422 | ||
1423 | DEFAULT_wxUSE_X_RESOURCES=no | |
1424 | DEFAULT_wxUSE_CLIPBOARD=no | |
1425 | DEFAULT_wxUSE_TOOLTIPS=no | |
1426 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
1427 | DEFAULT_wxUSE_SPLINES=no | |
1428 | ||
1429 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1430 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1431 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1432 | ||
1433 | DEFAULT_wxUSE_PROLOGIO=no | |
1434 | DEFAULT_wxUSE_RESOURCES=no | |
1435 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1436 | DEFAULT_wxUSE_IPC=no | |
1437 | DEFAULT_wxUSE_HELP=no | |
1438 | DEFAULT_wxUSE_WXTREE=no | |
1439 | DEFAULT_wxUSE_METAFILE=no | |
1e6feb95 | 1440 | DEFAULT_wxUSE_MIMETYPE=no |
10f2d63a VZ |
1441 | |
1442 | DEFAULT_wxUSE_COMMONDLGS=no | |
1e6feb95 VZ |
1443 | DEFAULT_wxUSE_CHOICEDLG=no |
1444 | DEFAULT_wxUSE_COLOURDLG=no | |
10f2d63a | 1445 | DEFAULT_wxUSE_DIRDLG=no |
1e6feb95 VZ |
1446 | DEFAULT_wxUSE_FILEDLG=no |
1447 | DEFAULT_wxUSE_FONTDLG=no | |
1448 | DEFAULT_wxUSE_MSGDLG=no | |
1449 | DEFAULT_wxUSE_NUMBERDLG=no | |
10f2d63a VZ |
1450 | DEFAULT_wxUSE_TEXTDLG=no |
1451 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
1452 | DEFAULT_wxUSE_PROGRESSDLG=no | |
1e6feb95 | 1453 | DEFAULT_wxUSE_MENUS=no |
10f2d63a VZ |
1454 | DEFAULT_wxUSE_MINIFRAME=no |
1455 | DEFAULT_wxUSE_HTML=no | |
24528b0c | 1456 | DEFAULT_wxUSE_FILESYSTEM=no |
10f2d63a VZ |
1457 | DEFAULT_wxUSE_FS_INET=no |
1458 | DEFAULT_wxUSE_FS_ZIP=no | |
1459 | DEFAULT_wxUSE_BUSYINFO=no | |
1460 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1e6feb95 | 1461 | DEFAULT_wxUSE_VALIDATORS=no |
10f2d63a VZ |
1462 | |
1463 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 | 1464 | DEFAULT_wxUSE_BUTTON=no |
10f2d63a | 1465 | DEFAULT_wxUSE_BMPBUTTON=no |
1e6feb95 VZ |
1466 | DEFAULT_wxUSE_CALCTRL=no |
1467 | DEFAULT_wxUSE_CARET=no | |
10f2d63a VZ |
1468 | DEFAULT_wxUSE_CHECKBOX=no |
1469 | DEFAULT_wxUSE_CHECKLST=no | |
1e6feb95 | 1470 | DEFAULT_wxUSE_CHOICE=no |
10f2d63a VZ |
1471 | DEFAULT_wxUSE_COMBOBOX=no |
1472 | DEFAULT_wxUSE_GAUGE=no | |
1473 | DEFAULT_wxUSE_GRID=no | |
1474 | DEFAULT_wxUSE_NEW_GRID=no | |
1475 | DEFAULT_wxUSE_IMAGLIST=no | |
1476 | DEFAULT_wxUSE_LISTBOX=no | |
1477 | DEFAULT_wxUSE_LISTCTRL=no | |
1478 | DEFAULT_wxUSE_NOTEBOOK=no | |
1479 | DEFAULT_wxUSE_RADIOBOX=no | |
1480 | DEFAULT_wxUSE_RADIOBTN=no | |
1481 | DEFAULT_wxUSE_SASH=no | |
1482 | DEFAULT_wxUSE_SCROLLBAR=no | |
1483 | DEFAULT_wxUSE_SLIDER=no | |
1484 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 1485 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
1486 | DEFAULT_wxUSE_SPLITTER=no |
1487 | DEFAULT_wxUSE_STATBMP=no | |
1488 | DEFAULT_wxUSE_STATBOX=no | |
1489 | DEFAULT_wxUSE_STATLINE=no | |
1e6feb95 | 1490 | DEFAULT_wxUSE_STATTEXT=no |
10f2d63a VZ |
1491 | DEFAULT_wxUSE_STATUSBAR=yes |
1492 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1493 | DEFAULT_wxUSE_TEXTCTRL=no |
1db8dc4a | 1494 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 1495 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
1496 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
1497 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
1498 | DEFAULT_wxUSE_TREECTRL=no |
1499 | ||
1500 | DEFAULT_wxUSE_UNICODE=no | |
1501 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1502 | ||
0046ff7c | 1503 | DEFAULT_wxUSE_IMAGE=no |
10f2d63a VZ |
1504 | DEFAULT_wxUSE_GIF=no |
1505 | DEFAULT_wxUSE_PCX=no | |
1506 | DEFAULT_wxUSE_PNM=no | |
0046ff7c | 1507 | DEFAULT_wxUSE_XPM=no |
10f2d63a | 1508 | else |
1e6feb95 VZ |
1509 | DEFAULT_wxUSE_UNIVERSAL=no |
1510 | ||
10f2d63a VZ |
1511 | DEFAULT_wxUSE_THREADS=yes |
1512 | ||
1513 | DEFAULT_wxUSE_SHARED=yes | |
00cf1208 | 1514 | DEFAULT_wxUSE_BURNT_NAME=no |
10f2d63a VZ |
1515 | DEFAULT_wxUSE_OPTIMISE=yes |
1516 | DEFAULT_wxUSE_PROFILE=no | |
1517 | DEFAULT_wxUSE_NO_DEPS=no | |
1518 | DEFAULT_wxUSE_NO_RTTI=no | |
1519 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
1520 | DEFAULT_wxUSE_PERMISSIVE=no | |
1521 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1522 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1523 | DEFAULT_wxUSE_DEBUG_GDB=no | |
1524 | DEFAULT_wxUSE_MEM_TRACING=no | |
1525 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1526 | DEFAULT_wxUSE_DMALLOC=no | |
1527 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
1528 | ||
1529 | DEFAULT_wxUSE_LOG=yes | |
1530 | ||
1531 | DEFAULT_wxUSE_GUI=yes | |
1532 | ||
1533 | DEFAULT_wxUSE_ZLIB=yes | |
1534 | DEFAULT_wxUSE_LIBPNG=yes | |
1535 | DEFAULT_wxUSE_LIBJPEG=yes | |
b47c832e | 1536 | DEFAULT_wxUSE_LIBTIFF=yes |
16b52fa1 | 1537 | DEFAULT_wxUSE_ODBC=no |
3fed1840 | 1538 | DEFAULT_wxUSE_FREETYPE=no |
bdad4e7e | 1539 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1540 | |
eb4efbdc | 1541 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes |
4f3c5f06 | 1542 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
10f2d63a | 1543 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1544 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
1545 | DEFAULT_wxUSE_DATETIME=yes | |
1546 | DEFAULT_wxUSE_TIMEDATE=no | |
1547 | DEFAULT_wxUSE_TIMER=yes | |
1548 | DEFAULT_wxUSE_STOPWATCH=yes | |
10f2d63a | 1549 | DEFAULT_wxUSE_FILE=yes |
1e6feb95 | 1550 | DEFAULT_wxUSE_FFILE=yes |
10f2d63a | 1551 | DEFAULT_wxUSE_TEXTFILE=yes |
10f2d63a VZ |
1552 | DEFAULT_wxUSE_WAVE=no |
1553 | DEFAULT_wxUSE_INTL=yes | |
1554 | DEFAULT_wxUSE_CONFIG=yes | |
1e6feb95 | 1555 | DEFAULT_wxUSE_FONTMAP=yes |
10f2d63a VZ |
1556 | DEFAULT_wxUSE_STREAMS=yes |
1557 | DEFAULT_wxUSE_SOCKETS=yes | |
1558 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
1559 | DEFAULT_wxUSE_SERIAL=yes | |
1560 | DEFAULT_wxUSE_JOYSTICK=yes | |
1561 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
b685cd9b | 1562 | DEFAULT_wxUSE_LONGLONG=yes |
e8f65ba6 | 1563 | DEFAULT_wxUSE_GEOMETRY=yes |
10f2d63a VZ |
1564 | |
1565 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
1566 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
1567 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
1568 | ||
1569 | DEFAULT_wxUSE_X_RESOURCES=no | |
1570 | DEFAULT_wxUSE_CLIPBOARD=yes | |
1571 | DEFAULT_wxUSE_TOOLTIPS=yes | |
1572 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
1573 | DEFAULT_wxUSE_SPLINES=yes | |
1574 | ||
1575 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
1576 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
1577 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
1578 | ||
1579 | DEFAULT_wxUSE_PROLOGIO=yes | |
1580 | DEFAULT_wxUSE_RESOURCES=yes | |
1581 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
1582 | DEFAULT_wxUSE_IPC=yes | |
1583 | DEFAULT_wxUSE_HELP=yes | |
1584 | DEFAULT_wxUSE_WXTREE=yes | |
1585 | DEFAULT_wxUSE_METAFILE=yes | |
1e6feb95 | 1586 | DEFAULT_wxUSE_MIMETYPE=yes |
10f2d63a VZ |
1587 | |
1588 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1e6feb95 VZ |
1589 | DEFAULT_wxUSE_CHOICEDLG=yes |
1590 | DEFAULT_wxUSE_COLOURDLG=yes | |
10f2d63a | 1591 | DEFAULT_wxUSE_DIRDLG=yes |
1e6feb95 VZ |
1592 | DEFAULT_wxUSE_FILEDLG=yes |
1593 | DEFAULT_wxUSE_FONTDLG=yes | |
1594 | DEFAULT_wxUSE_MSGDLG=yes | |
1595 | DEFAULT_wxUSE_NUMBERDLG=yes | |
10f2d63a VZ |
1596 | DEFAULT_wxUSE_TEXTDLG=yes |
1597 | DEFAULT_wxUSE_STARTUP_TIPS=yes | |
1598 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
1e6feb95 | 1599 | DEFAULT_wxUSE_MENUS=yes |
10f2d63a VZ |
1600 | DEFAULT_wxUSE_MINIFRAME=yes |
1601 | DEFAULT_wxUSE_HTML=yes | |
24528b0c | 1602 | DEFAULT_wxUSE_FILESYSTEM=yes |
10f2d63a VZ |
1603 | DEFAULT_wxUSE_FS_INET=yes |
1604 | DEFAULT_wxUSE_FS_ZIP=yes | |
1605 | DEFAULT_wxUSE_BUSYINFO=yes | |
1606 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
1607 | DEFAULT_wxUSE_VALIDATORS=yes | |
1608 | ||
1609 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 | 1610 | DEFAULT_wxUSE_BUTTON=yes |
10f2d63a | 1611 | DEFAULT_wxUSE_BMPBUTTON=yes |
1e6feb95 VZ |
1612 | DEFAULT_wxUSE_CALCTRL=yes |
1613 | DEFAULT_wxUSE_CARET=yes | |
10f2d63a VZ |
1614 | DEFAULT_wxUSE_CHECKBOX=yes |
1615 | DEFAULT_wxUSE_CHECKLST=yes | |
1616 | DEFAULT_wxUSE_CHOICE=yes | |
1617 | DEFAULT_wxUSE_COMBOBOX=yes | |
1618 | DEFAULT_wxUSE_GAUGE=yes | |
1619 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 1620 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
1621 | DEFAULT_wxUSE_IMAGLIST=yes |
1622 | DEFAULT_wxUSE_LISTBOX=yes | |
1623 | DEFAULT_wxUSE_LISTCTRL=yes | |
1624 | DEFAULT_wxUSE_NOTEBOOK=yes | |
1625 | DEFAULT_wxUSE_RADIOBOX=yes | |
1626 | DEFAULT_wxUSE_RADIOBTN=yes | |
1627 | DEFAULT_wxUSE_SASH=yes | |
1628 | DEFAULT_wxUSE_SCROLLBAR=yes | |
1629 | DEFAULT_wxUSE_SLIDER=yes | |
1630 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 1631 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
1632 | DEFAULT_wxUSE_SPLITTER=yes |
1633 | DEFAULT_wxUSE_STATBMP=yes | |
1634 | DEFAULT_wxUSE_STATBOX=yes | |
1635 | DEFAULT_wxUSE_STATLINE=yes | |
1e6feb95 | 1636 | DEFAULT_wxUSE_STATTEXT=yes |
10f2d63a VZ |
1637 | DEFAULT_wxUSE_STATUSBAR=yes |
1638 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1639 | DEFAULT_wxUSE_TEXTCTRL=yes |
1db8dc4a | 1640 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 1641 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
1642 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
1643 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
1644 | DEFAULT_wxUSE_TREECTRL=yes |
1645 | ||
1646 | DEFAULT_wxUSE_UNICODE=no | |
1647 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1648 | ||
0046ff7c | 1649 | DEFAULT_wxUSE_IMAGE=yes |
10f2d63a VZ |
1650 | DEFAULT_wxUSE_GIF=yes |
1651 | DEFAULT_wxUSE_PCX=yes | |
1652 | DEFAULT_wxUSE_PNM=yes | |
0046ff7c | 1653 | DEFAULT_wxUSE_XPM=yes |
10f2d63a VZ |
1654 | fi |
1655 | ||
698dcdb6 VZ |
1656 | |
1657 | ||
10f2d63a VZ |
1658 | for toolkit in `echo $ALL_TOOLKITS`; do |
1659 | LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}` | |
1660 | if test "x$LINE" != x ; then | |
1661 | has_toolkit_in_cache=1 | |
1662 | eval "DEFAULT_$LINE" | |
1663 | eval "CACHE_$toolkit=1" | |
1664 | fi | |
1665 | done | |
1666 | ||
698dcdb6 VZ |
1667 | |
1668 | ||
1669 | echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6 | |
54276ccf | 1670 | echo "configure:1671: checking for --enable-gui" >&5 |
10f2d63a VZ |
1671 | no_cache=0 |
1672 | # Check whether --enable-gui or --disable-gui was given. | |
1673 | if test "${enable_gui+set}" = set; then | |
1674 | enableval="$enable_gui" | |
698dcdb6 | 1675 | |
10f2d63a VZ |
1676 | if test "$enableval" = yes; then |
1677 | ac_cv_use_gui='wxUSE_GUI=yes' | |
1678 | else | |
1679 | ac_cv_use_gui='wxUSE_GUI=no' | |
1680 | fi | |
698dcdb6 | 1681 | |
10f2d63a | 1682 | else |
698dcdb6 | 1683 | |
10f2d63a VZ |
1684 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` |
1685 | if test "x$LINE" != x ; then | |
1686 | eval "DEFAULT_$LINE" | |
1687 | else | |
1688 | no_cache=1 | |
1689 | fi | |
1690 | ||
1691 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
698dcdb6 VZ |
1692 | |
1693 | fi | |
10f2d63a VZ |
1694 | |
1695 | ||
1696 | eval "$ac_cv_use_gui" | |
1697 | if test "$no_cache" != 1; then | |
1698 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
1699 | fi | |
1700 | ||
1701 | if test "$wxUSE_GUI" = yes; then | |
698dcdb6 | 1702 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 1703 | else |
698dcdb6 | 1704 | echo "$ac_t""no" 1>&6 |
10f2d63a | 1705 | fi |
698dcdb6 | 1706 | |
10f2d63a | 1707 | |
b12915c1 | 1708 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a | 1709 | |
1e6feb95 VZ |
1710 | |
1711 | echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6 | |
54276ccf | 1712 | echo "configure:1713: checking for --enable-universal" >&5 |
1e6feb95 VZ |
1713 | no_cache=0 |
1714 | # Check whether --enable-universal or --disable-universal was given. | |
1715 | if test "${enable_universal+set}" = set; then | |
1716 | enableval="$enable_universal" | |
1717 | ||
1718 | if test "$enableval" = yes; then | |
1719 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
1720 | else | |
1721 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
1722 | fi | |
1723 | ||
1724 | else | |
1725 | ||
1726 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
1727 | if test "x$LINE" != x ; then | |
1728 | eval "DEFAULT_$LINE" | |
1729 | else | |
1730 | no_cache=1 | |
1731 | fi | |
1732 | ||
1733 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
1734 | ||
1735 | fi | |
1736 | ||
1737 | ||
1738 | eval "$ac_cv_use_universal" | |
1739 | if test "$no_cache" != 1; then | |
1740 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
1741 | fi | |
1742 | ||
1743 | if test "$wxUSE_UNIVERSAL" = yes; then | |
1744 | echo "$ac_t""yes" 1>&6 | |
1745 | else | |
1746 | echo "$ac_t""no" 1>&6 | |
1747 | fi | |
1748 | ||
10f2d63a VZ |
1749 | # Check whether --with-gtk or --without-gtk was given. |
1750 | if test "${with_gtk+set}" = set; then | |
1751 | withval="$with_gtk" | |
1752 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1753 | fi |
10f2d63a VZ |
1754 | |
1755 | # Check whether --with-motif or --without-motif was given. | |
1756 | if test "${with_motif+set}" = set; then | |
1757 | withval="$with_motif" | |
1758 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1759 | fi |
10f2d63a | 1760 | |
b4085ce6 GD |
1761 | # Check whether --with-mac or --without-mac was given. |
1762 | if test "${with_mac+set}" = set; then | |
1763 | withval="$with_mac" | |
1764 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
698dcdb6 | 1765 | fi |
b4085ce6 | 1766 | |
10f2d63a VZ |
1767 | # Check whether --with-wine or --without-wine was given. |
1768 | if test "${with_wine+set}" = set; then | |
1769 | withval="$with_wine" | |
1770 | wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1771 | fi |
10f2d63a VZ |
1772 | |
1773 | # Check whether --with-cygwin or --without-cygwin was given. | |
1774 | if test "${with_cygwin+set}" = set; then | |
1775 | withval="$with_cygwin" | |
1776 | wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1777 | fi |
10f2d63a VZ |
1778 | |
1779 | # Check whether --with-mingw or --without-mingw was given. | |
1780 | if test "${with_mingw+set}" = set; then | |
1781 | withval="$with_mingw" | |
1782 | wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1783 | fi |
10f2d63a | 1784 | |
e07802fc VZ |
1785 | # Check whether --with-pm or --without-pm was given. |
1786 | if test "${with_pm+set}" = set; then | |
1787 | withval="$with_pm" | |
1788 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
698dcdb6 VZ |
1789 | fi |
1790 | ||
1e6feb95 VZ |
1791 | # Check whether --with-mgl or --without-mgl was given. |
1792 | if test "${with_mgl+set}" = set; then | |
1793 | withval="$with_mgl" | |
1794 | wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1 | |
1795 | fi | |
1796 | ||
10f2d63a | 1797 | |
8168de4c VZ |
1798 | # Check whether --enable-gtk2 or --disable-gtk2 was given. |
1799 | if test "${enable_gtk2+set}" = set; then | |
1800 | enableval="$enable_gtk2" | |
1801 | wxUSE_GTK2=1 | |
10f2d63a | 1802 | else |
8168de4c | 1803 | wxUSE_GTK2=0 |
698dcdb6 VZ |
1804 | fi |
1805 | ||
703e0a69 | 1806 | |
1e487827 | 1807 | |
698dcdb6 | 1808 | echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6 |
54276ccf | 1809 | echo "configure:1810: checking for --with-libpng" >&5 |
698dcdb6 VZ |
1810 | no_cache=0 |
1811 | # Check whether --with-libpng or --without-libpng was given. | |
b12915c1 VZ |
1812 | if test "${with_libpng+set}" = set; then |
1813 | withval="$with_libpng" | |
698dcdb6 | 1814 | |
10f2d63a | 1815 | if test "$withval" = yes; then |
b12915c1 | 1816 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
422107f9 | 1817 | elif test "$withval" = no; then |
b12915c1 | 1818 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
422107f9 VZ |
1819 | elif test "$withval" = sys; then |
1820 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
1821 | else | |
698dcdb6 | 1822 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1823 | fi |
698dcdb6 | 1824 | |
10f2d63a | 1825 | else |
698dcdb6 | 1826 | |
b12915c1 | 1827 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
1828 | if test "x$LINE" != x ; then |
1829 | eval "DEFAULT_$LINE" | |
1830 | else | |
1831 | no_cache=1 | |
1832 | fi | |
1833 | ||
b12915c1 | 1834 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
698dcdb6 VZ |
1835 | |
1836 | fi | |
10f2d63a VZ |
1837 | |
1838 | ||
b12915c1 | 1839 | eval "$ac_cv_use_libpng" |
10f2d63a | 1840 | if test "$no_cache" != 1; then |
b12915c1 | 1841 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1842 | fi |
1843 | ||
b12915c1 | 1844 | if test "$wxUSE_LIBPNG" = yes; then |
698dcdb6 | 1845 | echo "$ac_t""yes" 1>&6 |
422107f9 | 1846 | elif test "$wxUSE_LIBPNG" = no; then |
698dcdb6 | 1847 | echo "$ac_t""no" 1>&6 |
422107f9 | 1848 | elif test "$wxUSE_LIBPNG" = sys; then |
698dcdb6 | 1849 | echo "$ac_t""system version" 1>&6 |
422107f9 | 1850 | else |
698dcdb6 | 1851 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1852 | fi |
698dcdb6 | 1853 | |
10f2d63a | 1854 | |
698dcdb6 | 1855 | echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6 |
54276ccf | 1856 | echo "configure:1857: checking for --with-libjpeg" >&5 |
10f2d63a | 1857 | no_cache=0 |
698dcdb6 | 1858 | # Check whether --with-libjpeg or --without-libjpeg was given. |
b12915c1 VZ |
1859 | if test "${with_libjpeg+set}" = set; then |
1860 | withval="$with_libjpeg" | |
698dcdb6 | 1861 | |
10f2d63a | 1862 | if test "$withval" = yes; then |
b12915c1 | 1863 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
422107f9 | 1864 | elif test "$withval" = no; then |
b12915c1 | 1865 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
422107f9 VZ |
1866 | elif test "$withval" = sys; then |
1867 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
1868 | else | |
698dcdb6 | 1869 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1870 | fi |
698dcdb6 | 1871 | |
10f2d63a | 1872 | else |
698dcdb6 | 1873 | |
b12915c1 | 1874 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
1875 | if test "x$LINE" != x ; then |
1876 | eval "DEFAULT_$LINE" | |
1877 | else | |
1878 | no_cache=1 | |
1879 | fi | |
1880 | ||
b12915c1 | 1881 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
698dcdb6 VZ |
1882 | |
1883 | fi | |
10f2d63a VZ |
1884 | |
1885 | ||
b12915c1 | 1886 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 1887 | if test "$no_cache" != 1; then |
b12915c1 | 1888 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1889 | fi |
1890 | ||
b12915c1 | 1891 | if test "$wxUSE_LIBJPEG" = yes; then |
698dcdb6 | 1892 | echo "$ac_t""yes" 1>&6 |
422107f9 | 1893 | elif test "$wxUSE_LIBJPEG" = no; then |
698dcdb6 | 1894 | echo "$ac_t""no" 1>&6 |
422107f9 | 1895 | elif test "$wxUSE_LIBJPEG" = sys; then |
698dcdb6 | 1896 | echo "$ac_t""system version" 1>&6 |
422107f9 | 1897 | else |
698dcdb6 | 1898 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1899 | fi |
698dcdb6 | 1900 | |
10f2d63a | 1901 | |
698dcdb6 | 1902 | echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6 |
54276ccf | 1903 | echo "configure:1904: checking for --with-libtiff" >&5 |
10f2d63a | 1904 | no_cache=0 |
698dcdb6 | 1905 | # Check whether --with-libtiff or --without-libtiff was given. |
b12915c1 VZ |
1906 | if test "${with_libtiff+set}" = set; then |
1907 | withval="$with_libtiff" | |
698dcdb6 | 1908 | |
10f2d63a | 1909 | if test "$withval" = yes; then |
b12915c1 | 1910 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
0dcf9893 | 1911 | elif test "$withval" = no; then |
b12915c1 | 1912 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
0dcf9893 VZ |
1913 | elif test "$withval" = sys; then |
1914 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
1915 | else | |
698dcdb6 | 1916 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1917 | fi |
698dcdb6 | 1918 | |
10f2d63a | 1919 | else |
698dcdb6 | 1920 | |
b12915c1 | 1921 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
1922 | if test "x$LINE" != x ; then |
1923 | eval "DEFAULT_$LINE" | |
1924 | else | |
1925 | no_cache=1 | |
1926 | fi | |
1927 | ||
b12915c1 | 1928 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
698dcdb6 VZ |
1929 | |
1930 | fi | |
10f2d63a VZ |
1931 | |
1932 | ||
b12915c1 | 1933 | eval "$ac_cv_use_libtiff" |
10f2d63a | 1934 | if test "$no_cache" != 1; then |
b12915c1 | 1935 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1936 | fi |
1937 | ||
b12915c1 | 1938 | if test "$wxUSE_LIBTIFF" = yes; then |
698dcdb6 | 1939 | echo "$ac_t""yes" 1>&6 |
0dcf9893 | 1940 | elif test "$wxUSE_LIBTIFF" = no; then |
698dcdb6 | 1941 | echo "$ac_t""no" 1>&6 |
0dcf9893 | 1942 | elif test "$wxUSE_LIBTIFF" = sys; then |
698dcdb6 | 1943 | echo "$ac_t""system version" 1>&6 |
0dcf9893 | 1944 | else |
698dcdb6 | 1945 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1946 | fi |
698dcdb6 | 1947 | |
10f2d63a | 1948 | |
698dcdb6 | 1949 | echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6 |
54276ccf | 1950 | echo "configure:1951: checking for --with-freetype" >&5 |
3fed1840 | 1951 | no_cache=0 |
698dcdb6 | 1952 | # Check whether --with-freetype or --without-freetype was given. |
3fed1840 RR |
1953 | if test "${with_freetype+set}" = set; then |
1954 | withval="$with_freetype" | |
698dcdb6 | 1955 | |
3fed1840 RR |
1956 | if test "$withval" = yes; then |
1957 | ac_cv_use_freetype='wxUSE_FREETYPE=yes' | |
1958 | elif test "$withval" = no; then | |
1959 | ac_cv_use_freetype='wxUSE_FREETYPE=no' | |
1960 | elif test "$withval" = sys; then | |
1961 | ac_cv_use_freetype='wxUSE_FREETYPE=sys' | |
1962 | else | |
698dcdb6 | 1963 | { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; } |
3fed1840 | 1964 | fi |
698dcdb6 | 1965 | |
3fed1840 | 1966 | else |
698dcdb6 | 1967 | |
3fed1840 RR |
1968 | LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}` |
1969 | if test "x$LINE" != x ; then | |
1970 | eval "DEFAULT_$LINE" | |
1971 | else | |
1972 | no_cache=1 | |
1973 | fi | |
1974 | ||
1975 | ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE | |
698dcdb6 VZ |
1976 | |
1977 | fi | |
3fed1840 RR |
1978 | |
1979 | ||
1980 | eval "$ac_cv_use_freetype" | |
1981 | if test "$no_cache" != 1; then | |
1982 | echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp | |
1983 | fi | |
1984 | ||
1985 | if test "$wxUSE_FREETYPE" = yes; then | |
698dcdb6 | 1986 | echo "$ac_t""yes" 1>&6 |
3fed1840 | 1987 | elif test "$wxUSE_FREETYPE" = no; then |
698dcdb6 | 1988 | echo "$ac_t""no" 1>&6 |
3fed1840 | 1989 | elif test "$wxUSE_FREETYPE" = sys; then |
698dcdb6 | 1990 | echo "$ac_t""system version" 1>&6 |
3fed1840 | 1991 | else |
698dcdb6 | 1992 | { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; } |
3fed1840 | 1993 | fi |
698dcdb6 | 1994 | |
3fed1840 | 1995 | |
698dcdb6 | 1996 | echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6 |
54276ccf | 1997 | echo "configure:1998: checking for --with-opengl" >&5 |
10f2d63a | 1998 | no_cache=0 |
698dcdb6 | 1999 | # Check whether --with-opengl or --without-opengl was given. |
b12915c1 VZ |
2000 | if test "${with_opengl+set}" = set; then |
2001 | withval="$with_opengl" | |
698dcdb6 | 2002 | |
10f2d63a | 2003 | if test "$withval" = yes; then |
b12915c1 | 2004 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 2005 | else |
b12915c1 | 2006 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a | 2007 | fi |
698dcdb6 | 2008 | |
10f2d63a | 2009 | else |
698dcdb6 | 2010 | |
b12915c1 | 2011 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` |
10f2d63a VZ |
2012 | if test "x$LINE" != x ; then |
2013 | eval "DEFAULT_$LINE" | |
2014 | else | |
2015 | no_cache=1 | |
2016 | fi | |
2017 | ||
b12915c1 | 2018 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
698dcdb6 VZ |
2019 | |
2020 | fi | |
10f2d63a VZ |
2021 | |
2022 | ||
b12915c1 | 2023 | eval "$ac_cv_use_opengl" |
10f2d63a | 2024 | if test "$no_cache" != 1; then |
b12915c1 | 2025 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2026 | fi |
2027 | ||
b12915c1 | 2028 | if test "$wxUSE_OPENGL" = yes; then |
698dcdb6 | 2029 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2030 | else |
698dcdb6 | 2031 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2032 | fi |
698dcdb6 | 2033 | |
10f2d63a | 2034 | |
b12915c1 VZ |
2035 | fi |
2036 | ||
1e487827 | 2037 | |
698dcdb6 | 2038 | echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6 |
54276ccf | 2039 | echo "configure:2040: checking for --with-dmalloc" >&5 |
698dcdb6 VZ |
2040 | no_cache=0 |
2041 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
b12915c1 VZ |
2042 | if test "${with_dmalloc+set}" = set; then |
2043 | withval="$with_dmalloc" | |
698dcdb6 | 2044 | |
c7a2bf27 | 2045 | if test "$withval" = yes; then |
b12915c1 | 2046 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 2047 | else |
b12915c1 | 2048 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 | 2049 | fi |
698dcdb6 | 2050 | |
c7a2bf27 | 2051 | else |
698dcdb6 | 2052 | |
b12915c1 | 2053 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
2054 | if test "x$LINE" != x ; then |
2055 | eval "DEFAULT_$LINE" | |
2056 | else | |
2057 | no_cache=1 | |
2058 | fi | |
2059 | ||
b12915c1 | 2060 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
698dcdb6 VZ |
2061 | |
2062 | fi | |
c7a2bf27 RR |
2063 | |
2064 | ||
b12915c1 | 2065 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 2066 | if test "$no_cache" != 1; then |
b12915c1 | 2067 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
2068 | fi |
2069 | ||
b12915c1 | 2070 | if test "$wxUSE_DMALLOC" = yes; then |
698dcdb6 | 2071 | echo "$ac_t""yes" 1>&6 |
c7a2bf27 | 2072 | else |
698dcdb6 | 2073 | echo "$ac_t""no" 1>&6 |
c7a2bf27 | 2074 | fi |
698dcdb6 | 2075 | |
c7a2bf27 | 2076 | |
698dcdb6 | 2077 | echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6 |
54276ccf | 2078 | echo "configure:2079: checking for --with-zlib" >&5 |
10f2d63a | 2079 | no_cache=0 |
698dcdb6 | 2080 | # Check whether --with-zlib or --without-zlib was given. |
b12915c1 VZ |
2081 | if test "${with_zlib+set}" = set; then |
2082 | withval="$with_zlib" | |
698dcdb6 | 2083 | |
10f2d63a | 2084 | if test "$withval" = yes; then |
b12915c1 | 2085 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
422107f9 | 2086 | elif test "$withval" = no; then |
b12915c1 | 2087 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
422107f9 VZ |
2088 | elif test "$withval" = sys; then |
2089 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
2090 | else | |
698dcdb6 | 2091 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 2092 | fi |
698dcdb6 | 2093 | |
10f2d63a | 2094 | else |
698dcdb6 | 2095 | |
b12915c1 | 2096 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
2097 | if test "x$LINE" != x ; then |
2098 | eval "DEFAULT_$LINE" | |
2099 | else | |
2100 | no_cache=1 | |
2101 | fi | |
2102 | ||
b12915c1 | 2103 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
698dcdb6 VZ |
2104 | |
2105 | fi | |
10f2d63a VZ |
2106 | |
2107 | ||
b12915c1 | 2108 | eval "$ac_cv_use_zlib" |
10f2d63a | 2109 | if test "$no_cache" != 1; then |
b12915c1 | 2110 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2111 | fi |
2112 | ||
b12915c1 | 2113 | if test "$wxUSE_ZLIB" = yes; then |
698dcdb6 | 2114 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2115 | elif test "$wxUSE_ZLIB" = no; then |
698dcdb6 | 2116 | echo "$ac_t""no" 1>&6 |
422107f9 | 2117 | elif test "$wxUSE_ZLIB" = sys; then |
698dcdb6 | 2118 | echo "$ac_t""system version" 1>&6 |
422107f9 | 2119 | else |
698dcdb6 | 2120 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 2121 | fi |
698dcdb6 | 2122 | |
10f2d63a | 2123 | |
698dcdb6 | 2124 | echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6 |
54276ccf | 2125 | echo "configure:2126: checking for --with-odbc" >&5 |
10f2d63a | 2126 | no_cache=0 |
698dcdb6 | 2127 | # Check whether --with-odbc or --without-odbc was given. |
10f2d63a VZ |
2128 | if test "${with_odbc+set}" = set; then |
2129 | withval="$with_odbc" | |
698dcdb6 | 2130 | |
10f2d63a VZ |
2131 | if test "$withval" = yes; then |
2132 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
2133 | else | |
2134 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
2135 | fi | |
698dcdb6 | 2136 | |
10f2d63a | 2137 | else |
698dcdb6 | 2138 | |
10f2d63a VZ |
2139 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` |
2140 | if test "x$LINE" != x ; then | |
2141 | eval "DEFAULT_$LINE" | |
2142 | else | |
2143 | no_cache=1 | |
2144 | fi | |
2145 | ||
2146 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
698dcdb6 VZ |
2147 | |
2148 | fi | |
10f2d63a VZ |
2149 | |
2150 | ||
2151 | eval "$ac_cv_use_odbc" | |
2152 | if test "$no_cache" != 1; then | |
2153 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
2154 | fi | |
2155 | ||
2156 | if test "$wxUSE_ODBC" = yes; then | |
698dcdb6 | 2157 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2158 | else |
698dcdb6 | 2159 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2160 | fi |
698dcdb6 VZ |
2161 | |
2162 | ||
10f2d63a | 2163 | |
698dcdb6 VZ |
2164 | |
2165 | ||
2166 | echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6 | |
54276ccf | 2167 | echo "configure:2168: checking for --enable-shared" >&5 |
10f2d63a VZ |
2168 | no_cache=0 |
2169 | # Check whether --enable-shared or --disable-shared was given. | |
2170 | if test "${enable_shared+set}" = set; then | |
2171 | enableval="$enable_shared" | |
698dcdb6 | 2172 | |
10f2d63a VZ |
2173 | if test "$enableval" = yes; then |
2174 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
2175 | else | |
2176 | ac_cv_use_shared='wxUSE_SHARED=no' | |
2177 | fi | |
698dcdb6 | 2178 | |
10f2d63a | 2179 | else |
698dcdb6 | 2180 | |
10f2d63a VZ |
2181 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` |
2182 | if test "x$LINE" != x ; then | |
2183 | eval "DEFAULT_$LINE" | |
2184 | else | |
2185 | no_cache=1 | |
2186 | fi | |
2187 | ||
2188 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
698dcdb6 VZ |
2189 | |
2190 | fi | |
10f2d63a VZ |
2191 | |
2192 | ||
2193 | eval "$ac_cv_use_shared" | |
2194 | if test "$no_cache" != 1; then | |
2195 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
2196 | fi | |
2197 | ||
2198 | if test "$wxUSE_SHARED" = yes; then | |
698dcdb6 | 2199 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2200 | else |
698dcdb6 | 2201 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2202 | fi |
698dcdb6 | 2203 | |
10f2d63a | 2204 | |
698dcdb6 | 2205 | echo $ac_n "checking for --enable-burnt_name""... $ac_c" 1>&6 |
54276ccf | 2206 | echo "configure:2207: checking for --enable-burnt_name" >&5 |
00cf1208 RR |
2207 | no_cache=0 |
2208 | # Check whether --enable-burnt_name or --disable-burnt_name was given. | |
2209 | if test "${enable_burnt_name+set}" = set; then | |
2210 | enableval="$enable_burnt_name" | |
698dcdb6 | 2211 | |
00cf1208 RR |
2212 | if test "$enableval" = yes; then |
2213 | ac_cv_use_burnt_name='wxUSE_BURNT_NAME=yes' | |
2214 | else | |
2215 | ac_cv_use_burnt_name='wxUSE_BURNT_NAME=no' | |
2216 | fi | |
698dcdb6 | 2217 | |
00cf1208 | 2218 | else |
698dcdb6 | 2219 | |
00cf1208 RR |
2220 | LINE=`grep "wxUSE_BURNT_NAME" ${wx_arg_cache_file}` |
2221 | if test "x$LINE" != x ; then | |
2222 | eval "DEFAULT_$LINE" | |
2223 | else | |
2224 | no_cache=1 | |
2225 | fi | |
2226 | ||
2227 | ac_cv_use_burnt_name='wxUSE_BURNT_NAME='$DEFAULT_wxUSE_BURNT_NAME | |
698dcdb6 VZ |
2228 | |
2229 | fi | |
00cf1208 RR |
2230 | |
2231 | ||
2232 | eval "$ac_cv_use_burnt_name" | |
2233 | if test "$no_cache" != 1; then | |
2234 | echo $ac_cv_use_burnt_name >> ${wx_arg_cache_file}.tmp | |
2235 | fi | |
2236 | ||
2237 | if test "$wxUSE_BURNT_NAME" = yes; then | |
698dcdb6 | 2238 | echo "$ac_t""yes" 1>&6 |
00cf1208 | 2239 | else |
698dcdb6 | 2240 | echo "$ac_t""no" 1>&6 |
00cf1208 | 2241 | fi |
698dcdb6 | 2242 | |
00cf1208 | 2243 | |
698dcdb6 | 2244 | echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6 |
54276ccf | 2245 | echo "configure:2246: checking for --enable-optimise" >&5 |
10f2d63a VZ |
2246 | no_cache=0 |
2247 | # Check whether --enable-optimise or --disable-optimise was given. | |
2248 | if test "${enable_optimise+set}" = set; then | |
2249 | enableval="$enable_optimise" | |
698dcdb6 | 2250 | |
10f2d63a VZ |
2251 | if test "$enableval" = yes; then |
2252 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
2253 | else | |
2254 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
2255 | fi | |
698dcdb6 | 2256 | |
10f2d63a | 2257 | else |
698dcdb6 | 2258 | |
10f2d63a VZ |
2259 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` |
2260 | if test "x$LINE" != x ; then | |
2261 | eval "DEFAULT_$LINE" | |
2262 | else | |
2263 | no_cache=1 | |
2264 | fi | |
2265 | ||
2266 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
698dcdb6 VZ |
2267 | |
2268 | fi | |
10f2d63a VZ |
2269 | |
2270 | ||
2271 | eval "$ac_cv_use_optimise" | |
2272 | if test "$no_cache" != 1; then | |
2273 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
2274 | fi | |
2275 | ||
2276 | if test "$wxUSE_OPTIMISE" = yes; then | |
698dcdb6 | 2277 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2278 | else |
698dcdb6 | 2279 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2280 | fi |
698dcdb6 | 2281 | |
10f2d63a | 2282 | |
698dcdb6 | 2283 | echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6 |
54276ccf | 2284 | echo "configure:2285: checking for --enable-debug" >&5 |
10f2d63a VZ |
2285 | no_cache=0 |
2286 | # Check whether --enable-debug or --disable-debug was given. | |
2287 | if test "${enable_debug+set}" = set; then | |
2288 | enableval="$enable_debug" | |
698dcdb6 | 2289 | |
10f2d63a VZ |
2290 | if test "$enableval" = yes; then |
2291 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
2292 | else | |
2293 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
2294 | fi | |
698dcdb6 | 2295 | |
10f2d63a | 2296 | else |
698dcdb6 | 2297 | |
10f2d63a VZ |
2298 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` |
2299 | if test "x$LINE" != x ; then | |
2300 | eval "DEFAULT_$LINE" | |
2301 | else | |
2302 | no_cache=1 | |
2303 | fi | |
2304 | ||
2305 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
698dcdb6 VZ |
2306 | |
2307 | fi | |
10f2d63a VZ |
2308 | |
2309 | ||
2310 | eval "$ac_cv_use_debug" | |
2311 | if test "$no_cache" != 1; then | |
2312 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
2313 | fi | |
2314 | ||
2315 | if test "$wxUSE_DEBUG" = yes; then | |
698dcdb6 | 2316 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2317 | else |
698dcdb6 | 2318 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2319 | fi |
698dcdb6 | 2320 | |
10f2d63a VZ |
2321 | |
2322 | if test "$wxUSE_DEBUG" = "yes"; then | |
2323 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2324 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2325 | elif test "$wxUSE_DEBUG" = "no"; then | |
2326 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2327 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2328 | fi | |
2329 | ||
698dcdb6 VZ |
2330 | |
2331 | echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6 | |
54276ccf | 2332 | echo "configure:2333: checking for --enable-debug_flag" >&5 |
10f2d63a VZ |
2333 | no_cache=0 |
2334 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
2335 | if test "${enable_debug_flag+set}" = set; then | |
2336 | enableval="$enable_debug_flag" | |
698dcdb6 | 2337 | |
10f2d63a VZ |
2338 | if test "$enableval" = yes; then |
2339 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
2340 | else | |
2341 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
2342 | fi | |
698dcdb6 | 2343 | |
10f2d63a | 2344 | else |
698dcdb6 | 2345 | |
10f2d63a VZ |
2346 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` |
2347 | if test "x$LINE" != x ; then | |
2348 | eval "DEFAULT_$LINE" | |
2349 | else | |
2350 | no_cache=1 | |
2351 | fi | |
2352 | ||
2353 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
698dcdb6 VZ |
2354 | |
2355 | fi | |
10f2d63a VZ |
2356 | |
2357 | ||
2358 | eval "$ac_cv_use_debug_flag" | |
2359 | if test "$no_cache" != 1; then | |
2360 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
2361 | fi | |
2362 | ||
2363 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
698dcdb6 | 2364 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2365 | else |
698dcdb6 | 2366 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2367 | fi |
698dcdb6 | 2368 | |
10f2d63a | 2369 | |
698dcdb6 | 2370 | echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6 |
54276ccf | 2371 | echo "configure:2372: checking for --enable-debug_info" >&5 |
10f2d63a VZ |
2372 | no_cache=0 |
2373 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
2374 | if test "${enable_debug_info+set}" = set; then | |
2375 | enableval="$enable_debug_info" | |
698dcdb6 | 2376 | |
10f2d63a VZ |
2377 | if test "$enableval" = yes; then |
2378 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
2379 | else | |
2380 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
2381 | fi | |
698dcdb6 | 2382 | |
10f2d63a | 2383 | else |
698dcdb6 | 2384 | |
10f2d63a VZ |
2385 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` |
2386 | if test "x$LINE" != x ; then | |
2387 | eval "DEFAULT_$LINE" | |
2388 | else | |
2389 | no_cache=1 | |
2390 | fi | |
2391 | ||
2392 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
698dcdb6 VZ |
2393 | |
2394 | fi | |
10f2d63a VZ |
2395 | |
2396 | ||
2397 | eval "$ac_cv_use_debug_info" | |
2398 | if test "$no_cache" != 1; then | |
2399 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
2400 | fi | |
2401 | ||
2402 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
698dcdb6 | 2403 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2404 | else |
698dcdb6 | 2405 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2406 | fi |
698dcdb6 | 2407 | |
10f2d63a | 2408 | |
698dcdb6 | 2409 | echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6 |
54276ccf | 2410 | echo "configure:2411: checking for --enable-debug_gdb" >&5 |
10f2d63a VZ |
2411 | no_cache=0 |
2412 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
2413 | if test "${enable_debug_gdb+set}" = set; then | |
2414 | enableval="$enable_debug_gdb" | |
698dcdb6 | 2415 | |
10f2d63a VZ |
2416 | if test "$enableval" = yes; then |
2417 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
2418 | else | |
2419 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
2420 | fi | |
698dcdb6 | 2421 | |
10f2d63a | 2422 | else |
698dcdb6 | 2423 | |
10f2d63a VZ |
2424 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` |
2425 | if test "x$LINE" != x ; then | |
2426 | eval "DEFAULT_$LINE" | |
2427 | else | |
2428 | no_cache=1 | |
2429 | fi | |
2430 | ||
2431 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
698dcdb6 VZ |
2432 | |
2433 | fi | |
10f2d63a VZ |
2434 | |
2435 | ||
2436 | eval "$ac_cv_use_debug_gdb" | |
2437 | if test "$no_cache" != 1; then | |
2438 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
2439 | fi | |
2440 | ||
2441 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
698dcdb6 | 2442 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2443 | else |
698dcdb6 | 2444 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2445 | fi |
698dcdb6 | 2446 | |
10f2d63a | 2447 | |
698dcdb6 | 2448 | echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6 |
54276ccf | 2449 | echo "configure:2450: checking for --enable-debug_cntxt" >&5 |
10f2d63a VZ |
2450 | no_cache=0 |
2451 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
2452 | if test "${enable_debug_cntxt+set}" = set; then | |
2453 | enableval="$enable_debug_cntxt" | |
698dcdb6 | 2454 | |
10f2d63a VZ |
2455 | if test "$enableval" = yes; then |
2456 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
2457 | else | |
2458 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
2459 | fi | |
698dcdb6 | 2460 | |
10f2d63a | 2461 | else |
698dcdb6 | 2462 | |
10f2d63a VZ |
2463 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` |
2464 | if test "x$LINE" != x ; then | |
2465 | eval "DEFAULT_$LINE" | |
2466 | else | |
2467 | no_cache=1 | |
2468 | fi | |
2469 | ||
2470 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
698dcdb6 VZ |
2471 | |
2472 | fi | |
10f2d63a VZ |
2473 | |
2474 | ||
2475 | eval "$ac_cv_use_debug_cntxt" | |
2476 | if test "$no_cache" != 1; then | |
2477 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
2478 | fi | |
2479 | ||
2480 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
698dcdb6 | 2481 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2482 | else |
698dcdb6 | 2483 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2484 | fi |
698dcdb6 | 2485 | |
10f2d63a | 2486 | |
698dcdb6 | 2487 | echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6 |
54276ccf | 2488 | echo "configure:2489: checking for --enable-mem_tracing" >&5 |
10f2d63a VZ |
2489 | no_cache=0 |
2490 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
2491 | if test "${enable_mem_tracing+set}" = set; then | |
2492 | enableval="$enable_mem_tracing" | |
698dcdb6 | 2493 | |
10f2d63a VZ |
2494 | if test "$enableval" = yes; then |
2495 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
2496 | else | |
2497 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
2498 | fi | |
698dcdb6 | 2499 | |
10f2d63a | 2500 | else |
698dcdb6 | 2501 | |
10f2d63a VZ |
2502 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` |
2503 | if test "x$LINE" != x ; then | |
2504 | eval "DEFAULT_$LINE" | |
2505 | else | |
2506 | no_cache=1 | |
2507 | fi | |
2508 | ||
2509 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
698dcdb6 VZ |
2510 | |
2511 | fi | |
10f2d63a VZ |
2512 | |
2513 | ||
2514 | eval "$ac_cv_use_mem_tracing" | |
2515 | if test "$no_cache" != 1; then | |
2516 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
2517 | fi | |
2518 | ||
2519 | if test "$wxUSE_MEM_TRACING" = yes; then | |
698dcdb6 | 2520 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2521 | else |
698dcdb6 | 2522 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2523 | fi |
698dcdb6 | 2524 | |
10f2d63a | 2525 | |
698dcdb6 | 2526 | echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6 |
54276ccf | 2527 | echo "configure:2528: checking for --enable-profile" >&5 |
10f2d63a VZ |
2528 | no_cache=0 |
2529 | # Check whether --enable-profile or --disable-profile was given. | |
2530 | if test "${enable_profile+set}" = set; then | |
2531 | enableval="$enable_profile" | |
698dcdb6 | 2532 | |
10f2d63a VZ |
2533 | if test "$enableval" = yes; then |
2534 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
2535 | else | |
2536 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
2537 | fi | |
698dcdb6 | 2538 | |
10f2d63a | 2539 | else |
698dcdb6 | 2540 | |
10f2d63a VZ |
2541 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` |
2542 | if test "x$LINE" != x ; then | |
2543 | eval "DEFAULT_$LINE" | |
2544 | else | |
2545 | no_cache=1 | |
2546 | fi | |
2547 | ||
2548 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
698dcdb6 VZ |
2549 | |
2550 | fi | |
10f2d63a VZ |
2551 | |
2552 | ||
2553 | eval "$ac_cv_use_profile" | |
2554 | if test "$no_cache" != 1; then | |
2555 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
2556 | fi | |
2557 | ||
2558 | if test "$wxUSE_PROFILE" = yes; then | |
698dcdb6 | 2559 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2560 | else |
698dcdb6 | 2561 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2562 | fi |
698dcdb6 | 2563 | |
10f2d63a | 2564 | |
698dcdb6 | 2565 | echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6 |
54276ccf | 2566 | echo "configure:2567: checking for --enable-no_rtti" >&5 |
10f2d63a VZ |
2567 | no_cache=0 |
2568 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
2569 | if test "${enable_no_rtti+set}" = set; then | |
2570 | enableval="$enable_no_rtti" | |
698dcdb6 | 2571 | |
10f2d63a VZ |
2572 | if test "$enableval" = yes; then |
2573 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
2574 | else | |
2575 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
2576 | fi | |
698dcdb6 | 2577 | |
10f2d63a | 2578 | else |
698dcdb6 | 2579 | |
10f2d63a VZ |
2580 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` |
2581 | if test "x$LINE" != x ; then | |
2582 | eval "DEFAULT_$LINE" | |
2583 | else | |
2584 | no_cache=1 | |
2585 | fi | |
2586 | ||
2587 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
698dcdb6 VZ |
2588 | |
2589 | fi | |
10f2d63a VZ |
2590 | |
2591 | ||
2592 | eval "$ac_cv_use_no_rtti" | |
2593 | if test "$no_cache" != 1; then | |
2594 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
2595 | fi | |
2596 | ||
2597 | if test "$wxUSE_NO_RTTI" = yes; then | |
698dcdb6 | 2598 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2599 | else |
698dcdb6 | 2600 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2601 | fi |
698dcdb6 | 2602 | |
10f2d63a | 2603 | |
698dcdb6 | 2604 | echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6 |
54276ccf | 2605 | echo "configure:2606: checking for --enable-no_exceptions" >&5 |
10f2d63a VZ |
2606 | no_cache=0 |
2607 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
2608 | if test "${enable_no_exceptions+set}" = set; then | |
2609 | enableval="$enable_no_exceptions" | |
698dcdb6 | 2610 | |
10f2d63a VZ |
2611 | if test "$enableval" = yes; then |
2612 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
2613 | else | |
2614 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
2615 | fi | |
698dcdb6 | 2616 | |
10f2d63a | 2617 | else |
698dcdb6 | 2618 | |
10f2d63a VZ |
2619 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` |
2620 | if test "x$LINE" != x ; then | |
2621 | eval "DEFAULT_$LINE" | |
2622 | else | |
2623 | no_cache=1 | |
2624 | fi | |
2625 | ||
2626 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
698dcdb6 VZ |
2627 | |
2628 | fi | |
10f2d63a VZ |
2629 | |
2630 | ||
2631 | eval "$ac_cv_use_no_exceptions" | |
2632 | if test "$no_cache" != 1; then | |
2633 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
2634 | fi | |
2635 | ||
2636 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
698dcdb6 | 2637 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2638 | else |
698dcdb6 | 2639 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2640 | fi |
698dcdb6 | 2641 | |
10f2d63a | 2642 | |
698dcdb6 | 2643 | echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6 |
54276ccf | 2644 | echo "configure:2645: checking for --enable-permissive" >&5 |
10f2d63a VZ |
2645 | no_cache=0 |
2646 | # Check whether --enable-permissive or --disable-permissive was given. | |
2647 | if test "${enable_permissive+set}" = set; then | |
2648 | enableval="$enable_permissive" | |
698dcdb6 | 2649 | |
10f2d63a VZ |
2650 | if test "$enableval" = yes; then |
2651 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
2652 | else | |
2653 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
2654 | fi | |
698dcdb6 | 2655 | |
10f2d63a | 2656 | else |
698dcdb6 | 2657 | |
10f2d63a VZ |
2658 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` |
2659 | if test "x$LINE" != x ; then | |
2660 | eval "DEFAULT_$LINE" | |
2661 | else | |
2662 | no_cache=1 | |
2663 | fi | |
2664 | ||
2665 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
698dcdb6 VZ |
2666 | |
2667 | fi | |
10f2d63a VZ |
2668 | |
2669 | ||
2670 | eval "$ac_cv_use_permissive" | |
2671 | if test "$no_cache" != 1; then | |
2672 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
2673 | fi | |
2674 | ||
2675 | if test "$wxUSE_PERMISSIVE" = yes; then | |
698dcdb6 | 2676 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2677 | else |
698dcdb6 | 2678 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2679 | fi |
698dcdb6 | 2680 | |
10f2d63a | 2681 | |
698dcdb6 | 2682 | echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6 |
54276ccf | 2683 | echo "configure:2684: checking for --enable-no_deps" >&5 |
10f2d63a VZ |
2684 | no_cache=0 |
2685 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
2686 | if test "${enable_no_deps+set}" = set; then | |
2687 | enableval="$enable_no_deps" | |
698dcdb6 | 2688 | |
10f2d63a VZ |
2689 | if test "$enableval" = yes; then |
2690 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
2691 | else | |
2692 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
2693 | fi | |
698dcdb6 | 2694 | |
10f2d63a | 2695 | else |
698dcdb6 | 2696 | |
10f2d63a VZ |
2697 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` |
2698 | if test "x$LINE" != x ; then | |
2699 | eval "DEFAULT_$LINE" | |
2700 | else | |
2701 | no_cache=1 | |
2702 | fi | |
2703 | ||
2704 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
698dcdb6 VZ |
2705 | |
2706 | fi | |
10f2d63a VZ |
2707 | |
2708 | ||
2709 | eval "$ac_cv_use_no_deps" | |
2710 | if test "$no_cache" != 1; then | |
2711 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
2712 | fi | |
2713 | ||
2714 | if test "$wxUSE_NO_DEPS" = yes; then | |
698dcdb6 | 2715 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2716 | else |
698dcdb6 | 2717 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2718 | fi |
698dcdb6 VZ |
2719 | |
2720 | ||
10f2d63a | 2721 | |
54276ccf VZ |
2722 | echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6 |
2723 | echo "configure:2724: checking for --enable-compat20" >&5 | |
2724 | no_cache=0 | |
2725 | # Check whether --enable-compat20 or --disable-compat20 was given. | |
2726 | if test "${enable_compat20+set}" = set; then | |
2727 | enableval="$enable_compat20" | |
2728 | ||
2729 | if test "$enableval" = yes; then | |
2730 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes' | |
2731 | else | |
2732 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no' | |
2733 | fi | |
2734 | ||
2735 | else | |
2736 | ||
2737 | LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}` | |
2738 | if test "x$LINE" != x ; then | |
2739 | eval "DEFAULT_$LINE" | |
2740 | else | |
2741 | no_cache=1 | |
2742 | fi | |
2743 | ||
2744 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2 | |
2745 | ||
2746 | fi | |
2747 | ||
2748 | ||
2749 | eval "$ac_cv_use_compat20" | |
2750 | if test "$no_cache" != 1; then | |
2751 | echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp | |
2752 | fi | |
2753 | ||
2754 | if test "$WXWIN_COMPATIBILITY_2" = yes; then | |
2755 | echo "$ac_t""yes" 1>&6 | |
2756 | else | |
2757 | echo "$ac_t""no" 1>&6 | |
2758 | fi | |
2759 | ||
2760 | ||
2761 | echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6 | |
2762 | echo "configure:2763: checking for --enable-compat22" >&5 | |
2763 | no_cache=0 | |
2764 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
2765 | if test "${enable_compat22+set}" = set; then | |
2766 | enableval="$enable_compat22" | |
2767 | ||
2768 | if test "$enableval" = yes; then | |
2769 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
2770 | else | |
2771 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
2772 | fi | |
2773 | ||
2774 | else | |
2775 | ||
2776 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` | |
2777 | if test "x$LINE" != x ; then | |
2778 | eval "DEFAULT_$LINE" | |
2779 | else | |
2780 | no_cache=1 | |
2781 | fi | |
2782 | ||
2783 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
2784 | ||
2785 | fi | |
2786 | ||
2787 | ||
2788 | eval "$ac_cv_use_compat22" | |
2789 | if test "$no_cache" != 1; then | |
2790 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
2791 | fi | |
2792 | ||
2793 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
2794 | echo "$ac_t""yes" 1>&6 | |
2795 | else | |
2796 | echo "$ac_t""no" 1>&6 | |
2797 | fi | |
2798 | ||
2799 | ||
2800 | ||
698dcdb6 VZ |
2801 | |
2802 | echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6 | |
54276ccf | 2803 | echo "configure:2804: checking for --enable-intl" >&5 |
10f2d63a VZ |
2804 | no_cache=0 |
2805 | # Check whether --enable-intl or --disable-intl was given. | |
2806 | if test "${enable_intl+set}" = set; then | |
2807 | enableval="$enable_intl" | |
698dcdb6 | 2808 | |
10f2d63a VZ |
2809 | if test "$enableval" = yes; then |
2810 | ac_cv_use_intl='wxUSE_INTL=yes' | |
2811 | else | |
2812 | ac_cv_use_intl='wxUSE_INTL=no' | |
2813 | fi | |
698dcdb6 | 2814 | |
10f2d63a | 2815 | else |
698dcdb6 | 2816 | |
10f2d63a VZ |
2817 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` |
2818 | if test "x$LINE" != x ; then | |
2819 | eval "DEFAULT_$LINE" | |
2820 | else | |
2821 | no_cache=1 | |
2822 | fi | |
2823 | ||
2824 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
698dcdb6 VZ |
2825 | |
2826 | fi | |
10f2d63a VZ |
2827 | |
2828 | ||
2829 | eval "$ac_cv_use_intl" | |
2830 | if test "$no_cache" != 1; then | |
2831 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
2832 | fi | |
2833 | ||
2834 | if test "$wxUSE_INTL" = yes; then | |
698dcdb6 | 2835 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2836 | else |
698dcdb6 | 2837 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2838 | fi |
698dcdb6 | 2839 | |
10f2d63a | 2840 | |
698dcdb6 | 2841 | echo $ac_n "checking for --enable-config""... $ac_c" 1>&6 |
54276ccf | 2842 | echo "configure:2843: checking for --enable-config" >&5 |
10f2d63a VZ |
2843 | no_cache=0 |
2844 | # Check whether --enable-config or --disable-config was given. | |
2845 | if test "${enable_config+set}" = set; then | |
2846 | enableval="$enable_config" | |
698dcdb6 | 2847 | |
10f2d63a VZ |
2848 | if test "$enableval" = yes; then |
2849 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
2850 | else | |
2851 | ac_cv_use_config='wxUSE_CONFIG=no' | |
2852 | fi | |
698dcdb6 | 2853 | |
10f2d63a | 2854 | else |
698dcdb6 | 2855 | |
10f2d63a VZ |
2856 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` |
2857 | if test "x$LINE" != x ; then | |
2858 | eval "DEFAULT_$LINE" | |
2859 | else | |
2860 | no_cache=1 | |
2861 | fi | |
2862 | ||
2863 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
698dcdb6 VZ |
2864 | |
2865 | fi | |
10f2d63a VZ |
2866 | |
2867 | ||
2868 | eval "$ac_cv_use_config" | |
2869 | if test "$no_cache" != 1; then | |
2870 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
2871 | fi | |
2872 | ||
2873 | if test "$wxUSE_CONFIG" = yes; then | |
698dcdb6 | 2874 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2875 | else |
698dcdb6 | 2876 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2877 | fi |
698dcdb6 VZ |
2878 | |
2879 | ||
b12915c1 | 2880 | |
698dcdb6 | 2881 | echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6 |
54276ccf | 2882 | echo "configure:2883: checking for --enable-sockets" >&5 |
10f2d63a VZ |
2883 | no_cache=0 |
2884 | # Check whether --enable-sockets or --disable-sockets was given. | |
2885 | if test "${enable_sockets+set}" = set; then | |
2886 | enableval="$enable_sockets" | |
698dcdb6 | 2887 | |
10f2d63a VZ |
2888 | if test "$enableval" = yes; then |
2889 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
2890 | else | |
2891 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
2892 | fi | |
698dcdb6 | 2893 | |
10f2d63a | 2894 | else |
698dcdb6 | 2895 | |
10f2d63a VZ |
2896 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` |
2897 | if test "x$LINE" != x ; then | |
2898 | eval "DEFAULT_$LINE" | |
2899 | else | |
2900 | no_cache=1 | |
2901 | fi | |
2902 | ||
2903 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
698dcdb6 VZ |
2904 | |
2905 | fi | |
10f2d63a VZ |
2906 | |
2907 | ||
2908 | eval "$ac_cv_use_sockets" | |
2909 | if test "$no_cache" != 1; then | |
2910 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
2911 | fi | |
2912 | ||
2913 | if test "$wxUSE_SOCKETS" = yes; then | |
698dcdb6 | 2914 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2915 | else |
698dcdb6 | 2916 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2917 | fi |
698dcdb6 | 2918 | |
b12915c1 | 2919 | |
698dcdb6 VZ |
2920 | |
2921 | echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6 | |
54276ccf | 2922 | echo "configure:2923: checking for --enable-ipc" >&5 |
10f2d63a | 2923 | no_cache=0 |
eb4efbdc VZ |
2924 | # Check whether --enable-ipc or --disable-ipc was given. |
2925 | if test "${enable_ipc+set}" = set; then | |
2926 | enableval="$enable_ipc" | |
698dcdb6 | 2927 | |
10f2d63a | 2928 | if test "$enableval" = yes; then |
eb4efbdc | 2929 | ac_cv_use_ipc='wxUSE_IPC=yes' |
10f2d63a | 2930 | else |
eb4efbdc | 2931 | ac_cv_use_ipc='wxUSE_IPC=no' |
10f2d63a | 2932 | fi |
698dcdb6 | 2933 | |
10f2d63a | 2934 | else |
698dcdb6 | 2935 | |
eb4efbdc | 2936 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` |
10f2d63a VZ |
2937 | if test "x$LINE" != x ; then |
2938 | eval "DEFAULT_$LINE" | |
2939 | else | |
2940 | no_cache=1 | |
2941 | fi | |
2942 | ||
eb4efbdc | 2943 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC |
698dcdb6 VZ |
2944 | |
2945 | fi | |
10f2d63a VZ |
2946 | |
2947 | ||
eb4efbdc | 2948 | eval "$ac_cv_use_ipc" |
10f2d63a | 2949 | if test "$no_cache" != 1; then |
eb4efbdc | 2950 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2951 | fi |
2952 | ||
eb4efbdc | 2953 | if test "$wxUSE_IPC" = yes; then |
698dcdb6 | 2954 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2955 | else |
698dcdb6 | 2956 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2957 | fi |
698dcdb6 VZ |
2958 | |
2959 | ||
eb4efbdc | 2960 | |
1e6feb95 | 2961 | echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6 |
54276ccf | 2962 | echo "configure:2963: checking for --enable-cmdline" >&5 |
1e6feb95 VZ |
2963 | no_cache=0 |
2964 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
2965 | if test "${enable_cmdline+set}" = set; then | |
2966 | enableval="$enable_cmdline" | |
2967 | ||
2968 | if test "$enableval" = yes; then | |
2969 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
2970 | else | |
2971 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
2972 | fi | |
2973 | ||
2974 | else | |
2975 | ||
2976 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
2977 | if test "x$LINE" != x ; then | |
2978 | eval "DEFAULT_$LINE" | |
2979 | else | |
2980 | no_cache=1 | |
2981 | fi | |
2982 | ||
2983 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
2984 | ||
2985 | fi | |
2986 | ||
2987 | ||
2988 | eval "$ac_cv_use_cmdline" | |
2989 | if test "$no_cache" != 1; then | |
2990 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
2991 | fi | |
2992 | ||
2993 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
2994 | echo "$ac_t""yes" 1>&6 | |
2995 | else | |
2996 | echo "$ac_t""no" 1>&6 | |
2997 | fi | |
2998 | ||
2999 | ||
3000 | echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6 | |
54276ccf | 3001 | echo "configure:3002: checking for --enable-datetime" >&5 |
1e6feb95 VZ |
3002 | no_cache=0 |
3003 | # Check whether --enable-datetime or --disable-datetime was given. | |
3004 | if test "${enable_datetime+set}" = set; then | |
3005 | enableval="$enable_datetime" | |
3006 | ||
3007 | if test "$enableval" = yes; then | |
3008 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
3009 | else | |
3010 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
3011 | fi | |
3012 | ||
3013 | else | |
3014 | ||
3015 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
3016 | if test "x$LINE" != x ; then | |
3017 | eval "DEFAULT_$LINE" | |
3018 | else | |
3019 | no_cache=1 | |
3020 | fi | |
3021 | ||
3022 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
3023 | ||
3024 | fi | |
3025 | ||
3026 | ||
3027 | eval "$ac_cv_use_datetime" | |
3028 | if test "$no_cache" != 1; then | |
3029 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
3030 | fi | |
3031 | ||
3032 | if test "$wxUSE_DATETIME" = yes; then | |
3033 | echo "$ac_t""yes" 1>&6 | |
3034 | else | |
3035 | echo "$ac_t""no" 1>&6 | |
3036 | fi | |
3037 | ||
3038 | ||
3039 | echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6 | |
54276ccf | 3040 | echo "configure:3041: checking for --enable-timedate" >&5 |
1e6feb95 VZ |
3041 | no_cache=0 |
3042 | # Check whether --enable-timedate or --disable-timedate was given. | |
3043 | if test "${enable_timedate+set}" = set; then | |
3044 | enableval="$enable_timedate" | |
3045 | ||
3046 | if test "$enableval" = yes; then | |
3047 | ac_cv_use_timedate='wxUSE_TIMEDATE=yes' | |
3048 | else | |
3049 | ac_cv_use_timedate='wxUSE_TIMEDATE=no' | |
3050 | fi | |
3051 | ||
3052 | else | |
3053 | ||
3054 | LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}` | |
3055 | if test "x$LINE" != x ; then | |
3056 | eval "DEFAULT_$LINE" | |
3057 | else | |
3058 | no_cache=1 | |
3059 | fi | |
3060 | ||
3061 | ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE | |
3062 | ||
3063 | fi | |
3064 | ||
3065 | ||
3066 | eval "$ac_cv_use_timedate" | |
3067 | if test "$no_cache" != 1; then | |
3068 | echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp | |
3069 | fi | |
3070 | ||
3071 | if test "$wxUSE_TIMEDATE" = yes; then | |
3072 | echo "$ac_t""yes" 1>&6 | |
3073 | else | |
3074 | echo "$ac_t""no" 1>&6 | |
3075 | fi | |
3076 | ||
3077 | ||
3078 | echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6 | |
54276ccf | 3079 | echo "configure:3080: checking for --enable-stopwatch" >&5 |
1e6feb95 VZ |
3080 | no_cache=0 |
3081 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
3082 | if test "${enable_stopwatch+set}" = set; then | |
3083 | enableval="$enable_stopwatch" | |
3084 | ||
3085 | if test "$enableval" = yes; then | |
3086 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
3087 | else | |
3088 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
3089 | fi | |
3090 | ||
3091 | else | |
3092 | ||
3093 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` | |
3094 | if test "x$LINE" != x ; then | |
3095 | eval "DEFAULT_$LINE" | |
3096 | else | |
3097 | no_cache=1 | |
3098 | fi | |
3099 | ||
3100 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
3101 | ||
3102 | fi | |
3103 | ||
3104 | ||
3105 | eval "$ac_cv_use_stopwatch" | |
3106 | if test "$no_cache" != 1; then | |
3107 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
3108 | fi | |
3109 | ||
3110 | if test "$wxUSE_STOPWATCH" = yes; then | |
3111 | echo "$ac_t""yes" 1>&6 | |
3112 | else | |
3113 | echo "$ac_t""no" 1>&6 | |
3114 | fi | |
3115 | ||
3116 | ||
698dcdb6 | 3117 | echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6 |
54276ccf | 3118 | echo "configure:3119: checking for --enable-dialupman" >&5 |
10f2d63a | 3119 | no_cache=0 |
eb4efbdc VZ |
3120 | # Check whether --enable-dialupman or --disable-dialupman was given. |
3121 | if test "${enable_dialupman+set}" = set; then | |
3122 | enableval="$enable_dialupman" | |
698dcdb6 | 3123 | |
10f2d63a | 3124 | if test "$enableval" = yes; then |
eb4efbdc | 3125 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' |
10f2d63a | 3126 | else |
eb4efbdc | 3127 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' |
10f2d63a | 3128 | fi |
698dcdb6 | 3129 | |
10f2d63a | 3130 | else |
698dcdb6 | 3131 | |
eb4efbdc | 3132 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3133 | if test "x$LINE" != x ; then |
3134 | eval "DEFAULT_$LINE" | |
3135 | else | |
3136 | no_cache=1 | |
3137 | fi | |
3138 | ||
eb4efbdc | 3139 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER |
698dcdb6 VZ |
3140 | |
3141 | fi | |
10f2d63a VZ |
3142 | |
3143 | ||
eb4efbdc | 3144 | eval "$ac_cv_use_dialupman" |
10f2d63a | 3145 | if test "$no_cache" != 1; then |
eb4efbdc | 3146 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3147 | fi |
3148 | ||
eb4efbdc | 3149 | if test "$wxUSE_DIALUP_MANAGER" = yes; then |
698dcdb6 | 3150 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3151 | else |
698dcdb6 | 3152 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3153 | fi |
698dcdb6 | 3154 | |
10f2d63a | 3155 | |
698dcdb6 | 3156 | echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6 |
54276ccf | 3157 | echo "configure:3158: checking for --enable-apple_ieee" >&5 |
10f2d63a VZ |
3158 | no_cache=0 |
3159 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
3160 | if test "${enable_apple_ieee+set}" = set; then | |
3161 | enableval="$enable_apple_ieee" | |
698dcdb6 | 3162 | |
10f2d63a VZ |
3163 | if test "$enableval" = yes; then |
3164 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
3165 | else | |
3166 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
3167 | fi | |
698dcdb6 | 3168 | |
10f2d63a | 3169 | else |
698dcdb6 | 3170 | |
10f2d63a VZ |
3171 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` |
3172 | if test "x$LINE" != x ; then | |
3173 | eval "DEFAULT_$LINE" | |
3174 | else | |
3175 | no_cache=1 | |
3176 | fi | |
3177 | ||
3178 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
698dcdb6 VZ |
3179 | |
3180 | fi | |
10f2d63a VZ |
3181 | |
3182 | ||
3183 | eval "$ac_cv_use_apple_ieee" | |
3184 | if test "$no_cache" != 1; then | |
3185 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
3186 | fi | |
3187 | ||
3188 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
698dcdb6 | 3189 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3190 | else |
698dcdb6 | 3191 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3192 | fi |
698dcdb6 | 3193 | |
10f2d63a | 3194 | |
1e6feb95 | 3195 | echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6 |
54276ccf | 3196 | echo "configure:3197: checking for --enable-timer" >&5 |
10f2d63a | 3197 | no_cache=0 |
1e6feb95 VZ |
3198 | # Check whether --enable-timer or --disable-timer was given. |
3199 | if test "${enable_timer+set}" = set; then | |
3200 | enableval="$enable_timer" | |
698dcdb6 | 3201 | |
10f2d63a | 3202 | if test "$enableval" = yes; then |
1e6feb95 | 3203 | ac_cv_use_timer='wxUSE_TIMER=yes' |
10f2d63a | 3204 | else |
1e6feb95 | 3205 | ac_cv_use_timer='wxUSE_TIMER=no' |
10f2d63a | 3206 | fi |
698dcdb6 | 3207 | |
10f2d63a | 3208 | else |
698dcdb6 | 3209 | |
1e6feb95 | 3210 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3211 | if test "x$LINE" != x ; then |
3212 | eval "DEFAULT_$LINE" | |
3213 | else | |
3214 | no_cache=1 | |
3215 | fi | |
3216 | ||
1e6feb95 | 3217 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER |
698dcdb6 VZ |
3218 | |
3219 | fi | |
10f2d63a VZ |
3220 | |
3221 | ||
1e6feb95 | 3222 | eval "$ac_cv_use_timer" |
10f2d63a | 3223 | if test "$no_cache" != 1; then |
1e6feb95 | 3224 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3225 | fi |
3226 | ||
1e6feb95 | 3227 | if test "$wxUSE_TIMER" = yes; then |
698dcdb6 | 3228 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3229 | else |
698dcdb6 | 3230 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3231 | fi |
698dcdb6 | 3232 | |
10f2d63a | 3233 | |
698dcdb6 | 3234 | echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6 |
54276ccf | 3235 | echo "configure:3236: checking for --enable-wave" >&5 |
10f2d63a VZ |
3236 | no_cache=0 |
3237 | # Check whether --enable-wave or --disable-wave was given. | |
3238 | if test "${enable_wave+set}" = set; then | |
3239 | enableval="$enable_wave" | |
698dcdb6 | 3240 | |
10f2d63a VZ |
3241 | if test "$enableval" = yes; then |
3242 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
3243 | else | |
3244 | ac_cv_use_wave='wxUSE_WAVE=no' | |
3245 | fi | |
698dcdb6 | 3246 | |
10f2d63a | 3247 | else |
698dcdb6 | 3248 | |
10f2d63a VZ |
3249 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` |
3250 | if test "x$LINE" != x ; then | |
3251 | eval "DEFAULT_$LINE" | |
3252 | else | |
3253 | no_cache=1 | |
3254 | fi | |
3255 | ||
3256 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
698dcdb6 VZ |
3257 | |
3258 | fi | |
10f2d63a VZ |
3259 | |
3260 | ||
3261 | eval "$ac_cv_use_wave" | |
3262 | if test "$no_cache" != 1; then | |
3263 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
3264 | fi | |
3265 | ||
3266 | if test "$wxUSE_WAVE" = yes; then | |
698dcdb6 | 3267 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3268 | else |
698dcdb6 | 3269 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3270 | fi |
698dcdb6 | 3271 | |
10f2d63a | 3272 | |
698dcdb6 | 3273 | echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6 |
54276ccf | 3274 | echo "configure:3275: checking for --enable-fraction" >&5 |
10f2d63a VZ |
3275 | no_cache=0 |
3276 | # Check whether --enable-fraction or --disable-fraction was given. | |
3277 | if test "${enable_fraction+set}" = set; then | |
3278 | enableval="$enable_fraction" | |
698dcdb6 | 3279 | |
10f2d63a VZ |
3280 | if test "$enableval" = yes; then |
3281 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
3282 | else | |
3283 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
3284 | fi | |
698dcdb6 | 3285 | |
10f2d63a | 3286 | else |
698dcdb6 | 3287 | |
10f2d63a VZ |
3288 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` |
3289 | if test "x$LINE" != x ; then | |
3290 | eval "DEFAULT_$LINE" | |
3291 | else | |
3292 | no_cache=1 | |
3293 | fi | |
3294 | ||
3295 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
698dcdb6 VZ |
3296 | |
3297 | fi | |
10f2d63a VZ |
3298 | |
3299 | ||
3300 | eval "$ac_cv_use_fraction" | |
3301 | if test "$no_cache" != 1; then | |
3302 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
3303 | fi | |
3304 | ||
3305 | if test "$wxUSE_FRACTION" = yes; then | |
698dcdb6 | 3306 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3307 | else |
698dcdb6 | 3308 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3309 | fi |
698dcdb6 | 3310 | |
10f2d63a | 3311 | |
698dcdb6 | 3312 | echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6 |
54276ccf | 3313 | echo "configure:3314: checking for --enable-dynlib" >&5 |
10f2d63a VZ |
3314 | no_cache=0 |
3315 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
3316 | if test "${enable_dynlib+set}" = set; then | |
3317 | enableval="$enable_dynlib" | |
698dcdb6 | 3318 | |
10f2d63a VZ |
3319 | if test "$enableval" = yes; then |
3320 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
3321 | else | |
3322 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
3323 | fi | |
698dcdb6 | 3324 | |
10f2d63a | 3325 | else |
698dcdb6 | 3326 | |
10f2d63a VZ |
3327 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` |
3328 | if test "x$LINE" != x ; then | |
3329 | eval "DEFAULT_$LINE" | |
3330 | else | |
3331 | no_cache=1 | |
3332 | fi | |
3333 | ||
3334 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
698dcdb6 VZ |
3335 | |
3336 | fi | |
10f2d63a VZ |
3337 | |
3338 | ||
3339 | eval "$ac_cv_use_dynlib" | |
3340 | if test "$no_cache" != 1; then | |
3341 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
3342 | fi | |
3343 | ||
3344 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
698dcdb6 | 3345 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3346 | else |
698dcdb6 | 3347 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3348 | fi |
698dcdb6 | 3349 | |
10f2d63a | 3350 | |
698dcdb6 | 3351 | echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6 |
54276ccf | 3352 | echo "configure:3353: checking for --enable-longlong" >&5 |
10f2d63a VZ |
3353 | no_cache=0 |
3354 | # Check whether --enable-longlong or --disable-longlong was given. | |
3355 | if test "${enable_longlong+set}" = set; then | |
3356 | enableval="$enable_longlong" | |
698dcdb6 | 3357 | |
10f2d63a VZ |
3358 | if test "$enableval" = yes; then |
3359 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
3360 | else | |
3361 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
3362 | fi | |
698dcdb6 | 3363 | |
10f2d63a | 3364 | else |
698dcdb6 | 3365 | |
10f2d63a VZ |
3366 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` |
3367 | if test "x$LINE" != x ; then | |
3368 | eval "DEFAULT_$LINE" | |
3369 | else | |
3370 | no_cache=1 | |
3371 | fi | |
3372 | ||
3373 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
698dcdb6 VZ |
3374 | |
3375 | fi | |
10f2d63a VZ |
3376 | |
3377 | ||
3378 | eval "$ac_cv_use_longlong" | |
3379 | if test "$no_cache" != 1; then | |
3380 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
3381 | fi | |
3382 | ||
3383 | if test "$wxUSE_LONGLONG" = yes; then | |
698dcdb6 | 3384 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3385 | else |
698dcdb6 | 3386 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3387 | fi |
698dcdb6 | 3388 | |
10f2d63a | 3389 | |
698dcdb6 | 3390 | echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6 |
54276ccf | 3391 | echo "configure:3392: checking for --enable-geometry" >&5 |
e8f65ba6 RR |
3392 | no_cache=0 |
3393 | # Check whether --enable-geometry or --disable-geometry was given. | |
3394 | if test "${enable_geometry+set}" = set; then | |
3395 | enableval="$enable_geometry" | |
698dcdb6 | 3396 | |
e8f65ba6 RR |
3397 | if test "$enableval" = yes; then |
3398 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
3399 | else | |
3400 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
3401 | fi | |
698dcdb6 | 3402 | |
e8f65ba6 | 3403 | else |
698dcdb6 | 3404 | |
e8f65ba6 RR |
3405 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` |
3406 | if test "x$LINE" != x ; then | |
3407 | eval "DEFAULT_$LINE" | |
3408 | else | |
3409 | no_cache=1 | |
3410 | fi | |
3411 | ||
3412 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
698dcdb6 VZ |
3413 | |
3414 | fi | |
e8f65ba6 RR |
3415 | |
3416 | ||
3417 | eval "$ac_cv_use_geometry" | |
3418 | if test "$no_cache" != 1; then | |
3419 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
3420 | fi | |
3421 | ||
3422 | if test "$wxUSE_GEOMETRY" = yes; then | |
698dcdb6 | 3423 | echo "$ac_t""yes" 1>&6 |
e8f65ba6 | 3424 | else |
698dcdb6 | 3425 | echo "$ac_t""no" 1>&6 |
e8f65ba6 | 3426 | fi |
698dcdb6 | 3427 | |
e8f65ba6 | 3428 | |
698dcdb6 | 3429 | echo $ac_n "checking for --enable-log""... $ac_c" 1>&6 |
54276ccf | 3430 | echo "configure:3431: checking for --enable-log" >&5 |
10f2d63a VZ |
3431 | no_cache=0 |
3432 | # Check whether --enable-log or --disable-log was given. | |
3433 | if test "${enable_log+set}" = set; then | |
3434 | enableval="$enable_log" | |
698dcdb6 | 3435 | |
10f2d63a VZ |
3436 | if test "$enableval" = yes; then |
3437 | ac_cv_use_log='wxUSE_LOG=yes' | |
3438 | else | |
3439 | ac_cv_use_log='wxUSE_LOG=no' | |
3440 | fi | |
698dcdb6 | 3441 | |
10f2d63a | 3442 | else |
698dcdb6 | 3443 | |
10f2d63a VZ |
3444 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` |
3445 | if test "x$LINE" != x ; then | |
3446 | eval "DEFAULT_$LINE" | |
3447 | else | |
3448 | no_cache=1 | |
3449 | fi | |
3450 | ||
3451 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
698dcdb6 VZ |
3452 | |
3453 | fi | |
10f2d63a VZ |
3454 | |
3455 | ||
3456 | eval "$ac_cv_use_log" | |
3457 | if test "$no_cache" != 1; then | |
3458 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
3459 | fi | |
3460 | ||
3461 | if test "$wxUSE_LOG" = yes; then | |
698dcdb6 | 3462 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3463 | else |
698dcdb6 | 3464 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3465 | fi |
698dcdb6 | 3466 | |
10f2d63a | 3467 | |
698dcdb6 | 3468 | echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6 |
54276ccf | 3469 | echo "configure:3470: checking for --enable-streams" >&5 |
10f2d63a VZ |
3470 | no_cache=0 |
3471 | # Check whether --enable-streams or --disable-streams was given. | |
3472 | if test "${enable_streams+set}" = set; then | |
3473 | enableval="$enable_streams" | |
698dcdb6 | 3474 | |
10f2d63a VZ |
3475 | if test "$enableval" = yes; then |
3476 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
3477 | else | |
3478 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
3479 | fi | |
698dcdb6 | 3480 | |
10f2d63a | 3481 | else |
698dcdb6 | 3482 | |
10f2d63a VZ |
3483 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` |
3484 | if test "x$LINE" != x ; then | |
3485 | eval "DEFAULT_$LINE" | |
3486 | else | |
3487 | no_cache=1 | |
3488 | fi | |
3489 | ||
3490 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
698dcdb6 VZ |
3491 | |
3492 | fi | |
10f2d63a VZ |
3493 | |
3494 | ||
3495 | eval "$ac_cv_use_streams" | |
3496 | if test "$no_cache" != 1; then | |
3497 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
3498 | fi | |
3499 | ||
3500 | if test "$wxUSE_STREAMS" = yes; then | |
698dcdb6 | 3501 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3502 | else |
698dcdb6 | 3503 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3504 | fi |
698dcdb6 | 3505 | |
10f2d63a | 3506 | |
698dcdb6 | 3507 | echo $ac_n "checking for --enable-file""... $ac_c" 1>&6 |
54276ccf | 3508 | echo "configure:3509: checking for --enable-file" >&5 |
10f2d63a VZ |
3509 | no_cache=0 |
3510 | # Check whether --enable-file or --disable-file was given. | |
3511 | if test "${enable_file+set}" = set; then | |
3512 | enableval="$enable_file" | |
698dcdb6 | 3513 | |
10f2d63a VZ |
3514 | if test "$enableval" = yes; then |
3515 | ac_cv_use_file='wxUSE_FILE=yes' | |
3516 | else | |
3517 | ac_cv_use_file='wxUSE_FILE=no' | |
3518 | fi | |
698dcdb6 | 3519 | |
10f2d63a | 3520 | else |
698dcdb6 | 3521 | |
10f2d63a VZ |
3522 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` |
3523 | if test "x$LINE" != x ; then | |
3524 | eval "DEFAULT_$LINE" | |
3525 | else | |
3526 | no_cache=1 | |
3527 | fi | |
3528 | ||
3529 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
698dcdb6 VZ |
3530 | |
3531 | fi | |
10f2d63a VZ |
3532 | |
3533 | ||
3534 | eval "$ac_cv_use_file" | |
3535 | if test "$no_cache" != 1; then | |
3536 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
3537 | fi | |
3538 | ||
3539 | if test "$wxUSE_FILE" = yes; then | |
698dcdb6 | 3540 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3541 | else |
698dcdb6 | 3542 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3543 | fi |
698dcdb6 | 3544 | |
10f2d63a | 3545 | |
1e6feb95 | 3546 | echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6 |
54276ccf | 3547 | echo "configure:3548: checking for --enable-ffile" >&5 |
10f2d63a | 3548 | no_cache=0 |
1e6feb95 VZ |
3549 | # Check whether --enable-ffile or --disable-ffile was given. |
3550 | if test "${enable_ffile+set}" = set; then | |
3551 | enableval="$enable_ffile" | |
698dcdb6 | 3552 | |
10f2d63a | 3553 | if test "$enableval" = yes; then |
1e6feb95 | 3554 | ac_cv_use_ffile='wxUSE_FFILE=yes' |
10f2d63a | 3555 | else |
1e6feb95 | 3556 | ac_cv_use_ffile='wxUSE_FFILE=no' |
10f2d63a | 3557 | fi |
698dcdb6 | 3558 | |
10f2d63a | 3559 | else |
698dcdb6 | 3560 | |
1e6feb95 | 3561 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
3562 | if test "x$LINE" != x ; then |
3563 | eval "DEFAULT_$LINE" | |
3564 | else | |
3565 | no_cache=1 | |
3566 | fi | |
3567 | ||
1e6feb95 | 3568 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE |
698dcdb6 VZ |
3569 | |
3570 | fi | |
10f2d63a VZ |
3571 | |
3572 | ||
1e6feb95 | 3573 | eval "$ac_cv_use_ffile" |
10f2d63a | 3574 | if test "$no_cache" != 1; then |
1e6feb95 | 3575 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3576 | fi |
3577 | ||
1e6feb95 | 3578 | if test "$wxUSE_FFILE" = yes; then |
698dcdb6 | 3579 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3580 | else |
698dcdb6 | 3581 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3582 | fi |
698dcdb6 | 3583 | |
10f2d63a | 3584 | |
1e6feb95 | 3585 | echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6 |
54276ccf | 3586 | echo "configure:3587: checking for --enable-textfile" >&5 |
10f2d63a | 3587 | no_cache=0 |
1e6feb95 VZ |
3588 | # Check whether --enable-textfile or --disable-textfile was given. |
3589 | if test "${enable_textfile+set}" = set; then | |
3590 | enableval="$enable_textfile" | |
698dcdb6 | 3591 | |
10f2d63a | 3592 | if test "$enableval" = yes; then |
1e6feb95 | 3593 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' |
10f2d63a | 3594 | else |
1e6feb95 | 3595 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' |
10f2d63a | 3596 | fi |
698dcdb6 | 3597 | |
10f2d63a | 3598 | else |
698dcdb6 | 3599 | |
1e6feb95 | 3600 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
3601 | if test "x$LINE" != x ; then |
3602 | eval "DEFAULT_$LINE" | |
3603 | else | |
3604 | no_cache=1 | |
3605 | fi | |
3606 | ||
1e6feb95 | 3607 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE |
698dcdb6 VZ |
3608 | |
3609 | fi | |
10f2d63a VZ |
3610 | |
3611 | ||
1e6feb95 | 3612 | eval "$ac_cv_use_textfile" |
10f2d63a | 3613 | if test "$no_cache" != 1; then |
1e6feb95 | 3614 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3615 | fi |
3616 | ||
1e6feb95 | 3617 | if test "$wxUSE_TEXTFILE" = yes; then |
698dcdb6 | 3618 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3619 | else |
698dcdb6 | 3620 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3621 | fi |
698dcdb6 | 3622 | |
10f2d63a | 3623 | |
1e6feb95 | 3624 | echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6 |
54276ccf | 3625 | echo "configure:3626: checking for --enable-fontmap" >&5 |
10f2d63a | 3626 | no_cache=0 |
1e6feb95 VZ |
3627 | # Check whether --enable-fontmap or --disable-fontmap was given. |
3628 | if test "${enable_fontmap+set}" = set; then | |
3629 | enableval="$enable_fontmap" | |
698dcdb6 | 3630 | |
10f2d63a | 3631 | if test "$enableval" = yes; then |
1e6feb95 | 3632 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' |
10f2d63a | 3633 | else |
1e6feb95 | 3634 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' |
10f2d63a | 3635 | fi |
698dcdb6 | 3636 | |
10f2d63a | 3637 | else |
698dcdb6 | 3638 | |
1e6feb95 | 3639 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` |
10f2d63a VZ |
3640 | if test "x$LINE" != x ; then |
3641 | eval "DEFAULT_$LINE" | |
3642 | else | |
3643 | no_cache=1 | |
3644 | fi | |
3645 | ||
1e6feb95 | 3646 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP |
698dcdb6 VZ |
3647 | |
3648 | fi | |
10f2d63a VZ |
3649 | |
3650 | ||
1e6feb95 | 3651 | eval "$ac_cv_use_fontmap" |
10f2d63a | 3652 | if test "$no_cache" != 1; then |
1e6feb95 | 3653 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3654 | fi |
3655 | ||
1e6feb95 | 3656 | if test "$wxUSE_FONTMAP" = yes; then |
698dcdb6 | 3657 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3658 | else |
698dcdb6 | 3659 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3660 | fi |
698dcdb6 | 3661 | |
10f2d63a | 3662 | |
1e6feb95 | 3663 | echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6 |
54276ccf | 3664 | echo "configure:3665: checking for --enable-unicode" >&5 |
10f2d63a | 3665 | no_cache=0 |
1e6feb95 VZ |
3666 | # Check whether --enable-unicode or --disable-unicode was given. |
3667 | if test "${enable_unicode+set}" = set; then | |
3668 | enableval="$enable_unicode" | |
3669 | ||
3670 | if test "$enableval" = yes; then | |
3671 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
3672 | else | |
3673 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
3674 | fi | |
3675 | ||
3676 | else | |
3677 | ||
3678 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
3679 | if test "x$LINE" != x ; then | |
3680 | eval "DEFAULT_$LINE" | |
3681 | else | |
3682 | no_cache=1 | |
3683 | fi | |
3684 | ||
3685 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
3686 | ||
3687 | fi | |
3688 | ||
3689 | ||
3690 | eval "$ac_cv_use_unicode" | |
3691 | if test "$no_cache" != 1; then | |
3692 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
3693 | fi | |
3694 | ||
3695 | if test "$wxUSE_UNICODE" = yes; then | |
3696 | echo "$ac_t""yes" 1>&6 | |
3697 | else | |
3698 | echo "$ac_t""no" 1>&6 | |
3699 | fi | |
3700 | ||
3701 | ||
3702 | echo $ac_n "checking for --enable-wcsrtombs""... $ac_c" 1>&6 | |
54276ccf | 3703 | echo "configure:3704: checking for --enable-wcsrtombs" >&5 |
1e6feb95 VZ |
3704 | no_cache=0 |
3705 | # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given. | |
3706 | if test "${enable_wcsrtombs+set}" = set; then | |
3707 | enableval="$enable_wcsrtombs" | |
3708 | ||
3709 | if test "$enableval" = yes; then | |
3710 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes' | |
3711 | else | |
3712 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no' | |
3713 | fi | |
3714 | ||
3715 | else | |
3716 | ||
3717 | LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}` | |
3718 | if test "x$LINE" != x ; then | |
3719 | eval "DEFAULT_$LINE" | |
3720 | else | |
3721 | no_cache=1 | |
3722 | fi | |
3723 | ||
3724 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS | |
3725 | ||
3726 | fi | |
3727 | ||
3728 | ||
3729 | eval "$ac_cv_use_wcsrtombs" | |
3730 | if test "$no_cache" != 1; then | |
3731 | echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp | |
3732 | fi | |
3733 | ||
3734 | if test "$wxUSE_WCSRTOMBS" = yes; then | |
3735 | echo "$ac_t""yes" 1>&6 | |
3736 | else | |
3737 | echo "$ac_t""no" 1>&6 | |
3738 | fi | |
3739 | ||
3740 | ||
3741 | echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6 | |
54276ccf | 3742 | echo "configure:3743: checking for --enable-wxprintfv" >&5 |
1e6feb95 VZ |
3743 | no_cache=0 |
3744 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
3745 | if test "${enable_wxprintfv+set}" = set; then | |
3746 | enableval="$enable_wxprintfv" | |
3747 | ||
3748 | if test "$enableval" = yes; then | |
10f2d63a VZ |
3749 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' |
3750 | else | |
3751 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
3752 | fi | |
698dcdb6 | 3753 | |
10f2d63a | 3754 | else |
698dcdb6 | 3755 | |
10f2d63a VZ |
3756 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` |
3757 | if test "x$LINE" != x ; then | |
3758 | eval "DEFAULT_$LINE" | |
3759 | else | |
3760 | no_cache=1 | |
3761 | fi | |
3762 | ||
3763 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
698dcdb6 VZ |
3764 | |
3765 | fi | |
10f2d63a VZ |
3766 | |
3767 | ||
3768 | eval "$ac_cv_use_wxprintfv" | |
3769 | if test "$no_cache" != 1; then | |
3770 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
3771 | fi | |
3772 | ||
3773 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
698dcdb6 | 3774 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3775 | else |
698dcdb6 | 3776 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3777 | fi |
698dcdb6 | 3778 | |
10f2d63a | 3779 | |
698dcdb6 | 3780 | echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6 |
54276ccf | 3781 | echo "configure:3782: checking for --enable-std_iostreams" >&5 |
10f2d63a VZ |
3782 | no_cache=0 |
3783 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
3784 | if test "${enable_std_iostreams+set}" = set; then | |
3785 | enableval="$enable_std_iostreams" | |
698dcdb6 | 3786 | |
10f2d63a VZ |
3787 | if test "$enableval" = yes; then |
3788 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
3789 | else | |
3790 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
3791 | fi | |
698dcdb6 | 3792 | |
10f2d63a | 3793 | else |
698dcdb6 | 3794 | |
10f2d63a VZ |
3795 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
3796 | if test "x$LINE" != x ; then | |
3797 | eval "DEFAULT_$LINE" | |
3798 | else | |
3799 | no_cache=1 | |
3800 | fi | |
3801 | ||
3802 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
698dcdb6 VZ |
3803 | |
3804 | fi | |
10f2d63a VZ |
3805 | |
3806 | ||
3807 | eval "$ac_cv_use_std_iostreams" | |
3808 | if test "$no_cache" != 1; then | |
3809 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
3810 | fi | |
3811 | ||
3812 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
698dcdb6 | 3813 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3814 | else |
698dcdb6 | 3815 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3816 | fi |
698dcdb6 | 3817 | |
10f2d63a | 3818 | |
698dcdb6 | 3819 | echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6 |
54276ccf | 3820 | echo "configure:3821: checking for --enable-filesystem" >&5 |
24528b0c VS |
3821 | no_cache=0 |
3822 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
3823 | if test "${enable_filesystem+set}" = set; then | |
3824 | enableval="$enable_filesystem" | |
698dcdb6 | 3825 | |
24528b0c VS |
3826 | if test "$enableval" = yes; then |
3827 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
3828 | else | |
3829 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
3830 | fi | |
698dcdb6 | 3831 | |
24528b0c | 3832 | else |
698dcdb6 | 3833 | |
24528b0c VS |
3834 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` |
3835 | if test "x$LINE" != x ; then | |
3836 | eval "DEFAULT_$LINE" | |
3837 | else | |
3838 | no_cache=1 | |
3839 | fi | |
3840 | ||
3841 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
698dcdb6 VZ |
3842 | |
3843 | fi | |
24528b0c VS |
3844 | |
3845 | ||
3846 | eval "$ac_cv_use_filesystem" | |
3847 | if test "$no_cache" != 1; then | |
3848 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
3849 | fi | |
3850 | ||
3851 | if test "$wxUSE_FILESYSTEM" = yes; then | |
698dcdb6 | 3852 | echo "$ac_t""yes" 1>&6 |
24528b0c | 3853 | else |
698dcdb6 | 3854 | echo "$ac_t""no" 1>&6 |
24528b0c | 3855 | fi |
698dcdb6 | 3856 | |
24528b0c | 3857 | |
698dcdb6 | 3858 | echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6 |
54276ccf | 3859 | echo "configure:3860: checking for --enable-fs_inet" >&5 |
10f2d63a VZ |
3860 | no_cache=0 |
3861 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
3862 | if test "${enable_fs_inet+set}" = set; then | |
3863 | enableval="$enable_fs_inet" | |
698dcdb6 | 3864 | |
10f2d63a VZ |
3865 | if test "$enableval" = yes; then |
3866 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
3867 | else | |
3868 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
3869 | fi | |
698dcdb6 | 3870 | |
10f2d63a | 3871 | else |
698dcdb6 | 3872 | |
10f2d63a VZ |
3873 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` |
3874 | if test "x$LINE" != x ; then | |
3875 | eval "DEFAULT_$LINE" | |
3876 | else | |
3877 | no_cache=1 | |
3878 | fi | |
3879 | ||
3880 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
698dcdb6 VZ |
3881 | |
3882 | fi | |
10f2d63a VZ |
3883 | |
3884 | ||
3885 | eval "$ac_cv_use_fs_inet" | |
3886 | if test "$no_cache" != 1; then | |
3887 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
3888 | fi | |
3889 | ||
3890 | if test "$wxUSE_FS_INET" = yes; then | |
698dcdb6 | 3891 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3892 | else |
698dcdb6 | 3893 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3894 | fi |
698dcdb6 | 3895 | |
10f2d63a | 3896 | |
698dcdb6 | 3897 | echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6 |
54276ccf | 3898 | echo "configure:3899: checking for --enable-fs_zip" >&5 |
10f2d63a VZ |
3899 | no_cache=0 |
3900 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
3901 | if test "${enable_fs_zip+set}" = set; then | |
3902 | enableval="$enable_fs_zip" | |
698dcdb6 | 3903 | |
10f2d63a VZ |
3904 | if test "$enableval" = yes; then |
3905 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
3906 | else | |
3907 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
3908 | fi | |
698dcdb6 | 3909 | |
10f2d63a | 3910 | else |
698dcdb6 | 3911 | |
10f2d63a VZ |
3912 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` |
3913 | if test "x$LINE" != x ; then | |
3914 | eval "DEFAULT_$LINE" | |
3915 | else | |
3916 | no_cache=1 | |
3917 | fi | |
3918 | ||
3919 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
698dcdb6 VZ |
3920 | |
3921 | fi | |
10f2d63a VZ |
3922 | |
3923 | ||
3924 | eval "$ac_cv_use_fs_zip" | |
3925 | if test "$no_cache" != 1; then | |
3926 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
3927 | fi | |
3928 | ||
3929 | if test "$wxUSE_FS_ZIP" = yes; then | |
698dcdb6 | 3930 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3931 | else |
698dcdb6 | 3932 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3933 | fi |
698dcdb6 | 3934 | |
10f2d63a | 3935 | |
698dcdb6 | 3936 | echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6 |
54276ccf | 3937 | echo "configure:3938: checking for --enable-zipstream" >&5 |
10f2d63a VZ |
3938 | no_cache=0 |
3939 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
3940 | if test "${enable_zipstream+set}" = set; then | |
3941 | enableval="$enable_zipstream" | |
698dcdb6 | 3942 | |
10f2d63a VZ |
3943 | if test "$enableval" = yes; then |
3944 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
3945 | else | |
3946 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
3947 | fi | |
698dcdb6 | 3948 | |
10f2d63a | 3949 | else |
698dcdb6 | 3950 | |
10f2d63a VZ |
3951 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` |
3952 | if test "x$LINE" != x ; then | |
3953 | eval "DEFAULT_$LINE" | |
3954 | else | |
3955 | no_cache=1 | |
3956 | fi | |
3957 | ||
3958 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
698dcdb6 VZ |
3959 | |
3960 | fi | |
10f2d63a VZ |
3961 | |
3962 | ||
3963 | eval "$ac_cv_use_zipstream" | |
3964 | if test "$no_cache" != 1; then | |
3965 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
3966 | fi | |
3967 | ||
3968 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
698dcdb6 | 3969 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3970 | else |
698dcdb6 | 3971 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3972 | fi |
698dcdb6 | 3973 | |
10f2d63a | 3974 | |
698dcdb6 VZ |
3975 | |
3976 | echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6 | |
54276ccf | 3977 | echo "configure:3978: checking for --enable-catch_segvs" >&5 |
eb4efbdc VZ |
3978 | no_cache=0 |
3979 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
3980 | if test "${enable_catch_segvs+set}" = set; then | |
3981 | enableval="$enable_catch_segvs" | |
698dcdb6 | 3982 | |
eb4efbdc VZ |
3983 | if test "$enableval" = yes; then |
3984 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
3985 | else | |
3986 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
3987 | fi | |
698dcdb6 | 3988 | |
eb4efbdc | 3989 | else |
698dcdb6 | 3990 | |
eb4efbdc VZ |
3991 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
3992 | if test "x$LINE" != x ; then | |
3993 | eval "DEFAULT_$LINE" | |
3994 | else | |
3995 | no_cache=1 | |
3996 | fi | |
3997 | ||
3998 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
698dcdb6 VZ |
3999 | |
4000 | fi | |
eb4efbdc VZ |
4001 | |
4002 | ||
4003 | eval "$ac_cv_use_catch_segvs" | |
4004 | if test "$no_cache" != 1; then | |
4005 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
4006 | fi | |
4007 | ||
4008 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
698dcdb6 | 4009 | echo "$ac_t""yes" 1>&6 |
eb4efbdc | 4010 | else |
698dcdb6 | 4011 | echo "$ac_t""no" 1>&6 |
eb4efbdc | 4012 | fi |
698dcdb6 | 4013 | |
eb4efbdc | 4014 | |
698dcdb6 | 4015 | echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6 |
54276ccf | 4016 | echo "configure:4017: checking for --enable-snglinst" >&5 |
4f3c5f06 VZ |
4017 | no_cache=0 |
4018 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
4019 | if test "${enable_snglinst+set}" = set; then | |
4020 | enableval="$enable_snglinst" | |
698dcdb6 | 4021 | |
4f3c5f06 VZ |
4022 | if test "$enableval" = yes; then |
4023 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
4024 | else | |
4025 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
4026 | fi | |
698dcdb6 | 4027 | |
4f3c5f06 | 4028 | else |
698dcdb6 | 4029 | |
4f3c5f06 VZ |
4030 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` |
4031 | if test "x$LINE" != x ; then | |
4032 | eval "DEFAULT_$LINE" | |
4033 | else | |
4034 | no_cache=1 | |
4035 | fi | |
4036 | ||
4037 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
698dcdb6 VZ |
4038 | |
4039 | fi | |
4f3c5f06 VZ |
4040 | |
4041 | ||
4042 | eval "$ac_cv_use_snglinst" | |
4043 | if test "$no_cache" != 1; then | |
4044 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
4045 | fi | |
4046 | ||
4047 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
698dcdb6 | 4048 | echo "$ac_t""yes" 1>&6 |
4f3c5f06 | 4049 | else |
698dcdb6 | 4050 | echo "$ac_t""no" 1>&6 |
4f3c5f06 | 4051 | fi |
698dcdb6 VZ |
4052 | |
4053 | ||
eb4efbdc | 4054 | |
1e6feb95 | 4055 | echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6 |
54276ccf | 4056 | echo "configure:4057: checking for --enable-mimetype" >&5 |
1e6feb95 VZ |
4057 | no_cache=0 |
4058 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
4059 | if test "${enable_mimetype+set}" = set; then | |
4060 | enableval="$enable_mimetype" | |
4061 | ||
4062 | if test "$enableval" = yes; then | |
4063 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
4064 | else | |
4065 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
4066 | fi | |
4067 | ||
4068 | else | |
4069 | ||
4070 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
4071 | if test "x$LINE" != x ; then | |
4072 | eval "DEFAULT_$LINE" | |
4073 | else | |
4074 | no_cache=1 | |
4075 | fi | |
4076 | ||
4077 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
4078 | ||
4079 | fi | |
4080 | ||
4081 | ||
4082 | eval "$ac_cv_use_mimetype" | |
4083 | if test "$no_cache" != 1; then | |
4084 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
4085 | fi | |
4086 | ||
4087 | if test "$wxUSE_MIMETYPE" = yes; then | |
4088 | echo "$ac_t""yes" 1>&6 | |
4089 | else | |
4090 | echo "$ac_t""no" 1>&6 | |
4091 | fi | |
4092 | ||
4093 | ||
4094 | ||
698dcdb6 VZ |
4095 | |
4096 | echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6 | |
54276ccf | 4097 | echo "configure:4098: checking for --enable-threads" >&5 |
10f2d63a VZ |
4098 | no_cache=0 |
4099 | # Check whether --enable-threads or --disable-threads was given. | |
4100 | if test "${enable_threads+set}" = set; then | |
4101 | enableval="$enable_threads" | |
698dcdb6 | 4102 | |
10f2d63a VZ |
4103 | if test "$enableval" = yes; then |
4104 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
4105 | else | |
4106 | ac_cv_use_threads='wxUSE_THREADS=no' | |
4107 | fi | |
698dcdb6 | 4108 | |
10f2d63a | 4109 | else |
698dcdb6 | 4110 | |
10f2d63a VZ |
4111 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` |
4112 | if test "x$LINE" != x ; then | |
4113 | eval "DEFAULT_$LINE" | |
4114 | else | |
4115 | no_cache=1 | |
4116 | fi | |
4117 | ||
4118 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
698dcdb6 VZ |
4119 | |
4120 | fi | |
10f2d63a VZ |
4121 | |
4122 | ||
4123 | eval "$ac_cv_use_threads" | |
4124 | if test "$no_cache" != 1; then | |
4125 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
4126 | fi | |
4127 | ||
4128 | if test "$wxUSE_THREADS" = yes; then | |
698dcdb6 | 4129 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4130 | else |
698dcdb6 | 4131 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4132 | fi |
698dcdb6 | 4133 | |
10f2d63a | 4134 | |
698dcdb6 | 4135 | echo $ac_n "checking for --enable-serial""... $ac_c" 1>&6 |
54276ccf | 4136 | echo "configure:4137: checking for --enable-serial" >&5 |
10f2d63a VZ |
4137 | no_cache=0 |
4138 | # Check whether --enable-serial or --disable-serial was given. | |
4139 | if test "${enable_serial+set}" = set; then | |
4140 | enableval="$enable_serial" | |
698dcdb6 | 4141 | |
10f2d63a VZ |
4142 | if test "$enableval" = yes; then |
4143 | ac_cv_use_serial='wxUSE_SERIAL=yes' | |
4144 | else | |
4145 | ac_cv_use_serial='wxUSE_SERIAL=no' | |
4146 | fi | |
698dcdb6 | 4147 | |
10f2d63a | 4148 | else |
698dcdb6 | 4149 | |
10f2d63a VZ |
4150 | LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}` |
4151 | if test "x$LINE" != x ; then | |
4152 | eval "DEFAULT_$LINE" | |
4153 | else | |
4154 | no_cache=1 | |
4155 | fi | |
4156 | ||
4157 | ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL | |
698dcdb6 VZ |
4158 | |
4159 | fi | |
10f2d63a VZ |
4160 | |
4161 | ||
4162 | eval "$ac_cv_use_serial" | |
4163 | if test "$no_cache" != 1; then | |
4164 | echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp | |
4165 | fi | |
4166 | ||
4167 | if test "$wxUSE_SERIAL" = yes; then | |
698dcdb6 | 4168 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4169 | else |
698dcdb6 | 4170 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4171 | fi |
698dcdb6 | 4172 | |
10f2d63a | 4173 | |
b12915c1 VZ |
4174 | if test "$wxUSE_GUI" = "yes"; then |
4175 | ||
698dcdb6 VZ |
4176 | |
4177 | ||
4178 | echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6 | |
54276ccf | 4179 | echo "configure:4180: checking for --enable-docview" >&5 |
10f2d63a VZ |
4180 | no_cache=0 |
4181 | # Check whether --enable-docview or --disable-docview was given. | |
4182 | if test "${enable_docview+set}" = set; then | |
4183 | enableval="$enable_docview" | |
698dcdb6 | 4184 | |
10f2d63a VZ |
4185 | if test "$enableval" = yes; then |
4186 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
4187 | else | |
4188 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
4189 | fi | |
698dcdb6 | 4190 | |
10f2d63a | 4191 | else |
698dcdb6 | 4192 | |
10f2d63a VZ |
4193 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` |
4194 | if test "x$LINE" != x ; then | |
4195 | eval "DEFAULT_$LINE" | |
4196 | else | |
4197 | no_cache=1 | |
4198 | fi | |
4199 | ||
4200 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
698dcdb6 VZ |
4201 | |
4202 | fi | |
10f2d63a VZ |
4203 | |
4204 | ||
4205 | eval "$ac_cv_use_docview" | |
4206 | if test "$no_cache" != 1; then | |
4207 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
4208 | fi | |
4209 | ||
4210 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
698dcdb6 | 4211 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4212 | else |
698dcdb6 | 4213 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4214 | fi |
698dcdb6 | 4215 | |
10f2d63a | 4216 | |
698dcdb6 | 4217 | echo $ac_n "checking for --enable-help""... $ac_c" 1>&6 |
54276ccf | 4218 | echo "configure:4219: checking for --enable-help" >&5 |
10f2d63a VZ |
4219 | no_cache=0 |
4220 | # Check whether --enable-help or --disable-help was given. | |
4221 | if test "${enable_help+set}" = set; then | |
4222 | enableval="$enable_help" | |
698dcdb6 | 4223 | |
10f2d63a VZ |
4224 | if test "$enableval" = yes; then |
4225 | ac_cv_use_help='wxUSE_HELP=yes' | |
4226 | else | |
4227 | ac_cv_use_help='wxUSE_HELP=no' | |
4228 | fi | |
698dcdb6 | 4229 | |
10f2d63a | 4230 | else |
698dcdb6 | 4231 | |
10f2d63a VZ |
4232 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` |
4233 | if test "x$LINE" != x ; then | |
4234 | eval "DEFAULT_$LINE" | |
4235 | else | |
4236 | no_cache=1 | |
4237 | fi | |
4238 | ||
4239 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
698dcdb6 VZ |
4240 | |
4241 | fi | |
10f2d63a VZ |
4242 | |
4243 | ||
4244 | eval "$ac_cv_use_help" | |
4245 | if test "$no_cache" != 1; then | |
4246 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
4247 | fi | |
4248 | ||
4249 | if test "$wxUSE_HELP" = yes; then | |
698dcdb6 | 4250 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4251 | else |
698dcdb6 | 4252 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4253 | fi |
698dcdb6 | 4254 | |
10f2d63a | 4255 | |
698dcdb6 | 4256 | echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6 |
54276ccf | 4257 | echo "configure:4258: checking for --enable-constraints" >&5 |
10f2d63a VZ |
4258 | no_cache=0 |
4259 | # Check whether --enable-constraints or --disable-constraints was given. | |
4260 | if test "${enable_constraints+set}" = set; then | |
4261 | enableval="$enable_constraints" | |
698dcdb6 | 4262 | |
10f2d63a VZ |
4263 | if test "$enableval" = yes; then |
4264 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
4265 | else | |
4266 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
4267 | fi | |
698dcdb6 | 4268 | |
10f2d63a | 4269 | else |
698dcdb6 | 4270 | |
10f2d63a VZ |
4271 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` |
4272 | if test "x$LINE" != x ; then | |
4273 | eval "DEFAULT_$LINE" | |
4274 | else | |
4275 | no_cache=1 | |
4276 | fi | |
4277 | ||
4278 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
698dcdb6 VZ |
4279 | |
4280 | fi | |
10f2d63a VZ |
4281 | |
4282 | ||
4283 | eval "$ac_cv_use_constraints" | |
4284 | if test "$no_cache" != 1; then | |
4285 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
4286 | fi | |
4287 | ||
4288 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
698dcdb6 | 4289 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4290 | else |
698dcdb6 | 4291 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4292 | fi |
698dcdb6 | 4293 | |
10f2d63a | 4294 | |
698dcdb6 | 4295 | echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6 |
54276ccf | 4296 | echo "configure:4297: checking for --enable-printarch" >&5 |
10f2d63a VZ |
4297 | no_cache=0 |
4298 | # Check whether --enable-printarch or --disable-printarch was given. | |
4299 | if test "${enable_printarch+set}" = set; then | |
4300 | enableval="$enable_printarch" | |
698dcdb6 | 4301 | |
10f2d63a VZ |
4302 | if test "$enableval" = yes; then |
4303 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
4304 | else | |
4305 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
4306 | fi | |
698dcdb6 | 4307 | |
10f2d63a | 4308 | else |
698dcdb6 | 4309 | |
10f2d63a VZ |
4310 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` |
4311 | if test "x$LINE" != x ; then | |
4312 | eval "DEFAULT_$LINE" | |
4313 | else | |
4314 | no_cache=1 | |
4315 | fi | |
4316 | ||
4317 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
698dcdb6 VZ |
4318 | |
4319 | fi | |
10f2d63a VZ |
4320 | |
4321 | ||
4322 | eval "$ac_cv_use_printarch" | |
4323 | if test "$no_cache" != 1; then | |
4324 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
4325 | fi | |
4326 | ||
4327 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
698dcdb6 | 4328 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4329 | else |
698dcdb6 | 4330 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4331 | fi |
698dcdb6 | 4332 | |
10f2d63a | 4333 | |
698dcdb6 | 4334 | echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6 |
54276ccf | 4335 | echo "configure:4336: checking for --enable-mdi" >&5 |
10f2d63a VZ |
4336 | no_cache=0 |
4337 | # Check whether --enable-mdi or --disable-mdi was given. | |
4338 | if test "${enable_mdi+set}" = set; then | |
4339 | enableval="$enable_mdi" | |
698dcdb6 | 4340 | |
10f2d63a VZ |
4341 | if test "$enableval" = yes; then |
4342 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
4343 | else | |
4344 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
4345 | fi | |
698dcdb6 | 4346 | |
10f2d63a | 4347 | else |
698dcdb6 | 4348 | |
10f2d63a VZ |
4349 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` |
4350 | if test "x$LINE" != x ; then | |
4351 | eval "DEFAULT_$LINE" | |
4352 | else | |
4353 | no_cache=1 | |
4354 | fi | |
4355 | ||
4356 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
698dcdb6 VZ |
4357 | |
4358 | fi | |
10f2d63a VZ |
4359 | |
4360 | ||
4361 | eval "$ac_cv_use_mdi" | |
4362 | if test "$no_cache" != 1; then | |
4363 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
4364 | fi | |
4365 | ||
4366 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
698dcdb6 | 4367 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4368 | else |
698dcdb6 | 4369 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4370 | fi |
698dcdb6 VZ |
4371 | |
4372 | ||
1e6feb95 | 4373 | echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6 |
54276ccf | 4374 | echo "configure:4375: checking for --enable-loggui" >&5 |
1e6feb95 VZ |
4375 | no_cache=0 |
4376 | # Check whether --enable-loggui or --disable-loggui was given. | |
4377 | if test "${enable_loggui+set}" = set; then | |
4378 | enableval="$enable_loggui" | |
4379 | ||
4380 | if test "$enableval" = yes; then | |
4381 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
4382 | else | |
4383 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
4384 | fi | |
4385 | ||
4386 | else | |
4387 | ||
4388 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
4389 | if test "x$LINE" != x ; then | |
4390 | eval "DEFAULT_$LINE" | |
4391 | else | |
4392 | no_cache=1 | |
4393 | fi | |
4394 | ||
4395 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
4396 | ||
4397 | fi | |
4398 | ||
4399 | ||
4400 | eval "$ac_cv_use_loggui" | |
4401 | if test "$no_cache" != 1; then | |
4402 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
4403 | fi | |
4404 | ||
4405 | if test "$wxUSE_LOGGUI" = yes; then | |
4406 | echo "$ac_t""yes" 1>&6 | |
4407 | else | |
4408 | echo "$ac_t""no" 1>&6 | |
4409 | fi | |
4410 | ||
4411 | ||
4412 | echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6 | |
54276ccf | 4413 | echo "configure:4414: checking for --enable-logwin" >&5 |
1e6feb95 VZ |
4414 | no_cache=0 |
4415 | # Check whether --enable-logwin or --disable-logwin was given. | |
4416 | if test "${enable_logwin+set}" = set; then | |
4417 | enableval="$enable_logwin" | |
4418 | ||
4419 | if test "$enableval" = yes; then | |
4420 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
4421 | else | |
4422 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
4423 | fi | |
4424 | ||
4425 | else | |
4426 | ||
4427 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` | |
4428 | if test "x$LINE" != x ; then | |
4429 | eval "DEFAULT_$LINE" | |
4430 | else | |
4431 | no_cache=1 | |
4432 | fi | |
4433 | ||
4434 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
4435 | ||
4436 | fi | |
4437 | ||
4438 | ||
4439 | eval "$ac_cv_use_logwin" | |
4440 | if test "$no_cache" != 1; then | |
4441 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
4442 | fi | |
4443 | ||
4444 | if test "$wxUSE_LOGWINDOW" = yes; then | |
4445 | echo "$ac_t""yes" 1>&6 | |
4446 | else | |
4447 | echo "$ac_t""no" 1>&6 | |
4448 | fi | |
4449 | ||
4450 | ||
10f2d63a | 4451 | |
698dcdb6 | 4452 | echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6 |
54276ccf | 4453 | echo "configure:4454: checking for --enable-postscript" >&5 |
10f2d63a VZ |
4454 | no_cache=0 |
4455 | # Check whether --enable-postscript or --disable-postscript was given. | |
4456 | if test "${enable_postscript+set}" = set; then | |
4457 | enableval="$enable_postscript" | |
698dcdb6 | 4458 | |
10f2d63a VZ |
4459 | if test "$enableval" = yes; then |
4460 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
4461 | else | |
4462 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
4463 | fi | |
698dcdb6 | 4464 | |
10f2d63a | 4465 | else |
698dcdb6 | 4466 | |
10f2d63a VZ |
4467 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` |
4468 | if test "x$LINE" != x ; then | |
4469 | eval "DEFAULT_$LINE" | |
4470 | else | |
4471 | no_cache=1 | |
4472 | fi | |
4473 | ||
4474 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
698dcdb6 VZ |
4475 | |
4476 | fi | |
10f2d63a VZ |
4477 | |
4478 | ||
4479 | eval "$ac_cv_use_postscript" | |
4480 | if test "$no_cache" != 1; then | |
4481 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
4482 | fi | |
4483 | ||
4484 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
698dcdb6 | 4485 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4486 | else |
698dcdb6 | 4487 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4488 | fi |
698dcdb6 VZ |
4489 | |
4490 | ||
4491 | ||
10f2d63a | 4492 | |
1e6feb95 | 4493 | |
698dcdb6 | 4494 | echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6 |
54276ccf | 4495 | echo "configure:4496: checking for --enable-prologio" >&5 |
10f2d63a VZ |
4496 | no_cache=0 |
4497 | # Check whether --enable-prologio or --disable-prologio was given. | |
4498 | if test "${enable_prologio+set}" = set; then | |
4499 | enableval="$enable_prologio" | |
698dcdb6 | 4500 | |
10f2d63a VZ |
4501 | if test "$enableval" = yes; then |
4502 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
4503 | else | |
4504 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
4505 | fi | |
698dcdb6 | 4506 | |
10f2d63a | 4507 | else |
698dcdb6 | 4508 | |
10f2d63a VZ |
4509 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` |
4510 | if test "x$LINE" != x ; then | |
4511 | eval "DEFAULT_$LINE" | |
4512 | else | |
4513 | no_cache=1 | |
4514 | fi | |
4515 | ||
4516 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
698dcdb6 VZ |
4517 | |
4518 | fi | |
10f2d63a VZ |
4519 | |
4520 | ||
4521 | eval "$ac_cv_use_prologio" | |
4522 | if test "$no_cache" != 1; then | |
4523 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
4524 | fi | |
4525 | ||
4526 | if test "$wxUSE_PROLOGIO" = yes; then | |
698dcdb6 | 4527 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4528 | else |
698dcdb6 | 4529 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4530 | fi |
698dcdb6 | 4531 | |
10f2d63a | 4532 | |
698dcdb6 | 4533 | echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6 |
54276ccf | 4534 | echo "configure:4535: checking for --enable-resources" >&5 |
10f2d63a VZ |
4535 | no_cache=0 |
4536 | # Check whether --enable-resources or --disable-resources was given. | |
4537 | if test "${enable_resources+set}" = set; then | |
4538 | enableval="$enable_resources" | |
698dcdb6 | 4539 | |
10f2d63a VZ |
4540 | if test "$enableval" = yes; then |
4541 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
4542 | else | |
4543 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
4544 | fi | |
698dcdb6 | 4545 | |
10f2d63a | 4546 | else |
698dcdb6 | 4547 | |
10f2d63a VZ |
4548 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` |
4549 | if test "x$LINE" != x ; then | |
4550 | eval "DEFAULT_$LINE" | |
4551 | else | |
4552 | no_cache=1 | |
4553 | fi | |
4554 | ||
4555 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
698dcdb6 VZ |
4556 | |
4557 | fi | |
10f2d63a VZ |
4558 | |
4559 | ||
4560 | eval "$ac_cv_use_resources" | |
4561 | if test "$no_cache" != 1; then | |
4562 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
4563 | fi | |
4564 | ||
4565 | if test "$wxUSE_RESOURCES" = yes; then | |
698dcdb6 | 4566 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4567 | else |
698dcdb6 | 4568 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4569 | fi |
698dcdb6 | 4570 | |
10f2d63a | 4571 | |
698dcdb6 VZ |
4572 | |
4573 | echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6 | |
54276ccf | 4574 | echo "configure:4575: checking for --enable-xresources" >&5 |
10f2d63a VZ |
4575 | no_cache=0 |
4576 | # Check whether --enable-xresources or --disable-xresources was given. | |
4577 | if test "${enable_xresources+set}" = set; then | |
4578 | enableval="$enable_xresources" | |
698dcdb6 | 4579 | |
10f2d63a VZ |
4580 | if test "$enableval" = yes; then |
4581 | ac_cv_use_xresources='wxUSE_X_RESOURCES=yes' | |
4582 | else | |
4583 | ac_cv_use_xresources='wxUSE_X_RESOURCES=no' | |
4584 | fi | |
698dcdb6 | 4585 | |
10f2d63a | 4586 | else |
698dcdb6 | 4587 | |
10f2d63a VZ |
4588 | LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}` |
4589 | if test "x$LINE" != x ; then | |
4590 | eval "DEFAULT_$LINE" | |
4591 | else | |
4592 | no_cache=1 | |
4593 | fi | |
4594 | ||
4595 | ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES | |
698dcdb6 VZ |
4596 | |
4597 | fi | |
10f2d63a VZ |
4598 | |
4599 | ||
4600 | eval "$ac_cv_use_xresources" | |
4601 | if test "$no_cache" != 1; then | |
4602 | echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp | |
4603 | fi | |
4604 | ||
4605 | if test "$wxUSE_X_RESOURCES" = yes; then | |
698dcdb6 | 4606 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4607 | else |
698dcdb6 | 4608 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4609 | fi |
698dcdb6 VZ |
4610 | |
4611 | ||
10f2d63a | 4612 | |
698dcdb6 VZ |
4613 | |
4614 | echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6 | |
54276ccf | 4615 | echo "configure:4616: checking for --enable-clipboard" >&5 |
10f2d63a VZ |
4616 | no_cache=0 |
4617 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
4618 | if test "${enable_clipboard+set}" = set; then | |
4619 | enableval="$enable_clipboard" | |
698dcdb6 | 4620 | |
10f2d63a VZ |
4621 | if test "$enableval" = yes; then |
4622 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
4623 | else | |
4624 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
4625 | fi | |
698dcdb6 | 4626 | |
10f2d63a | 4627 | else |
698dcdb6 | 4628 | |
10f2d63a VZ |
4629 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` |
4630 | if test "x$LINE" != x ; then | |
4631 | eval "DEFAULT_$LINE" | |
4632 | else | |
4633 | no_cache=1 | |
4634 | fi | |
4635 | ||
4636 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
698dcdb6 VZ |
4637 | |
4638 | fi | |
10f2d63a VZ |
4639 | |
4640 | ||
4641 | eval "$ac_cv_use_clipboard" | |
4642 | if test "$no_cache" != 1; then | |
4643 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
4644 | fi | |
4645 | ||
4646 | if test "$wxUSE_CLIPBOARD" = yes; then | |
698dcdb6 | 4647 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4648 | else |
698dcdb6 | 4649 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4650 | fi |
698dcdb6 | 4651 | |
10f2d63a | 4652 | |
698dcdb6 | 4653 | echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6 |
54276ccf | 4654 | echo "configure:4655: checking for --enable-dnd" >&5 |
10f2d63a VZ |
4655 | no_cache=0 |
4656 | # Check whether --enable-dnd or --disable-dnd was given. | |
4657 | if test "${enable_dnd+set}" = set; then | |
4658 | enableval="$enable_dnd" | |
698dcdb6 | 4659 | |
10f2d63a VZ |
4660 | if test "$enableval" = yes; then |
4661 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
4662 | else | |
4663 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
4664 | fi | |
698dcdb6 | 4665 | |
10f2d63a | 4666 | else |
698dcdb6 | 4667 | |
10f2d63a VZ |
4668 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` |
4669 | if test "x$LINE" != x ; then | |
4670 | eval "DEFAULT_$LINE" | |
4671 | else | |
4672 | no_cache=1 | |
4673 | fi | |
4674 | ||
4675 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
698dcdb6 VZ |
4676 | |
4677 | fi | |
10f2d63a VZ |
4678 | |
4679 | ||
4680 | eval "$ac_cv_use_dnd" | |
4681 | if test "$no_cache" != 1; then | |
4682 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
4683 | fi | |
4684 | ||
4685 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
698dcdb6 | 4686 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4687 | else |
698dcdb6 | 4688 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4689 | fi |
698dcdb6 | 4690 | |
10f2d63a | 4691 | |
698dcdb6 | 4692 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
54276ccf | 4693 | echo "configure:4694: checking for --enable-metafile" >&5 |
b64f0a5f RL |
4694 | no_cache=0 |
4695 | # Check whether --enable-metafile or --disable-metafile was given. | |
4696 | if test "${enable_metafile+set}" = set; then | |
4697 | enableval="$enable_metafile" | |
698dcdb6 | 4698 | |
b64f0a5f RL |
4699 | if test "$enableval" = yes; then |
4700 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
4701 | else | |
4702 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
4703 | fi | |
698dcdb6 | 4704 | |
b64f0a5f | 4705 | else |
698dcdb6 | 4706 | |
b64f0a5f RL |
4707 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
4708 | if test "x$LINE" != x ; then | |
4709 | eval "DEFAULT_$LINE" | |
4710 | else | |
4711 | no_cache=1 | |
4712 | fi | |
4713 | ||
4714 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
698dcdb6 VZ |
4715 | |
4716 | fi | |
b64f0a5f RL |
4717 | |
4718 | ||
4719 | eval "$ac_cv_use_metafile" | |
4720 | if test "$no_cache" != 1; then | |
4721 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
4722 | fi | |
4723 | ||
4724 | if test "$wxUSE_METAFILE" = yes; then | |
698dcdb6 | 4725 | echo "$ac_t""yes" 1>&6 |
b64f0a5f | 4726 | else |
698dcdb6 | 4727 | echo "$ac_t""no" 1>&6 |
b64f0a5f | 4728 | fi |
698dcdb6 VZ |
4729 | |
4730 | ||
10f2d63a | 4731 | |
698dcdb6 | 4732 | echo $ac_n "checking for --enable-wxtree""... $ac_c" 1>&6 |
54276ccf | 4733 | echo "configure:4734: checking for --enable-wxtree" >&5 |
10f2d63a VZ |
4734 | no_cache=0 |
4735 | # Check whether --enable-wxtree or --disable-wxtree was given. | |
4736 | if test "${enable_wxtree+set}" = set; then | |
4737 | enableval="$enable_wxtree" | |
698dcdb6 | 4738 | |
10f2d63a VZ |
4739 | if test "$enableval" = yes; then |
4740 | ac_cv_use_wxtree='wxUSE_WXTREE=yes' | |
4741 | else | |
4742 | ac_cv_use_wxtree='wxUSE_WXTREE=no' | |
4743 | fi | |
698dcdb6 | 4744 | |
10f2d63a | 4745 | else |
698dcdb6 | 4746 | |
10f2d63a VZ |
4747 | LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}` |
4748 | if test "x$LINE" != x ; then | |
4749 | eval "DEFAULT_$LINE" | |
4750 | else | |
4751 | no_cache=1 | |
4752 | fi | |
4753 | ||
4754 | ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE | |
698dcdb6 VZ |
4755 | |
4756 | fi | |
10f2d63a VZ |
4757 | |
4758 | ||
4759 | eval "$ac_cv_use_wxtree" | |
4760 | if test "$no_cache" != 1; then | |
4761 | echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp | |
4762 | fi | |
4763 | ||
4764 | if test "$wxUSE_WXTREE" = yes; then | |
698dcdb6 | 4765 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4766 | else |
698dcdb6 | 4767 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4768 | fi |
698dcdb6 | 4769 | |
10f2d63a | 4770 | |
698dcdb6 VZ |
4771 | |
4772 | ||
4773 | echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6 | |
54276ccf | 4774 | echo "configure:4775: checking for --enable-controls" >&5 |
10f2d63a VZ |
4775 | no_cache=0 |
4776 | # Check whether --enable-controls or --disable-controls was given. | |
4777 | if test "${enable_controls+set}" = set; then | |
4778 | enableval="$enable_controls" | |
698dcdb6 | 4779 | |
10f2d63a VZ |
4780 | if test "$enableval" = yes; then |
4781 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
4782 | else | |
4783 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
4784 | fi | |
698dcdb6 | 4785 | |
10f2d63a | 4786 | else |
698dcdb6 | 4787 | |
10f2d63a VZ |
4788 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` |
4789 | if test "x$LINE" != x ; then | |
4790 | eval "DEFAULT_$LINE" | |
4791 | else | |
4792 | no_cache=1 | |
4793 | fi | |
4794 | ||
4795 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
698dcdb6 VZ |
4796 | |
4797 | fi | |
10f2d63a VZ |
4798 | |
4799 | ||
4800 | eval "$ac_cv_use_controls" | |
4801 | if test "$no_cache" != 1; then | |
4802 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
4803 | fi | |
4804 | ||
4805 | if test "$wxUSE_CONTROLS" = yes; then | |
698dcdb6 | 4806 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4807 | else |
698dcdb6 | 4808 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4809 | fi |
698dcdb6 | 4810 | |
10f2d63a VZ |
4811 | |
4812 | if test "$wxUSE_CONTROLS" = "yes"; then | |
4813 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 VZ |
4814 | DEFAULT_wxUSE_BMPBUTTON=yes |
4815 | DEFAULT_wxUSE_BUTTON=yes | |
4816 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
4817 | DEFAULT_wxUSE_CARET=yes |
4818 | DEFAULT_wxUSE_COMBOBOX=yes | |
10f2d63a VZ |
4819 | DEFAULT_wxUSE_CHECKBOX=yes |
4820 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
4821 | DEFAULT_wxUSE_CHOICE=yes | |
4822 | DEFAULT_wxUSE_GAUGE=yes | |
4823 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 4824 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
4825 | DEFAULT_wxUSE_IMAGLIST=yes |
4826 | DEFAULT_wxUSE_LISTBOX=yes | |
4827 | DEFAULT_wxUSE_LISTCTRL=yes | |
4828 | DEFAULT_wxUSE_NOTEBOOK=yes | |
4829 | DEFAULT_wxUSE_RADIOBOX=yes | |
4830 | DEFAULT_wxUSE_RADIOBTN=yes | |
4831 | DEFAULT_wxUSE_SASH=yes | |
4832 | DEFAULT_wxUSE_SCROLLBAR=yes | |
4833 | DEFAULT_wxUSE_SLIDER=yes | |
4834 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 4835 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
4836 | DEFAULT_wxUSE_SPLITTER=yes |
4837 | DEFAULT_wxUSE_STATBMP=yes | |
4838 | DEFAULT_wxUSE_STATBOX=yes | |
4839 | DEFAULT_wxUSE_STATLINE=yes | |
4840 | DEFAULT_wxUSE_STATUSBAR=yes | |
4841 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
1db8dc4a | 4842 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 4843 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
4844 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
4845 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
4846 | DEFAULT_wxUSE_TOOLTIPS=yes |
4847 | DEFAULT_wxUSE_TREECTRL=yes | |
4848 | elif test "$wxUSE_CONTROLS" = "no"; then | |
4849 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 VZ |
4850 | DEFAULT_wxUSE_BMPBUTTON=no |
4851 | DEFAULT_wxUSE_BUTTON=no | |
4852 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
4853 | DEFAULT_wxUSE_CARET=no |
4854 | DEFAULT_wxUSE_COMBOBOX=no | |
10f2d63a VZ |
4855 | DEFAULT_wxUSE_CHECKBOX=no |
4856 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
4857 | DEFAULT_wxUSE_CHOICE=no | |
4858 | DEFAULT_wxUSE_GAUGE=no | |
4859 | DEFAULT_wxUSE_GRID=no | |
4860 | DEFAULT_wxUSE_NEW_GRID=no | |
4861 | DEFAULT_wxUSE_IMAGLIST=no | |
4862 | DEFAULT_wxUSE_LISTBOX=no | |
4863 | DEFAULT_wxUSE_LISTCTRL=no | |
4864 | DEFAULT_wxUSE_NOTEBOOK=no | |
4865 | DEFAULT_wxUSE_RADIOBOX=no | |
4866 | DEFAULT_wxUSE_RADIOBTN=no | |
4867 | DEFAULT_wxUSE_SASH=no | |
4868 | DEFAULT_wxUSE_SCROLLBAR=no | |
4869 | DEFAULT_wxUSE_SLIDER=no | |
4870 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 4871 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
4872 | DEFAULT_wxUSE_SPLITTER=no |
4873 | DEFAULT_wxUSE_STATBMP=no | |
4874 | DEFAULT_wxUSE_STATBOX=no | |
4875 | DEFAULT_wxUSE_STATLINE=no | |
4876 | DEFAULT_wxUSE_STATUSBAR=no | |
4877 | DEFAULT_wxUSE_TAB_DIALOG=no | |
1db8dc4a | 4878 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 4879 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
4880 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
4881 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
4882 | DEFAULT_wxUSE_TOOLTIPS=no |
4883 | DEFAULT_wxUSE_TREECTRL=no | |
4884 | fi | |
4885 | ||
698dcdb6 VZ |
4886 | |
4887 | echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6 | |
54276ccf | 4888 | echo "configure:4889: checking for --enable-accel" >&5 |
10f2d63a VZ |
4889 | no_cache=0 |
4890 | # Check whether --enable-accel or --disable-accel was given. | |
4891 | if test "${enable_accel+set}" = set; then | |
4892 | enableval="$enable_accel" | |
698dcdb6 | 4893 | |
10f2d63a VZ |
4894 | if test "$enableval" = yes; then |
4895 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
4896 | else | |
4897 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
4898 | fi | |
698dcdb6 | 4899 | |
10f2d63a | 4900 | else |
698dcdb6 | 4901 | |
10f2d63a VZ |
4902 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` |
4903 | if test "x$LINE" != x ; then | |
4904 | eval "DEFAULT_$LINE" | |
4905 | else | |
4906 | no_cache=1 | |
4907 | fi | |
4908 | ||
4909 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
698dcdb6 VZ |
4910 | |
4911 | fi | |
10f2d63a VZ |
4912 | |
4913 | ||
4914 | eval "$ac_cv_use_accel" | |
4915 | if test "$no_cache" != 1; then | |
4916 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
4917 | fi | |
4918 | ||
4919 | if test "$wxUSE_ACCEL" = yes; then | |
698dcdb6 | 4920 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4921 | else |
698dcdb6 | 4922 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4923 | fi |
698dcdb6 | 4924 | |
10f2d63a | 4925 | |
1e6feb95 | 4926 | echo $ac_n "checking for --enable-button""... $ac_c" 1>&6 |
54276ccf | 4927 | echo "configure:4928: checking for --enable-button" >&5 |
10f2d63a | 4928 | no_cache=0 |
1e6feb95 VZ |
4929 | # Check whether --enable-button or --disable-button was given. |
4930 | if test "${enable_button+set}" = set; then | |
4931 | enableval="$enable_button" | |
698dcdb6 | 4932 | |
10f2d63a | 4933 | if test "$enableval" = yes; then |
1e6feb95 | 4934 | ac_cv_use_button='wxUSE_BUTTON=yes' |
10f2d63a | 4935 | else |
1e6feb95 | 4936 | ac_cv_use_button='wxUSE_BUTTON=no' |
10f2d63a | 4937 | fi |
698dcdb6 | 4938 | |
10f2d63a | 4939 | else |
698dcdb6 | 4940 | |
1e6feb95 | 4941 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` |
10f2d63a VZ |
4942 | if test "x$LINE" != x ; then |
4943 | eval "DEFAULT_$LINE" | |
4944 | else | |
4945 | no_cache=1 | |
4946 | fi | |
4947 | ||
1e6feb95 | 4948 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON |
698dcdb6 VZ |
4949 | |
4950 | fi | |
10f2d63a VZ |
4951 | |
4952 | ||
1e6feb95 | 4953 | eval "$ac_cv_use_button" |
10f2d63a | 4954 | if test "$no_cache" != 1; then |
1e6feb95 | 4955 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4956 | fi |
4957 | ||
1e6feb95 | 4958 | if test "$wxUSE_BUTTON" = yes; then |
698dcdb6 | 4959 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4960 | else |
698dcdb6 | 4961 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4962 | fi |
698dcdb6 | 4963 | |
10f2d63a | 4964 | |
698dcdb6 | 4965 | echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6 |
54276ccf | 4966 | echo "configure:4967: checking for --enable-bmpbutton" >&5 |
10f2d63a VZ |
4967 | no_cache=0 |
4968 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
4969 | if test "${enable_bmpbutton+set}" = set; then | |
4970 | enableval="$enable_bmpbutton" | |
698dcdb6 | 4971 | |
10f2d63a VZ |
4972 | if test "$enableval" = yes; then |
4973 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
4974 | else | |
4975 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
4976 | fi | |
698dcdb6 | 4977 | |
10f2d63a | 4978 | else |
698dcdb6 | 4979 | |
10f2d63a VZ |
4980 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` |
4981 | if test "x$LINE" != x ; then | |
4982 | eval "DEFAULT_$LINE" | |
4983 | else | |
4984 | no_cache=1 | |
4985 | fi | |
4986 | ||
4987 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
698dcdb6 VZ |
4988 | |
4989 | fi | |
10f2d63a VZ |
4990 | |
4991 | ||
4992 | eval "$ac_cv_use_bmpbutton" | |
4993 | if test "$no_cache" != 1; then | |
4994 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
4995 | fi | |
4996 | ||
4997 | if test "$wxUSE_BMPBUTTON" = yes; then | |
698dcdb6 | 4998 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4999 | else |
698dcdb6 | 5000 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5001 | fi |
698dcdb6 | 5002 | |
10f2d63a | 5003 | |
1e6feb95 | 5004 | echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6 |
54276ccf | 5005 | echo "configure:5006: checking for --enable-calendar" >&5 |
1e6feb95 VZ |
5006 | no_cache=0 |
5007 | # Check whether --enable-calendar or --disable-calendar was given. | |
5008 | if test "${enable_calendar+set}" = set; then | |
5009 | enableval="$enable_calendar" | |
5010 | ||
5011 | if test "$enableval" = yes; then | |
5012 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
5013 | else | |
5014 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
5015 | fi | |
5016 | ||
5017 | else | |
5018 | ||
5019 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
5020 | if test "x$LINE" != x ; then | |
5021 | eval "DEFAULT_$LINE" | |
5022 | else | |
5023 | no_cache=1 | |
5024 | fi | |
5025 | ||
5026 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
5027 | ||
5028 | fi | |
5029 | ||
5030 | ||
5031 | eval "$ac_cv_use_calendar" | |
5032 | if test "$no_cache" != 1; then | |
5033 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
5034 | fi | |
5035 | ||
5036 | if test "$wxUSE_CALCTRL" = yes; then | |
5037 | echo "$ac_t""yes" 1>&6 | |
5038 | else | |
5039 | echo "$ac_t""no" 1>&6 | |
5040 | fi | |
5041 | ||
5042 | ||
5043 | echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6 | |
54276ccf | 5044 | echo "configure:5045: checking for --enable-caret" >&5 |
1e6feb95 VZ |
5045 | no_cache=0 |
5046 | # Check whether --enable-caret or --disable-caret was given. | |
5047 | if test "${enable_caret+set}" = set; then | |
5048 | enableval="$enable_caret" | |
5049 | ||
5050 | if test "$enableval" = yes; then | |
5051 | ac_cv_use_caret='wxUSE_CARET=yes' | |
5052 | else | |
5053 | ac_cv_use_caret='wxUSE_CARET=no' | |
5054 | fi | |
5055 | ||
5056 | else | |
5057 | ||
5058 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
5059 | if test "x$LINE" != x ; then | |
5060 | eval "DEFAULT_$LINE" | |
5061 | else | |
5062 | no_cache=1 | |
5063 | fi | |
5064 | ||
5065 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
5066 | ||
5067 | fi | |
5068 | ||
5069 | ||
5070 | eval "$ac_cv_use_caret" | |
5071 | if test "$no_cache" != 1; then | |
5072 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
5073 | fi | |
5074 | ||
5075 | if test "$wxUSE_CARET" = yes; then | |
5076 | echo "$ac_t""yes" 1>&6 | |
5077 | else | |
5078 | echo "$ac_t""no" 1>&6 | |
5079 | fi | |
5080 | ||
5081 | ||
698dcdb6 | 5082 | echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6 |
54276ccf | 5083 | echo "configure:5084: checking for --enable-checkbox" >&5 |
10f2d63a VZ |
5084 | no_cache=0 |
5085 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
5086 | if test "${enable_checkbox+set}" = set; then | |
5087 | enableval="$enable_checkbox" | |
698dcdb6 | 5088 | |
10f2d63a VZ |
5089 | if test "$enableval" = yes; then |
5090 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
5091 | else | |
5092 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
5093 | fi | |
698dcdb6 | 5094 | |
10f2d63a | 5095 | else |
698dcdb6 | 5096 | |
10f2d63a VZ |
5097 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` |
5098 | if test "x$LINE" != x ; then | |
5099 | eval "DEFAULT_$LINE" | |
5100 | else | |
5101 | no_cache=1 | |
5102 | fi | |
5103 | ||
5104 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
698dcdb6 VZ |
5105 | |
5106 | fi | |
10f2d63a VZ |
5107 | |
5108 | ||
5109 | eval "$ac_cv_use_checkbox" | |
5110 | if test "$no_cache" != 1; then | |
5111 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
5112 | fi | |
5113 | ||
5114 | if test "$wxUSE_CHECKBOX" = yes; then | |
698dcdb6 | 5115 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5116 | else |
698dcdb6 | 5117 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5118 | fi |
698dcdb6 | 5119 | |
10f2d63a | 5120 | |
698dcdb6 | 5121 | echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6 |
54276ccf | 5122 | echo "configure:5123: checking for --enable-checklst" >&5 |
10f2d63a VZ |
5123 | no_cache=0 |
5124 | # Check whether --enable-checklst or --disable-checklst was given. | |
5125 | if test "${enable_checklst+set}" = set; then | |
5126 | enableval="$enable_checklst" | |
698dcdb6 | 5127 | |
10f2d63a VZ |
5128 | if test "$enableval" = yes; then |
5129 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
5130 | else | |
5131 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
5132 | fi | |
698dcdb6 | 5133 | |
10f2d63a | 5134 | else |
698dcdb6 | 5135 | |
10f2d63a VZ |
5136 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` |
5137 | if test "x$LINE" != x ; then | |
5138 | eval "DEFAULT_$LINE" | |
5139 | else | |
5140 | no_cache=1 | |
5141 | fi | |
5142 | ||
5143 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
698dcdb6 VZ |
5144 | |
5145 | fi | |
10f2d63a VZ |
5146 | |
5147 | ||
5148 | eval "$ac_cv_use_checklst" | |
5149 | if test "$no_cache" != 1; then | |
5150 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
5151 | fi | |
5152 | ||
5153 | if test "$wxUSE_CHECKLST" = yes; then | |
698dcdb6 | 5154 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5155 | else |
698dcdb6 | 5156 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5157 | fi |
698dcdb6 | 5158 | |
10f2d63a | 5159 | |
698dcdb6 | 5160 | echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6 |
54276ccf | 5161 | echo "configure:5162: checking for --enable-choice" >&5 |
10f2d63a VZ |
5162 | no_cache=0 |
5163 | # Check whether --enable-choice or --disable-choice was given. | |
5164 | if test "${enable_choice+set}" = set; then | |
5165 | enableval="$enable_choice" | |
698dcdb6 | 5166 | |
10f2d63a VZ |
5167 | if test "$enableval" = yes; then |
5168 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
5169 | else | |
5170 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
5171 | fi | |
698dcdb6 | 5172 | |
10f2d63a | 5173 | else |
698dcdb6 | 5174 | |
10f2d63a VZ |
5175 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` |
5176 | if test "x$LINE" != x ; then | |
5177 | eval "DEFAULT_$LINE" | |
5178 | else | |
5179 | no_cache=1 | |
5180 | fi | |
5181 | ||
5182 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
698dcdb6 VZ |
5183 | |
5184 | fi | |
10f2d63a VZ |
5185 | |
5186 | ||
5187 | eval "$ac_cv_use_choice" | |
5188 | if test "$no_cache" != 1; then | |
5189 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
5190 | fi | |
5191 | ||
5192 | if test "$wxUSE_CHOICE" = yes; then | |
698dcdb6 | 5193 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5194 | else |
698dcdb6 | 5195 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5196 | fi |
698dcdb6 | 5197 | |
10f2d63a | 5198 | |
698dcdb6 | 5199 | echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6 |
54276ccf | 5200 | echo "configure:5201: checking for --enable-combobox" >&5 |
10f2d63a VZ |
5201 | no_cache=0 |
5202 | # Check whether --enable-combobox or --disable-combobox was given. | |
5203 | if test "${enable_combobox+set}" = set; then | |
5204 | enableval="$enable_combobox" | |
698dcdb6 | 5205 | |
10f2d63a VZ |
5206 | if test "$enableval" = yes; then |
5207 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
5208 | else | |
5209 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
5210 | fi | |
698dcdb6 | 5211 | |
10f2d63a | 5212 | else |
698dcdb6 | 5213 | |
10f2d63a VZ |
5214 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` |
5215 | if test "x$LINE" != x ; then | |
5216 | eval "DEFAULT_$LINE" | |
5217 | else | |
5218 | no_cache=1 | |
5219 | fi | |
5220 | ||
5221 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
698dcdb6 VZ |
5222 | |
5223 | fi | |
10f2d63a VZ |
5224 | |
5225 | ||
5226 | eval "$ac_cv_use_combobox" | |
5227 | if test "$no_cache" != 1; then | |
5228 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
5229 | fi | |
5230 | ||
5231 | if test "$wxUSE_COMBOBOX" = yes; then | |
698dcdb6 | 5232 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5233 | else |
698dcdb6 | 5234 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5235 | fi |
698dcdb6 | 5236 | |
10f2d63a | 5237 | |
698dcdb6 | 5238 | echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6 |
54276ccf | 5239 | echo "configure:5240: checking for --enable-gauge" >&5 |
10f2d63a VZ |
5240 | no_cache=0 |
5241 | # Check whether --enable-gauge or --disable-gauge was given. | |
5242 | if test "${enable_gauge+set}" = set; then | |
5243 | enableval="$enable_gauge" | |
698dcdb6 | 5244 | |
10f2d63a VZ |
5245 | if test "$enableval" = yes; then |
5246 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
5247 | else | |
5248 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
5249 | fi | |
698dcdb6 | 5250 | |
10f2d63a | 5251 | else |
698dcdb6 | 5252 | |
10f2d63a VZ |
5253 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` |
5254 | if test "x$LINE" != x ; then | |
5255 | eval "DEFAULT_$LINE" | |
5256 | else | |
5257 | no_cache=1 | |
5258 | fi | |
5259 | ||
5260 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
698dcdb6 VZ |
5261 | |
5262 | fi | |
10f2d63a VZ |
5263 | |
5264 | ||
5265 | eval "$ac_cv_use_gauge" | |
5266 | if test "$no_cache" != 1; then | |
5267 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
5268 | fi | |
5269 | ||
5270 | if test "$wxUSE_GAUGE" = yes; then | |
698dcdb6 | 5271 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5272 | else |
698dcdb6 | 5273 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5274 | fi |
698dcdb6 | 5275 | |
10f2d63a | 5276 | |
698dcdb6 | 5277 | echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6 |
54276ccf | 5278 | echo "configure:5279: checking for --enable-grid" >&5 |
10f2d63a VZ |
5279 | no_cache=0 |
5280 | # Check whether --enable-grid or --disable-grid was given. | |
5281 | if test "${enable_grid+set}" = set; then | |
5282 | enableval="$enable_grid" | |
698dcdb6 | 5283 | |
10f2d63a VZ |
5284 | if test "$enableval" = yes; then |
5285 | ac_cv_use_grid='wxUSE_GRID=yes' | |
5286 | else | |
5287 | ac_cv_use_grid='wxUSE_GRID=no' | |
5288 | fi | |
698dcdb6 | 5289 | |
10f2d63a | 5290 | else |
698dcdb6 | 5291 | |
10f2d63a VZ |
5292 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` |
5293 | if test "x$LINE" != x ; then | |
5294 | eval "DEFAULT_$LINE" | |
5295 | else | |
5296 | no_cache=1 | |
5297 | fi | |
5298 | ||
5299 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
698dcdb6 VZ |
5300 | |
5301 | fi | |
10f2d63a VZ |
5302 | |
5303 | ||
5304 | eval "$ac_cv_use_grid" | |
5305 | if test "$no_cache" != 1; then | |
5306 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
5307 | fi | |
5308 | ||
5309 | if test "$wxUSE_GRID" = yes; then | |
698dcdb6 | 5310 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5311 | else |
698dcdb6 | 5312 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5313 | fi |
698dcdb6 | 5314 | |
10f2d63a | 5315 | |
698dcdb6 | 5316 | echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6 |
54276ccf | 5317 | echo "configure:5318: checking for --enable-newgrid" >&5 |
10f2d63a VZ |
5318 | no_cache=0 |
5319 | # Check whether --enable-newgrid or --disable-newgrid was given. | |
5320 | if test "${enable_newgrid+set}" = set; then | |
5321 | enableval="$enable_newgrid" | |
698dcdb6 | 5322 | |
10f2d63a VZ |
5323 | if test "$enableval" = yes; then |
5324 | ac_cv_use_newgrid='wxUSE_NEW_GRID=yes' | |
5325 | else | |
5326 | ac_cv_use_newgrid='wxUSE_NEW_GRID=no' | |
5327 | fi | |
698dcdb6 | 5328 | |
10f2d63a | 5329 | else |
698dcdb6 | 5330 | |
10f2d63a VZ |
5331 | LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}` |
5332 | if test "x$LINE" != x ; then | |
5333 | eval "DEFAULT_$LINE" | |
5334 | else | |
5335 | no_cache=1 | |
5336 | fi | |
5337 | ||
5338 | ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID | |
698dcdb6 VZ |
5339 | |
5340 | fi | |
10f2d63a VZ |
5341 | |
5342 | ||
5343 | eval "$ac_cv_use_newgrid" | |
5344 | if test "$no_cache" != 1; then | |
5345 | echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp | |
5346 | fi | |
5347 | ||
5348 | if test "$wxUSE_NEW_GRID" = yes; then | |
698dcdb6 | 5349 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5350 | else |
698dcdb6 | 5351 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5352 | fi |
698dcdb6 | 5353 | |
10f2d63a | 5354 | |
698dcdb6 | 5355 | echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6 |
54276ccf | 5356 | echo "configure:5357: checking for --enable-imaglist" >&5 |
10f2d63a VZ |
5357 | no_cache=0 |
5358 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
5359 | if test "${enable_imaglist+set}" = set; then | |
5360 | enableval="$enable_imaglist" | |
698dcdb6 | 5361 | |
10f2d63a VZ |
5362 | if test "$enableval" = yes; then |
5363 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
5364 | else | |
5365 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
5366 | fi | |
698dcdb6 | 5367 | |
10f2d63a | 5368 | else |
698dcdb6 | 5369 | |
10f2d63a VZ |
5370 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` |
5371 | if test "x$LINE" != x ; then | |
5372 | eval "DEFAULT_$LINE" | |
5373 | else | |
5374 | no_cache=1 | |
5375 | fi | |
5376 | ||
5377 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
698dcdb6 VZ |
5378 | |
5379 | fi | |
10f2d63a VZ |
5380 | |
5381 | ||
5382 | eval "$ac_cv_use_imaglist" | |
5383 | if test "$no_cache" != 1; then | |
5384 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
5385 | fi | |
5386 | ||
5387 | if test "$wxUSE_IMAGLIST" = yes; then | |
698dcdb6 | 5388 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5389 | else |
698dcdb6 | 5390 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5391 | fi |
698dcdb6 | 5392 | |
10f2d63a | 5393 | |
698dcdb6 | 5394 | echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6 |
54276ccf | 5395 | echo "configure:5396: checking for --enable-listbox" >&5 |
10f2d63a VZ |
5396 | no_cache=0 |
5397 | # Check whether --enable-listbox or --disable-listbox was given. | |
5398 | if test "${enable_listbox+set}" = set; then | |
5399 | enableval="$enable_listbox" | |
698dcdb6 | 5400 | |
10f2d63a VZ |
5401 | if test "$enableval" = yes; then |
5402 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
5403 | else | |
5404 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
5405 | fi | |
698dcdb6 | 5406 | |
10f2d63a | 5407 | else |
698dcdb6 | 5408 | |
10f2d63a VZ |
5409 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` |
5410 | if test "x$LINE" != x ; then | |
5411 | eval "DEFAULT_$LINE" | |
5412 | else | |
5413 | no_cache=1 | |
5414 | fi | |
5415 | ||
5416 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
698dcdb6 VZ |
5417 | |
5418 | fi | |
10f2d63a VZ |
5419 | |
5420 | ||
5421 | eval "$ac_cv_use_listbox" | |
5422 | if test "$no_cache" != 1; then | |
5423 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
5424 | fi | |
5425 | ||
5426 | if test "$wxUSE_LISTBOX" = yes; then | |
698dcdb6 | 5427 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5428 | else |
698dcdb6 | 5429 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5430 | fi |
698dcdb6 | 5431 | |
10f2d63a | 5432 | |
698dcdb6 | 5433 | echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6 |
54276ccf | 5434 | echo "configure:5435: checking for --enable-listctrl" >&5 |
10f2d63a VZ |
5435 | no_cache=0 |
5436 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
5437 | if test "${enable_listctrl+set}" = set; then | |
5438 | enableval="$enable_listctrl" | |
698dcdb6 | 5439 | |
10f2d63a VZ |
5440 | if test "$enableval" = yes; then |
5441 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
5442 | else | |
5443 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
5444 | fi | |
698dcdb6 | 5445 | |
10f2d63a | 5446 | else |
698dcdb6 | 5447 | |
10f2d63a VZ |
5448 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` |
5449 | if test "x$LINE" != x ; then | |
5450 | eval "DEFAULT_$LINE" | |
5451 | else | |
5452 | no_cache=1 | |
5453 | fi | |
5454 | ||
5455 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
698dcdb6 VZ |
5456 | |
5457 | fi | |
10f2d63a VZ |
5458 | |
5459 | ||
5460 | eval "$ac_cv_use_listctrl" | |
5461 | if test "$no_cache" != 1; then | |
5462 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
5463 | fi | |
5464 | ||
5465 | if test "$wxUSE_LISTCTRL" = yes; then | |
698dcdb6 | 5466 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5467 | else |
698dcdb6 | 5468 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5469 | fi |
698dcdb6 | 5470 | |
10f2d63a | 5471 | |
698dcdb6 | 5472 | echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6 |
54276ccf | 5473 | echo "configure:5474: checking for --enable-notebook" >&5 |
10f2d63a VZ |
5474 | no_cache=0 |
5475 | # Check whether --enable-notebook or --disable-notebook was given. | |
5476 | if test "${enable_notebook+set}" = set; then | |
5477 | enableval="$enable_notebook" | |
698dcdb6 | 5478 | |
10f2d63a VZ |
5479 | if test "$enableval" = yes; then |
5480 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
5481 | else | |
5482 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
5483 | fi | |
698dcdb6 | 5484 | |
10f2d63a | 5485 | else |
698dcdb6 | 5486 | |
10f2d63a VZ |
5487 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` |
5488 | if test "x$LINE" != x ; then | |
5489 | eval "DEFAULT_$LINE" | |
5490 | else | |
5491 | no_cache=1 | |
5492 | fi | |
5493 | ||
5494 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
698dcdb6 VZ |
5495 | |
5496 | fi | |
10f2d63a VZ |
5497 | |
5498 | ||
5499 | eval "$ac_cv_use_notebook" | |
5500 | if test "$no_cache" != 1; then | |
5501 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
5502 | fi | |
5503 | ||
5504 | if test "$wxUSE_NOTEBOOK" = yes; then | |
698dcdb6 | 5505 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5506 | else |
698dcdb6 | 5507 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5508 | fi |
698dcdb6 | 5509 | |
10f2d63a | 5510 | |
698dcdb6 | 5511 | echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6 |
54276ccf | 5512 | echo "configure:5513: checking for --enable-radiobox" >&5 |
10f2d63a VZ |
5513 | no_cache=0 |
5514 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
5515 | if test "${enable_radiobox+set}" = set; then | |
5516 | enableval="$enable_radiobox" | |
698dcdb6 | 5517 | |
10f2d63a VZ |
5518 | if test "$enableval" = yes; then |
5519 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
5520 | else | |
5521 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
5522 | fi | |
698dcdb6 | 5523 | |
10f2d63a | 5524 | else |
698dcdb6 | 5525 | |
10f2d63a VZ |
5526 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` |
5527 | if test "x$LINE" != x ; then | |
5528 | eval "DEFAULT_$LINE" | |
5529 | else | |
5530 | no_cache=1 | |
5531 | fi | |
5532 | ||
5533 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
698dcdb6 VZ |
5534 | |
5535 | fi | |
10f2d63a VZ |
5536 | |
5537 | ||
5538 | eval "$ac_cv_use_radiobox" | |
5539 | if test "$no_cache" != 1; then | |
5540 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
5541 | fi | |
5542 | ||
5543 | if test "$wxUSE_RADIOBOX" = yes; then | |
698dcdb6 | 5544 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5545 | else |
698dcdb6 | 5546 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5547 | fi |
698dcdb6 | 5548 | |
10f2d63a | 5549 | |
698dcdb6 | 5550 | echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6 |
54276ccf | 5551 | echo "configure:5552: checking for --enable-radiobtn" >&5 |
10f2d63a VZ |
5552 | no_cache=0 |
5553 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
5554 | if test "${enable_radiobtn+set}" = set; then | |
5555 | enableval="$enable_radiobtn" | |
698dcdb6 | 5556 | |
10f2d63a VZ |
5557 | if test "$enableval" = yes; then |
5558 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
5559 | else | |
5560 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
5561 | fi | |
698dcdb6 | 5562 | |
10f2d63a | 5563 | else |
698dcdb6 | 5564 | |
10f2d63a VZ |
5565 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` |
5566 | if test "x$LINE" != x ; then | |
5567 | eval "DEFAULT_$LINE" | |
5568 | else | |
5569 | no_cache=1 | |
5570 | fi | |
5571 | ||
5572 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
698dcdb6 VZ |
5573 | |
5574 | fi | |
10f2d63a VZ |
5575 | |
5576 | ||
5577 | eval "$ac_cv_use_radiobtn" | |
5578 | if test "$no_cache" != 1; then | |
5579 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
5580 | fi | |
5581 | ||
5582 | if test "$wxUSE_RADIOBTN" = yes; then | |
698dcdb6 | 5583 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5584 | else |
698dcdb6 | 5585 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5586 | fi |
698dcdb6 | 5587 | |
10f2d63a | 5588 | |
698dcdb6 | 5589 | echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6 |
54276ccf | 5590 | echo "configure:5591: checking for --enable-sash" >&5 |
10f2d63a VZ |
5591 | no_cache=0 |
5592 | # Check whether --enable-sash or --disable-sash was given. | |
5593 | if test "${enable_sash+set}" = set; then | |
5594 | enableval="$enable_sash" | |
698dcdb6 | 5595 | |
10f2d63a VZ |
5596 | if test "$enableval" = yes; then |
5597 | ac_cv_use_sash='wxUSE_SASH=yes' | |
5598 | else | |
5599 | ac_cv_use_sash='wxUSE_SASH=no' | |
5600 | fi | |
698dcdb6 | 5601 | |
10f2d63a | 5602 | else |
698dcdb6 | 5603 | |
10f2d63a VZ |
5604 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` |
5605 | if test "x$LINE" != x ; then | |
5606 | eval "DEFAULT_$LINE" | |
5607 | else | |
5608 | no_cache=1 | |
5609 | fi | |
5610 | ||
5611 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
698dcdb6 VZ |
5612 | |
5613 | fi | |
10f2d63a VZ |
5614 | |
5615 | ||
5616 | eval "$ac_cv_use_sash" | |
5617 | if test "$no_cache" != 1; then | |
5618 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
5619 | fi | |
5620 | ||
5621 | if test "$wxUSE_SASH" = yes; then | |
698dcdb6 | 5622 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5623 | else |
698dcdb6 | 5624 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5625 | fi |
698dcdb6 | 5626 | |
10f2d63a | 5627 | |
698dcdb6 | 5628 | echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6 |
54276ccf | 5629 | echo "configure:5630: checking for --enable-scrollbar" >&5 |
10f2d63a VZ |
5630 | no_cache=0 |
5631 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
5632 | if test "${enable_scrollbar+set}" = set; then | |
5633 | enableval="$enable_scrollbar" | |
698dcdb6 | 5634 | |
10f2d63a VZ |
5635 | if test "$enableval" = yes; then |
5636 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
5637 | else | |
5638 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
5639 | fi | |
698dcdb6 | 5640 | |
10f2d63a | 5641 | else |
698dcdb6 | 5642 | |
10f2d63a VZ |
5643 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` |
5644 | if test "x$LINE" != x ; then | |
5645 | eval "DEFAULT_$LINE" | |
5646 | else | |
5647 | no_cache=1 | |
5648 | fi | |
5649 | ||
5650 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
698dcdb6 VZ |
5651 | |
5652 | fi | |
10f2d63a VZ |
5653 | |
5654 | ||
5655 | eval "$ac_cv_use_scrollbar" | |
5656 | if test "$no_cache" != 1; then | |
5657 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
5658 | fi | |
5659 | ||
5660 | if test "$wxUSE_SCROLLBAR" = yes; then | |
698dcdb6 | 5661 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5662 | else |
698dcdb6 | 5663 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5664 | fi |
698dcdb6 | 5665 | |
10f2d63a | 5666 | |
698dcdb6 | 5667 | echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6 |
54276ccf | 5668 | echo "configure:5669: checking for --enable-slider" >&5 |
10f2d63a VZ |
5669 | no_cache=0 |
5670 | # Check whether --enable-slider or --disable-slider was given. | |
5671 | if test "${enable_slider+set}" = set; then | |
5672 | enableval="$enable_slider" | |
698dcdb6 | 5673 | |
10f2d63a VZ |
5674 | if test "$enableval" = yes; then |
5675 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
5676 | else | |
5677 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
5678 | fi | |
698dcdb6 | 5679 | |
10f2d63a | 5680 | else |
698dcdb6 | 5681 | |
10f2d63a VZ |
5682 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` |
5683 | if test "x$LINE" != x ; then | |
5684 | eval "DEFAULT_$LINE" | |
5685 | else | |
5686 | no_cache=1 | |
5687 | fi | |
5688 | ||
5689 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
698dcdb6 VZ |
5690 | |
5691 | fi | |
10f2d63a VZ |
5692 | |
5693 | ||
5694 | eval "$ac_cv_use_slider" | |
5695 | if test "$no_cache" != 1; then | |
5696 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
5697 | fi | |
5698 | ||
5699 | if test "$wxUSE_SLIDER" = yes; then | |
698dcdb6 | 5700 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5701 | else |
698dcdb6 | 5702 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5703 | fi |
698dcdb6 | 5704 | |
10f2d63a | 5705 | |
698dcdb6 | 5706 | echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6 |
54276ccf | 5707 | echo "configure:5708: checking for --enable-spinbtn" >&5 |
10f2d63a VZ |
5708 | no_cache=0 |
5709 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
5710 | if test "${enable_spinbtn+set}" = set; then | |
5711 | enableval="$enable_spinbtn" | |
698dcdb6 | 5712 | |
10f2d63a VZ |
5713 | if test "$enableval" = yes; then |
5714 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
5715 | else | |
5716 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
5717 | fi | |
698dcdb6 | 5718 | |
10f2d63a | 5719 | else |
698dcdb6 | 5720 | |
10f2d63a VZ |
5721 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` |
5722 | if test "x$LINE" != x ; then | |
5723 | eval "DEFAULT_$LINE" | |
5724 | else | |
5725 | no_cache=1 | |
5726 | fi | |
5727 | ||
5728 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
698dcdb6 VZ |
5729 | |
5730 | fi | |
10f2d63a VZ |
5731 | |
5732 | ||
5733 | eval "$ac_cv_use_spinbtn" | |
5734 | if test "$no_cache" != 1; then | |
5735 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
5736 | fi | |
5737 | ||
5738 | if test "$wxUSE_SPINBTN" = yes; then | |
698dcdb6 | 5739 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5740 | else |
698dcdb6 | 5741 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5742 | fi |
698dcdb6 | 5743 | |
10f2d63a | 5744 | |
698dcdb6 | 5745 | echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6 |
54276ccf | 5746 | echo "configure:5747: checking for --enable-spinctrl" >&5 |
56cfaa52 RR |
5747 | no_cache=0 |
5748 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
5749 | if test "${enable_spinctrl+set}" = set; then | |
5750 | enableval="$enable_spinctrl" | |
698dcdb6 | 5751 | |
56cfaa52 RR |
5752 | if test "$enableval" = yes; then |
5753 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
5754 | else | |
5755 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
5756 | fi | |
698dcdb6 | 5757 | |
56cfaa52 | 5758 | else |
698dcdb6 | 5759 | |
56cfaa52 RR |
5760 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` |
5761 | if test "x$LINE" != x ; then | |
5762 | eval "DEFAULT_$LINE" | |
5763 | else | |
5764 | no_cache=1 | |
5765 | fi | |
5766 | ||
5767 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
698dcdb6 VZ |
5768 | |
5769 | fi | |
56cfaa52 RR |
5770 | |
5771 | ||
5772 | eval "$ac_cv_use_spinctrl" | |
5773 | if test "$no_cache" != 1; then | |
5774 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
5775 | fi | |
5776 | ||
5777 | if test "$wxUSE_SPINCTRL" = yes; then | |
698dcdb6 | 5778 | echo "$ac_t""yes" 1>&6 |
56cfaa52 | 5779 | else |
698dcdb6 | 5780 | echo "$ac_t""no" 1>&6 |
56cfaa52 | 5781 | fi |
698dcdb6 | 5782 | |
56cfaa52 | 5783 | |
698dcdb6 | 5784 | echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6 |
54276ccf | 5785 | echo "configure:5786: checking for --enable-splitter" >&5 |
10f2d63a VZ |
5786 | no_cache=0 |
5787 | # Check whether --enable-splitter or --disable-splitter was given. | |
5788 | if test "${enable_splitter+set}" = set; then | |
5789 | enableval="$enable_splitter" | |
698dcdb6 | 5790 | |
10f2d63a VZ |
5791 | if test "$enableval" = yes; then |
5792 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
5793 | else | |
5794 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
5795 | fi | |
698dcdb6 | 5796 | |
10f2d63a | 5797 | else |
698dcdb6 | 5798 | |
10f2d63a VZ |
5799 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` |
5800 | if test "x$LINE" != x ; then | |
5801 | eval "DEFAULT_$LINE" | |
5802 | else | |
5803 | no_cache=1 | |
5804 | fi | |
5805 | ||
5806 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
698dcdb6 VZ |
5807 | |
5808 | fi | |
10f2d63a VZ |
5809 | |
5810 | ||
5811 | eval "$ac_cv_use_splitter" | |
5812 | if test "$no_cache" != 1; then | |
5813 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
5814 | fi | |
5815 | ||
5816 | if test "$wxUSE_SPLITTER" = yes; then | |
698dcdb6 | 5817 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5818 | else |
698dcdb6 | 5819 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5820 | fi |
698dcdb6 | 5821 | |
10f2d63a | 5822 | |
698dcdb6 | 5823 | echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6 |
54276ccf | 5824 | echo "configure:5825: checking for --enable-statbmp" >&5 |
10f2d63a VZ |
5825 | no_cache=0 |
5826 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
5827 | if test "${enable_statbmp+set}" = set; then | |
5828 | enableval="$enable_statbmp" | |
698dcdb6 | 5829 | |
10f2d63a VZ |
5830 | if test "$enableval" = yes; then |
5831 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
5832 | else | |
5833 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
5834 | fi | |
698dcdb6 | 5835 | |
10f2d63a | 5836 | else |
698dcdb6 | 5837 | |
10f2d63a VZ |
5838 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` |
5839 | if test "x$LINE" != x ; then | |
5840 | eval "DEFAULT_$LINE" | |
5841 | else | |
5842 | no_cache=1 | |
5843 | fi | |
5844 | ||
5845 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
698dcdb6 VZ |
5846 | |
5847 | fi | |
10f2d63a VZ |
5848 | |
5849 | ||
5850 | eval "$ac_cv_use_statbmp" | |
5851 | if test "$no_cache" != 1; then | |
5852 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
5853 | fi | |
5854 | ||
5855 | if test "$wxUSE_STATBMP" = yes; then | |
698dcdb6 | 5856 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5857 | else |
698dcdb6 | 5858 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5859 | fi |
698dcdb6 | 5860 | |
10f2d63a | 5861 | |
698dcdb6 | 5862 | echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6 |
54276ccf | 5863 | echo "configure:5864: checking for --enable-statbox" >&5 |
10f2d63a VZ |
5864 | no_cache=0 |
5865 | # Check whether --enable-statbox or --disable-statbox was given. | |
5866 | if test "${enable_statbox+set}" = set; then | |
5867 | enableval="$enable_statbox" | |
698dcdb6 | 5868 | |
10f2d63a VZ |
5869 | if test "$enableval" = yes; then |
5870 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
5871 | else | |
5872 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
5873 | fi | |
698dcdb6 | 5874 | |
10f2d63a | 5875 | else |
698dcdb6 | 5876 | |
10f2d63a VZ |
5877 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` |
5878 | if test "x$LINE" != x ; then | |
5879 | eval "DEFAULT_$LINE" | |
5880 | else | |
5881 | no_cache=1 | |
5882 | fi | |
5883 | ||
5884 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
698dcdb6 VZ |
5885 | |
5886 | fi | |
10f2d63a VZ |
5887 | |
5888 | ||
5889 | eval "$ac_cv_use_statbox" | |
5890 | if test "$no_cache" != 1; then | |
5891 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
5892 | fi | |
5893 | ||
5894 | if test "$wxUSE_STATBOX" = yes; then | |
698dcdb6 | 5895 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5896 | else |
698dcdb6 | 5897 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5898 | fi |
698dcdb6 | 5899 | |
10f2d63a | 5900 | |
698dcdb6 | 5901 | echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6 |
54276ccf | 5902 | echo "configure:5903: checking for --enable-statline" >&5 |
10f2d63a VZ |
5903 | no_cache=0 |
5904 | # Check whether --enable-statline or --disable-statline was given. | |
5905 | if test "${enable_statline+set}" = set; then | |
5906 | enableval="$enable_statline" | |
698dcdb6 | 5907 | |
10f2d63a VZ |
5908 | if test "$enableval" = yes; then |
5909 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
5910 | else | |
5911 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
5912 | fi | |
698dcdb6 | 5913 | |
10f2d63a | 5914 | else |
698dcdb6 | 5915 | |
10f2d63a VZ |
5916 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` |
5917 | if test "x$LINE" != x ; then | |
5918 | eval "DEFAULT_$LINE" | |
5919 | else | |
5920 | no_cache=1 | |
5921 | fi | |
5922 | ||
5923 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
698dcdb6 VZ |
5924 | |
5925 | fi | |
10f2d63a VZ |
5926 | |
5927 | ||
5928 | eval "$ac_cv_use_statline" | |
5929 | if test "$no_cache" != 1; then | |
5930 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
5931 | fi | |
5932 | ||
5933 | if test "$wxUSE_STATLINE" = yes; then | |
698dcdb6 | 5934 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5935 | else |
698dcdb6 | 5936 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5937 | fi |
698dcdb6 | 5938 | |
10f2d63a | 5939 | |
1e6feb95 | 5940 | echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6 |
54276ccf | 5941 | echo "configure:5942: checking for --enable-stattext" >&5 |
1e6feb95 VZ |
5942 | no_cache=0 |
5943 | # Check whether --enable-stattext or --disable-stattext was given. | |
5944 | if test "${enable_stattext+set}" = set; then | |
5945 | enableval="$enable_stattext" | |
5946 | ||
5947 | if test "$enableval" = yes; then | |
5948 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
5949 | else | |
5950 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
5951 | fi | |
5952 | ||
5953 | else | |
5954 | ||
5955 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
5956 | if test "x$LINE" != x ; then | |
5957 | eval "DEFAULT_$LINE" | |
5958 | else | |
5959 | no_cache=1 | |
5960 | fi | |
5961 | ||
5962 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
5963 | ||
5964 | fi | |
5965 | ||
5966 | ||
5967 | eval "$ac_cv_use_stattext" | |
5968 | if test "$no_cache" != 1; then | |
5969 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
5970 | fi | |
5971 | ||
5972 | if test "$wxUSE_STATTEXT" = yes; then | |
5973 | echo "$ac_t""yes" 1>&6 | |
5974 | else | |
5975 | echo "$ac_t""no" 1>&6 | |
5976 | fi | |
5977 | ||
5978 | ||
698dcdb6 | 5979 | echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6 |
54276ccf | 5980 | echo "configure:5981: checking for --enable-statusbar" >&5 |
10f2d63a VZ |
5981 | no_cache=0 |
5982 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
5983 | if test "${enable_statusbar+set}" = set; then | |
5984 | enableval="$enable_statusbar" | |
698dcdb6 | 5985 | |
10f2d63a VZ |
5986 | if test "$enableval" = yes; then |
5987 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
5988 | else | |
5989 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
5990 | fi | |
698dcdb6 | 5991 | |
10f2d63a | 5992 | else |
698dcdb6 | 5993 | |
10f2d63a VZ |
5994 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` |
5995 | if test "x$LINE" != x ; then | |
5996 | eval "DEFAULT_$LINE" | |
5997 | else | |
5998 | no_cache=1 | |
5999 | fi | |
6000 | ||
6001 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
698dcdb6 VZ |
6002 | |
6003 | fi | |
10f2d63a VZ |
6004 | |
6005 | ||
6006 | eval "$ac_cv_use_statusbar" | |
6007 | if test "$no_cache" != 1; then | |
6008 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
6009 | fi | |
6010 | ||
6011 | if test "$wxUSE_STATUSBAR" = yes; then | |
698dcdb6 | 6012 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6013 | else |
698dcdb6 | 6014 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6015 | fi |
698dcdb6 | 6016 | |
10f2d63a | 6017 | |
698dcdb6 | 6018 | echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6 |
54276ccf | 6019 | echo "configure:6020: checking for --enable-tabdialog" >&5 |
10f2d63a VZ |
6020 | no_cache=0 |
6021 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
6022 | if test "${enable_tabdialog+set}" = set; then | |
6023 | enableval="$enable_tabdialog" | |
698dcdb6 | 6024 | |
10f2d63a VZ |
6025 | if test "$enableval" = yes; then |
6026 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
6027 | else | |
6028 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
6029 | fi | |
698dcdb6 | 6030 | |
10f2d63a | 6031 | else |
698dcdb6 | 6032 | |
10f2d63a VZ |
6033 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` |
6034 | if test "x$LINE" != x ; then | |
6035 | eval "DEFAULT_$LINE" | |
6036 | else | |
6037 | no_cache=1 | |
6038 | fi | |
6039 | ||
6040 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
698dcdb6 VZ |
6041 | |
6042 | fi | |
10f2d63a VZ |
6043 | |
6044 | ||
6045 | eval "$ac_cv_use_tabdialog" | |
6046 | if test "$no_cache" != 1; then | |
6047 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
6048 | fi | |
6049 | ||
6050 | if test "$wxUSE_TABDIALOG" = yes; then | |
698dcdb6 | 6051 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6052 | else |
698dcdb6 | 6053 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6054 | fi |
698dcdb6 | 6055 | |
10f2d63a | 6056 | |
1e6feb95 | 6057 | echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6 |
54276ccf | 6058 | echo "configure:6059: checking for --enable-textctrl" >&5 |
1e6feb95 VZ |
6059 | no_cache=0 |
6060 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
6061 | if test "${enable_textctrl+set}" = set; then | |
6062 | enableval="$enable_textctrl" | |
6063 | ||
6064 | if test "$enableval" = yes; then | |
6065 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
6066 | else | |
6067 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
6068 | fi | |
6069 | ||
6070 | else | |
6071 | ||
6072 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
6073 | if test "x$LINE" != x ; then | |
6074 | eval "DEFAULT_$LINE" | |
6075 | else | |
6076 | no_cache=1 | |
6077 | fi | |
6078 | ||
6079 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
6080 | ||
6081 | fi | |
6082 | ||
6083 | ||
6084 | eval "$ac_cv_use_textctrl" | |
6085 | if test "$no_cache" != 1; then | |
6086 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
6087 | fi | |
6088 | ||
6089 | if test "$wxUSE_TEXTCTRL" = yes; then | |
6090 | echo "$ac_t""yes" 1>&6 | |
6091 | else | |
6092 | echo "$ac_t""no" 1>&6 | |
6093 | fi | |
6094 | ||
6095 | ||
698dcdb6 | 6096 | echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6 |
54276ccf | 6097 | echo "configure:6098: checking for --enable-togglebtn" >&5 |
1db8dc4a VZ |
6098 | no_cache=0 |
6099 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
6100 | if test "${enable_togglebtn+set}" = set; then | |
6101 | enableval="$enable_togglebtn" | |
698dcdb6 | 6102 | |
1db8dc4a VZ |
6103 | if test "$enableval" = yes; then |
6104 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
6105 | else | |
6106 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
6107 | fi | |
698dcdb6 | 6108 | |
1db8dc4a | 6109 | else |
698dcdb6 | 6110 | |
1db8dc4a VZ |
6111 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` |
6112 | if test "x$LINE" != x ; then | |
6113 | eval "DEFAULT_$LINE" | |
6114 | else | |
6115 | no_cache=1 | |
6116 | fi | |
6117 | ||
6118 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
698dcdb6 VZ |
6119 | |
6120 | fi | |
1db8dc4a VZ |
6121 | |
6122 | ||
6123 | eval "$ac_cv_use_togglebtn" | |
6124 | if test "$no_cache" != 1; then | |
6125 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
6126 | fi | |
6127 | ||
6128 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
698dcdb6 | 6129 | echo "$ac_t""yes" 1>&6 |
1db8dc4a | 6130 | else |
698dcdb6 | 6131 | echo "$ac_t""no" 1>&6 |
1db8dc4a | 6132 | fi |
698dcdb6 | 6133 | |
1db8dc4a | 6134 | |
698dcdb6 | 6135 | echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6 |
54276ccf | 6136 | echo "configure:6137: checking for --enable-toolbar" >&5 |
10f2d63a VZ |
6137 | no_cache=0 |
6138 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
6139 | if test "${enable_toolbar+set}" = set; then | |
6140 | enableval="$enable_toolbar" | |
698dcdb6 | 6141 | |
10f2d63a VZ |
6142 | if test "$enableval" = yes; then |
6143 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
6144 | else | |
6145 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
6146 | fi | |
698dcdb6 | 6147 | |
10f2d63a | 6148 | else |
698dcdb6 | 6149 | |
10f2d63a VZ |
6150 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` |
6151 | if test "x$LINE" != x ; then | |
6152 | eval "DEFAULT_$LINE" | |
6153 | else | |
6154 | no_cache=1 | |
6155 | fi | |
6156 | ||
6157 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
698dcdb6 VZ |
6158 | |
6159 | fi | |
10f2d63a VZ |
6160 | |
6161 | ||
6162 | eval "$ac_cv_use_toolbar" | |
6163 | if test "$no_cache" != 1; then | |
6164 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
6165 | fi | |
6166 | ||
6167 | if test "$wxUSE_TOOLBAR" = yes; then | |
698dcdb6 | 6168 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6169 | else |
698dcdb6 | 6170 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6171 | fi |
698dcdb6 | 6172 | |
10f2d63a | 6173 | |
698dcdb6 | 6174 | echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6 |
54276ccf | 6175 | echo "configure:6176: checking for --enable-tbarnative" >&5 |
360d6699 VZ |
6176 | no_cache=0 |
6177 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
6178 | if test "${enable_tbarnative+set}" = set; then | |
6179 | enableval="$enable_tbarnative" | |
698dcdb6 | 6180 | |
360d6699 VZ |
6181 | if test "$enableval" = yes; then |
6182 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
6183 | else | |
6184 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
6185 | fi | |
698dcdb6 | 6186 | |
360d6699 | 6187 | else |
698dcdb6 | 6188 | |
360d6699 VZ |
6189 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` |
6190 | if test "x$LINE" != x ; then | |
6191 | eval "DEFAULT_$LINE" | |
6192 | else | |
6193 | no_cache=1 | |
6194 | fi | |
6195 | ||
6196 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
698dcdb6 VZ |
6197 | |
6198 | fi | |
360d6699 VZ |
6199 | |
6200 | ||
6201 | eval "$ac_cv_use_tbarnative" | |
6202 | if test "$no_cache" != 1; then | |
6203 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
6204 | fi | |
6205 | ||
6206 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
698dcdb6 | 6207 | echo "$ac_t""yes" 1>&6 |
360d6699 | 6208 | else |
698dcdb6 | 6209 | echo "$ac_t""no" 1>&6 |
360d6699 | 6210 | fi |
698dcdb6 | 6211 | |
360d6699 | 6212 | |
698dcdb6 | 6213 | echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6 |
54276ccf | 6214 | echo "configure:6215: checking for --enable-tbarsmpl" >&5 |
360d6699 VZ |
6215 | no_cache=0 |
6216 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
6217 | if test "${enable_tbarsmpl+set}" = set; then | |
6218 | enableval="$enable_tbarsmpl" | |
698dcdb6 | 6219 | |
360d6699 VZ |
6220 | if test "$enableval" = yes; then |
6221 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
6222 | else | |
6223 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
6224 | fi | |
698dcdb6 | 6225 | |
360d6699 | 6226 | else |
698dcdb6 | 6227 | |
360d6699 VZ |
6228 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` |
6229 | if test "x$LINE" != x ; then | |
6230 | eval "DEFAULT_$LINE" | |
6231 | else | |
6232 | no_cache=1 | |
6233 | fi | |
6234 | ||
6235 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
698dcdb6 VZ |
6236 | |
6237 | fi | |
360d6699 VZ |
6238 | |
6239 | ||
6240 | eval "$ac_cv_use_tbarsmpl" | |
6241 | if test "$no_cache" != 1; then | |
6242 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
6243 | fi | |
6244 | ||
6245 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
698dcdb6 | 6246 | echo "$ac_t""yes" 1>&6 |
360d6699 | 6247 | else |
698dcdb6 | 6248 | echo "$ac_t""no" 1>&6 |
360d6699 | 6249 | fi |
698dcdb6 | 6250 | |
360d6699 | 6251 | |
698dcdb6 | 6252 | echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6 |
54276ccf | 6253 | echo "configure:6254: checking for --enable-treectrl" >&5 |
10f2d63a VZ |
6254 | no_cache=0 |
6255 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
6256 | if test "${enable_treectrl+set}" = set; then | |
6257 | enableval="$enable_treectrl" | |
698dcdb6 | 6258 | |
10f2d63a VZ |
6259 | if test "$enableval" = yes; then |
6260 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
6261 | else | |
6262 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
6263 | fi | |
698dcdb6 | 6264 | |
10f2d63a | 6265 | else |
698dcdb6 | 6266 | |
10f2d63a VZ |
6267 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` |
6268 | if test "x$LINE" != x ; then | |
6269 | eval "DEFAULT_$LINE" | |
6270 | else | |
6271 | no_cache=1 | |
6272 | fi | |
6273 | ||
6274 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
698dcdb6 VZ |
6275 | |
6276 | fi | |
10f2d63a VZ |
6277 | |
6278 | ||
1e6feb95 VZ |
6279 | eval "$ac_cv_use_treectrl" |
6280 | if test "$no_cache" != 1; then | |
6281 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
6282 | fi | |
6283 | ||
6284 | if test "$wxUSE_TREECTRL" = yes; then | |
6285 | echo "$ac_t""yes" 1>&6 | |
6286 | else | |
6287 | echo "$ac_t""no" 1>&6 | |
6288 | fi | |
6289 | ||
6290 | ||
6291 | ||
6292 | ||
6293 | echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6 | |
54276ccf | 6294 | echo "configure:6295: checking for --enable-commondlg" >&5 |
1e6feb95 VZ |
6295 | no_cache=0 |
6296 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
6297 | if test "${enable_commondlg+set}" = set; then | |
6298 | enableval="$enable_commondlg" | |
6299 | ||
6300 | if test "$enableval" = yes; then | |
6301 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
6302 | else | |
6303 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
6304 | fi | |
6305 | ||
6306 | else | |
6307 | ||
6308 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
6309 | if test "x$LINE" != x ; then | |
6310 | eval "DEFAULT_$LINE" | |
6311 | else | |
6312 | no_cache=1 | |
6313 | fi | |
6314 | ||
6315 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
6316 | ||
6317 | fi | |
6318 | ||
6319 | ||
6320 | eval "$ac_cv_use_commondlg" | |
6321 | if test "$no_cache" != 1; then | |
6322 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
6323 | fi | |
6324 | ||
6325 | if test "$wxUSE_COMMONDLGS" = yes; then | |
6326 | echo "$ac_t""yes" 1>&6 | |
6327 | else | |
6328 | echo "$ac_t""no" 1>&6 | |
6329 | fi | |
6330 | ||
6331 | ||
6332 | echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6 | |
54276ccf | 6333 | echo "configure:6334: checking for --enable-choicedlg" >&5 |
1e6feb95 VZ |
6334 | no_cache=0 |
6335 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
6336 | if test "${enable_choicedlg+set}" = set; then | |
6337 | enableval="$enable_choicedlg" | |
6338 | ||
6339 | if test "$enableval" = yes; then | |
6340 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
6341 | else | |
6342 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
6343 | fi | |
6344 | ||
6345 | else | |
6346 | ||
6347 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
6348 | if test "x$LINE" != x ; then | |
6349 | eval "DEFAULT_$LINE" | |
6350 | else | |
6351 | no_cache=1 | |
6352 | fi | |
6353 | ||
6354 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
6355 | ||
6356 | fi | |
6357 | ||
6358 | ||
6359 | eval "$ac_cv_use_choicedlg" | |
6360 | if test "$no_cache" != 1; then | |
6361 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
6362 | fi | |
6363 | ||
6364 | if test "$wxUSE_CHOICEDLG" = yes; then | |
6365 | echo "$ac_t""yes" 1>&6 | |
6366 | else | |
6367 | echo "$ac_t""no" 1>&6 | |
6368 | fi | |
6369 | ||
6370 | ||
6371 | echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6 | |
54276ccf | 6372 | echo "configure:6373: checking for --enable-coldlg" >&5 |
1e6feb95 VZ |
6373 | no_cache=0 |
6374 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
6375 | if test "${enable_coldlg+set}" = set; then | |
6376 | enableval="$enable_coldlg" | |
6377 | ||
6378 | if test "$enableval" = yes; then | |
6379 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
6380 | else | |
6381 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
6382 | fi | |
6383 | ||
6384 | else | |
6385 | ||
6386 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
6387 | if test "x$LINE" != x ; then | |
6388 | eval "DEFAULT_$LINE" | |
6389 | else | |
6390 | no_cache=1 | |
6391 | fi | |
6392 | ||
6393 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
6394 | ||
6395 | fi | |
6396 | ||
6397 | ||
6398 | eval "$ac_cv_use_coldlg" | |
6399 | if test "$no_cache" != 1; then | |
6400 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
6401 | fi | |
6402 | ||
6403 | if test "$wxUSE_COLOURDLG" = yes; then | |
6404 | echo "$ac_t""yes" 1>&6 | |
6405 | else | |
6406 | echo "$ac_t""no" 1>&6 | |
6407 | fi | |
6408 | ||
6409 | ||
6410 | echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6 | |
54276ccf | 6411 | echo "configure:6412: checking for --enable-filedlg" >&5 |
1e6feb95 VZ |
6412 | no_cache=0 |
6413 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
6414 | if test "${enable_filedlg+set}" = set; then | |
6415 | enableval="$enable_filedlg" | |
6416 | ||
6417 | if test "$enableval" = yes; then | |
6418 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
6419 | else | |
6420 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
6421 | fi | |
6422 | ||
6423 | else | |
6424 | ||
6425 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
6426 | if test "x$LINE" != x ; then | |
6427 | eval "DEFAULT_$LINE" | |
6428 | else | |
6429 | no_cache=1 | |
6430 | fi | |
6431 | ||
6432 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
6433 | ||
6434 | fi | |
6435 | ||
6436 | ||
6437 | eval "$ac_cv_use_filedlg" | |
6438 | if test "$no_cache" != 1; then | |
6439 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
6440 | fi | |
6441 | ||
6442 | if test "$wxUSE_FILEDLG" = yes; then | |
6443 | echo "$ac_t""yes" 1>&6 | |
6444 | else | |
6445 | echo "$ac_t""no" 1>&6 | |
6446 | fi | |
6447 | ||
6448 | ||
6449 | echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6 | |
54276ccf | 6450 | echo "configure:6451: checking for --enable-fontdlg" >&5 |
1e6feb95 VZ |
6451 | no_cache=0 |
6452 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
6453 | if test "${enable_fontdlg+set}" = set; then | |
6454 | enableval="$enable_fontdlg" | |
6455 | ||
6456 | if test "$enableval" = yes; then | |
6457 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
6458 | else | |
6459 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
6460 | fi | |
6461 | ||
6462 | else | |
6463 | ||
6464 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
6465 | if test "x$LINE" != x ; then | |
6466 | eval "DEFAULT_$LINE" | |
6467 | else | |
6468 | no_cache=1 | |
6469 | fi | |
6470 | ||
6471 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
6472 | ||
6473 | fi | |
6474 | ||
6475 | ||
6476 | eval "$ac_cv_use_fontdlg" | |
6477 | if test "$no_cache" != 1; then | |
6478 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
6479 | fi | |
6480 | ||
6481 | if test "$wxUSE_FONTDLG" = yes; then | |
6482 | echo "$ac_t""yes" 1>&6 | |
6483 | else | |
6484 | echo "$ac_t""no" 1>&6 | |
6485 | fi | |
6486 | ||
6487 | ||
6488 | echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6 | |
54276ccf | 6489 | echo "configure:6490: checking for --enable-dirdlg" >&5 |
1e6feb95 VZ |
6490 | no_cache=0 |
6491 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
6492 | if test "${enable_dirdlg+set}" = set; then | |
6493 | enableval="$enable_dirdlg" | |
6494 | ||
6495 | if test "$enableval" = yes; then | |
6496 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
6497 | else | |
6498 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
6499 | fi | |
6500 | ||
6501 | else | |
6502 | ||
6503 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
6504 | if test "x$LINE" != x ; then | |
6505 | eval "DEFAULT_$LINE" | |
6506 | else | |
6507 | no_cache=1 | |
6508 | fi | |
6509 | ||
6510 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
6511 | ||
6512 | fi | |
6513 | ||
6514 | ||
6515 | eval "$ac_cv_use_dirdlg" | |
10f2d63a | 6516 | if test "$no_cache" != 1; then |
1e6feb95 | 6517 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6518 | fi |
6519 | ||
1e6feb95 | 6520 | if test "$wxUSE_DIRDLG" = yes; then |
698dcdb6 | 6521 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6522 | else |
698dcdb6 | 6523 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6524 | fi |
698dcdb6 VZ |
6525 | |
6526 | ||
1e6feb95 | 6527 | echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6 |
54276ccf | 6528 | echo "configure:6529: checking for --enable-msgdlg" >&5 |
10f2d63a | 6529 | no_cache=0 |
1e6feb95 VZ |
6530 | # Check whether --enable-msgdlg or --disable-msgdlg was given. |
6531 | if test "${enable_msgdlg+set}" = set; then | |
6532 | enableval="$enable_msgdlg" | |
698dcdb6 | 6533 | |
10f2d63a | 6534 | if test "$enableval" = yes; then |
1e6feb95 | 6535 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' |
10f2d63a | 6536 | else |
1e6feb95 | 6537 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' |
10f2d63a | 6538 | fi |
698dcdb6 | 6539 | |
10f2d63a | 6540 | else |
698dcdb6 | 6541 | |
1e6feb95 | 6542 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
6543 | if test "x$LINE" != x ; then |
6544 | eval "DEFAULT_$LINE" | |
6545 | else | |
6546 | no_cache=1 | |
6547 | fi | |
6548 | ||
1e6feb95 | 6549 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG |
698dcdb6 VZ |
6550 | |
6551 | fi | |
10f2d63a VZ |
6552 | |
6553 | ||
1e6feb95 | 6554 | eval "$ac_cv_use_msgdlg" |
10f2d63a | 6555 | if test "$no_cache" != 1; then |
1e6feb95 | 6556 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6557 | fi |
6558 | ||
1e6feb95 | 6559 | if test "$wxUSE_MSGDLG" = yes; then |
698dcdb6 | 6560 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6561 | else |
698dcdb6 | 6562 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6563 | fi |
698dcdb6 | 6564 | |
10f2d63a | 6565 | |
1e6feb95 | 6566 | echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6 |
54276ccf | 6567 | echo "configure:6568: checking for --enable-numberdlg" >&5 |
10f2d63a | 6568 | no_cache=0 |
1e6feb95 VZ |
6569 | # Check whether --enable-numberdlg or --disable-numberdlg was given. |
6570 | if test "${enable_numberdlg+set}" = set; then | |
6571 | enableval="$enable_numberdlg" | |
698dcdb6 | 6572 | |
10f2d63a | 6573 | if test "$enableval" = yes; then |
1e6feb95 | 6574 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' |
10f2d63a | 6575 | else |
1e6feb95 | 6576 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' |
10f2d63a | 6577 | fi |
698dcdb6 | 6578 | |
10f2d63a | 6579 | else |
698dcdb6 | 6580 | |
1e6feb95 | 6581 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
6582 | if test "x$LINE" != x ; then |
6583 | eval "DEFAULT_$LINE" | |
6584 | else | |
6585 | no_cache=1 | |
6586 | fi | |
6587 | ||
1e6feb95 | 6588 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG |
698dcdb6 VZ |
6589 | |
6590 | fi | |
10f2d63a VZ |
6591 | |
6592 | ||
1e6feb95 | 6593 | eval "$ac_cv_use_numberdlg" |
10f2d63a | 6594 | if test "$no_cache" != 1; then |
1e6feb95 | 6595 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6596 | fi |
6597 | ||
1e6feb95 | 6598 | if test "$wxUSE_NUMBERDLG" = yes; then |
698dcdb6 | 6599 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6600 | else |
698dcdb6 | 6601 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6602 | fi |
698dcdb6 | 6603 | |
10f2d63a | 6604 | |
698dcdb6 | 6605 | echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6 |
54276ccf | 6606 | echo "configure:6607: checking for --enable-textdlg" >&5 |
10f2d63a VZ |
6607 | no_cache=0 |
6608 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
6609 | if test "${enable_textdlg+set}" = set; then | |
6610 | enableval="$enable_textdlg" | |
698dcdb6 | 6611 | |
10f2d63a VZ |
6612 | if test "$enableval" = yes; then |
6613 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
6614 | else | |
6615 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
6616 | fi | |
698dcdb6 | 6617 | |
10f2d63a | 6618 | else |
698dcdb6 | 6619 | |
10f2d63a VZ |
6620 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` |
6621 | if test "x$LINE" != x ; then | |
6622 | eval "DEFAULT_$LINE" | |
6623 | else | |
6624 | no_cache=1 | |
6625 | fi | |
6626 | ||
6627 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
698dcdb6 VZ |
6628 | |
6629 | fi | |
10f2d63a VZ |
6630 | |
6631 | ||
6632 | eval "$ac_cv_use_textdlg" | |
6633 | if test "$no_cache" != 1; then | |
6634 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
6635 | fi | |
6636 | ||
6637 | if test "$wxUSE_TEXTDLG" = yes; then | |
698dcdb6 | 6638 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6639 | else |
698dcdb6 | 6640 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6641 | fi |
698dcdb6 | 6642 | |
10f2d63a | 6643 | |
698dcdb6 | 6644 | echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6 |
54276ccf | 6645 | echo "configure:6646: checking for --enable-tipdlg" >&5 |
10f2d63a VZ |
6646 | no_cache=0 |
6647 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
6648 | if test "${enable_tipdlg+set}" = set; then | |
6649 | enableval="$enable_tipdlg" | |
698dcdb6 | 6650 | |
10f2d63a VZ |
6651 | if test "$enableval" = yes; then |
6652 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
6653 | else | |
6654 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
6655 | fi | |
698dcdb6 | 6656 | |
10f2d63a | 6657 | else |
698dcdb6 | 6658 | |
10f2d63a VZ |
6659 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` |
6660 | if test "x$LINE" != x ; then | |
6661 | eval "DEFAULT_$LINE" | |
6662 | else | |
6663 | no_cache=1 | |
6664 | fi | |
6665 | ||
6666 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
698dcdb6 VZ |
6667 | |
6668 | fi | |
10f2d63a VZ |
6669 | |
6670 | ||
6671 | eval "$ac_cv_use_tipdlg" | |
6672 | if test "$no_cache" != 1; then | |
6673 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
6674 | fi | |
6675 | ||
6676 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
698dcdb6 | 6677 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6678 | else |
698dcdb6 | 6679 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6680 | fi |
698dcdb6 | 6681 | |
10f2d63a | 6682 | |
698dcdb6 | 6683 | echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6 |
54276ccf | 6684 | echo "configure:6685: checking for --enable-progressdlg" >&5 |
10f2d63a VZ |
6685 | no_cache=0 |
6686 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
6687 | if test "${enable_progressdlg+set}" = set; then | |
6688 | enableval="$enable_progressdlg" | |
698dcdb6 | 6689 | |
10f2d63a VZ |
6690 | if test "$enableval" = yes; then |
6691 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
6692 | else | |
6693 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
6694 | fi | |
698dcdb6 | 6695 | |
10f2d63a | 6696 | else |
698dcdb6 | 6697 | |
10f2d63a VZ |
6698 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` |
6699 | if test "x$LINE" != x ; then | |
6700 | eval "DEFAULT_$LINE" | |
6701 | else | |
6702 | no_cache=1 | |
6703 | fi | |
6704 | ||
6705 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
698dcdb6 VZ |
6706 | |
6707 | fi | |
10f2d63a VZ |
6708 | |
6709 | ||
6710 | eval "$ac_cv_use_progressdlg" | |
6711 | if test "$no_cache" != 1; then | |
6712 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
6713 | fi | |
6714 | ||
6715 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
698dcdb6 | 6716 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6717 | else |
698dcdb6 | 6718 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6719 | fi |
698dcdb6 | 6720 | |
10f2d63a | 6721 | |
1e6feb95 | 6722 | echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6 |
54276ccf | 6723 | echo "configure:6724: checking for --enable-menus" >&5 |
1e6feb95 VZ |
6724 | no_cache=0 |
6725 | # Check whether --enable-menus or --disable-menus was given. | |
6726 | if test "${enable_menus+set}" = set; then | |
6727 | enableval="$enable_menus" | |
6728 | ||
6729 | if test "$enableval" = yes; then | |
6730 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
6731 | else | |
6732 | ac_cv_use_menus='wxUSE_MENUS=no' | |
6733 | fi | |
6734 | ||
6735 | else | |
6736 | ||
6737 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
6738 | if test "x$LINE" != x ; then | |
6739 | eval "DEFAULT_$LINE" | |
6740 | else | |
6741 | no_cache=1 | |
6742 | fi | |
6743 | ||
6744 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
6745 | ||
6746 | fi | |
6747 | ||
6748 | ||
6749 | eval "$ac_cv_use_menus" | |
6750 | if test "$no_cache" != 1; then | |
6751 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
6752 | fi | |
6753 | ||
6754 | if test "$wxUSE_MENUS" = yes; then | |
6755 | echo "$ac_t""yes" 1>&6 | |
6756 | else | |
6757 | echo "$ac_t""no" 1>&6 | |
6758 | fi | |
6759 | ||
6760 | ||
698dcdb6 | 6761 | echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6 |
54276ccf | 6762 | echo "configure:6763: checking for --enable-miniframe" >&5 |
10f2d63a VZ |
6763 | no_cache=0 |
6764 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
6765 | if test "${enable_miniframe+set}" = set; then | |
6766 | enableval="$enable_miniframe" | |
698dcdb6 | 6767 | |
10f2d63a VZ |
6768 | if test "$enableval" = yes; then |
6769 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
6770 | else | |
6771 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
6772 | fi | |
698dcdb6 | 6773 | |
10f2d63a | 6774 | else |
698dcdb6 | 6775 | |
10f2d63a VZ |
6776 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` |
6777 | if test "x$LINE" != x ; then | |
6778 | eval "DEFAULT_$LINE" | |
6779 | else | |
6780 | no_cache=1 | |
6781 | fi | |
6782 | ||
6783 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
698dcdb6 VZ |
6784 | |
6785 | fi | |
10f2d63a VZ |
6786 | |
6787 | ||
6788 | eval "$ac_cv_use_miniframe" | |
6789 | if test "$no_cache" != 1; then | |
6790 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
6791 | fi | |
6792 | ||
6793 | if test "$wxUSE_MINIFRAME" = yes; then | |
698dcdb6 | 6794 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6795 | else |
698dcdb6 | 6796 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6797 | fi |
698dcdb6 | 6798 | |
10f2d63a | 6799 | |
698dcdb6 | 6800 | echo $ac_n "checking for --enable-html""... $ac_c" 1>&6 |
54276ccf | 6801 | echo "configure:6802: checking for --enable-html" >&5 |
10f2d63a VZ |
6802 | no_cache=0 |
6803 | # Check whether --enable-html or --disable-html was given. | |
6804 | if test "${enable_html+set}" = set; then | |
6805 | enableval="$enable_html" | |
698dcdb6 | 6806 | |
10f2d63a VZ |
6807 | if test "$enableval" = yes; then |
6808 | ac_cv_use_html='wxUSE_HTML=yes' | |
6809 | else | |
6810 | ac_cv_use_html='wxUSE_HTML=no' | |
6811 | fi | |
698dcdb6 | 6812 | |
10f2d63a | 6813 | else |
698dcdb6 | 6814 | |
10f2d63a VZ |
6815 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` |
6816 | if test "x$LINE" != x ; then | |
6817 | eval "DEFAULT_$LINE" | |
6818 | else | |
6819 | no_cache=1 | |
6820 | fi | |
6821 | ||
6822 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
698dcdb6 VZ |
6823 | |
6824 | fi | |
10f2d63a VZ |
6825 | |
6826 | ||
6827 | eval "$ac_cv_use_html" | |
6828 | if test "$no_cache" != 1; then | |
6829 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
6830 | fi | |
6831 | ||
6832 | if test "$wxUSE_HTML" = yes; then | |
698dcdb6 | 6833 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6834 | else |
698dcdb6 | 6835 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6836 | fi |
698dcdb6 | 6837 | |
10f2d63a | 6838 | |
698dcdb6 | 6839 | echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6 |
54276ccf | 6840 | echo "configure:6841: checking for --enable-tooltips" >&5 |
10f2d63a VZ |
6841 | no_cache=0 |
6842 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
6843 | if test "${enable_tooltips+set}" = set; then | |
6844 | enableval="$enable_tooltips" | |
698dcdb6 | 6845 | |
10f2d63a VZ |
6846 | if test "$enableval" = yes; then |
6847 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
6848 | else | |
6849 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
6850 | fi | |
698dcdb6 | 6851 | |
10f2d63a | 6852 | else |
698dcdb6 | 6853 | |
10f2d63a VZ |
6854 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` |
6855 | if test "x$LINE" != x ; then | |
6856 | eval "DEFAULT_$LINE" | |
6857 | else | |
6858 | no_cache=1 | |
6859 | fi | |
6860 | ||
6861 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
698dcdb6 VZ |
6862 | |
6863 | fi | |
10f2d63a VZ |
6864 | |
6865 | ||
6866 | eval "$ac_cv_use_tooltips" | |
6867 | if test "$no_cache" != 1; then | |
6868 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
6869 | fi | |
6870 | ||
6871 | if test "$wxUSE_TOOLTIPS" = yes; then | |
698dcdb6 | 6872 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6873 | else |
698dcdb6 | 6874 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6875 | fi |
698dcdb6 | 6876 | |
10f2d63a | 6877 | |
698dcdb6 | 6878 | echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6 |
54276ccf | 6879 | echo "configure:6880: checking for --enable-splines" >&5 |
10f2d63a VZ |
6880 | no_cache=0 |
6881 | # Check whether --enable-splines or --disable-splines was given. | |
6882 | if test "${enable_splines+set}" = set; then | |
6883 | enableval="$enable_splines" | |
698dcdb6 | 6884 | |
10f2d63a VZ |
6885 | if test "$enableval" = yes; then |
6886 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
6887 | else | |
6888 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
6889 | fi | |
698dcdb6 | 6890 | |
10f2d63a | 6891 | else |
698dcdb6 | 6892 | |
10f2d63a VZ |
6893 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` |
6894 | if test "x$LINE" != x ; then | |
6895 | eval "DEFAULT_$LINE" | |
6896 | else | |
6897 | no_cache=1 | |
6898 | fi | |
6899 | ||
6900 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
698dcdb6 VZ |
6901 | |
6902 | fi | |
10f2d63a VZ |
6903 | |
6904 | ||
6905 | eval "$ac_cv_use_splines" | |
6906 | if test "$no_cache" != 1; then | |
6907 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
6908 | fi | |
6909 | ||
6910 | if test "$wxUSE_SPLINES" = yes; then | |
698dcdb6 | 6911 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6912 | else |
698dcdb6 | 6913 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6914 | fi |
698dcdb6 | 6915 | |
10f2d63a | 6916 | |
698dcdb6 | 6917 | echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6 |
54276ccf | 6918 | echo "configure:6919: checking for --enable-validators" >&5 |
10f2d63a VZ |
6919 | no_cache=0 |
6920 | # Check whether --enable-validators or --disable-validators was given. | |
6921 | if test "${enable_validators+set}" = set; then | |
6922 | enableval="$enable_validators" | |
698dcdb6 | 6923 | |
10f2d63a VZ |
6924 | if test "$enableval" = yes; then |
6925 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
6926 | else | |
6927 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
6928 | fi | |
698dcdb6 | 6929 | |
10f2d63a | 6930 | else |
698dcdb6 | 6931 | |
10f2d63a VZ |
6932 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` |
6933 | if test "x$LINE" != x ; then | |
6934 | eval "DEFAULT_$LINE" | |
6935 | else | |
6936 | no_cache=1 | |
6937 | fi | |
6938 | ||
6939 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
698dcdb6 VZ |
6940 | |
6941 | fi | |
10f2d63a VZ |
6942 | |
6943 | ||
6944 | eval "$ac_cv_use_validators" | |
6945 | if test "$no_cache" != 1; then | |
6946 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
6947 | fi | |
6948 | ||
6949 | if test "$wxUSE_VALIDATORS" = yes; then | |
698dcdb6 | 6950 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6951 | else |
698dcdb6 | 6952 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6953 | fi |
698dcdb6 | 6954 | |
10f2d63a | 6955 | |
698dcdb6 | 6956 | echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6 |
54276ccf | 6957 | echo "configure:6958: checking for --enable-busyinfo" >&5 |
10f2d63a VZ |
6958 | no_cache=0 |
6959 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
6960 | if test "${enable_busyinfo+set}" = set; then | |
6961 | enableval="$enable_busyinfo" | |
698dcdb6 | 6962 | |
10f2d63a VZ |
6963 | if test "$enableval" = yes; then |
6964 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
6965 | else | |
6966 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
6967 | fi | |
698dcdb6 | 6968 | |
10f2d63a | 6969 | else |
698dcdb6 | 6970 | |
10f2d63a VZ |
6971 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` |
6972 | if test "x$LINE" != x ; then | |
6973 | eval "DEFAULT_$LINE" | |
6974 | else | |
6975 | no_cache=1 | |
6976 | fi | |
6977 | ||
6978 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
698dcdb6 VZ |
6979 | |
6980 | fi | |
10f2d63a VZ |
6981 | |
6982 | ||
6983 | eval "$ac_cv_use_busyinfo" | |
6984 | if test "$no_cache" != 1; then | |
6985 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
6986 | fi | |
6987 | ||
6988 | if test "$wxUSE_BUSYINFO" = yes; then | |
698dcdb6 | 6989 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6990 | else |
698dcdb6 | 6991 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6992 | fi |
698dcdb6 | 6993 | |
10f2d63a | 6994 | |
698dcdb6 | 6995 | echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6 |
54276ccf | 6996 | echo "configure:6997: checking for --enable-joystick" >&5 |
f6bcfd97 BP |
6997 | no_cache=0 |
6998 | # Check whether --enable-joystick or --disable-joystick was given. | |
6999 | if test "${enable_joystick+set}" = set; then | |
7000 | enableval="$enable_joystick" | |
698dcdb6 | 7001 | |
f6bcfd97 BP |
7002 | if test "$enableval" = yes; then |
7003 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
7004 | else | |
7005 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
7006 | fi | |
698dcdb6 | 7007 | |
f6bcfd97 | 7008 | else |
698dcdb6 | 7009 | |
f6bcfd97 BP |
7010 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` |
7011 | if test "x$LINE" != x ; then | |
7012 | eval "DEFAULT_$LINE" | |
7013 | else | |
7014 | no_cache=1 | |
7015 | fi | |
7016 | ||
7017 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
698dcdb6 VZ |
7018 | |
7019 | fi | |
f6bcfd97 BP |
7020 | |
7021 | ||
7022 | eval "$ac_cv_use_joystick" | |
7023 | if test "$no_cache" != 1; then | |
7024 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
7025 | fi | |
7026 | ||
7027 | if test "$wxUSE_JOYSTICK" = yes; then | |
698dcdb6 | 7028 | echo "$ac_t""yes" 1>&6 |
f6bcfd97 | 7029 | else |
698dcdb6 | 7030 | echo "$ac_t""no" 1>&6 |
f6bcfd97 | 7031 | fi |
698dcdb6 VZ |
7032 | |
7033 | ||
1e6feb95 | 7034 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
54276ccf | 7035 | echo "configure:7036: checking for --enable-metafile" >&5 |
1e6feb95 VZ |
7036 | no_cache=0 |
7037 | # Check whether --enable-metafile or --disable-metafile was given. | |
7038 | if test "${enable_metafile+set}" = set; then | |
7039 | enableval="$enable_metafile" | |
7040 | ||
7041 | if test "$enableval" = yes; then | |
7042 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
7043 | else | |
7044 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
7045 | fi | |
7046 | ||
7047 | else | |
7048 | ||
7049 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
7050 | if test "x$LINE" != x ; then | |
7051 | eval "DEFAULT_$LINE" | |
7052 | else | |
7053 | no_cache=1 | |
7054 | fi | |
7055 | ||
7056 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
7057 | ||
7058 | fi | |
7059 | ||
7060 | ||
7061 | eval "$ac_cv_use_metafile" | |
7062 | if test "$no_cache" != 1; then | |
7063 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
7064 | fi | |
7065 | ||
7066 | if test "$wxUSE_METAFILE" = yes; then | |
7067 | echo "$ac_t""yes" 1>&6 | |
7068 | else | |
7069 | echo "$ac_t""no" 1>&6 | |
7070 | fi | |
7071 | ||
7072 | ||
10f2d63a | 7073 | |
698dcdb6 VZ |
7074 | |
7075 | echo $ac_n "checking for --enable-image""... $ac_c" 1>&6 | |
54276ccf | 7076 | echo "configure:7077: checking for --enable-image" >&5 |
0046ff7c VS |
7077 | no_cache=0 |
7078 | # Check whether --enable-image or --disable-image was given. | |
7079 | if test "${enable_image+set}" = set; then | |
7080 | enableval="$enable_image" | |
698dcdb6 | 7081 | |
0046ff7c VS |
7082 | if test "$enableval" = yes; then |
7083 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
7084 | else | |
7085 | ac_cv_use_image='wxUSE_IMAGE=no' | |
7086 | fi | |
698dcdb6 | 7087 | |
0046ff7c | 7088 | else |
698dcdb6 | 7089 | |
0046ff7c VS |
7090 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` |
7091 | if test "x$LINE" != x ; then | |
7092 | eval "DEFAULT_$LINE" | |
7093 | else | |
7094 | no_cache=1 | |
7095 | fi | |
7096 | ||
7097 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
698dcdb6 VZ |
7098 | |
7099 | fi | |
0046ff7c VS |
7100 | |
7101 | ||
7102 | eval "$ac_cv_use_image" | |
7103 | if test "$no_cache" != 1; then | |
7104 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
7105 | fi | |
7106 | ||
7107 | if test "$wxUSE_IMAGE" = yes; then | |
698dcdb6 | 7108 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 7109 | else |
698dcdb6 | 7110 | echo "$ac_t""no" 1>&6 |
0046ff7c | 7111 | fi |
698dcdb6 | 7112 | |
0046ff7c | 7113 | |
698dcdb6 | 7114 | echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6 |
54276ccf | 7115 | echo "configure:7116: checking for --enable-gif" >&5 |
10f2d63a VZ |
7116 | no_cache=0 |
7117 | # Check whether --enable-gif or --disable-gif was given. | |
7118 | if test "${enable_gif+set}" = set; then | |
7119 | enableval="$enable_gif" | |
698dcdb6 | 7120 | |
10f2d63a VZ |
7121 | if test "$enableval" = yes; then |
7122 | ac_cv_use_gif='wxUSE_GIF=yes' | |
7123 | else | |
7124 | ac_cv_use_gif='wxUSE_GIF=no' | |
7125 | fi | |
698dcdb6 | 7126 | |
10f2d63a | 7127 | else |
698dcdb6 | 7128 | |
10f2d63a VZ |
7129 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` |
7130 | if test "x$LINE" != x ; then | |
7131 | eval "DEFAULT_$LINE" | |
7132 | else | |
7133 | no_cache=1 | |
7134 | fi | |
7135 | ||
7136 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
698dcdb6 VZ |
7137 | |
7138 | fi | |
10f2d63a VZ |
7139 | |
7140 | ||
7141 | eval "$ac_cv_use_gif" | |
7142 | if test "$no_cache" != 1; then | |
7143 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
7144 | fi | |
7145 | ||
7146 | if test "$wxUSE_GIF" = yes; then | |
698dcdb6 | 7147 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7148 | else |
698dcdb6 | 7149 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7150 | fi |
698dcdb6 | 7151 | |
10f2d63a | 7152 | |
698dcdb6 | 7153 | echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6 |
54276ccf | 7154 | echo "configure:7155: checking for --enable-pcx" >&5 |
10f2d63a VZ |
7155 | no_cache=0 |
7156 | # Check whether --enable-pcx or --disable-pcx was given. | |
7157 | if test "${enable_pcx+set}" = set; then | |
7158 | enableval="$enable_pcx" | |
698dcdb6 | 7159 | |
10f2d63a VZ |
7160 | if test "$enableval" = yes; then |
7161 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
7162 | else | |
7163 | ac_cv_use_pcx='wxUSE_PCX=no' | |
7164 | fi | |
698dcdb6 | 7165 | |
10f2d63a | 7166 | else |
698dcdb6 | 7167 | |
10f2d63a VZ |
7168 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` |
7169 | if test "x$LINE" != x ; then | |
7170 | eval "DEFAULT_$LINE" | |
7171 | else | |
7172 | no_cache=1 | |
7173 | fi | |
7174 | ||
7175 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
698dcdb6 VZ |
7176 | |
7177 | fi | |
10f2d63a VZ |
7178 | |
7179 | ||
7180 | eval "$ac_cv_use_pcx" | |
7181 | if test "$no_cache" != 1; then | |
7182 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
7183 | fi | |
7184 | ||
7185 | if test "$wxUSE_PCX" = yes; then | |
698dcdb6 | 7186 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7187 | else |
698dcdb6 | 7188 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7189 | fi |
698dcdb6 | 7190 | |
10f2d63a | 7191 | |
698dcdb6 | 7192 | echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6 |
54276ccf | 7193 | echo "configure:7194: checking for --enable-pnm" >&5 |
10f2d63a VZ |
7194 | no_cache=0 |
7195 | # Check whether --enable-pnm or --disable-pnm was given. | |
7196 | if test "${enable_pnm+set}" = set; then | |
7197 | enableval="$enable_pnm" | |
698dcdb6 | 7198 | |
10f2d63a VZ |
7199 | if test "$enableval" = yes; then |
7200 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
7201 | else | |
7202 | ac_cv_use_pnm='wxUSE_PNM=no' | |
7203 | fi | |
698dcdb6 | 7204 | |
10f2d63a | 7205 | else |
698dcdb6 | 7206 | |
10f2d63a VZ |
7207 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` |
7208 | if test "x$LINE" != x ; then | |
7209 | eval "DEFAULT_$LINE" | |
7210 | else | |
7211 | no_cache=1 | |
7212 | fi | |
7213 | ||
7214 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
698dcdb6 VZ |
7215 | |
7216 | fi | |
10f2d63a VZ |
7217 | |
7218 | ||
7219 | eval "$ac_cv_use_pnm" | |
7220 | if test "$no_cache" != 1; then | |
7221 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
7222 | fi | |
7223 | ||
7224 | if test "$wxUSE_PNM" = yes; then | |
698dcdb6 | 7225 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7226 | else |
698dcdb6 | 7227 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7228 | fi |
698dcdb6 | 7229 | |
10f2d63a | 7230 | |
698dcdb6 | 7231 | echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6 |
54276ccf | 7232 | echo "configure:7233: checking for --enable-pnm" >&5 |
0046ff7c VS |
7233 | no_cache=0 |
7234 | # Check whether --enable-pnm or --disable-pnm was given. | |
7235 | if test "${enable_pnm+set}" = set; then | |
7236 | enableval="$enable_pnm" | |
698dcdb6 | 7237 | |
0046ff7c VS |
7238 | if test "$enableval" = yes; then |
7239 | ac_cv_use_pnm='wxUSE_XPM=yes' | |
7240 | else | |
7241 | ac_cv_use_pnm='wxUSE_XPM=no' | |
7242 | fi | |
698dcdb6 | 7243 | |
0046ff7c | 7244 | else |
698dcdb6 | 7245 | |
0046ff7c VS |
7246 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` |
7247 | if test "x$LINE" != x ; then | |
7248 | eval "DEFAULT_$LINE" | |
7249 | else | |
7250 | no_cache=1 | |
7251 | fi | |
7252 | ||
7253 | ac_cv_use_pnm='wxUSE_XPM='$DEFAULT_wxUSE_XPM | |
698dcdb6 VZ |
7254 | |
7255 | fi | |
0046ff7c VS |
7256 | |
7257 | ||
7258 | eval "$ac_cv_use_pnm" | |
7259 | if test "$no_cache" != 1; then | |
7260 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
7261 | fi | |
7262 | ||
7263 | if test "$wxUSE_XPM" = yes; then | |
698dcdb6 | 7264 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 7265 | else |
698dcdb6 | 7266 | echo "$ac_t""no" 1>&6 |
0046ff7c | 7267 | fi |
698dcdb6 | 7268 | |
0046ff7c | 7269 | |
b12915c1 VZ |
7270 | fi |
7271 | ||
698dcdb6 | 7272 | |
10f2d63a VZ |
7273 | echo "saving argument cache $wx_arg_cache_file" |
7274 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
698dcdb6 | 7275 | |
10f2d63a | 7276 | |
698dcdb6 VZ |
7277 | |
7278 | echo $ac_n "checking for toolkit""... $ac_c" 1>&6 | |
54276ccf | 7279 | echo "configure:7280: checking for toolkit" >&5 |
10f2d63a VZ |
7280 | |
7281 | if test "$wxUSE_GUI" = "yes"; then | |
7282 | ||
b12915c1 | 7283 | if test "$USE_BEOS" = 1; then |
698dcdb6 | 7284 | { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; } |
b12915c1 VZ |
7285 | fi |
7286 | ||
10f2d63a VZ |
7287 | if test "$TOOLKIT_GIVEN" = 1; then |
7288 | for toolkit in `echo $ALL_TOOLKITS`; do | |
7289 | var=wxUSE_$toolkit | |
7290 | eval "value=\$${var}" | |
7291 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
7292 | done | |
7293 | else | |
7294 | for toolkit in `echo $ALL_TOOLKITS`; do | |
7295 | if test "$has_toolkit_in_cache" != 1; then | |
7296 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
7297 | else | |
7298 | var=DEFAULT_wxUSE_$toolkit | |
7299 | fi | |
7300 | eval "wxUSE_$toolkit=\$${var}" | |
7301 | done | |
7302 | fi | |
7303 | ||
1e6feb95 | 7304 | 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 | 7305 | |
ec14dd32 VZ |
7306 | case "${host}" in |
7307 | *-pc-os2_emx ) | |
7308 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
7309 | # PATH_IFS is autodetected by OS/2's configure (usually ';') | |
7310 | LEX_STEM="lexyy" | |
7311 | ;; | |
7312 | *) | |
7313 | PATH_IFS=':' | |
7314 | LEX_STEM="lex.yy" | |
7315 | ;; | |
7316 | esac | |
10f2d63a VZ |
7317 | |
7318 | case "$NUM_TOOLKITS" in | |
7319 | 1) | |
7320 | ;; | |
7321 | 0) | |
698dcdb6 | 7322 | { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; } |
10f2d63a VZ |
7323 | ;; |
7324 | *) | |
698dcdb6 | 7325 | { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; } |
10f2d63a VZ |
7326 | esac |
7327 | ||
7328 | for toolkit in `echo $ALL_TOOLKITS`; do | |
7329 | var=wxUSE_$toolkit | |
7330 | eval "value=\$${var}" | |
7331 | if test "x$value" != x; then | |
7332 | cache_var=CACHE_$toolkit | |
7333 | eval "cache=\$${cache_var}" | |
7334 | if test "$cache" = 1; then | |
7335 | echo "$var=$value" >> ${wx_arg_cache_file} | |
7336 | fi | |
7337 | if test "$value" = 1; then | |
8168de4c VZ |
7338 | toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]` |
7339 | echo "$ac_t""$toolkit_echo" 1>&6 | |
10f2d63a VZ |
7340 | fi |
7341 | fi | |
7342 | done | |
7343 | ||
7344 | else | |
cf27ef00 | 7345 | PATH_IFS=':' |
698dcdb6 | 7346 | echo "$ac_t""base only" 1>&6 |
10f2d63a VZ |
7347 | fi |
7348 | ||
698dcdb6 VZ |
7349 | |
7350 | cat > confcache <<\EOF | |
10f2d63a VZ |
7351 | # This file is a shell script that caches the results of configure |
7352 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
7353 | # scripts and configure runs. It is not useful on other systems. |
7354 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 7355 | # |
698dcdb6 VZ |
7356 | # By default, configure uses ./config.cache as the cache file, |
7357 | # creating it if it does not exist already. You can give configure | |
7358 | # the --cache-file=FILE option to use a different cache file; that is | |
7359 | # what configure does when it calls configure scripts in | |
7360 | # subdirectories, so they share the cache. | |
7361 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
7362 | # config.status only pays attention to the cache file if you give it the | |
7363 | # --recheck option to rerun configure. | |
10f2d63a | 7364 | # |
698dcdb6 | 7365 | EOF |
10f2d63a VZ |
7366 | # The following way of writing the cache mishandles newlines in values, |
7367 | # but we know of no workaround that is simple, portable, and efficient. | |
7368 | # So, don't put newlines in cache variables' values. | |
7369 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
7370 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
7371 | (set) 2>&1 | |
7372 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
7373 | *ac_space=\ *) | |
7374 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
7375 | # turns \\\\ into \\, and sed turns \\ into \). | |
7376 | sed -n \ | |
7377 | -e "s/'/'\\\\''/g" \ | |
7378 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
7379 | ;; | |
7380 | *) | |
7381 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7382 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
7383 | ;; | |
7384 | esac >> confcache | |
7385 | if cmp -s $cache_file confcache; then | |
7386 | : | |
7387 | else | |
10f2d63a | 7388 | if test -w $cache_file; then |
698dcdb6 VZ |
7389 | echo "updating cache $cache_file" |
7390 | cat confcache > $cache_file | |
10f2d63a VZ |
7391 | else |
7392 | echo "not updating unwritable cache $cache_file" | |
7393 | fi | |
7394 | fi | |
7395 | rm -f confcache | |
7396 | ||
698dcdb6 | 7397 | |
e59890c3 | 7398 | if test "$build" != "$host" ; then |
10f2d63a VZ |
7399 | CC=$host_alias-gcc |
7400 | CXX=$host_alias-c++ | |
7401 | AR=$host_alias-ar | |
7402 | RANLIB=$host_alias-ranlib | |
7403 | DLLTOOL=$host_alias-dlltool | |
32832908 | 7404 | RESCOMP=$host_alias-windres |
10f2d63a VZ |
7405 | LD=$host_alias-ld |
7406 | NM=$host_alias-nm | |
7407 | STRIP=$host_alias-strip | |
10f2d63a VZ |
7408 | fi |
7409 | ||
698dcdb6 | 7410 | # Extract the first word of "gcc", so it can be a program name with args. |
1e487827 | 7411 | set dummy gcc; ac_word=$2 |
698dcdb6 | 7412 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
54276ccf | 7413 | echo "configure:7414: checking for $ac_word" >&5 |
698dcdb6 VZ |
7414 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
7415 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6232543b VS |
7416 | else |
7417 | if test -n "$CC"; then | |
7418 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10f2d63a | 7419 | else |
698dcdb6 VZ |
7420 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
7421 | ac_dummy="$PATH" | |
7422 | for ac_dir in $ac_dummy; do | |
7423 | test -z "$ac_dir" && ac_dir=. | |
7424 | if test -f $ac_dir/$ac_word; then | |
7425 | ac_cv_prog_CC="gcc" | |
7426 | break | |
7427 | fi | |
7428 | done | |
7429 | IFS="$ac_save_ifs" | |
10f2d63a | 7430 | fi |
6232543b | 7431 | fi |
698dcdb6 | 7432 | CC="$ac_cv_prog_CC" |
6232543b | 7433 | if test -n "$CC"; then |
698dcdb6 | 7434 | echo "$ac_t""$CC" 1>&6 |
1e487827 | 7435 | else |
698dcdb6 | 7436 | echo "$ac_t""no" 1>&6 |
1e487827 | 7437 | fi |
6232543b | 7438 | |
1e487827 VS |
7439 | if test -z "$CC"; then |
7440 | # Extract the first word of "cc", so it can be a program name with args. | |
7441 | set dummy cc; ac_word=$2 | |
698dcdb6 | 7442 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
54276ccf | 7443 | echo "configure:7444: checking for $ac_word" >&5 |
698dcdb6 VZ |
7444 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
7445 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 VS |
7446 | else |
7447 | if test -n "$CC"; then | |
7448 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
7449 | else | |
698dcdb6 | 7450 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1e487827 | 7451 | ac_prog_rejected=no |
698dcdb6 VZ |
7452 | ac_dummy="$PATH" |
7453 | for ac_dir in $ac_dummy; do | |
7454 | test -z "$ac_dir" && ac_dir=. | |
7455 | if test -f $ac_dir/$ac_word; then | |
7456 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
7457 | ac_prog_rejected=yes | |
7458 | continue | |
7459 | fi | |
7460 | ac_cv_prog_CC="cc" | |
7461 | break | |
7462 | fi | |
7463 | done | |
7464 | IFS="$ac_save_ifs" | |
1e487827 VS |
7465 | if test $ac_prog_rejected = yes; then |
7466 | # We found a bogon in the path, so make sure we never use it. | |
7467 | set dummy $ac_cv_prog_CC | |
7468 | shift | |
698dcdb6 | 7469 | if test $# -gt 0; then |
1e487827 VS |
7470 | # We chose a different compiler from the bogus one. |
7471 | # However, it has the same basename, so the bogon will be chosen | |
7472 | # first if we set CC to just the basename; use the full file name. | |
7473 | shift | |
698dcdb6 | 7474 | set dummy "$ac_dir/$ac_word" "$@" |
1e487827 VS |
7475 | shift |
7476 | ac_cv_prog_CC="$@" | |
703e0a69 | 7477 | fi |
1e487827 VS |
7478 | fi |
7479 | fi | |
7480 | fi | |
698dcdb6 | 7481 | CC="$ac_cv_prog_CC" |
1e487827 | 7482 | if test -n "$CC"; then |
698dcdb6 | 7483 | echo "$ac_t""$CC" 1>&6 |
703e0a69 | 7484 | else |
698dcdb6 | 7485 | echo "$ac_t""no" 1>&6 |
703e0a69 | 7486 | fi |
1e487827 | 7487 | |
698dcdb6 VZ |
7488 | if test -z "$CC"; then |
7489 | case "`uname -s`" in | |
7490 | *win32* | *WIN32*) | |
7491 | # Extract the first word of "cl", so it can be a program name with args. | |
7492 | set dummy cl; ac_word=$2 | |
7493 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
54276ccf | 7494 | echo "configure:7495: checking for $ac_word" >&5 |
698dcdb6 VZ |
7495 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
7496 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 VS |
7497 | else |
7498 | if test -n "$CC"; then | |
7499 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
703e0a69 | 7500 | else |
698dcdb6 VZ |
7501 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
7502 | ac_dummy="$PATH" | |
7503 | for ac_dir in $ac_dummy; do | |
7504 | test -z "$ac_dir" && ac_dir=. | |
7505 | if test -f $ac_dir/$ac_word; then | |
7506 | ac_cv_prog_CC="cl" | |
7507 | break | |
7508 | fi | |
7509 | done | |
7510 | IFS="$ac_save_ifs" | |
703e0a69 | 7511 | fi |
1e487827 | 7512 | fi |
698dcdb6 | 7513 | CC="$ac_cv_prog_CC" |
1e487827 | 7514 | if test -n "$CC"; then |
698dcdb6 | 7515 | echo "$ac_t""$CC" 1>&6 |
1e487827 | 7516 | else |
698dcdb6 | 7517 | echo "$ac_t""no" 1>&6 |
1e487827 | 7518 | fi |
698dcdb6 VZ |
7519 | ;; |
7520 | esac | |
7521 | fi | |
7522 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
1e487827 VS |
7523 | fi |
7524 | ||
698dcdb6 | 7525 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
54276ccf | 7526 | echo "configure:7527: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
1e487827 | 7527 | |
698dcdb6 VZ |
7528 | ac_ext=c |
7529 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
7530 | ac_cpp='$CPP $CPPFLAGS' | |
7531 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
7532 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7533 | cross_compiling=$ac_cv_prog_cc_cross | |
6232543b | 7534 | |
698dcdb6 | 7535 | cat > conftest.$ac_ext << EOF |
1e487827 | 7536 | |
54276ccf | 7537 | #line 7538 "configure" |
1e487827 VS |
7538 | #include "confdefs.h" |
7539 | ||
698dcdb6 VZ |
7540 | main(){return(0);} |
7541 | EOF | |
54276ccf | 7542 | if { (eval echo configure:7543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
7543 | ac_cv_prog_cc_works=yes |
7544 | # If we can't run a trivial program, we are probably using a cross compiler. | |
7545 | if (./conftest; exit) 2>/dev/null; then | |
7546 | ac_cv_prog_cc_cross=no | |
7547 | else | |
7548 | ac_cv_prog_cc_cross=yes | |
7549 | fi | |
7550 | else | |
7551 | echo "configure: failed program was:" >&5 | |
7552 | cat conftest.$ac_ext >&5 | |
7553 | ac_cv_prog_cc_works=no | |
7554 | fi | |
7555 | rm -fr conftest* | |
7556 | ac_ext=c | |
7557 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
7558 | ac_cpp='$CPP $CPPFLAGS' | |
7559 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
7560 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7561 | cross_compiling=$ac_cv_prog_cc_cross | |
7562 | ||
7563 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
7564 | if test $ac_cv_prog_cc_works = no; then | |
7565 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
7566 | fi | |
7567 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
54276ccf | 7568 | echo "configure:7569: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
698dcdb6 VZ |
7569 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
7570 | cross_compiling=$ac_cv_prog_cc_cross | |
7571 | ||
7572 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
54276ccf | 7573 | echo "configure:7574: checking whether we are using GNU C" >&5 |
698dcdb6 VZ |
7574 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
7575 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7576 | else | |
7577 | cat > conftest.c <<EOF | |
7578 | #ifdef __GNUC__ | |
7579 | yes; | |
1e487827 | 7580 | #endif |
698dcdb6 | 7581 | EOF |
54276ccf | 7582 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:7583: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
698dcdb6 VZ |
7583 | ac_cv_prog_gcc=yes |
7584 | else | |
7585 | ac_cv_prog_gcc=no | |
7586 | fi | |
7587 | fi | |
1e487827 | 7588 | |
698dcdb6 | 7589 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
1e487827 | 7590 | |
698dcdb6 VZ |
7591 | if test $ac_cv_prog_gcc = yes; then |
7592 | GCC=yes | |
7593 | else | |
7594 | GCC= | |
7595 | fi | |
1e487827 | 7596 | |
698dcdb6 VZ |
7597 | ac_test_CFLAGS="${CFLAGS+set}" |
7598 | ac_save_CFLAGS="$CFLAGS" | |
7599 | CFLAGS= | |
7600 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
54276ccf | 7601 | echo "configure:7602: checking whether ${CC-cc} accepts -g" >&5 |
698dcdb6 VZ |
7602 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
7603 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7604 | else | |
7605 | echo 'void f(){}' > conftest.c | |
7606 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
10f2d63a VZ |
7607 | ac_cv_prog_cc_g=yes |
7608 | else | |
698dcdb6 | 7609 | ac_cv_prog_cc_g=no |
10f2d63a | 7610 | fi |
698dcdb6 VZ |
7611 | rm -f conftest* |
7612 | ||
10f2d63a | 7613 | fi |
698dcdb6 VZ |
7614 | |
7615 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
10f2d63a | 7616 | if test "$ac_test_CFLAGS" = set; then |
698dcdb6 | 7617 | CFLAGS="$ac_save_CFLAGS" |
10f2d63a VZ |
7618 | elif test $ac_cv_prog_cc_g = yes; then |
7619 | if test "$GCC" = yes; then | |
7620 | CFLAGS="-g -O2" | |
7621 | else | |
7622 | CFLAGS="-g" | |
7623 | fi | |
7624 | else | |
7625 | if test "$GCC" = yes; then | |
7626 | CFLAGS="-O2" | |
7627 | else | |
7628 | CFLAGS= | |
7629 | fi | |
7630 | fi | |
7631 | ||
7632 | ||
7633 | CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'` | |
7634 | ||
698dcdb6 | 7635 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
54276ccf | 7636 | echo "configure:7637: checking how to run the C preprocessor" >&5 |
10f2d63a VZ |
7637 | # On Suns, sometimes $CPP names a directory. |
7638 | if test -n "$CPP" && test -d "$CPP"; then | |
7639 | CPP= | |
7640 | fi | |
7641 | if test -z "$CPP"; then | |
698dcdb6 VZ |
7642 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
7643 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7644 | else | |
7645 | # This must be in double quotes, not single quotes, because CPP may get | |
7646 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
7647 | CPP="${CC-cc} -E" | |
10f2d63a | 7648 | # On the NeXT, cc -E runs the code through the compiler's parser, |
698dcdb6 VZ |
7649 | # not just through cpp. |
7650 | cat > conftest.$ac_ext <<EOF | |
54276ccf | 7651 | #line 7652 "configure" |
10f2d63a VZ |
7652 | #include "confdefs.h" |
7653 | #include <assert.h> | |
698dcdb6 VZ |
7654 | Syntax Error |
7655 | EOF | |
7656 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
54276ccf | 7657 | { (eval echo configure:7658: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
7658 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7659 | if test -z "$ac_err"; then | |
10f2d63a VZ |
7660 | : |
7661 | else | |
698dcdb6 VZ |
7662 | echo "$ac_err" >&5 |
7663 | echo "configure: failed program was:" >&5 | |
10f2d63a | 7664 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
7665 | rm -rf conftest* |
7666 | CPP="${CC-cc} -E -traditional-cpp" | |
7667 | cat > conftest.$ac_ext <<EOF | |
54276ccf | 7668 | #line 7669 "configure" |
10f2d63a | 7669 | #include "confdefs.h" |
698dcdb6 VZ |
7670 | #include <assert.h> |
7671 | Syntax Error | |
7672 | EOF | |
7673 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
54276ccf | 7674 | { (eval echo configure:7675: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
7675 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7676 | if test -z "$ac_err"; then | |
7677 | : | |
10f2d63a | 7678 | else |
698dcdb6 VZ |
7679 | echo "$ac_err" >&5 |
7680 | echo "configure: failed program was:" >&5 | |
10f2d63a | 7681 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
7682 | rm -rf conftest* |
7683 | CPP="${CC-cc} -nologo -E" | |
7684 | cat > conftest.$ac_ext <<EOF | |
54276ccf | 7685 | #line 7686 "configure" |
10f2d63a VZ |
7686 | #include "confdefs.h" |
7687 | #include <assert.h> | |
698dcdb6 VZ |
7688 | Syntax Error |
7689 | EOF | |
7690 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
54276ccf | 7691 | { (eval echo configure:7692: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
7692 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7693 | if test -z "$ac_err"; then | |
10f2d63a VZ |
7694 | : |
7695 | else | |
698dcdb6 VZ |
7696 | echo "$ac_err" >&5 |
7697 | echo "configure: failed program was:" >&5 | |
10f2d63a | 7698 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
7699 | rm -rf conftest* |
7700 | CPP=/lib/cpp | |
10f2d63a | 7701 | fi |
698dcdb6 | 7702 | rm -f conftest* |
10f2d63a | 7703 | fi |
698dcdb6 | 7704 | rm -f conftest* |
703e0a69 | 7705 | fi |
698dcdb6 VZ |
7706 | rm -f conftest* |
7707 | ac_cv_prog_CPP="$CPP" | |
7708 | fi | |
7709 | CPP="$ac_cv_prog_CPP" | |
10f2d63a | 7710 | else |
698dcdb6 | 7711 | ac_cv_prog_CPP="$CPP" |
10f2d63a | 7712 | fi |
698dcdb6 | 7713 | echo "$ac_t""$CPP" 1>&6 |
10f2d63a VZ |
7714 | |
7715 | ||
698dcdb6 VZ |
7716 | if test $ac_cv_prog_gcc = yes; then |
7717 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
54276ccf | 7718 | echo "configure:7719: checking whether ${CC-cc} needs -traditional" >&5 |
698dcdb6 VZ |
7719 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
7720 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
7721 | else |
7722 | ac_pattern="Autoconf.*'x'" | |
698dcdb6 | 7723 | cat > conftest.$ac_ext <<EOF |
54276ccf | 7724 | #line 7725 "configure" |
10f2d63a VZ |
7725 | #include "confdefs.h" |
7726 | #include <sgtty.h> | |
7727 | Autoconf TIOCGETP | |
698dcdb6 | 7728 | EOF |
10f2d63a VZ |
7729 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
7730 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
698dcdb6 | 7731 | rm -rf conftest* |
10f2d63a VZ |
7732 | ac_cv_prog_gcc_traditional=yes |
7733 | else | |
698dcdb6 | 7734 | rm -rf conftest* |
10f2d63a VZ |
7735 | ac_cv_prog_gcc_traditional=no |
7736 | fi | |
7737 | rm -f conftest* | |
7738 | ||
698dcdb6 | 7739 | |
10f2d63a | 7740 | if test $ac_cv_prog_gcc_traditional = no; then |
698dcdb6 | 7741 | cat > conftest.$ac_ext <<EOF |
54276ccf | 7742 | #line 7743 "configure" |
10f2d63a VZ |
7743 | #include "confdefs.h" |
7744 | #include <termio.h> | |
7745 | Autoconf TCGETA | |
698dcdb6 | 7746 | EOF |
10f2d63a VZ |
7747 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
7748 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
698dcdb6 | 7749 | rm -rf conftest* |
10f2d63a VZ |
7750 | ac_cv_prog_gcc_traditional=yes |
7751 | fi | |
7752 | rm -f conftest* | |
7753 | ||
7754 | fi | |
7755 | fi | |
698dcdb6 VZ |
7756 | |
7757 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
10f2d63a VZ |
7758 | if test $ac_cv_prog_gcc_traditional = yes; then |
7759 | CC="$CC -traditional" | |
7760 | fi | |
7761 | fi | |
7762 | ||
703e0a69 | 7763 | |
698dcdb6 VZ |
7764 | |
7765 | ac_ext=C | |
7766 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 7767 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
7768 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
7769 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7770 | cross_compiling=$ac_cv_prog_cxx_cross | |
7771 | ||
7772 | ||
7773 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | |
7774 | do | |
7775 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
7776 | set dummy $ac_prog; ac_word=$2 | |
7777 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
54276ccf | 7778 | echo "configure:7779: checking for $ac_word" >&5 |
698dcdb6 VZ |
7779 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
7780 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
7781 | else |
7782 | if test -n "$CXX"; then | |
7783 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
7784 | else | |
698dcdb6 VZ |
7785 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
7786 | ac_dummy="$PATH" | |
7787 | for ac_dir in $ac_dummy; do | |
7788 | test -z "$ac_dir" && ac_dir=. | |
7789 | if test -f $ac_dir/$ac_word; then | |
7790 | ac_cv_prog_CXX="$ac_prog" | |
7791 | break | |
7792 | fi | |
7793 | done | |
7794 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
7795 | fi |
7796 | fi | |
698dcdb6 | 7797 | CXX="$ac_cv_prog_CXX" |
10f2d63a | 7798 | if test -n "$CXX"; then |
698dcdb6 | 7799 | echo "$ac_t""$CXX" 1>&6 |
10f2d63a | 7800 | else |
698dcdb6 | 7801 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
7802 | fi |
7803 | ||
698dcdb6 | 7804 | test -n "$CXX" && break |
10f2d63a | 7805 | done |
698dcdb6 | 7806 | test -n "$CXX" || CXX="gcc" |
10f2d63a VZ |
7807 | |
7808 | ||
698dcdb6 | 7809 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
54276ccf | 7810 | echo "configure:7811: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
10f2d63a | 7811 | |
698dcdb6 VZ |
7812 | ac_ext=C |
7813 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
7814 | ac_cpp='$CXXCPP $CPPFLAGS' | |
7815 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
7816 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7817 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 7818 | |
698dcdb6 VZ |
7819 | cat > conftest.$ac_ext << EOF |
7820 | ||
54276ccf | 7821 | #line 7822 "configure" |
10f2d63a VZ |
7822 | #include "confdefs.h" |
7823 | ||
698dcdb6 VZ |
7824 | int main(){return(0);} |
7825 | EOF | |
54276ccf | 7826 | if { (eval echo configure:7827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
7827 | ac_cv_prog_cxx_works=yes |
7828 | # If we can't run a trivial program, we are probably using a cross compiler. | |
7829 | if (./conftest; exit) 2>/dev/null; then | |
7830 | ac_cv_prog_cxx_cross=no | |
7831 | else | |
7832 | ac_cv_prog_cxx_cross=yes | |
7833 | fi | |
7834 | else | |
7835 | echo "configure: failed program was:" >&5 | |
7836 | cat conftest.$ac_ext >&5 | |
7837 | ac_cv_prog_cxx_works=no | |
7838 | fi | |
7839 | rm -fr conftest* | |
7840 | ac_ext=C | |
7841 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
7842 | ac_cpp='$CXXCPP $CPPFLAGS' | |
7843 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
7844 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7845 | cross_compiling=$ac_cv_prog_cxx_cross | |
7846 | ||
7847 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 | |
7848 | if test $ac_cv_prog_cxx_works = no; then | |
7849 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
7850 | fi | |
7851 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
54276ccf | 7852 | echo "configure:7853: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
698dcdb6 VZ |
7853 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
7854 | cross_compiling=$ac_cv_prog_cxx_cross | |
7855 | ||
7856 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 | |
54276ccf | 7857 | echo "configure:7858: checking whether we are using GNU C++" >&5 |
698dcdb6 VZ |
7858 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
7859 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7860 | else | |
7861 | cat > conftest.C <<EOF | |
7862 | #ifdef __GNUC__ | |
7863 | yes; | |
10f2d63a | 7864 | #endif |
698dcdb6 | 7865 | EOF |
54276ccf | 7866 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:7867: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
698dcdb6 VZ |
7867 | ac_cv_prog_gxx=yes |
7868 | else | |
7869 | ac_cv_prog_gxx=no | |
7870 | fi | |
7871 | fi | |
10f2d63a | 7872 | |
698dcdb6 | 7873 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
10f2d63a | 7874 | |
698dcdb6 VZ |
7875 | if test $ac_cv_prog_gxx = yes; then |
7876 | GXX=yes | |
7877 | else | |
7878 | GXX= | |
7879 | fi | |
10f2d63a | 7880 | |
698dcdb6 VZ |
7881 | ac_test_CXXFLAGS="${CXXFLAGS+set}" |
7882 | ac_save_CXXFLAGS="$CXXFLAGS" | |
7883 | CXXFLAGS= | |
7884 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
54276ccf | 7885 | echo "configure:7886: checking whether ${CXX-g++} accepts -g" >&5 |
698dcdb6 VZ |
7886 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
7887 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7888 | else | |
7889 | echo 'void f(){}' > conftest.cc | |
7890 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
10f2d63a VZ |
7891 | ac_cv_prog_cxx_g=yes |
7892 | else | |
698dcdb6 | 7893 | ac_cv_prog_cxx_g=no |
10f2d63a | 7894 | fi |
698dcdb6 VZ |
7895 | rm -f conftest* |
7896 | ||
10f2d63a | 7897 | fi |
698dcdb6 VZ |
7898 | |
7899 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
10f2d63a | 7900 | if test "$ac_test_CXXFLAGS" = set; then |
698dcdb6 | 7901 | CXXFLAGS="$ac_save_CXXFLAGS" |
10f2d63a VZ |
7902 | elif test $ac_cv_prog_cxx_g = yes; then |
7903 | if test "$GXX" = yes; then | |
7904 | CXXFLAGS="-g -O2" | |
7905 | else | |
7906 | CXXFLAGS="-g" | |
7907 | fi | |
7908 | else | |
7909 | if test "$GXX" = yes; then | |
7910 | CXXFLAGS="-O2" | |
7911 | else | |
7912 | CXXFLAGS= | |
7913 | fi | |
7914 | fi | |
7915 | ||
7916 | ||
698dcdb6 | 7917 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 |
54276ccf | 7918 | echo "configure:7919: checking how to run the C++ preprocessor" >&5 |
1e487827 | 7919 | if test -z "$CXXCPP"; then |
698dcdb6 VZ |
7920 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then |
7921 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 7922 | else |
698dcdb6 VZ |
7923 | ac_ext=C |
7924 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
7925 | ac_cpp='$CXXCPP $CPPFLAGS' | |
7926 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
7927 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7928 | cross_compiling=$ac_cv_prog_cxx_cross | |
7929 | CXXCPP="${CXX-g++} -E" | |
7930 | cat > conftest.$ac_ext <<EOF | |
54276ccf | 7931 | #line 7932 "configure" |
1e487827 | 7932 | #include "confdefs.h" |
698dcdb6 VZ |
7933 | #include <stdlib.h> |
7934 | EOF | |
7935 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
54276ccf | 7936 | { (eval echo configure:7937: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
7937 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7938 | if test -z "$ac_err"; then | |
1e487827 VS |
7939 | : |
7940 | else | |
698dcdb6 VZ |
7941 | echo "$ac_err" >&5 |
7942 | echo "configure: failed program was:" >&5 | |
1e487827 | 7943 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
7944 | rm -rf conftest* |
7945 | CXXCPP=/lib/cpp | |
1e487827 | 7946 | fi |
698dcdb6 VZ |
7947 | rm -f conftest* |
7948 | ac_cv_prog_CXXCPP="$CXXCPP" | |
7949 | ac_ext=C | |
7950 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
7951 | ac_cpp='$CXXCPP $CPPFLAGS' | |
7952 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
7953 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7954 | cross_compiling=$ac_cv_prog_cxx_cross | |
1e487827 | 7955 | fi |
1e487827 | 7956 | fi |
698dcdb6 VZ |
7957 | CXXCPP="$ac_cv_prog_CXXCPP" |
7958 | echo "$ac_t""$CXXCPP" 1>&6 | |
1e487827 | 7959 | |
10f2d63a VZ |
7960 | |
7961 | CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'` | |
7962 | ||
7963 | ac_ext=c | |
698dcdb6 | 7964 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 7965 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
7966 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
7967 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7968 | cross_compiling=$ac_cv_prog_cc_cross | |
7969 | ||
7970 | ||
7971 | # Extract the first word of "ranlib", so it can be a program name with args. | |
7972 | set dummy ranlib; ac_word=$2 | |
7973 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
54276ccf | 7974 | echo "configure:7975: checking for $ac_word" >&5 |
698dcdb6 VZ |
7975 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
7976 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
7977 | else |
7978 | if test -n "$RANLIB"; then | |
7979 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
7980 | else | |
698dcdb6 VZ |
7981 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
7982 | ac_dummy="$PATH" | |
7983 | for ac_dir in $ac_dummy; do | |
7984 | test -z "$ac_dir" && ac_dir=. | |
7985 | if test -f $ac_dir/$ac_word; then | |
7986 | ac_cv_prog_RANLIB="ranlib" | |
7987 | break | |
7988 | fi | |
7989 | done | |
7990 | IFS="$ac_save_ifs" | |
7991 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
10f2d63a VZ |
7992 | fi |
7993 | fi | |
698dcdb6 | 7994 | RANLIB="$ac_cv_prog_RANLIB" |
10f2d63a | 7995 | if test -n "$RANLIB"; then |
698dcdb6 | 7996 | echo "$ac_t""$RANLIB" 1>&6 |
10f2d63a | 7997 | else |
698dcdb6 | 7998 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
7999 | fi |
8000 | ||
8001 | ||
8002 | # Extract the first word of "ar", so it can be a program name with args. | |
8003 | set dummy ar; ac_word=$2 | |
698dcdb6 | 8004 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
54276ccf | 8005 | echo "configure:8006: checking for $ac_word" >&5 |
698dcdb6 VZ |
8006 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
8007 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8008 | else |
8009 | if test -n "$AR"; then | |
8010 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8011 | else | |
698dcdb6 VZ |
8012 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8013 | ac_dummy="$PATH" | |
8014 | for ac_dir in $ac_dummy; do | |
8015 | test -z "$ac_dir" && ac_dir=. | |
8016 | if test -f $ac_dir/$ac_word; then | |
8017 | ac_cv_prog_AR="ar" | |
8018 | break | |
8019 | fi | |
8020 | done | |
8021 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8022 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
8023 | fi | |
8024 | fi | |
698dcdb6 | 8025 | AR="$ac_cv_prog_AR" |
10f2d63a | 8026 | if test -n "$AR"; then |
698dcdb6 | 8027 | echo "$ac_t""$AR" 1>&6 |
10f2d63a | 8028 | else |
698dcdb6 | 8029 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8030 | fi |
8031 | ||
698dcdb6 | 8032 | |
10f2d63a VZ |
8033 | # Find a good install program. We prefer a C program (faster), |
8034 | # so one script is as good as another. But avoid the broken or | |
8035 | # incompatible versions: | |
8036 | # SysV /etc/install, /usr/sbin/install | |
8037 | # SunOS /usr/etc/install | |
8038 | # IRIX /sbin/install | |
8039 | # AIX /bin/install | |
8040 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
8041 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
8042 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
8043 | # ./install, which can be erroneously created by make from ./install.sh. | |
698dcdb6 | 8044 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
54276ccf | 8045 | echo "configure:8046: checking for a BSD compatible install" >&5 |
10f2d63a | 8046 | if test -z "$INSTALL"; then |
698dcdb6 VZ |
8047 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
8048 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 8049 | else |
698dcdb6 | 8050 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
10f2d63a VZ |
8051 | for ac_dir in $PATH; do |
8052 | # Account for people who put trailing slashes in PATH elements. | |
698dcdb6 VZ |
8053 | case "$ac_dir/" in |
8054 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
10f2d63a VZ |
8055 | *) |
8056 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
8057 | # Don't use installbsd from OSF since it installs stuff as root | |
8058 | # by default. | |
8059 | for ac_prog in ginstall scoinst install; do | |
698dcdb6 | 8060 | if test -f $ac_dir/$ac_prog; then |
10f2d63a | 8061 | if test $ac_prog = install && |
698dcdb6 | 8062 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
10f2d63a VZ |
8063 | # AIX install. It has an incompatible calling convention. |
8064 | : | |
8065 | else | |
8066 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
8067 | break 2 | |
8068 | fi | |
8069 | fi | |
8070 | done | |
8071 | ;; | |
8072 | esac | |
8073 | done | |
698dcdb6 | 8074 | IFS="$ac_save_IFS" |
10f2d63a VZ |
8075 | |
8076 | fi | |
8077 | if test "${ac_cv_path_install+set}" = set; then | |
698dcdb6 | 8078 | INSTALL="$ac_cv_path_install" |
10f2d63a VZ |
8079 | else |
8080 | # As a last resort, use the slow shell script. We don't cache a | |
8081 | # path for INSTALL within a source directory, because that will | |
8082 | # break other packages using the cache if that directory is | |
8083 | # removed, or if the path is relative. | |
698dcdb6 | 8084 | INSTALL="$ac_install_sh" |
10f2d63a VZ |
8085 | fi |
8086 | fi | |
698dcdb6 | 8087 | echo "$ac_t""$INSTALL" 1>&6 |
10f2d63a VZ |
8088 | |
8089 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
8090 | # It thinks the first close brace ends the variable substitution. | |
8091 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
8092 | ||
698dcdb6 | 8093 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
10f2d63a VZ |
8094 | |
8095 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
8096 | ||
698dcdb6 | 8097 | |
10f2d63a VZ |
8098 | # Extract the first word of "strip", so it can be a program name with args. |
8099 | set dummy strip; ac_word=$2 | |
698dcdb6 | 8100 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
54276ccf | 8101 | echo "configure:8102: checking for $ac_word" >&5 |
698dcdb6 VZ |
8102 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
8103 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8104 | else |
8105 | if test -n "$STRIP"; then | |
8106 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
8107 | else | |
698dcdb6 VZ |
8108 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8109 | ac_dummy="$PATH" | |
8110 | for ac_dir in $ac_dummy; do | |
8111 | test -z "$ac_dir" && ac_dir=. | |
8112 | if test -f $ac_dir/$ac_word; then | |
8113 | ac_cv_prog_STRIP="strip" | |
8114 | break | |
8115 | fi | |
8116 | done | |
8117 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8118 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
8119 | fi | |
8120 | fi | |
698dcdb6 | 8121 | STRIP="$ac_cv_prog_STRIP" |
10f2d63a | 8122 | if test -n "$STRIP"; then |
698dcdb6 | 8123 | echo "$ac_t""$STRIP" 1>&6 |
10f2d63a | 8124 | else |
698dcdb6 | 8125 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8126 | fi |
8127 | ||
698dcdb6 VZ |
8128 | |
8129 | echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6 | |
54276ccf | 8130 | echo "configure:8131: checking make for VPATH support" >&5 |
10f2d63a VZ |
8131 | cat - << EOF > confMake |
8132 | check : file | |
8133 | cp \$? \$@ | |
8134 | cp \$? final_file | |
8135 | EOF | |
8136 | ||
8137 | if test ! -d sub ; then | |
8138 | mkdir sub | |
8139 | fi | |
8140 | echo dummy > sub/file | |
f6bcfd97 | 8141 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null |
10f2d63a VZ |
8142 | RESULT=$? |
8143 | rm -f sub/file check final_file confMake | |
8144 | rmdir sub | |
8145 | if test "$RESULT" = 0; then | |
698dcdb6 | 8146 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8147 | else |
698dcdb6 VZ |
8148 | echo "$ac_t""no" 1>&6 |
8149 | { echo "configure: error: | |
1e487827 VS |
8150 | You need a make-utility that is able to use the variable |
8151 | VPATH correctly. | |
8152 | If your version of make does not support VPATH correctly, | |
8153 | please install GNU-make (possibly as gmake), and start | |
8154 | configure with the following command: | |
8155 | export MAKE=gmake; ./configure for sh-type shells | |
8156 | setenv MAKE gmake; ./configure for csh-type shells | |
8157 | Also please do remember to use gmake in this case every time | |
8158 | you are trying to compile. | |
698dcdb6 | 8159 | " 1>&2; exit 1; } |
10f2d63a VZ |
8160 | fi |
8161 | ||
8162 | for ac_prog in 'bison -y' byacc | |
8163 | do | |
698dcdb6 | 8164 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
10f2d63a | 8165 | set dummy $ac_prog; ac_word=$2 |
698dcdb6 | 8166 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
54276ccf | 8167 | echo "configure:8168: checking for $ac_word" >&5 |
698dcdb6 VZ |
8168 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
8169 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8170 | else |
8171 | if test -n "$YACC"; then | |
8172 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
8173 | else | |
698dcdb6 VZ |
8174 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8175 | ac_dummy="$PATH" | |
8176 | for ac_dir in $ac_dummy; do | |
8177 | test -z "$ac_dir" && ac_dir=. | |
8178 | if test -f $ac_dir/$ac_word; then | |
8179 | ac_cv_prog_YACC="$ac_prog" | |
8180 | break | |
8181 | fi | |
8182 | done | |
8183 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8184 | fi |
8185 | fi | |
698dcdb6 | 8186 | YACC="$ac_cv_prog_YACC" |
10f2d63a | 8187 | if test -n "$YACC"; then |
698dcdb6 | 8188 | echo "$ac_t""$YACC" 1>&6 |
10f2d63a | 8189 | else |
698dcdb6 | 8190 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8191 | fi |
8192 | ||
698dcdb6 | 8193 | test -n "$YACC" && break |
10f2d63a VZ |
8194 | done |
8195 | test -n "$YACC" || YACC="yacc" | |
8196 | ||
698dcdb6 VZ |
8197 | |
8198 | # Extract the first word of "flex", so it can be a program name with args. | |
8199 | set dummy flex; ac_word=$2 | |
8200 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
54276ccf | 8201 | echo "configure:8202: checking for $ac_word" >&5 |
698dcdb6 VZ |
8202 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
8203 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8204 | else |
8205 | if test -n "$LEX"; then | |
8206 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
8207 | else | |
698dcdb6 VZ |
8208 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8209 | ac_dummy="$PATH" | |
8210 | for ac_dir in $ac_dummy; do | |
8211 | test -z "$ac_dir" && ac_dir=. | |
8212 | if test -f $ac_dir/$ac_word; then | |
8213 | ac_cv_prog_LEX="flex" | |
8214 | break | |
8215 | fi | |
8216 | done | |
8217 | IFS="$ac_save_ifs" | |
8218 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
10f2d63a VZ |
8219 | fi |
8220 | fi | |
698dcdb6 | 8221 | LEX="$ac_cv_prog_LEX" |
10f2d63a | 8222 | if test -n "$LEX"; then |
698dcdb6 | 8223 | echo "$ac_t""$LEX" 1>&6 |
10f2d63a | 8224 | else |
698dcdb6 | 8225 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8226 | fi |
8227 | ||
8228 | if test -z "$LEXLIB" | |
8229 | then | |
698dcdb6 VZ |
8230 | case "$LEX" in |
8231 | flex*) ac_lib=fl ;; | |
8232 | *) ac_lib=l ;; | |
8233 | esac | |
8234 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
54276ccf | 8235 | echo "configure:8236: checking for yywrap in -l$ac_lib" >&5 |
698dcdb6 VZ |
8236 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
8237 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
8238 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8239 | else | |
8240 | ac_save_LIBS="$LIBS" | |
8241 | LIBS="-l$ac_lib $LIBS" | |
8242 | cat > conftest.$ac_ext <<EOF | |
54276ccf | 8243 | #line 8244 "configure" |
10f2d63a VZ |
8244 | #include "confdefs.h" |
8245 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8246 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
8247 | builtin and then its argument prototype would still apply. */ |
8248 | char yywrap(); | |
10f2d63a | 8249 | |
698dcdb6 VZ |
8250 | int main() { |
8251 | yywrap() | |
8252 | ; return 0; } | |
8253 | EOF | |
54276ccf | 8254 | if { (eval echo configure:8255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
8255 | rm -rf conftest* |
8256 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 8257 | else |
698dcdb6 VZ |
8258 | echo "configure: failed program was:" >&5 |
8259 | cat conftest.$ac_ext >&5 | |
8260 | rm -rf conftest* | |
8261 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 8262 | fi |
698dcdb6 VZ |
8263 | rm -f conftest* |
8264 | LIBS="$ac_save_LIBS" | |
8265 | ||
10f2d63a | 8266 | fi |
698dcdb6 VZ |
8267 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
8268 | echo "$ac_t""yes" 1>&6 | |
8269 | LEXLIB="-l$ac_lib" | |
8270 | else | |
8271 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
8272 | fi |
8273 | ||
8274 | fi | |
8275 | ||
8276 | ||
698dcdb6 | 8277 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
54276ccf | 8278 | echo "configure:8279: checking whether ln -s works" >&5 |
698dcdb6 VZ |
8279 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
8280 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 8281 | else |
698dcdb6 VZ |
8282 | rm -f conftestdata |
8283 | if ln -s X conftestdata 2>/dev/null | |
8284 | then | |
8285 | rm -f conftestdata | |
8286 | ac_cv_prog_LN_S="ln -s" | |
10f2d63a | 8287 | else |
698dcdb6 | 8288 | ac_cv_prog_LN_S=ln |
10f2d63a VZ |
8289 | fi |
8290 | fi | |
698dcdb6 VZ |
8291 | LN_S="$ac_cv_prog_LN_S" |
8292 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
8293 | echo "$ac_t""yes" 1>&6 | |
10f2d63a | 8294 | else |
698dcdb6 | 8295 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8296 | fi |
8297 | ||
8298 | ||
8299 | ||
8300 | SEARCH_INCLUDE="\ | |
8301 | /usr/local/include \ | |
8302 | \ | |
8303 | /usr/Motif-1.2/include \ | |
8304 | /usr/Motif-2.1/include \ | |
8305 | \ | |
8306 | /usr/include/Motif1.2 \ | |
8307 | /opt/xpm/include/X11 \ | |
8308 | /opt/GBxpm/include/ \ | |
8309 | /opt/GBxpm/X11/include/ \ | |
8310 | \ | |
8311 | /usr/Motif1.2/include \ | |
8312 | /usr/dt/include \ | |
afc31813 VZ |
8313 | /usr/openwin/include \ |
8314 | \ | |
10f2d63a VZ |
8315 | /usr/include/Xm \ |
8316 | \ | |
8317 | /usr/X11R6/include \ | |
afc31813 | 8318 | /usr/X11R6.4/include \ |
10f2d63a VZ |
8319 | /usr/X11R5/include \ |
8320 | /usr/X11R4/include \ | |
8321 | \ | |
10f2d63a VZ |
8322 | /usr/include/X11R6 \ |
8323 | /usr/include/X11R5 \ | |
8324 | /usr/include/X11R4 \ | |
8325 | \ | |
8326 | /usr/local/X11R6/include \ | |
8327 | /usr/local/X11R5/include \ | |
8328 | /usr/local/X11R4/include \ | |
8329 | \ | |
8330 | /usr/local/include/X11R6 \ | |
8331 | /usr/local/include/X11R5 \ | |
8332 | /usr/local/include/X11R4 \ | |
8333 | \ | |
8334 | /usr/X11/include \ | |
8335 | /usr/include/X11 \ | |
8336 | /usr/local/X11/include \ | |
8337 | /usr/local/include/X11 \ | |
8338 | \ | |
8339 | /usr/X386/include \ | |
8340 | /usr/x386/include \ | |
8341 | /usr/XFree86/include/X11 \ | |
8342 | \ | |
cf27ef00 | 8343 | X:/XFree86/include \ |
ec14dd32 VZ |
8344 | X:/XFree86/include/X11 \ |
8345 | \ | |
10f2d63a VZ |
8346 | /usr/include/gtk \ |
8347 | /usr/local/include/gtk \ | |
8348 | /usr/include/glib \ | |
8349 | /usr/local/include/glib \ | |
8350 | \ | |
8351 | /usr/include/qt \ | |
8352 | /usr/local/include/qt \ | |
8353 | \ | |
8354 | /usr/include/windows \ | |
8355 | /usr/include/wine \ | |
8356 | /usr/local/include/wine \ | |
8357 | \ | |
8358 | /usr/unsupported/include \ | |
8359 | /usr/athena/include \ | |
8360 | /usr/local/x11r5/include \ | |
8361 | /usr/lpp/Xamples/include \ | |
8362 | \ | |
10f2d63a | 8363 | /usr/openwin/share/include \ |
928b5c08 VZ |
8364 | \ |
8365 | /usr/include" | |
10f2d63a VZ |
8366 | |
8367 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
8368 | ||
698dcdb6 VZ |
8369 | |
8370 | cat > confcache <<\EOF | |
10f2d63a VZ |
8371 | # This file is a shell script that caches the results of configure |
8372 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
8373 | # scripts and configure runs. It is not useful on other systems. |
8374 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 8375 | # |
698dcdb6 VZ |
8376 | # By default, configure uses ./config.cache as the cache file, |
8377 | # creating it if it does not exist already. You can give configure | |
8378 | # the --cache-file=FILE option to use a different cache file; that is | |
8379 | # what configure does when it calls configure scripts in | |
8380 | # subdirectories, so they share the cache. | |
8381 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
8382 | # config.status only pays attention to the cache file if you give it the | |
8383 | # --recheck option to rerun configure. | |
10f2d63a | 8384 | # |
698dcdb6 | 8385 | EOF |
10f2d63a VZ |
8386 | # The following way of writing the cache mishandles newlines in values, |
8387 | # but we know of no workaround that is simple, portable, and efficient. | |
8388 | # So, don't put newlines in cache variables' values. | |
8389 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
8390 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
8391 | (set) 2>&1 | |
8392 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
8393 | *ac_space=\ *) | |
8394 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
8395 | # turns \\\\ into \\, and sed turns \\ into \). | |
8396 | sed -n \ | |
8397 | -e "s/'/'\\\\''/g" \ | |
8398 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
8399 | ;; | |
8400 | *) | |
8401 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
8402 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
8403 | ;; | |
8404 | esac >> confcache | |
8405 | if cmp -s $cache_file confcache; then | |
8406 | : | |
8407 | else | |
10f2d63a | 8408 | if test -w $cache_file; then |
698dcdb6 VZ |
8409 | echo "updating cache $cache_file" |
8410 | cat confcache > $cache_file | |
10f2d63a VZ |
8411 | else |
8412 | echo "not updating unwritable cache $cache_file" | |
8413 | fi | |
8414 | fi | |
8415 | rm -f confcache | |
8416 | ||
698dcdb6 VZ |
8417 | |
8418 | ||
dad6c0ea VZ |
8419 | AFMINSTALL= |
8420 | ||
10f2d63a | 8421 | if test "$wxUSE_GUI" = "yes"; then |
1e6feb95 | 8422 | USE_GUI=1 |
10f2d63a | 8423 | |
1e6feb95 VZ |
8424 | TOOLKIT= |
8425 | TOOLKIT_INCLUDE= | |
10f2d63a | 8426 | |
1e6feb95 VZ |
8427 | GUI_TK_LIBRARY= |
8428 | GUI_TK_LINK= | |
10f2d63a | 8429 | |
1e6feb95 VZ |
8430 | WXGTK12= |
8431 | WXGTK127= | |
8432 | WXGTK20= | |
10f2d63a | 8433 | |
1e6feb95 | 8434 | WXWINE= |
10f2d63a | 8435 | |
1e6feb95 VZ |
8436 | if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then |
8437 | if test "$cross_compiling" = "yes" ; then | |
8438 | echo "configure: warning: skipping windows.h check for cross-compilation" 1>&2 | |
8439 | else | |
8440 | echo $ac_n "checking for Windows headers""... $ac_c" 1>&6 | |
54276ccf | 8441 | echo "configure:8442: checking for Windows headers" >&5 |
1e6feb95 | 8442 | |
10f2d63a VZ |
8443 | ac_find_includes= |
8444 | for ac_dir in $SEARCH_INCLUDE; | |
8445 | do | |
8446 | if test -f "$ac_dir/windows.h"; then | |
8447 | ac_find_includes=$ac_dir | |
8448 | break | |
8449 | fi | |
8450 | done | |
8451 | ||
1e6feb95 VZ |
8452 | if test "$ac_find_includes" != "" ; then |
8453 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
8454 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes" | |
8455 | else | |
8456 | echo "$ac_t""no" 1>&6 | |
8457 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
8458 | fi | |
10f2d63a | 8459 | fi |
10f2d63a | 8460 | |
1e6feb95 VZ |
8461 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw" |
8462 | LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32" | |
f6bcfd97 | 8463 | |
1e6feb95 VZ |
8464 | if test "$wxUSE_ODBC" = "yes" ; then |
8465 | LIBS="$LIBS -lodbc32 -lole32 -loleaut32" | |
8466 | fi | |
10f2d63a | 8467 | |
1e6feb95 VZ |
8468 | if test "$wxUSE_MINGW" = 1; then |
8469 | LDFLAGS="$LDFLAGS -mwindows" | |
8470 | fi | |
32832908 | 8471 | |
1e6feb95 VZ |
8472 | TOOLKIT=MSW |
8473 | GUIDIST=MSW_DIST | |
32832908 | 8474 | |
1e6feb95 VZ |
8475 | RCINCSWITCH="--include-dir" |
8476 | RCDEFSWITCH="--define" | |
8477 | RCPREPROCESSOR="--preprocessor \"\$(CC) -c -E -xc-header -DRC_INVOKED\"" | |
8478 | RCINPUTSWITCH="-i" | |
8479 | RCOUTPUTSWITCH="-o" | |
8480 | RESFLAGS="$RCPREPROCESSOR $RCINCSWITCH \$(top_srcdir)/include $RCINCSWITCH \$(top_srcdir)/\$(program_dir) $RCDEFSWITCH __WIN32__ $RCDEFSWITCH __WIN95__ $RCDEFSWITCH __GNUWIN32__" | |
32832908 | 8481 | |
1e6feb95 VZ |
8482 | RESPROGRAM="\$(RES_PROGRAM)" |
8483 | fi | |
10f2d63a | 8484 | |
1e6feb95 | 8485 | if test "$wxUSE_GTK" = 1; then |
8168de4c | 8486 | echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6 |
54276ccf | 8487 | echo "configure:8488: checking for GTK+ version" >&5 |
8168de4c VZ |
8488 | |
8489 | gtk_version_cached=1 | |
8490 | if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then | |
8491 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8492 | else | |
8493 | ||
8494 | gtk_version_cached=0 | |
8495 | echo "$ac_t""""" 1>&6 | |
8496 | ||
8497 | wx_cv_lib_gtk= | |
8498 | if test "x$wxUSE_GTK2" = "xyes"; then | |
8499 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
6f72b082 OK |
8500 | if test "${with_gtk_prefix+set}" = set; then |
8501 | withval="$with_gtk_prefix" | |
8502 | gtk_config_prefix="$withval" | |
8503 | else | |
8504 | gtk_config_prefix="" | |
698dcdb6 | 8505 | fi |
6f72b082 OK |
8506 | |
8507 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
8508 | if test "${with_gtk_exec_prefix+set}" = set; then | |
8509 | withval="$with_gtk_exec_prefix" | |
8510 | gtk_config_exec_prefix="$withval" | |
8511 | else | |
8512 | gtk_config_exec_prefix="" | |
698dcdb6 VZ |
8513 | fi |
8514 | ||
6f72b082 OK |
8515 | # Check whether --enable-gtktest or --disable-gtktest was given. |
8516 | if test "${enable_gtktest+set}" = set; then | |
8517 | enableval="$enable_gtktest" | |
698dcdb6 | 8518 | : |
6f72b082 OK |
8519 | else |
8520 | enable_gtktest=yes | |
698dcdb6 VZ |
8521 | fi |
8522 | ||
6f72b082 | 8523 | |
8168de4c | 8524 | for module in . |
6f72b082 OK |
8525 | do |
8526 | case "$module" in | |
8168de4c | 8527 | gthread) |
6f72b082 OK |
8528 | gtk_config_args="$gtk_config_args gthread" |
8529 | ;; | |
8530 | esac | |
8531 | done | |
8532 | ||
8533 | if test x$gtk_config_exec_prefix != x ; then | |
8534 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
8535 | if test x${GTK_CONFIG_2_0+set} != xset ; then | |
8536 | GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0 | |
8537 | fi | |
8538 | fi | |
8539 | if test x$gtk_config_prefix != x ; then | |
8540 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
8541 | if test x${GTK_CONFIG_2_0+set} != xset ; then | |
8542 | GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0 | |
8543 | fi | |
8544 | fi | |
8545 | ||
8546 | # Extract the first word of "gtk-config-2.0", so it can be a program name with args. | |
8547 | set dummy gtk-config-2.0; ac_word=$2 | |
698dcdb6 | 8548 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
54276ccf | 8549 | echo "configure:8550: checking for $ac_word" >&5 |
698dcdb6 VZ |
8550 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then |
8551 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6f72b082 | 8552 | else |
698dcdb6 VZ |
8553 | case "$GTK_CONFIG_2_0" in |
8554 | /*) | |
6f72b082 OK |
8555 | ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path. |
8556 | ;; | |
698dcdb6 VZ |
8557 | ?:/*) |
8558 | ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path. | |
8559 | ;; | |
6f72b082 | 8560 | *) |
698dcdb6 VZ |
8561 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8562 | ac_dummy="$PATH" | |
8563 | for ac_dir in $ac_dummy; do | |
8564 | test -z "$ac_dir" && ac_dir=. | |
8565 | if test -f $ac_dir/$ac_word; then | |
8566 | ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word" | |
8567 | break | |
8568 | fi | |
8569 | done | |
8570 | IFS="$ac_save_ifs" | |
6f72b082 OK |
8571 | test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no" |
8572 | ;; | |
8573 | esac | |
8574 | fi | |
698dcdb6 | 8575 | GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0" |
6f72b082 | 8576 | if test -n "$GTK_CONFIG_2_0"; then |
698dcdb6 | 8577 | echo "$ac_t""$GTK_CONFIG_2_0" 1>&6 |
6f72b082 | 8578 | else |
698dcdb6 | 8579 | echo "$ac_t""no" 1>&6 |
6f72b082 OK |
8580 | fi |
8581 | ||
8582 | min_gtk_version=1.3.1 | |
698dcdb6 | 8583 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
54276ccf | 8584 | echo "configure:8585: checking for GTK - version >= $min_gtk_version" >&5 |
6f72b082 OK |
8585 | no_gtk="" |
8586 | if test "$GTK_CONFIG_2_0" = "no" ; then | |
8587 | no_gtk=yes | |
8588 | else | |
8589 | GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags` | |
8590 | GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs` | |
8591 | gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
8592 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
8593 | gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
8594 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
8595 | gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
8596 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
8597 | if test "x$enable_gtktest" = "xyes" ; then | |
8598 | ac_save_CFLAGS="$CFLAGS" | |
8599 | ac_save_LIBS="$LIBS" | |
8600 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
8601 | LIBS="$GTK_LIBS $LIBS" | |
8602 | rm -f conf.gtktest | |
8603 | if test "$cross_compiling" = yes; then | |
8604 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
8605 | else | |
698dcdb6 | 8606 | cat > conftest.$ac_ext <<EOF |
54276ccf | 8607 | #line 8608 "configure" |
6f72b082 OK |
8608 | #include "confdefs.h" |
8609 | ||
8610 | #include <gtk/gtk.h> | |
8611 | #include <stdio.h> | |
8612 | #include <stdlib.h> | |
8613 | ||
8168de4c | 8614 | int |
6f72b082 OK |
8615 | main () |
8616 | { | |
8617 | int major, minor, micro; | |
8618 | char *tmp_version; | |
8619 | ||
8620 | system ("touch conf.gtktest"); | |
8621 | ||
8622 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
8623 | tmp_version = g_strdup("$min_gtk_version"); | |
8624 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
8625 | printf("%s, bad version string\n", "$min_gtk_version"); | |
8626 | exit(1); | |
8627 | } | |
8628 | ||
8629 | if ((gtk_major_version != $gtk_config_major_version) || | |
8630 | (gtk_minor_version != $gtk_config_minor_version) || | |
8631 | (gtk_micro_version != $gtk_config_micro_version)) | |
8632 | { | |
8168de4c | 8633 | printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
6f72b082 OK |
8634 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
8635 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
8636 | printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n"); | |
8637 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
8638 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
8639 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
8640 | printf("*** required on your system.\n"); | |
8641 | printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n"); | |
8642 | printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n"); | |
8643 | printf("*** before re-running configure\n"); | |
8168de4c | 8644 | } |
6f72b082 OK |
8645 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
8646 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
8168de4c | 8647 | (gtk_minor_version != GTK_MINOR_VERSION) || |
6f72b082 OK |
8648 | (gtk_micro_version != GTK_MICRO_VERSION)) |
8649 | { | |
8650 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
8168de4c | 8651 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); |
6f72b082 | 8652 | printf("*** library (version %d.%d.%d)\n", |
8168de4c | 8653 | gtk_major_version, gtk_minor_version, gtk_micro_version); |
6f72b082 OK |
8654 | } |
8655 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
8656 | else | |
8657 | { | |
8658 | if ((gtk_major_version > major) || | |
8659 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
8660 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
8661 | { | |
8662 | return 0; | |
8663 | } | |
8664 | else | |
8665 | { | |
8666 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
8667 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
8668 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
8168de4c | 8669 | major, minor, micro); |
6f72b082 OK |
8670 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); |
8671 | printf("***\n"); | |
8672 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
8673 | printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n"); | |
8674 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
8675 | printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n"); | |
8676 | printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n"); | |
8677 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
8678 | printf("*** so that the correct libraries are found at run-time))\n"); | |
8679 | } | |
8680 | } | |
8681 | return 1; | |
8682 | } | |
8683 | ||
698dcdb6 | 8684 | EOF |
54276ccf | 8685 | if { (eval echo configure:8686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 8686 | then |
6f72b082 OK |
8687 | : |
8688 | else | |
698dcdb6 VZ |
8689 | echo "configure: failed program was:" >&5 |
8690 | cat conftest.$ac_ext >&5 | |
8691 | rm -fr conftest* | |
8692 | no_gtk=yes | |
6f72b082 | 8693 | fi |
698dcdb6 | 8694 | rm -fr conftest* |
6f72b082 | 8695 | fi |
698dcdb6 | 8696 | |
6f72b082 OK |
8697 | CFLAGS="$ac_save_CFLAGS" |
8698 | LIBS="$ac_save_LIBS" | |
8699 | fi | |
8700 | fi | |
8701 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 8702 | echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6 |
8168de4c | 8703 | wx_cv_lib_gtk=2.0 |
6f72b082 | 8704 | else |
698dcdb6 | 8705 | echo "$ac_t""no" 1>&6 |
6f72b082 OK |
8706 | if test "$GTK_CONFIG_2_0" = "no" ; then |
8707 | echo "*** The gtk-config-2.0 script installed by GTK could not be found" | |
8708 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
8709 | echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the" | |
8710 | echo "*** full path to gtk-config-2.0." | |
8711 | else | |
8712 | if test -f conf.gtktest ; then | |
8713 | : | |
8714 | else | |
8715 | echo "*** Could not run GTK test program, checking why..." | |
8716 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
8717 | LIBS="$LIBS $GTK_LIBS" | |
698dcdb6 | 8718 | cat > conftest.$ac_ext <<EOF |
54276ccf | 8719 | #line 8720 "configure" |
6f72b082 OK |
8720 | #include "confdefs.h" |
8721 | ||
8722 | #include <gtk/gtk.h> | |
8723 | #include <stdio.h> | |
8724 | ||
698dcdb6 VZ |
8725 | int main() { |
8726 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
8727 | ; return 0; } | |
8728 | EOF | |
54276ccf | 8729 | if { (eval echo configure:8730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 8730 | rm -rf conftest* |
6f72b082 OK |
8731 | echo "*** The test program compiled, but did not run. This usually means" |
8732 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
8733 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
8734 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
8735 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
8736 | echo "*** is required on your system" | |
8168de4c | 8737 | echo "***" |
6f72b082 OK |
8738 | echo "*** If you have an old version installed, it is best to remove it, although" |
8739 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
8740 | echo "***" | |
8741 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
8742 | echo "*** came with the system with the command" | |
8743 | echo "***" | |
698dcdb6 | 8744 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
6f72b082 | 8745 | else |
698dcdb6 VZ |
8746 | echo "configure: failed program was:" >&5 |
8747 | cat conftest.$ac_ext >&5 | |
8748 | rm -rf conftest* | |
8749 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
6f72b082 OK |
8750 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
8751 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
698dcdb6 | 8752 | echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0" |
6f72b082 | 8753 | fi |
698dcdb6 | 8754 | rm -f conftest* |
6f72b082 OK |
8755 | CFLAGS="$ac_save_CFLAGS" |
8756 | LIBS="$ac_save_LIBS" | |
8757 | fi | |
8758 | fi | |
8759 | GTK_CFLAGS="" | |
8760 | GTK_LIBS="" | |
8168de4c VZ |
8761 | gthread |
8762 | fi | |
8763 | ||
8764 | ||
8765 | rm -f conf.gtktest | |
8766 | ||
8767 | fi | |
8768 | ||
8769 | if test -z "$wx_cv_lib_gtk"; then | |
8770 | ||
10f2d63a VZ |
8771 | if test x$gtk_config_exec_prefix != x ; then |
8772 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
8773 | if test x${GTK_CONFIG+set} != xset ; then | |
8774 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
8775 | fi | |
8776 | fi | |
8777 | if test x$gtk_config_prefix != x ; then | |
8778 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
8779 | if test x${GTK_CONFIG+set} != xset ; then | |
8780 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
8781 | fi | |
8782 | fi | |
8783 | ||
8784 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
8785 | set dummy gtk-config; ac_word=$2 | |
698dcdb6 | 8786 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
54276ccf | 8787 | echo "configure:8788: checking for $ac_word" >&5 |
698dcdb6 VZ |
8788 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
8789 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 8790 | else |
698dcdb6 VZ |
8791 | case "$GTK_CONFIG" in |
8792 | /*) | |
f6bcfd97 BP |
8793 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
8794 | ;; | |
698dcdb6 VZ |
8795 | ?:/*) |
8796 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
8797 | ;; | |
f6bcfd97 | 8798 | *) |
698dcdb6 VZ |
8799 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8800 | ac_dummy="$PATH" | |
8801 | for ac_dir in $ac_dummy; do | |
8802 | test -z "$ac_dir" && ac_dir=. | |
8803 | if test -f $ac_dir/$ac_word; then | |
8804 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
8805 | break | |
8806 | fi | |
8807 | done | |
8808 | IFS="$ac_save_ifs" | |
f6bcfd97 BP |
8809 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
8810 | ;; | |
8811 | esac | |
8812 | fi | |
698dcdb6 | 8813 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
f6bcfd97 | 8814 | if test -n "$GTK_CONFIG"; then |
698dcdb6 | 8815 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
f6bcfd97 | 8816 | else |
698dcdb6 | 8817 | echo "$ac_t""no" 1>&6 |
f6bcfd97 BP |
8818 | fi |
8819 | ||
8820 | min_gtk_version=1.2.7 | |
698dcdb6 | 8821 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
54276ccf | 8822 | echo "configure:8823: checking for GTK - version >= $min_gtk_version" >&5 |
f6bcfd97 BP |
8823 | no_gtk="" |
8824 | if test "$GTK_CONFIG" != "no" ; then | |
8825 | GTK_CFLAGS=`$GTK_CONFIG --cflags` | |
8826 | GTK_LIBS=`$GTK_CONFIG --libs gthread` | |
8827 | ac_save_CFLAGS="$CFLAGS" | |
8828 | ac_save_LIBS="$LIBS" | |
8829 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
8830 | LIBS="$LIBS $GTK_LIBS" | |
8831 | if test "$cross_compiling" = yes; then | |
8832 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
8833 | else | |
698dcdb6 | 8834 | cat > conftest.$ac_ext <<EOF |
54276ccf | 8835 | #line 8836 "configure" |
f6bcfd97 BP |
8836 | #include "confdefs.h" |
8837 | ||
8838 | #include <gtk/gtk.h> | |
8839 | #include <gtk/gtkfeatures.h> | |
8840 | #include <stdio.h> | |
8841 | #include <stdlib.h> | |
8842 | ||
8843 | int | |
8844 | main () | |
8845 | { | |
8846 | int major, minor, micro; | |
8847 | ||
8848 | if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) { | |
8849 | printf("%s, bad version string\n", "$min_gtk_version"); | |
8850 | exit(1); | |
8851 | } | |
8852 | ||
8853 | if ((GTK_MAJOR_VERSION != gtk_major_version) || | |
8854 | (GTK_MINOR_VERSION != gtk_minor_version) || | |
8855 | (GTK_MICRO_VERSION != gtk_micro_version)) { | |
8856 | printf("Headers vs. library version mismatch!\n"); | |
8857 | exit(1); | |
8858 | } | |
8859 | ||
8860 | if (gtk_minor_version == 1) return FALSE; | |
8861 | ||
8862 | return !((gtk_major_version > major) || | |
8863 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
8864 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))); | |
8865 | } | |
8866 | ||
698dcdb6 | 8867 | EOF |
54276ccf | 8868 | if { (eval echo configure:8869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 8869 | then |
f6bcfd97 BP |
8870 | : |
8871 | else | |
698dcdb6 VZ |
8872 | echo "configure: failed program was:" >&5 |
8873 | cat conftest.$ac_ext >&5 | |
8874 | rm -fr conftest* | |
8875 | no_gtk=yes | |
f6bcfd97 | 8876 | fi |
698dcdb6 | 8877 | rm -fr conftest* |
f6bcfd97 | 8878 | fi |
698dcdb6 | 8879 | |
f6bcfd97 BP |
8880 | CFLAGS="$ac_save_CFLAGS" |
8881 | LIBS="$ac_save_LIBS" | |
8882 | else | |
8883 | no_gtk=yes | |
8884 | fi | |
8885 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 8886 | echo "$ac_t""yes" 1>&6 |
8168de4c | 8887 | wx_cv_lib_gtk=1.2.7 |
f6bcfd97 | 8888 | else |
698dcdb6 | 8889 | echo "$ac_t""no" 1>&6 |
f6bcfd97 BP |
8890 | GTK_CFLAGS="" |
8891 | GTK_LIBS="" | |
8892 | : | |
8893 | fi | |
698dcdb6 VZ |
8894 | |
8895 | ||
f6bcfd97 | 8896 | |
8168de4c VZ |
8897 | fi |
8898 | ||
8899 | if test -z "$wx_cv_lib_gtk"; then | |
8900 | ||
f6bcfd97 BP |
8901 | if test x$gtk_config_exec_prefix != x ; then |
8902 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
8903 | if test x${GTK_CONFIG+set} != xset ; then | |
8904 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
8905 | fi | |
8906 | fi | |
8907 | if test x$gtk_config_prefix != x ; then | |
8908 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
8909 | if test x${GTK_CONFIG+set} != xset ; then | |
8910 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
8911 | fi | |
8912 | fi | |
8913 | ||
8914 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
8915 | set dummy gtk-config; ac_word=$2 | |
698dcdb6 | 8916 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
54276ccf | 8917 | echo "configure:8918: checking for $ac_word" >&5 |
698dcdb6 VZ |
8918 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
8919 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 8920 | else |
698dcdb6 VZ |
8921 | case "$GTK_CONFIG" in |
8922 | /*) | |
10f2d63a VZ |
8923 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
8924 | ;; | |
698dcdb6 VZ |
8925 | ?:/*) |
8926 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
8927 | ;; | |
10f2d63a | 8928 | *) |
698dcdb6 VZ |
8929 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8930 | ac_dummy="$PATH" | |
8931 | for ac_dir in $ac_dummy; do | |
8932 | test -z "$ac_dir" && ac_dir=. | |
8933 | if test -f $ac_dir/$ac_word; then | |
8934 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
8935 | break | |
8936 | fi | |
8937 | done | |
8938 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8939 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
8940 | ;; | |
8941 | esac | |
8942 | fi | |
698dcdb6 | 8943 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
10f2d63a | 8944 | if test -n "$GTK_CONFIG"; then |
698dcdb6 | 8945 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
10f2d63a | 8946 | else |
698dcdb6 | 8947 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8948 | fi |
8949 | ||
04165bec | 8950 | min_gtk_version=1.2.3 |
698dcdb6 | 8951 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
54276ccf | 8952 | echo "configure:8953: checking for GTK - version >= $min_gtk_version" >&5 |
10f2d63a VZ |
8953 | no_gtk="" |
8954 | if test "$GTK_CONFIG" != "no" ; then | |
8955 | GTK_CFLAGS=`$GTK_CONFIG --cflags` | |
2224580a | 8956 | GTK_LIBS=`$GTK_CONFIG --libs gthread` |
10f2d63a VZ |
8957 | ac_save_CFLAGS="$CFLAGS" |
8958 | ac_save_LIBS="$LIBS" | |
8959 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
8960 | LIBS="$LIBS $GTK_LIBS" | |
8961 | if test "$cross_compiling" = yes; then | |
8962 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
8963 | else | |
698dcdb6 | 8964 | cat > conftest.$ac_ext <<EOF |
54276ccf | 8965 | #line 8966 "configure" |
10f2d63a VZ |
8966 | #include "confdefs.h" |
8967 | ||
8968 | #include <gtk/gtk.h> | |
f49f2b0c | 8969 | #include <gtk/gtkfeatures.h> |
10f2d63a | 8970 | #include <stdio.h> |
32832908 | 8971 | #include <stdlib.h> |
10f2d63a VZ |
8972 | |
8973 | int | |
8974 | main () | |
8975 | { | |
8976 | int major, minor, micro; | |
8977 | ||
8978 | if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) { | |
8979 | printf("%s, bad version string\n", "$min_gtk_version"); | |
8980 | exit(1); | |
8981 | } | |
8982 | ||
f49f2b0c RR |
8983 | if ((GTK_MAJOR_VERSION != gtk_major_version) || |
8984 | (GTK_MINOR_VERSION != gtk_minor_version) || | |
8985 | (GTK_MICRO_VERSION != gtk_micro_version)) { | |
8986 | printf("Headers vs. library version mismatch!\n"); | |
8987 | exit(1); | |
8988 | } | |
8989 | ||
10f2d63a VZ |
8990 | if (gtk_minor_version == 1) return FALSE; |
8991 | ||
8992 | return !((gtk_major_version > major) || | |
8993 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
8994 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))); | |
8995 | } | |
8996 | ||
698dcdb6 | 8997 | EOF |
54276ccf | 8998 | if { (eval echo configure:8999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 8999 | then |
10f2d63a VZ |
9000 | : |
9001 | else | |
698dcdb6 VZ |
9002 | echo "configure: failed program was:" >&5 |
9003 | cat conftest.$ac_ext >&5 | |
9004 | rm -fr conftest* | |
9005 | no_gtk=yes | |
10f2d63a | 9006 | fi |
698dcdb6 | 9007 | rm -fr conftest* |
10f2d63a | 9008 | fi |
698dcdb6 | 9009 | |
10f2d63a VZ |
9010 | CFLAGS="$ac_save_CFLAGS" |
9011 | LIBS="$ac_save_LIBS" | |
9012 | else | |
9013 | no_gtk=yes | |
9014 | fi | |
9015 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 9016 | echo "$ac_t""yes" 1>&6 |
8168de4c | 9017 | wx_cv_lib_gtk=1.2.3 |
10f2d63a | 9018 | else |
698dcdb6 | 9019 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9020 | GTK_CFLAGS="" |
9021 | GTK_LIBS="" | |
7e99ad86 | 9022 | : |
10f2d63a | 9023 | fi |
698dcdb6 VZ |
9024 | |
9025 | ||
10f2d63a | 9026 | |
8168de4c VZ |
9027 | fi |
9028 | ||
9029 | if test -z "$wx_cv_lib_gtk"; then | |
9030 | wx_cv_lib_gtk=none | |
138be253 VZ |
9031 | else |
9032 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
9033 | wx_cv_libs_gtk=$GTK_LIBS | |
8168de4c VZ |
9034 | fi |
9035 | ||
1e6feb95 | 9036 | |
8168de4c | 9037 | fi |
703e0a69 | 9038 | |
698dcdb6 | 9039 | |
8168de4c VZ |
9040 | if test "$gtk_version_cached" = 1; then |
9041 | echo "$ac_t""$wx_cv_lib_gtk" 1>&6 | |
1e6feb95 | 9042 | fi |
698dcdb6 | 9043 | |
8168de4c VZ |
9044 | case "$wx_cv_lib_gtk" in |
9045 | 2.0) WXGTK20=1 | |
9046 | ;; | |
9047 | 1.2.7) WXGTK127=1 | |
9048 | ;; | |
9049 | 1.2.3) WXGTK12=1 | |
9050 | ;; | |
9051 | *) { echo "configure: error: | |
9052 | Please check that gtk-config is in path, the directory | |
9053 | where GTK+ libraries are installed (returned by | |
9054 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
9055 | equivalent variable and GTK+ is version 1.2.3 or above. | |
9056 | " 1>&2; exit 1; } | |
9057 | ;; | |
9058 | esac | |
2224580a | 9059 | |
138be253 | 9060 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" |
11dfaa5f | 9061 | GUI_TK_LIBRARY="$wx_cv_libs_gtk" |
698dcdb6 | 9062 | |
1e6feb95 VZ |
9063 | AFMINSTALL=afminstall |
9064 | TOOLKIT=GTK | |
9065 | GUIDIST=GTK_DIST | |
7ec2881a | 9066 | |
1e6feb95 | 9067 | echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6 |
138be253 | 9068 | echo "configure:9069: checking for gdk_im_open in -lgdk" >&5 |
698dcdb6 VZ |
9069 | ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'` |
9070 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9071 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7ec2881a | 9072 | else |
698dcdb6 | 9073 | ac_save_LIBS="$LIBS" |
7ec2881a | 9074 | LIBS="-lgdk $LIBS" |
698dcdb6 | 9075 | cat > conftest.$ac_ext <<EOF |
138be253 | 9076 | #line 9077 "configure" |
7ec2881a RR |
9077 | #include "confdefs.h" |
9078 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9079 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9080 | builtin and then its argument prototype would still apply. */ |
9081 | char gdk_im_open(); | |
9082 | ||
9083 | int main() { | |
9084 | gdk_im_open() | |
9085 | ; return 0; } | |
9086 | EOF | |
138be253 | 9087 | if { (eval echo configure:9088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9088 | rm -rf conftest* |
9089 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9090 | else | |
9091 | echo "configure: failed program was:" >&5 | |
9092 | cat conftest.$ac_ext >&5 | |
9093 | rm -rf conftest* | |
9094 | eval "ac_cv_lib_$ac_lib_var=no" | |
9095 | fi | |
9096 | rm -f conftest* | |
9097 | LIBS="$ac_save_LIBS" | |
9098 | ||
9099 | fi | |
9100 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9101 | echo "$ac_t""yes" 1>&6 | |
9102 | cat >> confdefs.h <<\EOF | |
7ec2881a RR |
9103 | #define HAVE_XIM 1 |
9104 | EOF | |
9105 | ||
698dcdb6 VZ |
9106 | else |
9107 | echo "$ac_t""no" 1>&6 | |
7ec2881a RR |
9108 | fi |
9109 | ||
1e6feb95 | 9110 | fi |
10f2d63a | 9111 | |
1e6feb95 VZ |
9112 | if test "$wxUSE_MGL" = 1; then |
9113 | ||
9114 | echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6 | |
138be253 | 9115 | echo "configure:9116: checking for SciTech MGL library" >&5 |
1e6feb95 VZ |
9116 | if test "x$MGL_ROOT" = x ; then |
9117 | echo "$ac_t""not found" 1>&6 | |
9118 | { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; } | |
9119 | else | |
9120 | echo "$ac_t""$MGL_ROOT" 1>&6 | |
9121 | fi | |
9122 | ||
9123 | MGL_OS=linux/gcc/glibc | |
9124 | MGL_LIB_TYPE="" | |
9125 | ||
9126 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
9127 | if test -f $MGL_ROOT/lib/debug/$MGL_OS/libmgl.a ; then | |
9128 | MGL_LIB_TYPE=debug | |
9129 | fi | |
9130 | fi | |
9131 | if test "x$MGL_LIB_TYPE" = x ; then | |
9132 | if test -f $MGL_ROOT/lib/release/$MGL_OS/libmgl.a ; then | |
9133 | MGL_LIB_TYPE=release | |
9134 | else | |
9135 | { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; } | |
9136 | fi | |
9137 | fi | |
9138 | ||
9139 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" | |
9140 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$MGL_LIB_TYPE/$MGL_OS -lmgl -lmglcpp -lpm" | |
9141 | ||
9142 | AFMINSTALL=afminstall | |
9143 | TOOLKIT=MGL | |
9144 | GUIDIST=MGL_DIST | |
9145 | fi | |
9146 | ||
9147 | if test "$wxUSE_WINE" = 1; then | |
9148 | echo $ac_n "checking for WINE includes""... $ac_c" 1>&6 | |
138be253 | 9149 | echo "configure:9150: checking for WINE includes" >&5 |
1e6feb95 | 9150 | |
10f2d63a VZ |
9151 | ac_find_includes= |
9152 | for ac_dir in $SEARCH_INCLUDE; | |
9153 | do | |
9154 | if test -f "$ac_dir/windows.h"; then | |
9155 | ac_find_includes=$ac_dir | |
9156 | break | |
9157 | fi | |
9158 | done | |
9159 | ||
1e6feb95 VZ |
9160 | if test "$ac_find_includes" != "" ; then |
9161 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
9162 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes" | |
9163 | else | |
9164 | echo "$ac_t""no" 1>&6 | |
9165 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
9166 | fi | |
10f2d63a | 9167 | |
1e6feb95 VZ |
9168 | XPM_LINK="" |
9169 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
138be253 | 9170 | echo "configure:9171: checking for Xpm library" >&5 |
1e6feb95 | 9171 | |
10f2d63a VZ |
9172 | ac_find_libraries= |
9173 | for ac_dir in $SEARCH_LIB; | |
9174 | do | |
9175 | for ac_extension in a so sl; do | |
9176 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
9177 | ac_find_libraries=$ac_dir | |
9178 | break 2 | |
9179 | fi | |
9180 | done | |
9181 | done | |
9182 | ||
1e6feb95 VZ |
9183 | if test "$ac_find_libraries" != "" ; then |
9184 | GUI_TK_LIBRARY="-L$ac_find_libraries" | |
9185 | XPM_LINK="-lXpm" | |
9186 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
9187 | #define wxHAVE_LIB_XPM 1 |
9188 | EOF | |
9189 | ||
1e6feb95 VZ |
9190 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
9191 | else | |
9192 | echo "$ac_t""no" 1>&6 | |
9193 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
9194 | fi | |
10f2d63a | 9195 | |
1e6feb95 VZ |
9196 | MESA_LINK="" |
9197 | echo $ac_n "checking for Mesa library""... $ac_c" 1>&6 | |
138be253 | 9198 | echo "configure:9199: checking for Mesa library" >&5 |
1e6feb95 | 9199 | |
10f2d63a VZ |
9200 | ac_find_libraries= |
9201 | for ac_dir in $SEARCH_LIB; | |
9202 | do | |
9203 | for ac_extension in a so sl; do | |
9204 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
9205 | ac_find_libraries=$ac_dir | |
9206 | break 2 | |
9207 | fi | |
9208 | done | |
9209 | done | |
9210 | ||
1e6feb95 VZ |
9211 | if test "$ac_find_libraries" != "" ; then |
9212 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries" | |
9213 | MESA_LINK="-lMesaGL" | |
9214 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
9215 | else | |
9216 | { echo "configure: error: no" 1>&2; exit 1; } | |
9217 | fi | |
10f2d63a | 9218 | |
1e6feb95 VZ |
9219 | GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses" |
9220 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK" | |
9221 | WXWINE=1 | |
9222 | TOOLKIT=MSW | |
9223 | GUIDIST=MSW_DIST | |
9224 | fi | |
698dcdb6 | 9225 | |
1e6feb95 VZ |
9226 | |
9227 | # If we find X, set shell vars x_includes and x_libraries to the | |
698dcdb6 VZ |
9228 | # paths, otherwise set no_x=yes. |
9229 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
9230 | # --without-x overrides everything else, but does not touch the cache. | |
9231 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
138be253 | 9232 | echo "configure:9233: checking for X" >&5 |
ab9b9eab VZ |
9233 | |
9234 | # Check whether --with-x or --without-x was given. | |
9235 | if test "${with_x+set}" = set; then | |
9236 | withval="$with_x" | |
698dcdb6 VZ |
9237 | : |
9238 | fi | |
ba337fe7 | 9239 | |
ab9b9eab VZ |
9240 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
9241 | if test "x$with_x" = xno; then | |
9242 | # The user explicitly disabled X. | |
9243 | have_x=disabled | |
9244 | else | |
9245 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
9246 | # Both variables are already set. | |
9247 | have_x=yes | |
9248 | else | |
698dcdb6 VZ |
9249 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then |
9250 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab VZ |
9251 | else |
9252 | # One or both of the vars are not set, and there is no cached value. | |
698dcdb6 VZ |
9253 | ac_x_includes=NO ac_x_libraries=NO |
9254 | rm -fr conftestdir | |
9255 | if mkdir conftestdir; then | |
9256 | cd conftestdir | |
ab9b9eab | 9257 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
698dcdb6 | 9258 | cat > Imakefile <<'EOF' |
ab9b9eab VZ |
9259 | acfindx: |
9260 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
9261 | EOF | |
9262 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
9263 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
9264 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
9265 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
10f2d63a | 9266 | for ac_extension in a so sl; do |
ab9b9eab | 9267 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
698dcdb6 | 9268 | test -f $ac_im_libdir/libX11.$ac_extension; then |
ab9b9eab | 9269 | ac_im_usrlibdir=$ac_im_libdir; break |
10f2d63a VZ |
9270 | fi |
9271 | done | |
ab9b9eab VZ |
9272 | # Screen out bogus values from the imake configuration. They are |
9273 | # bogus both because they are the default anyway, and because | |
9274 | # using them would break gcc on systems where it needs fixed includes. | |
698dcdb6 | 9275 | case "$ac_im_incroot" in |
ab9b9eab | 9276 | /usr/include) ;; |
698dcdb6 | 9277 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; |
ab9b9eab | 9278 | esac |
698dcdb6 | 9279 | case "$ac_im_usrlibdir" in |
ab9b9eab | 9280 | /usr/lib | /lib) ;; |
698dcdb6 | 9281 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; |
ab9b9eab | 9282 | esac |
ba337fe7 | 9283 | fi |
ab9b9eab | 9284 | cd .. |
698dcdb6 | 9285 | rm -fr conftestdir |
ab9b9eab | 9286 | fi |
10f2d63a | 9287 | |
698dcdb6 VZ |
9288 | if test "$ac_x_includes" = NO; then |
9289 | # Guess where to find include files, by looking for this one X11 .h file. | |
9290 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
9291 | ||
ab9b9eab | 9292 | # First, try using that file with no special directory specified. |
698dcdb6 | 9293 | cat > conftest.$ac_ext <<EOF |
138be253 | 9294 | #line 9295 "configure" |
ab9b9eab | 9295 | #include "confdefs.h" |
698dcdb6 VZ |
9296 | #include <$x_direct_test_include> |
9297 | EOF | |
9298 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
138be253 | 9299 | { (eval echo configure:9300: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
9300 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9301 | if test -z "$ac_err"; then | |
9302 | rm -rf conftest* | |
ab9b9eab VZ |
9303 | # We can compile using X headers with no special include directory. |
9304 | ac_x_includes= | |
9305 | else | |
698dcdb6 VZ |
9306 | echo "$ac_err" >&5 |
9307 | echo "configure: failed program was:" >&5 | |
ab9b9eab | 9308 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
9309 | rm -rf conftest* |
9310 | # Look for the header file in a standard set of common directories. | |
9311 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
9312 | for ac_dir in \ | |
9313 | /usr/X11/include \ | |
9314 | /usr/X11R6/include \ | |
9315 | /usr/X11R5/include \ | |
9316 | /usr/X11R4/include \ | |
9317 | \ | |
9318 | /usr/include/X11 \ | |
9319 | /usr/include/X11R6 \ | |
9320 | /usr/include/X11R5 \ | |
9321 | /usr/include/X11R4 \ | |
9322 | \ | |
9323 | /usr/local/X11/include \ | |
9324 | /usr/local/X11R6/include \ | |
9325 | /usr/local/X11R5/include \ | |
9326 | /usr/local/X11R4/include \ | |
9327 | \ | |
9328 | /usr/local/include/X11 \ | |
9329 | /usr/local/include/X11R6 \ | |
9330 | /usr/local/include/X11R5 \ | |
9331 | /usr/local/include/X11R4 \ | |
9332 | \ | |
9333 | /usr/X386/include \ | |
9334 | /usr/x386/include \ | |
9335 | /usr/XFree86/include/X11 \ | |
9336 | \ | |
9337 | /usr/include \ | |
9338 | /usr/local/include \ | |
9339 | /usr/unsupported/include \ | |
9340 | /usr/athena/include \ | |
9341 | /usr/local/x11r5/include \ | |
9342 | /usr/lpp/Xamples/include \ | |
9343 | \ | |
9344 | /usr/openwin/include \ | |
9345 | /usr/openwin/share/include \ | |
9346 | ; \ | |
9347 | do | |
9348 | if test -r "$ac_dir/$x_direct_test_include"; then | |
9349 | ac_x_includes=$ac_dir | |
9350 | break | |
9351 | fi | |
9352 | done | |
ab9b9eab | 9353 | fi |
698dcdb6 VZ |
9354 | rm -f conftest* |
9355 | fi # $ac_x_includes = NO | |
10f2d63a | 9356 | |
698dcdb6 | 9357 | if test "$ac_x_libraries" = NO; then |
ab9b9eab | 9358 | # Check for the libraries. |
698dcdb6 VZ |
9359 | |
9360 | test -z "$x_direct_test_library" && x_direct_test_library=Xt | |
9361 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
9362 | ||
ab9b9eab VZ |
9363 | # See if we find them without any special options. |
9364 | # Don't add to $LIBS permanently. | |
698dcdb6 VZ |
9365 | ac_save_LIBS="$LIBS" |
9366 | LIBS="-l$x_direct_test_library $LIBS" | |
9367 | cat > conftest.$ac_ext <<EOF | |
138be253 | 9368 | #line 9369 "configure" |
ab9b9eab | 9369 | #include "confdefs.h" |
698dcdb6 VZ |
9370 | |
9371 | int main() { | |
9372 | ${x_direct_test_function}() | |
9373 | ; return 0; } | |
9374 | EOF | |
138be253 | 9375 | if { (eval echo configure:9376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9376 | rm -rf conftest* |
9377 | LIBS="$ac_save_LIBS" | |
ab9b9eab VZ |
9378 | # We can link X programs with no special library path. |
9379 | ac_x_libraries= | |
9380 | else | |
698dcdb6 VZ |
9381 | echo "configure: failed program was:" >&5 |
9382 | cat conftest.$ac_ext >&5 | |
9383 | rm -rf conftest* | |
9384 | LIBS="$ac_save_LIBS" | |
9385 | # First see if replacing the include by lib works. | |
9386 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
9387 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
9388 | /usr/X11/lib \ | |
9389 | /usr/X11R6/lib \ | |
9390 | /usr/X11R5/lib \ | |
9391 | /usr/X11R4/lib \ | |
9392 | \ | |
9393 | /usr/lib/X11 \ | |
9394 | /usr/lib/X11R6 \ | |
9395 | /usr/lib/X11R5 \ | |
9396 | /usr/lib/X11R4 \ | |
9397 | \ | |
9398 | /usr/local/X11/lib \ | |
9399 | /usr/local/X11R6/lib \ | |
9400 | /usr/local/X11R5/lib \ | |
9401 | /usr/local/X11R4/lib \ | |
9402 | \ | |
9403 | /usr/local/lib/X11 \ | |
9404 | /usr/local/lib/X11R6 \ | |
9405 | /usr/local/lib/X11R5 \ | |
9406 | /usr/local/lib/X11R4 \ | |
9407 | \ | |
9408 | /usr/X386/lib \ | |
9409 | /usr/x386/lib \ | |
9410 | /usr/XFree86/lib/X11 \ | |
9411 | \ | |
9412 | /usr/lib \ | |
9413 | /usr/local/lib \ | |
9414 | /usr/unsupported/lib \ | |
9415 | /usr/athena/lib \ | |
9416 | /usr/local/x11r5/lib \ | |
9417 | /usr/lpp/Xamples/lib \ | |
9418 | /lib/usr/lib/X11 \ | |
9419 | \ | |
9420 | /usr/openwin/lib \ | |
9421 | /usr/openwin/share/lib \ | |
9422 | ; \ | |
ab9b9eab VZ |
9423 | do |
9424 | for ac_extension in a so sl; do | |
698dcdb6 | 9425 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then |
ab9b9eab VZ |
9426 | ac_x_libraries=$ac_dir |
9427 | break 2 | |
10f2d63a | 9428 | fi |
10f2d63a | 9429 | done |
ab9b9eab VZ |
9430 | done |
9431 | fi | |
698dcdb6 VZ |
9432 | rm -f conftest* |
9433 | fi # $ac_x_libraries = NO | |
10f2d63a | 9434 | |
698dcdb6 | 9435 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
ab9b9eab VZ |
9436 | # Didn't find X anywhere. Cache the known absence of X. |
9437 | ac_cv_have_x="have_x=no" | |
9438 | else | |
9439 | # Record where we found X for the cache. | |
9440 | ac_cv_have_x="have_x=yes \ | |
9441 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
9442 | fi | |
9443 | fi | |
10f2d63a | 9444 | fi |
ab9b9eab VZ |
9445 | eval "$ac_cv_have_x" |
9446 | fi # $with_x != no | |
10f2d63a | 9447 | |
ab9b9eab | 9448 | if test "$have_x" != yes; then |
698dcdb6 | 9449 | echo "$ac_t""$have_x" 1>&6 |
ab9b9eab VZ |
9450 | no_x=yes |
9451 | else | |
9452 | # If each of the values was on the command line, it overrides each guess. | |
9453 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
9454 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
9455 | # Update the cache value to reflect the command line values. | |
9456 | ac_cv_have_x="have_x=yes \ | |
9457 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
698dcdb6 | 9458 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 |
ab9b9eab | 9459 | fi |
10f2d63a | 9460 | |
ab9b9eab VZ |
9461 | if test "$no_x" = yes; then |
9462 | # Not all programs may use this symbol, but it does not hurt to define it. | |
698dcdb6 | 9463 | cat >> confdefs.h <<\EOF |
ab9b9eab VZ |
9464 | #define X_DISPLAY_MISSING 1 |
9465 | EOF | |
10f2d63a | 9466 | |
ab9b9eab VZ |
9467 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
9468 | else | |
9469 | if test -n "$x_includes"; then | |
9470 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
10f2d63a VZ |
9471 | fi |
9472 | ||
ab9b9eab VZ |
9473 | # It would also be nice to do this for all -L options, not just this one. |
9474 | if test -n "$x_libraries"; then | |
9475 | X_LIBS="$X_LIBS -L$x_libraries" | |
9476 | # For Solaris; some versions of Sun CC require a space after -R and | |
9477 | # others require no space. Words are not sufficient . . . . | |
698dcdb6 | 9478 | case "`(uname -sr) 2>/dev/null`" in |
ab9b9eab | 9479 | "SunOS 5"*) |
698dcdb6 | 9480 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 |
138be253 | 9481 | echo "configure:9482: checking whether -R must be followed by a space" >&5 |
698dcdb6 VZ |
9482 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
9483 | cat > conftest.$ac_ext <<EOF | |
138be253 | 9484 | #line 9485 "configure" |
ab9b9eab | 9485 | #include "confdefs.h" |
10f2d63a | 9486 | |
698dcdb6 | 9487 | int main() { |
788deba1 | 9488 | |
698dcdb6 VZ |
9489 | ; return 0; } |
9490 | EOF | |
138be253 | 9491 | if { (eval echo configure:9492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 9492 | rm -rf conftest* |
ab9b9eab VZ |
9493 | ac_R_nospace=yes |
9494 | else | |
698dcdb6 VZ |
9495 | echo "configure: failed program was:" >&5 |
9496 | cat conftest.$ac_ext >&5 | |
9497 | rm -rf conftest* | |
9498 | ac_R_nospace=no | |
ab9b9eab | 9499 | fi |
698dcdb6 | 9500 | rm -f conftest* |
ab9b9eab | 9501 | if test $ac_R_nospace = yes; then |
698dcdb6 | 9502 | echo "$ac_t""no" 1>&6 |
ab9b9eab VZ |
9503 | X_LIBS="$X_LIBS -R$x_libraries" |
9504 | else | |
9505 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
698dcdb6 | 9506 | cat > conftest.$ac_ext <<EOF |
138be253 | 9507 | #line 9508 "configure" |
ab9b9eab | 9508 | #include "confdefs.h" |
788deba1 | 9509 | |
698dcdb6 | 9510 | int main() { |
ab9b9eab | 9511 | |
698dcdb6 VZ |
9512 | ; return 0; } |
9513 | EOF | |
138be253 | 9514 | if { (eval echo configure:9515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 9515 | rm -rf conftest* |
ab9b9eab VZ |
9516 | ac_R_space=yes |
9517 | else | |
698dcdb6 VZ |
9518 | echo "configure: failed program was:" >&5 |
9519 | cat conftest.$ac_ext >&5 | |
9520 | rm -rf conftest* | |
9521 | ac_R_space=no | |
ab9b9eab | 9522 | fi |
698dcdb6 | 9523 | rm -f conftest* |
ab9b9eab | 9524 | if test $ac_R_space = yes; then |
698dcdb6 | 9525 | echo "$ac_t""yes" 1>&6 |
ab9b9eab VZ |
9526 | X_LIBS="$X_LIBS -R $x_libraries" |
9527 | else | |
698dcdb6 | 9528 | echo "$ac_t""neither works" 1>&6 |
ab9b9eab VZ |
9529 | fi |
9530 | fi | |
698dcdb6 | 9531 | LIBS="$ac_xsave_LIBS" |
ab9b9eab VZ |
9532 | esac |
9533 | fi | |
9534 | ||
9535 | # Check for system-dependent libraries X programs must link with. | |
9536 | # Do this before checking for the system-independent R6 libraries | |
9537 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
9538 | ||
9539 | if test "$ISC" = yes; then | |
9540 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
9541 | else | |
698dcdb6 VZ |
9542 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X |
9543 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
ab9b9eab | 9544 | # the Alpha needs dnet_stub (dnet does not exist). |
698dcdb6 | 9545 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
138be253 | 9546 | echo "configure:9547: checking for dnet_ntoa in -ldnet" >&5 |
698dcdb6 VZ |
9547 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
9548 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9549 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 9550 | else |
698dcdb6 | 9551 | ac_save_LIBS="$LIBS" |
ab9b9eab | 9552 | LIBS="-ldnet $LIBS" |
698dcdb6 | 9553 | cat > conftest.$ac_ext <<EOF |
138be253 | 9554 | #line 9555 "configure" |
ab9b9eab VZ |
9555 | #include "confdefs.h" |
9556 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9557 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9558 | builtin and then its argument prototype would still apply. */ |
9559 | char dnet_ntoa(); | |
9560 | ||
9561 | int main() { | |
9562 | dnet_ntoa() | |
9563 | ; return 0; } | |
9564 | EOF | |
138be253 | 9565 | if { (eval echo configure:9566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9566 | rm -rf conftest* |
9567 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9568 | else | |
9569 | echo "configure: failed program was:" >&5 | |
9570 | cat conftest.$ac_ext >&5 | |
9571 | rm -rf conftest* | |
9572 | eval "ac_cv_lib_$ac_lib_var=no" | |
9573 | fi | |
9574 | rm -f conftest* | |
9575 | LIBS="$ac_save_LIBS" | |
9576 | ||
9577 | fi | |
9578 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9579 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 9580 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
698dcdb6 VZ |
9581 | else |
9582 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
9583 | fi |
9584 | ||
9585 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
698dcdb6 | 9586 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
138be253 | 9587 | echo "configure:9588: checking for dnet_ntoa in -ldnet_stub" >&5 |
698dcdb6 VZ |
9588 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
9589 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9590 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 9591 | else |
698dcdb6 | 9592 | ac_save_LIBS="$LIBS" |
ab9b9eab | 9593 | LIBS="-ldnet_stub $LIBS" |
698dcdb6 | 9594 | cat > conftest.$ac_ext <<EOF |
138be253 | 9595 | #line 9596 "configure" |
ab9b9eab VZ |
9596 | #include "confdefs.h" |
9597 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9598 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9599 | builtin and then its argument prototype would still apply. */ |
9600 | char dnet_ntoa(); | |
9601 | ||
9602 | int main() { | |
9603 | dnet_ntoa() | |
9604 | ; return 0; } | |
9605 | EOF | |
138be253 | 9606 | if { (eval echo configure:9607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9607 | rm -rf conftest* |
9608 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9609 | else | |
9610 | echo "configure: failed program was:" >&5 | |
9611 | cat conftest.$ac_ext >&5 | |
9612 | rm -rf conftest* | |
9613 | eval "ac_cv_lib_$ac_lib_var=no" | |
9614 | fi | |
9615 | rm -f conftest* | |
9616 | LIBS="$ac_save_LIBS" | |
9617 | ||
9618 | fi | |
9619 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9620 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 9621 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
698dcdb6 VZ |
9622 | else |
9623 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
9624 | fi |
9625 | ||
9626 | fi | |
9627 | ||
9628 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
9629 | # to get the SysV transport functions. | |
698dcdb6 | 9630 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
ab9b9eab VZ |
9631 | # needs -lnsl. |
9632 | # The nsl library prevents programs from opening the X display | |
698dcdb6 VZ |
9633 | # on Irix 5.2, according to dickey@clark.net. |
9634 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
138be253 | 9635 | echo "configure:9636: checking for gethostbyname" >&5 |
698dcdb6 VZ |
9636 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
9637 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9638 | else | |
9639 | cat > conftest.$ac_ext <<EOF | |
138be253 | 9640 | #line 9641 "configure" |
ab9b9eab VZ |
9641 | #include "confdefs.h" |
9642 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 9643 | which can conflict with char gethostbyname(); below. */ |
ab9b9eab VZ |
9644 | #include <assert.h> |
9645 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9646 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9647 | builtin and then its argument prototype would still apply. */ |
9648 | char gethostbyname(); | |
9649 | ||
9650 | int main() { | |
ab9b9eab VZ |
9651 | |
9652 | /* The GNU C library defines this for functions which it implements | |
9653 | to always fail with ENOSYS. Some functions are actually named | |
9654 | something starting with __ and the normal name is an alias. */ | |
9655 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
9656 | choke me | |
9657 | #else | |
698dcdb6 | 9658 | gethostbyname(); |
ab9b9eab VZ |
9659 | #endif |
9660 | ||
698dcdb6 VZ |
9661 | ; return 0; } |
9662 | EOF | |
138be253 | 9663 | if { (eval echo configure:9664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9664 | rm -rf conftest* |
9665 | eval "ac_cv_func_gethostbyname=yes" | |
9666 | else | |
9667 | echo "configure: failed program was:" >&5 | |
9668 | cat conftest.$ac_ext >&5 | |
9669 | rm -rf conftest* | |
9670 | eval "ac_cv_func_gethostbyname=no" | |
9671 | fi | |
9672 | rm -f conftest* | |
9673 | fi | |
9674 | ||
9675 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
9676 | echo "$ac_t""yes" 1>&6 | |
9677 | : | |
9678 | else | |
9679 | echo "$ac_t""no" 1>&6 | |
9680 | fi | |
ab9b9eab VZ |
9681 | |
9682 | if test $ac_cv_func_gethostbyname = no; then | |
698dcdb6 | 9683 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
138be253 | 9684 | echo "configure:9685: checking for gethostbyname in -lnsl" >&5 |
698dcdb6 VZ |
9685 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
9686 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9687 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 9688 | else |
698dcdb6 | 9689 | ac_save_LIBS="$LIBS" |
ab9b9eab | 9690 | LIBS="-lnsl $LIBS" |
698dcdb6 | 9691 | cat > conftest.$ac_ext <<EOF |
138be253 | 9692 | #line 9693 "configure" |
ab9b9eab VZ |
9693 | #include "confdefs.h" |
9694 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9695 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9696 | builtin and then its argument prototype would still apply. */ |
9697 | char gethostbyname(); | |
6232543b | 9698 | |
698dcdb6 VZ |
9699 | int main() { |
9700 | gethostbyname() | |
9701 | ; return 0; } | |
9702 | EOF | |
138be253 | 9703 | if { (eval echo configure:9704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9704 | rm -rf conftest* |
9705 | eval "ac_cv_lib_$ac_lib_var=yes" | |
703e0a69 | 9706 | else |
698dcdb6 VZ |
9707 | echo "configure: failed program was:" >&5 |
9708 | cat conftest.$ac_ext >&5 | |
9709 | rm -rf conftest* | |
9710 | eval "ac_cv_lib_$ac_lib_var=no" | |
9711 | fi | |
9712 | rm -f conftest* | |
9713 | LIBS="$ac_save_LIBS" | |
1e487827 | 9714 | |
698dcdb6 VZ |
9715 | fi |
9716 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9717 | echo "$ac_t""yes" 1>&6 | |
9718 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
9719 | else | |
9720 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
9721 | fi |
9722 | ||
9723 | fi | |
9724 | ||
9725 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
9726 | # socket/setsockopt and other routines are undefined under SCO ODT | |
9727 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
698dcdb6 VZ |
9728 | # on later versions), says simon@lia.di.epfl.ch: it contains |
9729 | # gethostby* variants that don't use the nameserver (or something). | |
9730 | # -lsocket must be given before -lnsl if both are needed. | |
9731 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
9732 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
138be253 | 9733 | echo "configure:9734: checking for connect" >&5 |
698dcdb6 VZ |
9734 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
9735 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9736 | else | |
9737 | cat > conftest.$ac_ext <<EOF | |
138be253 | 9738 | #line 9739 "configure" |
ab9b9eab VZ |
9739 | #include "confdefs.h" |
9740 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 9741 | which can conflict with char connect(); below. */ |
ab9b9eab VZ |
9742 | #include <assert.h> |
9743 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9744 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9745 | builtin and then its argument prototype would still apply. */ |
9746 | char connect(); | |
9747 | ||
9748 | int main() { | |
ab9b9eab VZ |
9749 | |
9750 | /* The GNU C library defines this for functions which it implements | |
9751 | to always fail with ENOSYS. Some functions are actually named | |
9752 | something starting with __ and the normal name is an alias. */ | |
9753 | #if defined (__stub_connect) || defined (__stub___connect) | |
9754 | choke me | |
9755 | #else | |
698dcdb6 | 9756 | connect(); |
ab9b9eab VZ |
9757 | #endif |
9758 | ||
698dcdb6 VZ |
9759 | ; return 0; } |
9760 | EOF | |
138be253 | 9761 | if { (eval echo configure:9762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9762 | rm -rf conftest* |
9763 | eval "ac_cv_func_connect=yes" | |
9764 | else | |
9765 | echo "configure: failed program was:" >&5 | |
9766 | cat conftest.$ac_ext >&5 | |
9767 | rm -rf conftest* | |
9768 | eval "ac_cv_func_connect=no" | |
9769 | fi | |
9770 | rm -f conftest* | |
9771 | fi | |
9772 | ||
9773 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
9774 | echo "$ac_t""yes" 1>&6 | |
9775 | : | |
9776 | else | |
9777 | echo "$ac_t""no" 1>&6 | |
9778 | fi | |
ab9b9eab VZ |
9779 | |
9780 | if test $ac_cv_func_connect = no; then | |
698dcdb6 | 9781 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
138be253 | 9782 | echo "configure:9783: checking for connect in -lsocket" >&5 |
698dcdb6 VZ |
9783 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
9784 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9785 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 9786 | else |
698dcdb6 | 9787 | ac_save_LIBS="$LIBS" |
ab9b9eab | 9788 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
698dcdb6 | 9789 | cat > conftest.$ac_ext <<EOF |
138be253 | 9790 | #line 9791 "configure" |
ab9b9eab VZ |
9791 | #include "confdefs.h" |
9792 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9793 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9794 | builtin and then its argument prototype would still apply. */ |
9795 | char connect(); | |
9796 | ||
9797 | int main() { | |
9798 | connect() | |
9799 | ; return 0; } | |
9800 | EOF | |
138be253 | 9801 | if { (eval echo configure:9802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9802 | rm -rf conftest* |
9803 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9804 | else | |
9805 | echo "configure: failed program was:" >&5 | |
9806 | cat conftest.$ac_ext >&5 | |
9807 | rm -rf conftest* | |
9808 | eval "ac_cv_lib_$ac_lib_var=no" | |
9809 | fi | |
9810 | rm -f conftest* | |
9811 | LIBS="$ac_save_LIBS" | |
9812 | ||
9813 | fi | |
9814 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9815 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 9816 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
698dcdb6 VZ |
9817 | else |
9818 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
9819 | fi |
9820 | ||
9821 | fi | |
9822 | ||
698dcdb6 VZ |
9823 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
9824 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
138be253 | 9825 | echo "configure:9826: checking for remove" >&5 |
698dcdb6 VZ |
9826 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
9827 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 9828 | else |
698dcdb6 | 9829 | cat > conftest.$ac_ext <<EOF |
138be253 | 9830 | #line 9831 "configure" |
ab9b9eab VZ |
9831 | #include "confdefs.h" |
9832 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 9833 | which can conflict with char remove(); below. */ |
ab9b9eab VZ |
9834 | #include <assert.h> |
9835 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9836 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9837 | builtin and then its argument prototype would still apply. */ |
9838 | char remove(); | |
9839 | ||
9840 | int main() { | |
ab9b9eab VZ |
9841 | |
9842 | /* The GNU C library defines this for functions which it implements | |
9843 | to always fail with ENOSYS. Some functions are actually named | |
9844 | something starting with __ and the normal name is an alias. */ | |
9845 | #if defined (__stub_remove) || defined (__stub___remove) | |
9846 | choke me | |
9847 | #else | |
698dcdb6 | 9848 | remove(); |
ab9b9eab VZ |
9849 | #endif |
9850 | ||
698dcdb6 VZ |
9851 | ; return 0; } |
9852 | EOF | |
138be253 | 9853 | if { (eval echo configure:9854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9854 | rm -rf conftest* |
9855 | eval "ac_cv_func_remove=yes" | |
9856 | else | |
9857 | echo "configure: failed program was:" >&5 | |
9858 | cat conftest.$ac_ext >&5 | |
9859 | rm -rf conftest* | |
9860 | eval "ac_cv_func_remove=no" | |
9861 | fi | |
9862 | rm -f conftest* | |
9863 | fi | |
9864 | ||
9865 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
9866 | echo "$ac_t""yes" 1>&6 | |
9867 | : | |
9868 | else | |
9869 | echo "$ac_t""no" 1>&6 | |
9870 | fi | |
ab9b9eab VZ |
9871 | |
9872 | if test $ac_cv_func_remove = no; then | |
698dcdb6 | 9873 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
138be253 | 9874 | echo "configure:9875: checking for remove in -lposix" >&5 |
698dcdb6 VZ |
9875 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
9876 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9877 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 9878 | else |
698dcdb6 | 9879 | ac_save_LIBS="$LIBS" |
ab9b9eab | 9880 | LIBS="-lposix $LIBS" |
698dcdb6 | 9881 | cat > conftest.$ac_ext <<EOF |
138be253 | 9882 | #line 9883 "configure" |
ab9b9eab VZ |
9883 | #include "confdefs.h" |
9884 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9885 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9886 | builtin and then its argument prototype would still apply. */ |
9887 | char remove(); | |
9888 | ||
9889 | int main() { | |
9890 | remove() | |
9891 | ; return 0; } | |
9892 | EOF | |
138be253 | 9893 | if { (eval echo configure:9894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9894 | rm -rf conftest* |
9895 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9896 | else | |
9897 | echo "configure: failed program was:" >&5 | |
9898 | cat conftest.$ac_ext >&5 | |
9899 | rm -rf conftest* | |
9900 | eval "ac_cv_lib_$ac_lib_var=no" | |
9901 | fi | |
9902 | rm -f conftest* | |
9903 | LIBS="$ac_save_LIBS" | |
9904 | ||
9905 | fi | |
9906 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9907 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 9908 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
698dcdb6 VZ |
9909 | else |
9910 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
9911 | fi |
9912 | ||
9913 | fi | |
9914 | ||
9915 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
698dcdb6 | 9916 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
138be253 | 9917 | echo "configure:9918: checking for shmat" >&5 |
698dcdb6 VZ |
9918 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
9919 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 9920 | else |
698dcdb6 | 9921 | cat > conftest.$ac_ext <<EOF |
138be253 | 9922 | #line 9923 "configure" |
ab9b9eab VZ |
9923 | #include "confdefs.h" |
9924 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 9925 | which can conflict with char shmat(); below. */ |
ab9b9eab VZ |
9926 | #include <assert.h> |
9927 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9928 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9929 | builtin and then its argument prototype would still apply. */ |
9930 | char shmat(); | |
9931 | ||
9932 | int main() { | |
ab9b9eab VZ |
9933 | |
9934 | /* The GNU C library defines this for functions which it implements | |
9935 | to always fail with ENOSYS. Some functions are actually named | |
9936 | something starting with __ and the normal name is an alias. */ | |
9937 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
9938 | choke me | |
9939 | #else | |
698dcdb6 | 9940 | shmat(); |
ab9b9eab VZ |
9941 | #endif |
9942 | ||
698dcdb6 VZ |
9943 | ; return 0; } |
9944 | EOF | |
138be253 | 9945 | if { (eval echo configure:9946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9946 | rm -rf conftest* |
9947 | eval "ac_cv_func_shmat=yes" | |
9948 | else | |
9949 | echo "configure: failed program was:" >&5 | |
9950 | cat conftest.$ac_ext >&5 | |
9951 | rm -rf conftest* | |
9952 | eval "ac_cv_func_shmat=no" | |
9953 | fi | |
9954 | rm -f conftest* | |
9955 | fi | |
9956 | ||
9957 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
9958 | echo "$ac_t""yes" 1>&6 | |
9959 | : | |
9960 | else | |
9961 | echo "$ac_t""no" 1>&6 | |
9962 | fi | |
ab9b9eab VZ |
9963 | |
9964 | if test $ac_cv_func_shmat = no; then | |
698dcdb6 | 9965 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
138be253 | 9966 | echo "configure:9967: checking for shmat in -lipc" >&5 |
698dcdb6 VZ |
9967 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
9968 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9969 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 9970 | else |
698dcdb6 | 9971 | ac_save_LIBS="$LIBS" |
ab9b9eab | 9972 | LIBS="-lipc $LIBS" |
698dcdb6 | 9973 | cat > conftest.$ac_ext <<EOF |
138be253 | 9974 | #line 9975 "configure" |
ab9b9eab VZ |
9975 | #include "confdefs.h" |
9976 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9977 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9978 | builtin and then its argument prototype would still apply. */ |
9979 | char shmat(); | |
9980 | ||
9981 | int main() { | |
9982 | shmat() | |
9983 | ; return 0; } | |
9984 | EOF | |
138be253 | 9985 | if { (eval echo configure:9986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9986 | rm -rf conftest* |
9987 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9988 | else | |
9989 | echo "configure: failed program was:" >&5 | |
9990 | cat conftest.$ac_ext >&5 | |
9991 | rm -rf conftest* | |
9992 | eval "ac_cv_lib_$ac_lib_var=no" | |
9993 | fi | |
9994 | rm -f conftest* | |
9995 | LIBS="$ac_save_LIBS" | |
9996 | ||
9997 | fi | |
9998 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9999 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 10000 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
698dcdb6 VZ |
10001 | else |
10002 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
10003 | fi |
10004 | ||
10005 | fi | |
10006 | fi | |
10007 | ||
10008 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
698dcdb6 | 10009 | ac_save_LDFLAGS="$LDFLAGS" |
ab9b9eab VZ |
10010 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
10011 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
10012 | # check for ICE first), but we must link in the order -lSM -lICE or | |
10013 | # we get undefined symbols. So assume we have SM if we have ICE. | |
10014 | # These have to be linked with before -lX11, unlike the other | |
10015 | # libraries we check for below, so use a different variable. | |
698dcdb6 VZ |
10016 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
10017 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
138be253 | 10018 | echo "configure:10019: checking for IceConnectionNumber in -lICE" >&5 |
698dcdb6 VZ |
10019 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
10020 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10021 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10022 | else | |
10023 | ac_save_LIBS="$LIBS" | |
ab9b9eab | 10024 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
698dcdb6 | 10025 | cat > conftest.$ac_ext <<EOF |
138be253 | 10026 | #line 10027 "configure" |
ab9b9eab VZ |
10027 | #include "confdefs.h" |
10028 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10029 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10030 | builtin and then its argument prototype would still apply. */ |
10031 | char IceConnectionNumber(); | |
10032 | ||
10033 | int main() { | |
10034 | IceConnectionNumber() | |
10035 | ; return 0; } | |
10036 | EOF | |
138be253 | 10037 | if { (eval echo configure:10038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10038 | rm -rf conftest* |
10039 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10040 | else | |
10041 | echo "configure: failed program was:" >&5 | |
10042 | cat conftest.$ac_ext >&5 | |
10043 | rm -rf conftest* | |
10044 | eval "ac_cv_lib_$ac_lib_var=no" | |
10045 | fi | |
10046 | rm -f conftest* | |
10047 | LIBS="$ac_save_LIBS" | |
10048 | ||
10049 | fi | |
10050 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10051 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 10052 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
698dcdb6 VZ |
10053 | else |
10054 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
10055 | fi |
10056 | ||
698dcdb6 | 10057 | LDFLAGS="$ac_save_LDFLAGS" |
ab9b9eab VZ |
10058 | |
10059 | fi | |
10060 | ||
1e6feb95 VZ |
10061 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
10062 | LDFLAGS="$LDFLAGS $X_LIBS" | |
ab9b9eab | 10063 | |
1e6feb95 VZ |
10064 | if test "$wxUSE_MOTIF" = 1; then |
10065 | if test "$no_x" = "yes"; then | |
10066 | { echo "configure: error: X11 not found" 1>&2; exit 1; } | |
10067 | fi | |
ab9b9eab | 10068 | |
1e6feb95 VZ |
10069 | GUI_TK_LIBRARY="$X_LIBS" |
10070 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
ab9b9eab | 10071 | |
1e6feb95 | 10072 | AFMINSTALL=afminstall |
dad6c0ea | 10073 | |
1e6feb95 VZ |
10074 | |
10075 | COMPILED_X_PROGRAM=0 | |
cd6d6d5b | 10076 | |
1e6feb95 | 10077 | echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6 |
138be253 | 10078 | echo "configure:10079: checking for Motif/Lesstif headers" >&5 |
1e6feb95 | 10079 | |
ab9b9eab VZ |
10080 | ac_find_includes= |
10081 | for ac_dir in $SEARCH_INCLUDE; | |
10082 | do | |
10083 | if test -f "$ac_dir/Xm/Xm.h"; then | |
10084 | ac_find_includes=$ac_dir | |
10085 | break | |
10086 | fi | |
10087 | done | |
10088 | ||
1e6feb95 VZ |
10089 | if test "$ac_find_includes" != "" ; then |
10090 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
10091 | else | |
10092 | cat > conftest.$ac_ext <<EOF | |
138be253 | 10093 | #line 10094 "configure" |
cd6d6d5b VZ |
10094 | #include "confdefs.h" |
10095 | ||
1e6feb95 VZ |
10096 | #include <Xm/Xm.h> |
10097 | ||
698dcdb6 | 10098 | int main() { |
cd6d6d5b | 10099 | |
1e6feb95 | 10100 | int version; |
cd6d6d5b | 10101 | |
1e6feb95 VZ |
10102 | version = xmUseVersion; |
10103 | ||
698dcdb6 VZ |
10104 | ; return 0; } |
10105 | EOF | |
138be253 | 10106 | if { (eval echo configure:10107: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
10107 | rm -rf conftest* |
10108 | ||
1e6feb95 VZ |
10109 | echo "$ac_t""found in default search path" 1>&6 |
10110 | COMPILED_X_PROGRAM=1 | |
10111 | ||
cd6d6d5b | 10112 | else |
698dcdb6 VZ |
10113 | echo "configure: failed program was:" >&5 |
10114 | cat conftest.$ac_ext >&5 | |
10115 | rm -rf conftest* | |
10116 | ||
1e6feb95 VZ |
10117 | echo "$ac_t""no" 1>&6 |
10118 | { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; } | |
10119 | ||
698dcdb6 | 10120 | |
cd6d6d5b | 10121 | fi |
698dcdb6 | 10122 | rm -f conftest* |
1e6feb95 | 10123 | fi |
ab9b9eab | 10124 | |
1e6feb95 VZ |
10125 | if test "$COMPILED_X_PROGRAM" = 0; then |
10126 | echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6 | |
138be253 | 10127 | echo "configure:10128: checking for Motif/Lesstif library" >&5 |
1e6feb95 | 10128 | |
ab9b9eab VZ |
10129 | ac_find_libraries= |
10130 | for ac_dir in $SEARCH_LIB; | |
10131 | do | |
10132 | for ac_extension in a so sl; do | |
10133 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
10134 | ac_find_libraries=$ac_dir | |
10135 | break 2 | |
10136 | fi | |
10137 | done | |
10138 | done | |
10139 | ||
1e6feb95 VZ |
10140 | if test "$ac_find_libraries" != "" ; then |
10141 | ||
ab9b9eab VZ |
10142 | ac_path_to_include=$ac_find_includes |
10143 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
10144 | result=$? | |
10145 | if test $result = 0; then | |
10146 | ac_path_to_include="" | |
10147 | else | |
10148 | ac_path_to_include="-I$ac_find_includes" | |
10149 | fi | |
10150 | ||
1e6feb95 | 10151 | |
ab9b9eab VZ |
10152 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
10153 | result=$? | |
10154 | if test $result = 0; then | |
10155 | ac_path_to_link="" | |
10156 | else | |
10157 | ac_path_to_link="-L$ac_find_libraries" | |
10158 | fi | |
10159 | ||
698dcdb6 | 10160 | |
1e6feb95 VZ |
10161 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" |
10162 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include" | |
10163 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
10164 | else | |
10165 | cat > conftest.$ac_ext <<EOF | |
138be253 | 10166 | #line 10167 "configure" |
cd6d6d5b | 10167 | #include "confdefs.h" |
ab9b9eab | 10168 | |
1e6feb95 VZ |
10169 | #include <Xm/Xm.h> |
10170 | ||
698dcdb6 | 10171 | int main() { |
ab9b9eab | 10172 | |
1e6feb95 | 10173 | int version; |
ab9b9eab | 10174 | |
1e6feb95 VZ |
10175 | version = xmUseVersion; |
10176 | ||
698dcdb6 VZ |
10177 | ; return 0; } |
10178 | EOF | |
138be253 | 10179 | if { (eval echo configure:10180: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
10180 | rm -rf conftest* |
10181 | ||
1e6feb95 VZ |
10182 | echo "$ac_t""found in default search path" 1>&6 |
10183 | COMPILED_X_PROGRAM=1 | |
10184 | ||
cd6d6d5b | 10185 | else |
698dcdb6 VZ |
10186 | echo "configure: failed program was:" >&5 |
10187 | cat conftest.$ac_ext >&5 | |
10188 | rm -rf conftest* | |
10189 | ||
1e6feb95 VZ |
10190 | echo "$ac_t""no" 1>&6 |
10191 | { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; } | |
10192 | ||
698dcdb6 | 10193 | |
cd6d6d5b | 10194 | fi |
698dcdb6 | 10195 | rm -f conftest* |
1e6feb95 | 10196 | fi |
cd6d6d5b | 10197 | fi |
ab9b9eab | 10198 | |
1e6feb95 VZ |
10199 | |
10200 | XPM_LINK="" | |
10201 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
138be253 | 10202 | echo "configure:10203: checking for Xpm library" >&5 |
1e6feb95 | 10203 | |
ab9b9eab VZ |
10204 | ac_find_libraries= |
10205 | for ac_dir in $SEARCH_LIB; | |
10206 | do | |
10207 | for ac_extension in a so sl; do | |
10208 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
10209 | ac_find_libraries=$ac_dir | |
10210 | break 2 | |
10211 | fi | |
10212 | done | |
10213 | done | |
10214 | ||
1e6feb95 VZ |
10215 | if test "$ac_find_libraries" != "" ; then |
10216 | ||
ab9b9eab VZ |
10217 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
10218 | result=$? | |
10219 | if test $result = 0; then | |
10220 | ac_path_to_link="" | |
10221 | else | |
10222 | ac_path_to_link="-L$ac_find_libraries" | |
10223 | fi | |
10224 | ||
1e6feb95 VZ |
10225 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" |
10226 | XPM_LINK="-lXpm " | |
10227 | cat >> confdefs.h <<\EOF | |
ab9b9eab VZ |
10228 | #define wxHAVE_LIB_XPM 1 |
10229 | EOF | |
10230 | ||
1e6feb95 VZ |
10231 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
10232 | else | |
10233 | cat > conftest.$ac_ext <<EOF | |
138be253 | 10234 | #line 10235 "configure" |
cd6d6d5b VZ |
10235 | #include "confdefs.h" |
10236 | ||
1e6feb95 VZ |
10237 | #include <X11/xpm.h> |
10238 | ||
698dcdb6 | 10239 | int main() { |
cd6d6d5b | 10240 | |
1e6feb95 | 10241 | int version; |
cd6d6d5b | 10242 | |
1e6feb95 VZ |
10243 | version = XpmLibraryVersion(); |
10244 | ||
698dcdb6 VZ |
10245 | ; return 0; } |
10246 | EOF | |
138be253 | 10247 | if { (eval echo configure:10248: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
10248 | rm -rf conftest* |
10249 | ||
1e6feb95 VZ |
10250 | XPM_LINK="-lXpm " |
10251 | cat >> confdefs.h <<\EOF | |
3ace2e6d SN |
10252 | #define wxHAVE_LIB_XPM 1 |
10253 | EOF | |
10254 | ||
1e6feb95 VZ |
10255 | echo "$ac_t""found in default search path" 1>&6 |
10256 | COMPILED_X_PROGRAM=0 | |
10257 | ||
cd6d6d5b | 10258 | else |
698dcdb6 VZ |
10259 | echo "configure: failed program was:" >&5 |
10260 | cat conftest.$ac_ext >&5 | |
10261 | rm -rf conftest* | |
10262 | ||
1e6feb95 VZ |
10263 | echo "$ac_t""no" 1>&6 |
10264 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
10265 | ||
698dcdb6 | 10266 | |
cd6d6d5b | 10267 | fi |
698dcdb6 | 10268 | rm -f conftest* |
1e6feb95 VZ |
10269 | fi |
10270 | ||
10271 | GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11" | |
10272 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK" | |
10273 | TOOLKIT=MOTIF | |
10274 | GUIDIST=MOTIF_DIST | |
ab9b9eab VZ |
10275 | fi |
10276 | ||
1e6feb95 VZ |
10277 | if test "$wxUSE_MAC" = 1; then |
10278 | TOOLKIT=MAC | |
10279 | GUIDIST=MACX_DIST | |
10280 | fi | |
10f2d63a | 10281 | |
1e6feb95 VZ |
10282 | if test "$wxUSE_PM" = 1; then |
10283 | TOOLKIT=PM | |
10284 | GUIDIST=GTK_DIST | |
10285 | fi | |
b4085ce6 | 10286 | |
1e6feb95 VZ |
10287 | if test "$TOOLKIT" != "PM" ; then |
10288 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
10289 | else | |
10290 | TOOLKIT_DIR="os2" | |
10291 | fi | |
e07802fc | 10292 | |
1e6feb95 | 10293 | TOOLKIT_NAME="${TOOLKIT_DIR}" |
10f2d63a | 10294 | |
1e6feb95 VZ |
10295 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" |
10296 | ||
10297 | if test "$TOOLKIT_NAME" = "motif"; then | |
10298 | TOOLKIT_VPATH="${TOOLKIT_VPATH}${PATH_IFS}\${top_srcdir}/src/motif/xmcombo" | |
10299 | fi | |
10300 | ||
10301 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
10302 | TOOLKIT_NAME="${TOOLKIT_NAME}univ" | |
10303 | UNIV_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes" | |
10304 | TOOLKIT_VPATH="${UNIV_VPATH}${PATH_IFS}${TOOLKIT_VPATH}" | |
10305 | SETUPH_DIR="univ" | |
f6bcfd97 | 10306 | else |
1e6feb95 VZ |
10307 | SETUPH_DIR="${TOOLKIT_DIR}" |
10308 | fi | |
10309 | ||
10310 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
10311 | TOOLKIT_NAME="${TOOLKIT_NAME}d" | |
f6bcfd97 BP |
10312 | fi |
10313 | ||
2224580a | 10314 | TOOLKIT_DEF="-D__WX${TOOLKIT}__" |
1e6feb95 VZ |
10315 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
10316 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXUNIVERSAL__" | |
10317 | fi | |
10f2d63a | 10318 | |
f6bcfd97 | 10319 | WX_LIBRARY="wx_${TOOLKIT_NAME}" |
10f2d63a | 10320 | |
1e6feb95 VZ |
10321 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
10322 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
10323 | else | |
10324 | ALL_OBJECTS="\$(GUIOBJS)" | |
10325 | fi | |
10326 | ||
10327 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" | |
10328 | ||
10329 | if test "$TOOLKIT" != "MSW"; then | |
10330 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" | |
10331 | fi | |
10332 | ||
10333 | if test "$wxUSE_HTML" = "yes"; then | |
10334 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
10335 | fi | |
3fcdd07b | 10336 | |
1e6feb95 VZ |
10337 | if test "$TOOLKIT" != "MSW"; then |
10338 | if test "$wxUSE_ODBC" = "yes" ; then | |
10339 | ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)" | |
10340 | fi | |
3fcdd07b VZ |
10341 | fi |
10342 | ||
d9d8273d | 10343 | if test "$wxUSE_LIBJPEG" = "yes" ; then |
2224580a | 10344 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" |
d9d8273d RR |
10345 | fi |
10346 | if test "$wxUSE_LIBTIFF" = "yes" ; then | |
10347 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
10348 | fi | |
10349 | if test "$wxUSE_LIBPNG" = "yes" ; then | |
10350 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
10351 | fi | |
10352 | if test "$wxUSE_ZLIB" = "yes" ; then | |
10353 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
10354 | fi | |
3fed1840 RR |
10355 | if test "$wxUSE_FREETYPE" = "yes" ; then |
10356 | ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)" | |
10357 | fi | |
2224580a | 10358 | |
1e6feb95 VZ |
10359 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
10360 | ALL_DEPFILES="\$(GUI_LOWLEVEL_DEPS) \$(UNIVDEPS)" | |
10361 | else | |
10362 | ALL_DEPFILES="\$(GUIDEPS)" | |
10363 | fi | |
10364 | ||
10365 | ALL_DEPFILES="${ALL_DEPFILES} \$(COMMONDEPS) \$(GENERICDEPS)" | |
10366 | ||
10367 | if test "$TOOLKIT" != "MSW"; then | |
10368 | ALL_DEPFILES="${ALL_DEPFILES} \$(UNIXDEPS)" | |
10369 | fi | |
10370 | ||
10371 | if test "$wxUSE_HTML" = "yes"; then | |
10372 | ALL_DEPFILES="${ALL_DEPFILES} \$(HTMLDEPS)" | |
10373 | fi | |
10374 | ||
10375 | PORT_FILES="src/\$(TOOLKITDIR)/files.lst" | |
10376 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
10377 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" | |
10378 | fi | |
2224580a VZ |
10379 | RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst" |
10380 | RPM_SPEC="wx\$(TOOLKIT).spec" | |
10381 | ||
10382 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
10383 | DISTDIR="wx\$(TOOLKIT)" | |
10f2d63a | 10384 | else |
dad6c0ea VZ |
10385 | USE_GUI=0 |
10386 | ||
f6bcfd97 BP |
10387 | TOOLKIT_DIR="base" |
10388 | ||
10389 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
10390 | TOOLKIT_NAME="${TOOLKIT_DIR}d" | |
10391 | else | |
10392 | TOOLKIT_NAME="${TOOLKIT_DIR}" | |
10393 | fi | |
10394 | ||
07eb77a6 RL |
10395 | TOOLKIT_DEF="-D__WXBASE__" |
10396 | ||
b4085ce6 GD |
10397 | ALL_OBJECTS="\$(BASE_OBJS) \$(BASE_UNIX_OBJS)" |
10398 | ALL_DEPFILES="\$(BASE_DEPS) \$(BASE_UNIX_DEPS)" | |
10f2d63a | 10399 | |
a20b6d3a VZ |
10400 | if test "$wxUSE_ZLIB" = "yes" ; then |
10401 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
10402 | fi | |
10403 | ||
f6bcfd97 | 10404 | WX_LIBRARY="wx_${TOOLKIT_NAME}" |
2224580a VZ |
10405 | |
10406 | PORT_FILES="src/files.lst" | |
10407 | RPM_FILES="src/rpmfiles.lst" | |
10408 | RPM_SPEC="wxBase.spec" | |
10409 | ||
10410 | GUIDIST="BASE_DIST" | |
10411 | DISTDIR="wxBase" | |
10f2d63a VZ |
10412 | fi |
10413 | ||
10414 | WX_LIBRARY_NAME="lib${WX_LIBRARY}.la" | |
bdad4e7e | 10415 | WX_LIBRARY_NAME_GL="lib${WX_LIBRARY}_gl.la" |
10f2d63a VZ |
10416 | |
10417 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
bdad4e7e | 10418 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY}_gl.a" |
10f2d63a VZ |
10419 | |
10420 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
bdad4e7e | 10421 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" |
10f2d63a VZ |
10422 | |
10423 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}" | |
10424 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so" | |
10425 | WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so" | |
bdad4e7e RR |
10426 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}" |
10427 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so" | |
10428 | WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.so" | |
10f2d63a VZ |
10429 | |
10430 | SHARED_LD= | |
10431 | PIC_FLAG= | |
10432 | WX_ALL= | |
10433 | WX_ALL_INSTALLED= | |
1d62a8b4 | 10434 | BURNT_LIBRARY_NAME= |
f6bcfd97 | 10435 | WX_TARGET_LIBRARY_SONAME= |
10f2d63a | 10436 | |
698dcdb6 | 10437 | |
10f2d63a VZ |
10438 | if test "$wxUSE_SHARED" = "yes"; then |
10439 | case "${host}" in | |
10440 | *-hp-hpux* ) | |
10441 | if test "$GCC" = yes ; then | |
69ffe1d2 | 10442 | SHARED_LD="${CC} -shared -fPIC -o" |
10f2d63a VZ |
10443 | PIC_FLAG="-fPIC" |
10444 | else | |
f6bcfd97 BP |
10445 | LDFLAGS="-L/usr/lib" |
10446 | ||
10f2d63a VZ |
10447 | SHARED_LD="${CXX} -b -o" |
10448 | PIC_FLAG="+Z" | |
10449 | fi | |
f6bcfd97 BP |
10450 | WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_NAME}.sl" |
10451 | WX_LIBRARY_NAME_SHARED_GL="libwx_${TOOLKIT_NAME}_gl.sl" | |
c661ecca | 10452 | if test "$wxUSE_OPENGL" = "yes"; then |
f6bcfd97 | 10453 | WX_ALL_INSTALLED="preinstall_gl" |
c661ecca RR |
10454 | WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}" |
10455 | else | |
10456 | WX_ALL="${WX_LIBRARY_NAME_SHARED}" | |
10457 | fi | |
10f2d63a | 10458 | ;; |
b12915c1 VZ |
10459 | |
10460 | *-*-linux* ) | |
10f2d63a VZ |
10461 | SHARED_LD="${CC} -shared -o" |
10462 | PIC_FLAG="-fPIC" | |
00cf1208 | 10463 | if test "$wxUSE_BURNT_NAME" = "yes" ; then |
05cdfc6f | 10464 | BURNT_LIBRARY_NAME="-Wl,-soname,${WX_LIBRARY_LINK1}" |
bdad4e7e | 10465 | BURNT_LIBRARY_NAME_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}" |
f6bcfd97 | 10466 | WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)" |
00cf1208 | 10467 | fi |
c661ecca RR |
10468 | if test "$wxUSE_OPENGL" = "yes"; then |
10469 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
10470 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
10471 | else | |
10472 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10473 | WX_ALL="CREATE_LINKS" | |
422107f9 | 10474 | fi |
00cf1208 | 10475 | ;; |
10f2d63a VZ |
10476 | *-*-irix5* | *-*-irix6* ) |
10477 | if test "$GCC" = yes ; then | |
10478 | SHARED_LD="${CC} -shared -o" | |
10479 | PIC_FLAG="-fPIC" | |
10480 | else | |
10481 | SHARED_LD="${CXX} -shared -o" | |
10482 | fi | |
c661ecca RR |
10483 | if test "$wxUSE_OPENGL" = "yes"; then |
10484 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
10485 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
10486 | else | |
10487 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10488 | WX_ALL="CREATE_LINKS" | |
422107f9 | 10489 | fi |
10f2d63a VZ |
10490 | ;; |
10491 | *-*-solaris2* ) | |
10492 | if test "$GCC" = yes ; then | |
10493 | SHARED_LD="${CC} -shared -o" | |
10494 | PIC_FLAG="-fPIC" | |
f6bcfd97 BP |
10495 | |
10496 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
10f2d63a VZ |
10497 | else |
10498 | SHARED_LD="${CXX} -G -o" | |
10499 | PIC_FLAG="-KPIC" | |
10500 | fi | |
c661ecca RR |
10501 | if test "$wxUSE_OPENGL" = "yes"; then |
10502 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
10503 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
10504 | else | |
10505 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10506 | WX_ALL="CREATE_LINKS" | |
10507 | fi | |
10f2d63a VZ |
10508 | ;; |
10509 | *-*-sunos4* ) | |
10510 | SHARED_LD="${CC} -shared -o" | |
10511 | PIC_FLAG="-fPIC" | |
10512 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10513 | WX_ALL="CREATE_LINKS" | |
10514 | ;; | |
95c8801c | 10515 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* ) |
10f2d63a VZ |
10516 | SHARED_LD="${CC} -shared -o" |
10517 | PIC_FLAG="-fPIC" | |
37d403aa JS |
10518 | if test "$wxUSE_OPENGL" = "yes"; then |
10519 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
10520 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
10521 | else | |
10522 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10523 | WX_ALL="CREATE_LINKS" | |
10524 | fi | |
10f2d63a | 10525 | ;; |
b4085ce6 | 10526 | *-*-darwin* ) |
ea5999b9 GD |
10527 | SHARED_LD="${CXX} -dynamiclib -o" |
10528 | PIC_FLAG="-dynamic -fPIC" | |
b4085ce6 GD |
10529 | if test "$wxUSE_OPENGL" = "yes"; then |
10530 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
10531 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
10532 | else | |
10533 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10534 | WX_ALL="CREATE_LINKS" | |
10535 | fi | |
1e6feb95 VZ |
10536 | WX_ALL="${WX_ALL} ./lib/lib${WX_LIBRARY}-${WX_RELEASE}.r" |
10537 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
10538 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
10539 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}" | |
10540 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.dylib" | |
10541 | WX_LIBRARY_LINK3="lib${WX_LIBRARY}.dylib" | |
10542 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}" | |
10543 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib" | |
10544 | WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.dylib" | |
b4085ce6 | 10545 | ;; |
10f2d63a VZ |
10546 | *-*-osf* ) |
10547 | SHARED_LD="${CXX} -shared -o" | |
10548 | PIC_FLAG="-fPIC" | |
10549 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10550 | WX_ALL="CREATE_LINKS" | |
10551 | ;; | |
10552 | *-*-dgux5* ) | |
10553 | SHARED_LD="${CXX} -shared -o" | |
10554 | PIC_FLAG="-fPIC" | |
10555 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10556 | WX_ALL="CREATE_LINKS" | |
10557 | ;; | |
10558 | *-*-sysv5* ) | |
10559 | SHARED_LD="${CC} -shared -o" | |
10560 | PIC_FLAG="-fPIC" | |
10561 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10562 | WX_ALL="CREATE_LINKS" | |
10563 | ;; | |
10564 | *-*-aix* ) | |
10565 | SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o" | |
10566 | WX_ALL=${WX_LIBRARY_NAME_SHARED} | |
10567 | ;; | |
1c8183e2 | 10568 | *-*-cygwin* ) |
10f2d63a | 10569 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" |
bdad4e7e | 10570 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" |
f6bcfd97 BP |
10571 | if test "$wxUSE_OPENGL" = "yes"; then |
10572 | WX_ALL_INSTALLED="preinstall_gl" | |
10573 | WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}" | |
10574 | else | |
10575 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
10576 | fi | |
10f2d63a | 10577 | ;; |
b12915c1 | 10578 | *-*-mingw32* ) |
10f2d63a | 10579 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" |
bdad4e7e | 10580 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" |
f6bcfd97 BP |
10581 | if test "$wxUSE_OPENGL" = "yes"; then |
10582 | WX_ALL_INSTALLED="preinstall_gl" | |
10583 | WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}" | |
10584 | else | |
10585 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
10586 | fi | |
10f2d63a VZ |
10587 | ;; |
10588 | *-pc-os2_emx ) | |
e07802fc VZ |
10589 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" |
10590 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
10f2d63a | 10591 | ;; |
b12915c1 | 10592 | *-*-beos* ) |
e2b8b066 | 10593 | SHARED_LD="${LD} -shared -o" |
b12915c1 VZ |
10594 | PIC_FLAG="-fPIC" |
10595 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10596 | WX_ALL="CREATE_LINKS" | |
10597 | ;; | |
10f2d63a | 10598 | *) |
698dcdb6 | 10599 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } |
10f2d63a VZ |
10600 | esac |
10601 | ||
10602 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
10603 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
bdad4e7e | 10604 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" |
10f2d63a | 10605 | fi |
3711412e | 10606 | WX_TARGET_LIBRARY_TYPE="so" |
10f2d63a VZ |
10607 | else |
10608 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
bdad4e7e | 10609 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" |
f6bcfd97 BP |
10610 | |
10611 | if test "$wxUSE_OPENGL" = "yes"; then | |
10612 | WX_ALL_INSTALLED="preinstall_gl" | |
10613 | WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}" | |
10614 | else | |
10615 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
10616 | fi | |
10617 | ||
10618 | if test "$wxUSE_GUI" = "no"; then | |
10619 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
10620 | fi | |
10621 | ||
3711412e | 10622 | WX_TARGET_LIBRARY_TYPE="a" |
10f2d63a VZ |
10623 | fi |
10624 | ||
698dcdb6 VZ |
10625 | |
10626 | for ac_hdr in strings.h | |
10f2d63a | 10627 | do |
698dcdb6 VZ |
10628 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10629 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
138be253 | 10630 | echo "configure:10631: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
10631 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10632 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10633 | else | |
10634 | cat > conftest.$ac_ext <<EOF | |
138be253 | 10635 | #line 10636 "configure" |
10f2d63a | 10636 | #include "confdefs.h" |
698dcdb6 VZ |
10637 | #include <$ac_hdr> |
10638 | EOF | |
10639 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
138be253 | 10640 | { (eval echo configure:10641: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
10641 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10642 | if test -z "$ac_err"; then | |
10643 | rm -rf conftest* | |
10644 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 10645 | else |
698dcdb6 VZ |
10646 | echo "$ac_err" >&5 |
10647 | echo "configure: failed program was:" >&5 | |
10f2d63a | 10648 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
10649 | rm -rf conftest* |
10650 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 10651 | fi |
698dcdb6 | 10652 | rm -f conftest* |
10f2d63a | 10653 | fi |
698dcdb6 VZ |
10654 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10655 | echo "$ac_t""yes" 1>&6 | |
10656 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10657 | cat >> confdefs.h <<EOF | |
10658 | #define $ac_tr_hdr 1 | |
10f2d63a | 10659 | EOF |
698dcdb6 VZ |
10660 | |
10661 | else | |
10662 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
10663 | fi |
10664 | done | |
10665 | ||
698dcdb6 | 10666 | for ac_hdr in stdlib.h |
9cfadba2 | 10667 | do |
698dcdb6 VZ |
10668 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10669 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
138be253 | 10670 | echo "configure:10671: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
10671 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10672 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10673 | else | |
10674 | cat > conftest.$ac_ext <<EOF | |
138be253 | 10675 | #line 10676 "configure" |
9cfadba2 | 10676 | #include "confdefs.h" |
698dcdb6 VZ |
10677 | #include <$ac_hdr> |
10678 | EOF | |
10679 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
138be253 | 10680 | { (eval echo configure:10681: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
10681 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10682 | if test -z "$ac_err"; then | |
10683 | rm -rf conftest* | |
10684 | eval "ac_cv_header_$ac_safe=yes" | |
6232543b | 10685 | else |
698dcdb6 VZ |
10686 | echo "$ac_err" >&5 |
10687 | echo "configure: failed program was:" >&5 | |
9cfadba2 | 10688 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
10689 | rm -rf conftest* |
10690 | eval "ac_cv_header_$ac_safe=no" | |
9cfadba2 | 10691 | fi |
698dcdb6 | 10692 | rm -f conftest* |
9cfadba2 | 10693 | fi |
698dcdb6 VZ |
10694 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10695 | echo "$ac_t""yes" 1>&6 | |
10696 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10697 | cat >> confdefs.h <<EOF | |
10698 | #define $ac_tr_hdr 1 | |
9cfadba2 | 10699 | EOF |
698dcdb6 VZ |
10700 | |
10701 | else | |
10702 | echo "$ac_t""no" 1>&6 | |
9cfadba2 VZ |
10703 | fi |
10704 | done | |
10f2d63a | 10705 | |
698dcdb6 | 10706 | for ac_hdr in unistd.h |
10f2d63a | 10707 | do |
698dcdb6 VZ |
10708 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10709 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
138be253 | 10710 | echo "configure:10711: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
10711 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10712 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10713 | else | |
10714 | cat > conftest.$ac_ext <<EOF | |
138be253 | 10715 | #line 10716 "configure" |
10f2d63a | 10716 | #include "confdefs.h" |
698dcdb6 VZ |
10717 | #include <$ac_hdr> |
10718 | EOF | |
10719 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
138be253 | 10720 | { (eval echo configure:10721: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
10721 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10722 | if test -z "$ac_err"; then | |
10723 | rm -rf conftest* | |
10724 | eval "ac_cv_header_$ac_safe=yes" | |
6232543b | 10725 | else |
698dcdb6 VZ |
10726 | echo "$ac_err" >&5 |
10727 | echo "configure: failed program was:" >&5 | |
10f2d63a | 10728 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
10729 | rm -rf conftest* |
10730 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 10731 | fi |
698dcdb6 | 10732 | rm -f conftest* |
10f2d63a | 10733 | fi |
698dcdb6 VZ |
10734 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10735 | echo "$ac_t""yes" 1>&6 | |
10736 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10737 | cat >> confdefs.h <<EOF | |
10738 | #define $ac_tr_hdr 1 | |
10f2d63a | 10739 | EOF |
698dcdb6 VZ |
10740 | |
10741 | else | |
10742 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
10743 | fi |
10744 | done | |
10745 | ||
698dcdb6 | 10746 | for ac_hdr in wchar.h |
10f2d63a | 10747 | do |
698dcdb6 VZ |
10748 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10749 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
138be253 | 10750 | echo "configure:10751: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
10751 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10752 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10753 | else | |
10754 | cat > conftest.$ac_ext <<EOF | |
138be253 | 10755 | #line 10756 "configure" |
10f2d63a | 10756 | #include "confdefs.h" |
698dcdb6 VZ |
10757 | #include <$ac_hdr> |
10758 | EOF | |
10759 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
138be253 | 10760 | { (eval echo configure:10761: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
10761 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10762 | if test -z "$ac_err"; then | |
10763 | rm -rf conftest* | |
10764 | eval "ac_cv_header_$ac_safe=yes" | |
6f72b082 | 10765 | else |
698dcdb6 VZ |
10766 | echo "$ac_err" >&5 |
10767 | echo "configure: failed program was:" >&5 | |
6f72b082 | 10768 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
10769 | rm -rf conftest* |
10770 | eval "ac_cv_header_$ac_safe=no" | |
6f72b082 | 10771 | fi |
698dcdb6 | 10772 | rm -f conftest* |
6f72b082 | 10773 | fi |
698dcdb6 VZ |
10774 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10775 | echo "$ac_t""yes" 1>&6 | |
10776 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10777 | cat >> confdefs.h <<EOF | |
10778 | #define $ac_tr_hdr 1 | |
6f72b082 | 10779 | EOF |
698dcdb6 VZ |
10780 | |
10781 | else | |
10782 | echo "$ac_t""no" 1>&6 | |
6f72b082 OK |
10783 | fi |
10784 | done | |
10785 | ||
698dcdb6 | 10786 | for ac_hdr in wcstr.h |
6f72b082 | 10787 | do |
698dcdb6 VZ |
10788 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10789 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
138be253 | 10790 | echo "configure:10791: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
10791 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10792 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10793 | else | |
10794 | cat > conftest.$ac_ext <<EOF | |
138be253 | 10795 | #line 10796 "configure" |
6f72b082 | 10796 | #include "confdefs.h" |
698dcdb6 VZ |
10797 | #include <$ac_hdr> |
10798 | EOF | |
10799 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
138be253 | 10800 | { (eval echo configure:10801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
10801 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10802 | if test -z "$ac_err"; then | |
10803 | rm -rf conftest* | |
10804 | eval "ac_cv_header_$ac_safe=yes" | |
6f72b082 | 10805 | else |
698dcdb6 VZ |
10806 | echo "$ac_err" >&5 |
10807 | echo "configure: failed program was:" >&5 | |
6f72b082 | 10808 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
10809 | rm -rf conftest* |
10810 | eval "ac_cv_header_$ac_safe=no" | |
6f72b082 | 10811 | fi |
698dcdb6 | 10812 | rm -f conftest* |
6f72b082 | 10813 | fi |
698dcdb6 VZ |
10814 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10815 | echo "$ac_t""yes" 1>&6 | |
10816 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10817 | cat >> confdefs.h <<EOF | |
10818 | #define $ac_tr_hdr 1 | |
6f72b082 | 10819 | EOF |
698dcdb6 VZ |
10820 | |
10821 | else | |
10822 | echo "$ac_t""no" 1>&6 | |
6f72b082 OK |
10823 | fi |
10824 | done | |
10825 | ||
698dcdb6 | 10826 | for ac_hdr in fnmatch.h |
6f72b082 | 10827 | do |
698dcdb6 VZ |
10828 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10829 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
138be253 | 10830 | echo "configure:10831: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
10831 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10832 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10833 | else | |
10834 | cat > conftest.$ac_ext <<EOF | |
138be253 | 10835 | #line 10836 "configure" |
6f72b082 | 10836 | #include "confdefs.h" |
698dcdb6 VZ |
10837 | #include <$ac_hdr> |
10838 | EOF | |
10839 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
138be253 | 10840 | { (eval echo configure:10841: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
10841 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10842 | if test -z "$ac_err"; then | |
10843 | rm -rf conftest* | |
10844 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 10845 | else |
698dcdb6 VZ |
10846 | echo "$ac_err" >&5 |
10847 | echo "configure: failed program was:" >&5 | |
10f2d63a | 10848 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
10849 | rm -rf conftest* |
10850 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 10851 | fi |
698dcdb6 | 10852 | rm -f conftest* |
10f2d63a | 10853 | fi |
698dcdb6 VZ |
10854 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10855 | echo "$ac_t""yes" 1>&6 | |
10856 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10857 | cat >> confdefs.h <<EOF | |
10858 | #define $ac_tr_hdr 1 | |
10f2d63a | 10859 | EOF |
698dcdb6 VZ |
10860 | |
10861 | else | |
10862 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
10863 | fi |
10864 | done | |
10865 | ||
698dcdb6 | 10866 | for ac_hdr in iconv.h |
0fb0dd83 | 10867 | do |
698dcdb6 VZ |
10868 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10869 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
138be253 | 10870 | echo "configure:10871: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
10871 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10872 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10873 | else | |
10874 | cat > conftest.$ac_ext <<EOF | |
138be253 | 10875 | #line 10876 "configure" |
0fb0dd83 | 10876 | #include "confdefs.h" |
698dcdb6 VZ |
10877 | #include <$ac_hdr> |
10878 | EOF | |
10879 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
138be253 | 10880 | { (eval echo configure:10881: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
10881 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10882 | if test -z "$ac_err"; then | |
10883 | rm -rf conftest* | |
10884 | eval "ac_cv_header_$ac_safe=yes" | |
0fb0dd83 | 10885 | else |
698dcdb6 VZ |
10886 | echo "$ac_err" >&5 |
10887 | echo "configure: failed program was:" >&5 | |
0fb0dd83 | 10888 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
10889 | rm -rf conftest* |
10890 | eval "ac_cv_header_$ac_safe=no" | |
0fb0dd83 | 10891 | fi |
698dcdb6 | 10892 | rm -f conftest* |
0fb0dd83 | 10893 | fi |
698dcdb6 VZ |
10894 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10895 | echo "$ac_t""yes" 1>&6 | |
10896 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10897 | cat >> confdefs.h <<EOF | |
10898 | #define $ac_tr_hdr 1 | |
0fb0dd83 | 10899 | EOF |
698dcdb6 VZ |
10900 | |
10901 | else | |
10902 | echo "$ac_t""no" 1>&6 | |
0fb0dd83 RR |
10903 | fi |
10904 | done | |
10905 | ||
698dcdb6 | 10906 | for ac_hdr in langinfo.h |
1f8ae82f | 10907 | do |
698dcdb6 VZ |
10908 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10909 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
138be253 | 10910 | echo "configure:10911: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
10911 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10912 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10913 | else | |
10914 | cat > conftest.$ac_ext <<EOF | |
138be253 | 10915 | #line 10916 "configure" |
1f8ae82f | 10916 | #include "confdefs.h" |
698dcdb6 VZ |
10917 | #include <$ac_hdr> |
10918 | EOF | |
10919 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
138be253 | 10920 | { (eval echo configure:10921: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
10921 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10922 | if test -z "$ac_err"; then | |
10923 | rm -rf conftest* | |
10924 | eval "ac_cv_header_$ac_safe=yes" | |
1f8ae82f | 10925 | else |
698dcdb6 VZ |
10926 | echo "$ac_err" >&5 |
10927 | echo "configure: failed program was:" >&5 | |
1f8ae82f | 10928 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
10929 | rm -rf conftest* |
10930 | eval "ac_cv_header_$ac_safe=no" | |
1f8ae82f | 10931 | fi |
698dcdb6 | 10932 | rm -f conftest* |
1f8ae82f | 10933 | fi |
698dcdb6 VZ |
10934 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10935 | echo "$ac_t""yes" 1>&6 | |
10936 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10937 | cat >> confdefs.h <<EOF | |
10938 | #define $ac_tr_hdr 1 | |
1f8ae82f | 10939 | EOF |
698dcdb6 VZ |
10940 | |
10941 | else | |
10942 | echo "$ac_t""no" 1>&6 | |
1f8ae82f GD |
10943 | fi |
10944 | done | |
10945 | ||
698dcdb6 | 10946 | |
73fd4a60 VZ |
10947 | if test "$wxUSE_GUI" = "yes"; then |
10948 | if test "$wxUSE_UNIX" = "yes"; then | |
698dcdb6 | 10949 | for ac_hdr in X11/XKBlib.h |
10f2d63a | 10950 | do |
698dcdb6 VZ |
10951 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10952 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
138be253 | 10953 | echo "configure:10954: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
10954 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10955 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10956 | else | |
10957 | cat > conftest.$ac_ext <<EOF | |
138be253 | 10958 | #line 10959 "configure" |
10f2d63a | 10959 | #include "confdefs.h" |
698dcdb6 VZ |
10960 | #include <$ac_hdr> |
10961 | EOF | |
10962 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
138be253 | 10963 | { (eval echo configure:10964: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
10964 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10965 | if test -z "$ac_err"; then | |
10966 | rm -rf conftest* | |
10967 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 10968 | else |
698dcdb6 VZ |
10969 | echo "$ac_err" >&5 |
10970 | echo "configure: failed program was:" >&5 | |
10f2d63a | 10971 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
10972 | rm -rf conftest* |
10973 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 10974 | fi |
698dcdb6 | 10975 | rm -f conftest* |
10f2d63a | 10976 | fi |
698dcdb6 VZ |
10977 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10978 | echo "$ac_t""yes" 1>&6 | |
10979 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10980 | cat >> confdefs.h <<EOF | |
10981 | #define $ac_tr_hdr 1 | |
10f2d63a | 10982 | EOF |
698dcdb6 VZ |
10983 | |
10984 | else | |
10985 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
10986 | fi |
10987 | done | |
10988 | ||
73fd4a60 | 10989 | fi |
10f2d63a VZ |
10990 | fi |
10991 | ||
698dcdb6 VZ |
10992 | |
10993 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | |
138be253 | 10994 | echo "configure:10995: checking for ANSI C header files" >&5 |
698dcdb6 VZ |
10995 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
10996 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 10997 | else |
698dcdb6 | 10998 | cat > conftest.$ac_ext <<EOF |
138be253 | 10999 | #line 11000 "configure" |
10f2d63a VZ |
11000 | #include "confdefs.h" |
11001 | #include <stdlib.h> | |
11002 | #include <stdarg.h> | |
11003 | #include <string.h> | |
11004 | #include <float.h> | |
698dcdb6 VZ |
11005 | EOF |
11006 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
138be253 | 11007 | { (eval echo configure:11008: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11008 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11009 | if test -z "$ac_err"; then | |
11010 | rm -rf conftest* | |
10f2d63a VZ |
11011 | ac_cv_header_stdc=yes |
11012 | else | |
698dcdb6 VZ |
11013 | echo "$ac_err" >&5 |
11014 | echo "configure: failed program was:" >&5 | |
10f2d63a | 11015 | cat conftest.$ac_ext >&5 |
698dcdb6 | 11016 | rm -rf conftest* |
10f2d63a VZ |
11017 | ac_cv_header_stdc=no |
11018 | fi | |
698dcdb6 | 11019 | rm -f conftest* |
10f2d63a VZ |
11020 | |
11021 | if test $ac_cv_header_stdc = yes; then | |
11022 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
698dcdb6 | 11023 | cat > conftest.$ac_ext <<EOF |
138be253 | 11024 | #line 11025 "configure" |
10f2d63a VZ |
11025 | #include "confdefs.h" |
11026 | #include <string.h> | |
698dcdb6 | 11027 | EOF |
10f2d63a VZ |
11028 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
11029 | egrep "memchr" >/dev/null 2>&1; then | |
11030 | : | |
11031 | else | |
698dcdb6 | 11032 | rm -rf conftest* |
10f2d63a VZ |
11033 | ac_cv_header_stdc=no |
11034 | fi | |
11035 | rm -f conftest* | |
11036 | ||
11037 | fi | |
11038 | ||
11039 | if test $ac_cv_header_stdc = yes; then | |
11040 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
698dcdb6 | 11041 | cat > conftest.$ac_ext <<EOF |
138be253 | 11042 | #line 11043 "configure" |
10f2d63a VZ |
11043 | #include "confdefs.h" |
11044 | #include <stdlib.h> | |
698dcdb6 | 11045 | EOF |
10f2d63a VZ |
11046 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
11047 | egrep "free" >/dev/null 2>&1; then | |
11048 | : | |
11049 | else | |
698dcdb6 | 11050 | rm -rf conftest* |
10f2d63a VZ |
11051 | ac_cv_header_stdc=no |
11052 | fi | |
11053 | rm -f conftest* | |
11054 | ||
11055 | fi | |
11056 | ||
11057 | if test $ac_cv_header_stdc = yes; then | |
11058 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
698dcdb6 | 11059 | if test "$cross_compiling" = yes; then |
10f2d63a VZ |
11060 | : |
11061 | else | |
698dcdb6 | 11062 | cat > conftest.$ac_ext <<EOF |
138be253 | 11063 | #line 11064 "configure" |
10f2d63a VZ |
11064 | #include "confdefs.h" |
11065 | #include <ctype.h> | |
698dcdb6 VZ |
11066 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
11067 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
1e487827 | 11068 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
698dcdb6 VZ |
11069 | int main () { int i; for (i = 0; i < 256; i++) |
11070 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
11071 | exit (0); } | |
11072 | ||
11073 | EOF | |
138be253 | 11074 | if { (eval echo configure:11075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 11075 | then |
10f2d63a VZ |
11076 | : |
11077 | else | |
698dcdb6 VZ |
11078 | echo "configure: failed program was:" >&5 |
11079 | cat conftest.$ac_ext >&5 | |
11080 | rm -fr conftest* | |
11081 | ac_cv_header_stdc=no | |
10f2d63a | 11082 | fi |
698dcdb6 | 11083 | rm -fr conftest* |
10f2d63a | 11084 | fi |
698dcdb6 | 11085 | |
10f2d63a VZ |
11086 | fi |
11087 | fi | |
1e487827 | 11088 | |
698dcdb6 VZ |
11089 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
11090 | if test $ac_cv_header_stdc = yes; then | |
11091 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11092 | #define STDC_HEADERS 1 |
11093 | EOF | |
11094 | ||
11095 | fi | |
11096 | ||
698dcdb6 | 11097 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
138be253 | 11098 | echo "configure:11099: checking for mode_t" >&5 |
698dcdb6 VZ |
11099 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
11100 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 11101 | else |
698dcdb6 | 11102 | cat > conftest.$ac_ext <<EOF |
138be253 | 11103 | #line 11104 "configure" |
1e487827 | 11104 | #include "confdefs.h" |
698dcdb6 VZ |
11105 | #include <sys/types.h> |
11106 | #if STDC_HEADERS | |
11107 | #include <stdlib.h> | |
11108 | #include <stddef.h> | |
11109 | #endif | |
11110 | EOF | |
11111 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11112 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
11113 | rm -rf conftest* | |
10f2d63a VZ |
11114 | ac_cv_type_mode_t=yes |
11115 | else | |
698dcdb6 VZ |
11116 | rm -rf conftest* |
11117 | ac_cv_type_mode_t=no | |
703e0a69 | 11118 | fi |
698dcdb6 | 11119 | rm -f conftest* |
1e487827 | 11120 | |
698dcdb6 VZ |
11121 | fi |
11122 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 | |
11123 | if test $ac_cv_type_mode_t = no; then | |
11124 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11125 | #define mode_t int |
11126 | EOF | |
11127 | ||
11128 | fi | |
11129 | ||
698dcdb6 | 11130 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 |
138be253 | 11131 | echo "configure:11132: checking for off_t" >&5 |
698dcdb6 VZ |
11132 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
11133 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11134 | else |
698dcdb6 | 11135 | cat > conftest.$ac_ext <<EOF |
138be253 | 11136 | #line 11137 "configure" |
10f2d63a | 11137 | #include "confdefs.h" |
698dcdb6 VZ |
11138 | #include <sys/types.h> |
11139 | #if STDC_HEADERS | |
11140 | #include <stdlib.h> | |
11141 | #include <stddef.h> | |
11142 | #endif | |
11143 | EOF | |
11144 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11145 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
11146 | rm -rf conftest* | |
10f2d63a VZ |
11147 | ac_cv_type_off_t=yes |
11148 | else | |
698dcdb6 VZ |
11149 | rm -rf conftest* |
11150 | ac_cv_type_off_t=no | |
703e0a69 | 11151 | fi |
698dcdb6 | 11152 | rm -f conftest* |
1e487827 | 11153 | |
698dcdb6 VZ |
11154 | fi |
11155 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
11156 | if test $ac_cv_type_off_t = no; then | |
11157 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11158 | #define off_t long |
11159 | EOF | |
11160 | ||
11161 | fi | |
11162 | ||
698dcdb6 | 11163 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
138be253 | 11164 | echo "configure:11165: checking for pid_t" >&5 |
698dcdb6 VZ |
11165 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
11166 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11167 | else |
698dcdb6 | 11168 | cat > conftest.$ac_ext <<EOF |
138be253 | 11169 | #line 11170 "configure" |
10f2d63a | 11170 | #include "confdefs.h" |
698dcdb6 VZ |
11171 | #include <sys/types.h> |
11172 | #if STDC_HEADERS | |
11173 | #include <stdlib.h> | |
11174 | #include <stddef.h> | |
11175 | #endif | |
11176 | EOF | |
11177 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11178 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
11179 | rm -rf conftest* | |
10f2d63a VZ |
11180 | ac_cv_type_pid_t=yes |
11181 | else | |
698dcdb6 VZ |
11182 | rm -rf conftest* |
11183 | ac_cv_type_pid_t=no | |
703e0a69 | 11184 | fi |
698dcdb6 | 11185 | rm -f conftest* |
1e487827 | 11186 | |
698dcdb6 VZ |
11187 | fi |
11188 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
11189 | if test $ac_cv_type_pid_t = no; then | |
11190 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11191 | #define pid_t int |
11192 | EOF | |
11193 | ||
11194 | fi | |
11195 | ||
698dcdb6 | 11196 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
138be253 | 11197 | echo "configure:11198: checking for size_t" >&5 |
698dcdb6 VZ |
11198 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
11199 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11200 | else |
698dcdb6 | 11201 | cat > conftest.$ac_ext <<EOF |
138be253 | 11202 | #line 11203 "configure" |
10f2d63a | 11203 | #include "confdefs.h" |
698dcdb6 VZ |
11204 | #include <sys/types.h> |
11205 | #if STDC_HEADERS | |
11206 | #include <stdlib.h> | |
11207 | #include <stddef.h> | |
11208 | #endif | |
11209 | EOF | |
11210 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11211 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
11212 | rm -rf conftest* | |
10f2d63a VZ |
11213 | ac_cv_type_size_t=yes |
11214 | else | |
698dcdb6 VZ |
11215 | rm -rf conftest* |
11216 | ac_cv_type_size_t=no | |
703e0a69 | 11217 | fi |
698dcdb6 | 11218 | rm -f conftest* |
1e487827 | 11219 | |
698dcdb6 VZ |
11220 | fi |
11221 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
11222 | if test $ac_cv_type_size_t = no; then | |
11223 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11224 | #define size_t unsigned |
11225 | EOF | |
11226 | ||
11227 | fi | |
11228 | ||
698dcdb6 | 11229 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
138be253 | 11230 | echo "configure:11231: checking for uid_t in sys/types.h" >&5 |
698dcdb6 VZ |
11231 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
11232 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11233 | else |
698dcdb6 | 11234 | cat > conftest.$ac_ext <<EOF |
138be253 | 11235 | #line 11236 "configure" |
10f2d63a VZ |
11236 | #include "confdefs.h" |
11237 | #include <sys/types.h> | |
698dcdb6 | 11238 | EOF |
10f2d63a VZ |
11239 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
11240 | egrep "uid_t" >/dev/null 2>&1; then | |
698dcdb6 | 11241 | rm -rf conftest* |
10f2d63a VZ |
11242 | ac_cv_type_uid_t=yes |
11243 | else | |
698dcdb6 | 11244 | rm -rf conftest* |
10f2d63a VZ |
11245 | ac_cv_type_uid_t=no |
11246 | fi | |
11247 | rm -f conftest* | |
11248 | ||
11249 | fi | |
1e487827 | 11250 | |
698dcdb6 VZ |
11251 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
11252 | if test $ac_cv_type_uid_t = no; then | |
11253 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11254 | #define uid_t int |
11255 | EOF | |
11256 | ||
698dcdb6 | 11257 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
11258 | #define gid_t int |
11259 | EOF | |
11260 | ||
11261 | fi | |
11262 | ||
1e487827 | 11263 | |
698dcdb6 | 11264 | echo $ac_n "checking for wchar_t""... $ac_c" 1>&6 |
138be253 | 11265 | echo "configure:11266: checking for wchar_t" >&5 |
698dcdb6 VZ |
11266 | if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then |
11267 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11268 | else | |
11269 | ||
11270 | cat > conftest.$ac_ext <<EOF | |
138be253 | 11271 | #line 11272 "configure" |
0046ff7c VS |
11272 | #include "confdefs.h" |
11273 | #include <wchar.h> | |
698dcdb6 | 11274 | int main() { |
0046ff7c | 11275 | |
d836ee96 VZ |
11276 | wchar_t wc, *ws; |
11277 | wc = L'a'; | |
11278 | ws = L"Hello, world!"; | |
698dcdb6 VZ |
11279 | |
11280 | ; return 0; } | |
11281 | EOF | |
138be253 | 11282 | if { (eval echo configure:11283: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 11283 | rm -rf conftest* |
1f8ae82f GD |
11284 | wx_cv_type_wchar_t=yes |
11285 | else | |
698dcdb6 VZ |
11286 | echo "configure: failed program was:" >&5 |
11287 | cat conftest.$ac_ext >&5 | |
11288 | rm -rf conftest* | |
11289 | cat > conftest.$ac_ext <<EOF | |
138be253 | 11290 | #line 11291 "configure" |
1f8ae82f GD |
11291 | #include "confdefs.h" |
11292 | #include <stdlib.h> | |
698dcdb6 | 11293 | int main() { |
1f8ae82f | 11294 | |
d836ee96 VZ |
11295 | wchar_t wc, *ws; |
11296 | wc = L'a'; | |
11297 | ws = L"Hello, world!"; | |
698dcdb6 VZ |
11298 | |
11299 | ; return 0; } | |
11300 | EOF | |
138be253 | 11301 | if { (eval echo configure:11302: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 11302 | rm -rf conftest* |
0046ff7c VS |
11303 | wx_cv_type_wchar_t=yes |
11304 | else | |
698dcdb6 VZ |
11305 | echo "configure: failed program was:" >&5 |
11306 | cat conftest.$ac_ext >&5 | |
11307 | rm -rf conftest* | |
11308 | wx_cv_type_wchar_t=no | |
0046ff7c | 11309 | fi |
698dcdb6 | 11310 | rm -f conftest* |
d836ee96 | 11311 | |
6232543b | 11312 | fi |
698dcdb6 | 11313 | rm -f conftest* |
703e0a69 | 11314 | |
1e487827 | 11315 | fi |
698dcdb6 VZ |
11316 | |
11317 | echo "$ac_t""$wx_cv_type_wchar_t" 1>&6 | |
d836ee96 VZ |
11318 | |
11319 | if test "$wx_cv_type_wchar_t" = "yes"; then | |
698dcdb6 | 11320 | cat >> confdefs.h <<\EOF |
0046ff7c VS |
11321 | #define wxUSE_WCHAR_T 1 |
11322 | EOF | |
11323 | ||
11324 | fi | |
11325 | ||
19af3b06 VZ |
11326 | |
11327 | ac_ext=C | |
11328 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11329 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11330 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11331 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11332 | cross_compiling=$ac_cv_prog_cxx_cross | |
11333 | ||
d836ee96 | 11334 | echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6 |
138be253 | 11335 | echo "configure:11336: checking if size_t is unsigned int" >&5 |
d836ee96 VZ |
11336 | if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then |
11337 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11338 | else | |
dd2c8b7c | 11339 | cat > conftest.$ac_ext <<EOF |
138be253 | 11340 | #line 11341 "configure" |
d836ee96 VZ |
11341 | #include "confdefs.h" |
11342 | #include <stddef.h> | |
11343 | int main() { | |
11344 | ||
dd2c8b7c VZ |
11345 | return 0; } |
11346 | ||
d836ee96 | 11347 | struct Foo { void foo(size_t); void foo(unsigned int); }; |
dd2c8b7c VZ |
11348 | |
11349 | int bar() { | |
d836ee96 VZ |
11350 | |
11351 | ; return 0; } | |
11352 | EOF | |
138be253 | 11353 | if { (eval echo configure:11354: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
d836ee96 VZ |
11354 | rm -rf conftest* |
11355 | wx_cv_size_t_is_uint=no | |
11356 | else | |
11357 | echo "configure: failed program was:" >&5 | |
11358 | cat conftest.$ac_ext >&5 | |
11359 | rm -rf conftest* | |
11360 | wx_cv_size_t_is_uint=yes | |
11361 | ||
11362 | fi | |
11363 | rm -f conftest* | |
11364 | ||
11365 | fi | |
11366 | ||
11367 | echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6 | |
11368 | ||
11369 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
11370 | cat >> confdefs.h <<\EOF | |
11371 | #define wxSIZE_T_IS_UINT 1 | |
11372 | EOF | |
11373 | ||
11374 | else | |
11375 | echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6 | |
138be253 | 11376 | echo "configure:11377: checking if size_t is unsigned long" >&5 |
d836ee96 VZ |
11377 | if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then |
11378 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11379 | else | |
11380 | cat > conftest.$ac_ext <<EOF | |
138be253 | 11381 | #line 11382 "configure" |
d836ee96 VZ |
11382 | #include "confdefs.h" |
11383 | #include <stddef.h> | |
11384 | int main() { | |
11385 | ||
dd2c8b7c VZ |
11386 | return 0; } |
11387 | ||
d836ee96 | 11388 | struct Foo { void foo(size_t); void foo(unsigned long); }; |
dd2c8b7c VZ |
11389 | |
11390 | int bar() { | |
d836ee96 VZ |
11391 | |
11392 | ; return 0; } | |
11393 | EOF | |
138be253 | 11394 | if { (eval echo configure:11395: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
d836ee96 VZ |
11395 | rm -rf conftest* |
11396 | wx_cv_size_t_is_ulong=no | |
11397 | else | |
11398 | echo "configure: failed program was:" >&5 | |
11399 | cat conftest.$ac_ext >&5 | |
11400 | rm -rf conftest* | |
11401 | wx_cv_size_t_is_ulong=yes | |
11402 | ||
11403 | fi | |
11404 | rm -f conftest* | |
11405 | ||
11406 | fi | |
11407 | ||
11408 | echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6 | |
11409 | ||
11410 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
11411 | cat >> confdefs.h <<\EOF | |
11412 | #define wxSIZE_T_IS_ULONG 1 | |
11413 | EOF | |
11414 | ||
11415 | fi | |
11416 | fi | |
11417 | ||
19af3b06 VZ |
11418 | ac_ext=c |
11419 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11420 | ac_cpp='$CPP $CPPFLAGS' | |
11421 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11422 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11423 | cross_compiling=$ac_cv_prog_cc_cross | |
11424 | ||
11425 | ||
1e487827 | 11426 | |
698dcdb6 | 11427 | echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6 |
138be253 | 11428 | echo "configure:11429: checking for pw_gecos in struct passwd" >&5 |
698dcdb6 VZ |
11429 | if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then |
11430 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11431 | else | |
11432 | ||
11433 | cat > conftest.$ac_ext <<EOF | |
138be253 | 11434 | #line 11435 "configure" |
b12915c1 VZ |
11435 | #include "confdefs.h" |
11436 | #include <pwd.h> | |
698dcdb6 | 11437 | int main() { |
b12915c1 VZ |
11438 | |
11439 | char *p; | |
11440 | struct passwd *pw; | |
11441 | p = pw->pw_gecos; | |
698dcdb6 VZ |
11442 | |
11443 | ; return 0; } | |
11444 | EOF | |
138be253 | 11445 | if { (eval echo configure:11446: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
11446 | rm -rf conftest* |
11447 | ||
b12915c1 | 11448 | wx_cv_struct_pw_gecos=yes |
698dcdb6 | 11449 | |
b12915c1 | 11450 | else |
698dcdb6 VZ |
11451 | echo "configure: failed program was:" >&5 |
11452 | cat conftest.$ac_ext >&5 | |
11453 | rm -rf conftest* | |
11454 | ||
b12915c1 | 11455 | wx_cv_struct_pw_gecos=no |
698dcdb6 VZ |
11456 | |
11457 | ||
6232543b | 11458 | fi |
698dcdb6 VZ |
11459 | rm -f conftest* |
11460 | ||
703e0a69 | 11461 | |
1e487827 | 11462 | fi |
698dcdb6 VZ |
11463 | |
11464 | echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6 | |
b12915c1 | 11465 | |
bd3277fe | 11466 | if test "$wx_cv_struct_pw_gecos" = "yes"; then |
698dcdb6 | 11467 | cat >> confdefs.h <<\EOF |
bd3277fe VZ |
11468 | #define HAVE_PW_GECOS 1 |
11469 | EOF | |
11470 | ||
11471 | fi | |
11472 | ||
698dcdb6 VZ |
11473 | |
11474 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
138be253 | 11475 | echo "configure:11476: checking for working const" >&5 |
698dcdb6 VZ |
11476 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
11477 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11478 | else |
698dcdb6 | 11479 | cat > conftest.$ac_ext <<EOF |
138be253 | 11480 | #line 11481 "configure" |
10f2d63a | 11481 | #include "confdefs.h" |
698dcdb6 VZ |
11482 | |
11483 | int main() { | |
11484 | ||
11485 | /* Ultrix mips cc rejects this. */ | |
11486 | typedef int charset[2]; const charset x; | |
11487 | /* SunOS 4.1.1 cc rejects this. */ | |
11488 | char const *const *ccp; | |
11489 | char **p; | |
11490 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
11491 | struct point {int x, y;}; | |
11492 | static struct point const zero = {0,0}; | |
11493 | /* AIX XL C 1.02.0.0 rejects this. | |
11494 | It does not let you subtract one const X* pointer from another in an arm | |
11495 | of an if-expression whose if-part is not a constant expression */ | |
11496 | const char *g = "string"; | |
11497 | ccp = &g + (g ? g-g : 0); | |
11498 | /* HPUX 7.0 cc rejects these. */ | |
11499 | ++ccp; | |
11500 | p = (char**) ccp; | |
11501 | ccp = (char const *const *) p; | |
11502 | { /* SCO 3.2v4 cc rejects this. */ | |
11503 | char *t; | |
11504 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
11505 | ||
11506 | *t++ = 0; | |
10f2d63a | 11507 | } |
698dcdb6 VZ |
11508 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
11509 | int x[] = {25, 17}; | |
11510 | const int *foo = &x[0]; | |
11511 | ++foo; | |
703e0a69 | 11512 | } |
698dcdb6 VZ |
11513 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
11514 | typedef const int *iptr; | |
11515 | iptr p = 0; | |
11516 | ++p; | |
6232543b | 11517 | } |
698dcdb6 VZ |
11518 | { /* AIX XL C 1.02.0.0 rejects this saying |
11519 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
11520 | struct s { int j; const int *ap[3]; }; | |
11521 | struct s *b; b->j = 5; | |
1e487827 | 11522 | } |
698dcdb6 VZ |
11523 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
11524 | const int foo = 10; | |
11525 | } | |
11526 | ||
11527 | ; return 0; } | |
11528 | EOF | |
138be253 | 11529 | if { (eval echo configure:11530: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 11530 | rm -rf conftest* |
10f2d63a VZ |
11531 | ac_cv_c_const=yes |
11532 | else | |
698dcdb6 VZ |
11533 | echo "configure: failed program was:" >&5 |
11534 | cat conftest.$ac_ext >&5 | |
11535 | rm -rf conftest* | |
11536 | ac_cv_c_const=no | |
10f2d63a | 11537 | fi |
698dcdb6 | 11538 | rm -f conftest* |
10f2d63a | 11539 | fi |
1e487827 | 11540 | |
698dcdb6 VZ |
11541 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
11542 | if test $ac_cv_c_const = no; then | |
11543 | cat >> confdefs.h <<\EOF | |
11544 | #define const | |
10f2d63a VZ |
11545 | EOF |
11546 | ||
11547 | fi | |
11548 | ||
698dcdb6 | 11549 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
138be253 | 11550 | echo "configure:11551: checking for inline" >&5 |
698dcdb6 VZ |
11551 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
11552 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
11553 | else |
11554 | ac_cv_c_inline=no | |
11555 | for ac_kw in inline __inline__ __inline; do | |
698dcdb6 | 11556 | cat > conftest.$ac_ext <<EOF |
138be253 | 11557 | #line 11558 "configure" |
10f2d63a VZ |
11558 | #include "confdefs.h" |
11559 | ||
698dcdb6 VZ |
11560 | int main() { |
11561 | } $ac_kw foo() { | |
11562 | ; return 0; } | |
11563 | EOF | |
138be253 | 11564 | if { (eval echo configure:11565: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 11565 | rm -rf conftest* |
10f2d63a VZ |
11566 | ac_cv_c_inline=$ac_kw; break |
11567 | else | |
698dcdb6 VZ |
11568 | echo "configure: failed program was:" >&5 |
11569 | cat conftest.$ac_ext >&5 | |
10f2d63a | 11570 | fi |
698dcdb6 | 11571 | rm -f conftest* |
10f2d63a VZ |
11572 | done |
11573 | ||
11574 | fi | |
698dcdb6 VZ |
11575 | |
11576 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | |
11577 | case "$ac_cv_c_inline" in | |
10f2d63a | 11578 | inline | yes) ;; |
698dcdb6 VZ |
11579 | no) cat >> confdefs.h <<\EOF |
11580 | #define inline | |
10f2d63a VZ |
11581 | EOF |
11582 | ;; | |
698dcdb6 | 11583 | *) cat >> confdefs.h <<EOF |
10f2d63a VZ |
11584 | #define inline $ac_cv_c_inline |
11585 | EOF | |
11586 | ;; | |
11587 | esac | |
11588 | ||
698dcdb6 VZ |
11589 | |
11590 | echo $ac_n "checking size of char""... $ac_c" 1>&6 | |
138be253 | 11591 | echo "configure:11592: checking size of char" >&5 |
698dcdb6 VZ |
11592 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
11593 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6232543b | 11594 | else |
1e487827 | 11595 | if test "$cross_compiling" = yes; then |
698dcdb6 | 11596 | ac_cv_sizeof_char=1 |
1e487827 | 11597 | else |
698dcdb6 | 11598 | cat > conftest.$ac_ext <<EOF |
138be253 | 11599 | #line 11600 "configure" |
1e487827 | 11600 | #include "confdefs.h" |
698dcdb6 VZ |
11601 | #include <stdio.h> |
11602 | main() | |
1e487827 | 11603 | { |
698dcdb6 VZ |
11604 | FILE *f=fopen("conftestval", "w"); |
11605 | if (!f) exit(1); | |
11606 | fprintf(f, "%d\n", sizeof(char)); | |
11607 | exit(0); | |
1e487827 | 11608 | } |
698dcdb6 | 11609 | EOF |
138be253 | 11610 | if { (eval echo configure:11611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
11611 | then |
11612 | ac_cv_sizeof_char=`cat conftestval` | |
1e487827 | 11613 | else |
698dcdb6 VZ |
11614 | echo "configure: failed program was:" >&5 |
11615 | cat conftest.$ac_ext >&5 | |
11616 | rm -fr conftest* | |
1e487827 VS |
11617 | ac_cv_sizeof_char=0 |
11618 | fi | |
698dcdb6 | 11619 | rm -fr conftest* |
1e487827 | 11620 | fi |
10f2d63a | 11621 | |
1e487827 | 11622 | fi |
698dcdb6 VZ |
11623 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 |
11624 | cat >> confdefs.h <<EOF | |
11625 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
1e487827 | 11626 | EOF |
6232543b | 11627 | |
703e0a69 | 11628 | |
698dcdb6 | 11629 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
138be253 | 11630 | echo "configure:11631: checking size of short" >&5 |
698dcdb6 VZ |
11631 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
11632 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 11633 | else |
1e487827 | 11634 | if test "$cross_compiling" = yes; then |
698dcdb6 | 11635 | ac_cv_sizeof_short=2 |
1e487827 | 11636 | else |
698dcdb6 | 11637 | cat > conftest.$ac_ext <<EOF |
138be253 | 11638 | #line 11639 "configure" |
1e487827 | 11639 | #include "confdefs.h" |
698dcdb6 VZ |
11640 | #include <stdio.h> |
11641 | main() | |
1e487827 | 11642 | { |
698dcdb6 VZ |
11643 | FILE *f=fopen("conftestval", "w"); |
11644 | if (!f) exit(1); | |
11645 | fprintf(f, "%d\n", sizeof(short)); | |
11646 | exit(0); | |
1e487827 | 11647 | } |
698dcdb6 | 11648 | EOF |
138be253 | 11649 | if { (eval echo configure:11650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
11650 | then |
11651 | ac_cv_sizeof_short=`cat conftestval` | |
1e487827 | 11652 | else |
698dcdb6 VZ |
11653 | echo "configure: failed program was:" >&5 |
11654 | cat conftest.$ac_ext >&5 | |
11655 | rm -fr conftest* | |
11656 | ac_cv_sizeof_short=0 | |
1e487827 | 11657 | fi |
698dcdb6 | 11658 | rm -fr conftest* |
1e487827 | 11659 | fi |
698dcdb6 | 11660 | |
1e487827 | 11661 | fi |
698dcdb6 VZ |
11662 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
11663 | cat >> confdefs.h <<EOF | |
11664 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
11665 | EOF | |
11666 | ||
11667 | ||
11668 | echo $ac_n "checking size of int *""... $ac_c" 1>&6 | |
138be253 | 11669 | echo "configure:11670: checking size of int *" >&5 |
698dcdb6 VZ |
11670 | if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then |
11671 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
11672 | else |
11673 | if test "$cross_compiling" = yes; then | |
698dcdb6 | 11674 | ac_cv_sizeof_int_p=4 |
10f2d63a | 11675 | else |
698dcdb6 | 11676 | cat > conftest.$ac_ext <<EOF |
138be253 | 11677 | #line 11678 "configure" |
10f2d63a | 11678 | #include "confdefs.h" |
698dcdb6 VZ |
11679 | #include <stdio.h> |
11680 | main() | |
10f2d63a | 11681 | { |
698dcdb6 VZ |
11682 | FILE *f=fopen("conftestval", "w"); |
11683 | if (!f) exit(1); | |
11684 | fprintf(f, "%d\n", sizeof(int *)); | |
11685 | exit(0); | |
10f2d63a | 11686 | } |
698dcdb6 | 11687 | EOF |
138be253 | 11688 | if { (eval echo configure:11689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
11689 | then |
11690 | ac_cv_sizeof_int_p=`cat conftestval` | |
10f2d63a | 11691 | else |
698dcdb6 VZ |
11692 | echo "configure: failed program was:" >&5 |
11693 | cat conftest.$ac_ext >&5 | |
11694 | rm -fr conftest* | |
11695 | ac_cv_sizeof_int_p=0 | |
6232543b | 11696 | fi |
698dcdb6 | 11697 | rm -fr conftest* |
1e487827 | 11698 | fi |
698dcdb6 | 11699 | |
1e487827 | 11700 | fi |
698dcdb6 VZ |
11701 | echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6 |
11702 | cat >> confdefs.h <<EOF | |
11703 | #define SIZEOF_INT_P $ac_cv_sizeof_int_p | |
10f2d63a VZ |
11704 | EOF |
11705 | ||
698dcdb6 VZ |
11706 | |
11707 | echo $ac_n "checking size of int""... $ac_c" 1>&6 | |
138be253 | 11708 | echo "configure:11709: checking size of int" >&5 |
698dcdb6 VZ |
11709 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
11710 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
11711 | else |
11712 | if test "$cross_compiling" = yes; then | |
698dcdb6 | 11713 | ac_cv_sizeof_int=4 |
703e0a69 | 11714 | else |
698dcdb6 | 11715 | cat > conftest.$ac_ext <<EOF |
138be253 | 11716 | #line 11717 "configure" |
1e487827 | 11717 | #include "confdefs.h" |
698dcdb6 VZ |
11718 | #include <stdio.h> |
11719 | main() | |
1e487827 | 11720 | { |
698dcdb6 VZ |
11721 | FILE *f=fopen("conftestval", "w"); |
11722 | if (!f) exit(1); | |
11723 | fprintf(f, "%d\n", sizeof(int)); | |
11724 | exit(0); | |
1e487827 | 11725 | } |
698dcdb6 | 11726 | EOF |
138be253 | 11727 | if { (eval echo configure:11728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
11728 | then |
11729 | ac_cv_sizeof_int=`cat conftestval` | |
11730 | else | |
11731 | echo "configure: failed program was:" >&5 | |
11732 | cat conftest.$ac_ext >&5 | |
11733 | rm -fr conftest* | |
11734 | ac_cv_sizeof_int=0 | |
703e0a69 | 11735 | fi |
698dcdb6 VZ |
11736 | rm -fr conftest* |
11737 | fi | |
11738 | ||
11739 | fi | |
11740 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | |
11741 | cat >> confdefs.h <<EOF | |
11742 | #define SIZEOF_INT $ac_cv_sizeof_int | |
11743 | EOF | |
11744 | ||
11745 | ||
11746 | echo $ac_n "checking size of long""... $ac_c" 1>&6 | |
138be253 | 11747 | echo "configure:11748: checking size of long" >&5 |
698dcdb6 VZ |
11748 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
11749 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
11750 | else |
11751 | if test "$cross_compiling" = yes; then | |
698dcdb6 | 11752 | ac_cv_sizeof_long=4 |
10f2d63a | 11753 | else |
698dcdb6 | 11754 | cat > conftest.$ac_ext <<EOF |
138be253 | 11755 | #line 11756 "configure" |
10f2d63a | 11756 | #include "confdefs.h" |
698dcdb6 VZ |
11757 | #include <stdio.h> |
11758 | main() | |
10f2d63a | 11759 | { |
698dcdb6 VZ |
11760 | FILE *f=fopen("conftestval", "w"); |
11761 | if (!f) exit(1); | |
11762 | fprintf(f, "%d\n", sizeof(long)); | |
11763 | exit(0); | |
10f2d63a | 11764 | } |
698dcdb6 | 11765 | EOF |
138be253 | 11766 | if { (eval echo configure:11767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
11767 | then |
11768 | ac_cv_sizeof_long=`cat conftestval` | |
10f2d63a | 11769 | else |
698dcdb6 VZ |
11770 | echo "configure: failed program was:" >&5 |
11771 | cat conftest.$ac_ext >&5 | |
11772 | rm -fr conftest* | |
11773 | ac_cv_sizeof_long=0 | |
10f2d63a | 11774 | fi |
698dcdb6 | 11775 | rm -fr conftest* |
10f2d63a | 11776 | fi |
698dcdb6 | 11777 | |
10f2d63a | 11778 | fi |
698dcdb6 VZ |
11779 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 |
11780 | cat >> confdefs.h <<EOF | |
11781 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
11782 | EOF | |
11783 | ||
11784 | ||
11785 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
138be253 | 11786 | echo "configure:11787: checking size of long long" >&5 |
698dcdb6 VZ |
11787 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
11788 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11789 | else | |
11790 | if test "$cross_compiling" = yes; then | |
11791 | ac_cv_sizeof_long_long=0 | |
11792 | else | |
11793 | cat > conftest.$ac_ext <<EOF | |
138be253 | 11794 | #line 11795 "configure" |
698dcdb6 VZ |
11795 | #include "confdefs.h" |
11796 | #include <stdio.h> | |
11797 | main() | |
11798 | { | |
11799 | FILE *f=fopen("conftestval", "w"); | |
11800 | if (!f) exit(1); | |
11801 | fprintf(f, "%d\n", sizeof(long long)); | |
11802 | exit(0); | |
11803 | } | |
11804 | EOF | |
138be253 | 11805 | if { (eval echo configure:11806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
11806 | then |
11807 | ac_cv_sizeof_long_long=`cat conftestval` | |
6232543b | 11808 | else |
698dcdb6 VZ |
11809 | echo "configure: failed program was:" >&5 |
11810 | cat conftest.$ac_ext >&5 | |
11811 | rm -fr conftest* | |
6232543b VS |
11812 | ac_cv_sizeof_long_long=0 |
11813 | fi | |
698dcdb6 VZ |
11814 | rm -fr conftest* |
11815 | fi | |
11816 | ||
703e0a69 | 11817 | fi |
698dcdb6 VZ |
11818 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
11819 | cat >> confdefs.h <<EOF | |
10f2d63a VZ |
11820 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
11821 | EOF | |
11822 | ||
1e487827 | 11823 | |
698dcdb6 VZ |
11824 | |
11825 | echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6 | |
138be253 | 11826 | echo "configure:11827: checking size of wchar_t" >&5 |
698dcdb6 VZ |
11827 | if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then |
11828 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11829 | else | |
11830 | ||
b93d0d08 VS |
11831 | if test "$cross_compiling" = yes; then |
11832 | wx_cv_sizeof_wchar_t=4 | |
1e6feb95 | 11833 | |
b93d0d08 | 11834 | else |
698dcdb6 | 11835 | cat > conftest.$ac_ext <<EOF |
138be253 | 11836 | #line 11837 "configure" |
b93d0d08 VS |
11837 | #include "confdefs.h" |
11838 | ||
1e6feb95 VZ |
11839 | #ifdef HAVE_WCHAR_H |
11840 | # include <wchar.h> | |
11841 | #endif | |
11842 | #ifdef HAVE_STDLIB_H | |
11843 | # include <stdlib.h> | |
11844 | #endif | |
11845 | #include <stdio.h> | |
11846 | int main() | |
11847 | { | |
11848 | FILE *f=fopen("conftestval", "w"); | |
11849 | if (!f) exit(1); | |
11850 | fprintf(f, "%i", sizeof(wchar_t)); | |
11851 | exit(0); | |
11852 | } | |
698dcdb6 VZ |
11853 | |
11854 | EOF | |
138be253 | 11855 | if { (eval echo configure:11856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 11856 | then |
b93d0d08 VS |
11857 | wx_cv_sizeof_wchar_t=`cat conftestval` |
11858 | else | |
698dcdb6 VZ |
11859 | echo "configure: failed program was:" >&5 |
11860 | cat conftest.$ac_ext >&5 | |
11861 | rm -fr conftest* | |
11862 | wx_cv_sizeof_wchar_t=0 | |
b93d0d08 | 11863 | fi |
698dcdb6 | 11864 | rm -fr conftest* |
b93d0d08 VS |
11865 | fi |
11866 | ||
698dcdb6 | 11867 | |
b93d0d08 VS |
11868 | fi |
11869 | ||
698dcdb6 VZ |
11870 | echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6 |
11871 | ||
11872 | cat >> confdefs.h <<EOF | |
28c6addc | 11873 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t |
b93d0d08 VS |
11874 | EOF |
11875 | ||
698dcdb6 | 11876 | |
698dcdb6 | 11877 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
138be253 | 11878 | echo "configure:11879: checking whether byte ordering is bigendian" >&5 |
698dcdb6 VZ |
11879 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
11880 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
11881 | else |
11882 | ac_cv_c_bigendian=unknown | |
11883 | # See if sys/param.h defines the BYTE_ORDER macro. | |
698dcdb6 | 11884 | cat > conftest.$ac_ext <<EOF |
138be253 | 11885 | #line 11886 "configure" |
10f2d63a VZ |
11886 | #include "confdefs.h" |
11887 | #include <sys/types.h> | |
11888 | #include <sys/param.h> | |
698dcdb6 | 11889 | int main() { |
10f2d63a VZ |
11890 | |
11891 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
11892 | bogus endian macros | |
11893 | #endif | |
698dcdb6 VZ |
11894 | ; return 0; } |
11895 | EOF | |
138be253 | 11896 | if { (eval echo configure:11897: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 11897 | rm -rf conftest* |
10f2d63a | 11898 | # It does; now see whether it defined to BIG_ENDIAN or not. |
698dcdb6 | 11899 | cat > conftest.$ac_ext <<EOF |
138be253 | 11900 | #line 11901 "configure" |
10f2d63a VZ |
11901 | #include "confdefs.h" |
11902 | #include <sys/types.h> | |
11903 | #include <sys/param.h> | |
698dcdb6 | 11904 | int main() { |
10f2d63a VZ |
11905 | |
11906 | #if BYTE_ORDER != BIG_ENDIAN | |
11907 | not big endian | |
11908 | #endif | |
698dcdb6 VZ |
11909 | ; return 0; } |
11910 | EOF | |
138be253 | 11911 | if { (eval echo configure:11912: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 11912 | rm -rf conftest* |
10f2d63a VZ |
11913 | ac_cv_c_bigendian=yes |
11914 | else | |
698dcdb6 VZ |
11915 | echo "configure: failed program was:" >&5 |
11916 | cat conftest.$ac_ext >&5 | |
11917 | rm -rf conftest* | |
11918 | ac_cv_c_bigendian=no | |
10f2d63a | 11919 | fi |
698dcdb6 | 11920 | rm -f conftest* |
10f2d63a | 11921 | else |
698dcdb6 VZ |
11922 | echo "configure: failed program was:" >&5 |
11923 | cat conftest.$ac_ext >&5 | |
10f2d63a | 11924 | fi |
698dcdb6 | 11925 | rm -f conftest* |
10f2d63a VZ |
11926 | if test $ac_cv_c_bigendian = unknown; then |
11927 | if test "$cross_compiling" = yes; then | |
11928 | ac_cv_c_bigendian=unknown | |
11929 | else | |
698dcdb6 | 11930 | cat > conftest.$ac_ext <<EOF |
138be253 | 11931 | #line 11932 "configure" |
10f2d63a VZ |
11932 | #include "confdefs.h" |
11933 | main () { | |
11934 | /* Are we little or big endian? From Harbison&Steele. */ | |
11935 | union | |
11936 | { | |
11937 | long l; | |
11938 | char c[sizeof (long)]; | |
11939 | } u; | |
11940 | u.l = 1; | |
11941 | exit (u.c[sizeof (long) - 1] == 1); | |
11942 | } | |
698dcdb6 | 11943 | EOF |
138be253 | 11944 | if { (eval echo configure:11945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 11945 | then |
10f2d63a VZ |
11946 | ac_cv_c_bigendian=no |
11947 | else | |
698dcdb6 VZ |
11948 | echo "configure: failed program was:" >&5 |
11949 | cat conftest.$ac_ext >&5 | |
11950 | rm -fr conftest* | |
11951 | ac_cv_c_bigendian=yes | |
10f2d63a | 11952 | fi |
698dcdb6 | 11953 | rm -fr conftest* |
10f2d63a | 11954 | fi |
698dcdb6 | 11955 | |
10f2d63a VZ |
11956 | fi |
11957 | fi | |
698dcdb6 VZ |
11958 | |
11959 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | |
10f2d63a | 11960 | if test $ac_cv_c_bigendian = unknown; then |
698dcdb6 | 11961 | 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 |
11962 | fi |
11963 | if test $ac_cv_c_bigendian = yes; then | |
698dcdb6 | 11964 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
11965 | #define WORDS_BIGENDIAN 1 |
11966 | EOF | |
11967 | ||
11968 | fi | |
11969 | ||
698dcdb6 VZ |
11970 | |
11971 | ||
10f2d63a | 11972 | if test "$cross_compiling" = "yes"; then |
698dcdb6 | 11973 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
11974 | #define wxUSE_IOSTREAMH 1 |
11975 | EOF | |
11976 | ||
11977 | else | |
698dcdb6 VZ |
11978 | |
11979 | ac_ext=C | |
11980 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 11981 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
11982 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11983 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11984 | cross_compiling=$ac_cv_prog_cxx_cross | |
11985 | ||
703e0a69 | 11986 | |
698dcdb6 | 11987 | for ac_hdr in iostream |
10f2d63a | 11988 | do |
698dcdb6 VZ |
11989 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11990 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
138be253 | 11991 | echo "configure:11992: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
11992 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11993 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11994 | else | |
11995 | cat > conftest.$ac_ext <<EOF | |
138be253 | 11996 | #line 11997 "configure" |
10f2d63a | 11997 | #include "confdefs.h" |
698dcdb6 VZ |
11998 | #include <$ac_hdr> |
11999 | EOF | |
12000 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
138be253 | 12001 | { (eval echo configure:12002: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
12002 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12003 | if test -z "$ac_err"; then | |
12004 | rm -rf conftest* | |
12005 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 12006 | else |
698dcdb6 VZ |
12007 | echo "$ac_err" >&5 |
12008 | echo "configure: failed program was:" >&5 | |
10f2d63a | 12009 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
12010 | rm -rf conftest* |
12011 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 12012 | fi |
698dcdb6 | 12013 | rm -f conftest* |
10f2d63a | 12014 | fi |
698dcdb6 VZ |
12015 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12016 | echo "$ac_t""yes" 1>&6 | |
12017 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12018 | cat >> confdefs.h <<EOF | |
12019 | #define $ac_tr_hdr 1 | |
10f2d63a | 12020 | EOF |
698dcdb6 VZ |
12021 | |
12022 | else | |
12023 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
12024 | fi |
12025 | done | |
12026 | ||
698dcdb6 | 12027 | |
57fe5ed0 VZ |
12028 | if test "$ac_cv_header_iostream" = "yes" ; then |
12029 | : | |
12030 | else | |
698dcdb6 | 12031 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
12032 | #define wxUSE_IOSTREAMH 1 |
12033 | EOF | |
12034 | ||
10f2d63a VZ |
12035 | fi |
12036 | ||
12037 | ac_ext=c | |
698dcdb6 | 12038 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 12039 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
12040 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12041 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12042 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a VZ |
12043 | |
12044 | fi | |
12045 | ||
703e0a69 | 12046 | |
698dcdb6 VZ |
12047 | |
12048 | echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6 | |
138be253 | 12049 | echo "configure:12050: checking if C++ compiler supports bool" >&5 |
698dcdb6 VZ |
12050 | if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then |
12051 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12052 | else | |
12053 | ||
12054 | ||
12055 | ac_ext=C | |
12056 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 12057 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
12058 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12059 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12060 | cross_compiling=$ac_cv_prog_cxx_cross | |
10f2d63a | 12061 | |
698dcdb6 VZ |
12062 | |
12063 | cat > conftest.$ac_ext <<EOF | |
138be253 | 12064 | #line 12065 "configure" |
10f2d63a VZ |
12065 | #include "confdefs.h" |
12066 | ||
698dcdb6 VZ |
12067 | |
12068 | int main() { | |
10f2d63a VZ |
12069 | |
12070 | bool b = true; | |
12071 | ||
12072 | return 0; | |
698dcdb6 VZ |
12073 | |
12074 | ; return 0; } | |
12075 | EOF | |
138be253 | 12076 | if { (eval echo configure:12077: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
12077 | rm -rf conftest* |
12078 | ||
10f2d63a | 12079 | wx_cv_cpp_bool=yes |
698dcdb6 | 12080 | |
10f2d63a | 12081 | else |
698dcdb6 VZ |
12082 | echo "configure: failed program was:" >&5 |
12083 | cat conftest.$ac_ext >&5 | |
12084 | rm -rf conftest* | |
12085 | ||
10f2d63a | 12086 | wx_cv_cpp_bool=no |
698dcdb6 VZ |
12087 | |
12088 | ||
10f2d63a | 12089 | fi |
698dcdb6 | 12090 | rm -f conftest* |
10f2d63a VZ |
12091 | |
12092 | ac_ext=c | |
698dcdb6 | 12093 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 12094 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
12095 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12096 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12097 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a | 12098 | |
698dcdb6 | 12099 | |
10f2d63a | 12100 | fi |
698dcdb6 VZ |
12101 | |
12102 | echo "$ac_t""$wx_cv_cpp_bool" 1>&6 | |
10f2d63a VZ |
12103 | |
12104 | if test "$wx_cv_cpp_bool" = "yes"; then | |
698dcdb6 | 12105 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
12106 | #define HAVE_BOOL 1 |
12107 | EOF | |
12108 | ||
12109 | fi | |
12110 | ||
1e487827 | 12111 | |
698dcdb6 | 12112 | |
698dcdb6 | 12113 | echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6 |
138be253 | 12114 | echo "configure:12115: checking for wcslen in -lc" >&5 |
698dcdb6 VZ |
12115 | ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'` |
12116 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12117 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12118 | else |
698dcdb6 | 12119 | ac_save_LIBS="$LIBS" |
10f2d63a | 12120 | LIBS="-lc $LIBS" |
698dcdb6 | 12121 | cat > conftest.$ac_ext <<EOF |
138be253 | 12122 | #line 12123 "configure" |
10f2d63a VZ |
12123 | #include "confdefs.h" |
12124 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12125 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12126 | builtin and then its argument prototype would still apply. */ |
12127 | char wcslen(); | |
12128 | ||
12129 | int main() { | |
12130 | wcslen() | |
12131 | ; return 0; } | |
12132 | EOF | |
138be253 | 12133 | if { (eval echo configure:12134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12134 | rm -rf conftest* |
12135 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12136 | else | |
12137 | echo "configure: failed program was:" >&5 | |
12138 | cat conftest.$ac_ext >&5 | |
12139 | rm -rf conftest* | |
12140 | eval "ac_cv_lib_$ac_lib_var=no" | |
12141 | fi | |
12142 | rm -f conftest* | |
12143 | LIBS="$ac_save_LIBS" | |
12144 | ||
12145 | fi | |
12146 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12147 | echo "$ac_t""yes" 1>&6 | |
12148 | ||
12149 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
12150 | #define HAVE_WCSLEN 1 |
12151 | EOF | |
12152 | ||
12153 | WCHAR_LINK="" | |
698dcdb6 | 12154 | |
10f2d63a | 12155 | else |
698dcdb6 | 12156 | echo "$ac_t""no" 1>&6 |
10f2d63a | 12157 | |
698dcdb6 | 12158 | echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6 |
138be253 | 12159 | echo "configure:12160: checking for wcslen in -lw" >&5 |
698dcdb6 VZ |
12160 | ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'` |
12161 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12162 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12163 | else |
698dcdb6 | 12164 | ac_save_LIBS="$LIBS" |
10f2d63a | 12165 | LIBS="-lw $LIBS" |
698dcdb6 | 12166 | cat > conftest.$ac_ext <<EOF |
138be253 | 12167 | #line 12168 "configure" |
10f2d63a VZ |
12168 | #include "confdefs.h" |
12169 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12170 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12171 | builtin and then its argument prototype would still apply. */ |
12172 | char wcslen(); | |
12173 | ||
12174 | int main() { | |
12175 | wcslen() | |
12176 | ; return 0; } | |
12177 | EOF | |
138be253 | 12178 | if { (eval echo configure:12179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12179 | rm -rf conftest* |
12180 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12181 | else | |
12182 | echo "configure: failed program was:" >&5 | |
12183 | cat conftest.$ac_ext >&5 | |
12184 | rm -rf conftest* | |
12185 | eval "ac_cv_lib_$ac_lib_var=no" | |
12186 | fi | |
12187 | rm -f conftest* | |
12188 | LIBS="$ac_save_LIBS" | |
12189 | ||
12190 | fi | |
12191 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12192 | echo "$ac_t""yes" 1>&6 | |
12193 | ||
12194 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
12195 | #define HAVE_WCSLEN 1 |
12196 | EOF | |
12197 | ||
12198 | WCHAR_LINK="-lw" | |
698dcdb6 VZ |
12199 | |
12200 | else | |
12201 | echo "$ac_t""no" 1>&6 | |
6232543b | 12202 | fi |
10f2d63a | 12203 | |
698dcdb6 | 12204 | |
1e487827 | 12205 | fi |
703e0a69 | 12206 | |
698dcdb6 VZ |
12207 | |
12208 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 | |
138be253 | 12209 | echo "configure:12210: checking for vprintf" >&5 |
698dcdb6 VZ |
12210 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
12211 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12212 | else | |
12213 | cat > conftest.$ac_ext <<EOF | |
138be253 | 12214 | #line 12215 "configure" |
10f2d63a VZ |
12215 | #include "confdefs.h" |
12216 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 12217 | which can conflict with char vprintf(); below. */ |
10f2d63a VZ |
12218 | #include <assert.h> |
12219 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12220 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12221 | builtin and then its argument prototype would still apply. */ |
12222 | char vprintf(); | |
12223 | ||
12224 | int main() { | |
10f2d63a VZ |
12225 | |
12226 | /* The GNU C library defines this for functions which it implements | |
12227 | to always fail with ENOSYS. Some functions are actually named | |
12228 | something starting with __ and the normal name is an alias. */ | |
698dcdb6 | 12229 | #if defined (__stub_vprintf) || defined (__stub___vprintf) |
10f2d63a VZ |
12230 | choke me |
12231 | #else | |
698dcdb6 | 12232 | vprintf(); |
10f2d63a VZ |
12233 | #endif |
12234 | ||
698dcdb6 VZ |
12235 | ; return 0; } |
12236 | EOF | |
138be253 | 12237 | if { (eval echo configure:12238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12238 | rm -rf conftest* |
12239 | eval "ac_cv_func_vprintf=yes" | |
12240 | else | |
12241 | echo "configure: failed program was:" >&5 | |
12242 | cat conftest.$ac_ext >&5 | |
12243 | rm -rf conftest* | |
12244 | eval "ac_cv_func_vprintf=no" | |
12245 | fi | |
12246 | rm -f conftest* | |
12247 | fi | |
12248 | ||
12249 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then | |
12250 | echo "$ac_t""yes" 1>&6 | |
12251 | cat >> confdefs.h <<\EOF | |
12252 | #define HAVE_VPRINTF 1 | |
12253 | EOF | |
12254 | ||
12255 | else | |
12256 | echo "$ac_t""no" 1>&6 | |
12257 | fi | |
12258 | ||
12259 | if test "$ac_cv_func_vprintf" != yes; then | |
12260 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | |
138be253 | 12261 | echo "configure:12262: checking for _doprnt" >&5 |
698dcdb6 VZ |
12262 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
12263 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12264 | else | |
12265 | cat > conftest.$ac_ext <<EOF | |
138be253 | 12266 | #line 12267 "configure" |
10f2d63a VZ |
12267 | #include "confdefs.h" |
12268 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 12269 | which can conflict with char _doprnt(); below. */ |
10f2d63a VZ |
12270 | #include <assert.h> |
12271 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12272 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12273 | builtin and then its argument prototype would still apply. */ |
12274 | char _doprnt(); | |
12275 | ||
12276 | int main() { | |
10f2d63a VZ |
12277 | |
12278 | /* The GNU C library defines this for functions which it implements | |
12279 | to always fail with ENOSYS. Some functions are actually named | |
12280 | something starting with __ and the normal name is an alias. */ | |
12281 | #if defined (__stub__doprnt) || defined (__stub____doprnt) | |
12282 | choke me | |
12283 | #else | |
698dcdb6 | 12284 | _doprnt(); |
10f2d63a VZ |
12285 | #endif |
12286 | ||
698dcdb6 VZ |
12287 | ; return 0; } |
12288 | EOF | |
138be253 | 12289 | if { (eval echo configure:12290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12290 | rm -rf conftest* |
12291 | eval "ac_cv_func__doprnt=yes" | |
12292 | else | |
12293 | echo "configure: failed program was:" >&5 | |
12294 | cat conftest.$ac_ext >&5 | |
12295 | rm -rf conftest* | |
12296 | eval "ac_cv_func__doprnt=no" | |
12297 | fi | |
12298 | rm -f conftest* | |
12299 | fi | |
12300 | ||
12301 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then | |
12302 | echo "$ac_t""yes" 1>&6 | |
12303 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
12304 | #define HAVE_DOPRNT 1 |
12305 | EOF | |
12306 | ||
698dcdb6 VZ |
12307 | else |
12308 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
12309 | fi |
12310 | ||
12311 | fi | |
12312 | ||
1e487827 | 12313 | |
698dcdb6 VZ |
12314 | |
12315 | ||
12316 | ||
12317 | ||
12318 | ||
12319 | echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6 | |
138be253 | 12320 | echo "configure:12321: checking for vsnprintf" >&5 |
698dcdb6 VZ |
12321 | if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then |
12322 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12323 | else | |
12324 | ||
12325 | cat > conftest.$ac_ext <<EOF | |
138be253 | 12326 | #line 12327 "configure" |
f6bcfd97 BP |
12327 | #include "confdefs.h" |
12328 | ||
12329 | #include <stdio.h> | |
698dcdb6 VZ |
12330 | #include <stdarg.h> |
12331 | ||
12332 | int main() { | |
10f2d63a | 12333 | |
f6bcfd97 | 12334 | int wx_test_vsnprintf(const char *, ...); |
10f2d63a | 12335 | |
f6bcfd97 BP |
12336 | wx_test_vsnprintf("%s"); |
12337 | return 0; | |
12338 | } | |
12339 | ||
12340 | int wx_test_vsnprintf(const char *fmt, ...) | |
12341 | { | |
12342 | char *s; | |
12343 | ||
12344 | va_list argp; | |
12345 | va_start(argp, fmt); | |
12346 | vsnprintf(s, 42, fmt, argp); | |
12347 | va_end(argp); | |
698dcdb6 VZ |
12348 | |
12349 | ; return 0; } | |
12350 | EOF | |
138be253 | 12351 | if { (eval echo configure:12352: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
12352 | rm -rf conftest* |
12353 | ||
f6bcfd97 | 12354 | wx_cv_func_vsnprintf=yes |
698dcdb6 | 12355 | |
10f2d63a | 12356 | else |
698dcdb6 VZ |
12357 | echo "configure: failed program was:" >&5 |
12358 | cat conftest.$ac_ext >&5 | |
12359 | rm -rf conftest* | |
12360 | ||
12361 | cat > conftest.$ac_ext <<EOF | |
138be253 | 12362 | #line 12363 "configure" |
c521c494 RL |
12363 | #include "confdefs.h" |
12364 | ||
12365 | #include <stdio.h> | |
12366 | #include <stdarg.h> | |
698dcdb6 VZ |
12367 | |
12368 | int main() { | |
c521c494 RL |
12369 | |
12370 | int wx_test_vsnprintf(const char *, ...); | |
12371 | ||
12372 | wx_test_vsnprintf("%s"); | |
12373 | return 0; | |
12374 | } | |
12375 | ||
12376 | int wx_test_vsnprintf(const char *fmt, ...) | |
12377 | { | |
12378 | char *s; | |
12379 | ||
12380 | va_list argp; | |
12381 | va_start(argp, fmt); | |
12382 | _vsnprintf(s, 42, fmt, argp); | |
12383 | va_end(argp); | |
698dcdb6 VZ |
12384 | |
12385 | ; return 0; } | |
12386 | EOF | |
138be253 | 12387 | if { (eval echo configure:12388: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
12388 | rm -rf conftest* |
12389 | ||
c521c494 | 12390 | wx_cv_func_vsnprintf=yes |
698dcdb6 | 12391 | |
c521c494 | 12392 | else |
698dcdb6 VZ |
12393 | echo "configure: failed program was:" >&5 |
12394 | cat conftest.$ac_ext >&5 | |
12395 | rm -rf conftest* | |
12396 | ||
c521c494 | 12397 | wx_cv_func_vsnprintf=no |
698dcdb6 | 12398 | |
10f2d63a | 12399 | fi |
698dcdb6 VZ |
12400 | rm -f conftest* |
12401 | ||
6232543b | 12402 | fi |
698dcdb6 | 12403 | rm -f conftest* |
703e0a69 | 12404 | |
1e487827 | 12405 | fi |
698dcdb6 VZ |
12406 | |
12407 | echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6 | |
10f2d63a | 12408 | |
9d8deca0 | 12409 | if test "$wx_cv_func_vsnprintf" = yes; then |
698dcdb6 | 12410 | cat >> confdefs.h <<\EOF |
9d8deca0 VZ |
12411 | #define HAVE_VSNPRINTF 1 |
12412 | EOF | |
12413 | ||
12414 | else | |
698dcdb6 | 12415 | echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2 |
9d8deca0 VZ |
12416 | fi |
12417 | ||
698dcdb6 | 12418 | echo $ac_n "checking for vsscanf""... $ac_c" 1>&6 |
138be253 | 12419 | echo "configure:12420: checking for vsscanf" >&5 |
698dcdb6 VZ |
12420 | if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then |
12421 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12422 | else |
698dcdb6 VZ |
12423 | |
12424 | cat > conftest.$ac_ext <<EOF | |
138be253 | 12425 | #line 12426 "configure" |
10f2d63a | 12426 | #include "confdefs.h" |
10f2d63a | 12427 | |
f6bcfd97 BP |
12428 | #include <stdio.h> |
12429 | #include <stdarg.h> | |
698dcdb6 VZ |
12430 | |
12431 | int main() { | |
10f2d63a | 12432 | |
f6bcfd97 | 12433 | int wx_test_vsscanf(const char *, ...); |
10f2d63a | 12434 | |
f6bcfd97 BP |
12435 | wx_test_vsscanf("%d"); |
12436 | return 0; | |
10f2d63a VZ |
12437 | } |
12438 | ||
f6bcfd97 | 12439 | int wx_test_vsscanf(const char *fmt, ...) |
10f2d63a | 12440 | { |
f6bcfd97 BP |
12441 | va_list argp; |
12442 | va_start(argp, fmt); | |
12443 | vsscanf("42", fmt, argp); | |
12444 | va_end(argp); | |
698dcdb6 VZ |
12445 | |
12446 | ; return 0; } | |
12447 | EOF | |
138be253 | 12448 | if { (eval echo configure:12449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
12449 | rm -rf conftest* |
12450 | ||
f6bcfd97 | 12451 | wx_cv_func_vsscanf=yes |
698dcdb6 | 12452 | |
10f2d63a | 12453 | else |
698dcdb6 VZ |
12454 | echo "configure: failed program was:" >&5 |
12455 | cat conftest.$ac_ext >&5 | |
12456 | rm -rf conftest* | |
12457 | ||
f6bcfd97 | 12458 | wx_cv_func_vsscanf=no |
698dcdb6 | 12459 | |
6232543b | 12460 | fi |
698dcdb6 | 12461 | rm -f conftest* |
703e0a69 | 12462 | |
1e487827 | 12463 | fi |
698dcdb6 VZ |
12464 | |
12465 | echo "$ac_t""$wx_cv_func_vsscanf" 1>&6 | |
10f2d63a | 12466 | |
9d8deca0 | 12467 | if test "$wx_cv_func_vsscanf" = yes; then |
698dcdb6 | 12468 | cat >> confdefs.h <<\EOF |
9d8deca0 VZ |
12469 | #define HAVE_VSSCANF 1 |
12470 | EOF | |
12471 | ||
12472 | fi | |
12473 | ||
95c8801c VS |
12474 | if test "$TOOLKIT" != "MSW"; then |
12475 | ||
12476 | ||
12477 | ||
698dcdb6 VZ |
12478 | ac_ext=C |
12479 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
12480 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12481 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
12482 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12483 | cross_compiling=$ac_cv_prog_cxx_cross | |
12484 | ||
12485 | echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6 | |
138be253 | 12486 | echo "configure:12487: checking if iconv() takes char**" >&5 |
698dcdb6 VZ |
12487 | if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then |
12488 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12489 | else | |
12490 | ||
12491 | cat > conftest.$ac_ext <<EOF | |
138be253 | 12492 | #line 12493 "configure" |
95c8801c VS |
12493 | #include "confdefs.h" |
12494 | #include <iconv.h> | |
698dcdb6 | 12495 | int main() { |
95c8801c VS |
12496 | |
12497 | char **inbuf, **outbuf; | |
19af3b06 VZ |
12498 | iconv_t cd; |
12499 | size_t insz, outsz; | |
12500 | iconv(cd, inbuf, &insz, outbuf, &outsz); | |
698dcdb6 VZ |
12501 | |
12502 | ; return 0; } | |
12503 | EOF | |
138be253 | 12504 | if { (eval echo configure:12505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 12505 | rm -rf conftest* |
95c8801c VS |
12506 | wx_cv_iconv_takes_char=yes |
12507 | else | |
698dcdb6 VZ |
12508 | echo "configure: failed program was:" >&5 |
12509 | cat conftest.$ac_ext >&5 | |
12510 | rm -rf conftest* | |
12511 | wx_cv_iconv_takes_char=no | |
95c8801c | 12512 | fi |
698dcdb6 | 12513 | rm -f conftest* |
95c8801c VS |
12514 | |
12515 | fi | |
698dcdb6 VZ |
12516 | |
12517 | echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6 | |
10f2d63a | 12518 | ac_ext=c |
698dcdb6 | 12519 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 12520 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
12521 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12522 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12523 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a | 12524 | |
95c8801c | 12525 | if test "$wx_cv_iconv_takes_char" = yes ; then |
698dcdb6 | 12526 | cat >> confdefs.h <<\EOF |
95c8801c VS |
12527 | #define WX_ICONV_TAKES_CHAR 1 |
12528 | EOF | |
12529 | ||
12530 | fi | |
10f2d63a | 12531 | |
1e487827 | 12532 | |
698dcdb6 VZ |
12533 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
12534 | for ac_func in sigaction | |
eb4efbdc | 12535 | do |
698dcdb6 | 12536 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
138be253 | 12537 | echo "configure:12538: checking for $ac_func" >&5 |
698dcdb6 VZ |
12538 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
12539 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12540 | else | |
12541 | cat > conftest.$ac_ext <<EOF | |
138be253 | 12542 | #line 12543 "configure" |
eb4efbdc VZ |
12543 | #include "confdefs.h" |
12544 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 12545 | which can conflict with char $ac_func(); below. */ |
eb4efbdc VZ |
12546 | #include <assert.h> |
12547 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12548 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12549 | builtin and then its argument prototype would still apply. */ |
12550 | char $ac_func(); | |
12551 | ||
12552 | int main() { | |
eb4efbdc VZ |
12553 | |
12554 | /* The GNU C library defines this for functions which it implements | |
12555 | to always fail with ENOSYS. Some functions are actually named | |
12556 | something starting with __ and the normal name is an alias. */ | |
12557 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12558 | choke me | |
12559 | #else | |
698dcdb6 | 12560 | $ac_func(); |
eb4efbdc VZ |
12561 | #endif |
12562 | ||
698dcdb6 | 12563 | ; return 0; } |
eb4efbdc | 12564 | EOF |
138be253 | 12565 | if { (eval echo configure:12566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12566 | rm -rf conftest* |
12567 | eval "ac_cv_func_$ac_func=yes" | |
12568 | else | |
12569 | echo "configure: failed program was:" >&5 | |
12570 | cat conftest.$ac_ext >&5 | |
12571 | rm -rf conftest* | |
12572 | eval "ac_cv_func_$ac_func=no" | |
12573 | fi | |
12574 | rm -f conftest* | |
12575 | fi | |
eb4efbdc | 12576 | |
698dcdb6 VZ |
12577 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
12578 | echo "$ac_t""yes" 1>&6 | |
12579 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12580 | cat >> confdefs.h <<EOF | |
12581 | #define $ac_tr_func 1 | |
12582 | EOF | |
12583 | ||
12584 | else | |
12585 | echo "$ac_t""no" 1>&6 | |
eb4efbdc VZ |
12586 | fi |
12587 | done | |
12588 | ||
698dcdb6 | 12589 | |
eb4efbdc | 12590 | if test "$ac_cv_func_sigaction" = "no"; then |
698dcdb6 | 12591 | echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2 |
eb4efbdc VZ |
12592 | wxUSE_ON_FATAL_EXCEPTION=no |
12593 | fi | |
f6bcfd97 BP |
12594 | |
12595 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
698dcdb6 VZ |
12596 | |
12597 | ac_ext=C | |
12598 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 12599 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
12600 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12601 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12602 | cross_compiling=$ac_cv_prog_cxx_cross | |
6232543b | 12603 | |
1e487827 | 12604 | |
698dcdb6 | 12605 | echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6 |
138be253 | 12606 | echo "configure:12607: checking for sa_handler type" >&5 |
698dcdb6 VZ |
12607 | if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then |
12608 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12609 | else | |
12610 | ||
12611 | cat > conftest.$ac_ext <<EOF | |
138be253 | 12612 | #line 12613 "configure" |
f6bcfd97 BP |
12613 | #include "confdefs.h" |
12614 | #include <signal.h> | |
698dcdb6 | 12615 | int main() { |
f6bcfd97 BP |
12616 | |
12617 | extern void testSigHandler(int); | |
12618 | ||
12619 | struct sigaction sa; | |
12620 | sa.sa_handler = testSigHandler; | |
698dcdb6 VZ |
12621 | |
12622 | ; return 0; } | |
12623 | EOF | |
138be253 | 12624 | if { (eval echo configure:12625: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
12625 | rm -rf conftest* |
12626 | ||
f6bcfd97 | 12627 | wx_cv_type_sa_handler=int |
698dcdb6 | 12628 | |
f6bcfd97 | 12629 | else |
698dcdb6 VZ |
12630 | echo "configure: failed program was:" >&5 |
12631 | cat conftest.$ac_ext >&5 | |
12632 | rm -rf conftest* | |
12633 | ||
f6bcfd97 | 12634 | wx_cv_type_sa_handler=void |
698dcdb6 | 12635 | |
6232543b | 12636 | fi |
698dcdb6 VZ |
12637 | rm -f conftest* |
12638 | ||
1e487827 | 12639 | fi |
698dcdb6 VZ |
12640 | |
12641 | echo "$ac_t""$wx_cv_type_sa_handler" 1>&6 | |
f6bcfd97 BP |
12642 | |
12643 | ac_ext=c | |
698dcdb6 | 12644 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
f6bcfd97 | 12645 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
12646 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12647 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12648 | cross_compiling=$ac_cv_prog_cc_cross | |
12649 | ||
703e0a69 | 12650 | |
698dcdb6 | 12651 | cat >> confdefs.h <<EOF |
f6bcfd97 BP |
12652 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler |
12653 | EOF | |
12654 | ||
12655 | fi | |
eb4efbdc VZ |
12656 | fi |
12657 | ||
10f2d63a VZ |
12658 | for ac_func in vfork |
12659 | do | |
698dcdb6 | 12660 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
138be253 | 12661 | echo "configure:12662: checking for $ac_func" >&5 |
698dcdb6 VZ |
12662 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
12663 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12664 | else | |
12665 | cat > conftest.$ac_ext <<EOF | |
138be253 | 12666 | #line 12667 "configure" |
10f2d63a VZ |
12667 | #include "confdefs.h" |
12668 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 12669 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
12670 | #include <assert.h> |
12671 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12672 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12673 | builtin and then its argument prototype would still apply. */ |
12674 | char $ac_func(); | |
12675 | ||
12676 | int main() { | |
10f2d63a VZ |
12677 | |
12678 | /* The GNU C library defines this for functions which it implements | |
12679 | to always fail with ENOSYS. Some functions are actually named | |
12680 | something starting with __ and the normal name is an alias. */ | |
12681 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12682 | choke me | |
12683 | #else | |
698dcdb6 | 12684 | $ac_func(); |
10f2d63a VZ |
12685 | #endif |
12686 | ||
698dcdb6 | 12687 | ; return 0; } |
10f2d63a | 12688 | EOF |
138be253 | 12689 | if { (eval echo configure:12690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12690 | rm -rf conftest* |
12691 | eval "ac_cv_func_$ac_func=yes" | |
12692 | else | |
12693 | echo "configure: failed program was:" >&5 | |
12694 | cat conftest.$ac_ext >&5 | |
12695 | rm -rf conftest* | |
12696 | eval "ac_cv_func_$ac_func=no" | |
12697 | fi | |
12698 | rm -f conftest* | |
12699 | fi | |
270a909e | 12700 | |
698dcdb6 VZ |
12701 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
12702 | echo "$ac_t""yes" 1>&6 | |
12703 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12704 | cat >> confdefs.h <<EOF | |
12705 | #define $ac_tr_func 1 | |
12706 | EOF | |
12707 | ||
12708 | else | |
12709 | echo "$ac_t""no" 1>&6 | |
270a909e VZ |
12710 | fi |
12711 | done | |
12712 | ||
1e487827 | 12713 | |
698dcdb6 VZ |
12714 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
12715 | for ac_func in fcntl flock | |
4f3c5f06 | 12716 | do |
698dcdb6 | 12717 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
138be253 | 12718 | echo "configure:12719: checking for $ac_func" >&5 |
698dcdb6 VZ |
12719 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
12720 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12721 | else | |
12722 | cat > conftest.$ac_ext <<EOF | |
138be253 | 12723 | #line 12724 "configure" |
4f3c5f06 VZ |
12724 | #include "confdefs.h" |
12725 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 12726 | which can conflict with char $ac_func(); below. */ |
4f3c5f06 VZ |
12727 | #include <assert.h> |
12728 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12729 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12730 | builtin and then its argument prototype would still apply. */ |
12731 | char $ac_func(); | |
12732 | ||
12733 | int main() { | |
4f3c5f06 VZ |
12734 | |
12735 | /* The GNU C library defines this for functions which it implements | |
12736 | to always fail with ENOSYS. Some functions are actually named | |
12737 | something starting with __ and the normal name is an alias. */ | |
12738 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12739 | choke me | |
12740 | #else | |
698dcdb6 | 12741 | $ac_func(); |
4f3c5f06 VZ |
12742 | #endif |
12743 | ||
698dcdb6 VZ |
12744 | ; return 0; } |
12745 | EOF | |
138be253 | 12746 | if { (eval echo configure:12747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12747 | rm -rf conftest* |
12748 | eval "ac_cv_func_$ac_func=yes" | |
12749 | else | |
12750 | echo "configure: failed program was:" >&5 | |
12751 | cat conftest.$ac_ext >&5 | |
12752 | rm -rf conftest* | |
12753 | eval "ac_cv_func_$ac_func=no" | |
12754 | fi | |
12755 | rm -f conftest* | |
12756 | fi | |
12757 | ||
12758 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
12759 | echo "$ac_t""yes" 1>&6 | |
12760 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12761 | cat >> confdefs.h <<EOF | |
12762 | #define $ac_tr_func 1 | |
4f3c5f06 VZ |
12763 | EOF |
12764 | break | |
698dcdb6 VZ |
12765 | else |
12766 | echo "$ac_t""no" 1>&6 | |
4f3c5f06 VZ |
12767 | fi |
12768 | done | |
12769 | ||
698dcdb6 | 12770 | |
4f3c5f06 | 12771 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then |
698dcdb6 | 12772 | echo "configure: warning: wxSingleInstanceChecker not available" 1>&2 |
4f3c5f06 VZ |
12773 | wxUSE_SNGLINST_CHECKER=no |
12774 | fi | |
12775 | fi | |
12776 | ||
270a909e VZ |
12777 | for ac_func in timegm |
12778 | do | |
698dcdb6 | 12779 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
138be253 | 12780 | echo "configure:12781: checking for $ac_func" >&5 |
698dcdb6 VZ |
12781 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
12782 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12783 | else | |
12784 | cat > conftest.$ac_ext <<EOF | |
138be253 | 12785 | #line 12786 "configure" |
270a909e VZ |
12786 | #include "confdefs.h" |
12787 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 12788 | which can conflict with char $ac_func(); below. */ |
270a909e VZ |
12789 | #include <assert.h> |
12790 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12791 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12792 | builtin and then its argument prototype would still apply. */ |
12793 | char $ac_func(); | |
12794 | ||
12795 | int main() { | |
270a909e VZ |
12796 | |
12797 | /* The GNU C library defines this for functions which it implements | |
12798 | to always fail with ENOSYS. Some functions are actually named | |
12799 | something starting with __ and the normal name is an alias. */ | |
12800 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12801 | choke me | |
12802 | #else | |
698dcdb6 | 12803 | $ac_func(); |
270a909e VZ |
12804 | #endif |
12805 | ||
698dcdb6 | 12806 | ; return 0; } |
270a909e | 12807 | EOF |
138be253 | 12808 | if { (eval echo configure:12809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12809 | rm -rf conftest* |
12810 | eval "ac_cv_func_$ac_func=yes" | |
12811 | else | |
12812 | echo "configure: failed program was:" >&5 | |
12813 | cat conftest.$ac_ext >&5 | |
12814 | rm -rf conftest* | |
12815 | eval "ac_cv_func_$ac_func=no" | |
12816 | fi | |
12817 | rm -f conftest* | |
12818 | fi | |
10f2d63a | 12819 | |
698dcdb6 VZ |
12820 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
12821 | echo "$ac_t""yes" 1>&6 | |
12822 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12823 | cat >> confdefs.h <<EOF | |
12824 | #define $ac_tr_func 1 | |
12825 | EOF | |
12826 | ||
12827 | else | |
12828 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
12829 | fi |
12830 | done | |
12831 | ||
698dcdb6 | 12832 | |
8fd0d89b VZ |
12833 | for ac_func in putenv setenv |
12834 | do | |
698dcdb6 | 12835 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
138be253 | 12836 | echo "configure:12837: checking for $ac_func" >&5 |
698dcdb6 VZ |
12837 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
12838 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12839 | else | |
12840 | cat > conftest.$ac_ext <<EOF | |
138be253 | 12841 | #line 12842 "configure" |
8fd0d89b VZ |
12842 | #include "confdefs.h" |
12843 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 12844 | which can conflict with char $ac_func(); below. */ |
8fd0d89b VZ |
12845 | #include <assert.h> |
12846 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12847 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12848 | builtin and then its argument prototype would still apply. */ |
12849 | char $ac_func(); | |
12850 | ||
12851 | int main() { | |
8fd0d89b VZ |
12852 | |
12853 | /* The GNU C library defines this for functions which it implements | |
12854 | to always fail with ENOSYS. Some functions are actually named | |
12855 | something starting with __ and the normal name is an alias. */ | |
12856 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12857 | choke me | |
12858 | #else | |
698dcdb6 | 12859 | $ac_func(); |
8fd0d89b VZ |
12860 | #endif |
12861 | ||
698dcdb6 VZ |
12862 | ; return 0; } |
12863 | EOF | |
138be253 | 12864 | if { (eval echo configure:12865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12865 | rm -rf conftest* |
12866 | eval "ac_cv_func_$ac_func=yes" | |
12867 | else | |
12868 | echo "configure: failed program was:" >&5 | |
12869 | cat conftest.$ac_ext >&5 | |
12870 | rm -rf conftest* | |
12871 | eval "ac_cv_func_$ac_func=no" | |
12872 | fi | |
12873 | rm -f conftest* | |
12874 | fi | |
12875 | ||
12876 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
12877 | echo "$ac_t""yes" 1>&6 | |
12878 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12879 | cat >> confdefs.h <<EOF | |
12880 | #define $ac_tr_func 1 | |
8fd0d89b VZ |
12881 | EOF |
12882 | break | |
698dcdb6 VZ |
12883 | else |
12884 | echo "$ac_t""no" 1>&6 | |
8fd0d89b VZ |
12885 | fi |
12886 | done | |
12887 | ||
698dcdb6 | 12888 | |
b12915c1 VZ |
12889 | HAVE_SOME_SLEEP_FUNC=0 |
12890 | if test "$USE_BEOS" = 1; then | |
698dcdb6 | 12891 | cat >> confdefs.h <<\EOF |
b12915c1 VZ |
12892 | #define HAVE_SLEEP 1 |
12893 | EOF | |
12894 | ||
12895 | HAVE_SOME_SLEEP_FUNC=1 | |
12896 | fi | |
12897 | ||
b4085ce6 | 12898 | if test "$USE_MAC" = 1; then |
698dcdb6 | 12899 | cat >> confdefs.h <<\EOF |
b4085ce6 GD |
12900 | #define HAVE_USLEEP 1 |
12901 | EOF | |
12902 | ||
12903 | HAVE_SOME_SLEEP_FUNC=1 | |
12904 | fi | |
12905 | ||
b12915c1 VZ |
12906 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then |
12907 | POSIX4_LINK= | |
698dcdb6 | 12908 | for ac_func in nanosleep |
10f2d63a | 12909 | do |
698dcdb6 | 12910 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
138be253 | 12911 | echo "configure:12912: checking for $ac_func" >&5 |
698dcdb6 VZ |
12912 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
12913 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12914 | else | |
12915 | cat > conftest.$ac_ext <<EOF | |
138be253 | 12916 | #line 12917 "configure" |
10f2d63a VZ |
12917 | #include "confdefs.h" |
12918 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 12919 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
12920 | #include <assert.h> |
12921 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12922 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12923 | builtin and then its argument prototype would still apply. */ |
12924 | char $ac_func(); | |
12925 | ||
12926 | int main() { | |
10f2d63a VZ |
12927 | |
12928 | /* The GNU C library defines this for functions which it implements | |
12929 | to always fail with ENOSYS. Some functions are actually named | |
12930 | something starting with __ and the normal name is an alias. */ | |
12931 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12932 | choke me | |
12933 | #else | |
698dcdb6 | 12934 | $ac_func(); |
10f2d63a VZ |
12935 | #endif |
12936 | ||
698dcdb6 VZ |
12937 | ; return 0; } |
12938 | EOF | |
138be253 | 12939 | if { (eval echo configure:12940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12940 | rm -rf conftest* |
12941 | eval "ac_cv_func_$ac_func=yes" | |
12942 | else | |
12943 | echo "configure: failed program was:" >&5 | |
12944 | cat conftest.$ac_ext >&5 | |
12945 | rm -rf conftest* | |
12946 | eval "ac_cv_func_$ac_func=no" | |
12947 | fi | |
12948 | rm -f conftest* | |
12949 | fi | |
12950 | ||
12951 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
12952 | echo "$ac_t""yes" 1>&6 | |
12953 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12954 | cat >> confdefs.h <<EOF | |
12955 | #define $ac_tr_func 1 | |
12956 | EOF | |
12957 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
12958 | #define HAVE_NANOSLEEP 1 |
12959 | EOF | |
12960 | ||
12961 | else | |
698dcdb6 VZ |
12962 | echo "$ac_t""no" 1>&6 |
12963 | echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 | |
138be253 | 12964 | echo "configure:12965: checking for nanosleep in -lposix4" >&5 |
698dcdb6 VZ |
12965 | ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` |
12966 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12967 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12968 | else |
698dcdb6 | 12969 | ac_save_LIBS="$LIBS" |
10f2d63a | 12970 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 12971 | cat > conftest.$ac_ext <<EOF |
138be253 | 12972 | #line 12973 "configure" |
10f2d63a VZ |
12973 | #include "confdefs.h" |
12974 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12975 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12976 | builtin and then its argument prototype would still apply. */ |
12977 | char nanosleep(); | |
12978 | ||
12979 | int main() { | |
12980 | nanosleep() | |
12981 | ; return 0; } | |
12982 | EOF | |
138be253 | 12983 | if { (eval echo configure:12984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12984 | rm -rf conftest* |
12985 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12986 | else | |
12987 | echo "configure: failed program was:" >&5 | |
12988 | cat conftest.$ac_ext >&5 | |
12989 | rm -rf conftest* | |
12990 | eval "ac_cv_lib_$ac_lib_var=no" | |
12991 | fi | |
12992 | rm -f conftest* | |
12993 | LIBS="$ac_save_LIBS" | |
12994 | ||
12995 | fi | |
12996 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12997 | echo "$ac_t""yes" 1>&6 | |
12998 | ||
12999 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
13000 | #define HAVE_NANOSLEEP 1 |
13001 | EOF | |
13002 | ||
b12915c1 | 13003 | POSIX4_LINK="-lposix4" |
698dcdb6 | 13004 | |
10f2d63a | 13005 | else |
698dcdb6 | 13006 | echo "$ac_t""no" 1>&6 |
10f2d63a | 13007 | |
698dcdb6 | 13008 | for ac_func in usleep |
10f2d63a | 13009 | do |
698dcdb6 | 13010 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
138be253 | 13011 | echo "configure:13012: checking for $ac_func" >&5 |
698dcdb6 VZ |
13012 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13013 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13014 | else | |
13015 | cat > conftest.$ac_ext <<EOF | |
138be253 | 13016 | #line 13017 "configure" |
10f2d63a VZ |
13017 | #include "confdefs.h" |
13018 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13019 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
13020 | #include <assert.h> |
13021 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13022 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13023 | builtin and then its argument prototype would still apply. */ |
13024 | char $ac_func(); | |
13025 | ||
13026 | int main() { | |
10f2d63a VZ |
13027 | |
13028 | /* The GNU C library defines this for functions which it implements | |
13029 | to always fail with ENOSYS. Some functions are actually named | |
13030 | something starting with __ and the normal name is an alias. */ | |
13031 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13032 | choke me | |
13033 | #else | |
698dcdb6 | 13034 | $ac_func(); |
10f2d63a VZ |
13035 | #endif |
13036 | ||
698dcdb6 VZ |
13037 | ; return 0; } |
13038 | EOF | |
138be253 | 13039 | if { (eval echo configure:13040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13040 | rm -rf conftest* |
13041 | eval "ac_cv_func_$ac_func=yes" | |
13042 | else | |
13043 | echo "configure: failed program was:" >&5 | |
13044 | cat conftest.$ac_ext >&5 | |
13045 | rm -rf conftest* | |
13046 | eval "ac_cv_func_$ac_func=no" | |
13047 | fi | |
13048 | rm -f conftest* | |
13049 | fi | |
13050 | ||
13051 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13052 | echo "$ac_t""yes" 1>&6 | |
13053 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13054 | cat >> confdefs.h <<EOF | |
13055 | #define $ac_tr_func 1 | |
13056 | EOF | |
13057 | cat >> confdefs.h <<\EOF | |
b4085ce6 GD |
13058 | #define HAVE_USLEEP 1 |
13059 | EOF | |
13060 | ||
10f2d63a | 13061 | else |
698dcdb6 VZ |
13062 | echo "$ac_t""no" 1>&6 |
13063 | echo "configure: warning: wxSleep() function will not work" 1>&2 | |
13064 | ||
10f2d63a VZ |
13065 | fi |
13066 | done | |
13067 | ||
698dcdb6 VZ |
13068 | |
13069 | ||
10f2d63a VZ |
13070 | fi |
13071 | ||
698dcdb6 VZ |
13072 | |
13073 | ||
10f2d63a VZ |
13074 | fi |
13075 | done | |
13076 | ||
b12915c1 | 13077 | fi |
10f2d63a VZ |
13078 | |
13079 | for ac_func in uname gethostname | |
13080 | do | |
698dcdb6 | 13081 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
138be253 | 13082 | echo "configure:13083: checking for $ac_func" >&5 |
698dcdb6 VZ |
13083 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13084 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13085 | else | |
13086 | cat > conftest.$ac_ext <<EOF | |
138be253 | 13087 | #line 13088 "configure" |
10f2d63a VZ |
13088 | #include "confdefs.h" |
13089 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13090 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
13091 | #include <assert.h> |
13092 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13093 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13094 | builtin and then its argument prototype would still apply. */ |
13095 | char $ac_func(); | |
13096 | ||
13097 | int main() { | |
10f2d63a VZ |
13098 | |
13099 | /* The GNU C library defines this for functions which it implements | |
13100 | to always fail with ENOSYS. Some functions are actually named | |
13101 | something starting with __ and the normal name is an alias. */ | |
13102 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13103 | choke me | |
13104 | #else | |
698dcdb6 | 13105 | $ac_func(); |
10f2d63a VZ |
13106 | #endif |
13107 | ||
698dcdb6 VZ |
13108 | ; return 0; } |
13109 | EOF | |
138be253 | 13110 | if { (eval echo configure:13111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13111 | rm -rf conftest* |
13112 | eval "ac_cv_func_$ac_func=yes" | |
13113 | else | |
13114 | echo "configure: failed program was:" >&5 | |
13115 | cat conftest.$ac_ext >&5 | |
13116 | rm -rf conftest* | |
13117 | eval "ac_cv_func_$ac_func=no" | |
13118 | fi | |
13119 | rm -f conftest* | |
13120 | fi | |
13121 | ||
13122 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13123 | echo "$ac_t""yes" 1>&6 | |
13124 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13125 | cat >> confdefs.h <<EOF | |
13126 | #define $ac_tr_func 1 | |
10f2d63a VZ |
13127 | EOF |
13128 | break | |
698dcdb6 VZ |
13129 | else |
13130 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13131 | fi |
13132 | done | |
13133 | ||
698dcdb6 VZ |
13134 | |
13135 | ||
13136 | ac_ext=C | |
13137 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6098c7f9 | 13138 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
13139 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
13140 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13141 | cross_compiling=$ac_cv_prog_cxx_cross | |
13142 | ||
6098c7f9 | 13143 | |
10f2d63a VZ |
13144 | for ac_func in strtok_r |
13145 | do | |
698dcdb6 | 13146 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
138be253 | 13147 | echo "configure:13148: checking for $ac_func" >&5 |
698dcdb6 VZ |
13148 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13149 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13150 | else | |
13151 | cat > conftest.$ac_ext <<EOF | |
138be253 | 13152 | #line 13153 "configure" |
10f2d63a VZ |
13153 | #include "confdefs.h" |
13154 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13155 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
13156 | #include <assert.h> |
13157 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6098c7f9 VZ |
13158 | #ifdef __cplusplus |
13159 | extern "C" | |
13160 | #endif | |
10f2d63a | 13161 | /* We use char because int might match the return type of a gcc2 |
698dcdb6 VZ |
13162 | builtin and then its argument prototype would still apply. */ |
13163 | char $ac_func(); | |
13164 | ||
13165 | int main() { | |
10f2d63a VZ |
13166 | |
13167 | /* The GNU C library defines this for functions which it implements | |
13168 | to always fail with ENOSYS. Some functions are actually named | |
13169 | something starting with __ and the normal name is an alias. */ | |
13170 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13171 | choke me | |
13172 | #else | |
698dcdb6 | 13173 | $ac_func(); |
10f2d63a VZ |
13174 | #endif |
13175 | ||
698dcdb6 | 13176 | ; return 0; } |
10f2d63a | 13177 | EOF |
138be253 | 13178 | if { (eval echo configure:13179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13179 | rm -rf conftest* |
13180 | eval "ac_cv_func_$ac_func=yes" | |
13181 | else | |
13182 | echo "configure: failed program was:" >&5 | |
13183 | cat conftest.$ac_ext >&5 | |
13184 | rm -rf conftest* | |
13185 | eval "ac_cv_func_$ac_func=no" | |
13186 | fi | |
13187 | rm -f conftest* | |
13188 | fi | |
10f2d63a | 13189 | |
698dcdb6 VZ |
13190 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
13191 | echo "$ac_t""yes" 1>&6 | |
13192 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13193 | cat >> confdefs.h <<EOF | |
13194 | #define $ac_tr_func 1 | |
13195 | EOF | |
13196 | ||
13197 | else | |
13198 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13199 | fi |
13200 | done | |
13201 | ||
698dcdb6 | 13202 | |
6098c7f9 | 13203 | ac_ext=c |
698dcdb6 | 13204 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
6098c7f9 | 13205 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
13206 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
13207 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13208 | cross_compiling=$ac_cv_prog_cc_cross | |
6232543b | 13209 | |
1e487827 | 13210 | |
698dcdb6 | 13211 | INET_LINK= |
10f2d63a VZ |
13212 | for ac_func in inet_addr |
13213 | do | |
698dcdb6 | 13214 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
138be253 | 13215 | echo "configure:13216: checking for $ac_func" >&5 |
698dcdb6 VZ |
13216 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13217 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13218 | else | |
13219 | cat > conftest.$ac_ext <<EOF | |
138be253 | 13220 | #line 13221 "configure" |
10f2d63a VZ |
13221 | #include "confdefs.h" |
13222 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 VZ |
13223 | which can conflict with char $ac_func(); below. */ |
13224 | #include <assert.h> | |
13225 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10f2d63a | 13226 | /* We use char because int might match the return type of a gcc2 |
698dcdb6 VZ |
13227 | builtin and then its argument prototype would still apply. */ |
13228 | char $ac_func(); | |
13229 | ||
13230 | int main() { | |
10f2d63a VZ |
13231 | |
13232 | /* The GNU C library defines this for functions which it implements | |
13233 | to always fail with ENOSYS. Some functions are actually named | |
1e487827 VS |
13234 | something starting with __ and the normal name is an alias. */ |
13235 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13236 | choke me | |
13237 | #else | |
698dcdb6 | 13238 | $ac_func(); |
1e487827 | 13239 | #endif |
703e0a69 | 13240 | |
698dcdb6 VZ |
13241 | ; return 0; } |
13242 | EOF | |
138be253 | 13243 | if { (eval echo configure:13244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13244 | rm -rf conftest* |
13245 | eval "ac_cv_func_$ac_func=yes" | |
13246 | else | |
13247 | echo "configure: failed program was:" >&5 | |
13248 | cat conftest.$ac_ext >&5 | |
13249 | rm -rf conftest* | |
13250 | eval "ac_cv_func_$ac_func=no" | |
13251 | fi | |
13252 | rm -f conftest* | |
13253 | fi | |
13254 | ||
13255 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13256 | echo "$ac_t""yes" 1>&6 | |
13257 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13258 | cat >> confdefs.h <<EOF | |
13259 | #define $ac_tr_func 1 | |
13260 | EOF | |
13261 | cat >> confdefs.h <<\EOF | |
c63c7106 VZ |
13262 | #define HAVE_INET_ADDR 1 |
13263 | EOF | |
13264 | ||
10f2d63a | 13265 | else |
698dcdb6 VZ |
13266 | echo "$ac_t""no" 1>&6 |
13267 | echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6 | |
138be253 | 13268 | echo "configure:13269: checking for inet_addr in -lnsl" >&5 |
698dcdb6 VZ |
13269 | ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'` |
13270 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13271 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 13272 | else |
698dcdb6 | 13273 | ac_save_LIBS="$LIBS" |
c63c7106 | 13274 | LIBS="-lnsl $LIBS" |
698dcdb6 | 13275 | cat > conftest.$ac_ext <<EOF |
138be253 | 13276 | #line 13277 "configure" |
c63c7106 VZ |
13277 | #include "confdefs.h" |
13278 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13279 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13280 | builtin and then its argument prototype would still apply. */ |
13281 | char inet_addr(); | |
13282 | ||
13283 | int main() { | |
13284 | inet_addr() | |
13285 | ; return 0; } | |
13286 | EOF | |
138be253 | 13287 | if { (eval echo configure:13288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13288 | rm -rf conftest* |
13289 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13290 | else | |
13291 | echo "configure: failed program was:" >&5 | |
13292 | cat conftest.$ac_ext >&5 | |
13293 | rm -rf conftest* | |
13294 | eval "ac_cv_lib_$ac_lib_var=no" | |
13295 | fi | |
13296 | rm -f conftest* | |
13297 | LIBS="$ac_save_LIBS" | |
13298 | ||
13299 | fi | |
13300 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13301 | echo "$ac_t""yes" 1>&6 | |
c63c7106 VZ |
13302 | INET_LINK="nsl" |
13303 | else | |
698dcdb6 VZ |
13304 | echo "$ac_t""no" 1>&6 |
13305 | echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6 | |
138be253 | 13306 | echo "configure:13307: checking for inet_addr in -lresolv" >&5 |
698dcdb6 VZ |
13307 | ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'` |
13308 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13309 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 13310 | else |
698dcdb6 | 13311 | ac_save_LIBS="$LIBS" |
c63c7106 | 13312 | LIBS="-lresolv $LIBS" |
698dcdb6 | 13313 | cat > conftest.$ac_ext <<EOF |
138be253 | 13314 | #line 13315 "configure" |
c63c7106 VZ |
13315 | #include "confdefs.h" |
13316 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13317 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13318 | builtin and then its argument prototype would still apply. */ |
13319 | char inet_addr(); | |
13320 | ||
13321 | int main() { | |
13322 | inet_addr() | |
13323 | ; return 0; } | |
13324 | EOF | |
138be253 | 13325 | if { (eval echo configure:13326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13326 | rm -rf conftest* |
13327 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13328 | else | |
13329 | echo "configure: failed program was:" >&5 | |
13330 | cat conftest.$ac_ext >&5 | |
13331 | rm -rf conftest* | |
13332 | eval "ac_cv_lib_$ac_lib_var=no" | |
13333 | fi | |
13334 | rm -f conftest* | |
13335 | LIBS="$ac_save_LIBS" | |
c63c7106 | 13336 | |
6232543b | 13337 | fi |
698dcdb6 VZ |
13338 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
13339 | echo "$ac_t""yes" 1>&6 | |
13340 | INET_LINK="resolv" | |
13341 | ||
13342 | else | |
13343 | echo "$ac_t""no" 1>&6 | |
13344 | fi | |
c63c7106 | 13345 | |
698dcdb6 | 13346 | |
1e487827 | 13347 | fi |
703e0a69 | 13348 | |
698dcdb6 VZ |
13349 | |
13350 | ||
10f2d63a VZ |
13351 | fi |
13352 | done | |
13353 | ||
698dcdb6 | 13354 | |
10f2d63a VZ |
13355 | for ac_func in inet_aton |
13356 | do | |
698dcdb6 | 13357 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
138be253 | 13358 | echo "configure:13359: checking for $ac_func" >&5 |
698dcdb6 VZ |
13359 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13360 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13361 | else | |
13362 | cat > conftest.$ac_ext <<EOF | |
138be253 | 13363 | #line 13364 "configure" |
10f2d63a VZ |
13364 | #include "confdefs.h" |
13365 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13366 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
13367 | #include <assert.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 $ac_func(); | |
13372 | ||
13373 | int main() { | |
10f2d63a VZ |
13374 | |
13375 | /* The GNU C library defines this for functions which it implements | |
13376 | to always fail with ENOSYS. Some functions are actually named | |
13377 | something starting with __ and the normal name is an alias. */ | |
13378 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13379 | choke me | |
13380 | #else | |
698dcdb6 | 13381 | $ac_func(); |
10f2d63a VZ |
13382 | #endif |
13383 | ||
698dcdb6 VZ |
13384 | ; return 0; } |
13385 | EOF | |
138be253 | 13386 | if { (eval echo configure:13387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13387 | rm -rf conftest* |
13388 | eval "ac_cv_func_$ac_func=yes" | |
13389 | else | |
13390 | echo "configure: failed program was:" >&5 | |
13391 | cat conftest.$ac_ext >&5 | |
13392 | rm -rf conftest* | |
13393 | eval "ac_cv_func_$ac_func=no" | |
13394 | fi | |
13395 | rm -f conftest* | |
13396 | fi | |
13397 | ||
13398 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13399 | echo "$ac_t""yes" 1>&6 | |
13400 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13401 | cat >> confdefs.h <<EOF | |
13402 | #define $ac_tr_func 1 | |
13403 | EOF | |
13404 | cat >> confdefs.h <<\EOF | |
c63c7106 VZ |
13405 | #define HAVE_INET_ATON 1 |
13406 | EOF | |
13407 | ||
10f2d63a | 13408 | else |
698dcdb6 VZ |
13409 | echo "$ac_t""no" 1>&6 |
13410 | echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6 | |
138be253 | 13411 | echo "configure:13412: checking for inet_aton in -l$INET_LINK" >&5 |
698dcdb6 VZ |
13412 | ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'` |
13413 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13414 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13415 | else |
698dcdb6 | 13416 | ac_save_LIBS="$LIBS" |
c63c7106 | 13417 | LIBS="-l$INET_LINK $LIBS" |
698dcdb6 | 13418 | cat > conftest.$ac_ext <<EOF |
138be253 | 13419 | #line 13420 "configure" |
10f2d63a VZ |
13420 | #include "confdefs.h" |
13421 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13422 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13423 | builtin and then its argument prototype would still apply. */ |
13424 | char inet_aton(); | |
13425 | ||
13426 | int main() { | |
13427 | inet_aton() | |
13428 | ; return 0; } | |
13429 | EOF | |
138be253 | 13430 | if { (eval echo configure:13431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13431 | rm -rf conftest* |
13432 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13433 | else | |
13434 | echo "configure: failed program was:" >&5 | |
13435 | cat conftest.$ac_ext >&5 | |
13436 | rm -rf conftest* | |
13437 | eval "ac_cv_lib_$ac_lib_var=no" | |
13438 | fi | |
13439 | rm -f conftest* | |
13440 | LIBS="$ac_save_LIBS" | |
13441 | ||
13442 | fi | |
13443 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13444 | echo "$ac_t""yes" 1>&6 | |
13445 | cat >> confdefs.h <<\EOF | |
c63c7106 | 13446 | #define HAVE_INET_ATON 1 |
10f2d63a VZ |
13447 | EOF |
13448 | ||
698dcdb6 VZ |
13449 | else |
13450 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13451 | fi |
13452 | ||
698dcdb6 | 13453 | |
c63c7106 VZ |
13454 | fi |
13455 | done | |
13456 | ||
698dcdb6 | 13457 | |
c63c7106 | 13458 | if test "x$INET_LINK" != "x"; then |
698dcdb6 | 13459 | cat >> confdefs.h <<\EOF |
c63c7106 VZ |
13460 | #define HAVE_INET_ADDR 1 |
13461 | EOF | |
13462 | ||
13463 | INET_LINK="-l$INET_LINK" | |
13464 | fi | |
10f2d63a VZ |
13465 | |
13466 | fi | |
13467 | ||
698dcdb6 VZ |
13468 | |
13469 | cat > confcache <<\EOF | |
10f2d63a VZ |
13470 | # This file is a shell script that caches the results of configure |
13471 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
13472 | # scripts and configure runs. It is not useful on other systems. |
13473 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 13474 | # |
698dcdb6 VZ |
13475 | # By default, configure uses ./config.cache as the cache file, |
13476 | # creating it if it does not exist already. You can give configure | |
13477 | # the --cache-file=FILE option to use a different cache file; that is | |
13478 | # what configure does when it calls configure scripts in | |
13479 | # subdirectories, so they share the cache. | |
13480 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
13481 | # config.status only pays attention to the cache file if you give it the | |
13482 | # --recheck option to rerun configure. | |
10f2d63a | 13483 | # |
698dcdb6 | 13484 | EOF |
10f2d63a VZ |
13485 | # The following way of writing the cache mishandles newlines in values, |
13486 | # but we know of no workaround that is simple, portable, and efficient. | |
13487 | # So, don't put newlines in cache variables' values. | |
13488 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
13489 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
13490 | (set) 2>&1 | |
13491 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
13492 | *ac_space=\ *) | |
13493 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
13494 | # turns \\\\ into \\, and sed turns \\ into \). | |
13495 | sed -n \ | |
13496 | -e "s/'/'\\\\''/g" \ | |
13497 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
13498 | ;; | |
13499 | *) | |
13500 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
13501 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
13502 | ;; | |
13503 | esac >> confcache | |
13504 | if cmp -s $cache_file confcache; then | |
13505 | : | |
13506 | else | |
10f2d63a | 13507 | if test -w $cache_file; then |
698dcdb6 VZ |
13508 | echo "updating cache $cache_file" |
13509 | cat confcache > $cache_file | |
10f2d63a VZ |
13510 | else |
13511 | echo "not updating unwritable cache $cache_file" | |
13512 | fi | |
13513 | fi | |
13514 | rm -f confcache | |
13515 | ||
698dcdb6 VZ |
13516 | |
13517 | ||
b089607b | 13518 | if test "$TOOLKIT" != "MSW"; then |
10f2d63a | 13519 | |
698dcdb6 | 13520 | |
10f2d63a VZ |
13521 | THREADS_LINK="" |
13522 | THREADS_OBJ="" | |
13523 | ||
13524 | if test "$wxUSE_THREADS" = "yes" ; then | |
13525 | if test "$wxUSE_WINE" = 1 ; then | |
698dcdb6 | 13526 | echo "configure: warning: Threads are not supported under WINE" 1>&2 |
10f2d63a | 13527 | wxUSE_THREADS="no" |
b12915c1 | 13528 | elif test "$USE_BEOS" = 1; then |
698dcdb6 | 13529 | echo "configure: warning: BeOS threads are not yet supported" 1>&2 |
b12915c1 | 13530 | wxUSE_THREADS="no" |
10f2d63a VZ |
13531 | fi |
13532 | fi | |
13533 | ||
13534 | if test "$wxUSE_THREADS" = "yes" ; then | |
698dcdb6 | 13535 | |
186837b0 | 13536 | if test "$USE_AIX" = 1; then |
f6bcfd97 BP |
13537 | THREADS_LIB=pthreads |
13538 | else | |
13539 | THREADS_LIB=pthread | |
13540 | fi | |
13541 | ||
698dcdb6 | 13542 | echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6 |
138be253 | 13543 | echo "configure:13544: checking for pthread_create in -l$THREADS_LIB" >&5 |
698dcdb6 VZ |
13544 | ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'` |
13545 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13546 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13547 | else |
698dcdb6 | 13548 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 13549 | LIBS="-l$THREADS_LIB $LIBS" |
698dcdb6 | 13550 | cat > conftest.$ac_ext <<EOF |
138be253 | 13551 | #line 13552 "configure" |
10f2d63a VZ |
13552 | #include "confdefs.h" |
13553 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13554 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13555 | builtin and then its argument prototype would still apply. */ |
13556 | char pthread_create(); | |
13557 | ||
13558 | int main() { | |
13559 | pthread_create() | |
13560 | ; return 0; } | |
13561 | EOF | |
138be253 | 13562 | if { (eval echo configure:13563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13563 | rm -rf conftest* |
13564 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13565 | else | |
13566 | echo "configure: failed program was:" >&5 | |
13567 | cat conftest.$ac_ext >&5 | |
13568 | rm -rf conftest* | |
13569 | eval "ac_cv_lib_$ac_lib_var=no" | |
13570 | fi | |
13571 | rm -f conftest* | |
13572 | LIBS="$ac_save_LIBS" | |
10f2d63a | 13573 | |
698dcdb6 VZ |
13574 | fi |
13575 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13576 | echo "$ac_t""yes" 1>&6 | |
13577 | ||
10f2d63a | 13578 | THREADS_OBJ="threadpsx.lo" |
f6bcfd97 | 13579 | THREADS_LINK=$THREADS_LIB |
698dcdb6 | 13580 | |
10f2d63a | 13581 | else |
698dcdb6 | 13582 | echo "$ac_t""no" 1>&6 |
10f2d63a | 13583 | |
698dcdb6 | 13584 | echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 |
138be253 | 13585 | echo "configure:13586: checking for pthread_create in -lc_r" >&5 |
698dcdb6 VZ |
13586 | ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` |
13587 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13588 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13589 | else |
698dcdb6 | 13590 | ac_save_LIBS="$LIBS" |
10f2d63a | 13591 | LIBS="-lc_r $LIBS" |
698dcdb6 | 13592 | cat > conftest.$ac_ext <<EOF |
138be253 | 13593 | #line 13594 "configure" |
10f2d63a VZ |
13594 | #include "confdefs.h" |
13595 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13596 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13597 | builtin and then its argument prototype would still apply. */ |
13598 | char pthread_create(); | |
13599 | ||
13600 | int main() { | |
13601 | pthread_create() | |
13602 | ; return 0; } | |
13603 | EOF | |
138be253 | 13604 | if { (eval echo configure:13605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13605 | rm -rf conftest* |
13606 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13607 | else | |
13608 | echo "configure: failed program was:" >&5 | |
13609 | cat conftest.$ac_ext >&5 | |
13610 | rm -rf conftest* | |
13611 | eval "ac_cv_lib_$ac_lib_var=no" | |
13612 | fi | |
13613 | rm -f conftest* | |
13614 | LIBS="$ac_save_LIBS" | |
10f2d63a | 13615 | |
698dcdb6 VZ |
13616 | fi |
13617 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13618 | echo "$ac_t""yes" 1>&6 | |
13619 | ||
10f2d63a VZ |
13620 | THREADS_OBJ="threadpsx.lo" |
13621 | THREADS_LINK="c_r" | |
698dcdb6 | 13622 | |
10f2d63a | 13623 | else |
698dcdb6 | 13624 | echo "$ac_t""no" 1>&6 |
10f2d63a | 13625 | |
698dcdb6 VZ |
13626 | ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'` |
13627 | echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6 | |
138be253 | 13628 | echo "configure:13629: checking for sys/prctl.h" >&5 |
698dcdb6 VZ |
13629 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13630 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13631 | else |
698dcdb6 | 13632 | cat > conftest.$ac_ext <<EOF |
138be253 | 13633 | #line 13634 "configure" |
10f2d63a VZ |
13634 | #include "confdefs.h" |
13635 | #include <sys/prctl.h> | |
698dcdb6 VZ |
13636 | EOF |
13637 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
138be253 | 13638 | { (eval echo configure:13639: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13639 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13640 | if test -z "$ac_err"; then | |
13641 | rm -rf conftest* | |
13642 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 13643 | else |
698dcdb6 VZ |
13644 | echo "$ac_err" >&5 |
13645 | echo "configure: failed program was:" >&5 | |
10f2d63a | 13646 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13647 | rm -rf conftest* |
13648 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 13649 | fi |
698dcdb6 | 13650 | rm -f conftest* |
10f2d63a | 13651 | fi |
698dcdb6 VZ |
13652 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13653 | echo "$ac_t""yes" 1>&6 | |
13654 | ||
1f8ae82f | 13655 | THREADS_OBJ="threadsgi.lo" |
698dcdb6 VZ |
13656 | |
13657 | else | |
13658 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13659 | fi |
13660 | ||
698dcdb6 | 13661 | |
6232543b | 13662 | fi |
10f2d63a | 13663 | |
698dcdb6 | 13664 | |
1e487827 | 13665 | fi |
703e0a69 | 13666 | |
698dcdb6 | 13667 | |
10f2d63a VZ |
13668 | if test -z "$THREADS_OBJ" ; then |
13669 | wxUSE_THREADS=no | |
698dcdb6 | 13670 | echo "configure: warning: No thread support on this system" 1>&2 |
10f2d63a VZ |
13671 | fi |
13672 | fi | |
13673 | ||
13674 | if test "$wxUSE_THREADS" = "yes" ; then | |
698dcdb6 | 13675 | for ac_func in thr_setconcurrency |
70846f0a | 13676 | do |
698dcdb6 | 13677 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
138be253 | 13678 | echo "configure:13679: checking for $ac_func" >&5 |
698dcdb6 VZ |
13679 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13680 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13681 | else | |
13682 | cat > conftest.$ac_ext <<EOF | |
138be253 | 13683 | #line 13684 "configure" |
70846f0a VZ |
13684 | #include "confdefs.h" |
13685 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13686 | which can conflict with char $ac_func(); below. */ |
70846f0a VZ |
13687 | #include <assert.h> |
13688 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13689 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13690 | builtin and then its argument prototype would still apply. */ |
13691 | char $ac_func(); | |
13692 | ||
13693 | int main() { | |
70846f0a VZ |
13694 | |
13695 | /* The GNU C library defines this for functions which it implements | |
13696 | to always fail with ENOSYS. Some functions are actually named | |
13697 | something starting with __ and the normal name is an alias. */ | |
13698 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13699 | choke me | |
13700 | #else | |
698dcdb6 | 13701 | $ac_func(); |
70846f0a VZ |
13702 | #endif |
13703 | ||
698dcdb6 | 13704 | ; return 0; } |
70846f0a | 13705 | EOF |
138be253 | 13706 | if { (eval echo configure:13707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13707 | rm -rf conftest* |
13708 | eval "ac_cv_func_$ac_func=yes" | |
13709 | else | |
13710 | echo "configure: failed program was:" >&5 | |
13711 | cat conftest.$ac_ext >&5 | |
13712 | rm -rf conftest* | |
13713 | eval "ac_cv_func_$ac_func=no" | |
13714 | fi | |
13715 | rm -f conftest* | |
13716 | fi | |
70846f0a | 13717 | |
698dcdb6 VZ |
13718 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
13719 | echo "$ac_t""yes" 1>&6 | |
13720 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13721 | cat >> confdefs.h <<EOF | |
13722 | #define $ac_tr_func 1 | |
13723 | EOF | |
13724 | ||
13725 | else | |
13726 | echo "$ac_t""no" 1>&6 | |
70846f0a VZ |
13727 | fi |
13728 | done | |
13729 | ||
698dcdb6 VZ |
13730 | |
13731 | ||
13732 | for ac_hdr in sched.h | |
10f2d63a | 13733 | do |
698dcdb6 VZ |
13734 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
13735 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
138be253 | 13736 | echo "configure:13737: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
13737 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13738 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13739 | else | |
13740 | cat > conftest.$ac_ext <<EOF | |
138be253 | 13741 | #line 13742 "configure" |
10f2d63a | 13742 | #include "confdefs.h" |
698dcdb6 VZ |
13743 | #include <$ac_hdr> |
13744 | EOF | |
13745 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
138be253 | 13746 | { (eval echo configure:13747: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13747 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13748 | if test -z "$ac_err"; then | |
13749 | rm -rf conftest* | |
13750 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 13751 | else |
698dcdb6 VZ |
13752 | echo "$ac_err" >&5 |
13753 | echo "configure: failed program was:" >&5 | |
10f2d63a | 13754 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13755 | rm -rf conftest* |
13756 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 13757 | fi |
698dcdb6 | 13758 | rm -f conftest* |
10f2d63a | 13759 | fi |
698dcdb6 VZ |
13760 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13761 | echo "$ac_t""yes" 1>&6 | |
13762 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13763 | cat >> confdefs.h <<EOF | |
13764 | #define $ac_tr_hdr 1 | |
10f2d63a | 13765 | EOF |
698dcdb6 VZ |
13766 | |
13767 | else | |
13768 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13769 | fi |
13770 | done | |
13771 | ||
698dcdb6 VZ |
13772 | |
13773 | echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6 | |
138be253 | 13774 | echo "configure:13775: checking for sched_yield in -l$THREADS_LINK" >&5 |
698dcdb6 VZ |
13775 | ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'` |
13776 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13777 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13778 | else |
698dcdb6 | 13779 | ac_save_LIBS="$LIBS" |
10f2d63a | 13780 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 13781 | cat > conftest.$ac_ext <<EOF |
138be253 | 13782 | #line 13783 "configure" |
10f2d63a VZ |
13783 | #include "confdefs.h" |
13784 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13785 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13786 | builtin and then its argument prototype would still apply. */ |
13787 | char sched_yield(); | |
13788 | ||
13789 | int main() { | |
13790 | sched_yield() | |
13791 | ; return 0; } | |
13792 | EOF | |
138be253 | 13793 | if { (eval echo configure:13794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13794 | rm -rf conftest* |
13795 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13796 | else | |
13797 | echo "configure: failed program was:" >&5 | |
13798 | cat conftest.$ac_ext >&5 | |
13799 | rm -rf conftest* | |
13800 | eval "ac_cv_lib_$ac_lib_var=no" | |
13801 | fi | |
13802 | rm -f conftest* | |
13803 | LIBS="$ac_save_LIBS" | |
13804 | ||
13805 | fi | |
13806 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13807 | echo "$ac_t""yes" 1>&6 | |
13808 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
13809 | #define HAVE_SCHED_YIELD 1 |
13810 | EOF | |
13811 | ||
13812 | else | |
698dcdb6 VZ |
13813 | echo "$ac_t""no" 1>&6 |
13814 | echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6 | |
138be253 | 13815 | echo "configure:13816: checking for sched_yield in -lposix4" >&5 |
698dcdb6 VZ |
13816 | ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'` |
13817 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13818 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13819 | else |
698dcdb6 | 13820 | ac_save_LIBS="$LIBS" |
1e487827 | 13821 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 13822 | cat > conftest.$ac_ext <<EOF |
138be253 | 13823 | #line 13824 "configure" |
10f2d63a VZ |
13824 | #include "confdefs.h" |
13825 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13826 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13827 | builtin and then its argument prototype would still apply. */ |
13828 | char sched_yield(); | |
13829 | ||
13830 | int main() { | |
13831 | sched_yield() | |
13832 | ; return 0; } | |
13833 | EOF | |
138be253 | 13834 | if { (eval echo configure:13835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13835 | rm -rf conftest* |
13836 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13837 | else | |
13838 | echo "configure: failed program was:" >&5 | |
13839 | cat conftest.$ac_ext >&5 | |
13840 | rm -rf conftest* | |
13841 | eval "ac_cv_lib_$ac_lib_var=no" | |
13842 | fi | |
13843 | rm -f conftest* | |
13844 | LIBS="$ac_save_LIBS" | |
13845 | ||
13846 | fi | |
13847 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13848 | echo "$ac_t""yes" 1>&6 | |
13849 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
13850 | #define HAVE_SCHED_YIELD 1 |
13851 | EOF | |
13852 | POSIX4_LINK="-lposix4" | |
13853 | else | |
698dcdb6 VZ |
13854 | echo "$ac_t""no" 1>&6 |
13855 | echo "configure: warning: wxThread::Yield will not work properly" 1>&2 | |
13856 | ||
6232543b | 13857 | fi |
10f2d63a | 13858 | |
698dcdb6 | 13859 | |
1e487827 | 13860 | fi |
703e0a69 | 13861 | |
698dcdb6 | 13862 | |
f6bcfd97 | 13863 | HAVE_PRIOR_FUNCS=0 |
698dcdb6 | 13864 | echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6 |
138be253 | 13865 | echo "configure:13866: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5 |
698dcdb6 VZ |
13866 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'` |
13867 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13868 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13869 | else |
698dcdb6 | 13870 | ac_save_LIBS="$LIBS" |
10f2d63a | 13871 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 13872 | cat > conftest.$ac_ext <<EOF |
138be253 | 13873 | #line 13874 "configure" |
10f2d63a VZ |
13874 | #include "confdefs.h" |
13875 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13876 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13877 | builtin and then its argument prototype would still apply. */ |
13878 | char pthread_attr_getschedpolicy(); | |
13879 | ||
13880 | int main() { | |
13881 | pthread_attr_getschedpolicy() | |
13882 | ; return 0; } | |
13883 | EOF | |
138be253 | 13884 | if { (eval echo configure:13885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13885 | rm -rf conftest* |
13886 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13887 | else | |
13888 | echo "configure: failed program was:" >&5 | |
13889 | cat conftest.$ac_ext >&5 | |
13890 | rm -rf conftest* | |
13891 | eval "ac_cv_lib_$ac_lib_var=no" | |
13892 | fi | |
13893 | rm -f conftest* | |
13894 | LIBS="$ac_save_LIBS" | |
13895 | ||
13896 | fi | |
13897 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13898 | echo "$ac_t""yes" 1>&6 | |
13899 | echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6 | |
138be253 | 13900 | echo "configure:13901: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5 |
698dcdb6 VZ |
13901 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'` |
13902 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13903 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13904 | else | |
13905 | ac_save_LIBS="$LIBS" | |
f6bcfd97 | 13906 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 13907 | cat > conftest.$ac_ext <<EOF |
138be253 | 13908 | #line 13909 "configure" |
f6bcfd97 BP |
13909 | #include "confdefs.h" |
13910 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13911 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13912 | builtin and then its argument prototype would still apply. */ |
13913 | char pthread_attr_setschedparam(); | |
13914 | ||
13915 | int main() { | |
13916 | pthread_attr_setschedparam() | |
13917 | ; return 0; } | |
13918 | EOF | |
138be253 | 13919 | if { (eval echo configure:13920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13920 | rm -rf conftest* |
13921 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13922 | else | |
13923 | echo "configure: failed program was:" >&5 | |
13924 | cat conftest.$ac_ext >&5 | |
13925 | rm -rf conftest* | |
13926 | eval "ac_cv_lib_$ac_lib_var=no" | |
13927 | fi | |
13928 | rm -f conftest* | |
13929 | LIBS="$ac_save_LIBS" | |
13930 | ||
13931 | fi | |
13932 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13933 | echo "$ac_t""yes" 1>&6 | |
13934 | echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6 | |
138be253 | 13935 | echo "configure:13936: checking for sched_get_priority_max in -l$THREADS_LINK" >&5 |
698dcdb6 VZ |
13936 | ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
13937 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13938 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13939 | else | |
13940 | ac_save_LIBS="$LIBS" | |
f6bcfd97 | 13941 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 13942 | cat > conftest.$ac_ext <<EOF |
138be253 | 13943 | #line 13944 "configure" |
f6bcfd97 BP |
13944 | #include "confdefs.h" |
13945 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13946 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13947 | builtin and then its argument prototype would still apply. */ |
13948 | char sched_get_priority_max(); | |
13949 | ||
13950 | int main() { | |
13951 | sched_get_priority_max() | |
13952 | ; return 0; } | |
13953 | EOF | |
138be253 | 13954 | if { (eval echo configure:13955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13955 | rm -rf conftest* |
13956 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13957 | else | |
13958 | echo "configure: failed program was:" >&5 | |
13959 | cat conftest.$ac_ext >&5 | |
13960 | rm -rf conftest* | |
13961 | eval "ac_cv_lib_$ac_lib_var=no" | |
13962 | fi | |
13963 | rm -f conftest* | |
13964 | LIBS="$ac_save_LIBS" | |
13965 | ||
13966 | fi | |
13967 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13968 | echo "$ac_t""yes" 1>&6 | |
f6bcfd97 | 13969 | HAVE_PRIOR_FUNCS=1 |
10f2d63a | 13970 | else |
698dcdb6 VZ |
13971 | echo "$ac_t""no" 1>&6 |
13972 | echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6 | |
138be253 | 13973 | echo "configure:13974: checking for sched_get_priority_max in -lposix4" >&5 |
698dcdb6 VZ |
13974 | ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
13975 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13976 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 13977 | else |
698dcdb6 | 13978 | ac_save_LIBS="$LIBS" |
1e487827 | 13979 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 13980 | cat > conftest.$ac_ext <<EOF |
138be253 | 13981 | #line 13982 "configure" |
10f2d63a | 13982 | #include "confdefs.h" |
6232543b | 13983 | /* Override any gcc2 internal prototype to avoid an error. */ |
6232543b | 13984 | /* We use char because int might match the return type of a gcc2 |
698dcdb6 VZ |
13985 | builtin and then its argument prototype would still apply. */ |
13986 | char sched_get_priority_max(); | |
13987 | ||
13988 | int main() { | |
13989 | sched_get_priority_max() | |
13990 | ; return 0; } | |
13991 | EOF | |
138be253 | 13992 | if { (eval echo configure:13993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13993 | rm -rf conftest* |
13994 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13995 | else | |
13996 | echo "configure: failed program was:" >&5 | |
13997 | cat conftest.$ac_ext >&5 | |
13998 | rm -rf conftest* | |
13999 | eval "ac_cv_lib_$ac_lib_var=no" | |
14000 | fi | |
14001 | rm -f conftest* | |
14002 | LIBS="$ac_save_LIBS" | |
10f2d63a | 14003 | |
698dcdb6 VZ |
14004 | fi |
14005 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14006 | echo "$ac_t""yes" 1>&6 | |
14007 | ||
f6bcfd97 BP |
14008 | HAVE_PRIOR_FUNCS=1 |
14009 | POSIX4_LINK="-lposix4" | |
698dcdb6 VZ |
14010 | |
14011 | else | |
14012 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
14013 | fi |
14014 | ||
698dcdb6 | 14015 | |
10f2d63a VZ |
14016 | fi |
14017 | ||
698dcdb6 VZ |
14018 | |
14019 | else | |
14020 | echo "$ac_t""no" 1>&6 | |
6232543b | 14021 | fi |
10f2d63a | 14022 | |
698dcdb6 VZ |
14023 | |
14024 | else | |
14025 | echo "$ac_t""no" 1>&6 | |
1e487827 | 14026 | fi |
703e0a69 | 14027 | |
698dcdb6 | 14028 | |
f6bcfd97 | 14029 | if test "$HAVE_PRIOR_FUNCS" = 1; then |
698dcdb6 | 14030 | cat >> confdefs.h <<\EOF |
f6bcfd97 BP |
14031 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 |
14032 | EOF | |
14033 | ||
14034 | else | |
698dcdb6 | 14035 | echo "configure: warning: Setting thread priority will not work" 1>&2 |
f6bcfd97 BP |
14036 | fi |
14037 | ||
698dcdb6 | 14038 | echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6 |
138be253 | 14039 | echo "configure:14040: checking for pthread_cancel in -l$THREADS_LINK" >&5 |
698dcdb6 VZ |
14040 | ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'` |
14041 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14042 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14043 | else |
698dcdb6 | 14044 | ac_save_LIBS="$LIBS" |
10f2d63a | 14045 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 14046 | cat > conftest.$ac_ext <<EOF |
138be253 | 14047 | #line 14048 "configure" |
10f2d63a VZ |
14048 | #include "confdefs.h" |
14049 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14050 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14051 | builtin and then its argument prototype would still apply. */ |
14052 | char pthread_cancel(); | |
14053 | ||
14054 | int main() { | |
14055 | pthread_cancel() | |
14056 | ; return 0; } | |
14057 | EOF | |
138be253 | 14058 | if { (eval echo configure:14059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14059 | rm -rf conftest* |
14060 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14061 | else | |
14062 | echo "configure: failed program was:" >&5 | |
14063 | cat conftest.$ac_ext >&5 | |
14064 | rm -rf conftest* | |
14065 | eval "ac_cv_lib_$ac_lib_var=no" | |
14066 | fi | |
14067 | rm -f conftest* | |
14068 | LIBS="$ac_save_LIBS" | |
14069 | ||
14070 | fi | |
14071 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14072 | echo "$ac_t""yes" 1>&6 | |
14073 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
14074 | #define HAVE_PTHREAD_CANCEL 1 |
14075 | EOF | |
14076 | ||
14077 | else | |
698dcdb6 VZ |
14078 | echo "$ac_t""no" 1>&6 |
14079 | echo "configure: warning: wxThread::Kill() will not work properly" 1>&2 | |
10f2d63a VZ |
14080 | fi |
14081 | ||
1e487827 | 14082 | |
698dcdb6 | 14083 | echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6 |
138be253 | 14084 | echo "configure:14085: checking for pthread_cleanup_push/pop" >&5 |
698dcdb6 VZ |
14085 | if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then |
14086 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14087 | else | |
14088 | ||
14089 | cat > conftest.$ac_ext <<EOF | |
138be253 | 14090 | #line 14091 "configure" |
10f2d63a VZ |
14091 | #include "confdefs.h" |
14092 | #include <pthread.h> | |
698dcdb6 | 14093 | int main() { |
10f2d63a VZ |
14094 | |
14095 | pthread_cleanup_push(NULL, NULL); | |
14096 | pthread_cleanup_pop(0); | |
698dcdb6 VZ |
14097 | |
14098 | ; return 0; } | |
14099 | EOF | |
138be253 | 14100 | if { (eval echo configure:14101: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
14101 | rm -rf conftest* |
14102 | ||
10f2d63a | 14103 | wx_cv_func_pthread_cleanup_push=yes |
698dcdb6 | 14104 | |
10f2d63a | 14105 | else |
698dcdb6 VZ |
14106 | echo "configure: failed program was:" >&5 |
14107 | cat conftest.$ac_ext >&5 | |
14108 | rm -rf conftest* | |
14109 | ||
10f2d63a | 14110 | wx_cv_func_pthread_cleanup_push=no |
698dcdb6 | 14111 | |
6232543b | 14112 | fi |
698dcdb6 VZ |
14113 | rm -f conftest* |
14114 | ||
1e487827 | 14115 | fi |
698dcdb6 VZ |
14116 | |
14117 | echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6 | |
10f2d63a | 14118 | |
d9b9876f | 14119 | if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then |
698dcdb6 | 14120 | cat >> confdefs.h <<\EOF |
d9b9876f VZ |
14121 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 |
14122 | EOF | |
14123 | ||
14124 | fi | |
14125 | ||
698dcdb6 VZ |
14126 | |
14127 | echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6 | |
138be253 | 14128 | echo "configure:14129: checking for pthread_mutexattr_t" >&5 |
698dcdb6 VZ |
14129 | if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then |
14130 | echo $ac_n "(cached) $ac_c" 1>&6 | |
d9b9876f | 14131 | else |
698dcdb6 VZ |
14132 | |
14133 | cat > conftest.$ac_ext <<EOF | |
138be253 | 14134 | #line 14135 "configure" |
d9b9876f VZ |
14135 | #include "confdefs.h" |
14136 | #include <pthread.h> | |
698dcdb6 | 14137 | int main() { |
d9b9876f VZ |
14138 | |
14139 | pthread_mutexattr_t attr; | |
14140 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
698dcdb6 VZ |
14141 | |
14142 | ; return 0; } | |
14143 | EOF | |
138be253 | 14144 | if { (eval echo configure:14145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
14145 | rm -rf conftest* |
14146 | ||
d9b9876f | 14147 | wx_cv_type_pthread_mutexattr_t=yes |
698dcdb6 | 14148 | |
d9b9876f | 14149 | else |
698dcdb6 VZ |
14150 | echo "configure: failed program was:" >&5 |
14151 | cat conftest.$ac_ext >&5 | |
14152 | rm -rf conftest* | |
14153 | ||
d9b9876f | 14154 | wx_cv_type_pthread_mutexattr_t=no |
698dcdb6 VZ |
14155 | |
14156 | ||
6232543b | 14157 | fi |
698dcdb6 VZ |
14158 | rm -f conftest* |
14159 | ||
1e487827 | 14160 | fi |
698dcdb6 VZ |
14161 | |
14162 | echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6 | |
d9b9876f VZ |
14163 | |
14164 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then | |
698dcdb6 | 14165 | cat >> confdefs.h <<\EOF |
d9b9876f VZ |
14166 | #define HAVE_PTHREAD_MUTEXATTR_T 1 |
14167 | EOF | |
14168 | ||
14169 | else | |
698dcdb6 | 14170 | echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6 |
138be253 | 14171 | echo "configure:14172: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 |
698dcdb6 VZ |
14172 | if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then |
14173 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14174 | else | |
14175 | ||
14176 | cat > conftest.$ac_ext <<EOF | |
138be253 | 14177 | #line 14178 "configure" |
d9b9876f VZ |
14178 | #include "confdefs.h" |
14179 | #include <pthread.h> | |
698dcdb6 | 14180 | int main() { |
d9b9876f VZ |
14181 | |
14182 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; | |
698dcdb6 VZ |
14183 | |
14184 | ; return 0; } | |
14185 | EOF | |
138be253 | 14186 | if { (eval echo configure:14187: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
14187 | rm -rf conftest* |
14188 | ||
d9b9876f | 14189 | wx_cv_type_pthread_rec_mutex_init=yes |
698dcdb6 | 14190 | |
d9b9876f | 14191 | else |
698dcdb6 VZ |
14192 | echo "configure: failed program was:" >&5 |
14193 | cat conftest.$ac_ext >&5 | |
14194 | rm -rf conftest* | |
14195 | ||
d9b9876f | 14196 | wx_cv_type_pthread_rec_mutex_init=no |
698dcdb6 VZ |
14197 | |
14198 | ||
6232543b | 14199 | fi |
698dcdb6 VZ |
14200 | rm -f conftest* |
14201 | ||
1e487827 | 14202 | fi |
698dcdb6 VZ |
14203 | |
14204 | echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6 | |
3765e936 | 14205 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then |
698dcdb6 | 14206 | cat >> confdefs.h <<\EOF |
d9b9876f VZ |
14207 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 |
14208 | EOF | |
14209 | ||
14210 | else | |
698dcdb6 | 14211 | echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2 |
d9b9876f VZ |
14212 | fi |
14213 | fi | |
14214 | ||
10f2d63a | 14215 | THREADS_LINK="-l$THREADS_LINK" |
186837b0 VZ |
14216 | |
14217 | if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then | |
14218 | CFLAGS="${CFLAGS} -mt" | |
14219 | CXXFLAGS="${CXXFLAGS} -mt" | |
14220 | LDFLAGS="${LDFLAGS} -mt" | |
14221 | fi | |
10f2d63a VZ |
14222 | fi |
14223 | ||
14224 | fi | |
14225 | ||
14226 | if test "$wxUSE_THREADS" = "yes"; then | |
698dcdb6 | 14227 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
14228 | #define wxUSE_THREADS 1 |
14229 | EOF | |
14230 | ||
698dcdb6 | 14231 | |
2c6025bc | 14232 | if test "$wxUSE_MAC" = "0"; then |
10f2d63a | 14233 | CFLAGS="${CFLAGS} -D_REENTRANT" |
2c6025bc GD |
14234 | CXXFLAGS="${CXXFLAGS} -D_REENTRANT" |
14235 | fi | |
10f2d63a VZ |
14236 | |
14237 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
14238 | else | |
14239 | if test "$ac_cv_func_strtok_r" = "yes"; then | |
698dcdb6 | 14240 | echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6 |
138be253 | 14241 | echo "configure:14242: checking if -D_REENTRANT is needed" >&5 |
ab9b9eab VZ |
14242 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
14243 | CFLAGS="${CFLAGS} -D_REENTRANT" | |
14244 | CXXFLAGS="${CXXFLAGS} -D_REENTRANT" | |
698dcdb6 | 14245 | echo "$ac_t""yes" 1>&6 |
ab9b9eab | 14246 | else |
698dcdb6 | 14247 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
14248 | fi |
14249 | fi | |
14250 | fi | |
14251 | ||
6f72b082 | 14252 | if test "$WXGTK20" = 1 ; then |
698dcdb6 | 14253 | cat >> confdefs.h <<EOF |
6f72b082 | 14254 | #define __WXGTK20__ $WXGTK20 |
13111b2a VZ |
14255 | EOF |
14256 | ||
14257 | WXGTK12=1 | |
14258 | fi | |
14259 | ||
10f2d63a | 14260 | if test "$WXGTK12" = 1 ; then |
698dcdb6 | 14261 | cat >> confdefs.h <<EOF |
10f2d63a VZ |
14262 | #define __WXGTK12__ $WXGTK12 |
14263 | EOF | |
14264 | ||
14265 | fi | |
14266 | ||
f6bcfd97 | 14267 | if test "$WXGTK127" = 1 ; then |
698dcdb6 | 14268 | cat >> confdefs.h <<EOF |
f6bcfd97 BP |
14269 | #define __WXGTK127__ $WXGTK127 |
14270 | EOF | |
14271 | ||
14272 | fi | |
14273 | ||
10f2d63a VZ |
14274 | if test "$WXWINE" = 1 ; then |
14275 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__" | |
14276 | fi | |
14277 | ||
b4085ce6 | 14278 | if test "$wxUSE_MAC" = 1 ; then |
2c6025bc | 14279 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__UNIX__ -D__POWERPC__ -DTARGET_CARBON" |
ea5999b9 | 14280 | CFLAGS="${CFLAGS} -fno-common -fpascal-strings" |
0c451ef3 | 14281 | CPPFLAGS="${CPPFLAGS} -cpp-precomp -fno-common -fpascal-strings" |
2f51a9ec GD |
14282 | # Extract the first word of "Rez", so it can be a program name with args. |
14283 | set dummy Rez; ac_word=$2 | |
698dcdb6 | 14284 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
138be253 | 14285 | echo "configure:14286: checking for $ac_word" >&5 |
698dcdb6 VZ |
14286 | if eval "test \"`echo '$''{'ac_cv_prog_REZ'+set}'`\" = set"; then |
14287 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2f51a9ec GD |
14288 | else |
14289 | if test -n "$REZ"; then | |
14290 | ac_cv_prog_REZ="$REZ" # Let the user override the test. | |
14291 | else | |
698dcdb6 VZ |
14292 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
14293 | ac_dummy="$PATH" | |
14294 | for ac_dir in $ac_dummy; do | |
14295 | test -z "$ac_dir" && ac_dir=. | |
14296 | if test -f $ac_dir/$ac_word; then | |
14297 | ac_cv_prog_REZ="Rez" | |
14298 | break | |
14299 | fi | |
14300 | done | |
14301 | IFS="$ac_save_ifs" | |
2f51a9ec GD |
14302 | test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez" |
14303 | fi | |
14304 | fi | |
698dcdb6 | 14305 | REZ="$ac_cv_prog_REZ" |
2f51a9ec | 14306 | if test -n "$REZ"; then |
698dcdb6 | 14307 | echo "$ac_t""$REZ" 1>&6 |
2f51a9ec | 14308 | else |
698dcdb6 | 14309 | echo "$ac_t""no" 1>&6 |
2f51a9ec GD |
14310 | fi |
14311 | ||
14312 | # Extract the first word of "Derez", so it can be a program name with args. | |
14313 | set dummy Derez; ac_word=$2 | |
698dcdb6 | 14314 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
138be253 | 14315 | echo "configure:14316: checking for $ac_word" >&5 |
698dcdb6 VZ |
14316 | if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then |
14317 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2f51a9ec GD |
14318 | else |
14319 | if test -n "$DEREZ"; then | |
14320 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
14321 | else | |
698dcdb6 VZ |
14322 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
14323 | ac_dummy="$PATH" | |
14324 | for ac_dir in $ac_dummy; do | |
14325 | test -z "$ac_dir" && ac_dir=. | |
14326 | if test -f $ac_dir/$ac_word; then | |
14327 | ac_cv_prog_DEREZ="Derez" | |
14328 | break | |
14329 | fi | |
14330 | done | |
14331 | IFS="$ac_save_ifs" | |
2f51a9ec GD |
14332 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/Derez" |
14333 | fi | |
14334 | fi | |
698dcdb6 | 14335 | DEREZ="$ac_cv_prog_DEREZ" |
2f51a9ec | 14336 | if test -n "$DEREZ"; then |
698dcdb6 | 14337 | echo "$ac_t""$DEREZ" 1>&6 |
2f51a9ec | 14338 | else |
698dcdb6 | 14339 | echo "$ac_t""no" 1>&6 |
2f51a9ec GD |
14340 | fi |
14341 | ||
14342 | RESCOMP=${REZ} | |
14343 | REZFLAGS="-d __UNIX__ -useDF" | |
14344 | DEREZFLAGS="Carbon.r -useDF" | |
14345 | RESFLAGS="Carbon.r -t APPL" | |
14346 | LIBWXMACRES="\$(LIBWX_MACRES)" | |
14347 | LIBWXMACRESCOMP="\$(LIBWX_MACRESCOMP)" | |
b4085ce6 GD |
14348 | fi |
14349 | ||
10f2d63a VZ |
14350 | if test "$wxUSE_CYGWIN" = 1 ; then |
14351 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__" | |
14352 | fi | |
14353 | ||
14354 | WXDEBUG= | |
14355 | ||
14356 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
14357 | WXDEBUG="-g" | |
14358 | wxUSE_OPTIMISE=no | |
14359 | fi | |
14360 | ||
14361 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
14362 | wxUSE_DEBUG_INFO=yes | |
14363 | WXDEBUG="-ggdb" | |
14364 | fi | |
14365 | ||
14366 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
698dcdb6 | 14367 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
14368 | #define WXDEBUG 1 |
14369 | EOF | |
14370 | ||
14371 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
14372 | else | |
14373 | if test "$wxUSE_GTK" = 1 ; then | |
14374 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
14375 | fi | |
14376 | fi | |
14377 | ||
14378 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
698dcdb6 | 14379 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
14380 | #define wxUSE_MEMORY_TRACING 1 |
14381 | EOF | |
14382 | ||
698dcdb6 | 14383 | cat >> confdefs.h <<\EOF |
10f2d63a | 14384 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 |
47c13eb7 VS |
14385 | EOF |
14386 | ||
698dcdb6 | 14387 | cat >> confdefs.h <<\EOF |
47c13eb7 | 14388 | #define wxUSE_DEBUG_NEW_ALWAYS 1 |
10f2d63a VZ |
14389 | EOF |
14390 | ||
14391 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
14392 | fi | |
14393 | ||
14394 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
14395 | DMALLOC_LINK="-ldmalloc" | |
14396 | fi | |
14397 | ||
14398 | PROFILE= | |
14399 | if test "$wxUSE_PROFILE" = "yes" ; then | |
14400 | PROFILE="-pg" | |
14401 | fi | |
14402 | ||
14403 | DEP_INFO_FLAGS= | |
caa2c79b | 14404 | CODE_GEN_FLAGS= |
0f3f1cbc | 14405 | CODE_GEN_FLAGS_CXX= |
10f2d63a VZ |
14406 | if test "$GCC" = yes ; then |
14407 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
0f3f1cbc | 14408 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-rtti" |
10f2d63a VZ |
14409 | fi |
14410 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
0f3f1cbc | 14411 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-exceptions" |
10f2d63a VZ |
14412 | fi |
14413 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
caa2c79b | 14414 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" |
10f2d63a VZ |
14415 | fi |
14416 | if test "$wxUSE_NO_DEPS" = "no" ; then | |
14417 | DEP_INFO_FLAGS="-MMD" | |
14418 | fi | |
14419 | fi | |
14420 | ||
698dcdb6 | 14421 | |
10f2d63a VZ |
14422 | CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" ` |
14423 | CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" ` | |
14424 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
14425 | OPTIMISE= | |
14426 | else | |
14427 | if test "$GCC" = yes ; then | |
14428 | OPTIMISE="-O2" | |
14429 | case "${host}" in | |
14430 | i586-*-*|i686-*-* ) | |
14431 | OPTIMISE="${OPTIMISE} " | |
14432 | ;; | |
14433 | esac | |
14434 | else | |
14435 | OPTIMISE="-O" | |
14436 | fi | |
14437 | fi | |
14438 | ||
54276ccf VZ |
14439 | if test "$WXWIN_COMPATIBILITY_2" = "yes"; then |
14440 | cat >> confdefs.h <<\EOF | |
14441 | #define WXWIN_COMPATIBILITY_2 1 | |
14442 | EOF | |
14443 | ||
14444 | ||
14445 | WXWIN_COMPATIBILITY_2_2="yes" | |
14446 | fi | |
14447 | ||
14448 | if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then | |
14449 | cat >> confdefs.h <<\EOF | |
14450 | #define WXWIN_COMPATIBILITY_2_2 1 | |
14451 | EOF | |
14452 | ||
14453 | fi | |
14454 | ||
698dcdb6 | 14455 | |
10f2d63a | 14456 | ZLIB_INCLUDE= |
422107f9 | 14457 | if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then |
698dcdb6 | 14458 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
14459 | #define wxUSE_ZLIB 1 |
14460 | EOF | |
14461 | ||
422107f9 VZ |
14462 | if test "$wxUSE_ZLIB" = "yes" ; then |
14463 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
14464 | else | |
14465 | ZLIB_LINK= | |
698dcdb6 VZ |
14466 | ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'` |
14467 | echo $ac_n "checking for zlib.h""... $ac_c" 1>&6 | |
138be253 | 14468 | echo "configure:14469: checking for zlib.h" >&5 |
698dcdb6 VZ |
14469 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
14470 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14471 | else | |
14472 | cat > conftest.$ac_ext <<EOF | |
138be253 | 14473 | #line 14474 "configure" |
422107f9 VZ |
14474 | #include "confdefs.h" |
14475 | #include <zlib.h> | |
698dcdb6 VZ |
14476 | EOF |
14477 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
138be253 | 14478 | { (eval echo configure:14479: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
14479 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14480 | if test -z "$ac_err"; then | |
14481 | rm -rf conftest* | |
14482 | eval "ac_cv_header_$ac_safe=yes" | |
422107f9 | 14483 | else |
698dcdb6 VZ |
14484 | echo "$ac_err" >&5 |
14485 | echo "configure: failed program was:" >&5 | |
422107f9 | 14486 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
14487 | rm -rf conftest* |
14488 | eval "ac_cv_header_$ac_safe=no" | |
422107f9 | 14489 | fi |
698dcdb6 | 14490 | rm -f conftest* |
422107f9 | 14491 | fi |
698dcdb6 VZ |
14492 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
14493 | echo "$ac_t""yes" 1>&6 | |
14494 | echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6 | |
138be253 | 14495 | echo "configure:14496: checking for deflate in -lz" >&5 |
698dcdb6 VZ |
14496 | ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'` |
14497 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14498 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 14499 | else |
698dcdb6 | 14500 | ac_save_LIBS="$LIBS" |
422107f9 | 14501 | LIBS="-lz $LIBS" |
698dcdb6 | 14502 | cat > conftest.$ac_ext <<EOF |
138be253 | 14503 | #line 14504 "configure" |
422107f9 VZ |
14504 | #include "confdefs.h" |
14505 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14506 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14507 | builtin and then its argument prototype would still apply. */ |
14508 | char deflate(); | |
14509 | ||
14510 | int main() { | |
14511 | deflate() | |
14512 | ; return 0; } | |
14513 | EOF | |
138be253 | 14514 | if { (eval echo configure:14515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14515 | rm -rf conftest* |
14516 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14517 | else | |
14518 | echo "configure: failed program was:" >&5 | |
14519 | cat conftest.$ac_ext >&5 | |
14520 | rm -rf conftest* | |
14521 | eval "ac_cv_lib_$ac_lib_var=no" | |
14522 | fi | |
14523 | rm -f conftest* | |
14524 | LIBS="$ac_save_LIBS" | |
14525 | ||
14526 | fi | |
14527 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14528 | echo "$ac_t""yes" 1>&6 | |
422107f9 | 14529 | ZLIB_LINK="-lz" |
698dcdb6 VZ |
14530 | else |
14531 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
14532 | fi |
14533 | ||
698dcdb6 VZ |
14534 | else |
14535 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
14536 | fi |
14537 | ||
14538 | if test "x$ZLIB_LINK" = "x" ; then | |
698dcdb6 | 14539 | { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; } |
422107f9 VZ |
14540 | fi |
14541 | fi | |
10f2d63a VZ |
14542 | fi |
14543 | ||
14544 | PNG_INCLUDE= | |
422107f9 | 14545 | if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then |
698dcdb6 | 14546 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
14547 | #define wxUSE_LIBPNG 1 |
14548 | EOF | |
14549 | ||
41fd4136 | 14550 | if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then |
698dcdb6 | 14551 | echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2 |
422107f9 VZ |
14552 | wxUSE_LIBPNG=yes |
14553 | fi | |
14554 | ||
14555 | if test "$wxUSE_LIBPNG" = "yes" ; then | |
14556 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
14557 | else | |
14558 | PNG_LINK= | |
698dcdb6 VZ |
14559 | ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` |
14560 | echo $ac_n "checking for png.h""... $ac_c" 1>&6 | |
138be253 | 14561 | echo "configure:14562: checking for png.h" >&5 |
698dcdb6 VZ |
14562 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
14563 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14564 | else | |
14565 | cat > conftest.$ac_ext <<EOF | |
138be253 | 14566 | #line 14567 "configure" |
422107f9 VZ |
14567 | #include "confdefs.h" |
14568 | #include <png.h> | |
698dcdb6 VZ |
14569 | EOF |
14570 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
138be253 | 14571 | { (eval echo configure:14572: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
14572 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14573 | if test -z "$ac_err"; then | |
14574 | rm -rf conftest* | |
14575 | eval "ac_cv_header_$ac_safe=yes" | |
422107f9 | 14576 | else |
698dcdb6 VZ |
14577 | echo "$ac_err" >&5 |
14578 | echo "configure: failed program was:" >&5 | |
422107f9 | 14579 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
14580 | rm -rf conftest* |
14581 | eval "ac_cv_header_$ac_safe=no" | |
422107f9 | 14582 | fi |
698dcdb6 | 14583 | rm -f conftest* |
422107f9 | 14584 | fi |
698dcdb6 VZ |
14585 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
14586 | echo "$ac_t""yes" 1>&6 | |
14587 | echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6 | |
138be253 | 14588 | echo "configure:14589: checking for png_check_sig in -lpng" >&5 |
698dcdb6 VZ |
14589 | ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'` |
14590 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14591 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 14592 | else |
698dcdb6 | 14593 | ac_save_LIBS="$LIBS" |
422107f9 | 14594 | LIBS="-lpng -lz -lm $LIBS" |
698dcdb6 | 14595 | cat > conftest.$ac_ext <<EOF |
138be253 | 14596 | #line 14597 "configure" |
422107f9 VZ |
14597 | #include "confdefs.h" |
14598 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14599 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14600 | builtin and then its argument prototype would still apply. */ |
14601 | char png_check_sig(); | |
14602 | ||
14603 | int main() { | |
14604 | png_check_sig() | |
14605 | ; return 0; } | |
14606 | EOF | |
138be253 | 14607 | if { (eval echo configure:14608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14608 | rm -rf conftest* |
14609 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14610 | else | |
14611 | echo "configure: failed program was:" >&5 | |
14612 | cat conftest.$ac_ext >&5 | |
14613 | rm -rf conftest* | |
14614 | eval "ac_cv_lib_$ac_lib_var=no" | |
14615 | fi | |
14616 | rm -f conftest* | |
14617 | LIBS="$ac_save_LIBS" | |
14618 | ||
14619 | fi | |
14620 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14621 | echo "$ac_t""yes" 1>&6 | |
422107f9 | 14622 | PNG_LINK="-lpng" |
698dcdb6 VZ |
14623 | else |
14624 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
14625 | fi |
14626 | ||
698dcdb6 VZ |
14627 | |
14628 | else | |
14629 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
14630 | fi |
14631 | ||
14632 | if test "x$PNG_LINK" = "x" ; then | |
698dcdb6 | 14633 | { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; } |
422107f9 VZ |
14634 | fi |
14635 | fi | |
14636 | ||
10f2d63a VZ |
14637 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" |
14638 | fi | |
14639 | ||
14640 | JPEG_INCLUDE= | |
422107f9 | 14641 | if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then |
698dcdb6 | 14642 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
14643 | #define wxUSE_LIBJPEG 1 |
14644 | EOF | |
14645 | ||
422107f9 VZ |
14646 | if test "$wxUSE_LIBJPEG" = "yes" ; then |
14647 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
14648 | else | |
14649 | JPEG_LINK= | |
463abc64 | 14650 | echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 |
138be253 | 14651 | echo "configure:14652: checking for jpeglib.h" >&5 |
463abc64 | 14652 | if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then |
698dcdb6 VZ |
14653 | echo $ac_n "(cached) $ac_c" 1>&6 |
14654 | else | |
14655 | cat > conftest.$ac_ext <<EOF | |
138be253 | 14656 | #line 14657 "configure" |
422107f9 | 14657 | #include "confdefs.h" |
463abc64 VZ |
14658 | |
14659 | #undef HAVE_STDLIB_H | |
14660 | #include <stdio.h> | |
14661 | #include <jpeglib.h> | |
14662 | ||
14663 | int main() { | |
14664 | ||
14665 | ||
14666 | ; return 0; } | |
698dcdb6 | 14667 | EOF |
138be253 | 14668 | if { (eval echo configure:14669: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 14669 | rm -rf conftest* |
463abc64 | 14670 | ac_cv_header_jpeglib_h=yes |
6232543b | 14671 | else |
698dcdb6 | 14672 | echo "configure: failed program was:" >&5 |
422107f9 | 14673 | cat conftest.$ac_ext >&5 |
698dcdb6 | 14674 | rm -rf conftest* |
463abc64 VZ |
14675 | ac_cv_header_jpeglib_h=no |
14676 | ||
422107f9 | 14677 | fi |
698dcdb6 | 14678 | rm -f conftest* |
463abc64 | 14679 | |
422107f9 | 14680 | fi |
463abc64 VZ |
14681 | |
14682 | echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6 | |
14683 | ||
14684 | if test "$ac_cv_header_jpeglib_h" = "yes"; then | |
14685 | echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6 | |
138be253 | 14686 | echo "configure:14687: checking for jpeg_read_header in -ljpeg" >&5 |
698dcdb6 VZ |
14687 | ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'` |
14688 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14689 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 14690 | else |
698dcdb6 | 14691 | ac_save_LIBS="$LIBS" |
422107f9 | 14692 | LIBS="-ljpeg $LIBS" |
698dcdb6 | 14693 | cat > conftest.$ac_ext <<EOF |
138be253 | 14694 | #line 14695 "configure" |
422107f9 VZ |
14695 | #include "confdefs.h" |
14696 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14697 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14698 | builtin and then its argument prototype would still apply. */ |
14699 | char jpeg_read_header(); | |
14700 | ||
14701 | int main() { | |
14702 | jpeg_read_header() | |
14703 | ; return 0; } | |
14704 | EOF | |
138be253 | 14705 | if { (eval echo configure:14706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14706 | rm -rf conftest* |
14707 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14708 | else | |
14709 | echo "configure: failed program was:" >&5 | |
14710 | cat conftest.$ac_ext >&5 | |
14711 | rm -rf conftest* | |
14712 | eval "ac_cv_lib_$ac_lib_var=no" | |
14713 | fi | |
14714 | rm -f conftest* | |
14715 | LIBS="$ac_save_LIBS" | |
14716 | ||
14717 | fi | |
14718 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14719 | echo "$ac_t""yes" 1>&6 | |
422107f9 | 14720 | JPEG_LINK="-ljpeg" |
698dcdb6 VZ |
14721 | else |
14722 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
14723 | fi |
14724 | ||
463abc64 | 14725 | fi |
422107f9 VZ |
14726 | |
14727 | if test "x$JPEG_LINK" = "x" ; then | |
698dcdb6 | 14728 | { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; } |
422107f9 VZ |
14729 | fi |
14730 | fi | |
10f2d63a VZ |
14731 | fi |
14732 | ||
c7a2bf27 | 14733 | TIFF_INCLUDE= |
0dcf9893 | 14734 | if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then |
698dcdb6 | 14735 | cat >> confdefs.h <<\EOF |
c7a2bf27 RR |
14736 | #define wxUSE_LIBTIFF 1 |
14737 | EOF | |
14738 | ||
665bbe97 | 14739 | if test "$wxUSE_LIBTIFF" = "yes" ; then |
0dcf9893 VZ |
14740 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" |
14741 | else | |
14742 | TIFF_LINK= | |
698dcdb6 VZ |
14743 | ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` |
14744 | echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | |
138be253 | 14745 | echo "configure:14746: checking for tiffio.h" >&5 |
698dcdb6 VZ |
14746 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
14747 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14748 | else | |
14749 | cat > conftest.$ac_ext <<EOF | |
138be253 | 14750 | #line 14751 "configure" |
0dcf9893 VZ |
14751 | #include "confdefs.h" |
14752 | #include <tiffio.h> | |
698dcdb6 VZ |
14753 | EOF |
14754 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
138be253 | 14755 | { (eval echo configure:14756: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
14756 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14757 | if test -z "$ac_err"; then | |
14758 | rm -rf conftest* | |
14759 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 14760 | else |
698dcdb6 VZ |
14761 | echo "$ac_err" >&5 |
14762 | echo "configure: failed program was:" >&5 | |
0dcf9893 | 14763 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
14764 | rm -rf conftest* |
14765 | eval "ac_cv_header_$ac_safe=no" | |
0dcf9893 | 14766 | fi |
698dcdb6 | 14767 | rm -f conftest* |
0dcf9893 | 14768 | fi |
698dcdb6 VZ |
14769 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
14770 | echo "$ac_t""yes" 1>&6 | |
14771 | echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6 | |
138be253 | 14772 | echo "configure:14773: checking for TIFFError in -ltiff" >&5 |
698dcdb6 VZ |
14773 | ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'` |
14774 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14775 | echo $ac_n "(cached) $ac_c" 1>&6 | |
0dcf9893 | 14776 | else |
698dcdb6 | 14777 | ac_save_LIBS="$LIBS" |
0dcf9893 | 14778 | LIBS="-ltiff -lm $LIBS" |
698dcdb6 | 14779 | cat > conftest.$ac_ext <<EOF |
138be253 | 14780 | #line 14781 "configure" |
0dcf9893 VZ |
14781 | #include "confdefs.h" |
14782 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14783 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14784 | builtin and then its argument prototype would still apply. */ |
14785 | char TIFFError(); | |
14786 | ||
14787 | int main() { | |
14788 | TIFFError() | |
14789 | ; return 0; } | |
14790 | EOF | |
138be253 | 14791 | if { (eval echo configure:14792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14792 | rm -rf conftest* |
14793 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14794 | else | |
14795 | echo "configure: failed program was:" >&5 | |
14796 | cat conftest.$ac_ext >&5 | |
14797 | rm -rf conftest* | |
14798 | eval "ac_cv_lib_$ac_lib_var=no" | |
14799 | fi | |
14800 | rm -f conftest* | |
14801 | LIBS="$ac_save_LIBS" | |
14802 | ||
14803 | fi | |
14804 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14805 | echo "$ac_t""yes" 1>&6 | |
0dcf9893 | 14806 | TIFF_LINK="-ltiff" |
698dcdb6 VZ |
14807 | else |
14808 | echo "$ac_t""no" 1>&6 | |
0dcf9893 VZ |
14809 | fi |
14810 | ||
698dcdb6 VZ |
14811 | else |
14812 | echo "$ac_t""no" 1>&6 | |
0dcf9893 VZ |
14813 | fi |
14814 | ||
14815 | if test "x$TIFF_LINK" = "x" ; then | |
698dcdb6 | 14816 | { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; } |
0dcf9893 VZ |
14817 | fi |
14818 | fi | |
c7a2bf27 RR |
14819 | fi |
14820 | ||
3fed1840 RR |
14821 | FREETYPE_INCLUDE= |
14822 | if test "$wxUSE_FREETYPE" = "yes" -o "$wxUSE_FREETYPE" = "sys" ; then | |
698dcdb6 | 14823 | cat >> confdefs.h <<\EOF |
3fed1840 RR |
14824 | #define wxUSE_FREETYPE 1 |
14825 | EOF | |
14826 | ||
14827 | if test "$wxUSE_FREETYPE" = "yes" ; then | |
14828 | FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype" | |
14829 | else | |
14830 | FREETYPE_LINK= | |
698dcdb6 VZ |
14831 | ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'` |
14832 | echo $ac_n "checking for freetype.h""... $ac_c" 1>&6 | |
138be253 | 14833 | echo "configure:14834: checking for freetype.h" >&5 |
698dcdb6 VZ |
14834 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
14835 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14836 | else | |
14837 | cat > conftest.$ac_ext <<EOF | |
138be253 | 14838 | #line 14839 "configure" |
3fed1840 RR |
14839 | #include "confdefs.h" |
14840 | #include <freetype.h> | |
698dcdb6 VZ |
14841 | EOF |
14842 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
138be253 | 14843 | { (eval echo configure:14844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
14844 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14845 | if test -z "$ac_err"; then | |
14846 | rm -rf conftest* | |
14847 | eval "ac_cv_header_$ac_safe=yes" | |
3fed1840 | 14848 | else |
698dcdb6 VZ |
14849 | echo "$ac_err" >&5 |
14850 | echo "configure: failed program was:" >&5 | |
3fed1840 | 14851 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
14852 | rm -rf conftest* |
14853 | eval "ac_cv_header_$ac_safe=no" | |
3fed1840 | 14854 | fi |
698dcdb6 | 14855 | rm -f conftest* |
3fed1840 | 14856 | fi |
698dcdb6 VZ |
14857 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
14858 | echo "$ac_t""yes" 1>&6 | |
14859 | echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6 | |
138be253 | 14860 | echo "configure:14861: checking for FT_Render_Glyph in -lfreetype" >&5 |
698dcdb6 VZ |
14861 | ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'` |
14862 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14863 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3fed1840 | 14864 | else |
698dcdb6 | 14865 | ac_save_LIBS="$LIBS" |
3fed1840 | 14866 | LIBS="-lfreetype -lm $LIBS" |
698dcdb6 | 14867 | cat > conftest.$ac_ext <<EOF |
138be253 | 14868 | #line 14869 "configure" |
3fed1840 RR |
14869 | #include "confdefs.h" |
14870 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14871 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14872 | builtin and then its argument prototype would still apply. */ |
14873 | char FT_Render_Glyph(); | |
14874 | ||
14875 | int main() { | |
14876 | FT_Render_Glyph() | |
14877 | ; return 0; } | |
14878 | EOF | |
138be253 | 14879 | if { (eval echo configure:14880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14880 | rm -rf conftest* |
14881 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14882 | else | |
14883 | echo "configure: failed program was:" >&5 | |
14884 | cat conftest.$ac_ext >&5 | |
14885 | rm -rf conftest* | |
14886 | eval "ac_cv_lib_$ac_lib_var=no" | |
14887 | fi | |
14888 | rm -f conftest* | |
14889 | LIBS="$ac_save_LIBS" | |
14890 | ||
14891 | fi | |
14892 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14893 | echo "$ac_t""yes" 1>&6 | |
3fed1840 | 14894 | FREETYPE_LINK="-lfreetype" |
698dcdb6 VZ |
14895 | else |
14896 | echo "$ac_t""no" 1>&6 | |
3fed1840 RR |
14897 | fi |
14898 | ||
698dcdb6 VZ |
14899 | |
14900 | else | |
14901 | echo "$ac_t""no" 1>&6 | |
3fed1840 RR |
14902 | fi |
14903 | ||
14904 | if test "x$FREETYPE_LINK" = "x" ; then | |
698dcdb6 | 14905 | { echo "configure: error: system freetype library not found! Use --with-freetype=yes to use the built-in freetype" 1>&2; exit 1; } |
3fed1840 RR |
14906 | fi |
14907 | fi | |
14908 | fi | |
14909 | ||
10f2d63a | 14910 | if test "$wxUSE_OPENGL" = "yes"; then |
698dcdb6 VZ |
14911 | ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'` |
14912 | echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6 | |
138be253 | 14913 | echo "configure:14914: checking for GL/gl.h" >&5 |
698dcdb6 VZ |
14914 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
14915 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14916 | else | |
14917 | cat > conftest.$ac_ext <<EOF | |
138be253 | 14918 | #line 14919 "configure" |
10f2d63a VZ |
14919 | #include "confdefs.h" |
14920 | #include <GL/gl.h> | |
698dcdb6 VZ |
14921 | EOF |
14922 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
138be253 | 14923 | { (eval echo configure:14924: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
14924 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14925 | if test -z "$ac_err"; then | |
14926 | rm -rf conftest* | |
14927 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 14928 | else |
698dcdb6 VZ |
14929 | echo "$ac_err" >&5 |
14930 | echo "configure: failed program was:" >&5 | |
10f2d63a | 14931 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
14932 | rm -rf conftest* |
14933 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 14934 | fi |
698dcdb6 | 14935 | rm -f conftest* |
10f2d63a | 14936 | fi |
698dcdb6 VZ |
14937 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
14938 | echo "$ac_t""yes" 1>&6 | |
14939 | ||
14940 | cat >> confdefs.h <<\EOF | |
bdad4e7e RR |
14941 | #define wxUSE_OPENGL 1 |
14942 | EOF | |
14943 | ||
698dcdb6 | 14944 | cat >> confdefs.h <<\EOF |
bdad4e7e RR |
14945 | #define wxUSE_GLCANVAS 1 |
14946 | EOF | |
14947 | ||
698dcdb6 | 14948 | echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6 |
138be253 | 14949 | echo "configure:14950: checking for glFlush in -lGL" >&5 |
698dcdb6 VZ |
14950 | ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'` |
14951 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14952 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14953 | else |
698dcdb6 | 14954 | ac_save_LIBS="$LIBS" |
bdad4e7e | 14955 | LIBS="-lGL $LIBS" |
698dcdb6 | 14956 | cat > conftest.$ac_ext <<EOF |
138be253 | 14957 | #line 14958 "configure" |
10f2d63a VZ |
14958 | #include "confdefs.h" |
14959 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14960 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14961 | builtin and then its argument prototype would still apply. */ |
14962 | char glFlush(); | |
6232543b | 14963 | |
698dcdb6 VZ |
14964 | int main() { |
14965 | glFlush() | |
14966 | ; return 0; } | |
14967 | EOF | |
138be253 | 14968 | if { (eval echo configure:14969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14969 | rm -rf conftest* |
14970 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14971 | else | |
14972 | echo "configure: failed program was:" >&5 | |
14973 | cat conftest.$ac_ext >&5 | |
14974 | rm -rf conftest* | |
14975 | eval "ac_cv_lib_$ac_lib_var=no" | |
14976 | fi | |
14977 | rm -f conftest* | |
14978 | LIBS="$ac_save_LIBS" | |
1e487827 | 14979 | |
698dcdb6 VZ |
14980 | fi |
14981 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14982 | echo "$ac_t""yes" 1>&6 | |
14983 | ||
14984 | OPENGL_LINK="-lGL -lGLU" | |
14985 | ||
10f2d63a | 14986 | else |
698dcdb6 | 14987 | echo "$ac_t""no" 1>&6 |
10f2d63a | 14988 | |
698dcdb6 | 14989 | echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6 |
138be253 | 14990 | echo "configure:14991: checking for glFlush in -lMesaGL" >&5 |
698dcdb6 VZ |
14991 | ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'` |
14992 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14993 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14994 | else |
698dcdb6 | 14995 | ac_save_LIBS="$LIBS" |
10f2d63a | 14996 | LIBS="-lMesaGL $LIBS" |
698dcdb6 | 14997 | cat > conftest.$ac_ext <<EOF |
138be253 | 14998 | #line 14999 "configure" |
10f2d63a VZ |
14999 | #include "confdefs.h" |
15000 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15001 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15002 | builtin and then its argument prototype would still apply. */ |
15003 | char glFlush(); | |
15004 | ||
15005 | int main() { | |
15006 | glFlush() | |
15007 | ; return 0; } | |
15008 | EOF | |
138be253 | 15009 | if { (eval echo configure:15010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15010 | rm -rf conftest* |
15011 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15012 | else | |
15013 | echo "configure: failed program was:" >&5 | |
15014 | cat conftest.$ac_ext >&5 | |
15015 | rm -rf conftest* | |
15016 | eval "ac_cv_lib_$ac_lib_var=no" | |
15017 | fi | |
15018 | rm -f conftest* | |
15019 | LIBS="$ac_save_LIBS" | |
10f2d63a | 15020 | |
698dcdb6 VZ |
15021 | fi |
15022 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15023 | echo "$ac_t""yes" 1>&6 | |
15024 | ||
f6bcfd97 | 15025 | OPENGL_LINK="-lMesaGL -lMesaGLU" |
698dcdb6 VZ |
15026 | |
15027 | else | |
15028 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
15029 | fi |
15030 | ||
698dcdb6 | 15031 | |
10f2d63a VZ |
15032 | fi |
15033 | ||
698dcdb6 | 15034 | |
10f2d63a | 15035 | else |
698dcdb6 VZ |
15036 | echo "$ac_t""no" 1>&6 |
15037 | wxUSE_OPENGL=0 | |
10f2d63a VZ |
15038 | fi |
15039 | ||
15040 | fi | |
15041 | ||
698dcdb6 | 15042 | |
10f2d63a | 15043 | if test "$wxUSE_GUI" = "yes"; then |
698dcdb6 | 15044 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15045 | #define wxUSE_GUI 1 |
15046 | EOF | |
15047 | ||
698dcdb6 | 15048 | |
10f2d63a | 15049 | else |
698dcdb6 | 15050 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15051 | #define wxUSE_NOGUI 1 |
15052 | EOF | |
15053 | ||
15054 | fi | |
15055 | ||
698dcdb6 | 15056 | |
10f2d63a | 15057 | if test "$wxUSE_UNIX" = "yes"; then |
698dcdb6 | 15058 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15059 | #define wxUSE_UNIX 1 |
15060 | EOF | |
15061 | ||
15062 | fi | |
15063 | ||
698dcdb6 | 15064 | |
10f2d63a | 15065 | if test "$wxUSE_APPLE_IEEE" = "yes"; then |
698dcdb6 | 15066 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15067 | #define wxUSE_APPLE_IEEE 1 |
15068 | EOF | |
15069 | ||
15070 | fi | |
15071 | ||
1e6feb95 VZ |
15072 | if test "$wxUSE_TIMER" = "yes"; then |
15073 | cat >> confdefs.h <<\EOF | |
15074 | #define wxUSE_TIMER 1 | |
15075 | EOF | |
15076 | ||
15077 | fi | |
15078 | ||
10f2d63a | 15079 | if test "$wxUSE_WAVE" = "yes"; then |
698dcdb6 | 15080 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15081 | #define wxUSE_WAVE 1 |
15082 | EOF | |
15083 | ||
15084 | fi | |
15085 | ||
1e6feb95 VZ |
15086 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
15087 | cat >> confdefs.h <<\EOF | |
15088 | #define wxUSE_CMDLINE_PARSER 1 | |
15089 | EOF | |
15090 | ||
15091 | fi | |
15092 | ||
15093 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
15094 | cat >> confdefs.h <<\EOF | |
15095 | #define wxUSE_STOPWATCH 1 | |
15096 | EOF | |
15097 | ||
15098 | fi | |
15099 | ||
15100 | if test "$wxUSE_DATETIME" = "yes"; then | |
15101 | cat >> confdefs.h <<\EOF | |
15102 | #define wxUSE_DATETIME 1 | |
15103 | EOF | |
15104 | ||
15105 | fi | |
15106 | ||
15107 | if test "$wxUSE_TIMEDATE" = "yes"; then | |
15108 | cat >> confdefs.h <<\EOF | |
15109 | #define wxUSE_TIMEDATE 1 | |
15110 | EOF | |
15111 | ||
15112 | fi | |
15113 | ||
10f2d63a | 15114 | if test "$wxUSE_FILE" = "yes"; then |
698dcdb6 | 15115 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15116 | #define wxUSE_FILE 1 |
15117 | EOF | |
15118 | ||
15119 | fi | |
15120 | ||
1e6feb95 VZ |
15121 | if test "$wxUSE_FFILE" = "yes"; then |
15122 | cat >> confdefs.h <<\EOF | |
15123 | #define wxUSE_FFILE 1 | |
15124 | EOF | |
15125 | ||
15126 | fi | |
15127 | ||
24528b0c | 15128 | if test "$wxUSE_FILESYSTEM" = "yes"; then |
698dcdb6 | 15129 | cat >> confdefs.h <<\EOF |
24528b0c VS |
15130 | #define wxUSE_FILESYSTEM 1 |
15131 | EOF | |
15132 | ||
15133 | fi | |
15134 | ||
10f2d63a | 15135 | if test "$wxUSE_FS_INET" = "yes"; then |
698dcdb6 | 15136 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15137 | #define wxUSE_FS_INET 1 |
15138 | EOF | |
15139 | ||
15140 | fi | |
15141 | ||
15142 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
698dcdb6 | 15143 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15144 | #define wxUSE_FS_ZIP 1 |
15145 | EOF | |
15146 | ||
15147 | fi | |
15148 | ||
15149 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
698dcdb6 | 15150 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15151 | #define wxUSE_ZIPSTREAM 1 |
15152 | EOF | |
15153 | ||
15154 | fi | |
15155 | ||
eb4efbdc | 15156 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
698dcdb6 | 15157 | cat >> confdefs.h <<\EOF |
eb4efbdc VZ |
15158 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
15159 | EOF | |
15160 | ||
15161 | fi | |
15162 | ||
4f3c5f06 | 15163 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
698dcdb6 | 15164 | cat >> confdefs.h <<\EOF |
4f3c5f06 VZ |
15165 | #define wxUSE_SNGLINST_CHECKER 1 |
15166 | EOF | |
15167 | ||
15168 | fi | |
15169 | ||
10f2d63a | 15170 | if test "$wxUSE_BUSYINFO" = "yes"; then |
698dcdb6 | 15171 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15172 | #define wxUSE_BUSYINFO 1 |
15173 | EOF | |
15174 | ||
15175 | fi | |
15176 | ||
15177 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
698dcdb6 | 15178 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15179 | #define wxUSE_STD_IOSTREAM 1 |
15180 | EOF | |
15181 | ||
15182 | fi | |
15183 | ||
15184 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
15185 | if test "$wxUSE_FILE" != "yes"; then | |
698dcdb6 | 15186 | echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2 |
10f2d63a | 15187 | else |
698dcdb6 | 15188 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15189 | #define wxUSE_TEXTFILE 1 |
15190 | EOF | |
15191 | ||
15192 | fi | |
15193 | fi | |
15194 | ||
15195 | if test "$wxUSE_CONFIG" = "yes" ; then | |
15196 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
698dcdb6 | 15197 | echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2 |
10f2d63a | 15198 | else |
698dcdb6 | 15199 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15200 | #define wxUSE_CONFIG 1 |
15201 | EOF | |
15202 | ||
15203 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
15204 | fi | |
15205 | fi | |
15206 | ||
15207 | if test "$wxUSE_INTL" = "yes" ; then | |
15208 | if test "$wxUSE_FILE" != "yes"; then | |
698dcdb6 | 15209 | echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2 |
10f2d63a | 15210 | else |
698dcdb6 | 15211 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15212 | #define wxUSE_INTL 1 |
15213 | EOF | |
15214 | ||
15215 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
f6bcfd97 | 15216 | GUIDIST="$GUIDIST INTL_DIST" |
10f2d63a VZ |
15217 | fi |
15218 | fi | |
15219 | ||
15220 | if test "$wxUSE_LOG" = "yes"; then | |
698dcdb6 | 15221 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15222 | #define wxUSE_LOG 1 |
15223 | EOF | |
15224 | ||
15225 | fi | |
15226 | ||
15227 | if test "$wxUSE_LONGLONG" = "yes"; then | |
698dcdb6 | 15228 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15229 | #define wxUSE_LONGLONG 1 |
15230 | EOF | |
15231 | ||
15232 | fi | |
15233 | ||
e8f65ba6 | 15234 | if test "$wxUSE_GEOMETRY" = "yes"; then |
698dcdb6 | 15235 | cat >> confdefs.h <<\EOF |
e8f65ba6 RR |
15236 | #define wxUSE_GEOMETRY 1 |
15237 | EOF | |
15238 | ||
15239 | fi | |
15240 | ||
10f2d63a | 15241 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
698dcdb6 | 15242 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15243 | #define wxUSE_DIALUP_MANAGER 1 |
15244 | EOF | |
15245 | ||
70f7a477 | 15246 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" |
10f2d63a VZ |
15247 | fi |
15248 | ||
15249 | if test "$wxUSE_STREAMS" = "yes" ; then | |
698dcdb6 | 15250 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15251 | #define wxUSE_STREAMS 1 |
15252 | EOF | |
15253 | ||
15254 | fi | |
15255 | ||
1e487827 | 15256 | |
1e6feb95 | 15257 | if test "$wxUSE_DATETIME" = "yes"; then |
698dcdb6 | 15258 | for ac_func in strptime |
83307f33 | 15259 | do |
698dcdb6 | 15260 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
138be253 | 15261 | echo "configure:15262: checking for $ac_func" >&5 |
698dcdb6 VZ |
15262 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15263 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15264 | else | |
15265 | cat > conftest.$ac_ext <<EOF | |
138be253 | 15266 | #line 15267 "configure" |
83307f33 VZ |
15267 | #include "confdefs.h" |
15268 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 15269 | which can conflict with char $ac_func(); below. */ |
83307f33 VZ |
15270 | #include <assert.h> |
15271 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15272 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15273 | builtin and then its argument prototype would still apply. */ |
15274 | char $ac_func(); | |
15275 | ||
15276 | int main() { | |
83307f33 VZ |
15277 | |
15278 | /* The GNU C library defines this for functions which it implements | |
15279 | to always fail with ENOSYS. Some functions are actually named | |
15280 | something starting with __ and the normal name is an alias. */ | |
15281 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15282 | choke me | |
15283 | #else | |
698dcdb6 | 15284 | $ac_func(); |
83307f33 VZ |
15285 | #endif |
15286 | ||
698dcdb6 | 15287 | ; return 0; } |
83307f33 | 15288 | EOF |
138be253 | 15289 | if { (eval echo configure:15290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15290 | rm -rf conftest* |
15291 | eval "ac_cv_func_$ac_func=yes" | |
15292 | else | |
15293 | echo "configure: failed program was:" >&5 | |
15294 | cat conftest.$ac_ext >&5 | |
15295 | rm -rf conftest* | |
15296 | eval "ac_cv_func_$ac_func=no" | |
15297 | fi | |
15298 | rm -f conftest* | |
15299 | fi | |
83307f33 | 15300 | |
698dcdb6 VZ |
15301 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
15302 | echo "$ac_t""yes" 1>&6 | |
15303 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15304 | cat >> confdefs.h <<EOF | |
15305 | #define $ac_tr_func 1 | |
15306 | EOF | |
15307 | ||
15308 | else | |
15309 | echo "$ac_t""no" 1>&6 | |
83307f33 VZ |
15310 | fi |
15311 | done | |
15312 | ||
1e487827 | 15313 | |
698dcdb6 | 15314 | echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6 |
138be253 | 15315 | echo "configure:15316: checking for timezone variable in <time.h>" >&5 |
698dcdb6 VZ |
15316 | if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then |
15317 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15318 | else | |
15319 | ||
15320 | cat > conftest.$ac_ext <<EOF | |
138be253 | 15321 | #line 15322 "configure" |
360d6699 VZ |
15322 | #include "confdefs.h" |
15323 | ||
b4085ce6 | 15324 | #include <time.h> |
698dcdb6 VZ |
15325 | |
15326 | int main() { | |
360d6699 VZ |
15327 | |
15328 | int tz; | |
15329 | tz = __timezone; | |
698dcdb6 VZ |
15330 | |
15331 | ; return 0; } | |
15332 | EOF | |
138be253 | 15333 | if { (eval echo configure:15334: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
15334 | rm -rf conftest* |
15335 | ||
360d6699 | 15336 | wx_cv_var_timezone=__timezone |
698dcdb6 | 15337 | |
360d6699 | 15338 | else |
698dcdb6 VZ |
15339 | echo "configure: failed program was:" >&5 |
15340 | cat conftest.$ac_ext >&5 | |
15341 | rm -rf conftest* | |
15342 | ||
15343 | cat > conftest.$ac_ext <<EOF | |
138be253 | 15344 | #line 15345 "configure" |
360d6699 VZ |
15345 | #include "confdefs.h" |
15346 | ||
b4085ce6 | 15347 | #include <time.h> |
698dcdb6 VZ |
15348 | |
15349 | int main() { | |
360d6699 VZ |
15350 | |
15351 | int tz; | |
15352 | tz = _timezone; | |
698dcdb6 VZ |
15353 | |
15354 | ; return 0; } | |
15355 | EOF | |
138be253 | 15356 | if { (eval echo configure:15357: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
15357 | rm -rf conftest* |
15358 | ||
360d6699 | 15359 | wx_cv_var_timezone=_timezone |
698dcdb6 | 15360 | |
5357c8e8 | 15361 | else |
698dcdb6 VZ |
15362 | echo "configure: failed program was:" >&5 |
15363 | cat conftest.$ac_ext >&5 | |
15364 | rm -rf conftest* | |
15365 | ||
15366 | cat > conftest.$ac_ext <<EOF | |
138be253 | 15367 | #line 15368 "configure" |
5357c8e8 VZ |
15368 | #include "confdefs.h" |
15369 | ||
b4085ce6 | 15370 | #include <time.h> |
698dcdb6 VZ |
15371 | |
15372 | int main() { | |
5357c8e8 VZ |
15373 | |
15374 | int tz; | |
15375 | tz = timezone; | |
698dcdb6 VZ |
15376 | |
15377 | ; return 0; } | |
15378 | EOF | |
138be253 | 15379 | if { (eval echo configure:15380: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
15380 | rm -rf conftest* |
15381 | ||
5357c8e8 | 15382 | wx_cv_var_timezone=timezone |
698dcdb6 | 15383 | |
360d6699 | 15384 | else |
698dcdb6 VZ |
15385 | echo "configure: failed program was:" >&5 |
15386 | cat conftest.$ac_ext >&5 | |
15387 | rm -rf conftest* | |
15388 | { echo "configure: error: no timezone variable" 1>&2; exit 1; } | |
15389 | ||
360d6699 | 15390 | fi |
698dcdb6 VZ |
15391 | rm -f conftest* |
15392 | ||
15393 | ||
360d6699 | 15394 | fi |
698dcdb6 VZ |
15395 | rm -f conftest* |
15396 | ||
15397 | ||
6232543b | 15398 | fi |
698dcdb6 VZ |
15399 | rm -f conftest* |
15400 | ||
15401 | ||
1e487827 | 15402 | fi |
703e0a69 | 15403 | |
698dcdb6 VZ |
15404 | echo "$ac_t""$wx_cv_var_timezone" 1>&6 |
15405 | ||
15406 | cat >> confdefs.h <<EOF | |
360d6699 VZ |
15407 | #define WX_TIMEZONE $wx_cv_var_timezone |
15408 | EOF | |
15409 | ||
698dcdb6 VZ |
15410 | |
15411 | for ac_func in localtime | |
afc31813 | 15412 | do |
698dcdb6 | 15413 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
138be253 | 15414 | echo "configure:15415: checking for $ac_func" >&5 |
698dcdb6 VZ |
15415 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15416 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15417 | else | |
15418 | cat > conftest.$ac_ext <<EOF | |
138be253 | 15419 | #line 15420 "configure" |
10f2d63a | 15420 | #include "confdefs.h" |
afc31813 | 15421 | /* System header to define __stub macros and hopefully few prototypes, |
698dcdb6 | 15422 | which can conflict with char $ac_func(); below. */ |
afc31813 VZ |
15423 | #include <assert.h> |
15424 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15425 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15426 | builtin and then its argument prototype would still apply. */ |
15427 | char $ac_func(); | |
15428 | ||
15429 | int main() { | |
afc31813 VZ |
15430 | |
15431 | /* The GNU C library defines this for functions which it implements | |
15432 | to always fail with ENOSYS. Some functions are actually named | |
15433 | something starting with __ and the normal name is an alias. */ | |
15434 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15435 | choke me | |
15436 | #else | |
698dcdb6 | 15437 | $ac_func(); |
afc31813 VZ |
15438 | #endif |
15439 | ||
698dcdb6 | 15440 | ; return 0; } |
10f2d63a | 15441 | EOF |
138be253 | 15442 | if { (eval echo configure:15443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15443 | rm -rf conftest* |
15444 | eval "ac_cv_func_$ac_func=yes" | |
15445 | else | |
15446 | echo "configure: failed program was:" >&5 | |
15447 | cat conftest.$ac_ext >&5 | |
15448 | rm -rf conftest* | |
15449 | eval "ac_cv_func_$ac_func=no" | |
15450 | fi | |
15451 | rm -f conftest* | |
15452 | fi | |
afc31813 | 15453 | |
698dcdb6 VZ |
15454 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
15455 | echo "$ac_t""yes" 1>&6 | |
15456 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15457 | cat >> confdefs.h <<EOF | |
15458 | #define $ac_tr_func 1 | |
15459 | EOF | |
15460 | ||
15461 | else | |
15462 | echo "$ac_t""no" 1>&6 | |
afc31813 VZ |
15463 | fi |
15464 | done | |
15465 | ||
1e487827 | 15466 | |
698dcdb6 VZ |
15467 | if test "$ac_cv_func_localtime" = "yes"; then |
15468 | echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 | |
138be253 | 15469 | echo "configure:15470: checking for tm_gmtoff in struct tm" >&5 |
698dcdb6 VZ |
15470 | if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then |
15471 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15472 | else | |
15473 | ||
15474 | cat > conftest.$ac_ext <<EOF | |
138be253 | 15475 | #line 15476 "configure" |
0470b1e6 VZ |
15476 | #include "confdefs.h" |
15477 | ||
b4085ce6 | 15478 | #include <time.h> |
698dcdb6 VZ |
15479 | |
15480 | int main() { | |
0470b1e6 VZ |
15481 | |
15482 | struct tm tm; | |
15483 | tm.tm_gmtoff++; | |
698dcdb6 VZ |
15484 | |
15485 | ; return 0; } | |
15486 | EOF | |
138be253 | 15487 | if { (eval echo configure:15488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
15488 | rm -rf conftest* |
15489 | ||
f03a98d8 | 15490 | wx_cv_struct_tm_has_gmtoff=yes |
698dcdb6 | 15491 | |
0470b1e6 | 15492 | else |
698dcdb6 VZ |
15493 | echo "configure: failed program was:" >&5 |
15494 | cat conftest.$ac_ext >&5 | |
15495 | rm -rf conftest* | |
15496 | wx_cv_struct_tm_has_gmtoff=no | |
15497 | ||
0470b1e6 | 15498 | fi |
698dcdb6 VZ |
15499 | rm -f conftest* |
15500 | ||
1e487827 | 15501 | fi |
698dcdb6 VZ |
15502 | |
15503 | echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6 | |
6232543b VS |
15504 | fi |
15505 | ||
15506 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
698dcdb6 | 15507 | cat >> confdefs.h <<\EOF |
6232543b VS |
15508 | #define WX_GMTOFF_IN_TM 1 |
15509 | EOF | |
0470b1e6 | 15510 | |
3fcdd07b VZ |
15511 | fi |
15512 | ||
698dcdb6 | 15513 | for ac_func in gettimeofday ftime |
3fcdd07b | 15514 | do |
698dcdb6 | 15515 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
138be253 | 15516 | echo "configure:15517: checking for $ac_func" >&5 |
698dcdb6 VZ |
15517 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15518 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15519 | else | |
15520 | cat > conftest.$ac_ext <<EOF | |
138be253 | 15521 | #line 15522 "configure" |
3fcdd07b VZ |
15522 | #include "confdefs.h" |
15523 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 15524 | which can conflict with char $ac_func(); below. */ |
3fcdd07b VZ |
15525 | #include <assert.h> |
15526 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15527 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15528 | builtin and then its argument prototype would still apply. */ |
15529 | char $ac_func(); | |
15530 | ||
15531 | int main() { | |
3fcdd07b VZ |
15532 | |
15533 | /* The GNU C library defines this for functions which it implements | |
15534 | to always fail with ENOSYS. Some functions are actually named | |
15535 | something starting with __ and the normal name is an alias. */ | |
15536 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15537 | choke me | |
15538 | #else | |
698dcdb6 | 15539 | $ac_func(); |
3fcdd07b VZ |
15540 | #endif |
15541 | ||
698dcdb6 VZ |
15542 | ; return 0; } |
15543 | EOF | |
138be253 | 15544 | if { (eval echo configure:15545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15545 | rm -rf conftest* |
15546 | eval "ac_cv_func_$ac_func=yes" | |
15547 | else | |
15548 | echo "configure: failed program was:" >&5 | |
15549 | cat conftest.$ac_ext >&5 | |
15550 | rm -rf conftest* | |
15551 | eval "ac_cv_func_$ac_func=no" | |
15552 | fi | |
15553 | rm -f conftest* | |
15554 | fi | |
15555 | ||
15556 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
15557 | echo "$ac_t""yes" 1>&6 | |
15558 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15559 | cat >> confdefs.h <<EOF | |
15560 | #define $ac_tr_func 1 | |
3fcdd07b VZ |
15561 | EOF |
15562 | break | |
698dcdb6 VZ |
15563 | else |
15564 | echo "$ac_t""no" 1>&6 | |
3fcdd07b VZ |
15565 | fi |
15566 | done | |
15567 | ||
afc31813 | 15568 | |
698dcdb6 VZ |
15569 | if test "$ac_cv_func_gettimeofday" = "yes"; then |
15570 | echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6 | |
138be253 | 15571 | echo "configure:15572: checking whether gettimeofday takes two arguments" >&5 |
698dcdb6 VZ |
15572 | if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then |
15573 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15574 | else | |
15575 | ||
15576 | ||
15577 | ac_ext=C | |
15578 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 15579 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
15580 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
15581 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15582 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 15583 | |
698dcdb6 VZ |
15584 | |
15585 | cat > conftest.$ac_ext <<EOF | |
138be253 | 15586 | #line 15587 "configure" |
10f2d63a | 15587 | #include "confdefs.h" |
afc31813 VZ |
15588 | |
15589 | #include <sys/time.h> | |
15590 | #include <unistd.h> | |
698dcdb6 VZ |
15591 | |
15592 | int main() { | |
afc31813 VZ |
15593 | |
15594 | struct timeval tv; | |
15595 | struct timezone tz; | |
15596 | gettimeofday(&tv, &tz); | |
698dcdb6 VZ |
15597 | |
15598 | ; return 0; } | |
15599 | EOF | |
138be253 | 15600 | if { (eval echo configure:15601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 15601 | rm -rf conftest* |
afc31813 | 15602 | wx_cv_func_gettimeofday_has_2_args=yes |
10f2d63a | 15603 | else |
698dcdb6 VZ |
15604 | echo "configure: failed program was:" >&5 |
15605 | cat conftest.$ac_ext >&5 | |
15606 | rm -rf conftest* | |
15607 | cat > conftest.$ac_ext <<EOF | |
138be253 | 15608 | #line 15609 "configure" |
10f2d63a | 15609 | #include "confdefs.h" |
afc31813 VZ |
15610 | |
15611 | #include <sys/time.h> | |
15612 | #include <unistd.h> | |
698dcdb6 VZ |
15613 | |
15614 | int main() { | |
afc31813 VZ |
15615 | |
15616 | struct timeval tv; | |
15617 | gettimeofday(&tv); | |
698dcdb6 VZ |
15618 | |
15619 | ; return 0; } | |
15620 | EOF | |
138be253 | 15621 | if { (eval echo configure:15622: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 15622 | rm -rf conftest* |
afc31813 | 15623 | wx_cv_func_gettimeofday_has_2_args=no |
10f2d63a | 15624 | else |
698dcdb6 VZ |
15625 | echo "configure: failed program was:" >&5 |
15626 | cat conftest.$ac_ext >&5 | |
15627 | rm -rf conftest* | |
15628 | wx_cv_func_gettimeofday_has_2_args=unknown | |
15629 | ||
10f2d63a | 15630 | fi |
698dcdb6 VZ |
15631 | rm -f conftest* |
15632 | ||
10f2d63a | 15633 | fi |
698dcdb6 | 15634 | rm -f conftest* |
afc31813 | 15635 | ac_ext=c |
698dcdb6 | 15636 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 15637 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
15638 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
15639 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15640 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a | 15641 | |
698dcdb6 | 15642 | |
afc31813 | 15643 | fi |
698dcdb6 VZ |
15644 | |
15645 | echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6 | |
c63c7106 | 15646 | |
afc31813 | 15647 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then |
698dcdb6 | 15648 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
15649 | #define WX_GETTIMEOFDAY_NO_TZ 1 |
15650 | EOF | |
15651 | ||
15652 | fi | |
15653 | fi | |
15654 | ||
698dcdb6 | 15655 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
15656 | #define wxUSE_TIMEDATE 1 |
15657 | EOF | |
15658 | ||
15659 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
15660 | fi | |
15661 | ||
698dcdb6 | 15662 | |
b089607b VZ |
15663 | if test "$TOOLKIT" != "MSW"; then |
15664 | ||
afc31813 | 15665 | if test "$wxUSE_SOCKETS" = "yes"; then |
698dcdb6 | 15666 | echo $ac_n "checking for socket""... $ac_c" 1>&6 |
138be253 | 15667 | echo "configure:15668: checking for socket" >&5 |
698dcdb6 VZ |
15668 | if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
15669 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 15670 | else |
698dcdb6 | 15671 | cat > conftest.$ac_ext <<EOF |
138be253 | 15672 | #line 15673 "configure" |
c63c7106 VZ |
15673 | #include "confdefs.h" |
15674 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 15675 | which can conflict with char socket(); below. */ |
c63c7106 VZ |
15676 | #include <assert.h> |
15677 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15678 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15679 | builtin and then its argument prototype would still apply. */ |
15680 | char socket(); | |
15681 | ||
15682 | int main() { | |
c63c7106 VZ |
15683 | |
15684 | /* The GNU C library defines this for functions which it implements | |
15685 | to always fail with ENOSYS. Some functions are actually named | |
15686 | something starting with __ and the normal name is an alias. */ | |
15687 | #if defined (__stub_socket) || defined (__stub___socket) | |
15688 | choke me | |
15689 | #else | |
698dcdb6 | 15690 | socket(); |
c63c7106 VZ |
15691 | #endif |
15692 | ||
698dcdb6 VZ |
15693 | ; return 0; } |
15694 | EOF | |
138be253 | 15695 | if { (eval echo configure:15696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15696 | rm -rf conftest* |
15697 | eval "ac_cv_func_socket=yes" | |
15698 | else | |
15699 | echo "configure: failed program was:" >&5 | |
15700 | cat conftest.$ac_ext >&5 | |
15701 | rm -rf conftest* | |
15702 | eval "ac_cv_func_socket=no" | |
15703 | fi | |
15704 | rm -f conftest* | |
15705 | fi | |
15706 | ||
15707 | if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
15708 | echo "$ac_t""yes" 1>&6 | |
c63c7106 VZ |
15709 | : |
15710 | else | |
698dcdb6 VZ |
15711 | echo "$ac_t""no" 1>&6 |
15712 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | |
138be253 | 15713 | echo "configure:15714: checking for socket in -lsocket" >&5 |
698dcdb6 VZ |
15714 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
15715 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15716 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 15717 | else |
698dcdb6 | 15718 | ac_save_LIBS="$LIBS" |
c63c7106 | 15719 | LIBS="-lsocket $LIBS" |
698dcdb6 | 15720 | cat > conftest.$ac_ext <<EOF |
138be253 | 15721 | #line 15722 "configure" |
c63c7106 VZ |
15722 | #include "confdefs.h" |
15723 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15724 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15725 | builtin and then its argument prototype would still apply. */ |
15726 | char socket(); | |
15727 | ||
15728 | int main() { | |
15729 | socket() | |
15730 | ; return 0; } | |
15731 | EOF | |
138be253 | 15732 | if { (eval echo configure:15733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15733 | rm -rf conftest* |
15734 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15735 | else | |
15736 | echo "configure: failed program was:" >&5 | |
15737 | cat conftest.$ac_ext >&5 | |
15738 | rm -rf conftest* | |
15739 | eval "ac_cv_lib_$ac_lib_var=no" | |
15740 | fi | |
15741 | rm -f conftest* | |
15742 | LIBS="$ac_save_LIBS" | |
15743 | ||
15744 | fi | |
15745 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15746 | echo "$ac_t""yes" 1>&6 | |
c63c7106 | 15747 | INET_LINK="$INET_LINK -lsocket" |
c63c7106 | 15748 | else |
698dcdb6 | 15749 | echo "$ac_t""no" 1>&6 |
afc31813 | 15750 | |
698dcdb6 | 15751 | echo "configure: warning: socket library not found - sockets will be disabled" 1>&2 |
afc31813 | 15752 | wxUSE_SOCKETS=no |
698dcdb6 VZ |
15753 | |
15754 | ||
10f2d63a VZ |
15755 | fi |
15756 | ||
698dcdb6 | 15757 | |
6232543b | 15758 | fi |
b089607b | 15759 | |
1e487827 | 15760 | fi |
afc31813 | 15761 | |
51a9faba | 15762 | |
698dcdb6 VZ |
15763 | if test "$wxUSE_SOCKETS" = "yes" ; then |
15764 | echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6 | |
138be253 | 15765 | echo "configure:15766: checking what is the type of the third argument of getsockname" >&5 |
698dcdb6 VZ |
15766 | if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then |
15767 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15768 | else | |
15769 | ||
15770 | ||
15771 | ac_ext=C | |
15772 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 15773 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
15774 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
15775 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15776 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 15777 | |
698dcdb6 VZ |
15778 | |
15779 | cat > conftest.$ac_ext <<EOF | |
138be253 | 15780 | #line 15781 "configure" |
afc31813 | 15781 | #include "confdefs.h" |
51a9faba | 15782 | |
3ace2e6d | 15783 | #include <sys/types.h> |
51a9faba | 15784 | #include <sys/socket.h> |
698dcdb6 VZ |
15785 | |
15786 | int main() { | |
51a9faba VZ |
15787 | |
15788 | socklen_t len; | |
15789 | getsockname(0, 0, &len); | |
698dcdb6 VZ |
15790 | |
15791 | ; return 0; } | |
15792 | EOF | |
138be253 | 15793 | if { (eval echo configure:15794: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 15794 | rm -rf conftest* |
51a9faba | 15795 | wx_cv_type_getsockname3=socklen_t |
afc31813 | 15796 | else |
698dcdb6 VZ |
15797 | echo "configure: failed program was:" >&5 |
15798 | cat conftest.$ac_ext >&5 | |
15799 | rm -rf conftest* | |
15800 | cat > conftest.$ac_ext <<EOF | |
138be253 | 15801 | #line 15802 "configure" |
afc31813 | 15802 | #include "confdefs.h" |
51a9faba | 15803 | |
3ace2e6d | 15804 | #include <sys/types.h> |
51a9faba | 15805 | #include <sys/socket.h> |
698dcdb6 VZ |
15806 | |
15807 | int main() { | |
51a9faba VZ |
15808 | |
15809 | size_t len; | |
15810 | getsockname(0, 0, &len); | |
698dcdb6 VZ |
15811 | |
15812 | ; return 0; } | |
15813 | EOF | |
138be253 | 15814 | if { (eval echo configure:15815: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 15815 | rm -rf conftest* |
51a9faba | 15816 | wx_cv_type_getsockname3=size_t |
afc31813 | 15817 | else |
698dcdb6 VZ |
15818 | echo "configure: failed program was:" >&5 |
15819 | cat conftest.$ac_ext >&5 | |
15820 | rm -rf conftest* | |
15821 | cat > conftest.$ac_ext <<EOF | |
138be253 | 15822 | #line 15823 "configure" |
afc31813 | 15823 | #include "confdefs.h" |
51a9faba | 15824 | |
3ace2e6d | 15825 | #include <sys/types.h> |
51a9faba | 15826 | #include <sys/socket.h> |
698dcdb6 VZ |
15827 | |
15828 | int main() { | |
51a9faba VZ |
15829 | |
15830 | int len; | |
15831 | getsockname(0, 0, &len); | |
698dcdb6 VZ |
15832 | |
15833 | ; return 0; } | |
15834 | EOF | |
138be253 | 15835 | if { (eval echo configure:15836: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 15836 | rm -rf conftest* |
51a9faba | 15837 | wx_cv_type_getsockname3=int |
afc31813 | 15838 | else |
698dcdb6 VZ |
15839 | echo "configure: failed program was:" >&5 |
15840 | cat conftest.$ac_ext >&5 | |
15841 | rm -rf conftest* | |
15842 | wx_cv_type_getsockname3=unknown | |
15843 | ||
afc31813 | 15844 | fi |
698dcdb6 VZ |
15845 | rm -f conftest* |
15846 | ||
afc31813 | 15847 | fi |
698dcdb6 VZ |
15848 | rm -f conftest* |
15849 | ||
afc31813 | 15850 | fi |
698dcdb6 | 15851 | rm -f conftest* |
51a9faba VZ |
15852 | |
15853 | ac_ext=c | |
698dcdb6 | 15854 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
afc31813 | 15855 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
15856 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
15857 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15858 | cross_compiling=$ac_cv_prog_cc_cross | |
afc31813 | 15859 | |
698dcdb6 | 15860 | |
51a9faba | 15861 | fi |
698dcdb6 VZ |
15862 | |
15863 | echo "$ac_t""$wx_cv_type_getsockname3" 1>&6 | |
51a9faba VZ |
15864 | |
15865 | if test "$wx_cv_type_getsockname3" = "unknown"; then | |
15866 | wxUSE_SOCKETS=no | |
698dcdb6 | 15867 | echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2 |
51a9faba | 15868 | else |
698dcdb6 | 15869 | cat >> confdefs.h <<EOF |
51a9faba VZ |
15870 | #define SOCKLEN_T $wx_cv_type_getsockname3 |
15871 | EOF | |
15872 | ||
15873 | fi | |
15874 | fi | |
afc31813 | 15875 | |
c521c494 RL |
15876 | fi |
15877 | ||
51a9faba | 15878 | if test "$wxUSE_SOCKETS" = "yes" ; then |
698dcdb6 | 15879 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
15880 | #define wxUSE_SOCKETS 1 |
15881 | EOF | |
15882 | ||
70f7a477 | 15883 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" |
afc31813 VZ |
15884 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol" |
15885 | fi | |
15886 | ||
698dcdb6 | 15887 | |
dc3d889d VZ |
15888 | if test "$wxUSE_GUI" = "yes"; then |
15889 | ||
b089607b VZ |
15890 | if test "$TOOLKIT" != "MSW"; then |
15891 | ||
ceded8b9 | 15892 | if test "$wxUSE_JOYSTICK" = "yes"; then |
698dcdb6 | 15893 | for ac_hdr in linux/joystick.h |
10f2d63a | 15894 | do |
698dcdb6 VZ |
15895 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
15896 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
138be253 | 15897 | echo "configure:15898: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
15898 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
15899 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15900 | else | |
15901 | cat > conftest.$ac_ext <<EOF | |
138be253 | 15902 | #line 15903 "configure" |
10f2d63a | 15903 | #include "confdefs.h" |
698dcdb6 VZ |
15904 | #include <$ac_hdr> |
15905 | EOF | |
15906 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
138be253 | 15907 | { (eval echo configure:15908: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
15908 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15909 | if test -z "$ac_err"; then | |
15910 | rm -rf conftest* | |
15911 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 15912 | else |
698dcdb6 VZ |
15913 | echo "$ac_err" >&5 |
15914 | echo "configure: failed program was:" >&5 | |
10f2d63a | 15915 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
15916 | rm -rf conftest* |
15917 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 15918 | fi |
698dcdb6 | 15919 | rm -f conftest* |
10f2d63a | 15920 | fi |
698dcdb6 VZ |
15921 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
15922 | echo "$ac_t""yes" 1>&6 | |
15923 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
15924 | cat >> confdefs.h <<EOF | |
15925 | #define $ac_tr_hdr 1 | |
10f2d63a | 15926 | EOF |
698dcdb6 VZ |
15927 | |
15928 | else | |
15929 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
15930 | fi |
15931 | done | |
15932 | ||
b089607b | 15933 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then |
ceded8b9 | 15934 | wxUSE_JOYSTICK=no |
698dcdb6 | 15935 | echo "configure: warning: Joystick not supported by this system" 1>&2 |
b089607b VZ |
15936 | fi |
15937 | fi | |
15938 | ||
15939 | fi | |
15940 | ||
ceded8b9 | 15941 | if test "$wxUSE_JOYSTICK" = "yes"; then |
698dcdb6 | 15942 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15943 | #define wxUSE_JOYSTICK 1 |
15944 | EOF | |
15945 | ||
15946 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" | |
10f2d63a VZ |
15947 | fi |
15948 | ||
dc3d889d VZ |
15949 | fi |
15950 | ||
698dcdb6 | 15951 | |
b089607b VZ |
15952 | if test "$TOOLKIT" != "MSW"; then |
15953 | ||
10f2d63a VZ |
15954 | HAVE_DL_FUNCS=0 |
15955 | HAVE_SHL_FUNCS=0 | |
15956 | if test "$wxUSE_DYNLIB_CLASS" = "yes"; then | |
b4085ce6 GD |
15957 | if test "$USE_MAC" = 1; then |
15958 | HAVE_DL_FUNCS=1 | |
15959 | else | |
698dcdb6 | 15960 | for ac_func in dlopen |
10f2d63a | 15961 | do |
698dcdb6 | 15962 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
138be253 | 15963 | echo "configure:15964: checking for $ac_func" >&5 |
698dcdb6 VZ |
15964 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15965 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15966 | else | |
15967 | cat > conftest.$ac_ext <<EOF | |
138be253 | 15968 | #line 15969 "configure" |
10f2d63a VZ |
15969 | #include "confdefs.h" |
15970 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 15971 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
15972 | #include <assert.h> |
15973 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15974 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15975 | builtin and then its argument prototype would still apply. */ |
15976 | char $ac_func(); | |
15977 | ||
15978 | int main() { | |
10f2d63a VZ |
15979 | |
15980 | /* The GNU C library defines this for functions which it implements | |
15981 | to always fail with ENOSYS. Some functions are actually named | |
15982 | something starting with __ and the normal name is an alias. */ | |
15983 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15984 | choke me | |
15985 | #else | |
698dcdb6 | 15986 | $ac_func(); |
10f2d63a VZ |
15987 | #endif |
15988 | ||
698dcdb6 VZ |
15989 | ; return 0; } |
15990 | EOF | |
138be253 | 15991 | if { (eval echo configure:15992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15992 | rm -rf conftest* |
15993 | eval "ac_cv_func_$ac_func=yes" | |
15994 | else | |
15995 | echo "configure: failed program was:" >&5 | |
15996 | cat conftest.$ac_ext >&5 | |
15997 | rm -rf conftest* | |
15998 | eval "ac_cv_func_$ac_func=no" | |
15999 | fi | |
16000 | rm -f conftest* | |
16001 | fi | |
16002 | ||
16003 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16004 | echo "$ac_t""yes" 1>&6 | |
16005 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16006 | cat >> confdefs.h <<EOF | |
16007 | #define $ac_tr_func 1 | |
16008 | EOF | |
16009 | ||
16010 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
16011 | #define HAVE_DLOPEN 1 |
16012 | EOF | |
16013 | ||
16014 | HAVE_DL_FUNCS=1 | |
698dcdb6 | 16015 | |
10f2d63a | 16016 | else |
698dcdb6 VZ |
16017 | echo "$ac_t""no" 1>&6 |
16018 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
138be253 | 16019 | echo "configure:16020: checking for dlopen in -ldl" >&5 |
698dcdb6 VZ |
16020 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
16021 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16022 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 16023 | else |
698dcdb6 | 16024 | ac_save_LIBS="$LIBS" |
10f2d63a | 16025 | LIBS="-ldl $LIBS" |
698dcdb6 | 16026 | cat > conftest.$ac_ext <<EOF |
138be253 | 16027 | #line 16028 "configure" |
10f2d63a VZ |
16028 | #include "confdefs.h" |
16029 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16030 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16031 | builtin and then its argument prototype would still apply. */ |
16032 | char dlopen(); | |
16033 | ||
16034 | int main() { | |
16035 | dlopen() | |
16036 | ; return 0; } | |
16037 | EOF | |
138be253 | 16038 | if { (eval echo configure:16039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16039 | rm -rf conftest* |
16040 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16041 | else | |
16042 | echo "configure: failed program was:" >&5 | |
16043 | cat conftest.$ac_ext >&5 | |
16044 | rm -rf conftest* | |
16045 | eval "ac_cv_lib_$ac_lib_var=no" | |
16046 | fi | |
16047 | rm -f conftest* | |
16048 | LIBS="$ac_save_LIBS" | |
16049 | ||
16050 | fi | |
16051 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16052 | echo "$ac_t""yes" 1>&6 | |
16053 | ||
16054 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
16055 | #define HAVE_DLOPEN 1 |
16056 | EOF | |
16057 | ||
16058 | HAVE_DL_FUNCS=1 | |
16059 | LIBS="$LIBS -ldl" | |
698dcdb6 | 16060 | |
10f2d63a | 16061 | else |
698dcdb6 | 16062 | echo "$ac_t""no" 1>&6 |
10f2d63a | 16063 | |
698dcdb6 | 16064 | for ac_func in shl_load |
10f2d63a | 16065 | do |
698dcdb6 | 16066 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
138be253 | 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 | |
138be253 | 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 | |
138be253 | 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_SHL_LOAD 1 |
16116 | EOF | |
16117 | ||
16118 | HAVE_SHL_FUNCS=1 | |
698dcdb6 | 16119 | |
10f2d63a | 16120 | else |
698dcdb6 VZ |
16121 | echo "$ac_t""no" 1>&6 |
16122 | echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6 | |
138be253 | 16123 | echo "configure:16124: checking for dld in -lshl_load" >&5 |
698dcdb6 VZ |
16124 | ac_lib_var=`echo shl_load'_'dld | 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 | |
f6bcfd97 | 16127 | else |
698dcdb6 | 16128 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 16129 | LIBS="-lshl_load $LIBS" |
698dcdb6 | 16130 | cat > conftest.$ac_ext <<EOF |
138be253 | 16131 | #line 16132 "configure" |
f6bcfd97 BP |
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 dld(); | |
16137 | ||
16138 | int main() { | |
16139 | dld() | |
16140 | ; return 0; } | |
16141 | EOF | |
138be253 | 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" | |
f6bcfd97 | 16153 | |
698dcdb6 VZ |
16154 | fi |
16155 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16156 | echo "$ac_t""yes" 1>&6 | |
16157 | ||
f6bcfd97 BP |
16158 | HAVE_SHL_FUNCS=1 |
16159 | LIBS="$LIBS -ldld" | |
698dcdb6 VZ |
16160 | |
16161 | else | |
16162 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
16163 | fi |
16164 | ||
698dcdb6 | 16165 | |
10f2d63a VZ |
16166 | fi |
16167 | done | |
16168 | ||
698dcdb6 | 16169 | |
10f2d63a VZ |
16170 | fi |
16171 | ||
698dcdb6 | 16172 | |
10f2d63a VZ |
16173 | fi |
16174 | done | |
16175 | ||
1e487827 | 16176 | |
698dcdb6 VZ |
16177 | if test "$HAVE_DL_FUNCS" = 1; then |
16178 | for ac_func in dlerror | |
f6bcfd97 | 16179 | do |
698dcdb6 | 16180 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
138be253 | 16181 | echo "configure:16182: checking for $ac_func" >&5 |
698dcdb6 VZ |
16182 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16183 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16184 | else | |
16185 | cat > conftest.$ac_ext <<EOF | |
138be253 | 16186 | #line 16187 "configure" |
f6bcfd97 BP |
16187 | #include "confdefs.h" |
16188 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16189 | which can conflict with char $ac_func(); below. */ |
f6bcfd97 BP |
16190 | #include <assert.h> |
16191 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16192 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16193 | builtin and then its argument prototype would still apply. */ |
16194 | char $ac_func(); | |
16195 | ||
16196 | int main() { | |
f6bcfd97 BP |
16197 | |
16198 | /* The GNU C library defines this for functions which it implements | |
16199 | to always fail with ENOSYS. Some functions are actually named | |
16200 | something starting with __ and the normal name is an alias. */ | |
16201 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16202 | choke me | |
16203 | #else | |
698dcdb6 | 16204 | $ac_func(); |
f6bcfd97 BP |
16205 | #endif |
16206 | ||
698dcdb6 VZ |
16207 | ; return 0; } |
16208 | EOF | |
138be253 | 16209 | if { (eval echo configure:16210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16210 | rm -rf conftest* |
16211 | eval "ac_cv_func_$ac_func=yes" | |
16212 | else | |
16213 | echo "configure: failed program was:" >&5 | |
16214 | cat conftest.$ac_ext >&5 | |
16215 | rm -rf conftest* | |
16216 | eval "ac_cv_func_$ac_func=no" | |
16217 | fi | |
16218 | rm -f conftest* | |
16219 | fi | |
16220 | ||
16221 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16222 | echo "$ac_t""yes" 1>&6 | |
16223 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16224 | cat >> confdefs.h <<EOF | |
16225 | #define $ac_tr_func 1 | |
16226 | EOF | |
16227 | cat >> confdefs.h <<\EOF | |
f6bcfd97 BP |
16228 | #define HAVE_DLERROR 1 |
16229 | EOF | |
16230 | ||
16231 | else | |
698dcdb6 VZ |
16232 | echo "$ac_t""no" 1>&6 |
16233 | echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6 | |
138be253 | 16234 | echo "configure:16235: checking for dlerror in -ldl" >&5 |
698dcdb6 VZ |
16235 | ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'` |
16236 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16237 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 16238 | else |
698dcdb6 | 16239 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 16240 | LIBS="-ldl $LIBS" |
698dcdb6 | 16241 | cat > conftest.$ac_ext <<EOF |
138be253 | 16242 | #line 16243 "configure" |
f6bcfd97 BP |
16243 | #include "confdefs.h" |
16244 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16245 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16246 | builtin and then its argument prototype would still apply. */ |
16247 | char dlerror(); | |
16248 | ||
16249 | int main() { | |
16250 | dlerror() | |
16251 | ; return 0; } | |
16252 | EOF | |
138be253 | 16253 | if { (eval echo configure:16254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16254 | rm -rf conftest* |
16255 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16256 | else | |
16257 | echo "configure: failed program was:" >&5 | |
16258 | cat conftest.$ac_ext >&5 | |
16259 | rm -rf conftest* | |
16260 | eval "ac_cv_lib_$ac_lib_var=no" | |
16261 | fi | |
16262 | rm -f conftest* | |
16263 | LIBS="$ac_save_LIBS" | |
16264 | ||
16265 | fi | |
16266 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16267 | echo "$ac_t""yes" 1>&6 | |
16268 | cat >> confdefs.h <<\EOF | |
f6bcfd97 BP |
16269 | #define HAVE_DLERROR 1 |
16270 | EOF | |
16271 | ||
698dcdb6 VZ |
16272 | else |
16273 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
16274 | fi |
16275 | ||
16276 | fi | |
16277 | done | |
16278 | ||
16279 | fi | |
b4085ce6 | 16280 | fi |
f6bcfd97 | 16281 | |
10f2d63a VZ |
16282 | if test "$HAVE_DL_FUNCS" = 0; then |
16283 | if test "$HAVE_SHL_FUNCS" = 0; then | |
16284 | if test "$USE_UNIX" = 1; then | |
698dcdb6 | 16285 | echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2 |
10f2d63a VZ |
16286 | wxUSE_DYNLIB_CLASS=no |
16287 | else | |
698dcdb6 | 16288 | echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2 |
10f2d63a VZ |
16289 | fi |
16290 | fi | |
16291 | fi | |
16292 | fi | |
16293 | ||
b089607b VZ |
16294 | fi |
16295 | ||
10f2d63a | 16296 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then |
698dcdb6 | 16297 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16298 | #define wxUSE_DYNLIB_CLASS 1 |
16299 | EOF | |
16300 | ||
b12915c1 VZ |
16301 | else |
16302 | wxUSE_ODBC=no | |
16303 | wxUSE_SERIAL=no | |
10f2d63a VZ |
16304 | fi |
16305 | ||
698dcdb6 | 16306 | |
1e6feb95 VZ |
16307 | if test "$wxUSE_FONTMAP" = "yes" ; then |
16308 | cat >> confdefs.h <<\EOF | |
16309 | #define wxUSE_FONTMAP 1 | |
16310 | EOF | |
16311 | ||
16312 | fi | |
16313 | ||
10f2d63a | 16314 | if test "$wxUSE_UNICODE" = "yes" ; then |
698dcdb6 | 16315 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16316 | #define wxUSE_UNICODE 1 |
16317 | EOF | |
16318 | ||
16319 | fi | |
16320 | ||
16321 | if test "$wxUSE_WCSRTOMBS" = "yes" ; then | |
698dcdb6 | 16322 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16323 | #define wxUSE_WCSRTOMBS 1 |
16324 | EOF | |
16325 | ||
16326 | fi | |
16327 | ||
16328 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then | |
698dcdb6 | 16329 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16330 | #define wxUSE_EXPERIMENTAL_PRINTF 1 |
16331 | EOF | |
16332 | ||
16333 | fi | |
16334 | ||
698dcdb6 | 16335 | |
b12915c1 | 16336 | if test "$wxUSE_SERIAL" = "yes" ; then |
698dcdb6 | 16337 | cat >> confdefs.h <<\EOF |
b12915c1 VZ |
16338 | #define wxUSE_SERIAL 1 |
16339 | EOF | |
16340 | ||
16341 | fi | |
16342 | ||
698dcdb6 | 16343 | |
10f2d63a VZ |
16344 | IODBC_C_SRC="" |
16345 | if test "$wxUSE_ODBC" = "yes" ; then | |
698dcdb6 | 16346 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16347 | #define wxUSE_ODBC 1 |
16348 | EOF | |
16349 | ||
16350 | WXODBCFLAG="-D_IODBC_" | |
16351 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
10f2d63a VZ |
16352 | fi |
16353 | ||
698dcdb6 | 16354 | |
10f2d63a | 16355 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then |
698dcdb6 | 16356 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16357 | #define wxUSE_POSTSCRIPT 1 |
16358 | EOF | |
16359 | ||
16360 | fi | |
16361 | ||
698dcdb6 | 16362 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16363 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 |
16364 | EOF | |
16365 | ||
698dcdb6 VZ |
16366 | |
16367 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
16368 | #define wxUSE_NORMALIZED_PS_FONTS 1 |
16369 | EOF | |
16370 | ||
698dcdb6 VZ |
16371 | |
16372 | ||
10f2d63a | 16373 | if test "$wxUSE_CONSTRAINTS" = "yes"; then |
698dcdb6 | 16374 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16375 | #define wxUSE_CONSTRAINTS 1 |
16376 | EOF | |
16377 | ||
16378 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
16379 | fi | |
16380 | ||
16381 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
698dcdb6 | 16382 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16383 | #define wxUSE_MDI_ARCHITECTURE 1 |
16384 | EOF | |
16385 | ||
16386 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" | |
16387 | fi | |
16388 | ||
16389 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
698dcdb6 | 16390 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16391 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 |
16392 | EOF | |
16393 | ||
16394 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
16395 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
16396 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
16397 | fi | |
16398 | fi | |
16399 | ||
16400 | if test "$wxUSE_HELP" = "yes"; then | |
698dcdb6 | 16401 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16402 | #define wxUSE_HELP 1 |
16403 | EOF | |
16404 | ||
16405 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
16406 | fi | |
16407 | ||
16408 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
16409 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
698dcdb6 | 16410 | echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2 |
10f2d63a | 16411 | else |
698dcdb6 | 16412 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16413 | #define wxUSE_PRINTING_ARCHITECTURE 1 |
16414 | EOF | |
16415 | ||
16416 | fi | |
16417 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
16418 | fi | |
16419 | ||
16420 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
698dcdb6 | 16421 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16422 | #define wxUSE_PROLOGIO 1 |
16423 | EOF | |
16424 | ||
16425 | fi | |
16426 | ||
16427 | if test "$wxUSE_RESOURCES" = "yes" ; then | |
16428 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
698dcdb6 | 16429 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16430 | #define wxUSE_RESOURCES 1 |
16431 | EOF | |
16432 | ||
16433 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource" | |
16434 | else | |
698dcdb6 | 16435 | echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2 |
10f2d63a VZ |
16436 | fi |
16437 | fi | |
16438 | ||
16439 | if test "$wxUSE_X_RESOURCES" = "yes"; then | |
698dcdb6 | 16440 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16441 | #define wxUSE_X_RESOURCES 1 |
16442 | EOF | |
16443 | ||
16444 | fi | |
16445 | ||
698dcdb6 | 16446 | |
10f2d63a | 16447 | if test "$wxUSE_IPC" = "yes"; then |
eb4efbdc | 16448 | if test "$wxUSE_SOCKETS" != "yes"; then |
698dcdb6 | 16449 | echo "configure: warning: wxWindows IPC classes require sockets" 1>&2 |
eb4efbdc VZ |
16450 | fi |
16451 | ||
698dcdb6 | 16452 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16453 | #define wxUSE_IPC 1 |
16454 | EOF | |
16455 | ||
16456 | fi | |
16457 | ||
16458 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
698dcdb6 | 16459 | cat >> confdefs.h <<\EOF |
10f2d63a | 16460 | #define wxUSE_CLIPBOARD 1 |
1e6feb95 VZ |
16461 | EOF |
16462 | ||
16463 | cat >> confdefs.h <<\EOF | |
16464 | #define wxUSE_DATAOBJ 1 | |
10f2d63a VZ |
16465 | EOF |
16466 | ||
16467 | fi | |
16468 | ||
16469 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
16470 | if test "$wxUSE_GTK" = 1; then | |
16471 | if test "$WXGTK12" != 1; then | |
698dcdb6 | 16472 | echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2 |
10f2d63a VZ |
16473 | wxUSE_DRAG_AND_DROP=no |
16474 | fi | |
16475 | fi | |
16476 | ||
16477 | if test "$wxUSE_MOTIF" = 1; then | |
698dcdb6 | 16478 | echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2 |
10f2d63a VZ |
16479 | wxUSE_DRAG_AND_DROP=no |
16480 | fi | |
16481 | ||
2c6025bc | 16482 | if test "$wxUSE_MAC" = 1; then |
698dcdb6 | 16483 | echo "configure: warning: Drag and drop is not yet supported under Mac OS X" 1>&2 |
2c6025bc GD |
16484 | wxUSE_DRAG_AND_DROP=no |
16485 | fi | |
16486 | ||
10f2d63a | 16487 | if test "$USE_WIN32" = 1; then |
698dcdb6 VZ |
16488 | |
16489 | for ac_hdr in ole2.h | |
10f2d63a | 16490 | do |
698dcdb6 VZ |
16491 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
16492 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
138be253 | 16493 | echo "configure:16494: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
16494 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
16495 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16496 | else | |
16497 | cat > conftest.$ac_ext <<EOF | |
138be253 | 16498 | #line 16499 "configure" |
10f2d63a | 16499 | #include "confdefs.h" |
698dcdb6 VZ |
16500 | #include <$ac_hdr> |
16501 | EOF | |
16502 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
138be253 | 16503 | { (eval echo configure:16504: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
16504 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
16505 | if test -z "$ac_err"; then | |
16506 | rm -rf conftest* | |
16507 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 16508 | else |
698dcdb6 VZ |
16509 | echo "$ac_err" >&5 |
16510 | echo "configure: failed program was:" >&5 | |
10f2d63a | 16511 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
16512 | rm -rf conftest* |
16513 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 16514 | fi |
698dcdb6 | 16515 | rm -f conftest* |
10f2d63a | 16516 | fi |
698dcdb6 VZ |
16517 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
16518 | echo "$ac_t""yes" 1>&6 | |
16519 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
16520 | cat >> confdefs.h <<EOF | |
16521 | #define $ac_tr_hdr 1 | |
10f2d63a | 16522 | EOF |
698dcdb6 VZ |
16523 | |
16524 | else | |
16525 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
16526 | fi |
16527 | done | |
16528 | ||
698dcdb6 | 16529 | |
57fe5ed0 | 16530 | if test "$ac_cv_header_ole2_h" = "yes" ; then |
c521c494 | 16531 | if test "$GCC" = yes ; then |
b64f0a5f RL |
16532 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" |
16533 | ALL_DEPFILES="$ALL_DEPFILES \$(OLEDEPS)" | |
c521c494 | 16534 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" |
b64f0a5f RL |
16535 | LIBS="$LIBS -lole32 -luuid" |
16536 | ||
16537 | if test "$wxUSE_METAFILE" = "yes"; then | |
698dcdb6 | 16538 | cat >> confdefs.h <<\EOF |
b64f0a5f RL |
16539 | #define wxUSE_METAFILE 1 |
16540 | EOF | |
16541 | ||
698dcdb6 | 16542 | cat >> confdefs.h <<\EOF |
b64f0a5f RL |
16543 | #define wxUSE_ENH_METAFILE 1 |
16544 | EOF | |
16545 | ||
16546 | fi | |
c521c494 RL |
16547 | fi |
16548 | else | |
698dcdb6 | 16549 | echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2 |
10f2d63a VZ |
16550 | wxUSE_DRAG_AND_DROP=no |
16551 | fi | |
16552 | fi | |
16553 | ||
16554 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
698dcdb6 | 16555 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16556 | #define wxUSE_DRAG_AND_DROP 1 |
16557 | EOF | |
16558 | ||
16559 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
16560 | fi | |
16561 | ||
16562 | fi | |
16563 | ||
16564 | if test "$wxUSE_SPLINES" = "yes" ; then | |
698dcdb6 | 16565 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16566 | #define wxUSE_SPLINES 1 |
16567 | EOF | |
16568 | ||
16569 | fi | |
16570 | ||
698dcdb6 | 16571 | |
1e6feb95 VZ |
16572 | USES_CONTROLS=0 |
16573 | if test "$wxUSE_CONTROLS" = "yes"; then | |
16574 | USES_CONTROLS=1 | |
16575 | fi | |
16576 | ||
10f2d63a | 16577 | if test "$wxUSE_ACCEL" = "yes"; then |
698dcdb6 | 16578 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16579 | #define wxUSE_ACCEL 1 |
16580 | EOF | |
16581 | ||
1e6feb95 VZ |
16582 | USES_CONTROLS=1 |
16583 | fi | |
16584 | ||
16585 | if test "$wxUSE_BUTTON" = "yes"; then | |
16586 | cat >> confdefs.h <<\EOF | |
16587 | #define wxUSE_BUTTON 1 | |
16588 | EOF | |
16589 | ||
16590 | USES_CONTROLS=1 | |
16591 | fi | |
16592 | ||
16593 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
16594 | cat >> confdefs.h <<\EOF | |
16595 | #define wxUSE_BMPBUTTON 1 | |
16596 | EOF | |
16597 | ||
16598 | USES_CONTROLS=1 | |
16599 | fi | |
16600 | ||
16601 | if test "$wxUSE_CALCTRL" = "yes"; then | |
16602 | cat >> confdefs.h <<\EOF | |
16603 | #define wxUSE_CALENDARCTRL 1 | |
16604 | EOF | |
16605 | ||
16606 | USES_CONTROLS=1 | |
16607 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
10f2d63a VZ |
16608 | fi |
16609 | ||
16610 | if test "$wxUSE_CARET" = "yes"; then | |
698dcdb6 | 16611 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16612 | #define wxUSE_CARET 1 |
16613 | EOF | |
16614 | ||
1e6feb95 | 16615 | USES_CONTROLS=1 |
10f2d63a VZ |
16616 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" |
16617 | fi | |
16618 | ||
16619 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
698dcdb6 | 16620 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16621 | #define wxUSE_COMBOBOX 1 |
16622 | EOF | |
16623 | ||
1e6feb95 | 16624 | USES_CONTROLS=1 |
10f2d63a VZ |
16625 | fi |
16626 | ||
16627 | if test "$wxUSE_CHOICE" = "yes"; then | |
698dcdb6 | 16628 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16629 | #define wxUSE_CHOICE 1 |
16630 | EOF | |
16631 | ||
1e6feb95 | 16632 | USES_CONTROLS=1 |
10f2d63a VZ |
16633 | fi |
16634 | ||
16635 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
698dcdb6 | 16636 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16637 | #define wxUSE_CHECKBOX 1 |
16638 | EOF | |
16639 | ||
1e6feb95 | 16640 | USES_CONTROLS=1 |
10f2d63a VZ |
16641 | fi |
16642 | ||
16643 | if test "$wxUSE_CHECKLST" = "yes"; then | |
698dcdb6 | 16644 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16645 | #define wxUSE_CHECKLISTBOX 1 |
16646 | EOF | |
16647 | ||
1e6feb95 | 16648 | USES_CONTROLS=1 |
10f2d63a VZ |
16649 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" |
16650 | fi | |
16651 | ||
16652 | if test "$wxUSE_GAUGE" = "yes"; then | |
698dcdb6 | 16653 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16654 | #define wxUSE_GAUGE 1 |
16655 | EOF | |
16656 | ||
1e6feb95 | 16657 | USES_CONTROLS=1 |
10f2d63a VZ |
16658 | fi |
16659 | ||
d6a55c4b VZ |
16660 | if test "$wxUSE_NEW_GRID" = "yes"; then |
16661 | wxUSE_GRID="yes" | |
698dcdb6 | 16662 | cat >> confdefs.h <<\EOF |
d6a55c4b | 16663 | #define wxUSE_NEW_GRID 1 |
10f2d63a VZ |
16664 | EOF |
16665 | ||
1e6feb95 | 16666 | USES_CONTROLS=1 |
d6a55c4b | 16667 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid" |
10f2d63a VZ |
16668 | fi |
16669 | ||
d6a55c4b | 16670 | if test "$wxUSE_GRID" = "yes"; then |
698dcdb6 | 16671 | cat >> confdefs.h <<\EOF |
d6a55c4b | 16672 | #define wxUSE_GRID 1 |
10f2d63a VZ |
16673 | EOF |
16674 | ||
1e6feb95 | 16675 | USES_CONTROLS=1 |
d6a55c4b | 16676 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" |
10f2d63a VZ |
16677 | fi |
16678 | ||
16679 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 16680 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16681 | #define wxUSE_IMAGLIST 1 |
16682 | EOF | |
16683 | ||
16684 | fi | |
16685 | ||
16686 | if test "$wxUSE_LISTBOX" = "yes"; then | |
698dcdb6 | 16687 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16688 | #define wxUSE_LISTBOX 1 |
16689 | EOF | |
16690 | ||
1e6feb95 | 16691 | USES_CONTROLS=1 |
10f2d63a VZ |
16692 | fi |
16693 | ||
16694 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
16695 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 16696 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16697 | #define wxUSE_LISTCTRL 1 |
16698 | EOF | |
16699 | ||
1e6feb95 | 16700 | USES_CONTROLS=1 |
10f2d63a VZ |
16701 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" |
16702 | else | |
698dcdb6 | 16703 | echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
16704 | fi |
16705 | fi | |
16706 | ||
16707 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
698dcdb6 | 16708 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16709 | #define wxUSE_NOTEBOOK 1 |
16710 | EOF | |
16711 | ||
1e6feb95 | 16712 | USES_CONTROLS=1 |
10f2d63a VZ |
16713 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" |
16714 | fi | |
16715 | ||
16716 | if test "$wxUSE_RADIOBOX" = "yes"; then | |
698dcdb6 | 16717 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16718 | #define wxUSE_RADIOBOX 1 |
16719 | EOF | |
16720 | ||
1e6feb95 | 16721 | USES_CONTROLS=1 |
10f2d63a VZ |
16722 | fi |
16723 | ||
16724 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
698dcdb6 | 16725 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16726 | #define wxUSE_RADIOBTN 1 |
16727 | EOF | |
16728 | ||
1e6feb95 | 16729 | USES_CONTROLS=1 |
10f2d63a VZ |
16730 | fi |
16731 | ||
16732 | if test "$wxUSE_SASH" = "yes"; then | |
698dcdb6 | 16733 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16734 | #define wxUSE_SASH 1 |
16735 | EOF | |
16736 | ||
16737 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
16738 | fi | |
16739 | ||
16740 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
698dcdb6 | 16741 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16742 | #define wxUSE_SCROLLBAR 1 |
16743 | EOF | |
16744 | ||
1e6feb95 | 16745 | USES_CONTROLS=1 |
741a9306 | 16746 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
16747 | fi |
16748 | ||
16749 | if test "$wxUSE_SLIDER" = "yes"; then | |
698dcdb6 | 16750 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16751 | #define wxUSE_SLIDER 1 |
16752 | EOF | |
16753 | ||
1e6feb95 | 16754 | USES_CONTROLS=1 |
10f2d63a VZ |
16755 | fi |
16756 | ||
16757 | if test "$wxUSE_SPINBTN" = "yes"; then | |
698dcdb6 | 16758 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16759 | #define wxUSE_SPINBTN 1 |
16760 | EOF | |
16761 | ||
1e6feb95 | 16762 | USES_CONTROLS=1 |
10f2d63a VZ |
16763 | fi |
16764 | ||
56cfaa52 | 16765 | if test "$wxUSE_SPINCTRL" = "yes"; then |
698dcdb6 | 16766 | cat >> confdefs.h <<\EOF |
56cfaa52 RR |
16767 | #define wxUSE_SPINCTRL 1 |
16768 | EOF | |
16769 | ||
1e6feb95 | 16770 | USES_CONTROLS=1 |
56cfaa52 RR |
16771 | fi |
16772 | ||
10f2d63a | 16773 | if test "$wxUSE_SPLITTER" = "yes"; then |
698dcdb6 | 16774 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16775 | #define wxUSE_SPLITTER 1 |
16776 | EOF | |
16777 | ||
16778 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
16779 | fi | |
16780 | ||
16781 | if test "$wxUSE_STATBMP" = "yes"; then | |
698dcdb6 | 16782 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16783 | #define wxUSE_STATBMP 1 |
16784 | EOF | |
16785 | ||
1e6feb95 | 16786 | USES_CONTROLS=1 |
10f2d63a VZ |
16787 | fi |
16788 | ||
16789 | if test "$wxUSE_STATBOX" = "yes"; then | |
698dcdb6 | 16790 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16791 | #define wxUSE_STATBOX 1 |
16792 | EOF | |
16793 | ||
1e6feb95 VZ |
16794 | USES_CONTROLS=1 |
16795 | fi | |
16796 | ||
16797 | if test "$wxUSE_STATTEXT" = "yes"; then | |
16798 | cat >> confdefs.h <<\EOF | |
16799 | #define wxUSE_STATTEXT 1 | |
16800 | EOF | |
16801 | ||
16802 | USES_CONTROLS=1 | |
10f2d63a VZ |
16803 | fi |
16804 | ||
16805 | if test "$wxUSE_STATLINE" = "yes"; then | |
16806 | if test "$wxUSE_WINE" = 1 ; then | |
698dcdb6 | 16807 | echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2 |
10f2d63a | 16808 | else |
698dcdb6 | 16809 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16810 | #define wxUSE_STATLINE 1 |
16811 | EOF | |
16812 | ||
1e6feb95 | 16813 | USES_CONTROLS=1 |
10f2d63a VZ |
16814 | fi |
16815 | fi | |
16816 | ||
16817 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
698dcdb6 | 16818 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16819 | #define wxUSE_STATUSBAR 1 |
16820 | EOF | |
16821 | ||
1e6feb95 | 16822 | USES_CONTROLS=1 |
698dcdb6 | 16823 | |
2286341c | 16824 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" |
10f2d63a VZ |
16825 | fi |
16826 | ||
16827 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
698dcdb6 | 16828 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16829 | #define wxUSE_TAB_DIALOG 1 |
16830 | EOF | |
16831 | ||
16832 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
16833 | fi | |
16834 | ||
1e6feb95 VZ |
16835 | if test "$wxUSE_TEXTCTRL" = "yes"; then |
16836 | cat >> confdefs.h <<\EOF | |
16837 | #define wxUSE_TEXTCTRL 1 | |
16838 | EOF | |
16839 | ||
16840 | USES_CONTROLS=1 | |
16841 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
16842 | fi | |
16843 | ||
1db8dc4a | 16844 | if test "$wxUSE_TOGGLEBTN" = "yes"; then |
a45d7ab7 GD |
16845 | if test "$wxUSE_MAC" = 1; then |
16846 | echo "configure: warning: Toggle button is not yet supported under Mac OS X" 1>&2 | |
16847 | wxUSE_TOGGLEBTN=no | |
16848 | fi | |
16849 | ||
16850 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
16851 | cat >> confdefs.h <<\EOF | |
1db8dc4a VZ |
16852 | #define wxUSE_TOGGLEBTN 1 |
16853 | EOF | |
16854 | ||
1e6feb95 | 16855 | USES_CONTROLS=1 |
a45d7ab7 | 16856 | fi |
1db8dc4a VZ |
16857 | fi |
16858 | ||
360d6699 | 16859 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
698dcdb6 | 16860 | cat >> confdefs.h <<\EOF |
360d6699 VZ |
16861 | #define wxUSE_TOOLBAR_SIMPLE 1 |
16862 | EOF | |
16863 | ||
16864 | wxUSE_TOOLBAR="yes" | |
1e6feb95 | 16865 | USES_CONTROLS=1 |
360d6699 VZ |
16866 | fi |
16867 | ||
10f2d63a | 16868 | if test "$wxUSE_TOOLBAR" = "yes"; then |
698dcdb6 | 16869 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16870 | #define wxUSE_TOOLBAR 1 |
16871 | EOF | |
16872 | ||
1e6feb95 | 16873 | USES_CONTROLS=1 |
698dcdb6 | 16874 | |
360d6699 VZ |
16875 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then |
16876 | wxUSE_TOOLBAR_NATIVE="yes" | |
16877 | fi | |
16878 | ||
1e6feb95 VZ |
16879 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
16880 | cat >> confdefs.h <<\EOF | |
360d6699 VZ |
16881 | #define wxUSE_TOOLBAR_NATIVE 1 |
16882 | EOF | |
16883 | ||
1e6feb95 VZ |
16884 | USES_CONTROLS=1 |
16885 | fi | |
16886 | ||
16887 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
360d6699 VZ |
16888 | fi |
16889 | ||
10f2d63a VZ |
16890 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
16891 | if test "$wxUSE_MOTIF" = 1; then | |
698dcdb6 | 16892 | echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2 |
10f2d63a VZ |
16893 | else |
16894 | if test "$wxUSE_WINE" = 1; then | |
698dcdb6 | 16895 | echo "configure: warning: wxTooltip not supported under WINE" 1>&2 |
10f2d63a | 16896 | else |
698dcdb6 | 16897 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16898 | #define wxUSE_TOOLTIPS 1 |
16899 | EOF | |
16900 | ||
16901 | fi | |
16902 | fi | |
16903 | fi | |
16904 | ||
16905 | if test "$wxUSE_TREECTRL" = "yes"; then | |
16906 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 16907 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16908 | #define wxUSE_TREECTRL 1 |
16909 | EOF | |
16910 | ||
1e6feb95 | 16911 | USES_CONTROLS=1 |
10f2d63a VZ |
16912 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" |
16913 | else | |
698dcdb6 | 16914 | echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
16915 | fi |
16916 | fi | |
16917 | ||
1e6feb95 VZ |
16918 | if test "$USES_CONTROLS" = 1; then |
16919 | cat >> confdefs.h <<\EOF | |
16920 | #define wxUSE_CONTROLS 1 | |
10f2d63a VZ |
16921 | EOF |
16922 | ||
10f2d63a VZ |
16923 | fi |
16924 | ||
1e6feb95 VZ |
16925 | |
16926 | ||
16927 | if test "$wxUSE_MENUS" = "yes"; then | |
698dcdb6 | 16928 | cat >> confdefs.h <<\EOF |
1e6feb95 | 16929 | #define wxUSE_MENUS 1 |
10f2d63a VZ |
16930 | EOF |
16931 | ||
1e6feb95 | 16932 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" |
10f2d63a VZ |
16933 | fi |
16934 | ||
1e6feb95 VZ |
16935 | if test "$wxUSE_METAFILE" = "yes"; then |
16936 | cat >> confdefs.h <<\EOF | |
16937 | #define wxUSE_METAFILE 1 | |
10f2d63a VZ |
16938 | EOF |
16939 | ||
10f2d63a VZ |
16940 | fi |
16941 | ||
1e6feb95 VZ |
16942 | if test "$wxUSE_MIMETYPE" = "yes"; then |
16943 | cat >> confdefs.h <<\EOF | |
16944 | #define wxUSE_MIMETYPE 1 | |
10f2d63a VZ |
16945 | EOF |
16946 | ||
10f2d63a VZ |
16947 | fi |
16948 | ||
16949 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
698dcdb6 | 16950 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16951 | #define wxUSE_MINIFRAME 1 |
16952 | EOF | |
16953 | ||
16954 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
16955 | fi | |
16956 | ||
16957 | if test "$wxUSE_HTML" = "yes"; then | |
698dcdb6 | 16958 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16959 | #define wxUSE_HTML 1 |
16960 | EOF | |
16961 | ||
16962 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html" | |
16963 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html" | |
16964 | fi | |
16965 | ||
16966 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
698dcdb6 | 16967 | cat >> confdefs.h <<\EOF |
1e487827 VS |
16968 | #define wxUSE_VALIDATORS 1 |
16969 | EOF | |
703e0a69 | 16970 | |
698dcdb6 VZ |
16971 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" |
16972 | fi | |
16973 | ||
16974 | if test "$wxUSE_IMAGE" = "yes" ; then | |
16975 | cat >> confdefs.h <<\EOF | |
16976 | #define wxUSE_IMAGE 1 | |
16977 | EOF | |
16978 | ||
16979 | fi | |
16980 | ||
16981 | if test "$wxUSE_GIF" = "yes" ; then | |
16982 | cat >> confdefs.h <<\EOF | |
16983 | #define wxUSE_GIF 1 | |
16984 | EOF | |
16985 | ||
16986 | fi | |
16987 | ||
16988 | if test "$wxUSE_PCX" = "yes" ; then | |
16989 | cat >> confdefs.h <<\EOF | |
16990 | #define wxUSE_PCX 1 | |
16991 | EOF | |
16992 | ||
16993 | fi | |
16994 | ||
16995 | if test "$wxUSE_PNM" = "yes" ; then | |
16996 | cat >> confdefs.h <<\EOF | |
16997 | #define wxUSE_PNM 1 | |
16998 | EOF | |
16999 | ||
17000 | fi | |
17001 | ||
17002 | if test "$wxUSE_XPM" = "yes" ; then | |
17003 | cat >> confdefs.h <<\EOF | |
17004 | #define wxUSE_XPM 1 | |
17005 | EOF | |
17006 | ||
17007 | fi | |
17008 | ||
17009 | ||
1e6feb95 VZ |
17010 | if test "$wxUSE_CHOICEDLG" = "yes"; then |
17011 | cat >> confdefs.h <<\EOF | |
17012 | #define wxUSE_CHOICEDLG 1 | |
17013 | EOF | |
17014 | ||
17015 | fi | |
17016 | ||
17017 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
17018 | cat >> confdefs.h <<\EOF | |
17019 | #define wxUSE_COLOURDLG 1 | |
17020 | EOF | |
17021 | ||
17022 | fi | |
17023 | ||
17024 | if test "$wxUSE_FILEDLG" = "yes"; then | |
17025 | cat >> confdefs.h <<\EOF | |
17026 | #define wxUSE_FILEDLG 1 | |
17027 | EOF | |
17028 | ||
17029 | fi | |
17030 | ||
17031 | if test "$wxUSE_FONTDLG" = "yes"; then | |
17032 | cat >> confdefs.h <<\EOF | |
17033 | #define wxUSE_FONTDLG 1 | |
17034 | EOF | |
17035 | ||
17036 | fi | |
17037 | ||
17038 | if test "$wxUSE_DIRDLG" = "yes"; then | |
17039 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
17040 | echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2 | |
17041 | else | |
17042 | if test "$wxUSE_TREECTRL" != "yes"; then | |
17043 | echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2 | |
17044 | else | |
17045 | cat >> confdefs.h <<\EOF | |
17046 | #define wxUSE_DIRDLG 1 | |
17047 | EOF | |
17048 | ||
17049 | fi | |
17050 | fi | |
17051 | fi | |
17052 | ||
17053 | if test "$wxUSE_MSGDLG" = "yes"; then | |
17054 | cat >> confdefs.h <<\EOF | |
17055 | #define wxUSE_MSGDLG 1 | |
17056 | EOF | |
17057 | ||
17058 | fi | |
17059 | ||
17060 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
17061 | cat >> confdefs.h <<\EOF | |
17062 | #define wxUSE_NUMBERDLG 1 | |
17063 | EOF | |
17064 | ||
17065 | fi | |
17066 | ||
17067 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
17068 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
17069 | echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2 | |
17070 | else | |
17071 | cat >> confdefs.h <<\EOF | |
17072 | #define wxUSE_PROGRESSDLG 1 | |
17073 | EOF | |
17074 | ||
17075 | fi | |
17076 | fi | |
17077 | ||
17078 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then | |
17079 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
17080 | echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2 | |
17081 | else | |
17082 | cat >> confdefs.h <<\EOF | |
17083 | #define wxUSE_STARTUP_TIPS 1 | |
17084 | EOF | |
17085 | ||
17086 | fi | |
17087 | fi | |
17088 | ||
17089 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
17090 | cat >> confdefs.h <<\EOF | |
17091 | #define wxUSE_TEXTDLG 1 | |
17092 | EOF | |
17093 | ||
17094 | fi | |
17095 | ||
17096 | ||
698dcdb6 VZ |
17097 | if test "$cross_compiling" = "yes"; then |
17098 | OSINFO="\"$host\"" | |
17099 | else | |
17100 | OSINFO=`uname -s -r -m` | |
17101 | OSINFO="\"$OSINFO\"" | |
17102 | fi | |
17103 | ||
17104 | cat >> confdefs.h <<EOF | |
17105 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
17106 | EOF | |
17107 | ||
17108 | ||
17109 | ||
17110 | GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK" | |
17111 | OPENGL_LIBS="$OPENGL_LINK" | |
17112 | ||
17113 | EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm" | |
17114 | if test "$USE_MAC" = 1 ; then | |
17115 | EXTRA_LIBS="$EXTRA_LIBS -framework Carbon -framework System" | |
17116 | fi | |
17117 | if test "$wxUSE_GUI" = "yes"; then | |
17118 | EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $FREETYPE_LINK $EXTRA_LIBS" | |
17119 | fi | |
17120 | ||
17121 | LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS" | |
17122 | ||
17123 | INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $FREETYPE_INCLUDE $TOOLKIT_INCLUDE" | |
17124 | ||
17125 | if test "$wxUSE_GTK" = 1; then | |
17126 | WXCONFIG_INCLUDE="" | |
17127 | else | |
17128 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
17129 | fi | |
17130 | ||
17131 | if test "$GXX" = yes ; then | |
17132 | CXXWARNINGS="-Wall" | |
17133 | fi | |
17134 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES" | |
17135 | ||
17136 | CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` | |
17137 | CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
17138 | ||
17139 | LDFLAGS="$LDFLAGS $PROFILE" | |
17140 | ||
17141 | if test "$wxUSE_GUI" = "yes"; then | |
17142 | ||
17143 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs dragimag \ | |
1e6feb95 VZ |
17144 | drawing dynamic event font fractal image \ |
17145 | minimal richedit widgets" | |
17146 | ||
17147 | if test "$wxUSE_UNIVERSAL" = "yes" ; then | |
17148 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS univ" | |
17149 | fi | |
698dcdb6 VZ |
17150 | |
17151 | CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)" | |
17152 | else | |
17153 | SAMPLES_SUBDIRS="" | |
17154 | fi | |
17155 | ||
17156 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
17157 | ||
17158 | ||
17159 | ||
17160 | ||
17161 | ||
17162 | ||
17163 | ||
17164 | ||
17165 | ||
17166 | ||
17167 | ||
17168 | ||
17169 | ||
17170 | ||
17171 | ||
17172 | ||
17173 | ||
17174 | ||
17175 | ||
17176 | ||
17177 | ||
17178 | ||
17179 | ||
17180 | ||
17181 | ||
17182 | ||
17183 | ||
17184 | ||
17185 | ||
17186 | ||
17187 | ||
17188 | ||
17189 | ||
17190 | ||
17191 | ||
17192 | ||
17193 | ||
17194 | ||
17195 | ||
17196 | ||
17197 | ||
17198 | ||
17199 | ||
17200 | ||
17201 | ||
17202 | ||
17203 | ||
17204 | ||
17205 | ||
17206 | ||
17207 | ||
17208 | ||
17209 | ||
17210 | ||
17211 | ||
17212 | ||
17213 | ||
17214 | ||
17215 | ||
17216 | ||
17217 | ||
17218 | ||
17219 | ||
17220 | ||
17221 | ||
17222 | ||
17223 | ||
32832908 VZ |
17224 | |
17225 | ||
17226 | ||
17227 | ||
17228 | ||
17229 | ||
17230 | ||
2224580a | 17231 | |
dad6c0ea | 17232 | |
f6bcfd97 BP |
17233 | |
17234 | ||
17235 | ||
2f51a9ec GD |
17236 | |
17237 | ||
17238 | ||
17239 | ||
17240 | ||
17241 | ||
f6bcfd97 | 17242 | |
dad6c0ea | 17243 | |
caa2c79b | 17244 | |
3711412e | 17245 | |
1e6feb95 VZ |
17246 | |
17247 | ||
0f3f1cbc | 17248 | |
10f2d63a VZ |
17249 | |
17250 | ||
698dcdb6 | 17251 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
138be253 | 17252 | echo "configure:17253: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
698dcdb6 VZ |
17253 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
17254 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
17255 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 17256 | else |
698dcdb6 | 17257 | cat > conftestmake <<\EOF |
10f2d63a VZ |
17258 | all: |
17259 | @echo 'ac_maketemp="${MAKE}"' | |
17260 | EOF | |
17261 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
698dcdb6 | 17262 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
10f2d63a VZ |
17263 | if test -n "$ac_maketemp"; then |
17264 | eval ac_cv_prog_make_${ac_make}_set=yes | |
17265 | else | |
17266 | eval ac_cv_prog_make_${ac_make}_set=no | |
17267 | fi | |
698dcdb6 | 17268 | rm -f conftestmake |
10f2d63a VZ |
17269 | fi |
17270 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
698dcdb6 | 17271 | echo "$ac_t""yes" 1>&6 |
10f2d63a VZ |
17272 | SET_MAKE= |
17273 | else | |
698dcdb6 | 17274 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
17275 | SET_MAKE="MAKE=${MAKE-make}" |
17276 | fi | |
17277 | ||
698dcdb6 | 17278 | |
00cf1208 RR |
17279 | if test -d include; then |
17280 | if test -d include/wx; then | |
1e6feb95 VZ |
17281 | if test -d include/wx/${SETUPH_DIR}; then |
17282 | if test -f include/wx/${SETUPH_DIR}/setup.h; then | |
17283 | mv -f include/wx/${SETUPH_DIR}/setup.h setup.h | |
00cf1208 RR |
17284 | fi |
17285 | fi | |
17286 | fi | |
17287 | fi | |
665bbe97 | 17288 | |
698dcdb6 | 17289 | |
10f2d63a | 17290 | |
2224580a | 17291 | if test "$wxUSE_GUI" = "yes"; then |
ec90f5e5 | 17292 | wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS |
e8482f24 GL |
17293 | wx_cv_path_ifs=$PATH_IFS |
17294 | wx_cv_program_ext=$PROGRAM_EXT | |
17295 | wx_cv_target_library=$WX_TARGET_LIBRARY | |
3711412e | 17296 | wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE |
93a20a27 VS |
17297 | export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \ |
17298 | wx_cv_target_library wx_cv_target_libtype | |
698dcdb6 | 17299 | subdirs="demos samples utils contrib" |
2224580a VZ |
17300 | |
17301 | fi | |
10f2d63a | 17302 | |
698dcdb6 VZ |
17303 | trap '' 1 2 15 |
17304 | cat > confcache <<\EOF | |
10f2d63a VZ |
17305 | # This file is a shell script that caches the results of configure |
17306 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
17307 | # scripts and configure runs. It is not useful on other systems. |
17308 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 17309 | # |
698dcdb6 VZ |
17310 | # By default, configure uses ./config.cache as the cache file, |
17311 | # creating it if it does not exist already. You can give configure | |
17312 | # the --cache-file=FILE option to use a different cache file; that is | |
17313 | # what configure does when it calls configure scripts in | |
17314 | # subdirectories, so they share the cache. | |
17315 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
17316 | # config.status only pays attention to the cache file if you give it the | |
17317 | # --recheck option to rerun configure. | |
10f2d63a | 17318 | # |
698dcdb6 | 17319 | EOF |
10f2d63a VZ |
17320 | # The following way of writing the cache mishandles newlines in values, |
17321 | # but we know of no workaround that is simple, portable, and efficient. | |
17322 | # So, don't put newlines in cache variables' values. | |
17323 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
17324 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
17325 | (set) 2>&1 | |
17326 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
17327 | *ac_space=\ *) | |
17328 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
17329 | # turns \\\\ into \\, and sed turns \\ into \). | |
17330 | sed -n \ | |
17331 | -e "s/'/'\\\\''/g" \ | |
17332 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
17333 | ;; | |
17334 | *) | |
17335 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
17336 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
17337 | ;; | |
17338 | esac >> confcache | |
17339 | if cmp -s $cache_file confcache; then | |
17340 | : | |
17341 | else | |
10f2d63a | 17342 | if test -w $cache_file; then |
698dcdb6 VZ |
17343 | echo "updating cache $cache_file" |
17344 | cat confcache > $cache_file | |
10f2d63a VZ |
17345 | else |
17346 | echo "not updating unwritable cache $cache_file" | |
17347 | fi | |
17348 | fi | |
17349 | rm -f confcache | |
17350 | ||
698dcdb6 VZ |
17351 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
17352 | ||
10f2d63a VZ |
17353 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
17354 | # Let make expand exec_prefix. | |
17355 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
17356 | ||
698dcdb6 VZ |
17357 | # Any assignment to VPATH causes Sun make to only execute |
17358 | # the first set of double-colon rules, so remove it if not needed. | |
17359 | # If there is a colon in the path, we need to keep it. | |
10f2d63a | 17360 | if test "x$srcdir" = x.; then |
698dcdb6 | 17361 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
10f2d63a VZ |
17362 | fi |
17363 | ||
698dcdb6 VZ |
17364 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
17365 | ||
10f2d63a VZ |
17366 | DEFS=-DHAVE_CONFIG_H |
17367 | ||
698dcdb6 | 17368 | # Without the "./", some shells look in PATH for config.status. |
10f2d63a | 17369 | : ${CONFIG_STATUS=./config.status} |
698dcdb6 VZ |
17370 | |
17371 | echo creating $CONFIG_STATUS | |
17372 | rm -f $CONFIG_STATUS | |
17373 | cat > $CONFIG_STATUS <<EOF | |
17374 | #! /bin/sh | |
10f2d63a VZ |
17375 | # Generated automatically by configure. |
17376 | # Run this file to recreate the current configuration. | |
698dcdb6 VZ |
17377 | # This directory was configured as follows, |
17378 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
17379 | # | |
17380 | # $0 $ac_configure_args | |
17381 | # | |
10f2d63a | 17382 | # Compiler output produced by configure, useful for debugging |
698dcdb6 | 17383 | # configure, is in ./config.log if it exists. |
1e487827 | 17384 | |
698dcdb6 VZ |
17385 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
17386 | for ac_option | |
10f2d63a | 17387 | do |
698dcdb6 | 17388 | case "\$ac_option" in |
10f2d63a | 17389 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
698dcdb6 VZ |
17390 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
17391 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
17392 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
17393 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | |
17394 | exit 0 ;; | |
17395 | -help | --help | --hel | --he | --h) | |
17396 | echo "\$ac_cs_usage"; exit 0 ;; | |
17397 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
10f2d63a VZ |
17398 | esac |
17399 | done | |
17400 | ||
698dcdb6 VZ |
17401 | ac_given_srcdir=$srcdir |
17402 | ac_given_INSTALL="$INSTALL" | |
703e0a69 | 17403 | |
698dcdb6 VZ |
17404 | trap 'rm -fr `echo " |
17405 | wx-config | |
17406 | src/make.env | |
17407 | src/makeprog.env | |
17408 | src/makelib.env | |
17409 | Makefile | |
17410 | setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
1e487827 | 17411 | EOF |
698dcdb6 | 17412 | cat >> $CONFIG_STATUS <<EOF |
1e487827 | 17413 | |
698dcdb6 VZ |
17414 | # Protect against being on the right side of a sed subst in config.status. |
17415 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
17416 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
17417 | $ac_vpsub | |
17418 | $extrasub | |
17419 | s%@SHELL@%$SHELL%g | |
17420 | s%@CFLAGS@%$CFLAGS%g | |
17421 | s%@CPPFLAGS@%$CPPFLAGS%g | |
17422 | s%@CXXFLAGS@%$CXXFLAGS%g | |
17423 | s%@FFLAGS@%$FFLAGS%g | |
17424 | s%@DEFS@%$DEFS%g | |
17425 | s%@LDFLAGS@%$LDFLAGS%g | |
17426 | s%@LIBS@%$LIBS%g | |
17427 | s%@exec_prefix@%$exec_prefix%g | |
17428 | s%@prefix@%$prefix%g | |
17429 | s%@program_transform_name@%$program_transform_name%g | |
17430 | s%@bindir@%$bindir%g | |
17431 | s%@sbindir@%$sbindir%g | |
17432 | s%@libexecdir@%$libexecdir%g | |
17433 | s%@datadir@%$datadir%g | |
17434 | s%@sysconfdir@%$sysconfdir%g | |
17435 | s%@sharedstatedir@%$sharedstatedir%g | |
17436 | s%@localstatedir@%$localstatedir%g | |
17437 | s%@libdir@%$libdir%g | |
17438 | s%@includedir@%$includedir%g | |
17439 | s%@oldincludedir@%$oldincludedir%g | |
17440 | s%@infodir@%$infodir%g | |
17441 | s%@mandir@%$mandir%g | |
17442 | s%@host@%$host%g | |
17443 | s%@host_alias@%$host_alias%g | |
17444 | s%@host_cpu@%$host_cpu%g | |
17445 | s%@host_vendor@%$host_vendor%g | |
17446 | s%@host_os@%$host_os%g | |
17447 | s%@target@%$target%g | |
17448 | s%@target_alias@%$target_alias%g | |
17449 | s%@target_cpu@%$target_cpu%g | |
17450 | s%@target_vendor@%$target_vendor%g | |
17451 | s%@target_os@%$target_os%g | |
17452 | s%@build@%$build%g | |
17453 | s%@build_alias@%$build_alias%g | |
17454 | s%@build_cpu@%$build_cpu%g | |
17455 | s%@build_vendor@%$build_vendor%g | |
17456 | s%@build_os@%$build_os%g | |
17457 | s%@CC@%$CC%g | |
17458 | s%@CPP@%$CPP%g | |
17459 | s%@CXX@%$CXX%g | |
17460 | s%@CXXCPP@%$CXXCPP%g | |
17461 | s%@RANLIB@%$RANLIB%g | |
17462 | s%@AR@%$AR%g | |
17463 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
17464 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | |
17465 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
17466 | s%@STRIP@%$STRIP%g | |
17467 | s%@YACC@%$YACC%g | |
17468 | s%@LEX@%$LEX%g | |
17469 | s%@LEXLIB@%$LEXLIB%g | |
17470 | s%@LN_S@%$LN_S%g | |
17471 | s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g | |
698dcdb6 VZ |
17472 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g |
17473 | s%@GTK_LIBS@%$GTK_LIBS%g | |
8168de4c | 17474 | s%@GTK_CONFIG@%$GTK_CONFIG%g |
698dcdb6 VZ |
17475 | s%@X_CFLAGS@%$X_CFLAGS%g |
17476 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
17477 | s%@X_LIBS@%$X_LIBS%g | |
17478 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
17479 | s%@REZ@%$REZ%g | |
17480 | s%@DEREZ@%$DEREZ%g | |
17481 | s%@LEX_STEM@%$LEX_STEM%g | |
17482 | s%@PATH_IFS@%$PATH_IFS%g | |
17483 | s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g | |
17484 | s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g | |
17485 | s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g | |
17486 | s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g | |
17487 | s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g | |
17488 | s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g | |
17489 | s%@WX_LIBRARY@%$WX_LIBRARY%g | |
17490 | s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g | |
17491 | s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g | |
17492 | s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g | |
17493 | s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g | |
17494 | s%@PROGRAM_EXT@%$PROGRAM_EXT%g | |
17495 | s%@WX_LIBRARY_NAME_GL@%$WX_LIBRARY_NAME_GL%g | |
17496 | s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g | |
17497 | s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g | |
17498 | s%@WX_LIBRARY_GL@%$WX_LIBRARY_GL%g | |
17499 | s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g | |
17500 | s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g | |
17501 | s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g | |
17502 | s%@WX_LIBRARY_LINK3_GL@%$WX_LIBRARY_LINK3_GL%g | |
17503 | s%@WX_ALL@%$WX_ALL%g | |
17504 | s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g | |
17505 | s%@SHARED_LD@%$SHARED_LD%g | |
17506 | s%@PIC_FLAG@%$PIC_FLAG%g | |
17507 | s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g | |
17508 | s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g | |
17509 | s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g | |
17510 | s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g | |
17511 | s%@BURNT_LIBRARY_NAME_GL@%$BURNT_LIBRARY_NAME_GL%g | |
17512 | s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g | |
17513 | s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g | |
17514 | s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g | |
17515 | s%@USE_GUI@%$USE_GUI%g | |
17516 | s%@AFMINSTALL@%$AFMINSTALL%g | |
1e6feb95 | 17517 | s%@SETUPH_DIR@%$SETUPH_DIR%g |
698dcdb6 VZ |
17518 | s%@TOOLKIT@%$TOOLKIT%g |
17519 | s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g | |
17520 | s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g | |
17521 | s%@TOOLKIT_NAME@%$TOOLKIT_NAME%g | |
17522 | s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g | |
1e6feb95 | 17523 | s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g |
698dcdb6 VZ |
17524 | s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g |
17525 | s%@ALL_OBJECTS@%$ALL_OBJECTS%g | |
17526 | s%@ALL_DEPFILES@%$ALL_DEPFILES%g | |
17527 | s%@GUIDIST@%$GUIDIST%g | |
17528 | s%@PORT_FILES@%$PORT_FILES%g | |
17529 | s%@DISTDIR@%$DISTDIR%g | |
17530 | s%@RPM_SPEC@%$RPM_SPEC%g | |
17531 | s%@RPM_FILES@%$RPM_FILES%g | |
17532 | s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g | |
17533 | s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g | |
17534 | s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g | |
17535 | s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g | |
17536 | s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g | |
17537 | s%@USER_SUBDIRS@%$USER_SUBDIRS%g | |
17538 | s%@EXTRA_LIBS@%$EXTRA_LIBS%g | |
17539 | s%@OPENGL_LIBS@%$OPENGL_LIBS%g | |
17540 | s%@EXTRADEFS@%$EXTRADEFS%g | |
17541 | s%@LD_LIBS@%$LD_LIBS%g | |
17542 | s%@RCINPUTSWITCH@%$RCINPUTSWITCH%g | |
17543 | s%@RCOUTPUTSWITCH@%$RCOUTPUTSWITCH%g | |
17544 | s%@RESPROGRAM@%$RESPROGRAM%g | |
17545 | s%@RESCOMP@%$RESCOMP%g | |
17546 | s%@RESFLAGS@%$RESFLAGS%g | |
17547 | s%@REZFLAGS@%$REZFLAGS%g | |
17548 | s%@DEREZFLAGS@%$DEREZFLAGS%g | |
17549 | s%@LIBWXMACRES@%$LIBWXMACRES%g | |
17550 | s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g | |
17551 | s%@DLLTOOL@%$DLLTOOL%g | |
17552 | s%@AS@%$AS%g | |
17553 | s%@NM@%$NM%g | |
17554 | s%@LD@%$LD%g | |
17555 | s%@MAKEINFO@%$MAKEINFO%g | |
17556 | s%@SET_MAKE@%$SET_MAKE%g | |
17557 | s%@subdirs@%$subdirs%g | |
1e487827 | 17558 | |
1e487827 | 17559 | CEOF |
1e487827 VS |
17560 | EOF |
17561 | ||
698dcdb6 VZ |
17562 | cat >> $CONFIG_STATUS <<\EOF |
17563 | ||
17564 | # Split the substitutions into bite-sized pieces for seds with | |
17565 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
17566 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
17567 | ac_file=1 # Number of current file. | |
17568 | ac_beg=1 # First line for current file. | |
17569 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
17570 | ac_more_lines=: | |
17571 | ac_sed_cmds="" | |
17572 | while $ac_more_lines; do | |
17573 | if test $ac_beg -gt 1; then | |
17574 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
17575 | else | |
17576 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
17577 | fi | |
17578 | if test ! -s conftest.s$ac_file; then | |
17579 | ac_more_lines=false | |
17580 | rm -f conftest.s$ac_file | |
17581 | else | |
17582 | if test -z "$ac_sed_cmds"; then | |
17583 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
10f2d63a | 17584 | else |
698dcdb6 | 17585 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
10f2d63a | 17586 | fi |
698dcdb6 VZ |
17587 | ac_file=`expr $ac_file + 1` |
17588 | ac_beg=$ac_end | |
17589 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
10f2d63a | 17590 | fi |
698dcdb6 VZ |
17591 | done |
17592 | if test -z "$ac_sed_cmds"; then | |
17593 | ac_sed_cmds=cat | |
17594 | fi | |
17595 | EOF | |
10f2d63a | 17596 | |
698dcdb6 VZ |
17597 | cat >> $CONFIG_STATUS <<EOF |
17598 | ||
17599 | CONFIG_FILES=\${CONFIG_FILES-"wx-config | |
17600 | src/make.env | |
17601 | src/makeprog.env | |
17602 | src/makelib.env | |
17603 | Makefile | |
17604 | "} | |
10f2d63a | 17605 | EOF |
698dcdb6 VZ |
17606 | cat >> $CONFIG_STATUS <<\EOF |
17607 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
10f2d63a | 17608 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
698dcdb6 VZ |
17609 | case "$ac_file" in |
17610 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
17611 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
17612 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
17613 | esac |
17614 | ||
698dcdb6 | 17615 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
1e487827 | 17616 | |
698dcdb6 VZ |
17617 | # Remove last slash and all that follows it. Not all systems have dirname. |
17618 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
17619 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
17620 | # The file is in a subdirectory. | |
17621 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
17622 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
10f2d63a | 17623 | # A "../" for each directory in $ac_dir_suffix. |
698dcdb6 | 17624 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
10f2d63a VZ |
17625 | else |
17626 | ac_dir_suffix= ac_dots= | |
17627 | fi | |
17628 | ||
698dcdb6 VZ |
17629 | case "$ac_given_srcdir" in |
17630 | .) srcdir=. | |
17631 | if test -z "$ac_dots"; then top_srcdir=. | |
17632 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
17633 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
10f2d63a | 17634 | *) # Relative path. |
698dcdb6 VZ |
17635 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
17636 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
10f2d63a VZ |
17637 | esac |
17638 | ||
698dcdb6 VZ |
17639 | case "$ac_given_INSTALL" in |
17640 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
17641 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
10f2d63a VZ |
17642 | esac |
17643 | ||
698dcdb6 VZ |
17644 | echo creating "$ac_file" |
17645 | rm -f "$ac_file" | |
17646 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
17647 | case "$ac_file" in | |
17648 | *Makefile*) ac_comsub="1i\\ | |
17649 | # $configure_input" ;; | |
17650 | *) ac_comsub= ;; | |
17651 | esac | |
10f2d63a | 17652 | |
698dcdb6 VZ |
17653 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
17654 | sed -e "$ac_comsub | |
17655 | s%@configure_input@%$configure_input%g | |
17656 | s%@srcdir@%$srcdir%g | |
17657 | s%@top_srcdir@%$top_srcdir%g | |
17658 | s%@INSTALL@%$INSTALL%g | |
17659 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
17660 | fi; done | |
17661 | rm -f conftest.s* | |
10f2d63a VZ |
17662 | |
17663 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
17664 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
17665 | # | |
17666 | # ac_d sets the value in "#define NAME VALUE" lines. | |
698dcdb6 VZ |
17667 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
17668 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
17669 | ac_dC='\3' | |
17670 | ac_dD='%g' | |
17671 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
17672 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
17673 | ac_uB='\([ ]\)%\1#\2define\3' | |
10f2d63a | 17674 | ac_uC=' ' |
698dcdb6 VZ |
17675 | ac_uD='\4%g' |
17676 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
17677 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
17678 | ac_eB='$%\1#\2define\3' | |
17679 | ac_eC=' ' | |
17680 | ac_eD='%g' | |
10f2d63a | 17681 | |
698dcdb6 VZ |
17682 | if test "${CONFIG_HEADERS+set}" != set; then |
17683 | EOF | |
17684 | cat >> $CONFIG_STATUS <<EOF | |
17685 | CONFIG_HEADERS="setup.h:setup.h.in" | |
17686 | EOF | |
17687 | cat >> $CONFIG_STATUS <<\EOF | |
17688 | fi | |
17689 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
10f2d63a | 17690 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
698dcdb6 VZ |
17691 | case "$ac_file" in |
17692 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
17693 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
17694 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
17695 | esac |
17696 | ||
698dcdb6 VZ |
17697 | echo creating $ac_file |
17698 | ||
17699 | rm -f conftest.frag conftest.in conftest.out | |
17700 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
17701 | cat $ac_file_inputs > conftest.in | |
17702 | ||
17703 | EOF | |
17704 | ||
17705 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
17706 | # the proper values into config.h.in to produce config.h. And first: | |
17707 | # Protect against being on the right side of a sed subst in config.status. | |
17708 | # Protect against being in an unquoted here document in config.status. | |
17709 | rm -f conftest.vals | |
17710 | cat > conftest.hdr <<\EOF | |
17711 | s/[\\&%]/\\&/g | |
17712 | s%[\\$`]%\\&%g | |
17713 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
17714 | s%ac_d%ac_u%gp | |
17715 | s%ac_u%ac_e%gp | |
17716 | EOF | |
17717 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
17718 | rm -f conftest.hdr | |
10f2d63a VZ |
17719 | |
17720 | # This sed command replaces #undef with comments. This is necessary, for | |
17721 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
17722 | # on some systems where configure will not decide to define it. | |
698dcdb6 VZ |
17723 | cat >> conftest.vals <<\EOF |
17724 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
10f2d63a VZ |
17725 | EOF |
17726 | ||
698dcdb6 VZ |
17727 | # Break up conftest.vals because some shells have a limit on |
17728 | # the size of here documents, and old seds have small limits too. | |
10f2d63a VZ |
17729 | |
17730 | rm -f conftest.tail | |
698dcdb6 | 17731 | while : |
10f2d63a | 17732 | do |
698dcdb6 VZ |
17733 | ac_lines=`grep -c . conftest.vals` |
17734 | # grep -c gives empty output for an empty file on some AIX systems. | |
17735 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
17736 | # Write a limited-size here document to conftest.frag. | |
17737 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
17738 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
10f2d63a | 17739 | echo 'CEOF |
698dcdb6 VZ |
17740 | sed -f conftest.frag conftest.in > conftest.out |
17741 | rm -f conftest.in | |
17742 | mv conftest.out conftest.in | |
17743 | ' >> $CONFIG_STATUS | |
17744 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
17745 | rm -f conftest.vals | |
17746 | mv conftest.tail conftest.vals | |
10f2d63a | 17747 | done |
698dcdb6 VZ |
17748 | rm -f conftest.vals |
17749 | ||
17750 | cat >> $CONFIG_STATUS <<\EOF | |
17751 | rm -f conftest.frag conftest.h | |
17752 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
17753 | cat conftest.in >> conftest.h | |
17754 | rm -f conftest.in | |
17755 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
17756 | echo "$ac_file is unchanged" | |
17757 | rm -f conftest.h | |
10f2d63a | 17758 | else |
698dcdb6 VZ |
17759 | # Remove last slash and all that follows it. Not all systems have dirname. |
17760 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
10f2d63a | 17761 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
698dcdb6 VZ |
17762 | # The file is in a subdirectory. |
17763 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
10f2d63a | 17764 | fi |
698dcdb6 VZ |
17765 | rm -f $ac_file |
17766 | mv conftest.h $ac_file | |
10f2d63a | 17767 | fi |
698dcdb6 VZ |
17768 | fi; done |
17769 | ||
10f2d63a | 17770 | EOF |
698dcdb6 | 17771 | cat >> $CONFIG_STATUS <<EOF |
10f2d63a | 17772 | |
1e6feb95 | 17773 | SETUPH_DIR="${SETUPH_DIR}" |
698dcdb6 VZ |
17774 | TOOLKIT_NAME="${TOOLKIT_NAME}" |
17775 | LN_S="${LN_S}" | |
17776 | ||
17777 | ||
17778 | EOF | |
17779 | cat >> $CONFIG_STATUS <<\EOF | |
10f2d63a | 17780 | |
6ef41520 | 17781 | if test ! -f wx${TOOLKIT_NAME}-config; then |
991a5759 VZ |
17782 | chmod +x wx-config |
17783 | mv wx-config wx${TOOLKIT_NAME}-config | |
17784 | ${LN_S} wx${TOOLKIT_NAME}-config wx-config | |
17785 | fi | |
665bbe97 | 17786 | |
698dcdb6 | 17787 | |
00cf1208 RR |
17788 | if test ! -d lib; then |
17789 | mkdir lib | |
17790 | fi | |
17791 | if test ! -d lib/wx; then | |
17792 | mkdir lib/wx | |
17793 | fi | |
17794 | if test ! -d lib/wx/include; then | |
17795 | mkdir lib/wx/include | |
17796 | fi | |
17797 | if test ! -d lib/wx/include/wx; then | |
17798 | mkdir lib/wx/include/wx | |
17799 | fi | |
f6bcfd97 BP |
17800 | if test ! -d lib/wx/include/wx/${TOOLKIT_NAME}; then |
17801 | mkdir lib/wx/include/wx/${TOOLKIT_NAME} | |
00cf1208 RR |
17802 | fi |
17803 | if test -f setup.h; then | |
066b00aa | 17804 | cp -fp setup.h lib/wx/include/wx/${TOOLKIT_NAME}/setup.h |
00cf1208 | 17805 | fi |
07eb77a6 | 17806 | |
698dcdb6 | 17807 | |
10f2d63a VZ |
17808 | if test ! -d include; then |
17809 | mkdir include | |
17810 | fi | |
17811 | if test ! -d include/wx; then | |
17812 | mkdir include/wx | |
17813 | fi | |
1e6feb95 VZ |
17814 | if test ! -d include/wx/${SETUPH_DIR}; then |
17815 | mkdir include/wx/${SETUPH_DIR} | |
10f2d63a | 17816 | fi |
afc31813 | 17817 | if test -f setup.h; then |
1e6feb95 | 17818 | cp -fp setup.h include/wx/${SETUPH_DIR}/setup.h |
afc31813 | 17819 | fi |
665bbe97 | 17820 | |
698dcdb6 VZ |
17821 | |
17822 | exit 0 | |
10f2d63a VZ |
17823 | EOF |
17824 | chmod +x $CONFIG_STATUS | |
698dcdb6 VZ |
17825 | rm -fr confdefs* $ac_clean_files |
17826 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
10f2d63a | 17827 | |
2224580a VZ |
17828 | if test "$no_recursion" != yes; then |
17829 | ||
17830 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
17831 | ac_sub_configure_args= | |
17832 | ac_prev= | |
17833 | for ac_arg in $ac_configure_args; do | |
17834 | if test -n "$ac_prev"; then | |
17835 | ac_prev= | |
17836 | continue | |
17837 | fi | |
698dcdb6 | 17838 | case "$ac_arg" in |
2224580a VZ |
17839 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
17840 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
17841 | ac_prev=cache_file ;; | |
17842 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
698dcdb6 | 17843 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
2224580a VZ |
17844 | ;; |
17845 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
17846 | ac_prev=srcdir ;; | |
17847 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
17848 | ;; | |
17849 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
17850 | esac | |
17851 | done | |
17852 | ||
698dcdb6 | 17853 | for ac_config_dir in demos samples utils contrib; do |
2224580a VZ |
17854 | |
17855 | # Do not complain, so a configure script can configure whichever | |
17856 | # parts of a large source tree are present. | |
698dcdb6 VZ |
17857 | if test ! -d $srcdir/$ac_config_dir; then |
17858 | continue | |
17859 | fi | |
17860 | ||
17861 | echo configuring in $ac_config_dir | |
2224580a | 17862 | |
698dcdb6 | 17863 | case "$srcdir" in |
2224580a VZ |
17864 | .) ;; |
17865 | *) | |
698dcdb6 VZ |
17866 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; |
17867 | else | |
17868 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
17869 | fi | |
17870 | ;; | |
2224580a VZ |
17871 | esac |
17872 | ||
17873 | ac_popdir=`pwd` | |
698dcdb6 | 17874 | cd $ac_config_dir |
2224580a | 17875 | |
698dcdb6 VZ |
17876 | # A "../" for each directory in /$ac_config_dir. |
17877 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
2224580a | 17878 | |
698dcdb6 | 17879 | case "$srcdir" in |
2224580a VZ |
17880 | .) # No --srcdir option. We are building in place. |
17881 | ac_sub_srcdir=$srcdir ;; | |
698dcdb6 VZ |
17882 | /*) # Absolute path. |
17883 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
2224580a | 17884 | *) # Relative path. |
698dcdb6 | 17885 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; |
2224580a VZ |
17886 | esac |
17887 | ||
17888 | # Check for guested configure; otherwise get Cygnus style configure. | |
698dcdb6 VZ |
17889 | if test -f $ac_sub_srcdir/configure; then |
17890 | ac_sub_configure=$ac_sub_srcdir/configure | |
2224580a VZ |
17891 | elif test -f $ac_sub_srcdir/configure.in; then |
17892 | ac_sub_configure=$ac_configure | |
17893 | else | |
698dcdb6 | 17894 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 |
2224580a VZ |
17895 | ac_sub_configure= |
17896 | fi | |
17897 | ||
17898 | # The recursion is here. | |
17899 | if test -n "$ac_sub_configure"; then | |
698dcdb6 | 17900 | |
2224580a | 17901 | # Make the cache file name correct relative to the subdirectory. |
698dcdb6 VZ |
17902 | case "$cache_file" in |
17903 | /*) ac_sub_cache_file=$cache_file ;; | |
2224580a | 17904 | *) # Relative path. |
698dcdb6 | 17905 | ac_sub_cache_file="$ac_dots$cache_file" ;; |
2224580a | 17906 | esac |
698dcdb6 VZ |
17907 | case "$ac_given_INSTALL" in |
17908 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
17909 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
17910 | esac | |
2224580a | 17911 | |
698dcdb6 | 17912 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" |
2224580a | 17913 | # The eval makes quoting arguments work. |
698dcdb6 VZ |
17914 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir |
17915 | then : | |
17916 | else | |
17917 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
17918 | fi | |
2224580a VZ |
17919 | fi |
17920 | ||
17921 | cd $ac_popdir | |
17922 | done | |
17923 | fi | |
17924 | ||
698dcdb6 | 17925 |