]> git.saurik.com Git - wxWidgets.git/blob - configure
slightly updated makefiles
[wxWidgets.git] / configure
1 #! /bin/sh
2
3 # From configure.in Id: configure.in
4
5
6
7
8
9
10 # Do all the work for Automake. This macro actually does too much --
11 # some checks are only needed if your package does certain things.
12 # But this isn't really a big deal.
13
14 # serial 1
15
16
17
18
19
20 # serial 1
21
22
23
24 #
25 # Check to make sure that the build environment is sane.
26 #
27
28
29
30
31
32
33
34
35
36 # serial 29 AM_PROG_LIBTOOL
37
38
39 # AM_ENABLE_SHARED - implement the --enable-shared flag
40 # Usage: AM_ENABLE_SHARED[(DEFAULT)]
41 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
42 # `yes'.
43
44
45 # AM_DISABLE_SHARED - set the default shared flag to --disable-shared
46
47
48 # AM_DISABLE_STATIC - set the default static flag to --disable-static
49
50
51 # AM_ENABLE_STATIC - implement the --enable-static flag
52 # Usage: AM_ENABLE_STATIC[(DEFAULT)]
53 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
54 # `yes'.
55
56
57
58 # AM_PROG_LD - find the path to the GNU or non-GNU linker
59
60
61
62
63 # AM_PROG_NM - find the path to a BSD-compatible name lister
64
65
66 # AM_SYS_NM_PARSE - Check for command ro grab the raw symbol name followed
67 # by C symbol name from nm.
68
69
70 # AM_SYS_LIBTOOL_CYGWIN32 - find tools needed on cygwin32
71
72
73 # AM_SYS_SYMBOL_UNDERSCORE - does the compiler prefix global symbols
74 # with an underscore?
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99 # Guess values for system-dependent variables and create Makefiles.
100 # Generated automatically using autoconf version 2.13
101 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
102 #
103 # This configure script is free software; the Free Software Foundation
104 # gives unlimited permission to copy, distribute and modify it.
105
106 # Defaults:
107 ac_help=
108 ac_default_prefix=/usr/local
109 # Any additions from configure.in:
110 ac_help="$ac_help
111 --with-gtk-prefix=PFX prefix where GTK is installed"
112 ac_help="$ac_help
113 --with-gtk-exec-prefix=PFX exec prefix where GTK is installed"
114 ac_help="$ac_help
115 --with-gtk use GTK+"
116 ac_help="$ac_help
117 --with-motif use Motif/Lesstif"
118 ac_help="$ac_help
119 --with-cygwin use Cygwin for MS-Windows"
120 ac_help="$ac_help
121 --with-mingw use GCC Minimal MS-Windows"
122 ac_help="$ac_help
123 --with-dmalloc use dmalloc library (www.letters.com/dmalloc)"
124 ac_help="$ac_help
125 --with-zlib use zlib for LZW compression"
126 ac_help="$ac_help
127 --with-libpng use libpng (PNG image format)"
128 ac_help="$ac_help
129 --with-libgif use libgif (GIF file format)"
130 ac_help="$ac_help
131 --with-libjpeg use libjpeg (JPEG file format)"
132 ac_help="$ac_help
133 --with-opengl use OpenGL (or Mesa)"
134 ac_help="$ac_help
135 --with-odbc use the IODBC and wxODBC classes"
136 ac_help="$ac_help
137 --enable-optimise create optimised code"
138 ac_help="$ac_help
139 --enable-optimize create optimized code"
140 ac_help="$ac_help
141 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
142 ac_help="$ac_help
143 --enable-debug_info create code with debugging information"
144 ac_help="$ac_help
145 --enable-debug_gdb create code with extra GDB debugging information"
146 ac_help="$ac_help
147 --enable-debug_cntxt use wxDebugContext"
148 ac_help="$ac_help
149 --enable-mem_tracing create code with memory tracing"
150 ac_help="$ac_help
151 --enable-profile create code with profiling information"
152 ac_help="$ac_help
153 --enable-gui use GUI classes"
154 ac_help="$ac_help
155 --enable-intl use internationalization system"
156 ac_help="$ac_help
157 --enable-config use wxConfig (and derived) classes"
158 ac_help="$ac_help
159 --enable-sockets use socket/network classes"
160 ac_help="$ac_help
161 --enable-ipc use interprocess communication (wxSocket etc.)"
162 ac_help="$ac_help
163 --enable-apple_ieee use the Apple IEEE codec"
164 ac_help="$ac_help
165 --enable-timedate use date/time classes"
166 ac_help="$ac_help
167 --enable-fraction use wxFraction class"
168 ac_help="$ac_help
169 --enable-dynlib use wxLibrary class for DLL loading"
170 ac_help="$ac_help
171 --enable-longlong use wxLongLong class"
172 ac_help="$ac_help
173 --enable-log use logging system"
174 ac_help="$ac_help
175 --enable-streams use wxStream etc classes"
176 ac_help="$ac_help
177 --enable-file use wxFile classes"
178 ac_help="$ac_help
179 --enable-textfile use wxTextFile classes"
180 ac_help="$ac_help
181 --enable-unicode compile wxString with Unicode support"
182 ac_help="$ac_help
183 --enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs"
184 ac_help="$ac_help
185 --enable-joystick compile in joystick support (Linux only)"
186 ac_help="$ac_help
187 --enable-threads use threads"
188 ac_help="$ac_help
189 --enable-serial use class serialization"
190 ac_help="$ac_help
191 --enable-docview use document view architecture"
192 ac_help="$ac_help
193 --enable-help use help (using external browser at present)"
194 ac_help="$ac_help
195 --enable-constraints use layout-constraints system"
196 ac_help="$ac_help
197 --enable-printarch use printing architecture"
198 ac_help="$ac_help
199 --enable-mdi use multiple document interface architecture"
200 ac_help="$ac_help
201 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
202 ac_help="$ac_help
203 --enable-prologio use Prolog IO library"
204 ac_help="$ac_help
205 --enable-resources use wxWindows resources"
206 ac_help="$ac_help
207 --enable-xresources use X resources for save (default for gtk+)"
208 ac_help="$ac_help
209 --enable-clipboard use wxClipboard classes"
210 ac_help="$ac_help
211 --enable-dnd use Drag'n'Drop classes"
212 ac_help="$ac_help
213 --enable-wxtree make wxTree library"
214 ac_help="$ac_help
215 --enable-controls use all usual controls"
216 ac_help="$ac_help
217 --enable-accel use accelerators"
218 ac_help="$ac_help
219 --enable-caret use wxCaret class"
220 ac_help="$ac_help
221 --enable-bmpbutton use wxBitmapButton class"
222 ac_help="$ac_help
223 --enable-checkbox use wxCheckBox class"
224 ac_help="$ac_help
225 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
226 ac_help="$ac_help
227 --enable-combobox use wxChoice and wxComboBox classes"
228 ac_help="$ac_help
229 --enable-gauge use wxGauge class"
230 ac_help="$ac_help
231 --enable-grid use wxGrid class"
232 ac_help="$ac_help
233 --enable-imaglist use wxImageList class"
234 ac_help="$ac_help
235 --enable-listbox use wxListBox class"
236 ac_help="$ac_help
237 --enable-listctrl use wxListCtrl class"
238 ac_help="$ac_help
239 --enable-notebook use wxNotebook class"
240 ac_help="$ac_help
241 --enable-radiobox use wxRadioBox class"
242 ac_help="$ac_help
243 --enable-radiobtn use wxRadioButton class"
244 ac_help="$ac_help
245 --enable-sash use wxSashWindow class"
246 ac_help="$ac_help
247 --enable-scrollbar use wxScrollBar class and scrollable windows"
248 ac_help="$ac_help
249 --enable-slider use wxSlider class"
250 ac_help="$ac_help
251 --enable-spinbtn use wxSpinButton class"
252 ac_help="$ac_help
253 --enable-splitter use wxSplitterWindow class"
254 ac_help="$ac_help
255 --enable-statbmp use wxStaticBitmap class"
256 ac_help="$ac_help
257 --enable-statbox use wxStaticBox class"
258 ac_help="$ac_help
259 --enable-statline use wxStaticLine class"
260 ac_help="$ac_help
261 --enable-statusbar use wxStatusBar class"
262 ac_help="$ac_help
263 --enable-tabdialog use wxTabControl class"
264 ac_help="$ac_help
265 --enable-toolbar use wxToolBar class"
266 ac_help="$ac_help
267 --enable-treectrl use wxTreeCtrl class"
268 ac_help="$ac_help
269 --enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)"
270 ac_help="$ac_help
271 --enable-miniframe use wxMiniFrame class"
272 ac_help="$ac_help
273 --enable-tooltips use wxToolTip class"
274 ac_help="$ac_help
275 --enable-splines use spline drawing code"
276 ac_help="$ac_help
277 --enable-validators use wxValidator and derived classes"
278 ac_help="$ac_help
279 --enable-static[=PKGS] build static libraries [default=no]"
280 ac_help="$ac_help
281 --enable-shared[=PKGS] build shared libraries [default=yes]"
282 ac_help="$ac_help
283 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
284 ac_help="$ac_help
285 --disable-libtool-lock force libtool not to do file locking"
286 ac_help="$ac_help
287 --with-x use the X Window System"
288 ac_help="$ac_help
289 **--with-gtk-prefix=PFX Prefix where GTK is installed"
290 ac_help="$ac_help
291 **--with-gtk-exec-prefix=PFX Exec prefix where GTK is installed"
292 ac_help="$ac_help
293 **--with-gtk-prefix=PFX Prefix where GTK is installed"
294 ac_help="$ac_help
295 **--with-gtk-exec-prefix=PFX Exec prefix where GTK is installed"
296
297 # Initialize some variables set by options.
298 # The variables have the same names as the options, with
299 # dashes changed to underlines.
300 build=NONE
301 cache_file=./config.cache
302 exec_prefix=NONE
303 host=NONE
304 no_create=
305 nonopt=NONE
306 no_recursion=
307 prefix=NONE
308 program_prefix=NONE
309 program_suffix=NONE
310 program_transform_name=s,x,x,
311 silent=
312 site=
313 srcdir=
314 target=NONE
315 verbose=
316 x_includes=NONE
317 x_libraries=NONE
318 bindir='${exec_prefix}/bin'
319 sbindir='${exec_prefix}/sbin'
320 libexecdir='${exec_prefix}/libexec'
321 datadir='${prefix}/share'
322 sysconfdir='${prefix}/etc'
323 sharedstatedir='${prefix}/com'
324 localstatedir='${prefix}/var'
325 libdir='${exec_prefix}/lib'
326 includedir='${prefix}/include'
327 oldincludedir='/usr/include'
328 infodir='${prefix}/info'
329 mandir='${prefix}/man'
330
331 # Initialize some other variables.
332 subdirs=
333 MFLAGS= MAKEFLAGS=
334 SHELL=${CONFIG_SHELL-/bin/sh}
335 # Maximum number of lines to put in a shell here document.
336 ac_max_here_lines=12
337
338 ac_prev=
339 for ac_option
340 do
341
342 # If the previous option needs an argument, assign it.
343 if test -n "$ac_prev"; then
344 eval "$ac_prev=\$ac_option"
345 ac_prev=
346 continue
347 fi
348
349 case "$ac_option" in
350 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
351 *) ac_optarg= ;;
352 esac
353
354 # Accept the important Cygnus configure options, so we can diagnose typos.
355
356 case "$ac_option" in
357
358 -bindir | --bindir | --bindi | --bind | --bin | --bi)
359 ac_prev=bindir ;;
360 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
361 bindir="$ac_optarg" ;;
362
363 -build | --build | --buil | --bui | --bu)
364 ac_prev=build ;;
365 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
366 build="$ac_optarg" ;;
367
368 -cache-file | --cache-file | --cache-fil | --cache-fi \
369 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
370 ac_prev=cache_file ;;
371 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
372 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
373 cache_file="$ac_optarg" ;;
374
375 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
376 ac_prev=datadir ;;
377 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
378 | --da=*)
379 datadir="$ac_optarg" ;;
380
381 -disable-* | --disable-*)
382 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
383 # Reject names that are not valid shell variable names.
384 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
385 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
386 fi
387 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
388 eval "enable_${ac_feature}=no" ;;
389
390 -enable-* | --enable-*)
391 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
392 # Reject names that are not valid shell variable names.
393 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
394 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
395 fi
396 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
397 case "$ac_option" in
398 *=*) ;;
399 *) ac_optarg=yes ;;
400 esac
401 eval "enable_${ac_feature}='$ac_optarg'" ;;
402
403 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
404 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
405 | --exec | --exe | --ex)
406 ac_prev=exec_prefix ;;
407 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
408 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
409 | --exec=* | --exe=* | --ex=*)
410 exec_prefix="$ac_optarg" ;;
411
412 -gas | --gas | --ga | --g)
413 # Obsolete; use --with-gas.
414 with_gas=yes ;;
415
416 -help | --help | --hel | --he)
417 # Omit some internal or obsolete options to make the list less imposing.
418 # This message is too long to be a string in the A/UX 3.1 sh.
419 cat << EOF
420 Usage: configure [options] [host]
421 Options: [defaults in brackets after descriptions]
422 Configuration:
423 --cache-file=FILE cache test results in FILE
424 --help print this message
425 --no-create do not create output files
426 --quiet, --silent do not print \`checking...' messages
427 --version print the version of autoconf that created configure
428 Directory and file names:
429 --prefix=PREFIX install architecture-independent files in PREFIX
430 [$ac_default_prefix]
431 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
432 [same as prefix]
433 --bindir=DIR user executables in DIR [EPREFIX/bin]
434 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
435 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
436 --datadir=DIR read-only architecture-independent data in DIR
437 [PREFIX/share]
438 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
439 --sharedstatedir=DIR modifiable architecture-independent data in DIR
440 [PREFIX/com]
441 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
442 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
443 --includedir=DIR C header files in DIR [PREFIX/include]
444 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
445 --infodir=DIR info documentation in DIR [PREFIX/info]
446 --mandir=DIR man documentation in DIR [PREFIX/man]
447 --srcdir=DIR find the sources in DIR [configure dir or ..]
448 --program-prefix=PREFIX prepend PREFIX to installed program names
449 --program-suffix=SUFFIX append SUFFIX to installed program names
450 --program-transform-name=PROGRAM
451 run sed PROGRAM on installed program names
452 EOF
453 cat << EOF
454 Host type:
455 --build=BUILD configure for building on BUILD [BUILD=HOST]
456 --host=HOST configure for HOST [guessed]
457 --target=TARGET configure for TARGET [TARGET=HOST]
458 Features and packages:
459 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
460 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
461 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
462 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
463 --x-includes=DIR X include files are in DIR
464 --x-libraries=DIR X library files are in DIR
465 EOF
466 if test -n "$ac_help"; then
467 echo "--enable and --with options recognized:$ac_help"
468 fi
469 exit 0 ;;
470
471 -host | --host | --hos | --ho)
472 ac_prev=host ;;
473 -host=* | --host=* | --hos=* | --ho=*)
474 host="$ac_optarg" ;;
475
476 -includedir | --includedir | --includedi | --included | --include \
477 | --includ | --inclu | --incl | --inc)
478 ac_prev=includedir ;;
479 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
480 | --includ=* | --inclu=* | --incl=* | --inc=*)
481 includedir="$ac_optarg" ;;
482
483 -infodir | --infodir | --infodi | --infod | --info | --inf)
484 ac_prev=infodir ;;
485 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
486 infodir="$ac_optarg" ;;
487
488 -libdir | --libdir | --libdi | --libd)
489 ac_prev=libdir ;;
490 -libdir=* | --libdir=* | --libdi=* | --libd=*)
491 libdir="$ac_optarg" ;;
492
493 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
494 | --libexe | --libex | --libe)
495 ac_prev=libexecdir ;;
496 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
497 | --libexe=* | --libex=* | --libe=*)
498 libexecdir="$ac_optarg" ;;
499
500 -localstatedir | --localstatedir | --localstatedi | --localstated \
501 | --localstate | --localstat | --localsta | --localst \
502 | --locals | --local | --loca | --loc | --lo)
503 ac_prev=localstatedir ;;
504 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
505 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
506 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
507 localstatedir="$ac_optarg" ;;
508
509 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
510 ac_prev=mandir ;;
511 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
512 mandir="$ac_optarg" ;;
513
514 -nfp | --nfp | --nf)
515 # Obsolete; use --without-fp.
516 with_fp=no ;;
517
518 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
519 | --no-cr | --no-c)
520 no_create=yes ;;
521
522 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
523 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
524 no_recursion=yes ;;
525
526 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
527 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
528 | --oldin | --oldi | --old | --ol | --o)
529 ac_prev=oldincludedir ;;
530 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
531 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
532 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
533 oldincludedir="$ac_optarg" ;;
534
535 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
536 ac_prev=prefix ;;
537 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
538 prefix="$ac_optarg" ;;
539
540 -program-prefix | --program-prefix | --program-prefi | --program-pref \
541 | --program-pre | --program-pr | --program-p)
542 ac_prev=program_prefix ;;
543 -program-prefix=* | --program-prefix=* | --program-prefi=* \
544 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
545 program_prefix="$ac_optarg" ;;
546
547 -program-suffix | --program-suffix | --program-suffi | --program-suff \
548 | --program-suf | --program-su | --program-s)
549 ac_prev=program_suffix ;;
550 -program-suffix=* | --program-suffix=* | --program-suffi=* \
551 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
552 program_suffix="$ac_optarg" ;;
553
554 -program-transform-name | --program-transform-name \
555 | --program-transform-nam | --program-transform-na \
556 | --program-transform-n | --program-transform- \
557 | --program-transform | --program-transfor \
558 | --program-transfo | --program-transf \
559 | --program-trans | --program-tran \
560 | --progr-tra | --program-tr | --program-t)
561 ac_prev=program_transform_name ;;
562 -program-transform-name=* | --program-transform-name=* \
563 | --program-transform-nam=* | --program-transform-na=* \
564 | --program-transform-n=* | --program-transform-=* \
565 | --program-transform=* | --program-transfor=* \
566 | --program-transfo=* | --program-transf=* \
567 | --program-trans=* | --program-tran=* \
568 | --progr-tra=* | --program-tr=* | --program-t=*)
569 program_transform_name="$ac_optarg" ;;
570
571 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
572 | -silent | --silent | --silen | --sile | --sil)
573 silent=yes ;;
574
575 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
576 ac_prev=sbindir ;;
577 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
578 | --sbi=* | --sb=*)
579 sbindir="$ac_optarg" ;;
580
581 -sharedstatedir | --sharedstatedir | --sharedstatedi \
582 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
583 | --sharedst | --shareds | --shared | --share | --shar \
584 | --sha | --sh)
585 ac_prev=sharedstatedir ;;
586 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
587 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
588 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
589 | --sha=* | --sh=*)
590 sharedstatedir="$ac_optarg" ;;
591
592 -site | --site | --sit)
593 ac_prev=site ;;
594 -site=* | --site=* | --sit=*)
595 site="$ac_optarg" ;;
596
597 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
598 ac_prev=srcdir ;;
599 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
600 srcdir="$ac_optarg" ;;
601
602 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
603 | --syscon | --sysco | --sysc | --sys | --sy)
604 ac_prev=sysconfdir ;;
605 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
606 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
607 sysconfdir="$ac_optarg" ;;
608
609 -target | --target | --targe | --targ | --tar | --ta | --t)
610 ac_prev=target ;;
611 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
612 target="$ac_optarg" ;;
613
614 -v | -verbose | --verbose | --verbos | --verbo | --verb)
615 verbose=yes ;;
616
617 -version | --version | --versio | --versi | --vers)
618 echo "configure generated by autoconf version 2.13"
619 exit 0 ;;
620
621 -with-* | --with-*)
622 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
623 # Reject names that are not valid shell variable names.
624 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
625 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
626 fi
627 ac_package=`echo $ac_package| sed 's/-/_/g'`
628 case "$ac_option" in
629 *=*) ;;
630 *) ac_optarg=yes ;;
631 esac
632 eval "with_${ac_package}='$ac_optarg'" ;;
633
634 -without-* | --without-*)
635 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
636 # Reject names that are not valid shell variable names.
637 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
638 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
639 fi
640 ac_package=`echo $ac_package| sed 's/-/_/g'`
641 eval "with_${ac_package}=no" ;;
642
643 --x)
644 # Obsolete; use --with-x.
645 with_x=yes ;;
646
647 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
648 | --x-incl | --x-inc | --x-in | --x-i)
649 ac_prev=x_includes ;;
650 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
651 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
652 x_includes="$ac_optarg" ;;
653
654 -x-libraries | --x-libraries | --x-librarie | --x-librari \
655 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
656 ac_prev=x_libraries ;;
657 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
658 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
659 x_libraries="$ac_optarg" ;;
660
661 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
662 ;;
663
664 *)
665 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
666 echo "configure: warning: $ac_option: invalid host type" 1>&2
667 fi
668 if test "x$nonopt" != xNONE; then
669 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
670 fi
671 nonopt="$ac_option"
672 ;;
673
674 esac
675 done
676
677 if test -n "$ac_prev"; then
678 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
679 fi
680
681 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
682
683 # File descriptor usage:
684 # 0 standard input
685 # 1 file creation
686 # 2 errors and warnings
687 # 3 some systems may open it to /dev/tty
688 # 4 used on the Kubota Titan
689 # 6 checking for... messages and results
690 # 5 compiler messages saved in config.log
691 if test "$silent" = yes; then
692 exec 6>/dev/null
693 else
694 exec 6>&1
695 fi
696 exec 5>./config.log
697
698 echo "\
699 This file contains any messages produced by compilers while
700 running configure, to aid debugging if configure makes a mistake.
701 " 1>&5
702
703 # Strip out --no-create and --no-recursion so they do not pile up.
704 # Also quote any args containing shell metacharacters.
705 ac_configure_args=
706 for ac_arg
707 do
708 case "$ac_arg" in
709 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
710 | --no-cr | --no-c) ;;
711 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
712 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
713 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
714 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
715 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
716 esac
717 done
718
719 # NLS nuisances.
720 # Only set these to C if already set. These must not be set unconditionally
721 # because not all systems understand e.g. LANG=C (notably SCO).
722 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
723 # Non-C LC_CTYPE values break the ctype check.
724 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
725 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
726 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
727 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
728
729 # confdefs.h avoids OS command line length limits that DEFS can exceed.
730 rm -rf conftest* confdefs.h
731 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
732 echo > confdefs.h
733
734 # A filename unique to this package, relative to the directory that
735 # configure is in, which we can look for to find out if srcdir is correct.
736 ac_unique_file=wx-config.in
737
738 # Find the source files, if location was not specified.
739 if test -z "$srcdir"; then
740 ac_srcdir_defaulted=yes
741 # Try the directory containing this script, then its parent.
742 ac_prog=$0
743 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
744 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
745 srcdir=$ac_confdir
746 if test ! -r $srcdir/$ac_unique_file; then
747 srcdir=..
748 fi
749 else
750 ac_srcdir_defaulted=no
751 fi
752 if test ! -r $srcdir/$ac_unique_file; then
753 if test "$ac_srcdir_defaulted" = yes; then
754 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
755 else
756 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
757 fi
758 fi
759 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
760
761 # Prefer explicitly selected file to automatically selected ones.
762 if test -z "$CONFIG_SITE"; then
763 if test "x$prefix" != xNONE; then
764 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
765 else
766 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
767 fi
768 fi
769 for ac_site_file in $CONFIG_SITE; do
770 if test -r "$ac_site_file"; then
771 echo "loading site script $ac_site_file"
772 . "$ac_site_file"
773 fi
774 done
775
776 if test -r "$cache_file"; then
777 echo "loading cache $cache_file"
778 . $cache_file
779 else
780 echo "creating cache $cache_file"
781 > $cache_file
782 fi
783
784 ac_ext=c
785 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
786 ac_cpp='$CPP $CPPFLAGS'
787 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
788 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
789 cross_compiling=$ac_cv_prog_cc_cross
790
791 ac_exeext=
792 ac_objext=o
793 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
794 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
795 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
796 ac_n= ac_c='
797 ' ac_t=' '
798 else
799 ac_n=-n ac_c= ac_t=
800 fi
801 else
802 ac_n= ac_c='\c' ac_t=
803 fi
804
805
806
807 ac_aux_dir=
808 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
809 if test -f $ac_dir/install-sh; then
810 ac_aux_dir=$ac_dir
811 ac_install_sh="$ac_aux_dir/install-sh -c"
812 break
813 elif test -f $ac_dir/install.sh; then
814 ac_aux_dir=$ac_dir
815 ac_install_sh="$ac_aux_dir/install.sh -c"
816 break
817 fi
818 done
819 if test -z "$ac_aux_dir"; then
820 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
821 fi
822 ac_config_guess=$ac_aux_dir/config.guess
823 ac_config_sub=$ac_aux_dir/config.sub
824 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
825
826
827 # Make sure we can run config.sub.
828 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
829 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
830 fi
831
832 echo $ac_n "checking host system type""... $ac_c" 1>&6
833 echo "configure:834: checking host system type" >&5
834
835 host_alias=$host
836 case "$host_alias" in
837 NONE)
838 case $nonopt in
839 NONE)
840 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
841 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
842 fi ;;
843 *) host_alias=$nonopt ;;
844 esac ;;
845 esac
846
847 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
848 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
849 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
850 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
851 echo "$ac_t""$host" 1>&6
852
853 # Find a good install program. We prefer a C program (faster),
854 # so one script is as good as another. But avoid the broken or
855 # incompatible versions:
856 # SysV /etc/install, /usr/sbin/install
857 # SunOS /usr/etc/install
858 # IRIX /sbin/install
859 # AIX /bin/install
860 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
861 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
862 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
863 # ./install, which can be erroneously created by make from ./install.sh.
864 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
865 echo "configure:866: checking for a BSD compatible install" >&5
866 if test -z "$INSTALL"; then
867 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
868 echo $ac_n "(cached) $ac_c" 1>&6
869 else
870 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
871 for ac_dir in $PATH; do
872 # Account for people who put trailing slashes in PATH elements.
873 case "$ac_dir/" in
874 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
875 *)
876 # OSF1 and SCO ODT 3.0 have their own names for install.
877 # Don't use installbsd from OSF since it installs stuff as root
878 # by default.
879 for ac_prog in ginstall scoinst install; do
880 if test -f $ac_dir/$ac_prog; then
881 if test $ac_prog = install &&
882 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
883 # AIX install. It has an incompatible calling convention.
884 :
885 else
886 ac_cv_path_install="$ac_dir/$ac_prog -c"
887 break 2
888 fi
889 fi
890 done
891 ;;
892 esac
893 done
894 IFS="$ac_save_IFS"
895
896 fi
897 if test "${ac_cv_path_install+set}" = set; then
898 INSTALL="$ac_cv_path_install"
899 else
900 # As a last resort, use the slow shell script. We don't cache a
901 # path for INSTALL within a source directory, because that will
902 # break other packages using the cache if that directory is
903 # removed, or if the path is relative.
904 INSTALL="$ac_install_sh"
905 fi
906 fi
907 echo "$ac_t""$INSTALL" 1>&6
908
909 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
910 # It thinks the first close brace ends the variable substitution.
911 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
912
913 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
914
915 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
916
917 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
918 echo "configure:919: checking whether build environment is sane" >&5
919 # Just in case
920 sleep 1
921 echo timestamp > conftestfile
922 # Do `set' in a subshell so we don't clobber the current shell's
923 # arguments. Must try -L first in case configure is actually a
924 # symlink; some systems play weird games with the mod time of symlinks
925 # (eg FreeBSD returns the mod time of the symlink's containing
926 # directory).
927 if (
928 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
929 if test "$*" = "X"; then
930 # -L didn't work.
931 set X `ls -t $srcdir/configure conftestfile`
932 fi
933 if test "$*" != "X $srcdir/configure conftestfile" \
934 && test "$*" != "X conftestfile $srcdir/configure"; then
935
936 # If neither matched, then we have a broken ls. This can happen
937 # if, for instance, CONFIG_SHELL is bash and it inherits a
938 # broken ls alias from the environment. This has actually
939 # happened. Such a system could not be considered "sane".
940 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
941 alias in your environment" 1>&2; exit 1; }
942 fi
943
944 test "$2" = conftestfile
945 )
946 then
947 # Ok.
948 :
949 else
950 { echo "configure: error: newly created file is older than distributed files!
951 Check your system clock" 1>&2; exit 1; }
952 fi
953 rm -f conftest*
954 echo "$ac_t""yes" 1>&6
955 if test "$program_transform_name" = s,x,x,; then
956 program_transform_name=
957 else
958 # Double any \ or $. echo might interpret backslashes.
959 cat <<\EOF_SED > conftestsed
960 s,\\,\\\\,g; s,\$,$$,g
961 EOF_SED
962 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
963 rm -f conftestsed
964 fi
965 test "$program_prefix" != NONE &&
966 program_transform_name="s,^,${program_prefix},; $program_transform_name"
967 # Use a double $ so make ignores it.
968 test "$program_suffix" != NONE &&
969 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
970
971 # sed with no file args requires a program.
972 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
973
974 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
975 echo "configure:976: checking whether ${MAKE-make} sets \${MAKE}" >&5
976 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
977 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
978 echo $ac_n "(cached) $ac_c" 1>&6
979 else
980 cat > conftestmake <<\EOF
981 all:
982 @echo 'ac_maketemp="${MAKE}"'
983 EOF
984 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
985 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
986 if test -n "$ac_maketemp"; then
987 eval ac_cv_prog_make_${ac_make}_set=yes
988 else
989 eval ac_cv_prog_make_${ac_make}_set=no
990 fi
991 rm -f conftestmake
992 fi
993 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
994 echo "$ac_t""yes" 1>&6
995 SET_MAKE=
996 else
997 echo "$ac_t""no" 1>&6
998 SET_MAKE="MAKE=${MAKE-make}"
999 fi
1000
1001
1002 PACKAGE=wxWindows
1003
1004 VERSION=2.1.0
1005
1006 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1007 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1008 fi
1009 cat >> confdefs.h <<EOF
1010 #define PACKAGE "$PACKAGE"
1011 EOF
1012
1013 cat >> confdefs.h <<EOF
1014 #define VERSION "$VERSION"
1015 EOF
1016
1017
1018
1019 missing_dir=`cd $ac_aux_dir && pwd`
1020 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1021 echo "configure:1022: checking for working aclocal" >&5
1022 # Run test in a subshell; some versions of sh will print an error if
1023 # an executable is not found, even if stderr is redirected.
1024 # Redirect stdin to placate older versions of autoconf. Sigh.
1025 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1026 ACLOCAL=aclocal
1027 echo "$ac_t""found" 1>&6
1028 else
1029 ACLOCAL="$missing_dir/missing aclocal"
1030 echo "$ac_t""missing" 1>&6
1031 fi
1032
1033 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1034 echo "configure:1035: checking for working autoconf" >&5
1035 # Run test in a subshell; some versions of sh will print an error if
1036 # an executable is not found, even if stderr is redirected.
1037 # Redirect stdin to placate older versions of autoconf. Sigh.
1038 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1039 AUTOCONF=autoconf
1040 echo "$ac_t""found" 1>&6
1041 else
1042 AUTOCONF="$missing_dir/missing autoconf"
1043 echo "$ac_t""missing" 1>&6
1044 fi
1045
1046 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1047 echo "configure:1048: checking for working automake" >&5
1048 # Run test in a subshell; some versions of sh will print an error if
1049 # an executable is not found, even if stderr is redirected.
1050 # Redirect stdin to placate older versions of autoconf. Sigh.
1051 if (automake --version) < /dev/null > /dev/null 2>&1; then
1052 AUTOMAKE=automake
1053 echo "$ac_t""found" 1>&6
1054 else
1055 AUTOMAKE="$missing_dir/missing automake"
1056 echo "$ac_t""missing" 1>&6
1057 fi
1058
1059 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1060 echo "configure:1061: checking for working autoheader" >&5
1061 # Run test in a subshell; some versions of sh will print an error if
1062 # an executable is not found, even if stderr is redirected.
1063 # Redirect stdin to placate older versions of autoconf. Sigh.
1064 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1065 AUTOHEADER=autoheader
1066 echo "$ac_t""found" 1>&6
1067 else
1068 AUTOHEADER="$missing_dir/missing autoheader"
1069 echo "$ac_t""missing" 1>&6
1070 fi
1071
1072 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1073 echo "configure:1074: checking for working makeinfo" >&5
1074 # Run test in a subshell; some versions of sh will print an error if
1075 # an executable is not found, even if stderr is redirected.
1076 # Redirect stdin to placate older versions of autoconf. Sigh.
1077 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1078 MAKEINFO=makeinfo
1079 echo "$ac_t""found" 1>&6
1080 else
1081 MAKEINFO="$missing_dir/missing makeinfo"
1082 echo "$ac_t""missing" 1>&6
1083 fi
1084
1085
1086
1087 WX_MAJOR_VERSION_NUMBER=2
1088 WX_MINOR_VERSION_NUMBER=1
1089 WX_RELEASE_NUMBER=0
1090
1091 LIBOBJS=
1092 LIBOBJS="$LIBOBJS common/extended.o"
1093
1094
1095 USE_UNIX=1
1096 USE_LINUX=
1097 USE_SGI=
1098 USE_HPUX=
1099 USE_SYSV=
1100 USE_SVR4=
1101 USE_AIX=
1102 USE_SUN=
1103 USE_SOLARIS=
1104 USE_SUNOS=
1105 USE_ALPHA=
1106 USE_OSF=
1107 USE_BSD=
1108 USE_FREEBSD=
1109 USE_VMS=
1110 USE_ULTRIX=
1111 USE_CYGWIN=
1112 USE_MINGW32=
1113 USE_DATA_GENERAL=
1114
1115 DEFAULT_wxUSE_GTK=0
1116 DEFAULT_wxUSE_MOTIF=0
1117 DEFAULT_wxUSE_MSW=0
1118
1119 case "${host}" in
1120 *-hp-hpux* )
1121 USE_HPUX=1
1122 DEFAULT_wxUSE_MOTIF=1
1123 cat >> confdefs.h <<\EOF
1124 #define __HPUX__ 1
1125 EOF
1126
1127 ;;
1128 *-*-linux* )
1129 USE_LINUX=1
1130 cat >> confdefs.h <<\EOF
1131 #define __LINUX__ 1
1132 EOF
1133
1134 TMP=`uname -m`
1135 if test "x$TMP" = "xalpha"; then
1136 USE_ALPHA=1
1137 cat >> confdefs.h <<\EOF
1138 #define __ALPHA__ 1
1139 EOF
1140
1141 fi
1142 DEFAULT_wxUSE_GTK=1
1143 ;;
1144 *-*-irix5* | *-*-irix6* )
1145 USE_SGI=1
1146 USE_SVR4=1
1147 cat >> confdefs.h <<\EOF
1148 #define __SGI__ 1
1149 EOF
1150
1151 cat >> confdefs.h <<\EOF
1152 #define __SVR4__ 1
1153 EOF
1154
1155 DEFAULT_wxUSE_MOTIF=1
1156 ;;
1157 *-*-solaris2* )
1158 USE_SUN=1
1159 USE_SOLARIS=1
1160 USE_SVR4=1
1161 cat >> confdefs.h <<\EOF
1162 #define __SUN__ 1
1163 EOF
1164
1165 cat >> confdefs.h <<\EOF
1166 #define __SOLARIS__ 1
1167 EOF
1168
1169 cat >> confdefs.h <<\EOF
1170 #define __SVR4__ 1
1171 EOF
1172
1173 DEFAULT_wxUSE_MOTIF=1
1174 ;;
1175 *-*-sunos4* )
1176 USE_SUN=1
1177 USE_SUNOS=1
1178 USE_BSD=1
1179 cat >> confdefs.h <<\EOF
1180 #define __SUN__ 1
1181 EOF
1182
1183 cat >> confdefs.h <<\EOF
1184 #define __SUNOS__ 1
1185 EOF
1186
1187 cat >> confdefs.h <<\EOF
1188 #define __BSD__ 1
1189 EOF
1190
1191 DEFAULT_wxUSE_MOTIF=1
1192 ;;
1193 *-*-freebsd* | *-*-netbsd*)
1194 USE_BSD=1
1195 USE_FREEBSD=1
1196 cat >> confdefs.h <<\EOF
1197 #define __FREEBSD__ 1
1198 EOF
1199
1200 cat >> confdefs.h <<\EOF
1201 #define __BSD__ 1
1202 EOF
1203
1204 DEFAULT_wxUSE_GTK=1
1205 ;;
1206 *-*-osf* )
1207 USE_ALPHA=1
1208 USE_OSF=1
1209 cat >> confdefs.h <<\EOF
1210 #define __ALPHA__ 1
1211 EOF
1212
1213 cat >> confdefs.h <<\EOF
1214 #define __OSF__ 1
1215 EOF
1216
1217 DEFAULT_wxUSE_MOTIF=1
1218 ;;
1219 *-*-dgux5* )
1220 USE_ALPHA=1
1221 USE_SVR4=1
1222 cat >> confdefs.h <<\EOF
1223 #define __ALPHA__ 1
1224 EOF
1225
1226 cat >> confdefs.h <<\EOF
1227 #define __SVR4__ 1
1228 EOF
1229
1230 DEFAULT_wxUSE_MOTIF=1
1231 ;;
1232 *-*-sysv5* )
1233 USE_SYSV=1
1234 USE_SVR4=1
1235 cat >> confdefs.h <<\EOF
1236 #define __SYSV__ 1
1237 EOF
1238
1239 cat >> confdefs.h <<\EOF
1240 #define __SVR4__ 1
1241 EOF
1242
1243 DEFAULT_wxUSE_MOTIF=1
1244 ;;
1245 *-*-aix* )
1246 USE_AIX=1
1247 USE_SYSV=1
1248 USE_SVR4=1
1249 cat >> confdefs.h <<\EOF
1250 #define __AIX__ 1
1251 EOF
1252
1253 cat >> confdefs.h <<\EOF
1254 #define __SYSV__ 1
1255 EOF
1256
1257 cat >> confdefs.h <<\EOF
1258 #define __SVR4__ 1
1259 EOF
1260
1261 DEFAULT_wxUSE_MOTIF=1
1262 ;;
1263 *)
1264 { echo "configure: error: unknown system type $(host)." 1>&2; exit 1; }
1265 esac
1266
1267 if test "$USE_UNIX" = 1 ; then
1268 wxUSE_UNIX=yes
1269 cat >> confdefs.h <<\EOF
1270 #define __UNIX__ 1
1271 EOF
1272
1273 EXTRA_VPATH="$EXTRA_VPATH:\$(srcdir)/unix"
1274 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix"
1275 fi
1276
1277 if test "$USE_LINUX" = 1; then
1278 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
1279 echo "configure:1280: checking for gettext in -lc" >&5
1280 ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'`
1281 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1282 echo $ac_n "(cached) $ac_c" 1>&6
1283 else
1284 ac_save_LIBS="$LIBS"
1285 LIBS="-lc $LIBS"
1286 cat > conftest.$ac_ext <<EOF
1287 #line 1288 "configure"
1288 #include "confdefs.h"
1289 /* Override any gcc2 internal prototype to avoid an error. */
1290 /* We use char because int might match the return type of a gcc2
1291 builtin and then its argument prototype would still apply. */
1292 char gettext();
1293
1294 int main() {
1295 gettext()
1296 ; return 0; }
1297 EOF
1298 if { (eval echo configure:1299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1299 rm -rf conftest*
1300 eval "ac_cv_lib_$ac_lib_var=yes"
1301 else
1302 echo "configure: failed program was:" >&5
1303 cat conftest.$ac_ext >&5
1304 rm -rf conftest*
1305 eval "ac_cv_lib_$ac_lib_var=no"
1306 fi
1307 rm -f conftest*
1308 LIBS="$ac_save_LIBS"
1309
1310 fi
1311 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1312 echo "$ac_t""yes" 1>&6
1313 cat >> confdefs.h <<\EOF
1314 #define wxHAVE_GLIBC2 1
1315 EOF
1316
1317 else
1318 echo "$ac_t""no" 1>&6
1319 fi
1320
1321 fi
1322
1323 cat >> confdefs.h <<\EOF
1324 #define __UNIX__ 1
1325 EOF
1326
1327
1328
1329
1330
1331 DEBUG_CONFIGURE=0
1332 if test $DEBUG_CONFIGURE = 1; then
1333 DEFAULT_wxUSE_THREADS=yes
1334
1335 DEFAULT_wxUSE_OPTIMISE=no
1336 DEFAULT_wxUSE_PROFILE=no
1337 DEFAULT_wxUSE_DEBUG_FLAG=yes
1338 DEFAULT_wxUSE_DEBUG_INFO=yes
1339 DEFAULT_wxUSE_DEBUG_GDB=yes
1340 DEFAULT_wxUSE_MEM_TRACING=no
1341 DEFAULT_wxUSE_DMALLOC=no
1342 DEFAULT_wxUSE_APPLE_IEEE=no
1343
1344 DEFAULT_wxUSE_LOG=yes
1345
1346 DEFAULT_wxUSE_GUI=yes
1347
1348 DEFAULT_wxUSE_ZLIB=no
1349 DEFAULT_wxUSE_LIBPNG=no
1350 DEFAULT_wxUSE_LIBGIF=no
1351 DEFAULT_wxUSE_LIBJPEG=no
1352 DEFAULT_wxUSE_ODBC=no
1353
1354 DEFAULT_wxUSE_FILE=no
1355 DEFAULT_wxUSE_TEXTFILE=no
1356 DEFAULT_wxUSE_TIMEDATE=no
1357 DEFAULT_wxUSE_INTL=no
1358 DEFAULT_wxUSE_CONFIG=no
1359 DEFAULT_wxUSE_STREAMS=no
1360 DEFAULT_wxUSE_SOCKETS=no
1361 DEFAULT_wxUSE_SERIAL=no
1362 DEFAULT_wxUSE_JOYSTICK=no
1363 DEFAULT_wxUSE_DYNLIB_CLASS=no
1364 DEFAULT_wxUSE_LONGLONG=no
1365
1366 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1367 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1368 DEFAULT_wxUSE_POSTSCRIPT=no
1369
1370 DEFAULT_wxUSE_X_RESOURCES=no
1371 DEFAULT_wxUSE_CLIPBOARD=no
1372 DEFAULT_wxUSE_TOOLTIPS=no
1373 DEFAULT_wxUSE_DRAG_AND_DROP=no
1374 DEFAULT_wxUSE_SPLINES=no
1375
1376 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1377 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1378 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1379
1380 DEFAULT_wxUSE_PROLOGIO=no
1381 DEFAULT_wxUSE_RESOURCES=no
1382 DEFAULT_wxUSE_CONSTRAINTS=no
1383 DEFAULT_wxUSE_IPC=no
1384 DEFAULT_wxUSE_HELP=no
1385 DEFAULT_wxUSE_WXTREE=no
1386 DEFAULT_wxUSE_METAFILE=no
1387
1388 DEFAULT_wxUSE_COMMONDLGS=no
1389 DEFAULT_wxUSE_MINIFRAME=no
1390 DEFAULT_wxUSE_VALIDATORS=yes
1391
1392 DEFAULT_wxUSE_ACCEL=no
1393 DEFAULT_wxUSE_CARET=no
1394 DEFAULT_wxUSE_BMPBUTTON=no
1395 DEFAULT_wxUSE_CHECKBOX=no
1396 DEFAULT_wxUSE_CHECKLST=no
1397 DEFAULT_wxUSE_COMBOBOX=no
1398 DEFAULT_wxUSE_GAUGE=no
1399 DEFAULT_wxUSE_GRID=no
1400 DEFAULT_wxUSE_IMAGLIST=no
1401 DEFAULT_wxUSE_LISTBOX=no
1402 DEFAULT_wxUSE_LISTCTRL=no
1403 DEFAULT_wxUSE_NOTEBOOK=no
1404 DEFAULT_wxUSE_RADIOBOX=no
1405 DEFAULT_wxUSE_RADIOBTN=no
1406 DEFAULT_wxUSE_SASHWINDOW=no
1407 DEFAULT_wxUSE_SCROLLBAR=no
1408 DEFAULT_wxUSE_SLIDER=no
1409 DEFAULT_wxUSE_SPINBTN=no
1410 DEFAULT_wxUSE_SPLITTER=no
1411 DEFAULT_wxUSE_STATBMP=no
1412 DEFAULT_wxUSE_STATBOX=no
1413 DEFAULT_wxUSE_STATLINE=no
1414 DEFAULT_wxUSE_STATUSBAR=yes
1415 DEFAULT_wxUSE_TABDIALOG=no
1416 DEFAULT_wxUSE_TOOLBAR=no
1417 DEFAULT_wxUSE_TREECTRL=no
1418
1419 DEFAULT_wxUSE_UNICODE=no
1420 DEFAULT_wxUSE_WCSRTOMBS=no
1421 else
1422 DEFAULT_wxUSE_THREADS=yes
1423
1424 DEFAULT_wxUSE_OPTIMISE=yes
1425 DEFAULT_wxUSE_PROFILE=no
1426 DEFAULT_wxUSE_DEBUG_FLAG=no
1427 DEFAULT_wxUSE_DEBUG_INFO=no
1428 DEFAULT_wxUSE_DEBUG_GDB=no
1429 DEFAULT_wxUSE_MEM_TRACING=no
1430 DEFAULT_wxUSE_DMALLOC=no
1431 DEFAULT_wxUSE_APPLE_IEEE=yes
1432
1433 DEFAULT_wxUSE_LOG=yes
1434
1435 DEFAULT_wxUSE_GUI=yes
1436
1437 DEFAULT_wxUSE_ZLIB=yes
1438 DEFAULT_wxUSE_LIBPNG=yes
1439 DEFAULT_wxUSE_LIBGIF=yes
1440 DEFAULT_wxUSE_LIBJPEG=yes
1441 DEFAULT_wxUSE_ODBC=no
1442
1443 DEFAULT_wxUSE_FILE=yes
1444 DEFAULT_wxUSE_TEXTFILE=yes
1445 DEFAULT_wxUSE_TIMEDATE=yes
1446 DEFAULT_wxUSE_INTL=yes
1447 DEFAULT_wxUSE_CONFIG=yes
1448 DEFAULT_wxUSE_STREAMS=yes
1449 DEFAULT_wxUSE_SOCKETS=yes
1450 DEFAULT_wxUSE_SERIAL=yes
1451 DEFAULT_wxUSE_JOYSTICK=yes
1452 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1453 DEFAULT_wxUSE_LONGLONG=no
1454
1455 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1456 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1457 DEFAULT_wxUSE_POSTSCRIPT=yes
1458
1459 DEFAULT_wxUSE_X_RESOURCES=no
1460 DEFAULT_wxUSE_CLIPBOARD=yes
1461 DEFAULT_wxUSE_TOOLTIPS=yes
1462 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1463 DEFAULT_wxUSE_SPLINES=yes
1464
1465 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1466 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1467 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1468
1469 DEFAULT_wxUSE_PROLOGIO=yes
1470 DEFAULT_wxUSE_RESOURCES=yes
1471 DEFAULT_wxUSE_CONSTRAINTS=yes
1472 DEFAULT_wxUSE_IPC=yes
1473 DEFAULT_wxUSE_HELP=yes
1474 DEFAULT_wxUSE_WXTREE=yes
1475 DEFAULT_wxUSE_METAFILE=yes
1476
1477 DEFAULT_wxUSE_COMMONDLGS=yes
1478 DEFAULT_wxUSE_MINIFRAME=yes
1479 DEFAULT_wxUSE_VALIDATORS=yes
1480
1481 DEFAULT_wxUSE_ACCEL=yes
1482 DEFAULT_wxUSE_CARET=yes
1483 DEFAULT_wxUSE_BMPBUTTON=yes
1484 DEFAULT_wxUSE_CHECKBOX=yes
1485 DEFAULT_wxUSE_CHECKLST=yes
1486 DEFAULT_wxUSE_COMBOBOX=yes
1487 DEFAULT_wxUSE_GAUGE=yes
1488 DEFAULT_wxUSE_GRID=yes
1489 DEFAULT_wxUSE_IMAGLIST=yes
1490 DEFAULT_wxUSE_LISTBOX=yes
1491 DEFAULT_wxUSE_LISTCTRL=yes
1492 DEFAULT_wxUSE_NOTEBOOK=yes
1493 DEFAULT_wxUSE_RADIOBOX=yes
1494 DEFAULT_wxUSE_RADIOBTN=yes
1495 DEFAULT_wxUSE_SASHWINDOW=yes
1496 DEFAULT_wxUSE_SCROLLBAR=yes
1497 DEFAULT_wxUSE_SLIDER=yes
1498 DEFAULT_wxUSE_SPINBTN=yes
1499 DEFAULT_wxUSE_SPLITTER=yes
1500 DEFAULT_wxUSE_STATBMP=yes
1501 DEFAULT_wxUSE_STATBOX=yes
1502 DEFAULT_wxUSE_STATLINE=yes
1503 DEFAULT_wxUSE_STATUSBAR=yes
1504 DEFAULT_wxUSE_TABDIALOG=no
1505 DEFAULT_wxUSE_TOOLBAR=yes
1506 DEFAULT_wxUSE_TREECTRL=yes
1507
1508 DEFAULT_wxUSE_UNICODE=no
1509 DEFAULT_wxUSE_WCSRTOMBS=no
1510 fi
1511
1512
1513
1514 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
1515 if test "${with_gtk_prefix+set}" = set; then
1516 withval="$with_gtk_prefix"
1517 gtk_config_prefix="$withval"
1518 else
1519 gtk_config_prefix=""
1520 fi
1521
1522 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
1523 if test "${with_gtk_exec_prefix+set}" = set; then
1524 withval="$with_gtk_exec_prefix"
1525 gtk_config_exec_prefix="$withval"
1526 else
1527 gtk_config_exec_prefix=""
1528 fi
1529
1530 # Check whether --with-gtk or --without-gtk was given.
1531 if test "${with_gtk+set}" = set; then
1532 withval="$with_gtk"
1533 wxUSE_GTK="$withval"
1534 else
1535 wxUSE_GTK=0
1536 fi
1537
1538 # Check whether --with-motif or --without-motif was given.
1539 if test "${with_motif+set}" = set; then
1540 withval="$with_motif"
1541 wxUSE_MOTIF="$withval"
1542 else
1543 wxUSE_MOTIF=0
1544 fi
1545
1546 # Check whether --with-cygwin or --without-cygwin was given.
1547 if test "${with_cygwin+set}" = set; then
1548 withval="$with_cygwin"
1549 wxUSE_CYGWIN="$withval"
1550 else
1551 wxUSE_CYGWIN=0
1552 fi
1553
1554 # Check whether --with-mingw or --without-mingw was given.
1555 if test "${with_mingw+set}" = set; then
1556 withval="$with_mingw"
1557 wxUSE_MINGW="$withval"
1558 else
1559 wxUSE_MINGW=0
1560 fi
1561
1562
1563 # Check whether --with-dmalloc or --without-dmalloc was given.
1564 if test "${with_dmalloc+set}" = set; then
1565 withval="$with_dmalloc"
1566 wxUSE_DMALLOC="$withval"
1567 else
1568 wxUSE_DMALLOC=$DEFAULT_wxUSE_DMALLOC
1569 fi
1570
1571 # Check whether --with-zlib or --without-zlib was given.
1572 if test "${with_zlib+set}" = set; then
1573 withval="$with_zlib"
1574 wxUSE_ZLIB="$withval"
1575 else
1576 wxUSE_ZLIB=$DEFAULT_wxUSE_ZLIB
1577 fi
1578
1579 # Check whether --with-libpng or --without-libpng was given.
1580 if test "${with_libpng+set}" = set; then
1581 withval="$with_libpng"
1582 wxUSE_LIBPNG="$withval"
1583 else
1584 wxUSE_LIBPNG=$DEFAULT_wxUSE_LIBPNG
1585 fi
1586
1587 # Check whether --with-libgif or --without-libgif was given.
1588 if test "${with_libgif+set}" = set; then
1589 withval="$with_libgif"
1590 wxUSE_LIBGIF="${withval}"
1591 else
1592 wxUSE_LIBGIF=$DEFAULT_wxUSE_LIBGIF
1593 fi
1594
1595 # Check whether --with-libjpeg or --without-libjpeg was given.
1596 if test "${with_libjpeg+set}" = set; then
1597 withval="$with_libjpeg"
1598 wxUSE_LIBJPEG="${withval}"
1599 else
1600 wxUSE_LIBJPEG=$DEFAULT_wxUSE_LIBJPEG
1601 fi
1602
1603 # Check whether --with-opengl or --without-opengl was given.
1604 if test "${with_opengl+set}" = set; then
1605 withval="$with_opengl"
1606 wxUSE_OPENGL="$withval"
1607 else
1608 wxUSE_OPENGL=$DEFAULT_wxUSE_OPENGL
1609 fi
1610
1611 # Check whether --with-odbc or --without-odbc was given.
1612 if test "${with_odbc+set}" = set; then
1613 withval="$with_odbc"
1614 wxUSE_ODBC="$withval"
1615 else
1616 wxUSE_ODBC=$DEFAULT_wxUSE_ODBC
1617 fi
1618
1619
1620
1621
1622 # Check whether --enable-optimise or --disable-optimise was given.
1623 if test "${enable_optimise+set}" = set; then
1624 enableval="$enable_optimise"
1625 wxUSE_OPTIMISE="$enableval"
1626 else
1627 wxUSE_OPTIMISE=$DEFAULT_wxUSE_OPTIMISE
1628 fi
1629
1630 # Check whether --enable-optimize or --disable-optimize was given.
1631 if test "${enable_optimize+set}" = set; then
1632 enableval="$enable_optimize"
1633 wxUSE_OPTIMISE="$enableval"
1634 else
1635 wxUSE_OPTIMISE=$DEFAULT_wxUSE_OPTIMISE
1636 fi
1637
1638 # Check whether --enable-debug_flag or --disable-debug_flag was given.
1639 if test "${enable_debug_flag+set}" = set; then
1640 enableval="$enable_debug_flag"
1641 wxUSE_DEBUG_FLAG="$enableval"
1642 else
1643 wxUSE_DEBUG_FLAG=$DEFAULT_wxUSE_DEBUG_FLAG
1644 fi
1645
1646 # Check whether --enable-debug_info or --disable-debug_info was given.
1647 if test "${enable_debug_info+set}" = set; then
1648 enableval="$enable_debug_info"
1649 wxUSE_DEBUG_INFO="$enableval"
1650 else
1651 wxUSE_DEBUG_INFO=$DEFAULT_wxUSE_DEBUG_INFO
1652 fi
1653
1654 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
1655 if test "${enable_debug_gdb+set}" = set; then
1656 enableval="$enable_debug_gdb"
1657 wxUSE_DEBUG_GDB="$enableval"
1658 else
1659 wxUSE_DEBUG_GDB=$DEFAULT_wxUSE_DEBUG_GDB
1660 fi
1661
1662 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
1663 if test "${enable_debug_cntxt+set}" = set; then
1664 enableval="$enable_debug_cntxt"
1665 cat >> confdefs.h <<\EOF
1666 #define wxUSE_DEBUG_CONTEXT 1
1667 EOF
1668
1669 fi
1670
1671 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
1672 if test "${enable_mem_tracing+set}" = set; then
1673 enableval="$enable_mem_tracing"
1674 wxUSE_MEM_TRACING="$enableval"
1675 else
1676 wxUSE_MEM_TRACING=$DEFAULT_wxUSE_MEM_TRACING
1677 fi
1678
1679 # Check whether --enable-profile or --disable-profile was given.
1680 if test "${enable_profile+set}" = set; then
1681 enableval="$enable_profile"
1682 wxUSE_PROFILE="$enableval"
1683 else
1684 wxUSE_PROFILE=$DEFAULT_wxUSE_PROFILE
1685 fi
1686
1687
1688
1689 # Check whether --enable-gui or --disable-gui was given.
1690 if test "${enable_gui+set}" = set; then
1691 enableval="$enable_gui"
1692 wxUSE_GUI="$enableval"
1693 else
1694 wxUSE_GUI=$DEFAULT_wxUSE_GUI
1695 fi
1696
1697
1698
1699 # Check whether --enable-intl or --disable-intl was given.
1700 if test "${enable_intl+set}" = set; then
1701 enableval="$enable_intl"
1702 wxUSE_INTL="$enableval"
1703 else
1704 wxUSE_INTL=$DEFAULT_wxUSE_INTL
1705 fi
1706
1707 # Check whether --enable-config or --disable-config was given.
1708 if test "${enable_config+set}" = set; then
1709 enableval="$enable_config"
1710 wxUSE_CONFIG="$enableval"
1711 else
1712 wxUSE_CONFIG=$DEFAULT_wxUSE_CONFIG
1713 fi
1714
1715 # Check whether --enable-sockets or --disable-sockets was given.
1716 if test "${enable_sockets+set}" = set; then
1717 enableval="$enable_sockets"
1718 wxUSE_SOCKETS="$enableval"
1719 else
1720 wxUSE_SOCKETS=$DEFAULT_wxUSE_SOCKETS
1721 fi
1722
1723 # Check whether --enable-ipc or --disable-ipc was given.
1724 if test "${enable_ipc+set}" = set; then
1725 enableval="$enable_ipc"
1726 wxUSE_IPC="$enableval"
1727 else
1728 wxUSE_IPC=$DEFAULT_wxUSE_IPC
1729 fi
1730
1731 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
1732 if test "${enable_apple_ieee+set}" = set; then
1733 enableval="$enable_apple_ieee"
1734 wxUSE_APPLE_IEEE="$enableval"
1735 else
1736 wxUSE_APPLE_IEEE=$DEFAULT_wxUSE_APPLE_IEEE
1737 fi
1738
1739 # Check whether --enable-timedate or --disable-timedate was given.
1740 if test "${enable_timedate+set}" = set; then
1741 enableval="$enable_timedate"
1742 wxUSE_TIMEDATE="$enableval"
1743 else
1744 wxUSE_TIMEDATE=$DEFAULT_wxUSE_TIMEDATE
1745 fi
1746
1747 # Check whether --enable-fraction or --disable-fraction was given.
1748 if test "${enable_fraction+set}" = set; then
1749 enableval="$enable_fraction"
1750 wxUSE_FRACTION="$enableval"
1751 else
1752 wxUSE_FRACTION=$DEFAULT_wxUSE_FRACTION
1753 fi
1754
1755 # Check whether --enable-dynlib or --disable-dynlib was given.
1756 if test "${enable_dynlib+set}" = set; then
1757 enableval="$enable_dynlib"
1758 wxUSE_DYNLIB_CLASS="$enableval"
1759 else
1760 wxUSE_DYNLIB_CLASS=$DEFAULT_wxUSE_DYNLIB_CLASS
1761 fi
1762
1763 # Check whether --enable-longlong or --disable-longlong was given.
1764 if test "${enable_longlong+set}" = set; then
1765 enableval="$enable_longlong"
1766 wxUSE_LONGLONG="${enableval}"
1767 else
1768 wxUSE_LONGLONG=$DEFAULT_wxUSE_LONGLONG
1769 fi
1770
1771 # Check whether --enable-log or --disable-log was given.
1772 if test "${enable_log+set}" = set; then
1773 enableval="$enable_log"
1774 wxUSE_LOG="$enableval"
1775 else
1776 wxUSE_LOG=$DEFAULT_wxUSE_LOG
1777 fi
1778
1779 # Check whether --enable-streams or --disable-streams was given.
1780 if test "${enable_streams+set}" = set; then
1781 enableval="$enable_streams"
1782 wxUSE_STREAMS="$enableval"
1783 else
1784 wxUSE_STREAMS=$DEFAULT_wxUSE_STREAMS
1785 fi
1786
1787 # Check whether --enable-file or --disable-file was given.
1788 if test "${enable_file+set}" = set; then
1789 enableval="$enable_file"
1790 wxUSE_FILE="$enableval"
1791 else
1792 wxUSE_FILE=$DEFAULT_wxUSE_FILE
1793 fi
1794
1795 # Check whether --enable-textfile or --disable-textfile was given.
1796 if test "${enable_textfile+set}" = set; then
1797 enableval="$enable_textfile"
1798 wxUSE_TEXTFILE="$enableval"
1799 else
1800 wxUSE_TEXTFILE=$DEFAULT_wxUSE_TEXTFILE
1801 fi
1802
1803 # Check whether --enable-unicode or --disable-unicode was given.
1804 if test "${enable_unicode+set}" = set; then
1805 enableval="$enable_unicode"
1806 wxUSE_UNICODE="$enableval"
1807 else
1808 wxUSE_UNICODE=$DEFAULT_wxUSE_UNICODE
1809 fi
1810
1811 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
1812 if test "${enable_wcsrtombs+set}" = set; then
1813 enableval="$enable_wcsrtombs"
1814 wxUSE_WCSRTOMBS="$enableval"
1815 else
1816 wxUSE_WCSRTOMBS=$DEFAULT_wxUSE_WCSRTOMBS
1817 fi
1818
1819 # Check whether --enable-joystick or --disable-joystick was given.
1820 if test "${enable_joystick+set}" = set; then
1821 enableval="$enable_joystick"
1822 wxUSE_JOYSTICK="$enableval"
1823 else
1824 wxUSE_JOYSTICK=$DEFAULT_wxUSE_JOYSTICK
1825 fi
1826
1827
1828
1829 # Check whether --enable-threads or --disable-threads was given.
1830 if test "${enable_threads+set}" = set; then
1831 enableval="$enable_threads"
1832 wxUSE_THREADS="${enableval}"
1833 else
1834 wxUSE_THREADS=$DEFAULT_wxUSE_THREADS
1835 fi
1836
1837 # Check whether --enable-serial or --disable-serial was given.
1838 if test "${enable_serial+set}" = set; then
1839 enableval="$enable_serial"
1840 wxUSE_SERIAL="${enableval}"
1841 else
1842 wxUSE_SERIAL=$DEFAULT_wxUSE_SERIAL
1843 fi
1844
1845
1846
1847 # Check whether --enable-docview or --disable-docview was given.
1848 if test "${enable_docview+set}" = set; then
1849 enableval="$enable_docview"
1850 wxUSE_DOC_VIEW_ARCHITECTURE="$enableval"
1851 else
1852 wxUSE_DOC_VIEW_ARCHITECTURE=$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
1853 fi
1854
1855 # Check whether --enable-help or --disable-help was given.
1856 if test "${enable_help+set}" = set; then
1857 enableval="$enable_help"
1858 wxUSE_HELP="$enableval"
1859 else
1860 wxUSE_HELP=$DEFAULT_wxUSE_HELP
1861 fi
1862
1863 # Check whether --enable-constraints or --disable-constraints was given.
1864 if test "${enable_constraints+set}" = set; then
1865 enableval="$enable_constraints"
1866 wxUSE_CONSTRAINTS="$enableval"
1867 else
1868 wxUSE_CONSTRAINTS=$DEFAULT_wxUSE_CONSTRAINTS
1869 fi
1870
1871 # Check whether --enable-printarch or --disable-printarch was given.
1872 if test "${enable_printarch+set}" = set; then
1873 enableval="$enable_printarch"
1874 wxUSE_PRINTING_ARCHITECTURE="${enableval}"
1875 else
1876 wxUSE_PRINTING_ARCHITECTURE=$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
1877 fi
1878
1879 # Check whether --enable-mdi or --disable-mdi was given.
1880 if test "${enable_mdi+set}" = set; then
1881 enableval="$enable_mdi"
1882 wxUSE_MDI_ARCHITECTURE="${enableval}"
1883 else
1884 wxUSE_MDI_ARCHITECTURE=$DEFAULT_wxUSE_MDI_ARCHITECTURE
1885 fi
1886
1887
1888 # Check whether --enable-postscript or --disable-postscript was given.
1889 if test "${enable_postscript+set}" = set; then
1890 enableval="$enable_postscript"
1891 wxUSE_POSTSCRIPT="$enableval"
1892 else
1893 wxUSE_POSTSCRIPT=$DEFAULT_wxUSE_POSTSCRIPT
1894 fi
1895
1896
1897
1898 # Check whether --enable-prologio or --disable-prologio was given.
1899 if test "${enable_prologio+set}" = set; then
1900 enableval="$enable_prologio"
1901 wxUSE_PROLOGIO="${enableval}"
1902 else
1903 wxUSE_PROLOGIO=$DEFAULT_wxUSE_PROLOGIO
1904 fi
1905
1906 # Check whether --enable-resources or --disable-resources was given.
1907 if test "${enable_resources+set}" = set; then
1908 enableval="$enable_resources"
1909 wxUSE_RESOURCES="${enableval}"
1910 else
1911 wxUSE_RESOURCES=$DEFAULT_wxUSE_RESOURCES
1912 fi
1913
1914
1915 # Check whether --enable-xresources or --disable-xresources was given.
1916 if test "${enable_xresources+set}" = set; then
1917 enableval="$enable_xresources"
1918 wxUSE_X_RESOURCES="${enableval}"
1919 else
1920 wxUSE_X_RESOURCES=$DEFAULT_wxUSE_X_RESOURCES
1921 fi
1922
1923 # Check whether --enable-clipboard or --disable-clipboard was given.
1924 if test "${enable_clipboard+set}" = set; then
1925 enableval="$enable_clipboard"
1926 wxUSE_CLIPBOARD="${enableval}"
1927 else
1928 wxUSE_CLIPBOARD=$DEFAULT_wxUSE_CLIPBOARD
1929 fi
1930
1931 # Check whether --enable-dnd or --disable-dnd was given.
1932 if test "${enable_dnd+set}" = set; then
1933 enableval="$enable_dnd"
1934 wxUSE_DRAG_AND_DROP="${enableval}"
1935 else
1936 wxUSE_DRAG_AND_DROP=$DEFAULT_wxUSE_DRAG_AND_DROP
1937 fi
1938
1939
1940 # Check whether --enable-wxtree or --disable-wxtree was given.
1941 if test "${enable_wxtree+set}" = set; then
1942 enableval="$enable_wxtree"
1943 wxUSE_WXTREE="${enableval}"
1944 else
1945 wxUSE_WXTREE=$DEFAULT_wxUSE_WXTREE
1946 fi
1947
1948
1949
1950 # Check whether --enable-controls or --disable-controls was given.
1951 if test "${enable_controls+set}" = set; then
1952 enableval="$enable_controls"
1953 wxUSE_CONTROLS="${enableval}"
1954 fi
1955
1956
1957 if test "$wxUSE_CONTROLS" = "yes"; then
1958 DEFAULT_wxUSE_ACCEL=yes
1959 DEFAULT_wxUSE_CARET=yes
1960 DEFAULT_wxUSE_COMBOBOX=yes
1961 DEFAULT_wxUSE_BMPBUTTON=yes
1962 DEFAULT_wxUSE_CHECKBOX=yes
1963 DEFAULT_wxUSE_CHECKLISTBOX=yes
1964 DEFAULT_wxUSE_GAUGE=yes
1965 DEFAULT_wxUSE_GRID=yes
1966 DEFAULT_wxUSE_IMAGLIST=yes
1967 DEFAULT_wxUSE_LISTBOX=yes
1968 DEFAULT_wxUSE_LISTCTRL=yes
1969 DEFAULT_wxUSE_NOTEBOOK=yes
1970 DEFAULT_wxUSE_RADIOBOX=yes
1971 DEFAULT_wxUSE_RADIOBTN=yes
1972 DEFAULT_wxUSE_SASH=yes
1973 DEFAULT_wxUSE_SCROLLBAR=yes
1974 DEFAULT_wxUSE_SLIDER=yes
1975 DEFAULT_wxUSE_SPINBTN=yes
1976 DEFAULT_wxUSE_SPLITTER=yes
1977 DEFAULT_wxUSE_STATBMP=yes
1978 DEFAULT_wxUSE_STATBOX=yes
1979 DEFAULT_wxUSE_STATLINE=yes
1980 DEFAULT_wxUSE_STATUSBAR=yes
1981 DEFAULT_wxUSE_TAB_DIALOG=yes
1982 DEFAULT_wxUSE_TOOLBAR=yes
1983 DEFAULT_wxUSE_TOOLTIPS=yes
1984 DEFAULT_wxUSE_TREECTRL=yes
1985 elif test "$wxUSE_CONTROLS" = "no"; then
1986 DEFAULT_wxUSE_ACCEL=no
1987 DEFAULT_wxUSE_CARET=no
1988 DEFAULT_wxUSE_COMBOBOX=no
1989 DEFAULT_wxUSE_BMPBUTTON=no
1990 DEFAULT_wxUSE_CHECKBOX=no
1991 DEFAULT_wxUSE_CHECKLISTBOX=no
1992 DEFAULT_wxUSE_GAUGE=no
1993 DEFAULT_wxUSE_GRID=no
1994 DEFAULT_wxUSE_IMAGLIST=no
1995 DEFAULT_wxUSE_LISTBOX=no
1996 DEFAULT_wxUSE_LISTCTRL=no
1997 DEFAULT_wxUSE_NOTEBOOK=no
1998 DEFAULT_wxUSE_RADIOBOX=no
1999 DEFAULT_wxUSE_RADIOBTN=no
2000 DEFAULT_wxUSE_SASH=no
2001 DEFAULT_wxUSE_SCROLLBAR=no
2002 DEFAULT_wxUSE_SLIDER=no
2003 DEFAULT_wxUSE_SPINBTN=no
2004 DEFAULT_wxUSE_SPLITTER=no
2005 DEFAULT_wxUSE_STATBMP=no
2006 DEFAULT_wxUSE_STATBOX=no
2007 DEFAULT_wxUSE_STATLINE=no
2008 DEFAULT_wxUSE_STATUSBAR=no
2009 DEFAULT_wxUSE_TAB_DIALOG=no
2010 DEFAULT_wxUSE_TOOLBAR=no
2011 DEFAULT_wxUSE_TOOLTIPS=no
2012 DEFAULT_wxUSE_TREECTRL=no
2013 fi
2014
2015 # Check whether --enable-accel or --disable-accel was given.
2016 if test "${enable_accel+set}" = set; then
2017 enableval="$enable_accel"
2018 wxUSE_ACCEL="${enableval}"
2019 else
2020 wxUSE_ACCEL=$DEFAULT_wxUSE_ACCEL
2021 fi
2022
2023 # Check whether --enable-caret or --disable-caret was given.
2024 if test "${enable_caret+set}" = set; then
2025 enableval="$enable_caret"
2026 wxUSE_CARET="${enableval}"
2027 else
2028 wxUSE_CARET=$DEFAULT_wxUSE_CARET
2029 fi
2030
2031 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
2032 if test "${enable_bmpbutton+set}" = set; then
2033 enableval="$enable_bmpbutton"
2034 wxUSE_BMPBUTTON="${enableval}"
2035 else
2036 wxUSE_BMPBUTTON=$DEFAULT_wxUSE_BMPBUTTON
2037 fi
2038
2039 # Check whether --enable-checkbox or --disable-checkbox was given.
2040 if test "${enable_checkbox+set}" = set; then
2041 enableval="$enable_checkbox"
2042 wxUSE_CHECKBOX="${enableval}"
2043 else
2044 wxUSE_CHECKBOX=$DEFAULT_wxUSE_CHECKBOX
2045 fi
2046
2047 # Check whether --enable-checklst or --disable-checklst was given.
2048 if test "${enable_checklst+set}" = set; then
2049 enableval="$enable_checklst"
2050 wxUSE_CHECKLST="${enableval}"
2051 else
2052 wxUSE_CHECKLST=$DEFAULT_wxUSE_CHECKLST
2053 fi
2054
2055 # Check whether --enable-combobox or --disable-combobox was given.
2056 if test "${enable_combobox+set}" = set; then
2057 enableval="$enable_combobox"
2058 wxUSE_COMBOBOX="${enableval}"
2059 else
2060 wxUSE_COMBOBOX=$DEFAULT_wxUSE_COMBOBOX
2061 fi
2062
2063 # Check whether --enable-gauge or --disable-gauge was given.
2064 if test "${enable_gauge+set}" = set; then
2065 enableval="$enable_gauge"
2066 wxUSE_GAUGE="${enableval}"
2067 else
2068 wxUSE_GAUGE=$DEFAULT_wxUSE_GAUGE
2069 fi
2070
2071 # Check whether --enable-grid or --disable-grid was given.
2072 if test "${enable_grid+set}" = set; then
2073 enableval="$enable_grid"
2074 wxUSE_GRID="${enableval}"
2075 else
2076 wxUSE_GRID=$DEFAULT_wxUSE_GRID
2077 fi
2078
2079 # Check whether --enable-imaglist or --disable-imaglist was given.
2080 if test "${enable_imaglist+set}" = set; then
2081 enableval="$enable_imaglist"
2082 wxUSE_IMAGLIST="${enableval}"
2083 else
2084 wxUSE_IMAGLIST=$DEFAULT_wxUSE_IMAGLIST
2085 fi
2086
2087 # Check whether --enable-listbox or --disable-listbox was given.
2088 if test "${enable_listbox+set}" = set; then
2089 enableval="$enable_listbox"
2090 wxUSE_LISTBOX="${enableval}"
2091 else
2092 wxUSE_LISTBOX=$DEFAULT_wxUSE_LISTBOX
2093 fi
2094
2095 # Check whether --enable-listctrl or --disable-listctrl was given.
2096 if test "${enable_listctrl+set}" = set; then
2097 enableval="$enable_listctrl"
2098 wxUSE_LISTCTRL="${enableval}"
2099 else
2100 wxUSE_LISTCTRL=$DEFAULT_wxUSE_LISTCTRL
2101 fi
2102
2103 # Check whether --enable-notebook or --disable-notebook was given.
2104 if test "${enable_notebook+set}" = set; then
2105 enableval="$enable_notebook"
2106 wxUSE_NOTEBOOK="${enableval}"
2107 else
2108 wxUSE_NOTEBOOK=$DEFAULT_wxUSE_NOTEBOOK
2109 fi
2110
2111 # Check whether --enable-radiobox or --disable-radiobox was given.
2112 if test "${enable_radiobox+set}" = set; then
2113 enableval="$enable_radiobox"
2114 wxUSE_RADIOBOX="${enableval}"
2115 else
2116 wxUSE_RADIOBOX=$DEFAULT_wxUSE_RADIOBOX
2117 fi
2118
2119 # Check whether --enable-radiobtn or --disable-radiobtn was given.
2120 if test "${enable_radiobtn+set}" = set; then
2121 enableval="$enable_radiobtn"
2122 wxUSE_RADIOBTN="${enableval}"
2123 else
2124 wxUSE_RADIOBTN=$DEFAULT_wxUSE_RADIOBTN
2125 fi
2126
2127 # Check whether --enable-sash or --disable-sash was given.
2128 if test "${enable_sash+set}" = set; then
2129 enableval="$enable_sash"
2130 wxUSE_SASH="${enableval}"
2131 else
2132 wxUSE_SASH=$DEFAULT_wxUSE_SASH
2133 fi
2134
2135 # Check whether --enable-scrollbar or --disable-scrollbar was given.
2136 if test "${enable_scrollbar+set}" = set; then
2137 enableval="$enable_scrollbar"
2138 wxUSE_SCROLLBAR="${enableval}"
2139 else
2140 wxUSE_SCROLLBAR=$DEFAULT_wxUSE_SCROLLBAR
2141 fi
2142
2143 # Check whether --enable-slider or --disable-slider was given.
2144 if test "${enable_slider+set}" = set; then
2145 enableval="$enable_slider"
2146 wxUSE_SLIDER="${enableval}"
2147 else
2148 wxUSE_SLIDER=$DEFAULT_wxUSE_SLIDER
2149 fi
2150
2151 # Check whether --enable-spinbtn or --disable-spinbtn was given.
2152 if test "${enable_spinbtn+set}" = set; then
2153 enableval="$enable_spinbtn"
2154 wxUSE_SPINBTN="${enableval}"
2155 else
2156 wxUSE_SPINBTN=$DEFAULT_wxUSE_SPINBTN
2157 fi
2158
2159 # Check whether --enable-splitter or --disable-splitter was given.
2160 if test "${enable_splitter+set}" = set; then
2161 enableval="$enable_splitter"
2162 wxUSE_SPLITTER="${enableval}"
2163 else
2164 wxUSE_SPLITTER=$DEFAULT_wxUSE_SPLITTER
2165 fi
2166
2167 # Check whether --enable-statbmp or --disable-statbmp was given.
2168 if test "${enable_statbmp+set}" = set; then
2169 enableval="$enable_statbmp"
2170 wxUSE_STATBMP="${enableval}"
2171 else
2172 wxUSE_STATBMP=$DEFAULT_wxUSE_STATBMP
2173 fi
2174
2175 # Check whether --enable-statbox or --disable-statbox was given.
2176 if test "${enable_statbox+set}" = set; then
2177 enableval="$enable_statbox"
2178 wxUSE_STATBOX="${enableval}"
2179 else
2180 wxUSE_STATBOX=$DEFAULT_wxUSE_STATBOX
2181 fi
2182
2183 # Check whether --enable-statline or --disable-statline was given.
2184 if test "${enable_statline+set}" = set; then
2185 enableval="$enable_statline"
2186 wxUSE_STATLINE="${enableval}"
2187 else
2188 wxUSE_STATLINE=$DEFAULT_wxUSE_STATLINE
2189 fi
2190
2191 # Check whether --enable-statusbar or --disable-statusbar was given.
2192 if test "${enable_statusbar+set}" = set; then
2193 enableval="$enable_statusbar"
2194 wxUSE_STATUSBAR="${enableval}"
2195 else
2196 wxUSE_STATUSBAR=$DEFAULT_wxUSE_STATUSBAR
2197 fi
2198
2199 # Check whether --enable-tabdialog or --disable-tabdialog was given.
2200 if test "${enable_tabdialog+set}" = set; then
2201 enableval="$enable_tabdialog"
2202 wxUSE_TABDIALOG="${enableval}"
2203 else
2204 wxUSE_TABDIALOG=$DEFAULT_wxUSE_TABDIALOG
2205 fi
2206
2207 # Check whether --enable-toolbar or --disable-toolbar was given.
2208 if test "${enable_toolbar+set}" = set; then
2209 enableval="$enable_toolbar"
2210 wxUSE_TOOLBAR="${enableval}"
2211 else
2212 wxUSE_TOOLBAR=$DEFAULT_wxUSE_TOOLBAR
2213 fi
2214
2215 # Check whether --enable-treectrl or --disable-treectrl was given.
2216 if test "${enable_treectrl+set}" = set; then
2217 enableval="$enable_treectrl"
2218 wxUSE_TREECTRL="${enableval}"
2219 else
2220 wxUSE_TREECTRL=$DEFAULT_wxUSE_TREECTRL
2221 fi
2222
2223
2224
2225 # Check whether --enable-commondlg or --disable-commondlg was given.
2226 if test "${enable_commondlg+set}" = set; then
2227 enableval="$enable_commondlg"
2228 wxUSE_COMMONDLGS="${enableval}"
2229 else
2230 wxUSE_COMMONDLGS=$DEFAULT_wxUSE_COMMONDLGS
2231 fi
2232
2233 # Check whether --enable-miniframe or --disable-miniframe was given.
2234 if test "${enable_miniframe+set}" = set; then
2235 enableval="$enable_miniframe"
2236 wxUSE_MINIFRAME="${enableval}"
2237 else
2238 wxUSE_MINIFRAME=$DEFAULT_wxUSE_MINIFRAME
2239 fi
2240
2241 # Check whether --enable-tooltips or --disable-tooltips was given.
2242 if test "${enable_tooltips+set}" = set; then
2243 enableval="$enable_tooltips"
2244 wxUSE_TOOLTIPS="${enableval}"
2245 else
2246 wxUSE_TOOLTIPS=$DEFAULT_wxUSE_TOOLTIPS
2247 fi
2248
2249 # Check whether --enable-splines or --disable-splines was given.
2250 if test "${enable_splines+set}" = set; then
2251 enableval="$enable_splines"
2252 wxUSE_SPLINES="${enableval}"
2253 else
2254 wxUSE_SPLINES=$DEFAULT_wxUSE_SPLINES
2255 fi
2256
2257 # Check whether --enable-validators or --disable-validators was given.
2258 if test "${enable_validators+set}" = set; then
2259 enableval="$enable_validators"
2260 wxUSE_VALIDATORS="${enableval}"
2261 else
2262 wxUSE_VALIDATORS=$DEFAULT_wxUSE_VALIDATORS
2263 fi
2264
2265
2266 NUM_TOOLKITS="$((${wxUSE_GTK:-0}+${wxUSE_MOTIF:-0}+${wxUSE_MSW:-0}))"
2267
2268 case "$NUM_TOOLKITS" in
2269 1)
2270 ;;
2271 0)
2272 if test "$((${DEFAULT_wxUSE_GTK:-0}+${DEFAULT_wxUSE_MOTIF:-0}+${DEFAULT_wxUSE_MSW:-0}))" = 0; then
2273 { echo "configure: error: Please specify a toolkit" 1>&2; exit 1; }
2274 fi
2275
2276 wxUSE_GTK=$DEFAULT_wxUSE_GTK
2277 wxUSE_MOTIF=$DEFAULT_wxUSE_MOTIF
2278 wxUSE_MSW=$DEFAULT_wxUSE_MSW
2279 ;;
2280 *)
2281 { echo "configure: error: Please specify at most one toolkit" 1>&2; exit 1; }
2282 esac
2283
2284
2285 cat > confcache <<\EOF
2286 # This file is a shell script that caches the results of configure
2287 # tests run on this system so they can be shared between configure
2288 # scripts and configure runs. It is not useful on other systems.
2289 # If it contains results you don't want to keep, you may remove or edit it.
2290 #
2291 # By default, configure uses ./config.cache as the cache file,
2292 # creating it if it does not exist already. You can give configure
2293 # the --cache-file=FILE option to use a different cache file; that is
2294 # what configure does when it calls configure scripts in
2295 # subdirectories, so they share the cache.
2296 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2297 # config.status only pays attention to the cache file if you give it the
2298 # --recheck option to rerun configure.
2299 #
2300 EOF
2301 # The following way of writing the cache mishandles newlines in values,
2302 # but we know of no workaround that is simple, portable, and efficient.
2303 # So, don't put newlines in cache variables' values.
2304 # Ultrix sh set writes to stderr and can't be redirected directly,
2305 # and sets the high bit in the cache file unless we assign to the vars.
2306 (set) 2>&1 |
2307 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2308 *ac_space=\ *)
2309 # `set' does not quote correctly, so add quotes (double-quote substitution
2310 # turns \\\\ into \\, and sed turns \\ into \).
2311 sed -n \
2312 -e "s/'/'\\\\''/g" \
2313 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2314 ;;
2315 *)
2316 # `set' quotes correctly as required by POSIX, so do not add quotes.
2317 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2318 ;;
2319 esac >> confcache
2320 if cmp -s $cache_file confcache; then
2321 :
2322 else
2323 if test -w $cache_file; then
2324 echo "updating cache $cache_file"
2325 cat confcache > $cache_file
2326 else
2327 echo "not updating unwritable cache $cache_file"
2328 fi
2329 fi
2330 rm -f confcache
2331
2332
2333 if eval "test $host != $build"; then
2334 if eval "test $build != NONE"; then
2335 CC="$build-gcc"
2336 CXX="$build-g++"
2337 RANLIB="$build-ranlib"
2338 NM="$build-nm"
2339 fi
2340 fi
2341
2342 # Extract the first word of "gcc", so it can be a program name with args.
2343 set dummy gcc; ac_word=$2
2344 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2345 echo "configure:2346: checking for $ac_word" >&5
2346 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2347 echo $ac_n "(cached) $ac_c" 1>&6
2348 else
2349 if test -n "$CC"; then
2350 ac_cv_prog_CC="$CC" # Let the user override the test.
2351 else
2352 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2353 ac_dummy="$PATH"
2354 for ac_dir in $ac_dummy; do
2355 test -z "$ac_dir" && ac_dir=.
2356 if test -f $ac_dir/$ac_word; then
2357 ac_cv_prog_CC="gcc"
2358 break
2359 fi
2360 done
2361 IFS="$ac_save_ifs"
2362 fi
2363 fi
2364 CC="$ac_cv_prog_CC"
2365 if test -n "$CC"; then
2366 echo "$ac_t""$CC" 1>&6
2367 else
2368 echo "$ac_t""no" 1>&6
2369 fi
2370
2371 if test -z "$CC"; then
2372 # Extract the first word of "cc", so it can be a program name with args.
2373 set dummy cc; ac_word=$2
2374 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2375 echo "configure:2376: checking for $ac_word" >&5
2376 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2377 echo $ac_n "(cached) $ac_c" 1>&6
2378 else
2379 if test -n "$CC"; then
2380 ac_cv_prog_CC="$CC" # Let the user override the test.
2381 else
2382 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2383 ac_prog_rejected=no
2384 ac_dummy="$PATH"
2385 for ac_dir in $ac_dummy; do
2386 test -z "$ac_dir" && ac_dir=.
2387 if test -f $ac_dir/$ac_word; then
2388 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2389 ac_prog_rejected=yes
2390 continue
2391 fi
2392 ac_cv_prog_CC="cc"
2393 break
2394 fi
2395 done
2396 IFS="$ac_save_ifs"
2397 if test $ac_prog_rejected = yes; then
2398 # We found a bogon in the path, so make sure we never use it.
2399 set dummy $ac_cv_prog_CC
2400 shift
2401 if test $# -gt 0; then
2402 # We chose a different compiler from the bogus one.
2403 # However, it has the same basename, so the bogon will be chosen
2404 # first if we set CC to just the basename; use the full file name.
2405 shift
2406 set dummy "$ac_dir/$ac_word" "$@"
2407 shift
2408 ac_cv_prog_CC="$@"
2409 fi
2410 fi
2411 fi
2412 fi
2413 CC="$ac_cv_prog_CC"
2414 if test -n "$CC"; then
2415 echo "$ac_t""$CC" 1>&6
2416 else
2417 echo "$ac_t""no" 1>&6
2418 fi
2419
2420 if test -z "$CC"; then
2421 case "`uname -s`" in
2422 *win32* | *WIN32*)
2423 # Extract the first word of "cl", so it can be a program name with args.
2424 set dummy cl; ac_word=$2
2425 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2426 echo "configure:2427: checking for $ac_word" >&5
2427 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2428 echo $ac_n "(cached) $ac_c" 1>&6
2429 else
2430 if test -n "$CC"; then
2431 ac_cv_prog_CC="$CC" # Let the user override the test.
2432 else
2433 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2434 ac_dummy="$PATH"
2435 for ac_dir in $ac_dummy; do
2436 test -z "$ac_dir" && ac_dir=.
2437 if test -f $ac_dir/$ac_word; then
2438 ac_cv_prog_CC="cl"
2439 break
2440 fi
2441 done
2442 IFS="$ac_save_ifs"
2443 fi
2444 fi
2445 CC="$ac_cv_prog_CC"
2446 if test -n "$CC"; then
2447 echo "$ac_t""$CC" 1>&6
2448 else
2449 echo "$ac_t""no" 1>&6
2450 fi
2451 ;;
2452 esac
2453 fi
2454 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2455 fi
2456
2457 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2458 echo "configure:2459: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2459
2460 ac_ext=c
2461 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2462 ac_cpp='$CPP $CPPFLAGS'
2463 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2464 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2465 cross_compiling=$ac_cv_prog_cc_cross
2466
2467 cat > conftest.$ac_ext << EOF
2468
2469 #line 2470 "configure"
2470 #include "confdefs.h"
2471
2472 main(){return(0);}
2473 EOF
2474 if { (eval echo configure:2475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2475 ac_cv_prog_cc_works=yes
2476 # If we can't run a trivial program, we are probably using a cross compiler.
2477 if (./conftest; exit) 2>/dev/null; then
2478 ac_cv_prog_cc_cross=no
2479 else
2480 ac_cv_prog_cc_cross=yes
2481 fi
2482 else
2483 echo "configure: failed program was:" >&5
2484 cat conftest.$ac_ext >&5
2485 ac_cv_prog_cc_works=no
2486 fi
2487 rm -fr conftest*
2488 ac_ext=c
2489 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2490 ac_cpp='$CPP $CPPFLAGS'
2491 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2492 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2493 cross_compiling=$ac_cv_prog_cc_cross
2494
2495 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2496 if test $ac_cv_prog_cc_works = no; then
2497 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2498 fi
2499 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2500 echo "configure:2501: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2501 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2502 cross_compiling=$ac_cv_prog_cc_cross
2503
2504 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2505 echo "configure:2506: checking whether we are using GNU C" >&5
2506 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2507 echo $ac_n "(cached) $ac_c" 1>&6
2508 else
2509 cat > conftest.c <<EOF
2510 #ifdef __GNUC__
2511 yes;
2512 #endif
2513 EOF
2514 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2515: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2515 ac_cv_prog_gcc=yes
2516 else
2517 ac_cv_prog_gcc=no
2518 fi
2519 fi
2520
2521 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2522
2523 if test $ac_cv_prog_gcc = yes; then
2524 GCC=yes
2525 else
2526 GCC=
2527 fi
2528
2529 ac_test_CFLAGS="${CFLAGS+set}"
2530 ac_save_CFLAGS="$CFLAGS"
2531 CFLAGS=
2532 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2533 echo "configure:2534: checking whether ${CC-cc} accepts -g" >&5
2534 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2535 echo $ac_n "(cached) $ac_c" 1>&6
2536 else
2537 echo 'void f(){}' > conftest.c
2538 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2539 ac_cv_prog_cc_g=yes
2540 else
2541 ac_cv_prog_cc_g=no
2542 fi
2543 rm -f conftest*
2544
2545 fi
2546
2547 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2548 if test "$ac_test_CFLAGS" = set; then
2549 CFLAGS="$ac_save_CFLAGS"
2550 elif test $ac_cv_prog_cc_g = yes; then
2551 if test "$GCC" = yes; then
2552 CFLAGS="-g -O2"
2553 else
2554 CFLAGS="-g"
2555 fi
2556 else
2557 if test "$GCC" = yes; then
2558 CFLAGS="-O2"
2559 else
2560 CFLAGS=
2561 fi
2562 fi
2563
2564
2565 CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
2566
2567 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2568 echo "configure:2569: checking how to run the C preprocessor" >&5
2569 # On Suns, sometimes $CPP names a directory.
2570 if test -n "$CPP" && test -d "$CPP"; then
2571 CPP=
2572 fi
2573 if test -z "$CPP"; then
2574 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2575 echo $ac_n "(cached) $ac_c" 1>&6
2576 else
2577 # This must be in double quotes, not single quotes, because CPP may get
2578 # substituted into the Makefile and "${CC-cc}" will confuse make.
2579 CPP="${CC-cc} -E"
2580 # On the NeXT, cc -E runs the code through the compiler's parser,
2581 # not just through cpp.
2582 cat > conftest.$ac_ext <<EOF
2583 #line 2584 "configure"
2584 #include "confdefs.h"
2585 #include <assert.h>
2586 Syntax Error
2587 EOF
2588 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2589 { (eval echo configure:2590: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2590 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2591 if test -z "$ac_err"; then
2592 :
2593 else
2594 echo "$ac_err" >&5
2595 echo "configure: failed program was:" >&5
2596 cat conftest.$ac_ext >&5
2597 rm -rf conftest*
2598 CPP="${CC-cc} -E -traditional-cpp"
2599 cat > conftest.$ac_ext <<EOF
2600 #line 2601 "configure"
2601 #include "confdefs.h"
2602 #include <assert.h>
2603 Syntax Error
2604 EOF
2605 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2606 { (eval echo configure:2607: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2607 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2608 if test -z "$ac_err"; then
2609 :
2610 else
2611 echo "$ac_err" >&5
2612 echo "configure: failed program was:" >&5
2613 cat conftest.$ac_ext >&5
2614 rm -rf conftest*
2615 CPP="${CC-cc} -nologo -E"
2616 cat > conftest.$ac_ext <<EOF
2617 #line 2618 "configure"
2618 #include "confdefs.h"
2619 #include <assert.h>
2620 Syntax Error
2621 EOF
2622 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2623 { (eval echo configure:2624: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2624 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2625 if test -z "$ac_err"; then
2626 :
2627 else
2628 echo "$ac_err" >&5
2629 echo "configure: failed program was:" >&5
2630 cat conftest.$ac_ext >&5
2631 rm -rf conftest*
2632 CPP=/lib/cpp
2633 fi
2634 rm -f conftest*
2635 fi
2636 rm -f conftest*
2637 fi
2638 rm -f conftest*
2639 ac_cv_prog_CPP="$CPP"
2640 fi
2641 CPP="$ac_cv_prog_CPP"
2642 else
2643 ac_cv_prog_CPP="$CPP"
2644 fi
2645 echo "$ac_t""$CPP" 1>&6
2646
2647
2648 if test $ac_cv_prog_gcc = yes; then
2649 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
2650 echo "configure:2651: checking whether ${CC-cc} needs -traditional" >&5
2651 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
2652 echo $ac_n "(cached) $ac_c" 1>&6
2653 else
2654 ac_pattern="Autoconf.*'x'"
2655 cat > conftest.$ac_ext <<EOF
2656 #line 2657 "configure"
2657 #include "confdefs.h"
2658 #include <sgtty.h>
2659 Autoconf TIOCGETP
2660 EOF
2661 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2662 egrep "$ac_pattern" >/dev/null 2>&1; then
2663 rm -rf conftest*
2664 ac_cv_prog_gcc_traditional=yes
2665 else
2666 rm -rf conftest*
2667 ac_cv_prog_gcc_traditional=no
2668 fi
2669 rm -f conftest*
2670
2671
2672 if test $ac_cv_prog_gcc_traditional = no; then
2673 cat > conftest.$ac_ext <<EOF
2674 #line 2675 "configure"
2675 #include "confdefs.h"
2676 #include <termio.h>
2677 Autoconf TCGETA
2678 EOF
2679 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2680 egrep "$ac_pattern" >/dev/null 2>&1; then
2681 rm -rf conftest*
2682 ac_cv_prog_gcc_traditional=yes
2683 fi
2684 rm -f conftest*
2685
2686 fi
2687 fi
2688
2689 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
2690 if test $ac_cv_prog_gcc_traditional = yes; then
2691 CC="$CC -traditional"
2692 fi
2693 fi
2694
2695
2696
2697 ac_ext=C
2698 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2699 ac_cpp='$CXXCPP $CPPFLAGS'
2700 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2701 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2702 cross_compiling=$ac_cv_prog_cxx_cross
2703
2704
2705 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
2706 do
2707 # Extract the first word of "$ac_prog", so it can be a program name with args.
2708 set dummy $ac_prog; ac_word=$2
2709 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2710 echo "configure:2711: checking for $ac_word" >&5
2711 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
2712 echo $ac_n "(cached) $ac_c" 1>&6
2713 else
2714 if test -n "$CXX"; then
2715 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2716 else
2717 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2718 ac_dummy="$PATH"
2719 for ac_dir in $ac_dummy; do
2720 test -z "$ac_dir" && ac_dir=.
2721 if test -f $ac_dir/$ac_word; then
2722 ac_cv_prog_CXX="$ac_prog"
2723 break
2724 fi
2725 done
2726 IFS="$ac_save_ifs"
2727 fi
2728 fi
2729 CXX="$ac_cv_prog_CXX"
2730 if test -n "$CXX"; then
2731 echo "$ac_t""$CXX" 1>&6
2732 else
2733 echo "$ac_t""no" 1>&6
2734 fi
2735
2736 test -n "$CXX" && break
2737 done
2738 test -n "$CXX" || CXX="gcc"
2739
2740
2741 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2742 echo "configure:2743: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
2743
2744 ac_ext=C
2745 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2746 ac_cpp='$CXXCPP $CPPFLAGS'
2747 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2748 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2749 cross_compiling=$ac_cv_prog_cxx_cross
2750
2751 cat > conftest.$ac_ext << EOF
2752
2753 #line 2754 "configure"
2754 #include "confdefs.h"
2755
2756 int main(){return(0);}
2757 EOF
2758 if { (eval echo configure:2759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2759 ac_cv_prog_cxx_works=yes
2760 # If we can't run a trivial program, we are probably using a cross compiler.
2761 if (./conftest; exit) 2>/dev/null; then
2762 ac_cv_prog_cxx_cross=no
2763 else
2764 ac_cv_prog_cxx_cross=yes
2765 fi
2766 else
2767 echo "configure: failed program was:" >&5
2768 cat conftest.$ac_ext >&5
2769 ac_cv_prog_cxx_works=no
2770 fi
2771 rm -fr conftest*
2772 ac_ext=C
2773 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2774 ac_cpp='$CXXCPP $CPPFLAGS'
2775 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2776 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2777 cross_compiling=$ac_cv_prog_cxx_cross
2778
2779 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
2780 if test $ac_cv_prog_cxx_works = no; then
2781 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
2782 fi
2783 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2784 echo "configure:2785: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
2785 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
2786 cross_compiling=$ac_cv_prog_cxx_cross
2787
2788 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
2789 echo "configure:2790: checking whether we are using GNU C++" >&5
2790 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
2791 echo $ac_n "(cached) $ac_c" 1>&6
2792 else
2793 cat > conftest.C <<EOF
2794 #ifdef __GNUC__
2795 yes;
2796 #endif
2797 EOF
2798 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:2799: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2799 ac_cv_prog_gxx=yes
2800 else
2801 ac_cv_prog_gxx=no
2802 fi
2803 fi
2804
2805 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
2806
2807 if test $ac_cv_prog_gxx = yes; then
2808 GXX=yes
2809 else
2810 GXX=
2811 fi
2812
2813 ac_test_CXXFLAGS="${CXXFLAGS+set}"
2814 ac_save_CXXFLAGS="$CXXFLAGS"
2815 CXXFLAGS=
2816 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
2817 echo "configure:2818: checking whether ${CXX-g++} accepts -g" >&5
2818 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
2819 echo $ac_n "(cached) $ac_c" 1>&6
2820 else
2821 echo 'void f(){}' > conftest.cc
2822 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
2823 ac_cv_prog_cxx_g=yes
2824 else
2825 ac_cv_prog_cxx_g=no
2826 fi
2827 rm -f conftest*
2828
2829 fi
2830
2831 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
2832 if test "$ac_test_CXXFLAGS" = set; then
2833 CXXFLAGS="$ac_save_CXXFLAGS"
2834 elif test $ac_cv_prog_cxx_g = yes; then
2835 if test "$GXX" = yes; then
2836 CXXFLAGS="-g -O2"
2837 else
2838 CXXFLAGS="-g"
2839 fi
2840 else
2841 if test "$GXX" = yes; then
2842 CXXFLAGS="-O2"
2843 else
2844 CXXFLAGS=
2845 fi
2846 fi
2847
2848
2849 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2850 echo "configure:2851: checking how to run the C++ preprocessor" >&5
2851 if test -z "$CXXCPP"; then
2852 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2853 echo $ac_n "(cached) $ac_c" 1>&6
2854 else
2855 ac_ext=C
2856 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2857 ac_cpp='$CXXCPP $CPPFLAGS'
2858 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2859 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2860 cross_compiling=$ac_cv_prog_cxx_cross
2861 CXXCPP="${CXX-g++} -E"
2862 cat > conftest.$ac_ext <<EOF
2863 #line 2864 "configure"
2864 #include "confdefs.h"
2865 #include <stdlib.h>
2866 EOF
2867 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2868 { (eval echo configure:2869: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2869 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2870 if test -z "$ac_err"; then
2871 :
2872 else
2873 echo "$ac_err" >&5
2874 echo "configure: failed program was:" >&5
2875 cat conftest.$ac_ext >&5
2876 rm -rf conftest*
2877 CXXCPP=/lib/cpp
2878 fi
2879 rm -f conftest*
2880 ac_cv_prog_CXXCPP="$CXXCPP"
2881 ac_ext=C
2882 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2883 ac_cpp='$CXXCPP $CPPFLAGS'
2884 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2885 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2886 cross_compiling=$ac_cv_prog_cxx_cross
2887 fi
2888 fi
2889 CXXCPP="$ac_cv_prog_CXXCPP"
2890 echo "$ac_t""$CXXCPP" 1>&6
2891
2892
2893 CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
2894
2895 ac_ext=c
2896 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2897 ac_cpp='$CPP $CPPFLAGS'
2898 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2899 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2900 cross_compiling=$ac_cv_prog_cc_cross
2901
2902
2903 # Extract the first word of "ranlib", so it can be a program name with args.
2904 set dummy ranlib; ac_word=$2
2905 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2906 echo "configure:2907: checking for $ac_word" >&5
2907 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2908 echo $ac_n "(cached) $ac_c" 1>&6
2909 else
2910 if test -n "$RANLIB"; then
2911 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2912 else
2913 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2914 ac_dummy="$PATH"
2915 for ac_dir in $ac_dummy; do
2916 test -z "$ac_dir" && ac_dir=.
2917 if test -f $ac_dir/$ac_word; then
2918 ac_cv_prog_RANLIB="ranlib"
2919 break
2920 fi
2921 done
2922 IFS="$ac_save_ifs"
2923 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2924 fi
2925 fi
2926 RANLIB="$ac_cv_prog_RANLIB"
2927 if test -n "$RANLIB"; then
2928 echo "$ac_t""$RANLIB" 1>&6
2929 else
2930 echo "$ac_t""no" 1>&6
2931 fi
2932
2933
2934 # Extract the first word of "ar", so it can be a program name with args.
2935 set dummy ar; ac_word=$2
2936 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2937 echo "configure:2938: checking for $ac_word" >&5
2938 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
2939 echo $ac_n "(cached) $ac_c" 1>&6
2940 else
2941 if test -n "$AR"; then
2942 ac_cv_prog_AR="$AR" # Let the user override the test.
2943 else
2944 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2945 ac_dummy="$PATH"
2946 for ac_dir in $ac_dummy; do
2947 test -z "$ac_dir" && ac_dir=.
2948 if test -f $ac_dir/$ac_word; then
2949 ac_cv_prog_AR="ar"
2950 break
2951 fi
2952 done
2953 IFS="$ac_save_ifs"
2954 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
2955 fi
2956 fi
2957 AR="$ac_cv_prog_AR"
2958 if test -n "$AR"; then
2959 echo "$ac_t""$AR" 1>&6
2960 else
2961 echo "$ac_t""no" 1>&6
2962 fi
2963
2964
2965 # Find a good install program. We prefer a C program (faster),
2966 # so one script is as good as another. But avoid the broken or
2967 # incompatible versions:
2968 # SysV /etc/install, /usr/sbin/install
2969 # SunOS /usr/etc/install
2970 # IRIX /sbin/install
2971 # AIX /bin/install
2972 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2973 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2974 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2975 # ./install, which can be erroneously created by make from ./install.sh.
2976 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2977 echo "configure:2978: checking for a BSD compatible install" >&5
2978 if test -z "$INSTALL"; then
2979 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2980 echo $ac_n "(cached) $ac_c" 1>&6
2981 else
2982 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2983 for ac_dir in $PATH; do
2984 # Account for people who put trailing slashes in PATH elements.
2985 case "$ac_dir/" in
2986 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2987 *)
2988 # OSF1 and SCO ODT 3.0 have their own names for install.
2989 # Don't use installbsd from OSF since it installs stuff as root
2990 # by default.
2991 for ac_prog in ginstall scoinst install; do
2992 if test -f $ac_dir/$ac_prog; then
2993 if test $ac_prog = install &&
2994 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2995 # AIX install. It has an incompatible calling convention.
2996 :
2997 else
2998 ac_cv_path_install="$ac_dir/$ac_prog -c"
2999 break 2
3000 fi
3001 fi
3002 done
3003 ;;
3004 esac
3005 done
3006 IFS="$ac_save_IFS"
3007
3008 fi
3009 if test "${ac_cv_path_install+set}" = set; then
3010 INSTALL="$ac_cv_path_install"
3011 else
3012 # As a last resort, use the slow shell script. We don't cache a
3013 # path for INSTALL within a source directory, because that will
3014 # break other packages using the cache if that directory is
3015 # removed, or if the path is relative.
3016 INSTALL="$ac_install_sh"
3017 fi
3018 fi
3019 echo "$ac_t""$INSTALL" 1>&6
3020
3021 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3022 # It thinks the first close brace ends the variable substitution.
3023 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3024
3025 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3026
3027 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3028
3029
3030 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3031 echo "configure:3032: checking whether ln -s works" >&5
3032 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
3033 echo $ac_n "(cached) $ac_c" 1>&6
3034 else
3035 rm -f conftestdata
3036 if ln -s X conftestdata 2>/dev/null
3037 then
3038 rm -f conftestdata
3039 ac_cv_prog_LN_S="ln -s"
3040 else
3041 ac_cv_prog_LN_S=ln
3042 fi
3043 fi
3044 LN_S="$ac_cv_prog_LN_S"
3045 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3046 echo "$ac_t""yes" 1>&6
3047 else
3048 echo "$ac_t""no" 1>&6
3049 fi
3050
3051
3052 # Extract the first word of "strip", so it can be a program name with args.
3053 set dummy strip; ac_word=$2
3054 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3055 echo "configure:3056: checking for $ac_word" >&5
3056 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
3057 echo $ac_n "(cached) $ac_c" 1>&6
3058 else
3059 if test -n "$STRIP"; then
3060 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3061 else
3062 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3063 ac_dummy="$PATH"
3064 for ac_dir in $ac_dummy; do
3065 test -z "$ac_dir" && ac_dir=.
3066 if test -f $ac_dir/$ac_word; then
3067 ac_cv_prog_STRIP="strip"
3068 break
3069 fi
3070 done
3071 IFS="$ac_save_ifs"
3072 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
3073 fi
3074 fi
3075 STRIP="$ac_cv_prog_STRIP"
3076 if test -n "$STRIP"; then
3077 echo "$ac_t""$STRIP" 1>&6
3078 else
3079 echo "$ac_t""no" 1>&6
3080 fi
3081
3082
3083 echo $ac_n "checking "make for VPATH support"""... $ac_c" 1>&6
3084 echo "configure:3085: checking "make for VPATH support"" >&5
3085 cat - << EOF > confMake
3086 check : file
3087 cp \$? \$@
3088 cp \$? final_file
3089 EOF
3090
3091 if test ! -d sub ; then
3092 mkdir sub
3093 fi
3094 echo dummy > sub/file
3095 ${MAKE-make} -f confMake VPATH=sub 2> config.log > /dev/null
3096 RESULT=$?
3097 rm -f sub/file check final_file confMake
3098 rmdir sub
3099 if test "$RESULT" = 0; then
3100 echo "$ac_t""yes" 1>&6
3101 else
3102 echo "$ac_t""no" 1>&6
3103 { echo "configure: error: You need a make-utility that is able to use the variable
3104 VPATH correctly.
3105 If your version of make does not support VPATH correctly" 1>&2; exit 1; }
3106 fi
3107
3108 for ac_prog in 'bison -y' byacc
3109 do
3110 # Extract the first word of "$ac_prog", so it can be a program name with args.
3111 set dummy $ac_prog; ac_word=$2
3112 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3113 echo "configure:3114: checking for $ac_word" >&5
3114 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3115 echo $ac_n "(cached) $ac_c" 1>&6
3116 else
3117 if test -n "$YACC"; then
3118 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3119 else
3120 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3121 ac_dummy="$PATH"
3122 for ac_dir in $ac_dummy; do
3123 test -z "$ac_dir" && ac_dir=.
3124 if test -f $ac_dir/$ac_word; then
3125 ac_cv_prog_YACC="$ac_prog"
3126 break
3127 fi
3128 done
3129 IFS="$ac_save_ifs"
3130 fi
3131 fi
3132 YACC="$ac_cv_prog_YACC"
3133 if test -n "$YACC"; then
3134 echo "$ac_t""$YACC" 1>&6
3135 else
3136 echo "$ac_t""no" 1>&6
3137 fi
3138
3139 test -n "$YACC" && break
3140 done
3141 test -n "$YACC" || YACC="yacc"
3142
3143
3144 missing_dir=`cd $ac_aux_dir && pwd`
3145 for ac_prog in flex lex
3146 do
3147 # Extract the first word of "$ac_prog", so it can be a program name with args.
3148 set dummy $ac_prog; ac_word=$2
3149 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3150 echo "configure:3151: checking for $ac_word" >&5
3151 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
3152 echo $ac_n "(cached) $ac_c" 1>&6
3153 else
3154 if test -n "$LEX"; then
3155 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3156 else
3157 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3158 ac_dummy="$PATH"
3159 for ac_dir in $ac_dummy; do
3160 test -z "$ac_dir" && ac_dir=.
3161 if test -f $ac_dir/$ac_word; then
3162 ac_cv_prog_LEX="$ac_prog"
3163 break
3164 fi
3165 done
3166 IFS="$ac_save_ifs"
3167 fi
3168 fi
3169 LEX="$ac_cv_prog_LEX"
3170 if test -n "$LEX"; then
3171 echo "$ac_t""$LEX" 1>&6
3172 else
3173 echo "$ac_t""no" 1>&6
3174 fi
3175
3176 test -n "$LEX" && break
3177 done
3178 test -n "$LEX" || LEX=""$missing_dir/missing flex""
3179
3180 # Extract the first word of "flex", so it can be a program name with args.
3181 set dummy flex; ac_word=$2
3182 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3183 echo "configure:3184: checking for $ac_word" >&5
3184 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
3185 echo $ac_n "(cached) $ac_c" 1>&6
3186 else
3187 if test -n "$LEX"; then
3188 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3189 else
3190 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3191 ac_dummy="$PATH"
3192 for ac_dir in $ac_dummy; do
3193 test -z "$ac_dir" && ac_dir=.
3194 if test -f $ac_dir/$ac_word; then
3195 ac_cv_prog_LEX="flex"
3196 break
3197 fi
3198 done
3199 IFS="$ac_save_ifs"
3200 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
3201 fi
3202 fi
3203 LEX="$ac_cv_prog_LEX"
3204 if test -n "$LEX"; then
3205 echo "$ac_t""$LEX" 1>&6
3206 else
3207 echo "$ac_t""no" 1>&6
3208 fi
3209
3210 if test -z "$LEXLIB"
3211 then
3212 case "$LEX" in
3213 flex*) ac_lib=fl ;;
3214 *) ac_lib=l ;;
3215 esac
3216 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
3217 echo "configure:3218: checking for yywrap in -l$ac_lib" >&5
3218 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
3219 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3220 echo $ac_n "(cached) $ac_c" 1>&6
3221 else
3222 ac_save_LIBS="$LIBS"
3223 LIBS="-l$ac_lib $LIBS"
3224 cat > conftest.$ac_ext <<EOF
3225 #line 3226 "configure"
3226 #include "confdefs.h"
3227 /* Override any gcc2 internal prototype to avoid an error. */
3228 /* We use char because int might match the return type of a gcc2
3229 builtin and then its argument prototype would still apply. */
3230 char yywrap();
3231
3232 int main() {
3233 yywrap()
3234 ; return 0; }
3235 EOF
3236 if { (eval echo configure:3237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3237 rm -rf conftest*
3238 eval "ac_cv_lib_$ac_lib_var=yes"
3239 else
3240 echo "configure: failed program was:" >&5
3241 cat conftest.$ac_ext >&5
3242 rm -rf conftest*
3243 eval "ac_cv_lib_$ac_lib_var=no"
3244 fi
3245 rm -f conftest*
3246 LIBS="$ac_save_LIBS"
3247
3248 fi
3249 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3250 echo "$ac_t""yes" 1>&6
3251 LEXLIB="-l$ac_lib"
3252 else
3253 echo "$ac_t""no" 1>&6
3254 fi
3255
3256 fi
3257
3258 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
3259 echo "configure:3260: checking lex output file root" >&5
3260 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
3261 echo $ac_n "(cached) $ac_c" 1>&6
3262 else
3263 # The minimal lex program is just a single line: %%. But some broken lexes
3264 # (Solaris, I think it was) want two %% lines, so accommodate them.
3265 echo '%%
3266 %%' | $LEX
3267 if test -f lex.yy.c; then
3268 ac_cv_prog_lex_root=lex.yy
3269 elif test -f lexyy.c; then
3270 ac_cv_prog_lex_root=lexyy
3271 else
3272 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
3273 fi
3274 fi
3275
3276 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
3277 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3278
3279 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
3280 echo "configure:3281: checking whether yytext is a pointer" >&5
3281 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
3282 echo $ac_n "(cached) $ac_c" 1>&6
3283 else
3284 # POSIX says lex can declare yytext either as a pointer or an array; the
3285 # default is implementation-dependent. Figure out which it is, since
3286 # not all implementations provide the %pointer and %array declarations.
3287 ac_cv_prog_lex_yytext_pointer=no
3288 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3289 ac_save_LIBS="$LIBS"
3290 LIBS="$LIBS $LEXLIB"
3291 cat > conftest.$ac_ext <<EOF
3292 #line 3293 "configure"
3293 #include "confdefs.h"
3294 `cat $LEX_OUTPUT_ROOT.c`
3295 int main() {
3296
3297 ; return 0; }
3298 EOF
3299 if { (eval echo configure:3300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3300 rm -rf conftest*
3301 ac_cv_prog_lex_yytext_pointer=yes
3302 else
3303 echo "configure: failed program was:" >&5
3304 cat conftest.$ac_ext >&5
3305 fi
3306 rm -f conftest*
3307 LIBS="$ac_save_LIBS"
3308 rm -f "${LEX_OUTPUT_ROOT}.c"
3309
3310 fi
3311
3312 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
3313 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3314 cat >> confdefs.h <<\EOF
3315 #define YYTEXT_POINTER 1
3316 EOF
3317
3318 fi
3319
3320
3321 # Check whether --enable-static or --disable-static was given.
3322 if test "${enable_static+set}" = set; then
3323 enableval="$enable_static"
3324 p=${PACKAGE-default}
3325 case "$enableval" in
3326 yes) enable_static=yes ;;
3327 no) enable_static=no ;;
3328 *)
3329 enable_static=no
3330 # Look at the argument we got. We use all the common list separators.
3331 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3332 for pkg in $enableval; do
3333 if test "X$pkg" = "X$p"; then
3334 enable_static=yes
3335 fi
3336 done
3337 IFS="$ac_save_ifs"
3338 ;;
3339 esac
3340 else
3341 enable_static=no
3342 fi
3343
3344 # Check whether --enable-shared or --disable-shared was given.
3345 if test "${enable_shared+set}" = set; then
3346 enableval="$enable_shared"
3347 p=${PACKAGE-default}
3348 case "$enableval" in
3349 yes) enable_shared=yes ;;
3350 no) enable_shared=no ;;
3351 *)
3352 enable_shared=no
3353 # Look at the argument we got. We use all the common list separators.
3354 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3355 for pkg in $enableval; do
3356 if test "X$pkg" = "X$p"; then
3357 enable_shared=yes
3358 fi
3359 done
3360 IFS="$ac_save_ifs"
3361 ;;
3362 esac
3363 else
3364 enable_shared=yes
3365 fi
3366
3367 echo $ac_n "checking build system type""... $ac_c" 1>&6
3368 echo "configure:3369: checking build system type" >&5
3369
3370 build_alias=$build
3371 case "$build_alias" in
3372 NONE)
3373 case $nonopt in
3374 NONE) build_alias=$host_alias ;;
3375 *) build_alias=$nonopt ;;
3376 esac ;;
3377 esac
3378
3379 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
3380 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3381 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3382 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3383 echo "$ac_t""$build" 1>&6
3384
3385 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3386 if test "${with_gnu_ld+set}" = set; then
3387 withval="$with_gnu_ld"
3388 test "$withval" = no || with_gnu_ld=yes
3389 else
3390 with_gnu_ld=no
3391 fi
3392
3393 ac_prog=ld
3394 if test "$ac_cv_prog_gcc" = yes; then
3395 # Check if gcc -print-prog-name=ld gives a path.
3396 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
3397 echo "configure:3398: checking for ld used by GCC" >&5
3398 ac_prog=`($CC -print-prog-name=ld) 2>&5`
3399 case "$ac_prog" in
3400 # Accept absolute paths.
3401 /* | [A-Za-z]:/*)
3402 # Canonicalize the path of ld
3403 re_direlt='/[^/][^/]*/\.\./'
3404 sub_uncdrive='s%^\([A-Za-z]\):/%//\1/%'
3405 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3406 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3407 done
3408 case "$host_os" in
3409 cygwin*)
3410 # Convert to a UNC path for cygwin
3411 test -z "$LD" && LD=`echo X$ac_prog | $Xsed -e "$sub_uncdrive"`
3412 ;;
3413 *)
3414 test -z "$LD" && LD="$ac_prog"
3415 ;;
3416 esac
3417 ;;
3418 ##
3419 ## FIXME: The code fails later on if we try to use an $LD with
3420 ## '\\' path separators.
3421 ##
3422 [A-Za-z]:[\\]*)
3423 # Canonicalize the path of ld
3424 re_direlt='\\[^\\][^\\]*\\\.\.\(\\\)'
3425 sub_uncdrive='s%^\([A-Za-z]\):\\%//\1/%'
3426 sub_uncdir='s%\\%/%g'
3427 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3428 ac_prog=`echo $ac_prog| sed "s%$re_direlt%\1%"`
3429 done
3430 case "$host_os" in
3431 cygwin*)
3432 # Convert to a UNC path for cygwin
3433 test -z "$LD" && LD=`echo X$ac_prog | sed -e 's%^X%%' -e "$sub_uncdrive" -e "$sub_uncdir"`
3434 ;;
3435 *)
3436 test -z "$LD" && LD="$ac_prog"
3437 ;;
3438 esac
3439 ;;
3440 "")
3441 # If it fails, then pretend we aren't using GCC.
3442 ac_prog=ld
3443 ;;
3444 *)
3445 # If it is relative, then search for the first ld in PATH.
3446 with_gnu_ld=unknown
3447 ;;
3448 esac
3449 elif test "$with_gnu_ld" = yes; then
3450 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
3451 echo "configure:3452: checking for GNU ld" >&5
3452 else
3453 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
3454 echo "configure:3455: checking for non-GNU ld" >&5
3455 fi
3456 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
3457 echo $ac_n "(cached) $ac_c" 1>&6
3458 else
3459 if test -z "$LD"; then
3460 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3461 for ac_dir in $PATH; do
3462 test -z "$ac_dir" && ac_dir=.
3463 if test -f "$ac_dir/$ac_prog"; then
3464 ac_cv_path_LD="$ac_dir/$ac_prog"
3465 # Check to see if the program is GNU ld. I'd rather use --version,
3466 # but apparently some GNU ld's only accept -v.
3467 # Break only if it was the GNU/non-GNU ld that we prefer.
3468 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3469 test "$with_gnu_ld" != no && break
3470 else
3471 test "$with_gnu_ld" != yes && break
3472 fi
3473 fi
3474 done
3475 IFS="$ac_save_ifs"
3476 else
3477 ac_cv_path_LD="$LD" # Let the user override the test with a path.
3478 fi
3479 fi
3480
3481 LD="$ac_cv_path_LD"
3482 if test -n "$LD"; then
3483 echo "$ac_t""$LD" 1>&6
3484 else
3485 echo "$ac_t""no" 1>&6
3486 fi
3487 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3488
3489 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3490 echo "configure:3491: checking if the linker ($LD) is GNU ld" >&5
3491 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
3492 echo $ac_n "(cached) $ac_c" 1>&6
3493 else
3494 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3495 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3496 ac_cv_prog_gnu_ld=yes
3497 else
3498 ac_cv_prog_gnu_ld=no
3499 fi
3500 fi
3501
3502 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
3503
3504
3505 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3506 echo "configure:3507: checking for BSD-compatible nm" >&5
3507 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
3508 echo $ac_n "(cached) $ac_c" 1>&6
3509 else
3510 if test -n "$NM"; then
3511 # Let the user override the test.
3512 ac_cv_path_NM="$NM"
3513 else
3514 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3515 for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
3516 test -z "$ac_dir" && ac_dir=.
3517 if test -f $ac_dir/nm; then
3518 # Check to see if the nm accepts a BSD-compat flag.
3519 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3520 # nm: unknown option "B" ignored
3521 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3522 ac_cv_path_NM="$ac_dir/nm -B"
3523 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3524 ac_cv_path_NM="$ac_dir/nm -p"
3525 else
3526 ac_cv_path_NM="$ac_dir/nm"
3527 fi
3528 break
3529 fi
3530 done
3531 IFS="$ac_save_ifs"
3532 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
3533 fi
3534 fi
3535
3536 NM="$ac_cv_path_NM"
3537 echo "$ac_t""$NM" 1>&6
3538
3539
3540 # Check for command to grab the raw symbol name followed by C symbol from nm.
3541 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
3542 echo "configure:3543: checking command to parse $NM output" >&5
3543 if eval "test \"`echo '$''{'ac_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
3544 echo $ac_n "(cached) $ac_c" 1>&6
3545 else
3546 # These are sane defaults that work on at least a few old systems.
3547 # {They come from Ultrix. What could be older than Ultrix?!! ;)}
3548
3549 # Character class describing NM global symbol codes.
3550 ac_symcode='[BCDEGRSTU]'
3551
3552 # Regexp to match symbols that can be accessed directly from C.
3553 ac_sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3554
3555 # Transform the above into a raw symbol and a C symbol.
3556 ac_symxfrm='\1 \1'
3557
3558 # Define system-specific variables.
3559 case "$host_os" in
3560 aix*)
3561 ac_symcode='[BCDTU]'
3562 ;;
3563 sunos* | cygwin32* | mingw32*)
3564 ac_sympat='_\([_A-Za-z][_A-Za-z0-9]*\)'
3565 ac_symxfrm='_\1 \1'
3566 ;;
3567 irix*)
3568 # Cannot use undefined symbols on IRIX because inlined functions mess us up.
3569 ac_symcode='[BCDEGRST]'
3570 ;;
3571 solaris*)
3572 ac_symcode='[BDTU]'
3573 ;;
3574 esac
3575
3576 # If we're using GNU nm, then use its standard symbol codes.
3577 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3578 ac_symcode='[ABCDGISTUW]'
3579 fi
3580
3581 case "$host_os" in
3582 cygwin32* | mingw32*)
3583 # We do not want undefined symbols on cygwin32. The user must
3584 # arrange to define them via -l arguments.
3585 ac_symcode='[ABCDGISTW]'
3586 ;;
3587 esac
3588
3589 # Write the raw and C identifiers.
3590 ac_cv_sys_global_symbol_pipe="sed -n -e 's/^.* $ac_symcode $ac_sympat$/$ac_symxfrm/p'"
3591
3592 # Check to see that the pipe works correctly.
3593 ac_pipe_works=no
3594 cat > conftest.$ac_ext <<EOF
3595 #ifdef __cplusplus
3596 extern "C" {
3597 #endif
3598 char nm_test_var;
3599 void nm_test_func(){}
3600 #ifdef __cplusplus
3601 }
3602 #endif
3603 int main(){nm_test_var='a';nm_test_func;return 0;}
3604 EOF
3605 if { (eval echo configure:3606: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3606 # Now try to grab the symbols.
3607 ac_nlist=conftest.nm
3608 if { (eval echo configure:3609: \"$NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then
3609
3610 # Try sorting and uniquifying the output.
3611 if sort "$ac_nlist" | uniq > "$ac_nlist"T; then
3612 mv -f "$ac_nlist"T "$ac_nlist"
3613 ac_wcout=`wc "$ac_nlist" 2>/dev/null`
3614 ac_count=`echo "X$ac_wcout" | sed -e 's,^X,,' -e 's/^[ ]*\([0-9][0-9]*\).*$/\1/'`
3615 (test "$ac_count" -ge 0) 2>/dev/null || ac_count=-1
3616 else
3617 rm -f "$ac_nlist"T
3618 ac_count=-1
3619 fi
3620
3621 # Make sure that we snagged all the symbols we need.
3622 if egrep ' nm_test_var$' "$ac_nlist" >/dev/null; then
3623 if egrep ' nm_test_func$' "$ac_nlist" >/dev/null; then
3624 cat <<EOF > conftest.c
3625 #ifdef __cplusplus
3626 extern "C" {
3627 #endif
3628
3629 EOF
3630 # Now generate the symbol file.
3631 sed 's/^.* \(.*\)$/extern char \1;/' < "$ac_nlist" >> conftest.c
3632
3633 cat <<EOF >> conftest.c
3634 #if defined (__STDC__) && __STDC__
3635 # define __ptr_t void *
3636 #else
3637 # define __ptr_t char *
3638 #endif
3639
3640 /* The number of symbols in dld_preloaded_symbols, -1 if unsorted. */
3641 int dld_preloaded_symbol_count = $ac_count;
3642
3643 /* The mapping between symbol names and symbols. */
3644 struct {
3645 char *name;
3646 __ptr_t address;
3647 }
3648 dld_preloaded_symbols[] =
3649 {
3650 EOF
3651 sed 's/^\(.*\) \(.*\)$/ {"\1", (__ptr_t) \&\2},/' < "$ac_nlist" >> conftest.c
3652 cat <<\EOF >> conftest.c
3653 {0, (__ptr_t) 0}
3654 };
3655
3656 #ifdef __cplusplus
3657 }
3658 #endif
3659 EOF
3660 # Now try linking the two files.
3661 mv conftest.$ac_objext conftestm.$ac_objext
3662 ac_save_LIBS="$LIBS"
3663 ac_save_CFLAGS="$CFLAGS"
3664 LIBS="conftestm.$ac_objext"
3665 CFLAGS="$CFLAGS$no_builtin_flag"
3666 if { (eval echo configure:3667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3667 ac_pipe_works=yes
3668 else
3669 echo "configure: failed program was:" >&5
3670 cat conftest.c >&5
3671 fi
3672 LIBS="$ac_save_LIBS"
3673 CFLAGS="$ac_save_CFLAGS"
3674 else
3675 echo "cannot find nm_test_func in $ac_nlist" >&5
3676 fi
3677 else
3678 echo "cannot find nm_test_var in $ac_nlist" >&5
3679 fi
3680 else
3681 echo "cannot run $ac_cv_sys_global_symbol_pipe" >&5
3682 fi
3683 else
3684 echo "$progname: failed program was:" >&5
3685 cat conftest.c >&5
3686 fi
3687 rm -rf conftest*
3688
3689 # Do not use the global_symbol_pipe unless it works.
3690 test "$ac_pipe_works" = yes || ac_cv_sys_global_symbol_pipe=
3691
3692 fi
3693
3694
3695 ac_result=yes
3696 if test -z "$ac_cv_sys_global_symbol_pipe"; then
3697 ac_result=no
3698 fi
3699 echo "$ac_t""$ac_result" 1>&6
3700
3701 echo $ac_n "checking for _ prefix in compiled symbols""... $ac_c" 1>&6
3702 echo "configure:3703: checking for _ prefix in compiled symbols" >&5
3703 if eval "test \"`echo '$''{'ac_cv_sys_symbol_underscore'+set}'`\" = set"; then
3704 echo $ac_n "(cached) $ac_c" 1>&6
3705 else
3706 ac_cv_sys_symbol_underscore=no
3707 cat > conftest.$ac_ext <<EOF
3708 void nm_test_func(){}
3709 int main(){nm_test_func;return 0;}
3710 EOF
3711 if { (eval echo configure:3712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3712 # Now try to grab the symbols.
3713 ac_nlist=conftest.nm
3714 if { (eval echo configure:3715: \"$NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then
3715 # See whether the symbols have a leading underscore.
3716 if egrep '^_nm_test_func' "$ac_nlist" >/dev/null; then
3717 ac_cv_sys_symbol_underscore=yes
3718 else
3719 if egrep '^nm_test_func ' "$ac_nlist" >/dev/null; then
3720 :
3721 else
3722 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
3723 fi
3724 fi
3725 else
3726 echo "configure: cannot run $ac_cv_sys_global_symbol_pipe" >&5
3727 fi
3728 else
3729 echo "configure: failed program was:" >&5
3730 cat conftest.c >&5
3731 fi
3732 rm -rf conftest*
3733
3734 fi
3735
3736 echo "$ac_t""$ac_cv_sys_symbol_underscore" 1>&6
3737 if test x$ac_cv_sys_symbol_underscore = xyes; then
3738 cat >> confdefs.h <<\EOF
3739 #define WITH_SYMBOL_UNDERSCORE 1
3740 EOF
3741
3742 fi
3743
3744 if test $host != $build; then
3745 ac_tool_prefix=${host_alias}-
3746 else
3747 ac_tool_prefix=
3748 fi
3749
3750 # Always use our own libtool.
3751 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3752
3753 # Check for any special flags to pass to ltconfig.
3754 libtool_flags=
3755 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3756 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3757 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
3758 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
3759 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3760
3761 # Some flags need to be propagated to the compiler or linker for good
3762 # libtool support.
3763 case "$host" in
3764 *-*-irix6*)
3765 # Find out which ABI we are using.
3766 echo '#line 3767 "configure"' > conftest.$ac_ext
3767 if { (eval echo configure:3768: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3768 case "`/usr/bin/file conftest.o`" in
3769 *32-bit*)
3770 LD="${LD-ld} -32"
3771 ;;
3772 *N32*)
3773 LD="${LD-ld} -n32"
3774 ;;
3775 *64-bit*)
3776 LD="${LD-ld} -64"
3777 ;;
3778 esac
3779 fi
3780 rm -rf conftest*
3781 ;;
3782
3783 *-*-sco3.2v5*)
3784 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3785 SAVE_CFLAGS="$CFLAGS"
3786 CFLAGS="$CFLAGS -belf"
3787 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
3788 echo "configure:3789: checking whether the C compiler needs -belf" >&5
3789 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
3790 echo $ac_n "(cached) $ac_c" 1>&6
3791 else
3792 cat > conftest.$ac_ext <<EOF
3793 #line 3794 "configure"
3794 #include "confdefs.h"
3795
3796 int main() {
3797
3798 ; return 0; }
3799 EOF
3800 if { (eval echo configure:3801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3801 rm -rf conftest*
3802 lt_cv_cc_needs_belf=yes
3803 else
3804 echo "configure: failed program was:" >&5
3805 cat conftest.$ac_ext >&5
3806 rm -rf conftest*
3807 lt_cv_cc_needs_belf=no
3808 fi
3809 rm -f conftest*
3810 fi
3811
3812 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
3813 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3814 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3815 CFLAGS="$SAVE_CFLAGS"
3816 fi
3817 ;;
3818
3819 *-*-cygwin32*)
3820 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3821 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3822 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3823 echo "configure:3824: checking for $ac_word" >&5
3824 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3825 echo $ac_n "(cached) $ac_c" 1>&6
3826 else
3827 if test -n "$DLLTOOL"; then
3828 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3829 else
3830 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3831 ac_dummy="$PATH"
3832 for ac_dir in $ac_dummy; do
3833 test -z "$ac_dir" && ac_dir=.
3834 if test -f $ac_dir/$ac_word; then
3835 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3836 break
3837 fi
3838 done
3839 IFS="$ac_save_ifs"
3840 fi
3841 fi
3842 DLLTOOL="$ac_cv_prog_DLLTOOL"
3843 if test -n "$DLLTOOL"; then
3844 echo "$ac_t""$DLLTOOL" 1>&6
3845 else
3846 echo "$ac_t""no" 1>&6
3847 fi
3848
3849
3850 if test -z "$ac_cv_prog_DLLTOOL"; then
3851 if test -n "$ac_tool_prefix"; then
3852 # Extract the first word of "dlltool", so it can be a program name with args.
3853 set dummy dlltool; ac_word=$2
3854 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3855 echo "configure:3856: checking for $ac_word" >&5
3856 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3857 echo $ac_n "(cached) $ac_c" 1>&6
3858 else
3859 if test -n "$DLLTOOL"; then
3860 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3861 else
3862 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3863 ac_dummy="$PATH"
3864 for ac_dir in $ac_dummy; do
3865 test -z "$ac_dir" && ac_dir=.
3866 if test -f $ac_dir/$ac_word; then
3867 ac_cv_prog_DLLTOOL="dlltool"
3868 break
3869 fi
3870 done
3871 IFS="$ac_save_ifs"
3872 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
3873 fi
3874 fi
3875 DLLTOOL="$ac_cv_prog_DLLTOOL"
3876 if test -n "$DLLTOOL"; then
3877 echo "$ac_t""$DLLTOOL" 1>&6
3878 else
3879 echo "$ac_t""no" 1>&6
3880 fi
3881
3882 else
3883 DLLTOOL="false"
3884 fi
3885 fi
3886
3887 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3888 set dummy ${ac_tool_prefix}as; ac_word=$2
3889 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3890 echo "configure:3891: checking for $ac_word" >&5
3891 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3892 echo $ac_n "(cached) $ac_c" 1>&6
3893 else
3894 if test -n "$AS"; then
3895 ac_cv_prog_AS="$AS" # Let the user override the test.
3896 else
3897 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3898 ac_dummy="$PATH"
3899 for ac_dir in $ac_dummy; do
3900 test -z "$ac_dir" && ac_dir=.
3901 if test -f $ac_dir/$ac_word; then
3902 ac_cv_prog_AS="${ac_tool_prefix}as"
3903 break
3904 fi
3905 done
3906 IFS="$ac_save_ifs"
3907 fi
3908 fi
3909 AS="$ac_cv_prog_AS"
3910 if test -n "$AS"; then
3911 echo "$ac_t""$AS" 1>&6
3912 else
3913 echo "$ac_t""no" 1>&6
3914 fi
3915
3916
3917 if test -z "$ac_cv_prog_AS"; then
3918 if test -n "$ac_tool_prefix"; then
3919 # Extract the first word of "as", so it can be a program name with args.
3920 set dummy as; ac_word=$2
3921 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3922 echo "configure:3923: checking for $ac_word" >&5
3923 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3924 echo $ac_n "(cached) $ac_c" 1>&6
3925 else
3926 if test -n "$AS"; then
3927 ac_cv_prog_AS="$AS" # Let the user override the test.
3928 else
3929 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3930 ac_dummy="$PATH"
3931 for ac_dir in $ac_dummy; do
3932 test -z "$ac_dir" && ac_dir=.
3933 if test -f $ac_dir/$ac_word; then
3934 ac_cv_prog_AS="as"
3935 break
3936 fi
3937 done
3938 IFS="$ac_save_ifs"
3939 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
3940 fi
3941 fi
3942 AS="$ac_cv_prog_AS"
3943 if test -n "$AS"; then
3944 echo "$ac_t""$AS" 1>&6
3945 else
3946 echo "$ac_t""no" 1>&6
3947 fi
3948
3949 else
3950 AS="false"
3951 fi
3952 fi
3953
3954
3955 ;;
3956
3957 esac
3958
3959 # enable the --disable-libtool-lock switch
3960
3961 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3962 if test "${enable_libtool_lock+set}" = set; then
3963 enableval="$enable_libtool_lock"
3964 need_locks=$enableval
3965 else
3966 need_locks=yes
3967 fi
3968
3969
3970 if test x"$need_locks" = xno; then
3971 libtool_flags="$libtool_flags --disable-lock"
3972 fi
3973
3974
3975 # Actually configure libtool. ac_aux_dir is where install-sh is found.
3976 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3977 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
3978 DLLTOOL="$DLLTOOL" AS="$AS" \
3979 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3980 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
3981 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
3982
3983 # Redirect the config.log output again, so that the ltconfig log is not
3984 # clobbered by the next message.
3985 exec 5>>./config.log
3986
3987
3988
3989 SEARCH_INCLUDE="\
3990 /usr/Motif-1.2/include \
3991 /usr/Motif-2.1/include \
3992 \
3993 /usr/include/Motif1.2 \
3994 /opt/xpm/include/X11 \
3995 \
3996 /usr/Motif1.2/include \
3997 /usr/dt/include \
3998 /usr/include/Xm \
3999 \
4000 /usr/X11R6/include \
4001 /usr/X11R5/include \
4002 /usr/X11R4/include \
4003 \
4004 /usr/X11R6/lib \
4005 /usr/X11R5/lib \
4006 /usr/X11R4/lib \
4007 \
4008 /usr/include/X11R6 \
4009 /usr/include/X11R5 \
4010 /usr/include/X11R4 \
4011 \
4012 /usr/local/X11R6/include \
4013 /usr/local/X11R5/include \
4014 /usr/local/X11R4/include \
4015 \
4016 /usr/local/include/X11R6 \
4017 /usr/local/include/X11R5 \
4018 /usr/local/include/X11R4 \
4019 \
4020 /usr/X11/include \
4021 /usr/include/X11 \
4022 /usr/local/X11/include \
4023 /usr/local/include/X11 \
4024 \
4025 /usr/X386/include \
4026 /usr/x386/include \
4027 /usr/XFree86/include/X11 \
4028 \
4029 /usr/include \
4030 /usr/include/gtk \
4031 /usr/include/gdk \
4032 /usr/include/glib \
4033 /usr/local/include \
4034 /usr/unsupported/include \
4035 /usr/athena/include \
4036 /usr/local/x11r5/include \
4037 /usr/lpp/Xamples/include \
4038 \
4039 /usr/local/include/gtk \
4040 /usr/local/include/qt \
4041 /usr/include/qt \
4042 \
4043 /usr/openwin/include \
4044 /usr/openwin/share/include \
4045 "
4046
4047 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
4048
4049
4050 cat > confcache <<\EOF
4051 # This file is a shell script that caches the results of configure
4052 # tests run on this system so they can be shared between configure
4053 # scripts and configure runs. It is not useful on other systems.
4054 # If it contains results you don't want to keep, you may remove or edit it.
4055 #
4056 # By default, configure uses ./config.cache as the cache file,
4057 # creating it if it does not exist already. You can give configure
4058 # the --cache-file=FILE option to use a different cache file; that is
4059 # what configure does when it calls configure scripts in
4060 # subdirectories, so they share the cache.
4061 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4062 # config.status only pays attention to the cache file if you give it the
4063 # --recheck option to rerun configure.
4064 #
4065 EOF
4066 # The following way of writing the cache mishandles newlines in values,
4067 # but we know of no workaround that is simple, portable, and efficient.
4068 # So, don't put newlines in cache variables' values.
4069 # Ultrix sh set writes to stderr and can't be redirected directly,
4070 # and sets the high bit in the cache file unless we assign to the vars.
4071 (set) 2>&1 |
4072 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4073 *ac_space=\ *)
4074 # `set' does not quote correctly, so add quotes (double-quote substitution
4075 # turns \\\\ into \\, and sed turns \\ into \).
4076 sed -n \
4077 -e "s/'/'\\\\''/g" \
4078 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4079 ;;
4080 *)
4081 # `set' quotes correctly as required by POSIX, so do not add quotes.
4082 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4083 ;;
4084 esac >> confcache
4085 if cmp -s $cache_file confcache; then
4086 :
4087 else
4088 if test -w $cache_file; then
4089 echo "updating cache $cache_file"
4090 cat confcache > $cache_file
4091 else
4092 echo "not updating unwritable cache $cache_file"
4093 fi
4094 fi
4095 rm -f confcache
4096
4097
4098 # If we find X, set shell vars x_includes and x_libraries to the
4099 # paths, otherwise set no_x=yes.
4100 # Uses ac_ vars as temps to allow command line to override cache and checks.
4101 # --without-x overrides everything else, but does not touch the cache.
4102 echo $ac_n "checking for X""... $ac_c" 1>&6
4103 echo "configure:4104: checking for X" >&5
4104
4105 # Check whether --with-x or --without-x was given.
4106 if test "${with_x+set}" = set; then
4107 withval="$with_x"
4108 :
4109 fi
4110
4111 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4112 if test "x$with_x" = xno; then
4113 # The user explicitly disabled X.
4114 have_x=disabled
4115 else
4116 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4117 # Both variables are already set.
4118 have_x=yes
4119 else
4120 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
4121 echo $ac_n "(cached) $ac_c" 1>&6
4122 else
4123 # One or both of the vars are not set, and there is no cached value.
4124 ac_x_includes=NO ac_x_libraries=NO
4125 rm -fr conftestdir
4126 if mkdir conftestdir; then
4127 cd conftestdir
4128 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4129 cat > Imakefile <<'EOF'
4130 acfindx:
4131 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4132 EOF
4133 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4134 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4135 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4136 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4137 for ac_extension in a so sl; do
4138 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4139 test -f $ac_im_libdir/libX11.$ac_extension; then
4140 ac_im_usrlibdir=$ac_im_libdir; break
4141 fi
4142 done
4143 # Screen out bogus values from the imake configuration. They are
4144 # bogus both because they are the default anyway, and because
4145 # using them would break gcc on systems where it needs fixed includes.
4146 case "$ac_im_incroot" in
4147 /usr/include) ;;
4148 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
4149 esac
4150 case "$ac_im_usrlibdir" in
4151 /usr/lib | /lib) ;;
4152 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
4153 esac
4154 fi
4155 cd ..
4156 rm -fr conftestdir
4157 fi
4158
4159 if test "$ac_x_includes" = NO; then
4160 # Guess where to find include files, by looking for this one X11 .h file.
4161 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
4162
4163 # First, try using that file with no special directory specified.
4164 cat > conftest.$ac_ext <<EOF
4165 #line 4166 "configure"
4166 #include "confdefs.h"
4167 #include <$x_direct_test_include>
4168 EOF
4169 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4170 { (eval echo configure:4171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4171 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4172 if test -z "$ac_err"; then
4173 rm -rf conftest*
4174 # We can compile using X headers with no special include directory.
4175 ac_x_includes=
4176 else
4177 echo "$ac_err" >&5
4178 echo "configure: failed program was:" >&5
4179 cat conftest.$ac_ext >&5
4180 rm -rf conftest*
4181 # Look for the header file in a standard set of common directories.
4182 # Check X11 before X11Rn because it is often a symlink to the current release.
4183 for ac_dir in \
4184 /usr/X11/include \
4185 /usr/X11R6/include \
4186 /usr/X11R5/include \
4187 /usr/X11R4/include \
4188 \
4189 /usr/include/X11 \
4190 /usr/include/X11R6 \
4191 /usr/include/X11R5 \
4192 /usr/include/X11R4 \
4193 \
4194 /usr/local/X11/include \
4195 /usr/local/X11R6/include \
4196 /usr/local/X11R5/include \
4197 /usr/local/X11R4/include \
4198 \
4199 /usr/local/include/X11 \
4200 /usr/local/include/X11R6 \
4201 /usr/local/include/X11R5 \
4202 /usr/local/include/X11R4 \
4203 \
4204 /usr/X386/include \
4205 /usr/x386/include \
4206 /usr/XFree86/include/X11 \
4207 \
4208 /usr/include \
4209 /usr/local/include \
4210 /usr/unsupported/include \
4211 /usr/athena/include \
4212 /usr/local/x11r5/include \
4213 /usr/lpp/Xamples/include \
4214 \
4215 /usr/openwin/include \
4216 /usr/openwin/share/include \
4217 ; \
4218 do
4219 if test -r "$ac_dir/$x_direct_test_include"; then
4220 ac_x_includes=$ac_dir
4221 break
4222 fi
4223 done
4224 fi
4225 rm -f conftest*
4226 fi # $ac_x_includes = NO
4227
4228 if test "$ac_x_libraries" = NO; then
4229 # Check for the libraries.
4230
4231 test -z "$x_direct_test_library" && x_direct_test_library=Xt
4232 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
4233
4234 # See if we find them without any special options.
4235 # Don't add to $LIBS permanently.
4236 ac_save_LIBS="$LIBS"
4237 LIBS="-l$x_direct_test_library $LIBS"
4238 cat > conftest.$ac_ext <<EOF
4239 #line 4240 "configure"
4240 #include "confdefs.h"
4241
4242 int main() {
4243 ${x_direct_test_function}()
4244 ; return 0; }
4245 EOF
4246 if { (eval echo configure:4247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4247 rm -rf conftest*
4248 LIBS="$ac_save_LIBS"
4249 # We can link X programs with no special library path.
4250 ac_x_libraries=
4251 else
4252 echo "configure: failed program was:" >&5
4253 cat conftest.$ac_ext >&5
4254 rm -rf conftest*
4255 LIBS="$ac_save_LIBS"
4256 # First see if replacing the include by lib works.
4257 # Check X11 before X11Rn because it is often a symlink to the current release.
4258 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
4259 /usr/X11/lib \
4260 /usr/X11R6/lib \
4261 /usr/X11R5/lib \
4262 /usr/X11R4/lib \
4263 \
4264 /usr/lib/X11 \
4265 /usr/lib/X11R6 \
4266 /usr/lib/X11R5 \
4267 /usr/lib/X11R4 \
4268 \
4269 /usr/local/X11/lib \
4270 /usr/local/X11R6/lib \
4271 /usr/local/X11R5/lib \
4272 /usr/local/X11R4/lib \
4273 \
4274 /usr/local/lib/X11 \
4275 /usr/local/lib/X11R6 \
4276 /usr/local/lib/X11R5 \
4277 /usr/local/lib/X11R4 \
4278 \
4279 /usr/X386/lib \
4280 /usr/x386/lib \
4281 /usr/XFree86/lib/X11 \
4282 \
4283 /usr/lib \
4284 /usr/local/lib \
4285 /usr/unsupported/lib \
4286 /usr/athena/lib \
4287 /usr/local/x11r5/lib \
4288 /usr/lpp/Xamples/lib \
4289 /lib/usr/lib/X11 \
4290 \
4291 /usr/openwin/lib \
4292 /usr/openwin/share/lib \
4293 ; \
4294 do
4295 for ac_extension in a so sl; do
4296 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
4297 ac_x_libraries=$ac_dir
4298 break 2
4299 fi
4300 done
4301 done
4302 fi
4303 rm -f conftest*
4304 fi # $ac_x_libraries = NO
4305
4306 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
4307 # Didn't find X anywhere. Cache the known absence of X.
4308 ac_cv_have_x="have_x=no"
4309 else
4310 # Record where we found X for the cache.
4311 ac_cv_have_x="have_x=yes \
4312 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4313 fi
4314 fi
4315 fi
4316 eval "$ac_cv_have_x"
4317 fi # $with_x != no
4318
4319 if test "$have_x" != yes; then
4320 echo "$ac_t""$have_x" 1>&6
4321 no_x=yes
4322 else
4323 # If each of the values was on the command line, it overrides each guess.
4324 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4325 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4326 # Update the cache value to reflect the command line values.
4327 ac_cv_have_x="have_x=yes \
4328 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4329 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
4330 fi
4331
4332 if test "$no_x" = yes; then
4333 # Not all programs may use this symbol, but it does not hurt to define it.
4334 cat >> confdefs.h <<\EOF
4335 #define X_DISPLAY_MISSING 1
4336 EOF
4337
4338 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4339 else
4340 if test -n "$x_includes"; then
4341 X_CFLAGS="$X_CFLAGS -I$x_includes"
4342 fi
4343
4344 # It would also be nice to do this for all -L options, not just this one.
4345 if test -n "$x_libraries"; then
4346 X_LIBS="$X_LIBS -L$x_libraries"
4347 # For Solaris; some versions of Sun CC require a space after -R and
4348 # others require no space. Words are not sufficient . . . .
4349 case "`(uname -sr) 2>/dev/null`" in
4350 "SunOS 5"*)
4351 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
4352 echo "configure:4353: checking whether -R must be followed by a space" >&5
4353 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
4354 cat > conftest.$ac_ext <<EOF
4355 #line 4356 "configure"
4356 #include "confdefs.h"
4357
4358 int main() {
4359
4360 ; return 0; }
4361 EOF
4362 if { (eval echo configure:4363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4363 rm -rf conftest*
4364 ac_R_nospace=yes
4365 else
4366 echo "configure: failed program was:" >&5
4367 cat conftest.$ac_ext >&5
4368 rm -rf conftest*
4369 ac_R_nospace=no
4370 fi
4371 rm -f conftest*
4372 if test $ac_R_nospace = yes; then
4373 echo "$ac_t""no" 1>&6
4374 X_LIBS="$X_LIBS -R$x_libraries"
4375 else
4376 LIBS="$ac_xsave_LIBS -R $x_libraries"
4377 cat > conftest.$ac_ext <<EOF
4378 #line 4379 "configure"
4379 #include "confdefs.h"
4380
4381 int main() {
4382
4383 ; return 0; }
4384 EOF
4385 if { (eval echo configure:4386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4386 rm -rf conftest*
4387 ac_R_space=yes
4388 else
4389 echo "configure: failed program was:" >&5
4390 cat conftest.$ac_ext >&5
4391 rm -rf conftest*
4392 ac_R_space=no
4393 fi
4394 rm -f conftest*
4395 if test $ac_R_space = yes; then
4396 echo "$ac_t""yes" 1>&6
4397 X_LIBS="$X_LIBS -R $x_libraries"
4398 else
4399 echo "$ac_t""neither works" 1>&6
4400 fi
4401 fi
4402 LIBS="$ac_xsave_LIBS"
4403 esac
4404 fi
4405
4406 # Check for system-dependent libraries X programs must link with.
4407 # Do this before checking for the system-independent R6 libraries
4408 # (-lICE), since we may need -lsocket or whatever for X linking.
4409
4410 if test "$ISC" = yes; then
4411 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4412 else
4413 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
4414 # libraries were built with DECnet support. And karl@cs.umb.edu says
4415 # the Alpha needs dnet_stub (dnet does not exist).
4416 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
4417 echo "configure:4418: checking for dnet_ntoa in -ldnet" >&5
4418 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4419 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4420 echo $ac_n "(cached) $ac_c" 1>&6
4421 else
4422 ac_save_LIBS="$LIBS"
4423 LIBS="-ldnet $LIBS"
4424 cat > conftest.$ac_ext <<EOF
4425 #line 4426 "configure"
4426 #include "confdefs.h"
4427 /* Override any gcc2 internal prototype to avoid an error. */
4428 /* We use char because int might match the return type of a gcc2
4429 builtin and then its argument prototype would still apply. */
4430 char dnet_ntoa();
4431
4432 int main() {
4433 dnet_ntoa()
4434 ; return 0; }
4435 EOF
4436 if { (eval echo configure:4437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4437 rm -rf conftest*
4438 eval "ac_cv_lib_$ac_lib_var=yes"
4439 else
4440 echo "configure: failed program was:" >&5
4441 cat conftest.$ac_ext >&5
4442 rm -rf conftest*
4443 eval "ac_cv_lib_$ac_lib_var=no"
4444 fi
4445 rm -f conftest*
4446 LIBS="$ac_save_LIBS"
4447
4448 fi
4449 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4450 echo "$ac_t""yes" 1>&6
4451 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4452 else
4453 echo "$ac_t""no" 1>&6
4454 fi
4455
4456 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4457 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
4458 echo "configure:4459: checking for dnet_ntoa in -ldnet_stub" >&5
4459 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4460 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4461 echo $ac_n "(cached) $ac_c" 1>&6
4462 else
4463 ac_save_LIBS="$LIBS"
4464 LIBS="-ldnet_stub $LIBS"
4465 cat > conftest.$ac_ext <<EOF
4466 #line 4467 "configure"
4467 #include "confdefs.h"
4468 /* Override any gcc2 internal prototype to avoid an error. */
4469 /* We use char because int might match the return type of a gcc2
4470 builtin and then its argument prototype would still apply. */
4471 char dnet_ntoa();
4472
4473 int main() {
4474 dnet_ntoa()
4475 ; return 0; }
4476 EOF
4477 if { (eval echo configure:4478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4478 rm -rf conftest*
4479 eval "ac_cv_lib_$ac_lib_var=yes"
4480 else
4481 echo "configure: failed program was:" >&5
4482 cat conftest.$ac_ext >&5
4483 rm -rf conftest*
4484 eval "ac_cv_lib_$ac_lib_var=no"
4485 fi
4486 rm -f conftest*
4487 LIBS="$ac_save_LIBS"
4488
4489 fi
4490 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4491 echo "$ac_t""yes" 1>&6
4492 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4493 else
4494 echo "$ac_t""no" 1>&6
4495 fi
4496
4497 fi
4498
4499 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4500 # to get the SysV transport functions.
4501 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
4502 # needs -lnsl.
4503 # The nsl library prevents programs from opening the X display
4504 # on Irix 5.2, according to dickey@clark.net.
4505 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
4506 echo "configure:4507: checking for gethostbyname" >&5
4507 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
4508 echo $ac_n "(cached) $ac_c" 1>&6
4509 else
4510 cat > conftest.$ac_ext <<EOF
4511 #line 4512 "configure"
4512 #include "confdefs.h"
4513 /* System header to define __stub macros and hopefully few prototypes,
4514 which can conflict with char gethostbyname(); below. */
4515 #include <assert.h>
4516 /* Override any gcc2 internal prototype to avoid an error. */
4517 /* We use char because int might match the return type of a gcc2
4518 builtin and then its argument prototype would still apply. */
4519 char gethostbyname();
4520
4521 int main() {
4522
4523 /* The GNU C library defines this for functions which it implements
4524 to always fail with ENOSYS. Some functions are actually named
4525 something starting with __ and the normal name is an alias. */
4526 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4527 choke me
4528 #else
4529 gethostbyname();
4530 #endif
4531
4532 ; return 0; }
4533 EOF
4534 if { (eval echo configure:4535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4535 rm -rf conftest*
4536 eval "ac_cv_func_gethostbyname=yes"
4537 else
4538 echo "configure: failed program was:" >&5
4539 cat conftest.$ac_ext >&5
4540 rm -rf conftest*
4541 eval "ac_cv_func_gethostbyname=no"
4542 fi
4543 rm -f conftest*
4544 fi
4545
4546 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
4547 echo "$ac_t""yes" 1>&6
4548 :
4549 else
4550 echo "$ac_t""no" 1>&6
4551 fi
4552
4553 if test $ac_cv_func_gethostbyname = no; then
4554 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
4555 echo "configure:4556: checking for gethostbyname in -lnsl" >&5
4556 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
4557 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4558 echo $ac_n "(cached) $ac_c" 1>&6
4559 else
4560 ac_save_LIBS="$LIBS"
4561 LIBS="-lnsl $LIBS"
4562 cat > conftest.$ac_ext <<EOF
4563 #line 4564 "configure"
4564 #include "confdefs.h"
4565 /* Override any gcc2 internal prototype to avoid an error. */
4566 /* We use char because int might match the return type of a gcc2
4567 builtin and then its argument prototype would still apply. */
4568 char gethostbyname();
4569
4570 int main() {
4571 gethostbyname()
4572 ; return 0; }
4573 EOF
4574 if { (eval echo configure:4575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4575 rm -rf conftest*
4576 eval "ac_cv_lib_$ac_lib_var=yes"
4577 else
4578 echo "configure: failed program was:" >&5
4579 cat conftest.$ac_ext >&5
4580 rm -rf conftest*
4581 eval "ac_cv_lib_$ac_lib_var=no"
4582 fi
4583 rm -f conftest*
4584 LIBS="$ac_save_LIBS"
4585
4586 fi
4587 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4588 echo "$ac_t""yes" 1>&6
4589 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4590 else
4591 echo "$ac_t""no" 1>&6
4592 fi
4593
4594 fi
4595
4596 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4597 # socket/setsockopt and other routines are undefined under SCO ODT
4598 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4599 # on later versions), says simon@lia.di.epfl.ch: it contains
4600 # gethostby* variants that don't use the nameserver (or something).
4601 # -lsocket must be given before -lnsl if both are needed.
4602 # We assume that if connect needs -lnsl, so does gethostbyname.
4603 echo $ac_n "checking for connect""... $ac_c" 1>&6
4604 echo "configure:4605: checking for connect" >&5
4605 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
4606 echo $ac_n "(cached) $ac_c" 1>&6
4607 else
4608 cat > conftest.$ac_ext <<EOF
4609 #line 4610 "configure"
4610 #include "confdefs.h"
4611 /* System header to define __stub macros and hopefully few prototypes,
4612 which can conflict with char connect(); below. */
4613 #include <assert.h>
4614 /* Override any gcc2 internal prototype to avoid an error. */
4615 /* We use char because int might match the return type of a gcc2
4616 builtin and then its argument prototype would still apply. */
4617 char connect();
4618
4619 int main() {
4620
4621 /* The GNU C library defines this for functions which it implements
4622 to always fail with ENOSYS. Some functions are actually named
4623 something starting with __ and the normal name is an alias. */
4624 #if defined (__stub_connect) || defined (__stub___connect)
4625 choke me
4626 #else
4627 connect();
4628 #endif
4629
4630 ; return 0; }
4631 EOF
4632 if { (eval echo configure:4633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4633 rm -rf conftest*
4634 eval "ac_cv_func_connect=yes"
4635 else
4636 echo "configure: failed program was:" >&5
4637 cat conftest.$ac_ext >&5
4638 rm -rf conftest*
4639 eval "ac_cv_func_connect=no"
4640 fi
4641 rm -f conftest*
4642 fi
4643
4644 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
4645 echo "$ac_t""yes" 1>&6
4646 :
4647 else
4648 echo "$ac_t""no" 1>&6
4649 fi
4650
4651 if test $ac_cv_func_connect = no; then
4652 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4653 echo "configure:4654: checking for connect in -lsocket" >&5
4654 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4655 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4656 echo $ac_n "(cached) $ac_c" 1>&6
4657 else
4658 ac_save_LIBS="$LIBS"
4659 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4660 cat > conftest.$ac_ext <<EOF
4661 #line 4662 "configure"
4662 #include "confdefs.h"
4663 /* Override any gcc2 internal prototype to avoid an error. */
4664 /* We use char because int might match the return type of a gcc2
4665 builtin and then its argument prototype would still apply. */
4666 char connect();
4667
4668 int main() {
4669 connect()
4670 ; return 0; }
4671 EOF
4672 if { (eval echo configure:4673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4673 rm -rf conftest*
4674 eval "ac_cv_lib_$ac_lib_var=yes"
4675 else
4676 echo "configure: failed program was:" >&5
4677 cat conftest.$ac_ext >&5
4678 rm -rf conftest*
4679 eval "ac_cv_lib_$ac_lib_var=no"
4680 fi
4681 rm -f conftest*
4682 LIBS="$ac_save_LIBS"
4683
4684 fi
4685 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4686 echo "$ac_t""yes" 1>&6
4687 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4688 else
4689 echo "$ac_t""no" 1>&6
4690 fi
4691
4692 fi
4693
4694 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
4695 echo $ac_n "checking for remove""... $ac_c" 1>&6
4696 echo "configure:4697: checking for remove" >&5
4697 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
4698 echo $ac_n "(cached) $ac_c" 1>&6
4699 else
4700 cat > conftest.$ac_ext <<EOF
4701 #line 4702 "configure"
4702 #include "confdefs.h"
4703 /* System header to define __stub macros and hopefully few prototypes,
4704 which can conflict with char remove(); below. */
4705 #include <assert.h>
4706 /* Override any gcc2 internal prototype to avoid an error. */
4707 /* We use char because int might match the return type of a gcc2
4708 builtin and then its argument prototype would still apply. */
4709 char remove();
4710
4711 int main() {
4712
4713 /* The GNU C library defines this for functions which it implements
4714 to always fail with ENOSYS. Some functions are actually named
4715 something starting with __ and the normal name is an alias. */
4716 #if defined (__stub_remove) || defined (__stub___remove)
4717 choke me
4718 #else
4719 remove();
4720 #endif
4721
4722 ; return 0; }
4723 EOF
4724 if { (eval echo configure:4725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4725 rm -rf conftest*
4726 eval "ac_cv_func_remove=yes"
4727 else
4728 echo "configure: failed program was:" >&5
4729 cat conftest.$ac_ext >&5
4730 rm -rf conftest*
4731 eval "ac_cv_func_remove=no"
4732 fi
4733 rm -f conftest*
4734 fi
4735
4736 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
4737 echo "$ac_t""yes" 1>&6
4738 :
4739 else
4740 echo "$ac_t""no" 1>&6
4741 fi
4742
4743 if test $ac_cv_func_remove = no; then
4744 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
4745 echo "configure:4746: checking for remove in -lposix" >&5
4746 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
4747 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4748 echo $ac_n "(cached) $ac_c" 1>&6
4749 else
4750 ac_save_LIBS="$LIBS"
4751 LIBS="-lposix $LIBS"
4752 cat > conftest.$ac_ext <<EOF
4753 #line 4754 "configure"
4754 #include "confdefs.h"
4755 /* Override any gcc2 internal prototype to avoid an error. */
4756 /* We use char because int might match the return type of a gcc2
4757 builtin and then its argument prototype would still apply. */
4758 char remove();
4759
4760 int main() {
4761 remove()
4762 ; return 0; }
4763 EOF
4764 if { (eval echo configure:4765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4765 rm -rf conftest*
4766 eval "ac_cv_lib_$ac_lib_var=yes"
4767 else
4768 echo "configure: failed program was:" >&5
4769 cat conftest.$ac_ext >&5
4770 rm -rf conftest*
4771 eval "ac_cv_lib_$ac_lib_var=no"
4772 fi
4773 rm -f conftest*
4774 LIBS="$ac_save_LIBS"
4775
4776 fi
4777 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4778 echo "$ac_t""yes" 1>&6
4779 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4780 else
4781 echo "$ac_t""no" 1>&6
4782 fi
4783
4784 fi
4785
4786 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4787 echo $ac_n "checking for shmat""... $ac_c" 1>&6
4788 echo "configure:4789: checking for shmat" >&5
4789 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
4790 echo $ac_n "(cached) $ac_c" 1>&6
4791 else
4792 cat > conftest.$ac_ext <<EOF
4793 #line 4794 "configure"
4794 #include "confdefs.h"
4795 /* System header to define __stub macros and hopefully few prototypes,
4796 which can conflict with char shmat(); below. */
4797 #include <assert.h>
4798 /* Override any gcc2 internal prototype to avoid an error. */
4799 /* We use char because int might match the return type of a gcc2
4800 builtin and then its argument prototype would still apply. */
4801 char shmat();
4802
4803 int main() {
4804
4805 /* The GNU C library defines this for functions which it implements
4806 to always fail with ENOSYS. Some functions are actually named
4807 something starting with __ and the normal name is an alias. */
4808 #if defined (__stub_shmat) || defined (__stub___shmat)
4809 choke me
4810 #else
4811 shmat();
4812 #endif
4813
4814 ; return 0; }
4815 EOF
4816 if { (eval echo configure:4817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4817 rm -rf conftest*
4818 eval "ac_cv_func_shmat=yes"
4819 else
4820 echo "configure: failed program was:" >&5
4821 cat conftest.$ac_ext >&5
4822 rm -rf conftest*
4823 eval "ac_cv_func_shmat=no"
4824 fi
4825 rm -f conftest*
4826 fi
4827
4828 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
4829 echo "$ac_t""yes" 1>&6
4830 :
4831 else
4832 echo "$ac_t""no" 1>&6
4833 fi
4834
4835 if test $ac_cv_func_shmat = no; then
4836 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
4837 echo "configure:4838: checking for shmat in -lipc" >&5
4838 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
4839 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4840 echo $ac_n "(cached) $ac_c" 1>&6
4841 else
4842 ac_save_LIBS="$LIBS"
4843 LIBS="-lipc $LIBS"
4844 cat > conftest.$ac_ext <<EOF
4845 #line 4846 "configure"
4846 #include "confdefs.h"
4847 /* Override any gcc2 internal prototype to avoid an error. */
4848 /* We use char because int might match the return type of a gcc2
4849 builtin and then its argument prototype would still apply. */
4850 char shmat();
4851
4852 int main() {
4853 shmat()
4854 ; return 0; }
4855 EOF
4856 if { (eval echo configure:4857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4857 rm -rf conftest*
4858 eval "ac_cv_lib_$ac_lib_var=yes"
4859 else
4860 echo "configure: failed program was:" >&5
4861 cat conftest.$ac_ext >&5
4862 rm -rf conftest*
4863 eval "ac_cv_lib_$ac_lib_var=no"
4864 fi
4865 rm -f conftest*
4866 LIBS="$ac_save_LIBS"
4867
4868 fi
4869 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4870 echo "$ac_t""yes" 1>&6
4871 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4872 else
4873 echo "$ac_t""no" 1>&6
4874 fi
4875
4876 fi
4877 fi
4878
4879 # Check for libraries that X11R6 Xt/Xaw programs need.
4880 ac_save_LDFLAGS="$LDFLAGS"
4881 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4882 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4883 # check for ICE first), but we must link in the order -lSM -lICE or
4884 # we get undefined symbols. So assume we have SM if we have ICE.
4885 # These have to be linked with before -lX11, unlike the other
4886 # libraries we check for below, so use a different variable.
4887 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
4888 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
4889 echo "configure:4890: checking for IceConnectionNumber in -lICE" >&5
4890 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
4891 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4892 echo $ac_n "(cached) $ac_c" 1>&6
4893 else
4894 ac_save_LIBS="$LIBS"
4895 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4896 cat > conftest.$ac_ext <<EOF
4897 #line 4898 "configure"
4898 #include "confdefs.h"
4899 /* Override any gcc2 internal prototype to avoid an error. */
4900 /* We use char because int might match the return type of a gcc2
4901 builtin and then its argument prototype would still apply. */
4902 char IceConnectionNumber();
4903
4904 int main() {
4905 IceConnectionNumber()
4906 ; return 0; }
4907 EOF
4908 if { (eval echo configure:4909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4909 rm -rf conftest*
4910 eval "ac_cv_lib_$ac_lib_var=yes"
4911 else
4912 echo "configure: failed program was:" >&5
4913 cat conftest.$ac_ext >&5
4914 rm -rf conftest*
4915 eval "ac_cv_lib_$ac_lib_var=no"
4916 fi
4917 rm -f conftest*
4918 LIBS="$ac_save_LIBS"
4919
4920 fi
4921 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4922 echo "$ac_t""yes" 1>&6
4923 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4924 else
4925 echo "$ac_t""no" 1>&6
4926 fi
4927
4928 LDFLAGS="$ac_save_LDFLAGS"
4929
4930 fi
4931
4932
4933 if test "$no_x" = "yes"; then
4934 { echo "configure: error: X11 libraries not found" 1>&2; exit 1; }
4935 fi
4936
4937 CHECK_INCLUDE="-I/usr/include $X_CFLAGS"
4938 CHECK_LIB="-L/lib -L/usr/lib $X_LIBS"
4939
4940
4941 TOOLKIT=
4942 TOOLKIT_DEF=
4943 TOOLKIT_DIR=
4944 TOOLKIT_INCLUDE=
4945
4946 GUI_TK_LIBRARY=
4947 GUI_TK_LINK=
4948
4949 WXGTK12=
4950
4951 if test "$wxUSE_GTK" = 1; then
4952 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
4953 if test "${with_gtk_prefix+set}" = set; then
4954 withval="$with_gtk_prefix"
4955 gtk_config_prefix="$withval"
4956 else
4957 gtk_config_prefix=""
4958 fi
4959
4960 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
4961 if test "${with_gtk_exec_prefix+set}" = set; then
4962 withval="$with_gtk_exec_prefix"
4963 gtk_config_exec_prefix="$withval"
4964 else
4965 gtk_config_exec_prefix=""
4966 fi
4967
4968
4969 if test x$gtk_config_exec_prefix != x ; then
4970 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
4971 if test x${GTK_CONFIG+set} != xset ; then
4972 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
4973 fi
4974 fi
4975 if test x$gtk_config_prefix != x ; then
4976 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
4977 if test x${GTK_CONFIG+set} != xset ; then
4978 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
4979 fi
4980 fi
4981
4982 # Extract the first word of "gtk-config", so it can be a program name with args.
4983 set dummy gtk-config; ac_word=$2
4984 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4985 echo "configure:4986: checking for $ac_word" >&5
4986 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
4987 echo $ac_n "(cached) $ac_c" 1>&6
4988 else
4989 case "$GTK_CONFIG" in
4990 /*)
4991 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
4992 ;;
4993 ?:/*)
4994 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
4995 ;;
4996 *)
4997 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4998 ac_dummy="$PATH"
4999 for ac_dir in $ac_dummy; do
5000 test -z "$ac_dir" && ac_dir=.
5001 if test -f $ac_dir/$ac_word; then
5002 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
5003 break
5004 fi
5005 done
5006 IFS="$ac_save_ifs"
5007 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
5008 ;;
5009 esac
5010 fi
5011 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
5012 if test -n "$GTK_CONFIG"; then
5013 echo "$ac_t""$GTK_CONFIG" 1>&6
5014 else
5015 echo "$ac_t""no" 1>&6
5016 fi
5017
5018 min_gtk_version=1.2.0
5019 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
5020 echo "configure:5021: checking for GTK - version >= $min_gtk_version" >&5
5021 no_gtk=""
5022 if test "$GTK_CONFIG" != "no" ; then
5023 GTK_CFLAGS=`$GTK_CONFIG --cflags`
5024 GTK_LIBS=`$GTK_CONFIG --libs`
5025 ac_save_CFLAGS="$CFLAGS"
5026 ac_save_LIBS="$LIBS"
5027 CFLAGS="$CFLAGS $GTK_CFLAGS"
5028 LIBS="$LIBS $GTK_LIBS"
5029 if test "$cross_compiling" = yes; then
5030 echo $ac_n "cross compiling; assumed OK... $ac_c"
5031 else
5032 cat > conftest.$ac_ext <<EOF
5033 #line 5034 "configure"
5034 #include "confdefs.h"
5035
5036 #include <gtk/gtk.h>
5037 #include <stdio.h>
5038
5039 int
5040 main ()
5041 {
5042 int major, minor, micro;
5043
5044 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
5045 printf("%s, bad version string\n", "$min_gtk_version");
5046 exit(1);
5047 }
5048
5049 if (gtk_minor_version == 1) return FALSE;
5050
5051 return !((gtk_major_version > major) ||
5052 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
5053 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
5054 }
5055
5056 EOF
5057 if { (eval echo configure:5058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5058 then
5059 :
5060 else
5061 echo "configure: failed program was:" >&5
5062 cat conftest.$ac_ext >&5
5063 rm -fr conftest*
5064 no_gtk=yes
5065 fi
5066 rm -fr conftest*
5067 fi
5068
5069 CFLAGS="$ac_save_CFLAGS"
5070 LIBS="$ac_save_LIBS"
5071 else
5072 no_gtk=yes
5073 fi
5074 if test "x$no_gtk" = x ; then
5075 echo "$ac_t""yes" 1>&6
5076 WXGTK12=1
5077 else
5078 echo "$ac_t""no" 1>&6
5079 GTK_CFLAGS=""
5080 GTK_LIBS=""
5081 :
5082 fi
5083
5084
5085
5086 if test "$WXGTK12" != 1; then
5087 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
5088 if test "${with_gtk_prefix+set}" = set; then
5089 withval="$with_gtk_prefix"
5090 gtk_config_prefix="$withval"
5091 else
5092 gtk_config_prefix=""
5093 fi
5094
5095 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
5096 if test "${with_gtk_exec_prefix+set}" = set; then
5097 withval="$with_gtk_exec_prefix"
5098 gtk_config_exec_prefix="$withval"
5099 else
5100 gtk_config_exec_prefix=""
5101 fi
5102
5103
5104 if test x$gtk_config_exec_prefix != x ; then
5105 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
5106 if test x${GTK_CONFIG+set} != xset ; then
5107 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
5108 fi
5109 fi
5110 if test x$gtk_config_prefix != x ; then
5111 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
5112 if test x${GTK_CONFIG+set} != xset ; then
5113 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
5114 fi
5115 fi
5116
5117 # Extract the first word of "gtk-config", so it can be a program name with args.
5118 set dummy gtk-config; ac_word=$2
5119 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5120 echo "configure:5121: checking for $ac_word" >&5
5121 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
5122 echo $ac_n "(cached) $ac_c" 1>&6
5123 else
5124 case "$GTK_CONFIG" in
5125 /*)
5126 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
5127 ;;
5128 ?:/*)
5129 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
5130 ;;
5131 *)
5132 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5133 ac_dummy="$PATH"
5134 for ac_dir in $ac_dummy; do
5135 test -z "$ac_dir" && ac_dir=.
5136 if test -f $ac_dir/$ac_word; then
5137 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
5138 break
5139 fi
5140 done
5141 IFS="$ac_save_ifs"
5142 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
5143 ;;
5144 esac
5145 fi
5146 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
5147 if test -n "$GTK_CONFIG"; then
5148 echo "$ac_t""$GTK_CONFIG" 1>&6
5149 else
5150 echo "$ac_t""no" 1>&6
5151 fi
5152
5153 min_gtk_version=1.0.0
5154 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
5155 echo "configure:5156: checking for GTK - version >= $min_gtk_version" >&5
5156 no_gtk=""
5157 if test "$GTK_CONFIG" != "no" ; then
5158 GTK_CFLAGS=`$GTK_CONFIG --cflags`
5159 GTK_LIBS=`$GTK_CONFIG --libs`
5160 ac_save_CFLAGS="$CFLAGS"
5161 ac_save_LIBS="$LIBS"
5162 CFLAGS="$CFLAGS $GTK_CFLAGS"
5163 LIBS="$LIBS $GTK_LIBS"
5164 if test "$cross_compiling" = yes; then
5165 echo $ac_n "cross compiling; assumed OK... $ac_c"
5166 else
5167 cat > conftest.$ac_ext <<EOF
5168 #line 5169 "configure"
5169 #include "confdefs.h"
5170
5171 #include <gtk/gtk.h>
5172 #include <stdio.h>
5173
5174 int
5175 main ()
5176 {
5177 int major, minor, micro;
5178
5179 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
5180 printf("%s, bad version string\n", "$min_gtk_version");
5181 exit(1);
5182 }
5183
5184 if (gtk_minor_version == 1) return FALSE;
5185
5186 return !((gtk_major_version > major) ||
5187 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
5188 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
5189 }
5190
5191 EOF
5192 if { (eval echo configure:5193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5193 then
5194 :
5195 else
5196 echo "configure: failed program was:" >&5
5197 cat conftest.$ac_ext >&5
5198 rm -fr conftest*
5199 no_gtk=yes
5200 fi
5201 rm -fr conftest*
5202 fi
5203
5204 CFLAGS="$ac_save_CFLAGS"
5205 LIBS="$ac_save_LIBS"
5206 else
5207 no_gtk=yes
5208 fi
5209 if test "x$no_gtk" = x ; then
5210 echo "$ac_t""yes" 1>&6
5211 :
5212 else
5213 echo "$ac_t""no" 1>&6
5214 GTK_CFLAGS=""
5215 GTK_LIBS=""
5216 { echo "configure: error: Is gtk-config in path and GTK+ is version 1.2.X or 1.0.X?" 1>&2; exit 1; }
5217 fi
5218
5219
5220
5221 fi
5222
5223 TOOLKIT_INCLUDE="$GTK_CFLAGS"
5224 GUI_TK_LIBRARY="$GTK_LIBS"
5225
5226 TOOLKIT=GTK
5227 LTLIBOBJS="$LTLIBOBJS image.lo utilsgtk.lo win_gtk.lo"
5228 fi
5229
5230 if test "$wxUSE_MOTIF" = 1; then
5231 echo $ac_n "checking for Motif/Lesstif includes""... $ac_c" 1>&6
5232 echo "configure:5233: checking for Motif/Lesstif includes" >&5
5233
5234 ac_find_includes=
5235 for ac_dir in $SEARCH_INCLUDE;
5236 do
5237 if test -f "$ac_dir/Xm/Xm.h"; then
5238 ac_find_includes=$ac_dir
5239 break
5240 fi
5241 done
5242
5243 if test "$ac_find_includes" != "" ; then
5244 echo "$ac_t""found $ac_find_includes" 1>&6
5245 else
5246 echo "$ac_t""no" 1>&6
5247 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
5248 fi
5249
5250 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
5251 echo "configure:5252: checking for Motif/Lesstif library" >&5
5252
5253 ac_find_libraries=
5254 for ac_dir in $SEARCH_LIB;
5255 do
5256 for ac_extension in a so sl; do
5257 if test -f "$ac_dir/libXm.$ac_extension"; then
5258 ac_find_libraries=$ac_dir
5259 break 2
5260 fi
5261 done
5262 done
5263
5264 if test "$ac_find_libraries" != "" ; then
5265
5266 ac_path_to_include=$ac_find_includes
5267 echo "$CHECK_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
5268 result=$?
5269 if test $result = 0; then
5270 ac_path_to_include=""
5271 else
5272 ac_path_to_include="-I$ac_find_includes"
5273 fi
5274
5275
5276 echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev/null
5277 result=$?
5278 if test $result = 0; then
5279 ac_path_to_link=""
5280 else
5281 ac_path_to_link="-L$ac_find_libraries"
5282 fi
5283
5284
5285 CHECK_LINK="$CHECK_LIB $ac_path_to_link"
5286 CHECK_INCLUDE="$CHECK_INCLUDE $ac_path_to_include"
5287 echo "$ac_t""found at $ac_find_libraries" 1>&6
5288 else
5289 echo "$ac_t""no" 1>&6
5290 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
5291 fi
5292
5293 echo $ac_n "checking for Xt library""... $ac_c" 1>&6
5294 echo "configure:5295: checking for Xt library" >&5
5295
5296 ac_find_libraries=
5297 for ac_dir in $SEARCH_LIB;
5298 do
5299 for ac_extension in a so sl; do
5300 if test -f "$ac_dir/libXt.$ac_extension"; then
5301 ac_find_libraries=$ac_dir
5302 break 2
5303 fi
5304 done
5305 done
5306
5307 if test "$ac_find_libraries" != "" ; then
5308
5309 echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev/null
5310 result=$?
5311 if test $result = 0; then
5312 ac_path_to_link=""
5313 else
5314 ac_path_to_link="-L$ac_find_libraries"
5315 fi
5316
5317 CHECK_LINK="$CHECK_LIB $ac_path_to_link"
5318 echo "$ac_t""found at $ac_find_libraries" 1>&6
5319 else
5320 echo "$ac_t""no" 1>&6
5321 { echo "configure: error: please set LDFLAGS to contain the location of libXt" 1>&2; exit 1; }
5322 fi
5323
5324 XPM_LINK=""
5325 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
5326 echo "configure:5327: checking for Xpm library" >&5
5327
5328 ac_find_libraries=
5329 for ac_dir in $SEARCH_LIB;
5330 do
5331 for ac_extension in a so sl; do
5332 if test -f "$ac_dir/libXpm.$ac_extension"; then
5333 ac_find_libraries=$ac_dir
5334 break 2
5335 fi
5336 done
5337 done
5338
5339 if test "$ac_find_libraries" != "" ; then
5340
5341 echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev/null
5342 result=$?
5343 if test $result = 0; then
5344 ac_path_to_link=""
5345 else
5346 ac_path_to_link="-L$ac_find_libraries"
5347 fi
5348
5349 CHECK_LINK="$CHECK_LIB $ac_path_to_link"
5350 XPM_LINK="-lXpm "
5351 cat >> confdefs.h <<\EOF
5352 #define wxHAVE_LIB_XPM 1
5353 EOF
5354
5355 echo "$ac_t""found at $ac_find_libraries" 1>&6
5356 else
5357 echo "$ac_t""no" 1>&6
5358 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
5359 fi
5360
5361 GUI_TK_LINK="-lXm $(XPM_LINK)-lXmu -lXt -lX11 -lm"
5362 GUI_TK_LIBRARY="$CHECK_LIB $GUI_TK_LINK"
5363 TOOLKIT=MOTIF
5364 fi
5365
5366 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "A-Z" "a-z"`
5367
5368 TOOLKIT_DEF=-D__WX${TOOLKIT}__
5369
5370 WX_LIBRARY=${TOOLKIT_DIR}2
5371
5372
5373 for ac_hdr in strings.h
5374 do
5375 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5376 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5377 echo "configure:5378: checking for $ac_hdr" >&5
5378 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5379 echo $ac_n "(cached) $ac_c" 1>&6
5380 else
5381 cat > conftest.$ac_ext <<EOF
5382 #line 5383 "configure"
5383 #include "confdefs.h"
5384 #include <$ac_hdr>
5385 EOF
5386 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5387 { (eval echo configure:5388: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5388 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5389 if test -z "$ac_err"; then
5390 rm -rf conftest*
5391 eval "ac_cv_header_$ac_safe=yes"
5392 else
5393 echo "$ac_err" >&5
5394 echo "configure: failed program was:" >&5
5395 cat conftest.$ac_ext >&5
5396 rm -rf conftest*
5397 eval "ac_cv_header_$ac_safe=no"
5398 fi
5399 rm -f conftest*
5400 fi
5401 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5402 echo "$ac_t""yes" 1>&6
5403 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5404 cat >> confdefs.h <<EOF
5405 #define $ac_tr_hdr 1
5406 EOF
5407
5408 else
5409 echo "$ac_t""no" 1>&6
5410 fi
5411 done
5412
5413 for ac_hdr in unistd.h
5414 do
5415 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5416 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5417 echo "configure:5418: checking for $ac_hdr" >&5
5418 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5419 echo $ac_n "(cached) $ac_c" 1>&6
5420 else
5421 cat > conftest.$ac_ext <<EOF
5422 #line 5423 "configure"
5423 #include "confdefs.h"
5424 #include <$ac_hdr>
5425 EOF
5426 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5427 { (eval echo configure:5428: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5428 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5429 if test -z "$ac_err"; then
5430 rm -rf conftest*
5431 eval "ac_cv_header_$ac_safe=yes"
5432 else
5433 echo "$ac_err" >&5
5434 echo "configure: failed program was:" >&5
5435 cat conftest.$ac_ext >&5
5436 rm -rf conftest*
5437 eval "ac_cv_header_$ac_safe=no"
5438 fi
5439 rm -f conftest*
5440 fi
5441 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5442 echo "$ac_t""yes" 1>&6
5443 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5444 cat >> confdefs.h <<EOF
5445 #define $ac_tr_hdr 1
5446 EOF
5447
5448 else
5449 echo "$ac_t""no" 1>&6
5450 fi
5451 done
5452
5453 for ac_hdr in wchar.h
5454 do
5455 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5456 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5457 echo "configure:5458: checking for $ac_hdr" >&5
5458 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5459 echo $ac_n "(cached) $ac_c" 1>&6
5460 else
5461 cat > conftest.$ac_ext <<EOF
5462 #line 5463 "configure"
5463 #include "confdefs.h"
5464 #include <$ac_hdr>
5465 EOF
5466 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5467 { (eval echo configure:5468: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5468 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5469 if test -z "$ac_err"; then
5470 rm -rf conftest*
5471 eval "ac_cv_header_$ac_safe=yes"
5472 else
5473 echo "$ac_err" >&5
5474 echo "configure: failed program was:" >&5
5475 cat conftest.$ac_ext >&5
5476 rm -rf conftest*
5477 eval "ac_cv_header_$ac_safe=no"
5478 fi
5479 rm -f conftest*
5480 fi
5481 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5482 echo "$ac_t""yes" 1>&6
5483 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5484 cat >> confdefs.h <<EOF
5485 #define $ac_tr_hdr 1
5486 EOF
5487
5488 else
5489 echo "$ac_t""no" 1>&6
5490 fi
5491 done
5492
5493 for ac_hdr in wcstr.h
5494 do
5495 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5496 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5497 echo "configure:5498: checking for $ac_hdr" >&5
5498 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5499 echo $ac_n "(cached) $ac_c" 1>&6
5500 else
5501 cat > conftest.$ac_ext <<EOF
5502 #line 5503 "configure"
5503 #include "confdefs.h"
5504 #include <$ac_hdr>
5505 EOF
5506 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5507 { (eval echo configure:5508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5508 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5509 if test -z "$ac_err"; then
5510 rm -rf conftest*
5511 eval "ac_cv_header_$ac_safe=yes"
5512 else
5513 echo "$ac_err" >&5
5514 echo "configure: failed program was:" >&5
5515 cat conftest.$ac_ext >&5
5516 rm -rf conftest*
5517 eval "ac_cv_header_$ac_safe=no"
5518 fi
5519 rm -f conftest*
5520 fi
5521 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5522 echo "$ac_t""yes" 1>&6
5523 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5524 cat >> confdefs.h <<EOF
5525 #define $ac_tr_hdr 1
5526 EOF
5527
5528 else
5529 echo "$ac_t""no" 1>&6
5530 fi
5531 done
5532
5533 for ac_hdr in fnmatch.h
5534 do
5535 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5536 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5537 echo "configure:5538: checking for $ac_hdr" >&5
5538 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5539 echo $ac_n "(cached) $ac_c" 1>&6
5540 else
5541 cat > conftest.$ac_ext <<EOF
5542 #line 5543 "configure"
5543 #include "confdefs.h"
5544 #include <$ac_hdr>
5545 EOF
5546 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5547 { (eval echo configure:5548: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5548 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5549 if test -z "$ac_err"; then
5550 rm -rf conftest*
5551 eval "ac_cv_header_$ac_safe=yes"
5552 else
5553 echo "$ac_err" >&5
5554 echo "configure: failed program was:" >&5
5555 cat conftest.$ac_ext >&5
5556 rm -rf conftest*
5557 eval "ac_cv_header_$ac_safe=no"
5558 fi
5559 rm -f conftest*
5560 fi
5561 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5562 echo "$ac_t""yes" 1>&6
5563 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5564 cat >> confdefs.h <<EOF
5565 #define $ac_tr_hdr 1
5566 EOF
5567
5568 else
5569 echo "$ac_t""no" 1>&6
5570 fi
5571 done
5572
5573
5574
5575 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5576 echo "configure:5577: checking for ANSI C header files" >&5
5577 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5578 echo $ac_n "(cached) $ac_c" 1>&6
5579 else
5580 cat > conftest.$ac_ext <<EOF
5581 #line 5582 "configure"
5582 #include "confdefs.h"
5583 #include <stdlib.h>
5584 #include <stdarg.h>
5585 #include <string.h>
5586 #include <float.h>
5587 EOF
5588 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5589 { (eval echo configure:5590: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5590 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5591 if test -z "$ac_err"; then
5592 rm -rf conftest*
5593 ac_cv_header_stdc=yes
5594 else
5595 echo "$ac_err" >&5
5596 echo "configure: failed program was:" >&5
5597 cat conftest.$ac_ext >&5
5598 rm -rf conftest*
5599 ac_cv_header_stdc=no
5600 fi
5601 rm -f conftest*
5602
5603 if test $ac_cv_header_stdc = yes; then
5604 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5605 cat > conftest.$ac_ext <<EOF
5606 #line 5607 "configure"
5607 #include "confdefs.h"
5608 #include <string.h>
5609 EOF
5610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5611 egrep "memchr" >/dev/null 2>&1; then
5612 :
5613 else
5614 rm -rf conftest*
5615 ac_cv_header_stdc=no
5616 fi
5617 rm -f conftest*
5618
5619 fi
5620
5621 if test $ac_cv_header_stdc = yes; then
5622 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5623 cat > conftest.$ac_ext <<EOF
5624 #line 5625 "configure"
5625 #include "confdefs.h"
5626 #include <stdlib.h>
5627 EOF
5628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5629 egrep "free" >/dev/null 2>&1; then
5630 :
5631 else
5632 rm -rf conftest*
5633 ac_cv_header_stdc=no
5634 fi
5635 rm -f conftest*
5636
5637 fi
5638
5639 if test $ac_cv_header_stdc = yes; then
5640 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5641 if test "$cross_compiling" = yes; then
5642 :
5643 else
5644 cat > conftest.$ac_ext <<EOF
5645 #line 5646 "configure"
5646 #include "confdefs.h"
5647 #include <ctype.h>
5648 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5649 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5650 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5651 int main () { int i; for (i = 0; i < 256; i++)
5652 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5653 exit (0); }
5654
5655 EOF
5656 if { (eval echo configure:5657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5657 then
5658 :
5659 else
5660 echo "configure: failed program was:" >&5
5661 cat conftest.$ac_ext >&5
5662 rm -fr conftest*
5663 ac_cv_header_stdc=no
5664 fi
5665 rm -fr conftest*
5666 fi
5667
5668 fi
5669 fi
5670
5671 echo "$ac_t""$ac_cv_header_stdc" 1>&6
5672 if test $ac_cv_header_stdc = yes; then
5673 cat >> confdefs.h <<\EOF
5674 #define STDC_HEADERS 1
5675 EOF
5676
5677 fi
5678
5679 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
5680 echo "configure:5681: checking for mode_t" >&5
5681 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
5682 echo $ac_n "(cached) $ac_c" 1>&6
5683 else
5684 cat > conftest.$ac_ext <<EOF
5685 #line 5686 "configure"
5686 #include "confdefs.h"
5687 #include <sys/types.h>
5688 #if STDC_HEADERS
5689 #include <stdlib.h>
5690 #include <stddef.h>
5691 #endif
5692 EOF
5693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5694 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5695 rm -rf conftest*
5696 ac_cv_type_mode_t=yes
5697 else
5698 rm -rf conftest*
5699 ac_cv_type_mode_t=no
5700 fi
5701 rm -f conftest*
5702
5703 fi
5704 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
5705 if test $ac_cv_type_mode_t = no; then
5706 cat >> confdefs.h <<\EOF
5707 #define mode_t int
5708 EOF
5709
5710 fi
5711
5712 echo $ac_n "checking for off_t""... $ac_c" 1>&6
5713 echo "configure:5714: checking for off_t" >&5
5714 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
5715 echo $ac_n "(cached) $ac_c" 1>&6
5716 else
5717 cat > conftest.$ac_ext <<EOF
5718 #line 5719 "configure"
5719 #include "confdefs.h"
5720 #include <sys/types.h>
5721 #if STDC_HEADERS
5722 #include <stdlib.h>
5723 #include <stddef.h>
5724 #endif
5725 EOF
5726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5727 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5728 rm -rf conftest*
5729 ac_cv_type_off_t=yes
5730 else
5731 rm -rf conftest*
5732 ac_cv_type_off_t=no
5733 fi
5734 rm -f conftest*
5735
5736 fi
5737 echo "$ac_t""$ac_cv_type_off_t" 1>&6
5738 if test $ac_cv_type_off_t = no; then
5739 cat >> confdefs.h <<\EOF
5740 #define off_t long
5741 EOF
5742
5743 fi
5744
5745 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
5746 echo "configure:5747: checking for pid_t" >&5
5747 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
5748 echo $ac_n "(cached) $ac_c" 1>&6
5749 else
5750 cat > conftest.$ac_ext <<EOF
5751 #line 5752 "configure"
5752 #include "confdefs.h"
5753 #include <sys/types.h>
5754 #if STDC_HEADERS
5755 #include <stdlib.h>
5756 #include <stddef.h>
5757 #endif
5758 EOF
5759 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5760 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5761 rm -rf conftest*
5762 ac_cv_type_pid_t=yes
5763 else
5764 rm -rf conftest*
5765 ac_cv_type_pid_t=no
5766 fi
5767 rm -f conftest*
5768
5769 fi
5770 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
5771 if test $ac_cv_type_pid_t = no; then
5772 cat >> confdefs.h <<\EOF
5773 #define pid_t int
5774 EOF
5775
5776 fi
5777
5778 echo $ac_n "checking for size_t""... $ac_c" 1>&6
5779 echo "configure:5780: checking for size_t" >&5
5780 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
5781 echo $ac_n "(cached) $ac_c" 1>&6
5782 else
5783 cat > conftest.$ac_ext <<EOF
5784 #line 5785 "configure"
5785 #include "confdefs.h"
5786 #include <sys/types.h>
5787 #if STDC_HEADERS
5788 #include <stdlib.h>
5789 #include <stddef.h>
5790 #endif
5791 EOF
5792 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5793 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5794 rm -rf conftest*
5795 ac_cv_type_size_t=yes
5796 else
5797 rm -rf conftest*
5798 ac_cv_type_size_t=no
5799 fi
5800 rm -f conftest*
5801
5802 fi
5803 echo "$ac_t""$ac_cv_type_size_t" 1>&6
5804 if test $ac_cv_type_size_t = no; then
5805 cat >> confdefs.h <<\EOF
5806 #define size_t unsigned
5807 EOF
5808
5809 fi
5810
5811 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
5812 echo "configure:5813: checking for uid_t in sys/types.h" >&5
5813 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
5814 echo $ac_n "(cached) $ac_c" 1>&6
5815 else
5816 cat > conftest.$ac_ext <<EOF
5817 #line 5818 "configure"
5818 #include "confdefs.h"
5819 #include <sys/types.h>
5820 EOF
5821 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5822 egrep "uid_t" >/dev/null 2>&1; then
5823 rm -rf conftest*
5824 ac_cv_type_uid_t=yes
5825 else
5826 rm -rf conftest*
5827 ac_cv_type_uid_t=no
5828 fi
5829 rm -f conftest*
5830
5831 fi
5832
5833 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
5834 if test $ac_cv_type_uid_t = no; then
5835 cat >> confdefs.h <<\EOF
5836 #define uid_t int
5837 EOF
5838
5839 cat >> confdefs.h <<\EOF
5840 #define gid_t int
5841 EOF
5842
5843 fi
5844
5845
5846
5847
5848 echo $ac_n "checking for working const""... $ac_c" 1>&6
5849 echo "configure:5850: checking for working const" >&5
5850 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5851 echo $ac_n "(cached) $ac_c" 1>&6
5852 else
5853 cat > conftest.$ac_ext <<EOF
5854 #line 5855 "configure"
5855 #include "confdefs.h"
5856
5857 int main() {
5858
5859 /* Ultrix mips cc rejects this. */
5860 typedef int charset[2]; const charset x;
5861 /* SunOS 4.1.1 cc rejects this. */
5862 char const *const *ccp;
5863 char **p;
5864 /* NEC SVR4.0.2 mips cc rejects this. */
5865 struct point {int x, y;};
5866 static struct point const zero = {0,0};
5867 /* AIX XL C 1.02.0.0 rejects this.
5868 It does not let you subtract one const X* pointer from another in an arm
5869 of an if-expression whose if-part is not a constant expression */
5870 const char *g = "string";
5871 ccp = &g + (g ? g-g : 0);
5872 /* HPUX 7.0 cc rejects these. */
5873 ++ccp;
5874 p = (char**) ccp;
5875 ccp = (char const *const *) p;
5876 { /* SCO 3.2v4 cc rejects this. */
5877 char *t;
5878 char const *s = 0 ? (char *) 0 : (char const *) 0;
5879
5880 *t++ = 0;
5881 }
5882 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5883 int x[] = {25, 17};
5884 const int *foo = &x[0];
5885 ++foo;
5886 }
5887 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5888 typedef const int *iptr;
5889 iptr p = 0;
5890 ++p;
5891 }
5892 { /* AIX XL C 1.02.0.0 rejects this saying
5893 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5894 struct s { int j; const int *ap[3]; };
5895 struct s *b; b->j = 5;
5896 }
5897 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5898 const int foo = 10;
5899 }
5900
5901 ; return 0; }
5902 EOF
5903 if { (eval echo configure:5904: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5904 rm -rf conftest*
5905 ac_cv_c_const=yes
5906 else
5907 echo "configure: failed program was:" >&5
5908 cat conftest.$ac_ext >&5
5909 rm -rf conftest*
5910 ac_cv_c_const=no
5911 fi
5912 rm -f conftest*
5913 fi
5914
5915 echo "$ac_t""$ac_cv_c_const" 1>&6
5916 if test $ac_cv_c_const = no; then
5917 cat >> confdefs.h <<\EOF
5918 #define const
5919 EOF
5920
5921 fi
5922
5923 echo $ac_n "checking for inline""... $ac_c" 1>&6
5924 echo "configure:5925: checking for inline" >&5
5925 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
5926 echo $ac_n "(cached) $ac_c" 1>&6
5927 else
5928 ac_cv_c_inline=no
5929 for ac_kw in inline __inline__ __inline; do
5930 cat > conftest.$ac_ext <<EOF
5931 #line 5932 "configure"
5932 #include "confdefs.h"
5933
5934 int main() {
5935 } $ac_kw foo() {
5936 ; return 0; }
5937 EOF
5938 if { (eval echo configure:5939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5939 rm -rf conftest*
5940 ac_cv_c_inline=$ac_kw; break
5941 else
5942 echo "configure: failed program was:" >&5
5943 cat conftest.$ac_ext >&5
5944 fi
5945 rm -f conftest*
5946 done
5947
5948 fi
5949
5950 echo "$ac_t""$ac_cv_c_inline" 1>&6
5951 case "$ac_cv_c_inline" in
5952 inline | yes) ;;
5953 no) cat >> confdefs.h <<\EOF
5954 #define inline
5955 EOF
5956 ;;
5957 *) cat >> confdefs.h <<EOF
5958 #define inline $ac_cv_c_inline
5959 EOF
5960 ;;
5961 esac
5962
5963
5964 echo $ac_n "checking size of int *""... $ac_c" 1>&6
5965 echo "configure:5966: checking size of int *" >&5
5966 if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
5967 echo $ac_n "(cached) $ac_c" 1>&6
5968 else
5969 if test "$cross_compiling" = yes; then
5970 ac_cv_sizeof_int_p=4
5971 else
5972 cat > conftest.$ac_ext <<EOF
5973 #line 5974 "configure"
5974 #include "confdefs.h"
5975 #include <stdio.h>
5976 main()
5977 {
5978 FILE *f=fopen("conftestval", "w");
5979 if (!f) exit(1);
5980 fprintf(f, "%d\n", sizeof(int *));
5981 exit(0);
5982 }
5983 EOF
5984 if { (eval echo configure:5985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5985 then
5986 ac_cv_sizeof_int_p=`cat conftestval`
5987 else
5988 echo "configure: failed program was:" >&5
5989 cat conftest.$ac_ext >&5
5990 rm -fr conftest*
5991 ac_cv_sizeof_int_p=0
5992 fi
5993 rm -fr conftest*
5994 fi
5995
5996 fi
5997 echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
5998 cat >> confdefs.h <<EOF
5999 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
6000 EOF
6001
6002
6003 echo $ac_n "checking size of int""... $ac_c" 1>&6
6004 echo "configure:6005: checking size of int" >&5
6005 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
6006 echo $ac_n "(cached) $ac_c" 1>&6
6007 else
6008 if test "$cross_compiling" = yes; then
6009 ac_cv_sizeof_int=4
6010 else
6011 cat > conftest.$ac_ext <<EOF
6012 #line 6013 "configure"
6013 #include "confdefs.h"
6014 #include <stdio.h>
6015 main()
6016 {
6017 FILE *f=fopen("conftestval", "w");
6018 if (!f) exit(1);
6019 fprintf(f, "%d\n", sizeof(int));
6020 exit(0);
6021 }
6022 EOF
6023 if { (eval echo configure:6024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6024 then
6025 ac_cv_sizeof_int=`cat conftestval`
6026 else
6027 echo "configure: failed program was:" >&5
6028 cat conftest.$ac_ext >&5
6029 rm -fr conftest*
6030 ac_cv_sizeof_int=0
6031 fi
6032 rm -fr conftest*
6033 fi
6034
6035 fi
6036 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
6037 cat >> confdefs.h <<EOF
6038 #define SIZEOF_INT $ac_cv_sizeof_int
6039 EOF
6040
6041
6042 echo $ac_n "checking size of long""... $ac_c" 1>&6
6043 echo "configure:6044: checking size of long" >&5
6044 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
6045 echo $ac_n "(cached) $ac_c" 1>&6
6046 else
6047 if test "$cross_compiling" = yes; then
6048 ac_cv_sizeof_long=4
6049 else
6050 cat > conftest.$ac_ext <<EOF
6051 #line 6052 "configure"
6052 #include "confdefs.h"
6053 #include <stdio.h>
6054 main()
6055 {
6056 FILE *f=fopen("conftestval", "w");
6057 if (!f) exit(1);
6058 fprintf(f, "%d\n", sizeof(long));
6059 exit(0);
6060 }
6061 EOF
6062 if { (eval echo configure:6063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6063 then
6064 ac_cv_sizeof_long=`cat conftestval`
6065 else
6066 echo "configure: failed program was:" >&5
6067 cat conftest.$ac_ext >&5
6068 rm -fr conftest*
6069 ac_cv_sizeof_long=0
6070 fi
6071 rm -fr conftest*
6072 fi
6073
6074 fi
6075 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
6076 cat >> confdefs.h <<EOF
6077 #define SIZEOF_LONG $ac_cv_sizeof_long
6078 EOF
6079
6080
6081 echo $ac_n "checking size of long long""... $ac_c" 1>&6
6082 echo "configure:6083: checking size of long long" >&5
6083 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
6084 echo $ac_n "(cached) $ac_c" 1>&6
6085 else
6086 if test "$cross_compiling" = yes; then
6087 ac_cv_sizeof_long_long=0
6088 else
6089 cat > conftest.$ac_ext <<EOF
6090 #line 6091 "configure"
6091 #include "confdefs.h"
6092 #include <stdio.h>
6093 main()
6094 {
6095 FILE *f=fopen("conftestval", "w");
6096 if (!f) exit(1);
6097 fprintf(f, "%d\n", sizeof(long long));
6098 exit(0);
6099 }
6100 EOF
6101 if { (eval echo configure:6102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6102 then
6103 ac_cv_sizeof_long_long=`cat conftestval`
6104 else
6105 echo "configure: failed program was:" >&5
6106 cat conftest.$ac_ext >&5
6107 rm -fr conftest*
6108 ac_cv_sizeof_long_long=0
6109 fi
6110 rm -fr conftest*
6111 fi
6112
6113 fi
6114 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
6115 cat >> confdefs.h <<EOF
6116 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6117 EOF
6118
6119
6120
6121
6122 if test "$cross_compiling" = "yes"; then
6123 cat >> confdefs.h <<\EOF
6124 #define wxUSE_IOSTREAMH 1
6125 EOF
6126
6127 else
6128
6129 ac_ext=C
6130 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6131 ac_cpp='$CXXCPP $CPPFLAGS'
6132 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6133 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6134 cross_compiling=$ac_cv_prog_cxx_cross
6135
6136
6137 for ac_hdr in iostream
6138 do
6139 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6140 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6141 echo "configure:6142: checking for $ac_hdr" >&5
6142 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6143 echo $ac_n "(cached) $ac_c" 1>&6
6144 else
6145 cat > conftest.$ac_ext <<EOF
6146 #line 6147 "configure"
6147 #include "confdefs.h"
6148 #include <$ac_hdr>
6149 EOF
6150 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6151 { (eval echo configure:6152: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6152 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6153 if test -z "$ac_err"; then
6154 rm -rf conftest*
6155 eval "ac_cv_header_$ac_safe=yes"
6156 else
6157 echo "$ac_err" >&5
6158 echo "configure: failed program was:" >&5
6159 cat conftest.$ac_ext >&5
6160 rm -rf conftest*
6161 eval "ac_cv_header_$ac_safe=no"
6162 fi
6163 rm -f conftest*
6164 fi
6165 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6166 echo "$ac_t""yes" 1>&6
6167 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6168 cat >> confdefs.h <<EOF
6169 #define $ac_tr_hdr 1
6170 EOF
6171
6172 else
6173 echo "$ac_t""no" 1>&6
6174 fi
6175 done
6176
6177
6178 if test "x$HAVE_IOSTREAM" = x ; then
6179 cat >> confdefs.h <<\EOF
6180 #define wxUSE_IOSTREAMH 1
6181 EOF
6182
6183 else
6184 :
6185 fi
6186
6187 ac_ext=c
6188 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6189 ac_cpp='$CPP $CPPFLAGS'
6190 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6191 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6192 cross_compiling=$ac_cv_prog_cc_cross
6193
6194 fi
6195
6196
6197
6198 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
6199 echo "configure:6200: checking if C++ compiler supports bool" >&5
6200 if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
6201 echo $ac_n "(cached) $ac_c" 1>&6
6202 else
6203
6204
6205 ac_ext=C
6206 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6207 ac_cpp='$CXXCPP $CPPFLAGS'
6208 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6209 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6210 cross_compiling=$ac_cv_prog_cxx_cross
6211
6212
6213 if test "$cross_compiling" = yes; then
6214 wx_cv_cpp_bool=no
6215
6216 else
6217 cat > conftest.$ac_ext <<EOF
6218 #line 6219 "configure"
6219 #include "confdefs.h"
6220 #ifdef __cplusplus
6221 extern "C" void exit(int);
6222 #endif
6223
6224 int main()
6225 {
6226 bool b = true;
6227
6228 return 0;
6229 }
6230
6231 EOF
6232 if { (eval echo configure:6233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6233 then
6234
6235 cat >> confdefs.h <<\EOF
6236 #define HAVE_BOOL 1
6237 EOF
6238
6239 wx_cv_cpp_bool=yes
6240
6241 else
6242 echo "configure: failed program was:" >&5
6243 cat conftest.$ac_ext >&5
6244 rm -fr conftest*
6245 wx_cv_cpp_bool=no
6246 fi
6247 rm -fr conftest*
6248 fi
6249
6250
6251 ac_ext=c
6252 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6253 ac_cpp='$CPP $CPPFLAGS'
6254 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6255 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6256 cross_compiling=$ac_cv_prog_cc_cross
6257
6258
6259 fi
6260
6261 echo "$ac_t""$wx_cv_cpp_bool" 1>&6
6262
6263 if test "$wx_cv_cpp_bool" = "yes"; then
6264 cat >> confdefs.h <<\EOF
6265 #define HAVE_BOOL 1
6266 EOF
6267
6268 fi
6269
6270
6271
6272 echo $ac_n "checking if size_t and int are different types""... $ac_c" 1>&6
6273 echo "configure:6274: checking if size_t and int are different types" >&5
6274 if eval "test \"`echo '$''{'wx_cv_cpp_sizet_not_int'+set}'`\" = set"; then
6275 echo $ac_n "(cached) $ac_c" 1>&6
6276 else
6277
6278
6279 ac_ext=C
6280 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6281 ac_cpp='$CXXCPP $CPPFLAGS'
6282 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6283 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6284 cross_compiling=$ac_cv_prog_cxx_cross
6285
6286
6287 if test "$cross_compiling" = yes; then
6288 wx_cv_cpp_sizet_not_int=no
6289
6290 else
6291 cat > conftest.$ac_ext <<EOF
6292 #line 6293 "configure"
6293 #include "confdefs.h"
6294 #ifdef __cplusplus
6295 extern "C" void exit(int);
6296 #endif
6297
6298 #include <stdlib.h>
6299
6300 class S
6301 {
6302 public:
6303 S(char *s) { m_s = s; }
6304
6305 char operator[](size_t n) const { return m_s[n]; }
6306 char operator[](int n) const { return m_s[n]; }
6307
6308 private:
6309 char *m_s;
6310 };
6311
6312 int main()
6313 {
6314 S s("dummy");
6315 size_t n1 = 2;
6316 int n2 = 3;
6317
6318 return s[n1] == s[n2];
6319 }
6320
6321 EOF
6322 if { (eval echo configure:6323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6323 then
6324 cat >> confdefs.h <<\EOF
6325 #define wxUSE_SIZE_T_STRING_OPERATOR 1
6326 EOF
6327 wx_cv_cpp_sizet_not_int=yes
6328 else
6329 echo "configure: failed program was:" >&5
6330 cat conftest.$ac_ext >&5
6331 rm -fr conftest*
6332 wx_cv_cpp_sizet_not_int=no
6333 fi
6334 rm -fr conftest*
6335 fi
6336
6337
6338 ac_ext=c
6339 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6340 ac_cpp='$CPP $CPPFLAGS'
6341 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6342 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6343 cross_compiling=$ac_cv_prog_cc_cross
6344
6345
6346 fi
6347
6348 echo "$ac_t""$wx_cv_cpp_sizet_not_int" 1>&6
6349
6350
6351
6352 echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
6353 echo "configure:6354: checking for wcslen in -lc" >&5
6354 ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
6355 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6356 echo $ac_n "(cached) $ac_c" 1>&6
6357 else
6358 ac_save_LIBS="$LIBS"
6359 LIBS="-lc $LIBS"
6360 cat > conftest.$ac_ext <<EOF
6361 #line 6362 "configure"
6362 #include "confdefs.h"
6363 /* Override any gcc2 internal prototype to avoid an error. */
6364 /* We use char because int might match the return type of a gcc2
6365 builtin and then its argument prototype would still apply. */
6366 char wcslen();
6367
6368 int main() {
6369 wcslen()
6370 ; return 0; }
6371 EOF
6372 if { (eval echo configure:6373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6373 rm -rf conftest*
6374 eval "ac_cv_lib_$ac_lib_var=yes"
6375 else
6376 echo "configure: failed program was:" >&5
6377 cat conftest.$ac_ext >&5
6378 rm -rf conftest*
6379 eval "ac_cv_lib_$ac_lib_var=no"
6380 fi
6381 rm -f conftest*
6382 LIBS="$ac_save_LIBS"
6383
6384 fi
6385 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6386 echo "$ac_t""yes" 1>&6
6387
6388 cat >> confdefs.h <<\EOF
6389 #define HAVE_WCSLEN 1
6390 EOF
6391
6392 WCHAR_LINK=""
6393
6394 else
6395 echo "$ac_t""no" 1>&6
6396
6397 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
6398 echo "configure:6399: checking for wcslen in -lw" >&5
6399 ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
6400 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6401 echo $ac_n "(cached) $ac_c" 1>&6
6402 else
6403 ac_save_LIBS="$LIBS"
6404 LIBS="-lw $LIBS"
6405 cat > conftest.$ac_ext <<EOF
6406 #line 6407 "configure"
6407 #include "confdefs.h"
6408 /* Override any gcc2 internal prototype to avoid an error. */
6409 /* We use char because int might match the return type of a gcc2
6410 builtin and then its argument prototype would still apply. */
6411 char wcslen();
6412
6413 int main() {
6414 wcslen()
6415 ; return 0; }
6416 EOF
6417 if { (eval echo configure:6418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6418 rm -rf conftest*
6419 eval "ac_cv_lib_$ac_lib_var=yes"
6420 else
6421 echo "configure: failed program was:" >&5
6422 cat conftest.$ac_ext >&5
6423 rm -rf conftest*
6424 eval "ac_cv_lib_$ac_lib_var=no"
6425 fi
6426 rm -f conftest*
6427 LIBS="$ac_save_LIBS"
6428
6429 fi
6430 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6431 echo "$ac_t""yes" 1>&6
6432
6433 cat >> confdefs.h <<\EOF
6434 #define HAVE_WCSLEN 1
6435 EOF
6436
6437 WCHAR_LINK="-lw"
6438
6439 else
6440 echo "$ac_t""no" 1>&6
6441 fi
6442
6443
6444 fi
6445
6446
6447 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
6448 echo "configure:6449: checking for vprintf" >&5
6449 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
6450 echo $ac_n "(cached) $ac_c" 1>&6
6451 else
6452 cat > conftest.$ac_ext <<EOF
6453 #line 6454 "configure"
6454 #include "confdefs.h"
6455 /* System header to define __stub macros and hopefully few prototypes,
6456 which can conflict with char vprintf(); below. */
6457 #include <assert.h>
6458 /* Override any gcc2 internal prototype to avoid an error. */
6459 /* We use char because int might match the return type of a gcc2
6460 builtin and then its argument prototype would still apply. */
6461 char vprintf();
6462
6463 int main() {
6464
6465 /* The GNU C library defines this for functions which it implements
6466 to always fail with ENOSYS. Some functions are actually named
6467 something starting with __ and the normal name is an alias. */
6468 #if defined (__stub_vprintf) || defined (__stub___vprintf)
6469 choke me
6470 #else
6471 vprintf();
6472 #endif
6473
6474 ; return 0; }
6475 EOF
6476 if { (eval echo configure:6477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6477 rm -rf conftest*
6478 eval "ac_cv_func_vprintf=yes"
6479 else
6480 echo "configure: failed program was:" >&5
6481 cat conftest.$ac_ext >&5
6482 rm -rf conftest*
6483 eval "ac_cv_func_vprintf=no"
6484 fi
6485 rm -f conftest*
6486 fi
6487
6488 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
6489 echo "$ac_t""yes" 1>&6
6490 cat >> confdefs.h <<\EOF
6491 #define HAVE_VPRINTF 1
6492 EOF
6493
6494 else
6495 echo "$ac_t""no" 1>&6
6496 fi
6497
6498 if test "$ac_cv_func_vprintf" != yes; then
6499 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
6500 echo "configure:6501: checking for _doprnt" >&5
6501 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
6502 echo $ac_n "(cached) $ac_c" 1>&6
6503 else
6504 cat > conftest.$ac_ext <<EOF
6505 #line 6506 "configure"
6506 #include "confdefs.h"
6507 /* System header to define __stub macros and hopefully few prototypes,
6508 which can conflict with char _doprnt(); below. */
6509 #include <assert.h>
6510 /* Override any gcc2 internal prototype to avoid an error. */
6511 /* We use char because int might match the return type of a gcc2
6512 builtin and then its argument prototype would still apply. */
6513 char _doprnt();
6514
6515 int main() {
6516
6517 /* The GNU C library defines this for functions which it implements
6518 to always fail with ENOSYS. Some functions are actually named
6519 something starting with __ and the normal name is an alias. */
6520 #if defined (__stub__doprnt) || defined (__stub____doprnt)
6521 choke me
6522 #else
6523 _doprnt();
6524 #endif
6525
6526 ; return 0; }
6527 EOF
6528 if { (eval echo configure:6529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6529 rm -rf conftest*
6530 eval "ac_cv_func__doprnt=yes"
6531 else
6532 echo "configure: failed program was:" >&5
6533 cat conftest.$ac_ext >&5
6534 rm -rf conftest*
6535 eval "ac_cv_func__doprnt=no"
6536 fi
6537 rm -f conftest*
6538 fi
6539
6540 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
6541 echo "$ac_t""yes" 1>&6
6542 cat >> confdefs.h <<\EOF
6543 #define HAVE_DOPRNT 1
6544 EOF
6545
6546 else
6547 echo "$ac_t""no" 1>&6
6548 fi
6549
6550 fi
6551
6552
6553 for ac_func in vsnprintf
6554 do
6555 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6556 echo "configure:6557: checking for $ac_func" >&5
6557 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6558 echo $ac_n "(cached) $ac_c" 1>&6
6559 else
6560 cat > conftest.$ac_ext <<EOF
6561 #line 6562 "configure"
6562 #include "confdefs.h"
6563 /* System header to define __stub macros and hopefully few prototypes,
6564 which can conflict with char $ac_func(); below. */
6565 #include <assert.h>
6566 /* Override any gcc2 internal prototype to avoid an error. */
6567 /* We use char because int might match the return type of a gcc2
6568 builtin and then its argument prototype would still apply. */
6569 char $ac_func();
6570
6571 int main() {
6572
6573 /* The GNU C library defines this for functions which it implements
6574 to always fail with ENOSYS. Some functions are actually named
6575 something starting with __ and the normal name is an alias. */
6576 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6577 choke me
6578 #else
6579 $ac_func();
6580 #endif
6581
6582 ; return 0; }
6583 EOF
6584 if { (eval echo configure:6585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6585 rm -rf conftest*
6586 eval "ac_cv_func_$ac_func=yes"
6587 else
6588 echo "configure: failed program was:" >&5
6589 cat conftest.$ac_ext >&5
6590 rm -rf conftest*
6591 eval "ac_cv_func_$ac_func=no"
6592 fi
6593 rm -f conftest*
6594 fi
6595
6596 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6597 echo "$ac_t""yes" 1>&6
6598 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6599 cat >> confdefs.h <<EOF
6600 #define $ac_tr_func 1
6601 EOF
6602 cat >> confdefs.h <<\EOF
6603 #define HAVE_VSNPRINTF 1
6604 EOF
6605
6606 else
6607 echo "$ac_t""no" 1>&6
6608 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
6609
6610 fi
6611 done
6612
6613
6614 for ac_func in vfork
6615 do
6616 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6617 echo "configure:6618: checking for $ac_func" >&5
6618 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6619 echo $ac_n "(cached) $ac_c" 1>&6
6620 else
6621 cat > conftest.$ac_ext <<EOF
6622 #line 6623 "configure"
6623 #include "confdefs.h"
6624 /* System header to define __stub macros and hopefully few prototypes,
6625 which can conflict with char $ac_func(); below. */
6626 #include <assert.h>
6627 /* Override any gcc2 internal prototype to avoid an error. */
6628 /* We use char because int might match the return type of a gcc2
6629 builtin and then its argument prototype would still apply. */
6630 char $ac_func();
6631
6632 int main() {
6633
6634 /* The GNU C library defines this for functions which it implements
6635 to always fail with ENOSYS. Some functions are actually named
6636 something starting with __ and the normal name is an alias. */
6637 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6638 choke me
6639 #else
6640 $ac_func();
6641 #endif
6642
6643 ; return 0; }
6644 EOF
6645 if { (eval echo configure:6646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6646 rm -rf conftest*
6647 eval "ac_cv_func_$ac_func=yes"
6648 else
6649 echo "configure: failed program was:" >&5
6650 cat conftest.$ac_ext >&5
6651 rm -rf conftest*
6652 eval "ac_cv_func_$ac_func=no"
6653 fi
6654 rm -f conftest*
6655 fi
6656
6657 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6658 echo "$ac_t""yes" 1>&6
6659 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6660 cat >> confdefs.h <<EOF
6661 #define $ac_tr_func 1
6662 EOF
6663
6664 else
6665 echo "$ac_t""no" 1>&6
6666 fi
6667 done
6668
6669
6670 POSIX4_LINK=
6671 for ac_func in nanosleep
6672 do
6673 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6674 echo "configure:6675: checking for $ac_func" >&5
6675 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6676 echo $ac_n "(cached) $ac_c" 1>&6
6677 else
6678 cat > conftest.$ac_ext <<EOF
6679 #line 6680 "configure"
6680 #include "confdefs.h"
6681 /* System header to define __stub macros and hopefully few prototypes,
6682 which can conflict with char $ac_func(); below. */
6683 #include <assert.h>
6684 /* Override any gcc2 internal prototype to avoid an error. */
6685 /* We use char because int might match the return type of a gcc2
6686 builtin and then its argument prototype would still apply. */
6687 char $ac_func();
6688
6689 int main() {
6690
6691 /* The GNU C library defines this for functions which it implements
6692 to always fail with ENOSYS. Some functions are actually named
6693 something starting with __ and the normal name is an alias. */
6694 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6695 choke me
6696 #else
6697 $ac_func();
6698 #endif
6699
6700 ; return 0; }
6701 EOF
6702 if { (eval echo configure:6703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6703 rm -rf conftest*
6704 eval "ac_cv_func_$ac_func=yes"
6705 else
6706 echo "configure: failed program was:" >&5
6707 cat conftest.$ac_ext >&5
6708 rm -rf conftest*
6709 eval "ac_cv_func_$ac_func=no"
6710 fi
6711 rm -f conftest*
6712 fi
6713
6714 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6715 echo "$ac_t""yes" 1>&6
6716 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6717 cat >> confdefs.h <<EOF
6718 #define $ac_tr_func 1
6719 EOF
6720 cat >> confdefs.h <<\EOF
6721 #define HAVE_NANOSLEEP 1
6722 EOF
6723
6724 else
6725 echo "$ac_t""no" 1>&6
6726 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
6727 echo "configure:6728: checking for nanosleep in -lposix4" >&5
6728 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
6729 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6730 echo $ac_n "(cached) $ac_c" 1>&6
6731 else
6732 ac_save_LIBS="$LIBS"
6733 LIBS="-lposix4 $LIBS"
6734 cat > conftest.$ac_ext <<EOF
6735 #line 6736 "configure"
6736 #include "confdefs.h"
6737 /* Override any gcc2 internal prototype to avoid an error. */
6738 /* We use char because int might match the return type of a gcc2
6739 builtin and then its argument prototype would still apply. */
6740 char nanosleep();
6741
6742 int main() {
6743 nanosleep()
6744 ; return 0; }
6745 EOF
6746 if { (eval echo configure:6747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6747 rm -rf conftest*
6748 eval "ac_cv_lib_$ac_lib_var=yes"
6749 else
6750 echo "configure: failed program was:" >&5
6751 cat conftest.$ac_ext >&5
6752 rm -rf conftest*
6753 eval "ac_cv_lib_$ac_lib_var=no"
6754 fi
6755 rm -f conftest*
6756 LIBS="$ac_save_LIBS"
6757
6758 fi
6759 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6760 echo "$ac_t""yes" 1>&6
6761
6762 cat >> confdefs.h <<\EOF
6763 #define HAVE_NANOSLEEP 1
6764 EOF
6765
6766 POSIX4_LINK="-lposix4"
6767
6768 else
6769 echo "$ac_t""no" 1>&6
6770
6771 for ac_func in usleep
6772 do
6773 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6774 echo "configure:6775: checking for $ac_func" >&5
6775 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6776 echo $ac_n "(cached) $ac_c" 1>&6
6777 else
6778 cat > conftest.$ac_ext <<EOF
6779 #line 6780 "configure"
6780 #include "confdefs.h"
6781 /* System header to define __stub macros and hopefully few prototypes,
6782 which can conflict with char $ac_func(); below. */
6783 #include <assert.h>
6784 /* Override any gcc2 internal prototype to avoid an error. */
6785 /* We use char because int might match the return type of a gcc2
6786 builtin and then its argument prototype would still apply. */
6787 char $ac_func();
6788
6789 int main() {
6790
6791 /* The GNU C library defines this for functions which it implements
6792 to always fail with ENOSYS. Some functions are actually named
6793 something starting with __ and the normal name is an alias. */
6794 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6795 choke me
6796 #else
6797 $ac_func();
6798 #endif
6799
6800 ; return 0; }
6801 EOF
6802 if { (eval echo configure:6803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6803 rm -rf conftest*
6804 eval "ac_cv_func_$ac_func=yes"
6805 else
6806 echo "configure: failed program was:" >&5
6807 cat conftest.$ac_ext >&5
6808 rm -rf conftest*
6809 eval "ac_cv_func_$ac_func=no"
6810 fi
6811 rm -f conftest*
6812 fi
6813
6814 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6815 echo "$ac_t""yes" 1>&6
6816 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6817 cat >> confdefs.h <<EOF
6818 #define $ac_tr_func 1
6819 EOF
6820 cat >> confdefs.h <<\EOF
6821 #define HAVE_USLEEP 1
6822 EOF
6823
6824 else
6825 echo "$ac_t""no" 1>&6
6826 echo "configure: warning: wxSleep() function will not work" 1>&2
6827 fi
6828 done
6829
6830
6831 fi
6832
6833
6834 fi
6835 done
6836
6837
6838 for ac_func in uname gethostname
6839 do
6840 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6841 echo "configure:6842: checking for $ac_func" >&5
6842 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6843 echo $ac_n "(cached) $ac_c" 1>&6
6844 else
6845 cat > conftest.$ac_ext <<EOF
6846 #line 6847 "configure"
6847 #include "confdefs.h"
6848 /* System header to define __stub macros and hopefully few prototypes,
6849 which can conflict with char $ac_func(); below. */
6850 #include <assert.h>
6851 /* Override any gcc2 internal prototype to avoid an error. */
6852 /* We use char because int might match the return type of a gcc2
6853 builtin and then its argument prototype would still apply. */
6854 char $ac_func();
6855
6856 int main() {
6857
6858 /* The GNU C library defines this for functions which it implements
6859 to always fail with ENOSYS. Some functions are actually named
6860 something starting with __ and the normal name is an alias. */
6861 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6862 choke me
6863 #else
6864 $ac_func();
6865 #endif
6866
6867 ; return 0; }
6868 EOF
6869 if { (eval echo configure:6870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6870 rm -rf conftest*
6871 eval "ac_cv_func_$ac_func=yes"
6872 else
6873 echo "configure: failed program was:" >&5
6874 cat conftest.$ac_ext >&5
6875 rm -rf conftest*
6876 eval "ac_cv_func_$ac_func=no"
6877 fi
6878 rm -f conftest*
6879 fi
6880
6881 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6882 echo "$ac_t""yes" 1>&6
6883 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6884 cat >> confdefs.h <<EOF
6885 #define $ac_tr_func 1
6886 EOF
6887 break
6888 else
6889 echo "$ac_t""no" 1>&6
6890 fi
6891 done
6892
6893
6894
6895 cat > confcache <<\EOF
6896 # This file is a shell script that caches the results of configure
6897 # tests run on this system so they can be shared between configure
6898 # scripts and configure runs. It is not useful on other systems.
6899 # If it contains results you don't want to keep, you may remove or edit it.
6900 #
6901 # By default, configure uses ./config.cache as the cache file,
6902 # creating it if it does not exist already. You can give configure
6903 # the --cache-file=FILE option to use a different cache file; that is
6904 # what configure does when it calls configure scripts in
6905 # subdirectories, so they share the cache.
6906 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6907 # config.status only pays attention to the cache file if you give it the
6908 # --recheck option to rerun configure.
6909 #
6910 EOF
6911 # The following way of writing the cache mishandles newlines in values,
6912 # but we know of no workaround that is simple, portable, and efficient.
6913 # So, don't put newlines in cache variables' values.
6914 # Ultrix sh set writes to stderr and can't be redirected directly,
6915 # and sets the high bit in the cache file unless we assign to the vars.
6916 (set) 2>&1 |
6917 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6918 *ac_space=\ *)
6919 # `set' does not quote correctly, so add quotes (double-quote substitution
6920 # turns \\\\ into \\, and sed turns \\ into \).
6921 sed -n \
6922 -e "s/'/'\\\\''/g" \
6923 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6924 ;;
6925 *)
6926 # `set' quotes correctly as required by POSIX, so do not add quotes.
6927 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6928 ;;
6929 esac >> confcache
6930 if cmp -s $cache_file confcache; then
6931 :
6932 else
6933 if test -w $cache_file; then
6934 echo "updating cache $cache_file"
6935 cat confcache > $cache_file
6936 else
6937 echo "not updating unwritable cache $cache_file"
6938 fi
6939 fi
6940 rm -f confcache
6941
6942
6943
6944
6945 THREADS_LINK=""
6946 THREADS_OBJ=""
6947
6948 if test "$wxUSE_THREADS" = "yes"; then
6949
6950 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
6951 echo "configure:6952: checking for pthread_create in -lpthread" >&5
6952 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
6953 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6954 echo $ac_n "(cached) $ac_c" 1>&6
6955 else
6956 ac_save_LIBS="$LIBS"
6957 LIBS="-lpthread $LIBS"
6958 cat > conftest.$ac_ext <<EOF
6959 #line 6960 "configure"
6960 #include "confdefs.h"
6961 /* Override any gcc2 internal prototype to avoid an error. */
6962 /* We use char because int might match the return type of a gcc2
6963 builtin and then its argument prototype would still apply. */
6964 char pthread_create();
6965
6966 int main() {
6967 pthread_create()
6968 ; return 0; }
6969 EOF
6970 if { (eval echo configure:6971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6971 rm -rf conftest*
6972 eval "ac_cv_lib_$ac_lib_var=yes"
6973 else
6974 echo "configure: failed program was:" >&5
6975 cat conftest.$ac_ext >&5
6976 rm -rf conftest*
6977 eval "ac_cv_lib_$ac_lib_var=no"
6978 fi
6979 rm -f conftest*
6980 LIBS="$ac_save_LIBS"
6981
6982 fi
6983 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6984 echo "$ac_t""yes" 1>&6
6985
6986 THREADS_OBJ="threadpsx.lo"
6987 THREADS_LINK="pthread"
6988
6989 else
6990 echo "$ac_t""no" 1>&6
6991
6992 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
6993 echo "configure:6994: checking for pthread_create in -lc_r" >&5
6994 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
6995 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6996 echo $ac_n "(cached) $ac_c" 1>&6
6997 else
6998 ac_save_LIBS="$LIBS"
6999 LIBS="-lc_r $LIBS"
7000 cat > conftest.$ac_ext <<EOF
7001 #line 7002 "configure"
7002 #include "confdefs.h"
7003 /* Override any gcc2 internal prototype to avoid an error. */
7004 /* We use char because int might match the return type of a gcc2
7005 builtin and then its argument prototype would still apply. */
7006 char pthread_create();
7007
7008 int main() {
7009 pthread_create()
7010 ; return 0; }
7011 EOF
7012 if { (eval echo configure:7013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7013 rm -rf conftest*
7014 eval "ac_cv_lib_$ac_lib_var=yes"
7015 else
7016 echo "configure: failed program was:" >&5
7017 cat conftest.$ac_ext >&5
7018 rm -rf conftest*
7019 eval "ac_cv_lib_$ac_lib_var=no"
7020 fi
7021 rm -f conftest*
7022 LIBS="$ac_save_LIBS"
7023
7024 fi
7025 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7026 echo "$ac_t""yes" 1>&6
7027
7028 THREADS_OBJ="threadpsx.lo"
7029 THREADS_LINK="c_r"
7030
7031 else
7032 echo "$ac_t""no" 1>&6
7033
7034 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
7035 echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
7036 echo "configure:7037: checking for sys/prctl.h" >&5
7037 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7038 echo $ac_n "(cached) $ac_c" 1>&6
7039 else
7040 cat > conftest.$ac_ext <<EOF
7041 #line 7042 "configure"
7042 #include "confdefs.h"
7043 #include <sys/prctl.h>
7044 EOF
7045 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7046 { (eval echo configure:7047: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7047 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7048 if test -z "$ac_err"; then
7049 rm -rf conftest*
7050 eval "ac_cv_header_$ac_safe=yes"
7051 else
7052 echo "$ac_err" >&5
7053 echo "configure: failed program was:" >&5
7054 cat conftest.$ac_ext >&5
7055 rm -rf conftest*
7056 eval "ac_cv_header_$ac_safe=no"
7057 fi
7058 rm -f conftest*
7059 fi
7060 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7061 echo "$ac_t""yes" 1>&6
7062
7063 THREADS_OBJ="threadsgi.lo"
7064
7065 else
7066 echo "$ac_t""no" 1>&6
7067 fi
7068
7069
7070 fi
7071
7072
7073 fi
7074
7075 if test "$THREADS_LINK" != ""; then
7076 cat >> confdefs.h <<\EOF
7077 #define wxUSE_THREADS 1
7078 EOF
7079
7080 else
7081 echo "configure: warning: No thread support on this system" 1>&2
7082 fi
7083 fi
7084
7085 if test -z "$THREADS_OBJ"; then
7086 wxUSE_THREADS=no
7087 fi
7088
7089 if test "$wxUSE_THREADS" = "yes"; then
7090 CFLAGS="${CFLAGS} -D_REENTRANT"
7091 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
7092
7093 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
7094 LTLIBOBJS="$LTLIBOBJS $THREADS_OBJ"
7095
7096
7097 for ac_hdr in sched.h
7098 do
7099 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7100 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7101 echo "configure:7102: checking for $ac_hdr" >&5
7102 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7103 echo $ac_n "(cached) $ac_c" 1>&6
7104 else
7105 cat > conftest.$ac_ext <<EOF
7106 #line 7107 "configure"
7107 #include "confdefs.h"
7108 #include <$ac_hdr>
7109 EOF
7110 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7111 { (eval echo configure:7112: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7112 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7113 if test -z "$ac_err"; then
7114 rm -rf conftest*
7115 eval "ac_cv_header_$ac_safe=yes"
7116 else
7117 echo "$ac_err" >&5
7118 echo "configure: failed program was:" >&5
7119 cat conftest.$ac_ext >&5
7120 rm -rf conftest*
7121 eval "ac_cv_header_$ac_safe=no"
7122 fi
7123 rm -f conftest*
7124 fi
7125 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7126 echo "$ac_t""yes" 1>&6
7127 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7128 cat >> confdefs.h <<EOF
7129 #define $ac_tr_hdr 1
7130 EOF
7131
7132 else
7133 echo "$ac_t""no" 1>&6
7134 fi
7135 done
7136
7137
7138 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
7139 echo "configure:7140: checking for sched_yield in -l$THREADS_LINK" >&5
7140 ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
7141 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7142 echo $ac_n "(cached) $ac_c" 1>&6
7143 else
7144 ac_save_LIBS="$LIBS"
7145 LIBS="-l$THREADS_LINK $LIBS"
7146 cat > conftest.$ac_ext <<EOF
7147 #line 7148 "configure"
7148 #include "confdefs.h"
7149 /* Override any gcc2 internal prototype to avoid an error. */
7150 /* We use char because int might match the return type of a gcc2
7151 builtin and then its argument prototype would still apply. */
7152 char sched_yield();
7153
7154 int main() {
7155 sched_yield()
7156 ; return 0; }
7157 EOF
7158 if { (eval echo configure:7159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7159 rm -rf conftest*
7160 eval "ac_cv_lib_$ac_lib_var=yes"
7161 else
7162 echo "configure: failed program was:" >&5
7163 cat conftest.$ac_ext >&5
7164 rm -rf conftest*
7165 eval "ac_cv_lib_$ac_lib_var=no"
7166 fi
7167 rm -f conftest*
7168 LIBS="$ac_save_LIBS"
7169
7170 fi
7171 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7172 echo "$ac_t""yes" 1>&6
7173 cat >> confdefs.h <<\EOF
7174 #define HAVE_SCHED_YIELD 1
7175 EOF
7176
7177 else
7178 echo "$ac_t""no" 1>&6
7179 echo $ac_n "checking for sched_yield in -l"posix4"""... $ac_c" 1>&6
7180 echo "configure:7181: checking for sched_yield in -l"posix4"" >&5
7181 ac_lib_var=`echo "posix4"'_'sched_yield | sed 'y%./+-%__p_%'`
7182 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7183 echo $ac_n "(cached) $ac_c" 1>&6
7184 else
7185 ac_save_LIBS="$LIBS"
7186 LIBS="-l"posix4" $LIBS"
7187 cat > conftest.$ac_ext <<EOF
7188 #line 7189 "configure"
7189 #include "confdefs.h"
7190 /* Override any gcc2 internal prototype to avoid an error. */
7191 /* We use char because int might match the return type of a gcc2
7192 builtin and then its argument prototype would still apply. */
7193 char sched_yield();
7194
7195 int main() {
7196 sched_yield()
7197 ; return 0; }
7198 EOF
7199 if { (eval echo configure:7200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7200 rm -rf conftest*
7201 eval "ac_cv_lib_$ac_lib_var=yes"
7202 else
7203 echo "configure: failed program was:" >&5
7204 cat conftest.$ac_ext >&5
7205 rm -rf conftest*
7206 eval "ac_cv_lib_$ac_lib_var=no"
7207 fi
7208 rm -f conftest*
7209 LIBS="$ac_save_LIBS"
7210
7211 fi
7212 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7213 echo "$ac_t""yes" 1>&6
7214 cat >> confdefs.h <<\EOF
7215 #define HAVE_SCHED_YIELD 1
7216 EOF
7217 POSIX4_LINK="-lposix4"
7218 else
7219 echo "$ac_t""no" 1>&6
7220 echo "configure: warning: wxThread::Yield will not work properly" 1>&2
7221
7222 fi
7223
7224
7225 fi
7226
7227
7228 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
7229 echo "configure:7230: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
7230 ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
7231 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7232 echo $ac_n "(cached) $ac_c" 1>&6
7233 else
7234 ac_save_LIBS="$LIBS"
7235 LIBS="-l$THREADS_LINK $LIBS"
7236 cat > conftest.$ac_ext <<EOF
7237 #line 7238 "configure"
7238 #include "confdefs.h"
7239 /* Override any gcc2 internal prototype to avoid an error. */
7240 /* We use char because int might match the return type of a gcc2
7241 builtin and then its argument prototype would still apply. */
7242 char pthread_attr_getschedpolicy();
7243
7244 int main() {
7245 pthread_attr_getschedpolicy()
7246 ; return 0; }
7247 EOF
7248 if { (eval echo configure:7249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7249 rm -rf conftest*
7250 eval "ac_cv_lib_$ac_lib_var=yes"
7251 else
7252 echo "configure: failed program was:" >&5
7253 cat conftest.$ac_ext >&5
7254 rm -rf conftest*
7255 eval "ac_cv_lib_$ac_lib_var=no"
7256 fi
7257 rm -f conftest*
7258 LIBS="$ac_save_LIBS"
7259
7260 fi
7261 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7262 echo "$ac_t""yes" 1>&6
7263 cat >> confdefs.h <<\EOF
7264 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
7265 EOF
7266
7267 else
7268 echo "$ac_t""no" 1>&6
7269 echo $ac_n "checking for pthread_attr_getschedpolicy in -l"posix4"""... $ac_c" 1>&6
7270 echo "configure:7271: checking for pthread_attr_getschedpolicy in -l"posix4"" >&5
7271 ac_lib_var=`echo "posix4"'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
7272 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7273 echo $ac_n "(cached) $ac_c" 1>&6
7274 else
7275 ac_save_LIBS="$LIBS"
7276 LIBS="-l"posix4" $LIBS"
7277 cat > conftest.$ac_ext <<EOF
7278 #line 7279 "configure"
7279 #include "confdefs.h"
7280 /* Override any gcc2 internal prototype to avoid an error. */
7281 /* We use char because int might match the return type of a gcc2
7282 builtin and then its argument prototype would still apply. */
7283 char pthread_attr_getschedpolicy();
7284
7285 int main() {
7286 pthread_attr_getschedpolicy()
7287 ; return 0; }
7288 EOF
7289 if { (eval echo configure:7290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7290 rm -rf conftest*
7291 eval "ac_cv_lib_$ac_lib_var=yes"
7292 else
7293 echo "configure: failed program was:" >&5
7294 cat conftest.$ac_ext >&5
7295 rm -rf conftest*
7296 eval "ac_cv_lib_$ac_lib_var=no"
7297 fi
7298 rm -f conftest*
7299 LIBS="$ac_save_LIBS"
7300
7301 fi
7302 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7303 echo "$ac_t""yes" 1>&6
7304 cat >> confdefs.h <<\EOF
7305 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
7306 EOF
7307 POSIX4_LINK="-lposix4"
7308 else
7309 echo "$ac_t""no" 1>&6
7310 echo "configure: warning: Setting thread priority will not work" 1>&2
7311
7312 fi
7313
7314
7315 fi
7316
7317
7318 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
7319 echo "configure:7320: checking for pthread_cancel in -l$THREADS_LINK" >&5
7320 ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
7321 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7322 echo $ac_n "(cached) $ac_c" 1>&6
7323 else
7324 ac_save_LIBS="$LIBS"
7325 LIBS="-l$THREADS_LINK $LIBS"
7326 cat > conftest.$ac_ext <<EOF
7327 #line 7328 "configure"
7328 #include "confdefs.h"
7329 /* Override any gcc2 internal prototype to avoid an error. */
7330 /* We use char because int might match the return type of a gcc2
7331 builtin and then its argument prototype would still apply. */
7332 char pthread_cancel();
7333
7334 int main() {
7335 pthread_cancel()
7336 ; return 0; }
7337 EOF
7338 if { (eval echo configure:7339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7339 rm -rf conftest*
7340 eval "ac_cv_lib_$ac_lib_var=yes"
7341 else
7342 echo "configure: failed program was:" >&5
7343 cat conftest.$ac_ext >&5
7344 rm -rf conftest*
7345 eval "ac_cv_lib_$ac_lib_var=no"
7346 fi
7347 rm -f conftest*
7348 LIBS="$ac_save_LIBS"
7349
7350 fi
7351 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7352 echo "$ac_t""yes" 1>&6
7353 cat >> confdefs.h <<\EOF
7354 #define HAVE_PTHREAD_CANCEL 1
7355 EOF
7356
7357 else
7358 echo "$ac_t""no" 1>&6
7359 echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
7360 fi
7361
7362
7363 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
7364 echo "configure:7365: checking for pthread_cleanup_push/pop" >&5
7365 if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
7366 echo $ac_n "(cached) $ac_c" 1>&6
7367 else
7368
7369 cat > conftest.$ac_ext <<EOF
7370 #line 7371 "configure"
7371 #include "confdefs.h"
7372 #include <pthread.h>
7373 int main() {
7374
7375 pthread_cleanup_push(NULL, NULL);
7376 pthread_cleanup_pop(0);
7377
7378 ; return 0; }
7379 EOF
7380 if { (eval echo configure:7381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7381 rm -rf conftest*
7382
7383 wx_cv_func_pthread_cleanup_push=yes
7384 cat >> confdefs.h <<\EOF
7385 #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
7386 EOF
7387
7388
7389 else
7390 echo "configure: failed program was:" >&5
7391 cat conftest.$ac_ext >&5
7392 rm -rf conftest*
7393
7394 wx_cv_func_pthread_cleanup_push=no
7395
7396 fi
7397 rm -f conftest*
7398
7399 fi
7400
7401 echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
7402
7403 THREADS_LINK="-l$THREADS_LINK"
7404 fi
7405
7406 if test "$WXGTK12" = 1 ; then
7407 cat >> confdefs.h <<EOF
7408 #define __WXGTK12__ $WXGTK12
7409 EOF
7410
7411 fi
7412
7413 WXDEBUG=
7414 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
7415 wxUSE_DEBUG_INFO=yes
7416 WXDEBUG="-ggdb"
7417 fi
7418
7419 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
7420 WXDEBUG="-g"
7421 wxUSE_OPTIMISE=no
7422 fi
7423
7424 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
7425 cat >> confdefs.h <<\EOF
7426 #define WXDEBUG 1
7427 EOF
7428
7429 WXDEBUG_DEFINE="-D__WXDEBUG__"
7430 else
7431 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
7432 fi
7433
7434 if test "$wxUSE_MEM_TRACING" = "yes" ; then
7435 cat >> confdefs.h <<\EOF
7436 #define wxUSE_MEMORY_TRACING 1
7437 EOF
7438
7439 cat >> confdefs.h <<\EOF
7440 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
7441 EOF
7442
7443 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
7444 fi
7445
7446 if test "$wxUSE_DMALLOC" = "yes" ; then
7447 DMALLOC_LINK="-ldmalloc"
7448 fi
7449
7450 PROFILE=
7451 if test "$wxUSE_PROFILE" = "yes" ; then
7452 PROFILE="-pg"
7453 fi
7454
7455 CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
7456 CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
7457 if test "$wxUSE_OPTIMISE" = "no" ; then
7458 OPTIMISE=
7459 else
7460 if test "$GCC" = yes ; then
7461 OPTIMISE="-O2"
7462 case "${host}" in
7463 i586-*-*|i686-*-* )
7464 OPTIMISE="${OPTIMISE} "
7465 ;;
7466 esac
7467 else
7468 OPTIMISE="-O"
7469 fi
7470 fi
7471
7472
7473 if test "$wxUSE_ZLIB" = "yes" ; then
7474 cat >> confdefs.h <<\EOF
7475 #define wxUSE_ZLIB 1
7476 EOF
7477
7478 EXTRA_VPATH="$EXTRA_VPATH:\$(srcdir)/zlib"
7479 LTLIBOBJS="$LTLIBOBJS adler32.lo compress.lo crc32.lo gzio.lo uncompr.lo deflate.lo trees.lo zutil.lo inflate.lo infblock.lo inftrees.lo infcodes.lo infutil.lo inffast.lo"
7480 if eval "test x$wxUSE_STREAMS = x1"; then
7481 LTLIBOBJS="$LTLIBOBJS zstream.lo"
7482 fi
7483 fi
7484
7485 if test "$wxUSE_LIBPNG" = "yes" ; then
7486 cat >> confdefs.h <<\EOF
7487 #define wxUSE_LIBPNG 1
7488 EOF
7489
7490 LTLIBOBJS="$LTLIBOBJS imagpng.lo png.lo pngset.lo pngget.lo pngrutil.lo pngtrans.lo pngwutil.lo pngread.lo pngrio.lo pngwio.lo pngwrite.lo pngrtran.lo pngwtran.lo pngmem.lo pngerror.lo pngpread.lo"
7491 EXTRA_VPATH="$EXTRA_VPATH:\$(srcdir)/png"
7492 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
7493 fi
7494
7495 if test "$wxUSE_LIBGIF" = "yes" ; then
7496 cat >> confdefs.h <<\EOF
7497 #define wxUSE_LIBGIF 1
7498 EOF
7499
7500 LTLIBOBJS="$LTLIBOBJS imaggif.lo"
7501 fi
7502
7503 if test "$wxUSE_LIBJPEG" = "yes" ; then
7504 cat >> confdefs.h <<\EOF
7505 #define wxUSE_LIBJPEG 1
7506 EOF
7507
7508 EXTRA_VPATH="$EXTRA_VPATH:\${srcdir}/jpeg"
7509 LTLIBOBJS="$LTLIBOBJS imagjpeg.lo \
7510 jcomapi.lo jutils.lo jerror.lo jmemmgr.lo jmemnobs.lo \
7511 jcapimin.lo jcapistd.lo jctrans.lo jcparam.lo jdatadst.lo \
7512 jcinit.lo jcmaster.lo jcmarker.lo jcmainct.lo jcprepct.lo \
7513 jccoefct.lo jccolor.lo jcsample.lo jchuff.lo jcphuff.lo \
7514 jcdctmgr.lo jfdctfst.lo jfdctflt.lo jfdctint.lo \
7515 jdapimin.lo jdapistd.lo jdtrans.lo jdatasrc.lo \
7516 jdmaster.lo jdinput.lo jdmarker.lo jdhuff.lo jdphuff.lo \
7517 jdmainct.lo jdcoefct.lo jdpostct.lo jddctmgr.lo jidctfst.lo \
7518 jidctflt.lo jidctint.lo jidctred.lo jdsample.lo jdcolor.lo \
7519 jquant1.lo jquant2.lo jdmerge.lo"
7520 fi
7521
7522 if test "$wxUSE_OPENGL" = "yes"; then
7523 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
7524 echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
7525 echo "configure:7526: checking for GL/gl.h" >&5
7526 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7527 echo $ac_n "(cached) $ac_c" 1>&6
7528 else
7529 cat > conftest.$ac_ext <<EOF
7530 #line 7531 "configure"
7531 #include "confdefs.h"
7532 #include <GL/gl.h>
7533 EOF
7534 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7535 { (eval echo configure:7536: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7536 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7537 if test -z "$ac_err"; then
7538 rm -rf conftest*
7539 eval "ac_cv_header_$ac_safe=yes"
7540 else
7541 echo "$ac_err" >&5
7542 echo "configure: failed program was:" >&5
7543 cat conftest.$ac_ext >&5
7544 rm -rf conftest*
7545 eval "ac_cv_header_$ac_safe=no"
7546 fi
7547 rm -f conftest*
7548 fi
7549 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7550 echo "$ac_t""yes" 1>&6
7551
7552 echo $ac_n "checking for glInitNames in -lGL""... $ac_c" 1>&6
7553 echo "configure:7554: checking for glInitNames in -lGL" >&5
7554 ac_lib_var=`echo GL'_'glInitNames | sed 'y%./+-%__p_%'`
7555 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7556 echo $ac_n "(cached) $ac_c" 1>&6
7557 else
7558 ac_save_LIBS="$LIBS"
7559 LIBS="-lGL wxUSE_OPENGL=0 $LIBS"
7560 cat > conftest.$ac_ext <<EOF
7561 #line 7562 "configure"
7562 #include "confdefs.h"
7563 /* Override any gcc2 internal prototype to avoid an error. */
7564 /* We use char because int might match the return type of a gcc2
7565 builtin and then its argument prototype would still apply. */
7566 char glInitNames();
7567
7568 int main() {
7569 glInitNames()
7570 ; return 0; }
7571 EOF
7572 if { (eval echo configure:7573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7573 rm -rf conftest*
7574 eval "ac_cv_lib_$ac_lib_var=yes"
7575 else
7576 echo "configure: failed program was:" >&5
7577 cat conftest.$ac_ext >&5
7578 rm -rf conftest*
7579 eval "ac_cv_lib_$ac_lib_var=no"
7580 fi
7581 rm -f conftest*
7582 LIBS="$ac_save_LIBS"
7583
7584 fi
7585 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7586 echo "$ac_t""yes" 1>&6
7587
7588 OPENGL_LINK="-lGL"
7589 cat >> confdefs.h <<\EOF
7590 #define wxUSE_OPENGL 1
7591 EOF
7592
7593 UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src"
7594
7595 else
7596 echo "$ac_t""no" 1>&6
7597
7598 echo $ac_n "checking for glInitNames in -lMesaGL""... $ac_c" 1>&6
7599 echo "configure:7600: checking for glInitNames in -lMesaGL" >&5
7600 ac_lib_var=`echo MesaGL'_'glInitNames | sed 'y%./+-%__p_%'`
7601 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7602 echo $ac_n "(cached) $ac_c" 1>&6
7603 else
7604 ac_save_LIBS="$LIBS"
7605 LIBS="-lMesaGL $LIBS"
7606 cat > conftest.$ac_ext <<EOF
7607 #line 7608 "configure"
7608 #include "confdefs.h"
7609 /* Override any gcc2 internal prototype to avoid an error. */
7610 /* We use char because int might match the return type of a gcc2
7611 builtin and then its argument prototype would still apply. */
7612 char glInitNames();
7613
7614 int main() {
7615 glInitNames()
7616 ; return 0; }
7617 EOF
7618 if { (eval echo configure:7619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7619 rm -rf conftest*
7620 eval "ac_cv_lib_$ac_lib_var=yes"
7621 else
7622 echo "configure: failed program was:" >&5
7623 cat conftest.$ac_ext >&5
7624 rm -rf conftest*
7625 eval "ac_cv_lib_$ac_lib_var=no"
7626 fi
7627 rm -f conftest*
7628 LIBS="$ac_save_LIBS"
7629
7630 fi
7631 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7632 echo "$ac_t""yes" 1>&6
7633
7634 OPENGL_LINK="-lMesaGL"
7635 cat >> confdefs.h <<\EOF
7636 #define wxUSE_OPENGL 1
7637 EOF
7638
7639 UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src"
7640
7641 else
7642 echo "$ac_t""no" 1>&6
7643 wxUSE_OPENGL=0
7644 fi
7645
7646
7647 fi
7648
7649
7650 else
7651 echo "$ac_t""no" 1>&6
7652 wxUSE_OPENGL=0
7653 fi
7654
7655 fi
7656
7657
7658 if test "$wxUSE_GUI" = "yes"; then
7659 cat >> confdefs.h <<\EOF
7660 #define wxUSE_GUI 1
7661 EOF
7662
7663
7664 LTLIBOBJS="$LTLIBOBJS \
7665 main.lo app.lo event.lo wincmn.lo window.lo control.lo framecmn.lo frame.lo dialog.lo panelg.lo \
7666 button.lo stattext.lo textctrl.lo \
7667 bitmap.lo brush.lo colour.lo cursor.lo data.lo dc.lo dcbase.lo dcclient.lo \
7668 dcmemory.lo dcscreen.lo font.lo gdicmn.lo gdiobj.lo icon.lo palette.lo pen.lo region.lo \
7669 menu.lo \
7670 settings.lo timer.lo msgdlgg.lo"
7671 else
7672 cat >> confdefs.h <<\EOF
7673 #define wxUSE_NOGUI 1
7674 EOF
7675
7676 fi
7677
7678
7679 if test "$wxUSE_UNIX" = "yes"; then
7680 cat >> confdefs.h <<\EOF
7681 #define wxUSE_UNIX 1
7682 EOF
7683
7684 LTLIBOBJS="$LTLIBOBJS utilsunx.lo"
7685 fi
7686
7687
7688 if test "$wxUSE_APPLE_IEEE" = "yes"; then
7689 cat >> confdefs.h <<\EOF
7690 #define wxUSE_APPLE_IEEE 1
7691 EOF
7692
7693 LTLIBOBJS="$LTLIBOBJS extended.lo"
7694 fi
7695
7696 if test "$wxUSE_TIMEDATE" = "yes"; then
7697 cat >> confdefs.h <<\EOF
7698 #define wxUSE_TIMEDATE 1
7699 EOF
7700
7701 LTLIBOBJS="$LTLIBOBJS date.lo time.lo"
7702 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
7703 fi
7704
7705 if test "$wxUSE_FILE" = "yes"; then
7706 cat >> confdefs.h <<\EOF
7707 #define wxUSE_FILE 1
7708 EOF
7709
7710 LTLIBOBJS="$LTLIBOBJS file.lo"
7711 fi
7712
7713 if test "$wxUSE_TEXTFILE" = "yes"; then
7714 if test "$wxUSE_FILE" != "yes"; then
7715 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
7716 else
7717 cat >> confdefs.h <<\EOF
7718 #define wxUSE_TEXTFILE 1
7719 EOF
7720
7721 LTLIBOBJS="$LTLIBOBJS textfile.lo"
7722 fi
7723 fi
7724
7725 if test "$wxUSE_CONFIG" = "yes" ; then
7726 if test "$wxUSE_TEXTFILE" != "yes"; then
7727 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
7728 else
7729 cat >> confdefs.h <<\EOF
7730 #define wxUSE_CONFIG 1
7731 EOF
7732
7733 LTLIBOBJS="$LTLIBOBJS config.lo fileconf.lo"
7734 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
7735 fi
7736 fi
7737
7738 if test "$wxUSE_INTL" = "yes" ; then
7739 if test "$wxUSE_FILE" != "yes"; then
7740 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
7741 else
7742 cat >> confdefs.h <<\EOF
7743 #define wxUSE_INTL 1
7744 EOF
7745
7746 LTLIBOBJS="$LTLIBOBJS intl.lo"
7747 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
7748 fi
7749 fi
7750
7751 if test "$wxUSE_LOG" = "yes"; then
7752 cat >> confdefs.h <<\EOF
7753 #define wxUSE_LOG 1
7754 EOF
7755
7756 LTLIBOBJS="$LTLIBOBJS log.lo"
7757 fi
7758
7759 if test "$wxUSE_LONGLONG" = "yes"; then
7760 cat >> confdefs.h <<\EOF
7761 #define wxUSE_LONGLONG 1
7762 EOF
7763
7764 LTLIBOBJS="$LTLIBOBJS longlong.lo"
7765 fi
7766
7767 if test "$wxUSE_SOCKETS" = "yes" ; then
7768 if test "$wxUSE_THREADS" = "yes" ; then
7769 cat >> confdefs.h <<\EOF
7770 #define wxUSE_SOCKETS 1
7771 EOF
7772
7773 LTLIBOBJS="$LTLIBOBJS sckint.lo socket.lo sckaddr.lo protocol.lo http.lo ftp.lo url.lo"
7774 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wxsocket"
7775 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
7776 else
7777 echo "configure: warning: socket classes require --with-threads and won't be compiled without it" 1>&2
7778 wxUSE_SOCKETS=0
7779 fi
7780 fi
7781
7782 if test "$wxUSE_STREAMS" = "yes" ; then
7783 cat >> confdefs.h <<\EOF
7784 #define wxUSE_STREAMS 1
7785 EOF
7786
7787 LTLIBOBJS="$LTLIBOBJS stream.lo wfstream.lo datstrm.lo mstream.lo objstrm.lo"
7788 if test "$wxUSE_SOCKETS" = "yes" ; then
7789 LTLIBOBJS="$LTLIBOBJS sckstrm.lo"
7790 fi
7791 fi
7792
7793 if test "$wxUSE_SERIAL" = "yes" ; then
7794 cat >> confdefs.h <<\EOF
7795 #define wxUSE_SERIAL 1
7796 EOF
7797
7798 fi
7799
7800
7801 if test "$wxUSE_SOCKETS" = "yes"; then
7802
7803 ac_ext=C
7804 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7805 ac_cpp='$CXXCPP $CPPFLAGS'
7806 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7807 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7808 cross_compiling=$ac_cv_prog_cxx_cross
7809
7810 echo $ac_n "checking the type of the third argument of getsockname""... $ac_c" 1>&6
7811 echo "configure:7812: checking the type of the third argument of getsockname" >&5
7812 cat > conftest.$ac_ext <<EOF
7813 #line 7814 "configure"
7814 #include "confdefs.h"
7815 #include <sys/socket.h>
7816 int main() {
7817 socklen_t len; getsockname(0, NULL, &len);
7818 ; return 0; }
7819 EOF
7820 if { (eval echo configure:7821: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7821 rm -rf conftest*
7822 cat >> confdefs.h <<\EOF
7823 #define SOCKLEN_T socklen_t
7824 EOF
7825 echo "$ac_t""socklen_t" 1>&6
7826 else
7827 echo "configure: failed program was:" >&5
7828 cat conftest.$ac_ext >&5
7829 rm -rf conftest*
7830 cat > conftest.$ac_ext <<EOF
7831 #line 7832 "configure"
7832 #include "confdefs.h"
7833 #include <sys/socket.h>
7834 int main() {
7835 size_t len; getsockname(0, NULL, &len);
7836 ; return 0; }
7837 EOF
7838 if { (eval echo configure:7839: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7839 rm -rf conftest*
7840 cat >> confdefs.h <<\EOF
7841 #define SOCKLEN_T size_t
7842 EOF
7843 echo "$ac_t""size_t" 1>&6
7844 else
7845 echo "configure: failed program was:" >&5
7846 cat conftest.$ac_ext >&5
7847 rm -rf conftest*
7848 cat > conftest.$ac_ext <<EOF
7849 #line 7850 "configure"
7850 #include "confdefs.h"
7851 #include <sys/socket.h>
7852 int main() {
7853 int len; getsockname(0, NULL, &len);
7854 ; return 0; }
7855 EOF
7856 if { (eval echo configure:7857: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7857 rm -rf conftest*
7858 cat >> confdefs.h <<\EOF
7859 #define SOCKLEN_T int
7860 EOF
7861 echo "$ac_t""int" 1>&6
7862 else
7863 echo "configure: failed program was:" >&5
7864 cat conftest.$ac_ext >&5
7865 rm -rf conftest*
7866 echo "$ac_t""unknown" 1>&6
7867
7868 fi
7869 rm -f conftest*
7870
7871 fi
7872 rm -f conftest*
7873
7874 fi
7875 rm -f conftest*
7876 ac_ext=c
7877 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7878 ac_cpp='$CPP $CPPFLAGS'
7879 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7880 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7881 cross_compiling=$ac_cv_prog_cc_cross
7882
7883 fi
7884
7885
7886 if test "$wxUSE_JOYSTICK" = 1; then
7887 for ac_hdr in linux/joystick.h
7888 do
7889 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7890 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7891 echo "configure:7892: checking for $ac_hdr" >&5
7892 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7893 echo $ac_n "(cached) $ac_c" 1>&6
7894 else
7895 cat > conftest.$ac_ext <<EOF
7896 #line 7897 "configure"
7897 #include "confdefs.h"
7898 #include <$ac_hdr>
7899 EOF
7900 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7901 { (eval echo configure:7902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7902 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7903 if test -z "$ac_err"; then
7904 rm -rf conftest*
7905 eval "ac_cv_header_$ac_safe=yes"
7906 else
7907 echo "$ac_err" >&5
7908 echo "configure: failed program was:" >&5
7909 cat conftest.$ac_ext >&5
7910 rm -rf conftest*
7911 eval "ac_cv_header_$ac_safe=no"
7912 fi
7913 rm -f conftest*
7914 fi
7915 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7916 echo "$ac_t""yes" 1>&6
7917 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7918 cat >> confdefs.h <<EOF
7919 #define $ac_tr_hdr 1
7920 EOF
7921
7922 else
7923 echo "$ac_t""no" 1>&6
7924 fi
7925 done
7926
7927 if test "$ac_cv_header_linux_joystick_h" = "yes"; then
7928 cat >> confdefs.h <<\EOF
7929 #define wxUSE_JOYSTICK 1
7930 EOF
7931
7932 LTLIBOBJS="$LTLIBOBJS joystick.lo"
7933 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
7934 fi
7935 fi
7936
7937
7938 HAVE_DL_FUNCS=0
7939 HAVE_SHL_FUNCS=0
7940 if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
7941 for ac_func in dlopen
7942 do
7943 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7944 echo "configure:7945: checking for $ac_func" >&5
7945 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7946 echo $ac_n "(cached) $ac_c" 1>&6
7947 else
7948 cat > conftest.$ac_ext <<EOF
7949 #line 7950 "configure"
7950 #include "confdefs.h"
7951 /* System header to define __stub macros and hopefully few prototypes,
7952 which can conflict with char $ac_func(); below. */
7953 #include <assert.h>
7954 /* Override any gcc2 internal prototype to avoid an error. */
7955 /* We use char because int might match the return type of a gcc2
7956 builtin and then its argument prototype would still apply. */
7957 char $ac_func();
7958
7959 int main() {
7960
7961 /* The GNU C library defines this for functions which it implements
7962 to always fail with ENOSYS. Some functions are actually named
7963 something starting with __ and the normal name is an alias. */
7964 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7965 choke me
7966 #else
7967 $ac_func();
7968 #endif
7969
7970 ; return 0; }
7971 EOF
7972 if { (eval echo configure:7973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7973 rm -rf conftest*
7974 eval "ac_cv_func_$ac_func=yes"
7975 else
7976 echo "configure: failed program was:" >&5
7977 cat conftest.$ac_ext >&5
7978 rm -rf conftest*
7979 eval "ac_cv_func_$ac_func=no"
7980 fi
7981 rm -f conftest*
7982 fi
7983
7984 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7985 echo "$ac_t""yes" 1>&6
7986 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7987 cat >> confdefs.h <<EOF
7988 #define $ac_tr_func 1
7989 EOF
7990 cat >> confdefs.h <<\EOF
7991 #define HAVE_DLOPEN 1
7992 EOF
7993 HAVE_DL_FUNCS=1
7994 else
7995 echo "$ac_t""no" 1>&6
7996 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
7997 echo "configure:7998: checking for dlopen in -ldl" >&5
7998 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
7999 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8000 echo $ac_n "(cached) $ac_c" 1>&6
8001 else
8002 ac_save_LIBS="$LIBS"
8003 LIBS="-ldl $LIBS"
8004 cat > conftest.$ac_ext <<EOF
8005 #line 8006 "configure"
8006 #include "confdefs.h"
8007 /* Override any gcc2 internal prototype to avoid an error. */
8008 /* We use char because int might match the return type of a gcc2
8009 builtin and then its argument prototype would still apply. */
8010 char dlopen();
8011
8012 int main() {
8013 dlopen()
8014 ; return 0; }
8015 EOF
8016 if { (eval echo configure:8017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8017 rm -rf conftest*
8018 eval "ac_cv_lib_$ac_lib_var=yes"
8019 else
8020 echo "configure: failed program was:" >&5
8021 cat conftest.$ac_ext >&5
8022 rm -rf conftest*
8023 eval "ac_cv_lib_$ac_lib_var=no"
8024 fi
8025 rm -f conftest*
8026 LIBS="$ac_save_LIBS"
8027
8028 fi
8029 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8030 echo "$ac_t""yes" 1>&6
8031 cat >> confdefs.h <<\EOF
8032 #define HAVE_DLOPEN 1
8033 EOF
8034 HAVE_DL_FUNCS=1
8035 else
8036 echo "$ac_t""no" 1>&6
8037 fi
8038
8039 fi
8040 done
8041
8042 for ac_func in shl_load
8043 do
8044 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8045 echo "configure:8046: checking for $ac_func" >&5
8046 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8047 echo $ac_n "(cached) $ac_c" 1>&6
8048 else
8049 cat > conftest.$ac_ext <<EOF
8050 #line 8051 "configure"
8051 #include "confdefs.h"
8052 /* System header to define __stub macros and hopefully few prototypes,
8053 which can conflict with char $ac_func(); below. */
8054 #include <assert.h>
8055 /* Override any gcc2 internal prototype to avoid an error. */
8056 /* We use char because int might match the return type of a gcc2
8057 builtin and then its argument prototype would still apply. */
8058 char $ac_func();
8059
8060 int main() {
8061
8062 /* The GNU C library defines this for functions which it implements
8063 to always fail with ENOSYS. Some functions are actually named
8064 something starting with __ and the normal name is an alias. */
8065 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8066 choke me
8067 #else
8068 $ac_func();
8069 #endif
8070
8071 ; return 0; }
8072 EOF
8073 if { (eval echo configure:8074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8074 rm -rf conftest*
8075 eval "ac_cv_func_$ac_func=yes"
8076 else
8077 echo "configure: failed program was:" >&5
8078 cat conftest.$ac_ext >&5
8079 rm -rf conftest*
8080 eval "ac_cv_func_$ac_func=no"
8081 fi
8082 rm -f conftest*
8083 fi
8084
8085 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8086 echo "$ac_t""yes" 1>&6
8087 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8088 cat >> confdefs.h <<EOF
8089 #define $ac_tr_func 1
8090 EOF
8091 cat >> confdefs.h <<\EOF
8092 #define HAVE_SHL_LOAD 1
8093 EOF
8094 HAVE_DL_FUNCS=1 HAVE_SHL_FUNCS=1
8095 else
8096 echo "$ac_t""no" 1>&6
8097 fi
8098 done
8099
8100
8101 if test "$HAVE_DL_FUNCS" = 0; then
8102 echo "configure: warning: "--with-dynlib and --with-odbc will be disabled due to missing shared library support"" 1>&2
8103 wxUSE_ODBC=no
8104 wxUSE_DYNLIB_CLASS=no
8105 fi
8106 fi
8107
8108 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
8109 cat >> confdefs.h <<\EOF
8110 #define wxUSE_DYNLIB_CLASS 1
8111 EOF
8112
8113 LTLIBOBJS="$LTLIBOBJS dynlib.lo"
8114 fi
8115
8116
8117 if test "$wxUSE_UNICODE" = "yes" ; then
8118 cat >> confdefs.h <<\EOF
8119 #define wxUSE_UNICODE 1
8120 EOF
8121
8122 fi
8123
8124 if test "$wxUSE_WCSRTOMBS" = "yes" ; then
8125 cat >> confdefs.h <<\EOF
8126 #define wxUSE_WCSRTOMBS 1
8127 EOF
8128
8129 fi
8130
8131
8132 IODBC_C_SRC=""
8133 if test "$wxUSE_ODBC" = "yes" ; then
8134 cat >> confdefs.h <<\EOF
8135 #define wxUSE_ODBC 1
8136 EOF
8137
8138 EXTRA_VPATH="$EXTRA_VPATH:\$(srcdir)/iodbc"
8139 LTLIBOBJS="$LTLIBOBJS catalog.lo connect.lo dlf.lo dlproc.lo execute.lo fetch.lo hdbc.lo henv.lo herr.lo hstmt.lo info.lo itrace.lo misc.lo prepare.lo result.lo"
8140 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
8141 fi
8142
8143
8144 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
8145 cat >> confdefs.h <<\EOF
8146 #define wxUSE_POSTSCRIPT 1
8147 EOF
8148
8149 LTLIBOBJS="$LTLIBOBJS printps.lo dcpsg.lo"
8150 fi
8151
8152 cat >> confdefs.h <<\EOF
8153 #define wxUSE_AFM_FOR_POSTSCRIPT 1
8154 EOF
8155
8156
8157 cat >> confdefs.h <<\EOF
8158 #define wxUSE_NORMALIZED_PS_FONTS 1
8159 EOF
8160
8161
8162
8163 if test "$wxUSE_CONSTRAINTS" = "yes"; then
8164 cat >> confdefs.h <<\EOF
8165 #define wxUSE_CONSTRAINTS 1
8166 EOF
8167
8168
8169 LTLIBOBJS="$LTLIBOBJS layout.lo laywin.lo"
8170 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
8171 fi
8172
8173 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
8174 cat >> confdefs.h <<\EOF
8175 #define wxUSE_MDI_ARCHITECTURE 1
8176 EOF
8177
8178 LTLIBOBJS="$LTLIBOBJS mdi.lo"
8179 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
8180 fi
8181
8182 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
8183 cat >> confdefs.h <<\EOF
8184 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
8185 EOF
8186
8187 LTLIBOBJS="$LTLIBOBJS docview.lo"
8188 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
8189 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
8190 LTLIBOBJS="$LTLIBOBJS docmdi.lo"
8191 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
8192 fi
8193 fi
8194
8195 if test "$wxUSE_HELP" = "yes"; then
8196 cat >> confdefs.h <<\EOF
8197 #define wxUSE_HELP 1
8198 EOF
8199
8200 LTLIBOBJS="$LTLIBOBJS helpext.lo helphtml.lo helpbase.lo"
8201 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
8202 fi
8203
8204 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
8205 cat >> confdefs.h <<\EOF
8206 #define wxUSE_PRINTING_ARCHITECTURE 1
8207 EOF
8208
8209 LTLIBOBJS="$LTLIBOBJS prntbase.lo paper.lo"
8210 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
8211 fi
8212
8213 if test "$wxUSE_PROLOGIO" = "yes" ; then
8214 cat >> confdefs.h <<\EOF
8215 #define wxUSE_PROLOGIO 1
8216 EOF
8217
8218 LTLIBOBJS="$LTLIBOBJS wxexpr.lo parser.lo"
8219 fi
8220
8221 if test "$wxUSE_RESOURCES" = "yes" ; then
8222 if test "$wxUSE_PROLOGIO" = "yes" ; then
8223 cat >> confdefs.h <<\EOF
8224 #define wxUSE_RESOURCES 1
8225 EOF
8226
8227 LTLIBOBJS="$LTLIBOBJS resource.lo"
8228 if test "$wxUSE_GTK" = 1; then
8229 LTLIBOBJS="$LTLIBOBJS utilsres.lo"
8230 fi
8231 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
8232 else
8233 echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2
8234 fi
8235 fi
8236
8237 if test "$wxUSE_X_RESOURCES" = "yes"; then
8238 cat >> confdefs.h <<\EOF
8239 #define wxUSE_X_RESOURCES 1
8240 EOF
8241
8242 fi
8243
8244
8245 if test "$wxUSE_IPC" = "yes"; then
8246 cat >> confdefs.h <<\EOF
8247 #define wxUSE_IPC 1
8248 EOF
8249
8250 LTLIBOBJS="$LTLIBOBJS ipcbase.lo sckipc.lo"
8251 fi
8252
8253 if test "$wxUSE_CLIPBOARD" = "yes"; then
8254 cat >> confdefs.h <<\EOF
8255 #define wxUSE_CLIPBOARD 1
8256 EOF
8257
8258 LTLIBOBJS="$LTLIBOBJS clipbrd.lo dataobj.lo"
8259 fi
8260
8261 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
8262 if test "$WXGTK12" = 1 ; then
8263 cat >> confdefs.h <<\EOF
8264 #define wxUSE_DRAG_AND_DROP 1
8265 EOF
8266
8267 LTLIBOBJS="$LTLIBOBJS dnd.lo"
8268 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
8269 if test "$wxUSE_CLIPBOARD" != "yes"; then
8270 LTLIBOBJS="$LTLIBOBJS dataobj.lo"
8271 fi
8272 else
8273 echo "configure: warning: drag and drop is only supported under GTK 1.2" 1>&2
8274 fi
8275 fi
8276
8277 if test "$wxUSE_SPLINES" = "yes" ; then
8278 cat >> confdefs.h <<\EOF
8279 #define wxUSE_SPLINES 1
8280 EOF
8281
8282 fi
8283
8284
8285 if test "$wxUSE_ACCEL" = "yes"; then
8286 cat >> confdefs.h <<\EOF
8287 #define wxUSE_ACCEL 1
8288 EOF
8289
8290 LTLIBOBJS="$LTLIBOBJS accel.lo"
8291 fi
8292
8293 if test "$wxUSE_CARET" = "yes"; then
8294 cat >> confdefs.h <<\EOF
8295 #define wxUSE_CARET 1
8296 EOF
8297
8298 LTLIBOBJS="$LTLIBOBJS caret.lo"
8299 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
8300 fi
8301
8302 if test "$wxUSE_COMBOBOX" = "yes"; then
8303 cat >> confdefs.h <<\EOF
8304 #define wxUSE_COMBOBOX 1
8305 EOF
8306
8307 LTLIBOBJS="$LTLIBOBJS choice.lo combobox.lo"
8308 fi
8309
8310 if test "$wxUSE_BMPBUTTON" = "yes"; then
8311 cat >> confdefs.h <<\EOF
8312 #define wxUSE_BMPBUTTON 1
8313 EOF
8314
8315 LTLIBOBJS="$LTLIBOBJS bmpbuttn.lo"
8316 fi
8317
8318 if test "$wxUSE_CHECKBOX" = "yes"; then
8319 cat >> confdefs.h <<\EOF
8320 #define wxUSE_CHECKBOX 1
8321 EOF
8322
8323 LTLIBOBJS="$LTLIBOBJS checkbox.lo"
8324 fi
8325
8326 if test "$wxUSE_CHECKLST" = "yes"; then
8327 cat >> confdefs.h <<\EOF
8328 #define wxUSE_CHECKLISTBOX 1
8329 EOF
8330
8331 LTLIBOBJS="$LTLIBOBJS checklst.lo"
8332 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
8333 fi
8334
8335 if test "$wxUSE_GAUGE" = "yes"; then
8336 cat >> confdefs.h <<\EOF
8337 #define wxUSE_GAUGE 1
8338 EOF
8339
8340 LTLIBOBJS="$LTLIBOBJS gauge.lo"
8341 fi
8342
8343 if test "$wxUSE_GRID" = "yes"; then
8344 cat >> confdefs.h <<\EOF
8345 #define wxUSE_GRID 1
8346 EOF
8347
8348 LTLIBOBJS="$LTLIBOBJS gridg.lo"
8349 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
8350 fi
8351
8352 if test "$wxUSE_IMAGLIST" = "yes"; then
8353 cat >> confdefs.h <<\EOF
8354 #define wxUSE_IMAGLIST 1
8355 EOF
8356
8357 LTLIBOBJS="$LTLIBOBJS imaglist.lo"
8358 fi
8359
8360 if test "$wxUSE_LISTBOX" = "yes"; then
8361 cat >> confdefs.h <<\EOF
8362 #define wxUSE_LISTBOX 1
8363 EOF
8364
8365 LTLIBOBJS="$LTLIBOBJS listbox.lo"
8366 fi
8367
8368 if test "$wxUSE_LISTCTRL" = "yes"; then
8369 if test "$wxUSE_IMAGLIST" = "yes"; then
8370 cat >> confdefs.h <<\EOF
8371 #define wxUSE_LISTCTRL 1
8372 EOF
8373
8374 LTLIBOBJS="$LTLIBOBJS listctrl.lo"
8375 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
8376 else
8377 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
8378 fi
8379 fi
8380
8381 if test "$wxUSE_NOTEBOOK" = "yes"; then
8382 cat >> confdefs.h <<\EOF
8383 #define wxUSE_NOTEBOOK 1
8384 EOF
8385
8386 LTLIBOBJS="$LTLIBOBJS notebook.lo"
8387 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
8388 fi
8389
8390 if test "$wxUSE_RADIOBOX" = "yes"; then
8391 cat >> confdefs.h <<\EOF
8392 #define wxUSE_RADIOBOX 1
8393 EOF
8394
8395 LTLIBOBJS="$LTLIBOBJS radiobox.lo"
8396 fi
8397
8398 if test "$wxUSE_RADIOBTN" = "yes"; then
8399 cat >> confdefs.h <<\EOF
8400 #define wxUSE_RADIOBTN 1
8401 EOF
8402
8403 LTLIBOBJS="$LTLIBOBJS radiobut.lo"
8404 fi
8405
8406 if test "wxUSE_SASH" = 1; then
8407 cat >> confdefs.h <<\EOF
8408 #define wxUSE_SASH 1
8409 EOF
8410
8411 LTLIBOBJS="$LTLIBOBJS sashwin.lo"
8412 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
8413 fi
8414
8415 if test "$wxUSE_SCROLLBAR" = "yes"; then
8416 cat >> confdefs.h <<\EOF
8417 #define wxUSE_SCROLLBAR 1
8418 EOF
8419
8420 LTLIBOBJS="$LTLIBOBJS scrolbar.lo scrolwin.lo"
8421 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll"
8422 fi
8423
8424 if test "$wxUSE_SLIDER" = "yes"; then
8425 cat >> confdefs.h <<\EOF
8426 #define wxUSE_SLIDER 1
8427 EOF
8428
8429 LTLIBOBJS="$LTLIBOBJS slider.lo"
8430 fi
8431
8432 if test "$wxUSE_SPINBTN" = "yes"; then
8433 cat >> confdefs.h <<\EOF
8434 #define wxUSE_SPINBTN 1
8435 EOF
8436
8437 LTLIBOBJS="$LTLIBOBJS spinbutt.lo"
8438 fi
8439
8440 if test "$wxUSE_SPLITTER" = "yes"; then
8441 cat >> confdefs.h <<\EOF
8442 #define wxUSE_SPLITTER 1
8443 EOF
8444
8445 LTLIBOBJS="$LTLIBOBJS splitter.lo"
8446 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
8447 fi
8448
8449 if test "$wxUSE_STATBMP" = "yes"; then
8450 cat >> confdefs.h <<\EOF
8451 #define wxUSE_STATBMP 1
8452 EOF
8453
8454 LTLIBOBJS="$LTLIBOBJS statbmp.lo"
8455 fi
8456
8457 if test "$wxUSE_STATBOX" = "yes"; then
8458 cat >> confdefs.h <<\EOF
8459 #define wxUSE_STATBOX 1
8460 EOF
8461
8462 LTLIBOBJS="$LTLIBOBJS statbox.lo"
8463 fi
8464
8465 if test "$wxUSE_STATLINE" = "yes"; then
8466 cat >> confdefs.h <<\EOF
8467 #define wxUSE_STATLINE 1
8468 EOF
8469
8470 LTLIBOBJS="$LTLIBOBJS statline.lo"
8471 fi
8472
8473 if test "$wxUSE_STATUSBAR" = "yes"; then
8474 cat >> confdefs.h <<\EOF
8475 #define wxUSE_STATUSBAR 1
8476 EOF
8477
8478 LTLIBOBJS="$LTLIBOBJS statusbr.lo"
8479 fi
8480
8481 if test "$wxUSE_TABDIALOG" = "yes"; then
8482 cat >> confdefs.h <<\EOF
8483 #define wxUSE_TAB_DIALOG 1
8484 EOF
8485
8486 LTLIBOBJS="$LTLIBOBJS tabg.lo"
8487 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
8488 fi
8489
8490 if test "$wxUSE_TOOLBAR" = "yes"; then
8491 cat >> confdefs.h <<\EOF
8492 #define wxUSE_TOOLBAR 1
8493 EOF
8494
8495 LTLIBOBJS="$LTLIBOBJS tbarbase.lo tbargtk.lo"
8496 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
8497 fi
8498
8499 if test "$wxUSE_TOOLTIPS" = "yes" ; then
8500 if test "$wxUSE_MOTIF" = "yes"; then
8501 echo "configure: warning: tooltips are not supported yet under Motif" 1>&2
8502 else
8503 cat >> confdefs.h <<\EOF
8504 #define wxUSE_TOOLTIPS 1
8505 EOF
8506
8507 LTLIBOBJS="$LTLIBOBJS tooltip.lo"
8508 fi
8509 fi
8510
8511 if test "$wxUSE_TREECTRL" = "yes"; then
8512 if test "$wxUSE_IMAGLIST" = "yes"; then
8513 cat >> confdefs.h <<\EOF
8514 #define wxUSE_TREECTRL 1
8515 EOF
8516
8517 LTLIBOBJS="$LTLIBOBJS treectrl.lo"
8518 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
8519 else
8520 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
8521 fi
8522 fi
8523
8524
8525
8526 if test "$wxUSE_METAFILE" = "yes"; then
8527 cat >> confdefs.h <<\EOF
8528 #define wxUSE_METAFILE 1
8529 EOF
8530
8531 LTLIBOBJS="$LTLIBOBJS metafile.lo"
8532 fi
8533
8534 if test "$wxUSE_COMMONDLGS" = "yes"; then
8535 LTLIBOBJS="$LTLIBOBJS progdlgg.lo filedlg.lo fontdlgg.lo"
8536
8537 if test "$wxUSE_CONSTRAINTS" != "yes"; then
8538 echo "configure: warning: many common dialogs cannot be used without constraints so they won't be compiled without them" 1>&2
8539 else
8540 cat >> confdefs.h <<\EOF
8541 #define wxUSE_CONSTRAINTS 1
8542 EOF
8543
8544 cat >> confdefs.h <<\EOF
8545 #define wxUSE_TEXTDLG 1
8546 EOF
8547
8548 LTLIBOBJS="$LTLIBOBJS colrdlgg.lo textdlgg.lo choicdgg.lo"
8549
8550 if test "$wxUSE_TREECTRL" != "yes"; then
8551 echo "configure: warning: wxDirDialog cannot be used without wxTreeCtrl and it won't be compiled without it" 1>&2
8552 else
8553 cat >> confdefs.h <<\EOF
8554 #define wxUSE_DIRDLG 1
8555 EOF
8556
8557 LTLIBOBJS="$LTLIBOBJS dirdlgg.lo"
8558 fi
8559 fi
8560
8561 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
8562 LTLIBOBJS="$LTLIBOBJS prntdlgg.lo"
8563 else
8564 echo "configure: warning: wxPrintDialog class won't be compiled without printing support" 1>&2
8565 fi
8566 fi
8567
8568 if test "$wxUSE_MINIFRAME" = "yes"; then
8569 cat >> confdefs.h <<\EOF
8570 #define wxUSE_MINIFRAME 1
8571 EOF
8572
8573 LTLIBOBJS="$LTLIBOBJS minifram.lo"
8574 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
8575 fi
8576
8577 if test "$wxUSE_VALIDATORS" = "yes"; then
8578 cat >> confdefs.h <<\EOF
8579 #define wxUSE_VALIDATORS 1
8580 EOF
8581
8582 LTLIBOBJS="$LTLIBOBJS valgen.lo validate.lo valtext.lo"
8583 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
8584 fi
8585
8586
8587 GUILIBS="$GUI_TK_LIBRARY $OPENGL_LINK $LIBPNG_LINK $ZLIB_LINK $TOOLKIT_LINK"
8588
8589 EXTRA_LIBS="$LIBS $POSIX4_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $GUILIBS"
8590
8591 LIBS="\${top_builddir}/src/libwx_${WX_LIBRARY}.la $EXTRA_LIBS"
8592
8593 INCLUDES="$TOOLKIT_INCLUDE $ZLIB_INCLUDE $LIBPNG_INCLUDE -I. -I\${top_builddir}/include -I\${top_srcdir}/include"
8594
8595 if test "$ac_cv_prog_gcc" = "yes"; then
8596 CXXWARNINGS="-Wall"
8597 fi
8598 EXTRA_CFLAGS="$WXDEBUG $PROFILE $OPTIMISE $INCLUDES"
8599
8600 CFLAGS="$CFLAGS $EXTRA_CFLAGS"
8601 CXXFLAGS="$CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS"
8602
8603 if test "$wxUSE_GUI" = "yes"; then
8604
8605 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS bombs controls dialogs drawing dynamic \
8606 forty fractal image wxpoem"
8607 fi
8608
8609
8610
8611
8612
8613
8614 LIBTOOL="$LIBTOOL --silent"
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636 SETUPH_DIR=include/wx/${TOOLKIT_DIR}
8637 mkdir -p ${SETUPH_DIR}
8638
8639
8640
8641
8642 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
8643 echo "configure:8644: checking whether ${MAKE-make} sets \${MAKE}" >&5
8644 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
8645 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
8646 echo $ac_n "(cached) $ac_c" 1>&6
8647 else
8648 cat > conftestmake <<\EOF
8649 all:
8650 @echo 'ac_maketemp="${MAKE}"'
8651 EOF
8652 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8653 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
8654 if test -n "$ac_maketemp"; then
8655 eval ac_cv_prog_make_${ac_make}_set=yes
8656 else
8657 eval ac_cv_prog_make_${ac_make}_set=no
8658 fi
8659 rm -f conftestmake
8660 fi
8661 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8662 echo "$ac_t""yes" 1>&6
8663 SET_MAKE=
8664 else
8665 echo "$ac_t""no" 1>&6
8666 SET_MAKE="MAKE=${MAKE-make}"
8667 fi
8668
8669
8670 trap '' 1 2 15
8671 cat > confcache <<\EOF
8672 # This file is a shell script that caches the results of configure
8673 # tests run on this system so they can be shared between configure
8674 # scripts and configure runs. It is not useful on other systems.
8675 # If it contains results you don't want to keep, you may remove or edit it.
8676 #
8677 # By default, configure uses ./config.cache as the cache file,
8678 # creating it if it does not exist already. You can give configure
8679 # the --cache-file=FILE option to use a different cache file; that is
8680 # what configure does when it calls configure scripts in
8681 # subdirectories, so they share the cache.
8682 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8683 # config.status only pays attention to the cache file if you give it the
8684 # --recheck option to rerun configure.
8685 #
8686 EOF
8687 # The following way of writing the cache mishandles newlines in values,
8688 # but we know of no workaround that is simple, portable, and efficient.
8689 # So, don't put newlines in cache variables' values.
8690 # Ultrix sh set writes to stderr and can't be redirected directly,
8691 # and sets the high bit in the cache file unless we assign to the vars.
8692 (set) 2>&1 |
8693 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8694 *ac_space=\ *)
8695 # `set' does not quote correctly, so add quotes (double-quote substitution
8696 # turns \\\\ into \\, and sed turns \\ into \).
8697 sed -n \
8698 -e "s/'/'\\\\''/g" \
8699 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8700 ;;
8701 *)
8702 # `set' quotes correctly as required by POSIX, so do not add quotes.
8703 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8704 ;;
8705 esac >> confcache
8706 if cmp -s $cache_file confcache; then
8707 :
8708 else
8709 if test -w $cache_file; then
8710 echo "updating cache $cache_file"
8711 cat confcache > $cache_file
8712 else
8713 echo "not updating unwritable cache $cache_file"
8714 fi
8715 fi
8716 rm -f confcache
8717
8718 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8719
8720 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8721 # Let make expand exec_prefix.
8722 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8723
8724 # Any assignment to VPATH causes Sun make to only execute
8725 # the first set of double-colon rules, so remove it if not needed.
8726 # If there is a colon in the path, we need to keep it.
8727 if test "x$srcdir" = x.; then
8728 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8729 fi
8730
8731 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8732
8733 DEFS=-DHAVE_CONFIG_H
8734
8735 # Without the "./", some shells look in PATH for config.status.
8736 : ${CONFIG_STATUS=./config.status}
8737
8738 echo creating $CONFIG_STATUS
8739 rm -f $CONFIG_STATUS
8740 cat > $CONFIG_STATUS <<EOF
8741 #! /bin/sh
8742 # Generated automatically by configure.
8743 # Run this file to recreate the current configuration.
8744 # This directory was configured as follows,
8745 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8746 #
8747 # $0 $ac_configure_args
8748 #
8749 # Compiler output produced by configure, useful for debugging
8750 # configure, is in ./config.log if it exists.
8751
8752 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8753 for ac_option
8754 do
8755 case "\$ac_option" in
8756 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8757 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8758 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8759 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8760 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8761 exit 0 ;;
8762 -help | --help | --hel | --he | --h)
8763 echo "\$ac_cs_usage"; exit 0 ;;
8764 *) echo "\$ac_cs_usage"; exit 1 ;;
8765 esac
8766 done
8767
8768 ac_given_srcdir=$srcdir
8769 ac_given_INSTALL="$INSTALL"
8770
8771 trap 'rm -fr `echo "
8772 wx-config
8773 Makefile src/Makefile
8774 include/Makefile
8775 include/wx/Makefile
8776 include/wx/generic/Makefile
8777 include/wx/gtk/Makefile
8778 include/wx/motif/Makefile
8779 include/wx/msw/Makefile
8780 include/wx/protocol/Makefile
8781 include/wx/unix/Makefile
8782 samples/Makefile
8783 samples/bombs/Makefile
8784 samples/caret/Makefile
8785 samples/checklst/Makefile
8786 samples/config/Makefile
8787 samples/controls/Makefile
8788 samples/db/Makefile
8789 samples/dialogs/Makefile
8790 samples/dnd/Makefile
8791 samples/docview/Makefile
8792 samples/docvwmdi/Makefile
8793 samples/drawing/Makefile
8794 samples/dynamic/Makefile
8795 samples/forty/Makefile
8796 samples/fractal/Makefile
8797 samples/grid/Makefile
8798 samples/help/Makefile
8799 samples/image/Makefile
8800 samples/internat/Makefile
8801 samples/joytest/Makefile
8802 samples/layout/Makefile
8803 samples/listctrl/Makefile
8804 samples/mdi/Makefile
8805 samples/memcheck/Makefile
8806 samples/mfc/Makefile
8807 samples/minifram/Makefile
8808 samples/minimal/Makefile
8809 samples/nativdlg/Makefile
8810 samples/notebook/Makefile
8811 samples/oleauto/Makefile
8812 samples/ownerdrw/Makefile
8813 samples/png/Makefile
8814 samples/printing/Makefile
8815 samples/proplist/Makefile
8816 samples/regtest/Makefile
8817 samples/resource/Makefile
8818 samples/sashtest/Makefile
8819 samples/scroll/Makefile
8820 samples/splitter/Makefile
8821 samples/tab/Makefile
8822 samples/taskbar/Makefile
8823 samples/thread/Makefile
8824 samples/toolbar/Makefile
8825 samples/treectrl/Makefile
8826 samples/typetest/Makefile
8827 samples/validate/Makefile
8828 samples/wxpoem/Makefile
8829 samples/wxsocket/Makefile
8830 ${SETUPH_DIR}/setup.h:include/wx/unix/setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8831 EOF
8832 cat >> $CONFIG_STATUS <<EOF
8833
8834 # Protect against being on the right side of a sed subst in config.status.
8835 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8836 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8837 $ac_vpsub
8838 $extrasub
8839 s%@SHELL@%$SHELL%g
8840 s%@CFLAGS@%$CFLAGS%g
8841 s%@CPPFLAGS@%$CPPFLAGS%g
8842 s%@CXXFLAGS@%$CXXFLAGS%g
8843 s%@FFLAGS@%$FFLAGS%g
8844 s%@DEFS@%$DEFS%g
8845 s%@LDFLAGS@%$LDFLAGS%g
8846 s%@LIBS@%$LIBS%g
8847 s%@exec_prefix@%$exec_prefix%g
8848 s%@prefix@%$prefix%g
8849 s%@program_transform_name@%$program_transform_name%g
8850 s%@bindir@%$bindir%g
8851 s%@sbindir@%$sbindir%g
8852 s%@libexecdir@%$libexecdir%g
8853 s%@datadir@%$datadir%g
8854 s%@sysconfdir@%$sysconfdir%g
8855 s%@sharedstatedir@%$sharedstatedir%g
8856 s%@localstatedir@%$localstatedir%g
8857 s%@libdir@%$libdir%g
8858 s%@includedir@%$includedir%g
8859 s%@oldincludedir@%$oldincludedir%g
8860 s%@infodir@%$infodir%g
8861 s%@mandir@%$mandir%g
8862 s%@host@%$host%g
8863 s%@host_alias@%$host_alias%g
8864 s%@host_cpu@%$host_cpu%g
8865 s%@host_vendor@%$host_vendor%g
8866 s%@host_os@%$host_os%g
8867 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8868 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8869 s%@INSTALL_DATA@%$INSTALL_DATA%g
8870 s%@PACKAGE@%$PACKAGE%g
8871 s%@VERSION@%$VERSION%g
8872 s%@ACLOCAL@%$ACLOCAL%g
8873 s%@AUTOCONF@%$AUTOCONF%g
8874 s%@AUTOMAKE@%$AUTOMAKE%g
8875 s%@AUTOHEADER@%$AUTOHEADER%g
8876 s%@MAKEINFO@%$MAKEINFO%g
8877 s%@SET_MAKE@%$SET_MAKE%g
8878 s%@CC@%$CC%g
8879 s%@CPP@%$CPP%g
8880 s%@CXX@%$CXX%g
8881 s%@CXXCPP@%$CXXCPP%g
8882 s%@RANLIB@%$RANLIB%g
8883 s%@AR@%$AR%g
8884 s%@LN_S@%$LN_S%g
8885 s%@STRIP@%$STRIP%g
8886 s%@YACC@%$YACC%g
8887 s%@LEX@%$LEX%g
8888 s%@LEXLIB@%$LEXLIB%g
8889 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
8890 s%@build@%$build%g
8891 s%@build_alias@%$build_alias%g
8892 s%@build_cpu@%$build_cpu%g
8893 s%@build_vendor@%$build_vendor%g
8894 s%@build_os@%$build_os%g
8895 s%@LD@%$LD%g
8896 s%@NM@%$NM%g
8897 s%@LIBTOOL@%$LIBTOOL%g
8898 s%@DLLTOOL@%$DLLTOOL%g
8899 s%@AS@%$AS%g
8900 s%@X_CFLAGS@%$X_CFLAGS%g
8901 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
8902 s%@X_LIBS@%$X_LIBS%g
8903 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
8904 s%@GTK_CONFIG@%$GTK_CONFIG%g
8905 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
8906 s%@GTK_LIBS@%$GTK_LIBS%g
8907 s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
8908 s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
8909 s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
8910 s%@WX_LIBRARY@%$WX_LIBRARY%g
8911 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
8912 s%@TOOLKIT@%$TOOLKIT%g
8913 s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
8914 s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
8915 s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
8916 s%@EXTRA_VPATH@%$EXTRA_VPATH%g
8917 s%@LTLIBOBJS@%$LTLIBOBJS%g
8918 s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
8919 s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
8920 s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
8921 s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
8922 s%@USER_SUBDIRS@%$USER_SUBDIRS%g
8923 s%@EXTRA_LIBS@%$EXTRA_LIBS%g
8924
8925 CEOF
8926 EOF
8927
8928 cat >> $CONFIG_STATUS <<\EOF
8929
8930 # Split the substitutions into bite-sized pieces for seds with
8931 # small command number limits, like on Digital OSF/1 and HP-UX.
8932 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8933 ac_file=1 # Number of current file.
8934 ac_beg=1 # First line for current file.
8935 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8936 ac_more_lines=:
8937 ac_sed_cmds=""
8938 while $ac_more_lines; do
8939 if test $ac_beg -gt 1; then
8940 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8941 else
8942 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8943 fi
8944 if test ! -s conftest.s$ac_file; then
8945 ac_more_lines=false
8946 rm -f conftest.s$ac_file
8947 else
8948 if test -z "$ac_sed_cmds"; then
8949 ac_sed_cmds="sed -f conftest.s$ac_file"
8950 else
8951 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8952 fi
8953 ac_file=`expr $ac_file + 1`
8954 ac_beg=$ac_end
8955 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8956 fi
8957 done
8958 if test -z "$ac_sed_cmds"; then
8959 ac_sed_cmds=cat
8960 fi
8961 EOF
8962
8963 cat >> $CONFIG_STATUS <<EOF
8964
8965 CONFIG_FILES=\${CONFIG_FILES-"wx-config
8966 Makefile src/Makefile
8967 include/Makefile
8968 include/wx/Makefile
8969 include/wx/generic/Makefile
8970 include/wx/gtk/Makefile
8971 include/wx/motif/Makefile
8972 include/wx/msw/Makefile
8973 include/wx/protocol/Makefile
8974 include/wx/unix/Makefile
8975 samples/Makefile
8976 samples/bombs/Makefile
8977 samples/caret/Makefile
8978 samples/checklst/Makefile
8979 samples/config/Makefile
8980 samples/controls/Makefile
8981 samples/db/Makefile
8982 samples/dialogs/Makefile
8983 samples/dnd/Makefile
8984 samples/docview/Makefile
8985 samples/docvwmdi/Makefile
8986 samples/drawing/Makefile
8987 samples/dynamic/Makefile
8988 samples/forty/Makefile
8989 samples/fractal/Makefile
8990 samples/grid/Makefile
8991 samples/help/Makefile
8992 samples/image/Makefile
8993 samples/internat/Makefile
8994 samples/joytest/Makefile
8995 samples/layout/Makefile
8996 samples/listctrl/Makefile
8997 samples/mdi/Makefile
8998 samples/memcheck/Makefile
8999 samples/mfc/Makefile
9000 samples/minifram/Makefile
9001 samples/minimal/Makefile
9002 samples/nativdlg/Makefile
9003 samples/notebook/Makefile
9004 samples/oleauto/Makefile
9005 samples/ownerdrw/Makefile
9006 samples/png/Makefile
9007 samples/printing/Makefile
9008 samples/proplist/Makefile
9009 samples/regtest/Makefile
9010 samples/resource/Makefile
9011 samples/sashtest/Makefile
9012 samples/scroll/Makefile
9013 samples/splitter/Makefile
9014 samples/tab/Makefile
9015 samples/taskbar/Makefile
9016 samples/thread/Makefile
9017 samples/toolbar/Makefile
9018 samples/treectrl/Makefile
9019 samples/typetest/Makefile
9020 samples/validate/Makefile
9021 samples/wxpoem/Makefile
9022 samples/wxsocket/Makefile
9023 "}
9024 EOF
9025 cat >> $CONFIG_STATUS <<\EOF
9026 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
9027 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9028 case "$ac_file" in
9029 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9030 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9031 *) ac_file_in="${ac_file}.in" ;;
9032 esac
9033
9034 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9035
9036 # Remove last slash and all that follows it. Not all systems have dirname.
9037 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9038 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9039 # The file is in a subdirectory.
9040 test ! -d "$ac_dir" && mkdir "$ac_dir"
9041 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
9042 # A "../" for each directory in $ac_dir_suffix.
9043 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9044 else
9045 ac_dir_suffix= ac_dots=
9046 fi
9047
9048 case "$ac_given_srcdir" in
9049 .) srcdir=.
9050 if test -z "$ac_dots"; then top_srcdir=.
9051 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9052 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
9053 *) # Relative path.
9054 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9055 top_srcdir="$ac_dots$ac_given_srcdir" ;;
9056 esac
9057
9058 case "$ac_given_INSTALL" in
9059 [/$]*) INSTALL="$ac_given_INSTALL" ;;
9060 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
9061 esac
9062
9063 echo creating "$ac_file"
9064 rm -f "$ac_file"
9065 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9066 case "$ac_file" in
9067 *Makefile*) ac_comsub="1i\\
9068 # $configure_input" ;;
9069 *) ac_comsub= ;;
9070 esac
9071
9072 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9073 sed -e "$ac_comsub
9074 s%@configure_input@%$configure_input%g
9075 s%@srcdir@%$srcdir%g
9076 s%@top_srcdir@%$top_srcdir%g
9077 s%@INSTALL@%$INSTALL%g
9078 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9079 fi; done
9080 rm -f conftest.s*
9081
9082 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9083 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9084 #
9085 # ac_d sets the value in "#define NAME VALUE" lines.
9086 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9087 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
9088 ac_dC='\3'
9089 ac_dD='%g'
9090 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9091 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9092 ac_uB='\([ ]\)%\1#\2define\3'
9093 ac_uC=' '
9094 ac_uD='\4%g'
9095 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9096 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9097 ac_eB='$%\1#\2define\3'
9098 ac_eC=' '
9099 ac_eD='%g'
9100
9101 if test "${CONFIG_HEADERS+set}" != set; then
9102 EOF
9103 cat >> $CONFIG_STATUS <<EOF
9104 CONFIG_HEADERS="${SETUPH_DIR}/setup.h:include/wx/unix/setup.h.in"
9105 EOF
9106 cat >> $CONFIG_STATUS <<\EOF
9107 fi
9108 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9109 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9110 case "$ac_file" in
9111 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9112 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9113 *) ac_file_in="${ac_file}.in" ;;
9114 esac
9115
9116 echo creating $ac_file
9117
9118 rm -f conftest.frag conftest.in conftest.out
9119 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9120 cat $ac_file_inputs > conftest.in
9121
9122 EOF
9123
9124 # Transform confdefs.h into a sed script conftest.vals that substitutes
9125 # the proper values into config.h.in to produce config.h. And first:
9126 # Protect against being on the right side of a sed subst in config.status.
9127 # Protect against being in an unquoted here document in config.status.
9128 rm -f conftest.vals
9129 cat > conftest.hdr <<\EOF
9130 s/[\\&%]/\\&/g
9131 s%[\\$`]%\\&%g
9132 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9133 s%ac_d%ac_u%gp
9134 s%ac_u%ac_e%gp
9135 EOF
9136 sed -n -f conftest.hdr confdefs.h > conftest.vals
9137 rm -f conftest.hdr
9138
9139 # This sed command replaces #undef with comments. This is necessary, for
9140 # example, in the case of _POSIX_SOURCE, which is predefined and required
9141 # on some systems where configure will not decide to define it.
9142 cat >> conftest.vals <<\EOF
9143 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9144 EOF
9145
9146 # Break up conftest.vals because some shells have a limit on
9147 # the size of here documents, and old seds have small limits too.
9148
9149 rm -f conftest.tail
9150 while :
9151 do
9152 ac_lines=`grep -c . conftest.vals`
9153 # grep -c gives empty output for an empty file on some AIX systems.
9154 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9155 # Write a limited-size here document to conftest.frag.
9156 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9157 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9158 echo 'CEOF
9159 sed -f conftest.frag conftest.in > conftest.out
9160 rm -f conftest.in
9161 mv conftest.out conftest.in
9162 ' >> $CONFIG_STATUS
9163 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9164 rm -f conftest.vals
9165 mv conftest.tail conftest.vals
9166 done
9167 rm -f conftest.vals
9168
9169 cat >> $CONFIG_STATUS <<\EOF
9170 rm -f conftest.frag conftest.h
9171 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9172 cat conftest.in >> conftest.h
9173 rm -f conftest.in
9174 if cmp -s $ac_file conftest.h 2>/dev/null; then
9175 echo "$ac_file is unchanged"
9176 rm -f conftest.h
9177 else
9178 # Remove last slash and all that follows it. Not all systems have dirname.
9179 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9180 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9181 # The file is in a subdirectory.
9182 test ! -d "$ac_dir" && mkdir "$ac_dir"
9183 fi
9184 rm -f $ac_file
9185 mv conftest.h $ac_file
9186 fi
9187 fi; done
9188
9189 EOF
9190 cat >> $CONFIG_STATUS <<EOF
9191
9192 SETUPH_DIR=${SETUPH_DIR}
9193 EOF
9194 cat >> $CONFIG_STATUS <<\EOF
9195 test -z "$CONFIG_HEADERS" || echo timestamp > ${SETUPH_DIR}/stamp-h
9196 chmod +x wx-config
9197 exit 0
9198 EOF
9199 chmod +x $CONFIG_STATUS
9200 rm -fr confdefs* $ac_clean_files
9201 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
9202
9203