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